/** * DevLoop tool layer · 总入口 * * 对外暴露: * - tools (Map): 全部 devloop 工具(35 个) * - listToolNames / getDevLoopTools / dispatch: registry 接口 * - bashHooks: 注入到 LemonBoss Bash 工具的 preExecute 数组 * * 用法: * const { tools, bashHooks } = require('server/src/tools/devloop'); * bashTool.preExecute.push(...bashHooks.preExecute); */ const registry = require('./tool-registry'); const { bashHooks, jsonGuard } = require('./bash-json-guard'); module.exports = { // tool registry tools: registry.loadAllTools(), listToolNames: registry.listToolNames, getDevLoopTools: registry.getDevLoopTools, dispatch: registry.dispatch, // bash guard bashHooks, jsonGuard, };