feat(FN-3912): fix dependency graph focus and apply tokenized styling feedb

Bug fix addressing dependency graph focus behavior and CSS tokenization feedback, alongside test coverage for CLI bundle output and bundled plugin installation paths. The styling changes affect `DependencyGraph` and `GraphTaskNode` components, while tests validate the published CLI artifact.

Fusion-Task-Id: FN-3912
This commit is contained in:
Fusion
2026-05-10 13:00:15 -07:00
committed by gsxdsm
parent ae3fb0d991
commit 2d167f1025
5 changed files with 42 additions and 13 deletions

View File

@@ -211,6 +211,24 @@ describe("CLI bundle output", () => {
expect(manifest.name?.length).toBeGreaterThan(0);
});
it("dist/plugins/fusion-plugin-cli-printing-press/ is staged with source entry for bundled install", () => {
const stagedRoot = join(cliRoot, "dist", "plugins", "fusion-plugin-cli-printing-press");
const manifestPath = join(stagedRoot, "manifest.json");
const packageJsonPath = join(stagedRoot, "package.json");
expect(existsSync(manifestPath)).toBe(true);
const manifest = JSON.parse(readFileSync(manifestPath, "utf-8")) as { id?: string; name?: string };
expect(manifest.id).toBe("fusion-plugin-cli-printing-press");
expect(typeof manifest.name).toBe("string");
expect(manifest.name?.length).toBeGreaterThan(0);
expect(existsSync(join(stagedRoot, "src", "index.ts"))).toBe(true);
const stagedPkg = JSON.parse(readFileSync(packageJsonPath, "utf-8")) as {
exports?: { "."?: { import?: string } };
};
expect(stagedPkg.exports?.["."]?.import).toBe("./src/index.ts");
});
it("dist/plugins/fusion-plugin-openclaw-runtime/ is staged with required bridge assets", () => {
const stagedRoot = join(cliRoot, "dist", "plugins", "fusion-plugin-openclaw-runtime");
const manifestPath = join(stagedRoot, "manifest.json");

View File

@@ -36,6 +36,7 @@ const BUNDLED_PLUGIN_ID = "fusion-plugin-dependency-graph";
const HERMES_PLUGIN_ID = "fusion-plugin-hermes-runtime";
const CURSOR_PLUGIN_ID = "fusion-plugin-cursor-runtime";
const ROADMAP_PLUGIN_ID = "fusion-plugin-roadmap";
const CLI_PRINTING_PRESS_PLUGIN_ID = "fusion-plugin-cli-printing-press";
function makeManifest(overrides?: Partial<{ id: string; version: string; name: string }>) {
return {
@@ -220,6 +221,10 @@ describe("ensureBundledDependencyGraphPluginInstalled", () => {
it("includes roadmap plugin in bundled plugin ids", () => {
expect(BUNDLED_PLUGIN_IDS).toContain(ROADMAP_PLUGIN_ID);
});
it("includes CLI printing press plugin in bundled plugin ids", () => {
expect(BUNDLED_PLUGIN_IDS).toContain(CLI_PRINTING_PRESS_PLUGIN_ID);
});
it("fresh install: registers and loads the plugin when not in DB", async () => {
setupBundleExists();
const store = makePluginStore();