Suxeca/dsh-plugin--packages-dsh-note-board ↗★ 3

@suxeca/dsh-note-board

在对话视图中提供按会话绑定的 Markdown 笔记看板。 适合需要在对话过程中记录、渲染 Markdown 笔记并进行每轮注入的用户。

套件
@suxeca/dsh-note-board
相容性
待驗證
Harness 依賴範圍
^0.1.5-rc.1
Cordis 依賴範圍
^4.0.2
版本
0.2.1
最近更新
2026年9月26日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Suxeca/dsh-plugin#78087bd97c93be9a1201cce28e7cbf579a6a6050&path:packages/dsh-note-board

配置

全部有默认值,默认即可用。部署相关的路径留在你自己的 profile patch 层里, 不要写进这个包的 cordis.patch.yml——loader 会在每个 bundle 层之后应用 profile 层,所以覆盖是安全的。

键默认说明
registryPath'' → ${DSH_HOME:-~/.dsh}/note-boards.json附加登记表
maxBytes262144字符上限:既截断返回正文,也约束底层读取(≤ maxBytes*4+4 字节);硬钳 4M
auditLimit20审计判决最多列几条(上限 500;只读最新的 N 份)
injectBudget6000每轮注入的字符上限(吸收线据此判断是否分叉)
scanRoots[] → ~/Workspace目录扫描根
scanDepth3向下层数(3 层刚好到 //notes/,不会走进源码树;上限 8,不跟随符号链接目录)
catalogTtlMs30000扫描结果缓存时长(上限 10 分钟)
ledgerFiles[] → ['notes/ledger.md', '.notes/ledger.md', 'ledger.md']逐级向上查找的相对路径,按顺序
auditInboxName'' → .note-audit-inbox审计收件箱目录名(位置固定在笔记同级)
placement'last'注入 section 落在 'first' 还是 'last';仅影响呈现顺序,不影响权威
delivery'section'正文走哪条通道:'section' 渲染进系统提示;'snapshot' 作为 durable user-role 快照投递(见下)

注入开关不是配置项——它是按会话的运行时状态(POST /note-board/api/injection),写在 registry 里。

覆盖示例(放在 ~/.dsh/profiles/ /cordis.patch.yml):

- id: note-board
  config:
    scanRoots: ['/srv/work']
    ledgerFiles: ['docs/definitions.md', 'notes/ledger.md']
    auditInboxName: '.review-inbox'
    injectBudget: 8000