@deepseek-ai/dsh-tool-subagent 0.2.0-rc.2 → 0.2.1-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
@@ -45,8 +45,8 @@
45
45
  en: 1f52c5f5c7caf04a
46
46
  zh: dba288fd0cf51e5d
47
47
  /deepseek-ai-dsh-tool-subagent/further-exploration:
48
- en: bfe8b6bc5af43b98
49
- zh: dbc040e7c9ad6838
48
+ en: f9302b0380df26ac
49
+ zh: 95f1a0f43fa8ba80
50
50
  /deepseek-ai-dsh-tool-subagent/model-experience:
51
51
  en: 215e7ba838619b7b
52
52
  zh: a311da3843709f90
package/README.md CHANGED
@@ -118,7 +118,7 @@ Read these pages when the package-level contract is not enough; they move from t
118
118
  - [Generated tool catalog](../../../docs/tool-catalog.md#deepseek-aidsh-tool-subagent) — the default schema and per-mode wording.
119
119
  - [Generated configuration catalog](../../../docs/config-catalog.md#deepseek-aidsh-tool-subagent) — every accepted config field.
120
120
  - [Background-first continuable delegation](../../../.agents/notes/archived/feature/2026-08-11-background-first-continuable-delegation.md) — why continuable work defaults to background.
121
- - [Model-selected subagent routes](../../../.agents/notes/implemented/feature/2026-08-18-model-selected-subagent-routes.md) — selection policy, inheritance, discovery, and the fork restriction.
121
+ - [historical Model-selected subagent routes](../../../.agents/notes/archived/feature/2026-08-18-model-selected-subagent-routes.md) — selection policy, inheritance, discovery, and the fork restriction.
122
122
 
123
123
  -----
124
124
 
package/README.zh.md CHANGED
@@ -118,7 +118,7 @@ kind: "package-reference"
118
118
  - [生成工具目录](../../../docs/tool-catalog.zh.md#deepseek-aidsh-tool-subagent)——默认 schema 与各模式的措辞。
119
119
  - [生成配置目录](../../../docs/config-catalog.zh.md#deepseek-aidsh-tool-subagent)——每个受支持配置字段。
120
120
  - [后台优先的可继续委派](../../../.agents/notes/archived/feature/2026-08-11-background-first-continuable-delegation.md)——可继续工作为何默认在后台运行。
121
- - [模型选择 subagent 路由](../../../.agents/notes/implemented/feature/2026-08-18-model-selected-subagent-routes.zh.md)——选择策略、继承、发现与 fork 限制。
121
+ - [历史模型选择 subagent 路由](../../../.agents/notes/archived/feature/2026-08-18-model-selected-subagent-routes.md)——选择策略、继承、发现与 fork 限制。
122
122
 
123
123
  -----
124
124
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deepseek-ai/dsh-tool-subagent",
3
3
  "description": "Model-facing subagent delegation tool over the ctx.subagents seam",
4
- "version": "0.2.0-rc.2",
4
+ "version": "0.2.1-alpha.1",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -22,54 +22,47 @@
22
22
  "types": "./lib/types/model-selection-settings.d.ts",
23
23
  "default": "./lib/model-selection-settings.js"
24
24
  },
25
- "./invariant": {
26
- "types": "./lib/types/invariant.d.ts",
27
- "default": "./lib/invariant.js"
28
- },
29
25
  "./src/*": "./src/*",
30
26
  "./package.json": "./package.json"
31
27
  },
32
28
  "files": [
33
29
  "lib/index.js",
34
- "lib/invariant.js",
35
30
  "lib/model-selection-settings.js",
36
31
  "lib/types/**/*.d.ts"
37
32
  ],
38
33
  "license": "MIT",
39
34
  "peerDependencies": {
40
- "@deepseek-ai/dsh-agent": "0.2.0-rc.2",
41
- "@deepseek-ai/dsh-llm": "0.2.0-rc.2",
42
- "@deepseek-ai/dsh-session": "0.2.0-rc.2",
43
- "@deepseek-ai/dsh-session-projection": "0.2.0-rc.2",
44
- "@deepseek-ai/dsh-scope": "0.2.0-rc.2",
45
- "@deepseek-ai/dsh-system-prompt": "0.2.0-rc.2",
46
- "@deepseek-ai/dsh-jobs": "0.2.0-rc.2",
47
- "@deepseek-ai/dsh-tools": "0.2.0-rc.2",
48
- "@deepseek-ai/cordis": "~4.0.4",
49
- "@deepseek-ai/dsh-invariants": "0.2.0-rc.2",
50
- "@deepseek-ai/dsh-subagent": "0.2.0-rc.2"
35
+ "@deepseek-ai/dsh-agent": "0.2.1-alpha.1",
36
+ "@deepseek-ai/dsh-llm": "0.2.1-alpha.1",
37
+ "@deepseek-ai/dsh-session": "0.2.1-alpha.1",
38
+ "@deepseek-ai/dsh-session-projection": "0.2.1-alpha.1",
39
+ "@deepseek-ai/dsh-scope": "0.2.1-alpha.1",
40
+ "@deepseek-ai/dsh-subagent": "0.2.1-alpha.1",
41
+ "@deepseek-ai/dsh-system-prompt": "0.2.1-alpha.1",
42
+ "@deepseek-ai/dsh-jobs": "0.2.1-alpha.1",
43
+ "@deepseek-ai/dsh-tools": "0.2.1-alpha.1",
44
+ "@deepseek-ai/cordis": "~4.0.5-alpha.1"
51
45
  },
52
46
  "dependencies": {
53
47
  "zod": "^4.4.3",
54
- "@deepseek-ai/schemastery": "~3.18.4"
48
+ "@deepseek-ai/schemastery": "~3.18.5-alpha.1"
55
49
  },
56
50
  "devDependencies": {
57
- "@deepseek-ai/cordis-plugin-loader": "~1.0.5",
58
- "@deepseek-ai/dsh-agent": "0.2.0-rc.2",
59
- "@deepseek-ai/dsh-invariants": "0.2.0-rc.2",
60
- "@deepseek-ai/dsh-llm": "0.2.0-rc.2",
61
- "@deepseek-ai/dsh-session": "0.2.0-rc.2",
62
- "@deepseek-ai/dsh-scope": "0.2.0-rc.2",
63
- "@deepseek-ai/dsh-session-persistence": "0.2.0-rc.2",
64
- "@deepseek-ai/dsh-session-persistence-jsonl": "0.2.0-rc.2",
65
- "@deepseek-ai/dsh-subagent-spawn-in-process": "0.2.0-rc.2",
66
- "@deepseek-ai/dsh-system-prompt": "0.2.0-rc.2",
67
- "@deepseek-ai/dsh-jobs": "0.2.0-rc.2",
68
- "@deepseek-ai/dsh-tool-jobs": "0.2.0-rc.2",
69
- "@deepseek-ai/dsh-tools": "0.2.0-rc.2",
70
- "@deepseek-ai/dsh-jobs-local": "0.2.0-rc.2",
71
- "@deepseek-ai/cordis": "~4.0.4",
72
- "@deepseek-ai/dsh-session-projection": "0.2.0-rc.2",
73
- "@deepseek-ai/dsh-subagent": "0.2.0-rc.2"
51
+ "@deepseek-ai/cordis-plugin-loader": "~1.0.6-alpha.1",
52
+ "@deepseek-ai/dsh-agent": "0.2.1-alpha.1",
53
+ "@deepseek-ai/dsh-llm": "0.2.1-alpha.1",
54
+ "@deepseek-ai/dsh-session": "0.2.1-alpha.1",
55
+ "@deepseek-ai/dsh-scope": "0.2.1-alpha.1",
56
+ "@deepseek-ai/dsh-session-persistence-jsonl": "0.2.1-alpha.1",
57
+ "@deepseek-ai/dsh-subagent": "0.2.1-alpha.1",
58
+ "@deepseek-ai/dsh-session-persistence": "0.2.1-alpha.1",
59
+ "@deepseek-ai/dsh-subagent-spawn-in-process": "0.2.1-alpha.1",
60
+ "@deepseek-ai/dsh-tool-jobs": "0.2.1-alpha.1",
61
+ "@deepseek-ai/dsh-system-prompt": "0.2.1-alpha.1",
62
+ "@deepseek-ai/dsh-tools": "0.2.1-alpha.1",
63
+ "@deepseek-ai/cordis": "~4.0.5-alpha.1",
64
+ "@deepseek-ai/dsh-session-projection": "0.2.1-alpha.1",
65
+ "@deepseek-ai/dsh-jobs": "0.2.1-alpha.1",
66
+ "@deepseek-ai/dsh-jobs-local": "0.2.1-alpha.1"
74
67
  }
75
68
  }
package/lib/invariant.js DELETED
@@ -1,52 +0,0 @@
1
- import { z } from "zod";
2
- import "@deepseek-ai/dsh-llm";
3
- import z$1 from "@deepseek-ai/schemastery";
4
- z$1.object({
5
- provider: z$1.string().min(1).required(),
6
- model: z$1.string().min(1).required()
7
- });
8
- z.array(z.object({
9
- provider: z.string().min(1),
10
- model: z.string().min(1)
11
- }).strict()).min(1).nullable();
12
- /**
13
- * Read the exact route list captured for a model-selectable definition.
14
- * @param projections - registry that owns the policy projection.
15
- * @param session - session whose durable decision is read.
16
- * @returns a detached route list, or undefined for the fixed-route definition.
17
- */
18
- function subagentModelSelectionPolicy(projections, session) {
19
- return projections.stateOf(session, "subagentModelSelectionPolicy")?.map((route) => ({ ...route }));
20
- }
21
- //#endregion
22
- //#region lib/types/invariant.js
23
- /**
24
- * Package-owned invariant companion for `@deepseek-ai/dsh-tool-subagent`.
25
- * @module @deepseek-ai/dsh-tool-subagent/invariant
26
- */
27
- const PACKAGE_NAME = "@deepseek-ai/dsh-tool-subagent";
28
- /** Cordis companion plugin name. */
29
- const name = "tool-subagent-invariant";
30
- /** Service required before the companion can reserve package ownership. */
31
- const inject = ["invariants"];
32
- /** Assert that model-selectable definitions are complete and reconstructable. */
33
- const install = Object.assign((ctx, fail) => {
34
- ctx.on("agent/pre-step", async ({ agent }, next) => {
35
- const schemas = ctx.tools.schemas(agent);
36
- const selectable = schemas.some((schema) => {
37
- const properties = schema.parameters.properties;
38
- return properties?.["provider"] !== void 0 && properties["model"] !== void 0 && properties["reasoning_effort"] !== void 0;
39
- });
40
- const discoverable = schemas.some((schema) => schema.name === "list_subagent_models");
41
- if ((selectable || discoverable) && (subagentModelSelectionPolicy(ctx.sessionProjections, agent.session) === void 0 || !selectable || !discoverable)) fail("model-selectable subagent definitions require a durable policy, route fields, and list_subagent_models");
42
- return next();
43
- }, { global: true });
44
- }, { inject: ["tools", "sessionProjections"] });
45
- /**
46
- * Register this package's invariant companion.
47
- * @param ctx - Cordis context carrying the invariant service.
48
- * @returns the installed registration's disposer after setup succeeds.
49
- */
50
- const apply = (ctx) => Promise.resolve(ctx.invariants.register(PACKAGE_NAME, install));
51
- //#endregion
52
- export { apply, inject, name };
@@ -1,16 +0,0 @@
1
- /**
2
- * Package-owned invariant companion for `@deepseek-ai/dsh-tool-subagent`.
3
- * @module @deepseek-ai/dsh-tool-subagent/invariant
4
- */
5
- import type { Context } from '@deepseek-ai/cordis';
6
- /** Cordis companion plugin name. */
7
- export declare const name = "tool-subagent-invariant";
8
- /** Service required before the companion can reserve package ownership. */
9
- export declare const inject: string[];
10
- /**
11
- * Register this package's invariant companion.
12
- * @param ctx - Cordis context carrying the invariant service.
13
- * @returns the installed registration's disposer after setup succeeds.
14
- */
15
- export declare const apply: (ctx: Context) => Promise<() => void>;
16
- //# sourceMappingURL=invariant.d.ts.map