Skip to content

Commit 770a4ad

Browse files
authored
Merge pull request #64 from foo-log-inc/feat/bundle-runtime-v0.36.4
feat: bundle runtime, add isolation test, update to v0.36.4
2 parents 8ea1866 + a85d62b commit 770a4ad

7 files changed

Lines changed: 415 additions & 3824 deletions

File tree

.github/workflows/ci.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
steps:
1313
- uses: actions/checkout@v4
1414
- name: Security audit
15-
run: docker run --rm -v "$(pwd)":/app:ro -w /app node:22-alpine npm audit --audit-level=high
15+
run: docker run --rm -v "$(pwd)":/app:ro -w /app node:22-alpine npm audit
1616

1717
test:
1818
runs-on: ubuntu-latest
@@ -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 pkg = JSON.parse(readFileSync("package.json", "utf8"));
1919
const minify = process.argv.includes("--minify");
2020

2121
const externalSdks = [
22-
"agent-contracts-runtime",
2322
"@anthropic-ai/claude-agent-sdk",
2423
"@anthropic-ai/sdk",
2524
"@google/adk",
@@ -92,8 +91,8 @@ const result = await build({
9291
banner: {
9392
js: [
9493
"#!/usr/bin/env node",
95-
"import { createRequire } from 'module';",
96-
"const require = createRequire(import.meta.url);",
94+
"import { createRequire as __banner_createRequire } from 'module';",
95+
"const require = __banner_createRequire(import.meta.url);",
9796
].join("\n"),
9897
},
9998

0 commit comments

Comments
 (0)