@deepseek-ai/dsh-subagent-codex 0.1.2-alpha.5 → 0.1.3-alpha.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.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/subagent/subagent-codex/README.md
5
- README.md: 399f01bd057c3278356a17c04137be6596274866
6
- README.zh.md: f2ac1287cc0678822e655b6d06f0b414ebee2b81
5
+ README.md: 5563dd420aa0fc7cae625d62bc4009625357b646
6
+ README.zh.md: 65231ccab2a25f89ce8a9cf94875a19bfe3da1ec
package/README.md CHANGED
@@ -47,7 +47,7 @@ Removing the package withdraws the provider and its private runtime closure on t
47
47
  | `model` | native Codex settings | Optional non-empty model name fixed for every thread from this provider instance; omission sends no app-server override |
48
48
  | `env` | `{}` | Explicit child environment layered over the credential-scrubbed parent environment |
49
49
  | `permissionMode` | `never` | Native non-interactive approval and sandbox mode fixed for every thread from this provider instance |
50
- | `disposeGraceMs` | `3000` | Grace between the shared process-tree owner's termination tiers |
50
+ | `disposeGraceMs` | `3000` | Grace between the shared managed-range owner's termination tiers |
51
51
 
52
52
  | `permissionMode` value | `thread/start` fields | Native behavior |
53
53
  |---|---|---|
@@ -192,4 +192,4 @@ This Dev Note is working context for maintainers: open questions and undecided d
192
192
 
193
193
  </details>
194
194
 
195
- **Runtime invariant:** No companion is published. Lifecycle pairing belongs to the shared subagent service and process-tree ownership belongs to the subprocess service.
195
+ **Runtime invariant:** No companion is published. Lifecycle pairing belongs to the shared subagent service, and managed-range ownership belongs to the subprocess service.
package/README.zh.md CHANGED
@@ -47,7 +47,7 @@ dsh --profile <name>
47
47
  | `model` | Codex 原生设置 | 为本提供方实例的每个线程固定的可选非空模型名称;省略时不发送 app-server 覆盖 |
48
48
  | `env` | `{}` | 叠加在已清理凭据的父环境之上的显式子进程环境 |
49
49
  | `permissionMode` | `never` | 为本提供方实例的每个线程固定的原生非交互审批与沙箱模式 |
50
- | `disposeGraceMs` | `3000` | 共享进程树责任方各终止层级之间的宽限 |
50
+ | `disposeGraceMs` | `3000` | 共享 managed-range owner 各终止层级之间的宽限 |
51
51
 
52
52
  | `permissionMode` 值 | `thread/start` 字段 | 原生行为 |
53
53
  |---|---|---|
@@ -192,4 +192,4 @@ Codex 子级会在一个全新的临时线程中,以单个轮次接收这些
192
192
 
193
193
  </details>
194
194
 
195
- **运行时不变式:** 不发布伴生入口。生命周期配对属于共享 subagent service,process-tree 所有权属于 subprocess service。
195
+ **运行时不变式:** 不发布伴生入口。生命周期配对属于共享 subagent service,受管范围的所有权属于 subprocess service。
package/lib/index.js CHANGED
@@ -521,7 +521,7 @@ var CodexAppServerWire = class {
521
521
  /**
522
522
  * One-shot Codex child lifecycle: spawn the real app-server through the
523
523
  * subprocess seam, publish only after initialization and ephemeral thread
524
- * creation, flatten post-publication failures, and dispose to whole-tree
524
+ * creation, flatten post-publication failures, and dispose to whole-range
525
525
  * quiescence.
526
526
  *
527
527
  * @module @deepseek-ai/dsh-subagent-codex/run
@@ -602,37 +602,31 @@ function textTask(prompt) {
602
602
  return texts;
603
603
  }
604
604
  /**
605
- * Close the private wire, terminate the managed process tree, and wait for the
606
- * subprocess owner to prove it is gone.
605
+ * Close the private wire, terminate the managed range, and wait for the
606
+ * subprocess owner to prove it is quiescent.
607
607
  * @param wire - private app-server protocol connection.
608
- * @param child - shared-service handle that owns the process tree.
608
+ * @param child - shared-service handle that owns the managed range.
609
609
  */
610
610
  async function disposeCodexChild(wire, child) {
611
611
  wire.close();
612
- if (child.pid > 0) {
613
- let outcome;
614
- child.done.then(
615
- (value) => {
616
- outcome = value;
617
- },
618
- /* v8 ignore next -- a positive pid excludes spawn-level done rejection. */
619
- () => {}
620
- );
621
- try {
622
- child.stdin?.end();
623
- } catch {}
624
- child.terminate();
625
- try {
626
- await child.waitForExit();
627
- } catch (error) {
628
- throw new CodexRunFailure({
629
- stage: "teardown",
630
- category: "unknown",
631
- outcome
632
- }, thrown(error));
633
- }
634
- await child.done;
635
- } else await child.done.catch(() => {});
612
+ let outcome;
613
+ child.done.then((value) => {
614
+ outcome = value;
615
+ }, () => {});
616
+ try {
617
+ child.stdin?.end();
618
+ } catch {}
619
+ child.terminate();
620
+ try {
621
+ await child.waitForExit();
622
+ } catch (error) {
623
+ throw new CodexRunFailure({
624
+ stage: "teardown",
625
+ category: "unknown",
626
+ outcome
627
+ }, thrown(error));
628
+ }
629
+ await child.done.catch(() => {});
636
630
  }
637
631
  /**
638
632
  * Start the real `codex app-server --stdio` child and publish its one-shot run.
@@ -23,7 +23,7 @@ export interface Config {
23
23
  env?: Record<string, string>;
24
24
  /** Native non-interactive permission mode fixed for this Provider instance. */
25
25
  permissionMode?: CodexPermissionMode;
26
- /** Grace in milliseconds for app-server process-tree termination. */
26
+ /** Grace in milliseconds between app-server managed-range termination tiers. */
27
27
  disposeGraceMs?: number;
28
28
  }
29
29
  export declare const Config: z<Config>;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * One-shot Codex child lifecycle: spawn the real app-server through the
3
3
  * subprocess seam, publish only after initialization and ephemeral thread
4
- * creation, flatten post-publication failures, and dispose to whole-tree
4
+ * creation, flatten post-publication failures, and dispose to whole-range
5
5
  * quiescence.
6
6
  *
7
7
  * @module @deepseek-ai/dsh-subagent-codex/run
@@ -39,7 +39,7 @@ export interface CodexRunSpec {
39
39
  readonly permissionMode: CodexPermissionMode;
40
40
  /** Explicit deployment/test environment layered after the shared scrub. */
41
41
  readonly env: Record<string, string>;
42
- /** Subprocess termination grace passed to the shared process-tree owner. */
42
+ /** Subprocess termination grace passed to the shared managed-range owner. */
43
43
  readonly disposeGraceMs: number;
44
44
  /** Shared subprocess service spawn operation. */
45
45
  readonly spawn: (spec: SubprocessSpawnSpec) => SubprocessHandle;
@@ -53,10 +53,10 @@ export interface CodexRunSpec {
53
53
  */
54
54
  export declare function textTask(prompt: readonly ContentBlock[]): string[];
55
55
  /**
56
- * Close the private wire, terminate the managed process tree, and wait for the
57
- * subprocess owner to prove it is gone.
56
+ * Close the private wire, terminate the managed range, and wait for the
57
+ * subprocess owner to prove it is quiescent.
58
58
  * @param wire - private app-server protocol connection.
59
- * @param child - shared-service handle that owns the process tree.
59
+ * @param child - shared-service handle that owns the managed range.
60
60
  */
61
61
  export declare function disposeCodexChild(wire: CodexAppServerWire, child: SubprocessHandle): Promise<void>;
62
62
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deepseek-ai/dsh-subagent-codex",
3
3
  "description": "One-shot Codex subagent provider over the official app-server protocol",
4
- "version": "0.1.2-alpha.5",
4
+ "version": "0.1.3-alpha.2",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -33,36 +33,36 @@
33
33
  }
34
34
  },
35
35
  "peerDependencies": {
36
- "@deepseek-ai/dsh-llm": "^0.1.2-alpha.5",
37
- "@deepseek-ai/dsh-session": "^0.1.2-alpha.5",
38
- "@deepseek-ai/dsh-subagent": "^0.1.2-alpha.5",
39
- "@deepseek-ai/dsh-subprocess": "^0.1.2-alpha.5",
40
36
  "@deepseek-ai/cordis": "^4.0.2",
41
- "@deepseek-ai/dsh-timeout": "^0.1.2-alpha.5"
37
+ "@deepseek-ai/dsh-llm": "^0.1.3-alpha.2",
38
+ "@deepseek-ai/dsh-session": "^0.1.3-alpha.2",
39
+ "@deepseek-ai/dsh-subagent": "^0.1.3-alpha.2",
40
+ "@deepseek-ai/dsh-subprocess": "^0.1.3-alpha.2",
41
+ "@deepseek-ai/dsh-timeout": "^0.1.3-alpha.2"
42
42
  },
43
43
  "dependencies": {
44
44
  "@openai/codex": "0.149.1",
45
- "@deepseek-ai/dsh-sdk-protocol": "^0.1.2-alpha.5",
45
+ "@deepseek-ai/dsh-sdk-protocol": "^0.1.3-alpha.2",
46
46
  "@deepseek-ai/schemastery": "^3.18.2",
47
- "@deepseek-ai/dsh-brand": "^0.1.2-alpha.5"
47
+ "@deepseek-ai/dsh-brand": "^0.1.3-alpha.2"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@deepseek-ai/cordis": "^4.0.2",
51
+ "@deepseek-ai/dsh-agent": "^0.1.3-alpha.2",
51
52
  "@deepseek-ai/cordis-plugin-loader": "^1.0.3",
52
- "@deepseek-ai/dsh-agent": "^0.1.2-alpha.5",
53
- "@deepseek-ai/dsh-app-boot": "^0.1.2-alpha.5",
54
- "@deepseek-ai/dsh-llm": "^0.1.2-alpha.5",
55
- "@deepseek-ai/dsh-loader-smoke": "^0.1.2-alpha.5",
56
- "@deepseek-ai/dsh-session-checkpoint-policy": "^0.1.2-alpha.5",
57
- "@deepseek-ai/dsh-session-persistence-jsonl": "^0.1.2-alpha.5",
58
- "@deepseek-ai/dsh-session-projection": "^0.1.2-alpha.5",
59
- "@deepseek-ai/dsh-subagent": "^0.1.2-alpha.5",
60
- "@deepseek-ai/dsh-subprocess": "^0.1.2-alpha.5",
61
- "@deepseek-ai/dsh-subprocess-local": "^0.1.2-alpha.5",
62
- "@deepseek-ai/dsh-timeout": "^0.1.2-alpha.5",
63
- "@deepseek-ai/dsh-session": "^0.1.2-alpha.5",
64
- "@deepseek-ai/dsh-tool-jobs": "^0.1.2-alpha.5",
65
- "@deepseek-ai/dsh-tool-subagent": "^0.1.2-alpha.5",
66
- "@deepseek-ai/dsh-tools": "^0.1.2-alpha.5"
53
+ "@deepseek-ai/dsh-app-boot": "^0.1.3-alpha.2",
54
+ "@deepseek-ai/dsh-llm": "^0.1.3-alpha.2",
55
+ "@deepseek-ai/dsh-loader-smoke": "^0.1.3-alpha.2",
56
+ "@deepseek-ai/dsh-session": "^0.1.3-alpha.2",
57
+ "@deepseek-ai/dsh-session-checkpoint-policy": "^0.1.3-alpha.2",
58
+ "@deepseek-ai/dsh-session-persistence-jsonl": "^0.1.3-alpha.2",
59
+ "@deepseek-ai/dsh-session-projection": "^0.1.3-alpha.2",
60
+ "@deepseek-ai/dsh-subagent": "^0.1.3-alpha.2",
61
+ "@deepseek-ai/dsh-subprocess": "^0.1.3-alpha.2",
62
+ "@deepseek-ai/dsh-subprocess-local": "^0.1.3-alpha.2",
63
+ "@deepseek-ai/dsh-timeout": "^0.1.3-alpha.2",
64
+ "@deepseek-ai/dsh-tool-subagent": "^0.1.3-alpha.2",
65
+ "@deepseek-ai/dsh-tools": "^0.1.3-alpha.2",
66
+ "@deepseek-ai/dsh-tool-jobs": "^0.1.3-alpha.2"
67
67
  }
68
68
  }