Repository navigation
Highlights
Upgrades the runtime kernel and model stack to @earendil-works/*@1.8.0, adds low-memory pi-images support to the pi-durable read tool, surfaces nested truncation warnings in codemode, hardens atomic file persistence and MCP protocol negotiation, and unifies IdempotencyKey validation across harnesses.
Runtime & Features
- Pi 1.8.0 stack upgrade (#1270): Upgraded
@earendil-works/chord,@earendil-works/pi-ai,@earendil-works/pi-codemode,@earendil-works/pi-durable, and@earendil-works/pi-telemetryto1.8.0(including observer heap leak fix ERNDL-1289, SQLiteBOUND_LIMIT, OAuth callback socket cleanup #12724, Codex WebSocket continuation #12444, and expanded retry/overflow handling). UpdatedPI_DEFAULT_MODELS.opencodefromkimi-k2.7-codetokimi-k3.1-proand implementedSandboxedExecutionEnv.flushDir. - Image processing in
pi-durablereadtool (#1270): Lazily wired@earendil-works/pi-durable/images/pi-images/node(createNodePiImages) so oversized images and non-inline formats (including BMP) are resized/converted in an idle-exiting worker thread with low peak memory. - Visible nested truncation warnings in
codemode(#1270): Unstructured tools truncated inside QuickJScodemodescripts now append a bounded warning block (first 5 truncated calls in call order plus omitted count) to the outer tool result without altering script return values or losing visibility under outer output-budget trimming. - MCP auto-negotiation & optional
protocolpin (#1271): MCP client now defaults toversionNegotiation.mode: "auto"(supporting both stateless2026-07-28and legacyinitializeservers) and accepts optionalprotocol: "2026-07-28"per server. - Power-loss safe atomic writes &
dshparity (#1271): HardenedwriteFileAtomicwith pre-writefchmodSync, temp-filefsyncSync, and parent-directoryflushDirSync; forwardedsessionIdfromdshtopi-aistreamSimple; classified Bedrockthrottling error:responses asRATE_LIMIT (429); switcheddsh_eventsslice SQLite queries toLIMIT +?.
Breaking Changes
- PostgreSQL
durable_schemav3 (#1270): Indexed string columns (durable_tasks.kind,durable_submissions.request_id,durable_documents.kind,durable_documents.key_value) are now stored as plain text instead of JSON string literals (minimum: 3, no automatic in-place migration for existing v2 PostgreSQL databases; SQLite databases migrate automatically viapi-durable). - Stricter
IdempotencyKeyvalidation (#1271):IdempotencyKeyin@fastagent-sh/client/agent-apinow rejects strings containing NUL (\0) bytes or lone UTF-16 surrogates withinvalid_requestacross HTTP,pi-durable, anddsh.
Dependencies & Docs
- Updated
effectrange to^4.1.7,@effect/platform-node@^4.1.7,undici@^8.14.0,ignore@^7.0.17, dev tooling (@biomejs/biome@2.6.9,vitest@5.1.2,knip@6.49.0,@effect/tsgo@0.74.1), and CodeQL Actionv4.39.5(#1266, #1267, #1273). - Updated English and Chinese docs for MCP protocol negotiation,
IdempotencyKeyrules,pi-imagessupport, andcodemodetruncation warnings (#1268, #1269, #1271, #1272).
Full Changelog: v0.42.1...v0.43.0