@lumenflow/cli 2.7.0 → 2.8.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 (81) hide show
  1. package/README.md +120 -105
  2. package/dist/__tests__/agent-spawn-coordination.test.js +451 -0
  3. package/dist/__tests__/commands/integrate.test.js +165 -0
  4. package/dist/__tests__/gates-config.test.js +0 -1
  5. package/dist/__tests__/hooks/enforcement.test.js +279 -0
  6. package/dist/__tests__/init-greenfield.test.js +247 -0
  7. package/dist/__tests__/init-quick-ref.test.js +0 -1
  8. package/dist/__tests__/init-template-portability.test.js +0 -1
  9. package/dist/__tests__/init.test.js +27 -0
  10. package/dist/__tests__/initiative-e2e.test.js +442 -0
  11. package/dist/__tests__/initiative-plan-replacement.test.js +0 -1
  12. package/dist/__tests__/memory-integration.test.js +333 -0
  13. package/dist/__tests__/release.test.js +1 -1
  14. package/dist/__tests__/safe-git.test.js +0 -1
  15. package/dist/__tests__/state-doctor.test.js +54 -0
  16. package/dist/__tests__/sync-templates.test.js +255 -0
  17. package/dist/__tests__/wu-create-required-fields.test.js +121 -0
  18. package/dist/__tests__/wu-done-auto-cleanup.test.js +135 -0
  19. package/dist/__tests__/wu-lifecycle-integration.test.js +388 -0
  20. package/dist/backlog-prune.js +0 -1
  21. package/dist/cli-entry-point.js +0 -1
  22. package/dist/commands/integrate.js +229 -0
  23. package/dist/docs-sync.js +46 -0
  24. package/dist/doctor.js +0 -2
  25. package/dist/gates.js +0 -7
  26. package/dist/hooks/enforcement-checks.js +209 -0
  27. package/dist/hooks/enforcement-generator.js +365 -0
  28. package/dist/hooks/enforcement-sync.js +243 -0
  29. package/dist/hooks/index.js +7 -0
  30. package/dist/init.js +256 -13
  31. package/dist/initiative-add-wu.js +0 -2
  32. package/dist/initiative-create.js +0 -3
  33. package/dist/initiative-edit.js +0 -5
  34. package/dist/initiative-plan.js +0 -1
  35. package/dist/initiative-remove-wu.js +0 -2
  36. package/dist/lane-health.js +0 -2
  37. package/dist/lane-suggest.js +0 -1
  38. package/dist/mem-checkpoint.js +0 -2
  39. package/dist/mem-cleanup.js +0 -2
  40. package/dist/mem-context.js +0 -3
  41. package/dist/mem-create.js +0 -2
  42. package/dist/mem-delete.js +0 -3
  43. package/dist/mem-inbox.js +0 -2
  44. package/dist/mem-index.js +0 -1
  45. package/dist/mem-init.js +0 -2
  46. package/dist/mem-profile.js +0 -1
  47. package/dist/mem-promote.js +0 -1
  48. package/dist/mem-ready.js +0 -2
  49. package/dist/mem-signal.js +0 -2
  50. package/dist/mem-start.js +0 -2
  51. package/dist/mem-summarize.js +0 -2
  52. package/dist/metrics-cli.js +1 -1
  53. package/dist/metrics-snapshot.js +1 -1
  54. package/dist/onboarding-smoke-test.js +0 -5
  55. package/dist/orchestrate-init-status.js +0 -1
  56. package/dist/orchestrate-initiative.js +0 -1
  57. package/dist/orchestrate-monitor.js +0 -1
  58. package/dist/plan-create.js +0 -2
  59. package/dist/plan-edit.js +0 -2
  60. package/dist/plan-link.js +0 -2
  61. package/dist/plan-promote.js +0 -2
  62. package/dist/signal-cleanup.js +0 -4
  63. package/dist/state-bootstrap.js +0 -1
  64. package/dist/state-cleanup.js +0 -4
  65. package/dist/state-doctor-fix.js +5 -8
  66. package/dist/state-doctor.js +0 -11
  67. package/dist/sync-templates.js +188 -34
  68. package/dist/wu-block.js +100 -48
  69. package/dist/wu-claim.js +1 -22
  70. package/dist/wu-cleanup.js +0 -1
  71. package/dist/wu-create.js +0 -2
  72. package/dist/wu-done-auto-cleanup.js +139 -0
  73. package/dist/wu-done.js +11 -4
  74. package/dist/wu-edit.js +0 -12
  75. package/dist/wu-preflight.js +0 -1
  76. package/dist/wu-prep.js +0 -1
  77. package/dist/wu-proto.js +0 -1
  78. package/dist/wu-spawn.js +0 -3
  79. package/dist/wu-unblock.js +0 -2
  80. package/dist/wu-validate.js +0 -1
  81. package/package.json +8 -7
@@ -27,7 +27,6 @@ import { PATTERNS, EXIT_CODES, LOG_PREFIX, EMOJI } from '@lumenflow/core/dist/wu
27
27
  import { defaultWorktreeFrom, WU_PATHS } from '@lumenflow/core/dist/wu-paths.js';
28
28
  import { readWURaw } from '@lumenflow/core/dist/wu-yaml.js';
29
29
  import { die } from '@lumenflow/core/dist/error-handler.js';
30
- /* eslint-disable security/detect-non-literal-fs-filename */
31
30
  /**
32
31
  * Detect worktree path from WU YAML or calculate from lane
33
32
  * @param {string} id - WU ID
package/dist/wu-prep.js CHANGED
@@ -1,5 +1,4 @@
1
1
  #!/usr/bin/env node
2
- /* eslint-disable no-console -- CLI command uses console for status output */
3
2
  /**
4
3
  * WU Prep Helper (WU-1223)
5
4
  *
package/dist/wu-proto.js CHANGED
@@ -1,5 +1,4 @@
1
1
  #!/usr/bin/env node
2
- /* eslint-disable no-console -- CLI tool requires console output */
3
2
  /**
4
3
  * WU Proto Helper (WU-1359)
5
4
  *
package/dist/wu-spawn.js CHANGED
@@ -1,5 +1,4 @@
1
1
  #!/usr/bin/env node
2
- /* eslint-disable no-console -- CLI tool requires console output */
3
2
  /**
4
3
  * WU Spawn Helper
5
4
  *
@@ -43,7 +42,6 @@ import { minimatch } from 'minimatch';
43
42
  // WU-2252: Import invariants loader for spawn output injection
44
43
  import { loadInvariants, INVARIANT_TYPES } from '@lumenflow/core/dist/invariants-runner.js';
45
44
  import { validateSpawnArgs, generateExecutionModeSection, generateThinkToolGuidance, recordSpawnToRegistry, formatSpawnRecordedMessage, } from '@lumenflow/core/dist/wu-spawn-helpers.js';
46
- // eslint-disable-next-line sonarjs/deprecation -- legacy factory used by CLI spawns
47
45
  import { SpawnStrategyFactory } from '@lumenflow/core/dist/spawn-strategy.js';
48
46
  import { getConfig } from '@lumenflow/core/dist/lumenflow-config.js';
49
47
  import { generateClientSkillsGuidance, generateSkillsSelectionSection, resolveClientConfig, } from '@lumenflow/core/dist/wu-spawn-skills.js';
@@ -1331,7 +1329,6 @@ async function main() {
1331
1329
  }
1332
1330
  }
1333
1331
  // Create strategy
1334
- // eslint-disable-next-line sonarjs/deprecation -- legacy factory used by CLI spawns
1335
1332
  const strategy = SpawnStrategyFactory.create(clientName);
1336
1333
  const clientContext = { name: clientName, config: resolveClientConfig(config, clientName) };
1337
1334
  if (clientName === 'codex-cli' || args.codex) {
@@ -1,5 +1,4 @@
1
1
  #!/usr/bin/env node
2
- /* eslint-disable no-console -- CLI tool requires console output */
3
2
  /**
4
3
  * WU Unblock Helper
5
4
  *
@@ -55,7 +54,6 @@ function branchExists(branch) {
55
54
  function createWorktree(doc, worktreePath, branchName) {
56
55
  if (!worktreePath)
57
56
  die('Worktree path required to create a worktree');
58
- // eslint-disable-next-line security/detect-non-literal-fs-filename -- CLI tool checks worktree
59
57
  if (existsSync(worktreePath)) {
60
58
  console.warn(`${PREFIX} Worktree ${worktreePath} already exists; skipping creation.`);
61
59
  return;
@@ -112,7 +112,6 @@ function validateAllWUs({ strict = true } = {}) {
112
112
  /**
113
113
  * Main entry point
114
114
  */
115
- // eslint-disable-next-line sonarjs/cognitive-complexity -- Pre-existing complexity, refactor tracked separately
116
115
  async function main() {
117
116
  const args = createWUParser({
118
117
  name: 'wu-validate',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lumenflow/cli",
3
- "version": "2.7.0",
3
+ "version": "2.8.0",
4
4
  "description": "Command-line interface for LumenFlow workflow framework",
5
5
  "keywords": [
6
6
  "lumenflow",
@@ -131,7 +131,8 @@
131
131
  "lane-health": "./dist/lane-health.js",
132
132
  "lane-suggest": "./dist/lane-suggest.js",
133
133
  "state-cleanup": "./dist/state-cleanup.js",
134
- "state-doctor": "./dist/state-doctor.js"
134
+ "state-doctor": "./dist/state-doctor.js",
135
+ "lumenflow-integrate": "./dist/commands/integrate.js"
135
136
  },
136
137
  "files": [
137
138
  "dist",
@@ -149,11 +150,11 @@
149
150
  "pretty-ms": "^9.2.0",
150
151
  "simple-git": "^3.30.0",
151
152
  "yaml": "^2.8.2",
152
- "@lumenflow/core": "2.7.0",
153
- "@lumenflow/memory": "2.7.0",
154
- "@lumenflow/metrics": "2.7.0",
155
- "@lumenflow/initiatives": "2.7.0",
156
- "@lumenflow/agent": "2.7.0"
153
+ "@lumenflow/core": "2.8.0",
154
+ "@lumenflow/memory": "2.8.0",
155
+ "@lumenflow/metrics": "2.8.0",
156
+ "@lumenflow/agent": "2.8.0",
157
+ "@lumenflow/initiatives": "2.8.0"
157
158
  },
158
159
  "devDependencies": {
159
160
  "@vitest/coverage-v8": "^4.0.17",