build: PaddedCell-style install.mjs + SDK-aligned packaging

install.mjs (--install/--build-only/--uninstall/--openclaw-profile-path),
tsconfig outDir dist/fabric, package.json openclaw file dep + main.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
h z
2026-05-15 17:30:37 +01:00
parent 9221664428
commit 7fed6d07f6
537 changed files with 536836 additions and 3 deletions

14
dist/fabric/src/setup-entry.js vendored Normal file
View File

@@ -0,0 +1,14 @@
// Setup-safe entry: returns channel metadata for read-only command paths
// (status, channels list) before the plugin runtime starts. Must NOT start
// clients, listeners, or transports.
export default {
channel: {
id: 'fabric',
label: 'Fabric',
blurb: 'Connect OpenClaw agents to a Fabric guild.',
},
inspect(cfg) {
const ok = Boolean(cfg?.channels?.['fabric']?.centerApiBase);
return { enabled: ok, configured: ok };
},
};