import type { RuntimeAdapter } from "../platform/index.js"; import type { VeryfrontConfig } from "../config/index.js"; import { type TriggerTarget, type TriggerTargetConfig } from "./target.js"; /** Options for one local trigger target execution. */ export interface RunTriggerTargetOptions { /** Project root used by unified runtime discovery. */ projectDir: string; /** Runtime adapter used for project source and environment access. */ adapter: RuntimeAdapter; /** Optional project configuration for virtual or local discovery. */ config?: VeryfrontConfig; /** Optional cache namespace for isolated virtual projects. */ cacheKey?: string; /** Project identifier exposed to task execution context. */ projectId?: string; /** Canonical task, workflow, or agent reference to execute. */ target: TriggerTargetConfig; /** Bounded JSON input supplied to tasks and workflows. */ input?: unknown; /** Required prompt input for agent targets. */ agentInput?: string; /** Optional bounded JSON object supplied as agent context. */ agentContext?: Record; /** Cooperative cancellation propagated through discovery and execution. */ signal?: AbortSignal; /** Enable target runtime diagnostics. */ debug?: boolean; } /** Successful local trigger target result. */ export interface TriggerTargetRunResult { /** Executed target kind. */ kind: TriggerTarget["kind"]; /** Canonical target identifier. */ id: string; /** Target-specific result payload. */ output?: unknown; /** Total trigger discovery and execution time measured with a monotonic clock. */ durationMs: number; } /** * Discover and execute one canonical task, workflow, or agent target. * * Inputs are copied into bounded JSON snapshots before asynchronous work * begins. A supplied signal is checked before discovery and propagated through * every supported target kind. */ export declare function runTriggerTarget(options: RunTriggerTargetOptions): Promise; //# sourceMappingURL=local-runner.d.ts.map