switchroom 0.12.29 → 0.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent-scheduler/index.js +81 -80
- package/dist/auth-broker/index.js +81 -80
- package/dist/cli/drive-write-pretool.mjs +10 -10
- package/dist/cli/skill-validate-pretool.mjs +72 -72
- package/dist/cli/switchroom.js +361 -357
- package/dist/host-control/main.js +100 -99
- package/dist/vault/approvals/kernel-server.js +83 -82
- package/dist/vault/broker/server.js +84 -83
- package/package.json +1 -1
- package/telegram-plugin/dist/bridge/bridge.js +112 -112
- package/telegram-plugin/dist/gateway/gateway.js +340 -216
- package/telegram-plugin/dist/server.js +160 -160
- package/telegram-plugin/draft-stream.ts +300 -11
- package/telegram-plugin/draft-transport.ts +50 -0
- package/telegram-plugin/gateway/gateway.ts +142 -28
- package/telegram-plugin/stream-reply-handler.ts +3 -1
- package/telegram-plugin/tests/draft-stream.test.ts +532 -0
- package/telegram-plugin/tests/draft-transport.test.ts +70 -0
|
@@ -66,7 +66,7 @@ var __export = (target, all) => {
|
|
|
66
66
|
var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
67
67
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
68
68
|
|
|
69
|
-
//
|
|
69
|
+
// ../node_modules/.bun/grammy@1.42.0/node_modules/grammy/out/filter.js
|
|
70
70
|
var require_filter = __commonJS((exports) => {
|
|
71
71
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
72
72
|
exports.matchFilter = matchFilter;
|
|
@@ -430,7 +430,7 @@ var require_filter = __commonJS((exports) => {
|
|
|
430
430
|
};
|
|
431
431
|
});
|
|
432
432
|
|
|
433
|
-
//
|
|
433
|
+
// ../node_modules/.bun/grammy@1.42.0/node_modules/grammy/out/context.js
|
|
434
434
|
var require_context = __commonJS((exports) => {
|
|
435
435
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
436
436
|
exports.Context = undefined;
|
|
@@ -1457,7 +1457,7 @@ var require_context = __commonJS((exports) => {
|
|
|
1457
1457
|
}
|
|
1458
1458
|
});
|
|
1459
1459
|
|
|
1460
|
-
//
|
|
1460
|
+
// ../node_modules/.bun/grammy@1.42.0/node_modules/grammy/out/composer.js
|
|
1461
1461
|
var require_composer = __commonJS((exports) => {
|
|
1462
1462
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1463
1463
|
exports.Composer = exports.BotError = undefined;
|
|
@@ -1619,7 +1619,7 @@ var require_composer = __commonJS((exports) => {
|
|
|
1619
1619
|
exports.Composer = Composer;
|
|
1620
1620
|
});
|
|
1621
1621
|
|
|
1622
|
-
//
|
|
1622
|
+
// ../node_modules/.bun/ms@2.1.3/node_modules/ms/index.js
|
|
1623
1623
|
var require_ms = __commonJS((exports, module) => {
|
|
1624
1624
|
var s = 1000;
|
|
1625
1625
|
var m = s * 60;
|
|
@@ -1729,7 +1729,7 @@ var require_ms = __commonJS((exports, module) => {
|
|
|
1729
1729
|
}
|
|
1730
1730
|
});
|
|
1731
1731
|
|
|
1732
|
-
//
|
|
1732
|
+
// ../node_modules/.bun/debug@4.4.3/node_modules/debug/src/common.js
|
|
1733
1733
|
var require_common = __commonJS((exports, module) => {
|
|
1734
1734
|
function setup(env) {
|
|
1735
1735
|
createDebug.debug = createDebug;
|
|
@@ -1904,7 +1904,7 @@ var require_common = __commonJS((exports, module) => {
|
|
|
1904
1904
|
module.exports = setup;
|
|
1905
1905
|
});
|
|
1906
1906
|
|
|
1907
|
-
//
|
|
1907
|
+
// ../node_modules/.bun/debug@4.4.3/node_modules/debug/src/browser.js
|
|
1908
1908
|
var require_browser = __commonJS((exports, module) => {
|
|
1909
1909
|
exports.formatArgs = formatArgs;
|
|
1910
1910
|
exports.save = save;
|
|
@@ -2064,7 +2064,7 @@ var require_browser = __commonJS((exports, module) => {
|
|
|
2064
2064
|
};
|
|
2065
2065
|
});
|
|
2066
2066
|
|
|
2067
|
-
//
|
|
2067
|
+
// ../node_modules/.bun/has-flag@4.0.0/node_modules/has-flag/index.js
|
|
2068
2068
|
var require_has_flag = __commonJS((exports, module) => {
|
|
2069
2069
|
module.exports = (flag, argv = process.argv) => {
|
|
2070
2070
|
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
@@ -2074,7 +2074,7 @@ var require_has_flag = __commonJS((exports, module) => {
|
|
|
2074
2074
|
};
|
|
2075
2075
|
});
|
|
2076
2076
|
|
|
2077
|
-
//
|
|
2077
|
+
// ../node_modules/.bun/supports-color@7.2.0/node_modules/supports-color/index.js
|
|
2078
2078
|
var require_supports_color = __commonJS((exports, module) => {
|
|
2079
2079
|
var os = __require("os");
|
|
2080
2080
|
var tty = __require("tty");
|
|
@@ -2173,7 +2173,7 @@ var require_supports_color = __commonJS((exports, module) => {
|
|
|
2173
2173
|
};
|
|
2174
2174
|
});
|
|
2175
2175
|
|
|
2176
|
-
//
|
|
2176
|
+
// ../node_modules/.bun/debug@4.4.3/node_modules/debug/src/node.js
|
|
2177
2177
|
var require_node = __commonJS((exports, module) => {
|
|
2178
2178
|
var tty = __require("tty");
|
|
2179
2179
|
var util = __require("util");
|
|
@@ -2344,7 +2344,7 @@ var require_node = __commonJS((exports, module) => {
|
|
|
2344
2344
|
};
|
|
2345
2345
|
});
|
|
2346
2346
|
|
|
2347
|
-
//
|
|
2347
|
+
// ../node_modules/.bun/debug@4.4.3/node_modules/debug/src/index.js
|
|
2348
2348
|
var require_src = __commonJS((exports, module) => {
|
|
2349
2349
|
if (typeof process === "undefined" || process.type === "renderer" || false || process.__nwjs) {
|
|
2350
2350
|
module.exports = require_browser();
|
|
@@ -2353,7 +2353,7 @@ var require_src = __commonJS((exports, module) => {
|
|
|
2353
2353
|
}
|
|
2354
2354
|
});
|
|
2355
2355
|
|
|
2356
|
-
//
|
|
2356
|
+
// ../node_modules/.bun/grammy@1.42.0/node_modules/grammy/out/platform.node.js
|
|
2357
2357
|
var require_platform_node = __commonJS((exports) => {
|
|
2358
2358
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2359
2359
|
exports.defaultAdapter = exports.itrToStream = exports.debug = undefined;
|
|
@@ -2393,7 +2393,7 @@ var require_platform_node = __commonJS((exports) => {
|
|
|
2393
2393
|
exports.defaultAdapter = "express";
|
|
2394
2394
|
});
|
|
2395
2395
|
|
|
2396
|
-
//
|
|
2396
|
+
// ../node_modules/.bun/grammy@1.42.0/node_modules/grammy/out/core/error.js
|
|
2397
2397
|
var require_error = __commonJS((exports) => {
|
|
2398
2398
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2399
2399
|
exports.HttpError = exports.GrammyError = undefined;
|
|
@@ -2449,10 +2449,10 @@ var require_error = __commonJS((exports) => {
|
|
|
2449
2449
|
}
|
|
2450
2450
|
});
|
|
2451
2451
|
|
|
2452
|
-
//
|
|
2452
|
+
// ../node_modules/.bun/@grammyjs+types@3.26.0/node_modules/@grammyjs/types/mod.js
|
|
2453
2453
|
var exports_mod = {};
|
|
2454
2454
|
|
|
2455
|
-
//
|
|
2455
|
+
// ../node_modules/.bun/grammy@1.42.0/node_modules/grammy/out/types.node.js
|
|
2456
2456
|
var require_types_node = __commonJS((exports) => {
|
|
2457
2457
|
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
2458
2458
|
if (k2 === undefined)
|
|
@@ -2543,7 +2543,7 @@ var require_types_node = __commonJS((exports) => {
|
|
|
2543
2543
|
}
|
|
2544
2544
|
});
|
|
2545
2545
|
|
|
2546
|
-
//
|
|
2546
|
+
// ../node_modules/.bun/grammy@1.42.0/node_modules/grammy/out/types.js
|
|
2547
2547
|
var require_types = __commonJS((exports) => {
|
|
2548
2548
|
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
2549
2549
|
if (k2 === undefined)
|
|
@@ -2569,7 +2569,7 @@ var require_types = __commonJS((exports) => {
|
|
|
2569
2569
|
__exportStar(require_types_node(), exports);
|
|
2570
2570
|
});
|
|
2571
2571
|
|
|
2572
|
-
//
|
|
2572
|
+
// ../node_modules/.bun/grammy@1.42.0/node_modules/grammy/out/core/payload.js
|
|
2573
2573
|
var require_payload = __commonJS((exports) => {
|
|
2574
2574
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2575
2575
|
exports.requiresFormDataUpload = requiresFormDataUpload;
|
|
@@ -2709,7 +2709,7 @@ content-type:application/octet-stream\r
|
|
|
2709
2709
|
}
|
|
2710
2710
|
});
|
|
2711
2711
|
|
|
2712
|
-
//
|
|
2712
|
+
// ../node_modules/.bun/event-target-shim@5.0.1/node_modules/event-target-shim/dist/event-target-shim.js
|
|
2713
2713
|
var require_event_target_shim = __commonJS((exports, module) => {
|
|
2714
2714
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2715
2715
|
var privateData = new WeakMap;
|
|
@@ -3149,7 +3149,7 @@ var require_event_target_shim = __commonJS((exports, module) => {
|
|
|
3149
3149
|
module.exports.defineEventAttribute = defineEventAttribute;
|
|
3150
3150
|
});
|
|
3151
3151
|
|
|
3152
|
-
//
|
|
3152
|
+
// ../node_modules/.bun/abort-controller@3.0.0/node_modules/abort-controller/dist/abort-controller.js
|
|
3153
3153
|
var require_abort_controller = __commonJS((exports, module) => {
|
|
3154
3154
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3155
3155
|
var eventTargetShim = require_event_target_shim();
|
|
@@ -3229,7 +3229,7 @@ var require_abort_controller = __commonJS((exports, module) => {
|
|
|
3229
3229
|
module.exports.AbortSignal = AbortSignal2;
|
|
3230
3230
|
});
|
|
3231
3231
|
|
|
3232
|
-
//
|
|
3232
|
+
// ../node_modules/.bun/grammy@1.42.0/node_modules/grammy/out/shim.node.js
|
|
3233
3233
|
var require_shim_node = __commonJS((exports) => {
|
|
3234
3234
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3235
3235
|
exports.fetch = exports.AbortController = undefined;
|
|
@@ -3243,7 +3243,7 @@ var require_shim_node = __commonJS((exports) => {
|
|
|
3243
3243
|
} });
|
|
3244
3244
|
});
|
|
3245
3245
|
|
|
3246
|
-
//
|
|
3246
|
+
// ../node_modules/.bun/grammy@1.42.0/node_modules/grammy/out/core/client.js
|
|
3247
3247
|
var require_client = __commonJS((exports) => {
|
|
3248
3248
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3249
3249
|
exports.createRawApi = createRawApi;
|
|
@@ -3423,7 +3423,7 @@ If you want to prevent such mistakes in the future, consider using TypeScript. h
|
|
|
3423
3423
|
var shim_node_js_1 = require_shim_node();
|
|
3424
3424
|
});
|
|
3425
3425
|
|
|
3426
|
-
//
|
|
3426
|
+
// ../node_modules/.bun/grammy@1.42.0/node_modules/grammy/out/core/api.js
|
|
3427
3427
|
var require_api = __commonJS((exports) => {
|
|
3428
3428
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3429
3429
|
exports.Api = undefined;
|
|
@@ -4041,7 +4041,7 @@ var require_api = __commonJS((exports) => {
|
|
|
4041
4041
|
exports.Api = Api;
|
|
4042
4042
|
});
|
|
4043
4043
|
|
|
4044
|
-
//
|
|
4044
|
+
// ../node_modules/.bun/grammy@1.42.0/node_modules/grammy/out/bot.js
|
|
4045
4045
|
var require_bot = __commonJS((exports) => {
|
|
4046
4046
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4047
4047
|
exports.Bot = exports.BotError = exports.DEFAULT_UPDATE_TYPES = undefined;
|
|
@@ -4370,7 +4370,7 @@ On the other hand, if you actually know what you're doing and you do need to ins
|
|
|
4370
4370
|
var shim_node_js_1 = require_shim_node();
|
|
4371
4371
|
});
|
|
4372
4372
|
|
|
4373
|
-
//
|
|
4373
|
+
// ../node_modules/.bun/grammy@1.42.0/node_modules/grammy/out/convenience/constants.js
|
|
4374
4374
|
var require_constants = __commonJS((exports) => {
|
|
4375
4375
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4376
4376
|
exports.API_CONSTANTS = undefined;
|
|
@@ -4406,7 +4406,7 @@ var require_constants = __commonJS((exports) => {
|
|
|
4406
4406
|
Object.freeze(exports.API_CONSTANTS);
|
|
4407
4407
|
});
|
|
4408
4408
|
|
|
4409
|
-
//
|
|
4409
|
+
// ../node_modules/.bun/grammy@1.42.0/node_modules/grammy/out/convenience/inline_query.js
|
|
4410
4410
|
var require_inline_query = __commonJS((exports) => {
|
|
4411
4411
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4412
4412
|
exports.InlineQueryResultBuilder = undefined;
|
|
@@ -4604,7 +4604,7 @@ var require_inline_query = __commonJS((exports) => {
|
|
|
4604
4604
|
};
|
|
4605
4605
|
});
|
|
4606
4606
|
|
|
4607
|
-
//
|
|
4607
|
+
// ../node_modules/.bun/grammy@1.42.0/node_modules/grammy/out/convenience/input_media.js
|
|
4608
4608
|
var require_input_media = __commonJS((exports) => {
|
|
4609
4609
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4610
4610
|
exports.InputMediaBuilder = undefined;
|
|
@@ -4627,7 +4627,7 @@ var require_input_media = __commonJS((exports) => {
|
|
|
4627
4627
|
};
|
|
4628
4628
|
});
|
|
4629
4629
|
|
|
4630
|
-
//
|
|
4630
|
+
// ../node_modules/.bun/grammy@1.42.0/node_modules/grammy/out/convenience/keyboard.js
|
|
4631
4631
|
var require_keyboard = __commonJS((exports) => {
|
|
4632
4632
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4633
4633
|
exports.InlineKeyboard = exports.Keyboard = undefined;
|
|
@@ -4985,7 +4985,7 @@ var require_keyboard = __commonJS((exports) => {
|
|
|
4985
4985
|
}
|
|
4986
4986
|
});
|
|
4987
4987
|
|
|
4988
|
-
//
|
|
4988
|
+
// ../node_modules/.bun/grammy@1.42.0/node_modules/grammy/out/convenience/session.js
|
|
4989
4989
|
var require_session = __commonJS((exports) => {
|
|
4990
4990
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4991
4991
|
exports.MemorySessionStorage = undefined;
|
|
@@ -5285,7 +5285,7 @@ var require_session = __commonJS((exports) => {
|
|
|
5285
5285
|
}
|
|
5286
5286
|
});
|
|
5287
5287
|
|
|
5288
|
-
//
|
|
5288
|
+
// ../node_modules/.bun/grammy@1.42.0/node_modules/grammy/out/convenience/frameworks.js
|
|
5289
5289
|
var require_frameworks = __commonJS((exports) => {
|
|
5290
5290
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5291
5291
|
exports.adapters = undefined;
|
|
@@ -5653,7 +5653,7 @@ var require_frameworks = __commonJS((exports) => {
|
|
|
5653
5653
|
};
|
|
5654
5654
|
});
|
|
5655
5655
|
|
|
5656
|
-
//
|
|
5656
|
+
// ../node_modules/.bun/grammy@1.42.0/node_modules/grammy/out/convenience/webhook.js
|
|
5657
5657
|
var require_webhook = __commonJS((exports) => {
|
|
5658
5658
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5659
5659
|
exports.webhookCallback = webhookCallback;
|
|
@@ -5747,7 +5747,7 @@ var require_webhook = __commonJS((exports) => {
|
|
|
5747
5747
|
}
|
|
5748
5748
|
});
|
|
5749
5749
|
|
|
5750
|
-
//
|
|
5750
|
+
// ../node_modules/.bun/grammy@1.42.0/node_modules/grammy/out/mod.js
|
|
5751
5751
|
var require_mod = __commonJS((exports) => {
|
|
5752
5752
|
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
5753
5753
|
if (k2 === undefined)
|
|
@@ -5813,7 +5813,7 @@ var require_mod = __commonJS((exports) => {
|
|
|
5813
5813
|
} });
|
|
5814
5814
|
});
|
|
5815
5815
|
|
|
5816
|
-
//
|
|
5816
|
+
// ../node_modules/.bun/@grammyjs+runner@2.0.3+c6be0243b1bbec89/node_modules/@grammyjs/runner/out/platform.node.js
|
|
5817
5817
|
var require_platform_node2 = __commonJS((exports) => {
|
|
5818
5818
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5819
5819
|
exports.parentThread = exports.createThread = undefined;
|
|
@@ -5844,7 +5844,7 @@ var require_platform_node2 = __commonJS((exports) => {
|
|
|
5844
5844
|
exports.parentThread = parentThread;
|
|
5845
5845
|
});
|
|
5846
5846
|
|
|
5847
|
-
//
|
|
5847
|
+
// ../node_modules/.bun/@grammyjs+runner@2.0.3+c6be0243b1bbec89/node_modules/@grammyjs/runner/out/distribute.js
|
|
5848
5848
|
var require_distribute = __commonJS((exports) => {
|
|
5849
5849
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5850
5850
|
exports.distribute = undefined;
|
|
@@ -5889,7 +5889,7 @@ var require_distribute = __commonJS((exports) => {
|
|
|
5889
5889
|
exports.distribute = distribute;
|
|
5890
5890
|
});
|
|
5891
5891
|
|
|
5892
|
-
//
|
|
5892
|
+
// ../node_modules/.bun/@grammyjs+runner@2.0.3+c6be0243b1bbec89/node_modules/@grammyjs/runner/out/queue.js
|
|
5893
5893
|
var require_queue = __commonJS((exports) => {
|
|
5894
5894
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5895
5895
|
exports.DecayingDeque = undefined;
|
|
@@ -6033,7 +6033,7 @@ var require_queue = __commonJS((exports) => {
|
|
|
6033
6033
|
exports.DecayingDeque = DecayingDeque;
|
|
6034
6034
|
});
|
|
6035
6035
|
|
|
6036
|
-
//
|
|
6036
|
+
// ../node_modules/.bun/@grammyjs+runner@2.0.3+c6be0243b1bbec89/node_modules/@grammyjs/runner/out/sink.js
|
|
6037
6037
|
var require_sink = __commonJS((exports) => {
|
|
6038
6038
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6039
6039
|
exports.createConcurrentSink = exports.createBatchSink = exports.createSequentialSink = undefined;
|
|
@@ -6078,7 +6078,7 @@ var require_sink = __commonJS((exports) => {
|
|
|
6078
6078
|
exports.createConcurrentSink = createConcurrentSink;
|
|
6079
6079
|
});
|
|
6080
6080
|
|
|
6081
|
-
//
|
|
6081
|
+
// ../node_modules/.bun/@grammyjs+runner@2.0.3+c6be0243b1bbec89/node_modules/@grammyjs/runner/out/node-shim.js
|
|
6082
6082
|
var require_node_shim = __commonJS((exports) => {
|
|
6083
6083
|
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
6084
6084
|
if (k2 === undefined)
|
|
@@ -6104,7 +6104,7 @@ var require_node_shim = __commonJS((exports) => {
|
|
|
6104
6104
|
__exportStar(require_abort_controller(), exports);
|
|
6105
6105
|
});
|
|
6106
6106
|
|
|
6107
|
-
//
|
|
6107
|
+
// ../node_modules/.bun/@grammyjs+runner@2.0.3+c6be0243b1bbec89/node_modules/@grammyjs/runner/out/source.js
|
|
6108
6108
|
var require_source = __commonJS((exports) => {
|
|
6109
6109
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6110
6110
|
exports.createSource = undefined;
|
|
@@ -6184,7 +6184,7 @@ var require_source = __commonJS((exports) => {
|
|
|
6184
6184
|
var node_shim_js_1 = require_node_shim();
|
|
6185
6185
|
});
|
|
6186
6186
|
|
|
6187
|
-
//
|
|
6187
|
+
// ../node_modules/.bun/@grammyjs+runner@2.0.3+c6be0243b1bbec89/node_modules/@grammyjs/runner/out/runner.js
|
|
6188
6188
|
var require_runner = __commonJS((exports) => {
|
|
6189
6189
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6190
6190
|
exports.createRunner = exports.createUpdateFetcher = exports.run = undefined;
|
|
@@ -6336,7 +6336,7 @@ var require_runner = __commonJS((exports) => {
|
|
|
6336
6336
|
}
|
|
6337
6337
|
});
|
|
6338
6338
|
|
|
6339
|
-
//
|
|
6339
|
+
// ../node_modules/.bun/@grammyjs+runner@2.0.3+c6be0243b1bbec89/node_modules/@grammyjs/runner/out/sequentialize.js
|
|
6340
6340
|
var require_sequentialize = __commonJS((exports) => {
|
|
6341
6341
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6342
6342
|
exports.sequentialize = undefined;
|
|
@@ -6379,7 +6379,7 @@ var require_sequentialize = __commonJS((exports) => {
|
|
|
6379
6379
|
exports.sequentialize = sequentialize;
|
|
6380
6380
|
});
|
|
6381
6381
|
|
|
6382
|
-
//
|
|
6382
|
+
// ../node_modules/.bun/grammy@1.42.0/node_modules/grammy/out/mod.js
|
|
6383
6383
|
var require_mod2 = __commonJS((exports) => {
|
|
6384
6384
|
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
6385
6385
|
if (k2 === undefined)
|
|
@@ -6445,7 +6445,7 @@ var require_mod2 = __commonJS((exports) => {
|
|
|
6445
6445
|
} });
|
|
6446
6446
|
});
|
|
6447
6447
|
|
|
6448
|
-
//
|
|
6448
|
+
// ../node_modules/.bun/@grammyjs+runner@2.0.3+c6be0243b1bbec89/node_modules/@grammyjs/runner/out/deps.node.js
|
|
6449
6449
|
var require_deps_node = __commonJS((exports) => {
|
|
6450
6450
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6451
6451
|
exports.BotError = exports.Bot = undefined;
|
|
@@ -6458,7 +6458,7 @@ var require_deps_node = __commonJS((exports) => {
|
|
|
6458
6458
|
} });
|
|
6459
6459
|
});
|
|
6460
6460
|
|
|
6461
|
-
//
|
|
6461
|
+
// ../node_modules/.bun/@grammyjs+runner@2.0.3+c6be0243b1bbec89/node_modules/@grammyjs/runner/out/worker.js
|
|
6462
6462
|
var require_worker = __commonJS((exports) => {
|
|
6463
6463
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6464
6464
|
exports.BotWorker = undefined;
|
|
@@ -6500,7 +6500,7 @@ var require_worker = __commonJS((exports) => {
|
|
|
6500
6500
|
exports.BotWorker = BotWorker;
|
|
6501
6501
|
});
|
|
6502
6502
|
|
|
6503
|
-
//
|
|
6503
|
+
// ../node_modules/.bun/@grammyjs+runner@2.0.3+c6be0243b1bbec89/node_modules/@grammyjs/runner/out/mod.js
|
|
6504
6504
|
var require_mod3 = __commonJS((exports) => {
|
|
6505
6505
|
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
6506
6506
|
if (k2 === undefined)
|
|
@@ -6532,7 +6532,7 @@ var require_mod3 = __commonJS((exports) => {
|
|
|
6532
6532
|
__exportStar(require_worker(), exports);
|
|
6533
6533
|
});
|
|
6534
6534
|
|
|
6535
|
-
//
|
|
6535
|
+
// ../node_modules/.bun/@grammyjs+runner@2.0.3+c6be0243b1bbec89/node_modules/@grammyjs/runner/out/mod.js
|
|
6536
6536
|
var require_mod4 = __commonJS((exports) => {
|
|
6537
6537
|
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
6538
6538
|
if (k2 === undefined)
|
|
@@ -6564,7 +6564,7 @@ var require_mod4 = __commonJS((exports) => {
|
|
|
6564
6564
|
__exportStar(require_worker(), exports);
|
|
6565
6565
|
});
|
|
6566
6566
|
|
|
6567
|
-
//
|
|
6567
|
+
// ../node_modules/.bun/@xterm+headless@6.0.0/node_modules/@xterm/headless/lib-headless/xterm-headless.js
|
|
6568
6568
|
var require_xterm_headless = __commonJS((exports2) => {
|
|
6569
6569
|
(() => {
|
|
6570
6570
|
var e = { 5639: (e2, t2, s2) => {
|
|
@@ -12119,7 +12119,7 @@ ${i3.join(`
|
|
|
12119
12119
|
})();
|
|
12120
12120
|
});
|
|
12121
12121
|
|
|
12122
|
-
//
|
|
12122
|
+
// ../node_modules/.bun/zod@3.25.76/node_modules/zod/v3/helpers/util.js
|
|
12123
12123
|
var util, objectUtil, ZodParsedType, getParsedType = (data) => {
|
|
12124
12124
|
const t = typeof data;
|
|
12125
12125
|
switch (t) {
|
|
@@ -12250,7 +12250,7 @@ var init_util = __esm(() => {
|
|
|
12250
12250
|
]);
|
|
12251
12251
|
});
|
|
12252
12252
|
|
|
12253
|
-
//
|
|
12253
|
+
// ../node_modules/.bun/zod@3.25.76/node_modules/zod/v3/ZodError.js
|
|
12254
12254
|
var ZodIssueCode, quotelessJson = (obj) => {
|
|
12255
12255
|
const json = JSON.stringify(obj, null, 2);
|
|
12256
12256
|
return json.replace(/"([^"]+)":/g, "$1:");
|
|
@@ -12371,7 +12371,7 @@ var init_ZodError = __esm(() => {
|
|
|
12371
12371
|
};
|
|
12372
12372
|
});
|
|
12373
12373
|
|
|
12374
|
-
//
|
|
12374
|
+
// ../node_modules/.bun/zod@3.25.76/node_modules/zod/v3/locales/en.js
|
|
12375
12375
|
var errorMap = (issue, _ctx) => {
|
|
12376
12376
|
let message;
|
|
12377
12377
|
switch (issue.code) {
|
|
@@ -12478,7 +12478,7 @@ var init_en = __esm(() => {
|
|
|
12478
12478
|
en_default = errorMap;
|
|
12479
12479
|
});
|
|
12480
12480
|
|
|
12481
|
-
//
|
|
12481
|
+
// ../node_modules/.bun/zod@3.25.76/node_modules/zod/v3/errors.js
|
|
12482
12482
|
function setErrorMap(map) {
|
|
12483
12483
|
overrideErrorMap = map;
|
|
12484
12484
|
}
|
|
@@ -12491,7 +12491,7 @@ var init_errors = __esm(() => {
|
|
|
12491
12491
|
overrideErrorMap = en_default;
|
|
12492
12492
|
});
|
|
12493
12493
|
|
|
12494
|
-
//
|
|
12494
|
+
// ../node_modules/.bun/zod@3.25.76/node_modules/zod/v3/helpers/parseUtil.js
|
|
12495
12495
|
function addIssueToContext(ctx, issueData) {
|
|
12496
12496
|
const overrideMap = getErrorMap();
|
|
12497
12497
|
const issue = makeIssue({
|
|
@@ -12596,10 +12596,10 @@ var init_parseUtil = __esm(() => {
|
|
|
12596
12596
|
});
|
|
12597
12597
|
});
|
|
12598
12598
|
|
|
12599
|
-
//
|
|
12599
|
+
// ../node_modules/.bun/zod@3.25.76/node_modules/zod/v3/helpers/typeAliases.js
|
|
12600
12600
|
var init_typeAliases = () => {};
|
|
12601
12601
|
|
|
12602
|
-
//
|
|
12602
|
+
// ../node_modules/.bun/zod@3.25.76/node_modules/zod/v3/helpers/errorUtil.js
|
|
12603
12603
|
var errorUtil;
|
|
12604
12604
|
var init_errorUtil = __esm(() => {
|
|
12605
12605
|
(function(errorUtil2) {
|
|
@@ -12608,7 +12608,7 @@ var init_errorUtil = __esm(() => {
|
|
|
12608
12608
|
})(errorUtil || (errorUtil = {}));
|
|
12609
12609
|
});
|
|
12610
12610
|
|
|
12611
|
-
//
|
|
12611
|
+
// ../node_modules/.bun/zod@3.25.76/node_modules/zod/v3/types.js
|
|
12612
12612
|
class ParseInputLazyPath {
|
|
12613
12613
|
constructor(parent, value, path, key) {
|
|
12614
12614
|
this._cachedPath = [];
|
|
@@ -15959,7 +15959,7 @@ var init_types = __esm(() => {
|
|
|
15959
15959
|
NEVER = INVALID;
|
|
15960
15960
|
});
|
|
15961
15961
|
|
|
15962
|
-
//
|
|
15962
|
+
// ../node_modules/.bun/zod@3.25.76/node_modules/zod/v3/external.js
|
|
15963
15963
|
var exports_external = {};
|
|
15964
15964
|
__export(exports_external, {
|
|
15965
15965
|
void: () => voidType,
|
|
@@ -16079,7 +16079,7 @@ var init_external = __esm(() => {
|
|
|
16079
16079
|
init_ZodError();
|
|
16080
16080
|
});
|
|
16081
16081
|
|
|
16082
|
-
//
|
|
16082
|
+
// ../node_modules/.bun/zod@3.25.76/node_modules/zod/index.js
|
|
16083
16083
|
var init_zod = __esm(() => {
|
|
16084
16084
|
init_external();
|
|
16085
16085
|
init_external();
|
|
@@ -16627,7 +16627,7 @@ var init_client = __esm(() => {
|
|
|
16627
16627
|
};
|
|
16628
16628
|
});
|
|
16629
16629
|
|
|
16630
|
-
//
|
|
16630
|
+
// ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/identity.js
|
|
16631
16631
|
var require_identity = __commonJS((exports2) => {
|
|
16632
16632
|
var ALIAS = Symbol.for("yaml.alias");
|
|
16633
16633
|
var DOC = Symbol.for("yaml.document");
|
|
@@ -16681,7 +16681,7 @@ var require_identity = __commonJS((exports2) => {
|
|
|
16681
16681
|
exports2.isSeq = isSeq;
|
|
16682
16682
|
});
|
|
16683
16683
|
|
|
16684
|
-
//
|
|
16684
|
+
// ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/visit.js
|
|
16685
16685
|
var require_visit = __commonJS((exports2) => {
|
|
16686
16686
|
var identity = require_identity();
|
|
16687
16687
|
var BREAK = Symbol("break visit");
|
|
@@ -16836,7 +16836,7 @@ var require_visit = __commonJS((exports2) => {
|
|
|
16836
16836
|
exports2.visitAsync = visitAsync;
|
|
16837
16837
|
});
|
|
16838
16838
|
|
|
16839
|
-
//
|
|
16839
|
+
// ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/doc/directives.js
|
|
16840
16840
|
var require_directives = __commonJS((exports2) => {
|
|
16841
16841
|
var identity = require_identity();
|
|
16842
16842
|
var visit = require_visit();
|
|
@@ -16988,7 +16988,7 @@ var require_directives = __commonJS((exports2) => {
|
|
|
16988
16988
|
exports2.Directives = Directives;
|
|
16989
16989
|
});
|
|
16990
16990
|
|
|
16991
|
-
//
|
|
16991
|
+
// ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/doc/anchors.js
|
|
16992
16992
|
var require_anchors = __commonJS((exports2) => {
|
|
16993
16993
|
var identity = require_identity();
|
|
16994
16994
|
var visit = require_visit();
|
|
@@ -17050,7 +17050,7 @@ var require_anchors = __commonJS((exports2) => {
|
|
|
17050
17050
|
exports2.findNewAnchor = findNewAnchor;
|
|
17051
17051
|
});
|
|
17052
17052
|
|
|
17053
|
-
//
|
|
17053
|
+
// ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/doc/applyReviver.js
|
|
17054
17054
|
var require_applyReviver = __commonJS((exports2) => {
|
|
17055
17055
|
function applyReviver(reviver, obj, key, val) {
|
|
17056
17056
|
if (val && typeof val === "object") {
|
|
@@ -17097,7 +17097,7 @@ var require_applyReviver = __commonJS((exports2) => {
|
|
|
17097
17097
|
exports2.applyReviver = applyReviver;
|
|
17098
17098
|
});
|
|
17099
17099
|
|
|
17100
|
-
//
|
|
17100
|
+
// ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/toJS.js
|
|
17101
17101
|
var require_toJS = __commonJS((exports2) => {
|
|
17102
17102
|
var identity = require_identity();
|
|
17103
17103
|
function toJS(value, arg, ctx) {
|
|
@@ -17124,7 +17124,7 @@ var require_toJS = __commonJS((exports2) => {
|
|
|
17124
17124
|
exports2.toJS = toJS;
|
|
17125
17125
|
});
|
|
17126
17126
|
|
|
17127
|
-
//
|
|
17127
|
+
// ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/Node.js
|
|
17128
17128
|
var require_Node = __commonJS((exports2) => {
|
|
17129
17129
|
var applyReviver = require_applyReviver();
|
|
17130
17130
|
var identity = require_identity();
|
|
@@ -17161,7 +17161,7 @@ var require_Node = __commonJS((exports2) => {
|
|
|
17161
17161
|
exports2.NodeBase = NodeBase;
|
|
17162
17162
|
});
|
|
17163
17163
|
|
|
17164
|
-
//
|
|
17164
|
+
// ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/Alias.js
|
|
17165
17165
|
var require_Alias = __commonJS((exports2) => {
|
|
17166
17166
|
var anchors = require_anchors();
|
|
17167
17167
|
var visit = require_visit();
|
|
@@ -17269,7 +17269,7 @@ var require_Alias = __commonJS((exports2) => {
|
|
|
17269
17269
|
exports2.Alias = Alias;
|
|
17270
17270
|
});
|
|
17271
17271
|
|
|
17272
|
-
//
|
|
17272
|
+
// ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/Scalar.js
|
|
17273
17273
|
var require_Scalar = __commonJS((exports2) => {
|
|
17274
17274
|
var identity = require_identity();
|
|
17275
17275
|
var Node = require_Node();
|
|
@@ -17297,7 +17297,7 @@ var require_Scalar = __commonJS((exports2) => {
|
|
|
17297
17297
|
exports2.isScalarValue = isScalarValue;
|
|
17298
17298
|
});
|
|
17299
17299
|
|
|
17300
|
-
//
|
|
17300
|
+
// ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/doc/createNode.js
|
|
17301
17301
|
var require_createNode = __commonJS((exports2) => {
|
|
17302
17302
|
var Alias = require_Alias();
|
|
17303
17303
|
var identity = require_identity();
|
|
@@ -17369,7 +17369,7 @@ var require_createNode = __commonJS((exports2) => {
|
|
|
17369
17369
|
exports2.createNode = createNode;
|
|
17370
17370
|
});
|
|
17371
17371
|
|
|
17372
|
-
//
|
|
17372
|
+
// ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/Collection.js
|
|
17373
17373
|
var require_Collection = __commonJS((exports2) => {
|
|
17374
17374
|
var createNode = require_createNode();
|
|
17375
17375
|
var identity = require_identity();
|
|
@@ -17484,7 +17484,7 @@ var require_Collection = __commonJS((exports2) => {
|
|
|
17484
17484
|
exports2.isEmptyPath = isEmptyPath;
|
|
17485
17485
|
});
|
|
17486
17486
|
|
|
17487
|
-
//
|
|
17487
|
+
// ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyComment.js
|
|
17488
17488
|
var require_stringifyComment = __commonJS((exports2) => {
|
|
17489
17489
|
var stringifyComment = (str) => str.replace(/^(?!$)(?: $)?/gm, "#");
|
|
17490
17490
|
function indentComment(comment, indent) {
|
|
@@ -17501,7 +17501,7 @@ var require_stringifyComment = __commonJS((exports2) => {
|
|
|
17501
17501
|
exports2.stringifyComment = stringifyComment;
|
|
17502
17502
|
});
|
|
17503
17503
|
|
|
17504
|
-
//
|
|
17504
|
+
// ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/foldFlowLines.js
|
|
17505
17505
|
var require_foldFlowLines = __commonJS((exports2) => {
|
|
17506
17506
|
var FOLD_FLOW = "flow";
|
|
17507
17507
|
var FOLD_BLOCK = "block";
|
|
@@ -17638,7 +17638,7 @@ ${indent}${text.slice(fold + 1, end2)}`;
|
|
|
17638
17638
|
exports2.foldFlowLines = foldFlowLines;
|
|
17639
17639
|
});
|
|
17640
17640
|
|
|
17641
|
-
//
|
|
17641
|
+
// ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyString.js
|
|
17642
17642
|
var require_stringifyString = __commonJS((exports2) => {
|
|
17643
17643
|
var Scalar = require_Scalar();
|
|
17644
17644
|
var foldFlowLines = require_foldFlowLines();
|
|
@@ -17936,7 +17936,7 @@ ${indent}`);
|
|
|
17936
17936
|
exports2.stringifyString = stringifyString;
|
|
17937
17937
|
});
|
|
17938
17938
|
|
|
17939
|
-
//
|
|
17939
|
+
// ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/stringify.js
|
|
17940
17940
|
var require_stringify = __commonJS((exports2) => {
|
|
17941
17941
|
var anchors = require_anchors();
|
|
17942
17942
|
var identity = require_identity();
|
|
@@ -18057,7 +18057,7 @@ ${ctx.indent}${str}`;
|
|
|
18057
18057
|
exports2.stringify = stringify;
|
|
18058
18058
|
});
|
|
18059
18059
|
|
|
18060
|
-
//
|
|
18060
|
+
// ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyPair.js
|
|
18061
18061
|
var require_stringifyPair = __commonJS((exports2) => {
|
|
18062
18062
|
var identity = require_identity();
|
|
18063
18063
|
var Scalar = require_Scalar();
|
|
@@ -18193,7 +18193,7 @@ ${ctx.indent}`;
|
|
|
18193
18193
|
exports2.stringifyPair = stringifyPair;
|
|
18194
18194
|
});
|
|
18195
18195
|
|
|
18196
|
-
//
|
|
18196
|
+
// ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/log.js
|
|
18197
18197
|
var require_log = __commonJS((exports2) => {
|
|
18198
18198
|
var node_process = __require("process");
|
|
18199
18199
|
function debug(logLevel, ...messages) {
|
|
@@ -18212,7 +18212,7 @@ var require_log = __commonJS((exports2) => {
|
|
|
18212
18212
|
exports2.warn = warn;
|
|
18213
18213
|
});
|
|
18214
18214
|
|
|
18215
|
-
//
|
|
18215
|
+
// ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/merge.js
|
|
18216
18216
|
var require_merge = __commonJS((exports2) => {
|
|
18217
18217
|
var identity = require_identity();
|
|
18218
18218
|
var Scalar = require_Scalar();
|
|
@@ -18266,7 +18266,7 @@ var require_merge = __commonJS((exports2) => {
|
|
|
18266
18266
|
exports2.merge = merge;
|
|
18267
18267
|
});
|
|
18268
18268
|
|
|
18269
|
-
//
|
|
18269
|
+
// ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/addPairToJSMap.js
|
|
18270
18270
|
var require_addPairToJSMap = __commonJS((exports2) => {
|
|
18271
18271
|
var log = require_log();
|
|
18272
18272
|
var merge = require_merge();
|
|
@@ -18327,7 +18327,7 @@ var require_addPairToJSMap = __commonJS((exports2) => {
|
|
|
18327
18327
|
exports2.addPairToJSMap = addPairToJSMap;
|
|
18328
18328
|
});
|
|
18329
18329
|
|
|
18330
|
-
//
|
|
18330
|
+
// ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/Pair.js
|
|
18331
18331
|
var require_Pair = __commonJS((exports2) => {
|
|
18332
18332
|
var createNode = require_createNode();
|
|
18333
18333
|
var stringifyPair = require_stringifyPair();
|
|
@@ -18365,7 +18365,7 @@ var require_Pair = __commonJS((exports2) => {
|
|
|
18365
18365
|
exports2.createPair = createPair;
|
|
18366
18366
|
});
|
|
18367
18367
|
|
|
18368
|
-
//
|
|
18368
|
+
// ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyCollection.js
|
|
18369
18369
|
var require_stringifyCollection = __commonJS((exports2) => {
|
|
18370
18370
|
var identity = require_identity();
|
|
18371
18371
|
var stringify = require_stringify();
|
|
@@ -18517,7 +18517,7 @@ ${indent}${end}`;
|
|
|
18517
18517
|
exports2.stringifyCollection = stringifyCollection;
|
|
18518
18518
|
});
|
|
18519
18519
|
|
|
18520
|
-
//
|
|
18520
|
+
// ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/YAMLMap.js
|
|
18521
18521
|
var require_YAMLMap = __commonJS((exports2) => {
|
|
18522
18522
|
var stringifyCollection = require_stringifyCollection();
|
|
18523
18523
|
var addPairToJSMap = require_addPairToJSMap();
|
|
@@ -18644,7 +18644,7 @@ var require_YAMLMap = __commonJS((exports2) => {
|
|
|
18644
18644
|
exports2.findPair = findPair;
|
|
18645
18645
|
});
|
|
18646
18646
|
|
|
18647
|
-
//
|
|
18647
|
+
// ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/common/map.js
|
|
18648
18648
|
var require_map = __commonJS((exports2) => {
|
|
18649
18649
|
var identity = require_identity();
|
|
18650
18650
|
var YAMLMap = require_YAMLMap();
|
|
@@ -18663,7 +18663,7 @@ var require_map = __commonJS((exports2) => {
|
|
|
18663
18663
|
exports2.map = map;
|
|
18664
18664
|
});
|
|
18665
18665
|
|
|
18666
|
-
//
|
|
18666
|
+
// ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/YAMLSeq.js
|
|
18667
18667
|
var require_YAMLSeq = __commonJS((exports2) => {
|
|
18668
18668
|
var createNode = require_createNode();
|
|
18669
18669
|
var stringifyCollection = require_stringifyCollection();
|
|
@@ -18756,7 +18756,7 @@ var require_YAMLSeq = __commonJS((exports2) => {
|
|
|
18756
18756
|
exports2.YAMLSeq = YAMLSeq;
|
|
18757
18757
|
});
|
|
18758
18758
|
|
|
18759
|
-
//
|
|
18759
|
+
// ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/common/seq.js
|
|
18760
18760
|
var require_seq = __commonJS((exports2) => {
|
|
18761
18761
|
var identity = require_identity();
|
|
18762
18762
|
var YAMLSeq = require_YAMLSeq();
|
|
@@ -18775,7 +18775,7 @@ var require_seq = __commonJS((exports2) => {
|
|
|
18775
18775
|
exports2.seq = seq;
|
|
18776
18776
|
});
|
|
18777
18777
|
|
|
18778
|
-
//
|
|
18778
|
+
// ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/common/string.js
|
|
18779
18779
|
var require_string = __commonJS((exports2) => {
|
|
18780
18780
|
var stringifyString = require_stringifyString();
|
|
18781
18781
|
var string = {
|
|
@@ -18791,7 +18791,7 @@ var require_string = __commonJS((exports2) => {
|
|
|
18791
18791
|
exports2.string = string;
|
|
18792
18792
|
});
|
|
18793
18793
|
|
|
18794
|
-
//
|
|
18794
|
+
// ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/common/null.js
|
|
18795
18795
|
var require_null = __commonJS((exports2) => {
|
|
18796
18796
|
var Scalar = require_Scalar();
|
|
18797
18797
|
var nullTag = {
|
|
@@ -18806,7 +18806,7 @@ var require_null = __commonJS((exports2) => {
|
|
|
18806
18806
|
exports2.nullTag = nullTag;
|
|
18807
18807
|
});
|
|
18808
18808
|
|
|
18809
|
-
//
|
|
18809
|
+
// ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/core/bool.js
|
|
18810
18810
|
var require_bool = __commonJS((exports2) => {
|
|
18811
18811
|
var Scalar = require_Scalar();
|
|
18812
18812
|
var boolTag = {
|
|
@@ -18827,7 +18827,7 @@ var require_bool = __commonJS((exports2) => {
|
|
|
18827
18827
|
exports2.boolTag = boolTag;
|
|
18828
18828
|
});
|
|
18829
18829
|
|
|
18830
|
-
//
|
|
18830
|
+
// ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyNumber.js
|
|
18831
18831
|
var require_stringifyNumber = __commonJS((exports2) => {
|
|
18832
18832
|
function stringifyNumber({ format, minFractionDigits, tag, value }) {
|
|
18833
18833
|
if (typeof value === "bigint")
|
|
@@ -18851,7 +18851,7 @@ var require_stringifyNumber = __commonJS((exports2) => {
|
|
|
18851
18851
|
exports2.stringifyNumber = stringifyNumber;
|
|
18852
18852
|
});
|
|
18853
18853
|
|
|
18854
|
-
//
|
|
18854
|
+
// ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/core/float.js
|
|
18855
18855
|
var require_float = __commonJS((exports2) => {
|
|
18856
18856
|
var Scalar = require_Scalar();
|
|
18857
18857
|
var stringifyNumber = require_stringifyNumber();
|
|
@@ -18894,7 +18894,7 @@ var require_float = __commonJS((exports2) => {
|
|
|
18894
18894
|
exports2.floatNaN = floatNaN;
|
|
18895
18895
|
});
|
|
18896
18896
|
|
|
18897
|
-
//
|
|
18897
|
+
// ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/core/int.js
|
|
18898
18898
|
var require_int = __commonJS((exports2) => {
|
|
18899
18899
|
var stringifyNumber = require_stringifyNumber();
|
|
18900
18900
|
var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
|
|
@@ -18936,7 +18936,7 @@ var require_int = __commonJS((exports2) => {
|
|
|
18936
18936
|
exports2.intOct = intOct;
|
|
18937
18937
|
});
|
|
18938
18938
|
|
|
18939
|
-
//
|
|
18939
|
+
// ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/core/schema.js
|
|
18940
18940
|
var require_schema = __commonJS((exports2) => {
|
|
18941
18941
|
var map = require_map();
|
|
18942
18942
|
var _null = require_null();
|
|
@@ -18961,7 +18961,7 @@ var require_schema = __commonJS((exports2) => {
|
|
|
18961
18961
|
exports2.schema = schema;
|
|
18962
18962
|
});
|
|
18963
18963
|
|
|
18964
|
-
//
|
|
18964
|
+
// ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/json/schema.js
|
|
18965
18965
|
var require_schema2 = __commonJS((exports2) => {
|
|
18966
18966
|
var Scalar = require_Scalar();
|
|
18967
18967
|
var map = require_map();
|
|
@@ -19025,7 +19025,7 @@ var require_schema2 = __commonJS((exports2) => {
|
|
|
19025
19025
|
exports2.schema = schema;
|
|
19026
19026
|
});
|
|
19027
19027
|
|
|
19028
|
-
//
|
|
19028
|
+
// ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/binary.js
|
|
19029
19029
|
var require_binary = __commonJS((exports2) => {
|
|
19030
19030
|
var node_buffer = __require("buffer");
|
|
19031
19031
|
var Scalar = require_Scalar();
|
|
@@ -19080,7 +19080,7 @@ var require_binary = __commonJS((exports2) => {
|
|
|
19080
19080
|
exports2.binary = binary;
|
|
19081
19081
|
});
|
|
19082
19082
|
|
|
19083
|
-
//
|
|
19083
|
+
// ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/pairs.js
|
|
19084
19084
|
var require_pairs = __commonJS((exports2) => {
|
|
19085
19085
|
var identity = require_identity();
|
|
19086
19086
|
var Pair = require_Pair();
|
|
@@ -19155,7 +19155,7 @@ ${cn.comment}` : item.comment;
|
|
|
19155
19155
|
exports2.resolvePairs = resolvePairs;
|
|
19156
19156
|
});
|
|
19157
19157
|
|
|
19158
|
-
//
|
|
19158
|
+
// ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/omap.js
|
|
19159
19159
|
var require_omap = __commonJS((exports2) => {
|
|
19160
19160
|
var identity = require_identity();
|
|
19161
19161
|
var toJS = require_toJS();
|
|
@@ -19227,7 +19227,7 @@ var require_omap = __commonJS((exports2) => {
|
|
|
19227
19227
|
exports2.omap = omap;
|
|
19228
19228
|
});
|
|
19229
19229
|
|
|
19230
|
-
//
|
|
19230
|
+
// ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/bool.js
|
|
19231
19231
|
var require_bool2 = __commonJS((exports2) => {
|
|
19232
19232
|
var Scalar = require_Scalar();
|
|
19233
19233
|
function boolStringify({ value, source }, ctx) {
|
|
@@ -19256,7 +19256,7 @@ var require_bool2 = __commonJS((exports2) => {
|
|
|
19256
19256
|
exports2.trueTag = trueTag;
|
|
19257
19257
|
});
|
|
19258
19258
|
|
|
19259
|
-
//
|
|
19259
|
+
// ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/float.js
|
|
19260
19260
|
var require_float2 = __commonJS((exports2) => {
|
|
19261
19261
|
var Scalar = require_Scalar();
|
|
19262
19262
|
var stringifyNumber = require_stringifyNumber();
|
|
@@ -19302,7 +19302,7 @@ var require_float2 = __commonJS((exports2) => {
|
|
|
19302
19302
|
exports2.floatNaN = floatNaN;
|
|
19303
19303
|
});
|
|
19304
19304
|
|
|
19305
|
-
//
|
|
19305
|
+
// ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/int.js
|
|
19306
19306
|
var require_int2 = __commonJS((exports2) => {
|
|
19307
19307
|
var stringifyNumber = require_stringifyNumber();
|
|
19308
19308
|
var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
|
|
@@ -19378,7 +19378,7 @@ var require_int2 = __commonJS((exports2) => {
|
|
|
19378
19378
|
exports2.intOct = intOct;
|
|
19379
19379
|
});
|
|
19380
19380
|
|
|
19381
|
-
//
|
|
19381
|
+
// ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/set.js
|
|
19382
19382
|
var require_set = __commonJS((exports2) => {
|
|
19383
19383
|
var identity = require_identity();
|
|
19384
19384
|
var Pair = require_Pair();
|
|
@@ -19461,7 +19461,7 @@ var require_set = __commonJS((exports2) => {
|
|
|
19461
19461
|
exports2.set = set;
|
|
19462
19462
|
});
|
|
19463
19463
|
|
|
19464
|
-
//
|
|
19464
|
+
// ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js
|
|
19465
19465
|
var require_timestamp = __commonJS((exports2) => {
|
|
19466
19466
|
var stringifyNumber = require_stringifyNumber();
|
|
19467
19467
|
function parseSexagesimal(str, asBigInt) {
|
|
@@ -19543,7 +19543,7 @@ var require_timestamp = __commonJS((exports2) => {
|
|
|
19543
19543
|
exports2.timestamp = timestamp;
|
|
19544
19544
|
});
|
|
19545
19545
|
|
|
19546
|
-
//
|
|
19546
|
+
// ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/schema.js
|
|
19547
19547
|
var require_schema3 = __commonJS((exports2) => {
|
|
19548
19548
|
var map = require_map();
|
|
19549
19549
|
var _null = require_null();
|
|
@@ -19584,7 +19584,7 @@ var require_schema3 = __commonJS((exports2) => {
|
|
|
19584
19584
|
exports2.schema = schema;
|
|
19585
19585
|
});
|
|
19586
19586
|
|
|
19587
|
-
//
|
|
19587
|
+
// ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/tags.js
|
|
19588
19588
|
var require_tags = __commonJS((exports2) => {
|
|
19589
19589
|
var map = require_map();
|
|
19590
19590
|
var _null = require_null();
|
|
@@ -19675,7 +19675,7 @@ var require_tags = __commonJS((exports2) => {
|
|
|
19675
19675
|
exports2.getTags = getTags;
|
|
19676
19676
|
});
|
|
19677
19677
|
|
|
19678
|
-
//
|
|
19678
|
+
// ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/Schema.js
|
|
19679
19679
|
var require_Schema = __commonJS((exports2) => {
|
|
19680
19680
|
var identity = require_identity();
|
|
19681
19681
|
var map = require_map();
|
|
@@ -19705,7 +19705,7 @@ var require_Schema = __commonJS((exports2) => {
|
|
|
19705
19705
|
exports2.Schema = Schema;
|
|
19706
19706
|
});
|
|
19707
19707
|
|
|
19708
|
-
//
|
|
19708
|
+
// ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyDocument.js
|
|
19709
19709
|
var require_stringifyDocument = __commonJS((exports2) => {
|
|
19710
19710
|
var identity = require_identity();
|
|
19711
19711
|
var stringify = require_stringify();
|
|
@@ -19785,7 +19785,7 @@ var require_stringifyDocument = __commonJS((exports2) => {
|
|
|
19785
19785
|
exports2.stringifyDocument = stringifyDocument;
|
|
19786
19786
|
});
|
|
19787
19787
|
|
|
19788
|
-
//
|
|
19788
|
+
// ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/doc/Document.js
|
|
19789
19789
|
var require_Document = __commonJS((exports2) => {
|
|
19790
19790
|
var Alias = require_Alias();
|
|
19791
19791
|
var Collection = require_Collection();
|
|
@@ -20020,7 +20020,7 @@ var require_Document = __commonJS((exports2) => {
|
|
|
20020
20020
|
exports2.Document = Document;
|
|
20021
20021
|
});
|
|
20022
20022
|
|
|
20023
|
-
//
|
|
20023
|
+
// ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/errors.js
|
|
20024
20024
|
var require_errors = __commonJS((exports2) => {
|
|
20025
20025
|
class YAMLError extends Error {
|
|
20026
20026
|
constructor(name, pos, code, message) {
|
|
@@ -20085,7 +20085,7 @@ ${pointer}
|
|
|
20085
20085
|
exports2.prettifyError = prettifyError;
|
|
20086
20086
|
});
|
|
20087
20087
|
|
|
20088
|
-
//
|
|
20088
|
+
// ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-props.js
|
|
20089
20089
|
var require_resolve_props = __commonJS((exports2) => {
|
|
20090
20090
|
function resolveProps(tokens, { flow, indicator, next, offset, onError, parentIndent, startOnNewline }) {
|
|
20091
20091
|
let spaceBefore = false;
|
|
@@ -20215,7 +20215,7 @@ var require_resolve_props = __commonJS((exports2) => {
|
|
|
20215
20215
|
exports2.resolveProps = resolveProps;
|
|
20216
20216
|
});
|
|
20217
20217
|
|
|
20218
|
-
//
|
|
20218
|
+
// ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/util-contains-newline.js
|
|
20219
20219
|
var require_util_contains_newline = __commonJS((exports2) => {
|
|
20220
20220
|
function containsNewline(key) {
|
|
20221
20221
|
if (!key)
|
|
@@ -20255,7 +20255,7 @@ var require_util_contains_newline = __commonJS((exports2) => {
|
|
|
20255
20255
|
exports2.containsNewline = containsNewline;
|
|
20256
20256
|
});
|
|
20257
20257
|
|
|
20258
|
-
//
|
|
20258
|
+
// ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/util-flow-indent-check.js
|
|
20259
20259
|
var require_util_flow_indent_check = __commonJS((exports2) => {
|
|
20260
20260
|
var utilContainsNewline = require_util_contains_newline();
|
|
20261
20261
|
function flowIndentCheck(indent, fc, onError) {
|
|
@@ -20270,7 +20270,7 @@ var require_util_flow_indent_check = __commonJS((exports2) => {
|
|
|
20270
20270
|
exports2.flowIndentCheck = flowIndentCheck;
|
|
20271
20271
|
});
|
|
20272
20272
|
|
|
20273
|
-
//
|
|
20273
|
+
// ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/util-map-includes.js
|
|
20274
20274
|
var require_util_map_includes = __commonJS((exports2) => {
|
|
20275
20275
|
var identity = require_identity();
|
|
20276
20276
|
function mapIncludes(ctx, items, search) {
|
|
@@ -20283,7 +20283,7 @@ var require_util_map_includes = __commonJS((exports2) => {
|
|
|
20283
20283
|
exports2.mapIncludes = mapIncludes;
|
|
20284
20284
|
});
|
|
20285
20285
|
|
|
20286
|
-
//
|
|
20286
|
+
// ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-block-map.js
|
|
20287
20287
|
var require_resolve_block_map = __commonJS((exports2) => {
|
|
20288
20288
|
var Pair = require_Pair();
|
|
20289
20289
|
var YAMLMap = require_YAMLMap();
|
|
@@ -20390,7 +20390,7 @@ var require_resolve_block_map = __commonJS((exports2) => {
|
|
|
20390
20390
|
exports2.resolveBlockMap = resolveBlockMap;
|
|
20391
20391
|
});
|
|
20392
20392
|
|
|
20393
|
-
//
|
|
20393
|
+
// ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-block-seq.js
|
|
20394
20394
|
var require_resolve_block_seq = __commonJS((exports2) => {
|
|
20395
20395
|
var YAMLSeq = require_YAMLSeq();
|
|
20396
20396
|
var resolveProps = require_resolve_props();
|
|
@@ -20438,7 +20438,7 @@ var require_resolve_block_seq = __commonJS((exports2) => {
|
|
|
20438
20438
|
exports2.resolveBlockSeq = resolveBlockSeq;
|
|
20439
20439
|
});
|
|
20440
20440
|
|
|
20441
|
-
//
|
|
20441
|
+
// ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-end.js
|
|
20442
20442
|
var require_resolve_end = __commonJS((exports2) => {
|
|
20443
20443
|
function resolveEnd(end, offset, reqSpace, onError) {
|
|
20444
20444
|
let comment = "";
|
|
@@ -20478,7 +20478,7 @@ var require_resolve_end = __commonJS((exports2) => {
|
|
|
20478
20478
|
exports2.resolveEnd = resolveEnd;
|
|
20479
20479
|
});
|
|
20480
20480
|
|
|
20481
|
-
//
|
|
20481
|
+
// ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-flow-collection.js
|
|
20482
20482
|
var require_resolve_flow_collection = __commonJS((exports2) => {
|
|
20483
20483
|
var identity = require_identity();
|
|
20484
20484
|
var Pair = require_Pair();
|
|
@@ -20669,7 +20669,7 @@ var require_resolve_flow_collection = __commonJS((exports2) => {
|
|
|
20669
20669
|
exports2.resolveFlowCollection = resolveFlowCollection;
|
|
20670
20670
|
});
|
|
20671
20671
|
|
|
20672
|
-
//
|
|
20672
|
+
// ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/compose-collection.js
|
|
20673
20673
|
var require_compose_collection = __commonJS((exports2) => {
|
|
20674
20674
|
var identity = require_identity();
|
|
20675
20675
|
var Scalar = require_Scalar();
|
|
@@ -20731,7 +20731,7 @@ var require_compose_collection = __commonJS((exports2) => {
|
|
|
20731
20731
|
exports2.composeCollection = composeCollection;
|
|
20732
20732
|
});
|
|
20733
20733
|
|
|
20734
|
-
//
|
|
20734
|
+
// ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-block-scalar.js
|
|
20735
20735
|
var require_resolve_block_scalar = __commonJS((exports2) => {
|
|
20736
20736
|
var Scalar = require_Scalar();
|
|
20737
20737
|
function resolveBlockScalar(ctx, scalar, onError) {
|
|
@@ -20924,7 +20924,7 @@ var require_resolve_block_scalar = __commonJS((exports2) => {
|
|
|
20924
20924
|
exports2.resolveBlockScalar = resolveBlockScalar;
|
|
20925
20925
|
});
|
|
20926
20926
|
|
|
20927
|
-
//
|
|
20927
|
+
// ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-flow-scalar.js
|
|
20928
20928
|
var require_resolve_flow_scalar = __commonJS((exports2) => {
|
|
20929
20929
|
var Scalar = require_Scalar();
|
|
20930
20930
|
var resolveEnd = require_resolve_end();
|
|
@@ -21140,7 +21140,7 @@ var require_resolve_flow_scalar = __commonJS((exports2) => {
|
|
|
21140
21140
|
exports2.resolveFlowScalar = resolveFlowScalar;
|
|
21141
21141
|
});
|
|
21142
21142
|
|
|
21143
|
-
//
|
|
21143
|
+
// ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/compose-scalar.js
|
|
21144
21144
|
var require_compose_scalar = __commonJS((exports2) => {
|
|
21145
21145
|
var identity = require_identity();
|
|
21146
21146
|
var Scalar = require_Scalar();
|
|
@@ -21218,7 +21218,7 @@ var require_compose_scalar = __commonJS((exports2) => {
|
|
|
21218
21218
|
exports2.composeScalar = composeScalar;
|
|
21219
21219
|
});
|
|
21220
21220
|
|
|
21221
|
-
//
|
|
21221
|
+
// ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/util-empty-scalar-position.js
|
|
21222
21222
|
var require_util_empty_scalar_position = __commonJS((exports2) => {
|
|
21223
21223
|
function emptyScalarPosition(offset, before, pos) {
|
|
21224
21224
|
if (before) {
|
|
@@ -21245,7 +21245,7 @@ var require_util_empty_scalar_position = __commonJS((exports2) => {
|
|
|
21245
21245
|
exports2.emptyScalarPosition = emptyScalarPosition;
|
|
21246
21246
|
});
|
|
21247
21247
|
|
|
21248
|
-
//
|
|
21248
|
+
// ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/compose-node.js
|
|
21249
21249
|
var require_compose_node = __commonJS((exports2) => {
|
|
21250
21250
|
var Alias = require_Alias();
|
|
21251
21251
|
var identity = require_identity();
|
|
@@ -21348,7 +21348,7 @@ var require_compose_node = __commonJS((exports2) => {
|
|
|
21348
21348
|
exports2.composeNode = composeNode;
|
|
21349
21349
|
});
|
|
21350
21350
|
|
|
21351
|
-
//
|
|
21351
|
+
// ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/compose-doc.js
|
|
21352
21352
|
var require_compose_doc = __commonJS((exports2) => {
|
|
21353
21353
|
var Document = require_Document();
|
|
21354
21354
|
var composeNode = require_compose_node();
|
|
@@ -21388,7 +21388,7 @@ var require_compose_doc = __commonJS((exports2) => {
|
|
|
21388
21388
|
exports2.composeDoc = composeDoc;
|
|
21389
21389
|
});
|
|
21390
21390
|
|
|
21391
|
-
//
|
|
21391
|
+
// ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/composer.js
|
|
21392
21392
|
var require_composer2 = __commonJS((exports2) => {
|
|
21393
21393
|
var node_process = __require("process");
|
|
21394
21394
|
var directives = require_directives();
|
|
@@ -21577,7 +21577,7 @@ ${end.comment}` : end.comment;
|
|
|
21577
21577
|
exports2.Composer = Composer;
|
|
21578
21578
|
});
|
|
21579
21579
|
|
|
21580
|
-
//
|
|
21580
|
+
// ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/parse/cst-scalar.js
|
|
21581
21581
|
var require_cst_scalar = __commonJS((exports2) => {
|
|
21582
21582
|
var resolveBlockScalar = require_resolve_block_scalar();
|
|
21583
21583
|
var resolveFlowScalar = require_resolve_flow_scalar();
|
|
@@ -21767,7 +21767,7 @@ var require_cst_scalar = __commonJS((exports2) => {
|
|
|
21767
21767
|
exports2.setScalarValue = setScalarValue;
|
|
21768
21768
|
});
|
|
21769
21769
|
|
|
21770
|
-
//
|
|
21770
|
+
// ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/parse/cst-stringify.js
|
|
21771
21771
|
var require_cst_stringify = __commonJS((exports2) => {
|
|
21772
21772
|
var stringify = (cst) => ("type" in cst) ? stringifyToken(cst) : stringifyItem(cst);
|
|
21773
21773
|
function stringifyToken(token) {
|
|
@@ -21825,7 +21825,7 @@ var require_cst_stringify = __commonJS((exports2) => {
|
|
|
21825
21825
|
exports2.stringify = stringify;
|
|
21826
21826
|
});
|
|
21827
21827
|
|
|
21828
|
-
//
|
|
21828
|
+
// ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/parse/cst-visit.js
|
|
21829
21829
|
var require_cst_visit = __commonJS((exports2) => {
|
|
21830
21830
|
var BREAK = Symbol("break visit");
|
|
21831
21831
|
var SKIP = Symbol("skip children");
|
|
@@ -21884,7 +21884,7 @@ var require_cst_visit = __commonJS((exports2) => {
|
|
|
21884
21884
|
exports2.visit = visit;
|
|
21885
21885
|
});
|
|
21886
21886
|
|
|
21887
|
-
//
|
|
21887
|
+
// ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/parse/cst.js
|
|
21888
21888
|
var require_cst = __commonJS((exports2) => {
|
|
21889
21889
|
var cstScalar = require_cst_scalar();
|
|
21890
21890
|
var cstStringify = require_cst_stringify();
|
|
@@ -21985,7 +21985,7 @@ var require_cst = __commonJS((exports2) => {
|
|
|
21985
21985
|
exports2.tokenType = tokenType;
|
|
21986
21986
|
});
|
|
21987
21987
|
|
|
21988
|
-
//
|
|
21988
|
+
// ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/parse/lexer.js
|
|
21989
21989
|
var require_lexer = __commonJS((exports2) => {
|
|
21990
21990
|
var cst = require_cst();
|
|
21991
21991
|
function isEmpty2(ch) {
|
|
@@ -22571,7 +22571,7 @@ var require_lexer = __commonJS((exports2) => {
|
|
|
22571
22571
|
exports2.Lexer = Lexer;
|
|
22572
22572
|
});
|
|
22573
22573
|
|
|
22574
|
-
//
|
|
22574
|
+
// ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/parse/line-counter.js
|
|
22575
22575
|
var require_line_counter = __commonJS((exports2) => {
|
|
22576
22576
|
class LineCounter {
|
|
22577
22577
|
constructor() {
|
|
@@ -22599,7 +22599,7 @@ var require_line_counter = __commonJS((exports2) => {
|
|
|
22599
22599
|
exports2.LineCounter = LineCounter;
|
|
22600
22600
|
});
|
|
22601
22601
|
|
|
22602
|
-
//
|
|
22602
|
+
// ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/parse/parser.js
|
|
22603
22603
|
var require_parser = __commonJS((exports2) => {
|
|
22604
22604
|
var node_process = __require("process");
|
|
22605
22605
|
var cst = require_cst();
|
|
@@ -23448,7 +23448,7 @@ var require_parser = __commonJS((exports2) => {
|
|
|
23448
23448
|
exports2.Parser = Parser;
|
|
23449
23449
|
});
|
|
23450
23450
|
|
|
23451
|
-
//
|
|
23451
|
+
// ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/public-api.js
|
|
23452
23452
|
var require_public_api = __commonJS((exports2) => {
|
|
23453
23453
|
var composer = require_composer2();
|
|
23454
23454
|
var Document = require_Document();
|
|
@@ -23542,7 +23542,7 @@ var require_public_api = __commonJS((exports2) => {
|
|
|
23542
23542
|
exports2.stringify = stringify;
|
|
23543
23543
|
});
|
|
23544
23544
|
|
|
23545
|
-
//
|
|
23545
|
+
// ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/index.js
|
|
23546
23546
|
var composer, Document, Schema, errors2, Alias, identity, Pair, Scalar, YAMLMap, YAMLSeq, cst, lexer, lineCounter, parser, publicApi, visit, $Composer, $Document, $Schema, $YAMLError, $YAMLParseError, $YAMLWarning, $Alias, $isAlias, $isCollection, $isDocument, $isMap, $isNode, $isPair, $isScalar, $isSeq, $Pair, $Scalar, $YAMLMap, $YAMLSeq, $Lexer, $LineCounter, $Parser, $parse, $parseAllDocuments, $parseDocument, $stringify, $visit, $visitAsync;
|
|
23547
23547
|
var init_dist = __esm(() => {
|
|
23548
23548
|
composer = require_composer2();
|
|
@@ -23681,6 +23681,7 @@ var init_schema = __esm(() => {
|
|
|
23681
23681
|
format: exports_external.enum(["html", "markdownv2", "text"]).optional().describe("Default reply format passed to the plugin"),
|
|
23682
23682
|
rate_limit_ms: exports_external.number().optional().describe("Minimum delay between outgoing messages in ms"),
|
|
23683
23683
|
stream_mode: exports_external.enum(["pty", "checklist"]).optional().describe("How live progress is streamed to Telegram during a turn. " + "'pty' (default) surfaces text snapshots of Claude Code's TUI \u2014 " + "compatible but can flicker as Ink re-renders. 'checklist' drives " + "a structured progress card from session-tail events \u2014 stable " + "order, per-tool status emojis, fires only on semantic transitions."),
|
|
23684
|
+
stream_throttle_ms: exports_external.number().int().nonnegative().optional().describe("Throttle window in ms between successive stream edits (or " + "sendMessageDraft tics) during a turn. Lower = more responsive " + "stream, higher = fewer API calls. Floored at 250 by draft-stream " + "itself. Default 300 for draft transport (DMs) and 1000 for " + "message transport (groups/forums). Override per-agent if a " + "particular agent needs snappier or quieter streaming."),
|
|
23684
23685
|
hotReloadStable: exports_external.boolean().optional().describe("If true, the stable workspace prefix (AGENTS.md, SOUL.md, USER.md, " + "IDENTITY.md, TOOLS.md, HEARTBEAT.md) is re-injected on every turn via " + "the UserPromptSubmit hook instead of baked into --append-system-prompt " + "at session start. Lets workspace edits propagate without a restart. " + "Costs ~5-10% per-turn latency/spend since the stable prefix is no " + "longer prompt-cached."),
|
|
23685
23686
|
orphan_promotion_ms: exports_external.number().int().nonnegative().optional().describe("How long (ms) a parent turn waits for a sub-agent JSONL watcher " + "to deliver sub_agent_started before the heartbeat promotes the spawn " + "to a synthesised 'running' row. Default 5000. Set to 0 to disable " + "orphan promotion entirely."),
|
|
23686
23687
|
cold_sub_agent_threshold_ms: exports_external.number().int().nonnegative().optional().describe("JSONL-cold threshold (ms). When a running sub-agent emits no events " + "for this long, the heartbeat synthesises a turn_end for it so the " + "deferred-completion path can proceed. Default 30000. Set to 0 to " + "disable the synthetic close."),
|
|
@@ -25286,7 +25287,7 @@ function deriveSlug(inputs, existing) {
|
|
|
25286
25287
|
return `${base}_${n}`;
|
|
25287
25288
|
}
|
|
25288
25289
|
|
|
25289
|
-
//
|
|
25290
|
+
// ../node_modules/.bun/boundary@2.0.0/node_modules/boundary/lib/index.js
|
|
25290
25291
|
var require_lib = __commonJS((exports2) => {
|
|
25291
25292
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
25292
25293
|
exports2.binarySearch = exports2.upperBound = exports2.lowerBound = exports2.compare = undefined;
|
|
@@ -25333,7 +25334,7 @@ var require_lib = __commonJS((exports2) => {
|
|
|
25333
25334
|
exports2.binarySearch = binarySearch;
|
|
25334
25335
|
});
|
|
25335
25336
|
|
|
25336
|
-
//
|
|
25337
|
+
// ../node_modules/.bun/structured-source@4.0.0/node_modules/structured-source/lib/structured-source.js
|
|
25337
25338
|
var require_structured_source = __commonJS((exports2) => {
|
|
25338
25339
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
25339
25340
|
exports2.StructuredSource = undefined;
|
|
@@ -25388,13 +25389,13 @@ var require_structured_source = __commonJS((exports2) => {
|
|
|
25388
25389
|
}
|
|
25389
25390
|
exports2.StructuredSource = StructuredSource;
|
|
25390
25391
|
});
|
|
25391
|
-
//
|
|
25392
|
+
// ../node_modules/.bun/@secretlint+core@12.2.0/node_modules/@secretlint/core/module/SecretLintSourceCodeImpl.js
|
|
25392
25393
|
var import_structured_source;
|
|
25393
25394
|
var init_SecretLintSourceCodeImpl = __esm(() => {
|
|
25394
25395
|
import_structured_source = __toESM(require_structured_source(), 1);
|
|
25395
25396
|
});
|
|
25396
25397
|
|
|
25397
|
-
//
|
|
25398
|
+
// ../node_modules/.bun/@secretlint+core@12.2.0/node_modules/@secretlint/core/module/helper/promise-event-emitter.js
|
|
25398
25399
|
class EventEmitter {
|
|
25399
25400
|
#listeners = new Map;
|
|
25400
25401
|
on(type, listener) {
|
|
@@ -25433,9 +25434,9 @@ class EventEmitter {
|
|
|
25433
25434
|
return Array.from(this.#listeners.get(type) ?? []);
|
|
25434
25435
|
}
|
|
25435
25436
|
}
|
|
25436
|
-
//
|
|
25437
|
+
// ../node_modules/.bun/@secretlint+core@12.2.0/node_modules/@secretlint/core/module/RuleContext.js
|
|
25437
25438
|
var init_RuleContext = () => {};
|
|
25438
|
-
//
|
|
25439
|
+
// ../node_modules/.bun/@secretlint+profiler@12.2.0/node_modules/@secretlint/profiler/module/index.js
|
|
25439
25440
|
class SecretLintProfiler {
|
|
25440
25441
|
perf;
|
|
25441
25442
|
entries = [];
|
|
@@ -25492,7 +25493,7 @@ class SecretLintProfiler {
|
|
|
25492
25493
|
}
|
|
25493
25494
|
}
|
|
25494
25495
|
|
|
25495
|
-
//
|
|
25496
|
+
// ../node_modules/.bun/@secretlint+profiler@12.2.0/node_modules/@secretlint/profiler/module/node.js
|
|
25496
25497
|
import perf_hooks from "node:perf_hooks";
|
|
25497
25498
|
|
|
25498
25499
|
class NullPerformanceObserver {
|
|
@@ -25507,19 +25508,19 @@ var init_node = __esm(() => {
|
|
|
25507
25508
|
});
|
|
25508
25509
|
});
|
|
25509
25510
|
|
|
25510
|
-
//
|
|
25511
|
+
// ../node_modules/.bun/@secretlint+core@12.2.0/node_modules/@secretlint/core/module/RunningEvents.js
|
|
25511
25512
|
var init_RunningEvents = __esm(() => {
|
|
25512
25513
|
init_node();
|
|
25513
25514
|
});
|
|
25514
25515
|
|
|
25515
|
-
//
|
|
25516
|
+
// ../node_modules/.bun/@secretlint+core@12.2.0/node_modules/@secretlint/core/module/RulePresetContext.js
|
|
25516
25517
|
var init_RulePresetContext = __esm(() => {
|
|
25517
25518
|
init_RuleContext();
|
|
25518
25519
|
});
|
|
25519
|
-
//
|
|
25520
|
+
// ../node_modules/.bun/@secretlint+core@12.2.0/node_modules/@secretlint/core/module/messages/index.js
|
|
25520
25521
|
var init_messages = () => {};
|
|
25521
25522
|
|
|
25522
|
-
//
|
|
25523
|
+
// ../node_modules/.bun/@secretlint+core@12.2.0/node_modules/@secretlint/core/module/index.js
|
|
25523
25524
|
var import_debug, debug;
|
|
25524
25525
|
var init_module = __esm(() => {
|
|
25525
25526
|
init_SecretLintSourceCodeImpl();
|
|
@@ -25532,7 +25533,7 @@ var init_module = __esm(() => {
|
|
|
25532
25533
|
debug = import_debug.default("@secretlint/core");
|
|
25533
25534
|
});
|
|
25534
25535
|
|
|
25535
|
-
//
|
|
25536
|
+
// ../node_modules/.bun/@secretlint+secretlint-rule-preset-recommend@12.2.0/node_modules/@secretlint/secretlint-rule-preset-recommend/module/index.js
|
|
25536
25537
|
function requireLodash_uniq() {
|
|
25537
25538
|
if (hasRequiredLodash_uniq)
|
|
25538
25539
|
return lodash_uniq;
|
|
@@ -31046,6 +31047,28 @@ function shouldFallbackFromDraftTransport(err) {
|
|
|
31046
31047
|
return false;
|
|
31047
31048
|
return DRAFT_METHOD_UNAVAILABLE_RE.test(text) || DRAFT_CHAT_UNSUPPORTED_RE.test(text);
|
|
31048
31049
|
}
|
|
31050
|
+
function extractDraft429RetryAfterSecs(err) {
|
|
31051
|
+
if (err == null || typeof err !== "object")
|
|
31052
|
+
return null;
|
|
31053
|
+
const e = err;
|
|
31054
|
+
if (e.error_code !== 429)
|
|
31055
|
+
return null;
|
|
31056
|
+
const ra = e.parameters?.retry_after;
|
|
31057
|
+
if (typeof ra === "number" && Number.isFinite(ra) && ra > 0)
|
|
31058
|
+
return ra;
|
|
31059
|
+
return null;
|
|
31060
|
+
}
|
|
31061
|
+
function isDraft429(err) {
|
|
31062
|
+
if (extractDraft429RetryAfterSecs(err) == null)
|
|
31063
|
+
return false;
|
|
31064
|
+
if (typeof err === "object" && err != null && "method" in err) {
|
|
31065
|
+
const m = err.method;
|
|
31066
|
+
if (typeof m === "string" && /sendMessageDraft/i.test(m))
|
|
31067
|
+
return true;
|
|
31068
|
+
}
|
|
31069
|
+
const text = typeof err === "string" ? err : err instanceof Error ? err.message : typeof err === "object" && err != null && ("description" in err) ? typeof err.description === "string" ? err.description : "" : "";
|
|
31070
|
+
return /sendMessageDraft/i.test(text);
|
|
31071
|
+
}
|
|
31049
31072
|
var DRAFT_STREAM_STATE_KEY = Symbol.for("switchroom.draftStreamState");
|
|
31050
31073
|
function getDraftStreamState() {
|
|
31051
31074
|
const g = globalThis;
|
|
@@ -31064,10 +31087,17 @@ function allocateDraftId() {
|
|
|
31064
31087
|
|
|
31065
31088
|
// draft-stream.ts
|
|
31066
31089
|
var TELEGRAM_MAX_CHARS = 4096;
|
|
31067
|
-
var
|
|
31090
|
+
var DEFAULT_DRAFT_THROTTLE_MS = 300;
|
|
31091
|
+
var DEFAULT_MESSAGE_THROTTLE_MS = 1000;
|
|
31068
31092
|
var MIN_THROTTLE_MS = 250;
|
|
31093
|
+
var PERSIST_INTERVAL_MS = 25000;
|
|
31094
|
+
var PERSIST_SAFETY_CHAR_LIMIT = 4000;
|
|
31069
31095
|
function createDraftStream(send, edit, config = {}) {
|
|
31070
|
-
const
|
|
31096
|
+
const _willPreferDraft = (config.previewTransport ?? "auto") === "draft" || (config.previewTransport ?? "auto") === "auto" && config.isPrivateChat === true;
|
|
31097
|
+
const _defaultForTransport = _willPreferDraft && config.sendMessageDraft != null ? DEFAULT_DRAFT_THROTTLE_MS : DEFAULT_MESSAGE_THROTTLE_MS;
|
|
31098
|
+
const throttleMs = Math.max(MIN_THROTTLE_MS, config.throttleMs ?? _defaultForTransport);
|
|
31099
|
+
const persistIntervalMs = config.persistIntervalMs ?? PERSIST_INTERVAL_MS;
|
|
31100
|
+
const persistSizeLimit = config.persistSizeLimit ?? PERSIST_SAFETY_CHAR_LIMIT;
|
|
31071
31101
|
const maxChars = config.maxChars ?? TELEGRAM_MAX_CHARS;
|
|
31072
31102
|
const idleMs = Math.max(0, config.idleMs ?? 0);
|
|
31073
31103
|
const log = config.log;
|
|
@@ -31084,11 +31114,26 @@ function createDraftStream(send, edit, config = {}) {
|
|
|
31084
31114
|
if (prefersDraft && !usesDraftTransport) {
|
|
31085
31115
|
warn?.("draft-stream: sendMessageDraft unavailable; falling back to sendMessage/editMessageText");
|
|
31086
31116
|
}
|
|
31117
|
+
if (process.env.SWITCHROOM_STREAM_TRACES !== "0") {
|
|
31118
|
+
const reason = usesDraftTransport ? "draft" : requestedTransport === "message" ? "explicit-message" : requestedTransport === "draft" && draftApi == null ? "draft-requested-but-no-api" : !prefersDraft ? "auto-non-dm" : "fallback";
|
|
31119
|
+
const draftIdPart = draftId != null ? ` draftId=${draftId}` : "";
|
|
31120
|
+
process.stderr.write(`gw-trace stream-start transport=${usesDraftTransport ? "draft" : "message"} ` + `reason=${reason} req=${requestedTransport} ` + `dm=${config.isPrivateChat === undefined ? "undef" : String(config.isPrivateChat)} ` + `api=${draftApi != null ? "available" : "absent"} ` + `throttleMs=${throttleMs}${draftIdPart} ` + `chatId=${chatId || "-"}
|
|
31121
|
+
`);
|
|
31122
|
+
}
|
|
31087
31123
|
let messageId = config.initialMessageId ?? null;
|
|
31088
31124
|
let pendingText = null;
|
|
31089
31125
|
let lastSentText = null;
|
|
31090
31126
|
let lastSentAt = 0;
|
|
31091
31127
|
let inFlight = null;
|
|
31128
|
+
const streamStartedAt = Date.now();
|
|
31129
|
+
let firstFireAtMs = null;
|
|
31130
|
+
let draftFires = 0;
|
|
31131
|
+
let editFires = 0;
|
|
31132
|
+
let sendFires = 0;
|
|
31133
|
+
let fallbackFires = 0;
|
|
31134
|
+
let persistedTextLen = 0;
|
|
31135
|
+
let currentChunkStartedAt = null;
|
|
31136
|
+
let persistChainFires = 0;
|
|
31092
31137
|
let scheduledTimer = null;
|
|
31093
31138
|
let final = false;
|
|
31094
31139
|
let stopped = false;
|
|
@@ -31104,14 +31149,42 @@ function createDraftStream(send, edit, config = {}) {
|
|
|
31104
31149
|
async function sendViaDraft(textToSend) {
|
|
31105
31150
|
if (!draftApi || draftId == null)
|
|
31106
31151
|
return false;
|
|
31152
|
+
const draftText = textToSend.slice(persistedTextLen);
|
|
31153
|
+
if (draftText.length === 0) {
|
|
31154
|
+
return true;
|
|
31155
|
+
}
|
|
31107
31156
|
try {
|
|
31108
|
-
await draftApi(chatId, draftId,
|
|
31109
|
-
|
|
31157
|
+
const result = await draftApi(chatId, draftId, draftText);
|
|
31158
|
+
if (result !== true && result !== undefined) {
|
|
31159
|
+
if (result === false || result === null) {
|
|
31160
|
+
warn?.(`draft-stream: sendMessageDraft returned non-true (${JSON.stringify(result)}) \u2014 falling back to message transport`);
|
|
31161
|
+
fallbackFires++;
|
|
31162
|
+
usesDraftTransport = false;
|
|
31163
|
+
draftId = undefined;
|
|
31164
|
+
return false;
|
|
31165
|
+
}
|
|
31166
|
+
}
|
|
31167
|
+
if (firstFireAtMs == null)
|
|
31168
|
+
firstFireAtMs = Date.now() - streamStartedAt;
|
|
31169
|
+
if (currentChunkStartedAt == null)
|
|
31170
|
+
currentChunkStartedAt = Date.now();
|
|
31171
|
+
draftFires++;
|
|
31172
|
+
log?.(`stream \u2192 draft (id: ${draftId}, ${draftText.length} chars tail)`);
|
|
31110
31173
|
return true;
|
|
31111
31174
|
} catch (err) {
|
|
31175
|
+
const retryAfterSecs = extractDraft429RetryAfterSecs(err);
|
|
31176
|
+
if (retryAfterSecs != null && isDraft429(err)) {
|
|
31177
|
+
warn?.(`draft-stream: sendMessageDraft 429 (retry_after=${retryAfterSecs}s) \u2014 falling back to message transport + backoff`);
|
|
31178
|
+
fallbackFires++;
|
|
31179
|
+
usesDraftTransport = false;
|
|
31180
|
+
draftId = undefined;
|
|
31181
|
+
lastSentAt = Date.now() + retryAfterSecs * 1000 - throttleMs;
|
|
31182
|
+
return false;
|
|
31183
|
+
}
|
|
31112
31184
|
if (shouldFallbackFromDraftTransport(err)) {
|
|
31113
31185
|
const msg = err instanceof Error ? err.message : String(err);
|
|
31114
31186
|
warn?.(`draft-stream: sendMessageDraft rejected \u2014 falling back to sendMessage/editMessageText (${msg})`);
|
|
31187
|
+
fallbackFires++;
|
|
31115
31188
|
usesDraftTransport = false;
|
|
31116
31189
|
draftId = undefined;
|
|
31117
31190
|
return false;
|
|
@@ -31134,8 +31207,34 @@ function createDraftStream(send, edit, config = {}) {
|
|
|
31134
31207
|
notifyWaiters();
|
|
31135
31208
|
return;
|
|
31136
31209
|
}
|
|
31137
|
-
if (
|
|
31138
|
-
|
|
31210
|
+
if (usesDraftTransport && currentChunkStartedAt != null) {
|
|
31211
|
+
const elapsed = Date.now() - currentChunkStartedAt;
|
|
31212
|
+
const tailLen = textToSend.length - persistedTextLen;
|
|
31213
|
+
const sizeApproaching = tailLen >= persistSizeLimit;
|
|
31214
|
+
const timeElapsed = elapsed >= persistIntervalMs;
|
|
31215
|
+
if ((timeElapsed || sizeApproaching) && tailLen > 0) {
|
|
31216
|
+
const chunk = textToSend.slice(persistedTextLen);
|
|
31217
|
+
try {
|
|
31218
|
+
const newMsgId = await send(chunk);
|
|
31219
|
+
messageId = newMsgId;
|
|
31220
|
+
persistedTextLen = textToSend.length;
|
|
31221
|
+
draftId = allocateDraftId();
|
|
31222
|
+
currentChunkStartedAt = null;
|
|
31223
|
+
persistChainFires++;
|
|
31224
|
+
sendFires++;
|
|
31225
|
+
if (process.env.SWITCHROOM_STREAM_TRACES !== "0") {
|
|
31226
|
+
process.stderr.write(`gw-trace stream-persist chunk_chars=${chunk.length} ` + `elapsed=${elapsed} reason=${timeElapsed ? "time" : "size"} ` + `newMsgId=${newMsgId} newDraftId=${draftId} ` + `chatId=${chatId || "-"}
|
|
31227
|
+
`);
|
|
31228
|
+
}
|
|
31229
|
+
log?.(`stream \u2192 persisted chunk (id: ${newMsgId}, ${chunk.length} chars, reason=${timeElapsed ? "time" : "size"})`);
|
|
31230
|
+
} catch (err) {
|
|
31231
|
+
warn?.(`draft-stream: persist sendMessage failed \u2014 chunk stays in draft (${err instanceof Error ? err.message : String(err)})`);
|
|
31232
|
+
}
|
|
31233
|
+
}
|
|
31234
|
+
}
|
|
31235
|
+
const sendableLen = usesDraftTransport ? textToSend.length - persistedTextLen : textToSend.length;
|
|
31236
|
+
if (sendableLen > maxChars) {
|
|
31237
|
+
log?.(`stream stopped: ${usesDraftTransport ? "tail" : "text"} exceeds ${maxChars} chars`);
|
|
31139
31238
|
stopped = true;
|
|
31140
31239
|
notifyWaiters();
|
|
31141
31240
|
return;
|
|
@@ -31172,9 +31271,15 @@ function createDraftStream(send, edit, config = {}) {
|
|
|
31172
31271
|
async function sendViaMessage(textToSend) {
|
|
31173
31272
|
if (messageId == null) {
|
|
31174
31273
|
messageId = await send(textToSend);
|
|
31274
|
+
if (firstFireAtMs == null)
|
|
31275
|
+
firstFireAtMs = Date.now() - streamStartedAt;
|
|
31276
|
+
sendFires++;
|
|
31175
31277
|
log?.(`stream \u2192 sent (id: ${messageId}, ${textToSend.length} chars)`);
|
|
31176
31278
|
} else {
|
|
31177
31279
|
await edit(messageId, textToSend);
|
|
31280
|
+
if (firstFireAtMs == null)
|
|
31281
|
+
firstFireAtMs = Date.now() - streamStartedAt;
|
|
31282
|
+
editFires++;
|
|
31178
31283
|
log?.(`stream \u2192 edited (id: ${messageId}, ${textToSend.length} chars)`);
|
|
31179
31284
|
}
|
|
31180
31285
|
}
|
|
@@ -31257,11 +31362,14 @@ function createDraftStream(send, edit, config = {}) {
|
|
|
31257
31362
|
await flush();
|
|
31258
31363
|
}
|
|
31259
31364
|
if (usesDraftTransport && draftApi != null) {
|
|
31260
|
-
const
|
|
31261
|
-
|
|
31365
|
+
const fullText = lastSentText ?? "";
|
|
31366
|
+
const textToMaterialize = fullText.slice(persistedTextLen);
|
|
31367
|
+
if (textToMaterialize.length > 0) {
|
|
31262
31368
|
try {
|
|
31263
31369
|
messageId = await send(textToMaterialize);
|
|
31264
|
-
|
|
31370
|
+
persistedTextLen = fullText.length;
|
|
31371
|
+
sendFires++;
|
|
31372
|
+
log?.(`stream \u2192 materialized tail (id: ${messageId}, ${textToMaterialize.length} chars)`);
|
|
31265
31373
|
} catch (err) {
|
|
31266
31374
|
warn?.(`draft-stream: materialize sendMessage failed: ${err instanceof Error ? err.message : String(err)}`);
|
|
31267
31375
|
}
|
|
@@ -31270,9 +31378,18 @@ function createDraftStream(send, edit, config = {}) {
|
|
|
31270
31378
|
await draftApi(chatId, draftId, "");
|
|
31271
31379
|
} catch {}
|
|
31272
31380
|
}
|
|
31381
|
+
} else if (draftId != null) {
|
|
31382
|
+
try {
|
|
31383
|
+
await draftApi(chatId, draftId, "");
|
|
31384
|
+
} catch {}
|
|
31273
31385
|
}
|
|
31274
31386
|
}
|
|
31275
31387
|
log?.(`stream finalized (id: ${messageId})`);
|
|
31388
|
+
if (process.env.SWITCHROOM_STREAM_TRACES !== "0") {
|
|
31389
|
+
const durationMs = Date.now() - streamStartedAt;
|
|
31390
|
+
process.stderr.write(`gw-trace stream-end transport=${usesDraftTransport ? "draft" : "message"} ` + `drafts=${draftFires} sends=${sendFires} edits=${editFires} ` + `fallbacks=${fallbackFires} persists=${persistChainFires} ` + `firstFireMs=${firstFireAtMs ?? -1} durationMs=${durationMs} ` + `chars=${(lastSentText ?? "").length} ` + `chatId=${chatId || "-"}
|
|
31391
|
+
`);
|
|
31392
|
+
}
|
|
31276
31393
|
},
|
|
31277
31394
|
getMessageId() {
|
|
31278
31395
|
return messageId;
|
|
@@ -31700,7 +31817,7 @@ async function handleStreamReply(args, state, deps) {
|
|
|
31700
31817
|
threadId,
|
|
31701
31818
|
parseMode,
|
|
31702
31819
|
disableLinkPreview: deps.disableLinkPreview,
|
|
31703
|
-
throttleMs: deps.throttleMs
|
|
31820
|
+
...deps.throttleMs != null ? { throttleMs: deps.throttleMs } : {},
|
|
31704
31821
|
retry: deps.retry,
|
|
31705
31822
|
...replyToMessageId != null ? { replyToMessageId } : {},
|
|
31706
31823
|
...args.quote_text != null && replyToMessageId != null ? { quoteText: args.quote_text } : {},
|
|
@@ -32083,7 +32200,7 @@ function clear(key) {
|
|
|
32083
32200
|
state.delete(key);
|
|
32084
32201
|
}
|
|
32085
32202
|
|
|
32086
|
-
//
|
|
32203
|
+
// ../node_modules/.bun/posthog-node@5.29.2/node_modules/posthog-node/dist/extensions/error-tracking/modifiers/module.node.mjs
|
|
32087
32204
|
import { dirname as dirname2, posix, sep as sep2 } from "path";
|
|
32088
32205
|
function createModulerModifier() {
|
|
32089
32206
|
const getModuleFromFileName = createGetModuleFromFilename();
|
|
@@ -32119,7 +32236,7 @@ function normalizeWindowsPath(path) {
|
|
|
32119
32236
|
return path.replace(/^[A-Z]:/, "").replace(/\\/g, "/");
|
|
32120
32237
|
}
|
|
32121
32238
|
|
|
32122
|
-
//
|
|
32239
|
+
// ../node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/featureFlagUtils.mjs
|
|
32123
32240
|
var normalizeFlagsResponse = (flagsResponse) => {
|
|
32124
32241
|
if ("flags" in flagsResponse) {
|
|
32125
32242
|
const featureFlags = getFlagValuesFromFlags(flagsResponse.flags);
|
|
@@ -32190,7 +32307,7 @@ var parsePayload = (response) => {
|
|
|
32190
32307
|
}
|
|
32191
32308
|
};
|
|
32192
32309
|
|
|
32193
|
-
//
|
|
32310
|
+
// ../node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/gzip.mjs
|
|
32194
32311
|
function isGzipSupported() {
|
|
32195
32312
|
return "CompressionStream" in globalThis;
|
|
32196
32313
|
}
|
|
@@ -32210,7 +32327,7 @@ async function gzipCompress(input, isDebug = true) {
|
|
|
32210
32327
|
}
|
|
32211
32328
|
}
|
|
32212
32329
|
|
|
32213
|
-
//
|
|
32330
|
+
// ../node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/vendor/uuidv7.mjs
|
|
32214
32331
|
/*! For license information please see uuidv7.mjs.LICENSE.txt */
|
|
32215
32332
|
var DIGITS = "0123456789abcdef";
|
|
32216
32333
|
|
|
@@ -32388,7 +32505,7 @@ var defaultGenerator;
|
|
|
32388
32505
|
var uuidv7 = () => uuidv7obj().toString();
|
|
32389
32506
|
var uuidv7obj = () => (defaultGenerator || (defaultGenerator = new V7Generator)).generate();
|
|
32390
32507
|
|
|
32391
|
-
//
|
|
32508
|
+
// ../node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/types.mjs
|
|
32392
32509
|
var types_PostHogPersistedProperty = /* @__PURE__ */ function(PostHogPersistedProperty) {
|
|
32393
32510
|
PostHogPersistedProperty["AnonymousId"] = "anonymous_id";
|
|
32394
32511
|
PostHogPersistedProperty["DistinctId"] = "distinct_id";
|
|
@@ -32421,7 +32538,7 @@ var types_PostHogPersistedProperty = /* @__PURE__ */ function(PostHogPersistedPr
|
|
|
32421
32538
|
return PostHogPersistedProperty;
|
|
32422
32539
|
}({});
|
|
32423
32540
|
|
|
32424
|
-
//
|
|
32541
|
+
// ../node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/utils/bot-detection.mjs
|
|
32425
32542
|
var DEFAULT_BLOCKED_UA_STRS = [
|
|
32426
32543
|
"amazonbot",
|
|
32427
32544
|
"amazonproductbot",
|
|
@@ -32510,7 +32627,7 @@ var isBlockedUA = function(ua, customBlockedUserAgents = []) {
|
|
|
32510
32627
|
return uaLower.indexOf(blockedUaLower) !== -1;
|
|
32511
32628
|
});
|
|
32512
32629
|
};
|
|
32513
|
-
//
|
|
32630
|
+
// ../node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/utils/type-utils.mjs
|
|
32514
32631
|
var nativeIsArray = Array.isArray;
|
|
32515
32632
|
var ObjProto = Object.prototype;
|
|
32516
32633
|
var type_utils_hasOwnProperty = ObjProto.hasOwnProperty;
|
|
@@ -32547,7 +32664,7 @@ function isInstanceOf(candidate, base) {
|
|
|
32547
32664
|
}
|
|
32548
32665
|
}
|
|
32549
32666
|
|
|
32550
|
-
//
|
|
32667
|
+
// ../node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/utils/number-utils.mjs
|
|
32551
32668
|
function clampToRange(value, min, max, logger, fallbackValue) {
|
|
32552
32669
|
if (min > max) {
|
|
32553
32670
|
logger.warn("min cannot be greater than max.");
|
|
@@ -32567,7 +32684,7 @@ function clampToRange(value, min, max, logger, fallbackValue) {
|
|
|
32567
32684
|
return clampToRange(fallbackValue || max, min, max, logger);
|
|
32568
32685
|
}
|
|
32569
32686
|
|
|
32570
|
-
//
|
|
32687
|
+
// ../node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/utils/bucketed-rate-limiter.mjs
|
|
32571
32688
|
var ONE_DAY_IN_MS = 86400000;
|
|
32572
32689
|
|
|
32573
32690
|
class BucketedRateLimiter {
|
|
@@ -32611,7 +32728,7 @@ class BucketedRateLimiter {
|
|
|
32611
32728
|
this._buckets = {};
|
|
32612
32729
|
}
|
|
32613
32730
|
}
|
|
32614
|
-
//
|
|
32731
|
+
// ../node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/utils/promise-queue.mjs
|
|
32615
32732
|
class PromiseQueue {
|
|
32616
32733
|
add(promise) {
|
|
32617
32734
|
const promiseUUID = uuidv7();
|
|
@@ -32637,7 +32754,7 @@ class PromiseQueue {
|
|
|
32637
32754
|
this.promiseByIds = {};
|
|
32638
32755
|
}
|
|
32639
32756
|
}
|
|
32640
|
-
//
|
|
32757
|
+
// ../node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/utils/logger.mjs
|
|
32641
32758
|
function createConsole(consoleLike = console) {
|
|
32642
32759
|
const lockedMethods = {
|
|
32643
32760
|
log: consoleLike.log.bind(consoleLike),
|
|
@@ -32675,7 +32792,7 @@ var passThrough = (fn) => fn();
|
|
|
32675
32792
|
function createLogger(prefix, maybeCall = passThrough) {
|
|
32676
32793
|
return _createLogger(prefix, maybeCall, createConsole());
|
|
32677
32794
|
}
|
|
32678
|
-
//
|
|
32795
|
+
// ../node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/utils/user-agent-utils.mjs
|
|
32679
32796
|
var MOBILE = "Mobile";
|
|
32680
32797
|
var IOS = "iOS";
|
|
32681
32798
|
var ANDROID = "Android";
|
|
@@ -32932,7 +33049,7 @@ var osMatchers = [
|
|
|
32932
33049
|
]
|
|
32933
33050
|
];
|
|
32934
33051
|
|
|
32935
|
-
//
|
|
33052
|
+
// ../node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/utils/index.mjs
|
|
32936
33053
|
var STRING_FORMAT = "utf8";
|
|
32937
33054
|
function assert(truthyValue, message) {
|
|
32938
33055
|
if (!truthyValue || typeof truthyValue != "string" || isEmpty(truthyValue))
|
|
@@ -32980,7 +33097,7 @@ function allSettled(promises) {
|
|
|
32980
33097
|
reason
|
|
32981
33098
|
}))));
|
|
32982
33099
|
}
|
|
32983
|
-
//
|
|
33100
|
+
// ../node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/eventemitter.mjs
|
|
32984
33101
|
class SimpleEventEmitter {
|
|
32985
33102
|
constructor() {
|
|
32986
33103
|
this.events = {};
|
|
@@ -33002,7 +33119,7 @@ class SimpleEventEmitter {
|
|
|
33002
33119
|
}
|
|
33003
33120
|
}
|
|
33004
33121
|
|
|
33005
|
-
//
|
|
33122
|
+
// ../node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/posthog-core-stateless.mjs
|
|
33006
33123
|
class PostHogFetchHttpError extends Error {
|
|
33007
33124
|
constructor(response, reqByteLength) {
|
|
33008
33125
|
super("HTTP error while fetching PostHog: status=" + response.status + ", reqByteLength=" + reqByteLength), this.response = response, this.reqByteLength = reqByteLength, this.name = "PostHogFetchHttpError";
|
|
@@ -33717,7 +33834,7 @@ class PostHogCoreStateless {
|
|
|
33717
33834
|
return this.shutdownPromise;
|
|
33718
33835
|
}
|
|
33719
33836
|
}
|
|
33720
|
-
//
|
|
33837
|
+
// ../node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/index.mjs
|
|
33721
33838
|
var exports_error_tracking = {};
|
|
33722
33839
|
__export(exports_error_tracking, {
|
|
33723
33840
|
winjsStackLineParser: () => winjsStackLineParser,
|
|
@@ -33741,7 +33858,7 @@ __export(exports_error_tracking, {
|
|
|
33741
33858
|
DOMExceptionCoercer: () => DOMExceptionCoercer
|
|
33742
33859
|
});
|
|
33743
33860
|
|
|
33744
|
-
//
|
|
33861
|
+
// ../node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/chunk-ids.mjs
|
|
33745
33862
|
var parsedStackResults;
|
|
33746
33863
|
var lastKeysCount;
|
|
33747
33864
|
var cachedFilenameChunkIds;
|
|
@@ -33780,7 +33897,7 @@ function getFilenameToChunkIdMap(stackParser) {
|
|
|
33780
33897
|
return cachedFilenameChunkIds;
|
|
33781
33898
|
}
|
|
33782
33899
|
|
|
33783
|
-
//
|
|
33900
|
+
// ../node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/error-properties-builder.mjs
|
|
33784
33901
|
var MAX_CAUSE_RECURSION = 4;
|
|
33785
33902
|
|
|
33786
33903
|
class ErrorPropertiesBuilder {
|
|
@@ -33902,7 +34019,7 @@ class ErrorPropertiesBuilder {
|
|
|
33902
34019
|
return context;
|
|
33903
34020
|
}
|
|
33904
34021
|
}
|
|
33905
|
-
//
|
|
34022
|
+
// ../node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/parsers/base.mjs
|
|
33906
34023
|
var UNKNOWN_FUNCTION = "?";
|
|
33907
34024
|
function createFrame(platform, filename, func, lineno, colno) {
|
|
33908
34025
|
const frame = {
|
|
@@ -33918,7 +34035,7 @@ function createFrame(platform, filename, func, lineno, colno) {
|
|
|
33918
34035
|
return frame;
|
|
33919
34036
|
}
|
|
33920
34037
|
|
|
33921
|
-
//
|
|
34038
|
+
// ../node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/parsers/safari.mjs
|
|
33922
34039
|
var extractSafariExtensionDetails = (func, filename) => {
|
|
33923
34040
|
const isSafariExtension = func.indexOf("safari-extension") !== -1;
|
|
33924
34041
|
const isSafariWebExtension = func.indexOf("safari-web-extension") !== -1;
|
|
@@ -33931,7 +34048,7 @@ var extractSafariExtensionDetails = (func, filename) => {
|
|
|
33931
34048
|
];
|
|
33932
34049
|
};
|
|
33933
34050
|
|
|
33934
|
-
//
|
|
34051
|
+
// ../node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/parsers/chrome.mjs
|
|
33935
34052
|
var chromeRegexNoFnName = /^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i;
|
|
33936
34053
|
var chromeRegex = /^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i;
|
|
33937
34054
|
var chromeEvalRegex = /\((\S*)(?::(\d+))(?::(\d+))\)/;
|
|
@@ -33957,7 +34074,7 @@ var chromeStackLineParser = (line, platform) => {
|
|
|
33957
34074
|
}
|
|
33958
34075
|
};
|
|
33959
34076
|
|
|
33960
|
-
//
|
|
34077
|
+
// ../node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/parsers/gecko.mjs
|
|
33961
34078
|
var geckoREgex = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i;
|
|
33962
34079
|
var geckoEvalRegex = /(\S+) line (\d+)(?: > eval line \d+)* > eval/i;
|
|
33963
34080
|
var geckoStackLineParser = (line, platform) => {
|
|
@@ -33980,14 +34097,14 @@ var geckoStackLineParser = (line, platform) => {
|
|
|
33980
34097
|
}
|
|
33981
34098
|
};
|
|
33982
34099
|
|
|
33983
|
-
//
|
|
34100
|
+
// ../node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/parsers/winjs.mjs
|
|
33984
34101
|
var winjsRegex = /^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i;
|
|
33985
34102
|
var winjsStackLineParser = (line, platform) => {
|
|
33986
34103
|
const parts = winjsRegex.exec(line);
|
|
33987
34104
|
return parts ? createFrame(platform, parts[2], parts[1] || UNKNOWN_FUNCTION, +parts[3], parts[4] ? +parts[4] : undefined) : undefined;
|
|
33988
34105
|
};
|
|
33989
34106
|
|
|
33990
|
-
//
|
|
34107
|
+
// ../node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/parsers/opera.mjs
|
|
33991
34108
|
var opera10Regex = / line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i;
|
|
33992
34109
|
var opera10StackLineParser = (line, platform) => {
|
|
33993
34110
|
const parts = opera10Regex.exec(line);
|
|
@@ -33999,7 +34116,7 @@ var opera11StackLineParser = (line, platform) => {
|
|
|
33999
34116
|
return parts ? createFrame(platform, parts[5], parts[3] || parts[4] || UNKNOWN_FUNCTION, +parts[1], +parts[2]) : undefined;
|
|
34000
34117
|
};
|
|
34001
34118
|
|
|
34002
|
-
//
|
|
34119
|
+
// ../node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/parsers/node.mjs
|
|
34003
34120
|
var FILENAME_MATCH = /^\s*[-]{4,}$/;
|
|
34004
34121
|
var FULL_MATCH = /at (?:async )?(?:(.+?)\s+\()?(?:(.+):(\d+):(\d+)?|([^)]+))\)?/;
|
|
34005
34122
|
var nodeStackLineParser = (line, platform) => {
|
|
@@ -34068,7 +34185,7 @@ function _parseIntOrUndefined(input) {
|
|
|
34068
34185
|
return parseInt(input || "", 10) || undefined;
|
|
34069
34186
|
}
|
|
34070
34187
|
|
|
34071
|
-
//
|
|
34188
|
+
// ../node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/parsers/index.mjs
|
|
34072
34189
|
var WEBPACK_ERROR_REGEXP = /\(error: (.*)\)/;
|
|
34073
34190
|
var STACKTRACE_FRAME_LIMIT = 50;
|
|
34074
34191
|
function reverseAndStripFrames(stack) {
|
|
@@ -34113,7 +34230,7 @@ function createStackParser(platform, ...parsers) {
|
|
|
34113
34230
|
return reverseAndStripFrames(frames);
|
|
34114
34231
|
};
|
|
34115
34232
|
}
|
|
34116
|
-
//
|
|
34233
|
+
// ../node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/coercers/dom-exception-coercer.mjs
|
|
34117
34234
|
class DOMExceptionCoercer {
|
|
34118
34235
|
match(err) {
|
|
34119
34236
|
return this.isDOMException(err) || this.isDOMError(err);
|
|
@@ -34143,7 +34260,7 @@ class DOMExceptionCoercer {
|
|
|
34143
34260
|
return isBuiltin(err, "DOMError");
|
|
34144
34261
|
}
|
|
34145
34262
|
}
|
|
34146
|
-
//
|
|
34263
|
+
// ../node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/coercers/error-coercer.mjs
|
|
34147
34264
|
class ErrorCoercer {
|
|
34148
34265
|
match(err) {
|
|
34149
34266
|
return isPlainError(err);
|
|
@@ -34170,7 +34287,7 @@ class ErrorCoercer {
|
|
|
34170
34287
|
return err.stacktrace || err.stack || undefined;
|
|
34171
34288
|
}
|
|
34172
34289
|
}
|
|
34173
|
-
//
|
|
34290
|
+
// ../node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/coercers/error-event-coercer.mjs
|
|
34174
34291
|
class ErrorEventCoercer {
|
|
34175
34292
|
constructor() {}
|
|
34176
34293
|
match(err) {
|
|
@@ -34188,7 +34305,7 @@ class ErrorEventCoercer {
|
|
|
34188
34305
|
return exceptionLike;
|
|
34189
34306
|
}
|
|
34190
34307
|
}
|
|
34191
|
-
//
|
|
34308
|
+
// ../node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/coercers/string-coercer.mjs
|
|
34192
34309
|
var ERROR_TYPES_PATTERN = /^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;
|
|
34193
34310
|
|
|
34194
34311
|
class StringCoercer {
|
|
@@ -34218,7 +34335,7 @@ class StringCoercer {
|
|
|
34218
34335
|
];
|
|
34219
34336
|
}
|
|
34220
34337
|
}
|
|
34221
|
-
//
|
|
34338
|
+
// ../node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/types.mjs
|
|
34222
34339
|
var severityLevels = [
|
|
34223
34340
|
"fatal",
|
|
34224
34341
|
"error",
|
|
@@ -34228,7 +34345,7 @@ var severityLevels = [
|
|
|
34228
34345
|
"debug"
|
|
34229
34346
|
];
|
|
34230
34347
|
|
|
34231
|
-
//
|
|
34348
|
+
// ../node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/coercers/utils.mjs
|
|
34232
34349
|
function extractExceptionKeysForMessage(err, maxLength = 40) {
|
|
34233
34350
|
const keys = Object.keys(err);
|
|
34234
34351
|
keys.sort();
|
|
@@ -34245,7 +34362,7 @@ function extractExceptionKeysForMessage(err, maxLength = 40) {
|
|
|
34245
34362
|
return "";
|
|
34246
34363
|
}
|
|
34247
34364
|
|
|
34248
|
-
//
|
|
34365
|
+
// ../node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/coercers/object-coercer.mjs
|
|
34249
34366
|
class ObjectCoercer {
|
|
34250
34367
|
match(candidate) {
|
|
34251
34368
|
return typeof candidate == "object" && candidate !== null;
|
|
@@ -34298,7 +34415,7 @@ class ObjectCoercer {
|
|
|
34298
34415
|
}
|
|
34299
34416
|
}
|
|
34300
34417
|
}
|
|
34301
|
-
//
|
|
34418
|
+
// ../node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/coercers/event-coercer.mjs
|
|
34302
34419
|
class EventCoercer {
|
|
34303
34420
|
match(err) {
|
|
34304
34421
|
return isEvent(err);
|
|
@@ -34313,7 +34430,7 @@ class EventCoercer {
|
|
|
34313
34430
|
};
|
|
34314
34431
|
}
|
|
34315
34432
|
}
|
|
34316
|
-
//
|
|
34433
|
+
// ../node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/coercers/primitive-coercer.mjs
|
|
34317
34434
|
class PrimitiveCoercer {
|
|
34318
34435
|
match(candidate) {
|
|
34319
34436
|
return isPrimitive(candidate);
|
|
@@ -34327,7 +34444,7 @@ class PrimitiveCoercer {
|
|
|
34327
34444
|
};
|
|
34328
34445
|
}
|
|
34329
34446
|
}
|
|
34330
|
-
//
|
|
34447
|
+
// ../node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/coercers/promise-rejection-event.mjs
|
|
34331
34448
|
class PromiseRejectionEventCoercer {
|
|
34332
34449
|
match(err) {
|
|
34333
34450
|
return isBuiltin(err, "PromiseRejectionEvent") || this.isCustomEventWrappingRejection(err);
|
|
@@ -34363,7 +34480,7 @@ class PromiseRejectionEventCoercer {
|
|
|
34363
34480
|
return error;
|
|
34364
34481
|
}
|
|
34365
34482
|
}
|
|
34366
|
-
//
|
|
34483
|
+
// ../node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/utils.mjs
|
|
34367
34484
|
class ReduceableCache {
|
|
34368
34485
|
constructor(_maxSize) {
|
|
34369
34486
|
this._maxSize = _maxSize;
|
|
@@ -34388,7 +34505,7 @@ class ReduceableCache {
|
|
|
34388
34505
|
}
|
|
34389
34506
|
}
|
|
34390
34507
|
}
|
|
34391
|
-
//
|
|
34508
|
+
// ../node_modules/.bun/posthog-node@5.29.2/node_modules/posthog-node/dist/extensions/error-tracking/modifiers/context-lines.node.mjs
|
|
34392
34509
|
import { createReadStream } from "node:fs";
|
|
34393
34510
|
import { createInterface } from "node:readline";
|
|
34394
34511
|
var LRU_FILE_CONTENTS_CACHE = new exports_error_tracking.ReduceableCache(25);
|
|
@@ -34606,7 +34723,7 @@ function snipLine(line, colno) {
|
|
|
34606
34723
|
return newLine;
|
|
34607
34724
|
}
|
|
34608
34725
|
|
|
34609
|
-
//
|
|
34726
|
+
// ../node_modules/.bun/posthog-node@5.29.2/node_modules/posthog-node/dist/extensions/error-tracking/autocapture.mjs
|
|
34610
34727
|
function makeUncaughtExceptionHandler(captureFn, onFatalFn) {
|
|
34611
34728
|
let calledFatalError = false;
|
|
34612
34729
|
return Object.assign((error) => {
|
|
@@ -34638,7 +34755,7 @@ function addUnhandledRejectionListener(captureFn) {
|
|
|
34638
34755
|
}));
|
|
34639
34756
|
}
|
|
34640
34757
|
|
|
34641
|
-
//
|
|
34758
|
+
// ../node_modules/.bun/posthog-node@5.29.2/node_modules/posthog-node/dist/extensions/error-tracking/index.mjs
|
|
34642
34759
|
var SHUTDOWN_TIMEOUT = 2000;
|
|
34643
34760
|
|
|
34644
34761
|
class ErrorTracking {
|
|
@@ -34707,10 +34824,10 @@ class ErrorTracking {
|
|
|
34707
34824
|
}
|
|
34708
34825
|
}
|
|
34709
34826
|
|
|
34710
|
-
//
|
|
34827
|
+
// ../node_modules/.bun/posthog-node@5.29.2/node_modules/posthog-node/dist/version.mjs
|
|
34711
34828
|
var version = "5.29.2";
|
|
34712
34829
|
|
|
34713
|
-
//
|
|
34830
|
+
// ../node_modules/.bun/posthog-node@5.29.2/node_modules/posthog-node/dist/types.mjs
|
|
34714
34831
|
var FeatureFlagError2 = {
|
|
34715
34832
|
ERRORS_WHILE_COMPUTING: "errors_while_computing_flags",
|
|
34716
34833
|
FLAG_MISSING: "flag_missing",
|
|
@@ -34718,7 +34835,7 @@ var FeatureFlagError2 = {
|
|
|
34718
34835
|
UNKNOWN_ERROR: "unknown_error"
|
|
34719
34836
|
};
|
|
34720
34837
|
|
|
34721
|
-
//
|
|
34838
|
+
// ../node_modules/.bun/posthog-node@5.29.2/node_modules/posthog-node/dist/extensions/feature-flags/crypto.mjs
|
|
34722
34839
|
async function hashSHA1(text) {
|
|
34723
34840
|
const subtle = globalThis.crypto?.subtle;
|
|
34724
34841
|
if (!subtle)
|
|
@@ -34728,7 +34845,7 @@ async function hashSHA1(text) {
|
|
|
34728
34845
|
return hashArray.map((byte) => byte.toString(16).padStart(2, "0")).join("");
|
|
34729
34846
|
}
|
|
34730
34847
|
|
|
34731
|
-
//
|
|
34848
|
+
// ../node_modules/.bun/posthog-node@5.29.2/node_modules/posthog-node/dist/extensions/feature-flags/feature-flags.mjs
|
|
34732
34849
|
var SIXTY_SECONDS = 60000;
|
|
34733
34850
|
var LONG_SCALE = 1152921504606847000;
|
|
34734
34851
|
var NULL_VALUES_ALLOWED_OPERATORS = [
|
|
@@ -35602,7 +35719,7 @@ function relativeDateParseForFeatureFlagMatching(value) {
|
|
|
35602
35719
|
}
|
|
35603
35720
|
}
|
|
35604
35721
|
|
|
35605
|
-
//
|
|
35722
|
+
// ../node_modules/.bun/posthog-node@5.29.2/node_modules/posthog-node/dist/storage-memory.mjs
|
|
35606
35723
|
class PostHogMemoryStorage {
|
|
35607
35724
|
getProperty(key) {
|
|
35608
35725
|
return this._memoryStorage[key];
|
|
@@ -35615,7 +35732,7 @@ class PostHogMemoryStorage {
|
|
|
35615
35732
|
}
|
|
35616
35733
|
}
|
|
35617
35734
|
|
|
35618
|
-
//
|
|
35735
|
+
// ../node_modules/.bun/posthog-node@5.29.2/node_modules/posthog-node/dist/client.mjs
|
|
35619
35736
|
var MINIMUM_POLLING_INTERVAL = 100;
|
|
35620
35737
|
var THIRTY_SECONDS = 30000;
|
|
35621
35738
|
var MAX_CACHE_SIZE = 50000;
|
|
@@ -36403,7 +36520,7 @@ class PostHogBackendClient extends PostHogCoreStateless {
|
|
|
36403
36520
|
}
|
|
36404
36521
|
}
|
|
36405
36522
|
|
|
36406
|
-
//
|
|
36523
|
+
// ../node_modules/.bun/posthog-node@5.29.2/node_modules/posthog-node/dist/extensions/context/context.mjs
|
|
36407
36524
|
import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
|
|
36408
36525
|
|
|
36409
36526
|
class PostHogContext {
|
|
@@ -36434,7 +36551,7 @@ class PostHogContext {
|
|
|
36434
36551
|
}
|
|
36435
36552
|
}
|
|
36436
36553
|
|
|
36437
|
-
//
|
|
36554
|
+
// ../node_modules/.bun/posthog-node@5.29.2/node_modules/posthog-node/dist/extensions/sentry-integration.mjs
|
|
36438
36555
|
var NAME = "posthog-node";
|
|
36439
36556
|
function createEventProcessor(_posthog, { organization, projectId, prefix, severityAllowList = [
|
|
36440
36557
|
"error"
|
|
@@ -36502,7 +36619,7 @@ class PostHogSentryIntegration {
|
|
|
36502
36619
|
};
|
|
36503
36620
|
}
|
|
36504
36621
|
}
|
|
36505
|
-
//
|
|
36622
|
+
// ../node_modules/.bun/posthog-node@5.29.2/node_modules/posthog-node/dist/entrypoints/index.node.mjs
|
|
36506
36623
|
ErrorTracking.errorPropertiesBuilder = new exports_error_tracking.ErrorPropertiesBuilder([
|
|
36507
36624
|
new exports_error_tracking.EventCoercer,
|
|
36508
36625
|
new exports_error_tracking.ErrorCoercer,
|
|
@@ -37085,7 +37202,7 @@ function isSilentFlushMarker(text) {
|
|
|
37085
37202
|
|
|
37086
37203
|
// answer-stream.ts
|
|
37087
37204
|
var MIN_INITIAL_CHARS = 50;
|
|
37088
|
-
var
|
|
37205
|
+
var DEFAULT_THROTTLE_MS = 1000;
|
|
37089
37206
|
var TELEGRAM_MAX_CHARS2 = 4096;
|
|
37090
37207
|
var allocateDraftId2 = allocateDraftId;
|
|
37091
37208
|
function createAnswerStream(config) {
|
|
@@ -37094,7 +37211,7 @@ function createAnswerStream(config) {
|
|
|
37094
37211
|
isPrivateChat,
|
|
37095
37212
|
threadId,
|
|
37096
37213
|
minInitialChars = MIN_INITIAL_CHARS,
|
|
37097
|
-
throttleMs =
|
|
37214
|
+
throttleMs = DEFAULT_THROTTLE_MS,
|
|
37098
37215
|
replyToMessageId,
|
|
37099
37216
|
sendMessageDraft: draftApi,
|
|
37100
37217
|
sendMessage,
|
|
@@ -47562,10 +47679,10 @@ function sweepStaleTurnActiveMarker(stateDir, opts) {
|
|
|
47562
47679
|
}
|
|
47563
47680
|
|
|
47564
47681
|
// ../src/build-info.ts
|
|
47565
|
-
var VERSION = "0.
|
|
47566
|
-
var COMMIT_SHA = "
|
|
47567
|
-
var COMMIT_DATE = "2026-05-
|
|
47568
|
-
var LATEST_PR =
|
|
47682
|
+
var VERSION = "0.13.1";
|
|
47683
|
+
var COMMIT_SHA = "b7489c5a";
|
|
47684
|
+
var COMMIT_DATE = "2026-05-21T00:27:54Z";
|
|
47685
|
+
var LATEST_PR = 1609;
|
|
47569
47686
|
var COMMITS_AHEAD_OF_TAG = 0;
|
|
47570
47687
|
|
|
47571
47688
|
// gateway/boot-version.ts
|
|
@@ -48515,18 +48632,21 @@ function statusKey(chatId, threadId) {
|
|
|
48515
48632
|
function streamKey3(chatId, threadId) {
|
|
48516
48633
|
return chatKey(chatId, threadId);
|
|
48517
48634
|
}
|
|
48518
|
-
function
|
|
48519
|
-
const outboundEmitted = endingTurn != null ? endingTurn.replyCalled === true : currentTurn?.replyCalled === true;
|
|
48520
|
-
shadowEmit({ kind: "turnEnd", key, at: Date.now(), outboundEmitted });
|
|
48635
|
+
function clearReactionState(key) {
|
|
48521
48636
|
const msgInfo = activeReactionMsgIds.get(key);
|
|
48522
48637
|
activeStatusReactions.delete(key);
|
|
48523
48638
|
activeReactionMsgIds.delete(key);
|
|
48524
|
-
activeTurnStartedAt.delete(key);
|
|
48525
48639
|
if (msgInfo) {
|
|
48526
48640
|
const agentDir = resolveAgentDirFromEnv();
|
|
48527
48641
|
if (agentDir != null)
|
|
48528
48642
|
removeActiveReaction(agentDir, msgInfo.chatId, msgInfo.messageId);
|
|
48529
48643
|
}
|
|
48644
|
+
}
|
|
48645
|
+
function purgeReactionTracking(key, endingTurn, outboundEmittedOverride) {
|
|
48646
|
+
const outboundEmitted = outboundEmittedOverride !== undefined ? outboundEmittedOverride : endingTurn != null ? endingTurn.replyCalled === true : currentTurn?.replyCalled === true;
|
|
48647
|
+
shadowEmit({ kind: "turnEnd", key, at: Date.now(), outboundEmitted });
|
|
48648
|
+
clearReactionState(key);
|
|
48649
|
+
activeTurnStartedAt.delete(key);
|
|
48530
48650
|
if (activeTurnStartedAt.size === 0) {
|
|
48531
48651
|
const selfAgentForFlush = process.env.SWITCHROOM_AGENT_NAME ?? "";
|
|
48532
48652
|
if (pendingInboundBuffer.depth(selfAgentForFlush) > 0) {
|
|
@@ -48676,7 +48796,7 @@ function endStatusReaction(chatId, threadId, outcome) {
|
|
|
48676
48796
|
ctrl.setDone();
|
|
48677
48797
|
else
|
|
48678
48798
|
ctrl.setError();
|
|
48679
|
-
|
|
48799
|
+
clearReactionState(key);
|
|
48680
48800
|
}
|
|
48681
48801
|
function resolveThreadId(chat_id, explicit) {
|
|
48682
48802
|
if (explicit != null)
|
|
@@ -49239,6 +49359,13 @@ function postLegacyBanner(chatId, threadId, ackMessageId, ageSec, site) {
|
|
|
49239
49359
|
});
|
|
49240
49360
|
}
|
|
49241
49361
|
var streamMode = process.env.SWITCHROOM_TG_STREAM_MODE ?? "checklist";
|
|
49362
|
+
var STREAM_THROTTLE_MS_OVERRIDE = (() => {
|
|
49363
|
+
const raw = process.env.SWITCHROOM_TG_STREAM_THROTTLE_MS;
|
|
49364
|
+
if (raw == null || raw === "")
|
|
49365
|
+
return;
|
|
49366
|
+
const n = Number.parseInt(raw, 10);
|
|
49367
|
+
return Number.isFinite(n) && n >= 0 ? n : undefined;
|
|
49368
|
+
})();
|
|
49242
49369
|
var TURN_FLUSH_SAFETY_ENABLED = isTurnFlushSafetyEnabled();
|
|
49243
49370
|
var progressDriver = null;
|
|
49244
49371
|
var unpinProgressCardForChat = null;
|
|
@@ -49392,8 +49519,8 @@ startTimer({
|
|
|
49392
49519
|
lastPtyPreviewByChat.delete(fbKey);
|
|
49393
49520
|
preambleSuppressor.dropNow();
|
|
49394
49521
|
endTurn(fbKey);
|
|
49395
|
-
purgeReactionTracking(fbKey);
|
|
49396
|
-
const fbExtraPurge = purgeStaleTurnsForChat(fbChatId, activeTurnStartedAt.keys(), purgeReactionTracking);
|
|
49522
|
+
purgeReactionTracking(fbKey, undefined, false);
|
|
49523
|
+
const fbExtraPurge = purgeStaleTurnsForChat(fbChatId, activeTurnStartedAt.keys(), (k) => purgeReactionTracking(k, undefined, false));
|
|
49397
49524
|
if (turnMatchesFallback && currentTurn === wedgedTurn)
|
|
49398
49525
|
currentTurn = null;
|
|
49399
49526
|
try {
|
|
@@ -50270,7 +50397,7 @@ async function executeStreamReply(args) {
|
|
|
50270
50397
|
recordOutbound,
|
|
50271
50398
|
...HISTORY_ENABLED ? { getLatestInboundMessageId } : {},
|
|
50272
50399
|
writeError: (line) => process.stderr.write(line),
|
|
50273
|
-
throttleMs:
|
|
50400
|
+
...STREAM_THROTTLE_MS_OVERRIDE != null ? { throttleMs: STREAM_THROTTLE_MS_OVERRIDE } : {},
|
|
50274
50401
|
progressCardActive: streamMode === "checklist"
|
|
50275
50402
|
});
|
|
50276
50403
|
if (result.messageId != null) {
|
|
@@ -51215,7 +51342,6 @@ function handleSessionEvent(ev) {
|
|
|
51215
51342
|
const ctrl = activeStatusReactions.get(ceKey);
|
|
51216
51343
|
if (ctrl)
|
|
51217
51344
|
ctrl.setError();
|
|
51218
|
-
purgeReactionTracking(ceKey);
|
|
51219
51345
|
endTurn(ceKey);
|
|
51220
51346
|
if (turn.answerStream != null) {
|
|
51221
51347
|
turn.answerStream.stop();
|
|
@@ -51298,7 +51424,6 @@ function handleSessionEvent(ev) {
|
|
|
51298
51424
|
unpinProgressCardForChat?.(chatId, threadId);
|
|
51299
51425
|
if (ctrl)
|
|
51300
51426
|
ctrl.setDone();
|
|
51301
|
-
purgeReactionTracking(statusKey(chatId, threadId));
|
|
51302
51427
|
{
|
|
51303
51428
|
const sKey = streamKey3(chatId, threadId);
|
|
51304
51429
|
const turnDurationMs = turn.startedAt > 0 ? Date.now() - turn.startedAt : 0;
|
|
@@ -51369,7 +51494,7 @@ function handleSessionEvent(ev) {
|
|
|
51369
51494
|
if (recentCount > 0) {
|
|
51370
51495
|
process.stderr.write(`telegram gateway: turn-flush suppressed \u2014 reply tool sent ${recentCount} message(s) within 2s
|
|
51371
51496
|
`);
|
|
51372
|
-
purgeReactionTracking(statusKey(backstopChatId, backstopThreadId));
|
|
51497
|
+
purgeReactionTracking(statusKey(backstopChatId, backstopThreadId), turn);
|
|
51373
51498
|
return;
|
|
51374
51499
|
}
|
|
51375
51500
|
} catch {}
|
|
@@ -51454,14 +51579,13 @@ function handleSessionEvent(ev) {
|
|
|
51454
51579
|
if (backstopCtrl)
|
|
51455
51580
|
backstopCtrl.setError();
|
|
51456
51581
|
} finally {
|
|
51457
|
-
purgeReactionTracking(statusKey(backstopChatId, backstopThreadId));
|
|
51582
|
+
purgeReactionTracking(statusKey(backstopChatId, backstopThreadId), turn);
|
|
51458
51583
|
}
|
|
51459
51584
|
})();
|
|
51460
51585
|
return;
|
|
51461
51586
|
}
|
|
51462
51587
|
if (ctrl)
|
|
51463
51588
|
ctrl.setDone();
|
|
51464
|
-
purgeReactionTracking(statusKey(chatId, threadId));
|
|
51465
51589
|
{
|
|
51466
51590
|
const sKey = streamKey3(chatId, threadId);
|
|
51467
51591
|
const turnDurationMs = turn.startedAt > 0 ? Date.now() - turn.startedAt : 0;
|