From 5de9f402d16aee2fe38587591b16dd658bb8d43c Mon Sep 17 00:00:00 2001 From: owenkephart Date: Mon, 24 Aug 2026 01:14:15 +0000 Subject: [PATCH] fix(registry): install compatible Vercel CLI Signed-off-by: owenkephart --- .../calm-trigger-event-cli-dependency.md | 5 ++++ apps/docs/registry.json | 7 +++-- .../setup/integrations/linq/connect.test.ts | 28 ------------------- .../src/setup/integrations/linq/connect.ts | 10 ------- 4 files changed, 10 insertions(+), 40 deletions(-) create mode 100644 .changeset/calm-trigger-event-cli-dependency.md diff --git a/.changeset/calm-trigger-event-cli-dependency.md b/.changeset/calm-trigger-event-cli-dependency.md new file mode 100644 index 0000000000..a6206de116 --- /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.json index a74d6a20d5..122e6f3f66 100644 --- a/apps/docs/registry.json +++ b/apps/docs/registry.json @@ -1387,7 +1387,8 @@ "implementation": "native" } }, - "dependencies": ["@vercel/connect@>=0.6.0"] + "dependencies": ["@vercel/connect@>=0.6.0"], + "devDependencies": ["vercel@>=58.5.1"] }, { "name": "channel/linear-agent", @@ -1407,7 +1408,8 @@ "implementation": "native" } }, - "dependencies": ["@vercel/connect"] + "dependencies": ["@vercel/connect"], + "devDependencies": ["vercel@>=58.5.1"] }, { "name": "channel/web", @@ -1878,6 +1880,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.ts index 4c67c3d02e..1f552a095f 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.ts index 5085f69a44..d05b8a0efb 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 | un function 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, );