@deftai/directive 0.126.2 → 0.128.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.
Files changed (420) hide show
  1. package/bin/deft-hook +14 -0
  2. package/bin/deft-hook.cmd +14 -0
  3. package/dist/bin.js +4319 -3
  4. package/package.json +11 -21
  5. package/dist/agents-refresh.d.ts +0 -11
  6. package/dist/agents-refresh.js +0 -90
  7. package/dist/authz.d.ts +0 -7
  8. package/dist/authz.js +0 -732
  9. package/dist/bin.d.ts +0 -3
  10. package/dist/branch-fixtures.d.ts +0 -45
  11. package/dist/branch-fixtures.js +0 -156
  12. package/dist/cache.d.ts +0 -4
  13. package/dist/cache.js +0 -10
  14. package/dist/capacity-backfill.d.ts +0 -3
  15. package/dist/capacity-backfill.js +0 -9
  16. package/dist/capacity-show.d.ts +0 -3
  17. package/dist/capacity-show.js +0 -9
  18. package/dist/change-init.d.ts +0 -3
  19. package/dist/change-init.js +0 -59
  20. package/dist/changelog-check.d.ts +0 -3
  21. package/dist/changelog-check.js +0 -52
  22. package/dist/check.d.ts +0 -15
  23. package/dist/check.js +0 -150
  24. package/dist/cli-package-version.d.ts +0 -3
  25. package/dist/cli-package-version.js +0 -23
  26. package/dist/cli-router/index.d.ts +0 -8
  27. package/dist/cli-router/index.js +0 -44
  28. package/dist/cli-router/route-argv.d.ts +0 -40
  29. package/dist/cli-router/route-argv.js +0 -371
  30. package/dist/codebase-default-extractor.d.ts +0 -3
  31. package/dist/codebase-default-extractor.js +0 -9
  32. package/dist/codebase-map-fresh.d.ts +0 -3
  33. package/dist/codebase-map-fresh.js +0 -9
  34. package/dist/codebase-map.d.ts +0 -3
  35. package/dist/codebase-map.js +0 -9
  36. package/dist/codebase-projection-registry.d.ts +0 -3
  37. package/dist/codebase-projection-registry.js +0 -9
  38. package/dist/codebase-provider.d.ts +0 -3
  39. package/dist/codebase-provider.js +0 -9
  40. package/dist/commit-lint.d.ts +0 -3
  41. package/dist/commit-lint.js +0 -44
  42. package/dist/content-validate-cli/validate-links.d.ts +0 -11
  43. package/dist/content-validate-cli/validate-links.js +0 -37
  44. package/dist/content-validate-cli/validate-strategy-output.d.ts +0 -13
  45. package/dist/content-validate-cli/validate-strategy-output.js +0 -56
  46. package/dist/content-validate-cli/verify-capacity.d.ts +0 -12
  47. package/dist/content-validate-cli/verify-capacity.js +0 -54
  48. package/dist/coverage-hotspots.d.ts +0 -21
  49. package/dist/coverage-hotspots.js +0 -198
  50. package/dist/design-critique-spend-resolve.d.ts +0 -18
  51. package/dist/design-critique-spend-resolve.js +0 -191
  52. package/dist/directive-finish-loop.d.ts +0 -3
  53. package/dist/directive-finish-loop.js +0 -10
  54. package/dist/dispatch.d.ts +0 -193
  55. package/dist/dispatch.js +0 -3091
  56. package/dist/doctor.d.ts +0 -19
  57. package/dist/doctor.js +0 -155
  58. package/dist/entrypoint.d.ts +0 -6
  59. package/dist/entrypoint.js +0 -19
  60. package/dist/escalation-cli.d.ts +0 -4
  61. package/dist/escalation-cli.js +0 -301
  62. package/dist/eval-health.d.ts +0 -13
  63. package/dist/eval-health.js +0 -63
  64. package/dist/eval-report.d.ts +0 -15
  65. package/dist/eval-report.js +0 -97
  66. package/dist/eval-run.d.ts +0 -17
  67. package/dist/eval-run.js +0 -122
  68. package/dist/eval-triggers.d.ts +0 -12
  69. package/dist/eval-triggers.js +0 -56
  70. package/dist/framework-check-updates.d.ts +0 -10
  71. package/dist/framework-check-updates.js +0 -68
  72. package/dist/gates-cli/_helpers.d.ts +0 -24
  73. package/dist/gates-cli/_helpers.js +0 -115
  74. package/dist/gates-cli/verify-bridge-drift.d.ts +0 -11
  75. package/dist/gates-cli/verify-bridge-drift.js +0 -47
  76. package/dist/gates-cli/verify-go-freeze.d.ts +0 -11
  77. package/dist/gates-cli/verify-go-freeze.js +0 -48
  78. package/dist/hook-bin.d.ts +0 -3
  79. package/dist/hook-bin.js +0 -11
  80. package/dist/hook-dispatch.d.ts +0 -80
  81. package/dist/hook-dispatch.js +0 -186
  82. package/dist/human-presence-mint.d.ts +0 -70
  83. package/dist/human-presence-mint.js +0 -204
  84. package/dist/identity-banner.d.ts +0 -13
  85. package/dist/identity-banner.js +0 -19
  86. package/dist/index.d.ts +0 -11
  87. package/dist/index.js +0 -14
  88. package/dist/init-cli/constants.d.ts +0 -42
  89. package/dist/init-cli/constants.js +0 -42
  90. package/dist/init-cli/help.d.ts +0 -9
  91. package/dist/init-cli/help.js +0 -43
  92. package/dist/init-cli/init.d.ts +0 -26
  93. package/dist/init-cli/init.js +0 -80
  94. package/dist/init-cli/migrate.d.ts +0 -3
  95. package/dist/init-cli/migrate.js +0 -51
  96. package/dist/init-cli/resolve-binary.d.ts +0 -34
  97. package/dist/init-cli/resolve-binary.js +0 -78
  98. package/dist/init-cli/run-deft-install.d.ts +0 -23
  99. package/dist/init-cli/run-deft-install.js +0 -71
  100. package/dist/init-cli/update.d.ts +0 -5
  101. package/dist/init-cli/update.js +0 -38
  102. package/dist/install-cli/coverage-map.d.ts +0 -14
  103. package/dist/install-cli/coverage-map.js +0 -113
  104. package/dist/install-uninstall.d.ts +0 -3
  105. package/dist/install-uninstall.js +0 -44
  106. package/dist/install-upgrade.d.ts +0 -41
  107. package/dist/install-upgrade.js +0 -86
  108. package/dist/lifecycle-cli/coverage-map.d.ts +0 -16
  109. package/dist/lifecycle-cli/coverage-map.js +0 -254
  110. package/dist/lifecycle-cli/helpers.d.ts +0 -8
  111. package/dist/lifecycle-cli/helpers.js +0 -20
  112. package/dist/lifecycle-event.d.ts +0 -11
  113. package/dist/lifecycle-event.js +0 -45
  114. package/dist/lifecycle-stats.d.ts +0 -12
  115. package/dist/lifecycle-stats.js +0 -100
  116. package/dist/migrate-category-b.d.ts +0 -9
  117. package/dist/migrate-category-b.js +0 -52
  118. package/dist/migrate-preflight.d.ts +0 -10
  119. package/dist/migrate-preflight.js +0 -85
  120. package/dist/migrate-xbrief.d.ts +0 -11
  121. package/dist/migrate-xbrief.js +0 -88
  122. package/dist/occupancy-grant.d.ts +0 -18
  123. package/dist/occupancy-grant.js +0 -121
  124. package/dist/occupancy-heartbeat.d.ts +0 -8
  125. package/dist/occupancy-heartbeat.js +0 -63
  126. package/dist/occupancy-release.d.ts +0 -23
  127. package/dist/occupancy-release.js +0 -102
  128. package/dist/occupancy-steal.d.ts +0 -10
  129. package/dist/occupancy-steal.js +0 -83
  130. package/dist/occupancy-unrecognized.d.ts +0 -3
  131. package/dist/occupancy-unrecognized.js +0 -5
  132. package/dist/orchestration-cli/coverage-map.d.ts +0 -21
  133. package/dist/orchestration-cli/coverage-map.js +0 -225
  134. package/dist/orchestration-cli/helpers.d.ts +0 -11
  135. package/dist/orchestration-cli/helpers.js +0 -35
  136. package/dist/ownership-doctor.d.ts +0 -10
  137. package/dist/ownership-doctor.js +0 -96
  138. package/dist/ownership-fix.d.ts +0 -10
  139. package/dist/ownership-fix.js +0 -93
  140. package/dist/plan-sequence.d.ts +0 -14
  141. package/dist/plan-sequence.js +0 -258
  142. package/dist/policy-fixtures.d.ts +0 -33
  143. package/dist/policy-fixtures.js +0 -118
  144. package/dist/policy.d.ts +0 -37
  145. package/dist/policy.js +0 -744
  146. package/dist/pr-closing-keywords.d.ts +0 -3
  147. package/dist/pr-closing-keywords.js +0 -10
  148. package/dist/pr-finish-loop.d.ts +0 -3
  149. package/dist/pr-finish-loop.js +0 -10
  150. package/dist/pr-merge-readiness.d.ts +0 -3
  151. package/dist/pr-merge-readiness.js +0 -10
  152. package/dist/pr-monitor.d.ts +0 -3
  153. package/dist/pr-monitor.js +0 -10
  154. package/dist/pr-protected-issues.d.ts +0 -3
  155. package/dist/pr-protected-issues.js +0 -10
  156. package/dist/pr-wait-mergeable.d.ts +0 -3
  157. package/dist/pr-wait-mergeable.js +0 -10
  158. package/dist/pr-watch.d.ts +0 -3
  159. package/dist/pr-watch.js +0 -10
  160. package/dist/pre-pr-run.d.ts +0 -39
  161. package/dist/pre-pr-run.js +0 -514
  162. package/dist/preflight-cache.d.ts +0 -18
  163. package/dist/preflight-cache.js +0 -113
  164. package/dist/preflight-gh.d.ts +0 -15
  165. package/dist/preflight-gh.js +0 -143
  166. package/dist/probe-session.d.ts +0 -3
  167. package/dist/probe-session.js +0 -10
  168. package/dist/release-e2e-fixtures.d.ts +0 -29
  169. package/dist/release-e2e-fixtures.js +0 -38
  170. package/dist/release-e2e.d.ts +0 -3
  171. package/dist/release-e2e.js +0 -10
  172. package/dist/release-publish.d.ts +0 -3
  173. package/dist/release-publish.js +0 -10
  174. package/dist/release-rollback.d.ts +0 -3
  175. package/dist/release-rollback.js +0 -10
  176. package/dist/release-wait-npm.d.ts +0 -3
  177. package/dist/release-wait-npm.js +0 -10
  178. package/dist/release.d.ts +0 -3
  179. package/dist/release.js +0 -10
  180. package/dist/render-cli/deft-ts-runner.d.ts +0 -17
  181. package/dist/render-cli/deft-ts-runner.js +0 -19
  182. package/dist/render-cli/export-spec-cli.d.ts +0 -2
  183. package/dist/render-cli/export-spec-cli.js +0 -6
  184. package/dist/render-cli/prd-render-cli.d.ts +0 -2
  185. package/dist/render-cli/prd-render-cli.js +0 -37
  186. package/dist/render-cli/project-render-cli.d.ts +0 -2
  187. package/dist/render-cli/project-render-cli.js +0 -6
  188. package/dist/render-cli/rule-map-cli.d.ts +0 -2
  189. package/dist/render-cli/rule-map-cli.js +0 -5
  190. package/dist/render-cli/spec-reconstruct-cli.d.ts +0 -3
  191. package/dist/render-cli/spec-reconstruct-cli.js +0 -15
  192. package/dist/render-cli/spec-render-cli.d.ts +0 -2
  193. package/dist/render-cli/spec-render-cli.js +0 -39
  194. package/dist/render-cli/spec-validate-cli.d.ts +0 -2
  195. package/dist/render-cli/spec-validate-cli.js +0 -38
  196. package/dist/review-monitor-register.d.ts +0 -19
  197. package/dist/review-monitor-register.js +0 -183
  198. package/dist/review-monitor-release.d.ts +0 -14
  199. package/dist/review-monitor-release.js +0 -123
  200. package/dist/scm-sync-default.d.ts +0 -34
  201. package/dist/scm-sync-default.js +0 -210
  202. package/dist/scope-lifecycle.d.ts +0 -4
  203. package/dist/scope-lifecycle.js +0 -34
  204. package/dist/scope-record-approved-scope.d.ts +0 -29
  205. package/dist/scope-record-approved-scope.js +0 -319
  206. package/dist/scope-record-intent-constraint.d.ts +0 -16
  207. package/dist/scope-record-intent-constraint.js +0 -202
  208. package/dist/scope-record-observable-scope.d.ts +0 -16
  209. package/dist/scope-record-observable-scope.js +0 -204
  210. package/dist/session-ready.d.ts +0 -15
  211. package/dist/session-ready.js +0 -144
  212. package/dist/session-start.d.ts +0 -56
  213. package/dist/session-start.js +0 -581
  214. package/dist/slice.d.ts +0 -4
  215. package/dist/slice.js +0 -34
  216. package/dist/story-ready-fixtures.d.ts +0 -47
  217. package/dist/story-ready-fixtures.js +0 -137
  218. package/dist/subagent-monitor.d.ts +0 -3
  219. package/dist/subagent-monitor.js +0 -10
  220. package/dist/subagent-pre-cancel.d.ts +0 -21
  221. package/dist/subagent-pre-cancel.js +0 -240
  222. package/dist/subagent-steer-write.d.ts +0 -41
  223. package/dist/subagent-steer-write.js +0 -333
  224. package/dist/toolchain-check.d.ts +0 -8
  225. package/dist/toolchain-check.js +0 -54
  226. package/dist/triage-actions.d.ts +0 -23
  227. package/dist/triage-actions.js +0 -233
  228. package/dist/triage-aux-a-fixtures.d.ts +0 -33
  229. package/dist/triage-aux-a-fixtures.js +0 -107
  230. package/dist/triage-aux-b-fixtures.d.ts +0 -30
  231. package/dist/triage-aux-b-fixtures.js +0 -167
  232. package/dist/triage-bootstrap-fixtures.d.ts +0 -42
  233. package/dist/triage-bootstrap-fixtures.js +0 -139
  234. package/dist/triage-bootstrap.d.ts +0 -24
  235. package/dist/triage-bootstrap.js +0 -175
  236. package/dist/triage-bulk.d.ts +0 -17
  237. package/dist/triage-bulk.js +0 -154
  238. package/dist/triage-classify-fixtures.d.ts +0 -38
  239. package/dist/triage-classify-fixtures.js +0 -137
  240. package/dist/triage-classify.d.ts +0 -45
  241. package/dist/triage-classify.js +0 -287
  242. package/dist/triage-evaluate.d.ts +0 -14
  243. package/dist/triage-evaluate.js +0 -153
  244. package/dist/triage-help.d.ts +0 -3
  245. package/dist/triage-help.js +0 -10
  246. package/dist/triage-queue-fixtures.d.ts +0 -59
  247. package/dist/triage-queue-fixtures.js +0 -284
  248. package/dist/triage-queue.d.ts +0 -38
  249. package/dist/triage-queue.js +0 -391
  250. package/dist/triage-reconcile.d.ts +0 -11
  251. package/dist/triage-reconcile.js +0 -76
  252. package/dist/triage-refresh.d.ts +0 -7
  253. package/dist/triage-refresh.js +0 -37
  254. package/dist/triage-scope-drift.d.ts +0 -12
  255. package/dist/triage-scope-drift.js +0 -117
  256. package/dist/triage-scope-fixtures.d.ts +0 -32
  257. package/dist/triage-scope-fixtures.js +0 -131
  258. package/dist/triage-scope.d.ts +0 -4
  259. package/dist/triage-scope.js +0 -34
  260. package/dist/triage-smoketest.d.ts +0 -3
  261. package/dist/triage-smoketest.js +0 -43
  262. package/dist/triage-strip-withdrawn.d.ts +0 -21
  263. package/dist/triage-strip-withdrawn.js +0 -102
  264. package/dist/triage-subscribe.d.ts +0 -15
  265. package/dist/triage-subscribe.js +0 -157
  266. package/dist/triage-summary.d.ts +0 -14
  267. package/dist/triage-summary.js +0 -83
  268. package/dist/triage-welcome.d.ts +0 -14
  269. package/dist/triage-welcome.js +0 -121
  270. package/dist/ts-check-lane.d.ts +0 -9
  271. package/dist/ts-check-lane.js +0 -49
  272. package/dist/umbrella-current-shape.d.ts +0 -9
  273. package/dist/umbrella-current-shape.js +0 -56
  274. package/dist/vbrief-activate.d.ts +0 -3
  275. package/dist/vbrief-activate.js +0 -7
  276. package/dist/vbrief-build.d.ts +0 -3
  277. package/dist/vbrief-build.js +0 -8
  278. package/dist/vbrief-preflight-fixtures.d.ts +0 -32
  279. package/dist/vbrief-preflight-fixtures.js +0 -79
  280. package/dist/vbrief-preflight.d.ts +0 -13
  281. package/dist/vbrief-preflight.js +0 -141
  282. package/dist/vbrief-reconcile.d.ts +0 -3
  283. package/dist/vbrief-reconcile.js +0 -7
  284. package/dist/vbrief-validate.d.ts +0 -3
  285. package/dist/vbrief-validate.js +0 -8
  286. package/dist/vbrief-validation.d.ts +0 -3
  287. package/dist/vbrief-validation.js +0 -8
  288. package/dist/verify-ac.d.ts +0 -28
  289. package/dist/verify-ac.js +0 -439
  290. package/dist/verify-agents-md-advisory.d.ts +0 -19
  291. package/dist/verify-agents-md-advisory.js +0 -65
  292. package/dist/verify-agents-md-budget.d.ts +0 -12
  293. package/dist/verify-agents-md-budget.js +0 -71
  294. package/dist/verify-branch.d.ts +0 -14
  295. package/dist/verify-branch.js +0 -81
  296. package/dist/verify-class-checks.d.ts +0 -11
  297. package/dist/verify-class-checks.js +0 -71
  298. package/dist/verify-cohort-review-monitors.d.ts +0 -5
  299. package/dist/verify-cohort-review-monitors.js +0 -11
  300. package/dist/verify-completed-tracked.d.ts +0 -19
  301. package/dist/verify-completed-tracked.js +0 -202
  302. package/dist/verify-completed-write-guard.d.ts +0 -13
  303. package/dist/verify-completed-write-guard.js +0 -84
  304. package/dist/verify-consumer-check-contract.d.ts +0 -12
  305. package/dist/verify-consumer-check-contract.js +0 -70
  306. package/dist/verify-consumer-header-placeholder.d.ts +0 -12
  307. package/dist/verify-consumer-header-placeholder.js +0 -73
  308. package/dist/verify-consumer-test-lane.d.ts +0 -12
  309. package/dist/verify-consumer-test-lane.js +0 -57
  310. package/dist/verify-durable-effect-acquisition.d.ts +0 -13
  311. package/dist/verify-durable-effect-acquisition.js +0 -70
  312. package/dist/verify-encoding.d.ts +0 -15
  313. package/dist/verify-encoding.js +0 -83
  314. package/dist/verify-eval-health-relocation.d.ts +0 -16
  315. package/dist/verify-eval-health-relocation.js +0 -93
  316. package/dist/verify-eval-triggers-relocation.d.ts +0 -14
  317. package/dist/verify-eval-triggers-relocation.js +0 -74
  318. package/dist/verify-evaluator-surface.d.ts +0 -15
  319. package/dist/verify-evaluator-surface.js +0 -87
  320. package/dist/verify-forward-coverage.d.ts +0 -19
  321. package/dist/verify-forward-coverage.js +0 -144
  322. package/dist/verify-hooks-installed.d.ts +0 -24
  323. package/dist/verify-hooks-installed.js +0 -140
  324. package/dist/verify-intent-constraint.d.ts +0 -17
  325. package/dist/verify-intent-constraint.js +0 -110
  326. package/dist/verify-investigation.d.ts +0 -3
  327. package/dist/verify-investigation.js +0 -10
  328. package/dist/verify-judgment-gates.d.ts +0 -3
  329. package/dist/verify-judgment-gates.js +0 -10
  330. package/dist/verify-l4-owner.d.ts +0 -15
  331. package/dist/verify-l4-owner.js +0 -132
  332. package/dist/verify-lifecycle-visible.d.ts +0 -13
  333. package/dist/verify-lifecycle-visible.js +0 -68
  334. package/dist/verify-literal-ac.d.ts +0 -14
  335. package/dist/verify-literal-ac.js +0 -168
  336. package/dist/verify-no-task-runtime.d.ts +0 -3
  337. package/dist/verify-no-task-runtime.js +0 -16
  338. package/dist/verify-observable-scope.d.ts +0 -17
  339. package/dist/verify-observable-scope.js +0 -110
  340. package/dist/verify-operator-scope-limit.d.ts +0 -17
  341. package/dist/verify-operator-scope-limit.js +0 -285
  342. package/dist/verify-orphan-active.d.ts +0 -17
  343. package/dist/verify-orphan-active.js +0 -135
  344. package/dist/verify-ownership.d.ts +0 -10
  345. package/dist/verify-ownership.js +0 -90
  346. package/dist/verify-persisted-planning-narratives.d.ts +0 -12
  347. package/dist/verify-persisted-planning-narratives.js +0 -82
  348. package/dist/verify-plan-sequence.d.ts +0 -14
  349. package/dist/verify-plan-sequence.js +0 -138
  350. package/dist/verify-pr-closeout-attestable.d.ts +0 -15
  351. package/dist/verify-pr-closeout-attestable.js +0 -114
  352. package/dist/verify-presentation-ceiling.d.ts +0 -11
  353. package/dist/verify-presentation-ceiling.js +0 -71
  354. package/dist/verify-presentation-coverage.d.ts +0 -14
  355. package/dist/verify-presentation-coverage.js +0 -90
  356. package/dist/verify-review-monitor.d.ts +0 -32
  357. package/dist/verify-review-monitor.js +0 -362
  358. package/dist/verify-scope-provenance.d.ts +0 -16
  359. package/dist/verify-scope-provenance.js +0 -91
  360. package/dist/verify-session-ritual.d.ts +0 -23
  361. package/dist/verify-session-ritual.js +0 -144
  362. package/dist/verify-source-cli/rule-ownership-lint.d.ts +0 -12
  363. package/dist/verify-source-cli/rule-ownership-lint.js +0 -61
  364. package/dist/verify-source-cli/verify-biome-config.d.ts +0 -11
  365. package/dist/verify-source-cli/verify-biome-config.js +0 -46
  366. package/dist/verify-source-cli/verify-closing-keywords.d.ts +0 -35
  367. package/dist/verify-source-cli/verify-closing-keywords.js +0 -139
  368. package/dist/verify-source-cli/verify-consumer-hard-stops.d.ts +0 -16
  369. package/dist/verify-source-cli/verify-consumer-hard-stops.js +0 -99
  370. package/dist/verify-source-cli/verify-contained-writes.d.ts +0 -13
  371. package/dist/verify-source-cli/verify-contained-writes.js +0 -67
  372. package/dist/verify-source-cli/verify-content-manifest.d.ts +0 -12
  373. package/dist/verify-source-cli/verify-content-manifest.js +0 -61
  374. package/dist/verify-source-cli/verify-contract-drift.d.ts +0 -11
  375. package/dist/verify-source-cli/verify-contract-drift.js +0 -47
  376. package/dist/verify-source-cli/verify-cursor-tier1.d.ts +0 -12
  377. package/dist/verify-source-cli/verify-cursor-tier1.js +0 -51
  378. package/dist/verify-source-cli/verify-deposit-closure.d.ts +0 -12
  379. package/dist/verify-source-cli/verify-deposit-closure.js +0 -52
  380. package/dist/verify-source-cli/verify-openclaw-tier1.d.ts +0 -12
  381. package/dist/verify-source-cli/verify-openclaw-tier1.js +0 -51
  382. package/dist/verify-source-cli/verify-scm-boundary.d.ts +0 -13
  383. package/dist/verify-source-cli/verify-scm-boundary.js +0 -66
  384. package/dist/verify-source-cli/verify-semantic-single-source.d.ts +0 -11
  385. package/dist/verify-source-cli/verify-semantic-single-source.js +0 -49
  386. package/dist/verify-source-cli/verify-skill-external-fetch-gate.d.ts +0 -11
  387. package/dist/verify-source-cli/verify-skill-external-fetch-gate.js +0 -46
  388. package/dist/verify-source-cli/verify-spec-drift.d.ts +0 -3
  389. package/dist/verify-source-cli/verify-spec-drift.js +0 -15
  390. package/dist/verify-source-cli/verify-spec-prd-fresh.d.ts +0 -3
  391. package/dist/verify-source-cli/verify-spec-prd-fresh.js +0 -15
  392. package/dist/verify-source-cli/verify-stubs.d.ts +0 -11
  393. package/dist/verify-source-cli/verify-stubs.js +0 -27
  394. package/dist/verify-source-cli/verify-telemetry-coverage.d.ts +0 -13
  395. package/dist/verify-source-cli/verify-telemetry-coverage.js +0 -67
  396. package/dist/verify-source-cli/verify-xbrief-drift.d.ts +0 -15
  397. package/dist/verify-source-cli/verify-xbrief-drift.js +0 -80
  398. package/dist/verify-story-ready.d.ts +0 -18
  399. package/dist/verify-story-ready.js +0 -190
  400. package/dist/verify-subagent-alive.d.ts +0 -21
  401. package/dist/verify-subagent-alive.js +0 -219
  402. package/dist/verify-subagent-steer.d.ts +0 -19
  403. package/dist/verify-subagent-steer.js +0 -136
  404. package/dist/verify-test-boundary.d.ts +0 -12
  405. package/dist/verify-test-boundary.js +0 -80
  406. package/dist/verify-tools.d.ts +0 -13
  407. package/dist/verify-tools.js +0 -67
  408. package/dist/verify-wip-cap.d.ts +0 -13
  409. package/dist/verify-wip-cap.js +0 -62
  410. package/dist/windows-bin-ps1.d.ts +0 -39
  411. package/dist/windows-bin-ps1.js +0 -226
  412. package/dist/wip-cap-fixtures.d.ts +0 -37
  413. package/dist/wip-cap-fixtures.js +0 -122
  414. package/dist/wsl-ownership-guard.d.ts +0 -2
  415. package/dist/wsl-ownership-guard.js +0 -15
  416. package/dist/xbrief-create.d.ts +0 -3
  417. package/dist/xbrief-create.js +0 -9
  418. package/dist/xbrief-verify.d.ts +0 -3
  419. package/dist/xbrief-verify.js +0 -9
  420. package/scripts/remove-windows-ps1-shims.mjs +0 -26
@@ -1,44 +0,0 @@
1
- #!/usr/bin/env node
2
- import { resolve } from "node:path";
3
- import { fileURLToPath } from "node:url";
4
- import { runInstallUninstall } from "@deftai/directive-core/task-surface";
5
- function parseProjectRoot(argv) {
6
- let projectRoot = ".";
7
- for (let i = 0; i < argv.length; i += 1) {
8
- const arg = argv[i] ?? "";
9
- if (arg === "--project-root") {
10
- const value = argv[i + 1];
11
- if (value === undefined) {
12
- return { projectRoot, error: "argument --project-root: expected one argument" };
13
- }
14
- projectRoot = value;
15
- i += 1;
16
- }
17
- else if (arg.startsWith("--project-root=")) {
18
- projectRoot = arg.slice("--project-root=".length);
19
- }
20
- else {
21
- return { projectRoot, error: `unrecognized argument: ${arg}` };
22
- }
23
- }
24
- return { projectRoot };
25
- }
26
- export function run(argv) {
27
- const args = parseProjectRoot(argv);
28
- if (args.error !== undefined) {
29
- process.stderr.write(`install-uninstall: ${args.error}\n`);
30
- return 2;
31
- }
32
- return runInstallUninstall(resolve(args.projectRoot), {
33
- writeOut: (text) => {
34
- process.stdout.write(text);
35
- },
36
- writeErr: (text) => {
37
- process.stderr.write(text);
38
- },
39
- });
40
- }
41
- if (process.argv[1] !== undefined && fileURLToPath(import.meta.url) === process.argv[1]) {
42
- process.exit(run(process.argv.slice(2)));
43
- }
44
- //# sourceMappingURL=install-uninstall.js.map
@@ -1,41 +0,0 @@
1
- #!/usr/bin/env node
2
- import type { DispatchIo } from "./dispatch.js";
3
- /**
4
- * #2064: `deft install-upgrade` is now a thin redirect onto the SAME code path
5
- * as `directive update` (`runRefreshDeposit`). The two verbs previously had
6
- * overlapping-but-divergent semantics: `directive update` file-swaps the
7
- * vendored `.deft/core` payload, rewrites the install manifest (#2056), and
8
- * regenerates the `.deft-version` marker (#2055), whereas the old
9
- * `install-upgrade` only wrote the marker/manifest and refreshed AGENTS.md
10
- * WITHOUT swapping the payload -- so on a stale deposit it reported a confident
11
- * false no-op ("Project already at X. Nothing to do.") that steered operators
12
- * away from the command that actually works. Consolidating to one path removes
13
- * that hazard and gives consumers a single upgrade mental model:
14
- * npm i -g @deftai/directive@latest -> deft update -> deft migrate -> deft doctor
15
- *
16
- * The legacy `.deft/VERSION` cleanup that only `install-upgrade` used to perform
17
- * is folded into the shared `runRefreshDeposit` path (see
18
- * `migrateLegacyInstallManifest` in init-deposit/refresh.ts) so no manifest
19
- * behavior is dropped. Layout migration (the old `--migrate` flag) is the
20
- * separate `deft migrate` step in the canonical flow above.
21
- */
22
- /** One-line notice emitted on the redirect so operators learn the canonical verb. */
23
- export declare const REDIRECT_NOTICE: string;
24
- export interface InstallUpgradeDeps {
25
- /** Injectable seam so tests can drive the shared update path with fixtures. */
26
- readonly runUpdate?: (argv: readonly string[], io: DispatchIo) => Promise<number>;
27
- }
28
- /**
29
- * Translate the historical `install-upgrade` flag surface onto the
30
- * `directive update` argv. `--project-root <p>` maps to `--repo-root <p>`;
31
- * `--framework-root` is dropped (update resolves its own content root) and the
32
- * legacy `--migrate` / `--force` flags are dropped (layout migration is now the
33
- * separate `deft migrate` step). Any other argv passes through unchanged.
34
- */
35
- export declare function translateArgs(argv: readonly string[]): string[];
36
- /**
37
- * Redirect handler: emit the one-line notice, then delegate to the identical
38
- * code path `directive update` uses so deposit state + stdout are identical.
39
- */
40
- export declare function run(argv: readonly string[], io?: DispatchIo, deps?: InstallUpgradeDeps): Promise<number>;
41
- //# sourceMappingURL=install-upgrade.d.ts.map
@@ -1,86 +0,0 @@
1
- #!/usr/bin/env node
2
- import { fileURLToPath } from "node:url";
3
- import { runUpdate } from "./init-cli/update.js";
4
- /**
5
- * #2064: `deft install-upgrade` is now a thin redirect onto the SAME code path
6
- * as `directive update` (`runRefreshDeposit`). The two verbs previously had
7
- * overlapping-but-divergent semantics: `directive update` file-swaps the
8
- * vendored `.deft/core` payload, rewrites the install manifest (#2056), and
9
- * regenerates the `.deft-version` marker (#2055), whereas the old
10
- * `install-upgrade` only wrote the marker/manifest and refreshed AGENTS.md
11
- * WITHOUT swapping the payload -- so on a stale deposit it reported a confident
12
- * false no-op ("Project already at X. Nothing to do.") that steered operators
13
- * away from the command that actually works. Consolidating to one path removes
14
- * that hazard and gives consumers a single upgrade mental model:
15
- * npm i -g @deftai/directive@latest -> deft update -> deft migrate -> deft doctor
16
- *
17
- * The legacy `.deft/VERSION` cleanup that only `install-upgrade` used to perform
18
- * is folded into the shared `runRefreshDeposit` path (see
19
- * `migrateLegacyInstallManifest` in init-deposit/refresh.ts) so no manifest
20
- * behavior is dropped. Layout migration (the old `--migrate` flag) is the
21
- * separate `deft migrate` step in the canonical flow above.
22
- */
23
- /** One-line notice emitted on the redirect so operators learn the canonical verb. */
24
- export const REDIRECT_NOTICE = "install-upgrade: delegating to `directive update` -- the single canonical " +
25
- "upgrade verb (run `deft update` directly; use `deft migrate` for layout " +
26
- "migration). Refs #2064.\n";
27
- /**
28
- * Translate the historical `install-upgrade` flag surface onto the
29
- * `directive update` argv. `--project-root <p>` maps to `--repo-root <p>`;
30
- * `--framework-root` is dropped (update resolves its own content root) and the
31
- * legacy `--migrate` / `--force` flags are dropped (layout migration is now the
32
- * separate `deft migrate` step). Any other argv passes through unchanged.
33
- */
34
- export function translateArgs(argv) {
35
- const out = [];
36
- for (let i = 0; i < argv.length; i += 1) {
37
- const arg = argv[i] ?? "";
38
- if (arg === "--project-root") {
39
- out.push("--repo-root");
40
- const value = argv[i + 1];
41
- if (value !== undefined) {
42
- out.push(value);
43
- i += 1;
44
- }
45
- }
46
- else if (arg.startsWith("--project-root=")) {
47
- out.push(`--repo-root=${arg.slice("--project-root=".length)}`);
48
- }
49
- else if (arg === "--framework-root") {
50
- i += 1; // drop the flag and its value
51
- }
52
- else if (arg.startsWith("--framework-root=") || arg === "--migrate" || arg === "--force") {
53
- // Intentionally dropped: update resolves its own content root, and layout
54
- // migration is the separate `deft migrate` step in the canonical flow.
55
- }
56
- else {
57
- out.push(arg);
58
- }
59
- }
60
- return out;
61
- }
62
- function defaultIo() {
63
- return {
64
- writeOut: (text) => {
65
- process.stdout.write(text);
66
- },
67
- writeErr: (text) => {
68
- process.stderr.write(text);
69
- },
70
- };
71
- }
72
- /**
73
- * Redirect handler: emit the one-line notice, then delegate to the identical
74
- * code path `directive update` uses so deposit state + stdout are identical.
75
- */
76
- export async function run(argv, io = defaultIo(), deps = {}) {
77
- const update = deps.runUpdate ?? runUpdate;
78
- io.writeErr(REDIRECT_NOTICE);
79
- return update(translateArgs(argv), io);
80
- }
81
- if (process.argv[1] !== undefined && fileURLToPath(import.meta.url) === process.argv[1]) {
82
- run(process.argv.slice(2)).then((code) => {
83
- process.exit(code);
84
- });
85
- }
86
- //# sourceMappingURL=install-upgrade.js.map
@@ -1,16 +0,0 @@
1
- /**
2
- * Wave 8.5 Bucket B coverage map: pytest CLI tests → TS vitest / existing-coverage (#1838 s3).
3
- * Python tests remain in-tree until Wave 9 (#1731); entries tagged wave9-delete are dedup candidates.
4
- */
5
- export type CoverageDisposition = "existing-coverage" | "lifecycle-cli-dispatch" | "python-oracle";
6
- export interface CoverageMapEntry {
7
- readonly pythonTest: string;
8
- readonly tsTarget: string;
9
- readonly disposition: CoverageDisposition;
10
- readonly wave9Delete: boolean;
11
- readonly notes: string;
12
- }
13
- /** Canonical mapping for lifecycle CLI pytest files in scope of story 1838-s3. */
14
- export declare const LIFECYCLE_CLI_COVERAGE_MAP: readonly CoverageMapEntry[];
15
- export declare const LIFECYCLE_PYTHON_TEST_FILES: string[];
16
- //# sourceMappingURL=coverage-map.d.ts.map
@@ -1,254 +0,0 @@
1
- /**
2
- * Wave 8.5 Bucket B coverage map: pytest CLI tests → TS vitest / existing-coverage (#1838 s3).
3
- * Python tests remain in-tree until Wave 9 (#1731); entries tagged wave9-delete are dedup candidates.
4
- */
5
- /** Canonical mapping for lifecycle CLI pytest files in scope of story 1838-s3. */
6
- export const LIFECYCLE_CLI_COVERAGE_MAP = [
7
- {
8
- pythonTest: "tests/cli/test_vbrief_activate.py",
9
- tsTarget: "packages/core/src/vbrief-activate/{activate,main,coverage-boost}.test.ts + lifecycle-cli/dispatch-vbrief.test.ts",
10
- disposition: "lifecycle-cli-dispatch",
11
- wave9Delete: true,
12
- notes: "Module matrix in core; deft-ts vbrief-activate argv/exit in lifecycle-cli.",
13
- },
14
- {
15
- pythonTest: "tests/cli/test_vbrief_fidelity_legacy.py",
16
- tsTarget: "packages/core/src/vbrief-validation/fidelity.test.ts",
17
- disposition: "existing-coverage",
18
- wave9Delete: true,
19
- notes: "Legacy fidelity normalization covered in TS vbrief-validation module.",
20
- },
21
- {
22
- pythonTest: "tests/cli/test_vbrief_migrate_conformance.py",
23
- tsTarget: "packages/core/src/vbrief-validate/main.test.ts (scanVbrief/conformance)",
24
- disposition: "existing-coverage",
25
- wave9Delete: true,
26
- notes: "Conformance scan parity in vbrief-validate TS port.",
27
- },
28
- {
29
- pythonTest: "tests/cli/test_vbrief_preflight_resolver.py",
30
- tsTarget: "packages/cli/src/vbrief-preflight.test.ts + lifecycle-cli/dispatch-preflight.test.ts",
31
- disposition: "lifecycle-cli-dispatch",
32
- wave9Delete: false,
33
- notes: "Install-layout resolver still Python-only; TS preflight gate + dispatcher alias covered.",
34
- },
35
- {
36
- pythonTest: "tests/cli/test_vbrief_reconcile_graph.py",
37
- tsTarget: "packages/core/src/vbrief-reconcile/graph.test.ts",
38
- disposition: "existing-coverage",
39
- wave9Delete: true,
40
- notes: "Dependency-graph promotion logic in TS vbrief-reconcile.",
41
- },
42
- {
43
- pythonTest: "tests/cli/test_vbrief_reconcile_labels.py",
44
- tsTarget: "packages/core/src/vbrief-reconcile/labels.test.ts",
45
- disposition: "existing-coverage",
46
- wave9Delete: true,
47
- notes: "Label/status derivation covered in TS reconcile engine.",
48
- },
49
- {
50
- pythonTest: "tests/cli/test_vbrief_reconcile_umbrellas.py",
51
- tsTarget: "packages/core/src/vbrief-reconcile/umbrellas.test.ts",
52
- disposition: "existing-coverage",
53
- wave9Delete: true,
54
- notes: "Umbrella current-shape render/parse in TS.",
55
- },
56
- {
57
- pythonTest: "tests/cli/test_vbrief_reconciliation.py",
58
- tsTarget: "packages/core/src/vbrief-reconcile/reconciliation.test.ts",
59
- disposition: "existing-coverage",
60
- wave9Delete: true,
61
- notes: "Override reconciliation table covered in TS.",
62
- },
63
- {
64
- pythonTest: "tests/cli/test_vbrief_routing.py",
65
- tsTarget: "packages/core/src/vbrief-build/routing.test.ts",
66
- disposition: "existing-coverage",
67
- wave9Delete: true,
68
- notes: "Status↔folder routing map in TS vbrief-build.",
69
- },
70
- {
71
- pythonTest: "tests/cli/test_vbrief_validate.py",
72
- tsTarget: "packages/core/src/vbrief-validate/main.test.ts",
73
- disposition: "lifecycle-cli-dispatch",
74
- wave9Delete: true,
75
- notes: "validateAll matrix in core; deft-ts vbrief-validate argv in lifecycle-cli.",
76
- },
77
- {
78
- pythonTest: "tests/cli/test_vbrief_validate_direct.py",
79
- tsTarget: "packages/core/src/vbrief-validate/branches.test.ts",
80
- disposition: "existing-coverage",
81
- wave9Delete: true,
82
- notes: "Direct validate orchestration branches in TS.",
83
- },
84
- {
85
- pythonTest: "tests/cli/test_vbrief_validate_direct_orchestration.py",
86
- tsTarget: "packages/core/src/vbrief-validate/branches.test.ts",
87
- disposition: "existing-coverage",
88
- wave9Delete: true,
89
- notes: "Reference/orchestration warnings in TS validate-all.",
90
- },
91
- {
92
- pythonTest: "tests/cli/test_vbrief_validate_issue_536.py",
93
- tsTarget: "packages/core/src/vbrief-validate/branches.test.ts",
94
- disposition: "existing-coverage",
95
- wave9Delete: true,
96
- notes: "x-vbrief/github-issue reference counting in TS.",
97
- },
98
- {
99
- pythonTest: "tests/cli/test_vbrief_validation.py",
100
- tsTarget: "packages/core/src/vbrief-validation/validation.test.ts",
101
- disposition: "lifecycle-cli-dispatch",
102
- wave9Delete: true,
103
- notes: "Slug/title normalization in core; deft-ts vbrief-validation argv in lifecycle-cli.",
104
- },
105
- {
106
- pythonTest: "tests/cli/test_scope_decompose.py",
107
- tsTarget: "packages/core/src/scope/decomposed-refs.test.ts",
108
- disposition: "python-oracle",
109
- wave9Delete: false,
110
- notes: "scope:decompose CLI still Python; unit helpers partially covered in decomposed-refs TS.",
111
- },
112
- {
113
- pythonTest: "tests/cli/test_scope_decompose_unit.py",
114
- tsTarget: "packages/core/src/scope/decomposed-refs.test.ts",
115
- disposition: "existing-coverage",
116
- wave9Delete: false,
117
- notes: "Pure decomposition helpers; CLI entry remains Python until Wave 9.",
118
- },
119
- {
120
- pythonTest: "tests/cli/test_scope_demote.py",
121
- tsTarget: "packages/core/src/scope/demote.test.ts",
122
- disposition: "lifecycle-cli-dispatch",
123
- wave9Delete: true,
124
- notes: "Demote transitions in core; deft-ts scope-lifecycle argv in lifecycle-cli.",
125
- },
126
- {
127
- pythonTest: "tests/cli/test_scope_lifecycle.py",
128
- tsTarget: "packages/core/src/scope/{main,transition,scope-exhaustive}.test.ts",
129
- disposition: "lifecycle-cli-dispatch",
130
- wave9Delete: true,
131
- notes: "Promote/activate/complete matrix in core; scope-lifecycle dispatcher in lifecycle-cli.",
132
- },
133
- {
134
- pythonTest: "tests/cli/test_scope_undo.py",
135
- tsTarget: "packages/core/src/scope/undo.test.ts",
136
- disposition: "existing-coverage",
137
- wave9Delete: true,
138
- notes: "Undo round-trip covered in TS scope module.",
139
- },
140
- {
141
- pythonTest: "tests/cli/test_issue_emit.py",
142
- tsTarget: "packages/core/src/intake/issue-emit.test.ts",
143
- disposition: "lifecycle-cli-dispatch",
144
- wave9Delete: true,
145
- notes: "Emit body/render in core; deft-ts issue-emit argv in lifecycle-cli.",
146
- },
147
- {
148
- pythonTest: "tests/cli/test_issue_ingest.py",
149
- tsTarget: "packages/core/src/intake/{issue-ingest,intake-cli-and-branches}.test.ts + lifecycle-cli/dispatch-intake.test.ts",
150
- disposition: "lifecycle-cli-dispatch",
151
- wave9Delete: true,
152
- notes: "Ingest happy-path/duplicate in core; dispatcher routing in lifecycle-cli.",
153
- },
154
- {
155
- pythonTest: "tests/cli/test_issue_ingest_body_parsing.py",
156
- tsTarget: "packages/core/src/intake/markdown-scanners.test.ts",
157
- disposition: "existing-coverage",
158
- wave9Delete: true,
159
- notes: "Checkbox/AC body scanners in TS intake module.",
160
- },
161
- {
162
- pythonTest: "tests/cli/test_issue_ingest_canonical_refs.py",
163
- tsTarget: "packages/core/src/intake/issue-ingest.test.ts",
164
- disposition: "existing-coverage",
165
- wave9Delete: true,
166
- notes: "v0.6 canonical reference shape in TS ingest.",
167
- },
168
- {
169
- pythonTest: "tests/cli/test_issue_ingest_direct.py",
170
- tsTarget: "packages/core/src/intake/intake-coverage-boost.test.ts",
171
- disposition: "existing-coverage",
172
- wave9Delete: true,
173
- notes: "Repo URL / gh helper branches in TS intake.",
174
- },
175
- {
176
- pythonTest: "tests/cli/test_issue_ingest_escape_corruption.py",
177
- tsTarget: "packages/core/src/intake/intake-cli-and-branches.test.ts",
178
- disposition: "existing-coverage",
179
- wave9Delete: true,
180
- notes: "Literal escape preservation in TS ingest path.",
181
- },
182
- {
183
- pythonTest: "tests/cli/test_reconcile_issues.py",
184
- tsTarget: "packages/core/src/intake/reconcile-issues.test.ts",
185
- disposition: "lifecycle-cli-dispatch",
186
- wave9Delete: true,
187
- notes: "Reconcile classification in core; deft-ts reconcile-issues argv in lifecycle-cli.",
188
- },
189
- {
190
- pythonTest: "tests/cli/test_reconcile_issues_754.py",
191
- tsTarget: "packages/core/src/intake/reconcile-issues.test.ts",
192
- disposition: "existing-coverage",
193
- wave9Delete: true,
194
- notes: "Batch gh state fetch (>500) in TS reconcile module.",
195
- },
196
- {
197
- pythonTest: "tests/cli/test_reconcile_issues_apply.py",
198
- tsTarget: "packages/core/src/intake/reconcile-issues.test.ts",
199
- disposition: "existing-coverage",
200
- wave9Delete: true,
201
- notes: "Apply/move section-C entries in TS reconcile.",
202
- },
203
- {
204
- pythonTest: "tests/cli/test_reconcile_issues_direct.py",
205
- tsTarget: "packages/core/src/intake/intake-coverage-boost.test.ts",
206
- disposition: "existing-coverage",
207
- wave9Delete: true,
208
- notes: "gh subprocess error branches in TS reconcile helpers.",
209
- },
210
- {
211
- pythonTest: "tests/cli/test_preflight_architecture_sor.py",
212
- tsTarget: "python-oracle (scripts/preflight_architecture_sor.py)",
213
- disposition: "python-oracle",
214
- wave9Delete: false,
215
- notes: "Architecture SOR preflight not yet on deft-ts; stays Python until TS port.",
216
- },
217
- {
218
- pythonTest: "tests/cli/test_preflight_branch.py",
219
- tsTarget: "packages/core/src/branch/evaluate.test.ts + packages/cli/src/verify-branch.test.ts + lifecycle-cli/dispatch-preflight.test.ts",
220
- disposition: "lifecycle-cli-dispatch",
221
- wave9Delete: true,
222
- notes: "Branch gate in core/cli; verify-branch + vbrief:preflight alias via dispatcher.",
223
- },
224
- {
225
- pythonTest: "tests/cli/test_preflight_cache.py",
226
- tsTarget: "python-oracle (scripts/preflight_cache.py)",
227
- disposition: "python-oracle",
228
- wave9Delete: false,
229
- notes: "verify:cache-fresh still Python-only per Wave 8 notes; TS cache module covers fetch not preflight gate.",
230
- },
231
- {
232
- pythonTest: "tests/cli/test_preflight_gh.py",
233
- tsTarget: "python-oracle (scripts/preflight_gh.py)",
234
- disposition: "python-oracle",
235
- wave9Delete: false,
236
- notes: "Destructive gh preflight still Python-only; intake github-auth-modes partially overlaps read paths.",
237
- },
238
- {
239
- pythonTest: "tests/cli/test_preflight_implementation.py",
240
- tsTarget: "packages/core/src/preflight/evaluate.test.ts + packages/cli/src/vbrief-preflight.test.ts + lifecycle-cli/dispatch-preflight.test.ts",
241
- disposition: "lifecycle-cli-dispatch",
242
- wave9Delete: true,
243
- notes: "#810 state matrix in core; vbrief:preflight / vbrief-preflight dispatcher in lifecycle-cli.",
244
- },
245
- {
246
- pythonTest: "tests/cli/test_preflight_story_start.py",
247
- tsTarget: "packages/core/src/story-ready/evaluate.test.ts + packages/cli/src/verify-story-ready.test.ts + lifecycle-cli/dispatch-preflight.test.ts",
248
- disposition: "lifecycle-cli-dispatch",
249
- wave9Delete: true,
250
- notes: "Gate 0 matrix in core; verify:story-ready alias via deft-ts dispatcher.",
251
- },
252
- ];
253
- export const LIFECYCLE_PYTHON_TEST_FILES = LIFECYCLE_CLI_COVERAGE_MAP.map((e) => e.pythonTest);
254
- //# sourceMappingURL=coverage-map.js.map
@@ -1,8 +0,0 @@
1
- export interface CapturedDispatch {
2
- readonly exitCode: number;
3
- readonly stdout: string;
4
- readonly stderr: string;
5
- }
6
- /** Invoke the unified deft-ts dispatcher with captured stdout/stderr. */
7
- export declare function runDispatch(argv: readonly string[]): Promise<CapturedDispatch>;
8
- //# sourceMappingURL=helpers.d.ts.map
@@ -1,20 +0,0 @@
1
- /**
2
- * Shared helpers for lifecycle CLI retarget specs (#1838 s3).
3
- */
4
- import { dispatch } from "../dispatch.js";
5
- /** Invoke the unified deft-ts dispatcher with captured stdout/stderr. */
6
- export async function runDispatch(argv) {
7
- const out = [];
8
- const err = [];
9
- const io = {
10
- writeOut: (text) => {
11
- out.push(text);
12
- },
13
- writeErr: (text) => {
14
- err.push(text);
15
- },
16
- };
17
- const exitCode = await dispatch([...argv], io);
18
- return { exitCode, stdout: out.join(""), stderr: err.join("") };
19
- }
20
- //# sourceMappingURL=helpers.js.map
@@ -1,11 +0,0 @@
1
- #!/usr/bin/env node
2
- export interface ParsedLifecycleEventArgs {
3
- projectRoot: string;
4
- rest: string[];
5
- error?: string;
6
- }
7
- /** Parse lifecycle:event CLI args. */
8
- export declare function parseArgs(argv: readonly string[]): ParsedLifecycleEventArgs;
9
- /** Native lifecycle:event handler (#2631). */
10
- export declare function run(argv: readonly string[]): number;
11
- //# sourceMappingURL=lifecycle-event.d.ts.map
@@ -1,45 +0,0 @@
1
- #!/usr/bin/env node
2
- import { resolve } from "node:path";
3
- import { fileURLToPath } from "node:url";
4
- import { runLifecycleEvent } from "@deftai/directive-core/lifecycle";
5
- /** Parse lifecycle:event CLI args. */
6
- export function parseArgs(argv) {
7
- const parsed = {
8
- projectRoot: ".",
9
- rest: [],
10
- };
11
- let i = 0;
12
- while (i < argv.length) {
13
- const arg = argv[i];
14
- if (arg === "--project-root") {
15
- const value = argv[i + 1];
16
- if (value === undefined) {
17
- return { ...parsed, error: "argument --project-root: expected one argument" };
18
- }
19
- parsed.projectRoot = value;
20
- i += 2;
21
- continue;
22
- }
23
- if (arg?.startsWith("--project-root=")) {
24
- parsed.projectRoot = arg.slice("--project-root=".length);
25
- i += 1;
26
- continue;
27
- }
28
- parsed.rest = argv.slice(i);
29
- break;
30
- }
31
- return parsed;
32
- }
33
- /** Native lifecycle:event handler (#2631). */
34
- export function run(argv) {
35
- const args = parseArgs(argv);
36
- if (args.error !== undefined) {
37
- process.stderr.write(`lifecycle_event: ${args.error}\n`);
38
- return 2;
39
- }
40
- return runLifecycleEvent(args.rest, { projectRoot: resolve(args.projectRoot) });
41
- }
42
- if (process.argv[1] !== undefined && fileURLToPath(import.meta.url) === process.argv[1]) {
43
- process.exit(run(process.argv.slice(2)));
44
- }
45
- //# sourceMappingURL=lifecycle-event.js.map
@@ -1,12 +0,0 @@
1
- #!/usr/bin/env node
2
- export interface ParsedLifecycleStatsArgs {
3
- projectRoot: string;
4
- since: string;
5
- json: boolean;
6
- error?: string;
7
- }
8
- /** Parse lifecycle:stats CLI args. */
9
- export declare function parseArgs(argv: readonly string[]): ParsedLifecycleStatsArgs;
10
- /** Native lifecycle:stats handler (#2995). */
11
- export declare function run(argv?: readonly string[]): number;
12
- //# sourceMappingURL=lifecycle-stats.d.ts.map
@@ -1,100 +0,0 @@
1
- #!/usr/bin/env node
2
- /**
3
- * CLI: deft lifecycle:stats — local xBRIEF folder counts for process rollups (#2995).
4
- */
5
- import { resolve } from "node:path";
6
- import { fileURLToPath } from "node:url";
7
- import { collectLifecycleStats, formatLifecycleStatsText, parseDurationMs, } from "@deftai/directive-core/lifecycle";
8
- /** Parse lifecycle:stats CLI args. */
9
- export function parseArgs(argv) {
10
- const parsed = {
11
- projectRoot: ".",
12
- since: "7d",
13
- json: false,
14
- };
15
- for (let i = 0; i < argv.length; i += 1) {
16
- const arg = argv[i];
17
- if (arg === undefined)
18
- continue;
19
- if (arg === "--json") {
20
- parsed.json = true;
21
- continue;
22
- }
23
- if (arg === "--help" || arg === "-h") {
24
- return {
25
- ...parsed,
26
- error: "usage: lifecycle:stats [--since=7d] [--json] [--project-root <path>]\n" +
27
- " Counts xbrief lifecycle folders (filesystem only). See commands.md § lifecycle:stats.",
28
- };
29
- }
30
- if (arg === "--project-root") {
31
- const value = argv[i + 1];
32
- if (value === undefined) {
33
- return { ...parsed, error: "argument --project-root: expected one argument" };
34
- }
35
- parsed.projectRoot = value;
36
- i += 1;
37
- continue;
38
- }
39
- if (arg.startsWith("--project-root=")) {
40
- parsed.projectRoot = arg.slice("--project-root=".length);
41
- continue;
42
- }
43
- if (arg === "--since") {
44
- const value = argv[i + 1];
45
- if (value === undefined) {
46
- return { ...parsed, error: "argument --since: expected one argument" };
47
- }
48
- parsed.since = value;
49
- i += 1;
50
- continue;
51
- }
52
- if (arg.startsWith("--since=")) {
53
- parsed.since = arg.slice("--since=".length);
54
- continue;
55
- }
56
- if (arg.startsWith("-")) {
57
- return { ...parsed, error: `unknown flag: ${arg}` };
58
- }
59
- return { ...parsed, error: `unexpected argument: ${arg}` };
60
- }
61
- return parsed;
62
- }
63
- /** Native lifecycle:stats handler (#2995). */
64
- export function run(argv = process.argv.slice(2)) {
65
- const args = parseArgs(argv);
66
- if (args.error !== undefined) {
67
- process.stderr.write(`lifecycle_stats: ${args.error}\n`);
68
- return 2;
69
- }
70
- try {
71
- parseDurationMs(args.since);
72
- }
73
- catch (err) {
74
- const msg = err instanceof Error ? err.message : String(err);
75
- process.stderr.write(`lifecycle_stats: ${msg}\n`);
76
- return 2;
77
- }
78
- try {
79
- const stats = collectLifecycleStats({
80
- projectRoot: resolve(args.projectRoot),
81
- since: args.since,
82
- });
83
- if (args.json) {
84
- process.stdout.write(`${JSON.stringify(stats, null, 2)}\n`);
85
- }
86
- else {
87
- process.stdout.write(formatLifecycleStatsText(stats));
88
- }
89
- return 0;
90
- }
91
- catch (err) {
92
- const msg = err instanceof Error ? err.message : String(err);
93
- process.stderr.write(`lifecycle_stats: ${msg}\n`);
94
- return 1;
95
- }
96
- }
97
- if (process.argv[1] !== undefined && fileURLToPath(import.meta.url) === process.argv[1]) {
98
- process.exit(run(process.argv.slice(2)));
99
- }
100
- //# sourceMappingURL=lifecycle-stats.js.map
@@ -1,9 +0,0 @@
1
- #!/usr/bin/env node
2
- export interface ParsedMigrateCategoryBArgs {
3
- projectRoot: string;
4
- error?: string;
5
- }
6
- export declare function parseArgs(argv: readonly string[]): ParsedMigrateCategoryBArgs;
7
- /** Migrate Category B bare plan keys to the x-directive/ namespace (#1650). */
8
- export declare function run(argv: readonly string[]): number;
9
- //# sourceMappingURL=migrate-category-b.d.ts.map