Hnqhj/dsh-asset-library ↗★ 0

dsh-asset-library

浏览、搜索和预览项目文件夹中的多媒体资产 适合需要在会话中管理、预览并向 Agent 暴露本地音视频和图片资产的任务。

套件
dsh-asset-library
相容性
待驗證
版本
0.1.0
授權
MIT
最近更新
2026年9月30日

同名套件的其他儲存庫

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Hnqhj/dsh-asset-library

⚙️ 配置

cordis.patch.yml 里按行 id 覆盖(全部字段都有默认值,不配也能跑):

- id: asset-library
  name: dsh-asset-library
  config:
    root: 'G:\项目\短剧A'      # 空串=跟随会话工作目录
    assetsDir: assets          # 约定子目录;不存在时直接扫项目根
    indexDir: .dsh-assets      # 索引目录
    includeHidden: false
    maxDepth: 8
    maxFiles: 20000
    cacheMs: 0                 # 扫描缓存毫秒数;默认 0 = 每次都重新扫描
    pageSize: 60
    allowAgentAnnotate: false  # true 时额外注册 asset_library_annotate(只改标注)

目录约定:插件优先扫 /assets/(images/、video/、audio/ 只是习惯分类, 任意深度的子目录都会扫到);不存在 assets/ 时直接把项目根当资产目录。