import { type DecisionGraph } from './graph.js'; import { type DecisionHostPolicyRefs, type DecisionHostPolicyRegistry } from './host-policy.js'; import { type DecisionResultProjection } from './graph-decision-bridge.js'; import type { GraphFlowRequest, GraphFlowResponse } from './graph-flow-adapter.js'; /** The shipped decision-evaluate skill as resolved from the capability catalog. */ export interface DecisionEvaluateSkill { id: `aiwg:skill:${string}`; scriptPath: string; } /** Resolve the packaged `decision-evaluate` skill: its stable catalog ID becomes the * Flow node ref, and its declared script entrypoint is the only program invoked. * Neither comes from graph evidence. */ export declare function resolveDecisionEvaluateSkill(frameworkRoot: string): Promise; /** Host-authored dispatcher request fields, as documented by the skill. Paths are absolute. * The bridge adds `inputPath` for dependent nodes plus the Flow `runId`/`invocationId`. */ export interface DecisionSkillRequest { rulesetPath: string; bindingPath: string; definitionPaths: string[]; /** Trusted host input; used only by the graph entry node. */ inputPath?: string; projectionPolicyPath?: string; adapterOptions?: { jev?: { endpoint?: string; allowedOrigins?: string[]; region?: string; }; }; adapterModules?: Record; credentials?: Record; receiptDirectory?: string; receiptIntegrityKeyRef?: string; receiptIntegrityKeyEncoding?: 'hex' | 'base64'; /** Named references into the host-owned policy registry, never inline callbacks or stores. */ hostPolicies?: DecisionHostPolicyRefs; /** Host-owned module path passed as a CLI argument, not serialized into the dispatcher request. */ hostPolicyModulePath?: string; } export interface DecisionSkillRun { scriptPath: string; requestPath: string; env: Record; timeoutMs: number; hostPolicyModulePath?: string; hostPolicies?: DecisionHostPolicyRegistry; } /** Default runner: executes the skill entrypoint with a minimal environment. * Only PATH, the opt-in flag and host-listed variables reach the child process. */ export declare function runDecisionEvaluateSkill(run: DecisionSkillRun): Promise<{ code: number; stdout: string; }>; /** Flow skill invoker that runs the shipped decision-evaluate skill for every graph node. * Each call writes a private dispatcher request (and, for a dependent node, only its * declared projected evidence as input), runs the skill script, and accepts only a * RulesetResult for the same Flow run/invocation and binding pin. The skill's own * stderr is never propagated into graph errors. */ export declare function decisionEvaluateSkillFlowInvoker(graph: DecisionGraph, host: DecisionResultProjection & { skill: DecisionEvaluateSkill; request: (nodeId: string) => DecisionSkillRequest; /** Existing private directory for per-invocation request documents. */ workDirectory: string; /** Environment values the dispatcher request's credential mapping names. */ env?: Record; /** Trusted in-process policy registry forwarded to the packaged dispatcher. */ hostPolicies?: DecisionHostPolicyRegistry; timeoutMs?: number; run?: (run: DecisionSkillRun) => Promise<{ code: number; stdout: string; }>; }): (request: GraphFlowRequest) => Promise; //# sourceMappingURL=graph-skill-bridge.d.ts.map