mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-16 01:03:49 +00:00
- user_bash event for intercepting ! and !! commands (#528) - Extensions can return { operations } or { result } to redirect/replace - executeBashWithOperations() for custom BashOperations execution - session.recordBashResult() for extensions handling bash themselves - Theme API: getAllThemes(), getTheme(), setTheme() on ctx.ui - mac-system-theme.ts example: sync with macOS dark/light mode - Updated ssh.ts to use user_bash event
61 lines
1.6 KiB
TypeScript
61 lines
1.6 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, executeBashWithOperations } 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";
|