Cotton code
19 lines · 1.1 KB · TypeScriptRaw
/** * Every Cotton MCP tool the personal object serves, by name. A tool listed in * catalogue.json with no handler here is neither listed nor callable. */import type { Handler } from "../context.ts";import { ACTS_HANDLERS } from "./acts.ts";import { AGENT_CHAT_HANDLERS } from "./agent_chat.ts";import { MEDIA_HANDLERS } from "./media.ts";import { MEMORY_HANDLERS } from "./memory.ts";import { OPEN_BUNDLE_HANDLERS } from "./open_bundle.ts";import { RECORDS_HANDLERS } from "./records.ts";import { SESSIONS_HANDLERS } from "./sessions.ts";import { STORY_HANDLERS } from "./story.ts";import { STORY_INK_HANDLERS } from "./story_ink.ts";import { RECORDINGS_HANDLERS } from "./recordings.ts";import { STORY_MOVE_HANDLERS } from "./story_move.ts";import { WINDOW_HANDLERS } from "./window.ts";export const HANDLERS: Record<string, Handler> = { ...MEMORY_HANDLERS, ...SESSIONS_HANDLERS, ...RECORDS_HANDLERS, ...ACTS_HANDLERS, ...MEDIA_HANDLERS, ...OPEN_BUNDLE_HANDLERS, ...WINDOW_HANDLERS, ...STORY_HANDLERS, ...STORY_INK_HANDLERS, ...STORY_MOVE_HANDLERS, ...RECORDINGS_HANDLERS, ...AGENT_CHAT_HANDLERS };