feat(FN-3907): add fusion-plugin-cli-printing-press plugin scaffold

Restores and stabilizes a new `fusion-plugin-cli-printing-press` plugin scaffold, including the plugin manifest, TypeScript configuration, source entry point, and test suite, with vitest aliases added in a follow-up fix.

Fusion-Task-Id: FN-3907
This commit is contained in:
Fusion
2026-05-09 22:22:56 -07:00
committed by gsxdsm
parent 5ee049b834
commit 46fdc48767
9 changed files with 130 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
import { describe, it, expect } from "vitest";
import { validatePluginManifest } from "@fusion/core";
import plugin from "../index.js";
import manifestJson from "../../manifest.json" with { type: "json" };
describe("cli-printing-press plugin stub (FN-3762)", () => {
it("registers with the correct manifest id", () => {
expect(plugin.manifest.id).toBe("fusion-plugin-cli-printing-press");
});
it("passes manifest validation", () => {
const validation = validatePluginManifest(manifestJson);
expect(validation.valid).toBe(true);
});
it("has no routes or dashboardViews in the stub", () => {
expect(plugin.routes).toBeUndefined();
expect(plugin.dashboardViews).toBeUndefined();
});
});

View File

@@ -0,0 +1,14 @@
import { definePlugin } from "@fusion/plugin-sdk";
const plugin = definePlugin({
manifest: {
id: "fusion-plugin-cli-printing-press",
name: "CLI Printing Press",
version: "0.1.0",
description: "Generate and manage CLIs for external services using cli-printing-press",
},
state: "installed",
hooks: {},
});
export default plugin;