The Open Framework for Building Agents
fix(eve): relay registry nstall handoff commands verbatim to end user (#3259)
Ben Pankowc112e13841f8
diff --git a/.changeset/fix-registry-handoff-command.md b/.changeset/fix-registry-handoff-command.mdnew file mode 100644index 000000000..77763fb1e--- /dev/null+++ b/.changeset/fix-registry-handoff-command.md@@ -0,0 +1,5 @@+---+"eve": patch+---++Self-modifying agents now relay the exact `eve add` command required to finish an interactive registry installation instead of substituting a registry configuration command.diff --git a/packages/eve/src/self-modification/extension/instructions.ts b/packages/eve/src/self-modification/extension/instructions.tsindex ea2f1bc8a..f472b8794 100644--- a/packages/eve/src/self-modification/extension/instructions.ts+++ b/packages/eve/src/self-modification/extension/instructions.ts@@ -58,7 +58,7 @@ For investigation tasks, report the findings and supporting evidence requested bconst localGuidance = `## Local environment-The selfmod__registry_add tool will complete installation for items that need no setup. In the local dev TUI, a \`needs-terminal\` result from the tool call automatically opens the existing setup panel for the user to complete setup there. In headless development, relay the terminal command the tool names.+The selfmod__registry_add tool will complete installation for items that need no setup. In the local dev TUI, a \`needs-terminal\` result from the tool call automatically opens the existing setup panel for the user to complete setup there. In headless development, if a \`needs-terminal\` result includes \`nextCommand\`, present that exact value as the only shell command in your response. Never infer, construct, or rewrite a command: installing an item uses \`eve add <item>\`; \`eve registry add\` configures registry namespace mappings and does not install items.Local eve dev logs are available read-only at /logs.Local trace segments are mounted read-only at /traces when available. Inspect other traces only when the user asks about another session or broader behavior.diff --git a/packages/eve/src/self-modification/registry-add.test.ts b/packages/eve/src/self-modification/registry-add.test.tsindex db2ff5719..ff3136071 100644--- a/packages/eve/src/self-modification/registry-add.test.ts+++ b/packages/eve/src/self-modification/registry-add.test.ts@@ -47,6 +47,13 @@ const INDEX = {eve: { components: [{ item: "channel/linear-agent" }, { item: "connection/linear" }] },},},+ {+ name: "connection/linear",+ title: "Linear MCP",+ meta: {+ eve: { setup: { package: "eve", bin: "eve", args: ["integration", "setup", "linear"] } },+ },+ },{name: "@acme/widget",title: "Acme Widget",@@ -217,6 +224,19 @@ describe("addLocalRegistryItem", () => {expect(calls).toHaveLength(0);});+ it("returns the exact installation command for a headless Linear handoff", async () => {+ const result = await addLocalRegistryItem("connection/linear", {+ getCapability: () => capability(),+ });++ expect(result).toMatchObject({+ address: "connection/linear",+ nextCommand: "eve add connection/linear",+ status: "needs-terminal",+ });+ expect(result.message).toContain("`eve add connection/linear`");+ });+it("leaves the automatically queued setup to an interactive client", async () => {const result = await addLocalRegistryItem("channel/slack", {getCapability: () => capability({ interactiveClient: true }),