kill-switch-mcp 1.1.3 → 1.1.5
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 +5 -5
- 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";
|
|
@@ -4674,10 +4674,10 @@ server.setRequestHandler(CallToolRequestSchema, async (request, extra) => {
|
|
|
4674
4674
|
return errorResponse("Not connected. Call login first.");
|
|
4675
4675
|
}
|
|
4676
4676
|
const timeoutSecs = Math.min(Math.max(args?.timeout || 300, 10), 600);
|
|
4677
|
-
const ARENA_MIN_X =
|
|
4678
|
-
const ARENA_MAX_X =
|
|
4679
|
-
const ARENA_MIN_Z =
|
|
4680
|
-
const ARENA_MAX_Z =
|
|
4677
|
+
const ARENA_MIN_X = 3070;
|
|
4678
|
+
const ARENA_MAX_X = 3141;
|
|
4679
|
+
const ARENA_MIN_Z = 3317;
|
|
4680
|
+
const ARENA_MAX_Z = 3402;
|
|
4681
4681
|
console.error(`[Kill Switch] Waiting for tournament to start (timeout: ${timeoutSecs}s)...`);
|
|
4682
4682
|
const startTime = Date.now();
|
|
4683
4683
|
const deadline = startTime + timeoutSecs * 1000;
|