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",