{"record":{"id":"c93f4e97bca606e6","repo":"deepseek-ai/deepseek-harness","slug":"dsh-invalid-profile-name-json-stringify-name","errorCode":null,"errorMessage":"dsh: invalid profile name ${JSON.stringify(name)}","messagePattern":"dsh: invalid profile name (.+?)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/boot/app-boot/src/profile.ts","lineNumber":108,"sourceCode":"  /** Bundle layers in `dsh.profile.bundles` order. */\n  layers: ProfileLayer[]\n  /** Absolute path of the profile's own patch file. */\n  patchPath: string\n  /** The profile's own patches; empty when the file is absent. */\n  patches: PatchOptions[]\n}\n\n/**\n * Resolve a profile's directory under the Harness home.\n * @param name - the profile name (`dsh --profile <name>`).\n * @param home - the Harness home; defaults to {@link resolveDshHome}.\n * @returns the absolute profile directory (which may not exist yet).\n */\nexport function resolveProfileDir(name: string, home: string = resolveDshHome()): string {\n  if (name === '' || name.includes('/') || name.includes('\\\\') || name === '.' || name === '..'\n    // The launcher-maintained flat module fallback lives at this sibling path.\n    || name === 'node_modules') {\n    throw new Error(`dsh: invalid profile name ${JSON.stringify(name)}`)\n  }\n  return join(home, PROFILES_DIR, name)\n}\n\n/** The shipped profile templates auto-initialized on first use, by name. */\nexport const PROFILE_TEMPLATES: Record<string, readonly string[]> = {\n  web: ['@deepseek-ai/dsh-base', '@deepseek-ai/dsh-web-app'],\n  headless: ['@deepseek-ai/dsh-base', '@deepseek-ai/dsh-headless'],\n}\n\n/** Installation-owned bundle tuples normalized to the shipped template. */\nconst INSTALLATION_OWNED_PROFILE_TUPLES: Record<string, readonly string[]> = {\n  headless: ['@deepseek-ai/dsh-base', '@deepseek-ai/dsh-web-app', '@deepseek-ai/dsh-headless'],\n}\n\n/** The bundle list a `dsh plugin` init uses for a name with no shipped template. */\nexport const DEFAULT_PROFILE_BUNDLES: readonly string[] = ['@deepseek-ai/dsh-base']\n","sourceCodeStart":90,"sourceCodeEnd":126,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/boot/app-boot/src/profile.ts#L90-L126","documentation":"Error \"dsh: invalid profile name ${JSON.stringify(name)}\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/boot/app-boot/src/profile.ts:108 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use a valid profile name without invalid characters."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b150a551b8d465e31e418e1b2eaf5e79bbb7d28e","analyzedAt":"2026-08-24T18:12:29.105Z","schemaVersion":2},"datasetVersion":"2026-08-24T22:17:12.610Z"}