paperclipai/paperclip · error · Error
Stage not found on pipeline ${detail.key}: ${opts.stage}
Error message
Stage not found on pipeline ${detail.key}: ${opts.stage} What it means
Error "Stage not found on pipeline ${detail.key}: ${opts.stage}" thrown in paperclipai/paperclip.
Source
Thrown at cli/src/commands/pipelines.ts:312
title: opts.title ?? "Pipeline guidance",
body,
}), { json: ctx.json });
})),
);
addPipelineOptions(
pipelines
.command("set-automation")
.description("Set a run_routine onEnter automation on a stage")
.argument("<pipeline>", "Pipeline ID or key")
.requiredOption("--stage <key>", "Stage key")
.requiredOption("--routine <id>", "Routine ID")
.option("--note <text>", "Automation note")
.action((pipeline: string, opts: AutomationOptions) => withPipelineErrors(async () => {
const ctx = resolvePipelineContext(opts);
const detail = await getPipeline(ctx, pipeline);
const stage = detail.stages?.find((item) => item.key === opts.stage);
if (!stage) throw new Error(`Stage not found on pipeline ${detail.key}: ${opts.stage}`);
const config = {
...(stage.config ?? {}),
onEnter: {
...(asOptionalObject(stage.config?.onEnter) ?? {}),
type: "run_routine",
routineId: opts.routine,
...(opts.note ? { note: opts.note } : {}),
},
};
printOutput(await ctx.api.patch(apiPath`/api/pipelines/${detail.id}/stages/${stage.id}`, { config }), { json: ctx.json });
})),
);
addPipelineOptions(
pipelines
.command("ingest")
.description("Ingest one case into a pipeline")
.argument("<pipeline>", "Pipeline ID or key")View on GitHub (pinned to 67001ec6eb)
When it happens
Trigger: Thrown at cli/src/commands/pipelines.ts:312 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of paperclipai/paperclip@67001ec6eb (2026-08-12).
Data as JSON: /api/errors/cc9e8ff2c8d2e33e.
Report an issue: GitHub.