spec-agent 2.0.2 → 2.0.3

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/src/index.ts CHANGED
@@ -14,6 +14,8 @@ import { cleanCommand } from './commands/clean';
14
14
  import { doctorCommand } from './commands/doctor';
15
15
  import { handoffCommand } from './commands/handoff';
16
16
  import { executeCommand } from './commands/execute';
17
+ import { orchestrateCommand } from './commands/orchestrate';
18
+ import { roundCommand } from './commands/round';
17
19
 
18
20
  const program = new Command();
19
21
  const pkgVersion = (() => {
@@ -173,4 +175,29 @@ program
173
175
  .option('--dry-run', 'Preview execution transitions without writing state')
174
176
  .action(executeCommand);
175
177
 
178
+ program
179
+ .command('orchestrate')
180
+ .description('Generate orchestrator context and next-step decisions from artifacts')
181
+ .option('-w, --workspace <dir>', 'Workspace directory', './output')
182
+ .option('-i, --input <path>', 'Input docs path used for pipeline', './docs')
183
+ .option('-t, --target <name>', 'Execution target: cursor, qcoder, codebuddy, generic', 'cursor')
184
+ .option('-p, --max-parallel <count>', 'Max parallel tasks for execute suggestion', '4')
185
+ .option('--format <format>', 'Output format: text, json', 'text')
186
+ .option('--dry-run', 'Preview decisions without writing orchestrator_context.json')
187
+ .action(orchestrateCommand);
188
+
189
+ program
190
+ .command('round')
191
+ .description('Run one orchestrated round (pipeline/handoff/execute decision)')
192
+ .option('-w, --workspace <dir>', 'Workspace directory', './output')
193
+ .option('-i, --input <path>', 'Input docs path used for pipeline', './docs')
194
+ .option('-t, --target <name>', 'Execution target: cursor, qcoder, codebuddy, generic', 'cursor')
195
+ .option('-p, --max-parallel <count>', 'Max parallel tasks for execute', '4')
196
+ .option('-r, --retry <count>', 'Retry times per task after failure', '1')
197
+ .option('--complete <ids>', 'Mark task IDs as completed, comma-separated')
198
+ .option('--fail <ids>', 'Mark task IDs as failed, comma-separated')
199
+ .option('--error <message>', 'Failure reason when using --fail')
200
+ .option('--dry-run', 'Preview one-round decision without running commands')
201
+ .action(roundCommand);
202
+
176
203
  program.parse();