@devtrack-solution/codesdd 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.sdd/skills/curated/api-clean-flask-langgraph/SKILL.md +2751 -0
- package/.sdd/skills/curated/devtrack-api/SKILL.md +137 -0
- package/.sdd/skills/curated/devtrack-api/agents/openai.yaml +4 -0
- package/.sdd/skills/curated/devtrack-api/references/application-presentation.md +381 -0
- package/.sdd/skills/curated/devtrack-api/references/architecture-governance.md +219 -0
- package/.sdd/skills/curated/devtrack-api/references/domain-modeling.md +359 -0
- package/.sdd/skills/curated/devtrack-api/references/implementation-checklist.md +127 -0
- package/.sdd/skills/curated/devtrack-api/references/imports-lint.md +207 -0
- package/.sdd/skills/curated/devtrack-api/references/testing-validation.md +167 -0
- package/.sdd/skills/curated/devtrack-api/references/typeorm-infrastructure.md +334 -0
- package/LICENSE +21 -0
- package/README.md +842 -0
- package/bin/codesdd.js +10 -0
- package/dist/cli/index.d.ts +3 -0
- package/dist/cli/index.js +560 -0
- package/dist/commands/change.d.ts +35 -0
- package/dist/commands/change.js +296 -0
- package/dist/commands/completion.d.ts +72 -0
- package/dist/commands/completion.js +258 -0
- package/dist/commands/config.d.ts +36 -0
- package/dist/commands/config.js +552 -0
- package/dist/commands/feedback.d.ts +9 -0
- package/dist/commands/feedback.js +184 -0
- package/dist/commands/schema.d.ts +6 -0
- package/dist/commands/schema.js +870 -0
- package/dist/commands/sdd/execution.d.ts +3 -0
- package/dist/commands/sdd/execution.js +409 -0
- package/dist/commands/sdd/shared.d.ts +9 -0
- package/dist/commands/sdd/shared.js +84 -0
- package/dist/commands/sdd/skills.d.ts +3 -0
- package/dist/commands/sdd/skills.js +154 -0
- package/dist/commands/sdd.d.ts +3 -0
- package/dist/commands/sdd.js +769 -0
- package/dist/commands/show.d.ts +14 -0
- package/dist/commands/show.js +133 -0
- package/dist/commands/spec.d.ts +15 -0
- package/dist/commands/spec.js +228 -0
- package/dist/commands/validate.d.ts +24 -0
- package/dist/commands/validate.js +295 -0
- package/dist/commands/workflow/index.d.ts +17 -0
- package/dist/commands/workflow/index.js +12 -0
- package/dist/commands/workflow/instructions.d.ts +29 -0
- package/dist/commands/workflow/instructions.js +383 -0
- package/dist/commands/workflow/new-change.d.ts +11 -0
- package/dist/commands/workflow/new-change.js +45 -0
- package/dist/commands/workflow/schemas.d.ts +10 -0
- package/dist/commands/workflow/schemas.js +34 -0
- package/dist/commands/workflow/shared.d.ts +57 -0
- package/dist/commands/workflow/shared.js +117 -0
- package/dist/commands/workflow/status.d.ts +14 -0
- package/dist/commands/workflow/status.js +76 -0
- package/dist/commands/workflow/templates.d.ts +16 -0
- package/dist/commands/workflow/templates.js +68 -0
- package/dist/core/archive.d.ts +16 -0
- package/dist/core/archive.js +487 -0
- package/dist/core/artifact-graph/graph.d.ts +56 -0
- package/dist/core/artifact-graph/graph.js +141 -0
- package/dist/core/artifact-graph/index.d.ts +7 -0
- package/dist/core/artifact-graph/index.js +13 -0
- package/dist/core/artifact-graph/instruction-loader.d.ts +143 -0
- package/dist/core/artifact-graph/instruction-loader.js +215 -0
- package/dist/core/artifact-graph/resolver.d.ts +81 -0
- package/dist/core/artifact-graph/resolver.js +258 -0
- package/dist/core/artifact-graph/schema.d.ts +13 -0
- package/dist/core/artifact-graph/schema.js +108 -0
- package/dist/core/artifact-graph/state.d.ts +12 -0
- package/dist/core/artifact-graph/state.js +54 -0
- package/dist/core/artifact-graph/types.d.ts +45 -0
- package/dist/core/artifact-graph/types.js +43 -0
- package/dist/core/available-tools.d.ts +16 -0
- package/dist/core/available-tools.js +30 -0
- package/dist/core/branding.d.ts +8 -0
- package/dist/core/branding.js +12 -0
- package/dist/core/cli/command-matrix.d.ts +23 -0
- package/dist/core/cli/command-matrix.js +123 -0
- package/dist/core/command-generation/adapters/amazon-q.d.ts +13 -0
- package/dist/core/command-generation/adapters/amazon-q.js +26 -0
- package/dist/core/command-generation/adapters/antigravity.d.ts +13 -0
- package/dist/core/command-generation/adapters/antigravity.js +26 -0
- package/dist/core/command-generation/adapters/auggie.d.ts +13 -0
- package/dist/core/command-generation/adapters/auggie.js +27 -0
- package/dist/core/command-generation/adapters/claude.d.ts +13 -0
- package/dist/core/command-generation/adapters/claude.js +50 -0
- package/dist/core/command-generation/adapters/cline.d.ts +14 -0
- package/dist/core/command-generation/adapters/cline.js +27 -0
- package/dist/core/command-generation/adapters/codebuddy.d.ts +13 -0
- package/dist/core/command-generation/adapters/codebuddy.js +28 -0
- package/dist/core/command-generation/adapters/codex.d.ts +16 -0
- package/dist/core/command-generation/adapters/codex.js +39 -0
- package/dist/core/command-generation/adapters/continue.d.ts +13 -0
- package/dist/core/command-generation/adapters/continue.js +28 -0
- package/dist/core/command-generation/adapters/costrict.d.ts +13 -0
- package/dist/core/command-generation/adapters/costrict.js +27 -0
- package/dist/core/command-generation/adapters/crush.d.ts +13 -0
- package/dist/core/command-generation/adapters/crush.js +30 -0
- package/dist/core/command-generation/adapters/cursor.d.ts +14 -0
- package/dist/core/command-generation/adapters/cursor.js +44 -0
- package/dist/core/command-generation/adapters/factory.d.ts +13 -0
- package/dist/core/command-generation/adapters/factory.js +27 -0
- package/dist/core/command-generation/adapters/gemini.d.ts +13 -0
- package/dist/core/command-generation/adapters/gemini.js +26 -0
- package/dist/core/command-generation/adapters/github-copilot.d.ts +13 -0
- package/dist/core/command-generation/adapters/github-copilot.js +26 -0
- package/dist/core/command-generation/adapters/iflow.d.ts +13 -0
- package/dist/core/command-generation/adapters/iflow.js +29 -0
- package/dist/core/command-generation/adapters/index.d.ts +29 -0
- package/dist/core/command-generation/adapters/index.js +29 -0
- package/dist/core/command-generation/adapters/kilocode.d.ts +14 -0
- package/dist/core/command-generation/adapters/kilocode.js +23 -0
- package/dist/core/command-generation/adapters/kiro.d.ts +13 -0
- package/dist/core/command-generation/adapters/kiro.js +26 -0
- package/dist/core/command-generation/adapters/opencode.d.ts +13 -0
- package/dist/core/command-generation/adapters/opencode.js +29 -0
- package/dist/core/command-generation/adapters/pi.d.ts +14 -0
- package/dist/core/command-generation/adapters/pi.js +41 -0
- package/dist/core/command-generation/adapters/qoder.d.ts +13 -0
- package/dist/core/command-generation/adapters/qoder.js +30 -0
- package/dist/core/command-generation/adapters/qwen.d.ts +13 -0
- package/dist/core/command-generation/adapters/qwen.js +26 -0
- package/dist/core/command-generation/adapters/roocode.d.ts +14 -0
- package/dist/core/command-generation/adapters/roocode.js +27 -0
- package/dist/core/command-generation/adapters/windsurf.d.ts +14 -0
- package/dist/core/command-generation/adapters/windsurf.js +51 -0
- package/dist/core/command-generation/generator.d.ts +21 -0
- package/dist/core/command-generation/generator.js +27 -0
- package/dist/core/command-generation/index.d.ts +22 -0
- package/dist/core/command-generation/index.js +24 -0
- package/dist/core/command-generation/registry.d.ts +36 -0
- package/dist/core/command-generation/registry.js +92 -0
- package/dist/core/command-generation/types.d.ts +56 -0
- package/dist/core/command-generation/types.js +8 -0
- package/dist/core/completions/command-registry.d.ts +7 -0
- package/dist/core/completions/command-registry.js +461 -0
- package/dist/core/completions/completion-provider.d.ts +60 -0
- package/dist/core/completions/completion-provider.js +102 -0
- package/dist/core/completions/factory.d.ts +64 -0
- package/dist/core/completions/factory.js +75 -0
- package/dist/core/completions/generators/bash-generator.d.ts +32 -0
- package/dist/core/completions/generators/bash-generator.js +174 -0
- package/dist/core/completions/generators/fish-generator.d.ts +32 -0
- package/dist/core/completions/generators/fish-generator.js +157 -0
- package/dist/core/completions/generators/powershell-generator.d.ts +33 -0
- package/dist/core/completions/generators/powershell-generator.js +207 -0
- package/dist/core/completions/generators/zsh-generator.d.ts +44 -0
- package/dist/core/completions/generators/zsh-generator.js +250 -0
- package/dist/core/completions/installers/bash-installer.d.ts +87 -0
- package/dist/core/completions/installers/bash-installer.js +318 -0
- package/dist/core/completions/installers/fish-installer.d.ts +43 -0
- package/dist/core/completions/installers/fish-installer.js +143 -0
- package/dist/core/completions/installers/powershell-installer.d.ts +88 -0
- package/dist/core/completions/installers/powershell-installer.js +327 -0
- package/dist/core/completions/installers/zsh-installer.d.ts +125 -0
- package/dist/core/completions/installers/zsh-installer.js +452 -0
- package/dist/core/completions/templates/bash-templates.d.ts +6 -0
- package/dist/core/completions/templates/bash-templates.js +24 -0
- package/dist/core/completions/templates/fish-templates.d.ts +7 -0
- package/dist/core/completions/templates/fish-templates.js +39 -0
- package/dist/core/completions/templates/powershell-templates.d.ts +6 -0
- package/dist/core/completions/templates/powershell-templates.js +25 -0
- package/dist/core/completions/templates/zsh-templates.d.ts +6 -0
- package/dist/core/completions/templates/zsh-templates.js +36 -0
- package/dist/core/completions/types.d.ts +79 -0
- package/dist/core/completions/types.js +2 -0
- package/dist/core/config-prompts.d.ts +9 -0
- package/dist/core/config-prompts.js +34 -0
- package/dist/core/config-schema.d.ts +86 -0
- package/dist/core/config-schema.js +213 -0
- package/dist/core/config.d.ts +17 -0
- package/dist/core/config.js +33 -0
- package/dist/core/converters/json-converter.d.ts +6 -0
- package/dist/core/converters/json-converter.js +51 -0
- package/dist/core/global-config.d.ts +44 -0
- package/dist/core/global-config.js +125 -0
- package/dist/core/index.d.ts +2 -0
- package/dist/core/index.js +3 -0
- package/dist/core/init.d.ts +36 -0
- package/dist/core/init.js +576 -0
- package/dist/core/legacy-cleanup.d.ts +162 -0
- package/dist/core/legacy-cleanup.js +512 -0
- package/dist/core/list.d.ts +9 -0
- package/dist/core/list.js +173 -0
- package/dist/core/migration.d.ts +23 -0
- package/dist/core/migration.js +108 -0
- package/dist/core/parsers/change-parser.d.ts +13 -0
- package/dist/core/parsers/change-parser.js +193 -0
- package/dist/core/parsers/markdown-parser.d.ts +22 -0
- package/dist/core/parsers/markdown-parser.js +187 -0
- package/dist/core/parsers/requirement-blocks.d.ts +37 -0
- package/dist/core/parsers/requirement-blocks.js +201 -0
- package/dist/core/profile-sync-drift.d.ts +38 -0
- package/dist/core/profile-sync-drift.js +201 -0
- package/dist/core/profiles.d.ts +26 -0
- package/dist/core/profiles.js +41 -0
- package/dist/core/project-config.d.ts +64 -0
- package/dist/core/project-config.js +223 -0
- package/dist/core/schemas/base.schema.d.ts +13 -0
- package/dist/core/schemas/base.schema.js +13 -0
- package/dist/core/schemas/change.schema.d.ts +73 -0
- package/dist/core/schemas/change.schema.js +31 -0
- package/dist/core/schemas/index.d.ts +4 -0
- package/dist/core/schemas/index.js +4 -0
- package/dist/core/schemas/spec.schema.d.ts +18 -0
- package/dist/core/schemas/spec.schema.js +15 -0
- package/dist/core/sdd/adr-policy.d.ts +7 -0
- package/dist/core/sdd/adr-policy.js +47 -0
- package/dist/core/sdd/adr.d.ts +4 -0
- package/dist/core/sdd/adr.js +27 -0
- package/dist/core/sdd/bootstrap.d.ts +28 -0
- package/dist/core/sdd/bootstrap.js +353 -0
- package/dist/core/sdd/check.d.ts +51 -0
- package/dist/core/sdd/check.js +831 -0
- package/dist/core/sdd/coordination/coordination-adapters.d.ts +73 -0
- package/dist/core/sdd/coordination/coordination-adapters.js +87 -0
- package/dist/core/sdd/coordination/index.d.ts +2 -0
- package/dist/core/sdd/coordination/index.js +2 -0
- package/dist/core/sdd/dedup.d.ts +23 -0
- package/dist/core/sdd/dedup.js +62 -0
- package/dist/core/sdd/default-bootstrap-files.d.ts +23 -0
- package/dist/core/sdd/default-bootstrap-files.js +385 -0
- package/dist/core/sdd/default-skills.d.ts +16 -0
- package/dist/core/sdd/default-skills.js +427 -0
- package/dist/core/sdd/diagnose.d.ts +25 -0
- package/dist/core/sdd/diagnose.js +1312 -0
- package/dist/core/sdd/docs-sync.d.ts +21 -0
- package/dist/core/sdd/docs-sync.js +231 -0
- package/dist/core/sdd/domain/helpers.d.ts +6 -0
- package/dist/core/sdd/domain/helpers.js +37 -0
- package/dist/core/sdd/domain/lifecycle-guardrails.d.ts +22 -0
- package/dist/core/sdd/domain/lifecycle-guardrails.js +31 -0
- package/dist/core/sdd/domain/lifecycle-hooks.d.ts +16 -0
- package/dist/core/sdd/domain/lifecycle-hooks.js +27 -0
- package/dist/core/sdd/domain/post-active-validation.d.ts +15 -0
- package/dist/core/sdd/domain/post-active-validation.js +71 -0
- package/dist/core/sdd/domain/traceability.d.ts +8 -0
- package/dist/core/sdd/domain/traceability.js +83 -0
- package/dist/core/sdd/domain/transition-engine.d.ts +49 -0
- package/dist/core/sdd/domain/transition-engine.js +120 -0
- package/dist/core/sdd/fingerprint.d.ts +23 -0
- package/dist/core/sdd/fingerprint.js +146 -0
- package/dist/core/sdd/import-openspec.d.ts +31 -0
- package/dist/core/sdd/import-openspec.js +232 -0
- package/dist/core/sdd/init.d.ts +36 -0
- package/dist/core/sdd/init.js +65 -0
- package/dist/core/sdd/json-schema.d.ts +6 -0
- package/dist/core/sdd/json-schema.js +59 -0
- package/dist/core/sdd/legacy-operations.d.ts +286 -0
- package/dist/core/sdd/legacy-operations.js +2175 -0
- package/dist/core/sdd/lenses.d.ts +14 -0
- package/dist/core/sdd/lenses.js +97 -0
- package/dist/core/sdd/merge-catalog.d.ts +9 -0
- package/dist/core/sdd/merge-catalog.js +70 -0
- package/dist/core/sdd/migrate-workspace.d.ts +36 -0
- package/dist/core/sdd/migrate-workspace.js +344 -0
- package/dist/core/sdd/migrate.d.ts +24 -0
- package/dist/core/sdd/migrate.js +385 -0
- package/dist/core/sdd/resolve-project-root.d.ts +15 -0
- package/dist/core/sdd/resolve-project-root.js +46 -0
- package/dist/core/sdd/root-resolver.d.ts +16 -0
- package/dist/core/sdd/root-resolver.js +62 -0
- package/dist/core/sdd/sanitize.d.ts +35 -0
- package/dist/core/sdd/sanitize.js +750 -0
- package/dist/core/sdd/services/approve.service.d.ts +20 -0
- package/dist/core/sdd/services/approve.service.js +82 -0
- package/dist/core/sdd/services/audit.service.d.ts +53 -0
- package/dist/core/sdd/services/audit.service.js +136 -0
- package/dist/core/sdd/services/breakdown.service.d.ts +35 -0
- package/dist/core/sdd/services/breakdown.service.js +185 -0
- package/dist/core/sdd/services/context.service.d.ts +346 -0
- package/dist/core/sdd/services/context.service.js +278 -0
- package/dist/core/sdd/services/debate.service.d.ts +16 -0
- package/dist/core/sdd/services/debate.service.js +73 -0
- package/dist/core/sdd/services/decide.service.d.ts +23 -0
- package/dist/core/sdd/services/decide.service.js +81 -0
- package/dist/core/sdd/services/dedup-apply.service.d.ts +39 -0
- package/dist/core/sdd/services/dedup-apply.service.js +259 -0
- package/dist/core/sdd/services/feature-lint.service.d.ts +29 -0
- package/dist/core/sdd/services/feature-lint.service.js +146 -0
- package/dist/core/sdd/services/finalize.service.d.ts +33 -0
- package/dist/core/sdd/services/finalize.service.js +707 -0
- package/dist/core/sdd/services/frontend-gap.service.d.ts +23 -0
- package/dist/core/sdd/services/frontend-gap.service.js +117 -0
- package/dist/core/sdd/services/frontend-impact.service.d.ts +19 -0
- package/dist/core/sdd/services/frontend-impact.service.js +46 -0
- package/dist/core/sdd/services/ingest-deposito.service.d.ts +32 -0
- package/dist/core/sdd/services/ingest-deposito.service.js +231 -0
- package/dist/core/sdd/services/insight.service.d.ts +21 -0
- package/dist/core/sdd/services/insight.service.js +81 -0
- package/dist/core/sdd/services/legacy-capability.service.d.ts +24 -0
- package/dist/core/sdd/services/legacy-capability.service.js +59 -0
- package/dist/core/sdd/services/mcp-runtime.service.d.ts +42 -0
- package/dist/core/sdd/services/mcp-runtime.service.js +144 -0
- package/dist/core/sdd/services/metrics.service.d.ts +49 -0
- package/dist/core/sdd/services/metrics.service.js +181 -0
- package/dist/core/sdd/services/next.service.d.ts +35 -0
- package/dist/core/sdd/services/next.service.js +54 -0
- package/dist/core/sdd/services/onboard.service.d.ts +9 -0
- package/dist/core/sdd/services/onboard.service.js +165 -0
- package/dist/core/sdd/services/rebuild.service.d.ts +31 -0
- package/dist/core/sdd/services/rebuild.service.js +482 -0
- package/dist/core/sdd/services/scan-naming.service.d.ts +43 -0
- package/dist/core/sdd/services/scan-naming.service.js +246 -0
- package/dist/core/sdd/services/skills-invoke.service.d.ts +24 -0
- package/dist/core/sdd/services/skills-invoke.service.js +63 -0
- package/dist/core/sdd/services/skills-sync.service.d.ts +15 -0
- package/dist/core/sdd/services/skills-sync.service.js +117 -0
- package/dist/core/sdd/services/start.service.d.ts +26 -0
- package/dist/core/sdd/services/start.service.js +237 -0
- package/dist/core/sdd/skills.d.ts +15 -0
- package/dist/core/sdd/skills.js +46 -0
- package/dist/core/sdd/state-lock.d.ts +19 -0
- package/dist/core/sdd/state-lock.js +144 -0
- package/dist/core/sdd/state.d.ts +155 -0
- package/dist/core/sdd/state.js +1000 -0
- package/dist/core/sdd/store/in-memory-adapter.d.ts +12 -0
- package/dist/core/sdd/store/in-memory-adapter.js +27 -0
- package/dist/core/sdd/store/index.d.ts +5 -0
- package/dist/core/sdd/store/index.js +5 -0
- package/dist/core/sdd/store/sdd-stores.d.ts +25 -0
- package/dist/core/sdd/store/sdd-stores.js +59 -0
- package/dist/core/sdd/store/state-store.d.ts +32 -0
- package/dist/core/sdd/store/state-store.js +2 -0
- package/dist/core/sdd/store/yaml-file-adapter.d.ts +12 -0
- package/dist/core/sdd/store/yaml-file-adapter.js +43 -0
- package/dist/core/sdd/structural-health.d.ts +557 -0
- package/dist/core/sdd/structural-health.js +187 -0
- package/dist/core/sdd/transaction.d.ts +14 -0
- package/dist/core/sdd/transaction.js +100 -0
- package/dist/core/sdd/types.d.ts +1570 -0
- package/dist/core/sdd/types.js +617 -0
- package/dist/core/sdd/views.d.ts +3 -0
- package/dist/core/sdd/views.js +560 -0
- package/dist/core/sdd/workspace-schemas.d.ts +620 -0
- package/dist/core/sdd/workspace-schemas.js +254 -0
- package/dist/core/sdd/write-manifest.d.ts +25 -0
- package/dist/core/sdd/write-manifest.js +353 -0
- package/dist/core/shared/index.d.ts +8 -0
- package/dist/core/shared/index.js +8 -0
- package/dist/core/shared/skill-generation.d.ts +49 -0
- package/dist/core/shared/skill-generation.js +106 -0
- package/dist/core/shared/tool-detection.d.ts +71 -0
- package/dist/core/shared/tool-detection.js +158 -0
- package/dist/core/specs-apply.d.ts +73 -0
- package/dist/core/specs-apply.js +385 -0
- package/dist/core/styles/palette.d.ts +7 -0
- package/dist/core/styles/palette.js +8 -0
- package/dist/core/templates/index.d.ts +8 -0
- package/dist/core/templates/index.js +9 -0
- package/dist/core/templates/skill-templates.d.ts +20 -0
- package/dist/core/templates/skill-templates.js +19 -0
- package/dist/core/templates/types.d.ts +19 -0
- package/dist/core/templates/types.js +5 -0
- package/dist/core/templates/workflows/apply-change.d.ts +10 -0
- package/dist/core/templates/workflows/apply-change.js +308 -0
- package/dist/core/templates/workflows/archive-change.d.ts +10 -0
- package/dist/core/templates/workflows/archive-change.js +277 -0
- package/dist/core/templates/workflows/bulk-archive-change.d.ts +10 -0
- package/dist/core/templates/workflows/bulk-archive-change.js +502 -0
- package/dist/core/templates/workflows/continue-change.d.ts +10 -0
- package/dist/core/templates/workflows/continue-change.js +232 -0
- package/dist/core/templates/workflows/explore.d.ts +10 -0
- package/dist/core/templates/workflows/explore.js +475 -0
- package/dist/core/templates/workflows/feedback.d.ts +9 -0
- package/dist/core/templates/workflows/feedback.js +108 -0
- package/dist/core/templates/workflows/ff-change.d.ts +10 -0
- package/dist/core/templates/workflows/ff-change.js +206 -0
- package/dist/core/templates/workflows/new-change.d.ts +10 -0
- package/dist/core/templates/workflows/new-change.js +151 -0
- package/dist/core/templates/workflows/onboard.d.ts +10 -0
- package/dist/core/templates/workflows/onboard.js +573 -0
- package/dist/core/templates/workflows/propose.d.ts +10 -0
- package/dist/core/templates/workflows/propose.js +224 -0
- package/dist/core/templates/workflows/sdd.d.ts +10 -0
- package/dist/core/templates/workflows/sdd.js +107 -0
- package/dist/core/templates/workflows/sync-specs.d.ts +10 -0
- package/dist/core/templates/workflows/sync-specs.js +286 -0
- package/dist/core/templates/workflows/verify-change.d.ts +10 -0
- package/dist/core/templates/workflows/verify-change.js +346 -0
- package/dist/core/update.d.ts +77 -0
- package/dist/core/update.js +538 -0
- package/dist/core/validation/constants.d.ts +34 -0
- package/dist/core/validation/constants.js +40 -0
- package/dist/core/validation/types.d.ts +18 -0
- package/dist/core/validation/types.js +2 -0
- package/dist/core/validation/validator.d.ts +33 -0
- package/dist/core/validation/validator.js +409 -0
- package/dist/core/view.d.ts +8 -0
- package/dist/core/view.js +170 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3 -0
- package/dist/prompts/searchable-multi-select.d.ts +28 -0
- package/dist/prompts/searchable-multi-select.js +159 -0
- package/dist/telemetry/config.d.ts +32 -0
- package/dist/telemetry/config.js +68 -0
- package/dist/telemetry/index.d.ts +44 -0
- package/dist/telemetry/index.js +207 -0
- package/dist/ui/ascii-patterns.d.ts +16 -0
- package/dist/ui/ascii-patterns.js +133 -0
- package/dist/ui/welcome-screen.d.ts +10 -0
- package/dist/ui/welcome-screen.js +146 -0
- package/dist/utils/change-metadata.d.ts +51 -0
- package/dist/utils/change-metadata.js +147 -0
- package/dist/utils/change-utils.d.ts +62 -0
- package/dist/utils/change-utils.js +121 -0
- package/dist/utils/command-references.d.ts +18 -0
- package/dist/utils/command-references.js +20 -0
- package/dist/utils/file-system.d.ts +36 -0
- package/dist/utils/file-system.js +281 -0
- package/dist/utils/index.d.ts +6 -0
- package/dist/utils/index.js +9 -0
- package/dist/utils/interactive.d.ts +18 -0
- package/dist/utils/interactive.js +21 -0
- package/dist/utils/item-discovery.d.ts +4 -0
- package/dist/utils/item-discovery.js +73 -0
- package/dist/utils/match.d.ts +3 -0
- package/dist/utils/match.js +22 -0
- package/dist/utils/openspec-compat.d.ts +2 -0
- package/dist/utils/openspec-compat.js +2 -0
- package/dist/utils/shell-detection.d.ts +20 -0
- package/dist/utils/shell-detection.js +41 -0
- package/dist/utils/task-progress.d.ts +8 -0
- package/dist/utils/task-progress.js +36 -0
- package/package.json +111 -0
- package/schemas/sdd/1-spec.schema.json +221 -0
- package/schemas/sdd/2-plan.schema.json +199 -0
- package/schemas/sdd/3-tasks.schema.json +102 -0
- package/schemas/sdd/4-changelog.schema.json +55 -0
- package/schemas/sdd/5-quality.schema.json +427 -0
- package/schemas/sdd/workspace-catalog.schema.json +1012 -0
- package/schemas/spec-driven/schema.yaml +153 -0
- package/schemas/spec-driven/templates/design.md +19 -0
- package/schemas/spec-driven/templates/proposal.md +23 -0
- package/schemas/spec-driven/templates/spec.md +8 -0
- package/schemas/spec-driven/templates/tasks.md +9 -0
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export const STRUCTURAL_HEALTH_TOKENS = {
|
|
3
|
+
lifecycleDirectories: ['planned', 'active', 'archived'],
|
|
4
|
+
generatedDirectories: ['planning', 'core'],
|
|
5
|
+
commandNames: ['diagnose', 'sanitize', 'check', 'audit'],
|
|
6
|
+
findingSeverities: ['info', 'warning', 'error', 'blocker'],
|
|
7
|
+
findingCategories: [
|
|
8
|
+
'lifecycle',
|
|
9
|
+
'references',
|
|
10
|
+
'integrity',
|
|
11
|
+
'boundary',
|
|
12
|
+
'render',
|
|
13
|
+
'metadata',
|
|
14
|
+
'naming',
|
|
15
|
+
],
|
|
16
|
+
sanitizerDispositions: ['safe', 'manual', 'blocked', 'noop'],
|
|
17
|
+
lifecycleStates: ['planned', 'ready', 'blocked', 'in_progress', 'done', 'archived'],
|
|
18
|
+
navigationNodeKinds: ['insight', 'debate', 'epic', 'feature', 'frontend_gap', 'tech_debt', 'other'],
|
|
19
|
+
navigationEdgeKinds: ['origin', 'depends_on', 'produces', 'consumes', 'related'],
|
|
20
|
+
boundaryViolations: ['none', 'path_traversal', 'symlink_escape', 'absolute_escape', 'out_of_root'],
|
|
21
|
+
};
|
|
22
|
+
const NonEmptyStringSchema = z.string().trim().min(1);
|
|
23
|
+
export const StructuralLifecycleDirectoryTokenSchema = z.enum(STRUCTURAL_HEALTH_TOKENS.lifecycleDirectories);
|
|
24
|
+
export const StructuralGeneratedDirectoryTokenSchema = z.enum(STRUCTURAL_HEALTH_TOKENS.generatedDirectories);
|
|
25
|
+
export const StructuralCommandNameTokenSchema = z.enum(STRUCTURAL_HEALTH_TOKENS.commandNames);
|
|
26
|
+
export const StructuralFindingSeveritySchema = z.enum(STRUCTURAL_HEALTH_TOKENS.findingSeverities);
|
|
27
|
+
export const StructuralFindingCategorySchema = z.enum(STRUCTURAL_HEALTH_TOKENS.findingCategories);
|
|
28
|
+
export const StructuralSanitizerDispositionSchema = z.enum(STRUCTURAL_HEALTH_TOKENS.sanitizerDispositions);
|
|
29
|
+
export const StructuralLifecycleStateTokenSchema = z.enum(STRUCTURAL_HEALTH_TOKENS.lifecycleStates);
|
|
30
|
+
export const StructuralNavigationNodeKindSchema = z.enum(STRUCTURAL_HEALTH_TOKENS.navigationNodeKinds);
|
|
31
|
+
export const StructuralNavigationEdgeKindSchema = z.enum(STRUCTURAL_HEALTH_TOKENS.navigationEdgeKinds);
|
|
32
|
+
export const StructuralBoundaryViolationSchema = z.enum(STRUCTURAL_HEALTH_TOKENS.boundaryViolations);
|
|
33
|
+
export const StructuralTokenRegistrySchema = z.object({
|
|
34
|
+
lifecycle_directories: z.array(StructuralLifecycleDirectoryTokenSchema).min(1),
|
|
35
|
+
generated_directories: z.array(StructuralGeneratedDirectoryTokenSchema).min(1),
|
|
36
|
+
command_names: z.array(StructuralCommandNameTokenSchema).min(1),
|
|
37
|
+
finding_severities: z.array(StructuralFindingSeveritySchema).min(1),
|
|
38
|
+
finding_categories: z.array(StructuralFindingCategorySchema).min(1),
|
|
39
|
+
sanitizer_dispositions: z.array(StructuralSanitizerDispositionSchema).min(1),
|
|
40
|
+
});
|
|
41
|
+
export const StructuralBoundaryPathSchema = z
|
|
42
|
+
.object({
|
|
43
|
+
root_path: NonEmptyStringSchema,
|
|
44
|
+
candidate_path: NonEmptyStringSchema,
|
|
45
|
+
normalized_path: NonEmptyStringSchema,
|
|
46
|
+
real_path: NonEmptyStringSchema,
|
|
47
|
+
is_within_root: z.boolean(),
|
|
48
|
+
violation: StructuralBoundaryViolationSchema.default('none'),
|
|
49
|
+
})
|
|
50
|
+
.superRefine((value, ctx) => {
|
|
51
|
+
if (value.is_within_root && value.violation !== 'none') {
|
|
52
|
+
ctx.addIssue({
|
|
53
|
+
code: z.ZodIssueCode.custom,
|
|
54
|
+
message: 'Boundary path marked inside root cannot carry a violation token.',
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
if (!value.is_within_root && value.violation === 'none') {
|
|
58
|
+
ctx.addIssue({
|
|
59
|
+
code: z.ZodIssueCode.custom,
|
|
60
|
+
message: 'Boundary path outside root must carry a non-none violation token.',
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
export const StructuralCommandInvocationSchema = z.object({
|
|
65
|
+
command: StructuralCommandNameTokenSchema,
|
|
66
|
+
mode: z.enum(['read', 'dry_run', 'apply']),
|
|
67
|
+
args: z.record(z.string(), z.unknown()).default({}),
|
|
68
|
+
});
|
|
69
|
+
export const StructuralFindingSchema = z.object({
|
|
70
|
+
finding_id: z.string().regex(/^SH-[A-Z0-9][A-Z0-9-]{2,}$/),
|
|
71
|
+
rule_id: z.string().regex(/^SH-RULE-[A-Z0-9][A-Z0-9-]{2,}$/),
|
|
72
|
+
category: StructuralFindingCategorySchema,
|
|
73
|
+
severity: StructuralFindingSeveritySchema,
|
|
74
|
+
summary: NonEmptyStringSchema,
|
|
75
|
+
evidence: z.record(z.string(), z.unknown()).default({}),
|
|
76
|
+
location: NonEmptyStringSchema.optional(),
|
|
77
|
+
sanitizer: z.object({
|
|
78
|
+
disposition: StructuralSanitizerDispositionSchema,
|
|
79
|
+
reason: NonEmptyStringSchema,
|
|
80
|
+
actions: z.array(NonEmptyStringSchema).default([]),
|
|
81
|
+
}),
|
|
82
|
+
});
|
|
83
|
+
export const StructuralDiagnosticReportSchema = z.object({
|
|
84
|
+
report_version: z.literal(1),
|
|
85
|
+
generated_at: NonEmptyStringSchema,
|
|
86
|
+
root_path: NonEmptyStringSchema,
|
|
87
|
+
strict: z.boolean().default(false),
|
|
88
|
+
findings: z.array(StructuralFindingSchema),
|
|
89
|
+
summary: z.object({
|
|
90
|
+
total: z.number().int().nonnegative(),
|
|
91
|
+
by_severity: z.partialRecord(StructuralFindingSeveritySchema, z.number().int().nonnegative()).default({}),
|
|
92
|
+
by_category: z.partialRecord(StructuralFindingCategorySchema, z.number().int().nonnegative()).default({}),
|
|
93
|
+
}),
|
|
94
|
+
});
|
|
95
|
+
export const StructuralSanitizerActionSchema = z.object({
|
|
96
|
+
action_id: z.string().regex(/^SH-ACTION-[A-Z0-9][A-Z0-9-]{2,}$/),
|
|
97
|
+
finding_id: z.string().regex(/^SH-[A-Z0-9][A-Z0-9-]{2,}$/),
|
|
98
|
+
disposition: StructuralSanitizerDispositionSchema,
|
|
99
|
+
operation: z.enum(['mkdir', 'move', 'render', 'register', 'manual_review', 'skip']),
|
|
100
|
+
from_path: NonEmptyStringSchema.optional(),
|
|
101
|
+
to_path: NonEmptyStringSchema.optional(),
|
|
102
|
+
notes: NonEmptyStringSchema.optional(),
|
|
103
|
+
});
|
|
104
|
+
export const StructuralSanitizerRollbackOperationSchema = z.object({
|
|
105
|
+
operation: z.enum(['noop', 'delete_path', 'move', 'restore_backup']),
|
|
106
|
+
path: NonEmptyStringSchema.optional(),
|
|
107
|
+
from_path: NonEmptyStringSchema.optional(),
|
|
108
|
+
to_path: NonEmptyStringSchema.optional(),
|
|
109
|
+
backup_path: NonEmptyStringSchema.optional(),
|
|
110
|
+
});
|
|
111
|
+
export const StructuralSanitizerTransactionOperationSchema = z.object({
|
|
112
|
+
transaction_action_id: z.string().regex(/^SAN-OP-[A-Z0-9][A-Z0-9-]{2,}$/),
|
|
113
|
+
action_id: z.string().regex(/^SH-ACTION-[A-Z0-9][A-Z0-9-]{2,}$/),
|
|
114
|
+
finding_id: z.string().regex(/^SH-[A-Z0-9][A-Z0-9-]{2,}$/),
|
|
115
|
+
disposition: StructuralSanitizerDispositionSchema,
|
|
116
|
+
operation: StructuralSanitizerActionSchema.shape.operation,
|
|
117
|
+
status: z.enum(['applied', 'skipped', 'failed', 'rolled_back']),
|
|
118
|
+
from_path: NonEmptyStringSchema.optional(),
|
|
119
|
+
to_path: NonEmptyStringSchema.optional(),
|
|
120
|
+
before_hash: NonEmptyStringSchema.optional(),
|
|
121
|
+
after_hash: NonEmptyStringSchema.optional(),
|
|
122
|
+
error: NonEmptyStringSchema.optional(),
|
|
123
|
+
rollback: StructuralSanitizerRollbackOperationSchema,
|
|
124
|
+
});
|
|
125
|
+
export const StructuralSanitizerTransactionSummarySchema = z.object({
|
|
126
|
+
applied: z.number().int().nonnegative(),
|
|
127
|
+
skipped: z.number().int().nonnegative(),
|
|
128
|
+
failed: z.number().int().nonnegative(),
|
|
129
|
+
rolled_back: z.number().int().nonnegative(),
|
|
130
|
+
});
|
|
131
|
+
export const StructuralSanitizerTransactionManifestSchema = z.object({
|
|
132
|
+
report_version: z.literal(1),
|
|
133
|
+
transaction_id: z.string().regex(/^SAN-[0-9]{8}T[0-9]{6}Z-[A-F0-9]{8}$/),
|
|
134
|
+
generated_at: NonEmptyStringSchema,
|
|
135
|
+
source_report_id: NonEmptyStringSchema,
|
|
136
|
+
root_path: NonEmptyStringSchema,
|
|
137
|
+
mode: z.literal('apply'),
|
|
138
|
+
operations: z.array(StructuralSanitizerTransactionOperationSchema),
|
|
139
|
+
summary: StructuralSanitizerTransactionSummarySchema,
|
|
140
|
+
audit_log_path: NonEmptyStringSchema,
|
|
141
|
+
});
|
|
142
|
+
export const StructuralSanitizerReportSchema = z.object({
|
|
143
|
+
report_version: z.literal(1),
|
|
144
|
+
generated_at: NonEmptyStringSchema,
|
|
145
|
+
source_report_id: NonEmptyStringSchema,
|
|
146
|
+
mode: z.enum(['dry_run', 'apply']),
|
|
147
|
+
actions: z.array(StructuralSanitizerActionSchema),
|
|
148
|
+
blocked_actions: z.array(StructuralSanitizerActionSchema).default([]),
|
|
149
|
+
transaction_id: NonEmptyStringSchema.optional(),
|
|
150
|
+
manifest_path: NonEmptyStringSchema.optional(),
|
|
151
|
+
audit_log_path: NonEmptyStringSchema.optional(),
|
|
152
|
+
summary: StructuralSanitizerTransactionSummarySchema.optional(),
|
|
153
|
+
});
|
|
154
|
+
export const StructuralLifecycleEntrySchema = z.object({
|
|
155
|
+
entity_id: z.string().regex(/^(?:INS|DEB|EPIC|FEAT|FGAP|TD)-\d{3,}$/),
|
|
156
|
+
expected_root: StructuralLifecycleDirectoryTokenSchema,
|
|
157
|
+
actual_root: StructuralLifecycleDirectoryTokenSchema.optional(),
|
|
158
|
+
state_token: StructuralLifecycleStateTokenSchema,
|
|
159
|
+
});
|
|
160
|
+
export const StructuralDirectoryStateMappingSchema = z.object({
|
|
161
|
+
version: z.literal(1),
|
|
162
|
+
lifecycle_roots: z.record(StructuralLifecycleDirectoryTokenSchema, z.array(StructuralLifecycleStateTokenSchema)),
|
|
163
|
+
state_to_root: z.record(StructuralLifecycleStateTokenSchema, StructuralLifecycleDirectoryTokenSchema),
|
|
164
|
+
});
|
|
165
|
+
export const StructuralNavigationNodeSchema = z.object({
|
|
166
|
+
node_id: NonEmptyStringSchema,
|
|
167
|
+
kind: StructuralNavigationNodeKindSchema,
|
|
168
|
+
ref: NonEmptyStringSchema,
|
|
169
|
+
status: NonEmptyStringSchema.optional(),
|
|
170
|
+
});
|
|
171
|
+
export const StructuralNavigationEdgeSchema = z.object({
|
|
172
|
+
from: NonEmptyStringSchema,
|
|
173
|
+
to: NonEmptyStringSchema,
|
|
174
|
+
kind: StructuralNavigationEdgeKindSchema,
|
|
175
|
+
});
|
|
176
|
+
export const StructuralNavigationGraphSchema = z.object({
|
|
177
|
+
nodes: z.array(StructuralNavigationNodeSchema),
|
|
178
|
+
edges: z.array(StructuralNavigationEdgeSchema),
|
|
179
|
+
});
|
|
180
|
+
export const StructuralFixtureRootSchema = z.object({
|
|
181
|
+
fixture_id: NonEmptyStringSchema,
|
|
182
|
+
lifecycle_directories: z.array(StructuralLifecycleDirectoryTokenSchema).min(1),
|
|
183
|
+
generated_directories: z.array(StructuralGeneratedDirectoryTokenSchema).default([]),
|
|
184
|
+
state_files: z.array(z.string().regex(/^\.sdd\/state\/[a-z0-9-]+\.yaml$/i)).default([]),
|
|
185
|
+
translated_directories: z.array(NonEmptyStringSchema).default([]),
|
|
186
|
+
});
|
|
187
|
+
//# sourceMappingURL=structural-health.js.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { promises as fs } from 'node:fs';
|
|
2
|
+
type FsApi = Pick<typeof fs, 'mkdir' | 'writeFile' | 'rename' | 'rm'>;
|
|
3
|
+
export declare class SddWriteTransaction {
|
|
4
|
+
private readonly fsApi;
|
|
5
|
+
private readonly txId;
|
|
6
|
+
private readonly writes;
|
|
7
|
+
private committed;
|
|
8
|
+
constructor(fsApi?: FsApi);
|
|
9
|
+
writeFile(filePath: string, content: string): void;
|
|
10
|
+
commit(): Promise<void>;
|
|
11
|
+
private rollback;
|
|
12
|
+
}
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=transaction.d.ts.map
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { randomUUID } from 'node:crypto';
|
|
2
|
+
import { promises as fs } from 'node:fs';
|
|
3
|
+
import path from 'node:path';
|
|
4
|
+
function isErrnoCode(error, code) {
|
|
5
|
+
return !!error && typeof error === 'object' && 'code' in error && error.code === code;
|
|
6
|
+
}
|
|
7
|
+
async function rmIfExists(fsApi, filePath) {
|
|
8
|
+
try {
|
|
9
|
+
await fsApi.rm(filePath, { force: true });
|
|
10
|
+
}
|
|
11
|
+
catch (error) {
|
|
12
|
+
if (!isErrnoCode(error, 'ENOENT')) {
|
|
13
|
+
throw error;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
export class SddWriteTransaction {
|
|
18
|
+
fsApi;
|
|
19
|
+
txId;
|
|
20
|
+
writes = [];
|
|
21
|
+
committed = false;
|
|
22
|
+
constructor(fsApi = fs) {
|
|
23
|
+
this.fsApi = fsApi;
|
|
24
|
+
this.txId = randomUUID();
|
|
25
|
+
}
|
|
26
|
+
writeFile(filePath, content) {
|
|
27
|
+
this.writes.push({ targetPath: filePath, content });
|
|
28
|
+
}
|
|
29
|
+
async commit() {
|
|
30
|
+
if (this.committed) {
|
|
31
|
+
throw new Error('SddWriteTransaction already committed');
|
|
32
|
+
}
|
|
33
|
+
this.committed = true;
|
|
34
|
+
if (this.writes.length === 0) {
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
const staged = [];
|
|
38
|
+
for (let index = 0; index < this.writes.length; index += 1) {
|
|
39
|
+
const write = this.writes[index];
|
|
40
|
+
const tmpPath = `${write.targetPath}.${this.txId}.${index}.tmp`;
|
|
41
|
+
const backupPath = `${write.targetPath}.${this.txId}.${index}.bak`;
|
|
42
|
+
await this.fsApi.mkdir(path.dirname(write.targetPath), { recursive: true });
|
|
43
|
+
await this.fsApi.writeFile(tmpPath, write.content, 'utf-8');
|
|
44
|
+
staged.push({
|
|
45
|
+
targetPath: write.targetPath,
|
|
46
|
+
tmpPath,
|
|
47
|
+
backupPath,
|
|
48
|
+
backupCreated: false,
|
|
49
|
+
applied: false,
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
try {
|
|
53
|
+
for (const item of staged) {
|
|
54
|
+
try {
|
|
55
|
+
await this.fsApi.rename(item.targetPath, item.backupPath);
|
|
56
|
+
item.backupCreated = true;
|
|
57
|
+
}
|
|
58
|
+
catch (error) {
|
|
59
|
+
if (!isErrnoCode(error, 'ENOENT')) {
|
|
60
|
+
throw error;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
await this.fsApi.rename(item.tmpPath, item.targetPath);
|
|
64
|
+
item.applied = true;
|
|
65
|
+
}
|
|
66
|
+
for (const item of staged) {
|
|
67
|
+
if (!item.backupCreated)
|
|
68
|
+
continue;
|
|
69
|
+
await rmIfExists(this.fsApi, item.backupPath);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
catch (error) {
|
|
73
|
+
await this.rollback(staged);
|
|
74
|
+
throw error;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
async rollback(staged) {
|
|
78
|
+
for (const item of staged.slice().reverse()) {
|
|
79
|
+
await rmIfExists(this.fsApi, item.tmpPath);
|
|
80
|
+
if (item.backupCreated) {
|
|
81
|
+
if (item.applied) {
|
|
82
|
+
await rmIfExists(this.fsApi, item.targetPath);
|
|
83
|
+
}
|
|
84
|
+
try {
|
|
85
|
+
await this.fsApi.rename(item.backupPath, item.targetPath);
|
|
86
|
+
}
|
|
87
|
+
catch (error) {
|
|
88
|
+
if (!isErrnoCode(error, 'ENOENT')) {
|
|
89
|
+
throw error;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
else if (item.applied) {
|
|
94
|
+
await rmIfExists(this.fsApi, item.targetPath);
|
|
95
|
+
}
|
|
96
|
+
await rmIfExists(this.fsApi, item.backupPath);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
//# sourceMappingURL=transaction.js.map
|