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:
Fusion
2026-05-04 03:04:33 -07:00
committed by gsxdsm
parent 79c4970739
commit 5be5da1938
36 changed files with 2947 additions and 214 deletions

View File

@@ -0,0 +1,25 @@
import { describe, expect, it } from "vitest";
import { validatePluginManifest } from "@fusion/plugin-sdk";
import plugin, { droidRuntimeMetadata, DROID_RUNTIME_ID } from "../index.js";
describe("droid runtime plugin index", () => {
it("exports expected manifest/runtime metadata", () => {
expect(plugin.manifest.id).toBe("fusion-plugin-droid-runtime");
expect(droidRuntimeMetadata.runtimeId).toBe("droid");
expect(DROID_RUNTIME_ID).toBe("droid");
});
it("registers required ui slots", () => {
const slots = plugin.uiSlots?.map((s) => s.slotId) ?? [];
expect(slots).toEqual(expect.arrayContaining([
"settings-provider-card",
"onboarding-provider-card",
"onboarding-setup-help",
"post-onboarding-recommendation",
]));
});
it("has a valid manifest", () => {
expect(() => validatePluginManifest(plugin.manifest)).not.toThrow();
});
});