{"record":{"id":"e1212e19a9e74e50","repo":"paperclipai/paperclip","slug":"catalog-team-file-path-is-required","errorCode":null,"errorMessage":"Catalog team file path is required.","messagePattern":"Catalog team file path is required\\.","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cli/src/commands/client/teams.ts","lineNumber":341,"sourceCode":"  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\") {\n  if (!companyId) throw new Error(\"Company ID is required.\");\n  const params = new URLSearchParams({ ref: catalogRef.trim() });\n  return `/api/companies/${encodeURIComponent(companyId)}/teams/catalog/ref/${action}?${params.toString()}`;\n}\n\nfunction buildTeamOptions(opts: TeamPreviewOptions): CatalogTeamImportOptions {\n  return removeUndefined({\n    targetManagerAgentId: emptyStringToUndefined(opts.targetManagerAgentId),\n    targetManagerSlug: emptyStringToUndefined(opts.targetManagerSlug),\n    agents: opts.agent && opts.agent.length > 0 ? opts.agent : undefined,\n    collisionStrategy: opts.collisionStrategy,\n    nameOverrides: parseNameOverrides(opts.nameOverride),\n    selectedFiles: opts.selectedFile && opts.selectedFile.length > 0 ? opts.selectedFile : undefined,","sourceCodeStart":323,"sourceCodeEnd":359,"githubUrl":"https://github.com/paperclipai/paperclip/blob/120ae5428fa29bee300bcf806491cd4d965fbb7c/cli/src/commands/client/teams.ts#L323-L359","documentation":"getCatalogTeamFile got an empty file path argument, so there is no catalog team file to fetch for the given team.","triggerScenarios":"Thrown at cli/src/commands/client/teams.ts:341 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Provide the catalog team file path."],"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-14T00:17:10.932Z"}