nexus/packages/adapters
Richard Anaya a6b5f12daf feat(pi-local): fix bugs, add RPC mode, improve cost tracking and output handling
Major improvements to the Pi local adapter:

Bug Fixes (Greptile-identified):
- Fix string interpolation in models.ts error message (was showing literal ${detail})
- Fix tool matching in parse.ts to use toolCallId instead of toolName for correct
  multi-call handling and result assignment
- Fix dead code in execute.ts by tracking instructionsReadFailed flag

Feature Improvements:
- Switch from print mode (-p) to RPC mode (--mode rpc) to prevent agent from
  exiting prematurely and ensure proper lifecycle completion
- Add stdin command sending via JSON-RPC format for prompt delivery
- Add line buffering in execute.ts to handle partial JSON chunks correctly
- Filter RPC protocol messages (response, extension_ui_request, etc.) from transcript

Cost Tracking:
- Extract cost and usage data from turn_end assistant messages
- Support both Pi format (input/output/cacheRead/cost.total) and generic format
- Add tests for cost extraction and accumulation across multiple turns

All tests pass (12/12), typecheck clean, server builds successfully.
2026-03-07 07:23:44 -08:00
..
claude-local update typing to node v24 from v20 2026-03-05 14:36:00 -03:00
codex-local Merge branch 'paperclipai:master' into master 2026-03-06 12:10:01 +01:00
cursor-local feat(cursor): compact shell tool calls and format results in run log 2026-03-05 10:59:49 -06:00
openclaw feat(openclaw): support /hooks/agent endpoint and multi-endpoint detection 2026-03-06 16:50:15 -06:00
opencode-local Fix review feedback: duplicate wizard entry, command resolution, @types/node 2026-03-06 16:53:50 +00:00
pi-local feat(pi-local): fix bugs, add RPC mode, improve cost tracking and output handling 2026-03-07 07:23:44 -08:00