autopilot-code 0.0.22 → 0.0.24
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 +1 -0
- package/package.json +1 -1
- package/scripts/run_autopilot.py +11 -0
- package/scripts/run_opencode_issue.sh +6 -0
package/dist/cli.js
CHANGED
|
@@ -492,6 +492,7 @@ program
|
|
|
492
492
|
const interval = opts.intervalSeconds || "60";
|
|
493
493
|
args.push("--interval-seconds", interval);
|
|
494
494
|
console.log(`Starting autopilot service in foreground mode (interval: ${interval}s)`);
|
|
495
|
+
console.log(`Version: ${version}`);
|
|
495
496
|
console.log("Press Ctrl+C to shut down cleanly\n");
|
|
496
497
|
run("python3", args);
|
|
497
498
|
}
|
package/package.json
CHANGED
package/scripts/run_autopilot.py
CHANGED
|
@@ -753,6 +753,17 @@ def run_cycle(
|
|
|
753
753
|
|
|
754
754
|
|
|
755
755
|
def main() -> int:
|
|
756
|
+
# Log version on startup
|
|
757
|
+
try:
|
|
758
|
+
script_dir = Path(__file__).parent.parent
|
|
759
|
+
package_json_path = script_dir / "package.json"
|
|
760
|
+
if package_json_path.exists():
|
|
761
|
+
package_data = json.loads(package_json_path.read_text(encoding="utf-8"))
|
|
762
|
+
version = package_data.get("version", "unknown")
|
|
763
|
+
print(f"autopilot version: {version}", flush=True)
|
|
764
|
+
except Exception:
|
|
765
|
+
pass
|
|
766
|
+
|
|
756
767
|
ap = argparse.ArgumentParser()
|
|
757
768
|
ap.add_argument(
|
|
758
769
|
"--root",
|
|
@@ -91,6 +91,12 @@ else
|
|
|
91
91
|
fi
|
|
92
92
|
fi
|
|
93
93
|
|
|
94
|
+
# 1.5. Install dependencies if package.json exists (for Node.js projects)
|
|
95
|
+
if [[ -f "$WORKTREE/package.json" ]]; then
|
|
96
|
+
echo "[run_opencode_issue.sh] Installing npm dependencies..."
|
|
97
|
+
(cd "$WORKTREE" && npm install --silent) || true
|
|
98
|
+
fi
|
|
99
|
+
|
|
94
100
|
# 2. Fetch issue title/body
|
|
95
101
|
ISSUE_JSON=$(gh issue view "$ISSUE_NUMBER" --repo "$REPO" --json title,body)
|
|
96
102
|
if command -v jq >/dev/null 2>&1; then
|