Skip to content

feat: model protocol-aware sandbox services - #8

Closed
aaqaishtyaq wants to merge 2 commits into
mainfrom
codex/generic-ingress-contract
Closed

feat: model protocol-aware sandbox services#8
aaqaishtyaq wants to merge 2 commits into
mainfrom
codex/generic-ingress-contract

Conversation

@aaqaishtyaq

@aaqaishtyaq aaqaishtyaq commented Aug 9, 2026

Copy link
Copy Markdown
Member

Summary

  • model runtime service endpoints in the SDK
  • distinguish URL-based services from native raw TCP/UDP endpoints
  • expose UDP endpoint metadata through sandbox.runtime.services
  • document the protocol-aware endpoint contract

Validation

  • npm run typecheck
  • npm test -- --run

Depends on Edge #68.

Expose raw_l4 ingress with explicit tcp or udp transport in the public SDK and document exposedPorts as a deprecated TCP compatibility shorthand.

Signed-off-by: Aaqa Ishtyaq <aaqaishtyaq@gmail.com>
Expose runtime service metadata in the SDK so URL-based services and native UDP endpoints use distinct client representations. Add transport, host, and port fields without changing the raw_l4 creation contract.

Signed-off-by: Aaqa Ishtyaq <aaqaishtyaq@gmail.com>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 75f31ba8ae

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/index.ts
templateId,
region: options?.region,
metadata: options?.metadata,
...(ingressOptions.ingress ? { ingress: ingressOptions.ingress } : {}),

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Guard optional create options before reading ingress

When a caller relies on config.defaultTemplateId and invokes sandbox.create() without options, options remains undefined because the type assertion does not create an object. Reading ingressOptions.ingress therefore throws before the API request, breaking the previously supported optionless creation path; initialize the derived value to an empty object or use optional chaining.

Useful? React with 👍 / 👎.

@aaqaishtyaq

Copy link
Copy Markdown
Member Author

Closing as superseded by merged PR 11. The generic ingress and protocol-aware service changes are already included in main and the rewritten SDK.

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.

1 participant