The Open Framework for Building Agents
fix(eve): name skill loads on both stream actions (#4571)
Andrew Barbac60d528bed51
diff --git a/.changeset/deferred-skills.md b/.changeset/deferred-skills.mdindex 6a9931e1b..4b3fb4a3e 100644--- a/.changeset/deferred-skills.md+++ b/.changeset/deferred-skills.md@@ -5,6 +5,6 @@Skills now load through `eve__skill({ name })`, which every agent with a skill has in place of `load_skill`, and a skill with `deferred: true` (in `SKILL.md` frontmatter or on `defineSkill`, static or dynamic) leaves the system prompt and is found with `eve__search` instead.- The `load_skill` tool and the `eve/tools/load_skill` export are removed. Delete any `agent/tools/load_skill.ts` override or approval policy that names it; an authored `agent/tools/load_skill.ts` is now an ordinary tool.-- A skill load now reports a `load-skill-result` named for its skill instead of a `tool-result` named `load_skill`, and its client message part is named for the skill.+- A skill load's `load-skill` action now carries the skill's `name`, and its `input` is the model's `{ name }` instead of `{ skill }`. Its result is a `load-skill-result` with the same `name` instead of a `tool-result` named `load_skill`. Its client message part has the `toolName` `eve__skill` instead of `eve:load-skill`, with the skill's name in `toolMetadata.eve.name`. Sessions recorded by earlier versions replay with `name` filled in from `input.skill`.- Eval facts report skill loads in `skillLoads`, which `t.loadedSkill` reads. They no longer count toward `toolCallCount`, `usedNoTools`, or `maxToolCalls`.- Skill names must use only ASCII letters, digits, underscores, and dashes, start with a letter or digit, and have at most 64 characters. The compiler rejects a static skill with another name, and eve skips a dynamic skill resolver that returns one.diff --git a/apps/frameworks/next/app/_chat/trace.ts b/apps/frameworks/next/app/_chat/trace.tsindex 983781806..8b67c6ba6 100644--- a/apps/frameworks/next/app/_chat/trace.ts+++ b/apps/frameworks/next/app/_chat/trace.ts@@ -198,7 +198,7 @@ function getTraceActionNameFromRequest(action: Record<string, unknown>): stringconst kind = getTraceActionKindFromRequest(action);switch (kind) {case "load-skill":- return isRecord(action.input) ? readString(action.input.skill) : undefined;+ return readString(action.name);case "subagent-call":return readString(action.subagentName) ?? readString(action.name);case "tool-call":diff --git a/docs/concepts/built-in-tools.md b/docs/concepts/built-in-tools.mdindex 93034697f..b12cdd051 100644--- a/docs/concepts/built-in-tools.md+++ b/docs/concepts/built-in-tools.md@@ -280,7 +280,7 @@ The decision depends only on what the agent declares, never on what its resolver- `eve__tool({ name, input? })` calls the entry named `name` with `input`, which defaults to `{}`. A connection tool's name is `<connection>__<tool>`, such as `linear__list_issues`. eve checks `input` against the entry's input schema. An invalid input fails with the entry's signature, an unknown name fails with the closest names, and a skill's name fails with a reminder to load it with `eve__skill`. When the server asks for the user's authorization, the call asks the user to sign in and parks until sign-in completes.- `eve__skill({ name })` loads the named skill, deferred or not, and returns its instructions. An unknown name fails with the closest skill names, a tool's name fails with a reminder to call it with `eve__tool` or directly, and a name that matches a connection says to find its tools with `eve__search({ query: "<connection>__" })`.-After `eve__tool` or `eve__skill` resolves its entry, the call runs exactly like a direct call to that entry. A skill load reports a `load-skill` action named for its skill and an `execute_tool eve:load-skill` span. Approval policies and `approvedTools`, workflow tools and tasks, agents, `endsTurn`, `toModelOutput`, hooks, and stream events all see the entry's own name and input, such as `linear__list_issues`. Only model history records the call as `eve__tool` or `eve__skill`.+After `eve__tool` or `eve__skill` resolves its entry, the call runs exactly like a direct call to that entry. A skill load reports a `load-skill` action and a `load-skill-result`, both with the skill's `name`, and an `execute_tool eve:load-skill` span. Approval policies and `approvedTools`, workflow tools and tasks, agents, `endsTurn`, `toModelOutput`, hooks, and stream events all see the entry's own name and input, such as `linear__list_issues`. Only model history records the call as `eve__tool` or `eve__skill`.eve tells the model what it can reach in an append-only context message rather than in the system prompt: which kinds of deferred entries exist, up to 20 namespaces (the first `__` segment of deferred names, such as `sre` for `sre__list_alerts`), and up to 20 connections with their descriptions. It never names a deferred entry, so deferred entries stay out of context until `eve__search` finds them. A later step appends the listing again only when that changes; a deferred entry added to a listed namespace, or without one, changes nothing. The definitions of the catalog tools never change within a deployment, so adding a deferred entry, signing in, or resolving a dynamic connection keeps the cached prompt prefix.diff --git a/docs/concepts/sessions-runs-and-streaming.md b/docs/concepts/sessions-runs-and-streaming.mdindex 46d94907b..926b6f867 100644--- a/docs/concepts/sessions-runs-and-streaming.md+++ b/docs/concepts/sessions-runs-and-streaming.md@@ -109,11 +109,11 @@ The default client reducer accumulates assistant text, reasoning, and streamed tIf a model provider fails after partial output and eve retries the call, the durable stream keeps events from both attempts. When the failed attempt emitted only deltas, a later completed event lets replaceable projections converge on the successful attempt. A completed block does not mean the provider attempt itself later succeeded; removing abandoned completed blocks would require attempt identity, which these events do not carry.-The client validates the `x-eve-stream-version` header on every connection. It accepts v21 through v26 and normalizes v21–v24 cumulative message and reasoning appends, plus v24 offset-based tool-input appends, to the delta-only contract that v25 introduced. This lets a reconnect cross deployments without changing the reducer input. A current server performs the same normalization when replaying a session written by an earlier deployment. A missing or unsupported version, or an append whose fields do not match its declared version, fails instead of being interpreted as a current event.+The client validates the `x-eve-stream-version` header on every connection. It accepts v21 through v26 and normalizes v21–v24 cumulative message and reasoning appends, plus v24 offset-based tool-input appends, to the delta-only contract that v25 introduced. It also adds the skill's `name` to `load-skill` requests that eve 0.75 and earlier recorded without one. This lets a reconnect cross deployments without changing the reducer input. A current server performs the same normalization when replaying a session written by an earlier deployment. A missing or unsupported version, or an append whose fields do not match its declared version, fails instead of being interpreted as a current event.When a streamed tool input becomes a validated call, its `action.input.appended` events precede the matching `actions.requested` event. The default client reducer projects the potentially incomplete JSON as a `dynamic-tool` part with `state: "input-streaming"` and cumulative text in `inputText`. `actions.requested` replaces that part with `state: "input-available"` and the validated `input`. Excluded internal actions never publish their input stream.-A call the model makes through [`eve__tool` or `eve__skill`](/docs/concepts/built-in-tools#eve__search-eve__tool-and-eve__skill) is reported as a call to the entry it names. Its `actions.requested` and `action.result` events carry that entry's name and input, such as `linear__list_issues`, never the catalog tool's. Such a call publishes no `action.input.appended` events, because its entry is known only once its input is complete.+A call the model makes through [`eve__tool` or `eve__skill`](/docs/concepts/built-in-tools#eve__search-eve__tool-and-eve__skill) is reported as a call to the entry it names. Its `actions.requested` and `action.result` events carry that entry's name and input, such as `linear__list_issues`, never the catalog tool's. An `eve__skill` call is reported as a skill load: a `load-skill` action with the skill's `name` and the call's `{ name }` input, then a `load-skill-result` with the same `name`. Calls through either tool publish no `action.input.appended` events, because their entry is known only once their input is complete.`action.partial` carries one complete preliminary output snapshot from an authored async-generator tool. A later partial for the same `callId` replaces it, and `action.result` is the final snapshot. When the durable writer is busy, eve may keep only the newest adjacent partial for a call. Treat partials as last-write-wins: a durable step can retry and replay overlapping event runs. Provider-executed tool progress and MCP progress notifications are not projected as `action.partial` events.diff --git a/docs/guides/frontend/overview.mdx b/docs/guides/frontend/overview.mdxindex 4d95dc01b..b5e29107e 100644--- a/docs/guides/frontend/overview.mdx+++ b/docs/guides/frontend/overview.mdx@@ -172,7 +172,7 @@ supplied `session` remains externally owned and is never replaced by prewarming`data.messages` are eve-owned `EveMessage[]`. Assistant text and reasoning parts have a stable `id` from the event that created the part. Appends and completion retain that ID. Use `part.id` to key streamed assistant content, including successive text parts within one step. Older events without an ID get a best-effort fallback. User text parts may not have an ID.-Common text, reasoning, file, and dynamic-tool parts follow the [AI SDK `UIMessage`](https://ai-sdk.dev/docs/reference/ai-sdk-core/ui-message) rendering convention, but the types are not interchangeable. eve also exposes authorization and HITL metadata, and a file part's URL can be absent. A tool part's `toolMetadata.eve.label` is how the call reads to people, the same text eve's channels show: the tool's [label](/docs/tools#label-tool-activity) or a readable form of its name, replaced by its completion label once the call settles. Show it instead of `toolName`, which can be an internal name such as `eve:load-skill`. Adapt those parts before passing messages to an API typed as `UIMessage[]`.+Common text, reasoning, file, and dynamic-tool parts follow the [AI SDK `UIMessage`](https://ai-sdk.dev/docs/reference/ai-sdk-core/ui-message) rendering convention, but the types are not interchangeable. eve also exposes authorization and HITL metadata, and a file part's URL can be absent. A tool part's `toolMetadata.eve.label` is how the call reads to people, the same text eve's channels show: the tool's [label](/docs/tools#label-tool-activity) or a readable form of its name, replaced by its completion label once the call settles. Show it instead of `toolName`, which can be an internal name such as `eve:subagent:researcher`. A skill load's part has the `toolName` `eve__skill`, and `toolMetadata.eve.name` holds the skill's name. Adapt those parts before passing messages to an API typed as `UIMessage[]`.A tool part's `state` comes from the shared lifecycle interpretation of the event stream. Its events supply input, output, and error text. A call waiting on an approval or a question reads `approval-requested` until the stream settles the request. An answer you submit doesn't change the part until then. `toolCallState(conversation, callId)` reads tool-call status, including task cancellation and calls interrupted without a result. The full event projection remains internal; `ConversationState` retains its messages, turns, inputs, tasks, and agent sessions.diff --git a/packages/eve/extension-contracts/compatibility/channel/v55.ts b/packages/eve/extension-contracts/compatibility/channel/v55.tsnew file mode 100644index 000000000..dae79482c--- /dev/null+++ b/packages/eve/extension-contracts/compatibility/channel/v55.ts@@ -0,0 +1,14 @@+import { defineChannel } from "#public/channels/index.js";++// Epoch 55 skill loads named their skill only in the action's `input`, and a+// `load-skill-result` might omit `name`; epoch 56 adds `name` to `load-skill`+// requests and requires it on results. Channels that read the result's name keep working.+export default defineChannel({+ routes: [],+ events: {+ "action.result"(event) {+ if (event.result.kind !== "load-skill-result") return;+ console.info("skill loaded", { callId: event.result.callId, skill: event.result.name });+ },+ },+});diff --git a/packages/eve/extension-contracts/compatibility/connection/v44.ts b/packages/eve/extension-contracts/compatibility/connection/v44.tsnew file mode 100644index 000000000..046774a83--- /dev/null+++ b/packages/eve/extension-contracts/compatibility/connection/v44.ts@@ -0,0 +1,12 @@+import { defineMcpClientConnection } from "#public/connections/index.js";++// Epoch 44 skill loads named their skill only in the action's `input`, and a+// `load-skill-result` might omit `name`; epoch 45 adds `name` to `load-skill`+// requests and requires it on results.+export default defineMcpClientConnection({+ description: "Search the incident tracker.",+ url: "https://incidents.example.com/mcp",+ approval({ toolName }) {+ return toolName.endsWith("__search") ? "approved" : "user-approval";+ },+});diff --git a/packages/eve/extension-contracts/compatibility/dynamicInstructions/v35.ts b/packages/eve/extension-contracts/compatibility/dynamicInstructions/v35.tsnew file mode 100644index 000000000..c97a1d88f--- /dev/null+++ b/packages/eve/extension-contracts/compatibility/dynamicInstructions/v35.ts@@ -0,0 +1,13 @@+import { defineDynamic, defineInstructions } from "#public/instructions/index.js";++// Epoch 35 skill loads named their skill only in the action's `input`, and a+// `load-skill-result` might omit `name`; epoch 36 adds `name` to `load-skill`+// requests and requires it on results.+export default defineDynamic({+ events: {+ "turn.started": (_event, ctx) =>+ defineInstructions({+ markdown: `Triage the incident reported in session ${ctx.session.id}.`,+ }),+ },+});diff --git a/packages/eve/extension-contracts/compatibility/dynamicSkill/v34.ts b/packages/eve/extension-contracts/compatibility/dynamicSkill/v34.tsnew file mode 100644index 000000000..38fc99116--- /dev/null+++ b/packages/eve/extension-contracts/compatibility/dynamicSkill/v34.ts@@ -0,0 +1,15 @@+import { defineDynamic, defineSkill } from "#public/skills/index.js";++// Epoch 34 skill loads named their skill only in the action's `input`, and a+// `load-skill-result` might omit `name`; epoch 35 adds `name` to `load-skill`+// requests and requires it on results.+export default defineDynamic({+ events: {+ "turn.started": (_event, ctx) =>+ defineSkill({+ deferred: true,+ description: "Triage the active incident.",+ markdown: `Triage the incident reported in session ${ctx.session.id}.`,+ }),+ },+});diff --git a/packages/eve/extension-contracts/compatibility/dynamicTool/v76.ts b/packages/eve/extension-contracts/compatibility/dynamicTool/v76.tsnew file mode 100644index 000000000..40dc3d70c--- /dev/null+++ b/packages/eve/extension-contracts/compatibility/dynamicTool/v76.ts@@ -0,0 +1,17 @@+import { defineDynamic, defineTool } from "#public/tools/index.js";++// Epoch 76 skill loads named their skill only in the action's `input`, and a+// `load-skill-result` might omit `name`; epoch 77 adds `name` to `load-skill`+// requests and requires it on results. Dynamic tools don't read skill loads.+export default defineDynamic({+ events: {+ "turn.started": (_event, ctx) => ({+ session: defineTool({+ deferred: true,+ description: "Return the active session identifier.",+ inputSchema: { type: "object", properties: {} },+ execute: () => ({ sessionId: ctx.session.id }),+ }),+ }),+ },+});diff --git a/packages/eve/extension-contracts/compatibility/hook/v42.ts b/packages/eve/extension-contracts/compatibility/hook/v42.tsnew file mode 100644index 000000000..53e01375a--- /dev/null+++ b/packages/eve/extension-contracts/compatibility/hook/v42.ts@@ -0,0 +1,14 @@+import { defineHook } from "#public/hooks/index.js";++// Epoch 42 skill loads named their skill only in the action's `input`, and a+// `load-skill-result` might omit `name`; epoch 43 adds `name` to `load-skill`+// requests and requires it on results. Hooks that read the result's name keep working.+export default defineHook({+ events: {+ "action.result"(event) {+ const { result } = event.data;+ if (result.kind !== "load-skill-result") return;+ console.info("skill loaded", { callId: result.callId, skill: result.name });+ },+ },+});diff --git a/packages/eve/extension-contracts/compatibility/schedule/v28.ts b/packages/eve/extension-contracts/compatibility/schedule/v28.tsnew file mode 100644index 000000000..225c2ee9e--- /dev/null+++ b/packages/eve/extension-contracts/compatibility/schedule/v28.ts@@ -0,0 +1,24 @@+import { defineChannel } from "#public/channels/index.js";+import { defineSchedule } from "#public/schedules/index.js";++// Epoch 28 skill loads named their skill only in the action's `input`, and a+// `load-skill-result` might omit `name`; epoch 29 adds `name` to `load-skill`+// requests and requires it on results.+const reports = defineChannel({+ routes: [],+ events: {+ "actions.requested"(event) {+ console.info("report actions", { count: event.actions.length });+ },+ },+ receive(input, { from }) {+ return from("nightly-report").send(input.message, { auth: input.auth });+ },+});++export default defineSchedule({+ cron: "0 2 * * *",+ async run({ to, appAuth, waitUntil }) {+ waitUntil(to(reports, {}).send("Prepare the nightly report.", { auth: appAuth }));+ },+});diff --git a/packages/eve/extension-contracts/compatibility/subagent/v32.ts b/packages/eve/extension-contracts/compatibility/subagent/v32.tsnew file mode 100644index 000000000..915e00e31--- /dev/null+++ b/packages/eve/extension-contracts/compatibility/subagent/v32.ts@@ -0,0 +1,10 @@+import { defineAgent } from "#public/index.js";++// Epoch 32 skill loads named their skill only in the action's `input`, and a+// `load-skill-result` might omit `name`; epoch 33 adds `name` to `load-skill`+// requests and requires it on results.+export default defineAgent({+ description: "Research the incidents behind a metric change.",+ model: "openai/gpt-5.6-sol",+ tool: "deferred",+});diff --git a/packages/eve/extension-contracts/compatibility/tool/v81.ts b/packages/eve/extension-contracts/compatibility/tool/v81.tsnew file mode 100644index 000000000..4275bda74--- /dev/null+++ b/packages/eve/extension-contracts/compatibility/tool/v81.ts@@ -0,0 +1,13 @@+import { z } from "zod";+import { defineTool } from "#public/tools/index.js";++// Epoch 81 skill loads named their skill only in the action's `input`, and a+// `load-skill-result` might omit `name`; epoch 82 adds `name` to `load-skill`+// requests and requires it on results. Tools that don't read skill loads keep working.+export default defineTool({+ deferred: true,+ description: "Summarize the open incidents for a service.",+ inputSchema: z.object({ service: z.string() }),+ outputSchema: z.object({ service: z.string(), summary: z.string() }),+ execute: ({ service }) => ({ service, summary: `No open incidents for ${service}.` }),+});diff --git a/packages/eve/extension-contracts/reports/channel/v56.json b/packages/eve/extension-contracts/reports/channel/v56.jsonnew file mode 100644index 000000000..11840a672--- /dev/null+++ b/packages/eve/extension-contracts/reports/channel/v56.json@@ -0,0 +1,21 @@+{+ "kind": "eve-extension-capability-contract",+ "capability": "channel",+ "epoch": 56,+ "sha256": "abda59b6333df26fbdf2d4a8da92318b31a615a0ca262ec9fa1737147644a7f7",+ "exports": [+ "DELETE",+ "GET",+ "HEAD",+ "OPTIONS",+ "PATCH",+ "POST",+ "PUT",+ "WS",+ "createWebSocketUpgradeServer",+ "defineChannel",+ "disableRoute",+ "isChannel",+ "isDisabledRouteSentinel"+ ]+}diff --git a/packages/eve/extension-contracts/reports/connection/v45.json b/packages/eve/extension-contracts/reports/connection/v45.jsonnew file mode 100644index 000000000..c58dbc796--- /dev/null+++ b/packages/eve/extension-contracts/reports/connection/v45.json@@ -0,0 +1,16 @@+{+ "kind": "eve-extension-capability-contract",+ "capability": "connection",+ "epoch": 45,+ "sha256": "983130f9ede9979354f0a55e9594ee2c29d0c7b40602a7f2d5eb956a613c3dd8",+ "exports": [+ "ConnectionAuthorizationFailedError",+ "ConnectionAuthorizationRequiredError",+ "defineDynamic",+ "defineInteractiveAuthorization",+ "defineMcpClientConnection",+ "defineOpenAPIConnection",+ "isConnectionAuthorizationFailedError",+ "isConnectionAuthorizationRequiredError"+ ]+}diff --git a/packages/eve/extension-contracts/reports/dynamicInstructions/v36.json b/packages/eve/extension-contracts/reports/dynamicInstructions/v36.jsonnew file mode 100644index 000000000..eca1da2b8--- /dev/null+++ b/packages/eve/extension-contracts/reports/dynamicInstructions/v36.json@@ -0,0 +1,7 @@+{+ "kind": "eve-extension-capability-contract",+ "capability": "dynamicInstructions",+ "epoch": 36,+ "sha256": "28550c5b4bf5625540d69de6140a89dd8087cc99e1a3370f1577eb22e287e9e8",+ "exports": ["defineDynamic"]+}diff --git a/packages/eve/extension-contracts/reports/dynamicSkill/v35.json b/packages/eve/extension-contracts/reports/dynamicSkill/v35.jsonnew file mode 100644index 000000000..1d0156c78--- /dev/null+++ b/packages/eve/extension-contracts/reports/dynamicSkill/v35.json@@ -0,0 +1,7 @@+{+ "kind": "eve-extension-capability-contract",+ "capability": "dynamicSkill",+ "epoch": 35,+ "sha256": "dc82d3dfbc5185583d5edbc3e902fc2ac7d4e8d3c7ae1d69eda0c49113c976a9",+ "exports": ["defineDynamic"]+}diff --git a/packages/eve/extension-contracts/reports/dynamicTool/v77.json b/packages/eve/extension-contracts/reports/dynamicTool/v77.jsonnew file mode 100644index 000000000..c824f7201--- /dev/null+++ b/packages/eve/extension-contracts/reports/dynamicTool/v77.json@@ -0,0 +1,16 @@+{+ "kind": "eve-extension-capability-contract",+ "capability": "dynamicTool",+ "epoch": 77,+ "sha256": "1b7310997c3d5e17289641fee1e1bb2a54c61b926b74cb3682c990f4a2c95ece",+ "exports": [+ "DynamicToolEntry",+ "DynamicToolEvents",+ "DynamicToolResult",+ "DynamicToolSet",+ "auto",+ "defineDurableCallback",+ "defineDurableSchema",+ "defineDynamic"+ ]+}diff --git a/packages/eve/extension-contracts/reports/hook/v43.json b/packages/eve/extension-contracts/reports/hook/v43.jsonnew file mode 100644index 000000000..fb8b18a27--- /dev/null+++ b/packages/eve/extension-contracts/reports/hook/v43.json@@ -0,0 +1,7 @@+{+ "kind": "eve-extension-capability-contract",+ "capability": "hook",+ "epoch": 43,+ "sha256": "bc411b317cb8251af074f3b2f3fb7a56f144cf3d47292277fa188d961aef7309",+ "exports": ["defineHook"]+}diff --git a/packages/eve/extension-contracts/reports/schedule/v29.json b/packages/eve/extension-contracts/reports/schedule/v29.jsonnew file mode 100644index 000000000..1c9ee4b6a--- /dev/null+++ b/packages/eve/extension-contracts/reports/schedule/v29.json@@ -0,0 +1,15 @@+{+ "kind": "eve-extension-capability-contract",+ "capability": "schedule",+ "epoch": 29,+ "sha256": "09cd422e9b68acce829c6b8d765ecf3b6bb7a912bad8a71bb254322739951737",+ "exports": [+ "ScheduleDefinition",+ "ScheduleHandlerArgs",+ "ScheduleRunHandler",+ "ScheduleToFn",+ "TypedReceiveTarget",+ "defineSchedule",+ "isScheduleAuth"+ ]+}diff --git a/packages/eve/extension-contracts/reports/subagent/v33.json b/packages/eve/extension-contracts/reports/subagent/v33.jsonnew file mode 100644index 000000000..57885fc78--- /dev/null+++ b/packages/eve/extension-contracts/reports/subagent/v33.json@@ -0,0 +1,23 @@+{+ "kind": "eve-extension-capability-contract",+ "capability": "subagent",+ "epoch": 33,+ "sha256": "4d95825ccc3b6c34754e18db0499bf22270345b698f281effed4c4d49230cd39",+ "exports": [+ "AgentCompactionDefinition",+ "AgentDefinition",+ "AgentModelDefinition",+ "AgentStaticModelDefinition",+ "DefinedAgent",+ "DynamicLocalSubagentDefinition",+ "DynamicSubagentDefinition",+ "RemoteAgentDefinition",+ "RemoteAgentDefinitionInput",+ "WorkspaceAgentDefinition",+ "WorkspaceAgentTransport",+ "defineAgent",+ "defineDynamic",+ "defineRemoteAgent",+ "defineWorkspaceAgent"+ ]+}diff --git a/packages/eve/extension-contracts/reports/tool/v82.json b/packages/eve/extension-contracts/reports/tool/v82.jsonnew file mode 100644index 000000000..b2d82bf54--- /dev/null+++ b/packages/eve/extension-contracts/reports/tool/v82.json@@ -0,0 +1,29 @@+{+ "kind": "eve-extension-capability-contract",+ "capability": "tool",+ "epoch": 82,+ "sha256": "290d516417fe5edf2b5fac46502b0eed85b5876089094e208f15908f5b01f516",+ "exports": [+ "AgentRouterInput",+ "AgentRouterTool",+ "WorkflowStepToolContext",+ "WorkflowTool",+ "WorkflowToolDefinition",+ "WorkflowToolInput",+ "WorkflowToolOptions",+ "agentRouter",+ "decide",+ "defaultWebSearch",+ "defineTool",+ "defineWorkflowTool",+ "disableTool",+ "isDisabledToolSentinel",+ "isWebSearchToolDefinition",+ "serializeModelInputSchema",+ "toolOutput",+ "toolOutputPart",+ "toolResultFrom",+ "webSearch",+ "workflow"+ ]+}diff --git a/packages/eve/src/client/message-action-parts.ts b/packages/eve/src/client/message-action-parts.tsindex d230d8b10..391ad08d9 100644--- a/packages/eve/src/client/message-action-parts.ts+++ b/packages/eve/src/client/message-action-parts.ts@@ -1,4 +1,4 @@-import { SKILL_ENTRY_NAME } from "#protocol/catalog-tools.js";+import { SKILL_TOOL_NAME } from "#protocol/catalog-tools.js";import { actionRequestName } from "#shared/action-request-name.js";import { displayTitle } from "#shared/display-name.js";import type { RuntimeActionRequest, RuntimeActionResult } from "#shared/action-types.js";@@ -78,7 +78,7 @@ export function normalizeActionRequest(action: RuntimeActionRequest): ActionDescconst name = actionRequestName(action);switch (action.kind) {case "load-skill":- return { kind: "load-skill", name, toolName: SKILL_ENTRY_NAME };+ return { kind: "load-skill", name, toolName: SKILL_TOOL_NAME };case "tool-call":case "workflow-tool-call":return { kind: "tool-call", name, toolName: name };@@ -92,11 +92,7 @@ export function normalizeActionRequest(action: RuntimeActionRequest): ActionDescexport function normalizeActionResult(result: RuntimeActionResult): ActionDescriptor {switch (result.kind) {case "load-skill-result":- return {- kind: "load-skill",- name: result.name ?? SKILL_ENTRY_NAME,- toolName: SKILL_ENTRY_NAME,- };+ return { kind: "load-skill", name: result.name, toolName: SKILL_TOOL_NAME };case "tool-result":return {kind: "tool-call",diff --git a/packages/eve/src/compiler/extension-compatibility.ts b/packages/eve/src/compiler/extension-compatibility.tsindex 05ef04a29..9982b5729 100644--- a/packages/eve/src/compiler/extension-compatibility.ts+++ b/packages/eve/src/compiler/extension-compatibility.ts@@ -22,9 +22,9 @@ interface ExtensionCapabilityContract {const EXTENSION_CAPABILITY_CONTRACTS = {extension: { current: 1, supported: [1], dropped: {} },tool: {- current: 81,+ current: 82,supported: [- 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 29, 30, 31, 32, 34, 35, 76, 77, 78, 80, 81,+ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 29, 30, 31, 32, 34, 35, 76, 77, 78, 80, 81, 82,],dropped: {14: "TaskExec.delegated was removed; migrate to workflow-backed background tools",@@ -87,10 +87,10 @@ const EXTENSION_CAPABILITY_CONTRACTS = {},},dynamicTool: {- current: 76,+ current: 77,supported: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 22, 31, 32, 33, 52, 54,- 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 72, 73, 75, 76,+ 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 72, 73, 75, 76, 77,],dropped: {21: "Message and reasoning append events now expose deltas instead of cumulative snapshots.",@@ -131,10 +131,10 @@ const EXTENSION_CAPABILITY_CONTRACTS = {},},channel: {- current: 55,+ current: 56,supported: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 14, 15, 16, 17, 18, 29, 31, 36, 37, 38, 39, 40, 41, 42,- 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 54, 55,+ 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 54, 55, 56,],dropped: {12: "Message and reasoning append events now expose deltas instead of cumulative snapshots.",@@ -157,9 +157,10 @@ const EXTENSION_CAPABILITY_CONTRACTS = {},},schedule: {- current: 28,+ current: 29,supported: [1, 2, 3, 4, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28,+ 29,],dropped: {5: "Message and reasoning append events now expose deltas instead of cumulative snapshots.",@@ -168,9 +169,9 @@ const EXTENSION_CAPABILITY_CONTRACTS = {},},subagent: {- current: 32,+ current: 33,supported: [- 3, 4, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 19, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32,+ 3, 4, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 19, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33,],dropped: {1: "Persistent subagent sessions are now the default and the experimental opt-in was removed",@@ -184,10 +185,10 @@ const EXTENSION_CAPABILITY_CONTRACTS = {},},connection: {- current: 44,+ current: 45,supported: [1, 2, 3, 4, 5, 6, 7, 8, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 24, 26, 32, 33, 34,- 35, 36, 37, 38, 39, 40, 41, 43, 44,+ 35, 36, 37, 38, 39, 40, 41, 43, 44, 45,],dropped: {9: "Dynamic connection resolvers no longer receive conversation or channel continuation data",@@ -203,8 +204,8 @@ const EXTENSION_CAPABILITY_CONTRACTS = {},},hook: {- current: 42,- supported: [20, 21, 22, 23, 25, 27, 31, 32, 33, 34, 35, 36, 37, 38, 39, 41, 42],+ current: 43,+ supported: [20, 21, 22, 23, 25, 27, 31, 32, 33, 34, 35, 36, 37, 38, 39, 41, 42, 43],dropped: {1: "Model identity moved from session.started runtime metadata to step.started call attribution.",2: "Model identity moved from session.started runtime metadata to step.started call attribution.",@@ -235,10 +236,10 @@ const EXTENSION_CAPABILITY_CONTRACTS = {},skill: { current: 3, supported: [1, 2, 3], dropped: {} },dynamicSkill: {- current: 34,+ current: 35,supported: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 14, 15, 16, 17, 18, 19, 20, 21, 25, 26, 27, 28, 29, 30,- 31, 32, 33, 34,+ 31, 32, 33, 34, 35,],dropped: {13: "Message and reasoning append events now expose deltas instead of cumulative snapshots.",@@ -249,10 +250,10 @@ const EXTENSION_CAPABILITY_CONTRACTS = {},instructions: { current: 2, supported: [1, 2], dropped: {} },dynamicInstructions: {- current: 35,+ current: 36,supported: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 15, 16, 17, 18, 19, 20, 21, 22, 26, 27, 28, 29, 30,- 31, 32, 33, 34, 35,+ 31, 32, 33, 34, 35, 36,],dropped: {14: "Message and reasoning append events now expose deltas instead of cumulative snapshots.",diff --git a/packages/eve/src/evals/assertions/run.ts b/packages/eve/src/evals/assertions/run.tsindex 445f3a60e..b39cf7e93 100644--- a/packages/eve/src/evals/assertions/run.ts+++ b/packages/eve/src/evals/assertions/run.ts@@ -414,7 +414,7 @@ function actionResultLabel(case "subagent-result":return `subagent-result:${result.subagentName}`;case "load-skill-result":- return result.name === undefined ? "load-skill-result" : `load-skill-result:${result.name}`;+ return `load-skill-result:${result.name}`;}}diff --git a/packages/eve/src/evals/runner/derive-run-facts.ts b/packages/eve/src/evals/runner/derive-run-facts.tsindex 40fdab151..876b3ba65 100644--- a/packages/eve/src/evals/runner/derive-run-facts.ts+++ b/packages/eve/src/evals/runner/derive-run-facts.ts@@ -3,7 +3,6 @@ import type {MessageStreamEvent,TaskSettledStreamEvent,} from "#protocol/message.js";-import { requestedSkill } from "#shared/action-request-name.js";import type { InputRequest } from "#shared/input.js";import type { JsonObject, JsonValue } from "#shared/json.js";import type { TokenUsage } from "#shared/token-usage.js";@@ -112,7 +111,7 @@ export function deriveRunFacts(skillLoads.set(action.callId, {output: undefined,sessionId,- skill: requestedSkill(action),+ skill: action.name,status: "pending",turnIndex: Math.max(turnIndex, 0),});diff --git a/packages/eve/src/execution/catalog/skills.ts b/packages/eve/src/execution/catalog/skills.tsindex 095918c35..62cb2c3a0 100644--- a/packages/eve/src/execution/catalog/skills.ts+++ b/packages/eve/src/execution/catalog/skills.ts@@ -62,16 +62,16 @@ function skillName(input: unknown): string {return skill === undefined ? "" : ` ${skill}`;}-/** The entry every `eve__skill` call resolves to, with its skill as `{ skill }`. */+/** The entry every `eve__skill` call resolves to, with the call's own `{ name }` input. */export function createSkillLoader(skills: ReadonlyMap<string, CatalogSkill>,): HarnessToolDefinition {return {description: "Loads a skill's instructions.",- execute: (input: { readonly skill: string }) => {- const skill = skills.get(input.skill);+ execute: (input: { readonly name: string }) => {+ const skill = skills.get(input.name);// `eve__skill` validation resolves every skill before the call runs.- if (skill === undefined) throw new Error(`No skill named "${input.skill}".`);+ if (skill === undefined) throw new Error(`No skill named "${input.name}".`);return skill.markdown;},frameworkTool: true,@@ -107,7 +107,7 @@ export function unknownSkillMessage(const SKILL_INPUT_SCHEMA = toInputSchema({type: "object",- properties: { skill: { type: "string" } },- required: ["skill"],+ properties: { name: { type: "string" } },+ required: ["name"],additionalProperties: false,});diff --git a/packages/eve/src/execution/catalog/step-catalog.integration.test.ts b/packages/eve/src/execution/catalog/step-catalog.integration.test.tsindex 05aca50d9..fb00c3b3f 100644--- a/packages/eve/src/execution/catalog/step-catalog.integration.test.ts+++ b/packages/eve/src/execution/catalog/step-catalog.integration.test.ts@@ -603,7 +603,11 @@ describe("step catalog in the harness (real AI SDK)", () => {driver.events.flatMap((event) =>event.type === "actions.requested"? event.data.actions.map((action) =>- "toolName" in action ? action.toolName : "name" in action ? action.name : action.kind,+ action.kind === "load-skill"+ ? `skill:${action.name}`+ : "toolName" in action+ ? action.toolName+ : action.name,): [],),@@ -620,11 +624,30 @@ describe("step catalog in the harness (real AI SDK)", () => {"private__list_items","products__get_status",SEARCH_TOOL_NAME,- "load-skill",- "load-skill",- "load-skill",- "load-skill",+ "skill:release_notes",+ "skill:pdf-forms",+ "skill:ops__playbook",+ "skill:house-rules",]);+ // A skill load's result is named for the same skill, and its input is the model's own.+ const skillActions = driver.events.flatMap((event) =>+ event.type === "actions.requested"+ ? event.data.actions.filter((action) => action.kind === "load-skill")+ : [],+ );+ expect(skillActions.map(({ input, name }) => ({ input, name }))).toEqual(+ ["release_notes", "pdf-forms", "ops__playbook", "house-rules"].map((name) => ({+ input: { name },+ name,+ })),+ );+ expect(+ driver.events.flatMap((event) =>+ event.type === "action.result" && event.data.result.kind === "load-skill-result"+ ? [event.data.result.name]+ : [],+ ),+ ).toEqual(["release_notes", "pdf-forms", "ops__playbook", "house-rules"]);});it("runs a listed tool named through eve__tool exactly as a direct call", async () => {diff --git a/packages/eve/src/execution/catalog/step-catalog.test.ts b/packages/eve/src/execution/catalog/step-catalog.test.tsindex 52f6cfacf..de169c753 100644--- a/packages/eve/src/execution/catalog/step-catalog.test.ts+++ b/packages/eve/src/execution/catalog/step-catalog.test.ts@@ -298,7 +298,7 @@ describe("buildStepCatalog", () => {it("resolves an eve__skill call to the skill loader, which returns the skill's markdown", async () => {const resolved = catalog.resolve({ input: { name: "pdf-forms" }, toolName: SKILL_TOOL_NAME });- expect(resolved?.call).toEqual({ input: { skill: "pdf-forms" }, toolName: "eve:load-skill" });+ expect(resolved?.call).toEqual({ input: { name: "pdf-forms" }, toolName: "eve:load-skill" });const label = resolved?.definition.label;expect(label?.start?.(resolved?.call.input)).toBe("Load skill pdf-forms");expect(label?.complete?.(resolved?.call.input, "# PDF forms")).toBe("Loaded skill pdf-forms");diff --git a/packages/eve/src/execution/catalog/step-catalog.ts b/packages/eve/src/execution/catalog/step-catalog.tsindex e3f54e679..fe2196d33 100644--- a/packages/eve/src/execution/catalog/step-catalog.ts+++ b/packages/eve/src/execution/catalog/step-catalog.ts@@ -197,7 +197,7 @@ export function buildStepCatalog(input: {if (toolCall.toolName === SKILL_TOOL_NAME && catalogTools.skills) {const name = targetName(toolCall.input);if (name === undefined || !skills.has(name)) return undefined;- const call = { ...toolCall, input: { skill: name }, toolName: SKILL_ENTRY_NAME };+ const call = { ...toolCall, input: { name }, toolName: SKILL_ENTRY_NAME };return { call, definition: skillLoader };}const definition = advertised.get(toolCall.toolName);diff --git a/packages/eve/src/harness/action-result-helpers.ts b/packages/eve/src/harness/action-result-helpers.tsindex 57c2194be..fbcabcd35 100644--- a/packages/eve/src/harness/action-result-helpers.ts+++ b/packages/eve/src/harness/action-result-helpers.ts@@ -112,12 +112,13 @@ export function toActionResult(result: RuntimeToolResultActionResult,input: unknown,): RuntimeActionResult {- if (result.toolName !== SKILL_ENTRY_NAME) return result;+ const skill = result.toolName === SKILL_ENTRY_NAME ? skillTarget(input) : undefined;+ if (skill === undefined) return result;return {callId: result.callId,isError: result.isError,kind: "load-skill-result",- name: skillTarget(input),+ name: skill,output: result.output,};}diff --git a/packages/eve/src/harness/coordination.ts b/packages/eve/src/harness/coordination.tsindex dccaf8677..b3cba8e4e 100644--- a/packages/eve/src/harness/coordination.ts+++ b/packages/eve/src/harness/coordination.ts@@ -9,6 +9,7 @@ import type {} from "#shared/action-types.js";import { SKILL_ENTRY_NAME, SKILL_TOOL_NAME } from "#protocol/catalog-tools.js";import { markRuntimeWorkflowToolAction } from "#shared/action-types.js";+import { skillTarget } from "#shared/action-request-name.js";import { parseJsonObject, type JsonObject } from "#shared/json.js";import { getProxyInputRequests } from "#harness/proxy-input-requests.js";import {@@ -165,8 +166,9 @@ export function createRuntimeActionRequestFromToolCall(input: {callId: input.toolCall.toolCallId,toolName: input.toolCall.toolName,});- if (input.toolCall.toolName === SKILL_ENTRY_NAME) {- return { callId: input.toolCall.toolCallId, input: toolInput, kind: "load-skill" };+ const skill = input.toolCall.toolName === SKILL_ENTRY_NAME ? skillTarget(toolInput) : undefined;+ if (skill !== undefined) {+ return { callId: input.toolCall.toolCallId, input: toolInput, kind: "load-skill", name: skill };}const handling = definition?.behavior?.handling;if (diff --git a/packages/eve/src/instrumentation/native-events.ts b/packages/eve/src/instrumentation/native-events.tsindex f2f59e6ea..625d75fdc 100644--- a/packages/eve/src/instrumentation/native-events.ts+++ b/packages/eve/src/instrumentation/native-events.ts@@ -35,7 +35,6 @@ import {type RuntimeActionResult,} from "#shared/action-types.js";import type { ChannelAudience } from "#shared/channel-audience.js";-import { requestedSkill } from "#shared/action-request-name.js";export interface CreateInstrumentationHandleEventInput {readonly isFrameworkTool?: (name: string) => boolean;@@ -334,7 +333,6 @@ function isFrameworkAction(function actionName(action: RuntimeActionRequest): string {if (action.kind === "tool-call" || action.kind === "workflow-tool-call") return action.toolName;- if (action.kind === "load-skill") return requestedSkill(action);return action.name;}diff --git a/packages/eve/src/protocol/catalog-tools.ts b/packages/eve/src/protocol/catalog-tools.tsindex a9f0fdfa2..e80ac4c2b 100644--- a/packages/eve/src/protocol/catalog-tools.ts+++ b/packages/eve/src/protocol/catalog-tools.ts@@ -6,8 +6,8 @@ export const SKILL_TOOL_NAME = "eve__skill";/*** The name an `eve__skill` call takes once it resolves inside the harness,- * where it reports as a `load-skill` action, and the tool name of a skill- * load's client message part. The colon keeps it out of the tool namespace,- * because skills and tools have separate names.+ * where it reports as a `load-skill` action named for its skill. The colon+ * keeps it out of the tool namespace, because skills and tools have separate+ * names. Stream events and client message parts never carry it.*/export const SKILL_ENTRY_NAME = "eve:load-skill";diff --git a/packages/eve/src/protocol/message-version.ts b/packages/eve/src/protocol/message-version.tsindex e266a3940..89830fcb0 100644--- a/packages/eve/src/protocol/message-version.ts+++ b/packages/eve/src/protocol/message-version.ts@@ -7,6 +7,7 @@ import {type ReasoningAppendedStreamEvent,type UnstampedMessageStreamEvent,} from "#protocol/message.js";+import type { RuntimeActionRequest } from "#shared/action-types.js";interface MessageAppendedStreamEventV24 {data: {@@ -85,6 +86,13 @@ export function normalizeMessageStreamEvent<Version extends MessageStreamVersionexport function normalizeMessageStreamEvent(version: MessageStreamVersion,event: SupportedMessageStreamEvent,+): MessageStreamEvent {+ return nameSkillLoads(normalizeAppendEvent(version, event));+}++function normalizeAppendEvent(+ version: MessageStreamVersion,+ event: SupportedMessageStreamEvent,): MessageStreamEvent {switch (version) {case "21":@@ -190,6 +198,38 @@ function normalizeLegacyMessageStreamEvent(return event;}+type LoadSkillActionRequest = Extract<RuntimeActionRequest, { readonly kind: "load-skill" }>;++/**+ * Names the skill each `load-skill` request loads. eve 0.75 and earlier+ * recorded it only in the `load_skill` call's `{ skill }` input, and their+ * sessions still replay through the current stream version.+ */+function nameSkillLoads(event: MessageStreamEvent): MessageStreamEvent {+ if (event.type !== "actions.requested" || !event.data.actions.some(isUnnamedSkillLoad)) {+ return event;+ }+ return {+ ...event,+ data: {+ ...event.data,+ actions: event.data.actions.map((action) =>+ isUnnamedSkillLoad(action) ? { ...action, name: releasedSkillName(action) } : action,+ ),+ },+ };+}++function isUnnamedSkillLoad(action: RuntimeActionRequest): action is LoadSkillActionRequest {+ return action.kind === "load-skill" && typeof Reflect.get(action, "name") !== "string";+}++function releasedSkillName(action: LoadSkillActionRequest): string {+ const skill = action.input.skill;+ // `load_skill` required `skill`, so only a malformed record lacks it.+ return typeof skill === "string" ? skill : "load_skill";+}+function validateDeltaMessageStreamEvent(version: DeltaMessageStreamVersion,event: MessageStreamEventForVersion<DeltaMessageStreamVersion>,diff --git a/packages/eve/src/protocol/message.test.ts b/packages/eve/src/protocol/message.test.tsindex 2696670b9..b88c22906 100644--- a/packages/eve/src/protocol/message.test.ts+++ b/packages/eve/src/protocol/message.test.ts@@ -112,6 +112,43 @@ describe("message stream protocol", () => {});});+ it("names skill loads that eve 0.75 recorded only by their load_skill input", () => {+ // Parsed like a stored line: its `load-skill` action has no `name`.+ const released = JSON.parse(+ JSON.stringify({+ data: {+ actions: [+ { callId: "call_skill", input: { skill: "pdf-forms" }, kind: "load-skill" },+ { callId: "call_tool", input: {}, kind: "tool-call", toolName: "lookup" },+ ],+ sequence: 2,+ stepIndex: 0,+ turnId: "turn_1",+ },+ meta: { at: "2026-10-01T00:00:00.000Z", id: "evt_released_skill" },+ type: "actions.requested",+ }),+ ) as MessageStreamEventForVersion<"26">;+ const named = {+ ...released,+ data: {+ ...released.data,+ actions: [+ {+ callId: "call_skill",+ input: { skill: "pdf-forms" },+ kind: "load-skill",+ name: "pdf-forms",+ },+ { callId: "call_tool", input: {}, kind: "tool-call", toolName: "lookup" },+ ],+ },+ };++ expect(normalizeMessageStreamEvent("26", released)).toEqual(named);+ expect(normalizePersistedMessageStreamEvent(released)).toEqual(named);+ });+it("strips repeated v24 zero offsets without adding stream markers", () => {const normalize = (inputTextDelta: string) => {const event = normalizeMessageStreamEvent("24", {diff --git a/packages/eve/src/protocol/session-projection.ts b/packages/eve/src/protocol/session-projection.tsindex c69a8a385..e4a997830 100644--- a/packages/eve/src/protocol/session-projection.ts+++ b/packages/eve/src/protocol/session-projection.ts@@ -5,8 +5,6 @@ import type {InputResolutionOutcome,UnstampedMessageStreamEvent,} from "#protocol/message.js";-import { SKILL_ENTRY_NAME } from "#protocol/catalog-tools.js";-import { requestedSkill } from "#shared/action-request-name.js";import type { RuntimeActionRequest, RuntimeActionResult } from "#shared/action-types.js";import type { InputRequest, InputResponse } from "#shared/input.js";import type { JsonValue } from "#shared/json.js";@@ -237,7 +235,7 @@ function settleCall(call: SessionCall, status: SessionCallStatus, error?: Actionfunction actionName(action: RuntimeActionRequest): string {switch (action.kind) {case "load-skill":- return requestedSkill(action);+ return action.name;case "subagent-call":case "remote-agent-call":return action.name;@@ -250,7 +248,7 @@ function actionName(action: RuntimeActionRequest): string {function resultName(result: RuntimeActionResult): string {switch (result.kind) {case "load-skill-result":- return result.name ?? SKILL_ENTRY_NAME;+ return result.name;case "subagent-result":return result.subagentName;default:diff --git a/packages/eve/src/shared/action-request-name.ts b/packages/eve/src/shared/action-request-name.tsindex bb4134a51..eb0e33d1c 100644--- a/packages/eve/src/shared/action-request-name.ts+++ b/packages/eve/src/shared/action-request-name.ts@@ -1,4 +1,3 @@-import { SKILL_ENTRY_NAME } from "#protocol/catalog-tools.js";import type { RuntimeActionRequest } from "#shared/action-types.js";import { isObject } from "#shared/guards.js";@@ -6,7 +5,7 @@ import { isObject } from "#shared/guards.js";export function actionRequestName(action: RuntimeActionRequest): string {switch (action.kind) {case "load-skill":- return requestedSkill(action);+ return action.name;case "subagent-call":return action.subagentName;case "remote-agent-call":@@ -17,14 +16,7 @@ export function actionRequestName(action: RuntimeActionRequest): string {}}-/** The skill a `load-skill` request loads, or the loader itself when its input names none. */-export function requestedSkill(- action: Extract<RuntimeActionRequest, { readonly kind: "load-skill" }>,-): string {- return skillTarget(action.input) ?? SKILL_ENTRY_NAME;-}--/** The skill a skill loader's input names, if it names one. */+/** The skill an `eve__skill` input names, if it names one. */export function skillTarget(input: unknown): string | undefined {- return isObject(input) && typeof input.skill === "string" ? input.skill : undefined;+ return isObject(input) && typeof input.name === "string" ? input.name : undefined;}diff --git a/packages/eve/src/shared/action-types.ts b/packages/eve/src/shared/action-types.tsindex 28fad57c3..8b5234d29 100644--- a/packages/eve/src/shared/action-types.ts+++ b/packages/eve/src/shared/action-types.ts@@ -165,13 +165,15 @@ export const runtimeWorkflowTaskRequestSchema = ztype RuntimeLoadSkillActionRequest = z.infer<typeof runtimeLoadSkillActionRequestSchema>;/**- * Zod schema for one Eve-owned `load-skill` action request.+ * Zod schema for one Eve-owned `load-skill` action request: the model's+ * `eve__skill` call, named for the skill it loads.*/const runtimeLoadSkillActionRequestSchema = z.object({callId: z.string(),input: jsonObjectSchema,kind: z.literal("load-skill"),+ name: z.string(),}).strict();@@ -297,18 +299,16 @@ export type RuntimeSubagentResult = RuntimeSubagentChildResult | RuntimeSubagenttype RuntimeLoadSkillActionResult = z.infer<typeof runtimeLoadSkillActionResultSchema>;/**- * Zod schema for one runtime-owned load-skill action result.- *- * The result still reports whether a skill became active during the turn; the- * action name reflects how the model requests those instructions.+ * Zod schema for one runtime-owned load-skill action result, named for the+ * skill its `load-skill` request loads.*/const runtimeLoadSkillActionResultSchema = z.object({callId: z.string(),isError: z.boolean().optional(),kind: z.literal("load-skill-result"),+ name: z.string(),output: jsonValueSchema,- name: z.string().optional(),}).strict();