Skip to content

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

chore: upgrade effect deps to latest

jkomyno19cd42513ccf
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index a95efd304..c2b056fc4 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -21,6 +21,27 @@ catalogs:
'@composio/client':
specifier: 0.1.0-alpha.56
version: 0.1.0-alpha.56
+ '@effect/cli':
+ specifier: ^0.73.2
+ version: 0.73.2
+ '@effect/eslint-plugin':
+ specifier: ^0.3.2
+ version: 0.3.2
+ '@effect/language-service':
+ specifier: ^0.74.0
+ version: 0.74.0
+ '@effect/platform':
+ specifier: ^0.94.5
+ version: 0.94.5
+ '@effect/platform-bun':
+ specifier: ^0.87.1
+ version: 0.87.1
+ '@effect/platform-node-shared':
+ specifier: ^0.57.1
+ version: 0.57.1
+ '@effect/vitest':
+ specifier: ^0.27.0
+ version: 0.27.0
'@mastra/core':
specifier: ^1.0.4
version: 1.0.4
@@ -30,6 +51,9 @@ catalogs:
ai:
specifier: ^6.0.27
version: 6.0.49
+ effect:
+ specifier: ^3.19.15
+ version: 3.19.15
hono:
specifier: ^4.11.4
version: 4.11.5
@@ -952,8 +976,8 @@ importers:
ts/packages/cli:
dependencies:
'@clack/prompts':
- specifier: 1.0.0-alpha.1
- version: 1.0.0-alpha.1
+ specifier: 1.0.1
+ version: 1.0.1
'@composio/client':
specifier: 'catalog:'
version: 0.1.0-alpha.56
@@ -964,14 +988,14 @@ importers:
specifier: workspace:*
version: link:../ts-builders
'@effect/cli':
- specifier: ^0.64.2
+ specifier: 'catalog:'
'@effect/platform-bun':
- specifier: ^0.70.4
+ specifier: 'catalog:'
'@effect/platform-node-shared':
- specifier: ^0.40.4
+ specifier: 'catalog:'
ansis:
specifier: ^4.1.0
version: 4.2.0
@@ -982,7 +1006,7 @@ importers:
specifier: ^4.2.1
version: 4.2.1
effect:
- specifier: ^3.16.16
+ specifier: 'catalog:'
version: 3.19.15
indent-string:
specifier: ^5.0.0
@@ -1010,17 +1034,17 @@ importers:
version: 26.0.0
devDependencies:
'@effect/eslint-plugin':
- specifier: ^0.3.2
+ specifier: 'catalog:'
version: 0.3.2
'@effect/language-service':
- specifier: ^0.27.1
- version: 0.27.2
+ specifier: 'catalog:'
+ version: 0.74.0
'@effect/platform':
- specifier: ^0.85.2
- version: 0.85.2([email protected])
+ specifier: 'catalog:'
+ version: 0.94.5([email protected])
'@effect/vitest':
- specifier: ^0.23.8
+ specifier: 'catalog:'
'@types/bun':
specifier: ^1.2.16
version: 1.3.6
@@ -1588,11 +1612,11 @@ packages:
'@changesets/[email protected]':
resolution: {integrity: sha512-CdTLvIOPiCNuH71pyDu3rA+Q0n65cmAbXnwWH84rKGiFumFzkmHNT8KHTMEchcxN+Kl8I54xGUhJ7l3E7X396Q==}
- '@clack/[email protected]':
- resolution: {integrity: sha512-rFbCU83JnN7l3W1nfgCqqme4ZZvTTgsiKQ6FM0l+r0P+o2eJpExcocBUWUIwnDzL76Aca9VhUdWmB2MbUv+Qyg==}
+ '@clack/[email protected]':
+ resolution: {integrity: sha512-WKeyK3NOBwDOzagPR5H08rFk9D/WuN705yEbuZvKqlkmoLM2woKtXb10OO2k1NoSU4SFG947i2/SCYh+2u5e4g==}
- '@clack/[email protected]':
- resolution: {integrity: sha512-07MNT0OsxjKOcyVfX8KhXBhJiyUbDP1vuIAcHc+nx5v93MJO23pX3X/k3bWz6T3rpM9dgWPq90i4Jq7gZAyMbw==}
+ '@clack/[email protected]':
+ resolution: {integrity: sha512-/42G73JkuYdyWZ6m8d/CJtBrGl1Hegyc7Fy78m5Ob+jF85TOUmLR5XLce/U3LxYAw0kJ8CT5aI99RIvPHcGp/Q==}
'@cloudflare/[email protected]':
resolution: {integrity: sha512-+tv3z+SPp+gqTIcImN9o0hqE9xyfQjI1XD9pL6NuKjua9B1y7mNYv0S9cP+QEbA4ppVgGZEmKOvHX5G5Ei1CVA==}
@@ -1707,13 +1731,13 @@ packages:
'@dprint/[email protected]':
resolution: {integrity: sha512-tuKn4leCPItox1O4uunHcQF0QllDCvPWklnNQIh2PiWWVtRAGltJJnM4Cwj5AciplosD1Hiz7vAY3ew3crLb3A==}
- '@effect/[email protected]':
- resolution: {integrity: sha512-j+HsbpyglfVwNFVgFNxb7EDVDvvGJgWqDqvN1B+idfHMl9D+3qB1P3pou/40yKj8J3dpOR87OBSSVIDrKc97mg==}
+ '@effect/[email protected]':
+ resolution: {integrity: sha512-K8IJo81+qa1LU8dhxcDU4QO/bIjL/dPd3zUOSCpLiuUNz8Y3/T+WNs3GqIXEhMfCFMSlRZERN0YgmtRlEZUREA==}
peerDependencies:
- '@effect/platform': ^0.85.2
- '@effect/printer': ^0.44.8
- '@effect/printer-ansi': ^0.44.8
- effect: ^3.16.8
+ '@effect/platform': ^0.94.3
+ '@effect/printer': ^0.47.0
+ '@effect/printer-ansi': ^0.47.0
+ effect: ^3.19.16
'@effect/[email protected]':
resolution: {integrity: sha512-KdixcfCteksRIVEe/X9vsPhEbxQxOr2ID/PD0mwgkQHD5enN1gU1WVG0EOkNux9XA4K4KO6BuHzilqXZSeNdNg==}
@@ -1740,32 +1764,32 @@ packages:
lmdb:
optional: true
- '@effect/[email protected]':
- resolution: {integrity: sha512-AFgxoIZ6xpfwCZp7+1mj3f1HsK3Yqe9I0iUfpf8Iu2gl9F3dmdFiOvuoLRVSkfVsK2BTQr8kv2zPi53Lst2haw==}
+ '@effect/[email protected]':
+ resolution: {integrity: sha512-ZqOvxCUo70WtnV8Kf4ORcEW6euepPn3Yu9btB0vpDhN5ydf1RC3/kl2M2b22tzB0MOITeJzNn5HK7w7NJhQFaw==}
hasBin: true
- '@effect/[email protected]':
- resolution: {integrity: sha512-3nvR+RFo0apkwL1HgbuyVCDFqTtgkubiHSN8T0zC+nYJWvghR75VaU2ajbDLECUltpef53g5iNisnXpwUC92bQ==}
+ '@effect/[email protected]':
+ resolution: {integrity: sha512-I88d0YqWbvLY2GGeIxK3r5k0l/MoUCCnxiHJG+X6gqaHu+pIs0djDtJ+ORhw/3qha9ojcVu6pyaBmnUjgzQHWQ==}
peerDependencies:
- '@effect/cluster': ^0.39.5
- '@effect/platform': ^0.85.2
- '@effect/rpc': ^0.62.4
- '@effect/sql': ^0.38.2
- effect: ^3.16.8
-
- '@effect/[email protected]':
- resolution: {integrity: sha512-Ru86IQ0E3tZNgO6UiWXBWNj4qZOgMT10z4fGF7Y4XwaB6lASWaFmCsDAkfYSqsmoesbtWvPQXbJkOr2QHYeU0Q==}
+ '@effect/cluster': ^0.56.1
+ '@effect/platform': ^0.94.2
+ '@effect/rpc': ^0.73.0
+ '@effect/sql': ^0.49.0
+ effect: ^3.19.15
+
+ '@effect/[email protected]':
+ resolution: {integrity: sha512-oX/bApMdoKsyrDiNdJxo7U9Rz1RXsjRv+ecfAPp1qGlSdGIo32wVRvJ2XCHqYj0sqaYJS0pU0/GCulRfVGuJag==}
peerDependencies:
- '@effect/cluster': ^0.39.5
- '@effect/platform': ^0.85.2
- '@effect/rpc': ^0.62.4
- '@effect/sql': ^0.38.2
- effect: ^3.16.8
-
- '@effect/[email protected]':
- resolution: {integrity: sha512-zIRixbQeO6QniR0k2mwR7DmR2HO1w6+qQlzQ5nb8lyPyPgd1gV9wo/9yBeB6zRC+CGnxiUiYsRMamclVISuxLw==}
+ '@effect/cluster': ^0.56.1
+ '@effect/platform': ^0.94.2
+ '@effect/rpc': ^0.73.0
+ '@effect/sql': ^0.49.0
+ effect: ^3.19.15
+
+ '@effect/[email protected]':
+ resolution: {integrity: sha512-z05APUiDDPbodhTkH/RJqOLoCU11bU2IZLfcwLFrld03+ob1VeqRnELQlmueLIYm6NZifHAtjl32V+GRt34y4A==}
peerDependencies:
- effect: ^3.16.8
+ effect: ^3.19.17
'@effect/[email protected]':
resolution: {integrity: sha512-/AWQ1jDLfRm/Zk/jDlE9uX02Da4A4+4VBhU+huao29CcKsO5JPkJLVWiARutThFoVBmp+m4lVLCHqND/tc2W6A==}
@@ -1797,11 +1821,11 @@ packages:
peerDependencies:
effect: ^3.16.14
- '@effect/[email protected]':
- resolution: {integrity: sha512-F3x2phMXuVzqWexdcYp8v0z1qQHkKxp2UaHNbqZaEjPEp8FBz/iMwbi6iS/oIWzLfGF8XqdP8BGJptvGIJONNw==}
+ '@effect/[email protected]':
+ resolution: {integrity: sha512-8bM7n9xlMUYw9GqPIVgXFwFm2jf27m/R7psI64PGpwU5+26iwyxp9eAXEsfT5S6lqztYfpQQ1Ubp5o6HfNYzJQ==}
peerDependencies:
- effect: ^3.16.13
- vitest: ^3.0.0
+ effect: ^3.19.0
+ vitest: ^3.2.0
'@effect/[email protected]':
resolution: {integrity: sha512-FUvZ3x2uDqRwNYJ4e5Mz0YO9MncH3o4uDLOtFRuTCW+NnMN0dLAiEwg2TsLwtWEm1xayAyk6Nn1+AM6TUmFLhw==}
@@ -7028,14 +7052,14 @@ snapshots:
human-id: 4.1.3
prettier: 2.8.8
- '@clack/[email protected]':
+ '@clack/[email protected]':
dependencies:
picocolors: 1.1.1
sisteransi: 1.0.5
- '@clack/[email protected]':
+ '@clack/[email protected]':
dependencies:
- '@clack/core': 1.0.0-alpha.1
+ '@clack/core': 1.0.1
picocolors: 1.1.1
sisteransi: 1.0.5
@@ -7119,9 +7143,9 @@ snapshots:
'@dprint/[email protected]': {}
dependencies:
- '@effect/platform': 0.85.2([email protected])
+ '@effect/platform': 0.94.5([email protected])
'@effect/printer': 0.44.14(@effect/[email protected]([email protected]))([email protected])
'@effect/printer-ansi': 0.44.14(@effect/[email protected]([email protected]))([email protected])
effect: 3.19.15
@@ -7129,12 +7153,12 @@ snapshots:
toml: 3.0.0
yaml: 2.8.2
dependencies:
- '@effect/platform': 0.85.2([email protected])
- '@effect/rpc': 0.62.4(@effect/[email protected]([email protected]))([email protected])
+ '@effect/platform': 0.94.5([email protected])
+ '@effect/rpc': 0.62.4(@effect/[email protected]([email protected]))([email protected])
effect: 3.19.15
'@effect/[email protected]':
@@ -7143,33 +7167,33 @@ snapshots:
'@dprint/typescript': 0.91.8
prettier-linter-helpers: 1.0.1
dependencies:
- '@effect/platform': 0.85.2([email protected])
+ '@effect/platform': 0.94.5([email protected])
effect: 3.19.15
uuid: 11.1.0
- '@effect/[email protected]': {}
+ '@effect/[email protected]': {}
dependencies:
- '@effect/platform': 0.85.2([email protected])
- '@effect/rpc': 0.62.4(@effect/[email protected]([email protected]))([email protected])
+ '@effect/platform': 0.94.5([email protected])
+ '@effect/rpc': 0.62.4(@effect/[email protected]([email protected]))([email protected])
effect: 3.19.15
multipasta: 0.2.7
transitivePeerDependencies:
- bufferutil
- utf-8-validate
dependencies:
- '@effect/platform': 0.85.2([email protected])
- '@effect/rpc': 0.62.4(@effect/[email protected]([email protected]))([email protected])
+ '@effect/platform': 0.94.5([email protected])
+ '@effect/rpc': 0.62.4(@effect/[email protected]([email protected]))([email protected])
'@parcel/watcher': 2.5.6
effect: 3.19.15
multipasta: 0.2.7
@@ -7178,7 +7202,7 @@ snapshots:
- bufferutil
- utf-8-validate
dependencies:
effect: 3.19.15
find-my-way-ts: 0.1.6
@@ -7196,15 +7220,15 @@ snapshots:
'@effect/typeclass': 0.35.14([email protected])
effect: 3.19.15
dependencies:
- '@effect/platform': 0.85.2([email protected])
+ '@effect/platform': 0.94.5([email protected])
effect: 3.19.15
dependencies:
- '@effect/experimental': 0.49.2(@effect/[email protected]([email protected]))([email protected])
- '@effect/platform': 0.85.2([email protected])
+ '@effect/experimental': 0.49.2(@effect/[email protected]([email protected]))([email protected])
+ '@effect/platform': 0.94.5([email protected])
'@opentelemetry/semantic-conventions': 1.39.0
effect: 3.19.15
uuid: 11.1.0
@@ -7213,15 +7237,15 @@ snapshots:
dependencies:
effect: 3.19.15
dependencies:
effect: 3.19.15
dependencies:
- '@effect/platform': 0.85.2([email protected])
- '@effect/rpc': 0.62.4(@effect/[email protected]([email protected]))([email protected])
+ '@effect/platform': 0.94.5([email protected])
+ '@effect/rpc': 0.62.4(@effect/[email protected]([email protected]))([email protected])
effect: 3.19.15
'@emnapi/[email protected]':
diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml
index 83e78e2e0..2f00f40a0 100644
--- a/pnpm-workspace.yaml
+++ b/pnpm-workspace.yaml
@@ -17,9 +17,18 @@ catalog:
'@cloudflare/vitest-pool-workers': ^0.9.2
'@cloudflare/workers-types': ^4.20250917.0
'@composio/client': 0.1.0-alpha.56
+ '@effect/cli': ^0.73.2
+ "@effect/eslint-plugin": ^0.3.2
+ '@effect/language-service': ^0.74.0
+ '@effect/platform': ^0.94.5
+ '@effect/platform-bun': ^0.87.1
+ '@effect/platform-node': ^0.104.1
+ '@effect/platform-node-shared': ^0.57.1
+ '@effect/vitest': ^0.27.0
'@mastra/core': ^1.0.4
'@modelcontextprotocol/sdk': ^1.25.2
ai: ^6.0.27
+ effect: ^3.19.15
hono: ^4.11.4
openai: ^6.16.0
pnpm: ^10.28.0
diff --git a/ts/packages/cli/package.json b/ts/packages/cli/package.json
index f91722064..1c19701ad 100644
--- a/ts/packages/cli/package.json
+++ b/ts/packages/cli/package.json
@@ -47,10 +47,10 @@
"license": "ISC",
"packageManager": "[email protected]",
"devDependencies": {
- "@effect/eslint-plugin": "^0.3.2",
- "@effect/language-service": "^0.27.1",
- "@effect/platform": "^0.85.2",
- "@effect/vitest": "^0.23.8",
+ "@effect/eslint-plugin": "catalog:",
+ "@effect/language-service": "catalog:",
+ "@effect/platform": "catalog:",
+ "@effect/vitest": "catalog:",
"@types/bun": "^1.2.16",
"@types/decompress": "^4.2.7",
"@types/semver": "^7.7.0",
@@ -61,17 +61,17 @@
"vitest": "catalog:"
},
"dependencies": {
- "@clack/prompts": "1.0.0-alpha.1",
+ "@clack/prompts": "1.0.1",
"@composio/client": "catalog:",
"@composio/core": "workspace:*",
"@composio/ts-builders": "workspace:*",
- "@effect/cli": "^0.64.2",
- "@effect/platform-bun": "^0.70.4",
- "@effect/platform-node-shared": "^0.40.4",
+ "@effect/cli": "catalog:",
+ "@effect/platform-bun": "catalog:",
+ "@effect/platform-node-shared": "catalog:",
"ansis": "^4.1.0",
"comment-json": "^4.2.5",
"decompress": "^4.2.1",
- "effect": "^3.16.16",
+ "effect": "catalog:",
"indent-string": "^5.0.0",
"open": "^10.2.0",
"openapi-typescript": "^7.8.0",
diff --git a/ts/packages/cli/test/__utils__/services/mock-console.ts b/ts/packages/cli/test/__utils__/services/mock-console.ts
index 745f66fce..e5e662ec0 100644
--- a/ts/packages/cli/test/__utils__/services/mock-console.ts
+++ b/ts/packages/cli/test/__utils__/services/mock-console.ts
@@ -1,10 +1,10 @@
-// Inspired from https://github.com/Effect-TS/effect/blob/a2d57c9ac596445009ca12859b78e00e5d89b936/packages/cli/test/services/MockConsole.ts.
+// DO NOT MODIFY THIS FILE.
+// Adapted from https://github.com/Effect-TS/effect/blob/4f2107548fa64c21a8643b7b0efcd556cd16d4b9/packages/cli/test/services/MockConsole.ts
import * as Array from 'effect/Array';
import * as Console from 'effect/Console';
import * as Context from 'effect/Context';
import * as Effect from 'effect/Effect';
-import * as Layer from 'effect/Layer';
import * as Ref from 'effect/Ref';
export interface MockConsole extends Console.Console {
@@ -77,16 +77,9 @@ export const make = Effect.gen(function* () {
});
});
-export const effect = Effect.gen(function* () {
- yield* Effect.addFinalizer(() => Console.clear);
- return yield* make;
-});
-
-export const layer = Layer.scoped(MockConsole, effect);
-
export const getLines = (
params?: Partial<{
readonly stripAnsi?: boolean;
}>
): Effect.Effect<ReadonlyArray<string>> =>
- Effect.consoleWith(_console => (_console as MockConsole).getLines(params));
+ Effect.consoleWith(console => (console as MockConsole).getLines(params));
diff --git a/ts/packages/cli/test/__utils__/services/mock-terminal.ts b/ts/packages/cli/test/__utils__/services/mock-terminal.ts
index aeb0d60a7..0b3d8e450 100644
--- a/ts/packages/cli/test/__utils__/services/mock-terminal.ts
+++ b/ts/packages/cli/test/__utils__/services/mock-terminal.ts
@@ -1,13 +1,14 @@
-// Copied from https://github.com/Effect-TS/effect/blob/a2d57c9ac596445009ca12859b78e00e5d89b936/packages/cli/test/services/MockTerminal.ts
+// DO NOT MODIFY THIS FILE.
+// Copied from https://github.com/Effect-TS/effect/blob/4f2107548fa64c21a8643b7b0efcd556cd16d4b9/packages/cli/test/services/MockTerminal.ts
-import * as Terminal from '@effect/platform/Terminal';
+import type * as Terminal from '@effect/platform/Terminal';
import * as Array from 'effect/Array';
import * as Console from 'effect/Console';
import * as Context from 'effect/Context';
import * as Effect from 'effect/Effect';
import * as Layer from 'effect/Layer';
+import * as Mailbox from 'effect/Mailbox';
import * as Option from 'effect/Option';
-import * as Queue from 'effect/Queue';
// =============================================================================
// Models
@@ -41,14 +42,12 @@ export const MockTerminal = Context.GenericTag<Terminal.Terminal, MockTerminal>(
// Constructors
// =============================================================================
-export const make = Effect.gen(function* (_) {
- const queue = yield* _(
- Effect.acquireRelease(Queue.unbounded<Terminal.UserInput>(), Queue.shutdown)
- );
+export const make = Effect.gen(function* () {
+ const queue = yield* Effect.acquireRelease(Mailbox.make<Terminal.UserInput>(), _ => _.shutdown);
const inputText: MockTerminal['inputText'] = (text: string) => {
const inputs = Array.map(text.split(''), key => toUserInput(key));
- return Queue.offerAll(queue, inputs).pipe(Effect.asVoid);
+ return queue.offerAll(inputs).pipe(Effect.asVoid);
};
const inputKey: MockTerminal['inputKey'] = (
@@ -56,24 +55,17 @@ export const make = Effect.gen(function* (_) {
modifiers?: Partial<MockTerminal.Modifiers>
) => {
const input = toUserInput(key, modifiers);
- return Queue.offer(queue, input).pipe(Effect.asVoid);
+ return shouldQuit(input) ? queue.end : queue.offer(input).pipe(Effect.asVoid);
};
const display: MockTerminal['display'] = input => Console.log(input);
- const readInput: MockTerminal['readInput'] = Queue.take(queue).pipe(
- Effect.filterOrFail(
- input => !shouldQuit(input),
- () => new Terminal.QuitException()
- ),
- Effect.timeoutFail({
- duration: '2 seconds',
- onTimeout: () => new Terminal.QuitException(),
- })
- );
+ const readInput: MockTerminal['readInput'] = Effect.succeed(queue);
return MockTerminal.of({
columns: Effect.succeed(80),
+ rows: Effect.succeed(24),
+ isTTY: Effect.succeed(true),
display,
readInput,
readLine: Effect.succeed(''),
diff --git a/ts/packages/cli/test/__utils__/services/test-layer.ts b/ts/packages/cli/test/__utils__/services/test-layer.ts
index ef4c21d20..00d837ad8 100644
--- a/ts/packages/cli/test/__utils__/services/test-layer.ts
+++ b/ts/packages/cli/test/__utils__/services/test-layer.ts
@@ -248,7 +248,7 @@ export const TestLayer = (input?: TestLiveInput) =>
const CliConfigLive = CliConfig.layer(ComposioCliConfig);
- const _console = yield* MockConsole.effect;
+ const _console = yield* MockConsole.make;
const layers = Layer.mergeAll(
Console.setConsole(_console),