{"record":{"id":"6e845dcac0aa0c20","repo":"paperclipai/paperclip","slug":"invalid-name-override-raw-use-slug-name","errorCode":null,"errorMessage":"Invalid --name-override \"${raw}\". Use slug=name.","messagePattern":"Invalid --name-override \"(.+?)\"\\. Use slug=name\\.","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"cli/src/commands/client/teams.ts","lineNumber":480,"sourceCode":"  return /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(value);\n}\n\nfunction buildSourcePolicy(opts: TeamPreviewOptions): CatalogTeamSourcePolicy | undefined {\n  const sourcePolicy = removeUndefined({\n    allowExternalSources: opts.allowExternalSources || undefined,\n    allowUnpinnedOptionalSources: opts.allowUnpinnedOptionalSources || undefined,\n    allowLocalPathSources: opts.allowLocalPathSources || undefined,\n  });\n  return Object.keys(sourcePolicy).length > 0 ? sourcePolicy : undefined;\n}\n\nfunction parseNameOverrides(values: string[] | undefined): Record<string, string> | undefined {\n  if (!values || values.length === 0) return undefined;\n  const result: Record<string, string> = {};\n  for (const raw of values) {\n    const [slug, name] = parseKeyValueOption(raw, \"--name-override\", \"slug=name\");\n    if (!slug || !name) {\n      throw new Error(`Invalid --name-override \"${raw}\". Use slug=name.`);\n    }\n    result[slug] = name;\n  }\n  return result;\n}\n\nfunction parseSecretValues(values: string[] | undefined): Record<string, string> | undefined {\n  if (!values || values.length === 0) return undefined;\n  const result: Record<string, string> = {};\n  for (const raw of values) {\n    const [key, value] = parseKeyValueOption(raw, \"--secret-value\", \"key=value\");\n    if (!key) {\n      throw new Error(`Invalid --secret-value \"${raw}\". Use key=value.`);\n    }\n    result[key] = value;\n  }\n  return result;\n}","sourceCodeStart":462,"sourceCodeEnd":498,"githubUrl":"https://github.com/paperclipai/paperclip/blob/120ae5428fa29bee300bcf806491cd4d965fbb7c/cli/src/commands/client/teams.ts#L462-L498","documentation":"parseNameOverrides got a --name-override string that does not split into a non-empty slug=name pair; a generic key=value option format guard.","triggerScenarios":"Thrown at cli/src/commands/client/teams.ts:480 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use the slug=name format for --name-override."],"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"}