autopilot-code 0.0.24 → 0.0.26
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/package.json
CHANGED
package/scripts/postinstall.js
CHANGED
|
@@ -13,6 +13,12 @@ if (process.env.CI || process.env.GITHUB_ACTIONS) {
|
|
|
13
13
|
process.exit(0);
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
+
// Skip if running in an autopilot worktree (prevents killing the running service)
|
|
17
|
+
if (process.cwd().includes('/tmp/autopilot-issue-') || process.env.AUTOPILOT_WORKTREE) {
|
|
18
|
+
console.log('Autopilot: skipping auto-install (running in worktree).');
|
|
19
|
+
process.exit(0);
|
|
20
|
+
}
|
|
21
|
+
|
|
16
22
|
const cliPath = path.join(__dirname, '..', 'dist', 'cli.js');
|
|
17
23
|
|
|
18
24
|
if (!fs.existsSync(cliPath)) {
|
package/scripts/run_autopilot.py
CHANGED
|
@@ -726,8 +726,6 @@ def run_cycle(
|
|
|
726
726
|
msg = (
|
|
727
727
|
f"Autopilot claimed this issue at {time.strftime('%Y-%m-%d %H:%M:%S %Z')}.\n\n"
|
|
728
728
|
"Next: implement fix and open PR.\n\n"
|
|
729
|
-
"(Durable tracking: this repo will maintain `.autopilot/state.json` as a heartbeat; "
|
|
730
|
-
"the runner does not inspect processes.)"
|
|
731
729
|
)
|
|
732
730
|
print(f"[{cfg.repo}] next issue: #{issue['number']} {issue['title']}", flush=True)
|
|
733
731
|
if dry_run:
|
|
@@ -330,8 +330,8 @@ if [[ "$AUTO_MERGE" == "true" ]] && [[ -n "$PR_URL" ]]; then
|
|
|
330
330
|
while [[ $POLL_ATTEMPT -lt $MAX_POLL_ATTEMPTS ]]; do
|
|
331
331
|
POLL_ATTEMPT=$((POLL_ATTEMPT + 1))
|
|
332
332
|
|
|
333
|
-
# Get PR check status
|
|
334
|
-
CHECK_STATUS=$(gh pr view --repo "$REPO" --head "$BRANCH" --json mergeable,mergeStateStatus,statusCheckRollup --jq '.statusCheckRollup | map(.conclusion) |
|
|
333
|
+
# Get PR check status (handle null/empty statusCheckRollup as PASSED - no checks configured)
|
|
334
|
+
CHECK_STATUS=$(gh pr view --repo "$REPO" --head "$BRANCH" --json mergeable,mergeStateStatus,statusCheckRollup --jq '.statusCheckRollup | if . == null or length == 0 then "PASSED" elif map(.conclusion) | any(. == "FAILURE") then "FAILED" elif map(.conclusion) | any(. == "PENDING") or any(. == "QUEUED") then "PENDING" else "PASSED" end' 2>/dev/null || echo "PENDING")
|
|
335
335
|
|
|
336
336
|
echo "[run_opencode_issue.sh] Poll attempt $POLL_ATTEMPT/$MAX_POLL_ATTEMPTS: Check status = $CHECK_STATUS"
|
|
337
337
|
|