@stardustlc/dsh-docker 0.3.2 → 0.3.4

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.en.md CHANGED
@@ -12,7 +12,9 @@ DSH (DeepSeek Harness) container-management plugin: runs the docker CLI through
12
12
 
13
13
  ## Compatibility
14
14
 
15
- Verified against the official `@deepseek-ai/dsh@0.1.3-alpha.2` on 2026-09-08, including an 18-component co-load and the full tool registration/invocation contract. Built for the cordis patch-bundle model (`cordis.patch.yml` + `dsh.bundle.patch`) with no runtime imports of `@deepseek-ai/*` internals.
15
+ Validation host: Harness `0.2.0-rc.1` built from official sources (commit `407e65c8`) with Node `24.16.0` on 2026-09-28. All 36 plugin tests pass in an isolated environment; all 18 plugins mount together in one host registering 7 tools, with tool schemas and health-check contracts passing. No live ports or external services were exercised in this round.
16
+
17
+ 2026-09-13 fix: retain the service receiver when calling `subprocess.spawn`, preventing failures caused by passing the method as an unbound callback. Verified with official `0.1.5-rc.1` and `0.1.5-rc.2` on Node `24.16.0`. `docker_ps` passes through the real host subprocess service with a Node child producing fixed Docker output. A live Docker daemon was not used.
16
18
 
17
19
  ## Installation
18
20
 
package/README.md CHANGED
@@ -12,7 +12,7 @@ DSH(DeepSeek Harness)容器管理插件:走官方 subprocess 服务跑 doc
12
12
 
13
13
  ## 兼容性
14
14
 
15
- 已在官方 `@deepseek-ai/dsh@0.1.3-alpha.2` 下验证(2026-09-08):18 个组件同载,工具注册与调用契约全部通过。遵循 cordis 组合包补丁模型(`cordis.patch.yml` + `dsh.bundle.patch`),运行时不 import 任何 `@deepseek-ai/*` 内部模块。
15
+ 验证宿主:官方源码构建的 Harness `0.2.0-rc.1`(commit `407e65c8`)+ Node `24.16.0`(2026-09-28)。36 项插件测试在隔离环境全部通过;同一个宿主里 18 个插件共同加载,注册 7 个工具,工具 schema 与健康检查契约通过。本轮未启用真实端口与外部服务。
16
16
 
17
17
  ## 安装
18
18
 
package/lib/index.js CHANGED
@@ -18,7 +18,7 @@ export const inject = ['subprocess', 'tools'];
18
18
  */
19
19
  export function apply(ctx, config) {
20
20
  const cfg = resolveConfig(config);
21
- const runner = createSubprocessRunner(ctx.subprocess.spawn, cfg.graceMs, cfg.timeoutMs);
21
+ const runner = createSubprocessRunner((spec) => ctx.subprocess.spawn(spec), cfg.graceMs, cfg.timeoutMs);
22
22
  const tools = buildDockerTools(cfg, runner);
23
23
  if (cfg.execApproval || cfg.manageApproval) {
24
24
  ctx.on('tools/pre-execute', async (exec, next) => {
package/package.json CHANGED
@@ -1,59 +1,59 @@
1
- {
2
- "name": "@stardustlc/dsh-docker",
3
- "version": "0.3.2",
4
- "description": "DSH 容器管理插件:七工具覆盖容器与镜像管理,走官方 subprocess 服务、argv 无 shell 注入,exec 与破坏性 manage 默认审批。",
5
- "type": "module",
6
- "main": "lib/index.js",
7
- "types": "lib/index.d.ts",
8
- "exports": {
9
- ".": {
10
- "types": "./lib/index.d.ts",
11
- "default": "./lib/index.js"
12
- },
13
- "./cordis.patch.yml": "./cordis.patch.yml",
14
- "./package.json": "./package.json"
15
- },
16
- "files": [
17
- "lib",
18
- "cordis.patch.yml",
19
- "README.md",
20
- "README.en.md"
21
- ],
22
- "scripts": {
23
- "build": "tsc -p tsconfig.json",
24
- "typecheck": "tsc -p tsconfig.json --noEmit",
25
- "test": "pnpm run build && node --test \"test/*.test.mjs\"",
26
- "prepublishOnly": "pnpm run build"
27
- },
28
- "dsh": {
29
- "bundle": {
30
- "patch": "./cordis.patch.yml"
31
- }
32
- },
33
- "keywords": [
34
- "dsh",
35
- "deepseek-harness",
36
- "plugin",
37
- "docker",
38
- "container",
39
- "devops"
40
- ],
41
- "license": "MIT",
42
- "engines": {
43
- "node": ">=22"
44
- },
45
- "devDependencies": {
46
- "@types/node": "^24.0.0",
47
- "typescript": "^5.6.0"
48
- },
49
- "repository": {
50
- "type": "git",
51
- "url": "git+https://github.com/STARDUSTLC666/dsh-docker.git"
52
- },
53
- "bugs": {
54
- "url": "https://github.com/STARDUSTLC666/dsh-docker/issues"
55
- },
56
- "homepage": "https://github.com/STARDUSTLC666/dsh-docker#readme",
57
- "author": "stardustlc",
58
- "packageManager": "pnpm@11.7.0"
59
- }
1
+ {
2
+ "name": "@stardustlc/dsh-docker",
3
+ "version": "0.3.4",
4
+ "description": "DSH 容器与镜像管理插件:走官方 subprocess 服务,argv 无 shell 注入,exec 与破坏性操作默认审批。",
5
+ "type": "module",
6
+ "main": "lib/index.js",
7
+ "types": "lib/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./lib/index.d.ts",
11
+ "default": "./lib/index.js"
12
+ },
13
+ "./cordis.patch.yml": "./cordis.patch.yml",
14
+ "./package.json": "./package.json"
15
+ },
16
+ "files": [
17
+ "lib",
18
+ "cordis.patch.yml",
19
+ "README.md",
20
+ "README.en.md"
21
+ ],
22
+ "scripts": {
23
+ "build": "tsc -p tsconfig.json",
24
+ "typecheck": "tsc -p tsconfig.json --noEmit",
25
+ "test": "pnpm run build && node --test \"test/*.test.mjs\"",
26
+ "prepublishOnly": "pnpm run build"
27
+ },
28
+ "dsh": {
29
+ "bundle": {
30
+ "patch": "./cordis.patch.yml"
31
+ }
32
+ },
33
+ "keywords": [
34
+ "dsh",
35
+ "deepseek-harness",
36
+ "plugin",
37
+ "docker",
38
+ "container",
39
+ "devops"
40
+ ],
41
+ "license": "MIT",
42
+ "engines": {
43
+ "node": "^22.19.0 || >=24.0.0"
44
+ },
45
+ "devDependencies": {
46
+ "@types/node": "^24.0.0",
47
+ "typescript": "^5.6.0"
48
+ },
49
+ "repository": {
50
+ "type": "git",
51
+ "url": "git+https://github.com/STARDUSTLC666/dsh-docker.git"
52
+ },
53
+ "bugs": {
54
+ "url": "https://github.com/STARDUSTLC666/dsh-docker/issues"
55
+ },
56
+ "homepage": "https://github.com/STARDUSTLC666/dsh-docker#readme",
57
+ "author": "stardustlc",
58
+ "packageManager": "pnpm@11.7.0"
59
+ }