mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-16 04:01:56 +00:00
- 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
37 lines
861 B
TypeScript
37 lines
861 B
TypeScript
/**
|
|
* Core modules shared between all run modes.
|
|
*/
|
|
|
|
export {
|
|
AgentSession,
|
|
type AgentSessionConfig,
|
|
type AgentSessionEvent,
|
|
type AgentSessionEventListener,
|
|
type ModelCycleResult,
|
|
type PromptOptions,
|
|
type SessionStats,
|
|
} from "./agent-session.js";
|
|
export { type BashExecutorOptions, type BashResult, executeBash } from "./bash-executor.js";
|
|
export type { CompactionResult } from "./compaction/index.js";
|
|
export {
|
|
type CustomTool,
|
|
type CustomToolAPI,
|
|
type CustomToolFactory,
|
|
type CustomToolsLoadResult,
|
|
type CustomToolUIContext,
|
|
discoverAndLoadCustomTools,
|
|
type ExecResult,
|
|
type LoadedCustomTool,
|
|
loadCustomTools,
|
|
type RenderResultOptions,
|
|
} from "./custom-tools/index.js";
|
|
export {
|
|
type HookAPI,
|
|
type HookContext,
|
|
type HookError,
|
|
type HookEvent,
|
|
type HookFactory,
|
|
HookRunner,
|
|
type HookUIContext,
|
|
loadHooks,
|
|
} from "./hooks/index.js";
|