Mario Zechner
9bba388ec5
Refactor SessionEventBase to pass sessionManager and modelRegistry
Breaking changes to hook types:
- SessionEventBase now passes sessionManager and modelRegistry directly
- before_compact: passes preparation, previousCompactions (newest first)
- before_switch: has targetSessionFile; switch: has previousSessionFile
- Removed resolveApiKey (use modelRegistry.getApiKey())
- getSessionFile() returns string | undefined for in-memory sessions
Updated:
- All session event emissions in agent-session.ts
- Hook examples (custom-compaction.ts, auto-commit-on-exit.ts, confirm-destructive.ts)
- Tests (compaction-hooks.test.ts, compaction-hooks-example.test.ts)
- export-html.ts guards for in-memory sessions
2025-12-30 22:42:18 +01:00
..
2025-12-22 00:23:01 +01:00
2025-12-30 22:42:18 +01:00
2025-12-30 22:42:17 +01:00
2025-12-30 22:42:17 +01:00
2025-12-12 00:01:06 +01:00
2025-12-30 22:42:18 +01:00
2025-12-30 22:42:18 +01:00
2025-12-30 22:42:18 +01:00
2025-12-09 00:51:33 +01:00
2025-12-19 15:26:12 +01:00
2025-12-09 14:44:13 +01:00
2025-12-09 14:33:39 +01:00
2025-12-21 22:56:20 +01:00
2025-12-22 00:23:01 +01:00
2025-12-09 00:51:33 +01:00
2025-12-30 02:32:16 +05:30
2025-12-05 11:59:39 +01:00