@devries-cameron20 / composio Mirror · read-only / commits / ded64beb7
Fork 0

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

Mirrored from https://github.com/Camo67/composio.git

Synced Nov 22, 15:45 UTC

feat(ts): support Cloudflare Workers + refactor build pipeline with `tsdown` + introduce e2e tests (#2360)

Co-authored-by: jkomyno <12381818+jkomyno@users.noreply.github.com>

Alberto Schiabel committed Jan 13, 2026 at 08:32 UTC ded64beb7536269d70dec0f3d01ede384e95bf82
88 files changed +2347 -951
.changeset/cloudflare-workers-support.md new
+5
@@ -0,0 +1,5 @@
1 +---
2 +"@composio/core": minor
3 +---
4 +
5 +Add Cloudflare Workers compatibility for `@composio/core`, tested end-to-end.
.github/workflows/ts.test-e2e.yml new
+98
@@ -0,0 +1,98 @@
1 +name: E2E Test Typescript SDK
2 +
3 +on:
4 + push:
5 + branches: [main, next]
6 + paths:
7 + - "ts/**"
8 + pull_request:
9 + branches: [main, next]
10 + paths:
11 + - "ts/**"
12 + workflow_dispatch:
13 +
14 +jobs:
15 + # Node.js E2E tests, running in Docker to isolate environment
16 + test-e2e-node-docker:
17 + name: E2E Test Node.js (Node ${{ matrix.node-version }})
18 + runs-on: ubuntu-24.04
19 + permissions: read-all
20 + strategy:
21 + fail-fast: false
22 + matrix:
23 + node-version: [
24 + # may throw ERR_REQUIRE_ESM
25 + "20.18.0",
26 + # supports ESM by default
27 + "20.19.0",
28 + "22.12.0"
29 + ]
30 + env:
31 + COMPOSIO_API_KEY: ${{ secrets.COMPOSIO_API_KEY }}
32 +
33 + steps:
34 + - name: Checkout Code
35 + uses: actions/checkout@v3
36 +
37 + - name: Setup PNPM
38 + uses: pnpm/action-setup@v4
39 +
40 + - name: Set up Node.js
41 + uses: actions/setup-node@v3
42 + with:
43 + node-version: "20"
44 + cache: "pnpm"
45 +
46 + - name: Install Dependencies
47 + run: pnpm install --frozen-lockfile
48 +
49 + - name: Verify API Key
50 + run: |
51 + if [ -z "$COMPOSIO_API_KEY" ]; then
52 + echo "::error::COMPOSIO_API_KEY is not set"
53 + exit 1
54 + fi
55 + echo "✅ COMPOSIO_API_KEY is configured"
56 +
57 + - name: Run Node.js E2E Tests
58 + run: pnpm run test:e2e:node
59 + env:
60 + COMPOSIO_E2E_NODE_VERSION: ${{ matrix.node-version }}
61 +
62 + # Cloudflare Workerd E2E tests
63 + test-e2e-cloudflare:
64 + name: E2E Test Cloudflare Workerd
65 + runs-on: ubuntu-24.04
66 + permissions: read-all
67 + env:
68 + COMPOSIO_API_KEY: ${{ secrets.COMPOSIO_API_KEY }}
69 +
70 + steps:
71 + - name: Checkout Code
72 + uses: actions/checkout@v3
73 +
74 + - name: Setup PNPM
75 + uses: pnpm/action-setup@v4
76 +
77 + - name: Set up Node.js
78 + uses: actions/setup-node@v3
79 + with:
80 + node-version: "22.12.0"
81 + cache: "pnpm"
82 +
83 + - name: Install Dependencies
84 + run: pnpm install --frozen-lockfile
85 +
86 + - name: Build
87 + run: pnpm run build:packages
88 +
89 + - name: Verify API Key
90 + run: |
91 + if [ -z "$COMPOSIO_API_KEY" ]; then
92 + echo "::error::COMPOSIO_API_KEY is not set"
93 + exit 1
94 + fi
95 + echo "✅ COMPOSIO_API_KEY is configured"
96 +
97 + - name: Run Cloudflare Workers E2E Tests
98 + run: pnpm run test:e2e:cloudflare
CLAUDE.md
+35 -1
@@ -165,7 +165,8 @@ CI # CI environment flag
165 - **Error Classes**: `ts/packages/core/src/errors/`
166 - **Examples**: `ts/examples/` and `examples/`
167 - **Documentation**: `ts/docs/` and `fern/`
168 -- **Build Configs**: `turbo.json`, `tsconfig.base.json`
168 +- **Build Configs**: `turbo.jsonc`, `tsconfig.base.json`, `tsdown.config.base.ts`
169 +- **E2E Tests**: `ts/e2e-tests/`
170
171 ## Testing Commands
172
@@ -180,6 +181,39 @@ cd ts/packages/core && pnpm test
181 pnpm test:ui
182 ```
183
184 +### TypeScript E2E Tests
185 +
186 +E2E tests for `@composio/core` are located in `ts/e2e-tests/` and test runtime compatibility across different JavaScript environments.
187 +
188 +```bash
189 +# Run all e2e tests (Node.js + Cloudflare)
190 +pnpm test:e2e
191 +
192 +# Run only Node.js e2e tests (CJS/ESM compatibility, runs in Docker)
193 +pnpm test:e2e:node
194 +
195 +# Run only Cloudflare Workers e2e tests
196 +pnpm test:e2e:cloudflare
197 +
198 +# Run Node.js tests with a specific Node version
199 +COMPOSIO_E2E_NODE_VERSION=22.12.0 pnpm test:e2e:node
200 +```
201 +
202 +**E2E Test Structure:**
203 +```
204 +ts/e2e-tests/
205 +├── _utils/ # Shared Docker infrastructure
206 +├── runtimes/
207 +│ ├── node/ # Node.js runtime tests
208 +│ │ ├── cjs-basic/ # CommonJS compatibility
209 +│ │ └── esm-basic/ # ESM compatibility
210 +│ └── cloudflare/ # Cloudflare runtime tests
211 +│ └── cf-workers-basic/ # Cloudflare Workers tests
212 +└── README.md # E2E test documentation
213 +```
214 +
215 +> **Note:** When adding new e2e tests, update `ts/e2e-tests/README.md` with the new test information.
216 +
217 ## Common Patterns
218
219 ### Tool Execution
package.json
+7 -1
@@ -12,7 +12,10 @@
12 "scripts": {
13 "build": "turbo build",
14 "build:packages": "turbo build --filter=./ts/packages/**",
15 - "test": "turbo test --filter=./ts/packages/**",
15 + "test": "turbo test --filter=./ts/packages/** --filter=!@test-e2e/*",
16 + "test:e2e": "turbo test:e2e --filter='@test-e2e/*'",
17 + "test:e2e:node": "turbo test:e2e:node --filter='@test-e2e/node-*'",
18 + "test:e2e:cloudflare": "turbo test:e2e:cloudflare --filter='@test-e2e/cf-*'",
19 "test:ui": "vitest --ui",
20 "typecheck": "turbo typecheck --filter=./ts/packages/**",
21 "lint": "eslint ts/packages --ext .ts,.tsx",
@@ -56,6 +59,7 @@
59 }
60 },
61 "devDependencies": {
62 + "@arethetypeswrong/cli": "catalog:",
63 "@changesets/cli": "^2.29.8",
64 "@composio/anthropic": "workspace:*",
65 "@composio/core": "workspace:*",
@@ -67,8 +71,10 @@
71 "husky": "^9.1.7",
72 "lint-staged": "^15.5.1",
73 "prettier": "^3.5.3",
74 + "publint": "catalog:",
75 "semver": "^7.7.2",
76 "tsx": "catalog:",
77 + "tsdown": "catalog:",
78 "turbo": "^2.5.0",
79 "typescript-eslint": "^8.31.0",
80 "vitest": "catalog:",
pnpm-lock.yaml
+363 -615
@@ -6,6 +6,9 @@ settings:
6
7 catalogs:
8 default:
9 + '@arethetypeswrong/cli':
10 + specifier: ^0.18.2
11 + version: 0.18.2
12 '@cloudflare/vitest-pool-workers':
13 specifier: ^0.9.2
14 version: 0.9.2
@@ -21,12 +24,12 @@ catalogs:
24 ai:
25 specifier: ^6.0.3
26 version: 6.0.27
27 + publint:
28 + specifier: ^0.3.16
29 + version: 0.3.16
30 tsdown:
25 - specifier: ^0.16.8
26 - version: 0.16.8
27 - tsup:
28 - specifier: ^8.5.0
29 - version: 8.5.1
31 + specifier: ^0.18.4
32 + version: 0.18.4
33 tsx:
34 specifier: ^4.20.5
35 version: 4.20.5
@@ -73,6 +76,9 @@ importers:
76
77 .:
78 devDependencies:
79 + '@arethetypeswrong/cli':
80 + specifier: 'catalog:'
81 + version: 0.18.2
82 '@changesets/cli':
83 specifier: ^2.29.8
84 version: 2.29.8(@types/node@22.15.32)
@@ -106,9 +112,15 @@ importers:
112 prettier:
113 specifier: ^3.5.3
114 version: 3.5.3
115 + publint:
116 + specifier: 'catalog:'
117 + version: 0.3.16
118 semver:
119 specifier: ^7.7.2
120 version: 7.7.2
121 + tsdown:
122 + specifier: 'catalog:'
123 + version: 0.18.4(@arethetypeswrong/core@0.18.2)(publint@0.3.16)(typescript@5.9.3)
124 tsx:
125 specifier: 'catalog:'
126 version: 4.20.5
@@ -258,6 +270,49 @@ importers:
270 specifier: 'catalog:'
271 version: 4.37.1(@cloudflare/workers-types@4.20250917.0)
272
273 + ts/e2e-tests/runtimes/cloudflare/cf-workers-basic:
274 + dependencies:
275 + '@composio/core':
276 + specifier: workspace:*
277 + version: link:../../../../packages/core
278 + hono:
279 + specifier: '>=4.10.3'
280 + version: 4.10.6
281 + openai:
282 + specifier: ^4.94.0
283 + version: 4.104.0(ws@8.18.2)(zod@3.25.76)
284 + devDependencies:
285 + '@cloudflare/vitest-pool-workers':
286 + specifier: 'catalog:'
287 + version: 0.9.2(@cloudflare/workers-types@4.20250917.0)(@vitest/runner@3.2.4)(@vitest/snapshot@3.2.4)(vitest@3.2.4)
288 + '@cloudflare/workers-types':
289 + specifier: 'catalog:'
290 + version: 4.20250917.0
291 + dotenv:
292 + specifier: ^16.4.5
293 + version: 16.6.1
294 + typescript:
295 + specifier: 'catalog:'
296 + version: 5.9.3
297 + vitest:
298 + specifier: 'catalog:'
299 + version: 3.2.4(@types/debug@4.1.12)(@types/node@24.10.4)(@vitest/ui@3.2.4)(jiti@2.6.1)(lightningcss@1.30.2)(tsx@4.20.5)(yaml@2.8.1)
300 + wrangler:
301 + specifier: 'catalog:'
302 + version: 4.37.1(@cloudflare/workers-types@4.20250917.0)
303 +
304 + ts/e2e-tests/runtimes/node/cjs-basic:
305 + devDependencies:
306 + '@composio/core':
307 + specifier: workspace:*
308 + version: link:../../../../packages/core
309 +
310 + ts/e2e-tests/runtimes/node/esm-basic:
311 + devDependencies:
312 + '@composio/core':
313 + specifier: workspace:*
314 + version: link:../../../../packages/core
315 +
316 ts/examples/anthropic:
317 dependencies:
318 '@anthropic-ai/claude-agent-sdk':
@@ -904,9 +959,9 @@ importers:
959 tempy:
960 specifier: ^3.1.0
961 version: 3.1.0
907 - tsup:
962 + tsdown:
963 specifier: 'catalog:'
909 - version: 8.5.1(jiti@2.6.1)(postcss@8.5.6)(tsx@4.20.5)(typescript@5.9.3)(yaml@2.8.1)
964 + version: 0.18.4(@arethetypeswrong/core@0.18.2)(publint@0.3.16)(typescript@5.9.3)
965 tsx:
966 specifier: 'catalog:'
967 version: 4.20.5
@@ -940,9 +995,6 @@ importers:
995 semver:
996 specifier: ^7.7.2
997 version: 7.7.2
943 - uuid:
944 - specifier: 'catalog:'
945 - version: 13.0.0
998 zod-to-json-schema:
999 specifier: 'catalog:'
1000 version: 3.25.1(zod@4.3.5)
@@ -955,10 +1007,7 @@ importers:
1007 version: 7.7.0
1008 tsdown:
1009 specifier: 'catalog:'
958 - version: 0.16.8(@arethetypeswrong/core@0.18.2)(publint@0.3.16)(typescript@5.9.3)
959 - tsup:
960 - specifier: 'catalog:'
961 - version: 8.5.1(jiti@2.6.1)(postcss@8.5.6)(tsx@4.20.5)(typescript@5.9.3)(yaml@2.8.1)
1010 + version: 0.18.4(@arethetypeswrong/core@0.18.2)(publint@0.3.16)(typescript@5.9.3)
1011 tsx:
1012 specifier: 'catalog:'
1013 version: 4.20.5
@@ -983,9 +1032,9 @@ importers:
1032 '@types/node':
1033 specifier: ^24.0.1
1034 version: 24.0.3
986 - tsup:
1035 + tsdown:
1036 specifier: 'catalog:'
988 - version: 8.5.1(jiti@2.6.1)(postcss@8.5.6)(tsx@4.20.5)(typescript@5.9.3)(yaml@2.8.1)
1037 + version: 0.18.4(@arethetypeswrong/core@0.18.2)(publint@0.3.16)(typescript@5.9.3)
1038 typescript:
1039 specifier: 'catalog:'
1040 version: 5.9.3
@@ -1037,9 +1086,9 @@ importers:
1086 '@composio/core':
1087 specifier: workspace:*
1088 version: link:../../core
1040 - tsup:
1089 + tsdown:
1090 specifier: 'catalog:'
1042 - version: 8.5.1(jiti@2.6.1)(postcss@8.5.6)(tsx@4.20.5)(typescript@5.9.3)(yaml@2.8.1)
1091 + version: 0.18.4(@arethetypeswrong/core@0.18.2)(publint@0.3.16)(typescript@5.9.3)
1092 typescript:
1093 specifier: 'catalog:'
1094 version: 5.9.3
@@ -1059,9 +1108,9 @@ importers:
1108 '@composio/core':
1109 specifier: workspace:*
1110 version: link:../../core
1062 - tsup:
1111 + tsdown:
1112 specifier: 'catalog:'
1064 - version: 8.5.1(jiti@2.6.1)(postcss@8.5.6)(tsx@4.20.5)(typescript@5.9.3)(yaml@2.8.1)
1113 + version: 0.18.4(@arethetypeswrong/core@0.18.2)(publint@0.3.16)(typescript@5.9.3)
1114 typescript:
1115 specifier: 'catalog:'
1116 version: 5.9.3
@@ -1078,9 +1127,9 @@ importers:
1127 '@composio/core':
1128 specifier: workspace:*
1129 version: link:../../core
1081 - tsup:
1130 + tsdown:
1131 specifier: 'catalog:'
1083 - version: 8.5.1(jiti@2.6.1)(postcss@8.5.6)(tsx@4.20.5)(typescript@5.9.3)(yaml@2.8.1)
1132 + version: 0.18.4(@arethetypeswrong/core@0.18.2)(publint@0.3.16)(typescript@5.9.3)
1133 typescript:
1134 specifier: 'catalog:'
1135 version: 5.9.3
@@ -1097,9 +1146,9 @@ importers:
1146 '@composio/core':
1147 specifier: workspace:*
1148 version: link:../../core
1100 - tsup:
1149 + tsdown:
1150 specifier: 'catalog:'
1102 - version: 8.5.1(jiti@2.6.1)(postcss@8.5.6)(tsx@4.20.5)(typescript@5.9.3)(yaml@2.8.1)
1151 + version: 0.18.4(@arethetypeswrong/core@0.18.2)(publint@0.3.16)(typescript@5.9.3)
1152 typescript:
1153 specifier: 'catalog:'
1154 version: 5.9.3
@@ -1112,9 +1161,9 @@ importers:
1161 '@langchain/core':
1162 specifier: ^1.1.4
1163 version: 1.1.4(@opentelemetry/api@1.9.0)(@opentelemetry/exporter-trace-otlp-proto@0.203.0(@opentelemetry/api@1.9.0))(@opentelemetry/sdk-trace-base@2.0.1(@opentelemetry/api@1.9.0))(openai@6.10.0(ws@8.18.2)(zod@4.3.5))
1115 - tsup:
1164 + tsdown:
1165 specifier: 'catalog:'
1117 - version: 8.5.1(jiti@2.6.1)(postcss@8.5.6)(tsx@4.20.5)(typescript@5.9.3)(yaml@2.8.1)
1166 + version: 0.18.4(@arethetypeswrong/core@0.18.2)(publint@0.3.16)(typescript@5.9.3)
1167 typescript:
1168 specifier: 'catalog:'
1169 version: 5.9.3
@@ -1134,9 +1183,9 @@ importers:
1183 '@composio/core':
1184 specifier: workspace:*
1185 version: link:../../core
1137 - tsup:
1186 + tsdown:
1187 specifier: 'catalog:'
1139 - version: 8.5.1(jiti@2.6.1)(postcss@8.5.6)(tsx@4.20.5)(typescript@5.9.3)(yaml@2.8.1)
1188 + version: 0.18.4(@arethetypeswrong/core@0.18.2)(publint@0.3.16)(typescript@5.9.3)
1189 typescript:
1190 specifier: 'catalog:'
1191 version: 5.9.3
@@ -1153,9 +1202,9 @@ importers:
1202 '@composio/core':
1203 specifier: workspace:*
1204 version: link:../../core
1156 - tsup:
1205 + tsdown:
1206 specifier: 'catalog:'
1158 - version: 8.5.1(jiti@2.6.1)(postcss@8.5.6)(tsx@4.20.5)(typescript@5.9.3)(yaml@2.8.1)
1207 + version: 0.18.4(@arethetypeswrong/core@0.18.2)(publint@0.3.16)(typescript@5.9.3)
1208 typescript:
1209 specifier: 'catalog:'
1210 version: 5.9.3
@@ -1175,9 +1224,9 @@ importers:
1224 '@composio/core':
1225 specifier: workspace:*
1226 version: link:../../core
1178 - tsup:
1227 + tsdown:
1228 specifier: 'catalog:'
1180 - version: 8.5.1(jiti@2.6.1)(postcss@8.5.6)(tsx@4.20.5)(typescript@5.9.3)(yaml@2.8.1)
1229 + version: 0.18.4(@arethetypeswrong/core@0.18.2)(publint@0.3.16)(typescript@5.9.3)
1230 typescript:
1231 specifier: 'catalog:'
1232 version: 5.9.3
@@ -1193,9 +1242,9 @@ importers:
1242 '@openai/agents':
1243 specifier: ^0.1.3
1244 version: 0.1.3(@cfworker/json-schema@4.1.1)(ws@8.18.2)(zod@4.3.5)
1196 - tsup:
1245 + tsdown:
1246 specifier: 'catalog:'
1198 - version: 8.5.1(jiti@2.6.1)(postcss@8.5.6)(tsx@4.20.5)(typescript@5.9.3)(yaml@2.8.1)
1247 + version: 0.18.4(@arethetypeswrong/core@0.18.2)(publint@0.3.16)(typescript@5.9.3)
1248 typescript:
1249 specifier: 'catalog:'
1250 version: 5.9.3
@@ -1214,9 +1263,9 @@ importers:
1263 ai:
1264 specifier: 'catalog:'
1265 version: 6.0.27(zod@4.3.5)
1217 - tsup:
1266 + tsdown:
1267 specifier: 'catalog:'
1219 - version: 8.5.1(jiti@2.6.1)(postcss@8.5.6)(tsx@4.20.5)(typescript@5.9.3)(yaml@2.8.1)
1268 + version: 0.18.4(@arethetypeswrong/core@0.18.2)(publint@0.3.16)(typescript@5.9.3)
1269 typescript:
1270 specifier: 'catalog:'
1271 version: 5.9.3
@@ -1239,9 +1288,9 @@ importers:
1288 helper-validator-identifier:
1289 specifier: link:@types/@babel/helper-validator-identifier
1290 version: link:@types/@babel/helper-validator-identifier
1242 - tsup:
1291 + tsdown:
1292 specifier: 'catalog:'
1244 - version: 8.5.1(jiti@2.6.1)(postcss@8.5.6)(tsx@4.20.5)(typescript@5.9.3)(yaml@2.8.1)
1293 + version: 0.18.4(@arethetypeswrong/core@0.18.2)(publint@0.3.16)(typescript@5.9.3)
1294 vitest:
1295 specifier: 'catalog:'
1296 version: 3.2.4(@types/debug@4.1.12)(@types/node@24.10.4)(@vitest/ui@3.2.4)(jiti@2.6.1)(lightningcss@1.30.2)(tsx@4.20.5)(yaml@2.8.1)
@@ -1486,6 +1535,11 @@ packages:
1535 peerDependencies:
1536 '@types/json-schema': ^7.0.15
1537
1538 + '@arethetypeswrong/cli@0.18.2':
1539 + resolution: {integrity: sha512-PcFM20JNlevEDKBg4Re29Rtv2xvjvQZzg7ENnrWFSS0PHgdP2njibVFw+dRUhNkPgNfac9iUqO0ohAXqQL4hbw==}
1540 + engines: {node: '>=20'}
1541 + hasBin: true
1542 +
1543 '@arethetypeswrong/core@0.18.2':
1544 resolution: {integrity: sha512-GiwTmBFOU1/+UVNqqCGzFJYfBXEytUkiI+iRZ6Qx7KmUVtLm00sYySkfe203C9QtPG11yOz1ZaMek8dT/xnlgg==}
1545 engines: {node: '>=20'}
@@ -1654,6 +1708,10 @@ packages:
1708 '@cloudflare/workers-types@4.20250917.0':
1709 resolution: {integrity: sha512-Lsn9dZoRYZZCXXHZNa50cMP8kWhQZG9M7WjxNSiXFzC8bk4Wh/0SYYo4YINxEjEt6h2o69LmAhFaJ+qgaJTh8Q==}
1710
1711 + '@colors/colors@1.5.0':
1712 + resolution: {integrity: sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ==}
1713 + engines: {node: '>=0.1.90'}
1714 +
1715 '@composio/client@0.1.0-alpha.54':
1716 resolution: {integrity: sha512-3whr4XjaMQUTcxmkaePMPeISUEE3NDRmGaf6lHReS9M2t6jiQbuZT3OktBvvw9QHrH+AZPXgaDoH65Hlr4qGWA==}
1717
@@ -1804,12 +1862,6 @@ packages:
1862 cpu: [ppc64]
1863 os: [aix]
1864
1807 - '@esbuild/aix-ppc64@0.27.2':
1808 - resolution: {integrity: sha512-GZMB+a0mOMZs4MpDbj8RJp4cw+w1WV5NYD6xzgvzUJ5Ek2jerwfO2eADyI6ExDSUED+1X8aMbegahsJi+8mgpw==}
1809 - engines: {node: '>=18'}
1810 - cpu: [ppc64]
1811 - os: [aix]
1812 -
1865 '@esbuild/android-arm64@0.25.4':
1866 resolution: {integrity: sha512-bBy69pgfhMGtCnwpC/x5QhfxAz/cBgQ9enbtwjf6V9lnPI/hMyT9iWpR1arm0l3kttTr4L0KSLpKmLp/ilKS9A==}
1867 engines: {node: '>=18'}
@@ -1822,12 +1874,6 @@ packages:
1874 cpu: [arm64]
1875 os: [android]
1876
1825 - '@esbuild/android-arm64@0.27.2':
1826 - resolution: {integrity: sha512-pvz8ZZ7ot/RBphf8fv60ljmaoydPU12VuXHImtAs0XhLLw+EXBi2BLe3OYSBslR4rryHvweW5gmkKFwTiFy6KA==}
1827 - engines: {node: '>=18'}
1828 - cpu: [arm64]
1829 - os: [android]
1830 -
1877 '@esbuild/android-arm@0.25.4':
1878 resolution: {integrity: sha512-QNdQEps7DfFwE3hXiU4BZeOV68HHzYwGd0Nthhd3uCkkEKK7/R6MTgM0P7H7FAs5pU/DIWsviMmEGxEoxIZ+ZQ==}
1879 engines: {node: '>=18'}
@@ -1840,12 +1886,6 @@ packages:
1886 cpu: [arm]
1887 os: [android]
1888
1843 - '@esbuild/android-arm@0.27.2':
1844 - resolution: {integrity: sha512-DVNI8jlPa7Ujbr1yjU2PfUSRtAUZPG9I1RwW4F4xFB1Imiu2on0ADiI/c3td+KmDtVKNbi+nffGDQMfcIMkwIA==}
1845 - engines: {node: '>=18'}
1846 - cpu: [arm]
1847 - os: [android]
1848 -
1889 '@esbuild/android-x64@0.25.4':
1890 resolution: {integrity: sha512-TVhdVtQIFuVpIIR282btcGC2oGQoSfZfmBdTip2anCaVYcqWlZXGcdcKIUklfX2wj0JklNYgz39OBqh2cqXvcQ==}
1891 engines: {node: '>=18'}
@@ -1858,12 +1898,6 @@ packages:
1898 cpu: [x64]
1899 os: [android]
1900
1861 - '@esbuild/android-x64@0.27.2':
1862 - resolution: {integrity: sha512-z8Ank4Byh4TJJOh4wpz8g2vDy75zFL0TlZlkUkEwYXuPSgX8yzep596n6mT7905kA9uHZsf/o2OJZubl2l3M7A==}
1863 - engines: {node: '>=18'}
1864 - cpu: [x64]
1865 - os: [android]
1866 -
1901 '@esbuild/darwin-arm64@0.25.4':
1902 resolution: {integrity: sha512-Y1giCfM4nlHDWEfSckMzeWNdQS31BQGs9/rouw6Ub91tkK79aIMTH3q9xHvzH8d0wDru5Ci0kWB8b3up/nl16g==}
1903 engines: {node: '>=18'}
@@ -1876,12 +1910,6 @@ packages:
1910 cpu: [arm64]
1911 os: [darwin]
1912
1879 - '@esbuild/darwin-arm64@0.27.2':
1880 - resolution: {integrity: sha512-davCD2Zc80nzDVRwXTcQP/28fiJbcOwvdolL0sOiOsbwBa72kegmVU0Wrh1MYrbuCL98Omp5dVhQFWRKR2ZAlg==}
1881 - engines: {node: '>=18'}
1882 - cpu: [arm64]
1883 - os: [darwin]
1884 -
1913 '@esbuild/darwin-x64@0.25.4':
1914 resolution: {integrity: sha512-CJsry8ZGM5VFVeyUYB3cdKpd/H69PYez4eJh1W/t38vzutdjEjtP7hB6eLKBoOdxcAlCtEYHzQ/PJ/oU9I4u0A==}
1915 engines: {node: '>=18'}
@@ -1894,12 +1922,6 @@ packages:
1922 cpu: [x64]
1923 os: [darwin]
1924
1897 - '@esbuild/darwin-x64@0.27.2':
1898 - resolution: {integrity: sha512-ZxtijOmlQCBWGwbVmwOF/UCzuGIbUkqB1faQRf5akQmxRJ1ujusWsb3CVfk/9iZKr2L5SMU5wPBi1UWbvL+VQA==}
1899 - engines: {node: '>=18'}
1900 - cpu: [x64]
1901 - os: [darwin]
1902 -
1925 '@esbuild/freebsd-arm64@0.25.4':
1926 resolution: {integrity: sha512-yYq+39NlTRzU2XmoPW4l5Ifpl9fqSk0nAJYM/V/WUGPEFfek1epLHJIkTQM6bBs1swApjO5nWgvr843g6TjxuQ==}
1927 engines: {node: '>=18'}
@@ -1912,12 +1934,6 @@ packages:
1934 cpu: [arm64]
1935 os: [freebsd]
1936
1915 - '@esbuild/freebsd-arm64@0.27.2':
1916 - resolution: {integrity: sha512-lS/9CN+rgqQ9czogxlMcBMGd+l8Q3Nj1MFQwBZJyoEKI50XGxwuzznYdwcav6lpOGv5BqaZXqvBSiB/kJ5op+g==}
1917 - engines: {node: '>=18'}
1918 - cpu: [arm64]
1919 - os: [freebsd]
1920 -
1937 '@esbuild/freebsd-x64@0.25.4':
1938 resolution: {integrity: sha512-0FgvOJ6UUMflsHSPLzdfDnnBBVoCDtBTVyn/MrWloUNvq/5SFmh13l3dvgRPkDihRxb77Y17MbqbCAa2strMQQ==}
1939 engines: {node: '>=18'}
@@ -1930,12 +1946,6 @@ packages:
1946 cpu: [x64]
1947 os: [freebsd]
1948
1933 - '@esbuild/freebsd-x64@0.27.2':
1934 - resolution: {integrity: sha512-tAfqtNYb4YgPnJlEFu4c212HYjQWSO/w/h/lQaBK7RbwGIkBOuNKQI9tqWzx7Wtp7bTPaGC6MJvWI608P3wXYA==}
1935 - engines: {node: '>=18'}
1936 - cpu: [x64]
1937 - os: [freebsd]
1938 -
1949 '@esbuild/linux-arm64@0.25.4':
1950 resolution: {integrity: sha512-+89UsQTfXdmjIvZS6nUnOOLoXnkUTB9hR5QAeLrQdzOSWZvNSAXAtcRDHWtqAUtAmv7ZM1WPOOeSxDzzzMogiQ==}
1951 engines: {node: '>=18'}
@@ -1948,12 +1958,6 @@ packages:
1958 cpu: [arm64]
1959 os: [linux]
1960
1951 - '@esbuild/linux-arm64@0.27.2':
1952 - resolution: {integrity: sha512-hYxN8pr66NsCCiRFkHUAsxylNOcAQaxSSkHMMjcpx0si13t1LHFphxJZUiGwojB1a/Hd5OiPIqDdXONia6bhTw==}
1953 - engines: {node: '>=18'}
1954 - cpu: [arm64]
1955 - os: [linux]
1956 -
1961 '@esbuild/linux-arm@0.25.4':
1962 resolution: {integrity: sha512-kro4c0P85GMfFYqW4TWOpvmF8rFShbWGnrLqlzp4X1TNWjRY3JMYUfDCtOxPKOIY8B0WC8HN51hGP4I4hz4AaQ==}
1963 engines: {node: '>=18'}
@@ -1966,12 +1970,6 @@ packages:
1970 cpu: [arm]
1971 os: [linux]
1972
1969 - '@esbuild/linux-arm@0.27.2':
1970 - resolution: {integrity: sha512-vWfq4GaIMP9AIe4yj1ZUW18RDhx6EPQKjwe7n8BbIecFtCQG4CfHGaHuh7fdfq+y3LIA2vGS/o9ZBGVxIDi9hw==}
1971 - engines: {node: '>=18'}
1972 - cpu: [arm]
1973 - os: [linux]
1974 -
1973 '@esbuild/linux-ia32@0.25.4':
1974 resolution: {integrity: sha512-yTEjoapy8UP3rv8dB0ip3AfMpRbyhSN3+hY8mo/i4QXFeDxmiYbEKp3ZRjBKcOP862Ua4b1PDfwlvbuwY7hIGQ==}
1975 engines: {node: '>=18'}
@@ -1984,12 +1982,6 @@ packages:
1982 cpu: [ia32]
1983 os: [linux]
1984
1987 - '@esbuild/linux-ia32@0.27.2':
1988 - resolution: {integrity: sha512-MJt5BRRSScPDwG2hLelYhAAKh9imjHK5+NE/tvnRLbIqUWa+0E9N4WNMjmp/kXXPHZGqPLxggwVhz7QP8CTR8w==}
1989 - engines: {node: '>=18'}
1990 - cpu: [ia32]
1991 - os: [linux]
1992 -
1985 '@esbuild/linux-loong64@0.25.4':
1986 resolution: {integrity: sha512-NeqqYkrcGzFwi6CGRGNMOjWGGSYOpqwCjS9fvaUlX5s3zwOtn1qwg1s2iE2svBe4Q/YOG1q6875lcAoQK/F4VA==}
1987 engines: {node: '>=18'}
@@ -2002,12 +1994,6 @@ packages:
1994 cpu: [loong64]
1995 os: [linux]
1996
2005 - '@esbuild/linux-loong64@0.27.2':
2006 - resolution: {integrity: sha512-lugyF1atnAT463aO6KPshVCJK5NgRnU4yb3FUumyVz+cGvZbontBgzeGFO1nF+dPueHD367a2ZXe1NtUkAjOtg==}
2007 - engines: {node: '>=18'}
2008 - cpu: [loong64]
2009 - os: [linux]
2010 -
1997 '@esbuild/linux-mips64el@0.25.4':
1998 resolution: {integrity: sha512-IcvTlF9dtLrfL/M8WgNI/qJYBENP3ekgsHbYUIzEzq5XJzzVEV/fXY9WFPfEEXmu3ck2qJP8LG/p3Q8f7Zc2Xg==}
1999 engines: {node: '>=18'}
@@ -2020,12 +2006,6 @@ packages:
2006 cpu: [mips64el]
2007 os: [linux]
2008
2023 - '@esbuild/linux-mips64el@0.27.2':
2024 - resolution: {integrity: sha512-nlP2I6ArEBewvJ2gjrrkESEZkB5mIoaTswuqNFRv/WYd+ATtUpe9Y09RnJvgvdag7he0OWgEZWhviS1OTOKixw==}
2025 - engines: {node: '>=18'}
2026 - cpu: [mips64el]
2027 - os: [linux]
2028 -
2009 '@esbuild/linux-ppc64@0.25.4':
2010 resolution: {integrity: sha512-HOy0aLTJTVtoTeGZh4HSXaO6M95qu4k5lJcH4gxv56iaycfz1S8GO/5Jh6X4Y1YiI0h7cRyLi+HixMR+88swag==}
2011 engines: {node: '>=18'}
@@ -2038,12 +2018,6 @@ packages:
2018 cpu: [ppc64]
2019 os: [linux]
2020
2041 - '@esbuild/linux-ppc64@0.27.2':
2042 - resolution: {integrity: sha512-C92gnpey7tUQONqg1n6dKVbx3vphKtTHJaNG2Ok9lGwbZil6DrfyecMsp9CrmXGQJmZ7iiVXvvZH6Ml5hL6XdQ==}
2043 - engines: {node: '>=18'}
2044 - cpu: [ppc64]
2045 - os: [linux]
2046 -
2021 '@esbuild/linux-riscv64@0.25.4':
2022 resolution: {integrity: sha512-i8JUDAufpz9jOzo4yIShCTcXzS07vEgWzyX3NH2G7LEFVgrLEhjwL3ajFE4fZI3I4ZgiM7JH3GQ7ReObROvSUA==}
2023 engines: {node: '>=18'}
@@ -2056,12 +2030,6 @@ packages:
2030 cpu: [riscv64]
2031 os: [linux]
2032
2059 - '@esbuild/linux-riscv64@0.27.2':
2060 - resolution: {integrity: sha512-B5BOmojNtUyN8AXlK0QJyvjEZkWwy/FKvakkTDCziX95AowLZKR6aCDhG7LeF7uMCXEJqwa8Bejz5LTPYm8AvA==}
2061 - engines: {node: '>=18'}
2062 - cpu: [riscv64]
2063 - os: [linux]
2064 -
2033 '@esbuild/linux-s390x@0.25.4':
2034 resolution: {integrity: sha512-jFnu+6UbLlzIjPQpWCNh5QtrcNfMLjgIavnwPQAfoGx4q17ocOU9MsQ2QVvFxwQoWpZT8DvTLooTvmOQXkO51g==}
2035 engines: {node: '>=18'}
@@ -2074,12 +2042,6 @@ packages:
2042 cpu: [s390x]
2043 os: [linux]
2044
2077 - '@esbuild/linux-s390x@0.27.2':
2078 - resolution: {integrity: sha512-p4bm9+wsPwup5Z8f4EpfN63qNagQ47Ua2znaqGH6bqLlmJ4bx97Y9JdqxgGZ6Y8xVTixUnEkoKSHcpRlDnNr5w==}
2079 - engines: {node: '>=18'}
2080 - cpu: [s390x]
2081 - os: [linux]
2082 -
2045 '@esbuild/linux-x64@0.25.4':
2046 resolution: {integrity: sha512-6e0cvXwzOnVWJHq+mskP8DNSrKBr1bULBvnFLpc1KY+d+irZSgZ02TGse5FsafKS5jg2e4pbvK6TPXaF/A6+CA==}
2047 engines: {node: '>=18'}
@@ -2092,12 +2054,6 @@ packages:
2054 cpu: [x64]
2055 os: [linux]
2056
2095 - '@esbuild/linux-x64@0.27.2':
2096 - resolution: {integrity: sha512-uwp2Tip5aPmH+NRUwTcfLb+W32WXjpFejTIOWZFw/v7/KnpCDKG66u4DLcurQpiYTiYwQ9B7KOeMJvLCu/OvbA==}
2097 - engines: {node: '>=18'}
2098 - cpu: [x64]
2099 - os: [linux]
2100 -
2057 '@esbuild/netbsd-arm64@0.25.4':
2058 resolution: {integrity: sha512-vUnkBYxZW4hL/ie91hSqaSNjulOnYXE1VSLusnvHg2u3jewJBz3YzB9+oCw8DABeVqZGg94t9tyZFoHma8gWZQ==}
2059 engines: {node: '>=18'}
@@ -2110,12 +2066,6 @@ packages:
2066 cpu: [arm64]
2067 os: [netbsd]
2068
2113 - '@esbuild/netbsd-arm64@0.27.2':
2114 - resolution: {integrity: sha512-Kj6DiBlwXrPsCRDeRvGAUb/LNrBASrfqAIok+xB0LxK8CHqxZ037viF13ugfsIpePH93mX7xfJp97cyDuTZ3cw==}
2115 - engines: {node: '>=18'}
2116 - cpu: [arm64]
2117 - os: [netbsd]
2118 -
2069 '@esbuild/netbsd-x64@0.25.4':
2070 resolution: {integrity: sha512-XAg8pIQn5CzhOB8odIcAm42QsOfa98SBeKUdo4xa8OvX8LbMZqEtgeWE9P/Wxt7MlG2QqvjGths+nq48TrUiKw==}
2071 engines: {node: '>=18'}
@@ -2128,12 +2078,6 @@ packages:
2078 cpu: [x64]
2079 os: [netbsd]
2080
2131 - '@esbuild/netbsd-x64@0.27.2':
2132 - resolution: {integrity: sha512-HwGDZ0VLVBY3Y+Nw0JexZy9o/nUAWq9MlV7cahpaXKW6TOzfVno3y3/M8Ga8u8Yr7GldLOov27xiCnqRZf0tCA==}
2133 - engines: {node: '>=18'}
2134 - cpu: [x64]
2135 - os: [netbsd]
2136 -
2081 '@esbuild/openbsd-arm64@0.25.4':
2082 resolution: {integrity: sha512-Ct2WcFEANlFDtp1nVAXSNBPDxyU+j7+tId//iHXU2f/lN5AmO4zLyhDcpR5Cz1r08mVxzt3Jpyt4PmXQ1O6+7A==}
2083 engines: {node: '>=18'}
@@ -2146,12 +2090,6 @@ packages:
2090 cpu: [arm64]
2091 os: [openbsd]
2092
2149 - '@esbuild/openbsd-arm64@0.27.2':
2150 - resolution: {integrity: sha512-DNIHH2BPQ5551A7oSHD0CKbwIA/Ox7+78/AWkbS5QoRzaqlev2uFayfSxq68EkonB+IKjiuxBFoV8ESJy8bOHA==}
2151 - engines: {node: '>=18'}
2152 - cpu: [arm64]
2153 - os: [openbsd]
2154 -
2093 '@esbuild/openbsd-x64@0.25.4':
2094 resolution: {integrity: sha512-xAGGhyOQ9Otm1Xu8NT1ifGLnA6M3sJxZ6ixylb+vIUVzvvd6GOALpwQrYrtlPouMqd/vSbgehz6HaVk4+7Afhw==}
2095 engines: {node: '>=18'}
@@ -2164,18 +2102,6 @@ packages:
2102 cpu: [x64]
2103 os: [openbsd]
2104
2167 - '@esbuild/openbsd-x64@0.27.2':
2168 - resolution: {integrity: sha512-/it7w9Nb7+0KFIzjalNJVR5bOzA9Vay+yIPLVHfIQYG/j+j9VTH84aNB8ExGKPU4AzfaEvN9/V4HV+F+vo8OEg==}
2169 - engines: {node: '>=18'}
2170 - cpu: [x64]
2171 - os: [openbsd]
2172 -
2173 - '@esbuild/openharmony-arm64@0.27.2':
2174 - resolution: {integrity: sha512-LRBbCmiU51IXfeXk59csuX/aSaToeG7w48nMwA6049Y4J4+VbWALAuXcs+qcD04rHDuSCSRKdmY63sruDS5qag==}
2175 - engines: {node: '>=18'}
2176 - cpu: [arm64]
2177 - os: [openharmony]
2178 -
2105 '@esbuild/sunos-x64@0.25.4':
2106 resolution: {integrity: sha512-Mw+tzy4pp6wZEK0+Lwr76pWLjrtjmJyUB23tHKqEDP74R3q95luY/bXqXZeYl4NYlvwOqoRKlInQialgCKy67Q==}
2107 engines: {node: '>=18'}
@@ -2188,12 +2114,6 @@ packages:
2114 cpu: [x64]
2115 os: [sunos]
2116
2191 - '@esbuild/sunos-x64@0.27.2':
2192 - resolution: {integrity: sha512-kMtx1yqJHTmqaqHPAzKCAkDaKsffmXkPHThSfRwZGyuqyIeBvf08KSsYXl+abf5HDAPMJIPnbBfXvP2ZC2TfHg==}
2193 - engines: {node: '>=18'}
2194 - cpu: [x64]
2195 - os: [sunos]
2196 -
2117 '@esbuild/win32-arm64@0.25.4':
2118 resolution: {integrity: sha512-AVUP428VQTSddguz9dO9ngb+E5aScyg7nOeJDrF1HPYu555gmza3bDGMPhmVXL8svDSoqPCsCPjb265yG/kLKQ==}
2119 engines: {node: '>=18'}
@@ -2206,12 +2126,6 @@ packages:
2126 cpu: [arm64]
2127 os: [win32]
2128
2209 - '@esbuild/win32-arm64@0.27.2':
2210 - resolution: {integrity: sha512-Yaf78O/B3Kkh+nKABUF++bvJv5Ijoy9AN1ww904rOXZFLWVc5OLOfL56W+C8F9xn5JQZa3UX6m+IktJnIb1Jjg==}
2211 - engines: {node: '>=18'}
2212 - cpu: [arm64]
2213 - os: [win32]
2214 -
2129 '@esbuild/win32-ia32@0.25.4':
2130 resolution: {integrity: sha512-i1sW+1i+oWvQzSgfRcxxG2k4I9n3O9NRqy8U+uugaT2Dy7kLO9Y7wI72haOahxceMX8hZAzgGou1FhndRldxRg==}
2131 engines: {node: '>=18'}
@@ -2224,12 +2138,6 @@ packages:
2138 cpu: [ia32]
2139 os: [win32]
2140
2227 - '@esbuild/win32-ia32@0.27.2':
2228 - resolution: {integrity: sha512-Iuws0kxo4yusk7sw70Xa2E2imZU5HoixzxfGCdxwBdhiDgt9vX9VUCBhqcwY7/uh//78A1hMkkROMJq9l27oLQ==}
2229 - engines: {node: '>=18'}
2230 - cpu: [ia32]
2231 - os: [win32]
2232 -
2141 '@esbuild/win32-x64@0.25.4':
2142 resolution: {integrity: sha512-nOT2vZNw6hJ+z43oP1SPea/G/6AbN6X+bGNhNuq8NtRHy4wsMhw765IKLNmnjek7GvjWBYQ8Q5VBoYTFg9y1UQ==}
2143 engines: {node: '>=18'}
@@ -2242,12 +2150,6 @@ packages:
2150 cpu: [x64]
2151 os: [win32]
2152
2245 - '@esbuild/win32-x64@0.27.2':
2246 - resolution: {integrity: sha512-sRdU18mcKf7F+YgheI/zGf5alZatMUTKj/jNS6l744f9u3WFu4v7twcUI9vu4mknF4Y9aDlblIie0IM+5xxaqQ==}
2247 - engines: {node: '>=18'}
2248 - cpu: [x64]
2249 - os: [win32]
2250 -
2153 '@eslint-community/eslint-utils@4.7.0':
2154 resolution: {integrity: sha512-dyybb3AcajC7uha6CvhdVRJqaKyn7w2YKqKyAN37NKYgZT36w+iRb0Dymmc5qEJ549c/S31cMMSFd75bteCpCw==}
2155 engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
@@ -3658,12 +3560,12 @@ packages:
3560 peerDependencies:
3561 '@opentelemetry/api': ^1.1.0
3562
3563 + '@oxc-project/types@0.103.0':
3564 + resolution: {integrity: sha512-bkiYX5kaXWwUessFRSoXFkGIQTmc6dLGdxuRTrC+h8PSnIdZyuXHHlLAeTmOue5Br/a0/a7dHH0Gca6eXn9MKg==}
3565 +
3566 '@oxc-project/types@0.107.0':
3567 resolution: {integrity: sha512-QFDRbYfV2LVx8tyqtyiah3jQPUj1mK2+RYwxyFWyGoys6XJnwTdlzO6rdNNHOPorHAu5Uo34oWRKcvNpbJarmQ==}
3568
3664 - '@oxc-project/types@0.99.0':
3665 - resolution: {integrity: sha512-LLDEhXB7g1m5J+woRSgfKsFPS3LhR9xRhTeIoEBm5WrkwMxn6eZ0Ld0c0K5eHB57ChZX6I3uSmmLjZ8pcjlRcw==}
3666 -
3569 '@parcel/watcher-android-arm64@2.5.1':
3570 resolution: {integrity: sha512-KF8+j9nNbUN8vzOFDpRMsaKBHZ/mcjEjMToVMJOhTozkDonQFFrRcfdLWn6yWKCmJKmdVxSgHiYvTCef4/qcBA==}
3571 engines: {node: '>= 10.0.0'}
@@ -3811,8 +3713,8 @@ packages:
3713 resolution: {integrity: sha512-0EbE8LRbkogtcCXU7liAyC00n9uNG9hJ+eMyHFdUsy9lB/WGqnEBgwjA9q2cyzAVcdTkQqTBBU1XePNnN3OijA==}
3714 engines: {node: '>=18.17.0', npm: '>=9.5.0'}
3715
3814 - '@rolldown/binding-android-arm64@1.0.0-beta.52':
3815 - resolution: {integrity: sha512-MBGIgysimZPqTDcLXI+i9VveijkP5C3EAncEogXhqfax6YXj1Tr2LY3DVuEOMIjWfMPMhtQSPup4fSTAmgjqIw==}
3716 + '@rolldown/binding-android-arm64@1.0.0-beta.57':
3717 + resolution: {integrity: sha512-GoOVDy8bjw9z1K30Oo803nSzXJS/vWhFijFsW3kzvZCO8IZwFnNa6pGctmbbJstKl3Fv6UBwyjJQN6msejW0IQ==}
3718 engines: {node: ^20.19.0 || >=22.12.0}
3719 cpu: [arm64]
3720 os: [android]
@@ -3823,8 +3725,8 @@ packages:
3725 cpu: [arm64]
3726 os: [android]
3727
3826 - '@rolldown/binding-darwin-arm64@1.0.0-beta.52':
3827 - resolution: {integrity: sha512-MmKeoLnKu1d9j6r19K8B+prJnIZ7u+zQ+zGQ3YHXGnr41rzE3eqQLovlkvoZnRoxDGPA4ps0pGiwXy6YE3lJyg==}
3728 + '@rolldown/binding-darwin-arm64@1.0.0-beta.57':
3729 + resolution: {integrity: sha512-9c4FOhRGpl+PX7zBK5p17c5efpF9aSpTPgyigv57hXf5NjQUaJOOiejPLAtFiKNBIfm5Uu6yFkvLKzOafNvlTw==}
3730 engines: {node: ^20.19.0 || >=22.12.0}
3731 cpu: [arm64]
3732 os: [darwin]
@@ -3835,8 +3737,8 @@ packages:
3737 cpu: [arm64]
3738 os: [darwin]
3739
3838 - '@rolldown/binding-darwin-x64@1.0.0-beta.52':
3839 - resolution: {integrity: sha512-qpHedvQBmIjT8zdnjN3nWPR2qjQyJttbXniCEKKdHeAbZG9HyNPBUzQF7AZZGwmS9coQKL+hWg9FhWzh2dZ2IA==}
3740 + '@rolldown/binding-darwin-x64@1.0.0-beta.57':
3741 + resolution: {integrity: sha512-6RsB8Qy4LnGqNGJJC/8uWeLWGOvbRL/KG5aJ8XXpSEupg/KQtlBEiFaYU/Ma5Usj1s+bt3ItkqZYAI50kSplBA==}
3742 engines: {node: ^20.19.0 || >=22.12.0}
3743 cpu: [x64]
3744 os: [darwin]
@@ -3847,8 +3749,8 @@ packages:
3749 cpu: [x64]
3750 os: [darwin]
3751
3850 - '@rolldown/binding-freebsd-x64@1.0.0-beta.52':
3851 - resolution: {integrity: sha512-dDp7WbPapj/NVW0LSiH/CLwMhmLwwKb3R7mh2kWX+QW85X1DGVnIEyKh9PmNJjB/+suG1dJygdtdNPVXK1hylg==}
3752 + '@rolldown/binding-freebsd-x64@1.0.0-beta.57':
3753 + resolution: {integrity: sha512-uA9kG7+MYkHTbqwv67Tx+5GV5YcKd33HCJIi0311iYBd25yuwyIqvJfBdt1VVB8tdOlyTb9cPAgfCki8nhwTQg==}
3754 engines: {node: ^20.19.0 || >=22.12.0}
3755 cpu: [x64]
3756 os: [freebsd]
@@ -3859,8 +3761,8 @@ packages:
3761 cpu: [x64]
3762 os: [freebsd]
3763
3862 - '@rolldown/binding-linux-arm-gnueabihf@1.0.0-beta.52':
3863 - resolution: {integrity: sha512-9e4l6vy5qNSliDPqNfR6CkBOAx6PH7iDV4OJiEJzajajGrVy8gc/IKKJUsoE52G8ud8MX6r3PMl97NfwgOzB7g==}
3764 + '@rolldown/binding-linux-arm-gnueabihf@1.0.0-beta.57':
3765 + resolution: {integrity: sha512-3KkS0cHsllT2T+Te+VZMKHNw6FPQihYsQh+8J4jkzwgvAQpbsbXmrqhkw3YU/QGRrD8qgcOvBr6z5y6Jid+rmw==}
3766 engines: {node: ^20.19.0 || >=22.12.0}
3767 cpu: [arm]
3768 os: [linux]
@@ -3871,8 +3773,8 @@ packages:
3773 cpu: [arm]
3774 os: [linux]
3775
3874 - '@rolldown/binding-linux-arm64-gnu@1.0.0-beta.52':
3875 - resolution: {integrity: sha512-V48oDR84feRU2KRuzpALp594Uqlx27+zFsT6+BgTcXOtu7dWy350J1G28ydoCwKB+oxwsRPx2e7aeQnmd3YJbQ==}
3776 + '@rolldown/binding-linux-arm64-gnu@1.0.0-beta.57':
3777 + resolution: {integrity: sha512-A3/wu1RgsHhqP3rVH2+sM81bpk+Qd2XaHTl8LtX5/1LNR7QVBFBCpAoiXwjTdGnI5cMdBVi7Z1pi52euW760Fw==}
3778 engines: {node: ^20.19.0 || >=22.12.0}
3779 cpu: [arm64]
3780 os: [linux]
@@ -3885,8 +3787,8 @@ packages:
3787 os: [linux]
3788 libc: [glibc]
3789
3888 - '@rolldown/binding-linux-arm64-musl@1.0.0-beta.52':
3889 - resolution: {integrity: sha512-ENLmSQCWqSA/+YN45V2FqTIemg7QspaiTjlm327eUAMeOLdqmSOVVyrQexJGNTQ5M8sDYCgVAig2Kk01Ggmqaw==}
3790 + '@rolldown/binding-linux-arm64-musl@1.0.0-beta.57':
3791 + resolution: {integrity: sha512-d0kIVezTQtazpyWjiJIn5to8JlwfKITDqwsFv0Xc6s31N16CD2PC/Pl2OtKgS7n8WLOJbfqgIp5ixYzTAxCqMg==}
3792 engines: {node: ^20.19.0 || >=22.12.0}
3793 cpu: [arm64]
3794 os: [linux]
@@ -3899,8 +3801,8 @@ packages:
3801 os: [linux]
3802 libc: [musl]
3803
3902 - '@rolldown/binding-linux-x64-gnu@1.0.0-beta.52':
3903 - resolution: {integrity: sha512-klahlb2EIFltSUubn/VLjuc3qxp1E7th8ukayPfdkcKvvYcQ5rJztgx8JsJSuAKVzKtNTqUGOhy4On71BuyV8g==}
3804 + '@rolldown/binding-linux-x64-gnu@1.0.0-beta.57':
3805 + resolution: {integrity: sha512-E199LPijo98yrLjPCmETx8EF43sZf9t3guSrLee/ej1rCCc3zDVTR4xFfN9BRAapGVl7/8hYqbbiQPTkv73kUg==}
3806 engines: {node: ^20.19.0 || >=22.12.0}
3807 cpu: [x64]
3808 os: [linux]
@@ -3913,8 +3815,8 @@ packages:
3815 os: [linux]
3816 libc: [glibc]
3817
3916 - '@rolldown/binding-linux-x64-musl@1.0.0-beta.52':
3917 - resolution: {integrity: sha512-UuA+JqQIgqtkgGN2c/AQ5wi8M6mJHrahz/wciENPTeI6zEIbbLGoth5XN+sQe2pJDejEVofN9aOAp0kaazwnVg==}
3818 + '@rolldown/binding-linux-x64-musl@1.0.0-beta.57':
3819 + resolution: {integrity: sha512-++EQDpk/UJ33kY/BNsh7A7/P1sr/jbMuQ8cE554ZIy+tCUWCivo9zfyjDUoiMdnxqX6HLJEqqGnbGQOvzm2OMQ==}
3820 engines: {node: ^20.19.0 || >=22.12.0}
3821 cpu: [x64]
3822 os: [linux]
@@ -3927,8 +3829,8 @@ packages:
3829 os: [linux]
3830 libc: [musl]
3831
3930 - '@rolldown/binding-openharmony-arm64@1.0.0-beta.52':
3931 - resolution: {integrity: sha512-1BNQW8u4ro8bsN1+tgKENJiqmvc+WfuaUhXzMImOVSMw28pkBKdfZtX2qJPADV3terx+vNJtlsgSGeb3+W6Jiw==}
3832 + '@rolldown/binding-openharmony-arm64@1.0.0-beta.57':
3833 + resolution: {integrity: sha512-voDEBcNqxbUv/GeXKFtxXVWA+H45P/8Dec4Ii/SbyJyGvCqV1j+nNHfnFUIiRQ2Q40DwPe/djvgYBs9PpETiMA==}
3834 engines: {node: ^20.19.0 || >=22.12.0}
3835 cpu: [arm64]
3836 os: [openharmony]
@@ -3939,8 +3841,8 @@ packages:
3841 cpu: [arm64]
3842 os: [openharmony]
3843
3942 - '@rolldown/binding-wasm32-wasi@1.0.0-beta.52':
3943 - resolution: {integrity: sha512-K/p7clhCqJOQpXGykrFaBX2Dp9AUVIDHGc+PtFGBwg7V+mvBTv/tsm3LC3aUmH02H2y3gz4y+nUTQ0MLpofEEg==}
3844 + '@rolldown/binding-wasm32-wasi@1.0.0-beta.57':
3845 + resolution: {integrity: sha512-bRhcF7NLlCnpkzLVlVhrDEd0KH22VbTPkPTbMjlYvqhSmarxNIq5vtlQS8qmV7LkPKHrNLWyJW/V/sOyFba26Q==}
3846 engines: {node: '>=14.0.0'}
3847 cpu: [wasm32]
3848
@@ -3949,8 +3851,8 @@ packages:
3851 engines: {node: '>=14.0.0'}
3852 cpu: [wasm32]
3853
3952 - '@rolldown/binding-win32-arm64-msvc@1.0.0-beta.52':
3953 - resolution: {integrity: sha512-a4EkXBtnYYsKipjS7QOhEBM4bU5IlR9N1hU+JcVEVeuTiaslIyhWVKsvf7K2YkQHyVAJ+7/A9BtrGqORFcTgng==}
3854 + '@rolldown/binding-win32-arm64-msvc@1.0.0-beta.57':
3855 + resolution: {integrity: sha512-rnDVGRks2FQ2hgJ2g15pHtfxqkGFGjJQUDWzYznEkE8Ra2+Vag9OffxdbJMZqBWXHVM0iS4dv8qSiEn7bO+n1Q==}
3856 engines: {node: ^20.19.0 || >=22.12.0}
3857 cpu: [arm64]
3858 os: [win32]
@@ -3961,14 +3863,8 @@ packages:
3863 cpu: [arm64]
3864 os: [win32]
3865
3964 - '@rolldown/binding-win32-ia32-msvc@1.0.0-beta.52':
3965 - resolution: {integrity: sha512-5ZXcYyd4GxPA6QfbGrNcQjmjbuLGvfz6728pZMsQvGHI+06LT06M6TPtXvFvLgXtexc+OqvFe1yAIXJU1gob/w==}
3966 - engines: {node: ^20.19.0 || >=22.12.0}
3967 - cpu: [ia32]
3968 - os: [win32]
3969 -
3970 - '@rolldown/binding-win32-x64-msvc@1.0.0-beta.52':
3971 - resolution: {integrity: sha512-tzpnRQXJrSzb8Z9sm97UD3cY0toKOImx+xRKsDLX4zHaAlRXWh7jbaKBePJXEN7gNw7Nm03PBNwphdtA8KSUYQ==}
3866 + '@rolldown/binding-win32-x64-msvc@1.0.0-beta.57':
3867 + resolution: {integrity: sha512-OqIUyNid1M4xTj6VRXp/Lht/qIP8fo25QyAZlCP+p6D2ATCEhyW4ZIFLnC9zAGN/HMbXoCzvwfa8Jjg/8J4YEg==}
3868 engines: {node: ^20.19.0 || >=22.12.0}
3869 cpu: [x64]
3870 os: [win32]
@@ -3979,8 +3875,8 @@ packages:
3875 cpu: [x64]
3876 os: [win32]
3877
3982 - '@rolldown/pluginutils@1.0.0-beta.52':
3983 - resolution: {integrity: sha512-/L0htLJZbaZFL1g9OHOblTxbCYIGefErJjtYOwgl9ZqNx27P3L0SDfjhhHIss32gu5NWgnxuT2a2Hnnv6QGHKA==}
3878 + '@rolldown/pluginutils@1.0.0-beta.57':
3879 + resolution: {integrity: sha512-aQNelgx14tGA+n2tNSa9x6/jeoCL9fkDeCei7nOKnHx0fEFRRMu5ReiITo+zZD5TzWDGGRjbSYCs93IfRIyTuQ==}
3880
3881 '@rolldown/pluginutils@1.0.0-beta.59':
3882 resolution: {integrity: sha512-aoh6LAJRyhtazs98ydgpNOYstxUlsOV1KJXcpf/0c0vFcUA8uyd/hwKRhqE/AAPNqAho9RliGsvitCoOzREoVA==}
@@ -4114,6 +4010,10 @@ packages:
4010 '@shikijs/vscode-textmate@10.0.2':
4011 resolution: {integrity: sha512-83yeghZ2xxin3Nj8z1NMd/NCuca+gsYXswywDy5bHvwlWL8tpTQmzGeUuHd9FC3E/SBEMvzJRwWEOz5gGes9Qg==}
4012
4013 + '@sindresorhus/is@4.6.0':
4014 + resolution: {integrity: sha512-t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw==}
4015 + engines: {node: '>=10'}
4016 +
4017 '@sindresorhus/is@7.0.2':
4018 resolution: {integrity: sha512-d9xRovfKNz1SKieM0qJdO+PQonjnnIfSNWfHYnBSJ9hkjm0ZPw6HlxscDXYstp3z+7V2GOFHc+J0CYrYTjqCJw==}
4019 engines: {node: '>=18'}
@@ -4667,12 +4567,6 @@ packages:
4567 resolution: {integrity: sha512-tjwM5exMg6BGRI+kNmTntNsvdZS1X8BFYS6tnJ2hdH0kVxM6/eVZ2xy+FqStSWvYmtfFMDLIxurorHwDKfDz5Q==}
4568 engines: {node: '>=18'}
4569
4670 - bundle-require@5.1.0:
4671 - resolution: {integrity: sha512-3WrrOuZiyaaZPWiEt4G3+IffISVC9HYlWueJEBWED4ZH4aIAC2PnkdnuRrR94M+w6yGWn4AglWtJtBI8YqvgoA==}
4672 - engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}
4673 - peerDependencies:
4674 - esbuild: '>=0.18'
4675 -
4570 bytes@3.1.2:
4571 resolution: {integrity: sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==}
4572 engines: {node: '>= 0.8'}
@@ -4730,6 +4624,10 @@ packages:
4624 change-case@5.4.4:
4625 resolution: {integrity: sha512-HRQyTk2/YPEkt9TnUPbOpr64Uw3KOicFWPVBb+xiHvd6eBx/qPr9xqfBFDT8P2vWsvvz4jbEkfDe71W3VyNu2w==}
4626
4627 + char-regex@1.0.2:
4628 + resolution: {integrity: sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==}
4629 + engines: {node: '>=10'}
4630 +
4631 chardet@0.7.0:
4632 resolution: {integrity: sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==}
4633
@@ -4744,14 +4642,6 @@ packages:
4642 resolution: {integrity: sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==}
4643 engines: {node: '>= 8.10.0'}
4644
4747 - chokidar@4.0.3:
4748 - resolution: {integrity: sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA==}
4749 - engines: {node: '>= 14.16.0'}
4750 -
4751 - chokidar@5.0.0:
4752 - resolution: {integrity: sha512-TQMmc3w+5AxjpL8iIiwebF73dRDF4fBIieAqGn9RGCWaEVwQ6Fb2cGe31Yns0RRIzii5goJ1Y7xbMwo1TxMplw==}
4753 - engines: {node: '>= 20.19.0'}
4754 -
4645 ci-info@3.9.0:
4646 resolution: {integrity: sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==}
4647 engines: {node: '>=8'}
@@ -4763,6 +4653,11 @@ packages:
4653 resolution: {integrity: sha512-aCj4O5wKyszjMmDT4tZj93kxyydN/K5zPWSCe6/0AV/AA1pqe5ZBIw0a2ZfPQV7lL5/yb5HsUreJ6UFAF1tEQw==}
4654 engines: {node: '>=18'}
4655
4656 + cli-highlight@2.1.11:
4657 + resolution: {integrity: sha512-9KDcoEVwyUXrjcJNvHD0NFc/hiwe/WPVYIleQh2O1N2Zro5gWJZ/K+3DGn8w8P/F6FxOgzyC5bxDyHIgCSPhGg==}
4658 + engines: {node: '>=8.0.0', npm: '>=5.0.0'}
4659 + hasBin: true
4660 +
4661 cli-progress@3.12.0:
4662 resolution: {integrity: sha512-tRkV3HJ1ASwm19THiiLIXLO7Im7wlTuKnvkYaTkyoAPefqjNg7W7DHKUlGRxy9vxDvbyCYQkQozvptuMkGCg8A==}
4663 engines: {node: '>=4'}
@@ -4771,6 +4666,10 @@ packages:
4666 resolution: {integrity: sha512-/+40ljC3ONVnYIttjMWrlL51nItDAbBrq2upN8BPyvGU/2n5Oxw3tbNwORCaNuNqLJnxGqOfjUuhsv7l5Q4IsQ==}
4667 engines: {node: '>=18.20'}
4668
4669 + cli-table3@0.6.5:
4670 + resolution: {integrity: sha512-+W/5efTR7y5HRD7gACw9yQjqMVvEMLBHmboM/kPWam+H+Hmyrgjh6YncVKK122YZkXrLudzTuAukUw9FnMf7IQ==}
4671 + engines: {node: 10.* || >= 12.*}
4672 +
4673 cli-truncate@4.0.0:
4674 resolution: {integrity: sha512-nPdaFdQ0h/GEigbPClz11D0v/ZJEwxmeVZGeMo3Z5StPtUTkA9o1lD6QwoirYiSDzbcwn2XcjwmCp68W1IS4TA==}
4675 engines: {node: '>=18'}
@@ -4782,6 +4681,9 @@ packages:
4681 client-only@0.0.1:
4682 resolution: {integrity: sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA==}
4683
4684 + cliui@7.0.4:
4685 + resolution: {integrity: sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==}
4686 +
4687 cliui@8.0.1:
4688 resolution: {integrity: sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==}
4689 engines: {node: '>=12'}
@@ -4817,6 +4719,10 @@ packages:
4719 resolution: {integrity: sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==}
4720 engines: {node: '>= 0.8'}
4721
4722 + commander@10.0.1:
4723 + resolution: {integrity: sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug==}
4724 + engines: {node: '>=14'}
4725 +
4726 commander@12.1.0:
4727 resolution: {integrity: sha512-Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA==}
4728 engines: {node: '>=18'}
@@ -4852,13 +4758,6 @@ packages:
4758 concat-map@0.0.1:
4759 resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==}
4760
4855 - confbox@0.1.8:
4856 - resolution: {integrity: sha512-RMtmw0iFkeR4YV+fUOSucriAQNb9g8zFR52MWCtl+cCZOFRNL6zeB395vPzFhEjjn4fMxXudmELnl/KF/WrK6w==}
4857 -
4858 - consola@3.4.2:
4859 - resolution: {integrity: sha512-5IKcdX0nnYavi6G7TtOhwkYzyjfJlatbjMjuLSfE2kYT5pMDOilZ4OvMhi637CcDICTmz3wARPoyhqyX1Y+XvA==}
4860 - engines: {node: ^14.18.0 || >=16.10.0}
4861 -
4761 console-table-printer@2.14.6:
4762 resolution: {integrity: sha512-MCBl5HNVaFuuHW6FGbL/4fB7N/ormCy+tQ+sxTrF6QtSbSNETvPuOVbkJBhzDgYhvjWGrTma4eYJa37ZuoQsPw==}
4763
@@ -5048,10 +4947,6 @@ packages:
4947 didyoumean@1.2.2:
4948 resolution: {integrity: sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==}
4949
5051 - diff@8.0.2:
5052 - resolution: {integrity: sha512-sSuxWU5j5SR9QQji/o2qMvqRNYRDOcBTgsJ/DeCf4iSN4gW+gNMXM7wFIP+fdXZxoNiAnHUTGjCr+TSWXdRDKg==}
5053 - engines: {node: '>=0.3.1'}
5054 -
4950 dir-glob@3.0.1:
4951 resolution: {integrity: sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==}
4952 engines: {node: '>=8'}
@@ -5108,6 +5003,9 @@ packages:
5003 emoji-regex@8.0.0:
5004 resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==}
5005
5006 + emojilib@2.4.0:
5007 + resolution: {integrity: sha512-5U0rVMU5Y2n2+ykNLQqMoqklN9ICBT/KsvC1Gz6vqHbz2AXXGkG+Pm5rMWk/8Vjrr/mY9985Hi8DYzn1F09Nyw==}
5008 +
5009 empathic@2.0.0:
5010 resolution: {integrity: sha512-i6UzDscO/XfAcNYD75CfICkmfLedpyPDdozrLMmQc5ORaQcdMoc21OnlEylMIqI7U8eniKrPMxxtj8k0vhmJhA==}
5011 engines: {node: '>=14'}
@@ -5167,11 +5065,6 @@ packages:
5065 engines: {node: '>=18'}
5066 hasBin: true
5067
5170 - esbuild@0.27.2:
5171 - resolution: {integrity: sha512-HyNQImnsOC7X9PMNaCIeAm4ISCQXs5a5YasTXVliKv4uuBo1dKrG0A+uQS8M5eXjVMnLg3WgXaKvprHlFJQffw==}
5172 - engines: {node: '>=18'}
5173 - hasBin: true
5174 -
5068 escalade@3.2.0:
5069 resolution: {integrity: sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==}
5070 engines: {node: '>=6'}
@@ -5348,14 +5241,6 @@ packages:
5241 fd-slicer@1.1.0:
5242 resolution: {integrity: sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g==}
5243
5351 - fdir@6.4.6:
5352 - resolution: {integrity: sha512-hiFoqpyZcfNm1yc4u8oWCf9A2c4D3QjCrks3zmoVKVxpQRzmPNar1hUJcBG2RQHvEVGDN+Jm81ZheVLAQMK6+w==}
5353 - peerDependencies:
5354 - picomatch: ^3 || ^4
5355 - peerDependenciesMeta:
5356 - picomatch:
5357 - optional: true
5358 -
5244 fdir@6.5.0:
5245 resolution: {integrity: sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==}
5246 engines: {node: '>=12.0.0'}
@@ -5411,9 +5296,6 @@ packages:
5296 resolution: {integrity: sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==}
5297 engines: {node: '>=10'}
5298
5414 - fix-dts-default-cjs-exports@1.0.1:
5415 - resolution: {integrity: sha512-pVIECanWFC61Hzl2+oOCtoJ3F17kglZC/6N94eRWycFgBH35hHx0Li604ZIzhseh97mf2p0cv7vVrOZGoqhlEg==}
5416 -
5299 flat-cache@4.0.1:
5300 resolution: {integrity: sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==}
5301 engines: {node: '>=16'}
@@ -5593,6 +5475,9 @@ packages:
5475 help-me@5.0.0:
5476 resolution: {integrity: sha512-7xgomUX6ADmcYzFik0HzAxh/73YlKR9bmFzf51CZwR+b6YtzU2m0u49hQCqV6SvlqIqsaxovfwdvbnsw3b/zpg==}
5477
5478 + highlight.js@10.7.3:
5479 + resolution: {integrity: sha512-tzcUFauisWKNHaRkN4Wjl/ZA07gENAjFl3J/c480dprkGTg5EQstgaNFqBfUqCq54kZRIEcreTsAgF/m2quD7A==}
5480 +
5481 hono-openapi@0.4.8:
5482 resolution: {integrity: sha512-LYr5xdtD49M7hEAduV1PftOMzuT8ZNvkyWfh1DThkLsIr4RkvDb12UxgIiFbwrJB6FLtFXLoOZL9x4IeDk2+VA==}
5483 peerDependencies:
@@ -5642,8 +5527,8 @@ packages:
5527 resolution: {integrity: sha512-BIdolzGpDO9MQ4nu3AUuDwHZZ+KViNm+EZ75Ae55eMXMqLVhDFqEMXxtUe9Qh8hjL+pIna/frs2j6Y2yD5Ua/g==}
5528 engines: {node: '>=16.9.0'}
5529
5645 - hookable@5.5.3:
5646 - resolution: {integrity: sha512-Yc+BQe8SvoXH1643Qez1zqLRmbA5rCL+sSmk6TVos0LWVfNIB7PGncdlId77WzLGSIB5KaWgTaNTs2lNVEI6VQ==}
5530 + hookable@6.0.1:
5531 + resolution: {integrity: sha512-uKGyY8BuzN/a5gvzvA+3FVWo0+wUjgtfSdnmjtrOVwQCZPHpHDH2WRO3VZSOeluYrHoDCiXFffZXs8Dj1ULWtw==}
5532
5533 html-to-text@9.0.5:
5534 resolution: {integrity: sha512-qY60FjREgVZL03vJU6IfMV4GDjGBIoOyvuFdpBDIX9yTlDw0TjxVBQp+P8NvpdIXNJvfWBTNul7fsAQJq2FNpg==}
@@ -5706,6 +5591,10 @@ packages:
5591 import-in-the-middle@1.14.2:
5592 resolution: {integrity: sha512-5tCuY9BV8ujfOpwtAGgsTx9CGUapcFMEEyByLv1B+v2+6DhAcw+Zr0nhQT7uwaZ7DiourxFEscghOR8e1aPLQw==}
5593
5594 + import-without-cache@0.2.5:
5595 + resolution: {integrity: sha512-B6Lc2s6yApwnD2/pMzFh/d5AVjdsDXjgkeJ766FmFuJELIGHNycKRj+l3A39yZPM4CchqNCB4RITEAYB1KUM6A==}
5596 + engines: {node: '>=20.19.0'}
5597 +
5598 imurmurhash@0.1.4:
5599 resolution: {integrity: sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==}
5600 engines: {node: '>=0.8.19'}
@@ -6071,10 +5960,6 @@ packages:
5960 resolution: {integrity: sha512-PoN3BMSr4F5h7ThQjXRZppyiCxuENIm/Set6hDk/DGLZrvIDgTuA2YSS29OSd2dXOQEtux5xGPl1d46nJ6w+Fw==}
5961 engines: {node: '>=18.0.0'}
5962
6074 - load-tsconfig@0.2.5:
6075 - resolution: {integrity: sha512-IXO6OCs9yg8tMKzfPZ1YmheJbZCiEsnBdcB03l0OcfK9prKnJb96siuHCr5Fl37/yo9DnKU+TLpxzTUspw9shg==}
6076 - engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}
6077 -
5963 locate-path@5.0.0:
5964 resolution: {integrity: sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==}
5965 engines: {node: '>=8'}
@@ -6134,6 +6019,17 @@ packages:
6019 resolution: {integrity: sha512-a54IwgWPaeBCAAsv13YgmALOF1elABB08FxO9i+r4VFk5Vl4pKokRPeX8u5TCgSsPi6ec1otfLjdOpVcgbpshg==}
6020 hasBin: true
6021
6022 + marked-terminal@7.3.0:
6023 + resolution: {integrity: sha512-t4rBvPsHc57uE/2nJOLmMbZCQ4tgAccAED3ngXQqW6g+TxA488JzJ+FK3lQkzBQOI1mRV/r/Kq+1ZlJ4D0owQw==}
6024 + engines: {node: '>=16.0.0'}
6025 + peerDependencies:
6026 + marked: '>=1 <16'
6027 +
6028 + marked@9.1.6:
6029 + resolution: {integrity: sha512-jcByLnIFkd5gSXZmjNvS1TlmRhCXZjIzHYlaGkPlLIekG55JDR2Z4va9tZwCiP+/RDERiNhMOFu01xd6O5ct1Q==}
6030 + engines: {node: '>= 16'}
6031 + hasBin: true
6032 +
6033 math-intrinsics@1.1.0:
6034 resolution: {integrity: sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==}
6035 engines: {node: '>= 0.4'}
@@ -6236,9 +6132,6 @@ packages:
6132 resolution: {integrity: sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==}
6133 engines: {node: '>=16 || 14 >=14.17'}
6134
6239 - mlly@1.8.0:
6240 - resolution: {integrity: sha512-l8D9ODSRWLe2KHJSifWGwBqpTZXIXTeo8mlKjY+E2HAakaTeNpqAyBZ8GSqLzHgw4XmHmC8whvpjJNMbFZN7/g==}
6241 -
6135 module-details-from-path@1.0.4:
6136 resolution: {integrity: sha512-EGWKgxALGMgzvxYF1UyGTy0HXX/2vHLkw6+NvDKW2jypWbHpjQuj4UMcqQWXHERJhVGKikolT06G3bcKe4fi7w==}
6137
@@ -6348,6 +6241,10 @@ packages:
6241 engines: {node: '>=10.5.0'}
6242 deprecated: Use your platform's native DOMException instead
6243
6244 + node-emoji@2.2.0:
6245 + resolution: {integrity: sha512-Z3lTE9pLaJF47NyMhd4ww1yFTAP8YhYI8SleJiHzM46Fgpm5cnNzSl9XfzFNqbaz+VlJrIj3fXQ4DeN1Rjm6cw==}
6246 + engines: {node: '>=18'}
6247 +
6248 node-fetch@2.7.0:
6249 resolution: {integrity: sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==}
6250 engines: {node: 4.x || >=6.0.0}
@@ -6580,6 +6477,15 @@ packages:
6477 resolution: {integrity: sha512-ybiGyvspI+fAoRQbIPRddCcSTV9/LsJbf0e/S85VLowVGzRmokfneg2kwVW/KU5rOXrPSbF1qAKPMgNTqqROQQ==}
6478 engines: {node: '>=18'}
6479
6480 + parse5-htmlparser2-tree-adapter@6.0.1:
6481 + resolution: {integrity: sha512-qPuWvbLgvDGilKc5BoicRovlT4MtYT6JfJyBOMDsKoiT+GiuP5qyrPCnR9HcPECIJJmZh5jRndyNThnhhb/vlA==}
6482 +
6483 + parse5@5.1.1:
6484 + resolution: {integrity: sha512-ugq4DFI0Ptb+WWjAdOK16+u/nHfiIrcE+sh8kZMaM0WllQKLI9rOUq6c2b7cwPkXdzfQESqvoqK6ug7U/Yyzug==}
6485 +
6486 + parse5@6.0.1:
6487 + resolution: {integrity: sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw==}
6488 +
6489 parseley@0.12.1:
6490 resolution: {integrity: sha512-e6qHKe3a9HWr0oMRVDTRhKce+bRO8VGQR3NyVwcjwrbhMmFCX9KszEV35+rn4AdilFAq9VPxP/Fe1wC9Qjd2lw==}
6491
@@ -6664,10 +6570,6 @@ packages:
6570 resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==}
6571 engines: {node: '>=8.6'}
6572
6667 - picomatch@4.0.2:
6668 - resolution: {integrity: sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==}
6669 - engines: {node: '>=12'}
6670 -
6573 picomatch@4.0.3:
6574 resolution: {integrity: sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==}
6575 engines: {node: '>=12'}
@@ -6719,9 +6621,6 @@ packages:
6621 resolution: {integrity: sha512-ueGLflrrnvwB3xuo/uGob5pd5FN7l0MsLf0Z87o/UQmRtwjvfylfc9MurIxRAWywCYTgrvpXBcqjV4OfCYGCIQ==}
6622 engines: {node: '>=16.20.0'}
6623
6722 - pkg-types@1.3.1:
6723 - resolution: {integrity: sha512-/Jm5M4RvtBFVkKWRu2BLUTNP8/M2a+UwuAX+ae4770q1qVGtfjG+WTCupoZixokjmHiry8uI+dlY8KXYV5HVVQ==}
6724 -
6624 pluralize@8.0.0:
6625 resolution: {integrity: sha512-Nc3IT5yHzflTfbjgqWcCPpo7DaKy4FnpB0l/zCAW0Tc7jxAiuqSxHasntB3D7887LSrA93kDJ9IXovxJYxyLCA==}
6626 engines: {node: '>=4'}
@@ -6759,24 +6658,6 @@ packages:
6658 ts-node:
6659 optional: true
6660
6762 - postcss-load-config@6.0.1:
6763 - resolution: {integrity: sha512-oPtTM4oerL+UXmx+93ytZVN82RrlY/wPUV8IeDxFrzIjXOLF1pN+EmKPLbubvKHT2HC20xXsCAH2Z+CKV6Oz/g==}
6764 - engines: {node: '>= 18'}
6765 - peerDependencies:
6766 - jiti: '>=1.21.0'
6767 - postcss: '>=8.0.9'
6768 - tsx: ^4.8.1
6769 - yaml: ^2.4.2
6770 - peerDependenciesMeta:
6771 - jiti:
6772 - optional: true
6773 - postcss:
6774 - optional: true
6775 - tsx:
6776 - optional: true
6777 - yaml:
6778 - optional: true
6779 -
6661 postcss-nested@6.2.0:
6662 resolution: {integrity: sha512-HQbt28KulC5AJzG+cZtj9kvKB93CFCdLvog1WFLf1D+xmMvPGlBstkpTEZfK5+AN9hfJocyBFCNiqyS48bpgzQ==}
6663 engines: {node: '>=12.0'}
@@ -6937,14 +6818,6 @@ packages:
6818 resolution: {integrity: sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==}
6819 engines: {node: '>=8.10.0'}
6820
6940 - readdirp@4.1.2:
6941 - resolution: {integrity: sha512-GDhwkLfywWL2s6vEjyhri+eXmfH6j1L7JE27WhqLeYzoh/A3DBaYGEj2H/HFZCn/kMfim73FXxEJTw06WtxQwg==}
6942 - engines: {node: '>= 14.18.0'}
6943 -
6944 - readdirp@5.0.0:
6945 - resolution: {integrity: sha512-9u/XQ1pvrQtYyMpZe7DXKv2p5CNvyVwzUB6uhLAnQwHMSgKMBR62lc7AHljaeteeHXn11XTAaLLUVZYVZyuRBQ==}
6946 - engines: {node: '>= 20.19.0'}
6947 -
6821 real-require@0.2.0:
6822 resolution: {integrity: sha512-57frrGM/OCTLqLOAh0mhVA9VBMHd+9U7Zb2THMGdBUoZVOtGbJzjxsYGDJ3A9AYYCP4hn6y1TVbaOfzWtm5GFg==}
6823 engines: {node: '>= 12.13.0'}
@@ -7000,15 +6873,15 @@ packages:
6873 rfdc@1.4.1:
6874 resolution: {integrity: sha512-q1b3N5QkRUWUl7iyylaaj3kOpIT0N2i9MqIEQXP73GVsN9cw3fdx8X63cEmWhJGi2PPCF23Ijp7ktmd39rawIA==}
6875
7003 - rolldown-plugin-dts@0.18.4:
7004 - resolution: {integrity: sha512-7UpdiICFd/BhdjKtDPeakCFRk6pbkTGFe0Z6u01egt4c8aoO+JoPGF1Smc+JRuCH2s5j5hBdteBi0e10G0xQdQ==}
6876 + rolldown-plugin-dts@0.20.0:
6877 + resolution: {integrity: sha512-cLAY1kN2ilTYMfZcFlGWbXnu6Nb+8uwUBsi+Mjbh4uIx7IN8uMOmJ7RxrrRgPsO4H7eSz3E+JwGoL1gyugiyUA==}
6878 engines: {node: '>=20.19.0'}
6879 peerDependencies:
6880 '@ts-macro/tsc': ^0.3.6
6881 '@typescript/native-preview': '>=7.0.0-dev.20250601.1'
7009 - rolldown: ^1.0.0-beta.51
6882 + rolldown: ^1.0.0-beta.57
6883 typescript: ^5.0.0
7011 - vue-tsc: ~3.1.0
6884 + vue-tsc: ~3.2.0
6885 peerDependenciesMeta:
6886 '@ts-macro/tsc':
6887 optional: true
@@ -7019,8 +6892,8 @@ packages:
6892 vue-tsc:
6893 optional: true
6894
7022 - rolldown@1.0.0-beta.52:
7023 - resolution: {integrity: sha512-Hbnpljue+JhMJrlOjQ1ixp9me7sUec7OjFvS+A1Qm8k8Xyxmw3ZhxFu7LlSXW1s9AX3POE9W9o2oqCEeR5uDmg==}
6895 + rolldown@1.0.0-beta.57:
6896 + resolution: {integrity: sha512-lMMxcNN71GMsSko8RyeTaFoATHkCh4IWU7pYF73ziMYjhHZWfVesC6GQ+iaJCvZmVjvgSks9Ks1aaqEkBd8udg==}
6897 engines: {node: ^20.19.0 || >=22.12.0}
6898 hasBin: true
6899
@@ -7174,6 +7047,10 @@ packages:
7047 sisteransi@1.0.5:
7048 resolution: {integrity: sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==}
7049
7050 + skin-tone@2.0.0:
7051 + resolution: {integrity: sha512-kUMbT1oBJCpgrnKoSr0o6wPtvRWT9W9UKvGLwfJYO2WuahZRHOpEyL1ckyMGgMWh0UdpmaoFqKKD29WTomNEGA==}
7052 + engines: {node: '>=8'}
7053 +
7054 slash@3.0.0:
7055 resolution: {integrity: sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==}
7056 engines: {node: '>=8'}
@@ -7193,10 +7070,6 @@ packages:
7070 resolution: {integrity: sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==}
7071 engines: {node: '>=0.10.0'}
7072
7196 - source-map@0.7.6:
7197 - resolution: {integrity: sha512-i5uvt8C3ikiWeNZSVZNWcfZPItFQOsYTUAOkcUPGd8DqDy1uOUikjt5dG+uRlwyvR108Fb9DOd4GvXfT0N2/uQ==}
7198 - engines: {node: '>= 12'}
7199 -
7073 spawndamnit@3.0.1:
7074 resolution: {integrity: sha512-MmnduQUuHCoFckZoWnXsTg7JaiLBJrKFj9UI2MbRPGaJeVpsLcVBu6P/IGZovziM/YBsellCmsprgNA+w0CzVg==}
7075
@@ -7313,6 +7186,10 @@ packages:
7186 resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==}
7187 engines: {node: '>=8'}
7188
7189 + supports-hyperlinks@3.2.0:
7190 + resolution: {integrity: sha512-zFObLMyZeEwzAoKCyu1B91U79K2t7ApXuQfo8OuxwXLDgcKxuwM+YvcbIhm6QWqz7mHUH1TVytR1PwVVjEuMig==}
7191 + engines: {node: '>=14.18'}
7192 +
7193 supports-preserve-symlinks-flag@1.0.0:
7194 resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==}
7195 engines: {node: '>= 0.4'}
@@ -7361,10 +7238,6 @@ packages:
7238 resolution: {integrity: sha512-W/KYk+NFhkmsYpuHq5JykngiOCnxeVL8v8dFnqxSD8qEEdRfXk1SDM6JzNqcERbcGYj9tMrDQBYV9cjgnunFIg==}
7239 engines: {node: '>=18'}
7240
7364 - tinyglobby@0.2.14:
7365 - resolution: {integrity: sha512-tX5e7OM1HnYr2+a2C/4V0htOcSQcoSTH9KgJnVvNm5zm/cyEWKJ7j7YutsH9CxMdtOkkLFy2AHrMci9IM8IPZQ==}
7366 - engines: {node: '>=12.0.0'}
7367 -
7241 tinyglobby@0.2.15:
7242 resolution: {integrity: sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==}
7243 engines: {node: '>=12.0.0'}
@@ -7429,13 +7302,13 @@ packages:
7302 ts-morph@26.0.0:
7303 resolution: {integrity: sha512-ztMO++owQnz8c/gIENcM9XfCEzgoGphTv+nKpYNM1bgsdOVC/jRZuEBf6N+mLLDNg68Kl+GgUZfOySaRiG1/Ug==}
7304
7432 - tsdown@0.16.8:
7433 - resolution: {integrity: sha512-6ANw9mgU9kk7SvTBKvpDu/DVJeAFECiLUSeL5M7f5Nm5H97E7ybxmXT4PQ23FySYn32y6OzjoAH/lsWCbGzfLA==}
7305 + tsdown@0.18.4:
7306 + resolution: {integrity: sha512-J/tRS6hsZTkvqmt4+xdELUCkQYDuUCXgBv0fw3ImV09WPGbEKfsPD65E+WUjSu3E7Z6tji9XZ1iWs8rbGqB/ZA==}
7307 engines: {node: '>=20.19.0'}
7308 hasBin: true
7309 peerDependencies:
7310 '@arethetypeswrong/core': ^0.18.1
7438 - '@vitejs/devtools': ^0.0.0-alpha.18
7311 + '@vitejs/devtools': '*'
7312 publint: ^0.3.0
7313 typescript: ^5.0.0
7314 unplugin-lightningcss: ^0.4.0
@@ -7457,25 +7330,6 @@ packages:
7330 tslib@2.8.1:
7331 resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==}
7332
7460 - tsup@8.5.1:
7461 - resolution: {integrity: sha512-xtgkqwdhpKWr3tKPmCkvYmS9xnQK3m3XgxZHwSUjvfTjp7YfXe5tT3GgWi0F2N+ZSMsOeWeZFh7ZZFg5iPhing==}
7462 - engines: {node: '>=18'}
7463 - hasBin: true
7464 - peerDependencies:
7465 - '@microsoft/api-extractor': ^7.36.0
7466 - '@swc/core': ^1
7467 - postcss: ^8.4.12
7468 - typescript: '>=4.5.0'
7469 - peerDependenciesMeta:
7470 - '@microsoft/api-extractor':
7471 - optional: true
7472 - '@swc/core':
7473 - optional: true
7474 - postcss:
7475 - optional: true
7476 - typescript:
7477 - optional: true
7478 -
7333 tsx@4.20.5:
7334 resolution: {integrity: sha512-+wKjMNU9w/EaQayHXb7WA7ZaHY6hN8WgfvHNQ3t1PnU91/7O8TcTnIhCDYTZwnt8JsO9IBqZ30Ln1r7pPF52Aw==}
7335 engines: {node: '>=18.0.0'}
@@ -7619,6 +7473,10 @@ packages:
7473 unenv@2.0.0-rc.21:
7474 resolution: {integrity: sha512-Wj7/AMtE9MRnAXa6Su3Lk0LNCfqDYgfwVjwRFVum9U7wsto1imuHqk4kTm7Jni+5A0Hn7dttL6O/zjvUvoo+8A==}
7475
7476 + unicode-emoji-modifier-base@1.0.0:
7477 + resolution: {integrity: sha512-yLSH4py7oFH3oG/9K+XWrz1pSi3dfUrWEnInbxMfArOfc1+33BlGPQtLsOYwvdMy11AwUBetYuaRxSPqgkq+8g==}
7478 + engines: {node: '>=4'}
7479 +
7480 unique-string@3.0.0:
7481 resolution: {integrity: sha512-VGXBUVwxKMBUznyffQweQABPRRW1vHZAbadFZud4pLFAqRGvv/96vafgjWFqzourzr8YonlQiPgH0YCJfawoGQ==}
7482 engines: {node: '>=12'}
@@ -7868,10 +7726,18 @@ packages:
7726 engines: {node: '>= 14.6'}
7727 hasBin: true
7728
7729 + yargs-parser@20.2.9:
7730 + resolution: {integrity: sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==}
7731 + engines: {node: '>=10'}
7732 +
7733 yargs-parser@21.1.1:
7734 resolution: {integrity: sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==}
7735 engines: {node: '>=12'}
7736
7737 + yargs@16.2.0:
7738 + resolution: {integrity: sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==}
7739 + engines: {node: '>=10'}
7740 +
7741 yargs@17.7.2:
7742 resolution: {integrity: sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==}
7743 engines: {node: '>=12'}
@@ -8251,8 +8117,7 @@ snapshots:
8117
8118 '@alloc/quick-lru@5.2.0': {}
8119
8254 - '@andrewbranch/untar.js@1.0.3':
8255 - optional: true
8120 + '@andrewbranch/untar.js@1.0.3': {}
8121
8122 '@anthropic-ai/claude-agent-sdk@0.1.60(zod@3.25.76)':
8123 dependencies:
@@ -8299,6 +8164,16 @@ snapshots:
8164 '@types/json-schema': 7.0.15
8165 js-yaml: 4.1.1
8166
8167 + '@arethetypeswrong/cli@0.18.2':
8168 + dependencies:
8169 + '@arethetypeswrong/core': 0.18.2
8170 + chalk: 4.1.2
8171 + cli-table3: 0.6.5
8172 + commander: 10.0.1
8173 + marked: 9.1.6
8174 + marked-terminal: 7.3.0(marked@9.1.6)
8175 + semver: 7.7.3
8176 +
8177 '@arethetypeswrong/core@0.18.2':
8178 dependencies:
8179 '@andrewbranch/untar.js': 1.0.3
@@ -8309,7 +8184,6 @@ snapshots:
8184 semver: 7.7.3
8185 typescript: 5.6.1-rc
8186 validate-npm-package-name: 5.0.1
8312 - optional: true
8187
8188 '@aws-crypto/sha256-js@5.2.0':
8189 dependencies:
@@ -8359,8 +8233,7 @@ snapshots:
8233 '@babel/helper-string-parser': 7.27.1
8234 '@babel/helper-validator-identifier': 7.28.5
8235
8362 - '@braidai/lang@1.1.2':
8363 - optional: true
8236 + '@braidai/lang@1.1.2': {}
8237
8238 '@cfworker/json-schema@4.1.1': {}
8239
@@ -8563,6 +8436,9 @@ snapshots:
8436
8437 '@cloudflare/workers-types@4.20250917.0': {}
8438
8439 + '@colors/colors@1.5.0':
8440 + optional: true
8441 +
8442 '@composio/client@0.1.0-alpha.54': {}
8443
8444 '@composio/mcp@1.0.3-0': {}
@@ -8716,228 +8592,150 @@ snapshots:
8592 '@esbuild/aix-ppc64@0.25.5':
8593 optional: true
8594
8719 - '@esbuild/aix-ppc64@0.27.2':
8720 - optional: true
8721 -
8595 '@esbuild/android-arm64@0.25.4':
8596 optional: true
8597
8598 '@esbuild/android-arm64@0.25.5':
8599 optional: true
8600
8728 - '@esbuild/android-arm64@0.27.2':
8729 - optional: true
8730 -
8601 '@esbuild/android-arm@0.25.4':
8602 optional: true
8603
8604 '@esbuild/android-arm@0.25.5':
8605 optional: true
8606
8737 - '@esbuild/android-arm@0.27.2':
8738 - optional: true
8739 -
8607 '@esbuild/android-x64@0.25.4':
8608 optional: true
8609
8610 '@esbuild/android-x64@0.25.5':
8611 optional: true
8612
8746 - '@esbuild/android-x64@0.27.2':
8747 - optional: true
8748 -
8613 '@esbuild/darwin-arm64@0.25.4':
8614 optional: true
8615
8616 '@esbuild/darwin-arm64@0.25.5':
8617 optional: true
8618
8755 - '@esbuild/darwin-arm64@0.27.2':
8756 - optional: true
8757 -
8619 '@esbuild/darwin-x64@0.25.4':
8620 optional: true
8621
8622 '@esbuild/darwin-x64@0.25.5':
8623 optional: true
8624
8764 - '@esbuild/darwin-x64@0.27.2':
8765 - optional: true
8766 -
8625 '@esbuild/freebsd-arm64@0.25.4':
8626 optional: true
8627
8628 '@esbuild/freebsd-arm64@0.25.5':
8629 optional: true
8630
8773 - '@esbuild/freebsd-arm64@0.27.2':
8774 - optional: true
8775 -
8631 '@esbuild/freebsd-x64@0.25.4':
8632 optional: true
8633
8634 '@esbuild/freebsd-x64@0.25.5':
8635 optional: true
8636
8782 - '@esbuild/freebsd-x64@0.27.2':
8783 - optional: true
8784 -
8637 '@esbuild/linux-arm64@0.25.4':
8638 optional: true
8639
8640 '@esbuild/linux-arm64@0.25.5':
8641 optional: true
8642
8791 - '@esbuild/linux-arm64@0.27.2':
8792 - optional: true
8793 -
8643 '@esbuild/linux-arm@0.25.4':
8644 optional: true
8645
8646 '@esbuild/linux-arm@0.25.5':
8647 optional: true
8648
8800 - '@esbuild/linux-arm@0.27.2':
8801 - optional: true
8802 -
8649 '@esbuild/linux-ia32@0.25.4':
8650 optional: true
8651
8652 '@esbuild/linux-ia32@0.25.5':
8653 optional: true
8654
8809 - '@esbuild/linux-ia32@0.27.2':
8810 - optional: true
8811 -
8655 '@esbuild/linux-loong64@0.25.4':
8656 optional: true
8657
8658 '@esbuild/linux-loong64@0.25.5':
8659 optional: true
8660
8818 - '@esbuild/linux-loong64@0.27.2':
8819 - optional: true
8820 -
8661 '@esbuild/linux-mips64el@0.25.4':
8662 optional: true
8663
8664 '@esbuild/linux-mips64el@0.25.5':
8665 optional: true
8666
8827 - '@esbuild/linux-mips64el@0.27.2':
8828 - optional: true
8829 -
8667 '@esbuild/linux-ppc64@0.25.4':
8668 optional: true
8669
8670 '@esbuild/linux-ppc64@0.25.5':
8671 optional: true
8672
8836 - '@esbuild/linux-ppc64@0.27.2':
8837 - optional: true
8838 -
8673 '@esbuild/linux-riscv64@0.25.4':
8674 optional: true
8675
8676 '@esbuild/linux-riscv64@0.25.5':
8677 optional: true
8678
8845 - '@esbuild/linux-riscv64@0.27.2':
8846 - optional: true
8847 -
8679 '@esbuild/linux-s390x@0.25.4':
8680 optional: true
8681
8682 '@esbuild/linux-s390x@0.25.5':
8683 optional: true
8684
8854 - '@esbuild/linux-s390x@0.27.2':
8855 - optional: true
8856 -
8685 '@esbuild/linux-x64@0.25.4':
8686 optional: true
8687
8688 '@esbuild/linux-x64@0.25.5':
8689 optional: true
8690
8863 - '@esbuild/linux-x64@0.27.2':
8864 - optional: true
8865 -
8691 '@esbuild/netbsd-arm64@0.25.4':
8692 optional: true
8693
8694 '@esbuild/netbsd-arm64@0.25.5':
8695 optional: true
8696
8872 - '@esbuild/netbsd-arm64@0.27.2':
8873 - optional: true
8874 -
8697 '@esbuild/netbsd-x64@0.25.4':
8698 optional: true
8699
8700 '@esbuild/netbsd-x64@0.25.5':
8701 optional: true
8702
8881 - '@esbuild/netbsd-x64@0.27.2':
8882 - optional: true
8883 -
8703 '@esbuild/openbsd-arm64@0.25.4':
8704 optional: true
8705
8706 '@esbuild/openbsd-arm64@0.25.5':
8707 optional: true
8708
8890 - '@esbuild/openbsd-arm64@0.27.2':
8891 - optional: true
8892 -
8709 '@esbuild/openbsd-x64@0.25.4':
8710 optional: true
8711
8712 '@esbuild/openbsd-x64@0.25.5':
8713 optional: true
8714
8899 - '@esbuild/openbsd-x64@0.27.2':
8900 - optional: true
8901 -
8902 - '@esbuild/openharmony-arm64@0.27.2':
8903 - optional: true
8904 -
8715 '@esbuild/sunos-x64@0.25.4':
8716 optional: true
8717
8718 '@esbuild/sunos-x64@0.25.5':
8719 optional: true
8720
8911 - '@esbuild/sunos-x64@0.27.2':
8912 - optional: true
8913 -
8721 '@esbuild/win32-arm64@0.25.4':
8722 optional: true
8723
8724 '@esbuild/win32-arm64@0.25.5':
8725 optional: true
8726
8920 - '@esbuild/win32-arm64@0.27.2':
8921 - optional: true
8922 -
8727 '@esbuild/win32-ia32@0.25.4':
8728 optional: true
8729
8730 '@esbuild/win32-ia32@0.25.5':
8731 optional: true
8732
8929 - '@esbuild/win32-ia32@0.27.2':
8930 - optional: true
8931 -
8733 '@esbuild/win32-x64@0.25.4':
8734 optional: true
8735
8736 '@esbuild/win32-x64@0.25.5':
8737 optional: true
8738
8938 - '@esbuild/win32-x64@0.27.2':
8939 - optional: true
8940 -
8739 '@eslint-community/eslint-utils@4.7.0(eslint@9.29.0(jiti@2.6.1))':
8740 dependencies:
8741 eslint: 9.29.0(jiti@2.6.1)
@@ -9676,7 +9474,6 @@ snapshots:
9474 '@loaderkit/resolve@1.0.4':
9475 dependencies:
9476 '@braidai/lang': 1.1.2
9679 - optional: true
9477
9478 '@manypkg/find-root@1.1.0':
9479 dependencies:
@@ -10293,7 +10090,7 @@ snapshots:
10090 '@openai/agents-openai': 0.3.4(@cfworker/json-schema@4.1.1)(ws@8.18.2)(zod@4.3.5)
10091 '@openai/agents-realtime': 0.3.4(@cfworker/json-schema@4.1.1)(zod@4.3.5)
10092 debug: 4.4.3(supports-color@10.0.0)
10296 - openai: 6.7.0(ws@8.18.2)(zod@4.3.5)
10093 + openai: 6.10.0(ws@8.18.2)(zod@4.3.5)
10094 zod: 4.3.5
10095 transitivePeerDependencies:
10096 - '@cfworker/json-schema'
@@ -10992,9 +10789,9 @@ snapshots:
10789 '@opentelemetry/api': 1.9.0
10790 '@opentelemetry/core': 2.0.1(@opentelemetry/api@1.9.0)
10791
10995 - '@oxc-project/types@0.107.0': {}
10792 + '@oxc-project/types@0.103.0': {}
10793
10997 - '@oxc-project/types@0.99.0': {}
10794 + '@oxc-project/types@0.107.0': {}
10795
10796 '@parcel/watcher-android-arm64@2.5.1':
10797 optional: true
@@ -11093,8 +10890,7 @@ snapshots:
10890
10891 '@protobufjs/utf8@1.1.0': {}
10892
11096 - '@publint/pack@0.1.2':
11097 - optional: true
10893 + '@publint/pack@0.1.2': {}
10894
10895 '@quansync/fs@1.0.0':
10896 dependencies:
@@ -11123,67 +10919,67 @@ snapshots:
10919 transitivePeerDependencies:
10920 - supports-color
10921
11126 - '@rolldown/binding-android-arm64@1.0.0-beta.52':
10922 + '@rolldown/binding-android-arm64@1.0.0-beta.57':
10923 optional: true
10924
10925 '@rolldown/binding-android-arm64@1.0.0-beta.59':
10926 optional: true
10927
11132 - '@rolldown/binding-darwin-arm64@1.0.0-beta.52':
10928 + '@rolldown/binding-darwin-arm64@1.0.0-beta.57':
10929 optional: true
10930
10931 '@rolldown/binding-darwin-arm64@1.0.0-beta.59':
10932 optional: true
10933
11138 - '@rolldown/binding-darwin-x64@1.0.0-beta.52':
10934 + '@rolldown/binding-darwin-x64@1.0.0-beta.57':
10935 optional: true
10936
10937 '@rolldown/binding-darwin-x64@1.0.0-beta.59':
10938 optional: true
10939
11144 - '@rolldown/binding-freebsd-x64@1.0.0-beta.52':
10940 + '@rolldown/binding-freebsd-x64@1.0.0-beta.57':
10941 optional: true
10942
10943 '@rolldown/binding-freebsd-x64@1.0.0-beta.59':
10944 optional: true
10945
11150 - '@rolldown/binding-linux-arm-gnueabihf@1.0.0-beta.52':
10946 + '@rolldown/binding-linux-arm-gnueabihf@1.0.0-beta.57':
10947 optional: true
10948
10949 '@rolldown/binding-linux-arm-gnueabihf@1.0.0-beta.59':
10950 optional: true
10951
11156 - '@rolldown/binding-linux-arm64-gnu@1.0.0-beta.52':
10952 + '@rolldown/binding-linux-arm64-gnu@1.0.0-beta.57':
10953 optional: true
10954
10955 '@rolldown/binding-linux-arm64-gnu@1.0.0-beta.59':
10956 optional: true
10957
11162 - '@rolldown/binding-linux-arm64-musl@1.0.0-beta.52':
10958 + '@rolldown/binding-linux-arm64-musl@1.0.0-beta.57':
10959 optional: true
10960
10961 '@rolldown/binding-linux-arm64-musl@1.0.0-beta.59':
10962 optional: true
10963
11168 - '@rolldown/binding-linux-x64-gnu@1.0.0-beta.52':
10964 + '@rolldown/binding-linux-x64-gnu@1.0.0-beta.57':
10965 optional: true
10966
10967 '@rolldown/binding-linux-x64-gnu@1.0.0-beta.59':
10968 optional: true
10969
11174 - '@rolldown/binding-linux-x64-musl@1.0.0-beta.52':
10970 + '@rolldown/binding-linux-x64-musl@1.0.0-beta.57':
10971 optional: true
10972
10973 '@rolldown/binding-linux-x64-musl@1.0.0-beta.59':
10974 optional: true
10975
11180 - '@rolldown/binding-openharmony-arm64@1.0.0-beta.52':
10976 + '@rolldown/binding-openharmony-arm64@1.0.0-beta.57':
10977 optional: true
10978
10979 '@rolldown/binding-openharmony-arm64@1.0.0-beta.59':
10980 optional: true
10981
11186 - '@rolldown/binding-wasm32-wasi@1.0.0-beta.52':
10982 + '@rolldown/binding-wasm32-wasi@1.0.0-beta.57':
10983 dependencies:
10984 '@napi-rs/wasm-runtime': 1.1.1
10985 optional: true
@@ -11193,22 +10989,19 @@ snapshots:
10989 '@napi-rs/wasm-runtime': 1.1.1
10990 optional: true
10991
11196 - '@rolldown/binding-win32-arm64-msvc@1.0.0-beta.52':
10992 + '@rolldown/binding-win32-arm64-msvc@1.0.0-beta.57':
10993 optional: true
10994
10995 '@rolldown/binding-win32-arm64-msvc@1.0.0-beta.59':
10996 optional: true
10997
11202 - '@rolldown/binding-win32-ia32-msvc@1.0.0-beta.52':
11203 - optional: true
11204 -
11205 - '@rolldown/binding-win32-x64-msvc@1.0.0-beta.52':
10998 + '@rolldown/binding-win32-x64-msvc@1.0.0-beta.57':
10999 optional: true
11000
11001 '@rolldown/binding-win32-x64-msvc@1.0.0-beta.59':
11002 optional: true
11003
11211 - '@rolldown/pluginutils@1.0.0-beta.52': {}
11004 + '@rolldown/pluginutils@1.0.0-beta.57': {}
11005
11006 '@rolldown/pluginutils@1.0.0-beta.59': {}
11007
@@ -11297,6 +11090,8 @@ snapshots:
11090
11091 '@shikijs/vscode-textmate@10.0.2': {}
11092
11093 + '@sindresorhus/is@4.6.0': {}
11094 +
11095 '@sindresorhus/is@7.0.2': {}
11096
11097 '@sindresorhus/slugify@2.2.1':
@@ -11682,7 +11477,7 @@ snapshots:
11477 flatted: 3.3.3
11478 pathe: 2.0.3
11479 sirv: 3.0.1
11685 - tinyglobby: 0.2.14
11480 + tinyglobby: 0.2.15
11481 tinyrainbow: 2.0.0
11482 vitest: 3.2.4(@types/debug@4.1.12)(@types/node@22.15.32)(@vitest/ui@3.2.4)(jiti@2.6.1)(lightningcss@1.30.2)(tsx@4.20.5)(yaml@2.8.1)
11483
@@ -11951,11 +11746,6 @@ snapshots:
11746 dependencies:
11747 run-applescript: 7.0.0
11748
11954 - bundle-require@5.1.0(esbuild@0.27.2):
11955 - dependencies:
11956 - esbuild: 0.27.2
11957 - load-tsconfig: 0.2.5
11958 -
11749 bytes@3.1.2: {}
11750
11751 cac@6.7.14: {}
@@ -12007,6 +11797,8 @@ snapshots:
11797
11798 change-case@5.4.4: {}
11799
11800 + char-regex@1.0.2: {}
11801 +
11802 chardet@0.7.0: {}
11803
11804 chardet@2.1.1: {}
@@ -12025,14 +11817,6 @@ snapshots:
11817 optionalDependencies:
11818 fsevents: 2.3.3
11819
12028 - chokidar@4.0.3:
12029 - dependencies:
12030 - readdirp: 4.1.2
12031 -
12032 - chokidar@5.0.0:
12033 - dependencies:
12034 - readdirp: 5.0.0
12035 -
11820 ci-info@3.9.0: {}
11821
11822 cjs-module-lexer@1.4.3: {}
@@ -12041,12 +11825,27 @@ snapshots:
11825 dependencies:
11826 restore-cursor: 5.1.0
11827
11828 + cli-highlight@2.1.11:
11829 + dependencies:
11830 + chalk: 4.1.2
11831 + highlight.js: 10.7.3
11832 + mz: 2.7.0
11833 + parse5: 5.1.1
11834 + parse5-htmlparser2-tree-adapter: 6.0.1
11835 + yargs: 16.2.0
11836 +
11837 cli-progress@3.12.0:
11838 dependencies:
11839 string-width: 4.2.3
11840
11841 cli-spinners@3.3.0: {}
11842
11843 + cli-table3@0.6.5:
11844 + dependencies:
11845 + string-width: 4.2.3
11846 + optionalDependencies:
11847 + '@colors/colors': 1.5.0
11848 +
11849 cli-truncate@4.0.0:
11850 dependencies:
11851 slice-ansi: 5.0.0
@@ -12056,6 +11855,12 @@ snapshots:
11855
11856 client-only@0.0.1: {}
11857
11858 + cliui@7.0.4:
11859 + dependencies:
11860 + string-width: 4.2.3
11861 + strip-ansi: 6.0.1
11862 + wrap-ansi: 7.0.0
11863 +
11864 cliui@8.0.1:
11865 dependencies:
11866 string-width: 4.2.3
@@ -12090,6 +11895,8 @@ snapshots:
11895 dependencies:
11896 delayed-stream: 1.0.0
11897
11898 + commander@10.0.1: {}
11899 +
11900 commander@12.1.0: {}
11901
11902 commander@13.1.0: {}
@@ -12133,10 +11940,6 @@ snapshots:
11940
11941 concat-map@0.0.1: {}
11942
12136 - confbox@0.1.8: {}
12137 -
12138 - consola@3.4.2: {}
12139 -
11943 console-table-printer@2.14.6:
11944 dependencies:
11945 simple-wcswidth: 1.1.2
@@ -12290,8 +12093,6 @@ snapshots:
12093
12094 didyoumean@1.2.2: {}
12095
12293 - diff@8.0.2: {}
12294 -
12096 dir-glob@3.0.1:
12097 dependencies:
12098 path-type: 4.0.0
@@ -12343,6 +12144,8 @@ snapshots:
12144
12145 emoji-regex@8.0.0: {}
12146
12147 + emojilib@2.4.0: {}
12148 +
12149 empathic@2.0.0: {}
12150
12151 encodeurl@1.0.2: {}
@@ -12437,35 +12240,6 @@ snapshots:
12240 '@esbuild/win32-ia32': 0.25.5
12241 '@esbuild/win32-x64': 0.25.5
12242
12440 - esbuild@0.27.2:
12441 - optionalDependencies:
12442 - '@esbuild/aix-ppc64': 0.27.2
12443 - '@esbuild/android-arm': 0.27.2
12444 - '@esbuild/android-arm64': 0.27.2
12445 - '@esbuild/android-x64': 0.27.2
12446 - '@esbuild/darwin-arm64': 0.27.2
12447 - '@esbuild/darwin-x64': 0.27.2
12448 - '@esbuild/freebsd-arm64': 0.27.2
12449 - '@esbuild/freebsd-x64': 0.27.2
12450 - '@esbuild/linux-arm': 0.27.2
12451 - '@esbuild/linux-arm64': 0.27.2
12452 - '@esbuild/linux-ia32': 0.27.2
12453 - '@esbuild/linux-loong64': 0.27.2
12454 - '@esbuild/linux-mips64el': 0.27.2
12455 - '@esbuild/linux-ppc64': 0.27.2
12456 - '@esbuild/linux-riscv64': 0.27.2
12457 - '@esbuild/linux-s390x': 0.27.2
12458 - '@esbuild/linux-x64': 0.27.2
12459 - '@esbuild/netbsd-arm64': 0.27.2
12460 - '@esbuild/netbsd-x64': 0.27.2
12461 - '@esbuild/openbsd-arm64': 0.27.2
12462 - '@esbuild/openbsd-x64': 0.27.2
12463 - '@esbuild/openharmony-arm64': 0.27.2
12464 - '@esbuild/sunos-x64': 0.27.2
12465 - '@esbuild/win32-arm64': 0.27.2
12466 - '@esbuild/win32-ia32': 0.27.2
12467 - '@esbuild/win32-x64': 0.27.2
12468 -
12243 escalade@3.2.0: {}
12244
12245 escape-html@1.0.3: {}
@@ -12708,10 +12482,6 @@ snapshots:
12482 dependencies:
12483 pend: 1.2.0
12484
12711 - fdir@6.4.6(picomatch@4.0.2):
12712 - optionalDependencies:
12713 - picomatch: 4.0.2
12714 -
12485 fdir@6.5.0(picomatch@4.0.3):
12486 optionalDependencies:
12487 picomatch: 4.0.3
@@ -12769,12 +12539,6 @@ snapshots:
12539 locate-path: 6.0.0
12540 path-exists: 4.0.0
12541
12772 - fix-dts-default-cjs-exports@1.0.1:
12773 - dependencies:
12774 - magic-string: 0.30.21
12775 - mlly: 1.8.0
12776 - rollup: 4.43.0
12777 -
12542 flat-cache@4.0.1:
12543 dependencies:
12544 flatted: 3.3.3
@@ -12967,6 +12731,8 @@ snapshots:
12731
12732 help-me@5.0.0: {}
12733
12734 + highlight.js@10.7.3: {}
12735 +
12736 hono-openapi@0.4.8(effect@3.16.16)(hono@4.10.6)(openapi-types@12.1.3)(zod@3.25.76):
12737 dependencies:
12738 json-schema-walker: 2.0.0
@@ -12987,7 +12753,7 @@ snapshots:
12753
12754 hono@4.10.6: {}
12755
12990 - hookable@5.5.3: {}
12756 + hookable@6.0.1: {}
12757
12758 html-to-text@9.0.5:
12759 dependencies:
@@ -13063,6 +12829,8 @@ snapshots:
12829 cjs-module-lexer: 1.4.3
12830 module-details-from-path: 1.0.4
12831
12832 + import-without-cache@0.2.5: {}
12833 +
12834 imurmurhash@0.1.4: {}
12835
12836 indent-string@5.0.0: {}
@@ -13434,8 +13202,6 @@ snapshots:
13202 - web-tree-sitter
13203 - zod
13204
13437 - load-tsconfig@0.2.5: {}
13438 -
13205 locate-path@5.0.0:
13206 dependencies:
13207 p-locate: 4.1.0
@@ -13496,6 +13262,19 @@ snapshots:
13262 punycode.js: 2.3.1
13263 uc.micro: 2.1.0
13264
13265 + marked-terminal@7.3.0(marked@9.1.6):
13266 + dependencies:
13267 + ansi-escapes: 7.0.0
13268 + ansi-regex: 6.1.0
13269 + chalk: 5.6.2
13270 + cli-highlight: 2.1.11
13271 + cli-table3: 0.6.5
13272 + marked: 9.1.6
13273 + node-emoji: 2.2.0
13274 + supports-hyperlinks: 3.2.0
13275 +
13276 + marked@9.1.6: {}
13277 +
13278 math-intrinsics@1.1.0: {}
13279
13280 mdurl@2.0.0: {}
@@ -13581,13 +13360,6 @@ snapshots:
13360
13361 minipass@7.1.2: {}
13362
13584 - mlly@1.8.0:
13585 - dependencies:
13586 - acorn: 8.15.0
13587 - pathe: 2.0.3
13588 - pkg-types: 1.3.1
13589 - ufo: 1.6.1
13590 -
13363 module-details-from-path@1.0.4: {}
13364
13365 mri@1.2.0: {}
@@ -13689,6 +13461,13 @@ snapshots:
13461
13462 node-domexception@1.0.0: {}
13463
13464 + node-emoji@2.2.0:
13465 + dependencies:
13466 + '@sindresorhus/is': 4.6.0
13467 + char-regex: 1.0.2
13468 + emojilib: 2.4.0
13469 + skin-tone: 2.0.0
13470 +
13471 node-fetch@2.7.0:
13472 dependencies:
13473 whatwg-url: 5.0.0
@@ -13916,8 +13695,7 @@ snapshots:
13695 dependencies:
13696 quansync: 0.2.11
13697
13919 - package-manager-detector@1.6.0:
13920 - optional: true
13698 + package-manager-detector@1.6.0: {}
13699
13700 parent-module@1.0.1:
13701 dependencies:
@@ -13929,6 +13707,14 @@ snapshots:
13707 index-to-position: 1.1.0
13708 type-fest: 4.41.0
13709
13710 + parse5-htmlparser2-tree-adapter@6.0.1:
13711 + dependencies:
13712 + parse5: 6.0.1
13713 +
13714 + parse5@5.1.1: {}
13715 +
13716 + parse5@6.0.1: {}
13717 +
13718 parseley@0.12.1:
13719 dependencies:
13720 leac: 0.6.0
@@ -13991,8 +13777,6 @@ snapshots:
13777
13778 picomatch@2.3.1: {}
13779
13994 - picomatch@4.0.2: {}
13995 -
13780 picomatch@4.0.3: {}
13781
13782 pidtree@0.6.0: {}
@@ -14049,12 +13833,6 @@ snapshots:
13833
13834 pkce-challenge@5.0.0: {}
13835
14052 - pkg-types@1.3.1:
14053 - dependencies:
14054 - confbox: 0.1.8
14055 - mlly: 1.8.0
14056 - pathe: 2.0.3
14057 -
13836 pluralize@8.0.0: {}
13837
13838 pnpm@10.24.0: {}
@@ -14080,15 +13858,6 @@ snapshots:
13858 optionalDependencies:
13859 postcss: 8.5.6
13860
14083 - postcss-load-config@6.0.1(jiti@2.6.1)(postcss@8.5.6)(tsx@4.20.5)(yaml@2.8.1):
14084 - dependencies:
14085 - lilconfig: 3.1.3
14086 - optionalDependencies:
14087 - jiti: 2.6.1
14088 - postcss: 8.5.6
14089 - tsx: 4.20.5
14090 - yaml: 2.8.1
14091 -
13861 postcss-nested@6.2.0(postcss@8.5.6):
13862 dependencies:
13863 postcss: 8.5.6
@@ -14165,7 +13934,6 @@ snapshots:
13934 package-manager-detector: 1.6.0
13935 picocolors: 1.1.1
13936 sade: 1.8.1
14168 - optional: true
13937
13938 pump@3.0.3:
13939 dependencies:
@@ -14263,10 +14031,6 @@ snapshots:
14031 dependencies:
14032 picomatch: 2.3.1
14033
14266 - readdirp@4.1.2: {}
14267 -
14268 - readdirp@5.0.0: {}
14269 -
14034 real-require@0.2.0: {}
14035
14036 repeat-string@1.6.1: {}
@@ -14310,7 +14074,7 @@ snapshots:
14074
14075 rfdc@1.4.1: {}
14076
14313 - rolldown-plugin-dts@0.18.4(rolldown@1.0.0-beta.52)(typescript@5.9.3):
14077 + rolldown-plugin-dts@0.20.0(rolldown@1.0.0-beta.57)(typescript@5.9.3):
14078 dependencies:
14079 '@babel/generator': 7.28.5
14080 '@babel/parser': 7.28.5
@@ -14319,33 +14083,31 @@ snapshots:
14083 birpc: 4.0.0
14084 dts-resolver: 2.1.3
14085 get-tsconfig: 4.13.0
14322 - magic-string: 0.30.21
14086 obug: 2.1.1
14324 - rolldown: 1.0.0-beta.52
14087 + rolldown: 1.0.0-beta.57
14088 optionalDependencies:
14089 typescript: 5.9.3
14090 transitivePeerDependencies:
14091 - oxc-resolver
14092
14330 - rolldown@1.0.0-beta.52:
14093 + rolldown@1.0.0-beta.57:
14094 dependencies:
14332 - '@oxc-project/types': 0.99.0
14333 - '@rolldown/pluginutils': 1.0.0-beta.52
14095 + '@oxc-project/types': 0.103.0
14096 + '@rolldown/pluginutils': 1.0.0-beta.57
14097 optionalDependencies:
14335 - '@rolldown/binding-android-arm64': 1.0.0-beta.52
14336 - '@rolldown/binding-darwin-arm64': 1.0.0-beta.52
14337 - '@rolldown/binding-darwin-x64': 1.0.0-beta.52
14338 - '@rolldown/binding-freebsd-x64': 1.0.0-beta.52
14339 - '@rolldown/binding-linux-arm-gnueabihf': 1.0.0-beta.52
14340 - '@rolldown/binding-linux-arm64-gnu': 1.0.0-beta.52
14341 - '@rolldown/binding-linux-arm64-musl': 1.0.0-beta.52
14342 - '@rolldown/binding-linux-x64-gnu': 1.0.0-beta.52
14343 - '@rolldown/binding-linux-x64-musl': 1.0.0-beta.52
14344 - '@rolldown/binding-openharmony-arm64': 1.0.0-beta.52
14345 - '@rolldown/binding-wasm32-wasi': 1.0.0-beta.52
14346 - '@rolldown/binding-win32-arm64-msvc': 1.0.0-beta.52
14347 - '@rolldown/binding-win32-ia32-msvc': 1.0.0-beta.52
14348 - '@rolldown/binding-win32-x64-msvc': 1.0.0-beta.52
14098 + '@rolldown/binding-android-arm64': 1.0.0-beta.57
14099 + '@rolldown/binding-darwin-arm64': 1.0.0-beta.57
14100 + '@rolldown/binding-darwin-x64': 1.0.0-beta.57
14101 + '@rolldown/binding-freebsd-x64': 1.0.0-beta.57
14102 + '@rolldown/binding-linux-arm-gnueabihf': 1.0.0-beta.57
14103 + '@rolldown/binding-linux-arm64-gnu': 1.0.0-beta.57
14104 + '@rolldown/binding-linux-arm64-musl': 1.0.0-beta.57
14105 + '@rolldown/binding-linux-x64-gnu': 1.0.0-beta.57
14106 + '@rolldown/binding-linux-x64-musl': 1.0.0-beta.57
14107 + '@rolldown/binding-openharmony-arm64': 1.0.0-beta.57
14108 + '@rolldown/binding-wasm32-wasi': 1.0.0-beta.57
14109 + '@rolldown/binding-win32-arm64-msvc': 1.0.0-beta.57
14110 + '@rolldown/binding-win32-x64-msvc': 1.0.0-beta.57
14111
14112 rolldown@1.0.0-beta.59:
14113 dependencies:
@@ -14417,7 +14179,6 @@ snapshots:
14179 sade@1.8.1:
14180 dependencies:
14181 mri: 1.2.0
14420 - optional: true
14182
14183 safe-buffer@5.1.2: {}
14184
@@ -14623,6 +14384,10 @@ snapshots:
14384
14385 sisteransi@1.0.5: {}
14386
14387 + skin-tone@2.0.0:
14388 + dependencies:
14389 + unicode-emoji-modifier-base: 1.0.0
14390 +
14391 slash@3.0.0: {}
14392
14393 slice-ansi@5.0.0:
@@ -14641,8 +14406,6 @@ snapshots:
14406
14407 source-map-js@1.2.1: {}
14408
14644 - source-map@0.7.6: {}
14645 -
14409 spawndamnit@3.0.1:
14410 dependencies:
14411 cross-spawn: 7.0.6
@@ -14760,6 +14523,11 @@ snapshots:
14523 dependencies:
14524 has-flag: 4.0.0
14525
14526 + supports-hyperlinks@3.2.0:
14527 + dependencies:
14528 + has-flag: 4.0.0
14529 + supports-color: 7.2.0
14530 +
14531 supports-preserve-symlinks-flag@1.0.0: {}
14532
14533 tailwindcss@3.4.17:
@@ -14830,11 +14598,6 @@ snapshots:
14598
14599 tinyexec@1.0.2: {}
14600
14833 - tinyglobby@0.2.14:
14834 - dependencies:
14835 - fdir: 6.4.6(picomatch@4.0.2)
14836 - picomatch: 4.0.2
14837 -
14601 tinyglobby@0.2.15:
14602 dependencies:
14603 fdir: 6.5.0(picomatch@4.0.3)
@@ -14886,17 +14649,18 @@ snapshots:
14649 '@ts-morph/common': 0.27.0
14650 code-block-writer: 13.0.3
14651
14889 - tsdown@0.16.8(@arethetypeswrong/core@0.18.2)(publint@0.3.16)(typescript@5.9.3):
14652 + tsdown@0.18.4(@arethetypeswrong/core@0.18.2)(publint@0.3.16)(typescript@5.9.3):
14653 dependencies:
14654 ansis: 4.2.0
14655 cac: 6.7.14
14893 - chokidar: 5.0.0
14894 - diff: 8.0.2
14656 + defu: 6.1.4
14657 empathic: 2.0.0
14896 - hookable: 5.5.3
14658 + hookable: 6.0.1
14659 + import-without-cache: 0.2.5
14660 obug: 2.1.1
14898 - rolldown: 1.0.0-beta.52
14899 - rolldown-plugin-dts: 0.18.4(rolldown@1.0.0-beta.52)(typescript@5.9.3)
14661 + picomatch: 4.0.3
14662 + rolldown: 1.0.0-beta.57
14663 + rolldown-plugin-dts: 0.20.0(rolldown@1.0.0-beta.57)(typescript@5.9.3)
14664 semver: 7.7.3
14665 tinyexec: 1.0.2
14666 tinyglobby: 0.2.15
@@ -14916,34 +14680,6 @@ snapshots:
14680
14681 tslib@2.8.1: {}
14682
14919 - tsup@8.5.1(jiti@2.6.1)(postcss@8.5.6)(tsx@4.20.5)(typescript@5.9.3)(yaml@2.8.1):
14920 - dependencies:
14921 - bundle-require: 5.1.0(esbuild@0.27.2)
14922 - cac: 6.7.14
14923 - chokidar: 4.0.3
14924 - consola: 3.4.2
14925 - debug: 4.4.3(supports-color@10.0.0)
14926 - esbuild: 0.27.2
14927 - fix-dts-default-cjs-exports: 1.0.1
14928 - joycon: 3.1.1
14929 - picocolors: 1.1.1
14930 - postcss-load-config: 6.0.1(jiti@2.6.1)(postcss@8.5.6)(tsx@4.20.5)(yaml@2.8.1)
14931 - resolve-from: 5.0.0
14932 - rollup: 4.43.0
14933 - source-map: 0.7.6
14934 - sucrase: 3.35.0
14935 - tinyexec: 0.3.2
14936 - tinyglobby: 0.2.15
14937 - tree-kill: 1.2.2
14938 - optionalDependencies:
14939 - postcss: 8.5.6
14940 - typescript: 5.9.3
14941 - transitivePeerDependencies:
14942 - - jiti
14943 - - supports-color
14944 - - tsx
14945 - - yaml
14946 -
14683 tsx@4.20.5:
14684 dependencies:
14685 esbuild: 0.25.5
@@ -15036,8 +14772,7 @@ snapshots:
14772 transitivePeerDependencies:
14773 - supports-color
14774
15039 - typescript@5.6.1-rc:
15040 - optional: true
14775 + typescript@5.6.1-rc: {}
14776
14777 typescript@5.9.3: {}
14778
@@ -15076,6 +14811,8 @@ snapshots:
14811 pathe: 2.0.3
14812 ufo: 1.6.1
14813
14814 + unicode-emoji-modifier-base@1.0.0: {}
14815 +
14816 unique-string@3.0.0:
14817 dependencies:
14818 crypto-random-string: 4.0.0
@@ -15106,8 +14843,7 @@ snapshots:
14843
14844 uuid@9.0.1: {}
14845
15109 - validate-npm-package-name@5.0.1:
15110 - optional: true
14846 + validate-npm-package-name@5.0.1: {}
14847
14848 vary@1.1.2: {}
14849
@@ -15531,8 +15267,20 @@ snapshots:
15267 yaml@2.8.1:
15268 optional: true
15269
15270 + yargs-parser@20.2.9: {}
15271 +
15272 yargs-parser@21.1.1: {}
15273
15274 + yargs@16.2.0:
15275 + dependencies:
15276 + cliui: 7.0.4
15277 + escalade: 3.2.0
15278 + get-caller-file: 2.0.5
15279 + require-directory: 2.1.1
15280 + string-width: 4.2.3
15281 + y18n: 5.0.8
15282 + yargs-parser: 20.2.9
15283 +
15284 yargs@17.7.2:
15285 dependencies:
15286 cliui: 8.0.1
pnpm-workspace.yaml
+5 -2
@@ -1,5 +1,7 @@
1 packages:
2 - ts/packages/core
3 + - ts/e2e-tests/runtimes/node/*
4 + - ts/e2e-tests/runtimes/cloudflare/*
5 - ts/packages/cli
6 - ts/packages/json-schema-to-zod
7 - ts/packages/json-schema-to-zod/test/e2e/*
@@ -13,14 +15,15 @@ packages:
15 - fern/snippets/*
16
17 catalog:
18 + '@arethetypeswrong/cli': ^0.18.2
19 '@cloudflare/vitest-pool-workers': ^0.9.2
20 '@cloudflare/workers-types': ^4.20250917.0
21 '@composio/client': 0.1.0-alpha.54
22 '@modelcontextprotocol/sdk': ^1.24.0
23 ai: ^6.0.3
24 openai: ^5.20.3
22 - tsup: ^8.5.0
23 - tsdown: ^0.16.8
25 + publint: ^0.3.16
26 + tsdown: ^0.18.4
27 tsx: ^4.20.5
28 typescript: ^5.9.2
29 uuid: ^13.0.0
ts/e2e-tests/README.md new
+62
@@ -0,0 +1,62 @@
1 +# E2E Tests
2 +
3 +End-to-end tests for `@composio/core` across different JavaScript runtimes.
4 +
5 +## Directory Structure
6 +
7 +```
8 +ts/e2e-tests/
9 +├── _utils/ # Shared test infrastructure
10 +│ ├── Dockerfile.node # Docker image for Node.js tests
11 +│ └── run-docker-test.sh # Generic Docker test runner
12 +└── runtimes/
13 + ├── node/ # Node.js runtime tests
14 + │ ├── cjs-basic/ # CommonJS compatibility tests
15 + │ └── esm-basic/ # ESM compatibility tests
16 + └── cloudflare/ # Cloudflare runtime tests
17 + └── cf-workers-basic/ # Cloudflare Workers tests
18 +```
19 +
20 +## Running Tests
21 +
22 +### All E2E Tests
23 +
24 +```bash
25 +pnpm test:e2e
26 +```
27 +
28 +### Node.js Tests Only
29 +
30 +```bash
31 +pnpm test:e2e:node
32 +```
33 +
34 +Runs Node.js tests in Docker with the default Node.js version (20.19.0).
35 +
36 +To run with a specific Node.js version:
37 +
38 +```bash
39 +COMPOSIO_E2E_NODE_VERSION=22.12.0 pnpm test:e2e:node
40 +```
41 +
42 +### Cloudflare Workers Tests Only
43 +
44 +```bash
45 +pnpm test:e2e:cloudflare
46 +```
47 +
48 +## Adding New Tests
49 +
50 +### Node.js Runtime Tests
51 +
52 +1. Create a new directory under `runtimes/node/` (e.g., `runtimes/node/my-test`)
53 +2. Add a `package.json` with name `@test-e2e/node-my-test`
54 +3. Add `test:e2e` and `test:e2e:node` scripts
55 +4. Create a `run-docker-test.sh` that uses the shared `_utils/run-docker-test.sh`
56 +
57 +### Cloudflare Runtime Tests
58 +
59 +1. Create a new directory under `runtimes/cloudflare/` (e.g., `runtimes/cloudflare/my-test`)
60 +2. Add a `package.json` with name `@test-e2e/cf-my-test`
61 +3. Add `test:e2e` and `test:e2e:cloudflare` scripts
62 +4. Configure vitest with `@cloudflare/vitest-pool-workers`
ts/e2e-tests/_utils/Dockerfile.node new
+38
@@ -0,0 +1,38 @@
1 +# Reusable Dockerfile for Node.js e2e tests
2 +# Usage: docker build -f Dockerfile.node --build-arg NODE_VERSION=20.19.0 --build-arg TEST_DIR=... --build-arg TEST_CMD="node test.cjs" -t test-name .
3 +ARG NODE_VERSION=20.19.0
4 +
5 +FROM node:${NODE_VERSION}-slim
6 +
7 +ENV PNPM_HOME="/pnpm"
8 +ENV PATH="$PNPM_HOME:$PATH"
9 +
10 +WORKDIR /app
11 +
12 +# Install corepack to use pnpm.
13 +# See: https://vercel.com/kb/guide/corepack-errors-github-actions.
14 +RUN npm i -g corepack@latest && corepack enable
15 +
16 +# Copy pnpm workspace files
17 +COPY pnpm-lock.yaml pnpm-workspace.yaml .pnpmfile.cjs package.json tsconfig.base.json tsdown.config.base.ts ./
18 +
19 +# Copy all ts/packages (pre-built)
20 +COPY ts/packages/ ./ts/packages/
21 +
22 +# Copy e2e tests
23 +COPY ts/e2e-tests/ ./ts/e2e-tests/
24 +
25 +# Install dependencies using pnpm
26 +# Note: We intentionally don't use --mount=type=cache for the pnpm store here
27 +# because it causes native binding issues (e.g., rolldown-binding) across builds
28 +RUN pnpm install --frozen-lockfile
29 +
30 +# Test directory (relative to /app)
31 +ARG TEST_DIR
32 +WORKDIR /app/${TEST_DIR}
33 +
34 +# Command to run the test (e.g., "node test.cjs", "node test.mjs", "pnpm test")
35 +ARG TEST_CMD="echo 'No TEST_CMD specified'"
36 +ENV TEST_CMD=${TEST_CMD}
37 +
38 +CMD ["sh", "-c", "${TEST_CMD}"]
ts/e2e-tests/_utils/README.md new
+33
@@ -0,0 +1,33 @@
1 +# E2E Test Utilities
2 +
3 +Shared infrastructure for running `@composio/core` end-to-end tests in isolated environments.
4 +
5 +## What's Here
6 +
7 +| File | Purpose |
8 +| -------------------- | ---------------------------------------------------- |
9 +| `run-docker-test.sh` | Generic Docker-based test runner |
10 +| `Dockerfile.node` | Multi-stage Dockerfile for Node.js test environments |
11 +
12 +## Usage
13 +
14 +```bash
15 +./run-docker-test.sh \
16 + --name "my-test" \
17 + --dir "ts/e2e-tests/runtimes/node/my-suite" \
18 + --cmd "node test.js" \
19 + --node "20.19.0"
20 +```
21 +
22 +### Arguments
23 +
24 +| Argument | Short | Required | Default | Description |
25 +| -------- | ----- | -------- | ----------- | --------------------------------------- |
26 +| `--name` | `-n` | Yes | — | Docker image name |
27 +| `--dir` | `-d` | Yes | — | Test directory (relative to repo root) |
28 +| `--cmd` | `-c` | No | `pnpm test` | Command to execute inside the container |
29 +| `--node` | — | No | `20.19.0` | Node.js version |
30 +
31 +## Behavior
32 +
33 +Builds an isolated Docker container and runs the test command inside it. Docker is required.
ts/e2e-tests/_utils/run-docker-test.sh new
+94
@@ -0,0 +1,94 @@
1 +#!/bin/bash
2 +# Reusable Docker test runner for e2e tests
3 +#
4 +# Usage:
5 +# run-docker-test.sh --name <name> --dir <dir> --cmd <cmd> [--node <version>]
6 +#
7 +# Arguments:
8 +# --name, -n Name for the Docker image (e.g., "composio-cjs-test")
9 +# --dir, -d Relative path from repo root to test directory (e.g., "ts/packages/core/test-e2e/node-cjs")
10 +# --cmd, -c Command to run (e.g., "node test.cjs", "node test.mjs", "pnpm test"). Default: "pnpm test"
11 +# --node Node.js version. Default: 20.19.0
12 +#
13 +# Example:
14 +# ./run-docker-test.sh --name "composio-cjs-test" --dir "ts/packages/core/test-e2e/node-cjs" --cmd "node test.cjs" --node "20.17.0"
15 +
16 +set -e
17 +
18 +# Default values
19 +NODE_VERSION="20.19.0"
20 +TEST_NAME=""
21 +TEST_DIR=""
22 +TEST_CMD="pnpm test"
23 +
24 +# Parse named arguments
25 +while [[ $# -gt 0 ]]; do
26 + case $1 in
27 + --name|-n)
28 + TEST_NAME="$2"
29 + shift 2
30 + ;;
31 + --dir|-d)
32 + TEST_DIR="$2"
33 + shift 2
34 + ;;
35 + --cmd|-c)
36 + TEST_CMD="$2"
37 + shift 2
38 + ;;
39 + --node)
40 + NODE_VERSION="$2"
41 + shift 2
42 + ;;
43 + *)
44 + echo "Error: Unknown argument '$1'"
45 + echo "Usage: run-docker-test.sh --name <name> --dir <dir> --cmd <cmd> [--node <version>]"
46 + exit 1
47 + ;;
48 + esac
49 +done
50 +
51 +# Validate required arguments
52 +if [[ -z "$TEST_NAME" ]]; then
53 + echo "Error: --name is required"
54 + exit 1
55 +fi
56 +
57 +if [[ -z "$TEST_DIR" ]]; then
58 + echo "Error: --dir is required"
59 + exit 1
60 +fi
61 +
62 +if [[ -z "$TEST_CMD" ]]; then
63 + echo "Error: --cmd is required"
64 + exit 1
65 +fi
66 +
67 +SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
68 +REPO_ROOT="$(cd "$SCRIPT_DIR/../../.." && pwd)"
69 +
70 +echo "🧪 Running Docker e2e test: $TEST_NAME"
71 +echo " Node.js version: $NODE_VERSION"
72 +echo " Test directory: $TEST_DIR"
73 +echo " Test command: $TEST_CMD"
74 +echo ""
75 +
76 +echo "🐳 Building test image..."
77 +
78 +cd "$REPO_ROOT"
79 +
80 +# Build Docker image
81 +docker build \
82 + -f "$SCRIPT_DIR/Dockerfile.node" \
83 + --build-arg NODE_VERSION="$NODE_VERSION" \
84 + --build-arg TEST_DIR="$TEST_DIR" \
85 + --build-arg TEST_CMD="$TEST_CMD" \
86 + -t "$TEST_NAME" \
87 + .
88 +
89 +echo ""
90 +echo "🧪 Running test in Docker container..."
91 +docker run --rm "$TEST_NAME"
92 +
93 +echo ""
94 +echo "✅ Docker test completed successfully!"
ts/e2e-tests/runtimes/cloudflare/cf-workers-basic/.env.example new
+1
@@ -0,0 +1 @@
1 +COMPOSIO_API_KEY=ak_*
ts/e2e-tests/runtimes/cloudflare/cf-workers-basic/README.md new
+50
@@ -0,0 +1,50 @@
1 +# Cloudflare Workers Compatibility Tests
2 +
3 +Verifies that `@composio/core` runs correctly in the Cloudflare Workers runtime environment.
4 +
5 +## Why This Exists
6 +
7 +Cloudflare Workers use a non-Node.js runtime (workerd) with:
8 +
9 +- No native Node.js APIs (unless polyfilled)
10 +- Different module resolution
11 +- Restricted global scope
12 +- Web-standard APIs (Fetch, Request, Response)
13 +
14 +This suite ensures `@composio/core` works in this constrained environment without relying on Node.js-specific features.
15 +
16 +## What It Tests
17 +
18 +| Test | Description |
19 +| ---------------------- | ------------------------------------------------------------------- |
20 +| Import & instantiation | Composio class imports and instantiates without runtime errors |
21 +| Provider setup | OpenAIProvider initializes correctly |
22 +| Tool retrieval | `getTools()` returns valid tool definitions |
23 +| Live API call | Execute a real HackerNews action to verify end-to-end functionality |
24 +| Uses LLMs? | ❌ |
25 +
26 +## Isolation Tool
27 +
28 +- `wrangler`: Cloudflare's CLI that runs a local workerd instance
29 +- `@cloudflare/vitest-pool-workers`: Runs Vitest tests inside the Workers runtime, not Node.js
30 +
31 +This combination provides true runtime isolation—tests execute in the same environment as production Workers.
32 +
33 +## Setup
34 +
35 +1. Copy `.env.example` to `.env` and add your `COMPOSIO_API_KEY`
36 +2. Install dependencies: `pnpm install`
37 +
38 +## Running
39 +
40 +```bash
41 +# Via pnpm (recommended)
42 +pnpm test:e2e
43 +```
44 +
45 +## Configuration
46 +
47 +| File | Purpose |
48 +| ------------------- | ---------------------------------------------------- |
49 +| `wrangler.jsonc` | Worker configuration (bindings, compatibility flags) |
50 +| `vitest.config.mts` | Vitest setup with Workers pool and env bindings |
ts/e2e-tests/runtimes/cloudflare/cf-workers-basic/package.json new
+25
@@ -0,0 +1,25 @@
1 +{
2 + "name": "@test-e2e/cf-workers-basic",
3 + "version": "0.0.0",
4 + "private": true,
5 + "type": "module",
6 + "scripts": {
7 + "test:e2e": "vitest run",
8 + "test:e2e:cloudflare": "vitest run",
9 + "dev": "wrangler dev",
10 + "cf-typegen": "wrangler types"
11 + },
12 + "devDependencies": {
13 + "@cloudflare/vitest-pool-workers": "catalog:",
14 + "@cloudflare/workers-types": "catalog:",
15 + "dotenv": "^16.4.5",
16 + "typescript": "catalog:",
17 + "vitest": "catalog:",
18 + "wrangler": "catalog:"
19 + },
20 + "dependencies": {
21 + "@composio/core": "workspace:*",
22 + "hono": "^4.10.3",
23 + "openai": "^4.94.0"
24 + }
25 +}
ts/e2e-tests/runtimes/cloudflare/cf-workers-basic/src/index.ts new
+168
@@ -0,0 +1,168 @@
1 +/**
2 + * E2E test worker for @composio/core platform compatibility.
3 + * Tests that the platform module correctly resolves to the workerd implementation
4 + * and that basic Composio SDK operations work without runtime errors.
5 + */
6 +import { Composio } from '@composio/core';
7 +import { Hono } from 'hono';
8 +
9 +type Bindings = {
10 + COMPOSIO_API_KEY: string;
11 +};
12 +
13 +const app = new Hono<{ Bindings: Bindings }>();
14 +
15 +/**
16 + * Default route - lists available test endpoints
17 + */
18 +app.get('/', c => {
19 + return c.json({
20 + message: 'Composio Core Platform E2E Test Worker',
21 + endpoints: ['/test/import', '/test/files/upload', '/test/files/download', '/test/hackernews'],
22 + });
23 +});
24 +
25 +/**
26 + * Test: Basic import and instantiation
27 + * Tests that @composio/core can be imported without runtime errors
28 + * and the platform module resolves to workerd.ts in this environment
29 + */
30 +app.get('/test/import', c => {
31 + try {
32 + const composio = new Composio({
33 + apiKey: 'test-api-key', // Dummy key for instantiation test
34 + });
35 +
36 + return c.json({
37 + success: true,
38 + message: 'Composio SDK imported and instantiated successfully',
39 + hasProvider: typeof composio.provider !== 'undefined',
40 + hasTools: typeof composio.tools !== 'undefined',
41 + });
42 + } catch (error) {
43 + return c.json(
44 + {
45 + success: false,
46 + error: error instanceof Error ? error.message : String(error),
47 + stack: error instanceof Error ? error.stack : undefined,
48 + },
49 + { status: 500 }
50 + );
51 + }
52 +});
53 +
54 +/**
55 + * Test: Files upload operation (should fail in Cloudflare Workers)
56 + * Tests that files.upload() throws an appropriate error in edge runtimes
57 + */
58 +app.get('/test/files/upload', async c => {
59 + try {
60 + const composio = new Composio({
61 + apiKey: c.env.COMPOSIO_API_KEY,
62 + });
63 +
64 + // Attempt to call files.upload - should throw an error
65 + await composio.files.upload({
66 + file: 'https://example.com/test.pdf',
67 + toolSlug: 'test-tool',
68 + toolkitSlug: 'test-toolkit',
69 + });
70 +
71 + // If we get here, the test failed - upload should have thrown
72 + return c.json(
73 + {
74 + success: false,
75 + error: 'Expected files.upload() to throw an error in Cloudflare Workers, but it did not',
76 + },
77 + { status: 500 }
78 + );
79 + } catch (error) {
80 + const errorMessage = error instanceof Error ? error.message : String(error);
81 + const isExpectedError = errorMessage.includes('not supported in Cloudflare Workers');
82 +
83 + return c.json({
84 + success: isExpectedError,
85 + message: isExpectedError
86 + ? 'files.upload() correctly throws an error in Cloudflare Workers'
87 + : 'files.upload() threw an unexpected error',
88 + error: errorMessage,
89 + });
90 + }
91 +});
92 +
93 +/**
94 + * Test: Files download operation (should fail in Cloudflare Workers)
95 + * Tests that files.download() throws an appropriate error in edge runtimes
96 + */
97 +app.get('/test/files/download', async c => {
98 + try {
99 + const composio = new Composio({
100 + apiKey: c.env.COMPOSIO_API_KEY,
101 + });
102 +
103 + // Attempt to call files.download - should throw an error
104 + await composio.files.download({
105 + s3Url: 'https://s3.example.com/test.pdf',
106 + toolSlug: 'test-tool',
107 + mimeType: 'application/pdf',
108 + });
109 +
110 + // If we get here, the test failed - download should have thrown
111 + return c.json(
112 + {
113 + success: false,
114 + error: 'Expected files.download() to throw an error in Cloudflare Workers, but it did not',
115 + },
116 + { status: 500 }
117 + );
118 + } catch (error) {
119 + const errorMessage = error instanceof Error ? error.message : String(error);
120 + const isExpectedError = errorMessage.includes('not supported in Cloudflare Workers');
121 +
122 + return c.json({
123 + success: isExpectedError,
124 + message: isExpectedError
125 + ? 'files.download() correctly throws an error in Cloudflare Workers'
126 + : 'files.download() threw an unexpected error',
127 + error: errorMessage,
128 + });
129 + }
130 +});
131 +
132 +/**
133 + * Test: Hackernews user lookup
134 + * Tests that we can resolve who the 'pg' user is from Hackernews
135 + * using the HACKERNEWS_GET_USER tool
136 + */
137 +app.get('/test/hackernews', async c => {
138 + try {
139 + const composio = new Composio({
140 + apiKey: c.env.COMPOSIO_API_KEY,
141 + });
142 +
143 + const userDetails = await composio.tools.execute('HACKERNEWS_GET_USER', {
144 + arguments: {
145 + username: 'pg',
146 + },
147 + userId: 'default',
148 + dangerouslySkipVersionCheck: true,
149 + });
150 +
151 + return c.json({
152 + success: true,
153 + message: 'Successfully fetched HackerNews user pg',
154 + data: userDetails.data,
155 + });
156 + } catch (error) {
157 + return c.json(
158 + {
159 + success: false,
160 + error: error instanceof Error ? error.message : String(error),
161 + stack: error instanceof Error ? error.stack : undefined,
162 + },
163 + { status: 500 }
164 + );
165 + }
166 +});
167 +
168 +export default app;
ts/e2e-tests/runtimes/cloudflare/cf-workers-basic/test/platform.spec.ts new
+119
@@ -0,0 +1,119 @@
1 +import { env, createExecutionContext, waitOnExecutionContext } from 'cloudflare:test';
2 +import { describe, it, expect } from 'vitest';
3 +import app from '../src/index';
4 +
5 +const IncomingRequest = Request<unknown, IncomingRequestCfProperties>;
6 +
7 +describe('@composio/core Cloudflare Workers compatibility', () => {
8 + it('should list the available endpoints', async () => {
9 + const request = new IncomingRequest('http://localhost/');
10 + const ctx = createExecutionContext();
11 + const response = await app.fetch(request, env, ctx);
12 + await waitOnExecutionContext(ctx);
13 +
14 + expect(response.status).toBe(200);
15 +
16 + const body = (await response.json()) as {
17 + message: string;
18 + endpoints: string[];
19 + };
20 +
21 + expect(body.message).toContain('Composio Core Platform E2E Test Worker');
22 + expect(body.endpoints).toMatchInlineSnapshot(`
23 + [
24 + "/test/import",
25 + "/test/files/upload",
26 + "/test/files/download",
27 + "/test/hackernews",
28 + ]
29 + `);
30 + });
31 +
32 + it('should import and instantiate Composio without runtime errors', async () => {
33 + const request = new IncomingRequest('http://localhost/test/import');
34 + const ctx = createExecutionContext();
35 + const response = await app.fetch(request, env, ctx);
36 + await waitOnExecutionContext(ctx);
37 +
38 + expect(response.status).toBe(200);
39 +
40 + const body = (await response.json()) as {
41 + success: boolean;
42 + message?: string;
43 + error?: string;
44 + hasProvider?: boolean;
45 + hasTools?: boolean;
46 + };
47 +
48 + expect(body.success).toBe(true);
49 + expect(body.message).toContain('successfully');
50 + expect(body.hasProvider).toBe(true);
51 + expect(body.hasTools).toBe(true);
52 + });
53 +
54 + it('should throw an error when calling files.upload() in Cloudflare Workers', async () => {
55 + const request = new IncomingRequest('http://localhost/test/files/upload');
56 + const ctx = createExecutionContext();
57 + const response = await app.fetch(request, env, ctx);
58 + await waitOnExecutionContext(ctx);
59 +
60 + expect(response.status).toBe(200);
61 +
62 + const body = (await response.json()) as {
63 + success: boolean;
64 + message?: string;
65 + error?: string;
66 + };
67 +
68 + expect(body.success).toBe(true);
69 + expect(body.message).toContain('correctly throws an error');
70 + expect(body.error).toContain('not supported in Cloudflare Workers');
71 + });
72 +
73 + it('should throw an error when calling files.download() in Cloudflare Workers', async () => {
74 + const request = new IncomingRequest('http://localhost/test/files/download');
75 + const ctx = createExecutionContext();
76 + const response = await app.fetch(request, env, ctx);
77 + await waitOnExecutionContext(ctx);
78 +
79 + expect(response.status).toBe(200);
80 +
81 + const body = (await response.json()) as {
82 + success: boolean;
83 + message?: string;
84 + error?: string;
85 + };
86 +
87 + expect(body.success).toBe(true);
88 + expect(body.message).toContain('correctly throws an error');
89 + expect(body.error).toContain('not supported in Cloudflare Workers');
90 + });
91 +
92 + it('should fetch HackerNews user pg successfully', async () => {
93 + const request = new IncomingRequest('http://localhost/test/hackernews');
94 + const ctx = createExecutionContext();
95 + const response = await app.fetch(request, env, ctx);
96 + await waitOnExecutionContext(ctx);
97 +
98 + const body = (await response.json()) as {
99 + success: boolean;
100 + message?: string;
101 + error?: string;
102 + data?: {
103 + response_data: {
104 + username: string;
105 + karma: number;
106 + about?: string;
107 + };
108 + };
109 + };
110 +
111 + console.log('HackerNews response:', JSON.stringify(body, null, 2));
112 +
113 + expect(response.status).toBe(200);
114 + expect(body.success).toBe(true);
115 + expect(body.message).toContain('pg');
116 + expect(body.data?.response_data?.username).toBe('pg');
117 + expect(body.data?.response_data?.karma).toBeGreaterThan(0);
118 + });
119 +});
ts/e2e-tests/runtimes/cloudflare/cf-workers-basic/tsconfig.json new
+18
@@ -0,0 +1,18 @@
1 +{
2 + "compilerOptions": {
3 + "target": "es2022",
4 + "lib": ["es2022"],
5 + "module": "es2022",
6 + "moduleResolution": "Bundler",
7 + "resolveJsonModule": true,
8 + "allowJs": true,
9 + "noEmit": true,
10 + "isolatedModules": true,
11 + "allowSyntheticDefaultImports": true,
12 + "forceConsistentCasingInFileNames": true,
13 + "strict": true,
14 + "skipLibCheck": true,
15 + "types": ["@cloudflare/workers-types/2023-07-01"]
16 + },
17 + "include": ["src/**/*.ts", "test/**/*.ts"]
18 +}
ts/e2e-tests/runtimes/cloudflare/cf-workers-basic/vitest.config.mts new
+19
@@ -0,0 +1,19 @@
1 +import { defineWorkersConfig } from '@cloudflare/vitest-pool-workers/config';
2 +import { config } from 'dotenv';
3 +
4 +config();
5 +
6 +export default defineWorkersConfig({
7 + test: {
8 + poolOptions: {
9 + workers: {
10 + wrangler: { configPath: './wrangler.jsonc' },
11 + miniflare: {
12 + bindings: {
13 + COMPOSIO_API_KEY: process.env.COMPOSIO_API_KEY!,
14 + },
15 + },
16 + },
17 + },
18 + },
19 +});
ts/e2e-tests/runtimes/cloudflare/cf-workers-basic/wrangler.jsonc new
+7
@@ -0,0 +1,7 @@
1 +{
2 + "$schema": "node_modules/wrangler/config-schema.json",
3 + "name": "composio-core-platform-test",
4 + "main": "src/index.ts",
5 + "compatibility_date": "2025-01-10",
6 + // "compatibility_flags": ["nodejs_compat"]
7 +}
ts/e2e-tests/runtimes/node/cjs-basic/.gitignore new
+1
@@ -0,0 +1 @@
1 +.docker-context/
ts/e2e-tests/runtimes/node/cjs-basic/README.md new
+41
@@ -0,0 +1,41 @@
1 +# Node.js CommonJS Compatibility Tests
2 +
3 +Verifies that `@composio/core` works correctly when imported via `require()` in CommonJS environments.
4 +
5 +## Why This Exists
6 +
7 +Many Node.js projects still use CommonJS. This suite ensures:
8 +
9 +- `require('@composio/core')` resolves without errors
10 +- All public exports are accessible
11 +- Classes can be instantiated
12 +- No ESM-only syntax leaks into CJS builds
13 +
14 +## What It Tests
15 +
16 +| Test | Description |
17 +| --------------------- | ----------------------------------------- |
18 +| Basic require | `require('@composio/core')` doesn't throw |
19 +| Composio class | Main class is exported and constructible |
20 +| OpenAIProvider | Provider class exports and instantiation |
21 +| AuthScheme | Auth enum is accessible |
22 +| ComposioError | Error classes are exported |
23 +| jsonSchemaToZodSchema | Utility function is exported |
24 +| constants | Constants namespace is accessible |
25 +| logger | Logger instance is exported |
26 +| Uses LLMs? | ❌ |
27 +
28 +## Isolation Tool
29 +
30 +**Docker** with specific Node.js versions (20.17.0, 20.19.0)
31 +
32 +This ensures tests run against exact Node.js versions independent of the developer's local setup, catching version-specific module resolution issues.
33 +
34 +## Running
35 +
36 +```bash
37 +# Via pnpm (recommended)
38 +pnpm test:e2e
39 +```
40 +
41 +The test runs on different Node.js versions (20.17.0 and 20.19.0) to catch regressions across versions.
ts/e2e-tests/runtimes/node/cjs-basic/package.json new
+12
@@ -0,0 +1,12 @@
1 +{
2 + "name": "@test-e2e/node-cjs-basic",
3 + "version": "0.0.0",
4 + "private": true,
5 + "scripts": {
6 + "test:e2e": "bash run-docker-test.sh",
7 + "test:e2e:node": "bash run-docker-test.sh"
8 + },
9 + "devDependencies": {
10 + "@composio/core": "workspace:*"
11 + }
12 +}
ts/e2e-tests/runtimes/node/cjs-basic/run-docker-test.sh new
+16
@@ -0,0 +1,16 @@
1 +#!/bin/bash
2 +# CJS compatibility e2e test runner
3 +# Uses shared Docker test infrastructure from _utils/
4 +
5 +set -e
6 +
7 +SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
8 +UTILS_DIR="$SCRIPT_DIR/../../../_utils"
9 +
10 +NODE_VERSION="${COMPOSIO_E2E_NODE_VERSION:-20.19.0}"
11 +
12 +"$UTILS_DIR/run-docker-test.sh" \
13 + --name "composio-cjs-test-${NODE_VERSION}" \
14 + --dir "ts/e2e-tests/runtimes/node/cjs-basic" \
15 + --cmd "node test.cjs" \
16 + --node "$NODE_VERSION"
ts/e2e-tests/runtimes/node/cjs-basic/test.cjs new
+77
@@ -0,0 +1,77 @@
1 +/**
2 + * CommonJS compatibility test for @composio/core
3 + * This test verifies that the package can be imported using require() in Node.js
4 + */
5 +
6 +'use strict';
7 +
8 +const assert = require('node:assert');
9 +
10 +console.log('🧪 Testing CommonJS compatibility for @composio/core...\n');
11 +
12 +// Test 1: Basic require() works
13 +console.log('Test 1: require("@composio/core") should not throw...');
14 +let composioModule;
15 +try {
16 + composioModule = require('@composio/core');
17 + console.log('✅ Test 1 passed: require() succeeded\n');
18 +} catch (error) {
19 + console.error('❌ Test 1 failed: require() threw an error');
20 + console.error(error);
21 + process.exit(1);
22 +}
23 +
24 +// Test 2: Composio class is exported
25 +console.log('Test 2: Composio class should be exported...');
26 +assert.ok(composioModule.Composio, 'Composio class should be exported');
27 +assert.strictEqual(typeof composioModule.Composio, 'function', 'Composio should be a constructor');
28 +console.log('✅ Test 2 passed: Composio class is exported\n');
29 +
30 +// Test 3: OpenAIProvider class is exported
31 +console.log('Test 3: OpenAIProvider class should be exported...');
32 +assert.ok(composioModule.OpenAIProvider, 'OpenAIProvider class should be exported');
33 +assert.strictEqual(typeof composioModule.OpenAIProvider, 'function', 'OpenAIProvider should be a constructor');
34 +console.log('✅ Test 3 passed: OpenAIProvider class is exported\n');
35 +
36 +// Test 4: Can instantiate OpenAIProvider (doesn't require API key)
37 +console.log('Test 4: OpenAIProvider should be instantiable...');
38 +try {
39 + const provider = new composioModule.OpenAIProvider();
40 + assert.ok(provider, 'Provider instance should exist');
41 + console.log('✅ Test 4 passed: OpenAIProvider instantiated successfully\n');
42 +} catch (error) {
43 + console.error('❌ Test 4 failed: Could not instantiate OpenAIProvider');
44 + console.error(error);
45 + process.exit(1);
46 +}
47 +
48 +// Test 5: AuthScheme is exported
49 +console.log('Test 5: AuthScheme should be exported...');
50 +assert.ok(composioModule.AuthScheme, 'AuthScheme should be exported');
51 +console.log('✅ Test 5 passed: AuthScheme is exported\n');
52 +
53 +// Test 6: Error classes are exported
54 +console.log('Test 6: Error classes should be exported...');
55 +assert.ok(composioModule.ComposioError, 'ComposioError should be exported');
56 +console.log('✅ Test 6 passed: Error classes are exported\n');
57 +
58 +// Test 7: jsonSchemaToZodSchema utility is exported
59 +console.log('Test 7: jsonSchemaToZodSchema should be exported...');
60 +assert.ok(composioModule.jsonSchemaToZodSchema, 'jsonSchemaToZodSchema should be exported');
61 +assert.strictEqual(typeof composioModule.jsonSchemaToZodSchema, 'function', 'jsonSchemaToZodSchema should be a function');
62 +console.log('✅ Test 7 passed: jsonSchemaToZodSchema is exported\n');
63 +
64 +// Test 8: constants namespace is exported
65 +console.log('Test 8: constants namespace should be exported...');
66 +assert.ok(composioModule.constants, 'constants should be exported');
67 +console.log('✅ Test 8 passed: constants namespace is exported\n');
68 +
69 +// Test 9: logger is exported
70 +console.log('Test 9: logger should be exported...');
71 +assert.ok(composioModule.logger, 'logger should be exported');
72 +console.log('✅ Test 9 passed: logger is exported\n');
73 +
74 +console.log('========================================');
75 +console.log('🎉 All CommonJS compatibility tests passed!');
76 +console.log('========================================');
77 +process.exit(0);
ts/e2e-tests/runtimes/node/esm-basic/README.md new
+45
@@ -0,0 +1,45 @@
1 +# Node.js ESM Compatibility Tests
2 +
3 +Verifies that `@composio/core` works correctly when imported via `import` in ES Module environments.
4 +
5 +## Why This Exists
6 +
7 +ESM is the modern JavaScript module standard. This suite ensures:
8 +
9 +- `import('@composio/core')` resolves without errors
10 +- Named imports work (`import { Composio } from '@composio/core'`)
11 +- All public exports are accessible
12 +- No CJS-only patterns break ESM consumers
13 +
14 +## What It Tests
15 +
16 +| Test | Description |
17 +| --------------------- | ---------------------------------------- |
18 +| Dynamic import | `import('@composio/core')` doesn't throw |
19 +| Composio class | Main class is exported and constructible |
20 +| OpenAIProvider | Provider class exports and instantiation |
21 +| AuthScheme | Auth enum is accessible |
22 +| ComposioError | Error classes are exported |
23 +| jsonSchemaToZodSchema | Utility function is exported |
24 +| constants | Constants namespace is accessible |
25 +| logger | Logger instance is exported |
26 +| Named imports | Destructuring imports work correctly |
27 +| Uses LLMs? | ❌ |
28 +
29 +## Isolation Tool
30 +
31 +**Docker** with specific Node.js versions (20.17.0, 20.19.0)
32 +
33 +This ensures tests run against exact Node.js versions independent of the developer's local setup, catching version-specific ESM resolution issues.
34 +
35 +## Running
36 +
37 +```bash
38 +# Via pnpm (recommended)
39 +pnpm test:e2e
40 +
41 +# Direct execution
42 +bash run-docker-test.sh
43 +```
44 +
45 +The test runs on different Node.js versions (20.17.0 and 20.19.0) to catch regressions across versions.
ts/e2e-tests/runtimes/node/esm-basic/package.json new
+13
@@ -0,0 +1,13 @@
1 +{
2 + "name": "@test-e2e/node-esm-basic",
3 + "version": "0.0.0",
4 + "private": true,
5 + "type": "module",
6 + "scripts": {
7 + "test:e2e": "bash run-docker-test.sh",
8 + "test:e2e:node": "bash run-docker-test.sh"
9 + },
10 + "devDependencies": {
11 + "@composio/core": "workspace:*"
12 + }
13 +}
ts/e2e-tests/runtimes/node/esm-basic/run-docker-test.sh new
+16
@@ -0,0 +1,16 @@
1 +#!/bin/bash
2 +# ESM compatibility e2e test runner
3 +# Uses shared Docker test infrastructure from _utils/
4 +
5 +set -e
6 +
7 +SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
8 +UTILS_DIR="$SCRIPT_DIR/../../../_utils"
9 +
10 +NODE_VERSION="${COMPOSIO_E2E_NODE_VERSION:-20.19.0}"
11 +
12 +"$UTILS_DIR/run-docker-test.sh" \
13 + --name "composio-esm-test-${NODE_VERSION}" \
14 + --dir "ts/e2e-tests/runtimes/node/esm-basic" \
15 + --cmd "node test.mjs" \
16 + --node "$NODE_VERSION"
ts/e2e-tests/runtimes/node/esm-basic/test.mjs new
+88
@@ -0,0 +1,88 @@
1 +/**
2 + * ESM compatibility test for @composio/core
3 + * This test verifies that the package can be imported using ESM import syntax in Node.js
4 + */
5 +
6 +import assert from 'node:assert';
7 +
8 +console.log('🧪 Testing ESM compatibility for @composio/core...\n');
9 +
10 +// Test 1: Dynamic import works
11 +console.log('Test 1: import("@composio/core") should not throw...');
12 +let composioModule;
13 +try {
14 + composioModule = await import('@composio/core');
15 + console.log('✅ Test 1 passed: import() succeeded\n');
16 +} catch (error) {
17 + console.error('❌ Test 1 failed: import() threw an error');
18 + console.error(error);
19 + process.exit(1);
20 +}
21 +
22 +// Test 2: Composio class is exported
23 +console.log('Test 2: Composio class should be exported...');
24 +assert.ok(composioModule.Composio, 'Composio class should be exported');
25 +assert.strictEqual(typeof composioModule.Composio, 'function', 'Composio should be a constructor');
26 +console.log('✅ Test 2 passed: Composio class is exported\n');
27 +
28 +// Test 3: OpenAIProvider class is exported
29 +console.log('Test 3: OpenAIProvider class should be exported...');
30 +assert.ok(composioModule.OpenAIProvider, 'OpenAIProvider class should be exported');
31 +assert.strictEqual(typeof composioModule.OpenAIProvider, 'function', 'OpenAIProvider should be a constructor');
32 +console.log('✅ Test 3 passed: OpenAIProvider class is exported\n');
33 +
34 +// Test 4: Can instantiate OpenAIProvider (doesn't require API key)
35 +console.log('Test 4: OpenAIProvider should be instantiable...');
36 +try {
37 + const provider = new composioModule.OpenAIProvider();
38 + assert.ok(provider, 'Provider instance should exist');
39 + console.log('✅ Test 4 passed: OpenAIProvider instantiated successfully\n');
40 +} catch (error) {
41 + console.error('❌ Test 4 failed: Could not instantiate OpenAIProvider');
42 + console.error(error);
43 + process.exit(1);
44 +}
45 +
46 +// Test 5: AuthScheme is exported
47 +console.log('Test 5: AuthScheme should be exported...');
48 +assert.ok(composioModule.AuthScheme, 'AuthScheme should be exported');
49 +console.log('✅ Test 5 passed: AuthScheme is exported\n');
50 +
51 +// Test 6: Error classes are exported
52 +console.log('Test 6: Error classes should be exported...');
53 +assert.ok(composioModule.ComposioError, 'ComposioError should be exported');
54 +console.log('✅ Test 6 passed: Error classes are exported\n');
55 +
56 +// Test 7: jsonSchemaToZodSchema utility is exported
57 +console.log('Test 7: jsonSchemaToZodSchema should be exported...');
58 +assert.ok(composioModule.jsonSchemaToZodSchema, 'jsonSchemaToZodSchema should be exported');
59 +assert.strictEqual(typeof composioModule.jsonSchemaToZodSchema, 'function', 'jsonSchemaToZodSchema should be a function');
60 +console.log('✅ Test 7 passed: jsonSchemaToZodSchema is exported\n');
61 +
62 +// Test 8: constants namespace is exported
63 +console.log('Test 8: constants namespace should be exported...');
64 +assert.ok(composioModule.constants, 'constants should be exported');
65 +console.log('✅ Test 8 passed: constants namespace is exported\n');
66 +
67 +// Test 9: logger is exported
68 +console.log('Test 9: logger should be exported...');
69 +assert.ok(composioModule.logger, 'logger should be exported');
70 +console.log('✅ Test 9 passed: logger is exported\n');
71 +
72 +// Test 10: Static import works (test via re-export)
73 +console.log('Test 10: Static import syntax should work...');
74 +try {
75 + const { Composio, OpenAIProvider } = await import('@composio/core');
76 + assert.ok(Composio, 'Named import Composio should work');
77 + assert.ok(OpenAIProvider, 'Named import OpenAIProvider should work');
78 + console.log('✅ Test 10 passed: Static import syntax works\n');
79 +} catch (error) {
80 + console.error('❌ Test 10 failed: Static import syntax threw an error');
81 + console.error(error);
82 + process.exit(1);
83 +}
84 +
85 +console.log('========================================');
86 +console.log('🎉 All ESM compatibility tests passed!');
87 +console.log('========================================');
88 +process.exit(0);
ts/packages/cli/package.json
+12 -6
@@ -2,7 +2,7 @@
2 "name": "@composio/cli",
3 "version": "0.1.24",
4 "description": "Composio CLI",
5 - "main": "dist/bin.js",
5 + "main": "./dist/bin.mjs",
6 "bin": {
7 "composio": "./dist/composio"
8 },
@@ -14,8 +14,8 @@
14 },
15 "publishConfig": {
16 "access": "public",
17 - "main": "dist/bin.js",
18 - "types": "dist/bin.d.ts"
17 + "main": "dist/bin.mjs",
18 + "types": "dist/bin.d.mts"
19 },
20 "files": [
21 "README.md",
@@ -28,7 +28,7 @@
28 "install:bin": "bun run ./scripts/install-binary.ts ./dist/composio",
29 "mock": "bun run ./scripts/copy-mocks-from-cache.ts",
30 "prebuild": "pnpm run typecheck",
31 - "build": "tsup",
31 + "build": "tsdown",
32 "bin": "./dist/composio",
33 "test": "vitest run",
34 "prepublishOnly": "pnpm run build && pnpm run build:bin",
@@ -53,7 +53,7 @@
53 "@types/decompress": "^4.2.7",
54 "@types/semver": "^7.7.0",
55 "tempy": "^3.1.0",
56 - "tsup": "catalog:",
56 + "tsdown": "catalog:",
57 "tsx": "catalog:",
58 "typescript": "catalog:",
59 "vitest": "catalog:"
@@ -79,5 +79,11 @@
79 "superjson": "^2.2.2",
80 "ts-morph": "^26.0.0"
81 },
82 - "gitHead": "4fae6e54d5c150fba955cc5fa314281da5a1e064"
82 + "gitHead": "4fae6e54d5c150fba955cc5fa314281da5a1e064",
83 + "module": "./dist/bin.mjs",
84 + "types": "./dist/bin.d.mts",
85 + "exports": {
86 + ".": "./dist/bin.mjs",
87 + "./package.json": "./package.json"
88 + }
89 }
ts/packages/cli/tsdown.config.ts new
+15
@@ -0,0 +1,15 @@
1 +import { defineConfig } from 'tsdown';
2 +import { baseConfig } from '../../../tsdown.config.base';
3 +
4 +export default defineConfig({
5 + ...baseConfig,
6 + entry: ['src/bin.ts'],
7 + format: ['esm'],
8 + tsconfig: './tsconfig.src.json',
9 + banner: {
10 + js: '#!/usr/bin/env bun',
11 + },
12 + external: undefined,
13 + publint: undefined,
14 + attw: undefined,
15 +});
ts/packages/cli/tsup.config.ts deleted
-14
@@ -1,14 +0,0 @@
1 -import { defineConfig } from 'tsup';
2 -
3 -export default defineConfig({
4 - entry: ['src/bin.ts'],
5 - format: ['esm'],
6 - dts: true,
7 - clean: true,
8 - minify: false,
9 - outDir: 'dist',
10 - tsconfig: './tsconfig.src.json',
11 - banner: {
12 - js: '#!/usr/bin/env bun',
13 - },
14 -});
ts/packages/core/generated/index.d.ts new
+6
@@ -0,0 +1,6 @@
1 +/**
2 + * Stub file for @composio/core/generated exports.
3 + * Run `composio ts generate` to generate the actual toolkit types.
4 + */
5 +
6 +export declare const Toolkits: {};
ts/packages/core/generated/index.js new
+18
@@ -0,0 +1,18 @@
1 +/**
2 + * Stub file for @composio/core/generated exports.
3 + * Run `composio ts generate` to generate the actual toolkit types.
4 + */
5 +
6 +const ERROR_MESSAGE = `
7 +@composio/core/generated has not been initialized.
8 +Please run \`composio ts generate\` in your project to generate the toolkit types.
9 +`;
10 +
11 +export const Toolkits = new Proxy(
12 + {},
13 + {
14 + get(_, prop) {
15 + throw new Error(ERROR_MESSAGE);
16 + },
17 + }
18 +);
ts/packages/core/package.json
+72 -12
@@ -1,33 +1,95 @@
1 {
2 "name": "@composio/core",
3 + "type": "module",
4 "version": "0.4.0",
5 "description": "",
6 "main": "src/index.ts",
6 - "type": "module",
7 "publishConfig": {
8 "access": "public",
9 "main": "dist/index.mjs",
10 "types": "dist/index.d.mts"
11 },
12 + "imports": {
13 + "#platform": {
14 + "workerd": "./dist/platform/workerd.mjs",
15 + "edge-light": "./dist/platform/workerd.mjs",
16 + "node": {
17 + "import": "./dist/platform/node.mjs",
18 + "require": "./dist/platform/node.cjs"
19 + },
20 + "default": {
21 + "import": "./dist/platform/node.mjs",
22 + "require": "./dist/platform/node.cjs"
23 + }
24 + },
25 + "#files": {
26 + "workerd": "./dist/models/Files.workerd.mjs",
27 + "edge-light": "./dist/models/Files.workerd.mjs",
28 + "node": {
29 + "import": "./dist/models/Files.node.mjs",
30 + "require": "./dist/models/Files.node.cjs"
31 + },
32 + "default": {
33 + "import": "./dist/models/Files.node.mjs",
34 + "require": "./dist/models/Files.node.cjs"
35 + }
36 + }
37 + },
38 "exports": {
39 ".": {
14 - "import": "./dist/index.mjs",
15 - "types": {
16 - "import": "./dist/index.d.mts",
17 - "require": "./dist/index.d.cts",
18 - "default": "./dist/index.d.cts"
40 + "import": {
41 + "types": "./dist/index.d.mts",
42 + "default": "./dist/index.mjs"
43 + },
44 + "require": {
45 + "types": "./dist/index.d.cts",
46 + "default": "./dist/index.cjs"
47 + },
48 + "default": {
49 + "types": "./dist/index.d.cts",
50 + "default": "./dist/index.cjs"
51 + }
52 + },
53 + "./platform": {
54 + "workerd": {
55 + "types": "./dist/platform/workerd.d.mts",
56 + "default": "./dist/platform/workerd.mjs"
57 + },
58 + "edge-light": {
59 + "types": "./dist/platform/workerd.d.mts",
60 + "default": "./dist/platform/workerd.mjs"
61 + },
62 + "node": {
63 + "import": {
64 + "types": "./dist/platform/node.d.mts",
65 + "default": "./dist/platform/node.mjs"
66 + },
67 + "require": {
68 + "types": "./dist/platform/node.d.cts",
69 + "default": "./dist/platform/node.cjs"
70 + }
71 },
20 - "require": "./dist/index.cjs"
72 + "default": {
73 + "import": {
74 + "types": "./dist/platform/node.d.mts",
75 + "default": "./dist/platform/node.mjs"
76 + },
77 + "require": {
78 + "types": "./dist/platform/node.d.cts",
79 + "default": "./dist/platform/node.cjs"
80 + }
81 + }
82 },
83 "./generated": {
23 - "import": "./generated/index.js",
24 - "types": "./generated/index.d.ts"
84 + "types": "./generated/index.d.ts",
85 + "default": "./generated/index.js"
86 }
87 },
88 "files": [
89 "README.md",
90 "dist",
30 - "generated"
91 + "generated",
92 + "src/platform"
93 ],
94 "scripts": {
95 "clean": "git clean -xdf node_modules",
@@ -44,7 +106,6 @@
106 "@type-challenges/utils": "^0.1.1",
107 "@types/semver": "^7.7.0",
108 "tsdown": "catalog:",
47 - "tsup": "catalog:",
109 "tsx": "catalog:",
110 "typedoc": "^0.28.5",
111 "typescript": "catalog:",
@@ -62,7 +123,6 @@
123 "openai": "^5.16.0",
124 "pusher-js": "^8.4.0",
125 "semver": "^7.7.2",
65 - "uuid": "catalog:",
126 "zod-to-json-schema": "catalog:"
127 },
128 "gitHead": "4fae6e54d5c150fba955cc5fa314281da5a1e064"
ts/packages/core/src/composio.ts
+1 -1
@@ -14,7 +14,7 @@ import { checkForLatestVersionFromNPM } from './utils/version';
14 import { OpenAIProvider } from './provider/OpenAIProvider';
15 import { version } from '../package.json';
16 import type { ComposioRequestHeaders } from './types/composio.types';
17 -import { Files } from './models/Files';
17 +import { Files } from '#files';
18 import { getDefaultHeaders } from './utils/session';
19 import { ToolkitVersionParam } from './types/tool.types';
20 import { ToolRouter } from './models/ToolRouter';
ts/packages/core/src/models/Files.node.ts renamed
ts/packages/core/src/models/Files.workerd.ts new
+49
@@ -0,0 +1,49 @@
1 +/**
2 + * @fileoverview Files class stub for Cloudflare Workers / Edge runtimes.
3 + * File upload and download operations are not supported in these environments.
4 + *
5 + * @author Composio Team
6 + * @module Files
7 + */
8 +import ComposioClient from '@composio/client';
9 +
10 +const UNSUPPORTED_MESSAGE =
11 + 'File operations (upload/download) are not supported in Cloudflare Workers or Edge runtimes. ' +
12 + 'These operations require Node.js-specific APIs (Buffer, crypto, file system) that are not available ' +
13 + 'in this environment. Please use a Node.js runtime for file operations.';
14 +
15 +/**
16 + * Creates a Proxy that throws a user-friendly error when any method is accessed.
17 + * This ensures that users get a clear error message when attempting to use
18 + * file operations in unsupported environments.
19 + */
20 +const createUnsupportedFilesProxy = (): Files => {
21 + const handler: ProxyHandler<object> = {
22 + get(_target, prop) {
23 + // Allow access to constructor name for debugging
24 + if (prop === Symbol.toStringTag) {
25 + return 'Files';
26 + }
27 + if (prop === 'constructor') {
28 + return Files;
29 + }
30 + // For any method access, return a function that throws
31 + return () => {
32 + throw new Error(UNSUPPORTED_MESSAGE);
33 + };
34 + },
35 + };
36 +
37 + return new Proxy({}, handler) as Files;
38 +};
39 +
40 +/**
41 + * Files class for Cloudflare Workers / Edge runtimes.
42 + * All methods throw an error indicating that file operations are not supported.
43 + */
44 +export class Files {
45 + constructor(_client: ComposioClient) {
46 + // Return a Proxy instead of the actual instance
47 + return createUnsupportedFilesProxy();
48 + }
49 +}
ts/packages/core/src/platform/index.ts new
+2
@@ -0,0 +1,2 @@
1 +export type { Platform } from './types';
2 +export { platform } from '#platform';
ts/packages/core/src/platform/node.ts new
+51
@@ -0,0 +1,51 @@
1 +import * as fs from 'node:fs';
2 +import * as os from 'node:os';
3 +import * as path from 'node:path';
4 +import type { Platform } from './types';
5 +
6 +/**
7 + * Node.js platform implementation.
8 + * Provides full file system and OS operations using Node.js built-in modules.
9 + */
10 +export const platform: Platform = {
11 + supportsFileSystem: true,
12 +
13 + homedir(): string | null {
14 + try {
15 + return os.homedir();
16 + } catch {
17 + return null;
18 + }
19 + },
20 +
21 + joinPath(...paths: string[]): string {
22 + return path.join(...paths);
23 + },
24 +
25 + basename(filePath: string): string {
26 + return path.basename(filePath);
27 + },
28 +
29 + existsSync(filePath: string): boolean {
30 + return fs.existsSync(filePath);
31 + },
32 +
33 + mkdirSync(dirPath: string): void {
34 + fs.mkdirSync(dirPath, { recursive: true });
35 + },
36 +
37 + readFileSync(filePath: string, encoding?: BufferEncoding): string | Buffer {
38 + if (encoding) {
39 + return fs.readFileSync(filePath, encoding);
40 + }
41 + return fs.readFileSync(filePath);
42 + },
43 +
44 + writeFileSync(filePath: string, content: string | Buffer, encoding?: BufferEncoding): void {
45 + if (encoding && typeof content === 'string') {
46 + fs.writeFileSync(filePath, content, encoding);
47 + } else {
48 + fs.writeFileSync(filePath, content);
49 + }
50 + },
51 +};
ts/packages/core/src/platform/types.ts new
+60
@@ -0,0 +1,60 @@
1 +/**
2 + * Platform abstraction for file system and OS operations.
3 + * This interface allows different implementations for Node.js and edge runtimes (e.g., Cloudflare Workers).
4 + */
5 +export interface Platform {
6 + /**
7 + * Returns the user's home directory path.
8 + * @returns The home directory path, or null if unavailable (e.g., in edge runtimes).
9 + */
10 + homedir(): string | null;
11 +
12 + /**
13 + * Joins path segments into a single path.
14 + * @param paths - Path segments to join.
15 + * @returns The joined path.
16 + */
17 + joinPath(...paths: string[]): string;
18 +
19 + /**
20 + * Returns the last portion of a path (the filename).
21 + * @param filePath - The path to extract the basename from.
22 + * @returns The basename of the path.
23 + */
24 + basename(filePath: string): string;
25 +
26 + /**
27 + * Checks if a file or directory exists at the given path.
28 + * @param filePath - The path to check.
29 + * @returns True if the path exists, false otherwise.
30 + */
31 + existsSync(filePath: string): boolean;
32 +
33 + /**
34 + * Creates a directory at the given path, including parent directories if needed.
35 + * @param dirPath - The directory path to create.
36 + */
37 + mkdirSync(dirPath: string): void;
38 +
39 + /**
40 + * Reads a file synchronously and returns its contents.
41 + * @param filePath - The path to the file.
42 + * @param encoding - Optional encoding (e.g., 'utf8'). If not provided, returns a Buffer.
43 + * @returns The file contents as a string (if encoding provided) or Buffer.
44 + */
45 + readFileSync(filePath: string, encoding?: BufferEncoding): string | Buffer;
46 +
47 + /**
48 + * Writes content to a file synchronously.
49 + * @param filePath - The path to the file.
50 + * @param content - The content to write (string or Buffer).
51 + * @param encoding - Optional encoding for string content.
52 + */
53 + writeFileSync(filePath: string, content: string | Buffer, encoding?: BufferEncoding): void;
54 +
55 + /**
56 + * Indicates whether this platform supports file system operations.
57 + * Edge runtimes like Cloudflare Workers return false.
58 + */
59 + readonly supportsFileSystem: boolean;
60 +}
ts/packages/core/src/platform/workerd.ts new
+57
@@ -0,0 +1,57 @@
1 +import type { Platform } from './types';
2 +
3 +/**
4 + * Cloudflare Workers / Edge runtime platform implementation.
5 + * Provides stub implementations for file system operations that are unavailable in edge runtimes.
6 + * All file system operations gracefully return null/empty values or throw descriptive errors.
7 + */
8 +export const platform: Platform = {
9 + supportsFileSystem: false,
10 +
11 + homedir(): string | null {
12 + // Home directory is not available in edge runtimes
13 + return null;
14 + },
15 +
16 + joinPath(...paths: string[]): string {
17 + // Simple path joining without Node.js path module
18 + return paths
19 + .map((segment, index) => {
20 + if (index === 0) {
21 + return segment.replace(/\/+$/, '');
22 + }
23 + return segment.replace(/^\/+|\/+$/g, '');
24 + })
25 + .filter(Boolean)
26 + .join('/');
27 + },
28 +
29 + basename(filePath: string): string {
30 + // Simple basename extraction without Node.js path module
31 + const segments = filePath.replace(/\/+$/, '').split('/');
32 + return segments[segments.length - 1] || '';
33 + },
34 +
35 + existsSync(_filePath: string): boolean {
36 + // File system is not available in edge runtimes
37 + return false;
38 + },
39 +
40 + mkdirSync(_dirPath: string): void {
41 + // No-op in edge runtimes - directories cannot be created
42 + },
43 +
44 + readFileSync(_filePath: string, _encoding?: BufferEncoding): never {
45 + throw new Error(
46 + 'File system operations are not supported in this runtime environment (Cloudflare Workers/Edge). ' +
47 + 'Use environment variables or external storage services instead.'
48 + );
49 + },
50 +
51 + writeFileSync(_filePath: string, _content: string | Buffer, _encoding?: BufferEncoding): never {
52 + throw new Error(
53 + 'File system operations are not supported in this runtime environment (Cloudflare Workers/Edge). ' +
54 + 'Use environment variables or external storage services instead.'
55 + );
56 + },
57 +};
ts/packages/core/src/types/files.types.ts
+3
@@ -8,5 +8,8 @@ export type FileDownloadData = {
8 name: string;
9 mimeType: string;
10 s3Url: string;
11 + /**
12 + * @todo: actually, this can be null.
13 + */
14 filePath: string;
15 };
ts/packages/core/src/utils/fileUtils.ts
+47 -34
@@ -1,10 +1,10 @@
1 import crypto from 'crypto';
2 -import pathModule from 'path';
2 import ComposioClient from '@composio/client';
3 import { COMPOSIO_DIR, TEMP_FILES_DIRECTORY_NAME } from './constants';
4 import logger from './logger';
5 import { FileDownloadData, FileUploadData } from '../types/files.types';
7 -import { getRandomShortId, getRandomUUID } from './uuid';
6 +import { getRandomShortId } from './uuid';
7 +import { platform } from '#platform';
8
9 // Helper function to get file extension from MIME type
10 const getExtensionFromMimeType = (mimeType: string): string => {
@@ -93,17 +93,22 @@ const generateTimestampedFilename = (extension: string, prefix?: string): string
93 };
94
95 const readFileContent = async (
96 - path: string
96 + filePath: string
97 ): Promise<{ fileName: string; content: string; mimeType: string }> => {
98 try {
99 - const content = require('fs').readFileSync(path);
99 + if (!platform.supportsFileSystem) {
100 + throw new Error('File system operations are not supported in this runtime environment');
101 + }
102 + const content = platform.readFileSync(filePath);
103 return {
101 - fileName: generateTimestampedFilename(path.split('.').pop() || 'txt'),
102 - content: content.toString('base64'),
104 + fileName: generateTimestampedFilename(filePath.split('.').pop() || 'txt'),
105 + content: Buffer.isBuffer(content)
106 + ? content.toString('base64')
107 + : Buffer.from(content).toString('base64'),
108 mimeType: 'application/octet-stream',
109 };
110 } catch (error) {
106 - throw new Error(`Error reading file at ${path}: ${error}`);
111 + throw new Error(`Error reading file at ${filePath}: ${error}`);
112 }
113 };
114
@@ -121,7 +126,7 @@ const readFileContentFromURL = async (
126 // Extract clean filename from URL, removing query parameters
127 const url = new URL(path);
128 const pathname = url.pathname;
124 - let fileName = pathModule.basename(pathname);
129 + let fileName = platform.basename(pathname);
130
131 // If no filename from URL, generate one with appropriate extension
132 if (!fileName || fileName === '/') {
@@ -228,7 +233,7 @@ export const getFileDataAfterUploadingToS3 = async (
233 const fileData = await readFile(file);
234 logger.debug(`Uploading file to S3...`);
235 const s3key = await uploadFileToS3(
231 - pathModule.basename(fileData.fileName),
236 + platform.basename(fileData.fileName),
237 fileData.content,
238 toolSlug,
239 toolkitSlug,
@@ -266,7 +271,11 @@ export const downloadFileFromS3 = async ({
271 name: fileName,
272 mimeType: mimeType,
273 s3Url: s3Url,
269 - filePath: filePath,
274 +
275 + /**
276 + * @todo: fix in follow-up PR.
277 + */
278 + filePath: filePath as string,
279 };
280 };
281
@@ -277,15 +286,13 @@ export const downloadFileFromS3 = async ({
286 */
287 export const getComposioDir = (createDirIfNotExists: boolean = false) => {
288 try {
280 - // eslint-disable-next-line @typescript-eslint/no-require-imports
281 - const os = require('os');
282 - // eslint-disable-next-line @typescript-eslint/no-require-imports
283 - const path = require('path');
284 - // eslint-disable-next-line @typescript-eslint/no-require-imports
285 - const fs = require('fs');
286 - const composioDir = path.join(os.homedir(), COMPOSIO_DIR);
287 - if (createDirIfNotExists && !fs.existsSync(composioDir)) {
288 - fs.mkdirSync(composioDir, { recursive: true });
289 + const homeDir = platform.homedir();
290 + if (!homeDir) {
291 + return null;
292 + }
293 + const composioDir = platform.joinPath(homeDir, COMPOSIO_DIR);
294 + if (createDirIfNotExists && platform.supportsFileSystem && !platform.existsSync(composioDir)) {
295 + platform.mkdirSync(composioDir);
296 }
297 return composioDir;
298 } catch (_error) {
@@ -300,15 +307,17 @@ export const getComposioDir = (createDirIfNotExists: boolean = false) => {
307 */
308 export const getComposioTempFilesDir = (createDirIfNotExists: boolean = false) => {
309 try {
303 - // eslint-disable-next-line @typescript-eslint/no-require-imports
304 - const os = require('os');
305 - // eslint-disable-next-line @typescript-eslint/no-require-imports
306 - const path = require('path');
307 - // eslint-disable-next-line @typescript-eslint/no-require-imports
308 - const fs = require('fs');
309 - const composioFilesDir = path.join(os.homedir(), COMPOSIO_DIR, TEMP_FILES_DIRECTORY_NAME);
310 - if (createDirIfNotExists && !fs.existsSync(composioFilesDir)) {
311 - fs.mkdirSync(composioFilesDir, { recursive: true });
310 + const homeDir = platform.homedir();
311 + if (!homeDir) {
312 + return null;
313 + }
314 + const composioFilesDir = platform.joinPath(homeDir, COMPOSIO_DIR, TEMP_FILES_DIRECTORY_NAME);
315 + if (
316 + createDirIfNotExists &&
317 + platform.supportsFileSystem &&
318 + !platform.existsSync(composioFilesDir)
319 + ) {
320 + platform.mkdirSync(composioFilesDir);
321 }
322 return composioFilesDir;
323 } catch (_error) {
@@ -325,18 +334,22 @@ export const getComposioTempFilesDir = (createDirIfNotExists: boolean = false) =
334 */
335 export const saveFile = (file: string, content: string | Buffer, isTempFile: boolean = false) => {
336 try {
328 - const path = require('path');
329 - // eslint-disable-next-line @typescript-eslint/no-require-imports
330 - const fs = require('fs');
337 + if (!platform.supportsFileSystem) {
338 + logger.debug('File system operations are not supported in this runtime environment');
339 + return null;
340 + }
341 const composioFilesDir = isTempFile ? getComposioTempFilesDir(true) : getComposioDir(true);
332 - const filePath = path.join(composioFilesDir, path.basename(file));
342 + if (!composioFilesDir) {
343 + return null;
344 + }
345 + const filePath = platform.joinPath(composioFilesDir, platform.basename(file));
346
347 logger.info(`Saving file to: ${filePath}`);
348
349 if (Buffer.isBuffer(content)) {
337 - fs.writeFileSync(filePath, content);
350 + platform.writeFileSync(filePath, content);
351 } else {
339 - fs.writeFileSync(filePath, content, 'utf8');
352 + platform.writeFileSync(filePath, content, 'utf8');
353 }
354
355 return filePath;
ts/packages/core/src/utils/sdk.ts
+12 -9
@@ -4,15 +4,16 @@ import { getEnvsWithPrefix, getEnvVariable } from './env';
4 import logger from './logger';
5 import { ComposioError } from '../errors/ComposioError';
6 import { ToolkitVersion, ToolkitVersionParam, ToolkitVersions } from '../types/tool.types';
7 +import { platform } from '#platform';
8
9 // File path helpers
10 export const userDataPath = () => {
11 try {
11 - // eslint-disable-next-line @typescript-eslint/no-require-imports
12 - const path = require('path');
13 - // eslint-disable-next-line @typescript-eslint/no-require-imports
14 - const os = require('os');
15 - return path.join(os.homedir(), COMPOSIO_DIR, USER_DATA_FILE_NAME);
12 + const homeDir = platform.homedir();
13 + if (!homeDir) {
14 + return null;
15 + }
16 + return platform.joinPath(homeDir, COMPOSIO_DIR, USER_DATA_FILE_NAME);
17 } catch (_error) {
18 logger.debug('Environment', `Unable to get user data path`);
19 return null;
@@ -26,10 +27,12 @@ export const userDataPath = () => {
27 */
28 export const getUserDataJson = () => {
29 try {
29 - // eslint-disable-next-line @typescript-eslint/no-require-imports
30 - const fs = require('fs');
31 - const data = fs.readFileSync(userDataPath(), 'utf8');
32 - return JSON.parse(data);
30 + const dataPath = userDataPath();
31 + if (!dataPath || !platform.supportsFileSystem) {
32 + return {};
33 + }
34 + const data = platform.readFileSync(dataPath, 'utf8');
35 + return JSON.parse(data as string);
36 } catch (_error) {
37 logger.debug('Environment', 'No user data file found');
38 return {};
ts/packages/core/src/utils/uuid.ts
+1 -3
@@ -1,7 +1,5 @@
1 -import { v4 as uuidv4 } from 'uuid';
2 -
1 export function getRandomUUID(): string {
4 - return uuidv4();
2 + return globalThis.crypto.randomUUID();
3 }
4
5 export function getRandomShortId(): string {
ts/packages/core/tsconfig.json
+5 -1
@@ -10,7 +10,11 @@
10 "esModuleInterop": true,
11 "moduleResolution": "bundler",
12 "skipLibCheck": true,
13 - "resolveJsonModule": true
13 + "resolveJsonModule": true,
14 + "paths": {
15 + "#platform": ["./src/platform/node.ts", "./src/platform/workerd.ts"],
16 + "#files": ["./src/models/Files.node.ts", "./src/models/Files.workerd.ts"]
17 + }
18 },
19 "include": ["src/**/*.ts"]
20 }
ts/packages/core/tsdown.config.ts
+32 -10
@@ -1,14 +1,36 @@
1 -import { defineConfig } from 'tsdown';
1 +import { defineConfig, UserConfig } from 'tsdown';
2 +import { baseConfig } from '../../../tsdown.config.base';
3
4 export default defineConfig({
4 - entry: ['src/index.ts'],
5 - format: ['esm', 'cjs'],
6 - dts: true,
7 - clean: true,
8 - minify: false,
9 - outDir: 'dist',
10 - tsconfig: './tsconfig.build.json',
11 - onSuccess() {
12 - console.info('🙏 Build succeeded!');
5 + ...baseConfig,
6 + tsconfig: 'tsconfig.build.json',
7 + entry: [
8 + 'src/index.ts',
9 + 'src/platform/node.ts',
10 + 'src/platform/workerd.ts',
11 + 'src/models/Files.node.ts',
12 + 'src/models/Files.workerd.ts',
13 + ],
14 + attw: {
15 + ...baseConfig.attw,
16 + ignoreRules: [
17 + ...(baseConfig.attw?.ignoreRules ?? []),
18 +
19 + /**
20 + * We currently need `"type": "module"` in `@composio/core` package.json because:
21 + * - `@composio/cli` tests rely on it
22 + * - `@composio/cli` users rely on it
23 + * This causes issus with `attw`.
24 + *
25 + * Ideally, we can drop cjs support altogether in `@composio/core`.
26 + * Alternatively, we'd need to modify `composio ts generate` so that it generates .mjs files (and not .js).
27 + */
28 + 'cjs-resolves-to-esm',
29 + ],
30 },
31 + /**
32 + * We don't want to accidentally bundle `node:*` packages (e.g., `node:module`)
33 + * as not all of them are available in Cloudflare Workers / Vercel Edge runtimes.
34 + */
35 + external: [...(baseConfig.external ?? []), '#platform', '#files'],
36 });
ts/packages/core/vitest.config.ts new
+17
@@ -0,0 +1,17 @@
1 +import { defineConfig } from 'vitest/config';
2 +import path from 'node:path';
3 +import { fileURLToPath } from 'node:url';
4 +
5 +const __dirname = path.dirname(fileURLToPath(import.meta.url));
6 +
7 +export default defineConfig({
8 + resolve: {
9 + alias: {
10 + '#platform': path.resolve(__dirname, 'src/platform/node.ts'),
11 + '#files': path.resolve(__dirname, 'src/models/Files.node.ts'),
12 + },
13 + },
14 + test: {
15 + exclude: ['**/node_modules/**', '**/dist/**', '**/test-e2e/**'],
16 + },
17 +});
ts/packages/json-schema-to-zod/package.json
+16 -8
@@ -3,17 +3,25 @@
3 "version": "0.1.19",
4 "description": "",
5 "main": "src/index.ts",
6 - "type": "module",
6 "publishConfig": {
7 "access": "public",
9 - "main": "dist/index.js",
10 - "types": "dist/index.d.ts"
8 + "main": "dist/index.mjs",
9 + "types": "dist/index.d.mts"
10 },
11 "exports": {
12 ".": {
14 - "import": "./dist/index.js",
15 - "types": "./dist/index.d.ts",
16 - "require": "./dist/index.cjs"
13 + "import": {
14 + "types": "./dist/index.d.mts",
15 + "default": "./dist/index.mjs"
16 + },
17 + "require": {
18 + "types": "./dist/index.d.cts",
19 + "default": "./dist/index.cjs"
20 + },
21 + "default": {
22 + "types": "./dist/index.d.cts",
23 + "default": "./dist/index.cjs"
24 + }
25 }
26 },
27 "files": [
@@ -22,7 +30,7 @@
30 ],
31 "scripts": {
32 "clean": "git clean -xdf node_modules",
25 - "build": "tsup",
33 + "build": "tsdown",
34 "test": "vitest run",
35 "typecheck:src": "tsc --noEmit -p ./tsconfig.src.json",
36 "typecheck:test": "tsc --noEmit -p ./tsconfig.test.json",
@@ -35,7 +43,7 @@
43 "devDependencies": {
44 "@types/json-schema": "^7.0.15",
45 "@types/node": "^24.0.1",
38 - "tsup": "catalog:",
46 + "tsdown": "catalog:",
47 "typescript": "catalog:",
48 "vitest": "catalog:",
49 "zod": "catalog:"
ts/packages/json-schema-to-zod/tsdown.config.ts new
+7
@@ -0,0 +1,7 @@
1 +import { defineConfig } from 'tsdown';
2 +import { baseConfig } from '../../../tsdown.config.base';
3 +
4 +export default defineConfig({
5 + ...baseConfig,
6 + tsconfig: 'tsconfig.src.json',
7 +});
ts/packages/json-schema-to-zod/tsup.config.ts deleted
-10
@@ -1,10 +0,0 @@
1 -import { defineConfig } from 'tsup';
2 -
3 -export default defineConfig({
4 - entry: ['src/index.ts'],
5 - format: ['esm', 'cjs'],
6 - dts: true,
7 - clean: true,
8 - minify: false,
9 - outDir: 'dist',
10 -});
ts/packages/json-schema-to-zod/vitest.config.ts new
+8
@@ -0,0 +1,8 @@
1 +import { defineConfig } from 'vitest/config';
2 +
3 +export default defineConfig({
4 + test: {
5 + // Exclude e2e directories - they are separate packages with their own test commands
6 + exclude: ['**/node_modules/**', '**/dist/**', '**/test/e2e/**'],
7 + },
8 +});
ts/packages/providers/anthropic/package.json
+16 -8
@@ -3,17 +3,25 @@
3 "version": "0.4.0",
4 "description": "Non-Agentic Provider for Anthropic in Composio SDK",
5 "main": "src/index.ts",
6 - "type": "module",
6 "publishConfig": {
7 "access": "public",
9 - "main": "dist/index.js",
10 - "types": "dist/index.d.ts"
8 + "main": "dist/index.mjs",
9 + "types": "dist/index.d.mts"
10 },
11 "exports": {
12 ".": {
14 - "import": "./dist/index.js",
15 - "types": "./dist/index.d.ts",
16 - "require": "./dist/index.cjs"
13 + "import": {
14 + "types": "./dist/index.d.mts",
15 + "default": "./dist/index.mjs"
16 + },
17 + "require": {
18 + "types": "./dist/index.d.cts",
19 + "default": "./dist/index.cjs"
20 + },
21 + "default": {
22 + "types": "./dist/index.d.cts",
23 + "default": "./dist/index.cjs"
24 + }
25 }
26 },
27 "files": [
@@ -22,7 +30,7 @@
30 ],
31 "scripts": {
32 "clean": "git clean -xdf node_modules",
25 - "build": "tsup",
33 + "build": "tsdown",
34 "test": "vitest run"
35 },
36 "keywords": [
@@ -40,7 +48,7 @@
48 },
49 "devDependencies": {
50 "@composio/core": "workspace:*",
43 - "tsup": "catalog:",
51 + "tsdown": "catalog:",
52 "typescript": "catalog:",
53 "vitest": "catalog:"
54 }
ts/packages/providers/anthropic/tsdown.config.ts new
+7
@@ -0,0 +1,7 @@
1 +import { defineConfig } from 'tsdown';
2 +import { baseConfig } from '../../../../tsdown.config.base';
3 +
4 +export default defineConfig({
5 + ...baseConfig,
6 + tsconfig: 'tsconfig.json',
7 +});
ts/packages/providers/anthropic/tsup.config.ts deleted
-10
@@ -1,10 +0,0 @@
1 -import { defineConfig } from 'tsup';
2 -
3 -export default defineConfig({
4 - entry: ['src/index.ts'],
5 - format: ['esm', 'cjs'],
6 - dts: true,
7 - clean: true,
8 - minify: false,
9 - outDir: 'dist',
10 -});
ts/packages/providers/claude-agent-sdk/package.json
+16 -8
@@ -3,17 +3,25 @@
3 "version": "0.4.0",
4 "description": "Composio provider for Claude Agent SDK",
5 "main": "src/index.ts",
6 - "type": "module",
6 "publishConfig": {
7 "access": "public",
9 - "main": "dist/index.js",
10 - "types": "dist/index.d.ts"
8 + "main": "dist/index.mjs",
9 + "types": "dist/index.d.mts"
10 },
11 "exports": {
12 ".": {
14 - "import": "./dist/index.js",
15 - "types": "./dist/index.d.ts",
16 - "require": "./dist/index.cjs"
13 + "import": {
14 + "types": "./dist/index.d.mts",
15 + "default": "./dist/index.mjs"
16 + },
17 + "require": {
18 + "types": "./dist/index.d.cts",
19 + "default": "./dist/index.cjs"
20 + },
21 + "default": {
22 + "types": "./dist/index.d.cts",
23 + "default": "./dist/index.cjs"
24 + }
25 }
26 },
27 "files": [
@@ -22,7 +30,7 @@
30 ],
31 "scripts": {
32 "clean": "git clean -xdf node_modules",
25 - "build": "tsup",
33 + "build": "tsdown",
34 "test": "vitest run"
35 },
36 "keywords": [
@@ -46,7 +54,7 @@
54 "devDependencies": {
55 "@composio/core": "workspace:*",
56 "@anthropic-ai/claude-agent-sdk": "^0.1.9",
49 - "tsup": "catalog:",
57 + "tsdown": "catalog:",
58 "typescript": "catalog:",
59 "vitest": "catalog:",
60 "zod": "^3.25.76"
ts/packages/providers/claude-agent-sdk/tsdown.config.ts new
+7
@@ -0,0 +1,7 @@
1 +import { defineConfig } from 'tsdown';
2 +import { baseConfig } from '../../../../tsdown.config.base';
3 +
4 +export default defineConfig({
5 + ...baseConfig,
6 + tsconfig: 'tsconfig.json',
7 +});
ts/packages/providers/claude-agent-sdk/tsup.config.ts deleted
-10
@@ -1,10 +0,0 @@
1 -import { defineConfig } from 'tsup';
2 -
3 -export default defineConfig({
4 - entry: ['src/index.ts'],
5 - format: ['esm', 'cjs'],
6 - dts: true,
7 - clean: true,
8 - minify: false,
9 - outDir: 'dist',
10 -});
ts/packages/providers/cloudflare/package.json
+16 -8
@@ -3,17 +3,25 @@
3 "version": "0.4.0",
4 "description": "",
5 "main": "src/index.ts",
6 - "type": "module",
6 "publishConfig": {
7 "access": "public",
9 - "main": "dist/index.js",
10 - "types": "dist/index.d.ts"
8 + "main": "dist/index.mjs",
9 + "types": "dist/index.d.mts"
10 },
11 "exports": {
12 ".": {
14 - "import": "./dist/index.js",
15 - "types": "./dist/index.d.ts",
16 - "require": "./dist/index.cjs"
13 + "import": {
14 + "types": "./dist/index.d.mts",
15 + "default": "./dist/index.mjs"
16 + },
17 + "require": {
18 + "types": "./dist/index.d.cts",
19 + "default": "./dist/index.cjs"
20 + },
21 + "default": {
22 + "types": "./dist/index.d.cts",
23 + "default": "./dist/index.cjs"
24 + }
25 }
26 },
27 "files": [
@@ -22,7 +30,7 @@
30 ],
31 "scripts": {
32 "clean": "git clean -xdf node_modules",
25 - "build": "tsup",
33 + "build": "tsdown",
34 "test": "vitest run"
35 },
36 "keywords": [],
@@ -35,7 +43,7 @@
43 },
44 "devDependencies": {
45 "@composio/core": "workspace:*",
38 - "tsup": "catalog:",
46 + "tsdown": "catalog:",
47 "typescript": "catalog:",
48 "vitest": "catalog:"
49 },
ts/packages/providers/cloudflare/tsdown.config.ts new
+7
@@ -0,0 +1,7 @@
1 +import { defineConfig } from 'tsdown';
2 +import { baseConfig } from '../../../../tsdown.config.base';
3 +
4 +export default defineConfig({
5 + ...baseConfig,
6 + tsconfig: 'tsconfig.json',
7 +});
ts/packages/providers/cloudflare/tsup.config.ts deleted
-10
@@ -1,10 +0,0 @@
1 -import { defineConfig } from 'tsup';
2 -
3 -export default defineConfig({
4 - entry: ['src/index.ts'],
5 - format: ['esm', 'cjs'],
6 - dts: true,
7 - clean: true,
8 - minify: false,
9 - outDir: 'dist',
10 -});
ts/packages/providers/google/package.json
+16 -8
@@ -3,17 +3,25 @@
3 "version": "0.4.0",
4 "description": "Google GenAI Provider for Composio SDK",
5 "main": "src/index.ts",
6 - "type": "module",
6 "publishConfig": {
7 "access": "public",
9 - "main": "dist/index.js",
10 - "types": "dist/index.d.ts"
8 + "main": "dist/index.mjs",
9 + "types": "dist/index.d.mts"
10 },
11 "exports": {
12 ".": {
14 - "import": "./dist/index.js",
15 - "types": "./dist/index.d.ts",
16 - "require": "./dist/index.cjs"
13 + "import": {
14 + "types": "./dist/index.d.mts",
15 + "default": "./dist/index.mjs"
16 + },
17 + "require": {
18 + "types": "./dist/index.d.cts",
19 + "default": "./dist/index.cjs"
20 + },
21 + "default": {
22 + "types": "./dist/index.d.cts",
23 + "default": "./dist/index.cjs"
24 + }
25 }
26 },
27 "files": [
@@ -22,7 +30,7 @@
30 ],
31 "scripts": {
32 "clean": "git clean -xdf node_modules",
25 - "build": "tsup",
33 + "build": "tsdown",
34 "test": "vitest run"
35 },
36 "keywords": [
@@ -41,7 +49,7 @@
49 },
50 "devDependencies": {
51 "@composio/core": "workspace:*",
44 - "tsup": "catalog:",
52 + "tsdown": "catalog:",
53 "typescript": "catalog:"
54 }
55 }
ts/packages/providers/google/tsdown.config.ts new
+7
@@ -0,0 +1,7 @@
1 +import { defineConfig } from 'tsdown';
2 +import { baseConfig } from '../../../../tsdown.config.base';
3 +
4 +export default defineConfig({
5 + ...baseConfig,
6 + tsconfig: 'tsconfig.json',
7 +});
ts/packages/providers/google/tsup.config.ts deleted
-10
@@ -1,10 +0,0 @@
1 -import { defineConfig } from 'tsup';
2 -
3 -export default defineConfig({
4 - entry: ['src/index.ts'],
5 - format: ['esm', 'cjs'],
6 - dts: true,
7 - clean: true,
8 - minify: false,
9 - outDir: 'dist',
10 -});
ts/packages/providers/langchain/package.json
+16 -8
@@ -3,17 +3,25 @@
3 "version": "0.4.0",
4 "description": "",
5 "main": "dist/index.js",
6 - "type": "module",
6 "publishConfig": {
7 "access": "public",
9 - "main": "dist/index.js",
10 - "types": "dist/index.d.ts"
8 + "main": "dist/index.mjs",
9 + "types": "dist/index.d.mts"
10 },
11 "exports": {
12 ".": {
14 - "import": "./dist/index.js",
15 - "types": "./dist/index.d.ts",
16 - "require": "./dist/index.cjs"
13 + "import": {
14 + "types": "./dist/index.d.mts",
15 + "default": "./dist/index.mjs"
16 + },
17 + "require": {
18 + "types": "./dist/index.d.cts",
19 + "default": "./dist/index.cjs"
20 + },
21 + "default": {
22 + "types": "./dist/index.d.cts",
23 + "default": "./dist/index.cjs"
24 + }
25 }
26 },
27 "files": [
@@ -22,7 +30,7 @@
30 ],
31 "scripts": {
32 "clean": "git clean -xdf node_modules",
25 - "build": "tsup",
33 + "build": "tsdown",
34 "test": "vitest run"
35 },
36 "keywords": [],
@@ -36,7 +44,7 @@
44 "devDependencies": {
45 "@composio/core": "workspace:*",
46 "@langchain/core": "^1.1.4",
39 - "tsup": "catalog:",
47 + "tsdown": "catalog:",
48 "typescript": "catalog:",
49 "vitest": "catalog:",
50 "zod": "catalog:"
ts/packages/providers/langchain/tsdown.config.ts new
+9
@@ -0,0 +1,9 @@
1 +import { defineConfig } from 'tsdown';
2 +import { baseConfig } from '../../../../tsdown.config.base';
3 +
4 +export default defineConfig({
5 + ...baseConfig,
6 + entry: ['src/index.ts'],
7 + outDir: 'dist',
8 + tsconfig: 'tsconfig.json',
9 +});
ts/packages/providers/langchain/tsup.config.ts deleted
-10
@@ -1,10 +0,0 @@
1 -import { defineConfig } from 'tsup';
2 -
3 -export default defineConfig({
4 - entry: ['src/index.ts'],
5 - format: ['esm', 'cjs'],
6 - dts: true,
7 - clean: true,
8 - minify: false,
9 - outDir: 'dist',
10 -});
ts/packages/providers/llamaindex/package.json
+16 -8
@@ -3,17 +3,25 @@
3 "version": "0.4.0",
4 "description": "Agentic Provider for llamaindex in Composio SDK",
5 "main": "src/index.ts",
6 - "type": "module",
6 "publishConfig": {
7 "access": "public",
9 - "main": "dist/index.js",
10 - "types": "dist/index.d.ts"
8 + "main": "dist/index.mjs",
9 + "types": "dist/index.d.mts"
10 },
11 "exports": {
12 ".": {
14 - "import": "./dist/index.js",
15 - "types": "./dist/index.d.ts",
16 - "require": "./dist/index.cjs"
13 + "import": {
14 + "types": "./dist/index.d.mts",
15 + "default": "./dist/index.mjs"
16 + },
17 + "require": {
18 + "types": "./dist/index.d.cts",
19 + "default": "./dist/index.cjs"
20 + },
21 + "default": {
22 + "types": "./dist/index.d.cts",
23 + "default": "./dist/index.cjs"
24 + }
25 }
26 },
27 "files": [
@@ -21,7 +29,7 @@
29 "dist"
30 ],
31 "scripts": {
24 - "build": "tsup",
32 + "build": "tsdown",
33 "test": "vitest run"
34 },
35 "keywords": [
@@ -38,7 +46,7 @@
46 },
47 "devDependencies": {
48 "@composio/core": "workspace:*",
41 - "tsup": "catalog:",
49 + "tsdown": "catalog:",
50 "typescript": "catalog:"
51 }
52 }
ts/packages/providers/llamaindex/tsdown.config.ts new
+7
@@ -0,0 +1,7 @@
1 +import { defineConfig } from 'tsdown';
2 +import { baseConfig } from '../../../../tsdown.config.base';
3 +
4 +export default defineConfig({
5 + ...baseConfig,
6 + tsconfig: 'tsconfig.json',
7 +});
ts/packages/providers/llamaindex/tsup.config.ts deleted
-10
@@ -1,10 +0,0 @@
1 -import { defineConfig } from 'tsup';
2 -
3 -export default defineConfig({
4 - entry: ['src/index.ts'],
5 - format: ['esm', 'cjs'],
6 - dts: true,
7 - clean: true,
8 - minify: false,
9 - outDir: 'dist',
10 -});
ts/packages/providers/mastra/package.json
+16 -8
@@ -3,17 +3,25 @@
3 "version": "0.4.0",
4 "description": "Agentic Provider for mastra in Composio SDK",
5 "main": "src/index.ts",
6 - "type": "module",
6 "publishConfig": {
7 "access": "public",
9 - "main": "dist/index.js",
10 - "types": "dist/index.d.ts"
8 + "main": "dist/index.mjs",
9 + "types": "dist/index.d.mts"
10 },
11 "exports": {
12 ".": {
14 - "import": "./dist/index.js",
15 - "types": "./dist/index.d.ts",
16 - "require": "./dist/index.cjs"
13 + "import": {
14 + "types": "./dist/index.d.mts",
15 + "default": "./dist/index.mjs"
16 + },
17 + "require": {
18 + "types": "./dist/index.d.cts",
19 + "default": "./dist/index.cjs"
20 + },
21 + "default": {
22 + "types": "./dist/index.d.cts",
23 + "default": "./dist/index.cjs"
24 + }
25 }
26 },
27 "files": [
@@ -22,7 +30,7 @@
30 ],
31 "scripts": {
32 "clean": "git clean -xdf node_modules",
25 - "build": "tsup",
33 + "build": "tsdown",
34 "test": "vitest run"
35 },
36 "keywords": [
@@ -40,7 +48,7 @@
48 },
49 "devDependencies": {
50 "@composio/core": "workspace:*",
43 - "tsup": "catalog:",
51 + "tsdown": "catalog:",
52 "typescript": "catalog:",
53 "vitest": "^3.1.4",
54 "zod": "catalog:"
ts/packages/providers/mastra/tsdown.config.ts new
+7
@@ -0,0 +1,7 @@
1 +import { defineConfig } from 'tsdown';
2 +import { baseConfig } from '../../../../tsdown.config.base';
3 +
4 +export default defineConfig({
5 + ...baseConfig,
6 + tsconfig: 'tsconfig.json',
7 +});
ts/packages/providers/mastra/tsup.config.ts deleted
-10
@@ -1,10 +0,0 @@
1 -import { defineConfig } from 'tsup';
2 -
3 -export default defineConfig({
4 - entry: ['src/index.ts'],
5 - format: ['esm', 'cjs'],
6 - dts: true,
7 - clean: true,
8 - minify: false,
9 - outDir: 'dist',
10 -});
ts/packages/providers/openai-agents/package.json
+16 -8
@@ -3,17 +3,25 @@
3 "version": "0.4.0",
4 "description": "",
5 "main": "src/index.ts",
6 - "type": "module",
6 "publishConfig": {
7 "access": "public",
9 - "main": "dist/index.js",
10 - "types": "dist/index.d.ts"
8 + "main": "dist/index.mjs",
9 + "types": "dist/index.d.mts"
10 },
11 "exports": {
12 ".": {
14 - "import": "./dist/index.js",
15 - "types": "./dist/index.d.ts",
16 - "require": "./dist/index.cjs"
13 + "import": {
14 + "types": "./dist/index.d.mts",
15 + "default": "./dist/index.mjs"
16 + },
17 + "require": {
18 + "types": "./dist/index.d.cts",
19 + "default": "./dist/index.cjs"
20 + },
21 + "default": {
22 + "types": "./dist/index.d.cts",
23 + "default": "./dist/index.cjs"
24 + }
25 }
26 },
27 "files": [
@@ -22,7 +30,7 @@
30 ],
31 "scripts": {
32 "clean": "git clean -xdf node_modules",
25 - "build": "tsup",
33 + "build": "tsdown",
34 "test": "vitest run"
35 },
36 "keywords": [],
@@ -37,7 +45,7 @@
45 "devDependencies": {
46 "@composio/core": "workspace:*",
47 "@openai/agents": "^0.1.3",
40 - "tsup": "catalog:",
48 + "tsdown": "catalog:",
49 "typescript": "catalog:",
50 "zod": "catalog:",
51 "vitest": "catalog:"
ts/packages/providers/openai-agents/tsdown.config.ts new
+7
@@ -0,0 +1,7 @@
1 +import { defineConfig } from 'tsdown';
2 +import { baseConfig } from '../../../../tsdown.config.base';
3 +
4 +export default defineConfig({
5 + ...baseConfig,
6 + tsconfig: 'tsconfig.json',
7 +});
ts/packages/providers/openai-agents/tsup.config.ts deleted
-10
@@ -1,10 +0,0 @@
1 -import { defineConfig } from 'tsup';
2 -
3 -export default defineConfig({
4 - entry: ['src/index.ts'],
5 - format: ['esm', 'cjs'],
6 - dts: true,
7 - clean: true,
8 - minify: false,
9 - outDir: 'dist',
10 -});
ts/packages/providers/openai/package.json
+16 -8
@@ -3,17 +3,25 @@
3 "version": "0.4.0",
4 "description": "",
5 "main": "src/index.ts",
6 - "type": "module",
6 "publishConfig": {
7 "access": "public",
9 - "main": "dist/index.js",
10 - "types": "dist/index.d.ts"
8 + "main": "dist/index.mjs",
9 + "types": "dist/index.d.mts"
10 },
11 "exports": {
12 ".": {
14 - "import": "./dist/index.js",
15 - "types": "./dist/index.d.ts",
16 - "require": "./dist/index.cjs"
13 + "import": {
14 + "types": "./dist/index.d.mts",
15 + "default": "./dist/index.mjs"
16 + },
17 + "require": {
18 + "types": "./dist/index.d.cts",
19 + "default": "./dist/index.cjs"
20 + },
21 + "default": {
22 + "types": "./dist/index.d.cts",
23 + "default": "./dist/index.cjs"
24 + }
25 }
26 },
27 "files": [
@@ -22,7 +30,7 @@
30 ],
31 "scripts": {
32 "clean": "git clean -xdf node_modules",
25 - "build": "tsup",
33 + "build": "tsdown",
34 "test": "vitest run"
35 },
36 "keywords": [],
@@ -35,7 +43,7 @@
43 },
44 "devDependencies": {
45 "@composio/core": "workspace:*",
38 - "tsup": "catalog:",
46 + "tsdown": "catalog:",
47 "typescript": "catalog:",
48 "vitest": "catalog:"
49 },
ts/packages/providers/openai/tsdown.config.ts new
+7
@@ -0,0 +1,7 @@
1 +import { defineConfig } from 'tsdown';
2 +import { baseConfig } from '../../../../tsdown.config.base';
3 +
4 +export default defineConfig({
5 + ...baseConfig,
6 + tsconfig: 'tsconfig.json',
7 +});
ts/packages/providers/openai/tsup.config.ts deleted
-10
@@ -1,10 +0,0 @@
1 -import { defineConfig } from 'tsup';
2 -
3 -export default defineConfig({
4 - entry: ['src/index.ts'],
5 - format: ['esm', 'cjs'],
6 - dts: true,
7 - clean: true,
8 - minify: false,
9 - outDir: 'dist',
10 -});
ts/packages/providers/vercel/package.json
+16 -8
@@ -3,17 +3,25 @@
3 "version": "0.4.0",
4 "description": "",
5 "main": "src/index.ts",
6 - "type": "module",
6 "publishConfig": {
7 "access": "public",
9 - "main": "dist/index.js",
10 - "types": "dist/index.d.ts"
8 + "main": "dist/index.mjs",
9 + "types": "dist/index.d.mts"
10 },
11 "exports": {
12 ".": {
14 - "import": "./dist/index.js",
15 - "types": "./dist/index.d.ts",
16 - "require": "./dist/index.cjs"
13 + "import": {
14 + "types": "./dist/index.d.mts",
15 + "default": "./dist/index.mjs"
16 + },
17 + "require": {
18 + "types": "./dist/index.d.cts",
19 + "default": "./dist/index.cjs"
20 + },
21 + "default": {
22 + "types": "./dist/index.d.cts",
23 + "default": "./dist/index.cjs"
24 + }
25 }
26 },
27 "files": [
@@ -22,7 +30,7 @@
30 ],
31 "scripts": {
32 "clean": "git clean -xdf node_modules",
25 - "build": "tsup",
33 + "build": "tsdown",
34 "test": "vitest run"
35 },
36 "keywords": [],
@@ -36,7 +44,7 @@
44 "devDependencies": {
45 "@composio/core": "workspace:*",
46 "ai": "catalog:",
39 - "tsup": "catalog:",
47 + "tsdown": "catalog:",
48 "typescript": "catalog:",
49 "vitest": "catalog:",
50 "zod": "catalog:"
ts/packages/providers/vercel/tsdown.config.ts new
+7
@@ -0,0 +1,7 @@
1 +import { defineConfig } from 'tsdown';
2 +import { baseConfig } from '../../../../tsdown.config.base';
3 +
4 +export default defineConfig({
5 + ...baseConfig,
6 + tsconfig: 'tsconfig.json',
7 +});
ts/packages/providers/vercel/tsup.config.ts deleted
-10
@@ -1,10 +0,0 @@
1 -import { defineConfig } from 'tsup';
2 -
3 -export default defineConfig({
4 - entry: ['src/index.ts'],
5 - format: ['esm', 'cjs'],
6 - dts: true,
7 - clean: true,
8 - minify: false,
9 - outDir: 'dist',
10 -});
ts/packages/ts-builders/package.json
+15 -8
@@ -2,15 +2,22 @@
2 "name": "@composio/ts-builders",
3 "version": "0.1.24",
4 "description": "Fork of @prisma/ts-builders",
5 - "type": "module",
6 - "main": "dist/index.js",
7 - "module": "dist/index.js",
8 - "types": "dist/index.d.ts",
5 + "main": "dist/index.mjs",
6 + "module": "dist/index.mjs",
7 + "types": "dist/index.d.mts",
8 "exports": {
9 ".": {
10 "import": {
12 - "types": "./dist/index.d.ts",
13 - "default": "./dist/index.js"
11 + "types": "./dist/index.d.mts",
12 + "default": "./dist/index.mjs"
13 + },
14 + "require": {
15 + "types": "./dist/index.d.cts",
16 + "default": "./dist/index.cjs"
17 + },
18 + "default": {
19 + "types": "./dist/index.d.cts",
20 + "default": "./dist/index.cjs"
21 }
22 }
23 },
@@ -23,12 +30,12 @@
30 "devDependencies": {
31 "@types/babel__helper-validator-identifier": "^7.15.2",
32 "helper-validator-identifier": "link:@types/@babel/helper-validator-identifier",
26 - "tsup": "catalog:",
33 + "tsdown": "catalog:",
34 "vitest": "catalog:"
35 },
36 "scripts": {
37 "clean": "git clean -xdf node_modules",
31 - "build": "tsup",
38 + "build": "tsdown",
39 "test": "vitest run"
40 },
41 "files": [
ts/packages/ts-builders/tsdown.config.ts new
+7
@@ -0,0 +1,7 @@
1 +import { defineConfig } from 'tsdown';
2 +import { baseConfig } from '../../../tsdown.config.base';
3 +
4 +export default defineConfig({
5 + ...baseConfig,
6 + tsconfig: 'tsconfig.src.json',
7 +});
ts/packages/ts-builders/tsup.config.ts deleted
-11
@@ -1,11 +0,0 @@
1 -import { defineConfig } from 'tsup';
2 -
3 -export default defineConfig({
4 - entry: ['src/index.ts'],
5 - format: ['esm'],
6 - dts: true,
7 - clean: true,
8 - minify: false,
9 - outDir: 'dist',
10 - tsconfig: './tsconfig.src.json',
11 -});
ts/scripts/create-provider.sh
+2 -2
@@ -45,7 +45,7 @@ cat > "$TOOLSET_PATH/package.json" << EOL
45 "dist"
46 ],
47 "scripts": {
48 - "build": "tsup",
48 + "build": "tsdown",
49 "test": "vitest run"
50 },
51 "keywords": ["composio", "provider", "${TOOLSET_NAME}"],
@@ -57,7 +57,7 @@ cat > "$TOOLSET_PATH/package.json" << EOL
57 },
58 "devDependencies": {
59 "@composio/core": "workspace:*",
60 - "tsup": "catalog:",
60 + "tsdown": "catalog:",
61 "typescript": "catalog:"
62 }
63 }
tsdown.config.base.ts new
+98
@@ -0,0 +1,98 @@
1 +import type { UserConfig, OutExtensionContext } from 'tsdown';
2 +
3 +/**
4 + * tsdown config with shared defaults.
5 + * Package-specific options (e.g., entry, outDir, outExtensions) can be overridden by the caller.
6 + * Paths are relative to the closest `tsdown.config.ts` file that imports this config.
7 + */
8 +export const baseConfig = {
9 + /**
10 + * Entry points for the build.
11 + */
12 + entry: ['src/index.ts'],
13 +
14 + /**
15 + * Output directory for the build.
16 + */
17 + outDir: 'dist',
18 + outExtensions: (ctx) => ({
19 + js: isESM(ctx)
20 + ? '.mjs'
21 + : '.cjs',
22 + dts: isESM(ctx)
23 + ? '.d.mts'
24 + : '.d.cts',
25 + }),
26 +
27 + /**
28 + * Configures the output formats for the build.
29 + * - 'esm' generates ESM (ECMAScript Module) output
30 + * - 'cjs' generates lecayse CommonJS output
31 + */
32 + format: ['esm', 'cjs' /* legacy */],
33 +
34 + /**
35 + * Generates TypeScript declaration files (.d.mts, .d.ts)
36 + */
37 + dts: true,
38 +
39 + /**
40 + * Clean `outDir` before each build.
41 + */
42 + clean: true,
43 +
44 + /**
45 + * Compress code to reduce bundle size.
46 + */
47 + minify: false,
48 +
49 + /**
50 + * Target ECMAScript version for the output.
51 + */
52 + target: 'es2022',
53 +
54 + /**
55 + * Callback function to execute after a successful build.
56 + */
57 + onSuccess() {
58 + console.info('🙏 Build succeeded!');
59 + },
60 +
61 + /**
62 + * External dependencies that should not be bundled, but provided by the consumer.
63 + */
64 + external: ['zod', /^node:/],
65 +
66 + /**
67 + * Control how Node.js built-in module imports are handled.
68 + * When true, imports like `fs` are transformed to `node:fs`.
69 + */
70 + nodeProtocol: true,
71 +
72 + /**
73 + * Configuration for @arethetypeswrong/cli.
74 + * Uses '.' entrypoint to check the package root via the exports field,
75 + * since src/index.ts is only used during development and not exported.
76 + * Uses 'node16' profile since packages support both ESM and CJS.
77 + */
78 + attw: {
79 + entrypoints: ['.'],
80 + enabled: true,
81 + level: 'error',
82 + profile: 'node16',
83 + ignoreRules: [/* Node.js 10 only, attw doesn't automatically exclude it despite the selected profile */ 'internal-resolution-error'],
84 + },
85 +
86 + /**
87 + * Configuration for publint.
88 + */
89 + publint: {
90 + enabled: true,
91 + level: 'error',
92 + pack: 'pnpm',
93 + },
94 +} satisfies UserConfig
95 +
96 +function isESM(ctx: OutExtensionContext) {
97 + return ctx.format === 'es'
98 +}
turbo.json deleted
-23
@@ -1,23 +0,0 @@
1 -{
2 - "$schema": "https://turbo.build/schema.json",
3 - "tasks": {
4 - "build": {
5 - "dependsOn": ["^build"],
6 - "outputs": ["dist/"]
7 - },
8 - "test": {
9 - "dependsOn": ["^build"],
10 - "outputs": ["dist/"]
11 - },
12 - "clean": {
13 - "cache": false
14 - },
15 - "typecheck": {
16 - "dependsOn": ["^build"],
17 - "cache": false
18 - },
19 - "//#clean": {
20 - "cache": false
21 - }
22 - }
23 -}
turbo.jsonc new
+46
@@ -0,0 +1,46 @@
1 +{
2 + "$schema": "https://turbo.build/schema.json",
3 + "tasks": {
4 + "build": {
5 + "dependsOn": ["^build"],
6 + "inputs": [
7 + "$TURBO_DEFAULT$",
8 + "tsdown.config.ts",
9 + // for core
10 + "../../../tsdown.config.base.ts",
11 + // for providers
12 + "../../../../tsdown.config.base.ts"
13 + ],
14 + "outputs": ["dist/"]
15 + },
16 + "test": {
17 + "dependsOn": ["^build"],
18 + "outputs": ["dist/"]
19 + },
20 + "test:e2e": {
21 + "dependsOn": ["^build"],
22 + "env": ["COMPOSIO_API_KEY"],
23 + "cache": false
24 + },
25 + "test:e2e:node": {
26 + "dependsOn": ["^build"],
27 + "env": ["COMPOSIO_API_KEY", "COMPOSIO_E2E_NODE_VERSION"],
28 + "cache": false
29 + },
30 + "test:e2e:cloudflare": {
31 + "dependsOn": ["^build"],
32 + "env": ["COMPOSIO_API_KEY"],
33 + "cache": false
34 + },
35 + "clean": {
36 + "cache": false
37 + },
38 + "typecheck": {
39 + "dependsOn": ["^build"],
40 + "cache": false
41 + },
42 + "//#clean": {
43 + "cache": false
44 + }
45 + }
46 +}