{"record":{"id":"48435ad0b412854a","repo":"paperclipai/paperclip","slug":"pipeline-not-found-pipeline","errorCode":null,"errorMessage":"Pipeline not found: ${pipeline}","messagePattern":"Pipeline not found: (.+?)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"cli/src/commands/pipelines.ts","lineNumber":654,"sourceCode":"  return addCommonClientOptions(command, { includeCompany: true });\n}\n\nfunction resolvePipelineContext(opts: PipelineOptions): ResolvedClientContext & { companyId: string } {\n  return resolveCommandContext(opts, { requireCompany: true }) as ResolvedClientContext & { companyId: string };\n}\n\nasync function resolvePipelineId(ctx: ResolvedClientContext & { companyId: string }, pipeline: string): Promise<string> {\n  if (looksLikeUuid(pipeline)) return pipeline;\n  const rows = await ctx.api.get<PipelineSummary[]>(apiPath`/api/companies/${ctx.companyId}/pipelines`) ?? [];\n  const match = rows.find((row) => row.key === pipeline || row.id === pipeline);\n  if (!match) throw new Error(`Pipeline not found by key or id: ${pipeline}`);\n  return match.id;\n}\n\nasync function getPipeline(ctx: ResolvedClientContext & { companyId: string }, pipeline: string): Promise<PipelineDetail> {\n  const pipelineId = await resolvePipelineId(ctx, pipeline);\n  const detail = await ctx.api.get<PipelineDetail>(apiPath`/api/pipelines/${pipelineId}`);\n  if (!detail) throw new Error(`Pipeline not found: ${pipeline}`);\n  return detail;\n}\n\nasync function buildIngestBody(opts: IngestOptions): Promise<JsonObject> {\n  const body: JsonObject = { title: opts.title };\n  setIfDefined(body, \"caseKey\", opts.caseKey);\n  setIfDefined(body, \"summary\", opts.summary);\n  setIfDefined(body, \"stageKey\", opts.stage);\n  setIfDefined(body, \"parentCaseId\", opts.parentCase);\n  if (opts.fieldsJson || opts.fieldsFile) body.fields = await readJsonFromOptions(opts.fieldsJson, opts.fieldsFile);\n  if (opts.workspaceRefJson) body.workspaceRef = parseJson(opts.workspaceRefJson);\n  if (opts.blockedBy) body.blockedByCaseIds = parseCsv(opts.blockedBy);\n  if (opts.blockedByKey) body.blockedByCaseKeys = parseCsv(opts.blockedByKey);\n  return body;\n}\n\nasync function buildReviewEdits(opts: ReviewOptions): Promise<JsonObject | undefined> {\n  const fromFile = await readJsonFromOptions(opts.editsJson, opts.editsFile);","sourceCodeStart":636,"sourceCodeEnd":672,"githubUrl":"https://github.com/paperclipai/paperclip/blob/67001ec6eb96ae601aa27bc91d9b2415d665334a/cli/src/commands/pipelines.ts#L636-L672","documentation":"Error \"Pipeline not found: ${pipeline}\" thrown in paperclipai/paperclip.","triggerScenarios":"Thrown at cli/src/commands/pipelines.ts:654 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"67001ec6eb96ae601aa27bc91d9b2415d665334a","analyzedAt":"2026-08-12T12:05:45.408Z","schemaVersion":2},"datasetVersion":"2026-08-12T18:17:37.767Z"}