blun-king-cli 9.1.602 → 9.1.604

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.
Files changed (124) hide show
  1. package/CHANGELOG.md +118 -99
  2. package/LIESMICH.txt +74 -57
  3. package/README.md +119 -76
  4. package/bin/agentspine-king-goal-inbox.mjs +127 -127
  5. package/bin/agentspine-king-goal-intake.mjs +106 -106
  6. package/bin/agentspine-king-host-runner.mjs +109 -109
  7. package/bin/agentspine-king-snapshot-policy.cjs +80 -80
  8. package/bin/agentspine-king-status-policy.mjs +226 -226
  9. package/bin/agentspine-king-worker-host.mjs +160 -160
  10. package/bin/core-bootstrap.js +77 -77
  11. package/bin/launcher-mode.js +93 -93
  12. package/bin/launcher-restart-policy.cjs +131 -131
  13. package/bin/launcher-runtime.js +491 -491
  14. package/bin/managed-node.js +186 -186
  15. package/bin/managed-plugin-selection.cjs +115 -115
  16. package/bin/native-module-repair.js +201 -201
  17. package/bin/node-runtime.js +34 -34
  18. package/bin/node-version.js +49 -49
  19. package/bin/plugin-bootstrap.js +162 -162
  20. package/bin/private-paths.js +1606 -1606
  21. package/bin/runtime-exit-ledger.cjs +144 -144
  22. package/bin/runtime-exit-ledger.d.cts +23 -23
  23. package/bin/standard-tools-bootstrap.js +272 -272
  24. package/bin/turn-thinking-policy.cjs +82 -82
  25. package/bin/update-copy.js +200 -200
  26. package/bin/update-lease.js +597 -597
  27. package/bin/update-notice.js +1568 -1568
  28. package/bin/verify-agent-behavior.cjs +122 -122
  29. package/bin/verify-agent-components.cjs +104 -104
  30. package/bin/verify-bundled-agent-sources.cjs +98 -76
  31. package/bin/windows-node-crash-dump.cjs +289 -289
  32. package/blun.mjs +8041 -6407
  33. package/codebase-index/codebase_index.py +470 -470
  34. package/dist-web/assets/{CodeBlockNode-CXnTLMNr.js → CodeBlockNode-TKKkJX8L.js} +1 -1
  35. package/dist-web/assets/{CodeBlockShell.vue_vue_type_style_index_0_lang-CCF8Ntnq.js → CodeBlockShell.vue_vue_type_style_index_0_lang-CUj2Ds5x.js} +1 -1
  36. package/dist-web/assets/DesignSystemView-DwK1aQMo.js +12 -0
  37. package/dist-web/assets/DesignSystemView-szjTj7ns.css +1 -0
  38. package/dist-web/assets/{Tooltip-CFQEzqC-.js → Tooltip-CTWv7WCU.js} +1 -1
  39. package/dist-web/assets/{abnfDiagram-N423BO3Z-Z1APZG5m.js → abnfDiagram-N423BO3Z-DA8V8Zjh.js} +1 -1
  40. package/dist-web/assets/{arc-C4VyWloT.js → arc-YtddKbdY.js} +1 -1
  41. package/dist-web/assets/{architectureDiagram-T3A2C74G-DpddbUcM.js → architectureDiagram-T3A2C74G-CGEiObmo.js} +1 -1
  42. package/dist-web/assets/{blockDiagram-VBNYF7ZC-BqccOSMr.js → blockDiagram-VBNYF7ZC-Bd5Vt50e.js} +1 -1
  43. package/dist-web/assets/{c4Diagram-5PPSVZJV-OHAcJrTy.js → c4Diagram-5PPSVZJV-D2ApPM54.js} +1 -1
  44. package/dist-web/assets/channel-BnluexuN.js +1 -0
  45. package/dist-web/assets/{chunk-2GRJ4B5K-DqJHs8Fw.js → chunk-2GRJ4B5K-BDcIEZSl.js} +1 -1
  46. package/dist-web/assets/{chunk-2Q5K7J3B-B1nCd91o.js → chunk-2Q5K7J3B-6aSabCX7.js} +1 -1
  47. package/dist-web/assets/{chunk-5RXB4S5H-neG70kZx.js → chunk-5RXB4S5H-BFRQvIJS.js} +1 -1
  48. package/dist-web/assets/{chunk-5VM5RSS4-l7biGqeH.js → chunk-5VM5RSS4-ChAa-DNY.js} +1 -1
  49. package/dist-web/assets/{chunk-6Q2QTUOP-BO-F11Gs.js → chunk-6Q2QTUOP-BIfrb2Jc.js} +1 -1
  50. package/dist-web/assets/{chunk-GF5L2VYU-BtC69fw0.js → chunk-GF5L2VYU-BR0gvtWI.js} +1 -1
  51. package/dist-web/assets/{chunk-JWPE2WC7-DIOubEqr.js → chunk-JWPE2WC7-BgXKsx5E.js} +1 -1
  52. package/dist-web/assets/{chunk-KBJHAD2P-DDUeH_Ba.js → chunk-KBJHAD2P-I8mrZhpz.js} +1 -1
  53. package/dist-web/assets/{chunk-RYQCIY6F-B9gFMVbS.js → chunk-RYQCIY6F-BMPaem92.js} +1 -1
  54. package/dist-web/assets/{chunk-XXDRQBXY-Bn1Xz6TQ.js → chunk-XXDRQBXY-COy0J-0j.js} +1 -1
  55. package/dist-web/assets/classDiagram-JCYQIIEL-BliFdSD9.js +1 -0
  56. package/dist-web/assets/classDiagram-v2-OCEON4UE-BliFdSD9.js +1 -0
  57. package/dist-web/assets/{cose-bilkent-JH36ORCC-DqigO3T4.js → cose-bilkent-JH36ORCC-MosTTRdo.js} +1 -1
  58. package/dist-web/assets/{cynefin-VYW2F7L2-rpD93tQ-.js → cynefin-VYW2F7L2-5tjPgrkP.js} +1 -1
  59. package/dist-web/assets/{cynefinDiagram-MW4NZA55-DbTqnkVJ.js → cynefinDiagram-MW4NZA55-CbDcdInR.js} +1 -1
  60. package/dist-web/assets/{dagre-VZM6K2ZE-DcM8aEVY.js → dagre-VZM6K2ZE-YaBom1ZH.js} +1 -1
  61. package/dist-web/assets/{diagram-7IWD3JNH-UymgsBNa.js → diagram-7IWD3JNH-Da4m-Hgz.js} +1 -1
  62. package/dist-web/assets/{diagram-B4RE2ZJO-BiYu5WPF.js → diagram-B4RE2ZJO-CAUUegxg.js} +1 -1
  63. package/dist-web/assets/{diagram-LBJQPF4R-BD3kkgOO.js → diagram-LBJQPF4R-o21mWKG4.js} +1 -1
  64. package/dist-web/assets/{diagram-Q27KOJAE-D1mYQ_cI.js → diagram-Q27KOJAE-BA3z3sXf.js} +1 -1
  65. package/dist-web/assets/{diagram-UB23O5K3-BtX8u6HG.js → diagram-UB23O5K3-CGRdSSDK.js} +1 -1
  66. package/dist-web/assets/{ebnfDiagram-BXEA7PRR-CBAnFkRF.js → ebnfDiagram-BXEA7PRR-Bw-iU9FP.js} +1 -1
  67. package/dist-web/assets/{erDiagram-JOGREHBK-3vKcWsxm.js → erDiagram-JOGREHBK-BwM1yiR0.js} +1 -1
  68. package/dist-web/assets/{flowDiagram-UKHOOZJN-D9wBbHm2.js → flowDiagram-UKHOOZJN-z05eOR1Q.js} +1 -1
  69. package/dist-web/assets/{ganttDiagram-PKOTCBZU-Cd_dViF-.js → ganttDiagram-PKOTCBZU-BMUubNTl.js} +1 -1
  70. package/dist-web/assets/{gitGraphDiagram-DS77QQ5N-BiEEtTo7.js → gitGraphDiagram-DS77QQ5N-Dccbi1wU.js} +1 -1
  71. package/dist-web/assets/{index-DdEakFJM.js → index-BBbC5LRF.js} +1 -1
  72. package/dist-web/assets/{index-BmKj7CB1.css → index-C9eDH3u-.css} +1 -1
  73. package/dist-web/assets/{index-Ba1OvLjf.js → index-D48p0M2S.js} +2 -2
  74. package/dist-web/assets/{index-CiPA8Kex.js → index-h0KEOmkU.js} +14 -14
  75. package/dist-web/assets/{index10-CNr4U-Nw.js → index10-Qbuw1N6u.js} +1 -1
  76. package/dist-web/assets/{index11-Dto_yZNz.js → index11-g8v025wN.js} +1 -1
  77. package/dist-web/assets/{index5-B2PldaO2.js → index5-BYNcV8BY.js} +1 -1
  78. package/dist-web/assets/{index6-CBdZmmyx.js → index6-BetANtnV.js} +1 -1
  79. package/dist-web/assets/{index7-Dz9oCsUF.js → index7-BcPbgCKN.js} +1 -1
  80. package/dist-web/assets/{index8-B6k25jtU.js → index8-B1lp-RvF.js} +2 -2
  81. package/dist-web/assets/{infoDiagram-6WML65LV-D4ph2sIH.js → infoDiagram-6WML65LV-BF_pbUnN.js} +1 -1
  82. package/dist-web/assets/{ishikawaDiagram-WSZJBQD7-DjKjbMm9.js → ishikawaDiagram-WSZJBQD7-Dedv4urS.js} +1 -1
  83. package/dist-web/assets/{journeyDiagram-NVQOT4AX-DttHDfPQ.js → journeyDiagram-NVQOT4AX-B1Ex3b6o.js} +1 -1
  84. package/dist-web/assets/{kanban-definition-27J2QSJJ-C5gB-W0d.js → kanban-definition-27J2QSJJ-BtCGliBH.js} +1 -1
  85. package/dist-web/assets/{linear-BRGe4-d6.js → linear-ByItc8Qr.js} +1 -1
  86. package/dist-web/assets/{mermaid.core-D-9Sx1No.js → mermaid.core-B1M2O7nN.js} +4 -4
  87. package/dist-web/assets/{mindmap-definition-FAOFIHXS-Cg_hoVIq.js → mindmap-definition-FAOFIHXS-D0UHKUyj.js} +1 -1
  88. package/dist-web/assets/{pegDiagram-VL7TDLO6-CSX9hitD.js → pegDiagram-VL7TDLO6-D7zYCVmG.js} +1 -1
  89. package/dist-web/assets/{pieDiagram-7S7Q4E2Y-0L0mxahZ.js → pieDiagram-7S7Q4E2Y-Bd0i9CHa.js} +1 -1
  90. package/dist-web/assets/{quadrantDiagram-CIZ2JOQS-U483z0er.js → quadrantDiagram-CIZ2JOQS-MG-Ug47d.js} +1 -1
  91. package/dist-web/assets/{railroadDiagram-AXF67PYL-D80a2_DJ.js → railroadDiagram-AXF67PYL-AZdl90Gj.js} +1 -1
  92. package/dist-web/assets/{requirementDiagram-LRYGKXZP-CeyHfq8t.js → requirementDiagram-LRYGKXZP-DjplF9kt.js} +1 -1
  93. package/dist-web/assets/{sankeyDiagram-W5VNT64P-CCISkkrR.js → sankeyDiagram-W5VNT64P-Bi9Zgfjs.js} +1 -1
  94. package/dist-web/assets/{sequenceDiagram-SI44F4Z6-jQfm2XS7.js → sequenceDiagram-SI44F4Z6-ChEpdCvb.js} +1 -1
  95. package/dist-web/assets/{sizeCapture-X5ZJPWSS-lRZsmCoS.js → sizeCapture-X5ZJPWSS-B5RFUdaa.js} +1 -1
  96. package/dist-web/assets/{stateDiagram-OKZ733FA-ClCgTdUm.js → stateDiagram-OKZ733FA-BkRblSKp.js} +1 -1
  97. package/dist-web/assets/stateDiagram-v2-UEYNNEHI-fVkQcACW.js +1 -0
  98. package/dist-web/assets/{swimlanes-SLNWSIFB-BCdOUN05.js → swimlanes-SLNWSIFB-DLXH6Zhc.js} +2 -2
  99. package/dist-web/assets/swimlanesDiagram-ULZ7WXOC-Bg-BiZJQ.js +8 -0
  100. package/dist-web/assets/{timeline-definition-Z64GVDOM-DpWutSKa.js → timeline-definition-Z64GVDOM-C_N88siO.js} +1 -1
  101. package/dist-web/assets/{vennDiagram-T6HMQDX7-DVC5JVsc.js → vennDiagram-T6HMQDX7-DMsnvDt0.js} +1 -1
  102. package/dist-web/assets/{vue.runtime.esm-bundler-BwwRtQwQ.js → vue.runtime.esm-bundler-B-3uIy85.js} +1 -1
  103. package/dist-web/assets/{wardleyDiagram-T6FBY63Y-BK2mrq7L.js → wardleyDiagram-T6FBY63Y-C9SJIPzq.js} +1 -1
  104. package/dist-web/assets/{xychartDiagram-ELKLHX3M-DUJu9F7-.js → xychartDiagram-ELKLHX3M-DZLWA6Go.js} +1 -1
  105. package/dist-web/index.html +32 -32
  106. package/dist-web/vis/index.html.gz +0 -0
  107. package/package.json +1 -1
  108. package/scripts/fix-node-pty-perms.js +53 -53
  109. package/standard-skills/blun-app-design-system/SKILL.md +30 -30
  110. package/standard-skills/blun-app-design-system/provenance.json +17 -17
  111. package/standard-skills/blun-app-design-system/references/tokens.md +48 -48
  112. package/standard-skills/blun-app-design-system/scripts/check-blun-design.mjs +49 -49
  113. package/telegram-plugin/blun.plugin.json +20 -20
  114. package/telegram-plugin/commands/access.md +37 -37
  115. package/telegram-plugin/dist/bridge.mjs +117 -100
  116. package/telegram-plugin/dist/mcp-server.mjs +185 -161
  117. package/worker-host.mjs +1458 -1022
  118. package/dist-web/assets/DesignSystemView-6HgAUEmC.css +0 -1
  119. package/dist-web/assets/DesignSystemView-BbMOu-XO.js +0 -12
  120. package/dist-web/assets/channel-B2VOQOI-.js +0 -1
  121. package/dist-web/assets/classDiagram-JCYQIIEL-BA1TjAxj.js +0 -1
  122. package/dist-web/assets/classDiagram-v2-OCEON4UE-BA1TjAxj.js +0 -1
  123. package/dist-web/assets/stateDiagram-v2-UEYNNEHI-fi_lrTAx.js +0 -1
  124. package/dist-web/assets/swimlanesDiagram-ULZ7WXOC-BUd_uYK3.js +0 -8
@@ -10,7 +10,7 @@ import { fileURLToPath } from "node:url";
10
10
  var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
11
11
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
12
12
  //#endregion
13
- //#region ../../../rd-20260918/context-efficiency-repair/staging/repo/node_modules/.pnpm/grammy@1.44.0_encoding@0.1.13/node_modules/grammy/out/filter.js
13
+ //#region ../../node_modules/.pnpm/grammy@1.44.0_encoding@0.1.13/node_modules/grammy/out/filter.js
14
14
  var require_filter = /* @__PURE__ */ __commonJSMin(((exports) => {
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.matchFilter = matchFilter;
@@ -402,7 +402,7 @@ Permitted values are: ${permitted.map((k) => `'${k}'`).join(", ")}.`;
402
402
  };
403
403
  }));
404
404
  //#endregion
405
- //#region ../../../rd-20260918/context-efficiency-repair/staging/repo/node_modules/.pnpm/grammy@1.44.0_encoding@0.1.13/node_modules/grammy/out/context.js
405
+ //#region ../../node_modules/.pnpm/grammy@1.44.0_encoding@0.1.13/node_modules/grammy/out/context.js
406
406
  var require_context = /* @__PURE__ */ __commonJSMin(((exports) => {
407
407
  Object.defineProperty(exports, "__esModule", { value: true });
408
408
  exports.Context = void 0;
@@ -3047,7 +3047,7 @@ var require_context = /* @__PURE__ */ __commonJSMin(((exports) => {
3047
3047
  }
3048
3048
  }));
3049
3049
  //#endregion
3050
- //#region ../../../rd-20260918/context-efficiency-repair/staging/repo/node_modules/.pnpm/grammy@1.44.0_encoding@0.1.13/node_modules/grammy/out/composer.js
3050
+ //#region ../../node_modules/.pnpm/grammy@1.44.0_encoding@0.1.13/node_modules/grammy/out/composer.js
3051
3051
  var require_composer = /* @__PURE__ */ __commonJSMin(((exports) => {
3052
3052
  Object.defineProperty(exports, "__esModule", { value: true });
3053
3053
  exports.Composer = exports.BotError = void 0;
@@ -3723,7 +3723,7 @@ var require_composer = /* @__PURE__ */ __commonJSMin(((exports) => {
3723
3723
  };
3724
3724
  }));
3725
3725
  //#endregion
3726
- //#region ../../../rd-20260918/context-efficiency-repair/staging/repo/node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js
3726
+ //#region ../../node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js
3727
3727
  var require_ms = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3728
3728
  /**
3729
3729
  * Helpers.
@@ -3841,7 +3841,7 @@ var require_ms = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3841
3841
  }
3842
3842
  }));
3843
3843
  //#endregion
3844
- //#region ../../../rd-20260918/context-efficiency-repair/staging/repo/node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/common.js
3844
+ //#region ../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/common.js
3845
3845
  var require_common = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3846
3846
  /**
3847
3847
  * This is the common logic for both the Node.js and web browser
@@ -4043,7 +4043,7 @@ var require_common = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4043
4043
  module.exports = setup;
4044
4044
  }));
4045
4045
  //#endregion
4046
- //#region ../../../rd-20260918/context-efficiency-repair/staging/repo/node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/browser.js
4046
+ //#region ../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/browser.js
4047
4047
  var require_browser = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4048
4048
  /**
4049
4049
  * This is the web browser implementation of `debug()`.
@@ -4239,7 +4239,7 @@ var require_browser = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4239
4239
  };
4240
4240
  }));
4241
4241
  //#endregion
4242
- //#region ../../../rd-20260918/context-efficiency-repair/staging/repo/node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.js
4242
+ //#region ../../node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.js
4243
4243
  var require_has_flag = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4244
4244
  module.exports = (flag, argv = process.argv) => {
4245
4245
  const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
@@ -4249,7 +4249,7 @@ var require_has_flag = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4249
4249
  };
4250
4250
  }));
4251
4251
  //#endregion
4252
- //#region ../../../rd-20260918/context-efficiency-repair/staging/repo/node_modules/.pnpm/supports-color@8.1.1/node_modules/supports-color/index.js
4252
+ //#region ../../node_modules/.pnpm/supports-color@8.1.1/node_modules/supports-color/index.js
4253
4253
  var require_supports_color = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4254
4254
  const os = __require("os");
4255
4255
  const tty$1 = __require("tty");
@@ -4330,7 +4330,7 @@ var require_supports_color = /* @__PURE__ */ __commonJSMin(((exports, module) =>
4330
4330
  };
4331
4331
  }));
4332
4332
  //#endregion
4333
- //#region ../../../rd-20260918/context-efficiency-repair/staging/repo/node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/node.js
4333
+ //#region ../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/node.js
4334
4334
  var require_node = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4335
4335
  /**
4336
4336
  * Module dependencies.
@@ -4537,7 +4537,7 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4537
4537
  };
4538
4538
  }));
4539
4539
  //#endregion
4540
- //#region ../../../rd-20260918/context-efficiency-repair/staging/repo/node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/index.js
4540
+ //#region ../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/index.js
4541
4541
  var require_src = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4542
4542
  /**
4543
4543
  * Detect Electron renderer / nwjs process, which is node, but we should
@@ -4547,7 +4547,7 @@ var require_src = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4547
4547
  else module.exports = require_node();
4548
4548
  }));
4549
4549
  //#endregion
4550
- //#region ../../../rd-20260918/context-efficiency-repair/staging/repo/node_modules/.pnpm/grammy@1.44.0_encoding@0.1.13/node_modules/grammy/out/platform.node.js
4550
+ //#region ../../node_modules/.pnpm/grammy@1.44.0_encoding@0.1.13/node_modules/grammy/out/platform.node.js
4551
4551
  var require_platform_node = /* @__PURE__ */ __commonJSMin(((exports) => {
4552
4552
  Object.defineProperty(exports, "__esModule", { value: true });
4553
4553
  exports.defaultAdapter = exports.itrToStream = exports.debug = void 0;
@@ -4585,7 +4585,7 @@ var require_platform_node = /* @__PURE__ */ __commonJSMin(((exports) => {
4585
4585
  exports.defaultAdapter = "express";
4586
4586
  }));
4587
4587
  //#endregion
4588
- //#region ../../../rd-20260918/context-efficiency-repair/staging/repo/node_modules/.pnpm/grammy@1.44.0_encoding@0.1.13/node_modules/grammy/out/core/error.js
4588
+ //#region ../../node_modules/.pnpm/grammy@1.44.0_encoding@0.1.13/node_modules/grammy/out/core/error.js
4589
4589
  var require_error = /* @__PURE__ */ __commonJSMin(((exports) => {
4590
4590
  Object.defineProperty(exports, "__esModule", { value: true });
4591
4591
  exports.HttpError = exports.GrammyError = void 0;
@@ -4661,7 +4661,7 @@ var require_error = /* @__PURE__ */ __commonJSMin(((exports) => {
4661
4661
  }
4662
4662
  }));
4663
4663
  //#endregion
4664
- //#region ../../../rd-20260918/context-efficiency-repair/staging/repo/node_modules/.pnpm/webidl-conversions@3.0.1/node_modules/webidl-conversions/lib/index.js
4664
+ //#region ../../node_modules/.pnpm/webidl-conversions@3.0.1/node_modules/webidl-conversions/lib/index.js
4665
4665
  var require_lib$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4666
4666
  var conversions = {};
4667
4667
  module.exports = conversions;
@@ -4777,7 +4777,7 @@ var require_lib$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4777
4777
  };
4778
4778
  }));
4779
4779
  //#endregion
4780
- //#region ../../../rd-20260918/context-efficiency-repair/staging/repo/node_modules/.pnpm/whatwg-url@5.0.0/node_modules/whatwg-url/lib/utils.js
4780
+ //#region ../../node_modules/.pnpm/whatwg-url@5.0.0/node_modules/whatwg-url/lib/utils.js
4781
4781
  var require_utils = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4782
4782
  module.exports.mixin = function mixin(target, source) {
4783
4783
  const keys = Object.getOwnPropertyNames(source);
@@ -4793,7 +4793,7 @@ var require_utils = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4793
4793
  };
4794
4794
  }));
4795
4795
  //#endregion
4796
- //#region ../../../rd-20260918/context-efficiency-repair/staging/repo/node_modules/.pnpm/tr46@0.0.3/node_modules/tr46/lib/mappingTable.json
4796
+ //#region ../../node_modules/.pnpm/tr46@0.0.3/node_modules/tr46/lib/mappingTable.json
4797
4797
  var require_mappingTable = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4798
4798
  module.exports = [
4799
4799
  [[0, 44], "disallowed_STD3_valid"],
@@ -40350,7 +40350,7 @@ var require_mappingTable = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40350
40350
  ];
40351
40351
  }));
40352
40352
  //#endregion
40353
- //#region ../../../rd-20260918/context-efficiency-repair/staging/repo/node_modules/.pnpm/tr46@0.0.3/node_modules/tr46/index.js
40353
+ //#region ../../node_modules/.pnpm/tr46@0.0.3/node_modules/tr46/index.js
40354
40354
  var require_tr46 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40355
40355
  var punycode$1 = __require("punycode");
40356
40356
  var mappingTable = require_mappingTable();
@@ -40488,7 +40488,7 @@ var require_tr46 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40488
40488
  module.exports.PROCESSING_OPTIONS = PROCESSING_OPTIONS;
40489
40489
  }));
40490
40490
  //#endregion
40491
- //#region ../../../rd-20260918/context-efficiency-repair/staging/repo/node_modules/.pnpm/whatwg-url@5.0.0/node_modules/whatwg-url/lib/url-state-machine.js
40491
+ //#region ../../node_modules/.pnpm/whatwg-url@5.0.0/node_modules/whatwg-url/lib/url-state-machine.js
40492
40492
  var require_url_state_machine = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40493
40493
  const punycode = __require("punycode");
40494
40494
  const tr46 = require_tr46();
@@ -41359,7 +41359,7 @@ var require_url_state_machine = /* @__PURE__ */ __commonJSMin(((exports, module)
41359
41359
  };
41360
41360
  }));
41361
41361
  //#endregion
41362
- //#region ../../../rd-20260918/context-efficiency-repair/staging/repo/node_modules/.pnpm/whatwg-url@5.0.0/node_modules/whatwg-url/lib/URL-impl.js
41362
+ //#region ../../node_modules/.pnpm/whatwg-url@5.0.0/node_modules/whatwg-url/lib/URL-impl.js
41363
41363
  var require_URL_impl = /* @__PURE__ */ __commonJSMin(((exports) => {
41364
41364
  const usm = require_url_state_machine();
41365
41365
  exports.implementation = class URLImpl {
@@ -41497,7 +41497,7 @@ var require_URL_impl = /* @__PURE__ */ __commonJSMin(((exports) => {
41497
41497
  };
41498
41498
  }));
41499
41499
  //#endregion
41500
- //#region ../../../rd-20260918/context-efficiency-repair/staging/repo/node_modules/.pnpm/whatwg-url@5.0.0/node_modules/whatwg-url/lib/URL.js
41500
+ //#region ../../node_modules/.pnpm/whatwg-url@5.0.0/node_modules/whatwg-url/lib/URL.js
41501
41501
  var require_URL = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41502
41502
  const conversions = require_lib$2();
41503
41503
  const utils = require_utils();
@@ -41662,7 +41662,7 @@ var require_URL = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41662
41662
  };
41663
41663
  }));
41664
41664
  //#endregion
41665
- //#region ../../../rd-20260918/context-efficiency-repair/staging/repo/node_modules/.pnpm/whatwg-url@5.0.0/node_modules/whatwg-url/lib/public-api.js
41665
+ //#region ../../node_modules/.pnpm/whatwg-url@5.0.0/node_modules/whatwg-url/lib/public-api.js
41666
41666
  var require_public_api = /* @__PURE__ */ __commonJSMin(((exports) => {
41667
41667
  exports.URL = require_URL().interface;
41668
41668
  exports.serializeURL = require_url_state_machine().serializeURL;
@@ -41675,7 +41675,7 @@ var require_public_api = /* @__PURE__ */ __commonJSMin(((exports) => {
41675
41675
  exports.parseURL = require_url_state_machine().parseURL;
41676
41676
  }));
41677
41677
  //#endregion
41678
- //#region ../../../rd-20260918/context-efficiency-repair/staging/repo/node_modules/.pnpm/safer-buffer@2.1.2/node_modules/safer-buffer/safer.js
41678
+ //#region ../../node_modules/.pnpm/safer-buffer@2.1.2/node_modules/safer-buffer/safer.js
41679
41679
  var require_safer = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41680
41680
  var buffer = __require("buffer");
41681
41681
  var Buffer = buffer.Buffer;
@@ -41717,7 +41717,7 @@ var require_safer = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41717
41717
  module.exports = safer;
41718
41718
  }));
41719
41719
  //#endregion
41720
- //#region ../../../rd-20260918/context-efficiency-repair/staging/repo/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/lib/bom-handling.js
41720
+ //#region ../../node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/lib/bom-handling.js
41721
41721
  var require_bom_handling = /* @__PURE__ */ __commonJSMin(((exports) => {
41722
41722
  var BOMChar = "";
41723
41723
  exports.PrependBOM = PrependBOMWrapper;
@@ -41756,7 +41756,7 @@ var require_bom_handling = /* @__PURE__ */ __commonJSMin(((exports) => {
41756
41756
  };
41757
41757
  }));
41758
41758
  //#endregion
41759
- //#region ../../../rd-20260918/context-efficiency-repair/staging/repo/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/internal.js
41759
+ //#region ../../node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/internal.js
41760
41760
  var require_internal = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41761
41761
  var Buffer = require_safer().Buffer;
41762
41762
  module.exports = {
@@ -41890,7 +41890,7 @@ var require_internal = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41890
41890
  };
41891
41891
  }));
41892
41892
  //#endregion
41893
- //#region ../../../rd-20260918/context-efficiency-repair/staging/repo/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/utf32.js
41893
+ //#region ../../node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/utf32.js
41894
41894
  var require_utf32 = /* @__PURE__ */ __commonJSMin(((exports) => {
41895
41895
  var Buffer = require_safer().Buffer;
41896
41896
  exports._utf32 = Utf32Codec;
@@ -42081,7 +42081,7 @@ var require_utf32 = /* @__PURE__ */ __commonJSMin(((exports) => {
42081
42081
  }
42082
42082
  }));
42083
42083
  //#endregion
42084
- //#region ../../../rd-20260918/context-efficiency-repair/staging/repo/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/utf16.js
42084
+ //#region ../../node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/utf16.js
42085
42085
  var require_utf16 = /* @__PURE__ */ __commonJSMin(((exports) => {
42086
42086
  var Buffer = require_safer().Buffer;
42087
42087
  exports.utf16be = Utf16BECodec;
@@ -42200,7 +42200,7 @@ var require_utf16 = /* @__PURE__ */ __commonJSMin(((exports) => {
42200
42200
  }
42201
42201
  }));
42202
42202
  //#endregion
42203
- //#region ../../../rd-20260918/context-efficiency-repair/staging/repo/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/utf7.js
42203
+ //#region ../../node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/utf7.js
42204
42204
  var require_utf7 = /* @__PURE__ */ __commonJSMin(((exports) => {
42205
42205
  var Buffer = require_safer().Buffer;
42206
42206
  exports.utf7 = Utf7Codec;
@@ -42376,7 +42376,7 @@ var require_utf7 = /* @__PURE__ */ __commonJSMin(((exports) => {
42376
42376
  };
42377
42377
  }));
42378
42378
  //#endregion
42379
- //#region ../../../rd-20260918/context-efficiency-repair/staging/repo/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/sbcs-codec.js
42379
+ //#region ../../node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/sbcs-codec.js
42380
42380
  var require_sbcs_codec = /* @__PURE__ */ __commonJSMin(((exports) => {
42381
42381
  var Buffer = require_safer().Buffer;
42382
42382
  exports._sbcs = SBCSCodec;
@@ -42422,7 +42422,7 @@ var require_sbcs_codec = /* @__PURE__ */ __commonJSMin(((exports) => {
42422
42422
  SBCSDecoder.prototype.end = function() {};
42423
42423
  }));
42424
42424
  //#endregion
42425
- //#region ../../../rd-20260918/context-efficiency-repair/staging/repo/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/sbcs-data.js
42425
+ //#region ../../node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/sbcs-data.js
42426
42426
  var require_sbcs_data = /* @__PURE__ */ __commonJSMin(((exports, module) => {
42427
42427
  module.exports = {
42428
42428
  "10029": "maccenteuro",
@@ -42570,7 +42570,7 @@ var require_sbcs_data = /* @__PURE__ */ __commonJSMin(((exports, module) => {
42570
42570
  };
42571
42571
  }));
42572
42572
  //#endregion
42573
- //#region ../../../rd-20260918/context-efficiency-repair/staging/repo/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/sbcs-data-generated.js
42573
+ //#region ../../node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/sbcs-data-generated.js
42574
42574
  var require_sbcs_data_generated = /* @__PURE__ */ __commonJSMin(((exports, module) => {
42575
42575
  module.exports = {
42576
42576
  "437": "cp437",
@@ -43022,7 +43022,7 @@ var require_sbcs_data_generated = /* @__PURE__ */ __commonJSMin(((exports, modul
43022
43022
  };
43023
43023
  }));
43024
43024
  //#endregion
43025
- //#region ../../../rd-20260918/context-efficiency-repair/staging/repo/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/dbcs-codec.js
43025
+ //#region ../../node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/dbcs-codec.js
43026
43026
  var require_dbcs_codec = /* @__PURE__ */ __commonJSMin(((exports) => {
43027
43027
  var Buffer = require_safer().Buffer;
43028
43028
  exports._dbcs = DBCSCodec;
@@ -43364,7 +43364,7 @@ var require_dbcs_codec = /* @__PURE__ */ __commonJSMin(((exports) => {
43364
43364
  }
43365
43365
  }));
43366
43366
  //#endregion
43367
- //#region ../../../rd-20260918/context-efficiency-repair/staging/repo/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/shiftjis.json
43367
+ //#region ../../node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/shiftjis.json
43368
43368
  var require_shiftjis = /* @__PURE__ */ __commonJSMin(((exports, module) => {
43369
43369
  module.exports = [
43370
43370
  [
@@ -43653,7 +43653,7 @@ var require_shiftjis = /* @__PURE__ */ __commonJSMin(((exports, module) => {
43653
43653
  ];
43654
43654
  }));
43655
43655
  //#endregion
43656
- //#region ../../../rd-20260918/context-efficiency-repair/staging/repo/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/eucjp.json
43656
+ //#region ../../node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/eucjp.json
43657
43657
  var require_eucjp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
43658
43658
  module.exports = [
43659
43659
  [
@@ -44075,7 +44075,7 @@ var require_eucjp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
44075
44075
  ];
44076
44076
  }));
44077
44077
  //#endregion
44078
- //#region ../../../rd-20260918/context-efficiency-repair/staging/repo/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/cp936.json
44078
+ //#region ../../node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/cp936.json
44079
44079
  var require_cp936 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
44080
44080
  module.exports = [
44081
44081
  [
@@ -46656,7 +46656,7 @@ var require_cp936 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
46656
46656
  ];
46657
46657
  }));
46658
46658
  //#endregion
46659
- //#region ../../../rd-20260918/context-efficiency-repair/staging/repo/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/gbk-added.json
46659
+ //#region ../../node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/gbk-added.json
46660
46660
  var require_gbk_added = /* @__PURE__ */ __commonJSMin(((exports, module) => {
46661
46661
  module.exports = [
46662
46662
  [
@@ -46883,7 +46883,7 @@ var require_gbk_added = /* @__PURE__ */ __commonJSMin(((exports, module) => {
46883
46883
  ];
46884
46884
  }));
46885
46885
  //#endregion
46886
- //#region ../../../rd-20260918/context-efficiency-repair/staging/repo/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json
46886
+ //#region ../../node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json
46887
46887
  var require_gb18030_ranges = /* @__PURE__ */ __commonJSMin(((exports, module) => {
46888
46888
  module.exports = {
46889
46889
  "uChars": [
@@ -47307,7 +47307,7 @@ var require_gb18030_ranges = /* @__PURE__ */ __commonJSMin(((exports, module) =>
47307
47307
  };
47308
47308
  }));
47309
47309
  //#endregion
47310
- //#region ../../../rd-20260918/context-efficiency-repair/staging/repo/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/cp949.json
47310
+ //#region ../../node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/cp949.json
47311
47311
  var require_cp949 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
47312
47312
  module.exports = [
47313
47313
  [
@@ -49524,7 +49524,7 @@ var require_cp949 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
49524
49524
  ];
49525
49525
  }));
49526
49526
  //#endregion
49527
- //#region ../../../rd-20260918/context-efficiency-repair/staging/repo/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/cp950.json
49527
+ //#region ../../node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/cp950.json
49528
49528
  var require_cp950 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
49529
49529
  module.exports = [
49530
49530
  [
@@ -49748,7 +49748,7 @@ var require_cp950 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
49748
49748
  ];
49749
49749
  }));
49750
49750
  //#endregion
49751
- //#region ../../../rd-20260918/context-efficiency-repair/staging/repo/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/big5-added.json
49751
+ //#region ../../node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/big5-added.json
49752
49752
  var require_big5_added = /* @__PURE__ */ __commonJSMin(((exports, module) => {
49753
49753
  module.exports = [
49754
49754
  ["8740", "䏰䰲䘃䖦䕸𧉧䵷䖳𧲱䳢𧳅㮕䜶䝄䱇䱀𤊿𣘗𧍒𦺋𧃒䱗𪍑䝏䗚䲅𧱬䴇䪤䚡𦬣爥𥩔𡩣𣸆𣽡晍囻"],
@@ -49914,7 +49914,7 @@ var require_big5_added = /* @__PURE__ */ __commonJSMin(((exports, module) => {
49914
49914
  ];
49915
49915
  }));
49916
49916
  //#endregion
49917
- //#region ../../../rd-20260918/context-efficiency-repair/staging/repo/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/dbcs-data.js
49917
+ //#region ../../node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/dbcs-data.js
49918
49918
  var require_dbcs_data = /* @__PURE__ */ __commonJSMin(((exports, module) => {
49919
49919
  module.exports = {
49920
49920
  "shiftjis": {
@@ -50094,7 +50094,7 @@ var require_dbcs_data = /* @__PURE__ */ __commonJSMin(((exports, module) => {
50094
50094
  };
50095
50095
  }));
50096
50096
  //#endregion
50097
- //#region ../../../rd-20260918/context-efficiency-repair/staging/repo/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/index.js
50097
+ //#region ../../node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/index.js
50098
50098
  var require_encodings = /* @__PURE__ */ __commonJSMin(((exports) => {
50099
50099
  var modules = [
50100
50100
  require_internal(),
@@ -50113,7 +50113,7 @@ var require_encodings = /* @__PURE__ */ __commonJSMin(((exports) => {
50113
50113
  }
50114
50114
  }));
50115
50115
  //#endregion
50116
- //#region ../../../rd-20260918/context-efficiency-repair/staging/repo/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/lib/streams.js
50116
+ //#region ../../node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/lib/streams.js
50117
50117
  var require_streams = /* @__PURE__ */ __commonJSMin(((exports, module) => {
50118
50118
  var Buffer = require_safer().Buffer;
50119
50119
  module.exports = function(stream_module) {
@@ -50199,7 +50199,7 @@ var require_streams = /* @__PURE__ */ __commonJSMin(((exports, module) => {
50199
50199
  };
50200
50200
  }));
50201
50201
  //#endregion
50202
- //#region ../../../rd-20260918/context-efficiency-repair/staging/repo/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/lib/index.js
50202
+ //#region ../../node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/lib/index.js
50203
50203
  var require_lib$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
50204
50204
  var Buffer = require_safer().Buffer;
50205
50205
  var bomHandling = require_bom_handling(), iconv = module.exports;
@@ -50299,7 +50299,7 @@ var require_lib$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
50299
50299
  };
50300
50300
  }));
50301
50301
  //#endregion
50302
- //#region ../../../rd-20260918/context-efficiency-repair/staging/repo/node_modules/.pnpm/encoding@0.1.13/node_modules/encoding/lib/encoding.js
50302
+ //#region ../../node_modules/.pnpm/encoding@0.1.13/node_modules/encoding/lib/encoding.js
50303
50303
  var require_encoding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
50304
50304
  var iconvLite = require_lib$1();
50305
50305
  module.exports.convert = convert;
@@ -50352,7 +50352,7 @@ var require_encoding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
50352
50352
  }
50353
50353
  }));
50354
50354
  //#endregion
50355
- //#region ../../../rd-20260918/context-efficiency-repair/staging/repo/node_modules/.pnpm/node-fetch@2.7.0_encoding@0.1.13/node_modules/node-fetch/lib/index.js
50355
+ //#region ../../node_modules/.pnpm/node-fetch@2.7.0_encoding@0.1.13/node_modules/node-fetch/lib/index.js
50356
50356
  var require_lib = /* @__PURE__ */ __commonJSMin(((exports, module) => {
50357
50357
  Object.defineProperty(exports, "__esModule", { value: true });
50358
50358
  function _interopDefault(ex) {
@@ -51549,10 +51549,10 @@ var require_lib = /* @__PURE__ */ __commonJSMin(((exports, module) => {
51549
51549
  exports.AbortError = AbortError;
51550
51550
  }));
51551
51551
  //#endregion
51552
- //#region ../../../rd-20260918/context-efficiency-repair/staging/repo/node_modules/.pnpm/@grammyjs+types@3.28.0/node_modules/@grammyjs/types/mod.js
51552
+ //#region ../../node_modules/.pnpm/@grammyjs+types@3.28.0/node_modules/@grammyjs/types/mod.js
51553
51553
  var require_types$1 = /* @__PURE__ */ __commonJSMin((() => {}));
51554
51554
  //#endregion
51555
- //#region ../../../rd-20260918/context-efficiency-repair/staging/repo/node_modules/.pnpm/grammy@1.44.0_encoding@0.1.13/node_modules/grammy/out/types.node.js
51555
+ //#region ../../node_modules/.pnpm/grammy@1.44.0_encoding@0.1.13/node_modules/grammy/out/types.node.js
51556
51556
  var require_types_node = /* @__PURE__ */ __commonJSMin(((exports) => {
51557
51557
  var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
51558
51558
  if (k2 === void 0) k2 = k;
@@ -51632,7 +51632,7 @@ var require_types_node = /* @__PURE__ */ __commonJSMin(((exports) => {
51632
51632
  }
51633
51633
  }));
51634
51634
  //#endregion
51635
- //#region ../../../rd-20260918/context-efficiency-repair/staging/repo/node_modules/.pnpm/grammy@1.44.0_encoding@0.1.13/node_modules/grammy/out/types.js
51635
+ //#region ../../node_modules/.pnpm/grammy@1.44.0_encoding@0.1.13/node_modules/grammy/out/types.js
51636
51636
  var require_types = /* @__PURE__ */ __commonJSMin(((exports) => {
51637
51637
  var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
51638
51638
  if (k2 === void 0) k2 = k;
@@ -51655,7 +51655,7 @@ var require_types = /* @__PURE__ */ __commonJSMin(((exports) => {
51655
51655
  __exportStar(require_types_node(), exports);
51656
51656
  }));
51657
51657
  //#endregion
51658
- //#region ../../../rd-20260918/context-efficiency-repair/staging/repo/node_modules/.pnpm/grammy@1.44.0_encoding@0.1.13/node_modules/grammy/out/core/payload.js
51658
+ //#region ../../node_modules/.pnpm/grammy@1.44.0_encoding@0.1.13/node_modules/grammy/out/core/payload.js
51659
51659
  var require_payload = /* @__PURE__ */ __commonJSMin(((exports) => {
51660
51660
  Object.defineProperty(exports, "__esModule", { value: true });
51661
51661
  exports.requiresFormDataUpload = requiresFormDataUpload;
@@ -51822,7 +51822,7 @@ ${filename}
51822
51822
  }
51823
51823
  }));
51824
51824
  //#endregion
51825
- //#region ../../../rd-20260918/context-efficiency-repair/staging/repo/node_modules/.pnpm/event-target-shim@5.0.1/node_modules/event-target-shim/dist/event-target-shim.js
51825
+ //#region ../../node_modules/.pnpm/event-target-shim@5.0.1/node_modules/event-target-shim/dist/event-target-shim.js
51826
51826
  /**
51827
51827
  * @author Toru Nagashima <https://github.com/mysticatea>
51828
51828
  * @copyright 2015 Toru Nagashima. All rights reserved.
@@ -52454,7 +52454,7 @@ var require_event_target_shim = /* @__PURE__ */ __commonJSMin(((exports, module)
52454
52454
  module.exports.defineEventAttribute = defineEventAttribute;
52455
52455
  }));
52456
52456
  //#endregion
52457
- //#region ../../../rd-20260918/context-efficiency-repair/staging/repo/node_modules/.pnpm/abort-controller@3.0.0/node_modules/abort-controller/dist/abort-controller.js
52457
+ //#region ../../node_modules/.pnpm/abort-controller@3.0.0/node_modules/abort-controller/dist/abort-controller.js
52458
52458
  /**
52459
52459
  * @author Toru Nagashima <https://github.com/mysticatea>
52460
52460
  * See LICENSE file in root directory for full license.
@@ -52562,7 +52562,7 @@ var require_abort_controller = /* @__PURE__ */ __commonJSMin(((exports, module)
52562
52562
  module.exports.AbortSignal = AbortSignal;
52563
52563
  }));
52564
52564
  //#endregion
52565
- //#region ../../../rd-20260918/context-efficiency-repair/staging/repo/node_modules/.pnpm/grammy@1.44.0_encoding@0.1.13/node_modules/grammy/out/shim.node.js
52565
+ //#region ../../node_modules/.pnpm/grammy@1.44.0_encoding@0.1.13/node_modules/grammy/out/shim.node.js
52566
52566
  var require_shim_node = /* @__PURE__ */ __commonJSMin(((exports) => {
52567
52567
  Object.defineProperty(exports, "__esModule", { value: true });
52568
52568
  exports.fetch = exports.AbortController = void 0;
@@ -52582,7 +52582,7 @@ var require_shim_node = /* @__PURE__ */ __commonJSMin(((exports) => {
52582
52582
  });
52583
52583
  }));
52584
52584
  //#endregion
52585
- //#region ../../../rd-20260918/context-efficiency-repair/staging/repo/node_modules/.pnpm/grammy@1.44.0_encoding@0.1.13/node_modules/grammy/out/core/client.js
52585
+ //#region ../../node_modules/.pnpm/grammy@1.44.0_encoding@0.1.13/node_modules/grammy/out/core/client.js
52586
52586
  var require_client = /* @__PURE__ */ __commonJSMin(((exports) => {
52587
52587
  Object.defineProperty(exports, "__esModule", { value: true });
52588
52588
  exports.createRawApi = createRawApi;
@@ -52783,7 +52783,7 @@ consider using TypeScript. https://www.typescriptlang.org/`);
52783
52783
  const shim_node_js_1 = require_shim_node();
52784
52784
  }));
52785
52785
  //#endregion
52786
- //#region ../../../rd-20260918/context-efficiency-repair/staging/repo/node_modules/.pnpm/grammy@1.44.0_encoding@0.1.13/node_modules/grammy/out/core/api.js
52786
+ //#region ../../node_modules/.pnpm/grammy@1.44.0_encoding@0.1.13/node_modules/grammy/out/core/api.js
52787
52787
  var require_api = /* @__PURE__ */ __commonJSMin(((exports) => {
52788
52788
  Object.defineProperty(exports, "__esModule", { value: true });
52789
52789
  exports.Api = void 0;
@@ -55838,7 +55838,7 @@ var require_api = /* @__PURE__ */ __commonJSMin(((exports) => {
55838
55838
  exports.Api = Api;
55839
55839
  }));
55840
55840
  //#endregion
55841
- //#region ../../../rd-20260918/context-efficiency-repair/staging/repo/node_modules/.pnpm/grammy@1.44.0_encoding@0.1.13/node_modules/grammy/out/bot.js
55841
+ //#region ../../node_modules/.pnpm/grammy@1.44.0_encoding@0.1.13/node_modules/grammy/out/bot.js
55842
55842
  var require_bot = /* @__PURE__ */ __commonJSMin(((exports) => {
55843
55843
  Object.defineProperty(exports, "__esModule", { value: true });
55844
55844
  exports.Bot = exports.BotError = exports.DEFAULT_UPDATE_TYPES = void 0;
@@ -56377,7 +56377,7 @@ you can circumvent this protection against memory leaks.`);
56377
56377
  const shim_node_js_1 = require_shim_node();
56378
56378
  }));
56379
56379
  //#endregion
56380
- //#region ../../../rd-20260918/context-efficiency-repair/staging/repo/node_modules/.pnpm/grammy@1.44.0_encoding@0.1.13/node_modules/grammy/out/convenience/constants.js
56380
+ //#region ../../node_modules/.pnpm/grammy@1.44.0_encoding@0.1.13/node_modules/grammy/out/convenience/constants.js
56381
56381
  var require_constants = /* @__PURE__ */ __commonJSMin(((exports) => {
56382
56382
  Object.defineProperty(exports, "__esModule", { value: true });
56383
56383
  exports.API_CONSTANTS = void 0;
@@ -56417,7 +56417,7 @@ var require_constants = /* @__PURE__ */ __commonJSMin(((exports) => {
56417
56417
  Object.freeze(exports.API_CONSTANTS);
56418
56418
  }));
56419
56419
  //#endregion
56420
- //#region ../../../rd-20260918/context-efficiency-repair/staging/repo/node_modules/.pnpm/grammy@1.44.0_encoding@0.1.13/node_modules/grammy/out/convenience/inline_query.js
56420
+ //#region ../../node_modules/.pnpm/grammy@1.44.0_encoding@0.1.13/node_modules/grammy/out/convenience/inline_query.js
56421
56421
  var require_inline_query = /* @__PURE__ */ __commonJSMin(((exports) => {
56422
56422
  Object.defineProperty(exports, "__esModule", { value: true });
56423
56423
  exports.InlineQueryResultBuilder = void 0;
@@ -56945,7 +56945,7 @@ var require_inline_query = /* @__PURE__ */ __commonJSMin(((exports) => {
56945
56945
  };
56946
56946
  }));
56947
56947
  //#endregion
56948
- //#region ../../../rd-20260918/context-efficiency-repair/staging/repo/node_modules/.pnpm/grammy@1.44.0_encoding@0.1.13/node_modules/grammy/out/convenience/input_media.js
56948
+ //#region ../../node_modules/.pnpm/grammy@1.44.0_encoding@0.1.13/node_modules/grammy/out/convenience/input_media.js
56949
56949
  var require_input_media = /* @__PURE__ */ __commonJSMin(((exports) => {
56950
56950
  Object.defineProperty(exports, "__esModule", { value: true });
56951
56951
  exports.InputMediaBuilder = void 0;
@@ -57050,7 +57050,7 @@ var require_input_media = /* @__PURE__ */ __commonJSMin(((exports) => {
57050
57050
  };
57051
57051
  }));
57052
57052
  //#endregion
57053
- //#region ../../../rd-20260918/context-efficiency-repair/staging/repo/node_modules/.pnpm/grammy@1.44.0_encoding@0.1.13/node_modules/grammy/out/convenience/keyboard.js
57053
+ //#region ../../node_modules/.pnpm/grammy@1.44.0_encoding@0.1.13/node_modules/grammy/out/convenience/keyboard.js
57054
57054
  var require_keyboard = /* @__PURE__ */ __commonJSMin(((exports) => {
57055
57055
  Object.defineProperty(exports, "__esModule", { value: true });
57056
57056
  exports.InlineKeyboard = exports.Keyboard = void 0;
@@ -58213,7 +58213,7 @@ var require_keyboard = /* @__PURE__ */ __commonJSMin(((exports) => {
58213
58213
  }
58214
58214
  }));
58215
58215
  //#endregion
58216
- //#region ../../../rd-20260918/context-efficiency-repair/staging/repo/node_modules/.pnpm/grammy@1.44.0_encoding@0.1.13/node_modules/grammy/out/convenience/session.js
58216
+ //#region ../../node_modules/.pnpm/grammy@1.44.0_encoding@0.1.13/node_modules/grammy/out/convenience/session.js
58217
58217
  var require_session = /* @__PURE__ */ __commonJSMin(((exports) => {
58218
58218
  Object.defineProperty(exports, "__esModule", { value: true });
58219
58219
  exports.MemorySessionStorage = void 0;
@@ -58629,7 +58629,7 @@ var require_session = /* @__PURE__ */ __commonJSMin(((exports) => {
58629
58629
  }
58630
58630
  }));
58631
58631
  //#endregion
58632
- //#region ../../../rd-20260918/context-efficiency-repair/staging/repo/node_modules/.pnpm/grammy@1.44.0_encoding@0.1.13/node_modules/grammy/out/convenience/frameworks.js
58632
+ //#region ../../node_modules/.pnpm/grammy@1.44.0_encoding@0.1.13/node_modules/grammy/out/convenience/frameworks.js
58633
58633
  var require_frameworks = /* @__PURE__ */ __commonJSMin(((exports) => {
58634
58634
  Object.defineProperty(exports, "__esModule", { value: true });
58635
58635
  exports.adapters = void 0;
@@ -59016,7 +59016,7 @@ var require_frameworks = /* @__PURE__ */ __commonJSMin(((exports) => {
59016
59016
  };
59017
59017
  }));
59018
59018
  //#endregion
59019
- //#region ../../../rd-20260918/context-efficiency-repair/staging/repo/node_modules/.pnpm/grammy@1.44.0_encoding@0.1.13/node_modules/grammy/out/convenience/webhook.js
59019
+ //#region ../../node_modules/.pnpm/grammy@1.44.0_encoding@0.1.13/node_modules/grammy/out/convenience/webhook.js
59020
59020
  var require_webhook = /* @__PURE__ */ __commonJSMin(((exports) => {
59021
59021
  Object.defineProperty(exports, "__esModule", { value: true });
59022
59022
  exports.webhookCallback = webhookCallback;
@@ -60022,6 +60022,7 @@ function toInboundCtx(ctx, text) {
60022
60022
  chatId: ctx.chat?.id,
60023
60023
  chatType: chatType === "private" || chatType === "group" || chatType === "supergroup" || chatType === "channel" ? chatType : void 0,
60024
60024
  messageId: ctx.message?.message_id,
60025
+ messageThreadId: ctx.message?.message_thread_id,
60025
60026
  text,
60026
60027
  entities: (ctx.message?.entities ?? ctx.message?.caption_entities ?? []).map((entity) => ({
60027
60028
  type: entity.type,
@@ -60152,6 +60153,11 @@ function registerTypeHandlers(bot, token, deliver) {
60152
60153
  * forgeable by any allowlisted sender typing that string.
60153
60154
  */
60154
60155
  const CONTEXT_TRUNCATED_MARKER = "\n[Telegram-Kontext gekuerzt]";
60156
+ function telegramThreadId(value) {
60157
+ if (value === void 0) return void 0;
60158
+ if (typeof value !== "string" && typeof value !== "number" || !/^[1-9]\d*$/u.test(String(value)) || !Number.isSafeInteger(Number(value))) throw new Error("Invalid Telegram message_thread_id");
60159
+ return Number(value);
60160
+ }
60155
60161
  /** Bounded per-chat buffer used by headless delivery between addressed turns. */
60156
60162
  var BoundedChannelContextBuffer = class {
60157
60163
  maxMessages;
@@ -60161,17 +60167,19 @@ var BoundedChannelContextBuffer = class {
60161
60167
  this.maxMessages = maxMessages;
60162
60168
  this.maxChars = maxChars;
60163
60169
  }
60164
- add(chatId, tag) {
60165
- const messages = this.messagesByChat.get(chatId) ?? [];
60170
+ add(chatId, tag, threadId) {
60171
+ const route = threadId === void 0 ? chatId : JSON.stringify([chatId, threadId]);
60172
+ const messages = this.messagesByChat.get(route) ?? [];
60166
60173
  const boundedTag = tag.length <= this.maxChars ? tag : this.maxChars <= 28 ? CONTEXT_TRUNCATED_MARKER.slice(0, this.maxChars) : `${tag.slice(0, this.maxChars - 28)}${CONTEXT_TRUNCATED_MARKER}`;
60167
60174
  messages.push(boundedTag);
60168
60175
  let chars = messages.reduce((sum, message) => sum + message.length, 0);
60169
60176
  while (messages.length > this.maxMessages || chars > this.maxChars) chars -= messages.shift()?.length ?? 0;
60170
- this.messagesByChat.set(chatId, messages);
60177
+ this.messagesByChat.set(route, messages);
60171
60178
  }
60172
- take(chatId) {
60173
- const messages = this.messagesByChat.get(chatId) ?? [];
60174
- this.messagesByChat.delete(chatId);
60179
+ take(chatId, threadId) {
60180
+ const route = threadId === void 0 ? chatId : JSON.stringify([chatId, threadId]);
60181
+ const messages = this.messagesByChat.get(route) ?? [];
60182
+ this.messagesByChat.delete(route);
60175
60183
  return messages;
60176
60184
  }
60177
60185
  };
@@ -60287,7 +60295,7 @@ function config(newConfig) {
60287
60295
  return globalConfig;
60288
60296
  }
60289
60297
  //#endregion
60290
- //#region ../../../rd-20260918/context-efficiency-repair/staging/repo/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/util.js
60298
+ //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/util.js
60291
60299
  function getEnumValues(entries) {
60292
60300
  const numericValues = Object.values(entries).filter((v) => typeof v === "number");
60293
60301
  return Object.entries(entries).filter(([k, _]) => numericValues.indexOf(+k) === -1).map(([_, v]) => v);
@@ -60597,7 +60605,7 @@ function issue(...args) {
60597
60605
  return { ...iss };
60598
60606
  }
60599
60607
  //#endregion
60600
- //#region ../../../rd-20260918/context-efficiency-repair/staging/repo/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/errors.js
60608
+ //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/errors.js
60601
60609
  const initializer$1 = (inst, def) => {
60602
60610
  inst.name = "$ZodError";
60603
60611
  Object.defineProperty(inst, "_zod", {
@@ -60654,7 +60662,7 @@ function formatError(error, mapper = (issue) => issue.message) {
60654
60662
  return fieldErrors;
60655
60663
  }
60656
60664
  //#endregion
60657
- //#region ../../../rd-20260918/context-efficiency-repair/staging/repo/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/parse.js
60665
+ //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/parse.js
60658
60666
  const _parse = (_Err) => (schema, value, _ctx, _params) => {
60659
60667
  const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
60660
60668
  const result = schema._zod.run({
@@ -60747,7 +60755,7 @@ const _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
60747
60755
  return _safeParseAsync(_Err)(schema, value, _ctx);
60748
60756
  };
60749
60757
  //#endregion
60750
- //#region ../../../rd-20260918/context-efficiency-repair/staging/repo/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/regexes.js
60758
+ //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/regexes.js
60751
60759
  const cuid = /^[cC][^\s-]{8,}$/;
60752
60760
  const cuid2 = /^[0-9a-z]+$/;
60753
60761
  const ulid = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/;
@@ -60805,7 +60813,7 @@ const boolean$1 = /^(?:true|false)$/i;
60805
60813
  const lowercase = /^[^A-Z]*$/;
60806
60814
  const uppercase = /^[^a-z]*$/;
60807
60815
  //#endregion
60808
- //#region ../../../rd-20260918/context-efficiency-repair/staging/repo/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/checks.js
60816
+ //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/checks.js
60809
60817
  const $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
60810
60818
  var _a;
60811
60819
  inst._zod ?? (inst._zod = {});
@@ -61163,7 +61171,7 @@ const $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (i
61163
61171
  };
61164
61172
  });
61165
61173
  //#endregion
61166
- //#region ../../../rd-20260918/context-efficiency-repair/staging/repo/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/doc.js
61174
+ //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/doc.js
61167
61175
  var Doc = class {
61168
61176
  constructor(args = []) {
61169
61177
  this.content = [];
@@ -61194,14 +61202,14 @@ var Doc = class {
61194
61202
  }
61195
61203
  };
61196
61204
  //#endregion
61197
- //#region ../../../rd-20260918/context-efficiency-repair/staging/repo/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/versions.js
61205
+ //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/versions.js
61198
61206
  const version = {
61199
61207
  major: 4,
61200
61208
  minor: 3,
61201
61209
  patch: 6
61202
61210
  };
61203
61211
  //#endregion
61204
- //#region ../../../rd-20260918/context-efficiency-repair/staging/repo/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/schemas.js
61212
+ //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/schemas.js
61205
61213
  const $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
61206
61214
  var _a;
61207
61215
  inst ?? (inst = {});
@@ -62346,7 +62354,7 @@ function handleRefineResult(result, payload, input, inst) {
62346
62354
  }
62347
62355
  }
62348
62356
  //#endregion
62349
- //#region ../../../rd-20260918/context-efficiency-repair/staging/repo/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/registries.js
62357
+ //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/registries.js
62350
62358
  var _a;
62351
62359
  var $ZodRegistry = class {
62352
62360
  constructor() {
@@ -62393,7 +62401,7 @@ function registry() {
62393
62401
  (_a = globalThis).__zod_globalRegistry ?? (_a.__zod_globalRegistry = registry());
62394
62402
  const globalRegistry = globalThis.__zod_globalRegistry;
62395
62403
  //#endregion
62396
- //#region ../../../rd-20260918/context-efficiency-repair/staging/repo/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/api.js
62404
+ //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/api.js
62397
62405
  /* @__NO_SIDE_EFFECTS__ */
62398
62406
  function _string(Class, params) {
62399
62407
  return new Class({
@@ -62893,7 +62901,7 @@ function _check(fn, params) {
62893
62901
  return ch;
62894
62902
  }
62895
62903
  //#endregion
62896
- //#region ../../../rd-20260918/context-efficiency-repair/staging/repo/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/to-json-schema.js
62904
+ //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/to-json-schema.js
62897
62905
  function initializeContext(params) {
62898
62906
  let target = params?.target ?? "draft-2020-12";
62899
62907
  if (target === "draft-4") target = "draft-04";
@@ -63178,7 +63186,7 @@ const createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params)
63178
63186
  return finalize(ctx, schema);
63179
63187
  };
63180
63188
  //#endregion
63181
- //#region ../../../rd-20260918/context-efficiency-repair/staging/repo/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/json-schema-processors.js
63189
+ //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/json-schema-processors.js
63182
63190
  const formatMap = {
63183
63191
  guid: "uuid",
63184
63192
  url: "uri",
@@ -63444,7 +63452,7 @@ const optionalProcessor = (schema, ctx, _json, params) => {
63444
63452
  seen.ref = def.innerType;
63445
63453
  };
63446
63454
  //#endregion
63447
- //#region ../../../rd-20260918/context-efficiency-repair/staging/repo/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/iso.js
63455
+ //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/iso.js
63448
63456
  const ZodISODateTime = /* @__PURE__ */ $constructor("ZodISODateTime", (inst, def) => {
63449
63457
  $ZodISODateTime.init(inst, def);
63450
63458
  ZodStringFormat.init(inst, def);
@@ -63474,7 +63482,7 @@ function duration(params) {
63474
63482
  return /* @__PURE__ */ _isoDuration(ZodISODuration, params);
63475
63483
  }
63476
63484
  //#endregion
63477
- //#region ../../../rd-20260918/context-efficiency-repair/staging/repo/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/errors.js
63485
+ //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/errors.js
63478
63486
  const initializer = (inst, issues) => {
63479
63487
  $ZodError.init(inst, issues);
63480
63488
  inst.name = "ZodError";
@@ -63497,7 +63505,7 @@ const initializer = (inst, issues) => {
63497
63505
  const ZodError = $constructor("ZodError", initializer);
63498
63506
  const ZodRealError = $constructor("ZodError", initializer, { Parent: Error });
63499
63507
  //#endregion
63500
- //#region ../../../rd-20260918/context-efficiency-repair/staging/repo/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/parse.js
63508
+ //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/parse.js
63501
63509
  const parse = /* @__PURE__ */ _parse(ZodRealError);
63502
63510
  const parseAsync = /* @__PURE__ */ _parseAsync(ZodRealError);
63503
63511
  const safeParse = /* @__PURE__ */ _safeParse(ZodRealError);
@@ -63511,7 +63519,7 @@ const safeDecode = /* @__PURE__ */ _safeDecode(ZodRealError);
63511
63519
  const safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
63512
63520
  const safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
63513
63521
  //#endregion
63514
- //#region ../../../rd-20260918/context-efficiency-repair/staging/repo/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/schemas.js
63522
+ //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/schemas.js
63515
63523
  const ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
63516
63524
  $ZodType.init(inst, def);
63517
63525
  Object.assign(inst["~standard"], { jsonSchema: {
@@ -64106,7 +64114,7 @@ function superRefine(fn) {
64106
64114
  return /* @__PURE__ */ _superRefine(fn);
64107
64115
  }
64108
64116
  //#endregion
64109
- //#region ../../../rd-20260918/context-efficiency-repair/staging/repo/node_modules/.pnpm/@agentclientprotocol+sdk@0.23.0_zod@4.3.6/node_modules/@agentclientprotocol/sdk/dist/schema/index.js
64117
+ //#region ../../node_modules/.pnpm/@agentclientprotocol+sdk@0.23.0_zod@4.3.6/node_modules/@agentclientprotocol/sdk/dist/schema/index.js
64110
64118
  const AGENT_METHODS = {
64111
64119
  authenticate: "authenticate",
64112
64120
  document_did_change: "document/didChange",
@@ -64155,7 +64163,7 @@ const CLIENT_METHODS = {
64155
64163
  terminal_wait_for_exit: "terminal/wait_for_exit"
64156
64164
  };
64157
64165
  //#endregion
64158
- //#region ../../../rd-20260918/context-efficiency-repair/staging/repo/node_modules/.pnpm/@agentclientprotocol+sdk@0.23.0_zod@4.3.6/node_modules/@agentclientprotocol/sdk/dist/schema/zod.gen.js
64166
+ //#region ../../node_modules/.pnpm/@agentclientprotocol+sdk@0.23.0_zod@4.3.6/node_modules/@agentclientprotocol/sdk/dist/schema/zod.gen.js
64159
64167
  /**
64160
64168
  * **UNSTABLE**
64161
64169
  *
@@ -66812,7 +66820,7 @@ union([object({
66812
66820
  id: zRequestId
66813
66821
  })]);
66814
66822
  //#endregion
66815
- //#region ../../../rd-20260918/context-efficiency-repair/staging/repo/node_modules/.pnpm/@agentclientprotocol+sdk@0.23.0_zod@4.3.6/node_modules/@agentclientprotocol/sdk/dist/stream.js
66823
+ //#region ../../node_modules/.pnpm/@agentclientprotocol+sdk@0.23.0_zod@4.3.6/node_modules/@agentclientprotocol/sdk/dist/stream.js
66816
66824
  /**
66817
66825
  * Creates an ACP Stream from a pair of newline-delimited JSON streams.
66818
66826
  *
@@ -66878,7 +66886,7 @@ function ndJsonStream(output, input) {
66878
66886
  };
66879
66887
  }
66880
66888
  //#endregion
66881
- //#region ../../../rd-20260918/context-efficiency-repair/staging/repo/node_modules/.pnpm/@agentclientprotocol+sdk@0.23.0_zod@4.3.6/node_modules/@agentclientprotocol/sdk/dist/acp.js
66889
+ //#region ../../node_modules/.pnpm/@agentclientprotocol+sdk@0.23.0_zod@4.3.6/node_modules/@agentclientprotocol/sdk/dist/acp.js
66882
66890
  function emptyObjectResponse(response) {
66883
66891
  return response ?? {};
66884
66892
  }
@@ -68000,7 +68008,7 @@ function outboxMarker() {
68000
68008
  }
68001
68009
  }
68002
68010
  /** True when the reply tool appended an outbox entry for this chat since `marker`. */
68003
- function outboxGrewForChat(marker, chatId) {
68011
+ function outboxGrewForChat(marker, chatId, threadId) {
68004
68012
  try {
68005
68013
  if (statSync(outboxLog()).size <= marker) return false;
68006
68014
  const fresh = readFileSync(outboxLog(), "utf8").slice(marker);
@@ -68008,7 +68016,7 @@ function outboxGrewForChat(marker, chatId) {
68008
68016
  if (line.trim().length === 0) continue;
68009
68017
  try {
68010
68018
  const entry = JSON.parse(line);
68011
- if (String(entry.chat_id) === String(chatId)) return true;
68019
+ if (String(entry.chat_id) === String(chatId) && (entry.message_thread_id === void 0 ? void 0 : String(entry.message_thread_id)) === threadId) return true;
68012
68020
  } catch {}
68013
68021
  }
68014
68022
  } catch {}
@@ -68028,7 +68036,13 @@ function scrubSecrets(text) {
68028
68036
  * Deterministic delivery: send `text` to `chatId` via the plain Bot API and
68029
68037
  * log it to outbox.jsonl as kind "reply-fallback". Returns true on success.
68030
68038
  */
68031
- async function sendReplyFallback(chatId, rawText) {
68039
+ async function sendReplyFallback(chatId, rawText, threadId) {
68040
+ let topic;
68041
+ try {
68042
+ topic = threadId === void 0 ? {} : { message_thread_id: telegramThreadId(threadId) };
68043
+ } catch {
68044
+ return false;
68045
+ }
68032
68046
  const token = botToken();
68033
68047
  if (token === void 0) return false;
68034
68048
  if (isGroupChat(chatId) && isGroupNoiseReply(rawText)) {
@@ -68044,7 +68058,8 @@ async function sendReplyFallback(chatId, rawText) {
68044
68058
  headers: { "Content-Type": "application/json" },
68045
68059
  body: JSON.stringify({
68046
68060
  chat_id: chatId,
68047
- text: body
68061
+ text: body,
68062
+ ...topic
68048
68063
  })
68049
68064
  })).json();
68050
68065
  if (payload.ok !== true) return false;
@@ -68053,6 +68068,7 @@ async function sendReplyFallback(chatId, rawText) {
68053
68068
  ts: (/* @__PURE__ */ new Date()).toISOString(),
68054
68069
  direction: "out",
68055
68070
  kind: "reply-fallback",
68071
+ ...topic,
68056
68072
  chat_id: String(chatId),
68057
68073
  message_ids: payload.result?.message_id !== void 0 ? [payload.result.message_id] : [],
68058
68074
  text: body
@@ -68104,9 +68120,9 @@ var KingSession = class {
68104
68120
  this.onFatal = onFatal;
68105
68121
  }
68106
68122
  /** Enqueue one inbound payload as a prompt turn. Never rejects. */
68107
- send(text, chatId, image) {
68123
+ send(text, chatId, image, threadId) {
68108
68124
  this.queue = this.queue.then(async () => {
68109
- await this.promptOnce(text, chatId, image);
68125
+ await this.promptOnce(text, chatId, image, threadId);
68110
68126
  }).catch((err) => {
68111
68127
  logLine(`prompt failed: ${String(err)}`);
68112
68128
  process.stderr.write(`telegram channel: prompt failed: ${String(err)}\n`);
@@ -68116,7 +68132,7 @@ var KingSession = class {
68116
68132
  this.disposed = true;
68117
68133
  this.child?.kill("SIGTERM");
68118
68134
  }
68119
- async promptOnce(text, chatId, image) {
68135
+ async promptOnce(text, chatId, image, threadId) {
68120
68136
  const { conn, sessionId } = await this.ensureSession();
68121
68137
  const payload = this.preambleSent ? text : `${buildPreamble()}\n\n${text}`;
68122
68138
  this.preambleSent = true;
@@ -68128,13 +68144,13 @@ var KingSession = class {
68128
68144
  })).stopReason}`);
68129
68145
  if (chatId === void 0) return;
68130
68146
  for (let i = 0; i < 4; i++) {
68131
- if (outboxGrewForChat(marker, chatId)) return;
68147
+ if (outboxGrewForChat(marker, chatId, threadId)) return;
68132
68148
  await new Promise((resolve) => setTimeout(resolve, 1e3));
68133
68149
  }
68134
- if (outboxGrewForChat(marker, chatId)) return;
68150
+ if (outboxGrewForChat(marker, chatId, threadId)) return;
68135
68151
  const finalText = (this.client?.turnText ?? "").trim();
68136
68152
  if (finalText.length === 0) return;
68137
- logLine(await sendReplyFallback(chatId, finalText) ? "reply-fallback delivered" : "reply-fallback FAILED");
68153
+ logLine(await sendReplyFallback(chatId, finalText, threadId) ? "reply-fallback delivered" : "reply-fallback FAILED");
68138
68154
  }
68139
68155
  async ensureSession(attempt = 1) {
68140
68156
  if (this.conn !== void 0 && this.sessionId !== void 0 && this.child?.exitCode === null) return {
@@ -68471,6 +68487,7 @@ async function handleInbound(event) {
68471
68487
  const meta = {
68472
68488
  chat_id: chatId,
68473
68489
  ...msgId !== void 0 ? { message_id: String(msgId) } : {},
68490
+ ...ctx.messageThreadId !== void 0 ? { message_thread_id: String(ctx.messageThreadId) } : {},
68474
68491
  addressed: inferAddressing ? "semantic" : String(addressed),
68475
68492
  user: ctx.from?.username ?? String(ctx.from?.id),
68476
68493
  user_id: String(ctx.from?.id),
@@ -68488,10 +68505,10 @@ async function handleInbound(event) {
68488
68505
  const tag = appendImageLoadFailureObservation(buildChannelTag(ctx.text, meta, addressed, inferAddressing), event.downloadImage !== void 0, image);
68489
68506
  const target = deliveryTarget();
68490
68507
  if (!startsTurn && target === "headless" && HEADLESS_ENABLED) {
68491
- headlessContext.add(chatId, tag);
68508
+ headlessContext.add(chatId, tag, meta.message_thread_id);
68492
68509
  return;
68493
68510
  }
68494
- const deliveryTag = startsTurn ? [...headlessContext.take(chatId), tag].join("\n\n") : tag;
68511
+ const deliveryTag = startsTurn ? [...headlessContext.take(chatId, meta.message_thread_id), tag].join("\n\n") : tag;
68495
68512
  if (target === "tui") deliverToTuiQueue({
68496
68513
  v: 1,
68497
68514
  text: ctx.text,
@@ -68499,7 +68516,7 @@ async function handleInbound(event) {
68499
68516
  preamble: buildPreamble(),
68500
68517
  meta
68501
68518
  });
68502
- else if (HEADLESS_ENABLED) session.send(deliveryTag, String(meta.chat_id), image);
68519
+ else if (HEADLESS_ENABLED) session.send(deliveryTag, String(meta.chat_id), image, meta.message_thread_id);
68503
68520
  else process.stderr.write(`telegram bridge: headless off — inbound ${chatId}:${String(msgId)} nicht zugestellt (kein TUI-Fenster offen)\n`);
68504
68521
  }
68505
68522
  registerTypeHandlers(bot, TOKEN, handleInbound);