pi-mono/packages/coding-agent/src
Mario Zechner ff78ac2f84 Replace custom tool dispose() with shutdown session event
Breaking change: CustomAgentTool.dispose() removed. Use onSession with
reason 'shutdown' instead for cleanup.

- Add 'shutdown' to SessionEvent.reason for custom tools
- Remove dispose() method from CustomAgentTool interface
- Make emitToolSessionEvent() public on AgentSession
- Emit shutdown event to tools in InteractiveMode.shutdown()
- Update custom-tools.md with new API and examples
2025-12-31 02:55:45 +01:00
..
cli WIP: Major cleanup - move Attachment to consumers, simplify agent API 2025-12-30 22:42:20 +01:00
core Replace custom tool dispose() with shutdown session event 2025-12-31 02:55:45 +01:00
modes Replace custom tool dispose() with shutdown session event 2025-12-31 02:55:45 +01:00
utils refactor(hooks): split session events into individual typed events 2025-12-30 22:42:22 +01:00
cli.ts Remove old implementation files (main.ts, cli.ts, tui-renderer.ts), rename new files 2025-12-09 01:21:28 +01:00
config.ts Refactor OAuth/API key handling: AuthStorage and ModelRegistry 2025-12-25 03:48:36 +01:00
index.ts Add ReadonlySessionManager and refactor branch summarization 2025-12-30 22:42:23 +01:00
main.ts refactor(hooks): split session events into individual typed events 2025-12-30 22:42:22 +01:00
migrations.ts Add automatic session migration for v0.30.0 bug 2025-12-26 03:24:49 +01:00