Skip to content

Commit 3f63e29

Browse files
authored
Merge pull request #122 from foo-log-inc/feat/bundle-runtime-v0.36.4
feat: bundle runtime, add isolation test, update to v0.36.4
2 parents cd2c235 + 45035c3 commit 3f63e29

7 files changed

Lines changed: 256 additions & 4420 deletions

File tree

.github/workflows/ci.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,16 @@ jobs:
2525
run: docker compose -f docker-compose.test.yml build --build-arg NODE_VERSION=${{ matrix.node-version }}
2626
- name: Run tests
2727
run: docker compose -f docker-compose.test.yml run --rm test
28+
29+
bundle-test:
30+
runs-on: ubuntu-latest
31+
steps:
32+
- uses: actions/checkout@v4
33+
- uses: actions/setup-node@v4
34+
with:
35+
node-version: 22
36+
- run: npm ci --legacy-peer-deps
37+
- run: node esbuild.bundle.mjs
38+
- run: npx vitest run --config vitest.bundle.config.ts
39+
env:
40+
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}

esbuild.bundle.mjs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ const minify = process.argv.includes("--minify");
1919

2020
// LLM SDK packages and runtime — kept external so the bundle user installs only what they need.
2121
const externalSdks = [
22-
"agent-contracts-runtime",
2322
"@anthropic-ai/claude-agent-sdk",
2423
"@anthropic-ai/sdk",
2524
"@openai/agents",
@@ -81,8 +80,8 @@ const result = await build({
8180
banner: {
8281
js: [
8382
"#!/usr/bin/env node",
84-
"import { createRequire } from 'module';",
85-
"const require = createRequire(import.meta.url);",
83+
"import { createRequire as __banner_createRequire } from 'module';",
84+
"const require = __banner_createRequire(import.meta.url);",
8685
].join("\n"),
8786
},
8887

0 commit comments

Comments
 (0)