@lumenflow/cli 3.18.0 → 3.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +44 -43
- package/dist/config-set.js +10 -1
- package/dist/config-set.js.map +1 -1
- package/dist/docs-sync.js +123 -6
- package/dist/docs-sync.js.map +1 -1
- package/dist/gate-co-change.js +28 -6
- package/dist/gate-co-change.js.map +1 -1
- package/dist/gates-runners.js +108 -12
- package/dist/gates-runners.js.map +1 -1
- package/dist/initiative-edit.js +8 -3
- package/dist/initiative-edit.js.map +1 -1
- package/dist/lumenflow-upgrade.js +50 -0
- package/dist/lumenflow-upgrade.js.map +1 -1
- package/dist/public-manifest.js +1 -1
- package/dist/public-manifest.js.map +1 -1
- package/dist/sync-templates.js +13 -0
- package/dist/sync-templates.js.map +1 -1
- package/dist/wu-block.js +10 -0
- package/dist/wu-block.js.map +1 -1
- package/dist/wu-claim-validation.js +3 -1
- package/dist/wu-claim-validation.js.map +1 -1
- package/dist/wu-claim.js +3 -1
- package/dist/wu-claim.js.map +1 -1
- package/dist/wu-done-memory-telemetry.js +5 -1
- package/dist/wu-done-memory-telemetry.js.map +1 -1
- package/dist/wu-done-ownership.js +6 -0
- package/dist/wu-done-ownership.js.map +1 -1
- package/dist/wu-edit-operations.js +4 -4
- package/dist/wu-edit-operations.js.map +1 -1
- package/dist/wu-prep.js +88 -13
- package/dist/wu-prep.js.map +1 -1
- package/dist/wu-recover.js +15 -0
- package/dist/wu-recover.js.map +1 -1
- package/dist/wu-release.js +10 -1
- package/dist/wu-release.js.map +1 -1
- package/dist/wu-spawn-prompt-builders.js +27 -2
- package/dist/wu-spawn-prompt-builders.js.map +1 -1
- package/dist/wu-state-mutation-ownership.js +136 -0
- package/dist/wu-state-mutation-ownership.js.map +1 -0
- package/dist/wu-unblock.js +10 -0
- package/dist/wu-unblock.js.map +1 -1
- package/package.json +111 -110
- package/packs/agent-runtime/.turbo/turbo-build.log +1 -1
- package/packs/agent-runtime/package.json +1 -1
- package/packs/sidekick/.turbo/turbo-build.log +1 -1
- package/packs/sidekick/package.json +1 -1
- package/packs/software-delivery/.turbo/turbo-build.log +1 -1
- package/packs/software-delivery/package.json +1 -1
- package/templates/core/AGENTS.md.template +157 -32
- package/templates/core/LUMENFLOW.md.template +44 -29
- package/templates/core/_frameworks/lumenflow/wu-sizing-guide.md.template +644 -0
- package/templates/core/ai/onboarding/agent-invocation-guide.md.template +5 -5
- package/templates/core/ai/onboarding/agent-safety-card.md.template +1 -0
- package/templates/core/ai/onboarding/docs-generation.md.template +94 -4
- package/templates/core/ai/onboarding/first-15-mins.md.template +1 -1
- package/templates/core/ai/onboarding/first-wu-mistakes.md.template +2 -1
- package/templates/core/ai/onboarding/initiative-orchestration.md.template +21 -21
- package/templates/core/ai/onboarding/quick-ref-commands.md.template +102 -95
- package/templates/core/ai/onboarding/release-process.md.template +12 -12
- package/templates/core/ai/onboarding/starting-prompt.md.template +31 -31
- package/templates/vendors/claude/.claude/skills/initiative-management/SKILL.md.template +2 -2
- package/templates/vendors/claude/.claude/skills/multi-agent-coordination/SKILL.md.template +2 -2
- package/templates/vendors/claude/.claude/skills/orchestration/SKILL.md.template +3 -3
|
@@ -124,6 +124,7 @@ cat {{DOCS_TASKS_PATH}}/wu/WU-XXXX.yaml
|
|
|
124
124
|
|
|
125
125
|
# 2. Claim the WU (creates isolated worktree)
|
|
126
126
|
pnpm wu:claim --id WU-XXXX --lane "Lane Name"
|
|
127
|
+
pnpm wu:brief --id WU-XXXX --client <client>
|
|
127
128
|
|
|
128
129
|
# 3. IMMEDIATELY cd to worktree (CRITICAL!)
|
|
129
130
|
cd worktrees/<lane>-wu-xxxx
|
|
@@ -152,6 +153,7 @@ cat {{DOCS_TASKS_PATH}}/wu/WU-XXXX.yaml
|
|
|
152
153
|
# 2. Claim in cloud mode (no worktree, sets claimed_mode: branch-pr)
|
|
153
154
|
pnpm wu:claim --id WU-XXXX --lane "Lane Name" --cloud
|
|
154
155
|
# Or: LUMENFLOW_CLOUD=1 pnpm wu:claim --id WU-XXXX --lane "Lane Name"
|
|
156
|
+
pnpm wu:brief --id WU-XXXX --client <client>
|
|
155
157
|
|
|
156
158
|
# 3. Work on the lane branch (lane/<lane>/wu-xxxx)
|
|
157
159
|
|
|
@@ -476,6 +478,8 @@ pnpm wu:done --id WU-XXX
|
|
|
476
478
|
|
|
477
479
|
Use `wu:brief` to create parallel sub-agent handoff prompts for complex WUs. Use `wu:delegate` when you also need explicit lineage recording.
|
|
478
480
|
|
|
481
|
+
**MANDATORY:** You **must** run `wu:brief` explicitly after `wu:claim`. While `wu:claim` auto-records a stub event (`claim-auto`), this stub does **not** satisfy the `wu:done` evidence gate (WU-2379). Only an explicit `wu:brief` run generates the handoff prompt, checks lane occupation, validates sizing, and records proper evidence. Without it, `wu:done` will block.
|
|
482
|
+
|
|
479
483
|
**Evidence recording:** `wu:brief` writes a checkpoint event to `.lumenflow/state/wu-events.jsonl` when run in a claimed workspace (worktree mode) or on the claimed lane branch (branch-pr/branch-only mode). This evidence is **required** — `wu:done` blocks feature/bug WUs without it (WU-2132). Running from an unrelated checkout/branch is side-effect-free (WU-2144). **Never delete or revert `wu-events.jsonl` entries** written by lifecycle commands — if evidence is accidentally lost, rerun `wu:brief` to recreate it.
|
|
480
484
|
|
|
481
485
|
### When to Use wu:brief
|
|
@@ -488,7 +492,7 @@ Use `wu:brief` to create parallel sub-agent handoff prompts for complex WUs. Use
|
|
|
488
492
|
### Choose the Correct Flow
|
|
489
493
|
|
|
490
494
|
- **Delegating to a sub-agent:** Run `wu:brief` (or `wu:delegate` for lineage), then pass the generated prompt to Task tool.
|
|
491
|
-
- **Implementing in current session:** Run `wu:brief --client <client>` to
|
|
495
|
+
- **Implementing in current session:** Run `wu:brief --client <client>` to satisfy evidence policy. It outputs full WU context and records evidence in a single step.
|
|
492
496
|
|
|
493
497
|
### How to Use wu:brief / wu:delegate
|
|
494
498
|
|
|
@@ -496,9 +500,6 @@ Use `wu:brief` to create parallel sub-agent handoff prompts for complex WUs. Use
|
|
|
496
500
|
# Generate a handoff prompt + evidence (no lineage side effect)
|
|
497
501
|
pnpm wu:brief --id WU-XXXX --client <client-type>
|
|
498
502
|
|
|
499
|
-
# Self-implementation: wu:brief always outputs full context AND records evidence
|
|
500
|
-
pnpm wu:brief --id WU-XXXX --client <client>
|
|
501
|
-
|
|
502
503
|
# Generate + record explicit delegation lineage
|
|
503
504
|
pnpm wu:delegate --id WU-XXXX --parent-wu WU-YYYY --client <client-type>
|
|
504
505
|
|
|
@@ -520,8 +521,7 @@ extra project commands, or client-specific overrides.
|
|
|
520
521
|
|
|
521
522
|
- New installs get the current defaults automatically.
|
|
522
523
|
- Existing installs get the runtime defaults after `pnpm lumenflow:upgrade --latest`.
|
|
523
|
-
- `
|
|
524
|
-
vendor assets. Use `pnpm docs:sync --vendor <type>` only for an extra targeted refresh.
|
|
524
|
+
- `lumenflow:upgrade` automatically syncs onboarding docs and vendor assets (no separate `docs:sync` step needed).
|
|
525
525
|
|
|
526
526
|
Default profiles:
|
|
527
527
|
|
|
@@ -550,22 +550,22 @@ Domain-specific commands must come from local configuration, not core framework
|
|
|
550
550
|
|
|
551
551
|
## WU Lifecycle Commands
|
|
552
552
|
|
|
553
|
-
| Command | Description | When to Use
|
|
554
|
-
| ---------------------------------------------- | ------------------------------------------------ |
|
|
555
|
-
| `pnpm wu:status --id WU-XXX` | Show WU state and valid commands | Check current state
|
|
556
|
-
| `pnpm wu:claim --id WU-XXX --lane "Lane"` | Claim WU and create worktree (default) | Start working (local)
|
|
557
|
-
| `pnpm wu:claim --id WU-XXX --lane "L" --cloud` | Claim WU in branch-pr mode (no worktree) | Start working (cloud)
|
|
558
|
-
| `pnpm wu:edit --id WU-XXX --field value` | Edit WU spec fields | Update notes/desc
|
|
559
|
-
| `pnpm wu:brief --id WU-XXX --client
|
|
560
|
-
| `pnpm wu:delegate --id WU-XXX --parent-wu P` | Generate prompt + record delegation | Auditable delegation flows
|
|
561
|
-
| `pnpm wu:prep --id WU-XXX` | Run gates in claimed workspace, prep completion | Before wu:done
|
|
562
|
-
| `pnpm wu:done --id WU-XXX` | Complete WU (merge or PR, cleanup) | After gates pass
|
|
563
|
-
| `pnpm wu:cleanup --id WU-XXX` | Post-merge cleanup (branch-pr) | After PR merge (cloud only)
|
|
564
|
-
| `pnpm wu:escalate --id WU-XXX` | Show or resolve escalation status | Escalation-triggered WUs
|
|
565
|
-
| `pnpm wu:escalate --resolve --id WU-XXX` | Resolve human escalation | Before wu:done (escalation)
|
|
566
|
-
| `pnpm wu:verify --id WU-XXX` | Verify WU completion (stamp, commit, clean tree) | After wu:done
|
|
567
|
-
| `pnpm wu:delete --id WU-XXX` | Delete WU spec and cleanup | Cancel stale/throwaway WUs
|
|
568
|
-
| `pnpm wu:recover --id WU-XXX` | Fix inconsistent WU state | When state is broken
|
|
553
|
+
| Command | Description | When to Use |
|
|
554
|
+
| ---------------------------------------------- | ------------------------------------------------ | --------------------------------- |
|
|
555
|
+
| `pnpm wu:status --id WU-XXX` | Show WU state and valid commands | Check current state |
|
|
556
|
+
| `pnpm wu:claim --id WU-XXX --lane "Lane"` | Claim WU and create worktree (default) | Start working (local) |
|
|
557
|
+
| `pnpm wu:claim --id WU-XXX --lane "L" --cloud` | Claim WU in branch-pr mode (no worktree) | Start working (cloud) |
|
|
558
|
+
| `pnpm wu:edit --id WU-XXX --field value` | Edit WU spec fields | Update notes/desc |
|
|
559
|
+
| `pnpm wu:brief --id WU-XXX --client X` | Generate handoff prompt + record evidence | Delegation or self-implementation |
|
|
560
|
+
| `pnpm wu:delegate --id WU-XXX --parent-wu P` | Generate prompt + record delegation | Auditable delegation flows |
|
|
561
|
+
| `pnpm wu:prep --id WU-XXX` | Run gates in claimed workspace, prep completion | Before wu:done |
|
|
562
|
+
| `pnpm wu:done --id WU-XXX` | Complete WU (merge or PR, cleanup) | After gates pass |
|
|
563
|
+
| `pnpm wu:cleanup --id WU-XXX` | Post-merge cleanup (branch-pr) | After PR merge (cloud only) |
|
|
564
|
+
| `pnpm wu:escalate --id WU-XXX` | Show or resolve escalation status | Escalation-triggered WUs |
|
|
565
|
+
| `pnpm wu:escalate --resolve --id WU-XXX` | Resolve human escalation | Before wu:done (escalation) |
|
|
566
|
+
| `pnpm wu:verify --id WU-XXX` | Verify WU completion (stamp, commit, clean tree) | After wu:done |
|
|
567
|
+
| `pnpm wu:delete --id WU-XXX` | Delete WU spec and cleanup | Cancel stale/throwaway WUs |
|
|
568
|
+
| `pnpm wu:recover --id WU-XXX` | Fix inconsistent WU state | When state is broken |
|
|
569
569
|
|
|
570
570
|
---
|
|
571
571
|
|
|
@@ -670,19 +670,19 @@ When initializing LumenFlow, use the `--client` flag to generate client-specific
|
|
|
670
670
|
pnpm add -D @lumenflow/cli
|
|
671
671
|
|
|
672
672
|
# Universal setup (AGENTS.md only)
|
|
673
|
-
pnpm
|
|
673
|
+
pnpm lumenflow
|
|
674
674
|
|
|
675
675
|
# Claude-specific setup
|
|
676
|
-
pnpm
|
|
676
|
+
pnpm lumenflow --client claude
|
|
677
677
|
|
|
678
678
|
# Cursor-specific setup
|
|
679
|
-
pnpm
|
|
679
|
+
pnpm lumenflow --client cursor
|
|
680
680
|
|
|
681
681
|
# Windsurf-specific setup
|
|
682
|
-
pnpm
|
|
682
|
+
pnpm lumenflow --client windsurf
|
|
683
683
|
|
|
684
684
|
# All clients
|
|
685
|
-
pnpm
|
|
685
|
+
pnpm lumenflow --client all
|
|
686
686
|
```
|
|
687
687
|
|
|
688
688
|
### Adding LumenFlow to Existing Projects
|
|
@@ -694,10 +694,10 @@ Use `--merge` mode to safely add LumenFlow configuration to existing files witho
|
|
|
694
694
|
pnpm add -D @lumenflow/cli
|
|
695
695
|
|
|
696
696
|
# Merge into existing AGENTS.md (preserves your content)
|
|
697
|
-
pnpm
|
|
697
|
+
pnpm lumenflow --merge
|
|
698
698
|
|
|
699
699
|
# Merge with client overlay
|
|
700
|
-
pnpm
|
|
700
|
+
pnpm lumenflow --merge --client claude
|
|
701
701
|
```
|
|
702
702
|
|
|
703
703
|
The merge mode uses bounded markers (`<!-- LUMENFLOW:START -->` and `<!-- LUMENFLOW:END -->`) to safely insert and update the LumenFlow block while preserving everything else.
|
|
@@ -717,7 +717,7 @@ cp -rn /tmp/nextjs-scaffold/.* . 2>/dev/null || true
|
|
|
717
717
|
# 3. Install and initialize LumenFlow
|
|
718
718
|
pnpm install
|
|
719
719
|
pnpm add -D @lumenflow/cli
|
|
720
|
-
pnpm
|
|
720
|
+
pnpm lumenflow --client claude --full
|
|
721
721
|
|
|
722
722
|
# 4. Clean up
|
|
723
723
|
rm -rf /tmp/nextjs-scaffold
|
|
@@ -733,5 +733,5 @@ rm -rf /tmp/nextjs-scaffold
|
|
|
733
733
|
- [troubleshooting-wu-done.md](troubleshooting-wu-done.md) - Why agents forget wu:done
|
|
734
734
|
- [first-wu-mistakes.md](first-wu-mistakes.md) - Common mistakes to avoid
|
|
735
735
|
- [quick-ref-commands.md](quick-ref-commands.md) - Command reference
|
|
736
|
-
- [wu-sizing-guide.md](
|
|
736
|
+
- [wu-sizing-guide.md](wu-sizing-guide.md) - Context safety and WU sizing
|
|
737
737
|
- [initiative-orchestration.md](initiative-orchestration.md) - Initiative orchestration, delegation, recovery
|
|
@@ -134,8 +134,8 @@ pnpm wu:brief --id WU-1501 --client claude-code # Prompt generation only
|
|
|
134
134
|
pnpm wu:delegate --id WU-1502 --parent-wu WU-1500 # Prompt + lineage recording
|
|
135
135
|
pnpm wu:delegate --id WU-1503 --parent-wu WU-1500
|
|
136
136
|
|
|
137
|
-
# For WUs implemented in current session:
|
|
138
|
-
pnpm wu:brief --id WU-1504 --client
|
|
137
|
+
# For WUs implemented in current session (full context + evidence):
|
|
138
|
+
pnpm wu:brief --id WU-1504 --client claude-code # Always gives context + records evidence
|
|
139
139
|
```
|
|
140
140
|
|
|
141
141
|
### Orchestration Pattern
|
|
@@ -35,10 +35,10 @@ pnpm wu:brief --id WU-XXX --client claude-code # Generate prompt only
|
|
|
35
35
|
pnpm wu:delegate --id WU-XXX --parent-wu WU-YYY # Generate prompt + record lineage
|
|
36
36
|
```
|
|
37
37
|
|
|
38
|
-
**
|
|
38
|
+
**Self-implementation**: `wu:brief` always gives full context AND records evidence — use it even when implementing yourself:
|
|
39
39
|
|
|
40
40
|
```bash
|
|
41
|
-
pnpm wu:brief --id WU-XXX --client
|
|
41
|
+
pnpm wu:brief --id WU-XXX --client claude-code # Full context + evidence (always)
|
|
42
42
|
```
|
|
43
43
|
|
|
44
44
|
**DON'T use wu:brief/wu:delegate** for helper agents (code-reviewer, test-engineer) on YOUR WU.
|
|
@@ -33,8 +33,8 @@ pnpm wu:brief --id WU-XXX --client claude-code
|
|
|
33
33
|
# ✅ CORRECT: Use wu:delegate for lineage-tracked delegation
|
|
34
34
|
pnpm wu:delegate --id WU-XXX --parent-wu WU-YYY
|
|
35
35
|
|
|
36
|
-
# ✅ CORRECT: wu:brief
|
|
37
|
-
pnpm wu:brief --id WU-XXX --client
|
|
36
|
+
# ✅ CORRECT: Use wu:brief for self-implementation (gives context + records evidence)
|
|
37
|
+
pnpm wu:brief --id WU-XXX --client claude-code
|
|
38
38
|
```
|
|
39
39
|
|
|
40
40
|
**❌ NEVER do this:**
|
|
@@ -46,7 +46,7 @@ pnpm wu:brief --id WU-XXX --client <client>
|
|
|
46
46
|
**Why this matters:**
|
|
47
47
|
|
|
48
48
|
1. `wu:brief` generates prompts with context loading preamble, TDD directives, and constraints block
|
|
49
|
-
2. `wu:brief` always records evidence AND
|
|
49
|
+
2. `wu:brief` always records evidence AND provides full WU context (no silent mode)
|
|
50
50
|
3. Sub-agents need `wu:claim` (inside generated prompts) to create proper lane locks and event tracking
|
|
51
51
|
4. Direct Task spawns bypass all safety mechanisms, coordination signals, and spawn registry tracking
|
|
52
52
|
|