{"record":{"id":"6cd413dc50720769","repo":"paperclipai/paperclip","slug":"invalid-collision-value-use-rename-skip-repl","errorCode":null,"errorMessage":"Invalid --collision value. Use: rename, skip, replace","messagePattern":"Invalid --collision value\\. Use: rename, skip, replace","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"cli/src/commands/client/company.ts","lineNumber":1672,"sourceCode":"      .option(\"--yes\", \"Accept default selection and skip the pre-import confirmation prompt\", false)\n      .option(\"--dry-run\", \"Run preview only without applying\", false)\n      .action(async (fromPathOrUrl: string, opts: CompanyImportOptions) => {\n        try {\n          if (!opts.apiBase?.trim() && opts.paperclipUrl?.trim()) {\n            opts.apiBase = opts.paperclipUrl.trim();\n          }\n          const ctx = resolveCommandContext(opts);\n          const interactiveView = isInteractiveTerminal() && !ctx.json;\n          const from = fromPathOrUrl.trim();\n          if (!from) {\n            throw new Error(\"Source path or URL is required.\");\n          }\n\n          const include = resolveImportInclude(opts.include);\n          const agents = parseAgents(opts.agents);\n          const collision = (opts.collision ?? \"rename\").toLowerCase() as CompanyCollisionMode;\n          if (![\"rename\", \"skip\", \"replace\"].includes(collision)) {\n            throw new Error(\"Invalid --collision value. Use: rename, skip, replace\");\n          }\n\n          const inferredTarget = opts.target ?? (opts.companyId || ctx.companyId ? \"existing\" : \"new\");\n          const target = inferredTarget.toLowerCase() as CompanyImportTargetMode;\n          if (![\"new\", \"existing\"].includes(target)) {\n            throw new Error(\"Invalid --target value. Use: new | existing\");\n          }\n\n          const existingTargetCompanyId = opts.companyId?.trim() || ctx.companyId;\n          const targetPayload =\n            target === \"existing\"\n              ? {\n                  mode: \"existing_company\" as const,\n                  companyId: existingTargetCompanyId,\n                }\n              : {\n                  mode: \"new_company\" as const,\n                  newCompanyName: opts.newCompanyName?.trim() || null,","sourceCodeStart":1654,"sourceCodeEnd":1690,"githubUrl":"https://github.com/paperclipai/paperclip/blob/120ae5428fa29bee300bcf806491cd4d965fbb7c/cli/src/commands/client/company.ts#L1654-L1690","documentation":"The lowercased --collision option is not one of rename/skip/replace, so the import collision strategy cannot be interpreted.","triggerScenarios":"Thrown at cli/src/commands/client/company.ts:1672 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Pass --collision with one of: rename, skip, replace."],"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"}