@planu/cli 6.1.0 → 7.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -2
- package/dist/index.js +1 -112
- package/dist/sdd-engine/contracts.d.ts +76 -0
- package/dist/sdd-engine/contracts.js +60 -0
- package/dist/sdd-engine/index.d.ts +5 -0
- package/dist/sdd-engine/index.js +5 -0
- package/dist/sdd-engine/patch-sandbox.d.ts +14 -0
- package/dist/sdd-engine/patch-sandbox.js +173 -0
- package/dist/sdd-engine/server.d.ts +5 -0
- package/dist/sdd-engine/server.js +30 -0
- package/dist/sdd-engine/task-window.d.ts +9 -0
- package/dist/sdd-engine/task-window.js +153 -0
- package/dist/sdd-engine/tools/execution-tools.d.ts +5 -0
- package/dist/sdd-engine/tools/execution-tools.js +138 -0
- package/dist/sdd-engine/tools/format-result.d.ts +4 -0
- package/dist/sdd-engine/tools/format-result.js +22 -0
- package/dist/sdd-engine/tools/workspace-tools.d.ts +3 -0
- package/dist/sdd-engine/tools/workspace-tools.js +193 -0
- package/dist/sdd-engine/tools.d.ts +3 -0
- package/dist/sdd-engine/tools.js +13 -0
- package/dist/types/sdd-engine.d.ts +91 -0
- package/dist/types/sdd-engine.js +2 -0
- package/package.json +43 -46
- package/dist/.planu-build.json +0 -1
- package/dist/cli/colors.d.ts +0 -14
- package/dist/cli/colors.js +0 -26
- package/dist/cli/commands/doctor.d.ts +0 -12
- package/dist/cli/commands/doctor.js +0 -91
- package/dist/cli/commands/init.d.ts +0 -3
- package/dist/cli/commands/init.js +0 -37
- package/dist/cli/commands/job.d.ts +0 -3
- package/dist/cli/commands/job.js +0 -112
- package/dist/cli/commands/list.d.ts +0 -3
- package/dist/cli/commands/list.js +0 -39
- package/dist/cli/commands/package-handoff.d.ts +0 -3
- package/dist/cli/commands/package-handoff.js +0 -75
- package/dist/cli/commands/spec.d.ts +0 -3
- package/dist/cli/commands/spec.js +0 -156
- package/dist/cli/commands/status.d.ts +0 -3
- package/dist/cli/commands/status.js +0 -113
- package/dist/cli/commands/validate.d.ts +0 -3
- package/dist/cli/commands/validate.js +0 -39
- package/dist/cli/formatter.d.ts +0 -26
- package/dist/cli/formatter.js +0 -126
- package/dist/cli/index.d.ts +0 -3
- package/dist/cli/index.js +0 -29
- package/dist/cli/project-detector.d.ts +0 -6
- package/dist/cli/project-detector.js +0 -12
- package/dist/cli/router.d.ts +0 -6
- package/dist/cli/router.js +0 -142
- package/dist/config/architecture-patterns.json +0 -324
- package/dist/config/detection-signals.json +0 -256
- package/dist/config/docs-registry.json +0 -94
- package/dist/config/dor-dod-items.json +0 -194
- package/dist/config/drift-severity.json +0 -22
- package/dist/config/event-brokers.json +0 -63
- package/dist/config/framework-registry/csharp-aspnet.json +0 -67
- package/dist/config/framework-registry/dart-flutter.json +0 -61
- package/dist/config/framework-registry/go-gin.json +0 -62
- package/dist/config/framework-registry/index.json +0 -164
- package/dist/config/framework-registry/java-springboot.json +0 -67
- package/dist/config/framework-registry/php-laravel.json +0 -67
- package/dist/config/framework-registry/python-django.json +0 -72
- package/dist/config/framework-registry/python-fastapi.json +0 -72
- package/dist/config/framework-registry/ruby-rails.json +0 -67
- package/dist/config/framework-registry/rust-actix.json +0 -61
- package/dist/config/framework-registry/swift-swiftui.json +0 -67
- package/dist/config/framework-registry/typescript-angular.json +0 -67
- package/dist/config/framework-registry/typescript-astro.json +0 -61
- package/dist/config/framework-registry/typescript-express.json +0 -67
- package/dist/config/framework-registry/typescript-nestjs.json +0 -62
- package/dist/config/framework-registry/typescript-nextjs.json +0 -82
- package/dist/config/framework-registry/typescript-nuxt.json +0 -67
- package/dist/config/framework-registry/typescript-react.json +0 -77
- package/dist/config/framework-registry/typescript-remix.json +0 -61
- package/dist/config/framework-registry/typescript-sveltekit.json +0 -67
- package/dist/config/framework-registry/typescript-vue.json +0 -72
- package/dist/config/hook-templates/planu-force-ask-user-question.sh +0 -14
- package/dist/config/hook-templates/planu-spec-sanctity.sh +0 -128
- package/dist/config/legacy-artifacts.json +0 -26
- package/dist/config/minimal-implementation-gate.json +0 -149
- package/dist/config/negative-predicate-phrases.json +0 -33
- package/dist/config/official-sdd-tools.d.ts +0 -7
- package/dist/config/official-sdd-tools.js +0 -44
- package/dist/config/out-of-scope-suggestions.json +0 -190
- package/dist/config/paradigm-registry.json +0 -380
- package/dist/config/project-knowledge-graph.json +0 -170
- package/dist/config/readiness-config.json +0 -22
- package/dist/config/registries/error-recovery.json +0 -114
- package/dist/config/registries/legacy-guidance.json +0 -118
- package/dist/config/registries/spec-folder-sanctity.json +0 -4
- package/dist/config/runtime-policy.json +0 -66
- package/dist/config/server-instructions.d.ts +0 -2
- package/dist/config/server-instructions.js +0 -18
- package/dist/config/skill-templates/planu-dogfood-bug.md +0 -43
- package/dist/config/skill-templates/planu-implement.md +0 -42
- package/dist/config/skill-templates/planu-native.md +0 -30
- package/dist/config/skill-templates/planu-new-spec.md +0 -56
- package/dist/config/skill-templates/planu-resume-work.md +0 -51
- package/dist/config/skill-templates/planu-review.md +0 -47
- package/dist/config/skill-templates/planu-validate.md +0 -59
- package/dist/config/stack-signatures.json +0 -793
- package/dist/config/subagent-templates/planu-challenger.md +0 -49
- package/dist/config/subagent-templates/planu-readiness-auditor.md +0 -51
- package/dist/config/subagent-templates/planu-spec-implementer.md +0 -50
- package/dist/config/subagent-templates/planu-validator.md +0 -56
- package/dist/config/technology-registry.json +0 -120
- package/dist/config/version.d.ts +0 -2
- package/dist/config/version.js +0 -20
- package/dist/core/shared/fs.d.ts +0 -10
- package/dist/core/shared/fs.js +0 -89
- package/dist/core/shared/object.d.ts +0 -3
- package/dist/core/shared/object.js +0 -12
- package/dist/core/shared/strings.d.ts +0 -3
- package/dist/core/shared/strings.js +0 -13
- package/dist/core/spec-validator.d.ts +0 -12
- package/dist/core/spec-validator.js +0 -250
- package/dist/engine/abortable-process-runner.d.ts +0 -26
- package/dist/engine/abortable-process-runner.js +0 -308
- package/dist/engine/ai-assurance/index.d.ts +0 -4
- package/dist/engine/ai-assurance/index.js +0 -3
- package/dist/engine/ai-assurance/new-code-gate.d.ts +0 -3
- package/dist/engine/ai-assurance/new-code-gate.js +0 -39
- package/dist/engine/ai-assurance/spec-assurance.d.ts +0 -3
- package/dist/engine/ai-assurance/spec-assurance.js +0 -138
- package/dist/engine/ai-integration/codex/agent-roles-generator.d.ts +0 -12
- package/dist/engine/ai-integration/codex/agent-roles-generator.js +0 -62
- package/dist/engine/ambiguity-scorer.d.ts +0 -13
- package/dist/engine/ambiguity-scorer.js +0 -155
- package/dist/engine/approval-workflow.d.ts +0 -21
- package/dist/engine/approval-workflow.js +0 -82
- package/dist/engine/audit-trail/hasher.d.ts +0 -18
- package/dist/engine/audit-trail/hasher.js +0 -46
- package/dist/engine/auditor-scoring.d.ts +0 -7
- package/dist/engine/auditor-scoring.js +0 -76
- package/dist/engine/build-freshness.d.ts +0 -4
- package/dist/engine/build-freshness.js +0 -170
- package/dist/engine/challenge-prioritizer.d.ts +0 -17
- package/dist/engine/challenge-prioritizer.js +0 -78
- package/dist/engine/clarification-gate/error-builder.d.ts +0 -12
- package/dist/engine/clarification-gate/error-builder.js +0 -33
- package/dist/engine/clarification-gate/gate.d.ts +0 -15
- package/dist/engine/clarification-gate/gate.js +0 -41
- package/dist/engine/clarification-gate/token-store.d.ts +0 -28
- package/dist/engine/clarification-gate/token-store.js +0 -67
- package/dist/engine/coach/i18n.d.ts +0 -11
- package/dist/engine/coach/i18n.js +0 -78
- package/dist/engine/code-scanner/gap-scorer.d.ts +0 -9
- package/dist/engine/code-scanner/gap-scorer.js +0 -89
- package/dist/engine/code-scanner/index.d.ts +0 -9
- package/dist/engine/code-scanner/index.js +0 -15
- package/dist/engine/code-scanner/keyword-extractor.d.ts +0 -11
- package/dist/engine/code-scanner/keyword-extractor.js +0 -88
- package/dist/engine/code-scanner/layer-scanner.d.ts +0 -24
- package/dist/engine/code-scanner/layer-scanner.js +0 -135
- package/dist/engine/compact/tool-list-compactor.d.ts +0 -7
- package/dist/engine/compact/tool-list-compactor.js +0 -87
- package/dist/engine/compact-obj.d.ts +0 -7
- package/dist/engine/compact-obj.js +0 -28
- package/dist/engine/complexity-budget/index.d.ts +0 -2
- package/dist/engine/complexity-budget/index.js +0 -3
- package/dist/engine/complexity-budget/trivial-detector.d.ts +0 -7
- package/dist/engine/complexity-budget/trivial-detector.js +0 -69
- package/dist/engine/config-loader.d.ts +0 -73
- package/dist/engine/config-loader.js +0 -239
- package/dist/engine/constitution/sdd-rules-registry.d.ts +0 -11
- package/dist/engine/constitution/sdd-rules-registry.js +0 -109
- package/dist/engine/context-merger.d.ts +0 -23
- package/dist/engine/context-merger.js +0 -197
- package/dist/engine/contradiction-detector.d.ts +0 -16
- package/dist/engine/contradiction-detector.js +0 -406
- package/dist/engine/convention-scanner/codebase-scanner.d.ts +0 -7
- package/dist/engine/convention-scanner/codebase-scanner.js +0 -390
- package/dist/engine/convention-scanner/convention-parser.d.ts +0 -7
- package/dist/engine/convention-scanner/convention-parser.js +0 -189
- package/dist/engine/convention-scanner/index.d.ts +0 -3
- package/dist/engine/convention-scanner/index.js +0 -5
- package/dist/engine/conventions-ttl.d.ts +0 -8
- package/dist/engine/conventions-ttl.js +0 -75
- package/dist/engine/core-bridge-duplicate-blocks.d.ts +0 -3
- package/dist/engine/core-bridge-duplicate-blocks.js +0 -56
- package/dist/engine/core-bridge-gaps.d.ts +0 -4
- package/dist/engine/core-bridge-gaps.js +0 -75
- package/dist/engine/core-bridge-project-graph.d.ts +0 -9
- package/dist/engine/core-bridge-project-graph.js +0 -499
- package/dist/engine/core-bridge.d.ts +0 -34
- package/dist/engine/core-bridge.js +0 -392
- package/dist/engine/criteria-quality-checker.d.ts +0 -8
- package/dist/engine/criteria-quality-checker.js +0 -55
- package/dist/engine/criterion-identity.d.ts +0 -7
- package/dist/engine/criterion-identity.js +0 -70
- package/dist/engine/data-projects-gc/pattern-matcher.d.ts +0 -21
- package/dist/engine/data-projects-gc/pattern-matcher.js +0 -68
- package/dist/engine/dep-guard/cycle-detector.d.ts +0 -29
- package/dist/engine/dep-guard/cycle-detector.js +0 -83
- package/dist/engine/dep-guard/index.d.ts +0 -3
- package/dist/engine/dep-guard/index.js +0 -3
- package/dist/engine/dependency-evaluator.d.ts +0 -15
- package/dist/engine/dependency-evaluator.js +0 -81
- package/dist/engine/detection-utils.d.ts +0 -13
- package/dist/engine/detection-utils.js +0 -255
- package/dist/engine/dor-dod/dod.d.ts +0 -17
- package/dist/engine/dor-dod/dod.js +0 -98
- package/dist/engine/dor-dod/dor.d.ts +0 -21
- package/dist/engine/dor-dod/dor.js +0 -149
- package/dist/engine/dor-dod/index.d.ts +0 -4
- package/dist/engine/dor-dod/index.js +0 -5
- package/dist/engine/dor-dod/items-loader.d.ts +0 -18
- package/dist/engine/dor-dod/items-loader.js +0 -55
- package/dist/engine/dor-dod/plan.d.ts +0 -8
- package/dist/engine/dor-dod/plan.js +0 -50
- package/dist/engine/dor-dod.d.ts +0 -2
- package/dist/engine/dor-dod.js +0 -4
- package/dist/engine/ears-gate.d.ts +0 -19
- package/dist/engine/ears-gate.js +0 -120
- package/dist/engine/elicitation/answer-extractor.d.ts +0 -4
- package/dist/engine/elicitation/answer-extractor.js +0 -225
- package/dist/engine/elicitation/capability.d.ts +0 -9
- package/dist/engine/elicitation/capability.js +0 -48
- package/dist/engine/elicitation/decision-gap-detector.d.ts +0 -3
- package/dist/engine/elicitation/decision-gap-detector.js +0 -142
- package/dist/engine/elicitation/elicit-helper.d.ts +0 -36
- package/dist/engine/elicitation/elicit-helper.js +0 -113
- package/dist/engine/elicitation/question-grounding-gate.d.ts +0 -3
- package/dist/engine/elicitation/question-grounding-gate.js +0 -103
- package/dist/engine/errors/error-result.d.ts +0 -4
- package/dist/engine/errors/error-result.js +0 -16
- package/dist/engine/errors/error-wrapper.d.ts +0 -4
- package/dist/engine/errors/error-wrapper.js +0 -82
- package/dist/engine/errors/recovery-registry.d.ts +0 -13
- package/dist/engine/errors/recovery-registry.js +0 -96
- package/dist/engine/errors/registry-loader.d.ts +0 -3
- package/dist/engine/errors/registry-loader.js +0 -22
- package/dist/engine/event-detector.d.ts +0 -33
- package/dist/engine/event-detector.js +0 -97
- package/dist/engine/evidence-gates/artifact-reader.d.ts +0 -133
- package/dist/engine/evidence-gates/artifact-reader.js +0 -387
- package/dist/engine/evidence-gates/evidence-autofill.d.ts +0 -15
- package/dist/engine/evidence-gates/evidence-autofill.js +0 -255
- package/dist/engine/evidence-gates/evidence-skeletons.d.ts +0 -19
- package/dist/engine/evidence-gates/evidence-skeletons.js +0 -78
- package/dist/engine/evidence-gates/lifecycle-gate.d.ts +0 -12
- package/dist/engine/evidence-gates/lifecycle-gate.js +0 -293
- package/dist/engine/evidence-gates/reconciliation-freshness.d.ts +0 -11
- package/dist/engine/evidence-gates/reconciliation-freshness.js +0 -73
- package/dist/engine/evidence-index/done-drift.d.ts +0 -7
- package/dist/engine/evidence-index/done-drift.js +0 -91
- package/dist/engine/evidence-index/index-builder.d.ts +0 -10
- package/dist/engine/evidence-index/index-builder.js +0 -202
- package/dist/engine/execution/context.d.ts +0 -19
- package/dist/engine/execution/context.js +0 -130
- package/dist/engine/execution/deadline-io.d.ts +0 -20
- package/dist/engine/execution/deadline-io.js +0 -30
- package/dist/engine/execution/durable-job-heartbeat-runtime.d.ts +0 -4
- package/dist/engine/execution/durable-job-heartbeat-runtime.js +0 -401
- package/dist/engine/execution/job-runtime.d.ts +0 -101
- package/dist/engine/execution/job-runtime.js +0 -319
- package/dist/engine/execution/operation-journal.d.ts +0 -67
- package/dist/engine/execution/operation-journal.js +0 -266
- package/dist/engine/execution/package-handoff-job-executor.d.ts +0 -22
- package/dist/engine/execution/package-handoff-job-executor.js +0 -510
- package/dist/engine/execution/public-job-sanitizer.d.ts +0 -4
- package/dist/engine/execution/public-job-sanitizer.js +0 -31
- package/dist/engine/execution/startup-recovery.d.ts +0 -3
- package/dist/engine/execution/startup-recovery.js +0 -15
- package/dist/engine/execution/validate-job-executor.d.ts +0 -37
- package/dist/engine/execution/validate-job-executor.js +0 -900
- package/dist/engine/execution/validate-job-payload.d.ts +0 -5
- package/dist/engine/execution/validate-job-payload.js +0 -145
- package/dist/engine/execution/validate-job-recovery.d.ts +0 -4
- package/dist/engine/execution/validate-job-recovery.js +0 -47
- package/dist/engine/execution/validate-worker-runtime.d.ts +0 -10
- package/dist/engine/execution/validate-worker-runtime.js +0 -188
- package/dist/engine/execution/validate-worker-thread.d.ts +0 -2
- package/dist/engine/execution/validate-worker-thread.js +0 -65
- package/dist/engine/framework-detector.d.ts +0 -35
- package/dist/engine/framework-detector.js +0 -268
- package/dist/engine/freeze/freeze-checker.d.ts +0 -14
- package/dist/engine/freeze/freeze-checker.js +0 -28
- package/dist/engine/freeze/unlock-token.d.ts +0 -17
- package/dist/engine/freeze/unlock-token.js +0 -30
- package/dist/engine/frontmatter-parser.d.ts +0 -32
- package/dist/engine/frontmatter-parser.js +0 -157
- package/dist/engine/frontmatter-sha/canonicalize.d.ts +0 -9
- package/dist/engine/frontmatter-sha/canonicalize.js +0 -20
- package/dist/engine/frontmatter-sha/compute-sha.d.ts +0 -8
- package/dist/engine/frontmatter-sha/compute-sha.js +0 -14
- package/dist/engine/frontmatter-sha/frozen-fields.d.ts +0 -6
- package/dist/engine/frontmatter-sha/frozen-fields.js +0 -14
- package/dist/engine/frontmatter-sha/index.d.ts +0 -2
- package/dist/engine/frontmatter-sha/index.js +0 -3
- package/dist/engine/git/branch-detector.d.ts +0 -7
- package/dist/engine/git/branch-detector.js +0 -45
- package/dist/engine/git/exec-git.d.ts +0 -2
- package/dist/engine/git/exec-git.js +0 -14
- package/dist/engine/git/git-command-guard.d.ts +0 -2
- package/dist/engine/git/git-command-guard.js +0 -43
- package/dist/engine/git/repository-probe.d.ts +0 -3
- package/dist/engine/git/repository-probe.js +0 -13
- package/dist/engine/handoff-artifacts/implementation-review-reader.d.ts +0 -4
- package/dist/engine/handoff-artifacts/implementation-review-reader.js +0 -86
- package/dist/engine/handoff-artifacts/io.d.ts +0 -51
- package/dist/engine/handoff-artifacts/io.js +0 -200
- package/dist/engine/handoff-artifacts/schema-skeleton.d.ts +0 -5
- package/dist/engine/handoff-artifacts/schema-skeleton.js +0 -108
- package/dist/engine/handoff-artifacts/schemas.d.ts +0 -164
- package/dist/engine/handoff-artifacts/schemas.js +0 -242
- package/dist/engine/handoff-artifacts/validation-result.d.ts +0 -18
- package/dist/engine/handoff-artifacts/validation-result.js +0 -3
- package/dist/engine/handoff-artifacts/version-policy.d.ts +0 -18
- package/dist/engine/handoff-artifacts/version-policy.js +0 -35
- package/dist/engine/handoff-format.d.ts +0 -26
- package/dist/engine/handoff-format.js +0 -253
- package/dist/engine/handoff-packager.d.ts +0 -30
- package/dist/engine/handoff-packager.js +0 -864
- package/dist/engine/host-detection/detect-host.d.ts +0 -10
- package/dist/engine/host-detection/detect-host.js +0 -34
- package/dist/engine/host-rules-templates/index.d.ts +0 -3
- package/dist/engine/host-rules-templates/index.js +0 -4
- package/dist/engine/host-rules-templates/inject-rules-block.d.ts +0 -3
- package/dist/engine/host-rules-templates/inject-rules-block.js +0 -29
- package/dist/engine/host-rules-templates/templates.d.ts +0 -12
- package/dist/engine/host-rules-templates/templates.js +0 -111
- package/dist/engine/host-tool-filter.d.ts +0 -28
- package/dist/engine/host-tool-filter.js +0 -162
- package/dist/engine/human-summary.d.ts +0 -18
- package/dist/engine/human-summary.js +0 -114
- package/dist/engine/implementation-contract/common.d.ts +0 -22
- package/dist/engine/implementation-contract/common.js +0 -47
- package/dist/engine/implementation-contract/evaluator.d.ts +0 -3
- package/dist/engine/implementation-contract/evaluator.js +0 -192
- package/dist/engine/implementation-contract/index.d.ts +0 -4
- package/dist/engine/implementation-contract/index.js +0 -4
- package/dist/engine/implementation-contract/renderer.d.ts +0 -4
- package/dist/engine/implementation-contract/renderer.js +0 -114
- package/dist/engine/keyword-matcher/boundary.d.ts +0 -18
- package/dist/engine/keyword-matcher/boundary.js +0 -30
- package/dist/engine/keyword-matcher/extractor.d.ts +0 -14
- package/dist/engine/keyword-matcher/extractor.js +0 -85
- package/dist/engine/keyword-matcher/index.d.ts +0 -5
- package/dist/engine/keyword-matcher/index.js +0 -11
- package/dist/engine/keyword-matcher/matcher.d.ts +0 -28
- package/dist/engine/keyword-matcher/matcher.js +0 -79
- package/dist/engine/keyword-matcher/stopwords.d.ts +0 -26
- package/dist/engine/keyword-matcher/stopwords.js +0 -100
- package/dist/engine/lifecycle-hints.d.ts +0 -12
- package/dist/engine/lifecycle-hints.js +0 -61
- package/dist/engine/lifecycle-reconciliation-io.d.ts +0 -11
- package/dist/engine/lifecycle-reconciliation-io.js +0 -181
- package/dist/engine/lifecycle-reconciliation.d.ts +0 -16
- package/dist/engine/lifecycle-reconciliation.js +0 -460
- package/dist/engine/living-spec-analyzer.d.ts +0 -10
- package/dist/engine/living-spec-analyzer.js +0 -397
- package/dist/engine/minimality/analyzer.d.ts +0 -3
- package/dist/engine/minimality/analyzer.js +0 -182
- package/dist/engine/minimality/formatter.d.ts +0 -3
- package/dist/engine/minimality/formatter.js +0 -25
- package/dist/engine/minimality/index.d.ts +0 -3
- package/dist/engine/minimality/index.js +0 -3
- package/dist/engine/minimality/policy-loader.d.ts +0 -3
- package/dist/engine/minimality/policy-loader.js +0 -364
- package/dist/engine/model-tier-resolver.d.ts +0 -4
- package/dist/engine/model-tier-resolver.js +0 -15
- package/dist/engine/network-policy.d.ts +0 -4
- package/dist/engine/network-policy.js +0 -96
- package/dist/engine/onboarding/new-project-resolver.d.ts +0 -6
- package/dist/engine/onboarding/new-project-resolver.js +0 -265
- package/dist/engine/opencode/config-scaffold.d.ts +0 -3
- package/dist/engine/opencode/config-scaffold.js +0 -99
- package/dist/engine/paradigm-detector.d.ts +0 -12
- package/dist/engine/paradigm-detector.js +0 -236
- package/dist/engine/paradigm-registry.d.ts +0 -20
- package/dist/engine/paradigm-registry.js +0 -44
- package/dist/engine/phase-tracker.d.ts +0 -41
- package/dist/engine/phase-tracker.js +0 -89
- package/dist/engine/planu-config-writer.d.ts +0 -33
- package/dist/engine/planu-config-writer.js +0 -68
- package/dist/engine/project-command-runtime.d.ts +0 -5
- package/dist/engine/project-command-runtime.js +0 -87
- package/dist/engine/project-graph/builder.d.ts +0 -7
- package/dist/engine/project-graph/builder.js +0 -320
- package/dist/engine/project-graph/cache.d.ts +0 -47
- package/dist/engine/project-graph/cache.js +0 -739
- package/dist/engine/project-graph/extractors/decision-store-extractor.d.ts +0 -3
- package/dist/engine/project-graph/extractors/decision-store-extractor.js +0 -58
- package/dist/engine/project-graph/extractors/git-extractor.d.ts +0 -7
- package/dist/engine/project-graph/extractors/git-extractor.js +0 -89
- package/dist/engine/project-graph/extractors/handoff-extractor.d.ts +0 -3
- package/dist/engine/project-graph/extractors/handoff-extractor.js +0 -55
- package/dist/engine/project-graph/extractors/spec-extractor.d.ts +0 -3
- package/dist/engine/project-graph/extractors/spec-extractor.js +0 -189
- package/dist/engine/project-graph/extractors/validation-extractor.d.ts +0 -3
- package/dist/engine/project-graph/extractors/validation-extractor.js +0 -36
- package/dist/engine/project-graph/freshness-projection.d.ts +0 -16
- package/dist/engine/project-graph/freshness-projection.js +0 -98
- package/dist/engine/project-graph/index.d.ts +0 -2
- package/dist/engine/project-graph/index.js +0 -2
- package/dist/engine/project-graph/native.d.ts +0 -3
- package/dist/engine/project-graph/native.js +0 -36
- package/dist/engine/project-graph/query.d.ts +0 -8
- package/dist/engine/project-graph/query.js +0 -193
- package/dist/engine/project-graph/redaction.d.ts +0 -4
- package/dist/engine/project-graph/redaction.js +0 -11
- package/dist/engine/project-scanner/convention-detector.d.ts +0 -3
- package/dist/engine/project-scanner/convention-detector.js +0 -149
- package/dist/engine/project-scanner/index.d.ts +0 -4
- package/dist/engine/project-scanner/index.js +0 -18
- package/dist/engine/project-scanner/quality-baseline.d.ts +0 -3
- package/dist/engine/project-scanner/quality-baseline.js +0 -72
- package/dist/engine/project-scanner/stack-detector.d.ts +0 -3
- package/dist/engine/project-scanner/stack-detector.js +0 -128
- package/dist/engine/readiness-checker.d.ts +0 -56
- package/dist/engine/readiness-checker.js +0 -566
- package/dist/engine/readiness-config-loader.d.ts +0 -23
- package/dist/engine/readiness-config-loader.js +0 -63
- package/dist/engine/reconcile/apply-changes.d.ts +0 -4
- package/dist/engine/reconcile/apply-changes.js +0 -117
- package/dist/engine/reconcile/propagate-mirrors.d.ts +0 -3
- package/dist/engine/reconcile/propagate-mirrors.js +0 -376
- package/dist/engine/reconcile/verify-write.d.ts +0 -10
- package/dist/engine/reconcile/verify-write.js +0 -49
- package/dist/engine/registry-extender.d.ts +0 -25
- package/dist/engine/registry-extender.js +0 -60
- package/dist/engine/reviewer-tokens/issuer.d.ts +0 -29
- package/dist/engine/reviewer-tokens/issuer.js +0 -88
- package/dist/engine/reviewer-tokens/signer.d.ts +0 -17
- package/dist/engine/reviewer-tokens/signer.js +0 -51
- package/dist/engine/reviewer-tokens/types.d.ts +0 -2
- package/dist/engine/reviewer-tokens/types.js +0 -2
- package/dist/engine/runtime-policy.d.ts +0 -9
- package/dist/engine/runtime-policy.js +0 -163
- package/dist/engine/safety/atomic-write-file.d.ts +0 -47
- package/dist/engine/safety/atomic-write-file.js +0 -232
- package/dist/engine/safety/atomic-writer.d.ts +0 -22
- package/dist/engine/safety/atomic-writer.js +0 -97
- package/dist/engine/safety/contained-project-file.d.ts +0 -3
- package/dist/engine/safety/contained-project-file.js +0 -23
- package/dist/engine/safety/cross-process-lock.d.ts +0 -13
- package/dist/engine/safety/cross-process-lock.js +0 -318
- package/dist/engine/safety/file-mutex.d.ts +0 -6
- package/dist/engine/safety/file-mutex.js +0 -182
- package/dist/engine/safety/lock-lease-store.d.ts +0 -84
- package/dist/engine/safety/lock-lease-store.js +0 -383
- package/dist/engine/safety/lock-scavenger.d.ts +0 -8
- package/dist/engine/safety/lock-scavenger.js +0 -198
- package/dist/engine/safety/lock-staleness.d.ts +0 -33
- package/dist/engine/safety/lock-staleness.js +0 -76
- package/dist/engine/safety/obsolete-lock-guard.d.ts +0 -8
- package/dist/engine/safety/obsolete-lock-guard.js +0 -31
- package/dist/engine/scope-boundaries/contradiction-checker.d.ts +0 -7
- package/dist/engine/scope-boundaries/contradiction-checker.js +0 -276
- package/dist/engine/scope-boundaries/index.d.ts +0 -4
- package/dist/engine/scope-boundaries/index.js +0 -5
- package/dist/engine/scope-boundaries/scope-validator.d.ts +0 -7
- package/dist/engine/scope-boundaries/scope-validator.js +0 -114
- package/dist/engine/scope-boundaries/suggester.d.ts +0 -8
- package/dist/engine/scope-boundaries/suggester.js +0 -27
- package/dist/engine/score-to-grade.d.ts +0 -2
- package/dist/engine/score-to-grade.js +0 -16
- package/dist/engine/sdd-model-routing.d.ts +0 -15
- package/dist/engine/sdd-model-routing.js +0 -200
- package/dist/engine/spec-dependency-graph.d.ts +0 -33
- package/dist/engine/spec-dependency-graph.js +0 -243
- package/dist/engine/spec-difficulty.d.ts +0 -3
- package/dist/engine/spec-difficulty.js +0 -17
- package/dist/engine/spec-folder-sanctity.d.ts +0 -5
- package/dist/engine/spec-folder-sanctity.js +0 -32
- package/dist/engine/spec-format/acceptance-criteria.d.ts +0 -10
- package/dist/engine/spec-format/acceptance-criteria.js +0 -157
- package/dist/engine/spec-format/bdd-parser.d.ts +0 -19
- package/dist/engine/spec-format/bdd-parser.js +0 -224
- package/dist/engine/spec-format/copula-blacklist.d.ts +0 -15
- package/dist/engine/spec-format/copula-blacklist.js +0 -31
- package/dist/engine/spec-format/criteria-drift.d.ts +0 -3
- package/dist/engine/spec-format/criteria-drift.js +0 -36
- package/dist/engine/spec-format/executable-test-path.d.ts +0 -2
- package/dist/engine/spec-format/executable-test-path.js +0 -5
- package/dist/engine/spec-format/lean-spec-generator.d.ts +0 -8
- package/dist/engine/spec-format/lean-spec-generator.js +0 -236
- package/dist/engine/spec-format/lean-technical-generator.d.ts +0 -5
- package/dist/engine/spec-format/lean-technical-generator.js +0 -45
- package/dist/engine/spec-format/markdown-sections.d.ts +0 -14
- package/dist/engine/spec-format/markdown-sections.js +0 -105
- package/dist/engine/spec-format/metadata-value-policy.d.ts +0 -156
- package/dist/engine/spec-format/metadata-value-policy.js +0 -86
- package/dist/engine/spec-format/read-technical-section.d.ts +0 -25
- package/dist/engine/spec-format/read-technical-section.js +0 -99
- package/dist/engine/spec-format/replace-section.d.ts +0 -17
- package/dist/engine/spec-format/replace-section.js +0 -79
- package/dist/engine/spec-format/retired-scaffold.d.ts +0 -3
- package/dist/engine/spec-format/retired-scaffold.js +0 -5
- package/dist/engine/spec-format/spec-id.d.ts +0 -8
- package/dist/engine/spec-format/spec-id.js +0 -25
- package/dist/engine/spec-format/technical-md-populator.d.ts +0 -17
- package/dist/engine/spec-format/technical-md-populator.js +0 -321
- package/dist/engine/spec-format/text-fences.d.ts +0 -6
- package/dist/engine/spec-format/text-fences.js +0 -28
- package/dist/engine/spec-format/unified-spec-builder.d.ts +0 -25
- package/dist/engine/spec-format/unified-spec-builder.js +0 -400
- package/dist/engine/spec-generator/fallback-generator.d.ts +0 -5
- package/dist/engine/spec-generator/fallback-generator.js +0 -41
- package/dist/engine/spec-generator/index.d.ts +0 -2
- package/dist/engine/spec-generator/index.js +0 -2
- package/dist/engine/spec-grounding/contract.d.ts +0 -24
- package/dist/engine/spec-grounding/contract.js +0 -278
- package/dist/engine/spec-grounding/grounding-entry-parser.d.ts +0 -4
- package/dist/engine/spec-grounding/grounding-entry-parser.js +0 -184
- package/dist/engine/spec-health-scorer.d.ts +0 -7
- package/dist/engine/spec-health-scorer.js +0 -134
- package/dist/engine/spec-language/english-only.d.ts +0 -30
- package/dist/engine/spec-language/english-only.js +0 -224
- package/dist/engine/spec-migrator/criteria-scanner.d.ts +0 -7
- package/dist/engine/spec-migrator/criteria-scanner.js +0 -113
- package/dist/engine/spec-migrator/drift-detector.d.ts +0 -10
- package/dist/engine/spec-migrator/drift-detector.js +0 -142
- package/dist/engine/spec-migrator/filesystem-import.d.ts +0 -10
- package/dist/engine/spec-migrator/filesystem-import.js +0 -205
- package/dist/engine/spec-migrator/flatten-specs.d.ts +0 -12
- package/dist/engine/spec-migrator/flatten-specs.js +0 -111
- package/dist/engine/spec-migrator/folder-operations.d.ts +0 -7
- package/dist/engine/spec-migrator/folder-operations.js +0 -109
- package/dist/engine/spec-migrator/frontmatter-parser.d.ts +0 -11
- package/dist/engine/spec-migrator/frontmatter-parser.js +0 -111
- package/dist/engine/spec-migrator/git-aware-fs.d.ts +0 -9
- package/dist/engine/spec-migrator/git-aware-fs.js +0 -20
- package/dist/engine/spec-migrator/index.d.ts +0 -10
- package/dist/engine/spec-migrator/index.js +0 -23
- package/dist/engine/spec-migrator/lean-migration.d.ts +0 -8
- package/dist/engine/spec-migrator/lean-migration.js +0 -405
- package/dist/engine/spec-migrator/legacy-classifier.d.ts +0 -4
- package/dist/engine/spec-migrator/legacy-classifier.js +0 -70
- package/dist/engine/spec-migrator/legacy-migration.d.ts +0 -13
- package/dist/engine/spec-migrator/legacy-migration.js +0 -88
- package/dist/engine/spec-migrator/path-utils.d.ts +0 -13
- package/dist/engine/spec-migrator/path-utils.js +0 -40
- package/dist/engine/spec-migrator/planu-canonical-policy.d.ts +0 -18
- package/dist/engine/spec-migrator/planu-canonical-policy.js +0 -105
- package/dist/engine/spec-migrator/prefix-migration.d.ts +0 -11
- package/dist/engine/spec-migrator/prefix-migration.js +0 -85
- package/dist/engine/spec-migrator/reconcile-paths.d.ts +0 -12
- package/dist/engine/spec-migrator/reconcile-paths.js +0 -77
- package/dist/engine/spec-migrator/strict-planu-cleanup.d.ts +0 -7
- package/dist/engine/spec-migrator/strict-planu-cleanup.js +0 -308
- package/dist/engine/spec-migrator/version-detection.d.ts +0 -5
- package/dist/engine/spec-migrator/version-detection.js +0 -19
- package/dist/engine/spec-migrator.d.ts +0 -2
- package/dist/engine/spec-migrator.js +0 -3
- package/dist/engine/spec-quality/generic-output-gate.d.ts +0 -9
- package/dist/engine/spec-quality/generic-output-gate.js +0 -350
- package/dist/engine/spec-quality-scorer.d.ts +0 -4
- package/dist/engine/spec-quality-scorer.js +0 -423
- package/dist/engine/spec-reader.d.ts +0 -7
- package/dist/engine/spec-reader.js +0 -23
- package/dist/engine/spec-state-machine/transition-spec.d.ts +0 -56
- package/dist/engine/spec-state-machine/transition-spec.js +0 -59
- package/dist/engine/spec-versioner.d.ts +0 -28
- package/dist/engine/spec-versioner.js +0 -92
- package/dist/engine/spec-versioning/bump-version.d.ts +0 -17
- package/dist/engine/spec-versioning/bump-version.js +0 -199
- package/dist/engine/spec-versioning/migrate-format.d.ts +0 -23
- package/dist/engine/spec-versioning/migrate-format.js +0 -96
- package/dist/engine/spec-versioning/render-history.d.ts +0 -14
- package/dist/engine/spec-versioning/render-history.js +0 -31
- package/dist/engine/technology-registry.d.ts +0 -11
- package/dist/engine/technology-registry.js +0 -142
- package/dist/engine/test-selection/policy.d.ts +0 -9
- package/dist/engine/test-selection/policy.js +0 -192
- package/dist/engine/text-signal-boundaries.d.ts +0 -8
- package/dist/engine/text-signal-boundaries.js +0 -122
- package/dist/engine/time/relative-date.d.ts +0 -3
- package/dist/engine/time/relative-date.js +0 -16
- package/dist/engine/timing/budget.d.ts +0 -29
- package/dist/engine/timing/budget.js +0 -129
- package/dist/engine/universal-rules/catalog.d.ts +0 -7
- package/dist/engine/universal-rules/catalog.js +0 -25
- package/dist/engine/universal-rules/host-writer.d.ts +0 -7
- package/dist/engine/universal-rules/host-writer.js +0 -113
- package/dist/engine/universal-rules/installer.d.ts +0 -5
- package/dist/engine/universal-rules/installer.js +0 -236
- package/dist/engine/universal-rules/rules/planu-approval-gates.d.ts +0 -3
- package/dist/engine/universal-rules/rules/planu-approval-gates.js +0 -48
- package/dist/engine/universal-rules/rules/planu-bdd-criteria.d.ts +0 -3
- package/dist/engine/universal-rules/rules/planu-bdd-criteria.js +0 -44
- package/dist/engine/universal-rules/rules/planu-dogfood-bugs.d.ts +0 -3
- package/dist/engine/universal-rules/rules/planu-dogfood-bugs.js +0 -70
- package/dist/engine/universal-rules/rules/planu-english-specs.d.ts +0 -3
- package/dist/engine/universal-rules/rules/planu-english-specs.js +0 -41
- package/dist/engine/universal-rules/rules/planu-minimal-change.d.ts +0 -3
- package/dist/engine/universal-rules/rules/planu-minimal-change.js +0 -42
- package/dist/engine/universal-rules/rules/planu-modes.d.ts +0 -3
- package/dist/engine/universal-rules/rules/planu-modes.js +0 -57
- package/dist/engine/universal-rules/rules/planu-sdd-model-routing.d.ts +0 -3
- package/dist/engine/universal-rules/rules/planu-sdd-model-routing.js +0 -50
- package/dist/engine/universal-rules/rules/planu-workflow.d.ts +0 -3
- package/dist/engine/universal-rules/rules/planu-workflow.js +0 -92
- package/dist/engine/universal-rules/user-edit-detector.d.ts +0 -21
- package/dist/engine/universal-rules/user-edit-detector.js +0 -46
- package/dist/engine/validation/durable-validation.d.ts +0 -44
- package/dist/engine/validation/durable-validation.js +0 -344
- package/dist/engine/validation/validation-freshness.d.ts +0 -73
- package/dist/engine/validation/validation-freshness.js +0 -777
- package/dist/engine/validation/validation-receipt-codec.d.ts +0 -13
- package/dist/engine/validation/validation-receipt-codec.js +0 -184
- package/dist/engine/validation/validation-receipt.d.ts +0 -67
- package/dist/engine/validation/validation-receipt.js +0 -342
- package/dist/engine/validation/validation-source-digest.d.ts +0 -2
- package/dist/engine/validation/validation-source-digest.js +0 -86
- package/dist/engine/validation/validation-source-policy.d.ts +0 -4
- package/dist/engine/validation/validation-source-policy.js +0 -17
- package/dist/engine/validation/validation-submission.d.ts +0 -35
- package/dist/engine/validation/validation-submission.js +0 -142
- package/dist/engine/validation/validation-worktree.d.ts +0 -21
- package/dist/engine/validation/validation-worktree.js +0 -294
- package/dist/engine/validation-evidence-digest.d.ts +0 -4
- package/dist/engine/validation-evidence-digest.js +0 -83
- package/dist/engine/validation-evidence-ledger.d.ts +0 -30
- package/dist/engine/validation-evidence-ledger.js +0 -328
- package/dist/engine/validation-impact-planner.d.ts +0 -14
- package/dist/engine/validation-impact-planner.js +0 -74
- package/dist/engine/validation-loop.d.ts +0 -12
- package/dist/engine/validation-loop.js +0 -216
- package/dist/engine/validator/analyzer.d.ts +0 -23
- package/dist/engine/validator/analyzer.js +0 -495
- package/dist/engine/validator/blast-radius-gate.d.ts +0 -3
- package/dist/engine/validator/blast-radius-gate.js +0 -305
- package/dist/engine/validator/checklist.d.ts +0 -6
- package/dist/engine/validator/checklist.js +0 -147
- package/dist/engine/validator/deep-code-checker.d.ts +0 -49
- package/dist/engine/validator/deep-code-checker.js +0 -410
- package/dist/engine/validator/dor-dod.d.ts +0 -11
- package/dist/engine/validator/dor-dod.js +0 -338
- package/dist/engine/validator/executable-evidence.d.ts +0 -18
- package/dist/engine/validator/executable-evidence.js +0 -104
- package/dist/engine/validator/extractors.d.ts +0 -16
- package/dist/engine/validator/extractors.js +0 -105
- package/dist/engine/validator/gates/code-gates.d.ts +0 -14
- package/dist/engine/validator/gates/code-gates.js +0 -87
- package/dist/engine/validator/gates/convention-gates.d.ts +0 -13
- package/dist/engine/validator/gates/convention-gates.js +0 -84
- package/dist/engine/validator/gates/index.d.ts +0 -8
- package/dist/engine/validator/gates/index.js +0 -63
- package/dist/engine/validator/gates/test-gates.d.ts +0 -12
- package/dist/engine/validator/gates/test-gates.js +0 -105
- package/dist/engine/validator/holistic-report.d.ts +0 -11
- package/dist/engine/validator/holistic-report.js +0 -34
- package/dist/engine/validator/negative-predicate.d.ts +0 -17
- package/dist/engine/validator/negative-predicate.js +0 -240
- package/dist/engine/validator/package-json-evidence.d.ts +0 -3
- package/dist/engine/validator/package-json-evidence.js +0 -97
- package/dist/engine/validator/reliability-gate.d.ts +0 -4
- package/dist/engine/validator/reliability-gate.js +0 -81
- package/dist/engine/validator/scope-resolver.d.ts +0 -30
- package/dist/engine/validator/scope-resolver.js +0 -67
- package/dist/engine/validator/spec-compliance-runner.d.ts +0 -9
- package/dist/engine/validator/spec-compliance-runner.js +0 -849
- package/dist/engine/validator/test-evidence-grounding.d.ts +0 -64
- package/dist/engine/validator/test-evidence-grounding.js +0 -221
- package/dist/engine/validator/validation-report-writer.d.ts +0 -27
- package/dist/engine/validator/validation-report-writer.js +0 -208
- package/dist/engine/validator.d.ts +0 -19
- package/dist/engine/validator.js +0 -244
- package/dist/engine/verifier/bdd-entity-extractor.d.ts +0 -23
- package/dist/engine/verifier/bdd-entity-extractor.js +0 -227
- package/dist/engine/verifier/compliance-scorer.d.ts +0 -17
- package/dist/engine/verifier/compliance-scorer.js +0 -131
- package/dist/engine/verifier/criterion-matcher.d.ts +0 -22
- package/dist/engine/verifier/criterion-matcher.js +0 -309
- package/dist/engine/web-fetcher/registry-loader.d.ts +0 -7
- package/dist/engine/web-fetcher/registry-loader.js +0 -44
- package/dist/engine/whats-new.d.ts +0 -2
- package/dist/engine/whats-new.js +0 -42
- package/dist/errors/classified-degradation.d.ts +0 -3
- package/dist/errors/classified-degradation.js +0 -10
- package/dist/errors/degradation-sink.d.ts +0 -3
- package/dist/errors/degradation-sink.js +0 -5
- package/dist/errors/error-taxonomy.d.ts +0 -11
- package/dist/errors/error-taxonomy.js +0 -59
- package/dist/hosts/claude-code/coach.d.ts +0 -6
- package/dist/hosts/claude-code/coach.js +0 -10
- package/dist/hosts/claude-code/ux/subagent-publisher.d.ts +0 -20
- package/dist/hosts/claude-code/ux/subagent-publisher.js +0 -117
- package/dist/hosts/codex/config-scaffold.d.ts +0 -10
- package/dist/hosts/codex/config-scaffold.js +0 -102
- package/dist/hosts/codex/workspace-scope.d.ts +0 -43
- package/dist/hosts/codex/workspace-scope.js +0 -89
- package/dist/hosts/gemini/config-scaffold.d.ts +0 -14
- package/dist/hosts/gemini/config-scaffold.js +0 -165
- package/dist/i18n/index.d.ts +0 -61
- package/dist/i18n/index.js +0 -288
- package/dist/prompts/index.d.ts +0 -6
- package/dist/prompts/index.js +0 -121
- package/dist/resources/process.d.ts +0 -11
- package/dist/resources/process.js +0 -80
- package/dist/resources/registry.d.ts +0 -6
- package/dist/resources/registry.js +0 -16
- package/dist/resources/specs.d.ts +0 -11
- package/dist/resources/specs.js +0 -58
- package/dist/security/adapters/environment.d.ts +0 -12
- package/dist/security/adapters/environment.js +0 -25
- package/dist/security/adapters/local-file.d.ts +0 -12
- package/dist/security/adapters/local-file.js +0 -56
- package/dist/security/adapters/macos-keychain.d.ts +0 -20
- package/dist/security/adapters/macos-keychain.js +0 -151
- package/dist/security/redactor.d.ts +0 -5
- package/dist/security/redactor.js +0 -58
- package/dist/security/secret-provider.d.ts +0 -22
- package/dist/security/secret-provider.js +0 -107
- package/dist/storage/approval-operation-lock.d.ts +0 -7
- package/dist/storage/approval-operation-lock.js +0 -47
- package/dist/storage/approval-store.d.ts +0 -14
- package/dist/storage/approval-store.js +0 -117
- package/dist/storage/audit-trail-store.d.ts +0 -20
- package/dist/storage/audit-trail-store.js +0 -83
- package/dist/storage/base-store.d.ts +0 -69
- package/dist/storage/base-store.js +0 -195
- package/dist/storage/compliance-gate-config-store.d.ts +0 -4
- package/dist/storage/compliance-gate-config-store.js +0 -20
- package/dist/storage/convention-baseline.d.ts +0 -20
- package/dist/storage/convention-baseline.js +0 -62
- package/dist/storage/current-project.d.ts +0 -3
- package/dist/storage/current-project.js +0 -21
- package/dist/storage/file-mutex.d.ts +0 -14
- package/dist/storage/file-mutex.js +0 -47
- package/dist/storage/global-projects-store.d.ts +0 -53
- package/dist/storage/global-projects-store.js +0 -181
- package/dist/storage/global-store.d.ts +0 -82
- package/dist/storage/global-store.js +0 -246
- package/dist/storage/index.d.ts +0 -15
- package/dist/storage/index.js +0 -16
- package/dist/storage/knowledge-store/knowledge.d.ts +0 -25
- package/dist/storage/knowledge-store/knowledge.js +0 -112
- package/dist/storage/knowledge-store/sessions.d.ts +0 -16
- package/dist/storage/knowledge-store/sessions.js +0 -155
- package/dist/storage/knowledge-store.d.ts +0 -3
- package/dist/storage/knowledge-store.js +0 -8
- package/dist/storage/migrations/canonical-storage.d.ts +0 -15
- package/dist/storage/migrations/canonical-storage.js +0 -754
- package/dist/storage/migrations/sdd-core-v6.d.ts +0 -11
- package/dist/storage/migrations/sdd-core-v6.js +0 -873
- package/dist/storage/pattern-store.d.ts +0 -38
- package/dist/storage/pattern-store.js +0 -136
- package/dist/storage/project-identity.d.ts +0 -60
- package/dist/storage/project-identity.js +0 -454
- package/dist/storage/project-resolver.d.ts +0 -17
- package/dist/storage/project-resolver.js +0 -134
- package/dist/storage/retention.d.ts +0 -13
- package/dist/storage/retention.js +0 -383
- package/dist/storage/runtime-db.d.ts +0 -207
- package/dist/storage/runtime-db.js +0 -1313
- package/dist/storage/schema-registry.d.ts +0 -5
- package/dist/storage/schema-registry.js +0 -74
- package/dist/storage/spec-index.d.ts +0 -23
- package/dist/storage/spec-index.js +0 -117
- package/dist/storage/spec-lock-store.d.ts +0 -22
- package/dist/storage/spec-lock-store.js +0 -99
- package/dist/storage/spec-store.d.ts +0 -170
- package/dist/storage/spec-store.js +0 -968
- package/dist/storage/storage-bundle.d.ts +0 -16
- package/dist/storage/storage-bundle.js +0 -117
- package/dist/storage/storage-catalog-validation.d.ts +0 -3
- package/dist/storage/storage-catalog-validation.js +0 -20
- package/dist/storage/storage-catalog.d.ts +0 -25
- package/dist/storage/storage-catalog.js +0 -421
- package/dist/storage/storage-layout.d.ts +0 -40
- package/dist/storage/storage-layout.js +0 -117
- package/dist/storage/technology-selection-store.d.ts +0 -5
- package/dist/storage/technology-selection-store.js +0 -46
- package/dist/storage/transition-log.d.ts +0 -11
- package/dist/storage/transition-log.js +0 -234
- package/dist/tools/bump-spec-version.d.ts +0 -31
- package/dist/tools/bump-spec-version.js +0 -132
- package/dist/tools/challenge-spec/agent-challenge-scenarios.d.ts +0 -12
- package/dist/tools/challenge-spec/agent-challenge-scenarios.js +0 -129
- package/dist/tools/challenge-spec/architecture-challenge-scenarios.d.ts +0 -12
- package/dist/tools/challenge-spec/architecture-challenge-scenarios.js +0 -113
- package/dist/tools/challenge-spec/challenge-report.d.ts +0 -26
- package/dist/tools/challenge-spec/challenge-report.js +0 -221
- package/dist/tools/challenge-spec/event-challenge-scenarios.d.ts +0 -14
- package/dist/tools/challenge-spec/event-challenge-scenarios.js +0 -68
- package/dist/tools/challenge-spec/implementation-contract-challenge-scenarios.d.ts +0 -3
- package/dist/tools/challenge-spec/implementation-contract-challenge-scenarios.js +0 -51
- package/dist/tools/challenge-spec/platform-challenge-scenarios-b.d.ts +0 -7
- package/dist/tools/challenge-spec/platform-challenge-scenarios-b.js +0 -48
- package/dist/tools/challenge-spec/platform-challenge-scenarios-b1.d.ts +0 -4
- package/dist/tools/challenge-spec/platform-challenge-scenarios-b1.js +0 -109
- package/dist/tools/challenge-spec/platform-challenge-scenarios-b2.d.ts +0 -5
- package/dist/tools/challenge-spec/platform-challenge-scenarios-b2.js +0 -191
- package/dist/tools/challenge-spec/platform-challenge-scenarios.d.ts +0 -7
- package/dist/tools/challenge-spec/platform-challenge-scenarios.js +0 -224
- package/dist/tools/challenge-spec/resilience-challenge-scenarios-a.d.ts +0 -28
- package/dist/tools/challenge-spec/resilience-challenge-scenarios-a.js +0 -183
- package/dist/tools/challenge-spec/resilience-challenge-scenarios-b.d.ts +0 -14
- package/dist/tools/challenge-spec/resilience-challenge-scenarios-b.js +0 -144
- package/dist/tools/challenge-spec/resilience-challenge-scenarios.d.ts +0 -8
- package/dist/tools/challenge-spec/resilience-challenge-scenarios.js +0 -37
- package/dist/tools/challenge-spec/scenario-collector.d.ts +0 -13
- package/dist/tools/challenge-spec/scenario-collector.js +0 -84
- package/dist/tools/challenge-spec/scenarios-data.d.ts +0 -3
- package/dist/tools/challenge-spec/scenarios-data.js +0 -73
- package/dist/tools/challenge-spec/scenarios-desktop.d.ts +0 -7
- package/dist/tools/challenge-spec/scenarios-desktop.js +0 -91
- package/dist/tools/challenge-spec/scenarios-failure.d.ts +0 -3
- package/dist/tools/challenge-spec/scenarios-failure.js +0 -136
- package/dist/tools/challenge-spec/scenarios-game.d.ts +0 -6
- package/dist/tools/challenge-spec/scenarios-game.js +0 -71
- package/dist/tools/challenge-spec/scenarios-scale.d.ts +0 -3
- package/dist/tools/challenge-spec/scenarios-scale.js +0 -37
- package/dist/tools/challenge-spec/scenarios-security.d.ts +0 -3
- package/dist/tools/challenge-spec/scenarios-security.js +0 -85
- package/dist/tools/challenge-spec/scenarios-utils.d.ts +0 -42
- package/dist/tools/challenge-spec/scenarios-utils.js +0 -250
- package/dist/tools/challenge-spec-helpers.d.ts +0 -16
- package/dist/tools/challenge-spec-helpers.js +0 -152
- package/dist/tools/challenge-spec-scenarios.d.ts +0 -7
- package/dist/tools/challenge-spec-scenarios.js +0 -9
- package/dist/tools/challenge-spec.d.ts +0 -4
- package/dist/tools/challenge-spec.js +0 -448
- package/dist/tools/check-readiness.d.ts +0 -5
- package/dist/tools/check-readiness.js +0 -343
- package/dist/tools/claude-settings-file.d.ts +0 -3
- package/dist/tools/claude-settings-file.js +0 -19
- package/dist/tools/create-skill.d.ts +0 -4
- package/dist/tools/create-skill.js +0 -151
- package/dist/tools/create-spec/autopilot-analyzer.d.ts +0 -33
- package/dist/tools/create-spec/autopilot-analyzer.js +0 -171
- package/dist/tools/create-spec/constitution-validator.d.ts +0 -4
- package/dist/tools/create-spec/constitution-validator.js +0 -31
- package/dist/tools/create-spec/question-generator.d.ts +0 -4
- package/dist/tools/create-spec/question-generator.js +0 -25
- package/dist/tools/create-spec/relevance-scorer.d.ts +0 -18
- package/dist/tools/create-spec/relevance-scorer.js +0 -156
- package/dist/tools/create-spec/spec-builder.d.ts +0 -20
- package/dist/tools/create-spec/spec-builder.js +0 -274
- package/dist/tools/create-spec-helpers.d.ts +0 -4
- package/dist/tools/create-spec-helpers.js +0 -24
- package/dist/tools/create-spec-tech/constitution.d.ts +0 -7
- package/dist/tools/create-spec-tech/constitution.js +0 -79
- package/dist/tools/create-spec-tech.d.ts +0 -2
- package/dist/tools/create-spec-tech.js +0 -3
- package/dist/tools/create-spec.d.ts +0 -25
- package/dist/tools/create-spec.js +0 -1698
- package/dist/tools/git/git-helpers.d.ts +0 -20
- package/dist/tools/git/git-helpers.js +0 -33
- package/dist/tools/init-project/agents-md-writer.d.ts +0 -18
- package/dist/tools/init-project/agents-md-writer.js +0 -123
- package/dist/tools/init-project/config-builder.d.ts +0 -14
- package/dist/tools/init-project/config-builder.js +0 -19
- package/dist/tools/init-project/conventions-writer.d.ts +0 -11
- package/dist/tools/init-project/conventions-writer.js +0 -61
- package/dist/tools/init-project/handler.d.ts +0 -4
- package/dist/tools/init-project/handler.js +0 -463
- package/dist/tools/init-project/helpers.d.ts +0 -31
- package/dist/tools/init-project/helpers.js +0 -223
- package/dist/tools/init-project/host-assets-writer.d.ts +0 -28
- package/dist/tools/init-project/host-assets-writer.js +0 -240
- package/dist/tools/init-project/legacy-guidance-scanner.d.ts +0 -9
- package/dist/tools/init-project/legacy-guidance-scanner.js +0 -218
- package/dist/tools/init-project/legacy-root-migration.d.ts +0 -16
- package/dist/tools/init-project/legacy-root-migration.js +0 -213
- package/dist/tools/init-project/lifecycle-helpers.d.ts +0 -12
- package/dist/tools/init-project/lifecycle-helpers.js +0 -37
- package/dist/tools/init-project/managed-guidance-refresher.d.ts +0 -9
- package/dist/tools/init-project/managed-guidance-refresher.js +0 -65
- package/dist/tools/init-project/migration-runner.d.ts +0 -43
- package/dist/tools/init-project/migration-runner.js +0 -227
- package/dist/tools/init-project/portable-index-reconciler.d.ts +0 -32
- package/dist/tools/init-project/portable-index-reconciler.js +0 -278
- package/dist/tools/init-project/result-builder.d.ts +0 -4
- package/dist/tools/init-project/result-builder.js +0 -272
- package/dist/tools/init-project/scaffold-verifier.d.ts +0 -6
- package/dist/tools/init-project/scaffold-verifier.js +0 -97
- package/dist/tools/init-project/scaffold-writer.d.ts +0 -49
- package/dist/tools/init-project/scaffold-writer.js +0 -50
- package/dist/tools/init-project.d.ts +0 -2
- package/dist/tools/init-project.js +0 -4
- package/dist/tools/jobs/handlers.d.ts +0 -11
- package/dist/tools/jobs/handlers.js +0 -152
- package/dist/tools/list-specs.d.ts +0 -3
- package/dist/tools/list-specs.js +0 -323
- package/dist/tools/output-formatter.d.ts +0 -34
- package/dist/tools/output-formatter.js +0 -171
- package/dist/tools/output-integrity-guard.d.ts +0 -3
- package/dist/tools/output-integrity-guard.js +0 -53
- package/dist/tools/package-handoff.d.ts +0 -4
- package/dist/tools/package-handoff.js +0 -215
- package/dist/tools/reconcile-spec-sanctity-hook.d.ts +0 -3
- package/dist/tools/reconcile-spec-sanctity-hook.js +0 -55
- package/dist/tools/reconcile-spec.d.ts +0 -4
- package/dist/tools/reconcile-spec.js +0 -572
- package/dist/tools/register-sdd-tools.d.ts +0 -4
- package/dist/tools/register-sdd-tools.js +0 -13
- package/dist/tools/resolve-project-id.d.ts +0 -58
- package/dist/tools/resolve-project-id.js +0 -103
- package/dist/tools/resolve-project-path.d.ts +0 -27
- package/dist/tools/resolve-project-path.js +0 -172
- package/dist/tools/response-helpers.d.ts +0 -70
- package/dist/tools/response-helpers.js +0 -139
- package/dist/tools/safe-handler.d.ts +0 -36
- package/dist/tools/safe-handler.js +0 -283
- package/dist/tools/sanitize-path.d.ts +0 -13
- package/dist/tools/sanitize-path.js +0 -60
- package/dist/tools/schemas/agents.d.ts +0 -21
- package/dist/tools/schemas/agents.js +0 -9
- package/dist/tools/schemas/analysis.d.ts +0 -28
- package/dist/tools/schemas/analysis.js +0 -22
- package/dist/tools/schemas/index.d.ts +0 -8
- package/dist/tools/schemas/index.js +0 -9
- package/dist/tools/schemas/infra.d.ts +0 -19
- package/dist/tools/schemas/infra.js +0 -18
- package/dist/tools/schemas/lifecycle.d.ts +0 -88
- package/dist/tools/schemas/lifecycle.js +0 -85
- package/dist/tools/schemas/output-schemas.d.ts +0 -115
- package/dist/tools/schemas/output-schemas.js +0 -136
- package/dist/tools/schemas/package-handoff-output-schema.d.ts +0 -41
- package/dist/tools/schemas/package-handoff-output-schema.js +0 -70
- package/dist/tools/schemas/spec-id.d.ts +0 -2
- package/dist/tools/schemas/spec-id.js +0 -2
- package/dist/tools/schemas/spec.d.ts +0 -51
- package/dist/tools/schemas/spec.js +0 -41
- package/dist/tools/schemas/validate-output-schema.d.ts +0 -276
- package/dist/tools/schemas/validate-output-schema.js +0 -225
- package/dist/tools/status-handler.d.ts +0 -3
- package/dist/tools/status-handler.js +0 -242
- package/dist/tools/tool-entry.d.ts +0 -52
- package/dist/tools/tool-entry.js +0 -46
- package/dist/tools/tool-registry/core-tools.d.ts +0 -4
- package/dist/tools/tool-registry/core-tools.js +0 -581
- package/dist/tools/tool-registry/inventory.d.ts +0 -2
- package/dist/tools/tool-registry/inventory.js +0 -2
- package/dist/tools/tool-registry-helpers.d.ts +0 -34
- package/dist/tools/tool-registry-helpers.js +0 -45
- package/dist/tools/update-status/approval-gates.d.ts +0 -13
- package/dist/tools/update-status/approval-gates.js +0 -108
- package/dist/tools/update-status/batch.d.ts +0 -7
- package/dist/tools/update-status/batch.js +0 -176
- package/dist/tools/update-status/dod-gates.d.ts +0 -117
- package/dist/tools/update-status/dod-gates.js +0 -847
- package/dist/tools/update-status/done-receipt-verifier.d.ts +0 -38
- package/dist/tools/update-status/done-receipt-verifier.js +0 -208
- package/dist/tools/update-status/evidence-gate.d.ts +0 -16
- package/dist/tools/update-status/evidence-gate.js +0 -361
- package/dist/tools/update-status/evidence-payload.d.ts +0 -180
- package/dist/tools/update-status/evidence-payload.js +0 -79
- package/dist/tools/update-status/file-sync.d.ts +0 -37
- package/dist/tools/update-status/file-sync.js +0 -223
- package/dist/tools/update-status/gate-harness.d.ts +0 -8
- package/dist/tools/update-status/gate-harness.js +0 -8
- package/dist/tools/update-status/index.d.ts +0 -25
- package/dist/tools/update-status/index.js +0 -1487
- package/dist/tools/update-status/response-builder.d.ts +0 -17
- package/dist/tools/update-status/response-builder.js +0 -297
- package/dist/tools/update-status/side-effects.d.ts +0 -16
- package/dist/tools/update-status/side-effects.js +0 -117
- package/dist/tools/update-status/transition-guard.d.ts +0 -85
- package/dist/tools/update-status/transition-guard.js +0 -752
- package/dist/tools/update-status-actions.d.ts +0 -6
- package/dist/tools/update-status-actions.js +0 -19
- package/dist/tools/update-status-convention-gate.d.ts +0 -9
- package/dist/tools/update-status-convention-gate.js +0 -330
- package/dist/tools/update-status.d.ts +0 -2
- package/dist/tools/update-status.js +0 -3
- package/dist/tools/validate-assurance.d.ts +0 -6
- package/dist/tools/validate-assurance.js +0 -55
- package/dist/tools/validate-graph-coverage.d.ts +0 -8
- package/dist/tools/validate-graph-coverage.js +0 -54
- package/dist/tools/validate-helpers.d.ts +0 -10
- package/dist/tools/validate-helpers.js +0 -65
- package/dist/tools/validate-lint.d.ts +0 -9
- package/dist/tools/validate-lint.js +0 -170
- package/dist/tools/validate-minimality.d.ts +0 -16
- package/dist/tools/validate-minimality.js +0 -22
- package/dist/tools/validate-structured-compat.d.ts +0 -19
- package/dist/tools/validate-structured-compat.js +0 -14
- package/dist/tools/validate.d.ts +0 -8
- package/dist/tools/validate.js +0 -1039
- package/dist/transports/transport-factory.d.ts +0 -5
- package/dist/transports/transport-factory.js +0 -182
- package/dist/types/abortable-process.d.ts +0 -29
- package/dist/types/abortable-process.js +0 -2
- package/dist/types/agent-team.d.ts +0 -17
- package/dist/types/agent-team.js +0 -3
- package/dist/types/ai-assurance.d.ts +0 -32
- package/dist/types/ai-assurance.js +0 -2
- package/dist/types/ai-native.d.ts +0 -16
- package/dist/types/ai-native.js +0 -3
- package/dist/types/analysis.d.ts +0 -238
- package/dist/types/analysis.js +0 -3
- package/dist/types/approval.d.ts +0 -66
- package/dist/types/approval.js +0 -6
- package/dist/types/architecture.d.ts +0 -101
- package/dist/types/architecture.js +0 -4
- package/dist/types/audit.d.ts +0 -38
- package/dist/types/audit.js +0 -4
- package/dist/types/build-freshness.d.ts +0 -11
- package/dist/types/build-freshness.js +0 -2
- package/dist/types/clarification-token.d.ts +0 -46
- package/dist/types/clarification-token.js +0 -2
- package/dist/types/clarification.d.ts +0 -23
- package/dist/types/clarification.js +0 -5
- package/dist/types/claude-code-runtime.d.ts +0 -91
- package/dist/types/claude-code-runtime.js +0 -5
- package/dist/types/claude-code-ux.d.ts +0 -62
- package/dist/types/claude-code-ux.js +0 -5
- package/dist/types/cli.d.ts +0 -40
- package/dist/types/cli.js +0 -3
- package/dist/types/codex.d.ts +0 -108
- package/dist/types/codex.js +0 -3
- package/dist/types/common/index.d.ts +0 -4
- package/dist/types/common/index.js +0 -6
- package/dist/types/common/learning.d.ts +0 -43
- package/dist/types/common/learning.js +0 -3
- package/dist/types/common/tech-enums.d.ts +0 -8
- package/dist/types/common/tech-enums.js +0 -2
- package/dist/types/complexity-budget.d.ts +0 -17
- package/dist/types/complexity-budget.js +0 -5
- package/dist/types/compliance-gate.d.ts +0 -5
- package/dist/types/compliance-gate.js +0 -3
- package/dist/types/context.d.ts +0 -52
- package/dist/types/context.js +0 -4
- package/dist/types/conventions.d.ts +0 -135
- package/dist/types/conventions.js +0 -5
- package/dist/types/core-bridge.d.ts +0 -130
- package/dist/types/core-bridge.js +0 -3
- package/dist/types/criterion-identity.d.ts +0 -12
- package/dist/types/criterion-identity.js +0 -2
- package/dist/types/cross-repo-search.d.ts +0 -81
- package/dist/types/cross-repo-search.js +0 -9
- package/dist/types/decisions.d.ts +0 -19
- package/dist/types/decisions.js +0 -4
- package/dist/types/durable-job.d.ts +0 -119
- package/dist/types/durable-job.js +0 -10
- package/dist/types/durable-validation.d.ts +0 -158
- package/dist/types/durable-validation.js +0 -166
- package/dist/types/edge-db.d.ts +0 -21
- package/dist/types/edge-db.js +0 -9
- package/dist/types/elicitation.d.ts +0 -115
- package/dist/types/elicitation.js +0 -13
- package/dist/types/env.d.ts +0 -94
- package/dist/types/env.js +0 -3
- package/dist/types/errors/structured-error.d.ts +0 -37
- package/dist/types/errors/structured-error.js +0 -3
- package/dist/types/estimation.d.ts +0 -29
- package/dist/types/estimation.js +0 -5
- package/dist/types/events.d.ts +0 -18
- package/dist/types/events.js +0 -4
- package/dist/types/evidence-autofill.d.ts +0 -40
- package/dist/types/evidence-autofill.js +0 -3
- package/dist/types/evidence-gates.d.ts +0 -103
- package/dist/types/evidence-gates.js +0 -2
- package/dist/types/evidence-index.d.ts +0 -26
- package/dist/types/evidence-index.js +0 -2
- package/dist/types/execution.d.ts +0 -103
- package/dist/types/execution.js +0 -2
- package/dist/types/frontmatter.d.ts +0 -5
- package/dist/types/frontmatter.js +0 -2
- package/dist/types/gemini.d.ts +0 -124
- package/dist/types/gemini.js +0 -3
- package/dist/types/handoff-artifacts.d.ts +0 -182
- package/dist/types/handoff-artifacts.js +0 -3
- package/dist/types/host-rules.d.ts +0 -10
- package/dist/types/host-rules.js +0 -3
- package/dist/types/host-tool-filter.d.ts +0 -31
- package/dist/types/host-tool-filter.js +0 -3
- package/dist/types/housekeeping.d.ts +0 -8
- package/dist/types/housekeeping.js +0 -22
- package/dist/types/index.d.ts +0 -81
- package/dist/types/index.js +0 -94
- package/dist/types/interactive-question.d.ts +0 -19
- package/dist/types/interactive-question.js +0 -3
- package/dist/types/keyword-matcher.d.ts +0 -38
- package/dist/types/keyword-matcher.js +0 -3
- package/dist/types/legacy-guidance.d.ts +0 -24
- package/dist/types/legacy-guidance.js +0 -3
- package/dist/types/legal.d.ts +0 -44
- package/dist/types/legal.js +0 -5
- package/dist/types/living-spec/annotations.d.ts +0 -36
- package/dist/types/living-spec/annotations.js +0 -23
- package/dist/types/living-spec.d.ts +0 -2
- package/dist/types/living-spec.js +0 -6
- package/dist/types/llm-security.d.ts +0 -19
- package/dist/types/llm-security.js +0 -4
- package/dist/types/local-first.d.ts +0 -25
- package/dist/types/local-first.js +0 -10
- package/dist/types/mcp.d.ts +0 -34
- package/dist/types/mcp.js +0 -4
- package/dist/types/migration/canonical-storage.d.ts +0 -38
- package/dist/types/migration/canonical-storage.js +0 -2
- package/dist/types/minimal-implementation-gate.d.ts +0 -98
- package/dist/types/minimal-implementation-gate.js +0 -2
- package/dist/types/model-routing.d.ts +0 -25
- package/dist/types/model-routing.js +0 -26
- package/dist/types/multi-agent.d.ts +0 -18
- package/dist/types/multi-agent.js +0 -18
- package/dist/types/nli-context.d.ts +0 -25
- package/dist/types/nli-context.js +0 -2
- package/dist/types/opencode.d.ts +0 -4
- package/dist/types/opencode.js +0 -3
- package/dist/types/paradigm.d.ts +0 -99
- package/dist/types/paradigm.js +0 -11
- package/dist/types/privacy.d.ts +0 -81
- package/dist/types/privacy.js +0 -25
- package/dist/types/project/agent.d.ts +0 -13
- package/dist/types/project/agent.js +0 -3
- package/dist/types/project/architecture-detection.d.ts +0 -24
- package/dist/types/project/architecture-detection.js +0 -2
- package/dist/types/project/config-metrics.d.ts +0 -10
- package/dist/types/project/config-metrics.js +0 -2
- package/dist/types/project/constitution.d.ts +0 -26
- package/dist/types/project/constitution.js +0 -3
- package/dist/types/project/core.d.ts +0 -137
- package/dist/types/project/core.js +0 -7
- package/dist/types/project/health-checker.d.ts +0 -13
- package/dist/types/project/health-checker.js +0 -3
- package/dist/types/project/inputs.d.ts +0 -39
- package/dist/types/project/inputs.js +0 -5
- package/dist/types/project/legacy-artifacts.d.ts +0 -7
- package/dist/types/project/legacy-artifacts.js +0 -2
- package/dist/types/project/library-groups.d.ts +0 -112
- package/dist/types/project/library-groups.js +0 -4
- package/dist/types/project/mfe-detection.d.ts +0 -19
- package/dist/types/project/mfe-detection.js +0 -3
- package/dist/types/project/planu-config.d.ts +0 -142
- package/dist/types/project/planu-config.js +0 -2
- package/dist/types/project/platform-exotic.d.ts +0 -108
- package/dist/types/project/platform-exotic.js +0 -3
- package/dist/types/project/platform-mobile.d.ts +0 -7
- package/dist/types/project/platform-mobile.js +0 -3
- package/dist/types/project/platform-specialty.d.ts +0 -17
- package/dist/types/project/platform-specialty.js +0 -3
- package/dist/types/project/scaffold-verification.d.ts +0 -15
- package/dist/types/project/scaffold-verification.js +0 -2
- package/dist/types/project-knowledge-graph.d.ts +0 -227
- package/dist/types/project-knowledge-graph.js +0 -2
- package/dist/types/project.d.ts +0 -11
- package/dist/types/project.js +0 -13
- package/dist/types/readiness.d.ts +0 -82
- package/dist/types/readiness.js +0 -7
- package/dist/types/reconcile.d.ts +0 -41
- package/dist/types/reconcile.js +0 -9
- package/dist/types/retention.d.ts +0 -12
- package/dist/types/retention.js +0 -3
- package/dist/types/reviewer-tokens.d.ts +0 -58
- package/dist/types/reviewer-tokens.js +0 -4
- package/dist/types/runtime-database.d.ts +0 -10
- package/dist/types/runtime-database.js +0 -2
- package/dist/types/runtime-policy.d.ts +0 -62
- package/dist/types/runtime-policy.js +0 -2
- package/dist/types/safe-schemas.d.ts +0 -12
- package/dist/types/safe-schemas.js +0 -27
- package/dist/types/safety.d.ts +0 -42
- package/dist/types/safety.js +0 -3
- package/dist/types/scan-project.d.ts +0 -20
- package/dist/types/scan-project.js +0 -4
- package/dist/types/schema-registry.d.ts +0 -12
- package/dist/types/schema-registry.js +0 -2
- package/dist/types/scope-boundaries.d.ts +0 -62
- package/dist/types/scope-boundaries.js +0 -3
- package/dist/types/scope.d.ts +0 -89
- package/dist/types/scope.js +0 -3
- package/dist/types/sdd-constitution.d.ts +0 -27
- package/dist/types/sdd-constitution.js +0 -2
- package/dist/types/sdd-core-v6.d.ts +0 -62
- package/dist/types/sdd-core-v6.js +0 -2
- package/dist/types/sdd-flow.d.ts +0 -3
- package/dist/types/sdd-flow.js +0 -3
- package/dist/types/sdd-model-routing.d.ts +0 -22
- package/dist/types/sdd-model-routing.js +0 -2
- package/dist/types/security.d.ts +0 -20
- package/dist/types/security.js +0 -4
- package/dist/types/skill-bootstrap.d.ts +0 -7
- package/dist/types/skill-bootstrap.js +0 -3
- package/dist/types/spec/clarification.d.ts +0 -86
- package/dist/types/spec/clarification.js +0 -2
- package/dist/types/spec/core.d.ts +0 -414
- package/dist/types/spec/core.js +0 -3
- package/dist/types/spec/health-score.d.ts +0 -25
- package/dist/types/spec/health-score.js +0 -2
- package/dist/types/spec/index-cache.d.ts +0 -25
- package/dist/types/spec/index-cache.js +0 -3
- package/dist/types/spec/index.d.ts +0 -7
- package/dist/types/spec/index.js +0 -9
- package/dist/types/spec/inputs.d.ts +0 -250
- package/dist/types/spec/inputs.js +0 -7
- package/dist/types/spec/versioning.d.ts +0 -39
- package/dist/types/spec/versioning.js +0 -3
- package/dist/types/spec-format.d.ts +0 -211
- package/dist/types/spec-format.js +0 -3
- package/dist/types/spec-generator.d.ts +0 -32
- package/dist/types/spec-generator.js +0 -2
- package/dist/types/spec-grounding.d.ts +0 -48
- package/dist/types/spec-grounding.js +0 -2
- package/dist/types/spec-language-translation.d.ts +0 -19
- package/dist/types/spec-language-translation.js +0 -5
- package/dist/types/spec-language.d.ts +0 -8
- package/dist/types/spec-language.js +0 -2
- package/dist/types/spec-lock-v2.d.ts +0 -66
- package/dist/types/spec-lock-v2.js +0 -4
- package/dist/types/spec-lock.d.ts +0 -14
- package/dist/types/spec-lock.js +0 -8
- package/dist/types/spec-quality.d.ts +0 -82
- package/dist/types/spec-quality.js +0 -6
- package/dist/types/stack/build-tool.d.ts +0 -13
- package/dist/types/stack/build-tool.js +0 -5
- package/dist/types/stack/hypermedia.d.ts +0 -4
- package/dist/types/stack/hypermedia.js +0 -3
- package/dist/types/stack/index.d.ts +0 -4
- package/dist/types/stack/index.js +0 -4
- package/dist/types/stack/recommend.d.ts +0 -38
- package/dist/types/stack/recommend.js +0 -3
- package/dist/types/status.d.ts +0 -27
- package/dist/types/status.js +0 -6
- package/dist/types/storage-catalog.d.ts +0 -21
- package/dist/types/storage-catalog.js +0 -2
- package/dist/types/supply-chain.d.ts +0 -49
- package/dist/types/supply-chain.js +0 -25
- package/dist/types/technology-registry.d.ts +0 -36
- package/dist/types/technology-registry.js +0 -2
- package/dist/types/technology-selection.d.ts +0 -78
- package/dist/types/technology-selection.js +0 -3
- package/dist/types/technology-symbols.generated.d.ts +0 -117
- package/dist/types/technology-symbols.generated.js +0 -2
- package/dist/types/testing.d.ts +0 -17
- package/dist/types/testing.js +0 -10
- package/dist/types/timing.d.ts +0 -18
- package/dist/types/timing.js +0 -3
- package/dist/types/transition-log.d.ts +0 -78
- package/dist/types/transition-log.js +0 -4
- package/dist/types/transport.d.ts +0 -6
- package/dist/types/transport.js +0 -4
- package/dist/types/universal-rules/index.d.ts +0 -69
- package/dist/types/universal-rules/index.js +0 -4
- package/dist/types/validate-worker.d.ts +0 -50
- package/dist/types/validate-worker.js +0 -2
- package/dist/types/validation-config.d.ts +0 -36
- package/dist/types/validation-config.js +0 -2
- package/dist/types/validation-evidence.d.ts +0 -177
- package/dist/types/validation-evidence.js +0 -2
- package/dist/types/validation-loop.d.ts +0 -26
- package/dist/types/validation-loop.js +0 -3
- package/dist/types/validation-receipt.d.ts +0 -126
- package/dist/types/validation-receipt.js +0 -2
- package/dist/types/validation.d.ts +0 -67
- package/dist/types/validation.js +0 -3
- package/dist/types/verifiable-criteria.d.ts +0 -31
- package/dist/types/verifiable-criteria.js +0 -10
- package/src/i18n/messages/en.json +0 -184
- package/src/i18n/messages/es.json +0 -184
- package/src/i18n/messages/pt.json +0 -184
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { createHash } from 'node:crypto';
|
|
2
|
-
import { readFileSync } from 'node:fs';
|
|
3
|
-
import { reportClassifiedDegradation } from '../errors/classified-degradation.js';
|
|
4
|
-
let reportedReadFailure = false;
|
|
5
|
-
export function findDuplicateBlocks(paths, minLines) {
|
|
6
|
-
if (paths.length === 0 || minLines <= 0) {
|
|
7
|
-
return [];
|
|
8
|
-
}
|
|
9
|
-
const blocks = new Map();
|
|
10
|
-
for (const path of paths) {
|
|
11
|
-
scanFile(path, minLines, blocks);
|
|
12
|
-
}
|
|
13
|
-
return Array.from(blocks, ([hash, locations]) => ({ hash, locations })).filter(({ locations }) => locations.length >= 2);
|
|
14
|
-
}
|
|
15
|
-
function scanFile(path, minLines, blocks) {
|
|
16
|
-
let raw;
|
|
17
|
-
try {
|
|
18
|
-
raw = readFileSync(path, 'utf8')
|
|
19
|
-
.replace(/\/\*[\s\S]*?\*\//gu, '')
|
|
20
|
-
.split('\n');
|
|
21
|
-
}
|
|
22
|
-
catch {
|
|
23
|
-
/* reliability-optional: CORE_BRIDGE_DUPLICATE_READ_FAILED */
|
|
24
|
-
if (!reportedReadFailure) {
|
|
25
|
-
reportedReadFailure = true;
|
|
26
|
-
reportClassifiedDegradation('CORE_BRIDGE_DUPLICATE_READ_FAILED', new Error('Duplicate scan skipped an unreadable input'));
|
|
27
|
-
}
|
|
28
|
-
return;
|
|
29
|
-
}
|
|
30
|
-
const normalized = raw.flatMap((line, index) => {
|
|
31
|
-
const text = line
|
|
32
|
-
.replace(/\/\/.*$/u, '')
|
|
33
|
-
.trim()
|
|
34
|
-
.toLowerCase();
|
|
35
|
-
return text ? [{ text, index: index + 1 }] : [];
|
|
36
|
-
});
|
|
37
|
-
for (let index = 0; index <= normalized.length - minLines; index += 1) {
|
|
38
|
-
const window = normalized.slice(index, index + minLines);
|
|
39
|
-
const first = window[0];
|
|
40
|
-
const last = window.at(-1);
|
|
41
|
-
if (!first || !last) {
|
|
42
|
-
continue;
|
|
43
|
-
}
|
|
44
|
-
const lines = window.map(({ text }) => text);
|
|
45
|
-
const hash = createHash('sha256').update(lines.join('\n')).digest('hex').slice(0, 16);
|
|
46
|
-
const location = { path, startLine: first.index, endLine: last.index, lines };
|
|
47
|
-
const existing = blocks.get(hash);
|
|
48
|
-
if (existing) {
|
|
49
|
-
existing.push(location);
|
|
50
|
-
}
|
|
51
|
-
else {
|
|
52
|
-
blocks.set(hash, [location]);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
//# sourceMappingURL=core-bridge-duplicate-blocks.js.map
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { GapsLogChainResultRs } from '../types/core-bridge.js';
|
|
2
|
-
export declare function verifyGapsChain(filePath: string): GapsLogChainResultRs;
|
|
3
|
-
export declare function appendGapEntry(filePath: string, id: string, timestamp: string, specId: string, description: string, severity: string, affectedSpecs: string[]): string;
|
|
4
|
-
//# sourceMappingURL=core-bridge-gaps.d.ts.map
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { createHash } from 'node:crypto';
|
|
2
|
-
import { appendFileSync, existsSync, mkdirSync, readFileSync } from 'node:fs';
|
|
3
|
-
import { dirname } from 'node:path';
|
|
4
|
-
import { reportClassifiedDegradation } from '../errors/classified-degradation.js';
|
|
5
|
-
export function verifyGapsChain(filePath) {
|
|
6
|
-
if (!existsSync(filePath)) {
|
|
7
|
-
return { valid: true, totalEntries: 0, brokenAt: null };
|
|
8
|
-
}
|
|
9
|
-
let lines;
|
|
10
|
-
try {
|
|
11
|
-
lines = readFileSync(filePath, 'utf8').split('\n');
|
|
12
|
-
}
|
|
13
|
-
catch (error) {
|
|
14
|
-
reportClassifiedDegradation('CORE_BRIDGE_GAPS_READ_FAILED', error);
|
|
15
|
-
return { valid: false, totalEntries: 0, brokenAt: 0 };
|
|
16
|
-
}
|
|
17
|
-
let previousSha = '';
|
|
18
|
-
let count = 0;
|
|
19
|
-
for (let index = 0; index < lines.length; index += 1) {
|
|
20
|
-
const line = lines[index]?.trim();
|
|
21
|
-
if (!line) {
|
|
22
|
-
continue;
|
|
23
|
-
}
|
|
24
|
-
const entry = parseEntry(line, index, count);
|
|
25
|
-
if (entry?.prevSha !== previousSha) {
|
|
26
|
-
return { valid: false, totalEntries: count, brokenAt: index };
|
|
27
|
-
}
|
|
28
|
-
const sha = typeof entry.sha === 'string' ? entry.sha : '';
|
|
29
|
-
const { sha: _discarded, ...unsigned } = entry;
|
|
30
|
-
if (sha !== createHash('sha256').update(JSON.stringify(unsigned)).digest('hex')) {
|
|
31
|
-
return { valid: false, totalEntries: count, brokenAt: index };
|
|
32
|
-
}
|
|
33
|
-
previousSha = sha;
|
|
34
|
-
count += 1;
|
|
35
|
-
}
|
|
36
|
-
return { valid: true, totalEntries: count, brokenAt: null };
|
|
37
|
-
}
|
|
38
|
-
function parseEntry(line, index, count) {
|
|
39
|
-
try {
|
|
40
|
-
return JSON.parse(line);
|
|
41
|
-
}
|
|
42
|
-
catch (error) {
|
|
43
|
-
reportClassifiedDegradation(`CORE_BRIDGE_GAPS_ENTRY_INVALID_${String(index)}_${String(count)}`, error);
|
|
44
|
-
return null;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
export function appendGapEntry(filePath, id, timestamp, specId, description, severity, affectedSpecs) {
|
|
48
|
-
let previousSha = '';
|
|
49
|
-
if (existsSync(filePath)) {
|
|
50
|
-
const last = readFileSync(filePath, 'utf8').trim().split('\n').at(-1);
|
|
51
|
-
if (last) {
|
|
52
|
-
const entry = parseEntry(last, 0, 0);
|
|
53
|
-
if (!entry) {
|
|
54
|
-
throw new Error('[Planu] Existing gaps chain tail is invalid');
|
|
55
|
-
}
|
|
56
|
-
previousSha = typeof entry.sha === 'string' ? entry.sha : '';
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
else {
|
|
60
|
-
mkdirSync(dirname(filePath), { recursive: true });
|
|
61
|
-
}
|
|
62
|
-
const entry = {
|
|
63
|
-
id,
|
|
64
|
-
timestamp,
|
|
65
|
-
specId,
|
|
66
|
-
description,
|
|
67
|
-
severity,
|
|
68
|
-
affectedSpecs,
|
|
69
|
-
prevSha: previousSha,
|
|
70
|
-
};
|
|
71
|
-
const sha = createHash('sha256').update(JSON.stringify(entry)).digest('hex');
|
|
72
|
-
appendFileSync(filePath, `${JSON.stringify({ ...entry, sha })}\n`);
|
|
73
|
-
return sha;
|
|
74
|
-
}
|
|
75
|
-
//# sourceMappingURL=core-bridge-gaps.js.map
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { AffectedNodeRs, CompactGraphSliceRs, GraphEdgeInputRs, GraphNodeInputRs, ProjectGraphLimitsPolicyRs, ProjectGraphSourceFileRs, ResolvedProjectGraphLimitsRs, ShortestPathResultRs, TsRelationRs } from '../types/core-bridge.js';
|
|
2
|
-
export declare function resolveProjectGraphLimits(policy: ProjectGraphLimitsPolicyRs, overrides?: Partial<ResolvedProjectGraphLimitsRs>): ResolvedProjectGraphLimitsRs;
|
|
3
|
-
export declare function validateResolvedLimits(limits: ResolvedProjectGraphLimitsRs): void;
|
|
4
|
-
export declare function tsScanProjectGraphSources(rootPath: string, limits: ResolvedProjectGraphLimitsRs): ProjectGraphSourceFileRs[];
|
|
5
|
-
export declare function tsExtractTsRelations(rootPath: string, paths: string[], limits: ResolvedProjectGraphLimitsRs): TsRelationRs[];
|
|
6
|
-
export declare function tsQueryAffectedNodes(seed: string, edges: GraphEdgeInputRs[], relationFilter: string[], limits: ResolvedProjectGraphLimitsRs): AffectedNodeRs[];
|
|
7
|
-
export declare function tsQueryShortestPath(from: string, to: string, edges: GraphEdgeInputRs[], relationFilter: string[], limits: ResolvedProjectGraphLimitsRs): ShortestPathResultRs;
|
|
8
|
-
export declare function tsSelectCompactGraphSlice(seeds: string[], nodes: GraphNodeInputRs[], edges: GraphEdgeInputRs[], limits: ResolvedProjectGraphLimitsRs): CompactGraphSliceRs;
|
|
9
|
-
//# sourceMappingURL=core-bridge-project-graph.d.ts.map
|
|
@@ -1,499 +0,0 @@
|
|
|
1
|
-
import { createHash } from 'node:crypto';
|
|
2
|
-
import { closeSync, fstatSync, lstatSync, openSync, readSync, readdirSync, realpathSync, } from 'node:fs';
|
|
3
|
-
import { extname, isAbsolute, join, relative, sep } from 'node:path';
|
|
4
|
-
const PROJECT_GRAPH_EXTS = new Set(['.ts', '.tsx', '.js', '.jsx', '.json', '.md']);
|
|
5
|
-
const PROJECT_GRAPH_CODE_EXTS = new Set(['.ts', '.tsx', '.js', '.jsx']);
|
|
6
|
-
const IGNORED_DIRS = new Set([
|
|
7
|
-
'node_modules',
|
|
8
|
-
'.git',
|
|
9
|
-
'dist',
|
|
10
|
-
'build',
|
|
11
|
-
'coverage',
|
|
12
|
-
'.next',
|
|
13
|
-
'target',
|
|
14
|
-
'npm',
|
|
15
|
-
]);
|
|
16
|
-
class ProjectGraphError extends Error {
|
|
17
|
-
code;
|
|
18
|
-
constructor(code, message) {
|
|
19
|
-
super(`${code}: ${message}`);
|
|
20
|
-
this.code = code;
|
|
21
|
-
this.name = 'ProjectGraphError';
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
function compareText(left, right) {
|
|
25
|
-
return left < right ? -1 : left > right ? 1 : 0;
|
|
26
|
-
}
|
|
27
|
-
function compareTuple(left, right) {
|
|
28
|
-
for (let index = 0; index < Math.max(left.length, right.length); index += 1) {
|
|
29
|
-
const compared = compareText(left[index] ?? '', right[index] ?? '');
|
|
30
|
-
if (compared !== 0) {
|
|
31
|
-
return compared;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
return 0;
|
|
35
|
-
}
|
|
36
|
-
function validateLimit(name, value, hard) {
|
|
37
|
-
if (!Number.isSafeInteger(value) || !Number.isSafeInteger(hard) || value <= 0 || value > hard) {
|
|
38
|
-
throw new ProjectGraphError('PROJECT_GRAPH_INVALID_LIMIT', `${name} must be an integer between 1 and its hard cap (${String(hard)}), received ${String(value)}`);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
export function resolveProjectGraphLimits(policy, overrides = {}) {
|
|
42
|
-
const candidate = policy;
|
|
43
|
-
if (candidate.operational === undefined || candidate.hard === undefined) {
|
|
44
|
-
throw new ProjectGraphError('PROJECT_GRAPH_INVALID_LIMIT', 'project graph limits policy must include operational and hard values');
|
|
45
|
-
}
|
|
46
|
-
const resolved = {
|
|
47
|
-
maxFiles: overrides.maxFiles ?? policy.operational.maxFiles,
|
|
48
|
-
maxFileBytes: overrides.maxFileBytes ?? policy.operational.maxFileBytes,
|
|
49
|
-
maxNodes: overrides.maxNodes ?? policy.operational.maxNodes,
|
|
50
|
-
maxEdges: overrides.maxEdges ?? policy.operational.maxEdges,
|
|
51
|
-
maxDepth: overrides.maxDepth ?? policy.operational.maxDepth,
|
|
52
|
-
hardMaxFiles: policy.hard.maxFiles,
|
|
53
|
-
hardMaxFileBytes: policy.hard.maxFileBytes,
|
|
54
|
-
hardMaxNodes: policy.hard.maxNodes,
|
|
55
|
-
hardMaxEdges: policy.hard.maxEdges,
|
|
56
|
-
hardMaxDepth: policy.hard.maxDepth,
|
|
57
|
-
};
|
|
58
|
-
validateResolvedLimits(resolved);
|
|
59
|
-
return resolved;
|
|
60
|
-
}
|
|
61
|
-
export function validateResolvedLimits(limits) {
|
|
62
|
-
validateLimit('maxFiles', limits.maxFiles, limits.hardMaxFiles);
|
|
63
|
-
validateLimit('maxFileBytes', limits.maxFileBytes, limits.hardMaxFileBytes);
|
|
64
|
-
validateLimit('maxNodes', limits.maxNodes, limits.hardMaxNodes);
|
|
65
|
-
validateLimit('maxEdges', limits.maxEdges, limits.hardMaxEdges);
|
|
66
|
-
validateLimit('maxDepth', limits.maxDepth, limits.hardMaxDepth);
|
|
67
|
-
}
|
|
68
|
-
function canonicalRoot(rootPath) {
|
|
69
|
-
if (rootPath.includes('\0') || !isAbsolute(rootPath)) {
|
|
70
|
-
throw new ProjectGraphError('PROJECT_GRAPH_INVALID_PATH', 'root path must be absolute and contain no NUL');
|
|
71
|
-
}
|
|
72
|
-
let root;
|
|
73
|
-
try {
|
|
74
|
-
root = realpathSync.native(rootPath);
|
|
75
|
-
}
|
|
76
|
-
catch (error) {
|
|
77
|
-
throw new ProjectGraphError('PROJECT_GRAPH_INVALID_ROOT', `cannot canonicalize root: ${error.message}`);
|
|
78
|
-
}
|
|
79
|
-
if (!lstatSync(root).isDirectory()) {
|
|
80
|
-
throw new ProjectGraphError('PROJECT_GRAPH_INVALID_ROOT', 'root is not a directory');
|
|
81
|
-
}
|
|
82
|
-
return root;
|
|
83
|
-
}
|
|
84
|
-
function validateRelativeCandidate(candidate) {
|
|
85
|
-
if (candidate.length === 0 ||
|
|
86
|
-
candidate.includes('\0') ||
|
|
87
|
-
isAbsolute(candidate) ||
|
|
88
|
-
candidate.startsWith('/') ||
|
|
89
|
-
candidate.startsWith('\\') ||
|
|
90
|
-
/^[A-Za-z]:[/\\]/u.test(candidate)) {
|
|
91
|
-
throw new ProjectGraphError('PROJECT_GRAPH_INVALID_PATH', `candidate must be a non-empty relative path: ${candidate}`);
|
|
92
|
-
}
|
|
93
|
-
const parts = candidate.split(/[\\/]/u);
|
|
94
|
-
if (parts.some((part) => part.length === 0 || part === '.' || part === '..')) {
|
|
95
|
-
throw new ProjectGraphError('PROJECT_GRAPH_INVALID_PATH', `candidate must be normalized and relative: ${candidate}`);
|
|
96
|
-
}
|
|
97
|
-
return parts;
|
|
98
|
-
}
|
|
99
|
-
function normalizedRelative(root, path) {
|
|
100
|
-
const result = relative(root, path);
|
|
101
|
-
if (result === '' || result === '..' || result.startsWith(`..${sep}`) || isAbsolute(result)) {
|
|
102
|
-
throw new ProjectGraphError('PROJECT_GRAPH_PATH_OUTSIDE_ROOT', `${path} is outside ${root}`);
|
|
103
|
-
}
|
|
104
|
-
return result.split(sep).join('/');
|
|
105
|
-
}
|
|
106
|
-
function resolveRegularCandidate(root, candidate) {
|
|
107
|
-
const parts = validateRelativeCandidate(candidate);
|
|
108
|
-
let current = root;
|
|
109
|
-
for (const part of parts) {
|
|
110
|
-
current = join(current, part);
|
|
111
|
-
let metadata;
|
|
112
|
-
try {
|
|
113
|
-
metadata = lstatSync(current);
|
|
114
|
-
}
|
|
115
|
-
catch (error) {
|
|
116
|
-
throw new ProjectGraphError('PROJECT_GRAPH_INVALID_PATH', `cannot inspect ${candidate}: ${error.message}`);
|
|
117
|
-
}
|
|
118
|
-
if (metadata.isSymbolicLink()) {
|
|
119
|
-
throw new ProjectGraphError('PROJECT_GRAPH_SYMLINK_FORBIDDEN', `symlink component is forbidden: ${candidate}`);
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
const canonical = realpathSync.native(current);
|
|
123
|
-
normalizedRelative(root, canonical);
|
|
124
|
-
const metadata = lstatSync(canonical);
|
|
125
|
-
if (!metadata.isFile()) {
|
|
126
|
-
throw new ProjectGraphError('PROJECT_GRAPH_NON_REGULAR_FILE', `candidate is not a regular file: ${candidate}`);
|
|
127
|
-
}
|
|
128
|
-
return { path: canonical, size: metadata.size, mtimeMs: metadata.mtimeMs };
|
|
129
|
-
}
|
|
130
|
-
function ensureFileSize(candidate, size, maxFileBytes) {
|
|
131
|
-
if (size > maxFileBytes) {
|
|
132
|
-
throw new ProjectGraphError('PROJECT_GRAPH_FILE_TOO_LARGE', `${candidate} exceeds maxFileBytes (${String(maxFileBytes)})`);
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
function hashFile(path, candidate, maxFileBytes) {
|
|
136
|
-
const descriptor = openSync(path, 'r');
|
|
137
|
-
try {
|
|
138
|
-
ensureFileSize(candidate, fstatSync(descriptor).size, maxFileBytes);
|
|
139
|
-
const hash = createHash('sha256');
|
|
140
|
-
const buffer = Buffer.allocUnsafe(64 * 1024);
|
|
141
|
-
let total = 0;
|
|
142
|
-
for (;;) {
|
|
143
|
-
const bytesRead = readSync(descriptor, buffer, 0, buffer.length, null);
|
|
144
|
-
if (bytesRead === 0) {
|
|
145
|
-
break;
|
|
146
|
-
}
|
|
147
|
-
total += bytesRead;
|
|
148
|
-
if (total > maxFileBytes) {
|
|
149
|
-
throw new ProjectGraphError('PROJECT_GRAPH_FILE_TOO_LARGE', `${candidate} grew beyond maxFileBytes (${String(maxFileBytes)}) while hashing`);
|
|
150
|
-
}
|
|
151
|
-
hash.update(buffer.subarray(0, bytesRead));
|
|
152
|
-
}
|
|
153
|
-
return hash.digest('hex');
|
|
154
|
-
}
|
|
155
|
-
finally {
|
|
156
|
-
closeSync(descriptor);
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
function readBoundedUtf8(path, candidate, maxFileBytes) {
|
|
160
|
-
const descriptor = openSync(path, 'r');
|
|
161
|
-
try {
|
|
162
|
-
const initialSize = fstatSync(descriptor).size;
|
|
163
|
-
ensureFileSize(candidate, initialSize, maxFileBytes);
|
|
164
|
-
const bytes = Buffer.allocUnsafe(initialSize);
|
|
165
|
-
let offset = 0;
|
|
166
|
-
while (offset < bytes.length) {
|
|
167
|
-
const bytesRead = readSync(descriptor, bytes, offset, bytes.length - offset, null);
|
|
168
|
-
if (bytesRead === 0) {
|
|
169
|
-
break;
|
|
170
|
-
}
|
|
171
|
-
offset += bytesRead;
|
|
172
|
-
}
|
|
173
|
-
const growthProbe = Buffer.allocUnsafe(1);
|
|
174
|
-
if (readSync(descriptor, growthProbe, 0, 1, null) !== 0) {
|
|
175
|
-
throw new ProjectGraphError('PROJECT_GRAPH_FILE_TOO_LARGE', `${candidate} changed while reading`);
|
|
176
|
-
}
|
|
177
|
-
try {
|
|
178
|
-
return new TextDecoder('utf-8', { fatal: true }).decode(bytes.subarray(0, offset));
|
|
179
|
-
}
|
|
180
|
-
catch {
|
|
181
|
-
throw new ProjectGraphError('PROJECT_GRAPH_INVALID_UTF8', `${candidate} is not valid UTF-8`);
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
finally {
|
|
185
|
-
closeSync(descriptor);
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
function walkFiles(root) {
|
|
189
|
-
const output = [];
|
|
190
|
-
const visit = (directory) => {
|
|
191
|
-
const entries = readdirSync(directory, { withFileTypes: true }).sort((left, right) => compareText(left.name, right.name));
|
|
192
|
-
for (const entry of entries) {
|
|
193
|
-
if (entry.isSymbolicLink()) {
|
|
194
|
-
continue;
|
|
195
|
-
}
|
|
196
|
-
const path = join(directory, entry.name);
|
|
197
|
-
if (entry.isDirectory()) {
|
|
198
|
-
if (!IGNORED_DIRS.has(entry.name)) {
|
|
199
|
-
visit(path);
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
else if (entry.isFile()) {
|
|
203
|
-
output.push(path);
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
};
|
|
207
|
-
visit(root);
|
|
208
|
-
return output;
|
|
209
|
-
}
|
|
210
|
-
export function tsScanProjectGraphSources(rootPath, limits) {
|
|
211
|
-
validateResolvedLimits(limits);
|
|
212
|
-
const root = canonicalRoot(rootPath);
|
|
213
|
-
return walkFiles(root)
|
|
214
|
-
.filter((path) => PROJECT_GRAPH_EXTS.has(extname(path).toLowerCase()))
|
|
215
|
-
.map((path) => ({ path, candidate: normalizedRelative(root, path) }))
|
|
216
|
-
.sort((left, right) => compareText(left.candidate, right.candidate))
|
|
217
|
-
.slice(0, limits.maxFiles)
|
|
218
|
-
.map(({ candidate }) => {
|
|
219
|
-
const resolved = resolveRegularCandidate(root, candidate);
|
|
220
|
-
ensureFileSize(candidate, resolved.size, limits.maxFileBytes);
|
|
221
|
-
return {
|
|
222
|
-
path: candidate,
|
|
223
|
-
hash: hashFile(resolved.path, candidate, limits.maxFileBytes),
|
|
224
|
-
size: resolved.size,
|
|
225
|
-
mtime: resolved.mtimeMs,
|
|
226
|
-
};
|
|
227
|
-
});
|
|
228
|
-
}
|
|
229
|
-
const IMPORT_RE = /^\s*import(?:\s+type)?(?:[^'"]*from\s*)?['"]([^'"]+)['"]/gmu;
|
|
230
|
-
const EXPORT_FROM_RE = /^\s*export\s+[^'"]*from\s*['"]([^'"]+)['"]/gmu;
|
|
231
|
-
const EXPORT_SYMBOL_RE = /^\s*export\s+(?:async\s+)?(?:function|class|interface|type|const|let|var|enum)\s+([A-Za-z_$][\w$]*)/gmu;
|
|
232
|
-
const DEFINE_SYMBOL_RE = /^\s*(?:export\s+)?(?:async\s+)?(?:function|class|interface|type|const|let|var|enum)\s+([A-Za-z_$][\w$]*)/gmu;
|
|
233
|
-
const TEST_RE = /\b(describe|it|test)\s*\(\s*['"]([^'"]+)['"]/gu;
|
|
234
|
-
function pushMatches(output, content, candidate, regex, relation, targetPrefix, confidence = 'high') {
|
|
235
|
-
for (const match of content.matchAll(new RegExp(regex.source, regex.flags))) {
|
|
236
|
-
const target = match[1]?.trim();
|
|
237
|
-
if (target) {
|
|
238
|
-
output.push({
|
|
239
|
-
from: `file:${candidate}`,
|
|
240
|
-
to: targetPrefix.endsWith('#') ? `${targetPrefix}${target}` : `${targetPrefix}:${target}`,
|
|
241
|
-
relation,
|
|
242
|
-
sourceFile: candidate,
|
|
243
|
-
confidence,
|
|
244
|
-
classification: 'extracted',
|
|
245
|
-
});
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
function relationTuple(relation) {
|
|
250
|
-
return [
|
|
251
|
-
relation.from,
|
|
252
|
-
relation.to,
|
|
253
|
-
relation.relation,
|
|
254
|
-
relation.sourceFile,
|
|
255
|
-
relation.confidence,
|
|
256
|
-
relation.classification,
|
|
257
|
-
];
|
|
258
|
-
}
|
|
259
|
-
export function tsExtractTsRelations(rootPath, paths, limits) {
|
|
260
|
-
validateResolvedLimits(limits);
|
|
261
|
-
const root = canonicalRoot(rootPath);
|
|
262
|
-
if (paths.length > limits.maxFiles) {
|
|
263
|
-
throw new ProjectGraphError('PROJECT_GRAPH_LIMIT_EXCEEDED', `candidate count exceeds maxFiles (${String(limits.maxFiles)})`);
|
|
264
|
-
}
|
|
265
|
-
const candidates = [
|
|
266
|
-
...new Set(paths.length > 0
|
|
267
|
-
? paths
|
|
268
|
-
: tsScanProjectGraphSources(rootPath, limits).map((source) => source.path)),
|
|
269
|
-
].sort(compareText);
|
|
270
|
-
const output = [];
|
|
271
|
-
for (const candidate of candidates) {
|
|
272
|
-
const resolved = resolveRegularCandidate(root, candidate);
|
|
273
|
-
ensureFileSize(candidate, resolved.size, limits.maxFileBytes);
|
|
274
|
-
if (!PROJECT_GRAPH_CODE_EXTS.has(extname(candidate).toLowerCase())) {
|
|
275
|
-
continue;
|
|
276
|
-
}
|
|
277
|
-
const content = readBoundedUtf8(resolved.path, candidate, limits.maxFileBytes);
|
|
278
|
-
pushMatches(output, content, candidate, IMPORT_RE, 'imports', 'module');
|
|
279
|
-
pushMatches(output, content, candidate, EXPORT_FROM_RE, 're_exports', 'module');
|
|
280
|
-
pushMatches(output, content, candidate, EXPORT_SYMBOL_RE, 'exports', `symbol:${candidate}#`);
|
|
281
|
-
pushMatches(output, content, candidate, DEFINE_SYMBOL_RE, 'defines', `symbol:${candidate}#`, 'medium');
|
|
282
|
-
if (candidate.includes('test.') ||
|
|
283
|
-
candidate.endsWith('.test.ts') ||
|
|
284
|
-
candidate.endsWith('.test.tsx')) {
|
|
285
|
-
for (const match of content.matchAll(new RegExp(TEST_RE.source, TEST_RE.flags))) {
|
|
286
|
-
const name = match[2]?.trim();
|
|
287
|
-
if (name) {
|
|
288
|
-
output.push({
|
|
289
|
-
from: `test:${candidate}`,
|
|
290
|
-
to: `scenario:${candidate}#${name}`,
|
|
291
|
-
relation: 'tests',
|
|
292
|
-
sourceFile: candidate,
|
|
293
|
-
confidence: 'medium',
|
|
294
|
-
classification: 'extracted',
|
|
295
|
-
});
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
}
|
|
299
|
-
}
|
|
300
|
-
return output.sort((left, right) => compareTuple(relationTuple(left), relationTuple(right)));
|
|
301
|
-
}
|
|
302
|
-
function validateText(name, value) {
|
|
303
|
-
if (value.length === 0 || value.includes('\0')) {
|
|
304
|
-
throw new ProjectGraphError('PROJECT_GRAPH_INVALID_INPUT', `${name} must be non-empty and contain no NUL`);
|
|
305
|
-
}
|
|
306
|
-
}
|
|
307
|
-
function validateEdges(edges, limits) {
|
|
308
|
-
if (edges.length > limits.hardMaxEdges) {
|
|
309
|
-
throw new ProjectGraphError('PROJECT_GRAPH_LIMIT_EXCEEDED', `edge count exceeds hard maxEdges (${String(limits.hardMaxEdges)})`);
|
|
310
|
-
}
|
|
311
|
-
const ids = new Set();
|
|
312
|
-
for (const edge of edges) {
|
|
313
|
-
validateText('edge.id', edge.id);
|
|
314
|
-
validateText('edge.from', edge.from);
|
|
315
|
-
validateText('edge.to', edge.to);
|
|
316
|
-
validateText('edge.relation', edge.relation);
|
|
317
|
-
if (ids.has(edge.id)) {
|
|
318
|
-
throw new ProjectGraphError('PROJECT_GRAPH_INVALID_INPUT', `duplicate edge id: ${edge.id}`);
|
|
319
|
-
}
|
|
320
|
-
ids.add(edge.id);
|
|
321
|
-
}
|
|
322
|
-
}
|
|
323
|
-
function relationFilterSet(relationFilter) {
|
|
324
|
-
for (const relation of relationFilter) {
|
|
325
|
-
validateText('relationFilter', relation);
|
|
326
|
-
}
|
|
327
|
-
return new Set(relationFilter);
|
|
328
|
-
}
|
|
329
|
-
function relationAllowed(relation, filter) {
|
|
330
|
-
return filter.size === 0 || filter.has(relation);
|
|
331
|
-
}
|
|
332
|
-
function sortedIncoming(edges, filter) {
|
|
333
|
-
const incoming = new Map();
|
|
334
|
-
for (const edge of edges) {
|
|
335
|
-
if (relationAllowed(edge.relation, filter)) {
|
|
336
|
-
const values = incoming.get(edge.to) ?? [];
|
|
337
|
-
values.push(edge);
|
|
338
|
-
incoming.set(edge.to, values);
|
|
339
|
-
}
|
|
340
|
-
}
|
|
341
|
-
for (const values of incoming.values()) {
|
|
342
|
-
values.sort((left, right) => compareTuple([left.from, left.id, left.relation], [right.from, right.id, right.relation]));
|
|
343
|
-
}
|
|
344
|
-
return incoming;
|
|
345
|
-
}
|
|
346
|
-
export function tsQueryAffectedNodes(seed, edges, relationFilter, limits) {
|
|
347
|
-
validateResolvedLimits(limits);
|
|
348
|
-
validateText('seed', seed);
|
|
349
|
-
validateEdges(edges, limits);
|
|
350
|
-
const incoming = sortedIncoming(edges, relationFilterSet(relationFilter));
|
|
351
|
-
const seen = new Set([seed]);
|
|
352
|
-
const queue = [{ node: seed, depth: 0 }];
|
|
353
|
-
const output = [];
|
|
354
|
-
let cursor = 0;
|
|
355
|
-
while (cursor < queue.length && output.length < limits.maxNodes) {
|
|
356
|
-
const current = queue[cursor++];
|
|
357
|
-
if (!current || current.depth >= limits.maxDepth) {
|
|
358
|
-
continue;
|
|
359
|
-
}
|
|
360
|
-
for (const edge of incoming.get(current.node) ?? []) {
|
|
361
|
-
if (output.length >= limits.maxNodes) {
|
|
362
|
-
break;
|
|
363
|
-
}
|
|
364
|
-
if (seen.has(edge.from)) {
|
|
365
|
-
continue;
|
|
366
|
-
}
|
|
367
|
-
seen.add(edge.from);
|
|
368
|
-
const nextDepth = current.depth + 1;
|
|
369
|
-
output.push({ nodeId: edge.from, depth: nextDepth, viaRelation: edge.relation });
|
|
370
|
-
queue.push({ node: edge.from, depth: nextDepth });
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
return output;
|
|
374
|
-
}
|
|
375
|
-
function undirectedAdjacency(edges, filter) {
|
|
376
|
-
const adjacency = new Map();
|
|
377
|
-
const add = (from, neighbor) => {
|
|
378
|
-
const values = adjacency.get(from) ?? [];
|
|
379
|
-
values.push(neighbor);
|
|
380
|
-
adjacency.set(from, values);
|
|
381
|
-
};
|
|
382
|
-
for (const edge of edges) {
|
|
383
|
-
if (relationAllowed(edge.relation, filter)) {
|
|
384
|
-
add(edge.from, { node: edge.to, edgeId: edge.id, relation: edge.relation });
|
|
385
|
-
add(edge.to, { node: edge.from, edgeId: edge.id, relation: edge.relation });
|
|
386
|
-
}
|
|
387
|
-
}
|
|
388
|
-
for (const values of adjacency.values()) {
|
|
389
|
-
values.sort((left, right) => compareTuple([left.node, left.edgeId, left.relation], [right.node, right.edgeId, right.relation]));
|
|
390
|
-
}
|
|
391
|
-
return adjacency;
|
|
392
|
-
}
|
|
393
|
-
export function tsQueryShortestPath(from, to, edges, relationFilter, limits) {
|
|
394
|
-
validateResolvedLimits(limits);
|
|
395
|
-
validateText('from', from);
|
|
396
|
-
validateText('to', to);
|
|
397
|
-
validateEdges(edges, limits);
|
|
398
|
-
if (from === to) {
|
|
399
|
-
return { nodeIds: [from], edgeIds: [] };
|
|
400
|
-
}
|
|
401
|
-
const adjacency = undirectedAdjacency(edges, relationFilterSet(relationFilter));
|
|
402
|
-
const queue = [from];
|
|
403
|
-
const seen = new Set([from]);
|
|
404
|
-
const predecessor = new Map();
|
|
405
|
-
let cursor = 0;
|
|
406
|
-
while (cursor < queue.length) {
|
|
407
|
-
const current = queue[cursor++];
|
|
408
|
-
if (!current) {
|
|
409
|
-
continue;
|
|
410
|
-
}
|
|
411
|
-
for (const neighbor of adjacency.get(current) ?? []) {
|
|
412
|
-
if (seen.has(neighbor.node)) {
|
|
413
|
-
continue;
|
|
414
|
-
}
|
|
415
|
-
if (seen.size >= limits.maxNodes) {
|
|
416
|
-
throw new ProjectGraphError('PROJECT_GRAPH_TRAVERSAL_LIMIT', `shortest-path traversal exceeded maxNodes (${String(limits.maxNodes)})`);
|
|
417
|
-
}
|
|
418
|
-
seen.add(neighbor.node);
|
|
419
|
-
predecessor.set(neighbor.node, { node: current, edgeId: neighbor.edgeId });
|
|
420
|
-
if (neighbor.node === to) {
|
|
421
|
-
const nodeIds = [to];
|
|
422
|
-
const edgeIds = [];
|
|
423
|
-
let pathCursor = to;
|
|
424
|
-
while (pathCursor !== from) {
|
|
425
|
-
const previous = predecessor.get(pathCursor);
|
|
426
|
-
if (!previous) {
|
|
427
|
-
throw new ProjectGraphError('PROJECT_GRAPH_INTERNAL_ERROR', 'missing predecessor while reconstructing path');
|
|
428
|
-
}
|
|
429
|
-
edgeIds.push(previous.edgeId);
|
|
430
|
-
nodeIds.push(previous.node);
|
|
431
|
-
pathCursor = previous.node;
|
|
432
|
-
}
|
|
433
|
-
return { nodeIds: nodeIds.reverse(), edgeIds: edgeIds.reverse() };
|
|
434
|
-
}
|
|
435
|
-
queue.push(neighbor.node);
|
|
436
|
-
}
|
|
437
|
-
}
|
|
438
|
-
return { nodeIds: [], edgeIds: [] };
|
|
439
|
-
}
|
|
440
|
-
export function tsSelectCompactGraphSlice(seeds, nodes, edges, limits) {
|
|
441
|
-
validateResolvedLimits(limits);
|
|
442
|
-
if (nodes.length > limits.hardMaxNodes) {
|
|
443
|
-
throw new ProjectGraphError('PROJECT_GRAPH_LIMIT_EXCEEDED', `node count exceeds hard maxNodes (${String(limits.hardMaxNodes)})`);
|
|
444
|
-
}
|
|
445
|
-
validateEdges(edges, limits);
|
|
446
|
-
const known = new Set();
|
|
447
|
-
for (const node of nodes) {
|
|
448
|
-
validateText('node.id', node.id);
|
|
449
|
-
if (known.has(node.id)) {
|
|
450
|
-
throw new ProjectGraphError('PROJECT_GRAPH_INVALID_INPUT', `duplicate node id: ${node.id}`);
|
|
451
|
-
}
|
|
452
|
-
known.add(node.id);
|
|
453
|
-
}
|
|
454
|
-
const sortedSeeds = [...new Set(seeds)].sort(compareText);
|
|
455
|
-
for (const seed of sortedSeeds) {
|
|
456
|
-
validateText('seed', seed);
|
|
457
|
-
}
|
|
458
|
-
const selectedNodes = new Set(sortedSeeds.filter((seed) => known.size === 0 || known.has(seed)).slice(0, limits.maxNodes));
|
|
459
|
-
const queue = [...selectedNodes].sort(compareText);
|
|
460
|
-
const edgeById = new Map(edges.map((edge) => [edge.id, edge]));
|
|
461
|
-
const adjacency = undirectedAdjacency(edges, new Set());
|
|
462
|
-
const selectedEdgeIds = new Set();
|
|
463
|
-
const edgeIds = [];
|
|
464
|
-
let cursor = 0;
|
|
465
|
-
while (cursor < queue.length && edgeIds.length < limits.maxEdges) {
|
|
466
|
-
const current = queue[cursor++];
|
|
467
|
-
if (!current) {
|
|
468
|
-
continue;
|
|
469
|
-
}
|
|
470
|
-
for (const neighbor of adjacency.get(current) ?? []) {
|
|
471
|
-
if (edgeIds.length >= limits.maxEdges) {
|
|
472
|
-
break;
|
|
473
|
-
}
|
|
474
|
-
if (known.size > 0 && !known.has(neighbor.node)) {
|
|
475
|
-
continue;
|
|
476
|
-
}
|
|
477
|
-
const newNode = !selectedNodes.has(neighbor.node);
|
|
478
|
-
if (newNode && selectedNodes.size >= limits.maxNodes) {
|
|
479
|
-
continue;
|
|
480
|
-
}
|
|
481
|
-
if (newNode) {
|
|
482
|
-
selectedNodes.add(neighbor.node);
|
|
483
|
-
queue.push(neighbor.node);
|
|
484
|
-
}
|
|
485
|
-
if (!selectedEdgeIds.has(neighbor.edgeId)) {
|
|
486
|
-
selectedEdgeIds.add(neighbor.edgeId);
|
|
487
|
-
const edge = edgeById.get(neighbor.edgeId);
|
|
488
|
-
if (!edge) {
|
|
489
|
-
throw new ProjectGraphError('PROJECT_GRAPH_INTERNAL_ERROR', 'adjacency references unknown edge');
|
|
490
|
-
}
|
|
491
|
-
if (selectedNodes.has(edge.from) && selectedNodes.has(edge.to)) {
|
|
492
|
-
edgeIds.push(neighbor.edgeId);
|
|
493
|
-
}
|
|
494
|
-
}
|
|
495
|
-
}
|
|
496
|
-
}
|
|
497
|
-
return { nodeIds: [...selectedNodes].sort(compareText), edgeIds };
|
|
498
|
-
}
|
|
499
|
-
//# sourceMappingURL=core-bridge-project-graph.js.map
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import type { FileHash, FileMetadata, SpecAnnotation, DriftResult, DuplicateRawBlockRs, FastGrepMatch, FileContent, SpecBriefRs, GapsLogChainResultRs, NativeVectorSearchResult, VectorNode, ProjectGraphSourceFileRs, TsRelationRs, GraphNodeInputRs, GraphEdgeInputRs, AffectedNodeRs, ShortestPathResultRs, CompactGraphSliceRs, ProjectGraphLimitsPolicyRs, ResolvedProjectGraphLimitsRs } from '../types/core-bridge.js';
|
|
2
|
-
/** Must match RuntimeDatabase.schemaVersion and the packaged runtime's release contract. */
|
|
3
|
-
export type { FileHash, FileMetadata, SpecAnnotation, DriftResult, DuplicateRawBlockRs, FastGrepMatch, FileContent, SpecBriefRs, GapsLogChainResultRs, NativeVectorSearchResult, VectorNode, ProjectGraphSourceFileRs, TsRelationRs, GraphNodeInputRs, GraphEdgeInputRs, AffectedNodeRs, ShortestPathResultRs, CompactGraphSliceRs, ProjectGraphLimitsPolicyRs, ResolvedProjectGraphLimitsRs, };
|
|
4
|
-
export declare function fastHashProjectPath(projectPath: string): string;
|
|
5
|
-
export declare function fastGetProjectDataPath(baseDir: string, projectId: string): string | null;
|
|
6
|
-
export declare function fastIsSafeProjectId(projectId: string): boolean;
|
|
7
|
-
export declare function fastScanAndHashFiles(rootPath: string): FileHash[];
|
|
8
|
-
export declare function fastScanProjectMetadata(rootPath: string): FileMetadata[];
|
|
9
|
-
export declare function fastScanSpecAnnotations(rootPath: string): SpecAnnotation[];
|
|
10
|
-
export declare function fastCheckAcCoverage(filePaths: string[], keywords: string[]): string[];
|
|
11
|
-
export declare function fastDetectDriftParallel(rootPath: string, keywords: string[]): DriftResult;
|
|
12
|
-
export declare function fastFindDuplicateBlocks(paths: string[], minLines: number): DuplicateRawBlockRs[];
|
|
13
|
-
export declare function fastFindPatterns(rootPath: string, patterns: string[], extensions?: string[], exclude?: string[]): FastGrepMatch[];
|
|
14
|
-
export declare function fastFindFilesByName(rootPath: string, names: string[]): string[];
|
|
15
|
-
export declare function fastFindFilesByExt(rootPath: string, extensions: string[]): string[];
|
|
16
|
-
export declare function fastReadFiles(paths: string[]): FileContent[];
|
|
17
|
-
/** No TS-only replacement exists yet — callers detect `null` and use the regular spec scanner. */
|
|
18
|
-
export declare function fastScanSpecs(_rootPath: string): SpecBriefRs[] | null;
|
|
19
|
-
export declare function fastVerifyGapsChain(filePath: string): GapsLogChainResultRs;
|
|
20
|
-
export declare function fastAppendGapEntry(filePath: string, id: string, timestamp: string, specId: string, description: string, severity: string, affectedSpecs: string[]): string;
|
|
21
|
-
export declare function fastCosineSimilarity(v1: number[], v2: number[]): number;
|
|
22
|
-
export declare function fastHnswSearchFlat(query: number[], nodes: VectorNode[], topK: number): NativeVectorSearchResult[];
|
|
23
|
-
export declare function fastHmacSign(secret: string, data: string): string;
|
|
24
|
-
export declare function fastHmacVerify(secret: string, data: string, signature: string): boolean;
|
|
25
|
-
export declare function fastScanProjectGraphSources(rootPath: string, policy: ProjectGraphLimitsPolicyRs, overrides?: Partial<ResolvedProjectGraphLimitsRs>): ProjectGraphSourceFileRs[];
|
|
26
|
-
export declare function fastExtractTsRelations(rootPath: string, paths: string[], policy: ProjectGraphLimitsPolicyRs, overrides?: Partial<ResolvedProjectGraphLimitsRs>): TsRelationRs[];
|
|
27
|
-
export declare function fastQueryAffectedNodes(seed: string, edges: GraphEdgeInputRs[], relationFilter: string[], policy: ProjectGraphLimitsPolicyRs, overrides?: Partial<ResolvedProjectGraphLimitsRs>): AffectedNodeRs[];
|
|
28
|
-
export declare function fastQueryShortestPath(from: string, to: string, edges: GraphEdgeInputRs[], relationFilter: string[], policy: ProjectGraphLimitsPolicyRs, overrides?: Partial<ResolvedProjectGraphLimitsRs>): ShortestPathResultRs;
|
|
29
|
-
export declare function fastSelectCompactGraphSlice(seeds: string[], nodes: GraphNodeInputRs[], edges: GraphEdgeInputRs[], policy: ProjectGraphLimitsPolicyRs, overrides?: Partial<ResolvedProjectGraphLimitsRs>): CompactGraphSliceRs;
|
|
30
|
-
export declare function fastScanSpecsAsync(rootPath: string): Promise<{
|
|
31
|
-
value: SpecBriefRs[] | null;
|
|
32
|
-
degradationNotice?: string;
|
|
33
|
-
}>;
|
|
34
|
-
//# sourceMappingURL=core-bridge.d.ts.map
|