Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/calm-trigger-event-cli-dependency.md
Original file line number Diff line number Diff line change
@@ -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.
7 changes: 5 additions & 2 deletions apps/docs/registry.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -1407,7 +1408,8 @@
"implementation": "native"
}
},
"dependencies": ["@vercel/connect"]
"dependencies": ["@vercel/connect"],
"devDependencies": ["vercel@>=58.5.1"]
},
{
"name": "channel/web",
Expand Down Expand Up @@ -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": {
Expand Down
28 changes: 0 additions & 28 deletions packages/eve/src/setup/integrations/linq/connect.test.ts
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down Expand Up @@ -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()
Expand Down
10 changes: 0 additions & 10 deletions packages/eve/src/setup/integrations/linq/connect.ts
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down Expand Up @@ -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,
);
Expand Down
Loading