dev/zhi #1

Merged
hzhang merged 28 commits from dev/zhi into main 2026-03-05 19:08:00 +00:00
2 changed files with 39 additions and 3 deletions
Showing only changes of commit e97ce0208e - Show all commits

View File

@@ -299,13 +299,43 @@ async function installComponents(env) {
copyDir(join(__dirname, 'safe-restart'), join(DIST_DIR, 'safe-restart'));
logSuccess('Copied safe-restart to dist/padded-cell/');
// Create root index.js entry point
const indexJs = `const { pcexec } = require('./pcexec/dist/index.js');
const {
safeRestart,
createSafeRestartTool,
StatusManager,
createApiServer,
startApiServer,
SlashCommandHandler
} = require('./safe-restart/dist/index.js');
module.exports = {
pcexec,
safeRestart,
createSafeRestartTool,
StatusManager,
createApiServer,
startApiServer,
SlashCommandHandler,
};
`;
writeFileSync(join(DIST_DIR, 'index.js'), indexJs);
logSuccess('Created index.js entry point');
// Create openclaw.plugin.json
const manifest = {
id: PLUGIN_NAME,
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',
@@ -320,7 +350,7 @@ async function installComponents(env) {
]
};
writeFileSync(join(DIST_DIR, 'openclaw.plugin.json'), JSON.stringify(manifest, null, 2));
logSuccess('Created openclaw.plugin.json in dist/padded-cell/');
logSuccess('Created openclaw.plugin.json');
// Create bin directory and install pass_mgr binary
mkdirSync(binDir, { recursive: true });

View File

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