1/** 2 * apps/worker — RUN_AI_ACTION executor (TASK-0112 §2, STUB). 3 * 4 * Config is schema-validated (the UI can build these now); at runtime it 5 * fails with the FATAL AI_ACTION_NOT_AVAILABLE (Phase 12) — the run is 6 * recorded FAILED with that code in error.code. No AI call is made. 7 */ 8import { FatalError } from "./classify.js"; 9import type { ActionExecutor, ActionResult } from "./types.js"; 10 11const executor: ActionExecutor = { 12 type: "RUN_AI_ACTION", 13 async execute(): Promise<ActionResult> { 14 throw new FatalError("AI_ACTION_NOT_AVAILABLE", "RUN_AI_ACTION requires the Phase-12 AI service"); 15 } 16}; 17 18export default executor; 19