Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
fix(core): resolve typedoc against the TS6 compiler API (#3972)
This PR: - restores TypeDoc generation after https://github.com/ComposioHQ/composio/pull/3966 by resolving `@composio/core`'s TypeScript dev dependency from `catalog:ts6` - keeps core typechecking on the root TypeScript 7 compiler while TypeDoc receives the TS6 compiler API - documents the additional compiler-API consumer in the shared TypeScript catalog - commits the regenerated `session-files.mdx` output that could not be produced while the workflow was broken - verifies `generate:docs`, `typecheck`, and `build` for `@composio/core`
Alberto Schiabel committed
Jul 28, 2026 at 21:03 UTC
2b9571b17f48ea733f81b24cc8603b051783b1b7
4 files changed
+15
-10
docs/content/reference/sdk-reference/typescript/session-files.mdx
+2
@@ -126,6 +126,8 @@ Uploads a file to the session's file mount.
126
127
Accepts a file path (local or URL), a native File object, or a raw buffer.
128
The file is stored in the virtual filesystem associated with the tool router session.
129
+URL inputs require a Node.js or Bun runtime so the destination can be DNS-validated;
130
+edge runtimes must fetch the file themselves and pass a File or ArrayBuffer.
131
132
```typescript
133
async upload(input: string | File | ArrayBuffer | Uint8Array, options?: ToolRouterSessionFilesMountUploadOptions): Promise<RemoteFile>
pnpm-lock.yaml
+6
-6
@@ -1359,16 +1359,16 @@ importers:
1359
version: 7.7.1
1360
tsdown:
1361
specifier: 'catalog:'
1362
- version: 0.22.14(@arethetypeswrong/core@0.18.5)(publint@0.3.22)(tsx@4.23.1)(typescript@7.0.2)(unrun@0.2.27(@emnapi/core@1.11.2)(@emnapi/runtime@1.11.2))
1362
+ version: 0.22.14(@arethetypeswrong/core@0.18.5)(@typescript/typescript6@6.0.2)(publint@0.3.22)(tsx@4.23.1)(unrun@0.2.27(@emnapi/core@1.11.2)(@emnapi/runtime@1.11.2))
1363
tsx:
1364
specifier: 'catalog:'
1365
version: 4.23.1
1366
typedoc:
1367
specifier: ^0.28.20
1368
- version: 0.28.20(typescript@7.0.2)
1368
+ version: 0.28.20(@typescript/typescript6@6.0.2)
1369
typescript:
1370
- specifier: 'catalog:'
1371
- version: 7.0.2
1370
+ specifier: catalog:ts6
1371
+ version: '@typescript/typescript6@6.0.2'
1372
vitest:
1373
specifier: 'catalog:'
1374
version: 4.1.10(@opentelemetry/api@1.9.1)(@types/node@26.1.1)(@vitest/ui@4.1.10)(vite@7.3.5(@types/node@26.1.1)(jiti@2.7.0)(tsx@4.23.1)(yaml@2.9.0))
@@ -11754,13 +11754,13 @@ snapshots:
11754
11755
typebox@1.3.7: {}
11756
11757
- typedoc@0.28.20(typescript@7.0.2):
11757
+ typedoc@0.28.20(@typescript/typescript6@6.0.2):
11758
dependencies:
11759
'@gerrit0/mini-shiki': 3.23.0
11760
lunr: 2.3.9
11761
markdown-it: 14.3.0
11762
minimatch: 10.2.5
11763
- typescript: 7.0.2
11763
+ typescript: '@typescript/typescript6@6.0.2'
11764
yaml: 2.9.0
11765
11766
typescript@5.6.1-rc: {}
pnpm-workspace.yaml
+6
-3
@@ -65,9 +65,12 @@ catalog:
65
catalogs:
66
# TS7 (tsgo) ships no JS compiler API; consumers of that API pin TS6 here.
67
# `typescript` rebinds the compiler-API import for @composio/cli's generate
68
- # pipeline (its typecheck still runs the root TS7 tsc — the alias package only
69
- # ships a tsc6 bin); `typescript6` is the side-by-side alias for scripts that
70
- # also need TS7 in scope (ts/scripts/validate-examples.ts).
68
+ # pipeline and @composio/core's typedoc docgen (their typechecks still run the
69
+ # root TS7 tsc — the alias package only ships a tsc6 bin). For core, this also
70
+ # routes tsdown's declaration emit through TS6; the types remain equivalent,
71
+ # but union member order and dist chunk hashes may change. `typescript6` is the
72
+ # side-by-side alias for scripts that also need TS7 in scope
73
+ # (ts/scripts/validate-examples.ts).
74
ts6:
75
typescript: npm:@typescript/typescript6@^6.0.2
76
typescript6: npm:@typescript/typescript6@^6.0.2
ts/packages/core/package.json
+1
-1
@@ -103,7 +103,7 @@
103
"tsdown": "catalog:",
104
"tsx": "catalog:",
105
"typedoc": "^0.28.20",
106
- "typescript": "catalog:",
106
+ "typescript": "catalog:ts6",
107
"vitest": "catalog:",
108
"zod": "catalog:"
109
},