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
22 lines
610 B
TypeScript
22 lines
610 B
TypeScript
import { describe, expect, it, vi } from "vitest";
|
|
|
|
vi.mock("@fusion-plugin-examples/droid-runtime/probe", () => ({
|
|
probeDroidBinary: vi.fn(async () => ({
|
|
available: true,
|
|
authenticated: true,
|
|
version: "1.0.0",
|
|
binaryPath: "/usr/bin/droid",
|
|
probeDurationMs: 5,
|
|
})),
|
|
}));
|
|
|
|
import { probeDroidCli } from "../droid-cli-probe.js";
|
|
|
|
describe("probeDroidCli", () => {
|
|
it("delegates to plugin probe and returns shaped status", async () => {
|
|
const result = await probeDroidCli();
|
|
expect(result.available).toBe(true);
|
|
expect(result.probeDurationMs).toBeTypeOf("number");
|
|
});
|
|
});
|