{"record":{"id":"257d731fcff45b32","repo":"Fission-AI/OpenSpec","slug":"store-setup-path-required-257d73","errorCode":"store_setup_path_required","errorMessage":"Pass --path with the folder where this store should live.","messagePattern":"Pass --path with the folder where this store should live\\.","errorType":"error_code","errorClass":"StoreError","httpStatus":null,"severity":"error","filePath":"src/core/store/operations.ts","lineNumber":347,"sourceCode":"      fix: 'Choose a path outside that Git repository.',\n    }\n  );\n}\n\nexport function expandUserPath(inputPath: string): string {\n  const trimmed = inputPath.trim();\n  if (trimmed === '~') return os.homedir();\n  if (trimmed.startsWith('~/') || trimmed.startsWith('~\\\\')) {\n    return path.join(os.homedir(), trimmed.slice(2));\n  }\n\n  return trimmed;\n}\n\nfunction resolveSetupRoot(id: string, inputPath: string | undefined): string {\n  // A store is a repo the user places; setup never silently picks app data.\n  if (inputPath === undefined || inputPath.trim().length === 0) {\n    throw new StoreError(\n      'Pass --path with the folder where this store should live.',\n      'store_setup_path_required',\n      {\n        target: 'store.root',\n        fix: `openspec store setup ${id} --path ~/openspec/${id}`,\n      }\n    );\n  }\n\n  return path.resolve(expandUserPath(inputPath));\n}\n\nfunction resolveRegisterRoot(inputPath: string | undefined): string {\n  if (inputPath === undefined || inputPath.trim().length === 0) {\n    throw new StoreError('Pass a store path.', 'store_path_required', {\n      target: 'store.root',\n      fix: 'openspec store register /path/to/store',\n    });","sourceCodeStart":329,"sourceCodeEnd":365,"githubUrl":"https://github.com/Fission-AI/OpenSpec/blob/6926ccb18afa4ff621112813e9968334576ee11a/src/core/store/operations.ts#L329-L365","documentation":"Error \"Pass --path with the folder where this store should live.\" thrown in Fission-AI/OpenSpec.","triggerScenarios":"Thrown at src/core/store/operations.ts:347 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"6926ccb18afa4ff621112813e9968334576ee11a","analyzedAt":"2026-08-25T12:29:45.729Z","schemaVersion":2},"datasetVersion":"2026-08-25T16:17:27.014Z"}