From 35b4181f6bbf71e1fb65f53a8ea6072e9cba2611 Mon Sep 17 00:00:00 2001 From: Harsh Batheja Date: Tue, 21 Apr 2026 15:00:37 +0530 Subject: [PATCH] fix(plugin): register kimicode in core BUILTIN_PLUGINS and web services The CLI-side registration in packages/cli/src/lib/plugins.ts only covers `getAgentByName` callers. Code paths that go through the shared plugin registry (session-manager, doctor, plugin, verify CLI commands, and the web dashboard's services singleton) use `createPluginRegistry()` + `loadBuiltins()` / explicit `register()`, which bypass the CLI map. Without this wiring: - `pnpm ao doctor` / `ao plugin` / `ao verify` wouldn't see kimicode - Web dashboard would fail to render sessions with `agent: kimicode` because the webpack-bundled services.ts couldn't resolve the plugin Add kimicode to: - packages/core/src/plugin-registry.ts BUILTIN_PLUGINS - packages/web/package.json dependencies - packages/web/src/lib/services.ts static imports + register call Caught while comparing against #1395 (kimi-2-6-code plugin), which added the same registry entry. --- packages/core/src/plugin-registry.ts | 1 + packages/web/package.json | 1 + packages/web/src/lib/services.ts | 2 ++ pnpm-lock.yaml | 3 +++ 4 files changed, 7 insertions(+) diff --git a/packages/core/src/plugin-registry.ts b/packages/core/src/plugin-registry.ts index ce71bf15c..d67a0d32d 100644 --- a/packages/core/src/plugin-registry.ts +++ b/packages/core/src/plugin-registry.ts @@ -44,6 +44,7 @@ const BUILTIN_PLUGINS: Array<{ slot: PluginSlot; name: string; pkg: string }> = { slot: "agent", name: "codex", pkg: "@aoagents/ao-plugin-agent-codex" }, { slot: "agent", name: "aider", pkg: "@aoagents/ao-plugin-agent-aider" }, { slot: "agent", name: "cursor", pkg: "@aoagents/ao-plugin-agent-cursor" }, + { slot: "agent", name: "kimicode", pkg: "@aoagents/ao-plugin-agent-kimicode" }, { slot: "agent", name: "opencode", pkg: "@aoagents/ao-plugin-agent-opencode" }, // Workspaces { slot: "workspace", name: "worktree", pkg: "@aoagents/ao-plugin-workspace-worktree" }, diff --git a/packages/web/package.json b/packages/web/package.json index 2a6ae1ead..e35fefa99 100644 --- a/packages/web/package.json +++ b/packages/web/package.json @@ -32,6 +32,7 @@ "@aoagents/ao-plugin-agent-claude-code": "workspace:*", "@aoagents/ao-plugin-agent-codex": "workspace:*", "@aoagents/ao-plugin-agent-cursor": "workspace:*", + "@aoagents/ao-plugin-agent-kimicode": "workspace:*", "@aoagents/ao-plugin-agent-opencode": "workspace:*", "@aoagents/ao-plugin-runtime-tmux": "workspace:*", "@aoagents/ao-plugin-scm-github": "workspace:*", diff --git a/packages/web/src/lib/services.ts b/packages/web/src/lib/services.ts index 027d5c718..8e48884b4 100644 --- a/packages/web/src/lib/services.ts +++ b/packages/web/src/lib/services.ts @@ -35,6 +35,7 @@ import pluginRuntimeTmux from "@aoagents/ao-plugin-runtime-tmux"; import pluginAgentClaudeCode from "@aoagents/ao-plugin-agent-claude-code"; import pluginAgentCodex from "@aoagents/ao-plugin-agent-codex"; import pluginAgentCursor from "@aoagents/ao-plugin-agent-cursor"; +import pluginAgentKimicode from "@aoagents/ao-plugin-agent-kimicode"; import pluginAgentOpencode from "@aoagents/ao-plugin-agent-opencode"; import pluginWorkspaceWorktree from "@aoagents/ao-plugin-workspace-worktree"; import pluginScmGithub from "@aoagents/ao-plugin-scm-github"; @@ -79,6 +80,7 @@ async function initServices(): Promise { registry.register(pluginAgentClaudeCode); registry.register(pluginAgentCodex); registry.register(pluginAgentCursor); + registry.register(pluginAgentKimicode); registry.register(pluginAgentOpencode); registry.register(pluginWorkspaceWorktree); registry.register(pluginScmGithub); diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7f67d3006..1a6e90ea7 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -643,6 +643,9 @@ importers: '@aoagents/ao-plugin-agent-cursor': specifier: workspace:* version: link:../plugins/agent-cursor + '@aoagents/ao-plugin-agent-kimicode': + specifier: workspace:* + version: link:../plugins/agent-kimicode '@aoagents/ao-plugin-agent-opencode': specifier: workspace:* version: link:../plugins/agent-opencode