bootstrap.js 448 Bytes
/**
 * bootstrap.js — 代理到 @mas/plugin-bootstrap
 *
 * openclawRoot 统一指向 @mas/openclaw-dist 包
 */
const { bootstrapPlugins: _bootstrap, resolveOpenclawDist } = require('@mas/plugin-bootstrap');

const openclawRoot = resolveOpenclawDist(__dirname);

async function bootstrapPlugins(config) {
  return _bootstrap({
    ...config,
    openclawRoot: config.openclawRoot || openclawRoot,
  });
}

module.exports = { bootstrapPlugins };