Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
Mirrored from https://github.com/Camo67/composio.git
Synced Nov 22, 23:15 UTC
Fix: Downgrade chalk to v4 (#1725)
Musthaq Ahamad committed
Jul 1, 2025 at 18:39 UTC
eccfa58906513b754e51f2d4d76e0eb311d9f8da
3 files changed
+23
-8
pnpm-lock.yaml
+21
-5
@@ -591,8 +591,8 @@ importers:
591
specifier: ^7.0.15
592
version: 7.0.15
593
chalk:
594
- specifier: ^5.4.1
595
- version: 5.4.1
594
+ specifier: ^4.1.2
595
+ version: 4.1.2
596
openai:
597
specifier: ^4.94.0
598
version: 4.104.0(ws@8.18.2)(zod@3.25.67)
@@ -9299,6 +9299,14 @@ snapshots:
9299
chai: 5.2.0
9300
tinyrainbow: 2.0.0
9301
9302
+ '@vitest/mocker@3.2.4(vite@6.3.5(@types/node@20.19.1)(jiti@1.21.7)(tsx@4.20.3)(yaml@2.8.0))':
9303
+ dependencies:
9304
+ '@vitest/spy': 3.2.4
9305
+ estree-walker: 3.0.3
9306
+ magic-string: 0.30.17
9307
+ optionalDependencies:
9308
+ vite: 6.3.5(@types/node@20.19.1)(jiti@1.21.7)(tsx@4.20.3)(yaml@2.8.0)
9309
+
9310
'@vitest/mocker@3.2.4(vite@6.3.5(@types/node@22.15.32)(jiti@1.21.7)(tsx@4.20.3)(yaml@2.8.0))':
9311
dependencies:
9312
'@vitest/spy': 3.2.4
@@ -9307,6 +9315,14 @@ snapshots:
9315
optionalDependencies:
9316
vite: 6.3.5(@types/node@22.15.32)(jiti@1.21.7)(tsx@4.20.3)(yaml@2.8.0)
9317
9318
+ '@vitest/mocker@3.2.4(vite@6.3.5(@types/node@24.0.3)(jiti@1.21.7)(tsx@4.20.3)(yaml@2.8.0))':
9319
+ dependencies:
9320
+ '@vitest/spy': 3.2.4
9321
+ estree-walker: 3.0.3
9322
+ magic-string: 0.30.17
9323
+ optionalDependencies:
9324
+ vite: 6.3.5(@types/node@24.0.3)(jiti@1.21.7)(tsx@4.20.3)(yaml@2.8.0)
9325
+
9326
'@vitest/pretty-format@3.2.4':
9327
dependencies:
9328
tinyrainbow: 2.0.0
@@ -9336,7 +9352,7 @@ snapshots:
9352
sirv: 3.0.1
9353
tinyglobby: 0.2.14
9354
tinyrainbow: 2.0.0
9339
- vitest: 3.2.4(@types/node@22.15.32)(@vitest/ui@3.2.4)(jiti@1.21.7)(tsx@4.20.3)(yaml@2.8.0)
9355
+ vitest: 3.2.4(@types/node@24.0.3)(@vitest/ui@3.2.4)(jiti@1.21.7)(tsx@4.20.3)(yaml@2.8.0)
9356
9357
'@vitest/utils@3.2.4':
9358
dependencies:
@@ -12167,7 +12183,7 @@ snapshots:
12183
dependencies:
12184
'@types/chai': 5.2.2
12185
'@vitest/expect': 3.2.4
12170
- '@vitest/mocker': 3.2.4(vite@6.3.5(@types/node@22.15.32)(jiti@1.21.7)(tsx@4.20.3)(yaml@2.8.0))
12186
+ '@vitest/mocker': 3.2.4(vite@6.3.5(@types/node@20.19.1)(jiti@1.21.7)(tsx@4.20.3)(yaml@2.8.0))
12187
'@vitest/pretty-format': 3.2.4
12188
'@vitest/runner': 3.2.4
12189
'@vitest/snapshot': 3.2.4
@@ -12251,7 +12267,7 @@ snapshots:
12267
dependencies:
12268
'@types/chai': 5.2.2
12269
'@vitest/expect': 3.2.4
12254
- '@vitest/mocker': 3.2.4(vite@6.3.5(@types/node@22.15.32)(jiti@1.21.7)(tsx@4.20.3)(yaml@2.8.0))
12270
+ '@vitest/mocker': 3.2.4(vite@6.3.5(@types/node@24.0.3)(jiti@1.21.7)(tsx@4.20.3)(yaml@2.8.0))
12271
'@vitest/pretty-format': 3.2.4
12272
'@vitest/runner': 3.2.4
12273
'@vitest/snapshot': 3.2.4
ts/examples/openai/src/index.ts
+1
-2
@@ -47,6 +47,5 @@ const response = await openai.chat.completions.create({
47
if (response.choices[0].message.tool_calls) {
48
console.log(`✅ Calling tool ${response.choices[0].message.tool_calls[0].function.name}`);
49
const result = await composio.provider.handleToolCalls('default', response);
50
- const data = JSON.parse(result[0]);
51
- console.log(data);
50
+ console.log(result);
51
}
ts/packages/core/package.json
+1
-1
@@ -46,7 +46,7 @@
46
"@composio/client": "0.1.0-alpha.25",
47
"@composio/json-schema-to-zod": "0.1.10-next.1",
48
"@types/json-schema": "^7.0.15",
49
- "chalk": "^5.4.1",
49
+ "chalk": "^4.1.2",
50
"openai": "^4.94.0",
51
"pusher-js": "^8.4.0",
52
"semver": "^7.7.2",