@lmzhen/dsh-evolution-agent-preset 0.32.3 → 0.32.5

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 (2) hide show
  1. package/README.md +18 -87
  2. package/package.json +6 -6
package/README.md CHANGED
@@ -1,99 +1,30 @@
1
- # @lmzhen/dsh-evolution-agent-preset
1
+ # @lmzhen/dsh-evolution-agent
2
2
 
3
- Agent preset exposing memory and skill evolution tools to a session
3
+ > 分层安装用的 Evolution 预设。
4
4
 
5
- ## Model surface
5
+ ## 你会看到
6
6
 
7
- - **Model-visible:** nothing of its own: the delta registers no prompt and no tool schema; it mounts the four model rows (`tool-memory`, `tool-skill-manage`, `tool-session-query`, `evolution-skill-catalog`), which own what the model sees.
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
+ 新建会话时选择 Evolution;只有该会话有记忆/技能工具。
10
8
 
11
- ## Preset variants
9
+ ## 什么时候会用到
12
10
 
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.
11
+ 你只想在部分会话给工具时。
21
12
 
22
- | `--base` | Platform base patch (read verbatim) | Preset id | Row id | Display copy |
23
- |---|---|---|---|---|
24
- | `standard` (default) | `presets/standard.patch.yml` | `evolution` | `preset-evolution` | `Evolution` |
25
- | `ptc` | `presets/ptc.patch.yml` | `evolution-ptc` | `preset-evolution-ptc` | `Evolution PTC` |
26
- | `cordis` (`requires: dynamicCordisRunner`) | `presets/cordis.patch.yml` | `evolution-cordis` | `preset-evolution-cordis` | `Evolution Cordis` |
27
- | `minimal` (unsupported) | — | `evolution-minimal` | `preset-evolution-minimal` | `Evolution 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.
13
+ ## 默认 / 前提
55
14
 
56
- Known limitations of this base:
15
+ 需要先装 host;与 all/preset 互斥。
57
16
 
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).
17
+ ## 边界
70
18
 
71
- ## Known limitations
19
+ 不是 `dsh plugin add` 的安装目标。
72
20
 
73
- - No known durable consumer gaps at this time. Runtime contracts are covered by package and boundary tests.
21
+ ## 维护者参考(用户可跳过)
74
22
 
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
23
+ | `--base` | Platform base patch (read verbatim) | Preset id | Row id | Display copy |
24
+ |---|---|---|---|---|
25
+ | `standard` | `presets/standard.patch.yml` | `evolution` | `preset-evolution` | Evolution |
26
+ | `ptc` | `presets/ptc.patch.yml` | `evolution-ptc` | `preset-evolution-ptc` | Evolution PTC |
27
+ | `cordis` | `presets/cordis.patch.yml` | `evolution-cordis` | `preset-evolution-cordis` | Evolution Cordis |
28
+ | `minimal` | `presets/minimal.patch.yml` | `evolution-minimal` | `preset-evolution-minimal` | Evolution Minimal(unsupported) |
97
29
 
98
- - **Both install paths produce this variant** (0.3.75): `/evolution preset install --base ptc` (npm, `evolution-commands`) and `install-layered.mjs --base ptc` (source checkout) read the same `bases.json` and write the ptc row `preset-evolution-ptc` into the target profile's patch layer (0.2.x removed the `.agent-presets/` directory these paths used to write into). It still only composes a platform that actually ships the `ptc` preset; a `standard`-only runtime is refused by name.
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.
30
+ `cordis` 需要 `dynamicCordisRunner`;`minimal` 不支持。
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.3",
4
+ "version": "0.32.5",
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.3",
24
- "@lmzhen/dsh-tool-skill-manage": "^0.32.3",
25
- "@lmzhen/dsh-evolution-skill-catalog": "^0.32.3",
26
- "@lmzhen/dsh-evolution-core": "^0.32.3",
27
- "@lmzhen/dsh-evolution-skill-discovery": "^0.32.3"
23
+ "@lmzhen/dsh-tool-memory": "^0.32.5",
24
+ "@lmzhen/dsh-tool-skill-manage": "^0.32.5",
25
+ "@lmzhen/dsh-evolution-skill-catalog": "^0.32.5",
26
+ "@lmzhen/dsh-evolution-core": "^0.32.5",
27
+ "@lmzhen/dsh-evolution-skill-discovery": "^0.32.5"
28
28
  },
29
29
  "exports": {
30
30
  ".": {