import { type Static, Type } from "typebox"; import type { BackgroundToolTaskRef } from "../background-tool-task-controller.ts"; import type { ToolDefinition } from "../extensions/types.ts"; import type { GoalState } from "../goals/goal-state.ts"; import type { OpenTaskStepRef } from "../goals/goal-tool-core.ts"; import { type PipelineRun } from "../pipelines/index.ts"; declare const pipelineSchema: Type.TObject<{ action: Type.TUnion<[Type.TLiteral<"list">, Type.TLiteral<"start">, Type.TLiteral<"status">, Type.TLiteral<"increment">, Type.TLiteral<"abandon">]>; name: Type.TOptional; runId: Type.TOptional; goalId: Type.TOptional; }>; export type PipelineToolInput = Static; export type PipelineToolAction = PipelineToolInput["action"]; export interface PipelineToolDetails { action: PipelineToolAction; applied: boolean; error?: string; warning?: string; run?: PipelineRun; definitionName?: string; } export interface PipelineToolDependencies { cwd: () => string; agentPipelinesDir: () => string; getPipelineRun: () => PipelineRun | undefined; savePipelineRun: (run: PipelineRun) => void; getGoalState?: () => GoalState | undefined; getOpenTaskSteps?: () => readonly OpenTaskStepRef[]; getBackgroundToolTasks?: () => readonly BackgroundToolTaskRef[]; now?: () => string; createRunId?: () => string; } export declare function createPipelineToolDefinition(deps: PipelineToolDependencies): ToolDefinition; export {}; //# sourceMappingURL=pipeline.d.ts.map