Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
TypeScript agentic-aiagentsaiai-agentsaiagentsdeveloper-toolsfunction-callinggpt-4javascriptjsllmllmopsmcppythonremote-mcp-serverssetypescript
feat(ts): support Cloudflare Workers + refactor build pipeline with `tsdown` + introduce e2e tests (#2360)
Alberto Schiabelded64beb7536
diff --git a/.changeset/cloudflare-workers-support.md b/.changeset/cloudflare-workers-support.mdnew file mode 100644index 000000000..fb6bb42ba--- /dev/null+++ b/.changeset/cloudflare-workers-support.md@@ -0,0 +1,5 @@+---+"@composio/core": minor+---++Add Cloudflare Workers compatibility for `@composio/core`, tested end-to-end.diff --git a/.github/workflows/ts.test-e2e.yml b/.github/workflows/ts.test-e2e.ymlnew file mode 100644index 000000000..6383a72df--- /dev/null+++ b/.github/workflows/ts.test-e2e.yml@@ -0,0 +1,98 @@+name: E2E Test Typescript SDK++on:+ push:+ branches: [main, next]+ paths:+ - "ts/**"+ pull_request:+ branches: [main, next]+ paths:+ - "ts/**"+ workflow_dispatch:++jobs:+ # Node.js E2E tests, running in Docker to isolate environment+ test-e2e-node-docker:+ name: E2E Test Node.js (Node ${{ matrix.node-version }})+ runs-on: ubuntu-24.04+ permissions: read-all+ strategy:+ fail-fast: false+ matrix:+ node-version: [+ # may throw ERR_REQUIRE_ESM+ "20.18.0",+ # supports ESM by default+ "20.19.0",+ "22.12.0"+ ]+ env:+ COMPOSIO_API_KEY: ${{ secrets.COMPOSIO_API_KEY }}++ steps:+ - name: Checkout Code+ uses: actions/checkout@v3++ - name: Setup PNPM+ uses: pnpm/action-setup@v4++ - name: Set up Node.js+ uses: actions/setup-node@v3+ with:+ node-version: "20"+ cache: "pnpm"++ - name: Install Dependencies+ run: pnpm install --frozen-lockfile++ - name: Verify API Key+ run: |+ if [ -z "$COMPOSIO_API_KEY" ]; then+ echo "::error::COMPOSIO_API_KEY is not set"+ exit 1+ fi+ echo "✅ COMPOSIO_API_KEY is configured"++ - name: Run Node.js E2E Tests+ run: pnpm run test:e2e:node+ env:+ COMPOSIO_E2E_NODE_VERSION: ${{ matrix.node-version }}++ # Cloudflare Workerd E2E tests+ test-e2e-cloudflare:+ name: E2E Test Cloudflare Workerd+ runs-on: ubuntu-24.04+ permissions: read-all+ env:+ COMPOSIO_API_KEY: ${{ secrets.COMPOSIO_API_KEY }}++ steps:+ - name: Checkout Code+ uses: actions/checkout@v3++ - name: Setup PNPM+ uses: pnpm/action-setup@v4++ - name: Set up Node.js+ uses: actions/setup-node@v3+ with:+ node-version: "22.12.0"+ cache: "pnpm"++ - name: Install Dependencies+ run: pnpm install --frozen-lockfile++ - name: Build+ run: pnpm run build:packages++ - name: Verify API Key+ run: |+ if [ -z "$COMPOSIO_API_KEY" ]; then+ echo "::error::COMPOSIO_API_KEY is not set"+ exit 1+ fi+ echo "✅ COMPOSIO_API_KEY is configured"++ - name: Run Cloudflare Workers E2E Tests+ run: pnpm run test:e2e:cloudflarediff --git a/CLAUDE.md b/CLAUDE.mdindex 015e079a2..936c8f90f 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -165,7 +165,8 @@ CI # CI environment flag- **Error Classes**: `ts/packages/core/src/errors/`- **Examples**: `ts/examples/` and `examples/`- **Documentation**: `ts/docs/` and `fern/`-- **Build Configs**: `turbo.json`, `tsconfig.base.json`+- **Build Configs**: `turbo.jsonc`, `tsconfig.base.json`, `tsdown.config.base.ts`+- **E2E Tests**: `ts/e2e-tests/`## Testing Commands@@ -180,6 +181,39 @@ cd ts/packages/core && pnpm testpnpm test:ui```+### TypeScript E2E Tests++E2E tests for `@composio/core` are located in `ts/e2e-tests/` and test runtime compatibility across different JavaScript environments.++```bash+# Run all e2e tests (Node.js + Cloudflare)+pnpm test:e2e++# Run only Node.js e2e tests (CJS/ESM compatibility, runs in Docker)+pnpm test:e2e:node++# Run only Cloudflare Workers e2e tests+pnpm test:e2e:cloudflare++# Run Node.js tests with a specific Node version+COMPOSIO_E2E_NODE_VERSION=22.12.0 pnpm test:e2e:node+```++**E2E Test Structure:**+```+ts/e2e-tests/+├── _utils/ # Shared Docker infrastructure+├── runtimes/+│ ├── node/ # Node.js runtime tests+│ │ ├── cjs-basic/ # CommonJS compatibility+│ │ └── esm-basic/ # ESM compatibility+│ └── cloudflare/ # Cloudflare runtime tests+│ └── cf-workers-basic/ # Cloudflare Workers tests+└── README.md # E2E test documentation+```++> **Note:** When adding new e2e tests, update `ts/e2e-tests/README.md` with the new test information.+## Common Patterns### Tool Executiondiff --git a/package.json b/package.jsonindex d92c3efe5..fdd5890f8 100644--- a/package.json+++ b/package.json@@ -12,7 +12,10 @@"scripts": {"build": "turbo build","build:packages": "turbo build --filter=./ts/packages/**",- "test": "turbo test --filter=./ts/packages/**",+ "test": "turbo test --filter=./ts/packages/** --filter=!@test-e2e/*",+ "test:e2e": "turbo test:e2e --filter='@test-e2e/*'",+ "test:e2e:node": "turbo test:e2e:node --filter='@test-e2e/node-*'",+ "test:e2e:cloudflare": "turbo test:e2e:cloudflare --filter='@test-e2e/cf-*'","test:ui": "vitest --ui","typecheck": "turbo typecheck --filter=./ts/packages/**","lint": "eslint ts/packages --ext .ts,.tsx",@@ -56,6 +59,7 @@}},"devDependencies": {+ "@arethetypeswrong/cli": "catalog:","@changesets/cli": "^2.29.8","@composio/anthropic": "workspace:*","@composio/core": "workspace:*",@@ -67,8 +71,10 @@"husky": "^9.1.7","lint-staged": "^15.5.1","prettier": "^3.5.3",+ "publint": "catalog:","semver": "^7.7.2","tsx": "catalog:",+ "tsdown": "catalog:","turbo": "^2.5.0","typescript-eslint": "^8.31.0","vitest": "catalog:",diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 77e372939..1dd552ab5 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -6,6 +6,9 @@ settings:catalogs:default:+ '@arethetypeswrong/cli':+ specifier: ^0.18.2+ version: 0.18.2'@cloudflare/vitest-pool-workers':specifier: ^0.9.2version: 0.9.2@@ -21,12 +24,12 @@ catalogs:ai:specifier: ^6.0.3version: 6.0.27+ publint:+ specifier: ^0.3.16+ version: 0.3.16tsdown:- specifier: ^0.16.8- version: 0.16.8- tsup:- specifier: ^8.5.0- version: 8.5.1+ specifier: ^0.18.4+ version: 0.18.4tsx:specifier: ^4.20.5version: 4.20.5@@ -73,6 +76,9 @@ importers:.:devDependencies:+ '@arethetypeswrong/cli':+ specifier: 'catalog:'+ version: 0.18.2'@changesets/cli':specifier: ^2.29.8version: 2.29.8(@types/[email protected])@@ -106,9 +112,15 @@ importers:prettier:specifier: ^3.5.3version: 3.5.3+ publint:+ specifier: 'catalog:'+ version: 0.3.16semver:specifier: ^7.7.2version: 7.7.2+ tsdown:+ specifier: 'catalog:'tsx:specifier: 'catalog:'version: 4.20.5@@ -258,6 +270,49 @@ importers:specifier: 'catalog:'version: 4.37.1(@cloudflare/[email protected])+ ts/e2e-tests/runtimes/cloudflare/cf-workers-basic:+ dependencies:+ '@composio/core':+ specifier: workspace:*+ version: link:../../../../packages/core+ hono:+ specifier: '>=4.10.3'+ version: 4.10.6+ openai:+ specifier: ^4.94.0+ version: 4.104.0([email protected])([email protected])+ devDependencies:+ '@cloudflare/vitest-pool-workers':+ specifier: 'catalog:'+ version: 0.9.2(@cloudflare/[email protected])(@vitest/[email protected])(@vitest/[email protected])([email protected])+ '@cloudflare/workers-types':+ specifier: 'catalog:'+ version: 4.20250917.0+ dotenv:+ specifier: ^16.4.5+ version: 16.6.1+ typescript:+ specifier: 'catalog:'+ version: 5.9.3+ vitest:+ specifier: 'catalog:'+ version: 3.2.4(@types/[email protected])(@types/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected])([email protected])+ wrangler:+ specifier: 'catalog:'+ version: 4.37.1(@cloudflare/[email protected])++ ts/e2e-tests/runtimes/node/cjs-basic:+ devDependencies:+ '@composio/core':+ specifier: workspace:*+ version: link:../../../../packages/core++ ts/e2e-tests/runtimes/node/esm-basic:+ devDependencies:+ '@composio/core':+ specifier: workspace:*+ version: link:../../../../packages/core+ts/examples/anthropic:dependencies:'@anthropic-ai/claude-agent-sdk':@@ -904,9 +959,9 @@ importers:tempy:specifier: ^3.1.0version: 3.1.0- tsup:+ tsdown:specifier: 'catalog:'- version: 8.5.1([email protected])([email protected])([email protected])([email protected])([email protected])tsx:specifier: 'catalog:'version: 4.20.5@@ -940,9 +995,6 @@ importers:semver:specifier: ^7.7.2version: 7.7.2- uuid:- specifier: 'catalog:'- version: 13.0.0zod-to-json-schema:specifier: 'catalog:'version: 3.25.1([email protected])@@ -955,10 +1007,7 @@ importers:version: 7.7.0tsdown:specifier: 'catalog:'- tsup:- specifier: 'catalog:'- version: 8.5.1([email protected])([email protected])([email protected])([email protected])([email protected])tsx:specifier: 'catalog:'version: 4.20.5@@ -983,9 +1032,9 @@ importers:'@types/node':specifier: ^24.0.1version: 24.0.3- tsup:+ tsdown:specifier: 'catalog:'- version: 8.5.1([email protected])([email protected])([email protected])([email protected])([email protected])typescript:specifier: 'catalog:'version: 5.9.3@@ -1037,9 +1086,9 @@ importers:'@composio/core':specifier: workspace:*version: link:../../core- tsup:+ tsdown:specifier: 'catalog:'- version: 8.5.1([email protected])([email protected])([email protected])([email protected])([email protected])typescript:specifier: 'catalog:'version: 5.9.3@@ -1059,9 +1108,9 @@ importers:'@composio/core':specifier: workspace:*version: link:../../core- tsup:+ tsdown:specifier: 'catalog:'- version: 8.5.1([email protected])([email protected])([email protected])([email protected])([email protected])typescript:specifier: 'catalog:'version: 5.9.3@@ -1078,9 +1127,9 @@ importers:'@composio/core':specifier: workspace:*version: link:../../core- tsup:+ tsdown:specifier: 'catalog:'- version: 8.5.1([email protected])([email protected])([email protected])([email protected])([email protected])typescript:specifier: 'catalog:'version: 5.9.3@@ -1097,9 +1146,9 @@ importers:'@composio/core':specifier: workspace:*version: link:../../core- tsup:+ tsdown:specifier: 'catalog:'- version: 8.5.1([email protected])([email protected])([email protected])([email protected])([email protected])typescript:specifier: 'catalog:'version: 5.9.3@@ -1112,9 +1161,9 @@ importers:'@langchain/core':specifier: ^1.1.4version: 1.1.4(@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected]([email protected])([email protected]))- tsup:+ tsdown:specifier: 'catalog:'- version: 8.5.1([email protected])([email protected])([email protected])([email protected])([email protected])typescript:specifier: 'catalog:'version: 5.9.3@@ -1134,9 +1183,9 @@ importers:'@composio/core':specifier: workspace:*version: link:../../core- tsup:+ tsdown:specifier: 'catalog:'- version: 8.5.1([email protected])([email protected])([email protected])([email protected])([email protected])typescript:specifier: 'catalog:'version: 5.9.3@@ -1153,9 +1202,9 @@ importers:'@composio/core':specifier: workspace:*version: link:../../core- tsup:+ tsdown:specifier: 'catalog:'- version: 8.5.1([email protected])([email protected])([email protected])([email protected])([email protected])typescript:specifier: 'catalog:'version: 5.9.3@@ -1175,9 +1224,9 @@ importers:'@composio/core':specifier: workspace:*version: link:../../core- tsup:+ tsdown:specifier: 'catalog:'- version: 8.5.1([email protected])([email protected])([email protected])([email protected])([email protected])typescript:specifier: 'catalog:'version: 5.9.3@@ -1193,9 +1242,9 @@ importers:'@openai/agents':specifier: ^0.1.3- tsup:+ tsdown:specifier: 'catalog:'- version: 8.5.1([email protected])([email protected])([email protected])([email protected])([email protected])typescript:specifier: 'catalog:'version: 5.9.3@@ -1214,9 +1263,9 @@ importers:ai:specifier: 'catalog:'version: 6.0.27([email protected])- tsup:+ tsdown:specifier: 'catalog:'- version: 8.5.1([email protected])([email protected])([email protected])([email protected])([email protected])typescript:specifier: 'catalog:'version: 5.9.3@@ -1239,9 +1288,9 @@ importers:helper-validator-identifier:specifier: link:@types/@babel/helper-validator-identifierversion: link:@types/@babel/helper-validator-identifier- tsup:+ tsdown:specifier: 'catalog:'- version: 8.5.1([email protected])([email protected])([email protected])([email protected])([email protected])vitest:specifier: 'catalog:'version: 3.2.4(@types/[email protected])(@types/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected])([email protected])@@ -1486,6 +1535,11 @@ packages:peerDependencies:'@types/json-schema': ^7.0.15+ '@arethetypeswrong/[email protected]':+ resolution: {integrity: sha512-PcFM20JNlevEDKBg4Re29Rtv2xvjvQZzg7ENnrWFSS0PHgdP2njibVFw+dRUhNkPgNfac9iUqO0ohAXqQL4hbw==}+ engines: {node: '>=20'}+ hasBin: true+'@arethetypeswrong/[email protected]':resolution: {integrity: sha512-GiwTmBFOU1/+UVNqqCGzFJYfBXEytUkiI+iRZ6Qx7KmUVtLm00sYySkfe203C9QtPG11yOz1ZaMek8dT/xnlgg==}engines: {node: '>=20'}@@ -1654,6 +1708,10 @@ packages:'@cloudflare/[email protected]':resolution: {integrity: sha512-Lsn9dZoRYZZCXXHZNa50cMP8kWhQZG9M7WjxNSiXFzC8bk4Wh/0SYYo4YINxEjEt6h2o69LmAhFaJ+qgaJTh8Q==}+ '@colors/[email protected]':+ resolution: {integrity: sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ==}+ engines: {node: '>=0.1.90'}+'@composio/[email protected]':resolution: {integrity: sha512-3whr4XjaMQUTcxmkaePMPeISUEE3NDRmGaf6lHReS9M2t6jiQbuZT3OktBvvw9QHrH+AZPXgaDoH65Hlr4qGWA==}@@ -1804,12 +1862,6 @@ packages:cpu: [ppc64]os: [aix]- '@esbuild/[email protected]':- resolution: {integrity: sha512-GZMB+a0mOMZs4MpDbj8RJp4cw+w1WV5NYD6xzgvzUJ5Ek2jerwfO2eADyI6ExDSUED+1X8aMbegahsJi+8mgpw==}- engines: {node: '>=18'}- cpu: [ppc64]- os: [aix]-'@esbuild/[email protected]':resolution: {integrity: sha512-bBy69pgfhMGtCnwpC/x5QhfxAz/cBgQ9enbtwjf6V9lnPI/hMyT9iWpR1arm0l3kttTr4L0KSLpKmLp/ilKS9A==}engines: {node: '>=18'}@@ -1822,12 +1874,6 @@ packages:cpu: [arm64]os: [android]- '@esbuild/[email protected]':- resolution: {integrity: sha512-pvz8ZZ7ot/RBphf8fv60ljmaoydPU12VuXHImtAs0XhLLw+EXBi2BLe3OYSBslR4rryHvweW5gmkKFwTiFy6KA==}- engines: {node: '>=18'}- cpu: [arm64]- os: [android]-'@esbuild/[email protected]':resolution: {integrity: sha512-QNdQEps7DfFwE3hXiU4BZeOV68HHzYwGd0Nthhd3uCkkEKK7/R6MTgM0P7H7FAs5pU/DIWsviMmEGxEoxIZ+ZQ==}engines: {node: '>=18'}@@ -1840,12 +1886,6 @@ packages:cpu: [arm]os: [android]- '@esbuild/[email protected]':- resolution: {integrity: sha512-DVNI8jlPa7Ujbr1yjU2PfUSRtAUZPG9I1RwW4F4xFB1Imiu2on0ADiI/c3td+KmDtVKNbi+nffGDQMfcIMkwIA==}- engines: {node: '>=18'}- cpu: [arm]- os: [android]-'@esbuild/[email protected]':resolution: {integrity: sha512-TVhdVtQIFuVpIIR282btcGC2oGQoSfZfmBdTip2anCaVYcqWlZXGcdcKIUklfX2wj0JklNYgz39OBqh2cqXvcQ==}engines: {node: '>=18'}@@ -1858,12 +1898,6 @@ packages:cpu: [x64]os: [android]- '@esbuild/[email protected]':- resolution: {integrity: sha512-z8Ank4Byh4TJJOh4wpz8g2vDy75zFL0TlZlkUkEwYXuPSgX8yzep596n6mT7905kA9uHZsf/o2OJZubl2l3M7A==}- engines: {node: '>=18'}- cpu: [x64]- os: [android]-'@esbuild/[email protected]':resolution: {integrity: sha512-Y1giCfM4nlHDWEfSckMzeWNdQS31BQGs9/rouw6Ub91tkK79aIMTH3q9xHvzH8d0wDru5Ci0kWB8b3up/nl16g==}engines: {node: '>=18'}@@ -1876,12 +1910,6 @@ packages:cpu: [arm64]os: [darwin]- '@esbuild/[email protected]':- resolution: {integrity: sha512-davCD2Zc80nzDVRwXTcQP/28fiJbcOwvdolL0sOiOsbwBa72kegmVU0Wrh1MYrbuCL98Omp5dVhQFWRKR2ZAlg==}- engines: {node: '>=18'}- cpu: [arm64]- os: [darwin]-'@esbuild/[email protected]':resolution: {integrity: sha512-CJsry8ZGM5VFVeyUYB3cdKpd/H69PYez4eJh1W/t38vzutdjEjtP7hB6eLKBoOdxcAlCtEYHzQ/PJ/oU9I4u0A==}engines: {node: '>=18'}@@ -1894,12 +1922,6 @@ packages:cpu: [x64]os: [darwin]- '@esbuild/[email protected]':- resolution: {integrity: sha512-ZxtijOmlQCBWGwbVmwOF/UCzuGIbUkqB1faQRf5akQmxRJ1ujusWsb3CVfk/9iZKr2L5SMU5wPBi1UWbvL+VQA==}- engines: {node: '>=18'}- cpu: [x64]- os: [darwin]-'@esbuild/[email protected]':resolution: {integrity: sha512-yYq+39NlTRzU2XmoPW4l5Ifpl9fqSk0nAJYM/V/WUGPEFfek1epLHJIkTQM6bBs1swApjO5nWgvr843g6TjxuQ==}engines: {node: '>=18'}@@ -1912,12 +1934,6 @@ packages:cpu: [arm64]os: [freebsd]- '@esbuild/[email protected]':- resolution: {integrity: sha512-lS/9CN+rgqQ9czogxlMcBMGd+l8Q3Nj1MFQwBZJyoEKI50XGxwuzznYdwcav6lpOGv5BqaZXqvBSiB/kJ5op+g==}- engines: {node: '>=18'}- cpu: [arm64]- os: [freebsd]-'@esbuild/[email protected]':resolution: {integrity: sha512-0FgvOJ6UUMflsHSPLzdfDnnBBVoCDtBTVyn/MrWloUNvq/5SFmh13l3dvgRPkDihRxb77Y17MbqbCAa2strMQQ==}engines: {node: '>=18'}@@ -1930,12 +1946,6 @@ packages:cpu: [x64]os: [freebsd]- '@esbuild/[email protected]':- resolution: {integrity: sha512-tAfqtNYb4YgPnJlEFu4c212HYjQWSO/w/h/lQaBK7RbwGIkBOuNKQI9tqWzx7Wtp7bTPaGC6MJvWI608P3wXYA==}- engines: {node: '>=18'}- cpu: [x64]- os: [freebsd]-'@esbuild/[email protected]':resolution: {integrity: sha512-+89UsQTfXdmjIvZS6nUnOOLoXnkUTB9hR5QAeLrQdzOSWZvNSAXAtcRDHWtqAUtAmv7ZM1WPOOeSxDzzzMogiQ==}engines: {node: '>=18'}@@ -1948,12 +1958,6 @@ packages:cpu: [arm64]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-hYxN8pr66NsCCiRFkHUAsxylNOcAQaxSSkHMMjcpx0si13t1LHFphxJZUiGwojB1a/Hd5OiPIqDdXONia6bhTw==}- engines: {node: '>=18'}- cpu: [arm64]- os: [linux]-'@esbuild/[email protected]':resolution: {integrity: sha512-kro4c0P85GMfFYqW4TWOpvmF8rFShbWGnrLqlzp4X1TNWjRY3JMYUfDCtOxPKOIY8B0WC8HN51hGP4I4hz4AaQ==}engines: {node: '>=18'}@@ -1966,12 +1970,6 @@ packages:cpu: [arm]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-vWfq4GaIMP9AIe4yj1ZUW18RDhx6EPQKjwe7n8BbIecFtCQG4CfHGaHuh7fdfq+y3LIA2vGS/o9ZBGVxIDi9hw==}- engines: {node: '>=18'}- cpu: [arm]- os: [linux]-'@esbuild/[email protected]':resolution: {integrity: sha512-yTEjoapy8UP3rv8dB0ip3AfMpRbyhSN3+hY8mo/i4QXFeDxmiYbEKp3ZRjBKcOP862Ua4b1PDfwlvbuwY7hIGQ==}engines: {node: '>=18'}@@ -1984,12 +1982,6 @@ packages:cpu: [ia32]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-MJt5BRRSScPDwG2hLelYhAAKh9imjHK5+NE/tvnRLbIqUWa+0E9N4WNMjmp/kXXPHZGqPLxggwVhz7QP8CTR8w==}- engines: {node: '>=18'}- cpu: [ia32]- os: [linux]-'@esbuild/[email protected]':resolution: {integrity: sha512-NeqqYkrcGzFwi6CGRGNMOjWGGSYOpqwCjS9fvaUlX5s3zwOtn1qwg1s2iE2svBe4Q/YOG1q6875lcAoQK/F4VA==}engines: {node: '>=18'}@@ -2002,12 +1994,6 @@ packages:cpu: [loong64]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-lugyF1atnAT463aO6KPshVCJK5NgRnU4yb3FUumyVz+cGvZbontBgzeGFO1nF+dPueHD367a2ZXe1NtUkAjOtg==}- engines: {node: '>=18'}- cpu: [loong64]- os: [linux]-'@esbuild/[email protected]':resolution: {integrity: sha512-IcvTlF9dtLrfL/M8WgNI/qJYBENP3ekgsHbYUIzEzq5XJzzVEV/fXY9WFPfEEXmu3ck2qJP8LG/p3Q8f7Zc2Xg==}engines: {node: '>=18'}@@ -2020,12 +2006,6 @@ packages:cpu: [mips64el]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-nlP2I6ArEBewvJ2gjrrkESEZkB5mIoaTswuqNFRv/WYd+ATtUpe9Y09RnJvgvdag7he0OWgEZWhviS1OTOKixw==}- engines: {node: '>=18'}- cpu: [mips64el]- os: [linux]-'@esbuild/[email protected]':resolution: {integrity: sha512-HOy0aLTJTVtoTeGZh4HSXaO6M95qu4k5lJcH4gxv56iaycfz1S8GO/5Jh6X4Y1YiI0h7cRyLi+HixMR+88swag==}engines: {node: '>=18'}@@ -2038,12 +2018,6 @@ packages:cpu: [ppc64]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-C92gnpey7tUQONqg1n6dKVbx3vphKtTHJaNG2Ok9lGwbZil6DrfyecMsp9CrmXGQJmZ7iiVXvvZH6Ml5hL6XdQ==}- engines: {node: '>=18'}- cpu: [ppc64]- os: [linux]-'@esbuild/[email protected]':resolution: {integrity: sha512-i8JUDAufpz9jOzo4yIShCTcXzS07vEgWzyX3NH2G7LEFVgrLEhjwL3ajFE4fZI3I4ZgiM7JH3GQ7ReObROvSUA==}engines: {node: '>=18'}@@ -2056,12 +2030,6 @@ packages:cpu: [riscv64]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-B5BOmojNtUyN8AXlK0QJyvjEZkWwy/FKvakkTDCziX95AowLZKR6aCDhG7LeF7uMCXEJqwa8Bejz5LTPYm8AvA==}- engines: {node: '>=18'}- cpu: [riscv64]- os: [linux]-'@esbuild/[email protected]':resolution: {integrity: sha512-jFnu+6UbLlzIjPQpWCNh5QtrcNfMLjgIavnwPQAfoGx4q17ocOU9MsQ2QVvFxwQoWpZT8DvTLooTvmOQXkO51g==}engines: {node: '>=18'}@@ -2074,12 +2042,6 @@ packages:cpu: [s390x]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-p4bm9+wsPwup5Z8f4EpfN63qNagQ47Ua2znaqGH6bqLlmJ4bx97Y9JdqxgGZ6Y8xVTixUnEkoKSHcpRlDnNr5w==}- engines: {node: '>=18'}- cpu: [s390x]- os: [linux]-'@esbuild/[email protected]':resolution: {integrity: sha512-6e0cvXwzOnVWJHq+mskP8DNSrKBr1bULBvnFLpc1KY+d+irZSgZ02TGse5FsafKS5jg2e4pbvK6TPXaF/A6+CA==}engines: {node: '>=18'}@@ -2092,12 +2054,6 @@ packages:cpu: [x64]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-uwp2Tip5aPmH+NRUwTcfLb+W32WXjpFejTIOWZFw/v7/KnpCDKG66u4DLcurQpiYTiYwQ9B7KOeMJvLCu/OvbA==}- engines: {node: '>=18'}- cpu: [x64]- os: [linux]-'@esbuild/[email protected]':resolution: {integrity: sha512-vUnkBYxZW4hL/ie91hSqaSNjulOnYXE1VSLusnvHg2u3jewJBz3YzB9+oCw8DABeVqZGg94t9tyZFoHma8gWZQ==}engines: {node: '>=18'}@@ -2110,12 +2066,6 @@ packages:cpu: [arm64]os: [netbsd]- '@esbuild/[email protected]':- resolution: {integrity: sha512-Kj6DiBlwXrPsCRDeRvGAUb/LNrBASrfqAIok+xB0LxK8CHqxZ037viF13ugfsIpePH93mX7xfJp97cyDuTZ3cw==}- engines: {node: '>=18'}- cpu: [arm64]- os: [netbsd]-'@esbuild/[email protected]':resolution: {integrity: sha512-XAg8pIQn5CzhOB8odIcAm42QsOfa98SBeKUdo4xa8OvX8LbMZqEtgeWE9P/Wxt7MlG2QqvjGths+nq48TrUiKw==}engines: {node: '>=18'}@@ -2128,12 +2078,6 @@ packages:cpu: [x64]os: [netbsd]- '@esbuild/[email protected]':- resolution: {integrity: sha512-HwGDZ0VLVBY3Y+Nw0JexZy9o/nUAWq9MlV7cahpaXKW6TOzfVno3y3/M8Ga8u8Yr7GldLOov27xiCnqRZf0tCA==}- engines: {node: '>=18'}- cpu: [x64]- os: [netbsd]-'@esbuild/[email protected]':resolution: {integrity: sha512-Ct2WcFEANlFDtp1nVAXSNBPDxyU+j7+tId//iHXU2f/lN5AmO4zLyhDcpR5Cz1r08mVxzt3Jpyt4PmXQ1O6+7A==}engines: {node: '>=18'}@@ -2146,12 +2090,6 @@ packages:cpu: [arm64]os: [openbsd]- '@esbuild/[email protected]':- resolution: {integrity: sha512-DNIHH2BPQ5551A7oSHD0CKbwIA/Ox7+78/AWkbS5QoRzaqlev2uFayfSxq68EkonB+IKjiuxBFoV8ESJy8bOHA==}- engines: {node: '>=18'}- cpu: [arm64]- os: [openbsd]-'@esbuild/[email protected]':resolution: {integrity: sha512-xAGGhyOQ9Otm1Xu8NT1ifGLnA6M3sJxZ6ixylb+vIUVzvvd6GOALpwQrYrtlPouMqd/vSbgehz6HaVk4+7Afhw==}engines: {node: '>=18'}@@ -2164,18 +2102,6 @@ packages:cpu: [x64]os: [openbsd]- '@esbuild/[email protected]':- resolution: {integrity: sha512-/it7w9Nb7+0KFIzjalNJVR5bOzA9Vay+yIPLVHfIQYG/j+j9VTH84aNB8ExGKPU4AzfaEvN9/V4HV+F+vo8OEg==}- engines: {node: '>=18'}- cpu: [x64]- os: [openbsd]-- '@esbuild/[email protected]':- resolution: {integrity: sha512-LRBbCmiU51IXfeXk59csuX/aSaToeG7w48nMwA6049Y4J4+VbWALAuXcs+qcD04rHDuSCSRKdmY63sruDS5qag==}- engines: {node: '>=18'}- cpu: [arm64]- os: [openharmony]-'@esbuild/[email protected]':resolution: {integrity: sha512-Mw+tzy4pp6wZEK0+Lwr76pWLjrtjmJyUB23tHKqEDP74R3q95luY/bXqXZeYl4NYlvwOqoRKlInQialgCKy67Q==}engines: {node: '>=18'}@@ -2188,12 +2114,6 @@ packages:cpu: [x64]os: [sunos]- '@esbuild/[email protected]':- resolution: {integrity: sha512-kMtx1yqJHTmqaqHPAzKCAkDaKsffmXkPHThSfRwZGyuqyIeBvf08KSsYXl+abf5HDAPMJIPnbBfXvP2ZC2TfHg==}- engines: {node: '>=18'}- cpu: [x64]- os: [sunos]-'@esbuild/[email protected]':resolution: {integrity: sha512-AVUP428VQTSddguz9dO9ngb+E5aScyg7nOeJDrF1HPYu555gmza3bDGMPhmVXL8svDSoqPCsCPjb265yG/kLKQ==}engines: {node: '>=18'}@@ -2206,12 +2126,6 @@ packages:cpu: [arm64]os: [win32]- '@esbuild/[email protected]':- resolution: {integrity: sha512-Yaf78O/B3Kkh+nKABUF++bvJv5Ijoy9AN1ww904rOXZFLWVc5OLOfL56W+C8F9xn5JQZa3UX6m+IktJnIb1Jjg==}- engines: {node: '>=18'}- cpu: [arm64]- os: [win32]-'@esbuild/[email protected]':resolution: {integrity: sha512-i1sW+1i+oWvQzSgfRcxxG2k4I9n3O9NRqy8U+uugaT2Dy7kLO9Y7wI72haOahxceMX8hZAzgGou1FhndRldxRg==}engines: {node: '>=18'}@@ -2224,12 +2138,6 @@ packages:cpu: [ia32]os: [win32]- '@esbuild/[email protected]':- resolution: {integrity: sha512-Iuws0kxo4yusk7sw70Xa2E2imZU5HoixzxfGCdxwBdhiDgt9vX9VUCBhqcwY7/uh//78A1hMkkROMJq9l27oLQ==}- engines: {node: '>=18'}- cpu: [ia32]- os: [win32]-'@esbuild/[email protected]':resolution: {integrity: sha512-nOT2vZNw6hJ+z43oP1SPea/G/6AbN6X+bGNhNuq8NtRHy4wsMhw765IKLNmnjek7GvjWBYQ8Q5VBoYTFg9y1UQ==}engines: {node: '>=18'}@@ -2242,12 +2150,6 @@ packages:cpu: [x64]os: [win32]- '@esbuild/[email protected]':- resolution: {integrity: sha512-sRdU18mcKf7F+YgheI/zGf5alZatMUTKj/jNS6l744f9u3WFu4v7twcUI9vu4mknF4Y9aDlblIie0IM+5xxaqQ==}- engines: {node: '>=18'}- cpu: [x64]- os: [win32]-'@eslint-community/[email protected]':resolution: {integrity: sha512-dyybb3AcajC7uha6CvhdVRJqaKyn7w2YKqKyAN37NKYgZT36w+iRb0Dymmc5qEJ549c/S31cMMSFd75bteCpCw==}engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}@@ -3658,12 +3560,12 @@ packages:peerDependencies:'@opentelemetry/api': ^1.1.0+ '@oxc-project/[email protected]':+ resolution: {integrity: sha512-bkiYX5kaXWwUessFRSoXFkGIQTmc6dLGdxuRTrC+h8PSnIdZyuXHHlLAeTmOue5Br/a0/a7dHH0Gca6eXn9MKg==}+'@oxc-project/[email protected]':resolution: {integrity: sha512-QFDRbYfV2LVx8tyqtyiah3jQPUj1mK2+RYwxyFWyGoys6XJnwTdlzO6rdNNHOPorHAu5Uo34oWRKcvNpbJarmQ==}- '@oxc-project/[email protected]':- resolution: {integrity: sha512-LLDEhXB7g1m5J+woRSgfKsFPS3LhR9xRhTeIoEBm5WrkwMxn6eZ0Ld0c0K5eHB57ChZX6I3uSmmLjZ8pcjlRcw==}-'@parcel/[email protected]':resolution: {integrity: sha512-KF8+j9nNbUN8vzOFDpRMsaKBHZ/mcjEjMToVMJOhTozkDonQFFrRcfdLWn6yWKCmJKmdVxSgHiYvTCef4/qcBA==}engines: {node: '>= 10.0.0'}@@ -3811,8 +3713,8 @@ packages:resolution: {integrity: sha512-0EbE8LRbkogtcCXU7liAyC00n9uNG9hJ+eMyHFdUsy9lB/WGqnEBgwjA9q2cyzAVcdTkQqTBBU1XePNnN3OijA==}engines: {node: '>=18.17.0', npm: '>=9.5.0'}- '@rolldown/[email protected]':- resolution: {integrity: sha512-MBGIgysimZPqTDcLXI+i9VveijkP5C3EAncEogXhqfax6YXj1Tr2LY3DVuEOMIjWfMPMhtQSPup4fSTAmgjqIw==}+ '@rolldown/[email protected]':+ resolution: {integrity: sha512-GoOVDy8bjw9z1K30Oo803nSzXJS/vWhFijFsW3kzvZCO8IZwFnNa6pGctmbbJstKl3Fv6UBwyjJQN6msejW0IQ==}engines: {node: ^20.19.0 || >=22.12.0}cpu: [arm64]os: [android]@@ -3823,8 +3725,8 @@ packages:cpu: [arm64]os: [android]- '@rolldown/[email protected]':- resolution: {integrity: sha512-MmKeoLnKu1d9j6r19K8B+prJnIZ7u+zQ+zGQ3YHXGnr41rzE3eqQLovlkvoZnRoxDGPA4ps0pGiwXy6YE3lJyg==}+ '@rolldown/[email protected]':+ resolution: {integrity: sha512-9c4FOhRGpl+PX7zBK5p17c5efpF9aSpTPgyigv57hXf5NjQUaJOOiejPLAtFiKNBIfm5Uu6yFkvLKzOafNvlTw==}engines: {node: ^20.19.0 || >=22.12.0}cpu: [arm64]os: [darwin]@@ -3835,8 +3737,8 @@ packages:cpu: [arm64]os: [darwin]- '@rolldown/[email protected]':- resolution: {integrity: sha512-qpHedvQBmIjT8zdnjN3nWPR2qjQyJttbXniCEKKdHeAbZG9HyNPBUzQF7AZZGwmS9coQKL+hWg9FhWzh2dZ2IA==}+ '@rolldown/[email protected]':+ resolution: {integrity: sha512-6RsB8Qy4LnGqNGJJC/8uWeLWGOvbRL/KG5aJ8XXpSEupg/KQtlBEiFaYU/Ma5Usj1s+bt3ItkqZYAI50kSplBA==}engines: {node: ^20.19.0 || >=22.12.0}cpu: [x64]os: [darwin]@@ -3847,8 +3749,8 @@ packages:cpu: [x64]os: [darwin]- '@rolldown/[email protected]':- resolution: {integrity: sha512-dDp7WbPapj/NVW0LSiH/CLwMhmLwwKb3R7mh2kWX+QW85X1DGVnIEyKh9PmNJjB/+suG1dJygdtdNPVXK1hylg==}+ '@rolldown/[email protected]':+ resolution: {integrity: sha512-uA9kG7+MYkHTbqwv67Tx+5GV5YcKd33HCJIi0311iYBd25yuwyIqvJfBdt1VVB8tdOlyTb9cPAgfCki8nhwTQg==}engines: {node: ^20.19.0 || >=22.12.0}cpu: [x64]os: [freebsd]@@ -3859,8 +3761,8 @@ packages:cpu: [x64]os: [freebsd]- '@rolldown/[email protected]':- resolution: {integrity: sha512-9e4l6vy5qNSliDPqNfR6CkBOAx6PH7iDV4OJiEJzajajGrVy8gc/IKKJUsoE52G8ud8MX6r3PMl97NfwgOzB7g==}+ '@rolldown/[email protected]':+ resolution: {integrity: sha512-3KkS0cHsllT2T+Te+VZMKHNw6FPQihYsQh+8J4jkzwgvAQpbsbXmrqhkw3YU/QGRrD8qgcOvBr6z5y6Jid+rmw==}engines: {node: ^20.19.0 || >=22.12.0}cpu: [arm]os: [linux]@@ -3871,8 +3773,8 @@ packages:cpu: [arm]os: [linux]- '@rolldown/[email protected]':- resolution: {integrity: sha512-V48oDR84feRU2KRuzpALp594Uqlx27+zFsT6+BgTcXOtu7dWy350J1G28ydoCwKB+oxwsRPx2e7aeQnmd3YJbQ==}+ '@rolldown/[email protected]':+ resolution: {integrity: sha512-A3/wu1RgsHhqP3rVH2+sM81bpk+Qd2XaHTl8LtX5/1LNR7QVBFBCpAoiXwjTdGnI5cMdBVi7Z1pi52euW760Fw==}engines: {node: ^20.19.0 || >=22.12.0}cpu: [arm64]os: [linux]@@ -3885,8 +3787,8 @@ packages:os: [linux]libc: [glibc]- '@rolldown/[email protected]':- resolution: {integrity: sha512-ENLmSQCWqSA/+YN45V2FqTIemg7QspaiTjlm327eUAMeOLdqmSOVVyrQexJGNTQ5M8sDYCgVAig2Kk01Ggmqaw==}+ '@rolldown/[email protected]':+ resolution: {integrity: sha512-d0kIVezTQtazpyWjiJIn5to8JlwfKITDqwsFv0Xc6s31N16CD2PC/Pl2OtKgS7n8WLOJbfqgIp5ixYzTAxCqMg==}engines: {node: ^20.19.0 || >=22.12.0}cpu: [arm64]os: [linux]@@ -3899,8 +3801,8 @@ packages:os: [linux]libc: [musl]- '@rolldown/[email protected]':- resolution: {integrity: sha512-klahlb2EIFltSUubn/VLjuc3qxp1E7th8ukayPfdkcKvvYcQ5rJztgx8JsJSuAKVzKtNTqUGOhy4On71BuyV8g==}+ '@rolldown/[email protected]':+ resolution: {integrity: sha512-E199LPijo98yrLjPCmETx8EF43sZf9t3guSrLee/ej1rCCc3zDVTR4xFfN9BRAapGVl7/8hYqbbiQPTkv73kUg==}engines: {node: ^20.19.0 || >=22.12.0}cpu: [x64]os: [linux]@@ -3913,8 +3815,8 @@ packages:os: [linux]libc: [glibc]- '@rolldown/[email protected]':- resolution: {integrity: sha512-UuA+JqQIgqtkgGN2c/AQ5wi8M6mJHrahz/wciENPTeI6zEIbbLGoth5XN+sQe2pJDejEVofN9aOAp0kaazwnVg==}+ '@rolldown/[email protected]':+ resolution: {integrity: sha512-++EQDpk/UJ33kY/BNsh7A7/P1sr/jbMuQ8cE554ZIy+tCUWCivo9zfyjDUoiMdnxqX6HLJEqqGnbGQOvzm2OMQ==}engines: {node: ^20.19.0 || >=22.12.0}cpu: [x64]os: [linux]@@ -3927,8 +3829,8 @@ packages:os: [linux]libc: [musl]- '@rolldown/[email protected]':- resolution: {integrity: sha512-1BNQW8u4ro8bsN1+tgKENJiqmvc+WfuaUhXzMImOVSMw28pkBKdfZtX2qJPADV3terx+vNJtlsgSGeb3+W6Jiw==}+ '@rolldown/[email protected]':+ resolution: {integrity: sha512-voDEBcNqxbUv/GeXKFtxXVWA+H45P/8Dec4Ii/SbyJyGvCqV1j+nNHfnFUIiRQ2Q40DwPe/djvgYBs9PpETiMA==}engines: {node: ^20.19.0 || >=22.12.0}cpu: [arm64]os: [openharmony]@@ -3939,8 +3841,8 @@ packages:cpu: [arm64]os: [openharmony]- '@rolldown/[email protected]':- resolution: {integrity: sha512-K/p7clhCqJOQpXGykrFaBX2Dp9AUVIDHGc+PtFGBwg7V+mvBTv/tsm3LC3aUmH02H2y3gz4y+nUTQ0MLpofEEg==}+ '@rolldown/[email protected]':+ resolution: {integrity: sha512-bRhcF7NLlCnpkzLVlVhrDEd0KH22VbTPkPTbMjlYvqhSmarxNIq5vtlQS8qmV7LkPKHrNLWyJW/V/sOyFba26Q==}engines: {node: '>=14.0.0'}cpu: [wasm32]@@ -3949,8 +3851,8 @@ packages:engines: {node: '>=14.0.0'}cpu: [wasm32]- '@rolldown/[email protected]':- resolution: {integrity: sha512-a4EkXBtnYYsKipjS7QOhEBM4bU5IlR9N1hU+JcVEVeuTiaslIyhWVKsvf7K2YkQHyVAJ+7/A9BtrGqORFcTgng==}+ '@rolldown/[email protected]':+ resolution: {integrity: sha512-rnDVGRks2FQ2hgJ2g15pHtfxqkGFGjJQUDWzYznEkE8Ra2+Vag9OffxdbJMZqBWXHVM0iS4dv8qSiEn7bO+n1Q==}engines: {node: ^20.19.0 || >=22.12.0}cpu: [arm64]os: [win32]@@ -3961,14 +3863,8 @@ packages:cpu: [arm64]os: [win32]- '@rolldown/[email protected]':- resolution: {integrity: sha512-5ZXcYyd4GxPA6QfbGrNcQjmjbuLGvfz6728pZMsQvGHI+06LT06M6TPtXvFvLgXtexc+OqvFe1yAIXJU1gob/w==}- engines: {node: ^20.19.0 || >=22.12.0}- cpu: [ia32]- os: [win32]-- '@rolldown/[email protected]':- resolution: {integrity: sha512-tzpnRQXJrSzb8Z9sm97UD3cY0toKOImx+xRKsDLX4zHaAlRXWh7jbaKBePJXEN7gNw7Nm03PBNwphdtA8KSUYQ==}+ '@rolldown/[email protected]':+ resolution: {integrity: sha512-OqIUyNid1M4xTj6VRXp/Lht/qIP8fo25QyAZlCP+p6D2ATCEhyW4ZIFLnC9zAGN/HMbXoCzvwfa8Jjg/8J4YEg==}engines: {node: ^20.19.0 || >=22.12.0}cpu: [x64]os: [win32]@@ -3979,8 +3875,8 @@ packages:cpu: [x64]os: [win32]- '@rolldown/[email protected]':- resolution: {integrity: sha512-/L0htLJZbaZFL1g9OHOblTxbCYIGefErJjtYOwgl9ZqNx27P3L0SDfjhhHIss32gu5NWgnxuT2a2Hnnv6QGHKA==}+ '@rolldown/[email protected]':+ resolution: {integrity: sha512-aQNelgx14tGA+n2tNSa9x6/jeoCL9fkDeCei7nOKnHx0fEFRRMu5ReiITo+zZD5TzWDGGRjbSYCs93IfRIyTuQ==}'@rolldown/[email protected]':resolution: {integrity: sha512-aoh6LAJRyhtazs98ydgpNOYstxUlsOV1KJXcpf/0c0vFcUA8uyd/hwKRhqE/AAPNqAho9RliGsvitCoOzREoVA==}@@ -4114,6 +4010,10 @@ packages:'@shikijs/[email protected]':resolution: {integrity: sha512-83yeghZ2xxin3Nj8z1NMd/NCuca+gsYXswywDy5bHvwlWL8tpTQmzGeUuHd9FC3E/SBEMvzJRwWEOz5gGes9Qg==}+ '@sindresorhus/[email protected]':+ resolution: {integrity: sha512-t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw==}+ engines: {node: '>=10'}+'@sindresorhus/[email protected]':resolution: {integrity: sha512-d9xRovfKNz1SKieM0qJdO+PQonjnnIfSNWfHYnBSJ9hkjm0ZPw6HlxscDXYstp3z+7V2GOFHc+J0CYrYTjqCJw==}engines: {node: '>=18'}@@ -4667,12 +4567,6 @@ packages:resolution: {integrity: sha512-tjwM5exMg6BGRI+kNmTntNsvdZS1X8BFYS6tnJ2hdH0kVxM6/eVZ2xy+FqStSWvYmtfFMDLIxurorHwDKfDz5Q==}engines: {node: '>=18'}- resolution: {integrity: sha512-3WrrOuZiyaaZPWiEt4G3+IffISVC9HYlWueJEBWED4ZH4aIAC2PnkdnuRrR94M+w6yGWn4AglWtJtBI8YqvgoA==}- engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}- peerDependencies:- esbuild: '>=0.18'-resolution: {integrity: sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==}engines: {node: '>= 0.8'}@@ -4730,6 +4624,10 @@ packages:resolution: {integrity: sha512-HRQyTk2/YPEkt9TnUPbOpr64Uw3KOicFWPVBb+xiHvd6eBx/qPr9xqfBFDT8P2vWsvvz4jbEkfDe71W3VyNu2w==}+ resolution: {integrity: sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==}+ engines: {node: '>=10'}+resolution: {integrity: sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==}@@ -4744,14 +4642,6 @@ packages:resolution: {integrity: sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==}engines: {node: '>= 8.10.0'}- resolution: {integrity: sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA==}- engines: {node: '>= 14.16.0'}-- resolution: {integrity: sha512-TQMmc3w+5AxjpL8iIiwebF73dRDF4fBIieAqGn9RGCWaEVwQ6Fb2cGe31Yns0RRIzii5goJ1Y7xbMwo1TxMplw==}- engines: {node: '>= 20.19.0'}-resolution: {integrity: sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==}engines: {node: '>=8'}@@ -4763,6 +4653,11 @@ packages:resolution: {integrity: sha512-aCj4O5wKyszjMmDT4tZj93kxyydN/K5zPWSCe6/0AV/AA1pqe5ZBIw0a2ZfPQV7lL5/yb5HsUreJ6UFAF1tEQw==}engines: {node: '>=18'}+ resolution: {integrity: sha512-9KDcoEVwyUXrjcJNvHD0NFc/hiwe/WPVYIleQh2O1N2Zro5gWJZ/K+3DGn8w8P/F6FxOgzyC5bxDyHIgCSPhGg==}+ engines: {node: '>=8.0.0', npm: '>=5.0.0'}+ hasBin: true+resolution: {integrity: sha512-tRkV3HJ1ASwm19THiiLIXLO7Im7wlTuKnvkYaTkyoAPefqjNg7W7DHKUlGRxy9vxDvbyCYQkQozvptuMkGCg8A==}engines: {node: '>=4'}@@ -4771,6 +4666,10 @@ packages:resolution: {integrity: sha512-/+40ljC3ONVnYIttjMWrlL51nItDAbBrq2upN8BPyvGU/2n5Oxw3tbNwORCaNuNqLJnxGqOfjUuhsv7l5Q4IsQ==}engines: {node: '>=18.20'}+ resolution: {integrity: sha512-+W/5efTR7y5HRD7gACw9yQjqMVvEMLBHmboM/kPWam+H+Hmyrgjh6YncVKK122YZkXrLudzTuAukUw9FnMf7IQ==}+ engines: {node: 10.* || >= 12.*}+resolution: {integrity: sha512-nPdaFdQ0h/GEigbPClz11D0v/ZJEwxmeVZGeMo3Z5StPtUTkA9o1lD6QwoirYiSDzbcwn2XcjwmCp68W1IS4TA==}engines: {node: '>=18'}@@ -4782,6 +4681,9 @@ packages:resolution: {integrity: sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA==}+ resolution: {integrity: sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==}+resolution: {integrity: sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==}engines: {node: '>=12'}@@ -4817,6 +4719,10 @@ packages:resolution: {integrity: sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==}engines: {node: '>= 0.8'}+ resolution: {integrity: sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug==}+ engines: {node: '>=14'}+resolution: {integrity: sha512-Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA==}engines: {node: '>=18'}@@ -4852,13 +4758,6 @@ packages:resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==}- resolution: {integrity: sha512-RMtmw0iFkeR4YV+fUOSucriAQNb9g8zFR52MWCtl+cCZOFRNL6zeB395vPzFhEjjn4fMxXudmELnl/KF/WrK6w==}-- resolution: {integrity: sha512-5IKcdX0nnYavi6G7TtOhwkYzyjfJlatbjMjuLSfE2kYT5pMDOilZ4OvMhi637CcDICTmz3wARPoyhqyX1Y+XvA==}- engines: {node: ^14.18.0 || >=16.10.0}-resolution: {integrity: sha512-MCBl5HNVaFuuHW6FGbL/4fB7N/ormCy+tQ+sxTrF6QtSbSNETvPuOVbkJBhzDgYhvjWGrTma4eYJa37ZuoQsPw==}@@ -5048,10 +4947,6 @@ packages:resolution: {integrity: sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==}- resolution: {integrity: sha512-sSuxWU5j5SR9QQji/o2qMvqRNYRDOcBTgsJ/DeCf4iSN4gW+gNMXM7wFIP+fdXZxoNiAnHUTGjCr+TSWXdRDKg==}- engines: {node: '>=0.3.1'}-resolution: {integrity: sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==}engines: {node: '>=8'}@@ -5108,6 +5003,9 @@ packages:resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==}+ resolution: {integrity: sha512-5U0rVMU5Y2n2+ykNLQqMoqklN9ICBT/KsvC1Gz6vqHbz2AXXGkG+Pm5rMWk/8Vjrr/mY9985Hi8DYzn1F09Nyw==}+resolution: {integrity: sha512-i6UzDscO/XfAcNYD75CfICkmfLedpyPDdozrLMmQc5ORaQcdMoc21OnlEylMIqI7U8eniKrPMxxtj8k0vhmJhA==}engines: {node: '>=14'}@@ -5167,11 +5065,6 @@ packages:engines: {node: '>=18'}hasBin: true- resolution: {integrity: sha512-HyNQImnsOC7X9PMNaCIeAm4ISCQXs5a5YasTXVliKv4uuBo1dKrG0A+uQS8M5eXjVMnLg3WgXaKvprHlFJQffw==}- engines: {node: '>=18'}- hasBin: true-resolution: {integrity: sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==}engines: {node: '>=6'}@@ -5348,14 +5241,6 @@ packages:resolution: {integrity: sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g==}- resolution: {integrity: sha512-hiFoqpyZcfNm1yc4u8oWCf9A2c4D3QjCrks3zmoVKVxpQRzmPNar1hUJcBG2RQHvEVGDN+Jm81ZheVLAQMK6+w==}- peerDependencies:- picomatch: ^3 || ^4- peerDependenciesMeta:- picomatch:- optional: true-resolution: {integrity: sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==}engines: {node: '>=12.0.0'}@@ -5411,9 +5296,6 @@ packages:resolution: {integrity: sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==}engines: {node: '>=10'}- resolution: {integrity: sha512-pVIECanWFC61Hzl2+oOCtoJ3F17kglZC/6N94eRWycFgBH35hHx0Li604ZIzhseh97mf2p0cv7vVrOZGoqhlEg==}-resolution: {integrity: sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==}engines: {node: '>=16'}@@ -5593,6 +5475,9 @@ packages:resolution: {integrity: sha512-7xgomUX6ADmcYzFik0HzAxh/73YlKR9bmFzf51CZwR+b6YtzU2m0u49hQCqV6SvlqIqsaxovfwdvbnsw3b/zpg==}+ resolution: {integrity: sha512-tzcUFauisWKNHaRkN4Wjl/ZA07gENAjFl3J/c480dprkGTg5EQstgaNFqBfUqCq54kZRIEcreTsAgF/m2quD7A==}+resolution: {integrity: sha512-LYr5xdtD49M7hEAduV1PftOMzuT8ZNvkyWfh1DThkLsIr4RkvDb12UxgIiFbwrJB6FLtFXLoOZL9x4IeDk2+VA==}peerDependencies:@@ -5642,8 +5527,8 @@ packages:resolution: {integrity: sha512-BIdolzGpDO9MQ4nu3AUuDwHZZ+KViNm+EZ75Ae55eMXMqLVhDFqEMXxtUe9Qh8hjL+pIna/frs2j6Y2yD5Ua/g==}engines: {node: '>=16.9.0'}- resolution: {integrity: sha512-Yc+BQe8SvoXH1643Qez1zqLRmbA5rCL+sSmk6TVos0LWVfNIB7PGncdlId77WzLGSIB5KaWgTaNTs2lNVEI6VQ==}+ resolution: {integrity: sha512-uKGyY8BuzN/a5gvzvA+3FVWo0+wUjgtfSdnmjtrOVwQCZPHpHDH2WRO3VZSOeluYrHoDCiXFffZXs8Dj1ULWtw==}resolution: {integrity: sha512-qY60FjREgVZL03vJU6IfMV4GDjGBIoOyvuFdpBDIX9yTlDw0TjxVBQp+P8NvpdIXNJvfWBTNul7fsAQJq2FNpg==}@@ -5706,6 +5591,10 @@ packages:resolution: {integrity: sha512-5tCuY9BV8ujfOpwtAGgsTx9CGUapcFMEEyByLv1B+v2+6DhAcw+Zr0nhQT7uwaZ7DiourxFEscghOR8e1aPLQw==}+ resolution: {integrity: sha512-B6Lc2s6yApwnD2/pMzFh/d5AVjdsDXjgkeJ766FmFuJELIGHNycKRj+l3A39yZPM4CchqNCB4RITEAYB1KUM6A==}+ engines: {node: '>=20.19.0'}+resolution: {integrity: sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==}engines: {node: '>=0.8.19'}@@ -6071,10 +5960,6 @@ packages:resolution: {integrity: sha512-PoN3BMSr4F5h7ThQjXRZppyiCxuENIm/Set6hDk/DGLZrvIDgTuA2YSS29OSd2dXOQEtux5xGPl1d46nJ6w+Fw==}engines: {node: '>=18.0.0'}- resolution: {integrity: sha512-IXO6OCs9yg8tMKzfPZ1YmheJbZCiEsnBdcB03l0OcfK9prKnJb96siuHCr5Fl37/yo9DnKU+TLpxzTUspw9shg==}- engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}-resolution: {integrity: sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==}engines: {node: '>=8'}@@ -6134,6 +6019,17 @@ packages:resolution: {integrity: sha512-a54IwgWPaeBCAAsv13YgmALOF1elABB08FxO9i+r4VFk5Vl4pKokRPeX8u5TCgSsPi6ec1otfLjdOpVcgbpshg==}hasBin: true+ resolution: {integrity: sha512-t4rBvPsHc57uE/2nJOLmMbZCQ4tgAccAED3ngXQqW6g+TxA488JzJ+FK3lQkzBQOI1mRV/r/Kq+1ZlJ4D0owQw==}+ engines: {node: '>=16.0.0'}+ peerDependencies:+ marked: '>=1 <16'++ resolution: {integrity: sha512-jcByLnIFkd5gSXZmjNvS1TlmRhCXZjIzHYlaGkPlLIekG55JDR2Z4va9tZwCiP+/RDERiNhMOFu01xd6O5ct1Q==}+ engines: {node: '>= 16'}+ hasBin: true+resolution: {integrity: sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==}engines: {node: '>= 0.4'}@@ -6236,9 +6132,6 @@ packages:resolution: {integrity: sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==}engines: {node: '>=16 || 14 >=14.17'}- resolution: {integrity: sha512-l8D9ODSRWLe2KHJSifWGwBqpTZXIXTeo8mlKjY+E2HAakaTeNpqAyBZ8GSqLzHgw4XmHmC8whvpjJNMbFZN7/g==}-resolution: {integrity: sha512-EGWKgxALGMgzvxYF1UyGTy0HXX/2vHLkw6+NvDKW2jypWbHpjQuj4UMcqQWXHERJhVGKikolT06G3bcKe4fi7w==}@@ -6348,6 +6241,10 @@ packages:engines: {node: '>=10.5.0'}deprecated: Use your platform's native DOMException instead+ resolution: {integrity: sha512-Z3lTE9pLaJF47NyMhd4ww1yFTAP8YhYI8SleJiHzM46Fgpm5cnNzSl9XfzFNqbaz+VlJrIj3fXQ4DeN1Rjm6cw==}+ engines: {node: '>=18'}+resolution: {integrity: sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==}engines: {node: 4.x || >=6.0.0}@@ -6580,6 +6477,15 @@ packages:resolution: {integrity: sha512-ybiGyvspI+fAoRQbIPRddCcSTV9/LsJbf0e/S85VLowVGzRmokfneg2kwVW/KU5rOXrPSbF1qAKPMgNTqqROQQ==}engines: {node: '>=18'}+ resolution: {integrity: sha512-qPuWvbLgvDGilKc5BoicRovlT4MtYT6JfJyBOMDsKoiT+GiuP5qyrPCnR9HcPECIJJmZh5jRndyNThnhhb/vlA==}++ resolution: {integrity: sha512-ugq4DFI0Ptb+WWjAdOK16+u/nHfiIrcE+sh8kZMaM0WllQKLI9rOUq6c2b7cwPkXdzfQESqvoqK6ug7U/Yyzug==}++ resolution: {integrity: sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw==}+resolution: {integrity: sha512-e6qHKe3a9HWr0oMRVDTRhKce+bRO8VGQR3NyVwcjwrbhMmFCX9KszEV35+rn4AdilFAq9VPxP/Fe1wC9Qjd2lw==}@@ -6664,10 +6570,6 @@ packages:resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==}engines: {node: '>=8.6'}- resolution: {integrity: sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==}- engines: {node: '>=12'}-resolution: {integrity: sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==}engines: {node: '>=12'}@@ -6719,9 +6621,6 @@ packages:resolution: {integrity: sha512-ueGLflrrnvwB3xuo/uGob5pd5FN7l0MsLf0Z87o/UQmRtwjvfylfc9MurIxRAWywCYTgrvpXBcqjV4OfCYGCIQ==}engines: {node: '>=16.20.0'}- resolution: {integrity: sha512-/Jm5M4RvtBFVkKWRu2BLUTNP8/M2a+UwuAX+ae4770q1qVGtfjG+WTCupoZixokjmHiry8uI+dlY8KXYV5HVVQ==}-resolution: {integrity: sha512-Nc3IT5yHzflTfbjgqWcCPpo7DaKy4FnpB0l/zCAW0Tc7jxAiuqSxHasntB3D7887LSrA93kDJ9IXovxJYxyLCA==}engines: {node: '>=4'}@@ -6759,24 +6658,6 @@ packages:ts-node:optional: true- resolution: {integrity: sha512-oPtTM4oerL+UXmx+93ytZVN82RrlY/wPUV8IeDxFrzIjXOLF1pN+EmKPLbubvKHT2HC20xXsCAH2Z+CKV6Oz/g==}- engines: {node: '>= 18'}- peerDependencies:- jiti: '>=1.21.0'- postcss: '>=8.0.9'- tsx: ^4.8.1- yaml: ^2.4.2- peerDependenciesMeta:- jiti:- optional: true- postcss:- optional: true- tsx:- optional: true- yaml:- optional: true-resolution: {integrity: sha512-HQbt28KulC5AJzG+cZtj9kvKB93CFCdLvog1WFLf1D+xmMvPGlBstkpTEZfK5+AN9hfJocyBFCNiqyS48bpgzQ==}engines: {node: '>=12.0'}@@ -6937,14 +6818,6 @@ packages:resolution: {integrity: sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==}engines: {node: '>=8.10.0'}- resolution: {integrity: sha512-GDhwkLfywWL2s6vEjyhri+eXmfH6j1L7JE27WhqLeYzoh/A3DBaYGEj2H/HFZCn/kMfim73FXxEJTw06WtxQwg==}- engines: {node: '>= 14.18.0'}-- resolution: {integrity: sha512-9u/XQ1pvrQtYyMpZe7DXKv2p5CNvyVwzUB6uhLAnQwHMSgKMBR62lc7AHljaeteeHXn11XTAaLLUVZYVZyuRBQ==}- engines: {node: '>= 20.19.0'}-resolution: {integrity: sha512-57frrGM/OCTLqLOAh0mhVA9VBMHd+9U7Zb2THMGdBUoZVOtGbJzjxsYGDJ3A9AYYCP4hn6y1TVbaOfzWtm5GFg==}engines: {node: '>= 12.13.0'}@@ -7000,15 +6873,15 @@ packages:resolution: {integrity: sha512-q1b3N5QkRUWUl7iyylaaj3kOpIT0N2i9MqIEQXP73GVsN9cw3fdx8X63cEmWhJGi2PPCF23Ijp7ktmd39rawIA==}- resolution: {integrity: sha512-7UpdiICFd/BhdjKtDPeakCFRk6pbkTGFe0Z6u01egt4c8aoO+JoPGF1Smc+JRuCH2s5j5hBdteBi0e10G0xQdQ==}+ resolution: {integrity: sha512-cLAY1kN2ilTYMfZcFlGWbXnu6Nb+8uwUBsi+Mjbh4uIx7IN8uMOmJ7RxrrRgPsO4H7eSz3E+JwGoL1gyugiyUA==}engines: {node: '>=20.19.0'}peerDependencies:'@ts-macro/tsc': ^0.3.6'@typescript/native-preview': '>=7.0.0-dev.20250601.1'- rolldown: ^1.0.0-beta.51+ rolldown: ^1.0.0-beta.57typescript: ^5.0.0- vue-tsc: ~3.1.0+ vue-tsc: ~3.2.0peerDependenciesMeta:'@ts-macro/tsc':optional: true@@ -7019,8 +6892,8 @@ packages:vue-tsc:optional: true- resolution: {integrity: sha512-Hbnpljue+JhMJrlOjQ1ixp9me7sUec7OjFvS+A1Qm8k8Xyxmw3ZhxFu7LlSXW1s9AX3POE9W9o2oqCEeR5uDmg==}+ resolution: {integrity: sha512-lMMxcNN71GMsSko8RyeTaFoATHkCh4IWU7pYF73ziMYjhHZWfVesC6GQ+iaJCvZmVjvgSks9Ks1aaqEkBd8udg==}engines: {node: ^20.19.0 || >=22.12.0}hasBin: true@@ -7174,6 +7047,10 @@ packages:resolution: {integrity: sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==}+ resolution: {integrity: sha512-kUMbT1oBJCpgrnKoSr0o6wPtvRWT9W9UKvGLwfJYO2WuahZRHOpEyL1ckyMGgMWh0UdpmaoFqKKD29WTomNEGA==}+ engines: {node: '>=8'}+resolution: {integrity: sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==}engines: {node: '>=8'}@@ -7193,10 +7070,6 @@ packages:resolution: {integrity: sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==}engines: {node: '>=0.10.0'}- resolution: {integrity: sha512-i5uvt8C3ikiWeNZSVZNWcfZPItFQOsYTUAOkcUPGd8DqDy1uOUikjt5dG+uRlwyvR108Fb9DOd4GvXfT0N2/uQ==}- engines: {node: '>= 12'}-resolution: {integrity: sha512-MmnduQUuHCoFckZoWnXsTg7JaiLBJrKFj9UI2MbRPGaJeVpsLcVBu6P/IGZovziM/YBsellCmsprgNA+w0CzVg==}@@ -7313,6 +7186,10 @@ packages:resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==}engines: {node: '>=8'}+ resolution: {integrity: sha512-zFObLMyZeEwzAoKCyu1B91U79K2t7ApXuQfo8OuxwXLDgcKxuwM+YvcbIhm6QWqz7mHUH1TVytR1PwVVjEuMig==}+ engines: {node: '>=14.18'}+resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==}engines: {node: '>= 0.4'}@@ -7361,10 +7238,6 @@ packages:resolution: {integrity: sha512-W/KYk+NFhkmsYpuHq5JykngiOCnxeVL8v8dFnqxSD8qEEdRfXk1SDM6JzNqcERbcGYj9tMrDQBYV9cjgnunFIg==}engines: {node: '>=18'}- resolution: {integrity: sha512-tX5e7OM1HnYr2+a2C/4V0htOcSQcoSTH9KgJnVvNm5zm/cyEWKJ7j7YutsH9CxMdtOkkLFy2AHrMci9IM8IPZQ==}- engines: {node: '>=12.0.0'}-resolution: {integrity: sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==}engines: {node: '>=12.0.0'}@@ -7429,13 +7302,13 @@ packages:resolution: {integrity: sha512-ztMO++owQnz8c/gIENcM9XfCEzgoGphTv+nKpYNM1bgsdOVC/jRZuEBf6N+mLLDNg68Kl+GgUZfOySaRiG1/Ug==}- resolution: {integrity: sha512-6ANw9mgU9kk7SvTBKvpDu/DVJeAFECiLUSeL5M7f5Nm5H97E7ybxmXT4PQ23FySYn32y6OzjoAH/lsWCbGzfLA==}+ resolution: {integrity: sha512-J/tRS6hsZTkvqmt4+xdELUCkQYDuUCXgBv0fw3ImV09WPGbEKfsPD65E+WUjSu3E7Z6tji9XZ1iWs8rbGqB/ZA==}engines: {node: '>=20.19.0'}hasBin: truepeerDependencies:'@arethetypeswrong/core': ^0.18.1- '@vitejs/devtools': ^0.0.0-alpha.18+ '@vitejs/devtools': '*'publint: ^0.3.0typescript: ^5.0.0unplugin-lightningcss: ^0.4.0@@ -7457,25 +7330,6 @@ packages:resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==}- resolution: {integrity: sha512-xtgkqwdhpKWr3tKPmCkvYmS9xnQK3m3XgxZHwSUjvfTjp7YfXe5tT3GgWi0F2N+ZSMsOeWeZFh7ZZFg5iPhing==}- engines: {node: '>=18'}- hasBin: true- peerDependencies:- '@microsoft/api-extractor': ^7.36.0- '@swc/core': ^1- postcss: ^8.4.12- typescript: '>=4.5.0'- peerDependenciesMeta:- '@microsoft/api-extractor':- optional: true- '@swc/core':- optional: true- postcss:- optional: true- typescript:- optional: true-resolution: {integrity: sha512-+wKjMNU9w/EaQayHXb7WA7ZaHY6hN8WgfvHNQ3t1PnU91/7O8TcTnIhCDYTZwnt8JsO9IBqZ30Ln1r7pPF52Aw==}engines: {node: '>=18.0.0'}@@ -7619,6 +7473,10 @@ packages:resolution: {integrity: sha512-Wj7/AMtE9MRnAXa6Su3Lk0LNCfqDYgfwVjwRFVum9U7wsto1imuHqk4kTm7Jni+5A0Hn7dttL6O/zjvUvoo+8A==}+ resolution: {integrity: sha512-yLSH4py7oFH3oG/9K+XWrz1pSi3dfUrWEnInbxMfArOfc1+33BlGPQtLsOYwvdMy11AwUBetYuaRxSPqgkq+8g==}+ engines: {node: '>=4'}+resolution: {integrity: sha512-VGXBUVwxKMBUznyffQweQABPRRW1vHZAbadFZud4pLFAqRGvv/96vafgjWFqzourzr8YonlQiPgH0YCJfawoGQ==}engines: {node: '>=12'}@@ -7868,10 +7726,18 @@ packages:engines: {node: '>= 14.6'}hasBin: true+ resolution: {integrity: sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==}+ engines: {node: '>=10'}+resolution: {integrity: sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==}engines: {node: '>=12'}+ resolution: {integrity: sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==}+ engines: {node: '>=10'}+resolution: {integrity: sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==}engines: {node: '>=12'}@@ -8251,8 +8117,7 @@ snapshots:'@alloc/[email protected]': {}- '@andrewbranch/[email protected]':- optional: true+ '@andrewbranch/[email protected]': {}'@anthropic-ai/[email protected]([email protected])':dependencies:@@ -8299,6 +8164,16 @@ snapshots:'@types/json-schema': 7.0.15js-yaml: 4.1.1+ '@arethetypeswrong/[email protected]':+ dependencies:+ '@arethetypeswrong/core': 0.18.2+ chalk: 4.1.2+ cli-table3: 0.6.5+ commander: 10.0.1+ marked: 9.1.6+ marked-terminal: 7.3.0([email protected])+ semver: 7.7.3+'@arethetypeswrong/[email protected]':dependencies:'@andrewbranch/untar.js': 1.0.3@@ -8309,7 +8184,6 @@ snapshots:semver: 7.7.3typescript: 5.6.1-rcvalidate-npm-package-name: 5.0.1- optional: true'@aws-crypto/[email protected]':dependencies:@@ -8359,8 +8233,7 @@ snapshots:'@babel/helper-string-parser': 7.27.1'@babel/helper-validator-identifier': 7.28.5- '@braidai/[email protected]':- optional: true+ '@braidai/[email protected]': {}'@cfworker/[email protected]': {}@@ -8563,6 +8436,9 @@ snapshots:'@cloudflare/[email protected]': {}+ '@colors/[email protected]':+ optional: true+'@composio/[email protected]': {}'@composio/[email protected]': {}@@ -8716,228 +8592,150 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-dependencies:eslint: 9.29.0([email protected])@@ -9676,7 +9474,6 @@ snapshots:'@loaderkit/[email protected]':dependencies:'@braidai/lang': 1.1.2- optional: true'@manypkg/[email protected]':dependencies:@@ -10293,7 +10090,7 @@ snapshots:'@openai/agents-realtime': 0.3.4(@cfworker/[email protected])([email protected])debug: 4.4.3([email protected])- openai: 6.7.0([email protected])([email protected])+ openai: 6.10.0([email protected])([email protected])zod: 4.3.5transitivePeerDependencies:- '@cfworker/json-schema'@@ -10992,9 +10789,9 @@ snapshots:'@opentelemetry/api': 1.9.0'@opentelemetry/core': 2.0.1(@opentelemetry/[email protected])- '@oxc-project/[email protected]': {}+ '@oxc-project/[email protected]': {}- '@oxc-project/[email protected]': {}+ '@oxc-project/[email protected]': {}'@parcel/[email protected]':optional: true@@ -11093,8 +10890,7 @@ snapshots:'@protobufjs/[email protected]': {}- '@publint/[email protected]':- optional: true+ '@publint/[email protected]': {}'@quansync/[email protected]':dependencies:@@ -11123,67 +10919,67 @@ snapshots:transitivePeerDependencies:- supports-color- '@rolldown/[email protected]':+ '@rolldown/[email protected]':optional: true'@rolldown/[email protected]':optional: true- '@rolldown/[email protected]':+ '@rolldown/[email protected]':optional: true'@rolldown/[email protected]':optional: true- '@rolldown/[email protected]':+ '@rolldown/[email protected]':optional: true'@rolldown/[email protected]':optional: true- '@rolldown/[email protected]':+ '@rolldown/[email protected]':optional: true'@rolldown/[email protected]':optional: true- '@rolldown/[email protected]':+ '@rolldown/[email protected]':optional: true'@rolldown/[email protected]':optional: true- '@rolldown/[email protected]':+ '@rolldown/[email protected]':optional: true'@rolldown/[email protected]':optional: true- '@rolldown/[email protected]':+ '@rolldown/[email protected]':optional: true'@rolldown/[email protected]':optional: true- '@rolldown/[email protected]':+ '@rolldown/[email protected]':optional: true'@rolldown/[email protected]':optional: true- '@rolldown/[email protected]':+ '@rolldown/[email protected]':optional: true'@rolldown/[email protected]':optional: true- '@rolldown/[email protected]':+ '@rolldown/[email protected]':optional: true'@rolldown/[email protected]':optional: true- '@rolldown/[email protected]':+ '@rolldown/[email protected]':dependencies:'@napi-rs/wasm-runtime': 1.1.1optional: true@@ -11193,22 +10989,19 @@ snapshots:'@napi-rs/wasm-runtime': 1.1.1optional: true- '@rolldown/[email protected]':+ '@rolldown/[email protected]':optional: true'@rolldown/[email protected]':optional: true- '@rolldown/[email protected]':- optional: true-- '@rolldown/[email protected]':+ '@rolldown/[email protected]':optional: true'@rolldown/[email protected]':optional: true- '@rolldown/[email protected]': {}+ '@rolldown/[email protected]': {}'@rolldown/[email protected]': {}@@ -11297,6 +11090,8 @@ snapshots:'@shikijs/[email protected]': {}+ '@sindresorhus/[email protected]': {}+'@sindresorhus/[email protected]': {}'@sindresorhus/[email protected]':@@ -11682,7 +11477,7 @@ snapshots:flatted: 3.3.3pathe: 2.0.3sirv: 3.0.1- tinyglobby: 0.2.14+ tinyglobby: 0.2.15tinyrainbow: 2.0.0vitest: 3.2.4(@types/[email protected])(@types/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected])([email protected])@@ -11951,11 +11746,6 @@ snapshots:dependencies:run-applescript: 7.0.0- dependencies:- esbuild: 0.27.2- load-tsconfig: 0.2.5-@@ -12007,6 +11797,8 @@ snapshots:+ [email protected]: {}+@@ -12025,14 +11817,6 @@ snapshots:optionalDependencies:fsevents: 2.3.3- dependencies:- readdirp: 4.1.2-- dependencies:- readdirp: 5.0.0-@@ -12041,12 +11825,27 @@ snapshots:dependencies:restore-cursor: 5.1.0+ dependencies:+ chalk: 4.1.2+ highlight.js: 10.7.3+ mz: 2.7.0+ parse5: 5.1.1+ parse5-htmlparser2-tree-adapter: 6.0.1+ yargs: 16.2.0+dependencies:string-width: 4.2.3+ dependencies:+ string-width: 4.2.3+ optionalDependencies:+ '@colors/colors': 1.5.0+dependencies:slice-ansi: 5.0.0@@ -12056,6 +11855,12 @@ snapshots:+ dependencies:+ string-width: 4.2.3+ strip-ansi: 6.0.1+ wrap-ansi: 7.0.0+dependencies:string-width: 4.2.3@@ -12090,6 +11895,8 @@ snapshots:dependencies:delayed-stream: 1.0.0+ [email protected]: {}+@@ -12133,10 +11940,6 @@ snapshots:- [email protected]: {}-- [email protected]: {}-dependencies:simple-wcswidth: 1.1.2@@ -12290,8 +12093,6 @@ snapshots:- [email protected]: {}-dependencies:path-type: 4.0.0@@ -12343,6 +12144,8 @@ snapshots:+ [email protected]: {}+@@ -12437,35 +12240,6 @@ snapshots:'@esbuild/win32-ia32': 0.25.5'@esbuild/win32-x64': 0.25.5- optionalDependencies:- '@esbuild/aix-ppc64': 0.27.2- '@esbuild/android-arm': 0.27.2- '@esbuild/android-arm64': 0.27.2- '@esbuild/android-x64': 0.27.2- '@esbuild/darwin-arm64': 0.27.2- '@esbuild/darwin-x64': 0.27.2- '@esbuild/freebsd-arm64': 0.27.2- '@esbuild/freebsd-x64': 0.27.2- '@esbuild/linux-arm': 0.27.2- '@esbuild/linux-arm64': 0.27.2- '@esbuild/linux-ia32': 0.27.2- '@esbuild/linux-loong64': 0.27.2- '@esbuild/linux-mips64el': 0.27.2- '@esbuild/linux-ppc64': 0.27.2- '@esbuild/linux-riscv64': 0.27.2- '@esbuild/linux-s390x': 0.27.2- '@esbuild/linux-x64': 0.27.2- '@esbuild/netbsd-arm64': 0.27.2- '@esbuild/netbsd-x64': 0.27.2- '@esbuild/openbsd-arm64': 0.27.2- '@esbuild/openbsd-x64': 0.27.2- '@esbuild/openharmony-arm64': 0.27.2- '@esbuild/sunos-x64': 0.27.2- '@esbuild/win32-arm64': 0.27.2- '@esbuild/win32-ia32': 0.27.2- '@esbuild/win32-x64': 0.27.2-@@ -12708,10 +12482,6 @@ snapshots:dependencies:pend: 1.2.0- optionalDependencies:- picomatch: 4.0.2-optionalDependencies:picomatch: 4.0.3@@ -12769,12 +12539,6 @@ snapshots:locate-path: 6.0.0path-exists: 4.0.0- dependencies:- magic-string: 0.30.21- mlly: 1.8.0- rollup: 4.43.0-dependencies:flatted: 3.3.3@@ -12967,6 +12731,8 @@ snapshots:+ [email protected]: {}+dependencies:json-schema-walker: 2.0.0@@ -12987,7 +12753,7 @@ snapshots:- [email protected]: {}+ [email protected]: {}dependencies:@@ -13063,6 +12829,8 @@ snapshots:cjs-module-lexer: 1.4.3module-details-from-path: 1.0.4+ [email protected]: {}+@@ -13434,8 +13202,6 @@ snapshots:- web-tree-sitter- zod- [email protected]: {}-dependencies:p-locate: 4.1.0@@ -13496,6 +13262,19 @@ snapshots:punycode.js: 2.3.1uc.micro: 2.1.0+ dependencies:+ ansi-escapes: 7.0.0+ ansi-regex: 6.1.0+ chalk: 5.6.2+ cli-highlight: 2.1.11+ cli-table3: 0.6.5+ marked: 9.1.6+ node-emoji: 2.2.0+ supports-hyperlinks: 3.2.0++ [email protected]: {}+@@ -13581,13 +13360,6 @@ snapshots:- dependencies:- acorn: 8.15.0- pathe: 2.0.3- pkg-types: 1.3.1- ufo: 1.6.1-@@ -13689,6 +13461,13 @@ snapshots:+ dependencies:+ '@sindresorhus/is': 4.6.0+ char-regex: 1.0.2+ emojilib: 2.4.0+ skin-tone: 2.0.0+dependencies:whatwg-url: 5.0.0@@ -13916,8 +13695,7 @@ snapshots:dependencies:quansync: 0.2.11- optional: true+ [email protected]: {}dependencies:@@ -13929,6 +13707,14 @@ snapshots:index-to-position: 1.1.0type-fest: 4.41.0+ dependencies:+ parse5: 6.0.1++ [email protected]: {}++ [email protected]: {}+dependencies:leac: 0.6.0@@ -13991,8 +13777,6 @@ snapshots:- [email protected]: {}-@@ -14049,12 +13833,6 @@ snapshots:- dependencies:- confbox: 0.1.8- mlly: 1.8.0- pathe: 2.0.3-@@ -14080,15 +13858,6 @@ snapshots:optionalDependencies:postcss: 8.5.6- dependencies:- lilconfig: 3.1.3- optionalDependencies:- jiti: 2.6.1- postcss: 8.5.6- tsx: 4.20.5- yaml: 2.8.1-dependencies:postcss: 8.5.6@@ -14165,7 +13934,6 @@ snapshots:package-manager-detector: 1.6.0picocolors: 1.1.1sade: 1.8.1- optional: truedependencies:@@ -14263,10 +14031,6 @@ snapshots:dependencies:picomatch: 2.3.1- [email protected]: {}-- [email protected]: {}-@@ -14310,7 +14074,7 @@ snapshots:dependencies:'@babel/generator': 7.28.5'@babel/parser': 7.28.5@@ -14319,33 +14083,31 @@ snapshots:birpc: 4.0.0dts-resolver: 2.1.3get-tsconfig: 4.13.0- magic-string: 0.30.21obug: 2.1.1- rolldown: 1.0.0-beta.52+ rolldown: 1.0.0-beta.57optionalDependencies:typescript: 5.9.3transitivePeerDependencies:- oxc-resolverdependencies:- '@oxc-project/types': 0.99.0- '@rolldown/pluginutils': 1.0.0-beta.52+ '@oxc-project/types': 0.103.0+ '@rolldown/pluginutils': 1.0.0-beta.57optionalDependencies:- '@rolldown/binding-android-arm64': 1.0.0-beta.52- '@rolldown/binding-darwin-arm64': 1.0.0-beta.52- '@rolldown/binding-darwin-x64': 1.0.0-beta.52- '@rolldown/binding-freebsd-x64': 1.0.0-beta.52- '@rolldown/binding-linux-arm-gnueabihf': 1.0.0-beta.52- '@rolldown/binding-linux-arm64-gnu': 1.0.0-beta.52- '@rolldown/binding-linux-arm64-musl': 1.0.0-beta.52- '@rolldown/binding-linux-x64-gnu': 1.0.0-beta.52- '@rolldown/binding-linux-x64-musl': 1.0.0-beta.52- '@rolldown/binding-openharmony-arm64': 1.0.0-beta.52- '@rolldown/binding-wasm32-wasi': 1.0.0-beta.52- '@rolldown/binding-win32-arm64-msvc': 1.0.0-beta.52- '@rolldown/binding-win32-ia32-msvc': 1.0.0-beta.52- '@rolldown/binding-win32-x64-msvc': 1.0.0-beta.52+ '@rolldown/binding-android-arm64': 1.0.0-beta.57+ '@rolldown/binding-darwin-arm64': 1.0.0-beta.57+ '@rolldown/binding-darwin-x64': 1.0.0-beta.57+ '@rolldown/binding-freebsd-x64': 1.0.0-beta.57+ '@rolldown/binding-linux-arm-gnueabihf': 1.0.0-beta.57+ '@rolldown/binding-linux-arm64-gnu': 1.0.0-beta.57+ '@rolldown/binding-linux-arm64-musl': 1.0.0-beta.57+ '@rolldown/binding-linux-x64-gnu': 1.0.0-beta.57+ '@rolldown/binding-linux-x64-musl': 1.0.0-beta.57+ '@rolldown/binding-openharmony-arm64': 1.0.0-beta.57+ '@rolldown/binding-wasm32-wasi': 1.0.0-beta.57+ '@rolldown/binding-win32-arm64-msvc': 1.0.0-beta.57+ '@rolldown/binding-win32-x64-msvc': 1.0.0-beta.57dependencies:@@ -14417,7 +14179,6 @@ snapshots:dependencies:mri: 1.2.0- optional: true@@ -14623,6 +14384,10 @@ snapshots:+ dependencies:+ unicode-emoji-modifier-base: 1.0.0+@@ -14641,8 +14406,6 @@ snapshots:- [email protected]: {}-dependencies:cross-spawn: 7.0.6@@ -14760,6 +14523,11 @@ snapshots:dependencies:has-flag: 4.0.0+ dependencies:+ has-flag: 4.0.0+ supports-color: 7.2.0+@@ -14830,11 +14598,6 @@ snapshots:- dependencies:- fdir: 6.4.6([email protected])- picomatch: 4.0.2-dependencies:fdir: 6.5.0([email protected])@@ -14886,17 +14649,18 @@ snapshots:'@ts-morph/common': 0.27.0code-block-writer: 13.0.3dependencies:ansis: 4.2.0cac: 6.7.14- chokidar: 5.0.0- diff: 8.0.2+ defu: 6.1.4empathic: 2.0.0- hookable: 5.5.3+ hookable: 6.0.1+ import-without-cache: 0.2.5obug: 2.1.1- rolldown: 1.0.0-beta.52- rolldown-plugin-dts: 0.18.4([email protected])([email protected])+ picomatch: 4.0.3+ rolldown: 1.0.0-beta.57+ rolldown-plugin-dts: 0.20.0([email protected])([email protected])semver: 7.7.3tinyexec: 1.0.2tinyglobby: 0.2.15@@ -14916,34 +14680,6 @@ snapshots:- [email protected]([email protected])([email protected])([email protected])([email protected])([email protected]):- dependencies:- bundle-require: 5.1.0([email protected])- cac: 6.7.14- chokidar: 4.0.3- consola: 3.4.2- debug: 4.4.3([email protected])- esbuild: 0.27.2- fix-dts-default-cjs-exports: 1.0.1- joycon: 3.1.1- picocolors: 1.1.1- postcss-load-config: 6.0.1([email protected])([email protected])([email protected])([email protected])- resolve-from: 5.0.0- rollup: 4.43.0- source-map: 0.7.6- sucrase: 3.35.0- tinyexec: 0.3.2- tinyglobby: 0.2.15- tree-kill: 1.2.2- optionalDependencies:- postcss: 8.5.6- typescript: 5.9.3- transitivePeerDependencies:- - jiti- - supports-color- - tsx- - yaml-dependencies:esbuild: 0.25.5@@ -15036,8 +14772,7 @@ snapshots:transitivePeerDependencies:- supports-color- optional: true+ [email protected]: {}@@ -15076,6 +14811,8 @@ snapshots:pathe: 2.0.3ufo: 1.6.1+ [email protected]: {}+dependencies:crypto-random-string: 4.0.0@@ -15106,8 +14843,7 @@ snapshots:- optional: true+ [email protected]: {}@@ -15531,8 +15267,20 @@ snapshots:optional: true+ [email protected]: {}++ dependencies:+ cliui: 7.0.4+ escalade: 3.2.0+ get-caller-file: 2.0.5+ require-directory: 2.1.1+ string-width: 4.2.3+ y18n: 5.0.8+ yargs-parser: 20.2.9+dependencies:cliui: 8.0.1diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yamlindex ad0265b11..b09a7976a 100644--- a/pnpm-workspace.yaml+++ b/pnpm-workspace.yaml@@ -1,5 +1,7 @@packages:- ts/packages/core+ - ts/e2e-tests/runtimes/node/*+ - ts/e2e-tests/runtimes/cloudflare/*- ts/packages/cli- ts/packages/json-schema-to-zod- ts/packages/json-schema-to-zod/test/e2e/*@@ -13,14 +15,15 @@ packages:- fern/snippets/*catalog:+ '@arethetypeswrong/cli': ^0.18.2'@cloudflare/vitest-pool-workers': ^0.9.2'@cloudflare/workers-types': ^4.20250917.0'@composio/client': 0.1.0-alpha.54'@modelcontextprotocol/sdk': ^1.24.0ai: ^6.0.3openai: ^5.20.3- tsup: ^8.5.0- tsdown: ^0.16.8+ publint: ^0.3.16+ tsdown: ^0.18.4tsx: ^4.20.5typescript: ^5.9.2uuid: ^13.0.0diff --git a/ts/e2e-tests/README.md b/ts/e2e-tests/README.mdnew file mode 100644index 000000000..530b2ef2b--- /dev/null+++ b/ts/e2e-tests/README.md@@ -0,0 +1,62 @@+# E2E Tests++End-to-end tests for `@composio/core` across different JavaScript runtimes.++## Directory Structure++```+ts/e2e-tests/+├── _utils/ # Shared test infrastructure+│ ├── Dockerfile.node # Docker image for Node.js tests+│ └── run-docker-test.sh # Generic Docker test runner+└── runtimes/+ ├── node/ # Node.js runtime tests+ │ ├── cjs-basic/ # CommonJS compatibility tests+ │ └── esm-basic/ # ESM compatibility tests+ └── cloudflare/ # Cloudflare runtime tests+ └── cf-workers-basic/ # Cloudflare Workers tests+```++## Running Tests++### All E2E Tests++```bash+pnpm test:e2e+```++### Node.js Tests Only++```bash+pnpm test:e2e:node+```++Runs Node.js tests in Docker with the default Node.js version (20.19.0).++To run with a specific Node.js version:++```bash+COMPOSIO_E2E_NODE_VERSION=22.12.0 pnpm test:e2e:node+```++### Cloudflare Workers Tests Only++```bash+pnpm test:e2e:cloudflare+```++## Adding New Tests++### Node.js Runtime Tests++1. Create a new directory under `runtimes/node/` (e.g., `runtimes/node/my-test`)+2. Add a `package.json` with name `@test-e2e/node-my-test`+3. Add `test:e2e` and `test:e2e:node` scripts+4. Create a `run-docker-test.sh` that uses the shared `_utils/run-docker-test.sh`++### Cloudflare Runtime Tests++1. Create a new directory under `runtimes/cloudflare/` (e.g., `runtimes/cloudflare/my-test`)+2. Add a `package.json` with name `@test-e2e/cf-my-test`+3. Add `test:e2e` and `test:e2e:cloudflare` scripts+4. Configure vitest with `@cloudflare/vitest-pool-workers`diff --git a/ts/e2e-tests/_utils/Dockerfile.node b/ts/e2e-tests/_utils/Dockerfile.nodenew file mode 100644index 000000000..8cd1acbe8--- /dev/null+++ b/ts/e2e-tests/_utils/Dockerfile.node@@ -0,0 +1,38 @@+# Reusable Dockerfile for Node.js e2e tests+# 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 .+ARG NODE_VERSION=20.19.0++FROM node:${NODE_VERSION}-slim++ENV PNPM_HOME="/pnpm"+ENV PATH="$PNPM_HOME:$PATH"++WORKDIR /app++# Install corepack to use pnpm.+# See: https://vercel.com/kb/guide/corepack-errors-github-actions.+RUN npm i -g corepack@latest && corepack enable++# Copy pnpm workspace files+COPY pnpm-lock.yaml pnpm-workspace.yaml .pnpmfile.cjs package.json tsconfig.base.json tsdown.config.base.ts ./++# Copy all ts/packages (pre-built)+COPY ts/packages/ ./ts/packages/++# Copy e2e tests+COPY ts/e2e-tests/ ./ts/e2e-tests/++# Install dependencies using pnpm+# Note: We intentionally don't use --mount=type=cache for the pnpm store here+# because it causes native binding issues (e.g., rolldown-binding) across builds+RUN pnpm install --frozen-lockfile++# Test directory (relative to /app)+ARG TEST_DIR+WORKDIR /app/${TEST_DIR}++# Command to run the test (e.g., "node test.cjs", "node test.mjs", "pnpm test")+ARG TEST_CMD="echo 'No TEST_CMD specified'"+ENV TEST_CMD=${TEST_CMD}++CMD ["sh", "-c", "${TEST_CMD}"]diff --git a/ts/e2e-tests/_utils/README.md b/ts/e2e-tests/_utils/README.mdnew file mode 100644index 000000000..f78c282aa--- /dev/null+++ b/ts/e2e-tests/_utils/README.md@@ -0,0 +1,33 @@+# E2E Test Utilities++Shared infrastructure for running `@composio/core` end-to-end tests in isolated environments.++## What's Here++| File | Purpose |+| -------------------- | ---------------------------------------------------- |+| `run-docker-test.sh` | Generic Docker-based test runner |+| `Dockerfile.node` | Multi-stage Dockerfile for Node.js test environments |++## Usage++```bash+./run-docker-test.sh \+ --name "my-test" \+ --dir "ts/e2e-tests/runtimes/node/my-suite" \+ --cmd "node test.js" \+ --node "20.19.0"+```++### Arguments++| Argument | Short | Required | Default | Description |+| -------- | ----- | -------- | ----------- | --------------------------------------- |+| `--name` | `-n` | Yes | — | Docker image name |+| `--dir` | `-d` | Yes | — | Test directory (relative to repo root) |+| `--cmd` | `-c` | No | `pnpm test` | Command to execute inside the container |+| `--node` | — | No | `20.19.0` | Node.js version |++## Behavior++Builds an isolated Docker container and runs the test command inside it. Docker is required.diff --git a/ts/e2e-tests/_utils/run-docker-test.sh b/ts/e2e-tests/_utils/run-docker-test.shnew file mode 100755index 000000000..90fd2fb52--- /dev/null+++ b/ts/e2e-tests/_utils/run-docker-test.sh@@ -0,0 +1,94 @@+#!/bin/bash+# Reusable Docker test runner for e2e tests+#+# Usage:+# run-docker-test.sh --name <name> --dir <dir> --cmd <cmd> [--node <version>]+#+# Arguments:+# --name, -n Name for the Docker image (e.g., "composio-cjs-test")+# --dir, -d Relative path from repo root to test directory (e.g., "ts/packages/core/test-e2e/node-cjs")+# --cmd, -c Command to run (e.g., "node test.cjs", "node test.mjs", "pnpm test"). Default: "pnpm test"+# --node Node.js version. Default: 20.19.0+#+# Example:+# ./run-docker-test.sh --name "composio-cjs-test" --dir "ts/packages/core/test-e2e/node-cjs" --cmd "node test.cjs" --node "20.17.0"++set -e++# Default values+NODE_VERSION="20.19.0"+TEST_NAME=""+TEST_DIR=""+TEST_CMD="pnpm test"++# Parse named arguments+while [[ $# -gt 0 ]]; do+ case $1 in+ --name|-n)+ TEST_NAME="$2"+ shift 2+ ;;+ --dir|-d)+ TEST_DIR="$2"+ shift 2+ ;;+ --cmd|-c)+ TEST_CMD="$2"+ shift 2+ ;;+ --node)+ NODE_VERSION="$2"+ shift 2+ ;;+ *)+ echo "Error: Unknown argument '$1'"+ echo "Usage: run-docker-test.sh --name <name> --dir <dir> --cmd <cmd> [--node <version>]"+ exit 1+ ;;+ esac+done++# Validate required arguments+if [[ -z "$TEST_NAME" ]]; then+ echo "Error: --name is required"+ exit 1+fi++if [[ -z "$TEST_DIR" ]]; then+ echo "Error: --dir is required"+ exit 1+fi++if [[ -z "$TEST_CMD" ]]; then+ echo "Error: --cmd is required"+ exit 1+fi++SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"+REPO_ROOT="$(cd "$SCRIPT_DIR/../../.." && pwd)"++echo "🧪 Running Docker e2e test: $TEST_NAME"+echo " Node.js version: $NODE_VERSION"+echo " Test directory: $TEST_DIR"+echo " Test command: $TEST_CMD"+echo ""++echo "🐳 Building test image..."++cd "$REPO_ROOT"++# Build Docker image+docker build \+ -f "$SCRIPT_DIR/Dockerfile.node" \+ --build-arg NODE_VERSION="$NODE_VERSION" \+ --build-arg TEST_DIR="$TEST_DIR" \+ --build-arg TEST_CMD="$TEST_CMD" \+ -t "$TEST_NAME" \+ .++echo ""+echo "🧪 Running test in Docker container..."+docker run --rm "$TEST_NAME"++echo ""+echo "✅ Docker test completed successfully!"diff --git a/ts/e2e-tests/runtimes/cloudflare/cf-workers-basic/.env.example b/ts/e2e-tests/runtimes/cloudflare/cf-workers-basic/.env.examplenew file mode 100644index 000000000..1dd7a48fa--- /dev/null+++ b/ts/e2e-tests/runtimes/cloudflare/cf-workers-basic/.env.example@@ -0,0 +1 @@+COMPOSIO_API_KEY=ak_*diff --git a/ts/e2e-tests/runtimes/cloudflare/cf-workers-basic/README.md b/ts/e2e-tests/runtimes/cloudflare/cf-workers-basic/README.mdnew file mode 100644index 000000000..7a4592af3--- /dev/null+++ b/ts/e2e-tests/runtimes/cloudflare/cf-workers-basic/README.md@@ -0,0 +1,50 @@+# Cloudflare Workers Compatibility Tests++Verifies that `@composio/core` runs correctly in the Cloudflare Workers runtime environment.++## Why This Exists++Cloudflare Workers use a non-Node.js runtime (workerd) with:++- No native Node.js APIs (unless polyfilled)+- Different module resolution+- Restricted global scope+- Web-standard APIs (Fetch, Request, Response)++This suite ensures `@composio/core` works in this constrained environment without relying on Node.js-specific features.++## What It Tests++| Test | Description |+| ---------------------- | ------------------------------------------------------------------- |+| Import & instantiation | Composio class imports and instantiates without runtime errors |+| Provider setup | OpenAIProvider initializes correctly |+| Tool retrieval | `getTools()` returns valid tool definitions |+| Live API call | Execute a real HackerNews action to verify end-to-end functionality |+| Uses LLMs? | ❌ |++## Isolation Tool++- `wrangler`: Cloudflare's CLI that runs a local workerd instance+- `@cloudflare/vitest-pool-workers`: Runs Vitest tests inside the Workers runtime, not Node.js++This combination provides true runtime isolation—tests execute in the same environment as production Workers.++## Setup++1. Copy `.env.example` to `.env` and add your `COMPOSIO_API_KEY`+2. Install dependencies: `pnpm install`++## Running++```bash+# Via pnpm (recommended)+pnpm test:e2e+```++## Configuration++| File | Purpose |+| ------------------- | ---------------------------------------------------- |+| `wrangler.jsonc` | Worker configuration (bindings, compatibility flags) |+| `vitest.config.mts` | Vitest setup with Workers pool and env bindings |diff --git a/ts/e2e-tests/runtimes/cloudflare/cf-workers-basic/package.json b/ts/e2e-tests/runtimes/cloudflare/cf-workers-basic/package.jsonnew file mode 100644index 000000000..5f5ef613f--- /dev/null+++ b/ts/e2e-tests/runtimes/cloudflare/cf-workers-basic/package.json@@ -0,0 +1,25 @@+{+ "name": "@test-e2e/cf-workers-basic",+ "version": "0.0.0",+ "private": true,+ "type": "module",+ "scripts": {+ "test:e2e": "vitest run",+ "test:e2e:cloudflare": "vitest run",+ "dev": "wrangler dev",+ "cf-typegen": "wrangler types"+ },+ "devDependencies": {+ "@cloudflare/vitest-pool-workers": "catalog:",+ "@cloudflare/workers-types": "catalog:",+ "dotenv": "^16.4.5",+ "typescript": "catalog:",+ "vitest": "catalog:",+ "wrangler": "catalog:"+ },+ "dependencies": {+ "@composio/core": "workspace:*",+ "hono": "^4.10.3",+ "openai": "^4.94.0"+ }+}diff --git a/ts/e2e-tests/runtimes/cloudflare/cf-workers-basic/src/index.ts b/ts/e2e-tests/runtimes/cloudflare/cf-workers-basic/src/index.tsnew file mode 100644index 000000000..c6b0f9086--- /dev/null+++ b/ts/e2e-tests/runtimes/cloudflare/cf-workers-basic/src/index.ts@@ -0,0 +1,168 @@+/**+ * E2E test worker for @composio/core platform compatibility.+ * Tests that the platform module correctly resolves to the workerd implementation+ * and that basic Composio SDK operations work without runtime errors.+ */+import { Composio } from '@composio/core';+import { Hono } from 'hono';++type Bindings = {+ COMPOSIO_API_KEY: string;+};++const app = new Hono<{ Bindings: Bindings }>();++/**+ * Default route - lists available test endpoints+ */+app.get('/', c => {+ return c.json({+ message: 'Composio Core Platform E2E Test Worker',+ endpoints: ['/test/import', '/test/files/upload', '/test/files/download', '/test/hackernews'],+ });+});++/**+ * Test: Basic import and instantiation+ * Tests that @composio/core can be imported without runtime errors+ * and the platform module resolves to workerd.ts in this environment+ */+app.get('/test/import', c => {+ try {+ const composio = new Composio({+ apiKey: 'test-api-key', // Dummy key for instantiation test+ });++ return c.json({+ success: true,+ message: 'Composio SDK imported and instantiated successfully',+ hasProvider: typeof composio.provider !== 'undefined',+ hasTools: typeof composio.tools !== 'undefined',+ });+ } catch (error) {+ return c.json(+ {+ success: false,+ error: error instanceof Error ? error.message : String(error),+ stack: error instanceof Error ? error.stack : undefined,+ },+ { status: 500 }+ );+ }+});++/**+ * Test: Files upload operation (should fail in Cloudflare Workers)+ * Tests that files.upload() throws an appropriate error in edge runtimes+ */+app.get('/test/files/upload', async c => {+ try {+ const composio = new Composio({+ apiKey: c.env.COMPOSIO_API_KEY,+ });++ // Attempt to call files.upload - should throw an error+ await composio.files.upload({+ file: 'https://example.com/test.pdf',+ toolSlug: 'test-tool',+ toolkitSlug: 'test-toolkit',+ });++ // If we get here, the test failed - upload should have thrown+ return c.json(+ {+ success: false,+ error: 'Expected files.upload() to throw an error in Cloudflare Workers, but it did not',+ },+ { status: 500 }+ );+ } catch (error) {+ const errorMessage = error instanceof Error ? error.message : String(error);+ const isExpectedError = errorMessage.includes('not supported in Cloudflare Workers');++ return c.json({+ success: isExpectedError,+ message: isExpectedError+ ? 'files.upload() correctly throws an error in Cloudflare Workers'+ : 'files.upload() threw an unexpected error',+ error: errorMessage,+ });+ }+});++/**+ * Test: Files download operation (should fail in Cloudflare Workers)+ * Tests that files.download() throws an appropriate error in edge runtimes+ */+app.get('/test/files/download', async c => {+ try {+ const composio = new Composio({+ apiKey: c.env.COMPOSIO_API_KEY,+ });++ // Attempt to call files.download - should throw an error+ await composio.files.download({+ s3Url: 'https://s3.example.com/test.pdf',+ toolSlug: 'test-tool',+ mimeType: 'application/pdf',+ });++ // If we get here, the test failed - download should have thrown+ return c.json(+ {+ success: false,+ error: 'Expected files.download() to throw an error in Cloudflare Workers, but it did not',+ },+ { status: 500 }+ );+ } catch (error) {+ const errorMessage = error instanceof Error ? error.message : String(error);+ const isExpectedError = errorMessage.includes('not supported in Cloudflare Workers');++ return c.json({+ success: isExpectedError,+ message: isExpectedError+ ? 'files.download() correctly throws an error in Cloudflare Workers'+ : 'files.download() threw an unexpected error',+ error: errorMessage,+ });+ }+});++/**+ * Test: Hackernews user lookup+ * Tests that we can resolve who the 'pg' user is from Hackernews+ * using the HACKERNEWS_GET_USER tool+ */+app.get('/test/hackernews', async c => {+ try {+ const composio = new Composio({+ apiKey: c.env.COMPOSIO_API_KEY,+ });++ const userDetails = await composio.tools.execute('HACKERNEWS_GET_USER', {+ arguments: {+ username: 'pg',+ },+ userId: 'default',+ dangerouslySkipVersionCheck: true,+ });++ return c.json({+ success: true,+ message: 'Successfully fetched HackerNews user pg',+ data: userDetails.data,+ });+ } catch (error) {+ return c.json(+ {+ success: false,+ error: error instanceof Error ? error.message : String(error),+ stack: error instanceof Error ? error.stack : undefined,+ },+ { status: 500 }+ );+ }+});++export default app;diff --git a/ts/e2e-tests/runtimes/cloudflare/cf-workers-basic/test/platform.spec.ts b/ts/e2e-tests/runtimes/cloudflare/cf-workers-basic/test/platform.spec.tsnew file mode 100644index 000000000..af022e8a3--- /dev/null+++ b/ts/e2e-tests/runtimes/cloudflare/cf-workers-basic/test/platform.spec.ts@@ -0,0 +1,119 @@+import { env, createExecutionContext, waitOnExecutionContext } from 'cloudflare:test';+import { describe, it, expect } from 'vitest';+import app from '../src/index';++const IncomingRequest = Request<unknown, IncomingRequestCfProperties>;++describe('@composio/core Cloudflare Workers compatibility', () => {+ it('should list the available endpoints', async () => {+ const request = new IncomingRequest('http://localhost/');+ const ctx = createExecutionContext();+ const response = await app.fetch(request, env, ctx);+ await waitOnExecutionContext(ctx);++ expect(response.status).toBe(200);++ const body = (await response.json()) as {+ message: string;+ endpoints: string[];+ };++ expect(body.message).toContain('Composio Core Platform E2E Test Worker');+ expect(body.endpoints).toMatchInlineSnapshot(`+ [+ "/test/import",+ "/test/files/upload",+ "/test/files/download",+ "/test/hackernews",+ ]+ `);+ });++ it('should import and instantiate Composio without runtime errors', async () => {+ const request = new IncomingRequest('http://localhost/test/import');+ const ctx = createExecutionContext();+ const response = await app.fetch(request, env, ctx);+ await waitOnExecutionContext(ctx);++ expect(response.status).toBe(200);++ const body = (await response.json()) as {+ success: boolean;+ message?: string;+ error?: string;+ hasProvider?: boolean;+ hasTools?: boolean;+ };++ expect(body.success).toBe(true);+ expect(body.message).toContain('successfully');+ expect(body.hasProvider).toBe(true);+ expect(body.hasTools).toBe(true);+ });++ it('should throw an error when calling files.upload() in Cloudflare Workers', async () => {+ const request = new IncomingRequest('http://localhost/test/files/upload');+ const ctx = createExecutionContext();+ const response = await app.fetch(request, env, ctx);+ await waitOnExecutionContext(ctx);++ expect(response.status).toBe(200);++ const body = (await response.json()) as {+ success: boolean;+ message?: string;+ error?: string;+ };++ expect(body.success).toBe(true);+ expect(body.message).toContain('correctly throws an error');+ expect(body.error).toContain('not supported in Cloudflare Workers');+ });++ it('should throw an error when calling files.download() in Cloudflare Workers', async () => {+ const request = new IncomingRequest('http://localhost/test/files/download');+ const ctx = createExecutionContext();+ const response = await app.fetch(request, env, ctx);+ await waitOnExecutionContext(ctx);++ expect(response.status).toBe(200);++ const body = (await response.json()) as {+ success: boolean;+ message?: string;+ error?: string;+ };++ expect(body.success).toBe(true);+ expect(body.message).toContain('correctly throws an error');+ expect(body.error).toContain('not supported in Cloudflare Workers');+ });++ it('should fetch HackerNews user pg successfully', async () => {+ const request = new IncomingRequest('http://localhost/test/hackernews');+ const ctx = createExecutionContext();+ const response = await app.fetch(request, env, ctx);+ await waitOnExecutionContext(ctx);++ const body = (await response.json()) as {+ success: boolean;+ message?: string;+ error?: string;+ data?: {+ response_data: {+ username: string;+ karma: number;+ about?: string;+ };+ };+ };++ console.log('HackerNews response:', JSON.stringify(body, null, 2));++ expect(response.status).toBe(200);+ expect(body.success).toBe(true);+ expect(body.message).toContain('pg');+ expect(body.data?.response_data?.username).toBe('pg');+ expect(body.data?.response_data?.karma).toBeGreaterThan(0);+ });+});diff --git a/ts/e2e-tests/runtimes/cloudflare/cf-workers-basic/tsconfig.json b/ts/e2e-tests/runtimes/cloudflare/cf-workers-basic/tsconfig.jsonnew file mode 100644index 000000000..b30f6f4d1--- /dev/null+++ b/ts/e2e-tests/runtimes/cloudflare/cf-workers-basic/tsconfig.json@@ -0,0 +1,18 @@+{+ "compilerOptions": {+ "target": "es2022",+ "lib": ["es2022"],+ "module": "es2022",+ "moduleResolution": "Bundler",+ "resolveJsonModule": true,+ "allowJs": true,+ "noEmit": true,+ "isolatedModules": true,+ "allowSyntheticDefaultImports": true,+ "forceConsistentCasingInFileNames": true,+ "strict": true,+ "skipLibCheck": true,+ "types": ["@cloudflare/workers-types/2023-07-01"]+ },+ "include": ["src/**/*.ts", "test/**/*.ts"]+}diff --git a/ts/e2e-tests/runtimes/cloudflare/cf-workers-basic/vitest.config.mts b/ts/e2e-tests/runtimes/cloudflare/cf-workers-basic/vitest.config.mtsnew file mode 100644index 000000000..d108889ef--- /dev/null+++ b/ts/e2e-tests/runtimes/cloudflare/cf-workers-basic/vitest.config.mts@@ -0,0 +1,19 @@+import { defineWorkersConfig } from '@cloudflare/vitest-pool-workers/config';+import { config } from 'dotenv';++config();++export default defineWorkersConfig({+ test: {+ poolOptions: {+ workers: {+ wrangler: { configPath: './wrangler.jsonc' },+ miniflare: {+ bindings: {+ COMPOSIO_API_KEY: process.env.COMPOSIO_API_KEY!,+ },+ },+ },+ },+ },+});diff --git a/ts/e2e-tests/runtimes/cloudflare/cf-workers-basic/wrangler.jsonc b/ts/e2e-tests/runtimes/cloudflare/cf-workers-basic/wrangler.jsoncnew file mode 100644index 000000000..dab33aeea--- /dev/null+++ b/ts/e2e-tests/runtimes/cloudflare/cf-workers-basic/wrangler.jsonc@@ -0,0 +1,7 @@+{+ "$schema": "node_modules/wrangler/config-schema.json",+ "name": "composio-core-platform-test",+ "main": "src/index.ts",+ "compatibility_date": "2025-01-10",+ // "compatibility_flags": ["nodejs_compat"]+}diff --git a/ts/e2e-tests/runtimes/node/cjs-basic/.gitignore b/ts/e2e-tests/runtimes/node/cjs-basic/.gitignorenew file mode 100644index 000000000..3ddec9a2f--- /dev/null+++ b/ts/e2e-tests/runtimes/node/cjs-basic/.gitignore@@ -0,0 +1 @@+.docker-context/diff --git a/ts/e2e-tests/runtimes/node/cjs-basic/README.md b/ts/e2e-tests/runtimes/node/cjs-basic/README.mdnew file mode 100644index 000000000..e486aa7ab--- /dev/null+++ b/ts/e2e-tests/runtimes/node/cjs-basic/README.md@@ -0,0 +1,41 @@+# Node.js CommonJS Compatibility Tests++Verifies that `@composio/core` works correctly when imported via `require()` in CommonJS environments.++## Why This Exists++Many Node.js projects still use CommonJS. This suite ensures:++- `require('@composio/core')` resolves without errors+- All public exports are accessible+- Classes can be instantiated+- No ESM-only syntax leaks into CJS builds++## What It Tests++| Test | Description |+| --------------------- | ----------------------------------------- |+| Basic require | `require('@composio/core')` doesn't throw |+| Composio class | Main class is exported and constructible |+| OpenAIProvider | Provider class exports and instantiation |+| AuthScheme | Auth enum is accessible |+| ComposioError | Error classes are exported |+| jsonSchemaToZodSchema | Utility function is exported |+| constants | Constants namespace is accessible |+| logger | Logger instance is exported |+| Uses LLMs? | ❌ |++## Isolation Tool++**Docker** with specific Node.js versions (20.17.0, 20.19.0)++This ensures tests run against exact Node.js versions independent of the developer's local setup, catching version-specific module resolution issues.++## Running++```bash+# Via pnpm (recommended)+pnpm test:e2e+```++The test runs on different Node.js versions (20.17.0 and 20.19.0) to catch regressions across versions.diff --git a/ts/e2e-tests/runtimes/node/cjs-basic/package.json b/ts/e2e-tests/runtimes/node/cjs-basic/package.jsonnew file mode 100644index 000000000..708f4f2bd--- /dev/null+++ b/ts/e2e-tests/runtimes/node/cjs-basic/package.json@@ -0,0 +1,12 @@+{+ "name": "@test-e2e/node-cjs-basic",+ "version": "0.0.0",+ "private": true,+ "scripts": {+ "test:e2e": "bash run-docker-test.sh",+ "test:e2e:node": "bash run-docker-test.sh"+ },+ "devDependencies": {+ "@composio/core": "workspace:*"+ }+}diff --git a/ts/e2e-tests/runtimes/node/cjs-basic/run-docker-test.sh b/ts/e2e-tests/runtimes/node/cjs-basic/run-docker-test.shnew file mode 100755index 000000000..060dbd547--- /dev/null+++ b/ts/e2e-tests/runtimes/node/cjs-basic/run-docker-test.sh@@ -0,0 +1,16 @@+#!/bin/bash+# CJS compatibility e2e test runner+# Uses shared Docker test infrastructure from _utils/++set -e++SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"+UTILS_DIR="$SCRIPT_DIR/../../../_utils"++NODE_VERSION="${COMPOSIO_E2E_NODE_VERSION:-20.19.0}"++"$UTILS_DIR/run-docker-test.sh" \+ --name "composio-cjs-test-${NODE_VERSION}" \+ --dir "ts/e2e-tests/runtimes/node/cjs-basic" \+ --cmd "node test.cjs" \+ --node "$NODE_VERSION"diff --git a/ts/e2e-tests/runtimes/node/cjs-basic/test.cjs b/ts/e2e-tests/runtimes/node/cjs-basic/test.cjsnew file mode 100644index 000000000..a16f066a1--- /dev/null+++ b/ts/e2e-tests/runtimes/node/cjs-basic/test.cjs@@ -0,0 +1,77 @@+/**+ * CommonJS compatibility test for @composio/core+ * This test verifies that the package can be imported using require() in Node.js+ */++'use strict';++const assert = require('node:assert');++console.log('🧪 Testing CommonJS compatibility for @composio/core...\n');++// Test 1: Basic require() works+console.log('Test 1: require("@composio/core") should not throw...');+let composioModule;+try {+ composioModule = require('@composio/core');+ console.log('✅ Test 1 passed: require() succeeded\n');+} catch (error) {+ console.error('❌ Test 1 failed: require() threw an error');+ console.error(error);+ process.exit(1);+}++// Test 2: Composio class is exported+console.log('Test 2: Composio class should be exported...');+assert.ok(composioModule.Composio, 'Composio class should be exported');+assert.strictEqual(typeof composioModule.Composio, 'function', 'Composio should be a constructor');+console.log('✅ Test 2 passed: Composio class is exported\n');++// Test 3: OpenAIProvider class is exported+console.log('Test 3: OpenAIProvider class should be exported...');+assert.ok(composioModule.OpenAIProvider, 'OpenAIProvider class should be exported');+assert.strictEqual(typeof composioModule.OpenAIProvider, 'function', 'OpenAIProvider should be a constructor');+console.log('✅ Test 3 passed: OpenAIProvider class is exported\n');++// Test 4: Can instantiate OpenAIProvider (doesn't require API key)+console.log('Test 4: OpenAIProvider should be instantiable...');+try {+ const provider = new composioModule.OpenAIProvider();+ assert.ok(provider, 'Provider instance should exist');+ console.log('✅ Test 4 passed: OpenAIProvider instantiated successfully\n');+} catch (error) {+ console.error('❌ Test 4 failed: Could not instantiate OpenAIProvider');+ console.error(error);+ process.exit(1);+}++// Test 5: AuthScheme is exported+console.log('Test 5: AuthScheme should be exported...');+assert.ok(composioModule.AuthScheme, 'AuthScheme should be exported');+console.log('✅ Test 5 passed: AuthScheme is exported\n');++// Test 6: Error classes are exported+console.log('Test 6: Error classes should be exported...');+assert.ok(composioModule.ComposioError, 'ComposioError should be exported');+console.log('✅ Test 6 passed: Error classes are exported\n');++// Test 7: jsonSchemaToZodSchema utility is exported+console.log('Test 7: jsonSchemaToZodSchema should be exported...');+assert.ok(composioModule.jsonSchemaToZodSchema, 'jsonSchemaToZodSchema should be exported');+assert.strictEqual(typeof composioModule.jsonSchemaToZodSchema, 'function', 'jsonSchemaToZodSchema should be a function');+console.log('✅ Test 7 passed: jsonSchemaToZodSchema is exported\n');++// Test 8: constants namespace is exported+console.log('Test 8: constants namespace should be exported...');+assert.ok(composioModule.constants, 'constants should be exported');+console.log('✅ Test 8 passed: constants namespace is exported\n');++// Test 9: logger is exported+console.log('Test 9: logger should be exported...');+assert.ok(composioModule.logger, 'logger should be exported');+console.log('✅ Test 9 passed: logger is exported\n');++console.log('========================================');+console.log('🎉 All CommonJS compatibility tests passed!');+console.log('========================================');+process.exit(0);diff --git a/ts/e2e-tests/runtimes/node/esm-basic/README.md b/ts/e2e-tests/runtimes/node/esm-basic/README.mdnew file mode 100644index 000000000..cc3c77b33--- /dev/null+++ b/ts/e2e-tests/runtimes/node/esm-basic/README.md@@ -0,0 +1,45 @@+# Node.js ESM Compatibility Tests++Verifies that `@composio/core` works correctly when imported via `import` in ES Module environments.++## Why This Exists++ESM is the modern JavaScript module standard. This suite ensures:++- `import('@composio/core')` resolves without errors+- Named imports work (`import { Composio } from '@composio/core'`)+- All public exports are accessible+- No CJS-only patterns break ESM consumers++## What It Tests++| Test | Description |+| --------------------- | ---------------------------------------- |+| Dynamic import | `import('@composio/core')` doesn't throw |+| Composio class | Main class is exported and constructible |+| OpenAIProvider | Provider class exports and instantiation |+| AuthScheme | Auth enum is accessible |+| ComposioError | Error classes are exported |+| jsonSchemaToZodSchema | Utility function is exported |+| constants | Constants namespace is accessible |+| logger | Logger instance is exported |+| Named imports | Destructuring imports work correctly |+| Uses LLMs? | ❌ |++## Isolation Tool++**Docker** with specific Node.js versions (20.17.0, 20.19.0)++This ensures tests run against exact Node.js versions independent of the developer's local setup, catching version-specific ESM resolution issues.++## Running++```bash+# Via pnpm (recommended)+pnpm test:e2e++# Direct execution+bash run-docker-test.sh+```++The test runs on different Node.js versions (20.17.0 and 20.19.0) to catch regressions across versions.diff --git a/ts/e2e-tests/runtimes/node/esm-basic/package.json b/ts/e2e-tests/runtimes/node/esm-basic/package.jsonnew file mode 100644index 000000000..dee3d74e1--- /dev/null+++ b/ts/e2e-tests/runtimes/node/esm-basic/package.json@@ -0,0 +1,13 @@+{+ "name": "@test-e2e/node-esm-basic",+ "version": "0.0.0",+ "private": true,+ "type": "module",+ "scripts": {+ "test:e2e": "bash run-docker-test.sh",+ "test:e2e:node": "bash run-docker-test.sh"+ },+ "devDependencies": {+ "@composio/core": "workspace:*"+ }+}diff --git a/ts/e2e-tests/runtimes/node/esm-basic/run-docker-test.sh b/ts/e2e-tests/runtimes/node/esm-basic/run-docker-test.shnew file mode 100755index 000000000..ad93079ae--- /dev/null+++ b/ts/e2e-tests/runtimes/node/esm-basic/run-docker-test.sh@@ -0,0 +1,16 @@+#!/bin/bash+# ESM compatibility e2e test runner+# Uses shared Docker test infrastructure from _utils/++set -e++SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"+UTILS_DIR="$SCRIPT_DIR/../../../_utils"++NODE_VERSION="${COMPOSIO_E2E_NODE_VERSION:-20.19.0}"++"$UTILS_DIR/run-docker-test.sh" \+ --name "composio-esm-test-${NODE_VERSION}" \+ --dir "ts/e2e-tests/runtimes/node/esm-basic" \+ --cmd "node test.mjs" \+ --node "$NODE_VERSION"diff --git a/ts/e2e-tests/runtimes/node/esm-basic/test.mjs b/ts/e2e-tests/runtimes/node/esm-basic/test.mjsnew file mode 100644index 000000000..ff598d464--- /dev/null+++ b/ts/e2e-tests/runtimes/node/esm-basic/test.mjs@@ -0,0 +1,88 @@+/**+ * ESM compatibility test for @composio/core+ * This test verifies that the package can be imported using ESM import syntax in Node.js+ */++import assert from 'node:assert';++console.log('🧪 Testing ESM compatibility for @composio/core...\n');++// Test 1: Dynamic import works+console.log('Test 1: import("@composio/core") should not throw...');+let composioModule;+try {+ composioModule = await import('@composio/core');+ console.log('✅ Test 1 passed: import() succeeded\n');+} catch (error) {+ console.error('❌ Test 1 failed: import() threw an error');+ console.error(error);+ process.exit(1);+}++// Test 2: Composio class is exported+console.log('Test 2: Composio class should be exported...');+assert.ok(composioModule.Composio, 'Composio class should be exported');+assert.strictEqual(typeof composioModule.Composio, 'function', 'Composio should be a constructor');+console.log('✅ Test 2 passed: Composio class is exported\n');++// Test 3: OpenAIProvider class is exported+console.log('Test 3: OpenAIProvider class should be exported...');+assert.ok(composioModule.OpenAIProvider, 'OpenAIProvider class should be exported');+assert.strictEqual(typeof composioModule.OpenAIProvider, 'function', 'OpenAIProvider should be a constructor');+console.log('✅ Test 3 passed: OpenAIProvider class is exported\n');++// Test 4: Can instantiate OpenAIProvider (doesn't require API key)+console.log('Test 4: OpenAIProvider should be instantiable...');+try {+ const provider = new composioModule.OpenAIProvider();+ assert.ok(provider, 'Provider instance should exist');+ console.log('✅ Test 4 passed: OpenAIProvider instantiated successfully\n');+} catch (error) {+ console.error('❌ Test 4 failed: Could not instantiate OpenAIProvider');+ console.error(error);+ process.exit(1);+}++// Test 5: AuthScheme is exported+console.log('Test 5: AuthScheme should be exported...');+assert.ok(composioModule.AuthScheme, 'AuthScheme should be exported');+console.log('✅ Test 5 passed: AuthScheme is exported\n');++// Test 6: Error classes are exported+console.log('Test 6: Error classes should be exported...');+assert.ok(composioModule.ComposioError, 'ComposioError should be exported');+console.log('✅ Test 6 passed: Error classes are exported\n');++// Test 7: jsonSchemaToZodSchema utility is exported+console.log('Test 7: jsonSchemaToZodSchema should be exported...');+assert.ok(composioModule.jsonSchemaToZodSchema, 'jsonSchemaToZodSchema should be exported');+assert.strictEqual(typeof composioModule.jsonSchemaToZodSchema, 'function', 'jsonSchemaToZodSchema should be a function');+console.log('✅ Test 7 passed: jsonSchemaToZodSchema is exported\n');++// Test 8: constants namespace is exported+console.log('Test 8: constants namespace should be exported...');+assert.ok(composioModule.constants, 'constants should be exported');+console.log('✅ Test 8 passed: constants namespace is exported\n');++// Test 9: logger is exported+console.log('Test 9: logger should be exported...');+assert.ok(composioModule.logger, 'logger should be exported');+console.log('✅ Test 9 passed: logger is exported\n');++// Test 10: Static import works (test via re-export)+console.log('Test 10: Static import syntax should work...');+try {+ const { Composio, OpenAIProvider } = await import('@composio/core');+ assert.ok(Composio, 'Named import Composio should work');+ assert.ok(OpenAIProvider, 'Named import OpenAIProvider should work');+ console.log('✅ Test 10 passed: Static import syntax works\n');+} catch (error) {+ console.error('❌ Test 10 failed: Static import syntax threw an error');+ console.error(error);+ process.exit(1);+}++console.log('========================================');+console.log('🎉 All ESM compatibility tests passed!');+console.log('========================================');+process.exit(0);diff --git a/ts/packages/cli/package.json b/ts/packages/cli/package.jsonindex 9dcdc4d20..43ef78a00 100644--- a/ts/packages/cli/package.json+++ b/ts/packages/cli/package.json@@ -2,7 +2,7 @@"name": "@composio/cli","version": "0.1.24","description": "Composio CLI",- "main": "dist/bin.js",+ "main": "./dist/bin.mjs","bin": {"composio": "./dist/composio"},@@ -14,8 +14,8 @@},"publishConfig": {"access": "public",- "main": "dist/bin.js",- "types": "dist/bin.d.ts"+ "main": "dist/bin.mjs",+ "types": "dist/bin.d.mts"},"files": ["README.md",@@ -28,7 +28,7 @@"install:bin": "bun run ./scripts/install-binary.ts ./dist/composio","mock": "bun run ./scripts/copy-mocks-from-cache.ts","prebuild": "pnpm run typecheck",- "build": "tsup",+ "build": "tsdown","bin": "./dist/composio","test": "vitest run","prepublishOnly": "pnpm run build && pnpm run build:bin",@@ -53,7 +53,7 @@"@types/decompress": "^4.2.7","@types/semver": "^7.7.0","tempy": "^3.1.0",- "tsup": "catalog:",+ "tsdown": "catalog:","tsx": "catalog:","typescript": "catalog:","vitest": "catalog:"@@ -79,5 +79,11 @@"superjson": "^2.2.2","ts-morph": "^26.0.0"},- "gitHead": "4fae6e54d5c150fba955cc5fa314281da5a1e064"+ "gitHead": "4fae6e54d5c150fba955cc5fa314281da5a1e064",+ "module": "./dist/bin.mjs",+ "types": "./dist/bin.d.mts",+ "exports": {+ ".": "./dist/bin.mjs",+ "./package.json": "./package.json"+ }}diff --git a/ts/packages/cli/tsdown.config.ts b/ts/packages/cli/tsdown.config.tsnew file mode 100644index 000000000..03f9673f3--- /dev/null+++ b/ts/packages/cli/tsdown.config.ts@@ -0,0 +1,15 @@+import { defineConfig } from 'tsdown';+import { baseConfig } from '../../../tsdown.config.base';++export default defineConfig({+ ...baseConfig,+ entry: ['src/bin.ts'],+ format: ['esm'],+ tsconfig: './tsconfig.src.json',+ banner: {+ js: '#!/usr/bin/env bun',+ },+ external: undefined,+ publint: undefined,+ attw: undefined,+});diff --git a/ts/packages/cli/tsup.config.ts b/ts/packages/cli/tsup.config.tsdeleted file mode 100644index 390e56c88..000000000--- a/ts/packages/cli/tsup.config.ts+++ /dev/null@@ -1,14 +0,0 @@-import { defineConfig } from 'tsup';--export default defineConfig({- entry: ['src/bin.ts'],- format: ['esm'],- dts: true,- clean: true,- minify: false,- outDir: 'dist',- tsconfig: './tsconfig.src.json',- banner: {- js: '#!/usr/bin/env bun',- },-});diff --git a/ts/packages/core/generated/index.d.ts b/ts/packages/core/generated/index.d.tsnew file mode 100644index 000000000..064c34290--- /dev/null+++ b/ts/packages/core/generated/index.d.ts@@ -0,0 +1,6 @@+/**+ * Stub file for @composio/core/generated exports.+ * Run `composio ts generate` to generate the actual toolkit types.+ */++export declare const Toolkits: {};diff --git a/ts/packages/core/generated/index.js b/ts/packages/core/generated/index.jsnew file mode 100644index 000000000..49141010c--- /dev/null+++ b/ts/packages/core/generated/index.js@@ -0,0 +1,18 @@+/**+ * Stub file for @composio/core/generated exports.+ * Run `composio ts generate` to generate the actual toolkit types.+ */++const ERROR_MESSAGE = `+@composio/core/generated has not been initialized.+Please run \`composio ts generate\` in your project to generate the toolkit types.+`;++export const Toolkits = new Proxy(+ {},+ {+ get(_, prop) {+ throw new Error(ERROR_MESSAGE);+ },+ }+);diff --git a/ts/packages/core/package.json b/ts/packages/core/package.jsonindex c71cfdf40..4e8dcb1ea 100644--- a/ts/packages/core/package.json+++ b/ts/packages/core/package.json@@ -1,33 +1,95 @@{"name": "@composio/core",+ "type": "module","version": "0.4.0","description": "","main": "src/index.ts",- "type": "module","publishConfig": {"access": "public","main": "dist/index.mjs","types": "dist/index.d.mts"},+ "imports": {+ "#platform": {+ "workerd": "./dist/platform/workerd.mjs",+ "edge-light": "./dist/platform/workerd.mjs",+ "node": {+ "import": "./dist/platform/node.mjs",+ "require": "./dist/platform/node.cjs"+ },+ "default": {+ "import": "./dist/platform/node.mjs",+ "require": "./dist/platform/node.cjs"+ }+ },+ "#files": {+ "workerd": "./dist/models/Files.workerd.mjs",+ "edge-light": "./dist/models/Files.workerd.mjs",+ "node": {+ "import": "./dist/models/Files.node.mjs",+ "require": "./dist/models/Files.node.cjs"+ },+ "default": {+ "import": "./dist/models/Files.node.mjs",+ "require": "./dist/models/Files.node.cjs"+ }+ }+ },"exports": {".": {- "import": "./dist/index.mjs",- "types": {- "import": "./dist/index.d.mts",- "require": "./dist/index.d.cts",- "default": "./dist/index.d.cts"+ "import": {+ "types": "./dist/index.d.mts",+ "default": "./dist/index.mjs"+ },+ "require": {+ "types": "./dist/index.d.cts",+ "default": "./dist/index.cjs"+ },+ "default": {+ "types": "./dist/index.d.cts",+ "default": "./dist/index.cjs"+ }+ },+ "./platform": {+ "workerd": {+ "types": "./dist/platform/workerd.d.mts",+ "default": "./dist/platform/workerd.mjs"+ },+ "edge-light": {+ "types": "./dist/platform/workerd.d.mts",+ "default": "./dist/platform/workerd.mjs"+ },+ "node": {+ "import": {+ "types": "./dist/platform/node.d.mts",+ "default": "./dist/platform/node.mjs"+ },+ "require": {+ "types": "./dist/platform/node.d.cts",+ "default": "./dist/platform/node.cjs"+ }},- "require": "./dist/index.cjs"+ "default": {+ "import": {+ "types": "./dist/platform/node.d.mts",+ "default": "./dist/platform/node.mjs"+ },+ "require": {+ "types": "./dist/platform/node.d.cts",+ "default": "./dist/platform/node.cjs"+ }+ }},"./generated": {- "import": "./generated/index.js",- "types": "./generated/index.d.ts"+ "types": "./generated/index.d.ts",+ "default": "./generated/index.js"}},"files": ["README.md","dist",- "generated"+ "generated",+ "src/platform"],"scripts": {"clean": "git clean -xdf node_modules",@@ -44,7 +106,6 @@"@type-challenges/utils": "^0.1.1","@types/semver": "^7.7.0","tsdown": "catalog:",- "tsup": "catalog:","tsx": "catalog:","typedoc": "^0.28.5","typescript": "catalog:",@@ -62,7 +123,6 @@"openai": "^5.16.0","pusher-js": "^8.4.0","semver": "^7.7.2",- "uuid": "catalog:","zod-to-json-schema": "catalog:"},"gitHead": "4fae6e54d5c150fba955cc5fa314281da5a1e064"diff --git a/ts/packages/core/src/composio.ts b/ts/packages/core/src/composio.tsindex dd539fe3d..b9f960852 100644--- a/ts/packages/core/src/composio.ts+++ b/ts/packages/core/src/composio.ts@@ -14,7 +14,7 @@ import { checkForLatestVersionFromNPM } from './utils/version';import { OpenAIProvider } from './provider/OpenAIProvider';import { version } from '../package.json';import type { ComposioRequestHeaders } from './types/composio.types';-import { Files } from './models/Files';+import { Files } from '#files';import { getDefaultHeaders } from './utils/session';import { ToolkitVersionParam } from './types/tool.types';import { ToolRouter } from './models/ToolRouter';diff --git a/ts/packages/core/src/models/Files.ts b/ts/packages/core/src/models/Files.node.tssimilarity index 100%rename from ts/packages/core/src/models/Files.tsrename to ts/packages/core/src/models/Files.node.tsdiff --git a/ts/packages/core/src/models/Files.workerd.ts b/ts/packages/core/src/models/Files.workerd.tsnew file mode 100644index 000000000..553dcd142--- /dev/null+++ b/ts/packages/core/src/models/Files.workerd.ts@@ -0,0 +1,49 @@+/**+ * @fileoverview Files class stub for Cloudflare Workers / Edge runtimes.+ * File upload and download operations are not supported in these environments.+ *+ * @author Composio Team+ * @module Files+ */+import ComposioClient from '@composio/client';++const UNSUPPORTED_MESSAGE =+ 'File operations (upload/download) are not supported in Cloudflare Workers or Edge runtimes. ' ++ 'These operations require Node.js-specific APIs (Buffer, crypto, file system) that are not available ' ++ 'in this environment. Please use a Node.js runtime for file operations.';++/**+ * Creates a Proxy that throws a user-friendly error when any method is accessed.+ * This ensures that users get a clear error message when attempting to use+ * file operations in unsupported environments.+ */+const createUnsupportedFilesProxy = (): Files => {+ const handler: ProxyHandler<object> = {+ get(_target, prop) {+ // Allow access to constructor name for debugging+ if (prop === Symbol.toStringTag) {+ return 'Files';+ }+ if (prop === 'constructor') {+ return Files;+ }+ // For any method access, return a function that throws+ return () => {+ throw new Error(UNSUPPORTED_MESSAGE);+ };+ },+ };++ return new Proxy({}, handler) as Files;+};++/**+ * Files class for Cloudflare Workers / Edge runtimes.+ * All methods throw an error indicating that file operations are not supported.+ */+export class Files {+ constructor(_client: ComposioClient) {+ // Return a Proxy instead of the actual instance+ return createUnsupportedFilesProxy();+ }+}diff --git a/ts/packages/core/src/platform/index.ts b/ts/packages/core/src/platform/index.tsnew file mode 100644index 000000000..e4e93824b--- /dev/null+++ b/ts/packages/core/src/platform/index.ts@@ -0,0 +1,2 @@+export type { Platform } from './types';+export { platform } from '#platform';diff --git a/ts/packages/core/src/platform/node.ts b/ts/packages/core/src/platform/node.tsnew file mode 100644index 000000000..b1a7df5b9--- /dev/null+++ b/ts/packages/core/src/platform/node.ts@@ -0,0 +1,51 @@+import * as fs from 'node:fs';+import * as os from 'node:os';+import * as path from 'node:path';+import type { Platform } from './types';++/**+ * Node.js platform implementation.+ * Provides full file system and OS operations using Node.js built-in modules.+ */+export const platform: Platform = {+ supportsFileSystem: true,++ homedir(): string | null {+ try {+ return os.homedir();+ } catch {+ return null;+ }+ },++ joinPath(...paths: string[]): string {+ return path.join(...paths);+ },++ basename(filePath: string): string {+ return path.basename(filePath);+ },++ existsSync(filePath: string): boolean {+ return fs.existsSync(filePath);+ },++ mkdirSync(dirPath: string): void {+ fs.mkdirSync(dirPath, { recursive: true });+ },++ readFileSync(filePath: string, encoding?: BufferEncoding): string | Buffer {+ if (encoding) {+ return fs.readFileSync(filePath, encoding);+ }+ return fs.readFileSync(filePath);+ },++ writeFileSync(filePath: string, content: string | Buffer, encoding?: BufferEncoding): void {+ if (encoding && typeof content === 'string') {+ fs.writeFileSync(filePath, content, encoding);+ } else {+ fs.writeFileSync(filePath, content);+ }+ },+};diff --git a/ts/packages/core/src/platform/types.ts b/ts/packages/core/src/platform/types.tsnew file mode 100644index 000000000..6e59614dd--- /dev/null+++ b/ts/packages/core/src/platform/types.ts@@ -0,0 +1,60 @@+/**+ * Platform abstraction for file system and OS operations.+ * This interface allows different implementations for Node.js and edge runtimes (e.g., Cloudflare Workers).+ */+export interface Platform {+ /**+ * Returns the user's home directory path.+ * @returns The home directory path, or null if unavailable (e.g., in edge runtimes).+ */+ homedir(): string | null;++ /**+ * Joins path segments into a single path.+ * @param paths - Path segments to join.+ * @returns The joined path.+ */+ joinPath(...paths: string[]): string;++ /**+ * Returns the last portion of a path (the filename).+ * @param filePath - The path to extract the basename from.+ * @returns The basename of the path.+ */+ basename(filePath: string): string;++ /**+ * Checks if a file or directory exists at the given path.+ * @param filePath - The path to check.+ * @returns True if the path exists, false otherwise.+ */+ existsSync(filePath: string): boolean;++ /**+ * Creates a directory at the given path, including parent directories if needed.+ * @param dirPath - The directory path to create.+ */+ mkdirSync(dirPath: string): void;++ /**+ * Reads a file synchronously and returns its contents.+ * @param filePath - The path to the file.+ * @param encoding - Optional encoding (e.g., 'utf8'). If not provided, returns a Buffer.+ * @returns The file contents as a string (if encoding provided) or Buffer.+ */+ readFileSync(filePath: string, encoding?: BufferEncoding): string | Buffer;++ /**+ * Writes content to a file synchronously.+ * @param filePath - The path to the file.+ * @param content - The content to write (string or Buffer).+ * @param encoding - Optional encoding for string content.+ */+ writeFileSync(filePath: string, content: string | Buffer, encoding?: BufferEncoding): void;++ /**+ * Indicates whether this platform supports file system operations.+ * Edge runtimes like Cloudflare Workers return false.+ */+ readonly supportsFileSystem: boolean;+}diff --git a/ts/packages/core/src/platform/workerd.ts b/ts/packages/core/src/platform/workerd.tsnew file mode 100644index 000000000..b125e6ffd--- /dev/null+++ b/ts/packages/core/src/platform/workerd.ts@@ -0,0 +1,57 @@+import type { Platform } from './types';++/**+ * Cloudflare Workers / Edge runtime platform implementation.+ * Provides stub implementations for file system operations that are unavailable in edge runtimes.+ * All file system operations gracefully return null/empty values or throw descriptive errors.+ */+export const platform: Platform = {+ supportsFileSystem: false,++ homedir(): string | null {+ // Home directory is not available in edge runtimes+ return null;+ },++ joinPath(...paths: string[]): string {+ // Simple path joining without Node.js path module+ return paths+ .map((segment, index) => {+ if (index === 0) {+ return segment.replace(/\/+$/, '');+ }+ return segment.replace(/^\/+|\/+$/g, '');+ })+ .filter(Boolean)+ .join('/');+ },++ basename(filePath: string): string {+ // Simple basename extraction without Node.js path module+ const segments = filePath.replace(/\/+$/, '').split('/');+ return segments[segments.length - 1] || '';+ },++ existsSync(_filePath: string): boolean {+ // File system is not available in edge runtimes+ return false;+ },++ mkdirSync(_dirPath: string): void {+ // No-op in edge runtimes - directories cannot be created+ },++ readFileSync(_filePath: string, _encoding?: BufferEncoding): never {+ throw new Error(+ 'File system operations are not supported in this runtime environment (Cloudflare Workers/Edge). ' ++ 'Use environment variables or external storage services instead.'+ );+ },++ writeFileSync(_filePath: string, _content: string | Buffer, _encoding?: BufferEncoding): never {+ throw new Error(+ 'File system operations are not supported in this runtime environment (Cloudflare Workers/Edge). ' ++ 'Use environment variables or external storage services instead.'+ );+ },+};diff --git a/ts/packages/core/src/types/files.types.ts b/ts/packages/core/src/types/files.types.tsindex 6c2a00041..27526efa1 100644--- a/ts/packages/core/src/types/files.types.ts+++ b/ts/packages/core/src/types/files.types.ts@@ -8,5 +8,8 @@ export type FileDownloadData = {name: string;mimeType: string;s3Url: string;+ /**+ * @todo: actually, this can be null.+ */filePath: string;};diff --git a/ts/packages/core/src/utils/fileUtils.ts b/ts/packages/core/src/utils/fileUtils.tsindex 01ffe37c5..a795cf9d8 100644--- a/ts/packages/core/src/utils/fileUtils.ts+++ b/ts/packages/core/src/utils/fileUtils.ts@@ -1,10 +1,10 @@import crypto from 'crypto';-import pathModule from 'path';import ComposioClient from '@composio/client';import { COMPOSIO_DIR, TEMP_FILES_DIRECTORY_NAME } from './constants';import logger from './logger';import { FileDownloadData, FileUploadData } from '../types/files.types';-import { getRandomShortId, getRandomUUID } from './uuid';+import { getRandomShortId } from './uuid';+import { platform } from '#platform';// Helper function to get file extension from MIME typeconst getExtensionFromMimeType = (mimeType: string): string => {@@ -93,17 +93,22 @@ const generateTimestampedFilename = (extension: string, prefix?: string): string};const readFileContent = async (- path: string+ filePath: string): Promise<{ fileName: string; content: string; mimeType: string }> => {try {- const content = require('fs').readFileSync(path);+ if (!platform.supportsFileSystem) {+ throw new Error('File system operations are not supported in this runtime environment');+ }+ const content = platform.readFileSync(filePath);return {- fileName: generateTimestampedFilename(path.split('.').pop() || 'txt'),- content: content.toString('base64'),+ fileName: generateTimestampedFilename(filePath.split('.').pop() || 'txt'),+ content: Buffer.isBuffer(content)+ ? content.toString('base64')+ : Buffer.from(content).toString('base64'),mimeType: 'application/octet-stream',};} catch (error) {- throw new Error(`Error reading file at ${path}: ${error}`);+ throw new Error(`Error reading file at ${filePath}: ${error}`);}};@@ -121,7 +126,7 @@ const readFileContentFromURL = async (// Extract clean filename from URL, removing query parametersconst url = new URL(path);const pathname = url.pathname;- let fileName = pathModule.basename(pathname);+ let fileName = platform.basename(pathname);// If no filename from URL, generate one with appropriate extensionif (!fileName || fileName === '/') {@@ -228,7 +233,7 @@ export const getFileDataAfterUploadingToS3 = async (const fileData = await readFile(file);logger.debug(`Uploading file to S3...`);const s3key = await uploadFileToS3(- pathModule.basename(fileData.fileName),+ platform.basename(fileData.fileName),fileData.content,toolSlug,toolkitSlug,@@ -266,7 +271,11 @@ export const downloadFileFromS3 = async ({name: fileName,mimeType: mimeType,s3Url: s3Url,- filePath: filePath,++ /**+ * @todo: fix in follow-up PR.+ */+ filePath: filePath as string,};};@@ -277,15 +286,13 @@ export const downloadFileFromS3 = async ({*/export const getComposioDir = (createDirIfNotExists: boolean = false) => {try {- // eslint-disable-next-line @typescript-eslint/no-require-imports- const os = require('os');- // eslint-disable-next-line @typescript-eslint/no-require-imports- const path = require('path');- // eslint-disable-next-line @typescript-eslint/no-require-imports- const fs = require('fs');- const composioDir = path.join(os.homedir(), COMPOSIO_DIR);- if (createDirIfNotExists && !fs.existsSync(composioDir)) {- fs.mkdirSync(composioDir, { recursive: true });+ const homeDir = platform.homedir();+ if (!homeDir) {+ return null;+ }+ const composioDir = platform.joinPath(homeDir, COMPOSIO_DIR);+ if (createDirIfNotExists && platform.supportsFileSystem && !platform.existsSync(composioDir)) {+ platform.mkdirSync(composioDir);}return composioDir;} catch (_error) {@@ -300,15 +307,17 @@ export const getComposioDir = (createDirIfNotExists: boolean = false) => {*/export const getComposioTempFilesDir = (createDirIfNotExists: boolean = false) => {try {- // eslint-disable-next-line @typescript-eslint/no-require-imports- const os = require('os');- // eslint-disable-next-line @typescript-eslint/no-require-imports- const path = require('path');- // eslint-disable-next-line @typescript-eslint/no-require-imports- const fs = require('fs');- const composioFilesDir = path.join(os.homedir(), COMPOSIO_DIR, TEMP_FILES_DIRECTORY_NAME);- if (createDirIfNotExists && !fs.existsSync(composioFilesDir)) {- fs.mkdirSync(composioFilesDir, { recursive: true });+ const homeDir = platform.homedir();+ if (!homeDir) {+ return null;+ }+ const composioFilesDir = platform.joinPath(homeDir, COMPOSIO_DIR, TEMP_FILES_DIRECTORY_NAME);+ if (+ createDirIfNotExists &&+ platform.supportsFileSystem &&+ !platform.existsSync(composioFilesDir)+ ) {+ platform.mkdirSync(composioFilesDir);}return composioFilesDir;} catch (_error) {@@ -325,18 +334,22 @@ export const getComposioTempFilesDir = (createDirIfNotExists: boolean = false) =*/export const saveFile = (file: string, content: string | Buffer, isTempFile: boolean = false) => {try {- const path = require('path');- // eslint-disable-next-line @typescript-eslint/no-require-imports- const fs = require('fs');+ if (!platform.supportsFileSystem) {+ logger.debug('File system operations are not supported in this runtime environment');+ return null;+ }const composioFilesDir = isTempFile ? getComposioTempFilesDir(true) : getComposioDir(true);- const filePath = path.join(composioFilesDir, path.basename(file));+ if (!composioFilesDir) {+ return null;+ }+ const filePath = platform.joinPath(composioFilesDir, platform.basename(file));logger.info(`Saving file to: ${filePath}`);if (Buffer.isBuffer(content)) {- fs.writeFileSync(filePath, content);+ platform.writeFileSync(filePath, content);} else {- fs.writeFileSync(filePath, content, 'utf8');+ platform.writeFileSync(filePath, content, 'utf8');}return filePath;diff --git a/ts/packages/core/src/utils/sdk.ts b/ts/packages/core/src/utils/sdk.tsindex e940f2454..fdd76d553 100644--- a/ts/packages/core/src/utils/sdk.ts+++ b/ts/packages/core/src/utils/sdk.ts@@ -4,15 +4,16 @@ import { getEnvsWithPrefix, getEnvVariable } from './env';import logger from './logger';import { ComposioError } from '../errors/ComposioError';import { ToolkitVersion, ToolkitVersionParam, ToolkitVersions } from '../types/tool.types';+import { platform } from '#platform';// File path helpersexport const userDataPath = () => {try {- // eslint-disable-next-line @typescript-eslint/no-require-imports- const path = require('path');- // eslint-disable-next-line @typescript-eslint/no-require-imports- const os = require('os');- return path.join(os.homedir(), COMPOSIO_DIR, USER_DATA_FILE_NAME);+ const homeDir = platform.homedir();+ if (!homeDir) {+ return null;+ }+ return platform.joinPath(homeDir, COMPOSIO_DIR, USER_DATA_FILE_NAME);} catch (_error) {logger.debug('Environment', `Unable to get user data path`);return null;@@ -26,10 +27,12 @@ export const userDataPath = () => {*/export const getUserDataJson = () => {try {- // eslint-disable-next-line @typescript-eslint/no-require-imports- const fs = require('fs');- const data = fs.readFileSync(userDataPath(), 'utf8');- return JSON.parse(data);+ const dataPath = userDataPath();+ if (!dataPath || !platform.supportsFileSystem) {+ return {};+ }+ const data = platform.readFileSync(dataPath, 'utf8');+ return JSON.parse(data as string);} catch (_error) {logger.debug('Environment', 'No user data file found');return {};diff --git a/ts/packages/core/src/utils/uuid.ts b/ts/packages/core/src/utils/uuid.tsindex 72ffa904f..ef34bc2e6 100644--- a/ts/packages/core/src/utils/uuid.ts+++ b/ts/packages/core/src/utils/uuid.ts@@ -1,7 +1,5 @@-import { v4 as uuidv4 } from 'uuid';-export function getRandomUUID(): string {- return uuidv4();+ return globalThis.crypto.randomUUID();}export function getRandomShortId(): string {diff --git a/ts/packages/core/tsconfig.json b/ts/packages/core/tsconfig.jsonindex 0b2af8993..304b67340 100644--- a/ts/packages/core/tsconfig.json+++ b/ts/packages/core/tsconfig.json@@ -10,7 +10,11 @@"esModuleInterop": true,"moduleResolution": "bundler","skipLibCheck": true,- "resolveJsonModule": true+ "resolveJsonModule": true,+ "paths": {+ "#platform": ["./src/platform/node.ts", "./src/platform/workerd.ts"],+ "#files": ["./src/models/Files.node.ts", "./src/models/Files.workerd.ts"]+ }},"include": ["src/**/*.ts"]}diff --git a/ts/packages/core/tsdown.config.ts b/ts/packages/core/tsdown.config.tsindex 6e16c0183..0dadd28da 100644--- a/ts/packages/core/tsdown.config.ts+++ b/ts/packages/core/tsdown.config.ts@@ -1,14 +1,36 @@-import { defineConfig } from 'tsdown';+import { defineConfig, UserConfig } from 'tsdown';+import { baseConfig } from '../../../tsdown.config.base';export default defineConfig({- entry: ['src/index.ts'],- format: ['esm', 'cjs'],- dts: true,- clean: true,- minify: false,- outDir: 'dist',- tsconfig: './tsconfig.build.json',- onSuccess() {- console.info('🙏 Build succeeded!');+ ...baseConfig,+ tsconfig: 'tsconfig.build.json',+ entry: [+ 'src/index.ts',+ 'src/platform/node.ts',+ 'src/platform/workerd.ts',+ 'src/models/Files.node.ts',+ 'src/models/Files.workerd.ts',+ ],+ attw: {+ ...baseConfig.attw,+ ignoreRules: [+ ...(baseConfig.attw?.ignoreRules ?? []),++ /**+ * We currently need `"type": "module"` in `@composio/core` package.json because:+ * - `@composio/cli` tests rely on it+ * - `@composio/cli` users rely on it+ * This causes issus with `attw`.+ *+ * Ideally, we can drop cjs support altogether in `@composio/core`.+ * Alternatively, we'd need to modify `composio ts generate` so that it generates .mjs files (and not .js).+ */+ 'cjs-resolves-to-esm',+ ],},+ /**+ * We don't want to accidentally bundle `node:*` packages (e.g., `node:module`)+ * as not all of them are available in Cloudflare Workers / Vercel Edge runtimes.+ */+ external: [...(baseConfig.external ?? []), '#platform', '#files'],});diff --git a/ts/packages/core/vitest.config.ts b/ts/packages/core/vitest.config.tsnew file mode 100644index 000000000..513fcabc1--- /dev/null+++ b/ts/packages/core/vitest.config.ts@@ -0,0 +1,17 @@+import { defineConfig } from 'vitest/config';+import path from 'node:path';+import { fileURLToPath } from 'node:url';++const __dirname = path.dirname(fileURLToPath(import.meta.url));++export default defineConfig({+ resolve: {+ alias: {+ '#platform': path.resolve(__dirname, 'src/platform/node.ts'),+ '#files': path.resolve(__dirname, 'src/models/Files.node.ts'),+ },+ },+ test: {+ exclude: ['**/node_modules/**', '**/dist/**', '**/test-e2e/**'],+ },+});diff --git a/ts/packages/json-schema-to-zod/package.json b/ts/packages/json-schema-to-zod/package.jsonindex e1e549521..46034d49c 100644--- a/ts/packages/json-schema-to-zod/package.json+++ b/ts/packages/json-schema-to-zod/package.json@@ -3,17 +3,25 @@"version": "0.1.19","description": "","main": "src/index.ts",- "type": "module","publishConfig": {"access": "public",- "main": "dist/index.js",- "types": "dist/index.d.ts"+ "main": "dist/index.mjs",+ "types": "dist/index.d.mts"},"exports": {".": {- "import": "./dist/index.js",- "types": "./dist/index.d.ts",- "require": "./dist/index.cjs"+ "import": {+ "types": "./dist/index.d.mts",+ "default": "./dist/index.mjs"+ },+ "require": {+ "types": "./dist/index.d.cts",+ "default": "./dist/index.cjs"+ },+ "default": {+ "types": "./dist/index.d.cts",+ "default": "./dist/index.cjs"+ }}},"files": [@@ -22,7 +30,7 @@],"scripts": {"clean": "git clean -xdf node_modules",- "build": "tsup",+ "build": "tsdown","test": "vitest run","typecheck:src": "tsc --noEmit -p ./tsconfig.src.json","typecheck:test": "tsc --noEmit -p ./tsconfig.test.json",@@ -35,7 +43,7 @@"devDependencies": {"@types/json-schema": "^7.0.15","@types/node": "^24.0.1",- "tsup": "catalog:",+ "tsdown": "catalog:","typescript": "catalog:","vitest": "catalog:","zod": "catalog:"diff --git a/ts/packages/json-schema-to-zod/tsdown.config.ts b/ts/packages/json-schema-to-zod/tsdown.config.tsnew file mode 100644index 000000000..b1be8d9fc--- /dev/null+++ b/ts/packages/json-schema-to-zod/tsdown.config.ts@@ -0,0 +1,7 @@+import { defineConfig } from 'tsdown';+import { baseConfig } from '../../../tsdown.config.base';++export default defineConfig({+ ...baseConfig,+ tsconfig: 'tsconfig.src.json',+});diff --git a/ts/packages/json-schema-to-zod/tsup.config.ts b/ts/packages/json-schema-to-zod/tsup.config.tsdeleted file mode 100644index f9cdf4040..000000000--- a/ts/packages/json-schema-to-zod/tsup.config.ts+++ /dev/null@@ -1,10 +0,0 @@-import { defineConfig } from 'tsup';--export default defineConfig({- entry: ['src/index.ts'],- format: ['esm', 'cjs'],- dts: true,- clean: true,- minify: false,- outDir: 'dist',-});diff --git a/ts/packages/json-schema-to-zod/vitest.config.ts b/ts/packages/json-schema-to-zod/vitest.config.tsnew file mode 100644index 000000000..7c1beedeb--- /dev/null+++ b/ts/packages/json-schema-to-zod/vitest.config.ts@@ -0,0 +1,8 @@+import { defineConfig } from 'vitest/config';++export default defineConfig({+ test: {+ // Exclude e2e directories - they are separate packages with their own test commands+ exclude: ['**/node_modules/**', '**/dist/**', '**/test/e2e/**'],+ },+});diff --git a/ts/packages/providers/anthropic/package.json b/ts/packages/providers/anthropic/package.jsonindex dc9710d1c..c59c262a5 100644--- a/ts/packages/providers/anthropic/package.json+++ b/ts/packages/providers/anthropic/package.json@@ -3,17 +3,25 @@"version": "0.4.0","description": "Non-Agentic Provider for Anthropic in Composio SDK","main": "src/index.ts",- "type": "module","publishConfig": {"access": "public",- "main": "dist/index.js",- "types": "dist/index.d.ts"+ "main": "dist/index.mjs",+ "types": "dist/index.d.mts"},"exports": {".": {- "import": "./dist/index.js",- "types": "./dist/index.d.ts",- "require": "./dist/index.cjs"+ "import": {+ "types": "./dist/index.d.mts",+ "default": "./dist/index.mjs"+ },+ "require": {+ "types": "./dist/index.d.cts",+ "default": "./dist/index.cjs"+ },+ "default": {+ "types": "./dist/index.d.cts",+ "default": "./dist/index.cjs"+ }}},"files": [@@ -22,7 +30,7 @@],"scripts": {"clean": "git clean -xdf node_modules",- "build": "tsup",+ "build": "tsdown","test": "vitest run"},"keywords": [@@ -40,7 +48,7 @@},"devDependencies": {"@composio/core": "workspace:*",- "tsup": "catalog:",+ "tsdown": "catalog:","typescript": "catalog:","vitest": "catalog:"}diff --git a/ts/packages/providers/anthropic/tsdown.config.ts b/ts/packages/providers/anthropic/tsdown.config.tsnew file mode 100644index 000000000..fa478cbd3--- /dev/null+++ b/ts/packages/providers/anthropic/tsdown.config.ts@@ -0,0 +1,7 @@+import { defineConfig } from 'tsdown';+import { baseConfig } from '../../../../tsdown.config.base';++export default defineConfig({+ ...baseConfig,+ tsconfig: 'tsconfig.json',+});diff --git a/ts/packages/providers/anthropic/tsup.config.ts b/ts/packages/providers/anthropic/tsup.config.tsdeleted file mode 100644index f9cdf4040..000000000--- a/ts/packages/providers/anthropic/tsup.config.ts+++ /dev/null@@ -1,10 +0,0 @@-import { defineConfig } from 'tsup';--export default defineConfig({- entry: ['src/index.ts'],- format: ['esm', 'cjs'],- dts: true,- clean: true,- minify: false,- outDir: 'dist',-});diff --git a/ts/packages/providers/claude-agent-sdk/package.json b/ts/packages/providers/claude-agent-sdk/package.jsonindex 23b3d56fb..733dc10be 100644--- a/ts/packages/providers/claude-agent-sdk/package.json+++ b/ts/packages/providers/claude-agent-sdk/package.json@@ -3,17 +3,25 @@"version": "0.4.0","description": "Composio provider for Claude Agent SDK","main": "src/index.ts",- "type": "module","publishConfig": {"access": "public",- "main": "dist/index.js",- "types": "dist/index.d.ts"+ "main": "dist/index.mjs",+ "types": "dist/index.d.mts"},"exports": {".": {- "import": "./dist/index.js",- "types": "./dist/index.d.ts",- "require": "./dist/index.cjs"+ "import": {+ "types": "./dist/index.d.mts",+ "default": "./dist/index.mjs"+ },+ "require": {+ "types": "./dist/index.d.cts",+ "default": "./dist/index.cjs"+ },+ "default": {+ "types": "./dist/index.d.cts",+ "default": "./dist/index.cjs"+ }}},"files": [@@ -22,7 +30,7 @@],"scripts": {"clean": "git clean -xdf node_modules",- "build": "tsup",+ "build": "tsdown","test": "vitest run"},"keywords": [@@ -46,7 +54,7 @@"devDependencies": {"@composio/core": "workspace:*","@anthropic-ai/claude-agent-sdk": "^0.1.9",- "tsup": "catalog:",+ "tsdown": "catalog:","typescript": "catalog:","vitest": "catalog:","zod": "^3.25.76"diff --git a/ts/packages/providers/claude-agent-sdk/tsdown.config.ts b/ts/packages/providers/claude-agent-sdk/tsdown.config.tsnew file mode 100644index 000000000..fa478cbd3--- /dev/null+++ b/ts/packages/providers/claude-agent-sdk/tsdown.config.ts@@ -0,0 +1,7 @@+import { defineConfig } from 'tsdown';+import { baseConfig } from '../../../../tsdown.config.base';++export default defineConfig({+ ...baseConfig,+ tsconfig: 'tsconfig.json',+});diff --git a/ts/packages/providers/claude-agent-sdk/tsup.config.ts b/ts/packages/providers/claude-agent-sdk/tsup.config.tsdeleted file mode 100644index f9cdf4040..000000000--- a/ts/packages/providers/claude-agent-sdk/tsup.config.ts+++ /dev/null@@ -1,10 +0,0 @@-import { defineConfig } from 'tsup';--export default defineConfig({- entry: ['src/index.ts'],- format: ['esm', 'cjs'],- dts: true,- clean: true,- minify: false,- outDir: 'dist',-});diff --git a/ts/packages/providers/cloudflare/package.json b/ts/packages/providers/cloudflare/package.jsonindex 49562d1a9..8317c3a80 100644--- a/ts/packages/providers/cloudflare/package.json+++ b/ts/packages/providers/cloudflare/package.json@@ -3,17 +3,25 @@"version": "0.4.0","description": "","main": "src/index.ts",- "type": "module","publishConfig": {"access": "public",- "main": "dist/index.js",- "types": "dist/index.d.ts"+ "main": "dist/index.mjs",+ "types": "dist/index.d.mts"},"exports": {".": {- "import": "./dist/index.js",- "types": "./dist/index.d.ts",- "require": "./dist/index.cjs"+ "import": {+ "types": "./dist/index.d.mts",+ "default": "./dist/index.mjs"+ },+ "require": {+ "types": "./dist/index.d.cts",+ "default": "./dist/index.cjs"+ },+ "default": {+ "types": "./dist/index.d.cts",+ "default": "./dist/index.cjs"+ }}},"files": [@@ -22,7 +30,7 @@],"scripts": {"clean": "git clean -xdf node_modules",- "build": "tsup",+ "build": "tsdown","test": "vitest run"},"keywords": [],@@ -35,7 +43,7 @@},"devDependencies": {"@composio/core": "workspace:*",- "tsup": "catalog:",+ "tsdown": "catalog:","typescript": "catalog:","vitest": "catalog:"},diff --git a/ts/packages/providers/cloudflare/tsdown.config.ts b/ts/packages/providers/cloudflare/tsdown.config.tsnew file mode 100644index 000000000..fa478cbd3--- /dev/null+++ b/ts/packages/providers/cloudflare/tsdown.config.ts@@ -0,0 +1,7 @@+import { defineConfig } from 'tsdown';+import { baseConfig } from '../../../../tsdown.config.base';++export default defineConfig({+ ...baseConfig,+ tsconfig: 'tsconfig.json',+});diff --git a/ts/packages/providers/cloudflare/tsup.config.ts b/ts/packages/providers/cloudflare/tsup.config.tsdeleted file mode 100644index f9cdf4040..000000000--- a/ts/packages/providers/cloudflare/tsup.config.ts+++ /dev/null@@ -1,10 +0,0 @@-import { defineConfig } from 'tsup';--export default defineConfig({- entry: ['src/index.ts'],- format: ['esm', 'cjs'],- dts: true,- clean: true,- minify: false,- outDir: 'dist',-});diff --git a/ts/packages/providers/google/package.json b/ts/packages/providers/google/package.jsonindex 337775cf5..5ed6828ba 100644--- a/ts/packages/providers/google/package.json+++ b/ts/packages/providers/google/package.json@@ -3,17 +3,25 @@"version": "0.4.0","description": "Google GenAI Provider for Composio SDK","main": "src/index.ts",- "type": "module","publishConfig": {"access": "public",- "main": "dist/index.js",- "types": "dist/index.d.ts"+ "main": "dist/index.mjs",+ "types": "dist/index.d.mts"},"exports": {".": {- "import": "./dist/index.js",- "types": "./dist/index.d.ts",- "require": "./dist/index.cjs"+ "import": {+ "types": "./dist/index.d.mts",+ "default": "./dist/index.mjs"+ },+ "require": {+ "types": "./dist/index.d.cts",+ "default": "./dist/index.cjs"+ },+ "default": {+ "types": "./dist/index.d.cts",+ "default": "./dist/index.cjs"+ }}},"files": [@@ -22,7 +30,7 @@],"scripts": {"clean": "git clean -xdf node_modules",- "build": "tsup",+ "build": "tsdown","test": "vitest run"},"keywords": [@@ -41,7 +49,7 @@},"devDependencies": {"@composio/core": "workspace:*",- "tsup": "catalog:",+ "tsdown": "catalog:","typescript": "catalog:"}}diff --git a/ts/packages/providers/google/tsdown.config.ts b/ts/packages/providers/google/tsdown.config.tsnew file mode 100644index 000000000..fa478cbd3--- /dev/null+++ b/ts/packages/providers/google/tsdown.config.ts@@ -0,0 +1,7 @@+import { defineConfig } from 'tsdown';+import { baseConfig } from '../../../../tsdown.config.base';++export default defineConfig({+ ...baseConfig,+ tsconfig: 'tsconfig.json',+});diff --git a/ts/packages/providers/google/tsup.config.ts b/ts/packages/providers/google/tsup.config.tsdeleted file mode 100644index f9cdf4040..000000000--- a/ts/packages/providers/google/tsup.config.ts+++ /dev/null@@ -1,10 +0,0 @@-import { defineConfig } from 'tsup';--export default defineConfig({- entry: ['src/index.ts'],- format: ['esm', 'cjs'],- dts: true,- clean: true,- minify: false,- outDir: 'dist',-});diff --git a/ts/packages/providers/langchain/package.json b/ts/packages/providers/langchain/package.jsonindex 2bf0f4dca..016927c61 100644--- a/ts/packages/providers/langchain/package.json+++ b/ts/packages/providers/langchain/package.json@@ -3,17 +3,25 @@"version": "0.4.0","description": "","main": "dist/index.js",- "type": "module","publishConfig": {"access": "public",- "main": "dist/index.js",- "types": "dist/index.d.ts"+ "main": "dist/index.mjs",+ "types": "dist/index.d.mts"},"exports": {".": {- "import": "./dist/index.js",- "types": "./dist/index.d.ts",- "require": "./dist/index.cjs"+ "import": {+ "types": "./dist/index.d.mts",+ "default": "./dist/index.mjs"+ },+ "require": {+ "types": "./dist/index.d.cts",+ "default": "./dist/index.cjs"+ },+ "default": {+ "types": "./dist/index.d.cts",+ "default": "./dist/index.cjs"+ }}},"files": [@@ -22,7 +30,7 @@],"scripts": {"clean": "git clean -xdf node_modules",- "build": "tsup",+ "build": "tsdown","test": "vitest run"},"keywords": [],@@ -36,7 +44,7 @@"devDependencies": {"@composio/core": "workspace:*","@langchain/core": "^1.1.4",- "tsup": "catalog:",+ "tsdown": "catalog:","typescript": "catalog:","vitest": "catalog:","zod": "catalog:"diff --git a/ts/packages/providers/langchain/tsdown.config.ts b/ts/packages/providers/langchain/tsdown.config.tsnew file mode 100644index 000000000..4bb27177e--- /dev/null+++ b/ts/packages/providers/langchain/tsdown.config.ts@@ -0,0 +1,9 @@+import { defineConfig } from 'tsdown';+import { baseConfig } from '../../../../tsdown.config.base';++export default defineConfig({+ ...baseConfig,+ entry: ['src/index.ts'],+ outDir: 'dist',+ tsconfig: 'tsconfig.json',+});diff --git a/ts/packages/providers/langchain/tsup.config.ts b/ts/packages/providers/langchain/tsup.config.tsdeleted file mode 100644index f9cdf4040..000000000--- a/ts/packages/providers/langchain/tsup.config.ts+++ /dev/null@@ -1,10 +0,0 @@-import { defineConfig } from 'tsup';--export default defineConfig({- entry: ['src/index.ts'],- format: ['esm', 'cjs'],- dts: true,- clean: true,- minify: false,- outDir: 'dist',-});diff --git a/ts/packages/providers/llamaindex/package.json b/ts/packages/providers/llamaindex/package.jsonindex 0ac5dd621..06833ce0d 100644--- a/ts/packages/providers/llamaindex/package.json+++ b/ts/packages/providers/llamaindex/package.json@@ -3,17 +3,25 @@"version": "0.4.0","description": "Agentic Provider for llamaindex in Composio SDK","main": "src/index.ts",- "type": "module","publishConfig": {"access": "public",- "main": "dist/index.js",- "types": "dist/index.d.ts"+ "main": "dist/index.mjs",+ "types": "dist/index.d.mts"},"exports": {".": {- "import": "./dist/index.js",- "types": "./dist/index.d.ts",- "require": "./dist/index.cjs"+ "import": {+ "types": "./dist/index.d.mts",+ "default": "./dist/index.mjs"+ },+ "require": {+ "types": "./dist/index.d.cts",+ "default": "./dist/index.cjs"+ },+ "default": {+ "types": "./dist/index.d.cts",+ "default": "./dist/index.cjs"+ }}},"files": [@@ -21,7 +29,7 @@"dist"],"scripts": {- "build": "tsup",+ "build": "tsdown","test": "vitest run"},"keywords": [@@ -38,7 +46,7 @@},"devDependencies": {"@composio/core": "workspace:*",- "tsup": "catalog:",+ "tsdown": "catalog:","typescript": "catalog:"}}diff --git a/ts/packages/providers/llamaindex/tsdown.config.ts b/ts/packages/providers/llamaindex/tsdown.config.tsnew file mode 100644index 000000000..fa478cbd3--- /dev/null+++ b/ts/packages/providers/llamaindex/tsdown.config.ts@@ -0,0 +1,7 @@+import { defineConfig } from 'tsdown';+import { baseConfig } from '../../../../tsdown.config.base';++export default defineConfig({+ ...baseConfig,+ tsconfig: 'tsconfig.json',+});diff --git a/ts/packages/providers/llamaindex/tsup.config.ts b/ts/packages/providers/llamaindex/tsup.config.tsdeleted file mode 100644index f9cdf4040..000000000--- a/ts/packages/providers/llamaindex/tsup.config.ts+++ /dev/null@@ -1,10 +0,0 @@-import { defineConfig } from 'tsup';--export default defineConfig({- entry: ['src/index.ts'],- format: ['esm', 'cjs'],- dts: true,- clean: true,- minify: false,- outDir: 'dist',-});diff --git a/ts/packages/providers/mastra/package.json b/ts/packages/providers/mastra/package.jsonindex 81d93a91e..8a5b14832 100644--- a/ts/packages/providers/mastra/package.json+++ b/ts/packages/providers/mastra/package.json@@ -3,17 +3,25 @@"version": "0.4.0","description": "Agentic Provider for mastra in Composio SDK","main": "src/index.ts",- "type": "module","publishConfig": {"access": "public",- "main": "dist/index.js",- "types": "dist/index.d.ts"+ "main": "dist/index.mjs",+ "types": "dist/index.d.mts"},"exports": {".": {- "import": "./dist/index.js",- "types": "./dist/index.d.ts",- "require": "./dist/index.cjs"+ "import": {+ "types": "./dist/index.d.mts",+ "default": "./dist/index.mjs"+ },+ "require": {+ "types": "./dist/index.d.cts",+ "default": "./dist/index.cjs"+ },+ "default": {+ "types": "./dist/index.d.cts",+ "default": "./dist/index.cjs"+ }}},"files": [@@ -22,7 +30,7 @@],"scripts": {"clean": "git clean -xdf node_modules",- "build": "tsup",+ "build": "tsdown","test": "vitest run"},"keywords": [@@ -40,7 +48,7 @@},"devDependencies": {"@composio/core": "workspace:*",- "tsup": "catalog:",+ "tsdown": "catalog:","typescript": "catalog:","vitest": "^3.1.4","zod": "catalog:"diff --git a/ts/packages/providers/mastra/tsdown.config.ts b/ts/packages/providers/mastra/tsdown.config.tsnew file mode 100644index 000000000..fa478cbd3--- /dev/null+++ b/ts/packages/providers/mastra/tsdown.config.ts@@ -0,0 +1,7 @@+import { defineConfig } from 'tsdown';+import { baseConfig } from '../../../../tsdown.config.base';++export default defineConfig({+ ...baseConfig,+ tsconfig: 'tsconfig.json',+});diff --git a/ts/packages/providers/mastra/tsup.config.ts b/ts/packages/providers/mastra/tsup.config.tsdeleted file mode 100644index f9cdf4040..000000000--- a/ts/packages/providers/mastra/tsup.config.ts+++ /dev/null@@ -1,10 +0,0 @@-import { defineConfig } from 'tsup';--export default defineConfig({- entry: ['src/index.ts'],- format: ['esm', 'cjs'],- dts: true,- clean: true,- minify: false,- outDir: 'dist',-});diff --git a/ts/packages/providers/openai-agents/package.json b/ts/packages/providers/openai-agents/package.jsonindex aa0ebe9c2..3f3ca2a73 100644--- a/ts/packages/providers/openai-agents/package.json+++ b/ts/packages/providers/openai-agents/package.json@@ -3,17 +3,25 @@"version": "0.4.0","description": "","main": "src/index.ts",- "type": "module","publishConfig": {"access": "public",- "main": "dist/index.js",- "types": "dist/index.d.ts"+ "main": "dist/index.mjs",+ "types": "dist/index.d.mts"},"exports": {".": {- "import": "./dist/index.js",- "types": "./dist/index.d.ts",- "require": "./dist/index.cjs"+ "import": {+ "types": "./dist/index.d.mts",+ "default": "./dist/index.mjs"+ },+ "require": {+ "types": "./dist/index.d.cts",+ "default": "./dist/index.cjs"+ },+ "default": {+ "types": "./dist/index.d.cts",+ "default": "./dist/index.cjs"+ }}},"files": [@@ -22,7 +30,7 @@],"scripts": {"clean": "git clean -xdf node_modules",- "build": "tsup",+ "build": "tsdown","test": "vitest run"},"keywords": [],@@ -37,7 +45,7 @@"devDependencies": {"@composio/core": "workspace:*","@openai/agents": "^0.1.3",- "tsup": "catalog:",+ "tsdown": "catalog:","typescript": "catalog:","zod": "catalog:","vitest": "catalog:"diff --git a/ts/packages/providers/openai-agents/tsdown.config.ts b/ts/packages/providers/openai-agents/tsdown.config.tsnew file mode 100644index 000000000..fa478cbd3--- /dev/null+++ b/ts/packages/providers/openai-agents/tsdown.config.ts@@ -0,0 +1,7 @@+import { defineConfig } from 'tsdown';+import { baseConfig } from '../../../../tsdown.config.base';++export default defineConfig({+ ...baseConfig,+ tsconfig: 'tsconfig.json',+});diff --git a/ts/packages/providers/openai-agents/tsup.config.ts b/ts/packages/providers/openai-agents/tsup.config.tsdeleted file mode 100644index f9cdf4040..000000000--- a/ts/packages/providers/openai-agents/tsup.config.ts+++ /dev/null@@ -1,10 +0,0 @@-import { defineConfig } from 'tsup';--export default defineConfig({- entry: ['src/index.ts'],- format: ['esm', 'cjs'],- dts: true,- clean: true,- minify: false,- outDir: 'dist',-});diff --git a/ts/packages/providers/openai/package.json b/ts/packages/providers/openai/package.jsonindex 166f9c848..2e9cea1ca 100644--- a/ts/packages/providers/openai/package.json+++ b/ts/packages/providers/openai/package.json@@ -3,17 +3,25 @@"version": "0.4.0","description": "","main": "src/index.ts",- "type": "module","publishConfig": {"access": "public",- "main": "dist/index.js",- "types": "dist/index.d.ts"+ "main": "dist/index.mjs",+ "types": "dist/index.d.mts"},"exports": {".": {- "import": "./dist/index.js",- "types": "./dist/index.d.ts",- "require": "./dist/index.cjs"+ "import": {+ "types": "./dist/index.d.mts",+ "default": "./dist/index.mjs"+ },+ "require": {+ "types": "./dist/index.d.cts",+ "default": "./dist/index.cjs"+ },+ "default": {+ "types": "./dist/index.d.cts",+ "default": "./dist/index.cjs"+ }}},"files": [@@ -22,7 +30,7 @@],"scripts": {"clean": "git clean -xdf node_modules",- "build": "tsup",+ "build": "tsdown","test": "vitest run"},"keywords": [],@@ -35,7 +43,7 @@},"devDependencies": {"@composio/core": "workspace:*",- "tsup": "catalog:",+ "tsdown": "catalog:","typescript": "catalog:","vitest": "catalog:"},diff --git a/ts/packages/providers/openai/tsdown.config.ts b/ts/packages/providers/openai/tsdown.config.tsnew file mode 100644index 000000000..fa478cbd3--- /dev/null+++ b/ts/packages/providers/openai/tsdown.config.ts@@ -0,0 +1,7 @@+import { defineConfig } from 'tsdown';+import { baseConfig } from '../../../../tsdown.config.base';++export default defineConfig({+ ...baseConfig,+ tsconfig: 'tsconfig.json',+});diff --git a/ts/packages/providers/openai/tsup.config.ts b/ts/packages/providers/openai/tsup.config.tsdeleted file mode 100644index f9cdf4040..000000000--- a/ts/packages/providers/openai/tsup.config.ts+++ /dev/null@@ -1,10 +0,0 @@-import { defineConfig } from 'tsup';--export default defineConfig({- entry: ['src/index.ts'],- format: ['esm', 'cjs'],- dts: true,- clean: true,- minify: false,- outDir: 'dist',-});diff --git a/ts/packages/providers/vercel/package.json b/ts/packages/providers/vercel/package.jsonindex 7c2370d81..802684259 100644--- a/ts/packages/providers/vercel/package.json+++ b/ts/packages/providers/vercel/package.json@@ -3,17 +3,25 @@"version": "0.4.0","description": "","main": "src/index.ts",- "type": "module","publishConfig": {"access": "public",- "main": "dist/index.js",- "types": "dist/index.d.ts"+ "main": "dist/index.mjs",+ "types": "dist/index.d.mts"},"exports": {".": {- "import": "./dist/index.js",- "types": "./dist/index.d.ts",- "require": "./dist/index.cjs"+ "import": {+ "types": "./dist/index.d.mts",+ "default": "./dist/index.mjs"+ },+ "require": {+ "types": "./dist/index.d.cts",+ "default": "./dist/index.cjs"+ },+ "default": {+ "types": "./dist/index.d.cts",+ "default": "./dist/index.cjs"+ }}},"files": [@@ -22,7 +30,7 @@],"scripts": {"clean": "git clean -xdf node_modules",- "build": "tsup",+ "build": "tsdown","test": "vitest run"},"keywords": [],@@ -36,7 +44,7 @@"devDependencies": {"@composio/core": "workspace:*","ai": "catalog:",- "tsup": "catalog:",+ "tsdown": "catalog:","typescript": "catalog:","vitest": "catalog:","zod": "catalog:"diff --git a/ts/packages/providers/vercel/tsdown.config.ts b/ts/packages/providers/vercel/tsdown.config.tsnew file mode 100644index 000000000..fa478cbd3--- /dev/null+++ b/ts/packages/providers/vercel/tsdown.config.ts@@ -0,0 +1,7 @@+import { defineConfig } from 'tsdown';+import { baseConfig } from '../../../../tsdown.config.base';++export default defineConfig({+ ...baseConfig,+ tsconfig: 'tsconfig.json',+});diff --git a/ts/packages/providers/vercel/tsup.config.ts b/ts/packages/providers/vercel/tsup.config.tsdeleted file mode 100644index f9cdf4040..000000000--- a/ts/packages/providers/vercel/tsup.config.ts+++ /dev/null@@ -1,10 +0,0 @@-import { defineConfig } from 'tsup';--export default defineConfig({- entry: ['src/index.ts'],- format: ['esm', 'cjs'],- dts: true,- clean: true,- minify: false,- outDir: 'dist',-});diff --git a/ts/packages/ts-builders/package.json b/ts/packages/ts-builders/package.jsonindex 2513f9a3e..68a93a0b2 100644--- a/ts/packages/ts-builders/package.json+++ b/ts/packages/ts-builders/package.json@@ -2,15 +2,22 @@"name": "@composio/ts-builders","version": "0.1.24","description": "Fork of @prisma/ts-builders",- "type": "module",- "main": "dist/index.js",- "module": "dist/index.js",- "types": "dist/index.d.ts",+ "main": "dist/index.mjs",+ "module": "dist/index.mjs",+ "types": "dist/index.d.mts","exports": {".": {"import": {- "types": "./dist/index.d.ts",- "default": "./dist/index.js"+ "types": "./dist/index.d.mts",+ "default": "./dist/index.mjs"+ },+ "require": {+ "types": "./dist/index.d.cts",+ "default": "./dist/index.cjs"+ },+ "default": {+ "types": "./dist/index.d.cts",+ "default": "./dist/index.cjs"}}},@@ -23,12 +30,12 @@"devDependencies": {"@types/babel__helper-validator-identifier": "^7.15.2","helper-validator-identifier": "link:@types/@babel/helper-validator-identifier",- "tsup": "catalog:",+ "tsdown": "catalog:","vitest": "catalog:"},"scripts": {"clean": "git clean -xdf node_modules",- "build": "tsup",+ "build": "tsdown","test": "vitest run"},"files": [diff --git a/ts/packages/ts-builders/tsdown.config.ts b/ts/packages/ts-builders/tsdown.config.tsnew file mode 100644index 000000000..b1be8d9fc--- /dev/null+++ b/ts/packages/ts-builders/tsdown.config.ts@@ -0,0 +1,7 @@+import { defineConfig } from 'tsdown';+import { baseConfig } from '../../../tsdown.config.base';++export default defineConfig({+ ...baseConfig,+ tsconfig: 'tsconfig.src.json',+});diff --git a/ts/packages/ts-builders/tsup.config.ts b/ts/packages/ts-builders/tsup.config.tsdeleted file mode 100644index 6f7c33d6f..000000000--- a/ts/packages/ts-builders/tsup.config.ts+++ /dev/null@@ -1,11 +0,0 @@-import { defineConfig } from 'tsup';--export default defineConfig({- entry: ['src/index.ts'],- format: ['esm'],- dts: true,- clean: true,- minify: false,- outDir: 'dist',- tsconfig: './tsconfig.src.json',-});diff --git a/ts/scripts/create-provider.sh b/ts/scripts/create-provider.shindex f8c473aec..cd5b2e728 100644--- a/ts/scripts/create-provider.sh+++ b/ts/scripts/create-provider.sh@@ -45,7 +45,7 @@ cat > "$TOOLSET_PATH/package.json" << EOL"dist"],"scripts": {- "build": "tsup",+ "build": "tsdown","test": "vitest run"},"keywords": ["composio", "provider", "${TOOLSET_NAME}"],@@ -57,7 +57,7 @@ cat > "$TOOLSET_PATH/package.json" << EOL},"devDependencies": {"@composio/core": "workspace:*",- "tsup": "catalog:",+ "tsdown": "catalog:","typescript": "catalog:"}}diff --git a/tsdown.config.base.ts b/tsdown.config.base.tsnew file mode 100644index 000000000..a8d3536ef--- /dev/null+++ b/tsdown.config.base.ts@@ -0,0 +1,98 @@+import type { UserConfig, OutExtensionContext } from 'tsdown';++/**+ * tsdown config with shared defaults.+ * Package-specific options (e.g., entry, outDir, outExtensions) can be overridden by the caller.+ * Paths are relative to the closest `tsdown.config.ts` file that imports this config.+ */+export const baseConfig = {+ /**+ * Entry points for the build.+ */+ entry: ['src/index.ts'],++ /**+ * Output directory for the build.+ */+ outDir: 'dist',+ outExtensions: (ctx) => ({+ js: isESM(ctx)+ ? '.mjs'+ : '.cjs',+ dts: isESM(ctx)+ ? '.d.mts'+ : '.d.cts',+ }),++ /**+ * Configures the output formats for the build.+ * - 'esm' generates ESM (ECMAScript Module) output+ * - 'cjs' generates lecayse CommonJS output+ */+ format: ['esm', 'cjs' /* legacy */],++ /**+ * Generates TypeScript declaration files (.d.mts, .d.ts)+ */+ dts: true,++ /**+ * Clean `outDir` before each build.+ */+ clean: true,++ /**+ * Compress code to reduce bundle size.+ */+ minify: false,++ /**+ * Target ECMAScript version for the output.+ */+ target: 'es2022',++ /**+ * Callback function to execute after a successful build.+ */+ onSuccess() {+ console.info('🙏 Build succeeded!');+ },++ /**+ * External dependencies that should not be bundled, but provided by the consumer.+ */+ external: ['zod', /^node:/],++ /**+ * Control how Node.js built-in module imports are handled.+ * When true, imports like `fs` are transformed to `node:fs`.+ */+ nodeProtocol: true,++ /**+ * Configuration for @arethetypeswrong/cli.+ * Uses '.' entrypoint to check the package root via the exports field,+ * since src/index.ts is only used during development and not exported.+ * Uses 'node16' profile since packages support both ESM and CJS.+ */+ attw: {+ entrypoints: ['.'],+ enabled: true,+ level: 'error',+ profile: 'node16',+ ignoreRules: [/* Node.js 10 only, attw doesn't automatically exclude it despite the selected profile */ 'internal-resolution-error'],+ },++ /**+ * Configuration for publint.+ */+ publint: {+ enabled: true,+ level: 'error',+ pack: 'pnpm',+ },+} satisfies UserConfig++function isESM(ctx: OutExtensionContext) {+ return ctx.format === 'es'+}diff --git a/turbo.json b/turbo.jsondeleted file mode 100644index fe44a8d16..000000000--- a/turbo.json+++ /dev/null@@ -1,23 +0,0 @@-{- "$schema": "https://turbo.build/schema.json",- "tasks": {- "build": {- "dependsOn": ["^build"],- "outputs": ["dist/"]- },- "test": {- "dependsOn": ["^build"],- "outputs": ["dist/"]- },- "clean": {- "cache": false- },- "typecheck": {- "dependsOn": ["^build"],- "cache": false- },- "//#clean": {- "cache": false- }- }-}diff --git a/turbo.jsonc b/turbo.jsoncnew file mode 100644index 000000000..4e36a005a--- /dev/null+++ b/turbo.jsonc@@ -0,0 +1,46 @@+{+ "$schema": "https://turbo.build/schema.json",+ "tasks": {+ "build": {+ "dependsOn": ["^build"],+ "inputs": [+ "$TURBO_DEFAULT$",+ "tsdown.config.ts",+ // for core+ "../../../tsdown.config.base.ts",+ // for providers+ "../../../../tsdown.config.base.ts"+ ],+ "outputs": ["dist/"]+ },+ "test": {+ "dependsOn": ["^build"],+ "outputs": ["dist/"]+ },+ "test:e2e": {+ "dependsOn": ["^build"],+ "env": ["COMPOSIO_API_KEY"],+ "cache": false+ },+ "test:e2e:node": {+ "dependsOn": ["^build"],+ "env": ["COMPOSIO_API_KEY", "COMPOSIO_E2E_NODE_VERSION"],+ "cache": false+ },+ "test:e2e:cloudflare": {+ "dependsOn": ["^build"],+ "env": ["COMPOSIO_API_KEY"],+ "cache": false+ },+ "clean": {+ "cache": false+ },+ "typecheck": {+ "dependsOn": ["^build"],+ "cache": false+ },+ "//#clean": {+ "cache": false+ }+ }+}