0.1.6 contained a broken createRequire change that caused
BaseSandboxManager.isSupportedPlatform to fail. This version
restores the original require() based lazy loading.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The SDK is "type": "module" so bare require() is not available.
Use createRequire(import.meta.url) to safely try-catch the
optional @anthropic-ai/sandbox-runtime dependency.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Convert static imports of @ant/computer-use-mcp,
@ant/claude-for-chrome-mcp, @ant/computer-use-input, and
color-diff-napi to lazy require() with no-op fallbacks
- Add cli-boxes and qrcode as runtime dependencies
- Prevents "Cannot find package" errors in Next.js and other
bundled environments where internal packages are unavailable
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
sandbox-runtime is an Anthropic-internal package not available to
open-source consumers. Converting the static import to a lazy
require() with no-op fallback prevents "Cannot find package" errors
when the SDK is used in Next.js and other bundled environments.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
These packages are dynamically imported but were not declared in
package.json, causing Next.js webpack builds to fail with "Module not
found" errors. Declaring them as optionalDependencies lets bundlers
know they exist while not requiring them for all consumers.
Users in Next.js should also add @shipany/open-agent-sdk to
serverExternalPackages in next.config.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
tsc does not transform path aliases in output, causing dist/ files to
retain `from 'src/...'` imports. When tsx resolves these to source files,
duplicate module instances are created - enableConfigs() runs on the
dist instance but not the src instance, triggering "Config accessed
before allowed" errors at runtime.
Converted 1084 imports across 321 files to relative paths and removed
the now-unnecessary paths config from tsconfig.json. Bumped to v0.1.2.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Replace relative path imports (../src/agent.js, ../src/sdk.js) with
@shipany/open-agent-sdk package imports across all 10 examples.
Bump version to 0.1.1.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Open-source Agent SDK inspired by @anthropic-ai/claude-agent-sdk.
Runs the agent loop in-process — no local CLI required.
Deploy anywhere: cloud, serverless, Docker, CI/CD.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>