@planu/cli 5.7.20 → 5.7.22
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/CHANGELOG.md +41 -0
- package/dist/.planu-build.json +1 -1
- package/dist/cli/commands/doctor.d.ts +1 -6
- package/dist/cli/commands/doctor.js +1 -1
- package/dist/cli/commands/spec.js +2 -32
- package/dist/config/version-defaults.d.ts +0 -8
- package/dist/config/version-defaults.js +0 -28
- package/dist/core/index.d.ts +1 -15
- package/dist/core/index.js +3 -12
- package/dist/core/shared/object.d.ts +3 -0
- package/dist/core/shared/object.js +12 -0
- package/dist/core/spec-validator.d.ts +1 -1
- package/dist/engine/audit-trail/index.d.ts +0 -6
- package/dist/engine/audit-trail/index.js +0 -5
- package/dist/engine/audit-trail/logger.d.ts +0 -1
- package/dist/engine/audit-trail/logger.js +0 -1
- package/dist/engine/auto-updater/config-patcher.d.ts +0 -1
- package/dist/engine/auto-updater/config-patcher.js +1 -1
- package/dist/engine/auto-updater/upgrade-lock.d.ts +0 -4
- package/dist/engine/auto-updater/upgrade-lock.js +1 -1
- package/dist/engine/best-practices-library.d.ts +0 -6
- package/dist/engine/best-practices-library.js +2 -3
- package/dist/engine/build-freshness.d.ts +0 -2
- package/dist/engine/build-freshness.js +2 -2
- package/dist/engine/bump-carrier-binding.d.ts +0 -1
- package/dist/engine/bump-carrier-binding.js +1 -1
- package/dist/engine/code-scanner/gap-scorer.d.ts +2 -2
- package/dist/engine/code-scanner/index.d.ts +1 -5
- package/dist/engine/code-scanner/index.js +0 -4
- package/dist/engine/compact/metrics.d.ts +0 -3
- package/dist/engine/compact/metrics.js +0 -8
- package/dist/engine/compact/registry-loader.d.ts +0 -1
- package/dist/engine/compact/registry-loader.js +0 -3
- package/dist/engine/compact/state-store.d.ts +2 -1
- package/dist/engine/compact/state-store.js +1 -1
- package/dist/engine/complexity-budget/index.d.ts +0 -3
- package/dist/engine/complexity-budget/index.js +0 -3
- package/dist/engine/config-loader.js +24 -32
- package/dist/engine/constitution/sdd-rules-registry.d.ts +1 -2
- package/dist/engine/constitution/sdd-rules-registry.js +1 -1
- package/dist/engine/context-intelligence/compression-guards.d.ts +0 -1
- package/dist/engine/context-intelligence/compression-guards.js +1 -1
- package/dist/engine/conventions-ttl.d.ts +2 -0
- package/dist/engine/conventions-ttl.js +1 -1
- package/dist/engine/core-bridge-project-graph.d.ts +0 -4
- package/dist/engine/core-bridge-project-graph.js +1 -1
- package/dist/engine/core-bridge.d.ts +2 -14
- package/dist/engine/core-bridge.js +0 -9
- package/dist/engine/crash-shield/file-collector.d.ts +0 -5
- package/dist/engine/crash-shield/file-collector.js +1 -10
- package/dist/engine/crash-shield/index.d.ts +0 -1
- package/dist/engine/crash-shield/index.js +0 -1
- package/dist/engine/dependency-evaluator.d.ts +4 -3
- package/dist/engine/detectors/library-detector-langs3b.d.ts +0 -5
- package/dist/engine/detectors/library-detector-langs3b.js +2 -16
- package/dist/engine/detectors/library-detector-langs5.d.ts +0 -1
- package/dist/engine/detectors/library-detector-langs5.js +2 -16
- package/dist/engine/detectors/library-detector-node.d.ts +0 -1
- package/dist/engine/detectors/library-detector-node.js +1 -1
- package/dist/engine/detectors/library-detector-python.d.ts +0 -1
- package/dist/engine/detectors/library-detector-python.js +1 -1
- package/dist/engine/detectors/library-detector.d.ts +0 -6
- package/dist/engine/detectors/library-detector.js +0 -6
- package/dist/engine/detectors/llm-detector/index.d.ts +0 -6
- package/dist/engine/detectors/llm-detector/index.js +0 -6
- package/dist/engine/detectors/otel-detector.js +4 -3
- package/dist/engine/detectors/otel-ecosystem-detectors.d.ts +0 -12
- package/dist/engine/detectors/otel-ecosystem-detectors.js +6 -22
- package/dist/engine/detectors/toml-dependencies.d.ts +2 -0
- package/dist/engine/detectors/toml-dependencies.js +16 -0
- package/dist/engine/doc-generator/portal/index.d.ts +1 -21
- package/dist/engine/doc-generator/portal/index.js +1 -19
- package/dist/engine/doctor/npm-cache-check.d.ts +0 -3
- package/dist/engine/doctor/npm-cache-check.js +3 -3
- package/dist/engine/dora-metrics/calculations.d.ts +1 -4
- package/dist/engine/dora-metrics/calculations.js +2 -2
- package/dist/engine/drift-detection/release-status-drift.js +2 -17
- package/dist/engine/ears-gate.d.ts +2 -2
- package/dist/engine/ears-gate.js +1 -1
- package/dist/engine/errors/registry-loader.d.ts +0 -1
- package/dist/engine/errors/registry-loader.js +1 -1
- package/dist/engine/estimator/calculations.d.ts +1 -4
- package/dist/engine/estimator/calculations.js +2 -17
- package/dist/engine/estimator/constants.d.ts +1 -3
- package/dist/engine/estimator/constants.js +0 -8
- package/dist/engine/evidence-gates/evidence-autofill.d.ts +0 -8
- package/dist/engine/evidence-gates/evidence-autofill.js +4 -4
- package/dist/engine/evidence-gates/lifecycle-gate.d.ts +0 -2
- package/dist/engine/evidence-gates/lifecycle-gate.js +2 -2
- package/dist/engine/execution/deadline-io.d.ts +0 -1
- package/dist/engine/execution/deadline-io.js +1 -16
- package/dist/engine/execution/operation-journal.d.ts +3 -2
- package/dist/engine/execution-plan/plan-utils.d.ts +1 -2
- package/dist/engine/execution-plan/plan-utils.js +0 -15
- package/dist/engine/frontmatter-sha/frozen-fields.d.ts +0 -1
- package/dist/engine/frontmatter-sha/index.d.ts +0 -6
- package/dist/engine/frontmatter-sha/index.js +0 -3
- package/dist/engine/frontmatter-sha/verify-terminal.d.ts +4 -3
- package/dist/engine/git/exec-git.d.ts +0 -2
- package/dist/engine/git/exec-git.js +2 -2
- package/dist/engine/git/planu-autocommit.d.ts +0 -1
- package/dist/engine/git/planu-autocommit.js +1 -1
- package/dist/engine/handoff-artifacts/io.d.ts +2 -1
- package/dist/engine/handoff-artifacts/schemas.d.ts +0 -232
- package/dist/engine/handoff-artifacts/schemas.js +5 -5
- package/dist/engine/handoff-artifacts/version-policy.d.ts +3 -2
- package/dist/engine/handoff-packager.d.ts +2 -1
- package/dist/engine/handoff-packager.js +1 -1
- package/dist/engine/host-rules-templates/index.d.ts +0 -1
- package/dist/engine/host-tool-filter.d.ts +2 -2
- package/dist/engine/housekeeping/find-stale-branches.d.ts +2 -1
- package/dist/engine/housekeeping/index.d.ts +0 -6
- package/dist/engine/housekeeping/index.js +0 -6
- package/dist/engine/keyword-matcher/index.d.ts +0 -1
- package/dist/engine/keyword-matcher/index.js +1 -0
- package/dist/engine/llm-runtime/index.d.ts +1 -2
- package/dist/engine/llm-runtime/index.js +1 -1
- package/dist/engine/llm-runtime/pricing-resolver.d.ts +1 -6
- package/dist/engine/llm-runtime/pricing-resolver.js +1 -1
- package/dist/engine/minimality/index.d.ts +0 -1
- package/dist/engine/minimality/index.js +0 -1
- package/dist/engine/minimality/policy-loader.js +1 -11
- package/dist/engine/mobile-detector-android.d.ts +0 -1
- package/dist/engine/mobile-detector-android.js +1 -1
- package/dist/engine/model-tier-resolver.d.ts +0 -1
- package/dist/engine/model-tier-resolver.js +3 -12
- package/dist/engine/multi-app-detector/app-type.d.ts +0 -3
- package/dist/engine/multi-app-detector/app-type.js +3 -3
- package/dist/engine/multi-app-detector/core.d.ts +1 -4
- package/dist/engine/multi-app-detector/core.js +1 -6
- package/dist/engine/network-policy.d.ts +0 -17
- package/dist/engine/network-policy.js +3 -19
- package/dist/engine/next-spec-resolver/orchestration-planner.d.ts +1 -1
- package/dist/engine/next-spec-resolver/session-writer.d.ts +0 -9
- package/dist/engine/next-spec-resolver/session-writer.js +3 -3
- package/dist/engine/onboarding/new-project-resolver.d.ts +1 -2
- package/dist/engine/onboarding/new-project-resolver.js +1 -1
- package/dist/engine/permissions-merger/stack-detectors.d.ts +0 -3
- package/dist/engine/permissions-merger/stack-detectors.js +0 -8
- package/dist/engine/platform-detector/desktop.js +3 -13
- package/dist/engine/platform-detector/games.js +3 -13
- package/dist/engine/plugin-installer/index.d.ts +2 -5
- package/dist/engine/plugin-installer/index.js +2 -5
- package/dist/engine/plugin-installer/stack-matcher.d.ts +0 -2
- package/dist/engine/plugin-installer/stack-matcher.js +0 -3
- package/dist/engine/plugins/index.d.ts +6 -9
- package/dist/engine/plugins/index.js +6 -9
- package/dist/engine/prior-decisions/index.d.ts +0 -1
- package/dist/engine/prior-decisions/index.js +0 -1
- package/dist/engine/project-graph/index.d.ts +0 -5
- package/dist/engine/project-graph/index.js +0 -5
- package/dist/engine/project-health-checker.d.ts +2 -2
- package/dist/engine/project-scanner/index.d.ts +1 -4
- package/dist/engine/project-scanner/index.js +0 -3
- package/dist/engine/reconcile/apply-changes.d.ts +1 -1
- package/dist/engine/release-pipeline/release-spec-closer.d.ts +1 -0
- package/dist/engine/release-pipeline/release-spec-closer.js +1 -1
- package/dist/engine/reviewer-tokens/index.d.ts +2 -3
- package/dist/engine/reviewer-tokens/index.js +2 -3
- package/dist/engine/reviewer-tokens/types.d.ts +1 -1
- package/dist/engine/reviewer-tokens/verifier.d.ts +0 -4
- package/dist/engine/reviewer-tokens/verifier.js +0 -19
- package/dist/engine/safety/cross-process-lock.d.ts +0 -2
- package/dist/engine/safety/cross-process-lock.js +6 -22
- package/dist/engine/safety/lock-lease-store.d.ts +4 -3
- package/dist/engine/safety/lock-scavenger.d.ts +3 -1
- package/dist/engine/safety/lock-scavenger.js +3 -3
- package/dist/engine/score-to-grade.d.ts +2 -0
- package/dist/engine/score-to-grade.js +16 -0
- package/dist/engine/sdd-model-routing.d.ts +0 -1
- package/dist/engine/sdd-model-routing.js +1 -1
- package/dist/engine/security-analyzer.d.ts +0 -1
- package/dist/engine/security-analyzer.js +0 -1
- package/dist/engine/session/session-tracker.d.ts +2 -2
- package/dist/engine/session/session-tracker.js +2 -2
- package/dist/engine/skill-adapter/index.d.ts +1 -4
- package/dist/engine/skill-adapter/index.js +0 -44
- package/dist/engine/skill-discovery/index.d.ts +1 -5
- package/dist/engine/skill-discovery/index.js +0 -20
- package/dist/engine/skill-discovery/source-adapter.d.ts +1 -7
- package/dist/engine/skill-discovery/source-adapter.js +0 -28
- package/dist/engine/skill-generator/sections.d.ts +1 -1
- package/dist/engine/skill-generator/sections.js +1 -1
- package/dist/engine/skill-generator/skill-definitions.d.ts +0 -1
- package/dist/engine/skill-generator/skill-definitions.js +1 -0
- package/dist/engine/skill-generator/skills.d.ts +0 -1
- package/dist/engine/skill-generator/skills.js +0 -1
- package/dist/engine/skill-generator.d.ts +0 -1
- package/dist/engine/skill-generator.js +0 -1
- package/dist/engine/skill-registry/index.d.ts +1 -9
- package/dist/engine/skill-registry/index.js +1 -9
- package/dist/engine/skill-registry/skill-security-scanner.d.ts +0 -3
- package/dist/engine/skill-registry/skill-security-scanner.js +1 -1
- package/dist/engine/spec-format/bdd-parser.d.ts +2 -9
- package/dist/engine/spec-format/bdd-parser.js +1 -1
- package/dist/engine/spec-format/copula-blacklist.d.ts +2 -5
- package/dist/engine/spec-format/copula-blacklist.js +2 -2
- package/dist/engine/spec-format/criteria-drift.d.ts +0 -1
- package/dist/engine/spec-format/criteria-drift.js +1 -1
- package/dist/engine/spec-format/lean-spec-generator.d.ts +1 -1
- package/dist/engine/spec-format/spec-id.d.ts +0 -2
- package/dist/engine/spec-format/spec-id.js +2 -2
- package/dist/engine/spec-generator/index.d.ts +0 -3
- package/dist/engine/spec-generator/index.js +0 -3
- package/dist/engine/spec-grounding/contract.d.ts +0 -2
- package/dist/engine/spec-grounding/contract.js +3 -3
- package/dist/engine/spec-grounding/grounding-entry-parser.d.ts +0 -1
- package/dist/engine/spec-grounding/grounding-entry-parser.js +1 -3
- package/dist/engine/spec-migrator/folder-operations.d.ts +0 -2
- package/dist/engine/spec-migrator/folder-operations.js +1 -2
- package/dist/engine/spec-migrator/index.d.ts +2 -9
- package/dist/engine/spec-migrator/index.js +2 -9
- package/dist/engine/spec-migrator/strict-planu-cleanup.d.ts +1 -2
- package/dist/engine/spec-migrator/strict-planu-cleanup.js +2 -2
- package/dist/engine/spec-state-machine/transition-spec.d.ts +3 -2
- package/dist/engine/spec-versioning/bump-version.d.ts +0 -2
- package/dist/engine/spec-versioning/bump-version.js +1 -2
- package/dist/engine/stack-auditor/manifest-reader.d.ts +0 -2
- package/dist/engine/stack-auditor/manifest-reader.js +0 -1
- package/dist/engine/supply-chain/index.d.ts +0 -5
- package/dist/engine/supply-chain/index.js +0 -4
- package/dist/engine/team-planner/index.d.ts +0 -2
- package/dist/engine/team-planner/index.js +0 -2
- package/dist/engine/telemetry/health-checker.js +1 -19
- package/dist/engine/telemetry/telemetry-client.d.ts +1 -0
- package/dist/engine/telemetry/telemetry-client.js +1 -1
- package/dist/engine/test-scaffold-generator/advanced-scaffold.js +1 -24
- package/dist/engine/test-selection/policy.d.ts +0 -1
- package/dist/engine/test-selection/policy.js +1 -1
- package/dist/engine/test-spec-generator/index.d.ts +0 -3
- package/dist/engine/test-spec-generator/index.js +0 -3
- package/dist/engine/test-spec-generator/labels.d.ts +0 -1
- package/dist/engine/test-spec-generator/labels.js +1 -1
- package/dist/engine/timing/budget.d.ts +2 -2
- package/dist/engine/timing/structured-log.d.ts +0 -8
- package/dist/engine/timing/structured-log.js +1 -14
- package/dist/engine/token-optimizer/analytics.d.ts +1 -1
- package/dist/engine/token-optimizer/analytics.js +2 -22
- package/dist/engine/token-optimizer/autopilot.d.ts +0 -2
- package/dist/engine/token-optimizer/autopilot.js +1 -27
- package/dist/engine/token-optimizer/index.d.ts +1 -13
- package/dist/engine/token-optimizer/index.js +1 -12
- package/dist/engine/token-optimizer/policy-loader.js +1 -11
- package/dist/engine/universal-rules/user-edit-detector.d.ts +0 -1
- package/dist/engine/universal-rules/user-edit-detector.js +0 -18
- package/dist/engine/usage-tracker/index.d.ts +1 -2
- package/dist/engine/usage-tracker/index.js +1 -2
- package/dist/engine/validation/durable-validation.d.ts +1 -1
- package/dist/engine/validation/durable-validation.js +1 -1
- package/dist/engine/validation/validation-submission.d.ts +0 -2
- package/dist/engine/validation/validation-submission.js +1 -1
- package/dist/engine/validation-evidence-ledger.d.ts +0 -1
- package/dist/engine/validation-evidence-ledger.js +1 -1
- package/dist/engine/validator/analyzer.d.ts +0 -1
- package/dist/engine/validator/analyzer.js +0 -3
- package/dist/engine/validator/checklist.d.ts +1 -5
- package/dist/engine/validator/checklist.js +1 -1
- package/dist/engine/validator/deep-code-checker.d.ts +0 -2
- package/dist/engine/validator/deep-code-checker.js +1 -1
- package/dist/engine/validator/extractors.d.ts +0 -1
- package/dist/engine/validator/extractors.js +0 -1
- package/dist/engine/validator/gates/index.d.ts +0 -1
- package/dist/engine/validator/gates/index.js +1 -0
- package/dist/engine/validator/holistic-report.d.ts +1 -3
- package/dist/engine/validator/holistic-report.js +2 -0
- package/dist/engine/validator/negative-predicate.d.ts +0 -1
- package/dist/engine/validator/negative-predicate.js +1 -1
- package/dist/engine/validator/reliability-gate.d.ts +2 -2
- package/dist/engine/validator/scope-resolver.d.ts +3 -2
- package/dist/engine/validator/spec-compliance-runner.d.ts +0 -5
- package/dist/engine/validator/spec-compliance-runner.js +1 -1
- package/dist/engine/validator.d.ts +0 -4
- package/dist/engine/validator.js +1 -2
- package/dist/engine/verifier/criterion-matcher.d.ts +0 -17
- package/dist/engine/verifier/criterion-matcher.js +2 -9
- package/dist/engine/web-fetcher/registry-loader.d.ts +0 -1
- package/dist/engine/web-fetcher/registry-loader.js +0 -3
- package/dist/engine/workers/handlers/code-map.js +4 -46
- package/dist/engine/workers/handlers/collect-files.d.ts +3 -0
- package/dist/engine/workers/handlers/collect-files.js +53 -0
- package/dist/engine/workers/handlers/documentation.js +4 -49
- package/dist/engine/workers/handlers/optimization.js +4 -46
- package/dist/engine/workers/handlers/security-audit.js +4 -45
- package/dist/engine/workers/index.d.ts +1 -11
- package/dist/engine/workers/index.js +1 -10
- package/dist/engine/workers/schema.d.ts +0 -28
- package/dist/engine/workers/schema.js +2 -2
- package/dist/errors/error-taxonomy.d.ts +0 -1
- package/dist/errors/error-taxonomy.js +0 -3
- package/dist/hosts/claude-code/coach.d.ts +0 -2
- package/dist/hosts/claude-code/coach.js +0 -18
- package/dist/hosts/claude-code/ux/skills-writer.d.ts +1 -2
- package/dist/hosts/claude-code/ux/skills-writer.js +1 -0
- package/dist/hosts/claude-code/ux/subagent-publisher.d.ts +0 -4
- package/dist/hosts/claude-code/ux/subagent-publisher.js +1 -1
- package/dist/hosts/gemini/index.d.ts +1 -3
- package/dist/hosts/gemini/index.js +1 -3
- package/dist/server/router.d.ts +2 -2
- package/dist/storage/approval-operation-lock.d.ts +0 -3
- package/dist/storage/approval-operation-lock.js +1 -1
- package/dist/storage/compliance-gate-config-store.d.ts +0 -1
- package/dist/storage/compliance-gate-config-store.js +2 -7
- package/dist/storage/force-analytics-store.d.ts +0 -2
- package/dist/storage/force-analytics-store.js +2 -2
- package/dist/storage/global-projects-store.d.ts +2 -1
- package/dist/storage/project-identity.d.ts +5 -4
- package/dist/storage/retention.d.ts +0 -1
- package/dist/storage/retention.js +1 -1
- package/dist/storage/runtime-db.d.ts +8 -8
- package/dist/storage/runtime-db.js +1 -1
- package/dist/storage/skill-bootstrap-store.d.ts +1 -3
- package/dist/storage/skill-bootstrap-store.js +1 -14
- package/dist/storage/spec-index.d.ts +0 -1
- package/dist/storage/spec-index.js +1 -4
- package/dist/storage/spec-store.d.ts +2 -1
- package/dist/storage/status-store/file-lock.d.ts +0 -2
- package/dist/storage/status-store/file-lock.js +2 -2
- package/dist/storage/storage-bundle.d.ts +3 -2
- package/dist/storage/storage-catalog.d.ts +1 -1
- package/dist/storage/storage-layout.d.ts +4 -3
- package/dist/storage/token-ledger-store.d.ts +1 -1
- package/dist/storage/token-ledger-store.js +2 -22
- package/dist/tools/audit.js +1 -15
- package/dist/tools/challenge-spec/challenge-report.d.ts +0 -1
- package/dist/tools/challenge-spec/challenge-report.js +1 -1
- package/dist/tools/challenge-spec/resilience-challenge-scenarios-a.d.ts +0 -5
- package/dist/tools/challenge-spec/resilience-challenge-scenarios-a.js +5 -5
- package/dist/tools/challenge-spec/resilience-challenge-scenarios.d.ts +1 -2
- package/dist/tools/challenge-spec/resilience-challenge-scenarios.js +1 -2
- package/dist/tools/challenge-spec/scenarios-utils.d.ts +1 -1
- package/dist/tools/challenge-spec/scenarios-utils.js +1 -1
- package/dist/tools/challenge-spec-helpers.d.ts +2 -1
- package/dist/tools/claude-settings-file.d.ts +3 -0
- package/dist/tools/claude-settings-file.js +19 -0
- package/dist/tools/configure-permissions.d.ts +2 -1
- package/dist/tools/create-spec/adapters/velocity-estimation.d.ts +2 -1
- package/dist/tools/create-spec-tech.d.ts +1 -1
- package/dist/tools/create-spec-tech.js +1 -1
- package/dist/tools/domain-criteria-handler.d.ts +4 -4
- package/dist/tools/domain-criteria-handler.js +3 -0
- package/dist/tools/generate-teammate-prompt.d.ts +0 -4
- package/dist/tools/generate-teammate-prompt.js +0 -26
- package/dist/tools/git/auto-complete-ops.d.ts +2 -1
- package/dist/tools/git/branch-ops.d.ts +0 -1
- package/dist/tools/git/branch-ops.js +1 -48
- package/dist/tools/git/git-helpers.d.ts +2 -4
- package/dist/tools/git/git-helpers.js +1 -12
- package/dist/tools/init-constitution/principle-detector.d.ts +0 -1
- package/dist/tools/init-constitution/principle-detector.js +1 -1
- package/dist/tools/init-project/agents-md-writer.d.ts +2 -1
- package/dist/tools/init-project/config-builder.d.ts +2 -1
- package/dist/tools/init-project/helpers.d.ts +0 -1
- package/dist/tools/init-project/helpers.js +1 -1
- package/dist/tools/init-project/host-assets-writer.d.ts +3 -9
- package/dist/tools/init-project/host-assets-writer.js +2 -2
- package/dist/tools/init-project/legacy-root-migration.d.ts +2 -1
- package/dist/tools/init-project/lifecycle-helpers.d.ts +2 -6
- package/dist/tools/init-project/lifecycle-helpers.js +1 -1
- package/dist/tools/init-project/migration-runner.d.ts +2 -2
- package/dist/tools/init-project/per-client-files-writer.d.ts +2 -1
- package/dist/tools/init-project/portable-index-reconciler.d.ts +1 -5
- package/dist/tools/init-project/portable-index-reconciler.js +2 -2
- package/dist/tools/init-project/rules-writer.d.ts +2 -1
- package/dist/tools/init-project/scaffold-verifier.d.ts +0 -1
- package/dist/tools/init-project/scaffold-verifier.js +1 -1
- package/dist/tools/init-project/scaffold-writer.d.ts +2 -1
- package/dist/tools/init-project/stack-detector.d.ts +2 -1
- package/dist/tools/jobs/handlers.d.ts +2 -1
- package/dist/tools/output-compressor.d.ts +2 -1
- package/dist/tools/output-integrity-guard.d.ts +0 -8
- package/dist/tools/output-integrity-guard.js +1 -1
- package/dist/tools/package-handoff.d.ts +0 -1
- package/dist/tools/package-handoff.js +0 -1
- package/dist/tools/reconcile-interactive-question-hooks.d.ts +2 -1
- package/dist/tools/reconcile-interactive-question-hooks.js +3 -18
- package/dist/tools/reconcile-session-safeguard-hook.d.ts +1 -1
- package/dist/tools/reconcile-session-safeguard-hook.js +3 -18
- package/dist/tools/reconcile-spec-sanctity-hook.js +4 -19
- package/dist/tools/resolve-project-id.d.ts +2 -1
- package/dist/tools/response-helpers.d.ts +0 -23
- package/dist/tools/response-helpers.js +0 -37
- package/dist/tools/schemas/index.d.ts +3 -19
- package/dist/tools/schemas/index.js +3 -19
- package/dist/tools/schemas/infra.d.ts +0 -8
- package/dist/tools/schemas/infra.js +0 -3
- package/dist/tools/schemas/output-schemas.d.ts +1 -92
- package/dist/tools/schemas/output-schemas.js +0 -2
- package/dist/tools/schemas/spec-id.d.ts +1 -1
- package/dist/tools/schemas/spec-id.js +1 -1
- package/dist/tools/storage-paths-handler.d.ts +2 -1
- package/dist/tools/suggest-tooling/skills-fetcher.d.ts +1 -1
- package/dist/tools/suggest-tooling/skills-fetcher.js +1 -1
- package/dist/tools/tool-entry.d.ts +2 -1
- package/dist/tools/update-status/dod-gates.d.ts +2 -2
- package/dist/tools/update-status/done-receipt-verifier.d.ts +1 -1
- package/dist/tools/update-status/gate-harness.d.ts +2 -1
- package/dist/tools/update-status/transition-guard.d.ts +1 -2
- package/dist/tools/validate.d.ts +1 -4
- package/dist/tools/validate.js +1 -17
- package/dist/types/actionable-spec-metrics.d.ts +2 -1
- package/dist/types/actuals-tracking.d.ts +0 -44
- package/dist/types/actuals-tracking.js +5 -0
- package/dist/types/actuals.d.ts +0 -5
- package/dist/types/actuals.js +1 -0
- package/dist/types/advanced-framework.d.ts +0 -31
- package/dist/types/advanced-framework.js +1 -0
- package/dist/types/agent-orchestration.d.ts +0 -60
- package/dist/types/agent-team.d.ts +2 -19
- package/dist/types/ai-assurance.d.ts +2 -1
- package/dist/types/ai-native.d.ts +5 -4
- package/dist/types/ai-tool-rules.d.ts +3 -2
- package/dist/types/analysis-detection.d.ts +0 -54
- package/dist/types/analysis-detection.js +1 -0
- package/dist/types/analysis-frontend.d.ts +0 -17
- package/dist/types/analysis-frontend.js +3 -0
- package/dist/types/analysis.d.ts +8 -250
- package/dist/types/analysis.js +1 -0
- package/dist/types/analytics.d.ts +0 -146
- package/dist/types/approval.d.ts +0 -1
- package/dist/types/architecture.d.ts +3 -49
- package/dist/types/audit-trail.d.ts +0 -5
- package/dist/types/audit.d.ts +0 -26
- package/dist/types/audit.js +1 -0
- package/dist/types/auto-checkpoint.d.ts +0 -5
- package/dist/types/auto-checkpoint.js +1 -0
- package/dist/types/auto-update.d.ts +0 -28
- package/dist/types/autopilot-summary.d.ts +0 -3
- package/dist/types/autopilot.d.ts +3 -19
- package/dist/types/build-freshness.d.ts +2 -1
- package/dist/types/cascade-hooks.d.ts +2 -1
- package/dist/types/clarification.d.ts +0 -10
- package/dist/types/common/index.d.ts +0 -1
- package/dist/types/common/index.js +0 -1
- package/dist/types/common/learning.d.ts +1 -37
- package/dist/types/common/tech-enums.d.ts +0 -11
- package/dist/types/context-manager.d.ts +2 -1
- package/dist/types/context.d.ts +3 -17
- package/dist/types/conventions.d.ts +4 -88
- package/dist/types/core-bridge.d.ts +2 -8
- package/dist/types/cost-guardrails.d.ts +0 -17
- package/dist/types/cost-ledger.d.ts +0 -5
- package/dist/types/crash-shield-framework-rules.d.ts +4 -3
- package/dist/types/cross-repo-search.d.ts +0 -54
- package/dist/types/cross-repo-search.js +7 -0
- package/dist/types/dashboard.d.ts +0 -11
- package/dist/types/data-gc.d.ts +2 -1
- package/dist/types/decisions.d.ts +3 -42
- package/dist/types/decisions.js +1 -0
- package/dist/types/docs.d.ts +2 -385
- package/dist/types/docs.js +1 -0
- package/dist/types/domain-criteria.d.ts +2 -1
- package/dist/types/drift-monitor-types.d.ts +0 -65
- package/dist/types/durable-job.d.ts +2 -1
- package/dist/types/durable-validation.d.ts +2 -2
- package/dist/types/edge-db.d.ts +3 -37
- package/dist/types/edge-db.js +6 -0
- package/dist/types/elicitation.d.ts +2 -121
- package/dist/types/elicitation.js +10 -0
- package/dist/types/env.d.ts +6 -88
- package/dist/types/env.js +1 -0
- package/dist/types/errors/structured-error.d.ts +0 -2
- package/dist/types/escalator.d.ts +3 -2
- package/dist/types/estimation.d.ts +2 -81
- package/dist/types/estimation.js +2 -0
- package/dist/types/events.d.ts +2 -187
- package/dist/types/evidence-autofill.d.ts +0 -2
- package/dist/types/evidence-autofill.js +1 -0
- package/dist/types/evidence-gates.d.ts +2 -1
- package/dist/types/evidence-index.d.ts +3 -2
- package/dist/types/execution.d.ts +4 -43
- package/dist/types/facilitator.d.ts +2 -1
- package/dist/types/file-hooks.d.ts +7 -168
- package/dist/types/file-hooks.js +17 -0
- package/dist/types/git.d.ts +9 -204
- package/dist/types/github.d.ts +2 -89
- package/dist/types/github.js +12 -0
- package/dist/types/handoff-artifacts.d.ts +11 -10
- package/dist/types/health.d.ts +0 -11
- package/dist/types/hooks.d.ts +11 -79
- package/dist/types/hooks.js +17 -0
- package/dist/types/housekeeping.d.ts +3 -2
- package/dist/types/ide.d.ts +0 -56
- package/dist/types/ide.js +10 -0
- package/dist/types/index.d.ts +2 -128
- package/dist/types/index.js +0 -125
- package/dist/types/infrastructure.d.ts +4 -70
- package/dist/types/installation.d.ts +2 -1
- package/dist/types/keyword-matcher.d.ts +0 -8
- package/dist/types/legacy-guidance.d.ts +2 -1
- package/dist/types/legal.d.ts +2 -20
- package/dist/types/legal.js +2 -0
- package/dist/types/lessons.d.ts +3 -30
- package/dist/types/lifecycle.d.ts +0 -111
- package/dist/types/lifecycle.js +12 -0
- package/dist/types/living-spec/annotations.d.ts +3 -85
- package/dist/types/living-spec/annotations.js +6 -0
- package/dist/types/living-spec/dashboard-and-sync.d.ts +5 -159
- package/dist/types/living-spec/dashboard-and-sync.js +1 -0
- package/dist/types/living-spec.d.ts +0 -1
- package/dist/types/living-spec.js +0 -1
- package/dist/types/llm-security.d.ts +0 -39
- package/dist/types/local-first.d.ts +0 -41
- package/dist/types/local-first.js +7 -0
- package/dist/types/mcp-config.d.ts +3 -2
- package/dist/types/mcp.d.ts +0 -159
- package/dist/types/mcp.js +1 -0
- package/dist/types/migration/canonical-storage.d.ts +3 -2
- package/dist/types/minimal-implementation-gate.d.ts +6 -5
- package/dist/types/model-routing.d.ts +2 -48
- package/dist/types/model-routing.js +2 -0
- package/dist/types/multi-agent.d.ts +0 -158
- package/dist/types/multi-agent.js +15 -0
- package/dist/types/oauth.d.ts +0 -42
- package/dist/types/oauth.js +1 -0
- package/dist/types/observability.d.ts +0 -92
- package/dist/types/observability.js +14 -0
- package/dist/types/opencode.d.ts +0 -23
- package/dist/types/orchestration/index.d.ts +1 -4
- package/dist/types/orchestration/nli.d.ts +3 -74
- package/dist/types/outbox-worker.d.ts +2 -1
- package/dist/types/paradigm.d.ts +5 -17
- package/dist/types/paradigm.js +3 -0
- package/dist/types/parallel-safety-types.d.ts +0 -17
- package/dist/types/parallel-safety-types.js +4 -0
- package/dist/types/permissions-config.d.ts +2 -1
- package/dist/types/plugin-configs.d.ts +2 -59
- package/dist/types/plugin-configs.js +6 -0
- package/dist/types/plugin-install.d.ts +0 -1
- package/dist/types/plugins.d.ts +5 -22
- package/dist/types/portal.d.ts +2 -60
- package/dist/types/portal.js +1 -0
- package/dist/types/privacy.d.ts +3 -33
- package/dist/types/privacy.js +6 -0
- package/dist/types/product-public.d.ts +5 -4
- package/dist/types/project/inputs.d.ts +0 -29
- package/dist/types/project/inputs.js +3 -0
- package/dist/types/project/library-groups.d.ts +0 -6
- package/dist/types/project/mfe-detection.d.ts +5 -4
- package/dist/types/project/planu-config.d.ts +2 -1
- package/dist/types/project/platform-mobile.d.ts +0 -1
- package/dist/types/project/platform-specialty.d.ts +3 -12
- package/dist/types/project-knowledge-graph.d.ts +7 -6
- package/dist/types/proposal.d.ts +0 -65
- package/dist/types/proposal.js +1 -0
- package/dist/types/rbac.d.ts +0 -33
- package/dist/types/rbac.js +6 -0
- package/dist/types/readiness.d.ts +0 -2
- package/dist/types/readiness.js +4 -0
- package/dist/types/reconcile.d.ts +0 -11
- package/dist/types/registry.d.ts +3 -64
- package/dist/types/registry.js +8 -0
- package/dist/types/release-pipeline.d.ts +0 -5
- package/dist/types/reviewer-tokens.d.ts +0 -7
- package/dist/types/safety-scanner.d.ts +2 -18
- package/dist/types/safety.d.ts +0 -50
- package/dist/types/scan-project.d.ts +0 -95
- package/dist/types/schema-parity.d.ts +0 -66
- package/dist/types/schema-parity.js +7 -0
- package/dist/types/scope-boundaries.d.ts +2 -1
- package/dist/types/scope.d.ts +2 -67
- package/dist/types/sdd-flow.d.ts +7 -84
- package/dist/types/security.d.ts +3 -67
- package/dist/types/self-healing.d.ts +3 -2
- package/dist/types/session-checkpoint.d.ts +0 -26
- package/dist/types/skill-adapter.d.ts +0 -6
- package/dist/types/skill-adapter.js +1 -0
- package/dist/types/skill-bootstrap.d.ts +3 -38
- package/dist/types/skill-generation.d.ts +0 -94
- package/dist/types/skill-generation.js +3 -0
- package/dist/types/skill-registry.d.ts +4 -11
- package/dist/types/slack.d.ts +2 -17
- package/dist/types/slack.js +3 -0
- package/dist/types/spec/canonical-repair.d.ts +2 -1
- package/dist/types/spec/clarification.d.ts +2 -23
- package/dist/types/spec/core.d.ts +10 -18
- package/dist/types/spec/health-score.d.ts +2 -1
- package/dist/types/spec/index.d.ts +0 -2
- package/dist/types/spec/index.js +0 -2
- package/dist/types/spec/inputs.d.ts +1 -56
- package/dist/types/spec/inputs.js +1 -0
- package/dist/types/spec/versioning.d.ts +2 -1
- package/dist/types/spec-format.d.ts +2 -9
- package/dist/types/spec-generator.d.ts +0 -5
- package/dist/types/spec-language-translation.d.ts +2 -1
- package/dist/types/spec-lint.d.ts +2 -1
- package/dist/types/spec-lock.d.ts +0 -28
- package/dist/types/spec-lock.js +5 -0
- package/dist/types/spec-observability.d.ts +0 -54
- package/dist/types/spec-observability.js +8 -0
- package/dist/types/spec-quality.d.ts +0 -26
- package/dist/types/spec-quality.js +3 -0
- package/dist/types/stack/audit.d.ts +2 -86
- package/dist/types/stack/build-tool.d.ts +4 -15
- package/dist/types/stack/build-tool.js +2 -0
- package/dist/types/stack/index.d.ts +3 -5
- package/dist/types/stack/recommend.d.ts +6 -132
- package/dist/types/status.d.ts +2 -1
- package/dist/types/storage-catalog.d.ts +5 -4
- package/dist/types/supply-chain.d.ts +3 -17
- package/dist/types/tdd-enforcement.d.ts +0 -6
- package/dist/types/team-planner.d.ts +3 -70
- package/dist/types/team-planner.js +2 -0
- package/dist/types/technology-registry.d.ts +4 -3
- package/dist/types/technology-selection.d.ts +4 -3
- package/dist/types/telemetry.d.ts +2 -27
- package/dist/types/testing.d.ts +0 -108
- package/dist/types/timing.d.ts +3 -2
- package/dist/types/token-ledger.d.ts +1 -70
- package/dist/types/token-ledger.js +29 -1
- package/dist/types/token-optimization.d.ts +0 -6
- package/dist/types/token-waste-autopilot.d.ts +4 -3
- package/dist/types/tooling/audit.d.ts +2 -67
- package/dist/types/tooling/audit.js +3 -0
- package/dist/types/tooling/database.d.ts +0 -62
- package/dist/types/tooling/database.js +1 -0
- package/dist/types/tooling/index.d.ts +2 -7
- package/dist/types/transition-log.d.ts +2 -1
- package/dist/types/transport.d.ts +2 -1
- package/dist/types/ui.d.ts +0 -49
- package/dist/types/ui.js +1 -1
- package/dist/types/universal-rules/index.d.ts +0 -27
- package/dist/types/universal-rules/index.js +1 -0
- package/dist/types/usage.d.ts +0 -20
- package/dist/types/usage.js +3 -0
- package/dist/types/validation-evidence.d.ts +6 -5
- package/dist/types/validation-loop.d.ts +2 -1
- package/dist/types/validation-receipt.d.ts +3 -15
- package/dist/types/vector-store.d.ts +2 -62
- package/dist/types/vector-store.js +7 -0
- package/dist/types/velocity.d.ts +0 -12
- package/dist/types/verifiable-criteria.d.ts +2 -21
- package/dist/types/verifiable-criteria.js +7 -0
- package/dist/types/workers.d.ts +5 -44
- package/dist/types/workflow.d.ts +0 -68
- package/dist/types/workflow.js +3 -0
- package/dist/types/workspace-dashboard-types.d.ts +0 -6
- package/dist/types/workspace-overview.d.ts +0 -93
- package/dist/types/workspace-overview.js +9 -0
- package/package.json +2 -2
- package/planu-plugin.json +1 -1
- package/dist/engine/coach/types.d.ts +0 -2
- package/dist/engine/coach/types.js +0 -2
- package/dist/engine/frontmatter-sha/reseal.d.ts +0 -25
- package/dist/engine/frontmatter-sha/reseal.js +0 -29
- package/dist/engine/handoff-artifacts/index.d.ts +0 -6
- package/dist/engine/handoff-artifacts/index.js +0 -4
- package/dist/tools/schemas/delete.d.ts +0 -19
- package/dist/tools/schemas/delete.js +0 -12
- package/dist/tools/schemas/ecosystem-schemas.d.ts +0 -6
- package/dist/tools/schemas/ecosystem-schemas.js +0 -10
- package/dist/tools/schemas/github.d.ts +0 -56
- package/dist/tools/schemas/github.js +0 -78
- package/dist/tools/schemas/ide-config.d.ts +0 -38
- package/dist/tools/schemas/ide-config.js +0 -28
- package/dist/tools/schemas/llm-provider-schemas.d.ts +0 -26
- package/dist/tools/schemas/llm-provider-schemas.js +0 -16
- package/dist/tools/schemas/plugins-schemas.d.ts +0 -46
- package/dist/tools/schemas/plugins-schemas.js +0 -52
- package/dist/tools/schemas/project-graph.d.ts +0 -18
- package/dist/tools/schemas/project-graph.js +0 -8
- package/dist/tools/schemas/reconcile-skills-schemas.d.ts +0 -8
- package/dist/tools/schemas/reconcile-skills-schemas.js +0 -23
- package/dist/tools/schemas/registry.d.ts +0 -41
- package/dist/tools/schemas/registry.js +0 -79
- package/dist/tools/schemas/runtime-security.d.ts +0 -12
- package/dist/tools/schemas/runtime-security.js +0 -9
- package/dist/tools/schemas/session.d.ts +0 -34
- package/dist/tools/schemas/session.js +0 -52
- package/dist/tools/schemas/skill-registry-schemas.d.ts +0 -15
- package/dist/tools/schemas/skill-registry-schemas.js +0 -45
- package/dist/tools/schemas/spec-registry-schemas.d.ts +0 -39
- package/dist/tools/schemas/spec-registry-schemas.js +0 -75
- package/dist/tools/schemas/token-intelligence.d.ts +0 -23
- package/dist/tools/schemas/token-intelligence.js +0 -20
- package/dist/tools/schemas/token-optimization.d.ts +0 -12
- package/dist/tools/schemas/token-optimization.js +0 -9
- package/dist/tools/schemas/workers-schema.d.ts +0 -21
- package/dist/tools/schemas/workers-schema.js +0 -42
- package/dist/types/ac-gap.d.ts +0 -57
- package/dist/types/ac-gap.js +0 -3
- package/dist/types/agent-frameworks.d.ts +0 -62
- package/dist/types/agent-frameworks.js +0 -3
- package/dist/types/agent-memory.d.ts +0 -20
- package/dist/types/agent-memory.js +0 -3
- package/dist/types/agent-ready.d.ts +0 -58
- package/dist/types/agent-ready.js +0 -3
- package/dist/types/agent-role-mapper.d.ts +0 -32
- package/dist/types/agent-role-mapper.js +0 -2
- package/dist/types/agent-roles.d.ts +0 -21
- package/dist/types/agent-roles.js +0 -2
- package/dist/types/agent-spawner.d.ts +0 -30
- package/dist/types/agent-spawner.js +0 -3
- package/dist/types/agent-squad.d.ts +0 -57
- package/dist/types/agent-squad.js +0 -3
- package/dist/types/agent-telemetry.d.ts +0 -27
- package/dist/types/agent-telemetry.js +0 -3
- package/dist/types/agents-md.d.ts +0 -20
- package/dist/types/agents-md.js +0 -3
- package/dist/types/ai-cost.d.ts +0 -98
- package/dist/types/ai-cost.js +0 -4
- package/dist/types/ai-integration.d.ts +0 -65
- package/dist/types/ai-integration.js +0 -3
- package/dist/types/api-contract.d.ts +0 -219
- package/dist/types/api-contract.js +0 -3
- package/dist/types/architecture-lint.d.ts +0 -71
- package/dist/types/architecture-lint.js +0 -3
- package/dist/types/auth.d.ts +0 -82
- package/dist/types/auth.js +0 -3
- package/dist/types/auto-promoter.d.ts +0 -26
- package/dist/types/auto-promoter.js +0 -3
- package/dist/types/autopilot-config.d.ts +0 -22
- package/dist/types/autopilot-config.js +0 -14
- package/dist/types/batch-script.d.ts +0 -36
- package/dist/types/batch-script.js +0 -3
- package/dist/types/browser-validator.d.ts +0 -42
- package/dist/types/browser-validator.js +0 -3
- package/dist/types/ci.d.ts +0 -164
- package/dist/types/ci.js +0 -3
- package/dist/types/cline-integration.d.ts +0 -30
- package/dist/types/cline-integration.js +0 -3
- package/dist/types/coach.d.ts +0 -13
- package/dist/types/coach.js +0 -3
- package/dist/types/code-graph-integration.d.ts +0 -22
- package/dist/types/code-graph-integration.js +0 -3
- package/dist/types/code-impact.d.ts +0 -57
- package/dist/types/code-impact.js +0 -3
- package/dist/types/code-transforms.d.ts +0 -114
- package/dist/types/code-transforms.js +0 -11
- package/dist/types/codex-integration.d.ts +0 -55
- package/dist/types/codex-integration.js +0 -3
- package/dist/types/comments.d.ts +0 -68
- package/dist/types/comments.js +0 -3
- package/dist/types/common/context.d.ts +0 -29
- package/dist/types/common/context.js +0 -3
- package/dist/types/compliance-audit.d.ts +0 -55
- package/dist/types/compliance-audit.js +0 -3
- package/dist/types/compliance-tests.d.ts +0 -41
- package/dist/types/compliance-tests.js +0 -3
- package/dist/types/compliance.d.ts +0 -44
- package/dist/types/compliance.js +0 -3
- package/dist/types/concurrency.d.ts +0 -198
- package/dist/types/concurrency.js +0 -3
- package/dist/types/context-budget.d.ts +0 -90
- package/dist/types/context-budget.js +0 -3
- package/dist/types/context-profile.d.ts +0 -22
- package/dist/types/context-profile.js +0 -2
- package/dist/types/coverage.d.ts +0 -95
- package/dist/types/coverage.js +0 -4
- package/dist/types/css-framework.d.ts +0 -110
- package/dist/types/css-framework.js +0 -3
- package/dist/types/delete-first.d.ts +0 -118
- package/dist/types/delete-first.js +0 -3
- package/dist/types/delete.d.ts +0 -68
- package/dist/types/delete.js +0 -3
- package/dist/types/dependency-impact.d.ts +0 -45
- package/dist/types/dependency-impact.js +0 -3
- package/dist/types/deploy.d.ts +0 -73
- package/dist/types/deploy.js +0 -3
- package/dist/types/design-to-spec.d.ts +0 -100
- package/dist/types/design-to-spec.js +0 -3
- package/dist/types/diagram.d.ts +0 -73
- package/dist/types/diagram.js +0 -2
- package/dist/types/diff-spec-types.d.ts +0 -39
- package/dist/types/diff-spec-types.js +0 -3
- package/dist/types/discovery.d.ts +0 -22
- package/dist/types/discovery.js +0 -3
- package/dist/types/dogfooding.d.ts +0 -34
- package/dist/types/dogfooding.js +0 -2
- package/dist/types/drift-watcher.d.ts +0 -35
- package/dist/types/drift-watcher.js +0 -3
- package/dist/types/dynamic-knowledge.d.ts +0 -47
- package/dist/types/dynamic-knowledge.js +0 -11
- package/dist/types/dynamic-migration.d.ts +0 -68
- package/dist/types/dynamic-migration.js +0 -3
- package/dist/types/e2e-test-generator.d.ts +0 -27
- package/dist/types/e2e-test-generator.js +0 -3
- package/dist/types/ecosystem.d.ts +0 -45
- package/dist/types/ecosystem.js +0 -3
- package/dist/types/elicit-schema.d.ts +0 -20
- package/dist/types/elicit-schema.js +0 -3
- package/dist/types/export.d.ts +0 -28
- package/dist/types/export.js +0 -3
- package/dist/types/feedback.d.ts +0 -113
- package/dist/types/feedback.js +0 -3
- package/dist/types/figma.d.ts +0 -257
- package/dist/types/figma.js +0 -3
- package/dist/types/filesystem-hooks.d.ts +0 -30
- package/dist/types/filesystem-hooks.js +0 -3
- package/dist/types/gherkin.d.ts +0 -19
- package/dist/types/gherkin.js +0 -3
- package/dist/types/github-copilot-integration.d.ts +0 -30
- package/dist/types/github-copilot-integration.js +0 -3
- package/dist/types/global-rules-types.d.ts +0 -31
- package/dist/types/global-rules-types.js +0 -3
- package/dist/types/hook-generator.d.ts +0 -49
- package/dist/types/hook-generator.js +0 -3
- package/dist/types/ideas.d.ts +0 -37
- package/dist/types/ideas.js +0 -3
- package/dist/types/impact-detection.d.ts +0 -28
- package/dist/types/impact-detection.js +0 -3
- package/dist/types/import-spec.d.ts +0 -123
- package/dist/types/import-spec.js +0 -3
- package/dist/types/incoming-webhook.d.ts +0 -40
- package/dist/types/incoming-webhook.js +0 -3
- package/dist/types/living-spec/auto-update-and-merge.d.ts +0 -101
- package/dist/types/living-spec/auto-update-and-merge.js +0 -3
- package/dist/types/living-specs.d.ts +0 -35
- package/dist/types/living-specs.js +0 -3
- package/dist/types/llm-providers.d.ts +0 -140
- package/dist/types/llm-providers.js +0 -3
- package/dist/types/marketplace-fetcher.d.ts +0 -42
- package/dist/types/marketplace-fetcher.js +0 -3
- package/dist/types/mcp-recommendation.d.ts +0 -47
- package/dist/types/mcp-recommendation.js +0 -3
- package/dist/types/migration/analysis.d.ts +0 -79
- package/dist/types/migration/analysis.js +0 -3
- package/dist/types/migration/database.d.ts +0 -70
- package/dist/types/migration/database.js +0 -3
- package/dist/types/migration/index.d.ts +0 -6
- package/dist/types/migration/index.js +0 -3
- package/dist/types/migration/io.d.ts +0 -29
- package/dist/types/migration/io.js +0 -3
- package/dist/types/migration/planning.d.ts +0 -104
- package/dist/types/migration/planning.js +0 -3
- package/dist/types/migration-advanced.d.ts +0 -235
- package/dist/types/migration-advanced.js +0 -4
- package/dist/types/multi-agent-review.d.ts +0 -54
- package/dist/types/multi-agent-review.js +0 -3
- package/dist/types/observatory.d.ts +0 -26
- package/dist/types/observatory.js +0 -2
- package/dist/types/onboarding-types.d.ts +0 -69
- package/dist/types/onboarding-types.js +0 -3
- package/dist/types/orchestration/mcp-hub.d.ts +0 -29
- package/dist/types/orchestration/mcp-hub.js +0 -3
- package/dist/types/orchestration/pm.d.ts +0 -71
- package/dist/types/orchestration/pm.js +0 -3
- package/dist/types/orchestration/session.d.ts +0 -152
- package/dist/types/orchestration/session.js +0 -2
- package/dist/types/orchestration-runtime.d.ts +0 -198
- package/dist/types/orchestration-runtime.js +0 -4
- package/dist/types/orphan-spec-refs.d.ts +0 -37
- package/dist/types/orphan-spec-refs.js +0 -3
- package/dist/types/outbound-webhook.d.ts +0 -55
- package/dist/types/outbound-webhook.js +0 -3
- package/dist/types/performance-analysis.d.ts +0 -33
- package/dist/types/performance-analysis.js +0 -3
- package/dist/types/plan-mode.d.ts +0 -27
- package/dist/types/plan-mode.js +0 -3
- package/dist/types/platform-engineering.d.ts +0 -21
- package/dist/types/platform-engineering.js +0 -3
- package/dist/types/plugin-manifest.d.ts +0 -58
- package/dist/types/plugin-manifest.js +0 -4
- package/dist/types/project-dna.d.ts +0 -46
- package/dist/types/project-dna.js +0 -4
- package/dist/types/project-drift.d.ts +0 -29
- package/dist/types/project-drift.js +0 -3
- package/dist/types/property-testing.d.ts +0 -50
- package/dist/types/property-testing.js +0 -3
- package/dist/types/provider-adapter.d.ts +0 -61
- package/dist/types/provider-adapter.js +0 -9
- package/dist/types/red-team.d.ts +0 -29
- package/dist/types/red-team.js +0 -3
- package/dist/types/registry-publishers.d.ts +0 -63
- package/dist/types/registry-publishers.js +0 -4
- package/dist/types/release/stuck-spec.d.ts +0 -10
- package/dist/types/release/stuck-spec.js +0 -3
- package/dist/types/resources.d.ts +0 -20
- package/dist/types/resources.js +0 -3
- package/dist/types/reverse-engineer.d.ts +0 -90
- package/dist/types/reverse-engineer.js +0 -3
- package/dist/types/risk.d.ts +0 -90
- package/dist/types/risk.js +0 -2
- package/dist/types/runtime-security.d.ts +0 -110
- package/dist/types/runtime-security.js +0 -4
- package/dist/types/schema-generator.d.ts +0 -61
- package/dist/types/schema-generator.js +0 -3
- package/dist/types/schema.d.ts +0 -125
- package/dist/types/schema.js +0 -2
- package/dist/types/security/cve-refresh-log.d.ts +0 -11
- package/dist/types/security/cve-refresh-log.js +0 -2
- package/dist/types/security/index.d.ts +0 -2
- package/dist/types/security/index.js +0 -2
- package/dist/types/sentry.d.ts +0 -50
- package/dist/types/sentry.js +0 -3
- package/dist/types/skill-eval.d.ts +0 -41
- package/dist/types/skill-eval.js +0 -3
- package/dist/types/solid-check.d.ts +0 -78
- package/dist/types/solid-check.js +0 -3
- package/dist/types/source-resolution.d.ts +0 -49
- package/dist/types/source-resolution.js +0 -10
- package/dist/types/spec/agent.d.ts +0 -111
- package/dist/types/spec/agent.js +0 -3
- package/dist/types/spec/repair.d.ts +0 -33
- package/dist/types/spec/repair.js +0 -3
- package/dist/types/spec-cookbook-types.d.ts +0 -45
- package/dist/types/spec-cookbook-types.js +0 -3
- package/dist/types/spec-decomposer.d.ts +0 -125
- package/dist/types/spec-decomposer.js +0 -4
- package/dist/types/spec-dependency-graph.d.ts +0 -21
- package/dist/types/spec-dependency-graph.js +0 -2
- package/dist/types/spec-diff-visual-types.d.ts +0 -75
- package/dist/types/spec-diff-visual-types.js +0 -3
- package/dist/types/spec-effectiveness.d.ts +0 -63
- package/dist/types/spec-effectiveness.js +0 -3
- package/dist/types/spec-elicitation.d.ts +0 -26
- package/dist/types/spec-elicitation.js +0 -3
- package/dist/types/spec-export.d.ts +0 -18
- package/dist/types/spec-export.js +0 -3
- package/dist/types/spec-from-issue.d.ts +0 -37
- package/dist/types/spec-from-issue.js +0 -3
- package/dist/types/spec-hooks.d.ts +0 -62
- package/dist/types/spec-hooks.js +0 -3
- package/dist/types/spec-marketplace.d.ts +0 -31
- package/dist/types/spec-marketplace.js +0 -3
- package/dist/types/spec-obesity-healer.d.ts +0 -32
- package/dist/types/spec-obesity-healer.js +0 -3
- package/dist/types/spec-registry.d.ts +0 -194
- package/dist/types/spec-registry.js +0 -3
- package/dist/types/spec-scheduler.d.ts +0 -58
- package/dist/types/spec-scheduler.js +0 -3
- package/dist/types/spec-source-types.d.ts +0 -37
- package/dist/types/spec-source-types.js +0 -3
- package/dist/types/spec-templates.d.ts +0 -135
- package/dist/types/spec-templates.js +0 -3
- package/dist/types/spec-versioning.d.ts +0 -152
- package/dist/types/spec-versioning.js +0 -3
- package/dist/types/stack/deprecation.d.ts +0 -38
- package/dist/types/stack/deprecation.js +0 -3
- package/dist/types/stack/react.d.ts +0 -11
- package/dist/types/stack/react.js +0 -3
- package/dist/types/steering.d.ts +0 -40
- package/dist/types/steering.js +0 -3
- package/dist/types/storage.d.ts +0 -16
- package/dist/types/storage.js +0 -3
- package/dist/types/storybook.d.ts +0 -27
- package/dist/types/storybook.js +0 -3
- package/dist/types/structural-memory.d.ts +0 -138
- package/dist/types/structural-memory.js +0 -2
- package/dist/types/supabase.d.ts +0 -108
- package/dist/types/supabase.js +0 -3
- package/dist/types/tdd-strict.d.ts +0 -54
- package/dist/types/tdd-strict.js +0 -3
- package/dist/types/team-analytics.d.ts +0 -52
- package/dist/types/team-analytics.js +0 -3
- package/dist/types/tech-debt.d.ts +0 -66
- package/dist/types/tech-debt.js +0 -3
- package/dist/types/test-reverse-engineer.d.ts +0 -32
- package/dist/types/test-reverse-engineer.js +0 -3
- package/dist/types/tool-tier.d.ts +0 -16
- package/dist/types/tool-tier.js +0 -3
- package/dist/types/tooling/assessment.d.ts +0 -87
- package/dist/types/tooling/assessment.js +0 -2
- package/dist/types/tooling/bundles.d.ts +0 -34
- package/dist/types/tooling/bundles.js +0 -3
- package/dist/types/tooling/catalog.d.ts +0 -134
- package/dist/types/tooling/catalog.js +0 -3
- package/dist/types/tooling/memory-config.d.ts +0 -25
- package/dist/types/tooling/memory-config.js +0 -3
- package/dist/types/tooling/token-optimizer.d.ts +0 -42
- package/dist/types/tooling/token-optimizer.js +0 -3
- package/dist/types/type-safety-gate.d.ts +0 -21
- package/dist/types/type-safety-gate.js +0 -3
- package/dist/types/verify-integrations.d.ts +0 -80
- package/dist/types/verify-integrations.js +0 -3
- package/dist/types/version-resolution.d.ts +0 -23
- package/dist/types/version-resolution.js +0 -3
- package/dist/types/well-known.d.ts +0 -70
- package/dist/types/well-known.js +0 -3
- package/dist/types/workflow-checkpoint.d.ts +0 -66
- package/dist/types/workflow-checkpoint.js +0 -4
|
@@ -3,15 +3,8 @@ export { filterUnprefixedSpecs, migrateSpecFolderNames } from './prefix-migratio
|
|
|
3
3
|
export { discoverAndFlattenSpecs } from './flatten-specs.js';
|
|
4
4
|
export { reconcileSpecPaths } from './reconcile-paths.js';
|
|
5
5
|
export { importFilesystemSpecs } from './filesystem-import.js';
|
|
6
|
-
export { buildCanonicalRepairPlan, repairDuplicateSpecIds, rollbackCanonicalRepair, } from './canonical-deduplicator.js';
|
|
7
|
-
export { rewritePath, flattenSpecPath } from './path-utils.js';
|
|
8
6
|
export { hasLegacyConfig } from './version-detection.js';
|
|
9
|
-
export {
|
|
10
|
-
export { migrateAllSpecsToLean, migrateSpecToLean, isOldFormat } from './lean-migration.js';
|
|
7
|
+
export { migrateAllSpecsToLean } from './lean-migration.js';
|
|
11
8
|
export { scanForAmbiguousCriteria } from './criteria-scanner.js';
|
|
12
|
-
export {
|
|
13
|
-
export { foldTechnicalIntoSpec } from './fold-technical.js';
|
|
14
|
-
export { foldProgressIntoSpec, isBoilerplateProgress } from './fold-progress.js';
|
|
15
|
-
export { runSsrBackMigration } from './ssr-back-migration.js';
|
|
16
|
-
export { PLANU_CANONICAL_POLICY, runStrictPlanuCleanup, validateStrictPlanuLayout, } from './strict-planu-cleanup.js';
|
|
9
|
+
export { runStrictPlanuCleanup, validateStrictPlanuLayout } from './strict-planu-cleanup.js';
|
|
17
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -9,22 +9,15 @@ export { discoverAndFlattenSpecs } from './flatten-specs.js';
|
|
|
9
9
|
export { reconcileSpecPaths } from './reconcile-paths.js';
|
|
10
10
|
// Import filesystem specs into the store
|
|
11
11
|
export { importFilesystemSpecs } from './filesystem-import.js';
|
|
12
|
-
export { buildCanonicalRepairPlan, repairDuplicateSpecIds, rollbackCanonicalRepair, } from './canonical-deduplicator.js';
|
|
13
12
|
// Path utilities (re-exported for consumers that may depend on them)
|
|
14
|
-
export { rewritePath, flattenSpecPath } from './path-utils.js';
|
|
15
13
|
// Legacy config detection
|
|
16
14
|
export { hasLegacyConfig } from './version-detection.js';
|
|
17
15
|
// Validation helpers for migration results
|
|
18
|
-
export { validateMigrationResult, mergeMigrationResults, emptyMigrationResult, } from './migration-validator.js';
|
|
19
16
|
// SPEC-461 Phase 2: Lean format migration (verbose → lean)
|
|
20
|
-
export { migrateAllSpecsToLean
|
|
17
|
+
export { migrateAllSpecsToLean } from './lean-migration.js';
|
|
21
18
|
// SPEC-487: Scan lean specs for ambiguous criteria (score < 50)
|
|
22
19
|
export { scanForAmbiguousCriteria } from './criteria-scanner.js';
|
|
23
20
|
// SPEC-630: Merge technical.md into unified spec.md
|
|
24
21
|
// SPEC-752: SSR back-migration — fold legacy technical.md/progress.md into spec.md
|
|
25
|
-
export {
|
|
26
|
-
export { foldTechnicalIntoSpec } from './fold-technical.js';
|
|
27
|
-
export { foldProgressIntoSpec, isBoilerplateProgress } from './fold-progress.js';
|
|
28
|
-
export { runSsrBackMigration } from './ssr-back-migration.js';
|
|
29
|
-
export { PLANU_CANONICAL_POLICY, runStrictPlanuCleanup, validateStrictPlanuLayout, } from './strict-planu-cleanup.js';
|
|
22
|
+
export { runStrictPlanuCleanup, validateStrictPlanuLayout } from './strict-planu-cleanup.js';
|
|
30
23
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import type { StrictPlanuCleanupResult, StrictPlanuValidationOptions, StrictPlanuValidationResult, HousekeepingAuthority, LegacyArtifactHit } from '../../types/index.js';
|
|
2
|
-
import { PLANU_CANONICAL_POLICY } from './planu-canonical-policy.js';
|
|
3
2
|
declare function classifyPendingLegacySpecFile(specDir: string, fileName: string): Promise<LegacyArtifactHit>;
|
|
4
3
|
export declare function findTrackedNonCanonicalSpecFiles(projectPath: string): Promise<string[]>;
|
|
5
4
|
export declare function runStrictPlanuCleanup(projectPath: string, authority?: HousekeepingAuthority): Promise<StrictPlanuCleanupResult>;
|
|
6
5
|
export declare function validateStrictPlanuLayout(projectPath: string, options?: StrictPlanuValidationOptions): Promise<StrictPlanuValidationResult>;
|
|
7
|
-
export {
|
|
6
|
+
export { classifyPendingLegacySpecFile };
|
|
8
7
|
//# sourceMappingURL=strict-planu-cleanup.d.ts.map
|
|
@@ -8,7 +8,7 @@ import { dirname, isAbsolute, join, relative } from 'node:path';
|
|
|
8
8
|
import { atomicWriteFile } from '../safety/atomic-write-file.js';
|
|
9
9
|
import { safeUnlink } from './git-aware-fs.js';
|
|
10
10
|
import { scanLegacyArtifacts } from './legacy-classifier.js';
|
|
11
|
-
import {
|
|
11
|
+
import { canonicalContractText, isCanonicalPlanuRootDir, isCanonicalPlanuRootFile, isLegacyReleasePendingFile, isCanonicalSpecDir, isCanonicalSpecFile, isRuntimeHomeRootDir, mustMergeBeforeDeleteSpecFile, } from './planu-canonical-policy.js';
|
|
12
12
|
const execFileAsync = promisify(execFile);
|
|
13
13
|
// SPEC-1699: legacy planu/ root files folded into project.json by init_project's
|
|
14
14
|
// migration. Destructive cleanup must never delete them outright — only the
|
|
@@ -307,5 +307,5 @@ export async function validateStrictPlanuLayout(projectPath, options = {}) {
|
|
|
307
307
|
}
|
|
308
308
|
return { ok: offenders.length === 0, offenders, contract: canonicalContractText() };
|
|
309
309
|
}
|
|
310
|
-
export {
|
|
310
|
+
export { classifyPendingLegacySpecFile };
|
|
311
311
|
//# sourceMappingURL=strict-planu-cleanup.js.map
|
|
@@ -2,8 +2,8 @@ import type { Spec, SpecStatus } from '../../types/index.js';
|
|
|
2
2
|
/**
|
|
3
3
|
* Why this transition is happening — surfaces in audit-trail and transition_log.
|
|
4
4
|
*/
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
type TransitionTrigger = 'user' | 'auto-advance' | 'git-merge' | 'fs-hook' | 'sync-spec-state' | 'multi-teammate-review' | 'http' | 'dashboard' | 'reopen' | 'reconciliation';
|
|
6
|
+
interface TransitionContext {
|
|
7
7
|
/** Why this transition is happening. */
|
|
8
8
|
trigger: TransitionTrigger;
|
|
9
9
|
/** sessionId or 'system'. */
|
|
@@ -52,4 +52,5 @@ export declare function transitionSpec(projectId: string, specId: string, newSta
|
|
|
52
52
|
* The update_status caller must still hold the per-spec cross-process lock.
|
|
53
53
|
*/
|
|
54
54
|
export declare function rollbackTransitionSpec(record: TransitionRecord): Promise<Spec>;
|
|
55
|
+
export {};
|
|
55
56
|
//# sourceMappingURL=transition-spec.d.ts.map
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { BumpSpecVersionInput, BumpSpecVersionResult, SemverBumpKind } from '../../types/index.js';
|
|
2
|
-
import { migrateFrontmatterToCurrentFormat } from './migrate-format.js';
|
|
3
2
|
/**
|
|
4
3
|
* Compute the next SemVer string from a current version and a bump kind.
|
|
5
4
|
*
|
|
@@ -15,5 +14,4 @@ export declare function bumpSemver(current: string, kind: SemverBumpKind): strin
|
|
|
15
14
|
export declare function bumpSpecVersion(input: BumpSpecVersionInput & {
|
|
16
15
|
specPath: string;
|
|
17
16
|
}): Promise<BumpSpecVersionResult>;
|
|
18
|
-
export { migrateFrontmatterToCurrentFormat };
|
|
19
17
|
//# sourceMappingURL=bump-version.d.ts.map
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { readFile, writeFile, rename, mkdir } from 'node:fs/promises';
|
|
3
3
|
import { dirname } from 'node:path';
|
|
4
4
|
import { existsSync } from 'node:fs';
|
|
5
|
-
import { detectSpecFormatVersion
|
|
5
|
+
import { detectSpecFormatVersion } from './migrate-format.js';
|
|
6
6
|
import { renderHistoryYaml } from './render-history.js';
|
|
7
7
|
// ---------------------------------------------------------------------------
|
|
8
8
|
// Pure SemVer bump
|
|
@@ -196,5 +196,4 @@ async function atomicWriteText(filePath, content) {
|
|
|
196
196
|
function deriveSessionId() {
|
|
197
197
|
return `session:${Date.now().toString(36)}`;
|
|
198
198
|
}
|
|
199
|
-
export { migrateFrontmatterToCurrentFormat };
|
|
200
199
|
//# sourceMappingURL=bump-version.js.map
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { glob } from 'glob';
|
|
2
1
|
import type { ManifestData, RuntimeVersionStatus } from '../../types/index.js';
|
|
3
2
|
/** Detect the primary ecosystem for a project path. */
|
|
4
3
|
export declare function detectEcosystem(projectPath: string): Promise<string>;
|
|
@@ -10,5 +9,4 @@ export declare function readLockfileVersions(projectPath: string): Promise<Map<s
|
|
|
10
9
|
export declare function detectRuntimeVersions(projectPath: string): Promise<RuntimeVersionStatus[]>;
|
|
11
10
|
/** Read all manifest data for a project path. */
|
|
12
11
|
export declare function readManifest(projectPath: string): Promise<ManifestData>;
|
|
13
|
-
export { glob };
|
|
14
12
|
//# sourceMappingURL=manifest-reader.d.ts.map
|
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
import type { SupplyChainReport } from '../../types/index.js';
|
|
2
|
-
export { detectSlsaLevel, buildSlsaGaps, detectSlsaProvenanceFormat, detectNpmProvenance, } from './slsa-checker.js';
|
|
3
|
-
export type { NpmProvenanceResult, SlsaProvenanceFormat } from './slsa-checker.js';
|
|
4
|
-
export { checkSbom, buildSbomGaps } from './sbom-checker.js';
|
|
5
|
-
export { checkDependencies, buildDependencyGaps } from './dependency-checker.js';
|
|
6
|
-
export { checkBuild, buildBuildGaps } from './build-checker.js';
|
|
7
2
|
/**
|
|
8
3
|
* Run all supply chain security checks and return a consolidated SupplyChainReport.
|
|
9
4
|
* Accepts an optional compliance context to tune gap severities.
|
|
@@ -4,10 +4,6 @@ import { detectSlsaLevel, buildSlsaGaps } from './slsa-checker.js';
|
|
|
4
4
|
import { checkSbom, buildSbomGaps } from './sbom-checker.js';
|
|
5
5
|
import { checkDependencies, buildDependencyGaps } from './dependency-checker.js';
|
|
6
6
|
import { checkBuild, buildBuildGaps } from './build-checker.js';
|
|
7
|
-
export { detectSlsaLevel, buildSlsaGaps, detectSlsaProvenanceFormat, detectNpmProvenance, } from './slsa-checker.js';
|
|
8
|
-
export { checkSbom, buildSbomGaps } from './sbom-checker.js';
|
|
9
|
-
export { checkDependencies, buildDependencyGaps } from './dependency-checker.js';
|
|
10
|
-
export { checkBuild, buildBuildGaps } from './build-checker.js';
|
|
11
7
|
/**
|
|
12
8
|
* Run all supply chain security checks and return a consolidated SupplyChainReport.
|
|
13
9
|
* Accepts an optional compliance context to tune gap severities.
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
// engine/team-planner/index.ts — Barrel export for team planner module (SPEC-091)
|
|
2
|
-
export { planTeamDistribution } from './distribution-planner.js';
|
|
3
2
|
export { buildTeammatePrompt } from './prompt-builder.js';
|
|
4
|
-
export { validateTeamResults } from './result-validator.js';
|
|
5
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { readFile } from 'node:fs/promises';
|
|
4
4
|
import { join } from 'node:path';
|
|
5
5
|
import { isTelemetryEnabled } from './telemetry-store.js';
|
|
6
|
-
import { sendTelemetryEvent } from './telemetry-client.js';
|
|
6
|
+
import { sendTelemetryEvent, isValidTelemetryEndpoint } from './telemetry-client.js';
|
|
7
7
|
// eslint-disable-next-line no-restricted-imports -- grandfathered layer violation, remediation SPEC-1661 SPEC-1662 SPEC-1663
|
|
8
8
|
import { hashProjectPath, projectDataDir } from '../../storage/base-store.js';
|
|
9
9
|
import { networkFetch, withNetworkConsent } from '../network-policy.js';
|
|
@@ -47,24 +47,6 @@ function checkEndpointConfigured(endpoint) {
|
|
|
47
47
|
detail: 'Telemetry endpoint configured',
|
|
48
48
|
};
|
|
49
49
|
}
|
|
50
|
-
function isLoopbackHost(hostname) {
|
|
51
|
-
return hostname === 'localhost' || hostname === '127.0.0.1' || hostname === '[::1]';
|
|
52
|
-
}
|
|
53
|
-
function isValidTelemetryEndpoint(endpoint) {
|
|
54
|
-
if (!endpoint || endpoint.trim() === '') {
|
|
55
|
-
return false;
|
|
56
|
-
}
|
|
57
|
-
try {
|
|
58
|
-
const parsed = new URL(endpoint.trim());
|
|
59
|
-
return (parsed.username === '' &&
|
|
60
|
-
parsed.password === '' &&
|
|
61
|
-
(parsed.protocol === 'https:' ||
|
|
62
|
-
(parsed.protocol === 'http:' && isLoopbackHost(parsed.hostname))));
|
|
63
|
-
}
|
|
64
|
-
catch {
|
|
65
|
-
return false;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
50
|
function checkTokenConfigured(token) {
|
|
69
51
|
return token?.trim()
|
|
70
52
|
? { name: 'token-configured', status: 'ok', detail: 'Telemetry token configured' }
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { TelemetryEvent, TelemetryEnvelopeEventName, TelemetryEnvelopeInput } from '../../types/index.js';
|
|
2
|
+
export declare function isValidTelemetryEndpoint(endpoint: string | undefined): endpoint is string;
|
|
2
3
|
/** Fire-and-forget; absence or staleness of opt-in prevents any network access. */
|
|
3
4
|
export declare function sendTelemetryEvent(event: TelemetryEvent): void;
|
|
4
5
|
/**
|
|
@@ -6,7 +6,7 @@ import { buildTelemetryEnvelope, TELEMETRY_SESSION_ID } from './event-envelope.j
|
|
|
6
6
|
function isLoopbackHost(hostname) {
|
|
7
7
|
return hostname === 'localhost' || hostname === '127.0.0.1' || hostname === '[::1]';
|
|
8
8
|
}
|
|
9
|
-
function isValidTelemetryEndpoint(endpoint) {
|
|
9
|
+
export function isValidTelemetryEndpoint(endpoint) {
|
|
10
10
|
if (!endpoint || endpoint.trim() === '') {
|
|
11
11
|
return false;
|
|
12
12
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { technologyValue } from '../technology-registry.js';
|
|
2
|
-
import { toSnake } from './helpers.js';
|
|
2
|
+
import { toSnake, getFrameworkExt, getFrameworkRunCommand } from './helpers.js';
|
|
3
3
|
// === E2E test scaffold ===
|
|
4
4
|
/**
|
|
5
5
|
* Generate an E2E test scaffold (Playwright by default).
|
|
@@ -15,29 +15,6 @@ export function generateE2ETestScaffold(specTitle, framework) {
|
|
|
15
15
|
runCommand,
|
|
16
16
|
};
|
|
17
17
|
}
|
|
18
|
-
function getFrameworkExt(framework) {
|
|
19
|
-
const extMap = {
|
|
20
|
-
pytest: 'py',
|
|
21
|
-
junit: 'java',
|
|
22
|
-
xunit: 'cs',
|
|
23
|
-
rspec: 'rb',
|
|
24
|
-
'go-test': 'go',
|
|
25
|
-
};
|
|
26
|
-
return extMap[framework] ?? 'ts';
|
|
27
|
-
}
|
|
28
|
-
function getFrameworkRunCommand(framework) {
|
|
29
|
-
const commandMap = {
|
|
30
|
-
vitest: 'npx vitest run',
|
|
31
|
-
jest: 'npx jest',
|
|
32
|
-
mocha: 'npx mocha',
|
|
33
|
-
pytest: 'python -m pytest',
|
|
34
|
-
junit: 'mvn test',
|
|
35
|
-
xunit: 'dotnet test',
|
|
36
|
-
rspec: 'bundle exec rspec',
|
|
37
|
-
'go-test': 'go test ./...',
|
|
38
|
-
};
|
|
39
|
-
return commandMap[framework];
|
|
40
|
-
}
|
|
41
18
|
function buildE2EContent(title) {
|
|
42
19
|
return [
|
|
43
20
|
"import { test, expect } from '@playwright/test';",
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { ChangedPathInput, ClassifiedPath, IntegrationTestPolicy, TestSelectionDeps, TestSelectionOptions, TestSelectionPlan } from '../../types/validation-evidence.js';
|
|
2
|
-
export declare const INTEGRATION_TEST_PREFIX = "tests/integration/";
|
|
3
2
|
export declare const INTEGRATION_POLICY_ENV: Record<IntegrationTestPolicy, Record<string, string>>;
|
|
4
3
|
export declare function withIntegrationPolicy(base: NodeJS.ProcessEnv, policy: IntegrationTestPolicy): NodeJS.ProcessEnv;
|
|
5
4
|
export declare function resolveIntegrationPolicy(paths: readonly string[]): IntegrationTestPolicy;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { existsSync, readFileSync } from 'node:fs';
|
|
2
2
|
import { join } from 'node:path';
|
|
3
3
|
import { globSync } from 'glob';
|
|
4
|
-
|
|
4
|
+
const INTEGRATION_TEST_PREFIX = 'tests/integration/';
|
|
5
5
|
export const INTEGRATION_POLICY_ENV = {
|
|
6
6
|
exclude: { PLANU_EXCLUDE_INTEGRATION_TESTS: '1' },
|
|
7
7
|
only: { PLANU_INTEGRATION_TESTS_ONLY: '1' },
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import type { TestSpec } from '../../types/index.js';
|
|
2
|
-
export { EDGE_CASE_KEYWORDS, getLabels, hasEdgeCaseKeyword } from './labels.js';
|
|
3
|
-
export { suggestTestData, extractGiven, extractWhen, extractThen } from './criterion-parser.js';
|
|
4
|
-
export { buildScenarios } from './scenario-builders.js';
|
|
5
2
|
/**
|
|
6
3
|
* Generates a TestSpec from a list of acceptance criteria strings.
|
|
7
4
|
* Each criterion produces at least 2 scenarios (happy-path + error).
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
// engine/test-spec-generator/index.ts — Barrel: generateTestSpec + re-exports
|
|
2
2
|
import { buildScenarios } from './scenario-builders.js';
|
|
3
|
-
export { EDGE_CASE_KEYWORDS, getLabels, hasEdgeCaseKeyword } from './labels.js';
|
|
4
|
-
export { suggestTestData, extractGiven, extractWhen, extractThen } from './criterion-parser.js';
|
|
5
|
-
export { buildScenarios } from './scenario-builders.js';
|
|
6
3
|
/**
|
|
7
4
|
* Generates a TestSpec from a list of acceptance criteria strings.
|
|
8
5
|
* Each criterion produces at least 2 scenarios (happy-path + error).
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { ScenarioLabels } from '../../types/index.js';
|
|
2
|
-
export declare const EDGE_CASE_KEYWORDS: string[];
|
|
3
2
|
export declare function getLabels(locale: string): ScenarioLabels;
|
|
4
3
|
export declare function hasEdgeCaseKeyword(criterion: string): boolean;
|
|
5
4
|
//# sourceMappingURL=labels.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { BudgetResult
|
|
2
|
-
export type { BudgetResult
|
|
1
|
+
import type { BudgetResult } from '../../types/timing.js';
|
|
2
|
+
export type { BudgetResult };
|
|
3
3
|
/**
|
|
4
4
|
* Runs a step under a child deadline. The supplied signal is aborted when the
|
|
5
5
|
* local budget or any parent request deadline expires. Abandoned work is
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
import type { TimingRecord } from '../../types/timing.js';
|
|
2
|
-
export type { TimingRecord };
|
|
3
|
-
/**
|
|
4
|
-
* Emit a single timing record to stderr in JSON format.
|
|
5
|
-
* Only active when PLANU_TIMING=1.
|
|
6
|
-
*/
|
|
7
|
-
export declare function emitTiming(record: TimingRecord): void;
|
|
8
1
|
/**
|
|
9
2
|
* Measure elapsed time for an async operation and emit a timing record.
|
|
10
3
|
* The operation result is returned unchanged.
|
|
@@ -14,5 +7,4 @@ export declare function measureStep<T>(step: string, fn: () => Promise<T>): Prom
|
|
|
14
7
|
/**
|
|
15
8
|
* Synchronous variant of measureStep.
|
|
16
9
|
*/
|
|
17
|
-
export declare function measureStepSync<T>(step: string, fn: () => T): T;
|
|
18
10
|
//# sourceMappingURL=structured-log.d.ts.map
|
|
@@ -6,7 +6,7 @@ const TIMING_ENABLED = process.env.PLANU_TIMING === '1';
|
|
|
6
6
|
* Emit a single timing record to stderr in JSON format.
|
|
7
7
|
* Only active when PLANU_TIMING=1.
|
|
8
8
|
*/
|
|
9
|
-
|
|
9
|
+
function emitTiming(record) {
|
|
10
10
|
if (!TIMING_ENABLED) {
|
|
11
11
|
return;
|
|
12
12
|
}
|
|
@@ -33,17 +33,4 @@ export async function measureStep(step, fn) {
|
|
|
33
33
|
/**
|
|
34
34
|
* Synchronous variant of measureStep.
|
|
35
35
|
*/
|
|
36
|
-
export function measureStepSync(step, fn) {
|
|
37
|
-
if (!TIMING_ENABLED) {
|
|
38
|
-
return fn();
|
|
39
|
-
}
|
|
40
|
-
const start = performance.now();
|
|
41
|
-
try {
|
|
42
|
-
return fn();
|
|
43
|
-
}
|
|
44
|
-
finally {
|
|
45
|
-
const durationMs = Math.round(performance.now() - start);
|
|
46
|
-
emitTiming({ step, durationMs, ts: new Date().toISOString() });
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
36
|
//# sourceMappingURL=structured-log.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type LedgerEntry, type LedgerAggregation, type BudgetConfig, type LedgerBudgetStatus, type DailyBreakdown, type TrendResult, type Anomaly, type TopConsumer, type OptimizationSavings } from '../../types/index.js';
|
|
2
2
|
export type { DailyBreakdown, TrendResult, Anomaly, TopConsumer, OptimizationSavings };
|
|
3
3
|
export declare function aggregateEntries(entries: LedgerEntry[]): LedgerAggregation;
|
|
4
4
|
export declare function computeDailyBreakdown(entries: LedgerEntry[]): DailyBreakdown[];
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// Cost Analytics Engine (SPEC-182)
|
|
2
2
|
// Aggregations, trends, anomaly detection, and projections from token ledger data
|
|
3
|
+
import { emptyLedgerAggregation, } from '../../types/index.js';
|
|
3
4
|
// ---------------------------------------------------------------------------
|
|
4
5
|
// Constants
|
|
5
6
|
// ---------------------------------------------------------------------------
|
|
@@ -55,33 +56,12 @@ function computeEstimationAccuracy(estimatedCount, actualForEstimated, estimated
|
|
|
55
56
|
overEstimationPercent: ((estimatedSum - actualForEstimated) / actualForEstimated) * 100,
|
|
56
57
|
};
|
|
57
58
|
}
|
|
58
|
-
function buildEmptyAggregation() {
|
|
59
|
-
return {
|
|
60
|
-
totalTokens: 0,
|
|
61
|
-
totalInputTokens: 0,
|
|
62
|
-
totalOutputTokens: 0,
|
|
63
|
-
totalCostUsd: 0,
|
|
64
|
-
totalEstimatedCostUsd: 0,
|
|
65
|
-
entryCount: 0,
|
|
66
|
-
uniqueTools: 0,
|
|
67
|
-
uniqueModels: 0,
|
|
68
|
-
uniqueSessions: 0,
|
|
69
|
-
avgTokensPerCall: 0,
|
|
70
|
-
avgCostPerCall: 0,
|
|
71
|
-
tokensByTool: {},
|
|
72
|
-
costByTool: {},
|
|
73
|
-
tokensByModel: {},
|
|
74
|
-
costByModel: {},
|
|
75
|
-
estimationAccuracy: 100,
|
|
76
|
-
overEstimationPercent: 0,
|
|
77
|
-
};
|
|
78
|
-
}
|
|
79
59
|
function incrementRecord(rec, key, val) {
|
|
80
60
|
return { ...rec, [key]: (rec[key] ?? 0) + val };
|
|
81
61
|
}
|
|
82
62
|
export function aggregateEntries(entries) {
|
|
83
63
|
if (entries.length === 0) {
|
|
84
|
-
return
|
|
64
|
+
return emptyLedgerAggregation();
|
|
85
65
|
}
|
|
86
66
|
const result = entries.reduce((a, e) => {
|
|
87
67
|
const hasEst = e.estimatedTokens !== undefined;
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
import type { TokenWasteAutopilotInput, TokenWasteReport } from '../../types/token-waste-autopilot.js';
|
|
2
|
-
export declare function redactSnippet(text: string, patterns: string[], maxChars: number): string;
|
|
3
2
|
export declare function buildTokenWasteReport(input: TokenWasteAutopilotInput): TokenWasteReport;
|
|
4
|
-
export declare function formatTokenWasteReport(report: TokenWasteReport): string;
|
|
5
3
|
//# sourceMappingURL=autopilot.d.ts.map
|
|
@@ -19,10 +19,7 @@ function modelAdvice(input) {
|
|
|
19
19
|
],
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
|
-
function
|
|
23
|
-
return text.replace(/</g, '<').replace(/>/g, '>');
|
|
24
|
-
}
|
|
25
|
-
export function redactSnippet(text, patterns, maxChars) {
|
|
22
|
+
function redactSnippet(text, patterns, maxChars) {
|
|
26
23
|
const truncated = text.slice(0, maxChars);
|
|
27
24
|
return patterns.reduce((current, pattern) => {
|
|
28
25
|
const re = new RegExp(pattern, 'gi');
|
|
@@ -67,27 +64,4 @@ export function buildTokenWasteReport(input) {
|
|
|
67
64
|
modelEffort,
|
|
68
65
|
};
|
|
69
66
|
}
|
|
70
|
-
export function formatTokenWasteReport(report) {
|
|
71
|
-
const lines = ['## Token Waste Autopilot', ''];
|
|
72
|
-
lines.push(`Model effort: ${escapeInert(report.modelEffort.effort)} — ${escapeInert(report.modelEffort.reason)}`);
|
|
73
|
-
if (report.actionsTaken.length > 0) {
|
|
74
|
-
lines.push('', 'Actions taken:');
|
|
75
|
-
for (const item of report.actionsTaken.slice(0, 6)) {
|
|
76
|
-
lines.push(`- ${escapeInert(item.decision)}: ${escapeInert(item.target)} — ${escapeInert(item.reason)}`);
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
if (report.recommendations.length > 0) {
|
|
80
|
-
lines.push('', 'Recommendations:');
|
|
81
|
-
for (const item of report.recommendations.slice(0, 6)) {
|
|
82
|
-
lines.push(`- ${escapeInert(item.target)}: ${escapeInert(item.reason)}`);
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
if (report.risks.length > 0) {
|
|
86
|
-
lines.push('', 'Risks:');
|
|
87
|
-
for (const item of report.risks.slice(0, 6)) {
|
|
88
|
-
lines.push(`- ${escapeInert(item.target)}: ${escapeInert(item.reason)}`);
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
return lines.join('\n');
|
|
92
|
-
}
|
|
93
67
|
//# sourceMappingURL=autopilot.js.map
|
|
@@ -1,19 +1,7 @@
|
|
|
1
|
-
export { countTokens, estimateCost, getSupportedModels } from './counter.js';
|
|
2
|
-
export { ResponseCache } from './response-cache.js';
|
|
3
|
-
export { compress, selectStrategy, compressChain } from './context-compressor.js';
|
|
4
|
-
export { Deduplicator } from './deduplicator.js';
|
|
5
|
-
export { Batcher } from './batcher.js';
|
|
6
|
-
export { IncrementalTracker } from './incremental.js';
|
|
7
|
-
export { BudgetManager } from './budget.js';
|
|
8
|
-
export { OptimizationReporter } from './reporter.js';
|
|
9
|
-
export { TokenOptimizer } from './optimizer.js';
|
|
10
|
-
export { aggregateEntries, computeDailyBreakdown, detectTrend, detectAnomalies, computeBudgetStatus, getTopConsumers, computeOptimizationSavings, } from './analytics.js';
|
|
11
1
|
export { loadTokenWastePolicy } from './policy-loader.js';
|
|
12
|
-
export { classifyContentType, compactContentAware } from './content-aware-compactor.js';
|
|
13
2
|
export { analyzeContextPreflight } from './context-preflight.js';
|
|
14
3
|
export { filterVerboseOutput } from './output-filter.js';
|
|
15
4
|
export { recommendRelevantTools, toolsFromPolicyGroups } from './tool-relevance.js';
|
|
16
5
|
export { detectTokenWasteLoops } from './loop-detector.js';
|
|
17
|
-
export { buildTokenWasteReport
|
|
18
|
-
export type { DailyBreakdown, TrendResult, Anomaly, TopConsumer, OptimizationSavings, } from './analytics.js';
|
|
6
|
+
export { buildTokenWasteReport } from './autopilot.js';
|
|
19
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,19 +1,8 @@
|
|
|
1
1
|
// engine/token-optimizer/index.ts — Barrel re-exports (SPEC-082)
|
|
2
|
-
export { countTokens, estimateCost, getSupportedModels } from './counter.js';
|
|
3
|
-
export { ResponseCache } from './response-cache.js';
|
|
4
|
-
export { compress, selectStrategy, compressChain } from './context-compressor.js';
|
|
5
|
-
export { Deduplicator } from './deduplicator.js';
|
|
6
|
-
export { Batcher } from './batcher.js';
|
|
7
|
-
export { IncrementalTracker } from './incremental.js';
|
|
8
|
-
export { BudgetManager } from './budget.js';
|
|
9
|
-
export { OptimizationReporter } from './reporter.js';
|
|
10
|
-
export { TokenOptimizer } from './optimizer.js';
|
|
11
|
-
export { aggregateEntries, computeDailyBreakdown, detectTrend, detectAnomalies, computeBudgetStatus, getTopConsumers, computeOptimizationSavings, } from './analytics.js';
|
|
12
2
|
export { loadTokenWastePolicy } from './policy-loader.js';
|
|
13
|
-
export { classifyContentType, compactContentAware } from './content-aware-compactor.js';
|
|
14
3
|
export { analyzeContextPreflight } from './context-preflight.js';
|
|
15
4
|
export { filterVerboseOutput } from './output-filter.js';
|
|
16
5
|
export { recommendRelevantTools, toolsFromPolicyGroups } from './tool-relevance.js';
|
|
17
6
|
export { detectTokenWasteLoops } from './loop-detector.js';
|
|
18
|
-
export { buildTokenWasteReport
|
|
7
|
+
export { buildTokenWasteReport } from './autopilot.js';
|
|
19
8
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,20 +1,10 @@
|
|
|
1
1
|
import { readFile } from 'node:fs/promises';
|
|
2
2
|
import { dirname, join } from 'node:path';
|
|
3
3
|
import { fileURLToPath } from 'node:url';
|
|
4
|
+
import { isRecord, mergeDeep } from '../../core/shared/object.js';
|
|
4
5
|
function configPath() {
|
|
5
6
|
return join(dirname(fileURLToPath(import.meta.url)), '../../config/token-waste-autopilot.json');
|
|
6
7
|
}
|
|
7
|
-
function isRecord(value) {
|
|
8
|
-
return typeof value === 'object' && value !== null && !Array.isArray(value);
|
|
9
|
-
}
|
|
10
|
-
function mergeDeep(base, override) {
|
|
11
|
-
const result = { ...base };
|
|
12
|
-
for (const [key, value] of Object.entries(override)) {
|
|
13
|
-
const current = result[key];
|
|
14
|
-
result[key] = isRecord(current) && isRecord(value) ? mergeDeep(current, value) : value;
|
|
15
|
-
}
|
|
16
|
-
return result;
|
|
17
|
-
}
|
|
18
8
|
function assertStringArray(value, path) {
|
|
19
9
|
if (!Array.isArray(value) || value.some((item) => typeof item !== 'string')) {
|
|
20
10
|
throw new Error(`Invalid token waste policy at ${path}: expected string[]`);
|
|
@@ -13,7 +13,6 @@ export declare function readManifest(manifestPath: string): Promise<RulesManifes
|
|
|
13
13
|
* Returns true if the user has modified the file (disk hash ≠ install hash).
|
|
14
14
|
* Returns false if file matches or the manifest entry is missing.
|
|
15
15
|
*/
|
|
16
|
-
export declare function isUserModified(ruleId: string, manifestPath: string): Promise<boolean>;
|
|
17
16
|
/**
|
|
18
17
|
* Build an updated manifest by adding or replacing an entry for the given rule.
|
|
19
18
|
*/
|
|
@@ -33,24 +33,6 @@ export async function readManifest(manifestPath) {
|
|
|
33
33
|
* Returns true if the user has modified the file (disk hash ≠ install hash).
|
|
34
34
|
* Returns false if file matches or the manifest entry is missing.
|
|
35
35
|
*/
|
|
36
|
-
export async function isUserModified(ruleId, manifestPath) {
|
|
37
|
-
const manifest = await readManifest(manifestPath);
|
|
38
|
-
if (manifest === null) {
|
|
39
|
-
return false;
|
|
40
|
-
}
|
|
41
|
-
const entry = manifest.rules.find((r) => r.id === ruleId);
|
|
42
|
-
if (entry === undefined) {
|
|
43
|
-
return false;
|
|
44
|
-
}
|
|
45
|
-
try {
|
|
46
|
-
const diskContent = await readFile(entry.path, 'utf-8');
|
|
47
|
-
const diskHash = hashContent(diskContent);
|
|
48
|
-
return diskHash !== entry.hashAtInstall;
|
|
49
|
-
}
|
|
50
|
-
catch {
|
|
51
|
-
return false;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
36
|
/**
|
|
55
37
|
* Build an updated manifest by adding or replacing an entry for the given rule.
|
|
56
38
|
*/
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
// engine/usage-tracker/index.ts — Barrel re-export for usage-tracker engine module.
|
|
2
|
-
export { recordUsageEvent
|
|
3
|
-
export { calculateUsageStats, formatStatsAsMarkdown } from './stats.js';
|
|
2
|
+
export { recordUsageEvent } from './core.js';
|
|
4
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -2,7 +2,7 @@ import type { ValidationArtifactDigests, ValidationArtifactProvenanceWriteResult
|
|
|
2
2
|
import type { DurableValidationBindings, ValidationPhase, ValidationPhaseGraphResult, ValidationPhaseProgress } from '../../types/durable-validation.js';
|
|
3
3
|
export type { DurableValidationBindings } from '../../types/durable-validation.js';
|
|
4
4
|
export { gitSourceTreeDigest } from './validation-source-digest.js';
|
|
5
|
-
export { createPendingValidationSubmission, createValidationSubmission, validationOperationId,
|
|
5
|
+
export { createPendingValidationSubmission, createValidationSubmission, validationOperationId, } from './validation-submission.js';
|
|
6
6
|
export declare function absentArtifactDigest(kind: string): string;
|
|
7
7
|
export declare function toValidationReceiptBindings(bindings: DurableValidationBindings, artifactDigests: ValidationArtifactDigests): ValidationReceiptBindings;
|
|
8
8
|
/**
|
|
@@ -10,7 +10,7 @@ import { evidenceArtifactCollectionDigest, evidenceArtifactDigest, } from '../ev
|
|
|
10
10
|
import { gitSourceTreeDigest } from './validation-source-digest.js';
|
|
11
11
|
import { PROJECT_ID as CANONICAL_PROJECT_ID } from './validation-receipt-codec.js';
|
|
12
12
|
export { gitSourceTreeDigest } from './validation-source-digest.js';
|
|
13
|
-
export { createPendingValidationSubmission, createValidationSubmission, validationOperationId,
|
|
13
|
+
export { createPendingValidationSubmission, createValidationSubmission, validationOperationId, } from './validation-submission.js';
|
|
14
14
|
const DIGEST_PATTERN = /^sha256:[a-f0-9]{64}$/u;
|
|
15
15
|
const DEFAULT_MAX_CONCURRENCY = 2;
|
|
16
16
|
const MAX_CONCURRENCY = 8;
|
|
@@ -4,8 +4,6 @@ import type { DurableValidationBindings } from '../../types/durable-validation.j
|
|
|
4
4
|
import type { ValidationArtifactDigests, ValidationFreshnessLease } from '../../types/validation-receipt.js';
|
|
5
5
|
/** Stable identity for exactly one immutable validation input tuple. */
|
|
6
6
|
export declare function validationOperationId(bindings: DurableValidationBindings, validationRootId: string): string;
|
|
7
|
-
/** Stable identity used to acknowledge before repository-wide bindings are computed. */
|
|
8
|
-
export declare function validationSubmissionOperationId(projectId: string, specId: string, validationRootId: string): string;
|
|
9
7
|
/** Accept one pre-bound durable validation for internal and compatibility callers. */
|
|
10
8
|
export declare function createValidationSubmission(input: {
|
|
11
9
|
readonly runtime: DurableJobRuntime;
|
|
@@ -38,7 +38,7 @@ export function validationOperationId(bindings, validationRootId) {
|
|
|
38
38
|
return `validation-${operationDigest}`;
|
|
39
39
|
}
|
|
40
40
|
/** Stable identity used to acknowledge before repository-wide bindings are computed. */
|
|
41
|
-
|
|
41
|
+
function validationSubmissionOperationId(projectId, specId, validationRootId) {
|
|
42
42
|
if (!CANONICAL_PROJECT_ID.test(projectId) ||
|
|
43
43
|
!CANONICAL_SPEC_ID.test(specId) ||
|
|
44
44
|
!isValidationRootId(validationRootId)) {
|