@planu/cli 6.1.0 → 7.0.0
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/dist/index.d.ts +1 -2
- package/dist/index.js +1 -112
- package/dist/sdd-engine/contracts.d.ts +76 -0
- package/dist/sdd-engine/contracts.js +60 -0
- package/dist/sdd-engine/index.d.ts +5 -0
- package/dist/sdd-engine/index.js +5 -0
- package/dist/sdd-engine/patch-sandbox.d.ts +14 -0
- package/dist/sdd-engine/patch-sandbox.js +173 -0
- package/dist/sdd-engine/server.d.ts +5 -0
- package/dist/sdd-engine/server.js +30 -0
- package/dist/sdd-engine/task-window.d.ts +9 -0
- package/dist/sdd-engine/task-window.js +153 -0
- package/dist/sdd-engine/tools/execution-tools.d.ts +5 -0
- package/dist/sdd-engine/tools/execution-tools.js +138 -0
- package/dist/sdd-engine/tools/format-result.d.ts +4 -0
- package/dist/sdd-engine/tools/format-result.js +22 -0
- package/dist/sdd-engine/tools/workspace-tools.d.ts +3 -0
- package/dist/sdd-engine/tools/workspace-tools.js +193 -0
- package/dist/sdd-engine/tools.d.ts +3 -0
- package/dist/sdd-engine/tools.js +13 -0
- package/dist/types/sdd-engine.d.ts +91 -0
- package/dist/types/sdd-engine.js +2 -0
- package/package.json +43 -46
- package/dist/.planu-build.json +0 -1
- package/dist/cli/colors.d.ts +0 -14
- package/dist/cli/colors.js +0 -26
- package/dist/cli/commands/doctor.d.ts +0 -12
- package/dist/cli/commands/doctor.js +0 -91
- package/dist/cli/commands/init.d.ts +0 -3
- package/dist/cli/commands/init.js +0 -37
- package/dist/cli/commands/job.d.ts +0 -3
- package/dist/cli/commands/job.js +0 -112
- package/dist/cli/commands/list.d.ts +0 -3
- package/dist/cli/commands/list.js +0 -39
- package/dist/cli/commands/package-handoff.d.ts +0 -3
- package/dist/cli/commands/package-handoff.js +0 -75
- package/dist/cli/commands/spec.d.ts +0 -3
- package/dist/cli/commands/spec.js +0 -156
- package/dist/cli/commands/status.d.ts +0 -3
- package/dist/cli/commands/status.js +0 -113
- package/dist/cli/commands/validate.d.ts +0 -3
- package/dist/cli/commands/validate.js +0 -39
- package/dist/cli/formatter.d.ts +0 -26
- package/dist/cli/formatter.js +0 -126
- package/dist/cli/index.d.ts +0 -3
- package/dist/cli/index.js +0 -29
- package/dist/cli/project-detector.d.ts +0 -6
- package/dist/cli/project-detector.js +0 -12
- package/dist/cli/router.d.ts +0 -6
- package/dist/cli/router.js +0 -142
- package/dist/config/architecture-patterns.json +0 -324
- package/dist/config/detection-signals.json +0 -256
- package/dist/config/docs-registry.json +0 -94
- package/dist/config/dor-dod-items.json +0 -194
- package/dist/config/drift-severity.json +0 -22
- package/dist/config/event-brokers.json +0 -63
- package/dist/config/framework-registry/csharp-aspnet.json +0 -67
- package/dist/config/framework-registry/dart-flutter.json +0 -61
- package/dist/config/framework-registry/go-gin.json +0 -62
- package/dist/config/framework-registry/index.json +0 -164
- package/dist/config/framework-registry/java-springboot.json +0 -67
- package/dist/config/framework-registry/php-laravel.json +0 -67
- package/dist/config/framework-registry/python-django.json +0 -72
- package/dist/config/framework-registry/python-fastapi.json +0 -72
- package/dist/config/framework-registry/ruby-rails.json +0 -67
- package/dist/config/framework-registry/rust-actix.json +0 -61
- package/dist/config/framework-registry/swift-swiftui.json +0 -67
- package/dist/config/framework-registry/typescript-angular.json +0 -67
- package/dist/config/framework-registry/typescript-astro.json +0 -61
- package/dist/config/framework-registry/typescript-express.json +0 -67
- package/dist/config/framework-registry/typescript-nestjs.json +0 -62
- package/dist/config/framework-registry/typescript-nextjs.json +0 -82
- package/dist/config/framework-registry/typescript-nuxt.json +0 -67
- package/dist/config/framework-registry/typescript-react.json +0 -77
- package/dist/config/framework-registry/typescript-remix.json +0 -61
- package/dist/config/framework-registry/typescript-sveltekit.json +0 -67
- package/dist/config/framework-registry/typescript-vue.json +0 -72
- package/dist/config/hook-templates/planu-force-ask-user-question.sh +0 -14
- package/dist/config/hook-templates/planu-spec-sanctity.sh +0 -128
- package/dist/config/legacy-artifacts.json +0 -26
- package/dist/config/minimal-implementation-gate.json +0 -149
- package/dist/config/negative-predicate-phrases.json +0 -33
- package/dist/config/official-sdd-tools.d.ts +0 -7
- package/dist/config/official-sdd-tools.js +0 -44
- package/dist/config/out-of-scope-suggestions.json +0 -190
- package/dist/config/paradigm-registry.json +0 -380
- package/dist/config/project-knowledge-graph.json +0 -170
- package/dist/config/readiness-config.json +0 -22
- package/dist/config/registries/error-recovery.json +0 -114
- package/dist/config/registries/legacy-guidance.json +0 -118
- package/dist/config/registries/spec-folder-sanctity.json +0 -4
- package/dist/config/runtime-policy.json +0 -66
- package/dist/config/server-instructions.d.ts +0 -2
- package/dist/config/server-instructions.js +0 -18
- package/dist/config/skill-templates/planu-dogfood-bug.md +0 -43
- package/dist/config/skill-templates/planu-implement.md +0 -42
- package/dist/config/skill-templates/planu-native.md +0 -30
- package/dist/config/skill-templates/planu-new-spec.md +0 -56
- package/dist/config/skill-templates/planu-resume-work.md +0 -51
- package/dist/config/skill-templates/planu-review.md +0 -47
- package/dist/config/skill-templates/planu-validate.md +0 -59
- package/dist/config/stack-signatures.json +0 -793
- package/dist/config/subagent-templates/planu-challenger.md +0 -49
- package/dist/config/subagent-templates/planu-readiness-auditor.md +0 -51
- package/dist/config/subagent-templates/planu-spec-implementer.md +0 -50
- package/dist/config/subagent-templates/planu-validator.md +0 -56
- package/dist/config/technology-registry.json +0 -120
- package/dist/config/version.d.ts +0 -2
- package/dist/config/version.js +0 -20
- package/dist/core/shared/fs.d.ts +0 -10
- package/dist/core/shared/fs.js +0 -89
- package/dist/core/shared/object.d.ts +0 -3
- package/dist/core/shared/object.js +0 -12
- package/dist/core/shared/strings.d.ts +0 -3
- package/dist/core/shared/strings.js +0 -13
- package/dist/core/spec-validator.d.ts +0 -12
- package/dist/core/spec-validator.js +0 -250
- package/dist/engine/abortable-process-runner.d.ts +0 -26
- package/dist/engine/abortable-process-runner.js +0 -308
- package/dist/engine/ai-assurance/index.d.ts +0 -4
- package/dist/engine/ai-assurance/index.js +0 -3
- package/dist/engine/ai-assurance/new-code-gate.d.ts +0 -3
- package/dist/engine/ai-assurance/new-code-gate.js +0 -39
- package/dist/engine/ai-assurance/spec-assurance.d.ts +0 -3
- package/dist/engine/ai-assurance/spec-assurance.js +0 -138
- package/dist/engine/ai-integration/codex/agent-roles-generator.d.ts +0 -12
- package/dist/engine/ai-integration/codex/agent-roles-generator.js +0 -62
- package/dist/engine/ambiguity-scorer.d.ts +0 -13
- package/dist/engine/ambiguity-scorer.js +0 -155
- package/dist/engine/approval-workflow.d.ts +0 -21
- package/dist/engine/approval-workflow.js +0 -82
- package/dist/engine/audit-trail/hasher.d.ts +0 -18
- package/dist/engine/audit-trail/hasher.js +0 -46
- package/dist/engine/auditor-scoring.d.ts +0 -7
- package/dist/engine/auditor-scoring.js +0 -76
- package/dist/engine/build-freshness.d.ts +0 -4
- package/dist/engine/build-freshness.js +0 -170
- package/dist/engine/challenge-prioritizer.d.ts +0 -17
- package/dist/engine/challenge-prioritizer.js +0 -78
- package/dist/engine/clarification-gate/error-builder.d.ts +0 -12
- package/dist/engine/clarification-gate/error-builder.js +0 -33
- package/dist/engine/clarification-gate/gate.d.ts +0 -15
- package/dist/engine/clarification-gate/gate.js +0 -41
- package/dist/engine/clarification-gate/token-store.d.ts +0 -28
- package/dist/engine/clarification-gate/token-store.js +0 -67
- package/dist/engine/coach/i18n.d.ts +0 -11
- package/dist/engine/coach/i18n.js +0 -78
- package/dist/engine/code-scanner/gap-scorer.d.ts +0 -9
- package/dist/engine/code-scanner/gap-scorer.js +0 -89
- package/dist/engine/code-scanner/index.d.ts +0 -9
- package/dist/engine/code-scanner/index.js +0 -15
- package/dist/engine/code-scanner/keyword-extractor.d.ts +0 -11
- package/dist/engine/code-scanner/keyword-extractor.js +0 -88
- package/dist/engine/code-scanner/layer-scanner.d.ts +0 -24
- package/dist/engine/code-scanner/layer-scanner.js +0 -135
- package/dist/engine/compact/tool-list-compactor.d.ts +0 -7
- package/dist/engine/compact/tool-list-compactor.js +0 -87
- package/dist/engine/compact-obj.d.ts +0 -7
- package/dist/engine/compact-obj.js +0 -28
- package/dist/engine/complexity-budget/index.d.ts +0 -2
- package/dist/engine/complexity-budget/index.js +0 -3
- package/dist/engine/complexity-budget/trivial-detector.d.ts +0 -7
- package/dist/engine/complexity-budget/trivial-detector.js +0 -69
- package/dist/engine/config-loader.d.ts +0 -73
- package/dist/engine/config-loader.js +0 -239
- package/dist/engine/constitution/sdd-rules-registry.d.ts +0 -11
- package/dist/engine/constitution/sdd-rules-registry.js +0 -109
- package/dist/engine/context-merger.d.ts +0 -23
- package/dist/engine/context-merger.js +0 -197
- package/dist/engine/contradiction-detector.d.ts +0 -16
- package/dist/engine/contradiction-detector.js +0 -406
- package/dist/engine/convention-scanner/codebase-scanner.d.ts +0 -7
- package/dist/engine/convention-scanner/codebase-scanner.js +0 -390
- package/dist/engine/convention-scanner/convention-parser.d.ts +0 -7
- package/dist/engine/convention-scanner/convention-parser.js +0 -189
- package/dist/engine/convention-scanner/index.d.ts +0 -3
- package/dist/engine/convention-scanner/index.js +0 -5
- package/dist/engine/conventions-ttl.d.ts +0 -8
- package/dist/engine/conventions-ttl.js +0 -75
- package/dist/engine/core-bridge-duplicate-blocks.d.ts +0 -3
- package/dist/engine/core-bridge-duplicate-blocks.js +0 -56
- package/dist/engine/core-bridge-gaps.d.ts +0 -4
- package/dist/engine/core-bridge-gaps.js +0 -75
- package/dist/engine/core-bridge-project-graph.d.ts +0 -9
- package/dist/engine/core-bridge-project-graph.js +0 -499
- package/dist/engine/core-bridge.d.ts +0 -34
- package/dist/engine/core-bridge.js +0 -392
- package/dist/engine/criteria-quality-checker.d.ts +0 -8
- package/dist/engine/criteria-quality-checker.js +0 -55
- package/dist/engine/criterion-identity.d.ts +0 -7
- package/dist/engine/criterion-identity.js +0 -70
- package/dist/engine/data-projects-gc/pattern-matcher.d.ts +0 -21
- package/dist/engine/data-projects-gc/pattern-matcher.js +0 -68
- package/dist/engine/dep-guard/cycle-detector.d.ts +0 -29
- package/dist/engine/dep-guard/cycle-detector.js +0 -83
- package/dist/engine/dep-guard/index.d.ts +0 -3
- package/dist/engine/dep-guard/index.js +0 -3
- package/dist/engine/dependency-evaluator.d.ts +0 -15
- package/dist/engine/dependency-evaluator.js +0 -81
- package/dist/engine/detection-utils.d.ts +0 -13
- package/dist/engine/detection-utils.js +0 -255
- package/dist/engine/dor-dod/dod.d.ts +0 -17
- package/dist/engine/dor-dod/dod.js +0 -98
- package/dist/engine/dor-dod/dor.d.ts +0 -21
- package/dist/engine/dor-dod/dor.js +0 -149
- package/dist/engine/dor-dod/index.d.ts +0 -4
- package/dist/engine/dor-dod/index.js +0 -5
- package/dist/engine/dor-dod/items-loader.d.ts +0 -18
- package/dist/engine/dor-dod/items-loader.js +0 -55
- package/dist/engine/dor-dod/plan.d.ts +0 -8
- package/dist/engine/dor-dod/plan.js +0 -50
- package/dist/engine/dor-dod.d.ts +0 -2
- package/dist/engine/dor-dod.js +0 -4
- package/dist/engine/ears-gate.d.ts +0 -19
- package/dist/engine/ears-gate.js +0 -120
- package/dist/engine/elicitation/answer-extractor.d.ts +0 -4
- package/dist/engine/elicitation/answer-extractor.js +0 -225
- package/dist/engine/elicitation/capability.d.ts +0 -9
- package/dist/engine/elicitation/capability.js +0 -48
- package/dist/engine/elicitation/decision-gap-detector.d.ts +0 -3
- package/dist/engine/elicitation/decision-gap-detector.js +0 -142
- package/dist/engine/elicitation/elicit-helper.d.ts +0 -36
- package/dist/engine/elicitation/elicit-helper.js +0 -113
- package/dist/engine/elicitation/question-grounding-gate.d.ts +0 -3
- package/dist/engine/elicitation/question-grounding-gate.js +0 -103
- package/dist/engine/errors/error-result.d.ts +0 -4
- package/dist/engine/errors/error-result.js +0 -16
- package/dist/engine/errors/error-wrapper.d.ts +0 -4
- package/dist/engine/errors/error-wrapper.js +0 -82
- package/dist/engine/errors/recovery-registry.d.ts +0 -13
- package/dist/engine/errors/recovery-registry.js +0 -96
- package/dist/engine/errors/registry-loader.d.ts +0 -3
- package/dist/engine/errors/registry-loader.js +0 -22
- package/dist/engine/event-detector.d.ts +0 -33
- package/dist/engine/event-detector.js +0 -97
- package/dist/engine/evidence-gates/artifact-reader.d.ts +0 -133
- package/dist/engine/evidence-gates/artifact-reader.js +0 -387
- package/dist/engine/evidence-gates/evidence-autofill.d.ts +0 -15
- package/dist/engine/evidence-gates/evidence-autofill.js +0 -255
- package/dist/engine/evidence-gates/evidence-skeletons.d.ts +0 -19
- package/dist/engine/evidence-gates/evidence-skeletons.js +0 -78
- package/dist/engine/evidence-gates/lifecycle-gate.d.ts +0 -12
- package/dist/engine/evidence-gates/lifecycle-gate.js +0 -293
- package/dist/engine/evidence-gates/reconciliation-freshness.d.ts +0 -11
- package/dist/engine/evidence-gates/reconciliation-freshness.js +0 -73
- package/dist/engine/evidence-index/done-drift.d.ts +0 -7
- package/dist/engine/evidence-index/done-drift.js +0 -91
- package/dist/engine/evidence-index/index-builder.d.ts +0 -10
- package/dist/engine/evidence-index/index-builder.js +0 -202
- package/dist/engine/execution/context.d.ts +0 -19
- package/dist/engine/execution/context.js +0 -130
- package/dist/engine/execution/deadline-io.d.ts +0 -20
- package/dist/engine/execution/deadline-io.js +0 -30
- package/dist/engine/execution/durable-job-heartbeat-runtime.d.ts +0 -4
- package/dist/engine/execution/durable-job-heartbeat-runtime.js +0 -401
- package/dist/engine/execution/job-runtime.d.ts +0 -101
- package/dist/engine/execution/job-runtime.js +0 -319
- package/dist/engine/execution/operation-journal.d.ts +0 -67
- package/dist/engine/execution/operation-journal.js +0 -266
- package/dist/engine/execution/package-handoff-job-executor.d.ts +0 -22
- package/dist/engine/execution/package-handoff-job-executor.js +0 -510
- package/dist/engine/execution/public-job-sanitizer.d.ts +0 -4
- package/dist/engine/execution/public-job-sanitizer.js +0 -31
- package/dist/engine/execution/startup-recovery.d.ts +0 -3
- package/dist/engine/execution/startup-recovery.js +0 -15
- package/dist/engine/execution/validate-job-executor.d.ts +0 -37
- package/dist/engine/execution/validate-job-executor.js +0 -900
- package/dist/engine/execution/validate-job-payload.d.ts +0 -5
- package/dist/engine/execution/validate-job-payload.js +0 -145
- package/dist/engine/execution/validate-job-recovery.d.ts +0 -4
- package/dist/engine/execution/validate-job-recovery.js +0 -47
- package/dist/engine/execution/validate-worker-runtime.d.ts +0 -10
- package/dist/engine/execution/validate-worker-runtime.js +0 -188
- package/dist/engine/execution/validate-worker-thread.d.ts +0 -2
- package/dist/engine/execution/validate-worker-thread.js +0 -65
- package/dist/engine/framework-detector.d.ts +0 -35
- package/dist/engine/framework-detector.js +0 -268
- package/dist/engine/freeze/freeze-checker.d.ts +0 -14
- package/dist/engine/freeze/freeze-checker.js +0 -28
- package/dist/engine/freeze/unlock-token.d.ts +0 -17
- package/dist/engine/freeze/unlock-token.js +0 -30
- package/dist/engine/frontmatter-parser.d.ts +0 -32
- package/dist/engine/frontmatter-parser.js +0 -157
- package/dist/engine/frontmatter-sha/canonicalize.d.ts +0 -9
- package/dist/engine/frontmatter-sha/canonicalize.js +0 -20
- package/dist/engine/frontmatter-sha/compute-sha.d.ts +0 -8
- package/dist/engine/frontmatter-sha/compute-sha.js +0 -14
- package/dist/engine/frontmatter-sha/frozen-fields.d.ts +0 -6
- package/dist/engine/frontmatter-sha/frozen-fields.js +0 -14
- package/dist/engine/frontmatter-sha/index.d.ts +0 -2
- package/dist/engine/frontmatter-sha/index.js +0 -3
- package/dist/engine/git/branch-detector.d.ts +0 -7
- package/dist/engine/git/branch-detector.js +0 -45
- package/dist/engine/git/exec-git.d.ts +0 -2
- package/dist/engine/git/exec-git.js +0 -14
- package/dist/engine/git/git-command-guard.d.ts +0 -2
- package/dist/engine/git/git-command-guard.js +0 -43
- package/dist/engine/git/repository-probe.d.ts +0 -3
- package/dist/engine/git/repository-probe.js +0 -13
- package/dist/engine/handoff-artifacts/implementation-review-reader.d.ts +0 -4
- package/dist/engine/handoff-artifacts/implementation-review-reader.js +0 -86
- package/dist/engine/handoff-artifacts/io.d.ts +0 -51
- package/dist/engine/handoff-artifacts/io.js +0 -200
- package/dist/engine/handoff-artifacts/schema-skeleton.d.ts +0 -5
- package/dist/engine/handoff-artifacts/schema-skeleton.js +0 -108
- package/dist/engine/handoff-artifacts/schemas.d.ts +0 -164
- package/dist/engine/handoff-artifacts/schemas.js +0 -242
- package/dist/engine/handoff-artifacts/validation-result.d.ts +0 -18
- package/dist/engine/handoff-artifacts/validation-result.js +0 -3
- package/dist/engine/handoff-artifacts/version-policy.d.ts +0 -18
- package/dist/engine/handoff-artifacts/version-policy.js +0 -35
- package/dist/engine/handoff-format.d.ts +0 -26
- package/dist/engine/handoff-format.js +0 -253
- package/dist/engine/handoff-packager.d.ts +0 -30
- package/dist/engine/handoff-packager.js +0 -864
- package/dist/engine/host-detection/detect-host.d.ts +0 -10
- package/dist/engine/host-detection/detect-host.js +0 -34
- package/dist/engine/host-rules-templates/index.d.ts +0 -3
- package/dist/engine/host-rules-templates/index.js +0 -4
- package/dist/engine/host-rules-templates/inject-rules-block.d.ts +0 -3
- package/dist/engine/host-rules-templates/inject-rules-block.js +0 -29
- package/dist/engine/host-rules-templates/templates.d.ts +0 -12
- package/dist/engine/host-rules-templates/templates.js +0 -111
- package/dist/engine/host-tool-filter.d.ts +0 -28
- package/dist/engine/host-tool-filter.js +0 -162
- package/dist/engine/human-summary.d.ts +0 -18
- package/dist/engine/human-summary.js +0 -114
- package/dist/engine/implementation-contract/common.d.ts +0 -22
- package/dist/engine/implementation-contract/common.js +0 -47
- package/dist/engine/implementation-contract/evaluator.d.ts +0 -3
- package/dist/engine/implementation-contract/evaluator.js +0 -192
- package/dist/engine/implementation-contract/index.d.ts +0 -4
- package/dist/engine/implementation-contract/index.js +0 -4
- package/dist/engine/implementation-contract/renderer.d.ts +0 -4
- package/dist/engine/implementation-contract/renderer.js +0 -114
- package/dist/engine/keyword-matcher/boundary.d.ts +0 -18
- package/dist/engine/keyword-matcher/boundary.js +0 -30
- package/dist/engine/keyword-matcher/extractor.d.ts +0 -14
- package/dist/engine/keyword-matcher/extractor.js +0 -85
- package/dist/engine/keyword-matcher/index.d.ts +0 -5
- package/dist/engine/keyword-matcher/index.js +0 -11
- package/dist/engine/keyword-matcher/matcher.d.ts +0 -28
- package/dist/engine/keyword-matcher/matcher.js +0 -79
- package/dist/engine/keyword-matcher/stopwords.d.ts +0 -26
- package/dist/engine/keyword-matcher/stopwords.js +0 -100
- package/dist/engine/lifecycle-hints.d.ts +0 -12
- package/dist/engine/lifecycle-hints.js +0 -61
- package/dist/engine/lifecycle-reconciliation-io.d.ts +0 -11
- package/dist/engine/lifecycle-reconciliation-io.js +0 -181
- package/dist/engine/lifecycle-reconciliation.d.ts +0 -16
- package/dist/engine/lifecycle-reconciliation.js +0 -460
- package/dist/engine/living-spec-analyzer.d.ts +0 -10
- package/dist/engine/living-spec-analyzer.js +0 -397
- package/dist/engine/minimality/analyzer.d.ts +0 -3
- package/dist/engine/minimality/analyzer.js +0 -182
- package/dist/engine/minimality/formatter.d.ts +0 -3
- package/dist/engine/minimality/formatter.js +0 -25
- package/dist/engine/minimality/index.d.ts +0 -3
- package/dist/engine/minimality/index.js +0 -3
- package/dist/engine/minimality/policy-loader.d.ts +0 -3
- package/dist/engine/minimality/policy-loader.js +0 -364
- package/dist/engine/model-tier-resolver.d.ts +0 -4
- package/dist/engine/model-tier-resolver.js +0 -15
- package/dist/engine/network-policy.d.ts +0 -4
- package/dist/engine/network-policy.js +0 -96
- package/dist/engine/onboarding/new-project-resolver.d.ts +0 -6
- package/dist/engine/onboarding/new-project-resolver.js +0 -265
- package/dist/engine/opencode/config-scaffold.d.ts +0 -3
- package/dist/engine/opencode/config-scaffold.js +0 -99
- package/dist/engine/paradigm-detector.d.ts +0 -12
- package/dist/engine/paradigm-detector.js +0 -236
- package/dist/engine/paradigm-registry.d.ts +0 -20
- package/dist/engine/paradigm-registry.js +0 -44
- package/dist/engine/phase-tracker.d.ts +0 -41
- package/dist/engine/phase-tracker.js +0 -89
- package/dist/engine/planu-config-writer.d.ts +0 -33
- package/dist/engine/planu-config-writer.js +0 -68
- package/dist/engine/project-command-runtime.d.ts +0 -5
- package/dist/engine/project-command-runtime.js +0 -87
- package/dist/engine/project-graph/builder.d.ts +0 -7
- package/dist/engine/project-graph/builder.js +0 -320
- package/dist/engine/project-graph/cache.d.ts +0 -47
- package/dist/engine/project-graph/cache.js +0 -739
- package/dist/engine/project-graph/extractors/decision-store-extractor.d.ts +0 -3
- package/dist/engine/project-graph/extractors/decision-store-extractor.js +0 -58
- package/dist/engine/project-graph/extractors/git-extractor.d.ts +0 -7
- package/dist/engine/project-graph/extractors/git-extractor.js +0 -89
- package/dist/engine/project-graph/extractors/handoff-extractor.d.ts +0 -3
- package/dist/engine/project-graph/extractors/handoff-extractor.js +0 -55
- package/dist/engine/project-graph/extractors/spec-extractor.d.ts +0 -3
- package/dist/engine/project-graph/extractors/spec-extractor.js +0 -189
- package/dist/engine/project-graph/extractors/validation-extractor.d.ts +0 -3
- package/dist/engine/project-graph/extractors/validation-extractor.js +0 -36
- package/dist/engine/project-graph/freshness-projection.d.ts +0 -16
- package/dist/engine/project-graph/freshness-projection.js +0 -98
- package/dist/engine/project-graph/index.d.ts +0 -2
- package/dist/engine/project-graph/index.js +0 -2
- package/dist/engine/project-graph/native.d.ts +0 -3
- package/dist/engine/project-graph/native.js +0 -36
- package/dist/engine/project-graph/query.d.ts +0 -8
- package/dist/engine/project-graph/query.js +0 -193
- package/dist/engine/project-graph/redaction.d.ts +0 -4
- package/dist/engine/project-graph/redaction.js +0 -11
- package/dist/engine/project-scanner/convention-detector.d.ts +0 -3
- package/dist/engine/project-scanner/convention-detector.js +0 -149
- package/dist/engine/project-scanner/index.d.ts +0 -4
- package/dist/engine/project-scanner/index.js +0 -18
- package/dist/engine/project-scanner/quality-baseline.d.ts +0 -3
- package/dist/engine/project-scanner/quality-baseline.js +0 -72
- package/dist/engine/project-scanner/stack-detector.d.ts +0 -3
- package/dist/engine/project-scanner/stack-detector.js +0 -128
- package/dist/engine/readiness-checker.d.ts +0 -56
- package/dist/engine/readiness-checker.js +0 -566
- package/dist/engine/readiness-config-loader.d.ts +0 -23
- package/dist/engine/readiness-config-loader.js +0 -63
- package/dist/engine/reconcile/apply-changes.d.ts +0 -4
- package/dist/engine/reconcile/apply-changes.js +0 -117
- package/dist/engine/reconcile/propagate-mirrors.d.ts +0 -3
- package/dist/engine/reconcile/propagate-mirrors.js +0 -376
- package/dist/engine/reconcile/verify-write.d.ts +0 -10
- package/dist/engine/reconcile/verify-write.js +0 -49
- package/dist/engine/registry-extender.d.ts +0 -25
- package/dist/engine/registry-extender.js +0 -60
- package/dist/engine/reviewer-tokens/issuer.d.ts +0 -29
- package/dist/engine/reviewer-tokens/issuer.js +0 -88
- package/dist/engine/reviewer-tokens/signer.d.ts +0 -17
- package/dist/engine/reviewer-tokens/signer.js +0 -51
- package/dist/engine/reviewer-tokens/types.d.ts +0 -2
- package/dist/engine/reviewer-tokens/types.js +0 -2
- package/dist/engine/runtime-policy.d.ts +0 -9
- package/dist/engine/runtime-policy.js +0 -163
- package/dist/engine/safety/atomic-write-file.d.ts +0 -47
- package/dist/engine/safety/atomic-write-file.js +0 -232
- package/dist/engine/safety/atomic-writer.d.ts +0 -22
- package/dist/engine/safety/atomic-writer.js +0 -97
- package/dist/engine/safety/contained-project-file.d.ts +0 -3
- package/dist/engine/safety/contained-project-file.js +0 -23
- package/dist/engine/safety/cross-process-lock.d.ts +0 -13
- package/dist/engine/safety/cross-process-lock.js +0 -318
- package/dist/engine/safety/file-mutex.d.ts +0 -6
- package/dist/engine/safety/file-mutex.js +0 -182
- package/dist/engine/safety/lock-lease-store.d.ts +0 -84
- package/dist/engine/safety/lock-lease-store.js +0 -383
- package/dist/engine/safety/lock-scavenger.d.ts +0 -8
- package/dist/engine/safety/lock-scavenger.js +0 -198
- package/dist/engine/safety/lock-staleness.d.ts +0 -33
- package/dist/engine/safety/lock-staleness.js +0 -76
- package/dist/engine/safety/obsolete-lock-guard.d.ts +0 -8
- package/dist/engine/safety/obsolete-lock-guard.js +0 -31
- package/dist/engine/scope-boundaries/contradiction-checker.d.ts +0 -7
- package/dist/engine/scope-boundaries/contradiction-checker.js +0 -276
- package/dist/engine/scope-boundaries/index.d.ts +0 -4
- package/dist/engine/scope-boundaries/index.js +0 -5
- package/dist/engine/scope-boundaries/scope-validator.d.ts +0 -7
- package/dist/engine/scope-boundaries/scope-validator.js +0 -114
- package/dist/engine/scope-boundaries/suggester.d.ts +0 -8
- package/dist/engine/scope-boundaries/suggester.js +0 -27
- package/dist/engine/score-to-grade.d.ts +0 -2
- package/dist/engine/score-to-grade.js +0 -16
- package/dist/engine/sdd-model-routing.d.ts +0 -15
- package/dist/engine/sdd-model-routing.js +0 -200
- package/dist/engine/spec-dependency-graph.d.ts +0 -33
- package/dist/engine/spec-dependency-graph.js +0 -243
- package/dist/engine/spec-difficulty.d.ts +0 -3
- package/dist/engine/spec-difficulty.js +0 -17
- package/dist/engine/spec-folder-sanctity.d.ts +0 -5
- package/dist/engine/spec-folder-sanctity.js +0 -32
- package/dist/engine/spec-format/acceptance-criteria.d.ts +0 -10
- package/dist/engine/spec-format/acceptance-criteria.js +0 -157
- package/dist/engine/spec-format/bdd-parser.d.ts +0 -19
- package/dist/engine/spec-format/bdd-parser.js +0 -224
- package/dist/engine/spec-format/copula-blacklist.d.ts +0 -15
- package/dist/engine/spec-format/copula-blacklist.js +0 -31
- package/dist/engine/spec-format/criteria-drift.d.ts +0 -3
- package/dist/engine/spec-format/criteria-drift.js +0 -36
- package/dist/engine/spec-format/executable-test-path.d.ts +0 -2
- package/dist/engine/spec-format/executable-test-path.js +0 -5
- package/dist/engine/spec-format/lean-spec-generator.d.ts +0 -8
- package/dist/engine/spec-format/lean-spec-generator.js +0 -236
- package/dist/engine/spec-format/lean-technical-generator.d.ts +0 -5
- package/dist/engine/spec-format/lean-technical-generator.js +0 -45
- package/dist/engine/spec-format/markdown-sections.d.ts +0 -14
- package/dist/engine/spec-format/markdown-sections.js +0 -105
- package/dist/engine/spec-format/metadata-value-policy.d.ts +0 -156
- package/dist/engine/spec-format/metadata-value-policy.js +0 -86
- package/dist/engine/spec-format/read-technical-section.d.ts +0 -25
- package/dist/engine/spec-format/read-technical-section.js +0 -99
- package/dist/engine/spec-format/replace-section.d.ts +0 -17
- package/dist/engine/spec-format/replace-section.js +0 -79
- package/dist/engine/spec-format/retired-scaffold.d.ts +0 -3
- package/dist/engine/spec-format/retired-scaffold.js +0 -5
- package/dist/engine/spec-format/spec-id.d.ts +0 -8
- package/dist/engine/spec-format/spec-id.js +0 -25
- package/dist/engine/spec-format/technical-md-populator.d.ts +0 -17
- package/dist/engine/spec-format/technical-md-populator.js +0 -321
- package/dist/engine/spec-format/text-fences.d.ts +0 -6
- package/dist/engine/spec-format/text-fences.js +0 -28
- package/dist/engine/spec-format/unified-spec-builder.d.ts +0 -25
- package/dist/engine/spec-format/unified-spec-builder.js +0 -400
- package/dist/engine/spec-generator/fallback-generator.d.ts +0 -5
- package/dist/engine/spec-generator/fallback-generator.js +0 -41
- package/dist/engine/spec-generator/index.d.ts +0 -2
- package/dist/engine/spec-generator/index.js +0 -2
- package/dist/engine/spec-grounding/contract.d.ts +0 -24
- package/dist/engine/spec-grounding/contract.js +0 -278
- package/dist/engine/spec-grounding/grounding-entry-parser.d.ts +0 -4
- package/dist/engine/spec-grounding/grounding-entry-parser.js +0 -184
- package/dist/engine/spec-health-scorer.d.ts +0 -7
- package/dist/engine/spec-health-scorer.js +0 -134
- package/dist/engine/spec-language/english-only.d.ts +0 -30
- package/dist/engine/spec-language/english-only.js +0 -224
- package/dist/engine/spec-migrator/criteria-scanner.d.ts +0 -7
- package/dist/engine/spec-migrator/criteria-scanner.js +0 -113
- package/dist/engine/spec-migrator/drift-detector.d.ts +0 -10
- package/dist/engine/spec-migrator/drift-detector.js +0 -142
- package/dist/engine/spec-migrator/filesystem-import.d.ts +0 -10
- package/dist/engine/spec-migrator/filesystem-import.js +0 -205
- package/dist/engine/spec-migrator/flatten-specs.d.ts +0 -12
- package/dist/engine/spec-migrator/flatten-specs.js +0 -111
- package/dist/engine/spec-migrator/folder-operations.d.ts +0 -7
- package/dist/engine/spec-migrator/folder-operations.js +0 -109
- package/dist/engine/spec-migrator/frontmatter-parser.d.ts +0 -11
- package/dist/engine/spec-migrator/frontmatter-parser.js +0 -111
- package/dist/engine/spec-migrator/git-aware-fs.d.ts +0 -9
- package/dist/engine/spec-migrator/git-aware-fs.js +0 -20
- package/dist/engine/spec-migrator/index.d.ts +0 -10
- package/dist/engine/spec-migrator/index.js +0 -23
- package/dist/engine/spec-migrator/lean-migration.d.ts +0 -8
- package/dist/engine/spec-migrator/lean-migration.js +0 -405
- package/dist/engine/spec-migrator/legacy-classifier.d.ts +0 -4
- package/dist/engine/spec-migrator/legacy-classifier.js +0 -70
- package/dist/engine/spec-migrator/legacy-migration.d.ts +0 -13
- package/dist/engine/spec-migrator/legacy-migration.js +0 -88
- package/dist/engine/spec-migrator/path-utils.d.ts +0 -13
- package/dist/engine/spec-migrator/path-utils.js +0 -40
- package/dist/engine/spec-migrator/planu-canonical-policy.d.ts +0 -18
- package/dist/engine/spec-migrator/planu-canonical-policy.js +0 -105
- package/dist/engine/spec-migrator/prefix-migration.d.ts +0 -11
- package/dist/engine/spec-migrator/prefix-migration.js +0 -85
- package/dist/engine/spec-migrator/reconcile-paths.d.ts +0 -12
- package/dist/engine/spec-migrator/reconcile-paths.js +0 -77
- package/dist/engine/spec-migrator/strict-planu-cleanup.d.ts +0 -7
- package/dist/engine/spec-migrator/strict-planu-cleanup.js +0 -308
- package/dist/engine/spec-migrator/version-detection.d.ts +0 -5
- package/dist/engine/spec-migrator/version-detection.js +0 -19
- package/dist/engine/spec-migrator.d.ts +0 -2
- package/dist/engine/spec-migrator.js +0 -3
- package/dist/engine/spec-quality/generic-output-gate.d.ts +0 -9
- package/dist/engine/spec-quality/generic-output-gate.js +0 -350
- package/dist/engine/spec-quality-scorer.d.ts +0 -4
- package/dist/engine/spec-quality-scorer.js +0 -423
- package/dist/engine/spec-reader.d.ts +0 -7
- package/dist/engine/spec-reader.js +0 -23
- package/dist/engine/spec-state-machine/transition-spec.d.ts +0 -56
- package/dist/engine/spec-state-machine/transition-spec.js +0 -59
- package/dist/engine/spec-versioner.d.ts +0 -28
- package/dist/engine/spec-versioner.js +0 -92
- package/dist/engine/spec-versioning/bump-version.d.ts +0 -17
- package/dist/engine/spec-versioning/bump-version.js +0 -199
- package/dist/engine/spec-versioning/migrate-format.d.ts +0 -23
- package/dist/engine/spec-versioning/migrate-format.js +0 -96
- package/dist/engine/spec-versioning/render-history.d.ts +0 -14
- package/dist/engine/spec-versioning/render-history.js +0 -31
- package/dist/engine/technology-registry.d.ts +0 -11
- package/dist/engine/technology-registry.js +0 -142
- package/dist/engine/test-selection/policy.d.ts +0 -9
- package/dist/engine/test-selection/policy.js +0 -192
- package/dist/engine/text-signal-boundaries.d.ts +0 -8
- package/dist/engine/text-signal-boundaries.js +0 -122
- package/dist/engine/time/relative-date.d.ts +0 -3
- package/dist/engine/time/relative-date.js +0 -16
- package/dist/engine/timing/budget.d.ts +0 -29
- package/dist/engine/timing/budget.js +0 -129
- package/dist/engine/universal-rules/catalog.d.ts +0 -7
- package/dist/engine/universal-rules/catalog.js +0 -25
- package/dist/engine/universal-rules/host-writer.d.ts +0 -7
- package/dist/engine/universal-rules/host-writer.js +0 -113
- package/dist/engine/universal-rules/installer.d.ts +0 -5
- package/dist/engine/universal-rules/installer.js +0 -236
- package/dist/engine/universal-rules/rules/planu-approval-gates.d.ts +0 -3
- package/dist/engine/universal-rules/rules/planu-approval-gates.js +0 -48
- package/dist/engine/universal-rules/rules/planu-bdd-criteria.d.ts +0 -3
- package/dist/engine/universal-rules/rules/planu-bdd-criteria.js +0 -44
- package/dist/engine/universal-rules/rules/planu-dogfood-bugs.d.ts +0 -3
- package/dist/engine/universal-rules/rules/planu-dogfood-bugs.js +0 -70
- package/dist/engine/universal-rules/rules/planu-english-specs.d.ts +0 -3
- package/dist/engine/universal-rules/rules/planu-english-specs.js +0 -41
- package/dist/engine/universal-rules/rules/planu-minimal-change.d.ts +0 -3
- package/dist/engine/universal-rules/rules/planu-minimal-change.js +0 -42
- package/dist/engine/universal-rules/rules/planu-modes.d.ts +0 -3
- package/dist/engine/universal-rules/rules/planu-modes.js +0 -57
- package/dist/engine/universal-rules/rules/planu-sdd-model-routing.d.ts +0 -3
- package/dist/engine/universal-rules/rules/planu-sdd-model-routing.js +0 -50
- package/dist/engine/universal-rules/rules/planu-workflow.d.ts +0 -3
- package/dist/engine/universal-rules/rules/planu-workflow.js +0 -92
- package/dist/engine/universal-rules/user-edit-detector.d.ts +0 -21
- package/dist/engine/universal-rules/user-edit-detector.js +0 -46
- package/dist/engine/validation/durable-validation.d.ts +0 -44
- package/dist/engine/validation/durable-validation.js +0 -344
- package/dist/engine/validation/validation-freshness.d.ts +0 -73
- package/dist/engine/validation/validation-freshness.js +0 -777
- package/dist/engine/validation/validation-receipt-codec.d.ts +0 -13
- package/dist/engine/validation/validation-receipt-codec.js +0 -184
- package/dist/engine/validation/validation-receipt.d.ts +0 -67
- package/dist/engine/validation/validation-receipt.js +0 -342
- package/dist/engine/validation/validation-source-digest.d.ts +0 -2
- package/dist/engine/validation/validation-source-digest.js +0 -86
- package/dist/engine/validation/validation-source-policy.d.ts +0 -4
- package/dist/engine/validation/validation-source-policy.js +0 -17
- package/dist/engine/validation/validation-submission.d.ts +0 -35
- package/dist/engine/validation/validation-submission.js +0 -142
- package/dist/engine/validation/validation-worktree.d.ts +0 -21
- package/dist/engine/validation/validation-worktree.js +0 -294
- package/dist/engine/validation-evidence-digest.d.ts +0 -4
- package/dist/engine/validation-evidence-digest.js +0 -83
- package/dist/engine/validation-evidence-ledger.d.ts +0 -30
- package/dist/engine/validation-evidence-ledger.js +0 -328
- package/dist/engine/validation-impact-planner.d.ts +0 -14
- package/dist/engine/validation-impact-planner.js +0 -74
- package/dist/engine/validation-loop.d.ts +0 -12
- package/dist/engine/validation-loop.js +0 -216
- package/dist/engine/validator/analyzer.d.ts +0 -23
- package/dist/engine/validator/analyzer.js +0 -495
- package/dist/engine/validator/blast-radius-gate.d.ts +0 -3
- package/dist/engine/validator/blast-radius-gate.js +0 -305
- package/dist/engine/validator/checklist.d.ts +0 -6
- package/dist/engine/validator/checklist.js +0 -147
- package/dist/engine/validator/deep-code-checker.d.ts +0 -49
- package/dist/engine/validator/deep-code-checker.js +0 -410
- package/dist/engine/validator/dor-dod.d.ts +0 -11
- package/dist/engine/validator/dor-dod.js +0 -338
- package/dist/engine/validator/executable-evidence.d.ts +0 -18
- package/dist/engine/validator/executable-evidence.js +0 -104
- package/dist/engine/validator/extractors.d.ts +0 -16
- package/dist/engine/validator/extractors.js +0 -105
- package/dist/engine/validator/gates/code-gates.d.ts +0 -14
- package/dist/engine/validator/gates/code-gates.js +0 -87
- package/dist/engine/validator/gates/convention-gates.d.ts +0 -13
- package/dist/engine/validator/gates/convention-gates.js +0 -84
- package/dist/engine/validator/gates/index.d.ts +0 -8
- package/dist/engine/validator/gates/index.js +0 -63
- package/dist/engine/validator/gates/test-gates.d.ts +0 -12
- package/dist/engine/validator/gates/test-gates.js +0 -105
- package/dist/engine/validator/holistic-report.d.ts +0 -11
- package/dist/engine/validator/holistic-report.js +0 -34
- package/dist/engine/validator/negative-predicate.d.ts +0 -17
- package/dist/engine/validator/negative-predicate.js +0 -240
- package/dist/engine/validator/package-json-evidence.d.ts +0 -3
- package/dist/engine/validator/package-json-evidence.js +0 -97
- package/dist/engine/validator/reliability-gate.d.ts +0 -4
- package/dist/engine/validator/reliability-gate.js +0 -81
- package/dist/engine/validator/scope-resolver.d.ts +0 -30
- package/dist/engine/validator/scope-resolver.js +0 -67
- package/dist/engine/validator/spec-compliance-runner.d.ts +0 -9
- package/dist/engine/validator/spec-compliance-runner.js +0 -849
- package/dist/engine/validator/test-evidence-grounding.d.ts +0 -64
- package/dist/engine/validator/test-evidence-grounding.js +0 -221
- package/dist/engine/validator/validation-report-writer.d.ts +0 -27
- package/dist/engine/validator/validation-report-writer.js +0 -208
- package/dist/engine/validator.d.ts +0 -19
- package/dist/engine/validator.js +0 -244
- package/dist/engine/verifier/bdd-entity-extractor.d.ts +0 -23
- package/dist/engine/verifier/bdd-entity-extractor.js +0 -227
- package/dist/engine/verifier/compliance-scorer.d.ts +0 -17
- package/dist/engine/verifier/compliance-scorer.js +0 -131
- package/dist/engine/verifier/criterion-matcher.d.ts +0 -22
- package/dist/engine/verifier/criterion-matcher.js +0 -309
- package/dist/engine/web-fetcher/registry-loader.d.ts +0 -7
- package/dist/engine/web-fetcher/registry-loader.js +0 -44
- package/dist/engine/whats-new.d.ts +0 -2
- package/dist/engine/whats-new.js +0 -42
- package/dist/errors/classified-degradation.d.ts +0 -3
- package/dist/errors/classified-degradation.js +0 -10
- package/dist/errors/degradation-sink.d.ts +0 -3
- package/dist/errors/degradation-sink.js +0 -5
- package/dist/errors/error-taxonomy.d.ts +0 -11
- package/dist/errors/error-taxonomy.js +0 -59
- package/dist/hosts/claude-code/coach.d.ts +0 -6
- package/dist/hosts/claude-code/coach.js +0 -10
- package/dist/hosts/claude-code/ux/subagent-publisher.d.ts +0 -20
- package/dist/hosts/claude-code/ux/subagent-publisher.js +0 -117
- package/dist/hosts/codex/config-scaffold.d.ts +0 -10
- package/dist/hosts/codex/config-scaffold.js +0 -102
- package/dist/hosts/codex/workspace-scope.d.ts +0 -43
- package/dist/hosts/codex/workspace-scope.js +0 -89
- package/dist/hosts/gemini/config-scaffold.d.ts +0 -14
- package/dist/hosts/gemini/config-scaffold.js +0 -165
- package/dist/i18n/index.d.ts +0 -61
- package/dist/i18n/index.js +0 -288
- package/dist/prompts/index.d.ts +0 -6
- package/dist/prompts/index.js +0 -121
- package/dist/resources/process.d.ts +0 -11
- package/dist/resources/process.js +0 -80
- package/dist/resources/registry.d.ts +0 -6
- package/dist/resources/registry.js +0 -16
- package/dist/resources/specs.d.ts +0 -11
- package/dist/resources/specs.js +0 -58
- package/dist/security/adapters/environment.d.ts +0 -12
- package/dist/security/adapters/environment.js +0 -25
- package/dist/security/adapters/local-file.d.ts +0 -12
- package/dist/security/adapters/local-file.js +0 -56
- package/dist/security/adapters/macos-keychain.d.ts +0 -20
- package/dist/security/adapters/macos-keychain.js +0 -151
- package/dist/security/redactor.d.ts +0 -5
- package/dist/security/redactor.js +0 -58
- package/dist/security/secret-provider.d.ts +0 -22
- package/dist/security/secret-provider.js +0 -107
- package/dist/storage/approval-operation-lock.d.ts +0 -7
- package/dist/storage/approval-operation-lock.js +0 -47
- package/dist/storage/approval-store.d.ts +0 -14
- package/dist/storage/approval-store.js +0 -117
- package/dist/storage/audit-trail-store.d.ts +0 -20
- package/dist/storage/audit-trail-store.js +0 -83
- package/dist/storage/base-store.d.ts +0 -69
- package/dist/storage/base-store.js +0 -195
- package/dist/storage/compliance-gate-config-store.d.ts +0 -4
- package/dist/storage/compliance-gate-config-store.js +0 -20
- package/dist/storage/convention-baseline.d.ts +0 -20
- package/dist/storage/convention-baseline.js +0 -62
- package/dist/storage/current-project.d.ts +0 -3
- package/dist/storage/current-project.js +0 -21
- package/dist/storage/file-mutex.d.ts +0 -14
- package/dist/storage/file-mutex.js +0 -47
- package/dist/storage/global-projects-store.d.ts +0 -53
- package/dist/storage/global-projects-store.js +0 -181
- package/dist/storage/global-store.d.ts +0 -82
- package/dist/storage/global-store.js +0 -246
- package/dist/storage/index.d.ts +0 -15
- package/dist/storage/index.js +0 -16
- package/dist/storage/knowledge-store/knowledge.d.ts +0 -25
- package/dist/storage/knowledge-store/knowledge.js +0 -112
- package/dist/storage/knowledge-store/sessions.d.ts +0 -16
- package/dist/storage/knowledge-store/sessions.js +0 -155
- package/dist/storage/knowledge-store.d.ts +0 -3
- package/dist/storage/knowledge-store.js +0 -8
- package/dist/storage/migrations/canonical-storage.d.ts +0 -15
- package/dist/storage/migrations/canonical-storage.js +0 -754
- package/dist/storage/migrations/sdd-core-v6.d.ts +0 -11
- package/dist/storage/migrations/sdd-core-v6.js +0 -873
- package/dist/storage/pattern-store.d.ts +0 -38
- package/dist/storage/pattern-store.js +0 -136
- package/dist/storage/project-identity.d.ts +0 -60
- package/dist/storage/project-identity.js +0 -454
- package/dist/storage/project-resolver.d.ts +0 -17
- package/dist/storage/project-resolver.js +0 -134
- package/dist/storage/retention.d.ts +0 -13
- package/dist/storage/retention.js +0 -383
- package/dist/storage/runtime-db.d.ts +0 -207
- package/dist/storage/runtime-db.js +0 -1313
- package/dist/storage/schema-registry.d.ts +0 -5
- package/dist/storage/schema-registry.js +0 -74
- package/dist/storage/spec-index.d.ts +0 -23
- package/dist/storage/spec-index.js +0 -117
- package/dist/storage/spec-lock-store.d.ts +0 -22
- package/dist/storage/spec-lock-store.js +0 -99
- package/dist/storage/spec-store.d.ts +0 -170
- package/dist/storage/spec-store.js +0 -968
- package/dist/storage/storage-bundle.d.ts +0 -16
- package/dist/storage/storage-bundle.js +0 -117
- package/dist/storage/storage-catalog-validation.d.ts +0 -3
- package/dist/storage/storage-catalog-validation.js +0 -20
- package/dist/storage/storage-catalog.d.ts +0 -25
- package/dist/storage/storage-catalog.js +0 -421
- package/dist/storage/storage-layout.d.ts +0 -40
- package/dist/storage/storage-layout.js +0 -117
- package/dist/storage/technology-selection-store.d.ts +0 -5
- package/dist/storage/technology-selection-store.js +0 -46
- package/dist/storage/transition-log.d.ts +0 -11
- package/dist/storage/transition-log.js +0 -234
- package/dist/tools/bump-spec-version.d.ts +0 -31
- package/dist/tools/bump-spec-version.js +0 -132
- package/dist/tools/challenge-spec/agent-challenge-scenarios.d.ts +0 -12
- package/dist/tools/challenge-spec/agent-challenge-scenarios.js +0 -129
- package/dist/tools/challenge-spec/architecture-challenge-scenarios.d.ts +0 -12
- package/dist/tools/challenge-spec/architecture-challenge-scenarios.js +0 -113
- package/dist/tools/challenge-spec/challenge-report.d.ts +0 -26
- package/dist/tools/challenge-spec/challenge-report.js +0 -221
- package/dist/tools/challenge-spec/event-challenge-scenarios.d.ts +0 -14
- package/dist/tools/challenge-spec/event-challenge-scenarios.js +0 -68
- package/dist/tools/challenge-spec/implementation-contract-challenge-scenarios.d.ts +0 -3
- package/dist/tools/challenge-spec/implementation-contract-challenge-scenarios.js +0 -51
- package/dist/tools/challenge-spec/platform-challenge-scenarios-b.d.ts +0 -7
- package/dist/tools/challenge-spec/platform-challenge-scenarios-b.js +0 -48
- package/dist/tools/challenge-spec/platform-challenge-scenarios-b1.d.ts +0 -4
- package/dist/tools/challenge-spec/platform-challenge-scenarios-b1.js +0 -109
- package/dist/tools/challenge-spec/platform-challenge-scenarios-b2.d.ts +0 -5
- package/dist/tools/challenge-spec/platform-challenge-scenarios-b2.js +0 -191
- package/dist/tools/challenge-spec/platform-challenge-scenarios.d.ts +0 -7
- package/dist/tools/challenge-spec/platform-challenge-scenarios.js +0 -224
- package/dist/tools/challenge-spec/resilience-challenge-scenarios-a.d.ts +0 -28
- package/dist/tools/challenge-spec/resilience-challenge-scenarios-a.js +0 -183
- package/dist/tools/challenge-spec/resilience-challenge-scenarios-b.d.ts +0 -14
- package/dist/tools/challenge-spec/resilience-challenge-scenarios-b.js +0 -144
- package/dist/tools/challenge-spec/resilience-challenge-scenarios.d.ts +0 -8
- package/dist/tools/challenge-spec/resilience-challenge-scenarios.js +0 -37
- package/dist/tools/challenge-spec/scenario-collector.d.ts +0 -13
- package/dist/tools/challenge-spec/scenario-collector.js +0 -84
- package/dist/tools/challenge-spec/scenarios-data.d.ts +0 -3
- package/dist/tools/challenge-spec/scenarios-data.js +0 -73
- package/dist/tools/challenge-spec/scenarios-desktop.d.ts +0 -7
- package/dist/tools/challenge-spec/scenarios-desktop.js +0 -91
- package/dist/tools/challenge-spec/scenarios-failure.d.ts +0 -3
- package/dist/tools/challenge-spec/scenarios-failure.js +0 -136
- package/dist/tools/challenge-spec/scenarios-game.d.ts +0 -6
- package/dist/tools/challenge-spec/scenarios-game.js +0 -71
- package/dist/tools/challenge-spec/scenarios-scale.d.ts +0 -3
- package/dist/tools/challenge-spec/scenarios-scale.js +0 -37
- package/dist/tools/challenge-spec/scenarios-security.d.ts +0 -3
- package/dist/tools/challenge-spec/scenarios-security.js +0 -85
- package/dist/tools/challenge-spec/scenarios-utils.d.ts +0 -42
- package/dist/tools/challenge-spec/scenarios-utils.js +0 -250
- package/dist/tools/challenge-spec-helpers.d.ts +0 -16
- package/dist/tools/challenge-spec-helpers.js +0 -152
- package/dist/tools/challenge-spec-scenarios.d.ts +0 -7
- package/dist/tools/challenge-spec-scenarios.js +0 -9
- package/dist/tools/challenge-spec.d.ts +0 -4
- package/dist/tools/challenge-spec.js +0 -448
- package/dist/tools/check-readiness.d.ts +0 -5
- package/dist/tools/check-readiness.js +0 -343
- package/dist/tools/claude-settings-file.d.ts +0 -3
- package/dist/tools/claude-settings-file.js +0 -19
- package/dist/tools/create-skill.d.ts +0 -4
- package/dist/tools/create-skill.js +0 -151
- package/dist/tools/create-spec/autopilot-analyzer.d.ts +0 -33
- package/dist/tools/create-spec/autopilot-analyzer.js +0 -171
- package/dist/tools/create-spec/constitution-validator.d.ts +0 -4
- package/dist/tools/create-spec/constitution-validator.js +0 -31
- package/dist/tools/create-spec/question-generator.d.ts +0 -4
- package/dist/tools/create-spec/question-generator.js +0 -25
- package/dist/tools/create-spec/relevance-scorer.d.ts +0 -18
- package/dist/tools/create-spec/relevance-scorer.js +0 -156
- package/dist/tools/create-spec/spec-builder.d.ts +0 -20
- package/dist/tools/create-spec/spec-builder.js +0 -274
- package/dist/tools/create-spec-helpers.d.ts +0 -4
- package/dist/tools/create-spec-helpers.js +0 -24
- package/dist/tools/create-spec-tech/constitution.d.ts +0 -7
- package/dist/tools/create-spec-tech/constitution.js +0 -79
- package/dist/tools/create-spec-tech.d.ts +0 -2
- package/dist/tools/create-spec-tech.js +0 -3
- package/dist/tools/create-spec.d.ts +0 -25
- package/dist/tools/create-spec.js +0 -1698
- package/dist/tools/git/git-helpers.d.ts +0 -20
- package/dist/tools/git/git-helpers.js +0 -33
- package/dist/tools/init-project/agents-md-writer.d.ts +0 -18
- package/dist/tools/init-project/agents-md-writer.js +0 -123
- package/dist/tools/init-project/config-builder.d.ts +0 -14
- package/dist/tools/init-project/config-builder.js +0 -19
- package/dist/tools/init-project/conventions-writer.d.ts +0 -11
- package/dist/tools/init-project/conventions-writer.js +0 -61
- package/dist/tools/init-project/handler.d.ts +0 -4
- package/dist/tools/init-project/handler.js +0 -463
- package/dist/tools/init-project/helpers.d.ts +0 -31
- package/dist/tools/init-project/helpers.js +0 -223
- package/dist/tools/init-project/host-assets-writer.d.ts +0 -28
- package/dist/tools/init-project/host-assets-writer.js +0 -240
- package/dist/tools/init-project/legacy-guidance-scanner.d.ts +0 -9
- package/dist/tools/init-project/legacy-guidance-scanner.js +0 -218
- package/dist/tools/init-project/legacy-root-migration.d.ts +0 -16
- package/dist/tools/init-project/legacy-root-migration.js +0 -213
- package/dist/tools/init-project/lifecycle-helpers.d.ts +0 -12
- package/dist/tools/init-project/lifecycle-helpers.js +0 -37
- package/dist/tools/init-project/managed-guidance-refresher.d.ts +0 -9
- package/dist/tools/init-project/managed-guidance-refresher.js +0 -65
- package/dist/tools/init-project/migration-runner.d.ts +0 -43
- package/dist/tools/init-project/migration-runner.js +0 -227
- package/dist/tools/init-project/portable-index-reconciler.d.ts +0 -32
- package/dist/tools/init-project/portable-index-reconciler.js +0 -278
- package/dist/tools/init-project/result-builder.d.ts +0 -4
- package/dist/tools/init-project/result-builder.js +0 -272
- package/dist/tools/init-project/scaffold-verifier.d.ts +0 -6
- package/dist/tools/init-project/scaffold-verifier.js +0 -97
- package/dist/tools/init-project/scaffold-writer.d.ts +0 -49
- package/dist/tools/init-project/scaffold-writer.js +0 -50
- package/dist/tools/init-project.d.ts +0 -2
- package/dist/tools/init-project.js +0 -4
- package/dist/tools/jobs/handlers.d.ts +0 -11
- package/dist/tools/jobs/handlers.js +0 -152
- package/dist/tools/list-specs.d.ts +0 -3
- package/dist/tools/list-specs.js +0 -323
- package/dist/tools/output-formatter.d.ts +0 -34
- package/dist/tools/output-formatter.js +0 -171
- package/dist/tools/output-integrity-guard.d.ts +0 -3
- package/dist/tools/output-integrity-guard.js +0 -53
- package/dist/tools/package-handoff.d.ts +0 -4
- package/dist/tools/package-handoff.js +0 -215
- package/dist/tools/reconcile-spec-sanctity-hook.d.ts +0 -3
- package/dist/tools/reconcile-spec-sanctity-hook.js +0 -55
- package/dist/tools/reconcile-spec.d.ts +0 -4
- package/dist/tools/reconcile-spec.js +0 -572
- package/dist/tools/register-sdd-tools.d.ts +0 -4
- package/dist/tools/register-sdd-tools.js +0 -13
- package/dist/tools/resolve-project-id.d.ts +0 -58
- package/dist/tools/resolve-project-id.js +0 -103
- package/dist/tools/resolve-project-path.d.ts +0 -27
- package/dist/tools/resolve-project-path.js +0 -172
- package/dist/tools/response-helpers.d.ts +0 -70
- package/dist/tools/response-helpers.js +0 -139
- package/dist/tools/safe-handler.d.ts +0 -36
- package/dist/tools/safe-handler.js +0 -283
- package/dist/tools/sanitize-path.d.ts +0 -13
- package/dist/tools/sanitize-path.js +0 -60
- package/dist/tools/schemas/agents.d.ts +0 -21
- package/dist/tools/schemas/agents.js +0 -9
- package/dist/tools/schemas/analysis.d.ts +0 -28
- package/dist/tools/schemas/analysis.js +0 -22
- package/dist/tools/schemas/index.d.ts +0 -8
- package/dist/tools/schemas/index.js +0 -9
- package/dist/tools/schemas/infra.d.ts +0 -19
- package/dist/tools/schemas/infra.js +0 -18
- package/dist/tools/schemas/lifecycle.d.ts +0 -88
- package/dist/tools/schemas/lifecycle.js +0 -85
- package/dist/tools/schemas/output-schemas.d.ts +0 -115
- package/dist/tools/schemas/output-schemas.js +0 -136
- package/dist/tools/schemas/package-handoff-output-schema.d.ts +0 -41
- package/dist/tools/schemas/package-handoff-output-schema.js +0 -70
- package/dist/tools/schemas/spec-id.d.ts +0 -2
- package/dist/tools/schemas/spec-id.js +0 -2
- package/dist/tools/schemas/spec.d.ts +0 -51
- package/dist/tools/schemas/spec.js +0 -41
- package/dist/tools/schemas/validate-output-schema.d.ts +0 -276
- package/dist/tools/schemas/validate-output-schema.js +0 -225
- package/dist/tools/status-handler.d.ts +0 -3
- package/dist/tools/status-handler.js +0 -242
- package/dist/tools/tool-entry.d.ts +0 -52
- package/dist/tools/tool-entry.js +0 -46
- package/dist/tools/tool-registry/core-tools.d.ts +0 -4
- package/dist/tools/tool-registry/core-tools.js +0 -581
- package/dist/tools/tool-registry/inventory.d.ts +0 -2
- package/dist/tools/tool-registry/inventory.js +0 -2
- package/dist/tools/tool-registry-helpers.d.ts +0 -34
- package/dist/tools/tool-registry-helpers.js +0 -45
- package/dist/tools/update-status/approval-gates.d.ts +0 -13
- package/dist/tools/update-status/approval-gates.js +0 -108
- package/dist/tools/update-status/batch.d.ts +0 -7
- package/dist/tools/update-status/batch.js +0 -176
- package/dist/tools/update-status/dod-gates.d.ts +0 -117
- package/dist/tools/update-status/dod-gates.js +0 -847
- package/dist/tools/update-status/done-receipt-verifier.d.ts +0 -38
- package/dist/tools/update-status/done-receipt-verifier.js +0 -208
- package/dist/tools/update-status/evidence-gate.d.ts +0 -16
- package/dist/tools/update-status/evidence-gate.js +0 -361
- package/dist/tools/update-status/evidence-payload.d.ts +0 -180
- package/dist/tools/update-status/evidence-payload.js +0 -79
- package/dist/tools/update-status/file-sync.d.ts +0 -37
- package/dist/tools/update-status/file-sync.js +0 -223
- package/dist/tools/update-status/gate-harness.d.ts +0 -8
- package/dist/tools/update-status/gate-harness.js +0 -8
- package/dist/tools/update-status/index.d.ts +0 -25
- package/dist/tools/update-status/index.js +0 -1487
- package/dist/tools/update-status/response-builder.d.ts +0 -17
- package/dist/tools/update-status/response-builder.js +0 -297
- package/dist/tools/update-status/side-effects.d.ts +0 -16
- package/dist/tools/update-status/side-effects.js +0 -117
- package/dist/tools/update-status/transition-guard.d.ts +0 -85
- package/dist/tools/update-status/transition-guard.js +0 -752
- package/dist/tools/update-status-actions.d.ts +0 -6
- package/dist/tools/update-status-actions.js +0 -19
- package/dist/tools/update-status-convention-gate.d.ts +0 -9
- package/dist/tools/update-status-convention-gate.js +0 -330
- package/dist/tools/update-status.d.ts +0 -2
- package/dist/tools/update-status.js +0 -3
- package/dist/tools/validate-assurance.d.ts +0 -6
- package/dist/tools/validate-assurance.js +0 -55
- package/dist/tools/validate-graph-coverage.d.ts +0 -8
- package/dist/tools/validate-graph-coverage.js +0 -54
- package/dist/tools/validate-helpers.d.ts +0 -10
- package/dist/tools/validate-helpers.js +0 -65
- package/dist/tools/validate-lint.d.ts +0 -9
- package/dist/tools/validate-lint.js +0 -170
- package/dist/tools/validate-minimality.d.ts +0 -16
- package/dist/tools/validate-minimality.js +0 -22
- package/dist/tools/validate-structured-compat.d.ts +0 -19
- package/dist/tools/validate-structured-compat.js +0 -14
- package/dist/tools/validate.d.ts +0 -8
- package/dist/tools/validate.js +0 -1039
- package/dist/transports/transport-factory.d.ts +0 -5
- package/dist/transports/transport-factory.js +0 -182
- package/dist/types/abortable-process.d.ts +0 -29
- package/dist/types/abortable-process.js +0 -2
- package/dist/types/agent-team.d.ts +0 -17
- package/dist/types/agent-team.js +0 -3
- package/dist/types/ai-assurance.d.ts +0 -32
- package/dist/types/ai-assurance.js +0 -2
- package/dist/types/ai-native.d.ts +0 -16
- package/dist/types/ai-native.js +0 -3
- package/dist/types/analysis.d.ts +0 -238
- package/dist/types/analysis.js +0 -3
- package/dist/types/approval.d.ts +0 -66
- package/dist/types/approval.js +0 -6
- package/dist/types/architecture.d.ts +0 -101
- package/dist/types/architecture.js +0 -4
- package/dist/types/audit.d.ts +0 -38
- package/dist/types/audit.js +0 -4
- package/dist/types/build-freshness.d.ts +0 -11
- package/dist/types/build-freshness.js +0 -2
- package/dist/types/clarification-token.d.ts +0 -46
- package/dist/types/clarification-token.js +0 -2
- package/dist/types/clarification.d.ts +0 -23
- package/dist/types/clarification.js +0 -5
- package/dist/types/claude-code-runtime.d.ts +0 -91
- package/dist/types/claude-code-runtime.js +0 -5
- package/dist/types/claude-code-ux.d.ts +0 -62
- package/dist/types/claude-code-ux.js +0 -5
- package/dist/types/cli.d.ts +0 -40
- package/dist/types/cli.js +0 -3
- package/dist/types/codex.d.ts +0 -108
- package/dist/types/codex.js +0 -3
- package/dist/types/common/index.d.ts +0 -4
- package/dist/types/common/index.js +0 -6
- package/dist/types/common/learning.d.ts +0 -43
- package/dist/types/common/learning.js +0 -3
- package/dist/types/common/tech-enums.d.ts +0 -8
- package/dist/types/common/tech-enums.js +0 -2
- package/dist/types/complexity-budget.d.ts +0 -17
- package/dist/types/complexity-budget.js +0 -5
- package/dist/types/compliance-gate.d.ts +0 -5
- package/dist/types/compliance-gate.js +0 -3
- package/dist/types/context.d.ts +0 -52
- package/dist/types/context.js +0 -4
- package/dist/types/conventions.d.ts +0 -135
- package/dist/types/conventions.js +0 -5
- package/dist/types/core-bridge.d.ts +0 -130
- package/dist/types/core-bridge.js +0 -3
- package/dist/types/criterion-identity.d.ts +0 -12
- package/dist/types/criterion-identity.js +0 -2
- package/dist/types/cross-repo-search.d.ts +0 -81
- package/dist/types/cross-repo-search.js +0 -9
- package/dist/types/decisions.d.ts +0 -19
- package/dist/types/decisions.js +0 -4
- package/dist/types/durable-job.d.ts +0 -119
- package/dist/types/durable-job.js +0 -10
- package/dist/types/durable-validation.d.ts +0 -158
- package/dist/types/durable-validation.js +0 -166
- package/dist/types/edge-db.d.ts +0 -21
- package/dist/types/edge-db.js +0 -9
- package/dist/types/elicitation.d.ts +0 -115
- package/dist/types/elicitation.js +0 -13
- package/dist/types/env.d.ts +0 -94
- package/dist/types/env.js +0 -3
- package/dist/types/errors/structured-error.d.ts +0 -37
- package/dist/types/errors/structured-error.js +0 -3
- package/dist/types/estimation.d.ts +0 -29
- package/dist/types/estimation.js +0 -5
- package/dist/types/events.d.ts +0 -18
- package/dist/types/events.js +0 -4
- package/dist/types/evidence-autofill.d.ts +0 -40
- package/dist/types/evidence-autofill.js +0 -3
- package/dist/types/evidence-gates.d.ts +0 -103
- package/dist/types/evidence-gates.js +0 -2
- package/dist/types/evidence-index.d.ts +0 -26
- package/dist/types/evidence-index.js +0 -2
- package/dist/types/execution.d.ts +0 -103
- package/dist/types/execution.js +0 -2
- package/dist/types/frontmatter.d.ts +0 -5
- package/dist/types/frontmatter.js +0 -2
- package/dist/types/gemini.d.ts +0 -124
- package/dist/types/gemini.js +0 -3
- package/dist/types/handoff-artifacts.d.ts +0 -182
- package/dist/types/handoff-artifacts.js +0 -3
- package/dist/types/host-rules.d.ts +0 -10
- package/dist/types/host-rules.js +0 -3
- package/dist/types/host-tool-filter.d.ts +0 -31
- package/dist/types/host-tool-filter.js +0 -3
- package/dist/types/housekeeping.d.ts +0 -8
- package/dist/types/housekeeping.js +0 -22
- package/dist/types/index.d.ts +0 -81
- package/dist/types/index.js +0 -94
- package/dist/types/interactive-question.d.ts +0 -19
- package/dist/types/interactive-question.js +0 -3
- package/dist/types/keyword-matcher.d.ts +0 -38
- package/dist/types/keyword-matcher.js +0 -3
- package/dist/types/legacy-guidance.d.ts +0 -24
- package/dist/types/legacy-guidance.js +0 -3
- package/dist/types/legal.d.ts +0 -44
- package/dist/types/legal.js +0 -5
- package/dist/types/living-spec/annotations.d.ts +0 -36
- package/dist/types/living-spec/annotations.js +0 -23
- package/dist/types/living-spec.d.ts +0 -2
- package/dist/types/living-spec.js +0 -6
- package/dist/types/llm-security.d.ts +0 -19
- package/dist/types/llm-security.js +0 -4
- package/dist/types/local-first.d.ts +0 -25
- package/dist/types/local-first.js +0 -10
- package/dist/types/mcp.d.ts +0 -34
- package/dist/types/mcp.js +0 -4
- package/dist/types/migration/canonical-storage.d.ts +0 -38
- package/dist/types/migration/canonical-storage.js +0 -2
- package/dist/types/minimal-implementation-gate.d.ts +0 -98
- package/dist/types/minimal-implementation-gate.js +0 -2
- package/dist/types/model-routing.d.ts +0 -25
- package/dist/types/model-routing.js +0 -26
- package/dist/types/multi-agent.d.ts +0 -18
- package/dist/types/multi-agent.js +0 -18
- package/dist/types/nli-context.d.ts +0 -25
- package/dist/types/nli-context.js +0 -2
- package/dist/types/opencode.d.ts +0 -4
- package/dist/types/opencode.js +0 -3
- package/dist/types/paradigm.d.ts +0 -99
- package/dist/types/paradigm.js +0 -11
- package/dist/types/privacy.d.ts +0 -81
- package/dist/types/privacy.js +0 -25
- package/dist/types/project/agent.d.ts +0 -13
- package/dist/types/project/agent.js +0 -3
- package/dist/types/project/architecture-detection.d.ts +0 -24
- package/dist/types/project/architecture-detection.js +0 -2
- package/dist/types/project/config-metrics.d.ts +0 -10
- package/dist/types/project/config-metrics.js +0 -2
- package/dist/types/project/constitution.d.ts +0 -26
- package/dist/types/project/constitution.js +0 -3
- package/dist/types/project/core.d.ts +0 -137
- package/dist/types/project/core.js +0 -7
- package/dist/types/project/health-checker.d.ts +0 -13
- package/dist/types/project/health-checker.js +0 -3
- package/dist/types/project/inputs.d.ts +0 -39
- package/dist/types/project/inputs.js +0 -5
- package/dist/types/project/legacy-artifacts.d.ts +0 -7
- package/dist/types/project/legacy-artifacts.js +0 -2
- package/dist/types/project/library-groups.d.ts +0 -112
- package/dist/types/project/library-groups.js +0 -4
- package/dist/types/project/mfe-detection.d.ts +0 -19
- package/dist/types/project/mfe-detection.js +0 -3
- package/dist/types/project/planu-config.d.ts +0 -142
- package/dist/types/project/planu-config.js +0 -2
- package/dist/types/project/platform-exotic.d.ts +0 -108
- package/dist/types/project/platform-exotic.js +0 -3
- package/dist/types/project/platform-mobile.d.ts +0 -7
- package/dist/types/project/platform-mobile.js +0 -3
- package/dist/types/project/platform-specialty.d.ts +0 -17
- package/dist/types/project/platform-specialty.js +0 -3
- package/dist/types/project/scaffold-verification.d.ts +0 -15
- package/dist/types/project/scaffold-verification.js +0 -2
- package/dist/types/project-knowledge-graph.d.ts +0 -227
- package/dist/types/project-knowledge-graph.js +0 -2
- package/dist/types/project.d.ts +0 -11
- package/dist/types/project.js +0 -13
- package/dist/types/readiness.d.ts +0 -82
- package/dist/types/readiness.js +0 -7
- package/dist/types/reconcile.d.ts +0 -41
- package/dist/types/reconcile.js +0 -9
- package/dist/types/retention.d.ts +0 -12
- package/dist/types/retention.js +0 -3
- package/dist/types/reviewer-tokens.d.ts +0 -58
- package/dist/types/reviewer-tokens.js +0 -4
- package/dist/types/runtime-database.d.ts +0 -10
- package/dist/types/runtime-database.js +0 -2
- package/dist/types/runtime-policy.d.ts +0 -62
- package/dist/types/runtime-policy.js +0 -2
- package/dist/types/safe-schemas.d.ts +0 -12
- package/dist/types/safe-schemas.js +0 -27
- package/dist/types/safety.d.ts +0 -42
- package/dist/types/safety.js +0 -3
- package/dist/types/scan-project.d.ts +0 -20
- package/dist/types/scan-project.js +0 -4
- package/dist/types/schema-registry.d.ts +0 -12
- package/dist/types/schema-registry.js +0 -2
- package/dist/types/scope-boundaries.d.ts +0 -62
- package/dist/types/scope-boundaries.js +0 -3
- package/dist/types/scope.d.ts +0 -89
- package/dist/types/scope.js +0 -3
- package/dist/types/sdd-constitution.d.ts +0 -27
- package/dist/types/sdd-constitution.js +0 -2
- package/dist/types/sdd-core-v6.d.ts +0 -62
- package/dist/types/sdd-core-v6.js +0 -2
- package/dist/types/sdd-flow.d.ts +0 -3
- package/dist/types/sdd-flow.js +0 -3
- package/dist/types/sdd-model-routing.d.ts +0 -22
- package/dist/types/sdd-model-routing.js +0 -2
- package/dist/types/security.d.ts +0 -20
- package/dist/types/security.js +0 -4
- package/dist/types/skill-bootstrap.d.ts +0 -7
- package/dist/types/skill-bootstrap.js +0 -3
- package/dist/types/spec/clarification.d.ts +0 -86
- package/dist/types/spec/clarification.js +0 -2
- package/dist/types/spec/core.d.ts +0 -414
- package/dist/types/spec/core.js +0 -3
- package/dist/types/spec/health-score.d.ts +0 -25
- package/dist/types/spec/health-score.js +0 -2
- package/dist/types/spec/index-cache.d.ts +0 -25
- package/dist/types/spec/index-cache.js +0 -3
- package/dist/types/spec/index.d.ts +0 -7
- package/dist/types/spec/index.js +0 -9
- package/dist/types/spec/inputs.d.ts +0 -250
- package/dist/types/spec/inputs.js +0 -7
- package/dist/types/spec/versioning.d.ts +0 -39
- package/dist/types/spec/versioning.js +0 -3
- package/dist/types/spec-format.d.ts +0 -211
- package/dist/types/spec-format.js +0 -3
- package/dist/types/spec-generator.d.ts +0 -32
- package/dist/types/spec-generator.js +0 -2
- package/dist/types/spec-grounding.d.ts +0 -48
- package/dist/types/spec-grounding.js +0 -2
- package/dist/types/spec-language-translation.d.ts +0 -19
- package/dist/types/spec-language-translation.js +0 -5
- package/dist/types/spec-language.d.ts +0 -8
- package/dist/types/spec-language.js +0 -2
- package/dist/types/spec-lock-v2.d.ts +0 -66
- package/dist/types/spec-lock-v2.js +0 -4
- package/dist/types/spec-lock.d.ts +0 -14
- package/dist/types/spec-lock.js +0 -8
- package/dist/types/spec-quality.d.ts +0 -82
- package/dist/types/spec-quality.js +0 -6
- package/dist/types/stack/build-tool.d.ts +0 -13
- package/dist/types/stack/build-tool.js +0 -5
- package/dist/types/stack/hypermedia.d.ts +0 -4
- package/dist/types/stack/hypermedia.js +0 -3
- package/dist/types/stack/index.d.ts +0 -4
- package/dist/types/stack/index.js +0 -4
- package/dist/types/stack/recommend.d.ts +0 -38
- package/dist/types/stack/recommend.js +0 -3
- package/dist/types/status.d.ts +0 -27
- package/dist/types/status.js +0 -6
- package/dist/types/storage-catalog.d.ts +0 -21
- package/dist/types/storage-catalog.js +0 -2
- package/dist/types/supply-chain.d.ts +0 -49
- package/dist/types/supply-chain.js +0 -25
- package/dist/types/technology-registry.d.ts +0 -36
- package/dist/types/technology-registry.js +0 -2
- package/dist/types/technology-selection.d.ts +0 -78
- package/dist/types/technology-selection.js +0 -3
- package/dist/types/technology-symbols.generated.d.ts +0 -117
- package/dist/types/technology-symbols.generated.js +0 -2
- package/dist/types/testing.d.ts +0 -17
- package/dist/types/testing.js +0 -10
- package/dist/types/timing.d.ts +0 -18
- package/dist/types/timing.js +0 -3
- package/dist/types/transition-log.d.ts +0 -78
- package/dist/types/transition-log.js +0 -4
- package/dist/types/transport.d.ts +0 -6
- package/dist/types/transport.js +0 -4
- package/dist/types/universal-rules/index.d.ts +0 -69
- package/dist/types/universal-rules/index.js +0 -4
- package/dist/types/validate-worker.d.ts +0 -50
- package/dist/types/validate-worker.js +0 -2
- package/dist/types/validation-config.d.ts +0 -36
- package/dist/types/validation-config.js +0 -2
- package/dist/types/validation-evidence.d.ts +0 -177
- package/dist/types/validation-evidence.js +0 -2
- package/dist/types/validation-loop.d.ts +0 -26
- package/dist/types/validation-loop.js +0 -3
- package/dist/types/validation-receipt.d.ts +0 -126
- package/dist/types/validation-receipt.js +0 -2
- package/dist/types/validation.d.ts +0 -67
- package/dist/types/validation.js +0 -3
- package/dist/types/verifiable-criteria.d.ts +0 -31
- package/dist/types/verifiable-criteria.js +0 -10
- package/src/i18n/messages/en.json +0 -184
- package/src/i18n/messages/es.json +0 -184
- package/src/i18n/messages/pt.json +0 -184
|
@@ -1,566 +0,0 @@
|
|
|
1
|
-
// engine/readiness-checker.ts — Spec readiness evaluation for implementation gate (SPEC-039)
|
|
2
|
-
import { existsSync } from 'node:fs';
|
|
3
|
-
import { readFile } from 'node:fs/promises';
|
|
4
|
-
import { join } from 'node:path';
|
|
5
|
-
import { extractSectionBody, readSpecTechnicalSection, } from './spec-format/read-technical-section.js';
|
|
6
|
-
import { stripFrontmatter } from './frontmatter-parser.js';
|
|
7
|
-
import { loadReadinessConfig } from './readiness-config-loader.js';
|
|
8
|
-
import { runEarsGate } from './ears-gate.js';
|
|
9
|
-
import { findScenariosWithoutTests, parseFrontmatterScenarios, } from './validator/spec-compliance-runner.js';
|
|
10
|
-
import { normalizeExecutableEvidence } from './validator/executable-evidence.js';
|
|
11
|
-
import { evaluateImplementationContract } from './implementation-contract/index.js';
|
|
12
|
-
import { extractNormalizedAcceptanceCriteria } from './spec-format/acceptance-criteria.js';
|
|
13
|
-
import { isRetiredScaffoldText } from './spec-format/retired-scaffold.js';
|
|
14
|
-
import { detectCriteriaDrift } from './spec-format/criteria-drift.js';
|
|
15
|
-
import { detectCrossSpecPremiseContradictions } from './contradiction-detector.js';
|
|
16
|
-
import { parseCriterionGroundingRecords, parseTechnicalReferenceGroundingRecords, } from './spec-grounding/contract.js';
|
|
17
|
-
// ── SPEC-784: Technical section quality constants ─────────────────────────────
|
|
18
|
-
const TECHNICAL_MIN_CHARS = 500;
|
|
19
|
-
const ANTICIPATED_TEST_BREAKS_SECTION = 'Anticipated Test Breaks';
|
|
20
|
-
const GROUNDING_FRONTMATTER_RE = /^---\n([\s\S]*?)\n---/;
|
|
21
|
-
// Detects "See technical.md", "See spec.md", or "See `<file>` technical.md" patterns
|
|
22
|
-
const TECHNICAL_PLACEHOLDER_REGEX = /\bSee\s+(?:`?[^`\n]+`?\s+)?(?:technical|spec)\.md/i;
|
|
23
|
-
const BDD_CRITERION_RE = /\bGIVEN\b[\s\S]*\bWHEN\b[\s\S]*\bTHEN\b/i;
|
|
24
|
-
function isExecutableBddLine(line) {
|
|
25
|
-
return !isRetiredScaffoldText(line) && BDD_CRITERION_RE.test(line);
|
|
26
|
-
}
|
|
27
|
-
function groundingParseDiagnosticFindings(huRaw) {
|
|
28
|
-
const frontmatter = GROUNDING_FRONTMATTER_RE.exec(huRaw)?.[1] ?? '';
|
|
29
|
-
const criteriaDiagnostics = parseCriterionGroundingRecords(frontmatter).diagnostics;
|
|
30
|
-
const technicalDiagnostics = parseTechnicalReferenceGroundingRecords(frontmatter).diagnostics;
|
|
31
|
-
return [...criteriaDiagnostics, ...technicalDiagnostics].map((diagnostic) => `GROUNDING_PARSE_DROPPED: "${diagnostic.identifier}" has an invalid ${diagnostic.field} ` +
|
|
32
|
-
`("${diagnostic.value}") — allowed: ${diagnostic.allowed.join(', ') || 'n/a'}`);
|
|
33
|
-
}
|
|
34
|
-
function checkScenariosWithoutTests(huRaw, bddScenarioCount) {
|
|
35
|
-
if (bddScenarioCount === 0) {
|
|
36
|
-
return [];
|
|
37
|
-
}
|
|
38
|
-
return findScenariosWithoutTests(huRaw).map((title) => `scenarios_missing_tests: scenario "${title}" has no tests array — add tests entries as a block list (tests: with one "- path" line per test) or an inline array (tests: ["path"]) (SPEC-732)`);
|
|
39
|
-
}
|
|
40
|
-
const DRIFT_BODY_EXCERPT_LENGTH = 160;
|
|
41
|
-
function driftBodyExcerpt(bodyText) {
|
|
42
|
-
return bodyText.length <= DRIFT_BODY_EXCERPT_LENGTH
|
|
43
|
-
? bodyText
|
|
44
|
-
: `${bodyText.slice(0, DRIFT_BODY_EXCERPT_LENGTH)}...`;
|
|
45
|
-
}
|
|
46
|
-
function criteriaDriftBlockers(huRaw) {
|
|
47
|
-
const byScenario = new Map();
|
|
48
|
-
for (const finding of detectCriteriaDrift(huRaw)) {
|
|
49
|
-
byScenario.set(finding.index, [...(byScenario.get(finding.index) ?? []), finding]);
|
|
50
|
-
}
|
|
51
|
-
return [...byScenario.entries()].map(([index, findings]) => {
|
|
52
|
-
const steps = findings
|
|
53
|
-
.map((finding) => `${finding.keyword} "${finding.frontmatterText}"`)
|
|
54
|
-
.join(', ');
|
|
55
|
-
const body = driftBodyExcerpt(findings[0]?.bodyText ?? '');
|
|
56
|
-
return `criteria_drift: scenario ${String(index)} step(s) ${steps} not found in the body criterion "${body}"; edit one copy so each step text appears in the body criterion`;
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
function checkZeroBddCriteria(criteriaLines) {
|
|
60
|
-
if (criteriaLines.length === 0 || criteriaLines.some(isExecutableBddLine)) {
|
|
61
|
-
return [];
|
|
62
|
-
}
|
|
63
|
-
return [
|
|
64
|
-
'NO_BDD_CRITERIA: no acceptance criterion parses as GIVEN/WHEN/THEN — restate at least one criterion in executable form',
|
|
65
|
-
];
|
|
66
|
-
}
|
|
67
|
-
// ── Helpers ──────────────────────────────────────────────────────────────────
|
|
68
|
-
function scoreHuCompleteness(spec) {
|
|
69
|
-
const blockers = [];
|
|
70
|
-
const warnings = [];
|
|
71
|
-
let points = 0;
|
|
72
|
-
// title is required but may be empty
|
|
73
|
-
if (spec.title.trim().length > 0) {
|
|
74
|
-
points += 5;
|
|
75
|
-
}
|
|
76
|
-
else {
|
|
77
|
-
blockers.push('Spec is missing a title');
|
|
78
|
-
}
|
|
79
|
-
// scope, target, type are non-optional on Spec — always award points
|
|
80
|
-
points += 5; // scope
|
|
81
|
-
points += 5; // target
|
|
82
|
-
points += 5; // type
|
|
83
|
-
// Only add a metadata warning if something major is obviously default/empty
|
|
84
|
-
if (spec.scope === 'feature' && spec.target === 'backend' && spec.type === 'feature') {
|
|
85
|
-
warnings.push('Spec metadata uses all default values — verify scope, target and type are intentional');
|
|
86
|
-
}
|
|
87
|
-
return { points, blockers, warnings };
|
|
88
|
-
}
|
|
89
|
-
function projectPathFromSpecPath(specPath) {
|
|
90
|
-
const marker = /[/\\]planu[/\\]specs[/\\]/;
|
|
91
|
-
if (!specPath || !marker.test(specPath)) {
|
|
92
|
-
return undefined;
|
|
93
|
-
}
|
|
94
|
-
return specPath.split(marker)[0];
|
|
95
|
-
}
|
|
96
|
-
async function readHuRaw(spec) {
|
|
97
|
-
if (!spec.specPath) {
|
|
98
|
-
return '';
|
|
99
|
-
}
|
|
100
|
-
try {
|
|
101
|
-
return await readFile(spec.specPath, 'utf-8');
|
|
102
|
-
}
|
|
103
|
-
catch {
|
|
104
|
-
return '';
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
/**
|
|
108
|
-
* Count BDD scenarios stored in the YAML frontmatter of a spec.md file.
|
|
109
|
-
* Scenarios use a multi-line YAML structure that the simple KV frontmatter
|
|
110
|
-
* parser cannot handle, so we scan the raw frontmatter block directly.
|
|
111
|
-
*
|
|
112
|
-
* Each scenario emitted by renderBddScenariosYaml starts with " - title:"
|
|
113
|
-
* so counting those lines gives the exact scenario count.
|
|
114
|
-
*/
|
|
115
|
-
function countFrontmatterScenarios(raw) {
|
|
116
|
-
const FRONTMATTER_BLOCK_RE = /^---\n([\s\S]*?)\n---\n/;
|
|
117
|
-
const match = FRONTMATTER_BLOCK_RE.exec(raw);
|
|
118
|
-
if (!match?.[1]) {
|
|
119
|
-
return 0;
|
|
120
|
-
}
|
|
121
|
-
const block = match[1];
|
|
122
|
-
// Each scenario entry starts with " - title:" (2-space indent)
|
|
123
|
-
return (block.match(/^\s+-\s+title:/gm) ?? []).length;
|
|
124
|
-
}
|
|
125
|
-
function frontmatterScenarioScavengeWarning(bddScenarioCount, normalizedCriteria) {
|
|
126
|
-
const bodyCriteriaCount = normalizedCriteria.filter((criterion) => criterion.source === 'body').length;
|
|
127
|
-
if (bddScenarioCount === 0 || bddScenarioCount >= bodyCriteriaCount) {
|
|
128
|
-
return null;
|
|
129
|
-
}
|
|
130
|
-
return (`frontmatter_scenarios_below_body_criteria: frontmatter declares ${String(bddScenarioCount)} ` +
|
|
131
|
-
`scenarios but body renders ${String(bodyCriteriaCount)} acceptance criteria — scenarios may ` +
|
|
132
|
-
`have been scavenged from prose`);
|
|
133
|
-
}
|
|
134
|
-
async function readFichaContent(spec) {
|
|
135
|
-
return readSpecTechnicalSection(spec);
|
|
136
|
-
}
|
|
137
|
-
/**
|
|
138
|
-
* Extract acceptance-criterion lines from the spec body.
|
|
139
|
-
* Accepts four valid shapes (any can appear anywhere in the body):
|
|
140
|
-
* 1. Checkbox form: `- [ ] criterion text` / `- [x] criterion text`
|
|
141
|
-
* 2. GIVEN/WHEN/THEN bullet: `- GIVEN ... WHEN ... THEN ...` (case-insensitive)
|
|
142
|
-
* 3. Plain bullets inside a `## Acceptance Criteria` (or synonyms) section.
|
|
143
|
-
* 4. Full multi-line body of `## Acceptance criteria` — includes BDD paragraphs
|
|
144
|
-
* with FILES:/FUNCTIONS:/TEST: markers that live between bullet lines.
|
|
145
|
-
*
|
|
146
|
-
* Historical parser (v1.82 and earlier) matched only form #1, producing false
|
|
147
|
-
* negatives on specs authored with plain GIVEN/WHEN/THEN lists — those specs
|
|
148
|
-
* reported `criteria: 0` at score 70 even when fully specified. Tracked in
|
|
149
|
-
* memory/feedback_check_readiness_false_negative.md.
|
|
150
|
-
*
|
|
151
|
-
* SPEC-777 fix: form #4 ensures that FILES:/FUNCTIONS: markers embedded in BDD
|
|
152
|
-
* paragraphs inside the AC section are visible to checkSpecificityGate.
|
|
153
|
-
*/
|
|
154
|
-
export function extractCriteriaLines(huContent) {
|
|
155
|
-
const lines = huContent.split('\n');
|
|
156
|
-
const criteria = [];
|
|
157
|
-
let inCriteriaSection = false;
|
|
158
|
-
let criteriaHeadingLevel = 0;
|
|
159
|
-
for (const raw of lines) {
|
|
160
|
-
const line = raw.trim();
|
|
161
|
-
// Detect entering / leaving an Acceptance Criteria section. A heading
|
|
162
|
-
// deeper than the criteria heading (e.g. `### Scenario` nested under
|
|
163
|
-
// `## Acceptance Criteria`) stays inside the section — only a heading
|
|
164
|
-
// at the same or shallower level closes it.
|
|
165
|
-
const headingMatch = /^(#{1,6})\s+/.exec(line);
|
|
166
|
-
if (headingMatch?.[1] !== undefined) {
|
|
167
|
-
const level = headingMatch[1].length;
|
|
168
|
-
const isCriteriaHeading = /^#{1,6}\s+(acceptance\s+criteria|criteria|criterios\s+de\s+aceptaci[oó]n|criterios)\b/i.test(line);
|
|
169
|
-
if (isCriteriaHeading) {
|
|
170
|
-
inCriteriaSection = true;
|
|
171
|
-
criteriaHeadingLevel = level;
|
|
172
|
-
}
|
|
173
|
-
else if (level <= criteriaHeadingLevel) {
|
|
174
|
-
inCriteriaSection = false;
|
|
175
|
-
}
|
|
176
|
-
continue;
|
|
177
|
-
}
|
|
178
|
-
// Form 1 — checkbox (always counts, regardless of section)
|
|
179
|
-
if (/^- \[[ x]\]/i.test(line)) {
|
|
180
|
-
criteria.push(line);
|
|
181
|
-
continue;
|
|
182
|
-
}
|
|
183
|
-
// Form 2 — GIVEN/WHEN/THEN bullet (always counts, case-insensitive)
|
|
184
|
-
if (/^- .*\bgiven\b.*\bwhen\b.*\bthen\b/i.test(line)) {
|
|
185
|
-
criteria.push(line);
|
|
186
|
-
continue;
|
|
187
|
-
}
|
|
188
|
-
// Forms 3+4 — inside an Acceptance Criteria section: capture ALL non-empty
|
|
189
|
-
// lines (bullets, BDD paragraphs, FILES:/FUNCTIONS:/TEST: annotations, etc.)
|
|
190
|
-
if (inCriteriaSection && line.length > 0) {
|
|
191
|
-
criteria.push(line);
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
return criteria;
|
|
195
|
-
}
|
|
196
|
-
function frontmatterScenarioCriteria(raw) {
|
|
197
|
-
return parseFrontmatterScenarios(raw).map((scenario) => {
|
|
198
|
-
const tests = scenario.tests
|
|
199
|
-
?.map((test) => `${test.path}${test.line !== undefined ? ` line ${String(test.line)}` : ''}`)
|
|
200
|
-
.join(' ') ?? '';
|
|
201
|
-
return [scenario.title, tests].filter((part) => part.trim().length > 0).join(' ');
|
|
202
|
-
});
|
|
203
|
-
}
|
|
204
|
-
function isExemptedByFollowingNoun(lower, matchEnd, exemptNouns) {
|
|
205
|
-
const remainder = lower.slice(matchEnd).replace(/^\s+/, '');
|
|
206
|
-
return exemptNouns.some((noun) => {
|
|
207
|
-
const lowerNoun = noun.toLowerCase();
|
|
208
|
-
if (!remainder.startsWith(lowerNoun)) {
|
|
209
|
-
return false;
|
|
210
|
-
}
|
|
211
|
-
const after = remainder.charAt(lowerNoun.length);
|
|
212
|
-
return after === '' || /[^a-z0-9]/i.test(after);
|
|
213
|
-
});
|
|
214
|
-
}
|
|
215
|
-
function scoreCriteria(criteriaLines, vagueWords) {
|
|
216
|
-
const blockers = [];
|
|
217
|
-
const warnings = [];
|
|
218
|
-
const count = criteriaLines.length;
|
|
219
|
-
let points;
|
|
220
|
-
if (count >= 5) {
|
|
221
|
-
points = 30;
|
|
222
|
-
}
|
|
223
|
-
else if (count >= 3) {
|
|
224
|
-
points = 20;
|
|
225
|
-
}
|
|
226
|
-
else if (count >= 1) {
|
|
227
|
-
points = 10;
|
|
228
|
-
}
|
|
229
|
-
else {
|
|
230
|
-
blockers.push('No acceptance criteria found — add at least 3 testable criteria');
|
|
231
|
-
return { points: 0, blockers, warnings };
|
|
232
|
-
}
|
|
233
|
-
// Vague criteria detection
|
|
234
|
-
for (const line of criteriaLines) {
|
|
235
|
-
const lower = line.toLowerCase();
|
|
236
|
-
const vagueFound = [];
|
|
237
|
-
for (const item of vagueWords) {
|
|
238
|
-
const escapedWord = item.word.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
|
239
|
-
const pattern = new RegExp(`\\b${escapedWord}\\b`, 'g');
|
|
240
|
-
let match;
|
|
241
|
-
let flagged = false;
|
|
242
|
-
while ((match = pattern.exec(lower)) !== null) {
|
|
243
|
-
const matchEnd = match.index + match[0].length;
|
|
244
|
-
if (item.exemptFollowingNouns &&
|
|
245
|
-
isExemptedByFollowingNoun(lower, matchEnd, item.exemptFollowingNouns)) {
|
|
246
|
-
continue;
|
|
247
|
-
}
|
|
248
|
-
flagged = true;
|
|
249
|
-
break;
|
|
250
|
-
}
|
|
251
|
-
if (flagged) {
|
|
252
|
-
vagueFound.push(item.word);
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
if (vagueFound.length > 0) {
|
|
256
|
-
warnings.push(`Vague criterion detected (words: ${vagueFound.join(', ')}): "${line.slice(0, 80)}"`);
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
return { points, blockers, warnings };
|
|
260
|
-
}
|
|
261
|
-
function scoreFilesIdentified(spec, fichaContent) {
|
|
262
|
-
const blockers = [];
|
|
263
|
-
const warnings = [];
|
|
264
|
-
const hasFicha = fichaContent.trim().length > 0;
|
|
265
|
-
const hasTagsWithFiles = spec.tags.some((tag) => tag.includes('src/') || tag.includes('.ts') || tag.includes('.js'));
|
|
266
|
-
let points;
|
|
267
|
-
if (hasFicha) {
|
|
268
|
-
points = 20;
|
|
269
|
-
}
|
|
270
|
-
else if (hasTagsWithFiles) {
|
|
271
|
-
points = 10;
|
|
272
|
-
}
|
|
273
|
-
else {
|
|
274
|
-
points = 0;
|
|
275
|
-
warnings.push('No inline ## Technical section found in spec.md — files to create/modify are not identified.');
|
|
276
|
-
}
|
|
277
|
-
return { points, blockers, warnings };
|
|
278
|
-
}
|
|
279
|
-
function scoreDependencies(spec) {
|
|
280
|
-
const blockers = [];
|
|
281
|
-
const warnings = [];
|
|
282
|
-
if (spec.dependencies.length === 0) {
|
|
283
|
-
return { points: 30, blockers, warnings };
|
|
284
|
-
}
|
|
285
|
-
warnings.push(`Spec has ${spec.dependencies.length} dependencies (${spec.dependencies.join(', ')}). Verify they are implemented before starting.`);
|
|
286
|
-
return { points: 20, blockers, warnings };
|
|
287
|
-
}
|
|
288
|
-
function buildRecommendations(score, huPoints, criteriaPoints, filesPoints, depsPoints) {
|
|
289
|
-
const recs = [];
|
|
290
|
-
if (score >= 70) {
|
|
291
|
-
return recs;
|
|
292
|
-
}
|
|
293
|
-
if (huPoints < 20) {
|
|
294
|
-
recs.push('Complete the spec metadata: title, scope, target, type');
|
|
295
|
-
}
|
|
296
|
-
if (criteriaPoints < 30) {
|
|
297
|
-
recs.push('Add more acceptance criteria (aim for 5+ testable criteria)');
|
|
298
|
-
}
|
|
299
|
-
if (filesPoints < 20) {
|
|
300
|
-
recs.push('Add an inline ## Technical section to spec.md with key files');
|
|
301
|
-
}
|
|
302
|
-
if (depsPoints < 30) {
|
|
303
|
-
recs.push('Verify all spec dependencies are in "done" status');
|
|
304
|
-
}
|
|
305
|
-
if (criteriaPoints > 0 && criteriaPoints < 30) {
|
|
306
|
-
recs.push('Review criteria for vague language — each criterion should be independently testable');
|
|
307
|
-
}
|
|
308
|
-
return recs;
|
|
309
|
-
}
|
|
310
|
-
// ── SPEC-784: Technical section quality helpers ───────────────────────────────
|
|
311
|
-
/**
|
|
312
|
-
* Extract the content of the `## Technical` section from a spec body.
|
|
313
|
-
* Returns an empty string when the section is absent.
|
|
314
|
-
*/
|
|
315
|
-
export function extractTechnicalSection(body) {
|
|
316
|
-
const sectionRe = /^(#{1,6})\s+technical\b[^\n]*/im;
|
|
317
|
-
const match = sectionRe.exec(body);
|
|
318
|
-
const headingHashes = match?.[1];
|
|
319
|
-
if (!match || !headingHashes) {
|
|
320
|
-
return '';
|
|
321
|
-
}
|
|
322
|
-
const afterHeader = body.slice(match.index + match[0].length);
|
|
323
|
-
const sameOrHigherHeadingRe = new RegExp(`^#{1,${String(headingHashes.length)}}\\s+`, 'm');
|
|
324
|
-
const nextMatch = sameOrHigherHeadingRe.exec(afterHeader);
|
|
325
|
-
return nextMatch ? afterHeader.slice(0, nextMatch.index) : afterHeader;
|
|
326
|
-
}
|
|
327
|
-
/**
|
|
328
|
-
* SPEC-784: Returns true when the ## Technical body contains a pointer
|
|
329
|
-
* like "See technical.md" or "See `some-file` spec.md" — a placeholder
|
|
330
|
-
* that defers content to another file without providing it inline.
|
|
331
|
-
*/
|
|
332
|
-
export function detectTechnicalPlaceholder(body) {
|
|
333
|
-
const section = extractTechnicalSection(body);
|
|
334
|
-
if (section.trim().length === 0) {
|
|
335
|
-
return false;
|
|
336
|
-
}
|
|
337
|
-
return TECHNICAL_PLACEHOLDER_REGEX.test(section);
|
|
338
|
-
}
|
|
339
|
-
/**
|
|
340
|
-
* SPEC-784: Returns true when the ## Technical body is too shallow:
|
|
341
|
-
* fewer than TECHNICAL_MIN_CHARS characters AND contains zero file
|
|
342
|
-
* safe repository-relative file paths.
|
|
343
|
-
*/
|
|
344
|
-
export function detectTechnicalTooShallow(body) {
|
|
345
|
-
const section = extractTechnicalSection(body);
|
|
346
|
-
if (section.trim().length === 0) {
|
|
347
|
-
// No section at all — not "shallow", handled by other gates
|
|
348
|
-
return false;
|
|
349
|
-
}
|
|
350
|
-
if (section.length >= TECHNICAL_MIN_CHARS) {
|
|
351
|
-
return false;
|
|
352
|
-
}
|
|
353
|
-
return extractFilePaths(section).size === 0;
|
|
354
|
-
}
|
|
355
|
-
// ── SPEC-629 / SPEC-777: Specificity gate helpers ────────────────────────────
|
|
356
|
-
/**
|
|
357
|
-
* Extract distinct file paths from arbitrary text.
|
|
358
|
-
* Recognises paths in multiple formats:
|
|
359
|
-
* - bare: src/engine/foo.ts
|
|
360
|
-
* - backtick: `src/engine/foo.ts`
|
|
361
|
-
* - after FILES:: FILES: `a.ts`, `b.ts`
|
|
362
|
-
* - comma-sep: src/a.ts, src/b.ts
|
|
363
|
-
* - in BDD paras: GIVEN ... FILES: `src/...`
|
|
364
|
-
*/
|
|
365
|
-
export function extractFilePaths(text) {
|
|
366
|
-
const found = new Set();
|
|
367
|
-
const RE = /(?<![a-zA-Z0-9_./\\-])([a-zA-Z0-9_.-]+(?:\/[a-zA-Z0-9_.-]+)*\.[a-zA-Z][a-zA-Z0-9]*)(?=[`"'\s,):;.!?]|$)/g;
|
|
368
|
-
let m;
|
|
369
|
-
while ((m = RE.exec(text)) !== null) {
|
|
370
|
-
const p = m[1];
|
|
371
|
-
if (p !== undefined && isSafeRepositoryFilePath(p)) {
|
|
372
|
-
found.add(p);
|
|
373
|
-
}
|
|
374
|
-
}
|
|
375
|
-
return found;
|
|
376
|
-
}
|
|
377
|
-
function isSafeRepositoryFilePath(path) {
|
|
378
|
-
const segments = path.split('/');
|
|
379
|
-
const filename = segments.at(-1) ?? '';
|
|
380
|
-
const extensionIndex = filename.lastIndexOf('.');
|
|
381
|
-
return (path.length > 0 &&
|
|
382
|
-
!path.startsWith('/') &&
|
|
383
|
-
!/^[a-zA-Z]:/u.test(path) &&
|
|
384
|
-
segments.every((segment) => segment.length > 0 && segment !== '.' && segment !== '..') &&
|
|
385
|
-
extensionIndex > 0 &&
|
|
386
|
-
extensionIndex < filename.length - 1);
|
|
387
|
-
}
|
|
388
|
-
/**
|
|
389
|
-
* Extract function/method names from text.
|
|
390
|
-
* Recognises:
|
|
391
|
-
* - After FUNCTIONS:: FUNCTIONS: `detectStuckSpecs(...)`, `buildMergedBranchSet(...)`
|
|
392
|
-
* - Code spans: `fnName(...)` or `fnName()`
|
|
393
|
-
* - Inline: createFoo() detectBar(arg)
|
|
394
|
-
*/
|
|
395
|
-
export function extractFunctionNames(text) {
|
|
396
|
-
const found = new Set();
|
|
397
|
-
// camelCase identifiers followed by ( in code spans or inline
|
|
398
|
-
const RE = /`?([a-z][a-zA-Z0-9]+)\s*\([^)]*\)`?/g;
|
|
399
|
-
let m;
|
|
400
|
-
while ((m = RE.exec(text)) !== null) {
|
|
401
|
-
if (m[1] !== undefined) {
|
|
402
|
-
found.add(m[1]);
|
|
403
|
-
}
|
|
404
|
-
}
|
|
405
|
-
return found;
|
|
406
|
-
}
|
|
407
|
-
// ── SPEC-629: Specificity gate (difficulty >= 3) ────────────────────────────
|
|
408
|
-
/**
|
|
409
|
-
* For specs with difficulty >= 3, enforces that criteria contain:
|
|
410
|
-
* - 3+ concrete repository-relative file paths
|
|
411
|
-
* - 1+ criterion with exact function/type name
|
|
412
|
-
* - 1+ anticipated test break (file + line number)
|
|
413
|
-
* Returns blocker strings; empty array = gate passed.
|
|
414
|
-
*/
|
|
415
|
-
function checkSpecificityGate(spec, criteriaLines, fichaContent, anticipatedTestBreaksContent) {
|
|
416
|
-
if (spec.difficulty < 3) {
|
|
417
|
-
return [];
|
|
418
|
-
}
|
|
419
|
-
const allText = [...criteriaLines, fichaContent].join('\n');
|
|
420
|
-
const blockers = [];
|
|
421
|
-
const uniquePaths = extractFilePaths(allText);
|
|
422
|
-
if (uniquePaths.size < 3) {
|
|
423
|
-
blockers.push(`Difficulty ${String(spec.difficulty)} spec requires 3+ concrete repository-relative file paths in criteria — found ${String(uniquePaths.size)}. ` +
|
|
424
|
-
`Add exact paths like 'scripts/check-contract.mjs'.`);
|
|
425
|
-
}
|
|
426
|
-
// Detect function calls via enhanced extractor + legacy regex (SPEC-777)
|
|
427
|
-
const functionNames = extractFunctionNames(allText);
|
|
428
|
-
const hasFunctionName = functionNames.size > 0 || /\b[a-z][a-zA-Z0-9]+\(\)/.test(allText);
|
|
429
|
-
const hasTypeName = /\b[A-Z][a-zA-Z]{2,}\b/.test(allText);
|
|
430
|
-
if (!hasFunctionName && !hasTypeName) {
|
|
431
|
-
blockers.push(`Difficulty ${String(spec.difficulty)} spec requires at least 1 criterion with an exact function name (e.g. createFoo()) or type name (e.g. FooBar).`);
|
|
432
|
-
}
|
|
433
|
-
const anticipatedTestBreaksHasTestPathWithNumber = /\d/.test(anticipatedTestBreaksContent) &&
|
|
434
|
-
[...extractFilePaths(anticipatedTestBreaksContent)].some((path) => /\.test\.[a-z0-9]+$/i.test(path));
|
|
435
|
-
const hasTestBreak = /\btests?\/[a-zA-Z0-9/_.-]+\.test\.[a-z]+.*\bline\s+~?\d+/i.test(allText) ||
|
|
436
|
-
/\bchanges?\b.*\bfrom\b.*\bto\b/i.test(allText) ||
|
|
437
|
-
/\btests\/[a-zA-Z0-9/_.-]+\.test\.[a-z0-9]+(?![a-zA-Z0-9_.\\/-])[^\n]*\bline\s+~?\d+/i.test(anticipatedTestBreaksContent) ||
|
|
438
|
-
anticipatedTestBreaksHasTestPathWithNumber;
|
|
439
|
-
if (!hasTestBreak) {
|
|
440
|
-
blockers.push(`Difficulty ${String(spec.difficulty)} spec requires at least 1 anticipated test break ` +
|
|
441
|
-
`under a heading named exactly "${ANTICIPATED_TEST_BREAKS_SECTION}" (case-sensitive, e.g. "## ${ANTICIPATED_TEST_BREAKS_SECTION}") ` +
|
|
442
|
-
`(e.g. 'tests/api/foo.test.ts line 47: change count from 477 to 478').`);
|
|
443
|
-
}
|
|
444
|
-
return blockers;
|
|
445
|
-
}
|
|
446
|
-
// ── Public API ───────────────────────────────────────────────────────────────
|
|
447
|
-
export async function checkSpecReadiness(spec, mode, projectHash) {
|
|
448
|
-
const config = loadReadinessConfig(projectHash);
|
|
449
|
-
const vagueWords = config.vagueWords;
|
|
450
|
-
const huRaw = await readHuRaw(spec);
|
|
451
|
-
const huContent = stripFrontmatter(huRaw);
|
|
452
|
-
const anticipatedTestBreaksContent = extractSectionBody(huRaw, ANTICIPATED_TEST_BREAKS_SECTION);
|
|
453
|
-
const fichaContent = await readFichaContent(spec);
|
|
454
|
-
const normalizedCriteria = extractNormalizedAcceptanceCriteria(huRaw);
|
|
455
|
-
const canonicalCriteriaLines = normalizedCriteria.map((criterion) => criterion.text);
|
|
456
|
-
const usesFrontmatterAsCanonical = normalizedCriteria.length > 0 &&
|
|
457
|
-
normalizedCriteria.every((criterion) => criterion.source === 'frontmatter');
|
|
458
|
-
// When a spec uses BDD format, acceptance criteria are stored as `scenarios:` in
|
|
459
|
-
// the YAML frontmatter (multi-line YAML that the simple KV parser cannot handle).
|
|
460
|
-
// When those scenarios are canonical, keep their linked tests in the readiness
|
|
461
|
-
// evidence model so specificity gates still see exact test paths and line refs.
|
|
462
|
-
const scenarioCriteria = usesFrontmatterAsCanonical ? frontmatterScenarioCriteria(huRaw) : [];
|
|
463
|
-
const effectiveCriteriaLines = scenarioCriteria.length > 0 ? scenarioCriteria : canonicalCriteriaLines;
|
|
464
|
-
const specificityEvidenceLines = [...scenarioCriteria, ...extractCriteriaLines(huContent)];
|
|
465
|
-
const hu = scoreHuCompleteness(spec);
|
|
466
|
-
const criteria = scoreCriteria(effectiveCriteriaLines, vagueWords);
|
|
467
|
-
const files = scoreFilesIdentified(spec, fichaContent);
|
|
468
|
-
const deps = scoreDependencies(spec);
|
|
469
|
-
const totalScore = hu.points + criteria.points + files.points + deps.points;
|
|
470
|
-
// SPEC-631: EARS gate — hard-block for vague modal verbs ("should/may/could/might") in criteria
|
|
471
|
-
const earsBlockers = runEarsGate(effectiveCriteriaLines);
|
|
472
|
-
const allBlockers = [
|
|
473
|
-
...hu.blockers,
|
|
474
|
-
...criteria.blockers,
|
|
475
|
-
...files.blockers,
|
|
476
|
-
...deps.blockers,
|
|
477
|
-
...earsBlockers,
|
|
478
|
-
];
|
|
479
|
-
const allWarnings = [...hu.warnings, ...criteria.warnings, ...files.warnings, ...deps.warnings];
|
|
480
|
-
allBlockers.push(...checkZeroBddCriteria(effectiveCriteriaLines));
|
|
481
|
-
if (mode === 'strict' && spec.scope !== 'trivial' && spec.difficulty >= 3) {
|
|
482
|
-
for (const issue of evaluateImplementationContract(huContent, canonicalCriteriaLines)) {
|
|
483
|
-
allBlockers.push(`${issue.code}: ${issue.message}`);
|
|
484
|
-
}
|
|
485
|
-
}
|
|
486
|
-
// SPEC-732: Executable AC gate — block approved when any scenario lacks a `tests` array.
|
|
487
|
-
// Only enforce when the spec uses frontmatter scenarios (BDD format).
|
|
488
|
-
const bddScenarioCount = countFrontmatterScenarios(huRaw);
|
|
489
|
-
allBlockers.push(...checkScenariosWithoutTests(huRaw, bddScenarioCount));
|
|
490
|
-
allBlockers.push(...criteriaDriftBlockers(huRaw));
|
|
491
|
-
const scavengeWarning = frontmatterScenarioScavengeWarning(bddScenarioCount, normalizedCriteria);
|
|
492
|
-
if (scavengeWarning) {
|
|
493
|
-
allWarnings.push(scavengeWarning);
|
|
494
|
-
}
|
|
495
|
-
allWarnings.push(...groundingParseDiagnosticFindings(huRaw));
|
|
496
|
-
// SPEC-1214: BDD-criteria executable-evidence gate — when a spec has no frontmatter
|
|
497
|
-
// scenarios, its criteria must carry a TEST: marker mapping to an executable test file,
|
|
498
|
-
// or validation will later score 0 with "No executable scenarios declared".
|
|
499
|
-
if (bddScenarioCount === 0 && spec.scope !== 'trivial') {
|
|
500
|
-
const readinessProjectPath = projectPathFromSpecPath(spec.specPath);
|
|
501
|
-
const executableEvidence = normalizeExecutableEvidence(huRaw, parseFrontmatterScenarios(huRaw), (path) => (readinessProjectPath ? existsSync(join(readinessProjectPath, path)) : true));
|
|
502
|
-
for (const title of executableEvidence.unmappedCriteria) {
|
|
503
|
-
allBlockers.push(`criteria_missing_executable_test: criterion "${title}" has no TEST: marker mapping to an executable test file (SPEC-1214)`);
|
|
504
|
-
}
|
|
505
|
-
}
|
|
506
|
-
// SPEC-784: Technical section quality gates — blocker-severity issues
|
|
507
|
-
if (detectTechnicalPlaceholder(huContent)) {
|
|
508
|
-
allBlockers.push('TECHNICAL_PLACEHOLDER_DETECTED: ## Technical section contains a placeholder pointer ' +
|
|
509
|
-
'(e.g. "See technical.md") — inline the content instead of deferring to another file');
|
|
510
|
-
}
|
|
511
|
-
if (detectTechnicalTooShallow(huContent)) {
|
|
512
|
-
allBlockers.push('TECHNICAL_TOO_SHALLOW: ## Technical section is too short (< 500 chars) and has no ' +
|
|
513
|
-
'repository-relative file paths — add concrete file paths and implementation details');
|
|
514
|
-
}
|
|
515
|
-
// SPEC-629: Specificity gate caps score at 60 for difficulty >= 3 specs that lack
|
|
516
|
-
// concrete file paths, function names, or anticipated test breaks.
|
|
517
|
-
const specificityBlockers = checkSpecificityGate(spec, specificityEvidenceLines, fichaContent, anticipatedTestBreaksContent);
|
|
518
|
-
allBlockers.push(...specificityBlockers);
|
|
519
|
-
const scoreAfterSpecificityGate = specificityBlockers.length > 0 && spec.difficulty >= 3 ? Math.min(totalScore, 60) : totalScore;
|
|
520
|
-
// SPEC-1702: strict mode cross-checks premise claims about done/approved sibling
|
|
521
|
-
// specs against those siblings' own contracts and caps the score below 100.
|
|
522
|
-
const crossSpecPremiseFindings = mode === 'strict'
|
|
523
|
-
? await detectCrossSpecPremiseContradictions(spec.id, huRaw, projectPathFromSpecPath(spec.specPath))
|
|
524
|
-
: [];
|
|
525
|
-
for (const finding of crossSpecPremiseFindings) {
|
|
526
|
-
allBlockers.push(`cross-spec-premise: ${finding.targetSpecId} claims "${finding.targetSentence}" but ${finding.siblingSpecId} states "${finding.siblingSentence}" (shared file: ${finding.sharedFilePath})`);
|
|
527
|
-
}
|
|
528
|
-
const effectiveScore = crossSpecPremiseFindings.length > 0
|
|
529
|
-
? Math.min(scoreAfterSpecificityGate, 90)
|
|
530
|
-
: scoreAfterSpecificityGate;
|
|
531
|
-
const breakdown = {
|
|
532
|
-
hu: hu.points,
|
|
533
|
-
criteria: criteria.points,
|
|
534
|
-
files: files.points,
|
|
535
|
-
dependencies: deps.points,
|
|
536
|
-
};
|
|
537
|
-
const { thresholds } = config;
|
|
538
|
-
const blockerThreshold = mode === 'strict' ? thresholds.strictBlocker : thresholds.lenientBlocker;
|
|
539
|
-
const cautionThreshold = mode === 'strict' ? thresholds.strictCaution : thresholds.lenientCaution;
|
|
540
|
-
if (effectiveScore < blockerThreshold) {
|
|
541
|
-
allBlockers.push(`ReadinessScore ${String(effectiveScore)} is below ${String(blockerThreshold)} — spec is not ready for implementation`);
|
|
542
|
-
}
|
|
543
|
-
else if (effectiveScore < cautionThreshold) {
|
|
544
|
-
allWarnings.push(`ReadinessScore ${String(effectiveScore)} is below ${String(cautionThreshold)} — proceed with caution`);
|
|
545
|
-
}
|
|
546
|
-
const readinessScore = {
|
|
547
|
-
score: effectiveScore,
|
|
548
|
-
breakdown,
|
|
549
|
-
blockers: allBlockers,
|
|
550
|
-
warnings: allWarnings,
|
|
551
|
-
};
|
|
552
|
-
const isReady = effectiveScore >= cautionThreshold && allBlockers.length === 0;
|
|
553
|
-
const recommendations = buildRecommendations(effectiveScore, hu.points, criteria.points, files.points, deps.points);
|
|
554
|
-
if (specificityBlockers.length > 0) {
|
|
555
|
-
recommendations.push('Add exact repository-relative file paths, function names (e.g. createFoo()), and anticipated test breaks to unlock implementation for this difficulty spec.');
|
|
556
|
-
}
|
|
557
|
-
return {
|
|
558
|
-
specId: spec.id,
|
|
559
|
-
score: effectiveScore,
|
|
560
|
-
ready: isReady,
|
|
561
|
-
issues: readinessScore,
|
|
562
|
-
recommendations,
|
|
563
|
-
mode,
|
|
564
|
-
};
|
|
565
|
-
}
|
|
566
|
-
//# sourceMappingURL=readiness-checker.js.map
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import type { ReadinessConfig } from '../types/index.js';
|
|
3
|
-
declare const readinessConfigSchema: z.ZodObject<{
|
|
4
|
-
vagueWords: z.ZodArray<z.ZodObject<{
|
|
5
|
-
id: z.ZodString;
|
|
6
|
-
word: z.ZodString;
|
|
7
|
-
exemptFollowingNouns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
8
|
-
}, z.core.$strip>>;
|
|
9
|
-
thresholds: z.ZodObject<{
|
|
10
|
-
strictBlocker: z.ZodNumber;
|
|
11
|
-
strictCaution: z.ZodNumber;
|
|
12
|
-
lenientBlocker: z.ZodNumber;
|
|
13
|
-
lenientCaution: z.ZodNumber;
|
|
14
|
-
}, z.core.$strip>;
|
|
15
|
-
}, z.core.$strip>;
|
|
16
|
-
export type { ReadinessConfig };
|
|
17
|
-
export { readinessConfigSchema };
|
|
18
|
-
/**
|
|
19
|
-
* Load the merged readiness configuration for a given project.
|
|
20
|
-
* Falls back to system defaults when no overrides exist.
|
|
21
|
-
*/
|
|
22
|
-
export declare function loadReadinessConfig(projectHash?: string): ReadinessConfig;
|
|
23
|
-
//# sourceMappingURL=readiness-config-loader.d.ts.map
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
// engine/readiness-config-loader.ts — Config loader for readiness-checker (SPEC-208)
|
|
2
|
-
//
|
|
3
|
-
// Provides the 3-layer configurable readiness settings using ObjectConfigLoader.
|
|
4
|
-
// Layer 1: src/config/readiness-config.json — system defaults
|
|
5
|
-
// Layer 2: data/global/readiness-config-custom.json — global overrides
|
|
6
|
-
// Layer 3: data/projects/{hash}/config/readiness-config-overrides.json — project overrides
|
|
7
|
-
import { z } from 'zod';
|
|
8
|
-
import { ObjectConfigLoader } from './config-loader.js';
|
|
9
|
-
// ── Schema ────────────────────────────────────────────────────────────────────
|
|
10
|
-
const vagueWordItemSchema = z.object({
|
|
11
|
-
id: z.string().min(1).describe('Unique identifier for this vague word entry'),
|
|
12
|
-
word: z.string().min(1).describe('The vague word to detect in acceptance criteria'),
|
|
13
|
-
exemptFollowingNouns: z
|
|
14
|
-
.array(z.string().min(1))
|
|
15
|
-
.optional()
|
|
16
|
-
.describe('Nouns that, when immediately following the word, suppress the vague-word match'),
|
|
17
|
-
});
|
|
18
|
-
const readinessConfigSchema = z
|
|
19
|
-
.object({
|
|
20
|
-
vagueWords: z
|
|
21
|
-
.array(vagueWordItemSchema)
|
|
22
|
-
.describe('List of words considered vague in acceptance criteria'),
|
|
23
|
-
thresholds: z
|
|
24
|
-
.object({
|
|
25
|
-
strictBlocker: z
|
|
26
|
-
.number()
|
|
27
|
-
.int()
|
|
28
|
-
.min(0)
|
|
29
|
-
.max(100)
|
|
30
|
-
.describe('Score below this triggers a blocker in strict mode'),
|
|
31
|
-
strictCaution: z
|
|
32
|
-
.number()
|
|
33
|
-
.int()
|
|
34
|
-
.min(0)
|
|
35
|
-
.max(100)
|
|
36
|
-
.describe('Score below this triggers a caution warning in strict mode'),
|
|
37
|
-
lenientBlocker: z
|
|
38
|
-
.number()
|
|
39
|
-
.int()
|
|
40
|
-
.min(0)
|
|
41
|
-
.max(100)
|
|
42
|
-
.describe('Score below this triggers a blocker in lenient mode'),
|
|
43
|
-
lenientCaution: z
|
|
44
|
-
.number()
|
|
45
|
-
.int()
|
|
46
|
-
.min(0)
|
|
47
|
-
.max(100)
|
|
48
|
-
.describe('Score below this triggers a caution warning in lenient mode'),
|
|
49
|
-
})
|
|
50
|
-
.describe('Score thresholds for each readiness mode'),
|
|
51
|
-
})
|
|
52
|
-
.describe('Readiness checker configuration including vague words and thresholds');
|
|
53
|
-
export { readinessConfigSchema };
|
|
54
|
-
// ── Loader instance ───────────────────────────────────────────────────────────
|
|
55
|
-
const loader = new ObjectConfigLoader('readiness-config', readinessConfigSchema);
|
|
56
|
-
/**
|
|
57
|
-
* Load the merged readiness configuration for a given project.
|
|
58
|
-
* Falls back to system defaults when no overrides exist.
|
|
59
|
-
*/
|
|
60
|
-
export function loadReadinessConfig(projectHash) {
|
|
61
|
-
return loader.load(projectHash);
|
|
62
|
-
}
|
|
63
|
-
//# sourceMappingURL=readiness-config-loader.js.map
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { type ReconcileChange, type ApplyChangesResult } from '../../types/index.js';
|
|
2
|
-
export type { ApplyChangesResult } from '../../types/index.js';
|
|
3
|
-
export declare function applyChangesToSpec(specPath: string, changes: ReconcileChange[]): Promise<ApplyChangesResult>;
|
|
4
|
-
//# sourceMappingURL=apply-changes.d.ts.map
|