/** * Graph Execution Engine v2 — `graph_approve` Tool Registration * * Version: 2.0 * Date: 2026-07-25 * * Phase C migration (Plan B), GAP-2 fill. The legacy orchestrator-facing * human-approval pair `dispatch_approve` / `dispatch_reject` has **no** * graph_* equivalent in the original seven-tool set — the engine exposes * `approveNode` / `rejectNode` only as internal `EngineRuntime` methods * (deprecation-map §3 rows 7–8 classify them "(engine-internal)"). This module * adds the thin, additive `graph_approve` surface that routes a parent-facing * approve/reject decision to the engine's public API import-only (protected * engine files are never modified). * * The arg schema mirrors the `GraphApproveArgs` shape exported by * `graph-tools.ts`. A single `action: "approve" | "reject"` discriminator * consolidates the two legacy tools into one surface; `reason` carries the * human rejection feedback and `payload` the optional approval output. * * ## Precedence contract * * This factory is additive. Its key is `graph_approve`, which does not collide * with any existing `graph_*` or legacy `dispatch_*` / `loop_*` tool key. * Registration therefore never overrides a legacy tool. * * Design reference: `.rolebox/design/tool-merge-map.md` §2.2, §3 (rows 7–8), * and `.rolebox/evidence/final-qa/phase-c-inventory.md` §6 GAP-2. */ import type { CanonicalToolDef } from "../../platform/types.ts"; import type { GraphToolSet, GraphApproveAction } from "./graph-tools.ts"; /** graph_approve — approve or reject a blocked needs_approval node. */ export declare function createGraphApproveTool(toolset: GraphToolSet): CanonicalToolDef; export type { GraphApproveAction }; //# sourceMappingURL=approve-tools.d.ts.map