{"record":{"id":"f4d34965368180a9","repo":"Fission-AI/OpenSpec","slug":"store-path-required","errorCode":"store_path_required","errorMessage":"Pass a store path.","messagePattern":"Pass a store path\\.","errorType":"error_code","errorClass":"StoreError","httpStatus":null,"severity":"error","filePath":"src/core/store/operations.ts","lineNumber":362,"sourceCode":"function 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    });\n  }\n\n  return path.resolve(expandUserPath(inputPath));\n}\n\nfunction inferStoreIdFromPath(storeRoot: string): string {\n  return validateStoreId(path.basename(storeRoot));\n}\n\nfunction normalizeRegistryPathForComparison(targetPath: string): string {\n  try {\n    return FileSystemUtils.canonicalizeExistingPath(targetPath);\n  } catch {\n    return path.resolve(targetPath);\n  }","sourceCodeStart":344,"sourceCodeEnd":380,"githubUrl":"https://github.com/Fission-AI/OpenSpec/blob/6926ccb18afa4ff621112813e9968334576ee11a/src/core/store/operations.ts#L344-L380","documentation":"Error \"Pass a store path.\" thrown in Fission-AI/OpenSpec.","triggerScenarios":"Thrown at src/core/store/operations.ts:362 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"}