switchroom 0.7.13 → 0.7.15

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
+ // ../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
+ // ../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
+ // ../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
+ // ../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
+ // ../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
+ // ../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
+ // ../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
+ // ../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
+ // ../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
+ // ../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
+ // ../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
+ // ../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
+ // ../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
+ // ../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
+ // ../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
+ // ../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
+ // ../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
+ // ../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
+ // ../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
+ // ../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
+ // ../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
+ // ../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
+ // ../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
+ // ../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
+ // ../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
+ // ../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
+ // ../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
+ // ../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
+ // ../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
+ // ../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
+ // ../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
+ // ../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
+ // ../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
+ // ../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
+ // ../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
+ // ../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
+ // ../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
+ // ../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
+ // ../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
+ // ../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
+ // ../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
+ // ../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
+ // ../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)
@@ -6582,7 +6582,7 @@ function truncate2(s, n) {
6582
6582
  return s.length > n ? s.slice(0, n - 1) + "\u2026" : s;
6583
6583
  }
6584
6584
 
6585
- // ../node_modules/.bun/@xterm+headless@6.0.0/node_modules/@xterm/headless/lib-headless/xterm-headless.js
6585
+ // ../node_modules/@xterm/headless/lib-headless/xterm-headless.js
6586
6586
  var require_xterm_headless = __commonJS((exports) => {
6587
6587
  (() => {
6588
6588
  var e = { 5639: (e2, t2, s2) => {
@@ -12326,7 +12326,7 @@ function query(opts) {
12326
12326
  var DatabaseClass = null, DEFAULT_LIMIT = 10, MAX_LIMIT = 50, db = null;
12327
12327
  var init_history = () => {};
12328
12328
 
12329
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/identity.js
12329
+ // ../node_modules/yaml/dist/nodes/identity.js
12330
12330
  var require_identity = __commonJS((exports) => {
12331
12331
  var ALIAS = Symbol.for("yaml.alias");
12332
12332
  var DOC = Symbol.for("yaml.document");
@@ -12380,7 +12380,7 @@ var require_identity = __commonJS((exports) => {
12380
12380
  exports.isSeq = isSeq;
12381
12381
  });
12382
12382
 
12383
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/visit.js
12383
+ // ../node_modules/yaml/dist/visit.js
12384
12384
  var require_visit = __commonJS((exports) => {
12385
12385
  var identity = require_identity();
12386
12386
  var BREAK = Symbol("break visit");
@@ -12535,7 +12535,7 @@ var require_visit = __commonJS((exports) => {
12535
12535
  exports.visitAsync = visitAsync;
12536
12536
  });
12537
12537
 
12538
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/doc/directives.js
12538
+ // ../node_modules/yaml/dist/doc/directives.js
12539
12539
  var require_directives = __commonJS((exports) => {
12540
12540
  var identity = require_identity();
12541
12541
  var visit = require_visit();
@@ -12687,7 +12687,7 @@ var require_directives = __commonJS((exports) => {
12687
12687
  exports.Directives = Directives;
12688
12688
  });
12689
12689
 
12690
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/doc/anchors.js
12690
+ // ../node_modules/yaml/dist/doc/anchors.js
12691
12691
  var require_anchors = __commonJS((exports) => {
12692
12692
  var identity = require_identity();
12693
12693
  var visit = require_visit();
@@ -12749,7 +12749,7 @@ var require_anchors = __commonJS((exports) => {
12749
12749
  exports.findNewAnchor = findNewAnchor;
12750
12750
  });
12751
12751
 
12752
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/doc/applyReviver.js
12752
+ // ../node_modules/yaml/dist/doc/applyReviver.js
12753
12753
  var require_applyReviver = __commonJS((exports) => {
12754
12754
  function applyReviver(reviver, obj, key, val) {
12755
12755
  if (val && typeof val === "object") {
@@ -12796,7 +12796,7 @@ var require_applyReviver = __commonJS((exports) => {
12796
12796
  exports.applyReviver = applyReviver;
12797
12797
  });
12798
12798
 
12799
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/toJS.js
12799
+ // ../node_modules/yaml/dist/nodes/toJS.js
12800
12800
  var require_toJS = __commonJS((exports) => {
12801
12801
  var identity = require_identity();
12802
12802
  function toJS(value, arg, ctx) {
@@ -12823,7 +12823,7 @@ var require_toJS = __commonJS((exports) => {
12823
12823
  exports.toJS = toJS;
12824
12824
  });
12825
12825
 
12826
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/Node.js
12826
+ // ../node_modules/yaml/dist/nodes/Node.js
12827
12827
  var require_Node = __commonJS((exports) => {
12828
12828
  var applyReviver = require_applyReviver();
12829
12829
  var identity = require_identity();
@@ -12860,7 +12860,7 @@ var require_Node = __commonJS((exports) => {
12860
12860
  exports.NodeBase = NodeBase;
12861
12861
  });
12862
12862
 
12863
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/Alias.js
12863
+ // ../node_modules/yaml/dist/nodes/Alias.js
12864
12864
  var require_Alias = __commonJS((exports) => {
12865
12865
  var anchors = require_anchors();
12866
12866
  var visit = require_visit();
@@ -12968,7 +12968,7 @@ var require_Alias = __commonJS((exports) => {
12968
12968
  exports.Alias = Alias;
12969
12969
  });
12970
12970
 
12971
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/Scalar.js
12971
+ // ../node_modules/yaml/dist/nodes/Scalar.js
12972
12972
  var require_Scalar = __commonJS((exports) => {
12973
12973
  var identity = require_identity();
12974
12974
  var Node = require_Node();
@@ -12996,7 +12996,7 @@ var require_Scalar = __commonJS((exports) => {
12996
12996
  exports.isScalarValue = isScalarValue;
12997
12997
  });
12998
12998
 
12999
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/doc/createNode.js
12999
+ // ../node_modules/yaml/dist/doc/createNode.js
13000
13000
  var require_createNode = __commonJS((exports) => {
13001
13001
  var Alias = require_Alias();
13002
13002
  var identity = require_identity();
@@ -13068,7 +13068,7 @@ var require_createNode = __commonJS((exports) => {
13068
13068
  exports.createNode = createNode;
13069
13069
  });
13070
13070
 
13071
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/Collection.js
13071
+ // ../node_modules/yaml/dist/nodes/Collection.js
13072
13072
  var require_Collection = __commonJS((exports) => {
13073
13073
  var createNode = require_createNode();
13074
13074
  var identity = require_identity();
@@ -13183,7 +13183,7 @@ var require_Collection = __commonJS((exports) => {
13183
13183
  exports.isEmptyPath = isEmptyPath;
13184
13184
  });
13185
13185
 
13186
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyComment.js
13186
+ // ../node_modules/yaml/dist/stringify/stringifyComment.js
13187
13187
  var require_stringifyComment = __commonJS((exports) => {
13188
13188
  var stringifyComment = (str) => str.replace(/^(?!$)(?: $)?/gm, "#");
13189
13189
  function indentComment(comment, indent) {
@@ -13200,7 +13200,7 @@ var require_stringifyComment = __commonJS((exports) => {
13200
13200
  exports.stringifyComment = stringifyComment;
13201
13201
  });
13202
13202
 
13203
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/foldFlowLines.js
13203
+ // ../node_modules/yaml/dist/stringify/foldFlowLines.js
13204
13204
  var require_foldFlowLines = __commonJS((exports) => {
13205
13205
  var FOLD_FLOW = "flow";
13206
13206
  var FOLD_BLOCK = "block";
@@ -13337,7 +13337,7 @@ ${indent}${text.slice(fold + 1, end2)}`;
13337
13337
  exports.foldFlowLines = foldFlowLines;
13338
13338
  });
13339
13339
 
13340
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyString.js
13340
+ // ../node_modules/yaml/dist/stringify/stringifyString.js
13341
13341
  var require_stringifyString = __commonJS((exports) => {
13342
13342
  var Scalar = require_Scalar();
13343
13343
  var foldFlowLines = require_foldFlowLines();
@@ -13635,7 +13635,7 @@ ${indent}`);
13635
13635
  exports.stringifyString = stringifyString;
13636
13636
  });
13637
13637
 
13638
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/stringify.js
13638
+ // ../node_modules/yaml/dist/stringify/stringify.js
13639
13639
  var require_stringify = __commonJS((exports) => {
13640
13640
  var anchors = require_anchors();
13641
13641
  var identity = require_identity();
@@ -13756,7 +13756,7 @@ ${ctx.indent}${str}`;
13756
13756
  exports.stringify = stringify;
13757
13757
  });
13758
13758
 
13759
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyPair.js
13759
+ // ../node_modules/yaml/dist/stringify/stringifyPair.js
13760
13760
  var require_stringifyPair = __commonJS((exports) => {
13761
13761
  var identity = require_identity();
13762
13762
  var Scalar = require_Scalar();
@@ -13892,7 +13892,7 @@ ${ctx.indent}`;
13892
13892
  exports.stringifyPair = stringifyPair;
13893
13893
  });
13894
13894
 
13895
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/log.js
13895
+ // ../node_modules/yaml/dist/log.js
13896
13896
  var require_log = __commonJS((exports) => {
13897
13897
  var node_process = __require("process");
13898
13898
  function debug(logLevel, ...messages) {
@@ -13911,7 +13911,7 @@ var require_log = __commonJS((exports) => {
13911
13911
  exports.warn = warn;
13912
13912
  });
13913
13913
 
13914
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/merge.js
13914
+ // ../node_modules/yaml/dist/schema/yaml-1.1/merge.js
13915
13915
  var require_merge = __commonJS((exports) => {
13916
13916
  var identity = require_identity();
13917
13917
  var Scalar = require_Scalar();
@@ -13965,7 +13965,7 @@ var require_merge = __commonJS((exports) => {
13965
13965
  exports.merge = merge;
13966
13966
  });
13967
13967
 
13968
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/addPairToJSMap.js
13968
+ // ../node_modules/yaml/dist/nodes/addPairToJSMap.js
13969
13969
  var require_addPairToJSMap = __commonJS((exports) => {
13970
13970
  var log = require_log();
13971
13971
  var merge = require_merge();
@@ -14026,7 +14026,7 @@ var require_addPairToJSMap = __commonJS((exports) => {
14026
14026
  exports.addPairToJSMap = addPairToJSMap;
14027
14027
  });
14028
14028
 
14029
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/Pair.js
14029
+ // ../node_modules/yaml/dist/nodes/Pair.js
14030
14030
  var require_Pair = __commonJS((exports) => {
14031
14031
  var createNode = require_createNode();
14032
14032
  var stringifyPair = require_stringifyPair();
@@ -14064,7 +14064,7 @@ var require_Pair = __commonJS((exports) => {
14064
14064
  exports.createPair = createPair;
14065
14065
  });
14066
14066
 
14067
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyCollection.js
14067
+ // ../node_modules/yaml/dist/stringify/stringifyCollection.js
14068
14068
  var require_stringifyCollection = __commonJS((exports) => {
14069
14069
  var identity = require_identity();
14070
14070
  var stringify = require_stringify();
@@ -14216,7 +14216,7 @@ ${indent}${end}`;
14216
14216
  exports.stringifyCollection = stringifyCollection;
14217
14217
  });
14218
14218
 
14219
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/YAMLMap.js
14219
+ // ../node_modules/yaml/dist/nodes/YAMLMap.js
14220
14220
  var require_YAMLMap = __commonJS((exports) => {
14221
14221
  var stringifyCollection = require_stringifyCollection();
14222
14222
  var addPairToJSMap = require_addPairToJSMap();
@@ -14343,7 +14343,7 @@ var require_YAMLMap = __commonJS((exports) => {
14343
14343
  exports.findPair = findPair;
14344
14344
  });
14345
14345
 
14346
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/common/map.js
14346
+ // ../node_modules/yaml/dist/schema/common/map.js
14347
14347
  var require_map = __commonJS((exports) => {
14348
14348
  var identity = require_identity();
14349
14349
  var YAMLMap = require_YAMLMap();
@@ -14362,7 +14362,7 @@ var require_map = __commonJS((exports) => {
14362
14362
  exports.map = map;
14363
14363
  });
14364
14364
 
14365
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/YAMLSeq.js
14365
+ // ../node_modules/yaml/dist/nodes/YAMLSeq.js
14366
14366
  var require_YAMLSeq = __commonJS((exports) => {
14367
14367
  var createNode = require_createNode();
14368
14368
  var stringifyCollection = require_stringifyCollection();
@@ -14455,7 +14455,7 @@ var require_YAMLSeq = __commonJS((exports) => {
14455
14455
  exports.YAMLSeq = YAMLSeq;
14456
14456
  });
14457
14457
 
14458
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/common/seq.js
14458
+ // ../node_modules/yaml/dist/schema/common/seq.js
14459
14459
  var require_seq = __commonJS((exports) => {
14460
14460
  var identity = require_identity();
14461
14461
  var YAMLSeq = require_YAMLSeq();
@@ -14474,7 +14474,7 @@ var require_seq = __commonJS((exports) => {
14474
14474
  exports.seq = seq;
14475
14475
  });
14476
14476
 
14477
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/common/string.js
14477
+ // ../node_modules/yaml/dist/schema/common/string.js
14478
14478
  var require_string = __commonJS((exports) => {
14479
14479
  var stringifyString = require_stringifyString();
14480
14480
  var string = {
@@ -14490,7 +14490,7 @@ var require_string = __commonJS((exports) => {
14490
14490
  exports.string = string;
14491
14491
  });
14492
14492
 
14493
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/common/null.js
14493
+ // ../node_modules/yaml/dist/schema/common/null.js
14494
14494
  var require_null = __commonJS((exports) => {
14495
14495
  var Scalar = require_Scalar();
14496
14496
  var nullTag = {
@@ -14505,7 +14505,7 @@ var require_null = __commonJS((exports) => {
14505
14505
  exports.nullTag = nullTag;
14506
14506
  });
14507
14507
 
14508
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/core/bool.js
14508
+ // ../node_modules/yaml/dist/schema/core/bool.js
14509
14509
  var require_bool = __commonJS((exports) => {
14510
14510
  var Scalar = require_Scalar();
14511
14511
  var boolTag = {
@@ -14526,7 +14526,7 @@ var require_bool = __commonJS((exports) => {
14526
14526
  exports.boolTag = boolTag;
14527
14527
  });
14528
14528
 
14529
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyNumber.js
14529
+ // ../node_modules/yaml/dist/stringify/stringifyNumber.js
14530
14530
  var require_stringifyNumber = __commonJS((exports) => {
14531
14531
  function stringifyNumber({ format, minFractionDigits, tag, value }) {
14532
14532
  if (typeof value === "bigint")
@@ -14550,7 +14550,7 @@ var require_stringifyNumber = __commonJS((exports) => {
14550
14550
  exports.stringifyNumber = stringifyNumber;
14551
14551
  });
14552
14552
 
14553
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/core/float.js
14553
+ // ../node_modules/yaml/dist/schema/core/float.js
14554
14554
  var require_float = __commonJS((exports) => {
14555
14555
  var Scalar = require_Scalar();
14556
14556
  var stringifyNumber = require_stringifyNumber();
@@ -14593,7 +14593,7 @@ var require_float = __commonJS((exports) => {
14593
14593
  exports.floatNaN = floatNaN;
14594
14594
  });
14595
14595
 
14596
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/core/int.js
14596
+ // ../node_modules/yaml/dist/schema/core/int.js
14597
14597
  var require_int = __commonJS((exports) => {
14598
14598
  var stringifyNumber = require_stringifyNumber();
14599
14599
  var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
@@ -14635,7 +14635,7 @@ var require_int = __commonJS((exports) => {
14635
14635
  exports.intOct = intOct;
14636
14636
  });
14637
14637
 
14638
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/core/schema.js
14638
+ // ../node_modules/yaml/dist/schema/core/schema.js
14639
14639
  var require_schema = __commonJS((exports) => {
14640
14640
  var map = require_map();
14641
14641
  var _null = require_null();
@@ -14660,7 +14660,7 @@ var require_schema = __commonJS((exports) => {
14660
14660
  exports.schema = schema;
14661
14661
  });
14662
14662
 
14663
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/json/schema.js
14663
+ // ../node_modules/yaml/dist/schema/json/schema.js
14664
14664
  var require_schema2 = __commonJS((exports) => {
14665
14665
  var Scalar = require_Scalar();
14666
14666
  var map = require_map();
@@ -14724,7 +14724,7 @@ var require_schema2 = __commonJS((exports) => {
14724
14724
  exports.schema = schema;
14725
14725
  });
14726
14726
 
14727
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/binary.js
14727
+ // ../node_modules/yaml/dist/schema/yaml-1.1/binary.js
14728
14728
  var require_binary = __commonJS((exports) => {
14729
14729
  var node_buffer = __require("buffer");
14730
14730
  var Scalar = require_Scalar();
@@ -14779,7 +14779,7 @@ var require_binary = __commonJS((exports) => {
14779
14779
  exports.binary = binary;
14780
14780
  });
14781
14781
 
14782
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/pairs.js
14782
+ // ../node_modules/yaml/dist/schema/yaml-1.1/pairs.js
14783
14783
  var require_pairs = __commonJS((exports) => {
14784
14784
  var identity = require_identity();
14785
14785
  var Pair = require_Pair();
@@ -14854,7 +14854,7 @@ ${cn.comment}` : item.comment;
14854
14854
  exports.resolvePairs = resolvePairs;
14855
14855
  });
14856
14856
 
14857
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/omap.js
14857
+ // ../node_modules/yaml/dist/schema/yaml-1.1/omap.js
14858
14858
  var require_omap = __commonJS((exports) => {
14859
14859
  var identity = require_identity();
14860
14860
  var toJS = require_toJS();
@@ -14926,7 +14926,7 @@ var require_omap = __commonJS((exports) => {
14926
14926
  exports.omap = omap;
14927
14927
  });
14928
14928
 
14929
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/bool.js
14929
+ // ../node_modules/yaml/dist/schema/yaml-1.1/bool.js
14930
14930
  var require_bool2 = __commonJS((exports) => {
14931
14931
  var Scalar = require_Scalar();
14932
14932
  function boolStringify({ value, source }, ctx) {
@@ -14955,7 +14955,7 @@ var require_bool2 = __commonJS((exports) => {
14955
14955
  exports.trueTag = trueTag;
14956
14956
  });
14957
14957
 
14958
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/float.js
14958
+ // ../node_modules/yaml/dist/schema/yaml-1.1/float.js
14959
14959
  var require_float2 = __commonJS((exports) => {
14960
14960
  var Scalar = require_Scalar();
14961
14961
  var stringifyNumber = require_stringifyNumber();
@@ -15001,7 +15001,7 @@ var require_float2 = __commonJS((exports) => {
15001
15001
  exports.floatNaN = floatNaN;
15002
15002
  });
15003
15003
 
15004
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/int.js
15004
+ // ../node_modules/yaml/dist/schema/yaml-1.1/int.js
15005
15005
  var require_int2 = __commonJS((exports) => {
15006
15006
  var stringifyNumber = require_stringifyNumber();
15007
15007
  var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
@@ -15077,7 +15077,7 @@ var require_int2 = __commonJS((exports) => {
15077
15077
  exports.intOct = intOct;
15078
15078
  });
15079
15079
 
15080
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/set.js
15080
+ // ../node_modules/yaml/dist/schema/yaml-1.1/set.js
15081
15081
  var require_set = __commonJS((exports) => {
15082
15082
  var identity = require_identity();
15083
15083
  var Pair = require_Pair();
@@ -15160,7 +15160,7 @@ var require_set = __commonJS((exports) => {
15160
15160
  exports.set = set;
15161
15161
  });
15162
15162
 
15163
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js
15163
+ // ../node_modules/yaml/dist/schema/yaml-1.1/timestamp.js
15164
15164
  var require_timestamp = __commonJS((exports) => {
15165
15165
  var stringifyNumber = require_stringifyNumber();
15166
15166
  function parseSexagesimal(str, asBigInt) {
@@ -15242,7 +15242,7 @@ var require_timestamp = __commonJS((exports) => {
15242
15242
  exports.timestamp = timestamp;
15243
15243
  });
15244
15244
 
15245
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/schema.js
15245
+ // ../node_modules/yaml/dist/schema/yaml-1.1/schema.js
15246
15246
  var require_schema3 = __commonJS((exports) => {
15247
15247
  var map = require_map();
15248
15248
  var _null = require_null();
@@ -15283,7 +15283,7 @@ var require_schema3 = __commonJS((exports) => {
15283
15283
  exports.schema = schema;
15284
15284
  });
15285
15285
 
15286
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/tags.js
15286
+ // ../node_modules/yaml/dist/schema/tags.js
15287
15287
  var require_tags = __commonJS((exports) => {
15288
15288
  var map = require_map();
15289
15289
  var _null = require_null();
@@ -15374,7 +15374,7 @@ var require_tags = __commonJS((exports) => {
15374
15374
  exports.getTags = getTags;
15375
15375
  });
15376
15376
 
15377
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/Schema.js
15377
+ // ../node_modules/yaml/dist/schema/Schema.js
15378
15378
  var require_Schema = __commonJS((exports) => {
15379
15379
  var identity = require_identity();
15380
15380
  var map = require_map();
@@ -15404,7 +15404,7 @@ var require_Schema = __commonJS((exports) => {
15404
15404
  exports.Schema = Schema;
15405
15405
  });
15406
15406
 
15407
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyDocument.js
15407
+ // ../node_modules/yaml/dist/stringify/stringifyDocument.js
15408
15408
  var require_stringifyDocument = __commonJS((exports) => {
15409
15409
  var identity = require_identity();
15410
15410
  var stringify = require_stringify();
@@ -15484,7 +15484,7 @@ var require_stringifyDocument = __commonJS((exports) => {
15484
15484
  exports.stringifyDocument = stringifyDocument;
15485
15485
  });
15486
15486
 
15487
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/doc/Document.js
15487
+ // ../node_modules/yaml/dist/doc/Document.js
15488
15488
  var require_Document = __commonJS((exports) => {
15489
15489
  var Alias = require_Alias();
15490
15490
  var Collection = require_Collection();
@@ -15719,7 +15719,7 @@ var require_Document = __commonJS((exports) => {
15719
15719
  exports.Document = Document;
15720
15720
  });
15721
15721
 
15722
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/errors.js
15722
+ // ../node_modules/yaml/dist/errors.js
15723
15723
  var require_errors = __commonJS((exports) => {
15724
15724
  class YAMLError extends Error {
15725
15725
  constructor(name, pos, code, message) {
@@ -15784,7 +15784,7 @@ ${pointer}
15784
15784
  exports.prettifyError = prettifyError;
15785
15785
  });
15786
15786
 
15787
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-props.js
15787
+ // ../node_modules/yaml/dist/compose/resolve-props.js
15788
15788
  var require_resolve_props = __commonJS((exports) => {
15789
15789
  function resolveProps(tokens, { flow, indicator, next, offset, onError, parentIndent, startOnNewline }) {
15790
15790
  let spaceBefore = false;
@@ -15914,7 +15914,7 @@ var require_resolve_props = __commonJS((exports) => {
15914
15914
  exports.resolveProps = resolveProps;
15915
15915
  });
15916
15916
 
15917
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/util-contains-newline.js
15917
+ // ../node_modules/yaml/dist/compose/util-contains-newline.js
15918
15918
  var require_util_contains_newline = __commonJS((exports) => {
15919
15919
  function containsNewline(key) {
15920
15920
  if (!key)
@@ -15954,7 +15954,7 @@ var require_util_contains_newline = __commonJS((exports) => {
15954
15954
  exports.containsNewline = containsNewline;
15955
15955
  });
15956
15956
 
15957
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/util-flow-indent-check.js
15957
+ // ../node_modules/yaml/dist/compose/util-flow-indent-check.js
15958
15958
  var require_util_flow_indent_check = __commonJS((exports) => {
15959
15959
  var utilContainsNewline = require_util_contains_newline();
15960
15960
  function flowIndentCheck(indent, fc, onError) {
@@ -15969,7 +15969,7 @@ var require_util_flow_indent_check = __commonJS((exports) => {
15969
15969
  exports.flowIndentCheck = flowIndentCheck;
15970
15970
  });
15971
15971
 
15972
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/util-map-includes.js
15972
+ // ../node_modules/yaml/dist/compose/util-map-includes.js
15973
15973
  var require_util_map_includes = __commonJS((exports) => {
15974
15974
  var identity = require_identity();
15975
15975
  function mapIncludes(ctx, items, search) {
@@ -15982,7 +15982,7 @@ var require_util_map_includes = __commonJS((exports) => {
15982
15982
  exports.mapIncludes = mapIncludes;
15983
15983
  });
15984
15984
 
15985
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-block-map.js
15985
+ // ../node_modules/yaml/dist/compose/resolve-block-map.js
15986
15986
  var require_resolve_block_map = __commonJS((exports) => {
15987
15987
  var Pair = require_Pair();
15988
15988
  var YAMLMap = require_YAMLMap();
@@ -16089,7 +16089,7 @@ var require_resolve_block_map = __commonJS((exports) => {
16089
16089
  exports.resolveBlockMap = resolveBlockMap;
16090
16090
  });
16091
16091
 
16092
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-block-seq.js
16092
+ // ../node_modules/yaml/dist/compose/resolve-block-seq.js
16093
16093
  var require_resolve_block_seq = __commonJS((exports) => {
16094
16094
  var YAMLSeq = require_YAMLSeq();
16095
16095
  var resolveProps = require_resolve_props();
@@ -16137,7 +16137,7 @@ var require_resolve_block_seq = __commonJS((exports) => {
16137
16137
  exports.resolveBlockSeq = resolveBlockSeq;
16138
16138
  });
16139
16139
 
16140
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-end.js
16140
+ // ../node_modules/yaml/dist/compose/resolve-end.js
16141
16141
  var require_resolve_end = __commonJS((exports) => {
16142
16142
  function resolveEnd(end, offset, reqSpace, onError) {
16143
16143
  let comment = "";
@@ -16177,7 +16177,7 @@ var require_resolve_end = __commonJS((exports) => {
16177
16177
  exports.resolveEnd = resolveEnd;
16178
16178
  });
16179
16179
 
16180
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-flow-collection.js
16180
+ // ../node_modules/yaml/dist/compose/resolve-flow-collection.js
16181
16181
  var require_resolve_flow_collection = __commonJS((exports) => {
16182
16182
  var identity = require_identity();
16183
16183
  var Pair = require_Pair();
@@ -16368,7 +16368,7 @@ var require_resolve_flow_collection = __commonJS((exports) => {
16368
16368
  exports.resolveFlowCollection = resolveFlowCollection;
16369
16369
  });
16370
16370
 
16371
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/compose-collection.js
16371
+ // ../node_modules/yaml/dist/compose/compose-collection.js
16372
16372
  var require_compose_collection = __commonJS((exports) => {
16373
16373
  var identity = require_identity();
16374
16374
  var Scalar = require_Scalar();
@@ -16430,7 +16430,7 @@ var require_compose_collection = __commonJS((exports) => {
16430
16430
  exports.composeCollection = composeCollection;
16431
16431
  });
16432
16432
 
16433
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-block-scalar.js
16433
+ // ../node_modules/yaml/dist/compose/resolve-block-scalar.js
16434
16434
  var require_resolve_block_scalar = __commonJS((exports) => {
16435
16435
  var Scalar = require_Scalar();
16436
16436
  function resolveBlockScalar(ctx, scalar, onError) {
@@ -16623,7 +16623,7 @@ var require_resolve_block_scalar = __commonJS((exports) => {
16623
16623
  exports.resolveBlockScalar = resolveBlockScalar;
16624
16624
  });
16625
16625
 
16626
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-flow-scalar.js
16626
+ // ../node_modules/yaml/dist/compose/resolve-flow-scalar.js
16627
16627
  var require_resolve_flow_scalar = __commonJS((exports) => {
16628
16628
  var Scalar = require_Scalar();
16629
16629
  var resolveEnd = require_resolve_end();
@@ -16839,7 +16839,7 @@ var require_resolve_flow_scalar = __commonJS((exports) => {
16839
16839
  exports.resolveFlowScalar = resolveFlowScalar;
16840
16840
  });
16841
16841
 
16842
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/compose-scalar.js
16842
+ // ../node_modules/yaml/dist/compose/compose-scalar.js
16843
16843
  var require_compose_scalar = __commonJS((exports) => {
16844
16844
  var identity = require_identity();
16845
16845
  var Scalar = require_Scalar();
@@ -16917,7 +16917,7 @@ var require_compose_scalar = __commonJS((exports) => {
16917
16917
  exports.composeScalar = composeScalar;
16918
16918
  });
16919
16919
 
16920
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/util-empty-scalar-position.js
16920
+ // ../node_modules/yaml/dist/compose/util-empty-scalar-position.js
16921
16921
  var require_util_empty_scalar_position = __commonJS((exports) => {
16922
16922
  function emptyScalarPosition(offset, before, pos) {
16923
16923
  if (before) {
@@ -16944,7 +16944,7 @@ var require_util_empty_scalar_position = __commonJS((exports) => {
16944
16944
  exports.emptyScalarPosition = emptyScalarPosition;
16945
16945
  });
16946
16946
 
16947
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/compose-node.js
16947
+ // ../node_modules/yaml/dist/compose/compose-node.js
16948
16948
  var require_compose_node = __commonJS((exports) => {
16949
16949
  var Alias = require_Alias();
16950
16950
  var identity = require_identity();
@@ -17047,7 +17047,7 @@ var require_compose_node = __commonJS((exports) => {
17047
17047
  exports.composeNode = composeNode;
17048
17048
  });
17049
17049
 
17050
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/compose-doc.js
17050
+ // ../node_modules/yaml/dist/compose/compose-doc.js
17051
17051
  var require_compose_doc = __commonJS((exports) => {
17052
17052
  var Document = require_Document();
17053
17053
  var composeNode = require_compose_node();
@@ -17087,7 +17087,7 @@ var require_compose_doc = __commonJS((exports) => {
17087
17087
  exports.composeDoc = composeDoc;
17088
17088
  });
17089
17089
 
17090
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/composer.js
17090
+ // ../node_modules/yaml/dist/compose/composer.js
17091
17091
  var require_composer2 = __commonJS((exports) => {
17092
17092
  var node_process = __require("process");
17093
17093
  var directives = require_directives();
@@ -17276,7 +17276,7 @@ ${end.comment}` : end.comment;
17276
17276
  exports.Composer = Composer;
17277
17277
  });
17278
17278
 
17279
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/parse/cst-scalar.js
17279
+ // ../node_modules/yaml/dist/parse/cst-scalar.js
17280
17280
  var require_cst_scalar = __commonJS((exports) => {
17281
17281
  var resolveBlockScalar = require_resolve_block_scalar();
17282
17282
  var resolveFlowScalar = require_resolve_flow_scalar();
@@ -17466,7 +17466,7 @@ var require_cst_scalar = __commonJS((exports) => {
17466
17466
  exports.setScalarValue = setScalarValue;
17467
17467
  });
17468
17468
 
17469
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/parse/cst-stringify.js
17469
+ // ../node_modules/yaml/dist/parse/cst-stringify.js
17470
17470
  var require_cst_stringify = __commonJS((exports) => {
17471
17471
  var stringify = (cst) => ("type" in cst) ? stringifyToken(cst) : stringifyItem(cst);
17472
17472
  function stringifyToken(token) {
@@ -17524,7 +17524,7 @@ var require_cst_stringify = __commonJS((exports) => {
17524
17524
  exports.stringify = stringify;
17525
17525
  });
17526
17526
 
17527
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/parse/cst-visit.js
17527
+ // ../node_modules/yaml/dist/parse/cst-visit.js
17528
17528
  var require_cst_visit = __commonJS((exports) => {
17529
17529
  var BREAK = Symbol("break visit");
17530
17530
  var SKIP = Symbol("skip children");
@@ -17583,7 +17583,7 @@ var require_cst_visit = __commonJS((exports) => {
17583
17583
  exports.visit = visit;
17584
17584
  });
17585
17585
 
17586
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/parse/cst.js
17586
+ // ../node_modules/yaml/dist/parse/cst.js
17587
17587
  var require_cst = __commonJS((exports) => {
17588
17588
  var cstScalar = require_cst_scalar();
17589
17589
  var cstStringify = require_cst_stringify();
@@ -17684,7 +17684,7 @@ var require_cst = __commonJS((exports) => {
17684
17684
  exports.tokenType = tokenType;
17685
17685
  });
17686
17686
 
17687
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/parse/lexer.js
17687
+ // ../node_modules/yaml/dist/parse/lexer.js
17688
17688
  var require_lexer = __commonJS((exports) => {
17689
17689
  var cst = require_cst();
17690
17690
  function isEmpty(ch) {
@@ -18270,7 +18270,7 @@ var require_lexer = __commonJS((exports) => {
18270
18270
  exports.Lexer = Lexer;
18271
18271
  });
18272
18272
 
18273
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/parse/line-counter.js
18273
+ // ../node_modules/yaml/dist/parse/line-counter.js
18274
18274
  var require_line_counter = __commonJS((exports) => {
18275
18275
  class LineCounter {
18276
18276
  constructor() {
@@ -18298,7 +18298,7 @@ var require_line_counter = __commonJS((exports) => {
18298
18298
  exports.LineCounter = LineCounter;
18299
18299
  });
18300
18300
 
18301
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/parse/parser.js
18301
+ // ../node_modules/yaml/dist/parse/parser.js
18302
18302
  var require_parser = __commonJS((exports) => {
18303
18303
  var node_process = __require("process");
18304
18304
  var cst = require_cst();
@@ -19147,7 +19147,7 @@ var require_parser = __commonJS((exports) => {
19147
19147
  exports.Parser = Parser;
19148
19148
  });
19149
19149
 
19150
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/public-api.js
19150
+ // ../node_modules/yaml/dist/public-api.js
19151
19151
  var require_public_api = __commonJS((exports) => {
19152
19152
  var composer = require_composer2();
19153
19153
  var Document = require_Document();
@@ -19241,7 +19241,7 @@ var require_public_api = __commonJS((exports) => {
19241
19241
  exports.stringify = stringify;
19242
19242
  });
19243
19243
 
19244
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/index.js
19244
+ // ../node_modules/yaml/dist/index.js
19245
19245
  var composer, Document, Schema, errors, 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;
19246
19246
  var init_dist = __esm(() => {
19247
19247
  composer = require_composer2();
@@ -19290,7 +19290,7 @@ var init_dist = __esm(() => {
19290
19290
  $visitAsync = visit.visitAsync;
19291
19291
  });
19292
19292
 
19293
- // ../node_modules/.bun/zod@3.25.76/node_modules/zod/v3/helpers/util.js
19293
+ // ../node_modules/zod/v3/helpers/util.js
19294
19294
  var util, objectUtil, ZodParsedType, getParsedType = (data) => {
19295
19295
  const t = typeof data;
19296
19296
  switch (t) {
@@ -19421,7 +19421,7 @@ var init_util = __esm(() => {
19421
19421
  ]);
19422
19422
  });
19423
19423
 
19424
- // ../node_modules/.bun/zod@3.25.76/node_modules/zod/v3/ZodError.js
19424
+ // ../node_modules/zod/v3/ZodError.js
19425
19425
  var ZodIssueCode, quotelessJson = (obj) => {
19426
19426
  const json = JSON.stringify(obj, null, 2);
19427
19427
  return json.replace(/"([^"]+)":/g, "$1:");
@@ -19542,7 +19542,7 @@ var init_ZodError = __esm(() => {
19542
19542
  };
19543
19543
  });
19544
19544
 
19545
- // ../node_modules/.bun/zod@3.25.76/node_modules/zod/v3/locales/en.js
19545
+ // ../node_modules/zod/v3/locales/en.js
19546
19546
  var errorMap = (issue, _ctx) => {
19547
19547
  let message;
19548
19548
  switch (issue.code) {
@@ -19649,7 +19649,7 @@ var init_en = __esm(() => {
19649
19649
  en_default = errorMap;
19650
19650
  });
19651
19651
 
19652
- // ../node_modules/.bun/zod@3.25.76/node_modules/zod/v3/errors.js
19652
+ // ../node_modules/zod/v3/errors.js
19653
19653
  function setErrorMap(map) {
19654
19654
  overrideErrorMap = map;
19655
19655
  }
@@ -19662,7 +19662,7 @@ var init_errors = __esm(() => {
19662
19662
  overrideErrorMap = en_default;
19663
19663
  });
19664
19664
 
19665
- // ../node_modules/.bun/zod@3.25.76/node_modules/zod/v3/helpers/parseUtil.js
19665
+ // ../node_modules/zod/v3/helpers/parseUtil.js
19666
19666
  function addIssueToContext(ctx, issueData) {
19667
19667
  const overrideMap = getErrorMap();
19668
19668
  const issue = makeIssue({
@@ -19767,10 +19767,10 @@ var init_parseUtil = __esm(() => {
19767
19767
  });
19768
19768
  });
19769
19769
 
19770
- // ../node_modules/.bun/zod@3.25.76/node_modules/zod/v3/helpers/typeAliases.js
19770
+ // ../node_modules/zod/v3/helpers/typeAliases.js
19771
19771
  var init_typeAliases = () => {};
19772
19772
 
19773
- // ../node_modules/.bun/zod@3.25.76/node_modules/zod/v3/helpers/errorUtil.js
19773
+ // ../node_modules/zod/v3/helpers/errorUtil.js
19774
19774
  var errorUtil;
19775
19775
  var init_errorUtil = __esm(() => {
19776
19776
  (function(errorUtil2) {
@@ -19779,7 +19779,7 @@ var init_errorUtil = __esm(() => {
19779
19779
  })(errorUtil || (errorUtil = {}));
19780
19780
  });
19781
19781
 
19782
- // ../node_modules/.bun/zod@3.25.76/node_modules/zod/v3/types.js
19782
+ // ../node_modules/zod/v3/types.js
19783
19783
  class ParseInputLazyPath {
19784
19784
  constructor(parent, value, path, key) {
19785
19785
  this._cachedPath = [];
@@ -23130,7 +23130,7 @@ var init_types = __esm(() => {
23130
23130
  NEVER = INVALID;
23131
23131
  });
23132
23132
 
23133
- // ../node_modules/.bun/zod@3.25.76/node_modules/zod/v3/external.js
23133
+ // ../node_modules/zod/v3/external.js
23134
23134
  var exports_external = {};
23135
23135
  __export(exports_external, {
23136
23136
  void: () => voidType,
@@ -23250,7 +23250,7 @@ var init_external = __esm(() => {
23250
23250
  init_ZodError();
23251
23251
  });
23252
23252
 
23253
- // ../node_modules/.bun/zod@3.25.76/node_modules/zod/index.js
23253
+ // ../node_modules/zod/index.js
23254
23254
  var init_zod = __esm(() => {
23255
23255
  init_external();
23256
23256
  init_external();
@@ -23730,7 +23730,7 @@ function deriveSlug(inputs, existing) {
23730
23730
  return `${base}_${n}`;
23731
23731
  }
23732
23732
 
23733
- // ../node_modules/.bun/boundary@2.0.0/node_modules/boundary/lib/index.js
23733
+ // ../node_modules/boundary/lib/index.js
23734
23734
  var require_lib = __commonJS((exports) => {
23735
23735
  Object.defineProperty(exports, "__esModule", { value: true });
23736
23736
  exports.binarySearch = exports.upperBound = exports.lowerBound = exports.compare = undefined;
@@ -23777,7 +23777,7 @@ var require_lib = __commonJS((exports) => {
23777
23777
  exports.binarySearch = binarySearch;
23778
23778
  });
23779
23779
 
23780
- // ../node_modules/.bun/structured-source@4.0.0/node_modules/structured-source/lib/structured-source.js
23780
+ // ../node_modules/structured-source/lib/structured-source.js
23781
23781
  var require_structured_source = __commonJS((exports) => {
23782
23782
  Object.defineProperty(exports, "__esModule", { value: true });
23783
23783
  exports.StructuredSource = undefined;
@@ -23832,13 +23832,13 @@ var require_structured_source = __commonJS((exports) => {
23832
23832
  }
23833
23833
  exports.StructuredSource = StructuredSource;
23834
23834
  });
23835
- // ../node_modules/.bun/@secretlint+core@12.2.0/node_modules/@secretlint/core/module/SecretLintSourceCodeImpl.js
23835
+ // ../node_modules/@secretlint/core/module/SecretLintSourceCodeImpl.js
23836
23836
  var import_structured_source;
23837
23837
  var init_SecretLintSourceCodeImpl = __esm(() => {
23838
23838
  import_structured_source = __toESM(require_structured_source(), 1);
23839
23839
  });
23840
23840
 
23841
- // ../node_modules/.bun/@secretlint+core@12.2.0/node_modules/@secretlint/core/module/helper/promise-event-emitter.js
23841
+ // ../node_modules/@secretlint/core/module/helper/promise-event-emitter.js
23842
23842
  class EventEmitter {
23843
23843
  #listeners = new Map;
23844
23844
  on(type, listener) {
@@ -23877,9 +23877,9 @@ class EventEmitter {
23877
23877
  return Array.from(this.#listeners.get(type) ?? []);
23878
23878
  }
23879
23879
  }
23880
- // ../node_modules/.bun/@secretlint+core@12.2.0/node_modules/@secretlint/core/module/RuleContext.js
23880
+ // ../node_modules/@secretlint/core/module/RuleContext.js
23881
23881
  var init_RuleContext = () => {};
23882
- // ../node_modules/.bun/@secretlint+profiler@12.2.0/node_modules/@secretlint/profiler/module/index.js
23882
+ // ../node_modules/@secretlint/profiler/module/index.js
23883
23883
  class SecretLintProfiler {
23884
23884
  perf;
23885
23885
  entries = [];
@@ -23936,7 +23936,7 @@ class SecretLintProfiler {
23936
23936
  }
23937
23937
  }
23938
23938
 
23939
- // ../node_modules/.bun/@secretlint+profiler@12.2.0/node_modules/@secretlint/profiler/module/node.js
23939
+ // ../node_modules/@secretlint/profiler/module/node.js
23940
23940
  import perf_hooks from "node:perf_hooks";
23941
23941
 
23942
23942
  class NullPerformanceObserver {
@@ -23951,19 +23951,19 @@ var init_node = __esm(() => {
23951
23951
  });
23952
23952
  });
23953
23953
 
23954
- // ../node_modules/.bun/@secretlint+core@12.2.0/node_modules/@secretlint/core/module/RunningEvents.js
23954
+ // ../node_modules/@secretlint/core/module/RunningEvents.js
23955
23955
  var init_RunningEvents = __esm(() => {
23956
23956
  init_node();
23957
23957
  });
23958
23958
 
23959
- // ../node_modules/.bun/@secretlint+core@12.2.0/node_modules/@secretlint/core/module/RulePresetContext.js
23959
+ // ../node_modules/@secretlint/core/module/RulePresetContext.js
23960
23960
  var init_RulePresetContext = __esm(() => {
23961
23961
  init_RuleContext();
23962
23962
  });
23963
- // ../node_modules/.bun/@secretlint+core@12.2.0/node_modules/@secretlint/core/module/messages/index.js
23963
+ // ../node_modules/@secretlint/core/module/messages/index.js
23964
23964
  var init_messages = () => {};
23965
23965
 
23966
- // ../node_modules/.bun/@secretlint+core@12.2.0/node_modules/@secretlint/core/module/index.js
23966
+ // ../node_modules/@secretlint/core/module/index.js
23967
23967
  var import_debug, debug;
23968
23968
  var init_module = __esm(() => {
23969
23969
  init_SecretLintSourceCodeImpl();
@@ -23976,7 +23976,7 @@ var init_module = __esm(() => {
23976
23976
  debug = import_debug.default("@secretlint/core");
23977
23977
  });
23978
23978
 
23979
- // ../node_modules/.bun/@secretlint+secretlint-rule-preset-recommend@12.2.0/node_modules/@secretlint/secretlint-rule-preset-recommend/module/index.js
23979
+ // ../node_modules/@secretlint/secretlint-rule-preset-recommend/module/index.js
23980
23980
  function requireLodash_uniq() {
23981
23981
  if (hasRequiredLodash_uniq)
23982
23982
  return lodash_uniq;
@@ -26810,7 +26810,8 @@ var init_protocol = __esm(() => {
26810
26810
  exports_external.object({ kind: exports_external.literal("string"), value: exports_external.string() }),
26811
26811
  exports_external.object({ kind: exports_external.literal("binary"), value: exports_external.string() })
26812
26812
  ]),
26813
- token: exports_external.string().optional()
26813
+ token: exports_external.string().optional(),
26814
+ passphrase: exports_external.string().optional()
26814
26815
  });
26815
26816
  ListRequestSchema = exports_external.object({
26816
26817
  v: exports_external.literal(1),
@@ -26821,9 +26822,10 @@ var init_protocol = __esm(() => {
26821
26822
  v: exports_external.literal(1),
26822
26823
  op: exports_external.literal("mint_grant"),
26823
26824
  agent: exports_external.string().min(1),
26824
- keys: exports_external.array(exports_external.string().min(1)).min(1),
26825
+ keys: exports_external.array(exports_external.string().min(1)),
26825
26826
  ttl_seconds: exports_external.number().int().positive().nullable(),
26826
- description: exports_external.string().optional()
26827
+ description: exports_external.string().optional(),
26828
+ write_keys: exports_external.array(exports_external.string().min(1)).optional()
26827
26829
  });
26828
26830
  ListGrantsRequestSchema = exports_external.object({
26829
26831
  v: exports_external.literal(1),
@@ -26964,6 +26966,7 @@ var init_protocol = __esm(() => {
26964
26966
  id: exports_external.string(),
26965
26967
  agent_slug: exports_external.string(),
26966
26968
  key_allow: exports_external.array(exports_external.string()),
26969
+ write_allow: exports_external.array(exports_external.string()).default([]),
26967
26970
  expires_at: exports_external.number().nullable(),
26968
26971
  created_at: exports_external.number(),
26969
26972
  description: exports_external.string().nullable()
@@ -27158,1525 +27161,8 @@ var init_client = __esm(() => {
27158
27161
  DEFAULT_SOCKET_PATH2 = join26(homedir7(), ".switchroom", "vault-broker.sock");
27159
27162
  });
27160
27163
 
27161
- // ../node_modules/.bun/graceful-fs@4.2.11/node_modules/graceful-fs/polyfills.js
27162
- var require_polyfills = __commonJS((exports, module) => {
27163
- var constants = __require("constants");
27164
- var origCwd = process.cwd;
27165
- var cwd = null;
27166
- var platform = process.env.GRACEFUL_FS_PLATFORM || process.platform;
27167
- process.cwd = function() {
27168
- if (!cwd)
27169
- cwd = origCwd.call(process);
27170
- return cwd;
27171
- };
27172
- try {
27173
- process.cwd();
27174
- } catch (er) {}
27175
- if (typeof process.chdir === "function") {
27176
- chdir = process.chdir;
27177
- process.chdir = function(d) {
27178
- cwd = null;
27179
- chdir.call(process, d);
27180
- };
27181
- if (Object.setPrototypeOf)
27182
- Object.setPrototypeOf(process.chdir, chdir);
27183
- }
27184
- var chdir;
27185
- module.exports = patch;
27186
- function patch(fs) {
27187
- if (constants.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
27188
- patchLchmod(fs);
27189
- }
27190
- if (!fs.lutimes) {
27191
- patchLutimes(fs);
27192
- }
27193
- fs.chown = chownFix(fs.chown);
27194
- fs.fchown = chownFix(fs.fchown);
27195
- fs.lchown = chownFix(fs.lchown);
27196
- fs.chmod = chmodFix(fs.chmod);
27197
- fs.fchmod = chmodFix(fs.fchmod);
27198
- fs.lchmod = chmodFix(fs.lchmod);
27199
- fs.chownSync = chownFixSync(fs.chownSync);
27200
- fs.fchownSync = chownFixSync(fs.fchownSync);
27201
- fs.lchownSync = chownFixSync(fs.lchownSync);
27202
- fs.chmodSync = chmodFixSync(fs.chmodSync);
27203
- fs.fchmodSync = chmodFixSync(fs.fchmodSync);
27204
- fs.lchmodSync = chmodFixSync(fs.lchmodSync);
27205
- fs.stat = statFix(fs.stat);
27206
- fs.fstat = statFix(fs.fstat);
27207
- fs.lstat = statFix(fs.lstat);
27208
- fs.statSync = statFixSync(fs.statSync);
27209
- fs.fstatSync = statFixSync(fs.fstatSync);
27210
- fs.lstatSync = statFixSync(fs.lstatSync);
27211
- if (fs.chmod && !fs.lchmod) {
27212
- fs.lchmod = function(path, mode, cb) {
27213
- if (cb)
27214
- process.nextTick(cb);
27215
- };
27216
- fs.lchmodSync = function() {};
27217
- }
27218
- if (fs.chown && !fs.lchown) {
27219
- fs.lchown = function(path, uid, gid, cb) {
27220
- if (cb)
27221
- process.nextTick(cb);
27222
- };
27223
- fs.lchownSync = function() {};
27224
- }
27225
- if (platform === "win32") {
27226
- fs.rename = typeof fs.rename !== "function" ? fs.rename : function(fs$rename) {
27227
- function rename(from, to, cb) {
27228
- var start = Date.now();
27229
- var backoff = 0;
27230
- fs$rename(from, to, function CB(er) {
27231
- if (er && (er.code === "EACCES" || er.code === "EPERM" || er.code === "EBUSY") && Date.now() - start < 60000) {
27232
- setTimeout(function() {
27233
- fs.stat(to, function(stater, st) {
27234
- if (stater && stater.code === "ENOENT")
27235
- fs$rename(from, to, CB);
27236
- else
27237
- cb(er);
27238
- });
27239
- }, backoff);
27240
- if (backoff < 100)
27241
- backoff += 10;
27242
- return;
27243
- }
27244
- if (cb)
27245
- cb(er);
27246
- });
27247
- }
27248
- if (Object.setPrototypeOf)
27249
- Object.setPrototypeOf(rename, fs$rename);
27250
- return rename;
27251
- }(fs.rename);
27252
- }
27253
- fs.read = typeof fs.read !== "function" ? fs.read : function(fs$read) {
27254
- function read(fd, buffer, offset, length, position, callback_) {
27255
- var callback;
27256
- if (callback_ && typeof callback_ === "function") {
27257
- var eagCounter = 0;
27258
- callback = function(er, _, __) {
27259
- if (er && er.code === "EAGAIN" && eagCounter < 10) {
27260
- eagCounter++;
27261
- return fs$read.call(fs, fd, buffer, offset, length, position, callback);
27262
- }
27263
- callback_.apply(this, arguments);
27264
- };
27265
- }
27266
- return fs$read.call(fs, fd, buffer, offset, length, position, callback);
27267
- }
27268
- if (Object.setPrototypeOf)
27269
- Object.setPrototypeOf(read, fs$read);
27270
- return read;
27271
- }(fs.read);
27272
- fs.readSync = typeof fs.readSync !== "function" ? fs.readSync : function(fs$readSync) {
27273
- return function(fd, buffer, offset, length, position) {
27274
- var eagCounter = 0;
27275
- while (true) {
27276
- try {
27277
- return fs$readSync.call(fs, fd, buffer, offset, length, position);
27278
- } catch (er) {
27279
- if (er.code === "EAGAIN" && eagCounter < 10) {
27280
- eagCounter++;
27281
- continue;
27282
- }
27283
- throw er;
27284
- }
27285
- }
27286
- };
27287
- }(fs.readSync);
27288
- function patchLchmod(fs2) {
27289
- fs2.lchmod = function(path, mode, callback) {
27290
- fs2.open(path, constants.O_WRONLY | constants.O_SYMLINK, mode, function(err, fd) {
27291
- if (err) {
27292
- if (callback)
27293
- callback(err);
27294
- return;
27295
- }
27296
- fs2.fchmod(fd, mode, function(err2) {
27297
- fs2.close(fd, function(err22) {
27298
- if (callback)
27299
- callback(err2 || err22);
27300
- });
27301
- });
27302
- });
27303
- };
27304
- fs2.lchmodSync = function(path, mode) {
27305
- var fd = fs2.openSync(path, constants.O_WRONLY | constants.O_SYMLINK, mode);
27306
- var threw = true;
27307
- var ret;
27308
- try {
27309
- ret = fs2.fchmodSync(fd, mode);
27310
- threw = false;
27311
- } finally {
27312
- if (threw) {
27313
- try {
27314
- fs2.closeSync(fd);
27315
- } catch (er) {}
27316
- } else {
27317
- fs2.closeSync(fd);
27318
- }
27319
- }
27320
- return ret;
27321
- };
27322
- }
27323
- function patchLutimes(fs2) {
27324
- if (constants.hasOwnProperty("O_SYMLINK") && fs2.futimes) {
27325
- fs2.lutimes = function(path, at, mt, cb) {
27326
- fs2.open(path, constants.O_SYMLINK, function(er, fd) {
27327
- if (er) {
27328
- if (cb)
27329
- cb(er);
27330
- return;
27331
- }
27332
- fs2.futimes(fd, at, mt, function(er2) {
27333
- fs2.close(fd, function(er22) {
27334
- if (cb)
27335
- cb(er2 || er22);
27336
- });
27337
- });
27338
- });
27339
- };
27340
- fs2.lutimesSync = function(path, at, mt) {
27341
- var fd = fs2.openSync(path, constants.O_SYMLINK);
27342
- var ret;
27343
- var threw = true;
27344
- try {
27345
- ret = fs2.futimesSync(fd, at, mt);
27346
- threw = false;
27347
- } finally {
27348
- if (threw) {
27349
- try {
27350
- fs2.closeSync(fd);
27351
- } catch (er) {}
27352
- } else {
27353
- fs2.closeSync(fd);
27354
- }
27355
- }
27356
- return ret;
27357
- };
27358
- } else if (fs2.futimes) {
27359
- fs2.lutimes = function(_a, _b, _c, cb) {
27360
- if (cb)
27361
- process.nextTick(cb);
27362
- };
27363
- fs2.lutimesSync = function() {};
27364
- }
27365
- }
27366
- function chmodFix(orig) {
27367
- if (!orig)
27368
- return orig;
27369
- return function(target, mode, cb) {
27370
- return orig.call(fs, target, mode, function(er) {
27371
- if (chownErOk(er))
27372
- er = null;
27373
- if (cb)
27374
- cb.apply(this, arguments);
27375
- });
27376
- };
27377
- }
27378
- function chmodFixSync(orig) {
27379
- if (!orig)
27380
- return orig;
27381
- return function(target, mode) {
27382
- try {
27383
- return orig.call(fs, target, mode);
27384
- } catch (er) {
27385
- if (!chownErOk(er))
27386
- throw er;
27387
- }
27388
- };
27389
- }
27390
- function chownFix(orig) {
27391
- if (!orig)
27392
- return orig;
27393
- return function(target, uid, gid, cb) {
27394
- return orig.call(fs, target, uid, gid, function(er) {
27395
- if (chownErOk(er))
27396
- er = null;
27397
- if (cb)
27398
- cb.apply(this, arguments);
27399
- });
27400
- };
27401
- }
27402
- function chownFixSync(orig) {
27403
- if (!orig)
27404
- return orig;
27405
- return function(target, uid, gid) {
27406
- try {
27407
- return orig.call(fs, target, uid, gid);
27408
- } catch (er) {
27409
- if (!chownErOk(er))
27410
- throw er;
27411
- }
27412
- };
27413
- }
27414
- function statFix(orig) {
27415
- if (!orig)
27416
- return orig;
27417
- return function(target, options, cb) {
27418
- if (typeof options === "function") {
27419
- cb = options;
27420
- options = null;
27421
- }
27422
- function callback(er, stats) {
27423
- if (stats) {
27424
- if (stats.uid < 0)
27425
- stats.uid += 4294967296;
27426
- if (stats.gid < 0)
27427
- stats.gid += 4294967296;
27428
- }
27429
- if (cb)
27430
- cb.apply(this, arguments);
27431
- }
27432
- return options ? orig.call(fs, target, options, callback) : orig.call(fs, target, callback);
27433
- };
27434
- }
27435
- function statFixSync(orig) {
27436
- if (!orig)
27437
- return orig;
27438
- return function(target, options) {
27439
- var stats = options ? orig.call(fs, target, options) : orig.call(fs, target);
27440
- if (stats) {
27441
- if (stats.uid < 0)
27442
- stats.uid += 4294967296;
27443
- if (stats.gid < 0)
27444
- stats.gid += 4294967296;
27445
- }
27446
- return stats;
27447
- };
27448
- }
27449
- function chownErOk(er) {
27450
- if (!er)
27451
- return true;
27452
- if (er.code === "ENOSYS")
27453
- return true;
27454
- var nonroot = !process.getuid || process.getuid() !== 0;
27455
- if (nonroot) {
27456
- if (er.code === "EINVAL" || er.code === "EPERM")
27457
- return true;
27458
- }
27459
- return false;
27460
- }
27461
- }
27462
- });
27463
-
27464
- // ../node_modules/.bun/graceful-fs@4.2.11/node_modules/graceful-fs/legacy-streams.js
27465
- var require_legacy_streams = __commonJS((exports, module) => {
27466
- var Stream = __require("stream").Stream;
27467
- module.exports = legacy;
27468
- function legacy(fs) {
27469
- return {
27470
- ReadStream,
27471
- WriteStream
27472
- };
27473
- function ReadStream(path, options) {
27474
- if (!(this instanceof ReadStream))
27475
- return new ReadStream(path, options);
27476
- Stream.call(this);
27477
- var self2 = this;
27478
- this.path = path;
27479
- this.fd = null;
27480
- this.readable = true;
27481
- this.paused = false;
27482
- this.flags = "r";
27483
- this.mode = 438;
27484
- this.bufferSize = 64 * 1024;
27485
- options = options || {};
27486
- var keys = Object.keys(options);
27487
- for (var index = 0, length = keys.length;index < length; index++) {
27488
- var key = keys[index];
27489
- this[key] = options[key];
27490
- }
27491
- if (this.encoding)
27492
- this.setEncoding(this.encoding);
27493
- if (this.start !== undefined) {
27494
- if (typeof this.start !== "number") {
27495
- throw TypeError("start must be a Number");
27496
- }
27497
- if (this.end === undefined) {
27498
- this.end = Infinity;
27499
- } else if (typeof this.end !== "number") {
27500
- throw TypeError("end must be a Number");
27501
- }
27502
- if (this.start > this.end) {
27503
- throw new Error("start must be <= end");
27504
- }
27505
- this.pos = this.start;
27506
- }
27507
- if (this.fd !== null) {
27508
- process.nextTick(function() {
27509
- self2._read();
27510
- });
27511
- return;
27512
- }
27513
- fs.open(this.path, this.flags, this.mode, function(err, fd) {
27514
- if (err) {
27515
- self2.emit("error", err);
27516
- self2.readable = false;
27517
- return;
27518
- }
27519
- self2.fd = fd;
27520
- self2.emit("open", fd);
27521
- self2._read();
27522
- });
27523
- }
27524
- function WriteStream(path, options) {
27525
- if (!(this instanceof WriteStream))
27526
- return new WriteStream(path, options);
27527
- Stream.call(this);
27528
- this.path = path;
27529
- this.fd = null;
27530
- this.writable = true;
27531
- this.flags = "w";
27532
- this.encoding = "binary";
27533
- this.mode = 438;
27534
- this.bytesWritten = 0;
27535
- options = options || {};
27536
- var keys = Object.keys(options);
27537
- for (var index = 0, length = keys.length;index < length; index++) {
27538
- var key = keys[index];
27539
- this[key] = options[key];
27540
- }
27541
- if (this.start !== undefined) {
27542
- if (typeof this.start !== "number") {
27543
- throw TypeError("start must be a Number");
27544
- }
27545
- if (this.start < 0) {
27546
- throw new Error("start must be >= zero");
27547
- }
27548
- this.pos = this.start;
27549
- }
27550
- this.busy = false;
27551
- this._queue = [];
27552
- if (this.fd === null) {
27553
- this._open = fs.open;
27554
- this._queue.push([this._open, this.path, this.flags, this.mode, undefined]);
27555
- this.flush();
27556
- }
27557
- }
27558
- }
27559
- });
27560
-
27561
- // ../node_modules/.bun/graceful-fs@4.2.11/node_modules/graceful-fs/clone.js
27562
- var require_clone = __commonJS((exports, module) => {
27563
- module.exports = clone;
27564
- var getPrototypeOf = Object.getPrototypeOf || function(obj) {
27565
- return obj.__proto__;
27566
- };
27567
- function clone(obj) {
27568
- if (obj === null || typeof obj !== "object")
27569
- return obj;
27570
- if (obj instanceof Object)
27571
- var copy = { __proto__: getPrototypeOf(obj) };
27572
- else
27573
- var copy = Object.create(null);
27574
- Object.getOwnPropertyNames(obj).forEach(function(key) {
27575
- Object.defineProperty(copy, key, Object.getOwnPropertyDescriptor(obj, key));
27576
- });
27577
- return copy;
27578
- }
27579
- });
27580
-
27581
- // ../node_modules/.bun/graceful-fs@4.2.11/node_modules/graceful-fs/graceful-fs.js
27582
- var require_graceful_fs = __commonJS((exports, module) => {
27583
- var fs = __require("fs");
27584
- var polyfills = require_polyfills();
27585
- var legacy = require_legacy_streams();
27586
- var clone = require_clone();
27587
- var util3 = __require("util");
27588
- var gracefulQueue;
27589
- var previousSymbol;
27590
- if (typeof Symbol === "function" && typeof Symbol.for === "function") {
27591
- gracefulQueue = Symbol.for("graceful-fs.queue");
27592
- previousSymbol = Symbol.for("graceful-fs.previous");
27593
- } else {
27594
- gracefulQueue = "___graceful-fs.queue";
27595
- previousSymbol = "___graceful-fs.previous";
27596
- }
27597
- function noop() {}
27598
- function publishQueue(context, queue2) {
27599
- Object.defineProperty(context, gracefulQueue, {
27600
- get: function() {
27601
- return queue2;
27602
- }
27603
- });
27604
- }
27605
- var debug2 = noop;
27606
- if (util3.debuglog)
27607
- debug2 = util3.debuglog("gfs4");
27608
- else if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || ""))
27609
- debug2 = function() {
27610
- var m = util3.format.apply(util3, arguments);
27611
- m = "GFS4: " + m.split(/\n/).join(`
27612
- GFS4: `);
27613
- console.error(m);
27614
- };
27615
- if (!fs[gracefulQueue]) {
27616
- queue = global[gracefulQueue] || [];
27617
- publishQueue(fs, queue);
27618
- fs.close = function(fs$close) {
27619
- function close(fd, cb) {
27620
- return fs$close.call(fs, fd, function(err) {
27621
- if (!err) {
27622
- resetQueue();
27623
- }
27624
- if (typeof cb === "function")
27625
- cb.apply(this, arguments);
27626
- });
27627
- }
27628
- Object.defineProperty(close, previousSymbol, {
27629
- value: fs$close
27630
- });
27631
- return close;
27632
- }(fs.close);
27633
- fs.closeSync = function(fs$closeSync) {
27634
- function closeSync5(fd) {
27635
- fs$closeSync.apply(fs, arguments);
27636
- resetQueue();
27637
- }
27638
- Object.defineProperty(closeSync5, previousSymbol, {
27639
- value: fs$closeSync
27640
- });
27641
- return closeSync5;
27642
- }(fs.closeSync);
27643
- if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) {
27644
- process.on("exit", function() {
27645
- debug2(fs[gracefulQueue]);
27646
- __require("assert").equal(fs[gracefulQueue].length, 0);
27647
- });
27648
- }
27649
- }
27650
- var queue;
27651
- if (!global[gracefulQueue]) {
27652
- publishQueue(global, fs[gracefulQueue]);
27653
- }
27654
- module.exports = patch(clone(fs));
27655
- if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs.__patched) {
27656
- module.exports = patch(fs);
27657
- fs.__patched = true;
27658
- }
27659
- function patch(fs2) {
27660
- polyfills(fs2);
27661
- fs2.gracefulify = patch;
27662
- fs2.createReadStream = createReadStream;
27663
- fs2.createWriteStream = createWriteStream;
27664
- var fs$readFile = fs2.readFile;
27665
- fs2.readFile = readFile;
27666
- function readFile(path, options, cb) {
27667
- if (typeof options === "function")
27668
- cb = options, options = null;
27669
- return go$readFile(path, options, cb);
27670
- function go$readFile(path2, options2, cb2, startTime) {
27671
- return fs$readFile(path2, options2, function(err) {
27672
- if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
27673
- enqueue([go$readFile, [path2, options2, cb2], err, startTime || Date.now(), Date.now()]);
27674
- else {
27675
- if (typeof cb2 === "function")
27676
- cb2.apply(this, arguments);
27677
- }
27678
- });
27679
- }
27680
- }
27681
- var fs$writeFile = fs2.writeFile;
27682
- fs2.writeFile = writeFile;
27683
- function writeFile(path, data, options, cb) {
27684
- if (typeof options === "function")
27685
- cb = options, options = null;
27686
- return go$writeFile(path, data, options, cb);
27687
- function go$writeFile(path2, data2, options2, cb2, startTime) {
27688
- return fs$writeFile(path2, data2, options2, function(err) {
27689
- if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
27690
- enqueue([go$writeFile, [path2, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
27691
- else {
27692
- if (typeof cb2 === "function")
27693
- cb2.apply(this, arguments);
27694
- }
27695
- });
27696
- }
27697
- }
27698
- var fs$appendFile = fs2.appendFile;
27699
- if (fs$appendFile)
27700
- fs2.appendFile = appendFile;
27701
- function appendFile(path, data, options, cb) {
27702
- if (typeof options === "function")
27703
- cb = options, options = null;
27704
- return go$appendFile(path, data, options, cb);
27705
- function go$appendFile(path2, data2, options2, cb2, startTime) {
27706
- return fs$appendFile(path2, data2, options2, function(err) {
27707
- if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
27708
- enqueue([go$appendFile, [path2, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
27709
- else {
27710
- if (typeof cb2 === "function")
27711
- cb2.apply(this, arguments);
27712
- }
27713
- });
27714
- }
27715
- }
27716
- var fs$copyFile = fs2.copyFile;
27717
- if (fs$copyFile)
27718
- fs2.copyFile = copyFile;
27719
- function copyFile(src, dest, flags, cb) {
27720
- if (typeof flags === "function") {
27721
- cb = flags;
27722
- flags = 0;
27723
- }
27724
- return go$copyFile(src, dest, flags, cb);
27725
- function go$copyFile(src2, dest2, flags2, cb2, startTime) {
27726
- return fs$copyFile(src2, dest2, flags2, function(err) {
27727
- if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
27728
- enqueue([go$copyFile, [src2, dest2, flags2, cb2], err, startTime || Date.now(), Date.now()]);
27729
- else {
27730
- if (typeof cb2 === "function")
27731
- cb2.apply(this, arguments);
27732
- }
27733
- });
27734
- }
27735
- }
27736
- var fs$readdir = fs2.readdir;
27737
- fs2.readdir = readdir;
27738
- var noReaddirOptionVersions = /^v[0-5]\./;
27739
- function readdir(path, options, cb) {
27740
- if (typeof options === "function")
27741
- cb = options, options = null;
27742
- var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path2, options2, cb2, startTime) {
27743
- return fs$readdir(path2, fs$readdirCallback(path2, options2, cb2, startTime));
27744
- } : function go$readdir2(path2, options2, cb2, startTime) {
27745
- return fs$readdir(path2, options2, fs$readdirCallback(path2, options2, cb2, startTime));
27746
- };
27747
- return go$readdir(path, options, cb);
27748
- function fs$readdirCallback(path2, options2, cb2, startTime) {
27749
- return function(err, files) {
27750
- if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
27751
- enqueue([
27752
- go$readdir,
27753
- [path2, options2, cb2],
27754
- err,
27755
- startTime || Date.now(),
27756
- Date.now()
27757
- ]);
27758
- else {
27759
- if (files && files.sort)
27760
- files.sort();
27761
- if (typeof cb2 === "function")
27762
- cb2.call(this, err, files);
27763
- }
27764
- };
27765
- }
27766
- }
27767
- if (process.version.substr(0, 4) === "v0.8") {
27768
- var legStreams = legacy(fs2);
27769
- ReadStream = legStreams.ReadStream;
27770
- WriteStream = legStreams.WriteStream;
27771
- }
27772
- var fs$ReadStream = fs2.ReadStream;
27773
- if (fs$ReadStream) {
27774
- ReadStream.prototype = Object.create(fs$ReadStream.prototype);
27775
- ReadStream.prototype.open = ReadStream$open;
27776
- }
27777
- var fs$WriteStream = fs2.WriteStream;
27778
- if (fs$WriteStream) {
27779
- WriteStream.prototype = Object.create(fs$WriteStream.prototype);
27780
- WriteStream.prototype.open = WriteStream$open;
27781
- }
27782
- Object.defineProperty(fs2, "ReadStream", {
27783
- get: function() {
27784
- return ReadStream;
27785
- },
27786
- set: function(val) {
27787
- ReadStream = val;
27788
- },
27789
- enumerable: true,
27790
- configurable: true
27791
- });
27792
- Object.defineProperty(fs2, "WriteStream", {
27793
- get: function() {
27794
- return WriteStream;
27795
- },
27796
- set: function(val) {
27797
- WriteStream = val;
27798
- },
27799
- enumerable: true,
27800
- configurable: true
27801
- });
27802
- var FileReadStream = ReadStream;
27803
- Object.defineProperty(fs2, "FileReadStream", {
27804
- get: function() {
27805
- return FileReadStream;
27806
- },
27807
- set: function(val) {
27808
- FileReadStream = val;
27809
- },
27810
- enumerable: true,
27811
- configurable: true
27812
- });
27813
- var FileWriteStream = WriteStream;
27814
- Object.defineProperty(fs2, "FileWriteStream", {
27815
- get: function() {
27816
- return FileWriteStream;
27817
- },
27818
- set: function(val) {
27819
- FileWriteStream = val;
27820
- },
27821
- enumerable: true,
27822
- configurable: true
27823
- });
27824
- function ReadStream(path, options) {
27825
- if (this instanceof ReadStream)
27826
- return fs$ReadStream.apply(this, arguments), this;
27827
- else
27828
- return ReadStream.apply(Object.create(ReadStream.prototype), arguments);
27829
- }
27830
- function ReadStream$open() {
27831
- var that = this;
27832
- open(that.path, that.flags, that.mode, function(err, fd) {
27833
- if (err) {
27834
- if (that.autoClose)
27835
- that.destroy();
27836
- that.emit("error", err);
27837
- } else {
27838
- that.fd = fd;
27839
- that.emit("open", fd);
27840
- that.read();
27841
- }
27842
- });
27843
- }
27844
- function WriteStream(path, options) {
27845
- if (this instanceof WriteStream)
27846
- return fs$WriteStream.apply(this, arguments), this;
27847
- else
27848
- return WriteStream.apply(Object.create(WriteStream.prototype), arguments);
27849
- }
27850
- function WriteStream$open() {
27851
- var that = this;
27852
- open(that.path, that.flags, that.mode, function(err, fd) {
27853
- if (err) {
27854
- that.destroy();
27855
- that.emit("error", err);
27856
- } else {
27857
- that.fd = fd;
27858
- that.emit("open", fd);
27859
- }
27860
- });
27861
- }
27862
- function createReadStream(path, options) {
27863
- return new fs2.ReadStream(path, options);
27864
- }
27865
- function createWriteStream(path, options) {
27866
- return new fs2.WriteStream(path, options);
27867
- }
27868
- var fs$open = fs2.open;
27869
- fs2.open = open;
27870
- function open(path, flags, mode, cb) {
27871
- if (typeof mode === "function")
27872
- cb = mode, mode = null;
27873
- return go$open(path, flags, mode, cb);
27874
- function go$open(path2, flags2, mode2, cb2, startTime) {
27875
- return fs$open(path2, flags2, mode2, function(err, fd) {
27876
- if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
27877
- enqueue([go$open, [path2, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
27878
- else {
27879
- if (typeof cb2 === "function")
27880
- cb2.apply(this, arguments);
27881
- }
27882
- });
27883
- }
27884
- }
27885
- return fs2;
27886
- }
27887
- function enqueue(elem) {
27888
- debug2("ENQUEUE", elem[0].name, elem[1]);
27889
- fs[gracefulQueue].push(elem);
27890
- retry();
27891
- }
27892
- var retryTimer;
27893
- function resetQueue() {
27894
- var now = Date.now();
27895
- for (var i = 0;i < fs[gracefulQueue].length; ++i) {
27896
- if (fs[gracefulQueue][i].length > 2) {
27897
- fs[gracefulQueue][i][3] = now;
27898
- fs[gracefulQueue][i][4] = now;
27899
- }
27900
- }
27901
- retry();
27902
- }
27903
- function retry() {
27904
- clearTimeout(retryTimer);
27905
- retryTimer = undefined;
27906
- if (fs[gracefulQueue].length === 0)
27907
- return;
27908
- var elem = fs[gracefulQueue].shift();
27909
- var fn = elem[0];
27910
- var args = elem[1];
27911
- var err = elem[2];
27912
- var startTime = elem[3];
27913
- var lastTime = elem[4];
27914
- if (startTime === undefined) {
27915
- debug2("RETRY", fn.name, args);
27916
- fn.apply(null, args);
27917
- } else if (Date.now() - startTime >= 60000) {
27918
- debug2("TIMEOUT", fn.name, args);
27919
- var cb = args.pop();
27920
- if (typeof cb === "function")
27921
- cb.call(null, err);
27922
- } else {
27923
- var sinceAttempt = Date.now() - lastTime;
27924
- var sinceStart = Math.max(lastTime - startTime, 1);
27925
- var desiredDelay = Math.min(sinceStart * 1.2, 100);
27926
- if (sinceAttempt >= desiredDelay) {
27927
- debug2("RETRY", fn.name, args);
27928
- fn.apply(null, args.concat([startTime]));
27929
- } else {
27930
- fs[gracefulQueue].push(elem);
27931
- }
27932
- }
27933
- if (retryTimer === undefined) {
27934
- retryTimer = setTimeout(retry, 0);
27935
- }
27936
- }
27937
- });
27938
-
27939
- // ../node_modules/.bun/retry@0.12.0/node_modules/retry/lib/retry_operation.js
27940
- var require_retry_operation = __commonJS((exports, module) => {
27941
- function RetryOperation(timeouts, options) {
27942
- if (typeof options === "boolean") {
27943
- options = { forever: options };
27944
- }
27945
- this._originalTimeouts = JSON.parse(JSON.stringify(timeouts));
27946
- this._timeouts = timeouts;
27947
- this._options = options || {};
27948
- this._maxRetryTime = options && options.maxRetryTime || Infinity;
27949
- this._fn = null;
27950
- this._errors = [];
27951
- this._attempts = 1;
27952
- this._operationTimeout = null;
27953
- this._operationTimeoutCb = null;
27954
- this._timeout = null;
27955
- this._operationStart = null;
27956
- if (this._options.forever) {
27957
- this._cachedTimeouts = this._timeouts.slice(0);
27958
- }
27959
- }
27960
- module.exports = RetryOperation;
27961
- RetryOperation.prototype.reset = function() {
27962
- this._attempts = 1;
27963
- this._timeouts = this._originalTimeouts;
27964
- };
27965
- RetryOperation.prototype.stop = function() {
27966
- if (this._timeout) {
27967
- clearTimeout(this._timeout);
27968
- }
27969
- this._timeouts = [];
27970
- this._cachedTimeouts = null;
27971
- };
27972
- RetryOperation.prototype.retry = function(err) {
27973
- if (this._timeout) {
27974
- clearTimeout(this._timeout);
27975
- }
27976
- if (!err) {
27977
- return false;
27978
- }
27979
- var currentTime = new Date().getTime();
27980
- if (err && currentTime - this._operationStart >= this._maxRetryTime) {
27981
- this._errors.unshift(new Error("RetryOperation timeout occurred"));
27982
- return false;
27983
- }
27984
- this._errors.push(err);
27985
- var timeout = this._timeouts.shift();
27986
- if (timeout === undefined) {
27987
- if (this._cachedTimeouts) {
27988
- this._errors.splice(this._errors.length - 1, this._errors.length);
27989
- this._timeouts = this._cachedTimeouts.slice(0);
27990
- timeout = this._timeouts.shift();
27991
- } else {
27992
- return false;
27993
- }
27994
- }
27995
- var self2 = this;
27996
- var timer = setTimeout(function() {
27997
- self2._attempts++;
27998
- if (self2._operationTimeoutCb) {
27999
- self2._timeout = setTimeout(function() {
28000
- self2._operationTimeoutCb(self2._attempts);
28001
- }, self2._operationTimeout);
28002
- if (self2._options.unref) {
28003
- self2._timeout.unref();
28004
- }
28005
- }
28006
- self2._fn(self2._attempts);
28007
- }, timeout);
28008
- if (this._options.unref) {
28009
- timer.unref();
28010
- }
28011
- return true;
28012
- };
28013
- RetryOperation.prototype.attempt = function(fn, timeoutOps) {
28014
- this._fn = fn;
28015
- if (timeoutOps) {
28016
- if (timeoutOps.timeout) {
28017
- this._operationTimeout = timeoutOps.timeout;
28018
- }
28019
- if (timeoutOps.cb) {
28020
- this._operationTimeoutCb = timeoutOps.cb;
28021
- }
28022
- }
28023
- var self2 = this;
28024
- if (this._operationTimeoutCb) {
28025
- this._timeout = setTimeout(function() {
28026
- self2._operationTimeoutCb();
28027
- }, self2._operationTimeout);
28028
- }
28029
- this._operationStart = new Date().getTime();
28030
- this._fn(this._attempts);
28031
- };
28032
- RetryOperation.prototype.try = function(fn) {
28033
- console.log("Using RetryOperation.try() is deprecated");
28034
- this.attempt(fn);
28035
- };
28036
- RetryOperation.prototype.start = function(fn) {
28037
- console.log("Using RetryOperation.start() is deprecated");
28038
- this.attempt(fn);
28039
- };
28040
- RetryOperation.prototype.start = RetryOperation.prototype.try;
28041
- RetryOperation.prototype.errors = function() {
28042
- return this._errors;
28043
- };
28044
- RetryOperation.prototype.attempts = function() {
28045
- return this._attempts;
28046
- };
28047
- RetryOperation.prototype.mainError = function() {
28048
- if (this._errors.length === 0) {
28049
- return null;
28050
- }
28051
- var counts = {};
28052
- var mainError = null;
28053
- var mainErrorCount = 0;
28054
- for (var i = 0;i < this._errors.length; i++) {
28055
- var error = this._errors[i];
28056
- var message = error.message;
28057
- var count = (counts[message] || 0) + 1;
28058
- counts[message] = count;
28059
- if (count >= mainErrorCount) {
28060
- mainError = error;
28061
- mainErrorCount = count;
28062
- }
28063
- }
28064
- return mainError;
28065
- };
28066
- });
28067
-
28068
- // ../node_modules/.bun/retry@0.12.0/node_modules/retry/lib/retry.js
28069
- var require_retry = __commonJS((exports) => {
28070
- var RetryOperation = require_retry_operation();
28071
- exports.operation = function(options) {
28072
- var timeouts = exports.timeouts(options);
28073
- return new RetryOperation(timeouts, {
28074
- forever: options && options.forever,
28075
- unref: options && options.unref,
28076
- maxRetryTime: options && options.maxRetryTime
28077
- });
28078
- };
28079
- exports.timeouts = function(options) {
28080
- if (options instanceof Array) {
28081
- return [].concat(options);
28082
- }
28083
- var opts = {
28084
- retries: 10,
28085
- factor: 2,
28086
- minTimeout: 1 * 1000,
28087
- maxTimeout: Infinity,
28088
- randomize: false
28089
- };
28090
- for (var key in options) {
28091
- opts[key] = options[key];
28092
- }
28093
- if (opts.minTimeout > opts.maxTimeout) {
28094
- throw new Error("minTimeout is greater than maxTimeout");
28095
- }
28096
- var timeouts = [];
28097
- for (var i = 0;i < opts.retries; i++) {
28098
- timeouts.push(this.createTimeout(i, opts));
28099
- }
28100
- if (options && options.forever && !timeouts.length) {
28101
- timeouts.push(this.createTimeout(i, opts));
28102
- }
28103
- timeouts.sort(function(a, b) {
28104
- return a - b;
28105
- });
28106
- return timeouts;
28107
- };
28108
- exports.createTimeout = function(attempt, opts) {
28109
- var random = opts.randomize ? Math.random() + 1 : 1;
28110
- var timeout = Math.round(random * opts.minTimeout * Math.pow(opts.factor, attempt));
28111
- timeout = Math.min(timeout, opts.maxTimeout);
28112
- return timeout;
28113
- };
28114
- exports.wrap = function(obj, options, methods) {
28115
- if (options instanceof Array) {
28116
- methods = options;
28117
- options = null;
28118
- }
28119
- if (!methods) {
28120
- methods = [];
28121
- for (var key in obj) {
28122
- if (typeof obj[key] === "function") {
28123
- methods.push(key);
28124
- }
28125
- }
28126
- }
28127
- for (var i = 0;i < methods.length; i++) {
28128
- var method = methods[i];
28129
- var original = obj[method];
28130
- obj[method] = function retryWrapper(original2) {
28131
- var op = exports.operation(options);
28132
- var args = Array.prototype.slice.call(arguments, 1);
28133
- var callback = args.pop();
28134
- args.push(function(err) {
28135
- if (op.retry(err)) {
28136
- return;
28137
- }
28138
- if (err) {
28139
- arguments[0] = op.mainError();
28140
- }
28141
- callback.apply(this, arguments);
28142
- });
28143
- op.attempt(function() {
28144
- original2.apply(obj, args);
28145
- });
28146
- }.bind(obj, original);
28147
- obj[method].options = options;
28148
- }
28149
- };
28150
- });
28151
-
28152
- // ../node_modules/.bun/signal-exit@3.0.7/node_modules/signal-exit/signals.js
28153
- var require_signals = __commonJS((exports, module) => {
28154
- module.exports = [
28155
- "SIGABRT",
28156
- "SIGALRM",
28157
- "SIGHUP",
28158
- "SIGINT",
28159
- "SIGTERM"
28160
- ];
28161
- if (process.platform !== "win32") {
28162
- module.exports.push("SIGVTALRM", "SIGXCPU", "SIGXFSZ", "SIGUSR2", "SIGTRAP", "SIGSYS", "SIGQUIT", "SIGIOT");
28163
- }
28164
- if (process.platform === "linux") {
28165
- module.exports.push("SIGIO", "SIGPOLL", "SIGPWR", "SIGSTKFLT", "SIGUNUSED");
28166
- }
28167
- });
28168
-
28169
- // ../node_modules/.bun/signal-exit@3.0.7/node_modules/signal-exit/index.js
28170
- var require_signal_exit = __commonJS((exports, module) => {
28171
- var process2 = global.process;
28172
- var processOk = function(process3) {
28173
- return process3 && typeof process3 === "object" && typeof process3.removeListener === "function" && typeof process3.emit === "function" && typeof process3.reallyExit === "function" && typeof process3.listeners === "function" && typeof process3.kill === "function" && typeof process3.pid === "number" && typeof process3.on === "function";
28174
- };
28175
- if (!processOk(process2)) {
28176
- module.exports = function() {
28177
- return function() {};
28178
- };
28179
- } else {
28180
- assert = __require("assert");
28181
- signals = require_signals();
28182
- isWin = /^win/i.test(process2.platform);
28183
- EE = __require("events");
28184
- if (typeof EE !== "function") {
28185
- EE = EE.EventEmitter;
28186
- }
28187
- if (process2.__signal_exit_emitter__) {
28188
- emitter = process2.__signal_exit_emitter__;
28189
- } else {
28190
- emitter = process2.__signal_exit_emitter__ = new EE;
28191
- emitter.count = 0;
28192
- emitter.emitted = {};
28193
- }
28194
- if (!emitter.infinite) {
28195
- emitter.setMaxListeners(Infinity);
28196
- emitter.infinite = true;
28197
- }
28198
- module.exports = function(cb, opts) {
28199
- if (!processOk(global.process)) {
28200
- return function() {};
28201
- }
28202
- assert.equal(typeof cb, "function", "a callback must be provided for exit handler");
28203
- if (loaded === false) {
28204
- load();
28205
- }
28206
- var ev = "exit";
28207
- if (opts && opts.alwaysLast) {
28208
- ev = "afterexit";
28209
- }
28210
- var remove = function() {
28211
- emitter.removeListener(ev, cb);
28212
- if (emitter.listeners("exit").length === 0 && emitter.listeners("afterexit").length === 0) {
28213
- unload();
28214
- }
28215
- };
28216
- emitter.on(ev, cb);
28217
- return remove;
28218
- };
28219
- unload = function unload2() {
28220
- if (!loaded || !processOk(global.process)) {
28221
- return;
28222
- }
28223
- loaded = false;
28224
- signals.forEach(function(sig) {
28225
- try {
28226
- process2.removeListener(sig, sigListeners[sig]);
28227
- } catch (er) {}
28228
- });
28229
- process2.emit = originalProcessEmit;
28230
- process2.reallyExit = originalProcessReallyExit;
28231
- emitter.count -= 1;
28232
- };
28233
- module.exports.unload = unload;
28234
- emit = function emit2(event, code, signal) {
28235
- if (emitter.emitted[event]) {
28236
- return;
28237
- }
28238
- emitter.emitted[event] = true;
28239
- emitter.emit(event, code, signal);
28240
- };
28241
- sigListeners = {};
28242
- signals.forEach(function(sig) {
28243
- sigListeners[sig] = function listener() {
28244
- if (!processOk(global.process)) {
28245
- return;
28246
- }
28247
- var listeners = process2.listeners(sig);
28248
- if (listeners.length === emitter.count) {
28249
- unload();
28250
- emit("exit", null, sig);
28251
- emit("afterexit", null, sig);
28252
- if (isWin && sig === "SIGHUP") {
28253
- sig = "SIGINT";
28254
- }
28255
- process2.kill(process2.pid, sig);
28256
- }
28257
- };
28258
- });
28259
- module.exports.signals = function() {
28260
- return signals;
28261
- };
28262
- loaded = false;
28263
- load = function load2() {
28264
- if (loaded || !processOk(global.process)) {
28265
- return;
28266
- }
28267
- loaded = true;
28268
- emitter.count += 1;
28269
- signals = signals.filter(function(sig) {
28270
- try {
28271
- process2.on(sig, sigListeners[sig]);
28272
- return true;
28273
- } catch (er) {
28274
- return false;
28275
- }
28276
- });
28277
- process2.emit = processEmit;
28278
- process2.reallyExit = processReallyExit;
28279
- };
28280
- module.exports.load = load;
28281
- originalProcessReallyExit = process2.reallyExit;
28282
- processReallyExit = function processReallyExit2(code) {
28283
- if (!processOk(global.process)) {
28284
- return;
28285
- }
28286
- process2.exitCode = code || 0;
28287
- emit("exit", process2.exitCode, null);
28288
- emit("afterexit", process2.exitCode, null);
28289
- originalProcessReallyExit.call(process2, process2.exitCode);
28290
- };
28291
- originalProcessEmit = process2.emit;
28292
- processEmit = function processEmit2(ev, arg) {
28293
- if (ev === "exit" && processOk(global.process)) {
28294
- if (arg !== undefined) {
28295
- process2.exitCode = arg;
28296
- }
28297
- var ret = originalProcessEmit.apply(this, arguments);
28298
- emit("exit", process2.exitCode, null);
28299
- emit("afterexit", process2.exitCode, null);
28300
- return ret;
28301
- } else {
28302
- return originalProcessEmit.apply(this, arguments);
28303
- }
28304
- };
28305
- }
28306
- var assert;
28307
- var signals;
28308
- var isWin;
28309
- var EE;
28310
- var emitter;
28311
- var unload;
28312
- var emit;
28313
- var sigListeners;
28314
- var loaded;
28315
- var load;
28316
- var originalProcessReallyExit;
28317
- var processReallyExit;
28318
- var originalProcessEmit;
28319
- var processEmit;
28320
- });
28321
-
28322
- // ../node_modules/.bun/proper-lockfile@4.1.2/node_modules/proper-lockfile/lib/mtime-precision.js
28323
- var require_mtime_precision = __commonJS((exports, module) => {
28324
- var cacheSymbol = Symbol();
28325
- function probe(file, fs, callback) {
28326
- const cachedPrecision = fs[cacheSymbol];
28327
- if (cachedPrecision) {
28328
- return fs.stat(file, (err, stat) => {
28329
- if (err) {
28330
- return callback(err);
28331
- }
28332
- callback(null, stat.mtime, cachedPrecision);
28333
- });
28334
- }
28335
- const mtime = new Date(Math.ceil(Date.now() / 1000) * 1000 + 5);
28336
- fs.utimes(file, mtime, mtime, (err) => {
28337
- if (err) {
28338
- return callback(err);
28339
- }
28340
- fs.stat(file, (err2, stat) => {
28341
- if (err2) {
28342
- return callback(err2);
28343
- }
28344
- const precision = stat.mtime.getTime() % 1000 === 0 ? "s" : "ms";
28345
- Object.defineProperty(fs, cacheSymbol, { value: precision });
28346
- callback(null, stat.mtime, precision);
28347
- });
28348
- });
28349
- }
28350
- function getMtime(precision) {
28351
- let now = Date.now();
28352
- if (precision === "s") {
28353
- now = Math.ceil(now / 1000) * 1000;
28354
- }
28355
- return new Date(now);
28356
- }
28357
- exports.probe = probe;
28358
- exports.getMtime = getMtime;
28359
- });
28360
-
28361
- // ../node_modules/.bun/proper-lockfile@4.1.2/node_modules/proper-lockfile/lib/lockfile.js
28362
- var require_lockfile = __commonJS((exports, module) => {
28363
- var path = __require("path");
28364
- var fs = require_graceful_fs();
28365
- var retry = require_retry();
28366
- var onExit = require_signal_exit();
28367
- var mtimePrecision = require_mtime_precision();
28368
- var locks = {};
28369
- function getLockFile(file, options) {
28370
- return options.lockfilePath || `${file}.lock`;
28371
- }
28372
- function resolveCanonicalPath(file, options, callback) {
28373
- if (!options.realpath) {
28374
- return callback(null, path.resolve(file));
28375
- }
28376
- options.fs.realpath(file, callback);
28377
- }
28378
- function acquireLock(file, options, callback) {
28379
- const lockfilePath = getLockFile(file, options);
28380
- options.fs.mkdir(lockfilePath, (err) => {
28381
- if (!err) {
28382
- return mtimePrecision.probe(lockfilePath, options.fs, (err2, mtime, mtimePrecision2) => {
28383
- if (err2) {
28384
- options.fs.rmdir(lockfilePath, () => {});
28385
- return callback(err2);
28386
- }
28387
- callback(null, mtime, mtimePrecision2);
28388
- });
28389
- }
28390
- if (err.code !== "EEXIST") {
28391
- return callback(err);
28392
- }
28393
- if (options.stale <= 0) {
28394
- return callback(Object.assign(new Error("Lock file is already being held"), { code: "ELOCKED", file }));
28395
- }
28396
- options.fs.stat(lockfilePath, (err2, stat) => {
28397
- if (err2) {
28398
- if (err2.code === "ENOENT") {
28399
- return acquireLock(file, { ...options, stale: 0 }, callback);
28400
- }
28401
- return callback(err2);
28402
- }
28403
- if (!isLockStale(stat, options)) {
28404
- return callback(Object.assign(new Error("Lock file is already being held"), { code: "ELOCKED", file }));
28405
- }
28406
- removeLock(file, options, (err3) => {
28407
- if (err3) {
28408
- return callback(err3);
28409
- }
28410
- acquireLock(file, { ...options, stale: 0 }, callback);
28411
- });
28412
- });
28413
- });
28414
- }
28415
- function isLockStale(stat, options) {
28416
- return stat.mtime.getTime() < Date.now() - options.stale;
28417
- }
28418
- function removeLock(file, options, callback) {
28419
- options.fs.rmdir(getLockFile(file, options), (err) => {
28420
- if (err && err.code !== "ENOENT") {
28421
- return callback(err);
28422
- }
28423
- callback();
28424
- });
28425
- }
28426
- function updateLock(file, options) {
28427
- const lock2 = locks[file];
28428
- if (lock2.updateTimeout) {
28429
- return;
28430
- }
28431
- lock2.updateDelay = lock2.updateDelay || options.update;
28432
- lock2.updateTimeout = setTimeout(() => {
28433
- lock2.updateTimeout = null;
28434
- options.fs.stat(lock2.lockfilePath, (err, stat) => {
28435
- const isOverThreshold = lock2.lastUpdate + options.stale < Date.now();
28436
- if (err) {
28437
- if (err.code === "ENOENT" || isOverThreshold) {
28438
- return setLockAsCompromised(file, lock2, Object.assign(err, { code: "ECOMPROMISED" }));
28439
- }
28440
- lock2.updateDelay = 1000;
28441
- return updateLock(file, options);
28442
- }
28443
- const isMtimeOurs = lock2.mtime.getTime() === stat.mtime.getTime();
28444
- if (!isMtimeOurs) {
28445
- return setLockAsCompromised(file, lock2, Object.assign(new Error("Unable to update lock within the stale threshold"), { code: "ECOMPROMISED" }));
28446
- }
28447
- const mtime = mtimePrecision.getMtime(lock2.mtimePrecision);
28448
- options.fs.utimes(lock2.lockfilePath, mtime, mtime, (err2) => {
28449
- const isOverThreshold2 = lock2.lastUpdate + options.stale < Date.now();
28450
- if (lock2.released) {
28451
- return;
28452
- }
28453
- if (err2) {
28454
- if (err2.code === "ENOENT" || isOverThreshold2) {
28455
- return setLockAsCompromised(file, lock2, Object.assign(err2, { code: "ECOMPROMISED" }));
28456
- }
28457
- lock2.updateDelay = 1000;
28458
- return updateLock(file, options);
28459
- }
28460
- lock2.mtime = mtime;
28461
- lock2.lastUpdate = Date.now();
28462
- lock2.updateDelay = null;
28463
- updateLock(file, options);
28464
- });
28465
- });
28466
- }, lock2.updateDelay);
28467
- if (lock2.updateTimeout.unref) {
28468
- lock2.updateTimeout.unref();
28469
- }
28470
- }
28471
- function setLockAsCompromised(file, lock2, err) {
28472
- lock2.released = true;
28473
- if (lock2.updateTimeout) {
28474
- clearTimeout(lock2.updateTimeout);
28475
- }
28476
- if (locks[file] === lock2) {
28477
- delete locks[file];
28478
- }
28479
- lock2.options.onCompromised(err);
28480
- }
28481
- function lock(file, options, callback) {
28482
- options = {
28483
- stale: 1e4,
28484
- update: null,
28485
- realpath: true,
28486
- retries: 0,
28487
- fs,
28488
- onCompromised: (err) => {
28489
- throw err;
28490
- },
28491
- ...options
28492
- };
28493
- options.retries = options.retries || 0;
28494
- options.retries = typeof options.retries === "number" ? { retries: options.retries } : options.retries;
28495
- options.stale = Math.max(options.stale || 0, 2000);
28496
- options.update = options.update == null ? options.stale / 2 : options.update || 0;
28497
- options.update = Math.max(Math.min(options.update, options.stale / 2), 1000);
28498
- resolveCanonicalPath(file, options, (err, file2) => {
28499
- if (err) {
28500
- return callback(err);
28501
- }
28502
- const operation = retry.operation(options.retries);
28503
- operation.attempt(() => {
28504
- acquireLock(file2, options, (err2, mtime, mtimePrecision2) => {
28505
- if (operation.retry(err2)) {
28506
- return;
28507
- }
28508
- if (err2) {
28509
- return callback(operation.mainError());
28510
- }
28511
- const lock2 = locks[file2] = {
28512
- lockfilePath: getLockFile(file2, options),
28513
- mtime,
28514
- mtimePrecision: mtimePrecision2,
28515
- options,
28516
- lastUpdate: Date.now()
28517
- };
28518
- updateLock(file2, options);
28519
- callback(null, (releasedCallback) => {
28520
- if (lock2.released) {
28521
- return releasedCallback && releasedCallback(Object.assign(new Error("Lock is already released"), { code: "ERELEASED" }));
28522
- }
28523
- unlock(file2, { ...options, realpath: false }, releasedCallback);
28524
- });
28525
- });
28526
- });
28527
- });
28528
- }
28529
- function unlock(file, options, callback) {
28530
- options = {
28531
- fs,
28532
- realpath: true,
28533
- ...options
28534
- };
28535
- resolveCanonicalPath(file, options, (err, file2) => {
28536
- if (err) {
28537
- return callback(err);
28538
- }
28539
- const lock2 = locks[file2];
28540
- if (!lock2) {
28541
- return callback(Object.assign(new Error("Lock is not acquired/owned by you"), { code: "ENOTACQUIRED" }));
28542
- }
28543
- lock2.updateTimeout && clearTimeout(lock2.updateTimeout);
28544
- lock2.released = true;
28545
- delete locks[file2];
28546
- removeLock(file2, options, callback);
28547
- });
28548
- }
28549
- function check(file, options, callback) {
28550
- options = {
28551
- stale: 1e4,
28552
- realpath: true,
28553
- fs,
28554
- ...options
28555
- };
28556
- options.stale = Math.max(options.stale || 0, 2000);
28557
- resolveCanonicalPath(file, options, (err, file2) => {
28558
- if (err) {
28559
- return callback(err);
28560
- }
28561
- options.fs.stat(getLockFile(file2, options), (err2, stat) => {
28562
- if (err2) {
28563
- return err2.code === "ENOENT" ? callback(null, false) : callback(err2);
28564
- }
28565
- return callback(null, !isLockStale(stat, options));
28566
- });
28567
- });
28568
- }
28569
- function getLocks() {
28570
- return locks;
28571
- }
28572
- onExit(() => {
28573
- for (const file in locks) {
28574
- const options = locks[file].options;
28575
- try {
28576
- options.fs.rmdirSync(getLockFile(file, options));
28577
- } catch (e) {}
28578
- }
28579
- });
28580
- exports.lock = lock;
28581
- exports.unlock = unlock;
28582
- exports.check = check;
28583
- exports.getLocks = getLocks;
28584
- });
28585
-
28586
- // ../node_modules/.bun/proper-lockfile@4.1.2/node_modules/proper-lockfile/lib/adapter.js
28587
- var require_adapter = __commonJS((exports, module) => {
28588
- var fs = require_graceful_fs();
28589
- function createSyncFs(fs2) {
28590
- const methods = ["mkdir", "realpath", "stat", "rmdir", "utimes"];
28591
- const newFs = { ...fs2 };
28592
- methods.forEach((method) => {
28593
- newFs[method] = (...args) => {
28594
- const callback = args.pop();
28595
- let ret;
28596
- try {
28597
- ret = fs2[`${method}Sync`](...args);
28598
- } catch (err) {
28599
- return callback(err);
28600
- }
28601
- callback(null, ret);
28602
- };
28603
- });
28604
- return newFs;
28605
- }
28606
- function toPromise(method) {
28607
- return (...args) => new Promise((resolve7, reject) => {
28608
- args.push((err, result) => {
28609
- if (err) {
28610
- reject(err);
28611
- } else {
28612
- resolve7(result);
28613
- }
28614
- });
28615
- method(...args);
28616
- });
28617
- }
28618
- function toSync(method) {
28619
- return (...args) => {
28620
- let err;
28621
- let result;
28622
- args.push((_err, _result) => {
28623
- err = _err;
28624
- result = _result;
28625
- });
28626
- method(...args);
28627
- if (err) {
28628
- throw err;
28629
- }
28630
- return result;
28631
- };
28632
- }
28633
- function toSyncOptions(options) {
28634
- options = { ...options };
28635
- options.fs = createSyncFs(options.fs || fs);
28636
- if (typeof options.retries === "number" && options.retries > 0 || options.retries && typeof options.retries.retries === "number" && options.retries.retries > 0) {
28637
- throw Object.assign(new Error("Cannot use retries with the sync api"), { code: "ESYNC" });
28638
- }
28639
- return options;
28640
- }
28641
- module.exports = {
28642
- toPromise,
28643
- toSync,
28644
- toSyncOptions
28645
- };
28646
- });
28647
-
28648
- // ../node_modules/.bun/proper-lockfile@4.1.2/node_modules/proper-lockfile/index.js
28649
- var require_proper_lockfile = __commonJS((exports, module) => {
28650
- var lockfile = require_lockfile();
28651
- var { toPromise, toSync, toSyncOptions } = require_adapter();
28652
- async function lock(file, options) {
28653
- const release = await toPromise(lockfile.lock)(file, options);
28654
- return toPromise(release);
28655
- }
28656
- function lockSync(file, options) {
28657
- const release = toSync(lockfile.lock)(file, toSyncOptions(options));
28658
- return toSync(release);
28659
- }
28660
- function unlock(file, options) {
28661
- return toPromise(lockfile.unlock)(file, options);
28662
- }
28663
- function unlockSync(file, options) {
28664
- return toSync(lockfile.unlock)(file, toSyncOptions(options));
28665
- }
28666
- function check(file, options) {
28667
- return toPromise(lockfile.check)(file, options);
28668
- }
28669
- function checkSync(file, options) {
28670
- return toSync(lockfile.check)(file, toSyncOptions(options));
28671
- }
28672
- module.exports = lock;
28673
- module.exports.lock = lock;
28674
- module.exports.unlock = unlock;
28675
- module.exports.lockSync = lockSync;
28676
- module.exports.unlockSync = unlockSync;
28677
- module.exports.check = check;
28678
- module.exports.checkSync = checkSync;
28679
- });
27164
+ // ../src/vault/flock.ts
27165
+ var init_flock = () => {};
28680
27166
 
28681
27167
  // ../src/vault/vault.ts
28682
27168
  import { randomBytes as randomBytes4, scryptSync, createCipheriv, createDecipheriv } from "node:crypto";
@@ -28745,9 +27231,9 @@ function openVault(passphrase, vaultPath) {
28745
27231
  }
28746
27232
  return normalizeSecrets(vaultData.secrets ?? {});
28747
27233
  }
28748
- var import_proper_lockfile, KNOWN_VAULT_ARTIFACT_NAMES, SCRYPT_N = 32768, SCRYPT_R = 8, SCRYPT_P = 1, SCRYPT_MAXMEM, VaultError, LEGACY_SCRYPT_N = 16384;
27234
+ var KNOWN_VAULT_ARTIFACT_NAMES, SCRYPT_N = 32768, SCRYPT_R = 8, SCRYPT_P = 1, SCRYPT_MAXMEM, VaultError, LEGACY_SCRYPT_N = 16384;
28749
27235
  var init_vault = __esm(() => {
28750
- import_proper_lockfile = __toESM(require_proper_lockfile(), 1);
27236
+ init_flock();
28751
27237
  KNOWN_VAULT_ARTIFACT_NAMES = new Set([
28752
27238
  "vault.enc",
28753
27239
  "vault.enc.bak",
@@ -28757,9 +27243,12 @@ var init_vault = __esm(() => {
28757
27243
  ]);
28758
27244
  SCRYPT_MAXMEM = 128 * 1024 * 1024;
28759
27245
  VaultError = class VaultError extends Error {
28760
- constructor(message) {
27246
+ cause;
27247
+ constructor(message, options) {
28761
27248
  super(message);
28762
27249
  this.name = "VaultError";
27250
+ if (options?.cause !== undefined)
27251
+ this.cause = options.cause;
28763
27252
  }
28764
27253
  };
28765
27254
  });
@@ -40618,6 +39107,85 @@ var defaultVaultList = (passphrase) => {
40618
39107
  }
40619
39108
  };
40620
39109
 
39110
+ // secret-detect/vault-error.ts
39111
+ var MARKER_TO_KIND = [
39112
+ ["VAULT-SANDBOX-CONTEXT", "sandbox_context"],
39113
+ ["VAULT-NEEDS-APPROVAL", "needs_approval"],
39114
+ ["VAULT-BROKER-UNREACHABLE", "broker_unreachable"],
39115
+ ["VAULT-BROKER-DENIED", "broker_denied"]
39116
+ ];
39117
+ function parseVaultCliError(stderr) {
39118
+ const text = stderr ?? "";
39119
+ for (const [marker, kind] of MARKER_TO_KIND) {
39120
+ if (text.includes(marker)) {
39121
+ const key = extractKey(text, kind);
39122
+ return { kind, original: text, key };
39123
+ }
39124
+ }
39125
+ return { kind: "other", original: text };
39126
+ }
39127
+ function extractKey(text, kind) {
39128
+ const anchored = text.match(/key '([A-Za-z0-9_.-]+)'/);
39129
+ if (anchored)
39130
+ return anchored[1];
39131
+ if (kind === "needs_approval") {
39132
+ const m = text.match(/secret '([A-Za-z0-9_.-]+)'/);
39133
+ if (m)
39134
+ return m[1];
39135
+ }
39136
+ const allQuoted = [...text.matchAll(/'([^']+)'/g)];
39137
+ for (const m of allQuoted) {
39138
+ const candidate = m[1];
39139
+ if (candidate.includes("switchroom"))
39140
+ continue;
39141
+ if (!/^[A-Za-z0-9_.-]+$/.test(candidate))
39142
+ continue;
39143
+ return candidate;
39144
+ }
39145
+ return;
39146
+ }
39147
+ function htmlEscape(s) {
39148
+ return s.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
39149
+ }
39150
+ function renderVaultCliError(err, verbHint = { verb: "set" }) {
39151
+ const key = verbHint.key ?? err.key;
39152
+ switch (err.kind) {
39153
+ case "sandbox_context":
39154
+ return {
39155
+ suppressRaw: true,
39156
+ html: `\u26a0\ufe0f <b>This action must run on the host.</b>
39157
+ ` + `The vault file isn't mounted inside the agent sandbox; only ` + `the broker socket is. Open a host shell and run:
39158
+ ` + `<pre>switchroom vault ${verbHint.verb}${key ? ` ${htmlEscape(key)}` : ""}</pre>`
39159
+ };
39160
+ case "needs_approval":
39161
+ return {
39162
+ suppressRaw: true,
39163
+ html: `\u26a0\ufe0f <b>New vault key \u2014 operator approval required.</b>
39164
+ ` + (key ? `The agent tried to save <code>${htmlEscape(key)}</code>, but ` : `The agent tried to save a new key, but `) + `agents can only rotate existing keys via the broker; introducing ` + `a new key needs an operator action.
39165
+
39166
+ ` + `For now, run on a host shell:
39167
+ ` + `<pre>switchroom vault set${key ? ` ${htmlEscape(key)}` : " &lt;key&gt;"}</pre>
39168
+ ` + `<i>A one-tap approval card is on the way (#969 P1a).</i>`
39169
+ };
39170
+ case "broker_unreachable":
39171
+ return {
39172
+ suppressRaw: true,
39173
+ html: `\u26a0\ufe0f <b>Vault broker isn't reachable.</b>
39174
+ ` + `From inside the agent sandbox there's no fallback path. ` + `Operator can check on the host:
39175
+ ` + `<pre>switchroom vault broker status</pre>`
39176
+ };
39177
+ case "broker_denied":
39178
+ return {
39179
+ suppressRaw: true,
39180
+ html: `\u26a0\ufe0f <b>Vault broker refused the request.</b>
39181
+ ` + (key ? `The agent isn't authorized to access <code>${htmlEscape(key)}</code>. ` : `The agent isn't authorized to access this key. `) + `Operator can grant access from a host shell:
39182
+ ` + `<pre>switchroom vault grant &lt;agent&gt; --keys ${key ? htmlEscape(key) : "&lt;key&gt;"}</pre>`
39183
+ };
39184
+ case "other":
39185
+ return { suppressRaw: false, html: "" };
39186
+ }
39187
+ }
39188
+
40621
39189
  // secret-detect/index.ts
40622
39190
  init_suppressor();
40623
39191
  init_secretlint_source();
@@ -42295,11 +40863,11 @@ function sweepStaleTurnActiveMarker(stateDir, opts) {
42295
40863
  }
42296
40864
 
42297
40865
  // ../src/build-info.ts
42298
- var VERSION = "0.7.13";
42299
- var COMMIT_SHA = "67ad70ac";
42300
- var COMMIT_DATE = "2026-05-11T04:44:52+10:00";
42301
- var LATEST_PR = 959;
42302
- var COMMITS_AHEAD_OF_TAG = 0;
40866
+ var VERSION = "0.7.15";
40867
+ var COMMIT_SHA = "198b28a6";
40868
+ var COMMIT_DATE = "2026-05-11T10:04:47+10:00";
40869
+ var LATEST_PR = 980;
40870
+ var COMMITS_AHEAD_OF_TAG = 1;
42303
40871
 
42304
40872
  // gateway/unhandled-rejection-policy.ts
42305
40873
  var import_grammy6 = __toESM(require_mod2(), 1);
@@ -42476,7 +41044,8 @@ async function mintGrantViaBroker(opts) {
42476
41044
  agent: opts.agent,
42477
41045
  keys: opts.keys,
42478
41046
  ttl_seconds: opts.ttl_seconds,
42479
- description: opts.description
41047
+ description: opts.description,
41048
+ ...opts.write_keys !== undefined ? { write_keys: opts.write_keys } : {}
42480
41049
  }, opts);
42481
41050
  if (result.kind === "unreachable")
42482
41051
  return { kind: "unreachable", msg: result.msg };
@@ -43475,6 +42044,15 @@ var VAULT_INPUT_TTL_MS = 300000;
43475
42044
  var pendingVaultOps = new Map;
43476
42045
  var secretStaging = new StagingMap;
43477
42046
  var deferredSecrets = new Map;
42047
+ var pendingVaultRequestSaves = new Map;
42048
+ var VAULT_REQUEST_SAVE_TTL_MS = 600000;
42049
+ function sweepPendingVaultRequestSaves() {
42050
+ const cutoff = Date.now() - VAULT_REQUEST_SAVE_TTL_MS;
42051
+ for (const [k, v] of pendingVaultRequestSaves) {
42052
+ if (v.staged_at < cutoff)
42053
+ pendingVaultRequestSaves.delete(k);
42054
+ }
42055
+ }
43478
42056
  async function mintDeferredSecretKernelRequest(slug, approverSet) {
43479
42057
  const agentName = process.env.SWITCHROOM_AGENT_NAME;
43480
42058
  if (!agentName)
@@ -44029,7 +42607,8 @@ var ALLOWED_TOOLS = new Set([
44029
42607
  "update_checklist",
44030
42608
  "ask_user",
44031
42609
  "send_sticker",
44032
- "send_gif"
42610
+ "send_gif",
42611
+ "vault_request_save"
44033
42612
  ]);
44034
42613
  async function executeToolCall(tool, args) {
44035
42614
  if (!ALLOWED_TOOLS.has(tool)) {
@@ -44068,6 +42647,8 @@ async function executeToolCall(tool, args) {
44068
42647
  return executeSendSticker(args);
44069
42648
  case "send_gif":
44070
42649
  return executeSendGif(args);
42650
+ case "vault_request_save":
42651
+ return executeVaultRequestSave(args);
44071
42652
  default:
44072
42653
  throw new Error(`unknown tool: ${tool}`);
44073
42654
  }
@@ -44762,6 +43343,81 @@ async function publishToTelegraph(text, shortName, authorName) {
44762
43343
  `);
44763
43344
  return page.value.url;
44764
43345
  }
43346
+ function buildVaultRequestSaveKeyboard(stageId) {
43347
+ return {
43348
+ inline_keyboard: [
43349
+ [
43350
+ { text: "\u2705 Save once", callback_data: `vrs:save:${stageId}` },
43351
+ { text: "\uD83D\uDEAB Discard", callback_data: `vrs:discard:${stageId}` }
43352
+ ],
43353
+ [
43354
+ { text: "\u270F\uFE0F Rename", callback_data: `vrs:rename:${stageId}` }
43355
+ ]
43356
+ ]
43357
+ };
43358
+ }
43359
+ function renderVaultRequestSaveCard(req, agentSlug) {
43360
+ const lines = [];
43361
+ lines.push(`\uD83D\uDD10 <b>${escapeHtmlForTg(agentSlug)}</b> wants to save a secret`);
43362
+ lines.push(`key: <code>${escapeHtmlForTg(req.key)}</code>`);
43363
+ if (req.why && req.why.length > 0) {
43364
+ lines.push(`why: <i>${escapeHtmlForTg(req.why)}</i>`);
43365
+ }
43366
+ lines.push("");
43367
+ lines.push(`<i>Tap Save to write to the host vault, Rename to change the key name, or Discard to drop it. The value is held in this chat's gateway memory until you decide.</i>`);
43368
+ return lines.join(`
43369
+ `);
43370
+ }
43371
+ async function executeVaultRequestSave(args) {
43372
+ const chat_id = args.chat_id;
43373
+ if (!chat_id)
43374
+ throw new Error("vault_request_save: chat_id is required");
43375
+ const key = args.key;
43376
+ if (!key || typeof key !== "string")
43377
+ throw new Error("vault_request_save: key is required");
43378
+ const value = args.value;
43379
+ if (typeof value !== "string" || value.length === 0) {
43380
+ throw new Error("vault_request_save: value is required and must be a non-empty string");
43381
+ }
43382
+ const why = typeof args.why === "string" ? args.why : undefined;
43383
+ const kindRaw = typeof args.kind === "string" ? args.kind : "string";
43384
+ if (kindRaw !== "string" && kindRaw !== "binary") {
43385
+ throw new Error('vault_request_save: kind must be "string" or "binary"');
43386
+ }
43387
+ assertAllowedChat(chat_id);
43388
+ if (!/^[A-Za-z0-9_.-]{1,200}$/.test(key)) {
43389
+ throw new Error("vault_request_save: key must match [A-Za-z0-9_.-]{1,200}");
43390
+ }
43391
+ const agentSlug = process.env.SWITCHROOM_AGENT_NAME || "agent";
43392
+ const stageId = randomBytes5(4).toString("hex");
43393
+ const pending = {
43394
+ agent: agentSlug,
43395
+ chat_id,
43396
+ key,
43397
+ kind: kindRaw,
43398
+ value,
43399
+ why,
43400
+ staged_at: Date.now()
43401
+ };
43402
+ pendingVaultRequestSaves.set(stageId, pending);
43403
+ sweepPendingVaultRequestSaves();
43404
+ const text = renderVaultRequestSaveCard(pending, agentSlug);
43405
+ const threadId = args.message_thread_id != null ? Number(args.message_thread_id) : undefined;
43406
+ const sent = await lockedBot.api.sendMessage(chat_id, text, {
43407
+ parse_mode: "HTML",
43408
+ reply_markup: buildVaultRequestSaveKeyboard(stageId),
43409
+ ...threadId != null && Number.isFinite(threadId) ? { message_thread_id: threadId } : {}
43410
+ });
43411
+ pending.card_message_id = sent.message_id;
43412
+ return {
43413
+ content: [
43414
+ {
43415
+ type: "text",
43416
+ text: `vault_request_save: card sent (stage_id=${stageId}, key=${key}). The user must tap a button before the secret is persisted; do not assume success until you see the user's next message confirming the outcome.`
43417
+ }
43418
+ ]
43419
+ };
43420
+ }
44765
43421
  async function executeReact(args) {
44766
43422
  if (!args.chat_id)
44767
43423
  throw new Error("react: chat_id is required");
@@ -45784,6 +44440,24 @@ ${preBlock(formatSwitchroomOutput(errorText))}`, { html: true });
45784
44440
  if (msgId != null)
45785
44441
  await deleteSensitiveMessage(chat_id, msgId, "vault secret value");
45786
44442
  await executeVaultOp(ctx, chat_id, "set", pendingVault.key, pendingVault.passphrase, value.trim());
44443
+ } else if (pendingVault.kind === "rename-vault-save") {
44444
+ const newKey = text.trim();
44445
+ const staged = pendingVaultRequestSaves.get(pendingVault.stageId);
44446
+ if (!staged) {
44447
+ await switchroomReply(ctx, "\u231B That save card expired before you renamed. Ask the agent to re-issue.", { html: true });
44448
+ return;
44449
+ }
44450
+ if (!/^[A-Za-z0-9_.-]{1,200}$/.test(newKey)) {
44451
+ pendingVaultOps.set(chat_id, { ...pendingVault, startedAt: Date.now() });
44452
+ await switchroomReply(ctx, "\u26A0\uFE0F Key must match <code>[A-Za-z0-9_.-]</code> and be \u2264 200 chars. Send a different name.", { html: true });
44453
+ return;
44454
+ }
44455
+ staged.key = newKey;
44456
+ if (msgId != null)
44457
+ await deleteSensitiveMessage(chat_id, msgId, "vault rename input");
44458
+ if (staged.card_message_id != null) {
44459
+ await ctx.api.editMessageText(staged.chat_id, staged.card_message_id, renderVaultRequestSaveCard(staged, staged.agent), { parse_mode: "HTML", reply_markup: buildVaultRequestSaveKeyboard(pendingVault.stageId) }).catch(() => {});
44460
+ }
45787
44461
  }
45788
44462
  return;
45789
44463
  }
@@ -45816,8 +44490,11 @@ ${preBlock(formatSwitchroomOutput(errorText))}`, { html: true });
45816
44490
  slug = `${slugBase}_${n++}`;
45817
44491
  const write = defaultVaultWrite(slug, staged.detection.matched_text, cached.passphrase);
45818
44492
  if (!write.ok) {
45819
- await switchroomReply(ctx, `<b>vault write failed:</b>
45820
- ${preBlock(write.output)}`, { html: true });
44493
+ const parsed = parseVaultCliError(write.output);
44494
+ const rendered = renderVaultCliError(parsed, { verb: "save", key: slug });
44495
+ const body = rendered.suppressRaw ? rendered.html : `<b>vault write failed:</b>
44496
+ ${preBlock(write.output)}`;
44497
+ await switchroomReply(ctx, body, { html: true });
45821
44498
  return;
45822
44499
  }
45823
44500
  secretStaging.delete(staged.chat_id, staged.message_id);
@@ -46496,12 +45173,20 @@ function runVaultCli(args, passphrase, stdinValue) {
46496
45173
  `).trim() };
46497
45174
  }
46498
45175
  }
45176
+ function renderVaultOpFailure(verbLabel, cliOutput, key) {
45177
+ const parsed = parseVaultCliError(cliOutput);
45178
+ const verb = verbLabel === "delete" ? "remove" : verbLabel;
45179
+ const rendered = renderVaultCliError(parsed, { verb, key });
45180
+ if (rendered.suppressRaw)
45181
+ return rendered.html;
45182
+ return `<b>vault ${verbLabel} failed:</b>
45183
+ ${preBlock(cliOutput)}`;
45184
+ }
46499
45185
  async function executeVaultOp(ctx, chatId, op, key, passphrase, setValue) {
46500
45186
  if (op === "list") {
46501
45187
  const r = runVaultCli(["list"], passphrase);
46502
45188
  if (!r.ok) {
46503
- await switchroomReply(ctx, `<b>vault list failed:</b>
46504
- ${preBlock(r.output)}`, { html: true });
45189
+ await switchroomReply(ctx, renderVaultOpFailure("list", r.output, undefined), { html: true });
46505
45190
  return;
46506
45191
  }
46507
45192
  const keys = r.output.split(`
@@ -46516,8 +45201,7 @@ ${keys.map((k) => `\u2022 <code>${escapeHtmlForTg(k)}</code>`).join(`
46516
45201
  } else if (op === "get") {
46517
45202
  const r = runVaultCli(["get", key], passphrase);
46518
45203
  if (!r.ok) {
46519
- await switchroomReply(ctx, `<b>vault get failed:</b>
46520
- ${preBlock(r.output)}`, { html: true });
45204
+ await switchroomReply(ctx, renderVaultOpFailure("get", r.output, key), { html: true });
46521
45205
  return;
46522
45206
  }
46523
45207
  await switchroomReply(ctx, `<code>${escapeHtmlForTg(key)}</code> =
@@ -46530,16 +45214,14 @@ ${preBlock(r.output)}`, { html: true });
46530
45214
  }
46531
45215
  const r = runVaultCli(["set", key], passphrase, setValue);
46532
45216
  if (!r.ok) {
46533
- await switchroomReply(ctx, `<b>vault set failed:</b>
46534
- ${preBlock(r.output)}`, { html: true });
45217
+ await switchroomReply(ctx, renderVaultOpFailure("set", r.output, key), { html: true });
46535
45218
  } else {
46536
45219
  await switchroomReply(ctx, `\u2705 <code>${escapeHtmlForTg(key)}</code> saved to vault.`, { html: true });
46537
45220
  }
46538
45221
  } else if (op === "delete") {
46539
45222
  const r = runVaultCli(["remove", key], passphrase);
46540
45223
  if (!r.ok) {
46541
- await switchroomReply(ctx, `<b>vault delete failed:</b>
46542
- ${preBlock(r.output)}`, { html: true });
45224
+ await switchroomReply(ctx, renderVaultOpFailure("delete", r.output, key), { html: true });
46543
45225
  } else {
46544
45226
  await switchroomReply(ctx, `\u2705 <code>${escapeHtmlForTg(key)}</code> removed from vault.`, { html: true });
46545
45227
  }
@@ -47582,6 +46264,78 @@ function resolveAgentDirForName(agent) {
47582
46264
  }
47583
46265
  return null;
47584
46266
  }
46267
+ async function handleVaultRequestSaveCallback(ctx, data) {
46268
+ const senderId = String(ctx.from?.id ?? "");
46269
+ const access = loadAccess();
46270
+ if (!access.allowFrom.includes(senderId)) {
46271
+ await ctx.answerCallbackQuery({ text: "Not authorized." }).catch(() => {});
46272
+ return;
46273
+ }
46274
+ const parts = data.split(":");
46275
+ if (parts.length < 3) {
46276
+ await ctx.answerCallbackQuery({ text: "Bad request" }).catch(() => {});
46277
+ return;
46278
+ }
46279
+ const action = parts[1];
46280
+ const stageId = parts.slice(2).join(":");
46281
+ const pending = pendingVaultRequestSaves.get(stageId);
46282
+ if (!pending) {
46283
+ await ctx.answerCallbackQuery({ text: "Card expired \u2014 ask the agent to re-send." }).catch(() => {});
46284
+ if (ctx.callbackQuery?.message) {
46285
+ await ctx.api.editMessageText(ctx.callbackQuery.message.chat.id, ctx.callbackQuery.message.message_id, "\u231B <i>This vault-save card expired before you tapped. Ask the agent to re-issue if you still want to save.</i>", { parse_mode: "HTML", reply_markup: { inline_keyboard: [] } }).catch(() => {});
46286
+ }
46287
+ return;
46288
+ }
46289
+ if (action === "discard") {
46290
+ pendingVaultRequestSaves.delete(stageId);
46291
+ await ctx.answerCallbackQuery({ text: "\uD83D\uDEAB Discarded" }).catch(() => {});
46292
+ if (pending.card_message_id != null) {
46293
+ await ctx.api.editMessageText(pending.chat_id, pending.card_message_id, `\uD83D\uDEAB <i>Discarded. The secret was not written to the vault.</i>`, { parse_mode: "HTML", reply_markup: { inline_keyboard: [] } }).catch(() => {});
46294
+ }
46295
+ return;
46296
+ }
46297
+ if (action === "rename") {
46298
+ pendingVaultOps.set(pending.chat_id, {
46299
+ kind: "rename-vault-save",
46300
+ stageId,
46301
+ startedAt: Date.now()
46302
+ });
46303
+ await ctx.answerCallbackQuery({ text: "Send the new key name as your next message." }).catch(() => {});
46304
+ return;
46305
+ }
46306
+ if (action === "save") {
46307
+ await ctx.answerCallbackQuery({ text: "\u23F3 Saving\u2026" }).catch(() => {});
46308
+ const cached = vaultPassphraseCache.get(pending.chat_id);
46309
+ if (!cached || cached.expiresAt <= Date.now()) {
46310
+ if (pending.card_message_id != null) {
46311
+ await ctx.api.editMessageText(pending.chat_id, pending.card_message_id, `\uD83D\uDD12 <b>Vault is locked.</b> Run <code>/vault unlock</code> (or any /vault command) to cache the passphrase, then tap Save again on the next card.`, { parse_mode: "HTML", reply_markup: { inline_keyboard: [] } }).catch(() => {});
46312
+ }
46313
+ pendingVaultRequestSaves.delete(stageId);
46314
+ return;
46315
+ }
46316
+ const write = defaultVaultWrite(pending.key, pending.value, cached.passphrase);
46317
+ if (!write.ok) {
46318
+ const parsed = parseVaultCliError(write.output);
46319
+ const rendered = renderVaultCliError(parsed, { verb: "save", key: pending.key });
46320
+ const body = rendered.suppressRaw ? rendered.html : `\u26A0\uFE0F vault write failed:
46321
+ <pre>${escapeHtmlForTg(write.output)}</pre>`;
46322
+ if (pending.card_message_id != null) {
46323
+ await ctx.api.editMessageText(pending.chat_id, pending.card_message_id, `${body}
46324
+
46325
+ <i>Tap a fresh card after fixing the underlying issue.</i>`, { parse_mode: "HTML", reply_markup: { inline_keyboard: [] } }).catch(() => {});
46326
+ }
46327
+ pendingVaultRequestSaves.delete(stageId);
46328
+ return;
46329
+ }
46330
+ pendingVaultRequestSaves.delete(stageId);
46331
+ if (pending.card_message_id != null) {
46332
+ await ctx.api.editMessageText(pending.chat_id, pending.card_message_id, `\u2705 saved as <code>vault:${escapeHtmlForTg(pending.key)}</code> (masked: <code>${escapeHtmlForTg(maskToken2(pending.value))}</code>)
46333
+ <i>The agent can now reference this as <code>vault:${escapeHtmlForTg(pending.key)}</code>.</i>`, { parse_mode: "HTML", reply_markup: { inline_keyboard: [] } }).catch(() => {});
46334
+ }
46335
+ return;
46336
+ }
46337
+ await ctx.answerCallbackQuery({ text: "Unknown action" }).catch(() => {});
46338
+ }
47585
46339
  async function handleVaultDeferCallback(ctx, data) {
47586
46340
  const senderId = String(ctx.from?.id ?? "");
47587
46341
  const access = loadAccess();
@@ -48019,9 +46773,12 @@ async function executeDeferredSecretSave(ctx, deferKey, passphrase, cardMessageI
48019
46773
  slug = `${slugBase}_${n++}`;
48020
46774
  const write = defaultVaultWrite(slug, deferred.text, passphrase);
48021
46775
  if (!write.ok) {
46776
+ const parsed = parseVaultCliError(write.output);
46777
+ const rendered = renderVaultCliError(parsed, { verb: "save", key: slug });
46778
+ const body = rendered.suppressRaw ? rendered.html : `\u26A0\uFE0F vault write failed:
46779
+ <pre>${escapeHtmlForTg(write.output)}</pre>`;
48022
46780
  if (cardMessageId != null) {
48023
- await ctx.api.editMessageText(deferred.chat_id, cardMessageId, `\u26A0\uFE0F vault write failed:
48024
- <pre>${escapeHtmlForTg(write.output)}</pre>
46781
+ await ctx.api.editMessageText(deferred.chat_id, cardMessageId, `${body}
48025
46782
 
48026
46783
  Re-tap to retry.`, {
48027
46784
  parse_mode: "HTML",
@@ -48404,9 +47161,108 @@ bot.command("vault", async (ctx) => {
48404
47161
  "/vault lock \u2014 lock the broker",
48405
47162
  "/vault grant \u2014 mint a capability token (inline wizard)",
48406
47163
  "/vault grants [agent] \u2014 list active capability grants (tap to revoke)",
47164
+ "/vault audit &lt;agent&gt; \u2014 unified view of an agent's vault access",
48407
47165
  "",
48408
47166
  "Your passphrase is cached in memory for 30 min after first use."
48409
47167
  ].join(`
47168
+ `), { html: true });
47169
+ return;
47170
+ }
47171
+ if (sub === "audit") {
47172
+ const targetAgent = args[1];
47173
+ if (!targetAgent) {
47174
+ await switchroomReply(ctx, "Usage: /vault audit &lt;agent&gt;", { html: true });
47175
+ return;
47176
+ }
47177
+ if (!/^[a-z][a-z0-9-]{0,62}$/i.test(targetAgent)) {
47178
+ await switchroomReply(ctx, "\u26A0\uFE0F Invalid agent name shape.", { html: true });
47179
+ return;
47180
+ }
47181
+ const grantsResult = await listGrantsViaBroker(targetAgent);
47182
+ let readGrants = [];
47183
+ let writeGrants = [];
47184
+ let grantsError = null;
47185
+ if (grantsResult.kind === "unreachable") {
47186
+ grantsError = "broker unreachable";
47187
+ } else if (grantsResult.kind === "error") {
47188
+ grantsError = grantsResult.msg;
47189
+ } else {
47190
+ for (const g of grantsResult.grants) {
47191
+ if (g.key_allow.length > 0) {
47192
+ readGrants.push({ id: g.id, keys: g.key_allow, expiresAt: g.expires_at });
47193
+ }
47194
+ if (g.write_allow && g.write_allow.length > 0) {
47195
+ writeGrants.push({ id: g.id, keys: g.write_allow, expiresAt: g.expires_at });
47196
+ }
47197
+ }
47198
+ }
47199
+ let cronEntries = [];
47200
+ let configError = null;
47201
+ try {
47202
+ const cfg = loadConfig2();
47203
+ const agentCfg = cfg.agents?.[targetAgent];
47204
+ if (!agentCfg) {
47205
+ configError = `agent '${targetAgent}' not found in switchroom.yaml`;
47206
+ } else {
47207
+ const schedule = agentCfg.schedule;
47208
+ if (Array.isArray(schedule)) {
47209
+ schedule.forEach((entry, i) => {
47210
+ if (entry?.secrets && Array.isArray(entry.secrets) && entry.secrets.length > 0) {
47211
+ cronEntries.push({
47212
+ index: i,
47213
+ secrets: entry.secrets,
47214
+ cron: typeof entry.cron === "string" ? entry.cron : undefined
47215
+ });
47216
+ }
47217
+ });
47218
+ }
47219
+ }
47220
+ } catch (err) {
47221
+ configError = err instanceof Error ? err.message : String(err);
47222
+ }
47223
+ const lines = [`<b>\uD83D\uDD10 ${escapeHtmlForTg(targetAgent)} \u2014 vault access</b>`, ""];
47224
+ if (grantsError) {
47225
+ lines.push(`<i>Grants: \u26A0\uFE0F ${escapeHtmlForTg(grantsError)}</i>`);
47226
+ lines.push("");
47227
+ } else {
47228
+ lines.push("<b>Read grants:</b>");
47229
+ if (readGrants.length === 0) {
47230
+ lines.push(" <i>none</i>");
47231
+ } else {
47232
+ for (const g of readGrants) {
47233
+ const expiry = g.expiresAt ? new Date(g.expiresAt * 1000).toISOString().slice(0, 10) : "no expiry";
47234
+ const keysJoined = g.keys.join(", ");
47235
+ lines.push(` <code>${escapeHtmlForTg(g.id)}</code> \xB7 ${escapeHtmlForTg(keysJoined)} \xB7 expires ${expiry}`);
47236
+ }
47237
+ }
47238
+ lines.push("");
47239
+ lines.push("<b>Write grants:</b>");
47240
+ if (writeGrants.length === 0) {
47241
+ lines.push(" <i>none</i>");
47242
+ } else {
47243
+ for (const g of writeGrants) {
47244
+ const expiry = g.expiresAt ? new Date(g.expiresAt * 1000).toISOString().slice(0, 10) : "no expiry";
47245
+ const keysJoined = g.keys.join(", ");
47246
+ lines.push(` <code>${escapeHtmlForTg(g.id)}</code> \xB7 ${escapeHtmlForTg(keysJoined)} \xB7 expires ${expiry}`);
47247
+ }
47248
+ }
47249
+ lines.push("");
47250
+ }
47251
+ lines.push("<b>Cron-declared secrets:</b>");
47252
+ if (configError) {
47253
+ lines.push(` <i>\u26A0\uFE0F ${escapeHtmlForTg(configError)}</i>`);
47254
+ } else if (cronEntries.length === 0) {
47255
+ lines.push(" <i>none</i>");
47256
+ } else {
47257
+ for (const entry of cronEntries) {
47258
+ const cronLabel = entry.cron ? ` (<code>${escapeHtmlForTg(entry.cron)}</code>)` : "";
47259
+ const keysJoined = entry.secrets.join(", ");
47260
+ lines.push(` schedule[${entry.index}]${cronLabel}: ${escapeHtmlForTg(keysJoined)}`);
47261
+ }
47262
+ }
47263
+ lines.push("");
47264
+ lines.push(`<i>Summary: ${readGrants.length} read grant${readGrants.length === 1 ? "" : "s"}, ${writeGrants.length} write grant${writeGrants.length === 1 ? "" : "s"}, ${cronEntries.length} cron entr${cronEntries.length === 1 ? "y" : "ies"}.</i>`);
47265
+ await switchroomReply(ctx, lines.join(`
48410
47266
  `), { html: true });
48411
47267
  return;
48412
47268
  }
@@ -48757,6 +47613,10 @@ bot.on("callback_query:data", async (ctx) => {
48757
47613
  await handleVaultGrantCallback(ctx, data);
48758
47614
  return;
48759
47615
  }
47616
+ if (data.startsWith("vrs:")) {
47617
+ await handleVaultRequestSaveCallback(ctx, data);
47618
+ return;
47619
+ }
48760
47620
  const askMatch = decodeAskCallback(data);
48761
47621
  if (askMatch != null) {
48762
47622
  const accessCheck = loadAccess();