The Open Framework for Building Agents
fix(eve): accept external self-mod credentials (#3434)
Andrew Barbabfc899d314db
diff --git a/.changeset/external-self-modification-credentials.md b/.changeset/external-self-modification-credentials.mdnew file mode 100644index 000000000..40eaa37c1--- /dev/null+++ b/.changeset/external-self-modification-credentials.md@@ -0,0 +1,5 @@+---+"eve": minor+---++Replace the Vercel-specific deployed self-modification credential configuration with an application-supplied GitHub credential provider. Generated Vercel setup now writes an inline `@vercel/connect` adapter, while the self-hosted PAT configuration remains available through `{ pat: true }`.diff --git a/apps/docs/package.json b/apps/docs/package.jsonindex 4e75c171e..d7a227a83 100644--- a/apps/docs/package.json+++ b/apps/docs/package.json@@ -86,7 +86,7 @@"@upstash/redis": "^1.38.4","@vectorize-io/hindsight-eve": "^0.2.1","@veltdev/chat-sdk-adapter": "0.2.4",- "@vercel/connect": "catalog:",+ "@vercel/connect": "2.2.0","@vercel/otel": "catalog:","@vgpu/adapter-node": "0.0.7","@webgpu/types": "^0.1.69",diff --git a/apps/frameworks/next/package.json b/apps/frameworks/next/package.jsonindex 6491df5eb..bc69b0a92 100644--- a/apps/frameworks/next/package.json+++ b/apps/frameworks/next/package.json@@ -13,7 +13,7 @@},"dependencies": {"@auth/core": "0.41.2",- "@vercel/connect": "catalog:",+ "@vercel/connect": "2.2.0","ai": "catalog:","eve": "workspace:*","next": "catalog:",diff --git a/e2e/fixtures/agent-self-modification/README.md b/e2e/fixtures/agent-self-modification/README.mdindex 2afd97f76..c4b29fdc2 100644--- a/e2e/fixtures/agent-self-modification/README.md+++ b/e2e/fixtures/agent-self-modification/README.md@@ -2,7 +2,7 @@This fixture uses `eve eval` to test a parent delegating a source change to the real self-modification child, rebuilding the agent, and using the result in a new conversation. CI runs the default root model and the standard self-modification child with eve's default model. Independent parent/child model selection is not part of this fixture.-The workspace root declares `@vercel/connect` through the dependency catalog and links the local `eve` package as development dependencies. This lets the bundler resolve the self-modification extension's optional deployed credential provider without installing a second registry copy of eve. These local cases do not use Connect credentials.+The fixture installs Vercel Connect because the generated deployed configuration supplies a Connect-backed credential provider to eve. These local cases do not request Connect credentials.Routing-only cases remain in [`agent-subagents`](../agent-subagents/evals/self-modification/), where an acceptance-only child avoids performing real integration installs.diff --git a/e2e/fixtures/agent-self-modification/package.json b/e2e/fixtures/agent-self-modification/package.jsonindex ab24122f7..7fa5c2c1a 100644--- a/e2e/fixtures/agent-self-modification/package.json+++ b/e2e/fixtures/agent-self-modification/package.json@@ -14,7 +14,7 @@},"dependencies": {"@eve-e2e/config": "workspace:*",- "@vercel/connect": "catalog:",+ "@vercel/connect": "2.2.0","@workflow/world-postgres": "catalog:","eve": "workspace:*","just-bash": "3.1.0",diff --git a/package.json b/package.jsonindex f9f6c2459..be3011e4a 100644--- a/package.json+++ b/package.json@@ -35,8 +35,6 @@"@changesets/cli": "3.0.1","@microsoft/api-extractor": "7.59.0","@types/node": "catalog:",- "@vercel/connect": "catalog:",- "eve": "workspace:*","gray-matter": "4.0.3","oxfmt": "0.66.0","oxlint": "1.81.0",diff --git a/packages/eve/scripts/stamp-version-tokens.mjs b/packages/eve/scripts/stamp-version-tokens.mjsindex 894848fe5..c8e58642e 100644--- a/packages/eve/scripts/stamp-version-tokens.mjs+++ b/packages/eve/scripts/stamp-version-tokens.mjs@@ -47,7 +47,6 @@ const replacements = {__NODE_ENGINE__: nodeEngine,__AI_SDK_VERSION__: await resolveCatalogVersion("ai"),__BETTER_AUTH_VERSION__: await resolveCatalogVersion("better-auth"),- __VERCEL_CONNECT_VERSION__: await resolveCatalogVersion("@vercel/connect"),__NEXT_VERSION__: await resolveCatalogVersion("next"),__REACT_VERSION__: await resolveCatalogVersion("react"),__REACT_DOM_VERSION__: await resolveCatalogVersion("react-dom"),diff --git a/packages/eve/src/self-modification/config.test.ts b/packages/eve/src/self-modification/config.test.tsindex 135f15a18..db408c391 100644--- a/packages/eve/src/self-modification/config.test.ts+++ b/packages/eve/src/self-modification/config.test.ts@@ -7,7 +7,6 @@ import { resolveSelfModificationMode } from "./mode.js";afterEach(() => {delete process.env.EVE_DEV;delete process.env.EVE_SELF_MODIFICATION_GITHUB_TOKEN;- delete process.env.VERCEL_ENV;});const deployed = {@@ -49,15 +48,16 @@ describe("self-modification deployed configuration", () => {).toThrow("must explicitly configure");});- it("resolves a Vercel Connect connector only in Vercel Production", () => {+ it("resolves an application-supplied credential provider", () => {+ const provider = { resolve: async () => "github-token" };const config = resolveSelfModificationConfig({deployed: {...deployed.deployed,- credentials: { vercelConnect: { connector: "github/selfmod-vercel-eve" } },+ credentials: provider,},});- expect(resolveSelfModificationMode(config)).toBe("disabled");- process.env.VERCEL_ENV = "production";++ expect(config.deployed?.credentials).toEqual({ kind: "provider", provider });expect(resolveSelfModificationMode(config)).toBe("deployed");});@@ -98,15 +98,20 @@ describe("self-modification deployed configuration", () => {resolveSelfModificationConfig({deployed: {...deployed.deployed,- credentials: { pat: true, vercelConnect: { connector: "github/example" } },+ credentials: { pat: true, resolve: async () => "token" },},}),- ).toThrow("exactly one");+ ).toThrow("not both");expect(() =>resolveSelfModificationConfig({deployed: { ...deployed.deployed, credentials: { pat: false } as never },}),).toThrow("pat must be true");+ expect(() =>+ resolveSelfModificationConfig({+ deployed: { ...deployed.deployed, credentials: { resolve: true } as never },+ }),+ ).toThrow("resolve function");});it.each([diff --git a/packages/eve/src/self-modification/config.ts b/packages/eve/src/self-modification/config.tsindex 0c80f5376..2794f7cb0 100644--- a/packages/eve/src/self-modification/config.ts+++ b/packages/eve/src/self-modification/config.ts@@ -17,6 +17,23 @@ export type SelfModificationAuthorization = (context: SelfModificationAuthorizationContext,) => boolean | Promise<boolean>;+export interface GitHubRepository {+ readonly owner: string;+ readonly repo: string;+}++export type GitHubCredentialCapability = "checkout" | "publish";++export interface GitHubCredentialRequest {+ readonly capability: GitHubCredentialCapability;+ readonly repository: GitHubRepository;+}++/** Application-supplied GitHub credentials for deployed self-modification. */+export interface GitHubCredentialProvider {+ resolve(request: GitHubCredentialRequest): Promise<string>;+}+export interface SelfModificationConfig {readonly local?: { readonly enabled?: boolean };readonly deployed?: {@@ -31,15 +48,15 @@ export interface SelfModificationConfig {readonly target: { readonly branch: string };/** Fail-closed policy for principals that may create draft proposals. */readonly authorize: SelfModificationAuthorization;- readonly credentials?: {- /** Ephemeral, repository-scoped GitHub App credentials from Vercel Connect. */- readonly vercelConnect?: { readonly connector: string };- /**- * Self-hosted exception. Reads `EVE_SELF_MODIFICATION_GITHUB_TOKEN` from- * the trusted deployment environment; never injects it into the sandbox.- */- readonly pat?: true;- };+ readonly credentials?:+ | GitHubCredentialProvider+ | {+ /**+ * Self-hosted exception. Reads `EVE_SELF_MODIFICATION_GITHUB_TOKEN` from+ * the trusted deployment environment; never injects it into the sandbox.+ */+ readonly pat: true;+ };};}@@ -58,12 +75,7 @@ export interface ResolvedDeployedSelfModificationConfig {export type ResolvedGitHubCredentials =| { readonly kind: "pat" }- | { readonly connector: string; readonly kind: "vercel-connect" };--export interface GitHubRepository {- readonly owner: string;- readonly repo: string;-}+ | { readonly kind: "provider"; readonly provider: GitHubCredentialProvider };/** Defines the policy shared by the self-modification agent, sandbox, and extension. */export function defineSelfModificationConfig(@@ -129,32 +141,32 @@ export function resolveSelfModificationConfig(function parseCredentials(value: unknown): ResolvedGitHubCredentials {if (!isRecord(value)) {throw new Error(- "Self-modification deployed.credentials must explicitly configure Vercel Connect or the self-hosted PAT exception.",+ "Self-modification deployed.credentials must explicitly configure a credential provider or the self-hosted PAT exception.",);}- const hasConnect = value.vercelConnect !== undefined;+ const hasProvider = value.resolve !== undefined;const hasPat = value.pat !== undefined;- if (hasConnect === hasPat) {+ if (hasProvider && hasPat) {throw new Error(- "Self-modification deployed.credentials must configure exactly one of vercelConnect or pat.",+ "Self-modification deployed.credentials must configure either a credential provider or pat, not both.",);}- if (value.pat !== undefined) {+ if (hasPat) {if (value.pat !== true) {throw new Error("Self-modification deployed.credentials.pat must be true.");}return { kind: "pat" };}- if (!isRecord(value.vercelConnect)) {- throw new Error("Self-modification deployed.credentials.vercelConnect must be an object.");- }- const connector = value.vercelConnect.connector;- if (typeof connector !== "string" || connector.trim().length === 0) {+ if (!isGitHubCredentialProvider(value)) {throw new Error(- "Self-modification deployed.credentials.vercelConnect.connector must be a string.",+ "Self-modification deployed.credentials must be an object with a resolve function.",);}- return { connector: connector.trim(), kind: "vercel-connect" };+ return { kind: "provider", provider: value };+}++function isGitHubCredentialProvider(value: unknown): value is GitHubCredentialProvider {+ return isRecord(value) && typeof value.resolve === "function";}function parseGitHubRepository(repository: string): GitHubRepository {diff --git a/packages/eve/src/self-modification/credentials.test.ts b/packages/eve/src/self-modification/credentials.test.tsindex 34b85f18d..57316bf69 100644--- a/packages/eve/src/self-modification/credentials.test.ts+++ b/packages/eve/src/self-modification/credentials.test.ts@@ -1,44 +1,48 @@import { afterEach, describe, expect, it, vi } from "vitest";-const getToken = vi.fn();-vi.mock("@vercel/connect", () => ({ getToken }));--import { createVercelConnectCredentialProvider } from "./credentials.js";+import {+ createGitHubCredentialProvider,+ SELF_MODIFICATION_GITHUB_TOKEN_ENV,+} from "./credentials.js";afterEach(() => {- getToken.mockReset();- delete process.env.EVE_SELF_MODIFICATION_GITHUB_TOKEN;+ delete process.env[SELF_MODIFICATION_GITHUB_TOKEN_ENV];});-describe("Vercel Connect GitHub credentials", () => {- it("requests a repository-bound checkout token", async () => {- getToken.mockResolvedValue("checkout-token");- await expect(- createVercelConnectCredentialProvider("github/selfmod-acme-agents").resolve({- capability: "checkout",- repository: { owner: "acme", repo: "agents" },- }),- ).resolves.toBe("checkout-token");- expect(getToken).toHaveBeenCalledWith("github/selfmod-acme-agents", {- authorizationDetails: [{ repositories: ["acme/agents"], type: "github_app_installation" }],- scopes: ["contents:read", "metadata:read"],- subject: { type: "app" },+const request = {+ capability: "checkout",+ repository: { owner: "acme", repo: "agents" },+} as const;++describe("self-modification GitHub credentials", () => {+ it("forwards requests to an application-supplied provider", async () => {+ const resolve = vi.fn().mockResolvedValue(" provider-token ");+ const provider = createGitHubCredentialProvider({+ kind: "provider",+ provider: { resolve },+ });++ await expect(provider.resolve(request)).resolves.toBe("provider-token");+ expect(resolve).toHaveBeenCalledWith(request);+ });++ it("does not fall back to the PAT when a provider fails", async () => {+ process.env[SELF_MODIFICATION_GITHUB_TOKEN_ENV] = "pat-that-must-not-be-read";+ const failure = new Error("provider failed");+ const provider = createGitHubCredentialProvider({+ kind: "provider",+ provider: { resolve: vi.fn().mockRejectedValue(failure) },});++ await expect(provider.resolve(request)).rejects.toBe(failure);});- it("requests publication scopes without falling back to a PAT", async () => {- process.env.EVE_SELF_MODIFICATION_GITHUB_TOKEN = "pat-that-must-not-be-read";- getToken.mockRejectedValue(new Error("not attached"));- await expect(- createVercelConnectCredentialProvider("github/selfmod-acme-agents").resolve({- capability: "publish",- repository: { owner: "acme", repo: "agents" },- }),- ).rejects.toThrow("Vercel Connect");- expect(getToken).toHaveBeenCalledWith("github/selfmod-acme-agents", {- authorizationDetails: [{ repositories: ["acme/agents"], type: "github_app_installation" }],- scopes: ["contents:write", "pull_requests:write", "metadata:read"],- subject: { type: "app" },+ it("rejects an empty provider token", async () => {+ const provider = createGitHubCredentialProvider({+ kind: "provider",+ provider: { resolve: vi.fn().mockResolvedValue(" ") },});++ await expect(provider.resolve(request)).rejects.toThrow("returned an empty GitHub token");});});diff --git a/packages/eve/src/self-modification/credentials.ts b/packages/eve/src/self-modification/credentials.tsindex 9f991ad59..6d0ecadea 100644--- a/packages/eve/src/self-modification/credentials.ts+++ b/packages/eve/src/self-modification/credentials.ts@@ -1,29 +1,8 @@-import type { GitHubRepository, ResolvedGitHubCredentials } from "./config.js";--export type GitHubCredentialCapability = "checkout" | "publish";--export interface GitHubCredentialRequest {- readonly capability: GitHubCredentialCapability;- readonly repository: GitHubRepository;-}--export interface GitHubCredentialProvider {- resolve(request: GitHubCredentialRequest): Promise<string>;-}--interface VercelConnectModule {- getToken(- connector: string,- options: {- readonly authorizationDetails: readonly {- readonly repositories: readonly string[];- readonly type: "github_app_installation";- }[];- readonly scopes: readonly string[];- readonly subject: { readonly type: "app" };- },- ): Promise<string>;-}+import type {+ GitHubCredentialProvider,+ GitHubCredentialRequest,+ ResolvedGitHubCredentials,+} from "./config.js";export const SELF_MODIFICATION_GITHUB_TOKEN_ENV = "EVE_SELF_MODIFICATION_GITHUB_TOKEN";@@ -36,9 +15,16 @@ export function hasGitHubCredential(): boolean {export function createGitHubCredentialProvider(credentials: ResolvedGitHubCredentials,): GitHubCredentialProvider {- return credentials.kind === "pat"- ? defaultGitHubCredentialProvider- : createVercelConnectCredentialProvider(credentials.connector);+ if (credentials.kind === "pat") return defaultGitHubCredentialProvider;+ return {+ async resolve(request) {+ const token = await credentials.provider.resolve(request);+ if (typeof token !== "string" || token.trim().length === 0) {+ throw new Error("Self-modification credential provider returned an empty GitHub token.");+ }+ return token.trim();+ },+ };}/** Resolves a PAT GitHub credential without exposing it to authored code. */@@ -57,34 +43,3 @@ export const defaultGitHubCredentialProvider: GitHubCredentialProvider = {return token.trim();},};--export function createVercelConnectCredentialProvider(connector: string): GitHubCredentialProvider {- return {- async resolve(request) {- try {- const moduleName: string = "@vercel/connect";- const { getToken } = (await import(moduleName)) as VercelConnectModule;- const token = await getToken(connector, {- authorizationDetails: [- {- type: "github_app_installation",- repositories: [`${request.repository.owner}/${request.repository.repo}`],- },- ],- scopes:- request.capability === "checkout"- ? ["contents:read", "metadata:read"]- : ["contents:write", "pull_requests:write", "metadata:read"],- subject: { type: "app" },- });- if (token.trim().length === 0) throw new Error("empty token");- return token;- } catch (error) {- throw new Error(- `Self-modification could not obtain a GitHub credential from Vercel Connect for ${connector}. Install and attach the configured GitHub connector to this Vercel project, install the managed GitHub App for the configured repository, then retry.`,- { cause: error },- );- }- },- };-}diff --git a/packages/eve/src/self-modification/extension/extension.test.ts b/packages/eve/src/self-modification/extension/extension.test.tsnew file mode 100644index 000000000..f0d680aff--- /dev/null+++ b/packages/eve/src/self-modification/extension/extension.test.ts@@ -0,0 +1,40 @@+import { describe, expect, it } from "vitest";++import { selfModificationConfigSchema } from "./extension.js";++class StatefulCredentialProvider {+ private readonly token: string;++ constructor(token: string) {+ this.token = token;+ }++ async resolve() {+ return this.token;+ }+}++describe("self-modification extension config", () => {+ it("preserves application-supplied credential providers", async () => {+ const credentials = new StatefulCredentialProvider("github-token");+ const parsed = selfModificationConfigSchema.parse({+ deployed: {+ authorize: () => true,+ credentials,+ source: { git: { directory: ".", repository: "github.com/acme/agent" } },+ target: { branch: "main" },+ },+ });++ expect(parsed.deployed?.credentials).toBe(credentials);+ if (parsed.deployed?.credentials === undefined || "pat" in parsed.deployed.credentials) {+ throw new Error("Expected credential provider.");+ }+ await expect(+ parsed.deployed.credentials.resolve({+ capability: "publish",+ repository: { owner: "acme", repo: "agent" },+ }),+ ).resolves.toBe("github-token");+ });+});diff --git a/packages/eve/src/self-modification/extension/extension.ts b/packages/eve/src/self-modification/extension/extension.tsindex 0b764dab1..97e907f45 100644--- a/packages/eve/src/self-modification/extension/extension.ts+++ b/packages/eve/src/self-modification/extension/extension.ts@@ -1,17 +1,23 @@import { defineExtension } from "eve/extension";import { z } from "zod";-import type { SelfModificationAuthorization } from "../config.js";+import type { GitHubCredentialProvider, SelfModificationAuthorization } from "../config.js";export const selfModificationConfigSchema = z.object({local: z.object({ enabled: z.boolean().optional() }).optional(),deployed: z.object({credentials: z- .object({- pat: z.literal(true).optional(),- vercelConnect: z.object({ connector: z.string() }).optional(),- })+ .union([+ z.object({ pat: z.literal(true) }),+ z.custom<GitHubCredentialProvider>(+ (value) =>+ typeof value === "object" &&+ value !== null &&+ "resolve" in value &&+ typeof value.resolve === "function",+ ),+ ]).optional(),source: z.object({git: z.object({ directory: z.string(), repository: z.string() }),diff --git a/packages/eve/src/self-modification/github-publisher.ts b/packages/eve/src/self-modification/github-publisher.tsindex 0a045c60e..0cdc349d5 100644--- a/packages/eve/src/self-modification/github-publisher.ts+++ b/packages/eve/src/self-modification/github-publisher.ts@@ -1,7 +1,6 @@import { createHash } from "node:crypto";-import type { GitHubRepository } from "./config.js";-import type { GitHubCredentialProvider } from "./credentials.js";+import type { GitHubCredentialProvider, GitHubRepository } from "./config.js";import type { PreparedSelfModificationWorkspace } from "./git-workspace.js";import { assertFullSha, assertGitRef, assertOperationId } from "./identifiers.js";import {diff --git a/packages/eve/src/self-modification/mode.ts b/packages/eve/src/self-modification/mode.tsindex 4fb9e394e..a1f23de3b 100644--- a/packages/eve/src/self-modification/mode.ts+++ b/packages/eve/src/self-modification/mode.ts@@ -7,12 +7,5 @@ export function resolveSelfModificationMode(config: ResolvedSelfModificationConfig,): SelfModificationMode {if (process.env.EVE_DEV === "1") return config.localEnabled ? "local" : "disabled";- if (config.deployed === undefined) return "disabled";- if (- config.deployed.credentials.kind === "vercel-connect" &&- process.env.VERCEL_ENV !== "production"- ) {- return "disabled";- }- return "deployed";+ return config.deployed === undefined ? "disabled" : "deployed";}diff --git a/packages/eve/src/self-modification/package-consumption.scenario.test.ts b/packages/eve/src/self-modification/package-consumption.scenario.test.tsindex b007a2566..8cdcb1b34 100644--- a/packages/eve/src/self-modification/package-consumption.scenario.test.ts+++ b/packages/eve/src/self-modification/package-consumption.scenario.test.ts@@ -7,6 +7,8 @@ import { promisify } from "node:util";import { afterEach, describe, it } from "vitest";+import { renderSelfModificationConfig } from "./setup.js";+const runFile = promisify(execFile);const packageRoot = resolve(dirname(fileURLToPath(import.meta.url)), "../..");const temporaryRoots: string[] = [];@@ -98,7 +100,7 @@ describe("packed package consumption", () => {type: "module",scripts: { build: "eve build" },dependencies: {- "@vercel/connect": "1.0.0",+ "@vercel/connect": "2.2.0",eve: `file:${eveTarball}`,"just-bash": "3.1.0",},@@ -121,7 +123,14 @@ describe("packed package consumption", () => {await writeAppFile(appRoot,"agent/subagents/self-modification/config.ts",- 'import { defineSelfModificationConfig } from "eve/self-modification/config";\n\nexport default defineSelfModificationConfig({ deployed: { source: { git: { directory: ".", repository: "github.com/acme/agent" } }, target: { branch: "main" }, authorize: () => false, credentials: { vercelConnect: { connector: "github/selfmod-acme-agent" } } } });\n',+ renderSelfModificationConfig({+ branch: "main",+ channelNames: [],+ connector: "github/selfmod-acme-agent",+ directory: ".",+ repository: "github.com/acme/agent",+ vercelBackend: true,+ }),);await writeAppFile(appRoot,diff --git a/packages/eve/src/self-modification/sandbox.test.ts b/packages/eve/src/self-modification/sandbox.test.tsindex 941b5a2f5..3c446de9f 100644--- a/packages/eve/src/self-modification/sandbox.test.ts+++ b/packages/eve/src/self-modification/sandbox.test.ts@@ -7,9 +7,9 @@ import { afterEach, describe, expect, it, vi } from "vitest";import type { SelfModificationConfig } from "./config.js";import { defineSelfModificationSandbox, selectDeployedSelfModificationBackend } from "./sandbox.js";-const connectConfig: SelfModificationConfig = {+const providerConfig: SelfModificationConfig = {deployed: {- credentials: { vercelConnect: { connector: "github/selfmod-acme-agent" } },+ credentials: { resolve: async () => "github-token" },source: { git: { directory: ".", repository: "github.com/acme/agent" } },target: { branch: "main" },authorize: () => true,@@ -78,7 +78,7 @@ describe("self-modification sandbox", () => {it("does not update the just-bash network policy in local mode", async () => {vi.stubEnv("EVE_DEV", "1");- const definition = defineSelfModificationSandbox({ config: connectConfig });+ const definition = defineSelfModificationSandbox({ config: providerConfig });if (definition.onSession === undefined) throw new Error("Expected an onSession hook.");const use = vi.fn();@@ -92,8 +92,7 @@ describe("self-modification sandbox", () => {it("establishes its allow-all baseline before resolving deployed credentials", async () => {vi.stubEnv("EVE_DEV", "0");- vi.stubEnv("VERCEL_ENV", "production");- const definition = defineSelfModificationSandbox({ config: connectConfig });+ const definition = defineSelfModificationSandbox({ config: providerConfig });if (definition.onSession === undefined) throw new Error("Expected an onSession hook.");const failure = new Error("baseline applied");const setNetworkPolicy = vi.fn().mockRejectedValue(failure);diff --git a/packages/eve/src/self-modification/setup.test.ts b/packages/eve/src/self-modification/setup.test.tsindex fc9e5d719..85e4af21d 100644--- a/packages/eve/src/self-modification/setup.test.ts+++ b/packages/eve/src/self-modification/setup.test.ts@@ -17,6 +17,20 @@ import {type SelfModificationSetupDependencies,} from "./setup.js";+function evaluateGeneratedConfig(source: string, getToken = vi.fn()) {+ return runInNewContext(+ source+ .replace('import { getToken } from "@vercel/connect";', "")+ .replace('import { defineSelfModificationConfig } from "eve/self-modification/config";', "")+ .replace("export default ", ""),+ {+ defineSelfModificationConfig,+ getToken,+ process: { env: { VERCEL_PROJECT_ID: "prj_123" } },+ },+ ) as ReturnType<typeof defineSelfModificationConfig>;+}+describe("self-modification setup", () => {it("recognizes default local configurations", () => {expect(renderSelfModificationConfig()).toContain("local: { enabled: true }");@@ -40,7 +54,9 @@ describe("self-modification setup", () => {expect(source).toContain('repository: "github.com/acme/agents"');expect(source).toContain('directory: "apps/support"');expect(source).toContain('target: { branch: "release/production" }');- expect(source).toContain('connector: "github/selfmod-acme-agents"');+ expect(source).toContain('import { getToken } from "@vercel/connect"');+ expect(source).toContain('return await getToken("github/selfmod-acme-agents"');+ expect(source).toContain("async resolve({ capability, repository })");expect(source).toContain('case "http"');expect(source).toContain("const projectId = process.env.VERCEL_PROJECT_ID");expect(source).toContain('principal?.authenticator === "oidc"');@@ -57,6 +73,70 @@ describe("self-modification setup", () => {expect(classifySelfModificationConfig(source)).toBe("generated");});+ it("adapts Connect tokens to checkout and publish credential requests", async () => {+ const source = renderSelfModificationConfig({+ branch: "main",+ channelNames: [],+ connector: "github/selfmod-acme-agents",+ directory: ".",+ repository: "github.com/acme/agents",+ vercelBackend: true,+ });+ const getToken = vi.fn().mockResolvedValue("github-token");+ const config = evaluateGeneratedConfig(source, getToken);+ const credentials = config.deployed?.credentials;+ if (credentials === undefined || "pat" in credentials) {+ throw new Error("Expected generated credential provider.");+ }+ const repository = { owner: "acme", repo: "agents" };++ await expect(credentials.resolve({ capability: "checkout", repository })).resolves.toBe(+ "github-token",+ );+ await expect(credentials.resolve({ capability: "publish", repository })).resolves.toBe(+ "github-token",+ );+ expect(getToken).toHaveBeenNthCalledWith(1, "github/selfmod-acme-agents", {+ authorizationDetails: [{ repositories: ["acme/agents"], type: "github_app_installation" }],+ scopes: ["contents:read", "metadata:read"],+ subject: { type: "app" },+ });+ expect(getToken).toHaveBeenNthCalledWith(2, "github/selfmod-acme-agents", {+ authorizationDetails: [{ repositories: ["acme/agents"], type: "github_app_installation" }],+ scopes: ["contents:write", "pull_requests:write", "metadata:read"],+ subject: { type: "app" },+ });+ });++ it("preserves Connect setup guidance when the generated provider fails", async () => {+ const source = renderSelfModificationConfig({+ branch: "main",+ channelNames: [],+ connector: "github/selfmod-acme-agents",+ directory: ".",+ repository: "github.com/acme/agents",+ vercelBackend: true,+ });+ const failure = new Error("connector is not attached");+ const config = evaluateGeneratedConfig(source, vi.fn().mockRejectedValue(failure));+ const credentials = config.deployed?.credentials;+ if (credentials === undefined || "pat" in credentials) {+ throw new Error("Expected generated credential provider.");+ }++ await expect(+ credentials.resolve({+ capability: "checkout",+ repository: { owner: "acme", repo: "agents" },+ }),+ ).rejects.toMatchObject({+ cause: failure,+ message: expect.stringContaining(+ "Install and attach the configured GitHub connector to this Vercel project",+ ),+ });+ });+it.each([["https://oidc.vercel.com", true],["https://oidc.vercel.com/acme", true],@@ -73,15 +153,7 @@ describe("self-modification setup", () => {repository: "github.com/acme/agents",vercelBackend: true,});- const config = runInNewContext(- source- .replace('import { defineSelfModificationConfig } from "eve/self-modification/config";', "")- .replace("export default ", ""),- {- defineSelfModificationConfig,- process: { env: { VERCEL_PROJECT_ID: "prj_123" } },- },- ) as ReturnType<typeof defineSelfModificationConfig>;+ const config = evaluateGeneratedConfig(source);const authorize = config.deployed!.authorize;const principal = {attributes: { project_id: "prj_123" },diff --git a/packages/eve/src/self-modification/setup.ts b/packages/eve/src/self-modification/setup.tsindex d51c91ae3..cf2b0e78f 100644--- a/packages/eve/src/self-modification/setup.ts+++ b/packages/eve/src/self-modification/setup.ts@@ -85,7 +85,9 @@ export function renderSelfModificationConfig(values?: SelfModificationSetupValue`: "";const switchCases = `${httpCase}${channelCases}`;- const body = `import { defineSelfModificationConfig } from "eve/self-modification/config";+ const credentialErrorMessage = `Self-modification could not obtain a GitHub credential from Vercel Connect for ${values.connector}. Install and attach the configured GitHub connector to this Vercel project, install the managed GitHub App for the configured repository, then retry.`;+ const body = `import { getToken } from "@vercel/connect";+import { defineSelfModificationConfig } from "eve/self-modification/config";export default defineSelfModificationConfig({deployed: {@@ -97,7 +99,25 @@ export default defineSelfModificationConfig({},target: { branch: ${JSON.stringify(values.branch)} },credentials: {- vercelConnect: { connector: ${JSON.stringify(values.connector)} },+ async resolve({ capability, repository }) {+ try {+ return await getToken(${JSON.stringify(values.connector)}, {+ authorizationDetails: [+ {+ type: "github_app_installation",+ repositories: [repository.owner + "/" + repository.repo],+ },+ ],+ scopes:+ capability === "checkout"+ ? ["contents:read", "metadata:read"]+ : ["contents:write", "pull_requests:write", "metadata:read"],+ subject: { type: "app" },+ });+ } catch (error) {+ throw new Error(${JSON.stringify(credentialErrorMessage)}, { cause: error });+ }+ },},authorize: ({ channel, principal }) => {switch (channel.kind) {diff --git a/packages/eve/src/setup/integrations/self-modification/setup.test.ts b/packages/eve/src/setup/integrations/self-modification/setup.test.tsindex ada5c87d9..391187ab0 100644--- a/packages/eve/src/setup/integrations/self-modification/setup.test.ts+++ b/packages/eve/src/setup/integrations/self-modification/setup.test.ts@@ -13,6 +13,7 @@ import {prepareSelfModificationSetup,SELF_MODIFICATION_PRODUCTION_SETUP,SELF_MODIFICATION_SETUP,+ type SelfModificationApplyDependencies,} from "./setup.js";function operations(config?: string): SelfModificationSetupOperations & {@@ -36,6 +37,23 @@ function operations(config?: string): SelfModificationSetupOperations & {};}+function applyDependencies(): SelfModificationApplyDependencies & {+ ensureConnectionDependencies: ReturnType<typeof vi.fn>;+ installScaffoldDependencies: ReturnType<typeof vi.fn>;+} {+ return {+ ensureConnectionDependencies: vi.fn(async () => [+ {+ dependencies: ["@vercel/connect"],+ devDependencies: [],+ path: "/project/package.json",+ scripts: [],+ },+ ]),+ installScaffoldDependencies: vi.fn(async () => {}),+ };+}+function contexts(answers: Record<string, unknown>,project: ProjectResolution = { kind: "unresolved" },@@ -99,6 +117,7 @@ describe("self-modification integration setup", () => {it("prepares deployed configuration before applying connector effects", async () => {const effects = operations();+ const deps = applyDependencies();const ctx = contexts({"self-modification-mode": "deployed",@@ -113,9 +132,11 @@ describe("self-modification integration setup", () => {const plan = await prepareSelfModificationSetup(ctx.prepare, effects);expect(effects.findOrCreateConnector).not.toHaveBeenCalled();- await expect(applySelfModificationSetup(plan, ctx.apply, effects)).resolves.toMatchObject({- deploymentRequired: true,- });+ await expect(applySelfModificationSetup(plan, ctx.apply, effects, deps)).resolves.toMatchObject(+ {+ deploymentRequired: true,+ },+ );expect(ctx.resolveVercelProject).toHaveBeenCalledWith("self-modification");expect(effects.findOrCreateConnector).toHaveBeenCalledWith("selfmod-acme-agents", {orgId: "team",@@ -125,6 +146,10 @@ describe("self-modification integration setup", () => {orgId: "team",projectId: "project",});+ expect(deps.ensureConnectionDependencies).toHaveBeenCalledWith({ projectRoot: "/project" });+ expect(deps.installScaffoldDependencies).toHaveBeenCalledWith(+ expect.objectContaining({ changed: true, projectPath: "/project" }),+ );expect(effects.writeConfig).toHaveBeenCalledWith(expect.stringContaining('repository: "github.com/acme/agents"'),);@@ -132,6 +157,12 @@ describe("self-modification integration setup", () => {expect.stringContaining('case "channel:slack"'),);expect(effects.writeConfig).toHaveBeenCalledWith(expect.stringContaining('case "http"'));+ expect(effects.writeConfig).toHaveBeenCalledWith(+ expect.stringContaining('import { getToken } from "@vercel/connect"'),+ );+ expect(effects.writeConfig).toHaveBeenCalledWith(+ expect.stringContaining("async resolve({ capability, repository })"),+ );expect(ctx.note).toHaveBeenCalledWith(expect.stringContaining("After deployment, try self-modification by running `eve dev <deployment-url>`",diff --git a/packages/eve/src/setup/integrations/self-modification/setup.ts b/packages/eve/src/setup/integrations/self-modification/setup.tsindex ad82633b8..eff87972c 100644--- a/packages/eve/src/setup/integrations/self-modification/setup.ts+++ b/packages/eve/src/setup/integrations/self-modification/setup.ts@@ -12,14 +12,26 @@ import {} from "#self-modification/setup.js";import { SELF_MODIFICATION_CONFIG_PATH } from "#self-modification/git-workspace.js";import type { VercelProjectReference } from "#setup/project-resolution.js";+import { ensureConnectionDependencies } from "#setup/scaffold/index.js";import { describeIntegrationSetupEnvironment } from "../shared/environment.js";+import { installScaffoldDependencies } from "../shared/scaffold.js";import {defineSetupIntegration,type SetupApplyContext,type SetupPrepareContext,} from "../types.js";+export interface SelfModificationApplyDependencies {+ ensureConnectionDependencies: typeof ensureConnectionDependencies;+ installScaffoldDependencies: typeof installScaffoldDependencies;+}++const defaultApplyDependencies: SelfModificationApplyDependencies = {+ ensureConnectionDependencies,+ installScaffoldDependencies,+};+type SelfModificationSetupPlan =| { readonly kind: "authored" }| { readonly kind: "local" }@@ -153,6 +165,7 @@ export async function applySelfModificationSetup(undefined,context.projectRoot,),+ deps: SelfModificationApplyDependencies = defaultApplyDependencies,) {if (plan.kind === "authored") {return {@@ -165,6 +178,15 @@ export async function applySelfModificationSetup(const connector = await operations.findOrCreateConnector(plan.connectorName, plan.project);await operations.attachConnector(connector, plan.project);+ const packageJsonUpdated = await deps.ensureConnectionDependencies({+ projectRoot: context.appRoot,+ });+ await deps.installScaffoldDependencies({+ changed: packageJsonUpdated.length > 0,+ log: context.presenter.log,+ projectPath: context.appRoot,+ signal: context.signal,+ });await operations.writeConfig(renderSelfModificationConfig({ ...plan.values, connector }));context.presenter.log.success(`Updated ${SELF_MODIFICATION_CONFIG_PATH}.`);context.presenter.nextSteps([diff --git a/packages/eve/src/setup/integrations/shared/scaffold.ts b/packages/eve/src/setup/integrations/shared/scaffold.tsindex 065adfe52..3df2f37eb 100644--- a/packages/eve/src/setup/integrations/shared/scaffold.ts+++ b/packages/eve/src/setup/integrations/shared/scaffold.ts@@ -27,7 +27,7 @@ export async function installScaffoldDependencies(input: {const packageManager = await deps.detectPackageManager(input.projectPath);const installResult = await withPhase(input.log,- `Installing channel dependencies (${packageManager.kind} install)...`,+ `Installing integration dependencies (${packageManager.kind} install)...`,() =>deps.runPackageManagerInstall(packageManager.kind, input.projectPath, {onOutput: createPromptCommandOutput(input.log),@@ -36,7 +36,7 @@ export async function installScaffoldDependencies(input: {);if (packageManagerInstallSucceeded(installResult)) return;input.log.warning(- `Dependency installation failed. The new channel stays unloadable until \`${packageManager.kind} install\` or a deploy succeeds.`,+ `Dependency installation failed. The integration stays unloadable until \`${packageManager.kind} install\` or a deploy succeeds.`,);}diff --git a/packages/eve/src/setup/scaffold/create/project.ts b/packages/eve/src/setup/scaffold/create/project.tsindex d40f932ad..df8383d14 100644--- a/packages/eve/src/setup/scaffold/create/project.ts+++ b/packages/eve/src/setup/scaffold/create/project.ts@@ -8,7 +8,7 @@ import { parseChatGptModelSelection } from "../../../shared/chatgpt-model.js";import { SUPPORTED_AUTHORED_MODULE_FILE_EXTENSIONS } from "../update/module-files.js";import { pathExists, writeTextFile } from "../files.js";import { blockingCreateInPlaceEntries } from "../create-in-place.js";-import { resolveVersionToken } from "../version-tokens.js";+import { DEFAULT_CONNECT_PACKAGE_VERSION, resolveVersionToken } from "../version-tokens.js";import {applyPackageManagerWorkspaceConfiguration,isPackageManagerWorkspaceMember,@@ -20,7 +20,7 @@ import { WEB_APP_TEMPLATE_FILES } from "./web-template.js";export const CURRENT_DIRECTORY_PROJECT_NAME = ".";export const DEFAULT_AI_PACKAGE_VERSION = "__AI_SDK_VERSION__";-export const DEFAULT_CONNECT_PACKAGE_VERSION = "__VERCEL_CONNECT_VERSION__";+export { DEFAULT_CONNECT_PACKAGE_VERSION } from "../version-tokens.js";export const DEFAULT_ZOD_PACKAGE_VERSION = "__ZOD_VERSION__";const DEFAULT_TYPESCRIPT_PACKAGE_VERSION = "__TYPESCRIPT_VERSION__";diff --git a/packages/eve/src/setup/scaffold/update/channels.ts b/packages/eve/src/setup/scaffold/update/channels.tsindex 55d16faf5..e666eabb2 100644--- a/packages/eve/src/setup/scaffold/update/channels.ts+++ b/packages/eve/src/setup/scaffold/update/channels.ts@@ -6,7 +6,7 @@ import { appendEnv } from "../../append-env.js";import type { PackageManagerKind } from "../../package-manager.js";import { pinnedNodeEngineMajor, type NodeEngineOverride } from "../../node-engine.js";import { pathExists, writeTextFile } from "../files.js";-import { resolveVersionToken } from "../version-tokens.js";+import { DEFAULT_CONNECT_PACKAGE_VERSION, resolveVersionToken } from "../version-tokens.js";import {applyPackageManagerWorkspaceConfiguration,isPackageManagerWorkspaceMember,@@ -32,7 +32,6 @@ export type { WebAuthentication, WebPackageVersions } from "./web-options.js";export const SLACK_CHANNEL_DEFAULT_ROUTE = "/eve/v1/slack";export const DEFAULT_SLACK_CONNECTOR_SLUG = "my-agent";-const DEFAULT_CONNECT_PACKAGE_VERSION = "__VERCEL_CONNECT_VERSION__";const NEXT_TYPESCRIPT_PACKAGE_VERSION = "6.0.3";const CONNECT_PACKAGE_NAME = "@vercel/connect";const NEXT_PACKAGE_NAME = "next";diff --git a/packages/eve/src/setup/scaffold/update/connections.ts b/packages/eve/src/setup/scaffold/update/connections.tsindex ee6e7f606..c8c7610d7 100644--- a/packages/eve/src/setup/scaffold/update/connections.ts+++ b/packages/eve/src/setup/scaffold/update/connections.ts@@ -11,12 +11,11 @@ import {type OpenApiEndpoint,} from "../connections/catalog.js";import { pathExists, writeTextFile } from "../files.js";-import { resolveVersionToken } from "../version-tokens.js";+import { DEFAULT_CONNECT_PACKAGE_VERSION, resolveVersionToken } from "../version-tokens.js";import { getSupportedModuleBaseName, matchesSupportedModuleBaseName } from "./module-files.js";import { patchPackageJson } from "./package-json.js";import type { PackageJsonMutation } from "./channels.js";-const DEFAULT_CONNECT_PACKAGE_VERSION = "__VERCEL_CONNECT_VERSION__";const CONNECT_PACKAGE_NAME = "@vercel/connect";const USER_AUTHORED_CONNECTION_DIR = "agent/connections";const ENV_LOCAL_FILE = ".env.local";diff --git a/packages/eve/src/setup/scaffold/version-tokens.test.ts b/packages/eve/src/setup/scaffold/version-tokens.test.tsindex c6ddd9870..3f563bbe7 100644--- a/packages/eve/src/setup/scaffold/version-tokens.test.ts+++ b/packages/eve/src/setup/scaffold/version-tokens.test.ts@@ -3,13 +3,12 @@ import { fileURLToPath } from "node:url";import { describe, expect, it } from "vitest";-import { resolveVersionToken } from "./version-tokens.js";+import { DEFAULT_CONNECT_PACKAGE_VERSION, resolveVersionToken } from "./version-tokens.js";// These tests always execute from the dev tree (vitest runs over src), so the// fallback's sources — eve's package.json and the workspace catalog — are the// live files the assertions read independently.const EVE_PACKAGE_JSON_URL = new URL("../../../package.json", import.meta.url);-const WORKSPACE_MANIFEST_URL = new URL("../../../../../pnpm-workspace.yaml", import.meta.url);describe("resolveVersionToken", () => {it("returns stamped values untouched", () => {@@ -17,12 +16,9 @@ describe("resolveVersionToken", () => {expect(resolveVersionToken("evePackage.version", "1.0.0-beta.3")).toBe("1.0.0-beta.3");});- it("resolves a catalog token from the dev tree's workspace manifest", () => {- const resolved = resolveVersionToken("connectPackageVersion", "__VERCEL_CONNECT_VERSION__");-- const manifest = readFileSync(fileURLToPath(WORKSPACE_MANIFEST_URL), "utf8");- expect(resolved).not.toMatch(/^__/);- expect(manifest).toContain(`"@vercel/connect": "${resolved}"`);+ it("uses a concrete default Connect version", () => {+ expect(DEFAULT_CONNECT_PACKAGE_VERSION).toBe("2.2.0");+ expect(DEFAULT_CONNECT_PACKAGE_VERSION).not.toMatch(/^__/);});it("resolves eve runtime and dependency version tokens from eve's own package.json", () => {diff --git a/packages/eve/src/setup/scaffold/version-tokens.ts b/packages/eve/src/setup/scaffold/version-tokens.tsindex 59e2494cc..0c9c4bb2e 100644--- a/packages/eve/src/setup/scaffold/version-tokens.ts+++ b/packages/eve/src/setup/scaffold/version-tokens.ts@@ -28,12 +28,13 @@ function bareToken(name: string): string {const NODE_ENGINE_TOKEN = bareToken("NODE_ENGINE");+export const DEFAULT_CONNECT_PACKAGE_VERSION = "2.2.0";+const TOKEN_SOURCES: Readonly<Record<string, TokenSource>> = {[versionToken("EVE_PACKAGE")]: { kind: "eve-version" },[versionToken("EVE_PACKAGE_DEPENDENCY")]: { kind: "eve-version" },[NODE_ENGINE_TOKEN]: { kind: "eve-node-engine" },[versionToken("AI_SDK")]: { kind: "catalog", packageName: "ai" },- [versionToken("VERCEL_CONNECT")]: { kind: "catalog", packageName: "@vercel/connect" },[versionToken("NEXT")]: { kind: "catalog", packageName: "next" },[versionToken("REACT")]: { kind: "catalog", packageName: "react" },[versionToken("REACT_DOM")]: { kind: "catalog", packageName: "react-dom" },@@ -137,7 +138,7 @@ function resolveTokenFromDevTree(token: string): string | undefined {* of need when the running code is unstamped. The published package is stamped* by the build (`scripts/stamp-version-tokens.mjs`), so the fallback only ever* fires in a dev tree — tsc watch emits and tests running from `src` — where- * the live workspace catalog *is* the truth the stamp would have captured.+ * the live package and workspace manifests are the sources the stamp would have captured.* Outside a dev tree an unstamped token still throws, because writing the* literal token into a scaffolded package.json would break the generated* project.diff --git a/packages/eve/test/scenarios/post-build-scripts.scenario.test.ts b/packages/eve/test/scenarios/post-build-scripts.scenario.test.tsindex 255b617d2..0b1d6ee8c 100644--- a/packages/eve/test/scenarios/post-build-scripts.scenario.test.ts+++ b/packages/eve/test/scenarios/post-build-scripts.scenario.test.ts@@ -30,7 +30,6 @@ async function createPostBuildFixture(await mkdir(join(packageRoot, "scripts"), { recursive: true });await mkdir(join(packageRoot, "dist", "src", "chunks"), { recursive: true });- await mkdir(join(packageRoot, "dist", "src", "cli", "commands"), { recursive: true });await mkdir(join(packageRoot, "dist", "src", "internal", "application"), {recursive: true,});@@ -55,7 +54,6 @@ async function createPostBuildFixture(' react: "19.2.6"',' react-dom: "19.2.6"',' streamdown: "2.5.0"',- ' "@vercel/connect": "3.0.0"',' "@types/react": "19.2.15"',' "@types/react-dom": "19.2.3"',' zod: "4.0.0"',@@ -105,11 +103,6 @@ describe("post-build scripts", () => {'export const version = "__EVE_PACKAGE_VERSION__";\n',"utf8",);- await writeFile(- join(packageRoot, "dist", "src", "cli", "commands", "channels.js"),- 'export const connect = "__VERCEL_CONNECT_VERSION__";\n',- "utf8",- );await writeFile(join(packageRoot, "dist", "src", "chunks", "scaffold-abc123.js"),[@@ -136,9 +129,6 @@ describe("post-build scripts", () => {await expect(readFile(join(packageRoot, "dist", "src", "internal", "application", "package.js"), "utf8"),).resolves.toBe('export const version = "1.2.3";\n');- await expect(- readFile(join(packageRoot, "dist", "src", "cli", "commands", "channels.js"), "utf8"),- ).resolves.toBe('export const connect = "3.0.0";\n');await expect(readFile(join(packageRoot, "dist", "src", "chunks", "scaffold-abc123.js"), "utf8"),).resolves.toBe(diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 9098d4ac2..258051aa5 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -48,9 +48,6 @@ catalogs:'@types/react-dom':specifier: 19.2.3version: 19.2.3- '@vercel/connect':- specifier: 2.2.0- version: 2.2.0'@vercel/otel':specifier: 2.1.3version: 2.1.3@@ -110,12 +107,6 @@ importers:'@types/node':specifier: 'catalog:'version: 24.13.3- '@vercel/connect':- specifier: 'catalog:'- version: 2.2.0(@ai-sdk/[email protected]([email protected]))(@auth/[email protected])(@chat-adapter/[email protected]([email protected]([email protected]))([email protected])([email protected]([email protected]))([email protected])([email protected]))([email protected]([email protected]))(eve@packages+eve)- eve:- specifier: workspace:*- version: link:packages/evegray-matter:specifier: 4.0.3version: 4.0.3@@ -347,8 +338,8 @@ importers:specifier: 0.2.4version: 0.2.4([email protected]([email protected]))([email protected]([email protected]([email protected]))([email protected])([email protected]))([email protected])([email protected])'@vercel/connect':- specifier: 'catalog:'- version: 2.2.0(@ai-sdk/[email protected]([email protected]))(@auth/[email protected])(@chat-adapter/[email protected]([email protected]([email protected]))([email protected])([email protected]([email protected]))([email protected])([email protected]))([email protected]([email protected]))(eve@packages+eve)+ specifier: 2.2.0+ version: 2.2.0(@ai-sdk/[email protected]([email protected]))(@auth/[email protected])(@chat-adapter/[email protected]([email protected]([email protected]))([email protected])([email protected])([email protected]))([email protected]([email protected]))(eve@packages+eve)'@vercel/otel':specifier: 'catalog:'version: 2.1.3(@opentelemetry/[email protected])(@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected])([email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))@@ -444,8 +435,8 @@ importers:specifier: 0.41.2version: 0.41.2'@vercel/connect':- specifier: 'catalog:'- version: 2.2.0(@ai-sdk/[email protected]([email protected]))(@auth/[email protected])(@chat-adapter/[email protected]([email protected]([email protected]))([email protected])([email protected]([email protected]))([email protected])([email protected]))([email protected]([email protected]))(eve@packages+eve)+ specifier: 2.2.0+ version: 2.2.0(@ai-sdk/[email protected]([email protected]))(@auth/[email protected])(@chat-adapter/[email protected]([email protected]([email protected]))([email protected])([email protected])([email protected]))([email protected]([email protected]))(eve@packages+eve)ai:specifier: 'catalog:'version: 7.0.105([email protected])@@ -926,8 +917,8 @@ importers:specifier: workspace:*version: link:../e2e-config'@vercel/connect':- specifier: 'catalog:'- version: 2.2.0(@ai-sdk/[email protected]([email protected]))(@auth/[email protected])(@chat-adapter/[email protected]([email protected]([email protected]))([email protected])([email protected]([email protected]))([email protected])([email protected]))([email protected]([email protected]))(eve@packages+eve)+ specifier: 2.2.0+ version: 2.2.0(@ai-sdk/[email protected]([email protected]))(@auth/[email protected])(@chat-adapter/[email protected]([email protected]([email protected]))([email protected])([email protected])([email protected]))([email protected]([email protected]))(eve@packages+eve)'@workflow/world-postgres':specifier: 'catalog:'version: 5.0.0-beta.42(@opentelemetry/[email protected])(@types/[email protected])(@upstash/[email protected])([email protected])([email protected])([email protected])@@ -17662,7 +17653,7 @@ snapshots:eve: link:packages/evezod: 4.5.4optionalDependencies:- '@vercel/connect': 2.2.0(@ai-sdk/[email protected]([email protected]))(@auth/[email protected])(@chat-adapter/[email protected]([email protected]([email protected]))([email protected])([email protected]([email protected]))([email protected])([email protected]))([email protected]([email protected]))(eve@packages+eve)+ '@vercel/connect': 2.2.0(@ai-sdk/[email protected]([email protected]))(@auth/[email protected])(@chat-adapter/[email protected]([email protected]([email protected]))([email protected])([email protected])([email protected]))([email protected]([email protected]))(eve@packages+eve)transitivePeerDependencies:- '@ai-sdk/workflow'- '@workflow/ai'@@ -17675,7 +17666,7 @@ snapshots:octokit: 5.0.5zod: 4.5.4optionalDependencies:- '@vercel/connect': 2.2.0(@ai-sdk/[email protected]([email protected]))(@auth/[email protected])(@chat-adapter/[email protected]([email protected]([email protected]))([email protected])([email protected]([email protected]))([email protected])([email protected]))([email protected]([email protected]))(eve@packages+eve)+ '@vercel/connect': 2.2.0(@ai-sdk/[email protected]([email protected]))(@auth/[email protected])(@chat-adapter/[email protected]([email protected]([email protected]))([email protected])([email protected])([email protected]))([email protected]([email protected]))(eve@packages+eve)eve: link:packages/eve'@google/[email protected](@modelcontextprotocol/[email protected](@cfworker/[email protected])([email protected])([email protected]))([email protected])([email protected])':@@ -22727,7 +22718,7 @@ snapshots:ai: 7.0.105([email protected])eve: link:packages/eve- '@vercel/[email protected](@ai-sdk/[email protected]([email protected]))(@auth/[email protected])(@chat-adapter/[email protected]([email protected]([email protected]))([email protected])([email protected]([email protected]))([email protected])([email protected]))([email protected]([email protected]))(eve@packages+eve)':+ '@vercel/[email protected](@ai-sdk/[email protected]([email protected]))(@auth/[email protected])(@chat-adapter/[email protected]([email protected]([email protected]))([email protected])([email protected])([email protected]))([email protected]([email protected]))(eve@packages+eve)':dependencies:'@vercel/oidc': 3.8.8optionalDependencies:diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yamlindex ac568963a..91402c8b9 100644--- a/pnpm-workspace.yaml+++ b/pnpm-workspace.yaml@@ -41,7 +41,6 @@ catalog:"@types/node": "24.13.3""@types/react": "19.2.15""@types/react-dom": "19.2.3"- "@vercel/connect": "2.2.0""@vercel/otel": "2.1.3""@vercel/sandbox": "3.2.1""@vercel/sandbox-drives": "npm:@vercel/[email protected]"