@lumenflow/cli 4.20.2 → 4.22.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 (131) hide show
  1. package/README.md +30 -27
  2. package/dist/config-set.js +54 -36
  3. package/dist/config-set.js.map +1 -1
  4. package/dist/delegation-list.js +86 -53
  5. package/dist/delegation-list.js.map +1 -1
  6. package/dist/gate-conditional.js +476 -0
  7. package/dist/gate-conditional.js.map +1 -0
  8. package/dist/gates-plan-resolvers.js +24 -1
  9. package/dist/gates-plan-resolvers.js.map +1 -1
  10. package/dist/init-templates.js +13 -0
  11. package/dist/init-templates.js.map +1 -1
  12. package/dist/initiative-create.js +1 -1
  13. package/dist/orchestrate-init-status.js +24 -31
  14. package/dist/orchestrate-init-status.js.map +1 -1
  15. package/dist/orchestrate-initiative.js +31 -2
  16. package/dist/orchestrate-initiative.js.map +1 -1
  17. package/dist/orchestrate-monitor.js +433 -1
  18. package/dist/orchestrate-monitor.js.map +1 -1
  19. package/dist/public-manifest.js +11 -4
  20. package/dist/public-manifest.js.map +1 -1
  21. package/package.json +9 -8
  22. package/packs/agent-runtime/.turbo/turbo-build.log +1 -1
  23. package/packs/agent-runtime/package.json +1 -1
  24. package/packs/sidekick/.turbo/turbo-build.log +1 -1
  25. package/packs/sidekick/package.json +1 -1
  26. package/packs/software-delivery/.turbo/turbo-build.log +1 -1
  27. package/packs/software-delivery/package.json +1 -1
  28. package/templates/core/LUMENFLOW.md.template +6 -3
  29. package/templates/core/ai/onboarding/first-wu-mistakes.md.template +2 -2
  30. package/templates/core/ai/onboarding/initiative-orchestration.md.template +83 -27
  31. package/templates/core/ai/onboarding/quick-ref-commands.md.template +9 -5
  32. package/templates/core/ai/onboarding/starting-prompt.md.template +1 -1
  33. package/templates/core/ai/onboarding/vendor-support.md.template +13 -0
  34. package/dist/chunk-2D2VOCA4.js +0 -37
  35. package/dist/chunk-2D5KFYGX.js +0 -284
  36. package/dist/chunk-2GXVIN57.js +0 -14072
  37. package/dist/chunk-2MQ7HZWZ.js +0 -26
  38. package/dist/chunk-2UFQ3A3C.js +0 -643
  39. package/dist/chunk-3RG5ZIWI.js +0 -10
  40. package/dist/chunk-4N74J3UT.js +0 -15
  41. package/dist/chunk-5GTOXFYR.js +0 -392
  42. package/dist/chunk-5VY6MQMC.js +0 -240
  43. package/dist/chunk-67XVPMRY.js +0 -1297
  44. package/dist/chunk-6HO4GWJE.js +0 -164
  45. package/dist/chunk-6W5XHWYV.js +0 -1890
  46. package/dist/chunk-6X4EMYJQ.js +0 -64
  47. package/dist/chunk-6XYXI2NQ.js +0 -772
  48. package/dist/chunk-7ANSOV6Q.js +0 -285
  49. package/dist/chunk-A624LFLB.js +0 -1380
  50. package/dist/chunk-ADN5NHG4.js +0 -126
  51. package/dist/chunk-B7YJYJKG.js +0 -33
  52. package/dist/chunk-CCLHCPKG.js +0 -210
  53. package/dist/chunk-CK36VROC.js +0 -1584
  54. package/dist/chunk-D3UOFRSB.js +0 -81
  55. package/dist/chunk-DFR4DJBM.js +0 -230
  56. package/dist/chunk-DSYBDHYH.js +0 -79
  57. package/dist/chunk-DWMLTXKQ.js +0 -1176
  58. package/dist/chunk-E3REJTAJ.js +0 -28
  59. package/dist/chunk-EA3IVO64.js +0 -633
  60. package/dist/chunk-EK2AKZKD.js +0 -55
  61. package/dist/chunk-ELD7JTTT.js +0 -343
  62. package/dist/chunk-EX6TT2XI.js +0 -195
  63. package/dist/chunk-EXINSFZE.js +0 -82
  64. package/dist/chunk-EZ6ZBYBM.js +0 -510
  65. package/dist/chunk-FBKAPTJ2.js +0 -16
  66. package/dist/chunk-FVLV5RYH.js +0 -1118
  67. package/dist/chunk-GDNSBQVK.js +0 -2485
  68. package/dist/chunk-GPQHMBNN.js +0 -278
  69. package/dist/chunk-GTFJB67L.js +0 -68
  70. package/dist/chunk-HANJXVKW.js +0 -1127
  71. package/dist/chunk-HEVS5YLD.js +0 -269
  72. package/dist/chunk-HMEVZKPQ.js +0 -9
  73. package/dist/chunk-HRGSYNLM.js +0 -3511
  74. package/dist/chunk-ISZR5N4K.js +0 -60
  75. package/dist/chunk-J6SUPR2C.js +0 -226
  76. package/dist/chunk-JERYVEIZ.js +0 -244
  77. package/dist/chunk-JHHWGL2N.js +0 -87
  78. package/dist/chunk-JONWQUB5.js +0 -775
  79. package/dist/chunk-K2DIWWDM.js +0 -1766
  80. package/dist/chunk-KY4PGL5V.js +0 -969
  81. package/dist/chunk-L737LQ4C.js +0 -1285
  82. package/dist/chunk-LFTWYIB2.js +0 -497
  83. package/dist/chunk-LV47RFNJ.js +0 -41
  84. package/dist/chunk-MKSAITI7.js +0 -15
  85. package/dist/chunk-MZ7RKIX4.js +0 -212
  86. package/dist/chunk-NAP6CFSO.js +0 -84
  87. package/dist/chunk-ND6MY37M.js +0 -16
  88. package/dist/chunk-NMG736UR.js +0 -683
  89. package/dist/chunk-NRAXROED.js +0 -32
  90. package/dist/chunk-NRIZR3A7.js +0 -690
  91. package/dist/chunk-NX43BG3M.js +0 -233
  92. package/dist/chunk-O645XLSI.js +0 -297
  93. package/dist/chunk-OMJD6A3S.js +0 -235
  94. package/dist/chunk-QB6SJD4T.js +0 -430
  95. package/dist/chunk-QFSTL4J3.js +0 -276
  96. package/dist/chunk-QLGDFMFX.js +0 -212
  97. package/dist/chunk-RIAAGL2E.js +0 -13
  98. package/dist/chunk-RWO5XMZ6.js +0 -86
  99. package/dist/chunk-RXRKBBSM.js +0 -149
  100. package/dist/chunk-RZOZMML6.js +0 -363
  101. package/dist/chunk-U7I7FS7T.js +0 -113
  102. package/dist/chunk-UI42RODY.js +0 -717
  103. package/dist/chunk-UTVMVSCO.js +0 -519
  104. package/dist/chunk-V6OJGLBA.js +0 -1746
  105. package/dist/chunk-W2JHVH7D.js +0 -152
  106. package/dist/chunk-WD3Y7VQN.js +0 -280
  107. package/dist/chunk-WOCTQ5MS.js +0 -303
  108. package/dist/chunk-WZR3ZUNN.js +0 -696
  109. package/dist/chunk-XGI665H7.js +0 -150
  110. package/dist/chunk-XKY65P2T.js +0 -304
  111. package/dist/chunk-Y4CQZY65.js +0 -57
  112. package/dist/chunk-YFEXKLVE.js +0 -194
  113. package/dist/chunk-YHO3HS5X.js +0 -287
  114. package/dist/chunk-YLS7AZSX.js +0 -738
  115. package/dist/chunk-ZE473AO6.js +0 -49
  116. package/dist/chunk-ZF747T3O.js +0 -644
  117. package/dist/chunk-ZHCZHZH3.js +0 -43
  118. package/dist/chunk-ZZNZX2XY.js +0 -87
  119. package/dist/constants-7QAP3VQ4.js +0 -23
  120. package/dist/dist-IY3UUMWK.js +0 -33
  121. package/dist/invariants-runner-W5RGHCSU.js +0 -27
  122. package/dist/lane-lock-6J36HD5O.js +0 -35
  123. package/dist/mem-checkpoint-core-EANG2GVN.js +0 -14
  124. package/dist/mem-signal-core-2LZ2WYHW.js +0 -19
  125. package/dist/memory-store-OLB5FO7K.js +0 -18
  126. package/dist/service-6BYCOCO5.js +0 -13
  127. package/dist/spawn-policy-resolver-NTSZYQ6R.js +0 -17
  128. package/dist/spawn-task-builder-R4E2BHSW.js +0 -22
  129. package/dist/wu-done-pr-WLFFFEPJ.js +0 -25
  130. package/dist/wu-done-validation-3J5E36FE.js +0 -30
  131. package/dist/wu-duplicate-id-detector-5S7JHELK.js +0 -232
@@ -1,164 +0,0 @@
1
- import {
2
- getProjectRoot,
3
- toKebab
4
- } from "./chunk-DWMLTXKQ.js";
5
- import {
6
- getConfig,
7
- getProjectRoot as getProjectRoot2
8
- } from "./chunk-V6OJGLBA.js";
9
-
10
- // ../core/dist/wu-paths.js
11
- import * as path from "path";
12
- function resolveRepoRoot(absolutePath, depth) {
13
- let result = absolutePath;
14
- for (let i = 0; i < depth; i++) {
15
- result = path.dirname(result);
16
- }
17
- return result;
18
- }
19
- function computePathDepth(relativePath) {
20
- const normalized = relativePath.replace(/\\/g, "/");
21
- return normalized.split("/").filter(Boolean).length;
22
- }
23
- function getStateStoreDirFromBacklog(backlogPath) {
24
- const config = getConfig();
25
- const depth = computePathDepth(config.directories.backlogPath);
26
- const repoRoot = resolveRepoRoot(backlogPath, depth);
27
- return path.join(repoRoot, config.state.stateDir);
28
- }
29
- function createWuPaths(options = {}) {
30
- const config = getConfig({ projectRoot: options.projectRoot });
31
- return {
32
- /**
33
- * Get path to WU YAML file
34
- * @param id - WU ID (e.g., 'WU-123')
35
- * @returns Path to WU YAML file
36
- */
37
- WU: (id) => path.join(config.directories.wuDir, `${id}.yaml`),
38
- /**
39
- * Get path to WU directory
40
- * @returns Path to WU directory
41
- */
42
- WU_DIR: () => config.directories.wuDir,
43
- /**
44
- * Get path to status.md
45
- * @returns Path to status.md
46
- */
47
- STATUS: () => config.directories.statusPath,
48
- /**
49
- * Get path to backlog.md
50
- * @returns Path to backlog.md
51
- */
52
- BACKLOG: () => config.directories.backlogPath,
53
- /**
54
- * Get path to stamps directory
55
- * @returns Path to stamps directory
56
- */
57
- STAMPS_DIR: () => config.state.stampsDir,
58
- /**
59
- * Get path to WU done stamp file
60
- * @param id - WU ID (e.g., 'WU-123')
61
- * @returns Path to stamp file
62
- */
63
- STAMP: (id) => path.join(config.state.stampsDir, `${id}.done`),
64
- /**
65
- * Get path to state directory
66
- * @returns Path to state directory
67
- */
68
- STATE_DIR: () => config.state.stateDir,
69
- /**
70
- * Get path to initiatives directory
71
- * @returns Path to initiatives directory
72
- */
73
- INITIATIVES_DIR: () => config.directories.initiativesDir,
74
- /**
75
- * Get path to initiative YAML file
76
- * @param id - Initiative ID (e.g., 'INIT-001')
77
- * @returns Path to initiative YAML file
78
- */
79
- INITIATIVE: (id) => path.join(config.directories.initiativesDir, `${id}.yaml`),
80
- /**
81
- * Get path to worktrees directory
82
- * @returns Path to worktrees directory
83
- */
84
- WORKTREES_DIR: () => config.directories.worktrees,
85
- /**
86
- * Get path to a specific worktree directory
87
- * @param lane - Lane name (e.g., 'Framework: Core')
88
- * @param id - WU ID (e.g., 'WU-123')
89
- * @returns Path to worktree directory
90
- */
91
- WORKTREE: (lane, id) => path.join(config.directories.worktrees, `${toKebab(lane)}-${id.toLowerCase()}`),
92
- /**
93
- * Get path to plans directory
94
- * @returns Path to plans directory (WU-1301)
95
- */
96
- PLANS_DIR: () => config.directories.plansDir,
97
- /**
98
- * Get path to templates directory
99
- * @returns Path to templates directory (WU-1310)
100
- */
101
- TEMPLATES_DIR: () => config.directories.templatesDir,
102
- /**
103
- * Get path to onboarding directory
104
- * @returns Path to onboarding directory (WU-1310)
105
- */
106
- ONBOARDING_DIR: () => config.directories.onboardingDir,
107
- /**
108
- * Get path to LumenFlow complete guide
109
- * @returns Path to complete guide markdown
110
- */
111
- COMPLETE_GUIDE_PATH: () => config.directories.completeGuidePath,
112
- /**
113
- * Get path to onboarding quick reference commands
114
- * @returns Path to quick reference markdown
115
- */
116
- QUICK_REF_PATH: () => config.directories.quickRefPath,
117
- /**
118
- * Get path to onboarding starting prompt
119
- * @returns Path to starting prompt markdown
120
- */
121
- STARTING_PROMPT_PATH: () => config.directories.startingPromptPath,
122
- /**
123
- * Get path to WU sizing guide
124
- * @returns Path to sizing guide markdown
125
- */
126
- SIZING_GUIDE_PATH: () => config.directories.sizingGuidePath,
127
- /**
128
- * Get path to governance document
129
- * @returns Path to governance markdown
130
- */
131
- GOVERNANCE_PATH: () => config.directories.governancePath
132
- };
133
- }
134
- var WU_PATHS = createWuPaths();
135
- function defaultWorktreeFrom(doc) {
136
- if (!doc)
137
- return null;
138
- const lane = doc.lane;
139
- const id = doc.id;
140
- if (!lane || !id)
141
- return null;
142
- const laneStr = String(lane).trim();
143
- const idStr = String(id).trim();
144
- if (laneStr === "" || idStr === "")
145
- return null;
146
- return createWuPaths().WORKTREE(laneStr, idStr);
147
- }
148
- function resolveFromProjectRoot(relativePath, moduleUrl) {
149
- let projectRoot;
150
- try {
151
- projectRoot = getProjectRoot2();
152
- } catch {
153
- projectRoot = moduleUrl ? getProjectRoot(moduleUrl) : process.cwd();
154
- }
155
- return path.join(projectRoot, relativePath);
156
- }
157
-
158
- export {
159
- getStateStoreDirFromBacklog,
160
- createWuPaths,
161
- WU_PATHS,
162
- defaultWorktreeFrom,
163
- resolveFromProjectRoot
164
- };