@lmzhen/dsh-evolution-core 0.37.0 → 0.38.0
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 +3 -1
- package/lib/composition/index.js +2 -2
- package/lib/{composition-3QFfEe56.js → composition-dy0gJWDd.js} +1 -1
- package/lib/{ensure-C2tUoF5U.js → ensure-B4fjEI0w.js} +4 -11
- package/lib/{errors-DRZ9A187.js → errors-DUcEoTLR.js} +4 -4
- package/lib/index.js +37 -1305
- package/lib/platform/index.js +4 -0
- package/lib/platform-Be-_wSVz.js +113 -0
- package/lib/presets-C8vuCuNA.js +27 -0
- package/lib/restrictor.js +8 -8
- package/lib/runtime/plugin.js +197 -0
- package/lib/session-projection-CXUNPkq9.js +1250 -0
- package/lib/subagent/index.js +1 -1
- package/lib/tools-DzcNFex2.js +20 -0
- package/lib/types/composition/ensure.js +3 -13
- package/lib/types/errors.d.ts +4 -4
- package/lib/types/errors.js +4 -4
- package/lib/types/opt-in.d.ts +1 -1
- package/lib/types/opt-in.js +1 -1
- package/lib/types/params.js +7 -7
- package/lib/types/platform/index.d.ts +21 -0
- package/lib/types/platform/index.js +12 -0
- package/lib/types/platform/llm.d.ts +46 -0
- package/lib/types/platform/llm.js +75 -0
- package/lib/types/platform/presets.d.ts +31 -0
- package/lib/types/platform/presets.js +31 -0
- package/lib/types/platform/projections.d.ts +30 -0
- package/lib/types/platform/projections.js +31 -0
- package/lib/types/platform/tools.d.ts +23 -0
- package/lib/types/platform/tools.js +21 -0
- package/lib/types/platform-line.generated.d.ts +6 -6
- package/lib/types/platform-line.generated.js +6 -6
- package/lib/types/platform-services.d.ts +1 -1
- package/lib/types/platform-services.js +4 -1
- package/lib/types/restrictor.js +7 -9
- package/lib/types/runtime/llm.d.ts +34 -0
- package/lib/types/runtime/llm.js +71 -0
- package/lib/types/runtime/platform.d.ts +35 -0
- package/lib/types/runtime/platform.js +38 -0
- package/lib/types/runtime/plugin.d.ts +10 -0
- package/lib/types/runtime/plugin.js +11 -0
- package/lib/types/runtime/projections.d.ts +29 -0
- package/lib/types/runtime/projections.js +62 -0
- package/lib/types/scope.d.ts +1 -1
- package/lib/types/session-projection.d.ts +26 -53
- package/lib/types/session-projection.js +22 -58
- package/lib/types/skill-reads.js +3 -3
- package/lib/types/subagent/types.d.ts +1 -1
- package/lib/types/tool-dispatch.d.ts +2 -2
- package/lib/types/tool-dispatch.js +3 -3
- package/package.json +30 -16
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
* mounted tool runtime's mode:
|
|
7
7
|
*
|
|
8
8
|
* - native mode: \`tool/call\` (with \`callId\`) settled by \`tool/result\`, the
|
|
9
|
-
* write sites being core/
|
|
9
|
+
* write sites being core/tools/src/batch.ts:247 and :256.
|
|
10
10
|
* - PTC mode: \`tool/ptc-dispatch-start\` and \`tool/ptc-dispatch\` (with
|
|
11
|
-
* \`subCallId\`), the write sites being core/
|
|
11
|
+
* \`subCallId\`), the write sites being core/tool-executor-ptc/src/ptc.ts:577 and :550.
|
|
12
12
|
*
|
|
13
13
|
* A consumer that matches a vocabulary directly therefore goes blind in the
|
|
14
14
|
* other mode while still appearing to work — the defect this module exists to
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
* mounted tool runtime's mode:
|
|
7
7
|
*
|
|
8
8
|
* - native mode: \`tool/call\` (with \`callId\`) settled by \`tool/result\`, the
|
|
9
|
-
* write sites being core/
|
|
9
|
+
* write sites being core/tools/src/batch.ts:247 and :256.
|
|
10
10
|
* - PTC mode: \`tool/ptc-dispatch-start\` and \`tool/ptc-dispatch\` (with
|
|
11
|
-
* \`subCallId\`), the write sites being core/
|
|
11
|
+
* \`subCallId\`), the write sites being core/tool-executor-ptc/src/ptc.ts:577 and :550.
|
|
12
12
|
*
|
|
13
13
|
* A consumer that matches a vocabulary directly therefore goes blind in the
|
|
14
14
|
* other mode while still appearing to work — the defect this module exists to
|
|
@@ -359,7 +359,7 @@ const PROGRAM_TOOL_NAMES = new Set(['run_code']);
|
|
|
359
359
|
* (default `read`). A differently named tool is configured, not guessed. */
|
|
360
360
|
export const DEFAULT_SUPPORT_READ_TOOL_NAMES = ['read'];
|
|
361
361
|
/** Dispatch arguments: a JSON string in native mode and an already-parsed
|
|
362
|
-
* object in PTC mode (core/
|
|
362
|
+
* object in PTC mode (core/tool-executor-ptc/src/types.ts:11-23) — parsed defensively so no
|
|
363
363
|
* consumer has to trust one modality's encoding. */
|
|
364
364
|
function parsedArguments(signal) {
|
|
365
365
|
let parsed = signal.arguments;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lmzhen/dsh-evolution-core",
|
|
3
3
|
"description": "Shared stores, prompts, signals and lifecycle logic for the dsh-evolution plugin family (community build)",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.38.0",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -30,6 +30,14 @@
|
|
|
30
30
|
"types": "./lib/types/http-routes.d.ts",
|
|
31
31
|
"default": "./lib/http-routes.js"
|
|
32
32
|
},
|
|
33
|
+
"./runtime": {
|
|
34
|
+
"types": "./lib/types/runtime/plugin.d.ts",
|
|
35
|
+
"default": "./lib/runtime/plugin.js"
|
|
36
|
+
},
|
|
37
|
+
"./platform": {
|
|
38
|
+
"types": "./lib/types/platform/index.d.ts",
|
|
39
|
+
"default": "./lib/platform/index.js"
|
|
40
|
+
},
|
|
33
41
|
"./restrictor": {
|
|
34
42
|
"types": "./lib/types/restrictor.d.ts",
|
|
35
43
|
"default": "./lib/restrictor.js"
|
|
@@ -49,29 +57,35 @@
|
|
|
49
57
|
"yaml": "^2.4.2",
|
|
50
58
|
"zod": "^4.4.3",
|
|
51
59
|
"js-yaml": "^4.1.0",
|
|
52
|
-
"@lmzhen/dsh-evolution-contract": "^0.
|
|
60
|
+
"@lmzhen/dsh-evolution-contract": "^0.38.0"
|
|
53
61
|
},
|
|
54
62
|
"peerDependencies": {
|
|
55
63
|
"@deepseek-ai/cordis": "^4.0.5",
|
|
56
|
-
"@deepseek-ai/dsh-scope": "^0.2.
|
|
57
|
-
"@deepseek-ai/dsh-session": "^0.2.
|
|
58
|
-
"@deepseek-ai/dsh-session-projection": "^0.2.
|
|
59
|
-
"@deepseek-ai/dsh-agent": "^0.2.
|
|
60
|
-
"@deepseek-ai/dsh-subagent": "^0.2.
|
|
61
|
-
"@deepseek-ai/dsh-tools": "^0.2.
|
|
64
|
+
"@deepseek-ai/dsh-scope": "^0.2.2-rc.0",
|
|
65
|
+
"@deepseek-ai/dsh-session": "^0.2.2-rc.0",
|
|
66
|
+
"@deepseek-ai/dsh-session-projection": "^0.2.2-rc.0",
|
|
67
|
+
"@deepseek-ai/dsh-agent": "^0.2.2-rc.0",
|
|
68
|
+
"@deepseek-ai/dsh-subagent": "^0.2.2-rc.0",
|
|
69
|
+
"@deepseek-ai/dsh-tools": "^0.2.2-rc.0",
|
|
70
|
+
"@deepseek-ai/dsh-commands": "^0.2.2-rc.0",
|
|
71
|
+
"@deepseek-ai/dsh-llm": "^0.2.2-rc.0",
|
|
72
|
+
"@deepseek-ai/dsh-system-prompt": "^0.2.2-rc.0"
|
|
62
73
|
},
|
|
63
74
|
"devDependencies": {
|
|
64
75
|
"@deepseek-ai/cordis": "^4.0.5",
|
|
65
|
-
"@deepseek-ai/dsh-scope": "^0.2.
|
|
66
|
-
"@deepseek-ai/dsh-session": "^0.2.
|
|
67
|
-
"@deepseek-ai/dsh-session-projection": "^0.2.
|
|
68
|
-
"@deepseek-ai/dsh-agent": "^0.2.
|
|
69
|
-
"@deepseek-ai/dsh-subagent": "^0.2.
|
|
70
|
-
"@deepseek-ai/dsh-tools": "^0.2.
|
|
76
|
+
"@deepseek-ai/dsh-scope": "^0.2.2-rc.0",
|
|
77
|
+
"@deepseek-ai/dsh-session": "^0.2.2-rc.0",
|
|
78
|
+
"@deepseek-ai/dsh-session-projection": "^0.2.2-rc.0",
|
|
79
|
+
"@deepseek-ai/dsh-agent": "^0.2.2-rc.0",
|
|
80
|
+
"@deepseek-ai/dsh-subagent": "^0.2.2-rc.0",
|
|
81
|
+
"@deepseek-ai/dsh-tools": "^0.2.2-rc.0",
|
|
71
82
|
"@types/js-yaml": "^4.0.9",
|
|
72
|
-
"js-yaml": "^4.1.0"
|
|
83
|
+
"js-yaml": "^4.1.0",
|
|
84
|
+
"@deepseek-ai/dsh-commands": "^0.2.2-rc.0",
|
|
85
|
+
"@deepseek-ai/dsh-llm": "^0.2.2-rc.0",
|
|
86
|
+
"@deepseek-ai/dsh-system-prompt": "^0.2.2-rc.0"
|
|
73
87
|
},
|
|
74
88
|
"engines": {
|
|
75
|
-
"dsh": ">=0.2.
|
|
89
|
+
"dsh": ">=0.2.2-rc.0 <0.2.3-0"
|
|
76
90
|
}
|
|
77
91
|
}
|