Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
Tool Router API Integration (#2214)
Co-authored-by: jkomyno <12381818+jkomyno@users.noreply.github.com>
Musthaq Ahamad committed
Dec 4, 2025 at 15:31 UTC
9e002c5ca3868b89e5e19ae492051ac7366f2f5e
108 files changed
+10065
-3667
.changeset/curly-moles-unite.md
new
+5
@@ -0,0 +1,5 @@
1
+---
2
+'@composio/core': patch
3
+---
4
+
5
+Minor fixes
.changeset/pre.json
new
+22
@@ -0,0 +1,22 @@
1
+{
2
+ "mode": "pre",
3
+ "tag": "alpha",
4
+ "initialVersions": {
5
+ "composio-docs": "0.0.0",
6
+ "@composio/core": "0.2.6",
7
+ "@composio/json-schema-to-zod": "0.1.19",
8
+ "@composio/anthropic": "0.2.6",
9
+ "@composio/cloudflare": "0.2.6",
10
+ "@composio/google": "0.2.6",
11
+ "@composio/langchain": "0.2.6",
12
+ "@composio/llamaindex": "0.2.6",
13
+ "@composio/mastra": "0.2.6",
14
+ "@composio/openai": "0.2.6",
15
+ "@composio/openai-agents": "0.2.6",
16
+ "@composio/vercel": "0.2.18"
17
+ },
18
+ "changesets": [
19
+ "curly-moles-unite",
20
+ "tiny-forks-lie"
21
+ ]
22
+}
.changeset/tiny-forks-lie.md
new
+5
@@ -0,0 +1,5 @@
1
+---
2
+'@composio/core': patch
3
+---
4
+
5
+Alpha release of tool router
.github/workflows/ts.test.yml
-3
@@ -31,8 +31,5 @@ jobs:
31
- name: Install Dependencies
32
run: pnpm install --frozen-lockfile
33
34
- - name: Run pnpm audit (production dependencies only)
35
- run: pnpm audit --prod
36
-
34
- name: Run Tests
35
run: pnpm run test
.pnpmfile.cjs
new
+30
@@ -0,0 +1,30 @@
1
+/**
2
+ * Alias manager for pnpm.
3
+ */
4
+function readPackage(pkg, context) {
5
+ /**
6
+ * Alias zod-to-json-schema to @finom/zod-to-json-schema, to work around this issue:
7
+ * https://github.com/StefanTerdell/zod-to-json-schema/issues/178.
8
+ */
9
+ if (pkg.dependencies) {
10
+ if ('zod-to-json-schema' in pkg.dependencies) {
11
+ pkg.dependencies['zod-to-json-schema'] = 'npm:@finom/zod-to-json-schema@3.24.11'
12
+ context.log(`zod-to-json-schema => @finom/zod-to-json-schema in dependencies of ${pkg.name}`)
13
+ }
14
+
15
+ // Note: you can use this to alias `@composio/client` to a preview Stainless package URL for local testing.
16
+ // if ('@composio/client' in pkg.dependencies) {
17
+ // const url = 'https://pkg.stainless.com/s/composio-sdk-typescript/4a53e1ae40ca5a0a3479727eb59d2512110c81cc'
18
+ // pkg.dependencies['@composio/client'] = url
19
+ // context.log(`@composio/client => ${url} in dependencies of ${pkg.name}`)
20
+ // }
21
+ }
22
+
23
+ return pkg
24
+}
25
+
26
+module.exports = {
27
+ hooks: {
28
+ readPackage
29
+ }
30
+}
package.json
+3
-3
@@ -41,12 +41,12 @@
41
"js-yaml": ">=4.1.1",
42
"hono": ">=4.10.3",
43
"next": ">=15.4.7",
44
- "ai": ">=5.0.52",
45
- "@mastra/core>ai": ">=5.0.52"
44
+ "ai": ">=5.0.102",
45
+ "@mastra/core>ai": ">=5.0.102"
46
}
47
},
48
"devDependencies": {
49
- "@changesets/cli": "^2.29.4",
49
+ "@changesets/cli": "^2.29.8",
50
"@composio/anthropic": "workspace:*",
51
"@composio/core": "workspace:*",
52
"@composio/openai": "workspace:*",
pnpm-lock.yaml
+3083
-2565
@@ -8,22 +8,22 @@ catalogs:
8
default:
9
'@cloudflare/vitest-pool-workers':
10
specifier: ^0.9.2
11
- version: 0.9.2
11
+ version: 0.9.14
12
'@cloudflare/workers-types':
13
specifier: ^4.20250917.0
14
- version: 4.20250917.0
14
+ version: 4.20251126.0
15
'@composio/client':
16
- specifier: 0.1.0-alpha.40
17
- version: 0.1.0-alpha.40
16
+ specifier: 0.1.0-alpha.46
17
+ version: 0.1.0-alpha.46
18
tsup:
19
specifier: ^8.5.0
20
- version: 8.5.0
20
+ version: 8.5.1
21
tsx:
22
specifier: ^4.20.5
23
- version: 4.20.5
23
+ version: 4.20.6
24
typescript:
25
specifier: ^5.9.2
26
- version: 5.9.2
26
+ version: 5.9.3
27
uuid:
28
specifier: ^13.0.0
29
version: 13.0.0
@@ -32,29 +32,28 @@ catalogs:
32
version: 3.2.4
33
wrangler:
34
specifier: ^4.37.0
35
- version: 4.37.1
35
+ version: 4.50.0
36
zod:
37
specifier: ^4.1.0
38
- version: 4.1.12
39
- zod-to-json-schema:
40
- specifier: ^3.25.0
41
- version: 3.25.0
38
+ version: 4.1.13
39
40
overrides:
41
form-data: '>=4.0.4'
42
js-yaml: '>=4.1.1'
43
hono: '>=4.10.3'
44
next: '>=15.4.7'
48
- ai: '>=5.0.52'
49
- '@mastra/core>ai': '>=5.0.52'
45
+ ai: '>=5.0.102'
46
+ '@mastra/core>ai': '>=5.0.102'
47
+
48
+pnpmfileChecksum: sha256-wkd49KqyCyptDyTPkkOMmWZ6StOr4KDrntnIeRjMcX4=
49
50
importers:
51
52
.:
53
devDependencies:
54
'@changesets/cli':
56
- specifier: ^2.29.4
57
- version: 2.29.4
55
+ specifier: ^2.29.8
56
+ version: 2.29.8(@types/node@22.19.1)
57
'@composio/anthropic':
58
specifier: workspace:*
59
version: link:ts/packages/providers/anthropic
@@ -66,16 +65,16 @@ importers:
65
version: link:ts/packages/providers/openai
66
'@types/node':
67
specifier: ^22.15.18
69
- version: 22.15.32
68
+ version: 22.19.1
69
'@vitest/ui':
70
specifier: ^3.1.4
71
version: 3.2.4(vitest@3.2.4)
72
eslint:
73
specifier: ^9.25.1
75
- version: 9.29.0(jiti@1.21.7)
74
+ version: 9.39.1(jiti@1.21.7)
75
globals:
76
specifier: ^16.0.0
78
- version: 16.2.0
77
+ version: 16.5.0
78
husky:
79
specifier: ^9.1.7
80
version: 9.1.7
@@ -84,25 +83,25 @@ importers:
83
version: 15.5.2
84
prettier:
85
specifier: ^3.5.3
87
- version: 3.5.3
86
+ version: 3.6.2
87
semver:
88
specifier: ^7.7.2
90
- version: 7.7.2
89
+ version: 7.7.3
90
tsx:
91
specifier: 'catalog:'
93
- version: 4.20.5
92
+ version: 4.20.6
93
turbo:
94
specifier: ^2.5.0
96
- version: 2.5.4
95
+ version: 2.6.1
96
typescript-eslint:
97
specifier: ^8.31.0
99
- version: 8.34.1(eslint@9.29.0(jiti@1.21.7))(typescript@5.9.2)
98
+ version: 8.48.0(eslint@9.39.1(jiti@1.21.7))(typescript@5.9.3)
99
vitest:
100
specifier: 'catalog:'
102
- version: 3.2.4(@types/node@22.15.32)(@vitest/ui@3.2.4)(jiti@1.21.7)(tsx@4.20.5)(yaml@2.8.1)
101
+ version: 3.2.4(@types/node@22.19.1)(@vitest/ui@3.2.4)(jiti@1.21.7)(tsx@4.20.6)(yaml@2.8.1)
102
zod:
103
specifier: 'catalog:'
105
- version: 4.1.12
104
+ version: 4.1.13
105
106
fern:
107
dependencies:
@@ -114,11 +113,11 @@ importers:
113
version: 4.0.3
114
supergateway:
115
specifier: ^2.8.3
117
- version: 2.8.3
116
+ version: 2.8.3(@cfworker/json-schema@4.1.1)
117
devDependencies:
118
'@ai-sdk/anthropic':
119
specifier: ^1.2.12
121
- version: 1.2.12(zod@4.1.12)
120
+ version: 1.2.12(zod@4.1.13)
121
'@anthropic-ai/sdk':
122
specifier: ^0.52.0
123
version: 0.52.0
@@ -145,22 +144,22 @@ importers:
144
version: link:../ts/packages/providers/vercel
145
'@google/genai':
146
specifier: ^1.1.0
148
- version: 1.19.0(@modelcontextprotocol/sdk@1.18.0)
147
+ version: 1.30.0(@modelcontextprotocol/sdk@1.23.0(@cfworker/json-schema@4.1.1)(zod@4.1.13))
148
'@langchain/langgraph':
149
specifier: ^0.2.72
151
- version: 0.2.74(@langchain/core@0.3.63(openai@4.104.0(ws@8.18.2)(zod@4.1.12)))(react@18.3.1)(zod-to-json-schema@3.25.0(zod@4.1.12))
150
+ version: 0.2.74(@langchain/core@0.3.79(@opentelemetry/api@1.9.0)(@opentelemetry/exporter-trace-otlp-proto@0.203.0(@opentelemetry/api@1.9.0))(@opentelemetry/sdk-trace-base@2.2.0(@opentelemetry/api@1.9.0))(openai@4.104.0(ws@8.18.3)(zod@4.1.13)))(react-dom@19.2.0(react@18.3.1))(react@18.3.1)
151
'@langchain/openai':
152
specifier: ^0.5.10
154
- version: 0.5.13(@langchain/core@0.3.63(openai@4.104.0(ws@8.18.2)(zod@4.1.12)))(ws@8.18.2)
153
+ version: 0.5.18(@langchain/core@0.3.79(@opentelemetry/api@1.9.0)(@opentelemetry/exporter-trace-otlp-proto@0.203.0(@opentelemetry/api@1.9.0))(@opentelemetry/sdk-trace-base@2.2.0(@opentelemetry/api@1.9.0))(openai@4.104.0(ws@8.18.3)(zod@4.1.13)))(ws@8.18.3)
154
'@llamaindex/openai':
155
specifier: ^0.4.20
157
- version: 0.4.20(@llamaindex/core@0.6.22)(@llamaindex/env@0.1.30)(ws@8.18.2)(zod@4.1.12)
156
+ version: 0.4.21(@llamaindex/core@0.6.22)(@llamaindex/env@0.1.30)(ws@8.18.3)(zod@4.1.13)
157
'@llamaindex/workflow':
158
specifier: ^1.1.24
160
- version: 1.1.24(@llamaindex/core@0.6.22)(@llamaindex/env@0.1.30)(@modelcontextprotocol/sdk@1.18.0)(hono@4.10.6)(next@16.0.3(@opentelemetry/api@1.9.0)(react-dom@19.1.0(react@18.3.1))(react@18.3.1))(rxjs@7.8.2)(zod@4.1.12)
159
+ version: 1.1.24(@llamaindex/core@0.6.22)(@llamaindex/env@0.1.30)(@modelcontextprotocol/sdk@1.23.0(@cfworker/json-schema@4.1.1)(zod@4.1.13))(hono@4.10.6)(next@16.0.4(@opentelemetry/api@1.9.0)(react-dom@19.2.0(react@18.3.1))(react@18.3.1))(rxjs@7.8.2)(zod@4.1.13)
160
'@openai/agents':
161
specifier: ^0.2.1
163
- version: 0.2.1(ws@8.18.2)(zod@4.1.12)
162
+ version: 0.2.1(@cfworker/json-schema@4.1.1)(ws@8.18.3)(zod@4.1.13)
163
'@types/convict':
164
specifier: ^6.1.6
165
version: 6.1.6
@@ -169,19 +168,19 @@ importers:
168
version: 8.1.0
169
'@types/node':
170
specifier: ^20.17.57
172
- version: 20.19.1
171
+ version: 20.19.25
172
'@types/react':
173
specifier: ^18.3.23
175
- version: 18.3.23
174
+ version: 18.3.27
175
'@types/yaml':
176
specifier: ^1.9.7
177
version: 1.9.7
178
ai:
180
- specifier: '>=5.0.52'
181
- version: 5.0.60(zod@4.1.12)
179
+ specifier: '>=5.0.102'
180
+ version: 5.0.102(zod@4.1.13)
181
composio-core:
182
specifier: ^0.5.39
184
- version: 0.5.39(@ai-sdk/openai@2.0.53(zod@4.1.12))(@cloudflare/workers-types@4.20250917.0)(@langchain/core@0.3.63(openai@4.104.0(ws@8.18.2)(zod@4.1.12)))(@langchain/openai@0.5.13(@langchain/core@0.3.63(openai@4.104.0(ws@8.18.2)(zod@4.1.12)))(ws@8.18.2))(ai@5.0.60(zod@4.1.12))(langchain@0.3.28(@langchain/core@0.3.63(openai@4.104.0(ws@8.18.2)(zod@4.1.12)))(@opentelemetry/api@1.9.0)(@opentelemetry/exporter-trace-otlp-proto@0.203.0(@opentelemetry/api@1.9.0))(@opentelemetry/sdk-trace-base@2.0.1(@opentelemetry/api@1.9.0))(axios@1.10.0)(openai@4.104.0(ws@8.18.2)(zod@4.1.12))(ws@8.18.2))(openai@4.104.0(ws@8.18.2)(zod@4.1.12))
183
+ version: 0.5.39(a93c6cceb1bf13ed429296d75bf8327d)
184
hono:
185
specifier: '>=4.10.3'
186
version: 4.10.6
@@ -190,52 +189,52 @@ importers:
189
version: link:@langchain/core/messages
190
next:
191
specifier: '>=15.4.7'
193
- version: 16.0.3(@opentelemetry/api@1.9.0)(react-dom@19.1.0(react@18.3.1))(react@18.3.1)
192
+ version: 16.0.4(@opentelemetry/api@1.9.0)(react-dom@19.2.0(react@18.3.1))(react@18.3.1)
193
only-allow:
194
specifier: ^1.2.1
195
version: 1.2.1
196
openai:
197
specifier: ^4.94.0
199
- version: 4.104.0(ws@8.18.2)(zod@4.1.12)
198
+ version: 4.104.0(ws@8.18.3)(zod@4.1.13)
199
react:
200
specifier: ^18.3.1
201
version: 18.3.1
202
tailwindcss:
203
specifier: ^3.4.17
205
- version: 3.4.17
204
+ version: 3.4.18(tsx@4.20.6)(yaml@2.8.1)
205
typedoc:
206
specifier: ^0.28.5
208
- version: 0.28.5(typescript@5.9.2)
207
+ version: 0.28.14(typescript@5.9.3)
208
typedoc-plugin-markdown:
209
specifier: ^4.6.4
211
- version: 4.6.4(typedoc@0.28.5(typescript@5.9.2))
210
+ version: 4.9.0(typedoc@0.28.14(typescript@5.9.3))
211
typedoc-plugin-zod:
212
specifier: ^1.4.1
214
- version: 1.4.2(typedoc@0.28.5(typescript@5.9.2))
213
+ version: 1.4.3(typedoc@0.28.14(typescript@5.9.3))
214
typescript:
215
specifier: 'catalog:'
217
- version: 5.9.2
216
+ version: 5.9.3
217
uuid:
218
specifier: 'catalog:'
219
version: 13.0.0
220
vitest:
221
specifier: 'catalog:'
223
- version: 3.2.4(@types/node@20.19.1)(@vitest/ui@3.2.4)(jiti@1.21.7)(tsx@4.20.5)(yaml@2.8.0)
222
+ version: 3.2.4(@types/node@20.19.25)(@vitest/ui@3.2.4)(jiti@1.21.7)(tsx@4.20.6)(yaml@2.8.1)
223
yaml:
224
specifier: ^2.8.0
226
- version: 2.8.0
225
+ version: 2.8.1
226
227
fern/llms-txt-worker:
228
devDependencies:
229
'@cloudflare/workers-types':
230
specifier: 'catalog:'
232
- version: 4.20250917.0
231
+ version: 4.20251126.0
232
typescript:
233
specifier: 'catalog:'
235
- version: 5.9.2
234
+ version: 5.9.3
235
wrangler:
236
specifier: 'catalog:'
238
- version: 4.37.1(@cloudflare/workers-types@4.20250917.0)
237
+ version: 4.50.0(@cloudflare/workers-types@4.20251126.0)
238
239
ts/examples/anthropic:
240
dependencies:
@@ -250,23 +249,23 @@ importers:
249
version: link:../../packages/core
250
'@mastra/mcp':
251
specifier: ^0.12.0
253
- version: 0.12.0(@mastra/core@0.24.5(effect@3.16.16)(openapi-types@12.1.3)(zod@4.1.12))(@types/json-schema@7.0.15)(zod@4.1.12)
252
+ version: 0.12.0(@cfworker/json-schema@4.1.1)(@mastra/core@0.24.5(effect@3.19.6)(openapi-types@12.1.3)(zod@4.1.13))(@types/json-schema@7.0.15)(zod@4.1.13)
253
dotenv:
254
specifier: ^16.4.1
256
- version: 16.5.0
255
+ version: 16.6.1
256
zod:
257
specifier: 'catalog:'
259
- version: 4.1.12
258
+ version: 4.1.13
259
zod-to-json-schema:
261
- specifier: ^3.24.5
262
- version: 3.24.6(zod@4.1.12)
260
+ specifier: npm:@finom/zod-to-json-schema@3.24.11
261
+ version: '@finom/zod-to-json-schema@3.24.11(zod@4.1.13)'
262
devDependencies:
263
'@types/bun':
264
specifier: ^1.2.9
266
- version: 1.2.16
265
+ version: 1.3.3
266
typescript:
267
specifier: 'catalog:'
269
- version: 5.9.2
268
+ version: 5.9.3
269
270
ts/examples/cloudflare-wrangler:
271
dependencies:
@@ -278,20 +277,20 @@ importers:
277
version: 4.10.6
278
openai:
279
specifier: ^4.94.0
281
- version: 4.104.0(ws@8.18.2)(zod@3.25.76)
280
+ version: 4.104.0(ws@8.18.3)(zod@3.25.76)
281
devDependencies:
282
'@cloudflare/vitest-pool-workers':
283
specifier: 'catalog:'
285
- version: 0.9.2(@cloudflare/workers-types@4.20250917.0)(@vitest/runner@3.2.4)(@vitest/snapshot@3.2.4)(vitest@3.2.4)
284
+ version: 0.9.14(@cloudflare/workers-types@4.20251126.0)(@vitest/runner@3.2.4)(@vitest/snapshot@3.2.4)(vitest@3.2.4)
285
typescript:
286
specifier: 'catalog:'
288
- version: 5.9.2
287
+ version: 5.9.3
288
vitest:
289
specifier: 'catalog:'
291
- version: 3.2.4(@types/node@24.6.2)(@vitest/ui@3.2.4)(jiti@1.21.7)(tsx@4.20.5)(yaml@2.8.1)
290
+ version: 3.2.4(@types/node@24.10.1)(@vitest/ui@3.2.4)(jiti@1.21.7)(tsx@4.20.6)(yaml@2.8.1)
291
wrangler:
292
specifier: 'catalog:'
294
- version: 4.37.1(@cloudflare/workers-types@4.20250917.0)
293
+ version: 4.50.0(@cloudflare/workers-types@4.20251126.0)
294
295
ts/examples/connected-accounts:
296
dependencies:
@@ -300,14 +299,14 @@ importers:
299
version: link:../../packages/core
300
openai:
301
specifier: ^4.94.0
303
- version: 4.104.0(ws@8.18.2)(zod@3.25.76)
302
+ version: 4.104.0(ws@8.18.3)(zod@3.25.76)
303
devDependencies:
304
'@types/bun':
305
specifier: ^1.2.9
307
- version: 1.2.16
306
+ version: 1.3.3
307
typescript:
308
specifier: 'catalog:'
310
- version: 5.9.2
309
+ version: 5.9.3
310
311
ts/examples/custom-tools:
312
dependencies:
@@ -316,17 +315,17 @@ importers:
315
version: link:../../packages/core
316
dotenv:
317
specifier: ^16.4.1
319
- version: 16.5.0
318
+ version: 16.6.1
319
zod:
320
specifier: 'catalog:'
322
- version: 4.1.12
321
+ version: 4.1.13
322
devDependencies:
323
'@types/bun':
324
specifier: ^1.2.9
326
- version: 1.2.16
325
+ version: 1.3.3
326
typescript:
327
specifier: 'catalog:'
329
- version: 5.9.2
328
+ version: 5.9.3
329
330
ts/examples/error-handling-demo:
331
dependencies:
@@ -335,14 +334,14 @@ importers:
334
version: link:../../packages/core
335
dotenv:
336
specifier: ^16.5.0
338
- version: 16.5.0
337
+ version: 16.6.1
338
devDependencies:
339
'@types/bun':
340
specifier: ^1.2.9
342
- version: 1.2.16
341
+ version: 1.3.3
342
typescript:
343
specifier: 'catalog:'
345
- version: 5.9.2
344
+ version: 5.9.3
345
346
ts/examples/file-handling:
347
dependencies:
@@ -355,10 +354,10 @@ importers:
354
devDependencies:
355
'@types/bun':
356
specifier: ^1.2.9
358
- version: 1.2.16
357
+ version: 1.3.3
358
typescript:
359
specifier: 'catalog:'
361
- version: 5.9.2
360
+ version: 5.9.3
361
362
ts/examples/google:
363
dependencies:
@@ -370,20 +369,20 @@ importers:
369
version: link:../../packages/providers/google
370
'@google/genai':
371
specifier: ^1.1.0
373
- version: 1.19.0(@modelcontextprotocol/sdk@1.18.0)
372
+ version: 1.30.0(@modelcontextprotocol/sdk@1.23.0(@cfworker/json-schema@4.1.1)(zod@4.1.13))
373
'@modelcontextprotocol/sdk':
374
specifier: ^1.18.0
376
- version: 1.18.0
375
+ version: 1.23.0(@cfworker/json-schema@4.1.1)(zod@4.1.13)
376
dotenv:
377
specifier: ^16.4.1
379
- version: 16.5.0
378
+ version: 16.6.1
379
devDependencies:
380
'@types/bun':
381
specifier: ^1.2.9
383
- version: 1.2.16
382
+ version: 1.3.3
383
typescript:
384
specifier: 'catalog:'
386
- version: 5.9.2
385
+ version: 5.9.3
386
387
ts/examples/json-schema-to-zod:
388
dependencies:
@@ -395,17 +394,17 @@ importers:
394
version: link:../../packages/providers/vercel
395
dotenv:
396
specifier: ^16.4.1
398
- version: 16.5.0
397
+ version: 16.6.1
398
zod-to-json-schema:
400
- specifier: ^3.24.5
401
- version: 3.24.6(zod@4.1.12)
399
+ specifier: npm:@finom/zod-to-json-schema@3.24.11
400
+ version: '@finom/zod-to-json-schema@3.24.11(zod@4.1.13)'
401
devDependencies:
402
'@types/bun':
403
specifier: ^1.2.9
405
- version: 1.2.16
404
+ version: 1.3.3
405
typescript:
406
specifier: 'catalog:'
408
- version: 5.9.2
407
+ version: 5.9.3
408
409
ts/examples/langchain:
410
dependencies:
@@ -417,26 +416,26 @@ importers:
416
version: link:../../packages/providers/langchain
417
'@langchain/core':
418
specifier: ^0.3.63
420
- version: 0.3.63(openai@4.104.0(ws@8.18.2)(zod@3.25.76))
419
+ version: 0.3.79(@opentelemetry/api@1.9.0)(@opentelemetry/exporter-trace-otlp-proto@0.203.0(@opentelemetry/api@1.9.0))(@opentelemetry/sdk-trace-base@2.2.0(@opentelemetry/api@1.9.0))(openai@4.104.0(ws@8.18.3)(zod@3.25.76))
420
'@langchain/langgraph':
421
specifier: ^0.3.8
423
- version: 0.3.8(@langchain/core@0.3.63(openai@4.104.0(ws@8.18.2)(zod@3.25.76)))(react-dom@19.1.0(react@18.3.1))(react@18.3.1)(zod-to-json-schema@3.25.0(zod@3.25.76))
422
+ version: 0.3.12(@langchain/core@0.3.79(@opentelemetry/api@1.9.0)(@opentelemetry/exporter-trace-otlp-proto@0.203.0(@opentelemetry/api@1.9.0))(@opentelemetry/sdk-trace-base@2.2.0(@opentelemetry/api@1.9.0))(openai@4.104.0(ws@8.18.3)(zod@3.25.76)))(react-dom@19.2.0(react@18.3.1))(react@18.3.1)
423
'@langchain/openai':
424
specifier: ^0.6.1
426
- version: 0.6.1(@langchain/core@0.3.63(openai@4.104.0(ws@8.18.2)(zod@3.25.76)))(ws@8.18.2)
425
+ version: 0.6.16(@langchain/core@0.3.79(@opentelemetry/api@1.9.0)(@opentelemetry/exporter-trace-otlp-proto@0.203.0(@opentelemetry/api@1.9.0))(@opentelemetry/sdk-trace-base@2.2.0(@opentelemetry/api@1.9.0))(openai@4.104.0(ws@8.18.3)(zod@3.25.76)))(ws@8.18.3)
426
dotenv:
427
specifier: ^16.5.0
429
- version: 16.5.0
428
+ version: 16.6.1
429
openai:
430
specifier: ^4.94.0
432
- version: 4.104.0(ws@8.18.2)(zod@3.25.76)
431
+ version: 4.104.0(ws@8.18.3)(zod@3.25.76)
432
devDependencies:
433
'@types/bun':
434
specifier: ^1.2.9
436
- version: 1.2.16
435
+ version: 1.3.3
436
typescript:
437
specifier: 'catalog:'
439
- version: 5.9.2
438
+ version: 5.9.3
439
440
ts/examples/llamaindex:
441
dependencies:
@@ -448,29 +447,29 @@ importers:
447
version: link:../../packages/providers/llamaindex
448
'@llamaindex/openai':
449
specifier: ^0.4.20
451
- version: 0.4.20(@llamaindex/core@0.6.22)(@llamaindex/env@0.1.30)(ws@8.18.2)(zod@4.1.12)
450
+ version: 0.4.21(@llamaindex/core@0.6.22)(@llamaindex/env@0.1.30)(ws@8.18.3)(zod@4.1.13)
451
'@llamaindex/workflow':
452
specifier: ^1.1.24
454
- version: 1.1.24(@llamaindex/core@0.6.22)(@llamaindex/env@0.1.30)(@modelcontextprotocol/sdk@1.18.0)(hono@4.10.6)(next@16.0.3(@opentelemetry/api@1.9.0)(react-dom@19.1.0(react@18.3.1))(react@18.3.1))(rxjs@7.8.2)(zod@4.1.12)
453
+ version: 1.1.24(@llamaindex/core@0.6.22)(@llamaindex/env@0.1.30)(@modelcontextprotocol/sdk@1.23.0(@cfworker/json-schema@4.1.1)(zod@4.1.13))(hono@4.10.6)(next@16.0.4(@opentelemetry/api@1.9.0)(react-dom@19.2.0(react@18.3.1))(react@18.3.1))(rxjs@7.8.2)(zod@4.1.13)
454
dotenv:
455
specifier: ^16.4.1
456
version: 16.6.1
457
llamaindex:
458
specifier: ^0.12.0
460
- version: 0.12.0(@modelcontextprotocol/sdk@1.18.0)(hono@4.10.6)(next@16.0.3(@opentelemetry/api@1.9.0)(react-dom@19.1.0(react@18.3.1))(react@18.3.1))(rxjs@7.8.2)(tree-sitter@0.22.4)(web-tree-sitter@0.24.7)(zod@4.1.12)
459
+ version: 0.12.0(@modelcontextprotocol/sdk@1.23.0(@cfworker/json-schema@4.1.1)(zod@4.1.13))(hono@4.10.6)(next@16.0.4(@opentelemetry/api@1.9.0)(react-dom@19.2.0(react@18.3.1))(react@18.3.1))(rxjs@7.8.2)(tree-sitter@0.22.4)(web-tree-sitter@0.24.7)(zod@4.1.13)
460
devDependencies:
461
'@types/bun':
462
specifier: ^1.2.9
464
- version: 1.2.16
463
+ version: 1.3.3
464
typescript:
465
specifier: 'catalog:'
467
- version: 5.9.2
466
+ version: 5.9.3
467
468
ts/examples/mastra:
469
dependencies:
470
'@ai-sdk/openai':
471
specifier: ^1.3.16
473
- version: 1.3.22(zod@4.1.12)
472
+ version: 1.3.24(zod@4.1.13)
473
'@composio/core':
474
specifier: workspace:*
475
version: link:../../packages/core
@@ -479,29 +478,29 @@ importers:
478
version: link:../../packages/providers/mastra
479
'@mastra/core':
480
specifier: ^0.24.5
482
- version: 0.24.5(effect@3.16.16)(openapi-types@12.1.3)(zod@4.1.12)
481
+ version: 0.24.5(effect@3.19.6)(openapi-types@12.1.3)(zod@4.1.13)
482
'@mastra/mcp':
483
specifier: ^0.12.0
485
- version: 0.12.0(@mastra/core@0.24.5(effect@3.16.16)(openapi-types@12.1.3)(zod@4.1.12))(@types/json-schema@7.0.15)(zod@4.1.12)
484
+ version: 0.12.0(@cfworker/json-schema@4.1.1)(@mastra/core@0.24.5(effect@3.19.6)(openapi-types@12.1.3)(zod@4.1.13))(@types/json-schema@7.0.15)(zod@4.1.13)
485
dotenv:
486
specifier: ^16.4.1
488
- version: 16.5.0
487
+ version: 16.6.1
488
zod:
489
specifier: 'catalog:'
491
- version: 4.1.12
490
+ version: 4.1.13
491
devDependencies:
492
'@types/bun':
493
specifier: ^1.2.9
495
- version: 1.2.16
494
+ version: 1.3.3
495
typescript:
496
specifier: 'catalog:'
498
- version: 5.9.2
497
+ version: 5.9.3
498
499
ts/examples/mcp:
500
dependencies:
501
'@ai-sdk/openai':
502
specifier: ^2.0.35
504
- version: 2.0.35(zod@4.1.12)
503
+ version: 2.0.72(zod@4.1.13)
504
'@composio/core':
505
specifier: workspace:*
506
version: link:../../packages/core
@@ -510,26 +509,26 @@ importers:
509
version: link:../../packages/providers/vercel
510
'@modelcontextprotocol/sdk':
511
specifier: ^1.18.0
513
- version: 1.18.0
512
+ version: 1.23.0(@cfworker/json-schema@4.1.1)(zod@4.1.13)
513
ai:
515
- specifier: '>=5.0.52'
516
- version: 5.0.60(zod@4.1.12)
514
+ specifier: '>=5.0.102'
515
+ version: 5.0.102(zod@4.1.13)
516
dotenv:
517
specifier: ^16.4.1
518
version: 16.6.1
519
devDependencies:
520
'@types/bun':
521
specifier: ^1.2.9
523
- version: 1.2.16
522
+ version: 1.3.3
523
typescript:
524
specifier: 'catalog:'
526
- version: 5.9.2
525
+ version: 5.9.3
526
527
ts/examples/modifiers:
528
dependencies:
529
'@ai-sdk/openai':
530
specifier: ^1.3.16
532
- version: 1.3.22(zod@4.1.12)
531
+ version: 1.3.24(zod@4.1.13)
532
'@composio/core':
533
specifier: workspace:*
534
version: link:../../packages/core
@@ -537,15 +536,15 @@ importers:
536
specifier: workspace:*
537
version: link:../../packages/providers/vercel
538
ai:
540
- specifier: '>=5.0.52'
541
- version: 5.0.60(zod@4.1.12)
539
+ specifier: '>=5.0.102'
540
+ version: 5.0.102(zod@4.1.13)
541
devDependencies:
542
'@types/bun':
543
specifier: ^1.2.9
545
- version: 1.2.16
544
+ version: 1.3.3
545
typescript:
546
specifier: 'catalog:'
548
- version: 5.9.2
547
+ version: 5.9.3
548
549
ts/examples/openai:
550
dependencies:
@@ -560,29 +559,29 @@ importers:
559
version: link:../../packages/providers/openai-agents
560
'@modelcontextprotocol/sdk':
561
specifier: ^1.18.0
563
- version: 1.18.0
562
+ version: 1.23.0(@cfworker/json-schema@4.1.1)(zod@4.1.13)
563
'@openai/agents':
564
specifier: ^0.1.4
566
- version: 0.1.4(ws@8.18.2)(zod@4.1.12)
565
+ version: 0.1.11(@cfworker/json-schema@4.1.1)(ws@8.18.3)(zod@4.1.13)
566
dotenv:
567
specifier: ^16.4.1
569
- version: 16.5.0
568
+ version: 16.6.1
569
openai:
570
specifier: ^5.16.0
572
- version: 5.16.0(ws@8.18.2)(zod@4.1.12)
571
+ version: 5.23.2(ws@8.18.3)(zod@4.1.13)
572
zod:
573
specifier: 'catalog:'
575
- version: 4.1.12
574
+ version: 4.1.13
575
zod-to-json-schema:
577
- specifier: ^3.24.5
578
- version: 3.24.6(zod@4.1.12)
576
+ specifier: npm:@finom/zod-to-json-schema@3.24.11
577
+ version: '@finom/zod-to-json-schema@3.24.11(zod@4.1.13)'
578
devDependencies:
579
'@types/bun':
580
specifier: ^1.2.9
582
- version: 1.2.16
581
+ version: 1.3.3
582
typescript:
583
specifier: 'catalog:'
585
- version: 5.9.2
584
+ version: 5.9.3
585
586
ts/examples/session-management:
587
dependencies:
@@ -591,20 +590,75 @@ importers:
590
version: link:../../packages/core
591
dotenv:
592
specifier: ^16.4.1
594
- version: 16.5.0
593
+ version: 16.6.1
594
devDependencies:
595
'@types/bun':
596
specifier: ^1.2.9
598
- version: 1.2.16
597
+ version: 1.3.3
598
typescript:
599
specifier: 'catalog:'
601
- version: 5.9.2
600
+ version: 5.9.3
601
+
602
+ ts/examples/tool-router:
603
+ dependencies:
604
+ '@ai-sdk/mcp':
605
+ specifier: ^0.0.10
606
+ version: 0.0.10(zod@4.1.13)
607
+ '@ai-sdk/openai':
608
+ specifier: ^2.0.72
609
+ version: 2.0.72(zod@4.1.13)
610
+ '@anthropic-ai/claude-agent-sdk':
611
+ specifier: ^0.1.55
612
+ version: 0.1.55(zod@4.1.13)
613
+ '@composio/core':
614
+ specifier: workspace:*
615
+ version: link:../../packages/core
616
+ '@composio/openai-agents':
617
+ specifier: workspace:*
618
+ version: link:../../packages/providers/openai-agents
619
+ '@composio/vercel':
620
+ specifier: workspace:*
621
+ version: link:../../packages/providers/vercel
622
+ '@langchain/anthropic':
623
+ specifier: ^1.1.3
624
+ version: 1.1.3(@langchain/core@0.3.79(@opentelemetry/api@1.9.0)(@opentelemetry/exporter-trace-otlp-proto@0.203.0(@opentelemetry/api@1.9.0))(@opentelemetry/sdk-trace-base@2.2.0(@opentelemetry/api@1.9.0))(openai@6.9.1(ws@8.18.3)(zod@4.1.13)))(zod@4.1.13)
625
+ '@langchain/mcp-adapters':
626
+ specifier: ^1.0.1
627
+ version: 1.0.1(@cfworker/json-schema@4.1.1)(@langchain/core@0.3.79(@opentelemetry/api@1.9.0)(@opentelemetry/exporter-trace-otlp-proto@0.203.0(@opentelemetry/api@1.9.0))(@opentelemetry/sdk-trace-base@2.2.0(@opentelemetry/api@1.9.0))(openai@6.9.1(ws@8.18.3)(zod@4.1.13)))(@langchain/langgraph@1.0.2(@langchain/core@0.3.79(@opentelemetry/api@1.9.0)(@opentelemetry/exporter-trace-otlp-proto@0.203.0(@opentelemetry/api@1.9.0))(@opentelemetry/sdk-trace-base@2.2.0(@opentelemetry/api@1.9.0))(openai@6.9.1(ws@8.18.3)(zod@4.1.13)))(react-dom@19.2.0(react@18.3.1))(react@18.3.1)(zod@4.1.13))
628
+ '@langchain/openai':
629
+ specifier: ^1.1.3
630
+ version: 1.1.3(@langchain/core@0.3.79(@opentelemetry/api@1.9.0)(@opentelemetry/exporter-trace-otlp-proto@0.203.0(@opentelemetry/api@1.9.0))(@opentelemetry/sdk-trace-base@2.2.0(@opentelemetry/api@1.9.0))(openai@6.9.1(ws@8.18.3)(zod@4.1.13)))(ws@8.18.3)
631
+ '@openai/agents':
632
+ specifier: ^0.3.3
633
+ version: 0.3.3(@cfworker/json-schema@4.1.1)(ws@8.18.3)(zod@4.1.13)
634
+ ai:
635
+ specifier: '>=5.0.102'
636
+ version: 5.0.102(zod@4.1.13)
637
+ dotenv:
638
+ specifier: ^16.4.1
639
+ version: 16.6.1
640
+ langchain:
641
+ specifier: ^1.1.1
642
+ version: 1.1.1(@langchain/core@0.3.79(@opentelemetry/api@1.9.0)(@opentelemetry/exporter-trace-otlp-proto@0.203.0(@opentelemetry/api@1.9.0))(@opentelemetry/sdk-trace-base@2.2.0(@opentelemetry/api@1.9.0))(openai@6.9.1(ws@8.18.3)(zod@4.1.13)))(@opentelemetry/api@1.9.0)(@opentelemetry/exporter-trace-otlp-proto@0.203.0(@opentelemetry/api@1.9.0))(@opentelemetry/sdk-trace-base@2.2.0(@opentelemetry/api@1.9.0))(openai@6.9.1(ws@8.18.3)(zod@4.1.13))(react-dom@19.2.0(react@18.3.1))(react@18.3.1)
643
+ ora:
644
+ specifier: ^9.0.0
645
+ version: 9.0.0
646
+ pnpm:
647
+ specifier: ^10.21.0
648
+ version: 10.23.0
649
+ devDependencies:
650
+ '@types/bun':
651
+ specifier: ^1.2.9
652
+ version: 1.3.3
653
+ typescript:
654
+ specifier: 'catalog:'
655
+ version: 5.9.3
656
657
ts/examples/toolkits:
658
dependencies:
659
'@ai-sdk/openai':
660
specifier: ^1.3.16
607
- version: 1.3.22(zod@4.1.12)
661
+ version: 1.3.24(zod@4.1.13)
662
'@composio/core':
663
specifier: workspace:*
664
version: link:../../packages/core
@@ -612,15 +666,15 @@ importers:
666
specifier: workspace:*
667
version: link:../../packages/providers/vercel
668
ai:
615
- specifier: '>=5.0.52'
616
- version: 5.0.60(zod@4.1.12)
669
+ specifier: '>=5.0.102'
670
+ version: 5.0.102(zod@4.1.13)
671
devDependencies:
672
'@types/bun':
673
specifier: ^1.2.9
620
- version: 1.2.16
674
+ version: 1.3.3
675
typescript:
676
specifier: 'catalog:'
623
- version: 5.9.2
677
+ version: 5.9.3
678
679
ts/examples/tools:
680
dependencies:
@@ -629,23 +683,23 @@ importers:
683
version: link:../../packages/core
684
dotenv:
685
specifier: ^16.4.1
632
- version: 16.5.0
686
+ version: 16.6.1
687
openai:
688
specifier: ^5.19.1
635
- version: 5.19.1(ws@8.18.2)(zod@4.1.12)
689
+ version: 5.23.2(ws@8.18.3)(zod@4.1.13)
690
zod:
691
specifier: 'catalog:'
638
- version: 4.1.12
692
+ version: 4.1.13
693
zod-to-json-schema:
640
- specifier: ^3.24.5
641
- version: 3.24.6(zod@4.1.12)
694
+ specifier: npm:@finom/zod-to-json-schema@3.24.11
695
+ version: '@finom/zod-to-json-schema@3.24.11(zod@4.1.13)'
696
devDependencies:
697
'@types/bun':
698
specifier: ^1.2.9
645
- version: 1.2.16
699
+ version: 1.3.3
700
typescript:
701
specifier: 'catalog:'
648
- version: 5.9.2
702
+ version: 5.9.3
703
704
ts/examples/triggers:
705
dependencies:
@@ -654,20 +708,20 @@ importers:
708
version: link:../../packages/core
709
dotenv:
710
specifier: ^16.4.1
657
- version: 16.5.0
711
+ version: 16.6.1
712
devDependencies:
713
'@types/bun':
714
specifier: ^1.2.9
661
- version: 1.2.16
715
+ version: 1.3.3
716
typescript:
717
specifier: 'catalog:'
664
- version: 5.9.2
718
+ version: 5.9.3
719
720
ts/examples/vercel:
721
dependencies:
722
'@ai-sdk/openai':
723
specifier: ^2.0.16
670
- version: 2.0.16(zod@4.1.12)
724
+ version: 2.0.72(zod@4.1.13)
725
'@composio/core':
726
specifier: workspace:*
727
version: link:../../packages/core
@@ -676,23 +730,23 @@ importers:
730
version: link:../../packages/providers/vercel
731
'@modelcontextprotocol/sdk':
732
specifier: ^1.18.0
679
- version: 1.18.0
733
+ version: 1.23.0(@cfworker/json-schema@4.1.1)(zod@4.1.13)
734
ai:
681
- specifier: '>=5.0.52'
682
- version: 5.0.60(zod@4.1.12)
735
+ specifier: '>=5.0.102'
736
+ version: 5.0.102(zod@4.1.13)
737
dotenv:
738
specifier: ^16.5.0
685
- version: 16.5.0
739
+ version: 16.6.1
740
zod-to-json-schema:
687
- specifier: ^3.24.6
688
- version: 3.24.6(zod@4.1.12)
741
+ specifier: npm:@finom/zod-to-json-schema@3.24.11
742
+ version: '@finom/zod-to-json-schema@3.24.11(zod@4.1.13)'
743
devDependencies:
744
'@types/bun':
745
specifier: ^1.2.9
692
- version: 1.2.16
746
+ version: 1.3.3
747
typescript:
748
specifier: 'catalog:'
695
- version: 5.9.2
749
+ version: 5.9.3
750
751
ts/examples/versioning:
752
dependencies:
@@ -705,10 +759,10 @@ importers:
759
devDependencies:
760
'@types/bun':
761
specifier: ^1.2.9
708
- version: 1.2.16
762
+ version: 1.3.3
763
typescript:
764
specifier: 'catalog:'
711
- version: 5.9.2
765
+ version: 5.9.3
766
767
ts/packages/cli:
768
dependencies:
@@ -717,7 +771,7 @@ importers:
771
version: 1.0.0-alpha.1
772
'@composio/client':
773
specifier: 'catalog:'
720
- version: 0.1.0-alpha.40
774
+ version: 0.1.0-alpha.46
775
'@composio/core':
776
specifier: workspace:*
777
version: link:../core
@@ -726,25 +780,25 @@ importers:
780
version: link:../ts-builders
781
'@effect/cli':
782
specifier: ^0.64.2
729
- version: 0.64.2(@effect/platform@0.85.2(effect@3.16.16))(@effect/printer-ansi@0.44.8(@effect/typeclass@0.35.8(effect@3.16.16))(effect@3.16.16))(@effect/printer@0.44.8(@effect/typeclass@0.35.8(effect@3.16.16))(effect@3.16.16))(effect@3.16.16)
783
+ version: 0.64.2(@effect/platform@0.85.2(effect@3.19.6))(@effect/printer-ansi@0.44.14(@effect/typeclass@0.35.14(effect@3.19.6))(effect@3.19.6))(@effect/printer@0.44.14(@effect/typeclass@0.35.14(effect@3.19.6))(effect@3.19.6))(effect@3.19.6)
784
'@effect/platform-bun':
785
specifier: ^0.70.4
732
- version: 0.70.5(@effect/cluster@0.39.4(@effect/platform@0.85.2(effect@3.16.16))(@effect/rpc@0.62.4(@effect/platform@0.85.2(effect@3.16.16))(effect@3.16.16))(@effect/sql@0.38.2(@effect/experimental@0.49.2(@effect/platform@0.85.2(effect@3.16.16))(effect@3.16.16))(@effect/platform@0.85.2(effect@3.16.16))(effect@3.16.16))(@effect/workflow@0.2.4(@effect/platform@0.85.2(effect@3.16.16))(@effect/rpc@0.62.4(@effect/platform@0.85.2(effect@3.16.16))(effect@3.16.16))(effect@3.16.16))(effect@3.16.16))(@effect/platform@0.85.2(effect@3.16.16))(@effect/rpc@0.62.4(@effect/platform@0.85.2(effect@3.16.16))(effect@3.16.16))(@effect/sql@0.38.2(@effect/experimental@0.49.2(@effect/platform@0.85.2(effect@3.16.16))(effect@3.16.16))(@effect/platform@0.85.2(effect@3.16.16))(effect@3.16.16))(effect@3.16.16)
786
+ version: 0.70.5(@effect/cluster@0.39.5(@effect/platform@0.85.2(effect@3.19.6))(@effect/rpc@0.62.4(@effect/platform@0.85.2(effect@3.19.6))(effect@3.19.6))(@effect/sql@0.38.2(@effect/experimental@0.49.2(@effect/platform@0.85.2(effect@3.19.6))(effect@3.19.6))(@effect/platform@0.85.2(effect@3.19.6))(effect@3.19.6))(@effect/workflow@0.2.4(@effect/platform@0.85.2(effect@3.19.6))(@effect/rpc@0.62.4(@effect/platform@0.85.2(effect@3.19.6))(effect@3.19.6))(effect@3.19.6))(effect@3.19.6))(@effect/platform@0.85.2(effect@3.19.6))(@effect/rpc@0.62.4(@effect/platform@0.85.2(effect@3.19.6))(effect@3.19.6))(@effect/sql@0.38.2(@effect/experimental@0.49.2(@effect/platform@0.85.2(effect@3.19.6))(effect@3.19.6))(@effect/platform@0.85.2(effect@3.19.6))(effect@3.19.6))(effect@3.19.6)
787
'@effect/platform-node-shared':
788
specifier: ^0.40.4
735
- version: 0.40.4(@effect/cluster@0.39.4(@effect/platform@0.85.2(effect@3.16.16))(@effect/rpc@0.62.4(@effect/platform@0.85.2(effect@3.16.16))(effect@3.16.16))(@effect/sql@0.38.2(@effect/experimental@0.49.2(@effect/platform@0.85.2(effect@3.16.16))(effect@3.16.16))(@effect/platform@0.85.2(effect@3.16.16))(effect@3.16.16))(@effect/workflow@0.2.4(@effect/platform@0.85.2(effect@3.16.16))(@effect/rpc@0.62.4(@effect/platform@0.85.2(effect@3.16.16))(effect@3.16.16))(effect@3.16.16))(effect@3.16.16))(@effect/platform@0.85.2(effect@3.16.16))(@effect/rpc@0.62.4(@effect/platform@0.85.2(effect@3.16.16))(effect@3.16.16))(@effect/sql@0.38.2(@effect/experimental@0.49.2(@effect/platform@0.85.2(effect@3.16.16))(effect@3.16.16))(@effect/platform@0.85.2(effect@3.16.16))(effect@3.16.16))(effect@3.16.16)
789
+ version: 0.40.5(@effect/cluster@0.39.5(@effect/platform@0.85.2(effect@3.19.6))(@effect/rpc@0.62.4(@effect/platform@0.85.2(effect@3.19.6))(effect@3.19.6))(@effect/sql@0.38.2(@effect/experimental@0.49.2(@effect/platform@0.85.2(effect@3.19.6))(effect@3.19.6))(@effect/platform@0.85.2(effect@3.19.6))(effect@3.19.6))(@effect/workflow@0.2.4(@effect/platform@0.85.2(effect@3.19.6))(@effect/rpc@0.62.4(@effect/platform@0.85.2(effect@3.19.6))(effect@3.19.6))(effect@3.19.6))(effect@3.19.6))(@effect/platform@0.85.2(effect@3.19.6))(@effect/rpc@0.62.4(@effect/platform@0.85.2(effect@3.19.6))(effect@3.19.6))(@effect/sql@0.38.2(@effect/experimental@0.49.2(@effect/platform@0.85.2(effect@3.19.6))(effect@3.19.6))(@effect/platform@0.85.2(effect@3.19.6))(effect@3.19.6))(effect@3.19.6)
790
ansis:
791
specifier: ^4.1.0
738
- version: 4.1.0
792
+ version: 4.2.0
793
comment-json:
794
specifier: ^4.2.5
741
- version: 4.2.5
795
+ version: 4.4.1
796
decompress:
797
specifier: ^4.2.1
798
version: 4.2.1
799
effect:
800
specifier: ^3.16.16
747
- version: 3.16.16
801
+ version: 3.19.6
802
indent-string:
803
specifier: ^5.0.0
804
version: 5.0.0
@@ -753,19 +807,19 @@ importers:
807
version: 10.2.0
808
openapi-typescript:
809
specifier: ^7.8.0
756
- version: 7.8.0(typescript@5.9.2)
810
+ version: 7.10.1(typescript@5.9.3)
811
picocolors:
812
specifier: ^1.1.1
813
version: 1.1.1
814
semver:
815
specifier: ^7.7.2
762
- version: 7.7.2
816
+ version: 7.7.3
817
source-map-js:
818
specifier: ^1.2.1
819
version: 1.2.1
820
superjson:
821
specifier: ^2.2.2
768
- version: 2.2.2
822
+ version: 2.2.5
823
ts-morph:
824
specifier: ^26.0.0
825
version: 26.0.0
@@ -778,40 +832,40 @@ importers:
832
version: 0.27.2
833
'@effect/platform':
834
specifier: ^0.85.2
781
- version: 0.85.2(effect@3.16.16)
835
+ version: 0.85.2(effect@3.19.6)
836
'@effect/vitest':
837
specifier: ^0.23.8
784
- version: 0.23.8(effect@3.16.16)(vitest@3.2.4)
838
+ version: 0.23.13(effect@3.19.6)(vitest@3.2.4)
839
'@types/bun':
840
specifier: ^1.2.16
787
- version: 1.2.16
841
+ version: 1.3.3
842
'@types/decompress':
843
specifier: ^4.2.7
844
version: 4.2.7
845
'@types/semver':
846
specifier: ^7.7.0
793
- version: 7.7.0
847
+ version: 7.7.1
848
tempy:
849
specifier: ^3.1.0
850
version: 3.1.0
851
tsup:
852
specifier: 'catalog:'
799
- version: 8.5.0(jiti@1.21.7)(postcss@8.5.6)(tsx@4.20.5)(typescript@5.9.2)(yaml@2.8.1)
853
+ version: 8.5.1(jiti@1.21.7)(postcss@8.5.6)(tsx@4.20.6)(typescript@5.9.3)(yaml@2.8.1)
854
tsx:
855
specifier: 'catalog:'
802
- version: 4.20.5
856
+ version: 4.20.6
857
typescript:
858
specifier: 'catalog:'
805
- version: 5.9.2
859
+ version: 5.9.3
860
vitest:
861
specifier: 'catalog:'
808
- version: 3.2.4(@types/node@24.6.2)(@vitest/ui@3.2.4)(jiti@1.21.7)(tsx@4.20.5)(yaml@2.8.1)
862
+ version: 3.2.4(@types/node@24.10.1)(@vitest/ui@3.2.4)(jiti@1.21.7)(tsx@4.20.6)(yaml@2.8.1)
863
864
ts/packages/core:
865
dependencies:
866
'@composio/client':
867
specifier: 'catalog:'
814
- version: 0.1.0-alpha.40
868
+ version: 0.1.0-alpha.46
869
'@composio/json-schema-to-zod':
870
specifier: workspace:*
871
version: link:../json-schema-to-zod
@@ -823,41 +877,41 @@ importers:
877
version: 4.1.2
878
openai:
879
specifier: ^5.16.0
826
- version: 5.16.0(ws@8.18.2)(zod@4.1.12)
880
+ version: 5.23.2(ws@8.18.3)(zod@4.1.13)
881
pusher-js:
882
specifier: ^8.4.0
883
version: 8.4.0
884
semver:
885
specifier: ^7.7.2
832
- version: 7.7.2
886
+ version: 7.7.3
887
uuid:
888
specifier: 'catalog:'
889
version: 13.0.0
890
zod-to-json-schema:
837
- specifier: 'catalog:'
838
- version: 3.25.0(zod@4.1.12)
891
+ specifier: npm:@finom/zod-to-json-schema@3.24.11
892
+ version: '@finom/zod-to-json-schema@3.24.11(zod@4.1.13)'
893
devDependencies:
894
'@type-challenges/utils':
895
specifier: ^0.1.1
896
version: 0.1.1
897
'@types/semver':
898
specifier: ^7.7.0
845
- version: 7.7.0
899
+ version: 7.7.1
900
tsup:
901
specifier: 'catalog:'
848
- version: 8.5.0(jiti@1.21.7)(postcss@8.5.6)(tsx@4.20.5)(typescript@5.9.2)(yaml@2.8.1)
902
+ version: 8.5.1(jiti@1.21.7)(postcss@8.5.6)(tsx@4.20.6)(typescript@5.9.3)(yaml@2.8.1)
903
tsx:
904
specifier: 'catalog:'
851
- version: 4.20.5
905
+ version: 4.20.6
906
typescript:
907
specifier: 'catalog:'
854
- version: 5.9.2
908
+ version: 5.9.3
909
vitest:
910
specifier: 'catalog:'
857
- version: 3.2.4(@types/node@24.6.2)(@vitest/ui@3.2.4)(jiti@1.21.7)(tsx@4.20.5)(yaml@2.8.1)
911
+ version: 3.2.4(@types/node@24.10.1)(@vitest/ui@3.2.4)(jiti@1.21.7)(tsx@4.20.6)(yaml@2.8.1)
912
zod:
913
specifier: 'catalog:'
860
- version: 4.1.12
914
+ version: 4.1.13
915
916
ts/packages/json-schema-to-zod:
917
devDependencies:
@@ -866,19 +920,19 @@ importers:
920
version: 7.0.15
921
'@types/node':
922
specifier: ^24.0.1
869
- version: 24.0.3
923
+ version: 24.10.1
924
tsup:
925
specifier: 'catalog:'
872
- version: 8.5.0(jiti@1.21.7)(postcss@8.5.6)(tsx@4.20.5)(typescript@5.9.2)(yaml@2.8.1)
926
+ version: 8.5.1(jiti@1.21.7)(postcss@8.5.6)(tsx@4.20.6)(typescript@5.9.3)(yaml@2.8.1)
927
typescript:
928
specifier: 'catalog:'
875
- version: 5.9.2
929
+ version: 5.9.3
930
vitest:
931
specifier: 'catalog:'
878
- version: 3.2.4(@types/node@24.0.3)(@vitest/ui@3.2.4)(jiti@1.21.7)(tsx@4.20.5)(yaml@2.8.1)
932
+ version: 3.2.4(@types/node@24.10.1)(@vitest/ui@3.2.4)(jiti@1.21.7)(tsx@4.20.6)(yaml@2.8.1)
933
zod:
934
specifier: 'catalog:'
881
- version: 4.1.12
935
+ version: 4.1.13
936
937
ts/packages/json-schema-to-zod/test/e2e/zod-v3:
938
dependencies:
@@ -889,12 +943,12 @@ importers:
943
specifier: 3.25.76
944
version: 3.25.76
945
zod-to-json-schema:
892
- specifier: 'catalog:'
893
- version: 3.25.0(zod@3.25.76)
946
+ specifier: npm:@finom/zod-to-json-schema@3.24.11
947
+ version: '@finom/zod-to-json-schema@3.24.11(zod@3.25.76)'
948
devDependencies:
949
vitest:
950
specifier: 'catalog:'
897
- version: 3.2.4(@types/node@24.6.2)(@vitest/ui@3.2.4)(jiti@1.21.7)(tsx@4.20.5)(yaml@2.8.1)
951
+ version: 3.2.4(@types/node@24.10.1)(@vitest/ui@3.2.4)(jiti@1.21.7)(tsx@4.20.6)(yaml@2.8.1)
952
953
ts/packages/json-schema-to-zod/test/e2e/zod-v4:
954
dependencies:
@@ -903,11 +957,11 @@ importers:
957
version: link:../../..
958
zod:
959
specifier: ^4.1.0
906
- version: 4.1.12
960
+ version: 4.1.13
961
devDependencies:
962
vitest:
963
specifier: 'catalog:'
910
- version: 3.2.4(@types/node@24.6.2)(@vitest/ui@3.2.4)(jiti@1.21.7)(tsx@4.20.5)(yaml@2.8.1)
964
+ version: 3.2.4(@types/node@24.10.1)(@vitest/ui@3.2.4)(jiti@1.21.7)(tsx@4.20.6)(yaml@2.8.1)
965
966
ts/packages/providers/anthropic:
967
dependencies:
@@ -916,137 +970,137 @@ importers:
970
version: 0.52.0
971
'@mastra/mcp':
972
specifier: ^0.12.0
919
- version: 0.12.0(@mastra/core@0.24.5(effect@3.16.16)(openapi-types@12.1.3)(zod@4.1.12))(@types/json-schema@7.0.15)(zod@4.1.12)
973
+ version: 0.12.0(@cfworker/json-schema@4.1.1)(@mastra/core@0.24.5(effect@3.19.6)(openapi-types@12.1.3)(zod@4.1.13))(@types/json-schema@7.0.15)(zod@4.1.13)
974
devDependencies:
975
'@composio/core':
976
specifier: workspace:*
977
version: link:../../core
978
tsup:
979
specifier: 'catalog:'
926
- version: 8.5.0(jiti@1.21.7)(postcss@8.5.6)(tsx@4.20.5)(typescript@5.9.2)(yaml@2.8.1)
980
+ version: 8.5.1(jiti@1.21.7)(postcss@8.5.6)(tsx@4.20.6)(typescript@5.9.3)(yaml@2.8.1)
981
typescript:
982
specifier: 'catalog:'
929
- version: 5.9.2
983
+ version: 5.9.3
984
vitest:
985
specifier: 'catalog:'
932
- version: 3.2.4(@types/node@24.6.2)(@vitest/ui@3.2.4)(jiti@1.21.7)(tsx@4.20.5)(yaml@2.8.1)
986
+ version: 3.2.4(@types/node@24.10.1)(@vitest/ui@3.2.4)(jiti@1.21.7)(tsx@4.20.6)(yaml@2.8.1)
987
988
ts/packages/providers/cloudflare:
989
dependencies:
990
'@cloudflare/workers-types':
991
specifier: 'catalog:'
938
- version: 4.20250917.0
992
+ version: 4.20251126.0
993
devDependencies:
994
'@composio/core':
995
specifier: workspace:*
996
version: link:../../core
997
tsup:
998
specifier: 'catalog:'
945
- version: 8.5.0(jiti@1.21.7)(postcss@8.5.6)(tsx@4.20.5)(typescript@5.9.2)(yaml@2.8.1)
999
+ version: 8.5.1(jiti@1.21.7)(postcss@8.5.6)(tsx@4.20.6)(typescript@5.9.3)(yaml@2.8.1)
1000
typescript:
1001
specifier: 'catalog:'
948
- version: 5.9.2
1002
+ version: 5.9.3
1003
vitest:
1004
specifier: 'catalog:'
951
- version: 3.2.4(@types/node@24.6.2)(@vitest/ui@3.2.4)(jiti@1.21.7)(tsx@4.20.5)(yaml@2.8.1)
1005
+ version: 3.2.4(@types/node@24.10.1)(@vitest/ui@3.2.4)(jiti@1.21.7)(tsx@4.20.6)(yaml@2.8.1)
1006
1007
ts/packages/providers/google:
1008
dependencies:
1009
'@google/genai':
1010
specifier: ^1.1.0
957
- version: 1.5.1(@modelcontextprotocol/sdk@1.18.0)
1011
+ version: 1.30.0(@modelcontextprotocol/sdk@1.23.0(@cfworker/json-schema@4.1.1)(zod@4.1.13))
1012
devDependencies:
1013
'@composio/core':
1014
specifier: workspace:*
1015
version: link:../../core
1016
tsup:
1017
specifier: 'catalog:'
964
- version: 8.5.0(jiti@1.21.7)(postcss@8.5.6)(tsx@4.20.5)(typescript@5.9.2)(yaml@2.8.1)
1018
+ version: 8.5.1(jiti@1.21.7)(postcss@8.5.6)(tsx@4.20.6)(typescript@5.9.3)(yaml@2.8.1)
1019
typescript:
1020
specifier: 'catalog:'
967
- version: 5.9.2
1021
+ version: 5.9.3
1022
1023
ts/packages/providers/langchain:
1024
dependencies:
1025
'@langchain/core':
1026
specifier: ^0.3.63
973
- version: 0.3.63(openai@6.7.0(ws@8.18.2)(zod@4.1.12))
1027
+ version: 0.3.79(@opentelemetry/api@1.9.0)(@opentelemetry/exporter-trace-otlp-proto@0.203.0(@opentelemetry/api@1.9.0))(@opentelemetry/sdk-trace-base@2.2.0(@opentelemetry/api@1.9.0))(openai@6.9.1(ws@8.18.3)(zod@4.1.13))
1028
devDependencies:
1029
'@composio/core':
1030
specifier: workspace:*
1031
version: link:../../core
1032
tsup:
1033
specifier: 'catalog:'
980
- version: 8.5.0(jiti@1.21.7)(postcss@8.5.6)(tsx@4.20.5)(typescript@5.9.2)(yaml@2.8.1)
1034
+ version: 8.5.1(jiti@1.21.7)(postcss@8.5.6)(tsx@4.20.6)(typescript@5.9.3)(yaml@2.8.1)
1035
typescript:
1036
specifier: 'catalog:'
983
- version: 5.9.2
1037
+ version: 5.9.3
1038
vitest:
1039
specifier: 'catalog:'
986
- version: 3.2.4(@types/node@24.6.2)(@vitest/ui@3.2.4)(jiti@1.21.7)(tsx@4.20.5)(yaml@2.8.1)
1040
+ version: 3.2.4(@types/node@24.10.1)(@vitest/ui@3.2.4)(jiti@1.21.7)(tsx@4.20.6)(yaml@2.8.1)
1041
zod:
1042
specifier: 'catalog:'
989
- version: 4.1.12
1043
+ version: 4.1.13
1044
1045
ts/packages/providers/llamaindex:
1046
dependencies:
1047
llamaindex:
1048
specifier: ^0.12.0
995
- version: 0.12.0(@modelcontextprotocol/sdk@1.18.0)(hono@4.10.6)(next@16.0.3(@opentelemetry/api@1.9.0)(react-dom@19.1.0(react@18.3.1))(react@18.3.1))(rxjs@7.8.2)(tree-sitter@0.22.4)(web-tree-sitter@0.24.7)(zod@4.1.12)
1049
+ version: 0.12.0(@modelcontextprotocol/sdk@1.23.0(@cfworker/json-schema@4.1.1)(zod@4.1.13))(hono@4.10.6)(next@16.0.4(@opentelemetry/api@1.9.0)(react-dom@19.2.0(react@18.3.1))(react@18.3.1))(rxjs@7.8.2)(tree-sitter@0.22.4)(web-tree-sitter@0.24.7)(zod@4.1.13)
1050
devDependencies:
1051
'@composio/core':
1052
specifier: workspace:*
1053
version: link:../../core
1054
tsup:
1055
specifier: 'catalog:'
1002
- version: 8.5.0(jiti@1.21.7)(postcss@8.5.6)(tsx@4.20.5)(typescript@5.9.2)(yaml@2.8.1)
1056
+ version: 8.5.1(jiti@1.21.7)(postcss@8.5.6)(tsx@4.20.6)(typescript@5.9.3)(yaml@2.8.1)
1057
typescript:
1058
specifier: 'catalog:'
1005
- version: 5.9.2
1059
+ version: 5.9.3
1060
1061
ts/packages/providers/mastra:
1062
dependencies:
1063
'@mastra/core':
1064
specifier: ^0.21.1
1011
- version: 0.21.1(effect@3.16.16)(openapi-types@12.1.3)(zod@4.1.12)
1065
+ version: 0.21.1(effect@3.19.6)(openapi-types@12.1.3)(zod@4.1.13)
1066
'@mastra/mcp':
1067
specifier: ^0.12.0
1014
- version: 0.12.0(@mastra/core@0.21.1(effect@3.16.16)(openapi-types@12.1.3)(zod@4.1.12))(@types/json-schema@7.0.15)(zod@4.1.12)
1068
+ version: 0.12.0(@cfworker/json-schema@4.1.1)(@mastra/core@0.21.1(effect@3.19.6)(openapi-types@12.1.3)(zod@4.1.13))(@types/json-schema@7.0.15)(zod@4.1.13)
1069
devDependencies:
1070
'@composio/core':
1071
specifier: workspace:*
1072
version: link:../../core
1073
tsup:
1074
specifier: 'catalog:'
1021
- version: 8.5.0(jiti@1.21.7)(postcss@8.5.6)(tsx@4.20.5)(typescript@5.9.2)(yaml@2.8.1)
1075
+ version: 8.5.1(jiti@1.21.7)(postcss@8.5.6)(tsx@4.20.6)(typescript@5.9.3)(yaml@2.8.1)
1076
typescript:
1077
specifier: 'catalog:'
1024
- version: 5.9.2
1078
+ version: 5.9.3
1079
vitest:
1080
specifier: ^3.1.4
1027
- version: 3.2.4(@types/node@24.6.2)(@vitest/ui@3.2.4)(jiti@1.21.7)(tsx@4.20.5)(yaml@2.8.1)
1081
+ version: 3.2.4(@types/node@24.10.1)(@vitest/ui@3.2.4)(jiti@1.21.7)(tsx@4.20.6)(yaml@2.8.1)
1082
zod:
1083
specifier: 'catalog:'
1030
- version: 4.1.12
1084
+ version: 4.1.13
1085
1086
ts/packages/providers/openai:
1087
dependencies:
1088
openai:
1089
specifier: ^5.16.0
1036
- version: 5.16.0(ws@8.18.2)(zod@3.25.76)
1090
+ version: 5.23.2(ws@8.18.3)(zod@3.25.76)
1091
devDependencies:
1092
'@composio/core':
1093
specifier: workspace:*
1094
version: link:../../core
1095
tsup:
1096
specifier: 'catalog:'
1043
- version: 8.5.0(jiti@1.21.7)(postcss@8.5.6)(tsx@4.20.5)(typescript@5.9.2)(yaml@2.8.1)
1097
+ version: 8.5.1(jiti@1.21.7)(postcss@8.5.6)(tsx@4.20.6)(typescript@5.9.3)(yaml@2.8.1)
1098
typescript:
1099
specifier: 'catalog:'
1046
- version: 5.9.2
1100
+ version: 5.9.3
1101
vitest:
1102
specifier: 'catalog:'
1049
- version: 3.2.4(@types/node@24.6.2)(@vitest/ui@3.2.4)(jiti@1.21.7)(tsx@4.20.5)(yaml@2.8.1)
1103
+ version: 3.2.4(@types/node@24.10.1)(@vitest/ui@3.2.4)(jiti@1.21.7)(tsx@4.20.6)(yaml@2.8.1)
1104
1105
ts/packages/providers/openai-agents:
1106
devDependencies:
@@ -1055,19 +1109,19 @@ importers:
1109
version: link:../../core
1110
'@openai/agents':
1111
specifier: ^0.1.3
1058
- version: 0.1.3(ws@8.18.2)(zod@4.1.12)
1112
+ version: 0.1.11(@cfworker/json-schema@4.1.1)(ws@8.18.3)(zod@4.1.13)
1113
tsup:
1114
specifier: 'catalog:'
1061
- version: 8.5.0(jiti@1.21.7)(postcss@8.5.6)(tsx@4.20.5)(typescript@5.9.2)(yaml@2.8.1)
1115
+ version: 8.5.1(jiti@1.21.7)(postcss@8.5.6)(tsx@4.20.6)(typescript@5.9.3)(yaml@2.8.1)
1116
typescript:
1117
specifier: 'catalog:'
1064
- version: 5.9.2
1118
+ version: 5.9.3
1119
vitest:
1120
specifier: 'catalog:'
1067
- version: 3.2.4(@types/node@24.6.2)(@vitest/ui@3.2.4)(jiti@1.21.7)(tsx@4.20.5)(yaml@2.8.1)
1121
+ version: 3.2.4(@types/node@24.10.1)(@vitest/ui@3.2.4)(jiti@1.21.7)(tsx@4.20.6)(yaml@2.8.1)
1122
zod:
1123
specifier: 'catalog:'
1070
- version: 4.1.12
1124
+ version: 4.1.13
1125
1126
ts/packages/providers/vercel:
1127
devDependencies:
@@ -1075,26 +1129,26 @@ importers:
1129
specifier: workspace:*
1130
version: link:../../core
1131
ai:
1078
- specifier: '>=5.0.52'
1079
- version: 5.0.60(zod@4.1.12)
1132
+ specifier: '>=5.0.102'
1133
+ version: 5.0.102(zod@4.1.13)
1134
tsup:
1135
specifier: 'catalog:'
1082
- version: 8.5.0(jiti@1.21.7)(postcss@8.5.6)(tsx@4.20.5)(typescript@5.9.2)(yaml@2.8.1)
1136
+ version: 8.5.1(jiti@1.21.7)(postcss@8.5.6)(tsx@4.20.6)(typescript@5.9.3)(yaml@2.8.1)
1137
typescript:
1138
specifier: 'catalog:'
1085
- version: 5.9.2
1139
+ version: 5.9.3
1140
vitest:
1141
specifier: 'catalog:'
1088
- version: 3.2.4(@types/node@24.6.2)(@vitest/ui@3.2.4)(jiti@1.21.7)(tsx@4.20.5)(yaml@2.8.1)
1142
+ version: 3.2.4(@types/node@24.10.1)(@vitest/ui@3.2.4)(jiti@1.21.7)(tsx@4.20.6)(yaml@2.8.1)
1143
zod:
1144
specifier: 'catalog:'
1091
- version: 4.1.12
1145
+ version: 4.1.13
1146
1147
ts/packages/ts-builders:
1148
dependencies:
1149
'@babel/helper-validator-identifier':
1150
specifier: ^7.27.1
1097
- version: 7.27.1
1151
+ version: 7.28.5
1152
devDependencies:
1153
'@types/babel__helper-validator-identifier':
1154
specifier: ^7.15.2
@@ -1104,10 +1158,10 @@ importers:
1158
version: link:@types/@babel/helper-validator-identifier
1159
tsup:
1160
specifier: 'catalog:'
1107
- version: 8.5.0(jiti@1.21.7)(postcss@8.5.6)(tsx@4.20.5)(typescript@5.9.2)(yaml@2.8.1)
1161
+ version: 8.5.1(jiti@1.21.7)(postcss@8.5.6)(tsx@4.20.6)(typescript@5.9.3)(yaml@2.8.1)
1162
vitest:
1163
specifier: 'catalog:'
1110
- version: 3.2.4(@types/node@24.6.2)(@vitest/ui@3.2.4)(jiti@1.21.7)(tsx@4.20.5)(yaml@2.8.1)
1164
+ version: 3.2.4(@types/node@24.10.1)(@vitest/ui@3.2.4)(jiti@1.21.7)(tsx@4.20.6)(yaml@2.8.1)
1165
1166
packages:
1167
@@ -1145,6 +1199,12 @@ packages:
1199
peerDependencies:
1200
zod: ^3.25.76 || ^4.1.8
1201
1202
+ '@ai-sdk/gateway@2.0.15':
1203
+ resolution: {integrity: sha512-i1YVKzC1dg9LGvt+GthhD7NlRhz9J4+ZRj3KELU14IZ/MHPsOBiFeEoCCIDLR+3tqT8/+5nIsK3eZ7DFRfMfdw==}
1204
+ engines: {node: '>=18'}
1205
+ peerDependencies:
1206
+ zod: ^3.25.76 || ^4.1.8
1207
+
1208
'@ai-sdk/google@2.0.17':
1209
resolution: {integrity: sha512-6LyuUrCZuiULg0rUV+kT4T2jG19oUntudorI4ttv1ARkSbwl8A39ue3rA487aDDy6fUScdbGFiV5Yv/o4gidVA==}
1210
engines: {node: '>=18'}
@@ -1157,6 +1217,12 @@ packages:
1217
peerDependencies:
1218
zod: ^3.25.76 || ^4.1.8
1219
1220
+ '@ai-sdk/mcp@0.0.10':
1221
+ resolution: {integrity: sha512-BZ7DQkFFg+oTrLkoAHyd7E8tKbPCR2flVo75ruxjQejPt5gXIVcEXhgC1aE8yvuL9O/rGQ+pzYVRAsU0gX2FmA==}
1222
+ engines: {node: '>=18'}
1223
+ peerDependencies:
1224
+ zod: ^3.25.76 || ^4.1.8
1225
+
1226
'@ai-sdk/mistral@2.0.23':
1227
resolution: {integrity: sha512-np2bTlL5ZDi7iAOPCF5SZ5xKqls059iOvsigbgd9VNUCIrWSf6GYOaPvoWEgJ650TUOZitTfMo9MiEhLgutPfA==}
1228
engines: {node: '>=18'}
@@ -1175,24 +1241,12 @@ packages:
1241
peerDependencies:
1242
zod: ^3.25.76 || ^4.1.8
1243
1178
- '@ai-sdk/openai@1.3.22':
1179
- resolution: {integrity: sha512-QwA+2EkG0QyjVR+7h6FE7iOu2ivNqAVMm9UJZkVxxTk5OIq5fFJDTEI/zICEMuHImTTXR2JjsL6EirJ28Jc4cw==}
1244
+ '@ai-sdk/openai@1.3.24':
1245
+ resolution: {integrity: sha512-GYXnGJTHRTZc4gJMSmFRgEQudjqd4PUN0ZjQhPwOAYH1yOAvQoG/Ikqs+HyISRbLPCrhbZnPKCNHuRU4OfpW0Q==}
1246
engines: {node: '>=18'}
1247
peerDependencies:
1248
zod: ^3.0.0
1249
1184
- '@ai-sdk/openai@2.0.16':
1185
- resolution: {integrity: sha512-Boe715q4SkSJedFfAtbP0yuo8DmF9iYElAaDH2g4YgqJqqkskIJJx4hlCYGMMk1eMesRrB2NqZvtOeyTZ/u4fA==}
1186
- engines: {node: '>=18'}
1187
- peerDependencies:
1188
- zod: ^3.25.76 || ^4
1189
-
1190
- '@ai-sdk/openai@2.0.35':
1191
- resolution: {integrity: sha512-LelCyotLQtL6lRYAvmtNvLyWirCR4YXr2aE4gXUXtpE+Y43eU1xdI3Jyq3Ugsvv2VhyKEceZRkrSFBmozrt21w==}
1192
- engines: {node: '>=18'}
1193
- peerDependencies:
1194
- zod: ^3.25.76 || ^4
1195
-
1250
'@ai-sdk/openai@2.0.42':
1251
resolution: {integrity: sha512-9mM6QS8k0ooH9qMC27nlrYLQmNDnO6Rk0JTmFo/yUxpABEWOcvQhMWNHbp9lFL6Ty5vkdINrujhsAQfWuEleOg==}
1252
engines: {node: '>=18'}
@@ -1205,6 +1259,12 @@ packages:
1259
peerDependencies:
1260
zod: ^3.25.76 || ^4.1.8
1261
1262
+ '@ai-sdk/openai@2.0.72':
1263
+ resolution: {integrity: sha512-9j8Gdt9gFiUGFdQIjjynbC7+w8YQxkXje6dwAq1v2Pj17wmB3U0Td3lnEe/a+EnEysY3mdkc8dHPYc5BNev9NQ==}
1264
+ engines: {node: '>=18'}
1265
+ peerDependencies:
1266
+ zod: ^3.25.76 || ^4.1.8
1267
+
1268
'@ai-sdk/provider-utils@2.2.8':
1269
resolution: {integrity: sha512-fqhG+4sCVv8x7nFzYnFo19ryhAa3w096Kmc3hWxMQfW/TubPOmt3A6tYZhl4mUfQWWQMsuSkLrtjlWuXBVSGQA==}
1270
engines: {node: '>=18'}
@@ -1235,18 +1295,6 @@ packages:
1295
peerDependencies:
1296
zod: ^3.25.76 || ^4.1.8
1297
1238
- '@ai-sdk/provider-utils@3.0.4':
1239
- resolution: {integrity: sha512-/3Z6lfUp8r+ewFd9yzHkCmPlMOJUXup2Sx3aoUyrdXLhOmAfHRl6Z4lDbIdV0uvw/QYoBcVLJnvXN7ncYeS3uQ==}
1240
- engines: {node: '>=18'}
1241
- peerDependencies:
1242
- zod: ^3.25.76 || ^4
1243
-
1244
- '@ai-sdk/provider-utils@3.0.9':
1245
- resolution: {integrity: sha512-Pm571x5efqaI4hf9yW4KsVlDBDme8++UepZRnq+kqVBWWjgvGhQlzU8glaFq0YJEB9kkxZHbRRyVeHoV2sRYaQ==}
1246
- engines: {node: '>=18'}
1247
- peerDependencies:
1248
- zod: ^3.25.76 || ^4
1249
-
1298
'@ai-sdk/provider@1.1.3':
1299
resolution: {integrity: sha512-qZMxYJ0qqX/RfnuIaab+zp8UAeJn/ygXXAffR5I4N0n1IrvA6qBsjc8hXLmBiMV2zoXlifkacF7sEFnYnjBcqg==}
1300
engines: {node: '>=18'}
@@ -1277,10 +1325,25 @@ packages:
1325
resolution: {integrity: sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==}
1326
engines: {node: '>=10'}
1327
1328
+ '@anthropic-ai/claude-agent-sdk@0.1.55':
1329
+ resolution: {integrity: sha512-nwlxPjn/gc7I+iOGYY7AGtM2xcjzJFCxF9Bnr0xH1JNaNx+QXLM3h/wmzSvuEOKeJgPymf1GMBs4DZ3jyd/Z7Q==}
1330
+ engines: {node: '>=18.0.0'}
1331
+ peerDependencies:
1332
+ zod: ^3.24.1
1333
+
1334
'@anthropic-ai/sdk@0.52.0':
1335
resolution: {integrity: sha512-d4c+fg+xy9e46c8+YnrrgIQR45CZlAi7PwdzIfDXDM6ACxEZli1/fxhURsq30ZpMZy6LvSkr41jGq5aF5TD7rQ==}
1336
hasBin: true
1337
1338
+ '@anthropic-ai/sdk@0.71.0':
1339
+ resolution: {integrity: sha512-go1XeWXmpxuiTkosSXpb8tokLk2ZLkIRcXpbWVwJM6gH5OBtHOVsfPfGuqI1oW7RRt4qc59EmYbrXRZ0Ng06Jw==}
1340
+ hasBin: true
1341
+ peerDependencies:
1342
+ zod: ^3.25.0 || ^4.0.0
1343
+ peerDependenciesMeta:
1344
+ zod:
1345
+ optional: true
1346
+
1347
'@apidevtools/json-schema-ref-parser@11.9.3':
1348
resolution: {integrity: sha512-60vepv88RwcJtSHrD6MjIL6Ta3SOYbgfnkHb+ppAVK+o9mXprRtulx7VlRl3lN3bbvysAfCS7WMVfhUYemB0IQ==}
1349
engines: {node: '>= 16'}
@@ -1298,40 +1361,40 @@ packages:
1361
'@aws-crypto/util@5.2.0':
1362
resolution: {integrity: sha512-4RkU9EsI6ZpBve5fseQlGNUWKMa1RLPQ1dnjnQoe07ldfIzcsGb5hC5W0Dm7u423KWzawlrpbjXBrXCEv9zazQ==}
1363
1301
- '@aws-sdk/types@3.901.0':
1302
- resolution: {integrity: sha512-FfEM25hLEs4LoXsLXQ/q6X6L4JmKkKkbVFpKD4mwfVHtRVQG6QxJiCPcrkcPISquiy6esbwK2eh64TWbiD60cg==}
1364
+ '@aws-sdk/types@3.936.0':
1365
+ resolution: {integrity: sha512-uz0/VlMd2pP5MepdrHizd+T+OKfyK4r3OA9JI+L/lPKg0YFQosdJNCKisr6o70E3dh8iMpFYxF1UN/4uZsyARg==}
1366
engines: {node: '>=18.0.0'}
1367
1368
'@babel/code-frame@7.27.1':
1369
resolution: {integrity: sha512-cjQ7ZlQ0Mv3b47hABuTevyTuYN4i+loJKGeV9flcCgIK37cCXRh+L1bd3iBHlynerhQ7BhCkn2BPbQUL+rGqFg==}
1370
engines: {node: '>=6.9.0'}
1371
1309
- '@babel/helper-validator-identifier@7.27.1':
1310
- resolution: {integrity: sha512-D2hP9eA+Sqx1kBZgzxZh0y1trbuU+JoDkiEwqhQ36nodYqJwyEIhPSdMNd7lOm/4io72luTPWH20Yda0xOuUow==}
1372
+ '@babel/helper-validator-identifier@7.28.5':
1373
+ resolution: {integrity: sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==}
1374
engines: {node: '>=6.9.0'}
1375
1313
- '@babel/runtime@7.27.6':
1314
- resolution: {integrity: sha512-vbavdySgbTTrmFE+EsiqUTzlOr5bzlnJtUv9PynGCAKvfQqjIXbvFdumPM/GxMDfyuGMJaJAU6TO4zc1Jf1i8Q==}
1376
+ '@babel/runtime@7.28.4':
1377
+ resolution: {integrity: sha512-Q/N6JNWvIvPnLDvjlE1OUBLPQHH6l3CltCEsHIujp45zQUSSh8K+gHnaEX45yAT1nyngnINhvWtzN+Nb9D8RAQ==}
1378
engines: {node: '>=6.9.0'}
1379
1380
'@cfworker/json-schema@4.1.1':
1381
resolution: {integrity: sha512-gAmrUZSGtKc3AiBL71iNWxDsyUC5uMaKKGdvzYsBoTW/xi42JQHl7eKV2OYzCUqvc+D2RCcf7EXY2iCyFIk6og==}
1382
1320
- '@changesets/apply-release-plan@7.0.12':
1321
- resolution: {integrity: sha512-EaET7As5CeuhTzvXTQCRZeBUcisoYPDDcXvgTE/2jmmypKp0RC7LxKj/yzqeh/1qFTZI7oDGFcL1PHRuQuketQ==}
1383
+ '@changesets/apply-release-plan@7.0.14':
1384
+ resolution: {integrity: sha512-ddBvf9PHdy2YY0OUiEl3TV78mH9sckndJR14QAt87KLEbIov81XO0q0QAmvooBxXlqRRP8I9B7XOzZwQG7JkWA==}
1385
1323
- '@changesets/assemble-release-plan@6.0.8':
1324
- resolution: {integrity: sha512-y8+8LvZCkKJdbUlpXFuqcavpzJR80PN0OIfn8HZdwK7Sh6MgLXm4hKY5vu6/NDoKp8lAlM4ERZCqRMLxP4m+MQ==}
1386
+ '@changesets/assemble-release-plan@6.0.9':
1387
+ resolution: {integrity: sha512-tPgeeqCHIwNo8sypKlS3gOPmsS3wP0zHt67JDuL20P4QcXiw/O4Hl7oXiuLnP9yg+rXLQ2sScdV1Kkzde61iSQ==}
1388
1389
'@changesets/changelog-git@0.2.1':
1390
resolution: {integrity: sha512-x/xEleCFLH28c3bQeQIyeZf8lFXyDFVn1SgcBiR2Tw/r4IAWlk1fzxCEZ6NxQAjF2Nwtczoen3OA2qR+UawQ8Q==}
1391
1329
- '@changesets/cli@2.29.4':
1330
- resolution: {integrity: sha512-VW30x9oiFp/un/80+5jLeWgEU6Btj8IqOgI+X/zAYu4usVOWXjPIK5jSSlt5jsCU7/6Z7AxEkarxBxGUqkAmNg==}
1392
+ '@changesets/cli@2.29.8':
1393
+ resolution: {integrity: sha512-1weuGZpP63YWUYjay/E84qqwcnt5yJMM0tep10Up7Q5cS/DGe2IZ0Uj3HNMxGhCINZuR7aO9WBMdKnPit5ZDPA==}
1394
hasBin: true
1395
1333
- '@changesets/config@3.1.1':
1334
- resolution: {integrity: sha512-bd+3Ap2TKXxljCggI0mKPfzCQKeV/TU4yO2h2C6vAihIo8tzseAn2e7klSuiyYYXvgu53zMN1OeYMIQkaQoWnA==}
1396
+ '@changesets/config@3.1.2':
1397
+ resolution: {integrity: sha512-CYiRhA4bWKemdYi/uwImjPxqWNpqGPNbEBdX1BdONALFIDK7MCUj6FPkzD+z9gJcvDFUQJn9aDVf4UG7OT6Kog==}
1398
1399
'@changesets/errors@0.2.0':
1400
resolution: {integrity: sha512-6BLOQUscTpZeGljvyQXlWOItQyU71kCdGz7Pi8H8zdw6BI0g3m43iL4xKUVPWtG+qrrL9DTjpdn8eYuCQSRpow==}
@@ -1339,8 +1402,8 @@ packages:
1402
'@changesets/get-dependents-graph@2.1.3':
1403
resolution: {integrity: sha512-gphr+v0mv2I3Oxt19VdWRRUxq3sseyUpX9DaHpTUmLj92Y10AGy+XOtV+kbM6L/fDcpx7/ISDFK6T8A/P3lOdQ==}
1404
1342
- '@changesets/get-release-plan@4.0.12':
1343
- resolution: {integrity: sha512-KukdEgaafnyGryUwpHG2kZ7xJquOmWWWk5mmoeQaSvZTWH1DC5D/Sw6ClgGFYtQnOMSQhgoEbDxAbpIIayKH1g==}
1405
+ '@changesets/get-release-plan@4.0.14':
1406
+ resolution: {integrity: sha512-yjZMHpUHgl4Xl5gRlolVuxDkm4HgSJqT93Ri1Uz8kGrQb+5iJ8dkXJ20M2j/Y4iV5QzS2c5SeTxVSKX+2eMI0g==}
1407
1408
'@changesets/get-version-range-type@0.4.0':
1409
resolution: {integrity: sha512-hwawtob9DryoGTpixy1D3ZXbGgJu1Rhr+ySH2PvTLHvkZuQ7sRT4oQwMh0hbqZH1weAooedEjRsbrWcGLCeyVQ==}
@@ -1351,14 +1414,14 @@ packages:
1414
'@changesets/logger@0.1.1':
1415
resolution: {integrity: sha512-OQtR36ZlnuTxKqoW4Sv6x5YIhOmClRd5pWsjZsddYxpWs517R0HkyiefQPIytCVh4ZcC5x9XaG8KTdd5iRQUfg==}
1416
1354
- '@changesets/parse@0.4.1':
1355
- resolution: {integrity: sha512-iwksMs5Bf/wUItfcg+OXrEpravm5rEd9Bf4oyIPL4kVTmJQ7PNDSd6MDYkpSJR1pn7tz/k8Zf2DhTCqX08Ou+Q==}
1417
+ '@changesets/parse@0.4.2':
1418
+ resolution: {integrity: sha512-Uo5MC5mfg4OM0jU3up66fmSn6/NE9INK+8/Vn/7sMVcdWg46zfbvvUSjD9EMonVqPi9fbrJH9SXHn48Tr1f2yA==}
1419
1420
'@changesets/pre@2.0.2':
1421
resolution: {integrity: sha512-HaL/gEyFVvkf9KFg6484wR9s0qjAXlZ8qWPDkTyKF6+zqjBe/I2mygg3MbpZ++hdi0ToqNUF8cjj7fBy0dg8Ug==}
1422
1360
- '@changesets/read@0.6.5':
1361
- resolution: {integrity: sha512-UPzNGhsSjHD3Veb0xO/MwvasGe8eMyNrR/sT9gR8Q3DhOQZirgKhhXv/8hVsI0QpPjR004Z9iFxoJU6in3uGMg==}
1423
+ '@changesets/read@0.6.6':
1424
+ resolution: {integrity: sha512-P5QaN9hJSQQKJShzzpBT13FzOSPyHbqdoIBUd2DJdgvnECCyO6LmAOWSV+O8se2TaZJVwSXjL+v9yhb+a9JeJg==}
1425
1426
'@changesets/should-skip-package@0.1.2':
1427
resolution: {integrity: sha512-qAK/WrqWLNCP22UDdBTMPH5f41elVDlsNyat180A33dWxuUDyNpg6fPi/FyTZwRriVjg0L8gnjJn2F9XAoF0qw==}
@@ -1382,57 +1445,96 @@ packages:
1445
resolution: {integrity: sha512-+tv3z+SPp+gqTIcImN9o0hqE9xyfQjI1XD9pL6NuKjua9B1y7mNYv0S9cP+QEbA4ppVgGZEmKOvHX5G5Ei1CVA==}
1446
engines: {node: '>=18.0.0'}
1447
1385
- '@cloudflare/unenv-preset@2.7.3':
1386
- resolution: {integrity: sha512-tsQQagBKjvpd9baa6nWVIv399ejiqcrUBBW6SZx6Z22+ymm+Odv5+cFimyuCsD/fC1fQTwfRmwXBNpzvHSeGCw==}
1448
+ '@cloudflare/unenv-preset@2.7.11':
1449
+ resolution: {integrity: sha512-se23f1D4PxKrMKOq+Stz+Yn7AJ9ITHcEecXo2Yjb+UgbUDCEBch1FXQC6hx6uT5fNA3kmX3mfzeZiUmpK1W9IQ==}
1450
+ peerDependencies:
1451
+ unenv: 2.0.0-rc.24
1452
+ workerd: ^1.20251106.1
1453
+ peerDependenciesMeta:
1454
+ workerd:
1455
+ optional: true
1456
+
1457
+ '@cloudflare/unenv-preset@2.7.8':
1458
+ resolution: {integrity: sha512-Ky929MfHh+qPhwCapYrRPwPVHtA2Ioex/DbGZyskGyNRDe9Ru3WThYZivyNVaPy5ergQSgMs9OKrM9Ajtz9F6w==}
1459
peerDependencies:
1460
unenv: 2.0.0-rc.21
1389
- workerd: ^1.20250828.1
1461
+ workerd: ^1.20250927.0
1462
peerDependenciesMeta:
1463
workerd:
1464
optional: true
1465
1394
- '@cloudflare/vitest-pool-workers@0.9.2':
1395
- resolution: {integrity: sha512-BuvsmDKLcfoJaCPKlztMUS2Wmg9LwjNq4Qz5v9SFVS7WuA1trNFw6EL7/ZiJb16g2m1gfXz4qikuJrPJ44V6qA==}
1466
+ '@cloudflare/vitest-pool-workers@0.9.14':
1467
+ resolution: {integrity: sha512-1D/1KFa32EymaYDojWcrmUyMbHJwewn/mZSxsAqXdybvKMrHVaoaqGpLoH9bgWSfbrGs4af4RrmIXMINOqc4Lw==}
1468
peerDependencies:
1469
'@vitest/runner': 2.0.x - 3.2.x
1470
'@vitest/snapshot': 2.0.x - 3.2.x
1471
vitest: 2.0.x - 3.2.x
1472
1401
- '@cloudflare/workerd-darwin-64@1.20250913.0':
1402
- resolution: {integrity: sha512-926bBGIYDsF0FraaPQV0hO9LymEN+Zdkkm1qOHxU1c58oAxr5b9Tpe4d1z1EqOD0DTFhjn7V/AxKcZBaBBhO/A==}
1473
+ '@cloudflare/workerd-darwin-64@1.20251011.0':
1474
+ resolution: {integrity: sha512-0DirVP+Z82RtZLlK2B+VhLOkk+ShBqDYO/jhcRw4oVlp0TOvk3cOVZChrt3+y3NV8Y/PYgTEywzLKFSziK4wCg==}
1475
+ engines: {node: '>=16'}
1476
+ cpu: [x64]
1477
+ os: [darwin]
1478
+
1479
+ '@cloudflare/workerd-darwin-64@1.20251118.0':
1480
+ resolution: {integrity: sha512-UmWmYEYS/LkK/4HFKN6xf3Hk8cw70PviR+ftr3hUvs9HYZS92IseZEp16pkL6ZBETrPRpZC7OrzoYF7ky6kHsg==}
1481
engines: {node: '>=16'}
1482
cpu: [x64]
1483
os: [darwin]
1484
1407
- '@cloudflare/workerd-darwin-arm64@1.20250913.0':
1408
- resolution: {integrity: sha512-uy5nJIt44CpICgfsKQotji31cn39i71e2KqE/zeAmmgYp/tzl2cXotVeDtynqqEsloox7hl/eBY5sU0x99N8oQ==}
1485
+ '@cloudflare/workerd-darwin-arm64@1.20251011.0':
1486
+ resolution: {integrity: sha512-1WuFBGwZd15p4xssGN/48OE2oqokIuc51YvHvyNivyV8IYnAs3G9bJNGWth1X7iMDPe4g44pZrKhRnISS2+5dA==}
1487
+ engines: {node: '>=16'}
1488
+ cpu: [arm64]
1489
+ os: [darwin]
1490
+
1491
+ '@cloudflare/workerd-darwin-arm64@1.20251118.0':
1492
+ resolution: {integrity: sha512-RockU7Qzf4rxNfY1lx3j4rvwutNLjTIX7rr2hogbQ4mzLo8Ea40/oZTzXVxl+on75joLBrt0YpenGW8o/r44QA==}
1493
engines: {node: '>=16'}
1494
cpu: [arm64]
1495
os: [darwin]
1496
1413
- '@cloudflare/workerd-linux-64@1.20250913.0':
1414
- resolution: {integrity: sha512-khdF7MBi8L9WIt3YyWBQxipMny0J3gG824kurZiRACZmPdQ1AOzkKybDDXC3EMcF8TmGMRqKRUGQIB/25PwJuQ==}
1497
+ '@cloudflare/workerd-linux-64@1.20251011.0':
1498
+ resolution: {integrity: sha512-BccMiBzFlWZyFghIw2szanmYJrJGBGHomw2y/GV6pYXChFzMGZkeCEMfmCyJj29xczZXxcZmUVJxNy4eJxO8QA==}
1499
engines: {node: '>=16'}
1500
cpu: [x64]
1501
os: [linux]
1502
1419
- '@cloudflare/workerd-linux-arm64@1.20250913.0':
1420
- resolution: {integrity: sha512-KF5nIOt5YIYGfinY0YEe63JqaAx8WSFDHTLQpytTX+N/oJWEJu3KW6evU1TfX7o8gRlRsc0j/evcZ1vMfbDy5g==}
1503
+ '@cloudflare/workerd-linux-64@1.20251118.0':
1504
+ resolution: {integrity: sha512-aT97GnOAbJDuuOG0zPVhgRk0xFtB1dzBMrxMZ09eubDLoU4djH4BuORaqvxNRMmHgKfa4T6drthckT0NjUvBdw==}
1505
+ engines: {node: '>=16'}
1506
+ cpu: [x64]
1507
+ os: [linux]
1508
+
1509
+ '@cloudflare/workerd-linux-arm64@1.20251011.0':
1510
+ resolution: {integrity: sha512-79o/216lsbAbKEVDZYXR24ivEIE2ysDL9jvo0rDTkViLWju9dAp3CpyetglpJatbSi3uWBPKZBEOqN68zIjVsQ==}
1511
engines: {node: '>=16'}
1512
cpu: [arm64]
1513
os: [linux]
1514
1425
- '@cloudflare/workerd-windows-64@1.20250913.0':
1426
- resolution: {integrity: sha512-m/PMnVdaUB7ymW8BvDIC5xrU16hBDCBpyf9/4y9YZSQOYTVXihxErX8kaW9H9A/I6PTX081NmxxhTbb/n+EQRg==}
1515
+ '@cloudflare/workerd-linux-arm64@1.20251118.0':
1516
+ resolution: {integrity: sha512-bXZPJcwlq00MPOXqP7DMWjr+goYj0+Fqyw6zgEC2M3FR1+SWla4yjghnZ4IdpN+H1t7VbUrsi5np2LzMUFs0NA==}
1517
+ engines: {node: '>=16'}
1518
+ cpu: [arm64]
1519
+ os: [linux]
1520
+
1521
+ '@cloudflare/workerd-windows-64@1.20251011.0':
1522
+ resolution: {integrity: sha512-RIXUQRchFdqEvaUqn1cXZXSKjpqMaSaVAkI5jNZ8XzAw/bw2bcdOVUtakrflgxDprltjFb0PTNtuss1FKtH9Jg==}
1523
engines: {node: '>=16'}
1524
cpu: [x64]
1525
os: [win32]
1526
1431
- '@cloudflare/workers-types@4.20250917.0':
1432
- resolution: {integrity: sha512-Lsn9dZoRYZZCXXHZNa50cMP8kWhQZG9M7WjxNSiXFzC8bk4Wh/0SYYo4YINxEjEt6h2o69LmAhFaJ+qgaJTh8Q==}
1527
+ '@cloudflare/workerd-windows-64@1.20251118.0':
1528
+ resolution: {integrity: sha512-2LV99AHSlpr8WcCb/BYbU2QsYkXLUL1izN6YKWkN9Eibv80JKX0RtgmD3dfmajE5sNvClavxZejgzVvHD9N9Ag==}
1529
+ engines: {node: '>=16'}
1530
+ cpu: [x64]
1531
+ os: [win32]
1532
+
1533
+ '@cloudflare/workers-types@4.20251126.0':
1534
+ resolution: {integrity: sha512-DSeI1Q7JYmh5/D/tw5eZCjrKY34v69rwj63hHt60nSQW5QLwWCbj/lLtNz9f2EPa+JCACwpLXHgCXfzJ29x66w==}
1535
1434
- '@composio/client@0.1.0-alpha.40':
1435
- resolution: {integrity: sha512-xkd+LseCiuFLxiXXtjFgON0bO4M/1AsBQD4omhf2nl5tXJI0sXj72wCf1EXhT2jIu5pgJqJ4H64ZzwoM0fHDvg==}
1536
+ '@composio/client@0.1.0-alpha.46':
1537
+ resolution: {integrity: sha512-lhVAf3p2yqjmRfhBsZ+2l7znTPXmcmfD7liZA9a7h9w9qbk5g9D+yn1OhVuc3pnih1W+ahF2uPiFflCRhXfXSw==}
1538
1539
'@composio/mcp@1.0.3-0':
1540
resolution: {integrity: sha512-IpbfST0SSs/CEv+PIf6+EL0feNuJhQyUrOHJLPge8NhyLLrCyVqvujRIPyRUUjy0NDsked/Mm5VpJmYM6OACbg==}
@@ -1456,8 +1558,8 @@ packages:
1558
'@effect/printer-ansi': ^0.44.8
1559
effect: ^3.16.8
1560
1459
- '@effect/cluster@0.39.4':
1460
- resolution: {integrity: sha512-gHR3m/GAd5gQ2YXKJ4BX//fY1zjqRvZbKjxHuZ7+8KSvtaQbYelGDf/+DJ21nHusDL6hFJkMRSFaR7J2JYImHw==}
1561
+ '@effect/cluster@0.39.5':
1562
+ resolution: {integrity: sha512-KdixcfCteksRIVEe/X9vsPhEbxQxOr2ID/PD0mwgkQHD5enN1gU1WVG0EOkNux9XA4K4KO6BuHzilqXZSeNdNg==}
1563
peerDependencies:
1564
'@effect/platform': ^0.85.2
1565
'@effect/rpc': ^0.62.4
@@ -1494,15 +1596,6 @@ packages:
1596
'@effect/sql': ^0.38.2
1597
effect: ^3.16.8
1598
1497
- '@effect/platform-node-shared@0.40.4':
1498
- resolution: {integrity: sha512-EfnRTSHKs33OTfKN9pF+G2AyxMXm/+4rKrGM8yEw56Ij6QV5dq2g28yi0eOH7BytvilnreVmcbAec7M77EArgg==}
1499
- peerDependencies:
1500
- '@effect/cluster': ^0.39.4
1501
- '@effect/platform': ^0.85.2
1502
- '@effect/rpc': ^0.62.4
1503
- '@effect/sql': ^0.38.2
1504
- effect: ^3.16.8
1505
-
1599
'@effect/platform-node-shared@0.40.5':
1600
resolution: {integrity: sha512-Ru86IQ0E3tZNgO6UiWXBWNj4qZOgMT10z4fGF7Y4XwaB6lASWaFmCsDAkfYSqsmoesbtWvPQXbJkOr2QHYeU0Q==}
1601
peerDependencies:
@@ -1517,17 +1610,17 @@ packages:
1610
peerDependencies:
1611
effect: ^3.16.8
1612
1520
- '@effect/printer-ansi@0.44.8':
1521
- resolution: {integrity: sha512-HFatTgDyPgXc0Kbw2BH0nUht0ViAPukggIHuxGDm1EN0G7uKX9qXHLkFaQ7HGhotNOuf2hC6AXaKkzWOhxWp1A==}
1613
+ '@effect/printer-ansi@0.44.14':
1614
+ resolution: {integrity: sha512-/AWQ1jDLfRm/Zk/jDlE9uX02Da4A4+4VBhU+huao29CcKsO5JPkJLVWiARutThFoVBmp+m4lVLCHqND/tc2W6A==}
1615
peerDependencies:
1523
- '@effect/typeclass': ^0.35.8
1524
- effect: ^3.16.8
1616
+ '@effect/typeclass': ^0.35.14
1617
+ effect: ^3.16.14
1618
1526
- '@effect/printer@0.44.8':
1527
- resolution: {integrity: sha512-dWJCAi/04W5VIfo0C9u9M6gPwH2Ki+NHDqcUi0qfghoGyG9wmA6bhoq7RAvzrVSL+59tuhsKTV9y4A5dYCVyLw==}
1619
+ '@effect/printer@0.44.14':
1620
+ resolution: {integrity: sha512-Z9YJbmRG++BJqpR+kmJIlo1XdVGtZXPcHSMKPUiZHkZNtX2dG5Ynk2PwdRiA68sz895Fr1QwdYel8zKorUij/w==}
1621
peerDependencies:
1529
- '@effect/typeclass': ^0.35.8
1530
- effect: ^3.16.8
1622
+ '@effect/typeclass': ^0.35.14
1623
+ effect: ^3.16.14
1624
1625
'@effect/rpc@0.62.4':
1626
resolution: {integrity: sha512-5oPVKLZEoqJs3hDAKIcpTRe5qvX1pA4U5ai0LL3pcVLpXZrv0z3mi0gslySM/q85IxrZo+sOcuo18OS2jsuA0g==}
@@ -1542,15 +1635,15 @@ packages:
1635
'@effect/platform': ^0.85.2
1636
effect: ^3.16.8
1637
1545
- '@effect/typeclass@0.35.8':
1546
- resolution: {integrity: sha512-hDrILuHlFEtiPSADMX9YKicAa7tSDMqJPEMfBdUoE27cUHLg7qnr5EykLQzvBKPhlHAs9DHb5w/fp9WMV6WUpQ==}
1638
+ '@effect/typeclass@0.35.14':
1639
+ resolution: {integrity: sha512-IYpbpTcqJ/h7v561dV9ZbBXYxCBS7gdIZYCysFl+Yjdi91k5Vj4F12MijJB6tWVT5JB8xgfgAX4vwbotQ7/G6Q==}
1640
peerDependencies:
1548
- effect: ^3.16.8
1641
+ effect: ^3.16.14
1642
1550
- '@effect/vitest@0.23.8':
1551
- resolution: {integrity: sha512-yaAfl+qHb0jK38rl3HSd4cjmo4xcQQDKW/bCAhhi9zDlbIDzH+gsOHz094KoQ/kAlp0wOTgjquSI21FV4w9YXg==}
1643
+ '@effect/vitest@0.23.13':
1644
+ resolution: {integrity: sha512-F3x2phMXuVzqWexdcYp8v0z1qQHkKxp2UaHNbqZaEjPEp8FBz/iMwbi6iS/oIWzLfGF8XqdP8BGJptvGIJONNw==}
1645
peerDependencies:
1553
- effect: ^3.16.8
1646
+ effect: ^3.16.13
1647
vitest: ^3.0.0
1648
1649
'@effect/workflow@0.2.4':
@@ -1560,386 +1653,533 @@ packages:
1653
'@effect/rpc': ^0.62.4
1654
effect: ^3.16.8
1655
1563
- '@emnapi/runtime@1.4.3':
1564
- resolution: {integrity: sha512-pBPWdu6MLKROBX05wSNKcNb++m5Er+KQ9QkB+WVM+pW2Kx9hoSrVTnu3BdkI5eBLZoKu/J6mW/B6i6bJB2ytXQ==}
1565
-
1656
'@emnapi/runtime@1.7.1':
1657
resolution: {integrity: sha512-PVtJr5CmLwYAU9PZDMITZoR5iAOShYREoR45EyyLrbntV50mdePTgUn4AmOw90Ifcj+x2kRjdzr1HP3RrNiHGA==}
1658
1659
+ '@esbuild/aix-ppc64@0.25.12':
1660
+ resolution: {integrity: sha512-Hhmwd6CInZ3dwpuGTF8fJG6yoWmsToE+vYgD4nytZVxcu1ulHpUQRAB1UJ8+N1Am3Mz4+xOByoQoSZf4D+CpkA==}
1661
+ engines: {node: '>=18'}
1662
+ cpu: [ppc64]
1663
+ os: [aix]
1664
+
1665
'@esbuild/aix-ppc64@0.25.4':
1666
resolution: {integrity: sha512-1VCICWypeQKhVbE9oW/sJaAmjLxhVqacdkvPLEjwlttjfwENRSClS8EjBz0KzRyFSCPDIkuXW34Je/vk7zdB7Q==}
1667
engines: {node: '>=18'}
1668
cpu: [ppc64]
1669
os: [aix]
1670
1575
- '@esbuild/aix-ppc64@0.25.5':
1576
- resolution: {integrity: sha512-9o3TMmpmftaCMepOdA5k/yDw8SfInyzWWTjYTFCX3kPSDJMROQTb8jg+h9Cnwnmm1vOzvxN7gIfB5V2ewpjtGA==}
1671
+ '@esbuild/aix-ppc64@0.27.0':
1672
+ resolution: {integrity: sha512-KuZrd2hRjz01y5JK9mEBSD3Vj3mbCvemhT466rSuJYeE/hjuBrHfjjcjMdTm/sz7au+++sdbJZJmuBwQLuw68A==}
1673
engines: {node: '>=18'}
1674
cpu: [ppc64]
1675
os: [aix]
1676
1677
+ '@esbuild/android-arm64@0.25.12':
1678
+ resolution: {integrity: sha512-6AAmLG7zwD1Z159jCKPvAxZd4y/VTO0VkprYy+3N2FtJ8+BQWFXU+OxARIwA46c5tdD9SsKGZ/1ocqBS/gAKHg==}
1679
+ engines: {node: '>=18'}
1680
+ cpu: [arm64]
1681
+ os: [android]
1682
+
1683
'@esbuild/android-arm64@0.25.4':
1684
resolution: {integrity: sha512-bBy69pgfhMGtCnwpC/x5QhfxAz/cBgQ9enbtwjf6V9lnPI/hMyT9iWpR1arm0l3kttTr4L0KSLpKmLp/ilKS9A==}
1685
engines: {node: '>=18'}
1686
cpu: [arm64]
1687
os: [android]
1688
1587
- '@esbuild/android-arm64@0.25.5':
1588
- resolution: {integrity: sha512-VGzGhj4lJO+TVGV1v8ntCZWJktV7SGCs3Pn1GRWI1SBFtRALoomm8k5E9Pmwg3HOAal2VDc2F9+PM/rEY6oIDg==}
1689
+ '@esbuild/android-arm64@0.27.0':
1690
+ resolution: {integrity: sha512-CC3vt4+1xZrs97/PKDkl0yN7w8edvU2vZvAFGD16n9F0Cvniy5qvzRXjfO1l94efczkkQE6g1x0i73Qf5uthOQ==}
1691
engines: {node: '>=18'}
1692
cpu: [arm64]
1693
os: [android]
1694
1695
+ '@esbuild/android-arm@0.25.12':
1696
+ resolution: {integrity: sha512-VJ+sKvNA/GE7Ccacc9Cha7bpS8nyzVv0jdVgwNDaR4gDMC/2TTRc33Ip8qrNYUcpkOHUT5OZ0bUcNNVZQ9RLlg==}
1697
+ engines: {node: '>=18'}
1698
+ cpu: [arm]
1699
+ os: [android]
1700
+
1701
'@esbuild/android-arm@0.25.4':
1702
resolution: {integrity: sha512-QNdQEps7DfFwE3hXiU4BZeOV68HHzYwGd0Nthhd3uCkkEKK7/R6MTgM0P7H7FAs5pU/DIWsviMmEGxEoxIZ+ZQ==}
1703
engines: {node: '>=18'}
1704
cpu: [arm]
1705
os: [android]
1706
1599
- '@esbuild/android-arm@0.25.5':
1600
- resolution: {integrity: sha512-AdJKSPeEHgi7/ZhuIPtcQKr5RQdo6OO2IL87JkianiMYMPbCtot9fxPbrMiBADOWWm3T2si9stAiVsGbTQFkbA==}
1707
+ '@esbuild/android-arm@0.27.0':
1708
+ resolution: {integrity: sha512-j67aezrPNYWJEOHUNLPj9maeJte7uSMM6gMoxfPC9hOg8N02JuQi/T7ewumf4tNvJadFkvLZMlAq73b9uwdMyQ==}
1709
engines: {node: '>=18'}
1710
cpu: [arm]
1711
os: [android]
1712
1713
+ '@esbuild/android-x64@0.25.12':
1714
+ resolution: {integrity: sha512-5jbb+2hhDHx5phYR2By8GTWEzn6I9UqR11Kwf22iKbNpYrsmRB18aX/9ivc5cabcUiAT/wM+YIZ6SG9QO6a8kg==}
1715
+ engines: {node: '>=18'}
1716
+ cpu: [x64]
1717
+ os: [android]
1718
+
1719
'@esbuild/android-x64@0.25.4':
1720
resolution: {integrity: sha512-TVhdVtQIFuVpIIR282btcGC2oGQoSfZfmBdTip2anCaVYcqWlZXGcdcKIUklfX2wj0JklNYgz39OBqh2cqXvcQ==}
1721
engines: {node: '>=18'}
1722
cpu: [x64]
1723
os: [android]
1724
1611
- '@esbuild/android-x64@0.25.5':
1612
- resolution: {integrity: sha512-D2GyJT1kjvO//drbRT3Hib9XPwQeWd9vZoBJn+bu/lVsOZ13cqNdDeqIF/xQ5/VmWvMduP6AmXvylO/PIc2isw==}
1725
+ '@esbuild/android-x64@0.27.0':
1726
+ resolution: {integrity: sha512-wurMkF1nmQajBO1+0CJmcN17U4BP6GqNSROP8t0X/Jiw2ltYGLHpEksp9MpoBqkrFR3kv2/te6Sha26k3+yZ9Q==}
1727
engines: {node: '>=18'}
1728
cpu: [x64]
1729
os: [android]
1730
1731
+ '@esbuild/darwin-arm64@0.25.12':
1732
+ resolution: {integrity: sha512-N3zl+lxHCifgIlcMUP5016ESkeQjLj/959RxxNYIthIg+CQHInujFuXeWbWMgnTo4cp5XVHqFPmpyu9J65C1Yg==}
1733
+ engines: {node: '>=18'}
1734
+ cpu: [arm64]
1735
+ os: [darwin]
1736
+
1737
'@esbuild/darwin-arm64@0.25.4':
1738
resolution: {integrity: sha512-Y1giCfM4nlHDWEfSckMzeWNdQS31BQGs9/rouw6Ub91tkK79aIMTH3q9xHvzH8d0wDru5Ci0kWB8b3up/nl16g==}
1739
engines: {node: '>=18'}
1740
cpu: [arm64]
1741
os: [darwin]
1742
1623
- '@esbuild/darwin-arm64@0.25.5':
1624
- resolution: {integrity: sha512-GtaBgammVvdF7aPIgH2jxMDdivezgFu6iKpmT+48+F8Hhg5J/sfnDieg0aeG/jfSvkYQU2/pceFPDKlqZzwnfQ==}
1743
+ '@esbuild/darwin-arm64@0.27.0':
1744
+ resolution: {integrity: sha512-uJOQKYCcHhg07DL7i8MzjvS2LaP7W7Pn/7uA0B5S1EnqAirJtbyw4yC5jQ5qcFjHK9l6o/MX9QisBg12kNkdHg==}
1745
engines: {node: '>=18'}
1746
cpu: [arm64]
1747
os: [darwin]
1748
1749
+ '@esbuild/darwin-x64@0.25.12':
1750
+ resolution: {integrity: sha512-HQ9ka4Kx21qHXwtlTUVbKJOAnmG1ipXhdWTmNXiPzPfWKpXqASVcWdnf2bnL73wgjNrFXAa3yYvBSd9pzfEIpA==}
1751
+ engines: {node: '>=18'}
1752
+ cpu: [x64]
1753
+ os: [darwin]
1754
+
1755
'@esbuild/darwin-x64@0.25.4':
1756
resolution: {integrity: sha512-CJsry8ZGM5VFVeyUYB3cdKpd/H69PYez4eJh1W/t38vzutdjEjtP7hB6eLKBoOdxcAlCtEYHzQ/PJ/oU9I4u0A==}
1757
engines: {node: '>=18'}
1758
cpu: [x64]
1759
os: [darwin]
1760
1635
- '@esbuild/darwin-x64@0.25.5':
1636
- resolution: {integrity: sha512-1iT4FVL0dJ76/q1wd7XDsXrSW+oLoquptvh4CLR4kITDtqi2e/xwXwdCVH8hVHU43wgJdsq7Gxuzcs6Iq/7bxQ==}
1761
+ '@esbuild/darwin-x64@0.27.0':
1762
+ resolution: {integrity: sha512-8mG6arH3yB/4ZXiEnXof5MK72dE6zM9cDvUcPtxhUZsDjESl9JipZYW60C3JGreKCEP+p8P/72r69m4AZGJd5g==}
1763
engines: {node: '>=18'}
1764
cpu: [x64]
1765
os: [darwin]
1766
1767
+ '@esbuild/freebsd-arm64@0.25.12':
1768
+ resolution: {integrity: sha512-gA0Bx759+7Jve03K1S0vkOu5Lg/85dou3EseOGUes8flVOGxbhDDh/iZaoek11Y8mtyKPGF3vP8XhnkDEAmzeg==}
1769
+ engines: {node: '>=18'}
1770
+ cpu: [arm64]
1771
+ os: [freebsd]
1772
+
1773
'@esbuild/freebsd-arm64@0.25.4':
1774
resolution: {integrity: sha512-yYq+39NlTRzU2XmoPW4l5Ifpl9fqSk0nAJYM/V/WUGPEFfek1epLHJIkTQM6bBs1swApjO5nWgvr843g6TjxuQ==}
1775
engines: {node: '>=18'}
1776
cpu: [arm64]
1777
os: [freebsd]
1778
1647
- '@esbuild/freebsd-arm64@0.25.5':
1648
- resolution: {integrity: sha512-nk4tGP3JThz4La38Uy/gzyXtpkPW8zSAmoUhK9xKKXdBCzKODMc2adkB2+8om9BDYugz+uGV7sLmpTYzvmz6Sw==}
1779
+ '@esbuild/freebsd-arm64@0.27.0':
1780
+ resolution: {integrity: sha512-9FHtyO988CwNMMOE3YIeci+UV+x5Zy8fI2qHNpsEtSF83YPBmE8UWmfYAQg6Ux7Gsmd4FejZqnEUZCMGaNQHQw==}
1781
engines: {node: '>=18'}
1782
cpu: [arm64]
1783
os: [freebsd]
1784
1785
+ '@esbuild/freebsd-x64@0.25.12':
1786
+ resolution: {integrity: sha512-TGbO26Yw2xsHzxtbVFGEXBFH0FRAP7gtcPE7P5yP7wGy7cXK2oO7RyOhL5NLiqTlBh47XhmIUXuGciXEqYFfBQ==}
1787
+ engines: {node: '>=18'}
1788
+ cpu: [x64]
1789
+ os: [freebsd]
1790
+
1791
'@esbuild/freebsd-x64@0.25.4':
1792
resolution: {integrity: sha512-0FgvOJ6UUMflsHSPLzdfDnnBBVoCDtBTVyn/MrWloUNvq/5SFmh13l3dvgRPkDihRxb77Y17MbqbCAa2strMQQ==}
1793
engines: {node: '>=18'}
1794
cpu: [x64]
1795
os: [freebsd]
1796
1659
- '@esbuild/freebsd-x64@0.25.5':
1660
- resolution: {integrity: sha512-PrikaNjiXdR2laW6OIjlbeuCPrPaAl0IwPIaRv+SMV8CiM8i2LqVUHFC1+8eORgWyY7yhQY+2U2fA55mBzReaw==}
1797
+ '@esbuild/freebsd-x64@0.27.0':
1798
+ resolution: {integrity: sha512-zCMeMXI4HS/tXvJz8vWGexpZj2YVtRAihHLk1imZj4efx1BQzN76YFeKqlDr3bUWI26wHwLWPd3rwh6pe4EV7g==}
1799
engines: {node: '>=18'}
1800
cpu: [x64]
1801
os: [freebsd]
1802
1803
+ '@esbuild/linux-arm64@0.25.12':
1804
+ resolution: {integrity: sha512-8bwX7a8FghIgrupcxb4aUmYDLp8pX06rGh5HqDT7bB+8Rdells6mHvrFHHW2JAOPZUbnjUpKTLg6ECyzvas2AQ==}
1805
+ engines: {node: '>=18'}
1806
+ cpu: [arm64]
1807
+ os: [linux]
1808
+
1809
'@esbuild/linux-arm64@0.25.4':
1810
resolution: {integrity: sha512-+89UsQTfXdmjIvZS6nUnOOLoXnkUTB9hR5QAeLrQdzOSWZvNSAXAtcRDHWtqAUtAmv7ZM1WPOOeSxDzzzMogiQ==}
1811
engines: {node: '>=18'}
1812
cpu: [arm64]
1813
os: [linux]
1814
1671
- '@esbuild/linux-arm64@0.25.5':
1672
- resolution: {integrity: sha512-Z9kfb1v6ZlGbWj8EJk9T6czVEjjq2ntSYLY2cw6pAZl4oKtfgQuS4HOq41M/BcoLPzrUbNd+R4BXFyH//nHxVg==}
1815
+ '@esbuild/linux-arm64@0.27.0':
1816
+ resolution: {integrity: sha512-AS18v0V+vZiLJyi/4LphvBE+OIX682Pu7ZYNsdUHyUKSoRwdnOsMf6FDekwoAFKej14WAkOef3zAORJgAtXnlQ==}
1817
engines: {node: '>=18'}
1818
cpu: [arm64]
1819
os: [linux]
1820
1821
+ '@esbuild/linux-arm@0.25.12':
1822
+ resolution: {integrity: sha512-lPDGyC1JPDou8kGcywY0YILzWlhhnRjdof3UlcoqYmS9El818LLfJJc3PXXgZHrHCAKs/Z2SeZtDJr5MrkxtOw==}
1823
+ engines: {node: '>=18'}
1824
+ cpu: [arm]
1825
+ os: [linux]
1826
+
1827
'@esbuild/linux-arm@0.25.4':
1828
resolution: {integrity: sha512-kro4c0P85GMfFYqW4TWOpvmF8rFShbWGnrLqlzp4X1TNWjRY3JMYUfDCtOxPKOIY8B0WC8HN51hGP4I4hz4AaQ==}
1829
engines: {node: '>=18'}
1830
cpu: [arm]
1831
os: [linux]
1832
1683
- '@esbuild/linux-arm@0.25.5':
1684
- resolution: {integrity: sha512-cPzojwW2okgh7ZlRpcBEtsX7WBuqbLrNXqLU89GxWbNt6uIg78ET82qifUy3W6OVww6ZWobWub5oqZOVtwolfw==}
1833
+ '@esbuild/linux-arm@0.27.0':
1834
+ resolution: {integrity: sha512-t76XLQDpxgmq2cNXKTVEB7O7YMb42atj2Re2Haf45HkaUpjM2J0UuJZDuaGbPbamzZ7bawyGFUkodL+zcE+jvQ==}
1835
engines: {node: '>=18'}
1836
cpu: [arm]
1837
os: [linux]
1838
1839
+ '@esbuild/linux-ia32@0.25.12':
1840
+ resolution: {integrity: sha512-0y9KrdVnbMM2/vG8KfU0byhUN+EFCny9+8g202gYqSSVMonbsCfLjUO+rCci7pM0WBEtz+oK/PIwHkzxkyharA==}
1841
+ engines: {node: '>=18'}
1842
+ cpu: [ia32]
1843
+ os: [linux]
1844
+
1845
'@esbuild/linux-ia32@0.25.4':
1846
resolution: {integrity: sha512-yTEjoapy8UP3rv8dB0ip3AfMpRbyhSN3+hY8mo/i4QXFeDxmiYbEKp3ZRjBKcOP862Ua4b1PDfwlvbuwY7hIGQ==}
1847
engines: {node: '>=18'}
1848
cpu: [ia32]
1849
os: [linux]
1850
1695
- '@esbuild/linux-ia32@0.25.5':
1696
- resolution: {integrity: sha512-sQ7l00M8bSv36GLV95BVAdhJ2QsIbCuCjh/uYrWiMQSUuV+LpXwIqhgJDcvMTj+VsQmqAHL2yYaasENvJ7CDKA==}
1851
+ '@esbuild/linux-ia32@0.27.0':
1852
+ resolution: {integrity: sha512-Mz1jxqm/kfgKkc/KLHC5qIujMvnnarD9ra1cEcrs7qshTUSksPihGrWHVG5+osAIQ68577Zpww7SGapmzSt4Nw==}
1853
engines: {node: '>=18'}
1854
cpu: [ia32]
1855
os: [linux]
1856
1857
+ '@esbuild/linux-loong64@0.25.12':
1858
+ resolution: {integrity: sha512-h///Lr5a9rib/v1GGqXVGzjL4TMvVTv+s1DPoxQdz7l/AYv6LDSxdIwzxkrPW438oUXiDtwM10o9PmwS/6Z0Ng==}
1859
+ engines: {node: '>=18'}
1860
+ cpu: [loong64]
1861
+ os: [linux]
1862
+
1863
'@esbuild/linux-loong64@0.25.4':
1864
resolution: {integrity: sha512-NeqqYkrcGzFwi6CGRGNMOjWGGSYOpqwCjS9fvaUlX5s3zwOtn1qwg1s2iE2svBe4Q/YOG1q6875lcAoQK/F4VA==}
1865
engines: {node: '>=18'}
1866
cpu: [loong64]
1867
os: [linux]
1868
1707
- '@esbuild/linux-loong64@0.25.5':
1708
- resolution: {integrity: sha512-0ur7ae16hDUC4OL5iEnDb0tZHDxYmuQyhKhsPBV8f99f6Z9KQM02g33f93rNH5A30agMS46u2HP6qTdEt6Q1kg==}
1869
+ '@esbuild/linux-loong64@0.27.0':
1870
+ resolution: {integrity: sha512-QbEREjdJeIreIAbdG2hLU1yXm1uu+LTdzoq1KCo4G4pFOLlvIspBm36QrQOar9LFduavoWX2msNFAAAY9j4BDg==}
1871
engines: {node: '>=18'}
1872
cpu: [loong64]
1873
os: [linux]
1874
1875
+ '@esbuild/linux-mips64el@0.25.12':
1876
+ resolution: {integrity: sha512-iyRrM1Pzy9GFMDLsXn1iHUm18nhKnNMWscjmp4+hpafcZjrr2WbT//d20xaGljXDBYHqRcl8HnxbX6uaA/eGVw==}
1877
+ engines: {node: '>=18'}
1878
+ cpu: [mips64el]
1879
+ os: [linux]
1880
+
1881
'@esbuild/linux-mips64el@0.25.4':
1882
resolution: {integrity: sha512-IcvTlF9dtLrfL/M8WgNI/qJYBENP3ekgsHbYUIzEzq5XJzzVEV/fXY9WFPfEEXmu3ck2qJP8LG/p3Q8f7Zc2Xg==}
1883
engines: {node: '>=18'}
1884
cpu: [mips64el]
1885
os: [linux]
1886
1719
- '@esbuild/linux-mips64el@0.25.5':
1720
- resolution: {integrity: sha512-kB/66P1OsHO5zLz0i6X0RxlQ+3cu0mkxS3TKFvkb5lin6uwZ/ttOkP3Z8lfR9mJOBk14ZwZ9182SIIWFGNmqmg==}
1887
+ '@esbuild/linux-mips64el@0.27.0':
1888
+ resolution: {integrity: sha512-sJz3zRNe4tO2wxvDpH/HYJilb6+2YJxo/ZNbVdtFiKDufzWq4JmKAiHy9iGoLjAV7r/W32VgaHGkk35cUXlNOg==}
1889
engines: {node: '>=18'}
1890
cpu: [mips64el]
1891
os: [linux]
1892
1893
+ '@esbuild/linux-ppc64@0.25.12':
1894
+ resolution: {integrity: sha512-9meM/lRXxMi5PSUqEXRCtVjEZBGwB7P/D4yT8UG/mwIdze2aV4Vo6U5gD3+RsoHXKkHCfSxZKzmDssVlRj1QQA==}
1895
+ engines: {node: '>=18'}
1896
+ cpu: [ppc64]
1897
+ os: [linux]
1898
+
1899
'@esbuild/linux-ppc64@0.25.4':
1900
resolution: {integrity: sha512-HOy0aLTJTVtoTeGZh4HSXaO6M95qu4k5lJcH4gxv56iaycfz1S8GO/5Jh6X4Y1YiI0h7cRyLi+HixMR+88swag==}
1901
engines: {node: '>=18'}
1902
cpu: [ppc64]
1903
os: [linux]
1904
1731
- '@esbuild/linux-ppc64@0.25.5':
1732
- resolution: {integrity: sha512-UZCmJ7r9X2fe2D6jBmkLBMQetXPXIsZjQJCjgwpVDz+YMcS6oFR27alkgGv3Oqkv07bxdvw7fyB71/olceJhkQ==}
1905
+ '@esbuild/linux-ppc64@0.27.0':
1906
+ resolution: {integrity: sha512-z9N10FBD0DCS2dmSABDBb5TLAyF1/ydVb+N4pi88T45efQ/w4ohr/F/QYCkxDPnkhkp6AIpIcQKQ8F0ANoA2JA==}
1907
engines: {node: '>=18'}
1908
cpu: [ppc64]
1909
os: [linux]
1910
1911
+ '@esbuild/linux-riscv64@0.25.12':
1912
+ resolution: {integrity: sha512-Zr7KR4hgKUpWAwb1f3o5ygT04MzqVrGEGXGLnj15YQDJErYu/BGg+wmFlIDOdJp0PmB0lLvxFIOXZgFRrdjR0w==}
1913
+ engines: {node: '>=18'}
1914
+ cpu: [riscv64]
1915
+ os: [linux]
1916
+
1917
'@esbuild/linux-riscv64@0.25.4':
1918
resolution: {integrity: sha512-i8JUDAufpz9jOzo4yIShCTcXzS07vEgWzyX3NH2G7LEFVgrLEhjwL3ajFE4fZI3I4ZgiM7JH3GQ7ReObROvSUA==}
1919
engines: {node: '>=18'}
1920
cpu: [riscv64]
1921
os: [linux]
1922
1743
- '@esbuild/linux-riscv64@0.25.5':
1744
- resolution: {integrity: sha512-kTxwu4mLyeOlsVIFPfQo+fQJAV9mh24xL+y+Bm6ej067sYANjyEw1dNHmvoqxJUCMnkBdKpvOn0Ahql6+4VyeA==}
1923
+ '@esbuild/linux-riscv64@0.27.0':
1924
+ resolution: {integrity: sha512-pQdyAIZ0BWIC5GyvVFn5awDiO14TkT/19FTmFcPdDec94KJ1uZcmFs21Fo8auMXzD4Tt+diXu1LW1gHus9fhFQ==}
1925
engines: {node: '>=18'}
1926
cpu: [riscv64]
1927
os: [linux]
1928
1929
+ '@esbuild/linux-s390x@0.25.12':
1930
+ resolution: {integrity: sha512-MsKncOcgTNvdtiISc/jZs/Zf8d0cl/t3gYWX8J9ubBnVOwlk65UIEEvgBORTiljloIWnBzLs4qhzPkJcitIzIg==}
1931
+ engines: {node: '>=18'}
1932
+ cpu: [s390x]
1933
+ os: [linux]
1934
+
1935
'@esbuild/linux-s390x@0.25.4':
1936
resolution: {integrity: sha512-jFnu+6UbLlzIjPQpWCNh5QtrcNfMLjgIavnwPQAfoGx4q17ocOU9MsQ2QVvFxwQoWpZT8DvTLooTvmOQXkO51g==}
1937
engines: {node: '>=18'}
1938
cpu: [s390x]
1939
os: [linux]
1940
1755
- '@esbuild/linux-s390x@0.25.5':
1756
- resolution: {integrity: sha512-K2dSKTKfmdh78uJ3NcWFiqyRrimfdinS5ErLSn3vluHNeHVnBAFWC8a4X5N+7FgVE1EjXS1QDZbpqZBjfrqMTQ==}
1941
+ '@esbuild/linux-s390x@0.27.0':
1942
+ resolution: {integrity: sha512-hPlRWR4eIDDEci953RI1BLZitgi5uqcsjKMxwYfmi4LcwyWo2IcRP+lThVnKjNtk90pLS8nKdroXYOqW+QQH+w==}
1943
engines: {node: '>=18'}
1944
cpu: [s390x]
1945
os: [linux]
1946
1947
+ '@esbuild/linux-x64@0.25.12':
1948
+ resolution: {integrity: sha512-uqZMTLr/zR/ed4jIGnwSLkaHmPjOjJvnm6TVVitAa08SLS9Z0VM8wIRx7gWbJB5/J54YuIMInDquWyYvQLZkgw==}
1949
+ engines: {node: '>=18'}
1950
+ cpu: [x64]
1951
+ os: [linux]
1952
+
1953
'@esbuild/linux-x64@0.25.4':
1954
resolution: {integrity: sha512-6e0cvXwzOnVWJHq+mskP8DNSrKBr1bULBvnFLpc1KY+d+irZSgZ02TGse5FsafKS5jg2e4pbvK6TPXaF/A6+CA==}
1955
engines: {node: '>=18'}
1956
cpu: [x64]
1957
os: [linux]
1958
1767
- '@esbuild/linux-x64@0.25.5':
1768
- resolution: {integrity: sha512-uhj8N2obKTE6pSZ+aMUbqq+1nXxNjZIIjCjGLfsWvVpy7gKCOL6rsY1MhRh9zLtUtAI7vpgLMK6DxjO8Qm9lJw==}
1959
+ '@esbuild/linux-x64@0.27.0':
1960
+ resolution: {integrity: sha512-1hBWx4OUJE2cab++aVZ7pObD6s+DK4mPGpemtnAORBvb5l/g5xFGk0vc0PjSkrDs0XaXj9yyob3d14XqvnQ4gw==}
1961
engines: {node: '>=18'}
1962
cpu: [x64]
1963
os: [linux]
1964
1965
+ '@esbuild/netbsd-arm64@0.25.12':
1966
+ resolution: {integrity: sha512-xXwcTq4GhRM7J9A8Gv5boanHhRa/Q9KLVmcyXHCTaM4wKfIpWkdXiMog/KsnxzJ0A1+nD+zoecuzqPmCRyBGjg==}
1967
+ engines: {node: '>=18'}
1968
+ cpu: [arm64]
1969
+ os: [netbsd]
1970
+
1971
'@esbuild/netbsd-arm64@0.25.4':
1972
resolution: {integrity: sha512-vUnkBYxZW4hL/ie91hSqaSNjulOnYXE1VSLusnvHg2u3jewJBz3YzB9+oCw8DABeVqZGg94t9tyZFoHma8gWZQ==}
1973
engines: {node: '>=18'}
1974
cpu: [arm64]
1975
os: [netbsd]
1976
1779
- '@esbuild/netbsd-arm64@0.25.5':
1780
- resolution: {integrity: sha512-pwHtMP9viAy1oHPvgxtOv+OkduK5ugofNTVDilIzBLpoWAM16r7b/mxBvfpuQDpRQFMfuVr5aLcn4yveGvBZvw==}
1977
+ '@esbuild/netbsd-arm64@0.27.0':
1978
+ resolution: {integrity: sha512-6m0sfQfxfQfy1qRuecMkJlf1cIzTOgyaeXaiVaaki8/v+WB+U4hc6ik15ZW6TAllRlg/WuQXxWj1jx6C+dfy3w==}
1979
engines: {node: '>=18'}
1980
cpu: [arm64]
1981
os: [netbsd]
1982
1983
+ '@esbuild/netbsd-x64@0.25.12':
1984
+ resolution: {integrity: sha512-Ld5pTlzPy3YwGec4OuHh1aCVCRvOXdH8DgRjfDy/oumVovmuSzWfnSJg+VtakB9Cm0gxNO9BzWkj6mtO1FMXkQ==}
1985
+ engines: {node: '>=18'}
1986
+ cpu: [x64]
1987
+ os: [netbsd]
1988
+
1989
'@esbuild/netbsd-x64@0.25.4':
1990
resolution: {integrity: sha512-XAg8pIQn5CzhOB8odIcAm42QsOfa98SBeKUdo4xa8OvX8LbMZqEtgeWE9P/Wxt7MlG2QqvjGths+nq48TrUiKw==}
1991
engines: {node: '>=18'}
1992
cpu: [x64]
1993
os: [netbsd]
1994
1791
- '@esbuild/netbsd-x64@0.25.5':
1792
- resolution: {integrity: sha512-WOb5fKrvVTRMfWFNCroYWWklbnXH0Q5rZppjq0vQIdlsQKuw6mdSihwSo4RV/YdQ5UCKKvBy7/0ZZYLBZKIbwQ==}
1995
+ '@esbuild/netbsd-x64@0.27.0':
1996
+ resolution: {integrity: sha512-xbbOdfn06FtcJ9d0ShxxvSn2iUsGd/lgPIO2V3VZIPDbEaIj1/3nBBe1AwuEZKXVXkMmpr6LUAgMkLD/4D2PPA==}
1997
engines: {node: '>=18'}
1998
cpu: [x64]
1999
os: [netbsd]
2000
2001
+ '@esbuild/openbsd-arm64@0.25.12':
2002
+ resolution: {integrity: sha512-fF96T6KsBo/pkQI950FARU9apGNTSlZGsv1jZBAlcLL1MLjLNIWPBkj5NlSz8aAzYKg+eNqknrUJ24QBybeR5A==}
2003
+ engines: {node: '>=18'}
2004
+ cpu: [arm64]
2005
+ os: [openbsd]
2006
+
2007
'@esbuild/openbsd-arm64@0.25.4':
2008
resolution: {integrity: sha512-Ct2WcFEANlFDtp1nVAXSNBPDxyU+j7+tId//iHXU2f/lN5AmO4zLyhDcpR5Cz1r08mVxzt3Jpyt4PmXQ1O6+7A==}
2009
engines: {node: '>=18'}
2010
cpu: [arm64]
2011
os: [openbsd]
2012
1803
- '@esbuild/openbsd-arm64@0.25.5':
1804
- resolution: {integrity: sha512-7A208+uQKgTxHd0G0uqZO8UjK2R0DDb4fDmERtARjSHWxqMTye4Erz4zZafx7Di9Cv+lNHYuncAkiGFySoD+Mw==}
2013
+ '@esbuild/openbsd-arm64@0.27.0':
2014
+ resolution: {integrity: sha512-fWgqR8uNbCQ/GGv0yhzttj6sU/9Z5/Sv/VGU3F5OuXK6J6SlriONKrQ7tNlwBrJZXRYk5jUhuWvF7GYzGguBZQ==}
2015
engines: {node: '>=18'}
2016
cpu: [arm64]
2017
os: [openbsd]
2018
2019
+ '@esbuild/openbsd-x64@0.25.12':
2020
+ resolution: {integrity: sha512-MZyXUkZHjQxUvzK7rN8DJ3SRmrVrke8ZyRusHlP+kuwqTcfWLyqMOE3sScPPyeIXN/mDJIfGXvcMqCgYKekoQw==}
2021
+ engines: {node: '>=18'}
2022
+ cpu: [x64]
2023
+ os: [openbsd]
2024
+
2025
'@esbuild/openbsd-x64@0.25.4':
2026
resolution: {integrity: sha512-xAGGhyOQ9Otm1Xu8NT1ifGLnA6M3sJxZ6ixylb+vIUVzvvd6GOALpwQrYrtlPouMqd/vSbgehz6HaVk4+7Afhw==}
2027
engines: {node: '>=18'}
2028
cpu: [x64]
2029
os: [openbsd]
2030
1815
- '@esbuild/openbsd-x64@0.25.5':
1816
- resolution: {integrity: sha512-G4hE405ErTWraiZ8UiSoesH8DaCsMm0Cay4fsFWOOUcz8b8rC6uCvnagr+gnioEjWn0wC+o1/TAHt+It+MpIMg==}
2031
+ '@esbuild/openbsd-x64@0.27.0':
2032
+ resolution: {integrity: sha512-aCwlRdSNMNxkGGqQajMUza6uXzR/U0dIl1QmLjPtRbLOx3Gy3otfFu/VjATy4yQzo9yFDGTxYDo1FfAD9oRD2A==}
2033
engines: {node: '>=18'}
2034
cpu: [x64]
2035
os: [openbsd]
2036
2037
+ '@esbuild/openharmony-arm64@0.25.12':
2038
+ resolution: {integrity: sha512-rm0YWsqUSRrjncSXGA7Zv78Nbnw4XL6/dzr20cyrQf7ZmRcsovpcRBdhD43Nuk3y7XIoW2OxMVvwuRvk9XdASg==}
2039
+ engines: {node: '>=18'}
2040
+ cpu: [arm64]
2041
+ os: [openharmony]
2042
+
2043
+ '@esbuild/openharmony-arm64@0.27.0':
2044
+ resolution: {integrity: sha512-nyvsBccxNAsNYz2jVFYwEGuRRomqZ149A39SHWk4hV0jWxKM0hjBPm3AmdxcbHiFLbBSwG6SbpIcUbXjgyECfA==}
2045
+ engines: {node: '>=18'}
2046
+ cpu: [arm64]
2047
+ os: [openharmony]
2048
+
2049
+ '@esbuild/sunos-x64@0.25.12':
2050
+ resolution: {integrity: sha512-3wGSCDyuTHQUzt0nV7bocDy72r2lI33QL3gkDNGkod22EsYl04sMf0qLb8luNKTOmgF/eDEDP5BFNwoBKH441w==}
2051
+ engines: {node: '>=18'}
2052
+ cpu: [x64]
2053
+ os: [sunos]
2054
+
2055
'@esbuild/sunos-x64@0.25.4':
2056
resolution: {integrity: sha512-Mw+tzy4pp6wZEK0+Lwr76pWLjrtjmJyUB23tHKqEDP74R3q95luY/bXqXZeYl4NYlvwOqoRKlInQialgCKy67Q==}
2057
engines: {node: '>=18'}
2058
cpu: [x64]
2059
os: [sunos]
2060
1827
- '@esbuild/sunos-x64@0.25.5':
1828
- resolution: {integrity: sha512-l+azKShMy7FxzY0Rj4RCt5VD/q8mG/e+mDivgspo+yL8zW7qEwctQ6YqKX34DTEleFAvCIUviCFX1SDZRSyMQA==}
2061
+ '@esbuild/sunos-x64@0.27.0':
2062
+ resolution: {integrity: sha512-Q1KY1iJafM+UX6CFEL+F4HRTgygmEW568YMqDA5UV97AuZSm21b7SXIrRJDwXWPzr8MGr75fUZPV67FdtMHlHA==}
2063
engines: {node: '>=18'}
2064
cpu: [x64]
2065
os: [sunos]
2066
2067
+ '@esbuild/win32-arm64@0.25.12':
2068
+ resolution: {integrity: sha512-rMmLrur64A7+DKlnSuwqUdRKyd3UE7oPJZmnljqEptesKM8wx9J8gx5u0+9Pq0fQQW8vqeKebwNXdfOyP+8Bsg==}
2069
+ engines: {node: '>=18'}
2070
+ cpu: [arm64]
2071
+ os: [win32]
2072
+
2073
'@esbuild/win32-arm64@0.25.4':
2074
resolution: {integrity: sha512-AVUP428VQTSddguz9dO9ngb+E5aScyg7nOeJDrF1HPYu555gmza3bDGMPhmVXL8svDSoqPCsCPjb265yG/kLKQ==}
2075
engines: {node: '>=18'}
2076
cpu: [arm64]
2077
os: [win32]
2078
1839
- '@esbuild/win32-arm64@0.25.5':
1840
- resolution: {integrity: sha512-O2S7SNZzdcFG7eFKgvwUEZ2VG9D/sn/eIiz8XRZ1Q/DO5a3s76Xv0mdBzVM5j5R639lXQmPmSo0iRpHqUUrsxw==}
2079
+ '@esbuild/win32-arm64@0.27.0':
2080
+ resolution: {integrity: sha512-W1eyGNi6d+8kOmZIwi/EDjrL9nxQIQ0MiGqe/AWc6+IaHloxHSGoeRgDRKHFISThLmsewZ5nHFvGFWdBYlgKPg==}
2081
engines: {node: '>=18'}
2082
cpu: [arm64]
2083
os: [win32]
2084
2085
+ '@esbuild/win32-ia32@0.25.12':
2086
+ resolution: {integrity: sha512-HkqnmmBoCbCwxUKKNPBixiWDGCpQGVsrQfJoVGYLPT41XWF8lHuE5N6WhVia2n4o5QK5M4tYr21827fNhi4byQ==}
2087
+ engines: {node: '>=18'}
2088
+ cpu: [ia32]
2089
+ os: [win32]
2090
+
2091
'@esbuild/win32-ia32@0.25.4':
2092
resolution: {integrity: sha512-i1sW+1i+oWvQzSgfRcxxG2k4I9n3O9NRqy8U+uugaT2Dy7kLO9Y7wI72haOahxceMX8hZAzgGou1FhndRldxRg==}
2093
engines: {node: '>=18'}
2094
cpu: [ia32]
2095
os: [win32]
2096
1851
- '@esbuild/win32-ia32@0.25.5':
1852
- resolution: {integrity: sha512-onOJ02pqs9h1iMJ1PQphR+VZv8qBMQ77Klcsqv9CNW2w6yLqoURLcgERAIurY6QE63bbLuqgP9ATqajFLK5AMQ==}
2097
+ '@esbuild/win32-ia32@0.27.0':
2098
+ resolution: {integrity: sha512-30z1aKL9h22kQhilnYkORFYt+3wp7yZsHWus+wSKAJR8JtdfI76LJ4SBdMsCopTR3z/ORqVu5L1vtnHZWVj4cQ==}
2099
engines: {node: '>=18'}
2100
cpu: [ia32]
2101
os: [win32]
2102
2103
+ '@esbuild/win32-x64@0.25.12':
2104
+ resolution: {integrity: sha512-alJC0uCZpTFrSL0CCDjcgleBXPnCrEAhTBILpeAp7M/OFgoqtAetfBzX0xM00MUsVVPpVjlPuMbREqnZCXaTnA==}
2105
+ engines: {node: '>=18'}
2106
+ cpu: [x64]
2107
+ os: [win32]
2108
+
2109
'@esbuild/win32-x64@0.25.4':
2110
resolution: {integrity: sha512-nOT2vZNw6hJ+z43oP1SPea/G/6AbN6X+bGNhNuq8NtRHy4wsMhw765IKLNmnjek7GvjWBYQ8Q5VBoYTFg9y1UQ==}
2111
engines: {node: '>=18'}
2112
cpu: [x64]
2113
os: [win32]
2114
1863
- '@esbuild/win32-x64@0.25.5':
1864
- resolution: {integrity: sha512-TXv6YnJ8ZMVdX+SXWVBo/0p8LTcrUYngpWjvm91TMjjBQii7Oz11Lw5lbDV5Y0TzuhSJHwiH4hEtC1I42mMS0g==}
2115
+ '@esbuild/win32-x64@0.27.0':
2116
+ resolution: {integrity: sha512-aIitBcjQeyOhMTImhLZmtxfdOcuNRpwlPNmlFKPcHQYPhEssw75Cl1TSXJXpMkzaua9FUetx/4OQKq7eJul5Cg==}
2117
engines: {node: '>=18'}
2118
cpu: [x64]
2119
os: [win32]
2120
1869
- '@eslint-community/eslint-utils@4.7.0':
1870
- resolution: {integrity: sha512-dyybb3AcajC7uha6CvhdVRJqaKyn7w2YKqKyAN37NKYgZT36w+iRb0Dymmc5qEJ549c/S31cMMSFd75bteCpCw==}
2121
+ '@eslint-community/eslint-utils@4.9.0':
2122
+ resolution: {integrity: sha512-ayVFHdtZ+hsq1t2Dy24wCmGXGe4q9Gu3smhLYALJrr473ZH27MsnSL+LKUlimp4BWJqMDMLmPpx/Q9R3OAlL4g==}
2123
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
2124
peerDependencies:
2125
eslint: ^6.0.0 || ^7.0.0 || >=8.0.0
2126
1875
- '@eslint-community/regexpp@4.12.1':
1876
- resolution: {integrity: sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==}
2127
+ '@eslint-community/regexpp@4.12.2':
2128
+ resolution: {integrity: sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==}
2129
engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0}
2130
1879
- '@eslint/config-array@0.20.1':
1880
- resolution: {integrity: sha512-OL0RJzC/CBzli0DrrR31qzj6d6i6Mm3HByuhflhl4LOBiWxN+3i6/t/ZQQNii4tjksXi8r2CRW1wMpWA2ULUEw==}
2131
+ '@eslint/config-array@0.21.1':
2132
+ resolution: {integrity: sha512-aw1gNayWpdI/jSYVgzN5pL0cfzU02GT3NBpeT/DXbx1/1x7ZKxFPd9bwrzygx/qiwIQiJ1sw/zD8qY/kRvlGHA==}
2133
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
2134
1883
- '@eslint/config-helpers@0.2.3':
1884
- resolution: {integrity: sha512-u180qk2Um1le4yf0ruXH3PYFeEZeYC3p/4wCTKrr2U1CmGdzGi3KtY0nuPDH48UJxlKCC5RDzbcbh4X0XlqgHg==}
2135
+ '@eslint/config-helpers@0.4.2':
2136
+ resolution: {integrity: sha512-gBrxN88gOIf3R7ja5K9slwNayVcZgK6SOUORm2uBzTeIEfeVaIhOpCtTox3P6R7o2jLFwLFTLnC7kU/RGcYEgw==}
2137
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
2138
1887
- '@eslint/core@0.14.0':
1888
- resolution: {integrity: sha512-qIbV0/JZr7iSDjqAc60IqbLdsj9GDt16xQtWD+B78d/HAlvysGdZZ6rpJHGAc2T0FQx1X6thsSPdnoiGKdNtdg==}
1889
- engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
1890
-
1891
- '@eslint/core@0.15.0':
1892
- resolution: {integrity: sha512-b7ePw78tEWWkpgZCDYkbqDOP8dmM6qe+AOC6iuJqlq1R/0ahMAeH3qynpnqKFGkMltrp44ohV4ubGyvLX28tzw==}
2139
+ '@eslint/core@0.17.0':
2140
+ resolution: {integrity: sha512-yL/sLrpmtDaFEiUj1osRP4TI2MDz1AddJL+jZ7KSqvBuliN4xqYY54IfdN8qD8Toa6g1iloph1fxQNkjOxrrpQ==}
2141
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
2142
2143
'@eslint/eslintrc@3.3.1':
2144
resolution: {integrity: sha512-gtF186CXhIl1p4pJNGZw8Yc6RlshoePRvE0X91oPGb3vZ8pM3qOS9W9NGPat9LziaBV7XrJWGylNQXkGcnM3IQ==}
2145
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
2146
1899
- '@eslint/js@9.29.0':
1900
- resolution: {integrity: sha512-3PIF4cBw/y+1u2EazflInpV+lYsSG0aByVIQzAgb1m1MhHFSbqTyNqtBKHgWf/9Ykud+DhILS9EGkmekVhbKoQ==}
2147
+ '@eslint/js@9.39.1':
2148
+ resolution: {integrity: sha512-S26Stp4zCy88tH94QbBv3XCuzRQiZ9yXofEILmglYTh/Ug/a9/umqvgFtYBAo3Lp0nsI/5/qH1CCrbdK3AP1Tw==}
2149
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
2150
1903
- '@eslint/object-schema@2.1.6':
1904
- resolution: {integrity: sha512-RBMg5FRL0I0gs51M/guSAj5/e14VQ4tpZnQNWwuDT66P14I43ItmPfIZRhO9fUVIPOAQXU47atlywZ/czoqFPA==}
2151
+ '@eslint/object-schema@2.1.7':
2152
+ resolution: {integrity: sha512-VtAOaymWVfZcmZbp6E2mympDIHvyjXs/12LqWYjVw6qjrfF+VK+fyG33kChz3nnK+SU5/NeHOqrTEHS8sXO3OA==}
2153
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
2154
1907
- '@eslint/plugin-kit@0.3.2':
1908
- resolution: {integrity: sha512-4SaFZCNfJqvk/kenHpI8xvN42DMaoycy4PzKc5otHxRswww1kAt82OlBuwRVLofCACCTZEcla2Ydxv8scMXaTg==}
2155
+ '@eslint/plugin-kit@0.4.1':
2156
+ resolution: {integrity: sha512-43/qtrDUokr7LJqoF2c3+RInu/t4zfrpYdoSDfYyhg52rwLV6TnOvdG4fXm7IkSB3wErkcmJS9iEhjVtOSEjjA==}
2157
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
2158
2159
'@finom/zod-to-json-schema@3.24.11':
2160
resolution: {integrity: sha512-fL656yBPiWebtfGItvtXLWrFNGlF1NcDFS0WdMQXMs9LluVg0CfT5E2oXYp0pidl0vVG53XkW55ysijNkU5/hA==}
2161
+ deprecated: 'Use https://www.npmjs.com/package/zod-v3-to-json-schema instead. See issue comment for details: https://github.com/StefanTerdell/zod-to-json-schema/issues/178#issuecomment-3533122539'
2162
peerDependencies:
2163
zod: ^4.0.14
2164
1916
- '@gerrit0/mini-shiki@3.6.0':
1917
- resolution: {integrity: sha512-KaeJvPNofTEZR9EzVNp/GQzbQqkGfjiu6k3CXKvhVTX+8OoAKSX/k7qxLKOX3B0yh2XqVAc93rsOu48CGt2Qug==}
1918
-
1919
- '@google/genai@1.19.0':
1920
- resolution: {integrity: sha512-mIMV3M/KfzzFA//0fziK472wKBJ1TdJLhozIUJKTPLyTDN1NotU+hyoHW/N0cfrcEWUK20YA0GxCeHC4z0SbMA==}
1921
- engines: {node: '>=20.0.0'}
1922
- peerDependencies:
1923
- '@modelcontextprotocol/sdk': ^1.11.4
1924
- peerDependenciesMeta:
1925
- '@modelcontextprotocol/sdk':
1926
- optional: true
2165
+ '@gerrit0/mini-shiki@3.15.0':
2166
+ resolution: {integrity: sha512-L5IHdZIDa4bG4yJaOzfasOH/o22MCesY0mx+n6VATbaiCtMeR59pdRqYk4bEiQkIHfxsHPNgdi7VJlZb2FhdMQ==}
2167
1928
- '@google/genai@1.5.1':
1929
- resolution: {integrity: sha512-9SKpNo5iqvB622lN3tSCbeuiLGTcStRd+3muOrI9pZMpzfLDc/xC7dWIJd5kK+4AZuY28nsvQmCZe0fPj3JUew==}
2168
+ '@google/genai@1.30.0':
2169
+ resolution: {integrity: sha512-3MRcgczBFbUat1wIlZoLJ0vCCfXgm7Qxjh59cZi2X08RgWLtm9hKOspzp7TOg1TV2e26/MLxR2GR5yD5GmBV2w==}
2170
engines: {node: '>=20.0.0'}
2171
peerDependencies:
1932
- '@modelcontextprotocol/sdk': ^1.11.0
2172
+ '@modelcontextprotocol/sdk': ^1.20.1
2173
peerDependenciesMeta:
2174
'@modelcontextprotocol/sdk':
2175
optional: true
2176
1937
- '@grpc/grpc-js@1.13.4':
1938
- resolution: {integrity: sha512-GsFaMXCkMqkKIvwCQjCrwH+GHbPKBjhwo/8ZuUkWHqbI73Kky9I+pQltrlT0+MWpedCoosda53lgjYfyEPgxBg==}
2177
+ '@grpc/grpc-js@1.14.1':
2178
+ resolution: {integrity: sha512-sPxgEWtPUR3EnRJCEtbGZG2iX8LQDUls2wUS3o27jg07KqJFMq6YDeWvMo1wfpmy3rqRdS0rivpLwhqQtEyCuQ==}
2179
engines: {node: '>=12.10.0'}
2180
1941
- '@grpc/proto-loader@0.7.15':
1942
- resolution: {integrity: sha512-tMXdRCfYVixjuFK+Hk0Q1s38gV9zDiDJfWL3h1rv4Qc39oILCu1TRTDt7+fGUI8K4G1Fj125Hx/ru3azECWTyQ==}
2181
+ '@grpc/proto-loader@0.8.0':
2182
+ resolution: {integrity: sha512-rc1hOQtjIWGxcxpb9aHAfLpIctjEnsDehj0DAiVfBlmT84uvR0uUtN2hEi/ecvWVjXUGf5qPF4qEgiLOx1YIMQ==}
2183
engines: {node: '>=6'}
2184
hasBin: true
2185
@@ -1953,18 +2193,14 @@ packages:
2193
resolution: {integrity: sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==}
2194
engines: {node: '>=18.18.0'}
2195
1956
- '@humanfs/node@0.16.6':
1957
- resolution: {integrity: sha512-YuI2ZHQL78Q5HbhDiBA1X4LmYdXCKCMQIfw0pw7piHJwyREFebJUvrQN4cMssyES6x+vfUbx1CIpaQUKYdQZOw==}
2196
+ '@humanfs/node@0.16.7':
2197
+ resolution: {integrity: sha512-/zUx+yOsIrG4Y43Eh2peDeKCxlRt/gET6aHfaKpuq267qXdYDFViVHfMaLyygZOnl0kGWxFIgsBy8QFuTLUXEQ==}
2198
engines: {node: '>=18.18.0'}
2199
2200
'@humanwhocodes/module-importer@1.0.1':
2201
resolution: {integrity: sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==}
2202
engines: {node: '>=12.22'}
2203
1964
- '@humanwhocodes/retry@0.3.1':
1965
- resolution: {integrity: sha512-JBxkERygn7Bv/GbN5Rv8Ul6LVknS+5Bp6RgDC/O8gEBU/yeH5Ui5C/OlWrTb6qct7LjjfT6Re2NxB0ln0yYybA==}
1966
- engines: {node: '>=18.18'}
1967
-
2204
'@humanwhocodes/retry@0.4.3':
2205
resolution: {integrity: sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==}
2206
engines: {node: '>=18.18'}
@@ -2259,8 +2495,17 @@ packages:
2495
resolution: {integrity: sha512-qnJsUcOGCSG1e5DTOErmv2BPQqrtT6uzqn1vI/aYGiPKq+FgslGZmtdnXbhuI7IlT7OByDoEEqdnhUnVR2hhLw==}
2496
engines: {node: '>=18'}
2497
2262
- '@inquirer/figures@1.0.12':
2263
- resolution: {integrity: sha512-MJttijd8rMFcKJC8NYmprWr6hD3r9Gd9qUC0XwPNwoEPWSMVJwA2MlXxF+nhZZNMY+HXsWa+o7KY2emWYIn0jQ==}
2498
+ '@inquirer/external-editor@1.0.3':
2499
+ resolution: {integrity: sha512-RWbSrDiYmO4LbejWY7ttpxczuwQyZLBUyygsA9Nsv95hpzUWwnNTVQmAq3xuh7vNwCp07UTmE5i11XAEExx4RA==}
2500
+ engines: {node: '>=18'}
2501
+ peerDependencies:
2502
+ '@types/node': '>=18'
2503
+ peerDependenciesMeta:
2504
+ '@types/node':
2505
+ optional: true
2506
+
2507
+ '@inquirer/figures@1.0.15':
2508
+ resolution: {integrity: sha512-t2IEY+unGHOzAaVM5Xx6DEWKeXlDDcNPeDyUpsRc6CUhBfU3VQOEl+Vssh7VNp1dR8MdUJBWhuObjXCsVpjN5g==}
2509
engines: {node: '>=18'}
2510
2511
'@inquirer/input@2.3.0':
@@ -2315,23 +2560,18 @@ packages:
2560
resolution: {integrity: sha512-RQgQ4uQ+pLbqXfOmieB91ejmLwvSgv9nLx6sT6sD83s7umBypgg+OIBOBbEUiJXrfpnp9j0mRhYYdzp9uqq3lA==}
2561
engines: {node: '>=12'}
2562
2318
- '@jridgewell/gen-mapping@0.3.8':
2319
- resolution: {integrity: sha512-imAbBGkb+ebQyxKgzv5Hu2nmROxoDOXHh80evxdoXNOrvAnVx7zimzc1Oo5h9RlfV4vPXaE2iM5pOFbvOCClWA==}
2320
- engines: {node: '>=6.0.0'}
2563
+ '@jridgewell/gen-mapping@0.3.13':
2564
+ resolution: {integrity: sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==}
2565
2566
'@jridgewell/resolve-uri@3.1.2':
2567
resolution: {integrity: sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==}
2568
engines: {node: '>=6.0.0'}
2569
2326
- '@jridgewell/set-array@1.2.1':
2327
- resolution: {integrity: sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==}
2328
- engines: {node: '>=6.0.0'}
2329
-
2330
- '@jridgewell/sourcemap-codec@1.5.0':
2331
- resolution: {integrity: sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==}
2570
+ '@jridgewell/sourcemap-codec@1.5.5':
2571
+ resolution: {integrity: sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==}
2572
2333
- '@jridgewell/trace-mapping@0.3.25':
2334
- resolution: {integrity: sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==}
2573
+ '@jridgewell/trace-mapping@0.3.31':
2574
+ resolution: {integrity: sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==}
2575
2576
'@jridgewell/trace-mapping@0.3.9':
2577
resolution: {integrity: sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==}
@@ -2342,8 +2582,14 @@ packages:
2582
'@jsdevtools/ono@7.1.3':
2583
resolution: {integrity: sha512-4JQNk+3mVzK3xh2rqd6RB4J46qUR19azEHBneZyTZM+c456qOrbbM/5xcR8huNCCcbVt7+UmizG6GuUvPvKUYg==}
2584
2345
- '@langchain/core@0.3.63':
2346
- resolution: {integrity: sha512-CQfyu4WgwizUhSc1YsDDzzHga6WVhLqeuAyCD4VpGAPa3k3QI+H0b3ECFr/WjJMw0amMtHtfgPWMa1tS7P7qVg==}
2585
+ '@langchain/anthropic@1.1.3':
2586
+ resolution: {integrity: sha512-vJN7Rfl+8lDO+aVFfccDUFxIMwGtf8xHSWvqmeytOB5UBzGxNMRW2Zdu6Gv8vWrKlS6Ca7/8oB1suw1SN0FKGA==}
2587
+ engines: {node: '>=20'}
2588
+ peerDependencies:
2589
+ '@langchain/core': ^1.0.0
2590
+
2591
+ '@langchain/core@0.3.79':
2592
+ resolution: {integrity: sha512-ZLAs5YMM5N2UXN3kExMglltJrKKoW7hs3KMZFlXUnD7a5DFKBYxPFMeXA4rT+uvTxuJRZPCYX0JKI5BhyAWx4A==}
2593
engines: {node: '>=18'}
2594
2595
'@langchain/langgraph-checkpoint@0.0.18':
@@ -2352,21 +2598,30 @@ packages:
2598
peerDependencies:
2599
'@langchain/core': '>=0.2.31 <0.4.0'
2600
2355
- '@langchain/langgraph-sdk@0.0.84':
2356
- resolution: {integrity: sha512-l0PFQyJ+6m6aclORNPPWlcRwgKcXVXsPaJCbCUYFABR3yf4cOpsjhUNR0cJ7+2cS400oieHjGRdGGyO/hbSjhg==}
2601
+ '@langchain/langgraph-checkpoint@1.0.0':
2602
+ resolution: {integrity: sha512-xrclBGvNCXDmi0Nz28t3vjpxSH6UYx6w5XAXSiiB1WEdc2xD2iY/a913I3x3a31XpInUW/GGfXXfePfaghV54A==}
2603
+ engines: {node: '>=18'}
2604
+ peerDependencies:
2605
+ '@langchain/core': ^1.0.1
2606
+
2607
+ '@langchain/langgraph-sdk@0.0.112':
2608
+ resolution: {integrity: sha512-/9W5HSWCqYgwma6EoOspL4BGYxGxeJP6lIquPSF4FA0JlKopaUv58ucZC3vAgdJyCgg6sorCIV/qg7SGpEcCLw==}
2609
peerDependencies:
2610
'@langchain/core': '>=0.2.31 <0.4.0'
2611
react: ^18 || ^19
2612
+ react-dom: ^18 || ^19
2613
peerDependenciesMeta:
2614
'@langchain/core':
2615
optional: true
2616
react:
2617
optional: true
2618
+ react-dom:
2619
+ optional: true
2620
2366
- '@langchain/langgraph-sdk@0.0.95':
2367
- resolution: {integrity: sha512-nfchDZUTJMTS4AtH5NyEhoGLUyhVQqBSm8liK0ApHc/PQhSlW7qumfsF85E+utnqWKWgdc9osSKl5jDff4j/HA==}
2621
+ '@langchain/langgraph-sdk@1.0.2':
2622
+ resolution: {integrity: sha512-r3noE2KouUdfRCmHxZcS06Io8I3jplEXA+ORpYECa89VAdHWaknWRJMIBBwVJkQQJ9fvNBmOmyfTcbRkeTTakw==}
2623
peerDependencies:
2369
- '@langchain/core': '>=0.2.31 <0.4.0'
2624
+ '@langchain/core': ^1.0.1
2625
react: ^18 || ^19
2626
react-dom: ^18 || ^19
2627
peerDependenciesMeta:
@@ -2387,8 +2642,8 @@ packages:
2642
zod-to-json-schema:
2643
optional: true
2644
2390
- '@langchain/langgraph@0.3.8':
2391
- resolution: {integrity: sha512-JOtYNMa7BixzXrAtV76x1lS2+Blt4WLcbFUWwtiEqTMzwNg00fSvUQ6FaPeootL66iYamg67AVq12PerqMrelw==}
2645
+ '@langchain/langgraph@0.3.12':
2646
+ resolution: {integrity: sha512-4jKvfmxxgQyKnCvXdFbcKt6MdfaJoQ2WWqBR16o2E6D2RxqHvnLMMClZh4FSd6WYw39z5LGWvzRapFbRMqxu1A==}
2647
engines: {node: '>=18'}
2648
peerDependencies:
2649
'@langchain/core': '>=0.3.58 < 0.4.0'
@@ -2397,11 +2652,23 @@ packages:
2652
zod-to-json-schema:
2653
optional: true
2654
2400
- '@langchain/openai@0.5.13':
2401
- resolution: {integrity: sha512-t5UsO7XYE+DBQlXQ21QK74Y+LH4It20wnENrmueNvxIWTn0nHDIGVmO6wo4rJxbmOOPRQ4l/oAxGRnYU8B8v6w==}
2655
+ '@langchain/langgraph@1.0.2':
2656
+ resolution: {integrity: sha512-syxzzWTnmpCL+RhUEvalUeOXFoZy/KkzHa2Da2gKf18zsf9Dkbh3rfnRDrTyUGS1XSTejq07s4rg1qntdEDs2A==}
2657
engines: {node: '>=18'}
2658
peerDependencies:
2404
- '@langchain/core': '>=0.3.58 <0.4.0'
2659
+ '@langchain/core': ^1.0.1
2660
+ zod: ^3.25.32 || ^4.1.0
2661
+ zod-to-json-schema: ^3.x
2662
+ peerDependenciesMeta:
2663
+ zod-to-json-schema:
2664
+ optional: true
2665
+
2666
+ '@langchain/mcp-adapters@1.0.1':
2667
+ resolution: {integrity: sha512-sBEtVzG4TifY4itWXXoR0n+rxcFx0rnCfmHnHa5bKJJPByG3kuBNWaq3xd+lNmzlJ2RGujmWU5skKWOrRXfx2g==}
2668
+ engines: {node: '>=20.10.0'}
2669
+ peerDependencies:
2670
+ '@langchain/core': ^1.0.0
2671
+ '@langchain/langgraph': ^1.0.0
2672
2673
'@langchain/openai@0.5.18':
2674
resolution: {integrity: sha512-CX1kOTbT5xVFNdtLjnM0GIYNf+P7oMSu+dGCFxxWRa3dZwWiuyuBXCm+dToUGxDLnsHuV1bKBtIzrY1mLq/A1Q==}
@@ -2409,17 +2676,17 @@ packages:
2676
peerDependencies:
2677
'@langchain/core': '>=0.3.58 <0.4.0'
2678
2412
- '@langchain/openai@0.6.1':
2413
- resolution: {integrity: sha512-jm8MzMEjAKPReYma4Lewb9vGnocKbhoClqPuRTxtKPDgqQ5yJWSisNy4iZO/a1d6ag/7MnxwKMjVsJdy1cBsxw==}
2679
+ '@langchain/openai@0.6.16':
2680
+ resolution: {integrity: sha512-v9INBOjE0w6ZrUE7kP9UkRyNsV7daH7aPeSOsPEJ35044UI3udPHwNduQ8VmaOUsD26OvSdg1b1GDhrqWLMaRw==}
2681
engines: {node: '>=18'}
2682
peerDependencies:
2416
- '@langchain/core': '>=0.3.58 <0.4.0'
2683
+ '@langchain/core': '>=0.3.68 <0.4.0'
2684
2418
- '@langchain/textsplitters@0.1.0':
2419
- resolution: {integrity: sha512-djI4uw9rlkAb5iMhtLED+xJebDdAG935AdP4eRTB02R7OB/act55Bj9wsskhZsvuyQRpO4O1wQOp85s6T6GWmw==}
2420
- engines: {node: '>=18'}
2685
+ '@langchain/openai@1.1.3':
2686
+ resolution: {integrity: sha512-p+xR+4HRms5Ozjf5miC6U2AYRyNVSTdO7AMBkMYs1Tp6DWHBd+mQ72H8Ogd2dKrPuS5UDJ5dbpI1fS+OrTbgQQ==}
2687
+ engines: {node: '>=20'}
2688
peerDependencies:
2422
- '@langchain/core': '>=0.2.21 <0.4.0'
2689
+ '@langchain/core': ^1.0.0
2690
2691
'@llamaindex/core@0.6.22':
2692
resolution: {integrity: sha512-/BXyemkvpxMaUhOkbwJ2PTvzKjSWkL8+6QLpz/n+pk8xBwMMe1GVBgli/J57gCyi8GbrlBafBj6GaPOgWub2Eg==}
@@ -2443,8 +2710,8 @@ packages:
2710
tree-sitter: ^0.22.0
2711
web-tree-sitter: ^0.24.3
2712
2446
- '@llamaindex/openai@0.4.20':
2447
- resolution: {integrity: sha512-b2wTBkSELAszdJ6Eh2KrLHZvcDQ5UUotaThyNq76b22rYEBs2YOgVbbLUBXXWOLxkEHntVRt99ZcVtsOYlLg+w==}
2713
+ '@llamaindex/openai@0.4.21':
2714
+ resolution: {integrity: sha512-J+J5zizh1gIskOTLcVCtdHGWrc4TI8XJkh99sp++bjPNX2+wNfPeEb5mFQ7DFz26AXZGR6SSsMEVXWQrVuDqvg==}
2715
peerDependencies:
2716
'@llamaindex/core': 0.6.22
2717
'@llamaindex/env': 0.1.30
@@ -2505,18 +2772,24 @@ packages:
2772
'@mastra/schema-compat@0.11.4':
2773
resolution: {integrity: sha512-oh3+enP3oYftZlmJAKQQj5VXR86KgTMwfMnwALZyLk04dPSWfVD2wGytoDg5Qbi3rX9qHj6g0rMNa0CUjR6aTg==}
2774
peerDependencies:
2508
- ai: '>=5.0.52'
2775
+ ai: '>=5.0.102'
2776
zod: ^3.25.0 || ^4.0.0
2777
2778
'@mastra/schema-compat@0.11.7':
2779
resolution: {integrity: sha512-F/Q2myO7ar5+p2zRb1anGvLrUCKmdrJraXq9TWsWRp7frrcGUwlewf6Qo9+lp6NSumH0XlC/yvcjzzDwVzaMEw==}
2780
peerDependencies:
2514
- ai: '>=5.0.52'
2781
+ ai: '>=5.0.102'
2782
zod: ^3.25.0 || ^4.0.0
2783
2517
- '@modelcontextprotocol/sdk@1.18.0':
2518
- resolution: {integrity: sha512-JvKyB6YwS3quM+88JPR0axeRgvdDu3Pv6mdZUy+w4qVkCzGgumb9bXG/TmtDRQv+671yaofVfXSQmFLlWU5qPQ==}
2784
+ '@modelcontextprotocol/sdk@1.23.0':
2785
+ resolution: {integrity: sha512-MCGd4K9aZKvuSqdoBkdMvZNcYXCkZRYVs/Gh92mdV5IHbctX9H9uIvd4X93+9g8tBbXv08sxc/QHXTzf8y65bA==}
2786
engines: {node: '>=18'}
2787
+ peerDependencies:
2788
+ '@cfworker/json-schema': ^4.1.1
2789
+ zod: ^3.25 || ^4.0
2790
+ peerDependenciesMeta:
2791
+ '@cfworker/json-schema':
2792
+ optional: true
2793
2794
'@msgpackr-extract/msgpackr-extract-darwin-arm64@3.0.3':
2795
resolution: {integrity: sha512-QZHtlVgbAdy2zAqNA9Gu1UpIuI8Xvsd1v8ic6B2pZmeFnFcMWiPLfWXh7TVw4eGEZ/C9TH281KwhVoeQUKbyjw==}
@@ -2548,57 +2821,57 @@ packages:
2821
cpu: [x64]
2822
os: [win32]
2823
2551
- '@next/env@16.0.3':
2552
- resolution: {integrity: sha512-IqgtY5Vwsm14mm/nmQaRMmywCU+yyMIYfk3/MHZ2ZTJvwVbBn3usZnjMi1GacrMVzVcAxJShTCpZlPs26EdEjQ==}
2824
+ '@next/env@16.0.4':
2825
+ resolution: {integrity: sha512-FDPaVoB1kYhtOz6Le0Jn2QV7RZJ3Ngxzqri7YX4yu3Ini+l5lciR7nA9eNDpKTmDm7LWZtxSju+/CQnwRBn2pA==}
2826
2554
- '@next/swc-darwin-arm64@16.0.3':
2555
- resolution: {integrity: sha512-MOnbd92+OByu0p6QBAzq1ahVWzF6nyfiH07dQDez4/Nku7G249NjxDVyEfVhz8WkLiOEU+KFVnqtgcsfP2nLXg==}
2827
+ '@next/swc-darwin-arm64@16.0.4':
2828
+ resolution: {integrity: sha512-TN0cfB4HT2YyEio9fLwZY33J+s+vMIgC84gQCOLZOYusW7ptgjIn8RwxQt0BUpoo9XRRVVWEHLld0uhyux1ZcA==}
2829
engines: {node: '>= 10'}
2830
cpu: [arm64]
2831
os: [darwin]
2832
2560
- '@next/swc-darwin-x64@16.0.3':
2561
- resolution: {integrity: sha512-i70C4O1VmbTivYdRlk+5lj9xRc2BlK3oUikt3yJeHT1unL4LsNtN7UiOhVanFdc7vDAgZn1tV/9mQwMkWOJvHg==}
2833
+ '@next/swc-darwin-x64@16.0.4':
2834
+ resolution: {integrity: sha512-XsfI23jvimCaA7e+9f3yMCoVjrny2D11G6H8NCcgv+Ina/TQhKPXB9P4q0WjTuEoyZmcNvPdrZ+XtTh3uPfH7Q==}
2835
engines: {node: '>= 10'}
2836
cpu: [x64]
2837
os: [darwin]
2838
2566
- '@next/swc-linux-arm64-gnu@16.0.3':
2567
- resolution: {integrity: sha512-O88gCZ95sScwD00mn/AtalyCoykhhlokxH/wi1huFK+rmiP5LAYVs/i2ruk7xST6SuXN4NI5y4Xf5vepb2jf6A==}
2839
+ '@next/swc-linux-arm64-gnu@16.0.4':
2840
+ resolution: {integrity: sha512-uo8X7qHDy4YdJUhaoJDMAbL8VT5Ed3lijip2DdBHIB4tfKAvB1XBih6INH2L4qIi4jA0Qq1J0ErxcOocBmUSwg==}
2841
engines: {node: '>= 10'}
2842
cpu: [arm64]
2843
os: [linux]
2844
libc: [glibc]
2845
2573
- '@next/swc-linux-arm64-musl@16.0.3':
2574
- resolution: {integrity: sha512-CEErFt78S/zYXzFIiv18iQCbRbLgBluS8z1TNDQoyPi8/Jr5qhR3e8XHAIxVxPBjDbEMITprqELVc5KTfFj0gg==}
2846
+ '@next/swc-linux-arm64-musl@16.0.4':
2847
+ resolution: {integrity: sha512-pvR/AjNIAxsIz0PCNcZYpH+WmNIKNLcL4XYEfo+ArDi7GsxKWFO5BvVBLXbhti8Coyv3DE983NsitzUsGH5yTw==}
2848
engines: {node: '>= 10'}
2849
cpu: [arm64]
2850
os: [linux]
2851
libc: [musl]
2852
2580
- '@next/swc-linux-x64-gnu@16.0.3':
2581
- resolution: {integrity: sha512-Tc3i+nwt6mQ+Dwzcri/WNDj56iWdycGVh5YwwklleClzPzz7UpfaMw1ci7bLl6GRYMXhWDBfe707EXNjKtiswQ==}
2853
+ '@next/swc-linux-x64-gnu@16.0.4':
2854
+ resolution: {integrity: sha512-2hebpsd5MRRtgqmT7Jj/Wze+wG+ZEXUK2KFFL4IlZ0amEEFADo4ywsifJNeFTQGsamH3/aXkKWymDvgEi+pc2Q==}
2855
engines: {node: '>= 10'}
2856
cpu: [x64]
2857
os: [linux]
2858
libc: [glibc]
2859
2587
- '@next/swc-linux-x64-musl@16.0.3':
2588
- resolution: {integrity: sha512-zTh03Z/5PBBPdTurgEtr6nY0vI9KR9Ifp/jZCcHlODzwVOEKcKRBtQIGrkc7izFgOMuXDEJBmirwpGqdM/ZixA==}
2860
+ '@next/swc-linux-x64-musl@16.0.4':
2861
+ resolution: {integrity: sha512-pzRXf0LZZ8zMljH78j8SeLncg9ifIOp3ugAFka+Bq8qMzw6hPXOc7wydY7ardIELlczzzreahyTpwsim/WL3Sg==}
2862
engines: {node: '>= 10'}
2863
cpu: [x64]
2864
os: [linux]
2865
libc: [musl]
2866
2594
- '@next/swc-win32-arm64-msvc@16.0.3':
2595
- resolution: {integrity: sha512-Jc1EHxtZovcJcg5zU43X3tuqzl/sS+CmLgjRP28ZT4vk869Ncm2NoF8qSTaL99gh6uOzgM99Shct06pSO6kA6g==}
2867
+ '@next/swc-win32-arm64-msvc@16.0.4':
2868
+ resolution: {integrity: sha512-7G/yJVzum52B5HOqqbQYX9bJHkN+c4YyZ2AIvEssMHQlbAWOn3iIJjD4sM6ihWsBxuljiTKJovEYlD1K8lCUHw==}
2869
engines: {node: '>= 10'}
2870
cpu: [arm64]
2871
os: [win32]
2872
2600
- '@next/swc-win32-x64-msvc@16.0.3':
2601
- resolution: {integrity: sha512-N7EJ6zbxgIYpI/sWNzpVKRMbfEGgsWuOIvzkML7wxAAZhPk1Msxuo/JDu1PKjWGrAoOLaZcIX5s+/pF5LIbBBg==}
2873
+ '@next/swc-win32-x64-msvc@16.0.4':
2874
+ resolution: {integrity: sha512-0Vy4g8SSeVkuU89g2OFHqGKM4rxsQtihGfenjx2tRckPrge5+gtFnRWGAAwvGXr0ty3twQvcnYjEyOrLHJ4JWA==}
2875
engines: {node: '>= 10'}
2876
cpu: [x64]
2877
os: [win32]
@@ -2615,37 +2888,32 @@ packages:
2888
resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==}
2889
engines: {node: '>= 8'}
2890
2618
- '@openai/agents-core@0.1.3':
2619
- resolution: {integrity: sha512-L95jVQvZqxYxnZr4aONJXSMgsRAHJ4xVOAmMUj8/dstzXoyo4tVLkOprsdeOYMGEBo/8/4woPcfuRysNMvUwRQ==}
2891
+ '@openai/agents-core@0.1.11':
2892
+ resolution: {integrity: sha512-ye8VIAO2wPIg1zClldIj8We/1R55VmdgnMyn0g4YGbp6RD5Wpv9yfH5kPNWxmHvw8ji+XehyggGoklY4FGQoBQ==}
2893
peerDependencies:
2894
zod: ^3.25.40
2895
peerDependenciesMeta:
2896
zod:
2897
optional: true
2898
2626
- '@openai/agents-core@0.1.4':
2627
- resolution: {integrity: sha512-7GWq5qRaYVJ+NXx92MXLOpkUthVsW2SIsQZHH0U2uKZJlvwbYWKY/lJGSJ3Kg9CkATEhn+p5U0CugNk6k/eXXw==}
2899
+ '@openai/agents-core@0.2.1':
2900
+ resolution: {integrity: sha512-1CYv9UPbCrT2tEj/APA1PseaChJ4Tl1Kqn0y9/ApYLrt+AKiYTJhgOxtv9+Wu9hO9+8ePu3g9Ay1IoEqlBxl+A==}
2901
peerDependencies:
2629
- zod: ^3.25.40
2902
+ zod: ^3.25.40 || ^4.0
2903
peerDependenciesMeta:
2904
zod:
2905
optional: true
2906
2634
- '@openai/agents-core@0.2.1':
2635
- resolution: {integrity: sha512-1CYv9UPbCrT2tEj/APA1PseaChJ4Tl1Kqn0y9/ApYLrt+AKiYTJhgOxtv9+Wu9hO9+8ePu3g9Ay1IoEqlBxl+A==}
2907
+ '@openai/agents-core@0.3.3':
2908
+ resolution: {integrity: sha512-MlF70Vcjmi7rMlU00bBjes7DxM3IzcFlmpN0/f8fDKVuLKnqPy+dZRCpX+eNbPrJ4xg14Hmx3LgulNvzxgZx2g==}
2909
peerDependencies:
2910
zod: ^3.25.40 || ^4.0
2911
peerDependenciesMeta:
2912
zod:
2913
optional: true
2914
2642
- '@openai/agents-openai@0.1.3':
2643
- resolution: {integrity: sha512-nyC+ShxxLtDtQrcAdpfegmrmOKou0jHPrl1iTFizo2f/KqeJ0n8OvNOmiixMxYgAOA2D3KqxdkHcgdAIQlH7TQ==}
2644
- peerDependencies:
2645
- zod: ^3.25.40
2646
-
2647
- '@openai/agents-openai@0.1.4':
2648
- resolution: {integrity: sha512-kHAjnXvpP4CLcHeswuhluRLgg6DnozW7wQgc8SUg9M1vzHfez+61ZhkijffhHTgzmGICLVFHrBrtDTvRqoSAcw==}
2915
+ '@openai/agents-openai@0.1.11':
2916
+ resolution: {integrity: sha512-TYYbY7o1cNxtOIO4F1a20qkqDT1Iwr9ZEi0MO2sEaeioK8rGB/Ux54iFvsA3IblUYyK+5fD25vr4vXFasvg2Kg==}
2917
peerDependencies:
2918
zod: ^3.25.40
2919
@@ -2654,13 +2922,13 @@ packages:
2922
peerDependencies:
2923
zod: ^3.25.40 || ^4.0
2924
2657
- '@openai/agents-realtime@0.1.3':
2658
- resolution: {integrity: sha512-8uB63JuZkGew+Ccd+aZg2C4FkCRu3MpVg/+6veJzrYzjYsJx8ncUUTIYzDBs71m86+WJwlzmKv0pcGAzbMXx5g==}
2925
+ '@openai/agents-openai@0.3.3':
2926
+ resolution: {integrity: sha512-uxXXVWTEhQrZOKUUp/gTQ85176/6kR2CnEMDjSnjOacMzwybXo5IkreBrZh2BmhseTpOvQIek57UV+z344mTvw==}
2927
peerDependencies:
2660
- zod: ^3.25.40
2928
+ zod: ^3.25.40 || ^4.0
2929
2662
- '@openai/agents-realtime@0.1.4':
2663
- resolution: {integrity: sha512-d8DwwT/lCoXjWPr0/yT2/RQ35zqJa5aOf66YI6LJmBlHZp9RV7v/Jq81vuPQBK+CRK2LLe8UzBZHkZHTYY4m+Q==}
2930
+ '@openai/agents-realtime@0.1.11':
2931
+ resolution: {integrity: sha512-8jaNuYU1acra28i7bYrZIPubI6s2ziY2ZudqAVK2ad+giopXcrNSiJTuZ2S3z+ESnIejwMiYLfnY2Le8W0SJ7A==}
2932
peerDependencies:
2933
zod: ^3.25.40
2934
@@ -2669,18 +2937,23 @@ packages:
2937
peerDependencies:
2938
zod: ^3.25.40 || ^4.0
2939
2672
- '@openai/agents@0.1.3':
2673
- resolution: {integrity: sha512-uGB831WPmUuJjCVIKbAcFMZLokkfSu/F7XSlbMs1mfCP1yD+47ZGQbn0C0PPiOoMN05dbmaq9tbYbjVYbruhDA==}
2940
+ '@openai/agents-realtime@0.3.3':
2941
+ resolution: {integrity: sha512-Rv7qqBIuerjZtMmI4YdXcz7mQ7bymIcmGjza0WbLLzF/D9ax0b/trvFaKnfM/YE/9nKHd5N6IgwYLlH4xV/UGw==}
2942
peerDependencies:
2675
- zod: ^3.25.40
2943
+ zod: ^3.25.40 || ^4.0
2944
2677
- '@openai/agents@0.1.4':
2678
- resolution: {integrity: sha512-Zfo1I9SEKkbyBBjn8IsdXnYT+AOm7M1FuaS+oA6X+KouX4WjSR0oRTV5dmpv1F6VVyDg4hz6Ux1GvIi84gspEQ==}
2945
+ '@openai/agents@0.1.11':
2946
+ resolution: {integrity: sha512-jnaFt54iP71vYDXvpG3EGX2kVRYIU2xBdCT3uFqdXm4KqFAP9JQFNGiKKBEeE5rbXARpqAQpKH+5HfoANndpcQ==}
2947
peerDependencies:
2948
zod: ^3.25.40
2949
2682
- '@openai/agents@0.2.1':
2683
- resolution: {integrity: sha512-fUwGNZ5jC5OsM5VaFac7mYeF9bxt4EbCkfs7UuwYWsrIz2HuF0zbOLH3pk51GlcWuHmRbnbkWziTI/E+N54IMg==}
2950
+ '@openai/agents@0.2.1':
2951
+ resolution: {integrity: sha512-fUwGNZ5jC5OsM5VaFac7mYeF9bxt4EbCkfs7UuwYWsrIz2HuF0zbOLH3pk51GlcWuHmRbnbkWziTI/E+N54IMg==}
2952
+ peerDependencies:
2953
+ zod: ^3.25.40 || ^4.0
2954
+
2955
+ '@openai/agents@0.3.3':
2956
+ resolution: {integrity: sha512-jLqvY/l7w0QbUkyUUHaKl3VPDwBewjWRpiwV8hnYAFfGSwKR2K0WA9RjcC56qmhuQ7pB5NAkDVM82v3urOnMRg==}
2957
peerDependencies:
2958
zod: ^3.25.40 || ^4.0
2959
@@ -2688,7 +2961,7 @@ packages:
2961
resolution: {integrity: sha512-stuIwq7Yb7DNmk3GuCtz+oS3nZOY4TXEV3V5KsknDGQN7Fpu3KRMQVWRc1J073xKdf0FC9EHOctSyzsACmp5Ag==}
2962
engines: {node: '>=18'}
2963
peerDependencies:
2691
- ai: '>=5.0.52'
2964
+ ai: '>=5.0.102'
2965
zod: ^3.24.1 || ^v4
2966
2967
'@opentelemetry/api-logs@0.203.0':
@@ -2699,8 +2972,8 @@ packages:
2972
resolution: {integrity: sha512-3giAOQvZiH5F9bMlMiv8+GSPMeqg0dbaeo58/0SlA9sxSqZhnUtxzX9/2FzyhS9sWQf5S0GJE0AKBrFqjpeYcg==}
2973
engines: {node: '>=8.0.0'}
2974
2702
- '@opentelemetry/auto-instrumentations-node@0.62.1':
2703
- resolution: {integrity: sha512-FmPlWS7Dg6E3kP0vv19Pyhq3sqSi8tyn8IZh2RV73UsrcEZeQ3gUTf2Ar8iPRgbsxTukQHRoMGcaCVBsFVRVPw==}
2975
+ '@opentelemetry/auto-instrumentations-node@0.62.2':
2976
+ resolution: {integrity: sha512-Ipe6X7ddrCiRsuewyTU83IvKiSFT4piqmv9z8Ovg1E7v98pdTj1pUE6sDrHV50zl7/ypd+cONBgt+EYSZu4u9Q==}
2977
engines: {node: ^18.19.0 || >=20.6.0}
2978
peerDependencies:
2979
'@opentelemetry/api': ^1.4.1
@@ -2712,12 +2985,24 @@ packages:
2985
peerDependencies:
2986
'@opentelemetry/api': '>=1.0.0 <1.10.0'
2987
2988
+ '@opentelemetry/context-async-hooks@2.2.0':
2989
+ resolution: {integrity: sha512-qRkLWiUEZNAmYapZ7KGS5C4OmBLcP/H2foXeOEaowYCR0wi89fHejrfYfbuLVCMLp/dWZXKvQusdbUEZjERfwQ==}
2990
+ engines: {node: ^18.19.0 || >=20.6.0}
2991
+ peerDependencies:
2992
+ '@opentelemetry/api': '>=1.0.0 <1.10.0'
2993
+
2994
'@opentelemetry/core@2.0.1':
2995
resolution: {integrity: sha512-MaZk9SJIDgo1peKevlbhP6+IwIiNPNmswNL4AF0WaQJLbHXjr9SrZMgS12+iqr9ToV4ZVosCcc0f8Rg67LXjxw==}
2996
engines: {node: ^18.19.0 || >=20.6.0}
2997
peerDependencies:
2998
'@opentelemetry/api': '>=1.0.0 <1.10.0'
2999
3000
+ '@opentelemetry/core@2.2.0':
3001
+ resolution: {integrity: sha512-FuabnnUm8LflnieVxs6eP7Z383hgQU4W1e3KJS6aOG3RxWxcHyBxH8fDMHNgu/gFx/M2jvTOW/4/PHhLz6bjWw==}
3002
+ engines: {node: ^18.19.0 || >=20.6.0}
3003
+ peerDependencies:
3004
+ '@opentelemetry/api': '>=1.0.0 <1.10.0'
3005
+
3006
'@opentelemetry/exporter-logs-otlp-grpc@0.203.0':
3007
resolution: {integrity: sha512-g/2Y2noc/l96zmM+g0LdeuyYKINyBwN6FJySoU15LHPLcMN/1a0wNk2SegwKcxrRdE7Xsm7fkIR5n6XFe3QpPw==}
3008
engines: {node: ^18.19.0 || >=20.6.0}
@@ -2790,14 +3075,14 @@ packages:
3075
peerDependencies:
3076
'@opentelemetry/api': ^1.3.0
3077
2793
- '@opentelemetry/instrumentation-aws-lambda@0.54.0':
2794
- resolution: {integrity: sha512-uiYI+kcMUJ/H9cxAwB8c9CaG8behLRgcYSOEA8M/tMQ54Y1ZmzAuEE3QKOi21/s30x5Q+by9g7BwiVfDtqzeMA==}
3078
+ '@opentelemetry/instrumentation-aws-lambda@0.54.1':
3079
+ resolution: {integrity: sha512-qm8pGSAM1mXk7unbrGktWWGJc6IFI58ZsaHJ+i420Fp5VO3Vf7GglIgaXTS8CKBrVB4LHFj3NvzJg31PtsAQcA==}
3080
engines: {node: ^18.19.0 || >=20.6.0}
3081
peerDependencies:
3082
'@opentelemetry/api': ^1.3.0
3083
2799
- '@opentelemetry/instrumentation-aws-sdk@0.57.0':
2800
- resolution: {integrity: sha512-RfbyjaeZzX3mPhuaRHlSAQyfX3skfeWOl30jrqSXtE9k0DPdnIqpHhdYS0C/DEDuZbwTmruVJ4cUwMBw5Z6FAg==}
3084
+ '@opentelemetry/instrumentation-aws-sdk@0.58.0':
3085
+ resolution: {integrity: sha512-9vFH7gU686dsAeLMCkqUj9y0MQZ1xrTtStSpNV2UaGWtDnRjJrAdJLu9Y545oKEaDTeVaob4UflyZvvpZnw3Xw==}
3086
engines: {node: ^18.19.0 || >=20.6.0}
3087
peerDependencies:
3088
'@opentelemetry/api': ^1.3.0
@@ -2820,8 +3105,8 @@ packages:
3105
peerDependencies:
3106
'@opentelemetry/api': ^1.3.0
3107
2823
- '@opentelemetry/instrumentation-cucumber@0.18.1':
2824
- resolution: {integrity: sha512-gTfT7AuA0UH0TvqWOXnyr2KCv7mvZsOUmqCrtnU/RDcZ9J3nIX4OBfl7VVXE0fJlLqP7KIDggQ8O9g7rmaVLhA==}
3108
+ '@opentelemetry/instrumentation-cucumber@0.19.0':
3109
+ resolution: {integrity: sha512-99ms8kQWRuPt5lkDqbJJzD+7Tq5TMUlBZki4SA2h6CgK4ncX+tyep9XFY1e+XTBLJIWmuFMGbWqBLJ4fSKIQNQ==}
3110
engines: {node: ^18.19.0 || >=20.6.0}
3111
peerDependencies:
3112
'@opentelemetry/api': ^1.0.0
@@ -2964,20 +3249,20 @@ packages:
3249
peerDependencies:
3250
'@opentelemetry/api': ^1.3.0
3251
2967
- '@opentelemetry/instrumentation-pg@0.56.0':
2968
- resolution: {integrity: sha512-A/J4SlGX8Y0Wwp7Y66fsNCFT/1h9lmBzqwTnfWW/bULtcKFqkQfqhs3G8+4cRxX02UI2z7T1aW5bsyc6QSYc1Q==}
3252
+ '@opentelemetry/instrumentation-pg@0.56.1':
3253
+ resolution: {integrity: sha512-0/PiHDPVaLdcXNw6Gqb3JBdMxComMEwh444X8glwiynJKJHRTR49+l2cqJfoOVzB8Sl1XRl3Yaqw6aDi3s8e9w==}
3254
engines: {node: ^18.19.0 || >=20.6.0}
3255
peerDependencies:
3256
'@opentelemetry/api': ^1.3.0
3257
2973
- '@opentelemetry/instrumentation-pino@0.50.0':
2974
- resolution: {integrity: sha512-Pi0cWGp4f2gresq2xqef4IsuunLdebJ9n9tZxytDz2ci4euIfW36ILpszQmRNhwCVDCZLmUgGDKZGj4PXyPd0w==}
3258
+ '@opentelemetry/instrumentation-pino@0.50.1':
3259
+ resolution: {integrity: sha512-pBbvuWiHA9iAumAuQ0SKYOXK7NRlbnVTf/qBV0nMdRnxBPrc/GZTbh0f7Y59gZfYsbCLhXLL1oRTEnS+PwS3CA==}
3260
engines: {node: ^18.19.0 || >=20.6.0}
3261
peerDependencies:
3262
'@opentelemetry/api': ^1.3.0
3263
2979
- '@opentelemetry/instrumentation-redis@0.51.0':
2980
- resolution: {integrity: sha512-uL/GtBA0u72YPPehwOvthAe+Wf8k3T+XQPBssJmTYl6fzuZjNq8zTfxVFhl9nRFjFVEe+CtiYNT0Q3AyqW1Z0A==}
3264
+ '@opentelemetry/instrumentation-redis@0.52.0':
3265
+ resolution: {integrity: sha512-R8Y7cCZlJ2Vl31S2i7bl5SqyC/aul54ski4wCFip/Tp9WGtLK1xVATi2rwy2wkc8ZCtjdEe9eEVR+QFG6gGZxg==}
3266
engines: {node: ^18.19.0 || >=20.6.0}
3267
peerDependencies:
3268
'@opentelemetry/api': ^1.3.0
@@ -3048,12 +3333,6 @@ packages:
3333
peerDependencies:
3334
'@opentelemetry/api': ^1.3.0
3335
3051
- '@opentelemetry/propagation-utils@0.31.3':
3052
- resolution: {integrity: sha512-ZI6LKjyo+QYYZY5SO8vfoCQ9A69r1/g+pyjvtu5RSK38npINN1evEmwqbqhbg2CdcIK3a4PN6pDAJz/yC5/gAA==}
3053
- engines: {node: ^18.19.0 || >=20.6.0}
3054
- peerDependencies:
3055
- '@opentelemetry/api': ^1.0.0
3056
-
3336
'@opentelemetry/propagator-b3@2.0.1':
3337
resolution: {integrity: sha512-Hc09CaQ8Tf5AGLmf449H726uRoBNGPBL4bjr7AnnUpzWMvhdn61F78z9qb6IqB737TffBsokGAK1XykFEZ1igw==}
3338
engines: {node: ^18.19.0 || >=20.6.0}
@@ -3066,18 +3345,18 @@ packages:
3345
peerDependencies:
3346
'@opentelemetry/api': '>=1.0.0 <1.10.0'
3347
3069
- '@opentelemetry/redis-common@0.38.0':
3070
- resolution: {integrity: sha512-4Wc0AWURII2cfXVVoZ6vDqK+s5n4K5IssdrlVrvGsx6OEOKdghKtJZqXAHWFiZv4nTDLH2/2fldjIHY8clMOjQ==}
3348
+ '@opentelemetry/redis-common@0.38.2':
3349
+ resolution: {integrity: sha512-1BCcU93iwSRZvDAgwUxC/DV4T/406SkMfxGqu5ojc3AvNI+I9GhV7v0J1HljsczuuhcnFLYqD5VmwVXfCGHzxA==}
3350
engines: {node: ^18.19.0 || >=20.6.0}
3351
3073
- '@opentelemetry/resource-detector-alibaba-cloud@0.31.3':
3074
- resolution: {integrity: sha512-I556LHcLVsBXEgnbPgQISP/JezDt5OfpgOaJNR1iVJl202r+K145OSSOxnH5YOc/KvrydBD0FOE03F7x0xnVTw==}
3352
+ '@opentelemetry/resource-detector-alibaba-cloud@0.31.11':
3353
+ resolution: {integrity: sha512-R/asn6dAOWMfkLeEwqHCUz0cNbb9oiHVyd11iwlypeT/p9bR1lCX5juu5g/trOwxo62dbuFcDbBdKCJd3O2Edg==}
3354
engines: {node: ^18.19.0 || >=20.6.0}
3355
peerDependencies:
3356
'@opentelemetry/api': ^1.0.0
3357
3079
- '@opentelemetry/resource-detector-aws@2.3.0':
3080
- resolution: {integrity: sha512-PkD/lyXG3B3REq1Y6imBLckljkJYXavtqGYSryAeJYvGOf5Ds3doR+BCGjmKeF6ObAtI5MtpBeUStTDtGtBsWA==}
3358
+ '@opentelemetry/resource-detector-aws@2.8.0':
3359
+ resolution: {integrity: sha512-L8K5L3bsDKboX7sDofZyRonyK8dfS+CF7ho8YbZ6OrH+d5uyRBsrjuokPzcju1jP2ZzgtpYzhLwzi9zPXyRLlA==}
3360
engines: {node: ^18.19.0 || >=20.6.0}
3361
peerDependencies:
3362
'@opentelemetry/api': ^1.0.0
@@ -3088,8 +3367,8 @@ packages:
3367
peerDependencies:
3368
'@opentelemetry/api': ^1.0.0
3369
3091
- '@opentelemetry/resource-detector-container@0.7.3':
3092
- resolution: {integrity: sha512-SK+xUFw6DKYbQniaGmIFsFxAZsr8RpRSRWxKi5/ZJAoqqPnjcyGI/SeUx8zzPk4XLO084zyM4pRHgir0hRTaSQ==}
3370
+ '@opentelemetry/resource-detector-container@0.7.11':
3371
+ resolution: {integrity: sha512-XUxnGuANa/EdxagipWMXKYFC7KURwed9/V0+NtYjFmwWHzV9/J4IYVGTK8cWDpyUvAQf/vE4sMa3rnS025ivXQ==}
3372
engines: {node: ^18.19.0 || >=20.6.0}
3373
peerDependencies:
3374
'@opentelemetry/api': ^1.0.0
@@ -3106,6 +3385,12 @@ packages:
3385
peerDependencies:
3386
'@opentelemetry/api': '>=1.3.0 <1.10.0'
3387
3388
+ '@opentelemetry/resources@2.2.0':
3389
+ resolution: {integrity: sha512-1pNQf/JazQTMA0BiO5NINUzH0cbLbbl7mntLa4aJNmCCXSj0q03T5ZXXL0zw4G55TjdL9Tz32cznGClf+8zr5A==}
3390
+ engines: {node: ^18.19.0 || >=20.6.0}
3391
+ peerDependencies:
3392
+ '@opentelemetry/api': '>=1.3.0 <1.10.0'
3393
+
3394
'@opentelemetry/sdk-logs@0.203.0':
3395
resolution: {integrity: sha512-vM2+rPq0Vi3nYA5akQD2f3QwossDnTDLvKbea6u/A2NZ3XDkPxMfo/PNrDoXhDUD/0pPo2CdH5ce/thn9K0kLw==}
3396
engines: {node: ^18.19.0 || >=20.6.0}
@@ -3118,6 +3403,12 @@ packages:
3403
peerDependencies:
3404
'@opentelemetry/api': '>=1.9.0 <1.10.0'
3405
3406
+ '@opentelemetry/sdk-metrics@2.2.0':
3407
+ resolution: {integrity: sha512-G5KYP6+VJMZzpGipQw7Giif48h6SGQ2PFKEYCybeXJsOCB4fp8azqMAAzE5lnnHK3ZVwYQrgmFbsUJO/zOnwGw==}
3408
+ engines: {node: ^18.19.0 || >=20.6.0}
3409
+ peerDependencies:
3410
+ '@opentelemetry/api': '>=1.9.0 <1.10.0'
3411
+
3412
'@opentelemetry/sdk-node@0.203.0':
3413
resolution: {integrity: sha512-zRMvrZGhGVMvAbbjiNQW3eKzW/073dlrSiAKPVWmkoQzah9wfynpVPeL55f9fVIm0GaBxTLcPeukWGy0/Wj7KQ==}
3414
engines: {node: ^18.19.0 || >=20.6.0}
@@ -3130,26 +3421,30 @@ packages:
3421
peerDependencies:
3422
'@opentelemetry/api': '>=1.3.0 <1.10.0'
3423
3424
+ '@opentelemetry/sdk-trace-base@2.2.0':
3425
+ resolution: {integrity: sha512-xWQgL0Bmctsalg6PaXExmzdedSp3gyKV8mQBwK/j9VGdCDu2fmXIb2gAehBKbkXCpJ4HPkgv3QfoJWRT4dHWbw==}
3426
+ engines: {node: ^18.19.0 || >=20.6.0}
3427
+ peerDependencies:
3428
+ '@opentelemetry/api': '>=1.3.0 <1.10.0'
3429
+
3430
'@opentelemetry/sdk-trace-node@2.0.1':
3431
resolution: {integrity: sha512-UhdbPF19pMpBtCWYP5lHbTogLWx9N0EBxtdagvkn5YtsAnCBZzL7SjktG+ZmupRgifsHMjwUaCCaVmqGfSADmA==}
3432
engines: {node: ^18.19.0 || >=20.6.0}
3433
peerDependencies:
3434
'@opentelemetry/api': '>=1.0.0 <1.10.0'
3435
3139
- '@opentelemetry/semantic-conventions@1.34.0':
3140
- resolution: {integrity: sha512-aKcOkyrorBGlajjRdVoJWHTxfxO1vCNHLJVlSDaRHDIdjU+pX8IYQPvPDkYiujKLbRnWU+1TBwEt0QRgSm4SGA==}
3141
- engines: {node: '>=14'}
3142
-
3143
- '@opentelemetry/semantic-conventions@1.36.0':
3144
- resolution: {integrity: sha512-TtxJSRD8Ohxp6bKkhrm27JRHAxPczQA7idtcTOMYI+wQRRrfgqxHv1cFbCApcSnNjtXkmzFozn6jQtFrOmbjPQ==}
3145
- engines: {node: '>=14'}
3436
+ '@opentelemetry/sdk-trace-node@2.2.0':
3437
+ resolution: {integrity: sha512-+OaRja3f0IqGG2kptVeYsrZQK9nKRSpfFrKtRBq4uh6nIB8bTBgaGvYQrQoRrQWQMA5dK5yLhDMDc0dvYvCOIQ==}
3438
+ engines: {node: ^18.19.0 || >=20.6.0}
3439
+ peerDependencies:
3440
+ '@opentelemetry/api': '>=1.0.0 <1.10.0'
3441
3147
- '@opentelemetry/semantic-conventions@1.37.0':
3148
- resolution: {integrity: sha512-JD6DerIKdJGmRp4jQyX5FlrQjA4tjOw1cvfsPAZXfOOEErMUHjPcPSICS+6WnM0nB0efSFARh0KAZss+bvExOA==}
3442
+ '@opentelemetry/semantic-conventions@1.38.0':
3443
+ resolution: {integrity: sha512-kocjix+/sSggfJhwXqClZ3i9Y/MI0fp7b+g7kCRm6psy2dsf8uApTRclwG18h8Avm7C9+fnt+O36PspJ/OzoWg==}
3444
engines: {node: '>=14'}
3445
3151
- '@opentelemetry/sql-common@0.41.0':
3152
- resolution: {integrity: sha512-pmzXctVbEERbqSfiAgdes9Y63xjoOyXcD7B6IXBkVb+vbM7M9U98mn33nGXxPf4dfYR0M+vhcKRZmbSJ7HfqFA==}
3446
+ '@opentelemetry/sql-common@0.41.2':
3447
+ resolution: {integrity: sha512-4mhWm3Z8z+i508zQJ7r6Xi7y4mmoJpdvH0fZPFRkWrdp5fq7hhZ2HhYokEOLkfqSMgPR4Z9EyB3DBkbKGOqZiQ==}
3448
engines: {node: ^18.19.0 || >=20.6.0}
3449
peerDependencies:
3450
'@opentelemetry/api': ^1.1.0
@@ -3242,6 +3537,9 @@ packages:
3537
resolution: {integrity: sha512-dfUnCxiN9H4ap84DvD2ubjw+3vUNpstxa0TneY/Paat8a3R4uQZDLSvWjmznAY/DoahqTHl9V46HF/Zs3F29pg==}
3538
engines: {node: '>= 10.0.0'}
3539
3540
+ '@pinojs/redact@0.4.0':
3541
+ resolution: {integrity: sha512-k2ENnmBugE/rzQfEcdWHcCY+/FM3VLzH9cYEsbdsoqrvzAKRhUZeRNhAZvB8OitQJ1TBed3yqWtdjzS6wJKBwg==}
3542
+
3543
'@pkgjs/parseargs@0.11.0':
3544
resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==}
3545
engines: {node: '>=14'}
@@ -3252,8 +3550,8 @@ packages:
3550
'@poppinss/colors@4.1.5':
3551
resolution: {integrity: sha512-FvdDqtcRCtz6hThExcFOgW0cWX+xwSMWcRuQe5ZEb2m7cVQOAVZOIMt+/v9RxGiD9/OY16qJBXK4CVKWAPalBw==}
3552
3255
- '@poppinss/dumper@0.6.4':
3256
- resolution: {integrity: sha512-iG0TIdqv8xJ3Lt9O8DrPRxw1MRLjNpoqiSGU03P/wNLP/s0ra0udPJ1J2Tx5M0J3H/cVyEgpbn8xUKRY9j59kQ==}
3553
+ '@poppinss/dumper@0.6.5':
3554
+ resolution: {integrity: sha512-NBdYIb90J7LfOI32dOewKI1r7wnkiH6m920puQ3qHUeZkxNkQiFnXVWoE6YtFSv6QOiPPf7ys6i+HWWecDz7sw==}
3555
3556
'@poppinss/exception@1.2.2':
3557
resolution: {integrity: sha512-m7bpKCD4QMlFCjA/nKTs23fuvoVFoA83brRKmObCUNmi/9tVu8Ve3w4YQAnJu4q3Tjf5fr685HYIC/IA2zHRSg==}
@@ -3288,8 +3586,8 @@ packages:
3586
'@protobufjs/utf8@1.1.0':
3587
resolution: {integrity: sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==}
3588
3291
- '@redocly/ajv@8.11.3':
3292
- resolution: {integrity: sha512-4P3iZse91TkBiY+Dx5DUgxQ9GXkVJf++cmI0MOyLDxV9b5MUBI4II6ES8zA5JCbO72nKAJxWrw4PUPW+YP3ZDQ==}
3589
+ '@redocly/ajv@8.17.1':
3590
+ resolution: {integrity: sha512-EDtsGZS964mf9zAUXAl9Ew16eYbeyAFWhsPr0fX6oaJxgd8rApYlPBf0joyhnUHz88WxrigyFtTaqqzXNzPgqw==}
3591
3592
'@redocly/config@0.22.2':
3593
resolution: {integrity: sha512-roRDai8/zr2S9YfmzUfNhKjOF0NdcOIqF7bhf4MVC5UxpjIysDjyudvlAiVbpPHp3eDRWbdzUgtkK1a7YiDNyQ==}
@@ -3298,137 +3596,147 @@ packages:
3596
resolution: {integrity: sha512-0EbE8LRbkogtcCXU7liAyC00n9uNG9hJ+eMyHFdUsy9lB/WGqnEBgwjA9q2cyzAVcdTkQqTBBU1XePNnN3OijA==}
3597
engines: {node: '>=18.17.0', npm: '>=9.5.0'}
3598
3301
- '@rollup/rollup-android-arm-eabi@4.43.0':
3302
- resolution: {integrity: sha512-Krjy9awJl6rKbruhQDgivNbD1WuLb8xAclM4IR4cN5pHGAs2oIMMQJEiC3IC/9TZJ+QZkmZhlMO/6MBGxPidpw==}
3599
+ '@rollup/rollup-android-arm-eabi@4.53.3':
3600
+ resolution: {integrity: sha512-mRSi+4cBjrRLoaal2PnqH82Wqyb+d3HsPUN/W+WslCXsZsyHa9ZeQQX/pQsZaVIWDkPcpV6jJ+3KLbTbgnwv8w==}
3601
cpu: [arm]
3602
os: [android]
3603
3306
- '@rollup/rollup-android-arm64@4.43.0':
3307
- resolution: {integrity: sha512-ss4YJwRt5I63454Rpj+mXCXicakdFmKnUNxr1dLK+5rv5FJgAxnN7s31a5VchRYxCFWdmnDWKd0wbAdTr0J5EA==}
3604
+ '@rollup/rollup-android-arm64@4.53.3':
3605
+ resolution: {integrity: sha512-CbDGaMpdE9sh7sCmTrTUyllhrg65t6SwhjlMJsLr+J8YjFuPmCEjbBSx4Z/e4SmDyH3aB5hGaJUP2ltV/vcs4w==}
3606
cpu: [arm64]
3607
os: [android]
3608
3311
- '@rollup/rollup-darwin-arm64@4.43.0':
3312
- resolution: {integrity: sha512-eKoL8ykZ7zz8MjgBenEF2OoTNFAPFz1/lyJ5UmmFSz5jW+7XbH1+MAgCVHy72aG59rbuQLcJeiMrP8qP5d/N0A==}
3609
+ '@rollup/rollup-darwin-arm64@4.53.3':
3610
+ resolution: {integrity: sha512-Nr7SlQeqIBpOV6BHHGZgYBuSdanCXuw09hon14MGOLGmXAFYjx1wNvquVPmpZnl0tLjg25dEdr4IQ6GgyToCUA==}
3611
cpu: [arm64]
3612
os: [darwin]
3613
3316
- '@rollup/rollup-darwin-x64@4.43.0':
3317
- resolution: {integrity: sha512-SYwXJgaBYW33Wi/q4ubN+ldWC4DzQY62S4Ll2dgfr/dbPoF50dlQwEaEHSKrQdSjC6oIe1WgzosoaNoHCdNuMg==}
3614
+ '@rollup/rollup-darwin-x64@4.53.3':
3615
+ resolution: {integrity: sha512-DZ8N4CSNfl965CmPktJ8oBnfYr3F8dTTNBQkRlffnUarJ2ohudQD17sZBa097J8xhQ26AwhHJ5mvUyQW8ddTsQ==}
3616
cpu: [x64]
3617
os: [darwin]
3618
3321
- '@rollup/rollup-freebsd-arm64@4.43.0':
3322
- resolution: {integrity: sha512-SV+U5sSo0yujrjzBF7/YidieK2iF6E7MdF6EbYxNz94lA+R0wKl3SiixGyG/9Klab6uNBIqsN7j4Y/Fya7wAjQ==}
3619
+ '@rollup/rollup-freebsd-arm64@4.53.3':
3620
+ resolution: {integrity: sha512-yMTrCrK92aGyi7GuDNtGn2sNW+Gdb4vErx4t3Gv/Tr+1zRb8ax4z8GWVRfr3Jw8zJWvpGHNpss3vVlbF58DZ4w==}
3621
cpu: [arm64]
3622
os: [freebsd]
3623
3326
- '@rollup/rollup-freebsd-x64@4.43.0':
3327
- resolution: {integrity: sha512-J7uCsiV13L/VOeHJBo5SjasKiGxJ0g+nQTrBkAsmQBIdil3KhPnSE9GnRon4ejX1XDdsmK/l30IYLiAaQEO0Cg==}
3624
+ '@rollup/rollup-freebsd-x64@4.53.3':
3625
+ resolution: {integrity: sha512-lMfF8X7QhdQzseM6XaX0vbno2m3hlyZFhwcndRMw8fbAGUGL3WFMBdK0hbUBIUYcEcMhVLr1SIamDeuLBnXS+Q==}
3626
cpu: [x64]
3627
os: [freebsd]
3628
3331
- '@rollup/rollup-linux-arm-gnueabihf@4.43.0':
3332
- resolution: {integrity: sha512-gTJ/JnnjCMc15uwB10TTATBEhK9meBIY+gXP4s0sHD1zHOaIh4Dmy1X9wup18IiY9tTNk5gJc4yx9ctj/fjrIw==}
3629
+ '@rollup/rollup-linux-arm-gnueabihf@4.53.3':
3630
+ resolution: {integrity: sha512-k9oD15soC/Ln6d2Wv/JOFPzZXIAIFLp6B+i14KhxAfnq76ajt0EhYc5YPeX6W1xJkAdItcVT+JhKl1QZh44/qw==}
3631
cpu: [arm]
3632
os: [linux]
3633
libc: [glibc]
3634
3337
- '@rollup/rollup-linux-arm-musleabihf@4.43.0':
3338
- resolution: {integrity: sha512-ZJ3gZynL1LDSIvRfz0qXtTNs56n5DI2Mq+WACWZ7yGHFUEirHBRt7fyIk0NsCKhmRhn7WAcjgSkSVVxKlPNFFw==}
3635
+ '@rollup/rollup-linux-arm-musleabihf@4.53.3':
3636
+ resolution: {integrity: sha512-vTNlKq+N6CK/8UktsrFuc+/7NlEYVxgaEgRXVUVK258Z5ymho29skzW1sutgYjqNnquGwVUObAaxae8rZ6YMhg==}
3637
cpu: [arm]
3638
os: [linux]
3639
libc: [musl]
3640
3343
- '@rollup/rollup-linux-arm64-gnu@4.43.0':
3344
- resolution: {integrity: sha512-8FnkipasmOOSSlfucGYEu58U8cxEdhziKjPD2FIa0ONVMxvl/hmONtX/7y4vGjdUhjcTHlKlDhw3H9t98fPvyA==}
3641
+ '@rollup/rollup-linux-arm64-gnu@4.53.3':
3642
+ resolution: {integrity: sha512-RGrFLWgMhSxRs/EWJMIFM1O5Mzuz3Xy3/mnxJp/5cVhZ2XoCAxJnmNsEyeMJtpK+wu0FJFWz+QF4mjCA7AUQ3w==}
3643
cpu: [arm64]
3644
os: [linux]
3645
libc: [glibc]
3646
3349
- '@rollup/rollup-linux-arm64-musl@4.43.0':
3350
- resolution: {integrity: sha512-KPPyAdlcIZ6S9C3S2cndXDkV0Bb1OSMsX0Eelr2Bay4EsF9yi9u9uzc9RniK3mcUGCLhWY9oLr6er80P5DE6XA==}
3647
+ '@rollup/rollup-linux-arm64-musl@4.53.3':
3648
+ resolution: {integrity: sha512-kASyvfBEWYPEwe0Qv4nfu6pNkITLTb32p4yTgzFCocHnJLAHs+9LjUu9ONIhvfT/5lv4YS5muBHyuV84epBo/A==}
3649
cpu: [arm64]
3650
os: [linux]
3651
libc: [musl]
3652
3355
- '@rollup/rollup-linux-loongarch64-gnu@4.43.0':
3356
- resolution: {integrity: sha512-HPGDIH0/ZzAZjvtlXj6g+KDQ9ZMHfSP553za7o2Odegb/BEfwJcR0Sw0RLNpQ9nC6Gy8s+3mSS9xjZ0n3rhcYg==}
3653
+ '@rollup/rollup-linux-loong64-gnu@4.53.3':
3654
+ resolution: {integrity: sha512-JiuKcp2teLJwQ7vkJ95EwESWkNRFJD7TQgYmCnrPtlu50b4XvT5MOmurWNrCj3IFdyjBQ5p9vnrX4JM6I8OE7g==}
3655
cpu: [loong64]
3656
os: [linux]
3657
libc: [glibc]
3658
3361
- '@rollup/rollup-linux-powerpc64le-gnu@4.43.0':
3362
- resolution: {integrity: sha512-gEmwbOws4U4GLAJDhhtSPWPXUzDfMRedT3hFMyRAvM9Mrnj+dJIFIeL7otsv2WF3D7GrV0GIewW0y28dOYWkmw==}
3659
+ '@rollup/rollup-linux-ppc64-gnu@4.53.3':
3660
+ resolution: {integrity: sha512-EoGSa8nd6d3T7zLuqdojxC20oBfNT8nexBbB/rkxgKj5T5vhpAQKKnD+h3UkoMuTyXkP5jTjK/ccNRmQrPNDuw==}
3661
cpu: [ppc64]
3662
os: [linux]
3663
libc: [glibc]
3664
3367
- '@rollup/rollup-linux-riscv64-gnu@4.43.0':
3368
- resolution: {integrity: sha512-XXKvo2e+wFtXZF/9xoWohHg+MuRnvO29TI5Hqe9xwN5uN8NKUYy7tXUG3EZAlfchufNCTHNGjEx7uN78KsBo0g==}
3665
+ '@rollup/rollup-linux-riscv64-gnu@4.53.3':
3666
+ resolution: {integrity: sha512-4s+Wped2IHXHPnAEbIB0YWBv7SDohqxobiiPA1FIWZpX+w9o2i4LezzH/NkFUl8LRci/8udci6cLq+jJQlh+0g==}
3667
cpu: [riscv64]
3668
os: [linux]
3669
libc: [glibc]
3670
3373
- '@rollup/rollup-linux-riscv64-musl@4.43.0':
3374
- resolution: {integrity: sha512-ruf3hPWhjw6uDFsOAzmbNIvlXFXlBQ4nk57Sec8E8rUxs/AI4HD6xmiiasOOx/3QxS2f5eQMKTAwk7KHwpzr/Q==}
3671
+ '@rollup/rollup-linux-riscv64-musl@4.53.3':
3672
+ resolution: {integrity: sha512-68k2g7+0vs2u9CxDt5ktXTngsxOQkSEV/xBbwlqYcUrAVh6P9EgMZvFsnHy4SEiUl46Xf0IObWVbMvPrr2gw8A==}
3673
cpu: [riscv64]
3674
os: [linux]
3675
libc: [musl]
3676
3379
- '@rollup/rollup-linux-s390x-gnu@4.43.0':
3380
- resolution: {integrity: sha512-QmNIAqDiEMEvFV15rsSnjoSmO0+eJLoKRD9EAa9rrYNwO/XRCtOGM3A5A0X+wmG+XRrw9Fxdsw+LnyYiZWWcVw==}
3677
+ '@rollup/rollup-linux-s390x-gnu@4.53.3':
3678
+ resolution: {integrity: sha512-VYsFMpULAz87ZW6BVYw3I6sWesGpsP9OPcyKe8ofdg9LHxSbRMd7zrVrr5xi/3kMZtpWL/wC+UIJWJYVX5uTKg==}
3679
cpu: [s390x]
3680
os: [linux]
3681
libc: [glibc]
3682
3385
- '@rollup/rollup-linux-x64-gnu@4.43.0':
3386
- resolution: {integrity: sha512-jAHr/S0iiBtFyzjhOkAics/2SrXE092qyqEg96e90L3t9Op8OTzS6+IX0Fy5wCt2+KqeHAkti+eitV0wvblEoQ==}
3683
+ '@rollup/rollup-linux-x64-gnu@4.53.3':
3684
+ resolution: {integrity: sha512-3EhFi1FU6YL8HTUJZ51imGJWEX//ajQPfqWLI3BQq4TlvHy4X0MOr5q3D2Zof/ka0d5FNdPwZXm3Yyib/UEd+w==}
3685
cpu: [x64]
3686
os: [linux]
3687
libc: [glibc]
3688
3391
- '@rollup/rollup-linux-x64-musl@4.43.0':
3392
- resolution: {integrity: sha512-3yATWgdeXyuHtBhrLt98w+5fKurdqvs8B53LaoKD7P7H7FKOONLsBVMNl9ghPQZQuYcceV5CDyPfyfGpMWD9mQ==}
3689
+ '@rollup/rollup-linux-x64-musl@4.53.3':
3690
+ resolution: {integrity: sha512-eoROhjcc6HbZCJr+tvVT8X4fW3/5g/WkGvvmwz/88sDtSJzO7r/blvoBDgISDiCjDRZmHpwud7h+6Q9JxFwq1Q==}
3691
cpu: [x64]
3692
os: [linux]
3693
libc: [musl]
3694
3397
- '@rollup/rollup-win32-arm64-msvc@4.43.0':
3398
- resolution: {integrity: sha512-wVzXp2qDSCOpcBCT5WRWLmpJRIzv23valvcTwMHEobkjippNf+C3ys/+wf07poPkeNix0paTNemB2XrHr2TnGw==}
3695
+ '@rollup/rollup-openharmony-arm64@4.53.3':
3696
+ resolution: {integrity: sha512-OueLAWgrNSPGAdUdIjSWXw+u/02BRTcnfw9PN41D2vq/JSEPnJnVuBgw18VkN8wcd4fjUs+jFHVM4t9+kBSNLw==}
3697
+ cpu: [arm64]
3698
+ os: [openharmony]
3699
+
3700
+ '@rollup/rollup-win32-arm64-msvc@4.53.3':
3701
+ resolution: {integrity: sha512-GOFuKpsxR/whszbF/bzydebLiXIHSgsEUp6M0JI8dWvi+fFa1TD6YQa4aSZHtpmh2/uAlj/Dy+nmby3TJ3pkTw==}
3702
cpu: [arm64]
3703
os: [win32]
3704
3402
- '@rollup/rollup-win32-ia32-msvc@4.43.0':
3403
- resolution: {integrity: sha512-fYCTEyzf8d+7diCw8b+asvWDCLMjsCEA8alvtAutqJOJp/wL5hs1rWSqJ1vkjgW0L2NB4bsYJrpKkiIPRR9dvw==}
3705
+ '@rollup/rollup-win32-ia32-msvc@4.53.3':
3706
+ resolution: {integrity: sha512-iah+THLcBJdpfZ1TstDFbKNznlzoxa8fmnFYK4V67HvmuNYkVdAywJSoteUszvBQ9/HqN2+9AZghbajMsFT+oA==}
3707
cpu: [ia32]
3708
os: [win32]
3709
3407
- '@rollup/rollup-win32-x64-msvc@4.43.0':
3408
- resolution: {integrity: sha512-SnGhLiE5rlK0ofq8kzuDkM0g7FN1s5VYY+YSMTibP7CqShxCQvqtNxTARS4xX4PFJfHjG0ZQYX9iGzI3FQh5Aw==}
3710
+ '@rollup/rollup-win32-x64-gnu@4.53.3':
3711
+ resolution: {integrity: sha512-J9QDiOIZlZLdcot5NXEepDkstocktoVjkaKUtqzgzpt2yWjGlbYiKyp05rWwk4nypbYUNoFAztEgixoLaSETkg==}
3712
+ cpu: [x64]
3713
+ os: [win32]
3714
+
3715
+ '@rollup/rollup-win32-x64-msvc@4.53.3':
3716
+ resolution: {integrity: sha512-UhTd8u31dXadv0MopwGgNOBpUVROFKWVQgAg5N1ESyCz8AuBcMqm4AuTjrwgQKGDfoFuz02EuMRHQIw/frmYKQ==}
3717
cpu: [x64]
3718
os: [win32]
3719
3720
'@selderee/plugin-htmlparser2@0.11.0':
3721
resolution: {integrity: sha512-P33hHGdldxGabLFjPPpaTxVolMrzrcegejx+0GxjrIb9Zv48D8yAIA/QTDR2dFl7Uz7urX8aX6+5bCZslr+gWQ==}
3722
3415
- '@shikijs/engine-oniguruma@3.6.0':
3416
- resolution: {integrity: sha512-nmOhIZ9yT3Grd+2plmW/d8+vZ2pcQmo/UnVwXMUXAKTXdi+LK0S08Ancrz5tQQPkxvjBalpMW2aKvwXfelauvA==}
3723
+ '@shikijs/engine-oniguruma@3.15.0':
3724
+ resolution: {integrity: sha512-HnqFsV11skAHvOArMZdLBZZApRSYS4LSztk2K3016Y9VCyZISnlYUYsL2hzlS7tPqKHvNqmI5JSUJZprXloMvA==}
3725
3418
- '@shikijs/langs@3.6.0':
3419
- resolution: {integrity: sha512-IdZkQJaLBu1LCYCwkr30hNuSDfllOT8RWYVZK1tD2J03DkiagYKRxj/pDSl8Didml3xxuyzUjgtioInwEQM/TA==}
3726
+ '@shikijs/langs@3.15.0':
3727
+ resolution: {integrity: sha512-WpRvEFvkVvO65uKYW4Rzxs+IG0gToyM8SARQMtGGsH4GDMNZrr60qdggXrFOsdfOVssG/QQGEl3FnJ3EZ+8w8A==}
3728
3421
- '@shikijs/themes@3.6.0':
3422
- resolution: {integrity: sha512-Fq2j4nWr1DF4drvmhqKq8x5vVQ27VncF8XZMBuHuQMZvUSS3NBgpqfwz/FoGe36+W6PvniZ1yDlg2d4kmYDU6w==}
3729
+ '@shikijs/themes@3.15.0':
3730
+ resolution: {integrity: sha512-8ow2zWb1IDvCKjYb0KiLNrK4offFdkfNVPXb1OZykpLCzRU6j+efkY+Y7VQjNlNFXonSw+4AOdGYtmqykDbRiQ==}
3731
3424
- '@shikijs/types@3.6.0':
3425
- resolution: {integrity: sha512-cLWFiToxYu0aAzJqhXTQsFiJRTFDAGl93IrMSBNaGSzs7ixkLfdG6pH11HipuWFGW5vyx4X47W8HDQ7eSrmBUg==}
3732
+ '@shikijs/types@3.15.0':
3733
+ resolution: {integrity: sha512-BnP+y/EQnhihgHy4oIAN+6FFtmfTekwOLsQbRw9hOKwqgNy8Bdsjq8B05oAt/ZgvIWWFrshV71ytOrlPfYjIJw==}
3734
3735
'@shikijs/vscode-textmate@10.0.2':
3736
resolution: {integrity: sha512-83yeghZ2xxin3Nj8z1NMd/NCuca+gsYXswywDy5bHvwlWL8tpTQmzGeUuHd9FC3E/SBEMvzJRwWEOz5gGes9Qg==}
3737
3430
- '@sindresorhus/is@7.0.2':
3431
- resolution: {integrity: sha512-d9xRovfKNz1SKieM0qJdO+PQonjnnIfSNWfHYnBSJ9hkjm0ZPw6HlxscDXYstp3z+7V2GOFHc+J0CYrYTjqCJw==}
3738
+ '@sindresorhus/is@7.1.1':
3739
+ resolution: {integrity: sha512-rO92VvpgMc3kfiTjGT52LEtJ8Yc5kCWhZjLQ3LwlA4pSgPpQO7bVpYXParOD8Jwf+cVQECJo3yP/4I8aZtUQTQ==}
3740
engines: {node: '>=18'}
3741
3742
'@sindresorhus/slugify@2.2.1':
@@ -3443,8 +3751,8 @@ packages:
3751
resolution: {integrity: sha512-GGP3O9QFD24uGeAXYUjwSTXARoqpZykHadOmA8G5vfJPK0/DC67qa//0qvqrJzL1xc8WQWX7/yc7fwudjPHPhA==}
3752
engines: {node: '>=14.0.0'}
3753
3446
- '@smithy/types@4.6.0':
3447
- resolution: {integrity: sha512-4lI9C8NzRPOv66FaY1LL1O/0v0aLVrq/mXP/keUa9mJOApEeae43LsLd2kZRUJw91gxOQfLIrV3OvqPgWz1YsA==}
3754
+ '@smithy/types@4.9.0':
3755
+ resolution: {integrity: sha512-MvUbdnXDTwykR8cB1WZvNNwqoWVaTRA0RLlLmf/cIFNMM2cKWz01X4Ly6SMC4Kks30r8tT3Cty0jmeWfiuyHTA==}
3756
engines: {node: '>=18.0.0'}
3757
3758
'@smithy/util-buffer-from@2.2.0':
@@ -3455,8 +3763,8 @@ packages:
3763
resolution: {integrity: sha512-R8Rdn8Hy72KKcebgLiv8jQcQkXoLMOGGv5uI1/k0l+snqkOzQ1R0ChUBCxWMlBsFMekWjq0wRudIweFs7sKT5A==}
3764
engines: {node: '>=14.0.0'}
3765
3458
- '@speed-highlight/core@1.2.7':
3459
- resolution: {integrity: sha512-0dxmVj4gxg3Jg879kvFS/msl4s9F3T9UXC1InxgOf7t5NvcPD97u/WTA5vL/IxWHMn7qSxBozqrnnE2wvl1m8g==}
3766
+ '@speed-highlight/core@1.2.12':
3767
+ resolution: {integrity: sha512-uilwrK0Ygyri5dToHYdZSjcvpS2ZwX0w5aSt3GCEN9hrjxWCoeV4Z2DTXuxjwbntaLQIEEAlCeNQss5SoHvAEA==}
3768
3769
'@standard-schema/spec@1.0.0':
3770
resolution: {integrity: sha512-m2bOd0f2RT9k8QJx1JN85cZYyH1RqFBdlwtkSlf4tBDYLCiiZnv1fIIwacK6cqwXavOydf0NPToMQgpKq+dVlA==}
@@ -3470,8 +3778,8 @@ packages:
3778
'@type-challenges/utils@0.1.1':
3779
resolution: {integrity: sha512-A7ljYfBM+FLw+NDyuYvGBJiCEV9c0lPWEAdzfOAkb3JFqfLl0Iv/WhWMMARHiRKlmmiD1g8gz/507yVvHdQUYA==}
3780
3473
- '@types/aws-lambda@8.10.150':
3474
- resolution: {integrity: sha512-AX+AbjH/rH5ezX1fbK8onC/a+HyQHo7QGmvoxAE42n22OsciAxvZoZNEr22tbXs8WfP1nIsBjKDpgPm3HjOZbA==}
3781
+ '@types/aws-lambda@8.10.152':
3782
+ resolution: {integrity: sha512-soT/c2gYBnT5ygwiHPmd9a1bftj462NWVk2tKCc1PYHSIacB2UwbTS2zYG4jzag1mRDuzg/OjtxQjQ2NKRB6Rw==}
3783
3784
'@types/babel__helper-validator-identifier@7.15.2':
3785
resolution: {integrity: sha512-l3dkwCt890NFhMwPKXbxsWXC0Por0/+KaFIiQP1j38/vWSH2P3Tn6m+IuJHkx2SBI3VLFqincFe9JtBk2NFHOw==}
@@ -3479,14 +3787,14 @@ packages:
3787
'@types/body-parser@1.19.6':
3788
resolution: {integrity: sha512-HLFeCYgz89uk22N5Qg3dvGvsv46B8GLvKKo1zKG4NybA8U2DiEO3w9lqGg29t/tfLRJpJ6iQxnVw4OnB7MoM9g==}
3789
3482
- '@types/bun@1.2.16':
3483
- resolution: {integrity: sha512-1aCZJ/6nSiViw339RsaNhkNoEloLaPzZhxMOYEa7OzRzO41IGg5n/7I43/ZIAW/c+Q6cT12Vf7fOZOoVIzb5BQ==}
3790
+ '@types/bun@1.3.3':
3791
+ resolution: {integrity: sha512-ogrKbJ2X5N0kWLLFKeytG0eHDleBYtngtlbu9cyBKFtNL3cnpDZkNdQj8flVf6WTZUX5ulI9AY1oa7ljhSrp+g==}
3792
3793
'@types/bunyan@1.8.11':
3794
resolution: {integrity: sha512-758fRH7umIMk5qt5ELmRMff4mLDlN+xyYzC+dkPTdKwbSkJFvz6xwyScrytPU0QIBbRRwbiE8/BIg8bpajerNQ==}
3795
3488
- '@types/chai@5.2.2':
3489
- resolution: {integrity: sha512-8kB30R7Hwqf40JPiKhVzodJs2Qc1ZJ5zuT3uzw5Hq/dhNCl3G3l83jfpdI1e20BP348+fV7VIL/+FxaXkqBmWg==}
3796
+ '@types/chai@5.2.3':
3797
+ resolution: {integrity: sha512-Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA==}
3798
3799
'@types/connect@3.4.38':
3800
resolution: {integrity: sha512-K6uROf1LD88uDQqJCktA4yzL1YYAK6NgfsI0v/mTgyPKWsX1CnJ0XPSDhViejru1GcRkLWb8RlzFYJRqGUbaug==}
@@ -3503,17 +3811,14 @@ packages:
3811
'@types/deep-eql@4.0.2':
3812
resolution: {integrity: sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==}
3813
3506
- '@types/estree@1.0.7':
3507
- resolution: {integrity: sha512-w28IoSUCJpidD/TGviZwwMJckNESJZXFu7NBZ5YJ4mEUnNraUn9Pm8HSZm/jDF1pDWYKspWE7oVphigUPRakIQ==}
3508
-
3814
'@types/estree@1.0.8':
3815
resolution: {integrity: sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==}
3816
3512
- '@types/express-serve-static-core@4.19.6':
3513
- resolution: {integrity: sha512-N4LZ2xG7DatVqhCZzOGb1Yi5lMbXSZcmdLDe9EzSndPV2HpWYWzRbaerl2n27irrm94EPpprqa8KpskPT085+A==}
3817
+ '@types/express-serve-static-core@4.19.7':
3818
+ resolution: {integrity: sha512-FvPtiIf1LfhzsaIXhv/PHan/2FeQBbtBDtfX2QfvPxdUelMDEckK08SM6nqo1MIZY3RUlfA+HV8+hFUSio78qg==}
3819
3515
- '@types/express@4.17.23':
3516
- resolution: {integrity: sha512-Crp6WY9aTYP3qPi2wGDo9iUe/rceX01UMhnF1jmwDcKCFM6cx7YhGP/Mpr3y9AASpfHixIG0E6azCcL5OcDHsQ==}
3820
+ '@types/express@4.17.25':
3821
+ resolution: {integrity: sha512-dVd04UKsfpINUnK0yBoYHDF3xu7xVH4BuDotC/xGuycx4CgbP48X/KF/586bcObxT0HENHXEU8Nqtu6NR+eKhw==}
3822
3823
'@types/glob@8.1.0':
3824
resolution: {integrity: sha512-IO+MJPVhoqz+28h1qLAcBEH2+xHMK6MTyHJc7MTnnYb6wsoLR29POVGJ7LycmVXIqyy/4/2ShP5sUwTXuOwb/w==}
@@ -3527,8 +3832,8 @@ packages:
3832
'@types/json-schema@7.0.15':
3833
resolution: {integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==}
3834
3530
- '@types/lodash@4.17.20':
3531
- resolution: {integrity: sha512-H3MHACvFUEiujabxhaI/ImO6gUrd8oOurg7LQtS7mbwIXA/cUqWrvBsaeJ23aZEPk1TAYkurjfMbSELfoCXlGA==}
3835
+ '@types/lodash@4.17.21':
3836
+ resolution: {integrity: sha512-FOvQ0YPD5NOfPgMzJihoT+Za5pdkDJWcbpuj1DjaKZIr/gxodQjY/uWEFlTNqW2ugXHUiL8lRQgw63dzKHZdeQ==}
3837
3838
'@types/memcached@2.2.10':
3839
resolution: {integrity: sha512-AM9smvZN55Gzs2wRrqeMHVP7KE8KWgCJO/XL5yCly2xF6EKa4YlbpK+cLSAH4NG/Ah64HrlegmGqW8kYws7Vxg==}
@@ -3545,26 +3850,23 @@ packages:
3850
'@types/mysql@2.15.27':
3851
resolution: {integrity: sha512-YfWiV16IY0OeBfBCk8+hXKmdTKrKlwKN1MNKAPBu5JYxLwBEZl7QzeEpGnlZb3VMGJrrGmB84gXiH+ofs/TezA==}
3852
3548
- '@types/node-fetch@2.6.12':
3549
- resolution: {integrity: sha512-8nneRWKCg3rMtF69nLQJnOYUcbafYeFSjqkw3jCRLsqkWFlHaoQrr5mXmofFGOx3DKn7UfmBMyov8ySvLRVldA==}
3853
+ '@types/node-fetch@2.6.13':
3854
+ resolution: {integrity: sha512-QGpRVpzSaUs30JBSGPjOg4Uveu384erbHBoT1zeONvyCfwQxIkUshLAOqN/k9EjGviPRmWTTe6aH2qySWKTVSw==}
3855
3856
'@types/node@12.20.55':
3857
resolution: {integrity: sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==}
3858
3554
- '@types/node@18.19.112':
3555
- resolution: {integrity: sha512-i+Vukt9POdS/MBI7YrrkkI5fMfwFtOjphSmt4WXYLfwqsfr6z/HdCx7LqT9M7JktGob8WNgj8nFB4TbGNE4Cog==}
3556
-
3557
- '@types/node@20.19.1':
3558
- resolution: {integrity: sha512-jJD50LtlD2dodAEO653i3YF04NWak6jN3ky+Ri3Em3mGR39/glWiboM/IePaRbgwSfqM1TpGXfAg8ohn/4dTgA==}
3859
+ '@types/node@18.19.130':
3860
+ resolution: {integrity: sha512-GRaXQx6jGfL8sKfaIDD6OupbIHBr9jv7Jnaml9tB7l4v068PAOXqfcujMMo5PhbIs6ggR1XODELqahT2R8v0fg==}
3861
3560
- '@types/node@22.15.32':
3561
- resolution: {integrity: sha512-3jigKqgSjsH6gYZv2nEsqdXfZqIFGAV36XYYjf9KGZ3PSG+IhLecqPnI310RvjutyMwifE2hhhNEklOUrvx/wA==}
3862
+ '@types/node@20.19.25':
3863
+ resolution: {integrity: sha512-ZsJzA5thDQMSQO788d7IocwwQbI8B5OPzmqNvpf3NY/+MHDAS759Wo0gd2WQeXYt5AAAQjzcrTVC6SKCuYgoCQ==}
3864
3563
- '@types/node@24.0.3':
3564
- resolution: {integrity: sha512-R4I/kzCYAdRLzfiCabn9hxWfbuHS573x+r0dJMkkzThEa7pbrcDWK+9zu3e7aBOouf+rQAciqPFMnxwr0aWgKg==}
3865
+ '@types/node@22.19.1':
3866
+ resolution: {integrity: sha512-LCCV0HdSZZZb34qifBsyWlUmok6W7ouER+oQIGBScS8EsZsQbrtFTUrDX4hOl+CS6p7cnNC4td+qrSVGSCTUfQ==}
3867
3566
- '@types/node@24.6.2':
3567
- resolution: {integrity: sha512-d2L25Y4j+W3ZlNAeMKcy7yDsK425ibcAOO2t7aPTz6gNMH0z2GThtwENCDc0d/Pw9wgyRqE5Px1wkV7naz8ang==}
3868
+ '@types/node@24.10.1':
3869
+ resolution: {integrity: sha512-GNWcUTRBgIRJD5zj+Tq0fKOJ5XZajIiBroOF0yvj2bSU1WvNdYS/dn9UxwsujGW4JX06dnHyjV2y9rRaybH0iQ==}
3870
3871
'@types/oracledb@6.5.2':
3872
resolution: {integrity: sha512-kK1eBS/Adeyis+3OlBDMeQQuasIDLUYXsi2T15ccNJ0iyUpQ4xDF7svFu3+bGVrI0CMBUclPciz+lsQR3JX3TQ==}
@@ -3572,11 +3874,8 @@ packages:
3874
'@types/pg-pool@2.0.6':
3875
resolution: {integrity: sha512-TaAUE5rq2VQYxab5Ts7WZhKNmuN78Q6PiFonTDdpbx8a1H0M1vhy3rhiMjl+e2iHmogyMw7jZF4FrE6eJUy5HQ==}
3876
3575
- '@types/pg@8.15.4':
3576
- resolution: {integrity: sha512-I6UNVBAoYbvuWkkU3oosC8yxqH21f4/Jc4DK71JLG3dT2mdlGe1z+ep/LQGXaKaOgcvUrsQoPRqfgtMcvZiJhg==}
3577
-
3578
- '@types/pg@8.6.1':
3579
- resolution: {integrity: sha512-1Kc4oAGzAl7uqUStZCDvaLFqZrW9qWSjXOmBfdgyBP5La7Us6Mg4GBvRlSoaZMhQF/zSj1C8CtKMBkoiT8eL8w==}
3877
+ '@types/pg@8.15.5':
3878
+ resolution: {integrity: sha512-LF7lF6zWEKxuT3/OR8wAZGzkg4ENGXFNyiV/JeOt9z5B+0ZVwbql9McqX5c/WStFq1GaGso7H1AzP/qSzmlCKQ==}
3879
3880
'@types/prop-types@15.7.15':
3881
resolution: {integrity: sha512-F6bEyamV9jKGAFBEmlQnesRPGOQqS2+Uwi0Em15xenOxHaf2hv6L8YCVn3rPdPJOiJfPiCnLIRyvwVaqMY3MIw==}
@@ -3587,20 +3886,23 @@ packages:
3886
'@types/range-parser@1.2.7':
3887
resolution: {integrity: sha512-hKormJbkJqzQGhziax5PItDUTMAM9uE2XXQmM37dyd4hVM+5aVl7oVxMVUiVQn2oCQFN/LKCZdvSM0pFRqbSmQ==}
3888
3590
- '@types/react@18.3.23':
3591
- resolution: {integrity: sha512-/LDXMQh55EzZQ0uVAZmKKhfENivEvWz6E+EYzh+/MCjMhNsotd+ZHhBGIjFDTi6+fz0OhQQQLbTgdQIxxCsC0w==}
3889
+ '@types/react@18.3.27':
3890
+ resolution: {integrity: sha512-cisd7gxkzjBKU2GgdYrTdtQx1SORymWyaAFhaxQPK9bYO9ot3Y5OikQRvY0VYQtvwjeQnizCINJAenh/V7MK2w==}
3891
3892
'@types/retry@0.12.0':
3893
resolution: {integrity: sha512-wWKOClTTiizcZhXnPY4wikVAwmdYHp8q6DmC+EJUzAMsycb7HB32Kh9RN4+0gExjmPmZSAQjgURXIGATPegAvA==}
3894
3596
- '@types/semver@7.7.0':
3597
- resolution: {integrity: sha512-k107IF4+Xr7UHjwDc7Cfd6PRQfbdkiRabXGRjo07b4WyPahFBZCZ1sE+BNxYIJPPg73UkfOsVOLwqVc/6ETrIA==}
3895
+ '@types/semver@7.7.1':
3896
+ resolution: {integrity: sha512-FmgJfu+MOcQ370SD0ev7EI8TlCAfKYU+B4m5T3yXc1CiRN94g/SZPtsCkk506aUDtlMnFZvasDwHHUcZUEaYuA==}
3897
+
3898
+ '@types/send@0.17.6':
3899
+ resolution: {integrity: sha512-Uqt8rPBE8SY0RK8JB1EzVOIZ32uqy8HwdxCnoCOsYrvnswqmFZ/k+9Ikidlk/ImhsdvBsloHbAlewb2IEBV/Og==}
3900
3599
- '@types/send@0.17.5':
3600
- resolution: {integrity: sha512-z6F2D3cOStZvuk2SaP6YrwkNO65iTZcwA2ZkSABegdkAh/lf+Aa/YQndZVfmEXT5vgAp6zv06VQ3ejSVjAny4w==}
3901
+ '@types/send@1.2.1':
3902
+ resolution: {integrity: sha512-arsCikDvlU99zl1g69TcAB3mzZPpxgw0UQnaHeC1Nwb015xp8bknZv5rIfri9xTOcMuaVgvabfIRA7PSZVuZIQ==}
3903
3602
- '@types/serve-static@1.15.8':
3603
- resolution: {integrity: sha512-roei0UY3LhpOJvjbIP6ZZFngyLKl5dskOtDhxY5THRSpO+ZI+nzJ+m5yUMzGrp89YRa7lvknKkMYjqQFGwA7Sg==}
3904
+ '@types/serve-static@1.15.10':
3905
+ resolution: {integrity: sha512-tRs1dB+g8Itk72rlSI2ZrW6vZg0YrLI81iQSTkMmOqnqCaNr/8Ek4VwWcN5vZgCYWbg/JJSGBlUaYGAOP73qBw==}
3906
3907
'@types/tedious@4.0.14':
3908
resolution: {integrity: sha512-KHPsfX/FoVbUGbyYvk1q9MMQHLPeRZhRJZdO45Q4YjvFkv4hMNghCWTvy7rdKessBsmtz4euWCWAB6/tVpI1Iw==}
@@ -3621,69 +3923,73 @@ packages:
3923
resolution: {integrity: sha512-8WMXRDD1D+wCohjfslHDgICd2JtMATZU8CkhH8LVJqcJs6dyYj5TGptzP8wApbmEullGBSsCEzzap73DQ1HJaA==}
3924
deprecated: This is a stub types definition. yaml provides its own type definitions, so you do not need this installed.
3925
3624
- '@typescript-eslint/eslint-plugin@8.34.1':
3625
- resolution: {integrity: sha512-STXcN6ebF6li4PxwNeFnqF8/2BNDvBupf2OPx2yWNzr6mKNGF7q49VM00Pz5FaomJyqvbXpY6PhO+T9w139YEQ==}
3926
+ '@typescript-eslint/eslint-plugin@8.48.0':
3927
+ resolution: {integrity: sha512-XxXP5tL1txl13YFtrECECQYeZjBZad4fyd3cFV4a19LkAY/bIp9fev3US4S5fDVV2JaYFiKAZ/GRTOLer+mbyQ==}
3928
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
3929
peerDependencies:
3628
- '@typescript-eslint/parser': ^8.34.1
3930
+ '@typescript-eslint/parser': ^8.48.0
3931
eslint: ^8.57.0 || ^9.0.0
3630
- typescript: '>=4.8.4 <5.9.0'
3932
+ typescript: '>=4.8.4 <6.0.0'
3933
3632
- '@typescript-eslint/parser@8.34.1':
3633
- resolution: {integrity: sha512-4O3idHxhyzjClSMJ0a29AcoK0+YwnEqzI6oz3vlRf3xw0zbzt15MzXwItOlnr5nIth6zlY2RENLsOPvhyrKAQA==}
3934
+ '@typescript-eslint/parser@8.48.0':
3935
+ resolution: {integrity: sha512-jCzKdm/QK0Kg4V4IK/oMlRZlY+QOcdjv89U2NgKHZk1CYTj82/RVSx1mV/0gqCVMJ/DA+Zf/S4NBWNF8GQ+eqQ==}
3936
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
3937
peerDependencies:
3938
eslint: ^8.57.0 || ^9.0.0
3637
- typescript: '>=4.8.4 <5.9.0'
3939
+ typescript: '>=4.8.4 <6.0.0'
3940
3639
- '@typescript-eslint/project-service@8.34.1':
3640
- resolution: {integrity: sha512-nuHlOmFZfuRwLJKDGQOVc0xnQrAmuq1Mj/ISou5044y1ajGNp2BNliIqp7F2LPQ5sForz8lempMFCovfeS1XoA==}
3941
+ '@typescript-eslint/project-service@8.48.0':
3942
+ resolution: {integrity: sha512-Ne4CTZyRh1BecBf84siv42wv5vQvVmgtk8AuiEffKTUo3DrBaGYZueJSxxBZ8fjk/N3DrgChH4TOdIOwOwiqqw==}
3943
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
3944
peerDependencies:
3643
- typescript: '>=4.8.4 <5.9.0'
3945
+ typescript: '>=4.8.4 <6.0.0'
3946
3645
- '@typescript-eslint/scope-manager@8.34.1':
3646
- resolution: {integrity: sha512-beu6o6QY4hJAgL1E8RaXNC071G4Kso2MGmJskCFQhRhg8VOH/FDbC8soP8NHN7e/Hdphwp8G8cE6OBzC8o41ZA==}
3947
+ '@typescript-eslint/scope-manager@8.48.0':
3948
+ resolution: {integrity: sha512-uGSSsbrtJrLduti0Q1Q9+BF1/iFKaxGoQwjWOIVNJv0o6omrdyR8ct37m4xIl5Zzpkp69Kkmvom7QFTtue89YQ==}
3949
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
3950
3649
- '@typescript-eslint/tsconfig-utils@8.34.1':
3650
- resolution: {integrity: sha512-K4Sjdo4/xF9NEeA2khOb7Y5nY6NSXBnod87uniVYW9kHP+hNlDV8trUSFeynA2uxWam4gIWgWoygPrv9VMWrYg==}
3951
+ '@typescript-eslint/tsconfig-utils@8.48.0':
3952
+ resolution: {integrity: sha512-WNebjBdFdyu10sR1M4OXTt2OkMd5KWIL+LLfeH9KhgP+jzfDV/LI3eXzwJ1s9+Yc0Kzo2fQCdY/OpdusCMmh6w==}
3953
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
3954
peerDependencies:
3653
- typescript: '>=4.8.4 <5.9.0'
3955
+ typescript: '>=4.8.4 <6.0.0'
3956
3655
- '@typescript-eslint/type-utils@8.34.1':
3656
- resolution: {integrity: sha512-Tv7tCCr6e5m8hP4+xFugcrwTOucB8lshffJ6zf1mF1TbU67R+ntCc6DzLNKM+s/uzDyv8gLq7tufaAhIBYeV8g==}
3957
+ '@typescript-eslint/type-utils@8.48.0':
3958
+ resolution: {integrity: sha512-zbeVaVqeXhhab6QNEKfK96Xyc7UQuoFWERhEnj3mLVnUWrQnv15cJNseUni7f3g557gm0e46LZ6IJ4NJVOgOpw==}
3959
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
3960
peerDependencies:
3961
eslint: ^8.57.0 || ^9.0.0
3660
- typescript: '>=4.8.4 <5.9.0'
3962
+ typescript: '>=4.8.4 <6.0.0'
3963
3662
- '@typescript-eslint/types@8.34.1':
3663
- resolution: {integrity: sha512-rjLVbmE7HR18kDsjNIZQHxmv9RZwlgzavryL5Lnj2ujIRTeXlKtILHgRNmQ3j4daw7zd+mQgy+uyt6Zo6I0IGA==}
3964
+ '@typescript-eslint/types@8.48.0':
3965
+ resolution: {integrity: sha512-cQMcGQQH7kwKoVswD1xdOytxQR60MWKM1di26xSUtxehaDs/32Zpqsu5WJlXTtTTqyAVK8R7hvsUnIXRS+bjvA==}
3966
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
3967
3666
- '@typescript-eslint/typescript-estree@8.34.1':
3667
- resolution: {integrity: sha512-rjCNqqYPuMUF5ODD+hWBNmOitjBWghkGKJg6hiCHzUvXRy6rK22Jd3rwbP2Xi+R7oYVvIKhokHVhH41BxPV5mA==}
3968
+ '@typescript-eslint/typescript-estree@8.48.0':
3969
+ resolution: {integrity: sha512-ljHab1CSO4rGrQIAyizUS6UGHHCiAYhbfcIZ1zVJr5nMryxlXMVWS3duFPSKvSUbFPwkXMFk1k0EMIjub4sRRQ==}
3970
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
3971
peerDependencies:
3670
- typescript: '>=4.8.4 <5.9.0'
3972
+ typescript: '>=4.8.4 <6.0.0'
3973
3672
- '@typescript-eslint/utils@8.34.1':
3673
- resolution: {integrity: sha512-mqOwUdZ3KjtGk7xJJnLbHxTuWVn3GO2WZZuM+Slhkun4+qthLdXx32C8xIXbO1kfCECb3jIs3eoxK3eryk7aoQ==}
3974
+ '@typescript-eslint/utils@8.48.0':
3975
+ resolution: {integrity: sha512-yTJO1XuGxCsSfIVt1+1UrLHtue8xz16V8apzPYI06W0HbEbEWHxHXgZaAgavIkoh+GeV6hKKd5jm0sS6OYxWXQ==}
3976
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
3977
peerDependencies:
3978
eslint: ^8.57.0 || ^9.0.0
3677
- typescript: '>=4.8.4 <5.9.0'
3979
+ typescript: '>=4.8.4 <6.0.0'
3980
3679
- '@typescript-eslint/visitor-keys@8.34.1':
3680
- resolution: {integrity: sha512-xoh5rJ+tgsRKoXnkBPFRLZ7rjKM0AfVbC68UZ/ECXoDbfggb9RbEySN359acY1vS3qZ0jVTVWzbtfapwm5ztxw==}
3981
+ '@typescript-eslint/visitor-keys@8.48.0':
3982
+ resolution: {integrity: sha512-T0XJMaRPOH3+LBbAfzR2jalckP1MSG/L9eUtY0DEzUyVaXJ/t6zN0nR7co5kz0Jko/nkSYCBRkz1djvjajVTTg==}
3983
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
3984
3985
'@vercel/oidc@3.0.3':
3986
resolution: {integrity: sha512-yNEQvPcVrK9sIe637+I0jD6leluPxzwJKx/Haw6F4H77CdDsszUn5V3o96LPziXkSNE2B83+Z3mjqGKBK/R6Gg==}
3987
engines: {node: '>= 20'}
3988
3989
+ '@vercel/oidc@3.0.5':
3990
+ resolution: {integrity: sha512-fnYhv671l+eTTp48gB4zEsTW/YtRgRPnkI2nT7x6qw5rkI1Lq2hTmQIpHPgyThI0znLK+vX2n9XxKdXZ7BUbbw==}
3991
+ engines: {node: '>= 20'}
3992
+
3993
'@vitest/expect@3.2.4':
3994
resolution: {integrity: sha512-Io0yyORnB6sikFlt8QW5K7slY4OjqNX9jmJQ02QDda8lyM6B5oNgVWoSoKPac8/kgnCUzuHQKrSLtu/uOqqrig==}
3995
@@ -3754,14 +4060,20 @@ packages:
4060
engines: {node: '>=0.4.0'}
4061
hasBin: true
4062
3757
- agent-base@7.1.3:
3758
- resolution: {integrity: sha512-jRR5wdylq8CkOe6hei19GGZnxM6rBGwFl3Bg0YItGDimvjGtAvdZk4Pu6Cl4u4Igsws4a1fd1Vq3ezrhn4KmFw==}
4063
+ agent-base@7.1.4:
4064
+ resolution: {integrity: sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==}
4065
engines: {node: '>= 14'}
4066
4067
agentkeepalive@4.6.0:
4068
resolution: {integrity: sha512-kja8j7PjmncONqaTsB8fQ+wE2mSU2DJ9D4XKoJ5PFWIdRMa6SLSN1ff4mOr4jCbfRSsxR4keIiySJU0N9T5hIQ==}
4069
engines: {node: '>= 8.0.0'}
4070
4071
+ ai@5.0.102:
4072
+ resolution: {integrity: sha512-snRK3nS5DESOjjpq7S74g8YszWVMzjagfHqlJWZsbtl9PyOS+2XUd8dt2wWg/jdaq/jh0aU66W1mx5qFjUQyEg==}
4073
+ engines: {node: '>=18'}
4074
+ peerDependencies:
4075
+ zod: ^3.25.76 || ^4.1.8
4076
+
4077
ai@5.0.60:
4078
resolution: {integrity: sha512-80U/3kmdBW6g+JkLXpz/P2EwkyEaWlPlYtuLUpx/JYK9F7WZh9NnkYoh1KvUi1Sbpo0NyurBTvX0a2AG9mmbDA==}
4079
engines: {node: '>=18'}
@@ -3774,9 +4086,20 @@ packages:
4086
peerDependencies:
4087
zod: ^3.25.76 || ^4.1.8
4088
4089
+ ajv-formats@3.0.1:
4090
+ resolution: {integrity: sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ==}
4091
+ peerDependencies:
4092
+ ajv: ^8.0.0
4093
+ peerDependenciesMeta:
4094
+ ajv:
4095
+ optional: true
4096
+
4097
ajv@6.12.6:
4098
resolution: {integrity: sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==}
4099
4100
+ ajv@8.17.1:
4101
+ resolution: {integrity: sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==}
4102
+
4103
ansi-colors@4.1.3:
4104
resolution: {integrity: sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==}
4105
engines: {node: '>=6'}
@@ -3785,16 +4108,16 @@ packages:
4108
resolution: {integrity: sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==}
4109
engines: {node: '>=8'}
4110
3788
- ansi-escapes@7.0.0:
3789
- resolution: {integrity: sha512-GdYO7a61mR0fOlAsvC9/rIHf7L96sBc6dEWzeOu+KAea5bZyQRPIpojrVoI4AXGJS/ycu/fBTdLrUkA4ODrvjw==}
4111
+ ansi-escapes@7.2.0:
4112
+ resolution: {integrity: sha512-g6LhBsl+GBPRWGWsBtutpzBYuIIdBkLEvad5C/va/74Db018+5TZiyA26cZJAr3Rft5lprVqOIPxf5Vid6tqAw==}
4113
engines: {node: '>=18'}
4114
4115
ansi-regex@5.0.1:
4116
resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==}
4117
engines: {node: '>=8'}
4118
3796
- ansi-regex@6.1.0:
3797
- resolution: {integrity: sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA==}
4119
+ ansi-regex@6.2.2:
4120
+ resolution: {integrity: sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==}
4121
engines: {node: '>=12'}
4122
4123
ansi-styles@4.3.0:
@@ -3805,12 +4128,12 @@ packages:
4128
resolution: {integrity: sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==}
4129
engines: {node: '>=10'}
4130
3808
- ansi-styles@6.2.1:
3809
- resolution: {integrity: sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==}
4131
+ ansi-styles@6.2.3:
4132
+ resolution: {integrity: sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==}
4133
engines: {node: '>=12'}
4134
3812
- ansis@4.1.0:
3813
- resolution: {integrity: sha512-BGcItUBWSMRgOCe+SVZJ+S7yTRG0eGt9cXAHev72yuGcY23hnLA7Bky5L/xLyPINoSN95geovfBkqoTlNZYa7w==}
4135
+ ansis@4.2.0:
4136
+ resolution: {integrity: sha512-HqZ5rWlFjGiV0tDm3UxxgNRqsOTniqoKZu0pIAfh7TZQMGuZK+hH0drySty0si0QXj1ieop4+SkSfPZBPPkHig==}
4137
engines: {node: '>=14'}
4138
4139
any-promise@1.3.0:
@@ -3851,8 +4174,8 @@ packages:
4174
resolution: {integrity: sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==}
4175
engines: {node: '>= 0.4'}
4176
3854
- axios@1.10.0:
3855
- resolution: {integrity: sha512-/1xYAC4MP/HEG+3duIhFr4ZQXR4sQXOIe+o6sdqzeykGLx6Upp/1p8MHqhINOvGeP7xyNHe7tsiJByc4SSVUxw==}
4177
+ axios@1.13.2:
4178
+ resolution: {integrity: sha512-VPk9ebNqPcy5lRGuSlKx752IlDatOjT9paPlm8A7yOuW2Fbvp4X3JznJtT4f0GzGLLiWE9W8onz51SqLYwzGaA==}
4179
4180
balanced-match@1.0.2:
4181
resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==}
@@ -3864,8 +4187,8 @@ packages:
4187
resolution: {integrity: sha512-pbnl5XzGBdrFU/wT4jqmJVPn2B6UHPBOhzMQkY/SPUPB6QtUXtmBHBIwCbXJol93mOpGMnQyP/+BB19q04xj7g==}
4188
engines: {node: '>=4'}
4189
3867
- bignumber.js@9.3.0:
3868
- resolution: {integrity: sha512-EM7aMFTXbptt/wZdMlBv2t8IViwQL+h6SLHosp8Yf0dqJMTnY6iL32opnAB6kAdL0SZPuvcAzFr31o0c/R3/RA==}
4190
+ bignumber.js@9.3.1:
4191
+ resolution: {integrity: sha512-Ko0uX15oIUS7wJ3Rb30Fs6SkVbLmPBAKdlm7q9+ak9bbIeFf0MwuBsQV6z7+X768/cHsfg+WlysDWJcmthjsjQ==}
4192
4193
binary-extensions@2.3.0:
4194
resolution: {integrity: sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==}
@@ -3884,8 +4207,8 @@ packages:
4207
resolution: {integrity: sha512-7rAxByjUMqQ3/bHJy7D6OGXvx/MMc4IqBn/X0fcM1QUcAItpZrBEYhWGem+tzXH90c+G01ypMcYJBO9Y30203g==}
4208
engines: {node: '>= 0.8', npm: 1.2.8000 || >= 1.4.16}
4209
3887
- body-parser@2.2.0:
3888
- resolution: {integrity: sha512-02qvAaxv8tp7fBa/mw1ga98OGm+eCbqzJOKoRt70sLmfEEi+jyBYVTDGfCL/k06/4EMk/z01gCe7HoCH/f2LTg==}
4210
+ body-parser@2.2.1:
4211
+ resolution: {integrity: sha512-nfDwkulwiZYQIGwxdy0RUmowMhKcFVcYXUU7m4QlKYim1rUtg83xm2yjZ40QjDuc291AJjjeSc9b++AWHSgSHw==}
4212
engines: {node: '>=18'}
4213
4214
brace-expansion@1.1.12:
@@ -3916,8 +4239,8 @@ packages:
4239
buffer@5.7.1:
4240
resolution: {integrity: sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==}
4241
3919
- bun-types@1.2.16:
3920
- resolution: {integrity: sha512-ciXLrHV4PXax9vHvUrkvun9VPVGOVwbbbBF/Ev1cXz12lyEZMoJpIJABOfPcN9gDJRaiKF9MVbSygLg4NXu3/A==}
4242
+ bun-types@1.3.3:
4243
+ resolution: {integrity: sha512-z3Xwlg7j2l9JY27x5Qn3Wlyos8YAp0kKRlrePAOjgjMGS5IG6E7Jnlx736vH9UVI4wUICwwhC9anYL++XeOgTQ==}
4244
4245
bundle-name@4.1.0:
4246
resolution: {integrity: sha512-tjwM5exMg6BGRI+kNmTntNsvdZS1X8BFYS6tnJ2hdH0kVxM6/eVZ2xy+FqStSWvYmtfFMDLIxurorHwDKfDz5Q==}
@@ -3961,19 +4284,19 @@ packages:
4284
resolution: {integrity: sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==}
4285
engines: {node: '>=10'}
4286
3964
- caniuse-lite@1.0.30001723:
3965
- resolution: {integrity: sha512-1R/elMjtehrFejxwmexeXAtae5UO9iSyFn6G/I806CYC/BLyyBk1EPhrKBkWhy6wM6Xnm47dSJQec+tLJ39WHw==}
4287
+ caniuse-lite@1.0.30001757:
4288
+ resolution: {integrity: sha512-r0nnL/I28Zi/yjk1el6ilj27tKcdjLsNqAOZr0yVjWPrSQyHgKI2INaEWw21bAQSv2LXRt1XuCS/GomNpWOxsQ==}
4289
3967
- chai@5.2.0:
3968
- resolution: {integrity: sha512-mCuXncKXk5iCLhfhwTc0izo0gtEmpz5CtG2y8GiOINBlMVS6v8TMRc5TaLWKS6692m9+dVVfzgeVxR5UxWHTYw==}
3969
- engines: {node: '>=12'}
4290
+ chai@5.3.3:
4291
+ resolution: {integrity: sha512-4zNhdJD/iOjSH0A05ea+Ke6MU5mmpQcbQsSOkgdaUMJ9zTlDTD/GYlwohmIE2u0gaxHYiVHEn1Fw9mZ/ktJWgw==}
4292
+ engines: {node: '>=18'}
4293
4294
chalk@4.1.2:
4295
resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==}
4296
engines: {node: '>=10'}
4297
3975
- chalk@5.4.1:
3976
- resolution: {integrity: sha512-zgVZuo2WcZgfUEmsn6eO3kINexW8RAE4maiQ8QNs8CtpPCSyMiYsULR3HQYkm3w8FIA3SberyMJMSldGsW+U3w==}
4298
+ chalk@5.6.2:
4299
+ resolution: {integrity: sha512-7NzBL0rN6fMUW+f7A6Io4h40qQlG+xGmtMxfbnH/K7TAtt8JQWVQK+6g0UXKMeVJoyV5EkkNsErQ8pVD3bLHbA==}
4300
engines: {node: ^12.17.0 || ^14.13 || >=16.0.0}
4301
4302
change-case@5.4.4:
@@ -3982,6 +4305,9 @@ packages:
4305
chardet@0.7.0:
4306
resolution: {integrity: sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==}
4307
4308
+ chardet@2.1.1:
4309
+ resolution: {integrity: sha512-PsezH1rqdV9VvyNhxxOW32/d75r01NY7TQCmOqomRo15ZSOKbpTFVsfjghxo6JloQUCGnH4k1LGu0R4yCLlWQQ==}
4310
+
4311
check-error@2.1.1:
4312
resolution: {integrity: sha512-OAlb+T7V4Op9OwdkjmguYRqncdlx5JiofwOAUkmTF+jNdHwzTaTs4sRAGpzLF3oOz5xAyDGrPgeIDFQmDOTiJw==}
4313
engines: {node: '>= 16'}
@@ -4009,6 +4335,10 @@ packages:
4335
resolution: {integrity: sha512-tRkV3HJ1ASwm19THiiLIXLO7Im7wlTuKnvkYaTkyoAPefqjNg7W7DHKUlGRxy9vxDvbyCYQkQozvptuMkGCg8A==}
4336
engines: {node: '>=4'}
4337
4338
+ cli-spinners@3.3.0:
4339
+ resolution: {integrity: sha512-/+40ljC3ONVnYIttjMWrlL51nItDAbBrq2upN8BPyvGU/2n5Oxw3tbNwORCaNuNqLJnxGqOfjUuhsv7l5Q4IsQ==}
4340
+ engines: {node: '>=18.20'}
4341
+
4342
cli-truncate@4.0.0:
4343
resolution: {integrity: sha512-nPdaFdQ0h/GEigbPClz11D0v/ZJEwxmeVZGeMo3Z5StPtUTkA9o1lD6QwoirYiSDzbcwn2XcjwmCp68W1IS4TA==}
4344
engines: {node: '>=18'}
@@ -4070,8 +4400,8 @@ packages:
4400
resolution: {integrity: sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==}
4401
engines: {node: '>= 6'}
4402
4073
- comment-json@4.2.5:
4074
- resolution: {integrity: sha512-bKw/r35jR3HGt5PEPm1ljsQQGyCrR8sFGNiN5L+ykDHdpO8Smxkrkla9Yi6NkQyUrb8V54PGhfMs6NrIwtxtdw==}
4403
+ comment-json@4.4.1:
4404
+ resolution: {integrity: sha512-r1To31BQD5060QdkC+Iheai7gHwoSZobzunqkf2/kQ6xIAfJyrKNAFUwdKvkK7Qgu7pVTKQEa7ok7Ed3ycAJgg==}
4405
engines: {node: '>= 6'}
4406
4407
composio-core@0.5.39:
@@ -4083,7 +4413,7 @@ packages:
4413
'@cloudflare/workers-types': '>=4.20240718.0'
4414
'@langchain/core': '>=0.2.18'
4415
'@langchain/openai': '>=0.2.5'
4086
- ai: '>=5.0.52'
4416
+ ai: '>=5.0.102'
4417
langchain: '>=0.2.11'
4418
openai: '>=4.50.0'
4419
@@ -4097,19 +4427,16 @@ packages:
4427
resolution: {integrity: sha512-5IKcdX0nnYavi6G7TtOhwkYzyjfJlatbjMjuLSfE2kYT5pMDOilZ4OvMhi637CcDICTmz3wARPoyhqyX1Y+XvA==}
4428
engines: {node: ^14.18.0 || >=16.10.0}
4429
4100
- console-table-printer@2.14.3:
4101
- resolution: {integrity: sha512-X5OCFnjYlXzRuC8ac5hPA2QflRjJvNKJocMhlnqK/Ap7q3DHXr0NJ0TGzwmEKOiOdJrjsSwEd0m+a32JAYPrKQ==}
4102
-
4103
- console-table-printer@2.14.6:
4104
- resolution: {integrity: sha512-MCBl5HNVaFuuHW6FGbL/4fB7N/ormCy+tQ+sxTrF6QtSbSNETvPuOVbkJBhzDgYhvjWGrTma4eYJa37ZuoQsPw==}
4430
+ console-table-printer@2.15.0:
4431
+ resolution: {integrity: sha512-SrhBq4hYVjLCkBVOWaTzceJalvn5K1Zq5aQA6wXC/cYjI3frKWNPEMK3sZsJfNNQApvCQmgBcc13ZKmFj8qExw==}
4432
4433
content-disposition@0.5.4:
4434
resolution: {integrity: sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==}
4435
engines: {node: '>= 0.6'}
4436
4110
- content-disposition@1.0.0:
4111
- resolution: {integrity: sha512-Au9nRL8VNUut/XSzbQA38+M78dzP4D+eqg3gfJHMIHHYa3bg067xj1KxMUWj+VULbiZMowKngFFbKczUrNJ1mg==}
4112
- engines: {node: '>= 0.6'}
4437
+ content-disposition@1.0.1:
4438
+ resolution: {integrity: sha512-oIXISMynqSqm241k6kcQ5UwttDILMK4BiurCfGEREw6+X9jkkpEe5T9FZaApyLGGOnFuyMWZpdolTXMtvEJ08Q==}
4439
+ engines: {node: '>=18'}
4440
4441
content-type@1.0.5:
4442
resolution: {integrity: sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==}
@@ -4130,13 +4457,13 @@ packages:
4457
resolution: {integrity: sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==}
4458
engines: {node: '>= 0.6'}
4459
4133
- cookie@1.0.2:
4134
- resolution: {integrity: sha512-9Kr/j4O16ISv8zBBhJoi4bXOYNTkFLOqSL3UDB0njXxCXNezjeyVrJyGOWtgfs/q2km1gwBcfH8q1yEGoMYunA==}
4460
+ cookie@1.1.0:
4461
+ resolution: {integrity: sha512-vXiThu1/rlos7EGu8TuNZQEg2e9TvhH9dmS4T4ZVzB7Ao1agEZ6EG3sn5n+hZRYUgduISd1HpngFzAZiDGm5vQ==}
4462
engines: {node: '>=18'}
4463
4137
- copy-anything@3.0.5:
4138
- resolution: {integrity: sha512-yCEafptTtb4bk7GLEQoM8KVJpxAfdBJYaXyzQEgQQQgYrZiDp8SJmGKlYza6CYjEDNstAdNdKA3UuoULlEbS6w==}
4139
- engines: {node: '>=12.13'}
4464
+ copy-anything@4.0.5:
4465
+ resolution: {integrity: sha512-7Vv6asjS4gMOuILabD3l739tsaxFQmC+a7pLZm02zyvs8p977bL3zEgq3yDk5rn9B0PbYgIv++jmHcuUab4RhA==}
4466
+ engines: {node: '>=18'}
4467
4468
core-util-is@1.0.3:
4469
resolution: {integrity: sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==}
@@ -4158,8 +4485,12 @@ packages:
4485
engines: {node: '>=4'}
4486
hasBin: true
4487
4161
- csstype@3.1.3:
4162
- resolution: {integrity: sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==}
4488
+ csstype@3.2.3:
4489
+ resolution: {integrity: sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==}
4490
+
4491
+ data-uri-to-buffer@4.0.1:
4492
+ resolution: {integrity: sha512-0R9ikRb668HB7QDxT1vkpuUBtqc53YyAwMwGeUFKRojY/NWKvdZ+9UYtRfGmhqNbRkTSVpMbmyhXipFFv2cb/A==}
4493
+ engines: {node: '>= 12'}
4494
4495
date-fns@3.6.0:
4496
resolution: {integrity: sha512-fRHTG8g/Gif+kSh50gaGEdToemgfj74aRX3swtiouboip5JDLAyDE9F11nHMIcvOaXeOC6D7SpNhi7uFyB7Uww==}
@@ -4178,8 +4509,8 @@ packages:
4509
supports-color:
4510
optional: true
4511
4181
- debug@4.4.1:
4182
- resolution: {integrity: sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ==}
4512
+ debug@4.4.3:
4513
+ resolution: {integrity: sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==}
4514
engines: {node: '>=6.0'}
4515
peerDependencies:
4516
supports-color: '*'
@@ -4222,12 +4553,12 @@ packages:
4553
resolution: {integrity: sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==}
4554
engines: {node: '>=0.10.0'}
4555
4225
- default-browser-id@5.0.0:
4226
- resolution: {integrity: sha512-A6p/pu/6fyBcA1TRz/GqWYPViplrftcW2gZC9q79ngNCKAeR/X3gcEdXQHl4KNXV+3wgIJ1CPkJQ3IHM6lcsyA==}
4556
+ default-browser-id@5.0.1:
4557
+ resolution: {integrity: sha512-x1VCxdX4t+8wVfd1so/9w+vQ4vx7lKd2Qp5tDRutErwmR85OgmfX7RlLRMWafRMY7hbEiXIbudNrjOAPa/hL8Q==}
4558
engines: {node: '>=18'}
4559
4229
- default-browser@5.2.1:
4230
- resolution: {integrity: sha512-WY/3TUME0x3KPYdRRxEJJvXRHV4PyPoUsxtZa78lwItwRQRHhd2U9xOscaT/YTf8uCXIAjeJOFBVEh/7FtD8Xg==}
4560
+ default-browser@5.4.0:
4561
+ resolution: {integrity: sha512-XDuvSq38Hr1MdN47EDvYtx3U0MTqpCEn+F6ft8z2vYDzMrvQhVp0ui9oQdqW3MvK3vqUETglt1tVGgjLuJ5izg==}
4562
engines: {node: '>=18'}
4563
4564
define-data-property@1.1.4:
@@ -4266,16 +4597,12 @@ packages:
4597
engines: {node: '>=0.10'}
4598
hasBin: true
4599
4269
- detect-libc@2.0.4:
4270
- resolution: {integrity: sha512-3UDv+G9CsCKO1WKMGw9fwq/SWJYbI0c5Y7LU1AXYoDdbhE2AHQ6N6Nb34sG8Fj7T5APy8qXDCKuuIHd1BR0tVA==}
4271
- engines: {node: '>=8'}
4272
-
4600
detect-libc@2.1.2:
4601
resolution: {integrity: sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==}
4602
engines: {node: '>=8'}
4603
4277
- devalue@5.3.2:
4278
- resolution: {integrity: sha512-UDsjUbpQn9kvm68slnrs+mfxwFkIflOhkanmyabZ8zOYk8SMEIbJ3TK+88g70hSIeytu4y18f0z/hYHMTrXIWw==}
4604
+ devalue@5.5.0:
4605
+ resolution: {integrity: sha512-69sM5yrHfFLJt0AZ9QqZXGCPfJ7fQjvpln3Rq5+PS03LD32Ost1Q9N+eEnaQwGRIriKkMImXD56ocjQmfjbV3w==}
4606
4607
didyoumean@1.2.2:
4608
resolution: {integrity: sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==}
@@ -4300,10 +4627,6 @@ packages:
4627
domutils@3.2.2:
4628
resolution: {integrity: sha512-6kZKyUajlDuqlHKVX1w7gyslj9MPIXzIFiz/rGu35uC1wMi+kMhQwGhl4lt9unC9Vb9INnY9Z3/ZA3+FhASLaw==}
4629
4303
- dotenv@16.5.0:
4304
- resolution: {integrity: sha512-m/C+AwOAr9/W1UOIZUo232ejMNnJAJtYQjUbHoNTBNTJSvqzzDh7vnrei3o3r3m9blf6ZoDkvcw0VmozNRFJxg==}
4305
- engines: {node: '>=12'}
4306
-
4630
dotenv@16.6.1:
4631
resolution: {integrity: sha512-uBq4egWHTcTt33a72vpSG0z3HnPuIl6NqYcTrKEg2azoEyl2hpW0zqlxysq2pK9HlDIHyHyakeYaYnSAwd8bow==}
4632
engines: {node: '>=12'}
@@ -4321,11 +4644,11 @@ packages:
4644
ee-first@1.1.1:
4645
resolution: {integrity: sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==}
4646
4324
- effect@3.16.16:
4325
- resolution: {integrity: sha512-q8jsuAJykQJJ9jDkR9VaAR1JeHnEDn49g6+LkveIcfW3nIPUJw6BrC9ZPaVCJWmU23vKoVj9XqJmC/EW8kiI8g==}
4647
+ effect@3.19.6:
4648
+ resolution: {integrity: sha512-Eh1E/CI+xCAcMSDC5DtyE29yWJINC0zwBbwHappQPorjKyS69rCA8qzpsHpfhKnPDYgxdg8zkknii8mZ+6YMQA==}
4649
4327
- emoji-regex@10.4.0:
4328
- resolution: {integrity: sha512-EC+0oUMY1Rqm4O6LLrgjtYDvcVYTy7chDnM4Q7030tP4Kwj3u/pR6gP9ygnp2CJMK5Gq+9Q2oqmrFJAz01DXjw==}
4650
+ emoji-regex@10.6.0:
4651
+ resolution: {integrity: sha512-toUI84YS5YmxW219erniWD0CIVOo46xGKColeNQRgOzDorgBi1v4D71/OFzgD9GO2UGKIv1C3Sp8DAn0+j5w7A==}
4652
4653
emoji-regex@8.0.0:
4654
resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==}
@@ -4378,13 +4701,18 @@ packages:
4701
resolution: {integrity: sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==}
4702
engines: {node: '>= 0.4'}
4703
4704
+ esbuild@0.25.12:
4705
+ resolution: {integrity: sha512-bbPBYYrtZbkt6Os6FiTLCTFxvq4tt3JKall1vRwshA3fdVztsLAatFaZobhkBC8/BrPetoa0oksYoKXoG4ryJg==}
4706
+ engines: {node: '>=18'}
4707
+ hasBin: true
4708
+
4709
esbuild@0.25.4:
4710
resolution: {integrity: sha512-8pgjLUcUjcgDg+2Q4NYXnPbo/vncAY4UmyaCm0jZevERqCHZIaWwdJHkf8XQtu4AxSKCdvrUbT0XUr1IdZzI8Q==}
4711
engines: {node: '>=18'}
4712
hasBin: true
4713
4386
- esbuild@0.25.5:
4387
- resolution: {integrity: sha512-P8OtKZRv/5J5hhz0cUAdu/cLuPIKXpQl1R9pZtvmHWQvrAUVd0UNIPT4IB4W3rNOqVO0rlqHmCIbSwxh/c9yUQ==}
4714
+ esbuild@0.27.0:
4715
+ resolution: {integrity: sha512-jd0f4NHbD6cALCyGElNpGAOtWxSq46l9X/sWB0Nzd5er4Kz2YTm+Vl0qKFT9KUJvD8+fiO8AvoHhFvEatfVixA==}
4716
engines: {node: '>=18'}
4717
hasBin: true
4718
@@ -4415,8 +4743,8 @@ packages:
4743
resolution: {integrity: sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==}
4744
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
4745
4418
- eslint@9.29.0:
4419
- resolution: {integrity: sha512-GsGizj2Y1rCWDu6XoEekL3RLilp0voSePurjZIkxL3wlm5o5EC9VpgaP7lrCvjnkuLvzFBQWB3vWB3K5KQTveQ==}
4746
+ eslint@9.39.1:
4747
+ resolution: {integrity: sha512-BhHmn2yNOFA9H9JmmIVKJmd288g9hrVRDkdoIgRCRuSySRUHH7r/DI6aAXW9T1WwUuY3DFgrcaqB+deURBLR5g==}
4748
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
4749
hasBin: true
4750
peerDependencies:
@@ -4487,15 +4815,15 @@ packages:
4815
resolution: {integrity: sha512-Fqs7ChZm72y40wKjOFXBKg7nJZvQJmewP5/7LtePDdnah/+FH9Hp5sgMujSCMPXlxOAW2//1jrW9pnsY7o20vQ==}
4816
engines: {node: '>=18'}
4817
4490
- expect-type@1.2.1:
4491
- resolution: {integrity: sha512-/kP8CAwxzLVEeFrMm4kMmy4CCDlpipyA7MYLVrdJIkV0fYF0UaigQHRsxHiuY/GEea+bh4KSv3TIlgr+2UL6bw==}
4818
+ expect-type@1.2.2:
4819
+ resolution: {integrity: sha512-JhFGDVJ7tmDJItKhYgJCGLOWjuK9vPxiXoUFLwLDc99NlmklilbiQJwoctZtt13+xMw91MCk/REan6MWHqDjyA==}
4820
engines: {node: '>=12.0.0'}
4821
4494
- express-rate-limit@7.5.0:
4495
- resolution: {integrity: sha512-eB5zbQh5h+VenMPM3fh+nw1YExi5nMr6HUCR62ELSP11huvxm/Uir1H1QEyTkk5QX6A58pX6NmaTMceKZ0Eodg==}
4822
+ express-rate-limit@7.5.1:
4823
+ resolution: {integrity: sha512-7iN8iPMDzOMHPUYllBEsQdWVB6fPDMPqwjBaFrgr4Jgr/+okjvzAy+UHlYYL/Vs0OsOrMkwS6PJDkFlJwoxUnw==}
4824
engines: {node: '>= 16'}
4825
peerDependencies:
4498
- express: ^4.11 || 5 || ^5.0.0-beta.1
4826
+ express: '>= 4.11'
4827
4828
express@4.21.2:
4829
resolution: {integrity: sha512-28HqgMZAmih1Czt9ny7qr6ek2qddF4FclbMzwhCREB6OFfH+rXAnuNCwo1/wFvrtbgsQDb4kSbX9de9lFbrXnA==}
@@ -4505,8 +4833,8 @@ packages:
4833
resolution: {integrity: sha512-DT9ck5YIRU+8GYzzU5kT3eHGA5iL+1Zd0EutOmTE9Dtk+Tvuzd23VBU+ec7HPNSTxXYO55gPV/hq4pSBJDjFpA==}
4834
engines: {node: '>= 18'}
4835
4508
- exsolve@1.0.7:
4509
- resolution: {integrity: sha512-VO5fQUzZtI6C+vx4w/4BWJpg3s/5l+6pRQEHzFRM8WFi4XffSP1Z+4qi7GbjWbvRQEbdIco5mIMq+zX4rPuLrw==}
4836
+ exsolve@1.0.8:
4837
+ resolution: {integrity: sha512-LmDxfWXwcTArk8fUEnOfSZpHOJ6zOMUJKOtFLFqJLoKJetuQG874Uc7/Kki7zFLzYybmZhp1M7+98pfMqeX8yA==}
4838
4839
extend-shallow@2.0.1:
4840
resolution: {integrity: sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==}
@@ -4518,6 +4846,9 @@ packages:
4846
extendable-error@0.1.7:
4847
resolution: {integrity: sha512-UOiS2in6/Q0FK0R0q6UY9vYpQ21mr/Qn1KOnte7vsACuNJf514WvCCUHSRCPcgjPT2bAhNIJdlE6bVap1GKmeg==}
4848
4849
+ extended-eventsource@1.7.0:
4850
+ resolution: {integrity: sha512-s8rtvZuYcKBpzytHb5g95cHbZ1J99WeMnV18oKc5wKoxkHzlzpPc/bNAm7Da2Db0BDw0CAu1z3LpH+7UsyzIpw==}
4851
+
4852
external-editor@3.1.0:
4853
resolution: {integrity: sha512-hMQ4CX1p1izmuLYyZqLMO/qGNw10wSv9QDCPfzXfyFrOaCSSoRfqE1Kf1s5an66J5JZC62NewG+mK49jOCtQew==}
4854
engines: {node: '>=4'}
@@ -4545,21 +4876,21 @@ packages:
4876
fast-levenshtein@2.0.6:
4877
resolution: {integrity: sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==}
4878
4548
- fast-redact@3.5.0:
4549
- resolution: {integrity: sha512-dwsoQlS7h9hMeYUq1W++23NDcBLV4KqONnITDV9DjfS3q1SgDGVrBdvvTLUotWtPSD7asWDV9/CmsZPy8Hf70A==}
4550
- engines: {node: '>=6'}
4551
-
4879
fast-safe-stringify@2.1.1:
4880
resolution: {integrity: sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA==}
4881
4882
+ fast-uri@3.1.0:
4883
+ resolution: {integrity: sha512-iPeeDKJSWf4IEOasVVrknXpaBV0IApz/gp7S2bb7Z4Lljbl2MGJRqInZiUrQwV16cpzw/D3S5j5Julj/gT52AA==}
4884
+
4885
fastq@1.19.1:
4886
resolution: {integrity: sha512-GwLTyxkCXjXbxqIhTsMI2Nui8huMPtnxg7krajPJAjnEG/iiOS7i+zCtWGZR9G0NBKbXKh6X9m9UIsYX/N6vvQ==}
4887
4888
fd-slicer@1.1.0:
4889
resolution: {integrity: sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g==}
4890
4561
- fdir@6.4.6:
4562
- resolution: {integrity: sha512-hiFoqpyZcfNm1yc4u8oWCf9A2c4D3QjCrks3zmoVKVxpQRzmPNar1hUJcBG2RQHvEVGDN+Jm81ZheVLAQMK6+w==}
4891
+ fdir@6.5.0:
4892
+ resolution: {integrity: sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==}
4893
+ engines: {node: '>=12.0.0'}
4894
peerDependencies:
4895
picomatch: ^3 || ^4
4896
peerDependenciesMeta:
@@ -4570,6 +4901,10 @@ packages:
4901
resolution: {integrity: sha512-WxATZ1T+2lQvp/i1nNvYMU6bVWY/xHODsgrWdLEEqitl89wriqLRZQHL7Fu0zF2/Ne8HcfEOOmcggS0hLbx52Q==}
4902
hasBin: true
4903
4904
+ fetch-blob@3.2.0:
4905
+ resolution: {integrity: sha512-7yAQpD2UMJzLi1Dqv7qFYnPbaPx7ZfFK6PiIxQ4PfkGPyNyl2Ugx+a/umUonmKqjhM4DnfbMvdX6otXq83soQQ==}
4906
+ engines: {node: ^12.20 || >= 14.13}
4907
+
4908
fflate@0.8.2:
4909
resolution: {integrity: sha512-cPJU47OaAoCbg0pBvzsgpTPhmhqI5eJjh/JIu8tPj5q+T7iLvW/JAYUqmE7KOB4R1ZyEhzBaIQpQpardBF5z8A==}
4910
@@ -4601,8 +4936,8 @@ packages:
4936
resolution: {integrity: sha512-/t88Ty3d5JWQbWYgaOGCCYfXRwV1+be02WqYYlL6h0lEiUAMPM8o8qKGO01YIkOHzka2up08wvgYD0mDiI+q3Q==}
4937
engines: {node: '>= 0.8'}
4938
4604
- find-my-way-ts@0.1.5:
4605
- resolution: {integrity: sha512-4GOTMrpGQVzsCH2ruUn2vmwzV/02zF4q+ybhCIrw/Rkt3L8KWcycdC6aJMctJzwN4fXD4SD5F/4B9Sksh5rE0A==}
4939
+ find-my-way-ts@0.1.6:
4940
+ resolution: {integrity: sha512-a85L9ZoXtNAey3Y6Z+eBWW658kO/MwR7zIafkIUPUMf3isZG0NCs2pjW2wtjxAKuJPxMAsHUIP4ZPGv0o5gyTA==}
4941
4942
find-up@4.1.0:
4943
resolution: {integrity: sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==}
@@ -4622,8 +4957,8 @@ packages:
4957
flatted@3.3.3:
4958
resolution: {integrity: sha512-GX+ysw4PBCz0PzosHDepZGANEuFCMLrnRTiEy9McGjmkCQYwRq4A/X786G/fjM/+OjsWSU1ZrY5qyARZmO/uwg==}
4959
4625
- follow-redirects@1.15.9:
4626
- resolution: {integrity: sha512-gew4GsXizNgdoRyqmyfMHyAmXsZDk6mHkSxZFCzW9gwlbtOW44CDtYavM+y+72qD/Vq2l550kMF52DT8fOLJqQ==}
4960
+ follow-redirects@1.15.11:
4961
+ resolution: {integrity: sha512-deG2P0JfjrTxl50XGCDyfI97ZGVCxIpfKYmfyrQ54n5FO/0gfIES8C/Psl6kWVDolizcaaxZJnTS0QSMxvnsBQ==}
4962
engines: {node: '>=4.0'}
4963
peerDependencies:
4964
debug: '*'
@@ -4650,6 +4985,10 @@ packages:
4985
resolution: {integrity: sha512-0iirZp3uVDjVGt9p49aTaqjk84TrglENEDuqfdlZQ1roC9CWlPk6Avf8EEnZNcAqPonwkG35x4n3ww/1THYAeQ==}
4986
engines: {node: '>= 12.20'}
4987
4988
+ formdata-polyfill@4.0.10:
4989
+ resolution: {integrity: sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g==}
4990
+ engines: {node: '>=12.20.0'}
4991
+
4992
forwarded-parse@2.1.2:
4993
resolution: {integrity: sha512-alTFZZQDKMporBH77856pXgzhEzaUVmLCDk+egLgIgHst3Tpndzz8MnKe+GzRJRfvVdn69HhpW7cmXzvtLvJAw==}
4994
@@ -4688,16 +5027,24 @@ packages:
5027
resolution: {integrity: sha512-LDODD4TMYx7XXdpwxAVRAIAuB0bzv0s+ywFonY46k126qzQHT9ygyoa9tncmOiQmmDrik65UYsEkv3lbfqQ3yQ==}
5028
engines: {node: '>=14'}
5029
5030
+ gaxios@7.1.3:
5031
+ resolution: {integrity: sha512-YGGyuEdVIjqxkxVH1pUTMY/XtmmsApXrCVv5EU25iX6inEPbV+VakJfLealkBtJN69AQmh1eGOdCl9Sm1UP6XQ==}
5032
+ engines: {node: '>=18'}
5033
+
5034
gcp-metadata@6.1.1:
5035
resolution: {integrity: sha512-a4tiq7E0/5fTjxPAaH4jpjkSv/uCaU2p5KC6HVGrvl0cDjA8iBZv4vv1gyzlmK0ZUKqwpOyQMKzZQe3lTit77A==}
5036
engines: {node: '>=14'}
5037
5038
+ gcp-metadata@8.1.2:
5039
+ resolution: {integrity: sha512-zV/5HKTfCeKWnxG0Dmrw51hEWFGfcF2xiXqcA3+J90WDuP0SvoiSO5ORvcBsifmx/FoIjgQN3oNOGaQ5PhLFkg==}
5040
+ engines: {node: '>=18'}
5041
+
5042
get-caller-file@2.0.5:
5043
resolution: {integrity: sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==}
5044
engines: {node: 6.* || 8.* || >= 10.*}
5045
4699
- get-east-asian-width@1.3.0:
4700
- resolution: {integrity: sha512-vpeMIQKxczTD/0s2CdEWHcb0eeJe6TFjxb+J5xgX7hScxqrGuyjmv4c1D4A/gelKfyox0gJJwIHF+fLjeaM8kQ==}
5046
+ get-east-asian-width@1.4.0:
5047
+ resolution: {integrity: sha512-QZjmEOC+IT1uk6Rx0sX22V6uHWVwbdbxf1faPqJ1QhLdGgsRGCZoyaQBm/piRdJy/D2um6hM1UP7ZEeQ4EkP+Q==}
5048
engines: {node: '>=18'}
5049
5050
get-intrinsic@1.3.0:
@@ -4716,8 +5063,8 @@ packages:
5063
resolution: {integrity: sha512-VaUJspBffn/LMCJVoMvSAdmscJyS1auj5Zulnn5UoYcY531UWmdwhRWkcGKnGU93m5HSXP9LP2usOryrBtQowA==}
5064
engines: {node: '>=16'}
5065
4719
- get-tsconfig@4.10.1:
4720
- resolution: {integrity: sha512-auHyJ4AgMz7vgS8Hp3N6HXSmlMdUyhSUrfBF16w153rxtLIEOE+HGqaBppczZvnHLqQJfiHotCYpNhl0lUROFQ==}
5066
+ get-tsconfig@4.13.0:
5067
+ resolution: {integrity: sha512-1VKTZJCwBrvbd+Wn3AOgQP/2Av+TfTCOlE4AcRJE72W1ksZXbAx8PPBR9RzgTeSPzlPMHrbANMH3LbltH73wxQ==}
5068
5069
glob-parent@5.1.2:
5070
resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==}
@@ -4730,30 +5077,34 @@ packages:
5077
glob-to-regexp@0.4.1:
5078
resolution: {integrity: sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==}
5079
4733
- glob@10.4.5:
4734
- resolution: {integrity: sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==}
5080
+ glob@10.5.0:
5081
+ resolution: {integrity: sha512-DfXN8DfhJ7NH3Oe7cFmu3NCu1wKbkReJ8TorzSAFbSKrlNaQSKfIzqYqVY8zlbs2NLBbWpRiU52GX2PbaBVNkg==}
5082
hasBin: true
5083
5084
globals@14.0.0:
5085
resolution: {integrity: sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==}
5086
engines: {node: '>=18'}
5087
4741
- globals@16.2.0:
4742
- resolution: {integrity: sha512-O+7l9tPdHCU320IigZZPj5zmRCFG9xHmx9cU8FqU2Rp+JN714seHV+2S9+JslCpY4gJwU2vOGox0wzgae/MCEg==}
5088
+ globals@16.5.0:
5089
+ resolution: {integrity: sha512-c/c15i26VrJ4IRt5Z89DnIzCGDn9EcebibhAOjw5ibqEHsE1wLUgkPn9RDmNcUKyU87GeaL633nyJ+pplFR2ZQ==}
5090
engines: {node: '>=18'}
5091
5092
globby@11.1.0:
5093
resolution: {integrity: sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==}
5094
engines: {node: '>=10'}
5095
4749
- google-auth-library@9.15.1:
4750
- resolution: {integrity: sha512-Jb6Z0+nvECVz+2lzSMt9u98UsoakXxA2HGHMCxh+so3n90XgYWkq5dur19JAJV7ONiJY22yBTyJB1TSkvPq9Ng==}
4751
- engines: {node: '>=14'}
5096
+ google-auth-library@10.5.0:
5097
+ resolution: {integrity: sha512-7ABviyMOlX5hIVD60YOfHw4/CxOfBhyduaYB+wbFWCWoni4N7SLcV46hrVRktuBbZjFC9ONyqamZITN7q3n32w==}
5098
+ engines: {node: '>=18'}
5099
5100
google-logging-utils@0.0.2:
5101
resolution: {integrity: sha512-NEgUnEcBiP5HrPzufUkBzJOD/Sxsco3rLNo1F1TNf7ieU8ryUzBhqba8r756CjLX7rn3fHl6iLEwPYuqpoKgQQ==}
5102
engines: {node: '>=14'}
5103
5104
+ google-logging-utils@1.1.3:
5105
+ resolution: {integrity: sha512-eAmLkjDjAFCVXg7A1unxHsLf961m6y17QFqXqAXGj/gVkKFrEICfStRfwUlGNfeCEjNRa32JEWOUTlYXPyyKvA==}
5106
+ engines: {node: '>=14'}
5107
+
5108
gopd@1.2.0:
5109
resolution: {integrity: sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==}
5110
engines: {node: '>= 0.4'}
@@ -4768,18 +5119,14 @@ packages:
5119
resolution: {integrity: sha512-5v6yZd4JK3eMI3FqqCouswVqwugaA9r4dNZB1wwcmrD02QkV5H0y7XBQW8QwQqEaZY1pM9aqORSORhJRdNK44Q==}
5120
engines: {node: '>=6.0'}
5121
4771
- gtoken@7.1.0:
4772
- resolution: {integrity: sha512-pCcEwRi+TKpMlxAQObHDQ56KawURgyAf6jtIY046fJ5tIv3zDe/LEIubckAO8fj6JnAxLdmWkUfNyulQ2iKdEw==}
4773
- engines: {node: '>=14.0.0'}
5122
+ gtoken@8.0.0:
5123
+ resolution: {integrity: sha512-+CqsMbHPiSTdtSO14O51eMNlrp9N79gmeqmXeouJOhfucAedHw9noVe/n5uJk3tbKE6a+6ZCQg3RPhVhHByAIw==}
5124
+ engines: {node: '>=18'}
5125
5126
has-flag@4.0.0:
5127
resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==}
5128
engines: {node: '>=8'}
5129
4779
- has-own-prop@2.0.0:
4780
- resolution: {integrity: sha512-Pq0h+hvsVm6dDEa8x82GnLSYHOzNDt7f0ddFa3FqcQlgzEiptPqL+XrOJNavjOzSYiYWIrgeVYYgGlLmnxwilQ==}
4781
- engines: {node: '>=8'}
4782
-
5130
has-property-descriptors@1.0.2:
5131
resolution: {integrity: sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==}
5132
@@ -4858,12 +5205,16 @@ packages:
5205
resolution: {integrity: sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==}
5206
engines: {node: '>= 0.8'}
5207
5208
+ http-errors@2.0.1:
5209
+ resolution: {integrity: sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==}
5210
+ engines: {node: '>= 0.8'}
5211
+
5212
https-proxy-agent@7.0.6:
5213
resolution: {integrity: sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==}
5214
engines: {node: '>= 14'}
5215
4865
- human-id@4.1.1:
4866
- resolution: {integrity: sha512-3gKm/gCSUipeLsRYZbbdA1BD83lBoWUkZ7G9VFrhWPAU76KwYo5KR8V28bpoPm/ygy0x5/GCbpRQdY7VLYCoIg==}
5216
+ human-id@4.1.2:
5217
+ resolution: {integrity: sha512-v/J+4Z/1eIJovEBdlV5TYj1IR+ZiohcYGRY+qN/oC9dAfKzVT023N/Bgw37hrKCoVRBvk3bqyzpr2PP5YeTMSg==}
5218
hasBin: true
5219
5220
human-signals@5.0.0:
@@ -4882,8 +5233,8 @@ packages:
5233
resolution: {integrity: sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==}
5234
engines: {node: '>=0.10.0'}
5235
4885
- iconv-lite@0.6.3:
4886
- resolution: {integrity: sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==}
5236
+ iconv-lite@0.7.0:
5237
+ resolution: {integrity: sha512-cf6L2Ds3h57VVmkZe+Pn+5APsT7FpqJtEhhieDCvrE2MK5Qk9MyffgQyuxQTm6BChfeZNtcOLHp9IcWRVcIcBQ==}
5238
engines: {node: '>=0.10.0'}
5239
5240
ieee754@1.2.1:
@@ -4901,8 +5252,8 @@ packages:
5252
resolution: {integrity: sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==}
5253
engines: {node: '>=6'}
5254
4904
- import-in-the-middle@1.14.2:
4905
- resolution: {integrity: sha512-5tCuY9BV8ujfOpwtAGgsTx9CGUapcFMEEyByLv1B+v2+6DhAcw+Zr0nhQT7uwaZ7DiourxFEscghOR8e1aPLQw==}
5255
+ import-in-the-middle@1.15.0:
5256
+ resolution: {integrity: sha512-bpQy+CrsRmYmoPMAE/0G33iwRqwW4ouqdRg8jgbH3aKuCtOc8lxgmYXg2dMM92CRiGP660EtBcymH/eVUpCSaA==}
5257
5258
imurmurhash@0.1.4:
5259
resolution: {integrity: sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==}
@@ -4912,8 +5263,8 @@ packages:
5263
resolution: {integrity: sha512-m6FAo/spmsW2Ab2fU35JTYwtOKa2yAwXSwgjSv1TJzh4Mh7mC3lzAOVLBprb72XsTrgkEIsl7YrFNAiDiRhIGg==}
5264
engines: {node: '>=12'}
5265
4915
- index-to-position@1.1.0:
4916
- resolution: {integrity: sha512-XPdx9Dq4t9Qk1mTMbWONJqU7boCoumEH7fRET37HX5+khDUl3J2W6PdALxhILYlIYx2amlwYcRPp28p0tSiojg==}
5266
+ index-to-position@1.2.0:
5267
+ resolution: {integrity: sha512-Yg7+ztRkqslMAS2iFaU+Oa4KTSidr63OsFGlOrJoW981kIYO3CGCS3wA95P1mUi/IVSJkn0D479KTJpVpvFNuw==}
5268
engines: {node: '>=18'}
5269
5270
inherits@2.0.4:
@@ -4931,8 +5282,8 @@ packages:
5282
resolution: {integrity: sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==}
5283
engines: {node: '>= 0.10'}
5284
4934
- is-arrayish@0.3.2:
4935
- resolution: {integrity: sha512-eVRqCvVlZbuw3GrM63ovNSNAeA1K16kaR/LRY/92w0zxQ5/1YzwblUX652i4Xs9RwAGjW9d9y6X88t8OaAJfWQ==}
5285
+ is-arrayish@0.3.4:
5286
+ resolution: {integrity: sha512-m6UrgzFVUYawGBh1dUsWR5M2Clqic9RVXC/9f8ceNlv2IcO9j9J/z8UoCLPqtsPBFNzEpfR3xftohbfqDx8EQA==}
5287
5288
is-binary-path@2.1.0:
5289
resolution: {integrity: sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==}
@@ -4972,8 +5323,8 @@ packages:
5323
resolution: {integrity: sha512-O4L094N2/dZ7xqVdrXhh9r1KODPJpFms8B5sGdJLPy664AgvXsreZUyCQQNItZRDlYug4xStLjNp/sz3HvBowQ==}
5324
engines: {node: '>=12'}
5325
4975
- is-fullwidth-code-point@5.0.0:
4976
- resolution: {integrity: sha512-OVa3u9kkBbw7b8Xw5F9P+D/T9X+Z4+JruYVNapTjPYZYUznQ5YfWeFkOj606XYYW8yugTfC8Pj0hYqvi4ryAhA==}
5326
+ is-fullwidth-code-point@5.1.0:
5327
+ resolution: {integrity: sha512-5XHYaSyiqADb4RnZ1Bdad6cPp8Toise4TzEjcOYDHZkTCbKgiUl7WTUCpNWHuxmDt91wnsZBc9xinNzopv3JMQ==}
5328
engines: {node: '>=18'}
5329
5330
is-glob@4.0.3:
@@ -4985,6 +5336,10 @@ packages:
5336
engines: {node: '>=14.16'}
5337
hasBin: true
5338
5339
+ is-interactive@2.0.0:
5340
+ resolution: {integrity: sha512-qP1vozQRI+BMOPcjFzrjXuQvdak2pHNUMZoeG2eRbiSqyvbEf/wQtEOTOX1guk6E3t36RkaqiSt8A/6YElNxLQ==}
5341
+ engines: {node: '>=12'}
5342
+
5343
is-natural-number@4.0.1:
5344
resolution: {integrity: sha512-Y4LTamMe0DDQIIAlaer9eKebAlDSV6huy+TWhJVPlzZh2o4tRP5SQWFlLn5N0To4mDD22/qdOq+veo1cSISLgQ==}
5345
@@ -5019,9 +5374,13 @@ packages:
5374
resolution: {integrity: sha512-p3EcsicXjit7SaskXHs1hA91QxgTw46Fv6EFKKGS5DRFLD8yKnohjF3hxoju94b/OcMZoQukzpPpBE9uLVKzgQ==}
5375
engines: {node: '>= 0.4'}
5376
5022
- is-what@4.1.16:
5023
- resolution: {integrity: sha512-ZhMwEosbFJkA0YhFnNDgTM4ZxDRsS6HqTo7qsZM08fehyRYIYa0yHu5R6mgo1n/8MgaPBXiPimPD77baVFYg+A==}
5024
- engines: {node: '>=12.13'}
5377
+ is-unicode-supported@2.1.0:
5378
+ resolution: {integrity: sha512-mE00Gnza5EEB3Ds0HfMyllZzbBrmLOX3vfWoj9A9PEnTfratQ/BcaJOuMhnkhjXvb2+FkY3VuHqtAGpTPmglFQ==}
5379
+ engines: {node: '>=18'}
5380
+
5381
+ is-what@5.5.0:
5382
+ resolution: {integrity: sha512-oG7cgbmg5kLYae2N5IVd3jm2s+vldjxJzK1pcu9LfpGuQ93MQSzo0okvRna+7y5ifrD+20FE8FvjusyGaz14fw==}
5383
+ engines: {node: '>=18'}
5384
5385
is-windows@1.0.2:
5386
resolution: {integrity: sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==}
@@ -5059,9 +5418,6 @@ packages:
5418
resolution: {integrity: sha512-X2BB11YZtrRqY4EnQcLX5Rh373zbK4alC1FW7D7MBhL2gtcC17cTnr6DmfHZeS0s2rTHjUTMMHfG7gO8SSdw+g==}
5419
engines: {node: '>=0.10.0'}
5420
5062
- js-tiktoken@1.0.20:
5063
- resolution: {integrity: sha512-Xlaqhhs8VfCd6Sh7a1cFkZHQbYTLCwVJJWiHVxBYzLPxW0XsoxBy1hitmjkdIjD3Aon5BXLHFwU5O8WUx6HH+A==}
5064
-
5421
js-tiktoken@1.0.21:
5422
resolution: {integrity: sha512-biOj/6M5qdgx5TKjDnFT1ymSpM5tbd3ylwDtrQvFQSu0Z7bBYko2dF+W/aUkXUPuk6IVpRxk/3Q2sHOzGlS36g==}
5423
@@ -5081,8 +5437,12 @@ packages:
5437
json-buffer@3.0.1:
5438
resolution: {integrity: sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==}
5439
5084
- json-schema-to-zod@2.6.1:
5085
- resolution: {integrity: sha512-uiHmWH21h9FjKJkRBntfVGTLpYlCZ1n98D0izIlByqQLqpmkQpNTBtfbdP04Na6+43lgsvrShFh2uWLkQDKJuQ==}
5440
+ json-schema-to-ts@3.1.1:
5441
+ resolution: {integrity: sha512-+DWg8jCJG2TEnpy7kOm/7/AxaYoaRbjVB4LFZLySZlWn8exGs3A4OLJR966cVvU26N7X9TWxl+Jsw7dzAqKT6g==}
5442
+ engines: {node: '>=16'}
5443
+
5444
+ json-schema-to-zod@2.7.0:
5445
+ resolution: {integrity: sha512-eW59l3NQ6sa3HcB+Ahf7pP6iGU7MY4we5JsPqXQ2ZcIPF8QxSg/lkY8lN0Js/AG0NjMbk+nZGUfHlceiHF+bwQ==}
5446
hasBin: true
5447
5448
json-schema-traverse@0.4.1:
@@ -5104,10 +5464,6 @@ packages:
5464
jsonfile@4.0.0:
5465
resolution: {integrity: sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==}
5466
5107
- jsonpointer@5.0.1:
5108
- resolution: {integrity: sha512-p/nXbhSEcu3pZRdkW1OfJhpsVtW1gd4Wa1fnQc9YLiTfAjn0312eMKimbdIQzuZl9aa9xUGaRlP9T/CJE/ditQ==}
5109
- engines: {node: '>=0.10.0'}
5110
-
5467
jwa@2.0.1:
5468
resolution: {integrity: sha512-hRF04fqJIP8Abbkq5NKGN0Bbr3JxlQ+qhZufXVr0DvujKy93ZCbXZMHDL4EOtodSbCWxOqR8MS1tXA5hwqCXDg==}
5469
@@ -5125,74 +5481,14 @@ packages:
5481
resolution: {integrity: sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==}
5482
engines: {node: '>=6'}
5483
5128
- langchain@0.3.28:
5129
- resolution: {integrity: sha512-h4GGlBJNGU/Sj2PipW9kL+ewj7To3c+SnnNKH3HZaVHEqGPMHVB96T1lLjtCLcZCyUfabMr/zFIkLNI4War+Xg==}
5130
- engines: {node: '>=18'}
5131
- peerDependencies:
5132
- '@langchain/anthropic': '*'
5133
- '@langchain/aws': '*'
5134
- '@langchain/cerebras': '*'
5135
- '@langchain/cohere': '*'
5136
- '@langchain/core': '>=0.3.58 <0.4.0'
5137
- '@langchain/deepseek': '*'
5138
- '@langchain/google-genai': '*'
5139
- '@langchain/google-vertexai': '*'
5140
- '@langchain/google-vertexai-web': '*'
5141
- '@langchain/groq': '*'
5142
- '@langchain/mistralai': '*'
5143
- '@langchain/ollama': '*'
5144
- '@langchain/xai': '*'
5145
- axios: '*'
5146
- cheerio: '*'
5147
- handlebars: ^4.7.8
5148
- peggy: ^3.0.2
5149
- typeorm: '*'
5150
- peerDependenciesMeta:
5151
- '@langchain/anthropic':
5152
- optional: true
5153
- '@langchain/aws':
5154
- optional: true
5155
- '@langchain/cerebras':
5156
- optional: true
5157
- '@langchain/cohere':
5158
- optional: true
5159
- '@langchain/deepseek':
5160
- optional: true
5161
- '@langchain/google-genai':
5162
- optional: true
5163
- '@langchain/google-vertexai':
5164
- optional: true
5165
- '@langchain/google-vertexai-web':
5166
- optional: true
5167
- '@langchain/groq':
5168
- optional: true
5169
- '@langchain/mistralai':
5170
- optional: true
5171
- '@langchain/ollama':
5172
- optional: true
5173
- '@langchain/xai':
5174
- optional: true
5175
- axios:
5176
- optional: true
5177
- cheerio:
5178
- optional: true
5179
- handlebars:
5180
- optional: true
5181
- peggy:
5182
- optional: true
5183
- typeorm:
5184
- optional: true
5185
-
5186
- langsmith@0.3.33:
5187
- resolution: {integrity: sha512-imNIaBL6+ElE5eMzNHYwFxo6W/6rHlqcaUjCYoIeGdCYWlARxE3CTGKul5DJnaUgGP2CTLFeNXyvRx5HWC/4KQ==}
5484
+ langchain@1.1.1:
5485
+ resolution: {integrity: sha512-z7cOFhLOzbu/lRlIE8GZ5rlfi7obvvHThhMdts1KsUBusJmWLmh1Yik28MHYzJRXclUbqs4u/9D2yNmr36wf0A==}
5486
+ engines: {node: '>=20'}
5487
peerDependencies:
5189
- openai: '*'
5190
- peerDependenciesMeta:
5191
- openai:
5192
- optional: true
5488
+ '@langchain/core': 1.1.0
5489
5194
- langsmith@0.3.68:
5195
- resolution: {integrity: sha512-Yx4fnyTjrPKtqH2ax9nb6Ua6XAMYkafKkOLMcTzbJ/w+Yu3V6JjE+vabl/Q600oC53bo3hg6ourI4/KdZVXr4A==}
5490
+ langsmith@0.3.81:
5491
+ resolution: {integrity: sha512-NFmp7TDrrbCE6TIfHqutN9xhdgvx0EOhULVo8bDW+ib5idprwjMTvmS0S1n9uVFwjN03zU2zVEWViXnwy5XPrw==}
5492
peerDependencies:
5493
'@opentelemetry/api': '*'
5494
'@opentelemetry/exporter-trace-otlp-proto': '*'
@@ -5256,15 +5552,16 @@ packages:
5552
lodash.merge@4.6.2:
5553
resolution: {integrity: sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==}
5554
5259
- lodash.sortby@4.7.0:
5260
- resolution: {integrity: sha512-HDWXG8isMntAyRF5vZ7xKuEvOhT4AhlRt/3czTSjvGUxjYCBVRQY48ViDHyfYz9VIoBkW4TMGQNapx+l3RUwdA==}
5261
-
5555
lodash.startcase@4.4.0:
5556
resolution: {integrity: sha512-+WKqsK294HMSc2jEbNgpHpd0JfIBhp7rEV4aqXWqFr6AlXov+SlcgB1Fv01y2kGe3Gc8nMW7VA0SrGuSkRfIEg==}
5557
5558
lodash@4.17.21:
5559
resolution: {integrity: sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==}
5560
5561
+ log-symbols@7.0.1:
5562
+ resolution: {integrity: sha512-ja1E3yCr9i/0hmBVaM0bfwDjnGy8I/s6PP4DFp+yP+a+mrHO4Rm7DtmnqROTUkHIkqffC84YY7AeqX6oFk0WFg==}
5563
+ engines: {node: '>=18'}
5564
+
5565
log-update@6.1.0:
5566
resolution: {integrity: sha512-9ie8ItPR6tjY5uYJh8K/Zrv/RMZ5VOlOWvtZdEHYSTFKZfIBPQa9tOAEeAWhd+AnIneLJ22w5fjOYtoutpWq5w==}
5567
engines: {node: '>=18'}
@@ -5276,8 +5573,8 @@ packages:
5573
resolution: {integrity: sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==}
5574
hasBin: true
5575
5279
- loupe@3.1.4:
5280
- resolution: {integrity: sha512-wJzkKwJrheKtknCOKNEtDK4iqg/MxmZheEMtSTYvnzRdEYaZzmgH976nenp8WdJRdx5Vc1X/9MO0Oszl6ezeXg==}
5576
+ loupe@3.2.1:
5577
+ resolution: {integrity: sha512-CdzqowRJCeLU72bHvWqwRBBlLcMEtIvGrlvef74kMnV2AolS9Y8xUv1I0U/MNAWMhBlKIoyuEgoJ0t/bbwHbLQ==}
5578
5579
lru-cache@10.4.3:
5580
resolution: {integrity: sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==}
@@ -5288,8 +5585,8 @@ packages:
5585
magic-bytes.js@1.12.1:
5586
resolution: {integrity: sha512-ThQLOhN86ZkJ7qemtVRGYM+gRgR8GEXNli9H/PMvpnZsE44Xfh3wx9kGJaldg314v85m+bFW6WBMaVHJc/c3zA==}
5587
5291
- magic-string@0.30.17:
5292
- resolution: {integrity: sha512-sNPKHvyjVf7gyjwS4xGTaW/mCnF8wnjtifKBEhxfZ7E/S8tQ0rssrwGNn6q8JH/ohItJfSQp9mBtQYuTlH5QnA==}
5588
+ magic-string@0.30.21:
5589
+ resolution: {integrity: sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==}
5590
5591
make-dir@1.3.0:
5592
resolution: {integrity: sha512-2w31R7SJtieJJnQtGc7RVL2StM2vGYVfqUOvUDxH6bC6aJTxPxTF0GnIgCyu7tjockiUWAYQRbxa7vKn34s5sQ==}
@@ -5348,9 +5645,9 @@ packages:
5645
resolution: {integrity: sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==}
5646
engines: {node: '>= 0.6'}
5647
5351
- mime-types@3.0.1:
5352
- resolution: {integrity: sha512-xRc4oEhT6eaBpU1XF7AjpOFD+xQmXNB5OVKwp4tqCuBpHLS/ZbBDrc07mYTDqVMg6PfxUjjNp85O6Cd2Z/5HWA==}
5353
- engines: {node: '>= 0.6'}
5648
+ mime-types@3.0.2:
5649
+ resolution: {integrity: sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A==}
5650
+ engines: {node: '>=18'}
5651
5652
mime@1.6.0:
5653
resolution: {integrity: sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==}
@@ -5370,13 +5667,18 @@ packages:
5667
resolution: {integrity: sha512-VP79XUPxV2CigYP3jWwAUFSku2aKqBH7uTAapFWCBqutsbmDo96KY5o8uh6U+/YSIn5OxJnXp73beVkpqMIGhA==}
5668
engines: {node: '>=18'}
5669
5373
- miniflare@4.20250913.0:
5374
- resolution: {integrity: sha512-EwlUOxtvb9UKg797YZMCtNga/VSAnKG/kbJX9YGqXJoAJjDhDeAeqyCWjSl9O6EzCZNhtHuW7ZV0pD5Hec617g==}
5670
+ miniflare@4.20251011.0:
5671
+ resolution: {integrity: sha512-DlZ7vR5q/RE9eLsxsrXzfSZIF2f6O5k0YsFrSKhWUtdefyGtJt4sSpR6V+Af/waaZ6+zIFy9lsknHBCm49sEYA==}
5672
+ engines: {node: '>=18.0.0'}
5673
+ hasBin: true
5674
+
5675
+ miniflare@4.20251118.1:
5676
+ resolution: {integrity: sha512-uLSAE/DvOm392fiaig4LOaatxLjM7xzIniFRG5Y3yF9IduOYLLK/pkCPQNCgKQH3ou0YJRHnTN+09LPfqYNTQQ==}
5677
engines: {node: '>=18.0.0'}
5678
hasBin: true
5679
5378
- minimatch@10.0.3:
5379
- resolution: {integrity: sha512-IPZ167aShDZZUMdRk66cyQAW3qr0WzbHkPdMYa8bzZhlHhO3jALbKdxcaak7W9FfT2rZNpQuUu4Od7ILEpXSaw==}
5680
+ minimatch@10.1.1:
5681
+ resolution: {integrity: sha512-enIvLvRAFZYXJzkCYG5RKmPfrFArdLv+R+lbQ53BmIMLIry74bjKzX6iHAm8WYamJkhSSEabrWN5D97XnKObjQ==}
5682
engines: {node: 20 || >=22}
5683
5684
minimatch@3.1.2:
@@ -5397,8 +5699,8 @@ packages:
5699
resolution: {integrity: sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==}
5700
engines: {node: '>=16 || 14 >=14.17'}
5701
5400
- mlly@1.7.4:
5401
- resolution: {integrity: sha512-qmdSIPC4bDJXgZTCR7XosJiNKySV7O215tsPtDN9iEO/7q/76b/ijtgRu/+epFXSJhijtTCCGp3DWS549P3xKw==}
5702
+ mlly@1.8.0:
5703
+ resolution: {integrity: sha512-l8D9ODSRWLe2KHJSifWGwBqpTZXIXTeo8mlKjY+E2HAakaTeNpqAyBZ8GSqLzHgw4XmHmC8whvpjJNMbFZN7/g==}
5704
5705
module-details-from-path@1.0.4:
5706
resolution: {integrity: sha512-EGWKgxALGMgzvxYF1UyGTy0HXX/2vHLkw6+NvDKW2jypWbHpjQuj4UMcqQWXHERJhVGKikolT06G3bcKe4fi7w==}
@@ -5421,11 +5723,11 @@ packages:
5723
resolution: {integrity: sha512-P0efT1C9jIdVRefqjzOQ9Xml57zpOXnIuS+csaB4MdZbTdmGDLo8XhzBG1N7aO11gKDDkJvBLULeFTo46wwreA==}
5724
hasBin: true
5725
5424
- msgpackr@1.11.4:
5425
- resolution: {integrity: sha512-uaff7RG9VIC4jacFW9xzL3jc0iM32DNHe4jYVycBcjUePT/Klnfj7pqtWJt9khvDFizmjN2TlYniYmSS2LIaZg==}
5726
+ msgpackr@1.11.5:
5727
+ resolution: {integrity: sha512-UjkUHN0yqp9RWKy0Lplhh+wlpdt9oQBYgULZOiFhV3VclSF1JnSQWZ5r9gORQlNYaUKQoR8itv7g7z1xDDuACA==}
5728
5427
- multipasta@0.2.5:
5428
- resolution: {integrity: sha512-c8eMDb1WwZcE02WVjHoOmUVk7fnKU/RmUcosHACglrWAuPQsEJv+E8430sXj6jNc1jHw0zrS16aCjQh4BcEb4A==}
5729
+ multipasta@0.2.7:
5730
+ resolution: {integrity: sha512-KPA58d68KgGil15oDqXjkUBEBYc00XvbPj5/X+dyzeo/lWm9Nc25pQRlf1D+gv4OpK7NM0J1odrbu9JNNGvynA==}
5731
5732
mustache@4.2.0:
5733
resolution: {integrity: sha512-71ippSywq5Yb7/tVYyGbkBggbU8H3u5Rz56fH60jGFgr8uHwxs+aSKeqmluIVzM0m0kB7xQjKS6qPfd0b2ZoqQ==}
@@ -5454,8 +5756,8 @@ packages:
5756
resolution: {integrity: sha512-8Ofs/AUQh8MaEcrlq5xOX0CQ9ypTF5dl78mjlMNfOK08fzpgTHQRQPBxcPlEtIw0yRpws+Zo/3r+5WRby7u3Gg==}
5757
engines: {node: '>= 0.6'}
5758
5457
- next@16.0.3:
5458
- resolution: {integrity: sha512-Ka0/iNBblPFcIubTA1Jjh6gvwqfjrGq1Y2MTI5lbjeLIAfmC+p5bQmojpRZqgHHVu5cG4+qdIiwXiBSm/8lZ3w==}
5759
+ next@16.0.4:
5760
+ resolution: {integrity: sha512-vICcxKusY8qW7QFOzTvnRL1ejz2ClTqDKtm1AcUjm2mPv/lVAdgpGNsftsPRIDJOXOjRQO68i1dM8Lp8GZnqoA==}
5761
engines: {node: '>=20.9.0'}
5762
hasBin: true
5763
peerDependencies:
@@ -5496,6 +5798,10 @@ packages:
5798
encoding:
5799
optional: true
5800
5801
+ node-fetch@3.3.2:
5802
+ resolution: {integrity: sha512-dRB78srN/l6gqWulah9SrxeYnxeddIG30+GOqK/9OlLVyLg3HPnr6SqOWTWOXKRwC2eGYCkZ59NNuSgvSrpgOA==}
5803
+ engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}
5804
+
5805
node-gyp-build-optional-packages@5.2.2:
5806
resolution: {integrity: sha512-s+w+rBWnpTMwSFbaE0UXsRlg7hU4FjekKU4eyAih5T8nJuNZT1nNsskXpxmeqSK9UzkBl6UgRlnKc8hz8IEqOw==}
5807
hasBin: true
@@ -5570,20 +5876,8 @@ packages:
5876
zod:
5877
optional: true
5878
5573
- openai@5.16.0:
5574
- resolution: {integrity: sha512-hoEH8ZNvg1HXjU9mp88L/ZH8O082Z8r6FHCXGiWAzVRrEv443aI57qhch4snu07yQydj+AUAWLenAiBXhu89Tw==}
5575
- hasBin: true
5576
- peerDependencies:
5577
- ws: ^8.18.0
5578
- zod: ^3.23.8
5579
- peerDependenciesMeta:
5580
- ws:
5581
- optional: true
5582
- zod:
5583
- optional: true
5584
-
5585
- openai@5.19.1:
5586
- resolution: {integrity: sha512-zSqnUF7oR9ksmpusKkpUgkNrj8Sl57U+OyzO8jzc7LUjTMg4DRfR3uCm+EIMA6iw06sRPNp4t7ojp3sCpEUZRQ==}
5879
+ openai@5.12.2:
5880
+ resolution: {integrity: sha512-xqzHHQch5Tws5PcKR2xsZGX9xtch+JQFz5zb14dGqlshmmDAFBFEWmeIpf7wVqWV+w7Emj7jRgkNJakyKE0tYQ==}
5881
hasBin: true
5882
peerDependencies:
5883
ws: ^8.18.0
@@ -5594,8 +5888,8 @@ packages:
5888
zod:
5889
optional: true
5890
5597
- openai@5.20.3:
5598
- resolution: {integrity: sha512-8V0KgAcPFppDIP8uMBOkhRrhDBuxNQYQxb9IovP4NN4VyaYGISAzYexyYYuAwVul2HB75Wpib0xDboYJqRMNow==}
5891
+ openai@5.23.2:
5892
+ resolution: {integrity: sha512-MQBzmTulj+MM5O8SKEk/gL8a7s5mktS9zUtAkU257WjvobGc9nKcBuVwjyEEcb9SI8a8Y2G/mzn3vm9n1Jlleg==}
5893
hasBin: true
5894
peerDependencies:
5895
ws: ^8.18.0
@@ -5606,8 +5900,8 @@ packages:
5900
zod:
5901
optional: true
5902
5609
- openai@6.7.0:
5610
- resolution: {integrity: sha512-mgSQXa3O/UXTbA8qFzoa7aydbXBJR5dbLQXCRapAOtoNT+v69sLdKMZzgiakpqhclRnhPggPAXoniVGn2kMY2A==}
5903
+ openai@6.9.1:
5904
+ resolution: {integrity: sha512-vQ5Rlt0ZgB3/BNmTa7bIijYFhz3YBceAA3Z4JuoMSBftBF9YqFHIEhZakSs+O/Ad7EaoEimZvHxD5ylRjN11Lg==}
5905
hasBin: true
5906
peerDependencies:
5907
ws: ^8.18.0
@@ -5621,8 +5915,8 @@ packages:
5915
openapi-types@12.1.3:
5916
resolution: {integrity: sha512-N4YtSYJqghVu4iek2ZUvcN/0aqH1kRDuNqzcycDxhOUpg7GdvLa2F3DgS6yBNhInhv2r/6I0Flkn7CqL8+nIcw==}
5917
5624
- openapi-typescript@7.8.0:
5625
- resolution: {integrity: sha512-1EeVWmDzi16A+siQlo/SwSGIT7HwaFAVjvMA7/jG5HMLSnrUOzPL7uSTRZZa4v/LCRxHTApHKtNY6glApEoiUQ==}
5918
+ openapi-typescript@7.10.1:
5919
+ resolution: {integrity: sha512-rBcU8bjKGGZQT4K2ekSTY2Q5veOQbVG/lTKZ49DeCyT9z62hM2Vj/LLHjDHC9W7LJG8YMHcdXpRZDqC1ojB/lw==}
5920
hasBin: true
5921
peerDependencies:
5922
typescript: ^5.x
@@ -5631,6 +5925,10 @@ packages:
5925
resolution: {integrity: sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==}
5926
engines: {node: '>= 0.8.0'}
5927
5928
+ ora@9.0.0:
5929
+ resolution: {integrity: sha512-m0pg2zscbYgWbqRR6ABga5c3sZdEon7bSgjnlXC64kxtxLOyjRcbbUkLj7HFyy/FTD+P2xdBWu8snGhYI0jc4A==}
5930
+ engines: {node: '>=20'}
5931
+
5932
os-tmpdir@1.0.2:
5933
resolution: {integrity: sha512-D2FR03Vir7FIu45XBY20mTb+/ZSWB00sjU9jdQXt83gDrI4Ztz5Fs7/yy74g2N5SVQY4xY1qDr4rNddwYRVX0g==}
5934
engines: {node: '>=0.10.0'}
@@ -5666,8 +5964,8 @@ packages:
5964
resolution: {integrity: sha512-y3b8Kpd8OAN444hxfBbFfj1FY/RjtTd8tzYwhUqNYXx0fXx2iX4maP4Qr6qhIKbQXI02wTLAda4fYUbDagTUFw==}
5965
engines: {node: '>=6'}
5966
5669
- p-map@7.0.3:
5670
- resolution: {integrity: sha512-VkndIv2fIB99swvQoA65bm+fsmt6UNdGeIB0oxBs+WhAhdh08QA04JXpI7rbB9r08/nkbysKoya9rtDERYOYMA==}
5967
+ p-map@7.0.4:
5968
+ resolution: {integrity: sha512-tkAQEw8ysMzmkhgw8k+1U/iPhWNhykKnSk4Rd5zLoPJCuJaGRPo6YposrZgaxHKzDHdDWWZvE/Sk7hsL2X/CpQ==}
5969
engines: {node: '>=18'}
5970
5971
p-queue@6.6.2:
@@ -5747,9 +6045,8 @@ packages:
6045
path-to-regexp@6.3.0:
6046
resolution: {integrity: sha512-Yhpw4T9C6hPpgPeA28us07OJeqZ5EzQTkbfwuhsUg0c237RomFoETJgmp2sa3F/41gfLE6G5cqcYwznmeEeOlQ==}
6047
5750
- path-to-regexp@8.2.0:
5751
- resolution: {integrity: sha512-TdrF7fW9Rphjq4RjrW0Kp2AW0Ahwu9sRGTkS6bvDi0SCwZlEZYmcfDbEsTz8RVk0EHIS/Vd1bv3JhG+1xZuAyQ==}
5752
- engines: {node: '>=16'}
6048
+ path-to-regexp@8.3.0:
6049
+ resolution: {integrity: sha512-7jdwVIRtsP8MYpdXSwOS0YdD0Du+qOoF/AEPIt88PcCFrZCzx41oxku1jD88hZBwbNUIEfpqvuhjFaMAqMTWnA==}
6050
6051
path-type@4.0.0:
6052
resolution: {integrity: sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==}
@@ -5761,8 +6058,8 @@ packages:
6058
pathe@2.0.3:
6059
resolution: {integrity: sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==}
6060
5764
- pathval@2.0.0:
5765
- resolution: {integrity: sha512-vE7JKRyES09KiunauX7nd2Q9/L7lhok4smP9RZTDeD4MVs72Dp2qNFVz39Nz5a0FVEW0BJR6C0DYrq6unoziZA==}
6061
+ pathval@2.0.1:
6062
+ resolution: {integrity: sha512-//nshmD55c46FuFw26xV/xFAaB5HF9Xdap7HJBBnrKdAd6/GxDBaNA1870O79+9ueg61cZLSVc+OaFlfmObYVQ==}
6063
engines: {node: '>= 14.16'}
6064
6065
peberminta@0.9.0:
@@ -5775,8 +6072,8 @@ packages:
6072
resolution: {integrity: sha512-WCtabS6t3c8SkpDBUlb1kjOs7l66xsGdKpIPZsg4wR+B3+u9UAum2odSsF9tnvxg80h4ZxLWMy4pRjOsFIqQpw==}
6073
engines: {node: '>=4.0.0'}
6074
5778
- pg-protocol@1.10.1:
5779
- resolution: {integrity: sha512-9YS3ZonDj0Lxny//aF0ITPdfrEPgKWCJvONsSXAaIUhgpzlzl5JgaZNlbTFxvYNfm2terGEnHeOSUlF6qRGBzw==}
6075
+ pg-protocol@1.10.3:
6076
+ resolution: {integrity: sha512-6DIBgBQaTKDJyxnXaLiLR8wBpQQcGWuAESkRBX/t6OwA8YsqP+iVSiond2EDy6Y/dsGk8rh/jtax3js5NeV7JQ==}
6077
6078
pg-types@2.2.0:
6079
resolution: {integrity: sha512-qTAAlrEsl8s4OiEQY69wDvcMIdQN6wdz5ojQiOy6YRMuynxenON0O5oCpJI6lshc6scgAY8qvJ2On/p+CXY0GA==}
@@ -5789,8 +6086,8 @@ packages:
6086
resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==}
6087
engines: {node: '>=8.6'}
6088
5792
- picomatch@4.0.2:
5793
- resolution: {integrity: sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==}
6089
+ picomatch@4.0.3:
6090
+ resolution: {integrity: sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==}
6091
engines: {node: '>=12'}
6092
6093
pidtree@0.6.0:
@@ -5821,23 +6118,23 @@ packages:
6118
pino-abstract-transport@2.0.0:
6119
resolution: {integrity: sha512-F63x5tizV6WCh4R6RHyi2Ml+M70DNRXt/+HANowMflpgGFMAym/VKm6G7ZOQRjqN7XbGxK1Lg9t6ZrtzOaivMw==}
6120
5824
- pino-pretty@13.0.0:
5825
- resolution: {integrity: sha512-cQBBIVG3YajgoUjo1FdKVRX6t9XPxwB9lcNJVD5GCnNM4Y6T12YYx8c6zEejxQsU0wrg9TwmDulcE9LR7qcJqA==}
6121
+ pino-pretty@13.1.2:
6122
+ resolution: {integrity: sha512-3cN0tCakkT4f3zo9RXDIhy6GTvtYD6bK4CRBLN9j3E/ePqN1tugAXD5rGVfoChW6s0hiek+eyYlLNqc/BG7vBQ==}
6123
hasBin: true
6124
6125
pino-std-serializers@7.0.0:
6126
resolution: {integrity: sha512-e906FRY0+tV27iq4juKzSYPbUj2do2X2JX4EzSca1631EB2QJQUqGbDuERal7LCtOpxl6x3+nvo9NPZcmjkiFA==}
6127
5831
- pino@9.7.0:
5832
- resolution: {integrity: sha512-vnMCM6xZTb1WDmLvtG2lE/2p+t9hDEIvTWJsu6FejkE62vB7gDhvzrpFR4Cw2to+9JNQxVnkAKVPA1KPB98vWg==}
6128
+ pino@9.14.0:
6129
+ resolution: {integrity: sha512-8OEwKp5juEvb/MjpIc4hjqfgCNysrS94RIOMXYvpYCdm/jglrKEiAYmiumbmGhCvs+IcInsphYDFwqrjr7398w==}
6130
hasBin: true
6131
6132
pirates@4.0.7:
6133
resolution: {integrity: sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA==}
6134
engines: {node: '>= 6'}
6135
5839
- pkce-challenge@5.0.0:
5840
- resolution: {integrity: sha512-ueGLflrrnvwB3xuo/uGob5pd5FN7l0MsLf0Z87o/UQmRtwjvfylfc9MurIxRAWywCYTgrvpXBcqjV4OfCYGCIQ==}
6136
+ pkce-challenge@5.0.1:
6137
+ resolution: {integrity: sha512-wQ0b/W4Fr01qtpHlqSqspcj3EhBvimsdh0KlHhH8HRZnMsEa0ea2fTULOXOS9ccQr3om+GcGRk4e+isrZWV8qQ==}
6138
engines: {node: '>=16.20.0'}
6139
6140
pkg-types@1.3.1:
@@ -5847,6 +6144,11 @@ packages:
6144
resolution: {integrity: sha512-Nc3IT5yHzflTfbjgqWcCPpo7DaKy4FnpB0l/zCAW0Tc7jxAiuqSxHasntB3D7887LSrA93kDJ9IXovxJYxyLCA==}
6145
engines: {node: '>=4'}
6146
6147
+ pnpm@10.23.0:
6148
+ resolution: {integrity: sha512-IcTlaYACrel+Tv6Li0qJqN48haN5GflX56DzDzj7xbvdBZgP/ikXmy+25uaRJC4JjZRdFgF3LK0P71+2QR4qSw==}
6149
+ engines: {node: '>=18.12'}
6150
+ hasBin: true
6151
+
6152
possible-typed-array-names@1.1.0:
6153
resolution: {integrity: sha512-/+5VFTchJDoVj3bhoqi6UeymcD00DAwb1nJwamzPvHEszJ4FpF6SNNbUbOS8yI56qHzdV8eK0qEfOSiodkTdxg==}
6154
engines: {node: '>= 0.4'}
@@ -5857,24 +6159,12 @@ packages:
6159
peerDependencies:
6160
postcss: ^8.0.0
6161
5860
- postcss-js@4.0.1:
5861
- resolution: {integrity: sha512-dDLF8pEO191hJMtlHFPRa8xsizHaM82MLfNkUHdUtVEV3tgTp5oj+8qbEqYM57SLfc74KSbw//4SeJma2LRVIw==}
6162
+ postcss-js@4.1.0:
6163
+ resolution: {integrity: sha512-oIAOTqgIo7q2EOwbhb8UalYePMvYoIeRY2YKntdpFQXNosSu3vLrniGgmH9OKs/qAkfoj5oB3le/7mINW1LCfw==}
6164
engines: {node: ^12 || ^14 || >= 16}
6165
peerDependencies:
6166
postcss: ^8.4.21
6167
5866
- postcss-load-config@4.0.2:
5867
- resolution: {integrity: sha512-bSVhyJGL00wMVoPUzAVAnbEoWyqRxkjv64tUl427SKnPrENtq6hJwUojroMz2VB+Q1edmi4IfrAPpami5VVgMQ==}
5868
- engines: {node: '>= 14'}
5869
- peerDependencies:
5870
- postcss: '>=8.0.9'
5871
- ts-node: '>=9.0.0'
5872
- peerDependenciesMeta:
5873
- postcss:
5874
- optional: true
5875
- ts-node:
5876
- optional: true
5877
-
6168
postcss-load-config@6.0.1:
6169
resolution: {integrity: sha512-oPtTM4oerL+UXmx+93ytZVN82RrlY/wPUV8IeDxFrzIjXOLF1pN+EmKPLbubvKHT2HC20xXsCAH2Z+CKV6Oz/g==}
6170
engines: {node: '>= 18'}
@@ -5943,8 +6233,8 @@ packages:
6233
engines: {node: '>=10.13.0'}
6234
hasBin: true
6235
5946
- prettier@3.5.3:
5947
- resolution: {integrity: sha512-QQtaxnoDJeAkDvDKWCLiwIXkTgRhwYDEQCghU9Z6q03iyek/rxRh/2lC3HB7P8sWT2xC/y5JDctPLBIGzHKbhw==}
6236
+ prettier@3.6.2:
6237
+ resolution: {integrity: sha512-I7AIg5boAr5R0FFtJ6rCfD+LFsWHp81dolrFD8S79U9tb8Az2nGrJncnMSnys+bpQJfRUzqs9hnA81OAA3hCuQ==}
6238
engines: {node: '>=14'}
6239
hasBin: true
6240
@@ -5954,8 +6244,8 @@ packages:
6244
process-warning@5.0.0:
6245
resolution: {integrity: sha512-a39t9ApHNx2L4+HBnQKqxxHNs1r7KF+Intd8Q/g1bUh6q0WIp9voPXJ/x0j+ZL45KF1pJd9+q2jLIRMfvEshkA==}
6246
5957
- protobufjs@7.5.3:
5958
- resolution: {integrity: sha512-sildjKwVqOI2kmFDiXQ6aEB0fjYTafpEvIBs8tOR8qI4spuL9OPROLVu2qZqi/xgCfsHIwVqlaF8JBjWFHnKbw==}
6247
+ protobufjs@7.5.4:
6248
+ resolution: {integrity: sha512-CvexbZtbov6jW2eXAvLukXjXUW1TzFaivC46BpWc/3BpcCysb5Vffu+B3XHMm8lVEuy2Mm4XGex8hBSg1yapPg==}
6249
engines: {node: '>=12.0.0'}
6250
6251
proxy-addr@2.0.7:
@@ -5993,8 +6283,8 @@ packages:
6283
resolution: {integrity: sha512-YWWTjgABSKcvs/nWBi9PycY/JiPJqOD4JA6o9Sej2AtvSGarXxKC3OQSk4pAarbdQlKAh5D4FCQkJNkW+GAn3w==}
6284
engines: {node: '>=0.6'}
6285
5996
- quansync@0.2.10:
5997
- resolution: {integrity: sha512-t41VRkMYbkHyCYmOvx/6URnN80H7k4X0lLdBMGsz+maAwrJQYB1djpV6vHrQIBE0WBSGqhtEHrK9U3DWWH8v7A==}
6286
+ quansync@0.2.11:
6287
+ resolution: {integrity: sha512-AifT7QEbW9Nri4tAwR5M/uzpBuqfZf+zwaEM/QkzEjj7NBuFD2rBuy0K3dE+8wltbezDV7JMA0WfnCPYRSYbXA==}
6288
6289
queue-microtask@1.2.3:
6290
resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==}
@@ -6014,14 +6304,14 @@ packages:
6304
resolution: {integrity: sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA==}
6305
engines: {node: '>= 0.8'}
6306
6017
- raw-body@3.0.0:
6018
- resolution: {integrity: sha512-RmkhL8CAyCRPXCE28MMH0z2PNWQBNk2Q09ZdxM9IOOXwxwZbN+qbWaatPkdkWIKL2ZVDImrN/pK5HTRz2PcS4g==}
6019
- engines: {node: '>= 0.8'}
6307
+ raw-body@3.0.2:
6308
+ resolution: {integrity: sha512-K5zQjDllxWkf7Z5xJdV0/B0WTNqx6vxG70zJE4N0kBs4LovmEYWJzQGxC9bS9RAKu3bgM40lrd5zoLJ12MQ5BA==}
6309
+ engines: {node: '>= 0.10'}
6310
6021
- react-dom@19.1.0:
6022
- resolution: {integrity: sha512-Xs1hdnE+DyKgeHJeJznQmYMIBG3TKIHJJT95Q58nHLSrElKlGQqDTR2HQ9fx5CN/Gk6Vh/kupBTDLU11/nDk/g==}
6311
+ react-dom@19.2.0:
6312
+ resolution: {integrity: sha512-UlbRu4cAiGaIewkPyiRGJk0imDN2T3JjieT6spoL2UeSf5od4n5LB/mQ4ejmxhCFT1tYe8IvaFulzynWovsEFQ==}
6313
peerDependencies:
6024
- react: ^19.1.0
6314
+ react: ^19.2.0
6315
6316
react@18.3.1:
6317
resolution: {integrity: sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==}
@@ -6049,10 +6339,6 @@ packages:
6339
resolution: {integrity: sha512-57frrGM/OCTLqLOAh0mhVA9VBMHd+9U7Zb2THMGdBUoZVOtGbJzjxsYGDJ3A9AYYCP4hn6y1TVbaOfzWtm5GFg==}
6340
engines: {node: '>= 12.13.0'}
6341
6052
- repeat-string@1.6.1:
6053
- resolution: {integrity: sha512-PV0dzCYDNfRi1jCDbJzpW7jNNDRuCOG/jI5ctQcGKt/clZD+YcPS3yIlWuTJMmESC8aevCFmWJy5wjAFgNqN6w==}
6054
- engines: {node: '>=0.10'}
6055
-
6342
require-directory@2.1.1:
6343
resolution: {integrity: sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==}
6344
engines: {node: '>=0.10.0'}
@@ -6080,8 +6366,8 @@ packages:
6366
resolve-pkg-maps@1.0.0:
6367
resolution: {integrity: sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==}
6368
6083
- resolve@1.22.10:
6084
- resolution: {integrity: sha512-NPRy+/ncIMeDlTAsuqwKIiferiawhefFJtkNSW0qZJEqMEb+qBt/77B/jGeeek+F0uOeN05CDa6HXbbIgtVX4w==}
6369
+ resolve@1.22.11:
6370
+ resolution: {integrity: sha512-RfqAvLnMl313r7c9oclB1HhUEAezcpLjz95wFH4LVuhk9JF/r22qmVP9AMmOU4vMX7Q8pN8jwNg/CSpdFnMjTQ==}
6371
engines: {node: '>= 0.4'}
6372
hasBin: true
6373
@@ -6100,8 +6386,12 @@ packages:
6386
rfdc@1.4.1:
6387
resolution: {integrity: sha512-q1b3N5QkRUWUl7iyylaaj3kOpIT0N2i9MqIEQXP73GVsN9cw3fdx8X63cEmWhJGi2PPCF23Ijp7ktmd39rawIA==}
6388
6103
- rollup@4.43.0:
6104
- resolution: {integrity: sha512-wdN2Kd3Twh8MAEOEJZsuxuLKCsBEo4PVNLK6tQWAn10VhsVewQLzcucMgLolRlhFybGxfclbPeEYBaP6RvUFGg==}
6389
+ rimraf@5.0.10:
6390
+ resolution: {integrity: sha512-l0OE8wL34P4nJH/H2ffoaniAokM2qSmrtXHmlpvYr5AVVX8msAyW0l8NVJFDxlSK4u3Uh/f41cQheDVdnYijwQ==}
6391
+ hasBin: true
6392
+
6393
+ rollup@4.53.3:
6394
+ resolution: {integrity: sha512-w8GmOxZfBmKknvdXU1sdM9NHcoQejwF/4mNgj2JuEEdRaHwwF12K7e9eXn1nLZ07ad+du76mkVsyeb2rKGllsA==}
6395
engines: {node: '>=18.0.0', npm: '>=8.0.0'}
6396
hasBin: true
6397
@@ -6109,8 +6399,8 @@ packages:
6399
resolution: {integrity: sha512-nLTrUKm2UyiL7rlhapu/Zl45FwNgkZGaCpZbIHajDYgwlJCOzLSk+cIPAnsEqV955GjILJnKbdQC1nVPz+gAYQ==}
6400
engines: {node: '>= 18'}
6401
6112
- run-applescript@7.0.0:
6113
- resolution: {integrity: sha512-9by4Ij99JUr/MCFBUkDKLWK3G9HVXmabKz9U5MlIAIuvuzkiOicRYs8XJLxX+xahD+mLiiCYDqF9dKAgtzKP1A==}
6402
+ run-applescript@7.1.0:
6403
+ resolution: {integrity: sha512-DPe5pVFaAsinSaV6QjQ6gdiedWDcRCbUuiQfQa2wmWV7+xC9bGulGI8+TdRmoFkAPaBXk8CrAbnlY2ISniJ47Q==}
6404
engines: {node: '>=18'}
6405
6406
run-async@3.0.0:
@@ -6136,8 +6426,8 @@ packages:
6426
safer-buffer@2.1.2:
6427
resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==}
6428
6139
- scheduler@0.26.0:
6140
- resolution: {integrity: sha512-NlHwttCI/l5gCPR3D1nNXtWABUmBwvZpEQiD4IXSbIDq8BzLIK/7Ir5gTFSGZDUu37K5cMNp0hFtzO38sC7gWA==}
6429
+ scheduler@0.27.0:
6430
+ resolution: {integrity: sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q==}
6431
6432
section-matter@1.0.0:
6433
resolution: {integrity: sha512-vfD3pmTzGpufjScBh50YHKzEu2lxBWhVEHsNGoEXmCmn2hKGfeNLYMzCJpe8cD7gqX7TJluOVpBkAequ6dgMmA==}
@@ -6146,6 +6436,9 @@ packages:
6436
secure-json-parse@2.7.0:
6437
resolution: {integrity: sha512-6aU+Rwsezw7VR8/nyvKTx8QpWH9FrcYiXXlqC4z5d5XQBDRqtbfsRjnwGyqbi3gddNtWHuEk9OANUotL26qKUw==}
6438
6439
+ secure-json-parse@4.1.0:
6440
+ resolution: {integrity: sha512-l4KnYfEyqYJxDwlNVyRfO2E4NTHfMKAWdUuA8J0yve2Dz/E/PdBepY03RvyJpssIpRFwJoCD55wA+mEDs6ByWA==}
6441
+
6442
seek-bzip@1.0.6:
6443
resolution: {integrity: sha512-e1QtP3YL5tWww8uKaOCQ18UxIT2laNBXHjV/S2WYCiK4udiv8lkG89KRIoCjUagnAmCBurjF4zEVX2ByBbnCjQ==}
6444
hasBin: true
@@ -6153,11 +6446,6 @@ packages:
6446
selderee@0.11.0:
6447
resolution: {integrity: sha512-5TF+l7p4+OsnP8BCCvSyZiSPc4x4//p5uPwK8TCnVPJYRmU2aYKMpOXvw8zM5a5JvuuCGN1jmsMwuU2W02ukfA==}
6448
6156
- semver@7.7.2:
6157
- resolution: {integrity: sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==}
6158
- engines: {node: '>=10'}
6159
- hasBin: true
6160
-
6449
semver@7.7.3:
6450
resolution: {integrity: sha512-SdsKMrI9TdgjdweUSR9MweHA4EJ8YxHn8DFaDisvhVlUOe4BF1tLD7GAj0lIqWVl+dPb/rExr0Btby5loQm20Q==}
6451
engines: {node: '>=10'}
@@ -6228,17 +6516,14 @@ packages:
6516
resolution: {integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==}
6517
engines: {node: '>=14'}
6518
6231
- simple-swizzle@0.2.2:
6232
- resolution: {integrity: sha512-JA//kQgZtbuY83m+xT+tXJkmJncGMTFT+C+g2h2R9uxkYIrE2yy9sgmcLhCnw57/WSD+Eh3J97FPEDFnbXnDUg==}
6233
-
6234
- simple-wcswidth@1.1.1:
6235
- resolution: {integrity: sha512-R3q3/eoeNBp24CNTASEUrffXi0j9TwPIEvSStlvSrsFimM17sV5EHcMOc86j3K+UWZyLYvH0hRmYGCpCoaJ4vw==}
6519
+ simple-swizzle@0.2.4:
6520
+ resolution: {integrity: sha512-nAu1WFPQSMNr2Zn9PGSZK9AGn4t/y97lEm+MXTtUDwfP0ksAIX4nO+6ruD9Jwut4C49SB1Ws+fbXsm/yScWOHw==}
6521
6522
simple-wcswidth@1.1.2:
6523
resolution: {integrity: sha512-j7piyCjAeTDSjzTSQ7DokZtMNwNlEAyxqSZeCS+CXH7fJ4jx3FuJ/mTW3mE+6JLs4VJBbcll0Kjn+KXI5t21Iw==}
6524
6240
- sirv@3.0.1:
6241
- resolution: {integrity: sha512-FoqMu0NCGBLCcAkS1qA+XJIQTR6/JHfQXl+uGteNCQ76T91DMUjPa9xfmeqMY3z80nLSg9yQmNjK0Px6RWsH/A==}
6525
+ sirv@3.0.2:
6526
+ resolution: {integrity: sha512-2wcC/oGxHis/BoHkkPwldgiPSYcpZK3JU28WoMVv55yHJgcZ8rlXvuG9iZggz+sU1d4bRgIGASwyWqjxu3FM0g==}
6527
engines: {node: '>=18'}
6528
6529
sisteransi@1.0.5:
@@ -6252,8 +6537,8 @@ packages:
6537
resolution: {integrity: sha512-FC+lgizVPfie0kkhqUScwRu1O/lF6NOgJmlCgK+/LYxDCTk8sGelYaHDhFcDN+Sn3Cv+3VSa4Byeo+IMCzpMgQ==}
6538
engines: {node: '>=12'}
6539
6255
- slice-ansi@7.1.0:
6256
- resolution: {integrity: sha512-bSiSngZ/jWeX93BqeIAbImyTbEihizcwNjFoRUIY/T1wWQsfsm2Vw1agPKylXvQTU7iASGdHhyqRlqQzfz+Htg==}
6540
+ slice-ansi@7.1.2:
6541
+ resolution: {integrity: sha512-iOBWFgUX7caIZiuutICxVgX1SdxwAVFFKwt1EvMYYec/NWO5meOJ6K5uQxhrYBdQJne4KxiqZc+KptFOWFSI9w==}
6542
engines: {node: '>=18'}
6543
6544
sonic-boom@4.2.0:
@@ -6263,10 +6548,9 @@ packages:
6548
resolution: {integrity: sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==}
6549
engines: {node: '>=0.10.0'}
6550
6266
- source-map@0.8.0-beta.0:
6267
- resolution: {integrity: sha512-2ymg6oRBpebeZi9UUNsgQ89bhx01TcTkmNTGnNO88imTmbSgy4nfujrgVEFKWpMTEGA11EDkTt7mqObTPdigIA==}
6268
- engines: {node: '>= 8'}
6269
- deprecated: The work that was done in this beta branch won't be included in future versions
6551
+ source-map@0.7.6:
6552
+ resolution: {integrity: sha512-i5uvt8C3ikiWeNZSVZNWcfZPItFQOsYTUAOkcUPGd8DqDy1uOUikjt5dG+uRlwyvR108Fb9DOd4GvXfT0N2/uQ==}
6553
+ engines: {node: '>= 12'}
6554
6555
spawndamnit@3.0.1:
6556
resolution: {integrity: sha512-MmnduQUuHCoFckZoWnXsTg7JaiLBJrKFj9UI2MbRPGaJeVpsLcVBu6P/IGZovziM/YBsellCmsprgNA+w0CzVg==}
@@ -6286,8 +6570,12 @@ packages:
6570
resolution: {integrity: sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==}
6571
engines: {node: '>= 0.8'}
6572
6289
- std-env@3.9.0:
6290
- resolution: {integrity: sha512-UGvjygr6F6tpH7o2qyqR6QYpwraIjKSdtzyBdyytFOHmPZY917kwdwLG0RbOjWOnKmnm3PeHjaoLLMie7kPLQw==}
6573
+ std-env@3.10.0:
6574
+ resolution: {integrity: sha512-5GS12FdOZNliM5mAOxFRg7Ir0pWz8MdpYm6AY6VPkGpbA7ZzmbzNcBJQ0GPvvyWgcY7QAhCgf9Uy89I03faLkg==}
6575
+
6576
+ stdin-discarder@0.2.2:
6577
+ resolution: {integrity: sha512-UhDfHmA92YAlNnCfhmq0VeNL5bDbiZGg7sZ2IvPsXubGkiNa9EC+tUTsjBRsYUAz87btI6/1wf4XoVvQ3uRnmQ==}
6578
+ engines: {node: '>=18'}
6579
6580
stoppable@1.1.0:
6581
resolution: {integrity: sha512-KXDYZ9dszj6bzvnEMRYvxgeTHU74QBFL54XKtP3nyMuJ81CFYtABZ3bAzL2EdFUaEwJOBOgENyFj3R7oTzDyyw==}
@@ -6309,6 +6597,10 @@ packages:
6597
resolution: {integrity: sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==}
6598
engines: {node: '>=18'}
6599
6600
+ string-width@8.1.0:
6601
+ resolution: {integrity: sha512-Kxl3KJGb/gxkaUMOjRsQ8IrXiGW75O4E3RPjFIINOVH8AMl2SQ/yWdTzWwF3FevIX9LcMAjJW+GRwAlAbTSXdg==}
6602
+ engines: {node: '>=20'}
6603
+
6604
string_decoder@1.1.1:
6605
resolution: {integrity: sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==}
6606
@@ -6316,8 +6608,8 @@ packages:
6608
resolution: {integrity: sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==}
6609
engines: {node: '>=8'}
6610
6319
- strip-ansi@7.1.0:
6320
- resolution: {integrity: sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==}
6611
+ strip-ansi@7.1.2:
6612
+ resolution: {integrity: sha512-gmBGslpoQJtgnMAvOVqGZpEz9dyoKTCzy2nfz/n8aIFhN/jCE/rCmcxabB6jOOHV+0WNnylOxaxBQPSvcWklhA==}
6613
engines: {node: '>=12'}
6614
6615
strip-bom-string@1.0.0:
@@ -6339,8 +6631,12 @@ packages:
6631
resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==}
6632
engines: {node: '>=8'}
6633
6342
- strip-literal@3.0.0:
6343
- resolution: {integrity: sha512-TcccoMhJOM3OebGhSBEmp3UZ2SfDMZUEBdRA/9ynfLi8yYajyWX3JiXArcJt4Umh4vISpspkQIY8ZZoCqjbviA==}
6634
+ strip-json-comments@5.0.3:
6635
+ resolution: {integrity: sha512-1tB5mhVo7U+ETBKNf92xT4hrQa3pm0MZ0PQvuDnWgAAGHDsfp4lPSpiS6psrSiet87wyGPh9ft6wmhOMQ0hDiw==}
6636
+ engines: {node: '>=14.16'}
6637
+
6638
+ strip-literal@3.1.0:
6639
+ resolution: {integrity: sha512-8r3mkIM/2+PpjHoOtiAW8Rg3jJLHaV7xPwG+YRGrv6FP0wwk/toTpATxWYOW0BKdWwl82VT2tFYi5DlROa0Mxg==}
6640
6641
styled-jsx@5.1.6:
6642
resolution: {integrity: sha512-qSVyDTeMotdvQYoHWLNGwRFJHC+i+ZvdBRYosOFgC+Wg1vx4frN2/RG/NA7SYqqvKNLf39P2LSRA2pu6n0XYZA==}
@@ -6355,8 +6651,8 @@ packages:
6651
babel-plugin-macros:
6652
optional: true
6653
6358
- sucrase@3.35.0:
6359
- resolution: {integrity: sha512-8EbVDiu9iN/nESwxeSxDKe0dunta1GOlHufmSSXxMD2z2/tMZpDMpvXQGsc+ajGo8y2uYUmixaSRUc/QPoQ0GA==}
6654
+ sucrase@3.35.1:
6655
+ resolution: {integrity: sha512-DhuTmvZWux4H1UOnWMB3sk0sbaCVOoQZjv8u1rDoTV0HTdGem9hkAZtl4JZy8P2z4Bg0nT+YMeOFyVr4zcG5Tw==}
6656
engines: {node: '>=16 || 14 >=14.17'}
6657
hasBin: true
6658
@@ -6364,12 +6660,12 @@ packages:
6660
resolution: {integrity: sha512-MJd5FeT32XBMElZuzOT7mMM9dZlBHMTVHadPV3QC/pNKfuCyMj1a9Ub30GH+LbsT8ows+cT/P/K7ks9yp6z3KA==}
6661
hasBin: true
6662
6367
- superjson@2.2.2:
6368
- resolution: {integrity: sha512-5JRxVqC8I8NuOUjzBbvVJAKNM8qoVuH0O77h4WInc/qC2q5IreqKxYwgkga3PfA22OayK2ikceb/B26dztPl+Q==}
6663
+ superjson@2.2.5:
6664
+ resolution: {integrity: sha512-zWPTX96LVsA/eVYnqOM2+ofcdPqdS1dAF1LN4TS2/MWuUpfitd9ctTa87wt4xrYnZnkLtS69xpBdSxVBP5Rm6w==}
6665
engines: {node: '>=16'}
6666
6371
- supports-color@10.0.0:
6372
- resolution: {integrity: sha512-HRVVSbCCMbj7/kdWF9Q+bbckjBHLtHMEoJWlkmYzzdwhYMkjkOwubLM6t7NbWKjgKamGDrWL1++KrjUO1t9oAQ==}
6667
+ supports-color@10.2.2:
6668
+ resolution: {integrity: sha512-SS+jx45GF1QjgEXQx4NJZV9ImqmO2NPz5FNsIHrsDjh2YsHnawpan7SNQ1o8NuhrbHZy9AZhIoCUiCeaW/C80g==}
6669
engines: {node: '>=18'}
6670
6671
supports-color@7.2.0:
@@ -6380,8 +6676,8 @@ packages:
6676
resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==}
6677
engines: {node: '>= 0.4'}
6678
6383
- tailwindcss@3.4.17:
6384
- resolution: {integrity: sha512-w33E2aCvSDP0tW9RZuNXadXlkHXqFzSkQew/aIa2i/Sj8fThxwovwlXHSPXTbAHwEIhBFXAedUhP2tueAKP8Og==}
6679
+ tailwindcss@3.4.18:
6680
+ resolution: {integrity: sha512-6A2rnmW5xZMdw11LYjhcI5846rt9pbLSabY5XPxo+XWdxwZaFEn47Go4NzFiHu9sNNmr/kXivP1vStfvMaK1GQ==}
6681
engines: {node: '>=14.0.0'}
6682
hasBin: true
6683
@@ -6420,8 +6716,8 @@ packages:
6716
tinyexec@0.3.2:
6717
resolution: {integrity: sha512-KQQR9yN7R5+OSwaK0XQoj22pwHoTlgYqmUscPYoknOoWCWfj/5/ABTMRi69FrKU5ffPVh5QcFikpWJI/P1ocHA==}
6718
6423
- tinyglobby@0.2.14:
6424
- resolution: {integrity: sha512-tX5e7OM1HnYr2+a2C/4V0htOcSQcoSTH9KgJnVvNm5zm/cyEWKJ7j7YutsH9CxMdtOkkLFy2AHrMci9IM8IPZQ==}
6719
+ tinyglobby@0.2.15:
6720
+ resolution: {integrity: sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==}
6721
engines: {node: '>=12.0.0'}
6722
6723
tinypool@1.1.1:
@@ -6432,16 +6728,16 @@ packages:
6728
resolution: {integrity: sha512-op4nsTR47R6p0vMUUoYl/a+ljLFVtlfaXkLQmqfLR1qHma1h/ysYk4hEXZ880bf2CYgTskvTa/e196Vd5dDQXw==}
6729
engines: {node: '>=14.0.0'}
6730
6435
- tinyspy@4.0.3:
6436
- resolution: {integrity: sha512-t2T/WLB2WRgZ9EpE4jgPJ9w+i66UZfDc8wHh0xrwiRNN+UwH98GIJkTeZqX9rg0i0ptwzqW+uYeIF0T4F8LR7A==}
6731
+ tinyspy@4.0.4:
6732
+ resolution: {integrity: sha512-azl+t0z7pw/z958Gy9svOTuzqIk6xq+NSheJzn5MMWtWTFywIacg2wUlzKFGtt3cthx0r2SxMK0yzJOR0IES7Q==}
6733
engines: {node: '>=14.0.0'}
6734
6735
tmp@0.0.33:
6736
resolution: {integrity: sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==}
6737
engines: {node: '>=0.6.0'}
6738
6443
- to-buffer@1.2.1:
6444
- resolution: {integrity: sha512-tB82LpAIWjhLYbqjx3X4zEeHN6M8CiuOEy2JY8SEQVdYRe3CCHOFaqrBW1doLDrfpWhplcW7BL+bO3/6S3pcDQ==}
6739
+ to-buffer@1.2.2:
6740
+ resolution: {integrity: sha512-db0E3UJjcFhpDhAF4tLo03oli3pwl3dbnzXOUIlRKrp+ldk/VUxzpWYZENsw2SZiuBjHAk7DfB0VU7NKdpb6sw==}
6741
engines: {node: '>= 0.4'}
6742
6743
to-regex-range@5.0.1:
@@ -6462,9 +6758,6 @@ packages:
6758
tr46@0.0.3:
6759
resolution: {integrity: sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==}
6760
6465
- tr46@1.0.1:
6466
- resolution: {integrity: sha512-dTpowEjclQ7Kgx5SdBkqRzVhERQXov8/l9Ft9dVM9fmg0W0KQSVaXX9T4i6twCPNtYiZM53lpSSUAwJbFPOHxA==}
6467
-
6761
tree-kill@1.2.2:
6762
resolution: {integrity: sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==}
6763
hasBin: true
@@ -6472,6 +6765,9 @@ packages:
6765
tree-sitter@0.22.4:
6766
resolution: {integrity: sha512-usbHZP9/oxNsUY65MQUsduGRqDHQOou1cagUSwjhoSYAmSahjQDAVsh9s+SlZkn8X8+O1FULRGwHu7AFP3kjzg==}
6767
6768
+ ts-algebra@2.0.0:
6769
+ resolution: {integrity: sha512-FPAhNPFMrkwz76P7cdjdmiShwMynZYN6SgOujD1urY4oNm80Ou9oMdmbR45LotcKOXoy7wSmHkRFE6Mxbrhefw==}
6770
+
6771
ts-api-utils@2.1.0:
6772
resolution: {integrity: sha512-CUgTZL1irw8u29bzrOD/nH85jqyc74D6SshFgujOIA7osm2Rz7dYH77agkx7H4FBNxDq7Cjf+IjaX/8zwFW+ZQ==}
6773
engines: {node: '>=18.12'}
@@ -6487,8 +6783,8 @@ packages:
6783
tslib@2.8.1:
6784
resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==}
6785
6490
- tsup@8.5.0:
6491
- resolution: {integrity: sha512-VmBp77lWNQq6PfuMqCHD3xWl22vEoWsKajkF8t+yMBawlUS8JzEI+vOVMeuNZIuMML8qXRizFKi9oD5glKQVcQ==}
6786
+ tsup@8.5.1:
6787
+ resolution: {integrity: sha512-xtgkqwdhpKWr3tKPmCkvYmS9xnQK3m3XgxZHwSUjvfTjp7YfXe5tT3GgWi0F2N+ZSMsOeWeZFh7ZZFg5iPhing==}
6788
engines: {node: '>=18'}
6789
hasBin: true
6790
peerDependencies:
@@ -6506,43 +6802,43 @@ packages:
6802
typescript:
6803
optional: true
6804
6509
- tsx@4.20.5:
6510
- resolution: {integrity: sha512-+wKjMNU9w/EaQayHXb7WA7ZaHY6hN8WgfvHNQ3t1PnU91/7O8TcTnIhCDYTZwnt8JsO9IBqZ30Ln1r7pPF52Aw==}
6805
+ tsx@4.20.6:
6806
+ resolution: {integrity: sha512-ytQKuwgmrrkDTFP4LjR0ToE2nqgy886GpvRSpU0JAnrdBYppuY5rLkRUYPU1yCryb24SsKBTL/hlDQAEFVwtZg==}
6807
engines: {node: '>=18.0.0'}
6808
hasBin: true
6809
6514
- turbo-darwin-64@2.5.4:
6515
- resolution: {integrity: sha512-ah6YnH2dErojhFooxEzmvsoZQTMImaruZhFPfMKPBq8sb+hALRdvBNLqfc8NWlZq576FkfRZ/MSi4SHvVFT9PQ==}
6810
+ turbo-darwin-64@2.6.1:
6811
+ resolution: {integrity: sha512-Dm0HwhyZF4J0uLqkhUyCVJvKM9Rw7M03v3J9A7drHDQW0qAbIGBrUijQ8g4Q9Cciw/BXRRd8Uzkc3oue+qn+ZQ==}
6812
cpu: [x64]
6813
os: [darwin]
6814
6519
- turbo-darwin-arm64@2.5.4:
6520
- resolution: {integrity: sha512-2+Nx6LAyuXw2MdXb7pxqle3MYignLvS7OwtsP9SgtSBaMlnNlxl9BovzqdYAgkUW3AsYiQMJ/wBRb7d+xemM5A==}
6815
+ turbo-darwin-arm64@2.6.1:
6816
+ resolution: {integrity: sha512-U0PIPTPyxdLsrC3jN7jaJUwgzX5sVUBsKLO7+6AL+OASaa1NbT1pPdiZoTkblBAALLP76FM0LlnsVQOnmjYhyw==}
6817
cpu: [arm64]
6818
os: [darwin]
6819
6524
- turbo-linux-64@2.5.4:
6525
- resolution: {integrity: sha512-5May2kjWbc8w4XxswGAl74GZ5eM4Gr6IiroqdLhXeXyfvWEdm2mFYCSWOzz0/z5cAgqyGidF1jt1qzUR8hTmOA==}
6820
+ turbo-linux-64@2.6.1:
6821
+ resolution: {integrity: sha512-eM1uLWgzv89bxlK29qwQEr9xYWBhmO/EGiH22UGfq+uXr+QW1OvNKKMogSN65Ry8lElMH4LZh0aX2DEc7eC0Mw==}
6822
cpu: [x64]
6823
os: [linux]
6824
6529
- turbo-linux-arm64@2.5.4:
6530
- resolution: {integrity: sha512-/2yqFaS3TbfxV3P5yG2JUI79P7OUQKOUvAnx4MV9Bdz6jqHsHwc9WZPpO4QseQm+NvmgY6ICORnoVPODxGUiJg==}
6825
+ turbo-linux-arm64@2.6.1:
6826
+ resolution: {integrity: sha512-MFFh7AxAQAycXKuZDrbeutfWM5Ep0CEZ9u7zs4Hn2FvOViTCzIfEhmuJou3/a5+q5VX1zTxQrKGy+4Lf5cdpsA==}
6827
cpu: [arm64]
6828
os: [linux]
6829
6534
- turbo-windows-64@2.5.4:
6535
- resolution: {integrity: sha512-EQUO4SmaCDhO6zYohxIjJpOKRN3wlfU7jMAj3CgcyTPvQR/UFLEKAYHqJOnJtymbQmiiM/ihX6c6W6Uq0yC7mA==}
6830
+ turbo-windows-64@2.6.1:
6831
+ resolution: {integrity: sha512-buq7/VAN7KOjMYi4tSZT5m+jpqyhbRU2EUTTvp6V0Ii8dAkY2tAAjQN1q5q2ByflYWKecbQNTqxmVploE0LVwQ==}
6832
cpu: [x64]
6833
os: [win32]
6834
6539
- turbo-windows-arm64@2.5.4:
6540
- resolution: {integrity: sha512-oQ8RrK1VS8lrxkLriotFq+PiF7iiGgkZtfLKF4DDKsmdbPo0O9R2mQxm7jHLuXraRCuIQDWMIw6dpcr7Iykf4A==}
6835
+ turbo-windows-arm64@2.6.1:
6836
+ resolution: {integrity: sha512-7w+AD5vJp3R+FB0YOj1YJcNcOOvBior7bcHTodqp90S3x3bLgpr7tE6xOea1e8JkP7GK6ciKVUpQvV7psiwU5Q==}
6837
cpu: [arm64]
6838
os: [win32]
6839
6544
- turbo@2.5.4:
6545
- resolution: {integrity: sha512-kc8ZibdRcuWUG1pbYSBFWqmIjynlD8Lp7IB6U3vIzvOv9VG+6Sp8bzyeBWE3Oi8XV5KsQrznyRTBPvrf99E4mA==}
6840
+ turbo@2.6.1:
6841
+ resolution: {integrity: sha512-qBwXXuDT3rA53kbNafGbT5r++BrhRgx3sAo0cHoDAeG9g1ItTmUMgltz3Hy7Hazy1ODqNpR+C7QwqL6DYB52yA==}
6842
hasBin: true
6843
6844
tweetnacl@1.0.3:
@@ -6580,33 +6876,33 @@ packages:
6876
resolution: {integrity: sha512-nAYYwfY3qnzX30IkA6AQZjVbtK6duGontcQm1WSG1MD94YLqK0515GNApXkoxKOWMusVssAHWLh9SeaoefYFGw==}
6877
engines: {node: '>= 0.4'}
6878
6583
- typedoc-plugin-markdown@4.6.4:
6584
- resolution: {integrity: sha512-AnbToFS1T1H+n40QbO2+i0wE6L+55rWnj7zxnM1r781+2gmhMF2dB6dzFpaylWLQYkbg4D1Y13sYnne/6qZwdw==}
6879
+ typedoc-plugin-markdown@4.9.0:
6880
+ resolution: {integrity: sha512-9Uu4WR9L7ZBgAl60N/h+jqmPxxvnC9nQAlnnO/OujtG2ubjnKTVUFY1XDhcMY+pCqlX3N2HsQM2QTYZIU9tJuw==}
6881
engines: {node: '>= 18'}
6882
peerDependencies:
6883
typedoc: 0.28.x
6884
6589
- typedoc-plugin-zod@1.4.2:
6590
- resolution: {integrity: sha512-DERrqbKyW1DAWgs+L3sgCTxrVJQuHg4whj0FZcXWIVdwtoYYSnxK2XSS9gepBwyRwlojjVux1ZjSPwDsWz9ulg==}
6885
+ typedoc-plugin-zod@1.4.3:
6886
+ resolution: {integrity: sha512-j3kb4dGGK5OegtiIOH4F4etYdqq2lh+sTx6sABTmptPJJm8qx9XHyNlzfLYqW86ZVfL0hFR3+B/Ij9YXQw9TsA==}
6887
peerDependencies:
6888
typedoc: 0.23.x || 0.24.x || 0.25.x || 0.26.x || 0.27.x || 0.28.x
6889
6594
- typedoc@0.28.5:
6595
- resolution: {integrity: sha512-5PzUddaA9FbaarUzIsEc4wNXCiO4Ot3bJNeMF2qKpYlTmM9TTaSHQ7162w756ERCkXER/+o2purRG6YOAv6EMA==}
6890
+ typedoc@0.28.14:
6891
+ resolution: {integrity: sha512-ftJYPvpVfQvFzpkoSfHLkJybdA/geDJ8BGQt/ZnkkhnBYoYW6lBgPQXu6vqLxO4X75dA55hX8Af847H5KXlEFA==}
6892
engines: {node: '>= 18', pnpm: '>= 10'}
6893
hasBin: true
6894
peerDependencies:
6599
- typescript: 5.0.x || 5.1.x || 5.2.x || 5.3.x || 5.4.x || 5.5.x || 5.6.x || 5.7.x || 5.8.x
6895
+ typescript: 5.0.x || 5.1.x || 5.2.x || 5.3.x || 5.4.x || 5.5.x || 5.6.x || 5.7.x || 5.8.x || 5.9.x
6896
6601
- typescript-eslint@8.34.1:
6602
- resolution: {integrity: sha512-XjS+b6Vg9oT1BaIUfkW3M3LvqZE++rbzAMEHuccCfO/YkP43ha6w3jTEMilQxMF92nVOYCcdjv1ZUhAa1D/0ow==}
6897
+ typescript-eslint@8.48.0:
6898
+ resolution: {integrity: sha512-fcKOvQD9GUn3Xw63EgiDqhvWJ5jsyZUaekl3KVpGsDJnN46WJTe3jWxtQP9lMZm1LJNkFLlTaWAxK2vUQR+cqw==}
6899
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
6900
peerDependencies:
6901
eslint: ^8.57.0 || ^9.0.0
6606
- typescript: '>=4.8.4 <5.9.0'
6902
+ typescript: '>=4.8.4 <6.0.0'
6903
6608
- typescript@5.9.2:
6609
- resolution: {integrity: sha512-CWBzXQrc/qOkhidw1OzBTQuYRbfyxDXJMVJ1XNwUHGROVmuaeiEm3OslpZ1RV96d7SKKjZKrSJu3+t/xlw3R9A==}
6904
+ typescript@5.9.3:
6905
+ resolution: {integrity: sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==}
6906
engines: {node: '>=14.17'}
6907
hasBin: true
6908
@@ -6625,11 +6921,8 @@ packages:
6921
undici-types@6.21.0:
6922
resolution: {integrity: sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==}
6923
6628
- undici-types@7.13.0:
6629
- resolution: {integrity: sha512-Ov2Rr9Sx+fRgagJ5AX0qvItZG/JKKoBRAVITs1zk7IqZGTJUwgUr7qoYBpWwakpWilTZFM98rG/AFRocu10iIQ==}
6630
-
6631
- undici-types@7.8.0:
6632
- resolution: {integrity: sha512-9UJ2xGDvQ43tYyVMpuHlsgApydB8ZKfVYTsLDhXkFL/6gfkp+U8xTGdh8pMJv1SpZna0zxG1DwsKZsreLbXBxw==}
6924
+ undici-types@7.16.0:
6925
+ resolution: {integrity: sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw==}
6926
6927
undici@7.14.0:
6928
resolution: {integrity: sha512-Vqs8HTzjpQXZeXdpsfChQTlafcMQaaIwnGwLam1wudSSjlJeQ3bw1j+TLPePgrCnCpUXx7Ba5Pdpf5OBih62NQ==}
@@ -6638,6 +6931,9 @@ packages:
6931
unenv@2.0.0-rc.21:
6932
resolution: {integrity: sha512-Wj7/AMtE9MRnAXa6Su3Lk0LNCfqDYgfwVjwRFVum9U7wsto1imuHqk4kTm7Jni+5A0Hn7dttL6O/zjvUvoo+8A==}
6933
6934
+ unenv@2.0.0-rc.24:
6935
+ resolution: {integrity: sha512-i7qRCmY42zmCwnYlh9H2SvLEypEFGye5iRmEMKjcGi7zk9UquigRjFtTLz0TYqr0ZGLZhaMHl/foy1bZR+Cwlw==}
6936
+
6937
unique-string@3.0.0:
6938
resolution: {integrity: sha512-VGXBUVwxKMBUznyffQweQABPRRW1vHZAbadFZud4pLFAqRGvv/96vafgjWFqzourzr8YonlQiPgH0YCJfawoGQ==}
This file is too large to show in full.
pnpm-workspace.yaml
+2
-2
@@ -15,8 +15,8 @@ packages:
15
catalog:
16
'@cloudflare/vitest-pool-workers': ^0.9.2
17
'@cloudflare/workers-types': ^4.20250917.0
18
- '@composio/client': 0.1.0-alpha.40
19
- ai: 5.0.52
18
+ '@composio/client': 0.1.0-alpha.46
19
+ ai: ^5.0.102
20
openai: ^5.20.3
21
tsup: ^8.5.0
22
tsx: ^4.20.5
python/composio/core/models/__init__.py
+2
@@ -1,6 +1,7 @@
1
from .auth_configs import AuthConfigs
2
from .connected_accounts import ConnectedAccounts
3
from .mcp import MCP
4
+from .tool_router import ToolRouter
5
from .toolkits import Toolkits
6
from .tools import Tools
7
from .triggers import Triggers
@@ -9,6 +10,7 @@ __all__ = [
10
"AuthConfigs",
11
"ConnectedAccounts",
12
"MCP",
13
+ "ToolRouter",
14
"Toolkits",
15
"Tools",
16
"Triggers",
python/composio/core/models/tool_router.py
+686
-78
@@ -1,119 +1,727 @@
1
"""
2
-ToolRouter module for Composio SDK.
2
+ToolRouter class for managing tool router sessions.
3
4
-This module provides tool routing session management with direct parameter usage,
5
-following Python conventions and avoiding unnecessary data transformations.
4
+This module provides tool routing session management with enhanced functionality
5
+for creating isolated MCP sessions with provider-wrapped tools.
6
"""
7
8
from __future__ import annotations
9
10
import typing as t
11
-from types import SimpleNamespace
11
+from dataclasses import dataclass
12
13
-from composio_client.types.tool_router_create_session_params import ConfigToolkit
13
+from composio_client import omit
14
+import typing_extensions as te
15
16
from composio.client import HttpClient
17
from composio.core.models.base import Resource
17
-from composio.exceptions import ValidationError
18
+from composio.core.models.connected_accounts import ConnectionRequest
19
+from composio.core.provider import TProvider
20
19
-# Data Types
21
+if t.TYPE_CHECKING:
22
+ from composio.core.models._modifiers import Modifiers
23
24
+# Type aliases
25
+AuthorizeFn = t.Callable[[str, t.Optional[t.Dict[str, str]]], ConnectionRequest]
26
+ToolkitsFn = t.Callable[[t.Optional[t.Dict[str, t.Any]]], "ToolkitConnectionsDetails"]
27
22
-class ToolRouterSession(SimpleNamespace):
23
- """Tool router session response with both dot notation and dict-style access."""
28
25
- def __init__(self, session_id: str, url: str):
26
- super().__init__(session_id=session_id, url=url)
29
+class ToolRouterToolkitsEnabledConfig(te.TypedDict, total=False):
30
+ """Configuration for enabling specific toolkits in tool router session.
31
28
- def __getitem__(self, key: str) -> str:
29
- """Support dict-style access like session['url']"""
30
- return getattr(self, key)
32
+ Attributes:
33
+ enabled: List of toolkit slugs to enable in the tool router session.
34
+ """
35
+
36
+ enabled: t.List[str]
37
+
38
+
39
+class ToolRouterToolkitsDisabledConfig(te.TypedDict, total=False):
40
+ """Configuration for disabling specific toolkits in tool router session.
41
+
42
+ Attributes:
43
+ disabled: List of toolkit slugs to disable in the tool router session.
44
+ """
45
+
46
+ disabled: t.List[str]
47
+
48
+
49
+class ToolRouterToolsOverrideEnabledConfig(te.TypedDict, total=False):
50
+ """Configuration for enabling specific tools for a toolkit.
51
+
52
+ Attributes:
53
+ enabled: List of tool slugs to enable for this toolkit.
54
+ """
55
+
56
+ enabled: t.List[str]
57
+
58
+
59
+class ToolRouterToolsOverrideDisabledConfig(te.TypedDict, total=False):
60
+ """Configuration for disabling specific tools for a toolkit.
61
+
62
+ Attributes:
63
+ disabled: List of tool slugs to disable for this toolkit.
64
+ """
65
+
66
+ disabled: t.List[str]
67
+
68
+
69
+class ToolRouterToolsTagsEnabledConfig(te.TypedDict, total=False):
70
+ """Configuration for enabling tools by tags.
71
+
72
+ Attributes:
73
+ enabled: List of tags - tools with at least one of these tags will be included.
74
+ """
75
+
76
+ enabled: t.List[str]
77
+
78
+
79
+class ToolRouterToolsTagsDisabledConfig(te.TypedDict, total=False):
80
+ """Configuration for disabling tools by tags.
81
+
82
+ Attributes:
83
+ disabled: List of tags - tools with any of these tags will be excluded.
84
+ """
85
+
86
+ disabled: t.List[str]
87
+
88
+
89
+class ToolRouterToolsConfig(te.TypedDict, total=False):
90
+ """Configuration for tools in tool router session.
91
+
92
+ Attributes:
93
+ overrides: Per-toolkit tool overrides. Key is toolkit slug, value is list of tools
94
+ or dict with 'enabled'/'disabled' key.
95
+ Example: {'gmail': ['GMAIL_SEND_EMAIL'], 'github': {'enabled': [...]}}
96
+ tags: Tag-based filtering. Can be a list of tags to include, or dict with
97
+ 'enabled'/'disabled' key.
98
+ Example: ['important', 'safe'] or {'enabled': ['important']} or {'disabled': ['dangerous']}
99
+ """
100
+
101
+ overrides: t.Dict[
102
+ str,
103
+ t.Union[
104
+ t.List[str],
105
+ ToolRouterToolsOverrideEnabledConfig,
106
+ ToolRouterToolsOverrideDisabledConfig,
107
+ ],
108
+ ]
109
+ tags: t.Union[
110
+ t.List[str],
111
+ ToolRouterToolsTagsEnabledConfig,
112
+ ToolRouterToolsTagsDisabledConfig,
113
+ ]
114
+
115
+
116
+class ToolRouterExecutionConfig(te.TypedDict, total=False):
117
+ """Configuration for execution settings in tool router session.
118
+
119
+ Attributes:
120
+ proxy_execution_enabled: Whether to allow proxy execute calls in the workbench.
121
+ If False, prevents arbitrary HTTP requests.
122
+ timeout_seconds: Maximum execution time for workbench operations in seconds.
123
+ """
124
+
125
+ proxy_execution_enabled: bool
126
+ timeout_seconds: int
127
+
128
+
129
+class ToolRouterManageConnectionsConfig(te.TypedDict, total=False):
130
+ """Configuration for connection management in tool router session.
131
+
132
+ Attributes:
133
+ enabled: Whether to use tools to manage connections. Defaults to True.
134
+ If False, you need to manage connections manually.
135
+ callback_uri: Optional callback URI to use for OAuth redirects.
136
+ infer_scopes_from_tools: Whether to infer scopes from tools in the tool router session.
137
+ Defaults to False.
138
+ """
139
+
140
+ enabled: bool
141
+ callback_uri: str
142
+ infer_scopes_from_tools: bool
143
32
- def __setitem__(self, key: str, value: str) -> None:
33
- """Support dict-style assignment like session['url'] = 'new_url'"""
34
- setattr(self, key, value)
144
145
+@dataclass
146
+class ToolkitConnectionAuthConfig:
147
+ """Auth config information for a toolkit connection.
148
37
-class ToolRouter(Resource):
149
+ Attributes:
150
+ id: The id of the auth config
151
+ mode: The auth scheme used by the auth config
152
+ is_composio_managed: Whether the auth config is managed by Composio
153
+ """
154
+
155
+ id: str
156
+ mode: str
157
+ is_composio_managed: bool
158
+
159
+
160
+@dataclass
161
+class ToolkitConnectedAccount:
162
+ """Connected account information for a toolkit.
163
+
164
+ Attributes:
165
+ id: The id of the connected account
166
+ status: The status of the connected account
167
+ """
168
+
169
+ id: str
170
+ status: str
171
+
172
+
173
+@dataclass
174
+class ToolkitConnection:
175
+ """Connection information for a toolkit.
176
+
177
+ Attributes:
178
+ is_active: Whether the connection is active or not
179
+ auth_config: The auth config of a toolkit
180
+ connected_account: The connected account of a toolkit
181
+ """
182
+
183
+ is_active: bool
184
+ auth_config: t.Optional[ToolkitConnectionAuthConfig] = None
185
+ connected_account: t.Optional[ToolkitConnectedAccount] = None
186
+
187
+
188
+@dataclass
189
+class ToolkitConnectionState:
190
+ """The connection state of a toolkit.
191
+
192
+ Attributes:
193
+ slug: The slug of a toolkit
194
+ name: The name of a toolkit
195
+ logo: The logo of a toolkit (optional)
196
+ is_no_auth: Whether the toolkit is no auth or not
197
+ connection: The connection information
198
+ """
199
+
200
+ slug: str
201
+ name: str
202
+ is_no_auth: bool
203
+ connection: ToolkitConnection
204
+ logo: t.Optional[str] = None
205
+
206
+
207
+@dataclass
208
+class ToolkitConnectionsDetails:
209
+ """Details of toolkit connections.
210
+
211
+ Attributes:
212
+ items: List of toolkit connection states
213
+ next_cursor: Optional cursor for pagination
214
+ total_pages: Total number of pages
215
+ """
216
+
217
+ items: t.List[ToolkitConnectionState]
218
+ total_pages: int
219
+ next_cursor: t.Optional[str] = None
220
+
221
+
222
+@dataclass
223
+class ToolRouterMCPServerConfig:
224
+ """Configuration for MCP server."""
225
+
226
+ type: str
227
+ url: str
228
+
229
+
230
+@dataclass
231
+class ToolRouterSession(t.Generic[TProvider]):
232
+ """
233
+ Tool router session containing session information and helper functions.
234
+
235
+ Attributes:
236
+ session_id: Unique session identifier
237
+ mcp: MCP server configuration
238
+ tools: Function to get provider-wrapped tools
239
+ authorize: Function to authorize a toolkit
240
+ toolkits: Function to get toolkit connection states
241
+ """
242
+
243
+ session_id: str
244
+ mcp: ToolRouterMCPServerConfig
245
+ tools: t.Callable[[t.Optional[Modifiers]], t.Any]
246
+ authorize: AuthorizeFn
247
+ toolkits: ToolkitsFn
248
+
249
+
250
+class ToolRouter(Resource, t.Generic[TProvider]):
251
"""
252
ToolRouter class for managing tool routing sessions.
253
41
- Provides functionality to create sessions that route tools through
42
- the Composio platform with proper authentication and configuration.
254
+ Provides functionality to create isolated tool router sessions with provider-wrapped tools,
255
+ authorization helpers, and connection management.
256
+
257
+ Example:
258
+ ```python
259
+ from composio import Composio
260
+
261
+ composio = Composio()
262
+
263
+ # Create a session for a user
264
+ session = composio.tool_router.create(
265
+ user_id='user_123',
266
+ manage_connections=True
267
+ )
268
+
269
+ # Get tools wrapped for the provider
270
+ tools = session.tools()
271
+
272
+ # Authorize a toolkit
273
+ connection_request = session.authorize('github')
274
+ print(f"Redirect URL: {connection_request.redirect_url}")
275
+ ```
276
"""
277
45
- def __init__(self, client: HttpClient):
278
+ def __init__(
279
+ self,
280
+ client: HttpClient,
281
+ provider: t.Optional[TProvider] = None,
282
+ ):
283
"""
284
Initialize ToolRouter instance.
285
286
:param client: HTTP client for API calls
287
+ :param provider: Optional provider for tool wrapping
288
"""
289
super().__init__(client)
290
+ self._provider = provider
291
+
292
+ def _create_authorize_fn(self, session_id: str) -> AuthorizeFn:
293
+ """
294
+ Create an authorization function for the session.
295
53
- def create_session(
296
+ :param session_id: The session ID
297
+ :return: Authorization function
298
+ """
299
+
300
+ def authorize_fn(
301
+ toolkit: str,
302
+ options: t.Optional[t.Dict[str, str]] = None,
303
+ ) -> ConnectionRequest:
304
+ """
305
+ Authorize a toolkit for the user.
306
+
307
+ :param toolkit: The toolkit to authorize
308
+ :param options: Optional options dict with 'callback_url' key for OAuth redirect
309
+ :return: Connection request object
310
+ """
311
+ # Make API call to create authorization link
312
+ callback_url = options.get("callback_url") if options else None
313
+
314
+ response = self._client.tool_router.session.link(
315
+ session_id=session_id,
316
+ toolkit=toolkit,
317
+ callback_url=callback_url if callback_url else omit,
318
+ )
319
+
320
+ # Return connection request with redirect URL
321
+ return ConnectionRequest(
322
+ id=response.connected_account_id,
323
+ redirect_url=response.redirect_url,
324
+ status="INITIATED",
325
+ client=self._client,
326
+ )
327
+
328
+ return authorize_fn
329
+
330
+ def _create_toolkits_fn(self, session_id: str) -> ToolkitsFn:
331
+ """
332
+ Create a toolkits function for the session.
333
+
334
+ :param session_id: The session ID
335
+ :return: Toolkits function
336
+ """
337
+
338
+ def toolkits_fn(
339
+ options: t.Optional[t.Dict[str, t.Any]] = None,
340
+ ) -> ToolkitConnectionsDetails:
341
+ """
342
+ Get toolkit connection states for the session.
343
+
344
+ :param options: Optional dict with 'next_cursor' and 'limit' keys
345
+ :return: Toolkit connections details with items, next_cursor, and total_pages
346
+ """
347
+ options = options or {}
348
+ toolkits_params: t.Dict[str, t.Any] = {}
349
+ if "next_cursor" in options and options["next_cursor"]:
350
+ toolkits_params["cursor"] = options["next_cursor"]
351
+ if "limit" in options and options["limit"]:
352
+ toolkits_params["limit"] = options["limit"]
353
+
354
+ result = self._client.tool_router.session.toolkits(
355
+ session_id=session_id,
356
+ **toolkits_params,
357
+ )
358
+
359
+ # Transform the result to match the expected format
360
+ toolkit_states: t.List[ToolkitConnectionState] = []
361
+ for item in result.items:
362
+ connected_account = item.connected_account
363
+ auth_config: t.Optional[ToolkitConnectionAuthConfig] = None
364
+ connected_acc: t.Optional[ToolkitConnectedAccount] = None
365
+
366
+ if connected_account:
367
+ if connected_account.auth_config:
368
+ auth_config = ToolkitConnectionAuthConfig(
369
+ id=connected_account.auth_config.id,
370
+ mode=connected_account.auth_config.auth_scheme,
371
+ is_composio_managed=connected_account.auth_config.is_composio_managed,
372
+ )
373
+ connected_acc = ToolkitConnectedAccount(
374
+ id=connected_account.id,
375
+ status=connected_account.status,
376
+ )
377
+
378
+ connection = ToolkitConnection(
379
+ is_active=(
380
+ connected_account.status == "ACTIVE"
381
+ if connected_account
382
+ else False
383
+ ),
384
+ auth_config=auth_config,
385
+ connected_account=connected_acc,
386
+ )
387
+
388
+ toolkit_state = ToolkitConnectionState(
389
+ slug=item.slug,
390
+ name=item.name,
391
+ logo=item.meta.logo if item.meta else None,
392
+ is_no_auth=False,
393
+ connection=connection,
394
+ )
395
+ toolkit_states.append(toolkit_state)
396
+
397
+ return ToolkitConnectionsDetails(
398
+ items=toolkit_states,
399
+ next_cursor=result.next_cursor,
400
+ total_pages=int(result.total_pages),
401
+ )
402
+
403
+ return toolkits_fn
404
+
405
+ def _create_tools_fn(
406
+ self,
407
+ user_id: str,
408
+ tool_slugs: t.Sequence[str],
409
+ ) -> t.Callable[[t.Optional[Modifiers]], t.Any]:
410
+ """
411
+ Create a tools function that wraps tools for the provider.
412
+
413
+ :param user_id: The user ID
414
+ :param tool_slugs: List of tool slugs to wrap
415
+ :return: Function that returns provider-wrapped tools
416
+ """
417
+ from composio.core.models.tools import Tools as ToolsModel
418
+
419
+ if self._provider is None:
420
+ raise ValueError(
421
+ "Provider is required for tool router. "
422
+ "Please initialize ToolRouter with a provider."
423
+ )
424
+
425
+ tools_model = ToolsModel(
426
+ client=self._client,
427
+ provider=self._provider,
428
+ )
429
+
430
+ def tools_fn(modifiers: t.Optional[Modifiers] = None) -> t.Any:
431
+ """
432
+ Get provider-wrapped tools for execution.
433
+
434
+ :param modifiers: Optional execution modifiers
435
+ :return: Provider-wrapped tools
436
+ """
437
+ router_tools = tools_model.get(
438
+ user_id=user_id, tools=list(tool_slugs), modifiers=modifiers
439
+ )
440
+ return router_tools
441
+
442
+ return tools_fn
443
+
444
+ def create(
445
self,
446
+ *,
447
user_id: str,
56
- toolkits: t.Optional[t.List[t.Union[ConfigToolkit, str]]] = None,
57
- manually_manage_connections: t.Optional[bool] = None,
58
- ) -> ToolRouterSession:
448
+ toolkits: t.Optional[
449
+ t.Union[
450
+ t.List[str],
451
+ ToolRouterToolkitsEnabledConfig,
452
+ ToolRouterToolkitsDisabledConfig,
453
+ ]
454
+ ] = None,
455
+ tools: t.Optional[ToolRouterToolsConfig] = None,
456
+ manage_connections: t.Optional[
457
+ t.Union[bool, ToolRouterManageConnectionsConfig]
458
+ ] = None,
459
+ auth_configs: t.Optional[t.Dict[str, str]] = None,
460
+ connected_accounts: t.Optional[t.Dict[str, str]] = None,
461
+ execution: t.Optional[ToolRouterExecutionConfig] = None,
462
+ ) -> ToolRouterSession[TProvider]:
463
"""
464
Create a new tool router session for a user.
465
466
:param user_id: The user ID to create the session for
63
- :param toolkits: List of toolkit configurations (strings or objects)
64
- :param manually_manage_connections: Whether to manually manage connections
65
- :return: Tool router session with session_id and url
66
-
67
- Examples:
68
- >>> # Simple usage with toolkit names
69
- >>> session = composio.experimental.tool_router.create_session(
70
- ... 'user_123',
71
- ... toolkits=['github', 'slack']
72
- ... )
73
- >>>
74
- >>> # With auth configs
75
- >>> session = composio.experimental.tool_router.create_session(
76
- ... 'user_123',
77
- ... toolkits=[
78
- ... {'toolkit': 'github', 'auth_config': 'ac_123'},
79
- ... 'hackernews'
80
- ... ],
81
- ... manually_manage_connections=False
82
- ... )
83
- >>>
84
- >>> # Access session details (both ways work!)
85
- >>> print(session.session_id) # Dot notation (preferred)
86
- >>> print(session['session_id']) # Dict-style access
87
- >>> print(session.url) # Dot notation (preferred)
88
- >>> print(session['url']) # Dict-style access
89
- """
90
- try:
91
- # Normalize toolkits to the format expected by the API
92
- toolkit_configs: t.List[ConfigToolkit] = []
93
- if toolkits:
94
- for toolkit in toolkits:
95
- if isinstance(toolkit, str):
96
- # Convert string to toolkit config
97
- toolkit_configs.append(ConfigToolkit(toolkit=toolkit))
98
- else:
99
- # Already a config object, use as-is
100
- toolkit_configs.append(toolkit)
101
-
102
- # Create session using the tool router API
103
- session = self._client.tool_router.create_session(
104
- user_id=user_id,
105
- config={
106
- "toolkits": toolkit_configs,
107
- "manually_manage_connections": manually_manage_connections,
108
- },
467
+ :param toolkits: Optional list of toolkit slugs or dict with 'enabled'/'disabled' key.
468
+ - List: ['github', 'slack'] - enable only these toolkits
469
+ - Dict: {'enabled': ['github']} or {'disabled': ['linear']}
470
+ :param tools: Optional dict with 'overrides' and/or 'tags' for tool-level configuration.
471
+ - overrides: Per-toolkit tool enable/disable
472
+ Example: {'gmail': ['GMAIL_SEND_EMAIL'], 'github': {'enabled': [...]}}
473
+ - tags: Tag-based filtering
474
+ Example: ['important'] or {'enabled': ['safe']} or {'disabled': ['dangerous']}
475
+ :param manage_connections: Whether to enable connection management tools.
476
+ - Boolean: True/False
477
+ - Dict with keys: 'enabled', 'callback_uri', 'infer_scopes_from_tools'
478
+ :param auth_configs: Optional mapping of toolkit slug to auth config ID.
479
+ Example: {'github': 'ac_xxx', 'slack': 'ac_yyy'}
480
+ :param connected_accounts: Optional mapping of toolkit slug to connected account ID.
481
+ Example: {'github': 'ca_xxx', 'slack': 'ca_yyy'}
482
+ :param execution: Optional execution configuration.
483
+ - proxy_execution_enabled: Whether to allow proxy execute calls
484
+ - timeout_seconds: Maximum execution time in seconds
485
+ :return: Tool router session object
486
+
487
+ Example:
488
+ ```python
489
+ # Create a basic session
490
+ session = tool_router.create('user_123')
491
+
492
+ # Create a session with specific toolkits
493
+ session = tool_router.create(
494
+ 'user_123',
495
+ toolkits=['github', 'slack']
496
)
497
111
- # Return the session response directly (no unnecessary transformations)
112
- return ToolRouterSession(
113
- session_id=session.session_id, url=session.chat_session_mcp_url
498
+ # Create a session with tool overrides
499
+ session = tool_router.create(
500
+ 'user_123',
501
+ tools={
502
+ 'overrides': {
503
+ 'gmail': ['GMAIL_SEND_EMAIL', 'GMAIL_SEARCH'],
504
+ 'github': {'enabled': ['GITHUB_CREATE_ISSUE']}
505
+ },
506
+ 'tags': ['safe', 'important']
507
+ }
508
)
509
116
- except Exception as e:
117
- raise ValidationError(
118
- f"Failed to create tool router session for user {user_id}"
119
- ) from e
510
+ # Create a session with tag filtering
511
+ session = tool_router.create(
512
+ 'user_123',
513
+ tools={
514
+ 'tags': {'enabled': ['read_only_hint', 'non_destructive_hint']}
515
+ }
516
+ )
517
+
518
+ # Create a session with connection management
519
+ session = tool_router.create(
520
+ 'user_123',
521
+ manage_connections={
522
+ 'enabled': True,
523
+ 'callback_uri': 'https://example.com/callback',
524
+ 'infer_scopes_from_tools': True
525
+ }
526
+ )
527
+
528
+ # Create a session with execution config
529
+ session = tool_router.create(
530
+ 'user_123',
531
+ execution={
532
+ 'proxy_execution_enabled': False,
533
+ 'timeout_seconds': 300
534
+ }
535
+ )
536
+
537
+ # Use the session
538
+ tools = session.tools()
539
+ connection = session.authorize('github')
540
+ toolkit_states = session.toolkits()
541
+ ```
542
+ """
543
+
544
+ # Parse manage_connections config
545
+ manage_connections = (
546
+ manage_connections if manage_connections is not None else True
547
+ )
548
+ auto_manage_connections = (
549
+ manage_connections
550
+ if isinstance(manage_connections, bool)
551
+ else manage_connections.get("enabled", True)
552
+ )
553
+
554
+ # Parse toolkits config
555
+ toolkits_payload: t.Optional[t.Dict[str, t.List[str]]] = None
556
+ if toolkits is not None:
557
+ if isinstance(toolkits, list):
558
+ toolkits_payload = {"enabled": toolkits}
559
+ else:
560
+ toolkits_payload = t.cast(t.Dict[str, t.List[str]], toolkits)
561
+
562
+ # Parse tools config - transform to API format
563
+ tools_payload = None
564
+ if tools is not None:
565
+ tools_payload = {}
566
+
567
+ # Handle overrides
568
+ if "overrides" in tools:
569
+ overrides_dict: t.Dict[str, t.Any] = {}
570
+ for toolkit_slug, override_value in tools["overrides"].items():
571
+ if isinstance(override_value, list):
572
+ # Simple list means enabled tools
573
+ overrides_dict[toolkit_slug] = {"enabled": override_value}
574
+ else:
575
+ # Already in dict format with 'enabled' or 'disabled'
576
+ overrides_dict[toolkit_slug] = dict(override_value)
577
+
578
+ tools_payload["overrides"] = overrides_dict
579
+
580
+ # Handle tags
581
+ if "tags" in tools:
582
+ tags_value = tools["tags"]
583
+ tag_filters: t.Dict[str, t.List[str]] = {}
584
+
585
+ if isinstance(tags_value, list):
586
+ # Simple list means include these tags
587
+ tag_filters = {"include": tags_value}
588
+ elif isinstance(tags_value, dict):
589
+ # Check which key exists in the dict
590
+ tags_dict = t.cast(t.Dict[str, t.List[str]], tags_value)
591
+ if "enabled" in tags_dict:
592
+ # enabled means include
593
+ tag_filters = {"include": tags_dict["enabled"]}
594
+ elif "disabled" in tags_dict:
595
+ # disabled means exclude
596
+ tag_filters = {"exclude": tags_dict["disabled"]}
597
+
598
+ if tag_filters:
599
+ tools_payload["filters"] = {"tags": tag_filters}
600
+
601
+ # Parse infer_scopes_from_tools
602
+ infer_scopes_from_tools = (
603
+ manage_connections.get("infer_scopes_from_tools", False)
604
+ if isinstance(manage_connections, dict)
605
+ else False
606
+ )
607
+
608
+ # Parse callback_uri
609
+ callback_uri = (
610
+ manage_connections.get("callback_uri")
611
+ if isinstance(manage_connections, dict)
612
+ else omit
613
+ )
614
+
615
+ # Build the API payload
616
+ create_params: t.Dict[str, t.Any] = {
617
+ "user_id": user_id,
618
+ }
619
+
620
+ # Build connections config
621
+ connections_config: t.Dict[str, t.Any] = {
622
+ "auto_manage_connections": auto_manage_connections,
623
+ "infer_scopes_from_tools": infer_scopes_from_tools,
624
+ }
625
+ if callback_uri is not None and callback_uri is not omit:
626
+ connections_config["callback_uri"] = callback_uri
627
+
628
+ create_params["connections"] = connections_config
629
+
630
+ # Add optional fields
631
+ if auth_configs is not None:
632
+ create_params["auth_configs"] = auth_configs
633
+
634
+ if connected_accounts is not None:
635
+ create_params["connected_accounts"] = connected_accounts
636
+
637
+ if toolkits_payload is not None:
638
+ create_params["toolkits"] = toolkits_payload
639
+
640
+ if tools_payload:
641
+ create_params["tools"] = tools_payload
642
+
643
+ if execution is not None:
644
+ execution_payload: t.Dict[str, t.Any] = {}
645
+ if "proxy_execution_enabled" in execution:
646
+ execution_payload["proxy_execution_enabled"] = execution[
647
+ "proxy_execution_enabled"
648
+ ]
649
+ if "timeout_seconds" in execution:
650
+ execution_payload["timeout_seconds"] = int(execution["timeout_seconds"])
651
+
652
+ if execution_payload:
653
+ create_params["execution"] = execution_payload
654
+
655
+ # Make API call to create session
656
+ session = self._client.tool_router.session.create(**create_params)
657
+
658
+ # Create and return the session
659
+ return ToolRouterSession(
660
+ session_id=session.session_id,
661
+ mcp=ToolRouterMCPServerConfig(
662
+ type=session.mcp.type.upper(),
663
+ url=session.mcp.url,
664
+ ),
665
+ tools=self._create_tools_fn(user_id, session.tool_router_tools),
666
+ authorize=self._create_authorize_fn(session.session_id),
667
+ toolkits=self._create_toolkits_fn(session.session_id),
668
+ )
669
+
670
+ def use(self, session_id: str) -> ToolRouterSession[TProvider]:
671
+ """
672
+ Retrieve and use an existing tool router session.
673
+
674
+ :param session_id: The session ID to retrieve
675
+ :return: Tool router session object
676
+
677
+ Example:
678
+ ```python
679
+ from composio import Composio
680
+
681
+ composio = Composio()
682
+ tool_router = composio.tool_router
683
+
684
+ # Retrieve an existing session
685
+ session = tool_router.use('session_123')
686
+
687
+ # Use the session
688
+ tools = session.tools()
689
+ connection = session.authorize('github')
690
+ toolkit_states = session.toolkits()
691
+ ```
692
+ """
693
+ # Retrieve the session from the API
694
+ session = self._client.tool_router.session.retrieve(session_id)
695
+
696
+ # Extract user_id from session config
697
+ user_id = session.config.user_id
698
+
699
+ # Create and return the session
700
+ return ToolRouterSession(
701
+ session_id=session.session_id,
702
+ mcp=ToolRouterMCPServerConfig(
703
+ type=session.mcp.type.upper(),
704
+ url=session.mcp.url,
705
+ ),
706
+ tools=self._create_tools_fn(user_id, session.tool_router_tools),
707
+ authorize=self._create_authorize_fn(session.session_id),
708
+ toolkits=self._create_toolkits_fn(session.session_id),
709
+ )
710
+
711
+
712
+__all__ = [
713
+ "ToolRouter",
714
+ "ToolRouterSession",
715
+ "ToolRouterToolkitsEnabledConfig",
716
+ "ToolRouterToolkitsDisabledConfig",
717
+ "ToolRouterToolsOverrideEnabledConfig",
718
+ "ToolRouterToolsOverrideDisabledConfig",
719
+ "ToolRouterToolsTagsEnabledConfig",
720
+ "ToolRouterToolsTagsDisabledConfig",
721
+ "ToolRouterToolsConfig",
722
+ "ToolRouterManageConnectionsConfig",
723
+ "ToolRouterExecutionConfig",
724
+ "ToolkitConnectionState",
725
+ "ToolkitConnectionsDetails",
726
+ "ToolRouterMCPServerConfig",
727
+]
python/composio/integration_test/test_tool_router.py
deleted
-127
@@ -1,127 +0,0 @@
1
-"""
2
-Integration tests for ToolRouter functionality.
3
-
4
-This module tests the experimental ToolRouter feature with clean Python API design.
5
-"""
6
-
7
-import os
8
-import time
9
-
10
-import pytest
11
-
12
-from composio import Composio
13
-from composio.exceptions import ValidationError
14
-
15
-# Test configuration
16
-API_KEY = os.getenv("COMPOSIO_API_KEY")
17
-
18
-if not API_KEY:
19
- pytest.fail("COMPOSIO_API_KEY environment variable not set", pytrace=False)
20
-
21
-
22
-@pytest.fixture
23
-def composio_client():
24
- """Fixture providing Composio client instance."""
25
- return Composio(api_key=API_KEY)
26
-
27
-
28
-class TestToolRouterStructure:
29
- """Test the basic structure and availability of ToolRouter features."""
30
-
31
- def test_experimental_tool_router_exists(self, composio_client):
32
- """Test that experimental.tool_router exists."""
33
- assert hasattr(composio_client.experimental, "tool_router"), (
34
- "Missing experimental.tool_router"
35
- )
36
-
37
- def test_tool_router_methods_available(self, composio_client):
38
- """Test that required ToolRouter methods are available."""
39
- assert hasattr(composio_client.experimental.tool_router, "create_session"), (
40
- "Missing create_session method"
41
- )
42
-
43
-
44
-class TestToolRouterOperations:
45
- """Test ToolRouter operations."""
46
-
47
- def test_create_session_with_string_toolkits(self, composio_client):
48
- """Test creating tool router session with simple string toolkit names."""
49
- user_id = f"pytest-user-{int(time.time()) % 1000000}"
50
-
51
- session = composio_client.experimental.tool_router.create_session(
52
- user_id, toolkits=["composio_search", "text_to_pdf"]
53
- )
54
-
55
- # Basic validation
56
- assert session["session_id"]
57
- assert session["url"]
58
- assert isinstance(session["session_id"], str)
59
- assert isinstance(session["url"], str)
60
- assert len(session["url"]) > 0
61
-
62
- def test_create_session_with_mixed_toolkits(self, composio_client):
63
- """Test creating session with mixed string and object formats."""
64
- user_id = f"pytest-mixed-{int(time.time()) % 1000000}"
65
-
66
- session = composio_client.experimental.tool_router.create_session(
67
- user_id,
68
- toolkits=[
69
- "composio_search", # String format
70
- {
71
- "toolkit": "text_to_pdf",
72
- # No auth_config_id needed for non-auth toolkit
73
- }, # Object format
74
- ],
75
- manually_manage_connections=False,
76
- )
77
-
78
- # Basic validation
79
- assert session["session_id"]
80
- assert session["url"]
81
-
82
- def test_create_session_minimal(self, composio_client):
83
- """Test creating session with minimal parameters."""
84
- user_id = f"pytest-minimal-{int(time.time()) % 1000000}"
85
-
86
- session = composio_client.experimental.tool_router.create_session(user_id)
87
-
88
- # Should work even without toolkits specified
89
- assert session["session_id"]
90
- assert session["url"]
91
-
92
-
93
-class TestToolRouterErrorHandling:
94
- """Test error handling and edge cases."""
95
-
96
- def test_create_session_with_empty_user_id(self, composio_client):
97
- """Test creating session with empty user ID."""
98
- with pytest.raises(ValidationError):
99
- composio_client.experimental.tool_router.create_session("")
100
-
101
-
102
-class TestToolRouterRealWorldScenarios:
103
- """Test real-world usage scenarios."""
104
-
105
- def test_complete_session_workflow(self, composio_client):
106
- """Test complete workflow: create session -> use session details."""
107
- user_id = f"pytest-workflow-{int(time.time()) % 1000000}"
108
-
109
- print(f"🏗️ Creating tool router session for user: {user_id}")
110
-
111
- # Create session with non-auth toolkits
112
- session = composio_client.experimental.tool_router.create_session(
113
- user_id,
114
- toolkits=["composio_search", "text_to_pdf"],
115
- manually_manage_connections=False,
116
- )
117
-
118
- print("✅ Session created successfully!")
119
- print(f" Session ID: {session['session_id']}")
120
- print(f" Session URL: {session['url']}")
121
-
122
- # Validate session structure
123
- assert session["session_id"]
124
- assert session["url"]
125
- assert "composio" in session["url"] # Should be a Composio URL
126
-
127
- print("🎉 ToolRouter workflow completed successfully!")
python/composio/sdk.py
+9
-3
@@ -10,13 +10,13 @@ from composio.client import DEFAULT_MAX_RETRIES, APIEnvironment, HttpClient
10
from composio.core.models import (
11
AuthConfigs,
12
ConnectedAccounts,
13
+ ToolRouter,
14
Toolkits,
15
Tools,
16
Triggers,
17
)
18
from composio.core.models.base import allow_tracking
19
from composio.core.models.mcp import MCP
19
-from composio.core.models.tool_router import ToolRouter
20
from composio.core.provider import TProvider
21
from composio.core.provider._openai import OpenAIProvider
22
from composio.core.types import ToolkitVersionParam
@@ -46,7 +46,8 @@ class ExperimentalNamespace:
46
47
:param tool_router: Experimental ToolRouter instance
48
"""
49
- self.tool_router = tool_router
49
+ self.create = tool_router.create
50
+ self.use = tool_router.use
51
52
53
class Composio(t.Generic[TProvider], WithLogger):
@@ -55,6 +56,7 @@ class Composio(t.Generic[TProvider], WithLogger):
56
"""
57
58
tools: Tools[TProvider]
59
+ tool_router: ToolRouter[TProvider]
60
experimental: ExperimentalNamespace
61
62
def __init__(
@@ -100,6 +102,10 @@ class Composio(t.Generic[TProvider], WithLogger):
102
file_download_dir=kwargs.get("file_download_dir"),
103
toolkit_versions=toolkit_versions,
104
)
105
+ self.tool_router = ToolRouter(
106
+ client=self._client,
107
+ provider=self.provider,
108
+ )
109
self.toolkits = Toolkits(client=self._client)
110
self.triggers = Triggers(client=self._client, toolkit_versions=toolkit_versions)
111
self.auth_configs = AuthConfigs(client=self._client)
@@ -108,7 +114,7 @@ class Composio(t.Generic[TProvider], WithLogger):
114
115
# Initialize experimental features
116
self.experimental = ExperimentalNamespace(
111
- tool_router=ToolRouter(client=self._client),
117
+ tool_router=self.tool_router,
118
)
119
120
@property
python/composio/utils/__init__.py
+11
@@ -1,3 +1,6 @@
1
+from .uuid import generate_short_id, generate_uuid
2
+
3
+
4
class DeprecationError(Exception):
5
"""Raised when deprecating some older functions. This is strictly for use
6
while developing and will be removed from the codebase later."""
@@ -19,3 +22,11 @@ def deprecate(reason: str = "This function is deprecated"):
22
return wrapper
23
24
return decorator
25
+
26
+
27
+__all__ = [
28
+ "DeprecationError",
29
+ "deprecate",
30
+ "generate_short_id",
31
+ "generate_uuid",
32
+]
python/composio/utils/uuid.py
new
+17
@@ -0,0 +1,17 @@
1
+"""UUID utility functions for Composio SDK."""
2
+
3
+import uuid
4
+
5
+
6
+def generate_uuid() -> str:
7
+ """Generate a random UUID v4 string."""
8
+ return str(uuid.uuid4())
9
+
10
+
11
+def generate_short_id() -> str:
12
+ """
13
+ Generate a short ID (8 characters) from a UUID.
14
+
15
+ Returns the first 8 characters of a UUID with dashes removed.
16
+ """
17
+ return generate_uuid()[:8].replace("-", "")
python/examples/experimental_tool_router_advanced_example.py
new
+189
@@ -0,0 +1,189 @@
1
+"""
2
+Advanced examples demonstrating the ToolRouter with all configuration options.
3
+
4
+This example shows various ways to configure tool router sessions with
5
+different parameters matching the TypeScript implementation.
6
+"""
7
+
8
+from composio import Composio
9
+
10
+# Initialize Composio SDK
11
+composio = Composio()
12
+
13
+
14
+def example_with_specific_toolkits():
15
+ """Create a session with specific toolkits enabled."""
16
+ print("=== Specific Toolkits Example ===")
17
+
18
+ session = composio.tool_router.create(
19
+ user_id="user_toolkit", toolkits=["github", "slack", "linear"]
20
+ )
21
+
22
+ print(f"Session ID: {session.session_id}")
23
+ print("Available toolkits: github, slack, linear")
24
+ return session
25
+
26
+
27
+def example_with_disabled_toolkits():
28
+ """Create a session with specific toolkits disabled."""
29
+ print("\n=== Disabled Toolkits Example ===")
30
+
31
+ session = composio.tool_router.create(
32
+ user_id="user_disabled", toolkits={"disabled": ["linear", "jira"]}
33
+ )
34
+
35
+ print(f"Session ID: {session.session_id}")
36
+ print("Disabled toolkits: linear, jira")
37
+ return session
38
+
39
+
40
+def example_with_connection_management_config():
41
+ """Create a session with connection management and callback URL."""
42
+ print("\n=== Connection Management with Callback Example ===")
43
+
44
+ session = composio.tool_router.create(
45
+ user_id="user_callback",
46
+ manage_connections={
47
+ "enabled": True,
48
+ "callback_uri": "https://myapp.com/oauth/callback",
49
+ },
50
+ )
51
+
52
+ print(f"Session ID: {session.session_id}")
53
+ print("Connection management enabled with custom callback")
54
+ return session
55
+
56
+
57
+def example_with_auth_configs():
58
+ """Create a session with specific auth configs for toolkits."""
59
+ print("\n=== Auth Configs Example ===")
60
+
61
+ session = composio.tool_router.create(
62
+ user_id="user_auth",
63
+ toolkits=["github", "slack"],
64
+ auth_configs={"github": "ac_github_123", "slack": "ac_slack_456"},
65
+ )
66
+
67
+ print(f"Session ID: {session.session_id}")
68
+ print("Auth configs: github → ac_github_123, slack → ac_slack_456")
69
+ return session
70
+
71
+
72
+def example_with_connected_accounts():
73
+ """Create a session with pre-configured connected accounts."""
74
+ print("\n=== Connected Accounts Example ===")
75
+
76
+ session = composio.tool_router.create(
77
+ user_id="user_connected",
78
+ toolkits=["github", "slack"],
79
+ connected_accounts={"github": "ca_github_789", "slack": "ca_slack_012"},
80
+ )
81
+
82
+ print(f"Session ID: {session.session_id}")
83
+ print("Connected accounts: github → ca_github_789, slack → ca_slack_012")
84
+ return session
85
+
86
+
87
+def example_with_all_parameters():
88
+ """Create a session with all parameters configured."""
89
+ print("\n=== All Parameters Example ===")
90
+
91
+ session = composio.tool_router.create(
92
+ user_id="user_complete",
93
+ toolkits=["github", "slack", "notion"],
94
+ manage_connections={
95
+ "enabled": True,
96
+ "callback_uri": "https://myapp.com/callback",
97
+ },
98
+ auth_configs={
99
+ "github": "ac_github_xyz",
100
+ "slack": "ac_slack_abc",
101
+ "notion": "ac_notion_def",
102
+ },
103
+ connected_accounts={"github": "ca_github_111", "slack": "ca_slack_222"},
104
+ )
105
+
106
+ print(f"✓ Session ID: {session.session_id}")
107
+ print("✓ Toolkits: github, slack, notion")
108
+ print("✓ Connection management: enabled with callback")
109
+ print("✓ Auth configs: configured for 3 toolkits")
110
+ print("✓ Connected accounts: 2 pre-configured")
111
+
112
+ return session
113
+
114
+
115
+def example_minimal_vs_maximal():
116
+ """Compare minimal and maximal configurations."""
117
+ print("\n=== Minimal vs Maximal Example ===")
118
+
119
+ # Minimal - just user ID
120
+ minimal_session = composio.tool_router.create(user_id="user_minimal")
121
+ print(f"Minimal session: {minimal_session.session_id}")
122
+
123
+ # Maximal - all options
124
+ maximal_session = composio.tool_router.create(
125
+ user_id="user_maximal",
126
+ toolkits=["github", "slack"],
127
+ manage_connections={"enabled": True, "callback_uri": "https://app.com/cb"},
128
+ auth_configs={"github": "ac_1", "slack": "ac_2"},
129
+ connected_accounts={"github": "ca_1"},
130
+ )
131
+ print(f"Maximal session: {maximal_session.session_id}")
132
+
133
+ return minimal_session, maximal_session
134
+
135
+
136
+def example_type_safe_configuration():
137
+ """Demonstrate type-safe configuration using TypedDict."""
138
+ print("\n=== Type-Safe Configuration Example ===")
139
+
140
+ from composio.core.models.tool_router import (
141
+ ToolRouterToolkitsDisabledConfig,
142
+ ToolRouterManageConnectionsConfig,
143
+ )
144
+
145
+ # Type-safe toolkit config
146
+ toolkit_config: ToolRouterToolkitsDisabledConfig = {"disabled": ["linear", "asana"]}
147
+
148
+ # Type-safe connection management config
149
+ connection_config: ToolRouterManageConnectionsConfig = {
150
+ "enabled": True,
151
+ "callback_uri": "https://secure.app.com/oauth",
152
+ "infer_scopes_from_tools": False,
153
+ }
154
+
155
+ session = composio.tool_router.create(
156
+ user_id="user_typesafe",
157
+ toolkits=toolkit_config,
158
+ manage_connections=connection_config,
159
+ )
160
+
161
+ print(f"Session ID: {session.session_id}")
162
+ print("✓ Type-safe configuration applied")
163
+
164
+ return session
165
+
166
+
167
+if __name__ == "__main__":
168
+ """Run all advanced examples."""
169
+ print("Composio ToolRouter Advanced Examples\n")
170
+ print("=" * 60)
171
+
172
+ try:
173
+ example_with_specific_toolkits()
174
+ example_with_disabled_toolkits()
175
+ example_with_connection_management_config()
176
+ example_with_auth_configs()
177
+ example_with_connected_accounts()
178
+ example_with_all_parameters()
179
+ example_minimal_vs_maximal()
180
+ example_type_safe_configuration()
181
+
182
+ print("\n" + "=" * 60)
183
+ print("✓ All advanced examples completed successfully!")
184
+
185
+ except Exception as e:
186
+ print(f"\n✗ Error running examples: {e}")
187
+ import traceback
188
+
189
+ traceback.print_exc()
python/examples/experimental_tool_router_example.py
new
+187
@@ -0,0 +1,187 @@
1
+"""
2
+Example demonstrating the use of ToolRouter in Composio SDK.
3
+
4
+This example shows how to create a tool router session for a user,
5
+get provider-wrapped tools, and authorize toolkits.
6
+"""
7
+
8
+from composio import Composio
9
+
10
+# Initialize Composio SDK
11
+composio = Composio()
12
+
13
+
14
+# Example 1: Create a basic tool router session
15
+def basic_session_example():
16
+ """Create a basic tool router session."""
17
+ print("=== Basic Session Example ===")
18
+
19
+ user_id = "user_123"
20
+
21
+ # Create a tool router session
22
+ session = composio.tool_router.create(user_id=user_id)
23
+
24
+ print(f"Session ID: {session.session_id}")
25
+ print(f"MCP Server Type: {session.mcp.type}")
26
+ print(f"MCP Server URL: {session.mcp.url}")
27
+
28
+ # Get tools wrapped for the provider
29
+ tools = session.tools()
30
+ print(
31
+ f"Number of tools available: {len(tools) if isinstance(tools, list) else 'N/A'}"
32
+ )
33
+
34
+ return session
35
+
36
+
37
+# Example 2: Create a session with connection management
38
+def session_with_connections_example():
39
+ """Create a session with connection management enabled."""
40
+ print("\n=== Session with Connection Management ===")
41
+
42
+ user_id = "user_456"
43
+
44
+ # Create a tool router session with connection management
45
+ session = composio.tool_router.create(user_id=user_id, manage_connections=True)
46
+
47
+ print(f"Session ID: {session.session_id}")
48
+ print("Connection management enabled")
49
+
50
+ # Get tools (now includes COMPOSIO_MANAGE_CONNECTIONS)
51
+ tools = session.tools()
52
+ print(
53
+ f"Number of tools available: {len(tools) if isinstance(tools, list) else 'N/A'}"
54
+ )
55
+
56
+ return session
57
+
58
+
59
+# Example 3: Authorize a toolkit
60
+def authorize_toolkit_example():
61
+ """Demonstrate toolkit authorization."""
62
+ print("\n=== Authorize Toolkit Example ===")
63
+
64
+ user_id = "user_789"
65
+
66
+ # Create a session
67
+ session = composio.tool_router.create(user_id=user_id)
68
+
69
+ # Authorize GitHub toolkit for the user
70
+ try:
71
+ connection_request = session.authorize("github")
72
+
73
+ print(f"Connection Request ID: {connection_request.id}")
74
+ print(f"Connection Status: {connection_request.status}")
75
+
76
+ if connection_request.redirect_url:
77
+ print(f"Redirect URL: {connection_request.redirect_url}")
78
+ print("User should visit this URL to complete authorization")
79
+
80
+ return connection_request
81
+ except Exception as e:
82
+ print(f"Error authorizing toolkit: {e}")
83
+ return None
84
+
85
+
86
+# Example 4: Get toolkit connection states
87
+def get_toolkits_example():
88
+ """Get toolkit connection states for a session."""
89
+ print("\n=== Get Toolkits Example ===")
90
+
91
+ user_id = "user_101"
92
+
93
+ # Create a session
94
+ session = composio.tool_router.create(user_id=user_id)
95
+
96
+ # Get toolkit connection states
97
+ toolkits = session.toolkits()
98
+
99
+ print(f"Current toolkits: {toolkits}")
100
+
101
+ return toolkits
102
+
103
+
104
+# Example 5: Full workflow with advanced configuration
105
+def full_workflow_example():
106
+ """Complete workflow with session, tools, and authorization."""
107
+ print("\n=== Full Workflow Example ===")
108
+
109
+ user_id = "user_full"
110
+
111
+ # 1. Create session with multiple configurations
112
+ session = composio.tool_router.create(
113
+ user_id=user_id,
114
+ toolkits=["github", "slack"],
115
+ manage_connections=True,
116
+ auth_configs={"github": "ac_demo_123"},
117
+ )
118
+
119
+ print(f"✓ Created session: {session.session_id}")
120
+
121
+ # 2. Get tools for the session
122
+ tools = session.tools()
123
+ print(f"✓ Retrieved {len(tools) if isinstance(tools, list) else 'N/A'} tools")
124
+
125
+ # 3. Check toolkits
126
+ toolkits_result = session.toolkits()
127
+ print(f"✓ Current toolkits: {len(toolkits_result.items)} toolkit(s)")
128
+
129
+ # 4. Authorize a toolkit if needed
130
+ try:
131
+ connection_request = session.authorize("slack")
132
+ print("✓ Initiated authorization for Slack")
133
+
134
+ if connection_request.redirect_url:
135
+ print(f" → Redirect URL: {connection_request.redirect_url}")
136
+ except Exception as e:
137
+ print(f"✗ Authorization error: {e}")
138
+
139
+ return session
140
+
141
+
142
+# Example 6: Using with custom modifiers
143
+def session_with_modifiers_example():
144
+ """Create a session and use tools with custom modifiers."""
145
+ print("\n=== Session with Modifiers Example ===")
146
+
147
+ user_id = "user_modifiers"
148
+
149
+ # Create session
150
+ session = composio.tool_router.create(user_id=user_id)
151
+
152
+ # Get tools with custom modifiers
153
+ modifiers = {
154
+ # Add any custom modifiers here
155
+ # Example: timeout, custom headers, etc.
156
+ }
157
+
158
+ tools = session.tools(modifiers=modifiers if modifiers else None)
159
+ print(
160
+ f"✓ Retrieved {len(tools) if isinstance(tools, list) else 'N/A'} tools with modifiers"
161
+ )
162
+
163
+ return session
164
+
165
+
166
+if __name__ == "__main__":
167
+ """Run all examples."""
168
+ print("Composio ToolRouter Examples\n")
169
+ print("=" * 50)
170
+
171
+ # Run examples
172
+ try:
173
+ basic_session_example()
174
+ session_with_connections_example()
175
+ authorize_toolkit_example()
176
+ get_toolkits_example()
177
+ full_workflow_example()
178
+ session_with_modifiers_example()
179
+
180
+ print("\n" + "=" * 50)
181
+ print("✓ All examples completed successfully!")
182
+
183
+ except Exception as e:
184
+ print(f"\n✗ Error running examples: {e}")
185
+ import traceback
186
+
187
+ traceback.print_exc()
python/examples/tool_router/authorize.py
new
+46
@@ -0,0 +1,46 @@
1
+"""
2
+Tool Router - Authorization Example
3
+
4
+This example demonstrates how to authorize a toolkit connection
5
+within a Tool Router session.
6
+"""
7
+
8
+import os
9
+from composio import Composio
10
+
11
+# Initialize Composio
12
+# Set COMPOSIO_API_KEY environment variable or pass api_key parameter
13
+api_key = os.environ.get("COMPOSIO_API_KEY")
14
+if not api_key:
15
+ print("Error: COMPOSIO_API_KEY environment variable not set")
16
+ print("Please set it using: export COMPOSIO_API_KEY='your_api_key'")
17
+ exit(1)
18
+
19
+composio = Composio(api_key=api_key)
20
+
21
+# Create a tool router session
22
+session = composio.tool_router.create(
23
+ user_id="user_123",
24
+ toolkits=["github", "gmail"],
25
+)
26
+
27
+print(f"Session created: {session.session_id}")
28
+
29
+# Authorize a toolkit connection
30
+# This initiates the OAuth flow and returns a connection request
31
+connection_request = session.authorize("github")
32
+
33
+print(f"\nConnection Request ID: {connection_request.id}")
34
+print(f"Status: {connection_request.status}")
35
+print(f"Redirect URL: {connection_request.redirect_url}")
36
+print("\nPlease visit the URL above to authorize the connection.")
37
+
38
+# Wait for the user to complete the authorization
39
+# This will poll the API until the connection is active or timeout occurs
40
+try:
41
+ connected_account = connection_request.wait_for_connection()
42
+ print("\n✅ Connection successful!")
43
+ print(f"Connected Account ID: {connected_account.id}")
44
+ print(f"Status: {connected_account.status}")
45
+except Exception as e:
46
+ print(f"\n❌ Connection failed: {e}")
python/examples/tool_router/claude_agent.py
new
+33
@@ -0,0 +1,33 @@
1
+from composio import Composio
2
+from claude_agent_sdk import query, ClaudeAgentOptions
3
+import asyncio
4
+import os
5
+
6
+composio = Composio()
7
+session = composio.experimental.create(
8
+ user_id="user_123",
9
+)
10
+
11
+
12
+async def main():
13
+ options = ClaudeAgentOptions(
14
+ system_prompt="You are an expert Python developer",
15
+ permission_mode="bypassPermissions",
16
+ mcp_servers={
17
+ "composio": {
18
+ "type": "http",
19
+ "url": session.mcp.url,
20
+ "headers": {
21
+ "x-api-key": os.getenv("COMPOSIO_API_KEY"),
22
+ },
23
+ }
24
+ },
25
+ )
26
+
27
+ async for message in query(
28
+ prompt="Fetch my last email and summarize it.", options=options
29
+ ):
30
+ print(message)
31
+
32
+
33
+asyncio.run(main())
python/examples/tool_router/crewai_agent.py
new
+35
@@ -0,0 +1,35 @@
1
+from crewai import Agent, Task, Crew
2
+from composio import Composio
3
+from crewai.mcp import MCPServerHTTP
4
+import os
5
+
6
+
7
+composio = Composio()
8
+session = composio.experimental.create(
9
+ user_id="user_123",
10
+)
11
+
12
+agent = Agent(
13
+ role="Gmail agent",
14
+ goal="helps with gmail related queries",
15
+ backstory="You are a helpful assistant that can use the tools provided to you.",
16
+ mcps=[
17
+ MCPServerHTTP(
18
+ url=session.mcp.url,
19
+ headers={
20
+ "x-api-key": os.getenv("COMPOSIO_API_KEY"),
21
+ },
22
+ )
23
+ ],
24
+)
25
+
26
+# Define task
27
+task = Task(
28
+ description=("Find the last email and summarize it."),
29
+ expected_output="A summary of the last email including sender, subject, and key points.",
30
+ agent=agent,
31
+)
32
+
33
+my_crew = Crew(agents=[agent], tasks=[task])
34
+result = my_crew.kickoff()
35
+print(result)
python/examples/tool_router/langchain_agent.py
new
+49
@@ -0,0 +1,49 @@
1
+from composio import Composio
2
+from langchain_mcp_adapters.client import MultiServerMCPClient
3
+from langchain.agents import create_agent
4
+from langchain_openai.chat_models import ChatOpenAI
5
+import os
6
+import asyncio
7
+
8
+composio = Composio()
9
+session = composio.experimental.create(
10
+ user_id="user_123",
11
+)
12
+
13
+
14
+async def main():
15
+ try:
16
+ mcp_client = MultiServerMCPClient(
17
+ {
18
+ "composio": {
19
+ "transport": "streamable_http",
20
+ "url": session.mcp.url,
21
+ "headers": {
22
+ "x-api-key": os.getenv("COMPOSIO_API_KEY"),
23
+ },
24
+ }
25
+ }
26
+ )
27
+
28
+ tools = await mcp_client.get_tools()
29
+
30
+ agent = create_agent(
31
+ tools=tools,
32
+ model=ChatOpenAI(model="gpt-4o"),
33
+ )
34
+
35
+ result = await agent.ainvoke(
36
+ {
37
+ "messages": [
38
+ {"role": "user", "content": "Fetch my last email and summarize?"}
39
+ ]
40
+ }
41
+ )
42
+
43
+ print(result)
44
+ except Exception as e:
45
+ print(e)
46
+
47
+
48
+if __name__ == "__main__":
49
+ asyncio.run(main())
python/examples/tool_router/openai_agents.py
new
+33
@@ -0,0 +1,33 @@
1
+from composio import Composio
2
+from agents import Agent, Runner, HostedMCPTool
3
+import os
4
+
5
+composio = Composio()
6
+session = composio.experimental.create(
7
+ user_id="user_123",
8
+)
9
+
10
+print(session.mcp.url)
11
+
12
+composio_mcp = HostedMCPTool(
13
+ tool_config={
14
+ "type": "mcp",
15
+ "server_label": "tool_router",
16
+ "server_url": session.mcp.url,
17
+ "require_approval": "never",
18
+ "headers": {"x-api-key": os.getenv("COMPOSIO_API_KEY")},
19
+ }
20
+)
21
+
22
+agent = Agent(
23
+ name="My Agent",
24
+ instructions="You are a helpful assistant that can use the tools provided to you.",
25
+ tools=[composio_mcp],
26
+)
27
+
28
+result = Runner.run_sync(
29
+ starting_agent=agent,
30
+ input="Find my last email and summarize it.",
31
+)
32
+
33
+print(result.final_output)
python/examples/tool_router/tool_router_mcp.py
new
+73
@@ -0,0 +1,73 @@
1
+"""
2
+Tool Router - MCP (Model Context Protocol) Example with OpenAI Agents
3
+
4
+This example demonstrates how to use Tool Router with MCP servers and OpenAI Agents provider.
5
+The MCP server provides a standardized way to access tools across different platforms,
6
+and OpenAI Agents provider allows you to use these tools with OpenAI's agent framework.
7
+"""
8
+
9
+import os
10
+import asyncio
11
+from composio import Composio
12
+from composio_openai_agents import OpenAIAgentsProvider
13
+from agents import Agent, Runner, HostedMCPTool
14
+
15
+
16
+async def main():
17
+ # Initialize Composio with OpenAI Agents provider
18
+ # Set COMPOSIO_API_KEY environment variable or pass api_key parameter
19
+ api_key = os.environ.get("COMPOSIO_API_KEY")
20
+ if not api_key:
21
+ print("Error: COMPOSIO_API_KEY environment variable not set")
22
+ print("Please set it using: export COMPOSIO_API_KEY='your_api_key'")
23
+ return
24
+
25
+ composio = Composio(api_key=api_key, provider=OpenAIAgentsProvider())
26
+
27
+ # Create a tool router session
28
+ session = composio.tool_router.create(
29
+ user_id="user_123",
30
+ toolkits=["github", "gmail"],
31
+ )
32
+
33
+ mcpTool = HostedMCPTool(
34
+ tool_config={
35
+ "type": "mcp",
36
+ "server_label": "tool_router",
37
+ "server_url": session.mcp.url,
38
+ "require_approval": "never",
39
+ "headers": {
40
+ "x-api-key": api_key,
41
+ },
42
+ }
43
+ )
44
+
45
+ print(f"Session created: {session.session_id}")
46
+ print(f"MCP Server URL: {session.mcp.url}")
47
+ print(f"MCP Server Type: {session.mcp.type}")
48
+
49
+ # Create an agent with the tools from tool router
50
+ agent = Agent(
51
+ name="MCP Tool Router Agent",
52
+ instructions=(
53
+ "You are a helpful assistant that can use GitHub and Gmail tools "
54
+ "through the MCP (Model Context Protocol) server. "
55
+ "Help users with their GitHub and email tasks."
56
+ ),
57
+ tools=[mcpTool],
58
+ )
59
+
60
+ # Run the agent with a sample task
61
+ print("\n--- Running Agent with Tool Router Tools ---")
62
+ result = await Runner.run(
63
+ starting_agent=agent,
64
+ input=(
65
+ "List my recent GitHub repositories and tell me about them. "
66
+ "If successful, respond with a summary of what you found."
67
+ ),
68
+ )
69
+ print(f"\nAgent Result: {result.final_output}")
70
+
71
+
72
+if __name__ == "__main__":
73
+ asyncio.run(main())
python/examples/tool_router/toolkits.py
new
+27
@@ -0,0 +1,27 @@
1
+"""
2
+Tool Router - Toolkits Example
3
+
4
+This example demonstrates how to retrieve available toolkits
5
+and their connection status in a Tool Router session.
6
+"""
7
+
8
+from composio import Composio
9
+
10
+composio = Composio()
11
+
12
+# Create a tool router session
13
+# When manage_connections is enabled, tools for managing connections are included
14
+session = composio.tool_router.create(
15
+ user_id="pg-test-37ee710c-d5be-4775-91f2-a8e06b937d9b",
16
+ manage_connections=True,
17
+)
18
+
19
+print(f"Session created: {session.session_id}")
20
+print(f"MCP Server: {session.mcp.url}")
21
+
22
+# Get available toolkits for the session
23
+# This returns information about all toolkits available to the user
24
+toolkits = session.toolkits()
25
+
26
+print("\nAvailable toolkits:")
27
+print(toolkits)
python/examples/tool_router/tools.py
new
+67
@@ -0,0 +1,67 @@
1
+"""
2
+Tool Router - OpenAI Agents Example
3
+
4
+This example demonstrates how to use Tool Router with OpenAI Agents framework.
5
+OpenAI Agents provides a powerful way to build AI agents that can use tools
6
+and execute complex workflows.
7
+"""
8
+
9
+import asyncio
10
+from agents import Agent, Runner
11
+from composio import Composio
12
+from composio_openai_agents import OpenAIAgentsProvider
13
+
14
+
15
+async def main():
16
+ # Initialize Composio with OpenAI Agents provider
17
+ composio = Composio(provider=OpenAIAgentsProvider())
18
+
19
+ # Create a tool router session for a specific user
20
+ # This creates an isolated session with tools for the specified toolkits
21
+ session = composio.tool_router.create(
22
+ user_id="pg-test-37ee710c-d5be-4775-91f2-a8e06b937d9b",
23
+ toolkits=["github", "slack"],
24
+ manage_connections=True,
25
+ )
26
+
27
+ print(f"Session created: {session.session_id}")
28
+ print(f"MCP Server: {session.mcp.url}")
29
+
30
+ # Get tools wrapped for OpenAI Agents
31
+ # These tools are ready to be used with the OpenAI Agents framework
32
+ tools = session.tools()
33
+
34
+ print(f"\nAvailable tools: {len(tools)}")
35
+
36
+ # Create an agent with the tools from the session
37
+ agent = Agent(
38
+ name="GitHub & Slack Assistant",
39
+ instructions=(
40
+ "You are a helpful assistant that helps users manage their "
41
+ "GitHub and Slack accounts. You can check notifications, "
42
+ "send messages, and perform various actions on both platforms."
43
+ ),
44
+ tools=tools,
45
+ )
46
+
47
+ # Define the task
48
+ task = "Get my last 5 GitHub notifications and summarize them"
49
+
50
+ print(f"\nTask: {task}")
51
+ print("\nAgent working...\n")
52
+
53
+ # Run the agent
54
+ result = await Runner.run(
55
+ starting_agent=agent,
56
+ input=task,
57
+ )
58
+
59
+ # Print the final output
60
+ print("\n" + "=" * 50)
61
+ print("RESULT:")
62
+ print("=" * 50)
63
+ print(result.final_output)
64
+
65
+
66
+if __name__ == "__main__":
67
+ asyncio.run(main())
python/providers/anthropic/pyproject.toml
+1
-1
@@ -1,6 +1,6 @@
1
[project]
2
name = "composio-anthropic"
3
-version = "0.9.4"
3
+version = "0.9.5-rc.1"
4
description = "Use Composio to get an array of tools with your Anthropic LLMs."
5
readme = "README.md"
6
requires-python = ">=3.10,<4"
python/providers/anthropic/setup.py
+1
-1
@@ -8,7 +8,7 @@ from setuptools import setup
8
9
setup(
10
name="composio_anthropic",
11
- version="0.9.4",
11
+ version="0.9.5-rc.1",
12
author="Composio",
13
author_email="tech@composio.dev",
14
description="Use Composio to get an array of tools with your Anthropic LLMs.",
python/providers/autogen/pyproject.toml
+1
-1
@@ -1,6 +1,6 @@
1
[project]
2
name = "composio-autogen"
3
-version = "0.9.4"
3
+version = "0.9.5-rc.1"
4
description = "Use Composio to get an array of tools with your autogen agent."
5
readme = "README.md"
6
requires-python = ">=3.9,<4"
python/providers/autogen/setup.py
+1
-1
@@ -8,7 +8,7 @@ from setuptools import setup
8
9
setup(
10
name="composio_autogen",
11
- version="0.9.4",
11
+ version="0.9.5-rc.1",
12
author="Composio",
13
author_email="tech@composio.dev",
14
description="Use Composio to get an array of tools with your Autogen agent.",
python/providers/crewai/pyproject.toml
+1
-1
@@ -1,6 +1,6 @@
1
[project]
2
name = "composio-crewai"
3
-version = "0.9.4"
3
+version = "0.9.5-rc.1"
4
description = "Use Composio to get an array of tools with your CrewAI agent."
5
readme = "README.md"
6
requires-python = ">=3.9,<4"
python/providers/crewai/setup.py
+1
-1
@@ -6,7 +6,7 @@ from setuptools import setup
6
7
setup(
8
name="composio_crewai",
9
- version="0.9.4",
9
+ version="0.9.5-rc.1",
10
author="Composio",
11
author_email="tech@composio.dev",
12
description="Use Composio to get an array of tools with your CrewAI agent.",
python/providers/gemini/pyproject.toml
+1
-1
@@ -1,6 +1,6 @@
1
[project]
2
name = "composio-gemini"
3
-version = "0.9.4"
3
+version = "0.9.5-rc.1"
4
description = "Use Composio to get an array of tools with your Gemini agent."
5
readme = "README.md"
6
requires-python = ">=3.9,<4"
python/providers/gemini/setup.py
+1
-1
@@ -8,7 +8,7 @@ from setuptools import setup
8
9
setup(
10
name="composio_gemini",
11
- version="0.9.4",
11
+ version="0.9.5-rc.1",
12
author="Composio",
13
author_email="tech@composio.dev",
14
description="Use Composio to get an array of tools with your Gemini agent.",
python/providers/google/pyproject.toml
+1
-1
@@ -1,6 +1,6 @@
1
[project]
2
name = "composio-google"
3
-version = "0.9.4"
3
+version = "0.9.5-rc.1"
4
description = "Use Composio to get an array of tools with your Google AI Python Gemini model."
5
readme = "README.md"
6
requires-python = ">=3.9,<4"
python/providers/google/setup.py
+1
-1
@@ -8,7 +8,7 @@ from setuptools import setup
8
9
setup(
10
name="composio_google",
11
- version="0.9.4",
11
+ version="0.9.5-rc.1",
12
author="Composio",
13
author_email="tech@composio.dev",
14
description="Use Composio to get an array of tools with your Google AI Python Gemini model.",
python/providers/google_adk/pyproject.toml
+1
-1
@@ -1,6 +1,6 @@
1
[project]
2
name = "composio-google-adk"
3
-version = "0.9.4"
3
+version = "0.9.5-rc.1"
4
description = "Use Composio to get an array of tools with your Google AI Python Gemini model."
5
readme = "README.md"
6
requires-python = ">=3.9,<4"
python/providers/google_adk/setup.py
+1
-1
@@ -8,7 +8,7 @@ from setuptools import setup
8
9
setup(
10
name="composio_google_adk",
11
- version="0.9.4",
11
+ version="0.9.5-rc.1",
12
author="Composio",
13
author_email="tech@composio.dev",
14
description="Use Composio to get an array of tools with your Google AI Python Gemini model.",
python/providers/langchain/pyproject.toml
+1
-1
@@ -1,6 +1,6 @@
1
[project]
2
name = "composio-langchain"
3
-version = "0.9.4"
3
+version = "0.9.5-rc.1"
4
description = "Use Composio to get an array of tools with your Langchain agent."
5
readme = "README.md"
6
requires-python = ">=3.9,<4"
python/providers/langchain/setup.py
+1
-1
@@ -8,7 +8,7 @@ from setuptools import setup
8
9
setup(
10
name="composio_langchain",
11
- version="0.9.4",
11
+ version="0.9.5-rc.1",
12
author="composio",
13
author_email="tech@composio.dev",
14
description="Use Composio to get an array of tools with your Langchain agent.",
python/providers/langgraph/pyproject.toml
+1
-1
@@ -1,6 +1,6 @@
1
[project]
2
name = "composio-langgraph"
3
-version = "0.9.4"
3
+version = "0.9.5-rc.1"
4
description = "Use Composio to get array of tools with LangGraph Agent Workflows."
5
readme = "README.md"
6
requires-python = ">=3.9,<4"
python/providers/langgraph/setup.py
+1
-1
@@ -8,7 +8,7 @@ from setuptools import setup
8
9
setup(
10
name="composio_langgraph",
11
- version="0.9.4",
11
+ version="0.9.5-rc.1",
12
author="composio",
13
author_email="tech@composio.dev",
14
description="Use Composio to get array of tools with LangGraph Agent Workflows",
python/providers/llamaindex/pyproject.toml
+1
-1
@@ -1,6 +1,6 @@
1
[project]
2
name = "composio-llamaindex"
3
-version = "0.9.4"
3
+version = "0.9.5-rc.1"
4
description = "Use Composio to get array of tools with LlamaIndex Agent Workflows."
5
readme = "README.md"
6
requires-python = ">=3.9,<4"
python/providers/llamaindex/setup.py
+1
-1
@@ -8,7 +8,7 @@ from setuptools import setup
8
9
setup(
10
name="composio_llamaindex",
11
- version="0.9.4",
11
+ version="0.9.5-rc.1",
12
author="composio",
13
author_email="tech@composio.dev",
14
description="Use Composio to get array of tools with LlamaIndex Agent Workflows",
python/providers/openai/pyproject.toml
+1
-1
@@ -1,6 +1,6 @@
1
[project]
2
name = "composio-openai"
3
-version = "0.9.4"
3
+version = "0.9.5-rc.1"
4
description = "Use Composio to get an array of tools with your OpenAI Function Call."
5
readme = "README.md"
6
requires-python = ">=3.9,<4"
python/providers/openai/setup.py
+1
-1
@@ -8,7 +8,7 @@ from setuptools import setup
8
9
setup(
10
name="composio_openai",
11
- version="0.9.4",
11
+ version="0.9.5-rc.1",
12
author="Composio",
13
author_email="tech@composio.dev",
14
description="Use Composio to get an array of tools with your OpenAI Function Call.",
python/providers/openai_agents/openai_agents_demo.py
-1
@@ -2,7 +2,6 @@ import asyncio
2
3
from agents import Agent, Runner
4
from composio_openai_agents import OpenAIAgentsProvider
5
-
5
from composio import Composio
6
7
# Initialize Composio toolset
python/providers/openai_agents/pyproject.toml
+1
-1
@@ -1,6 +1,6 @@
1
[project]
2
name = "composio-openai-agents"
3
-version = "0.9.4"
3
+version = "0.9.5-rc.1"
4
description = "Use Composio to get array of strongly typed tools for OpenAI Agents"
5
readme = "README.md"
6
requires-python = ">=3.9,<4"
python/providers/openai_agents/setup.py
+1
-1
@@ -8,7 +8,7 @@ from setuptools import find_packages, setup
8
9
setup(
10
name="composio_openai_agents",
11
- version="0.9.4",
11
+ version="0.9.5-rc.1",
12
author="Composio",
13
author_email="tech@composio.dev",
14
description="Use Composio to get array of strongly typed tools for OpenAI Agents",
python/pyproject.toml
+2
-2
@@ -1,13 +1,13 @@
1
[project]
2
name = "composio"
3
-version = "0.9.4"
3
+version = "0.9.5-rc.1"
4
description = "SDK for integrating Composio with your applications."
5
readme = "README.md"
6
requires-python = ">=3.10,<4"
7
dependencies = [
8
"pysher>=1.0.8",
9
"pydantic>=2.6.4",
10
- "composio-client>=1.13.0",
10
+ "composio-client>=1.17.1",
11
"typing-extensions>=4.0.0",
12
"openai",
13
]
python/tests/test_tool_router.py
new
+680
@@ -0,0 +1,680 @@
1
+"""Test ToolRouter functionality."""
2
+
3
+from unittest.mock import MagicMock, patch
4
+
5
+import pytest
6
+
7
+from composio.core.models.tool_router import (
8
+ ToolRouter,
9
+ ToolRouterMCPServerConfig,
10
+ ToolRouterToolkitsEnabledConfig,
11
+ ToolRouterToolkitsDisabledConfig,
12
+ ToolRouterManageConnectionsConfig,
13
+ ToolkitConnectionState,
14
+ ToolkitConnectionsDetails,
15
+)
16
+
17
+
18
+@pytest.fixture
19
+def mock_client():
20
+ """Create a mock HTTP client."""
21
+ client = MagicMock()
22
+
23
+ # Mock session responses
24
+ mock_session_response = MagicMock()
25
+ mock_session_response.session_id = "session_123"
26
+ mock_session_response.mcp = MagicMock()
27
+ mock_session_response.mcp.type = "HTTP"
28
+ mock_session_response.mcp.url = "https://mcp.example.com/session_123"
29
+ mock_session_response.tool_router_tools = [
30
+ "GMAIL_FETCH_EMAILS",
31
+ "SLACK_SEND_MESSAGE",
32
+ "GITHUB_CREATE_ISSUE",
33
+ ]
34
+ mock_session_response.config = MagicMock()
35
+ mock_session_response.config.user_id = "user_123"
36
+
37
+ client.tool_router.session.create.return_value = mock_session_response
38
+ client.tool_router.session.retrieve.return_value = mock_session_response
39
+
40
+ # Mock link response
41
+ mock_link_response = MagicMock()
42
+ mock_link_response.connected_account_id = "conn_456"
43
+ mock_link_response.redirect_url = "https://composio.dev/auth/redirect"
44
+ client.tool_router.session.link.return_value = mock_link_response
45
+
46
+ # Mock toolkits response
47
+ mock_toolkit_item_active = MagicMock()
48
+ mock_toolkit_item_active.slug = "gmail"
49
+ mock_toolkit_item_active.name = "Gmail"
50
+ mock_toolkit_item_active.meta.logo = "https://example.com/gmail-logo.png"
51
+ mock_toolkit_item_active.connected_account = MagicMock()
52
+ mock_toolkit_item_active.connected_account.id = "conn_123"
53
+ mock_toolkit_item_active.connected_account.status = "ACTIVE"
54
+ mock_toolkit_item_active.connected_account.auth_config = MagicMock()
55
+ mock_toolkit_item_active.connected_account.auth_config.id = "auth_config_123"
56
+ mock_toolkit_item_active.connected_account.auth_config.auth_scheme = "OAUTH2"
57
+ mock_toolkit_item_active.connected_account.auth_config.is_composio_managed = True
58
+
59
+ mock_toolkit_item_inactive = MagicMock()
60
+ mock_toolkit_item_inactive.slug = "github"
61
+ mock_toolkit_item_inactive.name = "GitHub"
62
+ mock_toolkit_item_inactive.meta.logo = "https://example.com/github-logo.png"
63
+ mock_toolkit_item_inactive.connected_account = None
64
+
65
+ mock_toolkits_response = MagicMock()
66
+ mock_toolkits_response.items = [
67
+ mock_toolkit_item_active,
68
+ mock_toolkit_item_inactive,
69
+ ]
70
+ mock_toolkits_response.next_cursor = "cursor_789"
71
+ mock_toolkits_response.total_pages = 2
72
+ client.tool_router.session.toolkits.return_value = mock_toolkits_response
73
+
74
+ return client
75
+
76
+
77
+@pytest.fixture
78
+def mock_provider():
79
+ """Create a mock provider."""
80
+ provider = MagicMock()
81
+ return provider
82
+
83
+
84
+@pytest.fixture
85
+def tool_router(mock_client, mock_provider):
86
+ """Create a ToolRouter instance with mocked client."""
87
+ return ToolRouter(client=mock_client, provider=mock_provider)
88
+
89
+
90
+class TestToolRouter:
91
+ """Test cases for ToolRouter class."""
92
+
93
+ def test_constructor(self, tool_router, mock_client, mock_provider):
94
+ """Test that ToolRouter initializes correctly."""
95
+ assert tool_router._client == mock_client
96
+ assert tool_router._provider == mock_provider
97
+
98
+ def test_create_basic_session(self, tool_router, mock_client):
99
+ """Test creating a basic session with minimal configuration."""
100
+ session = tool_router.create(user_id="user_123")
101
+
102
+ # Verify session properties
103
+ assert session.session_id == "session_123"
104
+ assert session.mcp.type == "HTTP"
105
+ assert session.mcp.url == "https://mcp.example.com/session_123"
106
+ assert callable(session.tools)
107
+ assert callable(session.authorize)
108
+ assert callable(session.toolkits)
109
+
110
+ # Verify API was called
111
+ mock_client.tool_router.session.create.assert_called_once()
112
+
113
+ def test_create_session_with_toolkits_list(self, tool_router, mock_client):
114
+ """Test creating a session with toolkits as a list."""
115
+ session = tool_router.create(user_id="user_123", toolkits=["github", "slack"])
116
+
117
+ assert session.session_id == "session_123"
118
+
119
+ # Verify the API was called with correct parameters
120
+ call_args = mock_client.tool_router.session.create.call_args
121
+ assert call_args is not None
122
+ kwargs = call_args.kwargs
123
+ assert "toolkits" in kwargs
124
+ assert kwargs["toolkits"] == {"enabled": ["github", "slack"]}
125
+
126
+ def test_create_session_with_disabled_toolkits(self, tool_router, mock_client):
127
+ """Test creating a session with disabled toolkits."""
128
+ session = tool_router.create(
129
+ user_id="user_123", toolkits={"disabled": ["linear", "notion"]}
130
+ )
131
+
132
+ assert session.session_id == "session_123"
133
+
134
+ # Verify the API was called with correct parameters
135
+ call_args = mock_client.tool_router.session.create.call_args
136
+ kwargs = call_args.kwargs
137
+ assert kwargs["toolkits"] == {"disabled": ["linear", "notion"]}
138
+
139
+ def test_create_session_with_tools_overrides(self, tool_router, mock_client):
140
+ """Test creating a session with tools overrides."""
141
+ session = tool_router.create(
142
+ user_id="user_123",
143
+ tools={
144
+ "overrides": {
145
+ "gmail": ["GMAIL_SEND_EMAIL", "GMAIL_SEARCH"],
146
+ "github": {"enabled": ["GITHUB_CREATE_ISSUE"]},
147
+ }
148
+ },
149
+ )
150
+
151
+ assert session.session_id == "session_123"
152
+
153
+ # Verify the API was called with tools config
154
+ call_args = mock_client.tool_router.session.create.call_args
155
+ kwargs = call_args.kwargs
156
+ assert "tools" in kwargs
157
+ assert "overrides" in kwargs["tools"]
158
+
159
+ def test_create_session_with_tag_filters(self, tool_router, mock_client):
160
+ """Test creating a session with tag-based filtering."""
161
+ session = tool_router.create(
162
+ user_id="user_123", tools={"tags": ["important", "safe"]}
163
+ )
164
+
165
+ assert session.session_id == "session_123"
166
+
167
+ # Verify the API was called with tag filters
168
+ call_args = mock_client.tool_router.session.create.call_args
169
+ kwargs = call_args.kwargs
170
+ assert "tools" in kwargs
171
+ assert "filters" in kwargs["tools"]
172
+ assert kwargs["tools"]["filters"]["tags"]["include"] == ["important", "safe"]
173
+
174
+ def test_create_session_with_enabled_tag_filters(self, tool_router, mock_client):
175
+ """Test creating a session with enabled tag filters."""
176
+ session = tool_router.create(
177
+ user_id="user_123",
178
+ tools={"tags": {"enabled": ["read_only_hint", "non_destructive_hint"]}},
179
+ )
180
+
181
+ assert session.session_id == "session_123"
182
+
183
+ call_args = mock_client.tool_router.session.create.call_args
184
+ kwargs = call_args.kwargs
185
+ assert kwargs["tools"]["filters"]["tags"]["include"] == [
186
+ "read_only_hint",
187
+ "non_destructive_hint",
188
+ ]
189
+
190
+ def test_create_session_with_disabled_tag_filters(self, tool_router, mock_client):
191
+ """Test creating a session with disabled tag filters."""
192
+ session = tool_router.create(
193
+ user_id="user_123",
194
+ tools={"tags": {"disabled": ["dangerous", "destructive"]}},
195
+ )
196
+
197
+ assert session.session_id == "session_123"
198
+
199
+ call_args = mock_client.tool_router.session.create.call_args
200
+ kwargs = call_args.kwargs
201
+ assert kwargs["tools"]["filters"]["tags"]["exclude"] == [
202
+ "dangerous",
203
+ "destructive",
204
+ ]
205
+
206
+ def test_create_session_with_manage_connections_boolean(
207
+ self, tool_router, mock_client
208
+ ):
209
+ """Test creating a session with manage_connections as boolean."""
210
+ session = tool_router.create(user_id="user_123", manage_connections=True)
211
+
212
+ assert session.session_id == "session_123"
213
+
214
+ call_args = mock_client.tool_router.session.create.call_args
215
+ kwargs = call_args.kwargs
216
+ assert kwargs["connections"]["auto_manage_connections"] is True
217
+
218
+ def test_create_session_with_manage_connections_config(
219
+ self, tool_router, mock_client
220
+ ):
221
+ """Test creating a session with manage_connections as config object."""
222
+ session = tool_router.create(
223
+ user_id="user_123",
224
+ manage_connections={
225
+ "enabled": True,
226
+ "callback_uri": "https://example.com/callback",
227
+ "infer_scopes_from_tools": True,
228
+ },
229
+ )
230
+
231
+ assert session.session_id == "session_123"
232
+
233
+ call_args = mock_client.tool_router.session.create.call_args
234
+ kwargs = call_args.kwargs
235
+ assert kwargs["connections"]["auto_manage_connections"] is True
236
+ assert kwargs["connections"]["callback_uri"] == "https://example.com/callback"
237
+ assert kwargs["connections"]["infer_scopes_from_tools"] is True
238
+
239
+ def test_create_session_with_auth_configs(self, tool_router, mock_client):
240
+ """Test creating a session with auth configs."""
241
+ session = tool_router.create(
242
+ user_id="user_123", auth_configs={"github": "ac_xxx", "slack": "ac_yyy"}
243
+ )
244
+
245
+ assert session.session_id == "session_123"
246
+
247
+ call_args = mock_client.tool_router.session.create.call_args
248
+ kwargs = call_args.kwargs
249
+ assert kwargs["auth_configs"] == {"github": "ac_xxx", "slack": "ac_yyy"}
250
+
251
+ def test_create_session_with_connected_accounts(self, tool_router, mock_client):
252
+ """Test creating a session with connected accounts."""
253
+ session = tool_router.create(
254
+ user_id="user_123",
255
+ connected_accounts={"github": "ca_xxx", "slack": "ca_yyy"},
256
+ )
257
+
258
+ assert session.session_id == "session_123"
259
+
260
+ call_args = mock_client.tool_router.session.create.call_args
261
+ kwargs = call_args.kwargs
262
+ assert kwargs["connected_accounts"] == {"github": "ca_xxx", "slack": "ca_yyy"}
263
+
264
+ def test_create_session_with_execution_config(self, tool_router, mock_client):
265
+ """Test creating a session with execution configuration."""
266
+ session = tool_router.create(
267
+ user_id="user_123",
268
+ execution={"proxy_execution_enabled": False, "timeout_seconds": 300},
269
+ )
270
+
271
+ assert session.session_id == "session_123"
272
+
273
+ call_args = mock_client.tool_router.session.create.call_args
274
+ kwargs = call_args.kwargs
275
+ assert "execution" in kwargs
276
+ assert kwargs["execution"]["proxy_execution_enabled"] is False
277
+ assert kwargs["execution"]["timeout_seconds"] == 300
278
+
279
+ def test_create_session_complex_config(self, tool_router, mock_client):
280
+ """Test creating a session with complex configuration."""
281
+ session = tool_router.create(
282
+ user_id="user_123",
283
+ toolkits=["github", "slack"],
284
+ tools={
285
+ "overrides": {
286
+ "gmail": ["GMAIL_SEND_EMAIL"],
287
+ },
288
+ "tags": ["safe"],
289
+ },
290
+ manage_connections={
291
+ "enabled": True,
292
+ "callback_url": "https://example.com/callback",
293
+ },
294
+ auth_configs={"github": "ac_xxx"},
295
+ connected_accounts={"slack": "ca_yyy"},
296
+ execution={"proxy_execution_enabled": True, "timeout_seconds": 600},
297
+ )
298
+
299
+ assert session.session_id == "session_123"
300
+ assert session.mcp.type == "HTTP"
301
+
302
+ # Verify all parameters were passed correctly
303
+ call_args = mock_client.tool_router.session.create.call_args
304
+ kwargs = call_args.kwargs
305
+ assert kwargs["user_id"] == "user_123"
306
+ assert "toolkits" in kwargs
307
+ assert "tools" in kwargs
308
+ assert "connections" in kwargs
309
+ assert "auth_configs" in kwargs
310
+ assert "connected_accounts" in kwargs
311
+ assert "execution" in kwargs
312
+
313
+ def test_create_session_raises_error_without_provider(self, mock_client):
314
+ """Test that creating a session without provider raises an error when calling tools()."""
315
+ tool_router = ToolRouter(client=mock_client, provider=None)
316
+
317
+ # The error is raised during create() because it calls _create_tools_fn
318
+ with pytest.raises(ValueError, match="Provider is required for tool router"):
319
+ tool_router.create(user_id="user_123")
320
+
321
+ def test_use_session(self, tool_router, mock_client):
322
+ """Test retrieving an existing session."""
323
+ session = tool_router.use(session_id="session_123")
324
+
325
+ # Verify session properties
326
+ assert session.session_id == "session_123"
327
+ assert session.mcp.type == "HTTP"
328
+ assert session.mcp.url == "https://mcp.example.com/session_123"
329
+ assert callable(session.tools)
330
+ assert callable(session.authorize)
331
+ assert callable(session.toolkits)
332
+
333
+ # Verify retrieve was called
334
+ mock_client.tool_router.session.retrieve.assert_called_once_with("session_123")
335
+
336
+ def test_use_session_with_different_user(self, tool_router, mock_client):
337
+ """Test that use() extracts user_id from session config."""
338
+ mock_retrieve_response = MagicMock()
339
+ mock_retrieve_response.session_id = "session_456"
340
+ mock_retrieve_response.mcp = MagicMock()
341
+ mock_retrieve_response.mcp.type = "HTTP"
342
+ mock_retrieve_response.mcp.url = "https://mcp.example.com/session_456"
343
+ mock_retrieve_response.tool_router_tools = ["TOOL_1"]
344
+ mock_retrieve_response.config = MagicMock()
345
+ mock_retrieve_response.config.user_id = "custom_user_789"
346
+
347
+ mock_client.tool_router.session.retrieve.return_value = mock_retrieve_response
348
+
349
+ session = tool_router.use(session_id="session_456")
350
+
351
+ assert session.session_id == "session_456"
352
+ assert session.mcp.type == "HTTP"
353
+
354
+ def test_use_session_throws_error_on_failure(self, tool_router, mock_client):
355
+ """Test that use() throws error if retrieve fails."""
356
+ mock_client.tool_router.session.retrieve.side_effect = Exception(
357
+ "Session not found"
358
+ )
359
+
360
+ with pytest.raises(Exception, match="Session not found"):
361
+ tool_router.use(session_id="invalid_session")
362
+
363
+ def test_authorize_function(self, tool_router, mock_client):
364
+ """Test the authorize function returned by session."""
365
+ session = tool_router.create(user_id="user_123")
366
+
367
+ session.authorize("github")
368
+
369
+ # Verify link was called
370
+ mock_client.tool_router.session.link.assert_called_once()
371
+ call_args = mock_client.tool_router.session.link.call_args
372
+ assert call_args.kwargs["session_id"] == "session_123"
373
+ assert call_args.kwargs["toolkit"] == "github"
374
+
375
+ def test_authorize_function_with_callback_url(self, tool_router, mock_client):
376
+ """Test the authorize function with callback URL."""
377
+ session = tool_router.create(user_id="user_123")
378
+
379
+ session.authorize(
380
+ "github", options={"callback_url": "https://myapp.com/callback"}
381
+ )
382
+
383
+ # Verify link was called with callback_url
384
+ call_args = mock_client.tool_router.session.link.call_args
385
+ assert call_args.kwargs.get("callback_url") == "https://myapp.com/callback"
386
+
387
+ def test_toolkits_function(self, tool_router, mock_client):
388
+ """Test the toolkits function returned by session."""
389
+ session = tool_router.create(user_id="user_123")
390
+
391
+ toolkits_result = session.toolkits()
392
+
393
+ # Verify toolkits was called
394
+ mock_client.tool_router.session.toolkits.assert_called_once_with(
395
+ session_id="session_123"
396
+ )
397
+
398
+ # Verify result structure
399
+ assert isinstance(toolkits_result, ToolkitConnectionsDetails)
400
+ assert len(toolkits_result.items) == 2
401
+ assert toolkits_result.next_cursor == "cursor_789"
402
+ assert toolkits_result.total_pages == 2
403
+
404
+ def test_toolkits_function_with_pagination(self, tool_router, mock_client):
405
+ """Test the toolkits function with pagination options."""
406
+ session = tool_router.create(user_id="user_123")
407
+
408
+ session.toolkits(options={"next_cursor": "cursor_abc", "limit": 10})
409
+
410
+ # Verify toolkits was called with pagination params
411
+ call_args = mock_client.tool_router.session.toolkits.call_args
412
+ assert call_args.kwargs.get("cursor") == "cursor_abc"
413
+ assert call_args.kwargs.get("limit") == 10
414
+
415
+ def test_toolkits_transform_active_connection(self, tool_router, mock_client):
416
+ """Test that toolkits function correctly transforms active connections."""
417
+ session = tool_router.create(user_id="user_123")
418
+
419
+ toolkits_result = session.toolkits()
420
+
421
+ gmail_toolkit = toolkits_result.items[0]
422
+ assert gmail_toolkit.slug == "gmail"
423
+ assert gmail_toolkit.name == "Gmail"
424
+ assert gmail_toolkit.logo == "https://example.com/gmail-logo.png"
425
+ assert gmail_toolkit.is_no_auth is False
426
+ assert gmail_toolkit.connection.is_active is True
427
+ assert gmail_toolkit.connection.auth_config is not None
428
+ assert gmail_toolkit.connection.auth_config.id == "auth_config_123"
429
+ assert gmail_toolkit.connection.auth_config.mode == "OAUTH2"
430
+ assert gmail_toolkit.connection.auth_config.is_composio_managed is True
431
+ assert gmail_toolkit.connection.connected_account is not None
432
+ assert gmail_toolkit.connection.connected_account.id == "conn_123"
433
+ assert gmail_toolkit.connection.connected_account.status == "ACTIVE"
434
+
435
+ def test_toolkits_transform_no_connection(self, tool_router, mock_client):
436
+ """Test that toolkits function correctly transforms toolkits with no connection."""
437
+ session = tool_router.create(user_id="user_123")
438
+
439
+ toolkits_result = session.toolkits()
440
+
441
+ github_toolkit = toolkits_result.items[1]
442
+ assert github_toolkit.slug == "github"
443
+ assert github_toolkit.name == "GitHub"
444
+ assert github_toolkit.connection.is_active is False
445
+ assert github_toolkit.connection.auth_config is None
446
+ assert github_toolkit.connection.connected_account is None
447
+
448
+ @patch("composio.core.models.tools.Tools")
449
+ def test_tools_function(
450
+ self, mock_tools_class, tool_router, mock_client, mock_provider
451
+ ):
452
+ """Test the tools function returned by session."""
453
+ # Setup mock Tools instance
454
+ mock_tools_instance = MagicMock()
455
+ mock_tools_instance.get.return_value = "mocked-wrapped-tools"
456
+ mock_tools_class.return_value = mock_tools_instance
457
+
458
+ session = tool_router.create(user_id="user_123")
459
+ session.tools()
460
+
461
+ # Verify Tools was instantiated
462
+ mock_tools_class.assert_called_once_with(
463
+ client=mock_client, provider=mock_provider
464
+ )
465
+
466
+ # Verify get was called
467
+ mock_tools_instance.get.assert_called_once()
468
+ call_args = mock_tools_instance.get.call_args
469
+ assert call_args.kwargs["user_id"] == "user_123"
470
+ assert "tools" in call_args.kwargs
471
+
472
+ @patch("composio.core.models.tools.Tools")
473
+ def test_tools_function_with_modifiers(
474
+ self, mock_tools_class, tool_router, mock_client, mock_provider
475
+ ):
476
+ """Test the tools function with modifiers."""
477
+ mock_tools_instance = MagicMock()
478
+ mock_tools_instance.get.return_value = "mocked-wrapped-tools"
479
+ mock_tools_class.return_value = mock_tools_instance
480
+
481
+ session = tool_router.create(user_id="user_123")
482
+
483
+ modifiers = [{"name": "test_modifier"}]
484
+ session.tools(modifiers=modifiers)
485
+
486
+ # Verify get was called with modifiers
487
+ call_args = mock_tools_instance.get.call_args
488
+ assert call_args.kwargs.get("modifiers") == modifiers
489
+
490
+ def test_session_mcp_type_uppercase(self, tool_router, mock_client):
491
+ """Test that MCP type is uppercase."""
492
+ session = tool_router.create(user_id="user_123")
493
+
494
+ assert session.mcp.type == "HTTP"
495
+
496
+ def test_session_mcp_sse_type(self, tool_router, mock_client):
497
+ """Test that SSE MCP type is handled correctly."""
498
+ mock_sse_response = MagicMock()
499
+ mock_sse_response.session_id = "session_sse"
500
+ mock_sse_response.mcp = MagicMock()
501
+ mock_sse_response.mcp.type = "SSE"
502
+ mock_sse_response.mcp.url = "https://mcp.example.com/sse/session_sse"
503
+ mock_sse_response.tool_router_tools = ["TOOL_1"]
504
+
505
+ mock_client.tool_router.session.create.return_value = mock_sse_response
506
+
507
+ session = tool_router.create(user_id="user_123")
508
+
509
+ assert session.mcp.type == "SSE"
510
+ assert session.mcp.url == "https://mcp.example.com/sse/session_sse"
511
+
512
+ def test_multiple_sessions_independently(self, tool_router, mock_client):
513
+ """Test that multiple sessions can be created independently."""
514
+ mock_session_1 = MagicMock()
515
+ mock_session_1.session_id = "session_1"
516
+ mock_session_1.mcp = MagicMock()
517
+ mock_session_1.mcp.type = "HTTP"
518
+ mock_session_1.mcp.url = "https://mcp.example.com/session_1"
519
+ mock_session_1.tool_router_tools = ["TOOL_1"]
520
+
521
+ mock_session_2 = MagicMock()
522
+ mock_session_2.session_id = "session_2"
523
+ mock_session_2.mcp = MagicMock()
524
+ mock_session_2.mcp.type = "HTTP"
525
+ mock_session_2.mcp.url = "https://mcp.example.com/session_2"
526
+ mock_session_2.tool_router_tools = ["TOOL_2"]
527
+
528
+ mock_client.tool_router.session.create.side_effect = [
529
+ mock_session_1,
530
+ mock_session_2,
531
+ ]
532
+
533
+ session1 = tool_router.create(user_id="user_1")
534
+ session2 = tool_router.create(user_id="user_2")
535
+
536
+ assert session1.session_id == "session_1"
537
+ assert session2.session_id == "session_2"
538
+ assert mock_client.tool_router.session.create.call_count == 2
539
+
540
+ def test_use_vs_create_independence(self, tool_router, mock_client):
541
+ """Test that use() and create() are independent."""
542
+ # Setup different responses for create and retrieve
543
+ mock_create_response = MagicMock()
544
+ mock_create_response.session_id = "created_session"
545
+ mock_create_response.mcp = MagicMock()
546
+ mock_create_response.mcp.type = "HTTP"
547
+ mock_create_response.mcp.url = "https://mcp.example.com/created"
548
+ mock_create_response.tool_router_tools = ["TOOL_1"]
549
+
550
+ mock_retrieve_response = MagicMock()
551
+ mock_retrieve_response.session_id = "retrieved_session"
552
+ mock_retrieve_response.mcp = MagicMock()
553
+ mock_retrieve_response.mcp.type = "HTTP"
554
+ mock_retrieve_response.mcp.url = "https://mcp.example.com/retrieved"
555
+ mock_retrieve_response.tool_router_tools = ["TOOL_2"]
556
+ mock_retrieve_response.config = MagicMock()
557
+ mock_retrieve_response.config.user_id = "user_456"
558
+
559
+ mock_client.tool_router.session.create.return_value = mock_create_response
560
+ mock_client.tool_router.session.retrieve.return_value = mock_retrieve_response
561
+
562
+ # Create a new session
563
+ created_session = tool_router.create(user_id="user_123")
564
+ assert created_session.session_id == "created_session"
565
+
566
+ # Use an existing session
567
+ retrieved_session = tool_router.use(session_id="retrieved_session")
568
+ assert retrieved_session.session_id == "retrieved_session"
569
+
570
+ # Verify both methods were called
571
+ mock_client.tool_router.session.create.assert_called_once()
572
+ mock_client.tool_router.session.retrieve.assert_called_once()
573
+
574
+
575
+class TestToolRouterTypes:
576
+ """Test type definitions for ToolRouter."""
577
+
578
+ def test_toolkit_enabled_config_type(self):
579
+ """Test ToolRouterToolkitsEnabledConfig type."""
580
+ config: ToolRouterToolkitsEnabledConfig = {"enabled": ["github", "slack"]}
581
+ assert "enabled" in config
582
+ assert config["enabled"] == ["github", "slack"]
583
+
584
+ def test_toolkit_disabled_config_type(self):
585
+ """Test ToolRouterToolkitsDisabledConfig type."""
586
+ config: ToolRouterToolkitsDisabledConfig = {"disabled": ["linear"]}
587
+ assert "disabled" in config
588
+
589
+ def test_manage_connections_config_type(self):
590
+ """Test ToolRouterManageConnectionsConfig type."""
591
+ config: ToolRouterManageConnectionsConfig = {
592
+ "enabled": True,
593
+ "callback_uri": "https://example.com/callback",
594
+ }
595
+ assert config["enabled"] is True
596
+ assert config["callback_uri"] == "https://example.com/callback"
597
+
598
+ def test_mcp_server_config(self):
599
+ """Test ToolRouterMCPServerConfig dataclass."""
600
+ mcp = ToolRouterMCPServerConfig(type="HTTP", url="https://mcp.example.com")
601
+ assert mcp.type == "HTTP"
602
+ assert mcp.url == "https://mcp.example.com"
603
+
604
+ def test_toolkit_connection_state(self):
605
+ """Test ToolkitConnectionState dataclass."""
606
+ from composio.core.models.tool_router import (
607
+ ToolkitConnection,
608
+ ToolkitConnectionAuthConfig,
609
+ ToolkitConnectedAccount,
610
+ )
611
+
612
+ connection = ToolkitConnection(
613
+ is_active=True,
614
+ auth_config=ToolkitConnectionAuthConfig(
615
+ id="ac_123", mode="OAUTH2", is_composio_managed=True
616
+ ),
617
+ connected_account=ToolkitConnectedAccount(id="ca_123", status="ACTIVE"),
618
+ )
619
+
620
+ state = ToolkitConnectionState(
621
+ slug="github",
622
+ name="GitHub",
623
+ is_no_auth=False,
624
+ connection=connection,
625
+ logo="https://example.com/logo.png",
626
+ )
627
+
628
+ assert state.slug == "github"
629
+ assert state.name == "GitHub"
630
+ assert state.connection.is_active is True
631
+ assert state.connection.auth_config is not None
632
+ assert state.connection.auth_config.id == "ac_123"
633
+
634
+
635
+class TestToolRouterIntegration:
636
+ """Integration tests for ToolRouter."""
637
+
638
+ @patch("composio.core.models.tools.Tools")
639
+ def test_full_session_workflow(self, mock_tools_class, tool_router, mock_client):
640
+ """Test a complete session workflow."""
641
+ # Setup
642
+ mock_tools_instance = MagicMock()
643
+ mock_tools_instance.get.return_value = ["tool1", "tool2"]
644
+ mock_tools_class.return_value = mock_tools_instance
645
+
646
+ # Create session
647
+ session = tool_router.create(
648
+ user_id="user_123", toolkits=["github", "slack"], manage_connections=True
649
+ )
650
+
651
+ assert session.session_id == "session_123"
652
+
653
+ # Use authorize
654
+ session.authorize("github")
655
+ assert mock_client.tool_router.session.link.called
656
+
657
+ # Use toolkits
658
+ toolkits = session.toolkits()
659
+ assert len(toolkits.items) == 2
660
+
661
+ # Use tools
662
+ tools = session.tools()
663
+ assert tools == ["tool1", "tool2"]
664
+
665
+ def test_create_and_use_same_session(self, tool_router, mock_client):
666
+ """Test creating a session and then retrieving it."""
667
+ # Create session
668
+ created_session = tool_router.create(user_id="user_123")
669
+ created_session_id = created_session.session_id
670
+
671
+ # Setup retrieve to return the same session
672
+ mock_client.tool_router.session.retrieve.return_value = (
673
+ mock_client.tool_router.session.create.return_value
674
+ )
675
+
676
+ # Use the session
677
+ retrieved_session = tool_router.use(session_id=created_session_id)
678
+
679
+ assert created_session.session_id == retrieved_session.session_id
680
+ assert created_session.mcp.url == retrieved_session.mcp.url
test-exports.ts
new
+44
@@ -0,0 +1,44 @@
1
+import {
2
+ ToolRouterToolkitsDisabledConfigSchema,
3
+ ToolRouterToolkitsEnabledConfigSchema,
4
+ ToolRouterToolkitsParamSchema
5
+} from './ts/packages/core/dist/index.js';
6
+import z from 'zod/v3';
7
+
8
+console.log('Testing individual schemas...\n');
9
+
10
+// Test ToolRouterToolkitsParamSchema
11
+console.log('ToolRouterToolkitsParamSchema type:', typeof ToolRouterToolkitsParamSchema);
12
+console.log('Has _def?', ToolRouterToolkitsParamSchema?._def);
13
+
14
+// Test ToolRouterToolkitsDisabledConfigSchema
15
+console.log('\nToolRouterToolkitsDisabledConfigSchema type:', typeof ToolRouterToolkitsDisabledConfigSchema);
16
+console.log('Has _def?', ToolRouterToolkitsDisabledConfigSchema?._def);
17
+
18
+// Test ToolRouterToolkitsEnabledConfigSchema
19
+console.log('\nToolRouterToolkitsEnabledConfigSchema type:', typeof ToolRouterToolkitsEnabledConfigSchema);
20
+console.log('Has _def?', ToolRouterToolkitsEnabledConfigSchema?._def);
21
+
22
+// Try creating a union manually
23
+const manualUnion = z.union([
24
+ ToolRouterToolkitsDisabledConfigSchema,
25
+ ToolRouterToolkitsEnabledConfigSchema,
26
+ ToolRouterToolkitsParamSchema,
27
+]);
28
+
29
+console.log('\n--- Testing manual union ---');
30
+
31
+try {
32
+ const result = manualUnion.parse({ disabled: ['test'] });
33
+ console.log('✅ Manual union disabled passed:', result);
34
+} catch (e: any) {
35
+ console.error('❌ Manual union disabled failed:', e.message);
36
+}
37
+
38
+try {
39
+ const result = manualUnion.parse({ enabled: ['test'] });
40
+ console.log('✅ Manual union enabled passed:', result);
41
+} catch (e: any) {
42
+ console.error('❌ Manual union enabled failed:', e.message);
43
+}
44
+
ts/docs/README.md
+1
-1
@@ -90,7 +90,7 @@ The complete API reference documentation is available here:
90
- [Providers](./api/providers.md)
91
- [Custom Tools](./api/custom-tools.md)
92
- [MCP](./api/mcp.md)
93
-- [ToolRouter (experimental)](./api/tool-router.experimental.md)
93
+- [ToolRouter](./api/tool-router.md)
94
95
## Providers
96
ts/docs/api/tool-router.experimental.md
deleted
-508
@@ -1,508 +0,0 @@
1
-# ToolRouter Experimental API
2
-
3
-The ToolRouter Experimental API provides a powerful way to create isolated sessions for testing and managing tool routing logic with scoped access to multiple toolkits. This lab feature allows you to dynamically configure which tools are available within a session and manage their authentication configurations.
4
-
5
-## Overview
6
-
7
-The ToolRouter class enables you to:
8
-
9
-- Create isolated sessions with specific toolkit configurations
10
-- Manage authentication for multiple toolkits in a single session
11
-- Provide scoped MCP server access for testing and development
12
-- Route tool calls efficiently across different services
13
-
14
-## Getting Started
15
-
16
-```typescript
17
-import { Composio } from '@composio/core';
18
-
19
-const composio = new Composio();
20
-const userId = "xxx-ooo-xxx";
21
-
22
-// Access the experimental ToolRouter for specific toolkits
23
-const mcpSession = composio.experimental.toolRouter.createSession(userId, {
24
- toolkits: ["github"]
25
-});
26
-
27
-// Access the experimental ToolRouter for specific auth configs
28
-const mcpSession = composio.experimental.toolRouter.createSession(userId, {
29
- toolkits: [{
30
- toolkit: "github",
31
- authConfigId: "ac_xyz"
32
- }]
33
-});
34
-
35
-```
36
-
37
-## Methods
38
-
39
-### createSession(userId, routerConfig)
40
-
41
-Creates a new isolated session for the tool router with specified toolkits and authentication configurations. If no toolkits are provided, your router will have access to all the toolkits.
42
-
43
-**Parameters:**
44
-
45
-- `userId` (string): Unique user identifier for the session owner
46
-- `routerConfig` (ToolRouterConfig): Configuration object containing:
47
- - `toolkits` (Array): Array of toolkit configurations
48
- - `toolkit` (string): Toolkit identifier (e.g., "gmail", "slack", "github")
49
- - `authConfigId` (string, optional): Specific auth configuration ID for this toolkit
50
- - `manuallyManageConnections` (boolean, optional): Whether to disable Composio's automatic account management tools (default: false)
51
-
52
-**Returns:** `Promise<ToolRouterSession>`
53
-
54
-**Example:**
55
-
56
-```typescript
57
-// Basic session with multiple toolkits
58
-const session = await composio.experimental.toolRouter.createSession('user_123456789', {
59
- toolkits: ["gmail", "slack", "github", "hackernews"]
60
-});
61
-
62
-console.log('Session ID:', session.sessionId);
63
-console.log('MCP URL:', session.url);
64
-
65
-// Session with manual connection management and authConfigs
66
-const manualSession = await composio.experimental.toolRouter.createSession('user_789', {
67
- toolkits: [
68
- {
69
- toolkit: 'slack',
70
- authConfigId: 'ac_custom_slack',
71
- },
72
- ],
73
- manuallyManageConnections: true,
74
-});
75
-
76
-// Use the session URL with your MCP client
77
-const mcpClient = new MCPClient(session.url);
78
-```
79
-
80
-## Data Types
81
-
82
-### ToolRouterConfig
83
-
84
-Configuration object for creating a tool router session:
85
-
86
-```typescript
87
-interface ToolRouterConfig {
88
- toolkits?: string[] | ToolRouterToolkitConfig[];
89
- manuallyManageConnections?: boolean; // Disables automatic account management tools
90
-}
91
-```
92
-
93
-### ToolRouterToolkitConfig
94
-
95
-Individual toolkit configuration within a router config:
96
-
97
-```typescript
98
-interface ToolRouterToolkitConfig {
99
- toolkit: string; // Toolkit identifier
100
- authConfigId?: string; // Optional auth configuration ID
101
-}
102
-```
103
-
104
-### ToolRouterSession
105
-
106
-Response object containing session details:
107
-
108
-```typescript
109
-interface ToolRouterSession {
110
- sessionId: string; // Generated session identifier
111
- url: string; // MCP server endpoint URL for this session
112
-}
113
-```
114
-
115
-## Usage Patterns
116
-
117
-### 1. Multi-Service Integration
118
-
119
-Create sessions that span multiple services for complex workflows:
120
-
121
-```typescript
122
-const integrationSession = await composio.experimental.toolRouter.createSession('user_456', {
123
- toolkits: [
124
- { toolkit: 'gmail', authConfigId: 'ac_gmail_work' },
125
- { toolkit: 'slack', authConfigId: 'ac_slack_team' },
126
- { toolkit: 'github', authConfigId: 'ac_github_personal' },
127
- { toolkit: 'notion', authConfigId: 'ac_notion_workspace' },
128
- { toolkit: 'calendar', authConfigId: 'ac_gcal_primary' },
129
- ],
130
-});
131
-
132
-// This session can now handle tools from all configured services
133
-```
134
-
135
-### 2. Development and Testing
136
-
137
-Create isolated environments for testing different tool combinations:
138
-
139
-```typescript
140
-const testSession = await composio.experimental.toolRouter.createSession('test_user', {
141
- toolkits: ["hackernews", "weatherapi", "calculator"]
142
-});
143
-
144
-// Perfect for testing tool routing logic without auth complexity
145
-```
146
-
147
-### 3. User-Specific Sessions
148
-
149
-Create personalized sessions with user-specific auth configurations:
150
-
151
-```typescript
152
-async function createUserSession(userId: string, userPreferences: any) {
153
- const userToolkits = [];
154
-
155
- if (userPreferences.email) {
156
- userToolkits.push({
157
- toolkit: 'gmail',
158
- authConfigId: `gmail_${userId}`,
159
- });
160
- }
161
-
162
- if (userPreferences.messaging) {
163
- userToolkits.push({
164
- toolkit: 'slack',
165
- authConfigId: `slack_${userId}`,
166
- });
167
- }
168
-
169
- if (userPreferences.coding) {
170
- userToolkits.push({
171
- toolkit: 'github',
172
- authConfigId: `github_${userId}`,
173
- });
174
- }
175
-
176
- return await composio.experimental.toolRouter.createSession(userId, {
177
- toolkits: userToolkits,
178
- manuallyManageConnections: false,
179
- });
180
-}
181
-```
182
-
183
-## Connection Management
184
-
185
-The `manuallyManageConnections` flag controls whether Composio automatically injects account management tools into your session.
186
-
187
-### Automatic Account Management (Default)
188
-
189
-When `manuallyManageConnections` is `false` or omitted, Composio injects helpful account management tools:
190
-
191
-1. Connection status checking tools - agents can verify if accounts are connected
192
-2. Connection URL generation tools - agents can prompt users to connect accounts
193
-3. Account linking helpers - streamlined authentication flows
194
-
195
-```typescript
196
-const autoSession = await composio.experimental.toolRouter.createSession('user_123', {
197
- toolkits: [
198
- { toolkit: 'gmail', authConfigId: 'gmail_config' },
199
- { toolkit: 'slack', authConfigId: 'slack_config' },
200
- ],
201
- // manuallyManageConnections defaults to false
202
-});
203
-```
204
-
205
-### Manual Connection Management
206
-
207
-When `manuallyManageConnections` is `true`, Composio disables automatic account management tools:
208
-
209
-```typescript
210
-const manualSession = await composio.experimental.toolRouter.createSession('user_123', {
211
- toolkits: [
212
- { toolkit: 'gmail', authConfigId: 'gmail_config' },
213
- { toolkit: 'slack', authConfigId: 'slack_config' },
214
- ],
215
- manuallyManageConnections: true,
216
-});
217
-
218
-// No account management tools are injected
219
-// You must manually ensure all required connections exist beforehand
220
-// Use the Composio SDK to pre-connect accounts:
221
-
222
-// Before creating the session, link accounts manually:
223
-const connectionRequest = await composio.connectedAccounts.link({
224
- userId: 'user_123',
225
- authConfigId: 'gmail_config',
226
-});
227
-// redirect user to the url to authenticate
228
-console.log(connectionRequest.redirectUrl);
229
-
230
-// wait for users to connect their account
231
-const connectedAccount = await connectionRequest.waitForConnection();
232
-
233
-// Now the session can use these pre-connected accounts
234
-// But agents cannot dynamically check status or prompt for new connections
235
-```
236
-
237
-### When to Use Each Approach
238
-
239
-**Use Automatic Account Management (`manuallyManageConnections: false`) when:**
240
-
241
-- Building interactive AI agents that can communicate with users
242
-- Creating chat-based applications where users can be prompted to connect accounts
243
-- Developing applications where connection status might change during runtime
244
-- You want agents to handle authentication flows dynamically
245
-
246
-**Use Manual Connection Management (`manuallyManageConnections: true`) when:**
247
-
248
-- Building automated background processes or workflows
249
-- Creating production systems where all connections are pre-configured
250
-- You need predictable behavior without user interaction
251
-- Security requirements mandate pre-approved connections only
252
-- Building server-side applications without user interface
253
-
254
-```typescript
255
-// Interactive AI Assistant - use automatic management
256
-const assistantSession = await toolRouter.createSession('user_456', {
257
- toolkits: [
258
- { toolkit: 'gmail', authConfigId: 'user_gmail' },
259
- { toolkit: 'calendar', authConfigId: 'user_calendar' },
260
- ],
261
- manuallyManageConnections: false, // Agent can prompt for connections
262
-});
263
-
264
-// Background Automation - use manual management
265
-const automationSession = await toolRouter.createSession('automation_service', {
266
- toolkits: [
267
- { toolkit: 'gmail', authConfigId: 'service_gmail' },
268
- { toolkit: 'sheets', authConfigId: 'service_sheets' },
269
- ],
270
- manuallyManageConnections: true, // Pre-configured connections only
271
-});
272
-```
273
-
274
-## Integration with MCP Clients
275
-
276
-The ToolRouter sessions are designed to work seamlessly with MCP (Model Control Protocol) clients:
277
-
278
-```typescript
279
-// Create a session
280
-const session = await composio.experimental.toolRouter.createSession('user_456', {
281
- toolkits: [{ toolkit: 'gmail' }, { toolkit: 'slack' }, { toolkit: 'github' }],
282
-});
283
-
284
-// Use with Claude Desktop
285
-// Add to claude_desktop_config.json:
286
-/*
287
-{
288
- "mcpServers": {
289
- "composio-session": {
290
- "command": "npx",
291
- "args": ["@composio/core", "mcp"],
292
- "env": {
293
- "COMPOSIO_MCP_URL": session.url
294
- }
295
- }
296
- }
297
-}
298
-*/
299
-
300
-// Use with custom MCP client
301
-import { MCPClient } from 'your-mcp-client';
302
-
303
-const mcpClient = new MCPClient({
304
- serverUrl: session.url,
305
- sessionId: session.sessionId,
306
-});
307
-
308
-await mcpClient.connect();
309
-
310
-// Now you can use tools from all configured toolkits
311
-const emails = await mcpClient.callTool('gmail_fetch_emails', { limit: 10 });
312
-const channels = await mcpClient.callTool('slack_list_channels', {});
313
-const repos = await mcpClient.callTool('github_list_repos', { user: 'username' });
314
-```
315
-
316
-## Error Handling
317
-
318
-Handle common errors when creating sessions:
319
-
320
-```typescript
321
-try {
322
- const session = await composio.experimental.toolRouter.createSession(userId, config);
323
- console.log('Session created successfully:', session.sessionId);
324
-} catch (error) {
325
- if (error instanceof ValidationError) {
326
- console.error('Invalid configuration:', error.message);
327
- // Handle validation errors (malformed config, missing required fields)
328
- } else if (error.message.includes('auth_config')) {
329
- console.error('Authentication configuration error:', error.message);
330
- // Handle auth config issues (invalid IDs, permissions)
331
- } else if (error.message.includes('toolkit')) {
332
- console.error('Toolkit configuration error:', error.message);
333
- // Handle toolkit issues (unsupported toolkit, invalid name)
334
- } else {
335
- console.error('Unexpected error:', error.message);
336
- // Handle other API errors
337
- }
338
-}
339
-```
340
-
341
-## Best Practices
342
-
343
-### 1. Session Naming and Organization
344
-
345
-Use descriptive user IDs and maintain session records:
346
-
347
-```typescript
348
-// Good: Descriptive user identifiers
349
-const session = await toolRouter.createSession('user_john_doe_workspace_1', config);
350
-
351
-// Keep track of active sessions
352
-const activeSessions = new Map();
353
-activeSessions.set(userId, session);
354
-```
355
-
356
-### 2. Toolkit Selection
357
-
358
-Be intentional about which toolkits to include:
359
-
360
-```typescript
361
-// Good: Only include necessary toolkits
362
-const focusedSession = await toolRouter.createSession(userId, {
363
- toolkits: [
364
- { toolkit: 'gmail' }, // For email operations
365
- { toolkit: 'calendar' }, // For scheduling
366
- ],
367
-});
368
-
369
-// Avoid: Including unnecessary toolkits
370
-// This creates security risks and complexity
371
-```
372
-
373
-### 3. Auth Configuration Management
374
-
375
-Use specific auth configs for different contexts:
376
-
377
-```typescript
378
-// Production session
379
-const prodSession = await toolRouter.createSession(userId, {
380
- toolkits: [
381
- { toolkit: 'gmail', authConfigId: 'gmail_prod_config' },
382
- { toolkit: 'slack', authConfigId: 'slack_prod_workspace' },
383
- ],
384
-});
385
-
386
-// Development session
387
-const devSession = await toolRouter.createSession(userId, {
388
- toolkits: [
389
- { toolkit: 'gmail', authConfigId: 'gmail_dev_config' },
390
- { toolkit: 'slack', authConfigId: 'slack_dev_workspace' },
391
- ],
392
-});
393
-```
394
-
395
-### 4. Session Lifecycle Management
396
-
397
-Implement proper session cleanup:
398
-
399
-```typescript
400
-class SessionManager {
401
- private sessions = new Map<string, ToolRouterSession>();
402
-
403
- async createUserSession(userId: string, config: ToolRouterConfig) {
404
- // Clean up existing session if any
405
- if (this.sessions.has(userId)) {
406
- await this.cleanupSession(userId);
407
- }
408
-
409
- const session = await toolRouter.createSession(userId, config);
410
- this.sessions.set(userId, session);
411
-
412
- // Set cleanup timer (optional)
413
- setTimeout(() => this.cleanupSession(userId), 24 * 60 * 60 * 1000); // 24 hours
414
-
415
- return session;
416
- }
417
-
418
- async cleanupSession(userId: string) {
419
- // Implement session cleanup logic
420
- this.sessions.delete(userId);
421
- }
422
-}
423
-```
424
-
425
-## Use Cases
426
-
427
-### 1. AI Assistant Integration
428
-
429
-Create dynamic sessions for AI assistants that need access to multiple services:
430
-
431
-```typescript
432
-const assistantSession = await toolRouter.createSession('assistant_user_123', {
433
- toolkits: [
434
- { toolkit: 'gmail', authConfigId: 'user_email' },
435
- { toolkit: 'calendar', authConfigId: 'user_calendar' },
436
- { toolkit: 'slack', authConfigId: 'user_slack' },
437
- { toolkit: 'github', authConfigId: 'user_github' },
438
- ],
439
-});
440
-
441
-// AI can now help with email, scheduling, team communication, and code
442
-```
443
-
444
-### 2. Workflow Automation
445
-
446
-Set up sessions for automated workflows:
447
-
448
-```typescript
449
-const workflowSession = await toolRouter.createSession('workflow_engine', {
450
- toolkits: [
451
- { toolkit: 'gmail' },
452
- { toolkit: 'slack' },
453
- { toolkit: 'sheets' },
454
- { toolkit: 'notion' },
455
- ],
456
- manuallyManageConnections: true, // Pre-configured connections
457
-});
458
-
459
-// Automated workflow can process emails, update spreadsheets, notify teams
460
-```
461
-
462
-### 3. Customer Support Tools
463
-
464
-Create specialized sessions for support agents:
465
-
466
-```typescript
467
-const supportSession = await toolRouter.createSession(`support_agent_${agentId}`, {
468
- toolkits: [
469
- { toolkit: 'zendesk', authConfigId: 'support_zendesk' },
470
- { toolkit: 'slack', authConfigId: 'support_slack' },
471
- { toolkit: 'gmail', authConfigId: 'support_email' },
472
- { toolkit: 'sheets', authConfigId: 'support_tracking' },
473
- ],
474
-});
475
-
476
-// Support agents can access tickets, communicate with team, send emails, track metrics
477
-```
478
-
479
-## Limitations and Considerations
480
-
481
-- **Session Isolation**: Each session is isolated and cannot directly communicate with other sessions
482
-- **Resource Limits**: There may be limits on the number of concurrent sessions per user
483
-- **Auth Config Requirements**: Some toolkits require specific auth configurations to function properly
484
-- **Session Persistence**: Sessions may have time limits and need to be refreshed periodically
485
-- **Toolkit Compatibility**: Not all toolkit combinations may work optimally together
486
-
487
-## Migration and Compatibility
488
-
489
-The ToolRouter experimental API is designed to complement existing Composio features:
490
-
491
-```typescript
492
-// Can be used alongside regular MCP servers
493
-const regularMCP = await composio.mcp.create('regular-server', serverConfig, options);
494
-const routerSession = await composio.experimental.toolRouter.createSession(userId, routerConfig);
495
-
496
-// Both can coexist and serve different purposes
497
-```
498
-
499
-## Support and Troubleshooting
500
-
501
-For issues with the ToolRouter Experimental API:
502
-
503
-1. **Validation Errors**: Check that all required fields are provided and toolkit names are correct
504
-2. **Auth Configuration Issues**: Verify that auth config IDs exist and have proper permissions
505
-3. **Connection Problems**: Ensure network connectivity and proper MCP client configuration
506
-4. **Toolkit Compatibility**: Some toolkits may have specific requirements or limitations
507
-
508
-For additional support, consult the Composio documentation or contact support with session details and error messages.
ts/docs/api/tool-router.md
new
+712
@@ -0,0 +1,712 @@
1
+# Tool Router
2
+
3
+The Tool Router provides a powerful way to create isolated MCP (Model Context Protocol) sessions for users with scoped access to toolkits and tools. It enables dynamic configuration of which tools are available within a session and manages authentication for multiple toolkits.
4
+
5
+## Overview
6
+
7
+Tool Router allows you to:
8
+
9
+- Create isolated sessions with specific toolkit configurations
10
+- Manage authentication flows for users across multiple toolkits
11
+- Access tools via an MCP-compatible server URL
12
+- Query toolkit connection states
13
+- Integrate with multiple AI frameworks (Vercel AI SDK, LangChain, OpenAI Agents, Claude Agents SDK)
14
+
15
+> **Note:** When using MCP clients to connect to Tool Router, you don't need to pass a provider to the Composio constructor. A provider is only required when using `session.tools()` to get framework-specific tool objects.
16
+
17
+## Quick Start
18
+
19
+### Using MCP (Recommended)
20
+
21
+When using Tool Router with MCP clients, you don't need to pass a provider:
22
+
23
+## Installation
24
+
25
+```bash
26
+# npm
27
+npm install @composio/core@0.2.7-alpha.1
28
+
29
+# pnpm
30
+pnpm add @composio/core@0.2.7-alpha.1
31
+
32
+# yarn
33
+yarn add @composio/core@0.2.7-alpha.1
34
+```
35
+
36
+```typescript
37
+import { Composio } from '@composio/core';
38
+
39
+const composio = new Composio();
40
+
41
+// Create a session for a user with access to Gmail tools
42
+const session = await composio.experimental.create('user_123', {
43
+ toolkits: ['gmail']
44
+});
45
+
46
+// Use the MCP URL with any MCP-compatible client
47
+console.log(session.mcp.url);
48
+```
49
+
50
+### Using Framework-Specific Tools
51
+
52
+If you want to use `session.tools()` to get tools formatted for a specific AI framework, pass the appropriate provider:
53
+
54
+```typescript
55
+import { Composio } from '@composio/core';
56
+import { VercelProvider } from '@composio/vercel';
57
+
58
+const composio = new Composio({
59
+ provider: new VercelProvider(),
60
+});
61
+
62
+// Create a session for a user with access to Gmail tools
63
+const session = await composio.experimental.create('user_123', {
64
+ toolkits: ['gmail']
65
+});
66
+
67
+// Get the tools formatted for Vercel AI SDK
68
+const tools = await session.tools();
69
+```
70
+
71
+## Creating Sessions
72
+
73
+### Basic Session Creation
74
+
75
+Use `composio.experimental.create()` to create a new Tool Router session:
76
+
77
+```typescript
78
+import { Composio } from '@composio/core';
79
+
80
+const composio = new Composio();
81
+
82
+// Create a session with Gmail access
83
+const session = await composio.experimental.create('user_123', {
84
+ toolkits: ['gmail']
85
+});
86
+
87
+console.log('Session ID:', session.sessionId);
88
+console.log('MCP URL:', session.mcp.url);
89
+```
90
+
91
+### Using an Existing Session
92
+
93
+If you have an existing session ID, you can retrieve it using `composio.toolRouter.use()`:
94
+
95
+```typescript
96
+const session = await composio.toolRouter.use('existing_session_id');
97
+
98
+// Access session properties
99
+console.log(session.sessionId);
100
+console.log(session.mcp.url);
101
+```
102
+
103
+## Configuration Options
104
+
105
+The session creation accepts a configuration object with the following options:
106
+
107
+### `toolkits`
108
+
109
+Specify which toolkits to enable or disable in the session.
110
+
111
+```typescript
112
+// Simple array of toolkit slugs to enable
113
+const session = await composio.experimental.create('user_123', {
114
+ toolkits: ['gmail', 'slack', 'github']
115
+});
116
+
117
+// Explicit enabled configuration
118
+const session = await composio.experimental.create('user_123', {
119
+ toolkits: { enabled: ['gmail', 'slack'] }
120
+});
121
+
122
+// Disable specific toolkits (enable all others)
123
+const session = await composio.experimental.create('user_123', {
124
+ toolkits: { disabled: ['calendar'] }
125
+});
126
+```
127
+
128
+### `tools`
129
+
130
+Fine-grained control over which tools are available within toolkits.
131
+
132
+```typescript
133
+const session = await composio.experimental.create('user_123', {
134
+ toolkits: ['gmail'],
135
+ tools: {
136
+ // Override tools per toolkit
137
+ overrides: {
138
+ gmail: ['gmail_fetch_emails', 'gmail_send_email'], // Only these tools
139
+ // OR use enabled/disabled objects
140
+ // gmail: { enabled: ['gmail_fetch_emails'] }
141
+ // gmail: { disabled: ['gmail_delete_email'] }
142
+ },
143
+ // Filter by tags
144
+ tags: ['email', 'messaging']
145
+ // OR use enabled/disabled
146
+ // tags: { enabled: ['email'] }
147
+ // tags: { disabled: ['destructive'] }
148
+ }
149
+});
150
+```
151
+
152
+### `authConfigs`
153
+
154
+Map toolkits to specific authentication configurations:
155
+
156
+```typescript
157
+const session = await composio.experimental.create('user_123', {
158
+ toolkits: ['gmail', 'github'],
159
+ authConfigs: {
160
+ gmail: 'ac_gmail_work',
161
+ github: 'ac_github_personal'
162
+ }
163
+});
164
+```
165
+
166
+### `connectedAccounts`
167
+
168
+Map toolkits to specific connected account IDs:
169
+
170
+```typescript
171
+const session = await composio.experimental.create('user_123', {
172
+ toolkits: ['gmail'],
173
+ connectedAccounts: {
174
+ gmail: 'ca_abc123'
175
+ }
176
+});
177
+```
178
+
179
+### `manageConnections`
180
+
181
+Control how connections are managed within the session:
182
+
183
+```typescript
184
+// Boolean: enable/disable automatic connection management
185
+const session = await composio.experimental.create('user_123', {
186
+ toolkits: ['gmail'],
187
+ manageConnections: true // default
188
+});
189
+
190
+// Object: fine-grained control
191
+const session = await composio.experimental.create('user_123', {
192
+ toolkits: ['gmail'],
193
+ manageConnections: {
194
+ enabled: true,
195
+ callbackUri: 'https://your-app.com/auth/callback',
196
+ inferScopesFromTools: true // Infer OAuth scopes from allowed tools
197
+ }
198
+});
199
+```
200
+
201
+### `execution`
202
+
203
+Configure tool execution behavior:
204
+
205
+```typescript
206
+const session = await composio.experimental.create('user_123', {
207
+ toolkits: ['gmail'],
208
+ execution: {
209
+ proxyExecutionEnabled: true,
210
+ timeoutSeconds: 30
211
+ }
212
+});
213
+```
214
+
215
+## Session Properties
216
+
217
+A Tool Router session provides the following properties and methods:
218
+
219
+### `sessionId`
220
+
221
+The unique identifier for this session.
222
+
223
+```typescript
224
+console.log(session.sessionId);
225
+```
226
+
227
+### `mcp`
228
+
229
+The MCP server configuration for this session.
230
+
231
+```typescript
232
+console.log(session.mcp.url); // The URL to connect to
233
+console.log(session.mcp.type); // 'HTTP' or 'SSE'
234
+```
235
+
236
+### `tools()`
237
+
238
+Retrieve the tools available in the session, formatted for your AI framework.
239
+
240
+```typescript
241
+const tools = await session.tools();
242
+
243
+// With modifiers
244
+const tools = await session.tools({
245
+ beforeExecute: ({ toolSlug, params }) => {
246
+ console.log(`Executing ${toolSlug}`);
247
+ return params;
248
+ },
249
+ afterExecute: ({ toolSlug, result }) => {
250
+ console.log(`Completed ${toolSlug}`);
251
+ return result;
252
+ }
253
+});
254
+```
255
+
256
+### `authorize()`
257
+
258
+Initiate an authorization flow for a toolkit.
259
+
260
+```typescript
261
+// Start authorization for Gmail
262
+const connectionRequest = await session.authorize('gmail');
263
+
264
+console.log(connectionRequest.redirectUrl); // URL to redirect user for auth
265
+
266
+// Wait for the user to complete authorization
267
+const connectedAccount = await connectionRequest.waitForConnection();
268
+console.log('Connected:', connectedAccount);
269
+```
270
+
271
+### `toolkits()`
272
+
273
+Query the connection state of toolkits in the session.
274
+
275
+```typescript
276
+const { items, nextCursor, totalPages } = await session.toolkits();
277
+
278
+for (const toolkit of items) {
279
+ console.log(`${toolkit.name} (${toolkit.slug})`);
280
+ console.log(` Connected: ${toolkit.connection.isActive}`);
281
+ if (toolkit.connection.connectedAccount) {
282
+ console.log(` Account ID: ${toolkit.connection.connectedAccount.id}`);
283
+ console.log(` Status: ${toolkit.connection.connectedAccount.status}`);
284
+ }
285
+}
286
+
287
+// Pagination support
288
+const moreToolkits = await session.toolkits({
289
+ nextCursor: nextCursor,
290
+ limit: 10
291
+});
292
+
293
+// Filter by specific toolkits
294
+const filteredToolkits = await session.toolkits({
295
+ toolkits: ['gmail', 'slack']
296
+});
297
+
298
+// Combine filtering with pagination
299
+const paginatedFilteredToolkits = await session.toolkits({
300
+ toolkits: ['gmail', 'github'],
301
+ limit: 5,
302
+ nextCursor: 'cursor_abc'
303
+});
304
+```
305
+
306
+## Framework Integrations
307
+
308
+### Vercel AI SDK (with Provider)
309
+
310
+When using the `session.tools()` method, you need to pass a provider to get framework-specific tools:
311
+
312
+```typescript
313
+import { openai } from '@ai-sdk/openai';
314
+import { Composio } from '@composio/core';
315
+import { VercelProvider } from '@composio/vercel';
316
+import { stepCountIs, streamText } from 'ai';
317
+
318
+const composio = new Composio({
319
+ provider: new VercelProvider(),
320
+});
321
+
322
+const session = await composio.experimental.create('user_123', {
323
+ toolkits: ['gmail']
324
+});
325
+
326
+const tools = await session.tools();
327
+
328
+const stream = await streamText({
329
+ model: openai('gpt-4o-mini'),
330
+ prompt: 'Find my last email from gmail?',
331
+ stopWhen: stepCountIs(10),
332
+ tools,
333
+});
334
+
335
+for await (const textPart of stream.textStream) {
336
+ process.stdout.write(textPart);
337
+}
338
+```
339
+
340
+### Vercel AI SDK (with MCP Client)
341
+
342
+When using MCP clients, no provider is needed. The MCP client fetches tools directly from the MCP server URL:
343
+
344
+```typescript
345
+import { openai } from '@ai-sdk/openai';
346
+import { experimental_createMCPClient as createMCPClient } from '@ai-sdk/mcp';
347
+import { Composio } from '@composio/core';
348
+import { stepCountIs, streamText } from 'ai';
349
+
350
+// No provider needed when using MCP
351
+const composio = new Composio();
352
+const { mcp } = await composio.experimental.create('user_123', {
353
+ toolkits: ['gmail'],
354
+ manageConnections: true
355
+});
356
+
357
+// Create MCP client using the session URL
358
+const client = await createMCPClient({
359
+ transport: {
360
+ type: 'http',
361
+ url: mcp.url,
362
+ headers: {
363
+ 'x-api-key': process.env.COMPOSIO_API_KEY!,
364
+ }
365
+ }
366
+});
367
+
368
+const tools = await client.tools();
369
+
370
+const stream = await streamText({
371
+ model: openai('gpt-4o-mini'),
372
+ prompt: 'Find my last email from gmail?',
373
+ stopWhen: stepCountIs(10),
374
+ onStepFinish: (step) => {
375
+ if (step.toolCalls.length > 0) {
376
+ for (const toolCall of step.toolCalls) {
377
+ console.log(`Executed ${toolCall.toolName}`);
378
+ }
379
+ }
380
+ },
381
+ tools,
382
+});
383
+
384
+for await (const textPart of stream.textStream) {
385
+ process.stdout.write(textPart);
386
+}
387
+```
388
+
389
+### LangChain
390
+
391
+LangChain can connect to Tool Router via MCP adapters. No provider is needed:
392
+
393
+```typescript
394
+import { MultiServerMCPClient } from "@langchain/mcp-adapters";
395
+import { ChatOpenAI } from "@langchain/openai";
396
+import { createAgent } from "langchain";
397
+import { Composio } from "@composio/core";
398
+
399
+// No provider needed when using MCP
400
+const composio = new Composio();
401
+
402
+const llm = new ChatOpenAI({
403
+ model: "gpt-4o",
404
+});
405
+
406
+const session = await composio.experimental.create('user_123', {
407
+ toolkits: ['gmail']
408
+});
409
+
410
+const client = new MultiServerMCPClient({
411
+ composio: {
412
+ transport: "http",
413
+ url: session.mcp.url,
414
+ headers: {
415
+ 'x-api-key': process.env.COMPOSIO_API_KEY!,
416
+ }
417
+ },
418
+});
419
+
420
+const tools = await client.getTools();
421
+
422
+const agent = createAgent({
423
+ name: "Gmail Assistant",
424
+ systemPrompt: "You are a helpful gmail assistant.",
425
+ model: llm,
426
+ tools,
427
+});
428
+
429
+const result = await agent.invoke({
430
+ messages: [{ role: "user", content: "Fetch my last email from gmail" }],
431
+});
432
+
433
+console.log(result);
434
+```
435
+
436
+### OpenAI Agents SDK
437
+
438
+OpenAI Agents SDK supports hosted MCP tools. No provider is needed:
439
+
440
+```typescript
441
+import { Agent, run, hostedMcpTool } from '@openai/agents';
442
+import { Composio } from '@composio/core';
443
+
444
+// No provider needed when using MCP
445
+const composio = new Composio();
446
+
447
+const session = await composio.experimental.create('user_123', {
448
+ toolkits: ['gmail']
449
+});
450
+
451
+console.log(`Tool Router Session Created: ${session.sessionId}`);
452
+console.log(`Connecting to MCP server: ${session.mcp.url}`);
453
+
454
+const mcpTool = hostedMcpTool({
455
+ serverLabel: 'ComposioApps',
456
+ serverUrl: session.mcp.url,
457
+ headers: {
458
+ 'x-api-key': process.env.COMPOSIO_API_KEY!,
459
+ }
460
+});
461
+
462
+const agent = new Agent({
463
+ name: 'Gmail Assistant',
464
+ instructions: 'You are a helpful gmail assistant.',
465
+ tools: [mcpTool],
466
+});
467
+
468
+const result = await run(agent, 'Summarize my last email from gmail', {
469
+ stream: true,
470
+});
471
+
472
+const stream = result.toStream();
473
+
474
+for await (const event of stream) {
475
+ if (event.type === 'raw_model_stream_event' && event.data.delta) {
476
+ process.stdout.write(event.data.delta);
477
+ }
478
+}
479
+```
480
+
481
+### Claude Agents SDK
482
+
483
+Claude Agents SDK supports MCP servers natively. No provider is needed:
484
+
485
+```typescript
486
+import { query } from "@anthropic-ai/claude-agent-sdk";
487
+import { Composio } from '@composio/core';
488
+
489
+// No provider needed when using MCP
490
+const composio = new Composio();
491
+
492
+const session = await composio.experimental.create('user_123', {
493
+ toolkits: ['gmail']
494
+});
495
+
496
+const stream = await query({
497
+ prompt: 'Use composio tools to fetch my last email from gmail',
498
+ options: {
499
+ model: 'claude-sonnet-4-5-20250929',
500
+ permissionMode: "bypassPermissions",
501
+ mcpServers: {
502
+ composio: {
503
+ type: 'http',
504
+ url: session.mcp.url,
505
+ headers: {
506
+ 'x-api-key': process.env.COMPOSIO_API_KEY!,
507
+ }
508
+ }
509
+ },
510
+ }
511
+});
512
+
513
+for await (const event of stream) {
514
+ if (event.type === "result" && event.subtype === "success") {
515
+ process.stdout.write(event.result);
516
+ }
517
+}
518
+```
519
+
520
+## Authorization Flow
521
+
522
+When a user needs to connect a toolkit, use the `authorize()` method:
523
+
524
+```typescript
525
+import { Composio } from '@composio/core';
526
+
527
+const composio = new Composio();
528
+const session = await composio.experimental.create('user_123', {
529
+ toolkits: ['gmail']
530
+});
531
+
532
+// Initiate authorization for Gmail
533
+const connectionRequest = await session.authorize("gmail");
534
+
535
+// Log the redirect URL for the user
536
+console.log('Redirect URL:', connectionRequest.redirectUrl);
537
+
538
+// Wait for the user to complete the authorization
539
+const connectedAccount = await connectionRequest.waitForConnection();
540
+console.log('Connected Account:', connectedAccount);
541
+```
542
+
543
+You can also provide a custom callback URL:
544
+
545
+```typescript
546
+const connectionRequest = await session.authorize("gmail", {
547
+ callbackUrl: 'https://your-app.com/auth/callback'
548
+});
549
+```
550
+
551
+## Querying Toolkit States
552
+
553
+Use the `toolkits()` method to check connection states:
554
+
555
+```typescript
556
+import { Composio } from '@composio/core';
557
+
558
+const composio = new Composio();
559
+const session = await composio.experimental.create('user_123');
560
+
561
+// Get all toolkits
562
+const toolkits = await session.toolkits();
563
+
564
+console.log(JSON.stringify({ toolkits }, null, 2));
565
+
566
+// Filter by specific toolkits
567
+const gmailAndSlack = await session.toolkits({
568
+ toolkits: ['gmail', 'slack']
569
+});
570
+```
571
+
572
+The response includes:
573
+
574
+```typescript
575
+{
576
+ items: [
577
+ {
578
+ slug: 'gmail',
579
+ name: 'Gmail',
580
+ logo: 'https://...',
581
+ isNoAuth: false,
582
+ connection: {
583
+ isActive: true,
584
+ authConfig: {
585
+ id: 'ac_xxx',
586
+ mode: 'OAUTH2',
587
+ isComposioManaged: true
588
+ },
589
+ connectedAccount: {
590
+ id: 'ca_xxx',
591
+ status: 'ACTIVE'
592
+ }
593
+ }
594
+ }
595
+ ],
596
+ nextCursor: 'cursor_abc',
597
+ totalPages: 1
598
+}
599
+```
600
+
601
+## Using Modifiers
602
+
603
+Add custom behavior before and after tool execution:
604
+
605
+```typescript
606
+import { ExecuteToolModifiers } from "@composio/core";
607
+
608
+const modifiers: ExecuteToolModifiers = {
609
+ beforeExecute: ({ toolSlug, params }) => {
610
+ console.log(`Executing ${toolSlug}`);
611
+ return params;
612
+ },
613
+ afterExecute: ({ toolSlug, result }) => {
614
+ console.log(`Executed ${toolSlug}`);
615
+ return result;
616
+ },
617
+};
618
+
619
+const tools = await session.tools(modifiers);
620
+```
621
+
622
+## Best Practices
623
+
624
+1. **User Isolation**: Create separate sessions per user to ensure proper isolation of connections and tools.
625
+
626
+2. **Toolkit Selection**: Only enable toolkits that are necessary for the use case to maintain security and reduce complexity.
627
+
628
+3. **Connection Management**: Use `manageConnections: true` (default) for interactive applications where users can be prompted to connect accounts.
629
+
630
+4. **Scope Inference**: Enable `inferScopesFromTools` when you want OAuth scopes to be automatically derived from the tools you've enabled.
631
+
632
+5. **Session Reuse**: Store and reuse `sessionId` to maintain user sessions across requests.
633
+
634
+```typescript
635
+// Store session ID after creation
636
+const session = await composio.experimental.create('user_123', config);
637
+await redis.set(`session:user_123`, session.sessionId);
638
+
639
+// Retrieve existing session
640
+const sessionId = await redis.get(`session:user_123`);
641
+if (sessionId) {
642
+ const session = await composio.toolRouter.use(sessionId);
643
+}
644
+```
645
+
646
+## Type Reference
647
+
648
+### ToolRouterCreateSessionConfig
649
+
650
+```typescript
651
+interface ToolRouterCreateSessionConfig {
652
+ toolkits?: string[] | { enabled: string[] } | { disabled: string[] };
653
+ tools?: {
654
+ overrides?: Record<string, string[] | { enabled: string[] } | { disabled: string[] }>;
655
+ tags?: string[] | { enabled: string[] } | { disabled: string[] };
656
+ };
657
+ authConfigs?: Record<string, string>;
658
+ connectedAccounts?: Record<string, string>;
659
+ manageConnections?: boolean | {
660
+ enabled?: boolean;
661
+ callbackUri?: string;
662
+ inferScopesFromTools?: boolean;
663
+ };
664
+ execution?: {
665
+ proxyExecutionEnabled?: boolean;
666
+ timeoutSeconds?: number;
667
+ };
668
+}
669
+```
670
+
671
+### ToolRouterSession
672
+
673
+```typescript
674
+interface ToolRouterSession {
675
+ sessionId: string;
676
+ mcp: {
677
+ type: 'HTTP' | 'SSE';
678
+ url: string;
679
+ };
680
+ tools: (modifiers?: ProviderOptions) => Promise<Tools>;
681
+ authorize: (toolkit: string, options?: { callbackUrl?: string }) => Promise<ConnectionRequest>;
682
+ toolkits: (options?: {
683
+ toolkits?: string[]; // Filter by specific toolkit slugs
684
+ nextCursor?: string; // Pagination cursor
685
+ limit?: number; // Number of items per page
686
+ }) => Promise<ToolkitConnectionsDetails>;
687
+}
688
+```
689
+
690
+### ToolkitConnectionState
691
+
692
+```typescript
693
+interface ToolkitConnectionState {
694
+ slug: string;
695
+ name: string;
696
+ logo?: string;
697
+ isNoAuth: boolean;
698
+ connection: {
699
+ isActive: boolean;
700
+ authConfig?: {
701
+ id: string;
702
+ mode: string;
703
+ isComposioManaged: boolean;
704
+ };
705
+ connectedAccount?: {
706
+ id: string;
707
+ status: string;
708
+ };
709
+ };
710
+}
711
+```
712
+
ts/examples/tool-router/.env.example
new
+6
@@ -0,0 +1,6 @@
1
+# Composio API Key - Get it from https://app.composio.dev
2
+COMPOSIO_API_KEY=your_composio_api_key_here
3
+
4
+# Add other environment variables as needed for your example
5
+# OPENAI_API_KEY=your_openai_api_key_here
6
+# ANTHROPIC_API_KEY=your_anthropic_api_key_here
ts/examples/tool-router/README.md
new
+53
@@ -0,0 +1,53 @@
1
+# Tool-router Example
2
+
3
+This example demonstrates how to use Composio SDK for tool-router.
4
+
5
+## Setup
6
+
7
+1. **Install dependencies:**
8
+ ```bash
9
+ pnpm install
10
+ ```
11
+
12
+2. **Configure environment:**
13
+ ```bash
14
+ cp .env.example .env
15
+ ```
16
+
17
+ Then edit `.env` and add your API keys:
18
+ - `COMPOSIO_API_KEY`: Get it from [Composio Dashboard](https://app.composio.dev)
19
+
20
+## Running the Example
21
+
22
+```bash
23
+# Run the example
24
+pnpm start
25
+
26
+# Run in development mode (with file watching)
27
+pnpm dev
28
+```
29
+
30
+## What This Example Does
31
+
32
+- Initializes Composio SDK
33
+- Fetches available tools
34
+- Demonstrates basic usage patterns
35
+
36
+## Customization
37
+
38
+Edit `src/index.ts` to:
39
+- Add specific apps you want to integrate with
40
+- Implement your business logic
41
+- Add error handling and logging
42
+
43
+## Related Examples
44
+
45
+- [OpenAI Example](../openai) - Shows integration with OpenAI
46
+- [LangChain Example](../langchain) - Shows integration with LangChain
47
+- [More Examples](../) - Browse all available examples
48
+
49
+## Support
50
+
51
+- [Documentation](https://docs.composio.dev)
52
+- [Discord Community](https://discord.gg/composio)
53
+- [GitHub Issues](https://github.com/composio/composio/issues)
ts/examples/tool-router/package.json
new
+41
@@ -0,0 +1,41 @@
1
+{
2
+ "name": "tool-router-example",
3
+ "private": true,
4
+ "version": "0.1.0",
5
+ "description": "Example project for Tool-router",
6
+ "main": "src/index.ts",
7
+ "scripts": {
8
+ "start": "bun src/index.ts",
9
+ "dev": "bun --watch src/index.ts",
10
+ "test": "echo \"Error: no test specified\" && exit 1"
11
+ },
12
+ "keywords": [
13
+ "composio",
14
+ "example",
15
+ "tool-router"
16
+ ],
17
+ "author": "",
18
+ "license": "ISC",
19
+ "packageManager": "pnpm@10.17.0",
20
+ "dependencies": {
21
+ "@ai-sdk/mcp": "^0.0.10",
22
+ "@ai-sdk/openai": "^2.0.72",
23
+ "@anthropic-ai/claude-agent-sdk": "^0.1.55",
24
+ "@composio/core": "workspace:*",
25
+ "@composio/openai-agents": "workspace:*",
26
+ "@composio/vercel": "workspace:*",
27
+ "@langchain/anthropic": "^1.1.3",
28
+ "@langchain/mcp-adapters": "^1.0.1",
29
+ "@langchain/openai": "^1.1.3",
30
+ "@openai/agents": "^0.3.3",
31
+ "ai": "catalog:",
32
+ "dotenv": "^16.4.1",
33
+ "langchain": "^1.1.1",
34
+ "ora": "^9.0.0",
35
+ "pnpm": "^10.21.0"
36
+ },
37
+ "devDependencies": {
38
+ "@types/bun": "^1.2.9",
39
+ "typescript": "catalog:"
40
+ }
41
+}
ts/examples/tool-router/src/authorize.ts
new
+12
@@ -0,0 +1,12 @@
1
+import { Composio } from '@composio/core';
2
+
3
+const composio = new Composio();
4
+const session = await composio.experimental.create('user_123', { toolkits: ['gmail'] });
5
+const connectionRequest = await session.authorize("gmail");
6
+
7
+console.log(connectionRequest);
8
+
9
+const connectedAccount = await connectionRequest.waitForConnection();
10
+console.log(connectedAccount);
11
+
12
+
ts/examples/tool-router/src/claude-agents-sdk.ts
new
+31
@@ -0,0 +1,31 @@
1
+import { query } from "@anthropic-ai/claude-agent-sdk";
2
+import { Composio } from '@composio/core';
3
+import 'dotenv/config';
4
+
5
+const composio = new Composio();
6
+
7
+const session = await composio.experimental.create('user_123', { toolkits: ['gmail'] });
8
+
9
+const stream = await query({
10
+ prompt: 'Use composio tools to fetch my last email from gmail',
11
+ options: {
12
+ model: 'claude-sonnet-4-5-20250929',
13
+ permissionMode: "bypassPermissions",
14
+ mcpServers: {
15
+ composio: {
16
+ type: 'http',
17
+ url: session.mcp.url,
18
+ headers: {
19
+ 'x-api-key': process.env.COMPOSIO_API_KEY!,
20
+ }
21
+ }
22
+ },
23
+
24
+ }
25
+});
26
+
27
+for await (const event of stream) {
28
+ if (event.type === "result" && event.subtype === "success") {
29
+ process.stdout.write(event.result);
30
+ }
31
+}
\ No newline at end of file
ts/examples/tool-router/src/index.ts
new
+21
@@ -0,0 +1,21 @@
1
+import { openai } from '@ai-sdk/openai';
2
+import { Composio } from '@composio/core';
3
+import { VercelProvider } from '@composio/vercel';
4
+import { stepCountIs, streamText } from 'ai';
5
+
6
+const composio = new Composio({
7
+ provider: new VercelProvider(),
8
+});
9
+const session = await composio.experimental.create('user_123', { toolkits: ['gmail'] });
10
+const tools = await session.tools();
11
+
12
+const stream = await streamText({
13
+ model: openai('gpt-4o-mini'),
14
+ prompt: 'Find my last email from gmail?',
15
+ stopWhen: stepCountIs(10),
16
+ tools,
17
+});
18
+
19
+for await (const textPart of stream.textStream) {
20
+ process.stdout.write(textPart);
21
+}
ts/examples/tool-router/src/langchain.ts
new
+45
@@ -0,0 +1,45 @@
1
+import { MultiServerMCPClient } from "@langchain/mcp-adapters";
2
+import { ChatOpenAI } from "@langchain/openai";
3
+import { createAgent } from "langchain";
4
+import { Composio } from "@composio/core";
5
+
6
+const composio = new Composio({
7
+ apiKey: process.env.COMPOSIO_API_KEY,
8
+});
9
+
10
+const llm = new ChatOpenAI({
11
+ model: "gpt-4o",
12
+})
13
+
14
+async function main() {
15
+ const session = await composio.experimental.create('user_123', { toolkits: ['gmail'] });
16
+
17
+ const client = new MultiServerMCPClient({
18
+ math: {
19
+ transport: "http",
20
+ url: session.mcp.url,
21
+ headers: {
22
+ 'x-api-key': process.env.COMPOSIO_API_KEY!,
23
+ }
24
+ },
25
+ });
26
+
27
+ const tools = await client.getTools();
28
+
29
+
30
+ const agent = createAgent({
31
+ name: "Gmail Assistant",
32
+ systemPrompt: "You are a helpful gmail assistant.",
33
+ model: llm,
34
+ tools,
35
+ });
36
+
37
+ const result = await agent.invoke({
38
+ messages: [{ role: "user", content: "Fetch my last email from gmail" }],
39
+ })
40
+
41
+ console.log(result);
42
+}
43
+
44
+main();
45
+
ts/examples/tool-router/src/logger.ts
new
+15
@@ -0,0 +1,15 @@
1
+import { ExecuteToolModifiers } from "@composio/core";
2
+import ora from 'ora';
3
+let spinner = ora();
4
+
5
+export const modifiers: ExecuteToolModifiers = {
6
+ beforeExecute: ({ toolSlug, params }) => {
7
+ spinner = ora();
8
+ spinner.start(`Executing ${toolSlug}`);
9
+ return params;
10
+ },
11
+ afterExecute: ({ toolSlug, result }) => {
12
+ spinner.succeed(`Executed ${toolSlug}`);
13
+ return result;
14
+ },
15
+};
\ No newline at end of file
ts/examples/tool-router/src/mcp.ts
new
+43
@@ -0,0 +1,43 @@
1
+import { openai } from '@ai-sdk/openai';
2
+import { experimental_createMCPClient as createMCPClient } from '@ai-sdk/mcp';
3
+import { Composio } from '@composio/core';
4
+import { stepCountIs, streamText } from 'ai';
5
+import ora from 'ora';
6
+
7
+const composio = new Composio();
8
+const trProgress = ora("Creating tool router session...").start();
9
+const { mcp } = await composio.experimental.create('dhawal', { toolkits: ['gmail'], manageConnections: true });
10
+trProgress.succeed(`Tool router session created: ${mcp.url}`);
11
+
12
+const mcpProgress = ora("Retrieving tools from MCP...").start();
13
+const client = await createMCPClient({
14
+ transport: {
15
+ type: 'http',
16
+ url: mcp.url,
17
+ headers: {
18
+ 'x-api-key': process.env.COMPOSIO_API_KEY!,
19
+ }
20
+ }
21
+});
22
+
23
+const tools = await client.tools();
24
+mcpProgress.succeed(`${Object.values(tools).length} tools retrieved from MCP`);
25
+
26
+console.log(`🤖 Waiting for agent response...`);
27
+const stream = await streamText({
28
+ model: openai('gpt-4o-mini'),
29
+ prompt: 'Find my last email from gmail?',
30
+ stopWhen: stepCountIs(10),
31
+ onStepFinish: (step) => {
32
+ if (step.toolCalls.length > 0) {
33
+ for (const toolCall of step.toolCalls) {
34
+ console.log(`🔧 Executed ${toolCall.toolName}`);
35
+ }
36
+ }
37
+ },
38
+ tools,
39
+});
40
+
41
+for await (const textPart of stream.textStream) {
42
+ process.stdout.write(textPart);
43
+}
ts/examples/tool-router/src/openai-agents.ts
new
+37
@@ -0,0 +1,37 @@
1
+import { Agent, run, hostedMcpTool } from '@openai/agents';
2
+import { Composio } from '@composio/core';
3
+
4
+const composio = new Composio();
5
+
6
+const session = await composio.experimental.create('user_123', { toolkits: ['gmail'] });
7
+
8
+console.log(`Tool Router Session Created: ${session.sessionId}`);
9
+console.log(`Connecting to MCP server: ${session.mcp.url}`);
10
+
11
+const mcpTool = hostedMcpTool({
12
+ serverLabel: 'ComposioApps',
13
+ serverUrl: session.mcp.url,
14
+ headers: {
15
+ 'x-api-key': process.env.COMPOSIO_API_KEY!,
16
+ }
17
+});
18
+
19
+
20
+const agent = new Agent({
21
+ name: 'Gmail Assistant',
22
+ instructions: 'You are a helpful gmail assistant.',
23
+ tools: [mcpTool],
24
+});
25
+
26
+const result = await run(agent, 'Summarize my last email from gmail', {
27
+ stream: true,
28
+});
29
+
30
+
31
+const stream = result.toStream();
32
+
33
+for await (const event of stream) {
34
+ if (event.type === 'raw_model_stream_event' && event.data.delta) {
35
+ process.stdout.write(event.data.delta);
36
+ }
37
+}
\ No newline at end of file
ts/examples/tool-router/src/toolkits.ts
new
+9
@@ -0,0 +1,9 @@
1
+import { Composio } from '@composio/core';
2
+
3
+const composio = new Composio();
4
+
5
+const session = await composio.experimental.create('user_123');
6
+
7
+const toolkits = await session.toolkits({ toolkits: ["github"]});
8
+
9
+console.log(JSON.stringify({ toolkits }, null, 2))
\ No newline at end of file
ts/examples/tool-router/tsconfig.json
new
+16
@@ -0,0 +1,16 @@
1
+{
2
+ "compilerOptions": {
3
+ "target": "es2022",
4
+ "module": "esnext",
5
+ "declaration": true,
6
+ "declarationDir": "./dist",
7
+ "outDir": "./dist",
8
+ "rootDir": "./src",
9
+ "strict": true,
10
+ "esModuleInterop": true,
11
+ "moduleResolution": "bundler",
12
+ "skipLibCheck": true,
13
+ "resolveJsonModule": true
14
+ },
15
+ "include": ["src"]
16
+}
ts/examples/vercel/src/stream.ts
+10
-35
@@ -1,5 +1,5 @@
1
import { Composio } from '@composio/core';
2
-import { generateText, ModelMessage, stepCountIs, streamText } from 'ai';
2
+import { ModelMessage, stepCountIs, streamText } from 'ai';
3
import { openai } from '@ai-sdk/openai';
4
import { VercelProvider } from '@composio/vercel';
5
import dotenv from 'dotenv';
@@ -14,39 +14,14 @@ const composio = new Composio({
14
provider: new VercelProvider(),
15
});
16
17
-/**
18
- * Get the hacker news tool
19
- * Alternatively, you can use the `composio.getToolBySlug` method
20
- */
21
-async function run() {
22
- const tools = await composio.tools.get('test-user-id', 'HACKERNEWS_GET_FRONTPAGE', {
23
- beforeExecute: ({ params, toolSlug }) => {
24
- console.log(`🔄 Executing ${toolSlug} with params:`, { params });
25
- return params;
26
- },
27
- afterExecute: ({ result, toolSlug }) => {
28
- console.log(`✅ Executed ${toolSlug} with result:`);
29
- return result;
30
- },
31
- });
32
-
33
- const messages: ModelMessage[] = [
34
- {
35
- role: MessageRoles.USER,
36
- content: 'Summarize the front page of HackerNews',
37
- },
38
- ];
39
-
40
- const stream = await streamText({
41
- model: openai('gpt-4o-mini'),
42
- tools: tools,
43
- messages,
44
- stopWhen: stepCountIs(5),
45
- });
17
+const tools = await composio.tools.get('test-user-id', 'HACKERNEWS_GET_FRONTPAGE');
18
+const stream = await streamText({
19
+ model: openai('gpt-4o-mini'),
20
+ tools: tools,
21
+ prompt: 'Summarize the front page of HackerNews',
22
+ stopWhen: stepCountIs(5),
23
+});
24
47
- for await (const textPart of stream.textStream) {
48
- process.stdout.write(textPart);
49
- }
25
+for await (const textPart of stream.textStream) {
26
+ process.stdout.write(textPart);
27
}
51
-
52
-run();
ts/packages/cli/test/src/generation/typescript/generate-toolkit-source.test.ts
+94
@@ -251,26 +251,31 @@ describe('generateTypeScriptToolkitSources', () => {
251
/**
252
* Author
253
* @description The GitHub username of the commit author
254
+ * @example octocat
255
*/
256
author?: string;
257
/**
258
* Id
259
* @description The SHA of the commit
260
+ * @example 7638417db6d59f3c431d3e1f261cc637155684cd
261
*/
262
id?: string;
263
/**
264
* Message
265
* @description The commit message
266
+ * @example Fix typo in README
267
*/
268
message?: string;
269
/**
270
* Timestamp
271
* @description The timestamp of the commit
272
+ * @example 2021-04-14T02:15:15Z
273
*/
274
timestamp?: string;
275
/**
276
* Url
277
* @description The GitHub URL of the commit
278
+ * @example https://github.com/octocat/Hello-World/commit/7638417db6d59f3c431d3e1f261cc637155684cd
279
*/
280
url?: string;
281
};
@@ -293,42 +298,50 @@ describe('generateTypeScriptToolkitSources', () => {
298
/**
299
* Action
300
* @description The action that was performed on the issue
301
+ * @example opened
302
*/
303
action?: string;
304
/**
305
* Createdat
306
* @description The timestamp when the issue was created
307
+ * @example 2021-04-14T02:15:15Z
308
*/
309
createdAt?: string;
310
/**
311
* Createdby
312
* @description The GitHub username of the user who created the issue
313
+ * @example octocat
314
*/
315
createdBy?: string;
316
/**
317
* Description
318
* @description A detailed description of the issue
319
* @default
320
+ * @example There is a bug in the code that needs to be fixed.
321
*/
322
description: string;
323
/**
324
* Issue Id
325
* @description The unique ID assigned to the issue
326
+ * @example 101
327
*/
328
issue_id?: number;
329
/**
330
* Number
331
* @description The unique number assigned to the issue
332
+ * @example 42
333
*/
334
number?: number;
335
/**
336
* Title
337
* @description The title of the issue
338
+ * @example Bug in code
339
*/
340
title?: string;
341
/**
342
* Url
343
* @description The GitHub URL of the issue
344
+ * @example https://github.com/octocat/Hello-World/issues/42
345
*/
346
url?: string;
347
};
@@ -340,36 +353,44 @@ describe('generateTypeScriptToolkitSources', () => {
353
/**
354
* Action
355
* @description The action that was performed on the label
356
+ * @example labeled
357
*/
358
action?: string;
359
/**
360
* Label
361
* @description The name of the label that was added
362
+ * @example bug
363
+ * @example enhancement
364
*/
365
label?: string;
366
/**
367
* Labeled At
368
* @description The timestamp when the label was added
369
+ * @example 2021-04-14T02:15:15Z
370
*/
371
labeled_at?: string;
372
/**
373
* Labeled By
374
* @description The GitHub username of the user who added the label
375
+ * @example octocat
376
*/
377
labeled_by?: string;
378
/**
379
* Pull Request Number
380
* @description The unique number assigned to the pull request
381
+ * @example 42
382
*/
383
pull_request_number?: number;
384
/**
385
* Pull Request Title
386
* @description The title of the pull request
387
+ * @example Fix typo in README
388
*/
389
pull_request_title?: string;
390
/**
391
* Pull Request Url
392
* @description The GitHub URL of the pull request
393
+ * @example https://github.com/octocat/Hello-World/pull/42
394
*/
395
pull_request_url?: string;
396
};
@@ -381,37 +402,46 @@ describe('generateTypeScriptToolkitSources', () => {
402
/**
403
* Action
404
* @description The action that was performed on the pull request
405
+ * @example opened
406
+ * @example closed
407
+ * @example synchronize
408
*/
409
action?: string;
410
/**
411
* Createdat
412
* @description The timestamp when the pull request was created
413
+ * @example 2021-04-14T02:15:15Z
414
*/
415
createdAt?: string;
416
/**
417
* Createdby
418
* @description The GitHub username of the user who created the pull request
419
+ * @example octocat
420
*/
421
createdBy?: string;
422
/**
423
* Description
424
* @description A detailed description of the pull request
425
* @default
426
+ * @example This pull request fixes a typo found in the README file under the 'Installation' section.
427
*/
428
description: string;
429
/**
430
* Number
431
* @description The unique number assigned to the pull request
432
+ * @example 42
433
*/
434
number?: number;
435
/**
436
* Title
437
* @description The title of the pull request
438
+ * @example Fix typo in README
439
*/
440
title?: string;
441
/**
442
* Url
443
* @description The GitHub URL of the pull request
444
+ * @example https://github.com/octocat/Hello-World/pull/42
445
*/
446
url?: string;
447
};
@@ -423,31 +453,37 @@ describe('generateTypeScriptToolkitSources', () => {
453
/**
454
* Action
455
* @description The action that was performed on the star
456
+ * @example created
457
*/
458
action?: string;
459
/**
460
* Repository Id
461
* @description The unique ID assigned to the repository
462
+ * @example 101
463
*/
464
repository_id?: number;
465
/**
466
* Repository Name
467
* @description The name of the repository
468
+ * @example Hello-World
469
*/
470
repository_name?: string;
471
/**
472
* Repository Url
473
* @description The GitHub URL of the repository
474
+ * @example https://github.com/octocat/Hello-World
475
*/
476
repository_url?: string;
477
/**
478
* Starred At
479
* @description The timestamp when the star was added
480
+ * @example 2021-04-14T02:15:15Z
481
*/
482
starred_at?: string;
483
/**
484
* Starred By
485
* @description The GitHub username of the user who added the star
486
+ * @example octocat
487
*/
488
starred_by?: string;
489
};
@@ -779,6 +815,8 @@ describe('generateTypeScriptToolkitSources', () => {
815
/**
816
* Invitation Id
817
* @description Unique identifier of the repository invitation. Obtain by listing pending invitations for the authenticated user.
818
+ * @example 12345
819
+ * @example 67890
820
*/
821
invitation_id?: number;
822
};
@@ -815,6 +853,8 @@ describe('generateTypeScriptToolkitSources', () => {
853
* Direction
854
* @description Sort direction: 'asc' (ascending) or 'desc' (descending).
855
* @default desc
856
+ * @example asc
857
+ * @example desc
858
* @enum {string}
859
*/
860
direction: "asc" | "desc";
@@ -822,18 +862,26 @@ describe('generateTypeScriptToolkitSources', () => {
862
* Page
863
* @description Page number of results (starts from 1).
864
* @default 1
865
+ * @example 1
866
+ * @example 2
867
+ * @example 5
868
*/
869
page: number;
870
/**
871
* Per Page
872
* @description Number of results per page (max 100).
873
* @default 1
874
+ * @example 30
875
+ * @example 50
876
+ * @example 100
877
*/
878
per_page: number;
879
/**
880
* Sort
881
* @description Sorts starred repositories by 'created' (date starred) or 'updated' (date last pushed).
882
* @default created
883
+ * @example created
884
+ * @example updated
885
* @enum {string}
886
*/
887
sort: "created" | "updated";
@@ -867,23 +915,33 @@ describe('generateTypeScriptToolkitSources', () => {
915
/**
916
* Owner
917
* @description Username of the account owner (user or organization) of the repository; case-insensitive.
918
+ * @example octocat
919
+ * @example google
920
*/
921
owner?: string;
922
/**
923
* Page
924
* @description Page number of the results to fetch.
925
* @default 1
926
+ * @example 1
927
+ * @example 2
928
+ * @example 10
929
*/
930
page: number;
931
/**
932
* Per Page
933
* @description Number of results to display per page (max 100).
934
* @default 30
935
+ * @example 30
936
+ * @example 50
937
+ * @example 100
938
*/
939
per_page: number;
940
/**
941
* Repo
942
* @description Name of the repository, without the \`.git\` extension; case-insensitive.
943
+ * @example Spoon-Knife
944
+ * @example mercury
945
*/
946
repo?: string;
947
};
@@ -940,26 +998,31 @@ describe('generateTypeScriptToolkitSources', () => {
998
/**
999
* Author
1000
* @description The GitHub username of the commit author
1001
+ * @example octocat
1002
*/
1003
author?: string;
1004
/**
1005
* Id
1006
* @description The SHA of the commit
1007
+ * @example 7638417db6d59f3c431d3e1f261cc637155684cd
1008
*/
1009
id?: string;
1010
/**
1011
* Message
1012
* @description The commit message
1013
+ * @example Fix typo in README
1014
*/
1015
message?: string;
1016
/**
1017
* Timestamp
1018
* @description The timestamp of the commit
1019
+ * @example 2021-04-14T02:15:15Z
1020
*/
1021
timestamp?: string;
1022
/**
1023
* Url
1024
* @description The GitHub URL of the commit
1025
+ * @example https://github.com/octocat/Hello-World/commit/7638417db6d59f3c431d3e1f261cc637155684cd
1026
*/
1027
url?: string;
1028
};
@@ -982,42 +1045,50 @@ describe('generateTypeScriptToolkitSources', () => {
1045
/**
1046
* Action
1047
* @description The action that was performed on the issue
1048
+ * @example opened
1049
*/
1050
action?: string;
1051
/**
1052
* Createdat
1053
* @description The timestamp when the issue was created
1054
+ * @example 2021-04-14T02:15:15Z
1055
*/
1056
createdAt?: string;
1057
/**
1058
* Createdby
1059
* @description The GitHub username of the user who created the issue
1060
+ * @example octocat
1061
*/
1062
createdBy?: string;
1063
/**
1064
* Description
1065
* @description A detailed description of the issue
1066
* @default
1067
+ * @example There is a bug in the code that needs to be fixed.
1068
*/
1069
description: string;
1070
/**
1071
* Issue Id
1072
* @description The unique ID assigned to the issue
1073
+ * @example 101
1074
*/
1075
issue_id?: number;
1076
/**
1077
* Number
1078
* @description The unique number assigned to the issue
1079
+ * @example 42
1080
*/
1081
number?: number;
1082
/**
1083
* Title
1084
* @description The title of the issue
1085
+ * @example Bug in code
1086
*/
1087
title?: string;
1088
/**
1089
* Url
1090
* @description The GitHub URL of the issue
1091
+ * @example https://github.com/octocat/Hello-World/issues/42
1092
*/
1093
url?: string;
1094
};
@@ -1029,36 +1100,44 @@ describe('generateTypeScriptToolkitSources', () => {
1100
/**
1101
* Action
1102
* @description The action that was performed on the label
1103
+ * @example labeled
1104
*/
1105
action?: string;
1106
/**
1107
* Label
1108
* @description The name of the label that was added
1109
+ * @example bug
1110
+ * @example enhancement
1111
*/
1112
label?: string;
1113
/**
1114
* Labeled At
1115
* @description The timestamp when the label was added
1116
+ * @example 2021-04-14T02:15:15Z
1117
*/
1118
labeled_at?: string;
1119
/**
1120
* Labeled By
1121
* @description The GitHub username of the user who added the label
1122
+ * @example octocat
1123
*/
1124
labeled_by?: string;
1125
/**
1126
* Pull Request Number
1127
* @description The unique number assigned to the pull request
1128
+ * @example 42
1129
*/
1130
pull_request_number?: number;
1131
/**
1132
* Pull Request Title
1133
* @description The title of the pull request
1134
+ * @example Fix typo in README
1135
*/
1136
pull_request_title?: string;
1137
/**
1138
* Pull Request Url
1139
* @description The GitHub URL of the pull request
1140
+ * @example https://github.com/octocat/Hello-World/pull/42
1141
*/
1142
pull_request_url?: string;
1143
};
@@ -1070,37 +1149,46 @@ describe('generateTypeScriptToolkitSources', () => {
1149
/**
1150
* Action
1151
* @description The action that was performed on the pull request
1152
+ * @example opened
1153
+ * @example closed
1154
+ * @example synchronize
1155
*/
1156
action?: string;
1157
/**
1158
* Createdat
1159
* @description The timestamp when the pull request was created
1160
+ * @example 2021-04-14T02:15:15Z
1161
*/
1162
createdAt?: string;
1163
/**
1164
* Createdby
1165
* @description The GitHub username of the user who created the pull request
1166
+ * @example octocat
1167
*/
1168
createdBy?: string;
1169
/**
1170
* Description
1171
* @description A detailed description of the pull request
1172
* @default
1173
+ * @example This pull request fixes a typo found in the README file under the 'Installation' section.
1174
*/
1175
description: string;
1176
/**
1177
* Number
1178
* @description The unique number assigned to the pull request
1179
+ * @example 42
1180
*/
1181
number?: number;
1182
/**
1183
* Title
1184
* @description The title of the pull request
1185
+ * @example Fix typo in README
1186
*/
1187
title?: string;
1188
/**
1189
* Url
1190
* @description The GitHub URL of the pull request
1191
+ * @example https://github.com/octocat/Hello-World/pull/42
1192
*/
1193
url?: string;
1194
};
@@ -1112,31 +1200,37 @@ describe('generateTypeScriptToolkitSources', () => {
1200
/**
1201
* Action
1202
* @description The action that was performed on the star
1203
+ * @example created
1204
*/
1205
action?: string;
1206
/**
1207
* Repository Id
1208
* @description The unique ID assigned to the repository
1209
+ * @example 101
1210
*/
1211
repository_id?: number;
1212
/**
1213
* Repository Name
1214
* @description The name of the repository
1215
+ * @example Hello-World
1216
*/
1217
repository_name?: string;
1218
/**
1219
* Repository Url
1220
* @description The GitHub URL of the repository
1221
+ * @example https://github.com/octocat/Hello-World
1222
*/
1223
repository_url?: string;
1224
/**
1225
* Starred At
1226
* @description The timestamp when the star was added
1227
+ * @example 2021-04-14T02:15:15Z
1228
*/
1229
starred_at?: string;
1230
/**
1231
* Starred By
1232
* @description The GitHub username of the user who added the star
1233
+ * @example octocat
1234
*/
1235
starred_by?: string;
1236
};
ts/packages/core/CHANGELOG.md
+12
-9
@@ -1,5 +1,17 @@
1
# @composio/core
2
3
+## 0.2.7-alpha.1
4
+
5
+### Patch Changes
6
+
7
+- Minor fixes
8
+
9
+## 0.2.7-alpha.0
10
+
11
+### Patch Changes
12
+
13
+- Alpha release of tool router
14
+
15
## 0.2.6
16
17
### Patch Changes
@@ -43,14 +55,12 @@
55
This PR adds support for toolkit versions in the TypeScript SDK and introduces new fields for tracking tool deprecation status and no-auth capabilities.
56
57
### Core Features
46
-
58
- **Toolkit Versions Support**:
59
- Added `toolkit_versions` parameter to the `Triggers` class, defaulting to `"latest"`
60
- Made `Triggers` class generic to accept provider configuration
61
- Pass `toolkit_versions` when listing trigger types
62
63
### New Fields
53
-
64
- **Tool Types**:
65
- Added `isDeprecated` field to track deprecated tools
66
- Added `isNoAuth` field to identify tools that support no-auth mode
@@ -60,20 +70,17 @@
70
- Added `availableVersions` array to track all available versions
71
72
### Code Changes
63
-
73
- Updated `Composio` class to pass config to `Triggers` constructor
74
- Updated `Tools.get()` to include new `isDeprecated` and `isNoAuth` fields
75
- Updated transformers for toolkits and triggers to handle new fields
76
- Added TypeScript types for all new fields
77
78
### Tests
70
-
79
- Updated trigger tests to account for `toolkit_versions` and `cursor` parameters
80
- Fixed generic type usage in `Triggers` test declarations
81
- All 376 tests passing ✅
82
83
### Dependencies
76
-
84
- Updated `@composio/client` to version `0.1.0-alpha.38`
85
- Updated `pnpm-lock.yaml` with dependency resolution changes
86
@@ -98,7 +105,6 @@
105
### Minor Changes
106
107
- 157bf7b: ### Added
101
-
108
- **Version validation for manual tool execution**: Tools now require explicit toolkit version specification when executing manually to prevent unexpected behavior from `latest` version changes
109
- **New `dangerously_skip_version_check` parameter** (Python) / `dangerouslySkipVersionCheck` (TypeScript): Optional flag to bypass version validation (use with caution)
110
- **`ToolVersionRequiredError` exception** (Python): Raised when attempting to execute tools with `latest` version without skip flag, includes helpful error messages with 4 possible fixes
@@ -106,7 +112,6 @@
112
- **Comprehensive test coverage**: Added 19 new test methods in Python covering all tool execution scenarios including version resolution, error handling, modifiers, and environment variables
113
114
### Changed
109
-
115
- **Tool execution behavior**: Manual execution via `tools.execute()` now validates toolkit versions before API calls
116
- **Agentic provider flows**: Automatically set `dangerously_skip_version_check=True` internally to maintain backward compatibility for framework integrations
117
- **Instance-level version resolution**: Both `execute()` and `_execute_tool()` methods now consistently resolve versions from instance-level `toolkit_versions` configuration
@@ -114,7 +119,6 @@
119
- **Test version format**: Updated all test files to use production date-based version format (`20251201_XX`) instead of semantic versioning
120
121
### Fixed
117
-
122
- **Consistent version handling**: Removed `toolkit_versions` parameter from `_execute_tool()` in favor of instance-level configuration, ensuring consistent version resolution across the SDK
123
- **Code formatting**: Applied ruff formatting to all modified Python files
124
- **Array parsing to ZodSchema**: Fixes in json-schema-to-zod to parse array without properties and with properties
@@ -156,7 +160,6 @@
160
```
161
162
### Developer Notes
159
-
163
- Agentic framework integrations (LangChain, CrewAI, etc.) are not affected as they automatically use the skip flag
164
- The `latest` version can still be used with the skip flag, but specific versions are strongly recommended
165
- Error messages include all available resolution options for better developer experience
ts/packages/core/package.json
+1
-1
@@ -1,6 +1,6 @@
1
{
2
"name": "@composio/core",
3
- "version": "0.2.6",
3
+ "version": "0.2.7-alpha.1",
4
"description": "",
5
"main": "src/index.ts",
6
"type": "module",
ts/packages/core/src/composio.ts
+53
-10
@@ -18,7 +18,8 @@ import type { ComposioRequestHeaders } from './types/composio.types';
18
import { Files } from './models/Files';
19
import { getDefaultHeaders } from './utils/session';
20
import { ToolkitVersionParam } from './types/tool.types';
21
-import { ToolRouter } from './models/ToolRouter.experimental';
21
+import { ToolRouter } from './models/ToolRouter';
22
+import { ToolRouterCreateSessionConfig, ToolRouterSession } from './types/toolRouter.types';
23
24
export type ComposioConfig<
25
TProvider extends BaseComposioProvider<unknown, unknown, unknown> = OpenAIProvider,
@@ -144,12 +145,51 @@ export class Composio<
145
authConfigs: AuthConfigs;
146
connectedAccounts: ConnectedAccounts;
147
mcp: MCP;
148
+ /**
149
+ * Experimental feature, use with caution
150
+ * @experimental
151
+ */
152
+ toolRouter: ToolRouter<unknown, unknown, TProvider>;
153
154
/**
155
* Experimental features
156
*/
157
experimental: {
152
- toolRouter: ToolRouter;
158
+ /**
159
+ * Creates a new tool router session for a user.
160
+ *
161
+ * @param userId {string} The user id to create the session for
162
+ * @param config {ToolRouterConfig} The config for the tool router session
163
+ * @returns {Promise<ToolRouterSession<TToolCollection, TTool, TProvider>>} The tool router session
164
+ *
165
+ * @example
166
+ * ```typescript
167
+ * import { Composio } from '@composio/core';
168
+ *
169
+ * const composio = new Composio();
170
+ * const userId = 'user_123';
171
+ *
172
+ * const session = await composio.create(userId, {
173
+ * manageConnections: true,
174
+ * });
175
+ *
176
+ * console.log(session.sessionId);
177
+ * console.log(session.url);
178
+ * console.log(session.tools());
179
+ * ```
180
+ */
181
+ create: (
182
+ userId: string,
183
+ routerConfig?: ToolRouterCreateSessionConfig
184
+ ) => Promise<ToolRouterSession<unknown, unknown, TProvider>>;
185
+
186
+ /**
187
+ * Use an existing tool router session
188
+ *
189
+ * @param id {string} The id of the session to use
190
+ * @returns {Promise<ToolRouterSession<TToolCollection, TTool, TProvider>>} The tool router session
191
+ */
192
+ use: (id: string) => Promise<ToolRouterSession<unknown, unknown, TProvider>>;
193
};
194
195
/**
@@ -231,25 +271,28 @@ export class Composio<
271
logLevel: COMPOSIO_LOG_LEVEL,
272
});
273
234
- this.tools = new Tools(this.client, this.provider, this.config);
274
+ this.tools = new Tools(this.client, this.config);
275
this.mcp = new MCP(this.client);
276
this.toolkits = new Toolkits(this.client);
277
this.triggers = new Triggers(this.client, this.config);
278
this.authConfigs = new AuthConfigs(this.client);
279
this.files = new Files(this.client);
280
this.connectedAccounts = new ConnectedAccounts(this.client);
281
+ this.toolRouter = new ToolRouter(this.client, this.config);
282
283
/**
284
* Initialize Experimental features
285
*/
286
this.experimental = {
246
- /**
247
- * Experimental tool router
248
- * Helps you create a single MCP server containing all the tools with smart routing.
249
- *
250
- * @description Allows you to create an isolated toolRouter MCP session for a user
251
- */
252
- toolRouter: new ToolRouter(this.client),
287
+ create: async (
288
+ userId: string,
289
+ routerConfig?: ToolRouterCreateSessionConfig
290
+ ): Promise<ToolRouterSession<unknown, unknown, TProvider>> => {
291
+ return this.toolRouter.create(userId, routerConfig);
292
+ },
293
+ use: async (id: string): Promise<ToolRouterSession<unknown, unknown, TProvider>> => {
294
+ return this.toolRouter.use(id);
295
+ },
296
};
297
298
/**
ts/packages/core/src/index.ts
-1
@@ -4,7 +4,6 @@ export { OpenAIProvider } from './provider/OpenAIProvider';
4
export { ComposioProvider } from './provider/ComposioProvider';
5
export { BaseNonAgenticProvider, BaseAgenticProvider } from './provider/BaseProvider';
6
export type { BaseComposioProvider } from './provider/BaseProvider';
7
-export { ToolRouter } from './models/ToolRouter.experimental';
7
export { jsonSchemaToZodSchema, removeNonRequiredProperties } from './utils/jsonSchema';
8
export { AuthScheme } from './models/AuthScheme';
9
export { MCP } from './models/MCP';
ts/packages/core/src/lib/toolRouterParams.ts
new
+53
@@ -0,0 +1,53 @@
1
+import { SessionCreateParams } from '@composio/client/resources/tool-router.mjs';
2
+import { ToolRouterConfigTools } from '../types/toolRouter.types';
3
+
4
+export const transformToolRouterToolsParams = (
5
+ params?: ToolRouterConfigTools | undefined
6
+): SessionCreateParams.Tools | undefined => {
7
+ if (!params) {
8
+ return undefined;
9
+ }
10
+
11
+ const { overrides, tags } = params;
12
+
13
+ const toolOverrides = overrides
14
+ ? Object.keys(overrides).reduce(
15
+ (acc, key) => {
16
+ const override = overrides[key];
17
+ if (Array.isArray(override)) {
18
+ acc[key] = { enabled: override };
19
+ } else if (override !== undefined) {
20
+ if ('enabled' in override && override.enabled) {
21
+ acc[key] = { enabled: override.enabled };
22
+ } else if ('disabled' in override && override.disabled) {
23
+ acc[key] = { disabled: override.disabled };
24
+ }
25
+ }
26
+ return acc;
27
+ },
28
+ {} as Record<string, SessionCreateParams.Tools.Enabled | SessionCreateParams.Tools.Disabled>
29
+ )
30
+ : undefined;
31
+
32
+ const tagFilters = tags
33
+ ? (() => {
34
+ if (Array.isArray(tags)) {
35
+ return { include: tags };
36
+ } else if ('enabled' in tags && tags.enabled) {
37
+ return { include: tags.enabled };
38
+ } else if ('disabled' in tags && tags.disabled) {
39
+ return { exclude: tags.disabled };
40
+ }
41
+ return undefined;
42
+ })()
43
+ : undefined;
44
+
45
+ return {
46
+ overrides: toolOverrides,
47
+ filters: tagFilters
48
+ ? {
49
+ tags: tagFilters,
50
+ }
51
+ : undefined,
52
+ };
53
+};
ts/packages/core/src/models/CustomTools.ts
+8
@@ -309,6 +309,14 @@ export class CustomTools {
309
parameters: parameters,
310
body: data.body,
311
connected_account_id: connectedAccountId,
312
+ /**
313
+ * @deprecated
314
+ * @description
315
+ * This parameter is deprecated and will be removed in the future.
316
+ * Please use custom_auth_params instead.
317
+ *
318
+ */
319
+ // @ts-ignore
320
custom_connection_data: data.customConnectionData,
321
});
322
ts/packages/core/src/models/ToolRouter.experimental.ts
deleted
-75
@@ -1,75 +0,0 @@
1
-import { Composio as ComposioClient } from '@composio/client';
2
-import { telemetry } from '../telemetry/Telemetry';
3
-import {
4
- ToolRouterConfig,
5
- ToolRouterConfigSchema,
6
- ToolRouterSession,
7
- ToolRouterSessionSchema,
8
-} from '../types/toolRouter.types';
9
-import { ValidationError } from '../errors';
10
-import { transform } from '../utils/transform';
11
-
12
-export class ToolRouter {
13
- constructor(private client: ComposioClient) {
14
- this.client = client;
15
- telemetry.instrument(this, 'ToolRouter');
16
- }
17
-
18
- /**
19
- * Creates a new Session for the tool router
20
- *
21
- * @param userId {string} The user id to create the session for
22
- * @param routerConfig {ToolRouterConfig} The router config to use
23
- * @returns {Promise<ToolRouterSession>} The tool router session
24
- *
25
- * @example
26
- * ```typescript
27
- * import { Composio } form "@composio/core"
28
- *
29
- * const composio = new Composio()
30
- * const userId = "xxx-ooo-xxxx"
31
- *
32
- * const mcpSession = await composio.experimental.toolRouter.createSession(userId, {
33
- * toolkits: ["github", "hackernews", "slack"]
34
- * })
35
- *
36
- * // with auth configs
37
- * const mcpSession = await composio.experimental.toolRouter.createSession(userId, {
38
- * toolkits: [{ toolkit: "github", authConfingId: "ac_123455344"}]
39
- * ```
40
- */
41
- async createSession(userId: string, routerConfig?: ToolRouterConfig): Promise<ToolRouterSession> {
42
- const config = ToolRouterConfigSchema.safeParse(routerConfig ?? {});
43
- if (config.error) {
44
- throw new ValidationError('Failed to parse tool router config', {
45
- cause: config.error,
46
- });
47
- }
48
-
49
- const toolkitConfig = config.data.toolkits?.map(config => {
50
- if (typeof config === 'string') {
51
- return { toolkit: config };
52
- } else {
53
- return {
54
- toolkit: config.toolkit,
55
- auth_config_id: config.authConfigId,
56
- };
57
- }
58
- });
59
-
60
- const session = await this.client.toolRouter.createSession({
61
- user_id: userId,
62
- config: {
63
- toolkits: toolkitConfig,
64
- manually_manage_connections: config.data.manuallyManageConnections,
65
- },
66
- });
67
-
68
- return transform(session)
69
- .with(ToolRouterSessionSchema)
70
- .using(raw => ({
71
- sessionId: raw.session_id,
72
- url: raw.chat_session_mcp_url,
73
- }));
74
- }
75
-}
ts/packages/core/src/models/ToolRouter.ts
new
+272
@@ -0,0 +1,272 @@
1
+/**
2
+ * ToolRouter class for managing tool router sessions.
3
+ *
4
+ * @description Allows you to create an isolated toolRouter MCP session for a user
5
+ * @example
6
+ * ```typescript
7
+ * import { Composio } from '@composio/core';
8
+ *
9
+ * const composio = new Composio();
10
+ * const userId = 'user_123';
11
+ *
12
+ * const session = await composio.create(userId);
13
+ * ```
14
+ */
15
+import { Composio as ComposioClient } from '@composio/client';
16
+import { telemetry } from '../telemetry/Telemetry';
17
+import { BaseComposioProvider } from '../provider/BaseProvider';
18
+import { ComposioConfig } from '../composio';
19
+import {
20
+ ToolRouterAuthorizeFn,
21
+ ToolRouterToolkitsFn,
22
+ ToolRouterCreateSessionConfig,
23
+ ToolRouterSession,
24
+ ToolkitConnectionStateSchema,
25
+} from '../types/toolRouter.types';
26
+import { ToolRouterCreateSessionConfigSchema } from '../types/toolRouter.types';
27
+import { Tools } from './Tools';
28
+import { ProviderOptions } from '../types/modifiers.types';
29
+import { ConnectionRequest } from '../types/connectionRequest.types';
30
+import { createConnectionRequest } from './ConnectionRequest';
31
+import { ConnectedAccountStatuses } from '../types/connectedAccounts.types';
32
+import { transform } from '../utils/transform';
33
+import { SessionCreateParams } from '@composio/client/resources/tool-router.mjs';
34
+import { transformToolRouterToolsParams } from '../lib/toolRouterParams';
35
+
36
+export class ToolRouter<
37
+ TToolCollection,
38
+ TTool,
39
+ TProvider extends BaseComposioProvider<TToolCollection, TTool, unknown>,
40
+> {
41
+ constructor(
42
+ private client: ComposioClient,
43
+ private config?: ComposioConfig<TProvider>
44
+ ) {
45
+ telemetry.instrument(this, 'ToolRouter');
46
+ }
47
+
48
+ /**
49
+ * Creates a function that authorizes a toolkit for a user.
50
+ * @param sessionId {string} The session id to create the authorize function for
51
+ * @returns {ToolRouterAuthorizeFn} The authorize function
52
+ *
53
+ */
54
+ private createAuthorizeFn = (sessionId: string): ToolRouterAuthorizeFn => {
55
+ const authorizeFn = async (
56
+ toolkit: string,
57
+ options?: { callbackUrl?: string }
58
+ ): Promise<ConnectionRequest> => {
59
+ const response = await this.client.toolRouter.session.link(sessionId, {
60
+ ...(options ?? {}),
61
+ toolkit,
62
+ });
63
+
64
+ return createConnectionRequest(
65
+ this.client,
66
+ response.connected_account_id,
67
+ ConnectedAccountStatuses.INITIATED,
68
+ response.redirect_url
69
+ );
70
+ };
71
+ return authorizeFn;
72
+ };
73
+
74
+ /**
75
+ *
76
+ * @param sessionId {string} The session id to create the connections function for
77
+ * @returns {ToolRouterConectionsFn} The connections function
78
+ *
79
+ * @example
80
+ * ```typescript
81
+ * import { Composio } from '@composio/core';
82
+ *
83
+ * const composio = new Composio();
84
+ * const sessionId = 'session_123';
85
+ *
86
+ * const session = await composio.create(sessionId);
87
+ * console.log(connections);
88
+ * ```
89
+ */
90
+ private createToolkitsFn = (sessionId: string): ToolRouterToolkitsFn => {
91
+ const connectionsFn = async (options?: {
92
+ toolkits?: Array<string>;
93
+ nextCursor?: string;
94
+ limit?: number;
95
+ }) => {
96
+ const result = await this.client.toolRouter.session.toolkits(sessionId, {
97
+ cursor: options?.nextCursor,
98
+ limit: options?.limit,
99
+ toolkits: options?.toolkits,
100
+ });
101
+
102
+ const toolkitConnectedStates = result.items.map(item => {
103
+ const connectedState = transform(item)
104
+ .with(ToolkitConnectionStateSchema)
105
+ .using(item => ({
106
+ slug: item.slug,
107
+ name: item.name,
108
+ logo: item.meta.logo,
109
+ isNoAuth: false,
110
+ connection: {
111
+ isActive: item.connected_account?.status === 'ACTIVE',
112
+ authConfig: item.connected_account && {
113
+ id: item.connected_account?.auth_config.id,
114
+ mode: item.connected_account?.auth_config.auth_scheme,
115
+ isComposioManaged: item.connected_account?.auth_config.is_composio_managed,
116
+ },
117
+ connectedAccount: item.connected_account
118
+ ? {
119
+ id: item.connected_account.id,
120
+ status: item.connected_account.status,
121
+ }
122
+ : undefined,
123
+ },
124
+ }));
125
+ return connectedState;
126
+ });
127
+
128
+ return {
129
+ items: toolkitConnectedStates,
130
+ nextCursor: result.next_cursor,
131
+ totalPages: result.total_pages,
132
+ };
133
+ };
134
+
135
+ return connectionsFn as ToolRouterToolkitsFn;
136
+ };
137
+
138
+ /**
139
+ * @internal
140
+ * Creates a function that wraps the tools based on the provider.
141
+ * The returned tools will be of the type the frameworks expects.
142
+ *
143
+ * @param userId - The user id to get the tools for
144
+ * @param tools - The tools to wrap
145
+ * @returns A function that wraps the tools based on the provider.
146
+ */
147
+ private createToolsFn = (
148
+ userId: string,
149
+ toolSlugs: string[]
150
+ ): ((modifiers?: ProviderOptions<TProvider>) => Promise<ReturnType<TProvider['wrapTools']>>) => {
151
+ return async (modifiers?: ProviderOptions<TProvider>) => {
152
+ const ToolsModel = new Tools<TToolCollection, TTool, TProvider>(this.client, this.config);
153
+ const tools = await ToolsModel.get(
154
+ userId,
155
+ {
156
+ tools: toolSlugs,
157
+ },
158
+ modifiers
159
+ );
160
+ return tools;
161
+ };
162
+ };
163
+
164
+ /**
165
+ * Creates a new tool router session for a user.
166
+ *
167
+ * @param userId {string} The user id to create the session for
168
+ * @param config {ToolRouterConfig} The config for the tool router session
169
+ * @returns {Promise<ToolRouterSession<TToolCollection, TTool, TProvider>>} The tool router session
170
+ *
171
+ * @example
172
+ * ```typescript
173
+ * import { Composio } from '@composio/core';
174
+ *
175
+ * const composio = new Composio();
176
+ * const userId = 'user_123';
177
+ *
178
+ * const session = await composio.create(userId, {
179
+ * manageConnections: true,
180
+ * });
181
+ *
182
+ * console.log(session.sessionId);
183
+ * console.log(session.url);
184
+ * console.log(session.tools());
185
+ * console.log(session.toolkits());
186
+ * ```
187
+ */
188
+ async create(
189
+ userId: string,
190
+ config?: ToolRouterCreateSessionConfig
191
+ ): Promise<ToolRouterSession<TToolCollection, TTool, TProvider>> {
192
+ const routerConfig = ToolRouterCreateSessionConfigSchema.parse(config ?? {});
193
+
194
+ const manageConnectedAccounts =
195
+ typeof routerConfig.manageConnections === 'boolean'
196
+ ? routerConfig.manageConnections
197
+ : (routerConfig.manageConnections?.enabled ?? true);
198
+
199
+ const toolkits = Array.isArray(routerConfig.toolkits)
200
+ ? { enabled: routerConfig.toolkits }
201
+ : routerConfig.toolkits;
202
+
203
+ // const tools = transformToolRouterToolsParams(routerConfig.tools);
204
+
205
+ const inferScopesFromTools =
206
+ typeof routerConfig.manageConnections === 'object'
207
+ ? routerConfig.manageConnections.inferScopesFromTools
208
+ : false;
209
+
210
+ const payload: SessionCreateParams = {
211
+ user_id: userId,
212
+ toolkits,
213
+ auth_configs: routerConfig.authConfigs,
214
+ connected_accounts: routerConfig.connectedAccounts,
215
+ // tools: tools,
216
+ connections: {
217
+ infer_scopes_from_tools: inferScopesFromTools,
218
+ auto_manage_connections: manageConnectedAccounts,
219
+ callback_uri:
220
+ typeof routerConfig.manageConnections === 'object'
221
+ ? routerConfig.manageConnections.callbackUri
222
+ : undefined,
223
+ },
224
+ execution: routerConfig.execution
225
+ ? {
226
+ proxy_execution_enabled: routerConfig.execution?.proxyExecutionEnabled,
227
+ timeout_seconds: routerConfig.execution?.timeoutSeconds,
228
+ }
229
+ : undefined,
230
+ };
231
+ const session = await this.client.toolRouter.session.create(payload);
232
+
233
+ return {
234
+ sessionId: session.session_id,
235
+ mcp: {
236
+ type: session.mcp.type,
237
+ url: session.mcp.url,
238
+ },
239
+ tools: this.createToolsFn(userId, session.tool_router_tools),
240
+ authorize: this.createAuthorizeFn(session.session_id),
241
+ toolkits: this.createToolkitsFn(session.session_id),
242
+ };
243
+ }
244
+
245
+ /**
246
+ * Use an existing session
247
+ * @param id {string} The id of the session to use
248
+ * @returns {Promise<ToolRouterSession<TToolCollection, TTool, TProvider>>} The tool router session
249
+ *
250
+ * @example
251
+ * ```typescript
252
+ * import { Composio } from '@composio/core';
253
+ *
254
+ * const composio = new Composio();
255
+ * const id = 'session_123';
256
+ * const session = await composio.toolRouter.use(id);
257
+ *```
258
+ */
259
+ async use(id: string): Promise<ToolRouterSession<TToolCollection, TTool, TProvider>> {
260
+ const session = await this.client.toolRouter.session.retrieve(id);
261
+ return {
262
+ sessionId: session.session_id,
263
+ mcp: {
264
+ type: session.mcp.type,
265
+ url: session.mcp.url,
266
+ },
267
+ tools: this.createToolsFn(session.config.user_id, session.tool_router_tools),
268
+ authorize: this.createAuthorizeFn(session.session_id),
269
+ toolkits: this.createToolkitsFn(session.session_id),
270
+ };
271
+ }
272
+}
ts/packages/core/src/models/Tools.ts
+46
-6
@@ -65,17 +65,17 @@ export class Tools<
65
private autoUploadDownloadFiles: boolean;
66
private toolkitVersions: ToolkitVersionParam;
67
68
- constructor(client: ComposioClient, provider: TProvider, config?: ComposioConfig<TProvider>) {
68
+ constructor(client: ComposioClient, config?: ComposioConfig<TProvider>) {
69
if (!client) {
70
throw new Error('ComposioClient is required');
71
}
72
- if (!provider) {
72
+ if (!config?.provider) {
73
throw new ComposioProviderNotDefinedError('Provider not passed into Tools instance');
74
}
75
76
this.client = client;
77
this.customTools = new CustomTools(client);
78
- this.provider = provider;
78
+ this.provider = config.provider;
79
this.autoUploadDownloadFiles = config?.autoUploadDownloadFiles ?? true;
80
this.toolkitVersions = config?.toolkitVersions ?? 'latest';
81
// Bind the execute method to ensure correct 'this' context
@@ -568,20 +568,27 @@ export class Tools<
568
): Promise<TToolCollection> {
569
// Handle the two-parameter overloads
570
const options = arg3 as ProviderOptions<TProvider>;
571
- const executeToolFn = this.createExecuteToolFn(userId, options as ExecuteToolModifiers);
571
572
// if the second argument is a string, get a single tool
573
if (typeof arg2 === 'string') {
574
const tool = await this.getRawComposioToolBySlug(arg2, {
575
modifySchema: options?.modifySchema as TransformToolSchemaModifier,
576
});
578
- return this.provider.wrapTools([tool], executeToolFn) as TToolCollection;
577
+ return this.wrapToolsForProvider(
578
+ userId,
579
+ [tool],
580
+ options as ExecuteToolModifiers
581
+ ) as TToolCollection;
582
} else {
583
// if the second argument is an object, get a list of tools
584
const tools = await this.getRawComposioTools(arg2, {
585
modifySchema: options?.modifySchema as TransformToolSchemaModifier,
586
});
584
- return this.provider.wrapTools(tools, executeToolFn) as TToolCollection;
587
+ return this.wrapToolsForProvider(
588
+ userId,
589
+ tools,
590
+ options as ExecuteToolModifiers
591
+ ) as TToolCollection;
592
}
593
}
594
/**
@@ -601,6 +608,24 @@ export class Tools<
608
};
609
}
610
611
+ /**
612
+ * @inte
613
+ * Utility to wrap a given set of tools in the format expected by the provider
614
+ *
615
+ * @param userId - The user id to get the tools for
616
+ * @param tools - The tools to wrap
617
+ * @param modifiers - The modifiers to be applied to the tools
618
+ * @returns The wrapped tools
619
+ */
620
+ wrapToolsForProvider<T extends TProvider>(
621
+ userId: string,
622
+ tools: Tool[],
623
+ modifiers?: ExecuteToolModifiers
624
+ ): ReturnType<T['wrapTools']> {
625
+ const executeToolFn = this.createExecuteToolFn(userId, modifiers);
626
+ return this.provider.wrapTools(tools, executeToolFn) as ReturnType<T['wrapTools']>;
627
+ }
628
+
629
/**
630
* @internal
631
* @description
@@ -650,6 +675,13 @@ export class Tools<
675
allow_tracing: body.allowTracing,
676
connected_account_id: body.connectedAccountId,
677
custom_auth_params: body.customAuthParams,
678
+ /**
679
+ * @deprecated: customConnectionData
680
+ * @description
681
+ * This parameter is deprecated and will be removed in the future.
682
+ * Please use custom_connection_data instead.
683
+ *
684
+ */
685
custom_connection_data: body.customConnectionData,
686
arguments: body.arguments,
687
user_id: body.userId,
@@ -880,6 +912,14 @@ export class Tools<
912
body: toolProxyParams.data.body,
913
connected_account_id: toolProxyParams.data.connectedAccountId,
914
parameters: parameters,
915
+ /**
916
+ * @deprecated: customConnectionData
917
+ * @description
918
+ * This parameter is deprecated and will be removed in the future.
919
+ * Please use custom_auth_params instead.
920
+ *
921
+ */
922
+ // @ts-ignore
923
custom_connection_data: toolProxyParams.data.customConnectionData,
924
});
925
}
ts/packages/core/src/types/authConfigs.types.ts
+4
@@ -18,6 +18,8 @@ export const AuthSchemeTypes = {
18
BASIC_WITH_JWT: 'BASIC_WITH_JWT',
19
CALCOM_AUTH: 'CALCOM_AUTH',
20
SERVICE_ACCOUNT: 'SERVICE_ACCOUNT',
21
+ SAML: 'SAML',
22
+ DCR_OAUTH: 'DCR_OAUTH',
23
} as const;
24
export type AuthSchemeType = (typeof AuthSchemeTypes)[keyof typeof AuthSchemeTypes];
25
@@ -42,6 +44,8 @@ export const AuthSchemeEnum = z.enum([
44
'BASIC_WITH_JWT',
45
'CALCOM_AUTH',
46
'SERVICE_ACCOUNT',
47
+ 'SAML',
48
+ 'DCR_OAUTH',
49
]);
50
export const CreateCustomAuthConfigParamsSchema = z.object({
51
type: z.literal('use_custom_auth'),
ts/packages/core/src/types/connectedAccountAuthStates.types.ts
+312
-77
@@ -67,6 +67,15 @@ const BaseSchemeRaw = z
67
generic_api_key: z.string().optional(),
68
// for bearer token
69
bearer_token: z.string().optional(),
70
+ // for basic auth encoded
71
+ basic_encoded: z.string().optional(),
72
+ // for dcr oauth
73
+ long_redirect_url: z.boolean().optional(),
74
+ state_prefix: z.string().optional(),
75
+ registration_access_token: z.string().optional(),
76
+ registration_client_uri: z.string().optional(),
77
+ // for google service account initiated status
78
+ composio_link_redirect_url: z.string().optional(),
79
})
80
.catchall(z.unknown());
81
@@ -89,7 +98,7 @@ export const Oauth2InitiatedConnectionDataSchema = Oauth2InitiatingConnectionDat
98
99
export const Oauth2ActiveConnectionDataSchema = Oauth2InitiatingConnectionDataSchema.extend({
100
status: z.literal(ConnectionStatuses.ACTIVE),
92
- access_token: z.string().optional(),
101
+ access_token: z.string(),
102
id_token: z.string().optional(),
103
token_type: z.string().optional(),
104
refresh_token: z.string().nullish(),
@@ -119,6 +128,20 @@ export const Oauth2ExpiredConnectionDataSchema = Oauth2InitiatingConnectionDataS
128
129
export const Oauth2InactiveConnectionDataSchema = Oauth2InitiatingConnectionDataSchema.extend({
130
status: z.literal(ConnectionStatuses.INACTIVE),
131
+ access_token: z.string(),
132
+ id_token: z.string().optional(),
133
+ token_type: z.string().optional(),
134
+ refresh_token: z.string().nullish(),
135
+ expires_in: z.union([z.string(), z.number(), z.null()]).optional(),
136
+ scope: z.union([z.string(), z.array(z.string()), z.null()]).optional(),
137
+ webhook_signature: z.string().optional(),
138
+ authed_user: z
139
+ .object({
140
+ access_token: z.string().optional(),
141
+ scope: z.string().optional(),
142
+ })
143
+ .optional()
144
+ .describe('for slack user scopes'),
145
}).catchall(z.unknown());
146
147
export const Oauth2ConnectionDataSchema = z.discriminatedUnion('status', [
@@ -132,9 +155,6 @@ export const Oauth2ConnectionDataSchema = z.discriminatedUnion('status', [
155
156
export const CustomOauth2ConnectionDataSchema = Oauth2ActiveConnectionDataSchema.omit({
157
status: true,
135
- access_token: true,
136
-}).extend({
137
- access_token: z.string(),
158
});
159
160
export type Oauth2InitiatingConnectionData = z.infer<typeof Oauth2InitiatingConnectionDataSchema>;
@@ -153,17 +173,19 @@ export const Oauth1InitiatingConnectionDataSchema = BaseSchemeRaw.extend({
173
174
export const Oauth1InitiatedConnectionDataSchema = Oauth1InitiatingConnectionDataSchema.extend({
175
status: z.literal(ConnectionStatuses.INITIATED),
156
- oauth_token: z.string().optional(),
157
- authUri: z.string().optional(),
158
- oauth_token_secret: z.string().optional(),
159
- redirectUrl: z.string().optional(),
176
+ authUri: z.string(),
177
+ oauth_token: z.string(),
178
+ oauth_token_secret: z.string(),
179
+ redirectUrl: z.string(),
180
callbackUrl: z.string().optional(),
181
}).catchall(z.unknown());
182
183
export const Oauth1ActiveConnectionDataSchema = Oauth1InitiatingConnectionDataSchema.extend({
184
status: z.literal(ConnectionStatuses.ACTIVE),
165
- oauth_token: z.string().optional(),
185
+ oauth_token: z.string(),
186
+ oauth_token_secret: z.string(),
187
consumer_key: z.string().optional(),
188
+ oauth_verifier: z.string().optional(),
189
redirectUrl: z.string().optional(),
190
callback_url: z.string().optional(),
191
}).catchall(z.unknown());
@@ -181,6 +203,12 @@ export const Oauth1ExpiredConnectionDataSchema = Oauth1InitiatingConnectionDataS
203
204
export const Oauth1InactiveConnectionDataSchema = Oauth1InitiatingConnectionDataSchema.extend({
205
status: z.literal(ConnectionStatuses.INACTIVE),
206
+ oauth_token: z.string(),
207
+ oauth_token_secret: z.string(),
208
+ consumer_key: z.string().optional(),
209
+ oauth_verifier: z.string().optional(),
210
+ redirectUrl: z.string().optional(),
211
+ callback_url: z.string().optional(),
212
}).catchall(z.unknown());
213
214
export const Oauth1ConnectionDataSchema = z.discriminatedUnion('status', [
@@ -194,10 +222,6 @@ export const Oauth1ConnectionDataSchema = z.discriminatedUnion('status', [
222
223
export const CustomOauth1ConnectionDataSchema = Oauth1ActiveConnectionDataSchema.omit({
224
status: true,
197
- oauth_token: true,
198
-}).extend({
199
- oauth_token_secret: z.string(),
200
- oauth_token: z.string(),
225
});
226
227
export type Oauth1InitiatingConnectionData = z.infer<typeof Oauth1InitiatingConnectionDataSchema>;
@@ -239,138 +263,186 @@ export const BillcomAuthConnectionDataSchema = z.discriminatedUnion('status', [
263
]);
264
265
// BASIC
242
-const BasicInitiatingSchema = BaseSchemeRaw.extend({
243
- status: z.literal(ConnectionStatuses.ACTIVE),
244
- username: z.string(),
245
- password: z.string(),
266
+const BasicBaseSchema = BaseSchemeRaw.extend({
267
+ status: z.literal(ConnectionStatuses.INITIALIZING),
268
}).catchall(z.unknown());
269
const BasicConnectionDataSchema = z.discriminatedUnion('status', [
248
- BasicInitiatingSchema,
249
- BasicInitiatingSchema.extend({
270
+ BasicBaseSchema,
271
+ BasicBaseSchema.extend({
272
+ status: z.literal(ConnectionStatuses.INITIATED),
273
+ }).catchall(z.unknown()),
274
+ BasicBaseSchema.extend({
275
+ status: z.literal(ConnectionStatuses.ACTIVE),
276
+ username: z.string(),
277
+ password: z.string(),
278
+ }).catchall(z.unknown()),
279
+ BasicBaseSchema.extend({
280
status: z.literal(ConnectionStatuses.INACTIVE),
281
+ username: z.string(),
282
+ password: z.string(),
283
}).catchall(z.unknown()),
252
- BasicInitiatingSchema.extend({
284
+ BasicBaseSchema.extend({
285
status: z.literal(ConnectionStatuses.FAILED),
286
+ username: z.string(),
287
+ password: z.string(),
288
error: z.string().optional(),
289
error_description: z.string().optional(),
290
}).catchall(z.unknown()),
257
- BasicInitiatingSchema.extend({
291
+ BasicBaseSchema.extend({
292
status: z.literal(ConnectionStatuses.EXPIRED),
293
+ username: z.string(),
294
+ password: z.string(),
295
expired_at: z.string().optional(),
296
}).catchall(z.unknown()),
297
]);
262
-const CustomBasicConnectionDataSchema = BasicInitiatingSchema.omit({
263
- status: true,
264
-});
298
+const CustomBasicConnectionDataSchema = BaseSchemeRaw.extend({
299
+ username: z.string(),
300
+ password: z.string(),
301
+}).catchall(z.unknown());
302
303
// API_KEY
267
-const ApiKeyInitiatingSchema = BaseSchemeRaw.extend({
268
- status: z.literal(ConnectionStatuses.ACTIVE),
269
- api_key: z.string().optional(),
270
- generic_api_key: z.string().optional(),
304
+const ApiKeyBaseSchema = BaseSchemeRaw.extend({
305
+ status: z.literal(ConnectionStatuses.INITIALIZING),
306
}).catchall(z.unknown());
307
const ApiKeyConnectionDataSchema = z.discriminatedUnion('status', [
273
- ApiKeyInitiatingSchema,
274
- ApiKeyInitiatingSchema.extend({
308
+ ApiKeyBaseSchema,
309
+ ApiKeyBaseSchema.extend({
310
+ status: z.literal(ConnectionStatuses.INITIATED),
311
+ }).catchall(z.unknown()),
312
+ ApiKeyBaseSchema.extend({
313
+ status: z.literal(ConnectionStatuses.ACTIVE),
314
+ api_key: z.string().optional(),
315
+ generic_api_key: z.string().optional(),
316
+ }).catchall(z.unknown()),
317
+ ApiKeyBaseSchema.extend({
318
status: z.literal(ConnectionStatuses.INACTIVE),
319
+ api_key: z.string().optional(),
320
+ generic_api_key: z.string().optional(),
321
}).catchall(z.unknown()),
277
- ApiKeyInitiatingSchema.extend({
322
+ ApiKeyBaseSchema.extend({
323
status: z.literal(ConnectionStatuses.FAILED),
324
error: z.string().optional(),
325
error_description: z.string().optional(),
326
}).catchall(z.unknown()),
282
- ApiKeyInitiatingSchema.extend({
327
+ ApiKeyBaseSchema.extend({
328
status: z.literal(ConnectionStatuses.EXPIRED),
329
expired_at: z.string().optional(),
330
}).catchall(z.unknown()),
331
]);
287
-const CustomApiKeyConnectionDataSchema = ApiKeyInitiatingSchema.omit({
288
- status: true,
289
-});
332
+const CustomApiKeyConnectionDataSchema = BaseSchemeRaw.extend({
333
+ api_key: z.string().optional(),
334
+ generic_api_key: z.string().optional(),
335
+}).catchall(z.unknown());
336
337
// BEARER_TOKEN
292
-const BearerTokenInitiatingSchema = BaseSchemeRaw.extend({
293
- status: z.literal(ConnectionStatuses.ACTIVE),
294
- token: z.string(),
338
+const BearerTokenBaseSchema = BaseSchemeRaw.extend({
339
+ status: z.literal(ConnectionStatuses.INITIALIZING),
340
}).catchall(z.unknown());
341
const BearerTokenConnectionDataSchema = z.discriminatedUnion('status', [
297
- BearerTokenInitiatingSchema,
298
- BearerTokenInitiatingSchema.extend({
342
+ BearerTokenBaseSchema,
343
+ BearerTokenBaseSchema.extend({
344
+ status: z.literal(ConnectionStatuses.INITIATED),
345
+ }).catchall(z.unknown()),
346
+ BearerTokenBaseSchema.extend({
347
+ status: z.literal(ConnectionStatuses.ACTIVE),
348
+ token: z.string(),
349
+ }).catchall(z.unknown()),
350
+ BearerTokenBaseSchema.extend({
351
status: z.literal(ConnectionStatuses.INACTIVE),
352
+ token: z.string(),
353
}).catchall(z.unknown()),
301
- BearerTokenInitiatingSchema.extend({
354
+ BearerTokenBaseSchema.extend({
355
status: z.literal(ConnectionStatuses.FAILED),
356
error: z.string().optional(),
357
error_description: z.string().optional(),
358
}).catchall(z.unknown()),
306
- BearerTokenInitiatingSchema.extend({
359
+ BearerTokenBaseSchema.extend({
360
status: z.literal(ConnectionStatuses.EXPIRED),
361
expired_at: z.string().optional(),
362
}).catchall(z.unknown()),
363
]);
311
-const CustomBearerTokenConnectionDataSchema = BearerTokenInitiatingSchema.omit({
312
- status: true,
313
-});
364
+const CustomBearerTokenConnectionDataSchema = BaseSchemeRaw.extend({
365
+ token: z.string(),
366
+}).catchall(z.unknown());
367
368
// GOOGLE_SERVICE_ACCOUNT
316
-const GoogleServiceAccountInitiatingSchema = BaseSchemeRaw.extend({
317
- status: z.literal(ConnectionStatuses.ACTIVE),
318
- credentials_json: z.string(),
369
+const GoogleServiceAccountBaseSchema = BaseSchemeRaw.extend({
370
+ status: z.literal(ConnectionStatuses.INITIALIZING),
371
}).catchall(z.unknown());
372
const GoogleServiceAccountConnectionDataSchema = z.discriminatedUnion('status', [
321
- GoogleServiceAccountInitiatingSchema,
322
- GoogleServiceAccountInitiatingSchema.extend({
373
+ GoogleServiceAccountBaseSchema,
374
+ GoogleServiceAccountBaseSchema.extend({
375
+ status: z.literal(ConnectionStatuses.INITIATED),
376
+ redirectUrl: z.string(),
377
+ composio_link_redirect_url: z.string().optional(),
378
+ }).catchall(z.unknown()),
379
+ GoogleServiceAccountBaseSchema.extend({
380
+ status: z.literal(ConnectionStatuses.ACTIVE),
381
+ credentials_json: z.string(),
382
+ }).catchall(z.unknown()),
383
+ GoogleServiceAccountBaseSchema.extend({
384
status: z.literal(ConnectionStatuses.INACTIVE),
385
+ credentials_json: z.string(),
386
}).catchall(z.unknown()),
325
- GoogleServiceAccountInitiatingSchema.extend({
387
+ GoogleServiceAccountBaseSchema.extend({
388
status: z.literal(ConnectionStatuses.FAILED),
389
error: z.string().optional(),
390
error_description: z.string().optional(),
391
}).catchall(z.unknown()),
330
- GoogleServiceAccountInitiatingSchema.extend({
392
+ GoogleServiceAccountBaseSchema.extend({
393
status: z.literal(ConnectionStatuses.EXPIRED),
394
expired_at: z.string().optional(),
395
}).catchall(z.unknown()),
396
]);
397
398
// NO_AUTH
337
-const NoAuthInitiatingSchema = BaseSchemeRaw.extend({
338
- status: z.literal(ConnectionStatuses.ACTIVE),
399
+const NoAuthBaseSchema = BaseSchemeRaw.extend({
400
+ status: z.literal(ConnectionStatuses.INITIALIZING),
401
}).catchall(z.unknown());
402
const NoAuthConnectionDataSchema = z.discriminatedUnion('status', [
341
- NoAuthInitiatingSchema,
342
- NoAuthInitiatingSchema.extend({
403
+ NoAuthBaseSchema,
404
+ NoAuthBaseSchema.extend({
405
+ status: z.literal(ConnectionStatuses.INITIATED),
406
+ }).catchall(z.unknown()),
407
+ NoAuthBaseSchema.extend({
408
+ status: z.literal(ConnectionStatuses.ACTIVE),
409
+ }).catchall(z.unknown()),
410
+ NoAuthBaseSchema.extend({
411
status: z.literal(ConnectionStatuses.INACTIVE),
412
}).catchall(z.unknown()),
345
- NoAuthInitiatingSchema.extend({
413
+ NoAuthBaseSchema.extend({
414
status: z.literal(ConnectionStatuses.FAILED),
415
error: z.string().optional(),
416
error_description: z.string().optional(),
417
}).catchall(z.unknown()),
350
- NoAuthInitiatingSchema.extend({
418
+ NoAuthBaseSchema.extend({
419
status: z.literal(ConnectionStatuses.EXPIRED),
420
expired_at: z.string().optional(),
421
}).catchall(z.unknown()),
422
]);
355
-const CustomNoAuthConnectionDataSchema = NoAuthInitiatingSchema.omit({
356
- status: true,
357
-});
423
+const CustomNoAuthConnectionDataSchema = BaseSchemeRaw.catchall(z.unknown());
424
425
// CALCOM_AUTH
360
-const CalcomAuthInitiatingSchema = BaseSchemeRaw.extend({
361
- status: z.literal(ConnectionStatuses.ACTIVE),
426
+const CalcomAuthBaseSchema = BaseSchemeRaw.extend({
427
+ status: z.literal(ConnectionStatuses.INITIALIZING),
428
}).catchall(z.unknown());
429
const CalcomAuthConnectionDataSchema = z.discriminatedUnion('status', [
364
- CalcomAuthInitiatingSchema,
365
- CalcomAuthInitiatingSchema.extend({
430
+ CalcomAuthBaseSchema,
431
+ CalcomAuthBaseSchema.extend({
432
+ status: z.literal(ConnectionStatuses.INITIATED),
433
+ }).catchall(z.unknown()),
434
+ CalcomAuthBaseSchema.extend({
435
+ status: z.literal(ConnectionStatuses.ACTIVE),
436
+ }).catchall(z.unknown()),
437
+ CalcomAuthBaseSchema.extend({
438
status: z.literal(ConnectionStatuses.INACTIVE),
439
}).catchall(z.unknown()),
368
- CalcomAuthInitiatingSchema.extend({
440
+ CalcomAuthBaseSchema.extend({
441
status: z.literal(ConnectionStatuses.FAILED),
442
error: z.string().optional(),
443
error_description: z.string().optional(),
444
}).catchall(z.unknown()),
373
- CalcomAuthInitiatingSchema.extend({
445
+ CalcomAuthBaseSchema.extend({
446
status: z.literal(ConnectionStatuses.EXPIRED),
447
expired_at: z.string().optional(),
448
}).catchall(z.unknown()),
@@ -394,29 +466,161 @@ const CalcomAuthConnectionDataSchema = z.discriminatedUnion('status', [
466
// ]);
467
468
// BASIC_WITH_JWT
397
-const BasicWithJwtInitiatingSchema = BaseSchemeRaw.extend({
398
- status: z.literal(ConnectionStatuses.ACTIVE),
469
+const BasicWithJwtBaseSchema = BaseSchemeRaw.extend({
470
+ status: z.literal(ConnectionStatuses.INITIALIZING),
471
+}).catchall(z.unknown());
472
+const BasicWithJwtConnectionDataSchema = z.discriminatedUnion('status', [
473
+ BasicWithJwtBaseSchema,
474
+ BasicWithJwtBaseSchema.extend({
475
+ status: z.literal(ConnectionStatuses.INITIATED),
476
+ }).catchall(z.unknown()),
477
+ BasicWithJwtBaseSchema.extend({
478
+ status: z.literal(ConnectionStatuses.ACTIVE),
479
+ username: z.string(),
480
+ password: z.string(),
481
+ }).catchall(z.unknown()),
482
+ BasicWithJwtBaseSchema.extend({
483
+ status: z.literal(ConnectionStatuses.INACTIVE),
484
+ username: z.string(),
485
+ password: z.string(),
486
+ }).catchall(z.unknown()),
487
+ BasicWithJwtBaseSchema.extend({
488
+ status: z.literal(ConnectionStatuses.FAILED),
489
+ username: z.string(),
490
+ password: z.string(),
491
+ error: z.string().optional(),
492
+ error_description: z.string().optional(),
493
+ }).catchall(z.unknown()),
494
+ BasicWithJwtBaseSchema.extend({
495
+ status: z.literal(ConnectionStatuses.EXPIRED),
496
+ username: z.string(),
497
+ password: z.string(),
498
+ expired_at: z.string().optional(),
499
+ }).catchall(z.unknown()),
500
+]);
501
+const CustomBasicWithJwtConnectionDataSchema = BaseSchemeRaw.extend({
502
username: z.string(),
503
password: z.string(),
504
}).catchall(z.unknown());
402
-const BasicWithJwtConnectionDataSchema = z.discriminatedUnion('status', [
403
- BasicWithJwtInitiatingSchema,
404
- BasicWithJwtInitiatingSchema.extend({
505
+
506
+// SERVICE_ACCOUNT
507
+const ServiceAccountInitiatingSchema = BaseSchemeRaw.extend({
508
+ status: z.literal(ConnectionStatuses.INITIALIZING),
509
+}).catchall(z.unknown());
510
+const ServiceAccountConnectionDataSchema = z.discriminatedUnion('status', [
511
+ ServiceAccountInitiatingSchema,
512
+ ServiceAccountInitiatingSchema.extend({
513
+ status: z.literal(ConnectionStatuses.INITIATED),
514
+ }).catchall(z.unknown()),
515
+ ServiceAccountInitiatingSchema.extend({
516
+ status: z.literal(ConnectionStatuses.ACTIVE),
517
+ application_id: z.string(),
518
+ installation_id: z.string(),
519
+ private_key: z.string(),
520
+ }).catchall(z.unknown()),
521
+ ServiceAccountInitiatingSchema.extend({
522
+ status: z.literal(ConnectionStatuses.INACTIVE),
523
+ application_id: z.string(),
524
+ installation_id: z.string(),
525
+ private_key: z.string(),
526
+ }).catchall(z.unknown()),
527
+]);
528
+const CustomServiceAccountConnectionDataSchema = z
529
+ .object({
530
+ application_id: z.string(),
531
+ installation_id: z.string(),
532
+ private_key: z.string(),
533
+ })
534
+ .merge(BaseSchemeRaw)
535
+ .catchall(z.unknown());
536
+
537
+// SAML
538
+const SamlInitiatingSchema = BaseSchemeRaw.extend({
539
+ status: z.literal(ConnectionStatuses.INITIALIZING),
540
+}).catchall(z.unknown());
541
+const SamlConnectionDataSchema = z.discriminatedUnion('status', [
542
+ SamlInitiatingSchema,
543
+ SamlInitiatingSchema.extend({
544
+ status: z.literal(ConnectionStatuses.INITIATED),
545
+ }).catchall(z.unknown()),
546
+ SamlInitiatingSchema.extend({
547
+ status: z.literal(ConnectionStatuses.ACTIVE),
548
+ }).catchall(z.unknown()),
549
+ SamlInitiatingSchema.extend({
550
status: z.literal(ConnectionStatuses.INACTIVE),
551
}).catchall(z.unknown()),
407
- BasicWithJwtInitiatingSchema.extend({
552
+ SamlInitiatingSchema.extend({
553
status: z.literal(ConnectionStatuses.FAILED),
554
error: z.string().optional(),
555
error_description: z.string().optional(),
556
}).catchall(z.unknown()),
412
- BasicWithJwtInitiatingSchema.extend({
557
+ SamlInitiatingSchema.extend({
558
status: z.literal(ConnectionStatuses.EXPIRED),
559
expired_at: z.string().optional(),
560
}).catchall(z.unknown()),
561
]);
417
-const CustomBasicWithJwtConnectionDataSchema = BasicWithJwtInitiatingSchema.omit({
418
- status: true,
419
-});
562
+const CustomSamlConnectionDataSchema = BaseSchemeRaw.catchall(z.unknown());
563
+
564
+// DCR_OAUTH
565
+const DcrOauthInitiatingSchema = BaseSchemeRaw.extend({
566
+ status: z.literal(ConnectionStatuses.INITIALIZING),
567
+}).catchall(z.unknown());
568
+const DcrOauthConnectionDataSchema = z.discriminatedUnion('status', [
569
+ DcrOauthInitiatingSchema,
570
+ DcrOauthInitiatingSchema.extend({
571
+ status: z.literal(ConnectionStatuses.INITIATED),
572
+ client_id: z.string(),
573
+ redirectUrl: z.string(),
574
+ client_secret: z.string().optional(),
575
+ callback_url: z.string().optional(),
576
+ client_id_issued_at: z.number().optional(),
577
+ client_secret_expires_at: z.number().optional(),
578
+ code_verifier: z.string().optional(),
579
+ finalRedirectUri: z.string().optional(),
580
+ }).catchall(z.unknown()),
581
+ DcrOauthInitiatingSchema.extend({
582
+ status: z.literal(ConnectionStatuses.ACTIVE),
583
+ access_token: z.string(),
584
+ client_id: z.string(),
585
+ token_type: z.string().optional(),
586
+ refresh_token: z.string().nullish(),
587
+ expires_in: z.union([z.string(), z.number(), z.null()]).optional(),
588
+ scope: z.union([z.string(), z.array(z.string()), z.null()]).optional(),
589
+ id_token: z.string().optional(),
590
+ client_secret: z.string().optional(),
591
+ client_id_issued_at: z.number().optional(),
592
+ client_secret_expires_at: z.number().optional(),
593
+ }).catchall(z.unknown()),
594
+ DcrOauthInitiatingSchema.extend({
595
+ status: z.literal(ConnectionStatuses.INACTIVE),
596
+ access_token: z.string(),
597
+ client_id: z.string(),
598
+ token_type: z.string().optional(),
599
+ refresh_token: z.string().nullish(),
600
+ expires_in: z.union([z.string(), z.number(), z.null()]).optional(),
601
+ scope: z.union([z.string(), z.array(z.string()), z.null()]).optional(),
602
+ id_token: z.string().optional(),
603
+ client_secret: z.string().optional(),
604
+ client_id_issued_at: z.number().optional(),
605
+ client_secret_expires_at: z.number().optional(),
606
+ }).catchall(z.unknown()),
607
+ DcrOauthInitiatingSchema.extend({
608
+ status: z.literal(ConnectionStatuses.FAILED),
609
+ error: z.string().optional(),
610
+ error_description: z.string().optional(),
611
+ }).catchall(z.unknown()),
612
+ DcrOauthInitiatingSchema.extend({
613
+ status: z.literal(ConnectionStatuses.EXPIRED),
614
+ expired_at: z.string().optional(),
615
+ }).catchall(z.unknown()),
616
+]);
617
+const CustomDcrOauthConnectionDataSchema = z
618
+ .object({
619
+ access_token: z.string(),
620
+ client_id: z.string(),
621
+ })
622
+ .merge(BaseSchemeRaw)
623
+ .catchall(z.unknown());
624
625
export const ConnectionDataSchema = z.discriminatedUnion('authScheme', [
626
z.object({
@@ -496,6 +700,27 @@ export const ConnectionDataSchema = z.discriminatedUnion('authScheme', [
700
*/
701
val: BasicWithJwtConnectionDataSchema,
702
}),
703
+ z.object({
704
+ authScheme: z.literal(AuthSchemeTypes.SERVICE_ACCOUNT),
705
+ /**
706
+ * the main connection data discriminated by auth scheme
707
+ */
708
+ val: ServiceAccountConnectionDataSchema,
709
+ }),
710
+ z.object({
711
+ authScheme: z.literal(AuthSchemeTypes.SAML),
712
+ /**
713
+ * the main connection data discriminated by auth scheme
714
+ */
715
+ val: SamlConnectionDataSchema,
716
+ }),
717
+ z.object({
718
+ authScheme: z.literal(AuthSchemeTypes.DCR_OAUTH),
719
+ /**
720
+ * the main connection data discriminated by auth scheme
721
+ */
722
+ val: DcrOauthConnectionDataSchema,
723
+ }),
724
]);
725
726
export type ConnectionData = z.infer<typeof ConnectionDataSchema>;
@@ -506,6 +731,11 @@ export const CustomConnectionDataSchema = z.discriminatedUnion('authScheme', [
731
toolkitSlug: z.string(),
732
val: CustomOauth2ConnectionDataSchema,
733
}),
734
+ z.object({
735
+ authScheme: z.literal(AuthSchemeTypes.DCR_OAUTH),
736
+ toolkitSlug: z.string(),
737
+ val: CustomDcrOauthConnectionDataSchema,
738
+ }),
739
z.object({
740
authScheme: z.literal(AuthSchemeTypes.API_KEY),
741
toolkitSlug: z.string(),
@@ -536,6 +766,11 @@ export const CustomConnectionDataSchema = z.discriminatedUnion('authScheme', [
766
toolkitSlug: z.string(),
767
val: CustomNoAuthConnectionDataSchema,
768
}),
769
+ z.object({
770
+ authScheme: z.literal(AuthSchemeTypes.SERVICE_ACCOUNT),
771
+ toolkitSlug: z.string(),
772
+ val: CustomServiceAccountConnectionDataSchema,
773
+ }),
774
]);
775
776
export type CustomConnectionData = z.infer<typeof CustomConnectionDataSchema>;
ts/packages/core/src/types/connectedAccounts.types.ts
+30
-3
@@ -34,7 +34,15 @@ export const CreateConnectedAccountParamsSchema = z.object({
34
userId: z.string().optional(),
35
}),
36
});
37
-export const DefaultCreateConnectedAccountParamsSchema = z.object({
37
+export const DefaultCreateConnectedAccountParamsSchema: z.ZodType<{
38
+ auth_config: { id: string };
39
+ connection: {
40
+ state?: z.infer<typeof ConnectionDataSchema>;
41
+ data?: Record<string, unknown>;
42
+ callback_url?: string;
43
+ user_id?: string;
44
+ };
45
+}> = z.object({
46
auth_config: z.object({
47
id: z.string(),
48
}),
@@ -46,7 +54,11 @@ export const DefaultCreateConnectedAccountParamsSchema = z.object({
54
}),
55
});
56
49
-export const CreateConnectedAccountOptionsSchema = z.object({
57
+export const CreateConnectedAccountOptionsSchema: z.ZodType<{
58
+ allowMultiple?: boolean;
59
+ callbackUrl?: string;
60
+ config?: z.infer<typeof ConnectionDataSchema>;
61
+}> = z.object({
62
allowMultiple: z.boolean().optional(),
63
callbackUrl: z.string().optional(),
64
config: ConnectionDataSchema.optional(),
@@ -70,7 +82,22 @@ export const ConnectedAccountAuthConfigSchema = z.object({
82
});
83
export type ConnectedAccountAuthConfig = z.infer<typeof ConnectedAccountAuthConfigSchema>;
84
73
-export const ConnectedAccountRetrieveResponseSchema = z.object({
85
+export const ConnectedAccountRetrieveResponseSchema: z.ZodType<{
86
+ id: string;
87
+ authConfig: z.infer<typeof ConnectedAccountAuthConfigSchema>;
88
+ /** @deprecated use connectedAccount.state instead */
89
+ data?: Record<string, unknown>;
90
+ /** @deprecated use connectedAccount.state instead */
91
+ params?: Record<string, unknown>;
92
+ status: ConnectedAccountStatusEnum;
93
+ statusReason: string | null;
94
+ toolkit: { slug: string };
95
+ state?: z.infer<typeof ConnectionDataSchema>;
96
+ testRequestEndpoint?: string;
97
+ isDisabled: boolean;
98
+ createdAt: string;
99
+ updatedAt: string;
100
+}> = z.object({
101
id: z.string(),
102
authConfig: ConnectedAccountAuthConfigSchema,
103
/**
ts/packages/core/src/types/tool.types.ts
+6
-1
@@ -333,7 +333,12 @@ export const ToolProxyParamsSchema = z.object({
333
)
334
.optional(),
335
connectedAccountId: z.string().optional(),
336
- customConnectionData: CustomConnectionDataSchema.optional(),
336
+ /**
337
+ * @deprecated
338
+ */
339
+ customConnectionData: CustomConnectionDataSchema.describe(
340
+ 'DEPRECATED: This field is deprecated and will be removed in the future.'
341
+ ).optional(),
342
});
343
export type ToolProxyParams = z.infer<typeof ToolProxyParamsSchema>;
344
ts/packages/core/src/types/toolRouter.types.ts
+284
-12
@@ -1,19 +1,291 @@
1
import z from 'zod/v3';
2
+import { BaseComposioProvider } from '../provider/BaseProvider';
3
+import { ExecuteToolModifiers, ProviderOptions } from './modifiers.types';
4
+import { ConnectionRequest } from './connectionRequest.types';
5
3
-export const ToolRouterToolkitConfigSchema = z.object({
4
- toolkit: z.string(),
5
- authConfigId: z.string().optional(),
6
-});
6
+export const MCPServerTypeSchema = z.enum(['HTTP', 'SSE']);
7
+export type MCPServerType = z.infer<typeof MCPServerTypeSchema>;
8
+
9
+// manage connections
10
+export const ToolRouterConfigManageConnectionsSchema = z
11
+ .object({
12
+ enabled: z
13
+ .boolean()
14
+ .default(true)
15
+ .optional()
16
+ .describe(
17
+ 'Whether to use tools to manage connections in the tool router session. Defaults to true, if set to false, you need to manage connections manually'
18
+ ),
19
+ callbackUri: z
20
+ .string()
21
+ .optional()
22
+ .describe('The callback uri to use in the tool router session'),
23
+ inferScopesFromTools: z
24
+ .boolean()
25
+ .default(false)
26
+ .optional()
27
+ .describe(
28
+ 'Whether to infer scopes from tools in the tool router session. Defaults to false, if set to true, tool router will infer scopes from allowed tools'
29
+ ),
30
+ })
31
+ .strict();
32
+
33
+// toolkits
34
+export const ToolRouterToolkitsParamSchema = z
35
+ .array(z.string())
36
+ .describe('List of toolkits to enable in the tool router session');
37
+
38
+export const ToolRouterToolkitsDisabledConfigSchema = z
39
+ .object({
40
+ disabled: ToolRouterToolkitsParamSchema.describe(
41
+ 'List of toolkits to disable in the tool router session'
42
+ ),
43
+ })
44
+ .strict();
45
+export const ToolRouterToolkitsEnabledConfigSchema = z
46
+ .object({
47
+ enabled: ToolRouterToolkitsParamSchema.describe(
48
+ 'List of toolkits to enable in the tool router session'
49
+ ),
50
+ })
51
+ .strict();
52
8
-export const ToolRouterConfigSchema = z.object({
9
- toolkits: z.array(z.union([z.string(), ToolRouterToolkitConfigSchema])).optional(),
10
- manuallyManageConnections: z.boolean().optional(),
53
+export const ToolRouterManageConnectionsConfigSchema = z.object({
54
+ enabled: z
55
+ .boolean()
56
+ .optional()
57
+ .describe(
58
+ 'Whether to use tools to manage connections in the tool router session. Defaults to true, if set to false, you need to manage connections manually'
59
+ )
60
+ .default(true),
61
+ callbackUrl: z.string().optional().describe('The callback url to use in the tool router session'),
62
});
63
13
-export type ToolRouterConfig = z.infer<typeof ToolRouterConfigSchema>;
64
+// Tags
65
+export const ToolRouterTagsParamSchema = z
66
+ .array(z.string())
67
+ .describe('The tags to use in the tool router session');
68
+export const ToolRouterEnabledTagsConfigSchema = z
69
+ .object({
70
+ enabled: ToolRouterTagsParamSchema.describe('The tags to enable in the tool router session'),
71
+ })
72
+ .strict();
73
+export const ToolRouterDisabledTagsConfigSchema = z
74
+ .object({
75
+ disabled: ToolRouterTagsParamSchema.describe('The tags to disable in the tool router session'),
76
+ })
77
+ .strict();
78
+export const ToolRouterConfigTagsSchema = z
79
+ .union([
80
+ ToolRouterTagsParamSchema,
81
+ ToolRouterEnabledTagsConfigSchema,
82
+ ToolRouterDisabledTagsConfigSchema,
83
+ ])
84
+ .describe('The tags to use in the tool router session');
85
+
86
+/**
87
+ * Tools config
88
+ * @example
89
+ * ```typescript
90
+ * {
91
+ * overrides: {
92
+ * gmail: {
93
+ * enabled: ['gmail_search', 'gmail_send'],
94
+ * disabled: ['gmail_delete']
95
+ * }
96
+ * }
97
+ * filters: {
98
+ * tags: {
99
+ * enabled: ['gmail', 'gmail_search', 'gmail_send'],
100
+ * disabled: ['gmail_delete']
101
+ * }
102
+ * }
103
+ * }
104
+ * ```
105
+ *
106
+ * @example
107
+ * ```typescript
108
+ * {
109
+ * overrides: {
110
+ * gmail: ['gmail_search', 'gmail_send']
111
+ * },
112
+ * filters: {
113
+ * tags: ['gmail', 'gmail_search', 'gmail_send']
114
+ * }
115
+ * }
116
+ * ```
117
+ */
118
+export const ToolRouterToolsParamSchema = z
119
+ .array(z.string())
120
+ .describe('The tools to use in the tool router session');
121
+export const ToolRouterConfigToolsSchema = z
122
+ .object({
123
+ overrides: z
124
+ .record(
125
+ z.string(),
126
+ z.union([
127
+ ToolRouterToolsParamSchema,
128
+ z
129
+ .object({
130
+ enabled: ToolRouterToolsParamSchema.describe(
131
+ 'The tools to enable in the tool router session'
132
+ ),
133
+ })
134
+ .strict(),
135
+ z
136
+ .object({
137
+ disabled: ToolRouterToolsParamSchema.describe(
138
+ 'The tools to disable in the tool router session'
139
+ ),
140
+ })
141
+ .strict(),
142
+ ])
143
+ )
144
+ .describe('The tools to override in the tool router session')
145
+ .optional(),
146
+ tags: ToolRouterConfigTagsSchema.optional().describe('The tags to filter the tools by'),
147
+ })
148
+ .strict();
149
+export type ToolRouterConfigTools = z.infer<typeof ToolRouterConfigToolsSchema>;
150
+
151
+export const ToolRouterCreateSessionConfigSchema = z
152
+ .object({
153
+ // tools: ToolRouterConfigToolsSchema.optional().describe(
154
+ // 'The tools to use in the tool router session'
155
+ // ),
156
+ toolkits: z
157
+ .union([
158
+ ToolRouterToolkitsParamSchema,
159
+ ToolRouterToolkitsDisabledConfigSchema,
160
+ ToolRouterToolkitsEnabledConfigSchema,
161
+ ])
162
+ .optional()
163
+ .describe('The toolkits to use in the tool router session'),
164
+
165
+ authConfigs: z
166
+ .record(z.string(), z.string())
167
+ .describe(
168
+ 'The auth configs to use in the tool router session. The key is the toolkit slug, the value is the auth config id.'
169
+ )
170
+ .default({}),
171
+ connectedAccounts: z
172
+ .record(z.string(), z.string())
173
+ .describe(
174
+ 'The connected accounts to use in the tool router session. The key is the toolkit slug, the value is the connected account id.'
175
+ )
176
+ .default({}),
177
+ manageConnections: z
178
+ .union([z.boolean(), ToolRouterConfigManageConnectionsSchema])
179
+ .optional()
180
+ .default(true)
181
+ .describe(
182
+ 'The config for the manage connections in the tool router session. Defaults to true, if set to false, you need to manage connections manually. If set to an object, you can configure the manage connections settings.'
183
+ ),
184
+ execution: z
185
+ .object({
186
+ proxyExecutionEnabled: z
187
+ .boolean()
188
+ .optional()
189
+ .describe('Whether to enable proxy execution in the tool router session'),
190
+ timeoutSeconds: z
191
+ .number()
192
+ .optional()
193
+ .describe('The timeout in seconds for the tool router session'),
194
+ })
195
+ .optional()
196
+ .describe('The execution config for the tool router session'),
197
+ })
198
+ .partial()
199
+ .describe('The config for the tool router session');
200
+/**
201
+ * The config for the tool router session.
202
+ *
203
+ * @param {ToolRouterToolkitsParamSchema | ToolRouterToolkitsDisabledConfigSchema | ToolRouterToolkitsEnabledConfigSchema} toolkits - The toolkits to use in the tool router session
204
+ * @param {ToolRouterToolsParamSchema | ToolRouterEnabledToolsConfigSchema | ToolRouterDisabledToolsConfigSchema} tools - The tools to use in the tool router session
205
+ * @param {ToolRouterConfigManageConnectionsSchema | boolean} manageConnections - Whether to use tools to manage connections in the tool router session @default true
206
+ * @param {Record<string, string>} authConfigs - The auth configs to use in the tool router session
207
+ * @param {Record<string, string>} connectedAccounts - The connected accounts to use in the tool router session
208
+ * @param {ToolRouterConfigManageConnectionsSchema | boolean} manageConnections - The config for the manage connections in the tool router session. Defaults to true, if set to false, you need to manage connections manually. If set to an object, you can configure the manage connections settings.
209
+ * @param {boolean} [manageConnections.enabled] - Whether to use tools to manage connections in the tool router session @default true
210
+ * @param {string} [manageConnections.callbackUri] - The callback uri to use in the tool router session
211
+ * @param {boolean} [manageConnections.inferScopesFromTools] - Whether to infer scopes from tools in the tool router session @default false
212
+ */
213
+export type ToolRouterCreateSessionConfig = z.infer<typeof ToolRouterCreateSessionConfigSchema>;
214
15
-export const ToolRouterSessionSchema = z.object({
16
- sessionId: z.string(),
17
- url: z.string(),
215
+export const ToolkitConnectionStateSchema = z
216
+ .object({
217
+ slug: z.string().describe('The slug of a toolkit'),
218
+ name: z.string().describe('The name of a toolkit'),
219
+ logo: z.string().optional().describe('The logo of a toolkit'),
220
+ isNoAuth: z.boolean().default(false).describe('Whether the toolkit is no auth or not'),
221
+ connection: z.object({
222
+ isActive: z.boolean().describe('Whether the connection is active or not'),
223
+ authConfig: z
224
+ .object({
225
+ id: z.string().describe('The id of the auth config'),
226
+ mode: z.string().describe('The auth scheme used by the auth config'),
227
+ isComposioManaged: z.boolean().describe('Whether the auth config is managed by Composio'),
228
+ })
229
+ .nullish()
230
+ .describe('The auth config of a toolkit'),
231
+ connectedAccount: z
232
+ .object({
233
+ id: z.string().describe('The id of the connected account'),
234
+ status: z.string().describe('The status of the connected account'),
235
+ })
236
+ .optional()
237
+ .describe('The connected account of a toolkit'),
238
+ }),
239
+ })
240
+ .describe('The connection state of a toolkit');
241
+
242
+export const ToolkitConnectionsDetailsSchema = z.object({
243
+ items: z.array(ToolkitConnectionStateSchema),
244
+ nextCursor: z.string().optional(),
245
+ totalPages: z.number(),
246
});
19
-export type ToolRouterSession = z.infer<typeof ToolRouterSessionSchema>;
247
+export type ToolkitConnectionsDetails = z.infer<typeof ToolkitConnectionsDetailsSchema>;
248
+
249
+export type ToolkitConnectionState = z.infer<typeof ToolkitConnectionStateSchema>;
250
+
251
+export type ToolRouterMCPServerConfig = { type: MCPServerType; url: string };
252
+
253
+export type ToolRouterToolsFn<
254
+ TToolCollection,
255
+ TTool,
256
+ TProvider extends BaseComposioProvider<TToolCollection, TTool, unknown>,
257
+> = (modifiers?: ProviderOptions<TProvider>) => Promise<ReturnType<TProvider['wrapTools']>>;
258
+
259
+export type ToolRouterAuthorizeFn = (
260
+ toolkit: string,
261
+ options?: { callbackUrl?: string }
262
+) => Promise<ConnectionRequest>;
263
+
264
+export type ToolRouterToolkitsFn = (options?: {
265
+ toolkits?: Array<string>;
266
+ nextCursor?: string;
267
+ limit?: number;
268
+}) => Promise<ToolkitConnectionsDetails>;
269
+export interface ToolRouterSession<
270
+ TToolCollection,
271
+ TTool,
272
+ TProvider extends BaseComposioProvider<TToolCollection, TTool, unknown>,
273
+> {
274
+ /**
275
+ * The session id of the tool router session.
276
+ */
277
+ sessionId: string;
278
+ /**
279
+ * The MCP server config of the tool router session.
280
+ */
281
+ mcp: ToolRouterMCPServerConfig;
282
+ /**
283
+ * The tools of the tool router session.
284
+ */
285
+ tools: ToolRouterToolsFn<TToolCollection, TTool, TProvider>;
286
+ /**
287
+ * The authorize function of the tool router session.
288
+ */
289
+ authorize: ToolRouterAuthorizeFn;
290
+ toolkits: ToolRouterToolkitsFn;
291
+}
ts/packages/core/src/utils/pagination.ts
new
+73
@@ -0,0 +1,73 @@
1
+/**
2
+ * Pagination parameters that getAllPages will pass to the fetch function.
3
+ */
4
+type PaginationParams = {
5
+ cursor?: string;
6
+ limit: number;
7
+};
8
+
9
+/**
10
+ * Extracts the item type from a paginated response.
11
+ */
12
+type ExtractItemType<T> = T extends { items: Array<infer R> } ? R : never;
13
+
14
+/**
15
+ * Generic, type-safe utility for loading all pages from paginated API responses.
16
+ *
17
+ * This utility automatically handles pagination by:
18
+ * - Invoking the provided method with `limit: 100`
19
+ * - Traversing all pages using the `next_cursor` field
20
+ * - Collecting and returning all items from all pages
21
+ *
22
+ * Types are automatically inferred from the function signature, so you don't need to specify them manually.
23
+ *
24
+ * @param fetchFn - A function that accepts pagination parameters and returns a Promise of a paginated response.
25
+ * Base parameters should be captured in the function closure.
26
+ * @returns A Promise that resolves to an array of all items from all pages
27
+ *
28
+ * @example
29
+ * ```typescript
30
+ * import { getAllPages } from './utils/pagination';
31
+ *
32
+ * // Fetch all tools - types are automatically inferred!
33
+ * const allTools = await getAllPages((params) =>
34
+ * client.tools.list({
35
+ * ...params,
36
+ * tool_slugs: 'tool1,tool2',
37
+ * })
38
+ * );
39
+ * // allTools is inferred as Array<ToolListResponse.Item>
40
+ * ```
41
+ */
42
+export async function getAllPages<
43
+ TFn extends (
44
+ params: PaginationParams
45
+ ) => Promise<{ items: Array<unknown>; next_cursor?: string | null }>,
46
+>(fetchFn: TFn): Promise<Array<ExtractItemType<Awaited<ReturnType<TFn>>>>> {
47
+ type ResponseType = Awaited<ReturnType<TFn>>;
48
+ type ItemType = ExtractItemType<ResponseType>;
49
+
50
+ const allItems: Array<ItemType> = [];
51
+ let cursor: string | null | undefined = undefined;
52
+
53
+ const MAX_LIMIT_ALLOWED_BY_API = 100;
54
+
55
+ while (true) {
56
+ const params: PaginationParams = {
57
+ ...(cursor !== undefined && { cursor }),
58
+ limit: MAX_LIMIT_ALLOWED_BY_API,
59
+ };
60
+
61
+ const response = await fetchFn(params);
62
+ allItems.push(...(response.items as Array<ItemType>));
63
+
64
+ // Stop if there's no next cursor
65
+ if (!response.next_cursor) {
66
+ break;
67
+ }
68
+
69
+ cursor = response.next_cursor;
70
+ }
71
+
72
+ return allItems;
73
+}
ts/packages/core/test/models/toolRouter.test.ts
new
+1774
@@ -0,0 +1,1774 @@
1
+import { describe, it, expect, vi, beforeEach } from 'vitest';
2
+import { ToolRouter } from '../../src/models/ToolRouter';
3
+import ComposioClient from '@composio/client';
4
+import { telemetry } from '../../src/telemetry/Telemetry';
5
+import { MockProvider } from '../utils/mocks/provider.mock';
6
+import { Tools } from '../../src/models/Tools';
7
+import { ConnectedAccountStatuses } from '../../src/types/connectedAccounts.types';
8
+import { ToolRouterCreateSessionConfig, ToolRouterSession } from '../../src/types/toolRouter.types';
9
+
10
+// Mock dependencies
11
+vi.mock('../../src/telemetry/Telemetry', () => ({
12
+ telemetry: {
13
+ instrument: vi.fn(),
14
+ },
15
+}));
16
+
17
+vi.mock('../../src/models/Tools', () => {
18
+ return {
19
+ Tools: vi.fn().mockImplementation(() => ({
20
+ get: vi.fn().mockResolvedValue('mocked-wrapped-tools'),
21
+ })),
22
+ };
23
+});
24
+
25
+// Create mock client with ToolRouter-related methods
26
+const createMockClient = () => ({
27
+ baseURL: 'https://api.composio.dev',
28
+ apiKey: 'test-api-key',
29
+ toolRouter: {
30
+ session: {
31
+ create: vi.fn(),
32
+ retrieve: vi.fn(),
33
+ link: vi.fn(),
34
+ toolkits: vi.fn(),
35
+ },
36
+ },
37
+ tools: {
38
+ list: vi.fn(),
39
+ retrieve: vi.fn(),
40
+ execute: vi.fn(),
41
+ },
42
+});
43
+
44
+// Mock response data
45
+const mockSessionCreateResponse = {
46
+ session_id: 'session_123',
47
+ mcp: {
48
+ type: 'HTTP',
49
+ url: 'https://mcp.example.com/session_123',
50
+ },
51
+ tool_router_tools: ['GMAIL_FETCH_EMAILS', 'SLACK_SEND_MESSAGE', 'GITHUB_CREATE_ISSUE'],
52
+};
53
+
54
+const mockLinkResponse = {
55
+ connected_account_id: 'conn_456',
56
+ redirect_url: 'https://composio.dev/auth/redirect',
57
+};
58
+
59
+const mockSessionRetrieveResponse = {
60
+ session_id: 'session_123',
61
+ mcp: {
62
+ type: 'HTTP',
63
+ url: 'https://mcp.example.com/session_123',
64
+ },
65
+ tool_router_tools: ['GMAIL_FETCH_EMAILS', 'SLACK_SEND_MESSAGE', 'GITHUB_CREATE_ISSUE'],
66
+ config: {
67
+ user_id: 'user_123',
68
+ toolkits: { enabled: ['gmail', 'slack', 'github'] },
69
+ auth_configs: {},
70
+ connected_accounts: {},
71
+ connections: {
72
+ auto_manage_connections: true,
73
+ infer_scopes_from_tools: false,
74
+ },
75
+ },
76
+};
77
+
78
+const mockToolkitsResponse = {
79
+ items: [
80
+ {
81
+ slug: 'gmail',
82
+ name: 'Gmail',
83
+ meta: {
84
+ logo: 'https://example.com/gmail-logo.png',
85
+ },
86
+ connected_account: {
87
+ id: 'conn_123',
88
+ status: 'ACTIVE',
89
+ auth_config: {
90
+ id: 'auth_config_123',
91
+ auth_scheme: 'OAUTH2',
92
+ is_composio_managed: true,
93
+ },
94
+ },
95
+ },
96
+ {
97
+ slug: 'slack',
98
+ name: 'Slack',
99
+ meta: {
100
+ logo: 'https://example.com/slack-logo.png',
101
+ },
102
+ connected_account: {
103
+ id: 'conn_456',
104
+ status: 'INITIATED',
105
+ auth_config: {
106
+ id: 'auth_config_456',
107
+ auth_scheme: 'OAUTH2',
108
+ is_composio_managed: true,
109
+ },
110
+ },
111
+ },
112
+ {
113
+ slug: 'github',
114
+ name: 'GitHub',
115
+ meta: {
116
+ logo: 'https://example.com/github-logo.png',
117
+ },
118
+ connected_account: null,
119
+ },
120
+ ],
121
+ next_cursor: 'cursor_789',
122
+ total_pages: 2,
123
+};
124
+
125
+describe('ToolRouter', () => {
126
+ let toolRouter: ToolRouter<unknown, unknown, MockProvider>;
127
+ let mockClient: ReturnType<typeof createMockClient>;
128
+ let mockProvider: MockProvider;
129
+
130
+ // Helper function to create expected connections object
131
+ const createExpectedConnections = (
132
+ overrides: {
133
+ manageConnections?: boolean;
134
+ callbackUri?: string;
135
+ inferScopesFromTools?: boolean;
136
+ } = {}
137
+ ) => ({
138
+ infer_scopes_from_tools: overrides.inferScopesFromTools ?? false,
139
+ auto_manage_connections: overrides.manageConnections ?? true,
140
+ callback_uri: overrides.callbackUri ?? undefined,
141
+ });
142
+
143
+ beforeEach(() => {
144
+ vi.clearAllMocks();
145
+ mockClient = createMockClient();
146
+ mockProvider = new MockProvider();
147
+ toolRouter = new ToolRouter(mockClient as unknown as ComposioClient, {
148
+ provider: mockProvider,
149
+ });
150
+ });
151
+
152
+ describe('constructor', () => {
153
+ it('should create an instance successfully', () => {
154
+ expect(toolRouter).toBeInstanceOf(ToolRouter);
155
+ expect(telemetry.instrument).toHaveBeenCalledWith(toolRouter, 'ToolRouter');
156
+ });
157
+
158
+ it('should store the client reference', () => {
159
+ expect(toolRouter['client']).toBe(mockClient);
160
+ });
161
+
162
+ it('should store the config reference', () => {
163
+ expect(toolRouter['config']).toEqual({ provider: mockProvider });
164
+ });
165
+ });
166
+
167
+ describe('create method', () => {
168
+ const userId = 'user_123';
169
+
170
+ describe('basic session creation', () => {
171
+ it('should create a session with minimal configuration', async () => {
172
+ mockClient.toolRouter.session.create.mockResolvedValueOnce(mockSessionCreateResponse);
173
+
174
+ const session = await toolRouter.create(userId);
175
+
176
+ expect(mockClient.toolRouter.session.create).toHaveBeenCalledWith({
177
+ user_id: userId,
178
+ toolkits: undefined,
179
+ auth_configs: undefined,
180
+ connected_accounts: undefined,
181
+ tools: undefined,
182
+ connections: createExpectedConnections(),
183
+ execution: undefined,
184
+ });
185
+
186
+ expect(session).toHaveProperty('sessionId', 'session_123');
187
+ expect(session).toHaveProperty('mcp');
188
+ expect(session.mcp).toEqual({
189
+ type: 'HTTP',
190
+ url: 'https://mcp.example.com/session_123',
191
+ });
192
+ expect(session).toHaveProperty('tools');
193
+ expect(session).toHaveProperty('authorize');
194
+ expect(session).toHaveProperty('toolkits');
195
+ });
196
+
197
+ it('should create a session with empty config object', async () => {
198
+ mockClient.toolRouter.session.create.mockResolvedValueOnce(mockSessionCreateResponse);
199
+
200
+ const session = await toolRouter.create(userId, {});
201
+
202
+ expect(mockClient.toolRouter.session.create).toHaveBeenCalledWith({
203
+ user_id: userId,
204
+ toolkits: undefined,
205
+ auth_configs: undefined,
206
+ connected_accounts: undefined,
207
+ tools: undefined,
208
+ connections: createExpectedConnections(),
209
+ execution: undefined,
210
+ });
211
+
212
+ expect(session.sessionId).toBe('session_123');
213
+ });
214
+
215
+ it('should create a session with user ID only and verify MCP type transformation', async () => {
216
+ mockClient.toolRouter.session.create.mockResolvedValueOnce(mockSessionCreateResponse);
217
+
218
+ const session = await toolRouter.create(userId);
219
+
220
+ expect(session.mcp.type).toBe('HTTP');
221
+ expect(mockClient.toolRouter.session.create).toHaveBeenCalledTimes(1);
222
+ });
223
+ });
224
+
225
+ describe('toolkits configuration', () => {
226
+ it('should create a session with toolkits as array (enabled toolkits)', async () => {
227
+ mockClient.toolRouter.session.create.mockResolvedValueOnce(mockSessionCreateResponse);
228
+
229
+ const config: ToolRouterCreateSessionConfig = {
230
+ toolkits: ['gmail', 'slack', 'github'],
231
+ };
232
+
233
+ await toolRouter.create(userId, config);
234
+
235
+ expect(mockClient.toolRouter.session.create).toHaveBeenCalledWith({
236
+ user_id: userId,
237
+ toolkits: {
238
+ enabled: ['gmail', 'slack', 'github'],
239
+ },
240
+ auth_configs: undefined,
241
+ connected_accounts: undefined,
242
+ tools: undefined,
243
+ connections: createExpectedConnections(),
244
+ execution: undefined,
245
+ });
246
+ });
247
+
248
+ it('should create a session with enabled toolkits configuration', async () => {
249
+ mockClient.toolRouter.session.create.mockResolvedValueOnce(mockSessionCreateResponse);
250
+
251
+ const config: ToolRouterCreateSessionConfig = {
252
+ toolkits: {
253
+ enabled: ['gmail', 'slack'],
254
+ },
255
+ };
256
+
257
+ await toolRouter.create(userId, config);
258
+
259
+ expect(mockClient.toolRouter.session.create).toHaveBeenCalledWith({
260
+ user_id: userId,
261
+ toolkits: {
262
+ enabled: ['gmail', 'slack'],
263
+ },
264
+ auth_configs: undefined,
265
+ connected_accounts: undefined,
266
+ tools: undefined,
267
+ connections: createExpectedConnections(),
268
+ execution: undefined,
269
+ });
270
+ });
271
+
272
+ it('should create a session with disabled toolkits configuration', async () => {
273
+ mockClient.toolRouter.session.create.mockResolvedValueOnce(mockSessionCreateResponse);
274
+
275
+ const config: ToolRouterCreateSessionConfig = {
276
+ toolkits: {
277
+ disabled: ['notion', 'trello'],
278
+ },
279
+ };
280
+
281
+ await toolRouter.create(userId, config);
282
+
283
+ expect(mockClient.toolRouter.session.create).toHaveBeenCalledWith({
284
+ user_id: userId,
285
+ toolkits: {
286
+ disabled: ['notion', 'trello'],
287
+ },
288
+ auth_configs: undefined,
289
+ connected_accounts: undefined,
290
+ tools: undefined,
291
+ connections: createExpectedConnections(),
292
+ execution: undefined,
293
+ });
294
+ });
295
+ });
296
+
297
+ // describe('tools configuration', () => {
298
+ // it('should create a session with tools overrides as array', async () => {
299
+ // mockClient.toolRouter.session.create.mockResolvedValueOnce(mockSessionCreateResponse);
300
+
301
+ // const config: ToolRouterCreateSessionConfig = {
302
+ // tools: {
303
+ // overrides: {
304
+ // gmail: ['GMAIL_FETCH_EMAILS', 'GMAIL_SEND_EMAIL'],
305
+ // },
306
+ // },
307
+ // };
308
+
309
+ // await toolRouter.create(userId, config);
310
+
311
+ // expect(mockClient.toolRouter.session.create).toHaveBeenCalledWith({
312
+ // user_id: userId,
313
+ // toolkits: undefined,
314
+ // auth_configs: undefined,
315
+ // connected_accounts: undefined,
316
+ // tools: {
317
+ // overrides: {
318
+ // gmail: { enabled: ['GMAIL_FETCH_EMAILS', 'GMAIL_SEND_EMAIL'] },
319
+ // },
320
+ // filters: undefined,
321
+ // },
322
+ // connections: createExpectedConnections(),
323
+ // execution: undefined,
324
+ // });
325
+ // });
326
+
327
+ // it('should create a session with tools overrides with enabled tools', async () => {
328
+ // mockClient.toolRouter.session.create.mockResolvedValueOnce(mockSessionCreateResponse);
329
+
330
+ // const config: ToolRouterCreateSessionConfig = {
331
+ // tools: {
332
+ // overrides: {
333
+ // gmail: { enabled: ['GMAIL_FETCH_EMAILS', 'GMAIL_SEND_EMAIL'] },
334
+ // },
335
+ // },
336
+ // };
337
+
338
+ // await toolRouter.create(userId, config);
339
+
340
+ // expect(mockClient.toolRouter.session.create).toHaveBeenCalledWith({
341
+ // user_id: userId,
342
+ // toolkits: undefined,
343
+ // auth_configs: undefined,
344
+ // connected_accounts: undefined,
345
+ // tools: {
346
+ // overrides: {
347
+ // gmail: { enabled: ['GMAIL_FETCH_EMAILS', 'GMAIL_SEND_EMAIL'] },
348
+ // },
349
+ // filters: undefined,
350
+ // },
351
+ // connections: createExpectedConnections(),
352
+ // execution: undefined,
353
+ // });
354
+ // });
355
+
356
+ // it('should create a session with tools overrides with disabled tools', async () => {
357
+ // mockClient.toolRouter.session.create.mockResolvedValueOnce(mockSessionCreateResponse);
358
+
359
+ // const config: ToolRouterCreateSessionConfig = {
360
+ // tools: {
361
+ // overrides: {
362
+ // gmail: { disabled: ['GMAIL_DELETE_EMAIL'] },
363
+ // },
364
+ // },
365
+ // };
366
+
367
+ // await toolRouter.create(userId, config);
368
+
369
+ // expect(mockClient.toolRouter.session.create).toHaveBeenCalledWith({
370
+ // user_id: userId,
371
+ // toolkits: undefined,
372
+ // auth_configs: undefined,
373
+ // connected_accounts: undefined,
374
+ // tools: {
375
+ // overrides: {
376
+ // gmail: { disabled: ['GMAIL_DELETE_EMAIL'] },
377
+ // },
378
+ // filters: undefined,
379
+ // },
380
+ // connections: createExpectedConnections(),
381
+ // execution: undefined,
382
+ // });
383
+ // });
384
+
385
+ // it('should create a session with tag filters as array', async () => {
386
+ // mockClient.toolRouter.session.create.mockResolvedValueOnce(mockSessionCreateResponse);
387
+
388
+ // const config: ToolRouterCreateSessionConfig = {
389
+ // tools: {
390
+ // tags: ['important', 'email'],
391
+ // },
392
+ // };
393
+
394
+ // await toolRouter.create(userId, config);
395
+
396
+ // expect(mockClient.toolRouter.session.create).toHaveBeenCalledWith({
397
+ // user_id: userId,
398
+ // toolkits: undefined,
399
+ // auth_configs: undefined,
400
+ // connected_accounts: undefined,
401
+ // tools: {
402
+ // overrides: undefined,
403
+ // filters: {
404
+ // tags: { include: ['important', 'email'] },
405
+ // },
406
+ // },
407
+ // connections: createExpectedConnections(),
408
+ // execution: undefined,
409
+ // });
410
+ // });
411
+
412
+ // it('should create a session with enabled tag filters', async () => {
413
+ // mockClient.toolRouter.session.create.mockResolvedValueOnce(mockSessionCreateResponse);
414
+
415
+ // const config: ToolRouterCreateSessionConfig = {
416
+ // tools: {
417
+ // tags: { enabled: ['important', 'email'] },
418
+ // },
419
+ // };
420
+
421
+ // await toolRouter.create(userId, config);
422
+
423
+ // expect(mockClient.toolRouter.session.create).toHaveBeenCalledWith({
424
+ // user_id: userId,
425
+ // toolkits: undefined,
426
+ // auth_configs: undefined,
427
+ // connected_accounts: undefined,
428
+ // tools: {
429
+ // overrides: undefined,
430
+ // filters: {
431
+ // tags: { include: ['important', 'email'] },
432
+ // },
433
+ // },
434
+ // connections: createExpectedConnections(),
435
+ // execution: undefined,
436
+ // });
437
+ // });
438
+
439
+ // it('should create a session with disabled tag filters', async () => {
440
+ // mockClient.toolRouter.session.create.mockResolvedValueOnce(mockSessionCreateResponse);
441
+
442
+ // const config: ToolRouterCreateSessionConfig = {
443
+ // tools: {
444
+ // tags: { disabled: ['dangerous'] },
445
+ // },
446
+ // };
447
+
448
+ // await toolRouter.create(userId, config);
449
+
450
+ // expect(mockClient.toolRouter.session.create).toHaveBeenCalledWith({
451
+ // user_id: userId,
452
+ // toolkits: undefined,
453
+ // auth_configs: undefined,
454
+ // connected_accounts: undefined,
455
+ // tools: {
456
+ // overrides: undefined,
457
+ // filters: {
458
+ // tags: { exclude: ['dangerous'] },
459
+ // },
460
+ // },
461
+ // connections: createExpectedConnections(),
462
+ // execution: undefined,
463
+ // });
464
+ // });
465
+
466
+ // it('should create a session with both overrides and tag filters', async () => {
467
+ // mockClient.toolRouter.session.create.mockResolvedValueOnce(mockSessionCreateResponse);
468
+
469
+ // const config: ToolRouterCreateSessionConfig = {
470
+ // tools: {
471
+ // overrides: {
472
+ // gmail: ['GMAIL_FETCH_EMAILS'],
473
+ // slack: { disabled: ['SLACK_DELETE_MESSAGE'] },
474
+ // },
475
+ // tags: ['important'],
476
+ // },
477
+ // };
478
+
479
+ // await toolRouter.create(userId, config);
480
+
481
+ // expect(mockClient.toolRouter.session.create).toHaveBeenCalledWith({
482
+ // user_id: userId,
483
+ // toolkits: undefined,
484
+ // auth_configs: undefined,
485
+ // connected_accounts: undefined,
486
+ // tools: {
487
+ // overrides: {
488
+ // gmail: { enabled: ['GMAIL_FETCH_EMAILS'] },
489
+ // slack: { disabled: ['SLACK_DELETE_MESSAGE'] },
490
+ // },
491
+ // filters: {
492
+ // tags: { include: ['important'] },
493
+ // },
494
+ // },
495
+ // connections: createExpectedConnections(),
496
+ // execution: undefined,
497
+ // });
498
+ // });
499
+ // });
500
+
501
+ describe('manageConnections configuration', () => {
502
+ it('should create a session with manageConnections as boolean (true)', async () => {
503
+ mockClient.toolRouter.session.create.mockResolvedValueOnce(mockSessionCreateResponse);
504
+
505
+ const config: ToolRouterCreateSessionConfig = {
506
+ manageConnections: true,
507
+ };
508
+
509
+ await toolRouter.create(userId, config);
510
+
511
+ expect(mockClient.toolRouter.session.create).toHaveBeenCalledWith({
512
+ user_id: userId,
513
+ toolkits: undefined,
514
+ auth_configs: undefined,
515
+ connected_accounts: undefined,
516
+ tools: undefined,
517
+ connections: createExpectedConnections({ manageConnections: true }),
518
+ execution: undefined,
519
+ });
520
+ });
521
+
522
+ it('should create a session with manageConnections as boolean (false)', async () => {
523
+ mockClient.toolRouter.session.create.mockResolvedValueOnce(mockSessionCreateResponse);
524
+
525
+ const config: ToolRouterCreateSessionConfig = {
526
+ manageConnections: false,
527
+ };
528
+
529
+ await toolRouter.create(userId, config);
530
+
531
+ expect(mockClient.toolRouter.session.create).toHaveBeenCalledWith({
532
+ user_id: userId,
533
+ toolkits: undefined,
534
+ auth_configs: undefined,
535
+ connected_accounts: undefined,
536
+ tools: undefined,
537
+ connections: createExpectedConnections({ manageConnections: false }),
538
+ execution: undefined,
539
+ });
540
+ });
541
+
542
+ it('should create a session with manageConnections as object with enabled', async () => {
543
+ mockClient.toolRouter.session.create.mockResolvedValueOnce(mockSessionCreateResponse);
544
+
545
+ const config: ToolRouterCreateSessionConfig = {
546
+ manageConnections: {
547
+ enabled: true,
548
+ inferScopesFromTools: false,
549
+ },
550
+ };
551
+
552
+ await toolRouter.create(userId, config);
553
+
554
+ expect(mockClient.toolRouter.session.create).toHaveBeenCalledWith({
555
+ user_id: userId,
556
+ toolkits: undefined,
557
+ auth_configs: undefined,
558
+ connected_accounts: undefined,
559
+ tools: undefined,
560
+ connections: createExpectedConnections({ manageConnections: true }),
561
+ execution: undefined,
562
+ });
563
+ });
564
+
565
+ it('should create a session with manageConnections object with callbackUri', async () => {
566
+ mockClient.toolRouter.session.create.mockResolvedValueOnce(mockSessionCreateResponse);
567
+
568
+ const config: ToolRouterCreateSessionConfig = {
569
+ manageConnections: {
570
+ enabled: true,
571
+ callbackUri: 'https://myapp.com/callback',
572
+ inferScopesFromTools: false,
573
+ },
574
+ };
575
+
576
+ await toolRouter.create(userId, config);
577
+
578
+ expect(mockClient.toolRouter.session.create).toHaveBeenCalledWith({
579
+ user_id: userId,
580
+ toolkits: undefined,
581
+ auth_configs: undefined,
582
+ connected_accounts: undefined,
583
+ tools: undefined,
584
+ connections: createExpectedConnections({
585
+ manageConnections: true,
586
+ callbackUri: 'https://myapp.com/callback',
587
+ }),
588
+ execution: undefined,
589
+ });
590
+ });
591
+
592
+ it('should create a session with manageConnections object with inferScopesFromTools', async () => {
593
+ mockClient.toolRouter.session.create.mockResolvedValueOnce(mockSessionCreateResponse);
594
+
595
+ const config: ToolRouterCreateSessionConfig = {
596
+ manageConnections: {
597
+ enabled: true,
598
+ inferScopesFromTools: true,
599
+ },
600
+ };
601
+
602
+ await toolRouter.create(userId, config);
603
+
604
+ expect(mockClient.toolRouter.session.create).toHaveBeenCalledWith({
605
+ user_id: userId,
606
+ toolkits: undefined,
607
+ auth_configs: undefined,
608
+ connected_accounts: undefined,
609
+ tools: undefined,
610
+ connections: createExpectedConnections({
611
+ manageConnections: true,
612
+ inferScopesFromTools: true,
613
+ }),
614
+ execution: undefined,
615
+ });
616
+ });
617
+
618
+ it('should create a session with full manageConnections configuration', async () => {
619
+ mockClient.toolRouter.session.create.mockResolvedValueOnce(mockSessionCreateResponse);
620
+
621
+ const config: ToolRouterCreateSessionConfig = {
622
+ manageConnections: {
623
+ enabled: true,
624
+ callbackUri: 'https://myapp.com/callback',
625
+ inferScopesFromTools: true,
626
+ },
627
+ };
628
+
629
+ await toolRouter.create(userId, config);
630
+
631
+ expect(mockClient.toolRouter.session.create).toHaveBeenCalledWith({
632
+ user_id: userId,
633
+ toolkits: undefined,
634
+ auth_configs: undefined,
635
+ connected_accounts: undefined,
636
+ tools: undefined,
637
+ connections: createExpectedConnections({
638
+ manageConnections: true,
639
+ inferScopesFromTools: true,
640
+ callbackUri: 'https://myapp.com/callback',
641
+ }),
642
+ execution: undefined,
643
+ });
644
+ });
645
+ });
646
+
647
+ describe('authConfigs and connectedAccounts configuration', () => {
648
+ it('should create a session with authConfigs', async () => {
649
+ mockClient.toolRouter.session.create.mockResolvedValueOnce(mockSessionCreateResponse);
650
+
651
+ const config: ToolRouterCreateSessionConfig = {
652
+ authConfigs: {
653
+ gmail: 'auth_config_123',
654
+ slack: 'auth_config_456',
655
+ },
656
+ };
657
+
658
+ await toolRouter.create(userId, config);
659
+
660
+ expect(mockClient.toolRouter.session.create).toHaveBeenCalledWith({
661
+ user_id: userId,
662
+ toolkits: undefined,
663
+ auth_configs: {
664
+ gmail: 'auth_config_123',
665
+ slack: 'auth_config_456',
666
+ },
667
+ connected_accounts: undefined,
668
+ tools: undefined,
669
+ connections: createExpectedConnections(),
670
+ execution: undefined,
671
+ });
672
+ });
673
+
674
+ it('should create a session with connectedAccounts', async () => {
675
+ mockClient.toolRouter.session.create.mockResolvedValueOnce(mockSessionCreateResponse);
676
+
677
+ const config: ToolRouterCreateSessionConfig = {
678
+ connectedAccounts: {
679
+ gmail: 'conn_123',
680
+ slack: 'conn_456',
681
+ },
682
+ };
683
+
684
+ await toolRouter.create(userId, config);
685
+
686
+ expect(mockClient.toolRouter.session.create).toHaveBeenCalledWith({
687
+ user_id: userId,
688
+ toolkits: undefined,
689
+ auth_configs: undefined,
690
+ connected_accounts: {
691
+ gmail: 'conn_123',
692
+ slack: 'conn_456',
693
+ },
694
+ tools: undefined,
695
+ connections: createExpectedConnections(),
696
+ execution: undefined,
697
+ });
698
+ });
699
+
700
+ it('should create a session with both authConfigs and connectedAccounts', async () => {
701
+ mockClient.toolRouter.session.create.mockResolvedValueOnce(mockSessionCreateResponse);
702
+
703
+ const config: ToolRouterCreateSessionConfig = {
704
+ authConfigs: {
705
+ gmail: 'auth_config_123',
706
+ },
707
+ connectedAccounts: {
708
+ slack: 'conn_456',
709
+ },
710
+ };
711
+
712
+ await toolRouter.create(userId, config);
713
+
714
+ expect(mockClient.toolRouter.session.create).toHaveBeenCalledWith({
715
+ user_id: userId,
716
+ toolkits: undefined,
717
+ auth_configs: {
718
+ gmail: 'auth_config_123',
719
+ },
720
+ connected_accounts: {
721
+ slack: 'conn_456',
722
+ },
723
+ tools: undefined,
724
+ connections: createExpectedConnections(),
725
+ execution: undefined,
726
+ });
727
+ });
728
+ });
729
+
730
+ describe('execution configuration', () => {
731
+ it('should create a session with proxyExecutionEnabled only', async () => {
732
+ mockClient.toolRouter.session.create.mockResolvedValueOnce(mockSessionCreateResponse);
733
+
734
+ const config: ToolRouterCreateSessionConfig = {
735
+ execution: {
736
+ proxyExecutionEnabled: true,
737
+ },
738
+ };
739
+
740
+ await toolRouter.create(userId, config);
741
+
742
+ expect(mockClient.toolRouter.session.create).toHaveBeenCalledWith({
743
+ user_id: userId,
744
+ toolkits: undefined,
745
+ auth_configs: undefined,
746
+ connected_accounts: undefined,
747
+ tools: undefined,
748
+ connections: createExpectedConnections(),
749
+ execution: {
750
+ proxy_execution_enabled: true,
751
+ timeout_seconds: undefined,
752
+ },
753
+ });
754
+ });
755
+
756
+ it('should create a session with timeoutSeconds only', async () => {
757
+ mockClient.toolRouter.session.create.mockResolvedValueOnce(mockSessionCreateResponse);
758
+
759
+ const config: ToolRouterCreateSessionConfig = {
760
+ execution: {
761
+ timeoutSeconds: 60,
762
+ },
763
+ };
764
+
765
+ await toolRouter.create(userId, config);
766
+
767
+ expect(mockClient.toolRouter.session.create).toHaveBeenCalledWith({
768
+ user_id: userId,
769
+ toolkits: undefined,
770
+ auth_configs: undefined,
771
+ connected_accounts: undefined,
772
+ tools: undefined,
773
+ connections: createExpectedConnections(),
774
+ execution: {
775
+ proxy_execution_enabled: undefined,
776
+ timeout_seconds: 60,
777
+ },
778
+ });
779
+ });
780
+
781
+ it('should create a session with full execution configuration', async () => {
782
+ mockClient.toolRouter.session.create.mockResolvedValueOnce(mockSessionCreateResponse);
783
+
784
+ const config: ToolRouterCreateSessionConfig = {
785
+ execution: {
786
+ proxyExecutionEnabled: true,
787
+ timeoutSeconds: 30,
788
+ },
789
+ };
790
+
791
+ await toolRouter.create(userId, config);
792
+
793
+ expect(mockClient.toolRouter.session.create).toHaveBeenCalledWith({
794
+ user_id: userId,
795
+ toolkits: undefined,
796
+ auth_configs: undefined,
797
+ connected_accounts: undefined,
798
+ tools: undefined,
799
+ connections: createExpectedConnections(),
800
+ execution: {
801
+ proxy_execution_enabled: true,
802
+ timeout_seconds: 30,
803
+ },
804
+ });
805
+ });
806
+
807
+ it('should create a session with execution disabled', async () => {
808
+ mockClient.toolRouter.session.create.mockResolvedValueOnce(mockSessionCreateResponse);
809
+
810
+ const config: ToolRouterCreateSessionConfig = {
811
+ execution: {
812
+ proxyExecutionEnabled: false,
813
+ timeoutSeconds: 0,
814
+ },
815
+ };
816
+
817
+ await toolRouter.create(userId, config);
818
+
819
+ expect(mockClient.toolRouter.session.create).toHaveBeenCalledWith({
820
+ user_id: userId,
821
+ toolkits: undefined,
822
+ auth_configs: undefined,
823
+ connected_accounts: undefined,
824
+ tools: undefined,
825
+ connections: createExpectedConnections(),
826
+ execution: {
827
+ proxy_execution_enabled: false,
828
+ timeout_seconds: 0,
829
+ },
830
+ });
831
+ });
832
+ });
833
+
834
+ // describe('complex configuration combinations', () => {
835
+ // it('should create a session with all configuration options', async () => {
836
+ // mockClient.toolRouter.session.create.mockResolvedValueOnce(mockSessionCreateResponse);
837
+
838
+ // const config: ToolRouterCreateSessionConfig = {
839
+ // toolkits: ['gmail', 'slack'],
840
+ // tools: {
841
+ // overrides: {
842
+ // gmail: ['GMAIL_FETCH_EMAILS'],
843
+ // },
844
+ // tags: ['important'],
845
+ // },
846
+ // authConfigs: {
847
+ // gmail: 'auth_config_123',
848
+ // },
849
+ // connectedAccounts: {
850
+ // slack: 'conn_456',
851
+ // },
852
+ // manageConnections: {
853
+ // enabled: true,
854
+ // callbackUri: 'https://myapp.com/callback',
855
+ // inferScopesFromTools: true,
856
+ // },
857
+ // execution: {
858
+ // proxyExecutionEnabled: true,
859
+ // timeoutSeconds: 30,
860
+ // },
861
+ // };
862
+
863
+ // await toolRouter.create(userId, config);
864
+
865
+ // expect(mockClient.toolRouter.session.create).toHaveBeenCalledWith({
866
+ // user_id: userId,
867
+ // toolkits: {
868
+ // enabled: ['gmail', 'slack'],
869
+ // },
870
+ // auth_configs: {
871
+ // gmail: 'auth_config_123',
872
+ // },
873
+ // connected_accounts: {
874
+ // slack: 'conn_456',
875
+ // },
876
+ // tools: {
877
+ // overrides: {
878
+ // gmail: { enabled: ['GMAIL_FETCH_EMAILS'] },
879
+ // },
880
+ // filters: {
881
+ // tags: { include: ['important'] },
882
+ // },
883
+ // },
884
+ // connections: createExpectedConnections({
885
+ // manageConnections: true,
886
+ // inferScopesFromTools: true,
887
+ // callbackUri: 'https://myapp.com/callback',
888
+ // }),
889
+ // execution: {
890
+ // proxy_execution_enabled: true,
891
+ // timeout_seconds: 30,
892
+ // },
893
+ // });
894
+ // });
895
+
896
+ // it('should create a session with toolkits and disabled tools', async () => {
897
+ // mockClient.toolRouter.session.create.mockResolvedValueOnce(mockSessionCreateResponse);
898
+
899
+ // const config: ToolRouterCreateSessionConfig = {
900
+ // toolkits: {
901
+ // enabled: ['gmail', 'slack', 'github'],
902
+ // },
903
+ // tools: {
904
+ // overrides: {
905
+ // gmail: { disabled: ['GMAIL_DELETE_EMAIL'] },
906
+ // slack: { disabled: ['SLACK_DELETE_MESSAGE'] },
907
+ // },
908
+ // },
909
+ // };
910
+
911
+ // await toolRouter.create(userId, config);
912
+
913
+ // expect(mockClient.toolRouter.session.create).toHaveBeenCalledWith({
914
+ // user_id: userId,
915
+ // toolkits: {
916
+ // enabled: ['gmail', 'slack', 'github'],
917
+ // },
918
+ // auth_configs: undefined,
919
+ // connected_accounts: undefined,
920
+ // tools: {
921
+ // overrides: {
922
+ // gmail: { disabled: ['GMAIL_DELETE_EMAIL'] },
923
+ // slack: { disabled: ['SLACK_DELETE_MESSAGE'] },
924
+ // },
925
+ // filters: undefined,
926
+ // },
927
+ // connections: createExpectedConnections(),
928
+ // execution: undefined,
929
+ // });
930
+ // });
931
+
932
+ // it('should create a session with complex nested configuration', async () => {
933
+ // mockClient.toolRouter.session.create.mockResolvedValueOnce(mockSessionCreateResponse);
934
+
935
+ // const config: ToolRouterCreateSessionConfig = {
936
+ // toolkits: {
937
+ // disabled: ['notion'],
938
+ // },
939
+ // tools: {
940
+ // overrides: {
941
+ // gmail: { disabled: ['GMAIL_DELETE_EMAIL'] },
942
+ // },
943
+ // tags: { disabled: ['dangerous'] },
944
+ // },
945
+ // authConfigs: {
946
+ // gmail: 'auth_config_123',
947
+ // slack: 'auth_config_456',
948
+ // github: 'auth_config_789',
949
+ // },
950
+ // connectedAccounts: {},
951
+ // manageConnections: {
952
+ // enabled: false,
953
+ // inferScopesFromTools: false,
954
+ // },
955
+ // };
956
+
957
+ // await toolRouter.create(userId, config);
958
+
959
+ // expect(mockClient.toolRouter.session.create).toHaveBeenCalledWith({
960
+ // user_id: userId,
961
+ // toolkits: {
962
+ // disabled: ['notion'],
963
+ // },
964
+ // auth_configs: {
965
+ // gmail: 'auth_config_123',
966
+ // slack: 'auth_config_456',
967
+ // github: 'auth_config_789',
968
+ // },
969
+ // connected_accounts: {},
970
+ // tools: {
971
+ // overrides: {
972
+ // gmail: { disabled: ['GMAIL_DELETE_EMAIL'] },
973
+ // },
974
+ // filters: {
975
+ // tags: { exclude: ['dangerous'] },
976
+ // },
977
+ // },
978
+ // connections: createExpectedConnections({
979
+ // manageConnections: false,
980
+ // }),
981
+ // execution: undefined,
982
+ // });
983
+ // });
984
+ // });
985
+
986
+ describe('error handling', () => {
987
+ it('should throw error if API call fails', async () => {
988
+ const apiError = new Error('API error: Invalid session configuration');
989
+ mockClient.toolRouter.session.create.mockRejectedValueOnce(apiError);
990
+
991
+ await expect(toolRouter.create(userId)).rejects.toThrow(
992
+ 'API error: Invalid session configuration'
993
+ );
994
+
995
+ expect(mockClient.toolRouter.session.create).toHaveBeenCalledTimes(1);
996
+ });
997
+
998
+ it('should throw error for invalid configuration', async () => {
999
+ const invalidConfig = {
1000
+ toolkits: 'invalid-toolkits', // Should be array or object
1001
+ } as any;
1002
+
1003
+ await expect(toolRouter.create(userId, invalidConfig)).rejects.toThrow();
1004
+ });
1005
+
1006
+ it('should throw error for empty userId', async () => {
1007
+ mockClient.toolRouter.session.create.mockResolvedValueOnce(mockSessionCreateResponse);
1008
+
1009
+ // The test validates that even empty userId is passed through
1010
+ // The API layer would handle the validation
1011
+ await toolRouter.create('');
1012
+
1013
+ expect(mockClient.toolRouter.session.create).toHaveBeenCalledWith(
1014
+ expect.objectContaining({
1015
+ user_id: '',
1016
+ })
1017
+ );
1018
+ });
1019
+ });
1020
+
1021
+ describe('response handling', () => {
1022
+ it('should handle MCP type correctly', async () => {
1023
+ const responseWithUppercase = {
1024
+ ...mockSessionCreateResponse,
1025
+ mcp: {
1026
+ type: 'HTTP',
1027
+ url: 'https://mcp.example.com/session_123',
1028
+ },
1029
+ };
1030
+
1031
+ mockClient.toolRouter.session.create.mockResolvedValueOnce(responseWithUppercase);
1032
+
1033
+ const session = await toolRouter.create(userId);
1034
+
1035
+ expect(session.mcp.type).toBe('HTTP');
1036
+ });
1037
+
1038
+ it('should handle SSE MCP type correctly', async () => {
1039
+ const sseResponse = {
1040
+ ...mockSessionCreateResponse,
1041
+ mcp: {
1042
+ type: 'SSE',
1043
+ url: 'https://mcp.example.com/sse/session_123',
1044
+ },
1045
+ };
1046
+
1047
+ mockClient.toolRouter.session.create.mockResolvedValueOnce(sseResponse);
1048
+
1049
+ const session = await toolRouter.create(userId);
1050
+
1051
+ expect(session.mcp.type).toBe('SSE');
1052
+ expect(session.mcp.url).toBe('https://mcp.example.com/sse/session_123');
1053
+ });
1054
+
1055
+ it('should return session with all required properties', async () => {
1056
+ mockClient.toolRouter.session.create.mockResolvedValueOnce(mockSessionCreateResponse);
1057
+
1058
+ const session = await toolRouter.create(userId);
1059
+
1060
+ expect(session).toHaveProperty('sessionId');
1061
+ expect(session).toHaveProperty('mcp');
1062
+ expect(session).toHaveProperty('tools');
1063
+ expect(session).toHaveProperty('authorize');
1064
+ expect(session).toHaveProperty('toolkits');
1065
+
1066
+ expect(typeof session.tools).toBe('function');
1067
+ expect(typeof session.authorize).toBe('function');
1068
+ expect(typeof session.toolkits).toBe('function');
1069
+ });
1070
+ });
1071
+ });
1072
+
1073
+ describe('authorize function', () => {
1074
+ const userId = 'user_123';
1075
+ const sessionId = 'session_123';
1076
+ const toolkit = 'gmail';
1077
+
1078
+ beforeEach(async () => {
1079
+ mockClient.toolRouter.session.create.mockResolvedValueOnce(mockSessionCreateResponse);
1080
+ });
1081
+
1082
+ it('should authorize a toolkit without callbackUrl', async () => {
1083
+ mockClient.toolRouter.session.link.mockResolvedValueOnce(mockLinkResponse);
1084
+
1085
+ const session = await toolRouter.create(userId);
1086
+ const connectionRequest = await session.authorize(toolkit);
1087
+
1088
+ expect(mockClient.toolRouter.session.link).toHaveBeenCalledWith(sessionId, {
1089
+ toolkit,
1090
+ });
1091
+
1092
+ expect(connectionRequest).toHaveProperty('id', 'conn_456');
1093
+ expect(connectionRequest).toHaveProperty('status', ConnectedAccountStatuses.INITIATED);
1094
+ expect(connectionRequest).toHaveProperty('redirectUrl', 'https://composio.dev/auth/redirect');
1095
+ });
1096
+
1097
+ it('should authorize a toolkit with callbackUrl', async () => {
1098
+ mockClient.toolRouter.session.link.mockResolvedValueOnce(mockLinkResponse);
1099
+
1100
+ const session = await toolRouter.create(userId);
1101
+ const connectionRequest = await session.authorize(toolkit, {
1102
+ callbackUrl: 'https://myapp.com/callback',
1103
+ });
1104
+
1105
+ expect(mockClient.toolRouter.session.link).toHaveBeenCalledWith(sessionId, {
1106
+ toolkit,
1107
+ callbackUrl: 'https://myapp.com/callback',
1108
+ });
1109
+
1110
+ expect(connectionRequest.id).toBe('conn_456');
1111
+ expect(connectionRequest.redirectUrl).toBe('https://composio.dev/auth/redirect');
1112
+ });
1113
+
1114
+ it('should authorize multiple toolkits in sequence', async () => {
1115
+ const slackLinkResponse = {
1116
+ connected_account_id: 'conn_789',
1117
+ redirect_url: 'https://composio.dev/auth/slack/redirect',
1118
+ };
1119
+
1120
+ mockClient.toolRouter.session.link
1121
+ .mockResolvedValueOnce(mockLinkResponse)
1122
+ .mockResolvedValueOnce(slackLinkResponse);
1123
+
1124
+ const session = await toolRouter.create(userId);
1125
+
1126
+ const gmailConnection = await session.authorize('gmail');
1127
+ const slackConnection = await session.authorize('slack');
1128
+
1129
+ expect(mockClient.toolRouter.session.link).toHaveBeenCalledTimes(2);
1130
+ expect(gmailConnection.id).toBe('conn_456');
1131
+ expect(slackConnection.id).toBe('conn_789');
1132
+ });
1133
+
1134
+ it('should handle authorization errors', async () => {
1135
+ const authError = new Error('Authorization failed: Invalid toolkit');
1136
+ mockClient.toolRouter.session.link.mockRejectedValueOnce(authError);
1137
+
1138
+ const session = await toolRouter.create(userId);
1139
+
1140
+ await expect(session.authorize(toolkit)).rejects.toThrow(
1141
+ 'Authorization failed: Invalid toolkit'
1142
+ );
1143
+
1144
+ expect(mockClient.toolRouter.session.link).toHaveBeenCalledWith(sessionId, {
1145
+ toolkit,
1146
+ });
1147
+ });
1148
+
1149
+ it('should handle network errors during authorization', async () => {
1150
+ const networkError = new Error('Network error');
1151
+ mockClient.toolRouter.session.link.mockRejectedValueOnce(networkError);
1152
+
1153
+ const session = await toolRouter.create(userId);
1154
+
1155
+ await expect(session.authorize(toolkit)).rejects.toThrow('Network error');
1156
+ });
1157
+
1158
+ it('should create ConnectionRequest with correct parameters', async () => {
1159
+ mockClient.toolRouter.session.link.mockResolvedValueOnce(mockLinkResponse);
1160
+
1161
+ const session = await toolRouter.create(userId);
1162
+ const connectionRequest = await session.authorize(toolkit);
1163
+
1164
+ // Verify the connection request has the expected methods
1165
+ expect(connectionRequest).toHaveProperty('waitForConnection');
1166
+ expect(connectionRequest).toHaveProperty('toJSON');
1167
+ expect(connectionRequest).toHaveProperty('toString');
1168
+ expect(typeof connectionRequest.waitForConnection).toBe('function');
1169
+ });
1170
+ });
1171
+
1172
+ describe('toolkits function', () => {
1173
+ const userId = 'user_123';
1174
+ const sessionId = 'session_123';
1175
+
1176
+ beforeEach(async () => {
1177
+ mockClient.toolRouter.session.create.mockResolvedValueOnce(mockSessionCreateResponse);
1178
+ });
1179
+
1180
+ it('should fetch toolkits without options', async () => {
1181
+ mockClient.toolRouter.session.toolkits.mockResolvedValueOnce(mockToolkitsResponse);
1182
+
1183
+ const session = await toolRouter.create(userId);
1184
+ const result = await session.toolkits();
1185
+
1186
+ expect(mockClient.toolRouter.session.toolkits).toHaveBeenCalledWith(sessionId, {
1187
+ cursor: undefined,
1188
+ limit: undefined,
1189
+ toolkits: undefined,
1190
+ });
1191
+
1192
+ expect(result).toHaveProperty('items');
1193
+ expect(result).toHaveProperty('nextCursor', 'cursor_789');
1194
+ expect(result).toHaveProperty('totalPages', 2);
1195
+ expect(result.items).toHaveLength(3);
1196
+ });
1197
+
1198
+ it('should fetch toolkits with pagination options', async () => {
1199
+ mockClient.toolRouter.session.toolkits.mockResolvedValueOnce(mockToolkitsResponse);
1200
+
1201
+ const session = await toolRouter.create(userId);
1202
+ const result = await session.toolkits({
1203
+ limit: 10,
1204
+ nextCursor: 'cursor_abc',
1205
+ });
1206
+
1207
+ expect(mockClient.toolRouter.session.toolkits).toHaveBeenCalledWith(sessionId, {
1208
+ cursor: 'cursor_abc',
1209
+ limit: 10,
1210
+ toolkits: undefined,
1211
+ });
1212
+
1213
+ expect(result.items).toHaveLength(3);
1214
+ });
1215
+
1216
+ it('should fetch toolkits with toolkits filter option', async () => {
1217
+ mockClient.toolRouter.session.toolkits.mockResolvedValueOnce(mockToolkitsResponse);
1218
+
1219
+ const session = await toolRouter.create(userId);
1220
+ const result = await session.toolkits({
1221
+ toolkits: ['gmail', 'slack'],
1222
+ });
1223
+
1224
+ expect(mockClient.toolRouter.session.toolkits).toHaveBeenCalledWith(sessionId, {
1225
+ cursor: undefined,
1226
+ limit: undefined,
1227
+ toolkits: ['gmail', 'slack'],
1228
+ });
1229
+
1230
+ expect(result.items).toHaveLength(3);
1231
+ });
1232
+
1233
+ it('should fetch toolkits with both pagination and toolkits filter options', async () => {
1234
+ mockClient.toolRouter.session.toolkits.mockResolvedValueOnce(mockToolkitsResponse);
1235
+
1236
+ const session = await toolRouter.create(userId);
1237
+ const result = await session.toolkits({
1238
+ limit: 5,
1239
+ nextCursor: 'cursor_xyz',
1240
+ toolkits: ['github'],
1241
+ });
1242
+
1243
+ expect(mockClient.toolRouter.session.toolkits).toHaveBeenCalledWith(sessionId, {
1244
+ cursor: 'cursor_xyz',
1245
+ limit: 5,
1246
+ toolkits: ['github'],
1247
+ });
1248
+
1249
+ expect(result.items).toHaveLength(3);
1250
+ });
1251
+
1252
+ it('should transform toolkit connection state correctly for active connection', async () => {
1253
+ mockClient.toolRouter.session.toolkits.mockResolvedValueOnce(mockToolkitsResponse);
1254
+
1255
+ const session = await toolRouter.create(userId);
1256
+ const result = await session.toolkits();
1257
+
1258
+ const gmailToolkit = result.items[0];
1259
+ expect(gmailToolkit.slug).toBe('gmail');
1260
+ expect(gmailToolkit.name).toBe('Gmail');
1261
+ expect(gmailToolkit.logo).toBe('https://example.com/gmail-logo.png');
1262
+ expect(gmailToolkit.isNoAuth).toBe(false);
1263
+ expect(gmailToolkit.connection.isActive).toBe(true);
1264
+ expect(gmailToolkit.connection.authConfig).toEqual({
1265
+ id: 'auth_config_123',
1266
+ mode: 'OAUTH2',
1267
+ isComposioManaged: true,
1268
+ });
1269
+ expect(gmailToolkit.connection.connectedAccount).toEqual({
1270
+ id: 'conn_123',
1271
+ status: 'ACTIVE',
1272
+ });
1273
+ });
1274
+
1275
+ it('should transform toolkit connection state correctly for initiated connection', async () => {
1276
+ mockClient.toolRouter.session.toolkits.mockResolvedValueOnce(mockToolkitsResponse);
1277
+
1278
+ const session = await toolRouter.create(userId);
1279
+ const result = await session.toolkits();
1280
+
1281
+ const slackToolkit = result.items[1];
1282
+ expect(slackToolkit.slug).toBe('slack');
1283
+ expect(slackToolkit.connection.isActive).toBe(false);
1284
+ expect(slackToolkit.connection.connectedAccount?.status).toBe('INITIATED');
1285
+ });
1286
+
1287
+ it('should transform toolkit connection state correctly for no connection', async () => {
1288
+ mockClient.toolRouter.session.toolkits.mockResolvedValueOnce(mockToolkitsResponse);
1289
+
1290
+ const session = await toolRouter.create(userId);
1291
+ const result = await session.toolkits();
1292
+
1293
+ const githubToolkit = result.items[2];
1294
+ expect(githubToolkit.slug).toBe('github');
1295
+ expect(githubToolkit.connection.isActive).toBe(false);
1296
+ expect(githubToolkit.connection.authConfig).toBeNull();
1297
+ expect(githubToolkit.connection.connectedAccount).toBeUndefined();
1298
+ });
1299
+
1300
+ it('should handle empty toolkits response', async () => {
1301
+ const emptyResponse = {
1302
+ items: [],
1303
+ next_cursor: undefined,
1304
+ total_pages: 0,
1305
+ };
1306
+
1307
+ mockClient.toolRouter.session.toolkits.mockResolvedValueOnce(emptyResponse);
1308
+
1309
+ const session = await toolRouter.create(userId);
1310
+ const result = await session.toolkits();
1311
+
1312
+ expect(result.items).toHaveLength(0);
1313
+ expect(result.nextCursor).toBeUndefined();
1314
+ expect(result.totalPages).toBe(0);
1315
+ });
1316
+
1317
+ it('should handle pagination through multiple pages', async () => {
1318
+ const firstPageResponse = {
1319
+ items: mockToolkitsResponse.items.slice(0, 2),
1320
+ next_cursor: 'cursor_page2',
1321
+ total_pages: 2,
1322
+ };
1323
+
1324
+ const secondPageResponse = {
1325
+ items: mockToolkitsResponse.items.slice(2),
1326
+ next_cursor: undefined,
1327
+ total_pages: 2,
1328
+ };
1329
+
1330
+ mockClient.toolRouter.session.toolkits
1331
+ .mockResolvedValueOnce(firstPageResponse)
1332
+ .mockResolvedValueOnce(secondPageResponse);
1333
+
1334
+ const session = await toolRouter.create(userId);
1335
+
1336
+ // Fetch first page
1337
+ const page1 = await session.toolkits({ limit: 2 });
1338
+ expect(page1.items).toHaveLength(2);
1339
+ expect(page1.nextCursor).toBe('cursor_page2');
1340
+
1341
+ // Fetch second page
1342
+ const page2 = await session.toolkits({
1343
+ limit: 2,
1344
+ nextCursor: page1.nextCursor,
1345
+ });
1346
+ expect(page2.items).toHaveLength(1);
1347
+ expect(page2.nextCursor).toBeUndefined();
1348
+ });
1349
+
1350
+ it('should handle API errors', async () => {
1351
+ const apiError = new Error('Failed to fetch toolkits');
1352
+ mockClient.toolRouter.session.toolkits.mockRejectedValueOnce(apiError);
1353
+
1354
+ const session = await toolRouter.create(userId);
1355
+
1356
+ await expect(session.toolkits()).rejects.toThrow('Failed to fetch toolkits');
1357
+ });
1358
+
1359
+ it('should handle malformed response data', async () => {
1360
+ const malformedResponse = {
1361
+ items: [
1362
+ {
1363
+ slug: 'gmail',
1364
+ // Missing required fields
1365
+ },
1366
+ ],
1367
+ next_cursor: undefined,
1368
+ total_pages: 1,
1369
+ };
1370
+
1371
+ mockClient.toolRouter.session.toolkits.mockResolvedValueOnce(malformedResponse);
1372
+
1373
+ const session = await toolRouter.create(userId);
1374
+
1375
+ // Should throw transformation error due to missing required fields
1376
+ await expect(session.toolkits()).rejects.toThrow();
1377
+ });
1378
+ });
1379
+
1380
+ describe('tools function', () => {
1381
+ const userId = 'user_123';
1382
+
1383
+ beforeEach(() => {
1384
+ // Reset the Tools mock before each test
1385
+ vi.clearAllMocks();
1386
+ (Tools as any).mockImplementation(() => ({
1387
+ get: vi.fn().mockResolvedValue('mocked-wrapped-tools'),
1388
+ }));
1389
+ });
1390
+
1391
+ it('should fetch and wrap tools without modifiers', async () => {
1392
+ mockClient.toolRouter.session.create.mockResolvedValueOnce(mockSessionCreateResponse);
1393
+
1394
+ const session = await toolRouter.create(userId);
1395
+ const tools = await session.tools();
1396
+
1397
+ expect(Tools).toHaveBeenCalledWith(mockClient, { provider: mockProvider });
1398
+
1399
+ const toolsInstance = (Tools as any).mock.results[0].value;
1400
+ expect(toolsInstance.get).toHaveBeenCalledWith(
1401
+ userId,
1402
+ {
1403
+ tools: ['GMAIL_FETCH_EMAILS', 'SLACK_SEND_MESSAGE', 'GITHUB_CREATE_ISSUE'],
1404
+ },
1405
+ undefined
1406
+ );
1407
+
1408
+ expect(tools).toBe('mocked-wrapped-tools');
1409
+ });
1410
+
1411
+ it('should fetch and wrap tools with modifiers', async () => {
1412
+ mockClient.toolRouter.session.create.mockResolvedValueOnce(mockSessionCreateResponse);
1413
+
1414
+ const modifiers = {
1415
+ modifySchema: vi.fn(tool => ({
1416
+ ...tool,
1417
+ description: 'Modified description',
1418
+ })),
1419
+ };
1420
+
1421
+ const session = await toolRouter.create(userId);
1422
+ const tools = await session.tools(modifiers);
1423
+
1424
+ const toolsInstance = (Tools as any).mock.results[0].value;
1425
+ expect(toolsInstance.get).toHaveBeenCalledWith(
1426
+ userId,
1427
+ {
1428
+ tools: ['GMAIL_FETCH_EMAILS', 'SLACK_SEND_MESSAGE', 'GITHUB_CREATE_ISSUE'],
1429
+ },
1430
+ modifiers
1431
+ );
1432
+
1433
+ expect(tools).toBe('mocked-wrapped-tools');
1434
+ });
1435
+
1436
+ it('should handle tools fetching errors', async () => {
1437
+ mockClient.toolRouter.session.create.mockResolvedValueOnce(mockSessionCreateResponse);
1438
+
1439
+ (Tools as any).mockImplementation(() => ({
1440
+ get: vi.fn().mockRejectedValue(new Error('Failed to fetch tools')),
1441
+ }));
1442
+
1443
+ const session = await toolRouter.create(userId);
1444
+
1445
+ await expect(session.tools()).rejects.toThrow('Failed to fetch tools');
1446
+ });
1447
+
1448
+ it('should call tools function multiple times with different modifiers', async () => {
1449
+ mockClient.toolRouter.session.create.mockResolvedValueOnce(mockSessionCreateResponse);
1450
+
1451
+ const modifier1 = { modifySchema: vi.fn() };
1452
+ const modifier2 = { modifySchema: vi.fn() };
1453
+
1454
+ const session = await toolRouter.create(userId);
1455
+
1456
+ // Each call to session.tools() creates a new Tools instance
1457
+ // So we need to check that Tools was called twice and each instance's get method was called once
1458
+ await session.tools(modifier1);
1459
+ await session.tools(modifier2);
1460
+
1461
+ expect(Tools).toHaveBeenCalledTimes(2);
1462
+
1463
+ const firstToolsInstance = (Tools as any).mock.results[0].value;
1464
+ expect(firstToolsInstance.get).toHaveBeenCalledWith(
1465
+ userId,
1466
+ {
1467
+ tools: ['GMAIL_FETCH_EMAILS', 'SLACK_SEND_MESSAGE', 'GITHUB_CREATE_ISSUE'],
1468
+ },
1469
+ modifier1
1470
+ );
1471
+
1472
+ const secondToolsInstance = (Tools as any).mock.results[1].value;
1473
+ expect(secondToolsInstance.get).toHaveBeenCalledWith(
1474
+ userId,
1475
+ {
1476
+ tools: ['GMAIL_FETCH_EMAILS', 'SLACK_SEND_MESSAGE', 'GITHUB_CREATE_ISSUE'],
1477
+ },
1478
+ modifier2
1479
+ );
1480
+ });
1481
+
1482
+ it('should use tool slugs from session response', async () => {
1483
+ const customResponse = {
1484
+ ...mockSessionCreateResponse,
1485
+ session_id: 'custom_session_123',
1486
+ tool_router_tools: ['CUSTOM_TOOL_1', 'CUSTOM_TOOL_2'],
1487
+ };
1488
+
1489
+ mockClient.toolRouter.session.create.mockResolvedValueOnce(customResponse);
1490
+
1491
+ const newSession = await toolRouter.create(userId);
1492
+ await newSession.tools();
1493
+
1494
+ expect(Tools).toHaveBeenCalledWith(mockClient, { provider: mockProvider });
1495
+ const toolsInstance = (Tools as any).mock.results[0].value;
1496
+ expect(toolsInstance.get).toHaveBeenCalledWith(
1497
+ userId,
1498
+ {
1499
+ tools: ['CUSTOM_TOOL_1', 'CUSTOM_TOOL_2'],
1500
+ },
1501
+ undefined
1502
+ );
1503
+ });
1504
+
1505
+ it('should handle empty tool router tools array', async () => {
1506
+ const emptyToolsResponse = {
1507
+ ...mockSessionCreateResponse,
1508
+ session_id: 'empty_session_123',
1509
+ tool_router_tools: [],
1510
+ };
1511
+
1512
+ mockClient.toolRouter.session.create.mockResolvedValueOnce(emptyToolsResponse);
1513
+
1514
+ const session = await toolRouter.create(userId);
1515
+ await session.tools();
1516
+
1517
+ expect(Tools).toHaveBeenCalledWith(mockClient, { provider: mockProvider });
1518
+ const toolsInstance = (Tools as any).mock.results[0].value;
1519
+ expect(toolsInstance.get).toHaveBeenCalledWith(
1520
+ userId,
1521
+ {
1522
+ tools: [],
1523
+ },
1524
+ undefined
1525
+ );
1526
+ });
1527
+ });
1528
+
1529
+ describe('integration tests', () => {
1530
+ const userId = 'user_123';
1531
+
1532
+ it('should create a complete session and use all functions', async () => {
1533
+ mockClient.toolRouter.session.create.mockResolvedValueOnce(mockSessionCreateResponse);
1534
+ mockClient.toolRouter.session.link.mockResolvedValueOnce(mockLinkResponse);
1535
+ mockClient.toolRouter.session.toolkits.mockResolvedValueOnce(mockToolkitsResponse);
1536
+
1537
+ // Create session
1538
+ const session = await toolRouter.create(userId, {
1539
+ toolkits: ['gmail', 'slack'],
1540
+ manageConnections: true,
1541
+ });
1542
+
1543
+ expect(session.sessionId).toBe('session_123');
1544
+ expect(session.mcp.url).toBe('https://mcp.example.com/session_123');
1545
+
1546
+ // Use authorize function
1547
+ const connection = await session.authorize('gmail');
1548
+ expect(connection.id).toBe('conn_456');
1549
+
1550
+ // Use toolkits function
1551
+ const toolkits = await session.toolkits();
1552
+ expect(toolkits.items).toHaveLength(3);
1553
+
1554
+ // Use tools function
1555
+ const tools = await session.tools();
1556
+ expect(tools).toBe('mocked-wrapped-tools');
1557
+
1558
+ // Verify all API calls were made
1559
+ expect(mockClient.toolRouter.session.create).toHaveBeenCalledTimes(1);
1560
+ expect(mockClient.toolRouter.session.link).toHaveBeenCalledTimes(1);
1561
+ expect(mockClient.toolRouter.session.toolkits).toHaveBeenCalledTimes(1);
1562
+ });
1563
+
1564
+ it('should handle multiple sessions independently', async () => {
1565
+ const session1Response = {
1566
+ ...mockSessionCreateResponse,
1567
+ session_id: 'session_1',
1568
+ };
1569
+
1570
+ const session2Response = {
1571
+ ...mockSessionCreateResponse,
1572
+ session_id: 'session_2',
1573
+ };
1574
+
1575
+ mockClient.toolRouter.session.create
1576
+ .mockResolvedValueOnce(session1Response)
1577
+ .mockResolvedValueOnce(session2Response);
1578
+
1579
+ mockClient.toolRouter.session.toolkits.mockResolvedValue(mockToolkitsResponse);
1580
+
1581
+ const session1 = await toolRouter.create('user_1');
1582
+ const session2 = await toolRouter.create('user_2');
1583
+
1584
+ expect(session1.sessionId).toBe('session_1');
1585
+ expect(session2.sessionId).toBe('session_2');
1586
+
1587
+ await session1.toolkits();
1588
+ await session2.toolkits();
1589
+
1590
+ expect(mockClient.toolRouter.session.toolkits).toHaveBeenCalledWith('session_1', {
1591
+ cursor: undefined,
1592
+ limit: undefined,
1593
+ toolkits: undefined,
1594
+ });
1595
+ expect(mockClient.toolRouter.session.toolkits).toHaveBeenCalledWith('session_2', {
1596
+ cursor: undefined,
1597
+ limit: undefined,
1598
+ toolkits: undefined,
1599
+ });
1600
+ });
1601
+
1602
+ it('should handle rapid successive calls', async () => {
1603
+ mockClient.toolRouter.session.create.mockResolvedValue(mockSessionCreateResponse);
1604
+ mockClient.toolRouter.session.toolkits.mockResolvedValue(mockToolkitsResponse);
1605
+
1606
+ const session = await toolRouter.create(userId);
1607
+
1608
+ // Make multiple rapid calls
1609
+ const promises = [session.toolkits(), session.toolkits(), session.toolkits()];
1610
+
1611
+ const results = await Promise.all(promises);
1612
+
1613
+ expect(results).toHaveLength(3);
1614
+ results.forEach(result => {
1615
+ expect(result.items).toHaveLength(3);
1616
+ });
1617
+
1618
+ expect(mockClient.toolRouter.session.toolkits).toHaveBeenCalledTimes(3);
1619
+ });
1620
+ });
1621
+
1622
+ describe('use method', () => {
1623
+ const sessionId = 'session_123';
1624
+
1625
+ it('should retrieve an existing session by ID', async () => {
1626
+ mockClient.toolRouter.session.retrieve.mockResolvedValueOnce(mockSessionRetrieveResponse);
1627
+
1628
+ const session = await toolRouter.use(sessionId);
1629
+
1630
+ expect(mockClient.toolRouter.session.retrieve).toHaveBeenCalledWith(sessionId);
1631
+ expect(session).toHaveProperty('sessionId', 'session_123');
1632
+ expect(session).toHaveProperty('mcp');
1633
+ expect(session.mcp).toEqual({
1634
+ type: 'HTTP',
1635
+ url: 'https://mcp.example.com/session_123',
1636
+ });
1637
+ expect(session).toHaveProperty('tools');
1638
+ expect(session).toHaveProperty('authorize');
1639
+ expect(session).toHaveProperty('toolkits');
1640
+ });
1641
+
1642
+ it('should return a session with correct user ID from config', async () => {
1643
+ const customResponse = {
1644
+ ...mockSessionRetrieveResponse,
1645
+ config: {
1646
+ ...mockSessionRetrieveResponse.config,
1647
+ user_id: 'custom_user_456',
1648
+ },
1649
+ };
1650
+
1651
+ mockClient.toolRouter.session.retrieve.mockResolvedValueOnce(customResponse);
1652
+
1653
+ const session = await toolRouter.use(sessionId);
1654
+
1655
+ expect(session.sessionId).toBe('session_123');
1656
+ // The tools function should be created with the correct user ID from config
1657
+ expect(session.tools).toBeDefined();
1658
+ });
1659
+
1660
+ it('should return a session with working tools function', async () => {
1661
+ mockClient.toolRouter.session.retrieve.mockResolvedValueOnce(mockSessionRetrieveResponse);
1662
+
1663
+ const session = await toolRouter.use(sessionId);
1664
+
1665
+ const tools = await session.tools();
1666
+
1667
+ expect(tools).toBe('mocked-wrapped-tools');
1668
+ expect(Tools).toHaveBeenCalled();
1669
+ });
1670
+
1671
+ it('should return a session with working authorize function', async () => {
1672
+ mockClient.toolRouter.session.retrieve.mockResolvedValueOnce(mockSessionRetrieveResponse);
1673
+ mockClient.toolRouter.session.link.mockResolvedValueOnce(mockLinkResponse);
1674
+
1675
+ const session = await toolRouter.use(sessionId);
1676
+
1677
+ const connectionRequest = await session.authorize('github');
1678
+
1679
+ expect(mockClient.toolRouter.session.link).toHaveBeenCalledWith(sessionId, {
1680
+ toolkit: 'github',
1681
+ });
1682
+ expect(connectionRequest).toHaveProperty('redirectUrl', 'https://composio.dev/auth/redirect');
1683
+ expect(connectionRequest).toHaveProperty('status', ConnectedAccountStatuses.INITIATED);
1684
+ });
1685
+
1686
+ it('should return a session with working toolkits function', async () => {
1687
+ mockClient.toolRouter.session.retrieve.mockResolvedValueOnce(mockSessionRetrieveResponse);
1688
+ mockClient.toolRouter.session.toolkits.mockResolvedValueOnce(mockToolkitsResponse);
1689
+
1690
+ const session = await toolRouter.use(sessionId);
1691
+
1692
+ const toolkitsResult = await session.toolkits();
1693
+
1694
+ expect(mockClient.toolRouter.session.toolkits).toHaveBeenCalledWith(sessionId, {
1695
+ cursor: undefined,
1696
+ limit: undefined,
1697
+ toolkits: undefined,
1698
+ });
1699
+ expect(toolkitsResult.items).toHaveLength(3);
1700
+ expect(toolkitsResult.items[0].slug).toBe('gmail');
1701
+ });
1702
+
1703
+ it('should handle different session IDs', async () => {
1704
+ const session1Response = {
1705
+ ...mockSessionRetrieveResponse,
1706
+ session_id: 'session_1',
1707
+ };
1708
+
1709
+ const session2Response = {
1710
+ ...mockSessionRetrieveResponse,
1711
+ session_id: 'session_2',
1712
+ };
1713
+
1714
+ mockClient.toolRouter.session.retrieve
1715
+ .mockResolvedValueOnce(session1Response)
1716
+ .mockResolvedValueOnce(session2Response);
1717
+
1718
+ const session1 = await toolRouter.use('session_1');
1719
+ const session2 = await toolRouter.use('session_2');
1720
+
1721
+ expect(session1.sessionId).toBe('session_1');
1722
+ expect(session2.sessionId).toBe('session_2');
1723
+ expect(mockClient.toolRouter.session.retrieve).toHaveBeenCalledTimes(2);
1724
+ });
1725
+
1726
+ it('should handle MCP server type correctly', async () => {
1727
+ mockClient.toolRouter.session.retrieve.mockResolvedValueOnce(mockSessionRetrieveResponse);
1728
+
1729
+ const session = await toolRouter.use(sessionId);
1730
+
1731
+ expect(session.mcp.type).toBe('HTTP');
1732
+ expect(session.mcp.url).toBe('https://mcp.example.com/session_123');
1733
+ });
1734
+
1735
+ it('should throw error if session retrieve fails', async () => {
1736
+ const error = new Error('Session not found');
1737
+ mockClient.toolRouter.session.retrieve.mockRejectedValueOnce(error);
1738
+
1739
+ await expect(toolRouter.use(sessionId)).rejects.toThrow('Session not found');
1740
+ expect(mockClient.toolRouter.session.retrieve).toHaveBeenCalledWith(sessionId);
1741
+ });
1742
+
1743
+ it('should handle retrieve with different tool lists', async () => {
1744
+ const customResponse = {
1745
+ ...mockSessionRetrieveResponse,
1746
+ tool_router_tools: ['CUSTOM_TOOL_1', 'CUSTOM_TOOL_2'],
1747
+ };
1748
+
1749
+ mockClient.toolRouter.session.retrieve.mockResolvedValueOnce(customResponse);
1750
+
1751
+ const session = await toolRouter.use(sessionId);
1752
+
1753
+ expect(session).toBeDefined();
1754
+ expect(session.sessionId).toBe('session_123');
1755
+ });
1756
+
1757
+ it('should be independent from create method', async () => {
1758
+ mockClient.toolRouter.session.create.mockResolvedValueOnce(mockSessionCreateResponse);
1759
+ mockClient.toolRouter.session.retrieve.mockResolvedValueOnce(mockSessionRetrieveResponse);
1760
+
1761
+ // Create a new session
1762
+ const createdSession = await toolRouter.create('user_123');
1763
+ expect(createdSession.sessionId).toBe('session_123');
1764
+
1765
+ // Use an existing session
1766
+ const retrievedSession = await toolRouter.use('session_123');
1767
+ expect(retrievedSession.sessionId).toBe('session_123');
1768
+
1769
+ // Both should have been called once
1770
+ expect(mockClient.toolRouter.session.create).toHaveBeenCalledTimes(1);
1771
+ expect(mockClient.toolRouter.session.retrieve).toHaveBeenCalledTimes(1);
1772
+ });
1773
+ });
1774
+});
ts/packages/core/test/tools/fileModifiers.test.ts
+2
-1
@@ -365,7 +365,8 @@ describe('Tools with autoUploadDownloadFiles', () => {
365
366
describe('when autoUploadDownloadFiles is false', () => {
367
beforeEach(async () => {
368
- context.tools = new Tools(mockClient as unknown as ComposioClient, context.mockProvider, {
368
+ context.tools = new Tools(mockClient as unknown as ComposioClient, {
369
+ provider: context.mockProvider,
370
autoUploadDownloadFiles: false,
371
});
372
ts/packages/core/test/tools/tools.test.ts
+33
-17
@@ -19,7 +19,7 @@ describe('Tools', () => {
19
20
describe('constructor', () => {
21
it('should throw an error if client is not provided', () => {
22
- expect(() => new Tools(null as any, context.mockProvider)).toThrow(
22
+ expect(() => new Tools(null as any, { provider: context.mockProvider })).toThrow(
23
'ComposioClient is required'
24
);
25
});
@@ -742,7 +742,8 @@ describe('Tools', () => {
742
743
it('should pass global version string when configured', async () => {
744
const mockProvider = new MockProvider();
745
- const tools = new Tools(mockClient as unknown as ComposioClient, mockProvider, {
745
+ const tools = new Tools(mockClient as unknown as ComposioClient, {
746
+ provider: mockProvider,
747
toolkitVersions: '20251201_03' as any,
748
});
749
@@ -761,7 +762,8 @@ describe('Tools', () => {
762
763
it('should pass toolkit-specific versions when configured as object', async () => {
764
const mockProvider = new MockProvider();
764
- const tools = new Tools(mockClient as unknown as ComposioClient, mockProvider, {
765
+ const tools = new Tools(mockClient as unknown as ComposioClient, {
766
+ provider: mockProvider,
767
toolkitVersions: {
768
github: '20251201_01',
769
slack: 'latest',
@@ -788,7 +790,8 @@ describe('Tools', () => {
790
791
it('should pass versions when fetching tools by tool slugs', async () => {
792
const mockProvider = new MockProvider();
791
- const tools = new Tools(mockClient as unknown as ComposioClient, mockProvider, {
793
+ const tools = new Tools(mockClient as unknown as ComposioClient, {
794
+ provider: mockProvider,
795
toolkitVersions: {
796
github: '20251201_01',
797
slack: 'latest',
@@ -814,7 +817,8 @@ describe('Tools', () => {
817
818
it('should pass versions when searching tools', async () => {
819
const mockProvider = new MockProvider();
817
- const tools = new Tools(mockClient as unknown as ComposioClient, mockProvider, {
820
+ const tools = new Tools(mockClient as unknown as ComposioClient, {
821
+ provider: mockProvider,
822
toolkitVersions: 'latest',
823
});
824
@@ -847,7 +851,8 @@ describe('Tools', () => {
851
852
it('should pass global version when retrieving single tool', async () => {
853
const mockProvider = new MockProvider();
850
- const tools = new Tools(mockClient as unknown as ComposioClient, mockProvider, {
854
+ const tools = new Tools(mockClient as unknown as ComposioClient, {
855
+ provider: mockProvider,
856
toolkitVersions: '20251201_03' as any,
857
});
858
@@ -862,7 +867,8 @@ describe('Tools', () => {
867
868
it('should pass toolkit-specific versions when retrieving single tool', async () => {
869
const mockProvider = new MockProvider();
865
- const tools = new Tools(mockClient as unknown as ComposioClient, mockProvider, {
870
+ const tools = new Tools(mockClient as unknown as ComposioClient, {
871
+ provider: mockProvider,
872
toolkitVersions: {
873
github: '20251201_01',
874
slack: 'latest',
@@ -911,7 +917,8 @@ describe('Tools', () => {
917
918
it('should use global version when configured', async () => {
919
const mockProvider = new MockProvider();
914
- const tools = new Tools(mockClient as unknown as ComposioClient, mockProvider, {
920
+ const tools = new Tools(mockClient as unknown as ComposioClient, {
921
+ provider: mockProvider,
922
toolkitVersions: '20251201_03' as any,
923
});
924
const spies = await mockToolExecution(tools);
@@ -937,7 +944,8 @@ describe('Tools', () => {
944
945
it('should use toolkit-specific version when configured as object', async () => {
946
const mockProvider = new MockProvider();
940
- const tools = new Tools(mockClient as unknown as ComposioClient, mockProvider, {
947
+ const tools = new Tools(mockClient as unknown as ComposioClient, {
948
+ provider: mockProvider,
949
toolkitVersions: {
950
'test-toolkit': '20251201_01', // Use the actual toolkit slug from mock
951
slack: 'latest',
@@ -977,7 +985,8 @@ describe('Tools', () => {
985
986
it('should use fallback to "latest" when toolkit not in version mapping', async () => {
987
const mockProvider = new MockProvider();
980
- const tools = new Tools(mockClient as unknown as ComposioClient, mockProvider, {
988
+ const tools = new Tools(mockClient as unknown as ComposioClient, {
989
+ provider: mockProvider,
990
toolkitVersions: {
991
github: '20251201_01',
992
slack: 'latest',
@@ -1015,7 +1024,8 @@ describe('Tools', () => {
1024
1025
it('should prioritize explicit version parameter over configured versions', async () => {
1026
const mockProvider = new MockProvider();
1018
- const tools = new Tools(mockClient as unknown as ComposioClient, mockProvider, {
1027
+ const tools = new Tools(mockClient as unknown as ComposioClient, {
1028
+ provider: mockProvider,
1029
toolkitVersions: {
1030
github: '20251201_01',
1031
slack: 'latest',
@@ -1046,7 +1056,8 @@ describe('Tools', () => {
1056
1057
it('should handle tool without toolkit gracefully', async () => {
1058
const mockProvider = new MockProvider();
1049
- const tools = new Tools(mockClient as unknown as ComposioClient, mockProvider, {
1059
+ const tools = new Tools(mockClient as unknown as ComposioClient, {
1060
+ provider: mockProvider,
1061
toolkitVersions: {
1062
github: '20251201_01',
1063
},
@@ -1102,7 +1113,8 @@ describe('Tools', () => {
1113
1114
const mockProvider = new MockProvider();
1115
// Pass the processed environment variables to the Tools constructor
1105
- const tools = new Tools(mockClient as unknown as ComposioClient, mockProvider, {
1116
+ const tools = new Tools(mockClient as unknown as ComposioClient, {
1117
+ provider: mockProvider,
1118
toolkitVersions: {
1119
github: '20251201_08',
1120
slack: 'latest',
@@ -1131,7 +1143,8 @@ describe('Tools', () => {
1143
process.env.COMPOSIO_TOOLKIT_VERSION_SLACK = 'latest';
1144
1145
const mockProvider = new MockProvider();
1134
- const tools = new Tools(mockClient as unknown as ComposioClient, mockProvider, {
1146
+ const tools = new Tools(mockClient as unknown as ComposioClient, {
1147
+ provider: mockProvider,
1148
toolkitVersions: {
1149
github: '20251201_04', // should override env
1150
gmail: '20251201_05', // new toolkit not in env
@@ -1160,7 +1173,8 @@ describe('Tools', () => {
1173
process.env.COMPOSIO_TOOLKIT_VERSION_SLACK = 'latest';
1174
1175
const mockProvider = new MockProvider();
1163
- const tools = new Tools(mockClient as unknown as ComposioClient, mockProvider, {
1176
+ const tools = new Tools(mockClient as unknown as ComposioClient, {
1177
+ provider: mockProvider,
1178
toolkitVersions: '20251201_09' as any, // global version overrides everything
1179
});
1180
@@ -1236,7 +1250,8 @@ describe('Tools', () => {
1250
1251
it('should succeed when executing with a specific version (not "latest") without dangerouslySkipVersionCheck', async () => {
1252
const mockProvider = new MockProvider();
1239
- const tools = new Tools(mockClient as unknown as ComposioClient, mockProvider, {
1253
+ const tools = new Tools(mockClient as unknown as ComposioClient, {
1254
+ provider: mockProvider,
1255
toolkitVersions: {
1256
'test-toolkit': '20251201_01',
1257
},
@@ -1300,7 +1315,8 @@ describe('Tools', () => {
1315
1316
it('should throw error when explicit version parameter is "latest" without dangerouslySkipVersionCheck', async () => {
1317
const mockProvider = new MockProvider();
1303
- const tools = new Tools(mockClient as unknown as ComposioClient, mockProvider, {
1318
+ const tools = new Tools(mockClient as unknown as ComposioClient, {
1319
+ provider: mockProvider,
1320
toolkitVersions: {
1321
'test-toolkit': '20251201_01', // specific version in config
1322
},
ts/packages/core/test/utils/pagination.test.ts
new
+437
@@ -0,0 +1,437 @@
1
+import { describe, it, expect, vi, beforeEach } from 'vitest';
2
+import { getAllPages } from '../../src/utils/pagination';
3
+
4
+describe('pagination', () => {
5
+ describe('getAllPages', () => {
6
+ beforeEach(() => {
7
+ vi.clearAllMocks();
8
+ });
9
+
10
+ it('should return all items from a single page response', async () => {
11
+ const mockFetch = vi.fn().mockResolvedValueOnce({
12
+ items: [{ id: 1, name: 'Item 1' }],
13
+ next_cursor: null,
14
+ });
15
+
16
+ const result = await getAllPages(mockFetch);
17
+
18
+ expect(result).toEqual([{ id: 1, name: 'Item 1' }]);
19
+ expect(mockFetch).toHaveBeenCalledTimes(1);
20
+ expect(mockFetch).toHaveBeenCalledWith({
21
+ limit: 100,
22
+ });
23
+ });
24
+
25
+ it('should handle multiple pages with cursor', async () => {
26
+ const mockFetch = vi
27
+ .fn()
28
+ .mockResolvedValueOnce({
29
+ items: [{ id: 1, name: 'Item 1' }],
30
+ next_cursor: 'cursor-1',
31
+ })
32
+ .mockResolvedValueOnce({
33
+ items: [{ id: 2, name: 'Item 2' }],
34
+ next_cursor: 'cursor-2',
35
+ })
36
+ .mockResolvedValueOnce({
37
+ items: [{ id: 3, name: 'Item 3' }],
38
+ next_cursor: null,
39
+ });
40
+
41
+ const result = await getAllPages(mockFetch);
42
+
43
+ expect(result).toEqual([
44
+ { id: 1, name: 'Item 1' },
45
+ { id: 2, name: 'Item 2' },
46
+ { id: 3, name: 'Item 3' },
47
+ ]);
48
+ expect(mockFetch).toHaveBeenCalledTimes(3);
49
+ expect(mockFetch).toHaveBeenNthCalledWith(1, {
50
+ limit: 100,
51
+ });
52
+ expect(mockFetch).toHaveBeenNthCalledWith(2, {
53
+ cursor: 'cursor-1',
54
+ limit: 100,
55
+ });
56
+ expect(mockFetch).toHaveBeenNthCalledWith(3, {
57
+ cursor: 'cursor-2',
58
+ limit: 100,
59
+ });
60
+ });
61
+
62
+ it('should handle empty response', async () => {
63
+ const mockFetch = vi.fn().mockResolvedValueOnce({
64
+ items: [],
65
+ next_cursor: null,
66
+ });
67
+
68
+ const result = await getAllPages(mockFetch);
69
+
70
+ expect(result).toEqual([]);
71
+ expect(mockFetch).toHaveBeenCalledTimes(1);
72
+ });
73
+
74
+ it('should handle response with undefined next_cursor', async () => {
75
+ const mockFetch = vi.fn().mockResolvedValueOnce({
76
+ items: [{ id: 1, name: 'Item 1' }],
77
+ next_cursor: undefined,
78
+ });
79
+
80
+ const result = await getAllPages(mockFetch);
81
+
82
+ expect(result).toEqual([{ id: 1, name: 'Item 1' }]);
83
+ expect(mockFetch).toHaveBeenCalledTimes(1);
84
+ });
85
+
86
+ it('should stop pagination when next_cursor is null', async () => {
87
+ const mockFetch = vi
88
+ .fn()
89
+ .mockResolvedValueOnce({
90
+ items: [{ id: 1 }],
91
+ next_cursor: 'cursor-1',
92
+ })
93
+ .mockResolvedValueOnce({
94
+ items: [{ id: 2 }],
95
+ next_cursor: null,
96
+ });
97
+
98
+ const result = await getAllPages(mockFetch);
99
+
100
+ expect(result).toEqual([{ id: 1 }, { id: 2 }]);
101
+ expect(mockFetch).toHaveBeenCalledTimes(2);
102
+ });
103
+
104
+ it('should stop pagination when next_cursor is undefined', async () => {
105
+ const mockFetch = vi
106
+ .fn()
107
+ .mockResolvedValueOnce({
108
+ items: [{ id: 1 }],
109
+ next_cursor: 'cursor-1',
110
+ })
111
+ .mockResolvedValueOnce({
112
+ items: [{ id: 2 }],
113
+ next_cursor: undefined,
114
+ });
115
+
116
+ const result = await getAllPages(mockFetch);
117
+
118
+ expect(result).toEqual([{ id: 1 }, { id: 2 }]);
119
+ expect(mockFetch).toHaveBeenCalledTimes(2);
120
+ });
121
+
122
+ it('should always use limit of 100', async () => {
123
+ const mockFetch = vi
124
+ .fn()
125
+ .mockResolvedValueOnce({
126
+ items: Array.from({ length: 50 }, (_, i) => ({ id: i + 1 })),
127
+ next_cursor: 'cursor-1',
128
+ })
129
+ .mockResolvedValueOnce({
130
+ items: Array.from({ length: 30 }, (_, i) => ({ id: i + 51 })),
131
+ next_cursor: null,
132
+ });
133
+
134
+ await getAllPages(mockFetch);
135
+
136
+ expect(mockFetch).toHaveBeenNthCalledWith(1, {
137
+ limit: 100,
138
+ });
139
+ expect(mockFetch).toHaveBeenNthCalledWith(2, {
140
+ cursor: 'cursor-1',
141
+ limit: 100,
142
+ });
143
+ });
144
+
145
+ it('should handle large datasets across many pages', async () => {
146
+ const pageSize = 100;
147
+ const totalPages = 5;
148
+ const mockFetch = vi.fn();
149
+
150
+ // Create 5 pages, each with 100 items
151
+ for (let page = 0; page < totalPages; page++) {
152
+ const items = Array.from({ length: pageSize }, (_, i) => ({
153
+ id: page * pageSize + i + 1,
154
+ name: `Item ${page * pageSize + i + 1}`,
155
+ }));
156
+
157
+ mockFetch.mockResolvedValueOnce({
158
+ items,
159
+ next_cursor: page < totalPages - 1 ? `cursor-${page + 1}` : null,
160
+ });
161
+ }
162
+
163
+ const result = await getAllPages(mockFetch);
164
+
165
+ expect(result).toHaveLength(pageSize * totalPages);
166
+ expect(result[0]).toEqual({ id: 1, name: 'Item 1' });
167
+ expect(result[result.length - 1]).toEqual({
168
+ id: pageSize * totalPages,
169
+ name: `Item ${pageSize * totalPages}`,
170
+ });
171
+ expect(mockFetch).toHaveBeenCalledTimes(totalPages);
172
+ });
173
+
174
+ it('should handle pages with varying item counts', async () => {
175
+ type Item = { id: number };
176
+ type PaginationParams = {
177
+ cursor?: string;
178
+ limit: number;
179
+ };
180
+
181
+ const mockFetch = vi
182
+ .fn<
183
+ (params: PaginationParams) => Promise<{
184
+ items: Array<Item>;
185
+ next_cursor?: string | null;
186
+ }>
187
+ >()
188
+ .mockResolvedValueOnce({
189
+ items: [{ id: 1 }, { id: 2 }, { id: 3 }],
190
+ next_cursor: 'cursor-1',
191
+ })
192
+ .mockResolvedValueOnce({
193
+ items: [{ id: 4 }],
194
+ next_cursor: 'cursor-2',
195
+ })
196
+ .mockResolvedValueOnce({
197
+ items: [{ id: 5 }, { id: 6 }, { id: 7 }, { id: 8 }, { id: 9 }],
198
+ next_cursor: null,
199
+ });
200
+
201
+ const result = await getAllPages(mockFetch);
202
+
203
+ expect(result).toHaveLength(9);
204
+ expect(result.map(item => item.id)).toEqual([1, 2, 3, 4, 5, 6, 7, 8, 9]);
205
+ });
206
+
207
+ it('should not include cursor in first request', async () => {
208
+ const mockFetch = vi.fn().mockResolvedValueOnce({
209
+ items: [{ id: 1 }],
210
+ next_cursor: null,
211
+ });
212
+
213
+ await getAllPages(mockFetch);
214
+
215
+ const firstCall = mockFetch.mock.calls[0][0];
216
+ expect(firstCall).not.toHaveProperty('cursor');
217
+ expect(firstCall).toEqual({ limit: 100 });
218
+ });
219
+
220
+ it('should include cursor in subsequent requests', async () => {
221
+ const mockFetch = vi
222
+ .fn()
223
+ .mockResolvedValueOnce({
224
+ items: [{ id: 1 }],
225
+ next_cursor: 'cursor-1',
226
+ })
227
+ .mockResolvedValueOnce({
228
+ items: [{ id: 2 }],
229
+ next_cursor: null,
230
+ });
231
+
232
+ await getAllPages(mockFetch);
233
+
234
+ const secondCall = mockFetch.mock.calls[1][0];
235
+ expect(secondCall).toHaveProperty('cursor', 'cursor-1');
236
+ expect(secondCall).toHaveProperty('limit', 100);
237
+ });
238
+
239
+ it('should handle complex item types', async () => {
240
+ interface ComplexItem {
241
+ id: string;
242
+ metadata: {
243
+ tags: string[];
244
+ score: number;
245
+ };
246
+ createdAt: Date;
247
+ }
248
+ type PaginationParams = {
249
+ cursor?: string;
250
+ limit: number;
251
+ };
252
+
253
+ const mockFetch = vi
254
+ .fn<
255
+ (params: PaginationParams) => Promise<{
256
+ items: Array<ComplexItem>;
257
+ next_cursor?: string | null;
258
+ }>
259
+ >()
260
+ .mockResolvedValueOnce({
261
+ items: [
262
+ {
263
+ id: 'item-1',
264
+ metadata: { tags: ['tag1', 'tag2'], score: 95 },
265
+ createdAt: new Date('2024-01-01'),
266
+ },
267
+ {
268
+ id: 'item-2',
269
+ metadata: { tags: ['tag3'], score: 87 },
270
+ createdAt: new Date('2024-01-02'),
271
+ },
272
+ ],
273
+ next_cursor: null,
274
+ });
275
+
276
+ const result = await getAllPages(mockFetch);
277
+
278
+ expect(result).toHaveLength(2);
279
+ expect(result[0].id).toBe('item-1');
280
+ expect(result[0].metadata.tags).toEqual(['tag1', 'tag2']);
281
+ expect(result[1].id).toBe('item-2');
282
+ });
283
+
284
+ it('should handle fetch function that captures closure variables', async () => {
285
+ const baseParam = { filter: 'active' };
286
+ const mockFetch = vi.fn().mockResolvedValueOnce({
287
+ items: [{ id: 1, status: 'active' }],
288
+ next_cursor: null,
289
+ });
290
+
291
+ await getAllPages(params => {
292
+ // Simulate a function that uses closure variables
293
+ expect(params.limit).toBe(100);
294
+ return mockFetch({ ...baseParam, ...params });
295
+ });
296
+
297
+ expect(mockFetch).toHaveBeenCalledTimes(1);
298
+ });
299
+
300
+ it('should handle empty items array with cursor', async () => {
301
+ const mockFetch = vi
302
+ .fn()
303
+ .mockResolvedValueOnce({
304
+ items: [],
305
+ next_cursor: 'cursor-1',
306
+ })
307
+ .mockResolvedValueOnce({
308
+ items: [{ id: 1 }],
309
+ next_cursor: null,
310
+ });
311
+
312
+ const result = await getAllPages(mockFetch);
313
+
314
+ expect(result).toEqual([{ id: 1 }]);
315
+ expect(mockFetch).toHaveBeenCalledTimes(2);
316
+ });
317
+
318
+ it('should handle all pages having empty items', async () => {
319
+ const mockFetch = vi
320
+ .fn()
321
+ .mockResolvedValueOnce({
322
+ items: [],
323
+ next_cursor: 'cursor-1',
324
+ })
325
+ .mockResolvedValueOnce({
326
+ items: [],
327
+ next_cursor: 'cursor-2',
328
+ })
329
+ .mockResolvedValueOnce({
330
+ items: [],
331
+ next_cursor: null,
332
+ });
333
+
334
+ const result = await getAllPages(mockFetch);
335
+
336
+ expect(result).toEqual([]);
337
+ expect(mockFetch).toHaveBeenCalledTimes(3);
338
+ });
339
+
340
+ it('should handle cursor with special characters', async () => {
341
+ const specialCursor = 'cursor-with-special-chars-!@#$%^&*()';
342
+ const mockFetch = vi
343
+ .fn()
344
+ .mockResolvedValueOnce({
345
+ items: [{ id: 1 }],
346
+ next_cursor: specialCursor,
347
+ })
348
+ .mockResolvedValueOnce({
349
+ items: [{ id: 2 }],
350
+ next_cursor: null,
351
+ });
352
+
353
+ const result = await getAllPages(mockFetch);
354
+
355
+ expect(result).toEqual([{ id: 1 }, { id: 2 }]);
356
+ expect(mockFetch).toHaveBeenNthCalledWith(2, {
357
+ cursor: specialCursor,
358
+ limit: 100,
359
+ });
360
+ });
361
+
362
+ it('should handle very long cursor strings', async () => {
363
+ const longCursor = 'a'.repeat(1000);
364
+ const mockFetch = vi
365
+ .fn()
366
+ .mockResolvedValueOnce({
367
+ items: [{ id: 1 }],
368
+ next_cursor: longCursor,
369
+ })
370
+ .mockResolvedValueOnce({
371
+ items: [{ id: 2 }],
372
+ next_cursor: null,
373
+ });
374
+
375
+ const result = await getAllPages(mockFetch);
376
+
377
+ expect(result).toEqual([{ id: 1 }, { id: 2 }]);
378
+ expect(mockFetch).toHaveBeenNthCalledWith(2, {
379
+ cursor: longCursor,
380
+ limit: 100,
381
+ });
382
+ });
383
+
384
+ it('should preserve item order across pages', async () => {
385
+ type Item = { id: number };
386
+ type PaginationParams = {
387
+ cursor?: string;
388
+ limit: number;
389
+ };
390
+
391
+ const mockFetch = vi
392
+ .fn<
393
+ (params: PaginationParams) => Promise<{
394
+ items: Array<Item>;
395
+ next_cursor?: string | null;
396
+ }>
397
+ >()
398
+ .mockResolvedValueOnce({
399
+ items: [{ id: 1 }, { id: 2 }, { id: 3 }],
400
+ next_cursor: 'cursor-1',
401
+ })
402
+ .mockResolvedValueOnce({
403
+ items: [{ id: 4 }, { id: 5 }],
404
+ next_cursor: 'cursor-2',
405
+ })
406
+ .mockResolvedValueOnce({
407
+ items: [{ id: 6 }, { id: 7 }, { id: 8 }],
408
+ next_cursor: null,
409
+ });
410
+
411
+ const result = await getAllPages(mockFetch);
412
+
413
+ expect(result.map(item => item.id)).toEqual([1, 2, 3, 4, 5, 6, 7, 8]);
414
+ });
415
+
416
+ it('should handle async fetch function errors', async () => {
417
+ const mockFetch = vi
418
+ .fn()
419
+ .mockResolvedValueOnce({
420
+ items: [{ id: 1 }],
421
+ next_cursor: 'cursor-1',
422
+ })
423
+ .mockRejectedValueOnce(new Error('Network error'));
424
+
425
+ await expect(getAllPages(mockFetch)).rejects.toThrow('Network error');
426
+ expect(mockFetch).toHaveBeenCalledTimes(2);
427
+ });
428
+
429
+ it('should handle fetch function that throws synchronously', async () => {
430
+ const mockFetch = vi.fn().mockImplementation(() => {
431
+ throw new Error('Synchronous error');
432
+ });
433
+
434
+ await expect(getAllPages(mockFetch)).rejects.toThrow('Synchronous error');
435
+ });
436
+ });
437
+});
ts/packages/core/test/utils/toolExecuteUtils.ts
+4
-2
@@ -15,7 +15,7 @@ export interface TestContext {
15
16
export const createTestContext = (): TestContext => {
17
const mockProvider = new MockProvider();
18
- const tools = new Tools(mockClient as unknown as ComposioClient, mockProvider);
18
+ const tools = new Tools(mockClient as unknown as ComposioClient, { provider: mockProvider });
19
return { tools, mockProvider };
20
};
21
@@ -23,7 +23,9 @@ export const setupTest = (context: TestContext) => {
23
beforeEach(() => {
24
vi.clearAllMocks();
25
context.mockProvider = new MockProvider();
26
- context.tools = new Tools(mockClient as unknown as ComposioClient, context.mockProvider);
26
+ context.tools = new Tools(mockClient as unknown as ComposioClient, {
27
+ provider: context.mockProvider,
28
+ });
29
});
30
};
31
ts/packages/core/type-tests/tool-router.type-test.ts
deleted
-39
@@ -1,39 +0,0 @@
1
-import type { Equal, Expect } from '@type-challenges/utils';
2
-import type { Composio, ToolRouterConfig, ToolRouterSession } from '../src';
3
-
4
-type ToolRouterModel = Composio['experimental']['toolRouter'];
5
-
6
-type SessionResult = Awaited<ReturnType<ToolRouterModel['createSession']>>;
7
-type SessionParams = Parameters<ToolRouterModel['createSession']>;
8
-
9
-type IsAny<T> = 0 extends 1 & T ? true : false;
10
-
11
-type _Param0Type = Expect<Equal<SessionParams[0], string>>;
12
-type _Param1Type = Expect<Equal<SessionParams[1], ToolRouterConfig | undefined>>;
13
-
14
-// Ensure the promise resolves to the public schema type and isn't `any`.
15
-type _SessionMatchesSchema = Expect<Equal<SessionResult, ToolRouterSession>>;
16
-type _SessionIsNotAny = Expect<Equal<IsAny<SessionResult>, false>>;
17
-
18
-// Ensure the optional config parameter is typed correctly and not `any`.
19
-type _ConfigIsNotAny = Expect<Equal<IsAny<SessionParams[1]>, false>>;
20
-
21
-type ToolkitArray = ToolRouterConfig['toolkits'];
22
-type ToolkitEntry = NonNullable<ToolkitArray>[number];
23
-
24
-type _ToolkitArrayShape = Expect<
25
- Equal<
26
- ToolkitArray,
27
- Array<string | { toolkit: string; authConfigId?: string | undefined }> | undefined
28
- >
29
->;
30
-
31
-type _ToolkitEntryShape = Expect<
32
- Equal<ToolkitEntry, string | { toolkit: string; authConfigId?: string | undefined }>
33
->;
34
-
35
-// Flag also stays optional boolean
36
-
37
-type _ManualFlagOptional = Expect<
38
- Equal<ToolRouterConfig['manuallyManageConnections'], boolean | undefined>
39
->;
ts/packages/providers/anthropic/CHANGELOG.md
+14
-4
@@ -1,5 +1,19 @@
1
# @composio/anthropic
2
3
+## 0.2.7-alpha.1
4
+
5
+### Patch Changes
6
+
7
+- Updated dependencies
8
+ - @composio/core@0.2.7-alpha.1
9
+
10
+## 0.2.7-alpha.0
11
+
12
+### Patch Changes
13
+
14
+- Updated dependencies
15
+ - @composio/core@0.2.7-alpha.0
16
+
17
## 0.2.6
18
19
### Patch Changes
@@ -50,7 +64,6 @@
64
### Minor Changes
65
66
- 157bf7b: ### Added
53
-
67
- **Version validation for manual tool execution**: Tools now require explicit toolkit version specification when executing manually to prevent unexpected behavior from `latest` version changes
68
- **New `dangerously_skip_version_check` parameter** (Python) / `dangerouslySkipVersionCheck` (TypeScript): Optional flag to bypass version validation (use with caution)
69
- **`ToolVersionRequiredError` exception** (Python): Raised when attempting to execute tools with `latest` version without skip flag, includes helpful error messages with 4 possible fixes
@@ -58,7 +71,6 @@
71
- **Comprehensive test coverage**: Added 19 new test methods in Python covering all tool execution scenarios including version resolution, error handling, modifiers, and environment variables
72
73
### Changed
61
-
74
- **Tool execution behavior**: Manual execution via `tools.execute()` now validates toolkit versions before API calls
75
- **Agentic provider flows**: Automatically set `dangerously_skip_version_check=True` internally to maintain backward compatibility for framework integrations
76
- **Instance-level version resolution**: Both `execute()` and `_execute_tool()` methods now consistently resolve versions from instance-level `toolkit_versions` configuration
@@ -66,7 +78,6 @@
78
- **Test version format**: Updated all test files to use production date-based version format (`20251201_XX`) instead of semantic versioning
79
80
### Fixed
69
-
81
- **Consistent version handling**: Removed `toolkit_versions` parameter from `_execute_tool()` in favor of instance-level configuration, ensuring consistent version resolution across the SDK
82
- **Code formatting**: Applied ruff formatting to all modified Python files
83
- **Array parsing to ZodSchema**: Fixes in json-schema-to-zod to parse array without properties and with properties
@@ -108,7 +119,6 @@
119
```
120
121
### Developer Notes
111
-
122
- Agentic framework integrations (LangChain, CrewAI, etc.) are not affected as they automatically use the skip flag
123
- The `latest` version can still be used with the skip flag, but specific versions are strongly recommended
124
- Error messages include all available resolution options for better developer experience
ts/packages/providers/anthropic/package.json
+2
-2
@@ -1,6 +1,6 @@
1
{
2
"name": "@composio/anthropic",
3
- "version": "0.2.6",
3
+ "version": "0.2.7-alpha.1",
4
"description": "Non-Agentic Provider for Anthropic in Composio SDK",
5
"main": "src/index.ts",
6
"type": "module",
@@ -35,7 +35,7 @@
35
"packageManager": "pnpm@10.17.0",
36
"peerDependencies": {
37
"@anthropic-ai/sdk": "^0.52.0",
38
- "@composio/core": "0.2.6",
38
+ "@composio/core": "0.2.7-alpha.1",
39
"@mastra/mcp": "^0.12.0"
40
},
41
"devDependencies": {
ts/packages/providers/cloudflare/CHANGELOG.md
+14
-4
@@ -1,5 +1,19 @@
1
# @composio/cloudflare
2
3
+## 0.2.7-alpha.1
4
+
5
+### Patch Changes
6
+
7
+- Updated dependencies
8
+ - @composio/core@0.2.7-alpha.1
9
+
10
+## 0.2.7-alpha.0
11
+
12
+### Patch Changes
13
+
14
+- Updated dependencies
15
+ - @composio/core@0.2.7-alpha.0
16
+
17
## 0.2.6
18
19
### Patch Changes
@@ -50,7 +64,6 @@
64
### Minor Changes
65
66
- 157bf7b: ### Added
53
-
67
- **Version validation for manual tool execution**: Tools now require explicit toolkit version specification when executing manually to prevent unexpected behavior from `latest` version changes
68
- **New `dangerously_skip_version_check` parameter** (Python) / `dangerouslySkipVersionCheck` (TypeScript): Optional flag to bypass version validation (use with caution)
69
- **`ToolVersionRequiredError` exception** (Python): Raised when attempting to execute tools with `latest` version without skip flag, includes helpful error messages with 4 possible fixes
@@ -58,7 +71,6 @@
71
- **Comprehensive test coverage**: Added 19 new test methods in Python covering all tool execution scenarios including version resolution, error handling, modifiers, and environment variables
72
73
### Changed
61
-
74
- **Tool execution behavior**: Manual execution via `tools.execute()` now validates toolkit versions before API calls
75
- **Agentic provider flows**: Automatically set `dangerously_skip_version_check=True` internally to maintain backward compatibility for framework integrations
76
- **Instance-level version resolution**: Both `execute()` and `_execute_tool()` methods now consistently resolve versions from instance-level `toolkit_versions` configuration
@@ -66,7 +78,6 @@
78
- **Test version format**: Updated all test files to use production date-based version format (`20251201_XX`) instead of semantic versioning
79
80
### Fixed
69
-
81
- **Consistent version handling**: Removed `toolkit_versions` parameter from `_execute_tool()` in favor of instance-level configuration, ensuring consistent version resolution across the SDK
82
- **Code formatting**: Applied ruff formatting to all modified Python files
83
- **Array parsing to ZodSchema**: Fixes in json-schema-to-zod to parse array without properties and with properties
@@ -108,7 +119,6 @@
119
```
120
121
### Developer Notes
111
-
122
- Agentic framework integrations (LangChain, CrewAI, etc.) are not affected as they automatically use the skip flag
123
- The `latest` version can still be used with the skip flag, but specific versions are strongly recommended
124
- Error messages include all available resolution options for better developer experience
ts/packages/providers/cloudflare/package.json
+2
-2
@@ -1,6 +1,6 @@
1
{
2
"name": "@composio/cloudflare",
3
- "version": "0.2.6",
3
+ "version": "0.2.7-alpha.1",
4
"description": "",
5
"main": "src/index.ts",
6
"type": "module",
@@ -31,7 +31,7 @@
31
"packageManager": "pnpm@10.17.0",
32
"peerDependencies": {
33
"@cloudflare/workers-types": "catalog:",
34
- "@composio/core": "0.2.6"
34
+ "@composio/core": "0.2.7-alpha.1"
35
},
36
"devDependencies": {
37
"@composio/core": "workspace:*",
ts/packages/providers/google/CHANGELOG.md
+14
-4
@@ -1,5 +1,19 @@
1
# @composio/google
2
3
+## 0.2.7-alpha.1
4
+
5
+### Patch Changes
6
+
7
+- Updated dependencies
8
+ - @composio/core@0.2.7-alpha.1
9
+
10
+## 0.2.7-alpha.0
11
+
12
+### Patch Changes
13
+
14
+- Updated dependencies
15
+ - @composio/core@0.2.7-alpha.0
16
+
17
## 0.2.6
18
19
### Patch Changes
@@ -50,7 +64,6 @@
64
### Minor Changes
65
66
- 157bf7b: ### Added
53
-
67
- **Version validation for manual tool execution**: Tools now require explicit toolkit version specification when executing manually to prevent unexpected behavior from `latest` version changes
68
- **New `dangerously_skip_version_check` parameter** (Python) / `dangerouslySkipVersionCheck` (TypeScript): Optional flag to bypass version validation (use with caution)
69
- **`ToolVersionRequiredError` exception** (Python): Raised when attempting to execute tools with `latest` version without skip flag, includes helpful error messages with 4 possible fixes
@@ -58,7 +71,6 @@
71
- **Comprehensive test coverage**: Added 19 new test methods in Python covering all tool execution scenarios including version resolution, error handling, modifiers, and environment variables
72
73
### Changed
61
-
74
- **Tool execution behavior**: Manual execution via `tools.execute()` now validates toolkit versions before API calls
75
- **Agentic provider flows**: Automatically set `dangerously_skip_version_check=True` internally to maintain backward compatibility for framework integrations
76
- **Instance-level version resolution**: Both `execute()` and `_execute_tool()` methods now consistently resolve versions from instance-level `toolkit_versions` configuration
@@ -66,7 +78,6 @@
78
- **Test version format**: Updated all test files to use production date-based version format (`20251201_XX`) instead of semantic versioning
79
80
### Fixed
69
-
81
- **Consistent version handling**: Removed `toolkit_versions` parameter from `_execute_tool()` in favor of instance-level configuration, ensuring consistent version resolution across the SDK
82
- **Code formatting**: Applied ruff formatting to all modified Python files
83
- **Array parsing to ZodSchema**: Fixes in json-schema-to-zod to parse array without properties and with properties
@@ -108,7 +119,6 @@
119
```
120
121
### Developer Notes
111
-
122
- Agentic framework integrations (LangChain, CrewAI, etc.) are not affected as they automatically use the skip flag
123
- The `latest` version can still be used with the skip flag, but specific versions are strongly recommended
124
- Error messages include all available resolution options for better developer experience
ts/packages/providers/google/package.json
+2
-2
@@ -1,6 +1,6 @@
1
{
2
"name": "@composio/google",
3
- "version": "0.2.6",
3
+ "version": "0.2.7-alpha.1",
4
"description": "Google GenAI Provider for Composio SDK",
5
"main": "src/index.ts",
6
"type": "module",
@@ -36,7 +36,7 @@
36
"license": "ISC",
37
"packageManager": "pnpm@10.17.0",
38
"peerDependencies": {
39
- "@composio/core": "0.2.6",
39
+ "@composio/core": "0.2.7-alpha.1",
40
"@google/genai": "^1.1.0"
41
},
42
"devDependencies": {
ts/packages/providers/langchain/CHANGELOG.md
+14
-4
@@ -1,5 +1,19 @@
1
# @composio/langchain
2
3
+## 0.2.7-alpha.1
4
+
5
+### Patch Changes
6
+
7
+- Updated dependencies
8
+ - @composio/core@0.2.7-alpha.1
9
+
10
+## 0.2.7-alpha.0
11
+
12
+### Patch Changes
13
+
14
+- Updated dependencies
15
+ - @composio/core@0.2.7-alpha.0
16
+
17
## 0.2.6
18
19
### Patch Changes
@@ -50,7 +64,6 @@
64
### Minor Changes
65
66
- 157bf7b: ### Added
53
-
67
- **Version validation for manual tool execution**: Tools now require explicit toolkit version specification when executing manually to prevent unexpected behavior from `latest` version changes
68
- **New `dangerously_skip_version_check` parameter** (Python) / `dangerouslySkipVersionCheck` (TypeScript): Optional flag to bypass version validation (use with caution)
69
- **`ToolVersionRequiredError` exception** (Python): Raised when attempting to execute tools with `latest` version without skip flag, includes helpful error messages with 4 possible fixes
@@ -58,7 +71,6 @@
71
- **Comprehensive test coverage**: Added 19 new test methods in Python covering all tool execution scenarios including version resolution, error handling, modifiers, and environment variables
72
73
### Changed
61
-
74
- **Tool execution behavior**: Manual execution via `tools.execute()` now validates toolkit versions before API calls
75
- **Agentic provider flows**: Automatically set `dangerously_skip_version_check=True` internally to maintain backward compatibility for framework integrations
76
- **Instance-level version resolution**: Both `execute()` and `_execute_tool()` methods now consistently resolve versions from instance-level `toolkit_versions` configuration
@@ -66,7 +78,6 @@
78
- **Test version format**: Updated all test files to use production date-based version format (`20251201_XX`) instead of semantic versioning
79
80
### Fixed
69
-
81
- **Consistent version handling**: Removed `toolkit_versions` parameter from `_execute_tool()` in favor of instance-level configuration, ensuring consistent version resolution across the SDK
82
- **Code formatting**: Applied ruff formatting to all modified Python files
83
- **Array parsing to ZodSchema**: Fixes in json-schema-to-zod to parse array without properties and with properties
@@ -108,7 +119,6 @@
119
```
120
121
### Developer Notes
111
-
122
- Agentic framework integrations (LangChain, CrewAI, etc.) are not affected as they automatically use the skip flag
123
- The `latest` version can still be used with the skip flag, but specific versions are strongly recommended
124
- Error messages include all available resolution options for better developer experience
ts/packages/providers/langchain/package.json
+2
-2
@@ -1,6 +1,6 @@
1
{
2
"name": "@composio/langchain",
3
- "version": "0.2.6",
3
+ "version": "0.2.7-alpha.1",
4
"description": "",
5
"main": "dist/index.js",
6
"type": "module",
@@ -30,7 +30,7 @@
30
"license": "ISC",
31
"packageManager": "pnpm@10.17.0",
32
"peerDependencies": {
33
- "@composio/core": "0.2.6",
33
+ "@composio/core": "0.2.7-alpha.1",
34
"@langchain/core": "^0.3.63"
35
},
36
"devDependencies": {
ts/packages/providers/llamaindex/CHANGELOG.md
+14
-4
@@ -1,5 +1,19 @@
1
# @composio/llamaindex
2
3
+## 0.2.7-alpha.1
4
+
5
+### Patch Changes
6
+
7
+- Updated dependencies
8
+ - @composio/core@0.2.7-alpha.1
9
+
10
+## 0.2.7-alpha.0
11
+
12
+### Patch Changes
13
+
14
+- Updated dependencies
15
+ - @composio/core@0.2.7-alpha.0
16
+
17
## 0.2.6
18
19
### Patch Changes
@@ -50,7 +64,6 @@
64
### Minor Changes
65
66
- 157bf7b: ### Added
53
-
67
- **Version validation for manual tool execution**: Tools now require explicit toolkit version specification when executing manually to prevent unexpected behavior from `latest` version changes
68
- **New `dangerously_skip_version_check` parameter** (Python) / `dangerouslySkipVersionCheck` (TypeScript): Optional flag to bypass version validation (use with caution)
69
- **`ToolVersionRequiredError` exception** (Python): Raised when attempting to execute tools with `latest` version without skip flag, includes helpful error messages with 4 possible fixes
@@ -58,7 +71,6 @@
71
- **Comprehensive test coverage**: Added 19 new test methods in Python covering all tool execution scenarios including version resolution, error handling, modifiers, and environment variables
72
73
### Changed
61
-
74
- **Tool execution behavior**: Manual execution via `tools.execute()` now validates toolkit versions before API calls
75
- **Agentic provider flows**: Automatically set `dangerously_skip_version_check=True` internally to maintain backward compatibility for framework integrations
76
- **Instance-level version resolution**: Both `execute()` and `_execute_tool()` methods now consistently resolve versions from instance-level `toolkit_versions` configuration
@@ -66,7 +78,6 @@
78
- **Test version format**: Updated all test files to use production date-based version format (`20251201_XX`) instead of semantic versioning
79
80
### Fixed
69
-
81
- **Consistent version handling**: Removed `toolkit_versions` parameter from `_execute_tool()` in favor of instance-level configuration, ensuring consistent version resolution across the SDK
82
- **Code formatting**: Applied ruff formatting to all modified Python files
83
- **Array parsing to ZodSchema**: Fixes in json-schema-to-zod to parse array without properties and with properties
@@ -108,7 +119,6 @@
119
```
120
121
### Developer Notes
111
-
122
- Agentic framework integrations (LangChain, CrewAI, etc.) are not affected as they automatically use the skip flag
123
- The `latest` version can still be used with the skip flag, but specific versions are strongly recommended
124
- Error messages include all available resolution options for better developer experience
ts/packages/providers/llamaindex/package.json
+2
-2
@@ -1,6 +1,6 @@
1
{
2
"name": "@composio/llamaindex",
3
- "version": "0.2.6",
3
+ "version": "0.2.7-alpha.1",
4
"description": "Agentic Provider for llamaindex in Composio SDK",
5
"main": "src/index.ts",
6
"type": "module",
@@ -33,7 +33,7 @@
33
"license": "ISC",
34
"packageManager": "pnpm@10.17.0",
35
"peerDependencies": {
36
- "@composio/core": "0.2.6",
36
+ "@composio/core": "0.2.7-alpha.1",
37
"llamaindex": "^0.12.0"
38
},
39
"devDependencies": {
ts/packages/providers/mastra/CHANGELOG.md
+14
-4
@@ -1,5 +1,19 @@
1
# @composio/mastra
2
3
+## 0.2.7-alpha.1
4
+
5
+### Patch Changes
6
+
7
+- Updated dependencies
8
+ - @composio/core@0.2.7-alpha.1
9
+
10
+## 0.2.7-alpha.0
11
+
12
+### Patch Changes
13
+
14
+- Updated dependencies
15
+ - @composio/core@0.2.7-alpha.0
16
+
17
## 0.2.6
18
19
### Patch Changes
@@ -50,7 +64,6 @@
64
### Minor Changes
65
66
- 157bf7b: ### Added
53
-
67
- **Version validation for manual tool execution**: Tools now require explicit toolkit version specification when executing manually to prevent unexpected behavior from `latest` version changes
68
- **New `dangerously_skip_version_check` parameter** (Python) / `dangerouslySkipVersionCheck` (TypeScript): Optional flag to bypass version validation (use with caution)
69
- **`ToolVersionRequiredError` exception** (Python): Raised when attempting to execute tools with `latest` version without skip flag, includes helpful error messages with 4 possible fixes
@@ -58,7 +71,6 @@
71
- **Comprehensive test coverage**: Added 19 new test methods in Python covering all tool execution scenarios including version resolution, error handling, modifiers, and environment variables
72
73
### Changed
61
-
74
- **Tool execution behavior**: Manual execution via `tools.execute()` now validates toolkit versions before API calls
75
- **Agentic provider flows**: Automatically set `dangerously_skip_version_check=True` internally to maintain backward compatibility for framework integrations
76
- **Instance-level version resolution**: Both `execute()` and `_execute_tool()` methods now consistently resolve versions from instance-level `toolkit_versions` configuration
@@ -66,7 +78,6 @@
78
- **Test version format**: Updated all test files to use production date-based version format (`20251201_XX`) instead of semantic versioning
79
80
### Fixed
69
-
81
- **Consistent version handling**: Removed `toolkit_versions` parameter from `_execute_tool()` in favor of instance-level configuration, ensuring consistent version resolution across the SDK
82
- **Code formatting**: Applied ruff formatting to all modified Python files
83
- **Array parsing to ZodSchema**: Fixes in json-schema-to-zod to parse array without properties and with properties
@@ -108,7 +119,6 @@
119
```
120
121
### Developer Notes
111
-
122
- Agentic framework integrations (LangChain, CrewAI, etc.) are not affected as they automatically use the skip flag
123
- The `latest` version can still be used with the skip flag, but specific versions are strongly recommended
124
- Error messages include all available resolution options for better developer experience
ts/packages/providers/mastra/package.json
+2
-2
@@ -1,6 +1,6 @@
1
{
2
"name": "@composio/mastra",
3
- "version": "0.2.6",
3
+ "version": "0.2.7-alpha.1",
4
"description": "Agentic Provider for mastra in Composio SDK",
5
"main": "src/index.ts",
6
"type": "module",
@@ -34,7 +34,7 @@
34
"license": "ISC",
35
"packageManager": "pnpm@10.17.0",
36
"peerDependencies": {
37
- "@composio/core": "0.2.6",
37
+ "@composio/core": "0.2.7-alpha.1",
38
"@mastra/core": "^0.21.1",
39
"@mastra/mcp": "^0.12.0"
40
},
ts/packages/providers/openai-agents/CHANGELOG.md
+14
-4
@@ -1,5 +1,19 @@
1
# @composio/openai-agents
2
3
+## 0.2.7-alpha.1
4
+
5
+### Patch Changes
6
+
7
+- Updated dependencies
8
+ - @composio/core@0.2.7-alpha.1
9
+
10
+## 0.2.7-alpha.0
11
+
12
+### Patch Changes
13
+
14
+- Updated dependencies
15
+ - @composio/core@0.2.7-alpha.0
16
+
17
## 0.2.6
18
19
### Patch Changes
@@ -50,7 +64,6 @@
64
### Minor Changes
65
66
- 157bf7b: ### Added
53
-
67
- **Version validation for manual tool execution**: Tools now require explicit toolkit version specification when executing manually to prevent unexpected behavior from `latest` version changes
68
- **New `dangerously_skip_version_check` parameter** (Python) / `dangerouslySkipVersionCheck` (TypeScript): Optional flag to bypass version validation (use with caution)
69
- **`ToolVersionRequiredError` exception** (Python): Raised when attempting to execute tools with `latest` version without skip flag, includes helpful error messages with 4 possible fixes
@@ -58,7 +71,6 @@
71
- **Comprehensive test coverage**: Added 19 new test methods in Python covering all tool execution scenarios including version resolution, error handling, modifiers, and environment variables
72
73
### Changed
61
-
74
- **Tool execution behavior**: Manual execution via `tools.execute()` now validates toolkit versions before API calls
75
- **Agentic provider flows**: Automatically set `dangerously_skip_version_check=True` internally to maintain backward compatibility for framework integrations
76
- **Instance-level version resolution**: Both `execute()` and `_execute_tool()` methods now consistently resolve versions from instance-level `toolkit_versions` configuration
@@ -66,7 +78,6 @@
78
- **Test version format**: Updated all test files to use production date-based version format (`20251201_XX`) instead of semantic versioning
79
80
### Fixed
69
-
81
- **Consistent version handling**: Removed `toolkit_versions` parameter from `_execute_tool()` in favor of instance-level configuration, ensuring consistent version resolution across the SDK
82
- **Code formatting**: Applied ruff formatting to all modified Python files
83
- **Array parsing to ZodSchema**: Fixes in json-schema-to-zod to parse array without properties and with properties
@@ -108,7 +119,6 @@
119
```
120
121
### Developer Notes
111
-
122
- Agentic framework integrations (LangChain, CrewAI, etc.) are not affected as they automatically use the skip flag
123
- The `latest` version can still be used with the skip flag, but specific versions are strongly recommended
124
- Error messages include all available resolution options for better developer experience
ts/packages/providers/openai-agents/package.json
+2
-2
@@ -1,6 +1,6 @@
1
{
2
"name": "@composio/openai-agents",
3
- "version": "0.2.6",
3
+ "version": "0.2.7-alpha.1",
4
"description": "",
5
"main": "src/index.ts",
6
"type": "module",
@@ -30,7 +30,7 @@
30
"license": "ISC",
31
"packageManager": "pnpm@10.17.0",
32
"peerDependencies": {
33
- "@composio/core": "0.2.6",
33
+ "@composio/core": "0.2.7-alpha.1",
34
"@openai/agents": "^0.1.3",
35
"zod": "catalog:"
36
},
ts/packages/providers/openai/CHANGELOG.md
+14
-4
@@ -1,5 +1,19 @@
1
# @composio/openai
2
3
+## 0.2.7-alpha.1
4
+
5
+### Patch Changes
6
+
7
+- Updated dependencies
8
+ - @composio/core@0.2.7-alpha.1
9
+
10
+## 0.2.7-alpha.0
11
+
12
+### Patch Changes
13
+
14
+- Updated dependencies
15
+ - @composio/core@0.2.7-alpha.0
16
+
17
## 0.2.6
18
19
### Patch Changes
@@ -50,7 +64,6 @@
64
### Minor Changes
65
66
- 157bf7b: ### Added
53
-
67
- **Version validation for manual tool execution**: Tools now require explicit toolkit version specification when executing manually to prevent unexpected behavior from `latest` version changes
68
- **New `dangerously_skip_version_check` parameter** (Python) / `dangerouslySkipVersionCheck` (TypeScript): Optional flag to bypass version validation (use with caution)
69
- **`ToolVersionRequiredError` exception** (Python): Raised when attempting to execute tools with `latest` version without skip flag, includes helpful error messages with 4 possible fixes
@@ -58,7 +71,6 @@
71
- **Comprehensive test coverage**: Added 19 new test methods in Python covering all tool execution scenarios including version resolution, error handling, modifiers, and environment variables
72
73
### Changed
61
-
74
- **Tool execution behavior**: Manual execution via `tools.execute()` now validates toolkit versions before API calls
75
- **Agentic provider flows**: Automatically set `dangerously_skip_version_check=True` internally to maintain backward compatibility for framework integrations
76
- **Instance-level version resolution**: Both `execute()` and `_execute_tool()` methods now consistently resolve versions from instance-level `toolkit_versions` configuration
@@ -66,7 +78,6 @@
78
- **Test version format**: Updated all test files to use production date-based version format (`20251201_XX`) instead of semantic versioning
79
80
### Fixed
69
-
81
- **Consistent version handling**: Removed `toolkit_versions` parameter from `_execute_tool()` in favor of instance-level configuration, ensuring consistent version resolution across the SDK
82
- **Code formatting**: Applied ruff formatting to all modified Python files
83
- **Array parsing to ZodSchema**: Fixes in json-schema-to-zod to parse array without properties and with properties
@@ -108,7 +119,6 @@
119
```
120
121
### Developer Notes
111
-
122
- Agentic framework integrations (LangChain, CrewAI, etc.) are not affected as they automatically use the skip flag
123
- The `latest` version can still be used with the skip flag, but specific versions are strongly recommended
124
- Error messages include all available resolution options for better developer experience
ts/packages/providers/openai/package.json
+2
-2
@@ -1,6 +1,6 @@
1
{
2
"name": "@composio/openai",
3
- "version": "0.2.6",
3
+ "version": "0.2.7-alpha.1",
4
"description": "",
5
"main": "src/index.ts",
6
"type": "module",
@@ -30,7 +30,7 @@
30
"license": "ISC",
31
"packageManager": "pnpm@10.17.0",
32
"peerDependencies": {
33
- "@composio/core": "0.2.6",
33
+ "@composio/core": "0.2.7-alpha.1",
34
"openai": "^5.16.0"
35
},
36
"devDependencies": {
ts/packages/providers/vercel/CHANGELOG.md
+14
-4
@@ -1,5 +1,19 @@
1
# @composio/vercel
2
3
+## 0.2.19-alpha.1
4
+
5
+### Patch Changes
6
+
7
+- Updated dependencies
8
+ - @composio/core@0.2.7-alpha.1
9
+
10
+## 0.2.19-alpha.0
11
+
12
+### Patch Changes
13
+
14
+- Updated dependencies
15
+ - @composio/core@0.2.7-alpha.0
16
+
17
## 0.2.18
18
19
### Patch Changes
@@ -50,7 +64,6 @@
64
### Patch Changes
65
66
- 157bf7b: ### Added
53
-
67
- **Version validation for manual tool execution**: Tools now require explicit toolkit version specification when executing manually to prevent unexpected behavior from `latest` version changes
68
- **New `dangerously_skip_version_check` parameter** (Python) / `dangerouslySkipVersionCheck` (TypeScript): Optional flag to bypass version validation (use with caution)
69
- **`ToolVersionRequiredError` exception** (Python): Raised when attempting to execute tools with `latest` version without skip flag, includes helpful error messages with 4 possible fixes
@@ -58,7 +71,6 @@
71
- **Comprehensive test coverage**: Added 19 new test methods in Python covering all tool execution scenarios including version resolution, error handling, modifiers, and environment variables
72
73
### Changed
61
-
74
- **Tool execution behavior**: Manual execution via `tools.execute()` now validates toolkit versions before API calls
75
- **Agentic provider flows**: Automatically set `dangerously_skip_version_check=True` internally to maintain backward compatibility for framework integrations
76
- **Instance-level version resolution**: Both `execute()` and `_execute_tool()` methods now consistently resolve versions from instance-level `toolkit_versions` configuration
@@ -66,7 +78,6 @@
78
- **Test version format**: Updated all test files to use production date-based version format (`20251201_XX`) instead of semantic versioning
79
80
### Fixed
69
-
81
- **Consistent version handling**: Removed `toolkit_versions` parameter from `_execute_tool()` in favor of instance-level configuration, ensuring consistent version resolution across the SDK
82
- **Code formatting**: Applied ruff formatting to all modified Python files
83
- **Array parsing to ZodSchema**: Fixes in json-schema-to-zod to parse array without properties and with properties
@@ -108,7 +119,6 @@
119
```
120
121
### Developer Notes
111
-
122
- Agentic framework integrations (LangChain, CrewAI, etc.) are not affected as they automatically use the skip flag
123
- The `latest` version can still be used with the skip flag, but specific versions are strongly recommended
124
- Error messages include all available resolution options for better developer experience
ts/packages/providers/vercel/package.json
+5
-5
@@ -1,6 +1,6 @@
1
{
2
"name": "@composio/vercel",
3
- "version": "0.2.18",
3
+ "version": "0.2.19-alpha.1",
4
"description": "",
5
"main": "src/index.ts",
6
"type": "module",
@@ -30,16 +30,16 @@
30
"license": "ISC",
31
"packageManager": "pnpm@10.17.0",
32
"peerDependencies": {
33
- "@composio/core": "0.2.6",
34
- "ai": "^5.0.44"
33
+ "@composio/core": "0.2.7-alpha.1",
34
+ "ai": "catalog:"
35
},
36
"devDependencies": {
37
"@composio/core": "workspace:*",
38
"ai": "catalog:",
39
"tsup": "catalog:",
40
"typescript": "catalog:",
41
- "zod": "catalog:",
42
- "vitest": "catalog:"
41
+ "vitest": "catalog:",
42
+ "zod": "catalog:"
43
},
44
"gitHead": "4fae6e54d5c150fba955cc5fa314281da5a1e064"
45
}
ts/packages/providers/vercel/src/index.ts
+2
-2
@@ -19,10 +19,10 @@ import {
19
removeNonRequiredProperties,
20
jsonSchemaToZodSchema,
21
} from '@composio/core';
22
-import type { Tool as VercelTool } from 'ai';
22
+import type { ToolSet as VercelToolSet, Tool as VercelTool } from 'ai';
23
import { tool } from 'ai';
24
25
-export type VercelToolCollection = Record<string, VercelTool>;
25
+export type VercelToolCollection = VercelToolSet;
26
export class VercelProvider extends BaseAgenticProvider<
27
VercelToolCollection,
28
VercelTool,
uv.lock
+4
-4
@@ -497,7 +497,7 @@ dev = [
497
498
[package.metadata]
499
requires-dist = [
500
- { name = "composio-client", specifier = ">=1.13.0" },
500
+ { name = "composio-client", specifier = ">=1.17.1" },
501
{ name = "openai" },
502
{ name = "pydantic", specifier = ">=2.6.4" },
503
{ name = "pysher", specifier = ">=1.0.8" },
@@ -538,7 +538,7 @@ requires-dist = [
538
539
[[package]]
540
name = "composio-client"
541
-version = "1.13.0"
541
+version = "1.17.1"
542
source = { registry = "https://pypi.org/simple" }
543
dependencies = [
544
{ name = "anyio" },
@@ -548,9 +548,9 @@ dependencies = [
548
{ name = "sniffio" },
549
{ name = "typing-extensions" },
550
]
551
-sdist = { url = "https://files.pythonhosted.org/packages/e0/fd/44f8efd598a038ebd6ad05351ac56723cb2ade6b45ffd2252a03d3c046be/composio_client-1.13.0.tar.gz", hash = "sha256:5df08f5a1db5973811a11b2778b0d9b3e8e919d60800e1069a39ce7e478ec138", size = 169964 }
551
+sdist = { url = "https://files.pythonhosted.org/packages/8a/ac/2194260234ef364f7bd4b3dc7a4ae08b6e819ab22935218207795bf77c27/composio_client-1.17.1.tar.gz", hash = "sha256:c5e9d593bc2497f3c57614f544a7c5cf3601f310b2f1e65ccfa9a69dcb496733", size = 182234 }
552
wheels = [
553
- { url = "https://files.pythonhosted.org/packages/fc/cd/e3c2c6191dc73a6f4d265d5a9c5ab83d120dd2a5be0225a7f396b1c0d614/composio_client-1.13.0-py3-none-any.whl", hash = "sha256:e9471bcb9337c04ee5e9fa0267a1a480dc7d46ec83ed1258d92b5cb7abc7ea6d", size = 179889 },
553
+ { url = "https://files.pythonhosted.org/packages/30/4c/7dc1647fba7cdeeb3a62f1ddb03c57d556a81de731ac58b58ae43f2d0ff9/composio_client-1.17.1-py3-none-any.whl", hash = "sha256:ccf7f07e34e67d90eae33034eeccf76ecc98cbf36ebc167f8f4327f3180050c7", size = 198420 },
554
]
555
556
[[package]]