Skip to content

armgit / eve

Public Imported from GitHub
0

The Open Framework for Building Agents

feat(selfmod): rename self-modification registry item (#3339)

prha09425a0f3fc4
diff --git a/.changeset/stable-self-modification-registry.md b/.changeset/stable-self-modification-registry.md
new file mode 100644
index 000000000..742374dc4
--- /dev/null
+++ b/.changeset/stable-self-modification-registry.md
@@ -0,0 +1,5 @@
+---
+"eve": patch
+---
+
+Move the self-modification registry item to `eve/self-modification`, remove its experimental label and separate production address, and run its production setup flow when added directly.
diff --git a/apps/docs/registry.json b/apps/docs/registry.json
index 3ccc24765..b96e86320 100644
--- a/apps/docs/registry.json
+++ b/apps/docs/registry.json
@@ -29,13 +29,14 @@
}
},
{
- "name": "experimental/self-modification",
+ "name": "eve/self-modification",
"type": "registry:item",
- "title": "Self-modification (Experimental)",
- "description": "Add an experimental source editing subagent with local edits and official registry installation.",
+ "title": "Self-modification",
+ "description": "Add a source editing subagent with local edits and official registry installation.",
"dependencies": ["just-bash", "@vercel/connect"],
"meta": {
"eve": {
+ "requires": ">=0.54.4",
"install": {
"pnpm": {
"buildScripts": [
@@ -52,39 +53,39 @@
{
"package": "eve",
"bin": "eve",
- "args": ["integration", "setup", "self-modification"]
+ "args": ["integration", "setup", "self-modification-production"]
}
]
}
},
"files": [
{
- "path": "registry/experimental/self-modification/config.ts",
+ "path": "registry/eve/self-modification/config.ts",
"type": "registry:file",
"target": "agent/subagents/self-modification/config.ts"
},
{
- "path": "registry/experimental/self-modification/agent.ts",
+ "path": "registry/eve/self-modification/agent.ts",
"type": "registry:file",
"target": "agent/subagents/self-modification/agent.ts"
},
{
- "path": "registry/experimental/self-modification/sandbox.ts",
+ "path": "registry/eve/self-modification/sandbox.ts",
"type": "registry:file",
"target": "agent/subagents/self-modification/sandbox.ts"
},
{
- "path": "registry/experimental/self-modification/extension.ts",
+ "path": "registry/eve/self-modification/extension.ts",
"type": "registry:file",
"target": "agent/subagents/self-modification/extensions/selfmod.ts"
}
]
},
{
- "name": "experimental/self-modification/prod",
+ "name": "experimental/self-modification",
"type": "registry:item",
- "title": "Self-modification production (Experimental)",
- "description": "Add experimental self-modification with local editing and deployed draft pull requests.",
+ "title": "Self-modification (Experimental)",
+ "description": "Add an experimental source editing subagent with local edits and official registry installation.",
"dependencies": ["just-bash", "@vercel/connect"],
"meta": {
"eve": {
@@ -105,29 +106,29 @@
{
"package": "eve",
"bin": "eve",
- "args": ["integration", "setup", "self-modification-production"]
+ "args": ["integration", "setup", "self-modification"]
}
]
}
},
"files": [
{
- "path": "registry/experimental/self-modification/config.ts",
+ "path": "registry/eve/self-modification/config.ts",
"type": "registry:file",
"target": "agent/subagents/self-modification/config.ts"
},
{
- "path": "registry/experimental/self-modification/agent.ts",
+ "path": "registry/eve/self-modification/agent.ts",
"type": "registry:file",
"target": "agent/subagents/self-modification/agent.ts"
},
{
- "path": "registry/experimental/self-modification/sandbox.ts",
+ "path": "registry/eve/self-modification/sandbox.ts",
"type": "registry:file",
"target": "agent/subagents/self-modification/sandbox.ts"
},
{
- "path": "registry/experimental/self-modification/extension.ts",
+ "path": "registry/eve/self-modification/extension.ts",
"type": "registry:file",
"target": "agent/subagents/self-modification/extensions/selfmod.ts"
}
diff --git a/apps/docs/registry/experimental/self-modification/agent.ts b/apps/docs/registry/eve/self-modification/agent.ts
similarity index 100%
rename from apps/docs/registry/experimental/self-modification/agent.ts
rename to apps/docs/registry/eve/self-modification/agent.ts
diff --git a/apps/docs/registry/experimental/self-modification/config.ts b/apps/docs/registry/eve/self-modification/config.ts
similarity index 100%
rename from apps/docs/registry/experimental/self-modification/config.ts
rename to apps/docs/registry/eve/self-modification/config.ts
diff --git a/apps/docs/registry/experimental/self-modification/extension.ts b/apps/docs/registry/eve/self-modification/extension.ts
similarity index 100%
rename from apps/docs/registry/experimental/self-modification/extension.ts
rename to apps/docs/registry/eve/self-modification/extension.ts
diff --git a/apps/docs/registry/experimental/self-modification/sandbox.ts b/apps/docs/registry/eve/self-modification/sandbox.ts
similarity index 100%
rename from apps/docs/registry/experimental/self-modification/sandbox.ts
rename to apps/docs/registry/eve/self-modification/sandbox.ts
diff --git a/packages/eve/src/cli/commands/init.ts b/packages/eve/src/cli/commands/init.ts
index d0733f8ee..f9ef3bf18 100644
--- a/packages/eve/src/cli/commands/init.ts
+++ b/packages/eve/src/cli/commands/init.ts
@@ -103,7 +103,7 @@ const defaultDependencies: InitCommandDependencies = {
selectInitSelfModification,
installSelfModification: async (appRoot) => {
const { installRegistryItem } = await import("./registry.js");
- await installRegistryItem(appRoot, "experimental/self-modification", { silent: true });
+ await installRegistryItem(appRoot, "eve/self-modification", { silent: true, skipSetup: true });
},
spawnCodingAgentRepl,
spawnPackageManager,
diff --git a/packages/eve/src/cli/commands/registry-metadata.test.ts b/packages/eve/src/cli/commands/registry-metadata.test.ts
index e36237902..ef803a7cf 100644
--- a/packages/eve/src/cli/commands/registry-metadata.test.ts
+++ b/packages/eve/src/cli/commands/registry-metadata.test.ts
@@ -15,14 +15,14 @@ describe("registry metadata", () => {
eve: { docs: "/docs/channels/photon", implementation: "native" },
},
},
- { name: "experimental/self-modification/prod", meta: { eve: { hidden: true } } },
+ { name: "experimental/self-modification", meta: { eve: { hidden: true } } },
{ name: "extension/browser" },
],
});
expect([...metadata]).toEqual([
["channel/photon-imessage", { docs: "/docs/channels/photon", implementation: "native" }],
- ["experimental/self-modification/prod", { hidden: true }],
+ ["experimental/self-modification", { hidden: true }],
]);
});
diff --git a/packages/eve/src/cli/commands/registry.test.ts b/packages/eve/src/cli/commands/registry.test.ts
index f6235de3f..c87b3f99b 100644
--- a/packages/eve/src/cli/commands/registry.test.ts
+++ b/packages/eve/src/cli/commands/registry.test.ts
@@ -1230,8 +1230,8 @@ describe("registry commands", () => {
new Response(
JSON.stringify({
items: [
- { name: "experimental/self-modification" },
- { name: "experimental/self-modification/prod", meta: { eve: { hidden: true } } },
+ { name: "eve/self-modification" },
+ { name: "experimental/self-modification", meta: { eve: { hidden: true } } },
],
}),
),
@@ -1241,20 +1241,20 @@ describe("registry commands", () => {
items: [
{
registry: "https://eve.dev/r/registry.json",
- name: "experimental/self-modification",
- addCommandArgument: "https://eve.dev/r/experimental/self-modification.json",
+ name: "eve/self-modification",
+ addCommandArgument: "https://eve.dev/r/eve/self-modification.json",
},
{
registry: "https://eve.dev/r/registry.json",
- name: "experimental/self-modification/prod",
- addCommandArgument: "https://eve.dev/r/experimental/self-modification/prod.json",
+ name: "experimental/self-modification",
+ addCommandArgument: "https://eve.dev/r/experimental/self-modification.json",
},
],
pagination: { total: 2, offset: 0, limit: 2, hasMore: false },
});
await expect(browseRegistryCatalog("/project")).resolves.toMatchObject({
- items: [{ name: "experimental/self-modification" }],
+ items: [{ name: "eve/self-modification" }],
total: 1,
});
});
diff --git a/packages/eve/src/cli/dev/tui/setup-commands.test.ts b/packages/eve/src/cli/dev/tui/setup-commands.test.ts
index 617b40e9b..725252ccb 100644
--- a/packages/eve/src/cli/dev/tui/setup-commands.test.ts
+++ b/packages/eve/src/cli/dev/tui/setup-commands.test.ts
@@ -122,7 +122,7 @@ describe("runTuiSetupCommand", () => {
const flows = fakeFlows({
runRegistryFlow: vi.fn<TuiSetupFlows["runRegistryFlow"]>(async ({ prompter }) => {
await prompter.select({
- message: "Add experimental/self-modification?",
+ message: "Add eve/self-modification?",
options: [{ value: "install", label: "Install and set up" }],
});
return registryResult();
diff --git a/packages/eve/src/self-modification/extension/tools/search_registry.ts b/packages/eve/src/self-modification/extension/tools/search_registry.ts
index b302b019e..49678e894 100644
--- a/packages/eve/src/self-modification/extension/tools/search_registry.ts
+++ b/packages/eve/src/self-modification/extension/tools/search_registry.ts
@@ -134,7 +134,7 @@ function isCategory(value: string): value is Category {
* Derives the category from the item address.
*
* eve registry addresses carry their category as the leading path segment.
- * Bundles (`linear`) and package-scoped items (`experimental/self-modification`)
+ * Bundles (`linear`) and package-scoped items (`eve/self-modification`)
* have none, so the field stays absent rather than being guessed.
*/
function categoryOf(address: string): Category | undefined {
diff --git a/packages/eve/src/self-modification/search-registry.test.ts b/packages/eve/src/self-modification/search-registry.test.ts
index 78ce784bd..963f15d19 100644
--- a/packages/eve/src/self-modification/search-registry.test.ts
+++ b/packages/eve/src/self-modification/search-registry.test.ts
@@ -115,11 +115,11 @@ describe("parseRegistryIndex", () => {
expect(
parseRegistryIndex({
items: [
- { name: "experimental/self-modification" },
- { name: "experimental/self-modification/prod", meta: { eve: { hidden: true } } },
+ { name: "eve/self-modification" },
+ { name: "experimental/self-modification", meta: { eve: { hidden: true } } },
],
}).map((entry) => entry.address),
- ).toEqual(["experimental/self-modification"]);
+ ).toEqual(["eve/self-modification"]);
});
it("reads whether an item declares a setup flow, used by selfmod__registry_add's split rule", () => {
diff --git a/packages/eve/src/setup/flows/registry.ts b/packages/eve/src/setup/flows/registry.ts
index f73b0ae1f..16645c3eb 100644
--- a/packages/eve/src/setup/flows/registry.ts
+++ b/packages/eve/src/setup/flows/registry.ts
@@ -67,7 +67,7 @@ const SECTIONS = {
"connection/notion",
"connection/vercel",
"extension/agent-browser",
- "experimental/self-modification",
+ "eve/self-modification",
],
includes: (item: Item) => !item.name.startsWith("channel/"),
},