Support "use workflow" serialization for Sandbox and Command#72
Support "use workflow" serialization for Sandbox and Command#72
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
- Remove Sandbox.setCredentials, keep standalone setSandboxCredentials as canonical API - Make projectId optional in setSandboxCredentials (new SandboxCredentials type) - Compose CommandFinished serialization via Command[WORKFLOW_SERIALIZE] - Fix README wording per Schniz suggestion - Remove OPENAI_API_KEY from .env.local.example (use gateway) - Add comment about `both` losing interleaved stream order - Add Command serialization tests (12 tests) - Add sandbox-credentials unit tests (5 tests) - Add deserialized+credentials flow test - Exclude integration tests from default vitest run (require SWC plugin) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Warning Review the following alerts detected in dependencies. According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.
|
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…ls() The lazy client in ensureClient() already falls back to OIDC/env var credentials via getCredentials(), so deserialized instances transparently recreate their API client without any explicit credential setup. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Does not add
"use step"anywhere, so users will have to do this themselves. It could be done, but it is hard to reconzile with the use of AbortSignals and also won't be very useful in practice.Introduces
Sandbox.setCredentialsto allow creating APIClient from serialized values.Note: this needs #109 to actually work