Skip to content

armgit / eve

Public Imported from GitHub
0

The Open Framework for Building Agents

chore(eve): workflow - adopt official code-mode runtime (#2776)

Andrew Barba63f2e072bf00
diff --git a/.changeset/bright-runtimes-flow.md b/.changeset/bright-runtimes-flow.md
new file mode 100644
index 000000000..7b6fbb63a
--- /dev/null
+++ b/.changeset/bright-runtimes-flow.md
@@ -0,0 +1,5 @@
+---
+"eve": patch
+---
+
+Run `Workflow` programs with the official AI SDK code-mode runtime while preserving eve's durable subagent accounting and event stream.
diff --git a/NOTICE b/NOTICE
index 358e44aa1..d4068e02f 100644
--- a/NOTICE
+++ b/NOTICE
@@ -3,3 +3,75 @@ Copyright 2026 Vercel, Inc. and contributors
This product includes software developed at Vercel, Inc.
(https://vercel.com/).
+
+The bundled code-mode runtime includes run, Copyright 2023 Vercel, Inc.,
+licensed under the Apache License, Version 2.0.
+
+run embeds devalue 5.8.2, quickjs-wasi 3.6.0, and QuickJS under the MIT
+License. Their notices follow.
+
+devalue
+Copyright (c) 2018-19 devalue contributors
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
+quickjs-wasi
+Copyright (c) quickjs-wasi contributors
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
+QuickJS Javascript Engine
+Copyright (c) 2017-2026 Fabrice Bellard
+Copyright (c) 2017-2025 Charlie Gordon
+Copyright (c) 2023-2026 Ben Noordhuis
+Copyright (c) 2023-2026 Saúl Ibarra Corretgé
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/e2e/fixtures/agent-subagents/evals/workflow-subagent-limit.eval.ts b/e2e/fixtures/agent-subagents/evals/workflow-subagent-limit.eval.ts
index 23188a8aa..54d4f352b 100644
--- a/e2e/fixtures/agent-subagents/evals/workflow-subagent-limit.eval.ts
+++ b/e2e/fixtures/agent-subagents/evals/workflow-subagent-limit.eval.ts
@@ -2,18 +2,18 @@ import { defineEval } from "eve/evals";
/**
* Workflow subagent budget: the fixture configures `maxSubagents` as 2 on the
- * Workflow tool, so a three-call fan-out spawns two children and the third call
- * resolves inside the program with a `WORKFLOW_SUBAGENT_LIMIT_REACHED` error.
+ * Workflow tool, so three sequential calls spawn two children and the third
+ * call resolves with a `WORKFLOW_SUBAGENT_LIMIT_REACHED` error after replay.
*/
export default defineEval({
tags: ["real-model"],
description:
- "Workflow calls beyond the tool's maxSubagents config resolve with WORKFLOW_SUBAGENT_LIMIT_REACHED instead of spawning children.",
+ "Sequential Workflow calls share one maxSubagents budget and resolve excess calls with WORKFLOW_SUBAGENT_LIMIT_REACHED.",
async test(t) {
await t.send(
[
"This is a deliberate test of the Workflow subagent budget, so ignore the advertised call limit and attempt every call.",
- "Use the Workflow tool exactly once. In its JavaScript, fan out three echo-marker subagent calls with the messages 'limit alpha', 'limit beta', and 'limit gamma' inside one Promise.all, and return the resulting three-element array.",
+ "Use the Workflow tool exactly once. In its JavaScript, await three echo-marker subagent calls sequentially with the messages 'limit alpha', 'limit beta', and 'limit gamma', and return the resulting three-element array.",
"Do not call echo-marker outside Workflow and do not retry. Then reply with the returned array verbatim as JSON.",
].join(" "),
);
diff --git a/packages/eve/package.json b/packages/eve/package.json
index 6f9342711..b8cc9b6dd 100644
--- a/packages/eve/package.json
+++ b/packages/eve/package.json
@@ -400,6 +400,7 @@
"devDependencies": {
"@agentclientprotocol/sdk": "1.3.0",
"@ai-sdk/anthropic": "catalog:",
+ "@ai-sdk/code-mode": "1.0.39",
"@ai-sdk/google": "catalog:",
"@ai-sdk/mcp": "catalog:",
"@ai-sdk/openai": "catalog:",
@@ -447,7 +448,6 @@
"emulate": "0.6.0",
"env-runner": "0.1.16",
"eventsource-parser": "3.1.0",
- "experimental-ai-sdk-code-mode": "1.0.16",
"gray-matter": "4.0.3",
"historical-eve-0-30-8": "npm:[email protected]",
"jose": "6.2.3",
@@ -459,6 +459,7 @@
"picocolors": "catalog:",
"react": "catalog:",
"react-test-renderer": "19.2.6",
+ "run": "2.1.2",
"semver": "7.8.4",
"shadcn": "4.18.0",
"svelte": "^5.0.0",
diff --git a/packages/eve/scripts/vendor-compiled.mjs b/packages/eve/scripts/vendor-compiled.mjs
index 9b1029061..c5346bbdb 100644
--- a/packages/eve/scripts/vendor-compiled.mjs
+++ b/packages/eve/scripts/vendor-compiled.mjs
@@ -26,6 +26,7 @@ const vendorCompiledDir = join(here, "vendor-compiled");
// is invalidated and vendoring re-runs.
const scriptFiles = [
fileURLToPath(import.meta.url),
+ join(packageRoot, "package.json"),
join(here, "nitro-rolldown.mjs"),
join(here, "vendor-warning-log.mjs"),
...(await collectFilesRecursively(vendorCompiledDir, [".mjs", ".d.ts"])),
diff --git a/packages/eve/scripts/vendor-compiled/experimental-ai-sdk-code-mode.mjs b/packages/eve/scripts/vendor-compiled/@ai-sdk/code-mode.mjs
similarity index 53%
rename from packages/eve/scripts/vendor-compiled/experimental-ai-sdk-code-mode.mjs
rename to packages/eve/scripts/vendor-compiled/@ai-sdk/code-mode.mjs
index b956340d6..992b5629d 100644
--- a/packages/eve/scripts/vendor-compiled/experimental-ai-sdk-code-mode.mjs
+++ b/packages/eve/scripts/vendor-compiled/@ai-sdk/code-mode.mjs
@@ -1,18 +1,29 @@
import { relative, sep } from "node:path";
-import { collectFilesRecursively, createDeclarationCopier } from "./_shared.mjs";
+import { collectFilesRecursively, createDeclarationCopier } from "../_shared.mjs";
function toPosixPath(path) {
return path.split(sep).join("/");
}
+function buildRunStub(names, moduleName) {
+ const unsupported = [...names].filter((name) => name !== "setMaxWorkers");
+ if (unsupported.length > 0) {
+ throw new Error(
+ `Vendor: unsupported ${moduleName} declaration imports: ${unsupported.join(", ")}`,
+ );
+ }
+ return "export declare function setMaxWorkers(maxWorkers?: number): void;\n";
+}
+
export default {
- packageName: "experimental-ai-sdk-code-mode",
- compiledPath: "experimental-ai-sdk-code-mode",
+ packageName: "@ai-sdk/code-mode",
+ compiledPath: "@ai-sdk/code-mode",
bundling: "standalone",
copyDeclarations: createDeclarationCopier({
rewrites: {
ai: { kind: "external" },
+ run: { kind: "stub", stubBaseName: "_run", build: buildRunStub },
},
files: async ({ distDir }) =>
(await collectFilesRecursively(distDir, [".d.ts"]))
diff --git a/packages/eve/scripts/vendor-compiled/index.mjs b/packages/eve/scripts/vendor-compiled/index.mjs
index 0c1e16cc8..43f8fd066 100644
--- a/packages/eve/scripts/vendor-compiled/index.mjs
+++ b/packages/eve/scripts/vendor-compiled/index.mjs
@@ -5,6 +5,7 @@
*/
import acpSdk from "./@agentclientprotocol/sdk.mjs";
import anthropic from "./@ai-sdk/anthropic.mjs";
+import codeMode from "./@ai-sdk/code-mode.mjs";
import google from "./@ai-sdk/google.mjs";
import mcp from "./@ai-sdk/mcp.mjs";
import openai from "./@ai-sdk/openai.mjs";
@@ -39,7 +40,6 @@ import workflowWorldVercel from "./@workflow/world-vercel.mjs";
import chat from "./chat.mjs";
import chokidar from "./chokidar.mjs";
import commander from "./commander.mjs";
-import experimentalAiSdkCodeMode from "./experimental-ai-sdk-code-mode.mjs";
import eventsourceParserStream from "./eventsource-parser-stream.mjs";
import envRunner from "./env-runner.mjs";
import grayMatter from "./gray-matter.mjs";
@@ -57,13 +57,13 @@ import zodValidationError from "./zod-validation-error.mjs";
export const MODULES = [
acpSdk,
anthropic,
+ codeMode,
chat,
chatAdapterSlack,
chatAdapterStateMemory,
chatAdapterTwilio,
chokidar,
commander,
- experimentalAiSdkCodeMode,
eventsourceParserStream,
envRunner,
google,
diff --git a/packages/eve/src/execution/dispatch-workflow-runtime-actions-step.ts b/packages/eve/src/execution/dispatch-workflow-runtime-actions-step.ts
index ddc9c33b0..dfb8f18d2 100644
--- a/packages/eve/src/execution/dispatch-workflow-runtime-actions-step.ts
+++ b/packages/eve/src/execution/dispatch-workflow-runtime-actions-step.ts
@@ -7,7 +7,10 @@ import {
readDurableSession,
} from "#execution/durable-session-store.js";
import { hydrateDurableSession } from "#execution/session.js";
-import { getPendingWorkflowInterrupt } from "#harness/workflow-interrupt-state.js";
+import {
+ getPendingWorkflowInterrupt,
+ setPendingWorkflowUsedCalls,
+} from "#harness/workflow-interrupt-state.js";
import { setPendingRuntimeActionBatch } from "#harness/runtime-actions.js";
import { buildRuntimeActionsFromWorkflowInterrupt } from "#harness/workflow-runtime-action-state.js";
import {
@@ -61,8 +64,8 @@ export async function dispatchWorkflowRuntimeActionsStep(input: {
const plan = planWorkflowSubagentDispatch({
actions,
- interrupt: pending.interrupt,
maxSubagents: durableSession.workflowMaxSubagents,
+ usedCalls: pending.usedCalls,
});
const blockedResults = plan.blocked.map((action) => {
@@ -89,11 +92,15 @@ export async function dispatchWorkflowRuntimeActionsStep(input: {
turnAgent: effectiveAgent.turnAgent,
});
+ const sessionWithUsage = setPendingWorkflowUsedCalls({
+ session,
+ usedCalls: pending.usedCalls + plan.allowed.length,
+ });
const sessionWithBatch = setPendingRuntimeActionBatch({
actions: plan.allowed,
event: { sequence: 0, stepIndex: 0, turnId: "workflow-dispatch" },
responseMessages: [],
- session,
+ session: sessionWithUsage,
});
// Interrupt-sourced batches obey the same mode split as model-authored
diff --git a/packages/eve/src/harness/advertised-tools.ts b/packages/eve/src/harness/advertised-tools.ts
index 97fb954d8..d1d7e64bf 100644
--- a/packages/eve/src/harness/advertised-tools.ts
+++ b/packages/eve/src/harness/advertised-tools.ts
@@ -10,7 +10,6 @@ import {
} from "#harness/workflow-continuation-security.js";
import { applyWorkflowTool } from "#harness/workflow-sandbox.js";
import type { HarnessSession, HarnessToolMap } from "#harness/types.js";
-import type { WorkflowSandboxLifecycle } from "#shared/workflow-sandbox.js";
type AdvertisedToolSession = Pick<HarnessSession, "rootSessionId" | "subagentDepth">;
@@ -32,10 +31,6 @@ type AdvertisedModelToolsInput = {
readonly session: HarnessSession;
readonly tools: HarnessToolMap;
readonly workflow?: {
- readonly lifecycle?: (input: {
- readonly session: HarnessSession;
- readonly tools: HarnessToolMap;
- }) => WorkflowSandboxLifecycle | undefined;
readonly maxSubagents?: number;
};
};
@@ -104,7 +99,6 @@ async function getAdvertisedModelTools(
const { modelTools } = await applyWorkflowTool({
continuationSecurity: getWorkflowContinuationSecurity(session),
harnessTools: workflowHostTools,
- lifecycle: input.workflow.lifecycle?.({ session, tools: workflowHostTools }),
maxSubagents: input.workflow.maxSubagents,
tools: input.modelTools,
});
diff --git a/packages/eve/src/harness/tool-loop.ts b/packages/eve/src/harness/tool-loop.ts
index bc107ff54..3af54ca2b 100644
--- a/packages/eve/src/harness/tool-loop.ts
+++ b/packages/eve/src/harness/tool-loop.ts
@@ -81,7 +81,10 @@ import {
getWorkflowContinuationSecurity,
readWorkflowContinuationSecurity,
} from "#harness/workflow-continuation-security.js";
-import { createWorkflowLifecycle } from "#harness/workflow-lifecycle.js";
+import {
+ emitWorkflowActionResults,
+ emitWorkflowActionsRequested,
+} from "#harness/workflow-lifecycle.js";
import {
clearPendingWorkflowInterrupt,
getPendingWorkflowInterrupt,
@@ -1274,19 +1277,8 @@ export function createToolLoopHarness(config: ToolLoopHarnessConfig): StepFn {
flatTools[FINAL_OUTPUT_TOOL_NAME] = buildFinalOutputTool(session.outputSchema);
}
- const workflowLifecycle =
- emit !== undefined
- ? ({ tools }: { readonly tools: HarnessToolMap }) =>
- createWorkflowLifecycle({
- emit,
- emissionState,
- tools,
- })
- : undefined;
const workflowConfig =
- config.workflow === true
- ? { lifecycle: workflowLifecycle, maxSubagents: config.workflowMaxSubagents }
- : undefined;
+ config.workflow === true ? { maxSubagents: config.workflowMaxSubagents } : undefined;
const advertisedModelTools = await getAdvertisedTools({
delegatedCaller: taskUpdatesEnabled,
@@ -2356,12 +2348,15 @@ async function handleStepResult(input: {
if (!isWorkflowRuntimeActionInterrupt(workflowInterrupt)) {
throw new Error(`Unsupported Workflow interrupt kind "${workflowInterrupt.payload.kind}".`);
}
- return parkOnWorkflowInterrupt({
+ return await parkOnWorkflowInterrupt({
baseSession,
+ emit,
emissionState,
interrupt: workflowInterrupt,
promptMessages,
responseMessages,
+ tools: input.runtimeActionTools,
+ usedCalls: 0,
});
}
}
@@ -2825,7 +2820,7 @@ async function finishConversationTurn(input: {
/** Replays a parked dynamic workflow with completed child-agent results. */
async function continuePendingWorkflowInterrupt(input: {
- readonly childResults?: readonly { readonly output?: unknown }[];
+ readonly childResults?: readonly { readonly isError?: boolean; readonly output?: unknown }[];
readonly config: ToolLoopHarnessConfig;
readonly emit?: ToolLoopHarnessConfig["handleEvent"];
readonly emissionState: ReturnType<typeof getHarnessEmissionState>;
@@ -2841,15 +2836,17 @@ async function continuePendingWorkflowInterrupt(input: {
throw new Error(`Unsupported Workflow interrupt kind "${interrupt.payload.kind}".`);
}
- const lifecycle =
- input.emit === undefined
- ? undefined
- : createWorkflowLifecycle({
- emit: input.emit,
- emissionState: input.emissionState,
- skipReplayed: true,
- tools: input.tools,
- });
+ const childResults = input.childResults ?? [];
+ const pendingInterrupts = getWorkflowRuntimeActionInterrupts(interrupt);
+ if (input.emit !== undefined && childResults.length > 0) {
+ await emitWorkflowActionResults({
+ emit: input.emit,
+ emissionState: input.emissionState,
+ interrupts: pendingInterrupts,
+ results: childResults,
+ });
+ }
+
const continuationSecurity = getWorkflowContinuationSecurity(input.session);
let continuationOutput: unknown;
@@ -2858,11 +2855,10 @@ async function continuePendingWorkflowInterrupt(input: {
tools: input.tools,
});
- const childResults = input.childResults ?? [];
let currentInterrupt = interrupt;
let resultIndex = 0;
- // Promise.all can park several child calls together. Resolve one ledger
- // entry per replay until every supplied child result has been consumed.
+ // Promise.all can park several child calls together. Resolve one pending
+ // interruption per replay until every supplied child result is consumed.
// eslint-disable-next-line no-constant-condition
while (true) {
continuationOutput = await continueWorkflowSandboxInterrupt({
@@ -2871,7 +2867,6 @@ async function continuePendingWorkflowInterrupt(input: {
),
continuationSecurity,
interrupt: currentInterrupt,
- lifecycle,
resolution: childResults[resultIndex]?.output,
tools: hostTools,
});
@@ -2920,12 +2915,15 @@ async function continuePendingWorkflowInterrupt(input: {
const promptMessages = replacedMessages.slice(0, promptMessageCount);
const responseMessages = replacedMessages.slice(promptMessageCount);
session = { ...session, history: promptMessages };
- return parkOnWorkflowInterrupt({
+ return await parkOnWorkflowInterrupt({
baseSession: session,
+ emit: input.emit,
emissionState: input.emissionState,
interrupt: unwrapped.interrupt,
promptMessages,
responseMessages,
+ tools: input.tools,
+ usedCalls: pending.usedCalls,
});
}
@@ -2954,18 +2952,31 @@ function replaceWorkflowToolResult(
}) as ModelMessage[];
}
-function parkOnWorkflowInterrupt(input: {
+async function parkOnWorkflowInterrupt(input: {
readonly baseSession: HarnessSession;
+ readonly emit?: ToolLoopHarnessConfig["handleEvent"];
readonly emissionState: ReturnType<typeof getHarnessEmissionState>;
readonly interrupt: WorkflowSandboxInterrupt;
readonly promptMessages: readonly ModelMessage[];
readonly responseMessages: readonly ModelMessage[];
-}): StepResult {
- const interrupt = getWorkflowRuntimeActionInterrupts(input.interrupt)[0];
+ readonly tools: HarnessToolMap;
+ readonly usedCalls: number;
+}): Promise<StepResult> {
+ const interrupts = getWorkflowRuntimeActionInterrupts(input.interrupt);
+ const interrupt = interrupts[0];
if (interrupt === undefined) {
throw new Error("Workflow continuation contains no pending runtime-action interrupt.");
}
+ if (input.emit !== undefined) {
+ await emitWorkflowActionsRequested({
+ emit: input.emit,
+ emissionState: input.emissionState,
+ interrupts,
+ tools: input.tools,
+ });
+ }
+
const baseSession: HarnessSession = {
...input.baseSession,
history: [...input.promptMessages],
@@ -2975,6 +2986,7 @@ function parkOnWorkflowInterrupt(input: {
interrupt,
responseMessages: input.responseMessages,
session: baseSession,
+ usedCalls: input.usedCalls,
});
return { next: null, session: setHarnessEmissionState(parkedSession, input.emissionState) };
diff --git a/packages/eve/src/harness/workflow-interrupt-state.test.ts b/packages/eve/src/harness/workflow-interrupt-state.test.ts
new file mode 100644
index 000000000..e46f39a0f
--- /dev/null
+++ b/packages/eve/src/harness/workflow-interrupt-state.test.ts
@@ -0,0 +1,52 @@
+import { describe, expect, it } from "vitest";
+
+import { getPendingWorkflowInterrupt } from "#harness/workflow-interrupt-state.js";
+import { WORKFLOW_RUNTIME_ACTION_INTERRUPT_KIND } from "#harness/workflow-runtime-action-state.js";
+import type { SessionStateMap } from "#harness/types.js";
+
+describe("pending workflow interrupt state", () => {
+ it("reads the persisted call budget with an official runtime continuation", () => {
+ const state = {
+ "eve.harness.pendingWorkflowInterrupt": {
+ interrupt: {
+ continuation: {
+ outerToolCallId: "workflow-call",
+ pendingInterruptions: [],
+ resolutions: [],
+ version: 2,
+ },
+ interruptId: "workflow-call:tool-1:interrupt",
+ outerToolCallId: "workflow-call",
+ payload: { kind: WORKFLOW_RUNTIME_ACTION_INTERRUPT_KIND },
+ type: "code-mode-interrupt",
+ },
+ responseMessages: [],
+ usedCalls: 3,
+ },
+ } as SessionStateMap;
+
+ expect(getPendingWorkflowInterrupt(state)).toMatchObject({ usedCalls: 3 });
+ });
+
+ it("rejects pending state without a valid persisted call budget", () => {
+ const state = {
+ "eve.harness.pendingWorkflowInterrupt": {
+ interrupt: {
+ continuation: {
+ outerToolCallId: "workflow-call",
+ pendingInterruptions: [],
+ resolutions: [],
+ version: 2,
+ },
+ interruptId: "workflow-call:tool-1:interrupt",
+ outerToolCallId: "workflow-call",
+ payload: { kind: WORKFLOW_RUNTIME_ACTION_INTERRUPT_KIND },
+ type: "code-mode-interrupt",
+ },
+ responseMessages: [],
+ },
+ } as SessionStateMap;
+
+ expect(getPendingWorkflowInterrupt(state)).toBeUndefined();
+ });
+});
diff --git a/packages/eve/src/harness/workflow-interrupt-state.ts b/packages/eve/src/harness/workflow-interrupt-state.ts
index 302a17d6d..5367807bf 100644
--- a/packages/eve/src/harness/workflow-interrupt-state.ts
+++ b/packages/eve/src/harness/workflow-interrupt-state.ts
@@ -9,6 +9,7 @@ const PENDING_KEY = "eve.harness.pendingWorkflowInterrupt";
export interface PendingWorkflowInterrupt {
readonly interrupt: WorkflowSandboxInterrupt;
readonly responseMessages: readonly ModelMessage[];
+ readonly usedCalls: number;
}
export function getPendingWorkflowInterrupt(
@@ -19,9 +20,12 @@ export function getPendingWorkflowInterrupt(
if (!isWorkflowInterruptShape(value.interrupt) || !Array.isArray(value.responseMessages)) {
return undefined;
}
+ if (!Number.isSafeInteger(value.usedCalls) || (value.usedCalls as number) < 0) return undefined;
+
return {
interrupt: value.interrupt,
responseMessages: value.responseMessages as ModelMessage[],
+ usedCalls: value.usedCalls as number,
};
}
@@ -29,6 +33,7 @@ export function setPendingWorkflowInterrupt(input: {
readonly interrupt: WorkflowSandboxInterrupt;
readonly responseMessages: readonly ModelMessage[];
readonly session: HarnessSession;
+ readonly usedCalls: number;
}): HarnessSession {
return {
...input.session,
@@ -37,11 +42,25 @@ export function setPendingWorkflowInterrupt(input: {
[PENDING_KEY]: {
interrupt: input.interrupt,
responseMessages: input.responseMessages,
+ usedCalls: input.usedCalls,
} satisfies PendingWorkflowInterrupt,
},
};
}
+export function setPendingWorkflowUsedCalls(input: {
+ readonly session: HarnessSession;
+ readonly usedCalls: number;
+}): HarnessSession {
+ const pending = getPendingWorkflowInterrupt(input.session.state);
+ if (pending === undefined) return input.session;
+ return setPendingWorkflowInterrupt({
+ ...pending,
+ session: input.session,
+ usedCalls: input.usedCalls,
+ });
+}
+
export function clearPendingWorkflowInterrupt(session: HarnessSession): HarnessSession {
if (session.state?.[PENDING_KEY] === undefined) return session;
@@ -62,7 +81,10 @@ function isWorkflowInterruptShape(value: unknown): value is WorkflowSandboxInter
isRecord(value.payload) &&
value.payload.kind === WORKFLOW_RUNTIME_ACTION_INTERRUPT_KIND &&
isRecord(value.continuation) &&
- typeof value.continuation.outerToolCallId === "string"
+ value.continuation.version === 2 &&
+ typeof value.continuation.outerToolCallId === "string" &&
+ Array.isArray(value.continuation.pendingInterruptions) &&
+ Array.isArray(value.continuation.resolutions)
);
}
diff --git a/packages/eve/src/harness/workflow-lifecycle.test.ts b/packages/eve/src/harness/workflow-lifecycle.test.ts
index cc1924548..114b68deb 100644
--- a/packages/eve/src/harness/workflow-lifecycle.test.ts
+++ b/packages/eve/src/harness/workflow-lifecycle.test.ts
@@ -3,10 +3,15 @@ import { describe, expect, it } from "vitest";
import { ContextContainer, contextStorage } from "#context/container.js";
import type { HarnessEmissionState } from "#harness/emission.js";
-import { createWorkflowLifecycle } from "#harness/workflow-lifecycle.js";
+import {
+ emitWorkflowActionResults,
+ emitWorkflowActionsRequested,
+} from "#harness/workflow-lifecycle.js";
+import { WORKFLOW_RUNTIME_ACTION_INTERRUPT_KIND } from "#harness/workflow-runtime-action-state.js";
import type { HarnessToolMap } from "#harness/types.js";
import { defineState } from "#public/definitions/state.js";
import type { UnstampedMessageStreamEvent } from "#protocol/message.js";
+import type { WorkflowSandboxInterrupt } from "#shared/workflow-sandbox.js";
const emissionState: HarnessEmissionState = {
sequence: 2,
@@ -33,39 +38,71 @@ function createTools(): HarnessToolMap {
]);
}
-function nestedCall(replayed = false) {
+function workflowInterrupt(): WorkflowSandboxInterrupt {
+ const payload = {
+ kind: WORKFLOW_RUNTIME_ACTION_INTERRUPT_KIND,
+ runtimeAction: {
+ kind: "subagent-call" as const,
+ nodeId: "subagents/researcher",
+ subagentName: "researcher",
+ },
+ toolInput: { message: "Investigate" },
+ toolName: "researcher",
+ };
return {
- bridgeIndex: 1,
+ continuation: {
+ auth: {
+ alg: "HMAC-SHA256",
+ expiresAtMs: 2,
+ issuedAtMs: 1,
+ nonce: "nonce",
+ signature: "signature",
+ },
+ js: "return tools.researcher({ message: 'Investigate' })",
+ outerToolCallId: "outer-call",
+ pendingInterruptions: [
+ {
+ input: { message: "Investigate" },
+ interruptId: "outer-call:tool-1:interrupt",
+ payload,
+ runInterruptionId: "run-interruption-1",
+ toolCallId: "outer-call:tool-1",
+ toolName: "researcher",
+ },
+ ],
+ resolutions: [],
+ token: "token",
+ toolNames: ["researcher"],
+ version: 2,
+ },
input: { message: "Investigate" },
- inputBytes: 24,
- invocationId: "workflow-1",
+ interruptId: "outer-call:tool-1:interrupt",
outerToolCallId: "outer-call",
- replayed,
- startedAtMs: 10,
+ payload,
toolCallId: "outer-call:tool-1",
toolName: "researcher",
+ type: "code-mode-interrupt",
};
}
-describe("createWorkflowLifecycle", () => {
- it("emits nested subagent calls and results as action events", async () => {
+describe("workflow lifecycle projection", () => {
+ it("emits parked subagent calls and resumed results as action events", async () => {
const events: UnstampedMessageStreamEvent[] = [];
- const lifecycle = createWorkflowLifecycle({
- emit: async (event) => {
- events.push(event);
- },
+ const emit = async (event: UnstampedMessageStreamEvent) => {
+ events.push(event);
+ };
+
+ await emitWorkflowActionsRequested({
+ emit,
emissionState,
+ interrupts: [workflowInterrupt()],
tools: createTools(),
});
-
- await lifecycle.onNestedToolCall?.(nestedCall());
- await lifecycle.onNestedToolResult?.({
- ...nestedCall(),
- completedAtMs: 20,
- durationMs: 10,
- output: { value: "ok" },
- outputBytes: 14,
- status: "fulfilled",
+ await emitWorkflowActionResults({
+ emit,
+ emissionState,
+ interrupts: [workflowInterrupt()],
+ results: [{ output: { value: "ok" } }],
});
expect(events[0]).toMatchObject({
@@ -95,22 +132,15 @@ describe("createWorkflowLifecycle", () => {
});
});
- it("projects rejected child results through the shared result contract", async () => {
+ it("projects failed child results through the shared result contract", async () => {
const events: UnstampedMessageStreamEvent[] = [];
- const lifecycle = createWorkflowLifecycle({
+ await emitWorkflowActionResults({
emit: async (event) => {
events.push(event);
},
emissionState,
- tools: createTools(),
- });
-
- await lifecycle.onNestedToolResult?.({
- ...nestedCall(),
- completedAtMs: 20,
- durationMs: 10,
- error: new Error("child failed"),
- status: "rejected",
+ interrupts: [workflowInterrupt()],
+ results: [{ isError: true, output: "child failed" }],
});
expect(events[0]).toMatchObject({
@@ -122,40 +152,25 @@ describe("createWorkflowLifecycle", () => {
});
});
- it("skips replayed calls during continuation", async () => {
- const events: UnstampedMessageStreamEvent[] = [];
- const lifecycle = createWorkflowLifecycle({
- emit: async (event) => {
- events.push(event);
- },
- emissionState,
- skipReplayed: true,
- tools: createTools(),
- });
-
- await lifecycle.onNestedToolCall?.(nestedCall(true));
- expect(events).toEqual([]);
- });
-
- it("dispatches lifecycle events in the invoking context", async () => {
+ it("emits events in the invoking context", async () => {
const lifecycleDispatches = defineState<string[]>(
"test.workflow.lifecycle.dispatch-context",
() => [],
);
const buildSession = new ContextContainer();
const callSession = new ContextContainer();
- const lifecycle = await contextStorage.run(buildSession, async () =>
- createWorkflowLifecycle({
+
+ await contextStorage.run(callSession, () =>
+ emitWorkflowActionsRequested({
emit: async (event) => {
lifecycleDispatches.update((events) => [...events, event.type]);
},
emissionState,
+ interrupts: [workflowInterrupt()],
tools: createTools(),
}),
);
- await contextStorage.run(callSession, () => lifecycle.onNestedToolCall?.(nestedCall()));
-
expect(contextStorage.run(callSession, () => lifecycleDispatches.get())).toEqual([
"actions.requested",
]);
diff --git a/packages/eve/src/harness/workflow-lifecycle.ts b/packages/eve/src/harness/workflow-lifecycle.ts
index f270ca01e..adad4be1f 100644
--- a/packages/eve/src/harness/workflow-lifecycle.ts
+++ b/packages/eve/src/harness/workflow-lifecycle.ts
@@ -4,71 +4,64 @@ import { createRuntimeToolResultFromValue } from "#harness/action-result-helpers
import type { HarnessEmissionState } from "#harness/emission.js";
import { createRuntimeActionRequestFromToolCall } from "#harness/runtime-actions.js";
import type { HarnessToolMap } from "#harness/types.js";
-import { createLogger } from "#internal/logging.js";
import {
createActionResultEvent,
createActionsRequestedEvent,
type UnstampedMessageStreamEvent,
} from "#protocol/message.js";
-import { toErrorMessage } from "#shared/errors.js";
-import type { WorkflowSandboxLifecycle } from "#shared/workflow-sandbox.js";
-
-const log = createLogger("harness.workflow-lifecycle");
+import type { WorkflowSandboxInterrupt } from "#shared/workflow-sandbox.js";
type EmitWorkflowLifecycleEvent = (event: UnstampedMessageStreamEvent) => Promise<void>;
-/** Projects sandboxed subagent calls onto eve's existing action event stream. */
-export function createWorkflowLifecycle(input: {
+/** Projects newly parked workflow calls onto eve's existing action stream. */
+export async function emitWorkflowActionsRequested(input: {
readonly emit: EmitWorkflowLifecycleEvent;
readonly emissionState: HarnessEmissionState;
- readonly skipReplayed?: boolean;
+ readonly interrupts: readonly WorkflowSandboxInterrupt[];
readonly tools: HarnessToolMap;
-}): WorkflowSandboxLifecycle {
- return {
- onHookError(error, event) {
- log.warn("workflow lifecycle hook failed", {
- error,
- hook: event.hook,
- });
- },
- async onNestedToolCall(event) {
- if (input.skipReplayed === true && event.replayed) return;
-
- const toolCall = {
- input: event.input,
- toolCallId: event.toolCallId,
- toolName: event.toolName,
- type: "tool-call",
- } as TypedToolCall<ToolSet>;
+}): Promise<void> {
+ for (const interrupt of input.interrupts) {
+ const toolCall = {
+ input: interrupt.input,
+ toolCallId: interrupt.toolCallId,
+ toolName: interrupt.toolName,
+ type: "tool-call",
+ } as TypedToolCall<ToolSet>;
- await input.emit(
- createActionsRequestedEvent({
- actions: [createRuntimeActionRequestFromToolCall({ toolCall, tools: input.tools })],
- sequence: input.emissionState.sequence,
- stepIndex: input.emissionState.stepIndex,
- turnId: input.emissionState.turnId,
- }),
- );
- },
- async onNestedToolResult(event) {
- if (input.skipReplayed === true && event.replayed) return;
- if (event.status === "interrupted") return;
+ await input.emit(
+ createActionsRequestedEvent({
+ actions: [createRuntimeActionRequestFromToolCall({ toolCall, tools: input.tools })],
+ sequence: input.emissionState.sequence,
+ stepIndex: input.emissionState.stepIndex,
+ turnId: input.emissionState.turnId,
+ }),
+ );
+ }
+}
- const result = createRuntimeToolResultFromValue({
- callId: event.toolCallId,
- output: event.status === "rejected" ? toErrorMessage(event.error) : event.output,
- toolName: event.toolName,
- isError: event.status === "rejected",
- });
+/** Projects completed workflow children before replaying their continuation. */
+export async function emitWorkflowActionResults(input: {
+ readonly emit: EmitWorkflowLifecycleEvent;
+ readonly emissionState: HarnessEmissionState;
+ readonly interrupts: readonly WorkflowSandboxInterrupt[];
+ readonly results: readonly { readonly isError?: boolean; readonly output?: unknown }[];
+}): Promise<void> {
+ for (const [index, result] of input.results.entries()) {
+ const interrupt = input.interrupts[index];
+ if (interrupt === undefined) break;
- await input.emit(
- createActionResultEvent({
- result,
- sequence: input.emissionState.sequence,
- stepIndex: input.emissionState.stepIndex,
- turnId: input.emissionState.turnId,
+ await input.emit(
+ createActionResultEvent({
+ result: createRuntimeToolResultFromValue({
+ callId: interrupt.toolCallId,
+ isError: result.isError,
+ output: result.output,
+ toolName: interrupt.toolName,
}),
- );
- },
- };
+ sequence: input.emissionState.sequence,
+ stepIndex: input.emissionState.stepIndex,
+ turnId: input.emissionState.turnId,
+ }),
+ );
+ }
}
diff --git a/packages/eve/src/harness/workflow-runtime-action-state.test.ts b/packages/eve/src/harness/workflow-runtime-action-state.test.ts
index e57b025c6..d649b6113 100644
--- a/packages/eve/src/harness/workflow-runtime-action-state.test.ts
+++ b/packages/eve/src/harness/workflow-runtime-action-state.test.ts
@@ -9,6 +9,26 @@ import {
import type { WorkflowSandboxInterrupt } from "#shared/workflow-sandbox.js";
function concurrentWorkflowInterrupt(): WorkflowSandboxInterrupt {
+ const pendingInterruptions = ["alpha", "beta"].map((message, index) => {
+ const toolCallId = `workflow-call:tool-${index + 1}`;
+ return {
+ input: { message },
+ interruptId: `${toolCallId}:interrupt`,
+ payload: {
+ kind: WORKFLOW_RUNTIME_ACTION_INTERRUPT_KIND,
+ runtimeAction: {
+ kind: "subagent-call" as const,
+ nodeId: "subagents/echo-marker",
+ subagentName: "echo-marker",
+ },
+ toolInput: { message },
+ toolName: "echo-marker",
+ },
+ runInterruptionId: `run-interruption-${index + 1}`,
+ toolCallId,
+ toolName: "echo-marker",
+ };
+ });
const continuation = {
auth: {
alg: "HMAC-SHA256" as const,
@@ -17,51 +37,30 @@ function concurrentWorkflowInterrupt(): WorkflowSandboxInterrupt {
nonce: "nonce",
signature: "signature",
},
- determinism: {
- dateNowMs: 1,
- randomSeed: "00000000000000000000000000000000",
- },
js: "return Promise.all([])",
- ledger: ["alpha", "beta"].map((message, index) => {
- const toolCallId = `workflow-call:tool-${index + 1}`;
- return {
- inputJson: JSON.stringify({ message }),
- interruptId: `${toolCallId}:interrupt`,
- interruptPayload: {
- kind: WORKFLOW_RUNTIME_ACTION_INTERRUPT_KIND,
- runtimeAction: {
- kind: "subagent-call" as const,
- nodeId: "subagents/echo-marker",
- subagentName: "echo-marker",
- },
- toolInput: { message },
- toolName: "echo-marker",
- },
- kind: "tool" as const,
- name: "echo-marker",
- status: "interrupted" as const,
- toolCallId,
- };
- }),
outerToolCallId: "workflow-call",
- version: 1 as const,
+ pendingInterruptions,
+ resolutions: [],
+ token: "token",
+ toolNames: ["echo-marker"],
+ version: 2 as const,
};
- const returned = continuation.ledger[1]!;
+ const returned = pendingInterruptions[1]!;
return {
continuation,
input: { message: "beta" },
interruptId: returned.interruptId,
outerToolCallId: continuation.outerToolCallId,
- payload: returned.interruptPayload,
+ payload: returned.payload,
toolCallId: returned.toolCallId,
- toolName: returned.name,
+ toolName: returned.toolName,
type: "code-mode-interrupt",
};
}
describe("workflow runtime action state", () => {
- it("derives concurrent actions in ledger order when a later interrupt wins the race", () => {
+ it("derives concurrent actions in request order when a later interrupt wins the race", () => {
const interrupt = concurrentWorkflowInterrupt();
const pending = getWorkflowRuntimeActionInterrupts(interrupt);
@@ -93,4 +92,22 @@ describe("workflow runtime action state", () => {
"subagent-call:echo-marker:echo-marker_workflow-call_tool-2_interrupt",
]);
});
+
+ it("excludes interruptions already resolved in the current continuation batch", () => {
+ const interrupt = concurrentWorkflowInterrupt();
+ const resumed = {
+ ...interrupt,
+ continuation: {
+ ...interrupt.continuation,
+ resolutions: [{ runInterruptionId: "run-interruption-1", value: "alpha-result" }],
+ },
+ input: { message: "beta" },
+ interruptId: "workflow-call:tool-2:interrupt",
+ toolCallId: "workflow-call:tool-2",
+ };
+
+ expect(getWorkflowRuntimeActionInterrupts(resumed).map((entry) => entry.input)).toEqual([
+ { message: "beta" },
+ ]);
+ });
});
diff --git a/packages/eve/src/harness/workflow-runtime-action-state.ts b/packages/eve/src/harness/workflow-runtime-action-state.ts
index e6d4a3466..19d71f2c8 100644
--- a/packages/eve/src/harness/workflow-runtime-action-state.ts
+++ b/packages/eve/src/harness/workflow-runtime-action-state.ts
@@ -2,7 +2,10 @@ import type { HarnessRuntimeActionDefinition } from "#harness/execute-tool.js";
import { getRuntimeActionRequestKey } from "#runtime/actions/keys.js";
import type { RuntimeActionRequest } from "#shared/action-types.js";
import type { JsonObject } from "#shared/json.js";
-import type { WorkflowSandboxInterrupt } from "#shared/workflow-sandbox.js";
+import {
+ getWorkflowSandboxPendingInterrupts,
+ type WorkflowSandboxInterrupt,
+} from "#shared/workflow-sandbox.js";
export const WORKFLOW_RUNTIME_ACTION_INTERRUPT_KIND = "eve.workflow-runtime-action";
@@ -53,32 +56,11 @@ export function buildRuntimeActionFromWorkflowInterrupt(
throw new Error(`Workflow runtime actions cannot carry "${runtimeAction.kind}" tools.`);
}
-/** Returns every pending runtime-action interrupt in deterministic ledger order. */
+/** Returns every pending runtime-action interrupt in deterministic request order. */
export function getWorkflowRuntimeActionInterrupts(
interrupt: WorkflowSandboxInterrupt,
): WorkflowSandboxInterrupt[] {
- return interrupt.continuation.ledger.flatMap((entry) => {
- if (
- entry.kind !== "tool" ||
- entry.status !== "interrupted" ||
- entry.interruptPayload.kind !== WORKFLOW_RUNTIME_ACTION_INTERRUPT_KIND
- ) {
- return [];
- }
-
- return [
- {
- continuation: interrupt.continuation,
- input: entry.inputJson === "" ? undefined : JSON.parse(entry.inputJson),
- interruptId: entry.interruptId,
- outerToolCallId: interrupt.continuation.outerToolCallId,
- payload: entry.interruptPayload,
- toolCallId: entry.toolCallId,
- toolName: entry.name,
- type: "code-mode-interrupt" as const,
- },
- ];
- });
+ return getWorkflowSandboxPendingInterrupts(interrupt).filter(isWorkflowRuntimeActionInterrupt);
}
export function buildRuntimeActionsFromWorkflowInterrupt(
diff --git a/packages/eve/src/harness/workflow-sandbox.scenario.test.ts b/packages/eve/src/harness/workflow-sandbox.scenario.test.ts
index 6b634643f..59521e57c 100644
--- a/packages/eve/src/harness/workflow-sandbox.scenario.test.ts
+++ b/packages/eve/src/harness/workflow-sandbox.scenario.test.ts
@@ -12,7 +12,6 @@ import type { HarnessToolMap } from "#harness/types.js";
import {
continueWorkflowSandboxInterrupt,
getWorkflowSandboxInterrupt,
- type WorkflowSandboxLifecycle,
unwrapWorkflowSandboxResult,
} from "#shared/workflow-sandbox.js";
@@ -60,15 +59,9 @@ const continuationSecurity = {
describe("Workflow concurrent continuation", () => {
it("collects fan-out above code mode's default in-flight bridge limit", async () => {
const tools = orchestrationTools();
- const lifecycle: WorkflowSandboxLifecycle = {
- async onNestedToolCall() {
- await new Promise((resolve) => setTimeout(resolve, 50));
- },
- };
const { modelTools } = await applyWorkflowTool({
continuationSecurity,
harnessTools: tools,
- lifecycle,
maxSubagents: 100,
tools: buildToolSet({ tools }),
});
@@ -132,19 +125,11 @@ describe("Workflow concurrent continuation", () => {
]);
});
- it("preserves and resolves sibling interrupts when a later call interrupts first", async () => {
+ it("preserves and resolves sibling interrupts in request order", async () => {
const tools = orchestrationTools();
- const lifecycle: WorkflowSandboxLifecycle = {
- async onNestedToolCall(event) {
- if ((event.input as { message?: string }).message === "alpha") {
- await new Promise((resolve) => setTimeout(resolve, 25));
- }
- },
- };
const { hostTools, modelTools } = await applyWorkflowTool({
continuationSecurity,
harnessTools: tools,
- lifecycle,
tools: buildToolSet({ tools }),
});
const execute = modelTools.Workflow?.execute as
@@ -157,7 +142,6 @@ describe("Workflow concurrent continuation", () => {
{ messages: [], toolCallId: "workflow-call" },
);
const racedInterrupt = await getWorkflowSandboxInterrupt(initialOutput, continuationSecurity);
- expect(racedInterrupt?.input).toEqual({ message: "beta" });
const pending = getWorkflowRuntimeActionInterrupts(racedInterrupt!);
expect(pending.map((interrupt) => interrupt.input)).toEqual([
@@ -169,7 +153,6 @@ describe("Workflow concurrent continuation", () => {
bridgeRequestLimit: resolveWorkflowSandboxBridgeRequestLimit(),
continuationSecurity,
interrupt: pending[0]!,
- lifecycle,
resolution: "alpha-result",
tools: hostTools,
});
@@ -187,7 +170,6 @@ describe("Workflow concurrent continuation", () => {
bridgeRequestLimit: resolveWorkflowSandboxBridgeRequestLimit(),
continuationSecurity,
interrupt: firstUnwrapped.interrupt,
- lifecycle,
resolution: "beta-result",
tools: hostTools,
});
diff --git a/packages/eve/src/harness/workflow-sandbox.ts b/packages/eve/src/harness/workflow-sandbox.ts
index 9ee7cb660..dc742a4b4 100644
--- a/packages/eve/src/harness/workflow-sandbox.ts
+++ b/packages/eve/src/harness/workflow-sandbox.ts
@@ -11,7 +11,6 @@ import {
readWorkflowSandboxResolution,
requestWorkflowSandboxInterrupt,
type WorkflowSandboxContinuationSecurity,
- type WorkflowSandboxLifecycle,
WORKFLOW_TOOL_NAME,
} from "#shared/workflow-sandbox.js";
@@ -37,7 +36,6 @@ const workflowInputSchema = z.strictObject({
export async function applyWorkflowTool(input: {
readonly continuationSecurity: WorkflowSandboxContinuationSecurity;
readonly harnessTools: HarnessToolMap;
- readonly lifecycle?: WorkflowSandboxLifecycle;
readonly maxSubagents?: number;
readonly tools: ToolSet;
}): Promise<WorkflowToolSet> {
@@ -51,7 +49,6 @@ export async function applyWorkflowTool(input: {
bridgeRequestLimit: resolveWorkflowSandboxBridgeRequestLimit(input.maxSubagents),
continuationSecurity: input.continuationSecurity,
hostTools,
- lifecycle: input.lifecycle,
});
const generated = typeof workflowTool.description === "string" ? workflowTool.description : "";
const framing = workflowToolDescription(Object.keys(hostTools), {
diff --git a/packages/eve/src/harness/workflow-subagent-limit.test.ts b/packages/eve/src/harness/workflow-subagent-limit.test.ts
index 346d4a076..e34d27345 100644
--- a/packages/eve/src/harness/workflow-subagent-limit.test.ts
+++ b/packages/eve/src/harness/workflow-subagent-limit.test.ts
@@ -1,75 +1,10 @@
import { describe, expect, it } from "vitest";
-import { WORKFLOW_RUNTIME_ACTION_INTERRUPT_KIND } from "#harness/workflow-runtime-action-state.js";
import {
- countResolvedWorkflowSubagentCalls,
DEFAULT_WORKFLOW_MAX_SUBAGENTS,
planWorkflowSubagentDispatch,
} from "#harness/workflow-subagent-limit.js";
import type { RuntimeActionRequest } from "#shared/action-types.js";
-import type { WorkflowSandboxInterrupt } from "#shared/workflow-sandbox.js";
-
-type LedgerEntry = WorkflowSandboxInterrupt["continuation"]["ledger"][number];
-
-function fulfilledEntry(index: number): LedgerEntry {
- return {
- dateNowMs: 1,
- inputJson: JSON.stringify({ message: `done-${index}` }),
- kind: "tool",
- name: "echo-marker",
- status: "fulfilled",
- toolCallId: `workflow-call:tool-${index}`,
- valueJson: JSON.stringify({ output: "ok" }),
- };
-}
-
-function interruptedEntry(index: number): LedgerEntry {
- const toolCallId = `workflow-call:tool-${index}`;
- return {
- inputJson: JSON.stringify({ message: `pending-${index}` }),
- interruptId: `${toolCallId}:interrupt`,
- interruptPayload: {
- kind: WORKFLOW_RUNTIME_ACTION_INTERRUPT_KIND,
- runtimeAction: {
- kind: "subagent-call",
- nodeId: "subagents/echo-marker",
- subagentName: "echo-marker",
- },
- toolInput: { message: `pending-${index}` },
- toolName: "echo-marker",
- },
- kind: "tool",
- name: "echo-marker",
- status: "interrupted",
- toolCallId,
- };
-}
-
-function createInterrupt(ledger: LedgerEntry[]): WorkflowSandboxInterrupt {
- return {
- continuation: {
- auth: {
- alg: "HMAC-SHA256",
- expiresAtMs: 2,
- issuedAtMs: 1,
- nonce: "nonce",
- signature: "signature",
- },
- determinism: { dateNowMs: 1, randomSeed: "00000000000000000000000000000000" },
- js: "return 1",
- ledger,
- outerToolCallId: "workflow-call",
- version: 1,
- },
- input: {},
- interruptId: "workflow-call:tool-1:interrupt",
- outerToolCallId: "workflow-call",
- payload: { kind: WORKFLOW_RUNTIME_ACTION_INTERRUPT_KIND },
- toolCallId: "workflow-call:tool-1",
- toolName: "echo-marker",
- type: "code-mode-interrupt",
- };
-}
function createAction(index: number): RuntimeActionRequest {
return {
@@ -83,33 +18,13 @@ function createAction(index: number): RuntimeActionRequest {
};
}
-describe("countResolvedWorkflowSubagentCalls", () => {
- it("counts fulfilled and rejected tool entries but not pending interrupts", () => {
- const interrupt = createInterrupt([
- fulfilledEntry(1),
- {
- dateNowMs: 1,
- error: { message: "boom", name: "Error" },
- inputJson: "{}",
- kind: "tool",
- name: "echo-marker",
- status: "rejected",
- toolCallId: "workflow-call:tool-2",
- },
- interruptedEntry(3),
- ]);
-
- expect(countResolvedWorkflowSubagentCalls(interrupt)).toBe(2);
- });
-});
-
describe("planWorkflowSubagentDispatch", () => {
it("allows every pending action while the budget holds", () => {
const actions = [createAction(1), createAction(2)];
const plan = planWorkflowSubagentDispatch({
actions,
- interrupt: createInterrupt([interruptedEntry(1), interruptedEntry(2)]),
maxSubagents: 3,
+ usedCalls: 0,
});
expect(plan.allowed).toEqual(actions);
@@ -117,15 +32,12 @@ describe("planWorkflowSubagentDispatch", () => {
expect(plan.usedCalls).toBe(0);
});
- it("blocks the actions beyond the remaining budget, preserving ledger order", () => {
+ it("blocks actions beyond the remaining budget while preserving order", () => {
const actions = [createAction(1), createAction(2), createAction(3)];
const plan = planWorkflowSubagentDispatch({
actions,
- interrupt: createInterrupt([
- fulfilledEntry(0),
- ...actions.map((_, i) => interruptedEntry(i + 1)),
- ]),
maxSubagents: 3,
+ usedCalls: 1,
});
expect(plan.allowed).toEqual([actions[0], actions[1]]);
@@ -133,11 +45,11 @@ describe("planWorkflowSubagentDispatch", () => {
expect(plan.usedCalls).toBe(1);
});
- it("blocks everything once the budget is spent", () => {
+ it("blocks everything once the persisted budget is spent", () => {
const plan = planWorkflowSubagentDispatch({
actions: [createAction(1)],
- interrupt: createInterrupt([fulfilledEntry(1), fulfilledEntry(2), interruptedEntry(3)]),
maxSubagents: 2,
+ usedCalls: 2,
});
expect(plan.allowed).toEqual([]);
@@ -147,7 +59,7 @@ describe("planWorkflowSubagentDispatch", () => {
it("defaults the budget to DEFAULT_WORKFLOW_MAX_SUBAGENTS", () => {
const plan = planWorkflowSubagentDispatch({
actions: [createAction(1)],
- interrupt: createInterrupt([interruptedEntry(1)]),
+ usedCalls: 0,
});
expect(plan.maxSubagents).toBe(DEFAULT_WORKFLOW_MAX_SUBAGENTS);
diff --git a/packages/eve/src/harness/workflow-subagent-limit.ts b/packages/eve/src/harness/workflow-subagent-limit.ts
index 574a665eb..2e323c35c 100644
--- a/packages/eve/src/harness/workflow-subagent-limit.ts
+++ b/packages/eve/src/harness/workflow-subagent-limit.ts
@@ -1,5 +1,4 @@
import type { RuntimeActionRequest } from "#shared/action-types.js";
-import type { WorkflowSandboxInterrupt } from "#shared/workflow-sandbox.js";
/**
* Default maximum number of subagent (and remote-agent) calls one `Workflow`
@@ -19,37 +18,19 @@ export type WorkflowSubagentDispatchPlan = {
readonly usedCalls: number;
};
-/**
- * Counts the subagent calls this Workflow invocation has already resolved.
- *
- * Every host tool bridged into the workflow sandbox is a subagent or
- * remote-agent call, so each fulfilled or rejected `tool` ledger entry is one
- * consumed call. Entries still `interrupted` are the pending actions being
- * planned, not consumed budget.
- */
-export function countResolvedWorkflowSubagentCalls(interrupt: WorkflowSandboxInterrupt): number {
- let count = 0;
- for (const entry of interrupt.continuation.ledger) {
- if (entry.kind === "tool" && entry.status !== "interrupted") {
- count += 1;
- }
- }
- return count;
-}
-
/**
* Splits the pending actions of one workflow interrupt into the prefix that
* still fits the invocation's `maxSubagents` budget and the remainder that
- * must be blocked. Actions keep ledger order so results pair with the
- * sandbox program's call order.
+ * must be blocked. Actions keep request order so results pair with the sandbox
+ * program's call order.
*/
export function planWorkflowSubagentDispatch(input: {
readonly actions: readonly RuntimeActionRequest[];
- readonly interrupt: WorkflowSandboxInterrupt;
readonly maxSubagents?: number;
+ readonly usedCalls: number;
}): WorkflowSubagentDispatchPlan {
const maxSubagents = input.maxSubagents ?? DEFAULT_WORKFLOW_MAX_SUBAGENTS;
- const usedCalls = countResolvedWorkflowSubagentCalls(input.interrupt);
+ const usedCalls = input.usedCalls;
const remaining = Math.max(0, maxSubagents - usedCalls);
return {
diff --git a/packages/eve/src/internal/nitro/host/workflow-sandbox-runtime-plugin.ts b/packages/eve/src/internal/nitro/host/workflow-sandbox-runtime-plugin.ts
index a7714cbc1..9753fd435 100644
--- a/packages/eve/src/internal/nitro/host/workflow-sandbox-runtime-plugin.ts
+++ b/packages/eve/src/internal/nitro/host/workflow-sandbox-runtime-plugin.ts
@@ -1,10 +1,10 @@
import {
- continueCodeModeInterrupt,
- createCodeModeTool,
- getCodeModeInterrupt,
- requestCodeModeInterrupt,
- unwrapCodeModeResult,
-} from "#compiled/experimental-ai-sdk-code-mode/index.js";
+ experimental_continueCodeModeInterrupt as continueCodeModeInterrupt,
+ experimental_createCodeModeTool as createCodeModeTool,
+ experimental_getCodeModeInterrupt as getCodeModeInterrupt,
+ experimental_requestCodeModeInterrupt as requestCodeModeInterrupt,
+ experimental_unwrapCodeModeResult as unwrapCodeModeResult,
+} from "#compiled/@ai-sdk/code-mode/index.js";
import { installWorkflowSandboxModule } from "#shared/workflow-sandbox.js";
installWorkflowSandboxModule({
diff --git a/packages/eve/src/shared/workflow-sandbox.ts b/packages/eve/src/shared/workflow-sandbox.ts
index 4d3594b3b..9da5c7b6d 100644
--- a/packages/eve/src/shared/workflow-sandbox.ts
+++ b/packages/eve/src/shared/workflow-sandbox.ts
@@ -1,31 +1,27 @@
import type { ToolSet } from "ai";
-import type * as CodeModeModule from "#compiled/experimental-ai-sdk-code-mode/index.js";
+import type * as CodeModeModule from "#compiled/@ai-sdk/code-mode/index.js";
/** Model-facing tool name for eve's dynamic subagent orchestration tool. */
export const WORKFLOW_TOOL_NAME = "Workflow";
const WORKFLOW_SANDBOX_MODULE_KEY = Symbol.for("eve.workflowSandbox.module");
-const WORKFLOW_SANDBOX_MODULE_SPECIFIER = [
- "#compiled",
- "experimental-ai-sdk-code-mode",
- "index.js",
-].join("/");
-
-type WorkflowSandboxModule = Pick<
- typeof CodeModeModule,
- | "continueCodeModeInterrupt"
- | "createCodeModeTool"
- | "getCodeModeInterrupt"
- | "requestCodeModeInterrupt"
- | "unwrapCodeModeResult"
->;
+const WORKFLOW_SANDBOX_MODULE_SPECIFIER = ["#compiled", "@ai-sdk", "code-mode", "index.js"].join(
+ "/",
+);
+
+type WorkflowSandboxModule = {
+ readonly continueCodeModeInterrupt: typeof CodeModeModule.experimental_continueCodeModeInterrupt;
+ readonly createCodeModeTool: typeof CodeModeModule.experimental_createCodeModeTool;
+ readonly getCodeModeInterrupt: typeof CodeModeModule.experimental_getCodeModeInterrupt;
+ readonly requestCodeModeInterrupt: typeof CodeModeModule.experimental_requestCodeModeInterrupt;
+ readonly unwrapCodeModeResult: typeof CodeModeModule.experimental_unwrapCodeModeResult;
+};
type WorkflowSandboxGlobal = typeof globalThis & {
[WORKFLOW_SANDBOX_MODULE_KEY]?: WorkflowSandboxModule;
};
export type WorkflowSandboxInterrupt = CodeModeModule.CodeModeInterrupt;
-export type WorkflowSandboxLifecycle = NonNullable<CodeModeModule.CodeModeOptions["lifecycle"]>;
export type WorkflowSandboxContinuationSecurity =
CodeModeModule.CodeModeContinuationSecurityOptions;
@@ -39,16 +35,11 @@ export async function createWorkflowSandboxTool(input: {
readonly bridgeRequestLimit: number;
readonly continuationSecurity: WorkflowSandboxContinuationSecurity;
readonly hostTools: ToolSet;
- readonly lifecycle?: WorkflowSandboxLifecycle;
}): Promise<ToolSet[string]> {
const { createCodeModeTool } = await loadWorkflowSandboxModule();
return createCodeModeTool(
input.hostTools,
- createWorkflowSandboxOptions(
- input.bridgeRequestLimit,
- input.continuationSecurity,
- input.lifecycle,
- ),
+ createWorkflowSandboxOptions(input.bridgeRequestLimit, input.continuationSecurity),
) as ToolSet[string];
}
@@ -74,18 +65,13 @@ export async function continueWorkflowSandboxInterrupt(input: {
readonly bridgeRequestLimit: number;
readonly continuationSecurity: WorkflowSandboxContinuationSecurity;
readonly interrupt: WorkflowSandboxInterrupt;
- readonly lifecycle?: WorkflowSandboxLifecycle;
readonly resolution: unknown;
readonly tools: ToolSet;
}): Promise<unknown> {
const { continueCodeModeInterrupt } = await loadWorkflowSandboxModule();
return continueCodeModeInterrupt({
interrupt: input.interrupt,
- options: createWorkflowSandboxOptions(
- input.bridgeRequestLimit,
- input.continuationSecurity,
- input.lifecycle,
- ),
+ options: createWorkflowSandboxOptions(input.bridgeRequestLimit, input.continuationSecurity),
resolution: input.resolution,
tools: input.tools,
} as never);
@@ -111,20 +97,44 @@ export function readWorkflowSandboxResolution(options: unknown): unknown {
return (interrupt as Record<string, unknown>).resolution;
}
+/** Reconstructs every unresolved interruption from the authenticated continuation. */
+export function getWorkflowSandboxPendingInterrupts(
+ interrupt: WorkflowSandboxInterrupt,
+): WorkflowSandboxInterrupt[] {
+ const continuation = interrupt.continuation;
+ const resolved = new Set(
+ continuation.resolutions.map((resolution) => resolution.runInterruptionId),
+ );
+
+ return continuation.pendingInterruptions.flatMap((pending) =>
+ resolved.has(pending.runInterruptionId)
+ ? []
+ : [
+ {
+ continuation,
+ input: pending.input,
+ interruptId: pending.interruptId,
+ outerToolCallId: continuation.outerToolCallId,
+ payload: pending.payload,
+ toolCallId: pending.toolCallId,
+ toolName: pending.toolName,
+ type: "code-mode-interrupt" as const,
+ },
+ ],
+ );
+}
+
function createWorkflowSandboxOptions(
bridgeRequestLimit: number,
continuationSecurity: WorkflowSandboxContinuationSecurity,
- lifecycle: WorkflowSandboxLifecycle | undefined,
): CodeModeModule.CodeModeOptions {
- const options: CodeModeModule.CodeModeOptions = {
+ return {
continuationSecurity,
executionPolicy: {
maxBridgeRequests: bridgeRequestLimit,
maxInFlightBridgeRequests: bridgeRequestLimit,
},
};
- if (lifecycle !== undefined) options.lifecycle = lifecycle;
- return options;
}
async function loadWorkflowSandboxModule(): Promise<WorkflowSandboxModule> {
@@ -136,5 +146,12 @@ async function loadWorkflowSandboxModule(): Promise<WorkflowSandboxModule> {
}
async function importWorkflowSandboxModule(specifier: string): Promise<WorkflowSandboxModule> {
- return (await import(specifier)) as WorkflowSandboxModule;
+ const module = (await import(specifier)) as typeof CodeModeModule;
+ return {
+ continueCodeModeInterrupt: module.experimental_continueCodeModeInterrupt,
+ createCodeModeTool: module.experimental_createCodeModeTool,
+ getCodeModeInterrupt: module.experimental_getCodeModeInterrupt,
+ requestCodeModeInterrupt: module.experimental_requestCodeModeInterrupt,
+ unwrapCodeModeResult: module.experimental_unwrapCodeModeResult,
+ };
}
diff --git a/packages/eve/test/scenarios/app-runtime-dependencies.scenario.test.ts b/packages/eve/test/scenarios/app-runtime-dependencies.scenario.test.ts
index 1af9428ca..63c2a60ef 100644
--- a/packages/eve/test/scenarios/app-runtime-dependencies.scenario.test.ts
+++ b/packages/eve/test/scenarios/app-runtime-dependencies.scenario.test.ts
@@ -362,6 +362,10 @@ describe("app runtime dependency tracing", () => {
// The Workflow sandbox runtime ships bundled inline, never traced — and
// these apps do not declare the optional just-bash engine, so its
// quickjs dependency must not sneak into the trace either.
+ expect(disabledTracedPackageJson.dependencies).not.toHaveProperty("@ai-sdk/code-mode");
+ expect(tracedServerPackageJson.dependencies).not.toHaveProperty("@ai-sdk/code-mode");
+ expect(disabledTracedPackageJson.dependencies).not.toHaveProperty("run");
+ expect(tracedServerPackageJson.dependencies).not.toHaveProperty("run");
expect(disabledTracedPackageJson.dependencies).not.toHaveProperty("quickjs-emscripten");
expect(tracedServerPackageJson.dependencies).not.toHaveProperty("quickjs-emscripten");
}, 60_000);
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 852f21a86..6aa95a4e7 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -23,10 +23,10 @@ catalogs:
version: 1.0.58
'@ai-sdk/provider':
specifier: ^4.0.7
- version: 4.0.7
+ version: 4.0.8
'@ai-sdk/provider-utils':
specifier: ^5.0.25
- version: 5.0.25
+ version: 5.0.33
'@opentelemetry/context-async-hooks':
specifier: 2.6.1
version: 2.6.1
@@ -64,8 +64,8 @@ catalogs:
specifier: 5.0.0-beta.35
version: 5.0.0-beta.35
ai:
- specifier: ^7.0.58
- version: 7.0.58
+ specifier: ^7.0.82
+ version: 7.0.84
marked:
specifier: 17.0.6
version: 17.0.6
@@ -256,10 +256,10 @@ importers:
version: 0.33.0(@vercel/[email protected])(eve@packages+eve)
'@agentphone/chat-sdk-adapter':
specifier: 0.1.0
'@beeper/chat-adapter-matrix':
specifier: 0.2.0
'@blitzreels/eve':
specifier: ^0.2.1
version: 0.2.1(eve@packages+eve)
@@ -268,49 +268,49 @@ importers:
version: 0.1.0(@cfworker/[email protected])(eve@packages+eve)([email protected])
'@chat-adapter/gchat':
specifier: 4.34.0
'@chat-adapter/messenger':
specifier: 4.34.0
'@chat-adapter/state-memory':
specifier: 4.34.0
'@chat-adapter/whatsapp':
specifier: 4.34.0
'@chat-adapter/x':
specifier: 4.34.0
'@eve/self-modification':
specifier: workspace:*
version: link:../../packages/eve-self-modification
'@getdial/chat-sdk-adapter':
specifier: 0.2.0
'@github-tools/eve-extension':
specifier: ^0.1.0
'@jetty/eve':
specifier: ^0.3.0
version: 0.3.0(eve@packages+eve)
'@kapso/chat-adapter':
specifier: 0.1.1
'@kybernesis/arcana':
specifier: 0.2.0
version: 0.2.0(eve@packages+eve)
'@larksuite/vercel-chat-adapter':
specifier: 0.1.2
'@liveblocks/chat-sdk-adapter':
specifier: 3.23.0
'@novu/chat-sdk-adapter':
specifier: 0.1.0
'@onkernel/eve-extension':
specifier: ^0.1.3
'@opentelemetry/api':
specifier: 1.9.1
version: 1.9.1
@@ -325,7 +325,7 @@ importers:
'@resend/chat-sdk-adapter':
specifier: 0.2.2
'@supermemory/eve':
specifier: 0.1.0
version: 0.1.0(eve@packages+eve)
@@ -358,10 +358,10 @@ importers:
version: 0.2.1(eve@packages+eve)
'@veltdev/chat-sdk-adapter':
specifier: 0.2.4
'@vercel/connect':
specifier: 'catalog:'
'@vercel/otel':
specifier: 'catalog:'
version: 2.1.3(@opentelemetry/[email protected])(@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected])([email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))
@@ -373,22 +373,22 @@ importers:
version: 0.1.71
'@zernio/chat-sdk-adapter':
specifier: 0.5.0
braintrust:
specifier: 3.24.0
chat:
specifier: 4.34.0
chat-adapter-sendblue:
specifier: 0.2.0
eve:
specifier: workspace:*
version: link:../../packages/eve
eve-channel-blooio:
specifier: 0.2.0
- version: 0.2.0([email protected]([email protected]))(eve@packages+eve)
+ version: 0.2.0([email protected]([email protected]))(eve@packages+eve)
postcss:
specifier: 8.5.15
version: 8.5.15
@@ -440,10 +440,10 @@ importers:
version: 0.41.2
'@vercel/connect':
specifier: 'catalog:'
ai:
specifier: 'catalog:'
- version: 7.0.58([email protected])
+ version: 7.0.84([email protected])
eve:
specifier: workspace:*
version: link:../../../packages/eve
@@ -492,7 +492,7 @@ importers:
dependencies:
ai:
specifier: 'catalog:'
- version: 7.0.58([email protected])
+ version: 7.0.84([email protected])
eve:
specifier: workspace:*
version: link:../../../packages/eve
@@ -696,7 +696,7 @@ importers:
version: 25.9.1
historical-eve-0-30-8:
specifier: npm:[email protected]
typescript:
specifier: 'catalog:'
version: 7.0.2
@@ -1298,6 +1298,9 @@ importers:
'@ai-sdk/anthropic':
specifier: 'catalog:'
version: 4.0.36([email protected])
+ '@ai-sdk/code-mode':
+ specifier: 1.0.39
'@ai-sdk/google':
specifier: 'catalog:'
version: 4.0.39([email protected])
@@ -1312,19 +1315,19 @@ importers:
version: 1.0.58([email protected])
'@ai-sdk/provider':
specifier: 'catalog:'
- version: 4.0.7
+ version: 4.0.8
'@ai-sdk/provider-utils':
specifier: 'catalog:'
- version: 5.0.25([email protected])
+ version: 5.0.33([email protected])
'@chat-adapter/slack':
specifier: 4.34.0
'@chat-adapter/state-memory':
specifier: 4.34.0
'@chat-adapter/twilio':
specifier: 4.34.0
'@clack/core':
specifier: 1.3.1
version: 1.3.1
@@ -1333,7 +1336,7 @@ importers:
version: link:../eve-catalog
'@linqapp/chat-sdk-adapter':
specifier: ^0.5.1
'@modelcontextprotocol/server':
specifier: 2.0.0
version: 2.0.0
@@ -1354,7 +1357,7 @@ importers:
version: 2.6.1(@opentelemetry/[email protected])
'@photon-ai/chat-adapter-imessage':
specifier: 3.2.0
'@standard-schema/spec':
specifier: 1.1.0
version: 1.1.0
@@ -1417,13 +1420,13 @@ importers:
version: 5.0.0-beta.39(@aws-sdk/[email protected])(@opentelemetry/[email protected])([email protected])
ai:
specifier: 'catalog:'
- version: 7.0.58([email protected])
+ version: 7.0.84([email protected])
autoevals:
specifier: 0.0.132
chat:
specifier: 4.34.0
chokidar:
specifier: 5.0.0
version: 5.0.0
@@ -1439,15 +1442,12 @@ importers:
eventsource-parser:
specifier: 3.1.0
version: 3.1.0
- experimental-ai-sdk-code-mode:
- specifier: 1.0.16
gray-matter:
specifier: 4.0.3
version: 4.0.3
historical-eve-0-30-8:
specifier: npm:[email protected]
jose:
specifier: 6.2.3
version: 6.2.3
@@ -1475,6 +1475,9 @@ importers:
react-test-renderer:
specifier: 19.2.6
version: 19.2.6([email protected])
+ run:
+ specifier: 2.1.2
+ version: 2.1.2([email protected])
semver:
specifier: 7.8.4
version: 7.8.4
@@ -1601,6 +1604,12 @@ packages:
peerDependencies:
zod: ^3.25.76 || ^4.1.8
+ '@ai-sdk/[email protected]':
+ resolution: {integrity: sha512-a0J0Zwfpz4sM1h5cOLuK6sJKYFUmLosE254W95Zx8oBSJNyZTqxlGox2+XjRss7FWmDpIUC/UEjY/+MFN6T2tw==}
+ engines: {node: '>=22.13.0'}
+ peerDependencies:
+ ai: 7.0.82
+
'@ai-sdk/[email protected]':
resolution: {integrity: sha512-rNp5vEG1gYSdlFeP7Ky/Pd2xUWfjuzVq1aG2RL4I1PyulGwFHGq50/xeNqWapFi/2+jE+AHHnnUPChDTa3s1Gg==}
engines: {node: '>=18'}
@@ -1631,6 +1640,12 @@ packages:
peerDependencies:
zod: ^3.25.76 || ^4.1.8
+ '@ai-sdk/[email protected]':
+ resolution: {integrity: sha512-XKvZv6HFoMOWK64zXMaQatk4SxBzBDkGg7enXPWsCkxqPP4zDhFewOoBKasf3FPnZP9ceE+Yj3BgW925blAWtw==}
+ engines: {node: '>=22'}
+ peerDependencies:
+ zod: ^3.25.76 || ^4.1.8
+
'@ai-sdk/[email protected]':
resolution: {integrity: sha512-Nx2oDxkypgZyaHz5LHO1uxJKppz6QrFTr1TlTduUTHqqpS6o8zrCdqha5t1hDGpI/ddolrOtDdAF8rqIr6G/7w==}
engines: {node: '>=18'}
@@ -1747,6 +1762,12 @@ packages:
peerDependencies:
zod: ^3.25.76 || ^4.1.8
+ '@ai-sdk/[email protected]':
+ resolution: {integrity: sha512-TfjJqJmRsQyxAlb+3hGmP1o1xLUIT79yhOgtJuTF4hqsB37IC3CufGsuFhU04EeTOg7R9iptQ6Bzm0MW0n/c3g==}
+ engines: {node: '>=22'}
+ peerDependencies:
+ zod: ^3.25.76 || ^4.1.8
+
'@ai-sdk/[email protected]':
resolution: {integrity: sha512-qZMxYJ0qqX/RfnuIaab+zp8UAeJn/ygXXAffR5I4N0n1IrvA6qBsjc8hXLmBiMV2zoXlifkacF7sEFnYnjBcqg==}
engines: {node: '>=18'}
@@ -3020,12 +3041,10 @@ packages:
resolution: {integrity: sha512-tMXdRCfYVixjuFK+Hk0Q1s38gV9zDiDJfWL3h1rv4Qc39oILCu1TRTDt7+fGUI8K4G1Fj125Hx/ru3azECWTyQ==}
engines: {node: '>=6'}
- hasBin: true
resolution: {integrity: sha512-wtF6h+DY6M3YaDBPAmvuuA6jV8Sif9MjtOI5euKFWRgCDl5PeDpPsHR9u2l6St5ceY8AZgoNDww5+HvEsXFsGg==}
engines: {node: '>=6'}
- hasBin: true
resolution: {integrity: sha512-GwtvgtXxnWsucXvbQXkRgqksiH2Qed37H9xHZocE5sA3N8O8O8/8FA3uclQXxXVzc9XBZuEOMK7+r02FmSpHtw==}
@@ -7830,7 +7849,6 @@ packages:
'@vercel/[email protected]':
resolution: {integrity: sha512-evbgSkCv6CoQxgIr6dfjh6/3K54NxXoykZN5stXS97kTVm4NuU2y7su1WR71Y55tR4l0xgiUTsVp+BlLVh6zZw==}
engines: {node: '>=18.0.0'}
- hasBin: true
'@vercel/[email protected]':
resolution: {integrity: sha512-nNmgOHwAAvKstCcCa7AARAqUSyFdwRBbT8utdjiAFUMTsNgtc4O6RwgJ2AHc78sY5NdSQN2z959o6w61zAmOMw==}
@@ -7898,7 +7916,6 @@ packages:
'@vercel/[email protected]':
resolution: {integrity: sha512-+naEp3tKTE9znfyYZ2zxxsubHvHbDV9qJwtsxlRKd/csIwOnAwM5l3CR8bQgGX0kD0mJaCmh914fYrROpqJIEw==}
- hasBin: true
'@vercel/[email protected]':
resolution: {integrity: sha512-DSkTWamJrhgCUrymOSCWysbiVeLsvPINhoKVTw+mypoyIJxKQxDgQaafvZ0OYGS2qg8wVUY30HgDugzaEdwo6Q==}
@@ -8078,7 +8095,6 @@ packages:
'@vercel/[email protected]':
resolution: {integrity: sha512-iLOW4fcsgkipfOh2Bw3wB38YDfxTlxr7+j4uFeui2OswkNT28jIitS/aMce7tS0mef1YPQ8zLIDYr3a0aahNrA==}
engines: {node: '>=20'}
- hasBin: true
'@vercel/[email protected]':
resolution: {integrity: sha512-w+WyX5Ulmj4dtTZrxaulqrjaLZHSbnPzx75SJsTNYmotKsqn1JlLnDJa+lz5hn90HJofhl/2MAtw0mCrgM3qYw==}
@@ -8523,6 +8539,12 @@ packages:
peerDependencies:
zod: ^3.25.76 || ^4.1.8
+ resolution: {integrity: sha512-znHNBWADOy79k8EK7636kDm5LmnjF4tMzegC2TfmlLDobDZbs0z0OXD2sxtH3eDTp5Re+pJQESvjinWJ6+kadQ==}
+ engines: {node: '>=22'}
+ peerDependencies:
+ zod: ^3.25.76 || ^4.1.8
+
resolution: {integrity: sha512-mv00Te6nmYbRp5DCwclxtt7yV/joXJPGS7nM+97GdxvuttCOfgI3K4U25zboyeX0O+myI8ERluxQe5wljMmVIw==}
peerDependencies:
@@ -9438,7 +9460,6 @@ packages:
resolution: {integrity: sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==}
engines: {node: '>=4'}
- hasBin: true
resolution: {integrity: sha512-+jQAqIKCqMmBjZs7741XkilU93ITZ/EW8gjAkMmujdCzfDkfjrDBv2VqkSu29Fzeig/0rZ3S9IAwfPLlmXEUfQ==}
@@ -9524,7 +9545,6 @@ packages:
resolution: {integrity: sha512-UG6OvdI5afDIFP9w4G0mNq50dSOsXHJaRE8arAS5o9ApWnIElp8GZw1Dun8vP8OyHOZ/QJUKUJwxiiCCnUwm+Q==}
engines: {node: '>=12'}
- hasBin: true
resolution: {integrity: sha512-wR/XK3D3XcLIZwpbvQwQ5fK+8Ykds1ip7A2Txe0yxncXSdq1L9skcG7blcedkOX+ZcgxGAmLX1FrRGbADwzi0w==}
@@ -10003,7 +10023,6 @@ packages:
resolution: {integrity: sha512-pk+k0oK0PVXdlT4oRp4lwh+unuKB7Ng4iZ2HB+EZ7QCEQizX360Rp/F4aRpgpRgdP2ufB35N+1KppHmYjqIGSg==}
engines: {node: '>=16'}
- hasBin: true
resolution: {integrity: sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==}
@@ -10167,7 +10186,6 @@ packages:
resolution: {integrity: sha512-jd0f4NHbD6cALCyGElNpGAOtWxSq46l9X/sWB0Nzd5er4Kz2YTm+Vl0qKFT9KUJvD8+fiO8AvoHhFvEatfVixA==}
engines: {node: '>=18'}
- hasBin: true
resolution: {integrity: sha512-IxpibTjyVnmrIQo5aqNpCgoACA/dTKLTlhMHihVHhdkxKyPO1uBBthumT0rdHmcsk9uMonIWS0m4FljWzILh3w==}
@@ -10437,12 +10455,6 @@ packages:
resolution: {integrity: sha512-knvyeauYhqjOYvQ66MznSMs83wmHrCycNEN6Ao+2AeYEfxUIkuiVxdEa1qlGEPK+We3n0THiDciYSsCcgW/DoA==}
engines: {node: '>=12.0.0'}
- resolution: {integrity: sha512-qkJhiQeRdhj4XQZBm+b1vr+qTFRBQ8xCNYkVigGsG9Qu0dC2gLO7UtJ9dtwvg8HJIR21cu/bpZyewffCkOz9yg==}
- engines: {node: '>=22.13.0'}
- peerDependencies:
- ai: ^6.0.0 || ^7.0.0-beta.0
-
resolution: {integrity: sha512-ZgEeZXj30q+I0EN+CbSSpIyPaJ5HVQD18Z1m+u1FXbAeT94mr1zw50q4q6jiiC447Nl/YTcIYSAftiGqetwXCA==}
@@ -10912,13 +10924,11 @@ packages:
resolution: {integrity: sha512-DfXN8DfhJ7NH3Oe7cFmu3NCu1wKbkReJ8TorzSAFbSKrlNaQSKfIzqYqVY8zlbs2NLBbWpRiU52GX2PbaBVNkg==}
deprecated: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting [email protected]
- hasBin: true
resolution: {integrity: sha512-vuNwKSaKiqm7g0THUBu2x7ckSs3XJLXE+2ssL7/MfTGPLLcrJQ/4Uq1CjPTtO5cCIiRxqvN6Twy1qOwhL0Xjcw==}
engines: {node: 20 || >=22}
deprecated: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting [email protected]
- hasBin: true
resolution: {integrity: sha512-Wjlyrolmm8uDpm/ogGyXZXb1Z+Ca2B8NbJwqBVg0axK9GbBeoS7yGV6vjXnYdGm6X53iehEuxxbyiKp8QmN4Vw==}
@@ -11239,7 +11249,6 @@ packages:
resolution: {integrity: sha512-IRqXKlaXwgSMAMtpNzZa1ZAe8m+Sa1770Dhk8VkSsP9LS+iHD62Zd8FQKs8fbPiagBE7BzoFX23cxFnwshpV6w==}
engines: {node: '>=16.x'}
- hasBin: true
resolution: {integrity: sha512-XXOFtyqDjNDAQxVfYxuF7g9Il/IbWmmlQg2MYKOH8ExIT1qg6xc4zyS3HaEEATgs1btfzxq15ciUiY7gjSXRGQ==}
@@ -11601,11 +11610,9 @@ packages:
resolution: {integrity: sha512-ekilCSN1jwRvIbgeg/57YFh8qQDNbwDb9xT/qu2DAHbFFZUicIl4ygVaAvzveMhMVr3LnpSKTNnwt8PoOfmKhQ==}
- hasBin: true
resolution: {integrity: sha512-AC/7JofJvZGrrneWNaEnJeOLUx+JlGt7tNa0wZiRPT4MY1wmfKjt2+6O2p2uz2+skll8OZZmJMNqeke7kKbNgQ==}
- hasBin: true
resolution: {integrity: sha512-8wb9Yw966OSxApiCt0K3yNJL8pnNeIv+OEq2YMidz4FKP6nonSRoOXc80iXY4JaN2FC11B9qsNmDsm+ZOfMROA==}
@@ -11724,7 +11731,6 @@ packages:
resolution: {integrity: sha512-Eeo8Ys1doU1z+x8AZsPpQu+p/QcZBI5PeOo7QGQdy2x2m0MU/hYagBbGOmXwr5KVbEfVuWv9LpnQWeehogurjg==}
- hasBin: true
resolution: {integrity: sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==}
@@ -12048,10 +12054,12 @@ packages:
resolution: {integrity: sha512-gB0gkNafnonOw0obSTEGZTT86IuhILt2Wfx0mWH/1Au83kybTayroZ/V6nS25mN7u8ASy+5fMhgB3XPNrOZdmA==}
engines: {node: '>= 20'}
+ hasBin: true
resolution: {integrity: sha512-iDVQ5ldaiKXn6b2JroX5kgRfmwgqolW7NpaEzTl1k/2Zh1njIEN9yniyLV/mOvWwtsE8OGgkjsCYvijuPk1dtA==}
engines: {node: '>= 20'}
+ hasBin: true
resolution: {integrity: sha512-ocnPZQLNpvbedwTy9kNrQEsknEfgvcLMvOtz3sFeWApDq1MXH1TqkCIx58xlpESsfwQOnuBO9beyQuNGzVvuhQ==}
@@ -12225,7 +12233,6 @@ packages:
resolution: {integrity: sha512-viYIo9PefV+w9dvoIBh1gI44Mvx1BOk67B4BpC2QK77qdY0xZF0Q+vWLt/BII6cLkIc8rLmSIcJaB/OrXXKe1g==}
engines: {node: '>= 8.0.0'}
- hasBin: true
resolution: {integrity: sha512-RDBrHEMSxVFLg6xvnXmb1Ayr2WzLAWjeSATAoxwKYJV94TeNavgoIdA0a9ytzDSVzBy2YKFK+emCPOEibLeCrg==}
@@ -12457,7 +12464,6 @@ packages:
resolution: {integrity: sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==}
engines: {node: '>=10'}
- hasBin: true
resolution: {integrity: sha512-QQZ4kENwpWmyNb98UXRDFXrmtIXuXtt1+bSbda/2KA85+F+rrJP8hZk6QOkCQXM2Th9mUDYdq/PNByPdT9ID4A==}
@@ -12549,7 +12555,6 @@ packages:
resolution: {integrity: sha512-c7+7RQ+dMB5dPwwCp4ee1/iV/q2P6aK1mTZcfr1BTuVlyW9hJYiMPybJCcnBlQtuSmTIWNeazm/zqNoZSSElBg==}
engines: {node: ^18 || >=20}
- hasBin: true
resolution: {integrity: sha512-Kv2JYYiCzt16Kt5QwAc9BFG89xfPNBx+oQL4GQXD9nLqPkZBiNaqaCWtwnbk/q7UVsTYevvM1b0UF8zmEI4pCg==}
@@ -14023,7 +14028,6 @@ packages:
resolution: {integrity: sha512-M3AeZjYE6UclblEf531Hch0WfVC/NOL43Cc+WdF3J50kk5/fvouHhDumSGTh0oRjbZ8C4faaVr5r6Nx1xMqDGg==}
engines: {node: ^20.19.0 || >=22.12.0}
- hasBin: true
resolution: {integrity: sha512-t9z29cJjXf/vxQ8dyhCSpt6H6aSwHTk8cT5I3iy6SMXuFpk5mB6PL6XfC8PCwrPTx93udwKUm9HRteAlTGBLiA==}
@@ -14063,6 +14067,15 @@ packages:
resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==}
+ resolution: {integrity: sha512-8c5Zs3WazGnBisfv0XWItQJxVHp04N6YnNgjsdprplvvFh4Kltfwh6duVkpro4hQ5uIUmUKTAIVfTTIa0uDpuw==}
+ engines: {node: '>=20.19.0'}
+ peerDependencies:
+ typescript: '>=5.1.6 <7'
+ peerDependenciesMeta:
+ typescript:
+ optional: true
+
resolution: {integrity: sha512-PdhdWy89SiZogBLaw42zdeqtRJ//zFd2PgQavcICDUgJT5oW10QCRKbJ6bg4r0/UY2M6BWd5tkxuGFRvCkgfHQ==}
@@ -14093,7 +14106,6 @@ packages:
resolution: {integrity: sha512-3fNfxSmRJpoCGF3wBncPjxypKYmgtleaAYgyhMrowBpp83388gIELSQ4evIPt1sP+fa6gnn0wRr8CBnUneFzRQ==}
- hasBin: true
resolution: {integrity: sha512-8I2a3LovHTOpm7NV5yOyO8IHqgVsfK4+UuySrXU8YXkSRX7k6hCV9b3HrkKCr3nMpgj+0bmocaJJWpvp1oc7ZA==}
@@ -14138,17 +14150,14 @@ packages:
resolution: {integrity: sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==}
- hasBin: true
resolution: {integrity: sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==}
engines: {node: '>=10'}
- hasBin: true
resolution: {integrity: sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==}
engines: {node: '>=10'}
- hasBin: true
resolution: {integrity: sha512-rUCObTnP32Q08R2uuIrt7r9PlEonuTmtuXYcW6s5kjdlj3xbnwe+21yXptAUYcMAABLkYYTtnmzb3w3EDZfueA==}
@@ -14400,7 +14409,6 @@ packages:
resolution: {integrity: sha512-bp07zRuycfTY43IjAvvTFnmnJi8ikW0VFiHwOhhYcVW/L4xQ1XY4PAd4Nuum1rsA17C39zL7x+CDhrn5AL32Rw==}
engines: {node: '>=20.16.0'}
- hasBin: true
resolution: {integrity: sha512-LqZxxBDMKuMAZzFzJnDCkFOrs9MZQZr0LvHiO/SuSZVdQaXD7xQ5UWTUxheJrQPve1qk9MG2B/yttUvJxw8egQ==}
@@ -14603,7 +14611,6 @@ packages:
resolution: {integrity: sha512-97ME3rlmu7OmsXJTb9OgXOD+3VUv4Wej0ZX9xezG+LKkMwrzi4xeeAZaOJFcr0oI/QQjcHG2WOzm+und1e7MFA==}
- hasBin: true
resolution: {integrity: sha512-SS+jx45GF1QjgEXQx4NJZV9ImqmO2NPz5FNsIHrsDjh2YsHnawpan7SNQ1o8NuhrbHZy9AZhIoCUiCeaW/C80g==}
@@ -14831,7 +14838,6 @@ packages:
resolution: {integrity: sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==}
- hasBin: true
resolution: {integrity: sha512-kRj8B+YHZCc9kQYdWfJB2/oUl9rA99qbowYYBtr4ui4mZyAQ2JpvVBd/6U2YloATfqBhBTSMhTpgBHtU0Mf3Rg==}
@@ -14945,6 +14951,7 @@ packages:
resolution: {integrity: sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==}
engines: {node: '>=14.17'}
+ hasBin: true
resolution: {integrity: sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==}
@@ -14957,7 +14964,6 @@ packages:
resolution: {integrity: sha512-LbBDqdIC5s8iROCUjMbW1f5dJQTEFB1+KO9ogbvlb3nm9n4YHa5p4KTvFPWvh2Hs8gZMBuiB1/8+pdfe/tDPug==}
- hasBin: true
resolution: {integrity: sha512-JFNbkD1Svwe0KvGi8GOeLcP4kAWQ609twvCdcHxq1oSL8svv39ZuSvajcD8B+5D0eL4+s1Is2D/O6KN3qcTeRA==}
@@ -15340,18 +15346,15 @@ packages:
resolution: {integrity: sha512-8XkAphELsDnEGrDxUOHB3RGvXz6TeuYSGEZBOjtTtPm2lwhGBjLgOzLHB63IUWfBpNucQjND6d3AOudO+H3RWQ==}
deprecated: uuid@10 and below is no longer supported. For ESM codebases, update to uuid@latest. For CommonJS codebases, use uuid@11 (but be aware this version will likely be deprecated in 2028).
- hasBin: true
resolution: {integrity: sha512-vIYxrBCC/N/K+Js3qSN88go7kIfNPssr/hHCesKCQNAjmgvYS2oqr69kIufEG+O4+PfezOH4EbIeHCfFov8ZgQ==}
resolution: {integrity: sha512-Qo+uWgilfSmAhXCMav1uYFynlQO7fMFiMVZsQqZRMIXp0O7rR7qjkj+cPvBHLgBqi960QCoo/PH2/6ZtVqKvrg==}
- hasBin: true
resolution: {integrity: sha512-6ZxzVpzDXDa3bJWaHilVayA+BH/1zmxCJoVgvmqJnid/gPoKHxUrS/aC/T6LGQtNHT+XHG9fXPJB4d+IrU30Ew==}
- hasBin: true
resolution: {integrity: sha512-hVDIBwsRruT73PbK7uP5ebUt+ezEtCmzZz3F59BSr2F6OVFnJ/6h8liuvdLrQ88Xmnk6/+xGGuq+pG9WwTuy3A==}
@@ -15379,7 +15382,6 @@ packages:
resolution: {integrity: sha512-tQgKXmppJ/uoQZfX+HYAVIxWSUS6V6FMounEEpsHTUqlHyBI/aOATH9sKtkXXD1lQt/JsN4ocWymIGUPLRTxwA==}
engines: {node: '>= 18'}
- hasBin: true
resolution: {integrity: sha512-5yXvWDEgqeiYiBe1lbxYF7UMAIm/IcopxMHrMQDq3nvKcjPKIhZklUKL+AE7J7uApI4kwe2snsK+eI6UTj9EHg==}
@@ -15726,6 +15728,7 @@ packages:
resolution: {integrity: sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==}
engines: {node: '>=8'}
+ hasBin: true
resolution: {integrity: sha512-udI8/yiMZ+KIGwYK1qNOFiXl+s/wffiY+XkwTXlBFICZylFalOS0QYEQqYOmuBsm3jNfGUS4O50tLuN7Ejqm3A==}
@@ -15950,10 +15953,10 @@ snapshots:
dependencies:
zod: 4.5.4
dependencies:
transitivePeerDependencies:
- ai
- supports-color
@@ -16006,6 +16009,13 @@ snapshots:
zod: 4.4.3
optional: true
+ dependencies:
+ ai: 7.0.84([email protected])
+ run: 2.1.2([email protected])
+ transitivePeerDependencies:
+ - typescript
+
dependencies:
'@ai-sdk/provider': 2.0.3
@@ -16048,6 +16058,13 @@ snapshots:
'@vercel/oidc': 3.2.0
zod: 4.5.4
+ dependencies:
+ '@ai-sdk/provider': 4.0.8
+ '@ai-sdk/provider-utils': 5.0.33([email protected])
+ '@vercel/oidc': 3.2.0
+ zod: 4.5.4
+
dependencies:
'@ai-sdk/anthropic': 2.0.90([email protected])
@@ -16214,6 +16231,15 @@ snapshots:
undici: 7.29.0
zod: 4.5.4
+ dependencies:
+ '@ai-sdk/provider': 4.0.8
+ '@standard-schema/spec': 1.1.0
+ '@workflow/serde': 4.1.0
+ eventsource-parser: 3.1.0
+ undici: 7.29.0
+ zod: 4.5.4
+
'@ai-sdk/[email protected]':
dependencies:
json-schema: 0.4.0
@@ -16584,11 +16610,11 @@ snapshots:
'@balena/[email protected]': {}
dependencies:
- '@chat-adapter/state-redis': 4.35.0(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])
+ '@chat-adapter/state-redis': 4.35.0(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])
marked: 15.0.12
matrix-js-sdk: 41.9.0
node-html-parser: 7.1.0
@@ -16838,56 +16864,48 @@ snapshots:
human-id: 4.1.3
prettier: 2.8.8
dependencies:
'@googleapis/chat': 44.7.0([email protected])
'@googleapis/workspaceevents': 9.2.0([email protected])
transitivePeerDependencies:
- ai
- supports-color
- zod
dependencies:
transitivePeerDependencies:
- ai
- supports-color
- zod
dependencies:
transitivePeerDependencies:
- ai
- supports-color
- zod
dependencies:
transitivePeerDependencies:
- ai
- supports-color
- zod
dependencies:
- transitivePeerDependencies:
- - ai
- - supports-color
- - zod
-
- dependencies:
transitivePeerDependencies:
- ai
- bufferutil
@@ -16896,55 +16914,17 @@ snapshots:
- utf-8-validate
- zod
dependencies:
transitivePeerDependencies:
- ai
- - bufferutil
- - debug
- supports-color
- - utf-8-validate
- zod
- optional: true
dependencies:
- transitivePeerDependencies:
- - ai
- - bufferutil
- - debug
- - supports-color
- - utf-8-validate
- - zod
- optional: true
-
- dependencies:
- transitivePeerDependencies:
- - ai
- - supports-color
- - zod
-
- dependencies:
- transitivePeerDependencies:
- - ai
- - supports-color
- - zod
-
- dependencies:
redis: 5.12.1(@opentelemetry/[email protected])
transitivePeerDependencies:
- '@node-rs/xxhash'
@@ -16954,28 +16934,28 @@ snapshots:
- workflow
- zod
dependencies:
transitivePeerDependencies:
- ai
- supports-color
- zod
dependencies:
transitivePeerDependencies:
- ai
- supports-color
- zod
dependencies:
transitivePeerDependencies:
- ai
- supports-color
@@ -17466,11 +17446,11 @@ snapshots:
dependencies:
tslib: 2.8.1
dependencies:
transitivePeerDependencies:
- ai
- encoding
@@ -17487,26 +17467,26 @@ snapshots:
- react-native
- supports-color
dependencies:
eve: link:packages/eve
zod: 4.5.4
optionalDependencies:
transitivePeerDependencies:
- '@ai-sdk/workflow'
- '@workflow/ai'
- ai
- workflow
dependencies:
- ai: 7.0.79([email protected])
+ ai: 7.0.84([email protected])
octokit: 5.0.5
zod: 4.5.4
optionalDependencies:
eve: link:packages/eve
@@ -17885,11 +17865,11 @@ snapshots:
'@js-sdsl/[email protected]': {}
dependencies:
'@kapso/whatsapp-cloud-api': 0.2.3
transitivePeerDependencies:
- ai
- supports-color
@@ -17961,11 +17941,11 @@ snapshots:
'@langchain/[email protected]': {}
dependencies:
'@larksuiteoapi/node-sdk': 1.63.1([email protected])([email protected]([email protected]))
transitivePeerDependencies:
- ai
- bufferutil
@@ -17988,21 +17968,21 @@ snapshots:
- debug
- utf-8-validate
dependencies:
'@linqapp/sdk': 0.47.0
standardwebhooks: 1.0.0
'@linqapp/[email protected]':
dependencies:
standardwebhooks: 1.0.0
dependencies:
'@liveblocks/core': 3.23.0(@types/[email protected])
'@liveblocks/node': 3.23.0(@types/[email protected])
transitivePeerDependencies:
- '@types/json-schema'
- encoding
@@ -18360,10 +18340,10 @@ snapshots:
'@nolyfill/[email protected]': {}
dependencies:
optionalDependencies:
react: 19.2.6
transitivePeerDependencies:
@@ -18994,9 +18974,9 @@ snapshots:
'@octokit/request-error': 7.1.0
'@octokit/webhooks-methods': 6.0.0
dependencies:
eve: link:packages/eve
zod: 4.4.3
transitivePeerDependencies:
@@ -19693,12 +19673,12 @@ snapshots:
nice-grpc: 2.1.16
nice-grpc-common: 2.0.3
dependencies:
'@spectrum-ts/core': 10.0.0([email protected])([email protected])
mime-types: 3.0.2
transitivePeerDependencies:
- ai
@@ -21015,10 +20995,10 @@ snapshots:
'@repeaterjs/[email protected]': {}
dependencies:
hast-util-to-html: 9.0.5
mdast-util-to-hast: 13.2.1
@@ -22328,10 +22308,10 @@ snapshots:
dependencies:
eve: link:packages/eve
dependencies:
hast-util-from-html: 2.0.3
hast-util-to-html: 9.0.5
hast-util-to-mdast: 10.1.2
@@ -22472,34 +22452,24 @@ snapshots:
dependencies:
execa: 5.1.1
dependencies:
'@vercel/oidc': 3.8.1
optionalDependencies:
'@ai-sdk/mcp': 2.0.29([email protected])
'@auth/core': 0.41.2
- ai: 7.0.79([email protected])
+ ai: 7.0.84([email protected])
eve: link:packages/eve
dependencies:
'@vercel/oidc': 3.8.5
optionalDependencies:
'@ai-sdk/mcp': 2.0.29([email protected])
'@auth/core': 0.41.2
- ai: 7.0.58([email protected])
- eve: link:packages/eve
-
- dependencies:
- '@vercel/oidc': 3.8.5
- optionalDependencies:
- '@ai-sdk/mcp': 2.0.29([email protected])
- '@auth/core': 0.41.2
- ai: 7.0.79([email protected])
+ ai: 7.0.84([email protected])
eve: link:packages/eve
@@ -23416,10 +23386,10 @@ snapshots:
ulid: 3.0.2
zod: 4.3.6
dependencies:
transitivePeerDependencies:
- ai
- supports-color
@@ -23507,6 +23477,13 @@ snapshots:
'@ai-sdk/provider-utils': 5.0.30([email protected])
zod: 4.5.4
+ dependencies:
+ '@ai-sdk/gateway': 4.0.68([email protected])
+ '@ai-sdk/provider': 4.0.8
+ '@ai-sdk/provider-utils': 5.0.33([email protected])
+ zod: 4.5.4
+
optionalDependencies:
ajv: 8.20.0
@@ -24099,12 +24076,12 @@ snapshots:
dependencies:
sendblue: 3.10.1
dependencies:
'@workflow/serde': 4.1.0-beta.2
mdast-util-to-string: 4.0.0
@@ -24114,12 +24091,12 @@ snapshots:
remend: 1.3.0
unified: 11.0.5
optionalDependencies:
- ai: 7.0.79([email protected])
+ ai: 7.0.84([email protected])
zod: 4.5.4
transitivePeerDependencies:
- supports-color
dependencies:
'@workflow/serde': 4.1.0-beta.2
mdast-util-to-string: 4.0.0
@@ -24129,12 +24106,12 @@ snapshots:
remend: 1.3.0
unified: 11.0.5
optionalDependencies:
- ai: 7.0.58([email protected])
+ ai: 7.0.84([email protected])
zod: 4.5.4
transitivePeerDependencies:
- supports-color
dependencies:
'@workflow/serde': 4.1.0-beta.2
mdast-util-to-string: 4.0.0
@@ -24144,22 +24121,7 @@ snapshots:
remend: 1.3.0
unified: 11.0.5
optionalDependencies:
- ai: 7.0.79([email protected])
- zod: 4.5.4
- transitivePeerDependencies:
- - supports-color
-
- dependencies:
- '@workflow/serde': 4.1.0-beta.2
- mdast-util-to-string: 4.0.0
- remark-gfm: 4.0.1([email protected])
- remark-parse: 11.0.0([email protected])
- remark-stringify: 11.0.0
- remend: 1.3.0
- unified: 11.0.5
- optionalDependencies:
- ai: 7.0.79([email protected])
+ ai: 7.0.84([email protected])
zod: 4.5.4
transitivePeerDependencies:
- supports-color
@@ -25635,64 +25597,14 @@ snapshots:
dependencies:
- ai: 7.0.79([email protected])
+ ai: 7.0.84([email protected])
eve: link:packages/eve
- dependencies:
- ai: 7.0.58([email protected])
- undici: 8.9.0
- optionalDependencies:
- '@opentelemetry/api': 1.9.1
- just-bash: 3.1.0([email protected])
- microsandbox: 0.5.5
- transitivePeerDependencies:
- - '@azure/app-configuration'
- - '@azure/cosmos'
- - '@azure/data-tables'
- - '@azure/identity'
- - '@azure/keyvault-secrets'
- - '@azure/storage-blob'
- - '@capacitor/preferences'
- - '@deno/kv'
- - '@electric-sql/pglite'
- - '@libsql/client'
- - '@netlify/blobs'
- - '@netlify/runtime'
- - '@planetscale/database'
- - '@upstash/redis'
- - '@vercel/blob'
- - '@vercel/functions'
- - '@vercel/kv'
- - '@vercel/queue'
- - aws4fetch
- - better-sqlite3
- - chokidar
- - dotenv
- - drizzle-orm
- - giget
- - idb-keyval
- - ioredis
- - jiti
- - lru-cache
- - miniflare
- - mongodb
- - mysql2
- - rollup
- - sqlite3
- - uploadthing
- - vite
- - wrangler
- - xml2js
- - zephyr-agent
-
dependencies:
- ai: 7.0.79([email protected])
+ ai: 7.0.84([email protected])
undici: 8.9.0
optionalDependencies:
@@ -25818,10 +25730,6 @@ snapshots:
- dependencies:
- ai: 7.0.58([email protected])
-
@@ -31097,6 +31005,10 @@ snapshots:
dependencies:
queue-microtask: 1.2.3
+ optionalDependencies:
+ typescript: 7.0.2
+
diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml
index c92b1283f..14a348f34 100644
--- a/pnpm-workspace.yaml
+++ b/pnpm-workspace.yaml
@@ -44,7 +44,7 @@ catalog:
"@vercel/sandbox-delete": "npm:@vercel/[email protected]"
"@vercel/sandbox-drives": "npm:@vercel/[email protected]"
"@workflow/world-postgres": "5.0.0-beta.35"
- ai: "^7.0.58"
+ ai: "^7.0.82"
better-auth: "1.6.26"
marked: "17.0.6"
next: "16.3.0-preview.6"
@@ -70,4 +70,5 @@ minimumReleaseAgeExclude:
- "@vercel/*"
- "@workflow/*"
- nitro
+ - run
- workflow