{"record":{"id":"3e89bfc37f3fcb1a","repo":"paperclipai/paperclip","slug":"invalid-include-value-use-one-or-more-of-compa","errorCode":null,"errorMessage":"Invalid --include value. Use one or more of: company,agents,projects,issues,tasks,skills","messagePattern":"Invalid --include value\\. Use one or more of: company,agents,projects,issues,tasks,skills","errorType":"validation","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"cli/src/commands/client/company.ts","lineNumber":185,"sourceCode":"function normalizeSelector(input: string): string {\n  return input.trim();\n}\n\nfunction parseInclude(\n  input: string | undefined,\n  fallback: CompanyPortabilityInclude = DEFAULT_EXPORT_INCLUDE,\n): CompanyPortabilityInclude {\n  if (!input || !input.trim()) return { ...fallback };\n  const values = input.split(\",\").map((part) => part.trim().toLowerCase()).filter(Boolean);\n  const include = {\n    company: values.includes(\"company\"),\n    agents: values.includes(\"agents\"),\n    projects: values.includes(\"projects\"),\n    issues: values.includes(\"issues\") || values.includes(\"tasks\"),\n    skills: values.includes(\"skills\"),\n  };\n  if (!include.company && !include.agents && !include.projects && !include.issues && !include.skills) {\n    throw new Error(\"Invalid --include value. Use one or more of: company,agents,projects,issues,tasks,skills\");\n  }\n  return include;\n}\n\nfunction parseAgents(input: string | undefined): \"all\" | string[] {\n  if (!input || !input.trim()) return \"all\";\n  const normalized = input.trim().toLowerCase();\n  if (normalized === \"all\") return \"all\";\n  const values = input.split(\",\").map((part) => part.trim()).filter(Boolean);\n  if (values.length === 0) return \"all\";\n  return Array.from(new Set(values));\n}\n\nfunction parseCsvValues(input: string | undefined): string[] {\n  if (!input || !input.trim()) return [];\n  return Array.from(new Set(input.split(\",\").map((part) => part.trim()).filter(Boolean)));\n}\n","sourceCodeStart":167,"sourceCodeEnd":203,"githubUrl":"https://github.com/paperclipai/paperclip/blob/120ae5428fa29bee300bcf806491cd4d965fbb7c/cli/src/commands/client/company.ts#L167-L203","documentation":"parseInclude splits the --include option on commas and lowercases each token; this fires when none of the resulting tokens match a known include key, so the export/include set is rejected as unrecognized input.","triggerScenarios":"Thrown at cli/src/commands/client/company.ts:185 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Pass --include with a comma-separated subset of: company,agents,projects,issues,tasks,skills.","Remove --include to use the default export set."],"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"}