@jayyuen66/dsh-ocr-review 0.1.1 → 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/README.md +39 -163
- package/README.zh-CN.md +162 -0
- package/client.js +2 -2
- package/host.js +233 -59
- package/package.json +1 -1
- package/scripts/get-cred.mjs +6 -2
package/package.json
CHANGED
package/scripts/get-cred.mjs
CHANGED
|
@@ -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
|
-
//
|
|
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` 时,
|