@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,59 @@
|
|
|
1
|
+
import { toJSONSchema } from 'zod';
|
|
2
|
+
import { workspaceChangelogSchema, workspacePlanSchema, workspaceQualitySchema, workspaceSpecSchema, workspaceTasksSchema, } from './workspace-schemas.js';
|
|
3
|
+
const JSON_SCHEMA_DRAFT = 'https://json-schema.org/draft/2020-12/schema';
|
|
4
|
+
const WORKSPACE_JSON_SCHEMA_DESCRIPTORS = [
|
|
5
|
+
{
|
|
6
|
+
fileName: '1-spec.yaml',
|
|
7
|
+
title: 'OpenSDD Workspace Spec',
|
|
8
|
+
description: 'Machine-readable contract for the active/planned/archived FEAT spec workspace document.',
|
|
9
|
+
schema: workspaceSpecSchema,
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
fileName: '2-plan.yaml',
|
|
13
|
+
title: 'OpenSDD Workspace Plan',
|
|
14
|
+
description: 'Machine-readable contract for the FEAT execution plan workspace document.',
|
|
15
|
+
schema: workspacePlanSchema,
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
fileName: '3-tasks.yaml',
|
|
19
|
+
title: 'OpenSDD Workspace Tasks',
|
|
20
|
+
description: 'Machine-readable contract for the phased FEAT task roadmap workspace document.',
|
|
21
|
+
schema: workspaceTasksSchema,
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
fileName: '4-changelog.yaml',
|
|
25
|
+
title: 'OpenSDD Workspace Changelog',
|
|
26
|
+
description: 'Machine-readable contract for the FEAT execution changelog workspace document.',
|
|
27
|
+
schema: workspaceChangelogSchema,
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
fileName: '5-quality.yaml',
|
|
31
|
+
title: 'OpenSDD Workspace Quality',
|
|
32
|
+
description: 'Machine-readable contract for the FEAT quality evidence and remediation workspace document.',
|
|
33
|
+
schema: workspaceQualitySchema,
|
|
34
|
+
},
|
|
35
|
+
];
|
|
36
|
+
function normalizeJsonSchemaDocument(schema, title, description) {
|
|
37
|
+
return {
|
|
38
|
+
...schema,
|
|
39
|
+
$schema: JSON_SCHEMA_DRAFT,
|
|
40
|
+
title,
|
|
41
|
+
description,
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
export function buildWorkspaceJsonSchemas() {
|
|
45
|
+
return Object.fromEntries(WORKSPACE_JSON_SCHEMA_DESCRIPTORS.map((descriptor) => [
|
|
46
|
+
descriptor.fileName,
|
|
47
|
+
normalizeJsonSchemaDocument(toJSONSchema(descriptor.schema), descriptor.title, descriptor.description),
|
|
48
|
+
]));
|
|
49
|
+
}
|
|
50
|
+
export function buildWorkspaceJsonSchemaCatalog() {
|
|
51
|
+
return {
|
|
52
|
+
$schema: JSON_SCHEMA_DRAFT,
|
|
53
|
+
schema_version: 1,
|
|
54
|
+
contract: 'opensdd-workspace-documents',
|
|
55
|
+
generated_from: 'src/core/sdd/workspace-schemas.ts',
|
|
56
|
+
documents: buildWorkspaceJsonSchemas(),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
//# sourceMappingURL=json-schema.js.map
|
|
@@ -0,0 +1,286 @@
|
|
|
1
|
+
import { execFile } from 'node:child_process';
|
|
2
|
+
import { loadStateSnapshot, type SddPaths, type SddRuntimeConfig, type SddStateSnapshot } from './state.js';
|
|
3
|
+
import type { BacklogItem, DiscoveryRecord, ExecutionKind, FinalizeQueueItem, FlowMode, PlanningMode, QualityContract, Scale, SkillCatalogEntry, SourceDocumentRecord, TransitionLogEvent } from './types.js';
|
|
4
|
+
export declare const execFileAsync: typeof execFile.__promisify__;
|
|
5
|
+
export declare const RADAR_TO_DISCOVERY_STATUS: Record<string, DiscoveryRecord['status']>;
|
|
6
|
+
export declare function slugify(value: string): string;
|
|
7
|
+
export declare function stripFunctionalTitlePrefixes(value: string): string;
|
|
8
|
+
export declare function computeCanonicalTitle(value: string): string;
|
|
9
|
+
export declare function ensureMemoryInitialized(paths: SddPaths): Promise<void>;
|
|
10
|
+
export declare function findDiscoveryRecord(records: DiscoveryRecord[], id: string): DiscoveryRecord | undefined;
|
|
11
|
+
export declare function markdownDebateTemplate(insight: DiscoveryRecord, debateId: string): string;
|
|
12
|
+
export declare function markdownInsightTemplate(id: string, title: string, text: string): string;
|
|
13
|
+
export declare function markdownRadarTemplate(debate: DiscoveryRecord, radarId: string, rationale?: string): string;
|
|
14
|
+
export declare function markdownRadarFromDepositoTemplate(radarId: string, title: string, sourceCount: number, rationale?: string): string;
|
|
15
|
+
export declare function markdownDiscardTemplate(debate: DiscoveryRecord, rationale?: string): string;
|
|
16
|
+
export interface MetaEvolutionConfig {
|
|
17
|
+
enabled: boolean;
|
|
18
|
+
audit_interval_days: number;
|
|
19
|
+
placeholder_markers: string[];
|
|
20
|
+
health_alert_threshold: number;
|
|
21
|
+
}
|
|
22
|
+
export declare const DEFAULT_META_EVOLUTION_CONFIG: MetaEvolutionConfig;
|
|
23
|
+
export declare function buildDefaultQualityContract(options?: {
|
|
24
|
+
inheritedFrom?: string;
|
|
25
|
+
scope?: string;
|
|
26
|
+
stackProfile?: string;
|
|
27
|
+
enforcement?: QualityContract['enforcement'];
|
|
28
|
+
evidenceMode?: QualityContract['evidence_mode'];
|
|
29
|
+
}): QualityContract;
|
|
30
|
+
export declare function ensureFeatureQualityContract(feature: BacklogItem, inheritedFrom?: string): QualityContract;
|
|
31
|
+
export declare const FORCED_TRANSITION_MARKERS: string[];
|
|
32
|
+
export declare function normalizePercent(part: number, total: number): number;
|
|
33
|
+
export declare function readMetaEvolutionConfig(paths: SddPaths): Promise<MetaEvolutionConfig>;
|
|
34
|
+
export declare function listFilesRecursive(rootDir: string): Promise<string[]>;
|
|
35
|
+
export declare function hasPlaceholder(content: string, markers: string[]): boolean;
|
|
36
|
+
export declare function collectAuditArtifacts(paths: SddPaths): Promise<string[]>;
|
|
37
|
+
export declare function debateHasRealDeliberation(content: string): boolean;
|
|
38
|
+
export declare function collectForcedTransitions(paths: SddPaths): Promise<{
|
|
39
|
+
total: number;
|
|
40
|
+
featureRefs: string[];
|
|
41
|
+
}>;
|
|
42
|
+
export declare function sourceTypeFromRelativePath(relativePath: string): SourceDocumentRecord['type'];
|
|
43
|
+
export declare function defaultConsolidationTargets(type: SourceDocumentRecord['type']): string[];
|
|
44
|
+
export declare function deriveInitialFeatureTitles(sources: SourceDocumentRecord[], frontendEnabled: boolean): string[];
|
|
45
|
+
export declare function listFilesRecursively(rootDir: string): Promise<string[]>;
|
|
46
|
+
export declare function sourceTitleFromPath(filePath: string): string;
|
|
47
|
+
export declare function normalizeSourceStatus(current: SourceDocumentRecord['status'], desired: SourceDocumentRecord['status']): SourceDocumentRecord['status'];
|
|
48
|
+
export declare function nextSourceId(existingIds: string[]): string;
|
|
49
|
+
export declare function extractSourceSummary(filePath: string): Promise<string>;
|
|
50
|
+
export declare function findDebateFile(paths: SddPaths, debateId: string): Promise<string | null>;
|
|
51
|
+
export declare function validateDebateDocument(content: string): string[];
|
|
52
|
+
export declare function pickTopSkills(catalogSkills: SkillCatalogEntry[], ids: string[] | undefined, max?: number): string[];
|
|
53
|
+
export declare function bundlesForSkills(catalog: {
|
|
54
|
+
skills: SkillCatalogEntry[];
|
|
55
|
+
}, skillIds: string[]): string[];
|
|
56
|
+
export declare function syncCounterFromId(discoveryIndex: {
|
|
57
|
+
counters: Record<'INS' | 'DEB' | 'RAD' | 'EPIC' | 'FEAT' | 'FGAP' | 'TD', number>;
|
|
58
|
+
}, id: string): void;
|
|
59
|
+
export declare function getRuntime(projectRoot: string): Promise<{
|
|
60
|
+
config: SddRuntimeConfig;
|
|
61
|
+
paths: SddPaths;
|
|
62
|
+
}>;
|
|
63
|
+
export declare function persistAndRender(paths: SddPaths, config: SddRuntimeConfig, render: boolean | undefined): Promise<void>;
|
|
64
|
+
export declare function relProjectPath(paths: SddPaths, absolutePath: string): string;
|
|
65
|
+
export declare function coreDocRef(paths: SddPaths, name: string): string;
|
|
66
|
+
export declare function planningDocRef(paths: SddPaths, name: string): string;
|
|
67
|
+
export declare function activeFeatureRef(paths: SddPaths, featureId: string, fileName: string): string;
|
|
68
|
+
export declare function featureActiveDir(paths: SddPaths, featureId: string): string;
|
|
69
|
+
export declare function featurePlannedDir(paths: SddPaths, featureId: string): string;
|
|
70
|
+
export interface ActiveDocNames {
|
|
71
|
+
spec: string;
|
|
72
|
+
plan: string;
|
|
73
|
+
quality: string;
|
|
74
|
+
tasks: string;
|
|
75
|
+
changelog: string;
|
|
76
|
+
}
|
|
77
|
+
export declare function activeDocNamesForLayout(config: SddRuntimeConfig): ActiveDocNames;
|
|
78
|
+
export declare function activeDocCandidateNames(config: SddRuntimeConfig): string[];
|
|
79
|
+
export declare function resolveActiveDocRefs(paths: SddPaths, featureId: string, config: SddRuntimeConfig): Promise<string[]>;
|
|
80
|
+
export declare function stackContextTokens(snapshot: Pick<SddStateSnapshot, 'techStack'>): string[];
|
|
81
|
+
export declare function buildActiveSpecDoc(feature: BacklogItem): string;
|
|
82
|
+
export declare function buildActivePlanDoc(feature: BacklogItem, recommendedBundles: string[]): string;
|
|
83
|
+
export declare function buildActiveQualityDoc(feature: BacklogItem): string;
|
|
84
|
+
export declare function buildActiveTasksDoc(feature: BacklogItem, paths: SddPaths): string;
|
|
85
|
+
export declare function buildActiveChangelogDoc(feature: BacklogItem): string;
|
|
86
|
+
export declare function ensureFeaturePlannedWorkspace(paths: SddPaths, config: SddRuntimeConfig, feature: BacklogItem, recommendedBundles: string[]): Promise<{
|
|
87
|
+
plannedPath: string;
|
|
88
|
+
generatedDocs: string[];
|
|
89
|
+
handoffSeedRefs: string[];
|
|
90
|
+
}>;
|
|
91
|
+
export declare function ensureFeatureActiveWorkspace(paths: SddPaths, config: SddRuntimeConfig, feature: BacklogItem, recommendedBundles: string[]): Promise<{
|
|
92
|
+
activePath: string;
|
|
93
|
+
generatedDocs: string[];
|
|
94
|
+
handoffSeedRefs: string[];
|
|
95
|
+
}>;
|
|
96
|
+
export declare function resolveRadar(record: DiscoveryRecord | undefined): asserts record is DiscoveryRecord;
|
|
97
|
+
export declare function resolveFeat(items: BacklogItem[], id: string): BacklogItem;
|
|
98
|
+
export declare function buildBacklogItem(id: string, title: string, originType: BacklogItem['origin_type'], originRef: string | undefined, scale: Scale, recommendedSkills: string[], options?: {
|
|
99
|
+
parallelGroup?: string;
|
|
100
|
+
executionKind?: ExecutionKind;
|
|
101
|
+
planningMode?: PlanningMode;
|
|
102
|
+
flowMode?: FlowMode;
|
|
103
|
+
acceptanceRefs?: string[];
|
|
104
|
+
touches?: string[];
|
|
105
|
+
lockDomains?: string[];
|
|
106
|
+
produces?: string[];
|
|
107
|
+
consumes?: string[];
|
|
108
|
+
}): BacklogItem;
|
|
109
|
+
export declare function includesAny(haystack: string, needles: string[]): boolean;
|
|
110
|
+
export declare function classifyFeatureShape(title: string, contextTokens?: string[]): {
|
|
111
|
+
executionKind: ExecutionKind;
|
|
112
|
+
touches: string[];
|
|
113
|
+
lockDomains: string[];
|
|
114
|
+
produces: string[];
|
|
115
|
+
consumes: string[];
|
|
116
|
+
planningMode: PlanningMode;
|
|
117
|
+
};
|
|
118
|
+
export declare function normalizeTitle(value: string): string;
|
|
119
|
+
export declare function intersects(a: string[], b: string[]): boolean;
|
|
120
|
+
export declare function unresolvedDependencies(item: BacklogItem, all: BacklogItem[]): string[];
|
|
121
|
+
export declare function lockConflictWithActive(item: BacklogItem, all: BacklogItem[]): string[];
|
|
122
|
+
export declare function featureReadiness(item: BacklogItem, all: BacklogItem[]): 'READY' | 'BLOCKED' | 'LOCK_CONFLICT';
|
|
123
|
+
export declare function updateDependencyMetadata(items: BacklogItem[]): void;
|
|
124
|
+
export declare function parseRouteToken(value: string): string | null;
|
|
125
|
+
export declare function inferRouteTargetsFromFeature(feature: BacklogItem): string[];
|
|
126
|
+
export declare function inferSurfaceTargetsFromFeature(feature: BacklogItem): string[];
|
|
127
|
+
export declare function gitHeadCommit(projectRoot: string): Promise<string>;
|
|
128
|
+
export declare function gitChangedFiles(projectRoot: string, baseRef: string): Promise<{
|
|
129
|
+
files: string[];
|
|
130
|
+
warning: string;
|
|
131
|
+
}>;
|
|
132
|
+
export declare function isFrontendPath(filePath: string): boolean;
|
|
133
|
+
export declare function detectFrontendImpactEvidence(feature: BacklogItem, changedFiles: string[]): {
|
|
134
|
+
metadata_routes: string[];
|
|
135
|
+
metadata_surfaces: string[];
|
|
136
|
+
diff_files: string[];
|
|
137
|
+
evidence_sources: Array<'metadata' | 'diff'>;
|
|
138
|
+
has_frontend_evidence: boolean;
|
|
139
|
+
};
|
|
140
|
+
export declare function ensureRouteInFrontendMap(snapshot: Awaited<ReturnType<typeof loadStateSnapshot>>, routePath: string, gapId: string): void;
|
|
141
|
+
export declare function maybeCreateAutomaticFrontendGap(paths: SddPaths, snapshot: Awaited<ReturnType<typeof loadStateSnapshot>>, feature: BacklogItem, options?: {
|
|
142
|
+
force?: boolean;
|
|
143
|
+
routeTargets?: string[];
|
|
144
|
+
detectionSources?: Array<'metadata' | 'diff' | 'manual'>;
|
|
145
|
+
}): Promise<string>;
|
|
146
|
+
export declare function resolveRoutedSkills(snapshot: SddStateSnapshot, touches: string[]): string[];
|
|
147
|
+
export declare function inferOriginType(input: string): BacklogItem['origin_type'];
|
|
148
|
+
export declare function buildFinalizeQueue(paths: SddPaths, backlogItems: BacklogItem[], queueItems: FinalizeQueueItem[]): Promise<FinalizeQueueItem[]>;
|
|
149
|
+
export declare function evaluateFeatureQuality(paths: SddPaths, config: SddRuntimeConfig, feature: BacklogItem): Promise<{
|
|
150
|
+
ok: boolean;
|
|
151
|
+
blocking: boolean;
|
|
152
|
+
reasons: string[];
|
|
153
|
+
artifact: string;
|
|
154
|
+
}>;
|
|
155
|
+
export declare function buildAdrMarkdown(feature: BacklogItem, unlocked: string[], timestamp: string): string;
|
|
156
|
+
export declare function applyLoggedTransition<T extends {
|
|
157
|
+
id: string;
|
|
158
|
+
status: string;
|
|
159
|
+
}>(transitionLog: TransitionLogEvent[], entityType: string, entity: T, toStatus: string, options: {
|
|
160
|
+
sourceCommand: string;
|
|
161
|
+
actor?: string;
|
|
162
|
+
reason?: string;
|
|
163
|
+
timestamp?: string;
|
|
164
|
+
forceTransition?: boolean;
|
|
165
|
+
lensViolations?: string[];
|
|
166
|
+
afterTransition?: (entity: T) => void;
|
|
167
|
+
}): void;
|
|
168
|
+
export declare function gateSatisfied(status: string): boolean;
|
|
169
|
+
export interface SddAuditResult {
|
|
170
|
+
generated_at: string;
|
|
171
|
+
meta_evolution: MetaEvolutionConfig;
|
|
172
|
+
metrics: {
|
|
173
|
+
artifacts_without_placeholder: {
|
|
174
|
+
ok: number;
|
|
175
|
+
total: number;
|
|
176
|
+
percent: number;
|
|
177
|
+
};
|
|
178
|
+
debates_with_real_deliberation: {
|
|
179
|
+
ok: number;
|
|
180
|
+
total: number;
|
|
181
|
+
percent: number;
|
|
182
|
+
};
|
|
183
|
+
adrs_generated_vs_expected: {
|
|
184
|
+
ok: number;
|
|
185
|
+
total: number;
|
|
186
|
+
percent: number;
|
|
187
|
+
};
|
|
188
|
+
quality_contracts_ready: {
|
|
189
|
+
ok: number;
|
|
190
|
+
total: number;
|
|
191
|
+
percent: number;
|
|
192
|
+
};
|
|
193
|
+
forced_transitions: {
|
|
194
|
+
total: number;
|
|
195
|
+
feature_refs: string[];
|
|
196
|
+
};
|
|
197
|
+
};
|
|
198
|
+
score: number;
|
|
199
|
+
healthy: boolean;
|
|
200
|
+
should_open_insight: boolean;
|
|
201
|
+
recommendation: string;
|
|
202
|
+
}
|
|
203
|
+
export type ContextEntityType = 'FEAT' | 'RAD' | 'EPIC' | 'FGAP' | 'TD';
|
|
204
|
+
export declare function detectContextType(ref: string): ContextEntityType | null;
|
|
205
|
+
export declare function pathExists(targetPath: string): Promise<boolean>;
|
|
206
|
+
export declare function listAdrRefs(paths: SddPaths, refs: string[]): Promise<string[]>;
|
|
207
|
+
export type ApprovalStage = 'proposta' | 'planejamento' | 'tarefas';
|
|
208
|
+
export declare function computeReadyFeatures(items: BacklogItem[], options?: {
|
|
209
|
+
maxAgents?: number;
|
|
210
|
+
rank?: NextRankMode;
|
|
211
|
+
}): {
|
|
212
|
+
ready: BacklogItem[];
|
|
213
|
+
blocked: BacklogItem[];
|
|
214
|
+
conflicts: BacklogItem[];
|
|
215
|
+
waves: string[][];
|
|
216
|
+
deferred: Array<{
|
|
217
|
+
id: string;
|
|
218
|
+
reasons: string[];
|
|
219
|
+
}>;
|
|
220
|
+
};
|
|
221
|
+
export interface SessionPackManifest {
|
|
222
|
+
version: 1;
|
|
223
|
+
feature_id: string;
|
|
224
|
+
project_root: string;
|
|
225
|
+
created_at: string;
|
|
226
|
+
state_fingerprint: string;
|
|
227
|
+
active_feature_ids: string[];
|
|
228
|
+
lock_domain_snapshot: string[];
|
|
229
|
+
}
|
|
230
|
+
export interface SessionPackCleanupResult {
|
|
231
|
+
removed: boolean;
|
|
232
|
+
already_absent: boolean;
|
|
233
|
+
reason: string;
|
|
234
|
+
}
|
|
235
|
+
export interface NextFeatureCandidate {
|
|
236
|
+
item: BacklogItem;
|
|
237
|
+
score: number;
|
|
238
|
+
score_reasons: string[];
|
|
239
|
+
}
|
|
240
|
+
export declare function buildSessionStateFingerprint(items: BacklogItem[]): string;
|
|
241
|
+
export declare function buildSessionManifest(featureId: string, projectRoot: string, items: BacklogItem[]): SessionPackManifest;
|
|
242
|
+
export declare function isSessionPackStale(manifest: SessionPackManifest, items: BacklogItem[]): {
|
|
243
|
+
stale: boolean;
|
|
244
|
+
reasons: string[];
|
|
245
|
+
};
|
|
246
|
+
export declare function isSafeSessionTempPath(projectRoot: string, candidatePath: string): boolean;
|
|
247
|
+
export declare function cleanupSessionPath(sessionRoot: string, candidatePath: string): Promise<SessionPackCleanupResult>;
|
|
248
|
+
export declare function computeReadyFeatureWaves(items: BacklogItem[], options?: {
|
|
249
|
+
maxAgents?: number;
|
|
250
|
+
rank?: NextRankMode;
|
|
251
|
+
}): {
|
|
252
|
+
ready: BacklogItem[];
|
|
253
|
+
blocked: BacklogItem[];
|
|
254
|
+
conflicts: BacklogItem[];
|
|
255
|
+
waves: string[][];
|
|
256
|
+
deferred: Array<{
|
|
257
|
+
id: string;
|
|
258
|
+
reasons: string[];
|
|
259
|
+
}>;
|
|
260
|
+
};
|
|
261
|
+
export type NextRankMode = 'impact' | 'criticality' | 'fifo';
|
|
262
|
+
export declare function extractFeatureNumber(featureId: string): number;
|
|
263
|
+
export declare function buildDependentsMap(items: BacklogItem[]): Map<string, string[]>;
|
|
264
|
+
export declare function countIndirectDependents(featureId: string, dependentsMap: Map<string, string[]>): {
|
|
265
|
+
direct: number;
|
|
266
|
+
indirect: number;
|
|
267
|
+
};
|
|
268
|
+
export declare function lockCriticality(lockDomains: string[]): number;
|
|
269
|
+
export declare function lockConflictRisk(item: BacklogItem, items: BacklogItem[]): number;
|
|
270
|
+
export declare function scoreReadyItem(item: BacklogItem, items: BacklogItem[], dependentsMap: Map<string, string[]>, rank: NextRankMode): {
|
|
271
|
+
score: number;
|
|
272
|
+
reasons: string[];
|
|
273
|
+
};
|
|
274
|
+
export declare function buildCuratedSkillContent(entry: SkillCatalogEntry): string;
|
|
275
|
+
export declare function resolveSkillFileRef(paths: SddPaths, skillId: string): Promise<string>;
|
|
276
|
+
export declare function buildSkillInvocationPrompt(input: {
|
|
277
|
+
objective?: string;
|
|
278
|
+
ref?: string;
|
|
279
|
+
skills: Array<{
|
|
280
|
+
id: string;
|
|
281
|
+
path: string;
|
|
282
|
+
reason: string;
|
|
283
|
+
}>;
|
|
284
|
+
}): string;
|
|
285
|
+
export {};
|
|
286
|
+
//# sourceMappingURL=legacy-operations.d.ts.map
|