{"_id":"@ai_design_agency/sdd-core","_rev":"2-8b0357e8a3a19f25e19eeb35ba9e8b85","name":"@ai_design_agency/sdd-core","dist-tags":{"latest":"1.1.0"},"versions":{"1.0.0":{"name":"@ai_design_agency/sdd-core","version":"1.0.0","keywords":["sdd","spec-driven-development","types","typescript","aida"],"author":{"name":"AIDA"},"license":"MIT","_id":"@ai_design_agency/sdd-core@1.0.0","maintainers":[{"name":"aida_joel","email":"joel@aida.agency"}],"homepage":"https://github.com/aida-ai/sdd-platform#readme","bugs":{"url":"https://github.com/aida-ai/sdd-platform/issues"},"dist":{"shasum":"d8c13d8e67d65044816ad1eecb75ce384ba78496","tarball":"https://registry.npmjs.org/@ai_design_agency/sdd-core/-/sdd-core-1.0.0.tgz","fileCount":8,"integrity":"sha512-PnfziQb9U7Fuz3ahD0bPyhgkjV17v2lfpwcyeksyRNJXthHfrqoafocsMFSe4QBa1pJmOPGaSn8GqJlir/2HOw==","signatures":[{"sig":"MEUCIQDW6TCdRHYqUbC6FOgL8n/RSotP+reyYwO0bXaZi2sIigIgQBuebqB+tGyxG+6/MZRptXDcaSrAWexPmPfXmJnigfk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":17023},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.ts","default":"./dist/index.js"}}},"gitHead":"6308fb5ac315f85c78383b1bfbff24f65a6fa2d8","scripts":{"build":"tsup","clean":"rm -rf dist","type-check":"tsc --noEmit","prepublishOnly":"npm run build"},"_npmUser":{"name":"aida_joel","email":"joel@aida.agency"},"repository":{"url":"git+https://github.com/aida-ai/sdd-platform.git","type":"git","directory":"packages/sdd-core"},"_npmVersion":"10.9.3","description":"TypeScript types for SDD Platform - shared types for specs, processes, sessions, and API interactions","directories":{},"_nodeVersion":"22.18.0","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","typescript":"^5.3.0"},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/sdd-core_1.0.0_1767258014834_0.79465772567619","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@ai_design_agency/sdd-core","version":"1.1.0","description":"TypeScript types for SDD Platform - shared types for specs, processes, sessions, and API interactions","main":"./dist/index.js","module":"./dist/index.mjs","types":"./dist/index.d.ts","exports":{".":{"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.ts","default":"./dist/index.js"}}},"scripts":{"build":"tsup","type-check":"tsc --noEmit","clean":"rm -rf dist","prepublishOnly":"npm run build"},"keywords":["sdd","spec-driven-development","types","typescript","aida"],"author":{"name":"AIDA"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/aida-ai/sdd-platform.git","directory":"packages/sdd-core"},"devDependencies":{"tsup":"^8.0.0","typescript":"^5.3.0"},"peerDependencies":{},"dependencies":{},"_id":"@ai_design_agency/sdd-core@1.1.0","gitHead":"30e1ae5d3c6e0fe1fbea7fe8e9c4e68d1c5a7db2","bugs":{"url":"https://github.com/aida-ai/sdd-platform/issues"},"homepage":"https://github.com/aida-ai/sdd-platform#readme","_nodeVersion":"22.18.0","_npmVersion":"10.9.3","dist":{"integrity":"sha512-92HmnOrfvKpPP/aRpWoehYVGntdj45l54IeQSvIXdk5KG/mHCxQG7aciYMbo4xyfpQEvkrzTHM7Ssm+2RMoirg==","shasum":"3dcdff2f370292af315146d17718f4f4180feb6b","tarball":"https://registry.npmjs.org/@ai_design_agency/sdd-core/-/sdd-core-1.1.0.tgz","fileCount":8,"unpackedSize":23890,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCd+jcmrn/bXlflGE8JPyep0hhuaXnjDmPhjTdg0qOQ0wIhAPKmBWGqU3UbfPeKSWfgYgOV1s2eO5H7bciUpGfoI27M"}]},"_npmUser":{"name":"aida_joel","email":"joel@aida.agency"},"directories":{},"maintainers":[{"name":"aida_joel","email":"joel@aida.agency"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/sdd-core_1.1.0_1767650524410_0.2762934050314534"},"_hasShrinkwrap":false}},"time":{"created":"2026-01-01T09:00:14.773Z","modified":"2026-01-05T22:02:04.781Z","1.0.0":"2026-01-01T09:00:14.979Z","1.1.0":"2026-01-05T22:02:04.550Z"},"bugs":{"url":"https://github.com/aida-ai/sdd-platform/issues"},"author":{"name":"AIDA"},"license":"MIT","homepage":"https://github.com/aida-ai/sdd-platform#readme","keywords":["sdd","spec-driven-development","types","typescript","aida"],"repository":{"type":"git","url":"git+https://github.com/aida-ai/sdd-platform.git","directory":"packages/sdd-core"},"description":"TypeScript types for SDD Platform - shared types for specs, processes, sessions, and API interactions","maintainers":[{"name":"aida_joel","email":"joel@aida.agency"}],"readme":"# @aida/sdd-core\n\nTypeScript types for the SDD (Spec-Driven Development) Platform.\n\n## Installation\n\n```bash\nnpm install @aida/sdd-core\n# or\npnpm add @aida/sdd-core\n```\n\n## Usage\n\n```typescript\nimport type {\n  Spec,\n  SpecType,\n  SpecStatus,\n  Process,\n  Session,\n  CreateSpecRequest,\n  ApiResponse,\n  ApiError,\n} from \"@aida/sdd-core\";\n\n// Create a spec\nconst request: CreateSpecRequest = {\n  type: \"FEA\",\n  title: \"Implement user authentication\",\n  content: \"# Feature: User Authentication\\n...\",\n};\n\n// Type-safe API responses\nconst response: ApiResponse<Spec> = await fetch(\"/api/specs\", {\n  method: \"POST\",\n  body: JSON.stringify(request),\n}).then((r) => r.json());\n\nconsole.log(response.data.spec_number); // FEA-202601001\n```\n\n## Available Types\n\n### Entity Types\n\n- `Spec` - Core specification entity\n- `SpecType` - Spec type prefix (`'FEA' | 'ISS' | 'INV' | 'IMP' | 'EPC' | 'BKL'`)\n- `SpecStatus` - Lifecycle status\n- `SpecWithScore` - Spec with similarity score (from semantic search)\n- `Process` - Reusable workflow/procedure\n- `ProcessStep` - Individual step within a process\n- `Session` - Work session on a spec\n- `SessionStatus` - Session lifecycle status\n- `Workspace` - Tenant/organization\n\n### API Request Types\n\n- `CreateSpecRequest`\n- `UpdateSpecRequest`\n- `ListSpecsQuery`\n- `SearchSpecsRequest`\n- `CreateProcessRequest`\n- `UpdateProcessRequest`\n- `CreateSessionRequest`\n- `UpdateSessionRequest`\n\n### API Response Types\n\n- `ApiResponse<T>` - Standard response wrapper\n- `PaginatedResponse<T>` - Paginated list response\n- `ApiError` - Error response\n- `ValidationError` - Validation error with field details\n- `ErrorCode` - Standard error codes\n\n### Common Types\n\n- `UUID` - UUID string type alias\n- `ISODateString` - ISO 8601 date string\n- `BaseEntity` - Common entity fields\n\n## Spec Types Explained\n\n| Type  | Description                    | Example         |\n| ----- | ------------------------------ | --------------- |\n| `FEA` | Feature - New functionality    | `FEA-202601001` |\n| `ISS` | Issue - Bug fix                | `ISS-202601001` |\n| `INV` | Investigation - Research/spike | `INV-202601001` |\n| `IMP` | Improvement - Enhancement      | `IMP-202601001` |\n| `EPC` | Epic - Large initiative        | `EPC-202601001` |\n| `BKL` | Backlog - Planned future work  | `BKL-202601001` |\n\n## Spec Status Lifecycle\n\n```\ndraft → review → approved → in-progress → testing → completed\n                    ↓           ↓\n                cancelled    blocked\n```\n\n## License\n\nMIT\n","readmeFilename":"README.md"}