{"record":{"id":"2c3567fc64c83e93","repo":"paperclipai/paperclip","slug":"invalid-kind-value-use-all-secret-plain","errorCode":null,"errorMessage":"Invalid --kind value. Use: all, secret, plain","messagePattern":"Invalid --kind value\\. Use: all, secret, plain","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cli/src/commands/client/secrets.ts","lineNumber":398,"sourceCode":"        } catch (err) {\n          handleCommandError(err);\n        }\n      }),\n  );\n\n  addCommonClientOptions(\n    secrets\n      .command(\"declarations\")\n      .description(\"List portable env declarations emitted by company export\")\n      .requiredOption(\"-C, --company-id <id>\", \"Company ID\")\n      .option(\"--include <values>\", \"Comma-separated include set: company,agents,projects,issues,tasks,skills\", \"company,agents,projects\")\n      .option(\"--kind <kind>\", \"Filter declarations: all | secret | plain\", \"all\")\n      .action(async (opts: SecretDeclarationsOptions) => {\n        try {\n          const ctx = resolveCommandContext(opts, { requireCompany: true });\n          const kind = opts.kind ?? \"all\";\n          if (![\"all\", \"secret\", \"plain\"].includes(kind)) {\n            throw new Error(\"Invalid --kind value. Use: all, secret, plain\");\n          }\n          const preview = await ctx.api.post<CompanyPortabilityExportPreviewResult>(\n            apiPath`/api/companies/${ctx.companyId}/exports/preview`,\n            { include: parseSecretsInclude(opts.include) },\n          );\n          const declarations = (preview?.manifest.envInputs ?? [])\n            .filter((entry) => kind === \"all\" || entry.kind === kind);\n          printOutput(ctx.json ? declarations : declarations.map(renderDeclaration), { json: ctx.json });\n        } catch (err) {\n          handleCommandError(err);\n        }\n      }),\n  );\n\n  addCommonClientOptions(\n    secrets\n      .command(\"create\")\n      .description(\"Create a Paperclip-managed secret\")","sourceCodeStart":380,"sourceCodeEnd":416,"githubUrl":"https://github.com/paperclipai/paperclip/blob/120ae5428fa29bee300bcf806491cd4d965fbb7c/cli/src/commands/client/secrets.ts#L380-L416","documentation":"The secrets declarations --kind option is not one of all/secret/plain, so the declaration filter cannot be applied.","triggerScenarios":"Thrown at cli/src/commands/client/secrets.ts:398 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Pass --kind with one of: all, secret, plain."],"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"}