/** * kimi-code Tier 1 frontmatter converters (.claude/* → .kimi-code/*). * File-size sweep: split out of kimi-generator.ts. * * Same minimal-transform approach as opencode-generator.ts: only ensure the * keys kimi actually reads are present and correct; everything else passes * through (kimi ignores unknown frontmatter fields on agents). */ /** * Convert a Claude agent definition to kimi agent format. * - name is slugified to kebab-case (hard requirement — kimi skips the file otherwise). * - description is ensured (kimi shows it to the main agent for delegation). * - Everything else passes through: kimi ignores Claude-only keys (model, etc.) * and accepts comma-separated tools: strings. */ export declare function convertKimiAgentMd(src: string, fallbackName: string): string; /** * Convert a SKILL.md. Both Claude and kimi use directory-form SKILL.md with * required name + description — this only guarantees those two keys. */ export declare function convertKimiSkillMd(src: string, fallbackName: string): string; /** * True when a Claude command's body carries the catalog-style router shape * tests/repo/mastermind-router-consistency.test.ts forbids under any * `skills/` tree: a markdown table whose header row has both an "Intent" * cell and a "primary route" cell (same detection that test's * `hasCatalogRouterTable` uses). `.claude/commands/mastermind.md` — the * universal intent router — is written in exactly this shape and is shipped * ONLY as a plugin command (`.kimi-code/plugin/commands/monomind-mastermind.md`), * never as a skill; the canonical skill-tool router lives at * `.claude/skills/mastermind/SKILL.md` and is mirrored separately. kimi is * the only target that converts commands into skills at all (no other * platform mirrors `.claude/commands/` into a `skills/` tree), so it's the * only place a command with this shape can leak a second, contradicting * router into `skills/` — see write-kimicode.ts's flow-skill branch, which * checks this before ever writing to `.kimi-code/skills/`. */ export declare function isCatalogStyleRouterCommand(src: string): boolean; /** * Convert a Claude slash-command into a kimi flow skill — the only way to get * an invocable command at PROJECT level (kimi has no project-level command * directory; real slash commands require the plugin, see Tier 3). * - type: flow → manual invocation only (/skill:), never auto-invoked. * - Strips Claude-only frontmatter keys (allowed-tools, argument-hint, bare * claude model names) whose semantics kimi doesn't share. */ export declare function convertKimiCommandToFlowSkill(src: string, category: string, fallbackName: string): string; /** * Convert a Claude slash-command into a kimi PLUGIN command file. * Plugin commands only read `name`/`description` frontmatter; the body is the * prompt and $ARGUMENTS is the placeholder — the same convention Claude * commands already use, so bodies pass through unchanged. */ export declare function convertKimiPluginCommandMd(src: string, category: string, fallbackName: string): string; /** Namespace-prefixed command filename: "mastermind-build.md". */ export declare function kimiCommandFilename(category: string, file: string): string; //# sourceMappingURL=kimi-generator-frontmatter.d.ts.map