Skip to content

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)

Alberto Schiabel2b9571b17f48
diff --git a/docs/content/reference/sdk-reference/typescript/session-files.mdx b/docs/content/reference/sdk-reference/typescript/session-files.mdx
index e18ebf7c0..70435a1c3 100644
--- a/docs/content/reference/sdk-reference/typescript/session-files.mdx
+++ b/docs/content/reference/sdk-reference/typescript/session-files.mdx
@@ -126,6 +126,8 @@ Uploads a file to the session's file mount.
Accepts a file path (local or URL), a native File object, or a raw buffer.
The file is stored in the virtual filesystem associated with the tool router session.
+URL inputs require a Node.js or Bun runtime so the destination can be DNS-validated;
+edge runtimes must fetch the file themselves and pass a File or ArrayBuffer.
```typescript
async upload(input: string | File | ArrayBuffer | Uint8Array, options?: ToolRouterSessionFilesMountUploadOptions): Promise<RemoteFile>
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index fc9239132..c20556b5d 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -1359,16 +1359,16 @@ importers:
version: 7.7.1
tsdown:
specifier: 'catalog:'
tsx:
specifier: 'catalog:'
version: 4.23.1
typedoc:
specifier: ^0.28.20
- version: 0.28.20([email protected])
+ version: 0.28.20(@typescript/[email protected])
typescript:
- specifier: 'catalog:'
- version: 7.0.2
+ specifier: catalog:ts6
+ version: '@typescript/[email protected]'
vitest:
specifier: 'catalog:'
@@ -11754,13 +11754,13 @@ snapshots:
dependencies:
'@gerrit0/mini-shiki': 3.23.0
lunr: 2.3.9
markdown-it: 14.3.0
minimatch: 10.2.5
- typescript: 7.0.2
+ typescript: '@typescript/[email protected]'
yaml: 2.9.0
diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml
index 08f0e80a6..1463a2998 100644
--- a/pnpm-workspace.yaml
+++ b/pnpm-workspace.yaml
@@ -65,9 +65,12 @@ catalog:
catalogs:
# TS7 (tsgo) ships no JS compiler API; consumers of that API pin TS6 here.
# `typescript` rebinds the compiler-API import for @composio/cli's generate
- # pipeline (its typecheck still runs the root TS7 tsc — the alias package only
- # ships a tsc6 bin); `typescript6` is the side-by-side alias for scripts that
- # also need TS7 in scope (ts/scripts/validate-examples.ts).
+ # pipeline and @composio/core's typedoc docgen (their typechecks still run the
+ # root TS7 tsc — the alias package only ships a tsc6 bin). For core, this also
+ # routes tsdown's declaration emit through TS6; the types remain equivalent,
+ # but union member order and dist chunk hashes may change. `typescript6` is the
+ # side-by-side alias for scripts that also need TS7 in scope
+ # (ts/scripts/validate-examples.ts).
ts6:
typescript: npm:@typescript/typescript6@^6.0.2
typescript6: npm:@typescript/typescript6@^6.0.2
diff --git a/ts/packages/core/package.json b/ts/packages/core/package.json
index fd861302a..2be0079f7 100644
--- a/ts/packages/core/package.json
+++ b/ts/packages/core/package.json
@@ -103,7 +103,7 @@
"tsdown": "catalog:",
"tsx": "catalog:",
"typedoc": "^0.28.20",
- "typescript": "catalog:",
+ "typescript": "catalog:ts6",
"vitest": "catalog:",
"zod": "catalog:"
},