switchroom 0.14.7 → 0.14.8
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 +80 -80
- package/dist/auth-broker/index.js +80 -80
- package/dist/cli/drive-write-pretool.mjs +10 -10
- package/dist/cli/notion-write-pretool.mjs +82 -82
- package/dist/cli/skill-validate-pretool.mjs +72 -72
- package/dist/cli/switchroom.js +395 -357
- package/dist/host-control/main.js +148 -148
- package/dist/vault/approvals/kernel-server.js +82 -82
- package/dist/vault/broker/server.js +83 -83
- package/package.json +1 -1
- package/profiles/_base/start.sh.hbs +23 -0
- package/telegram-plugin/dist/bridge/bridge.js +112 -112
- package/telegram-plugin/dist/gateway/gateway.js +583 -284
- package/telegram-plugin/dist/server.js +160 -160
- package/telegram-plugin/gateway/config-approval-handler.ts +36 -0
- package/telegram-plugin/gateway/gateway.ts +296 -180
- package/telegram-plugin/gateway/hostd-dispatch.ts +2 -1
- package/telegram-plugin/permission-diff.ts +382 -0
- package/telegram-plugin/tests/always-allow-correlation.test.ts +147 -0
- package/telegram-plugin/tests/always-allow-grant.test.ts +84 -88
- package/telegram-plugin/tests/permission-diff.test.ts +336 -0
- package/telegram-plugin/tests/tool-activity-summary.test.ts +25 -13
- package/telegram-plugin/tool-activity-summary.ts +27 -15
|
@@ -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
|
+
// ../../sr-rel-v0.14.3/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
|
+
// ../../sr-rel-v0.14.3/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
|
+
// ../../sr-rel-v0.14.3/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
|
+
// ../../sr-rel-v0.14.3/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
|
+
// ../../sr-rel-v0.14.3/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
|
+
// ../../sr-rel-v0.14.3/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
|
+
// ../../sr-rel-v0.14.3/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
|
+
// ../../sr-rel-v0.14.3/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
|
+
// ../../sr-rel-v0.14.3/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
|
+
// ../../sr-rel-v0.14.3/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
|
+
// ../../sr-rel-v0.14.3/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
|
+
// ../../sr-rel-v0.14.3/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
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/@grammyjs+types@3.26.0/node_modules/@grammyjs/types/mod.js
|
|
2453
2453
|
var exports_mod = {};
|
|
2454
2454
|
|
|
2455
|
-
// ../../
|
|
2455
|
+
// ../../sr-rel-v0.14.3/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
|
+
// ../../sr-rel-v0.14.3/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
|
+
// ../../sr-rel-v0.14.3/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
|
+
// ../../sr-rel-v0.14.3/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
|
+
// ../../sr-rel-v0.14.3/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
|
+
// ../../sr-rel-v0.14.3/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
|
+
// ../../sr-rel-v0.14.3/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
|
+
// ../../sr-rel-v0.14.3/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
|
+
// ../../sr-rel-v0.14.3/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
|
+
// ../../sr-rel-v0.14.3/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
|
+
// ../../sr-rel-v0.14.3/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
|
+
// ../../sr-rel-v0.14.3/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
|
+
// ../../sr-rel-v0.14.3/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
|
+
// ../../sr-rel-v0.14.3/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
|
+
// ../../sr-rel-v0.14.3/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
|
+
// ../../sr-rel-v0.14.3/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
|
+
// ../../sr-rel-v0.14.3/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
|
+
// ../../sr-rel-v0.14.3/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
|
+
// ../../sr-rel-v0.14.3/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
|
+
// ../../sr-rel-v0.14.3/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
|
+
// ../../sr-rel-v0.14.3/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
|
+
// ../../sr-rel-v0.14.3/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
|
+
// ../../sr-rel-v0.14.3/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
|
+
// ../../sr-rel-v0.14.3/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
|
+
// ../../sr-rel-v0.14.3/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
|
+
// ../../sr-rel-v0.14.3/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
|
+
// ../../sr-rel-v0.14.3/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
|
+
// ../../sr-rel-v0.14.3/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
|
+
// ../../sr-rel-v0.14.3/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
|
+
// ../../sr-rel-v0.14.3/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
|
+
// ../../sr-rel-v0.14.3/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
|
+
// ../../sr-rel-v0.14.3/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
|
+
// ../../sr-rel-v0.14.3/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
|
+
// ../../sr-rel-v0.14.3/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
|
+
// ../../sr-rel-v0.14.3/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
|
+
// ../../sr-rel-v0.14.3/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
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/zod@3.25.76/node_modules/zod/v3/helpers/typeAliases.js
|
|
12600
12600
|
var init_typeAliases = () => {};
|
|
12601
12601
|
|
|
12602
|
-
// ../../
|
|
12602
|
+
// ../../sr-rel-v0.14.3/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
|
+
// ../../sr-rel-v0.14.3/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
|
+
// ../../sr-rel-v0.14.3/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
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/zod@3.25.76/node_modules/zod/index.js
|
|
16083
16083
|
var init_zod = __esm(() => {
|
|
16084
16084
|
init_external();
|
|
16085
16085
|
init_external();
|
|
@@ -16642,7 +16642,7 @@ var init_client = __esm(() => {
|
|
|
16642
16642
|
};
|
|
16643
16643
|
});
|
|
16644
16644
|
|
|
16645
|
-
// ../../
|
|
16645
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/identity.js
|
|
16646
16646
|
var require_identity = __commonJS((exports2) => {
|
|
16647
16647
|
var ALIAS = Symbol.for("yaml.alias");
|
|
16648
16648
|
var DOC = Symbol.for("yaml.document");
|
|
@@ -16696,7 +16696,7 @@ var require_identity = __commonJS((exports2) => {
|
|
|
16696
16696
|
exports2.isSeq = isSeq;
|
|
16697
16697
|
});
|
|
16698
16698
|
|
|
16699
|
-
// ../../
|
|
16699
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/visit.js
|
|
16700
16700
|
var require_visit = __commonJS((exports2) => {
|
|
16701
16701
|
var identity = require_identity();
|
|
16702
16702
|
var BREAK = Symbol("break visit");
|
|
@@ -16851,7 +16851,7 @@ var require_visit = __commonJS((exports2) => {
|
|
|
16851
16851
|
exports2.visitAsync = visitAsync;
|
|
16852
16852
|
});
|
|
16853
16853
|
|
|
16854
|
-
// ../../
|
|
16854
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/doc/directives.js
|
|
16855
16855
|
var require_directives = __commonJS((exports2) => {
|
|
16856
16856
|
var identity = require_identity();
|
|
16857
16857
|
var visit = require_visit();
|
|
@@ -17003,7 +17003,7 @@ var require_directives = __commonJS((exports2) => {
|
|
|
17003
17003
|
exports2.Directives = Directives;
|
|
17004
17004
|
});
|
|
17005
17005
|
|
|
17006
|
-
// ../../
|
|
17006
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/doc/anchors.js
|
|
17007
17007
|
var require_anchors = __commonJS((exports2) => {
|
|
17008
17008
|
var identity = require_identity();
|
|
17009
17009
|
var visit = require_visit();
|
|
@@ -17065,7 +17065,7 @@ var require_anchors = __commonJS((exports2) => {
|
|
|
17065
17065
|
exports2.findNewAnchor = findNewAnchor;
|
|
17066
17066
|
});
|
|
17067
17067
|
|
|
17068
|
-
// ../../
|
|
17068
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/doc/applyReviver.js
|
|
17069
17069
|
var require_applyReviver = __commonJS((exports2) => {
|
|
17070
17070
|
function applyReviver(reviver, obj, key, val) {
|
|
17071
17071
|
if (val && typeof val === "object") {
|
|
@@ -17112,7 +17112,7 @@ var require_applyReviver = __commonJS((exports2) => {
|
|
|
17112
17112
|
exports2.applyReviver = applyReviver;
|
|
17113
17113
|
});
|
|
17114
17114
|
|
|
17115
|
-
// ../../
|
|
17115
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/toJS.js
|
|
17116
17116
|
var require_toJS = __commonJS((exports2) => {
|
|
17117
17117
|
var identity = require_identity();
|
|
17118
17118
|
function toJS(value, arg, ctx) {
|
|
@@ -17139,7 +17139,7 @@ var require_toJS = __commonJS((exports2) => {
|
|
|
17139
17139
|
exports2.toJS = toJS;
|
|
17140
17140
|
});
|
|
17141
17141
|
|
|
17142
|
-
// ../../
|
|
17142
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/Node.js
|
|
17143
17143
|
var require_Node = __commonJS((exports2) => {
|
|
17144
17144
|
var applyReviver = require_applyReviver();
|
|
17145
17145
|
var identity = require_identity();
|
|
@@ -17176,7 +17176,7 @@ var require_Node = __commonJS((exports2) => {
|
|
|
17176
17176
|
exports2.NodeBase = NodeBase;
|
|
17177
17177
|
});
|
|
17178
17178
|
|
|
17179
|
-
// ../../
|
|
17179
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/Alias.js
|
|
17180
17180
|
var require_Alias = __commonJS((exports2) => {
|
|
17181
17181
|
var anchors = require_anchors();
|
|
17182
17182
|
var visit = require_visit();
|
|
@@ -17284,7 +17284,7 @@ var require_Alias = __commonJS((exports2) => {
|
|
|
17284
17284
|
exports2.Alias = Alias;
|
|
17285
17285
|
});
|
|
17286
17286
|
|
|
17287
|
-
// ../../
|
|
17287
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/Scalar.js
|
|
17288
17288
|
var require_Scalar = __commonJS((exports2) => {
|
|
17289
17289
|
var identity = require_identity();
|
|
17290
17290
|
var Node = require_Node();
|
|
@@ -17312,7 +17312,7 @@ var require_Scalar = __commonJS((exports2) => {
|
|
|
17312
17312
|
exports2.isScalarValue = isScalarValue;
|
|
17313
17313
|
});
|
|
17314
17314
|
|
|
17315
|
-
// ../../
|
|
17315
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/doc/createNode.js
|
|
17316
17316
|
var require_createNode = __commonJS((exports2) => {
|
|
17317
17317
|
var Alias = require_Alias();
|
|
17318
17318
|
var identity = require_identity();
|
|
@@ -17384,7 +17384,7 @@ var require_createNode = __commonJS((exports2) => {
|
|
|
17384
17384
|
exports2.createNode = createNode;
|
|
17385
17385
|
});
|
|
17386
17386
|
|
|
17387
|
-
// ../../
|
|
17387
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/Collection.js
|
|
17388
17388
|
var require_Collection = __commonJS((exports2) => {
|
|
17389
17389
|
var createNode = require_createNode();
|
|
17390
17390
|
var identity = require_identity();
|
|
@@ -17499,7 +17499,7 @@ var require_Collection = __commonJS((exports2) => {
|
|
|
17499
17499
|
exports2.isEmptyPath = isEmptyPath;
|
|
17500
17500
|
});
|
|
17501
17501
|
|
|
17502
|
-
// ../../
|
|
17502
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyComment.js
|
|
17503
17503
|
var require_stringifyComment = __commonJS((exports2) => {
|
|
17504
17504
|
var stringifyComment = (str) => str.replace(/^(?!$)(?: $)?/gm, "#");
|
|
17505
17505
|
function indentComment(comment, indent) {
|
|
@@ -17516,7 +17516,7 @@ var require_stringifyComment = __commonJS((exports2) => {
|
|
|
17516
17516
|
exports2.stringifyComment = stringifyComment;
|
|
17517
17517
|
});
|
|
17518
17518
|
|
|
17519
|
-
// ../../
|
|
17519
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/foldFlowLines.js
|
|
17520
17520
|
var require_foldFlowLines = __commonJS((exports2) => {
|
|
17521
17521
|
var FOLD_FLOW = "flow";
|
|
17522
17522
|
var FOLD_BLOCK = "block";
|
|
@@ -17653,7 +17653,7 @@ ${indent}${text.slice(fold + 1, end2)}`;
|
|
|
17653
17653
|
exports2.foldFlowLines = foldFlowLines;
|
|
17654
17654
|
});
|
|
17655
17655
|
|
|
17656
|
-
// ../../
|
|
17656
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyString.js
|
|
17657
17657
|
var require_stringifyString = __commonJS((exports2) => {
|
|
17658
17658
|
var Scalar = require_Scalar();
|
|
17659
17659
|
var foldFlowLines = require_foldFlowLines();
|
|
@@ -17951,7 +17951,7 @@ ${indent}`);
|
|
|
17951
17951
|
exports2.stringifyString = stringifyString;
|
|
17952
17952
|
});
|
|
17953
17953
|
|
|
17954
|
-
// ../../
|
|
17954
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/stringify.js
|
|
17955
17955
|
var require_stringify = __commonJS((exports2) => {
|
|
17956
17956
|
var anchors = require_anchors();
|
|
17957
17957
|
var identity = require_identity();
|
|
@@ -18072,7 +18072,7 @@ ${ctx.indent}${str}`;
|
|
|
18072
18072
|
exports2.stringify = stringify;
|
|
18073
18073
|
});
|
|
18074
18074
|
|
|
18075
|
-
// ../../
|
|
18075
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyPair.js
|
|
18076
18076
|
var require_stringifyPair = __commonJS((exports2) => {
|
|
18077
18077
|
var identity = require_identity();
|
|
18078
18078
|
var Scalar = require_Scalar();
|
|
@@ -18208,7 +18208,7 @@ ${ctx.indent}`;
|
|
|
18208
18208
|
exports2.stringifyPair = stringifyPair;
|
|
18209
18209
|
});
|
|
18210
18210
|
|
|
18211
|
-
// ../../
|
|
18211
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/log.js
|
|
18212
18212
|
var require_log = __commonJS((exports2) => {
|
|
18213
18213
|
var node_process = __require("process");
|
|
18214
18214
|
function debug(logLevel, ...messages) {
|
|
@@ -18227,7 +18227,7 @@ var require_log = __commonJS((exports2) => {
|
|
|
18227
18227
|
exports2.warn = warn;
|
|
18228
18228
|
});
|
|
18229
18229
|
|
|
18230
|
-
// ../../
|
|
18230
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/merge.js
|
|
18231
18231
|
var require_merge = __commonJS((exports2) => {
|
|
18232
18232
|
var identity = require_identity();
|
|
18233
18233
|
var Scalar = require_Scalar();
|
|
@@ -18281,7 +18281,7 @@ var require_merge = __commonJS((exports2) => {
|
|
|
18281
18281
|
exports2.merge = merge;
|
|
18282
18282
|
});
|
|
18283
18283
|
|
|
18284
|
-
// ../../
|
|
18284
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/addPairToJSMap.js
|
|
18285
18285
|
var require_addPairToJSMap = __commonJS((exports2) => {
|
|
18286
18286
|
var log = require_log();
|
|
18287
18287
|
var merge = require_merge();
|
|
@@ -18342,7 +18342,7 @@ var require_addPairToJSMap = __commonJS((exports2) => {
|
|
|
18342
18342
|
exports2.addPairToJSMap = addPairToJSMap;
|
|
18343
18343
|
});
|
|
18344
18344
|
|
|
18345
|
-
// ../../
|
|
18345
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/Pair.js
|
|
18346
18346
|
var require_Pair = __commonJS((exports2) => {
|
|
18347
18347
|
var createNode = require_createNode();
|
|
18348
18348
|
var stringifyPair = require_stringifyPair();
|
|
@@ -18380,7 +18380,7 @@ var require_Pair = __commonJS((exports2) => {
|
|
|
18380
18380
|
exports2.createPair = createPair;
|
|
18381
18381
|
});
|
|
18382
18382
|
|
|
18383
|
-
// ../../
|
|
18383
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyCollection.js
|
|
18384
18384
|
var require_stringifyCollection = __commonJS((exports2) => {
|
|
18385
18385
|
var identity = require_identity();
|
|
18386
18386
|
var stringify = require_stringify();
|
|
@@ -18532,7 +18532,7 @@ ${indent}${end}`;
|
|
|
18532
18532
|
exports2.stringifyCollection = stringifyCollection;
|
|
18533
18533
|
});
|
|
18534
18534
|
|
|
18535
|
-
// ../../
|
|
18535
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/YAMLMap.js
|
|
18536
18536
|
var require_YAMLMap = __commonJS((exports2) => {
|
|
18537
18537
|
var stringifyCollection = require_stringifyCollection();
|
|
18538
18538
|
var addPairToJSMap = require_addPairToJSMap();
|
|
@@ -18659,7 +18659,7 @@ var require_YAMLMap = __commonJS((exports2) => {
|
|
|
18659
18659
|
exports2.findPair = findPair;
|
|
18660
18660
|
});
|
|
18661
18661
|
|
|
18662
|
-
// ../../
|
|
18662
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/common/map.js
|
|
18663
18663
|
var require_map = __commonJS((exports2) => {
|
|
18664
18664
|
var identity = require_identity();
|
|
18665
18665
|
var YAMLMap = require_YAMLMap();
|
|
@@ -18678,7 +18678,7 @@ var require_map = __commonJS((exports2) => {
|
|
|
18678
18678
|
exports2.map = map;
|
|
18679
18679
|
});
|
|
18680
18680
|
|
|
18681
|
-
// ../../
|
|
18681
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/YAMLSeq.js
|
|
18682
18682
|
var require_YAMLSeq = __commonJS((exports2) => {
|
|
18683
18683
|
var createNode = require_createNode();
|
|
18684
18684
|
var stringifyCollection = require_stringifyCollection();
|
|
@@ -18771,7 +18771,7 @@ var require_YAMLSeq = __commonJS((exports2) => {
|
|
|
18771
18771
|
exports2.YAMLSeq = YAMLSeq;
|
|
18772
18772
|
});
|
|
18773
18773
|
|
|
18774
|
-
// ../../
|
|
18774
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/common/seq.js
|
|
18775
18775
|
var require_seq = __commonJS((exports2) => {
|
|
18776
18776
|
var identity = require_identity();
|
|
18777
18777
|
var YAMLSeq = require_YAMLSeq();
|
|
@@ -18790,7 +18790,7 @@ var require_seq = __commonJS((exports2) => {
|
|
|
18790
18790
|
exports2.seq = seq;
|
|
18791
18791
|
});
|
|
18792
18792
|
|
|
18793
|
-
// ../../
|
|
18793
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/common/string.js
|
|
18794
18794
|
var require_string = __commonJS((exports2) => {
|
|
18795
18795
|
var stringifyString = require_stringifyString();
|
|
18796
18796
|
var string = {
|
|
@@ -18806,7 +18806,7 @@ var require_string = __commonJS((exports2) => {
|
|
|
18806
18806
|
exports2.string = string;
|
|
18807
18807
|
});
|
|
18808
18808
|
|
|
18809
|
-
// ../../
|
|
18809
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/common/null.js
|
|
18810
18810
|
var require_null = __commonJS((exports2) => {
|
|
18811
18811
|
var Scalar = require_Scalar();
|
|
18812
18812
|
var nullTag = {
|
|
@@ -18821,7 +18821,7 @@ var require_null = __commonJS((exports2) => {
|
|
|
18821
18821
|
exports2.nullTag = nullTag;
|
|
18822
18822
|
});
|
|
18823
18823
|
|
|
18824
|
-
// ../../
|
|
18824
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/core/bool.js
|
|
18825
18825
|
var require_bool = __commonJS((exports2) => {
|
|
18826
18826
|
var Scalar = require_Scalar();
|
|
18827
18827
|
var boolTag = {
|
|
@@ -18842,7 +18842,7 @@ var require_bool = __commonJS((exports2) => {
|
|
|
18842
18842
|
exports2.boolTag = boolTag;
|
|
18843
18843
|
});
|
|
18844
18844
|
|
|
18845
|
-
// ../../
|
|
18845
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyNumber.js
|
|
18846
18846
|
var require_stringifyNumber = __commonJS((exports2) => {
|
|
18847
18847
|
function stringifyNumber({ format, minFractionDigits, tag, value }) {
|
|
18848
18848
|
if (typeof value === "bigint")
|
|
@@ -18866,7 +18866,7 @@ var require_stringifyNumber = __commonJS((exports2) => {
|
|
|
18866
18866
|
exports2.stringifyNumber = stringifyNumber;
|
|
18867
18867
|
});
|
|
18868
18868
|
|
|
18869
|
-
// ../../
|
|
18869
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/core/float.js
|
|
18870
18870
|
var require_float = __commonJS((exports2) => {
|
|
18871
18871
|
var Scalar = require_Scalar();
|
|
18872
18872
|
var stringifyNumber = require_stringifyNumber();
|
|
@@ -18909,7 +18909,7 @@ var require_float = __commonJS((exports2) => {
|
|
|
18909
18909
|
exports2.floatNaN = floatNaN;
|
|
18910
18910
|
});
|
|
18911
18911
|
|
|
18912
|
-
// ../../
|
|
18912
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/core/int.js
|
|
18913
18913
|
var require_int = __commonJS((exports2) => {
|
|
18914
18914
|
var stringifyNumber = require_stringifyNumber();
|
|
18915
18915
|
var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
|
|
@@ -18951,7 +18951,7 @@ var require_int = __commonJS((exports2) => {
|
|
|
18951
18951
|
exports2.intOct = intOct;
|
|
18952
18952
|
});
|
|
18953
18953
|
|
|
18954
|
-
// ../../
|
|
18954
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/core/schema.js
|
|
18955
18955
|
var require_schema = __commonJS((exports2) => {
|
|
18956
18956
|
var map = require_map();
|
|
18957
18957
|
var _null = require_null();
|
|
@@ -18976,7 +18976,7 @@ var require_schema = __commonJS((exports2) => {
|
|
|
18976
18976
|
exports2.schema = schema;
|
|
18977
18977
|
});
|
|
18978
18978
|
|
|
18979
|
-
// ../../
|
|
18979
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/json/schema.js
|
|
18980
18980
|
var require_schema2 = __commonJS((exports2) => {
|
|
18981
18981
|
var Scalar = require_Scalar();
|
|
18982
18982
|
var map = require_map();
|
|
@@ -19040,7 +19040,7 @@ var require_schema2 = __commonJS((exports2) => {
|
|
|
19040
19040
|
exports2.schema = schema;
|
|
19041
19041
|
});
|
|
19042
19042
|
|
|
19043
|
-
// ../../
|
|
19043
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/binary.js
|
|
19044
19044
|
var require_binary = __commonJS((exports2) => {
|
|
19045
19045
|
var node_buffer = __require("buffer");
|
|
19046
19046
|
var Scalar = require_Scalar();
|
|
@@ -19095,7 +19095,7 @@ var require_binary = __commonJS((exports2) => {
|
|
|
19095
19095
|
exports2.binary = binary;
|
|
19096
19096
|
});
|
|
19097
19097
|
|
|
19098
|
-
// ../../
|
|
19098
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/pairs.js
|
|
19099
19099
|
var require_pairs = __commonJS((exports2) => {
|
|
19100
19100
|
var identity = require_identity();
|
|
19101
19101
|
var Pair = require_Pair();
|
|
@@ -19170,7 +19170,7 @@ ${cn.comment}` : item.comment;
|
|
|
19170
19170
|
exports2.resolvePairs = resolvePairs;
|
|
19171
19171
|
});
|
|
19172
19172
|
|
|
19173
|
-
// ../../
|
|
19173
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/omap.js
|
|
19174
19174
|
var require_omap = __commonJS((exports2) => {
|
|
19175
19175
|
var identity = require_identity();
|
|
19176
19176
|
var toJS = require_toJS();
|
|
@@ -19242,7 +19242,7 @@ var require_omap = __commonJS((exports2) => {
|
|
|
19242
19242
|
exports2.omap = omap;
|
|
19243
19243
|
});
|
|
19244
19244
|
|
|
19245
|
-
// ../../
|
|
19245
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/bool.js
|
|
19246
19246
|
var require_bool2 = __commonJS((exports2) => {
|
|
19247
19247
|
var Scalar = require_Scalar();
|
|
19248
19248
|
function boolStringify({ value, source }, ctx) {
|
|
@@ -19271,7 +19271,7 @@ var require_bool2 = __commonJS((exports2) => {
|
|
|
19271
19271
|
exports2.trueTag = trueTag;
|
|
19272
19272
|
});
|
|
19273
19273
|
|
|
19274
|
-
// ../../
|
|
19274
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/float.js
|
|
19275
19275
|
var require_float2 = __commonJS((exports2) => {
|
|
19276
19276
|
var Scalar = require_Scalar();
|
|
19277
19277
|
var stringifyNumber = require_stringifyNumber();
|
|
@@ -19317,7 +19317,7 @@ var require_float2 = __commonJS((exports2) => {
|
|
|
19317
19317
|
exports2.floatNaN = floatNaN;
|
|
19318
19318
|
});
|
|
19319
19319
|
|
|
19320
|
-
// ../../
|
|
19320
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/int.js
|
|
19321
19321
|
var require_int2 = __commonJS((exports2) => {
|
|
19322
19322
|
var stringifyNumber = require_stringifyNumber();
|
|
19323
19323
|
var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
|
|
@@ -19393,7 +19393,7 @@ var require_int2 = __commonJS((exports2) => {
|
|
|
19393
19393
|
exports2.intOct = intOct;
|
|
19394
19394
|
});
|
|
19395
19395
|
|
|
19396
|
-
// ../../
|
|
19396
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/set.js
|
|
19397
19397
|
var require_set = __commonJS((exports2) => {
|
|
19398
19398
|
var identity = require_identity();
|
|
19399
19399
|
var Pair = require_Pair();
|
|
@@ -19476,7 +19476,7 @@ var require_set = __commonJS((exports2) => {
|
|
|
19476
19476
|
exports2.set = set;
|
|
19477
19477
|
});
|
|
19478
19478
|
|
|
19479
|
-
// ../../
|
|
19479
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js
|
|
19480
19480
|
var require_timestamp = __commonJS((exports2) => {
|
|
19481
19481
|
var stringifyNumber = require_stringifyNumber();
|
|
19482
19482
|
function parseSexagesimal(str, asBigInt) {
|
|
@@ -19558,7 +19558,7 @@ var require_timestamp = __commonJS((exports2) => {
|
|
|
19558
19558
|
exports2.timestamp = timestamp;
|
|
19559
19559
|
});
|
|
19560
19560
|
|
|
19561
|
-
// ../../
|
|
19561
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/schema.js
|
|
19562
19562
|
var require_schema3 = __commonJS((exports2) => {
|
|
19563
19563
|
var map = require_map();
|
|
19564
19564
|
var _null = require_null();
|
|
@@ -19599,7 +19599,7 @@ var require_schema3 = __commonJS((exports2) => {
|
|
|
19599
19599
|
exports2.schema = schema;
|
|
19600
19600
|
});
|
|
19601
19601
|
|
|
19602
|
-
// ../../
|
|
19602
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/tags.js
|
|
19603
19603
|
var require_tags = __commonJS((exports2) => {
|
|
19604
19604
|
var map = require_map();
|
|
19605
19605
|
var _null = require_null();
|
|
@@ -19690,7 +19690,7 @@ var require_tags = __commonJS((exports2) => {
|
|
|
19690
19690
|
exports2.getTags = getTags;
|
|
19691
19691
|
});
|
|
19692
19692
|
|
|
19693
|
-
// ../../
|
|
19693
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/Schema.js
|
|
19694
19694
|
var require_Schema = __commonJS((exports2) => {
|
|
19695
19695
|
var identity = require_identity();
|
|
19696
19696
|
var map = require_map();
|
|
@@ -19720,7 +19720,7 @@ var require_Schema = __commonJS((exports2) => {
|
|
|
19720
19720
|
exports2.Schema = Schema;
|
|
19721
19721
|
});
|
|
19722
19722
|
|
|
19723
|
-
// ../../
|
|
19723
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyDocument.js
|
|
19724
19724
|
var require_stringifyDocument = __commonJS((exports2) => {
|
|
19725
19725
|
var identity = require_identity();
|
|
19726
19726
|
var stringify = require_stringify();
|
|
@@ -19800,7 +19800,7 @@ var require_stringifyDocument = __commonJS((exports2) => {
|
|
|
19800
19800
|
exports2.stringifyDocument = stringifyDocument;
|
|
19801
19801
|
});
|
|
19802
19802
|
|
|
19803
|
-
// ../../
|
|
19803
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/doc/Document.js
|
|
19804
19804
|
var require_Document = __commonJS((exports2) => {
|
|
19805
19805
|
var Alias = require_Alias();
|
|
19806
19806
|
var Collection = require_Collection();
|
|
@@ -20035,7 +20035,7 @@ var require_Document = __commonJS((exports2) => {
|
|
|
20035
20035
|
exports2.Document = Document;
|
|
20036
20036
|
});
|
|
20037
20037
|
|
|
20038
|
-
// ../../
|
|
20038
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/errors.js
|
|
20039
20039
|
var require_errors = __commonJS((exports2) => {
|
|
20040
20040
|
class YAMLError extends Error {
|
|
20041
20041
|
constructor(name, pos, code, message) {
|
|
@@ -20100,7 +20100,7 @@ ${pointer}
|
|
|
20100
20100
|
exports2.prettifyError = prettifyError;
|
|
20101
20101
|
});
|
|
20102
20102
|
|
|
20103
|
-
// ../../
|
|
20103
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-props.js
|
|
20104
20104
|
var require_resolve_props = __commonJS((exports2) => {
|
|
20105
20105
|
function resolveProps(tokens, { flow, indicator, next, offset, onError, parentIndent, startOnNewline }) {
|
|
20106
20106
|
let spaceBefore = false;
|
|
@@ -20230,7 +20230,7 @@ var require_resolve_props = __commonJS((exports2) => {
|
|
|
20230
20230
|
exports2.resolveProps = resolveProps;
|
|
20231
20231
|
});
|
|
20232
20232
|
|
|
20233
|
-
// ../../
|
|
20233
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/util-contains-newline.js
|
|
20234
20234
|
var require_util_contains_newline = __commonJS((exports2) => {
|
|
20235
20235
|
function containsNewline(key) {
|
|
20236
20236
|
if (!key)
|
|
@@ -20270,7 +20270,7 @@ var require_util_contains_newline = __commonJS((exports2) => {
|
|
|
20270
20270
|
exports2.containsNewline = containsNewline;
|
|
20271
20271
|
});
|
|
20272
20272
|
|
|
20273
|
-
// ../../
|
|
20273
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/util-flow-indent-check.js
|
|
20274
20274
|
var require_util_flow_indent_check = __commonJS((exports2) => {
|
|
20275
20275
|
var utilContainsNewline = require_util_contains_newline();
|
|
20276
20276
|
function flowIndentCheck(indent, fc, onError) {
|
|
@@ -20285,7 +20285,7 @@ var require_util_flow_indent_check = __commonJS((exports2) => {
|
|
|
20285
20285
|
exports2.flowIndentCheck = flowIndentCheck;
|
|
20286
20286
|
});
|
|
20287
20287
|
|
|
20288
|
-
// ../../
|
|
20288
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/util-map-includes.js
|
|
20289
20289
|
var require_util_map_includes = __commonJS((exports2) => {
|
|
20290
20290
|
var identity = require_identity();
|
|
20291
20291
|
function mapIncludes(ctx, items, search) {
|
|
@@ -20298,7 +20298,7 @@ var require_util_map_includes = __commonJS((exports2) => {
|
|
|
20298
20298
|
exports2.mapIncludes = mapIncludes;
|
|
20299
20299
|
});
|
|
20300
20300
|
|
|
20301
|
-
// ../../
|
|
20301
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-block-map.js
|
|
20302
20302
|
var require_resolve_block_map = __commonJS((exports2) => {
|
|
20303
20303
|
var Pair = require_Pair();
|
|
20304
20304
|
var YAMLMap = require_YAMLMap();
|
|
@@ -20405,7 +20405,7 @@ var require_resolve_block_map = __commonJS((exports2) => {
|
|
|
20405
20405
|
exports2.resolveBlockMap = resolveBlockMap;
|
|
20406
20406
|
});
|
|
20407
20407
|
|
|
20408
|
-
// ../../
|
|
20408
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-block-seq.js
|
|
20409
20409
|
var require_resolve_block_seq = __commonJS((exports2) => {
|
|
20410
20410
|
var YAMLSeq = require_YAMLSeq();
|
|
20411
20411
|
var resolveProps = require_resolve_props();
|
|
@@ -20453,7 +20453,7 @@ var require_resolve_block_seq = __commonJS((exports2) => {
|
|
|
20453
20453
|
exports2.resolveBlockSeq = resolveBlockSeq;
|
|
20454
20454
|
});
|
|
20455
20455
|
|
|
20456
|
-
// ../../
|
|
20456
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-end.js
|
|
20457
20457
|
var require_resolve_end = __commonJS((exports2) => {
|
|
20458
20458
|
function resolveEnd(end, offset, reqSpace, onError) {
|
|
20459
20459
|
let comment = "";
|
|
@@ -20493,7 +20493,7 @@ var require_resolve_end = __commonJS((exports2) => {
|
|
|
20493
20493
|
exports2.resolveEnd = resolveEnd;
|
|
20494
20494
|
});
|
|
20495
20495
|
|
|
20496
|
-
// ../../
|
|
20496
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-flow-collection.js
|
|
20497
20497
|
var require_resolve_flow_collection = __commonJS((exports2) => {
|
|
20498
20498
|
var identity = require_identity();
|
|
20499
20499
|
var Pair = require_Pair();
|
|
@@ -20684,7 +20684,7 @@ var require_resolve_flow_collection = __commonJS((exports2) => {
|
|
|
20684
20684
|
exports2.resolveFlowCollection = resolveFlowCollection;
|
|
20685
20685
|
});
|
|
20686
20686
|
|
|
20687
|
-
// ../../
|
|
20687
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/compose-collection.js
|
|
20688
20688
|
var require_compose_collection = __commonJS((exports2) => {
|
|
20689
20689
|
var identity = require_identity();
|
|
20690
20690
|
var Scalar = require_Scalar();
|
|
@@ -20746,7 +20746,7 @@ var require_compose_collection = __commonJS((exports2) => {
|
|
|
20746
20746
|
exports2.composeCollection = composeCollection;
|
|
20747
20747
|
});
|
|
20748
20748
|
|
|
20749
|
-
// ../../
|
|
20749
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-block-scalar.js
|
|
20750
20750
|
var require_resolve_block_scalar = __commonJS((exports2) => {
|
|
20751
20751
|
var Scalar = require_Scalar();
|
|
20752
20752
|
function resolveBlockScalar(ctx, scalar, onError) {
|
|
@@ -20939,7 +20939,7 @@ var require_resolve_block_scalar = __commonJS((exports2) => {
|
|
|
20939
20939
|
exports2.resolveBlockScalar = resolveBlockScalar;
|
|
20940
20940
|
});
|
|
20941
20941
|
|
|
20942
|
-
// ../../
|
|
20942
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-flow-scalar.js
|
|
20943
20943
|
var require_resolve_flow_scalar = __commonJS((exports2) => {
|
|
20944
20944
|
var Scalar = require_Scalar();
|
|
20945
20945
|
var resolveEnd = require_resolve_end();
|
|
@@ -21155,7 +21155,7 @@ var require_resolve_flow_scalar = __commonJS((exports2) => {
|
|
|
21155
21155
|
exports2.resolveFlowScalar = resolveFlowScalar;
|
|
21156
21156
|
});
|
|
21157
21157
|
|
|
21158
|
-
// ../../
|
|
21158
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/compose-scalar.js
|
|
21159
21159
|
var require_compose_scalar = __commonJS((exports2) => {
|
|
21160
21160
|
var identity = require_identity();
|
|
21161
21161
|
var Scalar = require_Scalar();
|
|
@@ -21233,7 +21233,7 @@ var require_compose_scalar = __commonJS((exports2) => {
|
|
|
21233
21233
|
exports2.composeScalar = composeScalar;
|
|
21234
21234
|
});
|
|
21235
21235
|
|
|
21236
|
-
// ../../
|
|
21236
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/util-empty-scalar-position.js
|
|
21237
21237
|
var require_util_empty_scalar_position = __commonJS((exports2) => {
|
|
21238
21238
|
function emptyScalarPosition(offset, before, pos) {
|
|
21239
21239
|
if (before) {
|
|
@@ -21260,7 +21260,7 @@ var require_util_empty_scalar_position = __commonJS((exports2) => {
|
|
|
21260
21260
|
exports2.emptyScalarPosition = emptyScalarPosition;
|
|
21261
21261
|
});
|
|
21262
21262
|
|
|
21263
|
-
// ../../
|
|
21263
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/compose-node.js
|
|
21264
21264
|
var require_compose_node = __commonJS((exports2) => {
|
|
21265
21265
|
var Alias = require_Alias();
|
|
21266
21266
|
var identity = require_identity();
|
|
@@ -21363,7 +21363,7 @@ var require_compose_node = __commonJS((exports2) => {
|
|
|
21363
21363
|
exports2.composeNode = composeNode;
|
|
21364
21364
|
});
|
|
21365
21365
|
|
|
21366
|
-
// ../../
|
|
21366
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/compose-doc.js
|
|
21367
21367
|
var require_compose_doc = __commonJS((exports2) => {
|
|
21368
21368
|
var Document = require_Document();
|
|
21369
21369
|
var composeNode = require_compose_node();
|
|
@@ -21403,7 +21403,7 @@ var require_compose_doc = __commonJS((exports2) => {
|
|
|
21403
21403
|
exports2.composeDoc = composeDoc;
|
|
21404
21404
|
});
|
|
21405
21405
|
|
|
21406
|
-
// ../../
|
|
21406
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/composer.js
|
|
21407
21407
|
var require_composer2 = __commonJS((exports2) => {
|
|
21408
21408
|
var node_process = __require("process");
|
|
21409
21409
|
var directives = require_directives();
|
|
@@ -21592,7 +21592,7 @@ ${end.comment}` : end.comment;
|
|
|
21592
21592
|
exports2.Composer = Composer;
|
|
21593
21593
|
});
|
|
21594
21594
|
|
|
21595
|
-
// ../../
|
|
21595
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/parse/cst-scalar.js
|
|
21596
21596
|
var require_cst_scalar = __commonJS((exports2) => {
|
|
21597
21597
|
var resolveBlockScalar = require_resolve_block_scalar();
|
|
21598
21598
|
var resolveFlowScalar = require_resolve_flow_scalar();
|
|
@@ -21782,7 +21782,7 @@ var require_cst_scalar = __commonJS((exports2) => {
|
|
|
21782
21782
|
exports2.setScalarValue = setScalarValue;
|
|
21783
21783
|
});
|
|
21784
21784
|
|
|
21785
|
-
// ../../
|
|
21785
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/parse/cst-stringify.js
|
|
21786
21786
|
var require_cst_stringify = __commonJS((exports2) => {
|
|
21787
21787
|
var stringify = (cst) => ("type" in cst) ? stringifyToken(cst) : stringifyItem(cst);
|
|
21788
21788
|
function stringifyToken(token) {
|
|
@@ -21840,7 +21840,7 @@ var require_cst_stringify = __commonJS((exports2) => {
|
|
|
21840
21840
|
exports2.stringify = stringify;
|
|
21841
21841
|
});
|
|
21842
21842
|
|
|
21843
|
-
// ../../
|
|
21843
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/parse/cst-visit.js
|
|
21844
21844
|
var require_cst_visit = __commonJS((exports2) => {
|
|
21845
21845
|
var BREAK = Symbol("break visit");
|
|
21846
21846
|
var SKIP = Symbol("skip children");
|
|
@@ -21899,7 +21899,7 @@ var require_cst_visit = __commonJS((exports2) => {
|
|
|
21899
21899
|
exports2.visit = visit;
|
|
21900
21900
|
});
|
|
21901
21901
|
|
|
21902
|
-
// ../../
|
|
21902
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/parse/cst.js
|
|
21903
21903
|
var require_cst = __commonJS((exports2) => {
|
|
21904
21904
|
var cstScalar = require_cst_scalar();
|
|
21905
21905
|
var cstStringify = require_cst_stringify();
|
|
@@ -22000,7 +22000,7 @@ var require_cst = __commonJS((exports2) => {
|
|
|
22000
22000
|
exports2.tokenType = tokenType;
|
|
22001
22001
|
});
|
|
22002
22002
|
|
|
22003
|
-
// ../../
|
|
22003
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/parse/lexer.js
|
|
22004
22004
|
var require_lexer = __commonJS((exports2) => {
|
|
22005
22005
|
var cst = require_cst();
|
|
22006
22006
|
function isEmpty2(ch) {
|
|
@@ -22586,7 +22586,7 @@ var require_lexer = __commonJS((exports2) => {
|
|
|
22586
22586
|
exports2.Lexer = Lexer;
|
|
22587
22587
|
});
|
|
22588
22588
|
|
|
22589
|
-
// ../../
|
|
22589
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/parse/line-counter.js
|
|
22590
22590
|
var require_line_counter = __commonJS((exports2) => {
|
|
22591
22591
|
class LineCounter {
|
|
22592
22592
|
constructor() {
|
|
@@ -22614,7 +22614,7 @@ var require_line_counter = __commonJS((exports2) => {
|
|
|
22614
22614
|
exports2.LineCounter = LineCounter;
|
|
22615
22615
|
});
|
|
22616
22616
|
|
|
22617
|
-
// ../../
|
|
22617
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/parse/parser.js
|
|
22618
22618
|
var require_parser = __commonJS((exports2) => {
|
|
22619
22619
|
var node_process = __require("process");
|
|
22620
22620
|
var cst = require_cst();
|
|
@@ -23463,7 +23463,7 @@ var require_parser = __commonJS((exports2) => {
|
|
|
23463
23463
|
exports2.Parser = Parser;
|
|
23464
23464
|
});
|
|
23465
23465
|
|
|
23466
|
-
// ../../
|
|
23466
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/public-api.js
|
|
23467
23467
|
var require_public_api = __commonJS((exports2) => {
|
|
23468
23468
|
var composer = require_composer2();
|
|
23469
23469
|
var Document = require_Document();
|
|
@@ -23557,7 +23557,7 @@ var require_public_api = __commonJS((exports2) => {
|
|
|
23557
23557
|
exports2.stringify = stringify;
|
|
23558
23558
|
});
|
|
23559
23559
|
|
|
23560
|
-
// ../../
|
|
23560
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/index.js
|
|
23561
23561
|
var composer, Document, Schema, errors2, Alias, identity, Pair, Scalar, YAMLMap, YAMLSeq, cst, lexer, lineCounter, parser, publicApi, visit, $Composer, $Document, $Schema, $YAMLError, $YAMLParseError, $YAMLWarning, $Alias, $isAlias, $isCollection, $isDocument, $isMap, $isNode, $isPair, $isScalar, $isSeq, $Pair, $Scalar, $YAMLMap, $YAMLSeq, $Lexer, $LineCounter, $Parser, $parse, $parseAllDocuments, $parseDocument, $stringify, $visit, $visitAsync;
|
|
23562
23562
|
var init_dist = __esm(() => {
|
|
23563
23563
|
composer = require_composer2();
|
|
@@ -25863,7 +25863,7 @@ function deriveSlug(inputs, existing) {
|
|
|
25863
25863
|
return `${base}_${n}`;
|
|
25864
25864
|
}
|
|
25865
25865
|
|
|
25866
|
-
// ../../
|
|
25866
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/boundary@2.0.0/node_modules/boundary/lib/index.js
|
|
25867
25867
|
var require_lib = __commonJS((exports2) => {
|
|
25868
25868
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
25869
25869
|
exports2.binarySearch = exports2.upperBound = exports2.lowerBound = exports2.compare = undefined;
|
|
@@ -25910,7 +25910,7 @@ var require_lib = __commonJS((exports2) => {
|
|
|
25910
25910
|
exports2.binarySearch = binarySearch;
|
|
25911
25911
|
});
|
|
25912
25912
|
|
|
25913
|
-
// ../../
|
|
25913
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/structured-source@4.0.0/node_modules/structured-source/lib/structured-source.js
|
|
25914
25914
|
var require_structured_source = __commonJS((exports2) => {
|
|
25915
25915
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
25916
25916
|
exports2.StructuredSource = undefined;
|
|
@@ -25965,13 +25965,13 @@ var require_structured_source = __commonJS((exports2) => {
|
|
|
25965
25965
|
}
|
|
25966
25966
|
exports2.StructuredSource = StructuredSource;
|
|
25967
25967
|
});
|
|
25968
|
-
// ../../
|
|
25968
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/@secretlint+core@12.2.0/node_modules/@secretlint/core/module/SecretLintSourceCodeImpl.js
|
|
25969
25969
|
var import_structured_source;
|
|
25970
25970
|
var init_SecretLintSourceCodeImpl = __esm(() => {
|
|
25971
25971
|
import_structured_source = __toESM(require_structured_source(), 1);
|
|
25972
25972
|
});
|
|
25973
25973
|
|
|
25974
|
-
// ../../
|
|
25974
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/@secretlint+core@12.2.0/node_modules/@secretlint/core/module/helper/promise-event-emitter.js
|
|
25975
25975
|
class EventEmitter {
|
|
25976
25976
|
#listeners = new Map;
|
|
25977
25977
|
on(type, listener) {
|
|
@@ -26010,9 +26010,9 @@ class EventEmitter {
|
|
|
26010
26010
|
return Array.from(this.#listeners.get(type) ?? []);
|
|
26011
26011
|
}
|
|
26012
26012
|
}
|
|
26013
|
-
// ../../
|
|
26013
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/@secretlint+core@12.2.0/node_modules/@secretlint/core/module/RuleContext.js
|
|
26014
26014
|
var init_RuleContext = () => {};
|
|
26015
|
-
// ../../
|
|
26015
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/@secretlint+profiler@12.2.0/node_modules/@secretlint/profiler/module/index.js
|
|
26016
26016
|
class SecretLintProfiler {
|
|
26017
26017
|
perf;
|
|
26018
26018
|
entries = [];
|
|
@@ -26069,7 +26069,7 @@ class SecretLintProfiler {
|
|
|
26069
26069
|
}
|
|
26070
26070
|
}
|
|
26071
26071
|
|
|
26072
|
-
// ../../
|
|
26072
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/@secretlint+profiler@12.2.0/node_modules/@secretlint/profiler/module/node.js
|
|
26073
26073
|
import perf_hooks from "node:perf_hooks";
|
|
26074
26074
|
|
|
26075
26075
|
class NullPerformanceObserver {
|
|
@@ -26084,19 +26084,19 @@ var init_node = __esm(() => {
|
|
|
26084
26084
|
});
|
|
26085
26085
|
});
|
|
26086
26086
|
|
|
26087
|
-
// ../../
|
|
26087
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/@secretlint+core@12.2.0/node_modules/@secretlint/core/module/RunningEvents.js
|
|
26088
26088
|
var init_RunningEvents = __esm(() => {
|
|
26089
26089
|
init_node();
|
|
26090
26090
|
});
|
|
26091
26091
|
|
|
26092
|
-
// ../../
|
|
26092
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/@secretlint+core@12.2.0/node_modules/@secretlint/core/module/RulePresetContext.js
|
|
26093
26093
|
var init_RulePresetContext = __esm(() => {
|
|
26094
26094
|
init_RuleContext();
|
|
26095
26095
|
});
|
|
26096
|
-
// ../../
|
|
26096
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/@secretlint+core@12.2.0/node_modules/@secretlint/core/module/messages/index.js
|
|
26097
26097
|
var init_messages = () => {};
|
|
26098
26098
|
|
|
26099
|
-
// ../../
|
|
26099
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/@secretlint+core@12.2.0/node_modules/@secretlint/core/module/index.js
|
|
26100
26100
|
var import_debug, debug;
|
|
26101
26101
|
var init_module = __esm(() => {
|
|
26102
26102
|
init_SecretLintSourceCodeImpl();
|
|
@@ -26109,7 +26109,7 @@ var init_module = __esm(() => {
|
|
|
26109
26109
|
debug = import_debug.default("@secretlint/core");
|
|
26110
26110
|
});
|
|
26111
26111
|
|
|
26112
|
-
// ../../
|
|
26112
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/@secretlint+secretlint-rule-preset-recommend@12.2.0/node_modules/@secretlint/secretlint-rule-preset-recommend/module/index.js
|
|
26113
26113
|
function requireLodash_uniq() {
|
|
26114
26114
|
if (hasRequiredLodash_uniq)
|
|
26115
26115
|
return lodash_uniq;
|
|
@@ -30156,6 +30156,11 @@ async function handleRequestConfigApproval(client3, msg, deps) {
|
|
|
30156
30156
|
reply("deny", `gateway serves '${deps.agentName}', not '${msg.agentName}'`, "dispatch_failure");
|
|
30157
30157
|
return;
|
|
30158
30158
|
}
|
|
30159
|
+
if (deps.tryAutoResolve?.(msg) === "approve") {
|
|
30160
|
+
deps.log?.(`config_approval_auto_resolved requestId=${msg.requestId} agent=${msg.agentName} (operator-tapped always-allow correlation)`);
|
|
30161
|
+
reply("approve");
|
|
30162
|
+
return;
|
|
30163
|
+
}
|
|
30159
30164
|
const target = deps.loadTargetChat();
|
|
30160
30165
|
if (target === null) {
|
|
30161
30166
|
reply("deny", "no target chat available \u2014 operator not paired?", "dispatch_failure");
|
|
@@ -31754,23 +31759,6 @@ function isTelegramSurfaceTool(toolName) {
|
|
|
31754
31759
|
return suffix === "reply" || suffix === "stream_reply" || suffix === "edit_message" || suffix === "react";
|
|
31755
31760
|
}
|
|
31756
31761
|
|
|
31757
|
-
// draft-transport.ts
|
|
31758
|
-
var DRAFT_STREAM_STATE_KEY = Symbol.for("switchroom.draftStreamState");
|
|
31759
|
-
function getDraftStreamState() {
|
|
31760
|
-
const g = globalThis;
|
|
31761
|
-
let state = g[DRAFT_STREAM_STATE_KEY];
|
|
31762
|
-
if (!state) {
|
|
31763
|
-
state = { nextDraftId: 0 };
|
|
31764
|
-
g[DRAFT_STREAM_STATE_KEY] = state;
|
|
31765
|
-
}
|
|
31766
|
-
return state;
|
|
31767
|
-
}
|
|
31768
|
-
function allocateDraftId() {
|
|
31769
|
-
const state = getDraftStreamState();
|
|
31770
|
-
state.nextDraftId = state.nextDraftId >= 2147483647 ? 1 : state.nextDraftId + 1;
|
|
31771
|
-
return state.nextDraftId;
|
|
31772
|
-
}
|
|
31773
|
-
|
|
31774
31762
|
// tool-activity-summary.ts
|
|
31775
31763
|
var READ_VERBS = new Set(["read"]);
|
|
31776
31764
|
var WRITE_VERBS = new Set(["wrote", "created", "edited"]);
|
|
@@ -31881,15 +31869,24 @@ function registerAndRender(state, toolName) {
|
|
|
31881
31869
|
return formatSummary(state);
|
|
31882
31870
|
}
|
|
31883
31871
|
var MIRROR_MAX_LINES = 6;
|
|
31872
|
+
function escapeFeedHtml(s) {
|
|
31873
|
+
return s.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">");
|
|
31874
|
+
}
|
|
31884
31875
|
function renderActivityFeed(lines) {
|
|
31885
31876
|
if (lines.length === 0)
|
|
31886
31877
|
return null;
|
|
31887
31878
|
const shown = lines.slice(-MIRROR_MAX_LINES);
|
|
31888
31879
|
const hidden = lines.length - shown.length;
|
|
31889
|
-
const
|
|
31880
|
+
const out = [];
|
|
31881
|
+
if (hidden > 0)
|
|
31882
|
+
out.push(`<i>\u2713 +${hidden} earlier\u2026</i>`);
|
|
31883
|
+
const lastIdx = shown.length - 1;
|
|
31884
|
+
shown.forEach((l, i) => {
|
|
31885
|
+
const esc = escapeFeedHtml(l);
|
|
31886
|
+
out.push(i === lastIdx ? `<b>\u2192 ${esc}</b>` : `<i>\u2713 ${esc}</i>`);
|
|
31887
|
+
});
|
|
31888
|
+
return out.join(`
|
|
31890
31889
|
`);
|
|
31891
|
-
return hidden > 0 ? `\u00b7 +${hidden} earlier\u2026
|
|
31892
|
-
${body}` : body;
|
|
31893
31890
|
}
|
|
31894
31891
|
function appendActivityLabel(lines, label) {
|
|
31895
31892
|
const l = (label ?? "").trim();
|
|
@@ -32205,18 +32202,18 @@ function isDraft429(err) {
|
|
|
32205
32202
|
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 : "" : "";
|
|
32206
32203
|
return /sendMessageDraft/i.test(text);
|
|
32207
32204
|
}
|
|
32208
|
-
var
|
|
32209
|
-
function
|
|
32205
|
+
var DRAFT_STREAM_STATE_KEY = Symbol.for("switchroom.draftStreamState");
|
|
32206
|
+
function getDraftStreamState() {
|
|
32210
32207
|
const g = globalThis;
|
|
32211
|
-
let state = g[
|
|
32208
|
+
let state = g[DRAFT_STREAM_STATE_KEY];
|
|
32212
32209
|
if (!state) {
|
|
32213
32210
|
state = { nextDraftId: 0 };
|
|
32214
|
-
g[
|
|
32211
|
+
g[DRAFT_STREAM_STATE_KEY] = state;
|
|
32215
32212
|
}
|
|
32216
32213
|
return state;
|
|
32217
32214
|
}
|
|
32218
|
-
function
|
|
32219
|
-
const state =
|
|
32215
|
+
function allocateDraftId() {
|
|
32216
|
+
const state = getDraftStreamState();
|
|
32220
32217
|
state.nextDraftId = state.nextDraftId >= 2147483647 ? 1 : state.nextDraftId + 1;
|
|
32221
32218
|
return state.nextDraftId;
|
|
32222
32219
|
}
|
|
@@ -32246,7 +32243,7 @@ function createDraftStream(send, edit, config = {}) {
|
|
|
32246
32243
|
warn?.('draft-stream: previewTransport="auto" with sendMessageDraft but isPrivateChat undefined \u2014 defaulting to message transport');
|
|
32247
32244
|
}
|
|
32248
32245
|
let usesDraftTransport = prefersDraft && draftApi != null;
|
|
32249
|
-
let draftId = usesDraftTransport ?
|
|
32246
|
+
let draftId = usesDraftTransport ? allocateDraftId() : undefined;
|
|
32250
32247
|
if (prefersDraft && !usesDraftTransport) {
|
|
32251
32248
|
warn?.("draft-stream: sendMessageDraft unavailable; falling back to sendMessage/editMessageText");
|
|
32252
32249
|
}
|
|
@@ -32354,7 +32351,7 @@ function createDraftStream(send, edit, config = {}) {
|
|
|
32354
32351
|
const newMsgId = await send(chunk);
|
|
32355
32352
|
messageId = newMsgId;
|
|
32356
32353
|
persistedTextLen = textToSend.length;
|
|
32357
|
-
draftId =
|
|
32354
|
+
draftId = allocateDraftId();
|
|
32358
32355
|
currentChunkStartedAt = null;
|
|
32359
32356
|
persistChainFires++;
|
|
32360
32357
|
sendFires++;
|
|
@@ -33338,7 +33335,7 @@ function clear(key) {
|
|
|
33338
33335
|
state.delete(key);
|
|
33339
33336
|
}
|
|
33340
33337
|
|
|
33341
|
-
// ../../
|
|
33338
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/posthog-node@5.29.2/node_modules/posthog-node/dist/extensions/error-tracking/modifiers/module.node.mjs
|
|
33342
33339
|
import { dirname as dirname2, posix, sep as sep2 } from "path";
|
|
33343
33340
|
function createModulerModifier() {
|
|
33344
33341
|
const getModuleFromFileName = createGetModuleFromFilename();
|
|
@@ -33374,7 +33371,7 @@ function normalizeWindowsPath(path) {
|
|
|
33374
33371
|
return path.replace(/^[A-Z]:/, "").replace(/\\/g, "/");
|
|
33375
33372
|
}
|
|
33376
33373
|
|
|
33377
|
-
// ../../
|
|
33374
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/featureFlagUtils.mjs
|
|
33378
33375
|
var normalizeFlagsResponse = (flagsResponse) => {
|
|
33379
33376
|
if ("flags" in flagsResponse) {
|
|
33380
33377
|
const featureFlags = getFlagValuesFromFlags(flagsResponse.flags);
|
|
@@ -33445,7 +33442,7 @@ var parsePayload = (response) => {
|
|
|
33445
33442
|
}
|
|
33446
33443
|
};
|
|
33447
33444
|
|
|
33448
|
-
// ../../
|
|
33445
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/gzip.mjs
|
|
33449
33446
|
function isGzipSupported() {
|
|
33450
33447
|
return "CompressionStream" in globalThis;
|
|
33451
33448
|
}
|
|
@@ -33465,7 +33462,7 @@ async function gzipCompress(input, isDebug = true) {
|
|
|
33465
33462
|
}
|
|
33466
33463
|
}
|
|
33467
33464
|
|
|
33468
|
-
// ../../
|
|
33465
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/vendor/uuidv7.mjs
|
|
33469
33466
|
/*! For license information please see uuidv7.mjs.LICENSE.txt */
|
|
33470
33467
|
var DIGITS = "0123456789abcdef";
|
|
33471
33468
|
|
|
@@ -33643,7 +33640,7 @@ var defaultGenerator;
|
|
|
33643
33640
|
var uuidv7 = () => uuidv7obj().toString();
|
|
33644
33641
|
var uuidv7obj = () => (defaultGenerator || (defaultGenerator = new V7Generator)).generate();
|
|
33645
33642
|
|
|
33646
|
-
// ../../
|
|
33643
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/types.mjs
|
|
33647
33644
|
var types_PostHogPersistedProperty = /* @__PURE__ */ function(PostHogPersistedProperty) {
|
|
33648
33645
|
PostHogPersistedProperty["AnonymousId"] = "anonymous_id";
|
|
33649
33646
|
PostHogPersistedProperty["DistinctId"] = "distinct_id";
|
|
@@ -33676,7 +33673,7 @@ var types_PostHogPersistedProperty = /* @__PURE__ */ function(PostHogPersistedPr
|
|
|
33676
33673
|
return PostHogPersistedProperty;
|
|
33677
33674
|
}({});
|
|
33678
33675
|
|
|
33679
|
-
// ../../
|
|
33676
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/utils/bot-detection.mjs
|
|
33680
33677
|
var DEFAULT_BLOCKED_UA_STRS = [
|
|
33681
33678
|
"amazonbot",
|
|
33682
33679
|
"amazonproductbot",
|
|
@@ -33765,7 +33762,7 @@ var isBlockedUA = function(ua, customBlockedUserAgents = []) {
|
|
|
33765
33762
|
return uaLower.indexOf(blockedUaLower) !== -1;
|
|
33766
33763
|
});
|
|
33767
33764
|
};
|
|
33768
|
-
// ../../
|
|
33765
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/utils/type-utils.mjs
|
|
33769
33766
|
var nativeIsArray = Array.isArray;
|
|
33770
33767
|
var ObjProto = Object.prototype;
|
|
33771
33768
|
var type_utils_hasOwnProperty = ObjProto.hasOwnProperty;
|
|
@@ -33802,7 +33799,7 @@ function isInstanceOf(candidate, base) {
|
|
|
33802
33799
|
}
|
|
33803
33800
|
}
|
|
33804
33801
|
|
|
33805
|
-
// ../../
|
|
33802
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/utils/number-utils.mjs
|
|
33806
33803
|
function clampToRange(value, min, max, logger, fallbackValue) {
|
|
33807
33804
|
if (min > max) {
|
|
33808
33805
|
logger.warn("min cannot be greater than max.");
|
|
@@ -33822,7 +33819,7 @@ function clampToRange(value, min, max, logger, fallbackValue) {
|
|
|
33822
33819
|
return clampToRange(fallbackValue || max, min, max, logger);
|
|
33823
33820
|
}
|
|
33824
33821
|
|
|
33825
|
-
// ../../
|
|
33822
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/utils/bucketed-rate-limiter.mjs
|
|
33826
33823
|
var ONE_DAY_IN_MS = 86400000;
|
|
33827
33824
|
|
|
33828
33825
|
class BucketedRateLimiter {
|
|
@@ -33866,7 +33863,7 @@ class BucketedRateLimiter {
|
|
|
33866
33863
|
this._buckets = {};
|
|
33867
33864
|
}
|
|
33868
33865
|
}
|
|
33869
|
-
// ../../
|
|
33866
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/utils/promise-queue.mjs
|
|
33870
33867
|
class PromiseQueue {
|
|
33871
33868
|
add(promise) {
|
|
33872
33869
|
const promiseUUID = uuidv7();
|
|
@@ -33892,7 +33889,7 @@ class PromiseQueue {
|
|
|
33892
33889
|
this.promiseByIds = {};
|
|
33893
33890
|
}
|
|
33894
33891
|
}
|
|
33895
|
-
// ../../
|
|
33892
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/utils/logger.mjs
|
|
33896
33893
|
function createConsole(consoleLike = console) {
|
|
33897
33894
|
const lockedMethods = {
|
|
33898
33895
|
log: consoleLike.log.bind(consoleLike),
|
|
@@ -33930,7 +33927,7 @@ var passThrough = (fn) => fn();
|
|
|
33930
33927
|
function createLogger(prefix, maybeCall = passThrough) {
|
|
33931
33928
|
return _createLogger(prefix, maybeCall, createConsole());
|
|
33932
33929
|
}
|
|
33933
|
-
// ../../
|
|
33930
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/utils/user-agent-utils.mjs
|
|
33934
33931
|
var MOBILE = "Mobile";
|
|
33935
33932
|
var IOS = "iOS";
|
|
33936
33933
|
var ANDROID = "Android";
|
|
@@ -34187,7 +34184,7 @@ var osMatchers = [
|
|
|
34187
34184
|
]
|
|
34188
34185
|
];
|
|
34189
34186
|
|
|
34190
|
-
// ../../
|
|
34187
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/utils/index.mjs
|
|
34191
34188
|
var STRING_FORMAT = "utf8";
|
|
34192
34189
|
function assert(truthyValue, message) {
|
|
34193
34190
|
if (!truthyValue || typeof truthyValue != "string" || isEmpty(truthyValue))
|
|
@@ -34235,7 +34232,7 @@ function allSettled(promises) {
|
|
|
34235
34232
|
reason
|
|
34236
34233
|
}))));
|
|
34237
34234
|
}
|
|
34238
|
-
// ../../
|
|
34235
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/eventemitter.mjs
|
|
34239
34236
|
class SimpleEventEmitter {
|
|
34240
34237
|
constructor() {
|
|
34241
34238
|
this.events = {};
|
|
@@ -34257,7 +34254,7 @@ class SimpleEventEmitter {
|
|
|
34257
34254
|
}
|
|
34258
34255
|
}
|
|
34259
34256
|
|
|
34260
|
-
// ../../
|
|
34257
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/posthog-core-stateless.mjs
|
|
34261
34258
|
class PostHogFetchHttpError extends Error {
|
|
34262
34259
|
constructor(response, reqByteLength) {
|
|
34263
34260
|
super("HTTP error while fetching PostHog: status=" + response.status + ", reqByteLength=" + reqByteLength), this.response = response, this.reqByteLength = reqByteLength, this.name = "PostHogFetchHttpError";
|
|
@@ -34972,7 +34969,7 @@ class PostHogCoreStateless {
|
|
|
34972
34969
|
return this.shutdownPromise;
|
|
34973
34970
|
}
|
|
34974
34971
|
}
|
|
34975
|
-
// ../../
|
|
34972
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/index.mjs
|
|
34976
34973
|
var exports_error_tracking = {};
|
|
34977
34974
|
__export(exports_error_tracking, {
|
|
34978
34975
|
winjsStackLineParser: () => winjsStackLineParser,
|
|
@@ -34996,7 +34993,7 @@ __export(exports_error_tracking, {
|
|
|
34996
34993
|
DOMExceptionCoercer: () => DOMExceptionCoercer
|
|
34997
34994
|
});
|
|
34998
34995
|
|
|
34999
|
-
// ../../
|
|
34996
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/chunk-ids.mjs
|
|
35000
34997
|
var parsedStackResults;
|
|
35001
34998
|
var lastKeysCount;
|
|
35002
34999
|
var cachedFilenameChunkIds;
|
|
@@ -35035,7 +35032,7 @@ function getFilenameToChunkIdMap(stackParser) {
|
|
|
35035
35032
|
return cachedFilenameChunkIds;
|
|
35036
35033
|
}
|
|
35037
35034
|
|
|
35038
|
-
// ../../
|
|
35035
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/error-properties-builder.mjs
|
|
35039
35036
|
var MAX_CAUSE_RECURSION = 4;
|
|
35040
35037
|
|
|
35041
35038
|
class ErrorPropertiesBuilder {
|
|
@@ -35157,7 +35154,7 @@ class ErrorPropertiesBuilder {
|
|
|
35157
35154
|
return context;
|
|
35158
35155
|
}
|
|
35159
35156
|
}
|
|
35160
|
-
// ../../
|
|
35157
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/parsers/base.mjs
|
|
35161
35158
|
var UNKNOWN_FUNCTION = "?";
|
|
35162
35159
|
function createFrame(platform, filename, func, lineno, colno) {
|
|
35163
35160
|
const frame = {
|
|
@@ -35173,7 +35170,7 @@ function createFrame(platform, filename, func, lineno, colno) {
|
|
|
35173
35170
|
return frame;
|
|
35174
35171
|
}
|
|
35175
35172
|
|
|
35176
|
-
// ../../
|
|
35173
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/parsers/safari.mjs
|
|
35177
35174
|
var extractSafariExtensionDetails = (func, filename) => {
|
|
35178
35175
|
const isSafariExtension = func.indexOf("safari-extension") !== -1;
|
|
35179
35176
|
const isSafariWebExtension = func.indexOf("safari-web-extension") !== -1;
|
|
@@ -35186,7 +35183,7 @@ var extractSafariExtensionDetails = (func, filename) => {
|
|
|
35186
35183
|
];
|
|
35187
35184
|
};
|
|
35188
35185
|
|
|
35189
|
-
// ../../
|
|
35186
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/parsers/chrome.mjs
|
|
35190
35187
|
var chromeRegexNoFnName = /^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i;
|
|
35191
35188
|
var chromeRegex = /^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i;
|
|
35192
35189
|
var chromeEvalRegex = /\((\S*)(?::(\d+))(?::(\d+))\)/;
|
|
@@ -35212,7 +35209,7 @@ var chromeStackLineParser = (line, platform) => {
|
|
|
35212
35209
|
}
|
|
35213
35210
|
};
|
|
35214
35211
|
|
|
35215
|
-
// ../../
|
|
35212
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/parsers/gecko.mjs
|
|
35216
35213
|
var geckoREgex = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i;
|
|
35217
35214
|
var geckoEvalRegex = /(\S+) line (\d+)(?: > eval line \d+)* > eval/i;
|
|
35218
35215
|
var geckoStackLineParser = (line, platform) => {
|
|
@@ -35235,14 +35232,14 @@ var geckoStackLineParser = (line, platform) => {
|
|
|
35235
35232
|
}
|
|
35236
35233
|
};
|
|
35237
35234
|
|
|
35238
|
-
// ../../
|
|
35235
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/parsers/winjs.mjs
|
|
35239
35236
|
var winjsRegex = /^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i;
|
|
35240
35237
|
var winjsStackLineParser = (line, platform) => {
|
|
35241
35238
|
const parts = winjsRegex.exec(line);
|
|
35242
35239
|
return parts ? createFrame(platform, parts[2], parts[1] || UNKNOWN_FUNCTION, +parts[3], parts[4] ? +parts[4] : undefined) : undefined;
|
|
35243
35240
|
};
|
|
35244
35241
|
|
|
35245
|
-
// ../../
|
|
35242
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/parsers/opera.mjs
|
|
35246
35243
|
var opera10Regex = / line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i;
|
|
35247
35244
|
var opera10StackLineParser = (line, platform) => {
|
|
35248
35245
|
const parts = opera10Regex.exec(line);
|
|
@@ -35254,7 +35251,7 @@ var opera11StackLineParser = (line, platform) => {
|
|
|
35254
35251
|
return parts ? createFrame(platform, parts[5], parts[3] || parts[4] || UNKNOWN_FUNCTION, +parts[1], +parts[2]) : undefined;
|
|
35255
35252
|
};
|
|
35256
35253
|
|
|
35257
|
-
// ../../
|
|
35254
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/parsers/node.mjs
|
|
35258
35255
|
var FILENAME_MATCH = /^\s*[-]{4,}$/;
|
|
35259
35256
|
var FULL_MATCH = /at (?:async )?(?:(.+?)\s+\()?(?:(.+):(\d+):(\d+)?|([^)]+))\)?/;
|
|
35260
35257
|
var nodeStackLineParser = (line, platform) => {
|
|
@@ -35323,7 +35320,7 @@ function _parseIntOrUndefined(input) {
|
|
|
35323
35320
|
return parseInt(input || "", 10) || undefined;
|
|
35324
35321
|
}
|
|
35325
35322
|
|
|
35326
|
-
// ../../
|
|
35323
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/parsers/index.mjs
|
|
35327
35324
|
var WEBPACK_ERROR_REGEXP = /\(error: (.*)\)/;
|
|
35328
35325
|
var STACKTRACE_FRAME_LIMIT = 50;
|
|
35329
35326
|
function reverseAndStripFrames(stack) {
|
|
@@ -35368,7 +35365,7 @@ function createStackParser(platform, ...parsers) {
|
|
|
35368
35365
|
return reverseAndStripFrames(frames);
|
|
35369
35366
|
};
|
|
35370
35367
|
}
|
|
35371
|
-
// ../../
|
|
35368
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/coercers/dom-exception-coercer.mjs
|
|
35372
35369
|
class DOMExceptionCoercer {
|
|
35373
35370
|
match(err) {
|
|
35374
35371
|
return this.isDOMException(err) || this.isDOMError(err);
|
|
@@ -35398,7 +35395,7 @@ class DOMExceptionCoercer {
|
|
|
35398
35395
|
return isBuiltin(err, "DOMError");
|
|
35399
35396
|
}
|
|
35400
35397
|
}
|
|
35401
|
-
// ../../
|
|
35398
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/coercers/error-coercer.mjs
|
|
35402
35399
|
class ErrorCoercer {
|
|
35403
35400
|
match(err) {
|
|
35404
35401
|
return isPlainError(err);
|
|
@@ -35425,7 +35422,7 @@ class ErrorCoercer {
|
|
|
35425
35422
|
return err.stacktrace || err.stack || undefined;
|
|
35426
35423
|
}
|
|
35427
35424
|
}
|
|
35428
|
-
// ../../
|
|
35425
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/coercers/error-event-coercer.mjs
|
|
35429
35426
|
class ErrorEventCoercer {
|
|
35430
35427
|
constructor() {}
|
|
35431
35428
|
match(err) {
|
|
@@ -35443,7 +35440,7 @@ class ErrorEventCoercer {
|
|
|
35443
35440
|
return exceptionLike;
|
|
35444
35441
|
}
|
|
35445
35442
|
}
|
|
35446
|
-
// ../../
|
|
35443
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/coercers/string-coercer.mjs
|
|
35447
35444
|
var ERROR_TYPES_PATTERN = /^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;
|
|
35448
35445
|
|
|
35449
35446
|
class StringCoercer {
|
|
@@ -35473,7 +35470,7 @@ class StringCoercer {
|
|
|
35473
35470
|
];
|
|
35474
35471
|
}
|
|
35475
35472
|
}
|
|
35476
|
-
// ../../
|
|
35473
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/types.mjs
|
|
35477
35474
|
var severityLevels = [
|
|
35478
35475
|
"fatal",
|
|
35479
35476
|
"error",
|
|
@@ -35483,7 +35480,7 @@ var severityLevels = [
|
|
|
35483
35480
|
"debug"
|
|
35484
35481
|
];
|
|
35485
35482
|
|
|
35486
|
-
// ../../
|
|
35483
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/coercers/utils.mjs
|
|
35487
35484
|
function extractExceptionKeysForMessage(err, maxLength = 40) {
|
|
35488
35485
|
const keys = Object.keys(err);
|
|
35489
35486
|
keys.sort();
|
|
@@ -35500,7 +35497,7 @@ function extractExceptionKeysForMessage(err, maxLength = 40) {
|
|
|
35500
35497
|
return "";
|
|
35501
35498
|
}
|
|
35502
35499
|
|
|
35503
|
-
// ../../
|
|
35500
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/coercers/object-coercer.mjs
|
|
35504
35501
|
class ObjectCoercer {
|
|
35505
35502
|
match(candidate) {
|
|
35506
35503
|
return typeof candidate == "object" && candidate !== null;
|
|
@@ -35553,7 +35550,7 @@ class ObjectCoercer {
|
|
|
35553
35550
|
}
|
|
35554
35551
|
}
|
|
35555
35552
|
}
|
|
35556
|
-
// ../../
|
|
35553
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/coercers/event-coercer.mjs
|
|
35557
35554
|
class EventCoercer {
|
|
35558
35555
|
match(err) {
|
|
35559
35556
|
return isEvent(err);
|
|
@@ -35568,7 +35565,7 @@ class EventCoercer {
|
|
|
35568
35565
|
};
|
|
35569
35566
|
}
|
|
35570
35567
|
}
|
|
35571
|
-
// ../../
|
|
35568
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/coercers/primitive-coercer.mjs
|
|
35572
35569
|
class PrimitiveCoercer {
|
|
35573
35570
|
match(candidate) {
|
|
35574
35571
|
return isPrimitive(candidate);
|
|
@@ -35582,7 +35579,7 @@ class PrimitiveCoercer {
|
|
|
35582
35579
|
};
|
|
35583
35580
|
}
|
|
35584
35581
|
}
|
|
35585
|
-
// ../../
|
|
35582
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/coercers/promise-rejection-event.mjs
|
|
35586
35583
|
class PromiseRejectionEventCoercer {
|
|
35587
35584
|
match(err) {
|
|
35588
35585
|
return isBuiltin(err, "PromiseRejectionEvent") || this.isCustomEventWrappingRejection(err);
|
|
@@ -35618,7 +35615,7 @@ class PromiseRejectionEventCoercer {
|
|
|
35618
35615
|
return error;
|
|
35619
35616
|
}
|
|
35620
35617
|
}
|
|
35621
|
-
// ../../
|
|
35618
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/@posthog+core@1.25.2/node_modules/@posthog/core/dist/error-tracking/utils.mjs
|
|
35622
35619
|
class ReduceableCache {
|
|
35623
35620
|
constructor(_maxSize) {
|
|
35624
35621
|
this._maxSize = _maxSize;
|
|
@@ -35643,7 +35640,7 @@ class ReduceableCache {
|
|
|
35643
35640
|
}
|
|
35644
35641
|
}
|
|
35645
35642
|
}
|
|
35646
|
-
// ../../
|
|
35643
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/posthog-node@5.29.2/node_modules/posthog-node/dist/extensions/error-tracking/modifiers/context-lines.node.mjs
|
|
35647
35644
|
import { createReadStream } from "node:fs";
|
|
35648
35645
|
import { createInterface } from "node:readline";
|
|
35649
35646
|
var LRU_FILE_CONTENTS_CACHE = new exports_error_tracking.ReduceableCache(25);
|
|
@@ -35861,7 +35858,7 @@ function snipLine(line, colno) {
|
|
|
35861
35858
|
return newLine;
|
|
35862
35859
|
}
|
|
35863
35860
|
|
|
35864
|
-
// ../../
|
|
35861
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/posthog-node@5.29.2/node_modules/posthog-node/dist/extensions/error-tracking/autocapture.mjs
|
|
35865
35862
|
function makeUncaughtExceptionHandler(captureFn, onFatalFn) {
|
|
35866
35863
|
let calledFatalError = false;
|
|
35867
35864
|
return Object.assign((error) => {
|
|
@@ -35893,7 +35890,7 @@ function addUnhandledRejectionListener(captureFn) {
|
|
|
35893
35890
|
}));
|
|
35894
35891
|
}
|
|
35895
35892
|
|
|
35896
|
-
// ../../
|
|
35893
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/posthog-node@5.29.2/node_modules/posthog-node/dist/extensions/error-tracking/index.mjs
|
|
35897
35894
|
var SHUTDOWN_TIMEOUT = 2000;
|
|
35898
35895
|
|
|
35899
35896
|
class ErrorTracking {
|
|
@@ -35962,10 +35959,10 @@ class ErrorTracking {
|
|
|
35962
35959
|
}
|
|
35963
35960
|
}
|
|
35964
35961
|
|
|
35965
|
-
// ../../
|
|
35962
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/posthog-node@5.29.2/node_modules/posthog-node/dist/version.mjs
|
|
35966
35963
|
var version = "5.29.2";
|
|
35967
35964
|
|
|
35968
|
-
// ../../
|
|
35965
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/posthog-node@5.29.2/node_modules/posthog-node/dist/types.mjs
|
|
35969
35966
|
var FeatureFlagError2 = {
|
|
35970
35967
|
ERRORS_WHILE_COMPUTING: "errors_while_computing_flags",
|
|
35971
35968
|
FLAG_MISSING: "flag_missing",
|
|
@@ -35973,7 +35970,7 @@ var FeatureFlagError2 = {
|
|
|
35973
35970
|
UNKNOWN_ERROR: "unknown_error"
|
|
35974
35971
|
};
|
|
35975
35972
|
|
|
35976
|
-
// ../../
|
|
35973
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/posthog-node@5.29.2/node_modules/posthog-node/dist/extensions/feature-flags/crypto.mjs
|
|
35977
35974
|
async function hashSHA1(text) {
|
|
35978
35975
|
const subtle = globalThis.crypto?.subtle;
|
|
35979
35976
|
if (!subtle)
|
|
@@ -35983,7 +35980,7 @@ async function hashSHA1(text) {
|
|
|
35983
35980
|
return hashArray.map((byte) => byte.toString(16).padStart(2, "0")).join("");
|
|
35984
35981
|
}
|
|
35985
35982
|
|
|
35986
|
-
// ../../
|
|
35983
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/posthog-node@5.29.2/node_modules/posthog-node/dist/extensions/feature-flags/feature-flags.mjs
|
|
35987
35984
|
var SIXTY_SECONDS = 60000;
|
|
35988
35985
|
var LONG_SCALE = 1152921504606847000;
|
|
35989
35986
|
var NULL_VALUES_ALLOWED_OPERATORS = [
|
|
@@ -36857,7 +36854,7 @@ function relativeDateParseForFeatureFlagMatching(value) {
|
|
|
36857
36854
|
}
|
|
36858
36855
|
}
|
|
36859
36856
|
|
|
36860
|
-
// ../../
|
|
36857
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/posthog-node@5.29.2/node_modules/posthog-node/dist/storage-memory.mjs
|
|
36861
36858
|
class PostHogMemoryStorage {
|
|
36862
36859
|
getProperty(key) {
|
|
36863
36860
|
return this._memoryStorage[key];
|
|
@@ -36870,7 +36867,7 @@ class PostHogMemoryStorage {
|
|
|
36870
36867
|
}
|
|
36871
36868
|
}
|
|
36872
36869
|
|
|
36873
|
-
// ../../
|
|
36870
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/posthog-node@5.29.2/node_modules/posthog-node/dist/client.mjs
|
|
36874
36871
|
var MINIMUM_POLLING_INTERVAL = 100;
|
|
36875
36872
|
var THIRTY_SECONDS = 30000;
|
|
36876
36873
|
var MAX_CACHE_SIZE = 50000;
|
|
@@ -37658,7 +37655,7 @@ class PostHogBackendClient extends PostHogCoreStateless {
|
|
|
37658
37655
|
}
|
|
37659
37656
|
}
|
|
37660
37657
|
|
|
37661
|
-
// ../../
|
|
37658
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/posthog-node@5.29.2/node_modules/posthog-node/dist/extensions/context/context.mjs
|
|
37662
37659
|
import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
|
|
37663
37660
|
|
|
37664
37661
|
class PostHogContext {
|
|
@@ -37689,7 +37686,7 @@ class PostHogContext {
|
|
|
37689
37686
|
}
|
|
37690
37687
|
}
|
|
37691
37688
|
|
|
37692
|
-
// ../../
|
|
37689
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/posthog-node@5.29.2/node_modules/posthog-node/dist/extensions/sentry-integration.mjs
|
|
37693
37690
|
var NAME = "posthog-node";
|
|
37694
37691
|
function createEventProcessor(_posthog, { organization, projectId, prefix, severityAllowList = [
|
|
37695
37692
|
"error"
|
|
@@ -37757,7 +37754,7 @@ class PostHogSentryIntegration {
|
|
|
37757
37754
|
};
|
|
37758
37755
|
}
|
|
37759
37756
|
}
|
|
37760
|
-
// ../../
|
|
37757
|
+
// ../../sr-rel-v0.14.3/node_modules/.bun/posthog-node@5.29.2/node_modules/posthog-node/dist/entrypoints/index.node.mjs
|
|
37761
37758
|
ErrorTracking.errorPropertiesBuilder = new exports_error_tracking.ErrorPropertiesBuilder([
|
|
37762
37759
|
new exports_error_tracking.EventCoercer,
|
|
37763
37760
|
new exports_error_tracking.ErrorCoercer,
|
|
@@ -38636,7 +38633,7 @@ var TRIVIAL_CONFIRMATIONS = new Set(["SENT", "DONE", "OK", "OKAY", "ACK"]);
|
|
|
38636
38633
|
var MIN_INITIAL_CHARS = 50;
|
|
38637
38634
|
var DEFAULT_THROTTLE_MS = 1000;
|
|
38638
38635
|
var TELEGRAM_MAX_CHARS2 = 4096;
|
|
38639
|
-
var
|
|
38636
|
+
var allocateDraftId2 = allocateDraftId;
|
|
38640
38637
|
function createAnswerStream(config) {
|
|
38641
38638
|
const {
|
|
38642
38639
|
chatId,
|
|
@@ -38659,7 +38656,7 @@ function createAnswerStream(config) {
|
|
|
38659
38656
|
const effectiveThrottle = Math.max(250, throttleMs);
|
|
38660
38657
|
const preferDraft = isPrivateChat && draftApi != null;
|
|
38661
38658
|
let usesDraftTransport = preferDraft;
|
|
38662
|
-
let draftId = preferDraft ?
|
|
38659
|
+
let draftId = preferDraft ? allocateDraftId2() : undefined;
|
|
38663
38660
|
let streamMsgId;
|
|
38664
38661
|
let pendingText = null;
|
|
38665
38662
|
let lastSentText = "";
|
|
@@ -38908,7 +38905,7 @@ function createAnswerStream(config) {
|
|
|
38908
38905
|
if (staleDraftId != null) {
|
|
38909
38906
|
clearDraftBestEffort(staleDraftId);
|
|
38910
38907
|
}
|
|
38911
|
-
draftId =
|
|
38908
|
+
draftId = allocateDraftId2();
|
|
38912
38909
|
}
|
|
38913
38910
|
log?.(`answer-stream: forceNewMessage (gen=${generation})`);
|
|
38914
38911
|
},
|
|
@@ -44601,14 +44598,14 @@ function hostdWillBeUsed(agentName3) {
|
|
|
44601
44598
|
return false;
|
|
44602
44599
|
return existsSync20(hostdSocketPath(agentName3));
|
|
44603
44600
|
}
|
|
44604
|
-
async function tryHostdDispatch(agentName3, req) {
|
|
44601
|
+
async function tryHostdDispatch(agentName3, req, timeoutMs = 5000) {
|
|
44605
44602
|
if (!isHostdEnabled())
|
|
44606
44603
|
return "not-configured";
|
|
44607
44604
|
const sockPath = hostdSocketPath(agentName3);
|
|
44608
44605
|
if (!existsSync20(sockPath))
|
|
44609
44606
|
return "not-configured";
|
|
44610
44607
|
try {
|
|
44611
|
-
return await hostdRequest({ socketPath: sockPath, timeoutMs
|
|
44608
|
+
return await hostdRequest({ socketPath: sockPath, timeoutMs }, req);
|
|
44612
44609
|
} catch (err) {
|
|
44613
44610
|
process.stderr.write(`telegram gateway: hostd dispatch failed ` + `(request_id=${req.request_id} op=${req.op}): ` + `${err.message}
|
|
44614
44611
|
`);
|
|
@@ -49775,6 +49772,247 @@ function isRulePersisted(resolvedAllow, ruleRule) {
|
|
|
49775
49772
|
return resolvedAllow.includes(ruleRule);
|
|
49776
49773
|
}
|
|
49777
49774
|
|
|
49775
|
+
// permission-diff.ts
|
|
49776
|
+
var TARGET_HEADER_A = "--- a/switchroom.yaml";
|
|
49777
|
+
var TARGET_HEADER_B = "+++ b/switchroom.yaml";
|
|
49778
|
+
function indentOf(line) {
|
|
49779
|
+
let n = 0;
|
|
49780
|
+
while (n < line.length && line[n] === " ")
|
|
49781
|
+
n++;
|
|
49782
|
+
return n;
|
|
49783
|
+
}
|
|
49784
|
+
function isBlankOrComment(line) {
|
|
49785
|
+
const t = line.trim();
|
|
49786
|
+
return t.length === 0 || t.startsWith("#");
|
|
49787
|
+
}
|
|
49788
|
+
function locateAgentBlock(lines, agentName3) {
|
|
49789
|
+
let agentsIdx = -1;
|
|
49790
|
+
let agentsIndent = 0;
|
|
49791
|
+
for (let i = 0;i < lines.length; i++) {
|
|
49792
|
+
const line = lines[i];
|
|
49793
|
+
if (isBlankOrComment(line))
|
|
49794
|
+
continue;
|
|
49795
|
+
if (line.trim() === "agents:") {
|
|
49796
|
+
agentsIdx = i;
|
|
49797
|
+
agentsIndent = indentOf(line);
|
|
49798
|
+
break;
|
|
49799
|
+
}
|
|
49800
|
+
}
|
|
49801
|
+
if (agentsIdx === -1)
|
|
49802
|
+
return null;
|
|
49803
|
+
let childIndent = -1;
|
|
49804
|
+
for (let i = agentsIdx + 1;i < lines.length; i++) {
|
|
49805
|
+
const line = lines[i];
|
|
49806
|
+
if (isBlankOrComment(line))
|
|
49807
|
+
continue;
|
|
49808
|
+
const ind = indentOf(line);
|
|
49809
|
+
if (ind <= agentsIndent)
|
|
49810
|
+
break;
|
|
49811
|
+
if (childIndent === -1)
|
|
49812
|
+
childIndent = ind;
|
|
49813
|
+
if (ind !== childIndent)
|
|
49814
|
+
continue;
|
|
49815
|
+
const key = line.slice(ind).split(":")[0].trim();
|
|
49816
|
+
if (key === agentName3) {
|
|
49817
|
+
let end = lines.length;
|
|
49818
|
+
for (let j = i + 1;j < lines.length; j++) {
|
|
49819
|
+
const l2 = lines[j];
|
|
49820
|
+
if (isBlankOrComment(l2))
|
|
49821
|
+
continue;
|
|
49822
|
+
if (indentOf(l2) <= ind) {
|
|
49823
|
+
end = j;
|
|
49824
|
+
break;
|
|
49825
|
+
}
|
|
49826
|
+
}
|
|
49827
|
+
return { agentIndent: ind, agentLineIdx: i, agentBlockEnd: end };
|
|
49828
|
+
}
|
|
49829
|
+
}
|
|
49830
|
+
return null;
|
|
49831
|
+
}
|
|
49832
|
+
function locateToolsLine(lines, block) {
|
|
49833
|
+
for (let i = block.agentLineIdx + 1;i < block.agentBlockEnd; i++) {
|
|
49834
|
+
const line = lines[i];
|
|
49835
|
+
if (isBlankOrComment(line))
|
|
49836
|
+
continue;
|
|
49837
|
+
const ind = indentOf(line);
|
|
49838
|
+
if (ind <= block.agentIndent)
|
|
49839
|
+
break;
|
|
49840
|
+
const key = line.slice(ind).split(":")[0].trim();
|
|
49841
|
+
if (key === "tools" && ind === block.agentIndent + 2) {
|
|
49842
|
+
return { idx: i, indent: ind };
|
|
49843
|
+
}
|
|
49844
|
+
}
|
|
49845
|
+
return null;
|
|
49846
|
+
}
|
|
49847
|
+
function locateAllowLine(lines, toolsIdx, toolsIndent, blockEnd) {
|
|
49848
|
+
for (let i = toolsIdx + 1;i < blockEnd; i++) {
|
|
49849
|
+
const line = lines[i];
|
|
49850
|
+
if (isBlankOrComment(line))
|
|
49851
|
+
continue;
|
|
49852
|
+
const ind = indentOf(line);
|
|
49853
|
+
if (ind <= toolsIndent)
|
|
49854
|
+
break;
|
|
49855
|
+
const key = line.slice(ind).split(":")[0].trim();
|
|
49856
|
+
if (key === "allow" && ind === toolsIndent + 2) {
|
|
49857
|
+
const after = line.slice(line.indexOf(":") + 1);
|
|
49858
|
+
return { idx: i, indent: ind, inline: after };
|
|
49859
|
+
}
|
|
49860
|
+
}
|
|
49861
|
+
return null;
|
|
49862
|
+
}
|
|
49863
|
+
function buildHunk(lines, changeStart, changeEnd, removed, added, contextN = 3) {
|
|
49864
|
+
const preStart = Math.max(0, changeStart - contextN);
|
|
49865
|
+
let postEnd = Math.min(lines.length, changeEnd + contextN);
|
|
49866
|
+
if (postEnd === lines.length && lines.length > 0 && lines[lines.length - 1] === "") {
|
|
49867
|
+
postEnd -= 1;
|
|
49868
|
+
}
|
|
49869
|
+
const pre = lines.slice(preStart, changeStart);
|
|
49870
|
+
const post = lines.slice(changeEnd, Math.max(changeEnd, postEnd));
|
|
49871
|
+
const oldCount = pre.length + removed.length + post.length;
|
|
49872
|
+
const newCount = pre.length + added.length + post.length;
|
|
49873
|
+
const oldStartLine = preStart + 1;
|
|
49874
|
+
const newStartLine = preStart + 1;
|
|
49875
|
+
const out = [];
|
|
49876
|
+
out.push(`@@ -${oldStartLine},${oldCount} +${newStartLine},${newCount} @@`);
|
|
49877
|
+
for (const l of pre)
|
|
49878
|
+
out.push(` ${l}`);
|
|
49879
|
+
for (const l of removed)
|
|
49880
|
+
out.push(`-${l}`);
|
|
49881
|
+
for (const l of added)
|
|
49882
|
+
out.push(`+${l}`);
|
|
49883
|
+
for (const l of post)
|
|
49884
|
+
out.push(` ${l}`);
|
|
49885
|
+
return out.join(`
|
|
49886
|
+
`);
|
|
49887
|
+
}
|
|
49888
|
+
function wrapDiff(hunk) {
|
|
49889
|
+
return `${TARGET_HEADER_A}
|
|
49890
|
+
${TARGET_HEADER_B}
|
|
49891
|
+
${hunk}
|
|
49892
|
+
`;
|
|
49893
|
+
}
|
|
49894
|
+
function synthesizeAllowRuleDiff(args) {
|
|
49895
|
+
const { agentName: agentName3, rule, configText } = args;
|
|
49896
|
+
if (!agentName3 || !rule || !configText)
|
|
49897
|
+
return null;
|
|
49898
|
+
const lines = configText.split(`
|
|
49899
|
+
`);
|
|
49900
|
+
const block = locateAgentBlock(lines, agentName3);
|
|
49901
|
+
if (!block)
|
|
49902
|
+
return null;
|
|
49903
|
+
const tools = locateToolsLine(lines, block);
|
|
49904
|
+
if (!tools) {
|
|
49905
|
+
const baseIndent = block.agentIndent + 2;
|
|
49906
|
+
const insertAt2 = block.agentLineIdx + 1;
|
|
49907
|
+
const added2 = [
|
|
49908
|
+
`${" ".repeat(baseIndent)}tools:`,
|
|
49909
|
+
`${" ".repeat(baseIndent + 2)}allow:`,
|
|
49910
|
+
`${" ".repeat(baseIndent + 4)}- ${rule}`
|
|
49911
|
+
];
|
|
49912
|
+
const hunk2 = buildHunk(lines, insertAt2, insertAt2, [], added2);
|
|
49913
|
+
return wrapDiff(hunk2);
|
|
49914
|
+
}
|
|
49915
|
+
const allow = locateAllowLine(lines, tools.idx, tools.indent, block.agentBlockEnd);
|
|
49916
|
+
if (!allow) {
|
|
49917
|
+
const baseIndent = tools.indent + 2;
|
|
49918
|
+
const insertAt2 = tools.idx + 1;
|
|
49919
|
+
const added2 = [
|
|
49920
|
+
`${" ".repeat(baseIndent)}allow:`,
|
|
49921
|
+
`${" ".repeat(baseIndent + 2)}- ${rule}`
|
|
49922
|
+
];
|
|
49923
|
+
const hunk2 = buildHunk(lines, insertAt2, insertAt2, [], added2);
|
|
49924
|
+
return wrapDiff(hunk2);
|
|
49925
|
+
}
|
|
49926
|
+
const inlineTrimmed = allow.inline.trim();
|
|
49927
|
+
if (inlineTrimmed.startsWith("[")) {
|
|
49928
|
+
const original = lines[allow.idx];
|
|
49929
|
+
const close = original.lastIndexOf("]");
|
|
49930
|
+
if (close === -1)
|
|
49931
|
+
return null;
|
|
49932
|
+
const inner = original.slice(original.indexOf("[") + 1, close).trim();
|
|
49933
|
+
const replacement = inner.length === 0 ? `${original.slice(0, close)}${rule}${original.slice(close)}` : `${original.slice(0, close).replace(/\s*$/, "")}, ${rule}${original.slice(close)}`;
|
|
49934
|
+
const hunk2 = buildHunk(lines, allow.idx, allow.idx + 1, [original], [replacement]);
|
|
49935
|
+
return wrapDiff(hunk2);
|
|
49936
|
+
}
|
|
49937
|
+
const itemIndent = allow.indent + 2;
|
|
49938
|
+
let lastItemIdx = -1;
|
|
49939
|
+
for (let i = allow.idx + 1;i < block.agentBlockEnd; i++) {
|
|
49940
|
+
const line = lines[i];
|
|
49941
|
+
if (isBlankOrComment(line))
|
|
49942
|
+
continue;
|
|
49943
|
+
const ind = indentOf(line);
|
|
49944
|
+
if (ind <= allow.indent)
|
|
49945
|
+
break;
|
|
49946
|
+
const t = line.slice(ind);
|
|
49947
|
+
if (ind === itemIndent && t.startsWith("- ")) {
|
|
49948
|
+
lastItemIdx = i;
|
|
49949
|
+
}
|
|
49950
|
+
}
|
|
49951
|
+
if (lastItemIdx === -1) {
|
|
49952
|
+
const insertAt2 = allow.idx + 1;
|
|
49953
|
+
const added2 = [`${" ".repeat(itemIndent)}- ${rule}`];
|
|
49954
|
+
const hunk2 = buildHunk(lines, insertAt2, insertAt2, [], added2);
|
|
49955
|
+
return wrapDiff(hunk2);
|
|
49956
|
+
}
|
|
49957
|
+
const insertAt = lastItemIdx + 1;
|
|
49958
|
+
const added = [`${" ".repeat(itemIndent)}- ${rule}`];
|
|
49959
|
+
const hunk = buildHunk(lines, insertAt, insertAt, [], added);
|
|
49960
|
+
return wrapDiff(hunk);
|
|
49961
|
+
}
|
|
49962
|
+
function extractAddedAllowRule(unifiedDiff) {
|
|
49963
|
+
if (!unifiedDiff)
|
|
49964
|
+
return null;
|
|
49965
|
+
const lines = unifiedDiff.split(`
|
|
49966
|
+
`);
|
|
49967
|
+
const plus = [];
|
|
49968
|
+
const minus = [];
|
|
49969
|
+
for (const l of lines) {
|
|
49970
|
+
if (l.startsWith("+++") || l.startsWith("---"))
|
|
49971
|
+
continue;
|
|
49972
|
+
if (l.startsWith("@@"))
|
|
49973
|
+
continue;
|
|
49974
|
+
if (l.startsWith("+"))
|
|
49975
|
+
plus.push(l.slice(1));
|
|
49976
|
+
else if (l.startsWith("-"))
|
|
49977
|
+
minus.push(l.slice(1));
|
|
49978
|
+
}
|
|
49979
|
+
if (minus.length === 0) {
|
|
49980
|
+
const items = plus.map((p) => {
|
|
49981
|
+
const ind = indentOf(p);
|
|
49982
|
+
const t = p.slice(ind);
|
|
49983
|
+
return t.startsWith("- ") ? t.slice(2).trim() : null;
|
|
49984
|
+
}).filter((x) => x !== null);
|
|
49985
|
+
if (items.length === 1)
|
|
49986
|
+
return items[0];
|
|
49987
|
+
return null;
|
|
49988
|
+
}
|
|
49989
|
+
if (minus.length === 1 && plus.length === 1) {
|
|
49990
|
+
const before = extractFlowItems(minus[0]);
|
|
49991
|
+
const after = extractFlowItems(plus[0]);
|
|
49992
|
+
if (before === null || after === null)
|
|
49993
|
+
return null;
|
|
49994
|
+
if (after.length !== before.length + 1)
|
|
49995
|
+
return null;
|
|
49996
|
+
const added = after[after.length - 1];
|
|
49997
|
+
for (let i = 0;i < before.length; i++) {
|
|
49998
|
+
if (before[i] !== after[i])
|
|
49999
|
+
return null;
|
|
50000
|
+
}
|
|
50001
|
+
return added;
|
|
50002
|
+
}
|
|
50003
|
+
return null;
|
|
50004
|
+
}
|
|
50005
|
+
function extractFlowItems(line) {
|
|
50006
|
+
const open = line.indexOf("[");
|
|
50007
|
+
const close = line.lastIndexOf("]");
|
|
50008
|
+
if (open === -1 || close === -1 || close < open)
|
|
50009
|
+
return null;
|
|
50010
|
+
const inner = line.slice(open + 1, close).trim();
|
|
50011
|
+
if (inner.length === 0)
|
|
50012
|
+
return [];
|
|
50013
|
+
return inner.split(",").map((s) => s.trim()).filter((s) => s.length > 0);
|
|
50014
|
+
}
|
|
50015
|
+
|
|
49778
50016
|
// credits-watch.ts
|
|
49779
50017
|
import { readFileSync as readFileSync29, writeFileSync as writeFileSync18, existsSync as existsSync30, mkdirSync as mkdirSync16 } from "fs";
|
|
49780
50018
|
import { join as join27 } from "path";
|
|
@@ -50094,10 +50332,10 @@ function sweepStaleTurnActiveMarker(stateDir, opts) {
|
|
|
50094
50332
|
}
|
|
50095
50333
|
|
|
50096
50334
|
// ../src/build-info.ts
|
|
50097
|
-
var VERSION = "0.14.
|
|
50098
|
-
var COMMIT_SHA = "
|
|
50099
|
-
var COMMIT_DATE = "2026-05-
|
|
50100
|
-
var LATEST_PR =
|
|
50335
|
+
var VERSION = "0.14.8";
|
|
50336
|
+
var COMMIT_SHA = "25e039f7";
|
|
50337
|
+
var COMMIT_DATE = "2026-05-29T01:58:50Z";
|
|
50338
|
+
var LATEST_PR = 1983;
|
|
50101
50339
|
var COMMITS_AHEAD_OF_TAG = 0;
|
|
50102
50340
|
|
|
50103
50341
|
// gateway/boot-version.ts
|
|
@@ -51485,6 +51723,15 @@ var STATUS_QUERY_RE = /^\s*status\??\s*$/i;
|
|
|
51485
51723
|
var PERMISSION_REPLY_RE = /^\s*(y|yes|n|no)\s+([a-km-z]{5})\s*$/i;
|
|
51486
51724
|
var pendingPermissions = new Map;
|
|
51487
51725
|
var PERMISSION_TTL_MS = 600000;
|
|
51726
|
+
var pendingAlwaysAllowCorrelations = new Map;
|
|
51727
|
+
var ALWAYS_ALLOW_CORRELATION_TTL_MS = 30000;
|
|
51728
|
+
function sweepStaleAlwaysAllowCorrelations(now = Date.now()) {
|
|
51729
|
+
for (const [key, entry] of pendingAlwaysAllowCorrelations) {
|
|
51730
|
+
if (now - entry.createdAt > ALWAYS_ALLOW_CORRELATION_TTL_MS) {
|
|
51731
|
+
pendingAlwaysAllowCorrelations.delete(key);
|
|
51732
|
+
}
|
|
51733
|
+
}
|
|
51734
|
+
}
|
|
51488
51735
|
var pendingAskUser = new Map;
|
|
51489
51736
|
var pendingReauthFlows = new Map;
|
|
51490
51737
|
var REAUTH_INTERCEPT_TTL_MS = 600000;
|
|
@@ -52589,7 +52836,20 @@ ${reminder}
|
|
|
52589
52836
|
});
|
|
52590
52837
|
},
|
|
52591
52838
|
log: (m) => process.stderr.write(`telegram gateway: config-approval \u2014 ${m}
|
|
52592
|
-
`)
|
|
52839
|
+
`),
|
|
52840
|
+
tryAutoResolve: (msg2) => {
|
|
52841
|
+
sweepStaleAlwaysAllowCorrelations();
|
|
52842
|
+
const added = extractAddedAllowRule(msg2.unifiedDiff);
|
|
52843
|
+
if (!added)
|
|
52844
|
+
return null;
|
|
52845
|
+
const key = `${msg2.agentName}::${added}`;
|
|
52846
|
+
const entry = pendingAlwaysAllowCorrelations.get(key);
|
|
52847
|
+
if (entry && entry.unifiedDiff === msg2.unifiedDiff) {
|
|
52848
|
+
pendingAlwaysAllowCorrelations.delete(key);
|
|
52849
|
+
return "approve";
|
|
52850
|
+
}
|
|
52851
|
+
return null;
|
|
52852
|
+
}
|
|
52593
52853
|
});
|
|
52594
52854
|
},
|
|
52595
52855
|
async onRequestConfigFinalize(client3, msg) {
|
|
@@ -54084,22 +54344,17 @@ async function drainActivitySummary(turn) {
|
|
|
54084
54344
|
const target = turn.activityPendingRender;
|
|
54085
54345
|
if (target == null)
|
|
54086
54346
|
break;
|
|
54087
|
-
const html = `<i>${escapeHtmlForTg(target)}</i>`;
|
|
54347
|
+
const html = DRAFT_MIRROR_ENABLED ? target : `<i>${escapeHtmlForTg(target)}</i>`;
|
|
54088
54348
|
const chat = turn.sessionChatId;
|
|
54089
54349
|
const thread = turn.sessionThreadId;
|
|
54090
|
-
const
|
|
54350
|
+
const replyAnchor = DRAFT_MIRROR_ENABLED && turn.sourceMessageId != null ? { reply_parameters: { message_id: turn.sourceMessageId, allow_sending_without_reply: true } } : {};
|
|
54091
54351
|
try {
|
|
54092
|
-
if (
|
|
54093
|
-
if (turn.activityDraftId == null) {
|
|
54094
|
-
turn.activityDraftId = allocateDraftId();
|
|
54095
|
-
}
|
|
54096
|
-
const draftId = turn.activityDraftId;
|
|
54097
|
-
await sendMessageDraftFn(chat, draftId, html, { parse_mode: "HTML" });
|
|
54098
|
-
} else if (turn.activityMessageId == null) {
|
|
54352
|
+
if (turn.activityMessageId == null) {
|
|
54099
54353
|
const sent = await robustApiCall(() => bot.api.sendMessage(chat, html, {
|
|
54100
54354
|
...thread != null ? { message_thread_id: thread } : {},
|
|
54101
54355
|
parse_mode: "HTML",
|
|
54102
|
-
disable_notification: true
|
|
54356
|
+
disable_notification: true,
|
|
54357
|
+
...replyAnchor
|
|
54103
54358
|
}), { chat_id: chat, ...thread != null ? { threadId: thread } : {}, verb: "activity-summary.send" });
|
|
54104
54359
|
turn.activityMessageId = sent.message_id;
|
|
54105
54360
|
} else {
|
|
@@ -54125,16 +54380,7 @@ function clearActivitySummary(turn) {
|
|
|
54125
54380
|
const thread = turn.sessionThreadId;
|
|
54126
54381
|
const inFlight = turn.activityInFlight ?? Promise.resolve();
|
|
54127
54382
|
inFlight.then(async () => {
|
|
54128
|
-
if (turn.
|
|
54129
|
-
const draftId = turn.activityDraftId;
|
|
54130
|
-
turn.activityDraftId = null;
|
|
54131
|
-
try {
|
|
54132
|
-
await sendMessageDraftFn(chat, draftId, "", undefined);
|
|
54133
|
-
} catch (err) {
|
|
54134
|
-
process.stderr.write(`telegram gateway: activity-summary draft-clear failed: ${err}
|
|
54135
|
-
`);
|
|
54136
|
-
}
|
|
54137
|
-
} else if (turn.activityMessageId != null) {
|
|
54383
|
+
if (turn.activityMessageId != null) {
|
|
54138
54384
|
const id = turn.activityMessageId;
|
|
54139
54385
|
turn.activityMessageId = null;
|
|
54140
54386
|
try {
|
|
@@ -54165,6 +54411,7 @@ function handleSessionEvent(ev) {
|
|
|
54165
54411
|
const next = {
|
|
54166
54412
|
sessionChatId: ev.chatId,
|
|
54167
54413
|
sessionThreadId: ev.threadId != null ? Number(ev.threadId) : undefined,
|
|
54414
|
+
sourceMessageId: ev.messageId != null && /^\d+$/.test(ev.messageId) ? Number(ev.messageId) : null,
|
|
54168
54415
|
startedAt,
|
|
54169
54416
|
gatewayReceiveAt: startedAt,
|
|
54170
54417
|
replyCalled: false,
|
|
@@ -54180,7 +54427,6 @@ function handleSessionEvent(ev) {
|
|
|
54180
54427
|
toolCallCount: 0,
|
|
54181
54428
|
toolActivity: makeEmptyActivityState(),
|
|
54182
54429
|
activityMessageId: null,
|
|
54183
|
-
activityDraftId: null,
|
|
54184
54430
|
activityInFlight: null,
|
|
54185
54431
|
activityPendingRender: null,
|
|
54186
54432
|
activityLastSentRender: null,
|
|
@@ -54255,7 +54501,7 @@ function handleSessionEvent(ev) {
|
|
|
54255
54501
|
clearTimeout(turn.orphanedReplyTimeoutId);
|
|
54256
54502
|
turn.orphanedReplyTimeoutId = null;
|
|
54257
54503
|
}
|
|
54258
|
-
if (wasFirstReply
|
|
54504
|
+
if (wasFirstReply) {
|
|
54259
54505
|
clearActivitySummary(turn);
|
|
54260
54506
|
}
|
|
54261
54507
|
}
|
|
@@ -54286,6 +54532,8 @@ function handleSessionEvent(ev) {
|
|
|
54286
54532
|
return;
|
|
54287
54533
|
if (isTelegramSurfaceTool(ev.toolName))
|
|
54288
54534
|
return;
|
|
54535
|
+
if (turn.replyCalled)
|
|
54536
|
+
return;
|
|
54289
54537
|
const rendered = appendActivityLabel(turn.mirrorLines, ev.label);
|
|
54290
54538
|
if (rendered != null) {
|
|
54291
54539
|
turn.activityPendingRender = rendered;
|
|
@@ -59062,59 +59310,110 @@ ${prettyInput}`;
|
|
|
59062
59310
|
await ctx.answerCallbackQuery({ text: "Always-allow needs SWITCHROOM_AGENT_NAME \u2014 gateway is misconfigured." }).catch(() => {});
|
|
59063
59311
|
return;
|
|
59064
59312
|
}
|
|
59065
|
-
|
|
59066
|
-
|
|
59067
|
-
|
|
59068
|
-
|
|
59313
|
+
pendingPermissions.delete(request_id);
|
|
59314
|
+
dispatchPermissionVerdict({
|
|
59315
|
+
type: "permission",
|
|
59316
|
+
requestId: request_id,
|
|
59317
|
+
behavior: "allow",
|
|
59318
|
+
rule: rule.rule
|
|
59319
|
+
});
|
|
59320
|
+
let durable = false;
|
|
59321
|
+
let legacy = false;
|
|
59322
|
+
let failReason = "";
|
|
59323
|
+
let editLockHint = false;
|
|
59324
|
+
const configEditDisabled = (msg2) => msg2.includes("E_CONFIG_EDIT_DISABLED");
|
|
59325
|
+
const unifiedDiff = (() => {
|
|
59069
59326
|
try {
|
|
59070
|
-
const
|
|
59071
|
-
const
|
|
59072
|
-
|
|
59073
|
-
|
|
59074
|
-
|
|
59075
|
-
if (isRulePersisted(allowList, rule.rule)) {
|
|
59076
|
-
grantOk = true;
|
|
59077
|
-
process.stderr.write(`telegram gateway: always-allow added rule="${rule.rule}" agent=${agentName3} (request_id=${request_id})
|
|
59078
|
-
`);
|
|
59079
|
-
} else {
|
|
59080
|
-
grantFailReason = `rule "${rule.rule}" not found in resolved tools.allow after write \u2014 config location may have drifted`;
|
|
59081
|
-
process.stderr.write(`telegram gateway: always-allow VERIFY FAILED: ${grantFailReason} (request_id=${request_id})
|
|
59327
|
+
const cfgPath = process.env.SWITCHROOM_CONFIG ?? SWITCHROOM_CONFIG ?? findConfigFile2();
|
|
59328
|
+
const raw = readFileSync34(cfgPath, "utf8");
|
|
59329
|
+
return synthesizeAllowRuleDiff({ agentName: agentName3, rule: rule.rule, configText: raw });
|
|
59330
|
+
} catch (err) {
|
|
59331
|
+
process.stderr.write(`telegram gateway: always-allow diff synth failed: ${err.message}
|
|
59082
59332
|
`);
|
|
59333
|
+
return null;
|
|
59334
|
+
}
|
|
59335
|
+
})();
|
|
59336
|
+
const correlationKey = `${agentName3}::${rule.rule}`;
|
|
59337
|
+
try {
|
|
59338
|
+
if (unifiedDiff == null) {
|
|
59339
|
+
legacy = true;
|
|
59340
|
+
} else {
|
|
59341
|
+
pendingAlwaysAllowCorrelations.set(correlationKey, { agentName: agentName3, rule: rule.rule, unifiedDiff, createdAt: Date.now() });
|
|
59342
|
+
const req = {
|
|
59343
|
+
v: 1,
|
|
59344
|
+
op: "config_propose_edit",
|
|
59345
|
+
request_id: hostdRequestId("gw-always-allow"),
|
|
59346
|
+
args: {
|
|
59347
|
+
unified_diff: unifiedDiff,
|
|
59348
|
+
reason: `Operator 'always allow' for ${rule.label}`,
|
|
59349
|
+
target_path: "/state/config/switchroom.yaml"
|
|
59083
59350
|
}
|
|
59351
|
+
};
|
|
59352
|
+
const resp = await tryHostdDispatch(agentName3, req, 60000);
|
|
59353
|
+
if (resp === "not-configured") {
|
|
59354
|
+
warnLegacySpawnIfHostdDisabled("always-allow");
|
|
59355
|
+
legacy = true;
|
|
59356
|
+
} else if (resp.result === "completed") {
|
|
59357
|
+
durable = true;
|
|
59358
|
+
process.stderr.write(`telegram gateway: always-allow durable via hostd rule="${rule.rule}" agent=${agentName3} (request_id=${request_id})
|
|
59359
|
+
`);
|
|
59084
59360
|
} else {
|
|
59085
|
-
|
|
59086
|
-
|
|
59361
|
+
failReason = resp.error ?? `hostd ${resp.result}`;
|
|
59362
|
+
if (configEditDisabled(failReason))
|
|
59363
|
+
editLockHint = true;
|
|
59364
|
+
process.stderr.write(`telegram gateway: always-allow hostd FAILED: ${failReason} (request_id=${request_id})
|
|
59087
59365
|
`);
|
|
59088
59366
|
}
|
|
59089
|
-
} catch (verifyErr) {
|
|
59090
|
-
grantFailReason = `config re-read failed: ${verifyErr.message}`;
|
|
59091
|
-
process.stderr.write(`telegram gateway: always-allow VERIFY FAILED: ${grantFailReason} (request_id=${request_id})
|
|
59092
|
-
`);
|
|
59093
59367
|
}
|
|
59094
|
-
|
|
59095
|
-
|
|
59096
|
-
|
|
59368
|
+
if (legacy) {
|
|
59369
|
+
try {
|
|
59370
|
+
switchroomExec(["agent", "grant", agentName3, rule.rule, "--no-restart"]);
|
|
59371
|
+
try {
|
|
59372
|
+
const cfg = loadConfig2();
|
|
59373
|
+
const rawAgent = cfg.agents?.[agentName3];
|
|
59374
|
+
if (rawAgent) {
|
|
59375
|
+
const resolved = resolveAgentConfig2(cfg.defaults, cfg.profiles, rawAgent);
|
|
59376
|
+
const allowList = resolved.tools?.allow ?? [];
|
|
59377
|
+
if (isRulePersisted(allowList, rule.rule)) {
|
|
59378
|
+
durable = true;
|
|
59379
|
+
process.stderr.write(`telegram gateway: always-allow added rule="${rule.rule}" agent=${agentName3} via legacy grant (request_id=${request_id})
|
|
59380
|
+
`);
|
|
59381
|
+
} else {
|
|
59382
|
+
failReason = `rule "${rule.rule}" not found in resolved tools.allow after write \u2014 config location may have drifted`;
|
|
59383
|
+
process.stderr.write(`telegram gateway: always-allow VERIFY FAILED: ${failReason} (request_id=${request_id})
|
|
59384
|
+
`);
|
|
59385
|
+
}
|
|
59386
|
+
} else {
|
|
59387
|
+
failReason = `agent "${agentName3}" not found in config after write`;
|
|
59388
|
+
process.stderr.write(`telegram gateway: always-allow VERIFY FAILED: ${failReason} (request_id=${request_id})
|
|
59389
|
+
`);
|
|
59390
|
+
}
|
|
59391
|
+
} catch (verifyErr) {
|
|
59392
|
+
failReason = `config re-read failed: ${verifyErr.message}`;
|
|
59393
|
+
process.stderr.write(`telegram gateway: always-allow VERIFY FAILED: ${failReason} (request_id=${request_id})
|
|
59097
59394
|
`);
|
|
59395
|
+
}
|
|
59396
|
+
} catch (err) {
|
|
59397
|
+
failReason = err.message;
|
|
59398
|
+
process.stderr.write(`telegram gateway: always-allow grant failed: ${failReason}
|
|
59399
|
+
`);
|
|
59400
|
+
}
|
|
59401
|
+
}
|
|
59402
|
+
} finally {
|
|
59403
|
+
pendingAlwaysAllowCorrelations.delete(correlationKey);
|
|
59098
59404
|
}
|
|
59099
|
-
|
|
59100
|
-
const
|
|
59405
|
+
const ok = durable;
|
|
59406
|
+
const legacyNote = legacy && durable;
|
|
59407
|
+
const ackText = ok ? legacyNote ? `\uD83D\uDD01 Always allow ${rule.label} for ${agentName3} (legacy path)` : `\uD83D\uDD01 Always allow ${rule.label} for ${agentName3}` : editLockHint ? `\u26A0\uFE0F Allowed for now \u2014 config edits are locked. Enable hostd.config_edit_enabled.` : `\u26A0\uFE0F Allowed for now, but "always" did NOT save \u2014 it will ask again after restart. Check gateway log.`;
|
|
59101
59408
|
const sourceMsg = ctx.callbackQuery?.message;
|
|
59102
59409
|
const baseText2 = sourceMsg && "text" in sourceMsg && sourceMsg.text ? escapeHtmlForTg(sourceMsg.text) : "";
|
|
59103
|
-
const editLabel =
|
|
59410
|
+
const editLabel = ok ? legacyNote ? `\uD83D\uDD01 <b>Always allow ${escapeHtmlForTg(rule.label)}</b> for ${escapeHtmlForTg(agentName3)} \u2014 saved (legacy path); restart agent for full effect` : `\uD83D\uDD01 <b>Always allow ${escapeHtmlForTg(rule.label)}</b> for ${escapeHtmlForTg(agentName3)} \u2014 saved; restart agent for full effect` : editLockHint ? `\u26A0\uFE0F <b>Allowed for now \u2014 "always" did NOT save.</b> Config edits are locked; enable <code>hostd.config_edit_enabled</code>.` : `\u26A0\uFE0F <b>Allowed for now \u2014 "always" did NOT save.</b> It will ask again after restart. Check gateway log.`;
|
|
59104
59411
|
await finalizeCallback(ctx, {
|
|
59105
59412
|
ackText: ackText.slice(0, 200),
|
|
59106
59413
|
newText: baseText2 ? `${baseText2}
|
|
59107
59414
|
|
|
59108
59415
|
${editLabel}` : editLabel,
|
|
59109
|
-
parseMode: "HTML"
|
|
59110
|
-
synthInbound: () => {
|
|
59111
|
-
dispatchPermissionVerdict({
|
|
59112
|
-
type: "permission",
|
|
59113
|
-
requestId: request_id,
|
|
59114
|
-
behavior: "allow",
|
|
59115
|
-
...grantOk ? { rule: rule.rule } : {}
|
|
59116
|
-
});
|
|
59117
|
-
}
|
|
59416
|
+
parseMode: "HTML"
|
|
59118
59417
|
});
|
|
59119
59418
|
return;
|
|
59120
59419
|
}
|