/** * kimi-code Tier 2 hook gate bridge script. * File-size sweep: split out of kimi-generator.ts. * * Kimi hooks and Claude hooks share the same protocol: JSON payload on stdin, * exit 0 = allow, exit 2 = block with the reason on stderr. This script * translates kimi's PreToolUse payload into the {tool_name, tool_input} * envelope the existing .claude/helpers/hook-handler.cjs gates consume, and * maps their exit code straight back. Nothing in .claude/helpers is modified. * * The script must be free of backticks and ${...} outside its own template * usage — it is embedded into a TypeScript template literal by the caller. */ export declare function generateKimiGateScript(): string; /** * Mesh inbox bridge for kimi's `UserPromptSubmit` hook. Kimi appends a hook's * exit-0 stdout to the prompt context, so this only runs the shared * .claude/helpers/mesh-inbox.cjs and forwards what it prints. The helper finds * the session's hub credentials by walking its own ancestor pids, so it is * spawned (not required) and kimi stays among its ancestors. Always exits 0. * Kimi has no documented way for a hook to set a session title, so there is no * counterpart to .claude/helpers/mesh-title.cjs. */ export declare function generateKimiMeshScript(): string; //# sourceMappingURL=kimi-generator-hooks.d.ts.map