ceulen 0.26.1 → 0.27.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/CHANGELOG.md +87 -0
- package/extensions/modules/config/piSettings.ts +1 -1
- package/extensions/modules/config/test/piSettings.test.ts +13 -0
- package/extensions/modules/subagent/index.ts +333 -69
- package/extensions/modules/subagent/lib/herdr-app.ts +917 -0
- package/extensions/modules/subagent/lib/herdr.ts +50 -29
- package/extensions/modules/subagent/lib/render.ts +52 -4
- package/extensions/modules/subagent/lib/runner.ts +5 -0
- package/extensions/modules/subagent/test/herdr-app.test.ts +572 -0
- package/extensions/modules/subagent/test/render-hint.test.ts +81 -0
- package/extensions/modules/web/test/configPanel.test.ts +20 -3
- package/extensions/modules/web/test/settings.test.ts +6 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,92 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.27.0 — 2026-11-17
|
|
4
|
+
|
|
5
|
+
**herdr-app is now a first-class subagent delegation backend.** ceulen's
|
|
6
|
+
visible-pane delegation only knew the herdr TUI (`herdr` CLI, `HERDR_ENV`), so
|
|
7
|
+
inside the Herdr desktop app (`HC_TERMINAL_ID`, `herdr-app` + herdr-core `hc`)
|
|
8
|
+
every dispatch silently fell back to the in-process SDK runner and the `herdr`
|
|
9
|
+
control tool refused to run at all. New `subagent/lib/herdr-app.ts` plus a
|
|
10
|
+
runner/control-tool rewire fixes that: one tab per agent type
|
|
11
|
+
(`herdr-app do tab.new`), one pane per instance, tasks via `hc send --wait`,
|
|
12
|
+
reports via the same file/inline contract, and the full
|
|
13
|
+
list/status/read/prompt/cancel/focus/close-tab/forget surface driven by `hc`.
|
|
14
|
+
|
|
15
|
+
- **Auto-detection, no new settings.** `HC_TERMINAL_ID` selects the app
|
|
16
|
+
backend; `subagent.herdr:"off"` and the `PI_SUBAGENT_HERDR=off` child guard
|
|
17
|
+
still disable delegation everywhere, and an explicit `runner:"herdr"`
|
|
18
|
+
outside the TUI keeps its existing error.
|
|
19
|
+
- **Readiness gate + turn-advance proof (live incident).** `hc send` pastes
|
|
20
|
+
into whatever is on screen; against a booting child the task sat unsent in
|
|
21
|
+
its composer while `hc send --wait` still reported a settled turn, so the
|
|
22
|
+
parent collected its own echoed task as success. The backend now waits for a
|
|
23
|
+
live input-ready pi and refuses a "settled" reply whose turn never advanced.
|
|
24
|
+
- **No more echo collected as a report.** A pane capture is cut to the text
|
|
25
|
+
after the delivery contract; an echo-only pane yields no output, so the
|
|
26
|
+
dispatch fails loudly instead of returning a false success.
|
|
27
|
+
- **`done` counts as ready.** pi reports `done` for a turn that finished
|
|
28
|
+
unwatched; accepting only `idle` made every follow-up `herdr prompt` to a
|
|
29
|
+
settled agent wait 120 s and fail.
|
|
30
|
+
- **Pane-capture provenance is DATA, not a text prefix.** The
|
|
31
|
+
`[best-effort pane capture]` prefix travelled into `{previous}` chain
|
|
32
|
+
substitution, and the next child read the marker as a prompt-injection
|
|
33
|
+
signal and derailed. It is now `SubAgentResult.bestEffort`, rendered where a
|
|
34
|
+
human reads it (`⚠ best-effort pane capture`).
|
|
35
|
+
- **Chain results carry every step.** `formatChainReport` (lib/render.ts)
|
|
36
|
+
appends a per-step section (status, report, worktree patch, provenance)
|
|
37
|
+
after the final output — `{previous}` only ever forwards one step, so
|
|
38
|
+
intermediate findings used to vanish from the result.
|
|
39
|
+
|
|
40
|
+
Also fixed (test hygiene, found while gating this release): the web settings
|
|
41
|
+
suites scrubbed a HAND-LISTED subset of the mapped env vars before asserting
|
|
42
|
+
"settings supply this value". Any machine whose `.env.local` carries a var
|
|
43
|
+
missing from that list (here `WEB_CHAT_API_BASE_URL`) saw red locally while CI
|
|
44
|
+
stayed green, because env legitimately wins over settings. Both suites now
|
|
45
|
+
scrub `ENV_TO_SETTINGS_KEY` in full, so the assertions hold on a developer
|
|
46
|
+
machine and in CI alike.
|
|
47
|
+
|
|
48
|
+
Verified: `tsc --noEmit` clean; full `npm test` **2987 pass / 0 fail / 3
|
|
49
|
+
env-gated skips** (a2a mDNS, web a11y Chrome); `npm pack --dry-run` clean.
|
|
50
|
+
Live-verified end-to-end inside a running Herdr app: all five bundled agents
|
|
51
|
+
(scout/tester/worker/planner/reviewer) delegated to real app panes across
|
|
52
|
+
single, parallel and chain modes, through both the read-only inline channel
|
|
53
|
+
and the report-file channel.
|
|
54
|
+
|
|
55
|
+
## 0.26.2 — 2026-11-15
|
|
56
|
+
|
|
57
|
+
Pi 1.5.2 support (pi 1.5.0 → 1.5.2 diffed surface by surface; the peer
|
|
58
|
+
range `>=0.99.1 <1.6.0` from 0.26.0 already covered it, so no range change).
|
|
59
|
+
**No breaking changes for ceulen.** Everything below the fold is stock-parity
|
|
60
|
+
plus one deferred feature finally landed.
|
|
61
|
+
|
|
62
|
+
- **`/config` Cache warming row no longer warns on a pristine config.** Pi
|
|
63
|
+
1.5.1 flipped the setting's default from `streaming` to `idle`; ceulen's
|
|
64
|
+
row still carried the old default and rendered warning-styled (the
|
|
65
|
+
pi.tuiMode-1.0.0 failure mode). `CACHE_WARMING`'s option list and the
|
|
66
|
+
setter are unchanged.
|
|
67
|
+
- **Subagent expand hints follow the user's keybinding.** The six
|
|
68
|
+
`(Ctrl+O to expand)` hints were hardcoded; they now read
|
|
69
|
+
`keyText("app.tools.expand")` from the render context (pi's
|
|
70
|
+
`KeybindingHints`, added in 1.5.0), so a rebind shows up. `expandKeyLabel()`
|
|
71
|
+
in `subagent/lib/render.ts` falls back to the literal `Ctrl+O` when the
|
|
72
|
+
context has no hints (the above-editor widget and `/agent` thread viewer
|
|
73
|
+
receive none) or a hint lookup throws — older pi keeps today's text.
|
|
74
|
+
|
|
75
|
+
Audited and left alone: tool argument validation (`prepareArguments` still
|
|
76
|
+
runs before `validateToolArguments` — repair's hook position is unchanged),
|
|
77
|
+
the new `MarkdownTransformerOptions` (ceulen registers no markdown
|
|
78
|
+
transformer), and `createReadStream` / the deprecated
|
|
79
|
+
`GrepOperations.readFile` (repair wraps read/grep by name through the host
|
|
80
|
+
factory with no custom `operations`, so 1.5.2's streaming read and
|
|
81
|
+
ripgrep-sourced context lines flow into the wrapped tools for free).
|
|
82
|
+
`settings-manager`, `settings-selector`, `theme-schema`, `jiti-loader`,
|
|
83
|
+
`trust-manager`, `custom-editor` and the root export map are byte-identical
|
|
84
|
+
across 1.5.0 → 1.5.2.
|
|
85
|
+
|
|
86
|
+
Verified: `tsc --noEmit` clean against 1.5.2 types; 2962 tests / 2959 pass /
|
|
87
|
+
0 fail / 3 known env-gated skips (a2a mDNS, web a11y Chrome); live rpc smoke
|
|
88
|
+
on 1.5.2 registers all 60 commands, runs `/ceulen`, zero stderr.
|
|
89
|
+
|
|
3
90
|
## 0.26.1 — 2026-11-04
|
|
4
91
|
|
|
5
92
|
**Fix: inbound A2A dispatches blanked the host TUI's status band (model ·
|
|
@@ -422,7 +422,7 @@ function piRowSpecs(m: SettingsManager, lookup?: PiMenuLookup): PiRowSpec[] {
|
|
|
422
422
|
},
|
|
423
423
|
{
|
|
424
424
|
key: "pi.cacheWarming", tab: "Model", section: "Efficiency", label: "Cache warming",
|
|
425
|
-
kind: "string", value: m.getCacheWarmingMode(), values: CACHE_WARMING, defaultValue: "
|
|
425
|
+
kind: "string", value: m.getCacheWarmingMode(), values: CACHE_WARMING, defaultValue: "idle",
|
|
426
426
|
description: "off: never; streaming: while the agent runs; idle: also between runs while continuation stays profitable.",
|
|
427
427
|
set: (v) => m.setCacheWarmingMode(str(v) as never),
|
|
428
428
|
},
|
|
@@ -21,6 +21,19 @@ describe("pi settings contribution", () => {
|
|
|
21
21
|
}
|
|
22
22
|
});
|
|
23
23
|
|
|
24
|
+
it("cache warming row tracks pi's idle default and round-trips all modes", () => {
|
|
25
|
+
const m = SettingsManager.inMemory();
|
|
26
|
+
const row = rowAt(m, "pi.cacheWarming");
|
|
27
|
+
// pi 1.5.1 flipped the default from "streaming" to "idle" — a stale
|
|
28
|
+
// defaultValue would render the row warning-styled on a pristine config.
|
|
29
|
+
assert.equal(row.defaultValue, "idle");
|
|
30
|
+
assert.equal(row.value, "idle");
|
|
31
|
+
for (const v of ["streaming", "off", "idle"] as const) {
|
|
32
|
+
row.set(v);
|
|
33
|
+
assert.equal(m.getCacheWarmingMode(), v);
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
|
|
24
37
|
it("builds OMP-taxonomy tabs with unique keys and sections", () => {
|
|
25
38
|
const groups = buildPiSettingsGroups(SettingsManager.inMemory());
|
|
26
39
|
const keys = groups.flatMap((g) => g.rows.map((r) => r.key));
|