From f14cb7d91ee832c6d28b272e37f08bfd91bc2323 Mon Sep 17 00:00:00 2001 From: Colton Padden Date: Fri, 20 Nov 2026 14:14:53 -0500 Subject: [PATCH] chore(deps): sync eve and pnpm versions Signed-off-by: Colton Padden --- .github/workflows/check.yml | 2 - README.md | 2 +- agent/connections/notion.ts | 52 +- agent/extensions/link/lib/spend-requests.ts | 4 +- agent/hooks/browser-lifecycle.ts | 4 +- agent/hooks/task-state.ts | 38 +- agent/lib/browser-runtime.ts | 6 +- agent/lib/linq.ts | 8 +- agent/lib/task-state.ts | 43 +- app/chat.tsx | 72 +- app/projection.ts | 36 +- docs/repository.md | 11 +- package.json | 18 +- pnpm-lock.yaml | 874 +++++++++++++------- pnpm-workspace.yaml | 10 + scripts/test-parallel-research.mjs | 20 +- scripts/test-session-retirement.mjs | 41 +- tests/browser/browser-close.test.ts | 18 +- tests/browser/captcha-recovery.test.ts | 12 +- tests/browser/captcha-state.test.ts | 4 +- tests/browser/eve-origin.test.ts | 2 +- tests/browser/task-state.test.ts | 55 +- tests/link-checkout.test.ts | 2 +- tests/link-oauth.test.ts | 6 +- tests/linq.test.ts | 10 +- tests/notion.test.ts | 12 +- tests/projection.test.ts | 56 +- tests/sign-in.ts | 30 + tests/workspace-runtime.test.ts | 4 +- 29 files changed, 902 insertions(+), 550 deletions(-) create mode 100644 pnpm-workspace.yaml create mode 100644 tests/sign-in.ts diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 3a1169d..843f490 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -38,8 +38,6 @@ jobs: with: persist-credentials: false - uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4 - with: - version: 10.33.4 - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 with: node-version: 24 diff --git a/README.md b/README.md index c0dd03f..af2600f 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ ## Run locally -Requires Node.js 24, pnpm 10.33.4, and OpenAI and Browserbase API keys. +Requires Node.js 24, pnpm 12.21.0, and OpenAI and Browserbase API keys. ```sh git clone https://github.com/browserbase/bell-stack.git diff --git a/agent/connections/notion.ts b/agent/connections/notion.ts index 88bd707..6227b72 100644 --- a/agent/connections/notion.ts +++ b/agent/connections/notion.ts @@ -3,33 +3,29 @@ import { notionAuth } from "../lib/notion-auth"; import { notionEnabled, notionEndpoint, notionOwner, safeNotion } from "../../server/notion/config"; import { getNotionOAuth } from "../../server/notion/oauth"; -export default defineDynamic({ - events: { - "turn.started": (_event, ctx) => { - if (!notionEnabled()) return null; - const auth = ctx.session.auth.current; - if (auth?.principalType !== "user" || !["bell:operator", "linq"].includes(auth.issuer ?? "")) return null; - const principal = { type: "user" as const, id: auth.principalId, issuer: auth.issuer }; - const owner = notionOwner(principal); - return defineMcpClientConnection({ - url: notionEndpoint, - instanceKey: owner, - description: "Notion: the user's personal preferences, routines, plans, decisions, and notes across conversations. Search before relying on remembered information.", - protocolVersionDiscovery: false, - auth: notionAuth, - tools: { allow: [ - "notion-search", "notion-fetch", "notion-memory-search", "notion-get-self", - "notion-get-tool-access", "notion-query-data-sources", - "notion-create-pages", "notion-update-page", "notion-create-database", "notion-update-data-source", - "notion-get-async-task", "notion-delete-pages", - ] }, - approval: async ({ toolName }) => { - if (toolName.startsWith("notion__") && (await safeNotion(() => getNotionOAuth().status(principal))).status !== "connected") - return "denied"; - return /__(?:notion-create-database|notion-update-data-source|notion-delete-pages)$/.test(toolName) - ? "user-approval" : "not-applicable"; - }, - }); +export default defineDynamic((ctx) => { + if (!notionEnabled()) return null; + const auth = ctx.session.auth.current; + if (auth?.principalType !== "user" || !["bell:operator", "linq"].includes(auth.issuer ?? "")) return null; + const principal = { type: "user" as const, id: auth.principalId, issuer: auth.issuer }; + const owner = notionOwner(principal); + return defineMcpClientConnection({ + url: notionEndpoint, + instanceKey: owner, + description: "Notion: the user's personal preferences, routines, plans, decisions, and notes across conversations. Search before relying on remembered information.", + protocolVersionDiscovery: false, + auth: notionAuth, + tools: { allow: [ + "notion-search", "notion-fetch", "notion-memory-search", "notion-get-self", + "notion-get-tool-access", "notion-query-data-sources", + "notion-create-pages", "notion-update-page", "notion-create-database", "notion-update-data-source", + "notion-get-async-task", "notion-delete-pages", + ] }, + approval: async ({ toolName }) => { + if (toolName.startsWith("notion__") && (await safeNotion(() => getNotionOAuth().status(principal))).status !== "connected") + return "denied"; + return /__(?:notion-create-database|notion-update-data-source|notion-delete-pages)$/.test(toolName) + ? "user-approval" : "not-applicable"; }, - }, + }); }); diff --git a/agent/extensions/link/lib/spend-requests.ts b/agent/extensions/link/lib/spend-requests.ts index 7286b10..a409907 100644 --- a/agent/extensions/link/lib/spend-requests.ts +++ b/agent/extensions/link/lib/spend-requests.ts @@ -56,7 +56,7 @@ const metadata = z.object({ totals: z.array(total).optional(), approval_url: z.string().optional(), activity_url: z.string().optional(), - expires_at: z.number().optional(), + expires_at: z.iso.datetime().optional(), recurring: z.object({ interval: z.string(), interval_count: z.number().optional(), @@ -83,7 +83,7 @@ const metadata = z.object({ display_message: z.string().optional(), action_url: z.string().nullable().optional(), resolution: z.string().optional(), - expires_at: z.number().nullable().optional(), + expires_at: z.iso.datetime().nullable().optional(), }).optional(), }).optional(), }).nullable().optional(), diff --git a/agent/hooks/browser-lifecycle.ts b/agent/hooks/browser-lifecycle.ts index a5bab4e..9dda121 100644 --- a/agent/hooks/browser-lifecycle.ts +++ b/agent/hooks/browser-lifecycle.ts @@ -4,8 +4,8 @@ import { saveBrowserRuntime } from "../lib/browser-runtime"; export default defineHook({ events: { - async "turn.completed"(_event, ctx) { - await saveBrowserRuntime(ctx.session.id); + async "turn.settled"(event, ctx) { + if (event.data.outcome === "completed") await saveBrowserRuntime(ctx.session.id); }, }, }); diff --git a/agent/hooks/task-state.ts b/agent/hooks/task-state.ts index b17dbfa..e5d598a 100644 --- a/agent/hooks/task-state.ts +++ b/agent/hooks/task-state.ts @@ -1,36 +1,36 @@ -import { defineHook, type HookEvent } from "eve/hooks"; +import { defineHook, type HookContext, type HookEvent } from "eve/hooks"; import { closeBrowserRuntime, resumeBrowserAfterHumanInput } from "../lib/browser-runtime"; import { applyTaskEvent, taskState } from "../lib/task-state"; -const update = (event: HookEvent, ctx: { session: { id: string } }) => - taskState.update((current) => applyTaskEvent(current, event, ctx.session.id)); +function reduce(event: HookEvent, ctx: HookContext, current: ReturnType) { + return applyTaskEvent(current, event, ctx.session.id, { + id: ctx.occurrence.idempotencyKey, at: ctx.now.toISOString(), + }); +} -const cancel = async (event: HookEvent<"turn.cancelled">, ctx: { session: { id: string } }) => { - await closeBrowserRuntime(ctx.session.id); - update(event, ctx); -}; +const update = (event: HookEvent, ctx: HookContext) => + taskState.update((current) => reduce(event, ctx, current)); export default defineHook({ events: { "session.started": update, "turn.started": update, - "message.received": (event, ctx) => { + "delivery.consumed": (event, ctx) => { taskState.update((current) => { - const next = applyTaskEvent(current, event, ctx.session.id); - if (next !== current && current.status === "waiting_for_user") + const next = reduce(event, ctx, current); + if (current.status === "waiting_for_user" && next.status === "running") resumeBrowserAfterHumanInput(ctx.session.id); return next; }); }, - "step.started": update, - "input.requested": update, - "input.resolved": update, - "turn.completed": update, - "turn.failed": update, - "turn.cancelled": cancel, - "session.waiting": update, - "session.failed": update, - "session.completed": update, + "model.started": update, + "interaction.opened": update, + "interaction.settled": update, + async "turn.settled"(event, ctx) { + if (event.data.outcome === "cancelled") await closeBrowserRuntime(ctx.session.id); + update(event, ctx); + }, + "session.ended": update, }, }); diff --git a/agent/lib/browser-runtime.ts b/agent/lib/browser-runtime.ts index 6f9839e..b5d204e 100644 --- a/agent/lib/browser-runtime.ts +++ b/agent/lib/browser-runtime.ts @@ -358,12 +358,8 @@ function scheduleIdleClose(sessionId: string, runtime: BrowserRuntime): void { } // Channel callbacks also run when Eve ends a session outside a turn. -// Global stream hooks do not run on that path in Eve 0.79.1. export const browserChannelEvents = { - async "session.completed"(_event: unknown, _channel: unknown, ctx: { session: { id: string } }) { + async "session.ended"(_event: unknown, ctx: { session: { id: string } }) { await closeBrowserRuntime(ctx.session.id); }, - async "session.failed"(event: { sessionId: string }) { - await closeBrowserRuntime(event.sessionId); - }, }; diff --git a/agent/lib/linq.ts b/agent/lib/linq.ts index 9462924..5e1db1b 100644 --- a/agent/lib/linq.ts +++ b/agent/lib/linq.ts @@ -3,11 +3,13 @@ import { browserChannelEvents } from "./browser-runtime"; export const linqBrowserEvents: NonNullable = { ...browserChannelEvents, - async "session.failed"(event, channel) { + async "session.ended"(event, ctx) { try { - await browserChannelEvents["session.failed"](event); + await browserChannelEvents["session.ended"](event, ctx); } finally { - await channel.thread?.post("This session could not recover from an error. Start a new conversation to continue."); + if (event.data.outcome === "failed") { + await ctx.channel.thread?.post("This session could not recover from an error. Start a new conversation to continue."); + } } }, }; diff --git a/agent/lib/task-state.ts b/agent/lib/task-state.ts index f90ed56..f35651e 100644 --- a/agent/lib/task-state.ts +++ b/agent/lib/task-state.ts @@ -1,4 +1,5 @@ import { defineState } from "eve/context"; +import type { HookEvent } from "eve/hooks"; import type { BrowserProxyLocation, BrowserState } from "../../server/browser/types.js"; @@ -74,25 +75,20 @@ export function initializeTask( } export function applyTaskEvent( record: DurableTaskRecord, - event: { - type: string; - data?: Record; - meta?: { id?: string; at?: string }; - }, + event: HookEvent, sessionId: string, + { id, at }: { id: string; at: string }, ): DurableTaskRecord { - const id = event.meta?.id, - at = event.meta?.at ?? new Date().toISOString(); let next = initializeTask(record, sessionId, at); - if (id && next.processedEventIds.includes(id)) return next; + if (next.processedEventIds.includes(id)) return next; next = { ...next, - processedEventIds: id ? [...next.processedEventIds, id].slice(-2_000) : next.processedEventIds, + processedEventIds: [...next.processedEventIds, id].slice(-2_000), updatedAt: at, }; - if (event.type === "message.received") { + if (event.type === "delivery.consumed") { if (next.title === "New task") { - const text = safeText(event.data?.message ?? event.data?.text); + const text = safeText(event.data.parts.flatMap((part) => part.kind === "text" ? [part.text] : []).join(" ")); if (text) next = { ...next, title: text.slice(0, 64) }; } // A reply after handoff permits a fresh observation of the existing page. @@ -111,25 +107,25 @@ export function applyTaskEvent( activeStep: "agent turn", waitReason: undefined, }; - else if (event.type === "step.started") + else if (event.type === "model.started") next = captchaBlocksGeneric(next) ? next : { ...next, status: "running", activeStep: "model step" }; - else if (event.type === "input.requested") + else if (event.type === "interaction.opened") next = { ...next, status: "waiting_for_user", activeStep: "waiting for user", - waitReason: classifyWait(event.data), + waitReason: classifyWait(event.data.request), }; - else if (event.type === "input.resolved") + else if (event.type === "interaction.settled" && next.status === "waiting_for_user" && !captchaNeedsReply(next)) next = { ...next, status: "running", activeStep: "resuming", waitReason: undefined, }; - else if (event.type === "turn.completed" || event.type === "session.waiting") + else if (event.type === "turn.settled" && event.data.outcome === "completed") next = captchaBlocksGeneric(next) ? next : { @@ -138,16 +134,16 @@ export function applyTaskEvent( activeStep: undefined, waitReason: undefined, }; - else if (event.type === "turn.failed" || event.type === "session.failed") + else if ((event.type === "turn.settled" || event.type === "session.ended") && event.data.outcome === "failed") next = { ...next, status: "failed", activeStep: undefined }; - else if (event.type === "turn.cancelled") + else if (event.type === "turn.settled" && event.data.outcome === "cancelled") next = closeTaskBrowser({ ...next, status: "canceled", activeStep: undefined, waitReason: undefined, }); - else if (event.type === "session.completed") + else if (event.type === "session.ended" && event.data.outcome === "completed") next = { ...next, status: "complete", activeStep: undefined }; return next; } @@ -337,11 +333,14 @@ export function closeTaskBrowser(record: DurableTaskRecord): DurableTaskRecord { updatedAt: new Date().toISOString(), }; } -function classifyWait(data?: Record): DurableTaskRecord["waitReason"] { - const value = JSON.stringify(data ?? {}).toLowerCase(); +function captchaNeedsReply(record: DurableTaskRecord): boolean { + return record.captcha?.status === "errored" || record.captcha?.status === "timed_out"; +} +function classifyWait(request: { kind: string; prompt: string }): DurableTaskRecord["waitReason"] { + const value = request.prompt.toLowerCase(); if (value.includes("captcha")) return "captcha"; if (value.includes("otp") || value.includes("code")) return "otp"; - if (value.includes("approval")) return "approval"; + if (request.kind === "approval" || value.includes("approval")) return "approval"; return "other"; } export function safeText(value: unknown): string | undefined { diff --git a/app/chat.tsx b/app/chat.tsx index d2f9cb1..a77c43e 100644 --- a/app/chat.tsx +++ b/app/chat.tsx @@ -2,7 +2,7 @@ import Image from "next/image"; import { useRouter } from "next/navigation"; import { useEveAgent } from "eve/react"; -import { Client } from "eve/client"; +import { openInteractions, signInEnding } from "eve/events"; import { useState } from "react"; import { browserPreview } from "./projection"; @@ -19,16 +19,12 @@ export default function Chat({ sessionId, demoUrl }: { sessionId?: string; demoU window.history.replaceState(null, "", `/s/${encodeURIComponent(session.sessionId)}`); }, }); - const busy = agent.status === "submitted" || agent.status === "streaming"; + const busy = agent.status === "busy"; const waiting = busy || agent.status === "resuming" || retiring; const preview = browserPreview(agent.events); - const pending = agent.data.messages - .flatMap((message) => message.parts) - .flatMap((part) => { - if (part.type !== "dynamic-tool" || part.state !== "approval-requested") return []; - const request = part.toolMetadata?.eve?.inputRequest; - return request ? [request] : []; - }); + const pending = openInteractions(agent.view).filter( + ({ request, answer }) => request.kind !== "sign-in" && answer === undefined, + ); async function send(text: string) { if (!text.trim() || waiting) return; setError(""); @@ -44,10 +40,8 @@ export default function Chat({ sessionId, demoUrl }: { sessionId?: string; demoU setRetiring(true); setError(""); try { - const activeSessionId = agent.session?.sessionId ?? sessionId; - if (activeSessionId) - await new Client({ host: "" }).sessions.attach(activeSessionId).reset(); - agent.reset(); + if (agent.session) await agent.end(); + agent.newSession(); setInput(""); router.push("/"); } catch { @@ -89,28 +83,32 @@ export default function Chat({ sessionId, demoUrl }: { sessionId?: string; demoU Open demo site ↗
- {agent.data.messages + {agent.messages .filter((message) => message.role === "user" || message.role === "assistant") .map((message) => (
{message.role === "user" ? "You" : "Bell"} - {message.parts.map((part, index) => - part.type === "text" ?

{part.text}

- : part.type === "authorization" ? ( -
- {part.state === "completed" ? ( -

{part.outcome === "authorized" ? `${part.displayName} connected.` : `${part.displayName} authorization ${part.outcome}.`}

- ) : ( - <> -

{part.description}

- {part.authorization?.url && ( - Connect {part.displayName} - )} - - )} -
- ) : null, - )} + {message.parts.map((part, index) => { + if (part.type === "text") return

{part.text}

; + if (part.type !== "interaction" || part.request.kind !== "sign-in") return null; + const signIn = part.request.signIn; + const name = signIn?.displayName ?? signIn?.name ?? "the service"; + return ( +
+ {part.status === "settled" ? ( +

{part.outcome === "accepted" ? `${name} connected.` : `${name} authorization ${signInEnding(part.outcome ?? "withdrawn")}.`}

+ ) : ( + <> +

{part.request.prompt}

+ {signIn?.instructions && signIn.instructions !== part.request.prompt &&

{signIn.instructions}

} + {signIn?.url && ( + Connect {name} + )} + + )} +
+ ); + })}
))}
@@ -123,8 +121,8 @@ export default function Chat({ sessionId, demoUrl }: { sessionId?: string; demoU {" "}

)} - {pending.map((request) => ( -
+ {pending.map(({ request, interactionId }) => ( +
{request.prompt} {request.options?.map((option) => ( )} diff --git a/app/projection.ts b/app/projection.ts index 7dcc7d5..44da451 100644 --- a/app/projection.ts +++ b/app/projection.ts @@ -1,32 +1,28 @@ -export function browserPreview(events: readonly unknown[]) { +import type { Fact, Progress } from "eve/events"; + +export function browserPreview(events: readonly (Fact | Progress)[]) { let screenshot: string | undefined; let url: string | undefined; let httpStatus: number | undefined; - for (const value of events) { - if (!value || typeof value !== "object") continue; - const event = value as { - type?: string; - data?: { - result?: { kind?: string; toolName?: string; isError?: boolean; output?: unknown }; - }; - }; - const result = event.data?.result; - if ( - event.type !== "action.result" || - result?.kind !== "tool-result" || - result.isError || - !result.output || - typeof result.output !== "object" - ) + // Read stream facts rather than projected messages, which can omit large screenshots. + const toolNames = new Map(); + for (const event of events) { + if (event.type === "call.requested" && event.data.capability.kind === "tool") { + toolNames.set(event.data.callId, event.data.capability.name); continue; - const envelope = result.output as { + } + if (event.type !== "call.settled" || event.data.outcome !== "completed") continue; + const toolName = toolNames.get(event.data.callId); + const { output: value } = event.data; + if (toolName === undefined || !value || typeof value !== "object") continue; + const envelope = value as { result?: Record; workbench?: { screenshotDataUrl?: string; browser?: { url?: string } }; }; - const output = envelope.result ?? (result.output as Record); + const output = envelope.result ?? (value as Record); const workbench = envelope.workbench; const nextUrl = typeof output.url === "string" ? output.url : workbench?.browser?.url; - if (result.toolName === "run" || (typeof nextUrl === "string" && nextUrl !== url)) { + if (toolName === "run" || (typeof nextUrl === "string" && nextUrl !== url)) { // Ordinary browser work can navigate without reporting an HTTP status. httpStatus = undefined; screenshot = undefined; diff --git a/docs/repository.md b/docs/repository.md index 9de11b7..bb52590 100644 --- a/docs/repository.md +++ b/docs/repository.md @@ -41,7 +41,7 @@ described in its guide. Operator SDK/CLI access remains separate and is unavaila ## Development -Use Node.js 24 and pnpm 10.33.4: +Use Node.js 24 and pnpm 12.21.0: ```sh pnpm install --frozen-lockfile @@ -67,11 +67,10 @@ the Browserbase copyright and license terms covering the browser source. ## Browser retirement -The HTTP and Linq channels release the hosted browser on terminal session events, including -when cleanup runs in a fresh worker. Eve 0.79.1 skips global stream hooks for completion outside -a turn, so cleanup uses channel callbacks. A failed release retains the browser ID and reaches +The HTTP and Linq channels release the hosted browser on `session.ended`, including +when cleanup runs in a fresh worker. A failed release retains the browser ID and reaches Eve's error logging; failed callbacks are not automatically retried. Starting a new conversation -resets the prior session and releases its browser. Browserbase sessions still have provider +ends the prior session and releases its browser. Browserbase sessions still have provider lifetimes, so this does not guarantee an indefinitely running browser. With Bell running locally and its provider credentials loaded, run the opt-in regression: @@ -80,5 +79,5 @@ With Bell running locally and its provider credentials loaded, run the opt-in re BELL_LIVE_RETIREMENT=1 pnpm test:retirement:live ``` -The test opens example.com, checks browser reuse across two turns, resets the session, verifies +The test opens example.com, checks browser reuse across two turns, ends the session, verifies provider release, and deletes its temporary Context. It uses the configured model and Browserbase. diff --git a/package.json b/package.json index 7c5d5b8..0f757f6 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "engines": { "node": "24.x" }, - "packageManager": "pnpm@10.33.4", + "packageManager": "pnpm@12.21.0", "scripts": { "dev": "next dev --hostname 127.0.0.1 --port 4320", "build:agent": "eve build --skip-sandbox-prewarm && node scripts/package-browser-assets.mjs", @@ -31,9 +31,9 @@ "@datalayer/personal-agent-protocol": "0.35.0", "@datalayer/reactor": "1.3.7", "@modelcontextprotocol/client": "2.4.0", - "@stripe/link-integrations-eve": "0.3.4", - "ai": "7.0.137", - "eve": "0.79.1", + "@stripe/link-integrations-eve": "0.6.0", + "ai": "7.0.173", + "eve": "1.2.0", "jose": "6.2.17", "next": "16.4.3", "pg": "8.23.1", @@ -57,13 +57,5 @@ "type": "git", "url": "https://github.com/browserbase/bell-stack.git" }, - "license": "MIT", - "pnpm": { - "overrides": { - "undici@>=7 <7.30.1": "7.30.1", - "undici@>=8 <8.12.2": "8.12.2", - "zod@>=4 <4.6.6": "4.6.7", - "@datalayer/reactor@1.3.7>@toon-format/toon": "2.3.1" - } - } + "license": "MIT" } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 9ec88f8..16e5690 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1,3 +1,170 @@ +--- +lockfileVersion: '9.0' + +importers: + + .: + configDependencies: {} + packageManagerDependencies: + pnpm: + specifier: 12.21.0 + version: 12.21.0 + +packages: + + '@pnpm/exe.android-arm64@12.21.0': + resolution: {integrity: sha512-iaWidxR5B9NUBpwMznCQu1yUpKB6BjTY5BYX2lORj76VsfINdj8Z8XWSzSNrGI8qlxa28Jzdp5fiaspzOaJZlA==} + cpu: [arm64] + os: [android] + + '@pnpm/exe.android-x64@12.21.0': + resolution: {integrity: sha512-35e5v3wlwjIYxDywq+R6/z8CE4gLOEgRxt18yqz1tMRLmx2mnW+CFJI2Q8+srTNjn7gykXUC0x1k195JNikC5A==} + cpu: [x64] + os: [android] + + '@pnpm/exe.darwin-arm64@12.21.0': + resolution: {integrity: sha512-F5OyMX/6zLSowpTZEQRojbCmPS1Pq+fyRaIinslsIe6Glh3qbyQ52u+Fe0eEzSaRuIbWZkXmAAXSWh6Q5Wrlgg==} + cpu: [arm64] + os: [darwin] + + '@pnpm/exe.darwin-x64@12.21.0': + resolution: {integrity: sha512-EzpvcsaE6hrrgYeEiAFYd2rSgFybYyxXhkAY7K3y6Hg3loVfcyJ81hHczpFzi8lW5RXtUlFECRPZ8ZAMRFQYYg==} + cpu: [x64] + os: [darwin] + + '@pnpm/exe.freebsd-x64@12.21.0': + resolution: {integrity: sha512-wNjuEnmdLks4aayPu/QZWQ5tQM9Jn+odUp/vwQM8BXRYoulkTZhtZTHoD60N6mUdLWef1hgUeUh8llNGEUsimw==} + cpu: [x64] + os: [freebsd] + + '@pnpm/exe.linux-arm64-musl@12.21.0': + resolution: {integrity: sha512-Ceit9zn4g5ZqCJtx1fV8eJE7p8aeXMrGZ+Dc01vRqZLIUNgNeI+Ur0ruyqxtsnJx6rGADyXzohumxPLHjaJ5AQ==} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@pnpm/exe.linux-arm64@12.21.0': + resolution: {integrity: sha512-4Oj/iF2TDCe2lcH0n4TupPR5sSdrNLclJB6xBElLMPCUOAvBhdf2rRlSaO5M4erJ6g4Fyy7YTXTpcmfFsKyxEA==} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@pnpm/exe.linux-ppc64@12.21.0': + resolution: {integrity: sha512-s2o7rdSDeUTBFsNqxptpZXlTgT6cojmMVUOvTQvFNSv6Easian02ha4tR32fwwD97Au4YzIIjMCwywCF4D82Sw==} + cpu: [ppc64] + os: [linux] + libc: [glibc] + + '@pnpm/exe.linux-riscv64@12.21.0': + resolution: {integrity: sha512-EYv3GzxeBTITCuM3yGHHbpRFpUvyulkXpQ6LsjKAQNL3iaba1E6h9iDmlouLb3Io4AMMsfdk0/uG6poQ41uewA==} + cpu: [riscv64] + os: [linux] + libc: [glibc] + + '@pnpm/exe.linux-s390x@12.21.0': + resolution: {integrity: sha512-8VXGNGVNEfs7pL9GTZOzFxjFEnMt4WL3rLOADR5/kPQ7ROTV9GfpVI2DPO/zArXFSkvfc9Zad/WypHLbvzoaTQ==} + cpu: [s390x] + os: [linux] + libc: [glibc] + + '@pnpm/exe.linux-x64-musl@12.21.0': + resolution: {integrity: sha512-MnC5vpIXYubhDZCgCwlfJMg7Cg6HupN2IuouT9gD/tUmOfVdQYqeyYccWbthyo/Jeto8de1oQlxeRN1+1Hl2DQ==} + cpu: [x64] + os: [linux] + libc: [musl] + + '@pnpm/exe.linux-x64@12.21.0': + resolution: {integrity: sha512-8eufCjHXspKbNS/kh8q4Q0gqJoOuvC4Q5pgos6XS8By/nAMtP+jf8F1Cw9er840kfAX+PJ/ts+A9qnLE91rvXQ==} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@pnpm/exe.netbsd-x64@12.21.0': + resolution: {integrity: sha512-eyh1M8hQZCkLWxuva7S/fc1SbFbgqg0/5di0dgWmyiuc2Io3dbWVihDun8X+XM8zsR5uhIDvvZpbS9aZQbCovg==} + cpu: [x64] + os: [netbsd] + + '@pnpm/exe.win32-arm64@12.21.0': + resolution: {integrity: sha512-7xTxxUXo/grRLivSeIl6B21gnsz7ooe5EMPcJmQqwxc8WLJVReN8MzrlHru8bqXfVr4X3+6ZGZscntKenlCBqQ==} + cpu: [arm64] + os: [win32] + + '@pnpm/exe.win32-x64@12.21.0': + resolution: {integrity: sha512-9TpkJemVApxJ1Z1w0ZFGN+AuSx4nJOqXSJUqMqDvaXTYwGOzvBiiWdFP9GN0ketiWCQS1Q0/pza2E7I3pP0OBQ==} + cpu: [x64] + os: [win32] + + pnpm@12.21.0: + resolution: {integrity: sha512-Zv2CeO4ok1zpUXktNDZ/869cQyonVkRYIwKVM4NbjaUpu+C+UTCv1W7QcT+4eJ5Hutgtk71a4v5UsVVi1idu8A==} + engines: {node: '>=18'} + hasBin: true + +snapshots: + + '@pnpm/exe.android-arm64@12.21.0': + optional: true + + '@pnpm/exe.android-x64@12.21.0': + optional: true + + '@pnpm/exe.darwin-arm64@12.21.0': + optional: true + + '@pnpm/exe.darwin-x64@12.21.0': + optional: true + + '@pnpm/exe.freebsd-x64@12.21.0': + optional: true + + '@pnpm/exe.linux-arm64-musl@12.21.0': + optional: true + + '@pnpm/exe.linux-arm64@12.21.0': + optional: true + + '@pnpm/exe.linux-ppc64@12.21.0': + optional: true + + '@pnpm/exe.linux-riscv64@12.21.0': + optional: true + + '@pnpm/exe.linux-s390x@12.21.0': + optional: true + + '@pnpm/exe.linux-x64-musl@12.21.0': + optional: true + + '@pnpm/exe.linux-x64@12.21.0': + optional: true + + '@pnpm/exe.netbsd-x64@12.21.0': + optional: true + + '@pnpm/exe.win32-arm64@12.21.0': + optional: true + + '@pnpm/exe.win32-x64@12.21.0': + optional: true + + pnpm@12.21.0: + optionalDependencies: + '@pnpm/exe.android-arm64': 12.21.0 + '@pnpm/exe.android-x64': 12.21.0 + '@pnpm/exe.darwin-arm64': 12.21.0 + '@pnpm/exe.darwin-x64': 12.21.0 + '@pnpm/exe.freebsd-x64': 12.21.0 + '@pnpm/exe.linux-arm64': 12.21.0 + '@pnpm/exe.linux-arm64-musl': 12.21.0 + '@pnpm/exe.linux-ppc64': 12.21.0 + '@pnpm/exe.linux-riscv64': 12.21.0 + '@pnpm/exe.linux-s390x': 12.21.0 + '@pnpm/exe.linux-x64': 12.21.0 + '@pnpm/exe.linux-x64-musl': 12.21.0 + '@pnpm/exe.netbsd-x64': 12.21.0 + '@pnpm/exe.win32-arm64': 12.21.0 + '@pnpm/exe.win32-x64': 12.21.0 + +--- lockfileVersion: '9.0' settings: @@ -36,20 +203,20 @@ importers: specifier: 2.4.0 version: 2.4.0 '@stripe/link-integrations-eve': - specifier: 0.3.4 - version: 0.3.4(eve@0.79.1(@opentelemetry/api@1.9.1)(ai@7.0.137(zod@4.6.7))(microsandbox@0.5.10)) + specifier: 0.6.0 + version: 0.6.0(eve@1.2.0(@opentelemetry/api@1.9.1)(ai@7.0.173(zod@4.6.7))(next@16.4.3(@babel/core@7.29.7(supports-color@7.2.0))(@opentelemetry/api@1.9.1)(@types/node@24.19.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0))(react@19.3.0)(vite@8.3.3(@types/node@24.19.0)(esbuild@0.28.2)(yaml@2.9.1))) ai: - specifier: 7.0.137 - version: 7.0.137(zod@4.6.7) + specifier: 7.0.173 + version: 7.0.173(zod@4.6.7) eve: - specifier: 0.79.1 - version: 0.79.1(@opentelemetry/api@1.9.1)(ai@7.0.137(zod@4.6.7))(microsandbox@0.5.10) + specifier: 1.2.0 + version: 1.2.0(@opentelemetry/api@1.9.1)(ai@7.0.173(zod@4.6.7))(next@16.4.3(@babel/core@7.29.7(supports-color@7.2.0))(@opentelemetry/api@1.9.1)(@types/node@24.19.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0))(react@19.3.0)(vite@8.3.3(@types/node@24.19.0)(esbuild@0.28.2)(yaml@2.9.1)) jose: specifier: 6.2.17 version: 6.2.17 next: specifier: 16.4.3 - version: 16.4.3(@babel/core@7.29.7)(@opentelemetry/api@1.9.1)(@types/node@24.19.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0) + version: 16.4.3(@babel/core@7.29.7(supports-color@7.2.0))(@opentelemetry/api@1.9.1)(@types/node@24.19.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0) pg: specifier: 8.23.1 version: 8.23.1 @@ -83,10 +250,10 @@ importers: version: 19.3.0(@types/react@19.3.0) eslint: specifier: 9.39.5 - version: 9.39.5 + version: 9.39.5(supports-color@7.2.0) eslint-config-next: specifier: 16.4.3 - version: 16.4.3(@typescript-eslint/parser@8.71.1(eslint@9.39.5)(typescript@6.0.3))(eslint@9.39.5)(typescript@6.0.3) + version: 16.4.3(@typescript-eslint/parser@8.71.1(eslint@9.39.5(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3))(eslint@9.39.5(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3) typescript: specifier: 6.0.3 version: 6.0.3 @@ -102,8 +269,8 @@ packages: '@1password/sdk@0.5.0': resolution: {integrity: sha512-k6kov3pcA7PRg2tev9CgTfEf/3JSyAp11BPQNCEsqAD32QbqM032OXC1rfjyC8Ba0sfH+NHYZxcifUZToyGyYA==} - '@ai-sdk/gateway@4.0.110': - resolution: {integrity: sha512-5IwnOR6v7KC+D9eddUqsCobXl/FbLUVb2LaQc/uyuQdpP3/n9s0YLc9zl4/W3IS/R2pjHrqUfCzEAeOu7bFLoQ==} + '@ai-sdk/gateway@4.0.146': + resolution: {integrity: sha512-rJ5NQSyjnpo6HSBEYc9Ff6k1EROUuB7KeAfHYVbVDsk68ynY0Eb8JeWflZKXlT6NhYgqyCiBDxE5blXWACXMKQ==} engines: {node: '>=22'} peerDependencies: zod: 4.6.7 @@ -120,14 +287,14 @@ packages: peerDependencies: zod: 4.6.7 - '@ai-sdk/provider-utils@5.0.58': - resolution: {integrity: sha512-iXSwKR/7LpHzAlyrUl+bTinwzmZ3Nmup1viwPisM5Gn5cogRdIG4rV9w1ZDuKFcrXyu/AeVs42E1CX/0aNwrfQ==} + '@ai-sdk/provider-utils@5.0.81': + resolution: {integrity: sha512-pfvvdQ3d1WxdBuug/mnGEP6E48cPokwD8dMBnsFeeAUp0/rb/H2aj0f3mwOiY62gu/Cu5GO44e+SE5nDHyBWMA==} engines: {node: '>=22'} peerDependencies: zod: 4.6.7 - '@ai-sdk/provider@4.0.26': - resolution: {integrity: sha512-BZ443uBEq6HuMA+Z4b7Hpm65GpZSo7pWqnYqpf/7tAO3C48JbtvAhOE2JnODFj+jodsZzfRHkAyQb64xuD2tZQ==} + '@ai-sdk/provider@4.0.38': + resolution: {integrity: sha512-GElz70UUCuDFFyD6m6aQJFgRY0HEABQzB5otzgkrisYaF5mnss7o0upAmbBTSD6KWiM9h7lZm1ls2c7xzHR8CA==} engines: {node: '>=22'} '@ai-sdk/provider@4.0.7': @@ -227,15 +394,24 @@ packages: '@emnapi/core@1.10.0': resolution: {integrity: sha512-yq6OkJ4p82CAfPl0u9mQebQHKPJkY7WrIuk205cTYnYe+k2Z8YBh11FrbRG/H6ihirqcacOgl2BIO8oyMQLeXw==} + '@emnapi/core@2.0.0-beta.2': + resolution: {integrity: sha512-MzCVoWtcg4Pm2B3je5mMvYMvj3MmBKw+fU7vbsJc9/iT8ip6/eYIHo/Dsm/mr+wsHB6SEyJDuxB09Yy6r/8+4A==} + '@emnapi/runtime@1.10.0': resolution: {integrity: sha512-ewvYlk86xUoGI0zQRNq/mC+16R1QeDlKQy21Ki3oSYXNgLb45GV1P6A0M+/s6nyCuNDqe5VpaY84BzXGwVbwFA==} '@emnapi/runtime@1.11.3': resolution: {integrity: sha512-Xz4Tpyki7XyrpbUK1jR1AhdAdaXyhhY4lZ3neLodmhpuWfy2PAQN5B46sAiU4liOXGLkHypn/qU+jvfWSCYYLA==} + '@emnapi/runtime@2.0.0-beta.2': + resolution: {integrity: sha512-JcrSPzPvZuNZvJqPTF9Fw25LbOJ8avzFVlaf2grmH4Cku0oGP47tRgqPZadcfj3YoZMHkFVnCYFbQM8I+i5QEw==} + '@emnapi/wasi-threads@1.2.1': resolution: {integrity: sha512-uTII7OYF+/Mes/MrcIOYp5yOtSMLBWSIoLPpcgwipoiKbli6k322tcoFsxoIIxPDqW01SQGAgko4EzZi2BNv2w==} + '@emnapi/wasi-threads@2.2.0': + resolution: {integrity: sha512-JP7OYH38Q7+pyTAe14raZHLQIK7BDKbdwji+Xi3pcd/6QkJYQH3SX4wu6EplGrGJWRepoNzedfm0G3B9Z4e9Rw==} + '@esbuild/aix-ppc64@0.28.2': resolution: {integrity: sha512-XExcO+dvLKvVtNTibSTBej1NCAbaGhWn9Ww1ZPx80qsahhPFe/8jgWP0IchNe0F3HwkU7n8ejhH8bjonqht8mQ==} engines: {node: '>=18'} @@ -649,6 +825,13 @@ packages: '@emnapi/core': ^1.7.1 || ^2.0.0-alpha.4 '@emnapi/runtime': ^1.7.1 || ^2.0.0-alpha.4 + '@napi-rs/wasm-runtime@1.2.6': + resolution: {integrity: sha512-mRyDmEw9/fCDXCGfL1sbgIw/GUK0PVxRW4YwgPN61F3LQ+fSyoBFarJVzgGyhF6kRzEQZ0FejDqm4WLXSeqQmw==} + engines: {node: ^20.19.0 || ^22.13.0 || >=23.5.0} + peerDependencies: + '@emnapi/core': ^1.7.1 || 2.0.0-beta.2 + '@emnapi/runtime': ^1.7.1 || 2.0.0-beta.2 + '@next/env@16.4.3': resolution: {integrity: sha512-a7tz1QCcWWkwC/rPJcPMJk/UNRu9CFhDd3OHYE5hddbJrs8BqRTalxI6GlKCWEGzRLHN+S/B7a4PAHCtm25aBQ==} @@ -740,42 +923,81 @@ packages: '@oxc-project/types@0.153.0': resolution: {integrity: sha512-jSNrRIyvPVLL5E1z/tS5zLAprosGz/FuI1PWwEOz59j3E4TTTzSpqKb/RDGqJhhW0QHYISGXxq582wGx6T11Tw==} + '@oxc-project/types@0.158.0': + resolution: {integrity: sha512-xZ66qA4WmLbTLlxH3mqMd8f9UKbaOzOT0ATwFf4DH/14pMgpUrtqtjyYzOQmgfl2a0iRAAMbQ9G1th/67jRzGw==} + '@rolldown/binding-android-arm-eabi@1.2.13': resolution: {integrity: sha512-Vu/NICrgdRvUOeaJZIyB2FP63s6fO/4ud5l8dXmxDx9yDyn+mN0y+gsvsVviSli+T361Aqo0h46EuMoobrwawA==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm] os: [android] + '@rolldown/binding-android-arm-eabi@1.3.2': + resolution: {integrity: sha512-kqR2xcygEx3WwDY69LsKeyf7SVmx4yzMtKZRknyaHieVJdRvvnAM97L0Gq6tUFc9T2YXcW/Ghij2+Um6He0LTw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm] + os: [android] + '@rolldown/binding-android-arm64@1.2.13': resolution: {integrity: sha512-6LEoIrGy5vvCd2boNnv2soPSUZj/PRvhp8R/t9KlX+mIZxThIE/ZqxrGXxmuNX0FuvQFvLdZr7S4HrYpYBVhEQ==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [android] + '@rolldown/binding-android-arm64@1.3.2': + resolution: {integrity: sha512-gXM4GAAvvIZA7qUuSCQS+Zz91H2fagKa5MNppUdjzysJ8LXMWm9D/gQj4nfOKo6okquDQ5pkjsuo2SUMXNW0Rw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [android] + '@rolldown/binding-darwin-arm64@1.2.13': resolution: {integrity: sha512-CaJSRzlQ6Q+zkDMVA9OkVxBjVoPRCDEE3v0FSJ9kIQBgRjFApA3Si4ijhbNVUji7ZJt+PfO0e46qy4nPInHUPA==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [darwin] + '@rolldown/binding-darwin-arm64@1.3.2': + resolution: {integrity: sha512-OBs5hp3W+LwMEUmDMMMnu08ncG0t6DDgnFU+6TAucKtAfNgerYLZSr2jtREKb/JuPQ1J7bJnWIgKKkxvjuAw1g==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [darwin] + '@rolldown/binding-darwin-x64@1.2.13': resolution: {integrity: sha512-e4r340I5hxSzJkD3YJBxgzq/rJ3wwxwdLLb2FPt1Zpyem20nrQPT11DDEEkazwxaHumH8wpglsp/Ozgj/wT6mw==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [darwin] + '@rolldown/binding-darwin-x64@1.3.2': + resolution: {integrity: sha512-X0VGYd4v/gdjfa/IP6uHuMhofPoUDYvK/byk3bC0jQ1pKKgt6RZ4B4puMqP0AHkjmIHAsxA471mM6AxZ39IaTA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [darwin] + '@rolldown/binding-freebsd-x64@1.2.13': resolution: {integrity: sha512-hoBWDZ4/K/mJKVMbsgUd1jfpA2DiOrJ54mpegObU9TBHBBrtX4FLIXJJQRDPZ/2Dn91GvPob+Z2hwKJzf4E5SQ==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [freebsd] + '@rolldown/binding-freebsd-x64@1.3.2': + resolution: {integrity: sha512-mr04K4cp9J/fj9fknrX8e4QvI/V48Sp+4v64PoLwhoirIH8b8L8EBrF/0bTjV1It2IL91hoNG13GblnWLglkxA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [freebsd] + '@rolldown/binding-linux-arm-gnueabihf@1.2.13': resolution: {integrity: sha512-oF9fZu3vTWnTiVAkDFxU9PJLt1nh20K9RRpuHsR7ZnE2L7XookBbDBVLojCVSLGbvtSlxeUNnjAj6DbNsKyzbg==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm] os: [linux] + '@rolldown/binding-linux-arm-gnueabihf@1.3.2': + resolution: {integrity: sha512-VgWy02HU9Tiy6tU8U+kF3Fd4TQwTNdIBvs2MlgViP1ksMtAnQQTIPAj0ZsJzIQXKIOugqQSpqxQgELJ3fkuL5w==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm] + os: [linux] + '@rolldown/binding-linux-arm64-gnu@1.2.13': resolution: {integrity: sha512-DTpb/+jMiqWMPgphn4ksW1zW+XLJ6dJJ9FMvnIk9I291LhCctMPhMYJrP5t9p6C9qa3KXadDdUEZHBaPh3kNxQ==} engines: {node: ^20.19.0 || >=22.12.0} @@ -783,6 +1005,13 @@ packages: os: [linux] libc: [glibc] + '@rolldown/binding-linux-arm64-gnu@1.3.2': + resolution: {integrity: sha512-0wloJFYqV844gv6boiERbHpErxbxHbmlgnMX5VxP1Ux+DLBqGrUOn0cIpBmCZEcTITes3QUelxya4u8c9ziQvQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [linux] + libc: [glibc] + '@rolldown/binding-linux-arm64-musl@1.2.13': resolution: {integrity: sha512-xU+Kvv9N2A3SY35zFh1FWWNjxbadE/BKeqnkXe7vScU4GZsw757BlVmDLITZEq8DPpk6m7uoDYkK7P+x/uU5Ow==} engines: {node: ^20.19.0 || >=22.12.0} @@ -790,6 +1019,13 @@ packages: os: [linux] libc: [musl] + '@rolldown/binding-linux-arm64-musl@1.3.2': + resolution: {integrity: sha512-Kys8wgFQy8H8vua0MNpC0akMBFoNO8455RHk2yycBM0iayMIAtVAL6xmV9TWAkehFgrrlImTL2fZdX5LXfYtAA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [linux] + libc: [musl] + '@rolldown/binding-linux-ppc64-gnu@1.2.13': resolution: {integrity: sha512-XMk/hnhh25oQ756Lclb1Q11h4ll0xC0Esa5w4Vzp+mAE2S3AGJgeM0SonrIgY8fHhjarb6hcoTuwoFG0VVP2ig==} engines: {node: ^20.19.0 || >=22.12.0} @@ -797,6 +1033,13 @@ packages: os: [linux] libc: [glibc] + '@rolldown/binding-linux-ppc64-gnu@1.3.2': + resolution: {integrity: sha512-L8eej7+/StRxUHHOPsOVl7Fzx/3tumuGB4hGQZKT73xRI16KZhaSJr0gi3C3WBjNRxeJRKKps2UD4lQukP+oBw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [ppc64] + os: [linux] + libc: [glibc] + '@rolldown/binding-linux-s390x-gnu@1.2.13': resolution: {integrity: sha512-U1BoTHYmlywE2n3HUWjzZ+8EQsKr+OwpxYuDWaubx42tUL8QSL7nOqRz/NVHanibbFP3M1Rxuprz/wNcbMKjqw==} engines: {node: ^20.19.0 || >=22.12.0} @@ -804,6 +1047,13 @@ packages: os: [linux] libc: [glibc] + '@rolldown/binding-linux-s390x-gnu@1.3.2': + resolution: {integrity: sha512-MV5CEb/nV8neQOj7l6945q1vy62HXtWO8zPDvfySPusoUzdBoLoJ/DfXXwaYThGTXZCniF+5bCf253WTPPK7Yw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [s390x] + os: [linux] + libc: [glibc] + '@rolldown/binding-linux-x64-gnu@1.2.13': resolution: {integrity: sha512-J4cm80Pc6wEwV5AZ42o62sIQgDk+Y7R2s646jIwuvO+4V46QB58N4vVuMPWCBaNgursXLpmUWJV//WQAkPvHBQ==} engines: {node: ^20.19.0 || >=22.12.0} @@ -811,6 +1061,13 @@ packages: os: [linux] libc: [glibc] + '@rolldown/binding-linux-x64-gnu@1.3.2': + resolution: {integrity: sha512-3qssvvVvkwQookZ1/1avlKWc5orAR85vgKdzDd5noZS8nnHiI/ejOAEt0xfNYvtBBF7/DZmP8dANWkRBJVOBCA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [linux] + libc: [glibc] + '@rolldown/binding-linux-x64-musl@1.2.13': resolution: {integrity: sha512-W0euZS40U4V6JkmEnVCIX9mcsL6cbXQ4X8c2w+MMOIjFg68TXUW+u3RT+2e1t1pv9mg/EP3pDtK3POXdQ7Rxyw==} engines: {node: ^20.19.0 || >=22.12.0} @@ -818,24 +1075,54 @@ packages: os: [linux] libc: [musl] + '@rolldown/binding-linux-x64-musl@1.3.2': + resolution: {integrity: sha512-rJqoFTm/bCZFKKgaT4NzWn/TuJkFDToZ/rzYFnYVBL28jH1nIfg6snx2mDri30nal9H+wcYfKpoPR9jrMQgQQg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [linux] + libc: [musl] + '@rolldown/binding-openharmony-arm64@1.2.13': resolution: {integrity: sha512-do/AF/4n9MRshia3a5aXoy8xM2c6mgfT6D7H/dY6my5z+hfCIR4ab7mk4IRj++nsEQpKy39kd0DQnDq+r692tw==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [openharmony] + '@rolldown/binding-openharmony-arm64@1.3.2': + resolution: {integrity: sha512-ozdbCjHfh0N//wJNExjJlSlcDaeIKo8k1ktzkLUyESr2Gu/Qw7nBYxKe3jgtoaxda570vg10WdYosre82263hQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [openharmony] + + '@rolldown/binding-wasm32-wasi@1.3.2': + resolution: {integrity: sha512-p5VA6Vk/2cXZPVWf+dDbuE0dkhrcoAo6pISTJmzUnsSdQqNJdusyR8lZgHku095+r27zrYISNLZnJoqrcePW0A==} + engines: {node: ^20.19.0 || ^22.13.0 || >=23.5.0} + cpu: [wasm32] + '@rolldown/binding-win32-arm64-msvc@1.2.13': resolution: {integrity: sha512-6FtUf2cJZobutJdxnGYX8z0vtbgqU0b2v8vfBhkXb9wp2MppMFtkunE+IaOntyi01rkIQoPW2GHABtfzsC0BRQ==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [win32] + '@rolldown/binding-win32-arm64-msvc@1.3.2': + resolution: {integrity: sha512-XDb2U14Orf4r76SwzvJ7avePL00w4gHBmi1Ig4B/itYFEUTmYMNDHVU0dcYuBa0LgNBqyREoJOrQKxQlyYJA7A==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [win32] + '@rolldown/binding-win32-x64-msvc@1.2.13': resolution: {integrity: sha512-UKhFaZTeTcbKrb3iU82m17jVcPEAoqDkCN5MBqgPyZSwp/cQmib21crTS0DdH7T1B7wZRWEI89YQAOJMet5yhg==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [win32] + '@rolldown/binding-win32-x64-msvc@1.3.2': + resolution: {integrity: sha512-lEsKzKJqIUDZVCBhS4lkZuyQUhV1oRg5UHkI72qlOAqJn7qEXcoVdTridFS7PHNWdZknBl95EAF/4P1Xv0K1eQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [win32] + '@rolldown/pluginutils@1.0.1': resolution: {integrity: sha512-2j9bGt5Jh8hj+vPtgzPtl72j0yRxHAyumoo6TNfAjsLB04UtpSvPbPcDcBMxz7n+9CYB0c1GxQFxYRg2jimqGw==} @@ -848,36 +1135,16 @@ packages: '@standard-schema/spec@1.1.0': resolution: {integrity: sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==} - '@stripe/link-integrations-eve@0.3.4': - resolution: {integrity: sha512-gRiyeyicBqeBtZUadKLEXayQSM/y1p4rJAZkMlpDWWLAyHZJ9utLzOqL10yw8aa9f59aSfwKCXjmOXWE2E/L7g==} + '@stripe/link-integrations-eve@0.6.0': + resolution: {integrity: sha512-I9EKc8bJI8eaN0e/rDBXNJ5NiwAvEXbLYr4QP0MBBBWRCFVRaaMyDv8HtJjLdiWHFtrPpwu+tRO8UALoVkMTLg==} engines: {node: '>=24'} peerDependencies: - eve: '*' + eve: ^1.0.0-rc.5 - '@stripe/link-sdk@0.14.2': - resolution: {integrity: sha512-1Z7pw6DCc9dvqjxja0St1BPrAs6NRNcWUT64wJgoq20Xl61PuwxcgxBuXKnR9IBdkdmCenE+ByPdmBGdj9xnEQ==} + '@stripe/link-sdk@3.2.0': + resolution: {integrity: sha512-QmfvzDlPU87uWQyFKBgH+qJsZpfMBQmIawaXmWSqRQkVwhY5picMCU49EC1bf5bYkOiKtK77xHqUfYMsggoTYA==} engines: {node: '>=20'} - '@superradcompany/microsandbox-darwin-arm64@0.5.10': - resolution: {integrity: sha512-MGEV2SuLzSg3SiQJy2TXRE9SoWnmIUEhCAQno5y0hJ6dsMe7FbaRDFZtHpKiK4XExAstL5WhT1XF+JJWTEfSqg==} - engines: {node: '>= 22'} - cpu: [arm64] - os: [darwin] - - '@superradcompany/microsandbox-linux-arm64-gnu@0.5.10': - resolution: {integrity: sha512-4FYoAURc1qbNxIbBFK9shMQ9MxklgPRGEsY7tQog8beqvc3U91W34aZyOu90OTRJm0TNsdoLIg3lxKP4LKIJYQ==} - engines: {node: '>= 22'} - cpu: [arm64] - os: [linux] - libc: [glibc] - - '@superradcompany/microsandbox-linux-x64-gnu@0.5.10': - resolution: {integrity: sha512-M9FjBAQ36dxhfs5S62uVxCTNAZzxjUgprNh41dIG6H6eF+tAEHYMY1lUEf/w1rkQw8SUsVRrtS+wfVyIM4z9fA==} - engines: {node: '>= 22'} - cpu: [x64] - os: [linux] - libc: [glibc] - '@swc/helpers@0.5.23': resolution: {integrity: sha512-5lSsMOTXURePglDfvuAQUqkGek9Hg2kksOYay2m0+XR++b2NWYL/4sWyuvVBIs8oKnJaxkdi9whaL/sqN13afw==} @@ -1155,8 +1422,8 @@ packages: resolution: {integrity: sha512-kja8j7PjmncONqaTsB8fQ+wE2mSU2DJ9D4XKoJ5PFWIdRMa6SLSN1ff4mOr4jCbfRSsxR4keIiySJU0N9T5hIQ==} engines: {node: '>= 8.0.0'} - ai@7.0.137: - resolution: {integrity: sha512-JxrPkSQknxIN/gYqS3UQksExS6eWI23QMPBrKMGXeeFHhru6xFtF4MuMq17WaHD+lXPh0lne6H0BM2Z2VMW9EQ==} + ai@7.0.173: + resolution: {integrity: sha512-dLea37zT1h7cjkUsBprU4Rq35HJqhtHHaq1jTAXjHQoyfpeswpgCrhjZJWdWc10gjEAxmz114py7iLGQ3xIMxw==} engines: {node: '>=22'} peerDependencies: zod: 4.6.7 @@ -1305,10 +1572,6 @@ packages: concat-map@0.0.1: resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==} - consola@3.4.2: - resolution: {integrity: sha512-5IKcdX0nnYavi6G7TtOhwkYzyjfJlatbjMjuLSfE2kYT5pMDOilZ4OvMhi637CcDICTmz3wARPoyhqyX1Y+XvA==} - engines: {node: ^14.18.0 || >=16.10.0} - convert-source-map@2.0.0: resolution: {integrity: sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==} @@ -1316,8 +1579,8 @@ packages: resolution: {integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==} engines: {node: '>= 8'} - crossws@0.4.15: - resolution: {integrity: sha512-NsUOpDZosz7nyI+qEIl05yaiXOWaXH2oTeM+XBWtiSWZtb5rzcIsl1AST/HzM2jzUn76eFuyrkn83E6iSBRUvw==} + crossws@0.4.17: + resolution: {integrity: sha512-YG2kyfafNXKmu7e6k64yrj6whrw7m5sBIsOSXOlJ/72X3TQWRQuw8DhvXFDcBk8HF77PnTSygnm7xpYCTnFpow==} peerDependencies: srvx: '>=0.11.5' peerDependenciesMeta: @@ -1342,9 +1605,6 @@ packages: resolution: {integrity: sha512-BS8PfmtDGnrgYdOonGZQdLZslWIeCGFP9tpan0hi1Co2Zr2NKADsvGYA8XxuG/4UWgJ6Cjtv+YJnB6MM69QGlQ==} engines: {node: '>= 0.4'} - db0@0.4.1: - resolution: {integrity: sha512-6RBY/bSn42UrqATwsiULj2uYFyEykB3XeA/NLIVQeHNXlYV6D4Idxx3/aa6k5Y45Dwzx7sygeLotnqHWSeURYA==} - debug@3.2.7: resolution: {integrity: sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==} peerDependencies: @@ -1395,8 +1655,8 @@ packages: emoji-regex@9.2.2: resolution: {integrity: sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==} - env-runner@0.2.3: - resolution: {integrity: sha512-S8EFBKyznRwPVwayK187cYjvnpgC92xy+q0BIF++V965pfjMVVRbQ/HoTYGA/1EHmZ7E68k6Heq+4WnvVhOL5w==} + env-runner@0.3.11: + resolution: {integrity: sha512-jKG29hxqGrL9ktunIwmt9aHbP3n995DGUY1KyXS7iGYFoD/yDdpc2CjJt6remFI3x2H1JOmBBMo0KXxjEQ2G6g==} hasBin: true es-abstract-get@1.0.0: @@ -1575,19 +1835,32 @@ packages: resolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==} engines: {node: '>=0.10.0'} - eve@0.79.1: - resolution: {integrity: sha512-7hbpSi6mCqsrq3W7C9Y8Z2vTny01hunaNilEFj2qy/DkotztaW+KD4BNwut3oz2iSQ8yryyl46XhOspQ6PmZOg==} + eve@1.2.0: + resolution: {integrity: sha512-l051+5qaf5pv/FS5JxZMQRAIhA5YdBmDwyPcucbJKyjgYQJMphpzfX95Xb0MmYDI0oSYUSOdtTOxpCgBq4A9gQ==} engines: {node: '>=24'} hasBin: true peerDependencies: + '@linqapp/sdk': ^0.47.1 + '@nuxt/kit': ^4.0.0 + '@nuxt/schema': ^4.0.0 '@opentelemetry/api': ^1.0.0 - ai: ^7.0.137 + ai: ^7.0.172 braintrust: ^3.0.0 - chat: ^4.41.0 - dd-trace: ^6.13.0 - just-bash: ^3.1.0 - microsandbox: ^0.5.0 + chat: ^4.42.0 + dd-trace: ^6.20.1 + just-bash: ^3.6.0 + next: ^16.0.0 + react: ^19.0.0 + svelte: ^5.0.0 + vite: ^8.3.3 + vue: ^3.5.0 peerDependenciesMeta: + '@linqapp/sdk': + optional: true + '@nuxt/kit': + optional: true + '@nuxt/schema': + optional: true '@opentelemetry/api': optional: true braintrust: @@ -1598,7 +1871,15 @@ packages: optional: true just-bash: optional: true - microsandbox: + next: + optional: true + react: + optional: true + svelte: + optional: true + vite: + optional: true + vue: optional: true event-target-shim@5.0.1: @@ -1617,9 +1898,6 @@ packages: resolution: {integrity: sha512-KfYbmpRm0VbLjEvVa9yGwCi9GI34xvi7A/HXYWQO65CSD2u3MczUJSuwXKFIxlGsgBQizV9q5J9NHj4VG0n+pA==} engines: {node: '>=12.0.0'} - exsolve@1.1.3: - resolution: {integrity: sha512-kuzL9zherLQoqDeQaS55AiiIg1kb4KYXaSusTtgZTPlvKP2gGCI82LNmBNh5RjDVUXIcmgx+/Mx7vPwRzBbhJA==} - fast-deep-equal@3.1.3: resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==} @@ -1744,8 +2022,8 @@ packages: resolution: {integrity: sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==} engines: {node: '>= 0.4'} - h3@2.0.2: - resolution: {integrity: sha512-+/zvHSNldYpNURuUUG+y1KzdASUhNnSd1VpqxYFVY40ov3YzuBnCETaUQaT+QbKkoxhh9LRa6AEQdB14LALwdA==} + h3@2.0.8: + resolution: {integrity: sha512-ENuKlF9kC6E6PrvY1PUyE0qkrnnPTIt2/v48uyEEfTVfgoiqBCE0uwwf++2XrWwT1gxjQBDLQ8PAsmZVniKvTw==} engines: {node: '>=20.19.0'} hasBin: true peerDependencies: @@ -1790,12 +2068,6 @@ packages: hermes-parser@0.25.1: resolution: {integrity: sha512-6pEjquH3rqaI6cYAXYPcz9MS4rY6R4ngRgrgfDshRptUZIc3lw0MCIJIGDj9++mfySOuPTHB4nrSW99BCvOPIA==} - hookable@6.1.2: - resolution: {integrity: sha512-+abwxtiEA52GCVIsQqut3S/uKTbUwYIp4Pe/vv+6py5XiXBCqMZHg6pA6Y5qhgLSEys0/cYuPbO0z1QFj5ZCmg==} - - httpxy@0.5.5: - resolution: {integrity: sha512-uDjmnPyp1q4Sgzf3w+J/Fc6UqcCEj0x4Wjp7OqK5dGhNeDgpyrAmnS6ey8QWrX3SWDon2DMKf9sBa5X9+CVyMA==} - humanize-ms@1.2.1: resolution: {integrity: sha512-Fl70vYtsAFb/C06PTS9dZBo7ihau+Tu/DNCk/OyHhea07S+aeMWpFFkUaXRa8fI+ScZbEI8dfSxwY7gxZ9SAVQ==} @@ -2093,11 +2365,6 @@ packages: resolution: {integrity: sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==} engines: {node: '>=8.6'} - microsandbox@0.5.10: - resolution: {integrity: sha512-0NVFu8DohPq/hrG76CJ5x2x8wckNQq8KSN/VXxyVLns8WfDyBzfSSYXHUSV2evjdRB3dkA9FUJjnGujb2XRD1Q==} - engines: {node: '>= 22'} - hasBin: true - mime-db@1.52.0: resolution: {integrity: sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==} engines: {node: '>= 0.6'} @@ -2153,12 +2420,9 @@ packages: sass: optional: true - nf3@0.3.24: - resolution: {integrity: sha512-HxLK4bo+5jNsEETZp4w3tJblHOA9MCBY14IN9nZJJV8JDxt9yNIYxuBuLMjTAR5GFa3HL61+8VQDUrXv3/C8fw==} - - nitro@3.0.260903-beta: - resolution: {integrity: sha512-54gANPi62O8rfMvepiJUVuIzEIinYfpeHbebywlLxvVTgIYXDwSvpaU9Id+0sJOBjBx0wC1/CVYXJkH7SY+l0g==} - engines: {node: ^20.19.0 || >=22.12.0} + nitro@3.0.261103-rc: + resolution: {integrity: sha512-tLD7r5fWCtwnQEE4ZkckLUnx1wkWDaLY48dD+BCJtcQ+srSWAUpxJEK3YfTsgN3v+e4UgBYRzuR7zV7Sqns/zA==} + engines: {node: '>=22.22.0'} hasBin: true node-domexception@1.0.0: @@ -2219,8 +2483,8 @@ packages: resolution: {integrity: sha512-XrsrhT5sybtKI6wakr2SPOlGZWWYbUXZ7a0jT8/QOeAPau+1X/bSegNe5YR75oJmEZQbKningirmGOEJCIk61Q==} engines: {node: '>=12.20.0'} - ocache@0.3.0: - resolution: {integrity: sha512-RS/9P0zeBb0gDJmadGERLH8lZNXK7xbufTDhclkXGvFGTsj0G4M5/cLk+mizcERH29mLXNnocfB5wjcK70wGJg==} + ocache@0.3.2: + resolution: {integrity: sha512-wu82jmgyoORtWMBZy6PvyJ8dBhtaOOhCwfRnSKBRbnSLht/RqNUs5WUzOxw5/IikJLMC9e+s1ReReZm4XbrNoQ==} optionator@0.9.4: resolution: {integrity: sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==} @@ -2393,8 +2657,10 @@ packages: engines: {node: ^20.19.0 || >=22.12.0} hasBin: true - rou3@0.9.2: - resolution: {integrity: sha512-3SOzvaAg8rkHrXtRjpCvCvbyO5to9oOO27Z/XqHEYXfMRVSw/qMIVdmaOk9W2lcRLtR6dlqTjo9hDeJk70QBYQ==} + rolldown@1.3.2: + resolution: {integrity: sha512-EFHqbVkXiYZA6akmYm2bvJhNbEGdUwAResRhYwl/BO8QhB5KxsG+t3RVHJSIOy5jBEb0XCACvrIGnnl6Z8sMGA==} + engines: {node: ^20.19.0 || >=22.12.0} + hasBin: true rou3@1.0.0: resolution: {integrity: sha512-ySeaQkSrua+ut9g+65I7FHqOFBaY8tV0FmccXItoq0q21se32Q3u4YiW7/RqXSosWgYJaaKwRHXy3BST9PeCNQ==} @@ -2483,8 +2749,8 @@ packages: resolution: {integrity: sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==} engines: {node: '>= 10.x'} - srvx@1.0.5: - resolution: {integrity: sha512-KvSKRpgPG/oaq3cyT614OQ2bAa7DynuGamivCZeoZzIUULOdbQz6wUtnnVuC4+DCx2Zglzo8v5gBYmWIWYhDxA==} + srvx@1.0.8: + resolution: {integrity: sha512-ngFS/J6St4PJfHRHGjr78xkPPtbyXtdMOLNE4x/XZunEK3OhV7aGUWMHf9WTUEy6wm1U0W4okkd82ZFFWRVQTw==} engines: {node: '>=20.16.0'} hasBin: true @@ -2636,19 +2902,13 @@ packages: resolution: {integrity: sha512-03KrMbjIFDWQR5RNPrSw3bd1r12JpyFQl9/yxjUbJtqkjmllqC5lFjZh6ujeuJCKr8EOQvRW872Oy/az+nLYxg==} engines: {node: '>=20.18.1'} - undici@8.12.2: - resolution: {integrity: sha512-XtuDWVdqTLr3NAxm2ly9/hU6kUsJOgGh1RASzMBbsw6aWCOaQzHdW+QQDfdERjfJ2V5vL5pRPa4RetO9UfivDg==} + undici@8.12.4: + resolution: {integrity: sha512-8Mx+uNKKER2bA4AdtedkqRbwUCIJFr2nJckXRe5yrDqzePqwLP7VNcctN8/XdmDSbF7mS+jJKIszlL+vbam1VA==} engines: {node: '>=22.19.0'} - unenv@2.0.0-rc.24: - resolution: {integrity: sha512-i7qRCmY42zmCwnYlh9H2SvLEypEFGye5iRmEMKjcGi7zk9UquigRjFtTLz0TYqr0ZGLZhaMHl/foy1bZR+Cwlw==} - unrs-resolver@1.12.2: resolution: {integrity: sha512-dmlRxBJJayXjqTwC+JtF1HhJmgf3ftQ3YejFcZrf4+KKtJv0qDsK1pjqaaVjG7wJ5NJ6UVP1OqRMQ71Z4C3rxQ==} - unstorage@2.0.0-alpha.11: - resolution: {integrity: sha512-4rDO/NjgnkbVvWAPpxugX7YI/xVpC74NLrmAbH6I0D4hcSVq/1m5q2pSfQjP/ABs+7EsRtP/ZjyYMD9bEBgeTw==} - update-browserslist-db@1.3.4: resolution: {integrity: sha512-t8wonIOdQyOjtPd2VktlBu6QjTVTks6v8bSi7kd0r2Vll8TK1JYDZtRRdbmCHOAMphkZgrzK+L+vXK4pyZ8t4A==} hasBin: true @@ -2838,10 +3098,10 @@ snapshots: dependencies: '@1password/sdk-core': 0.5.0 - '@ai-sdk/gateway@4.0.110(zod@4.6.7)': + '@ai-sdk/gateway@4.0.146(zod@4.6.7)': dependencies: - '@ai-sdk/provider': 4.0.26 - '@ai-sdk/provider-utils': 5.0.58(zod@4.6.7) + '@ai-sdk/provider': 4.0.38 + '@ai-sdk/provider-utils': 5.0.81(zod@4.6.7) '@vercel/oidc': 3.2.0 zod: 4.6.7 @@ -2860,16 +3120,15 @@ snapshots: undici: 7.30.1 zod: 4.6.7 - '@ai-sdk/provider-utils@5.0.58(zod@4.6.7)': + '@ai-sdk/provider-utils@5.0.81(zod@4.6.7)': dependencies: - '@ai-sdk/provider': 4.0.26 + '@ai-sdk/provider': 4.0.38 '@standard-schema/spec': 1.1.0 '@workflow/serde': 4.1.0 eventsource-parser: 3.1.1 - undici: 7.30.1 zod: 4.6.7 - '@ai-sdk/provider@4.0.26': + '@ai-sdk/provider@4.0.38': dependencies: json-schema: 0.4.0 @@ -2885,20 +3144,20 @@ snapshots: '@babel/compat-data@7.29.7': {} - '@babel/core@7.29.7': + '@babel/core@7.29.7(supports-color@7.2.0)': dependencies: '@babel/code-frame': 7.29.7 '@babel/generator': 7.29.8 '@babel/helper-compilation-targets': 7.29.7 - '@babel/helper-module-transforms': 7.29.7(@babel/core@7.29.7) + '@babel/helper-module-transforms': 7.29.7(@babel/core@7.29.7(supports-color@7.2.0))(supports-color@7.2.0) '@babel/helpers': 7.29.10 '@babel/parser': 7.29.9 '@babel/template': 7.29.7 - '@babel/traverse': 7.29.10 + '@babel/traverse': 7.29.10(supports-color@7.2.0) '@babel/types': 7.29.8 '@jridgewell/remapping': 2.3.5 convert-source-map: 2.0.0 - debug: 4.4.3 + debug: 4.4.3(supports-color@7.2.0) gensync: 1.0.0-beta.2 json5: 2.2.3 semver: 6.3.1 @@ -2923,19 +3182,19 @@ snapshots: '@babel/helper-globals@7.29.7': {} - '@babel/helper-module-imports@7.29.7': + '@babel/helper-module-imports@7.29.7(supports-color@7.2.0)': dependencies: - '@babel/traverse': 7.29.10 + '@babel/traverse': 7.29.10(supports-color@7.2.0) '@babel/types': 7.29.8 transitivePeerDependencies: - supports-color - '@babel/helper-module-transforms@7.29.7(@babel/core@7.29.7)': + '@babel/helper-module-transforms@7.29.7(@babel/core@7.29.7(supports-color@7.2.0))(supports-color@7.2.0)': dependencies: - '@babel/core': 7.29.7 - '@babel/helper-module-imports': 7.29.7 + '@babel/core': 7.29.7(supports-color@7.2.0) + '@babel/helper-module-imports': 7.29.7(supports-color@7.2.0) '@babel/helper-validator-identifier': 7.29.7 - '@babel/traverse': 7.29.10 + '@babel/traverse': 7.29.10(supports-color@7.2.0) transitivePeerDependencies: - supports-color @@ -2960,7 +3219,7 @@ snapshots: '@babel/parser': 7.29.9 '@babel/types': 7.29.8 - '@babel/traverse@7.29.10': + '@babel/traverse@7.29.10(supports-color@7.2.0)': dependencies: '@babel/code-frame': 7.29.7 '@babel/generator': 7.29.8 @@ -2968,7 +3227,7 @@ snapshots: '@babel/parser': 7.29.9 '@babel/template': 7.29.7 '@babel/types': 7.29.8 - debug: 4.4.3 + debug: 4.4.3(supports-color@7.2.0) transitivePeerDependencies: - supports-color @@ -3032,6 +3291,12 @@ snapshots: tslib: 2.8.1 optional: true + '@emnapi/core@2.0.0-beta.2': + dependencies: + '@emnapi/wasi-threads': 2.2.0 + tslib: 2.8.1 + optional: true + '@emnapi/runtime@1.10.0': dependencies: tslib: 2.8.1 @@ -3042,11 +3307,21 @@ snapshots: tslib: 2.8.1 optional: true + '@emnapi/runtime@2.0.0-beta.2': + dependencies: + tslib: 2.8.1 + optional: true + '@emnapi/wasi-threads@1.2.1': dependencies: tslib: 2.8.1 optional: true + '@emnapi/wasi-threads@2.2.0': + dependencies: + tslib: 2.8.1 + optional: true + '@esbuild/aix-ppc64@0.28.2': optional: true @@ -3125,22 +3400,22 @@ snapshots: '@esbuild/win32-x64@0.28.2': optional: true - '@eslint-community/eslint-utils@4.10.1(eslint@9.39.5)': + '@eslint-community/eslint-utils@4.10.1(eslint@9.39.5(supports-color@7.2.0))': dependencies: - eslint: 9.39.5 + eslint: 9.39.5(supports-color@7.2.0) eslint-visitor-keys: 3.4.3 - '@eslint-community/eslint-utils@4.9.1(eslint@9.39.5)': + '@eslint-community/eslint-utils@4.9.1(eslint@9.39.5(supports-color@7.2.0))': dependencies: - eslint: 9.39.5 + eslint: 9.39.5(supports-color@7.2.0) eslint-visitor-keys: 3.4.3 '@eslint-community/regexpp@4.12.2': {} - '@eslint/config-array@0.21.2': + '@eslint/config-array@0.21.2(supports-color@7.2.0)': dependencies: '@eslint/object-schema': 2.1.7 - debug: 4.4.3 + debug: 4.4.3(supports-color@7.2.0) minimatch: 3.1.5 transitivePeerDependencies: - supports-color @@ -3153,10 +3428,10 @@ snapshots: dependencies: '@types/json-schema': 7.0.15 - '@eslint/eslintrc@3.3.7': + '@eslint/eslintrc@3.3.7(supports-color@7.2.0)': dependencies: ajv: 6.15.0 - debug: 4.4.3 + debug: 4.4.3(supports-color@7.2.0) espree: 10.4.0 globals: 14.0.0 ignore: 5.3.2 @@ -3339,11 +3614,18 @@ snapshots: '@tybys/wasm-util': 0.10.4 optional: true + '@napi-rs/wasm-runtime@1.2.6(@emnapi/core@2.0.0-beta.2)(@emnapi/runtime@2.0.0-beta.2)': + dependencies: + '@emnapi/core': 2.0.0-beta.2 + '@emnapi/runtime': 2.0.0-beta.2 + '@tybys/wasm-util': 0.10.4 + optional: true + '@next/env@16.4.3': {} - '@next/eslint-plugin-next@16.4.3(eslint@9.39.5)': + '@next/eslint-plugin-next@16.4.3(eslint@9.39.5(supports-color@7.2.0))': dependencies: - '@eslint-community/eslint-utils': 4.9.1(eslint@9.39.5) + '@eslint-community/eslint-utils': 4.9.1(eslint@9.39.5(supports-color@7.2.0)) fast-glob: 3.3.1 transitivePeerDependencies: - eslint @@ -3397,51 +3679,105 @@ snapshots: '@oxc-project/types@0.153.0': {} + '@oxc-project/types@0.158.0': {} + '@rolldown/binding-android-arm-eabi@1.2.13': optional: true + '@rolldown/binding-android-arm-eabi@1.3.2': + optional: true + '@rolldown/binding-android-arm64@1.2.13': optional: true + '@rolldown/binding-android-arm64@1.3.2': + optional: true + '@rolldown/binding-darwin-arm64@1.2.13': optional: true + '@rolldown/binding-darwin-arm64@1.3.2': + optional: true + '@rolldown/binding-darwin-x64@1.2.13': optional: true + '@rolldown/binding-darwin-x64@1.3.2': + optional: true + '@rolldown/binding-freebsd-x64@1.2.13': optional: true + '@rolldown/binding-freebsd-x64@1.3.2': + optional: true + '@rolldown/binding-linux-arm-gnueabihf@1.2.13': optional: true + '@rolldown/binding-linux-arm-gnueabihf@1.3.2': + optional: true + '@rolldown/binding-linux-arm64-gnu@1.2.13': optional: true + '@rolldown/binding-linux-arm64-gnu@1.3.2': + optional: true + '@rolldown/binding-linux-arm64-musl@1.2.13': optional: true + '@rolldown/binding-linux-arm64-musl@1.3.2': + optional: true + '@rolldown/binding-linux-ppc64-gnu@1.2.13': optional: true + '@rolldown/binding-linux-ppc64-gnu@1.3.2': + optional: true + '@rolldown/binding-linux-s390x-gnu@1.2.13': optional: true + '@rolldown/binding-linux-s390x-gnu@1.3.2': + optional: true + '@rolldown/binding-linux-x64-gnu@1.2.13': optional: true + '@rolldown/binding-linux-x64-gnu@1.3.2': + optional: true + '@rolldown/binding-linux-x64-musl@1.2.13': optional: true + '@rolldown/binding-linux-x64-musl@1.3.2': + optional: true + '@rolldown/binding-openharmony-arm64@1.2.13': optional: true + '@rolldown/binding-openharmony-arm64@1.3.2': + optional: true + + '@rolldown/binding-wasm32-wasi@1.3.2': + dependencies: + '@emnapi/core': 2.0.0-beta.2 + '@emnapi/runtime': 2.0.0-beta.2 + '@napi-rs/wasm-runtime': 1.2.6(@emnapi/core@2.0.0-beta.2)(@emnapi/runtime@2.0.0-beta.2) + optional: true + '@rolldown/binding-win32-arm64-msvc@1.2.13': optional: true + '@rolldown/binding-win32-arm64-msvc@1.3.2': + optional: true + '@rolldown/binding-win32-x64-msvc@1.2.13': optional: true + '@rolldown/binding-win32-x64-msvc@1.3.2': + optional: true + '@rolldown/pluginutils@1.0.1': {} '@rtsao/scc@1.1.0': {} @@ -3450,25 +3786,16 @@ snapshots: '@standard-schema/spec@1.1.0': {} - '@stripe/link-integrations-eve@0.3.4(eve@0.79.1(@opentelemetry/api@1.9.1)(ai@7.0.137(zod@4.6.7))(microsandbox@0.5.10))': + '@stripe/link-integrations-eve@0.6.0(eve@1.2.0(@opentelemetry/api@1.9.1)(ai@7.0.173(zod@4.6.7))(next@16.4.3(@babel/core@7.29.7(supports-color@7.2.0))(@opentelemetry/api@1.9.1)(@types/node@24.19.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0))(react@19.3.0)(vite@8.3.3(@types/node@24.19.0)(esbuild@0.28.2)(yaml@2.9.1)))': dependencies: - '@stripe/link-sdk': 0.14.2 - eve: 0.79.1(@opentelemetry/api@1.9.1)(ai@7.0.137(zod@4.6.7))(microsandbox@0.5.10) + '@stripe/link-sdk': 3.2.0 + eve: 1.2.0(@opentelemetry/api@1.9.1)(ai@7.0.173(zod@4.6.7))(next@16.4.3(@babel/core@7.29.7(supports-color@7.2.0))(@opentelemetry/api@1.9.1)(@types/node@24.19.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0))(react@19.3.0)(vite@8.3.3(@types/node@24.19.0)(esbuild@0.28.2)(yaml@2.9.1)) zod: 4.6.7 - '@stripe/link-sdk@0.14.2': + '@stripe/link-sdk@3.2.0': dependencies: zod: 4.6.7 - '@superradcompany/microsandbox-darwin-arm64@0.5.10': - optional: true - - '@superradcompany/microsandbox-linux-arm64-gnu@0.5.10': - optional: true - - '@superradcompany/microsandbox-linux-x64-gnu@0.5.10': - optional: true - '@swc/helpers@0.5.23': dependencies: tslib: 2.8.1 @@ -3520,15 +3847,15 @@ snapshots: dependencies: csstype: 3.2.3 - '@typescript-eslint/eslint-plugin@8.71.1(@typescript-eslint/parser@8.71.1(eslint@9.39.5)(typescript@6.0.3))(eslint@9.39.5)(typescript@6.0.3)': + '@typescript-eslint/eslint-plugin@8.71.1(@typescript-eslint/parser@8.71.1(eslint@9.39.5(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3))(eslint@9.39.5(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3)': dependencies: '@eslint-community/regexpp': 4.12.2 - '@typescript-eslint/parser': 8.71.1(eslint@9.39.5)(typescript@6.0.3) + '@typescript-eslint/parser': 8.71.1(eslint@9.39.5(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3) '@typescript-eslint/scope-manager': 8.71.1 - '@typescript-eslint/type-utils': 8.71.1(eslint@9.39.5)(typescript@6.0.3) - '@typescript-eslint/utils': 8.71.1(eslint@9.39.5)(typescript@6.0.3) + '@typescript-eslint/type-utils': 8.71.1(eslint@9.39.5(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3) + '@typescript-eslint/utils': 8.71.1(eslint@9.39.5(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3) '@typescript-eslint/visitor-keys': 8.71.1 - eslint: 9.39.5 + eslint: 9.39.5(supports-color@7.2.0) ignore: 7.0.12 natural-compare: 1.4.0 ts-api-utils: 2.5.0(typescript@6.0.3) @@ -3536,23 +3863,23 @@ snapshots: transitivePeerDependencies: - supports-color - '@typescript-eslint/parser@8.71.1(eslint@9.39.5)(typescript@6.0.3)': + '@typescript-eslint/parser@8.71.1(eslint@9.39.5(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3)': dependencies: '@typescript-eslint/scope-manager': 8.71.1 '@typescript-eslint/types': 8.71.1 - '@typescript-eslint/typescript-estree': 8.71.1(typescript@6.0.3) + '@typescript-eslint/typescript-estree': 8.71.1(supports-color@7.2.0)(typescript@6.0.3) '@typescript-eslint/visitor-keys': 8.71.1 - debug: 4.4.3 - eslint: 9.39.5 + debug: 4.4.3(supports-color@7.2.0) + eslint: 9.39.5(supports-color@7.2.0) typescript: 6.0.3 transitivePeerDependencies: - supports-color - '@typescript-eslint/project-service@8.71.1(typescript@6.0.3)': + '@typescript-eslint/project-service@8.71.1(supports-color@7.2.0)(typescript@6.0.3)': dependencies: '@typescript-eslint/tsconfig-utils': 8.71.1(typescript@6.0.3) '@typescript-eslint/types': 8.71.1 - debug: 4.4.3 + debug: 4.4.3(supports-color@7.2.0) typescript: 6.0.3 transitivePeerDependencies: - supports-color @@ -3566,13 +3893,13 @@ snapshots: dependencies: typescript: 6.0.3 - '@typescript-eslint/type-utils@8.71.1(eslint@9.39.5)(typescript@6.0.3)': + '@typescript-eslint/type-utils@8.71.1(eslint@9.39.5(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3)': dependencies: '@typescript-eslint/types': 8.71.1 - '@typescript-eslint/typescript-estree': 8.71.1(typescript@6.0.3) - '@typescript-eslint/utils': 8.71.1(eslint@9.39.5)(typescript@6.0.3) - debug: 4.4.3 - eslint: 9.39.5 + '@typescript-eslint/typescript-estree': 8.71.1(supports-color@7.2.0)(typescript@6.0.3) + '@typescript-eslint/utils': 8.71.1(eslint@9.39.5(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3) + debug: 4.4.3(supports-color@7.2.0) + eslint: 9.39.5(supports-color@7.2.0) ts-api-utils: 2.5.0(typescript@6.0.3) typescript: 6.0.3 transitivePeerDependencies: @@ -3580,13 +3907,13 @@ snapshots: '@typescript-eslint/types@8.71.1': {} - '@typescript-eslint/typescript-estree@8.71.1(typescript@6.0.3)': + '@typescript-eslint/typescript-estree@8.71.1(supports-color@7.2.0)(typescript@6.0.3)': dependencies: - '@typescript-eslint/project-service': 8.71.1(typescript@6.0.3) + '@typescript-eslint/project-service': 8.71.1(supports-color@7.2.0)(typescript@6.0.3) '@typescript-eslint/tsconfig-utils': 8.71.1(typescript@6.0.3) '@typescript-eslint/types': 8.71.1 '@typescript-eslint/visitor-keys': 8.71.1 - debug: 4.4.3 + debug: 4.4.3(supports-color@7.2.0) minimatch: 10.2.6 semver: 7.8.5 tinyglobby: 0.2.17 @@ -3595,13 +3922,13 @@ snapshots: transitivePeerDependencies: - supports-color - '@typescript-eslint/utils@8.71.1(eslint@9.39.5)(typescript@6.0.3)': + '@typescript-eslint/utils@8.71.1(eslint@9.39.5(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3)': dependencies: - '@eslint-community/eslint-utils': 4.10.1(eslint@9.39.5) + '@eslint-community/eslint-utils': 4.10.1(eslint@9.39.5(supports-color@7.2.0)) '@typescript-eslint/scope-manager': 8.71.1 '@typescript-eslint/types': 8.71.1 - '@typescript-eslint/typescript-estree': 8.71.1(typescript@6.0.3) - eslint: 9.39.5 + '@typescript-eslint/typescript-estree': 8.71.1(supports-color@7.2.0)(typescript@6.0.3) + eslint: 9.39.5(supports-color@7.2.0) typescript: 6.0.3 transitivePeerDependencies: - supports-color @@ -3740,11 +4067,11 @@ snapshots: dependencies: humanize-ms: 1.2.1 - ai@7.0.137(zod@4.6.7): + ai@7.0.173(zod@4.6.7): dependencies: - '@ai-sdk/gateway': 4.0.110(zod@4.6.7) - '@ai-sdk/provider': 4.0.26 - '@ai-sdk/provider-utils': 5.0.58(zod@4.6.7) + '@ai-sdk/gateway': 4.0.146(zod@4.6.7) + '@ai-sdk/provider': 4.0.38 + '@ai-sdk/provider-utils': 5.0.81(zod@4.6.7) zod: 4.6.7 ajv@6.15.0: @@ -3914,8 +4241,6 @@ snapshots: concat-map@0.0.1: {} - consola@3.4.2: {} - convert-source-map@2.0.0: {} cross-spawn@7.0.6: @@ -3924,9 +4249,9 @@ snapshots: shebang-command: 2.0.0 which: 2.0.2 - crossws@0.4.15(srvx@1.0.5): + crossws@0.4.17(srvx@1.0.8): optionalDependencies: - srvx: 1.0.5 + srvx: 1.0.8 csstype@3.2.3: {} @@ -3950,15 +4275,17 @@ snapshots: es-errors: 1.3.0 is-data-view: 1.0.2 - db0@0.4.1: {} - - debug@3.2.7: + debug@3.2.7(supports-color@7.2.0): dependencies: ms: 2.1.3 + optionalDependencies: + supports-color: 7.2.0 - debug@4.4.3: + debug@4.4.3(supports-color@7.2.0): dependencies: ms: 2.1.3 + optionalDependencies: + supports-color: 7.2.0 deep-is@0.1.4: {} @@ -3992,12 +4319,10 @@ snapshots: emoji-regex@9.2.2: {} - env-runner@0.2.3: + env-runner@0.3.11: dependencies: - crossws: 0.4.15(srvx@1.0.5) - exsolve: 1.1.3 - httpxy: 0.5.5 - srvx: 1.0.5 + crossws: 0.4.17(srvx@1.0.8) + srvx: 1.0.8 es-abstract-get@1.0.0: dependencies: @@ -4146,18 +4471,18 @@ snapshots: escape-string-regexp@4.0.0: {} - eslint-config-next@16.4.3(@typescript-eslint/parser@8.71.1(eslint@9.39.5)(typescript@6.0.3))(eslint@9.39.5)(typescript@6.0.3): + eslint-config-next@16.4.3(@typescript-eslint/parser@8.71.1(eslint@9.39.5(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3))(eslint@9.39.5(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3): dependencies: - '@next/eslint-plugin-next': 16.4.3(eslint@9.39.5) - eslint: 9.39.5 - eslint-import-resolver-node: 0.3.10 - eslint-import-resolver-typescript: 3.10.1(eslint-plugin-import@2.32.0(@typescript-eslint/parser@8.71.1(eslint@9.39.5)(typescript@6.0.3))(eslint@9.39.5))(eslint@9.39.5) - eslint-plugin-import: 2.32.0(@typescript-eslint/parser@8.71.1(eslint@9.39.5)(typescript@6.0.3))(eslint-import-resolver-typescript@3.10.1(eslint-plugin-import@2.32.0(@typescript-eslint/parser@8.71.1(eslint@9.39.5)(typescript@6.0.3))(eslint@9.39.5))(eslint@9.39.5))(eslint@9.39.5) - eslint-plugin-jsx-a11y: 6.10.2(eslint@9.39.5) - eslint-plugin-react: 7.37.5(eslint@9.39.5) - eslint-plugin-react-hooks: 7.1.1(eslint@9.39.5) + '@next/eslint-plugin-next': 16.4.3(eslint@9.39.5(supports-color@7.2.0)) + eslint: 9.39.5(supports-color@7.2.0) + eslint-import-resolver-node: 0.3.10(supports-color@7.2.0) + eslint-import-resolver-typescript: 3.10.1(eslint-plugin-import@2.32.0)(eslint@9.39.5(supports-color@7.2.0))(supports-color@7.2.0) + eslint-plugin-import: 2.32.0(@typescript-eslint/parser@8.71.1(eslint@9.39.5(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3))(eslint-import-resolver-typescript@3.10.1)(eslint@9.39.5(supports-color@7.2.0))(supports-color@7.2.0) + eslint-plugin-jsx-a11y: 6.10.2(eslint@9.39.5(supports-color@7.2.0)) + eslint-plugin-react: 7.37.5(eslint@9.39.5(supports-color@7.2.0)) + eslint-plugin-react-hooks: 7.1.1(eslint@9.39.5(supports-color@7.2.0))(supports-color@7.2.0) globals: 16.4.0 - typescript-eslint: 8.71.1(eslint@9.39.5)(typescript@6.0.3) + typescript-eslint: 8.71.1(eslint@9.39.5(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3) optionalDependencies: typescript: 6.0.3 transitivePeerDependencies: @@ -4166,52 +4491,52 @@ snapshots: - eslint-plugin-import-x - supports-color - eslint-import-resolver-node@0.3.10: + eslint-import-resolver-node@0.3.10(supports-color@7.2.0): dependencies: - debug: 3.2.7 + debug: 3.2.7(supports-color@7.2.0) is-core-module: 2.17.0 resolve: 2.0.0-next.7 transitivePeerDependencies: - supports-color - eslint-import-resolver-typescript@3.10.1(eslint-plugin-import@2.32.0(@typescript-eslint/parser@8.71.1(eslint@9.39.5)(typescript@6.0.3))(eslint@9.39.5))(eslint@9.39.5): + eslint-import-resolver-typescript@3.10.1(eslint-plugin-import@2.32.0)(eslint@9.39.5(supports-color@7.2.0))(supports-color@7.2.0): dependencies: '@nolyfill/is-core-module': 1.0.39 - debug: 4.4.3 - eslint: 9.39.5 + debug: 4.4.3(supports-color@7.2.0) + eslint: 9.39.5(supports-color@7.2.0) get-tsconfig: 4.14.3 is-bun-module: 2.0.0 stable-hash: 0.0.5 tinyglobby: 0.2.17 unrs-resolver: 1.12.2 optionalDependencies: - eslint-plugin-import: 2.32.0(@typescript-eslint/parser@8.71.1(eslint@9.39.5)(typescript@6.0.3))(eslint-import-resolver-typescript@3.10.1(eslint-plugin-import@2.32.0(@typescript-eslint/parser@8.71.1(eslint@9.39.5)(typescript@6.0.3))(eslint@9.39.5))(eslint@9.39.5))(eslint@9.39.5) + eslint-plugin-import: 2.32.0(@typescript-eslint/parser@8.71.1(eslint@9.39.5(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3))(eslint-import-resolver-typescript@3.10.1)(eslint@9.39.5(supports-color@7.2.0))(supports-color@7.2.0) transitivePeerDependencies: - supports-color - eslint-module-utils@2.14.0(@typescript-eslint/parser@8.71.1(eslint@9.39.5)(typescript@6.0.3))(eslint-import-resolver-node@0.3.10)(eslint-import-resolver-typescript@3.10.1(eslint-plugin-import@2.32.0(@typescript-eslint/parser@8.71.1(eslint@9.39.5)(typescript@6.0.3))(eslint@9.39.5))(eslint@9.39.5))(eslint@9.39.5): + eslint-module-utils@2.14.0(@typescript-eslint/parser@8.71.1(eslint@9.39.5(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3))(eslint-import-resolver-node@0.3.10(supports-color@7.2.0))(eslint-import-resolver-typescript@3.10.1)(eslint@9.39.5(supports-color@7.2.0))(supports-color@7.2.0): dependencies: - debug: 3.2.7 + debug: 3.2.7(supports-color@7.2.0) optionalDependencies: - '@typescript-eslint/parser': 8.71.1(eslint@9.39.5)(typescript@6.0.3) - eslint: 9.39.5 - eslint-import-resolver-node: 0.3.10 - eslint-import-resolver-typescript: 3.10.1(eslint-plugin-import@2.32.0(@typescript-eslint/parser@8.71.1(eslint@9.39.5)(typescript@6.0.3))(eslint@9.39.5))(eslint@9.39.5) + '@typescript-eslint/parser': 8.71.1(eslint@9.39.5(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3) + eslint: 9.39.5(supports-color@7.2.0) + eslint-import-resolver-node: 0.3.10(supports-color@7.2.0) + eslint-import-resolver-typescript: 3.10.1(eslint-plugin-import@2.32.0)(eslint@9.39.5(supports-color@7.2.0))(supports-color@7.2.0) transitivePeerDependencies: - supports-color - eslint-plugin-import@2.32.0(@typescript-eslint/parser@8.71.1(eslint@9.39.5)(typescript@6.0.3))(eslint-import-resolver-typescript@3.10.1(eslint-plugin-import@2.32.0(@typescript-eslint/parser@8.71.1(eslint@9.39.5)(typescript@6.0.3))(eslint@9.39.5))(eslint@9.39.5))(eslint@9.39.5): + eslint-plugin-import@2.32.0(@typescript-eslint/parser@8.71.1(eslint@9.39.5(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3))(eslint-import-resolver-typescript@3.10.1)(eslint@9.39.5(supports-color@7.2.0))(supports-color@7.2.0): dependencies: '@rtsao/scc': 1.1.0 array-includes: 3.2.0 array.prototype.findlastindex: 1.2.6 array.prototype.flat: 1.3.3 array.prototype.flatmap: 1.3.3 - debug: 3.2.7 + debug: 3.2.7(supports-color@7.2.0) doctrine: 2.1.0 - eslint: 9.39.5 - eslint-import-resolver-node: 0.3.10 - eslint-module-utils: 2.14.0(@typescript-eslint/parser@8.71.1(eslint@9.39.5)(typescript@6.0.3))(eslint-import-resolver-node@0.3.10)(eslint-import-resolver-typescript@3.10.1(eslint-plugin-import@2.32.0(@typescript-eslint/parser@8.71.1(eslint@9.39.5)(typescript@6.0.3))(eslint@9.39.5))(eslint@9.39.5))(eslint@9.39.5) + eslint: 9.39.5(supports-color@7.2.0) + eslint-import-resolver-node: 0.3.10(supports-color@7.2.0) + eslint-module-utils: 2.14.0(@typescript-eslint/parser@8.71.1(eslint@9.39.5(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3))(eslint-import-resolver-node@0.3.10(supports-color@7.2.0))(eslint-import-resolver-typescript@3.10.1)(eslint@9.39.5(supports-color@7.2.0))(supports-color@7.2.0) hasown: 2.0.4 is-core-module: 2.17.0 is-glob: 4.0.3 @@ -4223,13 +4548,13 @@ snapshots: string.prototype.trimend: 1.0.10 tsconfig-paths: 3.15.0 optionalDependencies: - '@typescript-eslint/parser': 8.71.1(eslint@9.39.5)(typescript@6.0.3) + '@typescript-eslint/parser': 8.71.1(eslint@9.39.5(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3) transitivePeerDependencies: - eslint-import-resolver-typescript - eslint-import-resolver-webpack - supports-color - eslint-plugin-jsx-a11y@6.10.2(eslint@9.39.5): + eslint-plugin-jsx-a11y@6.10.2(eslint@9.39.5(supports-color@7.2.0)): dependencies: aria-query: 5.3.2 array-includes: 3.2.0 @@ -4239,7 +4564,7 @@ snapshots: axobject-query: 4.1.0 damerau-levenshtein: 1.0.8 emoji-regex: 9.2.2 - eslint: 9.39.5 + eslint: 9.39.5(supports-color@7.2.0) hasown: 2.0.4 jsx-ast-utils: 3.3.5 language-tags: 1.0.9 @@ -4248,18 +4573,18 @@ snapshots: safe-regex-test: 1.1.0 string.prototype.includes: 2.0.1 - eslint-plugin-react-hooks@7.1.1(eslint@9.39.5): + eslint-plugin-react-hooks@7.1.1(eslint@9.39.5(supports-color@7.2.0))(supports-color@7.2.0): dependencies: - '@babel/core': 7.29.7 + '@babel/core': 7.29.7(supports-color@7.2.0) '@babel/parser': 7.29.9 - eslint: 9.39.5 + eslint: 9.39.5(supports-color@7.2.0) hermes-parser: 0.25.1 zod: 4.6.7 zod-validation-error: 4.0.2(zod@4.6.7) transitivePeerDependencies: - supports-color - eslint-plugin-react@7.37.5(eslint@9.39.5): + eslint-plugin-react@7.37.5(eslint@9.39.5(supports-color@7.2.0)): dependencies: array-includes: 3.2.0 array.prototype.findlast: 1.2.5 @@ -4267,7 +4592,7 @@ snapshots: array.prototype.tosorted: 1.1.4 doctrine: 2.1.0 es-iterator-helpers: 1.4.0 - eslint: 9.39.5 + eslint: 9.39.5(supports-color@7.2.0) estraverse: 5.3.0 hasown: 2.0.4 jsx-ast-utils: 3.3.5 @@ -4292,14 +4617,14 @@ snapshots: eslint-visitor-keys@5.0.1: {} - eslint@9.39.5: + eslint@9.39.5(supports-color@7.2.0): dependencies: - '@eslint-community/eslint-utils': 4.10.1(eslint@9.39.5) + '@eslint-community/eslint-utils': 4.10.1(eslint@9.39.5(supports-color@7.2.0)) '@eslint-community/regexpp': 4.12.2 - '@eslint/config-array': 0.21.2 + '@eslint/config-array': 0.21.2(supports-color@7.2.0) '@eslint/config-helpers': 0.4.2 '@eslint/core': 0.17.0 - '@eslint/eslintrc': 3.3.7 + '@eslint/eslintrc': 3.3.7(supports-color@7.2.0) '@eslint/js': 9.39.5 '@eslint/plugin-kit': 0.4.1 '@humanfs/node': 0.16.8 @@ -4309,7 +4634,7 @@ snapshots: ajv: 6.15.0 chalk: 4.1.2 cross-spawn: 7.0.6 - debug: 4.4.3 + debug: 4.4.3(supports-color@7.2.0) escape-string-regexp: 4.0.0 eslint-scope: 8.4.0 eslint-visitor-keys: 4.2.1 @@ -4353,14 +4678,17 @@ snapshots: esutils@2.0.3: {} - eve@0.79.1(@opentelemetry/api@1.9.1)(ai@7.0.137(zod@4.6.7))(microsandbox@0.5.10): + eve@1.2.0(@opentelemetry/api@1.9.1)(ai@7.0.173(zod@4.6.7))(next@16.4.3(@babel/core@7.29.7(supports-color@7.2.0))(@opentelemetry/api@1.9.1)(@types/node@24.19.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0))(react@19.3.0)(vite@8.3.3(@types/node@24.19.0)(esbuild@0.28.2)(yaml@2.9.1)): dependencies: - ai: 7.0.137(zod@4.6.7) - nitro: 3.0.260903-beta - undici: 8.12.2 + ai: 7.0.173(zod@4.6.7) + nitro: 3.0.261103-rc + rolldown: 1.3.2 + undici: 8.12.4 optionalDependencies: '@opentelemetry/api': 1.9.1 - microsandbox: 0.5.10 + next: 16.4.3(@babel/core@7.29.7(supports-color@7.2.0))(@opentelemetry/api@1.9.1)(@types/node@24.19.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0) + react: 19.3.0 + vite: 8.3.3(@types/node@24.19.0)(esbuild@0.28.2)(yaml@2.9.1) event-target-shim@5.0.1: {} @@ -4372,8 +4700,6 @@ snapshots: expect-type@1.4.0: {} - exsolve@1.1.3: {} - fast-deep-equal@3.1.3: {} fast-glob@3.3.1: @@ -4507,13 +4833,13 @@ snapshots: gopd@1.2.0: {} - h3@2.0.2(crossws@0.4.15(srvx@1.0.5))(ocache@0.3.0): + h3@2.0.8(crossws@0.4.17(srvx@1.0.8))(ocache@0.3.2): dependencies: rou3: 1.0.0 - srvx: 1.0.5 + srvx: 1.0.8 optionalDependencies: - crossws: 0.4.15(srvx@1.0.5) - ocache: 0.3.0 + crossws: 0.4.17(srvx@1.0.8) + ocache: 0.3.2 has-bigints@1.1.0: {} @@ -4543,10 +4869,6 @@ snapshots: dependencies: hermes-estree: 0.25.1 - hookable@6.1.2: {} - - httpxy@0.5.5: {} - humanize-ms@1.2.1: dependencies: ms: 2.1.3 @@ -4819,13 +5141,6 @@ snapshots: braces: 3.0.3 picomatch: 2.3.2 - microsandbox@0.5.10: - optionalDependencies: - '@superradcompany/microsandbox-darwin-arm64': 0.5.10 - '@superradcompany/microsandbox-linux-arm64-gnu': 0.5.10 - '@superradcompany/microsandbox-linux-x64-gnu': 0.5.10 - optional: true - mime-db@1.52.0: {} mime-types@2.1.35: @@ -4850,7 +5165,7 @@ snapshots: natural-compare@1.4.0: {} - next@16.4.3(@babel/core@7.29.7)(@opentelemetry/api@1.9.1)(@types/node@24.19.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0): + next@16.4.3(@babel/core@7.29.7(supports-color@7.2.0))(@opentelemetry/api@1.9.1)(@types/node@24.19.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0): dependencies: '@next/env': 16.4.3 '@swc/helpers': 0.5.23 @@ -4859,7 +5174,7 @@ snapshots: postcss: 8.5.23 react: 19.3.0 react-dom: 19.3.0(react@19.3.0) - styled-jsx: 5.1.6(@babel/core@7.29.7)(react@19.3.0) + styled-jsx: 5.1.6(@babel/core@7.29.7(supports-color@7.2.0))(react@19.3.0) optionalDependencies: '@next/swc-darwin-arm64': 16.4.3 '@next/swc-darwin-x64': 16.4.3 @@ -4876,23 +5191,14 @@ snapshots: - '@types/node' - babel-plugin-macros - nf3@0.3.24: {} - - nitro@3.0.260903-beta: + nitro@3.0.261103-rc: dependencies: - consola: 3.4.2 - crossws: 0.4.15(srvx@1.0.5) - db0: 0.4.1 - env-runner: 0.2.3 - h3: 2.0.2(crossws@0.4.15(srvx@1.0.5))(ocache@0.3.0) - hookable: 6.1.2 - nf3: 0.3.24 - ocache: 0.3.0 - rolldown: 1.2.13 - rou3: 0.9.2 - srvx: 1.0.5 - unenv: 2.0.0-rc.24 - unstorage: 2.0.0-alpha.11 + crossws: 0.4.17(srvx@1.0.8) + env-runner: 0.3.11 + h3: 2.0.8(crossws@0.4.17(srvx@1.0.8))(ocache@0.3.2) + ocache: 0.3.2 + rou3: 1.0.0 + srvx: 1.0.8 node-domexception@1.0.0: {} @@ -4953,7 +5259,7 @@ snapshots: obug@2.2.1: {} - ocache@0.3.0: {} + ocache@0.3.2: {} optionator@0.9.4: dependencies: @@ -5137,7 +5443,27 @@ snapshots: '@rolldown/binding-win32-arm64-msvc': 1.2.13 '@rolldown/binding-win32-x64-msvc': 1.2.13 - rou3@0.9.2: {} + rolldown@1.3.2: + dependencies: + '@oxc-project/types': 0.158.0 + '@rolldown/pluginutils': 1.0.1 + optionalDependencies: + '@rolldown/binding-android-arm-eabi': 1.3.2 + '@rolldown/binding-android-arm64': 1.3.2 + '@rolldown/binding-darwin-arm64': 1.3.2 + '@rolldown/binding-darwin-x64': 1.3.2 + '@rolldown/binding-freebsd-x64': 1.3.2 + '@rolldown/binding-linux-arm-gnueabihf': 1.3.2 + '@rolldown/binding-linux-arm64-gnu': 1.3.2 + '@rolldown/binding-linux-arm64-musl': 1.3.2 + '@rolldown/binding-linux-ppc64-gnu': 1.3.2 + '@rolldown/binding-linux-s390x-gnu': 1.3.2 + '@rolldown/binding-linux-x64-gnu': 1.3.2 + '@rolldown/binding-linux-x64-musl': 1.3.2 + '@rolldown/binding-openharmony-arm64': 1.3.2 + '@rolldown/binding-wasm32-wasi': 1.3.2 + '@rolldown/binding-win32-arm64-msvc': 1.3.2 + '@rolldown/binding-win32-x64-msvc': 1.3.2 rou3@1.0.0: {} @@ -5266,7 +5592,7 @@ snapshots: split2@4.2.0: {} - srvx@1.0.5: {} + srvx@1.0.8: {} stable-hash@0.0.5: {} @@ -5339,12 +5665,12 @@ snapshots: strip-json-comments@3.1.1: {} - styled-jsx@5.1.6(@babel/core@7.29.7)(react@19.3.0): + styled-jsx@5.1.6(@babel/core@7.29.7(supports-color@7.2.0))(react@19.3.0): dependencies: client-only: 0.0.1 react: 19.3.0 optionalDependencies: - '@babel/core': 7.29.7 + '@babel/core': 7.29.7(supports-color@7.2.0) supports-color@7.2.0: dependencies: @@ -5418,13 +5744,13 @@ snapshots: possible-typed-array-names: 1.1.0 reflect.getprototypeof: 1.0.10 - typescript-eslint@8.71.1(eslint@9.39.5)(typescript@6.0.3): + typescript-eslint@8.71.1(eslint@9.39.5(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3): dependencies: - '@typescript-eslint/eslint-plugin': 8.71.1(@typescript-eslint/parser@8.71.1(eslint@9.39.5)(typescript@6.0.3))(eslint@9.39.5)(typescript@6.0.3) - '@typescript-eslint/parser': 8.71.1(eslint@9.39.5)(typescript@6.0.3) - '@typescript-eslint/typescript-estree': 8.71.1(typescript@6.0.3) - '@typescript-eslint/utils': 8.71.1(eslint@9.39.5)(typescript@6.0.3) - eslint: 9.39.5 + '@typescript-eslint/eslint-plugin': 8.71.1(@typescript-eslint/parser@8.71.1(eslint@9.39.5(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3))(eslint@9.39.5(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3) + '@typescript-eslint/parser': 8.71.1(eslint@9.39.5(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3) + '@typescript-eslint/typescript-estree': 8.71.1(supports-color@7.2.0)(typescript@6.0.3) + '@typescript-eslint/utils': 8.71.1(eslint@9.39.5(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3) + eslint: 9.39.5(supports-color@7.2.0) typescript: 6.0.3 transitivePeerDependencies: - supports-color @@ -5444,11 +5770,7 @@ snapshots: undici@7.30.1: {} - undici@8.12.2: {} - - unenv@2.0.0-rc.24: - dependencies: - pathe: 2.0.3 + undici@8.12.4: {} unrs-resolver@1.12.2: dependencies: @@ -5477,8 +5799,6 @@ snapshots: '@unrs/resolver-binding-win32-ia32-msvc': 1.12.2 '@unrs/resolver-binding-win32-x64-msvc': 1.12.2 - unstorage@2.0.0-alpha.11: {} - update-browserslist-db@1.3.4(browserslist@4.29.3): dependencies: browserslist: 4.29.3 diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml new file mode 100644 index 0000000..b6ad52f --- /dev/null +++ b/pnpm-workspace.yaml @@ -0,0 +1,10 @@ +minimumReleaseAgeExclude: + - eve@1.2.0 +overrides: + "undici@>=7 <7.30.1": "7.30.1" + "undici@>=8 <8.12.2": "8.12.2" + "zod@>=4 <4.6.6": "4.6.7" + "@datalayer/reactor@1.3.7>@toon-format/toon": "2.3.1" +allowBuilds: + esbuild: true + unrs-resolver: true diff --git a/scripts/test-parallel-research.mjs b/scripts/test-parallel-research.mjs index 77d1d08..7d2deb4 100644 --- a/scripts/test-parallel-research.mjs +++ b/scripts/test-parallel-research.mjs @@ -24,7 +24,7 @@ function assertNoSecrets(value) { const text = typeof value === "string" ? value : JSON.stringify(value); for (const [key, secret] of secrets) assert.ok(!text.includes(secret), `${key} must not appear in conversation data or rendered HTML.`); } -const client = new Client({ host: origin.origin, headers, redirect: "error" }); +const client = new Client({ baseUrl: origin.origin, headers, redirect: "error" }); const browserbase = new Browserbase({ apiKey: process.env.BROWSERBASE_API_KEY, timeout: 10_000, maxRetries: 0 }); const directory = path.resolve(process.env.BELL_TEST_ARTIFACT_DIR || ".bell/parallel-e2e", randomUUID()); await mkdir(directory, { recursive: true, mode: 0o700 }); @@ -86,7 +86,8 @@ async function workflow(index) { let session, stage = "session creation"; const remember = events => { for (const event of events) { - const state = event.data?.result?.output?.workbench?.browser; + if (event.type !== "call.settled") continue; + const state = event.data.output?.workbench?.browser; if (state?.sessionId) hostedIds.add(state.sessionId); if (state?.contextId && state.contextStatus === "draft") contextIds.add(state.contextId); } @@ -111,12 +112,15 @@ async function workflow(index) { remember(snapshot.events); assertNoSecrets(snapshot); assertNoSecrets(await page.content()); - const calls = snapshot.events.filter(event => event.type === "action.result").map(event => event.data?.result); + const requested = new Map(snapshot.events.filter(event => event.type === "call.requested") + .map(({ data }) => [data.callId, data.capability.name])); + const calls = snapshot.events.filter(event => event.type === "call.settled") + .map(({ data }) => ({ ...data, toolName: requested.get(data.callId) })); assert.equal(calls.length, 4, "Only the four requested tools may run."); for (const name of ["web_search", "web_fetch", "run", "snapshot"]) { const matching = calls.filter(call => call?.toolName === name); assert.equal(matching.length, 1, `${name} must run exactly once`); - assert.ok(!matching[0].isError, `${name} must succeed`); + assert.equal(matching[0].outcome, "completed", `${name} must succeed`); } const answer = await page.locator(".messages article.assistant").last().innerText(); for (const name of ["web_search", "web_fetch"]) { @@ -146,8 +150,10 @@ async function workflow(index) { await until(async () => { const events = (await session.snapshot({ signal: AbortSignal.timeout(10_000) })).events; remember(events); - assert.ok(!events.some(event => event.type === "session.failed"), "Conversation retirement failed"); - return events.some(event => event.type === "session.completed"); + const ended = events.find(event => event.type === "session.ended"); + if (!ended) return false; + assert.equal(ended.data.outcome, "completed", "Conversation retirement failed"); + return true; }, "New conversation must retire the previous Eve session"); for (const id of hostedIds) await until(async () => (await browserbase.sessions.retrieve(id)).status === "COMPLETED", "New conversation must release its hosted browser without test intervention"); @@ -162,7 +168,7 @@ async function workflow(index) { const failures = []; if (session) { try { remember((await session.snapshot({ signal: AbortSignal.timeout(10_000) })).events); } catch { failures.push("Could not recover final session events"); } - try { await session.reset({ reason: "Parallel browser E2E cleanup", signal: AbortSignal.timeout(30_000) }); } catch { failures.push("Session reset failed"); } + try { await session.end({ reason: "Parallel browser E2E cleanup", signal: AbortSignal.timeout(30_000) }); } catch { failures.push("Session end failed"); } } for (const id of hostedIds) { try { diff --git a/scripts/test-session-retirement.mjs b/scripts/test-session-retirement.mjs index 395b880..9a4eed9 100644 --- a/scripts/test-session-retirement.mjs +++ b/scripts/test-session-retirement.mjs @@ -8,14 +8,15 @@ if (process.env.BELL_LIVE_RETIREMENT !== "1" || !process.env.BROWSERBASE_API_KEY const origin = new URL(process.env.BELL_TEST_ORIGIN || "http://127.0.0.1:4320"); if (origin.protocol !== "http:" || !["127.0.0.1", "localhost"].includes(origin.hostname)) throw new Error("This test accepts only a local Bell origin."); -const client = new Client({ host: origin.origin }); +const client = new Client({ baseUrl: origin.origin }); const browserbase = new Browserbase({ apiKey: process.env.BROWSERBASE_API_KEY }); let session; const browserIds = new Set(); const contextIds = new Set(); const remember = (events) => { for (const event of events) { - const browser = event.data?.result?.output?.workbench?.browser; + if (event.type !== "call.settled") continue; + const browser = event.data.output?.workbench?.browser; if (browser?.sessionId) browserIds.add(browser.sessionId); if (browser?.contextId) contextIds.add(browser.contextId); } @@ -27,30 +28,32 @@ try { signal: AbortSignal.timeout(90_000), }); session = created.session; - const first = await created.response.result(); - remember(first.events); - assert.equal(first.status, "waiting"); - assert.ok(first.message?.includes("Example Domain")); + const first = await created.delivery.result({ signal: AbortSignal.timeout(90_000) }); + remember((await session.snapshot({ signal: AbortSignal.timeout(10_000) })).events); + assert.equal(first.status, "completed"); + assert.ok(first.reply?.includes("Example Domain")); assert.equal(browserIds.size, 1); const second = await (await session.send( "Without navigating, use snapshot to confirm the current page title and URL. Reply briefly.", { signal: AbortSignal.timeout(45_000) }, - )).result(); - remember(second.events); - assert.equal(second.status, "waiting"); + )).result({ signal: AbortSignal.timeout(45_000) }); + remember((await session.snapshot({ signal: AbortSignal.timeout(10_000) })).events); + assert.equal(second.status, "completed"); assert.equal(browserIds.size, 1, "Follow-up must reuse the same hosted browser"); - const reset = await session.reset({ reason: "Completed browser retirement regression" }); - assert.equal(reset.status, "reset"); + await session.end({ reason: "Completed browser retirement regression" }); const completionDeadline = Date.now() + 20_000; let completed = false; do { const snapshot = await session.snapshot(); - completed = snapshot.events.some((event) => event.type === "session.completed"); - if (completed) break; - assert.ok(!snapshot.events.some((event) => event.type === "session.failed"), "Session failed during retirement"); + const ended = snapshot.events.find((event) => event.type === "session.ended"); + if (ended) { + assert.equal(ended.data.outcome, "completed", "Session failed during retirement"); + completed = true; + break; + } await new Promise((resolve) => setTimeout(resolve, 500)); } while (Date.now() < completionDeadline); - assert.ok(completed, "Reset must publish session.completed"); + assert.ok(completed, "End must publish session.ended"); for (const id of browserIds) { const deadline = Date.now() + 20_000; let status; @@ -59,16 +62,16 @@ try { if (status === "COMPLETED") break; await new Promise((resolve) => setTimeout(resolve, 500)); } while (Date.now() < deadline); - assert.equal(status, "COMPLETED", "Reset must release the hosted browser"); + assert.equal(status, "COMPLETED", "Ending the session must release the hosted browser"); } - console.log("Live retirement passed: two turns shared one browser; reset emitted completion and Browserbase confirmed COMPLETED."); + console.log("Live retirement passed: two turns shared one browser; the session ended and Browserbase confirmed COMPLETED."); } finally { const cleanupErrors = []; if (session) { // Recover IDs even if a model assertion fails. Do not print private events. try { remember((await session.snapshot()).events); } catch { /* Session may not have started. */ } - try { await session.reset({ reason: "Integration test cleanup" }); } - catch { cleanupErrors.push("Eve session reset failed"); } + try { await session.end({ reason: "Integration test cleanup" }); } + catch { cleanupErrors.push("Eve session end failed"); } } for (const id of browserIds) { try { diff --git a/tests/browser/browser-close.test.ts b/tests/browser/browser-close.test.ts index 447b880..7f730b3 100644 --- a/tests/browser/browser-close.test.ts +++ b/tests/browser/browser-close.test.ts @@ -78,13 +78,13 @@ describe("terminal cleanup in a fresh Eve worker", () => { await Promise.all([first, second]); expect(hasBrowserRuntime(id)).toBe(false); })); - it.each(["session.completed", "session.failed"] as const)( - "%s recovers the persisted browser and retains it until release succeeds", (event) => + it.each(["completed", "failed"] as const)( + "session.ended (%s) recovers the persisted browser and retains it until release succeeds", (outcome) => contextStorage.run(new ContextContainer(), async () => { - const retire = () => event === "session.completed" - ? browserChannelEvents[event]({}, undefined, { session: { id: "fresh-worker-retirement" } }) - : browserChannelEvents[event]({ sessionId: "fresh-worker-retirement" }); const id = "fresh-worker-retirement"; + const retire = () => browserChannelEvents["session.ended"]( + { type: "session.ended", data: { outcome } }, { session: { id } }, + ); taskState.update((current) => ({ ...current, browser: { lifecycle: "active", sessionId: "persisted-browser" }, @@ -107,7 +107,7 @@ describe("terminal cleanup in a fresh Eve worker", () => { } })); - it("turn.cancelled releases the persisted browser before clearing its ID", () => + it("a cancelled turn releases the persisted browser before clearing its ID", () => contextStorage.run(new ContextContainer(), async () => { const id = "fresh-worker-cancel"; taskState.update((current) => ({ @@ -115,9 +115,9 @@ describe("terminal cleanup in a fresh Eve worker", () => { browser: { lifecycle: "active", sessionId: "persisted-browser" }, })); release.mockResolvedValue({ status: "COMPLETED" }); - await taskHooks.events!["turn.cancelled"]!( - { type: "turn.cancelled", meta: { id: "evt_cancel" } } as never, - { session: { id } } as never, + await taskHooks.events!["turn.settled"]!( + { type: "turn.settled", data: { outcome: "cancelled", turnId: "turn" } } as never, + { session: { id }, occurrence: { idempotencyKey: "evt_cancel" }, now: new Date() } as never, ); expect(release).toHaveBeenCalledExactlyOnceWith("persisted-browser", { status: "REQUEST_RELEASE" }); expect(taskState.get()).toMatchObject({ status: "canceled", browser: { lifecycle: "closed" } }); diff --git a/tests/browser/captcha-recovery.test.ts b/tests/browser/captcha-recovery.test.ts index 5188695..4cffe4e 100644 --- a/tests/browser/captcha-recovery.test.ts +++ b/tests/browser/captcha-recovery.test.ts @@ -37,9 +37,9 @@ describe("resuming a browser after CAPTCHA handoff", () => { }); expect(page.snapshot).not.toHaveBeenCalled(); - await taskHooks.events!["message.received"]!({ - type: "message.received", data: { message: "done" }, meta: { id: "new-reply" }, - } as never, { session: { id } } as never); + await taskHooks.events!["delivery.consumed"]!({ + type: "delivery.consumed", data: { deliveryId: "reply", turnId: "turn", parts: [{ kind: "text", text: "done" }] }, + } as never, { session: { id }, occurrence: { idempotencyKey: "new-reply" }, now: new Date() } as never); expect(await runBrowserOperation(id, browser => browser.snapshot())).toMatchObject({ result: { tree: "Account home", url: "https://shop.example/account" }, workbench: { captcha: { status: "idle" } }, @@ -63,9 +63,9 @@ describe("resuming a browser after CAPTCHA handoff", () => { taskState.update(current => applyCaptchaTransition(current, { id: "challenge-error", type: "errored", at: new Date().toISOString(), })); - await taskHooks.events!["message.received"]!({ - type: "message.received", data: { message: "done" }, meta: { id: "old-reply" }, - } as never, { session: { id } } as never); + await taskHooks.events!["delivery.consumed"]!({ + type: "delivery.consumed", data: { deliveryId: "reply", turnId: "turn", parts: [{ kind: "text", text: "done" }] }, + } as never, { session: { id }, occurrence: { idempotencyKey: "old-reply" }, now: new Date() } as never); expect(taskState.get()).toMatchObject({ status: "waiting_for_user", captcha: { status: "errored" } }); })); diff --git a/tests/browser/captcha-state.test.ts b/tests/browser/captcha-state.test.ts index 10bd810..047cc11 100644 --- a/tests/browser/captcha-state.test.ts +++ b/tests/browser/captcha-state.test.ts @@ -98,10 +98,10 @@ describe("durable CAPTCHA reducer", () => { state = applyTaskEvent( state, { - type: "step.started", - meta: { id: "step", at: "2026-09-05T00:00:02.000Z" }, + type: "model.started", data: { runId: "run", modelId: "fixture", attempt: 0 }, }, state.sessionId, + { id: "step", at: "2026-09-05T00:00:02.000Z" }, ); expect(state.status).toBe("solving_captcha"); }); diff --git a/tests/browser/eve-origin.test.ts b/tests/browser/eve-origin.test.ts index 16d206b..8aadb85 100644 --- a/tests/browser/eve-origin.test.ts +++ b/tests/browser/eve-origin.test.ts @@ -128,7 +128,7 @@ it.each(["localhost", "127.0.0.1", "[::1]"])("accepts development reads and writ id: "synthetic-session", cancel: async () => ({ status: "accepted", sessionId: "synthetic-session" }), getStreamTailIndex: async () => -1, - getEventStream: async () => new ReadableStream({ start(controller) { controller.close(); } }), + getLineStream: async () => new ReadableStream({ start(controller) { controller.close(); } }), })); const origin = `http://${host}:4320`; for (const route of [cancel, stream]) { diff --git a/tests/browser/task-state.test.ts b/tests/browser/task-state.test.ts index 1c0e43b..888e0e7 100644 --- a/tests/browser/task-state.test.ts +++ b/tests/browser/task-state.test.ts @@ -1,7 +1,8 @@ import { describe, expect, it } from "vitest"; +import type { HookEvent } from "eve/hooks"; import { - applyTaskEvent, + applyTaskEvent as reduceTaskEvent, initializeTask, recordTaskBrowserContext, safeText, @@ -21,10 +22,10 @@ const empty = (): DurableTaskRecord => ({ createdAt: "", updatedAt: "", }); -const event = (type: string, id: string, data: Record = {}) => ({ - type, - data, - meta: { id, at: "2026-09-05T00:00:00.000Z" }, +const applyTaskEvent = (state: DurableTaskRecord, event: HookEvent, id: string) => + reduceTaskEvent(state, event, "session_fixture", { id, at: "2026-09-05T00:00:00.000Z" }); +const reply = (text: string): HookEvent<"delivery.consumed"> => ({ + type: "delivery.consumed", data: { deliveryId: "delivery", turnId: "turn", parts: [{ kind: "text", text }] }, }); describe("durable Eve task state", () => { @@ -32,15 +33,13 @@ describe("durable Eve task state", () => { let state = initializeTask(empty(), "session_fixture", "2026-09-05T00:00:00.000Z"); state = applyTaskEvent( state, - event("message.received", "evt_user", { - message: "Research durable agents", - }), - "session_fixture", + reply("Research durable agents"), + "evt_user", ); state = applyTaskEvent( state, - event("message.completed", "evt_assistant", { message: "Finished." }), - "session_fixture", + { type: "content.completed", data: { partId: "reply", kind: "text", phase: "reply", value: "Finished." } }, + "evt_assistant", ); expect(state).toMatchObject({ version: 1, @@ -52,40 +51,42 @@ describe("durable Eve task state", () => { it("keeps the original Context naming hint across follow-ups", () => { let state = applyTaskEvent( empty(), - event("message.received", "evt_one", { message: "Start" }), - "session_fixture", + reply("Start"), + "evt_one", ); state = applyTaskEvent( state, - event("message.received", "evt_two", { message: "move it back" }), - "session_fixture", + reply("move it back"), + "evt_two", ); expect(state.sessionId).toBe("session_fixture"); expect(state.title).toBe("Start"); }); it("does not replay an old turn-start event over a completed turn", () => { - const started = event("turn.started", "evt_start"); - let state = applyTaskEvent(empty(), started, "session_fixture"); - state = applyTaskEvent(state, event("turn.completed", "evt_end"), "session_fixture"); - expect(applyTaskEvent(state, started, "session_fixture")).toBe(state); + const started: HookEvent<"turn.started"> = { + type: "turn.started", data: { turnId: "turn", follows: null, cause: { deliveryId: "delivery" } }, + }; + let state = applyTaskEvent(empty(), started, "evt_start"); + state = applyTaskEvent(state, { type: "turn.settled", data: { outcome: "completed", turnId: "turn" } }, "evt_end"); + expect(applyTaskEvent(state, started, "evt_start")).toBe(state); expect(state.status).toBe("idle"); }); it("survives human waits and resumes the same workflow", () => { let state = applyTaskEvent( empty(), - event("input.requested", "evt_wait", { prompt: "Enter OTP code" }), - "session_fixture", + { type: "interaction.opened", data: { interactionId: "otp", subject: { turnId: "turn" }, request: { kind: "question", prompt: "Enter OTP code" } } }, + "evt_wait", ); expect(state).toMatchObject({ status: "waiting_for_user", waitReason: "otp", }); - state = applyTaskEvent(state, event("session.waiting", "evt_parked"), "session_fixture"); + state = applyTaskEvent(state, { type: "turn.paused", data: { turnId: "turn", awaiting: [{ interactionId: "otp" }] } }, "evt_parked"); expect(state).toMatchObject({ status: "waiting_for_user", waitReason: "otp", }); - state = applyTaskEvent(state, event("input.resolved", "evt_resume"), "session_fixture"); + state = applyTaskEvent(state, { type: "interaction.settled", data: { interactionId: "otp", outcome: "accepted" } }, "evt_resume"); expect(state).toMatchObject({ status: "running", activeStep: "resuming" }); }); it("continues a stored task without using or extending legacy bookkeeping", () => { @@ -106,8 +107,8 @@ describe("durable Eve task state", () => { }; let state = applyTaskEvent( legacy, - event("message.received", "evt_followup", { message: "Continue" }), - "session_fixture", + reply("Continue"), + "evt_followup", ); state = updateTaskBrowser(state, { provider: "browserbase", @@ -182,8 +183,8 @@ describe("durable Eve task state", () => { url: "https://example.com/login", }, }, - event("turn.cancelled", "evt_cancel"), - "session_fixture", + { type: "turn.settled", data: { outcome: "cancelled", turnId: "turn" } }, + "evt_cancel", ); expect(state).toMatchObject({ status: "canceled", diff --git a/tests/link-checkout.test.ts b/tests/link-checkout.test.ts index 43c1373..3769a62 100644 --- a/tests/link-checkout.test.ts +++ b/tests/link-checkout.test.ts @@ -42,7 +42,7 @@ const purchaseHistory = { { type: "total", display_text: "Total", amount: 4200 }, ], activity_url: "https://link.example/activity/spend_1", - expires_at: 1795305600, + expires_at: new Date(1795305600_000).toISOString(), recurring: { interval: "month", interval_count: 1 }, payment_status_details: { outcome: "success", code: null, decline_code: null, diff --git a/tests/link-oauth.test.ts b/tests/link-oauth.test.ts index ea202df..1e6a502 100644 --- a/tests/link-oauth.test.ts +++ b/tests/link-oauth.test.ts @@ -15,6 +15,7 @@ import { createAuthorizationExecution } from "../node_modules/eve/dist/src/runti import { resolveWorkflowCallbackBaseUrl } from "../node_modules/eve/dist/src/execution/workflow-callback-url.js"; import type { ChannelAdapter } from "../node_modules/eve/dist/src/channel/adapter.js"; import linq from "../agent/channels/linq"; +import { signInFlow } from "./sign-in"; const databaseUrl = process.env.TEST_LINK_DATABASE_URL; @@ -339,7 +340,8 @@ describe.skipIf(!databaseUrl)("Link OAuth with PostgreSQL", () => { if (!isAuthorizationSignal(signal)) throw new Error("Expected Eve to suspend for consent."); const challenge = signal.challenges[0]; expect(new URL(challenge.hookUrl).origin).toBe(environment === "production" ? "https://bell-project.vercel.app" : "http://127.0.0.1:54321"); - await adapter["authorization.required"]!({ name: challenge.name, authorization: challenge.challenge } as never, channel as never); + const flow = signInFlow(adapter, channel, { name: challenge.name, ...challenge.challenge }); + await flow.open(); expect(post).toHaveBeenCalledWith({ markdown: expect.stringContaining("https://login.link.com/auth?") }); const state = new URL(challenge.challenge.url!).searchParams.get("state")!; const response = await linkCallback(new Request(`${config.redirectUri}?state=${state}&code=runtime-code`), () => service); @@ -355,7 +357,7 @@ describe.skipIf(!databaseUrl)("Link OAuth with PostgreSQL", () => { const resumed = createAuthorizationExecution(); expect(await resumed.getToken(scoped)).toMatchObject({ token: "access-first" }); expect(context.require(SessionIdKey)).toBe(sessionId); - await adapter["authorization.completed"]!({ name: challenge.name, authorization: challenge.challenge, outcome: "authorized" } as never, channel as never); + await flow.settle(); expect(editMessage).toHaveBeenCalledWith("original-linq-chat", "consent-message", { markdown: "Link connected." }); expect(fetcher).toHaveBeenCalledOnce(); }); diff --git a/tests/linq.test.ts b/tests/linq.test.ts index affba1e..ea6b9c1 100644 --- a/tests/linq.test.ts +++ b/tests/linq.test.ts @@ -5,6 +5,7 @@ import linq from "../agent/channels/linq"; import { ContextContainer, contextStorage } from "../node_modules/eve/dist/src/context/container.js"; import { SessionKey } from "../node_modules/eve/dist/src/context/keys.js"; import type { ChannelAdapter } from "../node_modules/eve/dist/src/channel/adapter.js"; +import { signInFlow } from "./sign-in"; const receivingNumber = "+12025550100"; const senderNumber = "+12025550123"; @@ -125,14 +126,11 @@ describe("Bell's signed Linq webhook", () => { const context = new ContextContainer(); context.set(SessionKey, { sessionId: "original-eve-session" } as never); await contextStorage.run(context, async () => { - await adapter["authorization.required"]!( - { name: "link", authorization } as never, channel as never, - ); + const flow = signInFlow(adapter, channel, { name: "link", ...authorization }); + await flow.open(); expect(post).toHaveBeenCalledExactlyOnceWith({ markdown: expect.stringContaining(authorization.url) }); expect(channel.state.pendingAuthMessageIds).toEqual({ link: "oauth-message" }); - await adapter["authorization.completed"]!( - { name: "link", authorization, outcome: "authorized" } as never, channel as never, - ); + await flow.settle(); }); expect(editMessage).toHaveBeenCalledWith("original-linq-chat", "oauth-message", { markdown: "Link connected." }); expect(startTyping).toHaveBeenCalledWith("Connected. Resuming..."); diff --git a/tests/notion.test.ts b/tests/notion.test.ts index 7b52079..58fb248 100644 --- a/tests/notion.test.ts +++ b/tests/notion.test.ts @@ -12,6 +12,7 @@ import { ContextContainer, contextStorage } from "../node_modules/eve/dist/src/c import { AuthKey, SessionIdKey, SessionKey } from "../node_modules/eve/dist/src/context/keys.js"; import { CallbackBaseUrlKey, PendingAuthorizationResultKey, isAuthorizationSignal } from "../node_modules/eve/dist/src/harness/authorization.js"; import { createAuthorizationExecution } from "../node_modules/eve/dist/src/runtime/connections/scoped-authorization.js"; +import { dynamicEvaluate } from "../node_modules/eve/dist/src/dynamic/definition.js"; import { resolveWorkflowCallbackBaseUrl } from "../node_modules/eve/dist/src/execution/workflow-callback-url.js"; const owner: ConnectionPrincipal = { type: "user", issuer: "bell:operator", id: "operator" }; @@ -280,9 +281,9 @@ it("omits unsupported callers and checks the stored grant before tools can reuse const session = { id: "test", auth: { current: { principalType: "user" as const, principalId: "operator", issuer: "bell:operator", authenticator: "http-basic", attributes: {}, } } }; - const resolver = definition.events["turn.started"]!; - expect(await resolver({}, { session: { ...session, auth: { current: { principalType: "runtime" } } } } as never)).toBeNull(); - const connection = await resolver({}, { session, channel: {} } as never); + const resolver = dynamicEvaluate(definition); + expect(await resolver({ session: { ...session, auth: { current: { principalType: "runtime" } } } } as never)).toBeNull(); + const connection = await resolver({ session, channel: {} } as never); if (!connection || !("url" in connection) || typeof connection.approval !== "function") throw new Error("Expected an MCP connection with approval policy"); const f = fixture(); await authorize(f); @@ -300,18 +301,19 @@ it("omits unsupported callers and checks the stored grant before tools can reuse status.mockRestore(); } finally { service.mockRestore(); } vi.stubEnv("NOTION_ENABLED", "false"); - expect(await resolver({}, { session, channel: {} } as never)).toBeNull(); + expect(await resolver({ session, channel: {} } as never)).toBeNull(); }); it("validates the personal Notion connection through Eve's runtime resolver", async () => { vi.stubEnv("NOTION_ENABLED", "true"); const definition = (await import("../agent/connections/notion")).default; + // @ts-expect-error The internal runtime resolver has no declaration in eve's published build. const { resolveDynamicConnectionValue } = await import("../node_modules/eve/dist/src/runtime/resolve-connection.js"); for (const current of [ { principalType: "user", principalId: "operator", issuer: "bell:operator", authenticator: "http-basic", attributes: {} }, { principalType: "user", principalId: "linq:sender", issuer: "linq", authenticator: "linq-message", attributes: {} }, ]) { - const value = await definition.events["turn.started"]!({}, { session: { id: "test", auth: { current } }, channel: {} } as never); + const value = await dynamicEvaluate(definition)({ session: { id: "test", auth: { current } }, channel: {} } as never); const resolved = resolveDynamicConnectionValue(value, { connectionName: "notion", logicalPath: "connections/notion.ts", sourceId: "notion-test", sourceKind: "module", }); diff --git a/tests/projection.test.ts b/tests/projection.test.ts index ef50fd5..b0c4f56 100644 --- a/tests/projection.test.ts +++ b/tests/projection.test.ts @@ -1,35 +1,39 @@ import { describe, expect, it } from "vitest"; +import type { CallFact, JsonValue } from "eve/events"; import { browserPreview } from "../app/projection"; -const event = (output: unknown, isError = false) => ({ - type: "action.result", - data: { result: { kind: "tool-result", output, isError } }, -}); +let nextCall = 0; +function toolEvents(output: JsonValue, isError = false, name = "browser"): CallFact[] { + const callId = `call-${nextCall++}`; + return [ + { type: "call.requested", data: { callId, owner: { turnId: "turn" }, capability: { kind: "tool", name } } }, + { type: "call.settled", data: { callId, outcome: isError ? "failed" : "completed", output } }, + ]; +} describe("shared browser output in the Bell panel", () => { - it("reads the browser runtime's nested screenshot", () => { + it("reads the browser runtime's nested screenshot even when larger than Eve's projected output limit", () => { + const screenshot = `data:image/png;base64,${"aGVs".repeat(5_000)}`; expect( - browserPreview([ - event({ - result: {}, - workbench: { - browser: { url: "https://example.com/" }, - screenshotDataUrl: "data:image/png;base64,aA==", - }, - }), - ]), + browserPreview(toolEvents({ + result: {}, + workbench: { + browser: { url: "https://example.com/" }, + screenshotDataUrl: screenshot, + }, + })), ).toEqual({ url: "https://example.com/", - screenshot: "data:image/png;base64,aA==", + screenshot, httpStatus: undefined, }); }); it("clears the old capture after a new merchant navigation", () => { expect( browserPreview([ - event({ + ...toolEvents({ workbench: { screenshotDataUrl: "data:image/png;base64,aA==" }, }), - event({ + ...toolEvents({ result: { url: "https://example.com/protected", httpStatus: 401 }, }), ]).screenshot, @@ -38,17 +42,17 @@ describe("shared browser output in the Bell panel", () => { it("ignores failed tools and remote image URLs", () => { expect( browserPreview([ - event({ screenshot: "https://example.com/tracker" }), - event({ httpStatus: 200 }, true), + ...toolEvents({ screenshot: "https://example.com/tracker" }), + ...toolEvents({ httpStatus: 200 }, true), ]), ).toEqual({ url: undefined, screenshot: undefined, httpStatus: undefined }); }); it("does not show a previous HTTP 200 after an ordinary browser visit", () => { - const ordinary = event({ result: { completed: true, url: "https://example.com/protected" } }); + const ordinary = toolEvents({ result: { completed: true, url: "https://example.com/protected" } }, false, "run"); expect( browserPreview([ - event({ httpStatus: 200, screenshot: "data:image/png;base64,aA==" }), - { ...ordinary, data: { result: { ...ordinary.data.result, toolName: "run" } } }, + ...toolEvents({ httpStatus: 200, screenshot: "data:image/png;base64,aA==" }), + ...ordinary, ]), ).toEqual({ url: "https://example.com/protected", @@ -58,8 +62,8 @@ describe("shared browser output in the Bell panel", () => { }); it("clears the previous page's capture and status after a login redirects", () => { expect(browserPreview([ - event({ url: "https://shop.example/login", httpStatus: 200, screenshot: "data:image/png;base64,aA==" }), - event({ + ...toolEvents({ url: "https://shop.example/login", httpStatus: 200, screenshot: "data:image/png;base64,aA==" }), + ...toolEvents({ result: { status: "complete" }, workbench: { browser: { url: "https://shop.example/account" } }, }), @@ -71,8 +75,8 @@ describe("shared browser output in the Bell panel", () => { }); it("keeps a new page's own capture and status when its URL changes", () => { expect(browserPreview([ - event({ url: "https://shop.example/login", httpStatus: 200, screenshot: "data:image/png;base64,aA==" }), - event({ url: "https://shop.example/account", httpStatus: 403, screenshot: "data:image/png;base64,bA==" }), + ...toolEvents({ url: "https://shop.example/login", httpStatus: 200, screenshot: "data:image/png;base64,aA==" }), + ...toolEvents({ url: "https://shop.example/account", httpStatus: 403, screenshot: "data:image/png;base64,bA==" }), ])).toEqual({ url: "https://shop.example/account", screenshot: "data:image/png;base64,bA==", diff --git a/tests/sign-in.ts b/tests/sign-in.ts new file mode 100644 index 0000000..7b72a1c --- /dev/null +++ b/tests/sign-in.ts @@ -0,0 +1,30 @@ +import type { SignInChallenge } from "eve/events"; +import type { ChannelAdapter } from "../node_modules/eve/dist/src/channel/adapter.js"; +import { emptySessionView, foldLine } from "../node_modules/eve/dist/src/protocol/session-projection/fold.js"; + +export function signInFlow(adapter: ChannelAdapter, channel: object, signIn: SignInChallenge) { + const view = emptySessionView(); + const interactionId = `sign-in:${signIn.name}`; + const opened = { + type: "interaction.opened" as const, + data: { + interactionId, + subject: { turnId: "turn" }, + request: { kind: "sign-in" as const, prompt: "Connect your account.", signIn }, + }, + }; + const settled = { + type: "interaction.settled" as const, + data: { interactionId, outcome: "accepted" as const }, + }; + return { + async open() { + foldLine(view, { at: new Date().toISOString(), facts: [opened] }, 0); + await adapter["interaction.opened"]!(opened, { ...channel, view } as never); + }, + async settle() { + foldLine(view, { at: new Date().toISOString(), facts: [settled] }, 1); + await adapter["interaction.settled"]!(settled, { ...channel, view } as never); + }, + }; +} diff --git a/tests/workspace-runtime.test.ts b/tests/workspace-runtime.test.ts index 687e650..5f461df 100644 --- a/tests/workspace-runtime.test.ts +++ b/tests/workspace-runtime.test.ts @@ -82,9 +82,9 @@ describe("Bell's shared browser runtime", () => { expect(await snapshot.execute({}, context())).toMatchObject({ result: { url: result.url } }); expect(snapshotBrowser).toHaveBeenCalledOnce(); - await lifecycle.events!["turn.completed"]!({} as never, context()); + await lifecycle.events!["turn.settled"]!({ type: "turn.settled", data: { outcome: "completed", turnId: "turn" } } as never, context()); expect(hasBrowserRuntime(sessionId)).toBe(true); - await browserChannelEvents["session.completed"]({}, undefined, context()); + await browserChannelEvents["session.ended"]({ type: "session.ended", data: { outcome: "completed" } }, context()); expect(closeBrowser).toHaveBeenCalledOnce(); expect(hasBrowserRuntime(sessionId)).toBe(false); }));