@devries-cameron20 / composio-1 / commits / d4077ba41
Fork 0

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

chore(cli): trim unused Effect packages and unify version output (#4358)

This PR: - drops the eight `@effect/*` satellite devDependencies and `@effect/platform-node-shared` from `@composio/cli`; none is imported by the CLI, its tests, or its scripts, and the `@effect/platform-node-shared` catalog entry goes with them - makes `--log-level` fall back to `COMPOSIO_LOG_LEVEL` when the flag is absent (`Option.orElse` instead of `Option.zipLeft`, which discarded the env value) and adds a precedence test - rewrites `composio --version` and `composio -v` to the `version` command before parsing, so the three spellings share one handler and print identical output (the framework built-in used to add a trailing blank line); CI and the installer keep using `composio --version` ## Context First of three preparation PRs for the Effect v4 port; https://github.com/ComposioHQ/composio/pull/3901 is the reference port. Each lands v3-compatible groundwork that the port otherwise has to redo on top of a large diff: the manifest, catalog, and lockfile were three of the conflicting files in that PR, and its review had accepted Effect v4's default `composio v<semver>` banner for `--version`. Owning the flag in argv normalization keeps `--version` output stable across the framework change instead. ## Validation - `pnpm --filter @composio/cli typecheck` and oxlint clean - `pnpm --filter @composio/cli test`: 127 files, 1318 tests pass, 1 skipped; `version`, `--version`, and `-v` are asserted byte-identical - The Docker install e2e suite was not run locally; `cli.install-e2e.yml` runs it on this PR

Alberto Schiabel committed Sep 5, 2026 at 00:22 UTC d4077ba41541f65c4e08366c026918162c2a1a51
8 files changed +123 -115
pnpm-lock.yaml
+46 -76
@@ -42,9 +42,6 @@ catalogs:
42 '@effect/platform-bun':
43 specifier: ^0.91.2
44 version: 0.91.2
45 - '@effect/platform-node-shared':
46 - specifier: ^0.61.1
47 - version: 0.61.1
45 '@effect/vitest':
46 specifier: ^0.30.0
47 version: 0.30.0
@@ -187,7 +184,7 @@ importers:
184 version: 7.8.5
185 tsdown:
186 specifier: 'catalog:'
190 - version: 0.22.14(@arethetypeswrong/core@0.18.5)(publint@0.3.24)(tsx@4.23.12)(typescript@7.0.2)(unrun@0.2.27)
187 + version: 0.22.14(@arethetypeswrong/core@0.18.5)(publint@0.3.24)(tsx@4.23.12)(typescript@7.0.2)(unrun@0.2.27(@emnapi/core@1.11.2)(@emnapi/runtime@1.11.2))
188 tsx:
189 specifier: 'catalog:'
190 version: 4.23.12
@@ -719,7 +716,7 @@ importers:
716 version: 2.18.0(@modelcontextprotocol/sdk@1.30.0(@cfworker/json-schema@4.1.1)(zod@4.4.3))
717 '@modelcontextprotocol/sdk':
718 specifier: 'catalog:'
722 - version: 1.30.0(@cfworker/json-schema@4.1.1)(supports-color@10.2.2)(zod@4.4.3)
719 + version: 1.30.0(@cfworker/json-schema@4.1.1)(zod@4.4.3)
720 dotenv:
721 specifier: 'catalog:'
722 version: 17.4.2
@@ -871,7 +868,7 @@ importers:
868 version: link:../../packages/providers/vercel
869 '@modelcontextprotocol/sdk':
870 specifier: 'catalog:'
874 - version: 1.30.0(@cfworker/json-schema@4.1.1)(supports-color@10.2.2)(zod@4.4.3)
871 + version: 1.30.0(@cfworker/json-schema@4.1.1)(zod@4.4.3)
872 ai:
873 specifier: 'catalog:'
874 version: 7.0.79(zod@4.4.3)
@@ -924,7 +921,7 @@ importers:
921 version: link:../../packages/providers/openai-agents
922 '@modelcontextprotocol/sdk':
923 specifier: 'catalog:'
927 - version: 1.30.0(@cfworker/json-schema@4.1.1)(supports-color@10.2.2)(zod@4.4.3)
924 + version: 1.30.0(@cfworker/json-schema@4.1.1)(zod@4.4.3)
925 '@openai/agents':
926 specifier: ^0.17.0
927 version: 0.17.0(@aws-sdk/credential-provider-node@3.972.78)(@smithy/signature-v4@5.6.12)(supports-color@10.2.2)(ws@8.21.3)(zod@4.4.3)
@@ -1125,7 +1122,7 @@ importers:
1122 version: link:../../packages/providers/vercel
1123 '@modelcontextprotocol/sdk':
1124 specifier: 'catalog:'
1128 - version: 1.30.0(@cfworker/json-schema@4.1.1)(supports-color@10.2.2)(zod@4.4.3)
1125 + version: 1.30.0(@cfworker/json-schema@4.1.1)(zod@4.4.3)
1126 ai:
1127 specifier: 'catalog:'
1128 version: 7.0.79(zod@4.4.3)
@@ -1203,12 +1200,9 @@ importers:
1200 '@effect/platform-bun':
1201 specifier: 'catalog:'
1202 version: 0.91.2(@effect/cluster@0.60.2(@effect/platform@0.97.1(effect@3.22.1))(@effect/rpc@0.76.2(@effect/platform@0.97.1(effect@3.22.1))(effect@3.22.1))(@effect/sql@0.52.1(@effect/experimental@0.61.1(@effect/platform@0.97.1(effect@3.22.1))(effect@3.22.1))(@effect/platform@0.97.1(effect@3.22.1))(effect@3.22.1))(@effect/workflow@0.19.1(@effect/experimental@0.61.1(@effect/platform@0.97.1(effect@3.22.1))(effect@3.22.1))(@effect/platform@0.97.1(effect@3.22.1))(@effect/rpc@0.76.2(@effect/platform@0.97.1(effect@3.22.1))(effect@3.22.1))(effect@3.22.1))(effect@3.22.1))(@effect/platform@0.97.1(effect@3.22.1))(@effect/rpc@0.76.2(@effect/platform@0.97.1(effect@3.22.1))(effect@3.22.1))(@effect/sql@0.52.1(@effect/experimental@0.61.1(@effect/platform@0.97.1(effect@3.22.1))(effect@3.22.1))(@effect/platform@0.97.1(effect@3.22.1))(effect@3.22.1))(effect@3.22.1)
1206 - '@effect/platform-node-shared':
1207 - specifier: 'catalog:'
1208 - version: 0.61.1(@effect/cluster@0.60.2(@effect/platform@0.97.1(effect@3.22.1))(@effect/rpc@0.76.2(@effect/platform@0.97.1(effect@3.22.1))(effect@3.22.1))(@effect/sql@0.52.1(@effect/experimental@0.61.1(@effect/platform@0.97.1(effect@3.22.1))(effect@3.22.1))(@effect/platform@0.97.1(effect@3.22.1))(effect@3.22.1))(@effect/workflow@0.19.1(@effect/experimental@0.61.1(@effect/platform@0.97.1(effect@3.22.1))(effect@3.22.1))(@effect/platform@0.97.1(effect@3.22.1))(@effect/rpc@0.76.2(@effect/platform@0.97.1(effect@3.22.1))(effect@3.22.1))(effect@3.22.1))(effect@3.22.1))(@effect/platform@0.97.1(effect@3.22.1))(@effect/rpc@0.76.2(@effect/platform@0.97.1(effect@3.22.1))(effect@3.22.1))(@effect/sql@0.52.1(@effect/experimental@0.61.1(@effect/platform@0.97.1(effect@3.22.1))(effect@3.22.1))(@effect/platform@0.97.1(effect@3.22.1))(effect@3.22.1))(effect@3.22.1)
1203 '@modelcontextprotocol/sdk':
1204 specifier: 'catalog:'
1211 - version: 1.30.0(@cfworker/json-schema@4.1.1)(supports-color@10.2.2)(zod@4.4.3)
1205 + version: 1.30.0(@cfworker/json-schema@4.1.1)(zod@4.4.3)
1206 '@zed-industries/claude-code-acp':
1207 specifier: ^0.16.2
1208 version: 0.16.2(@cfworker/json-schema@4.1.1)(supports-color@10.2.2)(zod@4.4.3)
@@ -1261,39 +1255,15 @@ importers:
1255 specifier: 'catalog:'
1256 version: 4.4.3
1257 devDependencies:
1264 - '@effect/cluster':
1265 - specifier: ^0.60.2
1266 - version: 0.60.2(@effect/platform@0.97.1(effect@3.22.1))(@effect/rpc@0.76.2(@effect/platform@0.97.1(effect@3.22.1))(effect@3.22.1))(@effect/sql@0.52.1(@effect/experimental@0.61.1(@effect/platform@0.97.1(effect@3.22.1))(effect@3.22.1))(@effect/platform@0.97.1(effect@3.22.1))(effect@3.22.1))(@effect/workflow@0.19.1(@effect/experimental@0.61.1(@effect/platform@0.97.1(effect@3.22.1))(effect@3.22.1))(@effect/platform@0.97.1(effect@3.22.1))(@effect/rpc@0.76.2(@effect/platform@0.97.1(effect@3.22.1))(effect@3.22.1))(effect@3.22.1))(effect@3.22.1)
1267 - '@effect/experimental':
1268 - specifier: ^0.61.1
1269 - version: 0.61.1(@effect/platform@0.97.1(effect@3.22.1))(effect@3.22.1)
1258 '@effect/language-service':
1259 specifier: 'catalog:'
1260 version: 0.87.2
1261 '@effect/platform':
1262 specifier: 'catalog:'
1263 version: 0.97.1(effect@3.22.1)
1276 - '@effect/printer':
1277 - specifier: ^0.51.0
1278 - version: 0.51.0(@effect/typeclass@0.41.0(effect@3.22.1))(effect@3.22.1)
1279 - '@effect/printer-ansi':
1280 - specifier: ^0.51.0
1281 - version: 0.51.0(@effect/typeclass@0.41.0(effect@3.22.1))(effect@3.22.1)
1282 - '@effect/rpc':
1283 - specifier: ^0.76.2
1284 - version: 0.76.2(@effect/platform@0.97.1(effect@3.22.1))(effect@3.22.1)
1285 - '@effect/sql':
1286 - specifier: ^0.52.1
1287 - version: 0.52.1(@effect/experimental@0.61.1(@effect/platform@0.97.1(effect@3.22.1))(effect@3.22.1))(@effect/platform@0.97.1(effect@3.22.1))(effect@3.22.1)
1288 - '@effect/typeclass':
1289 - specifier: ^0.41.0
1290 - version: 0.41.0(effect@3.22.1)
1264 '@effect/vitest':
1265 specifier: 'catalog:'
1266 version: 0.30.0(effect@3.22.1)(vitest@4.1.11)
1294 - '@effect/workflow':
1295 - specifier: ^0.19.1
1296 - version: 0.19.1(@effect/experimental@0.61.1(@effect/platform@0.97.1(effect@3.22.1))(effect@3.22.1))(@effect/platform@0.97.1(effect@3.22.1))(@effect/rpc@0.76.2(@effect/platform@0.97.1(effect@3.22.1))(effect@3.22.1))(effect@3.22.1)
1267 '@types/bun':
1268 specifier: 'catalog:'
1269 version: 1.4.0
@@ -1305,7 +1275,7 @@ importers:
1275 version: 3.2.0
1276 tsdown:
1277 specifier: 'catalog:'
1308 - version: 0.22.14(@arethetypeswrong/core@0.18.5)(@typescript/typescript6@6.0.2)(publint@0.3.24)(tsx@4.23.12)(unrun@0.2.27)
1278 + version: 0.22.14(@arethetypeswrong/core@0.18.5)(@typescript/typescript6@6.0.2)(publint@0.3.24)(tsx@4.23.12)(unrun@0.2.27(@emnapi/core@1.11.2)(@emnapi/runtime@1.11.2))
1279 tsx:
1280 specifier: 'catalog:'
1281 version: 4.23.12
@@ -1329,7 +1299,7 @@ importers:
1299 version: 3.22.1
1300 tsdown:
1301 specifier: 'catalog:'
1332 - version: 0.22.14(@arethetypeswrong/core@0.18.5)(publint@0.3.24)(tsx@4.23.12)(typescript@7.0.2)(unrun@0.2.27)
1302 + version: 0.22.14(@arethetypeswrong/core@0.18.5)(publint@0.3.24)(tsx@4.23.12)(typescript@7.0.2)(unrun@0.2.27(@emnapi/core@1.11.2)(@emnapi/runtime@1.11.2))
1303 typescript:
1304 specifier: 'catalog:'
1305 version: 7.0.2
@@ -1344,7 +1314,7 @@ importers:
1314 version: link:../core
1315 '@modelcontextprotocol/sdk':
1316 specifier: 'catalog:'
1347 - version: 1.30.0(@cfworker/json-schema@4.1.1)(supports-color@10.2.2)(zod@4.4.3)
1317 + version: 1.30.0(@cfworker/json-schema@4.1.1)(zod@4.4.3)
1318 extract-zip:
1319 specifier: ^2.0.1
1320 version: 2.0.1(supports-color@10.2.2)
@@ -1360,7 +1330,7 @@ importers:
1330 version: 1.7.0
1331 tsdown:
1332 specifier: 'catalog:'
1363 - version: 0.22.14(@arethetypeswrong/core@0.18.5)(publint@0.3.24)(tsx@4.23.12)(typescript@7.0.2)(unrun@0.2.27)
1333 + version: 0.22.14(@arethetypeswrong/core@0.18.5)(publint@0.3.24)(tsx@4.23.12)(typescript@7.0.2)(unrun@0.2.27(@emnapi/core@1.11.2)(@emnapi/runtime@1.11.2))
1334 typescript:
1335 specifier: 'catalog:'
1336 version: 7.0.2
@@ -1409,7 +1379,7 @@ importers:
1379 version: 7.8.0
1380 tsdown:
1381 specifier: 'catalog:'
1412 - version: 0.22.14(@arethetypeswrong/core@0.18.5)(@typescript/typescript6@6.0.2)(publint@0.3.24)(tsx@4.23.12)(unrun@0.2.27)
1382 + version: 0.22.14(@arethetypeswrong/core@0.18.5)(@typescript/typescript6@6.0.2)(publint@0.3.24)(tsx@4.23.12)(unrun@0.2.27(@emnapi/core@1.11.2)(@emnapi/runtime@1.11.2))
1383 tsx:
1384 specifier: 'catalog:'
1385 version: 4.23.12
@@ -1446,7 +1416,7 @@ importers:
1416 version: 0.44.4(@opentelemetry/api@1.9.1)(ai@7.0.79(zod@4.4.3))(dotenv@17.4.2)(jiti@2.7.0)(lru-cache@11.5.2)(miniflare@4.20260722.0)(rollup@4.62.5)(vite@7.3.5(@types/node@26.3.0)(jiti@2.7.0)(tsx@4.23.12)(yaml@2.9.0))(wrangler@4.125.0(@cloudflare/workers-types@5.20260825.1))
1417 tsdown:
1418 specifier: 'catalog:'
1449 - version: 0.22.14(@arethetypeswrong/core@0.18.5)(publint@0.3.24)(tsx@4.23.12)(typescript@7.0.2)(unrun@0.2.27)
1419 + version: 0.22.14(@arethetypeswrong/core@0.18.5)(publint@0.3.24)(tsx@4.23.12)(typescript@7.0.2)(unrun@0.2.27(@emnapi/core@1.11.2)(@emnapi/runtime@1.11.2))
1420 tsx:
1421 specifier: 'catalog:'
1422 version: 4.23.12
@@ -1471,7 +1441,7 @@ importers:
1441 version: link:../json-schema-to-zod
1442 tsdown:
1443 specifier: 'catalog:'
1474 - version: 0.22.14(@arethetypeswrong/core@0.18.5)(publint@0.3.24)(tsx@4.23.12)(typescript@7.0.2)(unrun@0.2.27)
1444 + version: 0.22.14(@arethetypeswrong/core@0.18.5)(publint@0.3.24)(tsx@4.23.12)(typescript@7.0.2)(unrun@0.2.27(@emnapi/core@1.11.2)(@emnapi/runtime@1.11.2))
1445 typescript:
1446 specifier: 'catalog:'
1447 version: 7.0.2
@@ -1505,7 +1475,7 @@ importers:
1475 version: 4.9.0
1476 tsdown:
1477 specifier: 'catalog:'
1508 - version: 0.22.14(@arethetypeswrong/core@0.18.5)(publint@0.3.24)(tsx@4.23.12)(typescript@7.0.2)(unrun@0.2.27)
1478 + version: 0.22.14(@arethetypeswrong/core@0.18.5)(publint@0.3.24)(tsx@4.23.12)(typescript@7.0.2)(unrun@0.2.27(@emnapi/core@1.11.2)(@emnapi/runtime@1.11.2))
1479 typescript:
1480 specifier: 'catalog:'
1481 version: 7.0.2
@@ -1535,7 +1505,7 @@ importers:
1505 version: 6.0.266(zod@4.4.3)
1506 tsdown:
1507 specifier: 'catalog:'
1538 - version: 0.22.14(@arethetypeswrong/core@0.18.5)(publint@0.3.24)(tsx@4.23.12)(typescript@7.0.2)(unrun@0.2.27)
1508 + version: 0.22.14(@arethetypeswrong/core@0.18.5)(publint@0.3.24)(tsx@4.23.12)(typescript@7.0.2)(unrun@0.2.27(@emnapi/core@1.11.2)(@emnapi/runtime@1.11.2))
1509 typescript:
1510 specifier: 'catalog:'
1511 version: 7.0.2
@@ -1557,10 +1527,10 @@ importers:
1527 version: link:../../core
1528 '@modelcontextprotocol/sdk':
1529 specifier: 'catalog:'
1560 - version: 1.30.0(@cfworker/json-schema@4.1.1)(supports-color@10.2.2)(zod@4.4.3)
1530 + version: 1.30.0(@cfworker/json-schema@4.1.1)(zod@4.4.3)
1531 tsdown:
1532 specifier: 'catalog:'
1563 - version: 0.22.14(@arethetypeswrong/core@0.18.5)(publint@0.3.24)(tsx@4.23.12)(typescript@7.0.2)(unrun@0.2.27)
1533 + version: 0.22.14(@arethetypeswrong/core@0.18.5)(publint@0.3.24)(tsx@4.23.12)(typescript@7.0.2)(unrun@0.2.27(@emnapi/core@1.11.2)(@emnapi/runtime@1.11.2))
1534 typescript:
1535 specifier: 'catalog:'
1536 version: 7.0.2
@@ -1579,7 +1549,7 @@ importers:
1549 version: link:../../core
1550 tsdown:
1551 specifier: 'catalog:'
1582 - version: 0.22.14(@arethetypeswrong/core@0.18.5)(publint@0.3.24)(tsx@4.23.12)(typescript@7.0.2)(unrun@0.2.27)
1552 + version: 0.22.14(@arethetypeswrong/core@0.18.5)(publint@0.3.24)(tsx@4.23.12)(typescript@7.0.2)(unrun@0.2.27(@emnapi/core@1.11.2)(@emnapi/runtime@1.11.2))
1553 typescript:
1554 specifier: 'catalog:'
1555 version: 7.0.2
@@ -1598,7 +1568,7 @@ importers:
1568 version: link:../../core
1569 tsdown:
1570 specifier: 'catalog:'
1601 - version: 0.22.14(@arethetypeswrong/core@0.18.5)(publint@0.3.24)(tsx@4.23.12)(typescript@7.0.2)(unrun@0.2.27)
1571 + version: 0.22.14(@arethetypeswrong/core@0.18.5)(publint@0.3.24)(tsx@4.23.12)(typescript@7.0.2)(unrun@0.2.27(@emnapi/core@1.11.2)(@emnapi/runtime@1.11.2))
1572 typescript:
1573 specifier: 'catalog:'
1574 version: 7.0.2
@@ -1613,7 +1583,7 @@ importers:
1583 version: 1.2.9(@opentelemetry/api@1.9.1)(openai@7.5.0(@aws-sdk/credential-provider-node@3.972.78)(@smithy/signature-v4@5.6.12)(ws@8.21.3)(zod@4.4.3))(ws@8.21.3)
1584 tsdown:
1585 specifier: 'catalog:'
1616 - version: 0.22.14(@arethetypeswrong/core@0.18.5)(publint@0.3.24)(tsx@4.23.12)(typescript@7.0.2)(unrun@0.2.27)
1586 + version: 0.22.14(@arethetypeswrong/core@0.18.5)(publint@0.3.24)(tsx@4.23.12)(typescript@7.0.2)(unrun@0.2.27(@emnapi/core@1.11.2)(@emnapi/runtime@1.11.2))
1587 typescript:
1588 specifier: 'catalog:'
1589 version: 7.0.2
@@ -1635,7 +1605,7 @@ importers:
1605 version: link:../../core
1606 tsdown:
1607 specifier: 'catalog:'
1638 - version: 0.22.14(@arethetypeswrong/core@0.18.5)(publint@0.3.24)(tsx@4.23.12)(typescript@7.0.2)(unrun@0.2.27)
1608 + version: 0.22.14(@arethetypeswrong/core@0.18.5)(publint@0.3.24)(tsx@4.23.12)(typescript@7.0.2)(unrun@0.2.27(@emnapi/core@1.11.2)(@emnapi/runtime@1.11.2))
1609 typescript:
1610 specifier: 'catalog:'
1611 version: 7.0.2
@@ -1657,7 +1627,7 @@ importers:
1627 version: 6.0.266(zod@4.4.3)
1628 tsdown:
1629 specifier: 'catalog:'
1660 - version: 0.22.14(@arethetypeswrong/core@0.18.5)(publint@0.3.24)(tsx@4.23.12)(typescript@7.0.2)(unrun@0.2.27)
1630 + version: 0.22.14(@arethetypeswrong/core@0.18.5)(publint@0.3.24)(tsx@4.23.12)(typescript@7.0.2)(unrun@0.2.27(@emnapi/core@1.11.2)(@emnapi/runtime@1.11.2))
1631 typescript:
1632 specifier: 'catalog:'
1633 version: 7.0.2
@@ -1678,7 +1648,7 @@ importers:
1648 version: 7.3.0(@aws-sdk/credential-provider-node@3.972.78)(@smithy/signature-v4@5.6.12)(ws@8.21.3)(zod@4.4.3)
1649 tsdown:
1650 specifier: 'catalog:'
1681 - version: 0.22.14(@arethetypeswrong/core@0.18.5)(publint@0.3.24)(tsx@4.23.12)(typescript@7.0.2)(unrun@0.2.27)
1651 + version: 0.22.14(@arethetypeswrong/core@0.18.5)(publint@0.3.24)(tsx@4.23.12)(typescript@7.0.2)(unrun@0.2.27(@emnapi/core@1.11.2)(@emnapi/runtime@1.11.2))
1652 typescript:
1653 specifier: 'catalog:'
1654 version: 7.0.2
@@ -1696,7 +1666,7 @@ importers:
1666 version: 0.17.0(@aws-sdk/credential-provider-node@3.972.78)(@smithy/signature-v4@5.6.12)(supports-color@10.2.2)(ws@8.21.3)(zod@4.4.3)
1667 tsdown:
1668 specifier: 'catalog:'
1699 - version: 0.22.14(@arethetypeswrong/core@0.18.5)(publint@0.3.24)(tsx@4.23.12)(typescript@7.0.2)(unrun@0.2.27)
1669 + version: 0.22.14(@arethetypeswrong/core@0.18.5)(publint@0.3.24)(tsx@4.23.12)(typescript@7.0.2)(unrun@0.2.27(@emnapi/core@1.11.2)(@emnapi/runtime@1.11.2))
1670 typescript:
1671 specifier: 'catalog:'
1672 version: 7.0.2
@@ -1717,7 +1687,7 @@ importers:
1687 version: 7.0.79(zod@4.4.3)
1688 tsdown:
1689 specifier: 'catalog:'
1720 - version: 0.22.14(@arethetypeswrong/core@0.18.5)(publint@0.3.24)(tsx@4.23.12)(typescript@7.0.2)(unrun@0.2.27)
1690 + version: 0.22.14(@arethetypeswrong/core@0.18.5)(publint@0.3.24)(tsx@4.23.12)(typescript@7.0.2)(unrun@0.2.27(@emnapi/core@1.11.2)(@emnapi/runtime@1.11.2))
1691 typescript:
1692 specifier: 'catalog:'
1693 version: 7.0.2
@@ -1782,7 +1752,7 @@ importers:
1752 version: link:@types/@babel/helper-validator-identifier
1753 tsdown:
1754 specifier: 'catalog:'
1785 - version: 0.22.14(@arethetypeswrong/core@0.18.5)(publint@0.3.24)(tsx@4.23.12)(typescript@7.0.2)(unrun@0.2.27)
1755 + version: 0.22.14(@arethetypeswrong/core@0.18.5)(publint@0.3.24)(tsx@4.23.12)(typescript@7.0.2)(unrun@0.2.27(@emnapi/core@1.11.2)(@emnapi/runtime@1.11.2))
1756 vitest:
1757 specifier: 'catalog:'
1758 version: 4.1.11(@opentelemetry/api@1.9.1)(@types/node@26.2.0)(@vitest/ui@4.1.11)(vite@7.3.5(@types/node@26.3.0)(jiti@2.7.0)(tsx@4.23.12)(yaml@2.9.0))
@@ -7259,7 +7229,7 @@ snapshots:
7229 '@anthropic-ai/claude-agent-sdk@0.3.245(@anthropic-ai/sdk@0.120.0(zod@4.4.3))(@modelcontextprotocol/sdk@1.30.0(@cfworker/json-schema@4.1.1)(zod@4.4.3))(zod@4.4.3)':
7230 dependencies:
7231 '@anthropic-ai/sdk': 0.120.0(zod@4.4.3)
7262 - '@modelcontextprotocol/sdk': 1.30.0(@cfworker/json-schema@4.1.1)(supports-color@10.2.2)(zod@4.4.3)
7232 + '@modelcontextprotocol/sdk': 1.30.0(@cfworker/json-schema@4.1.1)(zod@4.4.3)
7233 zod: 4.4.3
7234 optionalDependencies:
7235 '@anthropic-ai/claude-agent-sdk-darwin-arm64': 0.3.245
@@ -8045,7 +8015,7 @@ snapshots:
8015 protobufjs: 7.6.5
8016 ws: 8.21.3
8017 optionalDependencies:
8048 - '@modelcontextprotocol/sdk': 1.30.0(@cfworker/json-schema@4.1.1)(supports-color@10.2.2)(zod@4.4.3)
8018 + '@modelcontextprotocol/sdk': 1.30.0(@cfworker/json-schema@4.1.1)(zod@4.4.3)
8019 transitivePeerDependencies:
8020 - bufferutil
8021 - supports-color
@@ -8058,7 +8028,7 @@ snapshots:
8028 protobufjs: 7.6.5
8029 ws: 8.21.3
8030 optionalDependencies:
8061 - '@modelcontextprotocol/sdk': 1.30.0(@cfworker/json-schema@4.1.1)(supports-color@10.2.2)(zod@4.4.3)
8031 + '@modelcontextprotocol/sdk': 1.30.0(@cfworker/json-schema@4.1.1)(zod@4.4.3)
8032 transitivePeerDependencies:
8033 - bufferutil
8034 - supports-color
@@ -8316,7 +8286,7 @@ snapshots:
8286 dependencies:
8287 '@langchain/core': 1.2.9(@opentelemetry/api@1.9.1)(openai@7.3.0(@aws-sdk/credential-provider-node@3.972.78)(@smithy/signature-v4@5.6.12)(ws@8.21.3)(zod@4.4.3))(ws@8.21.3)
8288 '@langchain/langgraph': 1.4.12(@langchain/core@1.2.9(@opentelemetry/api@1.9.1)(openai@7.3.0(@aws-sdk/credential-provider-node@3.972.78)(@smithy/signature-v4@5.6.12)(ws@8.21.3)(zod@4.4.3))(ws@8.21.3))(zod@4.4.3)
8319 - '@modelcontextprotocol/sdk': 1.30.0(@cfworker/json-schema@4.1.1)(supports-color@10.2.2)(zod@4.4.3)
8289 + '@modelcontextprotocol/sdk': 1.30.0(@cfworker/json-schema@4.1.1)(zod@4.4.3)
8290 debug: 4.4.3(supports-color@10.2.2)
8291 zod: 4.4.3
8292 optionalDependencies:
@@ -8392,7 +8362,7 @@ snapshots:
8362
8363 '@llamaindex/workflow-core@1.3.4(@modelcontextprotocol/sdk@1.30.0(@cfworker/json-schema@4.1.1)(zod@4.4.3))(hono@4.13.4)(zod@4.4.3)':
8364 optionalDependencies:
8395 - '@modelcontextprotocol/sdk': 1.30.0(@cfworker/json-schema@4.1.1)(supports-color@10.2.2)(zod@4.4.3)
8365 + '@modelcontextprotocol/sdk': 1.30.0(@cfworker/json-schema@4.1.1)(zod@4.4.3)
8366 hono: 4.13.4
8367 zod: 4.4.3
8368
@@ -8550,7 +8520,7 @@ snapshots:
8520 '@isaacs/ttlcache': 2.1.5
8521 '@lukeed/uuid': 2.0.1
8522 '@mastra/schema-compat': 1.3.4(zod@4.4.3)
8553 - '@modelcontextprotocol/sdk': 1.30.0(@cfworker/json-schema@4.1.1)(supports-color@10.2.2)(zod@4.4.3)
8523 + '@modelcontextprotocol/sdk': 1.30.0(@cfworker/json-schema@4.1.1)(zod@4.4.3)
8524 '@sindresorhus/slugify': 2.2.1
8525 '@standard-schema/spec': 1.1.0
8526 ajv: 8.20.0
@@ -8611,7 +8581,7 @@ snapshots:
8581 '@modelcontextprotocol/core': 2.0.0
8582 '@modelcontextprotocol/ext-apps': 1.7.5(@modelcontextprotocol/sdk@1.30.0(@cfworker/json-schema@4.1.1)(zod@4.4.3))(zod@4.4.3)
8583 '@modelcontextprotocol/node': 2.0.0(@modelcontextprotocol/server@2.0.0)(hono@4.13.4)
8614 - '@modelcontextprotocol/sdk': 1.30.0(@cfworker/json-schema@4.1.1)(supports-color@10.2.2)(zod@4.4.3)
8584 + '@modelcontextprotocol/sdk': 1.30.0(@cfworker/json-schema@4.1.1)(zod@4.4.3)
8585 '@modelcontextprotocol/server': 2.0.0
8586 '@modelcontextprotocol/server-legacy': 2.0.0(express@5.2.1)
8587 exit-hook: 5.1.0
@@ -8669,7 +8639,7 @@ snapshots:
8639
8640 '@modelcontextprotocol/ext-apps@1.7.5(@modelcontextprotocol/sdk@1.30.0(@cfworker/json-schema@4.1.1)(zod@4.4.3))(zod@4.4.3)':
8641 dependencies:
8672 - '@modelcontextprotocol/sdk': 1.30.0(@cfworker/json-schema@4.1.1)(supports-color@10.2.2)(zod@4.4.3)
8642 + '@modelcontextprotocol/sdk': 1.30.0(@cfworker/json-schema@4.1.1)(zod@4.4.3)
8643 '@standard-schema/spec': 1.1.0
8644 zod: 4.4.3
8645
@@ -8704,7 +8674,7 @@ snapshots:
8674 transitivePeerDependencies:
8675 - supports-color
8676
8707 - '@modelcontextprotocol/sdk@1.30.0(@cfworker/json-schema@4.1.1)(supports-color@10.2.2)(zod@4.4.3)':
8677 + '@modelcontextprotocol/sdk@1.30.0(@cfworker/json-schema@4.1.1)(zod@3.25.76)':
8678 dependencies:
8679 '@hono/node-server': 2.1.1(hono@4.13.4)
8680 ajv: 8.20.0
@@ -8715,20 +8685,20 @@ snapshots:
8685 eventsource: 3.0.7
8686 eventsource-parser: 3.1.1
8687 express: 5.2.1
8718 - express-rate-limit: 8.6.2(express@5.2.1)(supports-color@10.2.2)
8688 + express-rate-limit: 8.6.2(express@5.2.1)
8689 hono: 4.13.4
8690 jose: 6.2.9
8691 json-schema-typed: 8.0.2
8692 pkce-challenge: 5.0.1
8693 raw-body: 3.0.2
8724 - zod: 4.4.3
8725 - zod-to-json-schema: 3.25.2(zod@4.4.3)
8694 + zod: 3.25.76
8695 + zod-to-json-schema: 3.25.2(zod@3.25.76)
8696 optionalDependencies:
8697 '@cfworker/json-schema': 4.1.1
8698 transitivePeerDependencies:
8699 - supports-color
8700
8731 - '@modelcontextprotocol/sdk@1.30.0(@cfworker/json-schema@4.1.1)(zod@3.25.76)':
8701 + '@modelcontextprotocol/sdk@1.30.0(@cfworker/json-schema@4.1.1)(zod@4.4.3)':
8702 dependencies:
8703 '@hono/node-server': 2.1.1(hono@4.13.4)
8704 ajv: 8.20.0
@@ -8739,14 +8709,14 @@ snapshots:
8709 eventsource: 3.0.7
8710 eventsource-parser: 3.1.1
8711 express: 5.2.1
8742 - express-rate-limit: 8.6.2(express@5.2.1)(supports-color@10.2.2)
8712 + express-rate-limit: 8.6.2(express@5.2.1)
8713 hono: 4.13.4
8714 jose: 6.2.9
8715 json-schema-typed: 8.0.2
8716 pkce-challenge: 5.0.1
8717 raw-body: 3.0.2
8748 - zod: 3.25.76
8749 - zod-to-json-schema: 3.25.2(zod@3.25.76)
8718 + zod: 4.4.3
8719 + zod-to-json-schema: 3.25.2(zod@4.4.3)
8720 optionalDependencies:
8721 '@cfworker/json-schema': 4.1.1
8722 transitivePeerDependencies:
@@ -8757,7 +8727,7 @@ snapshots:
8727 '@modelcontextprotocol/core': 2.0.0
8728 content-type: 1.0.5
8729 cors: 2.8.6
8760 - express-rate-limit: 8.6.2(express@5.2.1)(supports-color@10.2.2)
8730 + express-rate-limit: 8.6.2(express@5.2.1)
8731 pkce-challenge: 5.0.1
8732 raw-body: 3.0.2
8733 zod: 4.4.3
@@ -10202,7 +10172,7 @@ snapshots:
10172 transitivePeerDependencies:
10173 - supports-color
10174
10205 - express-rate-limit@8.6.2(express@5.2.1)(supports-color@10.2.2):
10175 + express-rate-limit@8.6.2(express@5.2.1):
10176 dependencies:
10177 debug: 4.4.3(supports-color@10.2.2)
10178 express: 5.2.1
@@ -11926,7 +11896,7 @@ snapshots:
11896 '@ts-morph/common': 0.29.0
11897 code-block-writer: 13.0.3
11898
11929 - tsdown@0.22.14(@arethetypeswrong/core@0.18.5)(@typescript/typescript6@6.0.2)(publint@0.3.24)(tsx@4.23.12)(unrun@0.2.27):
11899 + tsdown@0.22.14(@arethetypeswrong/core@0.18.5)(@typescript/typescript6@6.0.2)(publint@0.3.24)(tsx@4.23.12)(unrun@0.2.27(@emnapi/core@1.11.2)(@emnapi/runtime@1.11.2)):
11900 dependencies:
11901 ansis: 4.3.1
11902 cac: 7.0.0
@@ -11955,7 +11925,7 @@ snapshots:
11925 - oxc-resolver
11926 - vue-tsc
11927
11958 - tsdown@0.22.14(@arethetypeswrong/core@0.18.5)(publint@0.3.24)(tsx@4.23.12)(typescript@7.0.2)(unrun@0.2.27):
11928 + tsdown@0.22.14(@arethetypeswrong/core@0.18.5)(publint@0.3.24)(tsx@4.23.12)(typescript@7.0.2)(unrun@0.2.27(@emnapi/core@1.11.2)(@emnapi/runtime@1.11.2)):
11929 dependencies:
11930 ansis: 4.3.1
11931 cac: 7.0.0
pnpm-workspace.yaml
-1
@@ -41,7 +41,6 @@ catalog:
41 '@effect/platform': ^0.97.1
42 '@effect/platform-bun': ^0.91.2
43 '@effect/platform-node': ^0.108.0
44 - '@effect/platform-node-shared': ^0.61.1
44 '@effect/vitest': ^0.30.0
45 # 1.52.1 is the latest version that keeps Node-only execa code out of
46 # Workers bundles.
ts/packages/cli/README.md
+1 -1
@@ -26,7 +26,7 @@ composio [--log-level all|trace|debug|info|warning|error|fatal|none]
26
27 ## 🧭 Commands
28
29 -- `composio version`: Display the current CLI version.
29 +- `composio version` (also `composio --version` or `-v`): Display the current CLI version.
30 - `composio whoami`: Show the currently logged-in user/account.
31 - `composio login [--no-browser] [--no-wait] [--key text] [--user-api-key text] [--org text] [-y, --yes] [--no-skill-install]`: Log in to the Composio CLI session.
32 - `composio logout`: Log out from the Composio CLI session.
ts/packages/cli/package.json
-9
@@ -52,17 +52,9 @@
52 "author": "Alberto Schiabel <alberto.schiabel@gmail.com> (https://github.com/jkomyno)",
53 "license": "ISC",
54 "devDependencies": {
55 - "@effect/cluster": "^0.60.2",
56 - "@effect/experimental": "^0.61.1",
55 "@effect/language-service": "catalog:",
56 "@effect/platform": "catalog:",
59 - "@effect/printer": "^0.51.0",
60 - "@effect/printer-ansi": "^0.51.0",
61 - "@effect/rpc": "^0.76.2",
62 - "@effect/sql": "^0.52.1",
63 - "@effect/typeclass": "^0.41.0",
57 "@effect/vitest": "catalog:",
65 - "@effect/workflow": "^0.19.1",
58 "@types/bun": "catalog:",
59 "@types/semver": "^7.8.0",
60 "tempy": "^3.2.0",
@@ -84,7 +76,6 @@
76 "@composio/ts-builders": "workspace:*",
77 "@effect/cli": "catalog:",
78 "@effect/platform-bun": "catalog:",
87 - "@effect/platform-node-shared": "catalog:",
79 "@modelcontextprotocol/sdk": "catalog:",
80 "@zed-industries/claude-code-acp": "^0.16.2",
81 "@zed-industries/codex-acp": "^0.16.0",
ts/packages/cli/src/commands/index.ts
+13 -7
@@ -251,12 +251,18 @@ export const parseExecuteInputHelpSlug = (argv: ReadonlyArray<string>): string |
251 return findSlug(Arr.drop(args, isRootExecute ? 1 : 2));
252 };
253
254 -const normalizeVersionShortFlag = (argv: ReadonlyArray<string>): ReadonlyArray<string> => {
255 - const args = argv.slice(2);
256 - if (args.length === 1 && args[0] === '-v') {
257 - return [...argv.slice(0, 2), '--version'];
258 - }
259 - return argv;
254 +const VERSION_FLAGS: ReadonlySet<string> = new Set(['--version', '-v']);
255 +
256 +/**
257 + * `composio --version` and `composio -v` are spellings of the `version` command: the flag is
258 + * rewritten before parsing so all three share one handler and print byte-identical output,
259 + * independent of how the CLI framework renders its own built-in version flag.
260 + */
261 +const normalizeVersionFlag = (argv: ReadonlyArray<string>): ReadonlyArray<string> => {
262 + const [first, ...rest] = argv.slice(2);
263 + return first !== undefined && VERSION_FLAGS.has(first)
264 + ? [...argv.slice(0, 2), 'version', ...rest]
265 + : argv;
266 };
267
268 const normalizeListenStreamFlag = (argv: ReadonlyArray<string>): ReadonlyArray<string> => {
@@ -532,7 +538,7 @@ export const runWithConfig = Effect.gen(function* () {
538 const { argv: argvWithoutDangerouslyAllow, dangerouslyAllow } =
539 normalizeDangerouslyAllowFlag(argv);
540 const { argv: normalizedArgv, overrides } = normalizeHiddenDebugFlags(
535 - normalizeListenStreamFlag(normalizeVersionShortFlag(argvWithoutDangerouslyAllow))
541 + normalizeListenStreamFlag(normalizeVersionFlag(argvWithoutDangerouslyAllow))
542 );
543
544 return parseRootInstallSkillRequest(normalizedArgv).pipe(
ts/packages/cli/src/effects/with-log-level.ts
+4 -3
@@ -2,13 +2,14 @@ import { Effect, Option, Logger, LogLevel, Layer } from 'effect';
2 import { APP_CONFIG } from 'src/effects/app-config';
3
4 /**
5 - * Sets the minimum log level for subsequent logging operation, preferring the given log level,
6 - * and falling back to the one read from the config.
5 + * Sets the minimum log level for subsequent logging operations: the `--log-level` CLI flag
6 + * wins when present, otherwise the level read from the config (`COMPOSIO_LOG_LEVEL`) applies,
7 + * otherwise `Info`.
8 */
9 export const setMinimumLogLevel = (logLevelFromCLI: Option.Option<LogLevel.LogLevel>) =>
10 APP_CONFIG['LOG_LEVEL'].pipe(
11 Effect.map(logLevelFromEnv => {
11 - return Option.zipLeft(logLevelFromCLI, logLevelFromEnv);
12 + return Option.orElse(logLevelFromCLI, () => logLevelFromEnv);
13 }),
14 Effect.map(Option.getOrElse(() => LogLevel.Info)),
15 Effect.map(logLevel => Logger.minimumLogLevel(logLevel)),
ts/packages/cli/test/src/commands/$default.cmd.test.ts
+12 -18
@@ -110,25 +110,19 @@ describe('CLI: composio', () => {
110 });
111
112 layer(TestLive())(it => {
113 - it.scoped("[Given] --version flag [Then] prints composio's version from package.json", () =>
113 + it.scoped('[Given] --version or -v [Then] prints exactly what `composio version` prints', () =>
114 Effect.gen(function* () {
115 - const args = ['--version'];
116 - yield* cli(args);
117 - const lines = yield* MockConsole.getLines();
118 - const output = lines.join('\n');
119 - expect(output).toContain(pkg.version);
120 - })
121 - );
122 - });
123 -
124 - layer(TestLive())(it => {
125 - it.scoped("[Given] -v flag [Then] prints composio's version from package.json", () =>
126 - Effect.gen(function* () {
127 - const args = ['-v'];
128 - yield* cli(args);
129 - const lines = yield* MockConsole.getLines();
130 - const output = lines.join('\n');
131 - expect(output).toContain(pkg.version);
115 + // Each spelling runs against a fresh console so the captured lines are comparable.
116 + const linesFor = (args: ReadonlyArray<string>) =>
117 + Effect.gen(function* () {
118 + yield* cli(args);
119 + return yield* MockConsole.getLines();
120 + }).pipe(Effect.provide(TestLive()));
121 +
122 + const expected = yield* linesFor(['version']);
123 + expect(expected.join('\n')).toContain(pkg.version);
124 + expect(yield* linesFor(['--version'])).toEqual(expected);
125 + expect(yield* linesFor(['-v'])).toEqual(expected);
126 })
127 );
128 });
ts/packages/cli/test/src/effects/with-log-level.test.ts new
+47
@@ -0,0 +1,47 @@
1 +import { describe, it } from '@effect/vitest';
2 +import { assertEquals } from '@effect/vitest/utils';
3 +import { ConfigProvider, Effect, FiberRef, LogLevel, Option } from 'effect';
4 +import { setMinimumLogLevel } from 'src/effects/with-log-level';
5 +import { extendConfigProvider } from 'src/services/config';
6 +
7 +const withEnv = (entries: ReadonlyArray<readonly [string, string]>) =>
8 + Effect.withConfigProvider(extendConfigProvider(ConfigProvider.fromMap(new Map(entries))));
9 +
10 +const resolveMinimumLogLevel = (logLevelFromCLI: Option.Option<LogLevel.LogLevel>) =>
11 + FiberRef.get(FiberRef.currentMinimumLogLevel).pipe(
12 + Effect.provide(setMinimumLogLevel(logLevelFromCLI))
13 + );
14 +
15 +describe('setMinimumLogLevel', () => {
16 + it.effect('[When] neither the flag nor COMPOSIO_LOG_LEVEL is set, it defaults to Info', () =>
17 + Effect.gen(function* () {
18 + const level = yield* resolveMinimumLogLevel(Option.none()).pipe(withEnv([]));
19 + assertEquals(level, LogLevel.Info);
20 + })
21 + );
22 +
23 + it.effect('[When] only COMPOSIO_LOG_LEVEL is set, it applies', () =>
24 + Effect.gen(function* () {
25 + const level = yield* resolveMinimumLogLevel(Option.none()).pipe(
26 + withEnv([['COMPOSIO_LOG_LEVEL', 'error']])
27 + );
28 + assertEquals(level, LogLevel.Error);
29 + })
30 + );
31 +
32 + it.effect('[When] only --log-level is set, it applies', () =>
33 + Effect.gen(function* () {
34 + const level = yield* resolveMinimumLogLevel(Option.some(LogLevel.Debug)).pipe(withEnv([]));
35 + assertEquals(level, LogLevel.Debug);
36 + })
37 + );
38 +
39 + it.effect('[When] both are set, --log-level wins over COMPOSIO_LOG_LEVEL', () =>
40 + Effect.gen(function* () {
41 + const level = yield* resolveMinimumLogLevel(Option.some(LogLevel.Debug)).pipe(
42 + withEnv([['COMPOSIO_LOG_LEVEL', 'error']])
43 + );
44 + assertEquals(level, LogLevel.Debug);
45 + })
46 + );
47 +});