9 Commits
Author SHA1 Message Date
idoubiandClaude Opus 4.6 1b613366e3 fix: bump version to 0.1.7 to replace broken 0.1.6 on npm
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>
2026-04-01 02:28:48 +08:00
idoubi 57a7823c69 Revert "fix: use createRequire for sandbox-runtime lazy loading in ESM"
This reverts commit 9949c7a75a.
2026-04-01 02:21:01 +08:00
idoubiandClaude Opus 4.6 9949c7a75a fix: use createRequire for sandbox-runtime lazy loading in ESM
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>
2026-04-01 02:13:53 +08:00
idoubiandClaude Opus 4.6 197722e84e fix: lazy-load all Anthropic-internal packages and add missing deps
- 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>
2026-04-01 02:08:40 +08:00
idoubiandClaude Opus 4.6 c787a9af3b fix: lazy-load @anthropic-ai/sandbox-runtime to avoid hard dependency
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>
2026-04-01 01:37:13 +08:00
idoubiandClaude Opus 4.6 627e213d2a fix: add turndown/sharp/image-processor-napi as optionalDependencies
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>
2026-04-01 01:24:48 +08:00
idoubiandClaude Opus 4.6 afa1fe1e8f fix: convert all src/ path aliases to relative imports
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>
2026-03-31 23:14:42 +08:00
idoubiandClaude Opus 4.6 a86ab32b07 refactor: update examples to use npm package imports
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>
2026-03-31 22:35:53 +08:00
idoubiandClaude Opus 4.6 308ee326a3 feat: initial release of @shipany/open-agent-sdk v0.1.0
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>
2026-03-31 22:17:29 +08:00