mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 14:03:49 +00:00
- Replace per-extension closures with shared ExtensionRuntime - Split context actions: ExtensionContextActions (required) + ExtensionCommandContextActions (optional) - Rename LoadedExtension to Extension, remove setter methods - Change runner.initialize() from options object to positional params - Derive hasUI from uiContext presence (no separate param) - Add warning when extensions override built-in tools - RPC and print modes now provide full command context actions BREAKING CHANGE: Extension system types and initialization API changed. See CHANGELOG.md for migration details.
61 lines
1.5 KiB
TypeScript
61 lines
1.5 KiB
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 { createEventBus, type EventBus, type EventBusController } from "./event-bus.js";
|
|
|
|
// Extensions system
|
|
export {
|
|
type AgentEndEvent,
|
|
type AgentStartEvent,
|
|
type AgentToolResult,
|
|
type AgentToolUpdateCallback,
|
|
type BeforeAgentStartEvent,
|
|
type ContextEvent,
|
|
discoverAndLoadExtensions,
|
|
type ExecOptions,
|
|
type ExecResult,
|
|
type Extension,
|
|
type ExtensionAPI,
|
|
type ExtensionCommandContext,
|
|
type ExtensionContext,
|
|
type ExtensionError,
|
|
type ExtensionEvent,
|
|
type ExtensionFactory,
|
|
type ExtensionFlag,
|
|
type ExtensionHandler,
|
|
ExtensionRunner,
|
|
type ExtensionShortcut,
|
|
type ExtensionUIContext,
|
|
type LoadExtensionsResult,
|
|
type MessageRenderer,
|
|
type RegisteredCommand,
|
|
type SessionBeforeBranchEvent,
|
|
type SessionBeforeCompactEvent,
|
|
type SessionBeforeSwitchEvent,
|
|
type SessionBeforeTreeEvent,
|
|
type SessionBranchEvent,
|
|
type SessionCompactEvent,
|
|
type SessionShutdownEvent,
|
|
type SessionStartEvent,
|
|
type SessionSwitchEvent,
|
|
type SessionTreeEvent,
|
|
type ToolCallEvent,
|
|
type ToolDefinition,
|
|
type ToolRenderResultOptions,
|
|
type ToolResultEvent,
|
|
type TurnEndEvent,
|
|
type TurnStartEvent,
|
|
wrapToolsWithExtensions,
|
|
} from "./extensions/index.js";
|