mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-16 15:02:32 +00:00
feat(hooks): add tools.ts example hook for interactive tool enable/disable
- /tools command opens SettingsList-based selector for all loaded tools - Space/Enter toggles individual tools between enabled/disabled - Changes apply immediately on toggle (like /settings) - Tool selection persisted to session via appendEntry() - State restored from current branch on session_start, session_tree, session_branch - Uses getBranch() to respect branch-specific tool configuration - Export getSettingsListTheme and getSelectListTheme for hooks to use
This commit is contained in:
parent
ddf8bfceee
commit
892acedb6b
4 changed files with 159 additions and 7 deletions
|
|
@ -161,4 +161,10 @@ export { main } from "./main.js";
|
|||
// UI components for hooks
|
||||
export { BorderedLoader } from "./modes/interactive/components/bordered-loader.js";
|
||||
// Theme utilities for custom tools and hooks
|
||||
export { getMarkdownTheme, Theme, type ThemeColor } from "./modes/interactive/theme/theme.js";
|
||||
export {
|
||||
getMarkdownTheme,
|
||||
getSelectListTheme,
|
||||
getSettingsListTheme,
|
||||
Theme,
|
||||
type ThemeColor,
|
||||
} from "./modes/interactive/theme/theme.js";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue