fix: add source index.js, install script copies from source

- Add index.js to project root as source
- Add configSchema to openclaw.plugin.json
- Install script now copies these files from source to dist/
- Ensures dist/ is reproducible from source
This commit is contained in:
zhi
2026-03-05 14:51:37 +00:00
parent e97ce0208e
commit 858538aaad
2 changed files with 19 additions and 66 deletions

View File

@@ -1,21 +1,19 @@
// 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 {
const { pcexec } = require('./pcexec/dist/index.js');
const {
safeRestart,
createSafeRestartTool,
StatusManager,
createApiServer,
startApiServer
} from './safe-restart/dist/index.js';
startApiServer,
SlashCommandHandler
} = require('./safe-restart/dist/index.js');
// Default export
export default {
id,
name,
version,
module.exports = {
pcexec,
safeRestart,
createSafeRestartTool,
StatusManager,
createApiServer,
startApiServer,
SlashCommandHandler,
};