From da34a3eb5e4e5610d49a6f0fafe2e101243ddffb Mon Sep 17 00:00:00 2001 From: zhi Date: Thu, 5 Mar 2026 12:09:11 +0000 Subject: [PATCH] feat: add OpenClaw plugin manifest and entry point - Add openclaw.plugin.json with proper configSchema - Add index.js as plugin entry point - Fix plugin id to 'padded-cell' to match manifest --- index.js | 21 +++++++++++++++++++++ openclaw.plugin.json | 8 +++++++- 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 index.js diff --git a/index.js b/index.js new file mode 100644 index 0000000..9fa470b --- /dev/null +++ b/index.js @@ -0,0 +1,21 @@ +// PaddedCell Plugin Entry Point +export const id = 'padded-cell'; +export const name = 'PaddedCell'; +export const version = '0.1.0'; + +// Export tools (will be loaded by OpenClaw) +export { pcexec } from './pcexec/dist/index.js'; +export { + safeRestart, + createSafeRestartTool, + StatusManager, + createApiServer, + startApiServer +} from './safe-restart/dist/index.js'; + +// Default export +export default { + id, + name, + version, +}; diff --git a/openclaw.plugin.json b/openclaw.plugin.json index 162f222..908bc6f 100644 --- a/openclaw.plugin.json +++ b/openclaw.plugin.json @@ -3,7 +3,13 @@ "name": "PaddedCell", "version": "0.1.0", "description": "Secure password management, safe execution, and coordinated restart", - "entry": "./safe-restart/dist/index.js", + "entry": "./index.js", + "configSchema": { + "type": "object", + "properties": { + "enabled": { "type": "boolean", "default": true } + } + }, "tools": [ { "name": "pcexec",