switchroom 0.13.53 → 0.13.54
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/agent-scheduler/index.js +82 -81
- package/dist/auth-broker/index.js +82 -81
- package/dist/cli/drive-write-pretool.mjs +10 -10
- package/dist/cli/ms-365-write-pretool.mjs +259 -0
- package/dist/cli/skill-validate-pretool.mjs +72 -72
- package/dist/cli/switchroom.js +1162 -662
- package/dist/host-control/main.js +150 -149
- package/dist/vault/approvals/kernel-server.js +84 -83
- package/dist/vault/broker/server.js +85 -84
- package/package.json +1 -1
- package/profiles/_base/start.sh.hbs +17 -0
- package/profiles/_shared/telegram-style.md.hbs +2 -0
- package/telegram-plugin/dist/bridge/bridge.js +112 -112
- package/telegram-plugin/dist/gateway/gateway.js +537 -229
- package/telegram-plugin/dist/server.js +160 -160
- package/telegram-plugin/gateway/gateway.ts +227 -17
- package/telegram-plugin/gateway/ipc-protocol.ts +37 -0
- package/telegram-plugin/gateway/ipc-server.ts +59 -0
- package/telegram-plugin/gateway/ms365-write-approval.test.ts +314 -0
- package/telegram-plugin/gateway/ms365-write-approval.ts +335 -0
- package/telegram-plugin/tests/ipc-validator.test.ts +61 -0
- package/telegram-plugin/tests/slash-command-smart-split.test.ts +115 -0
- package/vendor/hindsight-memory/scripts/lib/gateway_ipc.py +35 -0
- package/vendor/hindsight-memory/scripts/recall.py +164 -4
- package/vendor/hindsight-memory/scripts/retain.py +52 -0
- package/vendor/hindsight-memory/scripts/tests/test_gateway_ipc.py +42 -0
- package/vendor/hindsight-memory/scripts/tests/test_recall_topic_filter.py +139 -0
|
@@ -66,7 +66,7 @@ var __export = (target, all) => {
|
|
|
66
66
|
var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
67
67
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
68
68
|
|
|
69
|
-
//
|
|
69
|
+
// ../../switchroom-sec-1417/node_modules/.bun/grammy@1.42.0/node_modules/grammy/out/filter.js
|
|
70
70
|
var require_filter = __commonJS((exports) => {
|
|
71
71
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
72
72
|
exports.matchFilter = matchFilter;
|
|
@@ -430,7 +430,7 @@ var require_filter = __commonJS((exports) => {
|
|
|
430
430
|
};
|
|
431
431
|
});
|
|
432
432
|
|
|
433
|
-
//
|
|
433
|
+
// ../../switchroom-sec-1417/node_modules/.bun/grammy@1.42.0/node_modules/grammy/out/context.js
|
|
434
434
|
var require_context = __commonJS((exports) => {
|
|
435
435
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
436
436
|
exports.Context = undefined;
|
|
@@ -1457,7 +1457,7 @@ var require_context = __commonJS((exports) => {
|
|
|
1457
1457
|
}
|
|
1458
1458
|
});
|
|
1459
1459
|
|
|
1460
|
-
//
|
|
1460
|
+
// ../../switchroom-sec-1417/node_modules/.bun/grammy@1.42.0/node_modules/grammy/out/composer.js
|
|
1461
1461
|
var require_composer = __commonJS((exports) => {
|
|
1462
1462
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1463
1463
|
exports.Composer = exports.BotError = undefined;
|
|
@@ -1619,7 +1619,7 @@ var require_composer = __commonJS((exports) => {
|
|
|
1619
1619
|
exports.Composer = Composer;
|
|
1620
1620
|
});
|
|
1621
1621
|
|
|
1622
|
-
//
|
|
1622
|
+
// ../../switchroom-sec-1417/node_modules/.bun/ms@2.1.3/node_modules/ms/index.js
|
|
1623
1623
|
var require_ms = __commonJS((exports, module) => {
|
|
1624
1624
|
var s = 1000;
|
|
1625
1625
|
var m = s * 60;
|
|
@@ -1729,7 +1729,7 @@ var require_ms = __commonJS((exports, module) => {
|
|
|
1729
1729
|
}
|
|
1730
1730
|
});
|
|
1731
1731
|
|
|
1732
|
-
//
|
|
1732
|
+
// ../../switchroom-sec-1417/node_modules/.bun/debug@4.4.3/node_modules/debug/src/common.js
|
|
1733
1733
|
var require_common = __commonJS((exports, module) => {
|
|
1734
1734
|
function setup(env) {
|
|
1735
1735
|
createDebug.debug = createDebug;
|
|
@@ -1904,7 +1904,7 @@ var require_common = __commonJS((exports, module) => {
|
|
|
1904
1904
|
module.exports = setup;
|
|
1905
1905
|
});
|
|
1906
1906
|
|
|
1907
|
-
//
|
|
1907
|
+
// ../../switchroom-sec-1417/node_modules/.bun/debug@4.4.3/node_modules/debug/src/browser.js
|
|
1908
1908
|
var require_browser = __commonJS((exports, module) => {
|
|
1909
1909
|
exports.formatArgs = formatArgs;
|
|
1910
1910
|
exports.save = save;
|
|
@@ -2064,7 +2064,7 @@ var require_browser = __commonJS((exports, module) => {
|
|
|
2064
2064
|
};
|
|
2065
2065
|
});
|
|
2066
2066
|
|
|
2067
|
-
//
|
|
2067
|
+
// ../../switchroom-sec-1417/node_modules/.bun/has-flag@4.0.0/node_modules/has-flag/index.js
|
|
2068
2068
|
var require_has_flag = __commonJS((exports, module) => {
|
|
2069
2069
|
module.exports = (flag, argv = process.argv) => {
|
|
2070
2070
|
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
@@ -2074,7 +2074,7 @@ var require_has_flag = __commonJS((exports, module) => {
|
|
|
2074
2074
|
};
|
|
2075
2075
|
});
|
|
2076
2076
|
|
|
2077
|
-
//
|
|
2077
|
+
// ../../switchroom-sec-1417/node_modules/.bun/supports-color@7.2.0/node_modules/supports-color/index.js
|
|
2078
2078
|
var require_supports_color = __commonJS((exports, module) => {
|
|
2079
2079
|
var os = __require("os");
|
|
2080
2080
|
var tty = __require("tty");
|
|
@@ -2173,7 +2173,7 @@ var require_supports_color = __commonJS((exports, module) => {
|
|
|
2173
2173
|
};
|
|
2174
2174
|
});
|
|
2175
2175
|
|
|
2176
|
-
//
|
|
2176
|
+
// ../../switchroom-sec-1417/node_modules/.bun/debug@4.4.3/node_modules/debug/src/node.js
|
|
2177
2177
|
var require_node = __commonJS((exports, module) => {
|
|
2178
2178
|
var tty = __require("tty");
|
|
2179
2179
|
var util = __require("util");
|
|
@@ -2344,7 +2344,7 @@ var require_node = __commonJS((exports, module) => {
|
|
|
2344
2344
|
};
|
|
2345
2345
|
});
|
|
2346
2346
|
|
|
2347
|
-
//
|
|
2347
|
+
// ../../switchroom-sec-1417/node_modules/.bun/debug@4.4.3/node_modules/debug/src/index.js
|
|
2348
2348
|
var require_src = __commonJS((exports, module) => {
|
|
2349
2349
|
if (typeof process === "undefined" || process.type === "renderer" || false || process.__nwjs) {
|
|
2350
2350
|
module.exports = require_browser();
|
|
@@ -2353,7 +2353,7 @@ var require_src = __commonJS((exports, module) => {
|
|
|
2353
2353
|
}
|
|
2354
2354
|
});
|
|
2355
2355
|
|
|
2356
|
-
//
|
|
2356
|
+
// ../../switchroom-sec-1417/node_modules/.bun/grammy@1.42.0/node_modules/grammy/out/platform.node.js
|
|
2357
2357
|
var require_platform_node = __commonJS((exports) => {
|
|
2358
2358
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2359
2359
|
exports.defaultAdapter = exports.itrToStream = exports.debug = undefined;
|
|
@@ -2393,7 +2393,7 @@ var require_platform_node = __commonJS((exports) => {
|
|
|
2393
2393
|
exports.defaultAdapter = "express";
|
|
2394
2394
|
});
|
|
2395
2395
|
|
|
2396
|
-
//
|
|
2396
|
+
// ../../switchroom-sec-1417/node_modules/.bun/grammy@1.42.0/node_modules/grammy/out/core/error.js
|
|
2397
2397
|
var require_error = __commonJS((exports) => {
|
|
2398
2398
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2399
2399
|
exports.HttpError = exports.GrammyError = undefined;
|
|
@@ -2449,10 +2449,10 @@ var require_error = __commonJS((exports) => {
|
|
|
2449
2449
|
}
|
|
2450
2450
|
});
|
|
2451
2451
|
|
|
2452
|
-
//
|
|
2452
|
+
// ../../switchroom-sec-1417/node_modules/.bun/@grammyjs+types@3.26.0/node_modules/@grammyjs/types/mod.js
|
|
2453
2453
|
var exports_mod = {};
|
|
2454
2454
|
|
|
2455
|
-
//
|
|
2455
|
+
// ../../switchroom-sec-1417/node_modules/.bun/grammy@1.42.0/node_modules/grammy/out/types.node.js
|
|
2456
2456
|
var require_types_node = __commonJS((exports) => {
|
|
2457
2457
|
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
2458
2458
|
if (k2 === undefined)
|
|
@@ -2543,7 +2543,7 @@ var require_types_node = __commonJS((exports) => {
|
|
|
2543
2543
|
}
|
|
2544
2544
|
});
|
|
2545
2545
|
|
|
2546
|
-
//
|
|
2546
|
+
// ../../switchroom-sec-1417/node_modules/.bun/grammy@1.42.0/node_modules/grammy/out/types.js
|
|
2547
2547
|
var require_types = __commonJS((exports) => {
|
|
2548
2548
|
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
2549
2549
|
if (k2 === undefined)
|
|
@@ -2569,7 +2569,7 @@ var require_types = __commonJS((exports) => {
|
|
|
2569
2569
|
__exportStar(require_types_node(), exports);
|
|
2570
2570
|
});
|
|
2571
2571
|
|
|
2572
|
-
//
|
|
2572
|
+
// ../../switchroom-sec-1417/node_modules/.bun/grammy@1.42.0/node_modules/grammy/out/core/payload.js
|
|
2573
2573
|
var require_payload = __commonJS((exports) => {
|
|
2574
2574
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2575
2575
|
exports.requiresFormDataUpload = requiresFormDataUpload;
|
|
@@ -2709,7 +2709,7 @@ content-type:application/octet-stream\r
|
|
|
2709
2709
|
}
|
|
2710
2710
|
});
|
|
2711
2711
|
|
|
2712
|
-
//
|
|
2712
|
+
// ../../switchroom-sec-1417/node_modules/.bun/event-target-shim@5.0.1/node_modules/event-target-shim/dist/event-target-shim.js
|
|
2713
2713
|
var require_event_target_shim = __commonJS((exports, module) => {
|
|
2714
2714
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2715
2715
|
var privateData = new WeakMap;
|
|
@@ -3149,7 +3149,7 @@ var require_event_target_shim = __commonJS((exports, module) => {
|
|
|
3149
3149
|
module.exports.defineEventAttribute = defineEventAttribute;
|
|
3150
3150
|
});
|
|
3151
3151
|
|
|
3152
|
-
//
|
|
3152
|
+
// ../../switchroom-sec-1417/node_modules/.bun/abort-controller@3.0.0/node_modules/abort-controller/dist/abort-controller.js
|
|
3153
3153
|
var require_abort_controller = __commonJS((exports, module) => {
|
|
3154
3154
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3155
3155
|
var eventTargetShim = require_event_target_shim();
|
|
@@ -3229,7 +3229,7 @@ var require_abort_controller = __commonJS((exports, module) => {
|
|
|
3229
3229
|
module.exports.AbortSignal = AbortSignal2;
|
|
3230
3230
|
});
|
|
3231
3231
|
|
|
3232
|
-
//
|
|
3232
|
+
// ../../switchroom-sec-1417/node_modules/.bun/grammy@1.42.0/node_modules/grammy/out/shim.node.js
|
|
3233
3233
|
var require_shim_node = __commonJS((exports) => {
|
|
3234
3234
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3235
3235
|
exports.fetch = exports.AbortController = undefined;
|
|
@@ -3243,7 +3243,7 @@ var require_shim_node = __commonJS((exports) => {
|
|
|
3243
3243
|
} });
|
|
3244
3244
|
});
|
|
3245
3245
|
|
|
3246
|
-
//
|
|
3246
|
+
// ../../switchroom-sec-1417/node_modules/.bun/grammy@1.42.0/node_modules/grammy/out/core/client.js
|
|
3247
3247
|
var require_client = __commonJS((exports) => {
|
|
3248
3248
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3249
3249
|
exports.createRawApi = createRawApi;
|
|
@@ -3423,7 +3423,7 @@ If you want to prevent such mistakes in the future, consider using TypeScript. h
|
|
|
3423
3423
|
var shim_node_js_1 = require_shim_node();
|
|
3424
3424
|
});
|
|
3425
3425
|
|
|
3426
|
-
//
|
|
3426
|
+
// ../../switchroom-sec-1417/node_modules/.bun/grammy@1.42.0/node_modules/grammy/out/core/api.js
|
|
3427
3427
|
var require_api = __commonJS((exports) => {
|
|
3428
3428
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3429
3429
|
exports.Api = undefined;
|
|
@@ -4041,7 +4041,7 @@ var require_api = __commonJS((exports) => {
|
|
|
4041
4041
|
exports.Api = Api;
|
|
4042
4042
|
});
|
|
4043
4043
|
|
|
4044
|
-
//
|
|
4044
|
+
// ../../switchroom-sec-1417/node_modules/.bun/grammy@1.42.0/node_modules/grammy/out/bot.js
|
|
4045
4045
|
var require_bot = __commonJS((exports) => {
|
|
4046
4046
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4047
4047
|
exports.Bot = exports.BotError = exports.DEFAULT_UPDATE_TYPES = undefined;
|
|
@@ -4370,7 +4370,7 @@ On the other hand, if you actually know what you're doing and you do need to ins
|
|
|
4370
4370
|
var shim_node_js_1 = require_shim_node();
|
|
4371
4371
|
});
|
|
4372
4372
|
|
|
4373
|
-
//
|
|
4373
|
+
// ../../switchroom-sec-1417/node_modules/.bun/grammy@1.42.0/node_modules/grammy/out/convenience/constants.js
|
|
4374
4374
|
var require_constants = __commonJS((exports) => {
|
|
4375
4375
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4376
4376
|
exports.API_CONSTANTS = undefined;
|
|
@@ -4406,7 +4406,7 @@ var require_constants = __commonJS((exports) => {
|
|
|
4406
4406
|
Object.freeze(exports.API_CONSTANTS);
|
|
4407
4407
|
});
|
|
4408
4408
|
|
|
4409
|
-
//
|
|
4409
|
+
// ../../switchroom-sec-1417/node_modules/.bun/grammy@1.42.0/node_modules/grammy/out/convenience/inline_query.js
|
|
4410
4410
|
var require_inline_query = __commonJS((exports) => {
|
|
4411
4411
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4412
4412
|
exports.InlineQueryResultBuilder = undefined;
|
|
@@ -4604,7 +4604,7 @@ var require_inline_query = __commonJS((exports) => {
|
|
|
4604
4604
|
};
|
|
4605
4605
|
});
|
|
4606
4606
|
|
|
4607
|
-
//
|
|
4607
|
+
// ../../switchroom-sec-1417/node_modules/.bun/grammy@1.42.0/node_modules/grammy/out/convenience/input_media.js
|
|
4608
4608
|
var require_input_media = __commonJS((exports) => {
|
|
4609
4609
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4610
4610
|
exports.InputMediaBuilder = undefined;
|
|
@@ -4627,7 +4627,7 @@ var require_input_media = __commonJS((exports) => {
|
|
|
4627
4627
|
};
|
|
4628
4628
|
});
|
|
4629
4629
|
|
|
4630
|
-
//
|
|
4630
|
+
// ../../switchroom-sec-1417/node_modules/.bun/grammy@1.42.0/node_modules/grammy/out/convenience/keyboard.js
|
|
4631
4631
|
var require_keyboard = __commonJS((exports) => {
|
|
4632
4632
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4633
4633
|
exports.InlineKeyboard = exports.Keyboard = undefined;
|
|
@@ -4985,7 +4985,7 @@ var require_keyboard = __commonJS((exports) => {
|
|
|
4985
4985
|
}
|
|
4986
4986
|
});
|
|
4987
4987
|
|
|
4988
|
-
//
|
|
4988
|
+
// ../../switchroom-sec-1417/node_modules/.bun/grammy@1.42.0/node_modules/grammy/out/convenience/session.js
|
|
4989
4989
|
var require_session = __commonJS((exports) => {
|
|
4990
4990
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4991
4991
|
exports.MemorySessionStorage = undefined;
|
|
@@ -5285,7 +5285,7 @@ var require_session = __commonJS((exports) => {
|
|
|
5285
5285
|
}
|
|
5286
5286
|
});
|
|
5287
5287
|
|
|
5288
|
-
//
|
|
5288
|
+
// ../../switchroom-sec-1417/node_modules/.bun/grammy@1.42.0/node_modules/grammy/out/convenience/frameworks.js
|
|
5289
5289
|
var require_frameworks = __commonJS((exports) => {
|
|
5290
5290
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5291
5291
|
exports.adapters = undefined;
|
|
@@ -5653,7 +5653,7 @@ var require_frameworks = __commonJS((exports) => {
|
|
|
5653
5653
|
};
|
|
5654
5654
|
});
|
|
5655
5655
|
|
|
5656
|
-
//
|
|
5656
|
+
// ../../switchroom-sec-1417/node_modules/.bun/grammy@1.42.0/node_modules/grammy/out/convenience/webhook.js
|
|
5657
5657
|
var require_webhook = __commonJS((exports) => {
|
|
5658
5658
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5659
5659
|
exports.webhookCallback = webhookCallback;
|
|
@@ -5747,7 +5747,7 @@ var require_webhook = __commonJS((exports) => {
|
|
|
5747
5747
|
}
|
|
5748
5748
|
});
|
|
5749
5749
|
|
|
5750
|
-
//
|
|
5750
|
+
// ../../switchroom-sec-1417/node_modules/.bun/grammy@1.42.0/node_modules/grammy/out/mod.js
|
|
5751
5751
|
var require_mod = __commonJS((exports) => {
|
|
5752
5752
|
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
5753
5753
|
if (k2 === undefined)
|
|
@@ -5813,7 +5813,7 @@ var require_mod = __commonJS((exports) => {
|
|
|
5813
5813
|
} });
|
|
5814
5814
|
});
|
|
5815
5815
|
|
|
5816
|
-
//
|
|
5816
|
+
// ../../switchroom-sec-1417/node_modules/.bun/@grammyjs+runner@2.0.3+c6be0243b1bbec89/node_modules/@grammyjs/runner/out/platform.node.js
|
|
5817
5817
|
var require_platform_node2 = __commonJS((exports) => {
|
|
5818
5818
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5819
5819
|
exports.parentThread = exports.createThread = undefined;
|
|
@@ -5844,7 +5844,7 @@ var require_platform_node2 = __commonJS((exports) => {
|
|
|
5844
5844
|
exports.parentThread = parentThread;
|
|
5845
5845
|
});
|
|
5846
5846
|
|
|
5847
|
-
//
|
|
5847
|
+
// ../../switchroom-sec-1417/node_modules/.bun/@grammyjs+runner@2.0.3+c6be0243b1bbec89/node_modules/@grammyjs/runner/out/distribute.js
|
|
5848
5848
|
var require_distribute = __commonJS((exports) => {
|
|
5849
5849
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5850
5850
|
exports.distribute = undefined;
|
|
@@ -5889,7 +5889,7 @@ var require_distribute = __commonJS((exports) => {
|
|
|
5889
5889
|
exports.distribute = distribute;
|
|
5890
5890
|
});
|
|
5891
5891
|
|
|
5892
|
-
//
|
|
5892
|
+
// ../../switchroom-sec-1417/node_modules/.bun/@grammyjs+runner@2.0.3+c6be0243b1bbec89/node_modules/@grammyjs/runner/out/queue.js
|
|
5893
5893
|
var require_queue = __commonJS((exports) => {
|
|
5894
5894
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5895
5895
|
exports.DecayingDeque = undefined;
|
|
@@ -6033,7 +6033,7 @@ var require_queue = __commonJS((exports) => {
|
|
|
6033
6033
|
exports.DecayingDeque = DecayingDeque;
|
|
6034
6034
|
});
|
|
6035
6035
|
|
|
6036
|
-
//
|
|
6036
|
+
// ../../switchroom-sec-1417/node_modules/.bun/@grammyjs+runner@2.0.3+c6be0243b1bbec89/node_modules/@grammyjs/runner/out/sink.js
|
|
6037
6037
|
var require_sink = __commonJS((exports) => {
|
|
6038
6038
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6039
6039
|
exports.createConcurrentSink = exports.createBatchSink = exports.createSequentialSink = undefined;
|
|
@@ -6078,7 +6078,7 @@ var require_sink = __commonJS((exports) => {
|
|
|
6078
6078
|
exports.createConcurrentSink = createConcurrentSink;
|
|
6079
6079
|
});
|
|
6080
6080
|
|
|
6081
|
-
//
|
|
6081
|
+
// ../../switchroom-sec-1417/node_modules/.bun/@grammyjs+runner@2.0.3+c6be0243b1bbec89/node_modules/@grammyjs/runner/out/node-shim.js
|
|
6082
6082
|
var require_node_shim = __commonJS((exports) => {
|
|
6083
6083
|
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
6084
6084
|
if (k2 === undefined)
|
|
@@ -6104,7 +6104,7 @@ var require_node_shim = __commonJS((exports) => {
|
|
|
6104
6104
|
__exportStar(require_abort_controller(), exports);
|
|
6105
6105
|
});
|
|
6106
6106
|
|
|
6107
|
-
//
|
|
6107
|
+
// ../../switchroom-sec-1417/node_modules/.bun/@grammyjs+runner@2.0.3+c6be0243b1bbec89/node_modules/@grammyjs/runner/out/source.js
|
|
6108
6108
|
var require_source = __commonJS((exports) => {
|
|
6109
6109
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6110
6110
|
exports.createSource = undefined;
|
|
@@ -6184,7 +6184,7 @@ var require_source = __commonJS((exports) => {
|
|
|
6184
6184
|
var node_shim_js_1 = require_node_shim();
|
|
6185
6185
|
});
|
|
6186
6186
|
|
|
6187
|
-
//
|
|
6187
|
+
// ../../switchroom-sec-1417/node_modules/.bun/@grammyjs+runner@2.0.3+c6be0243b1bbec89/node_modules/@grammyjs/runner/out/runner.js
|
|
6188
6188
|
var require_runner = __commonJS((exports) => {
|
|
6189
6189
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6190
6190
|
exports.createRunner = exports.createUpdateFetcher = exports.run = undefined;
|
|
@@ -6336,7 +6336,7 @@ var require_runner = __commonJS((exports) => {
|
|
|
6336
6336
|
}
|
|
6337
6337
|
});
|
|
6338
6338
|
|
|
6339
|
-
//
|
|
6339
|
+
// ../../switchroom-sec-1417/node_modules/.bun/@grammyjs+runner@2.0.3+c6be0243b1bbec89/node_modules/@grammyjs/runner/out/sequentialize.js
|
|
6340
6340
|
var require_sequentialize = __commonJS((exports) => {
|
|
6341
6341
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6342
6342
|
exports.sequentialize = undefined;
|
|
@@ -6379,7 +6379,7 @@ var require_sequentialize = __commonJS((exports) => {
|
|
|
6379
6379
|
exports.sequentialize = sequentialize;
|
|
6380
6380
|
});
|
|
6381
6381
|
|
|
6382
|
-
//
|
|
6382
|
+
// ../../switchroom-sec-1417/node_modules/.bun/grammy@1.42.0/node_modules/grammy/out/mod.js
|
|
6383
6383
|
var require_mod2 = __commonJS((exports) => {
|
|
6384
6384
|
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
6385
6385
|
if (k2 === undefined)
|
|
@@ -6445,7 +6445,7 @@ var require_mod2 = __commonJS((exports) => {
|
|
|
6445
6445
|
} });
|
|
6446
6446
|
});
|
|
6447
6447
|
|
|
6448
|
-
//
|
|
6448
|
+
// ../../switchroom-sec-1417/node_modules/.bun/@grammyjs+runner@2.0.3+c6be0243b1bbec89/node_modules/@grammyjs/runner/out/deps.node.js
|
|
6449
6449
|
var require_deps_node = __commonJS((exports) => {
|
|
6450
6450
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6451
6451
|
exports.BotError = exports.Bot = undefined;
|
|
@@ -6458,7 +6458,7 @@ var require_deps_node = __commonJS((exports) => {
|
|
|
6458
6458
|
} });
|
|
6459
6459
|
});
|
|
6460
6460
|
|
|
6461
|
-
//
|
|
6461
|
+
// ../../switchroom-sec-1417/node_modules/.bun/@grammyjs+runner@2.0.3+c6be0243b1bbec89/node_modules/@grammyjs/runner/out/worker.js
|
|
6462
6462
|
var require_worker = __commonJS((exports) => {
|
|
6463
6463
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6464
6464
|
exports.BotWorker = undefined;
|
|
@@ -6500,7 +6500,7 @@ var require_worker = __commonJS((exports) => {
|
|
|
6500
6500
|
exports.BotWorker = BotWorker;
|
|
6501
6501
|
});
|
|
6502
6502
|
|
|
6503
|
-
//
|
|
6503
|
+
// ../../switchroom-sec-1417/node_modules/.bun/@grammyjs+runner@2.0.3+c6be0243b1bbec89/node_modules/@grammyjs/runner/out/mod.js
|
|
6504
6504
|
var require_mod3 = __commonJS((exports) => {
|
|
6505
6505
|
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
6506
6506
|
if (k2 === undefined)
|
|
@@ -6532,7 +6532,7 @@ var require_mod3 = __commonJS((exports) => {
|
|
|
6532
6532
|
__exportStar(require_worker(), exports);
|
|
6533
6533
|
});
|
|
6534
6534
|
|
|
6535
|
-
//
|
|
6535
|
+
// ../../switchroom-sec-1417/node_modules/.bun/@grammyjs+runner@2.0.3+c6be0243b1bbec89/node_modules/@grammyjs/runner/out/mod.js
|
|
6536
6536
|
var require_mod4 = __commonJS((exports) => {
|
|
6537
6537
|
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
6538
6538
|
if (k2 === undefined)
|
|
@@ -6564,7 +6564,7 @@ var require_mod4 = __commonJS((exports) => {
|
|
|
6564
6564
|
__exportStar(require_worker(), exports);
|
|
6565
6565
|
});
|
|
6566
6566
|
|
|
6567
|
-
//
|
|
6567
|
+
// ../../switchroom-sec-1417/node_modules/.bun/@xterm+headless@6.0.0/node_modules/@xterm/headless/lib-headless/xterm-headless.js
|
|
6568
6568
|
var require_xterm_headless = __commonJS((exports2) => {
|
|
6569
6569
|
(() => {
|
|
6570
6570
|
var e = { 5639: (e2, t2, s2) => {
|
|
@@ -12119,7 +12119,7 @@ ${i3.join(`
|
|
|
12119
12119
|
})();
|
|
12120
12120
|
});
|
|
12121
12121
|
|
|
12122
|
-
//
|
|
12122
|
+
// ../../switchroom-sec-1417/node_modules/.bun/zod@3.25.76/node_modules/zod/v3/helpers/util.js
|
|
12123
12123
|
var util, objectUtil, ZodParsedType, getParsedType = (data) => {
|
|
12124
12124
|
const t = typeof data;
|
|
12125
12125
|
switch (t) {
|
|
@@ -12250,7 +12250,7 @@ var init_util = __esm(() => {
|
|
|
12250
12250
|
]);
|
|
12251
12251
|
});
|
|
12252
12252
|
|
|
12253
|
-
//
|
|
12253
|
+
// ../../switchroom-sec-1417/node_modules/.bun/zod@3.25.76/node_modules/zod/v3/ZodError.js
|
|
12254
12254
|
var ZodIssueCode, quotelessJson = (obj) => {
|
|
12255
12255
|
const json = JSON.stringify(obj, null, 2);
|
|
12256
12256
|
return json.replace(/"([^"]+)":/g, "$1:");
|
|
@@ -12371,7 +12371,7 @@ var init_ZodError = __esm(() => {
|
|
|
12371
12371
|
};
|
|
12372
12372
|
});
|
|
12373
12373
|
|
|
12374
|
-
//
|
|
12374
|
+
// ../../switchroom-sec-1417/node_modules/.bun/zod@3.25.76/node_modules/zod/v3/locales/en.js
|
|
12375
12375
|
var errorMap = (issue, _ctx) => {
|
|
12376
12376
|
let message;
|
|
12377
12377
|
switch (issue.code) {
|
|
@@ -12478,7 +12478,7 @@ var init_en = __esm(() => {
|
|
|
12478
12478
|
en_default = errorMap;
|
|
12479
12479
|
});
|
|
12480
12480
|
|
|
12481
|
-
//
|
|
12481
|
+
// ../../switchroom-sec-1417/node_modules/.bun/zod@3.25.76/node_modules/zod/v3/errors.js
|
|
12482
12482
|
function setErrorMap(map) {
|
|
12483
12483
|
overrideErrorMap = map;
|
|
12484
12484
|
}
|
|
@@ -12491,7 +12491,7 @@ var init_errors = __esm(() => {
|
|
|
12491
12491
|
overrideErrorMap = en_default;
|
|
12492
12492
|
});
|
|
12493
12493
|
|
|
12494
|
-
//
|
|
12494
|
+
// ../../switchroom-sec-1417/node_modules/.bun/zod@3.25.76/node_modules/zod/v3/helpers/parseUtil.js
|
|
12495
12495
|
function addIssueToContext(ctx, issueData) {
|
|
12496
12496
|
const overrideMap = getErrorMap();
|
|
12497
12497
|
const issue = makeIssue({
|
|
@@ -12596,10 +12596,10 @@ var init_parseUtil = __esm(() => {
|
|
|
12596
12596
|
});
|
|
12597
12597
|
});
|
|
12598
12598
|
|
|
12599
|
-
//
|
|
12599
|
+
// ../../switchroom-sec-1417/node_modules/.bun/zod@3.25.76/node_modules/zod/v3/helpers/typeAliases.js
|
|
12600
12600
|
var init_typeAliases = () => {};
|
|
12601
12601
|
|
|
12602
|
-
//
|
|
12602
|
+
// ../../switchroom-sec-1417/node_modules/.bun/zod@3.25.76/node_modules/zod/v3/helpers/errorUtil.js
|
|
12603
12603
|
var errorUtil;
|
|
12604
12604
|
var init_errorUtil = __esm(() => {
|
|
12605
12605
|
(function(errorUtil2) {
|
|
@@ -12608,7 +12608,7 @@ var init_errorUtil = __esm(() => {
|
|
|
12608
12608
|
})(errorUtil || (errorUtil = {}));
|
|
12609
12609
|
});
|
|
12610
12610
|
|
|
12611
|
-
//
|
|
12611
|
+
// ../../switchroom-sec-1417/node_modules/.bun/zod@3.25.76/node_modules/zod/v3/types.js
|
|
12612
12612
|
class ParseInputLazyPath {
|
|
12613
12613
|
constructor(parent, value, path, key) {
|
|
12614
12614
|
this._cachedPath = [];
|
|
@@ -15959,7 +15959,7 @@ var init_types = __esm(() => {
|
|
|
15959
15959
|
NEVER = INVALID;
|
|
15960
15960
|
});
|
|
15961
15961
|
|
|
15962
|
-
//
|
|
15962
|
+
// ../../switchroom-sec-1417/node_modules/.bun/zod@3.25.76/node_modules/zod/v3/external.js
|
|
15963
15963
|
var exports_external = {};
|
|
15964
15964
|
__export(exports_external, {
|
|
15965
15965
|
void: () => voidType,
|
|
@@ -16079,7 +16079,7 @@ var init_external = __esm(() => {
|
|
|
16079
16079
|
init_ZodError();
|
|
16080
16080
|
});
|
|
16081
16081
|
|
|
16082
|
-
//
|
|
16082
|
+
// ../../switchroom-sec-1417/node_modules/.bun/zod@3.25.76/node_modules/zod/index.js
|
|
16083
16083
|
var init_zod = __esm(() => {
|
|
16084
16084
|
init_external();
|
|
16085
16085
|
init_external();
|
|
@@ -16642,7 +16642,7 @@ var init_client = __esm(() => {
|
|
|
16642
16642
|
};
|
|
16643
16643
|
});
|
|
16644
16644
|
|
|
16645
|
-
//
|
|
16645
|
+
// ../../switchroom-sec-1417/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/identity.js
|
|
16646
16646
|
var require_identity = __commonJS((exports2) => {
|
|
16647
16647
|
var ALIAS = Symbol.for("yaml.alias");
|
|
16648
16648
|
var DOC = Symbol.for("yaml.document");
|
|
@@ -16696,7 +16696,7 @@ var require_identity = __commonJS((exports2) => {
|
|
|
16696
16696
|
exports2.isSeq = isSeq;
|
|
16697
16697
|
});
|
|
16698
16698
|
|
|
16699
|
-
//
|
|
16699
|
+
// ../../switchroom-sec-1417/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/visit.js
|
|
16700
16700
|
var require_visit = __commonJS((exports2) => {
|
|
16701
16701
|
var identity = require_identity();
|
|
16702
16702
|
var BREAK = Symbol("break visit");
|
|
@@ -16851,7 +16851,7 @@ var require_visit = __commonJS((exports2) => {
|
|
|
16851
16851
|
exports2.visitAsync = visitAsync;
|
|
16852
16852
|
});
|
|
16853
16853
|
|
|
16854
|
-
//
|
|
16854
|
+
// ../../switchroom-sec-1417/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/doc/directives.js
|
|
16855
16855
|
var require_directives = __commonJS((exports2) => {
|
|
16856
16856
|
var identity = require_identity();
|
|
16857
16857
|
var visit = require_visit();
|
|
@@ -17003,7 +17003,7 @@ var require_directives = __commonJS((exports2) => {
|
|
|
17003
17003
|
exports2.Directives = Directives;
|
|
17004
17004
|
});
|
|
17005
17005
|
|
|
17006
|
-
//
|
|
17006
|
+
// ../../switchroom-sec-1417/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/doc/anchors.js
|
|
17007
17007
|
var require_anchors = __commonJS((exports2) => {
|
|
17008
17008
|
var identity = require_identity();
|
|
17009
17009
|
var visit = require_visit();
|
|
@@ -17065,7 +17065,7 @@ var require_anchors = __commonJS((exports2) => {
|
|
|
17065
17065
|
exports2.findNewAnchor = findNewAnchor;
|
|
17066
17066
|
});
|
|
17067
17067
|
|
|
17068
|
-
//
|
|
17068
|
+
// ../../switchroom-sec-1417/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/doc/applyReviver.js
|
|
17069
17069
|
var require_applyReviver = __commonJS((exports2) => {
|
|
17070
17070
|
function applyReviver(reviver, obj, key, val) {
|
|
17071
17071
|
if (val && typeof val === "object") {
|
|
@@ -17112,7 +17112,7 @@ var require_applyReviver = __commonJS((exports2) => {
|
|
|
17112
17112
|
exports2.applyReviver = applyReviver;
|
|
17113
17113
|
});
|
|
17114
17114
|
|
|
17115
|
-
//
|
|
17115
|
+
// ../../switchroom-sec-1417/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/toJS.js
|
|
17116
17116
|
var require_toJS = __commonJS((exports2) => {
|
|
17117
17117
|
var identity = require_identity();
|
|
17118
17118
|
function toJS(value, arg, ctx) {
|
|
@@ -17139,7 +17139,7 @@ var require_toJS = __commonJS((exports2) => {
|
|
|
17139
17139
|
exports2.toJS = toJS;
|
|
17140
17140
|
});
|
|
17141
17141
|
|
|
17142
|
-
//
|
|
17142
|
+
// ../../switchroom-sec-1417/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/Node.js
|
|
17143
17143
|
var require_Node = __commonJS((exports2) => {
|
|
17144
17144
|
var applyReviver = require_applyReviver();
|
|
17145
17145
|
var identity = require_identity();
|
|
@@ -17176,7 +17176,7 @@ var require_Node = __commonJS((exports2) => {
|
|
|
17176
17176
|
exports2.NodeBase = NodeBase;
|
|
17177
17177
|
});
|
|
17178
17178
|
|
|
17179
|
-
//
|
|
17179
|
+
// ../../switchroom-sec-1417/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/Alias.js
|
|
17180
17180
|
var require_Alias = __commonJS((exports2) => {
|
|
17181
17181
|
var anchors = require_anchors();
|
|
17182
17182
|
var visit = require_visit();
|
|
@@ -17284,7 +17284,7 @@ var require_Alias = __commonJS((exports2) => {
|
|
|
17284
17284
|
exports2.Alias = Alias;
|
|
17285
17285
|
});
|
|
17286
17286
|
|
|
17287
|
-
//
|
|
17287
|
+
// ../../switchroom-sec-1417/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/Scalar.js
|
|
17288
17288
|
var require_Scalar = __commonJS((exports2) => {
|
|
17289
17289
|
var identity = require_identity();
|
|
17290
17290
|
var Node = require_Node();
|
|
@@ -17312,7 +17312,7 @@ var require_Scalar = __commonJS((exports2) => {
|
|
|
17312
17312
|
exports2.isScalarValue = isScalarValue;
|
|
17313
17313
|
});
|
|
17314
17314
|
|
|
17315
|
-
//
|
|
17315
|
+
// ../../switchroom-sec-1417/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/doc/createNode.js
|
|
17316
17316
|
var require_createNode = __commonJS((exports2) => {
|
|
17317
17317
|
var Alias = require_Alias();
|
|
17318
17318
|
var identity = require_identity();
|
|
@@ -17384,7 +17384,7 @@ var require_createNode = __commonJS((exports2) => {
|
|
|
17384
17384
|
exports2.createNode = createNode;
|
|
17385
17385
|
});
|
|
17386
17386
|
|
|
17387
|
-
//
|
|
17387
|
+
// ../../switchroom-sec-1417/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/Collection.js
|
|
17388
17388
|
var require_Collection = __commonJS((exports2) => {
|
|
17389
17389
|
var createNode = require_createNode();
|
|
17390
17390
|
var identity = require_identity();
|
|
@@ -17499,7 +17499,7 @@ var require_Collection = __commonJS((exports2) => {
|
|
|
17499
17499
|
exports2.isEmptyPath = isEmptyPath;
|
|
17500
17500
|
});
|
|
17501
17501
|
|
|
17502
|
-
//
|
|
17502
|
+
// ../../switchroom-sec-1417/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyComment.js
|
|
17503
17503
|
var require_stringifyComment = __commonJS((exports2) => {
|
|
17504
17504
|
var stringifyComment = (str) => str.replace(/^(?!$)(?: $)?/gm, "#");
|
|
17505
17505
|
function indentComment(comment, indent) {
|
|
@@ -17516,7 +17516,7 @@ var require_stringifyComment = __commonJS((exports2) => {
|
|
|
17516
17516
|
exports2.stringifyComment = stringifyComment;
|
|
17517
17517
|
});
|
|
17518
17518
|
|
|
17519
|
-
//
|
|
17519
|
+
// ../../switchroom-sec-1417/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/foldFlowLines.js
|
|
17520
17520
|
var require_foldFlowLines = __commonJS((exports2) => {
|
|
17521
17521
|
var FOLD_FLOW = "flow";
|
|
17522
17522
|
var FOLD_BLOCK = "block";
|
|
@@ -17653,7 +17653,7 @@ ${indent}${text.slice(fold + 1, end2)}`;
|
|
|
17653
17653
|
exports2.foldFlowLines = foldFlowLines;
|
|
17654
17654
|
});
|
|
17655
17655
|
|
|
17656
|
-
//
|
|
17656
|
+
// ../../switchroom-sec-1417/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyString.js
|
|
17657
17657
|
var require_stringifyString = __commonJS((exports2) => {
|
|
17658
17658
|
var Scalar = require_Scalar();
|
|
17659
17659
|
var foldFlowLines = require_foldFlowLines();
|
|
@@ -17951,7 +17951,7 @@ ${indent}`);
|
|
|
17951
17951
|
exports2.stringifyString = stringifyString;
|
|
17952
17952
|
});
|
|
17953
17953
|
|
|
17954
|
-
//
|
|
17954
|
+
// ../../switchroom-sec-1417/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/stringify.js
|
|
17955
17955
|
var require_stringify = __commonJS((exports2) => {
|
|
17956
17956
|
var anchors = require_anchors();
|
|
17957
17957
|
var identity = require_identity();
|
|
@@ -18072,7 +18072,7 @@ ${ctx.indent}${str}`;
|
|
|
18072
18072
|
exports2.stringify = stringify;
|
|
18073
18073
|
});
|
|
18074
18074
|
|
|
18075
|
-
//
|
|
18075
|
+
// ../../switchroom-sec-1417/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyPair.js
|
|
18076
18076
|
var require_stringifyPair = __commonJS((exports2) => {
|
|
18077
18077
|
var identity = require_identity();
|
|
18078
18078
|
var Scalar = require_Scalar();
|
|
@@ -18208,7 +18208,7 @@ ${ctx.indent}`;
|
|
|
18208
18208
|
exports2.stringifyPair = stringifyPair;
|
|
18209
18209
|
});
|
|
18210
18210
|
|
|
18211
|
-
//
|
|
18211
|
+
// ../../switchroom-sec-1417/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/log.js
|
|
18212
18212
|
var require_log = __commonJS((exports2) => {
|
|
18213
18213
|
var node_process = __require("process");
|
|
18214
18214
|
function debug(logLevel, ...messages) {
|
|
@@ -18227,7 +18227,7 @@ var require_log = __commonJS((exports2) => {
|
|
|
18227
18227
|
exports2.warn = warn;
|
|
18228
18228
|
});
|
|
18229
18229
|
|
|
18230
|
-
//
|
|
18230
|
+
// ../../switchroom-sec-1417/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/merge.js
|
|
18231
18231
|
var require_merge = __commonJS((exports2) => {
|
|
18232
18232
|
var identity = require_identity();
|
|
18233
18233
|
var Scalar = require_Scalar();
|
|
@@ -18281,7 +18281,7 @@ var require_merge = __commonJS((exports2) => {
|
|
|
18281
18281
|
exports2.merge = merge;
|
|
18282
18282
|
});
|
|
18283
18283
|
|
|
18284
|
-
//
|
|
18284
|
+
// ../../switchroom-sec-1417/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/addPairToJSMap.js
|
|
18285
18285
|
var require_addPairToJSMap = __commonJS((exports2) => {
|
|
18286
18286
|
var log = require_log();
|
|
18287
18287
|
var merge = require_merge();
|
|
@@ -18342,7 +18342,7 @@ var require_addPairToJSMap = __commonJS((exports2) => {
|
|
|
18342
18342
|
exports2.addPairToJSMap = addPairToJSMap;
|
|
18343
18343
|
});
|
|
18344
18344
|
|
|
18345
|
-
//
|
|
18345
|
+
// ../../switchroom-sec-1417/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/Pair.js
|
|
18346
18346
|
var require_Pair = __commonJS((exports2) => {
|
|
18347
18347
|
var createNode = require_createNode();
|
|
18348
18348
|
var stringifyPair = require_stringifyPair();
|
|
@@ -18380,7 +18380,7 @@ var require_Pair = __commonJS((exports2) => {
|
|
|
18380
18380
|
exports2.createPair = createPair;
|
|
18381
18381
|
});
|
|
18382
18382
|
|
|
18383
|
-
//
|
|
18383
|
+
// ../../switchroom-sec-1417/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyCollection.js
|
|
18384
18384
|
var require_stringifyCollection = __commonJS((exports2) => {
|
|
18385
18385
|
var identity = require_identity();
|
|
18386
18386
|
var stringify = require_stringify();
|
|
@@ -18532,7 +18532,7 @@ ${indent}${end}`;
|
|
|
18532
18532
|
exports2.stringifyCollection = stringifyCollection;
|
|
18533
18533
|
});
|
|
18534
18534
|
|
|
18535
|
-
//
|
|
18535
|
+
// ../../switchroom-sec-1417/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/YAMLMap.js
|
|
18536
18536
|
var require_YAMLMap = __commonJS((exports2) => {
|
|
18537
18537
|
var stringifyCollection = require_stringifyCollection();
|
|
18538
18538
|
var addPairToJSMap = require_addPairToJSMap();
|
|
@@ -18659,7 +18659,7 @@ var require_YAMLMap = __commonJS((exports2) => {
|
|
|
18659
18659
|
exports2.findPair = findPair;
|
|
18660
18660
|
});
|
|
18661
18661
|
|
|
18662
|
-
//
|
|
18662
|
+
// ../../switchroom-sec-1417/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/common/map.js
|
|
18663
18663
|
var require_map = __commonJS((exports2) => {
|
|
18664
18664
|
var identity = require_identity();
|
|
18665
18665
|
var YAMLMap = require_YAMLMap();
|
|
@@ -18678,7 +18678,7 @@ var require_map = __commonJS((exports2) => {
|
|
|
18678
18678
|
exports2.map = map;
|
|
18679
18679
|
});
|
|
18680
18680
|
|
|
18681
|
-
//
|
|
18681
|
+
// ../../switchroom-sec-1417/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/YAMLSeq.js
|
|
18682
18682
|
var require_YAMLSeq = __commonJS((exports2) => {
|
|
18683
18683
|
var createNode = require_createNode();
|
|
18684
18684
|
var stringifyCollection = require_stringifyCollection();
|
|
@@ -18771,7 +18771,7 @@ var require_YAMLSeq = __commonJS((exports2) => {
|
|
|
18771
18771
|
exports2.YAMLSeq = YAMLSeq;
|
|
18772
18772
|
});
|
|
18773
18773
|
|
|
18774
|
-
//
|
|
18774
|
+
// ../../switchroom-sec-1417/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/common/seq.js
|
|
18775
18775
|
var require_seq = __commonJS((exports2) => {
|
|
18776
18776
|
var identity = require_identity();
|
|
18777
18777
|
var YAMLSeq = require_YAMLSeq();
|
|
@@ -18790,7 +18790,7 @@ var require_seq = __commonJS((exports2) => {
|
|
|
18790
18790
|
exports2.seq = seq;
|
|
18791
18791
|
});
|
|
18792
18792
|
|
|
18793
|
-
//
|
|
18793
|
+
// ../../switchroom-sec-1417/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/common/string.js
|
|
18794
18794
|
var require_string = __commonJS((exports2) => {
|
|
18795
18795
|
var stringifyString = require_stringifyString();
|
|
18796
18796
|
var string = {
|
|
@@ -18806,7 +18806,7 @@ var require_string = __commonJS((exports2) => {
|
|
|
18806
18806
|
exports2.string = string;
|
|
18807
18807
|
});
|
|
18808
18808
|
|
|
18809
|
-
//
|
|
18809
|
+
// ../../switchroom-sec-1417/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/common/null.js
|
|
18810
18810
|
var require_null = __commonJS((exports2) => {
|
|
18811
18811
|
var Scalar = require_Scalar();
|
|
18812
18812
|
var nullTag = {
|
|
@@ -18821,7 +18821,7 @@ var require_null = __commonJS((exports2) => {
|
|
|
18821
18821
|
exports2.nullTag = nullTag;
|
|
18822
18822
|
});
|
|
18823
18823
|
|
|
18824
|
-
//
|
|
18824
|
+
// ../../switchroom-sec-1417/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/core/bool.js
|
|
18825
18825
|
var require_bool = __commonJS((exports2) => {
|
|
18826
18826
|
var Scalar = require_Scalar();
|
|
18827
18827
|
var boolTag = {
|
|
@@ -18842,7 +18842,7 @@ var require_bool = __commonJS((exports2) => {
|
|
|
18842
18842
|
exports2.boolTag = boolTag;
|
|
18843
18843
|
});
|
|
18844
18844
|
|
|
18845
|
-
//
|
|
18845
|
+
// ../../switchroom-sec-1417/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyNumber.js
|
|
18846
18846
|
var require_stringifyNumber = __commonJS((exports2) => {
|
|
18847
18847
|
function stringifyNumber({ format, minFractionDigits, tag, value }) {
|
|
18848
18848
|
if (typeof value === "bigint")
|
|
@@ -18866,7 +18866,7 @@ var require_stringifyNumber = __commonJS((exports2) => {
|
|
|
18866
18866
|
exports2.stringifyNumber = stringifyNumber;
|
|
18867
18867
|
});
|
|
18868
18868
|
|
|
18869
|
-
//
|
|
18869
|
+
// ../../switchroom-sec-1417/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/core/float.js
|
|
18870
18870
|
var require_float = __commonJS((exports2) => {
|
|
18871
18871
|
var Scalar = require_Scalar();
|
|
18872
18872
|
var stringifyNumber = require_stringifyNumber();
|
|
@@ -18909,7 +18909,7 @@ var require_float = __commonJS((exports2) => {
|
|
|
18909
18909
|
exports2.floatNaN = floatNaN;
|
|
18910
18910
|
});
|
|
18911
18911
|
|
|
18912
|
-
//
|
|
18912
|
+
// ../../switchroom-sec-1417/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/core/int.js
|
|
18913
18913
|
var require_int = __commonJS((exports2) => {
|
|
18914
18914
|
var stringifyNumber = require_stringifyNumber();
|
|
18915
18915
|
var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
|
|
@@ -18951,7 +18951,7 @@ var require_int = __commonJS((exports2) => {
|
|
|
18951
18951
|
exports2.intOct = intOct;
|
|
18952
18952
|
});
|
|
18953
18953
|
|
|
18954
|
-
//
|
|
18954
|
+
// ../../switchroom-sec-1417/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/core/schema.js
|
|
18955
18955
|
var require_schema = __commonJS((exports2) => {
|
|
18956
18956
|
var map = require_map();
|
|
18957
18957
|
var _null = require_null();
|
|
@@ -18976,7 +18976,7 @@ var require_schema = __commonJS((exports2) => {
|
|
|
18976
18976
|
exports2.schema = schema;
|
|
18977
18977
|
});
|
|
18978
18978
|
|
|
18979
|
-
//
|
|
18979
|
+
// ../../switchroom-sec-1417/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/json/schema.js
|
|
18980
18980
|
var require_schema2 = __commonJS((exports2) => {
|
|
18981
18981
|
var Scalar = require_Scalar();
|
|
18982
18982
|
var map = require_map();
|
|
@@ -19040,7 +19040,7 @@ var require_schema2 = __commonJS((exports2) => {
|
|
|
19040
19040
|
exports2.schema = schema;
|
|
19041
19041
|
});
|
|
19042
19042
|
|
|
19043
|
-
//
|
|
19043
|
+
// ../../switchroom-sec-1417/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/binary.js
|
|
19044
19044
|
var require_binary = __commonJS((exports2) => {
|
|
19045
19045
|
var node_buffer = __require("buffer");
|
|
19046
19046
|
var Scalar = require_Scalar();
|
|
@@ -19095,7 +19095,7 @@ var require_binary = __commonJS((exports2) => {
|
|
|
19095
19095
|
exports2.binary = binary;
|
|
19096
19096
|
});
|
|
19097
19097
|
|
|
19098
|
-
//
|
|
19098
|
+
// ../../switchroom-sec-1417/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/pairs.js
|
|
19099
19099
|
var require_pairs = __commonJS((exports2) => {
|
|
19100
19100
|
var identity = require_identity();
|
|
19101
19101
|
var Pair = require_Pair();
|
|
@@ -19170,7 +19170,7 @@ ${cn.comment}` : item.comment;
|
|
|
19170
19170
|
exports2.resolvePairs = resolvePairs;
|
|
19171
19171
|
});
|
|
19172
19172
|
|
|
19173
|
-
//
|
|
19173
|
+
// ../../switchroom-sec-1417/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/omap.js
|
|
19174
19174
|
var require_omap = __commonJS((exports2) => {
|
|
19175
19175
|
var identity = require_identity();
|
|
19176
19176
|
var toJS = require_toJS();
|
|
@@ -19242,7 +19242,7 @@ var require_omap = __commonJS((exports2) => {
|
|
|
19242
19242
|
exports2.omap = omap;
|
|
19243
19243
|
});
|
|
19244
19244
|
|
|
19245
|
-
//
|
|
19245
|
+
// ../../switchroom-sec-1417/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/bool.js
|
|
19246
19246
|
var require_bool2 = __commonJS((exports2) => {
|
|
19247
19247
|
var Scalar = require_Scalar();
|
|
19248
19248
|
function boolStringify({ value, source }, ctx) {
|
|
@@ -19271,7 +19271,7 @@ var require_bool2 = __commonJS((exports2) => {
|
|
|
19271
19271
|
exports2.trueTag = trueTag;
|
|
19272
19272
|
});
|
|
19273
19273
|
|
|
19274
|
-
//
|
|
19274
|
+
// ../../switchroom-sec-1417/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/float.js
|
|
19275
19275
|
var require_float2 = __commonJS((exports2) => {
|
|
19276
19276
|
var Scalar = require_Scalar();
|
|
19277
19277
|
var stringifyNumber = require_stringifyNumber();
|
|
@@ -19317,7 +19317,7 @@ var require_float2 = __commonJS((exports2) => {
|
|
|
19317
19317
|
exports2.floatNaN = floatNaN;
|
|
19318
19318
|
});
|
|
19319
19319
|
|
|
19320
|
-
//
|
|
19320
|
+
// ../../switchroom-sec-1417/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/int.js
|
|
19321
19321
|
var require_int2 = __commonJS((exports2) => {
|
|
19322
19322
|
var stringifyNumber = require_stringifyNumber();
|
|
19323
19323
|
var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
|
|
@@ -19393,7 +19393,7 @@ var require_int2 = __commonJS((exports2) => {
|
|
|
19393
19393
|
exports2.intOct = intOct;
|
|
19394
19394
|
});
|
|
19395
19395
|
|
|
19396
|
-
//
|
|
19396
|
+
// ../../switchroom-sec-1417/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/set.js
|
|
19397
19397
|
var require_set = __commonJS((exports2) => {
|
|
19398
19398
|
var identity = require_identity();
|
|
19399
19399
|
var Pair = require_Pair();
|
|
@@ -19476,7 +19476,7 @@ var require_set = __commonJS((exports2) => {
|
|
|
19476
19476
|
exports2.set = set;
|
|
19477
19477
|
});
|
|
19478
19478
|
|
|
19479
|
-
//
|
|
19479
|
+
// ../../switchroom-sec-1417/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js
|
|
19480
19480
|
var require_timestamp = __commonJS((exports2) => {
|
|
19481
19481
|
var stringifyNumber = require_stringifyNumber();
|
|
19482
19482
|
function parseSexagesimal(str, asBigInt) {
|
|
@@ -19558,7 +19558,7 @@ var require_timestamp = __commonJS((exports2) => {
|
|
|
19558
19558
|
exports2.timestamp = timestamp;
|
|
19559
19559
|
});
|
|
19560
19560
|
|
|
19561
|
-
//
|
|
19561
|
+
// ../../switchroom-sec-1417/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/schema.js
|
|
19562
19562
|
var require_schema3 = __commonJS((exports2) => {
|
|
19563
19563
|
var map = require_map();
|
|
19564
19564
|
var _null = require_null();
|
|
@@ -19599,7 +19599,7 @@ var require_schema3 = __commonJS((exports2) => {
|
|
|
19599
19599
|
exports2.schema = schema;
|
|
19600
19600
|
});
|
|
19601
19601
|
|
|
19602
|
-
//
|
|
19602
|
+
// ../../switchroom-sec-1417/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/tags.js
|
|
19603
19603
|
var require_tags = __commonJS((exports2) => {
|
|
19604
19604
|
var map = require_map();
|
|
19605
19605
|
var _null = require_null();
|
|
@@ -19690,7 +19690,7 @@ var require_tags = __commonJS((exports2) => {
|
|
|
19690
19690
|
exports2.getTags = getTags;
|
|
19691
19691
|
});
|
|
19692
19692
|
|
|
19693
|
-
//
|
|
19693
|
+
// ../../switchroom-sec-1417/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/Schema.js
|
|
19694
19694
|
var require_Schema = __commonJS((exports2) => {
|
|
19695
19695
|
var identity = require_identity();
|
|
19696
19696
|
var map = require_map();
|
|
@@ -19720,7 +19720,7 @@ var require_Schema = __commonJS((exports2) => {
|
|
|
19720
19720
|
exports2.Schema = Schema;
|
|
19721
19721
|
});
|
|
19722
19722
|
|
|
19723
|
-
//
|
|
19723
|
+
// ../../switchroom-sec-1417/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyDocument.js
|
|
19724
19724
|
var require_stringifyDocument = __commonJS((exports2) => {
|
|
19725
19725
|
var identity = require_identity();
|
|
19726
19726
|
var stringify = require_stringify();
|
|
@@ -19800,7 +19800,7 @@ var require_stringifyDocument = __commonJS((exports2) => {
|
|
|
19800
19800
|
exports2.stringifyDocument = stringifyDocument;
|
|
19801
19801
|
});
|
|
19802
19802
|
|
|
19803
|
-
//
|
|
19803
|
+
// ../../switchroom-sec-1417/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/doc/Document.js
|
|
19804
19804
|
var require_Document = __commonJS((exports2) => {
|
|
19805
19805
|
var Alias = require_Alias();
|
|
19806
19806
|
var Collection = require_Collection();
|
|
@@ -20035,7 +20035,7 @@ var require_Document = __commonJS((exports2) => {
|
|
|
20035
20035
|
exports2.Document = Document;
|
|
20036
20036
|
});
|
|
20037
20037
|
|
|
20038
|
-
//
|
|
20038
|
+
// ../../switchroom-sec-1417/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/errors.js
|
|
20039
20039
|
var require_errors = __commonJS((exports2) => {
|
|
20040
20040
|
class YAMLError extends Error {
|
|
20041
20041
|
constructor(name, pos, code, message) {
|
|
@@ -20100,7 +20100,7 @@ ${pointer}
|
|
|
20100
20100
|
exports2.prettifyError = prettifyError;
|
|
20101
20101
|
});
|
|
20102
20102
|
|
|
20103
|
-
//
|
|
20103
|
+
// ../../switchroom-sec-1417/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-props.js
|
|
20104
20104
|
var require_resolve_props = __commonJS((exports2) => {
|
|
20105
20105
|
function resolveProps(tokens, { flow, indicator, next, offset, onError, parentIndent, startOnNewline }) {
|
|
20106
20106
|
let spaceBefore = false;
|
|
@@ -20230,7 +20230,7 @@ var require_resolve_props = __commonJS((exports2) => {
|
|
|
20230
20230
|
exports2.resolveProps = resolveProps;
|
|
20231
20231
|
});
|
|
20232
20232
|
|
|
20233
|
-
//
|
|
20233
|
+
// ../../switchroom-sec-1417/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/util-contains-newline.js
|
|
20234
20234
|
var require_util_contains_newline = __commonJS((exports2) => {
|
|
20235
20235
|
function containsNewline(key) {
|
|
20236
20236
|
if (!key)
|
|
@@ -20270,7 +20270,7 @@ var require_util_contains_newline = __commonJS((exports2) => {
|
|
|
20270
20270
|
exports2.containsNewline = containsNewline;
|
|
20271
20271
|
});
|
|
20272
20272
|
|
|
20273
|
-
//
|
|
20273
|
+
// ../../switchroom-sec-1417/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/util-flow-indent-check.js
|
|
20274
20274
|
var require_util_flow_indent_check = __commonJS((exports2) => {
|
|
20275
20275
|
var utilContainsNewline = require_util_contains_newline();
|
|
20276
20276
|
function flowIndentCheck(indent, fc, onError) {
|
|
@@ -20285,7 +20285,7 @@ var require_util_flow_indent_check = __commonJS((exports2) => {
|
|
|
20285
20285
|
exports2.flowIndentCheck = flowIndentCheck;
|
|
20286
20286
|
});
|
|
20287
20287
|
|
|
20288
|
-
//
|
|
20288
|
+
// ../../switchroom-sec-1417/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/util-map-includes.js
|
|
20289
20289
|
var require_util_map_includes = __commonJS((exports2) => {
|
|
20290
20290
|
var identity = require_identity();
|
|
20291
20291
|
function mapIncludes(ctx, items, search) {
|
|
@@ -20298,7 +20298,7 @@ var require_util_map_includes = __commonJS((exports2) => {
|
|
|
20298
20298
|
exports2.mapIncludes = mapIncludes;
|
|
20299
20299
|
});
|
|
20300
20300
|
|
|
20301
|
-
//
|
|
20301
|
+
// ../../switchroom-sec-1417/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-block-map.js
|
|
20302
20302
|
var require_resolve_block_map = __commonJS((exports2) => {
|
|
20303
20303
|
var Pair = require_Pair();
|
|
20304
20304
|
var YAMLMap = require_YAMLMap();
|
|
@@ -20405,7 +20405,7 @@ var require_resolve_block_map = __commonJS((exports2) => {
|
|
|
20405
20405
|
exports2.resolveBlockMap = resolveBlockMap;
|
|
20406
20406
|
});
|
|
20407
20407
|
|
|
20408
|
-
//
|
|
20408
|
+
// ../../switchroom-sec-1417/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-block-seq.js
|
|
20409
20409
|
var require_resolve_block_seq = __commonJS((exports2) => {
|
|
20410
20410
|
var YAMLSeq = require_YAMLSeq();
|
|
20411
20411
|
var resolveProps = require_resolve_props();
|
|
@@ -20453,7 +20453,7 @@ var require_resolve_block_seq = __commonJS((exports2) => {
|
|
|
20453
20453
|
exports2.resolveBlockSeq = resolveBlockSeq;
|
|
20454
20454
|
});
|
|
20455
20455
|
|
|
20456
|
-
//
|
|
20456
|
+
// ../../switchroom-sec-1417/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-end.js
|
|
20457
20457
|
var require_resolve_end = __commonJS((exports2) => {
|
|
20458
20458
|
function resolveEnd(end, offset, reqSpace, onError) {
|
|
20459
20459
|
let comment = "";
|
|
@@ -20493,7 +20493,7 @@ var require_resolve_end = __commonJS((exports2) => {
|
|
|
20493
20493
|
exports2.resolveEnd = resolveEnd;
|
|
20494
20494
|
});
|
|
20495
20495
|
|
|
20496
|
-
//
|
|
20496
|
+
// ../../switchroom-sec-1417/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-flow-collection.js
|
|
20497
20497
|
var require_resolve_flow_collection = __commonJS((exports2) => {
|
|
20498
20498
|
var identity = require_identity();
|
|
20499
20499
|
var Pair = require_Pair();
|
|
@@ -20684,7 +20684,7 @@ var require_resolve_flow_collection = __commonJS((exports2) => {
|
|
|
20684
20684
|
exports2.resolveFlowCollection = resolveFlowCollection;
|
|
20685
20685
|
});
|
|
20686
20686
|
|
|
20687
|
-
//
|
|
20687
|
+
// ../../switchroom-sec-1417/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/compose-collection.js
|
|
20688
20688
|
var require_compose_collection = __commonJS((exports2) => {
|
|
20689
20689
|
var identity = require_identity();
|
|
20690
20690
|
var Scalar = require_Scalar();
|
|
@@ -20746,7 +20746,7 @@ var require_compose_collection = __commonJS((exports2) => {
|
|
|
20746
20746
|
exports2.composeCollection = composeCollection;
|
|
20747
20747
|
});
|
|
20748
20748
|
|
|
20749
|
-
//
|
|
20749
|
+
// ../../switchroom-sec-1417/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-block-scalar.js
|
|
20750
20750
|
var require_resolve_block_scalar = __commonJS((exports2) => {
|
|
20751
20751
|
var Scalar = require_Scalar();
|
|
20752
20752
|
function resolveBlockScalar(ctx, scalar, onError) {
|
|
@@ -20939,7 +20939,7 @@ var require_resolve_block_scalar = __commonJS((exports2) => {
|
|
|
20939
20939
|
exports2.resolveBlockScalar = resolveBlockScalar;
|
|
20940
20940
|
});
|
|
20941
20941
|
|
|
20942
|
-
//
|
|
20942
|
+
// ../../switchroom-sec-1417/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-flow-scalar.js
|
|
20943
20943
|
var require_resolve_flow_scalar = __commonJS((exports2) => {
|
|
20944
20944
|
var Scalar = require_Scalar();
|
|
20945
20945
|
var resolveEnd = require_resolve_end();
|
|
@@ -21155,7 +21155,7 @@ var require_resolve_flow_scalar = __commonJS((exports2) => {
|
|
|
21155
21155
|
exports2.resolveFlowScalar = resolveFlowScalar;
|
|
21156
21156
|
});
|
|
21157
21157
|
|
|
21158
|
-
//
|
|
21158
|
+
// ../../switchroom-sec-1417/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/compose-scalar.js
|
|
21159
21159
|
var require_compose_scalar = __commonJS((exports2) => {
|
|
21160
21160
|
var identity = require_identity();
|
|
21161
21161
|
var Scalar = require_Scalar();
|
|
@@ -21233,7 +21233,7 @@ var require_compose_scalar = __commonJS((exports2) => {
|
|
|
21233
21233
|
exports2.composeScalar = composeScalar;
|
|
21234
21234
|
});
|
|
21235
21235
|
|
|
21236
|
-
//
|
|
21236
|
+
// ../../switchroom-sec-1417/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/util-empty-scalar-position.js
|
|
21237
21237
|
var require_util_empty_scalar_position = __commonJS((exports2) => {
|
|
21238
21238
|
function emptyScalarPosition(offset, before, pos) {
|
|
21239
21239
|
if (before) {
|
|
@@ -21260,7 +21260,7 @@ var require_util_empty_scalar_position = __commonJS((exports2) => {
|
|
|
21260
21260
|
exports2.emptyScalarPosition = emptyScalarPosition;
|
|
21261
21261
|
});
|
|
21262
21262
|
|
|
21263
|
-
//
|
|
21263
|
+
// ../../switchroom-sec-1417/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/compose-node.js
|
|
21264
21264
|
var require_compose_node = __commonJS((exports2) => {
|
|
21265
21265
|
var Alias = require_Alias();
|
|
21266
21266
|
var identity = require_identity();
|
|
@@ -21363,7 +21363,7 @@ var require_compose_node = __commonJS((exports2) => {
|
|
|
21363
21363
|
exports2.composeNode = composeNode;
|
|
21364
21364
|
});
|
|
21365
21365
|
|
|
21366
|
-
//
|
|
21366
|
+
// ../../switchroom-sec-1417/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/compose-doc.js
|
|
21367
21367
|
var require_compose_doc = __commonJS((exports2) => {
|
|
21368
21368
|
var Document = require_Document();
|
|
21369
21369
|
var composeNode = require_compose_node();
|
|
@@ -21403,7 +21403,7 @@ var require_compose_doc = __commonJS((exports2) => {
|
|
|
21403
21403
|
exports2.composeDoc = composeDoc;
|
|
21404
21404
|
});
|
|
21405
21405
|
|
|
21406
|
-
//
|
|
21406
|
+
// ../../switchroom-sec-1417/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/composer.js
|
|
21407
21407
|
var require_composer2 = __commonJS((exports2) => {
|
|
21408
21408
|
var node_process = __require("process");
|
|
21409
21409
|
var directives = require_directives();
|
|
@@ -21592,7 +21592,7 @@ ${end.comment}` : end.comment;
|
|
|
21592
21592
|
exports2.Composer = Composer;
|
|
21593
21593
|
});
|
|
21594
21594
|
|
|
21595
|
-
//
|
|
21595
|
+
// ../../switchroom-sec-1417/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/parse/cst-scalar.js
|
|
21596
21596
|
var require_cst_scalar = __commonJS((exports2) => {
|
|
21597
21597
|
var resolveBlockScalar = require_resolve_block_scalar();
|
|
21598
21598
|
var resolveFlowScalar = require_resolve_flow_scalar();
|
|
@@ -21782,7 +21782,7 @@ var require_cst_scalar = __commonJS((exports2) => {
|
|
|
21782
21782
|
exports2.setScalarValue = setScalarValue;
|
|
21783
21783
|
});
|
|
21784
21784
|
|
|
21785
|
-
//
|
|
21785
|
+
// ../../switchroom-sec-1417/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/parse/cst-stringify.js
|
|
21786
21786
|
var require_cst_stringify = __commonJS((exports2) => {
|
|
21787
21787
|
var stringify = (cst) => ("type" in cst) ? stringifyToken(cst) : stringifyItem(cst);
|
|
21788
21788
|
function stringifyToken(token) {
|
|
@@ -21840,7 +21840,7 @@ var require_cst_stringify = __commonJS((exports2) => {
|
|
|
21840
21840
|
exports2.stringify = stringify;
|
|
21841
21841
|
});
|
|
21842
21842
|
|
|
21843
|
-
//
|
|
21843
|
+
// ../../switchroom-sec-1417/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/parse/cst-visit.js
|
|
21844
21844
|
var require_cst_visit = __commonJS((exports2) => {
|
|
21845
21845
|
var BREAK = Symbol("break visit");
|
|
21846
21846
|
var SKIP = Symbol("skip children");
|
|
@@ -21899,7 +21899,7 @@ var require_cst_visit = __commonJS((exports2) => {
|
|
|
21899
21899
|
exports2.visit = visit;
|
|
21900
21900
|
});
|
|
21901
21901
|
|
|
21902
|
-
//
|
|
21902
|
+
// ../../switchroom-sec-1417/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/parse/cst.js
|
|
21903
21903
|
var require_cst = __commonJS((exports2) => {
|
|
21904
21904
|
var cstScalar = require_cst_scalar();
|
|
21905
21905
|
var cstStringify = require_cst_stringify();
|
|
@@ -22000,7 +22000,7 @@ var require_cst = __commonJS((exports2) => {
|
|
|
22000
22000
|
exports2.tokenType = tokenType;
|
|
22001
22001
|
});
|
|
22002
22002
|
|
|
22003
|
-
//
|
|
22003
|
+
// ../../switchroom-sec-1417/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/parse/lexer.js
|
|
22004
22004
|
var require_lexer = __commonJS((exports2) => {
|
|
22005
22005
|
var cst = require_cst();
|
|
22006
22006
|
function isEmpty2(ch) {
|
|
@@ -22586,7 +22586,7 @@ var require_lexer = __commonJS((exports2) => {
|
|
|
22586
22586
|
exports2.Lexer = Lexer;
|
|
22587
22587
|
});
|
|
22588
22588
|
|
|
22589
|
-
//
|
|
22589
|
+
// ../../switchroom-sec-1417/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/parse/line-counter.js
|
|
22590
22590
|
var require_line_counter = __commonJS((exports2) => {
|
|
22591
22591
|
class LineCounter {
|
|
22592
22592
|
constructor() {
|
|
@@ -22614,7 +22614,7 @@ var require_line_counter = __commonJS((exports2) => {
|
|
|
22614
22614
|
exports2.LineCounter = LineCounter;
|
|
22615
22615
|
});
|
|
22616
22616
|
|
|
22617
|
-
//
|
|
22617
|
+
// ../../switchroom-sec-1417/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/parse/parser.js
|
|
22618
22618
|
var require_parser = __commonJS((exports2) => {
|
|
22619
22619
|
var node_process = __require("process");
|
|
22620
22620
|
var cst = require_cst();
|
|
@@ -23463,7 +23463,7 @@ var require_parser = __commonJS((exports2) => {
|
|
|
23463
23463
|
exports2.Parser = Parser;
|
|
23464
23464
|
});
|
|
23465
23465
|
|
|
23466
|
-
//
|
|
23466
|
+
// ../../switchroom-sec-1417/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/public-api.js
|
|
23467
23467
|
var require_public_api = __commonJS((exports2) => {
|
|
23468
23468
|
var composer = require_composer2();
|
|
23469
23469
|
var Document = require_Document();
|
|
@@ -23557,7 +23557,7 @@ var require_public_api = __commonJS((exports2) => {
|
|
|
23557
23557
|
exports2.stringify = stringify;
|
|
23558
23558
|
});
|
|
23559
23559
|
|
|
23560
|
-
//
|
|
23560
|
+
// ../../switchroom-sec-1417/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/index.js
|
|
23561
23561
|
var composer, Document, Schema, errors2, Alias, identity, Pair, Scalar, YAMLMap, YAMLSeq, cst, lexer, lineCounter, parser, publicApi, visit, $Composer, $Document, $Schema, $YAMLError, $YAMLParseError, $YAMLWarning, $Alias, $isAlias, $isCollection, $isDocument, $isMap, $isNode, $isPair, $isScalar, $isSeq, $Pair, $Scalar, $YAMLMap, $YAMLSeq, $Lexer, $LineCounter, $Parser, $parse, $parseAllDocuments, $parseDocument, $stringify, $visit, $visitAsync;
|
|
23562
23562
|
var init_dist = __esm(() => {
|
|
23563
23563
|
composer = require_composer2();
|
|
@@ -23648,7 +23648,8 @@ var init_schema = __esm(() => {
|
|
|
23648
23648
|
recall: exports_external.object({
|
|
23649
23649
|
max_memories: exports_external.number().int().min(0).optional().describe("Cap on the number of memories injected into the prompt by " + "auto-recall, regardless of token budget. Plugin default is 12. " + "0 disables the cap (all memories Hindsight returns are injected)."),
|
|
23650
23650
|
cache_ttl_secs: exports_external.number().int().min(0).optional().describe("Per-session recall cache TTL in seconds. When > 0, identical " + "(prompt, bank) within the same session reuse the cached recall " + "result instead of round-tripping to Hindsight. 0 disables. " + "Default is 600 (10 min) for switchroom-managed agents."),
|
|
23651
|
-
min_overlap: exports_external.number().min(0).max(1).optional().describe("Minimum Jaccard token overlap [0.0\u20131.0] between the user " + "prompt and a memory's text for the memory to be injected. " + "Drops low-relevance matches before the count cap so weak hits " + "don't fill the slot on real queries. 0.0 disables (default \u2014 " + "current behaviour). Try 0.10\u20130.20 to start; observe the " + "`overlap_dropped` field via `switchroom memory recall-log`.")
|
|
23651
|
+
min_overlap: exports_external.number().min(0).max(1).optional().describe("Minimum Jaccard token overlap [0.0\u20131.0] between the user " + "prompt and a memory's text for the memory to be injected. " + "Drops low-relevance matches before the count cap so weak hits " + "don't fill the slot on real queries. 0.0 disables (default \u2014 " + "current behaviour). Try 0.10\u20130.20 to start; observe the " + "`overlap_dropped` field via `switchroom memory recall-log`."),
|
|
23652
|
+
topic_filter_mode: exports_external.enum(["soft-preamble", "hard-filter"]).optional().describe("Supergroup-mode cross-topic memory behaviour. Default " + "(unset) \u2192 soft-preamble: recall returns memories from all " + "topics, and a 'Current topic: \u2026' preamble tells the model " + "to self-scope. hard-filter: drop any recalled memory whose " + "metadata.thread_id differs from the active inbound's topic. " + "Flip to hard-filter when the recall_log shows binding " + "failures (model surfacing the right memory but applying " + "it to the wrong topic).")
|
|
23652
23653
|
}).optional().describe("Auto-recall tuning knobs")
|
|
23653
23654
|
}).optional();
|
|
23654
23655
|
HookEntrySchema = exports_external.object({
|
|
@@ -25797,7 +25798,7 @@ function deriveSlug(inputs, existing) {
|
|
|
25797
25798
|
return `${base}_${n}`;
|
|
25798
25799
|
}
|
|
25799
25800
|
|
|
25800
|
-
//
|
|
25801
|
+
// ../../switchroom-sec-1417/node_modules/.bun/boundary@2.0.0/node_modules/boundary/lib/index.js
|
|
25801
25802
|
var require_lib = __commonJS((exports2) => {
|
|
25802
25803
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
25803
25804
|
exports2.binarySearch = exports2.upperBound = exports2.lowerBound = exports2.compare = undefined;
|
|
@@ -25844,7 +25845,7 @@ var require_lib = __commonJS((exports2) => {
|
|
|
25844
25845
|
exports2.binarySearch = binarySearch;
|
|
25845
25846
|
});
|
|
25846
25847
|
|
|
25847
|
-
//
|
|
25848
|
+
// ../../switchroom-sec-1417/node_modules/.bun/structured-source@4.0.0/node_modules/structured-source/lib/structured-source.js
|
|
25848
25849
|
var require_structured_source = __commonJS((exports2) => {
|
|
25849
25850
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
25850
25851
|
exports2.StructuredSource = undefined;
|
|
@@ -25899,13 +25900,13 @@ var require_structured_source = __commonJS((exports2) => {
|
|
|
25899
25900
|
}
|
|
25900
25901
|
exports2.StructuredSource = StructuredSource;
|
|
25901
25902
|
});
|
|
25902
|
-
//
|
|
25903
|
+
// ../../switchroom-sec-1417/node_modules/.bun/@secretlint+core@12.2.0/node_modules/@secretlint/core/module/SecretLintSourceCodeImpl.js
|
|
25903
25904
|
var import_structured_source;
|
|
25904
25905
|
var init_SecretLintSourceCodeImpl = __esm(() => {
|
|
25905
25906
|
import_structured_source = __toESM(require_structured_source(), 1);
|
|
25906
25907
|
});
|
|
25907
25908
|
|
|
25908
|
-
//
|
|
25909
|
+
// ../../switchroom-sec-1417/node_modules/.bun/@secretlint+core@12.2.0/node_modules/@secretlint/core/module/helper/promise-event-emitter.js
|
|
25909
25910
|
class EventEmitter {
|
|
25910
25911
|
#listeners = new Map;
|
|
25911
25912
|
on(type, listener) {
|
|
@@ -25944,9 +25945,9 @@ class EventEmitter {
|
|
|
25944
25945
|
return Array.from(this.#listeners.get(type) ?? []);
|
|
25945
25946
|
}
|
|
25946
25947
|
}
|
|
25947
|
-
//
|
|
25948
|
+
// ../../switchroom-sec-1417/node_modules/.bun/@secretlint+core@12.2.0/node_modules/@secretlint/core/module/RuleContext.js
|
|
25948
25949
|
var init_RuleContext = () => {};
|
|
25949
|
-
//
|
|
25950
|
+
// ../../switchroom-sec-1417/node_modules/.bun/@secretlint+profiler@12.2.0/node_modules/@secretlint/profiler/module/index.js
|
|
25950
25951
|
class SecretLintProfiler {
|
|
25951
25952
|
perf;
|
|
25952
25953
|
entries = [];
|
|
@@ -26003,7 +26004,7 @@ class SecretLintProfiler {
|
|
|
26003
26004
|
}
|
|
26004
26005
|
}
|
|
26005
26006
|
|
|
26006
|
-
//
|
|
26007
|
+
// ../../switchroom-sec-1417/node_modules/.bun/@secretlint+profiler@12.2.0/node_modules/@secretlint/profiler/module/node.js
|
|
26007
26008
|
import perf_hooks from "node:perf_hooks";
|
|
26008
26009
|
|
|
26009
26010
|
class NullPerformanceObserver {
|
|
@@ -26018,19 +26019,19 @@ var init_node = __esm(() => {
|
|
|
26018
26019
|
});
|
|
26019
26020
|
});
|
|
26020
26021
|
|
|
26021
|
-
//
|
|
26022
|
+
// ../../switchroom-sec-1417/node_modules/.bun/@secretlint+core@12.2.0/node_modules/@secretlint/core/module/RunningEvents.js
|
|
26022
26023
|
var init_RunningEvents = __esm(() => {
|
|
26023
26024
|
init_node();
|
|
26024
26025
|
});
|
|
26025
26026
|
|
|
26026
|
-
//
|
|
26027
|
+
// ../../switchroom-sec-1417/node_modules/.bun/@secretlint+core@12.2.0/node_modules/@secretlint/core/module/RulePresetContext.js
|
|
26027
26028
|
var init_RulePresetContext = __esm(() => {
|
|
26028
26029
|
init_RuleContext();
|
|
26029
26030
|
});
|
|
26030
|
-
//
|
|
26031
|
+
// ../../switchroom-sec-1417/node_modules/.bun/@secretlint+core@12.2.0/node_modules/@secretlint/core/module/messages/index.js
|
|
26031
26032
|
var init_messages = () => {};
|
|
26032
26033
|
|
|
26033
|
-
//
|
|
26034
|
+
// ../../switchroom-sec-1417/node_modules/.bun/@secretlint+core@12.2.0/node_modules/@secretlint/core/module/index.js
|
|
26034
26035
|
var import_debug, debug;
|
|
26035
26036
|
var init_module = __esm(() => {
|
|
26036
26037
|
init_SecretLintSourceCodeImpl();
|
|
@@ -26043,7 +26044,7 @@ var init_module = __esm(() => {
|
|
|
26043
26044
|
debug = import_debug.default("@secretlint/core");
|
|
26044
26045
|
});
|
|
26045
26046
|
|
|
26046
|
-
//
|
|
26047
|
+
// ../../switchroom-sec-1417/node_modules/.bun/@secretlint+secretlint-rule-preset-recommend@12.2.0/node_modules/@secretlint/secretlint-rule-preset-recommend/module/index.js
|
|
26047
26048
|
function requireLodash_uniq() {
|
|
26048
26049
|
if (hasRequiredLodash_uniq)
|
|
26049
26050
|
return lodash_uniq;
|
|
@@ -27730,7 +27731,7 @@ var init_secretlint_source = __esm(() => {
|
|
|
27730
27731
|
function escapeHtml8(s) {
|
|
27731
27732
|
return s.replace(/[&<>]/g, (c) => ({ "&": "&", "<": "<", ">": ">" })[c]);
|
|
27732
27733
|
}
|
|
27733
|
-
function
|
|
27734
|
+
function truncate5(s, n) {
|
|
27734
27735
|
return s.length > n ? s.slice(0, n - 1) + "\u2026" : s;
|
|
27735
27736
|
}
|
|
27736
27737
|
|
|
@@ -27833,7 +27834,7 @@ function writeQuotaCache(result, opts = {}) {
|
|
|
27833
27834
|
if (result.status === "fail")
|
|
27834
27835
|
return;
|
|
27835
27836
|
const path = opts.path ?? defaultCachePath();
|
|
27836
|
-
const ttlMs = opts.ttlMs ?? (result.rateLimited ? RATE_LIMIT_TTL_MS :
|
|
27837
|
+
const ttlMs = opts.ttlMs ?? (result.rateLimited ? RATE_LIMIT_TTL_MS : DEFAULT_TTL_MS4);
|
|
27837
27838
|
const now = opts.now ?? Date.now();
|
|
27838
27839
|
const entry = {
|
|
27839
27840
|
capturedAt: new Date(now).toISOString(),
|
|
@@ -27845,9 +27846,9 @@ function writeQuotaCache(result, opts = {}) {
|
|
|
27845
27846
|
writeFileSync13(path, JSON.stringify(entry, null, 2), { mode: 384 });
|
|
27846
27847
|
} catch {}
|
|
27847
27848
|
}
|
|
27848
|
-
var
|
|
27849
|
+
var DEFAULT_TTL_MS4, RATE_LIMIT_TTL_MS;
|
|
27849
27850
|
var init_quota_cache = __esm(() => {
|
|
27850
|
-
|
|
27851
|
+
DEFAULT_TTL_MS4 = 5 * 60 * 1000;
|
|
27851
27852
|
RATE_LIMIT_TTL_MS = 30 * 1000;
|
|
27852
27853
|
});
|
|
27853
27854
|
|
|
@@ -32944,7 +32945,7 @@ function clear(key) {
|
|
|
32944
32945
|
state.delete(key);
|
|
32945
32946
|
}
|
|
32946
32947
|
|
|
32947
|
-
//
|
|
32948
|
+
// ../../switchroom-sec-1417/node_modules/.bun/posthog-node@5.29.2/node_modules/posthog-node/dist/extensions/error-tracking/modifiers/module.node.mjs
|
|
32948
32949
|
import { dirname as dirname2, posix, sep as sep2 } from "path";
|
|
32949
32950
|
function createModulerModifier() {
|
|
32950
32951
|
const getModuleFromFileName = createGetModuleFromFilename();
|
|
@@ -32980,7 +32981,7 @@ function normalizeWindowsPath(path) {
|
|
|
32980
32981
|
return path.replace(/^[A-Z]:/, "").replace(/\\/g, "/");
|
|
32981
32982
|
}
|
|
32982
32983
|
|
|
32983
|
-
//
|
|
32984
|
+
// ../../switchroom-sec-1417/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/featureFlagUtils.mjs
|
|
32984
32985
|
var normalizeFlagsResponse = (flagsResponse) => {
|
|
32985
32986
|
if ("flags" in flagsResponse) {
|
|
32986
32987
|
const featureFlags = getFlagValuesFromFlags(flagsResponse.flags);
|
|
@@ -33051,7 +33052,7 @@ var parsePayload = (response) => {
|
|
|
33051
33052
|
}
|
|
33052
33053
|
};
|
|
33053
33054
|
|
|
33054
|
-
//
|
|
33055
|
+
// ../../switchroom-sec-1417/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/gzip.mjs
|
|
33055
33056
|
function isGzipSupported() {
|
|
33056
33057
|
return "CompressionStream" in globalThis;
|
|
33057
33058
|
}
|
|
@@ -33071,7 +33072,7 @@ async function gzipCompress(input, isDebug = true) {
|
|
|
33071
33072
|
}
|
|
33072
33073
|
}
|
|
33073
33074
|
|
|
33074
|
-
//
|
|
33075
|
+
// ../../switchroom-sec-1417/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/vendor/uuidv7.mjs
|
|
33075
33076
|
/*! For license information please see uuidv7.mjs.LICENSE.txt */
|
|
33076
33077
|
var DIGITS = "0123456789abcdef";
|
|
33077
33078
|
|
|
@@ -33249,7 +33250,7 @@ var defaultGenerator;
|
|
|
33249
33250
|
var uuidv7 = () => uuidv7obj().toString();
|
|
33250
33251
|
var uuidv7obj = () => (defaultGenerator || (defaultGenerator = new V7Generator)).generate();
|
|
33251
33252
|
|
|
33252
|
-
//
|
|
33253
|
+
// ../../switchroom-sec-1417/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/types.mjs
|
|
33253
33254
|
var types_PostHogPersistedProperty = /* @__PURE__ */ function(PostHogPersistedProperty) {
|
|
33254
33255
|
PostHogPersistedProperty["AnonymousId"] = "anonymous_id";
|
|
33255
33256
|
PostHogPersistedProperty["DistinctId"] = "distinct_id";
|
|
@@ -33282,7 +33283,7 @@ var types_PostHogPersistedProperty = /* @__PURE__ */ function(PostHogPersistedPr
|
|
|
33282
33283
|
return PostHogPersistedProperty;
|
|
33283
33284
|
}({});
|
|
33284
33285
|
|
|
33285
|
-
//
|
|
33286
|
+
// ../../switchroom-sec-1417/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/utils/bot-detection.mjs
|
|
33286
33287
|
var DEFAULT_BLOCKED_UA_STRS = [
|
|
33287
33288
|
"amazonbot",
|
|
33288
33289
|
"amazonproductbot",
|
|
@@ -33371,7 +33372,7 @@ var isBlockedUA = function(ua, customBlockedUserAgents = []) {
|
|
|
33371
33372
|
return uaLower.indexOf(blockedUaLower) !== -1;
|
|
33372
33373
|
});
|
|
33373
33374
|
};
|
|
33374
|
-
//
|
|
33375
|
+
// ../../switchroom-sec-1417/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/utils/type-utils.mjs
|
|
33375
33376
|
var nativeIsArray = Array.isArray;
|
|
33376
33377
|
var ObjProto = Object.prototype;
|
|
33377
33378
|
var type_utils_hasOwnProperty = ObjProto.hasOwnProperty;
|
|
@@ -33408,7 +33409,7 @@ function isInstanceOf(candidate, base) {
|
|
|
33408
33409
|
}
|
|
33409
33410
|
}
|
|
33410
33411
|
|
|
33411
|
-
//
|
|
33412
|
+
// ../../switchroom-sec-1417/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/utils/number-utils.mjs
|
|
33412
33413
|
function clampToRange(value, min, max, logger, fallbackValue) {
|
|
33413
33414
|
if (min > max) {
|
|
33414
33415
|
logger.warn("min cannot be greater than max.");
|
|
@@ -33428,7 +33429,7 @@ function clampToRange(value, min, max, logger, fallbackValue) {
|
|
|
33428
33429
|
return clampToRange(fallbackValue || max, min, max, logger);
|
|
33429
33430
|
}
|
|
33430
33431
|
|
|
33431
|
-
//
|
|
33432
|
+
// ../../switchroom-sec-1417/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/utils/bucketed-rate-limiter.mjs
|
|
33432
33433
|
var ONE_DAY_IN_MS = 86400000;
|
|
33433
33434
|
|
|
33434
33435
|
class BucketedRateLimiter {
|
|
@@ -33472,7 +33473,7 @@ class BucketedRateLimiter {
|
|
|
33472
33473
|
this._buckets = {};
|
|
33473
33474
|
}
|
|
33474
33475
|
}
|
|
33475
|
-
//
|
|
33476
|
+
// ../../switchroom-sec-1417/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/utils/promise-queue.mjs
|
|
33476
33477
|
class PromiseQueue {
|
|
33477
33478
|
add(promise) {
|
|
33478
33479
|
const promiseUUID = uuidv7();
|
|
@@ -33498,7 +33499,7 @@ class PromiseQueue {
|
|
|
33498
33499
|
this.promiseByIds = {};
|
|
33499
33500
|
}
|
|
33500
33501
|
}
|
|
33501
|
-
//
|
|
33502
|
+
// ../../switchroom-sec-1417/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/utils/logger.mjs
|
|
33502
33503
|
function createConsole(consoleLike = console) {
|
|
33503
33504
|
const lockedMethods = {
|
|
33504
33505
|
log: consoleLike.log.bind(consoleLike),
|
|
@@ -33536,7 +33537,7 @@ var passThrough = (fn) => fn();
|
|
|
33536
33537
|
function createLogger(prefix, maybeCall = passThrough) {
|
|
33537
33538
|
return _createLogger(prefix, maybeCall, createConsole());
|
|
33538
33539
|
}
|
|
33539
|
-
//
|
|
33540
|
+
// ../../switchroom-sec-1417/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/utils/user-agent-utils.mjs
|
|
33540
33541
|
var MOBILE = "Mobile";
|
|
33541
33542
|
var IOS = "iOS";
|
|
33542
33543
|
var ANDROID = "Android";
|
|
@@ -33793,7 +33794,7 @@ var osMatchers = [
|
|
|
33793
33794
|
]
|
|
33794
33795
|
];
|
|
33795
33796
|
|
|
33796
|
-
//
|
|
33797
|
+
// ../../switchroom-sec-1417/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/utils/index.mjs
|
|
33797
33798
|
var STRING_FORMAT = "utf8";
|
|
33798
33799
|
function assert(truthyValue, message) {
|
|
33799
33800
|
if (!truthyValue || typeof truthyValue != "string" || isEmpty(truthyValue))
|
|
@@ -33841,7 +33842,7 @@ function allSettled(promises) {
|
|
|
33841
33842
|
reason
|
|
33842
33843
|
}))));
|
|
33843
33844
|
}
|
|
33844
|
-
//
|
|
33845
|
+
// ../../switchroom-sec-1417/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/eventemitter.mjs
|
|
33845
33846
|
class SimpleEventEmitter {
|
|
33846
33847
|
constructor() {
|
|
33847
33848
|
this.events = {};
|
|
@@ -33863,7 +33864,7 @@ class SimpleEventEmitter {
|
|
|
33863
33864
|
}
|
|
33864
33865
|
}
|
|
33865
33866
|
|
|
33866
|
-
//
|
|
33867
|
+
// ../../switchroom-sec-1417/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/posthog-core-stateless.mjs
|
|
33867
33868
|
class PostHogFetchHttpError extends Error {
|
|
33868
33869
|
constructor(response, reqByteLength) {
|
|
33869
33870
|
super("HTTP error while fetching PostHog: status=" + response.status + ", reqByteLength=" + reqByteLength), this.response = response, this.reqByteLength = reqByteLength, this.name = "PostHogFetchHttpError";
|
|
@@ -34578,7 +34579,7 @@ class PostHogCoreStateless {
|
|
|
34578
34579
|
return this.shutdownPromise;
|
|
34579
34580
|
}
|
|
34580
34581
|
}
|
|
34581
|
-
//
|
|
34582
|
+
// ../../switchroom-sec-1417/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/index.mjs
|
|
34582
34583
|
var exports_error_tracking = {};
|
|
34583
34584
|
__export(exports_error_tracking, {
|
|
34584
34585
|
winjsStackLineParser: () => winjsStackLineParser,
|
|
@@ -34602,7 +34603,7 @@ __export(exports_error_tracking, {
|
|
|
34602
34603
|
DOMExceptionCoercer: () => DOMExceptionCoercer
|
|
34603
34604
|
});
|
|
34604
34605
|
|
|
34605
|
-
//
|
|
34606
|
+
// ../../switchroom-sec-1417/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/chunk-ids.mjs
|
|
34606
34607
|
var parsedStackResults;
|
|
34607
34608
|
var lastKeysCount;
|
|
34608
34609
|
var cachedFilenameChunkIds;
|
|
@@ -34641,7 +34642,7 @@ function getFilenameToChunkIdMap(stackParser) {
|
|
|
34641
34642
|
return cachedFilenameChunkIds;
|
|
34642
34643
|
}
|
|
34643
34644
|
|
|
34644
|
-
//
|
|
34645
|
+
// ../../switchroom-sec-1417/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/error-properties-builder.mjs
|
|
34645
34646
|
var MAX_CAUSE_RECURSION = 4;
|
|
34646
34647
|
|
|
34647
34648
|
class ErrorPropertiesBuilder {
|
|
@@ -34763,7 +34764,7 @@ class ErrorPropertiesBuilder {
|
|
|
34763
34764
|
return context;
|
|
34764
34765
|
}
|
|
34765
34766
|
}
|
|
34766
|
-
//
|
|
34767
|
+
// ../../switchroom-sec-1417/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/parsers/base.mjs
|
|
34767
34768
|
var UNKNOWN_FUNCTION = "?";
|
|
34768
34769
|
function createFrame(platform, filename, func, lineno, colno) {
|
|
34769
34770
|
const frame = {
|
|
@@ -34779,7 +34780,7 @@ function createFrame(platform, filename, func, lineno, colno) {
|
|
|
34779
34780
|
return frame;
|
|
34780
34781
|
}
|
|
34781
34782
|
|
|
34782
|
-
//
|
|
34783
|
+
// ../../switchroom-sec-1417/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/parsers/safari.mjs
|
|
34783
34784
|
var extractSafariExtensionDetails = (func, filename) => {
|
|
34784
34785
|
const isSafariExtension = func.indexOf("safari-extension") !== -1;
|
|
34785
34786
|
const isSafariWebExtension = func.indexOf("safari-web-extension") !== -1;
|
|
@@ -34792,7 +34793,7 @@ var extractSafariExtensionDetails = (func, filename) => {
|
|
|
34792
34793
|
];
|
|
34793
34794
|
};
|
|
34794
34795
|
|
|
34795
|
-
//
|
|
34796
|
+
// ../../switchroom-sec-1417/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/parsers/chrome.mjs
|
|
34796
34797
|
var chromeRegexNoFnName = /^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i;
|
|
34797
34798
|
var chromeRegex = /^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i;
|
|
34798
34799
|
var chromeEvalRegex = /\((\S*)(?::(\d+))(?::(\d+))\)/;
|
|
@@ -34818,7 +34819,7 @@ var chromeStackLineParser = (line, platform) => {
|
|
|
34818
34819
|
}
|
|
34819
34820
|
};
|
|
34820
34821
|
|
|
34821
|
-
//
|
|
34822
|
+
// ../../switchroom-sec-1417/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/parsers/gecko.mjs
|
|
34822
34823
|
var geckoREgex = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i;
|
|
34823
34824
|
var geckoEvalRegex = /(\S+) line (\d+)(?: > eval line \d+)* > eval/i;
|
|
34824
34825
|
var geckoStackLineParser = (line, platform) => {
|
|
@@ -34841,14 +34842,14 @@ var geckoStackLineParser = (line, platform) => {
|
|
|
34841
34842
|
}
|
|
34842
34843
|
};
|
|
34843
34844
|
|
|
34844
|
-
//
|
|
34845
|
+
// ../../switchroom-sec-1417/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/parsers/winjs.mjs
|
|
34845
34846
|
var winjsRegex = /^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i;
|
|
34846
34847
|
var winjsStackLineParser = (line, platform) => {
|
|
34847
34848
|
const parts = winjsRegex.exec(line);
|
|
34848
34849
|
return parts ? createFrame(platform, parts[2], parts[1] || UNKNOWN_FUNCTION, +parts[3], parts[4] ? +parts[4] : undefined) : undefined;
|
|
34849
34850
|
};
|
|
34850
34851
|
|
|
34851
|
-
//
|
|
34852
|
+
// ../../switchroom-sec-1417/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/parsers/opera.mjs
|
|
34852
34853
|
var opera10Regex = / line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i;
|
|
34853
34854
|
var opera10StackLineParser = (line, platform) => {
|
|
34854
34855
|
const parts = opera10Regex.exec(line);
|
|
@@ -34860,7 +34861,7 @@ var opera11StackLineParser = (line, platform) => {
|
|
|
34860
34861
|
return parts ? createFrame(platform, parts[5], parts[3] || parts[4] || UNKNOWN_FUNCTION, +parts[1], +parts[2]) : undefined;
|
|
34861
34862
|
};
|
|
34862
34863
|
|
|
34863
|
-
//
|
|
34864
|
+
// ../../switchroom-sec-1417/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/parsers/node.mjs
|
|
34864
34865
|
var FILENAME_MATCH = /^\s*[-]{4,}$/;
|
|
34865
34866
|
var FULL_MATCH = /at (?:async )?(?:(.+?)\s+\()?(?:(.+):(\d+):(\d+)?|([^)]+))\)?/;
|
|
34866
34867
|
var nodeStackLineParser = (line, platform) => {
|
|
@@ -34929,7 +34930,7 @@ function _parseIntOrUndefined(input) {
|
|
|
34929
34930
|
return parseInt(input || "", 10) || undefined;
|
|
34930
34931
|
}
|
|
34931
34932
|
|
|
34932
|
-
//
|
|
34933
|
+
// ../../switchroom-sec-1417/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/parsers/index.mjs
|
|
34933
34934
|
var WEBPACK_ERROR_REGEXP = /\(error: (.*)\)/;
|
|
34934
34935
|
var STACKTRACE_FRAME_LIMIT = 50;
|
|
34935
34936
|
function reverseAndStripFrames(stack) {
|
|
@@ -34974,7 +34975,7 @@ function createStackParser(platform, ...parsers) {
|
|
|
34974
34975
|
return reverseAndStripFrames(frames);
|
|
34975
34976
|
};
|
|
34976
34977
|
}
|
|
34977
|
-
//
|
|
34978
|
+
// ../../switchroom-sec-1417/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/coercers/dom-exception-coercer.mjs
|
|
34978
34979
|
class DOMExceptionCoercer {
|
|
34979
34980
|
match(err) {
|
|
34980
34981
|
return this.isDOMException(err) || this.isDOMError(err);
|
|
@@ -35004,7 +35005,7 @@ class DOMExceptionCoercer {
|
|
|
35004
35005
|
return isBuiltin(err, "DOMError");
|
|
35005
35006
|
}
|
|
35006
35007
|
}
|
|
35007
|
-
//
|
|
35008
|
+
// ../../switchroom-sec-1417/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/coercers/error-coercer.mjs
|
|
35008
35009
|
class ErrorCoercer {
|
|
35009
35010
|
match(err) {
|
|
35010
35011
|
return isPlainError(err);
|
|
@@ -35031,7 +35032,7 @@ class ErrorCoercer {
|
|
|
35031
35032
|
return err.stacktrace || err.stack || undefined;
|
|
35032
35033
|
}
|
|
35033
35034
|
}
|
|
35034
|
-
//
|
|
35035
|
+
// ../../switchroom-sec-1417/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/coercers/error-event-coercer.mjs
|
|
35035
35036
|
class ErrorEventCoercer {
|
|
35036
35037
|
constructor() {}
|
|
35037
35038
|
match(err) {
|
|
@@ -35049,7 +35050,7 @@ class ErrorEventCoercer {
|
|
|
35049
35050
|
return exceptionLike;
|
|
35050
35051
|
}
|
|
35051
35052
|
}
|
|
35052
|
-
//
|
|
35053
|
+
// ../../switchroom-sec-1417/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/coercers/string-coercer.mjs
|
|
35053
35054
|
var ERROR_TYPES_PATTERN = /^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;
|
|
35054
35055
|
|
|
35055
35056
|
class StringCoercer {
|
|
@@ -35079,7 +35080,7 @@ class StringCoercer {
|
|
|
35079
35080
|
];
|
|
35080
35081
|
}
|
|
35081
35082
|
}
|
|
35082
|
-
//
|
|
35083
|
+
// ../../switchroom-sec-1417/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/types.mjs
|
|
35083
35084
|
var severityLevels = [
|
|
35084
35085
|
"fatal",
|
|
35085
35086
|
"error",
|
|
@@ -35089,7 +35090,7 @@ var severityLevels = [
|
|
|
35089
35090
|
"debug"
|
|
35090
35091
|
];
|
|
35091
35092
|
|
|
35092
|
-
//
|
|
35093
|
+
// ../../switchroom-sec-1417/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/coercers/utils.mjs
|
|
35093
35094
|
function extractExceptionKeysForMessage(err, maxLength = 40) {
|
|
35094
35095
|
const keys = Object.keys(err);
|
|
35095
35096
|
keys.sort();
|
|
@@ -35106,7 +35107,7 @@ function extractExceptionKeysForMessage(err, maxLength = 40) {
|
|
|
35106
35107
|
return "";
|
|
35107
35108
|
}
|
|
35108
35109
|
|
|
35109
|
-
//
|
|
35110
|
+
// ../../switchroom-sec-1417/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/coercers/object-coercer.mjs
|
|
35110
35111
|
class ObjectCoercer {
|
|
35111
35112
|
match(candidate) {
|
|
35112
35113
|
return typeof candidate == "object" && candidate !== null;
|
|
@@ -35159,7 +35160,7 @@ class ObjectCoercer {
|
|
|
35159
35160
|
}
|
|
35160
35161
|
}
|
|
35161
35162
|
}
|
|
35162
|
-
//
|
|
35163
|
+
// ../../switchroom-sec-1417/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/coercers/event-coercer.mjs
|
|
35163
35164
|
class EventCoercer {
|
|
35164
35165
|
match(err) {
|
|
35165
35166
|
return isEvent(err);
|
|
@@ -35174,7 +35175,7 @@ class EventCoercer {
|
|
|
35174
35175
|
};
|
|
35175
35176
|
}
|
|
35176
35177
|
}
|
|
35177
|
-
//
|
|
35178
|
+
// ../../switchroom-sec-1417/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/coercers/primitive-coercer.mjs
|
|
35178
35179
|
class PrimitiveCoercer {
|
|
35179
35180
|
match(candidate) {
|
|
35180
35181
|
return isPrimitive(candidate);
|
|
@@ -35188,7 +35189,7 @@ class PrimitiveCoercer {
|
|
|
35188
35189
|
};
|
|
35189
35190
|
}
|
|
35190
35191
|
}
|
|
35191
|
-
//
|
|
35192
|
+
// ../../switchroom-sec-1417/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/coercers/promise-rejection-event.mjs
|
|
35192
35193
|
class PromiseRejectionEventCoercer {
|
|
35193
35194
|
match(err) {
|
|
35194
35195
|
return isBuiltin(err, "PromiseRejectionEvent") || this.isCustomEventWrappingRejection(err);
|
|
@@ -35224,7 +35225,7 @@ class PromiseRejectionEventCoercer {
|
|
|
35224
35225
|
return error;
|
|
35225
35226
|
}
|
|
35226
35227
|
}
|
|
35227
|
-
//
|
|
35228
|
+
// ../../switchroom-sec-1417/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/utils.mjs
|
|
35228
35229
|
class ReduceableCache {
|
|
35229
35230
|
constructor(_maxSize) {
|
|
35230
35231
|
this._maxSize = _maxSize;
|
|
@@ -35249,7 +35250,7 @@ class ReduceableCache {
|
|
|
35249
35250
|
}
|
|
35250
35251
|
}
|
|
35251
35252
|
}
|
|
35252
|
-
//
|
|
35253
|
+
// ../../switchroom-sec-1417/node_modules/.bun/posthog-node@5.29.2/node_modules/posthog-node/dist/extensions/error-tracking/modifiers/context-lines.node.mjs
|
|
35253
35254
|
import { createReadStream } from "node:fs";
|
|
35254
35255
|
import { createInterface } from "node:readline";
|
|
35255
35256
|
var LRU_FILE_CONTENTS_CACHE = new exports_error_tracking.ReduceableCache(25);
|
|
@@ -35467,7 +35468,7 @@ function snipLine(line, colno) {
|
|
|
35467
35468
|
return newLine;
|
|
35468
35469
|
}
|
|
35469
35470
|
|
|
35470
|
-
//
|
|
35471
|
+
// ../../switchroom-sec-1417/node_modules/.bun/posthog-node@5.29.2/node_modules/posthog-node/dist/extensions/error-tracking/autocapture.mjs
|
|
35471
35472
|
function makeUncaughtExceptionHandler(captureFn, onFatalFn) {
|
|
35472
35473
|
let calledFatalError = false;
|
|
35473
35474
|
return Object.assign((error) => {
|
|
@@ -35499,7 +35500,7 @@ function addUnhandledRejectionListener(captureFn) {
|
|
|
35499
35500
|
}));
|
|
35500
35501
|
}
|
|
35501
35502
|
|
|
35502
|
-
//
|
|
35503
|
+
// ../../switchroom-sec-1417/node_modules/.bun/posthog-node@5.29.2/node_modules/posthog-node/dist/extensions/error-tracking/index.mjs
|
|
35503
35504
|
var SHUTDOWN_TIMEOUT = 2000;
|
|
35504
35505
|
|
|
35505
35506
|
class ErrorTracking {
|
|
@@ -35568,10 +35569,10 @@ class ErrorTracking {
|
|
|
35568
35569
|
}
|
|
35569
35570
|
}
|
|
35570
35571
|
|
|
35571
|
-
//
|
|
35572
|
+
// ../../switchroom-sec-1417/node_modules/.bun/posthog-node@5.29.2/node_modules/posthog-node/dist/version.mjs
|
|
35572
35573
|
var version = "5.29.2";
|
|
35573
35574
|
|
|
35574
|
-
//
|
|
35575
|
+
// ../../switchroom-sec-1417/node_modules/.bun/posthog-node@5.29.2/node_modules/posthog-node/dist/types.mjs
|
|
35575
35576
|
var FeatureFlagError2 = {
|
|
35576
35577
|
ERRORS_WHILE_COMPUTING: "errors_while_computing_flags",
|
|
35577
35578
|
FLAG_MISSING: "flag_missing",
|
|
@@ -35579,7 +35580,7 @@ var FeatureFlagError2 = {
|
|
|
35579
35580
|
UNKNOWN_ERROR: "unknown_error"
|
|
35580
35581
|
};
|
|
35581
35582
|
|
|
35582
|
-
//
|
|
35583
|
+
// ../../switchroom-sec-1417/node_modules/.bun/posthog-node@5.29.2/node_modules/posthog-node/dist/extensions/feature-flags/crypto.mjs
|
|
35583
35584
|
async function hashSHA1(text) {
|
|
35584
35585
|
const subtle = globalThis.crypto?.subtle;
|
|
35585
35586
|
if (!subtle)
|
|
@@ -35589,7 +35590,7 @@ async function hashSHA1(text) {
|
|
|
35589
35590
|
return hashArray.map((byte) => byte.toString(16).padStart(2, "0")).join("");
|
|
35590
35591
|
}
|
|
35591
35592
|
|
|
35592
|
-
//
|
|
35593
|
+
// ../../switchroom-sec-1417/node_modules/.bun/posthog-node@5.29.2/node_modules/posthog-node/dist/extensions/feature-flags/feature-flags.mjs
|
|
35593
35594
|
var SIXTY_SECONDS = 60000;
|
|
35594
35595
|
var LONG_SCALE = 1152921504606847000;
|
|
35595
35596
|
var NULL_VALUES_ALLOWED_OPERATORS = [
|
|
@@ -36463,7 +36464,7 @@ function relativeDateParseForFeatureFlagMatching(value) {
|
|
|
36463
36464
|
}
|
|
36464
36465
|
}
|
|
36465
36466
|
|
|
36466
|
-
//
|
|
36467
|
+
// ../../switchroom-sec-1417/node_modules/.bun/posthog-node@5.29.2/node_modules/posthog-node/dist/storage-memory.mjs
|
|
36467
36468
|
class PostHogMemoryStorage {
|
|
36468
36469
|
getProperty(key) {
|
|
36469
36470
|
return this._memoryStorage[key];
|
|
@@ -36476,7 +36477,7 @@ class PostHogMemoryStorage {
|
|
|
36476
36477
|
}
|
|
36477
36478
|
}
|
|
36478
36479
|
|
|
36479
|
-
//
|
|
36480
|
+
// ../../switchroom-sec-1417/node_modules/.bun/posthog-node@5.29.2/node_modules/posthog-node/dist/client.mjs
|
|
36480
36481
|
var MINIMUM_POLLING_INTERVAL = 100;
|
|
36481
36482
|
var THIRTY_SECONDS = 30000;
|
|
36482
36483
|
var MAX_CACHE_SIZE = 50000;
|
|
@@ -37264,7 +37265,7 @@ class PostHogBackendClient extends PostHogCoreStateless {
|
|
|
37264
37265
|
}
|
|
37265
37266
|
}
|
|
37266
37267
|
|
|
37267
|
-
//
|
|
37268
|
+
// ../../switchroom-sec-1417/node_modules/.bun/posthog-node@5.29.2/node_modules/posthog-node/dist/extensions/context/context.mjs
|
|
37268
37269
|
import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
|
|
37269
37270
|
|
|
37270
37271
|
class PostHogContext {
|
|
@@ -37295,7 +37296,7 @@ class PostHogContext {
|
|
|
37295
37296
|
}
|
|
37296
37297
|
}
|
|
37297
37298
|
|
|
37298
|
-
//
|
|
37299
|
+
// ../../switchroom-sec-1417/node_modules/.bun/posthog-node@5.29.2/node_modules/posthog-node/dist/extensions/sentry-integration.mjs
|
|
37299
37300
|
var NAME = "posthog-node";
|
|
37300
37301
|
function createEventProcessor(_posthog, { organization, projectId, prefix, severityAllowList = [
|
|
37301
37302
|
"error"
|
|
@@ -37363,7 +37364,7 @@ class PostHogSentryIntegration {
|
|
|
37363
37364
|
};
|
|
37364
37365
|
}
|
|
37365
37366
|
}
|
|
37366
|
-
//
|
|
37367
|
+
// ../../switchroom-sec-1417/node_modules/.bun/posthog-node@5.29.2/node_modules/posthog-node/dist/entrypoints/index.node.mjs
|
|
37367
37368
|
ErrorTracking.errorPropertiesBuilder = new exports_error_tracking.ErrorPropertiesBuilder([
|
|
37368
37369
|
new exports_error_tracking.EventCoercer,
|
|
37369
37370
|
new exports_error_tracking.ErrorCoercer,
|
|
@@ -44339,6 +44340,17 @@ function validateClientMessage(msg) {
|
|
|
44339
44340
|
return false;
|
|
44340
44341
|
return true;
|
|
44341
44342
|
}
|
|
44343
|
+
case "request_ms365_approval": {
|
|
44344
|
+
if (typeof m.correlationId !== "string" || m.correlationId.length === 0 || m.correlationId.length > 64)
|
|
44345
|
+
return false;
|
|
44346
|
+
if (typeof m.agentName !== "string" || !AGENT_NAME_RE3.test(m.agentName))
|
|
44347
|
+
return false;
|
|
44348
|
+
if (typeof m.preview !== "object" || m.preview === null)
|
|
44349
|
+
return false;
|
|
44350
|
+
if (m.ttlMs !== undefined && (typeof m.ttlMs !== "number" || !Number.isFinite(m.ttlMs) || m.ttlMs < 0))
|
|
44351
|
+
return false;
|
|
44352
|
+
return true;
|
|
44353
|
+
}
|
|
44342
44354
|
default:
|
|
44343
44355
|
return false;
|
|
44344
44356
|
}
|
|
@@ -44357,6 +44369,7 @@ function createIpcServer(options) {
|
|
|
44357
44369
|
onPtyPartial,
|
|
44358
44370
|
onInjectInbound,
|
|
44359
44371
|
onRequestDriveApproval,
|
|
44372
|
+
onRequestMs365Approval,
|
|
44360
44373
|
onRequestConfigApproval,
|
|
44361
44374
|
onRequestConfigFinalize,
|
|
44362
44375
|
log = () => {},
|
|
@@ -44463,6 +44476,30 @@ function createIpcServer(options) {
|
|
|
44463
44476
|
} catch {}
|
|
44464
44477
|
}
|
|
44465
44478
|
break;
|
|
44479
|
+
case "request_ms365_approval":
|
|
44480
|
+
if (onRequestMs365Approval) {
|
|
44481
|
+
onRequestMs365Approval(client3, msg).catch((err) => {
|
|
44482
|
+
log(`request_ms365_approval handler threw (client=${client3.id}): ${err.message}`);
|
|
44483
|
+
try {
|
|
44484
|
+
client3.send({
|
|
44485
|
+
type: "ms365_approval_posted",
|
|
44486
|
+
correlationId: msg.correlationId,
|
|
44487
|
+
ok: false,
|
|
44488
|
+
reason: `gateway handler error: ${err.message}`
|
|
44489
|
+
});
|
|
44490
|
+
} catch {}
|
|
44491
|
+
});
|
|
44492
|
+
} else {
|
|
44493
|
+
try {
|
|
44494
|
+
client3.send({
|
|
44495
|
+
type: "ms365_approval_posted",
|
|
44496
|
+
correlationId: msg.correlationId,
|
|
44497
|
+
ok: false,
|
|
44498
|
+
reason: "gateway not configured for MS-365 write approval"
|
|
44499
|
+
});
|
|
44500
|
+
} catch {}
|
|
44501
|
+
}
|
|
44502
|
+
break;
|
|
44466
44503
|
case "request_config_approval":
|
|
44467
44504
|
if (onRequestConfigApproval) {
|
|
44468
44505
|
onRequestConfigApproval(client3, msg).catch((err) => {
|
|
@@ -44899,6 +44936,184 @@ function clampTtl(requested, fallback, min, max) {
|
|
|
44899
44936
|
return t;
|
|
44900
44937
|
}
|
|
44901
44938
|
|
|
44939
|
+
// gateway/ms365-write-approval.ts
|
|
44940
|
+
function validateMs365Preview(input) {
|
|
44941
|
+
if (!input || typeof input !== "object")
|
|
44942
|
+
return null;
|
|
44943
|
+
const o = input;
|
|
44944
|
+
if (typeof o.agentName !== "string" || o.agentName.length === 0)
|
|
44945
|
+
return null;
|
|
44946
|
+
if (typeof o.toolName !== "string" || o.toolName.length === 0)
|
|
44947
|
+
return null;
|
|
44948
|
+
if (typeof o.itemId !== "string" || o.itemId.length === 0)
|
|
44949
|
+
return null;
|
|
44950
|
+
if (typeof o.itemDisplayName !== "string")
|
|
44951
|
+
return null;
|
|
44952
|
+
if (typeof o.accountEmail !== "string")
|
|
44953
|
+
return null;
|
|
44954
|
+
const out = {
|
|
44955
|
+
agentName: o.agentName,
|
|
44956
|
+
toolName: o.toolName,
|
|
44957
|
+
itemId: o.itemId,
|
|
44958
|
+
itemDisplayName: o.itemDisplayName,
|
|
44959
|
+
accountEmail: o.accountEmail
|
|
44960
|
+
};
|
|
44961
|
+
if (typeof o.deepLink === "string")
|
|
44962
|
+
out.deepLink = o.deepLink;
|
|
44963
|
+
if (typeof o.sizeBytesBefore === "number")
|
|
44964
|
+
out.sizeBytesBefore = o.sizeBytesBefore;
|
|
44965
|
+
if (typeof o.sizeBytesAfter === "number")
|
|
44966
|
+
out.sizeBytesAfter = o.sizeBytesAfter;
|
|
44967
|
+
if (typeof o.agentRationale === "string")
|
|
44968
|
+
out.agentRationale = o.agentRationale;
|
|
44969
|
+
return out;
|
|
44970
|
+
}
|
|
44971
|
+
var DEFAULT_TTL_MS2 = 5 * 60 * 1000;
|
|
44972
|
+
var MAX_TTL_MS2 = 30 * 60 * 1000;
|
|
44973
|
+
var MIN_TTL_MS2 = 30 * 1000;
|
|
44974
|
+
function defaultKeyboard(requestId) {
|
|
44975
|
+
return {
|
|
44976
|
+
inline_keyboard: [
|
|
44977
|
+
[
|
|
44978
|
+
{ text: "\u2705 Approve", callback_data: `apv:${requestId}:once` },
|
|
44979
|
+
{ text: "\uD83D\uDEAB Deny", callback_data: `apv:${requestId}:deny` }
|
|
44980
|
+
]
|
|
44981
|
+
]
|
|
44982
|
+
};
|
|
44983
|
+
}
|
|
44984
|
+
function buildMs365CardText(p) {
|
|
44985
|
+
const lines = [];
|
|
44986
|
+
lines.push(`\uD83D\uDCC4 Microsoft 365 write approval`);
|
|
44987
|
+
lines.push("");
|
|
44988
|
+
lines.push(`Agent: ${truncate2(p.agentName, 64)}`);
|
|
44989
|
+
lines.push(`Tool: ${truncate2(p.toolName.replace(/^mcp__/, ""), 96)}`);
|
|
44990
|
+
lines.push(`Item: ${truncate2(p.itemDisplayName, 256)}`);
|
|
44991
|
+
if (p.itemId !== "(new)") {
|
|
44992
|
+
lines.push(`ID: ${truncate2(p.itemId, 96)}`);
|
|
44993
|
+
}
|
|
44994
|
+
lines.push(`Account: ${truncate2(p.accountEmail, 96)}`);
|
|
44995
|
+
if (typeof p.sizeBytesBefore === "number" || typeof p.sizeBytesAfter === "number") {
|
|
44996
|
+
const before = p.sizeBytesBefore ?? 0;
|
|
44997
|
+
const after = p.sizeBytesAfter ?? 0;
|
|
44998
|
+
const delta = after - before;
|
|
44999
|
+
const sign = delta >= 0 ? "+" : "";
|
|
45000
|
+
lines.push(`Size: ${humanBytes(before)} \u2192 ${humanBytes(after)} (${sign}${humanBytes(delta)})`);
|
|
45001
|
+
}
|
|
45002
|
+
if (p.deepLink) {
|
|
45003
|
+
lines.push(`Link: ${truncate2(p.deepLink, 256)}`);
|
|
45004
|
+
}
|
|
45005
|
+
if (p.agentRationale) {
|
|
45006
|
+
lines.push("");
|
|
45007
|
+
lines.push(`\uD83D\uDCAC ${truncate2(p.agentRationale, 512)}`);
|
|
45008
|
+
}
|
|
45009
|
+
lines.push("");
|
|
45010
|
+
lines.push("\u26a0\ufe0f Weak attestation (RFC \u00a78 v1): operator should click through to verify the actual change before approving. Structural diff coming v1.5.");
|
|
45011
|
+
return lines.join(`
|
|
45012
|
+
`);
|
|
45013
|
+
}
|
|
45014
|
+
function truncate2(s, n) {
|
|
45015
|
+
if (s.length <= n)
|
|
45016
|
+
return s;
|
|
45017
|
+
return s.slice(0, n - 1) + "\u2026";
|
|
45018
|
+
}
|
|
45019
|
+
function humanBytes(bytes) {
|
|
45020
|
+
const abs = Math.abs(bytes);
|
|
45021
|
+
if (abs < 1024)
|
|
45022
|
+
return `${bytes}B`;
|
|
45023
|
+
if (abs < 1024 * 1024)
|
|
45024
|
+
return `${(bytes / 1024).toFixed(1)}KB`;
|
|
45025
|
+
if (abs < 1024 * 1024 * 1024)
|
|
45026
|
+
return `${(bytes / 1024 / 1024).toFixed(2)}MB`;
|
|
45027
|
+
return `${(bytes / 1024 / 1024 / 1024).toFixed(2)}GB`;
|
|
45028
|
+
}
|
|
45029
|
+
function clampTtl2(requested, def, min, max) {
|
|
45030
|
+
if (typeof requested !== "number" || !Number.isFinite(requested))
|
|
45031
|
+
return def;
|
|
45032
|
+
return Math.max(min, Math.min(max, requested));
|
|
45033
|
+
}
|
|
45034
|
+
async function handleRequestMs365Approval(client3, msg, deps) {
|
|
45035
|
+
const log = deps.log ?? (() => {});
|
|
45036
|
+
const sendResponse = (ok, extra = {}) => {
|
|
45037
|
+
client3.send({
|
|
45038
|
+
type: "ms365_approval_posted",
|
|
45039
|
+
correlationId: msg.correlationId,
|
|
45040
|
+
ok,
|
|
45041
|
+
...extra
|
|
45042
|
+
});
|
|
45043
|
+
};
|
|
45044
|
+
if (msg.agentName !== deps.agentName) {
|
|
45045
|
+
log(`ms365-approval: cross-agent request rejected (msg=${msg.agentName} vs gateway=${deps.agentName})`);
|
|
45046
|
+
sendResponse(false, { reason: "cross-agent request rejected" });
|
|
45047
|
+
return;
|
|
45048
|
+
}
|
|
45049
|
+
const preview = validateMs365Preview(msg.preview);
|
|
45050
|
+
if (!preview) {
|
|
45051
|
+
log("ms365-approval: invalid preview payload");
|
|
45052
|
+
sendResponse(false, { reason: "invalid preview payload" });
|
|
45053
|
+
return;
|
|
45054
|
+
}
|
|
45055
|
+
const allowFrom = deps.loadAllowFrom();
|
|
45056
|
+
if (allowFrom.length === 0) {
|
|
45057
|
+
log("ms365-approval: no operator allowFrom configured");
|
|
45058
|
+
sendResponse(false, { reason: "no operator allowFrom configured" });
|
|
45059
|
+
return;
|
|
45060
|
+
}
|
|
45061
|
+
const targetChat = deps.loadTargetChat();
|
|
45062
|
+
if (!targetChat) {
|
|
45063
|
+
log("ms365-approval: no target chat resolved");
|
|
45064
|
+
sendResponse(false, { reason: "no target chat resolved" });
|
|
45065
|
+
return;
|
|
45066
|
+
}
|
|
45067
|
+
const ttlMs = clampTtl2(msg.ttlMs, deps.defaultTtlMs ?? DEFAULT_TTL_MS2, deps.minTtlMs ?? MIN_TTL_MS2, deps.maxTtlMs ?? MAX_TTL_MS2);
|
|
45068
|
+
const scope = `ms-365:write:${preview.itemId}`;
|
|
45069
|
+
const why = preview.agentRationale ?? `${preview.toolName} on ${preview.itemDisplayName}`;
|
|
45070
|
+
let registered;
|
|
45071
|
+
try {
|
|
45072
|
+
registered = await deps.registerApproval({
|
|
45073
|
+
agent_unit: preview.agentName,
|
|
45074
|
+
scope,
|
|
45075
|
+
action: "write",
|
|
45076
|
+
approver_set: allowFrom,
|
|
45077
|
+
why,
|
|
45078
|
+
ttl_ms: ttlMs
|
|
45079
|
+
});
|
|
45080
|
+
} catch (err) {
|
|
45081
|
+
const msg2 = err instanceof Error ? err.message : String(err);
|
|
45082
|
+
log(`ms365-approval: kernel register failed \u2014 ${msg2}`);
|
|
45083
|
+
sendResponse(false, { reason: `kernel register failed: ${msg2}` });
|
|
45084
|
+
return;
|
|
45085
|
+
}
|
|
45086
|
+
if (!registered) {
|
|
45087
|
+
sendResponse(false, { reason: "kernel returned no request_id" });
|
|
45088
|
+
return;
|
|
45089
|
+
}
|
|
45090
|
+
const text = buildMs365CardText(preview);
|
|
45091
|
+
const replyMarkup = (deps.buildKeyboard ?? defaultKeyboard)(registered.request_id);
|
|
45092
|
+
let posted;
|
|
45093
|
+
try {
|
|
45094
|
+
posted = await deps.postCard({
|
|
45095
|
+
chatId: targetChat.chatId,
|
|
45096
|
+
threadId: targetChat.threadId,
|
|
45097
|
+
text,
|
|
45098
|
+
replyMarkup
|
|
45099
|
+
});
|
|
45100
|
+
} catch (err) {
|
|
45101
|
+
const m = err instanceof Error ? err.message : String(err);
|
|
45102
|
+
log(`ms365-approval: card post threw \u2014 ${m}`);
|
|
45103
|
+
sendResponse(false, { reason: `card post failed: ${m}` });
|
|
45104
|
+
return;
|
|
45105
|
+
}
|
|
45106
|
+
if (!posted) {
|
|
45107
|
+
sendResponse(false, { reason: "card post returned null" });
|
|
45108
|
+
return;
|
|
45109
|
+
}
|
|
45110
|
+
log(`ms365-approval: posted card msg=${posted.messageId} request=${registered.request_id} expires=${new Date(registered.expires_at_ms).toISOString()}`);
|
|
45111
|
+
sendResponse(true, {
|
|
45112
|
+
requestId: registered.request_id,
|
|
45113
|
+
expiresAtMs: registered.expires_at_ms
|
|
45114
|
+
});
|
|
45115
|
+
}
|
|
45116
|
+
|
|
44902
45117
|
// gateway/diff-preview-card.ts
|
|
44903
45118
|
var import_grammy5 = __toESM(require_mod2(), 1);
|
|
44904
45119
|
var REQUEST_ID_RE = /^[0-9a-f]{32}$/;
|
|
@@ -45813,14 +46028,14 @@ function buildVaultSaveDiscardedInbound(opts) {
|
|
|
45813
46028
|
// gateway/subagent-handback-inbound-builder.ts
|
|
45814
46029
|
var HANDBACK_RESULT_MAX = 3000;
|
|
45815
46030
|
var HANDBACK_DESC_MAX = 200;
|
|
45816
|
-
function
|
|
46031
|
+
function truncate3(s, max) {
|
|
45817
46032
|
const t = s.trim();
|
|
45818
46033
|
return t.length > max ? t.slice(0, max) + "\u2026" : t;
|
|
45819
46034
|
}
|
|
45820
46035
|
function buildSubagentHandbackInbound(opts) {
|
|
45821
46036
|
const ts = opts.nowMs ?? Date.now();
|
|
45822
|
-
const desc =
|
|
45823
|
-
const result =
|
|
46037
|
+
const desc = truncate3(opts.ctx.taskDescription, HANDBACK_DESC_MAX) || "(no description)";
|
|
46038
|
+
const result = truncate3(opts.ctx.resultText, HANDBACK_RESULT_MAX);
|
|
45824
46039
|
const text = opts.ctx.outcome === "failed" ? `\uD83E\uDD1D A background worker you dispatched has FAILED.
|
|
45825
46040
|
|
|
45826
46041
|
` + `Task: ${desc}
|
|
@@ -45884,7 +46099,7 @@ function decideSubagentHandback(input) {
|
|
|
45884
46099
|
var PROGRESS_RESULT_MAX = 800;
|
|
45885
46100
|
var PROGRESS_DESC_MAX = 200;
|
|
45886
46101
|
var DEFAULT_PROGRESS_INTERVAL_MS = 5 * 60 * 1000;
|
|
45887
|
-
function
|
|
46102
|
+
function truncate4(s, max) {
|
|
45888
46103
|
const t = s.trim();
|
|
45889
46104
|
return t.length > max ? t.slice(0, max) + "\u2026" : t;
|
|
45890
46105
|
}
|
|
@@ -45898,8 +46113,8 @@ function formatElapsed(ms) {
|
|
|
45898
46113
|
}
|
|
45899
46114
|
function buildSubagentProgressInbound(opts) {
|
|
45900
46115
|
const ts = opts.nowMs ?? Date.now();
|
|
45901
|
-
const desc =
|
|
45902
|
-
const summary =
|
|
46116
|
+
const desc = truncate4(opts.ctx.taskDescription, PROGRESS_DESC_MAX) || "(no description)";
|
|
46117
|
+
const summary = truncate4(opts.ctx.latestSummary, PROGRESS_RESULT_MAX);
|
|
45903
46118
|
const elapsed = formatElapsed(opts.ctx.elapsedMs);
|
|
45904
46119
|
const expiresAt = ts + 2 * opts.ctx.progressIntervalMs;
|
|
45905
46120
|
const text = `\uD83D\uDD04 A background worker you dispatched is still running.
|
|
@@ -46894,12 +47109,12 @@ function runPipeline(inputs) {
|
|
|
46894
47109
|
}
|
|
46895
47110
|
|
|
46896
47111
|
// secret-detect/staging.ts
|
|
46897
|
-
var
|
|
47112
|
+
var DEFAULT_TTL_MS3 = 5 * 60 * 1000;
|
|
46898
47113
|
|
|
46899
47114
|
class StagingMap {
|
|
46900
47115
|
ttlMs;
|
|
46901
47116
|
map = new Map;
|
|
46902
|
-
constructor(ttlMs =
|
|
47117
|
+
constructor(ttlMs = DEFAULT_TTL_MS3) {
|
|
46903
47118
|
this.ttlMs = ttlMs;
|
|
46904
47119
|
}
|
|
46905
47120
|
key(chat_id, message_id) {
|
|
@@ -47942,7 +48157,7 @@ function startSubagentWatcher(config) {
|
|
|
47942
48157
|
if (idleMs >= threshold) {
|
|
47943
48158
|
entry.stallNotified = true;
|
|
47944
48159
|
entry.stalledAt = n;
|
|
47945
|
-
const desc = escapeHtml8(
|
|
48160
|
+
const desc = escapeHtml8(truncate5(entry.description, 80));
|
|
47946
48161
|
const idleSec = Math.floor(idleMs / 1000);
|
|
47947
48162
|
log?.(`subagent-watcher: stall detected for ${entry.agentId} (idle ${idleSec}s): ${desc}`);
|
|
47948
48163
|
if (db2 != null) {
|
|
@@ -48908,13 +49123,13 @@ function summarizeToolForTitle(toolName, inputPreview) {
|
|
|
48908
49123
|
return `${toolName} (${skill})`;
|
|
48909
49124
|
const command = readString(input, "command");
|
|
48910
49125
|
if (command)
|
|
48911
|
-
return `${toolName}: ${
|
|
49126
|
+
return `${toolName}: ${truncate6(command, COMMAND_TITLE_MAX)}`;
|
|
48912
49127
|
const argHint = firstScalarArgHint(input);
|
|
48913
49128
|
return argHint ? `${toolName} (${argHint})` : toolName;
|
|
48914
49129
|
}
|
|
48915
49130
|
case "Bash": {
|
|
48916
49131
|
const command = readString(input, "command");
|
|
48917
|
-
return command ? `${toolName}: ${
|
|
49132
|
+
return command ? `${toolName}: ${truncate6(command, COMMAND_TITLE_MAX)}` : toolName;
|
|
48918
49133
|
}
|
|
48919
49134
|
case "Read":
|
|
48920
49135
|
case "Edit":
|
|
@@ -48922,17 +49137,17 @@ function summarizeToolForTitle(toolName, inputPreview) {
|
|
|
48922
49137
|
case "MultiEdit":
|
|
48923
49138
|
case "NotebookEdit": {
|
|
48924
49139
|
const filePath = readString(input, "file_path") ?? readString(input, "notebook_path");
|
|
48925
|
-
return filePath ? `${toolName}: ${
|
|
49140
|
+
return filePath ? `${toolName}: ${truncate6(basename5(filePath), PATH_TITLE_MAX)}` : toolName;
|
|
48926
49141
|
}
|
|
48927
49142
|
case "Glob":
|
|
48928
49143
|
case "Grep": {
|
|
48929
49144
|
const pattern = readString(input, "pattern");
|
|
48930
|
-
return pattern ? `${toolName}: ${
|
|
49145
|
+
return pattern ? `${toolName}: ${truncate6(pattern, COMMAND_TITLE_MAX)}` : toolName;
|
|
48931
49146
|
}
|
|
48932
49147
|
case "WebFetch":
|
|
48933
49148
|
case "WebSearch": {
|
|
48934
49149
|
const query2 = readString(input, "url") ?? readString(input, "query");
|
|
48935
|
-
return query2 ? `${toolName}: ${
|
|
49150
|
+
return query2 ? `${toolName}: ${truncate6(query2, COMMAND_TITLE_MAX)}` : toolName;
|
|
48936
49151
|
}
|
|
48937
49152
|
default:
|
|
48938
49153
|
return toolName;
|
|
@@ -48971,7 +49186,7 @@ function firstScalarArgHint(input) {
|
|
|
48971
49186
|
if (SKIP.has(key))
|
|
48972
49187
|
continue;
|
|
48973
49188
|
if (typeof value === "string" && value.length > 0) {
|
|
48974
|
-
return `${key}: ${
|
|
49189
|
+
return `${key}: ${truncate6(value, INPUT_VALUE_MAX)}`;
|
|
48975
49190
|
}
|
|
48976
49191
|
if (typeof value === "number" || typeof value === "boolean") {
|
|
48977
49192
|
return `${key}: ${String(value)}`;
|
|
@@ -49006,7 +49221,7 @@ function skillBasenameFromPath(input) {
|
|
|
49006
49221
|
const basename6 = lastSlash >= 0 ? trimmed.slice(lastSlash + 1) : trimmed;
|
|
49007
49222
|
return basename6.length > 0 ? basename6 : null;
|
|
49008
49223
|
}
|
|
49009
|
-
function
|
|
49224
|
+
function truncate6(text, max) {
|
|
49010
49225
|
const collapsed = text.replace(/\s+/g, " ").trim();
|
|
49011
49226
|
if (collapsed.length <= max)
|
|
49012
49227
|
return collapsed;
|
|
@@ -49277,11 +49492,11 @@ function sweepStaleTurnActiveMarker(stateDir, opts) {
|
|
|
49277
49492
|
}
|
|
49278
49493
|
|
|
49279
49494
|
// ../src/build-info.ts
|
|
49280
|
-
var VERSION = "0.13.
|
|
49281
|
-
var COMMIT_SHA = "
|
|
49282
|
-
var COMMIT_DATE = "2026-05-
|
|
49283
|
-
var LATEST_PR =
|
|
49284
|
-
var COMMITS_AHEAD_OF_TAG =
|
|
49495
|
+
var VERSION = "0.13.54";
|
|
49496
|
+
var COMMIT_SHA = "95784728";
|
|
49497
|
+
var COMMIT_DATE = "2026-05-27T05:55:02Z";
|
|
49498
|
+
var LATEST_PR = 1894;
|
|
49499
|
+
var COMMITS_AHEAD_OF_TAG = 0;
|
|
49285
49500
|
|
|
49286
49501
|
// gateway/boot-version.ts
|
|
49287
49502
|
function formatRelativeAgo(iso) {
|
|
@@ -50991,12 +51206,14 @@ function emitGatewayOperatorEvent(event) {
|
|
|
50991
51206
|
`);
|
|
50992
51207
|
return;
|
|
50993
51208
|
}
|
|
50994
|
-
|
|
51209
|
+
const opEventTopic = resolveAgentOutboundTopic({ kind: "compact-watchdog" });
|
|
51210
|
+
process.stderr.write(`telegram gateway: operator-event posting agent=${agent} kind=${kind} to ${access.allowFrom.length} chat(s)` + (opEventTopic != null ? ` topic=${opEventTopic}` : "") + `
|
|
50995
51211
|
`);
|
|
50996
51212
|
for (const chat_id of access.allowFrom) {
|
|
50997
51213
|
const opts = {
|
|
50998
51214
|
parse_mode: "HTML",
|
|
50999
|
-
...renderedKeyboard ? { reply_markup: renderedKeyboard } : {}
|
|
51215
|
+
...renderedKeyboard ? { reply_markup: renderedKeyboard } : {},
|
|
51216
|
+
...opEventTopic != null ? { message_thread_id: opEventTopic } : {}
|
|
51000
51217
|
};
|
|
51001
51218
|
bot.api.sendMessage(chat_id, renderedText, opts).catch((e) => {
|
|
51002
51219
|
process.stderr.write(`telegram gateway: operator-event send to ${chat_id} failed agent=${agent} kind=${kind}: ${e}
|
|
@@ -51504,10 +51721,17 @@ ${reminder}
|
|
|
51504
51721
|
if (alwaysRule != null) {
|
|
51505
51722
|
keyboard.row().text(`\uD83D\uDD01 Always allow ${alwaysRule.label}`, `perm:always:${requestId}`);
|
|
51506
51723
|
}
|
|
51724
|
+
const activeTurn = currentTurn;
|
|
51725
|
+
const permTopic = resolveAgentOutboundTopic({
|
|
51726
|
+
kind: "permission",
|
|
51727
|
+
turnInitiated: activeTurn != null,
|
|
51728
|
+
originThreadId: activeTurn?.sessionThreadId
|
|
51729
|
+
});
|
|
51507
51730
|
for (const chat_id of access.allowFrom) {
|
|
51508
51731
|
bot.api.sendMessage(chat_id, text, {
|
|
51509
51732
|
parse_mode: "HTML",
|
|
51510
|
-
reply_markup: keyboard
|
|
51733
|
+
reply_markup: keyboard,
|
|
51734
|
+
...permTopic != null ? { message_thread_id: permTopic } : {}
|
|
51511
51735
|
}).catch((e) => {
|
|
51512
51736
|
process.stderr.write(`telegram gateway: permission_request send to ${chat_id} failed: ${e}
|
|
51513
51737
|
`);
|
|
@@ -51567,7 +51791,15 @@ ${reminder}
|
|
|
51567
51791
|
const operator = access.allowFrom[0];
|
|
51568
51792
|
if (operator === undefined)
|
|
51569
51793
|
return null;
|
|
51570
|
-
|
|
51794
|
+
const activeTurn = currentTurn;
|
|
51795
|
+
const driveTopic = resolveAgentOutboundTopic({
|
|
51796
|
+
kind: "hostd-approval",
|
|
51797
|
+
originThreadId: activeTurn?.sessionThreadId
|
|
51798
|
+
});
|
|
51799
|
+
return {
|
|
51800
|
+
chatId: operator,
|
|
51801
|
+
...driveTopic != null ? { threadId: driveTopic } : {}
|
|
51802
|
+
};
|
|
51571
51803
|
},
|
|
51572
51804
|
registerApproval: async (args) => {
|
|
51573
51805
|
const r = await approvalRequest({
|
|
@@ -51605,6 +51837,62 @@ ${reminder}
|
|
|
51605
51837
|
},
|
|
51606
51838
|
buildCard: ({ preview, suggestRequestId }) => buildDiffPreviewCard({ preview, suggestRequestId }),
|
|
51607
51839
|
log: (m) => process.stderr.write(`telegram gateway: drive-approval \u2014 ${m}
|
|
51840
|
+
`)
|
|
51841
|
+
});
|
|
51842
|
+
},
|
|
51843
|
+
async onRequestMs365Approval(client3, msg) {
|
|
51844
|
+
await handleRequestMs365Approval(client3, msg, {
|
|
51845
|
+
agentName: getMyAgentName(),
|
|
51846
|
+
loadAllowFrom: () => loadAccess().allowFrom,
|
|
51847
|
+
loadTargetChat: () => {
|
|
51848
|
+
const access = loadAccess();
|
|
51849
|
+
const operator = access.allowFrom[0];
|
|
51850
|
+
if (operator === undefined)
|
|
51851
|
+
return null;
|
|
51852
|
+
const activeTurn = currentTurn;
|
|
51853
|
+
const ms365Topic = resolveAgentOutboundTopic({
|
|
51854
|
+
kind: "hostd-approval",
|
|
51855
|
+
originThreadId: activeTurn?.sessionThreadId
|
|
51856
|
+
});
|
|
51857
|
+
return {
|
|
51858
|
+
chatId: operator,
|
|
51859
|
+
...ms365Topic != null ? { threadId: ms365Topic } : {}
|
|
51860
|
+
};
|
|
51861
|
+
},
|
|
51862
|
+
registerApproval: async (args) => {
|
|
51863
|
+
const r = await approvalRequest({
|
|
51864
|
+
agent_unit: args.agent_unit,
|
|
51865
|
+
scope: args.scope,
|
|
51866
|
+
action: args.action,
|
|
51867
|
+
approver_set: args.approver_set,
|
|
51868
|
+
why: args.why,
|
|
51869
|
+
ttl_ms: args.ttl_ms
|
|
51870
|
+
});
|
|
51871
|
+
if (r === null || r.state === "rate_limited")
|
|
51872
|
+
return null;
|
|
51873
|
+
return {
|
|
51874
|
+
request_id: r.request_id,
|
|
51875
|
+
expires_at_ms: r.expires_at
|
|
51876
|
+
};
|
|
51877
|
+
},
|
|
51878
|
+
postCard: async (args) => {
|
|
51879
|
+
try {
|
|
51880
|
+
const sent = await robustApiCall(() => bot.api.sendMessage(args.chatId, args.text, {
|
|
51881
|
+
...args.threadId !== undefined ? { message_thread_id: args.threadId } : {},
|
|
51882
|
+
reply_markup: args.replyMarkup
|
|
51883
|
+
}), {
|
|
51884
|
+
chat_id: String(args.chatId),
|
|
51885
|
+
verb: "ms365-approval-card",
|
|
51886
|
+
...args.threadId !== undefined ? { threadId: args.threadId } : {}
|
|
51887
|
+
});
|
|
51888
|
+
return { messageId: sent.message_id };
|
|
51889
|
+
} catch (err) {
|
|
51890
|
+
process.stderr.write(`telegram gateway: ms365-approval postCard failed: ${err.message}
|
|
51891
|
+
`);
|
|
51892
|
+
return null;
|
|
51893
|
+
}
|
|
51894
|
+
},
|
|
51895
|
+
log: (m) => process.stderr.write(`telegram gateway: ms365-approval \u2014 ${m}
|
|
51608
51896
|
`)
|
|
51609
51897
|
});
|
|
51610
51898
|
},
|
|
@@ -51618,7 +51906,15 @@ ${reminder}
|
|
|
51618
51906
|
const operator = access.allowFrom[0];
|
|
51619
51907
|
if (operator === undefined)
|
|
51620
51908
|
return null;
|
|
51621
|
-
|
|
51909
|
+
const activeTurn = currentTurn;
|
|
51910
|
+
const cfgTopic = resolveAgentOutboundTopic({
|
|
51911
|
+
kind: "hostd-approval",
|
|
51912
|
+
originThreadId: activeTurn?.sessionThreadId
|
|
51913
|
+
});
|
|
51914
|
+
return {
|
|
51915
|
+
chatId: operator,
|
|
51916
|
+
...cfgTopic != null ? { threadId: cfgTopic } : {}
|
|
51917
|
+
};
|
|
51622
51918
|
},
|
|
51623
51919
|
buildKeyboard: (requestId) => new InlineKeyboard6().text("\u2705 Approve", `cfg:${requestId}:approve`).text("\uD83D\uDEAB Deny", `cfg:${requestId}:deny`),
|
|
51624
51920
|
postCard: async (args) => {
|
|
@@ -54558,7 +54854,9 @@ function preBlock(text) {
|
|
|
54558
54854
|
}
|
|
54559
54855
|
async function switchroomReply(ctx, text, options = {}) {
|
|
54560
54856
|
const chatId = String(ctx.chat.id);
|
|
54561
|
-
const
|
|
54857
|
+
const baseThreadId = resolveThreadId(chatId, ctx.message?.message_thread_id);
|
|
54858
|
+
const routedOpts = options.classification ? slashCommandReplyOpts(ctx, options.classification) : {};
|
|
54859
|
+
const threadId = routedOpts.message_thread_id ?? baseThreadId;
|
|
54562
54860
|
await ctx.reply(text, {
|
|
54563
54861
|
...threadId != null ? { message_thread_id: threadId } : {},
|
|
54564
54862
|
...options.html ? { parse_mode: "HTML", link_preview_options: { is_disabled: true } } : {},
|
|
@@ -54719,6 +55017,16 @@ function resolveSystemdRunPath() {
|
|
|
54719
55017
|
}
|
|
54720
55018
|
return _systemdRunPath;
|
|
54721
55019
|
}
|
|
55020
|
+
function slashCommandReplyOpts(ctx, classification) {
|
|
55021
|
+
const originThreadId = ctx.message?.message_thread_id;
|
|
55022
|
+
const event = classification === "query" ? { kind: "command-query", originThreadId } : classification === "mutation" ? { kind: "command-mutation" } : { kind: "command-heavy" };
|
|
55023
|
+
const target = resolveAgentOutboundTopic(event);
|
|
55024
|
+
if (target == null)
|
|
55025
|
+
return {};
|
|
55026
|
+
if (target === originThreadId)
|
|
55027
|
+
return {};
|
|
55028
|
+
return { message_thread_id: target };
|
|
55029
|
+
}
|
|
54722
55030
|
var _dockerReachable;
|
|
54723
55031
|
function isDockerReachable() {
|
|
54724
55032
|
if (_dockerReachable !== undefined)
|
|
@@ -54996,28 +55304,28 @@ async function dispatchShortVerbViaHostd(ctx, req, label, legacyArgs) {
|
|
|
54996
55304
|
await switchroomReply(ctx, `\u274C <b>${escapeHtmlForTg(label)} failed via hostd</b> (result=${escapeHtmlForTg(hostdResp.result)}):
|
|
54997
55305
|
` + preBlock(stripAnsi2(errBody)), { html: true });
|
|
54998
55306
|
}
|
|
54999
|
-
async function runSwitchroomCommand(ctx, args, label) {
|
|
55307
|
+
async function runSwitchroomCommand(ctx, args, label, classification = "query") {
|
|
55000
55308
|
try {
|
|
55001
55309
|
const output = stripAnsi2(switchroomExec(args));
|
|
55002
55310
|
const formatted = formatSwitchroomOutput(output);
|
|
55003
55311
|
if (formatted) {
|
|
55004
|
-
await switchroomReply(ctx, preBlock(formatted), { html: true });
|
|
55312
|
+
await switchroomReply(ctx, preBlock(formatted), { html: true, classification });
|
|
55005
55313
|
} else {
|
|
55006
|
-
await switchroomReply(ctx, `${label}: done (no output)
|
|
55314
|
+
await switchroomReply(ctx, `${label}: done (no output)`, { classification });
|
|
55007
55315
|
}
|
|
55008
55316
|
} catch (err) {
|
|
55009
55317
|
const error = err;
|
|
55010
55318
|
if (error.message?.includes("ENOENT")) {
|
|
55011
|
-
await switchroomReply(ctx, "switchroom CLI not found.", { html: true });
|
|
55319
|
+
await switchroomReply(ctx, "switchroom CLI not found.", { html: true, classification });
|
|
55012
55320
|
return;
|
|
55013
55321
|
}
|
|
55014
55322
|
if (error.message?.includes("ETIMEDOUT") || error.message?.includes("timed out")) {
|
|
55015
|
-
await switchroomReply(ctx, `${label}: timed out
|
|
55323
|
+
await switchroomReply(ctx, `${label}: timed out`, { classification });
|
|
55016
55324
|
return;
|
|
55017
55325
|
}
|
|
55018
55326
|
const detail = stripAnsi2(error.stderr?.trim() || error.message || "unknown error");
|
|
55019
55327
|
await switchroomReply(ctx, `<b>${escapeHtmlForTg(label)} failed:</b>
|
|
55020
|
-
${preBlock(formatSwitchroomOutput(detail))}`, { html: true });
|
|
55328
|
+
${preBlock(formatSwitchroomOutput(detail))}`, { html: true, classification });
|
|
55021
55329
|
}
|
|
55022
55330
|
}
|
|
55023
55331
|
function switchroomExecJson(args) {
|
|
@@ -55611,7 +55919,7 @@ The gateway will restart as part of the recreate step; watch for the post-restar
|
|
|
55611
55919
|
bot.command("upgradestatus", async (ctx) => {
|
|
55612
55920
|
if (!isAuthorizedSender(ctx))
|
|
55613
55921
|
return;
|
|
55614
|
-
await runSwitchroomCommand(ctx, ["update", "--status"], "update --status");
|
|
55922
|
+
await runSwitchroomCommand(ctx, ["update", "--status"], "update --status", "heavy");
|
|
55615
55923
|
});
|
|
55616
55924
|
bot.command("upgrade", async (ctx) => {
|
|
55617
55925
|
if (!isAuthorizedSender(ctx))
|
|
@@ -55680,7 +55988,7 @@ bot.command("audit", async (ctx) => {
|
|
|
55680
55988
|
await switchroomReply(ctx, `Unknown flag <code>${escapeHtmlForTg(t)}</code>. Allowed: <code>--tail</code>, <code>--agent</code>, <code>--op</code>, <code>--error</code>, <code>--verbose</code>.`, { html: true });
|
|
55681
55989
|
return;
|
|
55682
55990
|
}
|
|
55683
|
-
await runSwitchroomCommand(ctx, argv, `hostd audit${argv.length > 2 ? " \u2026" : ""}
|
|
55991
|
+
await runSwitchroomCommand(ctx, argv, `hostd audit${argv.length > 2 ? " \u2026" : ""}`, "heavy");
|
|
55684
55992
|
});
|
|
55685
55993
|
function isValidPermissionRequestId(id) {
|
|
55686
55994
|
return /^[a-z0-9-]{1,32}$/.test(id);
|
|
@@ -57397,7 +57705,7 @@ bot.command("logs", async (ctx) => {
|
|
|
57397
57705
|
}
|
|
57398
57706
|
const lines = linesArg ? parseInt(linesArg, 10) : 20;
|
|
57399
57707
|
const lineCount = isNaN(lines) || lines < 1 ? 20 : Math.min(lines, 200);
|
|
57400
|
-
await runSwitchroomCommand(ctx, ["agent", "logs", name, "--lines", String(lineCount)], `logs ${name}
|
|
57708
|
+
await runSwitchroomCommand(ctx, ["agent", "logs", name, "--lines", String(lineCount)], `logs ${name}`, "heavy");
|
|
57401
57709
|
});
|
|
57402
57710
|
bot.command("memory", async (ctx) => {
|
|
57403
57711
|
if (!isAuthorizedSender(ctx))
|
|
@@ -57407,7 +57715,7 @@ bot.command("memory", async (ctx) => {
|
|
|
57407
57715
|
await switchroomReply(ctx, "Usage: /memory <search query>");
|
|
57408
57716
|
return;
|
|
57409
57717
|
}
|
|
57410
|
-
await runSwitchroomCommand(ctx, ["memory", "search", query2], "memory search");
|
|
57718
|
+
await runSwitchroomCommand(ctx, ["memory", "search", query2], "memory search", "heavy");
|
|
57411
57719
|
});
|
|
57412
57720
|
bot.command("issues", async (ctx) => {
|
|
57413
57721
|
if (!isAuthorizedSender(ctx))
|