feat(FN-3332): add droid runtime plugin with event bridge and process manag
The merge delivers a new `fusion-plugin-droid-runtime` plugin providing a full MCP server and runtime adapter for droid-based agents, with event bridging, process management, tool mapping, and a prompt builder. It also adds agent delegation and org hierarchy tools to the pi extension, while fixing a Fusion-Task-Id: FN-3332
This commit is contained in:
@@ -1,18 +1,18 @@
|
||||
import type { ExtensionAPI } from "@mariozechner/pi-coding-agent";
|
||||
import { streamViaCli } from "./src/provider.js";
|
||||
import { streamViaCli } from "../../plugins/fusion-plugin-droid-runtime/src/provider.js";
|
||||
import {
|
||||
discoverDroidModels,
|
||||
validateCliPresenceAsync,
|
||||
validateCliAuthAsync,
|
||||
killAllProcesses,
|
||||
discoverDroidModels,
|
||||
} from "./src/process-manager.js";
|
||||
} from "../../plugins/fusion-plugin-droid-runtime/src/process-manager.js";
|
||||
import { createHash } from "node:crypto";
|
||||
import {
|
||||
getCustomToolDefs,
|
||||
toolsFromContext,
|
||||
writeMcpConfig,
|
||||
type McpToolDef,
|
||||
} from "./src/mcp-config.js";
|
||||
} from "../../plugins/fusion-plugin-droid-runtime/src/mcp-config.js";
|
||||
|
||||
process.on("exit", killAllProcesses);
|
||||
|
||||
@@ -117,7 +117,11 @@ export default function (pi: ExtensionAPI) {
|
||||
pi,
|
||||
(context as { tools?: ReadonlyArray<{ name: string; description: string; parameters: Record<string, unknown> }> }).tools,
|
||||
);
|
||||
return streamViaCli(model, context, { ...options, mcpConfigPath: configPath });
|
||||
return streamViaCli(
|
||||
model,
|
||||
context as never,
|
||||
{ ...(options ?? {}), mcpConfigPath: configPath } as never,
|
||||
);
|
||||
},
|
||||
});
|
||||
} catch (err) {
|
||||
|
||||
Reference in New Issue
Block a user