@fractary/faber-cli 1.5.40 → 1.5.42

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/plan/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAsDpC;;GAEG;AACH,wBAAgB,iBAAiB,IAAI,OAAO,CA0B3C"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/plan/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAuDpC;;GAEG;AACH,wBAAgB,iBAAiB,IAAI,OAAO,CA2B3C"}
@@ -23,6 +23,7 @@ export function createPlanCommand() {
23
23
  .option('--work-id <ids>', 'Comma-separated list of work item IDs (deprecated: use positional argument)')
24
24
  .option('--work-label <labels>', 'Comma-separated label filters (e.g., "workflow:etl,status:approved")')
25
25
  .option('--workflow <name>', 'Override workflow (default: read from issue "workflow:*" label)')
26
+ .option('--autonomy <level>', 'Override autonomy level (guarded|autonomous)')
26
27
  .option('--no-worktree', 'Skip worktree creation')
27
28
  .option('--no-branch', 'Skip branch creation')
28
29
  .option('--skip-confirm', 'Skip confirmation prompt (use with caution)')
@@ -340,6 +341,10 @@ async function planSingleIssue(issue, config, repoClient, anthropicClient, optio
340
341
  issueDescription: issue.description,
341
342
  issueNumber: issue.number,
342
343
  });
344
+ // Apply autonomy override if provided (takes precedence over workflow-level autonomy)
345
+ if (options.autonomy) {
346
+ plan.autonomy = options.autonomy;
347
+ }
343
348
  const planId = plan.id;
344
349
  // Create branch without checking it out (so it won't conflict with worktree creation)
345
350
  if (!options.noBranch) {
@@ -657,7 +657,11 @@ async function executeBatchPlanCommand(options) {
657
657
  try {
658
658
  // Invoke the existing workflow-plan CLI command as a subprocess
659
659
  const faberBin = process.argv[1];
660
- const result = spawnSync(process.execPath, [faberBin, 'workflow-plan', '--work-id', workId, '--skip-confirm'], { stdio: options.json ? 'pipe' : 'inherit', encoding: 'utf-8' });
660
+ const planArgs = [faberBin, 'workflow-plan', '--work-id', workId, '--skip-confirm'];
661
+ if (options.autonomous) {
662
+ planArgs.push('--autonomy', 'autonomous');
663
+ }
664
+ const result = spawnSync(process.execPath, planArgs, { stdio: options.json ? 'pipe' : 'inherit', encoding: 'utf-8' });
661
665
  if (result.status !== 0) {
662
666
  throw new Error(result.stderr || `workflow-plan exited with code ${result.status}`);
663
667
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fractary/faber-cli",
3
- "version": "1.5.40",
3
+ "version": "1.5.42",
4
4
  "description": "FABER CLI - Command-line interface for FABER development toolkit",
5
5
  "main": "dist/index.js",
6
6
  "bin": {