@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,353 @@
|
|
|
1
|
+
import path from 'node:path';
|
|
2
|
+
import { promises as fs } from 'node:fs';
|
|
3
|
+
import { loadStateSnapshot, saveArchitectureState, saveIntegrationContractsState, saveRepoMapState, saveServiceCatalogState, saveTechStackState, } from './state.js';
|
|
4
|
+
function slugify(value) {
|
|
5
|
+
return value
|
|
6
|
+
.toLowerCase()
|
|
7
|
+
.normalize('NFD')
|
|
8
|
+
.replace(/[\u0300-\u036f]/g, '')
|
|
9
|
+
.replace(/[^a-z0-9]+/g, '-')
|
|
10
|
+
.replace(/^-+|-+$/g, '')
|
|
11
|
+
.replace(/-{2,}/g, '-');
|
|
12
|
+
}
|
|
13
|
+
async function fileExists(filePath) {
|
|
14
|
+
try {
|
|
15
|
+
await fs.access(filePath);
|
|
16
|
+
return true;
|
|
17
|
+
}
|
|
18
|
+
catch {
|
|
19
|
+
return false;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
async function readJsonFile(filePath) {
|
|
23
|
+
try {
|
|
24
|
+
const raw = await fs.readFile(filePath, 'utf-8');
|
|
25
|
+
const parsed = JSON.parse(raw);
|
|
26
|
+
return parsed && typeof parsed === 'object' ? parsed : null;
|
|
27
|
+
}
|
|
28
|
+
catch {
|
|
29
|
+
return null;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
async function readTextIfExists(filePath) {
|
|
33
|
+
if (!(await fileExists(filePath)))
|
|
34
|
+
return '';
|
|
35
|
+
return fs.readFile(filePath, 'utf-8');
|
|
36
|
+
}
|
|
37
|
+
function buildDepsMap(packageJson) {
|
|
38
|
+
return {
|
|
39
|
+
...(typeof packageJson?.dependencies === 'object' && packageJson.dependencies
|
|
40
|
+
? packageJson.dependencies
|
|
41
|
+
: {}),
|
|
42
|
+
...(typeof packageJson?.devDependencies === 'object' && packageJson.devDependencies
|
|
43
|
+
? packageJson.devDependencies
|
|
44
|
+
: {}),
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
function addTechStackEntry(entries, layer, technology, version, purpose, constraints = []) {
|
|
48
|
+
if (entries.some((item) => item.layer === layer && item.technology === technology))
|
|
49
|
+
return;
|
|
50
|
+
entries.push({
|
|
51
|
+
layer,
|
|
52
|
+
technology,
|
|
53
|
+
version: version || '',
|
|
54
|
+
purpose,
|
|
55
|
+
constraints,
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
function inferTechStack(packageJson, options) {
|
|
59
|
+
const deps = buildDepsMap(packageJson);
|
|
60
|
+
const entries = [];
|
|
61
|
+
addTechStackEntry(entries, 'runtime', 'nodejs', typeof packageJson?.engines === 'object' && packageJson.engines
|
|
62
|
+
? (packageJson.engines.node ?? '')
|
|
63
|
+
: '', 'Runtime principal do projeto');
|
|
64
|
+
if (options.hasTsconfig || deps.typescript) {
|
|
65
|
+
addTechStackEntry(entries, 'language', 'typescript', deps.typescript, 'Linguagem principal');
|
|
66
|
+
}
|
|
67
|
+
if (deps['@nestjs/core'] || deps['@nestjs/common']) {
|
|
68
|
+
addTechStackEntry(entries, 'backend', 'nestjs', deps['@nestjs/core'] || deps['@nestjs/common'], 'Framework backend');
|
|
69
|
+
}
|
|
70
|
+
if (deps.rails)
|
|
71
|
+
addTechStackEntry(entries, 'backend', 'rails', deps.rails, 'Framework backend');
|
|
72
|
+
if (deps.express)
|
|
73
|
+
addTechStackEntry(entries, 'backend', 'express', deps.express, 'Servidor HTTP');
|
|
74
|
+
if (deps.fastify)
|
|
75
|
+
addTechStackEntry(entries, 'backend', 'fastify', deps.fastify, 'Servidor HTTP');
|
|
76
|
+
if (deps.react)
|
|
77
|
+
addTechStackEntry(entries, 'frontend', 'react', deps.react, 'Interface');
|
|
78
|
+
if (deps.next)
|
|
79
|
+
addTechStackEntry(entries, 'frontend', 'nextjs', deps.next, 'Framework frontend/fullstack');
|
|
80
|
+
if (deps.vue)
|
|
81
|
+
addTechStackEntry(entries, 'frontend', 'vue', deps.vue, 'Interface');
|
|
82
|
+
if (deps['@prisma/client'] || deps.prisma) {
|
|
83
|
+
addTechStackEntry(entries, 'database', 'prisma', deps['@prisma/client'] || deps.prisma, 'ORM e modelagem');
|
|
84
|
+
}
|
|
85
|
+
if (deps.typeorm)
|
|
86
|
+
addTechStackEntry(entries, 'database', 'typeorm', deps.typeorm, 'ORM');
|
|
87
|
+
if (deps.mongoose)
|
|
88
|
+
addTechStackEntry(entries, 'database', 'mongoose', deps.mongoose, 'ODM');
|
|
89
|
+
if (deps.redis || deps['ioredis']) {
|
|
90
|
+
addTechStackEntry(entries, 'infra', 'redis', deps.redis || deps['ioredis'], 'Cache/fila');
|
|
91
|
+
}
|
|
92
|
+
if (deps.kafkajs)
|
|
93
|
+
addTechStackEntry(entries, 'infra', 'kafka', deps.kafkajs, 'Mensageria');
|
|
94
|
+
if (deps.amqplib)
|
|
95
|
+
addTechStackEntry(entries, 'infra', 'rabbitmq', deps.amqplib, 'Mensageria');
|
|
96
|
+
if (deps['@temporalio/client'] || deps['@temporalio/worker']) {
|
|
97
|
+
addTechStackEntry(entries, 'infra', 'temporal', deps['@temporalio/client'] || deps['@temporalio/worker'], 'Orquestracao de workflows');
|
|
98
|
+
}
|
|
99
|
+
if (deps.vitest)
|
|
100
|
+
addTechStackEntry(entries, 'test', 'vitest', deps.vitest, 'Testes');
|
|
101
|
+
if (deps.jest || deps['@jest/core']) {
|
|
102
|
+
addTechStackEntry(entries, 'test', 'jest', deps.jest || deps['@jest/core'], 'Testes');
|
|
103
|
+
}
|
|
104
|
+
return entries;
|
|
105
|
+
}
|
|
106
|
+
function classifyRootEntry(name) {
|
|
107
|
+
const map = {
|
|
108
|
+
src: { kind: 'source', notes: 'Codigo-fonte principal' },
|
|
109
|
+
apps: { kind: 'workspace', notes: 'Aplicacoes/servicos' },
|
|
110
|
+
services: { kind: 'workspace', notes: 'Servicos' },
|
|
111
|
+
packages: { kind: 'workspace', notes: 'Pacotes compartilhados' },
|
|
112
|
+
libs: { kind: 'workspace', notes: 'Bibliotecas internas' },
|
|
113
|
+
lib: { kind: 'workspace', notes: 'Bibliotecas internas' },
|
|
114
|
+
test: { kind: 'test', notes: 'Testes automatizados' },
|
|
115
|
+
docs: { kind: 'docs', notes: 'Documentacao' },
|
|
116
|
+
config: { kind: 'config', notes: 'Configuracoes' },
|
|
117
|
+
openspec: { kind: 'openspec', notes: 'Runtime do OpenSpec' },
|
|
118
|
+
package_json: { kind: 'manifest', notes: 'Manifesto principal' },
|
|
119
|
+
};
|
|
120
|
+
return map[name] || { kind: 'directory', notes: 'Diretorio detectado no projeto' };
|
|
121
|
+
}
|
|
122
|
+
async function inferRepoMap(projectRoot, deep) {
|
|
123
|
+
const entries = [];
|
|
124
|
+
const rootCandidates = [
|
|
125
|
+
'src',
|
|
126
|
+
'apps',
|
|
127
|
+
'services',
|
|
128
|
+
'packages',
|
|
129
|
+
'libs',
|
|
130
|
+
'lib',
|
|
131
|
+
'test',
|
|
132
|
+
'docs',
|
|
133
|
+
'config',
|
|
134
|
+
'openspec',
|
|
135
|
+
];
|
|
136
|
+
for (const candidate of rootCandidates) {
|
|
137
|
+
if (await fileExists(path.join(projectRoot, candidate))) {
|
|
138
|
+
const { kind, notes } = classifyRootEntry(candidate);
|
|
139
|
+
entries.push({ path: candidate, kind, service_ref: '', notes });
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
if (await fileExists(path.join(projectRoot, 'package.json'))) {
|
|
143
|
+
const { kind, notes } = classifyRootEntry('package_json');
|
|
144
|
+
entries.push({ path: 'package.json', kind, service_ref: '', notes });
|
|
145
|
+
}
|
|
146
|
+
if (!deep)
|
|
147
|
+
return entries;
|
|
148
|
+
const deepContainers = ['apps', 'services', 'packages'];
|
|
149
|
+
for (const container of deepContainers) {
|
|
150
|
+
const base = path.join(projectRoot, container);
|
|
151
|
+
if (!(await fileExists(base)))
|
|
152
|
+
continue;
|
|
153
|
+
const dirEntries = await fs.readdir(base, { withFileTypes: true }).catch(() => []);
|
|
154
|
+
for (const entry of dirEntries) {
|
|
155
|
+
if (!entry.isDirectory())
|
|
156
|
+
continue;
|
|
157
|
+
if (entry.name.startsWith('.'))
|
|
158
|
+
continue;
|
|
159
|
+
const relPath = `${container}/${entry.name}`;
|
|
160
|
+
entries.push({
|
|
161
|
+
path: relPath,
|
|
162
|
+
kind: 'service-module',
|
|
163
|
+
service_ref: slugify(entry.name),
|
|
164
|
+
notes: 'Modulo detectado durante inspecao profunda',
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
return entries;
|
|
169
|
+
}
|
|
170
|
+
function inferServiceCatalog(packageName, serviceId, repoMap, techStack) {
|
|
171
|
+
const services = [];
|
|
172
|
+
const externalDeps = techStack
|
|
173
|
+
.filter((item) => item.layer === 'infra' || item.layer === 'database')
|
|
174
|
+
.map((item) => item.technology);
|
|
175
|
+
services.push({
|
|
176
|
+
id: serviceId,
|
|
177
|
+
name: packageName,
|
|
178
|
+
responsibility: 'Servico inicial detectado no bootstrap de contexto',
|
|
179
|
+
owner_refs: [],
|
|
180
|
+
repo_paths: repoMap
|
|
181
|
+
.filter((item) => item.kind === 'source' || item.kind === 'workspace')
|
|
182
|
+
.map((item) => item.path),
|
|
183
|
+
contracts: [],
|
|
184
|
+
external_dependencies: externalDeps,
|
|
185
|
+
});
|
|
186
|
+
const moduleServices = repoMap.filter((item) => item.kind === 'service-module');
|
|
187
|
+
for (const module of moduleServices) {
|
|
188
|
+
const id = module.service_ref || slugify(module.path.split('/').pop() || module.path);
|
|
189
|
+
if (!id || services.some((service) => service.id === id))
|
|
190
|
+
continue;
|
|
191
|
+
services.push({
|
|
192
|
+
id,
|
|
193
|
+
name: module.path,
|
|
194
|
+
responsibility: 'Modulo/servico detectado em inspeção de repositório existente',
|
|
195
|
+
owner_refs: [],
|
|
196
|
+
repo_paths: [module.path],
|
|
197
|
+
contracts: [],
|
|
198
|
+
external_dependencies: externalDeps,
|
|
199
|
+
});
|
|
200
|
+
}
|
|
201
|
+
return services;
|
|
202
|
+
}
|
|
203
|
+
function inferArchitectureNodes(services, repoMap) {
|
|
204
|
+
return services.map((service) => ({
|
|
205
|
+
id: `arch-${service.id}`,
|
|
206
|
+
name: service.name,
|
|
207
|
+
kind: 'service',
|
|
208
|
+
description: service.responsibility || 'Servico detectado automaticamente',
|
|
209
|
+
repo_paths: service.repo_paths.length > 0
|
|
210
|
+
? service.repo_paths
|
|
211
|
+
: repoMap.filter((item) => item.service_ref === service.id).map((item) => item.path),
|
|
212
|
+
depends_on: [],
|
|
213
|
+
}));
|
|
214
|
+
}
|
|
215
|
+
async function inferIntegrationContracts(projectRoot, packageJson) {
|
|
216
|
+
const deps = buildDepsMap(packageJson);
|
|
217
|
+
const contracts = new Set();
|
|
218
|
+
const addIfPresent = (tokens, contract) => {
|
|
219
|
+
if (tokens.some((token) => deps[token]))
|
|
220
|
+
contracts.add(contract);
|
|
221
|
+
};
|
|
222
|
+
addIfPresent(['@prisma/client', 'prisma', 'typeorm', 'sequelize', 'pg'], 'db:sql');
|
|
223
|
+
addIfPresent(['mongoose', 'mongodb'], 'db:mongodb');
|
|
224
|
+
addIfPresent(['redis', 'ioredis'], 'infra:redis');
|
|
225
|
+
addIfPresent(['kafkajs'], 'infra:kafka');
|
|
226
|
+
addIfPresent(['amqplib'], 'infra:rabbitmq');
|
|
227
|
+
addIfPresent(['@temporalio/client', '@temporalio/worker'], 'infra:temporal');
|
|
228
|
+
addIfPresent(['stripe'], 'external:stripe');
|
|
229
|
+
addIfPresent(['@aws-sdk/client-s3', 'aws-sdk'], 'external:s3');
|
|
230
|
+
addIfPresent(['twilio'], 'external:twilio');
|
|
231
|
+
addIfPresent(['whatsapp-web.js'], 'external:whatsapp');
|
|
232
|
+
const compose = await readTextIfExists(path.join(projectRoot, 'docker-compose.yml'));
|
|
233
|
+
if (compose.includes('redis'))
|
|
234
|
+
contracts.add('infra:redis');
|
|
235
|
+
if (compose.includes('postgres'))
|
|
236
|
+
contracts.add('db:sql');
|
|
237
|
+
if (compose.includes('kafka'))
|
|
238
|
+
contracts.add('infra:kafka');
|
|
239
|
+
if (compose.includes('rabbitmq'))
|
|
240
|
+
contracts.add('infra:rabbitmq');
|
|
241
|
+
if (typeof packageJson?.bin === 'object' && packageJson.bin) {
|
|
242
|
+
contracts.add('interface:cli');
|
|
243
|
+
}
|
|
244
|
+
if (typeof packageJson?.publishConfig === 'object' && packageJson.publishConfig) {
|
|
245
|
+
contracts.add('distribution:npm');
|
|
246
|
+
}
|
|
247
|
+
return Array.from(contracts).sort();
|
|
248
|
+
}
|
|
249
|
+
function mergeByKey(current, inferred, keyOf) {
|
|
250
|
+
const byKey = new Map(current.map((item) => [keyOf(item), item]));
|
|
251
|
+
for (const item of inferred) {
|
|
252
|
+
const key = keyOf(item);
|
|
253
|
+
if (!byKey.has(key))
|
|
254
|
+
byKey.set(key, item);
|
|
255
|
+
}
|
|
256
|
+
return Array.from(byKey.values());
|
|
257
|
+
}
|
|
258
|
+
function resolveAppliedState(current, inferred, mode) {
|
|
259
|
+
if (mode === 'empty-only') {
|
|
260
|
+
if (current.length > 0)
|
|
261
|
+
return { next: current, changed: false };
|
|
262
|
+
return { next: inferred, changed: JSON.stringify(current) !== JSON.stringify(inferred) };
|
|
263
|
+
}
|
|
264
|
+
if (mode === 'replace') {
|
|
265
|
+
return { next: inferred, changed: JSON.stringify(current) !== JSON.stringify(inferred) };
|
|
266
|
+
}
|
|
267
|
+
return { next: current, changed: false };
|
|
268
|
+
}
|
|
269
|
+
export async function bootstrapInitialContext(projectRoot, paths, config, options = {}) {
|
|
270
|
+
const mode = options.mode || 'empty-only';
|
|
271
|
+
const deep = options.deep ?? false;
|
|
272
|
+
const notes = [];
|
|
273
|
+
const snapshot = await loadStateSnapshot(paths, config);
|
|
274
|
+
const packageJson = await readJsonFile(path.join(projectRoot, 'package.json'));
|
|
275
|
+
const hasTsconfig = await fileExists(path.join(projectRoot, 'tsconfig.json'));
|
|
276
|
+
const packageName = typeof packageJson?.name === 'string' && packageJson.name.trim().length > 0
|
|
277
|
+
? packageJson.name.trim()
|
|
278
|
+
: path.basename(projectRoot);
|
|
279
|
+
const serviceId = slugify(packageName) || 'app';
|
|
280
|
+
const inferredTechStack = inferTechStack(packageJson, { hasTsconfig });
|
|
281
|
+
const inferredRepoMap = await inferRepoMap(projectRoot, deep);
|
|
282
|
+
const inferredServiceCatalog = inferServiceCatalog(packageName, serviceId, inferredRepoMap, inferredTechStack);
|
|
283
|
+
const inferredArchitecture = inferArchitectureNodes(inferredServiceCatalog, inferredRepoMap);
|
|
284
|
+
const inferredContracts = await inferIntegrationContracts(projectRoot, packageJson);
|
|
285
|
+
const updated = {
|
|
286
|
+
tech_stack: false,
|
|
287
|
+
repo_map: false,
|
|
288
|
+
architecture: false,
|
|
289
|
+
service_catalog: false,
|
|
290
|
+
integration_contracts: false,
|
|
291
|
+
};
|
|
292
|
+
const techApplied = mode === 'merge'
|
|
293
|
+
? mergeByKey(snapshot.techStack.items, inferredTechStack, (item) => `${item.layer}:${item.technology}`)
|
|
294
|
+
: resolveAppliedState(snapshot.techStack.items, inferredTechStack, mode).next;
|
|
295
|
+
if (JSON.stringify(snapshot.techStack.items) !== JSON.stringify(techApplied)) {
|
|
296
|
+
snapshot.techStack.items = techApplied;
|
|
297
|
+
await saveTechStackState(paths, snapshot.techStack);
|
|
298
|
+
updated.tech_stack = true;
|
|
299
|
+
}
|
|
300
|
+
const repoApplied = mode === 'merge'
|
|
301
|
+
? mergeByKey(snapshot.repoMap.items, inferredRepoMap, (item) => item.path)
|
|
302
|
+
: resolveAppliedState(snapshot.repoMap.items, inferredRepoMap, mode).next;
|
|
303
|
+
if (JSON.stringify(snapshot.repoMap.items) !== JSON.stringify(repoApplied)) {
|
|
304
|
+
snapshot.repoMap.items = repoApplied;
|
|
305
|
+
await saveRepoMapState(paths, snapshot.repoMap);
|
|
306
|
+
updated.repo_map = true;
|
|
307
|
+
}
|
|
308
|
+
const serviceApplied = mode === 'merge'
|
|
309
|
+
? mergeByKey(snapshot.serviceCatalog.services, inferredServiceCatalog, (item) => item.id)
|
|
310
|
+
: resolveAppliedState(snapshot.serviceCatalog.services, inferredServiceCatalog, mode).next;
|
|
311
|
+
if (JSON.stringify(snapshot.serviceCatalog.services) !== JSON.stringify(serviceApplied)) {
|
|
312
|
+
snapshot.serviceCatalog.services = serviceApplied;
|
|
313
|
+
await saveServiceCatalogState(paths, snapshot.serviceCatalog);
|
|
314
|
+
updated.service_catalog = true;
|
|
315
|
+
}
|
|
316
|
+
const architectureApplied = mode === 'merge'
|
|
317
|
+
? mergeByKey(snapshot.architecture.nodes, inferredArchitecture, (item) => item.id)
|
|
318
|
+
: resolveAppliedState(snapshot.architecture.nodes, inferredArchitecture, mode).next;
|
|
319
|
+
if (JSON.stringify(snapshot.architecture.nodes) !== JSON.stringify(architectureApplied)) {
|
|
320
|
+
snapshot.architecture.nodes = architectureApplied;
|
|
321
|
+
await saveArchitectureState(paths, snapshot.architecture);
|
|
322
|
+
updated.architecture = true;
|
|
323
|
+
}
|
|
324
|
+
const contractsApplied = mode === 'merge'
|
|
325
|
+
? Array.from(new Set([...snapshot.integrationContracts.contracts, ...inferredContracts])).sort()
|
|
326
|
+
: resolveAppliedState(snapshot.integrationContracts.contracts, inferredContracts, mode).next;
|
|
327
|
+
if (JSON.stringify(snapshot.integrationContracts.contracts) !== JSON.stringify(contractsApplied)) {
|
|
328
|
+
snapshot.integrationContracts.contracts = contractsApplied;
|
|
329
|
+
await saveIntegrationContractsState(paths, snapshot.integrationContracts);
|
|
330
|
+
updated.integration_contracts = true;
|
|
331
|
+
}
|
|
332
|
+
if (!packageJson) {
|
|
333
|
+
notes.push('package.json nao encontrado; parte da inferencia foi limitada.');
|
|
334
|
+
}
|
|
335
|
+
if (!deep) {
|
|
336
|
+
notes.push('Modo padrao (nao profundo): use sdd init-context para inspeção aprofundada.');
|
|
337
|
+
}
|
|
338
|
+
return {
|
|
339
|
+
mode,
|
|
340
|
+
deep,
|
|
341
|
+
detected: {
|
|
342
|
+
package_name: packageName,
|
|
343
|
+
tech_stack_count: inferredTechStack.length,
|
|
344
|
+
repo_map_count: inferredRepoMap.length,
|
|
345
|
+
architecture_nodes_count: inferredArchitecture.length,
|
|
346
|
+
service_catalog_count: inferredServiceCatalog.length,
|
|
347
|
+
integration_contracts_count: inferredContracts.length,
|
|
348
|
+
},
|
|
349
|
+
updated,
|
|
350
|
+
notes,
|
|
351
|
+
};
|
|
352
|
+
}
|
|
353
|
+
//# sourceMappingURL=bootstrap.js.map
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export interface SddCheckOptions {
|
|
2
|
+
render?: boolean;
|
|
3
|
+
strict?: boolean;
|
|
4
|
+
}
|
|
5
|
+
export interface SddCheckReport {
|
|
6
|
+
valid: boolean;
|
|
7
|
+
errors: string[];
|
|
8
|
+
warnings: string[];
|
|
9
|
+
summary: {
|
|
10
|
+
discovery: number;
|
|
11
|
+
backlog: number;
|
|
12
|
+
techDebt: number;
|
|
13
|
+
finalizeQueue: number;
|
|
14
|
+
frontendEnabled: boolean;
|
|
15
|
+
frontendGaps: number;
|
|
16
|
+
frontendRoutes: number;
|
|
17
|
+
progress_global: {
|
|
18
|
+
done: number;
|
|
19
|
+
total: number;
|
|
20
|
+
percent: number;
|
|
21
|
+
};
|
|
22
|
+
progress_by_radar: Array<{
|
|
23
|
+
radar_id: string;
|
|
24
|
+
done: number;
|
|
25
|
+
total: number;
|
|
26
|
+
percent: number;
|
|
27
|
+
}>;
|
|
28
|
+
ready_for_parallel: number;
|
|
29
|
+
blocked: number;
|
|
30
|
+
lock_conflicts: number;
|
|
31
|
+
documentation_sync: boolean;
|
|
32
|
+
core_views_stale: boolean;
|
|
33
|
+
missing_architecture_fields: string[];
|
|
34
|
+
frontend_coverage_sync: boolean;
|
|
35
|
+
quality_contract_sync: boolean;
|
|
36
|
+
features_missing_frontend_declaration: string[];
|
|
37
|
+
features_with_frontend_conflict: string[];
|
|
38
|
+
features_missing_fgap_link: string[];
|
|
39
|
+
features_missing_quality_contract: string[];
|
|
40
|
+
features_missing_quality_artifact: string[];
|
|
41
|
+
graph: {
|
|
42
|
+
readyForParallel: number;
|
|
43
|
+
blocked: number;
|
|
44
|
+
lockConflicts: number;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
export declare class SddCheckCommand {
|
|
49
|
+
execute(projectRoot: string, options?: SddCheckOptions): Promise<SddCheckReport>;
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=check.d.ts.map
|