@deftai/directive 0.126.0-beta.1 → 0.126.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agents-refresh.d.ts +11 -0
- package/dist/agents-refresh.js +90 -0
- package/dist/authz.d.ts +7 -0
- package/dist/authz.js +732 -0
- package/dist/bin.d.ts +3 -0
- package/dist/bin.js +3 -4333
- package/dist/branch-fixtures.d.ts +45 -0
- package/dist/branch-fixtures.js +156 -0
- package/dist/cache.d.ts +4 -0
- package/dist/cache.js +10 -0
- package/dist/capacity-backfill.d.ts +3 -0
- package/dist/capacity-backfill.js +9 -0
- package/dist/capacity-show.d.ts +3 -0
- package/dist/capacity-show.js +9 -0
- package/dist/change-init.d.ts +3 -0
- package/dist/change-init.js +59 -0
- package/dist/changelog-check.d.ts +3 -0
- package/dist/changelog-check.js +52 -0
- package/dist/check.d.ts +15 -0
- package/dist/check.js +150 -0
- package/dist/cli-package-version.d.ts +3 -0
- package/dist/cli-package-version.js +23 -0
- package/dist/cli-router/index.d.ts +8 -0
- package/dist/cli-router/index.js +44 -0
- package/dist/cli-router/route-argv.d.ts +40 -0
- package/dist/cli-router/route-argv.js +371 -0
- package/dist/codebase-default-extractor.d.ts +3 -0
- package/dist/codebase-default-extractor.js +9 -0
- package/dist/codebase-map-fresh.d.ts +3 -0
- package/dist/codebase-map-fresh.js +9 -0
- package/dist/codebase-map.d.ts +3 -0
- package/dist/codebase-map.js +9 -0
- package/dist/codebase-projection-registry.d.ts +3 -0
- package/dist/codebase-projection-registry.js +9 -0
- package/dist/codebase-provider.d.ts +3 -0
- package/dist/codebase-provider.js +9 -0
- package/dist/commit-lint.d.ts +3 -0
- package/dist/commit-lint.js +44 -0
- package/dist/content-validate-cli/validate-links.d.ts +11 -0
- package/dist/content-validate-cli/validate-links.js +37 -0
- package/dist/content-validate-cli/validate-strategy-output.d.ts +13 -0
- package/dist/content-validate-cli/validate-strategy-output.js +56 -0
- package/dist/content-validate-cli/verify-capacity.d.ts +12 -0
- package/dist/content-validate-cli/verify-capacity.js +54 -0
- package/dist/coverage-hotspots.d.ts +21 -0
- package/dist/coverage-hotspots.js +198 -0
- package/dist/design-critique-spend-resolve.d.ts +18 -0
- package/dist/design-critique-spend-resolve.js +191 -0
- package/dist/directive-finish-loop.d.ts +3 -0
- package/dist/directive-finish-loop.js +10 -0
- package/dist/dispatch.d.ts +193 -0
- package/dist/dispatch.js +3091 -0
- package/dist/doctor.d.ts +19 -0
- package/dist/doctor.js +155 -0
- package/dist/entrypoint.d.ts +6 -0
- package/dist/entrypoint.js +19 -0
- package/dist/escalation-cli.d.ts +4 -0
- package/dist/escalation-cli.js +301 -0
- package/dist/eval-health.d.ts +13 -0
- package/dist/eval-health.js +63 -0
- package/dist/eval-report.d.ts +15 -0
- package/dist/eval-report.js +97 -0
- package/dist/eval-run.d.ts +17 -0
- package/dist/eval-run.js +122 -0
- package/dist/eval-triggers.d.ts +12 -0
- package/dist/eval-triggers.js +56 -0
- package/dist/framework-check-updates.d.ts +10 -0
- package/dist/framework-check-updates.js +68 -0
- package/dist/gates-cli/_helpers.d.ts +24 -0
- package/dist/gates-cli/_helpers.js +115 -0
- package/dist/gates-cli/verify-bridge-drift.d.ts +11 -0
- package/dist/gates-cli/verify-bridge-drift.js +47 -0
- package/dist/gates-cli/verify-go-freeze.d.ts +11 -0
- package/dist/gates-cli/verify-go-freeze.js +48 -0
- package/dist/hook-bin.d.ts +3 -0
- package/dist/hook-bin.js +11 -0
- package/dist/hook-dispatch.d.ts +80 -0
- package/dist/hook-dispatch.js +186 -0
- package/dist/human-presence-mint.d.ts +70 -0
- package/dist/human-presence-mint.js +204 -0
- package/dist/identity-banner.d.ts +13 -0
- package/dist/identity-banner.js +19 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +14 -0
- package/dist/init-cli/constants.d.ts +42 -0
- package/dist/init-cli/constants.js +42 -0
- package/dist/init-cli/help.d.ts +9 -0
- package/dist/init-cli/help.js +43 -0
- package/dist/init-cli/init.d.ts +26 -0
- package/dist/init-cli/init.js +80 -0
- package/dist/init-cli/migrate.d.ts +3 -0
- package/dist/init-cli/migrate.js +51 -0
- package/dist/init-cli/resolve-binary.d.ts +34 -0
- package/dist/init-cli/resolve-binary.js +78 -0
- package/dist/init-cli/run-deft-install.d.ts +23 -0
- package/dist/init-cli/run-deft-install.js +71 -0
- package/dist/init-cli/update.d.ts +5 -0
- package/dist/init-cli/update.js +38 -0
- package/dist/install-cli/coverage-map.d.ts +14 -0
- package/dist/install-cli/coverage-map.js +113 -0
- package/dist/install-uninstall.d.ts +3 -0
- package/dist/install-uninstall.js +44 -0
- package/dist/install-upgrade.d.ts +41 -0
- package/dist/install-upgrade.js +86 -0
- package/dist/lifecycle-cli/coverage-map.d.ts +16 -0
- package/dist/lifecycle-cli/coverage-map.js +254 -0
- package/dist/lifecycle-cli/helpers.d.ts +8 -0
- package/dist/lifecycle-cli/helpers.js +20 -0
- package/dist/lifecycle-event.d.ts +11 -0
- package/dist/lifecycle-event.js +45 -0
- package/dist/lifecycle-stats.d.ts +12 -0
- package/dist/lifecycle-stats.js +100 -0
- package/dist/migrate-category-b.d.ts +9 -0
- package/dist/migrate-category-b.js +52 -0
- package/dist/migrate-preflight.d.ts +10 -0
- package/dist/migrate-preflight.js +85 -0
- package/dist/migrate-xbrief.d.ts +11 -0
- package/dist/migrate-xbrief.js +88 -0
- package/dist/occupancy-grant.d.ts +18 -0
- package/dist/occupancy-grant.js +121 -0
- package/dist/occupancy-heartbeat.d.ts +8 -0
- package/dist/occupancy-heartbeat.js +63 -0
- package/dist/occupancy-release.d.ts +23 -0
- package/dist/occupancy-release.js +102 -0
- package/dist/occupancy-steal.d.ts +10 -0
- package/dist/occupancy-steal.js +83 -0
- package/dist/occupancy-unrecognized.d.ts +3 -0
- package/dist/occupancy-unrecognized.js +5 -0
- package/dist/orchestration-cli/coverage-map.d.ts +21 -0
- package/dist/orchestration-cli/coverage-map.js +225 -0
- package/dist/orchestration-cli/helpers.d.ts +11 -0
- package/dist/orchestration-cli/helpers.js +35 -0
- package/dist/ownership-doctor.d.ts +10 -0
- package/dist/ownership-doctor.js +96 -0
- package/dist/ownership-fix.d.ts +10 -0
- package/dist/ownership-fix.js +93 -0
- package/dist/plan-sequence.d.ts +14 -0
- package/dist/plan-sequence.js +258 -0
- package/dist/policy-fixtures.d.ts +33 -0
- package/dist/policy-fixtures.js +118 -0
- package/dist/policy.d.ts +37 -0
- package/dist/policy.js +744 -0
- package/dist/pr-closing-keywords.d.ts +3 -0
- package/dist/pr-closing-keywords.js +10 -0
- package/dist/pr-finish-loop.d.ts +3 -0
- package/dist/pr-finish-loop.js +10 -0
- package/dist/pr-merge-readiness.d.ts +3 -0
- package/dist/pr-merge-readiness.js +10 -0
- package/dist/pr-monitor.d.ts +3 -0
- package/dist/pr-monitor.js +10 -0
- package/dist/pr-protected-issues.d.ts +3 -0
- package/dist/pr-protected-issues.js +10 -0
- package/dist/pr-wait-mergeable.d.ts +3 -0
- package/dist/pr-wait-mergeable.js +10 -0
- package/dist/pr-watch.d.ts +3 -0
- package/dist/pr-watch.js +10 -0
- package/dist/pre-pr-run.d.ts +39 -0
- package/dist/pre-pr-run.js +514 -0
- package/dist/preflight-cache.d.ts +18 -0
- package/dist/preflight-cache.js +113 -0
- package/dist/preflight-gh.d.ts +15 -0
- package/dist/preflight-gh.js +143 -0
- package/dist/probe-session.d.ts +3 -0
- package/dist/probe-session.js +10 -0
- package/dist/release-e2e-fixtures.d.ts +29 -0
- package/dist/release-e2e-fixtures.js +38 -0
- package/dist/release-e2e.d.ts +3 -0
- package/dist/release-e2e.js +10 -0
- package/dist/release-publish.d.ts +3 -0
- package/dist/release-publish.js +10 -0
- package/dist/release-rollback.d.ts +3 -0
- package/dist/release-rollback.js +10 -0
- package/dist/release-wait-npm.d.ts +3 -0
- package/dist/release-wait-npm.js +10 -0
- package/dist/release.d.ts +3 -0
- package/dist/release.js +10 -0
- package/dist/render-cli/deft-ts-runner.d.ts +17 -0
- package/dist/render-cli/deft-ts-runner.js +19 -0
- package/dist/render-cli/export-spec-cli.d.ts +2 -0
- package/dist/render-cli/export-spec-cli.js +6 -0
- package/dist/render-cli/prd-render-cli.d.ts +2 -0
- package/dist/render-cli/prd-render-cli.js +37 -0
- package/dist/render-cli/project-render-cli.d.ts +2 -0
- package/dist/render-cli/project-render-cli.js +6 -0
- package/dist/render-cli/rule-map-cli.d.ts +2 -0
- package/dist/render-cli/rule-map-cli.js +5 -0
- package/dist/render-cli/spec-reconstruct-cli.d.ts +3 -0
- package/dist/render-cli/spec-reconstruct-cli.js +15 -0
- package/dist/render-cli/spec-render-cli.d.ts +2 -0
- package/dist/render-cli/spec-render-cli.js +39 -0
- package/dist/render-cli/spec-validate-cli.d.ts +2 -0
- package/dist/render-cli/spec-validate-cli.js +38 -0
- package/dist/review-monitor-register.d.ts +19 -0
- package/dist/review-monitor-register.js +183 -0
- package/dist/review-monitor-release.d.ts +14 -0
- package/dist/review-monitor-release.js +123 -0
- package/dist/scm-sync-default.d.ts +34 -0
- package/dist/scm-sync-default.js +210 -0
- package/dist/scope-lifecycle.d.ts +4 -0
- package/dist/scope-lifecycle.js +34 -0
- package/dist/scope-record-approved-scope.d.ts +29 -0
- package/dist/scope-record-approved-scope.js +319 -0
- package/dist/scope-record-intent-constraint.d.ts +16 -0
- package/dist/scope-record-intent-constraint.js +202 -0
- package/dist/scope-record-observable-scope.d.ts +16 -0
- package/dist/scope-record-observable-scope.js +204 -0
- package/dist/session-ready.d.ts +15 -0
- package/dist/session-ready.js +144 -0
- package/dist/session-start.d.ts +56 -0
- package/dist/session-start.js +581 -0
- package/dist/slice.d.ts +4 -0
- package/dist/slice.js +34 -0
- package/dist/story-ready-fixtures.d.ts +47 -0
- package/dist/story-ready-fixtures.js +137 -0
- package/dist/subagent-monitor.d.ts +3 -0
- package/dist/subagent-monitor.js +10 -0
- package/dist/subagent-pre-cancel.d.ts +21 -0
- package/dist/subagent-pre-cancel.js +240 -0
- package/dist/subagent-steer-write.d.ts +41 -0
- package/dist/subagent-steer-write.js +333 -0
- package/dist/toolchain-check.d.ts +8 -0
- package/dist/toolchain-check.js +54 -0
- package/dist/triage-actions.d.ts +23 -0
- package/dist/triage-actions.js +233 -0
- package/dist/triage-aux-a-fixtures.d.ts +33 -0
- package/dist/triage-aux-a-fixtures.js +107 -0
- package/dist/triage-aux-b-fixtures.d.ts +30 -0
- package/dist/triage-aux-b-fixtures.js +167 -0
- package/dist/triage-bootstrap-fixtures.d.ts +42 -0
- package/dist/triage-bootstrap-fixtures.js +139 -0
- package/dist/triage-bootstrap.d.ts +24 -0
- package/dist/triage-bootstrap.js +175 -0
- package/dist/triage-bulk.d.ts +17 -0
- package/dist/triage-bulk.js +154 -0
- package/dist/triage-classify-fixtures.d.ts +38 -0
- package/dist/triage-classify-fixtures.js +137 -0
- package/dist/triage-classify.d.ts +45 -0
- package/dist/triage-classify.js +287 -0
- package/dist/triage-evaluate.d.ts +14 -0
- package/dist/triage-evaluate.js +153 -0
- package/dist/triage-help.d.ts +3 -0
- package/dist/triage-help.js +10 -0
- package/dist/triage-queue-fixtures.d.ts +59 -0
- package/dist/triage-queue-fixtures.js +284 -0
- package/dist/triage-queue.d.ts +38 -0
- package/dist/triage-queue.js +391 -0
- package/dist/triage-reconcile.d.ts +11 -0
- package/dist/triage-reconcile.js +76 -0
- package/dist/triage-refresh.d.ts +7 -0
- package/dist/triage-refresh.js +37 -0
- package/dist/triage-scope-drift.d.ts +12 -0
- package/dist/triage-scope-drift.js +117 -0
- package/dist/triage-scope-fixtures.d.ts +32 -0
- package/dist/triage-scope-fixtures.js +131 -0
- package/dist/triage-scope.d.ts +4 -0
- package/dist/triage-scope.js +34 -0
- package/dist/triage-smoketest.d.ts +3 -0
- package/dist/triage-smoketest.js +43 -0
- package/dist/triage-strip-withdrawn.d.ts +21 -0
- package/dist/triage-strip-withdrawn.js +102 -0
- package/dist/triage-subscribe.d.ts +15 -0
- package/dist/triage-subscribe.js +157 -0
- package/dist/triage-summary.d.ts +14 -0
- package/dist/triage-summary.js +83 -0
- package/dist/triage-welcome.d.ts +14 -0
- package/dist/triage-welcome.js +121 -0
- package/dist/ts-check-lane.d.ts +9 -0
- package/dist/ts-check-lane.js +49 -0
- package/dist/umbrella-current-shape.d.ts +9 -0
- package/dist/umbrella-current-shape.js +56 -0
- package/dist/vbrief-activate.d.ts +3 -0
- package/dist/vbrief-activate.js +7 -0
- package/dist/vbrief-build.d.ts +3 -0
- package/dist/vbrief-build.js +8 -0
- package/dist/vbrief-preflight-fixtures.d.ts +32 -0
- package/dist/vbrief-preflight-fixtures.js +79 -0
- package/dist/vbrief-preflight.d.ts +13 -0
- package/dist/vbrief-preflight.js +141 -0
- package/dist/vbrief-reconcile.d.ts +3 -0
- package/dist/vbrief-reconcile.js +7 -0
- package/dist/vbrief-validate.d.ts +3 -0
- package/dist/vbrief-validate.js +8 -0
- package/dist/vbrief-validation.d.ts +3 -0
- package/dist/vbrief-validation.js +8 -0
- package/dist/verify-ac.d.ts +28 -0
- package/dist/verify-ac.js +439 -0
- package/dist/verify-agents-md-advisory.d.ts +19 -0
- package/dist/verify-agents-md-advisory.js +65 -0
- package/dist/verify-agents-md-budget.d.ts +12 -0
- package/dist/verify-agents-md-budget.js +71 -0
- package/dist/verify-branch.d.ts +14 -0
- package/dist/verify-branch.js +81 -0
- package/dist/verify-class-checks.d.ts +11 -0
- package/dist/verify-class-checks.js +71 -0
- package/dist/verify-cohort-review-monitors.d.ts +5 -0
- package/dist/verify-cohort-review-monitors.js +11 -0
- package/dist/verify-completed-tracked.d.ts +19 -0
- package/dist/verify-completed-tracked.js +202 -0
- package/dist/verify-completed-write-guard.d.ts +13 -0
- package/dist/verify-completed-write-guard.js +84 -0
- package/dist/verify-consumer-check-contract.d.ts +12 -0
- package/dist/verify-consumer-check-contract.js +70 -0
- package/dist/verify-consumer-header-placeholder.d.ts +12 -0
- package/dist/verify-consumer-header-placeholder.js +73 -0
- package/dist/verify-consumer-test-lane.d.ts +12 -0
- package/dist/verify-consumer-test-lane.js +57 -0
- package/dist/verify-durable-effect-acquisition.d.ts +13 -0
- package/dist/verify-durable-effect-acquisition.js +70 -0
- package/dist/verify-encoding.d.ts +15 -0
- package/dist/verify-encoding.js +83 -0
- package/dist/verify-eval-health-relocation.d.ts +16 -0
- package/dist/verify-eval-health-relocation.js +93 -0
- package/dist/verify-eval-triggers-relocation.d.ts +14 -0
- package/dist/verify-eval-triggers-relocation.js +74 -0
- package/dist/verify-evaluator-surface.d.ts +15 -0
- package/dist/verify-evaluator-surface.js +87 -0
- package/dist/verify-forward-coverage.d.ts +19 -0
- package/dist/verify-forward-coverage.js +144 -0
- package/dist/verify-hooks-installed.d.ts +24 -0
- package/dist/verify-hooks-installed.js +140 -0
- package/dist/verify-intent-constraint.d.ts +15 -0
- package/dist/verify-intent-constraint.js +86 -0
- package/dist/verify-investigation.d.ts +3 -0
- package/dist/verify-investigation.js +10 -0
- package/dist/verify-judgment-gates.d.ts +3 -0
- package/dist/verify-judgment-gates.js +10 -0
- package/dist/verify-l4-owner.d.ts +15 -0
- package/dist/verify-l4-owner.js +132 -0
- package/dist/verify-lifecycle-visible.d.ts +13 -0
- package/dist/verify-lifecycle-visible.js +68 -0
- package/dist/verify-literal-ac.d.ts +14 -0
- package/dist/verify-literal-ac.js +168 -0
- package/dist/verify-no-task-runtime.d.ts +3 -0
- package/dist/verify-no-task-runtime.js +16 -0
- package/dist/verify-observable-scope.d.ts +15 -0
- package/dist/verify-observable-scope.js +86 -0
- package/dist/verify-operator-scope-limit.d.ts +17 -0
- package/dist/verify-operator-scope-limit.js +285 -0
- package/dist/verify-orphan-active.d.ts +17 -0
- package/dist/verify-orphan-active.js +135 -0
- package/dist/verify-ownership.d.ts +10 -0
- package/dist/verify-ownership.js +90 -0
- package/dist/verify-persisted-planning-narratives.d.ts +12 -0
- package/dist/verify-persisted-planning-narratives.js +82 -0
- package/dist/verify-plan-sequence.d.ts +14 -0
- package/dist/verify-plan-sequence.js +138 -0
- package/dist/verify-pr-closeout-attestable.d.ts +15 -0
- package/dist/verify-pr-closeout-attestable.js +114 -0
- package/dist/verify-presentation-ceiling.d.ts +11 -0
- package/dist/verify-presentation-ceiling.js +71 -0
- package/dist/verify-presentation-coverage.d.ts +14 -0
- package/dist/verify-presentation-coverage.js +90 -0
- package/dist/verify-review-monitor.d.ts +25 -0
- package/dist/verify-review-monitor.js +341 -0
- package/dist/verify-scope-provenance.d.ts +16 -0
- package/dist/verify-scope-provenance.js +91 -0
- package/dist/verify-session-ritual.d.ts +23 -0
- package/dist/verify-session-ritual.js +144 -0
- package/dist/verify-source-cli/rule-ownership-lint.d.ts +12 -0
- package/dist/verify-source-cli/rule-ownership-lint.js +61 -0
- package/dist/verify-source-cli/verify-biome-config.d.ts +11 -0
- package/dist/verify-source-cli/verify-biome-config.js +46 -0
- package/dist/verify-source-cli/verify-closing-keywords.d.ts +35 -0
- package/dist/verify-source-cli/verify-closing-keywords.js +139 -0
- package/dist/verify-source-cli/verify-consumer-hard-stops.d.ts +16 -0
- package/dist/verify-source-cli/verify-consumer-hard-stops.js +99 -0
- package/dist/verify-source-cli/verify-contained-writes.d.ts +13 -0
- package/dist/verify-source-cli/verify-contained-writes.js +67 -0
- package/dist/verify-source-cli/verify-content-manifest.d.ts +12 -0
- package/dist/verify-source-cli/verify-content-manifest.js +61 -0
- package/dist/verify-source-cli/verify-contract-drift.d.ts +11 -0
- package/dist/verify-source-cli/verify-contract-drift.js +47 -0
- package/dist/verify-source-cli/verify-cursor-tier1.d.ts +12 -0
- package/dist/verify-source-cli/verify-cursor-tier1.js +51 -0
- package/dist/verify-source-cli/verify-deposit-closure.d.ts +12 -0
- package/dist/verify-source-cli/verify-deposit-closure.js +52 -0
- package/dist/verify-source-cli/verify-openclaw-tier1.d.ts +12 -0
- package/dist/verify-source-cli/verify-openclaw-tier1.js +51 -0
- package/dist/verify-source-cli/verify-scm-boundary.d.ts +13 -0
- package/dist/verify-source-cli/verify-scm-boundary.js +66 -0
- package/dist/verify-source-cli/verify-semantic-single-source.d.ts +11 -0
- package/dist/verify-source-cli/verify-semantic-single-source.js +49 -0
- package/dist/verify-source-cli/verify-skill-external-fetch-gate.d.ts +11 -0
- package/dist/verify-source-cli/verify-skill-external-fetch-gate.js +46 -0
- package/dist/verify-source-cli/verify-spec-drift.d.ts +3 -0
- package/dist/verify-source-cli/verify-spec-drift.js +15 -0
- package/dist/verify-source-cli/verify-spec-prd-fresh.d.ts +3 -0
- package/dist/verify-source-cli/verify-spec-prd-fresh.js +15 -0
- package/dist/verify-source-cli/verify-stubs.d.ts +11 -0
- package/dist/verify-source-cli/verify-stubs.js +27 -0
- package/dist/verify-source-cli/verify-telemetry-coverage.d.ts +13 -0
- package/dist/verify-source-cli/verify-telemetry-coverage.js +67 -0
- package/dist/verify-source-cli/verify-xbrief-drift.d.ts +15 -0
- package/dist/verify-source-cli/verify-xbrief-drift.js +80 -0
- package/dist/verify-story-ready.d.ts +18 -0
- package/dist/verify-story-ready.js +190 -0
- package/dist/verify-subagent-alive.d.ts +21 -0
- package/dist/verify-subagent-alive.js +219 -0
- package/dist/verify-subagent-steer.d.ts +19 -0
- package/dist/verify-subagent-steer.js +136 -0
- package/dist/verify-test-boundary.d.ts +12 -0
- package/dist/verify-test-boundary.js +80 -0
- package/dist/verify-tools.d.ts +13 -0
- package/dist/verify-tools.js +67 -0
- package/dist/verify-wip-cap.d.ts +13 -0
- package/dist/verify-wip-cap.js +62 -0
- package/dist/windows-bin-ps1.d.ts +39 -0
- package/dist/windows-bin-ps1.js +226 -0
- package/dist/wip-cap-fixtures.d.ts +37 -0
- package/dist/wip-cap-fixtures.js +122 -0
- package/dist/wsl-ownership-guard.d.ts +2 -0
- package/dist/wsl-ownership-guard.js +15 -0
- package/dist/xbrief-create.d.ts +3 -0
- package/dist/xbrief-create.js +9 -0
- package/dist/xbrief-verify.d.ts +3 -0
- package/dist/xbrief-verify.js +9 -0
- package/package.json +23 -12
- package/scripts/remove-windows-ps1-shims.mjs +26 -0
- package/bin/deft-hook +0 -14
- package/bin/deft-hook.cmd +0 -14
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
/** Test fixtures extracted from legacy parity harness (#2083). */
|
|
2
|
+
import { mkdirSync, mkdtempSync, writeFileSync } from "node:fs";
|
|
3
|
+
import { tmpdir } from "node:os";
|
|
4
|
+
import { join } from "node:path";
|
|
5
|
+
/** Strip volatile absolute paths before compare. */
|
|
6
|
+
export function normalizeOutput(text) {
|
|
7
|
+
return text.replace(/project_root=[^\s)]+/g, "project_root=<ROOT>");
|
|
8
|
+
}
|
|
9
|
+
function writeProjectDefinition(root, plan) {
|
|
10
|
+
const dir = join(root, "xbrief");
|
|
11
|
+
mkdirSync(dir, { recursive: true });
|
|
12
|
+
writeFileSync(join(dir, "PROJECT-DEFINITION.xbrief.json"), `${JSON.stringify({
|
|
13
|
+
xBRIEFInfo: { version: "0.8" },
|
|
14
|
+
plan: { title: "T", status: "running", items: [], ...plan },
|
|
15
|
+
}, null, 2)}\n`, { encoding: "utf8" });
|
|
16
|
+
}
|
|
17
|
+
function writeXbrief(root, folder, name) {
|
|
18
|
+
const dir = join(root, "xbrief", folder);
|
|
19
|
+
mkdirSync(dir, { recursive: true });
|
|
20
|
+
writeFileSync(join(dir, name), `${JSON.stringify({ xBRIEFInfo: { version: "0.8" }, plan: { status: "approved", title: "T", items: [] } })}\n`, { encoding: "utf8" });
|
|
21
|
+
}
|
|
22
|
+
/** Build a throwaway project root with optional PROJECT-DEFINITION and WIP files. */
|
|
23
|
+
export function buildFixtureRepo(options = {}) {
|
|
24
|
+
const root = mkdtempSync(join(tmpdir(), "deft-wip-cap-parity-"));
|
|
25
|
+
mkdirSync(join(root, "xbrief"), { recursive: true });
|
|
26
|
+
if (options.plan !== undefined) {
|
|
27
|
+
writeProjectDefinition(root, options.plan);
|
|
28
|
+
}
|
|
29
|
+
for (let i = 0; i < (options.pendingFiles ?? 0); i += 1) {
|
|
30
|
+
writeXbrief(root, "pending", `pending-${i}.xbrief.json`);
|
|
31
|
+
}
|
|
32
|
+
for (let i = 0; i < (options.activeFiles ?? 0); i += 1) {
|
|
33
|
+
writeXbrief(root, "active", `active-${i}.xbrief.json`);
|
|
34
|
+
}
|
|
35
|
+
return root;
|
|
36
|
+
}
|
|
37
|
+
/** Diff one parity case between Python oracle and TS CLI. */
|
|
38
|
+
export function diffCase(python, ts, caseName) {
|
|
39
|
+
const pyOut = normalizeOutput(python.stdout);
|
|
40
|
+
const tsOut = normalizeOutput(ts.stdout);
|
|
41
|
+
const pyErr = normalizeOutput(python.stderr);
|
|
42
|
+
const tsErr = normalizeOutput(ts.stderr);
|
|
43
|
+
return {
|
|
44
|
+
caseName,
|
|
45
|
+
exitMismatch: python.exitCode !== ts.exitCode,
|
|
46
|
+
stdoutMismatch: pyOut !== tsOut,
|
|
47
|
+
stderrMismatch: pyErr !== tsErr,
|
|
48
|
+
pythonExit: python.exitCode,
|
|
49
|
+
tsExit: ts.exitCode,
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
export const PARITY_CASES = [
|
|
53
|
+
{
|
|
54
|
+
name: "within-cap-typed-empty",
|
|
55
|
+
argv: [],
|
|
56
|
+
fixture: { plan: { policy: { wipCap: 5 } } },
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
name: "within-cap-with-files",
|
|
60
|
+
argv: [],
|
|
61
|
+
fixture: {
|
|
62
|
+
plan: { policy: { wipCap: 5 } },
|
|
63
|
+
pendingFiles: 2,
|
|
64
|
+
activeFiles: 1,
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
name: "over-cap-refusal",
|
|
69
|
+
argv: [],
|
|
70
|
+
fixture: {
|
|
71
|
+
plan: { policy: { wipCap: 2 } },
|
|
72
|
+
pendingFiles: 1,
|
|
73
|
+
activeFiles: 1,
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
name: "over-cap-allow-flag",
|
|
78
|
+
argv: ["--allow-over-cap"],
|
|
79
|
+
fixture: {
|
|
80
|
+
plan: { policy: { wipCap: 2 } },
|
|
81
|
+
pendingFiles: 2,
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
name: "malformed-wipCap",
|
|
86
|
+
argv: [],
|
|
87
|
+
fixture: { plan: { policy: { wipCap: -1 } } },
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
name: "within-cap-quiet",
|
|
91
|
+
argv: ["--quiet"],
|
|
92
|
+
fixture: { plan: { policy: { wipCap: 3 } }, pendingFiles: 1 },
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
name: "over-cap-allow-quiet",
|
|
96
|
+
argv: ["--allow-over-cap", "--quiet"],
|
|
97
|
+
fixture: {
|
|
98
|
+
plan: { policy: { wipCap: 1 } },
|
|
99
|
+
pendingFiles: 2,
|
|
100
|
+
},
|
|
101
|
+
},
|
|
102
|
+
];
|
|
103
|
+
/** Run all parity cases; returns aggregate result. */
|
|
104
|
+
export function renderReport(result) {
|
|
105
|
+
if (result.ok) {
|
|
106
|
+
return `verify:wip-cap parity: CLEAN -- Python and TS agree on ${PARITY_CASES.length} cases.`;
|
|
107
|
+
}
|
|
108
|
+
const lines = ["verify:wip-cap parity: DIVERGENCE"];
|
|
109
|
+
for (const d of result.diffs) {
|
|
110
|
+
if (d.exitMismatch || d.stdoutMismatch || d.stderrMismatch) {
|
|
111
|
+
lines.push(` case: ${d.caseName}`);
|
|
112
|
+
if (d.exitMismatch)
|
|
113
|
+
lines.push(` exit: python=${d.pythonExit} ts=${d.tsExit}`);
|
|
114
|
+
if (d.stdoutMismatch)
|
|
115
|
+
lines.push(" stdout mismatch");
|
|
116
|
+
if (d.stderrMismatch)
|
|
117
|
+
lines.push(" stderr mismatch");
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
return lines.join("\n");
|
|
121
|
+
}
|
|
122
|
+
//# sourceMappingURL=wip-cap-fixtures.js.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared live WSL ownership gate for protected mutating CLI entry points (#1617).
|
|
3
|
+
* Independent of ritual/doctor cache. ownership:doctor/fix are not gated here.
|
|
4
|
+
*/
|
|
5
|
+
import { assertProtectedMutationOwnership } from "@deftai/directive-core/platform";
|
|
6
|
+
export function refuseIfWslOwnershipBlocked(projectRoot, writeErr = (text) => {
|
|
7
|
+
process.stderr.write(text);
|
|
8
|
+
}) {
|
|
9
|
+
const gate = assertProtectedMutationOwnership({ projectRoot });
|
|
10
|
+
if (gate.ok)
|
|
11
|
+
return null;
|
|
12
|
+
writeErr(`${gate.message}\n`);
|
|
13
|
+
return gate.exitCode;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=wsl-ownership-guard.js.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { runXbriefCreateCli } from "@deftai/directive-core/xbrief";
|
|
3
|
+
const result = runXbriefCreateCli(process.argv.slice(2));
|
|
4
|
+
if (result.stdout)
|
|
5
|
+
process.stdout.write(result.stdout);
|
|
6
|
+
if (result.stderr)
|
|
7
|
+
process.stderr.write(result.stderr);
|
|
8
|
+
process.exit(result.exitCode);
|
|
9
|
+
//# sourceMappingURL=xbrief-create.js.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { runXbriefVerifyCli } from "@deftai/directive-core/xbrief";
|
|
3
|
+
const result = runXbriefVerifyCli(process.argv.slice(2));
|
|
4
|
+
if (result.stdout)
|
|
5
|
+
process.stdout.write(result.stdout);
|
|
6
|
+
if (result.stderr)
|
|
7
|
+
process.stderr.write(result.stderr);
|
|
8
|
+
process.exit(result.exitCode);
|
|
9
|
+
//# sourceMappingURL=xbrief-verify.js.map
|
package/package.json
CHANGED
|
@@ -1,20 +1,29 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deftai/directive",
|
|
3
|
-
"version": "0.126.0
|
|
4
|
-
"description": "Directive
|
|
3
|
+
"version": "0.126.0",
|
|
4
|
+
"description": "Directive CLI — npm install path for the Deft Directive framework.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://deftai.github.io/directive/",
|
|
7
7
|
"type": "module",
|
|
8
|
-
"main": "./dist/
|
|
8
|
+
"main": "./dist/index.js",
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
9
10
|
"bin": {
|
|
10
11
|
"directive": "./dist/bin.js",
|
|
11
12
|
"deft": "./dist/bin.js",
|
|
12
|
-
"deft-
|
|
13
|
+
"deft-ts": "./dist/bin.js",
|
|
14
|
+
"deft-hook": "./dist/hook-bin.js",
|
|
15
|
+
"deft-verify-encoding": "./dist/verify-encoding.js"
|
|
16
|
+
},
|
|
17
|
+
"exports": {
|
|
18
|
+
".": {
|
|
19
|
+
"types": "./dist/index.d.ts",
|
|
20
|
+
"default": "./dist/index.js"
|
|
21
|
+
}
|
|
13
22
|
},
|
|
14
23
|
"files": [
|
|
15
|
-
"dist
|
|
16
|
-
"
|
|
17
|
-
"
|
|
24
|
+
"dist/**/*.js",
|
|
25
|
+
"dist/**/*.d.ts",
|
|
26
|
+
"scripts/remove-windows-ps1-shims.mjs"
|
|
18
27
|
],
|
|
19
28
|
"repository": {
|
|
20
29
|
"type": "git",
|
|
@@ -22,13 +31,15 @@
|
|
|
22
31
|
"directory": "packages/cli"
|
|
23
32
|
},
|
|
24
33
|
"publishConfig": {
|
|
25
|
-
"access": "public"
|
|
34
|
+
"access": "public",
|
|
35
|
+
"provenance": true
|
|
26
36
|
},
|
|
27
|
-
"
|
|
28
|
-
"
|
|
37
|
+
"dependencies": {
|
|
38
|
+
"@deftai/directive-core": "^0.126.0",
|
|
39
|
+
"@deftai/directive-content": "^0.126.0"
|
|
29
40
|
},
|
|
30
|
-
"dependencies": {},
|
|
31
41
|
"scripts": {
|
|
32
|
-
"build": "tsc -b
|
|
42
|
+
"build": "tsc -b",
|
|
43
|
+
"postinstall": "node ./scripts/remove-windows-ps1-shims.mjs"
|
|
33
44
|
}
|
|
34
45
|
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* postinstall entry (#4654). The published tarball includes dist/.
|
|
3
|
+
* A workspace install before tsc has no linked shims yet, so a missing
|
|
4
|
+
* dist file is a no-op rather than a failed install.
|
|
5
|
+
*/
|
|
6
|
+
import { existsSync } from "node:fs";
|
|
7
|
+
import { dirname, join } from "node:path";
|
|
8
|
+
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
9
|
+
|
|
10
|
+
const pkgDir = dirname(dirname(fileURLToPath(import.meta.url)));
|
|
11
|
+
const entry = join(pkgDir, "dist", "windows-bin-ps1.js");
|
|
12
|
+
|
|
13
|
+
if (existsSync(entry)) {
|
|
14
|
+
const mod = await import(pathToFileURL(entry).href);
|
|
15
|
+
const result = mod.removeInstalledWindowsPs1Shims({
|
|
16
|
+
pkgDir,
|
|
17
|
+
env: process.env,
|
|
18
|
+
platform: process.platform,
|
|
19
|
+
});
|
|
20
|
+
if (result.failed.length > 0) {
|
|
21
|
+
process.stderr.write(
|
|
22
|
+
`remove-windows-ps1-shims: could not remove ${result.failed.join(", ")}\n`,
|
|
23
|
+
);
|
|
24
|
+
process.exitCode = 1;
|
|
25
|
+
}
|
|
26
|
+
}
|
package/bin/deft-hook
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
# PATH shim for deft-hook (AC3.5). Sets DEFT_LAUNCHER_MODE and runs the single
|
|
3
|
-
# dist/bin.js (D4.3). Resolve symlinks so npm's .bin/deft-hook link finds dist/.
|
|
4
|
-
SOURCE=$0
|
|
5
|
-
while [ -L "$SOURCE" ]; do
|
|
6
|
-
TARGET=$(readlink "$SOURCE")
|
|
7
|
-
case "$TARGET" in
|
|
8
|
-
/*) SOURCE=$TARGET ;;
|
|
9
|
-
*) SOURCE=$(dirname "$SOURCE")/$TARGET ;;
|
|
10
|
-
esac
|
|
11
|
-
done
|
|
12
|
-
DIR=$(CDPATH= cd -- "$(dirname "$SOURCE")" && pwd)
|
|
13
|
-
export DEFT_LAUNCHER_MODE=hook
|
|
14
|
-
exec node "$DIR/../dist/bin.js" "$@"
|
package/bin/deft-hook.cmd
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
@ECHO OFF
|
|
2
|
-
REM Windows PATH shim for deft-hook (AC3.5). npm may not auto-pick this file when
|
|
3
|
-
REM bin points at the POSIX script; keep beside bin/deft-hook for manual/global use
|
|
4
|
-
REM and for package managers that install sibling .cmd. Sets mode and runs bin.js.
|
|
5
|
-
SET DEFT_LAUNCHER_MODE=hook
|
|
6
|
-
NODE_EXE=node
|
|
7
|
-
WHERE node >NUL 2>&1 || SET NODE_EXE=node.exe
|
|
8
|
-
"%~dp0..\dist\bin.js" 2>NUL
|
|
9
|
-
IF EXIST "%~dp0..\dist\bin.js" (
|
|
10
|
-
%NODE_EXE% "%~dp0..\dist\bin.js" %*
|
|
11
|
-
EXIT /B %ERRORLEVEL%
|
|
12
|
-
)
|
|
13
|
-
ECHO deft-hook: missing %~dp0..\dist\bin.js
|
|
14
|
-
EXIT /B 1
|