x-mug/dsh-plugins--plugins-dsh-auto-review-cache-identity ↗★ 1

@x-mug/dsh-auto-review-cache-identity

Give built-in Auto review calls a stable prompt-cache identity and an optional fixed review model.

包名
@x-mug/dsh-auto-review-cache-identity
兼容性
待验证
版本
1.0.0
最近更新
2026年10月29日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add 'github:x-mug/dsh-plugins#63649c6901b73a0f0510f7a210a2b7288acad2e7&path:plugins/dsh-auto-review-cache-identity'

配置

bundle 默认值只有两项,其余都留给设置页或 profile 补丁:

- insert:
    - id: local-auto-review-cache-identity
      name: '@x-mug/dsh-auto-review-cache-identity'
      config:
        enabled: true      # 关掉等于没装
        scope: session     # session:按会话;cwd:按工作目录(只给 A/B)
字段默认说明
enabledtrue关掉后监听器直接放过所有请求。
scopesessionsession:键 = sha256(会话 id),读不到会话则本次不注入;cwd:键 = sha256(cwd),完全不读发起者作用域,只用于 A/B 对照。
reviewProvider空审查固定使用的供应商 id,空 = 跟随主对话。
reviewModel空审查固定使用的模型 id,空 = 跟随主对话。

reviewProvider / reviewModel 两个字符串都非空才会覆盖路由;只填一个等于没填。

profile 用户层按条目 id 覆盖 config,是整体替换、不是深合并。 删掉用户层某个字段不会回落到 bundle 默认值,而是回落到 schema 默认值。要么只保留一层配置,要么两层始终写全。

诊断选项

两个只从 profile 补丁读、不进设置页表单的选项,默认都不开:

字段默认说明
logfalse每次注入打一行 info:injected= key= identityMisses=。
trace不设一个本机绝对路径。每次注入向该文件追加一行 JSON(时间、键、provider、model)。

trace 不写进仓库默认值:绝对路径是某台机器的本地残留,装到别人机器上只会静默写失败。需要定位时在自己的 profile 补丁里显式给出路径,用完删掉。