Pi AI Libraries Update
Both pi-ai packages have updates available with breaking changes:
- @mariozechner/pi-ai: v0.57.1 → v0.65.0
- @mariozechner/pi-coding-agent: v0.57.1 → v0.65.0
Breaking Changes in v0.65.0
Session Runtime API Changes
- Removed extension events
session_switch and session_fork
- Use
session_start with event.reason instead
- Removed session-replacement methods from
AgentSession
- Use new
AgentSessionRuntime for session management
Migration Required
Before:
pi.on("session_switch", async (event, ctx) => { ... });
await session.newSession();
After:
pi.on("session_start", async (event, ctx) => {
// event.reason: "startup" | "reload" | "new" | "resume" | "fork"
});
const runtime = await createAgentSessionRuntime(...);
await runtime.newSession();
Impact Assessment
This repo imports from both packages in the core agent framework. The breaking changes affect session management APIs that may be used in the quartermaster missions.
Review needed:
- Check usage of session events in missions/
- Verify agent initialization code
- Test mission execution with new APIs
New Features
- New
defineTool() helper for custom tools
- Label timestamps in
/tree
- Unified diagnostics model
- Session runtime API improvements
Full changelog
Pi AI Libraries Update
Both pi-ai packages have updates available with breaking changes:
Breaking Changes in v0.65.0
Session Runtime API Changes
session_switchandsession_forksession_startwithevent.reasoninsteadAgentSessionAgentSessionRuntimefor session managementMigration Required
Before:
After:
Impact Assessment
This repo imports from both packages in the core agent framework. The breaking changes affect session management APIs that may be used in the quartermaster missions.
Review needed:
New Features
defineTool()helper for custom tools/treeFull changelog