mirror of
https://github.com/profullstack/logicsrc.git
synced 2026-10-01 20:33:50 +00:00
Add AgentBBS connector plugin (#131)
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>
This commit is contained in:
parent
647f204f1d
commit
1bb7ba6e60
13 changed files with 133 additions and 5 deletions
27
plugins/agentbbs/src/index.ts
Normal file
27
plugins/agentbbs/src/index.ts
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
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 };
|
||||
Loading…
Add table
Add a link
Reference in a new issue