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:
28
index.js
28
index.js
@@ -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,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user