@jayyuen66/dsh-ocr-review 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jayyuen66/dsh-ocr-review",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "dsh 工作区代码审查插件:把 open-code-review(ocr CLI)封装为 5 个模型工具 + 设置卡片(从 settings.yaml 选 provider/model 应用到 OCR 配置)。",
5
5
  "license": "MIT",
6
6
  "author": "JayYuen",
@@ -17,8 +17,12 @@
17
17
  // 本包代码不会 import 它,也没有别的调用点。
18
18
  //
19
19
  // 数据目录怎么找(刻意不写死 ~/.dsh):显式第三参数 > $DSH_HOME > os.homedir()/.dsh
20
- // —— 与宿主 util/home-paths 的 resolveDshHome 优先级一致(configured > env > 默认),
21
- // 第一档在这里只能是命令行参数,因为「启动参数指定的 home」 plugin 侧也无从得知。
20
+ // —— 与宿主 util/home-paths 的 resolveDshHome 优先级一致(configured > env > 默认)。
21
+ // 第三参数由 buildApiKeyCmd(lib/config-store.ts)在写 api_key_cmd 时带上:值是
22
+ // **宿主进程此刻** resolveDshHome() 的解析结果。必须显式钉住的原因:设置项
23
+ // ocrConfigPath 会给 ocr 子进程注入 HOME(<X>/.opencodereview/config.json 布局),
24
+ // 本脚本的 homedir() 兜底随之读 X/.dsh 就跑偏了;部署若以非 env 方式指定 dsh home,
25
+ // env 档同样不可靠。
22
26
  //
23
27
  // 取值的层序镜像官方 credentials-local 的优先级里**够得到**的那两层:
24
28
  // 1. 继承来的进程环境(dsh 的 env 层就是最高层:`DEEPSEEK_API_KEY=… dsh` 时,