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
Add tsgo-backed typecheck targets across packages (#3130)
Rahul Tarakefcb8c2436d3
diff --git a/package.json b/package.jsonindex b1aa98af7..4b9b6b13d 100644--- a/package.json+++ b/package.json@@ -26,6 +26,7 @@"test:e2e:cloudflare": "turbo test:e2e:cloudflare --filter='@e2e-tests/cf-*'","test:ui": "vitest --ui","typecheck": "turbo typecheck --filter=./ts/packages/**",+ "typecheck:tsc": "turbo typecheck:tsc --filter=./ts/packages/**","lint": "eslint ts/packages --ext .ts,.tsx","lint:packages": "eslint ts/packages --ext .ts,.tsx","lint:fix": "eslint . --ext .ts,.tsx --fix",@@ -55,6 +56,7 @@"@composio/openai": "workspace:*","@types/bun": "^1.3.6","@types/node": "^22.15.18",+ "@typescript/native-preview": "catalog:","@vitest/ui": "^3.1.4","eslint": "^9.25.1","globals": "^16.0.0",diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 4ead54b00..98c47e053 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -54,6 +54,9 @@ catalogs:'@modelcontextprotocol/sdk':specifier: ^1.25.2version: 1.26.0+ '@typescript/native-preview':+ specifier: 7.0.0-dev.20260403.1+ version: 7.0.0-dev.20260403.1ai:specifier: ^6.0.27version: 6.0.90@@ -124,6 +127,9 @@ importers:'@types/node':specifier: ^22.15.18version: 22.19.11+ '@typescript/native-preview':+ specifier: 'catalog:'+ version: 7.0.0-dev.20260403.1'@vitest/ui':specifier: ^3.1.4version: 3.2.4([email protected])@@ -150,7 +156,7 @@ importers:version: 7.7.4tsdown:specifier: 'catalog:'+ version: 0.18.4(@arethetypeswrong/[email protected])(@typescript/[email protected])([email protected])([email protected])tsx:specifier: 'catalog:'version: 4.21.0@@ -1154,7 +1160,7 @@ importers:version: 3.2.0tsdown:specifier: 'catalog:'+ version: 0.18.4(@arethetypeswrong/[email protected])(@typescript/[email protected])([email protected])([email protected])tsx:specifier: 'catalog:'version: 4.21.0@@ -1200,7 +1206,7 @@ importers:version: 7.7.1tsdown:specifier: 'catalog:'+ version: 0.18.4(@arethetypeswrong/[email protected])(@typescript/[email protected])([email protected])([email protected])tsx:specifier: 'catalog:'version: 4.21.0@@ -1227,7 +1233,7 @@ importers:version: 24.10.13tsdown:specifier: 'catalog:'+ version: 0.18.4(@arethetypeswrong/[email protected])(@typescript/[email protected])([email protected])([email protected])typescript:specifier: 'catalog:'version: 5.9.3@@ -1252,7 +1258,7 @@ importers:version: link:../../coretsdown:specifier: 'catalog:'+ version: 0.18.4(@arethetypeswrong/[email protected])(@typescript/[email protected])([email protected])([email protected])typescript:specifier: 'catalog:'version: 5.9.3@@ -1274,7 +1280,7 @@ importers:version: link:../../coretsdown:specifier: 'catalog:'+ version: 0.18.4(@arethetypeswrong/[email protected])(@typescript/[email protected])([email protected])([email protected])typescript:specifier: 'catalog:'version: 5.9.3@@ -1293,7 +1299,7 @@ importers:version: link:../../coretsdown:specifier: 'catalog:'+ version: 0.18.4(@arethetypeswrong/[email protected])(@typescript/[email protected])([email protected])([email protected])typescript:specifier: 'catalog:'version: 5.9.3@@ -1312,7 +1318,7 @@ importers:version: link:../../coretsdown:specifier: 'catalog:'+ version: 0.18.4(@arethetypeswrong/[email protected])(@typescript/[email protected])([email protected])([email protected])typescript:specifier: 'catalog:'version: 5.9.3@@ -1327,7 +1333,7 @@ importers:version: 1.1.25(@opentelemetry/[email protected])([email protected]([email protected])([email protected]))tsdown:specifier: 'catalog:'+ version: 0.18.4(@arethetypeswrong/[email protected])(@typescript/[email protected])([email protected])([email protected])typescript:specifier: 'catalog:'version: 5.9.3@@ -1342,14 +1348,14 @@ importers:dependencies:llamaindex:specifier: ^0.12.0+ version: 0.12.1(@modelcontextprotocol/[email protected](@cfworker/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])devDependencies:'@composio/core':specifier: workspace:*version: link:../../coretsdown:specifier: 'catalog:'+ version: 0.18.4(@arethetypeswrong/[email protected])(@typescript/[email protected])([email protected])([email protected])typescript:specifier: 'catalog:'version: 5.9.3@@ -1368,7 +1374,7 @@ importers:version: 1.4.0(@cfworker/[email protected])(@standard-community/[email protected](@standard-schema/[email protected])(@types/[email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))(@standard-community/[email protected](@standard-community/[email protected](@standard-schema/[email protected])(@types/[email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))(@standard-schema/[email protected])([email protected])([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])tsdown:specifier: 'catalog:'+ version: 0.18.4(@arethetypeswrong/[email protected])(@typescript/[email protected])([email protected])([email protected])typescript:specifier: 'catalog:'version: 5.9.3@@ -1390,7 +1396,7 @@ importers:version: link:../../coretsdown:specifier: 'catalog:'+ version: 0.18.4(@arethetypeswrong/[email protected])(@typescript/[email protected])([email protected])([email protected])typescript:specifier: 'catalog:'version: 5.9.3@@ -1408,7 +1414,7 @@ importers:tsdown:specifier: 'catalog:'+ version: 0.18.4(@arethetypeswrong/[email protected])(@typescript/[email protected])([email protected])([email protected])typescript:specifier: 'catalog:'version: 5.9.3@@ -1429,7 +1435,7 @@ importers:version: 6.0.90([email protected])tsdown:specifier: 'catalog:'+ version: 0.18.4(@arethetypeswrong/[email protected])(@typescript/[email protected])([email protected])([email protected])typescript:specifier: 'catalog:'version: 5.9.3@@ -1454,7 +1460,7 @@ importers:version: link:@types/@babel/helper-validator-identifiertsdown:specifier: 'catalog:'+ version: 0.18.4(@arethetypeswrong/[email protected])(@typescript/[email protected])([email protected])([email protected])vitest:specifier: 'catalog:'version: 3.2.4(@types/[email protected])(@vitest/[email protected])([email protected])([email protected])@@ -3778,6 +3784,45 @@ packages:resolution: {integrity: sha512-q+SL+b+05Ud6LbEE35qe4A99P+htKTKVbyiNEe45eCbJFyh/HVK9QXwlrbz+Q4L8SOW4roxSVwXYj4DMBT7Ieg==}engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}+ '@typescript/[email protected]':+ resolution: {integrity: sha512-ugcAqKn2F+kHVmCm2AvFeSpCyf4aKmtuuKqYJsrkozqiH124Vcs8uZgT9PWBUXqYeCPXQ09cAeGHsR1rLSwK0Q==}+ cpu: [arm64]+ os: [darwin]++ '@typescript/[email protected]':+ resolution: {integrity: sha512-aka3t5q8CkUgOECb1xUmGLu6dUWVT9rPK6qAUFYkUFrIGOQQKnq03xZV8za6TuV91CBG/vYW5nOZ0Cbam6lhDw==}+ cpu: [x64]+ os: [darwin]++ '@typescript/[email protected]':+ resolution: {integrity: sha512-bQRELks2/P2wrnLIBgVogTymLa9l3fkTDBSfftopBJeHdHfc0KD5ceVXKRRToYNrkJluVNID9UzOOF61r/Wouw==}+ cpu: [arm64]+ os: [linux]++ '@typescript/[email protected]':+ resolution: {integrity: sha512-NpTDW/ls7jrl9UMh5dF6pgznx7J0/FVbPlqtW1JmyjW/4hjc/6Y5noisWTn0PS6nrVlk1zpx+CI3qwlbmOeNBg==}+ cpu: [arm]+ os: [linux]++ '@typescript/[email protected]':+ resolution: {integrity: sha512-BpOPq+7JNqZrvkTXqGJjQYSGp/4I3YVPZEgjtHQYvMhbtm/J2wKOP0pA5OleLK/g3XNd0O2BDqeqbLiMWogCqw==}+ cpu: [x64]+ os: [linux]++ '@typescript/[email protected]':+ resolution: {integrity: sha512-GtmysWvS9BHQGpqF+tOQeiFji+rAiUIfWC2f/n+y8UlRYoqrjzNEqMrXJMRKKT37sdote2mVsendg12aLEVDJA==}+ cpu: [arm64]+ os: [win32]++ '@typescript/[email protected]':+ resolution: {integrity: sha512-qqhzP1/8MaGnpWkFdRQupAR6Ta0Z0ntf4QZ7dhP/sqO7xUwavok0pe+AsC96nyDaEOzYJCk5VGewnDV3gv10/Q==}+ cpu: [x64]+ os: [win32]++ '@typescript/[email protected]':+ resolution: {integrity: sha512-iy+90WygcMl3IPnvI3RLMfbieOCT5OW/RMPnnk+H1kY8AcqQGXqGZfrasUKH+/zfmtM+W+gsDs3nSNk2ScKy4g==}+ hasBin: true+'@vercel/[email protected]':resolution: {integrity: sha512-Fw28YZpRnA3cAHHDlkt7xQHiJ0fcL+NRcIqsocZQUSmbzeIKRpwttJjik5ZGanXP+vlA4SbTg+AbA3bP363l+w==}engines: {node: '>= 20'}@@ -7941,10 +7986,6 @@ snapshots:hono: 4.11.9zod: 4.3.6- '@llamaindex/[email protected]([email protected])':- optionalDependencies:- zod: 4.3.6-'@llamaindex/[email protected](@llamaindex/[email protected])(@llamaindex/[email protected])(@modelcontextprotocol/[email protected](@cfworker/[email protected])([email protected]))([email protected])([email protected])':dependencies:'@llamaindex/core': 0.6.22@@ -7958,19 +7999,6 @@ snapshots:- rxjs- zod- '@llamaindex/[email protected](@llamaindex/[email protected])(@llamaindex/[email protected])([email protected])':- dependencies:- '@llamaindex/core': 0.6.22- '@llamaindex/env': 0.1.30- '@llamaindex/workflow-core': 1.3.3([email protected])- transitivePeerDependencies:- - '@modelcontextprotocol/sdk'- - hono- - next- - p-retry- - rxjs- - zod-'@loaderkit/[email protected]':dependencies:'@braidai/lang': 1.1.2@@ -8931,6 +8959,37 @@ snapshots:'@typescript-eslint/types': 8.56.0eslint-visitor-keys: 5.0.0+ '@typescript/[email protected]':+ optional: true++ '@typescript/[email protected]':+ optional: true++ '@typescript/[email protected]':+ optional: true++ '@typescript/[email protected]':+ optional: true++ '@typescript/[email protected]':+ optional: true++ '@typescript/[email protected]':+ optional: true++ '@typescript/[email protected]':+ optional: true++ '@typescript/[email protected]':+ optionalDependencies:+ '@typescript/native-preview-darwin-arm64': 7.0.0-dev.20260403.1+ '@typescript/native-preview-darwin-x64': 7.0.0-dev.20260403.1+ '@typescript/native-preview-linux-arm': 7.0.0-dev.20260403.1+ '@typescript/native-preview-linux-arm64': 7.0.0-dev.20260403.1+ '@typescript/native-preview-linux-x64': 7.0.0-dev.20260403.1+ '@typescript/native-preview-win32-arm64': 7.0.0-dev.20260403.1+ '@typescript/native-preview-win32-x64': 7.0.0-dev.20260403.1+'@vercel/[email protected]': {}'@vitest/[email protected]':@@ -8949,14 +9008,6 @@ snapshots:optionalDependencies:- '@vitest/[email protected]([email protected](@types/[email protected])([email protected])([email protected]))':- dependencies:- '@vitest/spy': 3.2.4- estree-walker: 3.0.3- magic-string: 0.30.21- optionalDependencies:-'@vitest/[email protected]':dependencies:tinyrainbow: 2.0.0@@ -8986,7 +9037,7 @@ snapshots:sirv: 3.0.2tinyglobby: 0.2.15tinyrainbow: 2.0.0- vitest: 3.2.4(@types/[email protected])(@vitest/[email protected])([email protected])([email protected])+ vitest: 3.2.4(@types/[email protected])(@vitest/[email protected])([email protected])([email protected])'@vitest/[email protected]':dependencies:@@ -10454,28 +10505,6 @@ snapshots:- web-tree-sitter- zod- dependencies:- '@llamaindex/core': 0.6.22- '@llamaindex/env': 0.1.30- '@llamaindex/node-parser': 2.0.22(@llamaindex/[email protected])(@llamaindex/[email protected])([email protected])([email protected])- '@llamaindex/workflow': 1.1.24(@llamaindex/[email protected])(@llamaindex/[email protected])([email protected])- '@types/lodash': 4.17.23- '@types/node': 24.10.13- lodash: 4.17.23- magic-bytes.js: 1.13.0- transitivePeerDependencies:- - '@huggingface/transformers'- - '@modelcontextprotocol/sdk'- - gpt-tokenizer- - hono- - next- - p-retry- - rxjs- - tree-sitter- - web-tree-sitter- - zod-dependencies:p-locate: 4.1.0@@ -11055,7 +11084,7 @@ snapshots:dependencies:glob: 10.5.0dependencies:'@babel/generator': 7.29.1'@babel/parser': 7.29.0@@ -11067,6 +11096,7 @@ snapshots:obug: 2.1.1rolldown: 1.0.0-beta.57optionalDependencies:+ '@typescript/native-preview': 7.0.0-dev.20260403.1typescript: 5.9.3transitivePeerDependencies:- oxc-resolver@@ -11540,7 +11570,7 @@ snapshots:'@ts-morph/common': 0.27.0code-block-writer: 13.0.3+ [email protected](@arethetypeswrong/[email protected])(@typescript/[email protected])([email protected])([email protected]):dependencies:ansis: 4.2.0cac: 6.7.14@@ -11551,7 +11581,7 @@ snapshots:obug: 2.1.1picomatch: 4.0.3rolldown: 1.0.0-beta.57- rolldown-plugin-dts: 0.20.0([email protected])([email protected])semver: 7.7.4tinyexec: 1.0.2tinyglobby: 0.2.15@@ -11840,7 +11870,7 @@ snapshots:dependencies:'@types/chai': 5.2.3'@vitest/expect': 3.2.4- '@vitest/mocker': 3.2.4([email protected](@types/[email protected])([email protected])([email protected]))+ '@vitest/mocker': 3.2.4([email protected](@types/[email protected])([email protected])([email protected]))'@vitest/pretty-format': 3.2.4'@vitest/runner': 3.2.4'@vitest/snapshot': 3.2.4diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yamlindex c87eb35ee..a98ed8ba2 100644--- a/pnpm-workspace.yaml+++ b/pnpm-workspace.yaml@@ -31,6 +31,7 @@ catalog:'@effect/vitest': ^0.27.0'@mastra/core': ^1.0.4'@modelcontextprotocol/sdk': ^1.25.2+ '@typescript/native-preview': 7.0.0-dev.20260403.1ai: ^6.0.27effect: ^3.19.15hono: ^4.11.4diff --git a/ts/packages/cli/package.json b/ts/packages/cli/package.jsonindex dc42dfbc7..d5c1e3d1d 100644--- a/ts/packages/cli/package.json+++ b/ts/packages/cli/package.json@@ -39,9 +39,12 @@"bin": "./dist/composio","test": "vitest run","prepublishOnly": "pnpm run build && pnpm run build:binary",- "typecheck:src": "tsc --noEmit -p ./tsconfig.src.json",- "typecheck:test": "tsc --noEmit -p ./tsconfig.test.json",+ "typecheck:src": "pnpm exec tsgo --noEmit -p ./tsconfig.src.json",+ "typecheck:test": "pnpm exec tsgo --noEmit -p ./tsconfig.test.json","typecheck": "pnpm run typecheck:src && pnpm run typecheck:test",+ "typecheck:src:tsc": "tsc --noEmit -p ./tsconfig.src.json",+ "typecheck:test:tsc": "tsc --noEmit -p ./tsconfig.test.json",+ "typecheck:tsc": "pnpm run typecheck:src:tsc && pnpm run typecheck:test:tsc","record": "bun run ./scripts/record.ts"},"keywords": [diff --git a/ts/packages/cli/tsconfig.src.json b/ts/packages/cli/tsconfig.src.jsonindex 9a5ec77ec..9a1792271 100644--- a/ts/packages/cli/tsconfig.src.json+++ b/ts/packages/cli/tsconfig.src.json@@ -9,7 +9,6 @@"compilerOptions": {"outDir": "./dist","rootDir": ".",- "baseUrl": ".","paths": {"src/*": ["./src/*"],"effect-errors/*": ["./src/effect-errors/*"]diff --git a/ts/packages/cli/tsconfig.test.json b/ts/packages/cli/tsconfig.test.jsonindex ab25ebd34..b8352e395 100644--- a/ts/packages/cli/tsconfig.test.json+++ b/ts/packages/cli/tsconfig.test.json@@ -8,7 +8,6 @@],"compilerOptions": {"rootDir": ".",- "baseUrl": ".","paths": {"src/*": ["./src/*"],"effect-errors/*": ["./src/effect-errors/*"],diff --git a/ts/packages/core/package.json b/ts/packages/core/package.jsonindex 707884f81..844c7815d 100644--- a/ts/packages/core/package.json+++ b/ts/packages/core/package.json@@ -133,7 +133,8 @@"clean": "git clean -xdf node_modules","build": "pnpm exec tsdown","test": "vitest run",- "typecheck": "tsc --noEmit --skipLibCheck && tsc --noEmit --skipLibCheck -p tsconfig.type-tests.json",+ "typecheck": "pnpm exec tsgo --noEmit --skipLibCheck && pnpm exec tsgo --noEmit --skipLibCheck -p tsconfig.type-tests.json",+ "typecheck:tsc": "tsc --noEmit --skipLibCheck && tsc --noEmit --skipLibCheck -p tsconfig.type-tests.json","generate:docs": "tsx scripts/generate-docs.ts"},"keywords": [],diff --git a/ts/packages/json-schema-to-zod/package.json b/ts/packages/json-schema-to-zod/package.jsonindex 83e10e6e8..005fefeb6 100644--- a/ts/packages/json-schema-to-zod/package.json+++ b/ts/packages/json-schema-to-zod/package.json@@ -32,9 +32,12 @@"clean": "git clean -xdf node_modules","build": "pnpm exec tsdown","test": "vitest run",- "typecheck:src": "tsc --noEmit -p ./tsconfig.src.json",- "typecheck:test": "tsc --noEmit -p ./tsconfig.test.json",- "typecheck": "pnpm run typecheck:src && pnpm run typecheck:test"+ "typecheck:src": "pnpm exec tsgo --noEmit -p ./tsconfig.src.json",+ "typecheck:test": "pnpm exec tsgo --noEmit -p ./tsconfig.test.json",+ "typecheck": "pnpm run typecheck:src && pnpm run typecheck:test",+ "typecheck:src:tsc": "tsc --noEmit -p ./tsconfig.src.json",+ "typecheck:test:tsc": "tsc --noEmit -p ./tsconfig.test.json",+ "typecheck:tsc": "pnpm run typecheck:src:tsc && pnpm run typecheck:test:tsc"},"keywords": [],"author": "",diff --git a/ts/packages/json-schema-to-zod/tsconfig.src.json b/ts/packages/json-schema-to-zod/tsconfig.src.jsonindex a6c870002..dee0c0af3 100644--- a/ts/packages/json-schema-to-zod/tsconfig.src.json+++ b/ts/packages/json-schema-to-zod/tsconfig.src.json@@ -3,8 +3,7 @@"extends": "./tsconfig.options.json","compilerOptions": {"outDir": "./dist",- "rootDir": ".",- "baseUrl": "."+ "rootDir": "."},"include": ["src/**/*", "package.json"],"exclude": ["node_modules", "../../../node_modules", "**/dist"]diff --git a/ts/packages/json-schema-to-zod/tsconfig.test.json b/ts/packages/json-schema-to-zod/tsconfig.test.jsonindex 84516b834..083ef2e4d 100644--- a/ts/packages/json-schema-to-zod/tsconfig.test.json+++ b/ts/packages/json-schema-to-zod/tsconfig.test.json@@ -2,8 +2,7 @@"$schema": "https://json.schemastore.org/tsconfig","extends": "./tsconfig.options.json","compilerOptions": {- "rootDir": ".",- "baseUrl": "."+ "rootDir": "."},"include": ["src/**/*", "test/**/*", "package.json"],"exclude": ["node_modules", "../../../node_modules", "**/dist", "test/e2e", "test-sandboxes"]diff --git a/ts/packages/providers/mastra/package.json b/ts/packages/providers/mastra/package.jsonindex 3b9ea6a41..44843aeeb 100644--- a/ts/packages/providers/mastra/package.json+++ b/ts/packages/providers/mastra/package.json@@ -32,7 +32,8 @@"clean": "git clean -xdf node_modules","build": "pnpm exec tsdown","test": "vitest run",- "typecheck": "tsc --noEmit --skipLibCheck"+ "typecheck": "pnpm exec tsgo --noEmit --skipLibCheck",+ "typecheck:tsc": "tsc --noEmit --skipLibCheck"},"keywords": ["composio",diff --git a/tsconfig.base.json b/tsconfig.base.jsonindex 37d046c36..834a9a1a5 100644--- a/tsconfig.base.json+++ b/tsconfig.base.json@@ -1,9 +1,8 @@{"$schema": "https://json.schemastore.org/tsconfig","compilerOptions": {- "baseUrl": ".", // Required for paths"paths": {- "@composio/core": ["ts/packages/core/src"] // or wherever your core is+ "@composio/core": ["./ts/packages/core/src"] // or wherever your core is},"lib": ["es2022", "DOM"],"target": "es2022",diff --git a/turbo.jsonc b/turbo.jsoncindex 08850b356..e0dc4cf5a 100644--- a/turbo.jsonc+++ b/turbo.jsonc@@ -53,6 +53,10 @@"dependsOn": ["^build"],"cache": false},+ "typecheck:tsc": {+ "dependsOn": ["^build"],+ "cache": false+ },"//#clean": {"cache": false},