mirror of
https://github.com/profullstack/logicsrc.git
synced 2026-10-01 20:33:50 +00:00
Declares the AgentBBS capability surface (chat, pods, arcade, ascii-live, finger) as @logicsrc/plugin-agentbbs and registers it in the CLI registry and CommandBoard API. Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
27 lines
1.2 KiB
TypeScript
27 lines
1.2 KiB
TypeScript
import type { PluginDefinition } from "@logicsrc/plugin-core";
|
|
import { agentBbsManifest } from "./manifest.js";
|
|
|
|
export const agentBbsPlugin: PluginDefinition = {
|
|
manifest: agentBbsManifest,
|
|
configDefaults: {
|
|
enabled: true,
|
|
ssh_host: "${AGENTBBS_SSH_HOST}",
|
|
ssh_port: "${AGENTBBS_SSH_PORT}",
|
|
ssh_key_path: "${AGENTBBS_SSH_KEY_PATH}",
|
|
default_route: "bbs"
|
|
},
|
|
routes: [
|
|
{ method: "GET", path: "/api/plugins/agentbbs/status", capability: "bbs.status" },
|
|
{ method: "GET", path: "/api/plugins/agentbbs/chat", capability: "chat.read" },
|
|
{ method: "POST", path: "/api/plugins/agentbbs/chat", capability: "chat.send" },
|
|
{ method: "GET", path: "/api/plugins/agentbbs/pods", capability: "pods.list" },
|
|
{ method: "POST", path: "/api/plugins/agentbbs/pods", capability: "pods.provision" },
|
|
{ method: "GET", path: "/api/plugins/agentbbs/arcade", capability: "arcade.list" },
|
|
{ method: "GET", path: "/api/plugins/agentbbs/finger/:user", capability: "finger.lookup" }
|
|
],
|
|
events: [{ event: "payment.confirmed", capability: "pods.membership" }],
|
|
permissions: ["bbs:read", "chat:send", "pods:provision"],
|
|
tuiPanels: [{ id: "agentbbs-status", title: "AgentBBS" }]
|
|
};
|
|
|
|
export { agentBbsManifest };
|