{"record":{"id":"8a7fc5577a5f9c41","repo":"Fission-AI/OpenSpec","slug":"store-setup-id-required","errorCode":"store_setup_id_required","errorMessage":"Pass a store name.","messagePattern":"Pass a store name\\.","errorType":"exception","errorClass":"StoreError","httpStatus":null,"severity":"error","filePath":"src/commands/store.ts","lineNumber":262,"sourceCode":"  // Suggest a visible, user-owned location — never the managed XDG data dir.\n  const defaultPath = ['~', 'openspec', id].join('/');\n\n  return input({\n    message: 'Where should this store live?',\n    default: defaultPath,\n    prefill: 'editable',\n    required: true,\n  });\n}\n\nasync function resolveSetupInput(\n  id: string | undefined,\n  options: StoreSetupOptions\n): Promise<ResolvedStoreSetupInput> {\n  const interactive = !options.json && isInteractive();\n\n  if (!id && !interactive) {\n    throw new StoreError(\n      'Pass a store name.',\n      'store_setup_id_required',\n      {\n        target: 'store.id',\n        fix: 'openspec store setup <id> --path ~/openspec/<id> --json',\n      }\n    );\n  }\n\n  if (options.path === undefined && !interactive) {\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 ?? '<id>'} --path ~/openspec/${id ?? '<id>'}`,\n      }\n    );","sourceCodeStart":244,"sourceCodeEnd":280,"githubUrl":"https://github.com/Fission-AI/OpenSpec/blob/6926ccb18afa4ff621112813e9968334576ee11a/src/commands/store.ts#L244-L280","documentation":"Error \"Pass a store name.\" thrown in Fission-AI/OpenSpec.","triggerScenarios":"Thrown at src/commands/store.ts:262 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"}