diff --git a/.changeset/agent-kit-0-29.md b/.changeset/agent-kit-0-29.md new file mode 100644 index 0000000..1c5b865 --- /dev/null +++ b/.changeset/agent-kit-0-29.md @@ -0,0 +1,6 @@ +--- +'@rivus/agent-task-loop': patch +'@rivus/agent-finder-cli': patch +--- + +Upgrade `@rivus/agent-kit` and `@rivus/agent-kit-collab` to `0.29.0` and `effect` to `4.1.5`. diff --git a/apps/room-web/app/room-lab/infrastructure/agent-acp.server.ts b/apps/room-web/app/room-lab/infrastructure/agent-acp.server.ts index 569334f..0c2bdb6 100644 --- a/apps/room-web/app/room-lab/infrastructure/agent-acp.server.ts +++ b/apps/room-web/app/room-lab/infrastructure/agent-acp.server.ts @@ -206,6 +206,10 @@ function describePromptError(error: PromptError): string { switch (error._tag) { case 'TurnInProgress': return `the session's turn ${error.turn} is still running`; + case 'TurnActive': + return error.sessionId === undefined + ? `another session open is in flight on the ${error.agent} connection` + : `another session (${error.sessionId}) on the ${error.agent} connection is still running a turn`; case 'SessionClosed': return `the session is closed (${error.reason})`; case 'CancelUnsettled': diff --git a/apps/room-web/package.json b/apps/room-web/package.json index 9418e34..dd0243b 100644 --- a/apps/room-web/package.json +++ b/apps/room-web/package.json @@ -25,11 +25,11 @@ "@phosphor-icons/react": "^2.1.10", "@react-router/node": "^8.5.2", "@react-router/serve": "^8.5.2", - "@rivus/agent-kit": "0.25.0", - "@rivus/agent-kit-collab": "0.25.0", + "@rivus/agent-kit": "0.29.0", + "@rivus/agent-kit-collab": "0.29.0", "@rivus/agent-room": "workspace:*", "@rivus/agent-task-loop": "workspace:*", - "effect": "4.1.1", + "effect": "4.1.5", "@tiptap/core": "^3.35.0", "@tiptap/extension-character-count": "^3.35.0", "@tiptap/extension-document": "^3.35.0", diff --git a/packages/agent-finder-cli/package.json b/packages/agent-finder-cli/package.json index 4c97402..124f24c 100644 --- a/packages/agent-finder-cli/package.json +++ b/packages/agent-finder-cli/package.json @@ -50,7 +50,7 @@ "test:watch": "vp test watch" }, "dependencies": { - "@rivus/agent-kit": "0.25.0", + "@rivus/agent-kit": "0.29.0", "citty": "^0.2.2", "ink": "^8.0.0", "react": "^19.3.1" diff --git a/packages/agent-finder-cli/src/discovery/legacy-probe-recipes.ts b/packages/agent-finder-cli/src/discovery/legacy-probe-recipes.ts index cb04f5e..0179baa 100644 --- a/packages/agent-finder-cli/src/discovery/legacy-probe-recipes.ts +++ b/packages/agent-finder-cli/src/discovery/legacy-probe-recipes.ts @@ -2,11 +2,11 @@ import type { CodingAgentId } from '@rivus/agent-kit/catalog'; import { versionFromOutput, type ProbeRecipe } from '@rivus/agent-kit/discovery'; /** - * Probe recipes for the 20 agents the MoonBit catalog listed beyond the 7 the kit supports. Each is a field-for-field - * port of one spec in the deleted `agent_discovery_core/catalog/providers.mbt`: `id`→`agent`, `display_name`→ - * `displayName`, `kind`→`kind`, `commands`→`commands`, `config_paths`→`configPaths`, `app_paths`→`appPaths`, - * `mcp_paths`→`mcpConfigPaths`, the cli constructor's `--version` probe→`version`, and `warnings` verbatim. - * No agent carries an auth probe, because the MoonBit scanner had none. + * Probe recipes for the 19 agents the MoonBit catalog listed beyond the ones the kit detects with its own built-in + * recipes. Each is a field-for-field port of one spec in the deleted `agent_discovery_core/catalog/providers.mbt`: + * `id`→`agent`, `display_name`→`displayName`, `kind`→`kind`, `commands`→`commands`, `config_paths`→`configPaths`, + * `app_paths`→`appPaths`, `mcp_paths`→`mcpConfigPaths`, the cli constructor's `--version` probe→`version`, and + * `warnings` verbatim. No agent carries an auth probe, because the MoonBit scanner had none. */ /** ` --version`, the only version probe the MoonBit catalog ever ran, read with the kit's default parser. */ @@ -40,7 +40,7 @@ function probe( }; } -/** The MoonBit catalog's agents in catalog order, minus the six the kit detects with its own built-in recipes. */ +/** The MoonBit catalog's agents in catalog order, minus the ones the kit detects with its own built-in recipes. */ export const legacyProbeRecipes: Readonly> = { openhands: probe( 'app', @@ -143,7 +143,6 @@ export const legacyProbeRecipes: Readonly> = { [], ['Neovate provider metadata needs validation.'], ), - qoder: probe('cli', 'qoder', 'Qoder', ['qoder'], ['~/.qoder'], [], [], ['Qoder provider metadata needs validation.']), zencoder: probe( 'cli', 'zencoder', diff --git a/packages/agent-finder-cli/tests/cli.test.ts b/packages/agent-finder-cli/tests/cli.test.ts index 7025ccf..45ebca5 100644 --- a/packages/agent-finder-cli/tests/cli.test.ts +++ b/packages/agent-finder-cli/tests/cli.test.ts @@ -73,8 +73,8 @@ describe('@rivus/agent-finder-cli', () => { expect(result.status).toBe(0); const json = JSON.parse(result.stdout) as { agent: string; status: string }[]; - // The kit's 9 built-in agents plus the 20 the CLI carries as its own probe recipes. - expect(json).toHaveLength(29); + // The kit's 14 built-in agents plus the 19 the CLI carries as its own probe recipes. + expect(json).toHaveLength(33); expect(json.map((installation) => installation.agent)).toContain('codex'); expect(json.map((installation) => installation.agent)).toContain('grok'); expect(json.map((installation) => installation.agent)).toContain('amp'); @@ -87,7 +87,7 @@ describe('@rivus/agent-finder-cli', () => { const result = runCli(['doctor']); expect(result.status).toBe(0); - expect(result.stdout).toContain('Total providers: 29'); + expect(result.stdout).toContain('Total providers: 33'); expect(result.stdout).toContain('Runnable:'); }); }); diff --git a/packages/agent-task-loop/package.json b/packages/agent-task-loop/package.json index df818b2..46dca5e 100644 --- a/packages/agent-task-loop/package.json +++ b/packages/agent-task-loop/package.json @@ -62,10 +62,10 @@ "test:watch": "vp test watch" }, "dependencies": { - "@rivus/agent-kit": "0.25.0", - "@rivus/agent-kit-collab": "0.25.0", + "@rivus/agent-kit": "0.29.0", + "@rivus/agent-kit-collab": "0.29.0", "citty": "^0.2.2", - "effect": "4.1.1", + "effect": "4.1.5", "execa": "^10.2.1", "ink": "^8.0.0", "react": "^19.3.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 847b404..90a934e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -244,11 +244,11 @@ importers: specifier: ^8.5.2 version: 8.5.3(react-router@8.5.3(@types/react-dom@19.3.0(@types/react@19.3.0))(@types/react@19.3.0)(react-dom@19.3.1(react@19.3.1))(react@19.3.1))(supports-color@8.1.1)(typescript@7.0.2) '@rivus/agent-kit': - specifier: 0.25.0 - version: 0.25.0(effect@4.1.1) + specifier: 0.29.0 + version: 0.29.0(effect@4.1.5) '@rivus/agent-kit-collab': - specifier: 0.25.0 - version: 0.25.0(@rivus/agent-kit@0.25.0(effect@4.1.1))(effect@4.1.1) + specifier: 0.29.0 + version: 0.29.0(@rivus/agent-kit@0.29.0(effect@4.1.5))(effect@4.1.5) '@rivus/agent-room': specifier: workspace:* version: link:../../packages/agent-room @@ -298,8 +298,8 @@ importers: specifier: ^2.1.1 version: 2.1.1 effect: - specifier: 4.1.1 - version: 4.1.1 + specifier: 4.1.5 + version: 4.1.5 isbot: specifier: ^5.2.3 version: 5.2.4 @@ -393,8 +393,8 @@ importers: packages/agent-finder-cli: dependencies: '@rivus/agent-kit': - specifier: 0.25.0 - version: 0.25.0(effect@4.1.1) + specifier: 0.29.0 + version: 0.29.0(effect@4.1.5) citty: specifier: ^0.2.2 version: 0.2.2 @@ -439,17 +439,17 @@ importers: packages/agent-task-loop: dependencies: '@rivus/agent-kit': - specifier: 0.25.0 - version: 0.25.0(effect@4.1.1) + specifier: 0.29.0 + version: 0.29.0(effect@4.1.5) '@rivus/agent-kit-collab': - specifier: 0.25.0 - version: 0.25.0(@rivus/agent-kit@0.25.0(effect@4.1.1))(effect@4.1.1) + specifier: 0.29.0 + version: 0.29.0(@rivus/agent-kit@0.29.0(effect@4.1.5))(effect@4.1.5) citty: specifier: ^0.2.2 version: 0.2.2 effect: - specifier: 4.1.1 - version: 4.1.1 + specifier: 4.1.5 + version: 4.1.5 execa: specifier: ^10.2.1 version: 10.2.1 @@ -822,6 +822,10 @@ packages: resolution: {integrity: sha512-UUsjKkIJWC4JwhAK7IUMZeN4TjjtCWapAkdIuvllT3/fYcNooDQ0HtwgGDV77ew+arh/15hazN9M9/oSNV+PDg==} engines: {node: '>=16'} + '@decimalturn/toml-patch@3.3.4': + resolution: {integrity: sha512-tdARniW9jYOcP65G7/7PDL2Zh4jTJXW3gqpEIgflBhHzsQ6DF95msULoL4s4jIBZ1ygbAG1jnHScmGEVd+nliw==} + engines: {node: '>=16'} + '@earendil-works/chord@1.5.2': resolution: {integrity: sha512-3g088g7qVXL2cpRAKWjj9za6RLls9FBnuUo5c0hBZ0xCftBQjae0opS+34M22vdXTVE7BNqkRG/FPc9BsM7eEg==} engines: {node: '>=22.19.0'} @@ -2837,6 +2841,16 @@ packages: effect: optional: true + '@rivus/agent-kit-collab@0.29.0': + resolution: {integrity: sha512-sj8ZNUWbxxtydKz74t8pCFF3ux3qrwjVRRMNrs4t0UPqfF2NqG1GejiTyDhj+0O848FVl6zTdm03SPCeUqUz+w==} + engines: {node: '>=22.13'} + peerDependencies: + '@rivus/agent-kit': ^0.29.0 + effect: ^4.0.0 + peerDependenciesMeta: + effect: + optional: true + '@rivus/agent-kit@0.25.0': resolution: {integrity: sha512-EnJLmLEqMHcP+NhK1jv5NFi/ASQXdwGAiIDL/MPStwrNKLB2yLwZDzta4OA0GSpNkhXGh6zl/9MM21pdf5nvdQ==} engines: {node: '>=22.13'} @@ -2846,6 +2860,15 @@ packages: effect: optional: true + '@rivus/agent-kit@0.29.0': + resolution: {integrity: sha512-QqpLYl8VRKIbp8p4UlugyJKB4pdc+oyC+/aKUB72HPiz4FvyzK9sdQHiJ+TDvhbVXPeZLI20UhnSrgpqv2/v9w==} + engines: {node: '>=22.13'} + peerDependencies: + effect: ^4.0.0 + peerDependenciesMeta: + effect: + optional: true + '@rivus/agent@0.23.0': resolution: {integrity: sha512-kE0Ece36ipR1EbgkY2633BSaT/Eu7T5wer+Ap///Fe6IAVd78057lzoQQDWZgtnB2BQOh37eFMQAhBLFWZE+FA==} engines: {node: ^24.11.0 || ^26.13.1} @@ -3897,6 +3920,9 @@ packages: effect@4.1.1: resolution: {integrity: sha512-XYu65BrcmNqu5i7PPvP4dqL+R5ma37zIsfuSPjcn78mog+6e5PkilNg7Xo+pBpjXJYlWEIpH4j91tMrfW05CMw==} + effect@4.1.5: + resolution: {integrity: sha512-xyR20KhQI0vg2gD8ILUSQRTTESEYJ0JKdP+QD8J37xbwPTqXRxFM/l0+vUVD9fuSvoYruoTqyt33C4FZv1s4TQ==} + electron-to-chromium@1.5.416: resolution: {integrity: sha512-K6bvB2BjnNrugtIih6ewlbBI9DXa976jIdiIlRLHhBoEI9a4JaQjjHyF+A1IQI543aQYR4LnmOrT/K5fZj0aPA==} @@ -6094,6 +6120,8 @@ snapshots: '@decimalturn/toml-patch@3.3.2': {} + '@decimalturn/toml-patch@3.3.4': {} + '@earendil-works/chord@1.5.2(esbuild@0.28.2)(react@19.3.1)': dependencies: '@earendil-works/pi-schema': 1.5.2 @@ -7882,6 +7910,13 @@ snapshots: optionalDependencies: effect: 4.1.1 + '@rivus/agent-kit-collab@0.29.0(@rivus/agent-kit@0.29.0(effect@4.1.5))(effect@4.1.5)': + dependencies: + '@rivus/agent-kit': 0.29.0(effect@4.1.5) + zod: 4.6.7 + optionalDependencies: + effect: 4.1.5 + '@rivus/agent-kit@0.25.0(effect@4.1.1)': dependencies: '@agentclientprotocol/sdk': 1.9.0(zod@4.6.7) @@ -7893,6 +7928,19 @@ snapshots: optionalDependencies: effect: 4.1.1 + '@rivus/agent-kit@0.29.0(effect@4.1.5)': + dependencies: + '@agentclientprotocol/sdk': 2.9.1(zod@4.6.7) + '@decimalturn/toml-patch': 3.3.4 + es-toolkit: 1.53.2 + jsonc-parser: 3.3.1 + shell-quote: 1.12.0 + zod: 4.6.7 + optionalDependencies: + effect: 4.1.5 + transitivePeerDependencies: + - '@modelcontextprotocol/server' + '@rivus/agent@0.23.0(@agentclientprotocol/sdk@1.5.1(zod@4.6.7))(@aws-sdk/credential-provider-node@3.972.84)(@modelcontextprotocol/sdk@1.32.2(supports-color@8.1.1)(zod@4.6.7))(@smithy/signature-v4@5.7.4)(debug@4.4.3(supports-color@8.1.1))(esbuild@0.28.2)(react@19.3.1)(supports-color@8.1.1)(undici@8.12.4)(zod@4.6.7)': dependencies: '@rivus/gateway': 0.23.0(@aws-sdk/credential-provider-node@3.972.84)(@modelcontextprotocol/sdk@1.32.2(supports-color@8.1.1)(zod@4.6.7))(@smithy/signature-v4@5.7.4)(debug@4.4.3(supports-color@8.1.1))(esbuild@0.28.2)(react@19.3.1)(supports-color@8.1.1)(undici@8.12.4)(zod@4.6.7) @@ -8794,6 +8842,8 @@ snapshots: effect@4.1.1: {} + effect@4.1.5: {} + electron-to-chromium@1.5.416: {} encodeurl@2.0.0: {}