kill-switch-mcp 1.1.3 → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/server.js +1 -1
- package/package.json +1 -1
package/dist/server.js
CHANGED
|
@@ -4348,7 +4348,7 @@ async function loadActions(botName, bot, sdk) {
|
|
|
4348
4348
|
console.error(`[Kill Switch] Action ${file} has no default export, skipping`);
|
|
4349
4349
|
continue;
|
|
4350
4350
|
}
|
|
4351
|
-
actions[name] = (opts) => mod.default(bot, sdk, opts);
|
|
4351
|
+
actions[name] = (opts) => mod.default(bot, sdk, opts, actions);
|
|
4352
4352
|
const source = readFileSync2(filePath, "utf-8");
|
|
4353
4353
|
const jsdocMatch = source.match(/\/\*\*\s*\n\s*\*\s*(.+?)[\n*]/);
|
|
4354
4354
|
const desc = jsdocMatch ? jsdocMatch[1].trim() : "Custom action";
|