BitDG/dsh-plugins--plugins-reference-library0

@dship/reference-library

Unified DSH-native data cards for local CodePen and GitHub plus Pinterest and Z-Library references

包名
@dship/reference-library
版本
0.6.8
许可证
MIT
最近更新
2026年9月4日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:BitDG/dsh-plugins#50f733a801bc534dda4bb7420cc1743576c8048e&path:plugins/reference-library

配置

- id: dship-reference-library
  name: '@dship/reference-library'
  config:
    libraryRoot: F:/VibeSpace/codepen
    pinterestDefaultQuery: design inspiration
    pinterestResultLimit: 30
    zlibraryRequestTimeoutMs: 15000
    zlibraryDefaultQuery: design
    zlibraryResultLimit: 10

libraryRoot 也可以由 VIBESPACE_REFERENCE_LIBRARY_ROOTDSH_REFERENCE_LIBRARY_ROOT 提供。目录必须包含 catalog/index.json;排队时插件按需创建 inbox/requests/

pinterestDefaultQuery 默认为 design inspiration,每批结果数为 30–50,默认 30。读取结果在内存中保留 30 分钟;每次点击读取都会创建独立的五分钟短效配对会话。

可选的 zlibraryDomain 固定一个 HTTPS 元数据域名;未设置时会从受限候选列表探测。zlibraryRequestTimeoutMs 默认为 15000 毫秒,有效范围为 2000–30000 毫秒;zlibraryResultLimit 为 1–20。

所有常规 HTTP 路由先调用 Harness connection.requestRejection() 并拒绝跨源请求。唯一不依赖 Harness Cookie 的扩展回传路由同时要求 Chrome 扩展 Origin 与短效随机配对码,并只接受经过 Pinterest URL、Pin 详情路径、pinimg.com 图片主机和字段长度校验的数据。