@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
|
@@ -2,10 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
**Last updated:** {{DATE}}
|
|
4
4
|
|
|
5
|
-
> **This file is managed by LumenFlow.** Do not edit — it will be overwritten on upgrade.
|
|
6
|
-
> For project-specific additions, create `LUMENFLOW.local.md` (never overwritten).
|
|
7
|
-
> If `LUMENFLOW.local.md` exists, agents should read it after this file.
|
|
8
|
-
|
|
9
5
|
LumenFlow is a vendor-agnostic workflow framework for AI-native software development.
|
|
10
6
|
|
|
11
7
|
> **Context Safety**: When approaching context limits (80% usage, 50+ tool calls), spawn a fresh agent instead of continuing after compaction. See [wu-sizing-guide.md]({{DOCS_OPERATIONS_PATH}}/_frameworks/lumenflow/wu-sizing-guide.md).
|
|
@@ -54,6 +50,9 @@ cd worktrees/<lane>-wu-xxxx
|
|
|
54
50
|
# 4b. Build CLI in worktree (required for gates)
|
|
55
51
|
pnpm bootstrap
|
|
56
52
|
|
|
53
|
+
# 4c. Run wu:brief (MANDATORY — wu:done blocks without this)
|
|
54
|
+
pnpm wu:brief --id WU-XXXX --client <client>
|
|
55
|
+
|
|
57
56
|
# 5. Implement in worktree
|
|
58
57
|
|
|
59
58
|
# 6. Prepare (runs gates in worktree) - WU-1223 NEW
|
|
@@ -141,7 +140,7 @@ When `requireRemote: true` (default):
|
|
|
141
140
|
## Core Principles
|
|
142
141
|
|
|
143
142
|
1. **Design-First** (feature/refactor WUs): Load `/skill design-first` before implementation. Question requirements, delete unnecessary, simplify before optimizing
|
|
144
|
-
2. **Fit-For-Surface Verification**: Choose the least brittle verification that gives strong confidence. Prefer TDD for runtime logic when repository policy requires it; prefer behavior-focused integration, smoke, visual, or manual verification for UI, content, and presentation work.
|
|
143
|
+
2. **Fit-For-Surface Verification**: Choose the least brittle verification that gives strong confidence. Prefer TDD for runtime logic when repository policy requires it; prefer behavior-focused integration, smoke, visual, or manual verification for UI, content, and presentation work. Never assert inline styles, CSS values, exact copy, or DOM shape in E2E/integration tests.
|
|
145
144
|
3. **Library-First**: Search existing libraries before custom code
|
|
146
145
|
4. **DRY/SOLID/KISS/YAGNI**: No magic numbers, no hardcoded strings
|
|
147
146
|
5. **Worktree Discipline**: After `wu:claim`, work ONLY in the worktree
|
|
@@ -221,6 +220,22 @@ lumenflow init --merge # Safe merge into existing files
|
|
|
221
220
|
|
|
222
221
|
The `--merge` flag uses bounded markers (`LUMENFLOW:START`/`END`) to safely insert or update LumenFlow config in existing files without overwriting user content.
|
|
223
222
|
|
|
223
|
+
### File Ownership Model
|
|
224
|
+
|
|
225
|
+
| File | Owner | On Upgrade | User Overrides |
|
|
226
|
+
| ------------------------------ | ------------------------- | --------------------------------------------------------------- | ------------------------ |
|
|
227
|
+
| `LUMENFLOW.md` | LumenFlow (fully managed) | Force-synced from template | Use `LUMENFLOW.local.md` |
|
|
228
|
+
| `.lumenflow/constraints.md` | LumenFlow (fully managed) | Force-synced from template | — |
|
|
229
|
+
| `AGENTS.md` | Shared (merge-block) | Content between `LUMENFLOW:START`/`END` updated; rest preserved | Edit outside markers |
|
|
230
|
+
| `CLAUDE.md` | Shared (merge-block) | Content between markers updated; rest preserved | Edit outside markers |
|
|
231
|
+
| `.cursor/rules/lumenflow.md` | Shared (merge-block) | Content between markers updated; rest preserved | Edit outside markers |
|
|
232
|
+
| `.windsurf/rules/lumenflow.md` | Shared (merge-block) | Content between markers updated; rest preserved | Edit outside markers |
|
|
233
|
+
| `LUMENFLOW.local.md` | User (never touched) | Skipped entirely | Full ownership |
|
|
234
|
+
| `.lumenflow/templates/` | User (never touched) | Skipped entirely | Full ownership |
|
|
235
|
+
|
|
236
|
+
> For project-specific workflow additions, create `LUMENFLOW.local.md` (never overwritten).
|
|
237
|
+
> If `LUMENFLOW.local.md` exists, agents should read it after this file.
|
|
238
|
+
|
|
224
239
|
---
|
|
225
240
|
|
|
226
241
|
## Worktree Discipline (IMMUTABLE LAW)
|
|
@@ -254,31 +269,31 @@ For the full worktree lifecycle (parallel execution, bootstrap, isolation guaran
|
|
|
254
269
|
|
|
255
270
|
> **Complete CLI reference (100+ commands):** See [quick-ref-commands.md]({{QUICK_REF_LINK}}). Always run `<command> --help` for the authoritative option list.
|
|
256
271
|
|
|
257
|
-
| Command | Description
|
|
258
|
-
| ------------------------- |
|
|
259
|
-
| `pnpm wu:create` | Create new WU spec
|
|
260
|
-
| `pnpm wu:claim` | Claim WU, update canonical state, create worktree
|
|
261
|
-
| `pnpm wu:prep` | Run gates in worktree, prep for wu:done
|
|
262
|
-
| `pnpm wu:done` | Complete WU (merge, stamp, cleanup)
|
|
263
|
-
| `pnpm wu:status` | Show WU status, location, and valid commands
|
|
264
|
-
| `pnpm wu:recover` | Analyze and fix WU state inconsistencies
|
|
265
|
-
| `pnpm wu:block` | Block WU (transitions to blocked, frees lane)
|
|
266
|
-
| `pnpm wu:unblock` | Unblock WU (transitions to in_progress)
|
|
267
|
-
| `pnpm wu:release` | Release orphaned WU (in_progress to ready for reclaim)
|
|
272
|
+
| Command | Description |
|
|
273
|
+
| ------------------------- | ----------------------------------------------------------------------- |
|
|
274
|
+
| `pnpm wu:create` | Create new WU spec |
|
|
275
|
+
| `pnpm wu:claim` | Claim WU, update canonical state, create worktree |
|
|
276
|
+
| `pnpm wu:prep` | Run gates in worktree, prep for wu:done |
|
|
277
|
+
| `pnpm wu:done` | Complete WU (merge, stamp, cleanup) |
|
|
278
|
+
| `pnpm wu:status` | Show WU status, location, and valid commands |
|
|
279
|
+
| `pnpm wu:recover` | Analyze and fix WU state inconsistencies |
|
|
280
|
+
| `pnpm wu:block` | Block WU (transitions to blocked, frees lane) |
|
|
281
|
+
| `pnpm wu:unblock` | Unblock WU (transitions to in_progress) |
|
|
282
|
+
| `pnpm wu:release` | Release orphaned WU (in_progress to ready for reclaim) |
|
|
268
283
|
| `pnpm wu:brief` | **MANDATORY after wu:claim.** Generate handoff prompt + record evidence |
|
|
269
|
-
| `pnpm wu:delegate` | Generate prompt + record lineage + brief hash attestation
|
|
270
|
-
| `pnpm wu:escalate` | Show or resolve WU escalation status
|
|
271
|
-
| `pnpm wu:verify` | Verify WU completion (stamp, commit, clean tree)
|
|
272
|
-
| `pnpm wu:delete` | Delete WU spec and cleanup
|
|
273
|
-
| `pnpm gates` | Run quality gates (`--docs-only` for docs WUs)
|
|
274
|
-
| `pnpm lumenflow:commands` | List all public commands (primary + alias + legacy)
|
|
275
|
-
| `pnpm docs:generate` | Regenerate CLI/config reference docs from source
|
|
276
|
-
| `pnpm docs:validate` | Verify generated docs are up-to-date
|
|
277
|
-
| `pnpm lane:status` | Show lane lifecycle status + next step
|
|
278
|
-
| `pnpm lane:setup` | Create/update draft lane artifacts
|
|
279
|
-
| `pnpm lane:validate` | Validate lane artifacts before lock
|
|
280
|
-
| `pnpm lane:lock` | Lock lane lifecycle for delivery WUs
|
|
281
|
-
| `pnpm mem:checkpoint` | Save memory checkpoint
|
|
284
|
+
| `pnpm wu:delegate` | Generate prompt + record lineage + brief hash attestation |
|
|
285
|
+
| `pnpm wu:escalate` | Show or resolve WU escalation status |
|
|
286
|
+
| `pnpm wu:verify` | Verify WU completion (stamp, commit, clean tree) |
|
|
287
|
+
| `pnpm wu:delete` | Delete WU spec and cleanup |
|
|
288
|
+
| `pnpm gates` | Run quality gates (`--docs-only` for docs WUs) |
|
|
289
|
+
| `pnpm lumenflow:commands` | List all public commands (primary + alias + legacy) |
|
|
290
|
+
| `pnpm docs:generate` | Regenerate CLI/config reference docs from source |
|
|
291
|
+
| `pnpm docs:validate` | Verify generated docs are up-to-date |
|
|
292
|
+
| `pnpm lane:status` | Show lane lifecycle status + next step |
|
|
293
|
+
| `pnpm lane:setup` | Create/update draft lane artifacts |
|
|
294
|
+
| `pnpm lane:validate` | Validate lane artifacts before lock |
|
|
295
|
+
| `pnpm lane:lock` | Lock lane lifecycle for delivery WUs |
|
|
296
|
+
| `pnpm mem:checkpoint` | Save memory checkpoint |
|
|
282
297
|
|
|
283
298
|
Commands include **context-aware validation** that checks location, WU status, and git state. When validation fails, commands provide copy-paste ready fix commands. Configure in `workspace.yaml` under `software_delivery.experimental.context_validation`.
|
|
284
299
|
The Starlight CLI reference page is intentionally curated to primary commands; use `pnpm lumenflow:commands` for complete discovery.
|