@lmzhen/dsh-evolution-core 0.37.1 → 0.39.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.
Files changed (54) hide show
  1. package/README.md +4 -2
  2. package/lib/composition/index.js +2 -2
  3. package/lib/{composition-DckDtQTR.js → composition-dy0gJWDd.js} +1 -1
  4. package/lib/{ensure-CLF9YeBD.js → ensure-B4fjEI0w.js} +3 -10
  5. package/lib/index.js +67 -1302
  6. package/lib/platform/index.js +4 -0
  7. package/lib/platform-Be-_wSVz.js +113 -0
  8. package/lib/presets-C8vuCuNA.js +27 -0
  9. package/lib/restrictor.js +7 -7
  10. package/lib/runtime/plugin.js +197 -0
  11. package/lib/session-projection-CXUNPkq9.js +1250 -0
  12. package/lib/subagent/index.js +1 -1
  13. package/lib/tools-DzcNFex2.js +20 -0
  14. package/lib/types/composition/ensure.js +3 -13
  15. package/lib/types/events.d.ts +1 -1
  16. package/lib/types/index.d.ts +1 -0
  17. package/lib/types/index.js +1 -0
  18. package/lib/types/opt-in.d.ts +1 -1
  19. package/lib/types/opt-in.js +1 -1
  20. package/lib/types/params.js +2 -2
  21. package/lib/types/platform/index.d.ts +21 -0
  22. package/lib/types/platform/index.js +12 -0
  23. package/lib/types/platform/llm.d.ts +46 -0
  24. package/lib/types/platform/llm.js +75 -0
  25. package/lib/types/platform/presets.d.ts +31 -0
  26. package/lib/types/platform/presets.js +31 -0
  27. package/lib/types/platform/projections.d.ts +30 -0
  28. package/lib/types/platform/projections.js +31 -0
  29. package/lib/types/platform/tools.d.ts +23 -0
  30. package/lib/types/platform/tools.js +21 -0
  31. package/lib/types/platform-line.generated.d.ts +6 -6
  32. package/lib/types/platform-line.generated.js +6 -6
  33. package/lib/types/platform-services.d.ts +1 -1
  34. package/lib/types/platform-services.js +4 -1
  35. package/lib/types/restrictor.js +7 -9
  36. package/lib/types/review-context.d.ts +20 -0
  37. package/lib/types/review-context.js +28 -0
  38. package/lib/types/runtime/llm.d.ts +34 -0
  39. package/lib/types/runtime/llm.js +71 -0
  40. package/lib/types/runtime/platform.d.ts +35 -0
  41. package/lib/types/runtime/platform.js +38 -0
  42. package/lib/types/runtime/plugin.d.ts +10 -0
  43. package/lib/types/runtime/plugin.js +11 -0
  44. package/lib/types/runtime/projections.d.ts +29 -0
  45. package/lib/types/runtime/projections.js +62 -0
  46. package/lib/types/scope.d.ts +1 -1
  47. package/lib/types/session-projection.d.ts +26 -53
  48. package/lib/types/session-projection.js +22 -58
  49. package/lib/types/skill-reads.js +3 -3
  50. package/lib/types/skill-store.js +3 -0
  51. package/lib/types/subagent/types.d.ts +1 -1
  52. package/lib/types/tool-dispatch.d.ts +2 -2
  53. package/lib/types/tool-dispatch.js +3 -3
  54. 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/agent-loop/src/tool-calls.ts:264 and :282.
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/tools/src/ptc.ts:534 and :509.
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/tools/src/types.ts:11-23) — parsed defensively so no
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.37.1",
4
+ "version": "0.39.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.37.1"
60
+ "@lmzhen/dsh-evolution-contract": "^0.39.0"
53
61
  },
54
62
  "peerDependencies": {
55
63
  "@deepseek-ai/cordis": "^4.0.5",
56
- "@deepseek-ai/dsh-scope": "^0.2.1-rc.2",
57
- "@deepseek-ai/dsh-session": "^0.2.1-rc.2",
58
- "@deepseek-ai/dsh-session-projection": "^0.2.1-rc.2",
59
- "@deepseek-ai/dsh-agent": "^0.2.1-rc.2",
60
- "@deepseek-ai/dsh-subagent": "^0.2.1-rc.2",
61
- "@deepseek-ai/dsh-tools": "^0.2.1-rc.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.1-rc.2",
66
- "@deepseek-ai/dsh-session": "^0.2.1-rc.2",
67
- "@deepseek-ai/dsh-session-projection": "^0.2.1-rc.2",
68
- "@deepseek-ai/dsh-agent": "^0.2.1-rc.2",
69
- "@deepseek-ai/dsh-subagent": "^0.2.1-rc.2",
70
- "@deepseek-ai/dsh-tools": "^0.2.1-rc.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.1-rc.2 <0.2.2-0"
89
+ "dsh": ">=0.2.2-rc.0 <0.2.3-0"
76
90
  }
77
91
  }