@lmzhen/dsh-evolution-agent-preset 0.32.4 → 0.32.6
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 +9 -90
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -1,99 +1,18 @@
|
|
|
1
1
|
# @lmzhen/dsh-evolution-agent-preset
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Composition package for the layered Evolution agent preset. Its substance is `agent.cordis.yml` and `bases.json`; the JavaScript entry has no runtime API.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Install `evolution-host` first, then generate the preset with `/evolution preset install`. Only sessions that select an Evolution preset receive the memory/skill model tools. Original platform presets receive no evolution behavior, although the host-level `/evolution` management commands remain visible.
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
- **Prompt prefix / KV cache:** the composed preset is the platform's own base composition plus this delta; this package adds no prompt text of its own. Family rules: `packages/README.md` §"Model-visible prompt prefix and the KV cache".
|
|
9
|
-
- **Mount it?** yes — the agent preset DELTA (`agent.cordis.yml`), installed by `install-layered.mjs` (agent/layered modes) or `/evolution preset install`; not a profile row.
|
|
7
|
+
The layered preset is mutually exclusive with `all`, `preset`, and another host bundle. This package is not a standalone `dsh plugin add` install target.
|
|
10
8
|
|
|
11
|
-
## Preset
|
|
12
|
-
|
|
13
|
-
`agent.cordis.yml` here is a DELTA: the four evolution model-tool rows and nothing else.
|
|
14
|
-
The installed preset is GENERATED at install time by `packages/scripts/install-layered.mjs`
|
|
15
|
-
(agent / layered modes) or by `/evolution preset install`, which prepends the RUNTIME platform
|
|
16
|
-
composition the `--base` names and writes the result as ONE `- insert:` row in the target
|
|
17
|
-
profile's own patch layer (`<home>/profiles/<profile>/cordis.patch.yml`). No platform row is
|
|
18
|
-
vendored — the preset follows whichever platform the user actually has. 0.2.x removed the preset
|
|
19
|
-
DIRECTORY: a preset is an ordinary composition row (`packages/preset/agent-preset/src/index.ts`),
|
|
20
|
-
so no `.agent-presets/` tree is produced any more.
|
|
9
|
+
## Preset bases
|
|
21
10
|
|
|
22
11
|
| `--base` | Platform base patch (read verbatim) | Preset id | Row id | Display copy |
|
|
23
12
|
|---|---|---|---|---|
|
|
24
|
-
| `standard`
|
|
25
|
-
| `ptc` | `presets/ptc.patch.yml` | `evolution-ptc` | `preset-evolution-ptc` |
|
|
26
|
-
| `cordis`
|
|
27
|
-
| `minimal`
|
|
28
|
-
|
|
29
|
-
The base patches are the platform's own shipped presets
|
|
30
|
-
(`packages/bundle/web-app/presets/<base>.patch.yml`); inside the desktop app they live in
|
|
31
|
-
`resources/app.asar`, so `DSH_AGENT_PRESET_ROOT` can point at a same-version copy.
|
|
32
|
-
|
|
33
|
-
There is no metadata FILE any more. A declarative row carries its own display copy, and the
|
|
34
|
-
platform renders an id it did not ship from the row itself
|
|
35
|
-
(`packages/preset/agent-preset-registry/src/display.ts`), so both install paths write `name`,
|
|
36
|
-
`description` and `order` into the row out of `bases.json` `display` — a variant without them
|
|
37
|
-
shows the bare id. The four former `preset*.yml` files were deleted with the directory
|
|
38
|
-
mechanism.
|
|
39
|
-
|
|
40
|
-
`bases.json` in this package is the single table behind every column above: the installer
|
|
41
|
-
(`AGENT_PRESET_BASES`) and the host command (`/evolution preset install --base <name>`) both
|
|
42
|
-
read THIS file, so a base cannot be half-added (a directory one consumer knows about and
|
|
43
|
-
another does not) and the two install paths cannot disagree. It also carries `default`. A base whose
|
|
44
|
-
runtime composition is absent (an older platform with no `ptc` preset, a preset root that does
|
|
45
|
-
not carry it) is REFUSED with a named error; it is never composed from another base. The V10-14
|
|
46
|
-
`tool-skill` catalog-cap injection (`injectToolSkillCap`) runs on the composed output
|
|
47
|
-
for every base, and the row-collision guard still fails loud when a delta row id appears in the
|
|
48
|
-
platform composition.
|
|
49
|
-
|
|
50
|
-
### PTC base (`--base ptc`)
|
|
51
|
-
|
|
52
|
-
Composes the platform's `ptc` preset (the standard coding agent with `run_code` as the model's
|
|
53
|
-
composition surface) plus this delta, so the family's `memory`, `skill_manage` and
|
|
54
|
-
`session_search` entry points reach a PTC session.
|
|
55
|
-
|
|
56
|
-
Known limitations of this base:
|
|
57
|
-
|
|
58
|
-
- **Tools are SDK members, not schemas.** PTC presents only `run_code` plus a generated SDK, and
|
|
59
|
-
the model may call `run_code` alone; every family tool is reached as a member inside a code
|
|
60
|
-
program. Prompt text that names a family tool as directly callable is a model-facing wording
|
|
61
|
-
question owned by the persona / tool-description packages, not by this container.
|
|
62
|
-
- **A deployment without a code runtime refuses the preset at mount**, naming
|
|
63
|
-
`tool-presentation`; that row and its requirement come from the platform `ptc` preset and are
|
|
64
|
-
not something this variant can soften.
|
|
65
|
-
- **Both install paths produce this variant**. The npm command and the source installer read the same `bases.json`.
|
|
66
|
-
- **Tool-use observation under PTC** depends on the family reading dispatches through
|
|
67
|
-
`evolution-core`'s dispatch normalizer rather than matching a platform event vocabulary; a
|
|
68
|
-
consumer that matches `tool/call` directly goes blind in this mode (the arch guard rejects that
|
|
69
|
-
form).
|
|
70
|
-
|
|
71
|
-
## Known limitations
|
|
72
|
-
|
|
73
|
-
- No known durable consumer gaps at this time. Runtime contracts are covered by package and boundary tests.
|
|
74
|
-
|
|
75
|
-
### Base coverage
|
|
76
|
-
|
|
77
|
-
`bases.json` carries four bases and is the single table behind the installer
|
|
78
|
-
(`AGENT_PRESET_BASES`), `/evolution preset install --base <name>` and the table
|
|
79
|
-
above: `standard` (default), `ptc`, `cordis` and `minimal`. Two of them carry a
|
|
80
|
-
precondition the table itself declares, and both install paths refuse them by
|
|
81
|
-
name when it is unmet — the preset is never composed from another base:
|
|
82
|
-
|
|
83
|
-
- `cordis`: `requires: { service: 'dynamicCordisRunner' }`. The cordis preset's
|
|
84
|
-
extra row is `tool-cordis`, which injects `dynamicCordisRunner`, and that
|
|
85
|
-
service is mounted only by the `web-app` bundle. A cordis-based preset on a
|
|
86
|
-
headless, ACP or SDK profile would mount a row whose injection cannot be
|
|
87
|
-
satisfied, and a preset row that never activates is refused at mount time
|
|
88
|
-
rather than degraded. Cordis sessions otherwise get the family through the
|
|
89
|
-
profile-wide `all` install, which needs no variant.
|
|
90
|
-
- `minimal`: `unsupported`: the platform minimal composition is only persona +
|
|
91
|
-
persistent-shell, so it mounts no skill or file tool rows for the family to
|
|
92
|
-
write through (see `packages/INSTALL.md` §Platform mode × self-evolution).
|
|
93
|
-
|
|
94
|
-
**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).
|
|
95
|
-
|
|
96
|
-
## Notes and history
|
|
13
|
+
| `standard` | `presets/standard.patch.yml` | `evolution` | `preset-evolution` | Evolution |
|
|
14
|
+
| `ptc` | `presets/ptc.patch.yml` | `evolution-ptc` | `preset-evolution-ptc` | Evolution PTC |
|
|
15
|
+
| `cordis` | `presets/cordis.patch.yml` | `evolution-cordis` | `preset-evolution-cordis` | Evolution Cordis |
|
|
16
|
+
| `minimal` | `presets/minimal.patch.yml` | `evolution-minimal` | `preset-evolution-minimal` | Evolution Minimal (unsupported) |
|
|
97
17
|
|
|
98
|
-
|
|
99
|
-
- The V10-14 `tool-skill` catalog-cap injection (`injectToolSkillCap`) runs on the composed output for every base, and the row-collision guard still fails loud when a delta row id appears in the platform composition.
|
|
18
|
+
`cordis` requires `dynamicCordisRunner`; `minimal` is unsupported.
|
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.32.
|
|
4
|
+
"version": "0.32.6",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
],
|
|
21
21
|
"license": "MIT",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@lmzhen/dsh-tool-memory": "^0.32.
|
|
24
|
-
"@lmzhen/dsh-tool-skill-manage": "^0.32.
|
|
25
|
-
"@lmzhen/dsh-evolution-skill-catalog": "^0.32.
|
|
26
|
-
"@lmzhen/dsh-evolution-core": "^0.32.
|
|
27
|
-
"@lmzhen/dsh-evolution-skill-discovery": "^0.32.
|
|
23
|
+
"@lmzhen/dsh-tool-memory": "^0.32.6",
|
|
24
|
+
"@lmzhen/dsh-tool-skill-manage": "^0.32.6",
|
|
25
|
+
"@lmzhen/dsh-evolution-skill-catalog": "^0.32.6",
|
|
26
|
+
"@lmzhen/dsh-evolution-core": "^0.32.6",
|
|
27
|
+
"@lmzhen/dsh-evolution-skill-discovery": "^0.32.6"
|
|
28
28
|
},
|
|
29
29
|
"exports": {
|
|
30
30
|
".": {
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"types": "lib/types/index.d.ts",
|
|
40
40
|
"dsh": {
|
|
41
41
|
"resolverDependencies": [
|
|
42
|
-
"@
|
|
43
|
-
"@
|
|
42
|
+
"@lmzhen/dsh-evolution-core",
|
|
43
|
+
"@lmzhen/dsh-evolution-skill-discovery"
|
|
44
44
|
]
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|