The Open Framework for Building Agents
fix(registry): install compatible Vercel CLI (#2368)
OwenKephart8d2d91e7d936
diff --git a/.changeset/calm-trigger-event-cli-dependency.md b/.changeset/calm-trigger-event-cli-dependency.mdnew file mode 100644index 000000000..a6206de11--- /dev/null+++ b/.changeset/calm-trigger-event-cli-dependency.md@@ -0,0 +1,5 @@+---+"eve": patch+---++GitHub, Linear Agent, and Linq registry items now install Vercel CLI 58.5.1 or newer for guided setup. Linq setup no longer tries to infer CLI compatibility from connector creation errors.diff --git a/apps/docs/registry.json b/apps/docs/registry.jsonindex dfb669f87..dc5615d01 100644--- a/apps/docs/registry.json+++ b/apps/docs/registry.json@@ -1398,7 +1398,8 @@"implementation": "native"}},- "dependencies": ["@vercel/connect@>=0.6.0"]+ "dependencies": ["@vercel/connect@>=0.6.0"],+ "devDependencies": ["vercel@>=58.5.1"]},{"name": "channel/linear-agent",@@ -1418,7 +1419,8 @@"implementation": "native"}},- "dependencies": ["@vercel/connect"]+ "dependencies": ["@vercel/connect"],+ "devDependencies": ["vercel@>=58.5.1"]},{"name": "channel/web",@@ -1899,6 +1901,7 @@"title": "Linq","description": "Connect an eve agent to iMessage and SMS through Linq with guided Connect or portable setup.","dependencies": ["@vercel/connect@>=0.9.0"],+ "devDependencies": ["vercel@>=58.5.1"],"meta": {"eve": {"setup": {diff --git a/packages/eve/src/setup/integrations/linq/connect.test.ts b/packages/eve/src/setup/integrations/linq/connect.test.tsindex 4c67c3d02..1f552a095 100644--- a/packages/eve/src/setup/integrations/linq/connect.test.ts+++ b/packages/eve/src/setup/integrations/linq/connect.test.ts@@ -1,8 +1,6 @@import { describe, expect, it, vi } from "vitest";import type { ChannelSetupLog } from "#setup/cli/index.js";-import { HumanActionRequiredError } from "#setup/human-action.js";-import { parseCreatedLinqConnector, provisionLinqConnector } from "./connect.js";function log(): ChannelSetupLog {@@ -31,32 +29,6 @@ describe("Linq Connect provisioning", () => {).toEqual({ id: "scl_linq", uid: "linq/agent", phoneNumber: "+14155550123" });});- it("requests a Vercel CLI upgrade when trigger options are unsupported", async () => {- const runVercelCaptureStdout = vi.fn(async () => ({- ok: false as const,- stdout: "",- stderr:- "Vercel CLI 56.4.1 (Node.js 24.18.0)\nError: unknown or unexpected option: --trigger-event",- }));-- await expect(- provisionLinqConnector({- log: log(),- project: { orgId: "team_123", projectId: "prj_123" },- projectRoot: "/project",- slug: "agent",- deps: { runVercel: vi.fn(), runVercelCaptureStdout },- }),- ).rejects.toEqual(- new HumanActionRequiredError({- kind: "vercel-cli-upgrade",- command: "vercel upgrade",- reason:- "The installed Vercel CLI does not support the trigger options Linq setup needs. Upgrade it and retry.",- }),- );- });-it("creates a connector for an existing Linq account without exposing its token in argv", async () => {const runVercelCaptureStdout = vi.fn()diff --git a/packages/eve/src/setup/integrations/linq/connect.ts b/packages/eve/src/setup/integrations/linq/connect.tsindex 5085f69a4..d05b8a0ef 100644--- a/packages/eve/src/setup/integrations/linq/connect.ts+++ b/packages/eve/src/setup/integrations/linq/connect.ts@@ -1,7 +1,6 @@import type { ChannelSetupLog } from "#setup/cli/index.js";import { createPromptCommandOutput, withPhase } from "#setup/cli/index.js";import type { ProcessOutputHandler } from "#setup/primitives/process-output.js";-import { HumanActionRequiredError } from "#setup/human-action.js";import { replaceConnectTrigger } from "#setup/connect-provisioning.js";import type { VercelProjectReference } from "#setup/project-resolution.js";import {@@ -54,15 +53,6 @@ export function parseCreatedLinqConnector(stdout: string): LinqConnectorRef | unfunction requireCreatedConnector(result: RunVercelCaptureResult): LinqConnectorRef {if (!result.ok) {- const output = `${result.stderr ?? ""}\n${result.stdout}`;- if (/(?:unknown|unexpected|invalid).*--trigger-event/iu.test(output)) {- throw new HumanActionRequiredError({- kind: "vercel-cli-upgrade",- command: "vercel upgrade",- reason:- "The installed Vercel CLI does not support the trigger options Linq setup needs. Upgrade it and retry.",- });- }const detail = [result.stderr, result.stdout].find((value): value is string => value !== undefined && value.trim().length > 0,);