autopilot-code 0.0.11 → 0.0.12

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
@@ -209,7 +209,7 @@ function installSystemdService() {
209
209
  if (!systemctl("enable", ["autopilot.service", ...daemonReloadArgs])) {
210
210
  process.exit(1);
211
211
  }
212
- if (!systemctl("start", ["autopilot.service", ...daemonReloadArgs])) {
212
+ if (!systemctl("restart", ["autopilot.service", ...daemonReloadArgs])) {
213
213
  process.exit(1);
214
214
  }
215
215
  console.log("✅ Autopilot service installed, enabled and started.");
@@ -402,7 +402,7 @@ program
402
402
  console.log("No source folders configured. Run 'autopilot init' to add some.");
403
403
  return;
404
404
  }
405
- const args = [runnerPath, "--root", ...rootPaths];
405
+ const args = ["-u", runnerPath, "--root", ...rootPaths];
406
406
  if (opts.maxDepth)
407
407
  args.push("--max-depth", opts.maxDepth);
408
408
  if (opts.minPriority)
@@ -434,7 +434,7 @@ program
434
434
  console.log("No source folders configured. Run 'autopilot init' to add some.");
435
435
  return;
436
436
  }
437
- const args = [runnerPath, "--root", ...rootPaths];
437
+ const args = ["-u", runnerPath, "--root", ...rootPaths];
438
438
  if (opts.maxDepth)
439
439
  args.push("--max-depth", opts.maxDepth);
440
440
  if (opts.minPriority)
@@ -467,7 +467,7 @@ program
467
467
  console.log("No source folders configured. Run 'autopilot init' to add some.");
468
468
  return;
469
469
  }
470
- const args = [runnerPath, "--root", ...rootPaths];
470
+ const args = ["-u", runnerPath, "--root", ...rootPaths];
471
471
  if (opts.maxDepth)
472
472
  args.push("--max-depth", opts.maxDepth);
473
473
  if (opts.minPriority)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "autopilot-code",
3
- "version": "0.0.11",
3
+ "version": "0.0.12",
4
4
  "private": false,
5
5
  "description": "Repo-issue–driven autopilot runner",
6
6
  "license": "MIT",
@@ -100,10 +100,8 @@ def load_config(repo_root: Path) -> RepoConfig | None:
100
100
  allowed_merge_users = list(data.get("allowedMergeUsers", []))
101
101
 
102
102
  if auto_merge and not allowed_merge_users:
103
- raise RuntimeError(
104
- "autoMerge is enabled but allowedMergeUsers list is empty or missing. "
105
- "Please specify at least one allowed GitHub username."
106
- )
103
+ print(f"Warning: [{data.get('repo', 'unknown')}] autoMerge is enabled but allowedMergeUsers is empty. Disabling autoMerge for this repo.")
104
+ auto_merge = False
107
105
 
108
106
  auto_resolve_conflicts = data.get("autoResolveConflicts", True)
109
107
  conflict_resolution_max_attempts = int(data.get("conflictResolutionMaxAttempts", 3))
@@ -152,9 +150,12 @@ def _discover_repos_recursive(
152
150
  if (current_dir / ".git").exists() and (
153
151
  current_dir / ".autopilot" / "autopilot.json"
154
152
  ).exists():
155
- cfg = load_config(current_dir)
156
- if cfg:
157
- out.append(cfg)
153
+ try:
154
+ cfg = load_config(current_dir)
155
+ if cfg:
156
+ out.append(cfg)
157
+ except Exception as e:
158
+ print(f"Error loading config in {current_dir}: {e}")
158
159
  return
159
160
 
160
161
  # Recursively search subdirectories (depth-first)
@@ -356,6 +357,7 @@ def run_cycle(
356
357
  claimed_count = 0
357
358
 
358
359
  for cfg in all_configs:
360
+ print(f"[{cfg.repo}] Scanning for issues...")
359
361
  # 1) First, check any in-progress issues and mark blocked if stale.
360
362
  inprog = list_in_progress_issues(cfg)
361
363
  for it in inprog: