Skip to content

Conversation

@kcoopermiller
Copy link
Member

@kcoopermiller kcoopermiller commented Dec 2, 2025

Note

Adds TCP/UDP port exposure support to SDK/CLI, a global list-ports view, an SSH connect helper, and a demo script.

  • SDK (prime-sandboxes):
    • ExposePortRequest: add protocol (default HTTP).
    • ExposedPort: add external_port (for TCP/UDP).
    • SandboxClient/AsyncSandboxClient:
      • expose(...) accepts protocol.
      • New list_all_exposed_ports() to list exposures across all sandboxes.
  • CLI (prime sandbox):
    • expose command: support --protocol/-p (HTTP/TCP/UDP); show protocol and external_port (when applicable).
    • list-ports command: sandbox ID optional; when omitted, lists all exposures across all sandboxes; enhanced table columns.
    • New ssh command: exposes TCP port, connects via ssh, and auto-cleans exposure.
  • Examples:
    • Add examples/sandbox_port_expose_demo.py demonstrating HTTP and TCP exposure, verification, listing, and cleanup.

Written by Cursor Bugbot for commit 0ad311d. This will update automatically on new commits. Configure here.

pokgak
pokgak previously approved these changes Dec 4, 2025
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