Skip to content

v0.43.0

Latest

Choose a tag to compare

@kid7st kid7st released this 04 Dec 06:22
· 1 commit to main since this release
45b435b

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-telemetry to 1.8.0 (including observer heap leak fix ERNDL-1289, SQLite BOUND_LIMIT, OAuth callback socket cleanup #12724, Codex WebSocket continuation #12444, and expanded retry/overflow handling). Updated PI_DEFAULT_MODELS.opencode from kimi-k2.7-code to kimi-k3.1-pro and implemented SandboxedExecutionEnv.flushDir.
  • Image processing in pi-durable read tool (#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 QuickJS codemode scripts 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 protocol pin (#1271): MCP client now defaults to versionNegotiation.mode: "auto" (supporting both stateless 2026-07-28 and legacy initialize servers) and accepts optional protocol: "2026-07-28" per server.
  • Power-loss safe atomic writes & dsh parity (#1271): Hardened writeFileAtomic with pre-write fchmodSync, temp-file fsyncSync, and parent-directory flushDirSync; forwarded sessionId from dsh to pi-ai streamSimple; classified Bedrock throttling error: responses as RATE_LIMIT (429); switched dsh_events slice SQLite queries to LIMIT +?.

Breaking Changes

  • PostgreSQL durable_schema v3 (#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 via pi-durable).
  • Stricter IdempotencyKey validation (#1271): IdempotencyKey in @fastagent-sh/client/agent-api now rejects strings containing NUL (\0) bytes or lone UTF-16 surrogates with invalid_request across HTTP, pi-durable, and dsh.

Dependencies & Docs

  • Updated effect range 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 Action v4.39.5 (#1266, #1267, #1273).
  • Updated English and Chinese docs for MCP protocol negotiation, IdempotencyKey rules, pi-images support, and codemode truncation warnings (#1268, #1269, #1271, #1272).

Full Changelog: v0.42.1...v0.43.0