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
This commit is contained in:
zhi
2026-03-05 12:09:11 +00:00
parent 08e74e3806
commit da34a3eb5e
2 changed files with 28 additions and 1 deletions

21
index.js Normal file
View File

@@ -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,
};

View File

@@ -3,7 +3,13 @@
"name": "PaddedCell", "name": "PaddedCell",
"version": "0.1.0", "version": "0.1.0",
"description": "Secure password management, safe execution, and coordinated restart", "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": [ "tools": [
{ {
"name": "pcexec", "name": "pcexec",