@lmzhen/dsh-evolution-agent-preset 0.3.73 → 0.3.76

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 CHANGED
@@ -19,8 +19,70 @@ Zero direct token effect from this package; consumers add any model-visible toke
19
19
 
20
20
  Independent of request-prefix construction. This package does not alter the assembled prompt or tool list.
21
21
 
22
+ ## Preset variants
23
+
24
+ `agent.cordis.yml` here is a DELTA: the four evolution model-tool rows and nothing else.
25
+ The installed preset is GENERATED at install time by `packages/scripts/install-layered.mjs`
26
+ (agent / layered modes), which prepends the RUNTIME platform composition the `--base` names
27
+ and writes the result to `$DSH_HOME/.agent-presets/<id>/agent.cordis.yml`. No platform row is
28
+ vendored — the preset follows whichever platform the user actually has.
29
+
30
+ | `--base` | Platform composition (read verbatim) | Installed preset id | Metadata file |
31
+ |---|---|---|---|
32
+ | `standard` (default) | `<platform>/standard/agent.cordis.yml` | `evolution` | `preset.yml` |
33
+ | `ptc` | `<platform>/ptc/agent.cordis.yml` | `evolution-ptc` | `preset.ptc.yml` |
34
+
35
+ `bases.json` in this package is the single table behind all four columns — the installer
36
+ (`AGENT_PRESET_BASES`) and the host command (`/evolution preset install --base <name>`) both
37
+ read THIS file, so a base cannot be half-added (a directory one consumer knows about and
38
+ another does not) and the two install paths cannot disagree. It also carries `default`. A base whose
39
+ runtime composition is absent — an older platform with no `ptc` preset, a preset root that does
40
+ not carry it — is REFUSED with a named error; it is never composed from another base. The V10-14
41
+ `tool-skill` catalog-cap injection (`injectToolSkillCap`) runs on the composed output
42
+ for every base, and the row-collision guard still fails loud when a delta row id appears in the
43
+ platform composition.
44
+
45
+ ### PTC base (`--base ptc`)
46
+
47
+ Composes the platform's `ptc` preset — the standard coding agent with `run_code` as the model's
48
+ composition surface — plus this delta, so the family's `memory`, `skill_manage` and
49
+ `session_search` entry points reach a PTC session.
50
+
51
+ Known limitations of this base:
52
+
53
+ - **Tools are SDK members, not schemas.** PTC presents only `run_code` plus a generated SDK, and
54
+ the model may call `run_code` alone; every family tool is reached as a member inside a code
55
+ program. Prompt text that names a family tool as directly callable is a model-facing wording
56
+ question owned by the persona / tool-description packages, not by this container.
57
+ - **A deployment without a code runtime refuses the preset at mount**, naming
58
+ `tool-presentation`; that row and its requirement come from the platform `ptc` preset and are
59
+ not something this variant can soften.
60
+ - **Both install paths produce this variant** (0.3.75): `/evolution preset install --base ptc`
61
+ (npm, `evolution-commands`) and `install-layered.mjs --base ptc` (source checkout) read the same
62
+ `bases.json` and write `.agent-presets/evolution-ptc/`. It still only composes a platform that
63
+ actually ships the `ptc` preset; a `standard`-only runtime is refused by name.
64
+ - **Tool-use observation under PTC** depends on the family reading dispatches through
65
+ `evolution-core`'s dispatch normalizer rather than matching a platform event vocabulary; a
66
+ consumer that matches `tool/call` directly goes blind in this mode (the arch guard rejects that
67
+ form).
68
+
22
69
  ## Known Limitations and Deferred Work
23
70
 
24
71
 
25
72
  - No known durable consumer gaps at this time. Runtime contracts are covered by package and boundary tests.
26
73
 
74
+ ### Base coverage
75
+
76
+ `bases.json` carries `standard` and `ptc`. There is no `cordis` base, and the
77
+ reason is mechanical: the cordis preset's extra row is `tool-cordis`, which
78
+ injects `dynamicCordisRunner` — a service mounted only by the `web-app` bundle.
79
+ A cordis-based preset installed on a headless, ACP or SDK profile would mount a
80
+ row whose injection cannot be satisfied, and a preset row that never activates is
81
+ refused at mount time rather than degraded. Cordis sessions get the family
82
+ through the profile-wide `all` install, which needs no variant.
83
+
84
+ `minimal` is out of scope for the same class of reason: it mounts no skill or
85
+ file tool rows for the family to write through (see `packages/INSTALL.md`).
86
+
87
+ **Runtime invariant:** No companion is published. The platform auto-assembles nothing and the family mounts no `<pkg>/invariant` cordis row, so a companion here would never execute (v37 S2.1 / I-3).
88
+
package/bases.json ADDED
@@ -0,0 +1,15 @@
1
+ {
2
+ "default": "standard",
3
+ "bases": [
4
+ {
5
+ "name": "standard",
6
+ "id": "evolution",
7
+ "metadata": "preset.yml"
8
+ },
9
+ {
10
+ "name": "ptc",
11
+ "id": "evolution-ptc",
12
+ "metadata": "preset.ptc.yml"
13
+ }
14
+ ]
15
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lmzhen/dsh-evolution-agent-preset",
3
3
  "description": "Agent preset exposing memory and skill evolution tools to a session (community build)",
4
- "version": "0.3.73",
4
+ "version": "0.3.76",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -13,7 +13,9 @@
13
13
  "type": "module",
14
14
  "files": [
15
15
  "agent.cordis.yml",
16
+ "bases.json",
16
17
  "preset.yml",
18
+ "preset.ptc.yml",
17
19
  "package.json",
18
20
  "lib/*.js",
19
21
  "lib/types/**/*.d.ts"
@@ -21,31 +23,21 @@
21
23
  "license": "MIT",
22
24
  "dependencies": {
23
25
  "@deepseek-ai/dsh-tool-session-query": "^0.1.5-rc.2",
24
- "@lmzhen/dsh-tool-memory": "^0.3.73",
25
- "@lmzhen/dsh-tool-skill-manage": "^0.3.73",
26
- "@lmzhen/dsh-evolution-skill-catalog": "^0.3.73"
26
+ "@lmzhen/dsh-tool-memory": "^0.3.76",
27
+ "@lmzhen/dsh-tool-skill-manage": "^0.3.76",
28
+ "@lmzhen/dsh-evolution-skill-catalog": "^0.3.76"
27
29
  },
28
30
  "exports": {
29
- "./invariant": {
30
- "types": "./lib/types/invariant.d.ts",
31
- "default": "./lib/invariant.js"
32
- },
33
31
  ".": {
34
32
  "types": "./lib/types/index.d.ts",
35
33
  "default": "./lib/index.js"
36
34
  },
37
35
  "./agent.cordis.yml": "./agent.cordis.yml",
36
+ "./bases.json": "./bases.json",
38
37
  "./preset.yml": "./preset.yml",
38
+ "./preset.ptc.yml": "./preset.ptc.yml",
39
39
  "./package.json": "./package.json"
40
40
  },
41
- "peerDependencies": {
42
- "@deepseek-ai/dsh-invariants": "^0.1.5-rc.2",
43
- "@deepseek-ai/cordis": "^4.0.1"
44
- },
45
- "devDependencies": {
46
- "@deepseek-ai/dsh-invariants": "^0.1.5-rc.2",
47
- "@deepseek-ai/cordis": "^4.0.1"
48
- },
49
41
  "main": "lib/index.js",
50
42
  "types": "lib/types/index.d.ts"
51
43
  }
package/preset.ptc.yml ADDED
@@ -0,0 +1,3 @@
1
+ name: Evolution PTC
2
+ description: Based on the platform ptc preset plus the Evolution family rows - durable memory and skill evolution tools, with run_code as the model's composition surface.
3
+ order: 11
package/lib/invariant.js DELETED
@@ -1,8 +0,0 @@
1
- //#region lib/types/invariant.js
2
- const PACKAGE_NAME = "@lmzhen/dsh-evolution-agent-preset";
3
- const name = "evolution-agent-invariant";
4
- const inject = ["invariants"];
5
- const install = () => {};
6
- const apply = (ctx) => Promise.resolve(ctx.invariants.register(PACKAGE_NAME, install));
7
- //#endregion
8
- export { apply, inject, name };
@@ -1,5 +0,0 @@
1
- import type { Context } from '@deepseek-ai/cordis';
2
- export declare const name = "evolution-agent-invariant";
3
- export declare const inject: string[];
4
- export declare const apply: (ctx: Context) => Promise<() => void>;
5
- //# sourceMappingURL=invariant.d.ts.map