@planu/cli 6.0.2 → 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 +60 -48
- 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 -106
- package/dist/engine/reconcile/propagate-mirrors.d.ts +0 -3
- package/dist/engine/reconcile/propagate-mirrors.js +0 -311
- 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 -39
- package/dist/engine/safety/atomic-write-file.js +0 -195
- 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 -490
- 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/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 -825
- 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 -271
- 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 -502
- 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 -1038
- 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,265 +0,0 @@
|
|
|
1
|
-
// engine/onboarding/new-project-resolver.ts — SPEC-1021 safe new-project onboarding
|
|
2
|
-
import { mkdir } from 'node:fs/promises';
|
|
3
|
-
import path, { resolve } from 'node:path';
|
|
4
|
-
import { findDocsEntry, loadDocsRegistry } from '../web-fetcher/registry-loader.js';
|
|
5
|
-
const NONE_LABELS = new Set(['none', 'no framework', 'ninguno', 'sin framework', 'n/a']);
|
|
6
|
-
const UNSURE_LABELS = new Set(['not sure', 'unsure', 'no estoy seguro', 'not-sure']);
|
|
7
|
-
function answer(input, key) {
|
|
8
|
-
const value = input.clarificationAnswers?.[key] ?? input.clarificationAnswers?.[key.toLowerCase()];
|
|
9
|
-
return typeof value === 'string' && value.trim().length > 0 ? value.trim() : undefined;
|
|
10
|
-
}
|
|
11
|
-
function valueOrAnswer(explicit, input, key) {
|
|
12
|
-
if (typeof explicit === 'string' && explicit.trim().length > 0) {
|
|
13
|
-
return explicit.trim();
|
|
14
|
-
}
|
|
15
|
-
return answer(input, key);
|
|
16
|
-
}
|
|
17
|
-
function normalizeNullableTech(value) {
|
|
18
|
-
if (value === null) {
|
|
19
|
-
return null;
|
|
20
|
-
}
|
|
21
|
-
const trimmed = value?.trim();
|
|
22
|
-
if (!trimmed) {
|
|
23
|
-
return undefined;
|
|
24
|
-
}
|
|
25
|
-
const lower = trimmed.toLowerCase();
|
|
26
|
-
if (NONE_LABELS.has(lower)) {
|
|
27
|
-
return null;
|
|
28
|
-
}
|
|
29
|
-
if (UNSURE_LABELS.has(lower)) {
|
|
30
|
-
return undefined;
|
|
31
|
-
}
|
|
32
|
-
return trimmed;
|
|
33
|
-
}
|
|
34
|
-
export function slugifyAppName(input) {
|
|
35
|
-
return input
|
|
36
|
-
.trim()
|
|
37
|
-
.toLowerCase()
|
|
38
|
-
.replace(/[^a-z0-9._-]+/g, '-')
|
|
39
|
-
.replace(/[-.]{2,}/g, '-')
|
|
40
|
-
.replace(/^[-.]+|[-.]+$/g, '');
|
|
41
|
-
}
|
|
42
|
-
export function validateAppSlug(slug) {
|
|
43
|
-
if (!slug) {
|
|
44
|
-
return 'App folder is required.';
|
|
45
|
-
}
|
|
46
|
-
if (slug === '.' || slug === '..' || slug.includes('/') || slug.includes('\\')) {
|
|
47
|
-
return 'App folder must be a simple folder name, not a path.';
|
|
48
|
-
}
|
|
49
|
-
if (slug.includes('..')) {
|
|
50
|
-
return 'App folder cannot contain path traversal.';
|
|
51
|
-
}
|
|
52
|
-
return null;
|
|
53
|
-
}
|
|
54
|
-
function isWinPath(value) {
|
|
55
|
-
return /^[a-zA-Z]:[\\/]/.test(value) || value.startsWith('\\\\');
|
|
56
|
-
}
|
|
57
|
-
export function resolveNewProjectPath(parentWorkspacePath, appSlug) {
|
|
58
|
-
const slugError = validateAppSlug(appSlug);
|
|
59
|
-
if (slugError) {
|
|
60
|
-
throw new Error(slugError);
|
|
61
|
-
}
|
|
62
|
-
if (isWinPath(parentWorkspacePath)) {
|
|
63
|
-
return path.win32.normalize(path.win32.join(parentWorkspacePath, appSlug));
|
|
64
|
-
}
|
|
65
|
-
return resolve(parentWorkspacePath, appSlug);
|
|
66
|
-
}
|
|
67
|
-
function buildQuestion(header, question, recommended, alternate, fallback) {
|
|
68
|
-
return {
|
|
69
|
-
header,
|
|
70
|
-
question,
|
|
71
|
-
multiSelect: false,
|
|
72
|
-
options: [
|
|
73
|
-
{ label: `${recommended} (Recommended)`, description: `Use "${recommended}".` },
|
|
74
|
-
{ label: alternate, description: `Use "${alternate}".` },
|
|
75
|
-
{ label: fallback, description: `Use "${fallback}" or provide another value.` },
|
|
76
|
-
],
|
|
77
|
-
};
|
|
78
|
-
}
|
|
79
|
-
function buildRequiredQuestions(input, resolved) {
|
|
80
|
-
const suggestedSlug = slugifyAppName(input.appName ?? input.description).slice(0, 48) || 'new-app';
|
|
81
|
-
const specs = [
|
|
82
|
-
[
|
|
83
|
-
!resolved.parentWorkspacePath,
|
|
84
|
-
buildQuestion('Parent', 'Which parent workspace should contain the new app folder?', process.cwd(), input.projectPath ?? './', 'Custom path'),
|
|
85
|
-
],
|
|
86
|
-
[
|
|
87
|
-
!resolved.appSlug,
|
|
88
|
-
buildQuestion('App Folder', 'What should the new app folder be called?', suggestedSlug, 'api', 'Custom folder'),
|
|
89
|
-
],
|
|
90
|
-
[
|
|
91
|
-
!resolved.projectType,
|
|
92
|
-
buildQuestion('Project Type', 'What type of project are you creating?', 'api', 'web app', 'Custom type'),
|
|
93
|
-
],
|
|
94
|
-
[
|
|
95
|
-
!resolved.platform,
|
|
96
|
-
buildQuestion('Platform', 'Where will this project run?', 'server', 'web', 'Custom platform'),
|
|
97
|
-
],
|
|
98
|
-
[
|
|
99
|
-
!resolved.languageAnswered,
|
|
100
|
-
buildQuestion('Language', 'Which programming language should this project use?', 'Not sure', 'Use project/team default', 'Custom language'),
|
|
101
|
-
],
|
|
102
|
-
[
|
|
103
|
-
!resolved.frameworkAnswered,
|
|
104
|
-
buildQuestion('Framework', 'Which framework should this project use?', 'Not sure', 'No framework', 'Custom framework'),
|
|
105
|
-
],
|
|
106
|
-
];
|
|
107
|
-
return specs.filter(([missing]) => missing).map(([, question]) => question);
|
|
108
|
-
}
|
|
109
|
-
function buildCreateDirectoryQuestion() {
|
|
110
|
-
return {
|
|
111
|
-
header: 'Create Dir',
|
|
112
|
-
question: 'May Planu create the project folder if it does not exist?',
|
|
113
|
-
multiSelect: false,
|
|
114
|
-
options: [
|
|
115
|
-
{ label: 'yes (Recommended)', description: 'Create only the resolved app folder.' },
|
|
116
|
-
{ label: 'no', description: 'Do not create folders; I will create it myself.' },
|
|
117
|
-
{ label: 'already exists', description: 'The project folder already exists.' },
|
|
118
|
-
],
|
|
119
|
-
};
|
|
120
|
-
}
|
|
121
|
-
function buildNewProjectQuestions(input, resolved) {
|
|
122
|
-
const questions = buildRequiredQuestions(input, resolved);
|
|
123
|
-
if (!resolved.createDirectoryAnswered) {
|
|
124
|
-
questions.push(buildCreateDirectoryQuestion());
|
|
125
|
-
}
|
|
126
|
-
return questions;
|
|
127
|
-
}
|
|
128
|
-
async function verifyDocs(names) {
|
|
129
|
-
const registry = await loadDocsRegistry();
|
|
130
|
-
return names
|
|
131
|
-
.filter((name) => name.trim().length > 0)
|
|
132
|
-
.map((name) => {
|
|
133
|
-
const entry = findDocsEntry(name, registry);
|
|
134
|
-
if (entry) {
|
|
135
|
-
return { name, url: entry.base, status: 'verified' };
|
|
136
|
-
}
|
|
137
|
-
return {
|
|
138
|
-
name,
|
|
139
|
-
url: '',
|
|
140
|
-
status: 'unverified',
|
|
141
|
-
reason: 'No official docs registry entry found.',
|
|
142
|
-
};
|
|
143
|
-
});
|
|
144
|
-
}
|
|
145
|
-
function collectResolvedFields(input) {
|
|
146
|
-
const parentWorkspacePath = valueOrAnswer(input.parentWorkspacePath, input, 'Parent') ??
|
|
147
|
-
valueOrAnswer(input.projectPath, input, 'Parent');
|
|
148
|
-
const appName = valueOrAnswer(input.appName, input, 'App Folder');
|
|
149
|
-
const appSlug = valueOrAnswer(input.appSlug, input, 'App Folder') ??
|
|
150
|
-
(appName ? slugifyAppName(appName) : undefined);
|
|
151
|
-
const projectType = valueOrAnswer(input.projectType, input, 'Project Type');
|
|
152
|
-
const platform = valueOrAnswer(input.platform, input, 'Platform');
|
|
153
|
-
const rawLanguage = valueOrAnswer(input.language, input, 'Language');
|
|
154
|
-
const rawFramework = input.framework === null ? null : valueOrAnswer(input.framework, input, 'Framework');
|
|
155
|
-
const rawDatabase = input.database === null ? null : valueOrAnswer(input.database, input, 'Database');
|
|
156
|
-
const language = normalizeNullableTech(rawLanguage);
|
|
157
|
-
const framework = normalizeNullableTech(rawFramework);
|
|
158
|
-
const database = normalizeNullableTech(rawDatabase);
|
|
159
|
-
const createDirAnswer = answer(input, 'Create Dir')?.toLowerCase();
|
|
160
|
-
const languageAnswered = rawLanguage !== undefined;
|
|
161
|
-
const frameworkAnswered = rawFramework !== undefined;
|
|
162
|
-
const createDirectoryAnswered = input.createDirectory !== undefined || createDirAnswer !== undefined;
|
|
163
|
-
const createDirectory = input.createDirectory === true ||
|
|
164
|
-
createDirAnswer === 'yes' ||
|
|
165
|
-
createDirAnswer === 'yes (recommended)' ||
|
|
166
|
-
createDirAnswer === 'already exists';
|
|
167
|
-
const errors = appSlug ? [validateAppSlug(appSlug)].filter((e) => Boolean(e)) : [];
|
|
168
|
-
const resolvedProjectPath = parentWorkspacePath && appSlug && errors.length === 0
|
|
169
|
-
? resolveNewProjectPath(parentWorkspacePath, appSlug)
|
|
170
|
-
: undefined;
|
|
171
|
-
return {
|
|
172
|
-
parentWorkspacePath,
|
|
173
|
-
appName,
|
|
174
|
-
appSlug,
|
|
175
|
-
projectType,
|
|
176
|
-
platform,
|
|
177
|
-
language: language ?? undefined,
|
|
178
|
-
framework,
|
|
179
|
-
database,
|
|
180
|
-
languageAnswered,
|
|
181
|
-
frameworkAnswered,
|
|
182
|
-
createDirectoryAnswered,
|
|
183
|
-
createDirectory,
|
|
184
|
-
resolvedProjectPath,
|
|
185
|
-
errors,
|
|
186
|
-
};
|
|
187
|
-
}
|
|
188
|
-
function isReady(fields) {
|
|
189
|
-
return Boolean(fields.parentWorkspacePath &&
|
|
190
|
-
fields.appSlug &&
|
|
191
|
-
fields.projectType &&
|
|
192
|
-
fields.platform &&
|
|
193
|
-
fields.languageAnswered &&
|
|
194
|
-
fields.frameworkAnswered &&
|
|
195
|
-
fields.createDirectoryAnswered &&
|
|
196
|
-
fields.createDirectory &&
|
|
197
|
-
fields.resolvedProjectPath &&
|
|
198
|
-
fields.errors.length === 0);
|
|
199
|
-
}
|
|
200
|
-
async function buildTechnologyContract(input, fields) {
|
|
201
|
-
const resolvedProjectPath = fields.resolvedProjectPath;
|
|
202
|
-
if (!resolvedProjectPath) {
|
|
203
|
-
throw new Error('Resolved project path is required to build a technology contract.');
|
|
204
|
-
}
|
|
205
|
-
const docNames = [fields.language, fields.framework, fields.database].filter((name) => typeof name === 'string' && name.length > 0);
|
|
206
|
-
const officialDocs = await verifyDocs(docNames);
|
|
207
|
-
return {
|
|
208
|
-
mode: 'new_project',
|
|
209
|
-
projectPath: resolvedProjectPath,
|
|
210
|
-
parentWorkspacePath: fields.parentWorkspacePath,
|
|
211
|
-
appName: fields.appName,
|
|
212
|
-
appSlug: fields.appSlug,
|
|
213
|
-
projectType: fields.projectType,
|
|
214
|
-
platform: fields.platform,
|
|
215
|
-
language: fields.language,
|
|
216
|
-
framework: fields.framework ?? null,
|
|
217
|
-
database: fields.database ?? null,
|
|
218
|
-
source: 'user-confirmed',
|
|
219
|
-
evidence: [
|
|
220
|
-
`User requested a new project: ${input.description}`,
|
|
221
|
-
`Resolved project folder: ${resolvedProjectPath}`,
|
|
222
|
-
],
|
|
223
|
-
officialDocs,
|
|
224
|
-
verifiedAt: new Date().toISOString(),
|
|
225
|
-
};
|
|
226
|
-
}
|
|
227
|
-
export async function resolveNewProjectOnboarding(input) {
|
|
228
|
-
const fields = collectResolvedFields(input);
|
|
229
|
-
if (!isReady(fields)) {
|
|
230
|
-
return {
|
|
231
|
-
ready: false,
|
|
232
|
-
parentWorkspacePath: fields.parentWorkspacePath,
|
|
233
|
-
resolvedProjectPath: fields.resolvedProjectPath,
|
|
234
|
-
appSlug: fields.appSlug,
|
|
235
|
-
questions: buildNewProjectQuestions(input, {
|
|
236
|
-
parentWorkspacePath: fields.parentWorkspacePath,
|
|
237
|
-
appSlug: fields.appSlug,
|
|
238
|
-
projectType: fields.projectType,
|
|
239
|
-
platform: fields.platform,
|
|
240
|
-
language: fields.language,
|
|
241
|
-
framework: fields.framework,
|
|
242
|
-
languageAnswered: fields.languageAnswered,
|
|
243
|
-
frameworkAnswered: fields.frameworkAnswered,
|
|
244
|
-
createDirectoryAnswered: fields.createDirectoryAnswered,
|
|
245
|
-
}),
|
|
246
|
-
errors: fields.errors,
|
|
247
|
-
};
|
|
248
|
-
}
|
|
249
|
-
const resolvedProjectPath = fields.resolvedProjectPath;
|
|
250
|
-
if (!resolvedProjectPath) {
|
|
251
|
-
throw new Error('Resolved project path is required before directory creation.');
|
|
252
|
-
}
|
|
253
|
-
await mkdir(resolvedProjectPath, { recursive: true });
|
|
254
|
-
const contract = await buildTechnologyContract(input, fields);
|
|
255
|
-
return {
|
|
256
|
-
ready: true,
|
|
257
|
-
parentWorkspacePath: fields.parentWorkspacePath,
|
|
258
|
-
resolvedProjectPath: fields.resolvedProjectPath,
|
|
259
|
-
appSlug: fields.appSlug,
|
|
260
|
-
questions: [],
|
|
261
|
-
contract,
|
|
262
|
-
errors: fields.errors,
|
|
263
|
-
};
|
|
264
|
-
}
|
|
265
|
-
//# sourceMappingURL=new-project-resolver.js.map
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
// src/engine/opencode/config-scaffold.ts — SPEC-966: Generate OpenCode config files
|
|
2
|
-
import { mkdirSync, writeFileSync, existsSync } from 'fs';
|
|
3
|
-
import { join } from 'path';
|
|
4
|
-
import { assertEnglishOnlyArtifactText } from '../spec-language/english-only.js';
|
|
5
|
-
const PLANU_OPENCODE_RULES = `# Planu Rules for OpenCode
|
|
6
|
-
|
|
7
|
-
## SDD Workflow
|
|
8
|
-
|
|
9
|
-
- Always create a spec before implementing features
|
|
10
|
-
- Use \`planu_create_spec\` to generate structured acceptance criteria
|
|
11
|
-
- Run \`planu_validate\` before marking specs as done
|
|
12
|
-
|
|
13
|
-
## Plan Mode Integration
|
|
14
|
-
|
|
15
|
-
- When entering plan mode, call \`planu_facilitate\` to align on approach
|
|
16
|
-
- When exiting plan mode, run \`planu_check_readiness\` before building
|
|
17
|
-
- Auto-transition: plan → build when readiness score >= 70
|
|
18
|
-
|
|
19
|
-
## TypeScript Quality Gates
|
|
20
|
-
|
|
21
|
-
- Run the project typecheck before marking specs done
|
|
22
|
-
- Zero \`any\` types in new code (waivers allowed per file)
|
|
23
|
-
- Zero unjustified \`@ts-ignore\` comments
|
|
24
|
-
`;
|
|
25
|
-
const PLANU_OPENCODE_SKILLS = `# Planu Skill — SDD on OpenCode
|
|
26
|
-
|
|
27
|
-
## Trigger
|
|
28
|
-
|
|
29
|
-
User mentions "create spec", "plan feature", "design implementation", or "SDD".
|
|
30
|
-
|
|
31
|
-
## Steps
|
|
32
|
-
|
|
33
|
-
1. Run \`planu_facilitate\` to understand the request
|
|
34
|
-
2. If broad, break down into multiple specs
|
|
35
|
-
3. Create specs with \`planu_create_spec\`
|
|
36
|
-
4. Set status to \`review\` when ready
|
|
37
|
-
5. After approval, implement with spec as checklist
|
|
38
|
-
6. Validate with \`planu_validate\` before marking done
|
|
39
|
-
|
|
40
|
-
## Output
|
|
41
|
-
|
|
42
|
-
Always return spec IDs and next steps.
|
|
43
|
-
`;
|
|
44
|
-
const PLANU_AGENTS_MD_BLOCK = `## Planu SDD Integration
|
|
45
|
-
|
|
46
|
-
Planu provides spec-driven development tools for OpenCode workspaces.
|
|
47
|
-
|
|
48
|
-
### Key Tools
|
|
49
|
-
|
|
50
|
-
- \`planu_list_specs\` — Show all specs in the project
|
|
51
|
-
- \`planu_create_spec\` — Create a new spec from description
|
|
52
|
-
- \`planu_validate\` — Check implementation against spec
|
|
53
|
-
- \`planu_check_readiness\` — Verify the spec is implementation-ready
|
|
54
|
-
- \`planu_package_handoff\` — Persist the implementation contract
|
|
55
|
-
|
|
56
|
-
### Workflow
|
|
57
|
-
|
|
58
|
-
1. **Plan**: Use \`planu_facilitate\` to explore and plan
|
|
59
|
-
2. **Spec**: Create specs with clear acceptance criteria
|
|
60
|
-
3. **Build**: Implement against the spec checklist
|
|
61
|
-
4. **Validate**: Run \`planu_validate\` before marking done
|
|
62
|
-
5. **Close**: Update status after validation and independent review
|
|
63
|
-
|
|
64
|
-
### Coach Rules
|
|
65
|
-
|
|
66
|
-
- Use native interactive UI (not AskUserQuestion references)
|
|
67
|
-
- Respect OpenCode plan mode lifecycle
|
|
68
|
-
- Fallback to Planu-managed flow when plan mode unavailable
|
|
69
|
-
`;
|
|
70
|
-
export function scaffoldOpenCodeConfig(projectPath) {
|
|
71
|
-
const files = [];
|
|
72
|
-
// .opencode/rules/planu-workflow.md
|
|
73
|
-
const rulesDir = join(projectPath, '.opencode', 'rules');
|
|
74
|
-
mkdirSync(rulesDir, { recursive: true });
|
|
75
|
-
const rulesPath = join(rulesDir, 'planu-workflow.md');
|
|
76
|
-
assertEnglishOnlyArtifactText(PLANU_OPENCODE_RULES, 'rule');
|
|
77
|
-
writeFileSync(rulesPath, PLANU_OPENCODE_RULES, 'utf-8');
|
|
78
|
-
files.push(rulesPath);
|
|
79
|
-
// .opencode/skills/planu-sdd.md
|
|
80
|
-
const skillsDir = join(projectPath, '.opencode', 'skills');
|
|
81
|
-
mkdirSync(skillsDir, { recursive: true });
|
|
82
|
-
const skillsPath = join(skillsDir, 'planu-sdd.md');
|
|
83
|
-
assertEnglishOnlyArtifactText(PLANU_OPENCODE_SKILLS, 'skill');
|
|
84
|
-
writeFileSync(skillsPath, PLANU_OPENCODE_SKILLS, 'utf-8');
|
|
85
|
-
files.push(skillsPath);
|
|
86
|
-
// AGENTS.md append (or create)
|
|
87
|
-
const agentsMdPath = join(projectPath, 'AGENTS.md');
|
|
88
|
-
assertEnglishOnlyArtifactText(PLANU_AGENTS_MD_BLOCK, 'agent');
|
|
89
|
-
if (existsSync(agentsMdPath)) {
|
|
90
|
-
writeFileSync(agentsMdPath, '\n' + PLANU_AGENTS_MD_BLOCK + '\n', { flag: 'a' });
|
|
91
|
-
files.push(agentsMdPath + ' (appended)');
|
|
92
|
-
}
|
|
93
|
-
else {
|
|
94
|
-
writeFileSync(agentsMdPath, PLANU_AGENTS_MD_BLOCK, 'utf-8');
|
|
95
|
-
files.push(agentsMdPath);
|
|
96
|
-
}
|
|
97
|
-
return { files };
|
|
98
|
-
}
|
|
99
|
-
//# sourceMappingURL=config-scaffold.js.map
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { DetectedSignal, ParadigmReport } from '../types/index.js';
|
|
2
|
-
/**
|
|
3
|
-
* Detect programming paradigm signals in a project directory.
|
|
4
|
-
* Pure function — same input always produces same output, no side effects.
|
|
5
|
-
*/
|
|
6
|
-
export declare function detectSignals(projectPath: string): Promise<DetectedSignal[]>;
|
|
7
|
-
/**
|
|
8
|
-
* Run the full paradigm detection pipeline for a project.
|
|
9
|
-
* Returns a ParadigmReport including dominant paradigm, all scores, and coherence.
|
|
10
|
-
*/
|
|
11
|
-
export declare function detectParadigms(projectPath: string): Promise<ParadigmReport>;
|
|
12
|
-
//# sourceMappingURL=paradigm-detector.d.ts.map
|
|
@@ -1,236 +0,0 @@
|
|
|
1
|
-
// Planu — Paradigm detection engine (SPEC-035a)
|
|
2
|
-
// Analyses keywords, dependencies, and directory structure to detect programming paradigms.
|
|
3
|
-
import { glob } from 'glob';
|
|
4
|
-
import { readFile } from 'node:fs/promises';
|
|
5
|
-
import { basename } from 'node:path';
|
|
6
|
-
import { collectDependencies, IGNORE_DIRS } from './detection-utils.js';
|
|
7
|
-
import { getAllParadigms } from './paradigm-registry.js';
|
|
8
|
-
// Maximum source files to scan for keywords to avoid large-repo slowness.
|
|
9
|
-
const MAX_FILES_TO_SCAN = 10_000;
|
|
10
|
-
// Minimum confidence to include a paradigm in the report.
|
|
11
|
-
const MIN_CONFIDENCE = 0.05;
|
|
12
|
-
// Threshold below which a project is considered "hybrid/pragmatic".
|
|
13
|
-
const HYBRID_THRESHOLD = 0.4;
|
|
14
|
-
/**
|
|
15
|
-
* Detect programming paradigm signals in a project directory.
|
|
16
|
-
* Pure function — same input always produces same output, no side effects.
|
|
17
|
-
*/
|
|
18
|
-
export async function detectSignals(projectPath) {
|
|
19
|
-
const [paradigms, deps, dirs, codeKeywords] = await Promise.all([
|
|
20
|
-
getAllParadigms(),
|
|
21
|
-
collectProjectDependencies(projectPath),
|
|
22
|
-
collectDirectories(projectPath),
|
|
23
|
-
collectCodeKeywords(projectPath),
|
|
24
|
-
]);
|
|
25
|
-
const signals = [];
|
|
26
|
-
for (const entry of paradigms) {
|
|
27
|
-
signals.push(...buildDependencySignals(entry, deps));
|
|
28
|
-
signals.push(...buildDirectorySignals(entry, dirs));
|
|
29
|
-
signals.push(...buildKeywordSignals(entry, codeKeywords));
|
|
30
|
-
}
|
|
31
|
-
return signals;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Run the full paradigm detection pipeline for a project.
|
|
35
|
-
* Returns a ParadigmReport including dominant paradigm, all scores, and coherence.
|
|
36
|
-
*/
|
|
37
|
-
export async function detectParadigms(projectPath) {
|
|
38
|
-
const signals = await detectSignals(projectPath);
|
|
39
|
-
const paradigms = await getAllParadigms();
|
|
40
|
-
const scores = computeScores(signals, paradigms);
|
|
41
|
-
const sorted = scores.sort((a, b) => b.confidence - a.confidence);
|
|
42
|
-
const aboveThreshold = sorted.filter((s) => s.confidence >= MIN_CONFIDENCE);
|
|
43
|
-
const dominant = aboveThreshold[0] ?? null;
|
|
44
|
-
const mixPattern = classifyMix(aboveThreshold);
|
|
45
|
-
const coherenceScore = computeCoherence(aboveThreshold);
|
|
46
|
-
const summary = buildSummary(dominant, aboveThreshold, mixPattern);
|
|
47
|
-
return {
|
|
48
|
-
dominant,
|
|
49
|
-
all: aboveThreshold,
|
|
50
|
-
mixPattern,
|
|
51
|
-
coherenceScore,
|
|
52
|
-
summary,
|
|
53
|
-
detectedAt: new Date().toISOString(),
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
// --- Internal helpers ---
|
|
57
|
-
async function collectProjectDependencies(projectPath) {
|
|
58
|
-
try {
|
|
59
|
-
return await collectDependencies(projectPath);
|
|
60
|
-
}
|
|
61
|
-
catch {
|
|
62
|
-
return new Set();
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
async function collectDirectories(projectPath) {
|
|
66
|
-
try {
|
|
67
|
-
const entries = await glob('**/', {
|
|
68
|
-
cwd: projectPath,
|
|
69
|
-
ignore: IGNORE_DIRS,
|
|
70
|
-
maxDepth: 4,
|
|
71
|
-
});
|
|
72
|
-
return entries.map((e) => basename(e.replace(/\/$/, '')));
|
|
73
|
-
}
|
|
74
|
-
catch {
|
|
75
|
-
return [];
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
async function collectCodeKeywords(projectPath) {
|
|
79
|
-
const sourceExtensions = [
|
|
80
|
-
'**/*.ts',
|
|
81
|
-
'**/*.tsx',
|
|
82
|
-
'**/*.js',
|
|
83
|
-
'**/*.jsx',
|
|
84
|
-
'**/*.py',
|
|
85
|
-
'**/*.java',
|
|
86
|
-
'**/*.kt',
|
|
87
|
-
'**/*.cs',
|
|
88
|
-
'**/*.go',
|
|
89
|
-
'**/*.rs',
|
|
90
|
-
'**/*.swift',
|
|
91
|
-
'**/*.hs',
|
|
92
|
-
'**/*.elm',
|
|
93
|
-
'**/*.purs',
|
|
94
|
-
];
|
|
95
|
-
const allKeywords = [];
|
|
96
|
-
try {
|
|
97
|
-
const files = await glob(sourceExtensions, {
|
|
98
|
-
cwd: projectPath,
|
|
99
|
-
ignore: IGNORE_DIRS,
|
|
100
|
-
nodir: true,
|
|
101
|
-
maxDepth: 6,
|
|
102
|
-
});
|
|
103
|
-
const sample = files.slice(0, MAX_FILES_TO_SCAN);
|
|
104
|
-
await Promise.all(sample.map(async (relativePath) => {
|
|
105
|
-
try {
|
|
106
|
-
const content = await readFile(`${projectPath}/${relativePath}`, 'utf-8');
|
|
107
|
-
allKeywords.push(content);
|
|
108
|
-
}
|
|
109
|
-
catch {
|
|
110
|
-
// skip unreadable files
|
|
111
|
-
}
|
|
112
|
-
}));
|
|
113
|
-
}
|
|
114
|
-
catch {
|
|
115
|
-
// skip glob errors
|
|
116
|
-
}
|
|
117
|
-
return allKeywords.join('\n');
|
|
118
|
-
}
|
|
119
|
-
function buildDependencySignals(entry, deps) {
|
|
120
|
-
const signals = [];
|
|
121
|
-
for (const dep of entry.signals.dependencies ?? []) {
|
|
122
|
-
if (deps.has(dep) || [...deps].some((d) => d.includes(dep))) {
|
|
123
|
-
signals.push({
|
|
124
|
-
paradigmId: entry.id,
|
|
125
|
-
signalType: 'dependency',
|
|
126
|
-
value: dep,
|
|
127
|
-
weight: 0.6,
|
|
128
|
-
location: 'package manifest',
|
|
129
|
-
});
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
return signals;
|
|
133
|
-
}
|
|
134
|
-
function buildDirectorySignals(entry, dirs) {
|
|
135
|
-
const signals = [];
|
|
136
|
-
for (const dir of entry.signals.directories ?? []) {
|
|
137
|
-
const dirBase = basename(dir);
|
|
138
|
-
if (dirs.some((d) => d === dirBase)) {
|
|
139
|
-
signals.push({
|
|
140
|
-
paradigmId: entry.id,
|
|
141
|
-
signalType: 'structure',
|
|
142
|
-
value: dir,
|
|
143
|
-
weight: 0.2,
|
|
144
|
-
location: `directory: ${dir}`,
|
|
145
|
-
});
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
return signals;
|
|
149
|
-
}
|
|
150
|
-
function buildKeywordSignals(entry, code) {
|
|
151
|
-
if (!code) {
|
|
152
|
-
return [];
|
|
153
|
-
}
|
|
154
|
-
const signals = [];
|
|
155
|
-
for (const keyword of entry.signals.keywords ?? []) {
|
|
156
|
-
if (code.includes(keyword)) {
|
|
157
|
-
signals.push({
|
|
158
|
-
paradigmId: entry.id,
|
|
159
|
-
signalType: 'keyword',
|
|
160
|
-
value: keyword,
|
|
161
|
-
weight: 0.1,
|
|
162
|
-
location: 'source files',
|
|
163
|
-
});
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
return signals;
|
|
167
|
-
}
|
|
168
|
-
function computeScores(signals, paradigms) {
|
|
169
|
-
const byParadigm = new Map();
|
|
170
|
-
for (const signal of signals) {
|
|
171
|
-
const existing = byParadigm.get(signal.paradigmId) ?? [];
|
|
172
|
-
existing.push(signal);
|
|
173
|
-
byParadigm.set(signal.paradigmId, existing);
|
|
174
|
-
}
|
|
175
|
-
const scores = [];
|
|
176
|
-
for (const entry of paradigms) {
|
|
177
|
-
const entrySignals = byParadigm.get(entry.id) ?? [];
|
|
178
|
-
const raw = entrySignals.reduce((sum, s) => sum + s.weight, 0);
|
|
179
|
-
// Normalize: clamp to [0, 1] using a soft-cap formula
|
|
180
|
-
const confidence = Math.min(1, raw / 3);
|
|
181
|
-
scores.push({
|
|
182
|
-
paradigmId: entry.id,
|
|
183
|
-
name: entry.name,
|
|
184
|
-
confidence,
|
|
185
|
-
signals: entrySignals,
|
|
186
|
-
});
|
|
187
|
-
}
|
|
188
|
-
return scores;
|
|
189
|
-
}
|
|
190
|
-
function classifyMix(scores) {
|
|
191
|
-
const [top, second] = scores;
|
|
192
|
-
if (!top || !second) {
|
|
193
|
-
return 'none';
|
|
194
|
-
}
|
|
195
|
-
// Two paradigms are significant when both are above threshold
|
|
196
|
-
if (second.confidence >= HYBRID_THRESHOLD) {
|
|
197
|
-
// Coherent mix: compatible paradigms (e.g. component-based + functional)
|
|
198
|
-
return 'coherent';
|
|
199
|
-
}
|
|
200
|
-
if (scores.filter((s) => s.confidence >= MIN_CONFIDENCE).length >= 3) {
|
|
201
|
-
// Many weak signals without a clear pattern
|
|
202
|
-
return 'inconsistent';
|
|
203
|
-
}
|
|
204
|
-
return 'none';
|
|
205
|
-
}
|
|
206
|
-
function computeCoherence(scores) {
|
|
207
|
-
if (scores.length <= 1) {
|
|
208
|
-
return scores.length === 0 ? 0 : 1;
|
|
209
|
-
}
|
|
210
|
-
// Higher coherence when dominant paradigm has much higher confidence than others
|
|
211
|
-
const [top, ...rest] = scores;
|
|
212
|
-
/* v8 ignore start */
|
|
213
|
-
const dominance = top?.confidence ?? 0;
|
|
214
|
-
/* v8 ignore stop */
|
|
215
|
-
const avgRest = rest.length > 0 ? rest.reduce((a, b) => a + b.confidence, 0) / rest.length : 0;
|
|
216
|
-
return Math.min(1, dominance / Math.max(avgRest, 0.01));
|
|
217
|
-
}
|
|
218
|
-
function buildSummary(dominant, all, mix) {
|
|
219
|
-
if (!dominant || dominant.confidence < HYBRID_THRESHOLD) {
|
|
220
|
-
return 'No dominant paradigm detected. The project appears to be hybrid/pragmatic.';
|
|
221
|
-
}
|
|
222
|
-
const secondary = all.slice(1, 3).filter((s) => s.confidence >= MIN_CONFIDENCE);
|
|
223
|
-
const base = `Dominant paradigm: ${dominant.name} (confidence: ${(dominant.confidence * 100).toFixed(0)}%).`;
|
|
224
|
-
if (secondary.length === 0) {
|
|
225
|
-
return base;
|
|
226
|
-
}
|
|
227
|
-
const secondaryNames = secondary.map((s) => s.name).join(', ');
|
|
228
|
-
if (mix === 'coherent') {
|
|
229
|
-
return `${base} Mixed with ${secondaryNames} — coherent blend.`;
|
|
230
|
-
}
|
|
231
|
-
if (mix === 'inconsistent') {
|
|
232
|
-
return `${base} Also detected: ${secondaryNames}. Mix appears inconsistent.`;
|
|
233
|
-
}
|
|
234
|
-
return base;
|
|
235
|
-
}
|
|
236
|
-
//# sourceMappingURL=paradigm-detector.js.map
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { ParadigmEntry, ParadigmRegistry } from '../types/index.js';
|
|
2
|
-
/**
|
|
3
|
-
* Load the paradigm registry from config.
|
|
4
|
-
* Returns an empty registry on any read/parse failure.
|
|
5
|
-
*/
|
|
6
|
-
export declare function loadParadigmRegistry(): Promise<ParadigmRegistry>;
|
|
7
|
-
/**
|
|
8
|
-
* Find a paradigm entry by its id.
|
|
9
|
-
* Returns null if not found.
|
|
10
|
-
*/
|
|
11
|
-
export declare function findParadigmById(id: string): Promise<ParadigmEntry | null>;
|
|
12
|
-
/**
|
|
13
|
-
* Get all paradigm entries in the registry.
|
|
14
|
-
*/
|
|
15
|
-
export declare function getAllParadigms(): Promise<ParadigmEntry[]>;
|
|
16
|
-
/**
|
|
17
|
-
* Clear the in-memory cache (primarily for testing).
|
|
18
|
-
*/
|
|
19
|
-
export declare function clearRegistryCache(): void;
|
|
20
|
-
//# sourceMappingURL=paradigm-registry.d.ts.map
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
// Planu — Paradigm registry loader (SPEC-035a)
|
|
2
|
-
// Reads and caches the paradigm-registry.json config file.
|
|
3
|
-
import { readFile } from 'node:fs/promises';
|
|
4
|
-
let registryCache = null;
|
|
5
|
-
/**
|
|
6
|
-
* Load the paradigm registry from config.
|
|
7
|
-
* Returns an empty registry on any read/parse failure.
|
|
8
|
-
*/
|
|
9
|
-
export async function loadParadigmRegistry() {
|
|
10
|
-
if (registryCache) {
|
|
11
|
-
return registryCache;
|
|
12
|
-
}
|
|
13
|
-
try {
|
|
14
|
-
const configUrl = new URL('../config/paradigm-registry.json', import.meta.url);
|
|
15
|
-
const raw = await readFile(configUrl, 'utf-8');
|
|
16
|
-
registryCache = JSON.parse(raw);
|
|
17
|
-
return registryCache;
|
|
18
|
-
}
|
|
19
|
-
catch {
|
|
20
|
-
return { paradigms: [] };
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Find a paradigm entry by its id.
|
|
25
|
-
* Returns null if not found.
|
|
26
|
-
*/
|
|
27
|
-
export async function findParadigmById(id) {
|
|
28
|
-
const registry = await loadParadigmRegistry();
|
|
29
|
-
return registry.paradigms.find((p) => p.id === id) ?? null;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Get all paradigm entries in the registry.
|
|
33
|
-
*/
|
|
34
|
-
export async function getAllParadigms() {
|
|
35
|
-
const registry = await loadParadigmRegistry();
|
|
36
|
-
return registry.paradigms;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Clear the in-memory cache (primarily for testing).
|
|
40
|
-
*/
|
|
41
|
-
export function clearRegistryCache() {
|
|
42
|
-
registryCache = null;
|
|
43
|
-
}
|
|
44
|
-
//# sourceMappingURL=paradigm-registry.js.map
|