Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,25 @@
This file records user-visible changes to the BoxCompute CLI. GitHub Releases
use the same notes and bind them to the exact source commit.

## [0.14.1] - 2026-11-23

Waking an Orca workspace whose VM kept running works.

### CLI users

- `bxc orca resume` on a VM that is still running (Orca lost contact because
its link changed, not because the VM stopped) failed without a message:
re-pairing a server that listens only on the VM's loopback is refused. It
now restarts Orca's server with the new link; its terminals and agents keep
running.
- Includes 0.14.0, which was never published to npm: `bxc orca` for the
BoxCompute plugin for Orca.
- Update with `bxc update` or `npm install --global @boxcompute/cli@latest`.

### Security

- No change to authentication or credential storage.

## [0.14.0] - 2026-11-23

Orca (orca.dev) can run each workspace on its own BoxCompute VM.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@boxcompute/cli",
"version": "0.14.0",
"version": "0.14.1",
"description": "Connect local AI agents to BoxCompute sandboxes",
"keywords": [
"boxcompute",
Expand Down
10 changes: 7 additions & 3 deletions src/orca.ts
Original file line number Diff line number Diff line change
Expand Up @@ -375,9 +375,13 @@ node="$(ls -d "$B"/server/current/runtimes/node-*/bin/node 2>/dev/null | head -n
[ -x "$node" ] || node="$(command -v node)"
ready() { "$O" status --json 2>/dev/null | "$node" -e 'let s="";process.stdin.on("data",d=>s+=d).on("end",()=>{try{process.exit(JSON.parse(s).result?.runtime?.state==="ready"?0:1)}catch{process.exit(1)}})'; }
if ready; then
# Still serving (the VM kept running while its link changed): pair with the new link.
"$O" pair --address "$BXC_ORCA_ADDRESS" --json | "$node" -e 'let s="";process.stdin.on("data",d=>s+=d).on("end",()=>{const r=JSON.parse(s).result;if(!r?.pairingUrl)process.exit(1);process.stdout.write(JSON.stringify({schemaVersion:1,pairingCode:r.pairingUrl,projectRoot:process.env.BXC_ORCA_ROOT}))})' > "$out"
exit 0
# Still serving (the VM kept running while its link changed). orca-ide pair
# would re-expose a loopback-bound server to the network and refuses
# (network_exposure_failed), so restart it with the new link instead. Its
# terminals and agents run in a separate host that outlives the server.
pid="$("$O" status --json 2>/dev/null | "$node" -e 'let s="";process.stdin.on("data",d=>s+=d).on("end",()=>{try{const p=JSON.parse(s).result?.app?.pid;if(Number.isInteger(p))process.stdout.write(String(p))}catch{}})')"
[ -n "$pid" ] && kill "$pid" 2>/dev/null || true
for _ in $(seq 1 40); do ready || break; sleep 0.5; done
fi
# The launcher prints the result and exits; the server it started keeps running.
setsid nohup "$O" serve --port 6768 --bind 127.0.0.1 --project-root "$BXC_ORCA_ROOT" --pairing-address "$BXC_ORCA_ADDRESS" --recipe-json > "$out" 2> "$B/serve.log" < /dev/null &
Expand Down
7 changes: 7 additions & 0 deletions test/orca.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,13 @@ test("destroy deletes the recorded VM, finds one by name, and is fine with none"
expect(await destroy(JSON.stringify({ mode: "destroy", instanceId, recipeResult: { userData: { sandboxId: "sbx_gone" } } }), gone.client)).toBe(0);
});

test("the server listens only on loopback and is restarted, never re-exposed, for a new link", () => {
expect(SERVE_SCRIPT).toContain("--bind 127.0.0.1");
// orca-ide pair re-exposes a loopback server to the network and refuses.
expect(SERVE_SCRIPT).not.toMatch(/"\$O" pair/);
expect(SETUP_SCRIPT).toContain("sha256sum");
});

test("remotes, names and versions", () => {
expect(httpsRemote("git@github.com:acme/widget.git")).toBe("https://github.com/acme/widget.git");
expect(httpsRemote("ssh://git@github.com/acme/widget.git")).toBe("https://github.com/acme/widget.git");
Expand Down