mirror of
https://github.com/Fission-AI/OpenSpec.git
synced 2026-09-14 20:16:53 +08:00
702c163048
Adds two change proposals for implementing Slice 3 of the artifact POC: 1. restructure-schema-directories - Move schemas from embedded TS objects to self-contained directories - Each schema becomes a directory with schema.yaml + templates/ - Enables co-located templates for user extensibility - 2-level resolution: user override → package built-in 2. add-instruction-loader (depends on #1) - Load templates from schema directories - Enrich templates with change context (dependencies, next steps) - Format change status for CLI output - New instruction-loader capability These proposals complete Slice 3 from docs/artifact_poc.md.
1.3 KiB
1.3 KiB
1. Create Schema Directories
- 1.1 Create
schemas/directory at package root - 1.2 Create
schemas/spec-driven/schema.yamlfromSPEC_DRIVEN_SCHEMA - 1.3 Create
schemas/spec-driven/templates/with placeholder templates - 1.4 Create
schemas/tdd/schema.yamlfromTDD_SCHEMA - 1.5 Create
schemas/tdd/templates/with placeholder templates
2. Update Schema Resolution
- 2.1 Add
getPackageSchemasDir()function usingimport.meta.url - 2.2 Add
getSchemaDir(name)to resolve schema directory path - 2.3 Update
resolveSchema()to load from directory structure - 2.4 Update
listSchemas()to scan directories instead of object keys - 2.5 Add tests for user override resolution
- 2.6 Add tests for built-in fallback
3. Cleanup
- 3.1 Remove
builtin-schemas.ts - 3.2 Update
index.tsexports (removeBUILTIN_SCHEMAS,SPEC_DRIVEN_SCHEMA,TDD_SCHEMA) - 3.3 Update any code that imports removed exports
4. Package Distribution
- 4.1 Add
schemas/tofilesarray inpackage.json - 4.2 Verify schemas are included in built package
5. Fix Template Paths
- 5.1 Update
templatefield in schema.yaml files (removetemplates/prefix) - 5.2 Ensure template paths are relative to schema's templates directory