{"record":{"id":"e7ec593769fc70da","repo":"paperclipai/paperclip","slug":"catalog-team-not-found-catalogref","errorCode":null,"errorMessage":"Catalog team not found: ${catalogRef}","messagePattern":"Catalog team not found: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cli/src/commands/client/teams.ts","lineNumber":328,"sourceCode":"    return buildCatalogTeamStatusRow(team, installedTeam ?? null);\n  });\n\n  for (const installedTeam of installedByCatalogId.values()) {\n    if (installedTeam.present) continue;\n    rows.push(buildMissingInstalledTeamStatusRow(installedTeam));\n  }\n\n  return rows;\n}\n\nasync function getCatalogTeam(ctx: ResolvedClientContext, catalogRef: string): Promise<CatalogTeam> {\n  const ref = catalogRef.trim();\n  if (!ref) {\n    throw new Error(\"Catalog team reference is required.\");\n  }\n  const detail = await ctx.api.get<CatalogTeam>(`/api/teams/catalog/ref?ref=${encodeURIComponent(ref)}`);\n  if (!detail) {\n    throw new Error(`Catalog team not found: ${catalogRef}`);\n  }\n  return detail;\n}\n\nasync function getCatalogTeamFile(\n  ctx: ResolvedClientContext,\n  catalogRef: string,\n  filePath: string,\n): Promise<{ content: string } | null> {\n  const ref = catalogRef.trim();\n  const path = filePath.trim();\n  if (!ref) throw new Error(\"Catalog team reference is required.\");\n  if (!path) throw new Error(\"Catalog team file path is required.\");\n  const params = new URLSearchParams({ ref, path });\n  return ctx.api.get(`/api/teams/catalog/ref/files?${params.toString()}`);\n}\n\nfunction catalogTeamCompanyPath(companyId: string | undefined, catalogRef: string, action: \"preview\" | \"install\") {","sourceCodeStart":310,"sourceCodeEnd":346,"githubUrl":"https://github.com/paperclipai/paperclip/blob/120ae5428fa29bee300bcf806491cd4d965fbb7c/cli/src/commands/client/teams.ts#L310-L346","documentation":"The catalog team ref lookup GET /api/teams/catalog/ref returned null, so no catalog team matches the given reference.","triggerScenarios":"Thrown at cli/src/commands/client/teams.ts:328 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the catalog reference; list catalog teams and use a valid slug or key."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"120ae5428fa29bee300bcf806491cd4d965fbb7c","analyzedAt":"2026-08-18T22:49:45.177Z","contentChangedAt":"2026-08-18T22:49:45.177Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}