Skip to content

feat: expose VM services (port-forward) and experimental Tailcat SSH - #15

Merged
pokgak merged 6 commits into
mainfrom
feat/ship-services-and-ssh
Sep 21, 2026
Merged

pokgak merged 6 commits into
mainfrom
feat/ship-services-and-ssh

Conversation

@pokgak

@pokgak pokgak commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Ships the two in-flight client features on top of the SDK-based CLI (@boxcompute/sdk):

  • Owned-VM service exposure / port-forward (bxc sandbox expose SANDBOX_ID --port [LOCAL:]REMOTE) — binds up to 8 TCP ports on 127.0.0.1 for a fixed five-minute lease, then revokes on exit.
  • Experimental Tailcat SSH (BOXCOMPUTE_ENABLE_SSH=1 bxc sandbox ssh SANDBOX_ID, plus the bxc proxy byte transport) — short-lived, non-PTY cooperative SSH.

Both transports live beside the SDK in src/service-access.ts and src/cooperative-connection.ts (they use routes the SDK doesn't expose), while the rest of the API continues through BoxCompute. Each packages its own native helper (native/service-client, native/connection-proxy) built by build:native.

Supersedes the older feat/service-exposure (#11) and feat/tailcat-ssh (#4) branches, which still referenced the removed hand-written BoxComputeClient.

Verification

bun run typecheck    # clean
bun test             # 55 pass, 0 fail
bun run lint         # clean
bun run build        # clean
bun run test:native  # service-client + connection-proxy Go tests pass
node scripts/smoke-vm.mjs  # VM creation + binary file smoke passes

Notes

  • bxc sandbox ssh/proxy remain gated behind BOXCOMPUTE_ENABLE_SSH=1 and operator-enabled sandboxes.
  • Bumps @boxcompute/cli to 0.7.0 with a consolidated CHANGELOG entry.

View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

farhan-helmy and others added 6 commits September 11, 2026 15:34
Adapt the owned-VM service-access transport (feat/service-exposure) to the
@boxcompute/sdk refactor: extract serviceAccess into src/service-access.ts,
wire sandbox expose through serviceAccessApi, and migrate the old
BoxComputeClient tests.

Amp-Thread-ID: https://ampcode.com/threads/T-01a0c2f2-e08e-70cb-b38d-a1ebd113bf7d
Co-authored-by: Aiman Ismail <m.aimanismail@gmail.com>
Adapt the cooperative-SSH enrollment transport (feat/tailcat-ssh) to the
@boxcompute/sdk refactor: extract cooperative-connection into
src/cooperative-connection.ts, wire sandbox ssh through
cooperativeConnectionApi, and migrate the old BoxComputeClient tests.

Co-authored-by: Aiman Ismail <m.aimanismail@gmail.com>
Amp-Thread-ID: https://ampcode.com/threads/T-01a0c2f2-e08e-70cb-b38d-a1ebd113bf7d
…ve SSH

Ship the owned-VM service exposure (bxc sandbox expose) and experimental
Tailcat SSH (bxc sandbox ssh + proxy) together on the SDK-based CLI. Both
transports live beside the SDK (service-access.ts, cooperative-connection.ts)
and package their native helpers.

Amp-Thread-ID: https://ampcode.com/threads/T-01a0c2f2-e08e-70cb-b38d-a1ebd113bf7d
Co-authored-by: Aiman Ismail <m.aimanismail@gmail.com>
Amp-Thread-ID: https://ampcode.com/threads/T-01a0c2f2-e08e-70cb-b38d-a1ebd113bf7d
Co-authored-by: Aiman Ismail <m.aimanismail@gmail.com>
@pokgak
pokgak merged commit 8d30d46 into main Sep 21, 2026
5 checks passed
@pokgak
pokgak deleted the feat/ship-services-and-ssh branch September 21, 2026 09:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants