{"record":{"id":"a97cc5e9c9e0f8d1","repo":"paperclipai/paperclip","slug":"catalog-team-reference-is-required","errorCode":null,"errorMessage":"Catalog team reference is required.","messagePattern":"Catalog team reference is required\\.","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cli/src/commands/client/teams.ts","lineNumber":324,"sourceCode":"    const installedTeam = installedByCatalogId.get(team.id);\n    if (installedTeam) {\n      installedByCatalogId.delete(team.id);\n    }\n    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 });","sourceCodeStart":306,"sourceCodeEnd":342,"githubUrl":"https://github.com/paperclipai/paperclip/blob/120ae5428fa29bee300bcf806491cd4d965fbb7c/cli/src/commands/client/teams.ts#L306-L342","documentation":"getCatalogTeam trimmed the catalog team reference to an empty string, so there is no catalog id/key/slug to fetch.","triggerScenarios":"Thrown at cli/src/commands/client/teams.ts:324 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Provide a catalog team reference (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"}