Files
moreminimore-redesign/packages/plugins/sandboxed-test/src/index.ts
Matt Kane 2e863566b3 Fix scope
2026-04-01 10:58:32 +01:00

30 lines
808 B
TypeScript

/**
* Sandboxed Test Plugin for EmDash CMS
*
* Tests the sandboxed plugin system. Designed to run in an isolated
* V8 isolate via Worker Loader. Admin UI uses Block Kit.
*/
import type { PluginDescriptor } from "emdash";
/**
* Plugin factory - returns a descriptor for the integration
*/
export function sandboxedTestPlugin(): PluginDescriptor {
return {
id: "sandboxed-test",
version: "0.0.1",
format: "standard",
entrypoint: "@emdash-cms/plugin-sandboxed-test/sandbox",
adminPages: [{ path: "/sandbox", label: "Sandbox Tests", icon: "shield" }],
adminWidgets: [{ id: "sandbox-status", title: "Sandbox Status", size: "half" }],
capabilities: ["read:content", "network:fetch"],
allowedHosts: ["httpbin.org"],
storage: {
events: { indexes: ["timestamp", "type"] },
},
};
}