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.
This commit is contained in:
parent
97f914f73c
commit
35b4181f6b
|
|
@ -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" },
|
||||
|
|
|
|||
|
|
@ -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:*",
|
||||
|
|
|
|||
|
|
@ -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<Services> {
|
|||
registry.register(pluginAgentClaudeCode);
|
||||
registry.register(pluginAgentCodex);
|
||||
registry.register(pluginAgentCursor);
|
||||
registry.register(pluginAgentKimicode);
|
||||
registry.register(pluginAgentOpencode);
|
||||
registry.register(pluginWorkspaceWorktree);
|
||||
registry.register(pluginScmGithub);
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue