co-mono/packages/coding-agent/src/core/hooks
Mario Zechner 568150f18b Rework custom tools API with CustomToolContext
- CustomAgentTool renamed to CustomTool
- ToolAPI renamed to CustomToolAPI
- ToolContext renamed to CustomToolContext
- ToolSessionEvent renamed to CustomToolSessionEvent
- Added CustomToolContext parameter to execute() and onSession()
- CustomToolFactory now returns CustomTool<any, any> for type compatibility
- dispose() replaced with onSession({ reason: 'shutdown' })
- Added wrapCustomTool() to convert CustomTool to AgentTool
- Session exposes setToolUIContext() instead of leaking internals
- Fix ToolExecutionComponent to sync with toolOutputExpanded state
- Update all custom tool examples for new API
2025-12-31 12:05:24 +01:00
..
index.ts Add ReadonlySessionManager and refactor branch summarization 2025-12-30 22:42:23 +01:00
loader.ts Cleanup: unify HookMessage naming and simplify SessionContext 2025-12-30 22:42:20 +01:00
runner.ts Rework custom tools API with CustomToolContext 2025-12-31 12:05:24 +01:00
tool-wrapper.ts WIP: Major cleanup - move Attachment to consumers, simplify agent API 2025-12-30 22:42:20 +01:00
types.ts Rework custom tools API with CustomToolContext 2025-12-31 12:05:24 +01:00