@fractary/faber-cli 1.5.1 → 1.5.2
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Workflow commands - FABER workflow execution
|
|
3
3
|
*
|
|
4
|
-
* Provides workflow-run,
|
|
4
|
+
* Provides workflow-run, run-inspect, workflow-resume, workflow-pause commands via FaberWorkflow SDK.
|
|
5
5
|
*/
|
|
6
6
|
import { Command } from 'commander';
|
|
7
7
|
/**
|
|
@@ -9,7 +9,7 @@ import { Command } from 'commander';
|
|
|
9
9
|
*/
|
|
10
10
|
export declare function createRunCommand(): Command;
|
|
11
11
|
/**
|
|
12
|
-
* Create the
|
|
12
|
+
* Create the run-inspect command
|
|
13
13
|
*/
|
|
14
14
|
export declare function createStatusCommand(): Command;
|
|
15
15
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Workflow commands - FABER workflow execution
|
|
3
3
|
*
|
|
4
|
-
* Provides workflow-run,
|
|
4
|
+
* Provides workflow-run, run-inspect, workflow-resume, workflow-pause commands via FaberWorkflow SDK.
|
|
5
5
|
*/
|
|
6
6
|
import { Command } from 'commander';
|
|
7
7
|
import chalk from 'chalk';
|
|
@@ -60,11 +60,11 @@ export function createRunCommand() {
|
|
|
60
60
|
});
|
|
61
61
|
}
|
|
62
62
|
/**
|
|
63
|
-
* Create the
|
|
63
|
+
* Create the run-inspect command
|
|
64
64
|
*/
|
|
65
65
|
export function createStatusCommand() {
|
|
66
|
-
return new Command('
|
|
67
|
-
.description('Show workflow status')
|
|
66
|
+
return new Command('run-inspect')
|
|
67
|
+
.description('Show workflow run status')
|
|
68
68
|
.option('--work-id <id>', 'Work item ID to check')
|
|
69
69
|
.option('--workflow-id <id>', 'Workflow ID to check')
|
|
70
70
|
.option('--verbose', 'Show detailed status')
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA;;;;;GAKG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAqBpC;;GAEG;AACH,wBAAgB,cAAc,IAAI,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA;;;;;GAKG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAqBpC;;GAEG;AACH,wBAAgB,cAAc,IAAI,OAAO,CA0KxC"}
|
package/dist/index.js
CHANGED
|
@@ -21,7 +21,7 @@ if (process.stdout.isTTY) {
|
|
|
21
21
|
process.stdout._handle?.setBlocking?.(true);
|
|
22
22
|
}
|
|
23
23
|
console.error('[DEBUG] CLI starting, args:', process.argv);
|
|
24
|
-
const version = '1.
|
|
24
|
+
const version = '1.5.2';
|
|
25
25
|
/**
|
|
26
26
|
* Create and configure the main CLI program
|
|
27
27
|
*/
|
|
@@ -38,7 +38,7 @@ export function createFaberCLI() {
|
|
|
38
38
|
program.addCommand(createMigrateCommand()); // migrate
|
|
39
39
|
program.addCommand(createPlanCommand()); // plan
|
|
40
40
|
program.addCommand(createRunCommand()); // workflow-run
|
|
41
|
-
program.addCommand(createStatusCommand()); //
|
|
41
|
+
program.addCommand(createStatusCommand()); // run-inspect
|
|
42
42
|
program.addCommand(createResumeCommand()); // workflow-resume
|
|
43
43
|
program.addCommand(createPauseCommand()); // workflow-pause
|
|
44
44
|
program.addCommand(createRecoverCommand()); // workflow-recover
|
|
@@ -71,15 +71,39 @@ export function createFaberCLI() {
|
|
|
71
71
|
...(options.json ? ['--json'] : [])
|
|
72
72
|
], { from: 'user' });
|
|
73
73
|
});
|
|
74
|
+
program
|
|
75
|
+
.command('workflow-status')
|
|
76
|
+
.description('(DEPRECATED: Use run-inspect)')
|
|
77
|
+
.option('--work-id <id>', 'Work item ID to check')
|
|
78
|
+
.option('--workflow-id <id>', 'Workflow ID to check')
|
|
79
|
+
.option('--verbose', 'Show detailed status')
|
|
80
|
+
.option('--json', 'Output as JSON')
|
|
81
|
+
.action((options) => {
|
|
82
|
+
showDeprecationWarning('workflow-status', 'run-inspect');
|
|
83
|
+
const statusCmd = createStatusCommand();
|
|
84
|
+
statusCmd.parse(['', '', ...Object.entries(options).flatMap(([k, v]) => typeof v === 'boolean' && v ? [`--${k}`] : typeof v === 'string' ? [`--${k}`, v] : [])], { from: 'user' });
|
|
85
|
+
});
|
|
74
86
|
program
|
|
75
87
|
.command('status')
|
|
76
|
-
.description('(DEPRECATED: Use
|
|
88
|
+
.description('(DEPRECATED: Use run-inspect)')
|
|
89
|
+
.option('--work-id <id>', 'Work item ID to check')
|
|
90
|
+
.option('--workflow-id <id>', 'Workflow ID to check')
|
|
91
|
+
.option('--verbose', 'Show detailed status')
|
|
92
|
+
.option('--json', 'Output as JSON')
|
|
93
|
+
.action((options) => {
|
|
94
|
+
showDeprecationWarning('status', 'run-inspect');
|
|
95
|
+
const statusCmd = createStatusCommand();
|
|
96
|
+
statusCmd.parse(['', '', ...Object.entries(options).flatMap(([k, v]) => typeof v === 'boolean' && v ? [`--${k}`] : typeof v === 'string' ? [`--${k}`, v] : [])], { from: 'user' });
|
|
97
|
+
});
|
|
98
|
+
program
|
|
99
|
+
.command('run-status')
|
|
100
|
+
.description('(DEPRECATED: Use run-inspect)')
|
|
77
101
|
.option('--work-id <id>', 'Work item ID to check')
|
|
78
102
|
.option('--workflow-id <id>', 'Workflow ID to check')
|
|
79
103
|
.option('--verbose', 'Show detailed status')
|
|
80
104
|
.option('--json', 'Output as JSON')
|
|
81
105
|
.action((options) => {
|
|
82
|
-
showDeprecationWarning('status', '
|
|
106
|
+
showDeprecationWarning('run-status', 'run-inspect');
|
|
83
107
|
const statusCmd = createStatusCommand();
|
|
84
108
|
statusCmd.parse(['', '', ...Object.entries(options).flatMap(([k, v]) => typeof v === 'boolean' && v ? [`--${k}`] : typeof v === 'string' ? [`--${k}`, v] : [])], { from: 'user' });
|
|
85
109
|
});
|