dev/zhi #1

Merged
hzhang merged 28 commits from dev/zhi into main 2026-03-05 19:08:00 +00:00
Showing only changes of commit c2fb28301c - Show all commits

View File

@@ -11,8 +11,8 @@ const {
SlashCommandHandler
} = require('./safe-restart/dist/index.js');
// Plugin initialization function
function init(api, config) {
// Plugin registration function (OpenClaw expects 'register' or 'activate')
function register(api, config) {
const logger = api.logger || { info: console.log, error: console.error };
logger.info('PaddedCell plugin initializing...');
@@ -63,7 +63,7 @@ function init(api, config) {
}
// Export for OpenClaw
module.exports = { init };
module.exports = { register };
// Also export individual modules for direct use
module.exports.pcexec = pcexec;