Skip to content

armgit / eve

Public Imported from GitHub
0

The Open Framework for Building Agents

chore(eve): dependencies - update Workflow beta packages (#1307)

Karthik Kalyan9ddb890f3dec
diff --git a/.changeset/update-workflow-beta-dependencies.md b/.changeset/update-workflow-beta-dependencies.md
new file mode 100644
index 000000000..8f967b1f2
--- /dev/null
+++ b/.changeset/update-workflow-beta-dependencies.md
@@ -0,0 +1,5 @@
+---
+"eve": patch
+---
+
+Update the bundled Workflow runtime dependencies to their latest 5.0 beta releases.
diff --git a/packages/eve/package.json b/packages/eve/package.json
index 0a56d5f69..a77220b82 100644
--- a/packages/eve/package.json
+++ b/packages/eve/package.json
@@ -328,13 +328,13 @@
"@vercel/otel": "catalog:",
"@vercel/sandbox": "catalog:",
"@vercel/sdk": "1.28.8",
- "@workflow/core": "5.0.0-beta.36",
- "@workflow/errors": "5.0.0-beta.12",
+ "@workflow/core": "5.0.0-beta.37",
+ "@workflow/errors": "5.0.0-beta.13",
"@workflow/serde": "5.0.0-beta.2",
- "@workflow/utils": "5.0.0-beta.6",
- "@workflow/world": "5.0.0-beta.22",
- "@workflow/world-local": "5.0.0-beta.30",
- "@workflow/world-vercel": "5.0.0-beta.32",
+ "@workflow/utils": "5.0.0-beta.7",
+ "@workflow/world": "5.0.0-beta.23",
+ "@workflow/world-local": "5.0.0-beta.31",
+ "@workflow/world-vercel": "5.0.0-beta.33",
"ai": "catalog:",
"autoevals": "0.0.132",
"chat": "4.34.0",
diff --git a/packages/eve/src/harness/tool-loop.ts b/packages/eve/src/harness/tool-loop.ts
index c33e81e99..9851260cc 100644
--- a/packages/eve/src/harness/tool-loop.ts
+++ b/packages/eve/src/harness/tool-loop.ts
@@ -1318,7 +1318,7 @@ export function createToolLoopHarness(config: ToolLoopHarnessConfig): StepFn {
// --- Step-side observability tags ---------------------------------------
//
// Tag the **turn workflow run** (the current `"use step"` is hosted by
- // that workflow, so `experimental_setAttributes` writes to its
+ // that workflow, so `setAttributes` writes to its
// attributes table) with the model id and per-turn cumulative token
// counts. Per-turn totals are accumulated on `session.state` because
// each tool-loop iteration is a fresh `"use step"` and the workflow
diff --git a/packages/eve/src/internal/workflow-bundle/workflow-core-shim.ts b/packages/eve/src/internal/workflow-bundle/workflow-core-shim.ts
index ce542ff2f..f7efc68f1 100644
--- a/packages/eve/src/internal/workflow-bundle/workflow-core-shim.ts
+++ b/packages/eve/src/internal/workflow-bundle/workflow-core-shim.ts
@@ -115,12 +115,12 @@ export function getStepMetadata(): never {
}
/**
- * Options accepted by {@link experimental_setAttributes}.
+ * Options accepted by {@link setAttributes}.
*
- * Mirrors `ExperimentalSetAttributesOptions` from `@workflow/core` so the
+ * Mirrors `SetAttributesOptions` from `@workflow/core` so the
* eve workflow-body bundle does not have to pull the real type in.
*/
-export interface ExperimentalSetAttributesOptions {
+export interface SetAttributesOptions {
/**
* Permit attribute keys that start with the reserved `$` prefix. eve
* framework code passes `true` so it can write the `$eve.*` namespace;
@@ -130,7 +130,7 @@ export interface ExperimentalSetAttributesOptions {
}
/**
- * Workflow-body implementation of `experimental_setAttributes` for the eve
+ * Workflow-body implementation of `setAttributes` for the eve
* bundle. Mirrors the dispatch path of `@workflow/core`'s workflow-body
* export (`dist/workflow/set-attributes.js`):
*
@@ -148,9 +148,9 @@ export interface ExperimentalSetAttributesOptions {
* validator would require pulling `@workflow/world` into the workflow body
* bundle.
*/
-export async function experimental_setAttributes(
+export async function setAttributes(
attrs: Record<string, string | undefined>,
- options: ExperimentalSetAttributesOptions = {},
+ options: SetAttributesOptions = {},
): Promise<void> {
const entries = Object.entries(attrs);
if (entries.length === 0) {
@@ -166,9 +166,7 @@ export async function experimental_setAttributes(
| undefined;
if (useStep === undefined) {
- throw new Error(
- "`experimental_setAttributes()` can only be called inside a workflow runtime context",
- );
+ throw new Error("`setAttributes()` can only be called inside a workflow runtime context");
}
const changes = entries.map(([key, value]) => ({
diff --git a/packages/eve/src/internal/workflow-bundle/workflow-transformer.ts b/packages/eve/src/internal/workflow-bundle/workflow-transformer.ts
index 95d702d76..7f9558517 100644
--- a/packages/eve/src/internal/workflow-bundle/workflow-transformer.ts
+++ b/packages/eve/src/internal/workflow-bundle/workflow-transformer.ts
@@ -4,7 +4,7 @@ import type { WorkflowManifest } from "./workflow-builders.js";
// Step names whose `stepId` must be emitted as the bare function name,
// not `step//<idBase>//<name>`. The workflow-body shim's
-// `experimental_setAttributes` (and Workflow's compiled equivalent)
+// `setAttributes` (and Workflow's compiled equivalent)
// dispatches builtins via `useStep("<name>")` with the unqualified
// identifier — if the registry stored these under their version-stamped
// `step//...//name` ids, the lookup would miss and the runtime would
diff --git a/packages/eve/src/internal/workflow/builtins.ts b/packages/eve/src/internal/workflow/builtins.ts
index 48458d972..215fbc9dd 100644
--- a/packages/eve/src/internal/workflow/builtins.ts
+++ b/packages/eve/src/internal/workflow/builtins.ts
@@ -32,11 +32,11 @@ function formatUnknownError(error: unknown): string {
}
/**
- * Step bridge for `experimental_setAttributes`.
+ * Step bridge for `setAttributes`.
*
* Mirrors the `__builtin_set_attributes` step from
* `@workflow/workflow/internal/builtins`. The workflow-body shim's
- * `experimental_setAttributes` (in `internal/workflow-bundle/workflow-core-shim.ts`)
+ * `setAttributes` (in `internal/workflow-bundle/workflow-core-shim.ts`)
* dispatches into the workflow runtime with the step id
* `"__builtin_set_attributes"`; the runtime walks the deployment's step
* registry to resolve it, so the step has to live inside an
diff --git a/packages/eve/src/runtime/attributes/emit.test.ts b/packages/eve/src/runtime/attributes/emit.test.ts
index 345cc6742..f6c04b5fc 100644
--- a/packages/eve/src/runtime/attributes/emit.test.ts
+++ b/packages/eve/src/runtime/attributes/emit.test.ts
@@ -3,7 +3,7 @@ import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
const setAttributesMock = vi.fn();
vi.mock("#compiled/@workflow/core/index.js", () => ({
- experimental_setAttributes: (...args: unknown[]) => setAttributesMock(...args),
+ setAttributes: (...args: unknown[]) => setAttributesMock(...args),
}));
const { EVE_ATTRIBUTE_VALUE_MAX_BYTES, setEveAttributes, truncateForTag } =
diff --git a/packages/eve/src/runtime/attributes/emit.ts b/packages/eve/src/runtime/attributes/emit.ts
index f1eee0192..c9f53784d 100644
--- a/packages/eve/src/runtime/attributes/emit.ts
+++ b/packages/eve/src/runtime/attributes/emit.ts
@@ -1,6 +1,6 @@
// Force the `__builtin_set_attributes` step to register itself when the
// emit helper is loaded. The workflow-body shim's
-// `experimental_setAttributes` dispatches `__builtin_set_attributes` via
+// `setAttributes` dispatches `__builtin_set_attributes` via
// the runtime step registry; if no module ever imports the builtins file
// (e.g. in integration tests that bypass the Nitro entry), the dispatch
// fails with "Step '__builtin_set_attributes' is not registered". Side
@@ -20,7 +20,7 @@ export {
* stop warning to avoid drowning logs when the workflow runtime is
* misconfigured or the world adapter is missing
* `experimentalSetAttributes`. Mirrors the SDK's own one-shot warning
- * for unsupported worlds in `experimental_setAttributes`.
+ * for unsupported worlds in `setAttributes`.
*/
let WARNED_ABOUT_TAG_FAILURE = false;
@@ -65,8 +65,8 @@ export async function setEveAttributes(attrs: Record<string, EveAttributeValue>)
// compiled core into emit.js's static graph and defeat the dynamic
// chunking those modules rely on — the build emits an
// `INEFFECTIVE_DYNAMIC_IMPORT` warning and `bin-build-output` fails.
- const { experimental_setAttributes } = await import("#compiled/@workflow/core/index.js");
- await experimental_setAttributes(normalized, { allowReservedAttributes: true });
+ const { setAttributes } = await import("#compiled/@workflow/core/index.js");
+ await setAttributes(normalized, { allowReservedAttributes: true });
} catch (error) {
if (!WARNED_ABOUT_TAG_FAILURE) {
WARNED_ABOUT_TAG_FAILURE = true;
diff --git a/packages/eve/test/setup/workflow-setup.ts b/packages/eve/test/setup/workflow-setup.ts
index 97e73f183..349e0c9fc 100644
--- a/packages/eve/test/setup/workflow-setup.ts
+++ b/packages/eve/test/setup/workflow-setup.ts
@@ -1,7 +1,7 @@
import { join } from "node:path";
import { pathToFileURL } from "node:url";
-import { createLocalWorld } from "@workflow/world-local";
+import { createWorld } from "@workflow/world-local";
import { afterAll } from "vitest";
import { resolvePackageRoot } from "#internal/application/package.js";
@@ -19,7 +19,7 @@ const packageRoot = resolvePackageRoot();
const outDir = resolveWorkflowTestOutputDirectory(packageRoot);
const poolId = process.env.VITEST_POOL_ID ?? "0";
installEveWorkflowQueueNamespace(WORKFLOW_TEST_AGENT_NAME);
-const world = createLocalWorld({
+const world = createWorld({
dataDir: join(resolveLocalWorkflowWorldDataDirectory(packageRoot), `vitest-${poolId}`),
tag: `vitest-${poolId}`,
});
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 9cd241748..0dac567a9 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -1122,26 +1122,26 @@ importers:
specifier: 1.28.8
version: 1.28.8
'@workflow/core':
- specifier: 5.0.0-beta.36
+ specifier: 5.0.0-beta.37
'@workflow/errors':
- specifier: 5.0.0-beta.12
- version: 5.0.0-beta.12
+ specifier: 5.0.0-beta.13
+ version: 5.0.0-beta.13
'@workflow/serde':
specifier: 5.0.0-beta.2
version: 5.0.0-beta.2
'@workflow/utils':
- specifier: 5.0.0-beta.6
- version: 5.0.0-beta.6
+ specifier: 5.0.0-beta.7
+ version: 5.0.0-beta.7
'@workflow/world':
- specifier: 5.0.0-beta.22
- version: 5.0.0-beta.22
+ specifier: 5.0.0-beta.23
+ version: 5.0.0-beta.23
'@workflow/world-local':
- specifier: 5.0.0-beta.30
- version: 5.0.0-beta.30(@opentelemetry/[email protected])
+ specifier: 5.0.0-beta.31
+ version: 5.0.0-beta.31(@opentelemetry/[email protected])
'@workflow/world-vercel':
- specifier: 5.0.0-beta.32
- version: 5.0.0-beta.32(@opentelemetry/[email protected])
+ specifier: 5.0.0-beta.33
+ version: 5.0.0-beta.33(@opentelemetry/[email protected])
ai:
specifier: 'catalog:'
version: 7.0.38([email protected])
@@ -7254,16 +7254,16 @@ packages:
'@webgpu/[email protected]':
resolution: {integrity: sha512-mMy8/ODcKhab808co15eW+yN+HgXoQxRQHTiBV9Mrvl1r0ufnid7YOcI+gi4eUWSWl9ezD6TW2KXccrL8HCh2A==}
- '@workflow/[email protected]':
- resolution: {integrity: sha512-3SYp5PporQ7in7WKBwfQfjCvdV0aOk2gx3eM0jKXv5oNqlS1aQEUaT+sBlCZ3xhpgZ+RUZLAtAMvJHVFLkTSoQ==}
+ '@workflow/[email protected]':
+ resolution: {integrity: sha512-QaBWdRXpQj2dSMkl7sjsTL3TNTfo2yDcXcLd8rFJ6u6By7xj5rC4nu4qsk8Cn6f13Dh9jrQTXGbDrDVZaeLgpQ==}
peerDependencies:
'@opentelemetry/api': '1'
peerDependenciesMeta:
'@opentelemetry/api':
optional: true
- '@workflow/[email protected]':
- resolution: {integrity: sha512-tyTEpKb4VoNR8d9WG6gDTGBDdmtuacSKAipzgOfRNQ9WNSzKjtWnp8nIXrvw5BnsfQ/hLsC00x1Q8Hbe8ojTMA==}
+ '@workflow/[email protected]':
+ resolution: {integrity: sha512-xRiG9MEunLxkb7hw7n17+/cKKH4QfFvnQly4cAF2ImxPRDnL0HvWot9eHOPS3S41LEyZ/LSs/sYrIN07XUZbgw==}
'@workflow/[email protected]':
resolution: {integrity: sha512-pav4F2BoirECWR7Nf1TKt+2eETcBj7jj4cBefQ8VXQCA6NPkaKeLfj/zMgi+3zYV5ZIBT4GuUiphsj0/b9hPQQ==}
@@ -7274,27 +7274,27 @@ packages:
'@workflow/[email protected]':
resolution: {integrity: sha512-INB+FcEKQkkFZa+s53sEMTNRFiBa2g9vzjsNuEDagvWxtI0t/cnCyoc57i7kS7nj+3/vGeRjO4Yn5ccbT0hyBQ==}
- '@workflow/[email protected]':
- resolution: {integrity: sha512-YMZqvtRMzlmWkgshURp4ilvcY8VMrNxwXxDEXQ/gkppKWhJ1xdJBpq3plZLf8LWS7JHXd32Wqll/UvQeARu93Q==}
+ '@workflow/[email protected]':
+ resolution: {integrity: sha512-3vDiA8xea4USslIbz6m9HAhxDhvqLbETaXFxTNqVm/m8eji0rLKwnfF6JLaH0Qr1GsovysoOUlvyibokkNHZrg==}
- '@workflow/[email protected]':
- resolution: {integrity: sha512-Cq06oJ2p8MXlTnV4GGTXUDhR4B6hjMIv7esUR6jecN8s0IktFpTab4FpKXEO9JYSjJ7elQlFGKzbghPdOkPFXQ==}
+ '@workflow/[email protected]':
+ resolution: {integrity: sha512-Z9nq5lzjXnig4ONfLnVwTqx6EbxJjhTB5SBKT8ERcKe6/SFm30s1BIZ03bZBJox2Y4jJAgsNgvey29xWGnzMAg==}
peerDependencies:
'@opentelemetry/api': '1'
peerDependenciesMeta:
'@opentelemetry/api':
optional: true
- '@workflow/[email protected]':
- resolution: {integrity: sha512-ZS2/Mww7nf3IWiM9/qV1qEh9sXBaYU/ebL8P5MX8dgpP5uK/27fT14UukuljRpO6KfaPca503aXlEmuXAwmfwg==}
+ '@workflow/[email protected]':
+ resolution: {integrity: sha512-6MWaWw85145AInDBYql33XPETAjrOvu40wJYje/JwJwkFtOrGSx2B2vjbNxscafsN9TIZYUCRdK53spcqsMNzg==}
peerDependencies:
'@opentelemetry/api': '1'
peerDependenciesMeta:
'@opentelemetry/api':
optional: true
- '@workflow/[email protected]':
- resolution: {integrity: sha512-9m//a1EwMiOMhooHj0Y/yR8dM4bXgJfxlBo1yfcdYDmFUvrHLtqOjaZIdB94Zy5V19EiFJIslpWWivQJtAaU8w==}
+ '@workflow/[email protected]':
+ resolution: {integrity: sha512-L7SwNa0fnxcZnu+7TTSbImBH6hvsV4EE2tBVdVv8fdAEqLKrLIFGsLcJuhuL//ZPr7emjLGqOwtFDc+fvrRlmA==}
'@zernio/[email protected]':
resolution: {integrity: sha512-YYcnbCqUhJOymTd3UPaKd1H6Kn8atFE075I5vDETYkTjToIeZd90as/JvShB7OurMdDLLSmJRMJs3RWVqAGW9w==}
@@ -21007,19 +21007,19 @@ snapshots:
'@webgpu/[email protected]': {}
dependencies:
'@aws-sdk/credential-provider-web-identity': 3.972.49
'@jridgewell/trace-mapping': 0.3.31
'@standard-schema/spec': 1.0.0
'@types/ms': 2.1.0
'@vercel/functions': 3.7.5(@aws-sdk/[email protected])([email protected]([email protected]))
- '@workflow/errors': 5.0.0-beta.12
+ '@workflow/errors': 5.0.0-beta.13
'@workflow/serde': 5.0.0-beta.2
- '@workflow/utils': 5.0.0-beta.6
- '@workflow/world': 5.0.0-beta.22
- '@workflow/world-local': 5.0.0-beta.30(@opentelemetry/[email protected])
- '@workflow/world-vercel': 5.0.0-beta.32(@opentelemetry/[email protected])
+ '@workflow/utils': 5.0.0-beta.7
+ '@workflow/world': 5.0.0-beta.23
+ '@workflow/world-local': 5.0.0-beta.31(@opentelemetry/[email protected])
+ '@workflow/world-vercel': 5.0.0-beta.33(@opentelemetry/[email protected])
debug: 4.4.3([email protected])
devalue: 5.8.1
ms: 2.1.3
@@ -21034,9 +21034,9 @@ snapshots:
- supports-color
- ws
- '@workflow/[email protected]':
+ '@workflow/[email protected]':
dependencies:
- '@workflow/utils': 5.0.0-beta.6
+ '@workflow/utils': 5.0.0-beta.7
ms: 2.1.3
'@workflow/[email protected]': {}
@@ -21045,16 +21045,16 @@ snapshots:
'@workflow/[email protected]': {}
- '@workflow/[email protected]':
+ '@workflow/[email protected]':
dependencies:
ms: 2.1.3
- '@workflow/[email protected](@opentelemetry/[email protected])':
+ '@workflow/[email protected](@opentelemetry/[email protected])':
dependencies:
'@vercel/queue': 0.4.0(@opentelemetry/[email protected])
- '@workflow/errors': 5.0.0-beta.12
- '@workflow/utils': 5.0.0-beta.6
- '@workflow/world': 5.0.0-beta.22
+ '@workflow/errors': 5.0.0-beta.13
+ '@workflow/utils': 5.0.0-beta.7
+ '@workflow/world': 5.0.0-beta.23
async-sema: 3.1.1
ulid: 3.0.2
undici: 7.28.0
@@ -21062,12 +21062,12 @@ snapshots:
optionalDependencies:
'@opentelemetry/api': 1.9.1
- '@workflow/[email protected](@opentelemetry/[email protected])':
+ '@workflow/[email protected](@opentelemetry/[email protected])':
dependencies:
'@vercel/oidc': 3.2.0
'@vercel/queue': 0.4.0(@opentelemetry/[email protected])
- '@workflow/errors': 5.0.0-beta.12
- '@workflow/world': 5.0.0-beta.22
+ '@workflow/errors': 5.0.0-beta.13
+ '@workflow/world': 5.0.0-beta.23
cbor-x: 1.6.0
ulid: 3.0.2
undici: 7.28.0
@@ -21075,7 +21075,7 @@ snapshots:
optionalDependencies:
'@opentelemetry/api': 1.9.1
- '@workflow/[email protected]':
+ '@workflow/[email protected]':
dependencies:
ulid: 3.0.2
zod: 4.3.6