@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/sync-templates.d.ts
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @file sync-templates.ts
|
|
3
|
-
* Sync internal docs to CLI templates for release-cycle maintenance (WU-1123)
|
|
4
|
-
*
|
|
5
|
-
* This script syncs source docs from the hellmai/os repo to the templates
|
|
6
|
-
* directory, applying template variable substitutions:
|
|
7
|
-
* - Onboarding docs -> templates/core/ai/onboarding/
|
|
8
|
-
* - Claude skills -> templates/vendors/claude/.claude/skills/
|
|
9
|
-
* - Core docs (LUMENFLOW.md, constraints.md) -> templates/core/
|
|
10
|
-
*/
|
|
11
|
-
export interface SyncResult {
|
|
12
|
-
synced: string[];
|
|
13
|
-
errors: string[];
|
|
14
|
-
}
|
|
15
|
-
export interface SyncSummary {
|
|
16
|
-
onboarding: SyncResult;
|
|
17
|
-
skills: SyncResult;
|
|
18
|
-
core: SyncResult;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Parse sync-templates command options
|
|
22
|
-
*/
|
|
23
|
-
export declare function parseSyncTemplatesOptions(): {
|
|
24
|
-
dryRun: boolean;
|
|
25
|
-
verbose: boolean;
|
|
26
|
-
};
|
|
27
|
-
/**
|
|
28
|
-
* Convert source content to template format by replacing:
|
|
29
|
-
* - YYYY-MM-DD dates with {{DATE}}
|
|
30
|
-
* - Absolute project paths with {{PROJECT_ROOT}}
|
|
31
|
-
*/
|
|
32
|
-
export declare function convertToTemplate(content: string, projectRoot: string): string;
|
|
33
|
-
/**
|
|
34
|
-
* Sync onboarding docs to templates/core/ai/onboarding/
|
|
35
|
-
*/
|
|
36
|
-
export declare function syncOnboardingDocs(projectRoot: string, dryRun?: boolean): Promise<SyncResult>;
|
|
37
|
-
/**
|
|
38
|
-
* Sync Claude skills to templates/vendors/claude/.claude/skills/
|
|
39
|
-
*/
|
|
40
|
-
export declare function syncSkillsToTemplates(projectRoot: string, dryRun?: boolean): Promise<SyncResult>;
|
|
41
|
-
/**
|
|
42
|
-
* Sync core docs (LUMENFLOW.md, constraints.md) to templates/core/
|
|
43
|
-
*/
|
|
44
|
-
export declare function syncCoreDocs(projectRoot: string, dryRun?: boolean): Promise<SyncResult>;
|
|
45
|
-
/**
|
|
46
|
-
* Sync all templates
|
|
47
|
-
*/
|
|
48
|
-
export declare function syncTemplates(projectRoot: string, dryRun?: boolean): Promise<SyncSummary>;
|
|
49
|
-
/**
|
|
50
|
-
* CLI entry point
|
|
51
|
-
*/
|
|
52
|
-
export declare function main(): Promise<void>;
|
package/dist/trace-gen.d.ts
DELETED
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
/**
|
|
3
|
-
* Trace Generator CLI Command
|
|
4
|
-
*
|
|
5
|
-
* Creates traceability reports linking WUs to code changes.
|
|
6
|
-
* Useful for audit trails, compliance documentation, and understanding
|
|
7
|
-
* what code was changed as part of each WU.
|
|
8
|
-
*
|
|
9
|
-
* WU-1112: INIT-003 Phase 6 - Migrate remaining Tier 1 tools
|
|
10
|
-
*
|
|
11
|
-
* Usage:
|
|
12
|
-
* pnpm trace:gen --wu WU-1112
|
|
13
|
-
* pnpm trace:gen --since 2024-01-01 --format json
|
|
14
|
-
* pnpm trace:gen --format markdown --output trace.md
|
|
15
|
-
*/
|
|
16
|
-
/**
|
|
17
|
-
* Output formats for trace report
|
|
18
|
-
*/
|
|
19
|
-
export declare enum TraceFormat {
|
|
20
|
-
JSON = "json",
|
|
21
|
-
MARKDOWN = "markdown",
|
|
22
|
-
CSV = "csv"
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Arguments for trace-gen command
|
|
26
|
-
*/
|
|
27
|
-
export interface TraceArgs {
|
|
28
|
-
/** Specific WU ID to trace */
|
|
29
|
-
wuId?: string;
|
|
30
|
-
/** Output format */
|
|
31
|
-
format?: TraceFormat | string;
|
|
32
|
-
/** Output file path */
|
|
33
|
-
output?: string;
|
|
34
|
-
/** Since date (ISO format) */
|
|
35
|
-
since?: string;
|
|
36
|
-
/** Show help */
|
|
37
|
-
help?: boolean;
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* Commit information
|
|
41
|
-
*/
|
|
42
|
-
export interface CommitInfo {
|
|
43
|
-
sha: string;
|
|
44
|
-
message: string;
|
|
45
|
-
date: string;
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Input data for building trace entry
|
|
49
|
-
*/
|
|
50
|
-
export interface TraceInput {
|
|
51
|
-
wuId: string;
|
|
52
|
-
title: string;
|
|
53
|
-
status: string;
|
|
54
|
-
commits: CommitInfo[];
|
|
55
|
-
files: string[];
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* Trace entry for a WU
|
|
59
|
-
*/
|
|
60
|
-
export interface TraceEntry {
|
|
61
|
-
wuId: string;
|
|
62
|
-
title: string;
|
|
63
|
-
status: string;
|
|
64
|
-
commitCount: number;
|
|
65
|
-
fileCount: number;
|
|
66
|
-
firstCommit?: string;
|
|
67
|
-
lastCommit?: string;
|
|
68
|
-
commits?: CommitInfo[];
|
|
69
|
-
files?: string[];
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* Parse command line arguments for trace-gen
|
|
73
|
-
*
|
|
74
|
-
* @param argv - Process argv array
|
|
75
|
-
* @returns Parsed arguments
|
|
76
|
-
*/
|
|
77
|
-
export declare function parseTraceArgs(argv: string[]): TraceArgs;
|
|
78
|
-
/**
|
|
79
|
-
* Build a trace entry from WU and commit data
|
|
80
|
-
*
|
|
81
|
-
* @param input - Input data containing WU info, commits, and files
|
|
82
|
-
* @returns Trace entry with summary statistics
|
|
83
|
-
*/
|
|
84
|
-
export declare function buildTraceEntry(input: TraceInput): TraceEntry;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
/**
|
|
3
|
-
* @file validate-agent-skills.ts
|
|
4
|
-
* @description Validates agent skill definitions (WU-1111)
|
|
5
|
-
*
|
|
6
|
-
* Validates that skill files in .claude/skills/ follow the expected format
|
|
7
|
-
* and contain required sections.
|
|
8
|
-
*
|
|
9
|
-
* Usage:
|
|
10
|
-
* validate-agent-skills # Validate all skills
|
|
11
|
-
* validate-agent-skills --skill wu-lifecycle # Validate specific skill
|
|
12
|
-
*
|
|
13
|
-
* Exit codes:
|
|
14
|
-
* 0 - All skills valid
|
|
15
|
-
* 1 - Validation errors found
|
|
16
|
-
*
|
|
17
|
-
* @see {@link .claude/skills/} - Skill definitions
|
|
18
|
-
*/
|
|
19
|
-
/**
|
|
20
|
-
* Validation result for a skill
|
|
21
|
-
*/
|
|
22
|
-
export interface SkillValidationResult {
|
|
23
|
-
valid: boolean;
|
|
24
|
-
errors: string[];
|
|
25
|
-
warnings: string[];
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Validation summary for all skills
|
|
29
|
-
*/
|
|
30
|
-
export interface SkillValidationSummary {
|
|
31
|
-
totalValid: number;
|
|
32
|
-
totalInvalid: number;
|
|
33
|
-
results: Array<{
|
|
34
|
-
skillName: string;
|
|
35
|
-
} & SkillValidationResult>;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Validate a single skill file
|
|
39
|
-
*
|
|
40
|
-
* @param skillPath - Path to SKILL.md file
|
|
41
|
-
* @returns Validation result
|
|
42
|
-
*/
|
|
43
|
-
export declare function validateSkillFile(skillPath: string): SkillValidationResult;
|
|
44
|
-
/**
|
|
45
|
-
* Validate all skills in a directory
|
|
46
|
-
*
|
|
47
|
-
* @param skillsDir - Path to skills directory
|
|
48
|
-
* @returns Validation summary
|
|
49
|
-
*/
|
|
50
|
-
export declare function validateAllSkills(skillsDir: string): SkillValidationSummary;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
/**
|
|
3
|
-
* @file validate-agent-sync.ts
|
|
4
|
-
* @description Validates agent sync state (WU-1111)
|
|
5
|
-
*
|
|
6
|
-
* Validates that agent configuration files exist and are properly structured.
|
|
7
|
-
* Checks .claude/agents/ for valid agent definitions.
|
|
8
|
-
*
|
|
9
|
-
* Usage:
|
|
10
|
-
* validate-agent-sync # Validate agent configuration
|
|
11
|
-
*
|
|
12
|
-
* Exit codes:
|
|
13
|
-
* 0 - Agent configuration valid
|
|
14
|
-
* 1 - Validation errors found
|
|
15
|
-
*
|
|
16
|
-
* @see {@link .claude/agents/} - Agent definitions
|
|
17
|
-
*/
|
|
18
|
-
/**
|
|
19
|
-
* Validation result for agent sync
|
|
20
|
-
*/
|
|
21
|
-
export interface AgentSyncValidationResult {
|
|
22
|
-
valid: boolean;
|
|
23
|
-
errors: string[];
|
|
24
|
-
warnings: string[];
|
|
25
|
-
agents: string[];
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Validate agent sync state
|
|
29
|
-
*
|
|
30
|
-
* @param options - Validation options
|
|
31
|
-
* @param options.cwd - Working directory (default: process.cwd())
|
|
32
|
-
* @returns Validation result
|
|
33
|
-
*/
|
|
34
|
-
export declare function validateAgentSync(options?: {
|
|
35
|
-
cwd?: string;
|
|
36
|
-
}): Promise<AgentSyncValidationResult>;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
/**
|
|
3
|
-
* @file validate-backlog-sync.ts
|
|
4
|
-
* @description Validates backlog.md is in sync with WU YAML files (WU-1111)
|
|
5
|
-
*
|
|
6
|
-
* Checks that all WU YAML files are referenced in backlog.md and vice versa.
|
|
7
|
-
* This is the TypeScript replacement for tools/validate-backlog-sync.js.
|
|
8
|
-
*
|
|
9
|
-
* Usage:
|
|
10
|
-
* validate-backlog-sync # Validate sync
|
|
11
|
-
*
|
|
12
|
-
* Exit codes:
|
|
13
|
-
* 0 - Backlog is in sync
|
|
14
|
-
* 1 - Sync issues found
|
|
15
|
-
*
|
|
16
|
-
* @see {@link docs/04-operations/tasks/backlog.md} - Backlog file
|
|
17
|
-
*/
|
|
18
|
-
/**
|
|
19
|
-
* Validation result for backlog sync
|
|
20
|
-
*/
|
|
21
|
-
export interface BacklogSyncResult {
|
|
22
|
-
valid: boolean;
|
|
23
|
-
errors: string[];
|
|
24
|
-
warnings: string[];
|
|
25
|
-
wuCount: number;
|
|
26
|
-
backlogCount: number;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Validate that backlog.md is in sync with WU YAML files
|
|
30
|
-
*
|
|
31
|
-
* @param options - Validation options
|
|
32
|
-
* @param options.cwd - Working directory (default: process.cwd())
|
|
33
|
-
* @returns Validation result
|
|
34
|
-
*/
|
|
35
|
-
export declare function validateBacklogSync(options?: {
|
|
36
|
-
cwd?: string;
|
|
37
|
-
}): Promise<BacklogSyncResult>;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
/**
|
|
3
|
-
* @file validate-skills-spec.ts
|
|
4
|
-
* @description Validates skills spec format (WU-1111)
|
|
5
|
-
*
|
|
6
|
-
* Validates that skill specification files follow the required format
|
|
7
|
-
* with proper sections and structure.
|
|
8
|
-
*
|
|
9
|
-
* Usage:
|
|
10
|
-
* validate-skills-spec SKILL.md # Validate specific file
|
|
11
|
-
* validate-skills-spec --dir ./skills # Validate all in directory
|
|
12
|
-
*
|
|
13
|
-
* Exit codes:
|
|
14
|
-
* 0 - Validation passed
|
|
15
|
-
* 1 - Validation errors found
|
|
16
|
-
*
|
|
17
|
-
* @see {@link .claude/skills/} - Skill definitions
|
|
18
|
-
*/
|
|
19
|
-
/**
|
|
20
|
-
* Validation result for a skill spec
|
|
21
|
-
*/
|
|
22
|
-
export interface SkillsSpecResult {
|
|
23
|
-
valid: boolean;
|
|
24
|
-
errors: string[];
|
|
25
|
-
warnings: string[];
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Validate a skill specification file
|
|
29
|
-
*
|
|
30
|
-
* @param skillPath - Path to skill spec file
|
|
31
|
-
* @returns Validation result
|
|
32
|
-
*/
|
|
33
|
-
export declare function validateSkillsSpec(skillPath: string): SkillsSpecResult;
|
|
34
|
-
/**
|
|
35
|
-
* Validate all skill specs in a directory
|
|
36
|
-
*
|
|
37
|
-
* @param dir - Directory to scan
|
|
38
|
-
* @returns Map of file path to validation result
|
|
39
|
-
*/
|
|
40
|
-
export declare function validateSkillsSpecDir(dir: string): Map<string, SkillsSpecResult>;
|
package/dist/validate.d.ts
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
/**
|
|
3
|
-
* @file validate.ts
|
|
4
|
-
* @description Main WU YAML validator CLI (WU-1111)
|
|
5
|
-
*
|
|
6
|
-
* Validates WU tasks and status consistency. This is the replacement for
|
|
7
|
-
* tools/validate.js that was previously a stub.
|
|
8
|
-
*
|
|
9
|
-
* Usage:
|
|
10
|
-
* validate # Validate all WUs
|
|
11
|
-
* validate --id WU-123 # Validate specific WU
|
|
12
|
-
* validate --strict # Fail on warnings too
|
|
13
|
-
* validate --done-only # Only validate done WUs
|
|
14
|
-
*
|
|
15
|
-
* Exit codes:
|
|
16
|
-
* 0 - All validations passed
|
|
17
|
-
* 1 - Validation errors found
|
|
18
|
-
*
|
|
19
|
-
* @see {@link wu-validate.ts} - Detailed WU validation with schema
|
|
20
|
-
* @see {@link docs/04-operations/_frameworks/lumenflow/lumenflow-complete.md} - WU lifecycle
|
|
21
|
-
*/
|
|
22
|
-
/**
|
|
23
|
-
* Validation result for a single WU
|
|
24
|
-
*/
|
|
25
|
-
export interface ValidationResult {
|
|
26
|
-
valid: boolean;
|
|
27
|
-
warnings: string[];
|
|
28
|
-
errors: string[];
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Validation summary for multiple WUs
|
|
32
|
-
*/
|
|
33
|
-
export interface ValidationSummary {
|
|
34
|
-
totalValid: number;
|
|
35
|
-
totalInvalid: number;
|
|
36
|
-
totalWarnings: number;
|
|
37
|
-
results: Array<{
|
|
38
|
-
wuId: string;
|
|
39
|
-
} & ValidationResult>;
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Validate a single WU file
|
|
43
|
-
*
|
|
44
|
-
* @param wuPath - Path to WU YAML file
|
|
45
|
-
* @param options - Validation options
|
|
46
|
-
* @returns Validation result
|
|
47
|
-
*/
|
|
48
|
-
export declare function validateSingleWU(wuPath: string, options?: {
|
|
49
|
-
strict?: boolean;
|
|
50
|
-
}): ValidationResult;
|
|
51
|
-
/**
|
|
52
|
-
* Validate all WU files in the WU directory
|
|
53
|
-
*
|
|
54
|
-
* @param options - Validation options
|
|
55
|
-
* @returns Summary of all validations
|
|
56
|
-
*/
|
|
57
|
-
export declare function validateAllWUs(options?: {
|
|
58
|
-
strict?: boolean;
|
|
59
|
-
doneOnly?: boolean;
|
|
60
|
-
}): ValidationSummary;
|
package/dist/wu-block.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
/**
|
|
3
|
-
* WU Block Helper
|
|
4
|
-
*
|
|
5
|
-
* Sequence (micro-worktree pattern):
|
|
6
|
-
* 1) Create micro-worktree from main
|
|
7
|
-
* 2) Auto-update WU YAML/backlog/status to Blocked in micro-worktree
|
|
8
|
-
* 3) Commit in micro-worktree, push directly to origin/main
|
|
9
|
-
* 4) Optionally remove work worktree (default: keep)
|
|
10
|
-
*
|
|
11
|
-
* Uses micro-worktree pattern to avoid pre-commit hook blocking commits to main.
|
|
12
|
-
*
|
|
13
|
-
* Usage:
|
|
14
|
-
* pnpm wu:block --id WU-334 [--reason "Waiting on policy"] [--worktree ...] [--remove-worktree] [--no-auto]
|
|
15
|
-
*/
|
|
16
|
-
export {};
|
package/dist/wu-claim.d.ts
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
/**
|
|
3
|
-
* WU Claim Helper
|
|
4
|
-
*
|
|
5
|
-
* Canonical sequence:
|
|
6
|
-
* 1) Auto-update backlog/status/WU YAML (safe parsing) unless `--no-auto`
|
|
7
|
-
* 2) Commit and push to `main`
|
|
8
|
-
* 3) Create a dedicated worktree+branch for the WU
|
|
9
|
-
*
|
|
10
|
-
* Usage:
|
|
11
|
-
* node tools/wu-claim.mjs --id WU-334 --lane Intelligence \
|
|
12
|
-
* [--worktree worktrees/intelligence-wu-334] [--branch lane/intelligence/wu-334]
|
|
13
|
-
*
|
|
14
|
-
* WU-2542: This script imports utilities from @lumenflow/core package.
|
|
15
|
-
* Full migration to thin shim pending @lumenflow/core CLI export implementation.
|
|
16
|
-
*/
|
|
17
|
-
/**
|
|
18
|
-
* WU-1746: Get list of files to commit in worktree mode
|
|
19
|
-
* Excludes backlog.md and status.md to prevent merge conflicts.
|
|
20
|
-
* These generated files should only be updated on main during wu:done.
|
|
21
|
-
*
|
|
22
|
-
* @param {string} wuId - WU ID (e.g., 'WU-1746')
|
|
23
|
-
* @returns {string[]} List of files to commit
|
|
24
|
-
*/
|
|
25
|
-
export declare function getWorktreeCommitFiles(wuId: any): string[];
|
|
26
|
-
/**
|
|
27
|
-
* WU-1047: Format Project Defaults section (agent-only).
|
|
28
|
-
*
|
|
29
|
-
* @param {object} methodology - Methodology defaults config
|
|
30
|
-
* @returns {string} Formatted output or empty string if disabled
|
|
31
|
-
*/
|
|
32
|
-
export declare function formatProjectDefaults(methodology: any): string;
|
|
33
|
-
/**
|
|
34
|
-
* WU-1047: Print Project Defaults section (agent-only).
|
|
35
|
-
*
|
|
36
|
-
* @param {object} methodology - Methodology defaults config
|
|
37
|
-
*/
|
|
38
|
-
export declare function printProjectDefaults(methodology: any): void;
|
|
39
|
-
/**
|
|
40
|
-
* WU-1763: Print a single concise tips line to improve tool adoption.
|
|
41
|
-
* Non-blocking, single-line output to avoid flooding the console.
|
|
42
|
-
*
|
|
43
|
-
* @param {string} _id - WU ID being claimed (unused, kept for future use)
|
|
44
|
-
*/
|
|
45
|
-
export declare function printLifecycleNudge(_id: any): void;
|
|
46
|
-
/**
|
|
47
|
-
* WU-1029: Apply symlink fallback (root + nested node_modules) after install failure.
|
|
48
|
-
*
|
|
49
|
-
* @param {string} worktreePath - Worktree path
|
|
50
|
-
* @param {string} mainRepoPath - Main repo path
|
|
51
|
-
* @param {Console} logger - Logger (console-compatible)
|
|
52
|
-
*/
|
|
53
|
-
export declare function applyFallbackSymlinks(worktreePath: any, mainRepoPath: any, logger?: Console): {
|
|
54
|
-
symlinkResult: {
|
|
55
|
-
created: boolean;
|
|
56
|
-
skipped: boolean;
|
|
57
|
-
refused?: undefined;
|
|
58
|
-
reason?: undefined;
|
|
59
|
-
error?: undefined;
|
|
60
|
-
} | {
|
|
61
|
-
created: boolean;
|
|
62
|
-
skipped: boolean;
|
|
63
|
-
refused: boolean;
|
|
64
|
-
reason: string;
|
|
65
|
-
error?: undefined;
|
|
66
|
-
} | {
|
|
67
|
-
created: boolean;
|
|
68
|
-
skipped: boolean;
|
|
69
|
-
error: any;
|
|
70
|
-
refused?: undefined;
|
|
71
|
-
reason?: undefined;
|
|
72
|
-
};
|
|
73
|
-
nestedResult: any;
|
|
74
|
-
};
|
package/dist/wu-cleanup.d.ts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
/**
|
|
3
|
-
* WU Cleanup Helper
|
|
4
|
-
*
|
|
5
|
-
* Cleans up worktree and branch after PR merge (PR-based completion workflow).
|
|
6
|
-
*
|
|
7
|
-
* Sequence:
|
|
8
|
-
* 1) Verify PR is merged (via gh API; no merge-base fallback)
|
|
9
|
-
* 2) Remove worktree (if exists)
|
|
10
|
-
* 3) Delete lane branch (local + remote)
|
|
11
|
-
*
|
|
12
|
-
* Idempotent: Safe no-op if already cleaned.
|
|
13
|
-
*
|
|
14
|
-
* Usage:
|
|
15
|
-
* pnpm wu:cleanup --id WU-703
|
|
16
|
-
* pnpm wu:cleanup --artifacts
|
|
17
|
-
*/
|
|
18
|
-
export declare const CLEANUP_GUARD_REASONS: {
|
|
19
|
-
UNCOMMITTED_CHANGES: string;
|
|
20
|
-
UNPUSHED_COMMITS: string;
|
|
21
|
-
STATUS_NOT_DONE: string;
|
|
22
|
-
MISSING_STAMP: string;
|
|
23
|
-
PR_NOT_MERGED: string;
|
|
24
|
-
};
|
|
25
|
-
export declare function evaluateCleanupGuards({ hasUncommittedChanges, hasUnpushedCommits, hasStamp, yamlStatus, ghAvailable, prMerged, }: {
|
|
26
|
-
hasUncommittedChanges: any;
|
|
27
|
-
hasUnpushedCommits: any;
|
|
28
|
-
hasStamp: any;
|
|
29
|
-
yamlStatus: any;
|
|
30
|
-
ghAvailable: any;
|
|
31
|
-
prMerged: any;
|
|
32
|
-
}): {
|
|
33
|
-
allowed: boolean;
|
|
34
|
-
reason: string;
|
|
35
|
-
};
|
package/dist/wu-create.d.ts
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
/**
|
|
3
|
-
* WU Create Helper (WU-1262, WU-1439)
|
|
4
|
-
*
|
|
5
|
-
* Race-safe WU creation using shared micro-worktree isolation.
|
|
6
|
-
*
|
|
7
|
-
* Canonical sequence:
|
|
8
|
-
* 1) Validate inputs (id, lane, title)
|
|
9
|
-
* 2) Ensure on main branch
|
|
10
|
-
* 3) Use withMicroWorktree() to atomically:
|
|
11
|
-
* a) Create temp branch without switching main checkout
|
|
12
|
-
* b) Create WU-{id}.yaml and update backlog.md in micro-worktree
|
|
13
|
-
* c) Commit with "docs: create wu-{id} for <title>" message
|
|
14
|
-
* d) Merge to main with ff-only (retry with rebase if needed)
|
|
15
|
-
* e) Push to origin/main
|
|
16
|
-
* f) Cleanup temp branch and micro-worktree
|
|
17
|
-
*
|
|
18
|
-
* Benefits:
|
|
19
|
-
* - Main checkout never switches branches (no impact on other agents)
|
|
20
|
-
* - Race conditions handled via rebase+retry (up to 3 attempts)
|
|
21
|
-
* - Cleanup guaranteed even on failure
|
|
22
|
-
*
|
|
23
|
-
* Usage:
|
|
24
|
-
* pnpm wu:create --id WU-706 --lane Intelligence --title "Fix XYZ issue"
|
|
25
|
-
*
|
|
26
|
-
* Context: WU-705 (fix agent coordination failures), WU-1262 (micro-worktree isolation),
|
|
27
|
-
* WU-1439 (refactor to shared helper)
|
|
28
|
-
*/
|
|
29
|
-
/**
|
|
30
|
-
* WU-2330: Check if a more specific sub-lane matches the provided inputs.
|
|
31
|
-
* Non-blocking - just logs a warning if a better lane is suggested.
|
|
32
|
-
*
|
|
33
|
-
* @param {string} providedLane - Lane provided by the user
|
|
34
|
-
* @param {string|undefined} codePathsRaw - Comma-separated code paths
|
|
35
|
-
* @param {string} title - WU title (used as fallback description)
|
|
36
|
-
* @param {string|undefined} description - WU description
|
|
37
|
-
*/
|
|
38
|
-
export declare function warnIfBetterLaneExists(providedLane: any, codePathsRaw: any, title: any, description: any): void;
|
|
39
|
-
/** Options for creating WU YAML */
|
|
40
|
-
interface CreateWUOptions {
|
|
41
|
-
initiative?: string;
|
|
42
|
-
phase?: string;
|
|
43
|
-
blockedBy?: string;
|
|
44
|
-
blocks?: string;
|
|
45
|
-
labels?: string;
|
|
46
|
-
assignedTo?: string;
|
|
47
|
-
description?: string;
|
|
48
|
-
acceptance?: string[];
|
|
49
|
-
codePaths?: string;
|
|
50
|
-
testPathsManual?: string;
|
|
51
|
-
testPathsUnit?: string;
|
|
52
|
-
testPathsE2e?: string;
|
|
53
|
-
exposure?: string;
|
|
54
|
-
userJourney?: string;
|
|
55
|
-
uiPairingWus?: string;
|
|
56
|
-
specRefs?: string;
|
|
57
|
-
}
|
|
58
|
-
export declare function validateCreateSpec({ id, lane, title, priority, type, opts, }: {
|
|
59
|
-
id: string;
|
|
60
|
-
lane: string;
|
|
61
|
-
title: string;
|
|
62
|
-
priority: string;
|
|
63
|
-
type: string;
|
|
64
|
-
opts: CreateWUOptions;
|
|
65
|
-
}): {
|
|
66
|
-
valid: boolean;
|
|
67
|
-
errors: any[];
|
|
68
|
-
};
|
|
69
|
-
export {};
|
package/dist/wu-delete.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
/**
|
|
3
|
-
* WU Delete Helper
|
|
4
|
-
*
|
|
5
|
-
* Race-safe WU deletion using micro-worktree isolation.
|
|
6
|
-
*
|
|
7
|
-
* Uses micro-worktree pattern:
|
|
8
|
-
* 1) Validate inputs (WU exists, status is not in_progress)
|
|
9
|
-
* 2) Ensure main is clean and up-to-date with origin
|
|
10
|
-
* 3) Create temp branch WITHOUT switching (main checkout stays on main)
|
|
11
|
-
* 4) Create micro-worktree in /tmp pointing to temp branch
|
|
12
|
-
* 5) Delete WU file and update backlog.md in micro-worktree
|
|
13
|
-
* 6) Commit, ff-only merge, push
|
|
14
|
-
* 7) Cleanup temp branch and micro-worktree
|
|
15
|
-
*
|
|
16
|
-
* Usage:
|
|
17
|
-
* pnpm wu:delete --id WU-123 # Single WU deletion
|
|
18
|
-
* pnpm wu:delete --id WU-123 --dry-run # Dry run
|
|
19
|
-
* pnpm wu:delete --batch WU-1,WU-2,WU-3 # Batch deletion
|
|
20
|
-
*/
|
|
21
|
-
export {};
|
package/dist/wu-deps.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
/**
|
|
3
|
-
* WU Dependency Visualization (WU-1247)
|
|
4
|
-
*
|
|
5
|
-
* Shows dependency graph for a WU in ASCII or Mermaid format.
|
|
6
|
-
*
|
|
7
|
-
* Usage:
|
|
8
|
-
* pnpm wu:deps WU-1247 # ASCII format
|
|
9
|
-
* pnpm wu:deps WU-1247 --format mermaid # Mermaid diagram
|
|
10
|
-
* pnpm wu:deps WU-1247 --depth 5 # Deeper traversal
|
|
11
|
-
* pnpm wu:deps WU-1247 --direction up # Only upstream deps
|
|
12
|
-
*/
|
|
13
|
-
export {};
|