feat: Fabric channel plugin for OpenClaw (Phase 1, B1)

OpenClaw channel plugin: defineChannelPluginEntry + createChatChannelPlugin.
Inbound via channel-turn kernel (wakeup -> admission: true=dispatch,
else drop+recordHistory). One Fabric socket per agent identity in the
plugin runtime (no sidecar). Center API-key agent auth. Tools:
fabric-register, create-{chat,work,report,discussion}-channel,
discussion-complete (post summary + close channel).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
h z
2026-05-15 17:13:26 +01:00
parent 21475eb72b
commit 9221664428
11 changed files with 735 additions and 0 deletions

22
package.json Normal file
View File

@@ -0,0 +1,22 @@
{
"name": "fabric-openclaw-plugin",
"version": "0.1.0",
"private": true,
"type": "module",
"description": "Fabric channel plugin for OpenClaw",
"openclaw": {
"extensions": ["./index.ts"],
"setupEntry": "./src/setup-entry.ts",
"channel": {
"id": "fabric",
"label": "Fabric",
"blurb": "Connect OpenClaw agents to a Fabric guild."
}
},
"dependencies": {
"socket.io-client": "^4.8.3"
},
"scripts": {
"build": "tsc -p tsconfig.json"
}
}