@lumenflow/cli 3.9.2 → 3.9.5
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/package.json +8 -8
- 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/LUMENFLOW.md.template +24 -24
- package/templates/core/ai/onboarding/agent-invocation-guide.md.template +9 -0
- package/templates/core/ai/onboarding/quick-ref-commands.md.template +1 -1
- package/templates/core/ai/onboarding/release-process.md.template +51 -34
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lumenflow/cli",
|
|
3
|
-
"version": "3.9.
|
|
3
|
+
"version": "3.9.5",
|
|
4
4
|
"description": "Command-line interface for LumenFlow workflow framework",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"lumenflow",
|
|
@@ -180,13 +180,13 @@
|
|
|
180
180
|
"xstate": "^5.28.0",
|
|
181
181
|
"yaml": "^2.8.2",
|
|
182
182
|
"zod": "^4.3.6",
|
|
183
|
-
"@lumenflow/agent": "3.9.
|
|
184
|
-
"@lumenflow/
|
|
185
|
-
"@lumenflow/kernel": "3.9.
|
|
186
|
-
"@lumenflow/
|
|
187
|
-
"@lumenflow/
|
|
188
|
-
"@lumenflow/
|
|
189
|
-
"@lumenflow/
|
|
183
|
+
"@lumenflow/agent": "3.9.5",
|
|
184
|
+
"@lumenflow/initiatives": "3.9.5",
|
|
185
|
+
"@lumenflow/kernel": "3.9.5",
|
|
186
|
+
"@lumenflow/memory": "3.9.5",
|
|
187
|
+
"@lumenflow/control-plane-sdk": "3.9.5",
|
|
188
|
+
"@lumenflow/metrics": "3.9.5",
|
|
189
|
+
"@lumenflow/core": "3.9.5"
|
|
190
190
|
},
|
|
191
191
|
"devDependencies": {
|
|
192
192
|
"@vitest/coverage-v8": "^4.0.18",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
|
|
2
|
-
> @lumenflow/packs-software-delivery@3.9.
|
|
2
|
+
> @lumenflow/packs-software-delivery@3.9.4 build /home/tom/source/hellmai/lumenflow-dev/packages/@lumenflow/packs/software-delivery
|
|
3
3
|
> tsc
|
|
4
4
|
|
|
@@ -230,30 +230,30 @@ For the full worktree lifecycle (parallel execution, bootstrap, isolation guaran
|
|
|
230
230
|
|
|
231
231
|
> **Complete CLI reference (100+ commands):** See [quick-ref-commands.md](docs/04-operations/_frameworks/lumenflow/agent/onboarding/quick-ref-commands.md). Always run `<command> --help` for the authoritative option list.
|
|
232
232
|
|
|
233
|
-
| Command | Description
|
|
234
|
-
| ------------------------- |
|
|
235
|
-
| `pnpm wu:create` | Create new WU spec
|
|
236
|
-
| `pnpm wu:claim` | Claim WU, update canonical state, create worktree
|
|
237
|
-
| `pnpm wu:prep` | Run gates in worktree, prep for wu:done
|
|
238
|
-
| `pnpm wu:done` | Complete WU (merge, stamp, cleanup)
|
|
239
|
-
| `pnpm wu:status` | Show WU status, location, and valid commands
|
|
240
|
-
| `pnpm wu:recover` | Analyze and fix WU state inconsistencies
|
|
241
|
-
| `pnpm wu:block` | Block WU (transitions to blocked, frees lane)
|
|
242
|
-
| `pnpm wu:unblock` | Unblock WU (transitions to in_progress)
|
|
243
|
-
| `pnpm wu:release` | Release orphaned WU (in_progress to ready for reclaim)
|
|
244
|
-
| `pnpm wu:brief` | Generate handoff prompt + record evidence
|
|
245
|
-
| `pnpm wu:delegate` | Generate prompt + record
|
|
246
|
-
| `pnpm wu:escalate` | Show or resolve WU escalation status
|
|
247
|
-
| `pnpm wu:delete` | Delete WU spec and cleanup
|
|
248
|
-
| `pnpm gates` | Run quality gates (`--docs-only` for docs WUs)
|
|
249
|
-
| `pnpm lumenflow:commands` | List all public commands (primary + alias + legacy)
|
|
250
|
-
| `pnpm docs:generate` | Regenerate CLI/config reference docs from source
|
|
251
|
-
| `pnpm docs:validate` | Verify generated docs are up-to-date
|
|
252
|
-
| `pnpm lane:status` | Show lane lifecycle status + next step
|
|
253
|
-
| `pnpm lane:setup` | Create/update draft lane artifacts
|
|
254
|
-
| `pnpm lane:validate` | Validate lane artifacts before lock
|
|
255
|
-
| `pnpm lane:lock` | Lock lane lifecycle for delivery WUs
|
|
256
|
-
| `pnpm mem:checkpoint` | Save memory checkpoint
|
|
233
|
+
| Command | Description |
|
|
234
|
+
| ------------------------- | --------------------------------------------------------- |
|
|
235
|
+
| `pnpm wu:create` | Create new WU spec |
|
|
236
|
+
| `pnpm wu:claim` | Claim WU, update canonical state, create worktree |
|
|
237
|
+
| `pnpm wu:prep` | Run gates in worktree, prep for wu:done |
|
|
238
|
+
| `pnpm wu:done` | Complete WU (merge, stamp, cleanup) |
|
|
239
|
+
| `pnpm wu:status` | Show WU status, location, and valid commands |
|
|
240
|
+
| `pnpm wu:recover` | Analyze and fix WU state inconsistencies |
|
|
241
|
+
| `pnpm wu:block` | Block WU (transitions to blocked, frees lane) |
|
|
242
|
+
| `pnpm wu:unblock` | Unblock WU (transitions to in_progress) |
|
|
243
|
+
| `pnpm wu:release` | Release orphaned WU (in_progress to ready for reclaim) |
|
|
244
|
+
| `pnpm wu:brief` | Generate handoff prompt + record evidence |
|
|
245
|
+
| `pnpm wu:delegate` | Generate prompt + record lineage + brief hash attestation |
|
|
246
|
+
| `pnpm wu:escalate` | Show or resolve WU escalation status |
|
|
247
|
+
| `pnpm wu:delete` | Delete WU spec and cleanup |
|
|
248
|
+
| `pnpm gates` | Run quality gates (`--docs-only` for docs WUs) |
|
|
249
|
+
| `pnpm lumenflow:commands` | List all public commands (primary + alias + legacy) |
|
|
250
|
+
| `pnpm docs:generate` | Regenerate CLI/config reference docs from source |
|
|
251
|
+
| `pnpm docs:validate` | Verify generated docs are up-to-date |
|
|
252
|
+
| `pnpm lane:status` | Show lane lifecycle status + next step |
|
|
253
|
+
| `pnpm lane:setup` | Create/update draft lane artifacts |
|
|
254
|
+
| `pnpm lane:validate` | Validate lane artifacts before lock |
|
|
255
|
+
| `pnpm lane:lock` | Lock lane lifecycle for delivery WUs |
|
|
256
|
+
| `pnpm mem:checkpoint` | Save memory checkpoint |
|
|
257
257
|
|
|
258
258
|
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`.
|
|
259
259
|
The Starlight CLI reference page is intentionally curated to primary commands; use `pnpm lumenflow:commands` for complete discovery.
|
|
@@ -106,8 +106,17 @@ This is useful when:
|
|
|
106
106
|
|
|
107
107
|
`wu:delegate` records **delegation intent**: that a brief was generated for a target WU with explicit parent lineage.
|
|
108
108
|
|
|
109
|
+
It also stores **brief attestation metadata** (SHA-256 prompt hash, client, timestamp, prompt length) for the generated handoff payload.
|
|
110
|
+
|
|
109
111
|
It does **not** by itself prove pickup or execution. Pickup/execution confirmation comes from lifecycle evidence (claim/completion events, checkpoints, signals, and final `wu:done`).
|
|
110
112
|
|
|
113
|
+
`wu:done` now enforces, for initiative-governed and explicitly delegated WUs:
|
|
114
|
+
|
|
115
|
+
- Delegation lineage exists
|
|
116
|
+
- Claim-time pickup evidence exists
|
|
117
|
+
- Delegation brief attestation exists
|
|
118
|
+
- Attested prompt hash matches recorded `wu:brief` evidence for the target WU
|
|
119
|
+
|
|
111
120
|
---
|
|
112
121
|
|
|
113
122
|
## 2c) Self-Implementation Evidence-Only Flow (WU-2222)
|
|
@@ -133,7 +133,7 @@ files, no manual git, no WU ceremony. Only actual **code changes** need WUs.
|
|
|
133
133
|
| `pnpm wu:brief --id WU-XXX --client <client>` | Generate handoff prompt + record evidence (claimed workspace/branch) |
|
|
134
134
|
| `pnpm wu:brief --id WU-XXX --evidence-only` | Record wu:brief evidence only (self-implementation, no prompt output) |
|
|
135
135
|
| `pnpm wu:brief --id WU-XXX --no-context` | Generate prompt without memory context injection |
|
|
136
|
-
| `pnpm wu:delegate --id WU-XXX --parent-wu <P>` | Generate prompt and
|
|
136
|
+
| `pnpm wu:delegate --id WU-XXX --parent-wu <P>` | Generate prompt, record lineage, and store brief hash attestation |
|
|
137
137
|
| `pnpm wu:sandbox --id WU-XXX -- <cmd>` | Run command through hardened WU sandbox backend |
|
|
138
138
|
|
|
139
139
|
### WU Maintenance
|
|
@@ -10,20 +10,20 @@ This document covers the complete release process for LumenFlow, including versi
|
|
|
10
10
|
|
|
11
11
|
LumenFlow has several components that need to stay in sync:
|
|
12
12
|
|
|
13
|
-
| Component | Location | Deployment
|
|
14
|
-
| -------------- | --------------------------- |
|
|
15
|
-
| npm packages | `packages/@lumenflow/*` | Auto via GitHub Actions on tag push |
|
|
16
|
-
| Starlight docs | `apps/docs/` |
|
|
17
|
-
| Pack registry | `apps/web/` + pack tarballs | Manual deploy + curl publish
|
|
13
|
+
| Component | Location | Deployment |
|
|
14
|
+
| -------------- | --------------------------- | --------------------------------------------------- |
|
|
15
|
+
| npm packages | `packages/@lumenflow/*` | Auto via GitHub Actions on tag push (`publish.yml`) |
|
|
16
|
+
| Starlight docs | `apps/docs/` | Separate GitHub Actions workflow (`docs.yml`) |
|
|
17
|
+
| Pack registry | `apps/web/` + pack tarballs | Manual deploy + curl publish |
|
|
18
18
|
|
|
19
19
|
---
|
|
20
20
|
|
|
21
21
|
## Release Command
|
|
22
22
|
|
|
23
|
-
The `pnpm release` command automates
|
|
23
|
+
The `pnpm release` command automates version bump + tagging, and optionally npm publish:
|
|
24
24
|
|
|
25
25
|
```bash
|
|
26
|
-
pnpm release --release-version 1.3.0
|
|
26
|
+
pnpm release --release-version 1.3.0 --skip-publish
|
|
27
27
|
```
|
|
28
28
|
|
|
29
29
|
### What It Does
|
|
@@ -34,7 +34,7 @@ pnpm release --release-version 1.3.0
|
|
|
34
34
|
4. Bumps all `@lumenflow/*` package versions using micro-worktree isolation
|
|
35
35
|
5. Builds all packages
|
|
36
36
|
6. Creates and pushes git tag `vX.Y.Z`
|
|
37
|
-
7.
|
|
37
|
+
7. Optionally publishes to npm (unless `--skip-publish`)
|
|
38
38
|
|
|
39
39
|
### Options
|
|
40
40
|
|
|
@@ -50,19 +50,16 @@ pnpm release --release-version 1.3.0
|
|
|
50
50
|
### Examples
|
|
51
51
|
|
|
52
52
|
```bash
|
|
53
|
-
# Full release
|
|
54
|
-
pnpm release --release-version 1.3.0
|
|
55
|
-
|
|
56
|
-
# Preview what would happen
|
|
57
|
-
pnpm release --release-version 1.3.0 --dry-run
|
|
58
|
-
|
|
59
53
|
# Version bump and tag only (CI will publish)
|
|
60
54
|
pnpm release --release-version 1.3.0 --skip-publish
|
|
55
|
+
|
|
56
|
+
# Preview what would happen
|
|
57
|
+
pnpm release --release-version 1.3.0 --skip-publish --dry-run
|
|
61
58
|
```
|
|
62
59
|
|
|
63
60
|
### Authentication
|
|
64
61
|
|
|
65
|
-
For npm publish, set one of these environment variables:
|
|
62
|
+
For direct CLI npm publish (without `--skip-publish`), set one of these environment variables:
|
|
66
63
|
|
|
67
64
|
```bash
|
|
68
65
|
export NPM_TOKEN=<your-npm-token>
|
|
@@ -179,8 +176,11 @@ The `.github/workflows/publish.yml` workflow:
|
|
|
179
176
|
|
|
180
177
|
1. Checks out the tagged commit
|
|
181
178
|
2. Installs dependencies
|
|
182
|
-
3. Builds
|
|
183
|
-
4. Publishes to npm with `pnpm -r publish --access public`
|
|
179
|
+
3. Builds publishable workspace packages only (`./packages/**`)
|
|
180
|
+
4. Publishes to npm with `pnpm -r --filter "./packages/**" publish --access public --no-git-checks`
|
|
181
|
+
5. Creates the GitHub release object (`gh release create ... --generate-notes`)
|
|
182
|
+
|
|
183
|
+
`publish.yml` intentionally does **not** build `apps/docs` or `apps/web`, so docs/tooling dependencies cannot block npm publishing.
|
|
184
184
|
|
|
185
185
|
### Required Secrets
|
|
186
186
|
|
|
@@ -226,9 +226,25 @@ The public docs at <https://lumenflow.dev> are built from `apps/docs/`.
|
|
|
226
226
|
|
|
227
227
|
**Automatic Generation:** CLI and config reference docs are automatically generated from code. See [Automatic Docs Generation](./docs-generation.md) for details on the single-source-of-truth pattern.
|
|
228
228
|
|
|
229
|
+
### Build Workflow
|
|
230
|
+
|
|
231
|
+
Starlight docs build in a separate workflow: `.github/workflows/docs.yml`.
|
|
232
|
+
|
|
233
|
+
Trigger:
|
|
234
|
+
|
|
235
|
+
- Tag push (`v*`)
|
|
236
|
+
- Manual run (`workflow_dispatch`)
|
|
237
|
+
|
|
238
|
+
The workflow:
|
|
239
|
+
|
|
240
|
+
1. Installs D2 (`astro-d2` prerequisite)
|
|
241
|
+
2. Builds docs with `pnpm --filter @lumenflow/docs build`
|
|
242
|
+
3. Uploads `apps/docs/dist` as a workflow artifact
|
|
243
|
+
4. Deploys to Vercel when `VERCEL_TOKEN`, `VERCEL_ORG_ID`, and `VERCEL_PROJECT_ID` secrets are configured
|
|
244
|
+
|
|
229
245
|
### Deployment
|
|
230
246
|
|
|
231
|
-
|
|
247
|
+
Production deploy is still manual via Vercel CLI:
|
|
232
248
|
|
|
233
249
|
```bash
|
|
234
250
|
cd apps/docs
|
|
@@ -368,17 +384,17 @@ The `@lumenflow/docs` package requires `d2` (diagramming tool) which is not avai
|
|
|
368
384
|
|
|
369
385
|
### Release Steps (Automated)
|
|
370
386
|
|
|
371
|
-
Use
|
|
387
|
+
Use this as the standard workflow:
|
|
372
388
|
|
|
373
389
|
```bash
|
|
374
390
|
# Preview first
|
|
375
|
-
pnpm release --release-version 1.3.0 --dry-run
|
|
391
|
+
pnpm release --release-version 1.3.0 --skip-publish --dry-run
|
|
376
392
|
|
|
377
|
-
# Execute
|
|
378
|
-
pnpm release --release-version 1.3.0
|
|
393
|
+
# Execute (version bump + tag, publish delegated to GitHub Actions)
|
|
394
|
+
pnpm release --release-version 1.3.0 --skip-publish
|
|
379
395
|
```
|
|
380
396
|
|
|
381
|
-
This handles version bump
|
|
397
|
+
This handles version bump and tag locally; GitHub Actions handles npm publish, docs build, and GitHub release creation.
|
|
382
398
|
|
|
383
399
|
### Release Steps (Manual)
|
|
384
400
|
|
|
@@ -398,21 +414,22 @@ If you need more control:
|
|
|
398
414
|
git push origin v1.3.0
|
|
399
415
|
```
|
|
400
416
|
|
|
401
|
-
3. **Verify npm publish**
|
|
417
|
+
3. **Verify npm publish + GitHub release**
|
|
402
418
|
|
|
403
419
|
```bash
|
|
404
420
|
gh run list --workflow=publish.yml --limit 1
|
|
405
421
|
# Wait for completion, then verify
|
|
406
422
|
npm view @lumenflow/cli version
|
|
423
|
+
gh release view v1.3.0
|
|
407
424
|
```
|
|
408
425
|
|
|
409
|
-
4. **
|
|
426
|
+
4. **Verify docs workflow** (if docs changed)
|
|
410
427
|
|
|
411
428
|
```bash
|
|
412
|
-
gh
|
|
429
|
+
gh run list --workflow=docs.yml --limit 1
|
|
413
430
|
```
|
|
414
431
|
|
|
415
|
-
5. **Deploy Starlight docs** (if content changed)
|
|
432
|
+
5. **Deploy Starlight docs** (if content changed and you are deploying manually)
|
|
416
433
|
|
|
417
434
|
```bash
|
|
418
435
|
cd apps/docs && pnpm build && vercel --prod
|
|
@@ -428,13 +445,13 @@ If you need more control:
|
|
|
428
445
|
|
|
429
446
|
## Keeping Components in Sync
|
|
430
447
|
|
|
431
|
-
| Change Type | npm | Docs
|
|
432
|
-
| ---------------- | ------------- |
|
|
433
|
-
| Bug fix in CLI | Tag + publish | Auto\*
|
|
434
|
-
| New CLI command | Tag + publish | Auto\*
|
|
435
|
-
| Pack changes | Tag + publish | No
|
|
436
|
-
| Docs-only update | No |
|
|
437
|
-
| Full release | Tag + publish |
|
|
448
|
+
| Change Type | npm | Docs | Packs |
|
|
449
|
+
| ---------------- | ------------- | ----------------------- | ------- |
|
|
450
|
+
| Bug fix in CLI | Tag + publish | Auto\* | No |
|
|
451
|
+
| New CLI command | Tag + publish | Auto\* | No |
|
|
452
|
+
| Pack changes | Tag + publish | No | Publish |
|
|
453
|
+
| Docs-only update | No | Build workflow + deploy | No |
|
|
454
|
+
| Full release | Tag + publish | Build workflow + deploy | Publish |
|
|
438
455
|
|
|
439
456
|
\* CLI/config reference docs regenerate automatically during `wu:done` when trigger files change. See [Automatic Docs Generation](./docs-generation.md).
|
|
440
457
|
|