@lumenflow/cli 2.4.0 → 2.5.1

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 (147) hide show
  1. package/README.md +11 -8
  2. package/dist/__tests__/init-config-lanes.test.js +131 -0
  3. package/dist/__tests__/init-docs-structure.test.js +119 -0
  4. package/dist/__tests__/init-lane-inference.test.js +125 -0
  5. package/dist/__tests__/init-onboarding-docs.test.js +132 -0
  6. package/dist/__tests__/init-quick-ref.test.js +145 -0
  7. package/dist/__tests__/init-scripts.test.js +207 -0
  8. package/dist/__tests__/init-template-portability.test.js +97 -0
  9. package/dist/__tests__/init.test.js +7 -2
  10. package/dist/__tests__/initiative-add-wu.test.js +420 -0
  11. package/dist/__tests__/initiative-plan-replacement.test.js +162 -0
  12. package/dist/__tests__/initiative-remove-wu.test.js +458 -0
  13. package/dist/__tests__/onboarding-smoke-test.test.js +211 -0
  14. package/dist/__tests__/path-centralization-cli.test.js +234 -0
  15. package/dist/__tests__/plan-create.test.js +126 -0
  16. package/dist/__tests__/plan-edit.test.js +157 -0
  17. package/dist/__tests__/plan-link.test.js +239 -0
  18. package/dist/__tests__/plan-promote.test.js +181 -0
  19. package/dist/__tests__/templates-sync.test.js +219 -0
  20. package/dist/__tests__/wu-create-strict.test.js +118 -0
  21. package/dist/__tests__/wu-edit-strict.test.js +109 -0
  22. package/dist/__tests__/wu-validate-strict.test.js +113 -0
  23. package/dist/flow-bottlenecks.js +4 -2
  24. package/dist/gates.js +22 -0
  25. package/dist/init.js +670 -87
  26. package/dist/initiative-add-wu.js +112 -16
  27. package/dist/initiative-remove-wu.js +248 -0
  28. package/dist/onboarding-smoke-test.js +400 -0
  29. package/dist/orchestrate-init-status.js +37 -9
  30. package/dist/orchestrate-initiative.js +10 -4
  31. package/dist/plan-create.js +199 -0
  32. package/dist/plan-edit.js +235 -0
  33. package/dist/plan-link.js +233 -0
  34. package/dist/plan-promote.js +231 -0
  35. package/dist/sync-templates.js +137 -5
  36. package/dist/wu-block.js +16 -5
  37. package/dist/wu-claim.js +15 -9
  38. package/dist/wu-create.js +50 -2
  39. package/dist/wu-deps.js +3 -1
  40. package/dist/wu-done.js +14 -5
  41. package/dist/wu-edit.js +35 -0
  42. package/dist/wu-prep.js +131 -8
  43. package/dist/wu-spawn.js +14 -1
  44. package/dist/wu-unblock.js +34 -2
  45. package/dist/wu-validate.js +25 -17
  46. package/package.json +11 -7
  47. package/templates/core/.lumenflow/constraints.md.template +61 -3
  48. package/templates/core/AGENTS.md.template +2 -2
  49. package/templates/core/LUMENFLOW.md.template +85 -23
  50. package/templates/core/ai/onboarding/agent-invocation-guide.md.template +157 -0
  51. package/templates/core/ai/onboarding/agent-safety-card.md.template +227 -0
  52. package/templates/core/ai/onboarding/docs-generation.md.template +277 -0
  53. package/templates/core/ai/onboarding/first-wu-mistakes.md.template +49 -7
  54. package/templates/core/ai/onboarding/quick-ref-commands.md.template +343 -110
  55. package/templates/core/ai/onboarding/release-process.md.template +8 -2
  56. package/templates/core/ai/onboarding/starting-prompt.md.template +407 -0
  57. package/templates/core/ai/onboarding/test-ratchet.md.template +131 -0
  58. package/templates/core/ai/onboarding/troubleshooting-wu-done.md.template +91 -38
  59. package/templates/core/ai/onboarding/vendor-support.md.template +219 -0
  60. package/templates/vendors/claude/.claude/skills/context-management/SKILL.md.template +13 -1
  61. package/templates/vendors/claude/.claude/skills/execution-memory/SKILL.md.template +14 -16
  62. package/templates/vendors/claude/.claude/skills/orchestration/SKILL.md.template +48 -4
  63. package/templates/vendors/claude/.claude/skills/worktree-discipline/SKILL.md.template +5 -1
  64. package/templates/vendors/claude/.claude/skills/wu-lifecycle/SKILL.md.template +19 -8
  65. package/dist/__tests__/init-plan.test.js +0 -340
  66. package/dist/agent-issues-query.d.ts +0 -16
  67. package/dist/agent-log-issue.d.ts +0 -10
  68. package/dist/agent-session-end.d.ts +0 -10
  69. package/dist/agent-session.d.ts +0 -10
  70. package/dist/backlog-prune.d.ts +0 -84
  71. package/dist/cli-entry-point.d.ts +0 -8
  72. package/dist/deps-add.d.ts +0 -91
  73. package/dist/deps-remove.d.ts +0 -17
  74. package/dist/docs-sync.d.ts +0 -50
  75. package/dist/file-delete.d.ts +0 -84
  76. package/dist/file-edit.d.ts +0 -82
  77. package/dist/file-read.d.ts +0 -92
  78. package/dist/file-write.d.ts +0 -90
  79. package/dist/flow-bottlenecks.d.ts +0 -16
  80. package/dist/flow-report.d.ts +0 -16
  81. package/dist/gates.d.ts +0 -94
  82. package/dist/git-branch.d.ts +0 -65
  83. package/dist/git-diff.d.ts +0 -58
  84. package/dist/git-log.d.ts +0 -69
  85. package/dist/git-status.d.ts +0 -58
  86. package/dist/guard-locked.d.ts +0 -62
  87. package/dist/guard-main-branch.d.ts +0 -50
  88. package/dist/guard-worktree-commit.d.ts +0 -59
  89. package/dist/index.d.ts +0 -10
  90. package/dist/init-plan.d.ts +0 -80
  91. package/dist/init-plan.js +0 -337
  92. package/dist/init.d.ts +0 -46
  93. package/dist/initiative-add-wu.d.ts +0 -22
  94. package/dist/initiative-bulk-assign-wus.d.ts +0 -16
  95. package/dist/initiative-create.d.ts +0 -28
  96. package/dist/initiative-edit.d.ts +0 -34
  97. package/dist/initiative-list.d.ts +0 -12
  98. package/dist/initiative-status.d.ts +0 -11
  99. package/dist/lumenflow-upgrade.d.ts +0 -103
  100. package/dist/mem-checkpoint.d.ts +0 -16
  101. package/dist/mem-cleanup.d.ts +0 -29
  102. package/dist/mem-create.d.ts +0 -17
  103. package/dist/mem-export.d.ts +0 -10
  104. package/dist/mem-inbox.d.ts +0 -35
  105. package/dist/mem-init.d.ts +0 -15
  106. package/dist/mem-ready.d.ts +0 -16
  107. package/dist/mem-signal.d.ts +0 -16
  108. package/dist/mem-start.d.ts +0 -16
  109. package/dist/mem-summarize.d.ts +0 -22
  110. package/dist/mem-triage.d.ts +0 -22
  111. package/dist/metrics-cli.d.ts +0 -90
  112. package/dist/metrics-snapshot.d.ts +0 -18
  113. package/dist/orchestrate-init-status.d.ts +0 -11
  114. package/dist/orchestrate-initiative.d.ts +0 -12
  115. package/dist/orchestrate-monitor.d.ts +0 -11
  116. package/dist/release.d.ts +0 -117
  117. package/dist/rotate-progress.d.ts +0 -48
  118. package/dist/session-coordinator.d.ts +0 -74
  119. package/dist/spawn-list.d.ts +0 -16
  120. package/dist/state-bootstrap.d.ts +0 -92
  121. package/dist/sync-templates.d.ts +0 -52
  122. package/dist/trace-gen.d.ts +0 -84
  123. package/dist/validate-agent-skills.d.ts +0 -50
  124. package/dist/validate-agent-sync.d.ts +0 -36
  125. package/dist/validate-backlog-sync.d.ts +0 -37
  126. package/dist/validate-skills-spec.d.ts +0 -40
  127. package/dist/validate.d.ts +0 -60
  128. package/dist/wu-block.d.ts +0 -16
  129. package/dist/wu-claim.d.ts +0 -74
  130. package/dist/wu-cleanup.d.ts +0 -35
  131. package/dist/wu-create.d.ts +0 -69
  132. package/dist/wu-delete.d.ts +0 -21
  133. package/dist/wu-deps.d.ts +0 -13
  134. package/dist/wu-done.d.ts +0 -225
  135. package/dist/wu-edit.d.ts +0 -63
  136. package/dist/wu-infer-lane.d.ts +0 -17
  137. package/dist/wu-preflight.d.ts +0 -47
  138. package/dist/wu-prune.d.ts +0 -16
  139. package/dist/wu-recover.d.ts +0 -37
  140. package/dist/wu-release.d.ts +0 -19
  141. package/dist/wu-repair.d.ts +0 -60
  142. package/dist/wu-spawn-completion.d.ts +0 -10
  143. package/dist/wu-spawn.d.ts +0 -192
  144. package/dist/wu-status.d.ts +0 -25
  145. package/dist/wu-unblock.d.ts +0 -16
  146. package/dist/wu-unlock-lane.d.ts +0 -19
  147. package/dist/wu-validate.d.ts +0 -16
@@ -1,84 +0,0 @@
1
- #!/usr/bin/env node
2
- /**
3
- * File Delete CLI Tool
4
- *
5
- * Provides audited file delete operations with:
6
- * - Scope checking against WU code_paths
7
- * - Recursive directory deletion
8
- * - Force option for missing files
9
- * - Audit logging
10
- *
11
- * Usage:
12
- * node file-delete.js <path> [--recursive] [--force]
13
- *
14
- * WU-1108: INIT-003 Phase 4a - Migrate file operations
15
- */
16
- /**
17
- * Default configuration for file delete operations
18
- */
19
- export declare const FILE_DELETE_DEFAULTS: {
20
- /** Delete directories recursively */
21
- recursive: boolean;
22
- /** Don't error on missing files */
23
- force: boolean;
24
- };
25
- /**
26
- * Arguments for file delete operation
27
- */
28
- export interface FileDeleteArgs {
29
- /** Path to file or directory to delete */
30
- path?: string;
31
- /** Delete directories recursively */
32
- recursive?: boolean;
33
- /** Don't error on missing files */
34
- force?: boolean;
35
- /** Show help */
36
- help?: boolean;
37
- }
38
- /**
39
- * Metadata returned with file delete
40
- */
41
- export interface FileDeleteMetadata {
42
- /** Number of items deleted (files + directories) */
43
- deletedCount: number;
44
- /** Whether target was a directory */
45
- wasDirectory: boolean;
46
- }
47
- /**
48
- * Audit log entry for file operations
49
- */
50
- export interface AuditLogEntry {
51
- /** Operation type */
52
- operation: 'read' | 'write' | 'edit' | 'delete';
53
- /** File path */
54
- path: string;
55
- /** Timestamp */
56
- timestamp: string;
57
- /** Duration in ms */
58
- durationMs?: number;
59
- /** Success status */
60
- success: boolean;
61
- /** Error message if failed */
62
- error?: string;
63
- }
64
- /**
65
- * Result of file delete operation
66
- */
67
- export interface FileDeleteResult {
68
- /** Whether operation succeeded */
69
- success: boolean;
70
- /** Error message (if failed) */
71
- error?: string;
72
- /** Delete metadata */
73
- metadata?: FileDeleteMetadata;
74
- /** Audit log entry */
75
- auditLog?: AuditLogEntry;
76
- }
77
- /**
78
- * Parse command line arguments for file-delete
79
- */
80
- export declare function parseFileDeleteArgs(argv: string[]): FileDeleteArgs;
81
- /**
82
- * Delete a file or directory with audit logging and safety checks
83
- */
84
- export declare function deleteFileWithAudit(args: FileDeleteArgs): Promise<FileDeleteResult>;
@@ -1,82 +0,0 @@
1
- #!/usr/bin/env node
2
- /**
3
- * File Edit CLI Tool
4
- *
5
- * Provides audited file edit operations with:
6
- * - Scope checking against WU code_paths
7
- * - Exact string replacement
8
- * - Uniqueness validation
9
- * - Replace-all support
10
- * - Audit logging
11
- *
12
- * Usage:
13
- * node file-edit.js <path> --old-string <old> --new-string <new> [--replace-all]
14
- *
15
- * WU-1108: INIT-003 Phase 4a - Migrate file operations
16
- */
17
- /**
18
- * Default configuration for file edit operations
19
- */
20
- export declare const FILE_EDIT_DEFAULTS: {
21
- /** Default encoding */
22
- encoding: BufferEncoding;
23
- /** Replace all occurrences (default: false - requires unique match) */
24
- replaceAll: boolean;
25
- };
26
- /**
27
- * Arguments for file edit operation
28
- */
29
- export interface FileEditArgs {
30
- /** Path to file to edit */
31
- path?: string;
32
- /** String to find */
33
- oldString?: string;
34
- /** String to replace with */
35
- newString?: string;
36
- /** File encoding */
37
- encoding?: BufferEncoding;
38
- /** Replace all occurrences */
39
- replaceAll?: boolean;
40
- /** Show help */
41
- help?: boolean;
42
- }
43
- /**
44
- * Audit log entry for file operations
45
- */
46
- export interface AuditLogEntry {
47
- /** Operation type */
48
- operation: 'read' | 'write' | 'edit' | 'delete';
49
- /** File path */
50
- path: string;
51
- /** Timestamp */
52
- timestamp: string;
53
- /** Duration in ms */
54
- durationMs?: number;
55
- /** Success status */
56
- success: boolean;
57
- /** Error message if failed */
58
- error?: string;
59
- }
60
- /**
61
- * Result of file edit operation
62
- */
63
- export interface FileEditResult {
64
- /** Whether operation succeeded */
65
- success: boolean;
66
- /** Error message (if failed) */
67
- error?: string;
68
- /** Number of replacements made */
69
- replacements?: number;
70
- /** Diff preview */
71
- diff?: string;
72
- /** Audit log entry */
73
- auditLog?: AuditLogEntry;
74
- }
75
- /**
76
- * Parse command line arguments for file-edit
77
- */
78
- export declare function parseFileEditArgs(argv: string[]): FileEditArgs;
79
- /**
80
- * Edit a file with audit logging and safety checks
81
- */
82
- export declare function editFileWithAudit(args: FileEditArgs): Promise<FileEditResult>;
@@ -1,92 +0,0 @@
1
- #!/usr/bin/env node
2
- /**
3
- * File Read CLI Tool
4
- *
5
- * Provides audited file read operations with:
6
- * - Scope checking against WU code_paths
7
- * - File size limits
8
- * - Line range support
9
- * - Audit logging
10
- *
11
- * Usage:
12
- * node file-read.js <path> [--encoding utf-8] [--start-line N] [--end-line M]
13
- *
14
- * WU-1108: INIT-003 Phase 4a - Migrate file operations
15
- */
16
- /**
17
- * Default configuration for file read operations
18
- */
19
- export declare const FILE_READ_DEFAULTS: {
20
- /** Maximum file size in bytes (10MB) */
21
- maxFileSizeBytes: number;
22
- /** Default encoding */
23
- encoding: BufferEncoding;
24
- };
25
- /**
26
- * Arguments for file read operation
27
- */
28
- export interface FileReadArgs {
29
- /** Path to file to read */
30
- path?: string;
31
- /** File encoding */
32
- encoding?: BufferEncoding;
33
- /** Start line (1-based, inclusive) */
34
- startLine?: number;
35
- /** End line (1-based, inclusive) */
36
- endLine?: number;
37
- /** Maximum file size in bytes */
38
- maxFileSizeBytes?: number;
39
- /** Show help */
40
- help?: boolean;
41
- }
42
- /**
43
- * Metadata returned with file read
44
- */
45
- export interface FileReadMetadata {
46
- /** File size in bytes */
47
- sizeBytes: number;
48
- /** Total line count */
49
- lineCount: number;
50
- /** Lines returned (if subset) */
51
- linesReturned?: number;
52
- }
53
- /**
54
- * Audit log entry for file operations
55
- */
56
- export interface AuditLogEntry {
57
- /** Operation type */
58
- operation: 'read' | 'write' | 'edit' | 'delete';
59
- /** File path */
60
- path: string;
61
- /** Timestamp */
62
- timestamp: string;
63
- /** Duration in ms */
64
- durationMs?: number;
65
- /** Success status */
66
- success: boolean;
67
- /** Error message if failed */
68
- error?: string;
69
- }
70
- /**
71
- * Result of file read operation
72
- */
73
- export interface FileReadResult {
74
- /** Whether operation succeeded */
75
- success: boolean;
76
- /** File content (if successful) */
77
- content?: string;
78
- /** Error message (if failed) */
79
- error?: string;
80
- /** File metadata */
81
- metadata?: FileReadMetadata;
82
- /** Audit log entry */
83
- auditLog?: AuditLogEntry;
84
- }
85
- /**
86
- * Parse command line arguments for file-read
87
- */
88
- export declare function parseFileReadArgs(argv: string[]): FileReadArgs;
89
- /**
90
- * Read a file with audit logging and safety checks
91
- */
92
- export declare function readFileWithAudit(args: FileReadArgs): Promise<FileReadResult>;
@@ -1,90 +0,0 @@
1
- #!/usr/bin/env node
2
- /**
3
- * File Write CLI Tool
4
- *
5
- * Provides audited file write operations with:
6
- * - Scope checking against WU code_paths
7
- * - PHI scanning (optional)
8
- * - Directory creation
9
- * - Audit logging
10
- *
11
- * Usage:
12
- * node file-write.js <path> --content <content> [--encoding utf-8]
13
- *
14
- * WU-1108: INIT-003 Phase 4a - Migrate file operations
15
- */
16
- /**
17
- * Default configuration for file write operations
18
- */
19
- export declare const FILE_WRITE_DEFAULTS: {
20
- /** Default encoding */
21
- encoding: BufferEncoding;
22
- /** Create parent directories if they don't exist */
23
- createDirectories: boolean;
24
- };
25
- /**
26
- * Arguments for file write operation
27
- */
28
- export interface FileWriteArgs {
29
- /** Path to file to write */
30
- path?: string;
31
- /** Content to write */
32
- content?: string;
33
- /** File encoding */
34
- encoding?: BufferEncoding;
35
- /** Create parent directories */
36
- createDirectories?: boolean;
37
- /** Scan content for PHI */
38
- scanPHI?: boolean;
39
- /** Show help */
40
- help?: boolean;
41
- }
42
- /**
43
- * Metadata returned with file write
44
- */
45
- export interface FileWriteMetadata {
46
- /** Bytes written */
47
- bytesWritten: number;
48
- /** Whether directories were created */
49
- directoriesCreated?: boolean;
50
- }
51
- /**
52
- * Audit log entry for file operations
53
- */
54
- export interface AuditLogEntry {
55
- /** Operation type */
56
- operation: 'read' | 'write' | 'edit' | 'delete';
57
- /** File path */
58
- path: string;
59
- /** Timestamp */
60
- timestamp: string;
61
- /** Duration in ms */
62
- durationMs?: number;
63
- /** Success status */
64
- success: boolean;
65
- /** Error message if failed */
66
- error?: string;
67
- }
68
- /**
69
- * Result of file write operation
70
- */
71
- export interface FileWriteResult {
72
- /** Whether operation succeeded */
73
- success: boolean;
74
- /** Error message (if failed) */
75
- error?: string;
76
- /** Warnings (e.g., PHI detected) */
77
- warnings?: string[];
78
- /** File metadata */
79
- metadata?: FileWriteMetadata;
80
- /** Audit log entry */
81
- auditLog?: AuditLogEntry;
82
- }
83
- /**
84
- * Parse command line arguments for file-write
85
- */
86
- export declare function parseFileWriteArgs(argv: string[]): FileWriteArgs;
87
- /**
88
- * Write a file with audit logging and safety checks
89
- */
90
- export declare function writeFileWithAudit(args: FileWriteArgs): Promise<FileWriteResult>;
@@ -1,16 +0,0 @@
1
- #!/usr/bin/env node
2
- /**
3
- * Flow Bottlenecks Analysis CLI (WU-1018)
4
- *
5
- * Analyzes WU dependency graph to identify bottlenecks and critical paths.
6
- *
7
- * Usage:
8
- * pnpm flow:bottlenecks # Default: top 10 bottlenecks, JSON output
9
- * pnpm flow:bottlenecks --limit 5 # Top 5 bottlenecks
10
- * pnpm flow:bottlenecks --format table # Table output
11
- * pnpm flow:bottlenecks --format mermaid # Mermaid diagram of critical path
12
- *
13
- * @module flow-bottlenecks
14
- * @see {@link @lumenflow/metrics/flow/analyze-bottlenecks}
15
- */
16
- export {};
@@ -1,16 +0,0 @@
1
- #!/usr/bin/env node
2
- /**
3
- * Flow Report Generator CLI (WU-1018)
4
- *
5
- * Generates DORA/SPACE flow reports from telemetry and WU data.
6
- *
7
- * Usage:
8
- * pnpm flow:report # Default: last 7 days, JSON output
9
- * pnpm flow:report --days 30 # Last 30 days
10
- * pnpm flow:report --format table # Table output
11
- * pnpm flow:report --start 2026-01-01 --end 2026-01-15
12
- *
13
- * @module flow-report
14
- * @see {@link @lumenflow/metrics/flow/generate-flow-report}
15
- */
16
- export {};
package/dist/gates.d.ts DELETED
@@ -1,94 +0,0 @@
1
- #!/usr/bin/env node
2
- /**
3
- * Quality Gates Runner
4
- *
5
- * Runs quality gates with support for docs-only mode and incremental linting.
6
- *
7
- * WU-1304: Optimise ESLint gates performance
8
- * - Uses incremental linting (only files changed since branching from main)
9
- * - Full lint coverage maintained via CI workflow
10
- *
11
- * WU-1433: Coverage gate with mode flag
12
- * - Checks coverage thresholds for hex core files (≥90% for application layer)
13
- * - Mode: block (default) fails the gate, warn logs warnings only
14
- * WU-2334: Changed default from warn to block for TDD enforcement
15
- *
16
- * WU-1610: Supabase docs linter
17
- * - Verifies every table in migrations is documented in schema.md
18
- * - Fails if any table is missing documentation
19
- *
20
- * For type:documentation WUs:
21
- * - ✅ Run: format:check, spec:linter, prompts:lint, backlog-sync
22
- * - ❌ Skip: lint, typecheck, supabase-docs:linter, tests, coverage (no code changed)
23
- *
24
- * WU-1920: Incremental test execution
25
- * - Uses Vitest's --changed flag to run only tests for changed files
26
- * - Full test suite maintained via CI workflow and --full-tests flag
27
- *
28
- * WU-2062: Tiered test execution for faster wu:done
29
- * - Safety-critical tests (PHI, escalation, red-flag) ALWAYS run
30
- * - Docs-only WUs: lint/typecheck only (auto-detected or --docs-only flag)
31
- * - High-risk WUs (auth, PHI, RLS, migrations): run integration tests
32
- * - Standard WUs: changed tests + safety-critical tests
33
- *
34
- * Usage:
35
- * node tools/gates.mjs # Tiered gates (default)
36
- * node tools/gates.mjs --docs-only # Docs-only gates
37
- * node tools/gates.mjs --full-lint # Full lint (bypass incremental)
38
- * node tools/gates.mjs --full-tests # Full tests (bypass incremental)
39
- * node tools/gates.mjs --coverage-mode=block # Coverage gate in block mode
40
- */
41
- /**
42
- * WU-1087: Gates-specific option definitions for createWUParser.
43
- * Exported for testing and consistency with other CLI commands.
44
- */
45
- export declare const GATES_OPTIONS: {
46
- docsOnly: {
47
- name: string;
48
- flags: string;
49
- description: string;
50
- };
51
- fullLint: {
52
- name: string;
53
- flags: string;
54
- description: string;
55
- };
56
- fullTests: {
57
- name: string;
58
- flags: string;
59
- description: string;
60
- };
61
- fullCoverage: {
62
- name: string;
63
- flags: string;
64
- description: string;
65
- };
66
- coverageMode: {
67
- name: string;
68
- flags: string;
69
- description: string;
70
- default: string;
71
- };
72
- verbose: {
73
- name: string;
74
- flags: string;
75
- description: string;
76
- };
77
- };
78
- /**
79
- * WU-1087: Parse gates options using createWUParser for consistency.
80
- * Handles pnpm's `--` separator and provides automatic --help support.
81
- *
82
- * @returns Parsed options object
83
- */
84
- export declare function parseGatesOptions(): {
85
- docsOnly?: boolean;
86
- fullLint?: boolean;
87
- fullTests?: boolean;
88
- fullCoverage?: boolean;
89
- coverageMode: string;
90
- verbose?: boolean;
91
- };
92
- export declare function parsePrettierListOutput(output: string): string[];
93
- export declare function buildPrettierWriteCommand(files: string[]): string;
94
- export declare function formatFormatCheckGuidance(files: string[]): string[];
@@ -1,65 +0,0 @@
1
- #!/usr/bin/env node
2
- /**
3
- * Git Branch CLI Tool
4
- *
5
- * Provides WU-aware git branch with:
6
- * - Branch listing (local, remote, all)
7
- * - Current branch detection
8
- * - Contains filtering
9
- *
10
- * Usage:
11
- * node git-branch.js [--list] [-a] [-r] [--show-current]
12
- *
13
- * WU-1109: INIT-003 Phase 4b - Migrate git operations
14
- */
15
- /**
16
- * Arguments for git branch operation
17
- */
18
- export interface GitBranchArgs {
19
- /** Base directory for git operations */
20
- baseDir?: string;
21
- /** List branches */
22
- list?: boolean;
23
- /** Show all branches (local and remote) */
24
- all?: boolean;
25
- /** Show only remote branches */
26
- remotes?: boolean;
27
- /** Show current branch only */
28
- showCurrent?: boolean;
29
- /** Filter branches containing commit */
30
- contains?: string;
31
- /** Show help */
32
- help?: boolean;
33
- }
34
- /**
35
- * Branch information
36
- */
37
- export interface BranchInfo {
38
- /** Branch name */
39
- name: string;
40
- /** Whether this is the current branch */
41
- isCurrent: boolean;
42
- /** Whether this is a remote branch */
43
- isRemote: boolean;
44
- }
45
- /**
46
- * Result of git branch operation
47
- */
48
- export interface GitBranchResult {
49
- /** Whether operation succeeded */
50
- success: boolean;
51
- /** Error message (if failed) */
52
- error?: string;
53
- /** Current branch name */
54
- current?: string;
55
- /** List of branches */
56
- branches?: BranchInfo[];
57
- }
58
- /**
59
- * Parse command line arguments for git-branch
60
- */
61
- export declare function parseGitBranchArgs(argv: string[]): GitBranchArgs;
62
- /**
63
- * Get git branch information
64
- */
65
- export declare function getGitBranch(args: GitBranchArgs): Promise<GitBranchResult>;
@@ -1,58 +0,0 @@
1
- #!/usr/bin/env node
2
- /**
3
- * Git Diff CLI Tool
4
- *
5
- * Provides WU-aware git diff with:
6
- * - Staged/cached diff support
7
- * - Name-only and stat output modes
8
- * - File filtering
9
- *
10
- * Usage:
11
- * node git-diff.js [ref] [--staged] [--name-only] [--stat]
12
- *
13
- * WU-1109: INIT-003 Phase 4b - Migrate git operations
14
- */
15
- /**
16
- * Arguments for git diff operation
17
- */
18
- export interface GitDiffArgs {
19
- /** Base directory for git operations */
20
- baseDir?: string;
21
- /** Reference to diff against */
22
- ref?: string;
23
- /** Show staged changes */
24
- staged?: boolean;
25
- /** Show only file names */
26
- nameOnly?: boolean;
27
- /** Show diffstat */
28
- stat?: boolean;
29
- /** Path to filter diff */
30
- path?: string;
31
- /** Show help */
32
- help?: boolean;
33
- }
34
- /**
35
- * Result of git diff operation
36
- */
37
- export interface GitDiffResult {
38
- /** Whether operation succeeded */
39
- success: boolean;
40
- /** Error message (if failed) */
41
- error?: string;
42
- /** Whether there are any differences */
43
- hasDiff?: boolean;
44
- /** Diff output */
45
- diff?: string;
46
- /** List of files (for name-only mode) */
47
- files?: string[];
48
- /** Diffstat output (for stat mode) */
49
- stat?: string;
50
- }
51
- /**
52
- * Parse command line arguments for git-diff
53
- */
54
- export declare function parseGitDiffArgs(argv: string[]): GitDiffArgs;
55
- /**
56
- * Get git diff with audit logging
57
- */
58
- export declare function getGitDiff(args: GitDiffArgs): Promise<GitDiffResult>;
package/dist/git-log.d.ts DELETED
@@ -1,69 +0,0 @@
1
- #!/usr/bin/env node
2
- /**
3
- * Git Log CLI Tool
4
- *
5
- * Provides WU-aware git log with:
6
- * - Oneline and custom format output
7
- * - Max count limiting
8
- * - Date and author filtering
9
- *
10
- * Usage:
11
- * node git-log.js [ref] [--oneline] [-n <count>] [--format <format>]
12
- *
13
- * WU-1109: INIT-003 Phase 4b - Migrate git operations
14
- */
15
- /**
16
- * Arguments for git log operation
17
- */
18
- export interface GitLogArgs {
19
- /** Base directory for git operations */
20
- baseDir?: string;
21
- /** Reference or range (e.g., main..feature) */
22
- ref?: string;
23
- /** Use oneline format */
24
- oneline?: boolean;
25
- /** Maximum number of commits */
26
- maxCount?: number;
27
- /** Custom format string */
28
- format?: string;
29
- /** Show commits since date */
30
- since?: string;
31
- /** Filter by author */
32
- author?: string;
33
- /** Show help */
34
- help?: boolean;
35
- }
36
- /**
37
- * Commit information
38
- */
39
- export interface CommitInfo {
40
- /** Commit hash */
41
- hash: string;
42
- /** Commit message */
43
- message: string;
44
- /** Author name */
45
- author?: string;
46
- /** Author date */
47
- date?: string;
48
- }
49
- /**
50
- * Result of git log operation
51
- */
52
- export interface GitLogResult {
53
- /** Whether operation succeeded */
54
- success: boolean;
55
- /** Error message (if failed) */
56
- error?: string;
57
- /** Parsed commits */
58
- commits: CommitInfo[];
59
- /** Raw output (for oneline/custom format) */
60
- output?: string;
61
- }
62
- /**
63
- * Parse command line arguments for git-log
64
- */
65
- export declare function parseGitLogArgs(argv: string[]): GitLogArgs;
66
- /**
67
- * Get git log with audit logging
68
- */
69
- export declare function getGitLog(args: GitLogArgs): Promise<GitLogResult>;