pi-mono/packages
Mario Zechner eb3e9feed1 feat(coding-agent): split tool renderers and theme validation from their implementations
A presentation draws tool calls and colours; it executes nothing and validates
nothing. Both cost it typebox anyway, which is 17 MB of module graph: 682 ESM
modules whose narrowest entry re-exports ~300 of them, so there is no
cherry-picking and both doors had to close before any process stopped paying.

ToolExecutionComponent no longer looks up createAllToolDefinitions by tool name;
callers pass what to render, and its parameter type now says so. Each built-in
tool's presentation moves to core/tools/renderers/<tool>.ts, leaving the schema
and execute path behind; bash and powershell share createShellRenderers(prompt).
Tool definitions keep their exact public shape and spread the renderers in.
withBuiltInRenderers() preserves the old fallback, where an extension override
without renderers still draws like the built-in - that behaviour used to live
inside the component, and two tests caught its absence.

theme.ts keeps palettes; the typebox schema and its error formatting move to
theme-json.ts, installed through setThemeJsonValidator. Built-in themes were
never validated, so only processes that load user-authored themes need it. pi
installs it during startup, before the first theme loads, and the invalid-theme
message is unchanged.

Measured with mini, running built output: the presentation drops from 87 MB and
99 files to 72 MB and 88 files, with typebox absent from its graph, while still
rendering tool output through the real built-in renderers.

Also: packages/server's vitest aliases were prefix matches, so a subpath import
resolved onto index.ts/utils/uuid and failed five suites; they are exact now
with explicit subpath rules. And mini-test.sh spawns mini the way pi-test.sh
spawns pi, with --fresh/--stop for the detached session server.
2026-08-26 23:08:57 +02:00
..
agent docs(agent): audit post-WP05 roadmap 2026-08-26 22:41:05 +02:00
ai feat(agent,ai): add narrow subpath exports so clients skip the barrel 2026-08-26 22:02:31 +02:00
client feat(agent): expose durable lane operations 2026-08-26 21:14:59 +02:00
coding-agent feat(coding-agent): split tool renderers and theme validation from their implementations 2026-08-26 23:08:57 +02:00
evals Release v0.84.3 2026-08-24 12:50:48 +02:00
protocol feat(agent): expose durable lane operations 2026-08-26 21:14:59 +02:00
server feat(coding-agent): split tool renderers and theme validation from their implementations 2026-08-26 23:08:57 +02:00
session-backends/sqlite-node docs(agent): audit post-WP05 roadmap 2026-08-26 22:41:05 +02:00
telemetry Add [Unreleased] section for next cycle 2026-08-24 12:50:52 +02:00
tui fix(tui): let drag select text over the editor 2026-08-26 11:59:50 +02:00