autopilot-code 0.0.6 → 0.0.7

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/dist/cli.js CHANGED
@@ -309,6 +309,8 @@ program
309
309
  .description("Discover autopilot-enabled repos + show next issue candidate (dry-run)")
310
310
  .option("--root <paths...>", "Root folder(s) that contain git repos (space-separated)")
311
311
  .option("--max-depth <number>", "Maximum depth for recursive repo discovery", "5")
312
+ .option("--min-priority <label>", "Minimum priority label to work (e.g. p0, p1)")
313
+ .option("--ignore-labels <labels...>", "Ignore issues with these labels (space-separated)")
312
314
  .action((opts) => {
313
315
  let rootPaths = opts.root;
314
316
  if (!rootPaths || rootPaths.length === 0) {
@@ -322,6 +324,11 @@ program
322
324
  const args = [runnerPath, "--root", ...rootPaths];
323
325
  if (opts.maxDepth)
324
326
  args.push("--max-depth", opts.maxDepth);
327
+ if (opts.minPriority)
328
+ args.push("--min-priority", opts.minPriority);
329
+ if (opts.ignoreLabels && opts.ignoreLabels.length > 0) {
330
+ args.push("--ignore-labels", ...opts.ignoreLabels);
331
+ }
325
332
  args.push("--dry-run");
326
333
  run("python3", args);
327
334
  });
@@ -330,6 +337,8 @@ program
330
337
  .description("Claim exactly one issue and post a progress comment")
331
338
  .option("--root <paths...>", "Root folder(s) that contain git repos (space-separated)")
332
339
  .option("--max-depth <number>", "Maximum depth for recursive repo discovery", "5")
340
+ .option("--min-priority <label>", "Minimum priority label to work (e.g. p0, p1)")
341
+ .option("--ignore-labels <labels...>", "Ignore issues with these labels (space-separated)")
333
342
  .action((opts) => {
334
343
  let rootPaths = opts.root;
335
344
  if (!rootPaths || rootPaths.length === 0) {
@@ -343,6 +352,11 @@ program
343
352
  const args = [runnerPath, "--root", ...rootPaths];
344
353
  if (opts.maxDepth)
345
354
  args.push("--max-depth", opts.maxDepth);
355
+ if (opts.minPriority)
356
+ args.push("--min-priority", opts.minPriority);
357
+ if (opts.ignoreLabels && opts.ignoreLabels.length > 0) {
358
+ args.push("--ignore-labels", ...opts.ignoreLabels);
359
+ }
346
360
  run("python3", args);
347
361
  });
348
362
  program
@@ -352,6 +366,8 @@ program
352
366
  .option("--interval-seconds <number>", "Interval between cycles in seconds", "60")
353
367
  .option("--root <paths...>", "Root folder(s) that contain git repos (space-separated)")
354
368
  .option("--max-depth <number>", "Maximum depth for recursive repo discovery", "5")
369
+ .option("--min-priority <label>", "Minimum priority label to work (e.g. p0, p1)")
370
+ .option("--ignore-labels <labels...>", "Ignore issues with these labels (space-separated)")
355
371
  .action((opts) => {
356
372
  let rootPaths = opts.root;
357
373
  if (!rootPaths || rootPaths.length === 0) {
@@ -365,6 +381,11 @@ program
365
381
  const args = [runnerPath, "--root", ...rootPaths];
366
382
  if (opts.maxDepth)
367
383
  args.push("--max-depth", opts.maxDepth);
384
+ if (opts.minPriority)
385
+ args.push("--min-priority", opts.minPriority);
386
+ if (opts.ignoreLabels && opts.ignoreLabels.length > 0) {
387
+ args.push("--ignore-labels", ...opts.ignoreLabels);
388
+ }
368
389
  if (opts.foreground) {
369
390
  const interval = opts.intervalSeconds || "60";
370
391
  args.push("--interval-seconds", interval);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "autopilot-code",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "private": false,
5
5
  "description": "Repo-issue–driven autopilot runner",
6
6
  "license": "MIT",
@@ -433,6 +433,8 @@ def main() -> int:
433
433
  default=None,
434
434
  help="Run in loop mode with this interval between cycles (for foreground service mode)",
435
435
  )
436
+ ap.add_argument("--min-priority", help="Override minPriority for all discovered repos")
437
+ ap.add_argument("--ignore-labels", nargs="+", help="Override ignoreIssueLabels for all discovered repos")
436
438
  args = ap.parse_args()
437
439
 
438
440
  all_configs: list[RepoConfig] = []
@@ -445,6 +447,14 @@ def main() -> int:
445
447
  print(f"Warning: root path {root} is not a directory, skipping")
446
448
  continue
447
449
  configs = discover_repos(root, max_depth=args.max_depth)
450
+
451
+ # Apply overrides
452
+ for cfg in configs:
453
+ if args.min_priority:
454
+ cfg.min_priority = args.min_priority
455
+ if args.ignore_labels:
456
+ cfg.ignore_issue_labels = args.ignore_labels
457
+
448
458
  all_configs.extend(configs)
449
459
 
450
460
  if not all_configs: