@lumenflow/cli 3.22.0 → 4.0.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/LICENSE +1 -1
- package/README.md +1 -1
- package/dist/task-claim.js +1 -1
- package/dist/task-claim.js.map +1 -1
- package/dist/wu-cleanup.js +18 -2
- package/dist/wu-cleanup.js.map +1 -1
- package/dist/wu-done-gates.js +67 -12
- package/dist/wu-done-gates.js.map +1 -1
- package/dist/wu-recover.js +13 -0
- package/dist/wu-recover.js.map +1 -1
- package/dist/wu-release.js +1 -0
- package/dist/wu-release.js.map +1 -1
- package/dist/wu-state-mutation-ownership.js +8 -0
- package/dist/wu-state-mutation-ownership.js.map +1 -1
- package/dist/wu-verify.js +1 -1
- package/package.json +12 -12
- package/packs/agent-runtime/.turbo/turbo-build.log +1 -1
- package/packs/agent-runtime/.turbo/turbo-test.log +21 -0
- package/packs/agent-runtime/.turbo/turbo-typecheck.log +1 -1
- package/packs/agent-runtime/package.json +5 -5
- package/packs/sidekick/.turbo/turbo-build.log +1 -1
- package/packs/sidekick/.turbo/turbo-test.log +150 -5
- package/packs/sidekick/.turbo/turbo-typecheck.log +1 -1
- package/packs/sidekick/package.json +5 -5
- package/packs/software-delivery/.turbo/turbo-build.log +1 -1
- package/packs/software-delivery/.turbo/turbo-test.log +32 -0
- package/packs/software-delivery/.turbo/turbo-typecheck.log +1 -1
- package/packs/software-delivery/LICENSE.md +18 -0
- package/packs/software-delivery/README.md +15 -0
- package/packs/software-delivery/package.json +5 -5
- package/templates/core/AGENTS.md.template +1 -24
- package/templates/core/LUMENFLOW.md.template +188 -34
- package/templates/core/UPGRADING.md.template +2 -2
- package/templates/core/ai/onboarding/release-process.md.template +13 -13
|
@@ -265,40 +265,194 @@ For the full worktree lifecycle (parallel execution, bootstrap, isolation guaran
|
|
|
265
265
|
|
|
266
266
|
---
|
|
267
267
|
|
|
268
|
-
##
|
|
269
|
-
|
|
270
|
-
> **
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
|
275
|
-
|
|
|
276
|
-
| `pnpm wu:
|
|
277
|
-
| `pnpm wu:
|
|
278
|
-
| `pnpm wu:
|
|
279
|
-
| `pnpm wu:
|
|
280
|
-
| `pnpm wu:
|
|
281
|
-
| `pnpm wu:
|
|
282
|
-
| `pnpm wu:
|
|
283
|
-
| `pnpm wu:
|
|
284
|
-
| `pnpm wu:
|
|
285
|
-
| `pnpm wu:
|
|
286
|
-
| `pnpm wu:
|
|
287
|
-
| `pnpm wu:
|
|
288
|
-
| `pnpm
|
|
289
|
-
| `pnpm
|
|
290
|
-
| `pnpm
|
|
291
|
-
| `pnpm
|
|
292
|
-
| `pnpm
|
|
293
|
-
| `pnpm
|
|
294
|
-
| `pnpm
|
|
295
|
-
| `pnpm
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
268
|
+
## CLI Command Reference
|
|
269
|
+
|
|
270
|
+
> **This is the canonical command reference.** All agent docs (AGENTS.md, vendor rules, onboarding) point here. Always run `<command> --help` for authoritative options. Run `pnpm lumenflow:commands` to verify against the live CLI.
|
|
271
|
+
|
|
272
|
+
### WU Lifecycle
|
|
273
|
+
|
|
274
|
+
| Command | Description |
|
|
275
|
+
| ----------------------- | ----------------------------------------------------------------------- |
|
|
276
|
+
| `pnpm wu:create` | Create new WU spec (ID auto-generated) |
|
|
277
|
+
| `pnpm wu:claim` | Claim WU, update canonical state, create worktree (or `--cloud`) |
|
|
278
|
+
| `pnpm wu:sandbox` | Run command through hardened WU sandbox backend |
|
|
279
|
+
| `pnpm wu:prep` | Run gates in worktree, prep for wu:done |
|
|
280
|
+
| `pnpm wu:done` | Complete WU (merge, stamp, cleanup) |
|
|
281
|
+
| `pnpm wu:edit` | Edit WU spec fields |
|
|
282
|
+
| `pnpm wu:block` | Block WU (transitions to blocked, frees lane) |
|
|
283
|
+
| `pnpm wu:unblock` | Unblock WU (transitions to in_progress) |
|
|
284
|
+
| `pnpm wu:release` | Release orphaned WU (in_progress to ready for reclaim) |
|
|
285
|
+
| `pnpm wu:status` | Show WU status, location, and valid commands |
|
|
286
|
+
| `pnpm wu:brief` | **MANDATORY after wu:claim.** Generate handoff prompt + record evidence |
|
|
287
|
+
| `pnpm wu:delegate` | Generate prompt + record lineage + brief hash attestation |
|
|
288
|
+
| `pnpm wu:validate` | Validate WU spec completeness and schema |
|
|
289
|
+
| `pnpm wu:recover` | Analyze and fix WU state inconsistencies |
|
|
290
|
+
| `pnpm wu:verify` | Verify WU completion (stamp, commit, clean tree) |
|
|
291
|
+
| `pnpm wu:escalate` | Show or resolve WU escalation status |
|
|
292
|
+
| `pnpm wu:delete` | Delete WU spec and cleanup |
|
|
293
|
+
| `pnpm approval:request` | Request control-plane approval for a workflow action |
|
|
294
|
+
| `pnpm approval:review` | Resolve a control-plane approval decision |
|
|
295
|
+
| `pnpm approval:list` | List control-plane approvals with optional filters |
|
|
296
|
+
|
|
297
|
+
### WU Maintenance
|
|
298
|
+
|
|
299
|
+
| Command | Description |
|
|
300
|
+
| --------------------- | ---------------------------------------------------------------- |
|
|
301
|
+
| `pnpm wu:preflight` | Pre-flight checks before wu:done |
|
|
302
|
+
| `pnpm wu:repair` | Repair WU state issues (claim, admin, state, duplicate-ids mode) |
|
|
303
|
+
| `pnpm wu:prune` | Clean stale worktrees |
|
|
304
|
+
| `pnpm wu:cleanup` | Cleanup after PR merge (branch-pr mode) |
|
|
305
|
+
| `pnpm wu:deps` | Show WU dependencies |
|
|
306
|
+
| `pnpm wu:infer-lane` | Infer lane from code paths/description |
|
|
307
|
+
| `pnpm wu:unlock-lane` | Unlock stuck lane |
|
|
308
|
+
| `pnpm wu:proto` | Create WU prototype |
|
|
309
|
+
|
|
310
|
+
### Gates & Quality
|
|
311
|
+
|
|
312
|
+
| Command | Description |
|
|
313
|
+
| --------------------------------- | ----------------------------------------------------- |
|
|
314
|
+
| `pnpm gates` | Run all quality gates (`--docs-only` for docs WUs) |
|
|
315
|
+
| `pnpm gates:docs` | Run docs-only quality gates (alias) |
|
|
316
|
+
| `pnpm validate` | Run validation checks |
|
|
317
|
+
| `pnpm lumenflow:pre-commit-check` | Run enforcement checks used by pre-commit and CI |
|
|
318
|
+
| `pnpm gate:co-change` | Manage co-change gate rules (add, remove, edit, list) |
|
|
319
|
+
| `pnpm format` | Format all files (Prettier) |
|
|
320
|
+
| `pnpm lint` | Run ESLint |
|
|
321
|
+
| `pnpm typecheck` | Run TypeScript type checking |
|
|
322
|
+
| `pnpm test` | Run all tests (Vitest) |
|
|
323
|
+
|
|
324
|
+
### Lane Management
|
|
325
|
+
|
|
326
|
+
| Command | Description |
|
|
327
|
+
| -------------------- | ------------------------------------------------- |
|
|
328
|
+
| `pnpm lane:create` | Create a new lane definition |
|
|
329
|
+
| `pnpm lane:edit` | Edit a lane definition (rename, wip-limit, paths) |
|
|
330
|
+
| `pnpm lane:health` | Check lane config health |
|
|
331
|
+
| `pnpm lane:suggest` | Suggest workspace lane definitions from context |
|
|
332
|
+
| `pnpm lane:status` | Show lane lifecycle status and next step |
|
|
333
|
+
| `pnpm lane:setup` | Create/update draft lane artifacts |
|
|
334
|
+
| `pnpm lane:validate` | Validate lane artifacts before lock |
|
|
335
|
+
| `pnpm lane:lock` | Lock lane lifecycle for delivery WUs |
|
|
336
|
+
|
|
337
|
+
### Memory & Sessions
|
|
338
|
+
|
|
339
|
+
| Command | Description |
|
|
340
|
+
| --------------------- | ------------------------------------------ |
|
|
341
|
+
| `pnpm mem:init` | Initialize memory for WU |
|
|
342
|
+
| `pnpm mem:checkpoint` | Save progress checkpoint |
|
|
343
|
+
| `pnpm mem:start` | Start a memory session |
|
|
344
|
+
| `pnpm mem:ready` | Check pending memory nodes |
|
|
345
|
+
| `pnpm mem:export` | Export memory as markdown |
|
|
346
|
+
| `pnpm mem:signal` | Broadcast coordination signal |
|
|
347
|
+
| `pnpm mem:cleanup` | Clean up stale memory data |
|
|
348
|
+
| `pnpm mem:context` | Get context for current lane/WU |
|
|
349
|
+
| `pnpm mem:create` | Create memory node (bug discovery) |
|
|
350
|
+
| `pnpm mem:inbox` | Check coordination signals |
|
|
351
|
+
| `pnpm mem:summarize` | Summarize memory context |
|
|
352
|
+
| `pnpm mem:triage` | Triage discovered bugs |
|
|
353
|
+
| `pnpm mem:delete` | Delete/archive a memory node |
|
|
354
|
+
| `pnpm mem:recover` | Generate recovery context after compaction |
|
|
355
|
+
| `pnpm signal:cleanup` | Clean up stale signals |
|
|
356
|
+
|
|
357
|
+
### Initiatives
|
|
358
|
+
|
|
359
|
+
| Command | Description |
|
|
360
|
+
| ----------------------------- | ----------------------------------------- |
|
|
361
|
+
| `pnpm initiative:create` | Create new initiative |
|
|
362
|
+
| `pnpm initiative:edit` | Edit initiative fields and phase metadata |
|
|
363
|
+
| `pnpm initiative:list` | List all initiatives |
|
|
364
|
+
| `pnpm initiative:status` | Show initiative status |
|
|
365
|
+
| `pnpm initiative:add-wu` | Add WU to initiative |
|
|
366
|
+
| `pnpm initiative:remove-wu` | Remove WU from initiative |
|
|
367
|
+
| `pnpm initiative:plan` | Link plan to initiative |
|
|
368
|
+
| `pnpm initiative:bulk-assign` | Bulk assign WUs to initiative |
|
|
369
|
+
|
|
370
|
+
### Plans
|
|
371
|
+
|
|
372
|
+
| Command | Description |
|
|
373
|
+
| ------------------- | ----------------------------- |
|
|
374
|
+
| `pnpm plan:create` | Create a new plan |
|
|
375
|
+
| `pnpm plan:link` | Link plan to WU or initiative |
|
|
376
|
+
| `pnpm plan:edit` | Edit plan content |
|
|
377
|
+
| `pnpm plan:promote` | Promote plan to WU |
|
|
378
|
+
|
|
379
|
+
### Orchestration
|
|
380
|
+
|
|
381
|
+
| Command | Description |
|
|
382
|
+
| ------------------------------ | ------------------------------------------- |
|
|
383
|
+
| `pnpm orchestrate:initiative` | Orchestrate initiative execution |
|
|
384
|
+
| `pnpm orchestrate:init-status` | Compact initiative progress view |
|
|
385
|
+
| `pnpm orchestrate:monitor` | Monitor spawn/agent activity |
|
|
386
|
+
| `pnpm delegation:list` | List active delegation records |
|
|
387
|
+
| `pnpm task:claim` | Claim a task directly through KernelRuntime |
|
|
388
|
+
| `pnpm agent:session` | Start agent session |
|
|
389
|
+
| `pnpm agent:session-end` | End agent session |
|
|
390
|
+
| `pnpm agent:log-issue` | Log issue during agent session |
|
|
391
|
+
| `pnpm agent:issues-query` | Query GitHub issues for agent work |
|
|
392
|
+
|
|
393
|
+
### Setup & Configuration
|
|
394
|
+
|
|
395
|
+
| Command | Description |
|
|
396
|
+
| ------------------------------- | ----------------------------------------------------- |
|
|
397
|
+
| `pnpm setup` | Install deps and build CLI (first time) |
|
|
398
|
+
| `pnpm lumenflow` | Initialize LumenFlow in a project |
|
|
399
|
+
| `pnpm lumenflow:doctor` | Diagnose LumenFlow configuration |
|
|
400
|
+
| `pnpm lumenflow:commands` | List all available CLI commands |
|
|
401
|
+
| `pnpm lumenflow:release` | Run release workflow |
|
|
402
|
+
| `pnpm lumenflow:docs-sync` | Refresh core docs, onboarding docs, and vendor assets |
|
|
403
|
+
| `pnpm lumenflow:sync-templates` | Sync templates to project |
|
|
404
|
+
| `pnpm lumenflow:upgrade` | Upgrade LumenFlow packages |
|
|
405
|
+
| `pnpm lumenflow:integrate` | Generate enforcement hooks for client |
|
|
406
|
+
| `pnpm config:set` | Safely update workspace.yaml via micro-worktree |
|
|
407
|
+
| `pnpm config:get` | Read a value from workspace.yaml |
|
|
408
|
+
| `pnpm cloud:connect` | Connect workspace.yaml to cloud control plane |
|
|
409
|
+
| `pnpm backlog:prune` | Clean stale backlog entries |
|
|
410
|
+
|
|
411
|
+
### Metrics & Flow
|
|
412
|
+
|
|
413
|
+
| Command | Description |
|
|
414
|
+
| ----------------------- | ------------------------------------------------------ |
|
|
415
|
+
| `pnpm flow:report` | Generate flow metrics report |
|
|
416
|
+
| `pnpm flow:bottlenecks` | Identify flow bottlenecks |
|
|
417
|
+
| `pnpm metrics:snapshot` | Capture metrics snapshot |
|
|
418
|
+
| `pnpm cost:summary` | Summarize local cost telemetry |
|
|
419
|
+
| `pnpm strict:progress` | Report strict TypeScript backlog and guard regressions |
|
|
420
|
+
|
|
421
|
+
### State Management
|
|
422
|
+
|
|
423
|
+
| Command | Description |
|
|
424
|
+
| ---------------------- | ------------------------------------ |
|
|
425
|
+
| `pnpm state:doctor` | Diagnose state store issues |
|
|
426
|
+
| `pnpm state:cleanup` | Clean up stale state data |
|
|
427
|
+
| `pnpm state:bootstrap` | Bootstrap state store |
|
|
428
|
+
| `pnpm state:emit` | Emit corrective event to state store |
|
|
429
|
+
|
|
430
|
+
### Packs
|
|
431
|
+
|
|
432
|
+
| Command | Description |
|
|
433
|
+
| -------------------- | ------------------------------------------ |
|
|
434
|
+
| `pnpm pack:author` | Author a secure domain pack from templates |
|
|
435
|
+
| `pnpm pack:scaffold` | Scaffold a new domain pack |
|
|
436
|
+
| `pnpm pack:validate` | Validate a domain pack for integrity |
|
|
437
|
+
| `pnpm pack:hash` | Compute integrity hash for a domain pack |
|
|
438
|
+
| `pnpm pack:publish` | Publish a domain pack to a registry |
|
|
439
|
+
| `pnpm pack:install` | Install a domain pack into workspace |
|
|
440
|
+
| `pnpm pack:search` | Search for domain packs in a registry |
|
|
441
|
+
|
|
442
|
+
### Audited Wrappers
|
|
443
|
+
|
|
444
|
+
| Command | Description |
|
|
445
|
+
| ------------------ | -------------------------------- |
|
|
446
|
+
| `pnpm file:read` | Read file with audit trail |
|
|
447
|
+
| `pnpm file:write` | Write file with audit trail |
|
|
448
|
+
| `pnpm file:edit` | Edit file with audit trail |
|
|
449
|
+
| `pnpm file:delete` | Delete file with audit trail |
|
|
450
|
+
| `pnpm git:status` | Show git status with audit trail |
|
|
451
|
+
| `pnpm git:diff` | Show git diff with audit trail |
|
|
452
|
+
| `pnpm git:log` | Show git log with audit trail |
|
|
453
|
+
| `pnpm git:branch` | Show git branch with audit trail |
|
|
454
|
+
|
|
455
|
+
Commands include **context-aware validation** that checks location, WU status, and git state. When validation fails, commands provide copy-paste ready fix commands.
|
|
302
456
|
|
|
303
457
|
---
|
|
304
458
|
|
|
@@ -43,7 +43,7 @@ pnpm list @lumenflow/*
|
|
|
43
43
|
|
|
44
44
|
Before upgrading, review the changelog for breaking changes:
|
|
45
45
|
|
|
46
|
-
- [GitHub Releases](https://github.com/hellmai/lumenflow
|
|
46
|
+
- [GitHub Releases](https://github.com/hellmai/lumenflow/releases)
|
|
47
47
|
- [lumenflow.dev/changelog](https://lumenflow.dev/changelog)
|
|
48
48
|
|
|
49
49
|
### 3. Update Packages
|
|
@@ -140,5 +140,5 @@ For major version upgrades, see version-specific migration guides:
|
|
|
140
140
|
|
|
141
141
|
## Getting Help
|
|
142
142
|
|
|
143
|
-
- [GitHub Issues](https://github.com/hellmai/lumenflow
|
|
143
|
+
- [GitHub Issues](https://github.com/hellmai/lumenflow/issues)
|
|
144
144
|
- [lumenflow.dev/docs](https://lumenflow.dev/docs)
|
|
@@ -262,11 +262,11 @@ vercel --prod
|
|
|
262
262
|
|
|
263
263
|
- **Project**: `lumenflow-docs` (ID: `prj_myK4BzfHKctGhxfvALJaMOXVLx4g`)
|
|
264
264
|
- **Domain**: lumenflow.dev
|
|
265
|
-
- **Team**:
|
|
265
|
+
- **Team**: lumenflow
|
|
266
266
|
|
|
267
267
|
### Important Notes
|
|
268
268
|
|
|
269
|
-
- **No private repo links**: Starlight docs are public; never link to `github.com/hellmai/lumenflow
|
|
269
|
+
- **No private repo links**: Starlight docs are public; never link to `github.com/hellmai/lumenflow`
|
|
270
270
|
- **Link to npm**: Use <https://www.npmjs.com/org/lumenflow> for package links
|
|
271
271
|
|
|
272
272
|
---
|
|
@@ -286,8 +286,8 @@ Packs are published to the registry at <https://registry.lumenflow.dev>. The reg
|
|
|
286
286
|
The `apps/web` Vercel project has `Root Directory: apps/web` configured. To deploy from the CLI, link the repo root to the `web` project:
|
|
287
287
|
|
|
288
288
|
```bash
|
|
289
|
-
# From repo root — link to the 'web' project (not
|
|
290
|
-
vercel link --project web --scope
|
|
289
|
+
# From repo root — link to the 'web' project (not the monorepo project)
|
|
290
|
+
vercel link --project web --scope lumenflow --yes
|
|
291
291
|
|
|
292
292
|
# Deploy to production
|
|
293
293
|
vercel --prod --yes
|
|
@@ -295,12 +295,12 @@ vercel --prod --yes
|
|
|
295
295
|
|
|
296
296
|
**Gotcha:** Do NOT run `vercel` from inside `apps/web/` — the Vercel root directory setting doubles the path (`apps/web/apps/web`). Always deploy from the repo root.
|
|
297
297
|
|
|
298
|
-
**Gotcha:** The repo root `.vercel/project.json` may be linked to
|
|
298
|
+
**Gotcha:** The repo root `.vercel/project.json` may be linked to the monorepo project. You must re-link to `web` before deploying the registry.
|
|
299
299
|
|
|
300
300
|
After deploying, restore the link if needed:
|
|
301
301
|
|
|
302
302
|
```bash
|
|
303
|
-
vercel link --project lumenflow
|
|
303
|
+
vercel link --project lumenflow --scope lumenflow --yes
|
|
304
304
|
```
|
|
305
305
|
|
|
306
306
|
### Step 2: Build the Tarball
|
|
@@ -345,12 +345,12 @@ rm packages/@lumenflow/packs/software-delivery/lumenflow-packs-software-delivery
|
|
|
345
345
|
|
|
346
346
|
### Vercel Projects Reference
|
|
347
347
|
|
|
348
|
-
| Project
|
|
349
|
-
|
|
|
350
|
-
| `web`
|
|
351
|
-
| `docs`
|
|
352
|
-
| `lumenflow
|
|
353
|
-
| `cloud`
|
|
348
|
+
| Project | Domain | Purpose |
|
|
349
|
+
| ----------- | ---------------------- | ----------------------- |
|
|
350
|
+
| `web` | registry.lumenflow.dev | Pack registry + web app |
|
|
351
|
+
| `docs` | lumenflow.dev | Starlight documentation |
|
|
352
|
+
| `lumenflow` | lumenflow.vercel.app | Monorepo preview |
|
|
353
|
+
| `cloud` | cloud.lumenflow.dev | Control plane |
|
|
354
354
|
|
|
355
355
|
### Troubleshooting Pack Publishing
|
|
356
356
|
|
|
@@ -368,7 +368,7 @@ Missing or wrong `Origin` header. Must be `https://registry.lumenflow.dev`.
|
|
|
368
368
|
|
|
369
369
|
#### Vercel build fails with d2 error
|
|
370
370
|
|
|
371
|
-
The `@lumenflow/docs` package requires `d2` (diagramming tool) which is not available on Vercel. Ensure you are deploying the `web` project (which uses `turbo build --filter=@lumenflow/web`) not the
|
|
371
|
+
The `@lumenflow/docs` package requires `d2` (diagramming tool) which is not available on Vercel. Ensure you are deploying the `web` project (which uses `turbo build --filter=@lumenflow/web`) not the monorepo project (which builds all packages).
|
|
372
372
|
|
|
373
373
|
---
|
|
374
374
|
|