@lumenflow/core 4.24.0 → 5.0.1

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 (430) hide show
  1. package/dist/arg-parser.d.ts.map +1 -1
  2. package/dist/arg-parser.js +16 -0
  3. package/dist/arg-parser.js.map +1 -1
  4. package/dist/atomic-merge.d.ts.map +1 -1
  5. package/dist/atomic-merge.js +25 -18
  6. package/dist/atomic-merge.js.map +1 -1
  7. package/dist/client-ids.d.ts +1 -15
  8. package/dist/client-ids.d.ts.map +1 -1
  9. package/dist/client-ids.js +4 -13
  10. package/dist/client-ids.js.map +1 -1
  11. package/dist/code-path-validator.d.ts.map +1 -1
  12. package/dist/code-path-validator.js +6 -3
  13. package/dist/code-path-validator.js.map +1 -1
  14. package/dist/config-contract.d.ts +1 -30
  15. package/dist/config-contract.d.ts.map +1 -1
  16. package/dist/config-contract.js +4 -60
  17. package/dist/config-contract.js.map +1 -1
  18. package/dist/constants/backlog-patterns.d.ts +1 -20
  19. package/dist/constants/backlog-patterns.d.ts.map +1 -1
  20. package/dist/constants/backlog-patterns.js +2 -23
  21. package/dist/constants/backlog-patterns.js.map +1 -1
  22. package/dist/constants/duration-constants.d.ts +1 -28
  23. package/dist/constants/duration-constants.d.ts.map +1 -1
  24. package/dist/constants/duration-constants.js +4 -28
  25. package/dist/constants/duration-constants.js.map +1 -1
  26. package/dist/constants/gate-constants.d.ts +1 -23
  27. package/dist/constants/gate-constants.d.ts.map +1 -1
  28. package/dist/constants/gate-constants.js +4 -23
  29. package/dist/constants/gate-constants.js.map +1 -1
  30. package/dist/constants/lock-constants.d.ts +1 -28
  31. package/dist/constants/lock-constants.d.ts.map +1 -1
  32. package/dist/constants/lock-constants.js +2 -28
  33. package/dist/constants/lock-constants.js.map +1 -1
  34. package/dist/core/tool.schemas.d.ts +11 -11
  35. package/dist/core/worktree-guard.js +2 -2
  36. package/dist/core/worktree-guard.js.map +1 -1
  37. package/dist/cycle-detector.d.ts +4 -48
  38. package/dist/cycle-detector.d.ts.map +1 -1
  39. package/dist/cycle-detector.js +4 -78
  40. package/dist/cycle-detector.js.map +1 -1
  41. package/dist/date-utils.d.ts +1 -65
  42. package/dist/date-utils.d.ts.map +1 -1
  43. package/dist/date-utils.js +4 -140
  44. package/dist/date-utils.js.map +1 -1
  45. package/dist/delegation-monitor.d.ts +2 -0
  46. package/dist/delegation-monitor.d.ts.map +1 -1
  47. package/dist/delegation-monitor.js +29 -2
  48. package/dist/delegation-monitor.js.map +1 -1
  49. package/dist/delegation-recovery.d.ts +36 -17
  50. package/dist/delegation-recovery.d.ts.map +1 -1
  51. package/dist/delegation-recovery.js +285 -82
  52. package/dist/delegation-recovery.js.map +1 -1
  53. package/dist/delegation-registry-schema.d.ts +257 -31
  54. package/dist/delegation-registry-schema.d.ts.map +1 -1
  55. package/dist/delegation-registry-schema.js +43 -34
  56. package/dist/delegation-registry-schema.js.map +1 -1
  57. package/dist/delegation-registry-store.d.ts +4 -128
  58. package/dist/delegation-registry-store.d.ts.map +1 -1
  59. package/dist/delegation-registry-store.js +39 -178
  60. package/dist/delegation-registry-store.js.map +1 -1
  61. package/dist/delegation-tree.d.ts +12 -20
  62. package/dist/delegation-tree.d.ts.map +1 -1
  63. package/dist/delegation-tree.js +40 -29
  64. package/dist/delegation-tree.js.map +1 -1
  65. package/dist/delivery-review-contract.d.ts +1 -1
  66. package/dist/delivery-review-contract.d.ts.map +1 -1
  67. package/dist/docs-layout-presets.d.ts +1 -30
  68. package/dist/docs-layout-presets.d.ts.map +1 -1
  69. package/dist/docs-layout-presets.js +4 -38
  70. package/dist/docs-layout-presets.js.map +1 -1
  71. package/dist/domain/context.schemas.d.ts +3 -3
  72. package/dist/domain/orchestration.constants.d.ts +1 -110
  73. package/dist/domain/orchestration.constants.d.ts.map +1 -1
  74. package/dist/domain/orchestration.constants.js +2 -127
  75. package/dist/domain/orchestration.constants.js.map +1 -1
  76. package/dist/domain/orchestration.schemas.d.ts +1 -306
  77. package/dist/domain/orchestration.schemas.d.ts.map +1 -1
  78. package/dist/domain/orchestration.schemas.js +2 -211
  79. package/dist/domain/orchestration.schemas.js.map +1 -1
  80. package/dist/domain/orchestration.types.d.ts +1 -133
  81. package/dist/domain/orchestration.types.d.ts.map +1 -1
  82. package/dist/domain/orchestration.types.js +2 -2
  83. package/dist/domain/orchestration.types.js.map +1 -1
  84. package/dist/domain/recovery.schemas.d.ts +3 -3
  85. package/dist/domain/validation.schemas.d.ts +4 -4
  86. package/dist/error-handler.d.ts +4 -173
  87. package/dist/error-handler.d.ts.map +1 -1
  88. package/dist/error-handler.js +4 -244
  89. package/dist/error-handler.js.map +1 -1
  90. package/dist/file-classifiers.d.ts.map +1 -1
  91. package/dist/file-classifiers.js +26 -0
  92. package/dist/file-classifiers.js.map +1 -1
  93. package/dist/git-adapter.d.ts +4 -448
  94. package/dist/git-adapter.d.ts.map +1 -1
  95. package/dist/git-adapter.js +4 -772
  96. package/dist/git-adapter.js.map +1 -1
  97. package/dist/git-context-extractor.d.ts +4 -98
  98. package/dist/git-context-extractor.d.ts.map +1 -1
  99. package/dist/git-context-extractor.js +4 -563
  100. package/dist/git-context-extractor.js.map +1 -1
  101. package/dist/git-staged-validator.d.ts +4 -29
  102. package/dist/git-staged-validator.d.ts.map +1 -1
  103. package/dist/git-staged-validator.js +4 -46
  104. package/dist/git-staged-validator.js.map +1 -1
  105. package/dist/incremental-lint.d.ts.map +1 -1
  106. package/dist/incremental-lint.js +3 -2
  107. package/dist/incremental-lint.js.map +1 -1
  108. package/dist/incremental-test.d.ts +1 -32
  109. package/dist/incremental-test.d.ts.map +1 -1
  110. package/dist/incremental-test.js +4 -61
  111. package/dist/incremental-test.js.map +1 -1
  112. package/dist/index.d.ts +3 -2
  113. package/dist/index.d.ts.map +1 -1
  114. package/dist/index.js +10 -2
  115. package/dist/index.js.map +1 -1
  116. package/dist/integration-target.d.ts +30 -0
  117. package/dist/integration-target.d.ts.map +1 -0
  118. package/dist/integration-target.js +51 -0
  119. package/dist/integration-target.js.map +1 -0
  120. package/dist/lane-checker.d.ts.map +1 -1
  121. package/dist/lane-checker.js +8 -0
  122. package/dist/lane-checker.js.map +1 -1
  123. package/dist/lumenflow-config-schema.d.ts +73 -29
  124. package/dist/lumenflow-config-schema.d.ts.map +1 -1
  125. package/dist/lumenflow-config-schema.js +1 -1
  126. package/dist/lumenflow-config-schema.js.map +1 -1
  127. package/dist/lumenflow-config.d.ts +10 -34
  128. package/dist/lumenflow-config.d.ts.map +1 -1
  129. package/dist/lumenflow-config.js +32 -142
  130. package/dist/lumenflow-config.js.map +1 -1
  131. package/dist/manual-test-validator.d.ts +1 -96
  132. package/dist/manual-test-validator.d.ts.map +1 -1
  133. package/dist/manual-test-validator.js +4 -245
  134. package/dist/manual-test-validator.js.map +1 -1
  135. package/dist/micro-worktree-shared.d.ts.map +1 -1
  136. package/dist/micro-worktree-shared.js +10 -9
  137. package/dist/micro-worktree-shared.js.map +1 -1
  138. package/dist/micro-worktree.d.ts.map +1 -1
  139. package/dist/micro-worktree.js +26 -23
  140. package/dist/micro-worktree.js.map +1 -1
  141. package/dist/normalize-config-keys.d.ts +1 -10
  142. package/dist/normalize-config-keys.d.ts.map +1 -1
  143. package/dist/normalize-config-keys.js +7 -73
  144. package/dist/normalize-config-keys.js.map +1 -1
  145. package/dist/object-guards.d.ts +1 -10
  146. package/dist/object-guards.d.ts.map +1 -1
  147. package/dist/object-guards.js +7 -20
  148. package/dist/object-guards.js.map +1 -1
  149. package/dist/ports/config.ports.d.ts +1 -82
  150. package/dist/ports/config.ports.d.ts.map +1 -1
  151. package/dist/ports/config.ports.js +2 -1
  152. package/dist/ports/config.ports.js.map +1 -1
  153. package/dist/ports/dashboard-renderer.port.d.ts +1 -112
  154. package/dist/ports/dashboard-renderer.port.d.ts.map +1 -1
  155. package/dist/ports/dashboard-renderer.port.js +2 -1
  156. package/dist/ports/dashboard-renderer.port.js.map +1 -1
  157. package/dist/ports/git-validator.ports.d.ts +5 -110
  158. package/dist/ports/git-validator.ports.d.ts.map +1 -1
  159. package/dist/ports/git-validator.ports.js +8 -1
  160. package/dist/ports/git-validator.ports.js.map +1 -1
  161. package/dist/ports/sync-validator.ports.d.ts +1 -51
  162. package/dist/ports/sync-validator.ports.d.ts.map +1 -1
  163. package/dist/ports/sync-validator.ports.js +2 -1
  164. package/dist/ports/sync-validator.ports.js.map +1 -1
  165. package/dist/ports/wu-helpers.ports.d.ts +1 -156
  166. package/dist/ports/wu-helpers.ports.d.ts.map +1 -1
  167. package/dist/ports/wu-helpers.ports.js +2 -1
  168. package/dist/ports/wu-helpers.ports.js.map +1 -1
  169. package/dist/ports/wu-state.ports.d.ts +1 -208
  170. package/dist/ports/wu-state.ports.d.ts.map +1 -1
  171. package/dist/ports/wu-state.ports.js +2 -1
  172. package/dist/ports/wu-state.ports.js.map +1 -1
  173. package/dist/rebase-artifact-cleanup.d.ts.map +1 -1
  174. package/dist/rebase-artifact-cleanup.js +6 -3
  175. package/dist/rebase-artifact-cleanup.js.map +1 -1
  176. package/dist/sandbox-allowlist.d.ts +1 -15
  177. package/dist/sandbox-allowlist.d.ts.map +1 -1
  178. package/dist/sandbox-allowlist.js +4 -74
  179. package/dist/sandbox-allowlist.js.map +1 -1
  180. package/dist/sandbox-backend-linux.d.ts +1 -5
  181. package/dist/sandbox-backend-linux.d.ts.map +1 -1
  182. package/dist/sandbox-backend-linux.js +4 -64
  183. package/dist/sandbox-backend-linux.js.map +1 -1
  184. package/dist/sandbox-backend-macos.d.ts +1 -5
  185. package/dist/sandbox-backend-macos.d.ts.map +1 -1
  186. package/dist/sandbox-backend-macos.js +4 -109
  187. package/dist/sandbox-backend-macos.js.map +1 -1
  188. package/dist/sandbox-backend-windows.d.ts +1 -5
  189. package/dist/sandbox-backend-windows.d.ts.map +1 -1
  190. package/dist/sandbox-backend-windows.js +4 -27
  191. package/dist/sandbox-backend-windows.js.map +1 -1
  192. package/dist/sandbox-profile.d.ts +1 -57
  193. package/dist/sandbox-profile.d.ts.map +1 -1
  194. package/dist/sandbox-profile.js +4 -65
  195. package/dist/sandbox-profile.js.map +1 -1
  196. package/dist/schemas/agents-config.d.ts +47 -0
  197. package/dist/schemas/agents-config.d.ts.map +1 -1
  198. package/dist/schemas/agents-config.js +59 -0
  199. package/dist/schemas/agents-config.js.map +1 -1
  200. package/dist/schemas/command-schemas.d.ts +4 -4
  201. package/dist/schemas/flow-arg-validators.d.ts +2 -2
  202. package/dist/schemas/flow-schemas.d.ts +4 -4
  203. package/dist/schemas/gates-section-config.d.ts +32 -13
  204. package/dist/schemas/gates-section-config.d.ts.map +1 -1
  205. package/dist/schemas/gates-section-config.js +16 -1
  206. package/dist/schemas/gates-section-config.js.map +1 -1
  207. package/dist/schemas/initiative-arg-validators.d.ts +2 -2
  208. package/dist/schemas/initiative-schemas.d.ts +12 -12
  209. package/dist/schemas/lanes-config.d.ts +5 -5
  210. package/dist/schemas/memory-arg-validators.d.ts +6 -0
  211. package/dist/schemas/memory-arg-validators.d.ts.map +1 -1
  212. package/dist/schemas/memory-config.d.ts +4 -4
  213. package/dist/schemas/memory-schemas.d.ts +12 -0
  214. package/dist/schemas/memory-schemas.d.ts.map +1 -1
  215. package/dist/schemas/memory-schemas.js +12 -0
  216. package/dist/schemas/memory-schemas.js.map +1 -1
  217. package/dist/schemas/operational-config.d.ts +4 -4
  218. package/dist/schemas/setup-arg-validators.d.ts +3 -3
  219. package/dist/schemas/setup-schemas.d.ts +8 -8
  220. package/dist/schemas/wu-config.d.ts +3 -3
  221. package/dist/schemas/wu-lifecycle-arg-validators.d.ts +2 -2
  222. package/dist/schemas/wu-lifecycle-schemas.d.ts +4 -4
  223. package/dist/section-headings.d.ts +1 -34
  224. package/dist/section-headings.d.ts.map +1 -1
  225. package/dist/section-headings.js +2 -51
  226. package/dist/section-headings.js.map +1 -1
  227. package/dist/spawn-constraints-generator.js +3 -3
  228. package/dist/spawn-constraints-generator.js.map +1 -1
  229. package/dist/spawn-guidance-generators.d.ts +1 -1
  230. package/dist/spawn-guidance-generators.d.ts.map +1 -1
  231. package/dist/spawn-policy-resolver.d.ts +1 -1
  232. package/dist/spawn-policy-resolver.d.ts.map +1 -1
  233. package/dist/spawn-task-builder.d.ts +17 -1
  234. package/dist/spawn-task-builder.d.ts.map +1 -1
  235. package/dist/spawn-task-builder.js +63 -1
  236. package/dist/spawn-task-builder.js.map +1 -1
  237. package/dist/spawn-template-assembler.d.ts +1 -1
  238. package/dist/spawn-template-assembler.d.ts.map +1 -1
  239. package/dist/state-machine.d.ts +1 -9
  240. package/dist/state-machine.d.ts.map +1 -1
  241. package/dist/state-machine.js +2 -86
  242. package/dist/state-machine.js.map +1 -1
  243. package/dist/sync-validator.d.ts.map +1 -1
  244. package/dist/sync-validator.js +15 -12
  245. package/dist/sync-validator.js.map +1 -1
  246. package/dist/telemetry.d.ts.map +1 -1
  247. package/dist/telemetry.js +3 -2
  248. package/dist/telemetry.js.map +1 -1
  249. package/dist/work-classifier.d.ts +1 -102
  250. package/dist/work-classifier.d.ts.map +1 -1
  251. package/dist/work-classifier.js +2 -424
  252. package/dist/work-classifier.js.map +1 -1
  253. package/dist/worktree-symlink.d.ts +2 -2
  254. package/dist/worktree-symlink.d.ts.map +1 -1
  255. package/dist/worktree-symlink.js +37 -12
  256. package/dist/worktree-symlink.js.map +1 -1
  257. package/dist/wu-cli-constants.d.ts +1 -433
  258. package/dist/wu-cli-constants.d.ts.map +1 -1
  259. package/dist/wu-cli-constants.js +4 -436
  260. package/dist/wu-cli-constants.js.map +1 -1
  261. package/dist/wu-consistency-file-repairs.d.ts.map +1 -1
  262. package/dist/wu-consistency-file-repairs.js +5 -3
  263. package/dist/wu-consistency-file-repairs.js.map +1 -1
  264. package/dist/wu-context-constants.d.ts +22 -0
  265. package/dist/wu-context-constants.d.ts.map +1 -1
  266. package/dist/wu-context-constants.js +22 -0
  267. package/dist/wu-context-constants.js.map +1 -1
  268. package/dist/wu-doc-types.d.ts +1 -47
  269. package/dist/wu-doc-types.d.ts.map +1 -1
  270. package/dist/wu-domain-constants.d.ts +1 -295
  271. package/dist/wu-domain-constants.d.ts.map +1 -1
  272. package/dist/wu-domain-constants.js +4 -397
  273. package/dist/wu-domain-constants.js.map +1 -1
  274. package/dist/wu-done-branch-only.d.ts +1 -1
  275. package/dist/wu-done-branch-only.d.ts.map +1 -1
  276. package/dist/wu-done-branch-only.js +22 -13
  277. package/dist/wu-done-branch-only.js.map +1 -1
  278. package/dist/wu-done-branch-utils.d.ts.map +1 -1
  279. package/dist/wu-done-branch-utils.js +5 -3
  280. package/dist/wu-done-branch-utils.js.map +1 -1
  281. package/dist/wu-done-cleanup.d.ts.map +1 -1
  282. package/dist/wu-done-cleanup.js +66 -22
  283. package/dist/wu-done-cleanup.js.map +1 -1
  284. package/dist/wu-done-concurrent-merge.d.ts.map +1 -1
  285. package/dist/wu-done-concurrent-merge.js +9 -6
  286. package/dist/wu-done-concurrent-merge.js.map +1 -1
  287. package/dist/wu-done-errors.d.ts +3 -3
  288. package/dist/wu-done-errors.d.ts.map +1 -1
  289. package/dist/wu-done-inputs.d.ts.map +1 -1
  290. package/dist/wu-done-inputs.js +3 -0
  291. package/dist/wu-done-inputs.js.map +1 -1
  292. package/dist/wu-done-merge-phase.d.ts.map +1 -1
  293. package/dist/wu-done-merge-phase.js +4 -2
  294. package/dist/wu-done-merge-phase.js.map +1 -1
  295. package/dist/wu-done-merge.d.ts.map +1 -1
  296. package/dist/wu-done-merge.js +16 -8
  297. package/dist/wu-done-merge.js.map +1 -1
  298. package/dist/wu-done-merged-worktree.d.ts.map +1 -1
  299. package/dist/wu-done-merged-worktree.js +7 -8
  300. package/dist/wu-done-merged-worktree.js.map +1 -1
  301. package/dist/wu-done-messages.d.ts.map +1 -1
  302. package/dist/wu-done-messages.js +12 -5
  303. package/dist/wu-done-messages.js.map +1 -1
  304. package/dist/wu-done-metadata.d.ts.map +1 -1
  305. package/dist/wu-done-metadata.js +3 -8
  306. package/dist/wu-done-metadata.js.map +1 -1
  307. package/dist/wu-done-preflight-checks.d.ts.map +1 -1
  308. package/dist/wu-done-preflight-checks.js +21 -15
  309. package/dist/wu-done-preflight-checks.js.map +1 -1
  310. package/dist/wu-done-rebase.d.ts.map +1 -1
  311. package/dist/wu-done-rebase.js +10 -8
  312. package/dist/wu-done-rebase.js.map +1 -1
  313. package/dist/wu-done-retry-helpers.d.ts.map +1 -1
  314. package/dist/wu-done-retry-helpers.js +13 -11
  315. package/dist/wu-done-retry-helpers.js.map +1 -1
  316. package/dist/wu-done-validation.d.ts.map +1 -1
  317. package/dist/wu-done-validation.js +4 -2
  318. package/dist/wu-done-validation.js.map +1 -1
  319. package/dist/wu-done-worktree-services.d.ts.map +1 -1
  320. package/dist/wu-done-worktree-services.js +4 -2
  321. package/dist/wu-done-worktree-services.js.map +1 -1
  322. package/dist/wu-done-worktree.d.ts.map +1 -1
  323. package/dist/wu-done-worktree.js +4 -2
  324. package/dist/wu-done-worktree.js.map +1 -1
  325. package/dist/wu-git-constants.d.ts +1 -175
  326. package/dist/wu-git-constants.d.ts.map +1 -1
  327. package/dist/wu-git-constants.js +4 -175
  328. package/dist/wu-git-constants.js.map +1 -1
  329. package/dist/wu-helpers.d.ts +24 -0
  330. package/dist/wu-helpers.d.ts.map +1 -1
  331. package/dist/wu-helpers.js +37 -4
  332. package/dist/wu-helpers.js.map +1 -1
  333. package/dist/wu-id-format.d.ts +1 -137
  334. package/dist/wu-id-format.d.ts.map +1 -1
  335. package/dist/wu-id-format.js +2 -249
  336. package/dist/wu-id-format.js.map +1 -1
  337. package/dist/wu-id-generator.d.ts.map +1 -1
  338. package/dist/wu-id-generator.js +8 -5
  339. package/dist/wu-id-generator.js.map +1 -1
  340. package/dist/wu-paths-constants.d.ts +1 -253
  341. package/dist/wu-paths-constants.d.ts.map +1 -1
  342. package/dist/wu-paths-constants.js +4 -273
  343. package/dist/wu-paths-constants.js.map +1 -1
  344. package/dist/wu-paths.d.ts +1 -274
  345. package/dist/wu-paths.d.ts.map +1 -1
  346. package/dist/wu-paths.js +4 -236
  347. package/dist/wu-paths.js.map +1 -1
  348. package/dist/wu-rules-resolvers.d.ts.map +1 -1
  349. package/dist/wu-rules-resolvers.js +11 -6
  350. package/dist/wu-rules-resolvers.js.map +1 -1
  351. package/dist/wu-schema.d.ts +1 -830
  352. package/dist/wu-schema.d.ts.map +1 -1
  353. package/dist/wu-schema.js +4 -929
  354. package/dist/wu-schema.js.map +1 -1
  355. package/dist/wu-spawn-helpers.d.ts.map +1 -1
  356. package/dist/wu-spawn-helpers.js +5 -2
  357. package/dist/wu-spawn-helpers.js.map +1 -1
  358. package/dist/wu-spawn.d.ts +2 -2
  359. package/dist/wu-spawn.d.ts.map +1 -1
  360. package/dist/wu-spawn.js +2 -2
  361. package/dist/wu-spawn.js.map +1 -1
  362. package/dist/wu-state-schema.d.ts +1 -291
  363. package/dist/wu-state-schema.d.ts.map +1 -1
  364. package/dist/wu-state-schema.js +4 -212
  365. package/dist/wu-state-schema.js.map +1 -1
  366. package/dist/wu-status-transition.d.ts +3 -1
  367. package/dist/wu-status-transition.d.ts.map +1 -1
  368. package/dist/wu-status-transition.js +9 -24
  369. package/dist/wu-status-transition.js.map +1 -1
  370. package/dist/wu-statuses.d.ts +1 -208
  371. package/dist/wu-statuses.d.ts.map +1 -1
  372. package/dist/wu-statuses.js +4 -242
  373. package/dist/wu-statuses.js.map +1 -1
  374. package/dist/wu-transaction-collectors.d.ts +1 -0
  375. package/dist/wu-transaction-collectors.d.ts.map +1 -1
  376. package/dist/wu-transaction-collectors.js +13 -8
  377. package/dist/wu-transaction-collectors.js.map +1 -1
  378. package/dist/wu-type-helpers.d.ts +1 -27
  379. package/dist/wu-type-helpers.d.ts.map +1 -1
  380. package/dist/wu-type-helpers.js +4 -46
  381. package/dist/wu-type-helpers.js.map +1 -1
  382. package/dist/wu-ui-constants.d.ts +1 -235
  383. package/dist/wu-ui-constants.d.ts.map +1 -1
  384. package/dist/wu-ui-constants.js +5 -235
  385. package/dist/wu-ui-constants.js.map +1 -1
  386. package/dist/wu-validation-constants.d.ts +1 -60
  387. package/dist/wu-validation-constants.d.ts.map +1 -1
  388. package/dist/wu-validation-constants.js +4 -66
  389. package/dist/wu-validation-constants.js.map +1 -1
  390. package/dist/wu-yaml.d.ts +1 -112
  391. package/dist/wu-yaml.d.ts.map +1 -1
  392. package/dist/wu-yaml.js +4 -304
  393. package/dist/wu-yaml.js.map +1 -1
  394. package/package.json +12 -9
  395. package/dist/coverage-gate.d.ts +0 -128
  396. package/dist/coverage-gate.d.ts.map +0 -1
  397. package/dist/coverage-gate.js +0 -211
  398. package/dist/coverage-gate.js.map +0 -1
  399. package/dist/gates-agent-mode.d.ts +0 -108
  400. package/dist/gates-agent-mode.d.ts.map +0 -1
  401. package/dist/gates-agent-mode.js +0 -138
  402. package/dist/gates-agent-mode.js.map +0 -1
  403. package/dist/gates-config-internal.d.ts +0 -54
  404. package/dist/gates-config-internal.d.ts.map +0 -1
  405. package/dist/gates-config-internal.js +0 -107
  406. package/dist/gates-config-internal.js.map +0 -1
  407. package/dist/gates-config.d.ts +0 -68
  408. package/dist/gates-config.d.ts.map +0 -1
  409. package/dist/gates-config.js +0 -193
  410. package/dist/gates-config.js.map +0 -1
  411. package/dist/gates-coverage.d.ts +0 -42
  412. package/dist/gates-coverage.d.ts.map +0 -1
  413. package/dist/gates-coverage.js +0 -162
  414. package/dist/gates-coverage.js.map +0 -1
  415. package/dist/gates-presets.d.ts +0 -52
  416. package/dist/gates-presets.d.ts.map +0 -1
  417. package/dist/gates-presets.js +0 -117
  418. package/dist/gates-presets.js.map +0 -1
  419. package/dist/gates-schemas.d.ts +0 -143
  420. package/dist/gates-schemas.d.ts.map +0 -1
  421. package/dist/gates-schemas.js +0 -67
  422. package/dist/gates-schemas.js.map +0 -1
  423. package/dist/package-manager-resolver.d.ts +0 -80
  424. package/dist/package-manager-resolver.d.ts.map +0 -1
  425. package/dist/package-manager-resolver.js +0 -245
  426. package/dist/package-manager-resolver.js.map +0 -1
  427. package/dist/resolve-policy.d.ts +0 -293
  428. package/dist/resolve-policy.d.ts.map +0 -1
  429. package/dist/resolve-policy.js +0 -303
  430. package/dist/resolve-policy.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  // Copyright (c) 2026 Hellmai Ltd
2
2
  // SPDX-License-Identifier: AGPL-3.0-only
3
- // Re-export const values as well
4
- export { LANES, AGENT_NAMES, SEVERITY_LEVELS, AGENT_RESULT_STATUSES, TIMELINE_EVENT_TYPES, EVENT_SEVERITY_LEVELS, USER_CHOICE_OPTIONS, MANDATORY_AGENT_NAMES, } from './orchestration.constants.js';
3
+ // WU-2717 (INIT-058 prep-E): Shim — authoritative types moved to pack.
4
+ export * from '@lumenflow/packs-software-delivery/domain/orchestration.types';
5
5
  //# sourceMappingURL=orchestration.types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"orchestration.types.js","sourceRoot":"","sources":["../../src/domain/orchestration.types.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,yCAAyC;AAsCzC,iCAAiC;AACjC,OAAO,EACL,KAAK,EACL,WAAW,EACX,eAAe,EACf,qBAAqB,EACrB,oBAAoB,EACpB,qBAAqB,EACrB,mBAAmB,EACnB,qBAAqB,GACtB,MAAM,8BAA8B,CAAC"}
1
+ {"version":3,"file":"orchestration.types.js","sourceRoot":"","sources":["../../src/domain/orchestration.types.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,yCAAyC;AACzC,uEAAuE;AACvE,cAAc,+DAA+D,CAAC"}
@@ -85,9 +85,9 @@ export declare const RecoveryActionType: {
85
85
  * Schema for recovery action types
86
86
  */
87
87
  export declare const RecoveryActionTypeSchema: z.ZodEnum<{
88
- reset: "reset";
89
88
  cleanup: "cleanup";
90
89
  resume: "resume";
90
+ reset: "reset";
91
91
  nuke: "nuke";
92
92
  }>;
93
93
  /**
@@ -114,9 +114,9 @@ export declare const RecoveryIssueSchema: z.ZodObject<{
114
114
  */
115
115
  export declare const RecoveryActionSchema: z.ZodObject<{
116
116
  type: z.ZodEnum<{
117
- reset: "reset";
118
117
  cleanup: "cleanup";
119
118
  resume: "resume";
119
+ reset: "reset";
120
120
  nuke: "nuke";
121
121
  }>;
122
122
  description: z.ZodString;
@@ -145,9 +145,9 @@ export declare const RecoveryAnalysisSchema: z.ZodObject<{
145
145
  }, z.core.$strip>>;
146
146
  actions: z.ZodArray<z.ZodObject<{
147
147
  type: z.ZodEnum<{
148
- reset: "reset";
149
148
  cleanup: "cleanup";
150
149
  resume: "resume";
150
+ reset: "reset";
151
151
  nuke: "nuke";
152
152
  }>;
153
153
  description: z.ZodString;
@@ -22,8 +22,8 @@ export declare const VALIDATION_ERROR_CODE_VALUES: readonly ["WRONG_LOCATION", "
22
22
  * Schema for validation error codes
23
23
  */
24
24
  export declare const ValidationErrorCodeSchema: z.ZodEnum<{
25
- WU_NOT_FOUND: "WU_NOT_FOUND";
26
25
  WRONG_LOCATION: "WRONG_LOCATION";
26
+ WU_NOT_FOUND: "WU_NOT_FOUND";
27
27
  WU_ALREADY_EXISTS: "WU_ALREADY_EXISTS";
28
28
  WRONG_WU_STATUS: "WRONG_WU_STATUS";
29
29
  LANE_OCCUPIED: "LANE_OCCUPIED";
@@ -52,8 +52,8 @@ export declare const PredicateSeveritySchema: z.ZodEnum<{
52
52
  */
53
53
  export declare const ValidationErrorSchema: z.ZodObject<{
54
54
  code: z.ZodEnum<{
55
- WU_NOT_FOUND: "WU_NOT_FOUND";
56
55
  WRONG_LOCATION: "WRONG_LOCATION";
56
+ WU_NOT_FOUND: "WU_NOT_FOUND";
57
57
  WU_ALREADY_EXISTS: "WU_ALREADY_EXISTS";
58
58
  WRONG_WU_STATUS: "WRONG_WU_STATUS";
59
59
  LANE_OCCUPIED: "LANE_OCCUPIED";
@@ -85,8 +85,8 @@ export declare const ValidationResultSchema: z.ZodObject<{
85
85
  valid: z.ZodBoolean;
86
86
  errors: z.ZodArray<z.ZodObject<{
87
87
  code: z.ZodEnum<{
88
- WU_NOT_FOUND: "WU_NOT_FOUND";
89
88
  WRONG_LOCATION: "WRONG_LOCATION";
89
+ WU_NOT_FOUND: "WU_NOT_FOUND";
90
90
  WU_ALREADY_EXISTS: "WU_ALREADY_EXISTS";
91
91
  WRONG_WU_STATUS: "WRONG_WU_STATUS";
92
92
  LANE_OCCUPIED: "LANE_OCCUPIED";
@@ -131,8 +131,8 @@ export declare const CommandDefinitionConfigSchema: z.ZodObject<{
131
131
  description: z.ZodString;
132
132
  requiredLocation: z.ZodNullable<z.ZodEnum<{
133
133
  unknown: "unknown";
134
- worktree: "worktree";
135
134
  main: "main";
135
+ worktree: "worktree";
136
136
  detached: "detached";
137
137
  }>>;
138
138
  requiredWuStatus: z.ZodNullable<z.ZodString>;
@@ -1,178 +1,9 @@
1
1
  /// <reference path="./types.d.ts" />
2
2
  /**
3
- * Typed error for process exit signals from library code.
4
- * WU-1538: Core modules throw this instead of calling process.exit directly.
5
- * CLI entry boundaries catch this and call process.exit with the exitCode.
3
+ * Error Handler Re-export shim (ADR-012, INIT-058 Layer 1, WU-2671).
6
4
  *
7
- * @class ProcessExitError
8
- * @extends Error
5
+ * Moved to `@lumenflow/kernel/primitives/error-handler`. This shim preserves
6
+ * the legacy import path for in-repo consumers until the barrel slim in Layer 7.
9
7
  */
10
- export declare class ProcessExitError extends Error {
11
- /** Process exit code to use when caught at CLI boundary */
12
- exitCode: number;
13
- /**
14
- * Create a process exit error
15
- * @param {string} message - Error message (already formatted by die() or caller)
16
- * @param {number} [exitCode=1] - Process exit code
17
- */
18
- constructor(message: string, exitCode?: number);
19
- }
20
- /**
21
- * Structured error class with error codes and details
22
- * @class WUError
23
- * @extends Error
24
- */
25
- export declare class WUError extends Error {
26
- /** Error code (e.g., 'WU_NOT_FOUND') */
27
- code: string;
28
- /** Additional error context */
29
- details: Record<string, unknown>;
30
- /** Suggested commands or actions to try (optional) */
31
- tryNext?: string[];
32
- /** Alias for details for agent-friendly access */
33
- context?: Record<string, unknown>;
34
- /**
35
- * Create a WU error
36
- * @param {string} code - Error code (e.g., 'WU_NOT_FOUND')
37
- * @param {string} message - Human-readable error message
38
- * @param {object} [details={}] - Additional error context
39
- */
40
- constructor(code: string, message: string, details?: Record<string, unknown>);
41
- }
42
- /**
43
- * Normalize unknown thrown values into Error instances.
44
- *
45
- * This is the strict-mode-safe boundary helper for `catch (err: unknown)`.
46
- * Consumers should call this before accessing `.message`.
47
- *
48
- * @param {unknown} error - Unknown thrown value
49
- * @param {string} [fallbackMessage='Unknown error'] - Message used when value has no message
50
- * @returns {Error} Normalized Error instance
51
- */
52
- export declare function toError(error: unknown, fallbackMessage?: string): Error;
53
- /**
54
- * Strict-safe helper for extracting error messages from unknown values.
55
- *
56
- * @param {unknown} error - Unknown thrown value
57
- * @param {string} [fallbackMessage='Unknown error'] - Message used when value has no message
58
- * @returns {string} Resolved error message
59
- */
60
- export declare function getErrorMessage(error: unknown, fallbackMessage?: string): string;
61
- /**
62
- * Throw typed error with formatted message (replaces process.exit calls)
63
- * Auto-detects script name from process.argv[1] - no string literals needed!
64
- *
65
- * WU-1538: Now throws ProcessExitError instead of calling process.exit directly.
66
- * The CLI entry boundary (runCLI) catches ProcessExitError and maps to process.exit.
67
- *
68
- * @param {string} message - Error message to log
69
- * @param {number} [exitCode=1] - Process exit code
70
- * @throws {ProcessExitError} Always throws with the formatted message and exit code
71
- * @example
72
- * die('WU file not found');
73
- * die('Gates failed', 2);
74
- */
75
- export declare function die(message: string, exitCode?: number): never;
76
- /**
77
- * Create a WUError instance (factory function)
78
- * @param {string} code - Error code
79
- * @param {string} message - Error message
80
- * @param {object} [details={}] - Error details
81
- * @returns {WUError} Structured error instance
82
- * @example
83
- * throw createError('WU_NOT_FOUND', 'WU-123 not found', { id: 'WU-123' });
84
- */
85
- export declare function createError(code: string, message: string, details?: Record<string, unknown>): WUError;
86
- /**
87
- * Options for creating agent-friendly errors
88
- */
89
- export interface AgentFriendlyErrorOptions {
90
- /** Array of suggested commands or actions to try */
91
- tryNext?: string[];
92
- /** Additional context information */
93
- context?: Record<string, unknown>;
94
- }
95
- /**
96
- * Create an agent-friendly error with try-next command suggestions
97
- * WU-1339: Agent-friendly error messages and hints (AX3)
98
- *
99
- * @param {string} code - Error code from ErrorCodes
100
- * @param {string} message - Human-readable error message
101
- * @param {AgentFriendlyErrorOptions} options - Options object
102
- * @returns {WUError} Error instance with tryNext property and context
103
- * @example
104
- * throw createAgentFriendlyError(
105
- * ErrorCodes.WU_NOT_FOUND,
106
- * 'WU-1234 not found',
107
- * {
108
- * tryNext: ['pnpm wu:create --id WU-1234 --lane "<lane>" --title "..."'],
109
- * context: { wuId: 'WU-1234' }
110
- * }
111
- * );
112
- */
113
- export declare function createAgentFriendlyError(code: string, message: string, options?: AgentFriendlyErrorOptions): WUError;
114
- /**
115
- * Common error codes for WU operations
116
- */
117
- export declare const ErrorCodes: {
118
- PROCESS_EXIT: string;
119
- WU_NOT_FOUND: string;
120
- WU_ALREADY_CLAIMED: string;
121
- WU_NOT_CLAIMED: string;
122
- INVALID_WU_ID: string;
123
- INVALID_LANE: string;
124
- GATES_FAILED: string;
125
- GIT_ERROR: string;
126
- VALIDATION_ERROR: string;
127
- FILE_NOT_FOUND: string;
128
- YAML_PARSE_ERROR: string;
129
- PARSE_ERROR: string;
130
- WORKTREE_ERROR: string;
131
- BRANCH_ERROR: string;
132
- STATE_ERROR: string;
133
- SECTION_NOT_FOUND: string;
134
- INTERNAL_ERROR: string;
135
- RECOVERY_ERROR: string;
136
- TRANSACTION_ERROR: string;
137
- LOCK_ERROR: string;
138
- INIT_NOT_FOUND: string;
139
- INIT_ALREADY_EXISTS: string;
140
- INVALID_INIT_ID: string;
141
- INVALID_SLUG: string;
142
- INVALID_PHASE: string;
143
- DEPENDENCY_CYCLE: string;
144
- MERGE_EXHAUSTION: string;
145
- REBASE_CONFLICT: string;
146
- DELEGATION_NOT_FOUND: string;
147
- DELEGATION_ALREADY_ESCALATED: string;
148
- SIGNAL_UNAVAILABLE: string;
149
- ID_GENERATION_FAILED: string;
150
- SCOPE_VIOLATION: string;
151
- TOOL_ALREADY_REGISTERED: string;
152
- INVALID_ARGUMENT: string;
153
- DEPRECATED_API: string;
154
- CONFIG_ERROR: string;
155
- TEMPLATE_VALIDATION_ERROR: string;
156
- INVARIANT_ERROR: string;
157
- RETRY_EXHAUSTION: string;
158
- PREFLIGHT_ERROR: string;
159
- INVALID_DURATION: string;
160
- NODE_NOT_FOUND: string;
161
- SESSION_ERROR: string;
162
- ALREADY_EXISTS: string;
163
- COMMAND_EXECUTION_FAILED: string;
164
- PACK_ALREADY_EXISTS: string;
165
- CANCELLED_BY_USER: string;
166
- REGISTRY_UPLOAD_FAILED: string;
167
- WORKSPACE_NOT_FOUND: string;
168
- WORKSPACE_MALFORMED: string;
169
- ORPHAN_WU_ERROR: string;
170
- REPAIR_FAILED: string;
171
- ONBOARD_FAILED: string;
172
- DIRECTORY_NOT_EMPTY: string;
173
- AMBIGUOUS_MATCH: string;
174
- STRING_NOT_FOUND: string;
175
- FILE_SIZE_EXCEEDED: string;
176
- PARENT_DIR_NOT_FOUND: string;
177
- };
8
+ export * from '@lumenflow/kernel/primitives/error-handler';
178
9
  //# sourceMappingURL=error-handler.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"error-handler.d.ts","sourceRoot":"","sources":["../src/error-handler.ts"],"names":[],"mappings":"AAsCA;;;;;;;GAOG;AACH,qBAAa,gBAAiB,SAAQ,KAAK;IACzC,2DAA2D;IAC3D,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;;OAIG;gBACS,OAAO,EAAE,MAAM,EAAE,QAAQ,SAAI;CAU1C;AAED;;;;GAIG;AACH,qBAAa,OAAQ,SAAQ,KAAK;IAChC,wCAAwC;IACxC,IAAI,EAAE,MAAM,CAAC;IACb,+BAA+B;IAC/B,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACjC,sDAAsD;IACtD,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,kDAAkD;IAClD,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAElC;;;;;OAKG;gBACS,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,GAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAM;CAWjF;AAED;;;;;;;;;GASG;AACH,wBAAgB,OAAO,CAAC,KAAK,EAAE,OAAO,EAAE,eAAe,SAAwB,GAAG,KAAK,CActF;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,EAAE,eAAe,SAAwB,GAAG,MAAM,CAE/F;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,SAAI,GAAG,KAAK,CAQxD;AAED;;;;;;;;GAQG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,GAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAM,WAE/F;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC,oDAAoD;IACpD,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,qCAAqC;IACrC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACnC;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,wBAAwB,CACtC,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,yBAA8B,WAexC;AAED;;GAEG;AACH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoEtB,CAAC"}
1
+ {"version":3,"file":"error-handler.d.ts","sourceRoot":"","sources":["../src/error-handler.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AAEH,cAAc,4CAA4C,CAAC"}
@@ -1,250 +1,10 @@
1
1
  // Copyright (c) 2026 Hellmai Ltd
2
2
  // SPDX-License-Identifier: AGPL-3.0-only
3
3
  /**
4
- * @file error-handler.ts
5
- * @description Structured error handling with error codes
6
- * WU-1082: Extract shared utilities (eliminate die() duplication)
7
- * WU-1006: Library-First - use path.basename() instead of manual split
4
+ * Error Handler — Re-export shim (ADR-012, INIT-058 Layer 1, WU-2671).
8
5
  *
9
- * Replaces die() function in:
10
- * - tools/wu-claim.ts
11
- * - tools/wu-done.ts
12
- * - tools/wu-block.ts
13
- * - tools/wu-unblock.ts
14
- * - tools/wu-create.ts
15
- * - tools/wu-cleanup.ts
16
- * - tools/gates-pre-commit.ts
17
- * - tools/validate.ts
18
- * - tools/guard-worktree-commit.ts
6
+ * Moved to `@lumenflow/kernel/primitives/error-handler`. This shim preserves
7
+ * the legacy import path for in-repo consumers until the barrel slim in Layer 7.
19
8
  */
20
- import path from 'node:path';
21
- const UNKNOWN_ERROR_MESSAGE = 'Unknown error';
22
- function hasMessage(value) {
23
- return (typeof value === 'object' &&
24
- value !== null &&
25
- 'message' in value &&
26
- typeof value.message === 'string');
27
- }
28
- /**
29
- * Typed error for process exit signals from library code.
30
- * WU-1538: Core modules throw this instead of calling process.exit directly.
31
- * CLI entry boundaries catch this and call process.exit with the exitCode.
32
- *
33
- * @class ProcessExitError
34
- * @extends Error
35
- */
36
- export class ProcessExitError extends Error {
37
- /** Process exit code to use when caught at CLI boundary */
38
- exitCode;
39
- /**
40
- * Create a process exit error
41
- * @param {string} message - Error message (already formatted by die() or caller)
42
- * @param {number} [exitCode=1] - Process exit code
43
- */
44
- constructor(message, exitCode = 1) {
45
- super(message);
46
- this.name = 'ProcessExitError';
47
- this.exitCode = exitCode;
48
- // Maintains proper stack trace for where error was thrown (V8 only)
49
- if (Error.captureStackTrace) {
50
- Error.captureStackTrace(this, ProcessExitError);
51
- }
52
- }
53
- }
54
- /**
55
- * Structured error class with error codes and details
56
- * @class WUError
57
- * @extends Error
58
- */
59
- export class WUError extends Error {
60
- /** Error code (e.g., 'WU_NOT_FOUND') */
61
- code;
62
- /** Additional error context */
63
- details;
64
- /** Suggested commands or actions to try (optional) */
65
- tryNext;
66
- /** Alias for details for agent-friendly access */
67
- context;
68
- /**
69
- * Create a WU error
70
- * @param {string} code - Error code (e.g., 'WU_NOT_FOUND')
71
- * @param {string} message - Human-readable error message
72
- * @param {object} [details={}] - Additional error context
73
- */
74
- constructor(code, message, details = {}) {
75
- super(message);
76
- this.name = 'WUError';
77
- this.code = code;
78
- this.details = details;
79
- // Maintains proper stack trace for where error was thrown (V8 only)
80
- if (Error.captureStackTrace) {
81
- Error.captureStackTrace(this, WUError);
82
- }
83
- }
84
- }
85
- /**
86
- * Normalize unknown thrown values into Error instances.
87
- *
88
- * This is the strict-mode-safe boundary helper for `catch (err: unknown)`.
89
- * Consumers should call this before accessing `.message`.
90
- *
91
- * @param {unknown} error - Unknown thrown value
92
- * @param {string} [fallbackMessage='Unknown error'] - Message used when value has no message
93
- * @returns {Error} Normalized Error instance
94
- */
95
- export function toError(error, fallbackMessage = UNKNOWN_ERROR_MESSAGE) {
96
- if (error instanceof Error) {
97
- return error;
98
- }
99
- if (typeof error === 'string' && error.length > 0) {
100
- return new Error(error);
101
- }
102
- if (hasMessage(error)) {
103
- return new Error(error.message);
104
- }
105
- return new Error(fallbackMessage);
106
- }
107
- /**
108
- * Strict-safe helper for extracting error messages from unknown values.
109
- *
110
- * @param {unknown} error - Unknown thrown value
111
- * @param {string} [fallbackMessage='Unknown error'] - Message used when value has no message
112
- * @returns {string} Resolved error message
113
- */
114
- export function getErrorMessage(error, fallbackMessage = UNKNOWN_ERROR_MESSAGE) {
115
- return toError(error, fallbackMessage).message;
116
- }
117
- /**
118
- * Throw typed error with formatted message (replaces process.exit calls)
119
- * Auto-detects script name from process.argv[1] - no string literals needed!
120
- *
121
- * WU-1538: Now throws ProcessExitError instead of calling process.exit directly.
122
- * The CLI entry boundary (runCLI) catches ProcessExitError and maps to process.exit.
123
- *
124
- * @param {string} message - Error message to log
125
- * @param {number} [exitCode=1] - Process exit code
126
- * @throws {ProcessExitError} Always throws with the formatted message and exit code
127
- * @example
128
- * die('WU file not found');
129
- * die('Gates failed', 2);
130
- */
131
- export function die(message, exitCode = 1) {
132
- // Auto-detect script name from process.argv[1] (eliminates string literal duplication)
133
- // WU-1006: Use path.basename() instead of manual split (Library-First principle)
134
- const scriptPath = process.argv[1] || 'unknown';
135
- const scriptName = path.basename(scriptPath, '.js');
136
- const formattedMessage = `[${scriptName}] ${message}`;
137
- console.error(formattedMessage);
138
- throw new ProcessExitError(formattedMessage, exitCode);
139
- }
140
- /**
141
- * Create a WUError instance (factory function)
142
- * @param {string} code - Error code
143
- * @param {string} message - Error message
144
- * @param {object} [details={}] - Error details
145
- * @returns {WUError} Structured error instance
146
- * @example
147
- * throw createError('WU_NOT_FOUND', 'WU-123 not found', { id: 'WU-123' });
148
- */
149
- export function createError(code, message, details = {}) {
150
- return new WUError(code, message, details);
151
- }
152
- /**
153
- * Create an agent-friendly error with try-next command suggestions
154
- * WU-1339: Agent-friendly error messages and hints (AX3)
155
- *
156
- * @param {string} code - Error code from ErrorCodes
157
- * @param {string} message - Human-readable error message
158
- * @param {AgentFriendlyErrorOptions} options - Options object
159
- * @returns {WUError} Error instance with tryNext property and context
160
- * @example
161
- * throw createAgentFriendlyError(
162
- * ErrorCodes.WU_NOT_FOUND,
163
- * 'WU-1234 not found',
164
- * {
165
- * tryNext: ['pnpm wu:create --id WU-1234 --lane "<lane>" --title "..."'],
166
- * context: { wuId: 'WU-1234' }
167
- * }
168
- * );
169
- */
170
- export function createAgentFriendlyError(code, message, options = {}) {
171
- const { tryNext, context = {} } = options;
172
- const error = createError(code, message, context);
173
- // Add tryNext suggestions if provided
174
- if (tryNext && Array.isArray(tryNext) && tryNext.length > 0) {
175
- error.tryNext = tryNext;
176
- }
177
- // Expose details as context for agent-friendly access
178
- // (WUError stores context in details property, but we expose it as context for clarity)
179
- error.context = error.details;
180
- return error;
181
- }
182
- /**
183
- * Common error codes for WU operations
184
- */
185
- export const ErrorCodes = {
186
- PROCESS_EXIT: 'PROCESS_EXIT', // WU-1538: Typed exit signal from library code
187
- WU_NOT_FOUND: 'WU_NOT_FOUND',
188
- WU_ALREADY_CLAIMED: 'WU_ALREADY_CLAIMED',
189
- WU_NOT_CLAIMED: 'WU_NOT_CLAIMED',
190
- INVALID_WU_ID: 'INVALID_WU_ID',
191
- INVALID_LANE: 'INVALID_LANE',
192
- GATES_FAILED: 'GATES_FAILED',
193
- GIT_ERROR: 'GIT_ERROR',
194
- VALIDATION_ERROR: 'VALIDATION_ERROR',
195
- FILE_NOT_FOUND: 'FILE_NOT_FOUND',
196
- YAML_PARSE_ERROR: 'YAML_PARSE_ERROR',
197
- PARSE_ERROR: 'PARSE_ERROR',
198
- WORKTREE_ERROR: 'WORKTREE_ERROR',
199
- BRANCH_ERROR: 'BRANCH_ERROR',
200
- STATE_ERROR: 'STATE_ERROR',
201
- SECTION_NOT_FOUND: 'SECTION_NOT_FOUND',
202
- INTERNAL_ERROR: 'INTERNAL_ERROR',
203
- RECOVERY_ERROR: 'RECOVERY_ERROR',
204
- TRANSACTION_ERROR: 'TRANSACTION_ERROR', // WU-1369: Atomic transaction errors
205
- LOCK_ERROR: 'LOCK_ERROR', // WU-1747: Merge lock errors
206
- // Initiative system error codes (WU-1247)
207
- INIT_NOT_FOUND: 'INIT_NOT_FOUND',
208
- INIT_ALREADY_EXISTS: 'INIT_ALREADY_EXISTS',
209
- INVALID_INIT_ID: 'INVALID_INIT_ID',
210
- INVALID_SLUG: 'INVALID_SLUG',
211
- INVALID_PHASE: 'INVALID_PHASE',
212
- DEPENDENCY_CYCLE: 'DEPENDENCY_CYCLE',
213
- // WU-2116: Structured error codes for migrated throw new Error() sites
214
- MERGE_EXHAUSTION: 'MERGE_EXHAUSTION',
215
- REBASE_CONFLICT: 'REBASE_CONFLICT',
216
- DELEGATION_NOT_FOUND: 'DELEGATION_NOT_FOUND',
217
- DELEGATION_ALREADY_ESCALATED: 'DELEGATION_ALREADY_ESCALATED',
218
- SIGNAL_UNAVAILABLE: 'SIGNAL_UNAVAILABLE',
219
- ID_GENERATION_FAILED: 'ID_GENERATION_FAILED',
220
- SCOPE_VIOLATION: 'SCOPE_VIOLATION',
221
- TOOL_ALREADY_REGISTERED: 'TOOL_ALREADY_REGISTERED',
222
- INVALID_ARGUMENT: 'INVALID_ARGUMENT',
223
- DEPRECATED_API: 'DEPRECATED_API',
224
- CONFIG_ERROR: 'CONFIG_ERROR',
225
- TEMPLATE_VALIDATION_ERROR: 'TEMPLATE_VALIDATION_ERROR',
226
- INVARIANT_ERROR: 'INVARIANT_ERROR',
227
- RETRY_EXHAUSTION: 'RETRY_EXHAUSTION',
228
- PREFLIGHT_ERROR: 'PREFLIGHT_ERROR',
229
- INVALID_DURATION: 'INVALID_DURATION',
230
- // WU-2118: Structured error codes for memory/agent/mcp package migrations
231
- NODE_NOT_FOUND: 'NODE_NOT_FOUND',
232
- SESSION_ERROR: 'SESSION_ERROR',
233
- ALREADY_EXISTS: 'ALREADY_EXISTS',
234
- // WU-2117: Structured error codes for CLI throw new Error() migration
235
- COMMAND_EXECUTION_FAILED: 'COMMAND_EXECUTION_FAILED',
236
- PACK_ALREADY_EXISTS: 'PACK_ALREADY_EXISTS',
237
- CANCELLED_BY_USER: 'CANCELLED_BY_USER',
238
- REGISTRY_UPLOAD_FAILED: 'REGISTRY_UPLOAD_FAILED',
239
- WORKSPACE_NOT_FOUND: 'WORKSPACE_NOT_FOUND',
240
- WORKSPACE_MALFORMED: 'WORKSPACE_MALFORMED',
241
- ORPHAN_WU_ERROR: 'ORPHAN_WU_ERROR',
242
- REPAIR_FAILED: 'REPAIR_FAILED',
243
- ONBOARD_FAILED: 'ONBOARD_FAILED',
244
- DIRECTORY_NOT_EMPTY: 'DIRECTORY_NOT_EMPTY',
245
- AMBIGUOUS_MATCH: 'AMBIGUOUS_MATCH',
246
- STRING_NOT_FOUND: 'STRING_NOT_FOUND',
247
- FILE_SIZE_EXCEEDED: 'FILE_SIZE_EXCEEDED',
248
- PARENT_DIR_NOT_FOUND: 'PARENT_DIR_NOT_FOUND',
249
- };
9
+ export * from '@lumenflow/kernel/primitives/error-handler';
250
10
  //# sourceMappingURL=error-handler.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"error-handler.js","sourceRoot":"","sources":["../src/error-handler.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,MAAM,qBAAqB,GAAG,eAAe,CAAC;AAM9C,SAAS,UAAU,CAAC,KAAc;IAChC,OAAO,CACL,OAAO,KAAK,KAAK,QAAQ;QACzB,KAAK,KAAK,IAAI;QACd,SAAS,IAAI,KAAK;QAClB,OAAQ,KAA0B,CAAC,OAAO,KAAK,QAAQ,CACxD,CAAC;AACJ,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,OAAO,gBAAiB,SAAQ,KAAK;IACzC,2DAA2D;IAC3D,QAAQ,CAAS;IAEjB;;;;OAIG;IACH,YAAY,OAAe,EAAE,QAAQ,GAAG,CAAC;QACvC,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,kBAAkB,CAAC;QAC/B,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QAEzB,oEAAoE;QACpE,IAAI,KAAK,CAAC,iBAAiB,EAAE,CAAC;YAC5B,KAAK,CAAC,iBAAiB,CAAC,IAAI,EAAE,gBAAgB,CAAC,CAAC;QAClD,CAAC;IACH,CAAC;CACF;AAED;;;;GAIG;AACH,MAAM,OAAO,OAAQ,SAAQ,KAAK;IAChC,wCAAwC;IACxC,IAAI,CAAS;IACb,+BAA+B;IAC/B,OAAO,CAA0B;IACjC,sDAAsD;IACtD,OAAO,CAAY;IACnB,kDAAkD;IAClD,OAAO,CAA2B;IAElC;;;;;OAKG;IACH,YAAY,IAAY,EAAE,OAAe,EAAE,UAAmC,EAAE;QAC9E,KAAK,CAAC,OA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IAClC,aAAa,EAAE,eAAe;IAC9B,cAAc,EAAE,gBAAgB;IAChC,mBAAmB,EAAE,qBAAqB;IAC1C,eAAe,EAAE,iBAAiB;IAClC,gBAAgB,EAAE,kBAAkB;IACpC,kBAAkB,EAAE,oBAAoB;IACxC,oBAAoB,EAAE,sBAAsB;CAC7C,CAAC"}
1
+ {"version":3,"file":"error-handler.js","sourceRoot":"","sources":["../src/error-handler.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,yCAAyC;AAEzC;;;;;GAKG;AAEH,cAAc,4CAA4C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"file-classifiers.d.ts","sourceRoot":"","sources":["../src/file-classifiers.ts"],"names":[],"mappings":";AA2BA;;;;;GAKG;AACH,wBAAgB,mBAAmB,CACjC,OAAO,GAAE;IACP,WAAW,CAAC,EAAE,MAAM,CAAC;CACjB,GACL,SAAS,MAAM,EAAE,CAOnB;AAED;;;GAGG;AACH,QAAA,MAAM,kBAAkB,mBAMtB,CAAC;AAEH;;;;;;;;;;;;GAYG;AACH,wBAAgB,UAAU,CAAC,QAAQ,EAAE,MAAM,WAO1C;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,WAO9C;AAWD;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,MAAM,WAqBnD;AAGD,OAAO,EAAE,kBAAkB,EAAE,CAAC"}
1
+ {"version":3,"file":"file-classifiers.d.ts","sourceRoot":"","sources":["../src/file-classifiers.ts"],"names":[],"mappings":";AA+CA;;;;;GAKG;AACH,wBAAgB,mBAAmB,CACjC,OAAO,GAAE;IACP,WAAW,CAAC,EAAE,MAAM,CAAC;CACjB,GACL,SAAS,MAAM,EAAE,CAOnB;AAED;;;GAGG;AACH,QAAA,MAAM,kBAAkB,mBAMtB,CAAC;AAEH;;;;;;;;;;;;GAYG;AACH,wBAAgB,UAAU,CAAC,QAAQ,EAAE,MAAM,WAO1C;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,WAO9C;AAWD;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,MAAM,WA6BnD;AAGD,OAAO,EAAE,kBAAkB,EAAE,CAAC"}
@@ -15,6 +15,25 @@
15
15
  */
16
16
  import { getConfig } from './lumenflow-config.js';
17
17
  const MARKDOWN_TEMPLATE_SUFFIXES = ['.md.template', '.mdx.template'];
18
+ /**
19
+ * WU-2669: Built-in Starlight documentation paths.
20
+ *
21
+ * The Software Delivery Pack ships a Starlight docs site under
22
+ * apps/docs/. The public content source tree at
23
+ * apps/docs/src/content/docs/** and the Astro config file at
24
+ * apps/docs/astro.config.mjs are documentation artefacts, not runtime
25
+ * code, but they sit outside the configurable docs-only prefixes
26
+ * (docs/, ai/, .claude/, memory-bank/). Without this allowlist
27
+ * extension, every Starlight-touching WU has to type-swap from
28
+ * documentation to refactor/chore to pass gate preflight
29
+ * (precedent: WU-2633, WU-2644, WU-2648, WU-2652).
30
+ *
31
+ * These defaults are additive to the config-driven prefixes; projects
32
+ * with a different docs layout can still override via
33
+ * software_delivery.directories.* without touching this list.
34
+ */
35
+ const STARLIGHT_CONTENT_PREFIX = 'apps/docs/src/content/docs/';
36
+ const STARLIGHT_ASTRO_CONFIG = 'apps/docs/astro.config.mjs';
18
37
  function ensureTrailingSlash(pathValue) {
19
38
  const normalized = pathValue.replace(/\\/g, '/').trim();
20
39
  if (!normalized) {
@@ -121,6 +140,13 @@ export function isDocumentationPath(filePath) {
121
140
  return true;
122
141
  }
123
142
  }
143
+ // WU-2669: Built-in Starlight content tree and Astro config are
144
+ // documentation artefacts. Declared as defaults so projects using
145
+ // the Software Delivery Pack's Starlight docs site do not have to
146
+ // type-swap every documentation WU.
147
+ if (path.startsWith(STARLIGHT_CONTENT_PREFIX) || path === STARLIGHT_ASTRO_CONFIG) {
148
+ return true;
149
+ }
124
150
  // Any markdown doc or markdown template doc is documentation. Mirrors
125
151
  // docs-path-validator.ts so the preflight never rejects a path the
126
152
  // commit-time gate would accept.
@@ -1 +1 @@
1
- {"version":3,"file":"file-classifiers.js","sourceRoot":"","sources":["../src/file-classifiers.ts"],"names":[],"mappings":";AACA,iCAAiC;AACjC,yCAAyC;AACzC;;;;;;;;;;;GAWG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,MAAM,0BAA0B,GAAG,CAAC,cAAc,EAAE,eAAe,CAAU,CAAC;AAE9E,SAAS,mBAAmB,CAAC,SAAiB;IAC5C,MAAM,UAAU,GAAG,SAAS,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC;IACxD,IAAI,CAAC,UAAU,EAAE,CAAC;QAChB,OAAO,UAAU,CAAC;IACpB,CAAC;IACD,OAAO,UAAU,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,GAAG,UAAU,GAAG,CAAC;AAClE,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,mBAAmB,CACjC,UAEI,EAAE;IAEN,MAAM,WAAW,GAAG,SAAS,CAAC,EAAE,WAAW,EAAE,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC,WAAW,CAAC;IAChF,MAAM,QAAQ,GAAG,CAAC,WAAW,CAAC,IAAI,EAAE,WAAW,CAAC,EAAE,EAAE,WAAW,CAAC,MAAM,EAAE,WAAW,CAAC,UAAU,CAAC;SAC5F,GAAG,CAAC,mBAAmB,CAAC;SACxB,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IAEzC,OAAO,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;AACtD,CAAC;AAED;;;GAGG;AACH,MAAM,kBAAkB,GAA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