import { AgentSession, type AgentSessionOptions } from "@kenkaiiii/gg-engine/internal/core/agent-session.js"; import { type Skill, type SkillDiscovery } from "@kenkaiiii/gg-engine/internal/core/skills.js"; import { type MotionBundle } from "./motion-bundle.js"; /** * Motion's skill-catalog budget: double the default. The 16 KB default guards * against bloated untrusted skills; Motion only ever loads its own bundled * set. Retain headroom for future skills without loading their bodies. */ export declare const MOTION_SKILL_CATALOG_BYTES: number; /** Reserved `chatAgent` query value the app uses to list Motion sessions. */ export declare const MOTION_SESSIONS_QUERY = "motion"; /** * Direct video work and sourcing only; no delegation, developer catalogs or MCP. * No checking tool: a check-fix loop more than doubled the time of a new video * without making it better than building, looking at stills and rendering once. */ export declare const MOTION_TOOL_NAMES: readonly ["read", "write", "edit", "bash", "find", "grep", "ls", "skill", "ask_user", "task_output", "task_send", "task_stop", "web_search", "web_fetch", "browser", "generate_image"]; /** Motion's private session store, beside coder's `sessions/` and chat's `chat-sessions/`. */ export declare function motionSessionsDir(coderSessionsDir: string): string; export type MotionAgentOptions = Omit & { /** Coder's sessions dir; Motion's store is derived beside it. */ sessionsDir: string; /** The user's skills from `GG Motion/.gg/skills`; built-in Motion skills win name clashes. */ workspaceSkills?: readonly Skill[]; /** Rereads the user's GG Motion skills for each new chat. */ reloadWorkspaceSkills?: () => Promise; }; /** * The exact launcher invocation the agent must use for HyperFrames. Uses the * Node running this sidecar, so Motion works without a system Node install. */ export declare function motionCliCommand(bundle: MotionBundle, nodePath?: string): string; /** Motion's prompt with this install's concrete launcher paths filled in. */ export declare function buildMotionAgentPrompt(bundle: MotionBundle, nodePath?: string, workspaceDir?: string): string; /** Shared licensed music, independent of the creative skill catalog. */ export declare function motionMusicDir(bundle: MotionBundle): string; /** Shared CC0 sound effects, independent of the creative skill catalog. */ export declare function motionSfxDir(bundle: MotionBundle): string; /** * Built-in Motion skills plus the user's GG Motion skills. The prompt names * built-in skills (`motion`, `launch-video`, …), so a user skill never replaces one. */ export declare function mergeMotionSkills(builtIn: Skill[], workspace?: readonly Skill[]): Skill[]; /** * Create a Motion session: focused tools, Motion's own prompt, the bundled * Motion skills and the user's GG Motion skills. GG Coder's global skills, * extensions and coder slash commands stay out so the mode is predictable. */ export declare function createMotionAgentSession(options: MotionAgentOptions): Promise;