switchroom 0.13.55 → 0.13.56

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.
@@ -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
- // ../node_modules/.bun/grammy@1.42.0/node_modules/grammy/out/filter.js
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
- // ../node_modules/.bun/grammy@1.42.0/node_modules/grammy/out/context.js
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
- // ../node_modules/.bun/grammy@1.42.0/node_modules/grammy/out/composer.js
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
- // ../node_modules/.bun/ms@2.1.3/node_modules/ms/index.js
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
- // ../node_modules/.bun/debug@4.4.3/node_modules/debug/src/common.js
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
- // ../node_modules/.bun/debug@4.4.3/node_modules/debug/src/browser.js
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
- // ../node_modules/.bun/has-flag@4.0.0/node_modules/has-flag/index.js
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
- // ../node_modules/.bun/supports-color@7.2.0/node_modules/supports-color/index.js
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
- // ../node_modules/.bun/debug@4.4.3/node_modules/debug/src/node.js
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
- // ../node_modules/.bun/debug@4.4.3/node_modules/debug/src/index.js
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
- // ../node_modules/.bun/grammy@1.42.0/node_modules/grammy/out/platform.node.js
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
- // ../node_modules/.bun/grammy@1.42.0/node_modules/grammy/out/core/error.js
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
- // ../node_modules/.bun/@grammyjs+types@3.26.0/node_modules/@grammyjs/types/mod.js
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
- // ../node_modules/.bun/grammy@1.42.0/node_modules/grammy/out/types.node.js
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
- // ../node_modules/.bun/grammy@1.42.0/node_modules/grammy/out/types.js
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
- // ../node_modules/.bun/grammy@1.42.0/node_modules/grammy/out/core/payload.js
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
- // ../node_modules/.bun/event-target-shim@5.0.1/node_modules/event-target-shim/dist/event-target-shim.js
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
- // ../node_modules/.bun/abort-controller@3.0.0/node_modules/abort-controller/dist/abort-controller.js
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
- // ../node_modules/.bun/grammy@1.42.0/node_modules/grammy/out/shim.node.js
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
- // ../node_modules/.bun/grammy@1.42.0/node_modules/grammy/out/core/client.js
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
- // ../node_modules/.bun/grammy@1.42.0/node_modules/grammy/out/core/api.js
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
- // ../node_modules/.bun/grammy@1.42.0/node_modules/grammy/out/bot.js
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
- // ../node_modules/.bun/grammy@1.42.0/node_modules/grammy/out/convenience/constants.js
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
- // ../node_modules/.bun/grammy@1.42.0/node_modules/grammy/out/convenience/inline_query.js
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
- // ../node_modules/.bun/grammy@1.42.0/node_modules/grammy/out/convenience/input_media.js
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
- // ../node_modules/.bun/grammy@1.42.0/node_modules/grammy/out/convenience/keyboard.js
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
- // ../node_modules/.bun/grammy@1.42.0/node_modules/grammy/out/convenience/session.js
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
- // ../node_modules/.bun/grammy@1.42.0/node_modules/grammy/out/convenience/frameworks.js
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
- // ../node_modules/.bun/grammy@1.42.0/node_modules/grammy/out/convenience/webhook.js
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
- // ../node_modules/.bun/grammy@1.42.0/node_modules/grammy/out/mod.js
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
- // ../node_modules/.bun/@grammyjs+runner@2.0.3+c6be0243b1bbec89/node_modules/@grammyjs/runner/out/platform.node.js
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
- // ../node_modules/.bun/@grammyjs+runner@2.0.3+c6be0243b1bbec89/node_modules/@grammyjs/runner/out/distribute.js
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
- // ../node_modules/.bun/@grammyjs+runner@2.0.3+c6be0243b1bbec89/node_modules/@grammyjs/runner/out/queue.js
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
- // ../node_modules/.bun/@grammyjs+runner@2.0.3+c6be0243b1bbec89/node_modules/@grammyjs/runner/out/sink.js
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
- // ../node_modules/.bun/@grammyjs+runner@2.0.3+c6be0243b1bbec89/node_modules/@grammyjs/runner/out/node-shim.js
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
- // ../node_modules/.bun/@grammyjs+runner@2.0.3+c6be0243b1bbec89/node_modules/@grammyjs/runner/out/source.js
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
- // ../node_modules/.bun/@grammyjs+runner@2.0.3+c6be0243b1bbec89/node_modules/@grammyjs/runner/out/runner.js
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
- // ../node_modules/.bun/@grammyjs+runner@2.0.3+c6be0243b1bbec89/node_modules/@grammyjs/runner/out/sequentialize.js
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
- // ../node_modules/.bun/grammy@1.42.0/node_modules/grammy/out/mod.js
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
- // ../node_modules/.bun/@grammyjs+runner@2.0.3+c6be0243b1bbec89/node_modules/@grammyjs/runner/out/deps.node.js
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
- // ../node_modules/.bun/@grammyjs+runner@2.0.3+c6be0243b1bbec89/node_modules/@grammyjs/runner/out/worker.js
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
- // ../node_modules/.bun/@grammyjs+runner@2.0.3+c6be0243b1bbec89/node_modules/@grammyjs/runner/out/mod.js
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
- // ../node_modules/.bun/@grammyjs+runner@2.0.3+c6be0243b1bbec89/node_modules/@grammyjs/runner/out/mod.js
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
- // ../node_modules/.bun/@xterm+headless@6.0.0/node_modules/@xterm/headless/lib-headless/xterm-headless.js
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
- // ../node_modules/.bun/zod@3.25.76/node_modules/zod/v3/helpers/util.js
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
- // ../node_modules/.bun/zod@3.25.76/node_modules/zod/v3/ZodError.js
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
- // ../node_modules/.bun/zod@3.25.76/node_modules/zod/v3/locales/en.js
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
- // ../node_modules/.bun/zod@3.25.76/node_modules/zod/v3/errors.js
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
- // ../node_modules/.bun/zod@3.25.76/node_modules/zod/v3/helpers/parseUtil.js
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
- // ../node_modules/.bun/zod@3.25.76/node_modules/zod/v3/helpers/typeAliases.js
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
- // ../node_modules/.bun/zod@3.25.76/node_modules/zod/v3/helpers/errorUtil.js
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
- // ../node_modules/.bun/zod@3.25.76/node_modules/zod/v3/types.js
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
- // ../node_modules/.bun/zod@3.25.76/node_modules/zod/v3/external.js
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
- // ../node_modules/.bun/zod@3.25.76/node_modules/zod/index.js
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();
@@ -16334,10 +16334,10 @@ __export(exports_client, {
16334
16334
  AuthBrokerClient: () => AuthBrokerClient
16335
16335
  });
16336
16336
  import * as net from "node:net";
16337
- import { existsSync as existsSync6 } from "node:fs";
16337
+ import { existsSync as existsSync7 } from "node:fs";
16338
16338
  import { homedir as homedir3 } from "node:os";
16339
16339
  import { randomUUID as randomUUID3 } from "node:crypto";
16340
- import { join as join8 } from "node:path";
16340
+ import { join as join9 } from "node:path";
16341
16341
  function reviveDate(v) {
16342
16342
  if (v == null)
16343
16343
  return null;
@@ -16347,7 +16347,7 @@ function reviveDate(v) {
16347
16347
  return Number.isNaN(d.getTime()) ? null : d;
16348
16348
  }
16349
16349
  function operatorSocketPath(home = homedir3()) {
16350
- return join8(home, ".switchroom", "state", "auth-broker-operator", "sock");
16350
+ return join9(home, ".switchroom", "state", "auth-broker-operator", "sock");
16351
16351
  }
16352
16352
  function resolveAuthBrokerSocketPath(opts) {
16353
16353
  if (opts?.socket)
@@ -16617,7 +16617,7 @@ async function withAuthBrokerClient(fn, opts) {
16617
16617
  }
16618
16618
  }
16619
16619
  function authBrokerSocketExists(opts) {
16620
- return existsSync6(resolveAuthBrokerSocketPath(opts));
16620
+ return existsSync7(resolveAuthBrokerSocketPath(opts));
16621
16621
  }
16622
16622
  var DEFAULT_TIMEOUT_MS = 5000, AuthBrokerError, AuthBrokerUnreachableError;
16623
16623
  var init_client = __esm(() => {
@@ -16642,7 +16642,7 @@ var init_client = __esm(() => {
16642
16642
  };
16643
16643
  });
16644
16644
 
16645
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/identity.js
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
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/visit.js
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
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/doc/directives.js
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
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/doc/anchors.js
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
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/doc/applyReviver.js
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
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/toJS.js
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
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/Node.js
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
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/Alias.js
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
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/Scalar.js
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
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/doc/createNode.js
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
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/Collection.js
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
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyComment.js
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
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/foldFlowLines.js
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
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyString.js
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
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/stringify.js
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
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyPair.js
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
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/log.js
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
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/merge.js
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
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/addPairToJSMap.js
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
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/Pair.js
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
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyCollection.js
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
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/YAMLMap.js
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
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/common/map.js
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
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/YAMLSeq.js
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
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/common/seq.js
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
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/common/string.js
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
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/common/null.js
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
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/core/bool.js
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
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyNumber.js
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
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/core/float.js
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
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/core/int.js
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
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/core/schema.js
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
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/json/schema.js
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
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/binary.js
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
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/pairs.js
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
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/omap.js
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
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/bool.js
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
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/float.js
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
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/int.js
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
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/set.js
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
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js
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
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/schema.js
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
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/tags.js
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
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/Schema.js
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
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyDocument.js
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
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/doc/Document.js
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
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/errors.js
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
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-props.js
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
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/util-contains-newline.js
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
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/util-flow-indent-check.js
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
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/util-map-includes.js
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
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-block-map.js
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
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-block-seq.js
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
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-end.js
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
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-flow-collection.js
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
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/compose-collection.js
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
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-block-scalar.js
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
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-flow-scalar.js
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
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/compose-scalar.js
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
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/util-empty-scalar-position.js
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
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/compose-node.js
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
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/compose-doc.js
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
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/composer.js
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
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/parse/cst-scalar.js
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
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/parse/cst-stringify.js
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
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/parse/cst-visit.js
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
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/parse/cst.js
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
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/parse/lexer.js
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
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/parse/line-counter.js
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
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/parse/parser.js
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
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/public-api.js
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
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/index.js
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();
@@ -24109,7 +24109,7 @@ var init_schema = __esm(() => {
24109
24109
  });
24110
24110
 
24111
24111
  // ../src/config/paths.ts
24112
- import { existsSync as existsSync7 } from "node:fs";
24112
+ import { existsSync as existsSync8 } from "node:fs";
24113
24113
  import { resolve as resolve2 } from "node:path";
24114
24114
  function home() {
24115
24115
  return process.env.HOME ?? "/root";
@@ -24128,9 +24128,9 @@ function resolveDualPath(pathStr) {
24128
24128
  const absolute = resolve2(h, rest);
24129
24129
  if (rest.startsWith(`${DEFAULT_STATE_DIR}/`)) {
24130
24130
  const frag = rest.slice(DEFAULT_STATE_DIR.length + 1);
24131
- if (!existsSync7(absolute)) {
24131
+ if (!existsSync8(absolute)) {
24132
24132
  const legacy = resolve2(h, LEGACY_STATE_DIR, frag);
24133
- if (existsSync7(legacy)) {
24133
+ if (existsSync8(legacy)) {
24134
24134
  warnLegacyStateOnce(legacy);
24135
24135
  return legacy;
24136
24136
  }
@@ -24155,14 +24155,14 @@ var init_overlay_schema = __esm(() => {
24155
24155
  });
24156
24156
 
24157
24157
  // ../src/config/overlay-loader.ts
24158
- import { existsSync as existsSync8, readFileSync as readFileSync4, readdirSync, statSync as statSync2 } from "node:fs";
24158
+ import { existsSync as existsSync9, readFileSync as readFileSync4, readdirSync, statSync as statSync2 } from "node:fs";
24159
24159
  import { resolve as resolve3 } from "node:path";
24160
24160
  function overlayDirFor(agentName3, subdir) {
24161
24161
  const base = resolveDualPath(`~/.switchroom/agents/${agentName3}/${subdir}`);
24162
24162
  return resolve3(base);
24163
24163
  }
24164
24164
  function listYamlFiles(dir) {
24165
- if (!existsSync8(dir))
24165
+ if (!existsSync9(dir))
24166
24166
  return [];
24167
24167
  let entries;
24168
24168
  try {
@@ -24619,7 +24619,7 @@ function validateNotionWorkspaceConfig(config) {
24619
24619
  }
24620
24620
 
24621
24621
  // ../src/config/loader.ts
24622
- import { readFileSync as readFileSync5, existsSync as existsSync9 } from "node:fs";
24622
+ import { readFileSync as readFileSync5, existsSync as existsSync10 } from "node:fs";
24623
24623
  import { homedir as homedir5 } from "node:os";
24624
24624
  import { resolve as resolve4 } from "node:path";
24625
24625
  function formatZodErrors(error) {
@@ -24686,7 +24686,7 @@ function findConfigFile(startDir) {
24686
24686
  resolve4(userDir, "clerk.yml")
24687
24687
  ].filter(Boolean);
24688
24688
  for (const path of searchPaths) {
24689
- if (existsSync9(path)) {
24689
+ if (existsSync10(path)) {
24690
24690
  return path;
24691
24691
  }
24692
24692
  }
@@ -24694,7 +24694,7 @@ function findConfigFile(startDir) {
24694
24694
  }
24695
24695
  function loadConfig(configPath) {
24696
24696
  const filePath = configPath ?? findConfigFile();
24697
- if (!existsSync9(filePath)) {
24697
+ if (!existsSync10(filePath)) {
24698
24698
  throw new ConfigError(`Config file not found: ${filePath}`);
24699
24699
  }
24700
24700
  let raw;
@@ -24802,7 +24802,7 @@ __export(exports_history, {
24802
24802
  _resetForTests: () => _resetForTests
24803
24803
  });
24804
24804
  import { chmodSync as chmodSync2, mkdirSync as mkdirSync9 } from "fs";
24805
- import { join as join11 } from "path";
24805
+ import { join as join12 } from "path";
24806
24806
  function loadDatabaseClass() {
24807
24807
  if (DatabaseClass != null)
24808
24808
  return DatabaseClass;
@@ -24825,7 +24825,7 @@ function initHistory(stateDir, retentionDays = 30) {
24825
24825
  return;
24826
24826
  const Database = loadDatabaseClass();
24827
24827
  mkdirSync9(stateDir, { recursive: true, mode: 448 });
24828
- const path = join11(stateDir, "history.db");
24828
+ const path = join12(stateDir, "history.db");
24829
24829
  db = new Database(path, { create: true });
24830
24830
  db.exec("PRAGMA journal_mode = WAL");
24831
24831
  db.exec("PRAGMA synchronous = NORMAL");
@@ -25015,11 +25015,11 @@ var DatabaseClass = null, DEFAULT_LIMIT = 10, MAX_LIMIT = 50, db = null;
25015
25015
  var init_history = () => {};
25016
25016
 
25017
25017
  // quota-check.ts
25018
- import { readFileSync as readFileSync8, existsSync as existsSync12 } from "fs";
25019
- import { join as join12 } from "path";
25018
+ import { readFileSync as readFileSync8, existsSync as existsSync13 } from "fs";
25019
+ import { join as join13 } from "path";
25020
25020
  function readOauthToken(claudeConfigDir) {
25021
- const tokenFile = join12(claudeConfigDir, ".oauth-token");
25022
- if (!existsSync12(tokenFile))
25021
+ const tokenFile = join13(claudeConfigDir, ".oauth-token");
25022
+ if (!existsSync13(tokenFile))
25023
25023
  return null;
25024
25024
  try {
25025
25025
  const raw = readFileSync8(tokenFile, "utf-8").trim();
@@ -25501,7 +25501,7 @@ function isDockerRuntime() {
25501
25501
  import * as net3 from "node:net";
25502
25502
  import * as fs from "node:fs";
25503
25503
  import { homedir as homedir7 } from "node:os";
25504
- import { join as join16 } from "node:path";
25504
+ import { join as join17 } from "node:path";
25505
25505
  function defaultBrokerSocketPath() {
25506
25506
  if (fs.existsSync(OPERATOR_SOCKET_PATH))
25507
25507
  return OPERATOR_SOCKET_PATH;
@@ -25510,7 +25510,7 @@ function defaultBrokerSocketPath() {
25510
25510
  return LEGACY_SOCKET_PATH;
25511
25511
  }
25512
25512
  function vaultTokenFilePath(agentSlug) {
25513
- return join16(homedir7(), ".switchroom", "agents", agentSlug, ".vault-token");
25513
+ return join17(homedir7(), ".switchroom", "agents", agentSlug, ".vault-token");
25514
25514
  }
25515
25515
  function readVaultTokenFile(agentSlug) {
25516
25516
  const filePath = vaultTokenFilePath(agentSlug);
@@ -25665,8 +25665,8 @@ var DEFAULT_TIMEOUT_MS3 = 2000, LEGACY_SOCKET_PATH, OPERATOR_SOCKET_PATH;
25665
25665
  var init_client2 = __esm(() => {
25666
25666
  init_protocol2();
25667
25667
  init_peercred();
25668
- LEGACY_SOCKET_PATH = join16(homedir7(), ".switchroom", "vault-broker.sock");
25669
- OPERATOR_SOCKET_PATH = join16(homedir7(), ".switchroom", "broker-operator", "sock");
25668
+ LEGACY_SOCKET_PATH = join17(homedir7(), ".switchroom", "vault-broker.sock");
25669
+ OPERATOR_SOCKET_PATH = join17(homedir7(), ".switchroom", "broker-operator", "sock");
25670
25670
  });
25671
25671
 
25672
25672
  // ../src/drive/deep-links.ts
@@ -25849,7 +25849,7 @@ function deriveSlug(inputs, existing) {
25849
25849
  return `${base}_${n}`;
25850
25850
  }
25851
25851
 
25852
- // ../node_modules/.bun/boundary@2.0.0/node_modules/boundary/lib/index.js
25852
+ // ../../switchroom-sec-1417/node_modules/.bun/boundary@2.0.0/node_modules/boundary/lib/index.js
25853
25853
  var require_lib = __commonJS((exports2) => {
25854
25854
  Object.defineProperty(exports2, "__esModule", { value: true });
25855
25855
  exports2.binarySearch = exports2.upperBound = exports2.lowerBound = exports2.compare = undefined;
@@ -25896,7 +25896,7 @@ var require_lib = __commonJS((exports2) => {
25896
25896
  exports2.binarySearch = binarySearch;
25897
25897
  });
25898
25898
 
25899
- // ../node_modules/.bun/structured-source@4.0.0/node_modules/structured-source/lib/structured-source.js
25899
+ // ../../switchroom-sec-1417/node_modules/.bun/structured-source@4.0.0/node_modules/structured-source/lib/structured-source.js
25900
25900
  var require_structured_source = __commonJS((exports2) => {
25901
25901
  Object.defineProperty(exports2, "__esModule", { value: true });
25902
25902
  exports2.StructuredSource = undefined;
@@ -25951,13 +25951,13 @@ var require_structured_source = __commonJS((exports2) => {
25951
25951
  }
25952
25952
  exports2.StructuredSource = StructuredSource;
25953
25953
  });
25954
- // ../node_modules/.bun/@secretlint+core@12.2.0/node_modules/@secretlint/core/module/SecretLintSourceCodeImpl.js
25954
+ // ../../switchroom-sec-1417/node_modules/.bun/@secretlint+core@12.2.0/node_modules/@secretlint/core/module/SecretLintSourceCodeImpl.js
25955
25955
  var import_structured_source;
25956
25956
  var init_SecretLintSourceCodeImpl = __esm(() => {
25957
25957
  import_structured_source = __toESM(require_structured_source(), 1);
25958
25958
  });
25959
25959
 
25960
- // ../node_modules/.bun/@secretlint+core@12.2.0/node_modules/@secretlint/core/module/helper/promise-event-emitter.js
25960
+ // ../../switchroom-sec-1417/node_modules/.bun/@secretlint+core@12.2.0/node_modules/@secretlint/core/module/helper/promise-event-emitter.js
25961
25961
  class EventEmitter {
25962
25962
  #listeners = new Map;
25963
25963
  on(type, listener) {
@@ -25996,9 +25996,9 @@ class EventEmitter {
25996
25996
  return Array.from(this.#listeners.get(type) ?? []);
25997
25997
  }
25998
25998
  }
25999
- // ../node_modules/.bun/@secretlint+core@12.2.0/node_modules/@secretlint/core/module/RuleContext.js
25999
+ // ../../switchroom-sec-1417/node_modules/.bun/@secretlint+core@12.2.0/node_modules/@secretlint/core/module/RuleContext.js
26000
26000
  var init_RuleContext = () => {};
26001
- // ../node_modules/.bun/@secretlint+profiler@12.2.0/node_modules/@secretlint/profiler/module/index.js
26001
+ // ../../switchroom-sec-1417/node_modules/.bun/@secretlint+profiler@12.2.0/node_modules/@secretlint/profiler/module/index.js
26002
26002
  class SecretLintProfiler {
26003
26003
  perf;
26004
26004
  entries = [];
@@ -26055,7 +26055,7 @@ class SecretLintProfiler {
26055
26055
  }
26056
26056
  }
26057
26057
 
26058
- // ../node_modules/.bun/@secretlint+profiler@12.2.0/node_modules/@secretlint/profiler/module/node.js
26058
+ // ../../switchroom-sec-1417/node_modules/.bun/@secretlint+profiler@12.2.0/node_modules/@secretlint/profiler/module/node.js
26059
26059
  import perf_hooks from "node:perf_hooks";
26060
26060
 
26061
26061
  class NullPerformanceObserver {
@@ -26070,19 +26070,19 @@ var init_node = __esm(() => {
26070
26070
  });
26071
26071
  });
26072
26072
 
26073
- // ../node_modules/.bun/@secretlint+core@12.2.0/node_modules/@secretlint/core/module/RunningEvents.js
26073
+ // ../../switchroom-sec-1417/node_modules/.bun/@secretlint+core@12.2.0/node_modules/@secretlint/core/module/RunningEvents.js
26074
26074
  var init_RunningEvents = __esm(() => {
26075
26075
  init_node();
26076
26076
  });
26077
26077
 
26078
- // ../node_modules/.bun/@secretlint+core@12.2.0/node_modules/@secretlint/core/module/RulePresetContext.js
26078
+ // ../../switchroom-sec-1417/node_modules/.bun/@secretlint+core@12.2.0/node_modules/@secretlint/core/module/RulePresetContext.js
26079
26079
  var init_RulePresetContext = __esm(() => {
26080
26080
  init_RuleContext();
26081
26081
  });
26082
- // ../node_modules/.bun/@secretlint+core@12.2.0/node_modules/@secretlint/core/module/messages/index.js
26082
+ // ../../switchroom-sec-1417/node_modules/.bun/@secretlint+core@12.2.0/node_modules/@secretlint/core/module/messages/index.js
26083
26083
  var init_messages = () => {};
26084
26084
 
26085
- // ../node_modules/.bun/@secretlint+core@12.2.0/node_modules/@secretlint/core/module/index.js
26085
+ // ../../switchroom-sec-1417/node_modules/.bun/@secretlint+core@12.2.0/node_modules/@secretlint/core/module/index.js
26086
26086
  var import_debug, debug;
26087
26087
  var init_module = __esm(() => {
26088
26088
  init_SecretLintSourceCodeImpl();
@@ -26095,7 +26095,7 @@ var init_module = __esm(() => {
26095
26095
  debug = import_debug.default("@secretlint/core");
26096
26096
  });
26097
26097
 
26098
- // ../node_modules/.bun/@secretlint+secretlint-rule-preset-recommend@12.2.0/node_modules/@secretlint/secretlint-rule-preset-recommend/module/index.js
26098
+ // ../../switchroom-sec-1417/node_modules/.bun/@secretlint+secretlint-rule-preset-recommend@12.2.0/node_modules/@secretlint/secretlint-rule-preset-recommend/module/index.js
26099
26099
  function requireLodash_uniq() {
26100
26100
  if (hasRequiredLodash_uniq)
26101
26101
  return lodash_uniq;
@@ -27855,15 +27855,15 @@ function renderAuthLine(state4, agentName3, now = Date.now()) {
27855
27855
  }
27856
27856
 
27857
27857
  // gateway/quota-cache.ts
27858
- import { existsSync as existsSync23, readFileSync as readFileSync22, writeFileSync as writeFileSync13, mkdirSync as mkdirSync11 } from "fs";
27859
- import { join as join20, dirname as dirname8 } from "path";
27858
+ import { existsSync as existsSync24, readFileSync as readFileSync22, writeFileSync as writeFileSync13, mkdirSync as mkdirSync11 } from "fs";
27859
+ import { join as join21, dirname as dirname8 } from "path";
27860
27860
  function defaultCachePath() {
27861
- return process.env.SWITCHROOM_QUOTA_CACHE_PATH ?? join20(process.env.HOME ?? "/tmp", ".switchroom", "quota-cache.json");
27861
+ return process.env.SWITCHROOM_QUOTA_CACHE_PATH ?? join21(process.env.HOME ?? "/tmp", ".switchroom", "quota-cache.json");
27862
27862
  }
27863
27863
  function readQuotaCache(opts = {}) {
27864
27864
  const path = opts.path ?? defaultCachePath();
27865
27865
  const now = opts.now ?? Date.now();
27866
- if (!existsSync23(path))
27866
+ if (!existsSync24(path))
27867
27867
  return null;
27868
27868
  let entry;
27869
27869
  try {
@@ -27904,8 +27904,8 @@ var init_quota_cache = __esm(() => {
27904
27904
  });
27905
27905
 
27906
27906
  // gateway/boot-probes.ts
27907
- import { readFileSync as readFileSync23, readdirSync as readdirSync4, existsSync as existsSync24 } from "fs";
27908
- import { join as join21 } from "path";
27907
+ import { readFileSync as readFileSync23, readdirSync as readdirSync4, existsSync as existsSync25 } from "fs";
27908
+ import { join as join22 } from "path";
27909
27909
  import { execFile as execFileCb } from "child_process";
27910
27910
  import { promisify as promisify3 } from "util";
27911
27911
  async function withTimeout(label, p, timeoutMs = PROBE_TIMEOUT_MS) {
@@ -27947,8 +27947,8 @@ function mapPlan(billingType, hasExtra) {
27947
27947
  }
27948
27948
  async function probeAccount(agentDir) {
27949
27949
  return withTimeout("Account", (async () => {
27950
- const claudeDir = join21(agentDir, ".claude");
27951
- const claudeJsonPath = join21(claudeDir, ".claude.json");
27950
+ const claudeDir = join22(agentDir, ".claude");
27951
+ const claudeJsonPath = join22(claudeDir, ".claude.json");
27952
27952
  let cfg = {};
27953
27953
  try {
27954
27954
  const raw = readFileSync23(claudeJsonPath, "utf8");
@@ -27969,10 +27969,10 @@ async function probeAccount(agentDir) {
27969
27969
  let tokenStr = "";
27970
27970
  let status = "ok";
27971
27971
  for (const candidate of [
27972
- join21(claudeDir, ".oauth-token.meta.json"),
27973
- join21(claudeDir, "accounts", "default", ".oauth-token.meta.json")
27972
+ join22(claudeDir, ".oauth-token.meta.json"),
27973
+ join22(claudeDir, "accounts", "default", ".oauth-token.meta.json")
27974
27974
  ]) {
27975
- if (existsSync24(candidate)) {
27975
+ if (existsSync25(candidate)) {
27976
27976
  try {
27977
27977
  const meta = JSON.parse(readFileSync23(candidate, "utf8"));
27978
27978
  if (meta.expiresAt) {
@@ -28149,7 +28149,7 @@ async function resolveTmuxSupervisorPid(agentName3, execFileImpl) {
28149
28149
  if (!cgroup)
28150
28150
  return null;
28151
28151
  const procsPath = `/sys/fs/cgroup${cgroup}/cgroup.procs`;
28152
- if (!existsSync24(procsPath))
28152
+ if (!existsSync25(procsPath))
28153
28153
  return null;
28154
28154
  const pidsRaw = readFileSync23(procsPath, "utf-8");
28155
28155
  const pids = pidsRaw.split(`
@@ -28356,9 +28356,9 @@ async function probeQuota(claudeConfigDir, _agentDir, fetchImpl = fetch, opts =
28356
28356
  let claudeDirForProbe = null;
28357
28357
  for (const candidate of [
28358
28358
  claudeConfigDir,
28359
- join21(claudeConfigDir, "accounts", "default")
28359
+ join22(claudeConfigDir, "accounts", "default")
28360
28360
  ]) {
28361
- if (existsSync24(join21(candidate, ".oauth-token"))) {
28361
+ if (existsSync25(join22(candidate, ".oauth-token"))) {
28362
28362
  claudeDirForProbe = candidate;
28363
28363
  break;
28364
28364
  }
@@ -28529,7 +28529,7 @@ async function probeUds(label, socketPath, opts = {}) {
28529
28529
  }
28530
28530
  return withTimeout(label, (async () => {
28531
28531
  if (!opts.connectImpl) {
28532
- if (!existsSync24(socketPath)) {
28532
+ if (!existsSync25(socketPath)) {
28533
28533
  return {
28534
28534
  status: "fail",
28535
28535
  label,
@@ -28593,7 +28593,7 @@ async function probeSkills(agentDir, opts = {}) {
28593
28593
  return withTimeout("Skills", (async () => {
28594
28594
  const fs2 = opts.fs ?? realSkillsFs;
28595
28595
  const max = opts.maxNamesShown ?? 3;
28596
- const skillsDir = join21(agentDir, ".claude", "skills");
28596
+ const skillsDir = join22(agentDir, ".claude", "skills");
28597
28597
  if (!fs2.exists(skillsDir)) {
28598
28598
  return { status: "ok", label: "Skills", detail: "no skills dir" };
28599
28599
  }
@@ -28608,17 +28608,17 @@ async function probeSkills(agentDir, opts = {}) {
28608
28608
  }
28609
28609
  const dangling = [];
28610
28610
  for (const name of entries) {
28611
- const skillPath = join21(skillsDir, name);
28611
+ const skillPath = join22(skillsDir, name);
28612
28612
  if (!fs2.exists(skillPath)) {
28613
28613
  dangling.push(name);
28614
28614
  continue;
28615
28615
  }
28616
- const skillMd = join21(skillPath, "SKILL.md");
28616
+ const skillMd = join22(skillPath, "SKILL.md");
28617
28617
  if (!fs2.exists(skillMd) && !fs2.exists(skillPath + ".md")) {
28618
28618
  continue;
28619
28619
  }
28620
28620
  }
28621
- const overlayDir = opts.overlaySkillsDir ?? join21(agentDir, "skills.d");
28621
+ const overlayDir = opts.overlaySkillsDir ?? join22(agentDir, "skills.d");
28622
28622
  const overlaySlugs = new Set;
28623
28623
  if (fs2.exists(overlayDir)) {
28624
28624
  let overlayEntries = [];
@@ -28673,16 +28673,16 @@ var init_boot_probes = __esm(() => {
28673
28673
  const { statSync: statSync7 } = __require("fs");
28674
28674
  return statSync7(p).mtimeMs;
28675
28675
  },
28676
- exists: (p) => existsSync24(p)
28676
+ exists: (p) => existsSync25(p)
28677
28677
  };
28678
28678
  realSkillsFs = {
28679
28679
  readdir: (p) => readdirSync4(p),
28680
- exists: (p) => existsSync24(p)
28680
+ exists: (p) => existsSync25(p)
28681
28681
  };
28682
28682
  });
28683
28683
 
28684
28684
  // gateway/boot-issue-cache.ts
28685
- import { existsSync as existsSync25, readFileSync as readFileSync24, writeFileSync as writeFileSync14, mkdirSync as mkdirSync12, renameSync as renameSync9 } from "fs";
28685
+ import { existsSync as existsSync26, readFileSync as readFileSync24, writeFileSync as writeFileSync14, mkdirSync as mkdirSync12, renameSync as renameSync9 } from "fs";
28686
28686
  import { dirname as dirname9 } from "path";
28687
28687
  function fingerprintProbe(key, r) {
28688
28688
  if (r.status === "ok")
@@ -28762,7 +28762,7 @@ function diffProbes(probes, cache, opts = {}) {
28762
28762
  return out;
28763
28763
  }
28764
28764
  function loadCache(path, now = Date.now) {
28765
- if (!existsSync25(path))
28765
+ if (!existsSync26(path))
28766
28766
  return { ...EMPTY_CACHE, probes: {} };
28767
28767
  let raw;
28768
28768
  try {
@@ -28833,7 +28833,7 @@ __export(exports_boot_card, {
28833
28833
  renderBootCard: () => renderBootCard,
28834
28834
  renderAccountRows: () => renderAuthLine
28835
28835
  });
28836
- import { join as join22 } from "path";
28836
+ import { join as join23 } from "path";
28837
28837
  function resolvePersonaName(slug, loadConfig3) {
28838
28838
  try {
28839
28839
  const config = loadConfig3 ? loadConfig3() : loadConfig();
@@ -28914,7 +28914,7 @@ function renderBootCard(opts) {
28914
28914
  `);
28915
28915
  }
28916
28916
  async function runAllProbes(opts) {
28917
- const claudeDir = join22(opts.agentDir, ".claude");
28917
+ const claudeDir = join23(opts.agentDir, ".claude");
28918
28918
  const probes = {};
28919
28919
  const slug = opts.agentSlug ?? opts.agentName;
28920
28920
  await Promise.allSettled([
@@ -29158,10 +29158,10 @@ import { randomBytes as randomBytes5, scryptSync, createCipheriv, createDecipher
29158
29158
  import {
29159
29159
  readFileSync as readFileSync31,
29160
29160
  writeFileSync as writeFileSync19,
29161
- existsSync as existsSync32,
29161
+ existsSync as existsSync33,
29162
29162
  renameSync as renameSync11,
29163
29163
  mkdirSync as mkdirSync18,
29164
- unlinkSync as unlinkSync12,
29164
+ unlinkSync as unlinkSync13,
29165
29165
  lstatSync,
29166
29166
  realpathSync
29167
29167
  } from "node:fs";
@@ -29196,7 +29196,7 @@ function normalizeSecrets(raw) {
29196
29196
  return out;
29197
29197
  }
29198
29198
  function openVault(passphrase, vaultPath) {
29199
- if (!existsSync32(vaultPath)) {
29199
+ if (!existsSync33(vaultPath)) {
29200
29200
  throw new VaultError(`Vault file not found: ${vaultPath}`);
29201
29201
  }
29202
29202
  let vaultFile;
@@ -29247,15 +29247,15 @@ var init_vault = __esm(() => {
29247
29247
  // ../src/vault/resolver.ts
29248
29248
  import {
29249
29249
  chmodSync as chmodSync4,
29250
- closeSync as closeSync7,
29250
+ closeSync as closeSync8,
29251
29251
  mkdirSync as mkdirSync19,
29252
29252
  mkdtempSync as mkdtempSync2,
29253
- openSync as openSync7,
29253
+ openSync as openSync8,
29254
29254
  rmSync as rmSync3,
29255
29255
  statSync as statSync11,
29256
29256
  writeSync as writeSync2
29257
29257
  } from "node:fs";
29258
- import { join as join31 } from "node:path";
29258
+ import { join as join32 } from "node:path";
29259
29259
  import { tmpdir } from "node:os";
29260
29260
  import { constants as fsConstants } from "node:fs";
29261
29261
  function isVaultReference(value) {
@@ -29307,26 +29307,26 @@ function materializationRoot() {
29307
29307
  return cachedRoot;
29308
29308
  const xdg = process.env.XDG_RUNTIME_DIR;
29309
29309
  if (xdg) {
29310
- const base = join31(xdg, "switchroom", "vault");
29310
+ const base = join32(xdg, "switchroom", "vault");
29311
29311
  mkdirSync19(base, { recursive: true, mode: 448 });
29312
- cachedRoot = mkdtempSync2(join31(base, "run-"));
29312
+ cachedRoot = mkdtempSync2(join32(base, "run-"));
29313
29313
  } else {
29314
- cachedRoot = mkdtempSync2(join31(tmpdir(), "switchroom-vault-"));
29314
+ cachedRoot = mkdtempSync2(join32(tmpdir(), "switchroom-vault-"));
29315
29315
  }
29316
29316
  chmodSync4(cachedRoot, 448);
29317
29317
  return cachedRoot;
29318
29318
  }
29319
29319
  function writeFileExclusive(filePath, content) {
29320
29320
  const buf = typeof content === "string" ? Buffer.from(content, "utf8") : content;
29321
- const fd = openSync7(filePath, fsConstants.O_WRONLY | fsConstants.O_CREAT | fsConstants.O_EXCL, 384);
29321
+ const fd = openSync8(filePath, fsConstants.O_WRONLY | fsConstants.O_CREAT | fsConstants.O_EXCL, 384);
29322
29322
  try {
29323
29323
  writeSync2(fd, buf);
29324
29324
  } finally {
29325
- closeSync7(fd);
29325
+ closeSync8(fd);
29326
29326
  }
29327
29327
  }
29328
29328
  function materializeFilesEntry(key, files) {
29329
- const dir = join31(materializationRoot(), key);
29329
+ const dir = join32(materializationRoot(), key);
29330
29330
  if (materializedDirs.has(dir)) {
29331
29331
  try {
29332
29332
  rmSync3(dir, { recursive: true, force: true });
@@ -29342,7 +29342,7 @@ function materializeFilesEntry(key, files) {
29342
29342
  if (filename.includes("/") || filename.includes("\\") || filename === ".." || filename === "." || filename.includes("\x00")) {
29343
29343
  throw new Error(`Refusing to materialize vault file with unsafe name: ${filename}`);
29344
29344
  }
29345
- const filePath = join31(dir, filename);
29345
+ const filePath = join32(dir, filename);
29346
29346
  const content = encoding === "base64" ? Buffer.from(value, "base64") : value;
29347
29347
  writeFileExclusive(filePath, content);
29348
29348
  }
@@ -29475,7 +29475,7 @@ __export(exports_materialize_bot_token, {
29475
29475
  materializeBotToken: () => materializeBotToken,
29476
29476
  BotTokenMaterializeError: () => BotTokenMaterializeError
29477
29477
  });
29478
- import { existsSync as existsSync33 } from "node:fs";
29478
+ import { existsSync as existsSync34 } from "node:fs";
29479
29479
  function pickConfiguredToken(config, agentName3) {
29480
29480
  if (agentName3) {
29481
29481
  const agent = config.agents?.[agentName3];
@@ -29489,7 +29489,7 @@ function tryDirectVaultRead(ref, config, passphrase) {
29489
29489
  if (!passphrase)
29490
29490
  return null;
29491
29491
  const vaultPath = resolvePath(config.vault?.path ?? "~/.switchroom/vault.enc");
29492
- if (!existsSync33(vaultPath))
29492
+ if (!existsSync34(vaultPath))
29493
29493
  return null;
29494
29494
  try {
29495
29495
  const secrets = openVault(passphrase, vaultPath);
@@ -29794,7 +29794,7 @@ __export(exports_tmux, {
29794
29794
  captureAgentPane: () => captureAgentPane
29795
29795
  });
29796
29796
  import { execFileSync as execFileSync4 } from "node:child_process";
29797
- import { mkdirSync as mkdirSync20, readdirSync as readdirSync6, statSync as statSync12, unlinkSync as unlinkSync13, writeFileSync as writeFileSync20 } from "node:fs";
29797
+ import { mkdirSync as mkdirSync20, readdirSync as readdirSync6, statSync as statSync12, unlinkSync as unlinkSync14, writeFileSync as writeFileSync20 } from "node:fs";
29798
29798
  import { resolve as resolve7 } from "node:path";
29799
29799
  function captureAgentPane(opts) {
29800
29800
  const { agentName: agentName3, agentDir, reason } = opts;
@@ -29908,7 +29908,7 @@ function pruneOldReports(dir, retain) {
29908
29908
  }).sort((a, b) => b.mtimeMs - a.mtimeMs);
29909
29909
  for (const stale of files.slice(retain)) {
29910
29910
  try {
29911
- unlinkSync13(stale.full);
29911
+ unlinkSync14(stale.full);
29912
29912
  } catch {}
29913
29913
  }
29914
29914
  }
@@ -30504,14 +30504,14 @@ import {
30504
30504
  renameSync as renameSync12,
30505
30505
  realpathSync as realpathSync2,
30506
30506
  chmodSync as chmodSync5,
30507
- openSync as openSync8,
30508
- closeSync as closeSync8,
30509
- existsSync as existsSync34,
30510
- unlinkSync as unlinkSync14,
30507
+ openSync as openSync9,
30508
+ closeSync as closeSync9,
30509
+ existsSync as existsSync35,
30510
+ unlinkSync as unlinkSync15,
30511
30511
  appendFileSync as appendFileSync3
30512
30512
  } from "fs";
30513
30513
  import { homedir as homedir12 } from "os";
30514
- import { join as join32, extname, sep as sep3, basename as basename7 } from "path";
30514
+ import { join as join33, extname, sep as sep3, basename as basename7 } from "path";
30515
30515
 
30516
30516
  // plugin-logger.ts
30517
30517
  import { appendFileSync, mkdirSync, renameSync, statSync, existsSync } from "fs";
@@ -32996,7 +32996,7 @@ function clear(key) {
32996
32996
  state.delete(key);
32997
32997
  }
32998
32998
 
32999
- // ../node_modules/.bun/posthog-node@5.29.2/node_modules/posthog-node/dist/extensions/error-tracking/modifiers/module.node.mjs
32999
+ // ../../switchroom-sec-1417/node_modules/.bun/posthog-node@5.29.2/node_modules/posthog-node/dist/extensions/error-tracking/modifiers/module.node.mjs
33000
33000
  import { dirname as dirname2, posix, sep as sep2 } from "path";
33001
33001
  function createModulerModifier() {
33002
33002
  const getModuleFromFileName = createGetModuleFromFilename();
@@ -33032,7 +33032,7 @@ function normalizeWindowsPath(path) {
33032
33032
  return path.replace(/^[A-Z]:/, "").replace(/\\/g, "/");
33033
33033
  }
33034
33034
 
33035
- // ../node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/featureFlagUtils.mjs
33035
+ // ../../switchroom-sec-1417/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/featureFlagUtils.mjs
33036
33036
  var normalizeFlagsResponse = (flagsResponse) => {
33037
33037
  if ("flags" in flagsResponse) {
33038
33038
  const featureFlags = getFlagValuesFromFlags(flagsResponse.flags);
@@ -33103,7 +33103,7 @@ var parsePayload = (response) => {
33103
33103
  }
33104
33104
  };
33105
33105
 
33106
- // ../node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/gzip.mjs
33106
+ // ../../switchroom-sec-1417/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/gzip.mjs
33107
33107
  function isGzipSupported() {
33108
33108
  return "CompressionStream" in globalThis;
33109
33109
  }
@@ -33123,7 +33123,7 @@ async function gzipCompress(input, isDebug = true) {
33123
33123
  }
33124
33124
  }
33125
33125
 
33126
- // ../node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/vendor/uuidv7.mjs
33126
+ // ../../switchroom-sec-1417/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/vendor/uuidv7.mjs
33127
33127
  /*! For license information please see uuidv7.mjs.LICENSE.txt */
33128
33128
  var DIGITS = "0123456789abcdef";
33129
33129
 
@@ -33301,7 +33301,7 @@ var defaultGenerator;
33301
33301
  var uuidv7 = () => uuidv7obj().toString();
33302
33302
  var uuidv7obj = () => (defaultGenerator || (defaultGenerator = new V7Generator)).generate();
33303
33303
 
33304
- // ../node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/types.mjs
33304
+ // ../../switchroom-sec-1417/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/types.mjs
33305
33305
  var types_PostHogPersistedProperty = /* @__PURE__ */ function(PostHogPersistedProperty) {
33306
33306
  PostHogPersistedProperty["AnonymousId"] = "anonymous_id";
33307
33307
  PostHogPersistedProperty["DistinctId"] = "distinct_id";
@@ -33334,7 +33334,7 @@ var types_PostHogPersistedProperty = /* @__PURE__ */ function(PostHogPersistedPr
33334
33334
  return PostHogPersistedProperty;
33335
33335
  }({});
33336
33336
 
33337
- // ../node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/utils/bot-detection.mjs
33337
+ // ../../switchroom-sec-1417/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/utils/bot-detection.mjs
33338
33338
  var DEFAULT_BLOCKED_UA_STRS = [
33339
33339
  "amazonbot",
33340
33340
  "amazonproductbot",
@@ -33423,7 +33423,7 @@ var isBlockedUA = function(ua, customBlockedUserAgents = []) {
33423
33423
  return uaLower.indexOf(blockedUaLower) !== -1;
33424
33424
  });
33425
33425
  };
33426
- // ../node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/utils/type-utils.mjs
33426
+ // ../../switchroom-sec-1417/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/utils/type-utils.mjs
33427
33427
  var nativeIsArray = Array.isArray;
33428
33428
  var ObjProto = Object.prototype;
33429
33429
  var type_utils_hasOwnProperty = ObjProto.hasOwnProperty;
@@ -33460,7 +33460,7 @@ function isInstanceOf(candidate, base) {
33460
33460
  }
33461
33461
  }
33462
33462
 
33463
- // ../node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/utils/number-utils.mjs
33463
+ // ../../switchroom-sec-1417/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/utils/number-utils.mjs
33464
33464
  function clampToRange(value, min, max, logger, fallbackValue) {
33465
33465
  if (min > max) {
33466
33466
  logger.warn("min cannot be greater than max.");
@@ -33480,7 +33480,7 @@ function clampToRange(value, min, max, logger, fallbackValue) {
33480
33480
  return clampToRange(fallbackValue || max, min, max, logger);
33481
33481
  }
33482
33482
 
33483
- // ../node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/utils/bucketed-rate-limiter.mjs
33483
+ // ../../switchroom-sec-1417/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/utils/bucketed-rate-limiter.mjs
33484
33484
  var ONE_DAY_IN_MS = 86400000;
33485
33485
 
33486
33486
  class BucketedRateLimiter {
@@ -33524,7 +33524,7 @@ class BucketedRateLimiter {
33524
33524
  this._buckets = {};
33525
33525
  }
33526
33526
  }
33527
- // ../node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/utils/promise-queue.mjs
33527
+ // ../../switchroom-sec-1417/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/utils/promise-queue.mjs
33528
33528
  class PromiseQueue {
33529
33529
  add(promise) {
33530
33530
  const promiseUUID = uuidv7();
@@ -33550,7 +33550,7 @@ class PromiseQueue {
33550
33550
  this.promiseByIds = {};
33551
33551
  }
33552
33552
  }
33553
- // ../node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/utils/logger.mjs
33553
+ // ../../switchroom-sec-1417/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/utils/logger.mjs
33554
33554
  function createConsole(consoleLike = console) {
33555
33555
  const lockedMethods = {
33556
33556
  log: consoleLike.log.bind(consoleLike),
@@ -33588,7 +33588,7 @@ var passThrough = (fn) => fn();
33588
33588
  function createLogger(prefix, maybeCall = passThrough) {
33589
33589
  return _createLogger(prefix, maybeCall, createConsole());
33590
33590
  }
33591
- // ../node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/utils/user-agent-utils.mjs
33591
+ // ../../switchroom-sec-1417/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/utils/user-agent-utils.mjs
33592
33592
  var MOBILE = "Mobile";
33593
33593
  var IOS = "iOS";
33594
33594
  var ANDROID = "Android";
@@ -33845,7 +33845,7 @@ var osMatchers = [
33845
33845
  ]
33846
33846
  ];
33847
33847
 
33848
- // ../node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/utils/index.mjs
33848
+ // ../../switchroom-sec-1417/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/utils/index.mjs
33849
33849
  var STRING_FORMAT = "utf8";
33850
33850
  function assert(truthyValue, message) {
33851
33851
  if (!truthyValue || typeof truthyValue != "string" || isEmpty(truthyValue))
@@ -33893,7 +33893,7 @@ function allSettled(promises) {
33893
33893
  reason
33894
33894
  }))));
33895
33895
  }
33896
- // ../node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/eventemitter.mjs
33896
+ // ../../switchroom-sec-1417/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/eventemitter.mjs
33897
33897
  class SimpleEventEmitter {
33898
33898
  constructor() {
33899
33899
  this.events = {};
@@ -33915,7 +33915,7 @@ class SimpleEventEmitter {
33915
33915
  }
33916
33916
  }
33917
33917
 
33918
- // ../node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/posthog-core-stateless.mjs
33918
+ // ../../switchroom-sec-1417/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/posthog-core-stateless.mjs
33919
33919
  class PostHogFetchHttpError extends Error {
33920
33920
  constructor(response, reqByteLength) {
33921
33921
  super("HTTP error while fetching PostHog: status=" + response.status + ", reqByteLength=" + reqByteLength), this.response = response, this.reqByteLength = reqByteLength, this.name = "PostHogFetchHttpError";
@@ -34630,7 +34630,7 @@ class PostHogCoreStateless {
34630
34630
  return this.shutdownPromise;
34631
34631
  }
34632
34632
  }
34633
- // ../node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/index.mjs
34633
+ // ../../switchroom-sec-1417/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/index.mjs
34634
34634
  var exports_error_tracking = {};
34635
34635
  __export(exports_error_tracking, {
34636
34636
  winjsStackLineParser: () => winjsStackLineParser,
@@ -34654,7 +34654,7 @@ __export(exports_error_tracking, {
34654
34654
  DOMExceptionCoercer: () => DOMExceptionCoercer
34655
34655
  });
34656
34656
 
34657
- // ../node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/chunk-ids.mjs
34657
+ // ../../switchroom-sec-1417/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/chunk-ids.mjs
34658
34658
  var parsedStackResults;
34659
34659
  var lastKeysCount;
34660
34660
  var cachedFilenameChunkIds;
@@ -34693,7 +34693,7 @@ function getFilenameToChunkIdMap(stackParser) {
34693
34693
  return cachedFilenameChunkIds;
34694
34694
  }
34695
34695
 
34696
- // ../node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/error-properties-builder.mjs
34696
+ // ../../switchroom-sec-1417/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/error-properties-builder.mjs
34697
34697
  var MAX_CAUSE_RECURSION = 4;
34698
34698
 
34699
34699
  class ErrorPropertiesBuilder {
@@ -34815,7 +34815,7 @@ class ErrorPropertiesBuilder {
34815
34815
  return context;
34816
34816
  }
34817
34817
  }
34818
- // ../node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/parsers/base.mjs
34818
+ // ../../switchroom-sec-1417/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/parsers/base.mjs
34819
34819
  var UNKNOWN_FUNCTION = "?";
34820
34820
  function createFrame(platform, filename, func, lineno, colno) {
34821
34821
  const frame = {
@@ -34831,7 +34831,7 @@ function createFrame(platform, filename, func, lineno, colno) {
34831
34831
  return frame;
34832
34832
  }
34833
34833
 
34834
- // ../node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/parsers/safari.mjs
34834
+ // ../../switchroom-sec-1417/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/parsers/safari.mjs
34835
34835
  var extractSafariExtensionDetails = (func, filename) => {
34836
34836
  const isSafariExtension = func.indexOf("safari-extension") !== -1;
34837
34837
  const isSafariWebExtension = func.indexOf("safari-web-extension") !== -1;
@@ -34844,7 +34844,7 @@ var extractSafariExtensionDetails = (func, filename) => {
34844
34844
  ];
34845
34845
  };
34846
34846
 
34847
- // ../node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/parsers/chrome.mjs
34847
+ // ../../switchroom-sec-1417/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/parsers/chrome.mjs
34848
34848
  var chromeRegexNoFnName = /^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i;
34849
34849
  var chromeRegex = /^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i;
34850
34850
  var chromeEvalRegex = /\((\S*)(?::(\d+))(?::(\d+))\)/;
@@ -34870,7 +34870,7 @@ var chromeStackLineParser = (line, platform) => {
34870
34870
  }
34871
34871
  };
34872
34872
 
34873
- // ../node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/parsers/gecko.mjs
34873
+ // ../../switchroom-sec-1417/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/parsers/gecko.mjs
34874
34874
  var geckoREgex = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i;
34875
34875
  var geckoEvalRegex = /(\S+) line (\d+)(?: > eval line \d+)* > eval/i;
34876
34876
  var geckoStackLineParser = (line, platform) => {
@@ -34893,14 +34893,14 @@ var geckoStackLineParser = (line, platform) => {
34893
34893
  }
34894
34894
  };
34895
34895
 
34896
- // ../node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/parsers/winjs.mjs
34896
+ // ../../switchroom-sec-1417/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/parsers/winjs.mjs
34897
34897
  var winjsRegex = /^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i;
34898
34898
  var winjsStackLineParser = (line, platform) => {
34899
34899
  const parts = winjsRegex.exec(line);
34900
34900
  return parts ? createFrame(platform, parts[2], parts[1] || UNKNOWN_FUNCTION, +parts[3], parts[4] ? +parts[4] : undefined) : undefined;
34901
34901
  };
34902
34902
 
34903
- // ../node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/parsers/opera.mjs
34903
+ // ../../switchroom-sec-1417/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/parsers/opera.mjs
34904
34904
  var opera10Regex = / line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i;
34905
34905
  var opera10StackLineParser = (line, platform) => {
34906
34906
  const parts = opera10Regex.exec(line);
@@ -34912,7 +34912,7 @@ var opera11StackLineParser = (line, platform) => {
34912
34912
  return parts ? createFrame(platform, parts[5], parts[3] || parts[4] || UNKNOWN_FUNCTION, +parts[1], +parts[2]) : undefined;
34913
34913
  };
34914
34914
 
34915
- // ../node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/parsers/node.mjs
34915
+ // ../../switchroom-sec-1417/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/parsers/node.mjs
34916
34916
  var FILENAME_MATCH = /^\s*[-]{4,}$/;
34917
34917
  var FULL_MATCH = /at (?:async )?(?:(.+?)\s+\()?(?:(.+):(\d+):(\d+)?|([^)]+))\)?/;
34918
34918
  var nodeStackLineParser = (line, platform) => {
@@ -34981,7 +34981,7 @@ function _parseIntOrUndefined(input) {
34981
34981
  return parseInt(input || "", 10) || undefined;
34982
34982
  }
34983
34983
 
34984
- // ../node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/parsers/index.mjs
34984
+ // ../../switchroom-sec-1417/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/parsers/index.mjs
34985
34985
  var WEBPACK_ERROR_REGEXP = /\(error: (.*)\)/;
34986
34986
  var STACKTRACE_FRAME_LIMIT = 50;
34987
34987
  function reverseAndStripFrames(stack) {
@@ -35026,7 +35026,7 @@ function createStackParser(platform, ...parsers) {
35026
35026
  return reverseAndStripFrames(frames);
35027
35027
  };
35028
35028
  }
35029
- // ../node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/coercers/dom-exception-coercer.mjs
35029
+ // ../../switchroom-sec-1417/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/coercers/dom-exception-coercer.mjs
35030
35030
  class DOMExceptionCoercer {
35031
35031
  match(err) {
35032
35032
  return this.isDOMException(err) || this.isDOMError(err);
@@ -35056,7 +35056,7 @@ class DOMExceptionCoercer {
35056
35056
  return isBuiltin(err, "DOMError");
35057
35057
  }
35058
35058
  }
35059
- // ../node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/coercers/error-coercer.mjs
35059
+ // ../../switchroom-sec-1417/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/coercers/error-coercer.mjs
35060
35060
  class ErrorCoercer {
35061
35061
  match(err) {
35062
35062
  return isPlainError(err);
@@ -35083,7 +35083,7 @@ class ErrorCoercer {
35083
35083
  return err.stacktrace || err.stack || undefined;
35084
35084
  }
35085
35085
  }
35086
- // ../node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/coercers/error-event-coercer.mjs
35086
+ // ../../switchroom-sec-1417/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/coercers/error-event-coercer.mjs
35087
35087
  class ErrorEventCoercer {
35088
35088
  constructor() {}
35089
35089
  match(err) {
@@ -35101,7 +35101,7 @@ class ErrorEventCoercer {
35101
35101
  return exceptionLike;
35102
35102
  }
35103
35103
  }
35104
- // ../node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/coercers/string-coercer.mjs
35104
+ // ../../switchroom-sec-1417/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/coercers/string-coercer.mjs
35105
35105
  var ERROR_TYPES_PATTERN = /^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;
35106
35106
 
35107
35107
  class StringCoercer {
@@ -35131,7 +35131,7 @@ class StringCoercer {
35131
35131
  ];
35132
35132
  }
35133
35133
  }
35134
- // ../node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/types.mjs
35134
+ // ../../switchroom-sec-1417/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/types.mjs
35135
35135
  var severityLevels = [
35136
35136
  "fatal",
35137
35137
  "error",
@@ -35141,7 +35141,7 @@ var severityLevels = [
35141
35141
  "debug"
35142
35142
  ];
35143
35143
 
35144
- // ../node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/coercers/utils.mjs
35144
+ // ../../switchroom-sec-1417/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/coercers/utils.mjs
35145
35145
  function extractExceptionKeysForMessage(err, maxLength = 40) {
35146
35146
  const keys = Object.keys(err);
35147
35147
  keys.sort();
@@ -35158,7 +35158,7 @@ function extractExceptionKeysForMessage(err, maxLength = 40) {
35158
35158
  return "";
35159
35159
  }
35160
35160
 
35161
- // ../node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/coercers/object-coercer.mjs
35161
+ // ../../switchroom-sec-1417/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/coercers/object-coercer.mjs
35162
35162
  class ObjectCoercer {
35163
35163
  match(candidate) {
35164
35164
  return typeof candidate == "object" && candidate !== null;
@@ -35211,7 +35211,7 @@ class ObjectCoercer {
35211
35211
  }
35212
35212
  }
35213
35213
  }
35214
- // ../node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/coercers/event-coercer.mjs
35214
+ // ../../switchroom-sec-1417/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/coercers/event-coercer.mjs
35215
35215
  class EventCoercer {
35216
35216
  match(err) {
35217
35217
  return isEvent(err);
@@ -35226,7 +35226,7 @@ class EventCoercer {
35226
35226
  };
35227
35227
  }
35228
35228
  }
35229
- // ../node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/coercers/primitive-coercer.mjs
35229
+ // ../../switchroom-sec-1417/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/coercers/primitive-coercer.mjs
35230
35230
  class PrimitiveCoercer {
35231
35231
  match(candidate) {
35232
35232
  return isPrimitive(candidate);
@@ -35240,7 +35240,7 @@ class PrimitiveCoercer {
35240
35240
  };
35241
35241
  }
35242
35242
  }
35243
- // ../node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/coercers/promise-rejection-event.mjs
35243
+ // ../../switchroom-sec-1417/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/coercers/promise-rejection-event.mjs
35244
35244
  class PromiseRejectionEventCoercer {
35245
35245
  match(err) {
35246
35246
  return isBuiltin(err, "PromiseRejectionEvent") || this.isCustomEventWrappingRejection(err);
@@ -35276,7 +35276,7 @@ class PromiseRejectionEventCoercer {
35276
35276
  return error;
35277
35277
  }
35278
35278
  }
35279
- // ../node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/utils.mjs
35279
+ // ../../switchroom-sec-1417/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/utils.mjs
35280
35280
  class ReduceableCache {
35281
35281
  constructor(_maxSize) {
35282
35282
  this._maxSize = _maxSize;
@@ -35301,7 +35301,7 @@ class ReduceableCache {
35301
35301
  }
35302
35302
  }
35303
35303
  }
35304
- // ../node_modules/.bun/posthog-node@5.29.2/node_modules/posthog-node/dist/extensions/error-tracking/modifiers/context-lines.node.mjs
35304
+ // ../../switchroom-sec-1417/node_modules/.bun/posthog-node@5.29.2/node_modules/posthog-node/dist/extensions/error-tracking/modifiers/context-lines.node.mjs
35305
35305
  import { createReadStream } from "node:fs";
35306
35306
  import { createInterface } from "node:readline";
35307
35307
  var LRU_FILE_CONTENTS_CACHE = new exports_error_tracking.ReduceableCache(25);
@@ -35519,7 +35519,7 @@ function snipLine(line, colno) {
35519
35519
  return newLine;
35520
35520
  }
35521
35521
 
35522
- // ../node_modules/.bun/posthog-node@5.29.2/node_modules/posthog-node/dist/extensions/error-tracking/autocapture.mjs
35522
+ // ../../switchroom-sec-1417/node_modules/.bun/posthog-node@5.29.2/node_modules/posthog-node/dist/extensions/error-tracking/autocapture.mjs
35523
35523
  function makeUncaughtExceptionHandler(captureFn, onFatalFn) {
35524
35524
  let calledFatalError = false;
35525
35525
  return Object.assign((error) => {
@@ -35551,7 +35551,7 @@ function addUnhandledRejectionListener(captureFn) {
35551
35551
  }));
35552
35552
  }
35553
35553
 
35554
- // ../node_modules/.bun/posthog-node@5.29.2/node_modules/posthog-node/dist/extensions/error-tracking/index.mjs
35554
+ // ../../switchroom-sec-1417/node_modules/.bun/posthog-node@5.29.2/node_modules/posthog-node/dist/extensions/error-tracking/index.mjs
35555
35555
  var SHUTDOWN_TIMEOUT = 2000;
35556
35556
 
35557
35557
  class ErrorTracking {
@@ -35620,10 +35620,10 @@ class ErrorTracking {
35620
35620
  }
35621
35621
  }
35622
35622
 
35623
- // ../node_modules/.bun/posthog-node@5.29.2/node_modules/posthog-node/dist/version.mjs
35623
+ // ../../switchroom-sec-1417/node_modules/.bun/posthog-node@5.29.2/node_modules/posthog-node/dist/version.mjs
35624
35624
  var version = "5.29.2";
35625
35625
 
35626
- // ../node_modules/.bun/posthog-node@5.29.2/node_modules/posthog-node/dist/types.mjs
35626
+ // ../../switchroom-sec-1417/node_modules/.bun/posthog-node@5.29.2/node_modules/posthog-node/dist/types.mjs
35627
35627
  var FeatureFlagError2 = {
35628
35628
  ERRORS_WHILE_COMPUTING: "errors_while_computing_flags",
35629
35629
  FLAG_MISSING: "flag_missing",
@@ -35631,7 +35631,7 @@ var FeatureFlagError2 = {
35631
35631
  UNKNOWN_ERROR: "unknown_error"
35632
35632
  };
35633
35633
 
35634
- // ../node_modules/.bun/posthog-node@5.29.2/node_modules/posthog-node/dist/extensions/feature-flags/crypto.mjs
35634
+ // ../../switchroom-sec-1417/node_modules/.bun/posthog-node@5.29.2/node_modules/posthog-node/dist/extensions/feature-flags/crypto.mjs
35635
35635
  async function hashSHA1(text) {
35636
35636
  const subtle = globalThis.crypto?.subtle;
35637
35637
  if (!subtle)
@@ -35641,7 +35641,7 @@ async function hashSHA1(text) {
35641
35641
  return hashArray.map((byte) => byte.toString(16).padStart(2, "0")).join("");
35642
35642
  }
35643
35643
 
35644
- // ../node_modules/.bun/posthog-node@5.29.2/node_modules/posthog-node/dist/extensions/feature-flags/feature-flags.mjs
35644
+ // ../../switchroom-sec-1417/node_modules/.bun/posthog-node@5.29.2/node_modules/posthog-node/dist/extensions/feature-flags/feature-flags.mjs
35645
35645
  var SIXTY_SECONDS = 60000;
35646
35646
  var LONG_SCALE = 1152921504606847000;
35647
35647
  var NULL_VALUES_ALLOWED_OPERATORS = [
@@ -36515,7 +36515,7 @@ function relativeDateParseForFeatureFlagMatching(value) {
36515
36515
  }
36516
36516
  }
36517
36517
 
36518
- // ../node_modules/.bun/posthog-node@5.29.2/node_modules/posthog-node/dist/storage-memory.mjs
36518
+ // ../../switchroom-sec-1417/node_modules/.bun/posthog-node@5.29.2/node_modules/posthog-node/dist/storage-memory.mjs
36519
36519
  class PostHogMemoryStorage {
36520
36520
  getProperty(key) {
36521
36521
  return this._memoryStorage[key];
@@ -36528,7 +36528,7 @@ class PostHogMemoryStorage {
36528
36528
  }
36529
36529
  }
36530
36530
 
36531
- // ../node_modules/.bun/posthog-node@5.29.2/node_modules/posthog-node/dist/client.mjs
36531
+ // ../../switchroom-sec-1417/node_modules/.bun/posthog-node@5.29.2/node_modules/posthog-node/dist/client.mjs
36532
36532
  var MINIMUM_POLLING_INTERVAL = 100;
36533
36533
  var THIRTY_SECONDS = 30000;
36534
36534
  var MAX_CACHE_SIZE = 50000;
@@ -37316,7 +37316,7 @@ class PostHogBackendClient extends PostHogCoreStateless {
37316
37316
  }
37317
37317
  }
37318
37318
 
37319
- // ../node_modules/.bun/posthog-node@5.29.2/node_modules/posthog-node/dist/extensions/context/context.mjs
37319
+ // ../../switchroom-sec-1417/node_modules/.bun/posthog-node@5.29.2/node_modules/posthog-node/dist/extensions/context/context.mjs
37320
37320
  import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
37321
37321
 
37322
37322
  class PostHogContext {
@@ -37347,7 +37347,7 @@ class PostHogContext {
37347
37347
  }
37348
37348
  }
37349
37349
 
37350
- // ../node_modules/.bun/posthog-node@5.29.2/node_modules/posthog-node/dist/extensions/sentry-integration.mjs
37350
+ // ../../switchroom-sec-1417/node_modules/.bun/posthog-node@5.29.2/node_modules/posthog-node/dist/extensions/sentry-integration.mjs
37351
37351
  var NAME = "posthog-node";
37352
37352
  function createEventProcessor(_posthog, { organization, projectId, prefix, severityAllowList = [
37353
37353
  "error"
@@ -37415,7 +37415,7 @@ class PostHogSentryIntegration {
37415
37415
  };
37416
37416
  }
37417
37417
  }
37418
- // ../node_modules/.bun/posthog-node@5.29.2/node_modules/posthog-node/dist/entrypoints/index.node.mjs
37418
+ // ../../switchroom-sec-1417/node_modules/.bun/posthog-node@5.29.2/node_modules/posthog-node/dist/entrypoints/index.node.mjs
37419
37419
  ErrorTracking.errorPropertiesBuilder = new exports_error_tracking.ErrorPropertiesBuilder([
37420
37420
  new exports_error_tracking.EventCoercer,
37421
37421
  new exports_error_tracking.ErrorCoercer,
@@ -37753,6 +37753,7 @@ function classifyInbound(text) {
37753
37753
  // silence-poke.ts
37754
37754
  var DEFAULT_THRESHOLDS = {
37755
37755
  ack: 1e4,
37756
+ awarenessPing: 60000,
37756
37757
  soft: 75000,
37757
37758
  firm: 180000,
37758
37759
  fallback: 300000,
@@ -37779,6 +37780,7 @@ function startTurn(key, now) {
37779
37780
  lastThinkingAt: null,
37780
37781
  fallbackFired: false,
37781
37782
  ackPokeFired: false,
37783
+ awarenessPingFired: false,
37782
37784
  lastPokeFiredAt: null,
37783
37785
  inFlightTools: new Map
37784
37786
  });
@@ -37896,6 +37898,42 @@ function tick(now) {
37896
37898
  });
37897
37899
  continue;
37898
37900
  }
37901
+ if (!s.awarenessPingFired && s.lastOutboundAt == null && !s.subagentDispatchActive && silence >= thresholds.awarenessPing) {
37902
+ s.awarenessPingFired = true;
37903
+ const { chatId, threadId } = parseKey(key);
37904
+ const recentThinking = s.lastThinkingAt != null && now - s.lastThinkingAt < 30000;
37905
+ const fallbackKind = recentThinking ? "thinking" : "working";
37906
+ const inFlightTools = Array.from(s.inFlightTools.values()).sort((a, b) => a.startedAt - b.startedAt).map((t) => ({
37907
+ name: t.name,
37908
+ label: t.label,
37909
+ durationMs: now - t.startedAt
37910
+ }));
37911
+ activeDeps.emitMetric({
37912
+ kind: "awareness_ping_sent",
37913
+ key,
37914
+ fallback_kind: fallbackKind,
37915
+ silence_ms: silence
37916
+ });
37917
+ try {
37918
+ const ret = activeDeps.onAwarenessPing({
37919
+ key,
37920
+ chatId,
37921
+ threadId,
37922
+ fallbackKind,
37923
+ silenceMs: silence,
37924
+ inFlightTools
37925
+ });
37926
+ if (ret != null && typeof ret.then === "function") {
37927
+ ret.catch((err) => {
37928
+ process.stderr.write(`silence-poke: awareness-ping handler rejected: ${err}
37929
+ `);
37930
+ });
37931
+ }
37932
+ } catch (err) {
37933
+ process.stderr.write(`silence-poke: awareness-ping handler threw: ${err}
37934
+ `);
37935
+ }
37936
+ }
37899
37937
  if (s.pokesFired === 0 && silence >= softThreshold) {
37900
37938
  s.pokeArmed = { level: "soft" };
37901
37939
  s.pokesFired = 1;
@@ -38218,6 +38256,45 @@ function recordSilentTurnEnd(args, deps) {
38218
38256
  }
38219
38257
  var recordUndeliveredTurnEnd = recordSilentTurnEnd;
38220
38258
 
38259
+ // ack-flag.ts
38260
+ import { closeSync, existsSync as existsSync6, openSync, unlinkSync as unlinkSync2 } from "node:fs";
38261
+ import { join as join7 } from "node:path";
38262
+ var ACK_SENT_MARKER = "ack-sent.flag";
38263
+ function markerPath() {
38264
+ const dir = process.env.TELEGRAM_STATE_DIR;
38265
+ if (!dir)
38266
+ return null;
38267
+ return join7(dir, ACK_SENT_MARKER);
38268
+ }
38269
+ function markAckSent() {
38270
+ const path = markerPath();
38271
+ if (path == null)
38272
+ return;
38273
+ if (existsSync6(path))
38274
+ return;
38275
+ try {
38276
+ const fd = openSync(path, "w");
38277
+ closeSync(fd);
38278
+ } catch (err) {
38279
+ process.stderr.write(`ack-flag: markAckSent failed path=${path}: ${err}
38280
+ `);
38281
+ }
38282
+ }
38283
+ function clearAckSent() {
38284
+ const path = markerPath();
38285
+ if (path == null)
38286
+ return;
38287
+ try {
38288
+ unlinkSync2(path);
38289
+ } catch (err) {
38290
+ const code = err?.code;
38291
+ if (code === "ENOENT")
38292
+ return;
38293
+ process.stderr.write(`ack-flag: clearAckSent failed path=${path}: ${err}
38294
+ `);
38295
+ }
38296
+ }
38297
+
38221
38298
  // final-answer-detect.ts
38222
38299
  var FINAL_ANSWER_MIN_CHARS = 200;
38223
38300
  function isFinalAnswerReply(input) {
@@ -38641,7 +38718,7 @@ async function gatewayStartupRetry(fn, opts = {}) {
38641
38718
 
38642
38719
  // gateway/quarantine.ts
38643
38720
  import { mkdirSync as mkdirSync6, writeFileSync as writeFileSync4 } from "node:fs";
38644
- import { join as join7 } from "node:path";
38721
+ import { join as join8 } from "node:path";
38645
38722
  var QUARANTINE_FILENAME = "quarantine.json";
38646
38723
  function writeQuarantineMarker(telegramStateDir, reason, detail, nowFn = Date.now) {
38647
38724
  mkdirSync6(telegramStateDir, { recursive: true, mode: 448 });
@@ -38651,7 +38728,7 @@ function writeQuarantineMarker(telegramStateDir, reason, detail, nowFn = Date.no
38651
38728
  ts: nowFn(),
38652
38729
  detail
38653
38730
  };
38654
- writeFileSync4(join7(telegramStateDir, QUARANTINE_FILENAME), JSON.stringify(marker) + `
38731
+ writeFileSync4(join8(telegramStateDir, QUARANTINE_FILENAME), JSON.stringify(marker) + `
38655
38732
  `, "utf-8");
38656
38733
  }
38657
38734
 
@@ -39536,7 +39613,7 @@ import * as net2 from "node:net";
39536
39613
  init_protocol();
39537
39614
  import { homedir as homedir4 } from "node:os";
39538
39615
  import { randomUUID as randomUUID4 } from "node:crypto";
39539
- import { join as join9 } from "node:path";
39616
+ import { join as join10 } from "node:path";
39540
39617
  var DEFAULT_TIMEOUT_MS2 = 5000;
39541
39618
  function reviveDate2(v) {
39542
39619
  if (v == null)
@@ -39547,7 +39624,7 @@ function reviveDate2(v) {
39547
39624
  return Number.isNaN(d.getTime()) ? null : d;
39548
39625
  }
39549
39626
  function operatorSocketPath2(home = homedir4()) {
39550
- return join9(home, ".switchroom", "state", "auth-broker-operator", "sock");
39627
+ return join10(home, ".switchroom", "state", "auth-broker-operator", "sock");
39551
39628
  }
39552
39629
  function resolveAuthBrokerSocketPath2(opts) {
39553
39630
  if (opts?.socket)
@@ -39879,16 +39956,16 @@ function createFleetFallbackGate(opts) {
39879
39956
 
39880
39957
  // gateway/auth-add-flow.ts
39881
39958
  import { spawn } from "node:child_process";
39882
- import { existsSync as existsSync11, mkdirSync as mkdirSync8, readFileSync as readFileSync7, rmSync as rmSync2 } from "node:fs";
39959
+ import { existsSync as existsSync12, mkdirSync as mkdirSync8, readFileSync as readFileSync7, rmSync as rmSync2 } from "node:fs";
39883
39960
  import { homedir as homedir6 } from "node:os";
39884
- import { join as join10 } from "node:path";
39961
+ import { join as join11 } from "node:path";
39885
39962
  import { randomBytes as randomBytes2 } from "node:crypto";
39886
39963
 
39887
39964
  // ../src/auth/manager.ts
39888
39965
  import {
39889
39966
  readFileSync as readFileSync6,
39890
39967
  readdirSync as readdirSync2,
39891
- existsSync as existsSync10,
39968
+ existsSync as existsSync11,
39892
39969
  writeFileSync as writeFileSync5,
39893
39970
  mkdirSync as mkdirSync7,
39894
39971
  mkdtempSync,
@@ -39915,7 +39992,7 @@ function parseSetupTokenUrl(output) {
39915
39992
  }
39916
39993
  function readTokenFromCredentialsFile(credentialsFilePath) {
39917
39994
  try {
39918
- if (!existsSync10(credentialsFilePath))
39995
+ if (!existsSync11(credentialsFilePath))
39919
39996
  return null;
39920
39997
  const raw = readFileSync6(credentialsFilePath, "utf-8");
39921
39998
  const parsed = JSON.parse(raw);
@@ -39934,7 +40011,7 @@ function readTokenFromCredentialsFile(credentialsFilePath) {
39934
40011
  var pendingAuthAddFlows = new Map;
39935
40012
  function pickScratchDir(label, home2 = homedir6()) {
39936
40013
  const suffix = randomBytes2(8).toString("hex");
39937
- return join10(home2, ".switchroom", "accounts", ".in-progress", `${label}-${suffix}`);
40014
+ return join11(home2, ".switchroom", "accounts", ".in-progress", `${label}-${suffix}`);
39938
40015
  }
39939
40016
  function cleanScratchDir(scratchDir) {
39940
40017
  try {
@@ -39995,7 +40072,7 @@ async function startAccountAuthSession(label, opts = {}) {
39995
40072
  async function submitAccountAuthCode(flow, code, opts = {}) {
39996
40073
  const pollIntervalMs = opts.pollIntervalMs ?? 250;
39997
40074
  const pollTimeoutMs = opts.pollTimeoutMs ?? 120000;
39998
- const credentialsPath = join10(flow.scratchDir, ".credentials.json");
40075
+ const credentialsPath = join11(flow.scratchDir, ".credentials.json");
39999
40076
  if (!flow.child.stdin || flow.child.stdin.destroyed) {
40000
40077
  cleanScratchDir(flow.scratchDir);
40001
40078
  throw new Error("claude setup-token process stdin is not writable (child may have exited)");
@@ -40005,7 +40082,7 @@ async function submitAccountAuthCode(flow, code, opts = {}) {
40005
40082
  const deadline = Date.now() + pollTimeoutMs;
40006
40083
  while (Date.now() < deadline) {
40007
40084
  await new Promise((r) => setTimeout(r, pollIntervalMs));
40008
- if (existsSync11(credentialsPath)) {
40085
+ if (existsSync12(credentialsPath)) {
40009
40086
  const token = readTokenFromCredentialsFile(credentialsPath);
40010
40087
  if (token) {
40011
40088
  try {
@@ -41565,8 +41642,8 @@ function isTurnFlushSafetyEnabled(env = process.env) {
41565
41642
  }
41566
41643
 
41567
41644
  // handoff-continuity.ts
41568
- import { readFileSync as readFileSync9, unlinkSync as unlinkSync2, existsSync as existsSync13, writeFileSync as writeFileSync6, renameSync as renameSync2 } from "node:fs";
41569
- import { dirname as dirname7, join as join13 } from "node:path";
41645
+ import { readFileSync as readFileSync9, unlinkSync as unlinkSync3, existsSync as existsSync14, writeFileSync as writeFileSync6, renameSync as renameSync2 } from "node:fs";
41646
+ import { dirname as dirname7, join as join14 } from "node:path";
41570
41647
  var TOPIC_DISPLAY_MAX = 117;
41571
41648
  var HANDOFF_TOPIC_FILENAME = ".handoff-topic";
41572
41649
  var LAST_TURN_SUMMARY_FILENAME = ".last-turn-summary";
@@ -41577,8 +41654,8 @@ function resolveAgentDirFromEnv() {
41577
41654
  return dirname7(state3);
41578
41655
  }
41579
41656
  function readHandoffTopic(agentDir) {
41580
- const p = join13(agentDir, HANDOFF_TOPIC_FILENAME);
41581
- if (!existsSync13(p))
41657
+ const p = join14(agentDir, HANDOFF_TOPIC_FILENAME);
41658
+ if (!existsSync14(p))
41582
41659
  return null;
41583
41660
  let raw;
41584
41661
  try {
@@ -41596,8 +41673,8 @@ function readHandoffTopic(agentDir) {
41596
41673
  return topic;
41597
41674
  }
41598
41675
  function readLastTurnSummary(agentDir) {
41599
- const p = join13(agentDir, LAST_TURN_SUMMARY_FILENAME);
41600
- if (!existsSync13(p))
41676
+ const p = join14(agentDir, LAST_TURN_SUMMARY_FILENAME);
41677
+ if (!existsSync14(p))
41601
41678
  return null;
41602
41679
  let raw;
41603
41680
  try {
@@ -41616,16 +41693,16 @@ function readLastTurnSummary(agentDir) {
41616
41693
  }
41617
41694
  function consumeHandoffTopic(agentDir) {
41618
41695
  const primary = readHandoffTopic(agentDir);
41619
- const primaryPath = join13(agentDir, HANDOFF_TOPIC_FILENAME);
41620
- const fallbackPath = join13(agentDir, LAST_TURN_SUMMARY_FILENAME);
41696
+ const primaryPath = join14(agentDir, HANDOFF_TOPIC_FILENAME);
41697
+ const fallbackPath = join14(agentDir, LAST_TURN_SUMMARY_FILENAME);
41621
41698
  const removeFallback = () => {
41622
41699
  try {
41623
- unlinkSync2(fallbackPath);
41700
+ unlinkSync3(fallbackPath);
41624
41701
  } catch {}
41625
41702
  };
41626
41703
  if (primary !== null) {
41627
41704
  try {
41628
- unlinkSync2(primaryPath);
41705
+ unlinkSync3(primaryPath);
41629
41706
  } catch {}
41630
41707
  removeFallback();
41631
41708
  return primary;
@@ -41670,15 +41747,15 @@ function escapeMarkdownV2(s) {
41670
41747
  }
41671
41748
 
41672
41749
  // active-reactions.ts
41673
- import { readFileSync as readFileSync10, writeFileSync as writeFileSync7, renameSync as renameSync3, existsSync as existsSync14, unlinkSync as unlinkSync3 } from "node:fs";
41674
- import { join as join14 } from "node:path";
41750
+ import { readFileSync as readFileSync10, writeFileSync as writeFileSync7, renameSync as renameSync3, existsSync as existsSync15, unlinkSync as unlinkSync4 } from "node:fs";
41751
+ import { join as join15 } from "node:path";
41675
41752
  var ACTIVE_REACTIONS_FILENAME = ".active-reactions.json";
41676
41753
  function reactionsPath(agentDir) {
41677
- return join14(agentDir, ACTIVE_REACTIONS_FILENAME);
41754
+ return join15(agentDir, ACTIVE_REACTIONS_FILENAME);
41678
41755
  }
41679
41756
  function readActiveReactions(agentDir) {
41680
41757
  const p = reactionsPath(agentDir);
41681
- if (!existsSync14(p))
41758
+ if (!existsSync15(p))
41682
41759
  return [];
41683
41760
  let raw;
41684
41761
  try {
@@ -41708,7 +41785,7 @@ function writeActiveReactions(agentDir, reactions) {
41708
41785
  const p = reactionsPath(agentDir);
41709
41786
  if (reactions.length === 0) {
41710
41787
  try {
41711
- unlinkSync3(p);
41788
+ unlinkSync4(p);
41712
41789
  } catch {}
41713
41790
  return;
41714
41791
  }
@@ -41733,20 +41810,20 @@ function removeActiveReaction(agentDir, chatId, messageId) {
41733
41810
  }
41734
41811
  function clearActiveReactions(agentDir) {
41735
41812
  try {
41736
- unlinkSync3(reactionsPath(agentDir));
41813
+ unlinkSync4(reactionsPath(agentDir));
41737
41814
  } catch {}
41738
41815
  }
41739
41816
 
41740
41817
  // active-reactions.ts
41741
- import { readFileSync as readFileSync11, writeFileSync as writeFileSync8, renameSync as renameSync4, existsSync as existsSync15, unlinkSync as unlinkSync4 } from "node:fs";
41742
- import { join as join15 } from "node:path";
41818
+ import { readFileSync as readFileSync11, writeFileSync as writeFileSync8, renameSync as renameSync4, existsSync as existsSync16, unlinkSync as unlinkSync5 } from "node:fs";
41819
+ import { join as join16 } from "node:path";
41743
41820
  var ACTIVE_REACTIONS_FILENAME2 = ".active-reactions.json";
41744
41821
  function reactionsPath2(agentDir) {
41745
- return join15(agentDir, ACTIVE_REACTIONS_FILENAME2);
41822
+ return join16(agentDir, ACTIVE_REACTIONS_FILENAME2);
41746
41823
  }
41747
41824
  function readActiveReactions2(agentDir) {
41748
41825
  const p = reactionsPath2(agentDir);
41749
- if (!existsSync15(p))
41826
+ if (!existsSync16(p))
41750
41827
  return [];
41751
41828
  let raw;
41752
41829
  try {
@@ -41774,7 +41851,7 @@ function readActiveReactions2(agentDir) {
41774
41851
  }
41775
41852
  function clearActiveReactions2(agentDir) {
41776
41853
  try {
41777
- unlinkSync4(reactionsPath2(agentDir));
41854
+ unlinkSync5(reactionsPath2(agentDir));
41778
41855
  } catch {}
41779
41856
  }
41780
41857
 
@@ -42627,14 +42704,14 @@ async function approvalRecord(args, opts) {
42627
42704
  }
42628
42705
 
42629
42706
  // quota-check.ts
42630
- import { readFileSync as readFileSync13, existsSync as existsSync17 } from "fs";
42631
- import { join as join17 } from "path";
42707
+ import { readFileSync as readFileSync13, existsSync as existsSync18 } from "fs";
42708
+ import { join as join18 } from "path";
42632
42709
  var OAUTH_BETA2 = "oauth-2025-04-20";
42633
42710
  var DEFAULT_USER_AGENT2 = "claude-cli/1.0.0 (external, cli)";
42634
42711
  var DEFAULT_PROBE_MODEL2 = "claude-haiku-4-5-20251001";
42635
42712
  function readOauthToken2(claudeConfigDir) {
42636
- const tokenFile = join17(claudeConfigDir, ".oauth-token");
42637
- if (!existsSync17(tokenFile))
42713
+ const tokenFile = join18(claudeConfigDir, ".oauth-token");
42714
+ if (!existsSync18(tokenFile))
42638
42715
  return null;
42639
42716
  try {
42640
42717
  const raw = readFileSync13(tokenFile, "utf-8").trim();
@@ -43233,7 +43310,7 @@ init_schema();
43233
43310
  init_paths();
43234
43311
  init_overlay_loader();
43235
43312
  init_merge();
43236
- import { readFileSync as readFileSync14, existsSync as existsSync18 } from "node:fs";
43313
+ import { readFileSync as readFileSync14, existsSync as existsSync19 } from "node:fs";
43237
43314
  import { homedir as homedir8 } from "node:os";
43238
43315
  import { resolve as resolve5 } from "node:path";
43239
43316
 
@@ -43309,7 +43386,7 @@ function findConfigFile2(startDir) {
43309
43386
  resolve5(userDir, "clerk.yml")
43310
43387
  ].filter(Boolean);
43311
43388
  for (const path of searchPaths) {
43312
- if (existsSync18(path)) {
43389
+ if (existsSync19(path)) {
43313
43390
  return path;
43314
43391
  }
43315
43392
  }
@@ -43317,7 +43394,7 @@ function findConfigFile2(startDir) {
43317
43394
  }
43318
43395
  function loadConfig2(configPath) {
43319
43396
  const filePath = configPath ?? findConfigFile2();
43320
- if (!existsSync18(filePath)) {
43397
+ if (!existsSync19(filePath)) {
43321
43398
  throw new ConfigError2(`Config file not found: ${filePath}`);
43322
43399
  }
43323
43400
  let raw;
@@ -43750,9 +43827,9 @@ function resolveOutboundTopic(config, event) {
43750
43827
  }
43751
43828
 
43752
43829
  // ../src/agents/perf.ts
43753
- import { existsSync as existsSync19, readFileSync as readFileSync15 } from "node:fs";
43830
+ import { existsSync as existsSync20, readFileSync as readFileSync15 } from "node:fs";
43754
43831
  function readTurnUsages(jsonlPath, lastN) {
43755
- if (!existsSync19(jsonlPath))
43832
+ if (!existsSync20(jsonlPath))
43756
43833
  return [];
43757
43834
  if (lastN <= 0)
43758
43835
  return [];
@@ -43896,7 +43973,7 @@ function nextCompactNotify(state3, ev) {
43896
43973
  }
43897
43974
 
43898
43975
  // gateway/hostd-dispatch.ts
43899
- import { existsSync as existsSync20 } from "node:fs";
43976
+ import { existsSync as existsSync21 } from "node:fs";
43900
43977
  import { randomBytes as randomBytes3 } from "node:crypto";
43901
43978
 
43902
43979
  // ../src/host-control/client.ts
@@ -44187,13 +44264,13 @@ function hostdSocketPath(agentName3) {
44187
44264
  function hostdWillBeUsed(agentName3) {
44188
44265
  if (!isHostdEnabled())
44189
44266
  return false;
44190
- return existsSync20(hostdSocketPath(agentName3));
44267
+ return existsSync21(hostdSocketPath(agentName3));
44191
44268
  }
44192
44269
  async function tryHostdDispatch(agentName3, req) {
44193
44270
  if (!isHostdEnabled())
44194
44271
  return "not-configured";
44195
44272
  const sockPath = hostdSocketPath(agentName3);
44196
- if (!existsSync20(sockPath))
44273
+ if (!existsSync21(sockPath))
44197
44274
  return "not-configured";
44198
44275
  try {
44199
44276
  return await hostdRequest({ socketPath: sockPath, timeoutMs: 5000 }, req);
@@ -44217,7 +44294,7 @@ async function hostdGetStatusOnce(agentName3, targetRequestId) {
44217
44294
  if (!isHostdEnabled())
44218
44295
  return "not-configured";
44219
44296
  const sockPath = hostdSocketPath(agentName3);
44220
- if (!existsSync20(sockPath))
44297
+ if (!existsSync21(sockPath))
44221
44298
  return "not-configured";
44222
44299
  try {
44223
44300
  const resp = await hostdRequest({ socketPath: sockPath, timeoutMs: 3000 }, {
@@ -44238,7 +44315,7 @@ async function pollHostdStatus(agentName3, targetRequestId, opts) {
44238
44315
  if (!isHostdEnabled())
44239
44316
  return "not-configured";
44240
44317
  const sockPath = hostdSocketPath(agentName3);
44241
- if (!existsSync20(sockPath))
44318
+ if (!existsSync21(sockPath))
44242
44319
  return "not-configured";
44243
44320
  const now = opts.now ?? Date.now;
44244
44321
  const sleep2 = opts.sleep ?? ((ms) => new Promise((r) => setTimeout(r, ms)));
@@ -44316,7 +44393,7 @@ function shouldSweepChatAtBoot(chatId) {
44316
44393
  }
44317
44394
 
44318
44395
  // gateway/ipc-server.ts
44319
- import { renameSync as renameSync5, unlinkSync as unlinkSync5 } from "fs";
44396
+ import { renameSync as renameSync5, unlinkSync as unlinkSync6 } from "fs";
44320
44397
  var MAX_BUFFER_SIZE = 1024 * 1024;
44321
44398
  var VALID_OPERATOR_KINDS = new Set([
44322
44399
  "credentials-expired",
@@ -44434,7 +44511,7 @@ function createIpcServer(options) {
44434
44511
  renameSync5(socketPath, socketPath + ".bak");
44435
44512
  } catch {}
44436
44513
  try {
44437
- unlinkSync5(socketPath + ".bak");
44514
+ unlinkSync6(socketPath + ".bak");
44438
44515
  } catch {}
44439
44516
  const clients = new Set;
44440
44517
  const agentIndex = new Map;
@@ -46497,7 +46574,7 @@ function escapeBody(s) {
46497
46574
  }
46498
46575
 
46499
46576
  // gateway/pid-file.ts
46500
- import { writeFileSync as writeFileSync9, readFileSync as readFileSync16, unlinkSync as unlinkSync6, renameSync as renameSync6 } from "node:fs";
46577
+ import { writeFileSync as writeFileSync9, readFileSync as readFileSync16, unlinkSync as unlinkSync7, renameSync as renameSync6 } from "node:fs";
46501
46578
  function writePidFile(path, record) {
46502
46579
  const tmp = `${path}.tmp-${process.pid}-${Date.now()}`;
46503
46580
  writeFileSync9(tmp, JSON.stringify(record), "utf-8");
@@ -46505,7 +46582,7 @@ function writePidFile(path, record) {
46505
46582
  }
46506
46583
  function clearPidFile(path) {
46507
46584
  try {
46508
- unlinkSync6(path);
46585
+ unlinkSync7(path);
46509
46586
  } catch {}
46510
46587
  }
46511
46588
 
@@ -46722,7 +46799,7 @@ function safeCount(fn) {
46722
46799
  }
46723
46800
 
46724
46801
  // gateway/session-marker.ts
46725
- import { writeFileSync as writeFileSync10, readFileSync as readFileSync18, renameSync as renameSync7, unlinkSync as unlinkSync7 } from "node:fs";
46802
+ import { writeFileSync as writeFileSync10, readFileSync as readFileSync18, renameSync as renameSync7, unlinkSync as unlinkSync8 } from "node:fs";
46726
46803
  function writeSessionMarker(path, marker) {
46727
46804
  const tmp = `${path}.tmp-${process.pid}-${Date.now()}`;
46728
46805
  writeFileSync10(tmp, JSON.stringify(marker), "utf-8");
@@ -46752,7 +46829,7 @@ function shouldFireRestartBanner(input) {
46752
46829
  }
46753
46830
 
46754
46831
  // gateway/clean-shutdown-marker.ts
46755
- import { writeFileSync as writeFileSync11, readFileSync as readFileSync19, renameSync as renameSync8, unlinkSync as unlinkSync8 } from "node:fs";
46832
+ import { writeFileSync as writeFileSync11, readFileSync as readFileSync19, renameSync as renameSync8, unlinkSync as unlinkSync9 } from "node:fs";
46756
46833
  var DEFAULT_MAX_AGE_MS = 60000;
46757
46834
  function writeCleanShutdownMarker(path, marker) {
46758
46835
  const tmp = `${path}.tmp-${process.pid}-${Date.now()}`;
@@ -46776,7 +46853,7 @@ function readCleanShutdownMarker(path) {
46776
46853
  }
46777
46854
  function clearCleanShutdownMarker(path) {
46778
46855
  try {
46779
- unlinkSync8(path);
46856
+ unlinkSync9(path);
46780
46857
  } catch {}
46781
46858
  }
46782
46859
  function shouldSuppressRecoveryBanner(marker, now, maxAgeMs = DEFAULT_MAX_AGE_MS) {
@@ -47556,16 +47633,16 @@ function classifyAdminGate(text, myAgentName) {
47556
47633
 
47557
47634
  // subagent-watcher.ts
47558
47635
  import {
47559
- existsSync as existsSync22,
47560
- openSync as openSync2,
47636
+ existsSync as existsSync23,
47637
+ openSync as openSync3,
47561
47638
  readSync,
47562
47639
  statSync as statSync6,
47563
- closeSync as closeSync2,
47640
+ closeSync as closeSync3,
47564
47641
  watch,
47565
47642
  readdirSync as readdirSync3,
47566
47643
  readFileSync as readFileSync21
47567
47644
  } from "fs";
47568
- import { join as join19 } from "path";
47645
+ import { join as join20 } from "path";
47569
47646
 
47570
47647
  // operator-events.ts
47571
47648
  var DEFAULT_OPERATOR_EVENT_COOLDOWN_MS2 = 5 * 60000;
@@ -47807,29 +47884,29 @@ function bumpSubagentActivity(db2, args) {
47807
47884
 
47808
47885
  // gateway/turn-active-marker.ts
47809
47886
  import {
47810
- closeSync,
47811
- existsSync as existsSync21,
47887
+ closeSync as closeSync2,
47888
+ existsSync as existsSync22,
47812
47889
  mkdirSync as mkdirSync10,
47813
- openSync,
47890
+ openSync as openSync2,
47814
47891
  readFileSync as readFileSync20,
47815
47892
  statSync as statSync5,
47816
- unlinkSync as unlinkSync9,
47893
+ unlinkSync as unlinkSync10,
47817
47894
  utimesSync,
47818
47895
  writeFileSync as writeFileSync12
47819
47896
  } from "node:fs";
47820
- import { join as join18 } from "node:path";
47897
+ import { join as join19 } from "node:path";
47821
47898
  var TURN_ACTIVE_MARKER_FILE = "turn-active.json";
47822
47899
  function touchTurnActiveMarker(stateDir) {
47823
- const path = join18(stateDir, TURN_ACTIVE_MARKER_FILE);
47824
- if (!existsSync21(path))
47900
+ const path = join19(stateDir, TURN_ACTIVE_MARKER_FILE);
47901
+ if (!existsSync22(path))
47825
47902
  return;
47826
47903
  const now = new Date;
47827
47904
  try {
47828
47905
  utimesSync(path, now, now);
47829
47906
  } catch {
47830
47907
  try {
47831
- const fd = openSync(path, "r+");
47832
- closeSync(fd);
47908
+ const fd = openSync2(path, "r+");
47909
+ closeSync2(fd);
47833
47910
  } catch {}
47834
47911
  }
47835
47912
  }
@@ -48043,11 +48120,11 @@ function startSubagentWatcher(config) {
48043
48120
  clearTimeout(ref.ref);
48044
48121
  });
48045
48122
  const fs2 = config.fs ?? {
48046
- existsSync: existsSync22,
48123
+ existsSync: existsSync23,
48047
48124
  readdirSync: readdirSync3,
48048
48125
  statSync: statSync6,
48049
- openSync: openSync2,
48050
- closeSync: closeSync2,
48126
+ openSync: openSync3,
48127
+ closeSync: closeSync3,
48051
48128
  readSync,
48052
48129
  watch
48053
48130
  };
@@ -48277,8 +48354,8 @@ function startSubagentWatcher(config) {
48277
48354
  function rescanSubagentDirs() {
48278
48355
  if (stopped)
48279
48356
  return;
48280
- const claudeHome = join19(agentDir, ".claude");
48281
- const projectsRoot = join19(claudeHome, "projects");
48357
+ const claudeHome = join20(agentDir, ".claude");
48358
+ const projectsRoot = join20(claudeHome, "projects");
48282
48359
  if (!fs2.existsSync(projectsRoot))
48283
48360
  return;
48284
48361
  let projectDirs;
@@ -48295,7 +48372,7 @@ function startSubagentWatcher(config) {
48295
48372
  }
48296
48373
  continue;
48297
48374
  }
48298
- const projectPath = join19(projectsRoot, pDir);
48375
+ const projectPath = join20(projectsRoot, pDir);
48299
48376
  let sessionDirs;
48300
48377
  try {
48301
48378
  sessionDirs = fs2.readdirSync(projectPath);
@@ -48305,7 +48382,7 @@ function startSubagentWatcher(config) {
48305
48382
  for (const sDir of sessionDirs) {
48306
48383
  if (sDir.endsWith(".jsonl"))
48307
48384
  continue;
48308
- const subagentsPath = join19(projectPath, sDir, "subagents");
48385
+ const subagentsPath = join20(projectPath, sDir, "subagents");
48309
48386
  if (!fs2.existsSync(subagentsPath))
48310
48387
  continue;
48311
48388
  if (!dirWatchers.has(subagentsPath)) {
@@ -48313,7 +48390,7 @@ function startSubagentWatcher(config) {
48313
48390
  const w = fs2.watch(subagentsPath, (_event, filename) => {
48314
48391
  if (!filename || !filename.toString().startsWith("agent-") || !filename.toString().endsWith(".jsonl"))
48315
48392
  return;
48316
- const filePath = join19(subagentsPath, filename.toString());
48393
+ const filePath = join20(subagentsPath, filename.toString());
48317
48394
  if (!knownFiles.has(filePath)) {
48318
48395
  scanSubagentsDir(subagentsPath);
48319
48396
  }
@@ -48338,7 +48415,7 @@ function startSubagentWatcher(config) {
48338
48415
  for (const e of entries) {
48339
48416
  if (!e.startsWith("agent-") || !e.endsWith(".jsonl"))
48340
48417
  continue;
48341
- const filePath = join19(subagentsPath, e);
48418
+ const filePath = join20(subagentsPath, e);
48342
48419
  if (knownFiles.has(filePath))
48343
48420
  continue;
48344
48421
  const agentId = e.slice("agent-".length, -".jsonl".length);
@@ -48455,15 +48532,15 @@ function determineRestartReason(opts) {
48455
48532
  init_boot_card();
48456
48533
 
48457
48534
  // gateway/update-announce.ts
48458
- import { existsSync as existsSync26, mkdirSync as mkdirSync13, openSync as openSync3, closeSync as closeSync3, readFileSync as readFileSync25 } from "node:fs";
48459
- import { join as join24 } from "node:path";
48535
+ import { existsSync as existsSync27, mkdirSync as mkdirSync13, openSync as openSync4, closeSync as closeSync4, readFileSync as readFileSync25 } from "node:fs";
48536
+ import { join as join25 } from "node:path";
48460
48537
  import { homedir as homedir10 } from "node:os";
48461
48538
 
48462
48539
  // ../src/host-control/audit-reader.ts
48463
48540
  import { homedir as homedir9 } from "node:os";
48464
- import { join as join23 } from "node:path";
48541
+ import { join as join24 } from "node:path";
48465
48542
  function defaultAuditLogPath(home2 = homedir9()) {
48466
- return join23(home2, ".switchroom", "host-control-audit.log");
48543
+ return join24(home2, ".switchroom", "host-control-audit.log");
48467
48544
  }
48468
48545
  function parseAuditLine(line) {
48469
48546
  const trimmed = line.trim();
@@ -48569,7 +48646,7 @@ function readAndFilter(raw, filters, limit) {
48569
48646
  var DEFAULT_LOOKBACK_MS = 10 * 60 * 1000;
48570
48647
  function readLastTerminalUpdateAudit(opts = {}) {
48571
48648
  const path = opts.auditLogPath ?? defaultAuditLogPath();
48572
- const exists = opts.exists ?? existsSync26;
48649
+ const exists = opts.exists ?? existsSync27;
48573
48650
  const readFile = opts.readFile ?? ((p) => readFileSync25(p, "utf-8"));
48574
48651
  if (!exists(path))
48575
48652
  return null;
@@ -48631,18 +48708,18 @@ function renderUpdateOutcomeLine(entry) {
48631
48708
  `);
48632
48709
  }
48633
48710
  function claimUpdateAnnouncement(requestId, opts = {}) {
48634
- const stateDir = opts.stateDir ?? process.env.TELEGRAM_STATE_DIR ?? join24(homedir10(), ".switchroom");
48635
- const dir = join24(stateDir, "update-announced");
48711
+ const stateDir = opts.stateDir ?? process.env.TELEGRAM_STATE_DIR ?? join25(homedir10(), ".switchroom");
48712
+ const dir = join25(stateDir, "update-announced");
48636
48713
  try {
48637
48714
  mkdirSync13(dir, { recursive: true });
48638
48715
  } catch {
48639
48716
  return false;
48640
48717
  }
48641
48718
  const safeId = requestId.replace(/[^A-Za-z0-9_.-]/g, "_").slice(0, 200);
48642
- const path = join24(dir, safeId);
48719
+ const path = join25(dir, safeId);
48643
48720
  try {
48644
- const fd = openSync3(path, "wx");
48645
- closeSync3(fd);
48721
+ const fd = openSync4(path, "wx");
48722
+ closeSync4(fd);
48646
48723
  return true;
48647
48724
  } catch {
48648
48725
  return false;
@@ -48859,24 +48936,24 @@ function createIssuesCardHandle(opts) {
48859
48936
  }
48860
48937
 
48861
48938
  // issues-watcher.ts
48862
- import { existsSync as existsSync28, statSync as statSync8 } from "node:fs";
48863
- import { join as join26 } from "node:path";
48939
+ import { existsSync as existsSync29, statSync as statSync8 } from "node:fs";
48940
+ import { join as join27 } from "node:path";
48864
48941
 
48865
48942
  // ../src/issues/store.ts
48866
48943
  import {
48867
- closeSync as closeSync4,
48868
- existsSync as existsSync27,
48944
+ closeSync as closeSync5,
48945
+ existsSync as existsSync28,
48869
48946
  mkdirSync as mkdirSync14,
48870
- openSync as openSync4,
48947
+ openSync as openSync5,
48871
48948
  readdirSync as readdirSync5,
48872
48949
  readFileSync as readFileSync27,
48873
48950
  renameSync as renameSync10,
48874
48951
  statSync as statSync7,
48875
- unlinkSync as unlinkSync10,
48952
+ unlinkSync as unlinkSync11,
48876
48953
  writeFileSync as writeFileSync16,
48877
48954
  writeSync
48878
48955
  } from "node:fs";
48879
- import { join as join25 } from "node:path";
48956
+ import { join as join26 } from "node:path";
48880
48957
  import { randomBytes as randomBytes4 } from "node:crypto";
48881
48958
  import { execSync } from "node:child_process";
48882
48959
 
@@ -48892,8 +48969,8 @@ var SEVERITY_RANK2 = {
48892
48969
  var ISSUES_FILE = "issues.jsonl";
48893
48970
  var ISSUES_LOCK = "issues.lock";
48894
48971
  function readAll(stateDir) {
48895
- const path = join25(stateDir, ISSUES_FILE);
48896
- if (!existsSync27(path))
48972
+ const path = join26(stateDir, ISSUES_FILE);
48973
+ if (!existsSync28(path))
48897
48974
  return [];
48898
48975
  let raw;
48899
48976
  try {
@@ -48929,7 +49006,7 @@ function list(stateDir, opts = {}) {
48929
49006
  });
48930
49007
  }
48931
49008
  function resolve6(stateDir, fingerprint, nowFn = Date.now) {
48932
- if (!existsSync27(join25(stateDir, ISSUES_FILE)))
49009
+ if (!existsSync28(join26(stateDir, ISSUES_FILE)))
48933
49010
  return 0;
48934
49011
  return withLock(stateDir, () => {
48935
49012
  const all = readAll(stateDir);
@@ -48947,7 +49024,7 @@ function resolve6(stateDir, fingerprint, nowFn = Date.now) {
48947
49024
  });
48948
49025
  }
48949
49026
  function writeAll(stateDir, events) {
48950
- const path = join25(stateDir, ISSUES_FILE);
49027
+ const path = join26(stateDir, ISSUES_FILE);
48951
49028
  sweepOrphanTmpFiles(stateDir);
48952
49029
  const tmp = `${path}.tmp-${process.pid}-${randomBytes4(4).toString("hex")}`;
48953
49030
  const body = events.length === 0 ? "" : events.map((e) => JSON.stringify(e)).join(`
@@ -48969,11 +49046,11 @@ function sweepOrphanTmpFiles(stateDir) {
48969
49046
  for (const entry of entries) {
48970
49047
  if (!entry.startsWith(TMP_PREFIX))
48971
49048
  continue;
48972
- const tmpPath2 = join25(stateDir, entry);
49049
+ const tmpPath2 = join26(stateDir, entry);
48973
49050
  try {
48974
49051
  const stat = statSync7(tmpPath2);
48975
49052
  if (stat.mtimeMs < cutoff) {
48976
- unlinkSync10(tmpPath2);
49053
+ unlinkSync11(tmpPath2);
48977
49054
  }
48978
49055
  } catch {}
48979
49056
  }
@@ -48981,12 +49058,12 @@ function sweepOrphanTmpFiles(stateDir) {
48981
49058
  var LOCK_RETRY_MS = 25;
48982
49059
  var LOCK_TIMEOUT_MS = 1e4;
48983
49060
  function withLock(stateDir, fn) {
48984
- const lockPath = join25(stateDir, ISSUES_LOCK);
49061
+ const lockPath = join26(stateDir, ISSUES_LOCK);
48985
49062
  const startedAt = Date.now();
48986
49063
  let fd = null;
48987
49064
  while (fd === null) {
48988
49065
  try {
48989
- fd = openSync4(lockPath, "wx");
49066
+ fd = openSync5(lockPath, "wx");
48990
49067
  try {
48991
49068
  writeSync(fd, String(process.pid));
48992
49069
  } catch {}
@@ -49006,10 +49083,10 @@ function withLock(stateDir, fn) {
49006
49083
  return fn();
49007
49084
  } finally {
49008
49085
  try {
49009
- closeSync4(fd);
49086
+ closeSync5(fd);
49010
49087
  } catch {}
49011
49088
  try {
49012
- unlinkSync10(lockPath);
49089
+ unlinkSync11(lockPath);
49013
49090
  } catch {}
49014
49091
  }
49015
49092
  }
@@ -49023,13 +49100,13 @@ function tryStealStaleLock(lockPath) {
49023
49100
  const pid = Number(pidStr);
49024
49101
  if (!Number.isFinite(pid) || pid <= 0) {
49025
49102
  try {
49026
- unlinkSync10(lockPath);
49103
+ unlinkSync11(lockPath);
49027
49104
  } catch {}
49028
49105
  return true;
49029
49106
  }
49030
49107
  if (pid === process.pid) {
49031
49108
  try {
49032
- unlinkSync10(lockPath);
49109
+ unlinkSync11(lockPath);
49033
49110
  } catch {}
49034
49111
  return true;
49035
49112
  }
@@ -49044,7 +49121,7 @@ function tryStealStaleLock(lockPath) {
49044
49121
  return false;
49045
49122
  }
49046
49123
  try {
49047
- unlinkSync10(lockPath);
49124
+ unlinkSync11(lockPath);
49048
49125
  } catch {}
49049
49126
  return true;
49050
49127
  }
@@ -49066,7 +49143,7 @@ function isIssueEvent(v) {
49066
49143
  // issues-watcher.ts
49067
49144
  var DEFAULT_POLL_INTERVAL_MS2 = 2000;
49068
49145
  function startIssuesWatcher(opts) {
49069
- const path = join26(opts.stateDir, ISSUES_FILE);
49146
+ const path = join27(opts.stateDir, ISSUES_FILE);
49070
49147
  const log = opts.log ?? (() => {});
49071
49148
  const intervalMs = opts.pollIntervalMs ?? DEFAULT_POLL_INTERVAL_MS2;
49072
49149
  const setIntervalFn = opts.setInterval ?? setInterval;
@@ -49114,7 +49191,7 @@ function startIssuesWatcher(opts) {
49114
49191
  };
49115
49192
  }
49116
49193
  function defaultSignatureProvider(path) {
49117
- if (!existsSync28(path))
49194
+ if (!existsSync29(path))
49118
49195
  return null;
49119
49196
  try {
49120
49197
  const stat = statSync8(path);
@@ -49354,8 +49431,8 @@ function skillBasenameFromPath2(input) {
49354
49431
  }
49355
49432
 
49356
49433
  // credits-watch.ts
49357
- import { readFileSync as readFileSync28, writeFileSync as writeFileSync17, existsSync as existsSync29, mkdirSync as mkdirSync15 } from "fs";
49358
- import { join as join27 } from "path";
49434
+ import { readFileSync as readFileSync28, writeFileSync as writeFileSync17, existsSync as existsSync30, mkdirSync as mkdirSync15 } from "fs";
49435
+ import { join as join28 } from "path";
49359
49436
  var STATE_FILE = "credits-watch.json";
49360
49437
  var FATAL_REASONS = new Set([
49361
49438
  "out_of_credits",
@@ -49367,8 +49444,8 @@ function emptyCreditState() {
49367
49444
  return { lastNotifiedReason: null, lastNotifiedAt: 0 };
49368
49445
  }
49369
49446
  function readClaudeJsonOverage(claudeConfigDir) {
49370
- const path = join27(claudeConfigDir, ".claude.json");
49371
- if (!existsSync29(path))
49447
+ const path = join28(claudeConfigDir, ".claude.json");
49448
+ if (!existsSync30(path))
49372
49449
  return null;
49373
49450
  let raw;
49374
49451
  try {
@@ -49452,8 +49529,8 @@ function escapeHtml10(s) {
49452
49529
  return s.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;");
49453
49530
  }
49454
49531
  function loadCreditState(stateDir) {
49455
- const path = join27(stateDir, STATE_FILE);
49456
- if (!existsSync29(path))
49532
+ const path = join28(stateDir, STATE_FILE);
49533
+ if (!existsSync30(path))
49457
49534
  return emptyCreditState();
49458
49535
  try {
49459
49536
  const raw = readFileSync28(path, "utf-8");
@@ -49469,54 +49546,54 @@ function loadCreditState(stateDir) {
49469
49546
  }
49470
49547
  function saveCreditState(stateDir, state4) {
49471
49548
  mkdirSync15(stateDir, { recursive: true });
49472
- const path = join27(stateDir, STATE_FILE);
49549
+ const path = join28(stateDir, STATE_FILE);
49473
49550
  writeFileSync17(path, JSON.stringify(state4, null, 2) + `
49474
49551
  `, { mode: 384 });
49475
49552
  }
49476
49553
 
49477
49554
  // gateway/turn-active-marker.ts
49478
49555
  import {
49479
- closeSync as closeSync5,
49480
- existsSync as existsSync30,
49556
+ closeSync as closeSync6,
49557
+ existsSync as existsSync31,
49481
49558
  mkdirSync as mkdirSync16,
49482
- openSync as openSync5,
49559
+ openSync as openSync6,
49483
49560
  readFileSync as readFileSync29,
49484
49561
  statSync as statSync9,
49485
- unlinkSync as unlinkSync11,
49562
+ unlinkSync as unlinkSync12,
49486
49563
  utimesSync as utimesSync2,
49487
49564
  writeFileSync as writeFileSync18
49488
49565
  } from "node:fs";
49489
- import { join as join28 } from "node:path";
49566
+ import { join as join29 } from "node:path";
49490
49567
  var TURN_ACTIVE_MARKER_FILE2 = "turn-active.json";
49491
49568
  function writeTurnActiveMarker(stateDir, marker) {
49492
49569
  try {
49493
49570
  mkdirSync16(stateDir, { recursive: true });
49494
- writeFileSync18(join28(stateDir, TURN_ACTIVE_MARKER_FILE2), JSON.stringify(marker, null, 2) + `
49571
+ writeFileSync18(join29(stateDir, TURN_ACTIVE_MARKER_FILE2), JSON.stringify(marker, null, 2) + `
49495
49572
  `, { mode: 384 });
49496
49573
  } catch {}
49497
49574
  }
49498
49575
  function touchTurnActiveMarker2(stateDir) {
49499
- const path = join28(stateDir, TURN_ACTIVE_MARKER_FILE2);
49500
- if (!existsSync30(path))
49576
+ const path = join29(stateDir, TURN_ACTIVE_MARKER_FILE2);
49577
+ if (!existsSync31(path))
49501
49578
  return;
49502
49579
  const now = new Date;
49503
49580
  try {
49504
49581
  utimesSync2(path, now, now);
49505
49582
  } catch {
49506
49583
  try {
49507
- const fd = openSync5(path, "r+");
49508
- closeSync5(fd);
49584
+ const fd = openSync6(path, "r+");
49585
+ closeSync6(fd);
49509
49586
  } catch {}
49510
49587
  }
49511
49588
  }
49512
49589
  function removeTurnActiveMarker(stateDir) {
49513
49590
  try {
49514
- unlinkSync11(join28(stateDir, TURN_ACTIVE_MARKER_FILE2));
49591
+ unlinkSync12(join29(stateDir, TURN_ACTIVE_MARKER_FILE2));
49515
49592
  } catch {}
49516
49593
  }
49517
49594
  function sweepStaleTurnActiveMarker(stateDir, opts) {
49518
- const path = join28(stateDir, TURN_ACTIVE_MARKER_FILE2);
49519
- if (!existsSync30(path))
49595
+ const path = join29(stateDir, TURN_ACTIVE_MARKER_FILE2);
49596
+ if (!existsSync31(path))
49520
49597
  return false;
49521
49598
  const now = opts.now ?? Date.now();
49522
49599
  try {
@@ -49530,7 +49607,7 @@ function sweepStaleTurnActiveMarker(stateDir, opts) {
49530
49607
  try {
49531
49608
  payload = readFileSync29(path, "utf8");
49532
49609
  } catch {}
49533
- unlinkSync11(path);
49610
+ unlinkSync12(path);
49534
49611
  if (opts.onRemove) {
49535
49612
  try {
49536
49613
  opts.onRemove({
@@ -49547,10 +49624,10 @@ function sweepStaleTurnActiveMarker(stateDir, opts) {
49547
49624
  }
49548
49625
 
49549
49626
  // ../src/build-info.ts
49550
- var VERSION = "0.13.55";
49551
- var COMMIT_SHA = "98cf8e68";
49552
- var COMMIT_DATE = "2026-05-27T07:38:21Z";
49553
- var LATEST_PR = 1901;
49627
+ var VERSION = "0.13.56";
49628
+ var COMMIT_SHA = "821a114e";
49629
+ var COMMIT_DATE = "2026-05-27T20:20:37Z";
49630
+ var LATEST_PR = 1923;
49554
49631
  var COMMITS_AHEAD_OF_TAG = 0;
49555
49632
 
49556
49633
  // gateway/boot-version.ts
@@ -49624,11 +49701,11 @@ init_peercred();
49624
49701
  import * as net4 from "node:net";
49625
49702
  import * as fs2 from "node:fs";
49626
49703
  import { homedir as homedir11 } from "node:os";
49627
- import { join as join29 } from "node:path";
49704
+ import { join as join30 } from "node:path";
49628
49705
  var DEFAULT_TIMEOUT_MS4 = 2000;
49629
49706
  var UNLOCK_TIMEOUT_MS = 30000;
49630
- var LEGACY_SOCKET_PATH2 = join29(homedir11(), ".switchroom", "vault-broker.sock");
49631
- var OPERATOR_SOCKET_PATH2 = join29(homedir11(), ".switchroom", "broker-operator", "sock");
49707
+ var LEGACY_SOCKET_PATH2 = join30(homedir11(), ".switchroom", "vault-broker.sock");
49708
+ var OPERATOR_SOCKET_PATH2 = join30(homedir11(), ".switchroom", "broker-operator", "sock");
49632
49709
  function defaultBrokerSocketPath2() {
49633
49710
  if (fs2.existsSync(OPERATOR_SOCKET_PATH2))
49634
49711
  return OPERATOR_SOCKET_PATH2;
@@ -49851,7 +49928,7 @@ function resolveVaultApprovalPosture(broker) {
49851
49928
 
49852
49929
  // registry/turns-schema.ts
49853
49930
  import { chmodSync as chmodSync3, mkdirSync as mkdirSync17 } from "fs";
49854
- import { join as join30 } from "path";
49931
+ import { join as join31 } from "path";
49855
49932
  var DatabaseClass2 = null;
49856
49933
  function loadDatabaseClass2() {
49857
49934
  if (DatabaseClass2 != null)
@@ -49910,9 +49987,9 @@ function applySchema(db2) {
49910
49987
  }
49911
49988
  function openTurnsDb(agentDir) {
49912
49989
  const Database = loadDatabaseClass2();
49913
- const dir = join30(agentDir, "telegram");
49990
+ const dir = join31(agentDir, "telegram");
49914
49991
  mkdirSync17(dir, { recursive: true, mode: 448 });
49915
- const path = join30(dir, "registry.db");
49992
+ const path = join31(dir, "registry.db");
49916
49993
  const db2 = new Database(path, { create: true });
49917
49994
  applySchema(db2);
49918
49995
  try {
@@ -50053,11 +50130,11 @@ installGlobalErrorHandlers();
50053
50130
  process.on("beforeExit", () => {
50054
50131
  shutdownAnalytics();
50055
50132
  });
50056
- var STATE_DIR = process.env.TELEGRAM_STATE_DIR ?? join32(homedir12(), ".claude", "channels", "telegram");
50057
- var ACCESS_FILE = join32(STATE_DIR, "access.json");
50058
- var APPROVED_DIR = join32(STATE_DIR, "approved");
50059
- var ENV_FILE = join32(STATE_DIR, ".env");
50060
- var INBOX_DIR = join32(STATE_DIR, "inbox");
50133
+ var STATE_DIR = process.env.TELEGRAM_STATE_DIR ?? join33(homedir12(), ".claude", "channels", "telegram");
50134
+ var ACCESS_FILE = join33(STATE_DIR, "access.json");
50135
+ var APPROVED_DIR = join33(STATE_DIR, "approved");
50136
+ var ENV_FILE = join33(STATE_DIR, ".env");
50137
+ var INBOX_DIR = join33(STATE_DIR, "inbox");
50061
50138
  function triggerSelfRestart(targetAgent, reason, delayMs = 300) {
50062
50139
  const isDocker = process.env.SWITCHROOM_RUNTIME === "docker";
50063
50140
  const selfAgent = process.env.SWITCHROOM_AGENT_NAME;
@@ -50248,7 +50325,7 @@ function assertSendable(f) {
50248
50325
  } catch {
50249
50326
  throw new Error(`refusing to send file \u2014 cannot resolve real path: ${f}`);
50250
50327
  }
50251
- const inbox = join32(stateReal, "inbox");
50328
+ const inbox = join33(stateReal, "inbox");
50252
50329
  if (real.startsWith(stateReal + sep3) && !real.startsWith(inbox + sep3)) {
50253
50330
  throw new Error(`refusing to send channel state: ${f}`);
50254
50331
  }
@@ -50354,7 +50431,7 @@ var HISTORY_ENABLED = HISTORY_ACCESS.historyEnabled !== false;
50354
50431
  if (HISTORY_ENABLED) {
50355
50432
  try {
50356
50433
  initHistory(STATE_DIR, HISTORY_ACCESS.historyRetentionDays ?? 30);
50357
- process.stderr.write(`telegram gateway: history capture enabled at ${join32(STATE_DIR, "history.db")}
50434
+ process.stderr.write(`telegram gateway: history capture enabled at ${join33(STATE_DIR, "history.db")}
50358
50435
  `);
50359
50436
  } catch (err) {
50360
50437
  process.stderr.write(`telegram gateway: history init failed (${err.message}) \u2014 capture disabled
@@ -50371,10 +50448,10 @@ try {
50371
50448
  process.stderr.write(`telegram gateway: turn-registry boot-reaper stamped ${reaped} orphaned turn(s) as ended_via='restart'
50372
50449
  `);
50373
50450
  } else {
50374
- process.stderr.write(`telegram gateway: turn-registry initialized at ${join32(agentDir, "telegram", "registry.db")}
50451
+ process.stderr.write(`telegram gateway: turn-registry initialized at ${join33(agentDir, "telegram", "registry.db")}
50375
50452
  `);
50376
50453
  }
50377
- const pendingEnvPath = join32(agentDir, ".pending-turn.env");
50454
+ const pendingEnvPath = join33(agentDir, ".pending-turn.env");
50378
50455
  try {
50379
50456
  const pending2 = findMostRecentInterruptedTurn(turnsDb);
50380
50457
  if (pending2 != null) {
@@ -50394,7 +50471,7 @@ try {
50394
50471
  renameSync12(pendingEnvTmp, pendingEnvPath);
50395
50472
  process.stderr.write(`telegram gateway: pending-turn env written to ${pendingEnvPath} turnKey=${pending2.turn_key} endedVia=${pending2.ended_via ?? "open"}
50396
50473
  `);
50397
- } else if (existsSync34(pendingEnvPath)) {
50474
+ } else if (existsSync35(pendingEnvPath)) {
50398
50475
  rmSync4(pendingEnvPath, { force: true });
50399
50476
  process.stderr.write(`telegram gateway: pending-turn env cleared (clean previous shutdown)
50400
50477
  `);
@@ -50448,7 +50525,7 @@ function checkApprovals() {
50448
50525
  return;
50449
50526
  }
50450
50527
  for (const senderId of files) {
50451
- const file = join32(APPROVED_DIR, senderId);
50528
+ const file = join33(APPROVED_DIR, senderId);
50452
50529
  bot.api.sendMessage(senderId, "Paired! Say hi to Claude.").then(() => rmSync4(file, { force: true }), (err) => {
50453
50530
  process.stderr.write(`telegram gateway: failed to send approval confirm: ${err}
50454
50531
  `);
@@ -51325,11 +51402,11 @@ var unpinProgressCardForChat = null;
51325
51402
  var getPinnedProgressCardMessageId = null;
51326
51403
  var completeProgressCardTurn = null;
51327
51404
  var subagentWatcher = null;
51328
- var SOCKET_PATH = process.env.SWITCHROOM_GATEWAY_SOCKET ?? join32(STATE_DIR, "gateway.sock");
51405
+ var SOCKET_PATH = process.env.SWITCHROOM_GATEWAY_SOCKET ?? join33(STATE_DIR, "gateway.sock");
51329
51406
  mkdirSync21(STATE_DIR, { recursive: true, mode: 448 });
51330
- var GATEWAY_PID_PATH = process.env.SWITCHROOM_GATEWAY_PID_FILE ?? join32(STATE_DIR, "gateway.pid.json");
51331
- var GATEWAY_SESSION_MARKER_PATH = process.env.SWITCHROOM_GATEWAY_SESSION_MARKER ?? join32(STATE_DIR, "gateway-session.json");
51332
- var GATEWAY_CLEAN_SHUTDOWN_MARKER_PATH = process.env.SWITCHROOM_GATEWAY_CLEAN_SHUTDOWN_MARKER ?? join32(STATE_DIR, "clean-shutdown.json");
51407
+ var GATEWAY_PID_PATH = process.env.SWITCHROOM_GATEWAY_PID_FILE ?? join33(STATE_DIR, "gateway.pid.json");
51408
+ var GATEWAY_SESSION_MARKER_PATH = process.env.SWITCHROOM_GATEWAY_SESSION_MARKER ?? join33(STATE_DIR, "gateway-session.json");
51409
+ var GATEWAY_CLEAN_SHUTDOWN_MARKER_PATH = process.env.SWITCHROOM_GATEWAY_CLEAN_SHUTDOWN_MARKER ?? join33(STATE_DIR, "clean-shutdown.json");
51333
51410
  var GATEWAY_STARTED_AT_MS = Date.now();
51334
51411
  var BOOT_CARD_ENABLED = process.env.SWITCHROOM_BOOT_CARD !== "false";
51335
51412
  var activeBootCard = null;
@@ -51358,7 +51435,7 @@ function ensureIssuesCard(chatId, threadId) {
51358
51435
  bot: botApi,
51359
51436
  log: (msg) => process.stderr.write(`telegram gateway: ${msg}
51360
51437
  `),
51361
- persistPath: join32(stateDir, "issues-card.json")
51438
+ persistPath: join33(stateDir, "issues-card.json")
51362
51439
  });
51363
51440
  activeIssuesWatcher = startIssuesWatcher({
51364
51441
  stateDir,
@@ -51402,6 +51479,21 @@ startTimer({
51402
51479
  emitMetric: (event) => {
51403
51480
  emitRuntimeMetric(event);
51404
51481
  },
51482
+ onAwarenessPing: async (ctx) => {
51483
+ if (activeTurnStartedAt.get(ctx.key) == null && currentTurn == null) {
51484
+ return;
51485
+ }
51486
+ const text = formatFrameworkFallbackText(ctx.fallbackKind, ctx.silenceMs, ctx.inFlightTools);
51487
+ try {
51488
+ await robustApiCall(() => bot.api.sendMessage(ctx.chatId, text, {
51489
+ ...ctx.threadId != null ? { message_thread_id: ctx.threadId } : {},
51490
+ disable_notification: true
51491
+ }), { chat_id: ctx.chatId, ...ctx.threadId != null ? { threadId: ctx.threadId } : {} });
51492
+ } catch (err) {
51493
+ process.stderr.write(`silence-poke awareness-ping sendMessage failed chat=${ctx.chatId} thread=${ctx.threadId}: ${err}
51494
+ `);
51495
+ }
51496
+ },
51405
51497
  onFrameworkFallback: async (ctx) => {
51406
51498
  if (activeTurnStartedAt.get(ctx.key) == null && currentTurn == null) {
51407
51499
  process.stderr.write(`telegram gateway: silence-poke framework-fallback late-fire skipped \u2014 ` + `turn ended cleanly during silence window chat=${ctx.chatId} thread=${ctx.threadId ?? "-"} silence_ms=${ctx.silenceMs}
@@ -51450,7 +51542,6 @@ startTimer({
51450
51542
  longest_silent_gap_ms: outboundMetrics.longestOutboundGapMs,
51451
51543
  ended_via: "framework_fallback"
51452
51544
  });
51453
- clear(fbKey);
51454
51545
  }
51455
51546
  if (turnsDb != null && turnMatchesFallback && wedgedTurn?.registryKey != null) {
51456
51547
  const _turnKey = wedgedTurn.registryKey;
@@ -51513,13 +51604,13 @@ startTimer2({
51513
51604
  }
51514
51605
  });
51515
51606
  var inboundSpool = STATIC ? undefined : createInboundSpool({
51516
- path: join32(STATE_DIR, "inbound-spool.jsonl"),
51607
+ path: join33(STATE_DIR, "inbound-spool.jsonl"),
51517
51608
  fs: {
51518
51609
  appendFileSync: (p, d) => appendFileSync3(p, d),
51519
51610
  readFileSync: (p) => readFileSync32(p, "utf8"),
51520
51611
  writeFileSync: (p, d) => writeFileSync21(p, d),
51521
51612
  renameSync: (a, b) => renameSync12(a, b),
51522
- existsSync: (p) => existsSync34(p),
51613
+ existsSync: (p) => existsSync35(p),
51523
51614
  statSizeSync: (p) => statSync13(p).size
51524
51615
  }
51525
51616
  });
@@ -52332,6 +52423,12 @@ ${url}`;
52332
52423
  });
52333
52424
  noteOutbound(statusKey(chat_id, threadId), Date.now());
52334
52425
  noteOutbound2(statusKey(chat_id, threadId), Date.now());
52426
+ try {
52427
+ markAckSent();
52428
+ } catch (err) {
52429
+ process.stderr.write(`telegram gateway: markAckSent failed: ${err}
52430
+ `);
52431
+ }
52335
52432
  if (isFinalAnswerReply({ text: rawText, disableNotification })) {
52336
52433
  clearSilentEndState(statusKey(chat_id, threadId));
52337
52434
  }
@@ -52659,6 +52756,12 @@ async function executeStreamReply(args) {
52659
52756
  const sKey = statusKey(streamChatId, streamThreadId);
52660
52757
  noteOutbound(sKey, Date.now());
52661
52758
  noteOutbound2(sKey, Date.now());
52759
+ try {
52760
+ markAckSent();
52761
+ } catch (err) {
52762
+ process.stderr.write(`telegram gateway: markAckSent (stream_reply) failed: ${err}
52763
+ `);
52764
+ }
52662
52765
  if (isFinalAnswerReply({
52663
52766
  text: args.text ?? "",
52664
52767
  disableNotification: args.disable_notification === true,
@@ -53009,10 +53112,10 @@ async function executeSendGif(rawArgs) {
53009
53112
  };
53010
53113
  }
53011
53114
  async function publishToTelegraph(text, shortName, authorName) {
53012
- const accountPath = join32(STATE_DIR, "telegraph-account.json");
53115
+ const accountPath = join33(STATE_DIR, "telegraph-account.json");
53013
53116
  let account = null;
53014
53117
  try {
53015
- if (existsSync34(accountPath)) {
53118
+ if (existsSync35(accountPath)) {
53016
53119
  const raw = readFileSync32(accountPath, "utf-8");
53017
53120
  const parsed = JSON.parse(raw);
53018
53121
  if (parsed.shortName && parsed.accessToken) {
@@ -53505,6 +53608,7 @@ function handleSessionEvent(ev) {
53505
53608
  if (ev.chatId) {
53506
53609
  const enqThreadId = ev.threadId != null ? Number(ev.threadId) : undefined;
53507
53610
  clearPending(statusKey(ev.chatId, enqThreadId), "handback");
53611
+ clearAckSent();
53508
53612
  }
53509
53613
  if (ev.chatId) {
53510
53614
  const prior = currentTurn;
@@ -54962,7 +55066,7 @@ function restartMarkerPath() {
54962
55066
  const agentDir = resolveAgentDirFromEnv();
54963
55067
  if (!agentDir)
54964
55068
  return null;
54965
- return join32(agentDir, "restart-pending.json");
55069
+ return join33(agentDir, "restart-pending.json");
54966
55070
  }
54967
55071
  function writeRestartMarker(marker) {
54968
55072
  const p = restartMarkerPath();
@@ -55086,7 +55190,7 @@ var _dockerReachable;
55086
55190
  function isDockerReachable() {
55087
55191
  if (_dockerReachable !== undefined)
55088
55192
  return _dockerReachable;
55089
- if (!existsSync34("/var/run/docker.sock")) {
55193
+ if (!existsSync35("/var/run/docker.sock")) {
55090
55194
  _dockerReachable = false;
55091
55195
  return _dockerReachable;
55092
55196
  }
@@ -55103,11 +55207,11 @@ function _resetDockerReachableCache() {
55103
55207
  }
55104
55208
  function spawnSwitchroomDetached(args, onFailure) {
55105
55209
  const fullArgs = SWITCHROOM_CONFIG ? ["--config", SWITCHROOM_CONFIG, ...args] : args;
55106
- const logPath = join32(STATE_DIR, "detached-spawn.log");
55210
+ const logPath = join33(STATE_DIR, "detached-spawn.log");
55107
55211
  let outFd = null;
55108
55212
  try {
55109
55213
  mkdirSync21(STATE_DIR, { recursive: true });
55110
- outFd = openSync8(logPath, "a");
55214
+ outFd = openSync9(logPath, "a");
55111
55215
  writeFileSync21(logPath, `
55112
55216
  [${new Date().toISOString()}] spawn ${SWITCHROOM_CLI} ${fullArgs.join(" ")}
55113
55217
  `, { flag: "a" });
@@ -55122,7 +55226,7 @@ function spawnSwitchroomDetached(args, onFailure) {
55122
55226
  });
55123
55227
  if (outFd != null) {
55124
55228
  try {
55125
- closeSync8(outFd);
55229
+ closeSync9(outFd);
55126
55230
  } catch {}
55127
55231
  }
55128
55232
  if (onFailure) {
@@ -55476,8 +55580,8 @@ bot.use(async (ctx, next) => {
55476
55580
  });
55477
55581
  function readRecentDenialsForAgent(agentName3, windowMs, limit) {
55478
55582
  try {
55479
- const auditPath = join32(homedir12(), ".switchroom", "vault-audit.log");
55480
- if (!existsSync34(auditPath))
55583
+ const auditPath = join33(homedir12(), ".switchroom", "vault-audit.log");
55584
+ if (!existsSync35(auditPath))
55481
55585
  return [];
55482
55586
  const raw = readFileSync32(auditPath, "utf8");
55483
55587
  return recentDenialsFromAuditLog(raw, { agentName: agentName3, windowMs, limit });
@@ -55530,7 +55634,7 @@ async function buildAgentMetadata(agentName3) {
55530
55634
  try {
55531
55635
  const agentDir = resolveAgentDirFromEnv();
55532
55636
  if (agentDir) {
55533
- const raw = readFileSync32(join32(agentDir, ".claude", ".claude.json"), "utf8");
55637
+ const raw = readFileSync32(join33(agentDir, ".claude", ".claude.json"), "utf8");
55534
55638
  claudeJson = JSON.parse(raw);
55535
55639
  }
55536
55640
  } catch {}
@@ -55744,10 +55848,10 @@ bot.command("restart", async (ctx) => {
55744
55848
  function flushAgentHandoff(agentDir) {
55745
55849
  let removed = 0;
55746
55850
  for (const fname of [".handoff.md", ".handoff-topic"]) {
55747
- const p = join32(agentDir, fname);
55851
+ const p = join33(agentDir, fname);
55748
55852
  try {
55749
- if (existsSync34(p)) {
55750
- unlinkSync14(p);
55853
+ if (existsSync35(p)) {
55854
+ unlinkSync15(p);
55751
55855
  removed++;
55752
55856
  }
55753
55857
  } catch (err) {
@@ -55802,7 +55906,7 @@ async function handleNewOrResetCommand(ctx, kind) {
55802
55906
  writeRestartMarker({ chat_id: chatId, thread_id: threadId ?? null, ack_message_id: ackId, ts: Date.now() });
55803
55907
  if (agentDir != null) {
55804
55908
  try {
55805
- writeFileSync21(join32(agentDir, ".force-fresh-session"), `${kind} at ${new Date().toISOString()}
55909
+ writeFileSync21(join33(agentDir, ".force-fresh-session"), `${kind} at ${new Date().toISOString()}
55806
55910
  `, "utf8");
55807
55911
  } catch (err) {
55808
55912
  process.stderr.write(`telegram gateway: failed to write force-fresh marker: ${err}
@@ -56163,14 +56267,14 @@ bot.command("interrupt", async (ctx) => {
56163
56267
  var lockoutOps = {
56164
56268
  readFileSync: (p, enc) => readFileSync32(p, enc),
56165
56269
  writeFileSync: (p, data, opts) => writeFileSync21(p, data, opts),
56166
- existsSync: (p) => existsSync34(p),
56270
+ existsSync: (p) => existsSync35(p),
56167
56271
  mkdirSync: (p, opts) => mkdirSync21(p, opts),
56168
- joinPath: (...parts) => join32(...parts)
56272
+ joinPath: (...parts) => join33(...parts)
56169
56273
  };
56170
56274
  var FLEET_FALLBACK_DEDUP_MS = 30000;
56171
56275
  function isAuthBrokerSocketReachable() {
56172
56276
  try {
56173
- return existsSync34(resolveAuthBrokerSocketPath2());
56277
+ return existsSync35(resolveAuthBrokerSocketPath2());
56174
56278
  } catch {
56175
56279
  return false;
56176
56280
  }
@@ -56231,7 +56335,7 @@ async function runCreditWatch() {
56231
56335
  if (!agentDir)
56232
56336
  return;
56233
56337
  const agentName3 = getMyAgentName();
56234
- const claudeConfigDir = join32(agentDir, ".claude");
56338
+ const claudeConfigDir = join33(agentDir, ".claude");
56235
56339
  const stateDir = STATE_DIR;
56236
56340
  const reason = readClaudeJsonOverage(claudeConfigDir);
56237
56341
  const prev = loadCreditState(stateDir);
@@ -56441,9 +56545,9 @@ async function handleVaultRecentDenialCallback(ctx, data) {
56441
56545
  return;
56442
56546
  }
56443
56547
  const { token, id } = result;
56444
- const tokenPath = join32(homedir12(), ".switchroom", "agents", agentName3, ".vault-token");
56548
+ const tokenPath = join33(homedir12(), ".switchroom", "agents", agentName3, ".vault-token");
56445
56549
  try {
56446
- mkdirSync21(join32(homedir12(), ".switchroom", "agents", agentName3), { recursive: true });
56550
+ mkdirSync21(join33(homedir12(), ".switchroom", "agents", agentName3), { recursive: true });
56447
56551
  writeFileSync21(tokenPath, token, { mode: 384 });
56448
56552
  } catch (err) {
56449
56553
  await switchroomReply(ctx, `<b>Grant created (${escapeHtmlForTg(id)}) but token write failed:</b> ${escapeHtmlForTg(String(err))}
@@ -56520,9 +56624,9 @@ async function performVaultAccessApproval(ctx, pending2, stageId, senderId, atte
56520
56624
  return;
56521
56625
  }
56522
56626
  const { token, id } = result;
56523
- const tokenPath = join32(homedir12(), ".switchroom", "agents", pending2.agent, ".vault-token");
56627
+ const tokenPath = join33(homedir12(), ".switchroom", "agents", pending2.agent, ".vault-token");
56524
56628
  try {
56525
- mkdirSync21(join32(homedir12(), ".switchroom", "agents", pending2.agent), { recursive: true });
56629
+ mkdirSync21(join33(homedir12(), ".switchroom", "agents", pending2.agent), { recursive: true });
56526
56630
  writeFileSync21(tokenPath, token, { mode: 384 });
56527
56631
  } catch (err) {
56528
56632
  await switchroomReply(ctx, `<b>Grant created (${escapeHtmlForTg(id)}) but token write failed:</b> ${escapeHtmlForTg(String(err))}
@@ -56998,9 +57102,9 @@ async function executeGrantWizard(ctx, chatId, state4) {
56998
57102
  return;
56999
57103
  }
57000
57104
  const { token, id } = result;
57001
- const tokenPath = join32(homedir12(), ".switchroom", "agents", state4.agent, ".vault-token");
57105
+ const tokenPath = join33(homedir12(), ".switchroom", "agents", state4.agent, ".vault-token");
57002
57106
  try {
57003
- mkdirSync21(join32(homedir12(), ".switchroom", "agents", state4.agent), { recursive: true });
57107
+ mkdirSync21(join33(homedir12(), ".switchroom", "agents", state4.agent), { recursive: true });
57004
57108
  writeFileSync21(tokenPath, token, { mode: 384 });
57005
57109
  } catch (err) {
57006
57110
  await switchroomReply(ctx, `<b>Grant created but token write failed:</b> ${escapeHtmlForTg(String(err))}`, { html: true });
@@ -57858,7 +57962,7 @@ bot.command("usage", async (ctx) => {
57858
57962
  await switchroomReply(ctx, "<b>/usage:</b> cannot resolve agent dir.", { html: true });
57859
57963
  return;
57860
57964
  }
57861
- const result = await fetchQuota2({ claudeConfigDir: join32(agentDir, ".claude") });
57965
+ const result = await fetchQuota2({ claudeConfigDir: join33(agentDir, ".claude") });
57862
57966
  if (!result.ok) {
57863
57967
  await switchroomReply(ctx, `<b>/usage:</b> ${escapeHtmlForTg(result.reason)}`, { html: true });
57864
57968
  return;
@@ -58403,7 +58507,7 @@ async function maybeTranscribeVoice(fileId, mimeType, language) {
58403
58507
  let apiKey = null;
58404
58508
  try {
58405
58509
  const path = __require("path").join(__require("os").homedir(), ".switchroom", "openai-api-key");
58406
- if (existsSync34(path)) {
58510
+ if (existsSync35(path)) {
58407
58511
  apiKey = readFileSync32(path, "utf-8").trim();
58408
58512
  }
58409
58513
  } catch (err) {
@@ -59264,7 +59368,7 @@ var didOneTimeSetup = false;
59264
59368
  agentName: agentDisplayName,
59265
59369
  agentSlug,
59266
59370
  version: formatBootVersion(),
59267
- agentDir: agentDir ?? join32(homedir12(), ".switchroom", "agents", agentSlug),
59371
+ agentDir: agentDir ?? join33(homedir12(), ".switchroom", "agents", agentSlug),
59268
59372
  gatewayInfo: { pid: process.pid, startedAtMs: GATEWAY_STARTED_AT_MS },
59269
59373
  restartReason: reason,
59270
59374
  restartAgeMs: markerAgeMs,