@fractary/faber-cli 1.5.32 → 1.5.34
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/workflow/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAapC;;GAEG;AACH,wBAAgB,gBAAgB,IAAI,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/workflow/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAapC;;GAEG;AACH,wBAAgB,gBAAgB,IAAI,OAAO,CAsJ1C;AAED;;GAEG;AACH,wBAAgB,mBAAmB,IAAI,OAAO,CAiF7C;AAED;;GAEG;AACH,wBAAgB,mBAAmB,IAAI,OAAO,CAyB7C;AAED;;GAEG;AACH,wBAAgB,kBAAkB,IAAI,OAAO,CAoB5C;AAED;;GAEG;AACH,wBAAgB,oBAAoB,IAAI,OAAO,CA2B9C;AAED;;GAEG;AACH,wBAAgB,oBAAoB,IAAI,OAAO,CA8B9C;AAED;;GAEG;AACH,wBAAgB,2BAA2B,IAAI,OAAO,CAoCrD;AAED;;GAEG;AACH,wBAAgB,2BAA2B,IAAI,OAAO,CA4BrD;AAED;;GAEG;AACH,wBAAgB,4BAA4B,IAAI,OAAO,CA0CtD;AAED;;GAEG;AACH,wBAAgB,0BAA0B,IAAI,OAAO,CAkDpD;AAED;;GAEG;AACH,wBAAgB,sBAAsB,IAAI,OAAO,CAchD;AAED;;GAEG;AACH,wBAAgB,qBAAqB,IAAI,OAAO,CAgB/C"}
|
|
@@ -63,6 +63,8 @@ export function createRunCommand() {
|
|
|
63
63
|
const result = await workflow.run({
|
|
64
64
|
workId,
|
|
65
65
|
autonomy: options.autonomy,
|
|
66
|
+
phase: options.phase,
|
|
67
|
+
forceNew: options.forceNew,
|
|
66
68
|
});
|
|
67
69
|
results.push({ workId, status: result.status });
|
|
68
70
|
if (!options.json) {
|
|
@@ -130,6 +132,8 @@ export function createRunCommand() {
|
|
|
130
132
|
const result = await workflow.run({
|
|
131
133
|
workId: workIds[0],
|
|
132
134
|
autonomy: options.autonomy,
|
|
135
|
+
phase: options.phase,
|
|
136
|
+
forceNew: options.forceNew,
|
|
133
137
|
});
|
|
134
138
|
if (options.json) {
|
|
135
139
|
console.log(JSON.stringify({ status: 'success', data: result }, null, 2));
|
|
@@ -553,6 +557,8 @@ export function createBatchRunCommand() {
|
|
|
553
557
|
.requiredOption('--batch <batch-id>', 'Batch ID to execute (from workflow-batch-plan)')
|
|
554
558
|
.option('--autonomous', 'Auto-skip failed items without prompting (for overnight unattended runs)')
|
|
555
559
|
.option('--resume', 'Skip already-completed items (safe to re-run after interruption)')
|
|
560
|
+
.option('--phase <phases>', 'Execute only specified phase(s) - comma-separated')
|
|
561
|
+
.option('--force-new', 'Force fresh start for each item, bypass auto-resume')
|
|
556
562
|
.option('--json', 'Output as JSON')
|
|
557
563
|
.action(async (options) => {
|
|
558
564
|
try {
|
|
@@ -737,6 +743,10 @@ async function executeBatchRunCommand(options) {
|
|
|
737
743
|
const completed = state.items.filter(i => i.status === 'completed').length;
|
|
738
744
|
console.log(chalk.gray(`Resume: ${completed}/${state.items.length} already completed`));
|
|
739
745
|
}
|
|
746
|
+
if (options.phase)
|
|
747
|
+
console.log(chalk.gray(`Phase filter: ${options.phase}`));
|
|
748
|
+
if (options.forceNew)
|
|
749
|
+
console.log(chalk.gray('Force new: yes'));
|
|
740
750
|
console.log(chalk.gray(`Remaining: ${toProcess.length} item(s)`));
|
|
741
751
|
console.log('');
|
|
742
752
|
}
|
|
@@ -770,7 +780,12 @@ async function executeBatchRunCommand(options) {
|
|
|
770
780
|
break;
|
|
771
781
|
}
|
|
772
782
|
});
|
|
773
|
-
const result = await workflow.run({
|
|
783
|
+
const result = await workflow.run({
|
|
784
|
+
workId,
|
|
785
|
+
autonomy: options.autonomous ? 'autonomous' : 'guarded',
|
|
786
|
+
phase: options.phase,
|
|
787
|
+
forceNew: options.forceNew,
|
|
788
|
+
});
|
|
774
789
|
state.items[globalIndex].status = 'completed';
|
|
775
790
|
state.items[globalIndex].run_id = result.run_id || null;
|
|
776
791
|
state.items[globalIndex].completed_at = new Date().toISOString();
|