@deepseek-ai/dsh-native-command 0.1.5-rc.2 → 0.1.6-alpha.1

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.i18n.yaml CHANGED
@@ -2,5 +2,5 @@
2
2
  # side as of the last confirmed-consistent state. Both languages carry equal authority;
3
3
  # after editing either side, bring the other along and re-record with:
4
4
  # pnpm run verify-translation-pairing --write packages/util/native-command/README.md
5
- README.md: b0b1963a97c6d528c123d4900db529bd3dc38332
6
- README.zh.md: 6a245e3473a4e4dd9944dc53898e04be2fcba2e4
5
+ README.md: 10b60266403f6a479a286cccd369ee2e52dd3aa6
6
+ README.zh.md: e8f2adda57ee257983a06bb2798c852cab20bf6a
package/README.md CHANGED
@@ -41,7 +41,7 @@ On exit 0 the call resolves with captured stdout and stderr. On any failure it r
41
41
 
42
42
  ### Injecting the command boundary
43
43
 
44
- The `NativeCommandRunner` type is the injectable command boundary for host integrations: pass the function (or a wrapper) where the integration needs a testable seam, so tests can substitute a fake runner.
44
+ The `NativeCommandRunner` type is the injectable command boundary for host integrations: pass the function (or a wrapper) where the integration needs a testable boundary, so tests can substitute a fake runner.
45
45
 
46
46
  ### Opening a Host path
47
47
 
package/README.zh.md CHANGED
@@ -41,7 +41,7 @@ const { stdout, stderr } = await runNativeCommand('osascript', ['-e', script], s
41
41
 
42
42
  ### 注入命令边界
43
43
 
44
- `NativeCommandRunner` 类型是宿主集成的可注入命令边界:在集成需要一个可测试接缝的位置传入该函数(或其包装层),测试即可替换为假运行器。
44
+ `NativeCommandRunner` 类型是宿主集成的可注入命令边界:在集成需要一个可测试边界的位置传入该函数(或其包装层),测试即可替换为假运行器。
45
45
 
46
46
  ### 打开 Host 路径
47
47
 
@@ -66,7 +66,7 @@ const { stdout, stderr } = await runNativeCommand('osascript', ['-e', script], s
66
66
  | [`src/index.ts`](src/index.ts) | 命令运行器与路径打开器的公共导出 |
67
67
  | [`src/runner.ts`](src/runner.ts) | 无 shell 的 `execFile` 适配器 |
68
68
  | [`src/path-opener.ts`](src/path-opener.ts) | 桌面探测、打开意图、浏览器偏好与 WSL 转换 |
69
- | — | 不发布运行时不变式伴生入口;每次运行都是一次无状态的子进程往返。 |
69
+ | — | 不发布运行时不变式伴生入口;每次运行都是一次无状态的子进程往返,不拥有事件流或可变运行时数据;相关行为由单元测试保障。 |
70
70
 
71
71
  ### execFile 给了运行器什么
72
72
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deepseek-ai/dsh-native-command",
3
3
  "description": "Host-native command and path-opening utilities with shell-free execution, cancellation, desktop detection, and WSL handoff",
4
- "version": "0.1.5-rc.2",
4
+ "version": "0.1.6-alpha.1",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },