@lumenflow/cli 2.3.2 → 2.5.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/dist/__tests__/init-config-lanes.test.js +131 -0
- package/dist/__tests__/init-docs-structure.test.js +119 -0
- package/dist/__tests__/init-lane-inference.test.js +125 -0
- package/dist/__tests__/init-onboarding-docs.test.js +132 -0
- package/dist/__tests__/init-quick-ref.test.js +145 -0
- package/dist/__tests__/init-scripts.test.js +96 -0
- package/dist/__tests__/init-template-portability.test.js +97 -0
- package/dist/__tests__/init.test.js +199 -3
- package/dist/__tests__/initiative-add-wu.test.js +420 -0
- package/dist/__tests__/initiative-plan-replacement.test.js +162 -0
- package/dist/__tests__/initiative-remove-wu.test.js +458 -0
- package/dist/__tests__/onboarding-smoke-test.test.js +211 -0
- package/dist/__tests__/path-centralization-cli.test.js +234 -0
- package/dist/__tests__/plan-create.test.js +126 -0
- package/dist/__tests__/plan-edit.test.js +157 -0
- package/dist/__tests__/plan-link.test.js +239 -0
- package/dist/__tests__/plan-promote.test.js +181 -0
- package/dist/__tests__/wu-create-strict.test.js +118 -0
- package/dist/__tests__/wu-edit-strict.test.js +109 -0
- package/dist/__tests__/wu-validate-strict.test.js +113 -0
- package/dist/flow-bottlenecks.js +4 -2
- package/dist/flow-report.js +3 -2
- package/dist/gates.js +202 -2
- package/dist/init.js +720 -40
- package/dist/initiative-add-wu.js +112 -16
- package/dist/initiative-plan.js +3 -2
- package/dist/initiative-remove-wu.js +248 -0
- package/dist/mem-context.js +0 -0
- package/dist/metrics-snapshot.js +3 -2
- package/dist/onboarding-smoke-test.js +400 -0
- package/dist/plan-create.js +199 -0
- package/dist/plan-edit.js +235 -0
- package/dist/plan-link.js +233 -0
- package/dist/plan-promote.js +231 -0
- package/dist/rotate-progress.js +8 -5
- package/dist/spawn-list.js +4 -3
- package/dist/state-bootstrap.js +6 -4
- package/dist/state-doctor-fix.js +5 -4
- package/dist/state-doctor.js +32 -2
- package/dist/trace-gen.js +6 -3
- package/dist/wu-block.js +16 -5
- package/dist/wu-claim.js +15 -9
- package/dist/wu-create.js +50 -2
- package/dist/wu-deps.js +3 -1
- package/dist/wu-done.js +14 -5
- package/dist/wu-edit.js +35 -0
- package/dist/wu-infer-lane.js +3 -1
- package/dist/wu-spawn.js +8 -0
- package/dist/wu-unblock.js +34 -2
- package/dist/wu-validate.js +25 -17
- package/package.json +12 -6
- package/templates/core/AGENTS.md.template +2 -2
- package/dist/__tests__/init-plan.test.js +0 -340
- package/dist/agent-issues-query.d.ts +0 -16
- package/dist/agent-log-issue.d.ts +0 -10
- package/dist/agent-session-end.d.ts +0 -10
- package/dist/agent-session.d.ts +0 -10
- package/dist/backlog-prune.d.ts +0 -84
- package/dist/cli-entry-point.d.ts +0 -8
- package/dist/deps-add.d.ts +0 -91
- package/dist/deps-remove.d.ts +0 -17
- package/dist/docs-sync.d.ts +0 -50
- package/dist/file-delete.d.ts +0 -84
- package/dist/file-edit.d.ts +0 -82
- package/dist/file-read.d.ts +0 -92
- package/dist/file-write.d.ts +0 -90
- package/dist/flow-bottlenecks.d.ts +0 -16
- package/dist/flow-report.d.ts +0 -16
- package/dist/gates.d.ts +0 -94
- package/dist/git-branch.d.ts +0 -65
- package/dist/git-diff.d.ts +0 -58
- package/dist/git-log.d.ts +0 -69
- package/dist/git-status.d.ts +0 -58
- package/dist/guard-locked.d.ts +0 -62
- package/dist/guard-main-branch.d.ts +0 -50
- package/dist/guard-worktree-commit.d.ts +0 -59
- package/dist/index.d.ts +0 -10
- package/dist/init-plan.d.ts +0 -80
- package/dist/init-plan.js +0 -337
- package/dist/init.d.ts +0 -46
- package/dist/initiative-add-wu.d.ts +0 -22
- package/dist/initiative-bulk-assign-wus.d.ts +0 -16
- package/dist/initiative-create.d.ts +0 -28
- package/dist/initiative-edit.d.ts +0 -34
- package/dist/initiative-list.d.ts +0 -12
- package/dist/initiative-status.d.ts +0 -11
- package/dist/lumenflow-upgrade.d.ts +0 -103
- package/dist/mem-checkpoint.d.ts +0 -16
- package/dist/mem-cleanup.d.ts +0 -29
- package/dist/mem-create.d.ts +0 -17
- package/dist/mem-export.d.ts +0 -10
- package/dist/mem-inbox.d.ts +0 -35
- package/dist/mem-init.d.ts +0 -15
- package/dist/mem-ready.d.ts +0 -16
- package/dist/mem-signal.d.ts +0 -16
- package/dist/mem-start.d.ts +0 -16
- package/dist/mem-summarize.d.ts +0 -22
- package/dist/mem-triage.d.ts +0 -22
- package/dist/metrics-cli.d.ts +0 -90
- package/dist/metrics-snapshot.d.ts +0 -18
- package/dist/orchestrate-init-status.d.ts +0 -11
- package/dist/orchestrate-initiative.d.ts +0 -12
- package/dist/orchestrate-monitor.d.ts +0 -11
- package/dist/release.d.ts +0 -117
- package/dist/rotate-progress.d.ts +0 -48
- package/dist/session-coordinator.d.ts +0 -74
- package/dist/spawn-list.d.ts +0 -16
- package/dist/state-bootstrap.d.ts +0 -92
- package/dist/sync-templates.d.ts +0 -52
- package/dist/trace-gen.d.ts +0 -84
- package/dist/validate-agent-skills.d.ts +0 -50
- package/dist/validate-agent-sync.d.ts +0 -36
- package/dist/validate-backlog-sync.d.ts +0 -37
- package/dist/validate-skills-spec.d.ts +0 -40
- package/dist/validate.d.ts +0 -60
- package/dist/wu-block.d.ts +0 -16
- package/dist/wu-claim.d.ts +0 -74
- package/dist/wu-cleanup.d.ts +0 -35
- package/dist/wu-create.d.ts +0 -69
- package/dist/wu-delete.d.ts +0 -21
- package/dist/wu-deps.d.ts +0 -13
- package/dist/wu-done.d.ts +0 -225
- package/dist/wu-edit.d.ts +0 -63
- package/dist/wu-infer-lane.d.ts +0 -17
- package/dist/wu-preflight.d.ts +0 -47
- package/dist/wu-prune.d.ts +0 -16
- package/dist/wu-recover.d.ts +0 -37
- package/dist/wu-release.d.ts +0 -19
- package/dist/wu-repair.d.ts +0 -60
- package/dist/wu-spawn-completion.d.ts +0 -10
- package/dist/wu-spawn.d.ts +0 -192
- package/dist/wu-status.d.ts +0 -25
- package/dist/wu-unblock.d.ts +0 -16
- package/dist/wu-unlock-lane.d.ts +0 -19
- package/dist/wu-validate.d.ts +0 -16
package/dist/mem-export.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
/**
|
|
3
|
-
* Memory Export CLI (WU-1137)
|
|
4
|
-
*
|
|
5
|
-
* Render memory.jsonl as markdown or JSON with basic filters.
|
|
6
|
-
*
|
|
7
|
-
* Usage:
|
|
8
|
-
* pnpm mem:export [--wu WU-1234] [--type <type>] [--lifecycle <lifecycle>] [--format <markdown|json>] [--quiet]
|
|
9
|
-
*/
|
|
10
|
-
export {};
|
package/dist/mem-inbox.d.ts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
/**
|
|
3
|
-
* Memory Inbox CLI (WU-1474)
|
|
4
|
-
*
|
|
5
|
-
* Read coordination signals from other agents for real-time awareness
|
|
6
|
-
* of parallel agent progress. Filter by lane, WU, or time range.
|
|
7
|
-
* Supports watch mode for continuous monitoring.
|
|
8
|
-
*
|
|
9
|
-
* Includes audit logging to .lumenflow/telemetry/tools.ndjson.
|
|
10
|
-
*
|
|
11
|
-
* WU-2202: Added dependency validation before operations to prevent silent
|
|
12
|
-
* failures when node_modules is corrupted or incomplete.
|
|
13
|
-
*
|
|
14
|
-
* Usage:
|
|
15
|
-
* pnpm mem:inbox [--lane <name>] [--wu <id>] [--since <time>] [--watch]
|
|
16
|
-
*
|
|
17
|
-
* @see {@link tools/lib/mem-signal-core.mjs} - Core logic
|
|
18
|
-
* @see {@link tools/__tests__/mem-inbox.test.mjs} - Tests
|
|
19
|
-
*/
|
|
20
|
-
/**
|
|
21
|
-
* Format signal count for --count flag output
|
|
22
|
-
* WU-2401: Lightweight polling for orchestrators
|
|
23
|
-
*
|
|
24
|
-
* @param {number} count - Number of unread signals
|
|
25
|
-
* @returns {string} Formatted count string
|
|
26
|
-
*/
|
|
27
|
-
export declare function formatCount(count: any): string;
|
|
28
|
-
/**
|
|
29
|
-
* Parse relative time string to Date object
|
|
30
|
-
* WU-1849: Replaced custom regex with ms package
|
|
31
|
-
*
|
|
32
|
-
* @param {string} timeStr - Time string like "1h", "30m", "2d", or ISO date
|
|
33
|
-
* @returns {Date} Parsed date
|
|
34
|
-
*/
|
|
35
|
-
export declare function parseTimeString(timeStr: any): Date;
|
package/dist/mem-init.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
/**
|
|
3
|
-
* Memory Init CLI (WU-1464)
|
|
4
|
-
*
|
|
5
|
-
* Initialize memory layer in the repository.
|
|
6
|
-
* Creates .lumenflow/memory/ directory with memory.jsonl and config.yaml.
|
|
7
|
-
*
|
|
8
|
-
* Includes audit logging to .lumenflow/telemetry/tools.ndjson.
|
|
9
|
-
*
|
|
10
|
-
* Usage:
|
|
11
|
-
* pnpm mem:init [--base-dir <path>] [--quiet]
|
|
12
|
-
*
|
|
13
|
-
* @see {@link tools/lib/mem-init-core.mjs} - Core logic
|
|
14
|
-
*/
|
|
15
|
-
export {};
|
package/dist/mem-ready.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
/**
|
|
3
|
-
* Memory Ready CLI (WU-1468)
|
|
4
|
-
*
|
|
5
|
-
* Deterministic ready-work query for "what next?" oracle.
|
|
6
|
-
* Returns unblocked open nodes, ordered by priority then createdAt.
|
|
7
|
-
*
|
|
8
|
-
* Usage:
|
|
9
|
-
* pnpm mem:ready --wu WU-1234 [--type <type>] [--format <json|human>] [--quiet]
|
|
10
|
-
*
|
|
11
|
-
* Includes audit logging to .lumenflow/telemetry/tools.ndjson.
|
|
12
|
-
*
|
|
13
|
-
* @see {@link tools/lib/mem-ready-core.mjs} - Core logic
|
|
14
|
-
* @see {@link tools/__tests__/mem-ready.test.mjs} - Tests
|
|
15
|
-
*/
|
|
16
|
-
export {};
|
package/dist/mem-signal.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
/**
|
|
3
|
-
* Memory Signal CLI (WU-1473)
|
|
4
|
-
*
|
|
5
|
-
* Send coordination signals between parallel agents for sub-100ms
|
|
6
|
-
* multi-agent swarm coordination without git sync latency.
|
|
7
|
-
*
|
|
8
|
-
* Includes audit logging to .lumenflow/telemetry/tools.ndjson.
|
|
9
|
-
*
|
|
10
|
-
* Usage:
|
|
11
|
-
* pnpm mem:signal 'message' [--wu <id>] [--lane <name>] [--quiet]
|
|
12
|
-
*
|
|
13
|
-
* @see {@link tools/lib/mem-signal-core.mjs} - Core logic
|
|
14
|
-
* @see {@link tools/__tests__/mem-signal.test.mjs} - Tests
|
|
15
|
-
*/
|
|
16
|
-
export {};
|
package/dist/mem-start.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
/**
|
|
3
|
-
* Memory Start CLI (WU-1466)
|
|
4
|
-
*
|
|
5
|
-
* Create a session node linked to a WU.
|
|
6
|
-
* Called by wu:claim enhancement for context restoration after /clear.
|
|
7
|
-
*
|
|
8
|
-
* Includes audit logging to .lumenflow/telemetry/tools.ndjson.
|
|
9
|
-
*
|
|
10
|
-
* Usage:
|
|
11
|
-
* pnpm mem:start --wu WU-1234 [--agent-type <type>] [--context-tier <tier>] [--quiet]
|
|
12
|
-
*
|
|
13
|
-
* @see {@link tools/lib/mem-start-core.mjs} - Core logic
|
|
14
|
-
* @see {@link tools/__tests__/mem-start.test.mjs} - Tests
|
|
15
|
-
*/
|
|
16
|
-
export {};
|
package/dist/mem-summarize.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
/**
|
|
3
|
-
* Memory Summarize CLI (WU-1471)
|
|
4
|
-
*
|
|
5
|
-
* Rollup older memory nodes into summary nodes for compaction.
|
|
6
|
-
* Implements forgetting as first-class feature.
|
|
7
|
-
*
|
|
8
|
-
* Features:
|
|
9
|
-
* - Aggregate checkpoint/note/discovery nodes into summaries
|
|
10
|
-
* - Mark originals for cleanup after summary creation
|
|
11
|
-
* - Respect lifecycle TTL (ephemeral, session, wu, project)
|
|
12
|
-
* - Support dry-run mode for preview
|
|
13
|
-
*
|
|
14
|
-
* Usage:
|
|
15
|
-
* pnpm mem:summarize --wu WU-1234 # Create summary from WU nodes
|
|
16
|
-
* pnpm mem:summarize --wu WU-1234 --dry-run # Preview without changes
|
|
17
|
-
* pnpm mem:summarize --wu WU-1234 --json # Output as JSON
|
|
18
|
-
*
|
|
19
|
-
* @see {@link tools/lib/mem-summarize-core.mjs} - Core logic
|
|
20
|
-
* @see {@link tools/__tests__/mem-summarize.test.mjs} - Tests
|
|
21
|
-
*/
|
|
22
|
-
export {};
|
package/dist/mem-triage.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
/**
|
|
3
|
-
* Memory Triage CLI (WU-1470)
|
|
4
|
-
*
|
|
5
|
-
* Review discovery nodes and promote to WUs or archive.
|
|
6
|
-
*
|
|
7
|
-
* Features:
|
|
8
|
-
* - List open discovery nodes
|
|
9
|
-
* - Promote discovery to WU (integrates with wu:create)
|
|
10
|
-
* - Archive discovery without promotion
|
|
11
|
-
* - Interactive mode for human review
|
|
12
|
-
*
|
|
13
|
-
* Usage:
|
|
14
|
-
* pnpm mem:triage # List open discoveries
|
|
15
|
-
* pnpm mem:triage --wu WU-1234 # List discoveries for specific WU
|
|
16
|
-
* pnpm mem:triage --promote mem-aaa1 --lane "Operations: Tooling"
|
|
17
|
-
* pnpm mem:triage --archive mem-aaa1 --reason "Duplicate"
|
|
18
|
-
*
|
|
19
|
-
* @see {@link tools/lib/mem-triage-core.mjs} - Core logic
|
|
20
|
-
* @see {@link tools/__tests__/mem-triage.test.mjs} - Tests
|
|
21
|
-
*/
|
|
22
|
-
export {};
|
package/dist/metrics-cli.d.ts
DELETED
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
/**
|
|
3
|
-
* Unified Metrics CLI with subcommands (WU-1110)
|
|
4
|
-
*
|
|
5
|
-
* Provides lanes, dora, and flow metrics subcommands in a single CLI.
|
|
6
|
-
*
|
|
7
|
-
* Usage:
|
|
8
|
-
* pnpm metrics # All metrics, JSON output
|
|
9
|
-
* pnpm metrics lanes # Lane health only
|
|
10
|
-
* pnpm metrics dora # DORA metrics only
|
|
11
|
-
* pnpm metrics flow # Flow state only
|
|
12
|
-
* pnpm metrics --format table # Table output
|
|
13
|
-
* pnpm metrics --days 30 # 30 day window
|
|
14
|
-
* pnpm metrics --output metrics.json # Custom output file
|
|
15
|
-
* pnpm metrics --dry-run # Preview without writing
|
|
16
|
-
*
|
|
17
|
-
* @module metrics-cli
|
|
18
|
-
*/
|
|
19
|
-
import { type WUMetrics, type GitCommit, type SkipGatesEntry, type DORAMetrics, type FlowState, type LaneHealth } from '@lumenflow/metrics';
|
|
20
|
-
/** Valid subcommands */
|
|
21
|
-
export type MetricsSubcommand = 'lanes' | 'dora' | 'flow' | 'all';
|
|
22
|
-
/** Output format types */
|
|
23
|
-
export type MetricsFormat = 'json' | 'table';
|
|
24
|
-
/** Parsed command result */
|
|
25
|
-
export interface MetricsCommandResult {
|
|
26
|
-
subcommand: MetricsSubcommand;
|
|
27
|
-
days: number;
|
|
28
|
-
format: MetricsFormat;
|
|
29
|
-
output: string;
|
|
30
|
-
dryRun: boolean;
|
|
31
|
-
}
|
|
32
|
-
/** Lane health result from WUs */
|
|
33
|
-
export interface LaneHealthResult {
|
|
34
|
-
lanes: LaneHealth[];
|
|
35
|
-
totalActive: number;
|
|
36
|
-
totalBlocked: number;
|
|
37
|
-
totalCompleted: number;
|
|
38
|
-
}
|
|
39
|
-
/** DORA calculation input */
|
|
40
|
-
export interface DoraCalculationInput {
|
|
41
|
-
commits: GitCommit[];
|
|
42
|
-
wuMetrics: WUMetrics[];
|
|
43
|
-
skipGatesEntries: SkipGatesEntry[];
|
|
44
|
-
weekStart: Date;
|
|
45
|
-
weekEnd: Date;
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Parse command line arguments
|
|
49
|
-
*/
|
|
50
|
-
export declare function parseCommand(argv: string[]): MetricsCommandResult;
|
|
51
|
-
/**
|
|
52
|
-
* Calculate lane health from WU metrics
|
|
53
|
-
*/
|
|
54
|
-
export declare function calculateLaneHealthFromWUs(wuMetrics: WUMetrics[]): LaneHealthResult;
|
|
55
|
-
/**
|
|
56
|
-
* Calculate DORA metrics from data
|
|
57
|
-
*/
|
|
58
|
-
export declare function calculateDoraFromData(input: DoraCalculationInput): DORAMetrics;
|
|
59
|
-
/**
|
|
60
|
-
* Calculate flow state from WU metrics
|
|
61
|
-
*/
|
|
62
|
-
export declare function calculateFlowFromWUs(wuMetrics: WUMetrics[]): FlowState;
|
|
63
|
-
/**
|
|
64
|
-
* Format lanes output
|
|
65
|
-
*/
|
|
66
|
-
export declare function formatLanesOutput(lanes: LaneHealthResult, format: MetricsFormat): string;
|
|
67
|
-
/**
|
|
68
|
-
* Format DORA output
|
|
69
|
-
*/
|
|
70
|
-
export declare function formatDoraOutput(dora: DORAMetrics, format: MetricsFormat): string;
|
|
71
|
-
/**
|
|
72
|
-
* Format flow output
|
|
73
|
-
*/
|
|
74
|
-
export declare function formatFlowOutput(flow: FlowState, format: MetricsFormat): string;
|
|
75
|
-
/**
|
|
76
|
-
* Run lanes subcommand
|
|
77
|
-
*/
|
|
78
|
-
export declare function runLanesSubcommand(opts: MetricsCommandResult): Promise<void>;
|
|
79
|
-
/**
|
|
80
|
-
* Run dora subcommand
|
|
81
|
-
*/
|
|
82
|
-
export declare function runDoraSubcommand(opts: MetricsCommandResult): Promise<void>;
|
|
83
|
-
/**
|
|
84
|
-
* Run flow subcommand
|
|
85
|
-
*/
|
|
86
|
-
export declare function runFlowSubcommand(opts: MetricsCommandResult): Promise<void>;
|
|
87
|
-
/**
|
|
88
|
-
* Run all metrics (default)
|
|
89
|
-
*/
|
|
90
|
-
export declare function runAllSubcommand(opts: MetricsCommandResult): Promise<void>;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
/**
|
|
3
|
-
* Metrics Snapshot Capture CLI (WU-1018)
|
|
4
|
-
*
|
|
5
|
-
* Captures DORA metrics, lane health, and flow state snapshots.
|
|
6
|
-
*
|
|
7
|
-
* Usage:
|
|
8
|
-
* pnpm metrics:snapshot # All metrics, JSON output
|
|
9
|
-
* pnpm metrics:snapshot --type dora # DORA metrics only
|
|
10
|
-
* pnpm metrics:snapshot --type lanes # Lane health only
|
|
11
|
-
* pnpm metrics:snapshot --type flow # Flow state only
|
|
12
|
-
* pnpm metrics:snapshot --dry-run # Preview without writing
|
|
13
|
-
* pnpm metrics:snapshot --output metrics.json
|
|
14
|
-
*
|
|
15
|
-
* @module metrics-snapshot
|
|
16
|
-
* @see {@link @lumenflow/metrics/flow/capture-metrics-snapshot}
|
|
17
|
-
*/
|
|
18
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
/**
|
|
3
|
-
* Orchestrate Initiative CLI
|
|
4
|
-
*
|
|
5
|
-
* Orchestrate initiative execution with parallel agent spawning.
|
|
6
|
-
* Builds execution plan based on WU dependencies and manages wave-based execution.
|
|
7
|
-
*
|
|
8
|
-
* Usage:
|
|
9
|
-
* pnpm orchestrate:initiative --initiative INIT-001
|
|
10
|
-
* pnpm orchestrate:initiative --initiative INIT-001 --dry-run
|
|
11
|
-
*/
|
|
12
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
/**
|
|
3
|
-
* Orchestrate Monitor CLI
|
|
4
|
-
*
|
|
5
|
-
* Monitors spawned agent progress using mem:inbox signals.
|
|
6
|
-
* Designed to prevent context exhaustion by using compact signal output.
|
|
7
|
-
*
|
|
8
|
-
* Usage:
|
|
9
|
-
* pnpm orchestrate:monitor --since 30m
|
|
10
|
-
*/
|
|
11
|
-
export {};
|
package/dist/release.d.ts
DELETED
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
/**
|
|
3
|
-
* Release Command
|
|
4
|
-
*
|
|
5
|
-
* Orchestrates npm release for all @lumenflow/* packages using micro-worktree isolation.
|
|
6
|
-
*
|
|
7
|
-
* Features:
|
|
8
|
-
* - Validates semver version format
|
|
9
|
-
* - Bumps all @lumenflow/* package versions atomically
|
|
10
|
-
* - Uses micro-worktree isolation for version commit (no main branch pollution)
|
|
11
|
-
* - Builds all packages via turbo
|
|
12
|
-
* - Publishes to npm with proper auth (requires NPM_TOKEN)
|
|
13
|
-
* - Creates git tag vX.Y.Z
|
|
14
|
-
*
|
|
15
|
-
* Usage:
|
|
16
|
-
* pnpm release --release-version 1.3.0
|
|
17
|
-
* pnpm release --release-version 1.3.0 --dry-run # Preview without making changes
|
|
18
|
-
* pnpm release --release-version 1.3.0 --skip-publish # Bump and tag only (no npm publish)
|
|
19
|
-
*
|
|
20
|
-
* WU-1085: The --release-version flag was renamed from --version to avoid conflict
|
|
21
|
-
* with the standard CLI --version flag that shows the CLI version.
|
|
22
|
-
*
|
|
23
|
-
* WU-1074: Add release command for npm publishing
|
|
24
|
-
*/
|
|
25
|
-
import { getGitForCwd } from '@lumenflow/core/dist/git-adapter.js';
|
|
26
|
-
/**
|
|
27
|
-
* Release command options
|
|
28
|
-
* WU-1085: Renamed version to releaseVersion to avoid CLI --version conflict
|
|
29
|
-
*/
|
|
30
|
-
export interface ReleaseOptions {
|
|
31
|
-
releaseVersion: string;
|
|
32
|
-
dryRun?: boolean;
|
|
33
|
-
skipPublish?: boolean;
|
|
34
|
-
skipBuild?: boolean;
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Validate that a string is a valid semver version
|
|
38
|
-
*
|
|
39
|
-
* @param version - Version string to validate
|
|
40
|
-
* @returns true if valid semver, false otherwise
|
|
41
|
-
*/
|
|
42
|
-
export declare function validateSemver(version: string): boolean;
|
|
43
|
-
/**
|
|
44
|
-
* Find all public @lumenflow/* package.json paths
|
|
45
|
-
*
|
|
46
|
-
* @param baseDir - Base directory to search from (defaults to cwd)
|
|
47
|
-
* @returns Array of absolute paths to package.json files
|
|
48
|
-
*/
|
|
49
|
-
export declare function findPackageJsonPaths(baseDir?: string): string[];
|
|
50
|
-
/**
|
|
51
|
-
* Update version in specified package.json files
|
|
52
|
-
*
|
|
53
|
-
* @param paths - Array of package.json paths
|
|
54
|
-
* @param version - New version string
|
|
55
|
-
*/
|
|
56
|
-
export declare function updatePackageVersions(paths: string[], version: string): Promise<void>;
|
|
57
|
-
/**
|
|
58
|
-
* Build commit message for version bump
|
|
59
|
-
*
|
|
60
|
-
* @param version - New version string
|
|
61
|
-
* @returns Commit message
|
|
62
|
-
*/
|
|
63
|
-
export declare function buildCommitMessage(version: string): string;
|
|
64
|
-
/**
|
|
65
|
-
* Build git tag name from version
|
|
66
|
-
*
|
|
67
|
-
* @param version - Version string
|
|
68
|
-
* @returns Git tag name with 'v' prefix
|
|
69
|
-
*/
|
|
70
|
-
export declare function buildTagName(version: string): string;
|
|
71
|
-
/**
|
|
72
|
-
* Check if npm authentication is available
|
|
73
|
-
*
|
|
74
|
-
* Checks for auth in this order:
|
|
75
|
-
* 1. NPM_TOKEN environment variable
|
|
76
|
-
* 2. NODE_AUTH_TOKEN environment variable
|
|
77
|
-
* 3. Auth token in specified .npmrc file (or ~/.npmrc by default)
|
|
78
|
-
*
|
|
79
|
-
* @param npmrcPath - Optional path to .npmrc file (defaults to ~/.npmrc)
|
|
80
|
-
* @returns true if any auth method is found
|
|
81
|
-
*/
|
|
82
|
-
export declare function hasNpmAuth(npmrcPath?: string): boolean;
|
|
83
|
-
/**
|
|
84
|
-
* Check if the project is in changeset pre-release mode
|
|
85
|
-
*
|
|
86
|
-
* Changeset pre mode is indicated by the presence of .changeset/pre.json
|
|
87
|
-
*
|
|
88
|
-
* @param baseDir - Base directory to check (defaults to cwd)
|
|
89
|
-
* @returns true if in pre-release mode
|
|
90
|
-
*/
|
|
91
|
-
export declare function isInChangesetPreMode(baseDir?: string): boolean;
|
|
92
|
-
/**
|
|
93
|
-
* Exit changeset pre-release mode by removing .changeset/pre.json
|
|
94
|
-
*
|
|
95
|
-
* This is safe to call even if not in pre mode (no-op if file doesn't exist)
|
|
96
|
-
*
|
|
97
|
-
* @param baseDir - Base directory to operate in (defaults to cwd)
|
|
98
|
-
*/
|
|
99
|
-
export declare function exitChangesetPreMode(baseDir?: string): void;
|
|
100
|
-
/**
|
|
101
|
-
* Push a git tag to origin, bypassing pre-push hooks via LUMENFLOW_FORCE
|
|
102
|
-
*
|
|
103
|
-
* This is necessary because the release script runs in a micro-worktree context
|
|
104
|
-
* and pre-push hooks may block tag pushes. The force is logged and requires
|
|
105
|
-
* a reason for audit purposes.
|
|
106
|
-
*
|
|
107
|
-
* @param git - SimpleGit instance
|
|
108
|
-
* @param tagName - Name of the tag to push
|
|
109
|
-
* @param reason - Reason for bypassing hooks (for audit log)
|
|
110
|
-
*/
|
|
111
|
-
export declare function pushTagWithForce(git: ReturnType<typeof getGitForCwd>, tagName: string, reason?: string): Promise<void>;
|
|
112
|
-
/**
|
|
113
|
-
* Main release function
|
|
114
|
-
* WU-1085: Renamed --version to --release-version to avoid conflict with CLI --version flag
|
|
115
|
-
*/
|
|
116
|
-
declare function main(): Promise<void>;
|
|
117
|
-
export { main };
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
/**
|
|
3
|
-
* Rotate Progress CLI Command
|
|
4
|
-
*
|
|
5
|
-
* Moves completed WUs from status.md In Progress section to Completed section.
|
|
6
|
-
* Keeps the status file tidy by archiving done work.
|
|
7
|
-
*
|
|
8
|
-
* WU-1112: INIT-003 Phase 6 - Migrate remaining Tier 1 tools
|
|
9
|
-
*
|
|
10
|
-
* Usage:
|
|
11
|
-
* pnpm rotate:progress
|
|
12
|
-
* pnpm rotate:progress --dry-run
|
|
13
|
-
* pnpm rotate:progress --limit 10
|
|
14
|
-
*/
|
|
15
|
-
/**
|
|
16
|
-
* Arguments for rotate-progress command
|
|
17
|
-
*/
|
|
18
|
-
export interface RotateArgs {
|
|
19
|
-
/** Dry run - show changes without writing */
|
|
20
|
-
dryRun?: boolean;
|
|
21
|
-
/** Maximum number of WUs to rotate */
|
|
22
|
-
limit?: number;
|
|
23
|
-
/** Show help */
|
|
24
|
-
help?: boolean;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Parse command line arguments for rotate-progress
|
|
28
|
-
*
|
|
29
|
-
* @param argv - Process argv array
|
|
30
|
-
* @returns Parsed arguments
|
|
31
|
-
*/
|
|
32
|
-
export declare function parseRotateArgs(argv: string[]): RotateArgs;
|
|
33
|
-
/**
|
|
34
|
-
* Find WUs in the In Progress section that have status=done in YAML
|
|
35
|
-
*
|
|
36
|
-
* @param statusContent - Content of status.md file
|
|
37
|
-
* @param wuStatuses - Map of WU IDs to their statuses from YAML
|
|
38
|
-
* @returns Array of WU IDs that should be moved to Completed
|
|
39
|
-
*/
|
|
40
|
-
export declare function findCompletedWUs(statusContent: string, wuStatuses: Map<string, string>): string[];
|
|
41
|
-
/**
|
|
42
|
-
* Build the rotated status.md content
|
|
43
|
-
*
|
|
44
|
-
* @param statusContent - Original status.md content
|
|
45
|
-
* @param completedWUs - WU IDs to move to Completed
|
|
46
|
-
* @returns Updated status.md content
|
|
47
|
-
*/
|
|
48
|
-
export declare function buildRotatedContent(statusContent: string, completedWUs: string[]): string;
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
/**
|
|
3
|
-
* Session Coordinator CLI Command
|
|
4
|
-
*
|
|
5
|
-
* Manages agent sessions - starting, stopping, status, and handoffs.
|
|
6
|
-
* Sessions track which agent is working on which WU and facilitate
|
|
7
|
-
* coordination between multiple agents.
|
|
8
|
-
*
|
|
9
|
-
* WU-1112: INIT-003 Phase 6 - Migrate remaining Tier 1 tools
|
|
10
|
-
*
|
|
11
|
-
* Usage:
|
|
12
|
-
* pnpm session:start --wu WU-1112 --agent claude-code
|
|
13
|
-
* pnpm session:stop --reason "Completed work"
|
|
14
|
-
* pnpm session:status
|
|
15
|
-
* pnpm session:handoff --wu WU-1112 --agent cursor
|
|
16
|
-
*/
|
|
17
|
-
/**
|
|
18
|
-
* Session subcommands
|
|
19
|
-
*/
|
|
20
|
-
export declare enum SessionCommand {
|
|
21
|
-
START = "start",
|
|
22
|
-
STOP = "stop",
|
|
23
|
-
STATUS = "status",
|
|
24
|
-
HANDOFF = "handoff"
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Arguments for session-coordinator command
|
|
28
|
-
*/
|
|
29
|
-
export interface SessionArgs {
|
|
30
|
-
/** Subcommand to run */
|
|
31
|
-
command?: SessionCommand | string;
|
|
32
|
-
/** WU ID for the session */
|
|
33
|
-
wuId?: string;
|
|
34
|
-
/** Agent type (e.g., claude-code, cursor, aider) */
|
|
35
|
-
agent?: string;
|
|
36
|
-
/** Reason for stopping session */
|
|
37
|
-
reason?: string;
|
|
38
|
-
/** Show help */
|
|
39
|
-
help?: boolean;
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Validation result for session command
|
|
43
|
-
*/
|
|
44
|
-
export interface SessionValidationResult {
|
|
45
|
-
valid: boolean;
|
|
46
|
-
error?: string;
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Session state stored in current.json
|
|
50
|
-
*/
|
|
51
|
-
export interface SessionState {
|
|
52
|
-
/** WU being worked on */
|
|
53
|
-
wuId: string;
|
|
54
|
-
/** Agent working on the WU */
|
|
55
|
-
agent: string;
|
|
56
|
-
/** Session start timestamp */
|
|
57
|
-
startedAt: string;
|
|
58
|
-
/** Last activity timestamp */
|
|
59
|
-
lastActivity: string;
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Parse command line arguments for session-coordinator
|
|
63
|
-
*
|
|
64
|
-
* @param argv - Process argv array
|
|
65
|
-
* @returns Parsed arguments
|
|
66
|
-
*/
|
|
67
|
-
export declare function parseSessionArgs(argv: string[]): SessionArgs;
|
|
68
|
-
/**
|
|
69
|
-
* Validate session command arguments
|
|
70
|
-
*
|
|
71
|
-
* @param args - Parsed session arguments
|
|
72
|
-
* @returns Validation result
|
|
73
|
-
*/
|
|
74
|
-
export declare function validateSessionCommand(args: SessionArgs): SessionValidationResult;
|
package/dist/spawn-list.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
/**
|
|
3
|
-
* Spawn List Command (WU-1950)
|
|
4
|
-
*
|
|
5
|
-
* Displays spawn trees for WUs or initiatives.
|
|
6
|
-
* Shows parent-child relationships with status indicators.
|
|
7
|
-
*
|
|
8
|
-
* Usage:
|
|
9
|
-
* pnpm spawn:list --wu WU-XXX # Spawns for a specific WU
|
|
10
|
-
* pnpm spawn:list --initiative INIT-XXX # All spawns in an initiative
|
|
11
|
-
* pnpm spawn:list --json # JSON output
|
|
12
|
-
*
|
|
13
|
-
* @see {@link tools/lib/spawn-tree.mjs} - Tree builder
|
|
14
|
-
* @see {@link tools/__tests__/spawn-list.test.mjs} - Tests
|
|
15
|
-
*/
|
|
16
|
-
export {};
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
/**
|
|
3
|
-
* State Bootstrap Command
|
|
4
|
-
*
|
|
5
|
-
* One-time migration utility from WU YAMLs to event-sourced state store.
|
|
6
|
-
* Reads all WU YAML files and generates corresponding events in the state store.
|
|
7
|
-
*
|
|
8
|
-
* WU-1107: INIT-003 Phase 3c - Migrate state-bootstrap.mjs from PatientPath
|
|
9
|
-
*
|
|
10
|
-
* Usage:
|
|
11
|
-
* pnpm state:bootstrap # Dry-run mode (shows what would be done)
|
|
12
|
-
* pnpm state:bootstrap --execute # Apply changes
|
|
13
|
-
*/
|
|
14
|
-
/**
|
|
15
|
-
* Default configuration for state bootstrap
|
|
16
|
-
*/
|
|
17
|
-
export declare const STATE_BOOTSTRAP_DEFAULTS: {
|
|
18
|
-
/** Default WU directory path */
|
|
19
|
-
wuDir: string;
|
|
20
|
-
/** Default state directory path */
|
|
21
|
-
stateDir: string;
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* Arguments for state-bootstrap command
|
|
25
|
-
*/
|
|
26
|
-
export interface StateBootstrapArgs {
|
|
27
|
-
dryRun: boolean;
|
|
28
|
-
wuDir: string;
|
|
29
|
-
stateDir: string;
|
|
30
|
-
force: boolean;
|
|
31
|
-
help?: boolean;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Minimal WU information needed for bootstrap event generation
|
|
35
|
-
*/
|
|
36
|
-
export interface WuBootstrapInfo {
|
|
37
|
-
id: string;
|
|
38
|
-
status: string;
|
|
39
|
-
lane: string;
|
|
40
|
-
title: string;
|
|
41
|
-
created?: string;
|
|
42
|
-
claimed_at?: string;
|
|
43
|
-
completed_at?: string;
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Bootstrap event to be written to state store
|
|
47
|
-
*/
|
|
48
|
-
export interface BootstrapEvent {
|
|
49
|
-
type: 'claim' | 'complete' | 'block' | 'unblock' | 'release';
|
|
50
|
-
wuId: string;
|
|
51
|
-
timestamp: string;
|
|
52
|
-
lane?: string;
|
|
53
|
-
title?: string;
|
|
54
|
-
reason?: string;
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* Result of bootstrap operation
|
|
58
|
-
*/
|
|
59
|
-
export interface BootstrapResult {
|
|
60
|
-
success: boolean;
|
|
61
|
-
eventsGenerated: number;
|
|
62
|
-
eventsWritten: number;
|
|
63
|
-
skipped: number;
|
|
64
|
-
warnings: string[];
|
|
65
|
-
error?: string;
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* Parse command line arguments for state-bootstrap
|
|
69
|
-
*/
|
|
70
|
-
export declare function parseStateBootstrapArgs(argv: string[]): StateBootstrapArgs;
|
|
71
|
-
/**
|
|
72
|
-
* Infer events from a WU based on its current status
|
|
73
|
-
*
|
|
74
|
-
* Event generation rules:
|
|
75
|
-
* - ready: No events (WU not yet claimed)
|
|
76
|
-
* - in_progress: Generate claim event
|
|
77
|
-
* - blocked: Generate claim + block events
|
|
78
|
-
* - done/completed: Generate claim + complete events
|
|
79
|
-
*/
|
|
80
|
-
export declare function inferEventsFromWu(wu: WuBootstrapInfo): BootstrapEvent[];
|
|
81
|
-
/**
|
|
82
|
-
* Generate all bootstrap events from a list of WUs, ordered chronologically
|
|
83
|
-
*/
|
|
84
|
-
export declare function generateBootstrapEvents(wus: WuBootstrapInfo[]): BootstrapEvent[];
|
|
85
|
-
/**
|
|
86
|
-
* Run the state bootstrap migration
|
|
87
|
-
*/
|
|
88
|
-
export declare function runStateBootstrap(args: StateBootstrapArgs): Promise<BootstrapResult>;
|
|
89
|
-
/**
|
|
90
|
-
* Print help text
|
|
91
|
-
*/
|
|
92
|
-
export declare function printHelp(): void;
|