@planu/cli 5.7.20 → 5.7.21
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 +14 -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/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/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/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/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-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-ecosystem-detectors.d.ts +0 -8
- package/dist/engine/detectors/otel-ecosystem-detectors.js +4 -8
- 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/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/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 +0 -1
- 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/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/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 +0 -1
- package/dist/engine/safety/lock-lease-store.d.ts +4 -3
- 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 +1 -2
- 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/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/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/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/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/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/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-session-safeguard-hook.d.ts +1 -1
- 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 +0 -2
- 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 +0 -70
- package/dist/types/token-ledger.js +8 -0
- 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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// engine/workers/schema.ts — Registry validation schemas for worker definitions (SPEC-078)
|
|
2
2
|
// Lives in engine/ so worker-engine.ts can import without violating architecture.
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
|
|
4
|
+
const WorkerTriggerSchema = z.object({
|
|
5
5
|
type: z
|
|
6
6
|
.enum(['file-change', 'event', 'schedule'])
|
|
7
7
|
.describe('Trigger type: file-change | event | schedule'),
|
|
@@ -22,7 +22,7 @@ export const WorkerTriggerSchema = z.object({
|
|
|
22
22
|
.optional()
|
|
23
23
|
.describe('Interval in ms for schedule triggers'),
|
|
24
24
|
});
|
|
25
|
-
|
|
25
|
+
const WorkerDefinitionSchema = z.object({
|
|
26
26
|
name: z.string().min(1).max(500).describe('Unique worker name'),
|
|
27
27
|
description: z
|
|
28
28
|
.string()
|
|
@@ -8,5 +8,4 @@ export declare class BoundaryFailure extends Error {
|
|
|
8
8
|
constructor(kind: (typeof BOUNDARY_FAILURE_KINDS)[number], operation: string, remediation: string, cause?: BoundaryFailure);
|
|
9
9
|
}
|
|
10
10
|
export declare function classifyBoundaryFailure(error: unknown, operation: string, remediation?: string): BoundaryFailure;
|
|
11
|
-
export declare function isBoundaryFailure(value: unknown): value is BoundaryFailure;
|
|
12
11
|
//# sourceMappingURL=error-taxonomy.d.ts.map
|
|
@@ -56,7 +56,4 @@ export function classifyBoundaryFailure(error, operation, remediation = 'Retry o
|
|
|
56
56
|
const kind = code === undefined ? 'Internal' : (NODE_ERROR_CLASSIFICATION[code] ?? 'Internal');
|
|
57
57
|
return new BoundaryFailure(kind, operation, remediation);
|
|
58
58
|
}
|
|
59
|
-
export function isBoundaryFailure(value) {
|
|
60
|
-
return value instanceof BoundaryFailure;
|
|
61
|
-
}
|
|
62
59
|
//# sourceMappingURL=error-taxonomy.js.map
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import type { CoachRulePack } from '../../engine/coach/types.js';
|
|
2
1
|
/**
|
|
3
2
|
* SPEC-754: Return the shell-hygiene reminder string for the claude-code host.
|
|
4
3
|
* Instructs the LLM to KillShell any background shells it started during the spec cycle.
|
|
5
4
|
*/
|
|
6
5
|
export declare function shellHygieneReminder(): string;
|
|
7
|
-
export declare const claudeCodeRulePack: CoachRulePack;
|
|
8
6
|
//# sourceMappingURL=coach.d.ts.map
|
|
@@ -7,22 +7,4 @@ import { t } from '../../engine/coach/i18n.js';
|
|
|
7
7
|
export function shellHygieneReminder() {
|
|
8
8
|
return t('coach.shell_hygiene.kill_background');
|
|
9
9
|
}
|
|
10
|
-
export const claudeCodeRulePack = {
|
|
11
|
-
host: 'claude-code',
|
|
12
|
-
hints: {
|
|
13
|
-
'spec.no_bdd': (params) => ({
|
|
14
|
-
trigger: 'spec.no_bdd',
|
|
15
|
-
message: t('coach.spec.no_bdd', params),
|
|
16
|
-
actionLabel: t('coach.spec.no_bdd.action'),
|
|
17
|
-
severity: 'warn',
|
|
18
|
-
}),
|
|
19
|
-
'spec.review_needed': (params) => ({
|
|
20
|
-
trigger: 'spec.review_needed',
|
|
21
|
-
message: t('coach.spec.review_needed.claude_code', params),
|
|
22
|
-
actionLabel: t('coach.spec.review_needed.action'),
|
|
23
|
-
helpText: t('coach.spec.review_needed.claude_code.help'),
|
|
24
|
-
severity: 'info',
|
|
25
|
-
}),
|
|
26
|
-
},
|
|
27
|
-
};
|
|
28
10
|
//# sourceMappingURL=coach.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { UxScaffoldResult } from '../../../types/claude-code-ux.js';
|
|
2
2
|
/** Canonical skill slugs managed by SPEC-588. */
|
|
3
3
|
declare const SKILL_SLUGS: readonly string[];
|
|
4
4
|
/**
|
|
@@ -17,5 +17,4 @@ export { SKILL_SLUGS };
|
|
|
17
17
|
/** Exported for tests — parses trigger list from frontmatter. */
|
|
18
18
|
export { parseSkillTriggers };
|
|
19
19
|
/** Exported for sync script usage. */
|
|
20
|
-
export type { SkillMeta };
|
|
21
20
|
//# sourceMappingURL=skills-writer.d.ts.map
|
|
@@ -105,4 +105,5 @@ export async function scaffoldPlanuSkills(projectPath) {
|
|
|
105
105
|
export { SKILL_SLUGS };
|
|
106
106
|
/** Exported for tests — parses trigger list from frontmatter. */
|
|
107
107
|
export { parseSkillTriggers };
|
|
108
|
+
/** Exported for sync script usage. */
|
|
108
109
|
//# sourceMappingURL=skills-writer.js.map
|
|
@@ -6,8 +6,6 @@ declare const AGENT_SLUGS: readonly string[];
|
|
|
6
6
|
* Returns null if the template has no valid frontmatter.
|
|
7
7
|
*/
|
|
8
8
|
declare function parseFrontmatter(content: string): Pick<SubagentDefinition, 'name' | 'description' | 'tools'> | null;
|
|
9
|
-
/** Resolve the canonical template directory (works after tsc compilation). */
|
|
10
|
-
declare function resolveTemplateDir(): string;
|
|
11
9
|
/**
|
|
12
10
|
* Scaffold .claude/agents/planu-*.md files for all 4 Planu subagents.
|
|
13
11
|
* Only runs when Claude Code is detected (.claude/ dir exists at projectPath).
|
|
@@ -19,6 +17,4 @@ export { parseFrontmatter };
|
|
|
19
17
|
/** Exported for tests — returns the 4 canonical agent slugs. */
|
|
20
18
|
export { AGENT_SLUGS };
|
|
21
19
|
/** Exported for documentation / sync script usage. */
|
|
22
|
-
export type { SubagentDefinition };
|
|
23
|
-
export { resolveTemplateDir };
|
|
24
20
|
//# sourceMappingURL=subagent-publisher.d.ts.map
|
|
@@ -112,6 +112,6 @@ export async function scaffoldPlanuSubagents(projectPath) {
|
|
|
112
112
|
export { parseFrontmatter };
|
|
113
113
|
/** Exported for tests — returns the 4 canonical agent slugs. */
|
|
114
114
|
export { AGENT_SLUGS };
|
|
115
|
+
/** Exported for documentation / sync script usage. */
|
|
115
116
|
// Allow introspection of which directory templates live in (tests use this)
|
|
116
|
-
export { resolveTemplateDir };
|
|
117
117
|
//# sourceMappingURL=subagent-publisher.js.map
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
export { detectGeminiWorkspace
|
|
2
|
-
export { translateZodToGemini, translateGeminiResultToPlanu } from './tool-schema-translator.js';
|
|
3
|
-
export { analyseMultimodalInput, runMultimodalSpecFlow } from './multimodal-spec-flow.js';
|
|
1
|
+
export { detectGeminiWorkspace } from './adapter.js';
|
|
4
2
|
export { scaffoldGeminiConfig } from './config-scaffold.js';
|
|
5
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
// hosts/gemini/index.ts — Barrel export for Gemini CLI host adapter (SPEC-591)
|
|
2
|
-
export { detectGeminiWorkspace
|
|
3
|
-
export { translateZodToGemini, translateGeminiResultToPlanu } from './tool-schema-translator.js';
|
|
4
|
-
export { analyseMultimodalInput, runMultimodalSpecFlow } from './multimodal-spec-flow.js';
|
|
2
|
+
export { detectGeminiWorkspace } from './adapter.js';
|
|
5
3
|
export { scaffoldGeminiConfig } from './config-scaffold.js';
|
|
6
4
|
//# sourceMappingURL=index.js.map
|
package/dist/server/router.d.ts
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* No framework dependencies — pure Node.js http module.
|
|
6
6
|
*/
|
|
7
7
|
import type { IncomingMessage, ServerResponse } from 'node:http';
|
|
8
|
-
import type {
|
|
9
|
-
export type {
|
|
8
|
+
import type { HttpRouteHandler } from '../types/index.js';
|
|
9
|
+
export type { HttpRouteHandler };
|
|
10
10
|
/**
|
|
11
11
|
* Minimal router — registers routes by HTTP method + path pattern and
|
|
12
12
|
* dispatches incoming requests to the first matching handler.
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
export declare class ApprovalOperationBusyError extends Error {
|
|
2
|
-
constructor(specId: string);
|
|
3
|
-
}
|
|
4
1
|
/**
|
|
5
2
|
* Serialize approval and lifecycle operations for one spec across local calls and
|
|
6
3
|
* processes. Reentrancy lets request_changes invoke update_status while retaining
|
|
@@ -9,7 +9,7 @@ function approvalLockId(specId) {
|
|
|
9
9
|
const digest = createHash('sha256').update(specId).digest('hex').slice(0, 24);
|
|
10
10
|
return `__approval-operation-${digest}`;
|
|
11
11
|
}
|
|
12
|
-
|
|
12
|
+
class ApprovalOperationBusyError extends Error {
|
|
13
13
|
constructor(specId) {
|
|
14
14
|
super(`Approval operation for ${specId} is busy in another process. Retry shortly.`);
|
|
15
15
|
this.name = 'ApprovalOperationBusyError';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { ComplianceGateConfig } from '../types/index.js';
|
|
2
2
|
export type { ComplianceGateConfig };
|
|
3
3
|
export declare function getComplianceGateConfig(projectId: string): Promise<ComplianceGateConfig | null>;
|
|
4
|
-
export declare function saveComplianceGateConfig(projectId: string, config: ComplianceGateConfig): Promise<void>;
|
|
5
4
|
//# sourceMappingURL=compliance-gate-config-store.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// storage/compliance-gate-config-store.ts — Compliance gate config persistence (SPEC-447)
|
|
2
|
-
import { readFile
|
|
3
|
-
import { join
|
|
2
|
+
import { readFile } from 'node:fs/promises';
|
|
3
|
+
import { join } from 'node:path';
|
|
4
4
|
import { projectDataDir, safeJsonParse } from './base-store.js';
|
|
5
5
|
function complianceGateConfigPath(projectId) {
|
|
6
6
|
return join(projectDataDir(projectId), 'compliance-gate-config.json');
|
|
@@ -17,9 +17,4 @@ export async function getComplianceGateConfig(projectId) {
|
|
|
17
17
|
throw error;
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
-
export async function saveComplianceGateConfig(projectId, config) {
|
|
21
|
-
const filePath = complianceGateConfigPath(projectId);
|
|
22
|
-
await mkdir(dirname(filePath), { recursive: true });
|
|
23
|
-
await writeFile(filePath, JSON.stringify(config, null, 2), 'utf-8');
|
|
24
|
-
}
|
|
25
20
|
//# sourceMappingURL=compliance-gate-config-store.js.map
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
import type { ForceAnalytics, ForceTransitionEntry } from '../types/index.js';
|
|
2
|
-
export declare function readForceAnalytics(projectId: string): Promise<ForceAnalytics>;
|
|
3
|
-
export declare function writeForceAnalytics(projectId: string, analytics: ForceAnalytics): Promise<void>;
|
|
4
2
|
export declare function recordForceUsage(projectId: string, entry: Omit<ForceTransitionEntry, 'timestamp'>, totalSpecs: number): Promise<ForceAnalytics>;
|
|
5
3
|
//# sourceMappingURL=force-analytics-store.d.ts.map
|
|
@@ -4,14 +4,14 @@ import { join } from 'node:path';
|
|
|
4
4
|
function analyticsPath(projectId) {
|
|
5
5
|
return join(projectDataDir(projectId), 'force-analytics.json');
|
|
6
6
|
}
|
|
7
|
-
|
|
7
|
+
async function readForceAnalytics(projectId) {
|
|
8
8
|
const defaultValue = {
|
|
9
9
|
forcedTransitions: [],
|
|
10
10
|
stats: { totalSpecs: 0, forcedSpecs: 0, ratio: 0 },
|
|
11
11
|
};
|
|
12
12
|
return readJson(analyticsPath(projectId), defaultValue);
|
|
13
13
|
}
|
|
14
|
-
|
|
14
|
+
async function writeForceAnalytics(projectId, analytics) {
|
|
15
15
|
await writeJson(analyticsPath(projectId), analytics);
|
|
16
16
|
}
|
|
17
17
|
export async function recordForceUsage(projectId, entry, totalSpecs) {
|
|
@@ -18,7 +18,7 @@ export declare function saveRegistry(registry: GlobalProjectsRegistry): Promise<
|
|
|
18
18
|
*/
|
|
19
19
|
export declare function addProject(projectPath: string): Promise<RegisteredProject>;
|
|
20
20
|
/** Stable, classified failure for a logical project id with no unambiguous canonical root. */
|
|
21
|
-
|
|
21
|
+
type CanonicalRootResult = {
|
|
22
22
|
readonly ok: true;
|
|
23
23
|
readonly root: string;
|
|
24
24
|
} | {
|
|
@@ -49,4 +49,5 @@ export declare function removeProject(projectPath: string): Promise<boolean>;
|
|
|
49
49
|
* (e.g. for diagnostics or repair tooling).
|
|
50
50
|
*/
|
|
51
51
|
export declare function getProjects(): Promise<RegisteredProject[]>;
|
|
52
|
+
export {};
|
|
52
53
|
//# sourceMappingURL=global-projects-store.d.ts.map
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { type StorageLayout } from './storage-layout.js';
|
|
2
|
-
|
|
2
|
+
interface ProjectIdentity {
|
|
3
3
|
readonly schemaVersion: 1;
|
|
4
4
|
readonly logicalProjectId: string;
|
|
5
5
|
readonly createdAt: string;
|
|
6
6
|
readonly forkedFrom?: string;
|
|
7
7
|
}
|
|
8
|
-
|
|
8
|
+
interface WorkspaceIdentity {
|
|
9
9
|
readonly schemaVersion: 1;
|
|
10
10
|
readonly workspaceId: string;
|
|
11
11
|
readonly logicalProjectId: string;
|
|
12
12
|
readonly createdAt: string;
|
|
13
13
|
}
|
|
14
|
-
|
|
14
|
+
interface ResolvedProjectIdentity {
|
|
15
15
|
readonly project: ProjectIdentity;
|
|
16
16
|
readonly workspace: WorkspaceIdentity;
|
|
17
17
|
readonly canonicalProjectPath: string;
|
|
@@ -27,7 +27,7 @@ export declare function hashWorkspaceKey(workspaceKey: string): string;
|
|
|
27
27
|
export declare function deriveWorkspaceKey(projectPath: string): Promise<string>;
|
|
28
28
|
/** Resolve or create stable project and machine-workspace UUIDs. */
|
|
29
29
|
export declare function ensureProjectIdentity(projectPath: string, options: ProjectIdentityOptions): Promise<ResolvedProjectIdentity>;
|
|
30
|
-
|
|
30
|
+
type PortablePathErrorCode = 'INVALID_TYPE' | 'EMPTY' | 'NUL_BYTE' | 'NOT_PORTABLE_SHAPE' | 'WRONG_SPEC' | 'ESCAPES_ROOT' | 'ROOT_NOT_FOUND' | 'ROOT_UNVERIFIED' | 'NOT_FOUND' | 'SYMLINK' | 'NOT_FILE';
|
|
31
31
|
/** Stable, classified failure for a spec path that cannot be resolved as a portable identity. */
|
|
32
32
|
export declare class PortablePathError extends Error {
|
|
33
33
|
readonly code: PortablePathErrorCode;
|
|
@@ -56,4 +56,5 @@ export declare function resolvePortableSpecPath(specId: string, storedPath: unkn
|
|
|
56
56
|
export declare function resolveVerifiedSpecPath(specId: string, storedPath: unknown, canonicalRoot: string): Promise<string>;
|
|
57
57
|
/** Explicitly turn a copied project into an independent logical project. */
|
|
58
58
|
export declare function forkProjectIdentity(projectPath: string, options: ProjectIdentityOptions): Promise<ResolvedProjectIdentity>;
|
|
59
|
+
export {};
|
|
59
60
|
//# sourceMappingURL=project-identity.d.ts.map
|
|
@@ -4,7 +4,6 @@ export declare const GRAPH_CACHE_MAX_BYTES: number;
|
|
|
4
4
|
export declare const SPEC_STORE_BACKUPS_KEPT = 1;
|
|
5
5
|
export declare const IDEMPOTENCY_TTL_DAYS = 30;
|
|
6
6
|
export declare const SNAPSHOTS_KEPT = 10;
|
|
7
|
-
export declare const ARCHIVED_CONTEXT_SUBDIR = "archived-context";
|
|
8
7
|
/**
|
|
9
8
|
* Enforce the retention budget for one artifact kind. Never throws — a failure
|
|
10
9
|
* to prune is swallowed and reported as an empty result so the primary write
|
|
@@ -11,7 +11,7 @@ export const GRAPH_CACHE_MAX_BYTES = 100 * 1024 * 1024;
|
|
|
11
11
|
export const SPEC_STORE_BACKUPS_KEPT = 1;
|
|
12
12
|
export const IDEMPOTENCY_TTL_DAYS = 30;
|
|
13
13
|
export const SNAPSHOTS_KEPT = 10;
|
|
14
|
-
|
|
14
|
+
const ARCHIVED_CONTEXT_SUBDIR = 'archived-context';
|
|
15
15
|
const EMPTY_RESULT = { freedBytes: 0, removedPaths: [] };
|
|
16
16
|
const PRUNABLE_HANDOFF_ARTIFACTS = new Set(['execution-plan.md']);
|
|
17
17
|
function escapeRegExp(value) {
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { type DurableJobRecord, type DurableJobState } from '../types/durable-job.js';
|
|
2
2
|
import { type ValidationReceiptCheckpointLimits } from '../types/durable-validation.js';
|
|
3
|
-
export {
|
|
3
|
+
export { type DurableJobRecord, type DurableJobState };
|
|
4
4
|
/** Count-only process diagnostic for deterministic resource lifecycle tests. */
|
|
5
5
|
export declare function getRuntimeDatabaseDiagnosticsForTests(): {
|
|
6
6
|
readonly openConnections: number;
|
|
7
7
|
readonly integrityCheckedOpens: number;
|
|
8
8
|
readonly integrityBypassedOpens: number;
|
|
9
9
|
};
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
type RuntimeRecordKind = 'mutation' | 'index' | 'audit-state';
|
|
11
|
+
interface RuntimeDatabaseOptions {
|
|
12
12
|
readonly path: string;
|
|
13
13
|
readonly busyTimeoutMs?: number;
|
|
14
14
|
readonly checkIntegrity?: boolean;
|
|
15
15
|
readonly maxConnections?: number;
|
|
16
16
|
}
|
|
17
|
-
|
|
17
|
+
interface RuntimeRecord {
|
|
18
18
|
readonly projectId: string;
|
|
19
19
|
readonly workspaceId: string;
|
|
20
20
|
readonly kind: RuntimeRecordKind;
|
|
@@ -32,11 +32,11 @@ export interface RuntimeOutboxRecord {
|
|
|
32
32
|
readonly createdAt: string;
|
|
33
33
|
readonly deliveredAt?: string;
|
|
34
34
|
}
|
|
35
|
-
|
|
35
|
+
interface RuntimeOutboxScope {
|
|
36
36
|
readonly projectId: string;
|
|
37
37
|
readonly workspaceId: string;
|
|
38
38
|
}
|
|
39
|
-
|
|
39
|
+
interface RuntimeAuditRecord {
|
|
40
40
|
readonly id: number;
|
|
41
41
|
readonly projectId: string;
|
|
42
42
|
readonly workspaceId: string;
|
|
@@ -61,7 +61,7 @@ export interface JobLeaseInput {
|
|
|
61
61
|
readonly fencingToken?: number;
|
|
62
62
|
readonly now?: string;
|
|
63
63
|
}
|
|
64
|
-
|
|
64
|
+
interface RuntimeWorkspaceRecovery {
|
|
65
65
|
readonly schemaVersion: 5;
|
|
66
66
|
readonly projectId: string;
|
|
67
67
|
readonly workspaceId: string;
|
|
@@ -7,7 +7,7 @@ import { DURABLE_JOB_STATES, } from '../types/durable-job.js';
|
|
|
7
7
|
import { parseValidationReceiptPendingCheckpoint, } from '../types/durable-validation.js';
|
|
8
8
|
// eslint-disable-next-line no-restricted-imports -- grandfathered layer violation, remediation SPEC-1661 SPEC-1662 SPEC-1663
|
|
9
9
|
import { getRuntimePolicy } from '../engine/runtime-policy.js';
|
|
10
|
-
export {
|
|
10
|
+
export {};
|
|
11
11
|
const CURRENT_SCHEMA_VERSION = 5;
|
|
12
12
|
const DEFAULT_BUSY_TIMEOUT_MS = 5_000;
|
|
13
13
|
const DEFAULT_MAX_CONNECTIONS = 4;
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import type { SkillBootstrapConfig
|
|
1
|
+
import type { SkillBootstrapConfig } from '../types/index.js';
|
|
2
2
|
export declare function getSkillBootstrapConfig(projectPath: string): Promise<SkillBootstrapConfig>;
|
|
3
|
-
export declare function saveSkillBootstrapConfig(projectPath: string, config: SkillBootstrapConfig): Promise<void>;
|
|
4
|
-
export declare function saveLastSkillBootstrapResult(projectPath: string, result: SkillBootstrapResult): Promise<void>;
|
|
5
3
|
//# sourceMappingURL=skill-bootstrap-store.d.ts.map
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
// storage/skill-bootstrap-store.ts — SPEC-439: Persistence for skill bootstrap config and results
|
|
2
2
|
import { join } from 'node:path';
|
|
3
|
-
import { readJson,
|
|
3
|
+
import { readJson, hashProjectPath, projectDataDir } from './base-store.js';
|
|
4
4
|
const CONFIG_FILE = 'skill-bootstrap/config.json';
|
|
5
|
-
const LAST_RESULT_FILE = 'skill-bootstrap/last-result.json';
|
|
6
5
|
function defaultConfig() {
|
|
7
6
|
return {
|
|
8
7
|
sources: [
|
|
@@ -18,20 +17,8 @@ function resolveConfigPath(projectPath) {
|
|
|
18
17
|
const projectId = hashProjectPath(projectPath);
|
|
19
18
|
return join(projectDataDir(projectId), CONFIG_FILE);
|
|
20
19
|
}
|
|
21
|
-
function resolveResultPath(projectPath) {
|
|
22
|
-
const projectId = hashProjectPath(projectPath);
|
|
23
|
-
return join(projectDataDir(projectId), LAST_RESULT_FILE);
|
|
24
|
-
}
|
|
25
20
|
export async function getSkillBootstrapConfig(projectPath) {
|
|
26
21
|
const filePath = resolveConfigPath(projectPath);
|
|
27
22
|
return readJson(filePath, defaultConfig());
|
|
28
23
|
}
|
|
29
|
-
export async function saveSkillBootstrapConfig(projectPath, config) {
|
|
30
|
-
const filePath = resolveConfigPath(projectPath);
|
|
31
|
-
await writeJson(filePath, config);
|
|
32
|
-
}
|
|
33
|
-
export async function saveLastSkillBootstrapResult(projectPath, result) {
|
|
34
|
-
const filePath = resolveResultPath(projectPath);
|
|
35
|
-
await writeJson(filePath, result);
|
|
36
|
-
}
|
|
37
24
|
//# sourceMappingURL=skill-bootstrap-store.js.map
|
|
@@ -17,7 +17,6 @@ export declare function readFrontmatterScalars(content: string): Record<string,
|
|
|
17
17
|
*/
|
|
18
18
|
export declare function loadSpecIndex(projectPath: string): Promise<SpecIndex>;
|
|
19
19
|
/** Read the last persisted index without rebuilding it. Used only for diagnostics. */
|
|
20
|
-
export declare function readPersistedSpecIndex(projectPath: string): Promise<SpecIndex>;
|
|
21
20
|
/** List spec index records sorted by id — convenience for callers needing an array. */
|
|
22
21
|
export declare function listSpecIndexRecords(index: SpecIndex): SpecIndexRecord[];
|
|
23
22
|
//# sourceMappingURL=spec-index.d.ts.map
|
|
@@ -8,7 +8,7 @@ import { readFile, stat } from 'node:fs/promises';
|
|
|
8
8
|
import { createHash } from 'node:crypto';
|
|
9
9
|
import { join, relative } from 'node:path';
|
|
10
10
|
import { glob } from 'glob';
|
|
11
|
-
import {
|
|
11
|
+
import { writeJson } from './base-store.js';
|
|
12
12
|
import { reportClassifiedDegradation } from '../errors/classified-degradation.js';
|
|
13
13
|
function specIndexPath(projectPath) {
|
|
14
14
|
return join(projectPath, 'planu', '.runtime', 'index.json');
|
|
@@ -113,9 +113,6 @@ export async function loadSpecIndex(projectPath) {
|
|
|
113
113
|
return index;
|
|
114
114
|
}
|
|
115
115
|
/** Read the last persisted index without rebuilding it. Used only for diagnostics. */
|
|
116
|
-
export async function readPersistedSpecIndex(projectPath) {
|
|
117
|
-
return readJson(specIndexPath(projectPath), { generatedAt: '', specs: {} });
|
|
118
|
-
}
|
|
119
116
|
/** List spec index records sorted by id — convenience for callers needing an array. */
|
|
120
117
|
export function listSpecIndexRecords(index) {
|
|
121
118
|
return Object.values(index.specs).sort((left, right) => left.id.localeCompare(right.id));
|
|
@@ -51,7 +51,7 @@ export declare function withFreshSpecsLock<T>(projectId: string, fn: (specs: Spe
|
|
|
51
51
|
*/
|
|
52
52
|
export declare function getSpec(projectId: string, specId: string, canonicalRoot?: string): Promise<Spec | null>;
|
|
53
53
|
/** Result of a {@link migrateLegacySpecPaths} run. */
|
|
54
|
-
|
|
54
|
+
interface SpecPathMigrationResult {
|
|
55
55
|
readonly migrated: number;
|
|
56
56
|
readonly specIds: readonly string[];
|
|
57
57
|
}
|
|
@@ -168,4 +168,5 @@ export declare function saveSummary(projectId: string, specId: string, summary:
|
|
|
168
168
|
* Load the persisted SpecSummary for a spec. Returns null if not found.
|
|
169
169
|
*/
|
|
170
170
|
export declare function loadSummary(projectId: string, specId: string): Promise<SpecSummary | null>;
|
|
171
|
+
export {};
|
|
171
172
|
//# sourceMappingURL=spec-store.d.ts.map
|
|
@@ -7,8 +7,8 @@ import { resolve } from 'node:path';
|
|
|
7
7
|
import { acquireLock, releaseLock } from '../../engine/safety/file-mutex.js';
|
|
8
8
|
import { cleanupDeadStatusTemps } from './atomic-status-write.js';
|
|
9
9
|
const lockQueues = new Map();
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
const STATUS_LOCK_TIMEOUT_MS = 5_000;
|
|
11
|
+
const STATUS_LOCK_ERROR_CODE = 'status_lock_timeout';
|
|
12
12
|
/**
|
|
13
13
|
* Execute `fn` while holding an exclusive write-lock on `filePath`.
|
|
14
14
|
* Concurrent calls for the same path are serialized (FIFO).
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RuntimeDatabase, type RuntimeProjectBundle } from './runtime-db.js';
|
|
2
|
-
|
|
2
|
+
interface StorageBundle {
|
|
3
3
|
readonly schemaVersion: 1;
|
|
4
4
|
readonly createdAt: string;
|
|
5
5
|
readonly runtimeSchemaVersion: number;
|
|
@@ -7,9 +7,10 @@ export interface StorageBundle {
|
|
|
7
7
|
readonly payload: RuntimeProjectBundle;
|
|
8
8
|
readonly checksum: string;
|
|
9
9
|
}
|
|
10
|
-
|
|
10
|
+
interface StorageBundleOptions {
|
|
11
11
|
readonly database?: RuntimeDatabase;
|
|
12
12
|
}
|
|
13
13
|
export declare function exportStorageBundle(projectId: string, outputPath: string, options?: StorageBundleOptions): Promise<StorageBundle>;
|
|
14
14
|
export declare function importStorageBundle(inputPath: string, options?: StorageBundleOptions): Promise<StorageBundle>;
|
|
15
|
+
export {};
|
|
15
16
|
//# sourceMappingURL=storage-bundle.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type StorageLayout } from './storage-layout.js';
|
|
2
2
|
import type { StorageCatalogEntry } from '../types/storage-catalog.js';
|
|
3
|
-
export type {
|
|
3
|
+
export type { StorageCatalogEntry } from '../types/storage-catalog.js';
|
|
4
4
|
export interface StorageCatalogContext {
|
|
5
5
|
readonly layout?: StorageLayout;
|
|
6
6
|
readonly projectPath?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
interface StorageRoots {
|
|
2
2
|
readonly config: string;
|
|
3
3
|
readonly data: string;
|
|
4
4
|
readonly cache: string;
|
|
@@ -14,12 +14,12 @@ export interface StorageLayout extends StorageRoots {
|
|
|
14
14
|
readonly nativeCache: string;
|
|
15
15
|
readonly trash: string;
|
|
16
16
|
}
|
|
17
|
-
|
|
17
|
+
interface StorageLayoutOptions {
|
|
18
18
|
readonly env?: NodeJS.ProcessEnv;
|
|
19
19
|
readonly homeDirectory?: string;
|
|
20
20
|
readonly platform?: NodeJS.Platform;
|
|
21
21
|
}
|
|
22
|
-
|
|
22
|
+
type ProjectRuntimeSubdir = 'state' | 'cache' | 'logs' | 'reports';
|
|
23
23
|
/**
|
|
24
24
|
* Resolve the per-project runtime directory for a subdir kind.
|
|
25
25
|
* Rooted at <projectPath>/planu/.runtime/ — the only per-project runtime root.
|
|
@@ -29,4 +29,5 @@ export type ProjectRuntimeSubdir = 'state' | 'cache' | 'logs' | 'reports';
|
|
|
29
29
|
export declare function projectRuntimeDir(projectPath: string, subdir: ProjectRuntimeSubdir): string;
|
|
30
30
|
/** Resolve every machine-local Planu path independently from the current directory. */
|
|
31
31
|
export declare function resolveStorageLayout(options?: StorageLayoutOptions): StorageLayout;
|
|
32
|
+
export {};
|
|
32
33
|
//# sourceMappingURL=storage-layout.d.ts.map
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { ChallengeFinding, ChallengeGateState, ChallengeReport, ChallengeResolutionEvidence, FailureScenario } from '../../types/index.js';
|
|
2
|
-
export declare const MINIMUM_RESOLVED_CHALLENGES = 3;
|
|
3
2
|
export declare function requiredResolvedChallenges(totalScenarios: number): number;
|
|
4
3
|
export declare function parseChallengeResolutionEvidence(specContent: string, scenarios: readonly FailureScenario[], runAt: string): ChallengeResolutionEvidence[];
|
|
5
4
|
/** Count only evidence tied to findings persisted by the same challenge report. */
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
import type { FailureScenario, Spec } from '../../types/index.js';
|
|
2
2
|
import { type ChallengeCapabilities } from './scenarios-utils.js';
|
|
3
|
-
export declare const EXTERNAL_CALL_KEYWORDS: string[];
|
|
4
|
-
export declare const VALIDATION_KEYWORDS: string[];
|
|
5
|
-
export declare const RATE_LIMIT_KEYWORDS: string[];
|
|
6
|
-
export declare const CONCURRENCY_KEYWORDS: string[];
|
|
7
|
-
export declare const SAGA_KEYWORDS: string[];
|
|
8
3
|
/**
|
|
9
4
|
* Returns true when the spec describes an external service call.
|
|
10
5
|
*/
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Signal detectors + validation boundary + cascade failure scenarios
|
|
3
3
|
import { contentMentions } from './scenarios-utils.js';
|
|
4
4
|
// Keywords indicating external service calls or shared state
|
|
5
|
-
|
|
5
|
+
const EXTERNAL_CALL_KEYWORDS = [
|
|
6
6
|
'api',
|
|
7
7
|
'http',
|
|
8
8
|
'fetch',
|
|
@@ -17,7 +17,7 @@ export const EXTERNAL_CALL_KEYWORDS = [
|
|
|
17
17
|
'client',
|
|
18
18
|
'sdk',
|
|
19
19
|
];
|
|
20
|
-
|
|
20
|
+
const VALIDATION_KEYWORDS = [
|
|
21
21
|
'input',
|
|
22
22
|
'form',
|
|
23
23
|
'body',
|
|
@@ -33,7 +33,7 @@ export const VALIDATION_KEYWORDS = [
|
|
|
33
33
|
'schema',
|
|
34
34
|
'endpoint',
|
|
35
35
|
];
|
|
36
|
-
|
|
36
|
+
const RATE_LIMIT_KEYWORDS = [
|
|
37
37
|
'login',
|
|
38
38
|
'auth',
|
|
39
39
|
'register',
|
|
@@ -43,7 +43,7 @@ export const RATE_LIMIT_KEYWORDS = [
|
|
|
43
43
|
'export',
|
|
44
44
|
'import',
|
|
45
45
|
];
|
|
46
|
-
|
|
46
|
+
const CONCURRENCY_KEYWORDS = [
|
|
47
47
|
'counter',
|
|
48
48
|
'cache',
|
|
49
49
|
'session',
|
|
@@ -57,7 +57,7 @@ export const CONCURRENCY_KEYWORDS = [
|
|
|
57
57
|
'atomic',
|
|
58
58
|
'thread',
|
|
59
59
|
];
|
|
60
|
-
|
|
60
|
+
const SAGA_KEYWORDS = [
|
|
61
61
|
'distributed',
|
|
62
62
|
'saga',
|
|
63
63
|
'multi-step',
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { FailureScenario, Spec, ProjectKnowledge } from '../../types/index.js';
|
|
2
2
|
import { type ChallengeCapabilities } from './scenarios-utils.js';
|
|
3
|
-
export {
|
|
4
|
-
export { generateRateLimitBypassScenarios, generateConcurrencyScenarios, generateSagaFailureScenarios, } from './resilience-challenge-scenarios-b.js';
|
|
3
|
+
export { hasExternalCallSignal, hasValidationSignal, hasRateLimitSignal, hasConcurrencySignal, hasSagaSignal, } from './resilience-challenge-scenarios-a.js';
|
|
5
4
|
/**
|
|
6
5
|
* Main entry: generate all SPEC-034 resilience/concurrency challenges for a spec.
|
|
7
6
|
*/
|
|
@@ -5,8 +5,7 @@
|
|
|
5
5
|
import { generateValidationBoundaryScenarios, generateCascadeFailureScenarios, } from './resilience-challenge-scenarios-a.js';
|
|
6
6
|
import { generateRateLimitBypassScenarios, generateConcurrencyScenarios, generateSagaFailureScenarios, } from './resilience-challenge-scenarios-b.js';
|
|
7
7
|
import { detectChallengeCapabilities } from './scenarios-utils.js';
|
|
8
|
-
export {
|
|
9
|
-
export { generateRateLimitBypassScenarios, generateConcurrencyScenarios, generateSagaFailureScenarios, } from './resilience-challenge-scenarios-b.js';
|
|
8
|
+
export { hasExternalCallSignal, hasValidationSignal, hasRateLimitSignal, hasConcurrencySignal, hasSagaSignal, } from './resilience-challenge-scenarios-a.js';
|
|
10
9
|
/**
|
|
11
10
|
* Main entry: generate all SPEC-034 resilience/concurrency challenges for a spec.
|
|
12
11
|
*/
|
|
@@ -33,5 +33,5 @@ export declare function hasApplicationCacheEvidence(text: string): boolean;
|
|
|
33
33
|
export declare function contentMentions(content: string, keywords: string[]): boolean;
|
|
34
34
|
export declare function detectChallengeCapabilities(spec: Spec, specContent: string): ChallengeCapabilities;
|
|
35
35
|
export declare function hasAnyChallengeCapability(capabilities: ChallengeCapabilities, names: (keyof ChallengeCapabilities)[]): boolean;
|
|
36
|
-
export {
|
|
36
|
+
export { hasAnyAffirmedMatch } from '../../engine/text-signal-boundaries.js';
|
|
37
37
|
//# sourceMappingURL=scenarios-utils.d.ts.map
|
|
@@ -211,5 +211,5 @@ export function detectChallengeCapabilities(spec, specContent) {
|
|
|
211
211
|
export function hasAnyChallengeCapability(capabilities, names) {
|
|
212
212
|
return names.some((name) => capabilities[name]);
|
|
213
213
|
}
|
|
214
|
-
export {
|
|
214
|
+
export { hasAnyAffirmedMatch } from '../../engine/text-signal-boundaries.js';
|
|
215
215
|
//# sourceMappingURL=scenarios-utils.js.map
|