@wirecat/tg-cli 0.105.0 → 0.106.0

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 (109) hide show
  1. package/dist/bin/tg.js +2 -2
  2. package/dist/bundle/{adapter-WWYRCTPE.js → adapter-TIGHDHUK.js} +115 -55
  3. package/dist/bundle/{all-profiles-IJYM6NIJ.js → all-profiles-N4DLSGWY.js} +5 -5
  4. package/dist/bundle/{anthropic-EDRWOXB5.js → anthropic-D2T2QRLR.js} +3 -3
  5. package/dist/bundle/{app-server-2NF7ZH3C.js → app-server-FZTDNSPB.js} +34 -34
  6. package/dist/bundle/{bot-api-XCDLL6M2.js → bot-api-OMUV6EIK.js} +38 -38
  7. package/dist/bundle/{bot-history-37WSQX3U.js → bot-history-P2MWYLXW.js} +10 -10
  8. package/dist/bundle/{bun-ZX34DXTI.js → bun-UA5PRMLC.js} +2 -2
  9. package/dist/bundle/{bun-sqlite-7TZ73UKO.js → bun-sqlite-XVRVJ7A2.js} +2 -2
  10. package/dist/bundle/{chunk-5PDGRPTS.js → chunk-2GQCWNX5.js} +1 -1
  11. package/dist/bundle/{chunk-RDO66SBI.js → chunk-2J3TUUCO.js} +2 -2
  12. package/dist/bundle/{chunk-GGIDY5KC.js → chunk-67GS5BZI.js} +154 -142
  13. package/dist/bundle/{chunk-OOBCCVYM.js → chunk-6BQUCCBD.js} +4 -4
  14. package/dist/bundle/{chunk-2J2G3ELT.js → chunk-6XXI3AHJ.js} +1 -1
  15. package/dist/bundle/{chunk-VIGQIMGM.js → chunk-7P6ZCUPN.js} +2 -2
  16. package/dist/bundle/{chunk-56JDML7T.js → chunk-ADLIUGL2.js} +2 -2
  17. package/dist/bundle/{chunk-QPE72FCE.js → chunk-AQSKZMBD.js} +7 -7
  18. package/dist/bundle/{chunk-J5OIB3OW.js → chunk-BLWCHZCW.js} +2 -2
  19. package/dist/bundle/{chunk-YGYQY5AG.js → chunk-BZUO2KFV.js} +1 -1
  20. package/dist/bundle/{chunk-SJIHZA4K.js → chunk-C2MKA7SX.js} +1 -1
  21. package/dist/bundle/{chunk-YSIC5B32.js → chunk-C6NTI37N.js} +10 -10
  22. package/dist/bundle/{chunk-PFL3CCP2.js → chunk-DC7O7TVJ.js} +1 -1
  23. package/dist/bundle/{chunk-FNASJIAI.js → chunk-DECFDUNW.js} +11 -11
  24. package/dist/bundle/{chunk-73OWDRGK.js → chunk-E5Z4FGRD.js} +25 -21
  25. package/dist/bundle/{chunk-WD7Q2H4J.js → chunk-ELQ5ORY2.js} +2929 -2852
  26. package/dist/bundle/{chunk-4VFRP2T2.js → chunk-EPKGNUOZ.js} +26 -22
  27. package/dist/bundle/{chunk-Q6NALH2X.js → chunk-EUTOFAUT.js} +2 -2
  28. package/dist/bundle/{chunk-LOIFBJBA.js → chunk-EW3Y44NV.js} +9 -9
  29. package/dist/bundle/{chunk-L23IJ3IZ.js → chunk-FO33YFWF.js} +5 -5
  30. package/dist/bundle/{chunk-MHS2LEZA.js → chunk-GD6BOLZP.js} +6 -6
  31. package/dist/bundle/{chunk-443D2OY7.js → chunk-GHAQXUH3.js} +1 -1
  32. package/dist/bundle/{chunk-ETVQH5AL.js → chunk-ID6TO5P5.js} +11 -9
  33. package/dist/bundle/{chunk-XP4JEE47.js → chunk-JOSUY2NX.js} +1 -1
  34. package/dist/bundle/{chunk-MAV5ODPN.js → chunk-LGKLQE2I.js} +1 -1
  35. package/dist/bundle/{chunk-J6B5DQ3I.js → chunk-LSP2NCNL.js} +55 -47
  36. package/dist/bundle/{chunk-6MQ3DEXF.js → chunk-ONK66VVG.js} +18 -1
  37. package/dist/bundle/{chunk-ZI7THBWF.js → chunk-PAHBZPZN.js} +46 -46
  38. package/dist/bundle/{chunk-NEPB2EI6.js → chunk-PEIDCYF5.js} +1 -1
  39. package/dist/bundle/{chunk-ZM2AI3E5.js → chunk-PHPXTRMS.js} +301 -255
  40. package/dist/bundle/{chunk-N5BGV5YZ.js → chunk-QI75LME5.js} +26 -26
  41. package/dist/bundle/{chunk-AQGW6OHU.js → chunk-QQYM26DA.js} +1 -1
  42. package/dist/bundle/{chunk-S3C2L3IE.js → chunk-QWTHUKS4.js} +4 -4
  43. package/dist/bundle/{chunk-RI7H2VVU.js → chunk-R2F6U4F3.js} +7 -7
  44. package/dist/bundle/{chunk-SLFDNASB.js → chunk-T3ZLOMWW.js} +4 -4
  45. package/dist/bundle/{chunk-NBXUNS6Q.js → chunk-T4UTTH3A.js} +1 -1
  46. package/dist/bundle/{chunk-4UZE26T6.js → chunk-T5OFRHDS.js} +5 -5
  47. package/dist/bundle/{chunk-Z6SXT5DV.js → chunk-V7OXTQBY.js} +3 -3
  48. package/dist/bundle/{chunk-4N53GVUI.js → chunk-VYFKWPIS.js} +56 -46
  49. package/dist/bundle/{chunk-QWPVSWQE.js → chunk-WLGQTYIO.js} +2 -2
  50. package/dist/bundle/{chunk-QAW5QNOY.js → chunk-WPRLG5SL.js} +9 -8
  51. package/dist/bundle/{chunk-HJSWUHHP.js → chunk-XFXTB522.js} +1 -1
  52. package/dist/bundle/{chunk-S7FO7OU2.js → chunk-XMKKBDEW.js} +309 -279
  53. package/dist/bundle/{chunk-2A2KXY5G.js → chunk-XQV7EMAI.js} +4 -4
  54. package/dist/bundle/{chunk-QVXMOHHN.js → chunk-XX37LKXG.js} +4 -4
  55. package/dist/bundle/{chunk-ZIG4WIVN.js → chunk-XXLAGQDN.js} +1 -1
  56. package/dist/bundle/{command-contract-OF6TUQ5B.js → command-contract-N5FA573V.js} +12 -12
  57. package/dist/bundle/{echarts-WFLEME5I.js → echarts-WLPTUTMR.js} +2 -2
  58. package/dist/bundle/{embed-ESTG27RK.js → embed-IALJOWZJ.js} +3 -3
  59. package/dist/bundle/{embedder-P3W76VOZ.js → embedder-ZY2TS2XJ.js} +6 -6
  60. package/dist/bundle/{entry-SNRZGNRA.js → entry-67RA75VS.js} +3 -3
  61. package/dist/bundle/{first-run-JS24HORG.js → first-run-QN3UUBJW.js} +5 -5
  62. package/dist/bundle/{first-screen-U63BJPXI.js → first-screen-FK4ZJQJY.js} +13 -13
  63. package/dist/bundle/{identity-TYE57SHY.js → identity-X3YA364I.js} +1 -1
  64. package/dist/bundle/{instructions-ERMZPVS4.js → instructions-355MU4CT.js} +1 -1
  65. package/dist/bundle/{node-KDZSMKIC.js → node-UGJWZLVB.js} +2 -2
  66. package/dist/bundle/{node-sqlite-FR64YDYV.js → node-sqlite-FJFIOC3K.js} +2 -2
  67. package/dist/bundle/{oauth-SPE76ZIY.js → oauth-EZGVL3PP.js} +4 -4
  68. package/dist/bundle/{open-UEFCMPLC.js → open-ANYJ5AKD.js} +1 -1
  69. package/dist/bundle/{process-7MD6MEGB.js → process-JVAQXITD.js} +1 -1
  70. package/dist/bundle/{program-NFFSOGUY.js → program-QGSZY5SZ.js} +40 -40
  71. package/dist/bundle/{prompt-3PI4H66U.js → prompt-EWF4ZSJO.js} +2 -2
  72. package/dist/bundle/{recognize-54LQOU24.js → recognize-T5TPTI6P.js} +3 -3
  73. package/dist/bundle/{remote-JQ74NVUK.js → remote-KOAALKIC.js} +4 -4
  74. package/dist/bundle/{rerank-66YCEORD.js → rerank-MCXFZFRH.js} +4 -4
  75. package/dist/bundle/{serve-5SP2TCGV.js → serve-QEVXXJ2G.js} +6 -6
  76. package/dist/bundle/server-6QM3GFZX.js +55 -0
  77. package/dist/bundle/{server-GFICDJ6J.js → server-Y3ZLG44J.js} +26 -26
  78. package/dist/bundle/{state-U7HXQB6I.js → state-F2ZJV2VP.js} +3 -3
  79. package/dist/bundle/{store-O4QVYHFL.js → store-QX7HBTOW.js} +7 -7
  80. package/dist/bundle/store-maintenance-command-ZBOQSTHY.js +44 -0
  81. package/dist/bundle/tg.js +2 -2
  82. package/dist/commands/context.d.ts.map +1 -1
  83. package/dist/commands/context.js +1 -0
  84. package/dist/commands/context.js.map +1 -1
  85. package/dist/telegram/adapter.d.ts +7 -0
  86. package/dist/telegram/adapter.d.ts.map +1 -1
  87. package/dist/telegram/adapter.js +3 -0
  88. package/dist/telegram/adapter.js.map +1 -1
  89. package/dist/telegram/contacts.d.ts +3 -1
  90. package/dist/telegram/contacts.d.ts.map +1 -1
  91. package/dist/telegram/contacts.js +4 -1
  92. package/dist/telegram/contacts.js.map +1 -1
  93. package/dist/telegram/map.d.ts.map +1 -1
  94. package/dist/telegram/map.js +17 -0
  95. package/dist/telegram/map.js.map +1 -1
  96. package/dist/telegram/messages.d.ts +7 -0
  97. package/dist/telegram/messages.d.ts.map +1 -1
  98. package/dist/telegram/messages.js +5 -0
  99. package/dist/telegram/messages.js.map +1 -1
  100. package/dist/telegram/reactors.d.ts +16 -0
  101. package/dist/telegram/reactors.d.ts.map +1 -0
  102. package/dist/telegram/reactors.js +58 -0
  103. package/dist/telegram/reactors.js.map +1 -0
  104. package/dist/version.d.ts +1 -1
  105. package/dist/version.js +1 -1
  106. package/package.json +2 -2
  107. package/skills/tg-cli/SKILL.md +3 -2
  108. package/dist/bundle/server-KMKRKOZP.js +0 -55
  109. package/dist/bundle/store-maintenance-command-BNRZ5IJD.js +0 -44
package/dist/bin/tg.js CHANGED
@@ -9,7 +9,7 @@ if (
9
9
  (words[0] === "--version" || words[0] === "-V") &&
10
10
  !Object.keys(process.env).some((key) => key.endsWith("_TEST_ARGV_LOG"))
11
11
  ) {
12
- process.stdout.write("0.105.0\n")
12
+ process.stdout.write("0.106.0\n")
13
13
  } else {
14
14
  // Before the bundle compiles: the bundle's own call comes after its chunks.
15
15
  module.enableCompileCache()
@@ -29,7 +29,7 @@ if (
29
29
  })
30
30
  }
31
31
  const running = import("../bundle/tg.js")
32
- const chunks = ["../bundle/adapter-WWYRCTPE.js","../bundle/all-profiles-IJYM6NIJ.js","../bundle/anthropic-EDRWOXB5.js","../bundle/app-server-2NF7ZH3C.js","../bundle/bot-api-XCDLL6M2.js","../bundle/bot-history-37WSQX3U.js","../bundle/bun-ZX34DXTI.js","../bundle/bun-sqlite-7TZ73UKO.js","../bundle/command-contract-OF6TUQ5B.js","../bundle/dist-I7OZPHAZ.js","../bundle/echarts-WFLEME5I.js","../bundle/embed-ESTG27RK.js","../bundle/embedder-P3W76VOZ.js","../bundle/entry-SNRZGNRA.js","../bundle/first-run-JS24HORG.js","../bundle/first-screen-U63BJPXI.js","../bundle/identity-TYE57SHY.js","../bundle/instructions-ERMZPVS4.js","../bundle/mcp-OQBZXELQ.js","../bundle/node-KDZSMKIC.js","../bundle/node-P4E63KXA.js","../bundle/node-TLZSIHIJ.js","../bundle/node-sqlite-FR64YDYV.js","../bundle/oauth-SPE76ZIY.js","../bundle/open-UEFCMPLC.js","../bundle/process-7MD6MEGB.js","../bundle/program-NFFSOGUY.js","../bundle/prompt-3PI4H66U.js","../bundle/proxy-transport-YSBYG26I.js","../bundle/recognize-54LQOU24.js","../bundle/remote-JQ74NVUK.js","../bundle/rerank-66YCEORD.js","../bundle/serve-5SP2TCGV.js","../bundle/server-GFICDJ6J.js","../bundle/server-KMKRKOZP.js","../bundle/state-U7HXQB6I.js","../bundle/store-O4QVYHFL.js","../bundle/store-maintenance-command-BNRZ5IJD.js"]
32
+ const chunks = ["../bundle/adapter-TIGHDHUK.js","../bundle/all-profiles-N4DLSGWY.js","../bundle/anthropic-D2T2QRLR.js","../bundle/app-server-FZTDNSPB.js","../bundle/bot-api-OMUV6EIK.js","../bundle/bot-history-P2MWYLXW.js","../bundle/bun-UA5PRMLC.js","../bundle/bun-sqlite-XVRVJ7A2.js","../bundle/command-contract-N5FA573V.js","../bundle/dist-I7OZPHAZ.js","../bundle/echarts-WLPTUTMR.js","../bundle/embed-IALJOWZJ.js","../bundle/embedder-ZY2TS2XJ.js","../bundle/entry-67RA75VS.js","../bundle/first-run-QN3UUBJW.js","../bundle/first-screen-FK4ZJQJY.js","../bundle/identity-X3YA364I.js","../bundle/instructions-355MU4CT.js","../bundle/mcp-OQBZXELQ.js","../bundle/node-P4E63KXA.js","../bundle/node-TLZSIHIJ.js","../bundle/node-UGJWZLVB.js","../bundle/node-sqlite-FJFIOC3K.js","../bundle/oauth-EZGVL3PP.js","../bundle/open-ANYJ5AKD.js","../bundle/process-JVAQXITD.js","../bundle/program-QGSZY5SZ.js","../bundle/prompt-EWF4ZSJO.js","../bundle/proxy-transport-YSBYG26I.js","../bundle/recognize-T5TPTI6P.js","../bundle/remote-KOAALKIC.js","../bundle/rerank-MCXFZFRH.js","../bundle/serve-QEVXXJ2G.js","../bundle/server-6QM3GFZX.js","../bundle/server-Y3ZLG44J.js","../bundle/state-F2ZJV2VP.js","../bundle/store-QX7HBTOW.js","../bundle/store-maintenance-command-ZBOQSTHY.js"]
33
33
  // After the server answers its first request, so it starts no later.
34
34
  if (serves) setTimeout(() => void Promise.allSettled(chunks.map((chunk) => import(chunk))), 2000).unref()
35
35
  await running
@@ -35,7 +35,7 @@ import {
35
35
  toUploadParams,
36
36
  videoMime,
37
37
  withCause
38
- } from "./chunk-6MQ3DEXF.js";
38
+ } from "./chunk-ONK66VVG.js";
39
39
  import {
40
40
  proxiedTransport
41
41
  } from "./chunk-WAGDZB62.js";
@@ -46,56 +46,56 @@ import {
46
46
  bareCheck,
47
47
  formatMarkdown,
48
48
  providerRequest
49
- } from "./chunk-S7FO7OU2.js";
50
- import "./chunk-2J2G3ELT.js";
49
+ } from "./chunk-XMKKBDEW.js";
50
+ import "./chunk-6XXI3AHJ.js";
51
51
  import "./chunk-FG2QTYEF.js";
52
- import "./chunk-MAV5ODPN.js";
53
- import "./chunk-4VFRP2T2.js";
54
- import "./chunk-ETVQH5AL.js";
55
- import "./chunk-4N53GVUI.js";
56
- import "./chunk-73OWDRGK.js";
52
+ import "./chunk-LGKLQE2I.js";
53
+ import "./chunk-EPKGNUOZ.js";
54
+ import "./chunk-ID6TO5P5.js";
55
+ import "./chunk-VYFKWPIS.js";
56
+ import "./chunk-E5Z4FGRD.js";
57
57
  import {
58
58
  pickChat,
59
59
  uploadBlob,
60
60
  validateFormattedText
61
- } from "./chunk-WD7Q2H4J.js";
62
- import "./chunk-S3C2L3IE.js";
63
- import "./chunk-MHS2LEZA.js";
61
+ } from "./chunk-ELQ5ORY2.js";
62
+ import "./chunk-QWTHUKS4.js";
63
+ import "./chunk-GD6BOLZP.js";
64
64
  import "./chunk-2ABQZVK4.js";
65
- import "./chunk-SLFDNASB.js";
66
- import "./chunk-GGIDY5KC.js";
65
+ import "./chunk-T3ZLOMWW.js";
66
+ import "./chunk-67GS5BZI.js";
67
67
  import {
68
68
  currentAttempt,
69
69
  runEvent
70
- } from "./chunk-J6B5DQ3I.js";
71
- import "./chunk-Z6SXT5DV.js";
72
- import "./chunk-QPE72FCE.js";
73
- import "./chunk-YSIC5B32.js";
70
+ } from "./chunk-LSP2NCNL.js";
71
+ import "./chunk-V7OXTQBY.js";
72
+ import "./chunk-AQSKZMBD.js";
73
+ import "./chunk-C6NTI37N.js";
74
74
  import "./chunk-VMU4SGCE.js";
75
75
  import "./chunk-MFS52LTZ.js";
76
- import "./chunk-Q6NALH2X.js";
77
- import "./chunk-LOIFBJBA.js";
78
- import "./chunk-NBXUNS6Q.js";
79
- import "./chunk-2A2KXY5G.js";
80
- import "./chunk-RDO66SBI.js";
81
- import "./chunk-5PDGRPTS.js";
82
- import "./chunk-YGYQY5AG.js";
83
- import "./chunk-PFL3CCP2.js";
84
- import "./chunk-VIGQIMGM.js";
85
- import "./chunk-L23IJ3IZ.js";
86
- import "./chunk-QVXMOHHN.js";
76
+ import "./chunk-EUTOFAUT.js";
77
+ import "./chunk-EW3Y44NV.js";
78
+ import "./chunk-T4UTTH3A.js";
79
+ import "./chunk-XQV7EMAI.js";
80
+ import "./chunk-2J3TUUCO.js";
81
+ import "./chunk-2GQCWNX5.js";
82
+ import "./chunk-BZUO2KFV.js";
83
+ import "./chunk-DC7O7TVJ.js";
84
+ import "./chunk-7P6ZCUPN.js";
85
+ import "./chunk-FO33YFWF.js";
86
+ import "./chunk-XX37LKXG.js";
87
87
  import {
88
88
  observedCounters
89
- } from "./chunk-ZM2AI3E5.js";
90
- import "./chunk-ZI7THBWF.js";
91
- import "./chunk-RI7H2VVU.js";
92
- import "./chunk-OOBCCVYM.js";
89
+ } from "./chunk-PHPXTRMS.js";
90
+ import "./chunk-PAHBZPZN.js";
91
+ import "./chunk-R2F6U4F3.js";
92
+ import "./chunk-6BQUCCBD.js";
93
93
  import "./chunk-O5EHUB2V.js";
94
- import "./chunk-NEPB2EI6.js";
95
- import "./chunk-4UZE26T6.js";
96
- import "./chunk-AQGW6OHU.js";
97
- import "./chunk-56JDML7T.js";
98
- import "./chunk-SJIHZA4K.js";
94
+ import "./chunk-PEIDCYF5.js";
95
+ import "./chunk-T5OFRHDS.js";
96
+ import "./chunk-QQYM26DA.js";
97
+ import "./chunk-ADLIUGL2.js";
98
+ import "./chunk-C2MKA7SX.js";
99
99
  import "./chunk-T4SDOYPY.js";
100
100
  import {
101
101
  CliError,
@@ -995,7 +995,10 @@ var profile = /* @__PURE__ */ __name((feature, reference) => feature.call(async
995
995
  return toProfileFacts(full, chats2);
996
996
  }), "profile");
997
997
  var lookup = /* @__PURE__ */ __name(({ call, client }, phone) => call(async () => toMember(await client.getPeer(await client.resolvePhoneNumber(phone)))), "lookup");
998
- var addressBook = /* @__PURE__ */ __name(({ call, client }) => call(async () => (await client.getContacts()).map(toMember)), "addressBook");
998
+ var addressBook = /* @__PURE__ */ __name(({ call, client }) => call(async () => (await client.getContacts()).map((user) => ({
999
+ ...toMember(user),
1000
+ ...user.phoneNumber ? { phone: user.phoneNumber } : {}
1001
+ }))), "addressBook");
999
1002
  var addContact = /* @__PURE__ */ __name(({ write, client }, personId) => write("the contact may have been added \u2014 repeating it is safe", async () => {
1000
1003
  const peer = await client.getPeer(Number(personId));
1001
1004
  if (peer.type !== "user")
@@ -1242,7 +1245,7 @@ var endOtherSessions = /* @__PURE__ */ __name((feature) => feature.call(async ()
1242
1245
  }), "endOtherSessions");
1243
1246
 
1244
1247
  // dist/telegram/messages.js
1245
- import { FileLocation, Long as Long4, PeersIndex as PeersIndex6, Message as TgMessage4, tl as tl7 } from "@mtcute/node";
1248
+ import { FileLocation, Long as Long4, PeersIndex as PeersIndex7, Message as TgMessage4, tl as tl8 } from "@mtcute/node";
1246
1249
 
1247
1250
  // dist/telegram/albums.js
1248
1251
  import { createHash } from "node:crypto";
@@ -1407,6 +1410,56 @@ var sendAlbum = /* @__PURE__ */ __name((feature, chatId, text, options) => {
1407
1410
  });
1408
1411
  }, "sendAlbum");
1409
1412
 
1413
+ // dist/telegram/reactors.js
1414
+ import { PeersIndex as PeersIndex6, parsePeer, tl as tl7 } from "@mtcute/node";
1415
+ var nameOf = /* @__PURE__ */ __name((reaction) => {
1416
+ if (reaction._ === "reactionEmoji")
1417
+ return reaction.emoticon;
1418
+ if (reaction._ === "reactionCustomEmoji")
1419
+ return `custom:${String(reaction.documentId)}`;
1420
+ return reaction._ === "reactionPaid" ? "paid" : null;
1421
+ }, "nameOf");
1422
+ var reactorsOf = /* @__PURE__ */ __name(async (client, chatId, messageId, { limit, emoji, cursor }) => {
1423
+ const [found] = await client.getMessages(chatId, [messageId]);
1424
+ if (!found)
1425
+ throw new CliError("not_found", `no message ${messageId} in that chat`);
1426
+ if (!found.reactions)
1427
+ return { items: [], hasMore: false };
1428
+ if (!found.reactions.raw.canSeeList)
1429
+ throw new CliError("permission_error", "this chat does not let its members see who reacted", {
1430
+ reason: "reactions.list-hidden"
1431
+ });
1432
+ const list = await client.call({
1433
+ _: "messages.getMessageReactionsList",
1434
+ peer: await client.resolvePeer(chatId),
1435
+ id: messageId,
1436
+ limit,
1437
+ ...emoji === void 0 ? {} : { reaction: { _: "reactionEmoji", emoticon: emoji } },
1438
+ ...cursor === void 0 ? {} : { offset: cursor }
1439
+ }).catch((error) => {
1440
+ if (error instanceof tl7.RpcError && error.text === "BROADCAST_FORBIDDEN")
1441
+ throw new CliError("permission_error", "a channel does not show who reacted to its posts", {
1442
+ reason: "reactions.broadcast"
1443
+ });
1444
+ throw error;
1445
+ });
1446
+ const peers = PeersIndex6.from(list);
1447
+ const items = list.reactions.flatMap((one) => {
1448
+ const reaction = nameOf(one.reaction);
1449
+ if (reaction === null)
1450
+ return [];
1451
+ return [
1452
+ {
1453
+ person: toMember(parsePeer(one.peerId, peers)),
1454
+ reaction,
1455
+ reactedAt: new Date(one.date * 1e3).toISOString()
1456
+ }
1457
+ ];
1458
+ });
1459
+ const more = Boolean(list.nextOffset) && list.reactions.length >= limit;
1460
+ return { items, hasMore: more, ...more && list.nextOffset ? { cursor: list.nextOffset } : {} };
1461
+ }, "reactorsOf");
1462
+
1410
1463
  // dist/telegram/messages.js
1411
1464
  var BY_ID_BATCH = 100;
1412
1465
  var TRANSCRIBE_POLL_MS = 2e3;
@@ -1474,7 +1527,7 @@ var searchMessages = /* @__PURE__ */ __name((feature, query, { limit, signal })
1474
1527
  }, options);
1475
1528
  if (found._ === "messages.messagesNotModified")
1476
1529
  return { items: [], hasMore: false, chats: [] };
1477
- const peers = PeersIndex6.from(found);
1530
+ const peers = PeersIndex7.from(found);
1478
1531
  const page = found.messages.filter((one) => one._ !== "messageEmpty").map((one) => new TgMessage4(one, peers));
1479
1532
  const chats2 = new Map(page.map((message) => [String(message.chat.id), peerToChat(message.chat)]));
1480
1533
  return {
@@ -1609,7 +1662,7 @@ var edit = /* @__PURE__ */ __name((feature, chatId, messageId, text, { markup, f
1609
1662
  try {
1610
1663
  return toMessage(await feature.client.editMessage({ chatId: Number(chatId), message: id, text: body }));
1611
1664
  } catch (error) {
1612
- if (tl7.RpcError.is(error, "MESSAGE_NOT_MODIFIED")) {
1665
+ if (tl8.RpcError.is(error, "MESSAGE_NOT_MODIFIED")) {
1613
1666
  const [current] = await feature.client.getMessages(Number(chatId), [id]);
1614
1667
  if (current)
1615
1668
  return toMessage(current);
@@ -1663,6 +1716,10 @@ var react = /* @__PURE__ */ __name((feature, chatId, messageId, emoji) => {
1663
1716
  await feature.client.sendReaction({ chatId: Number(chatId), message: id, emoji });
1664
1717
  });
1665
1718
  }, "react");
1719
+ var reactors = /* @__PURE__ */ __name((feature, chatId, messageId, window) => {
1720
+ const id = messageNumber(messageId, "a message id is a number");
1721
+ return feature.call(() => reactorsOf(feature.client, Number(chatId), id, window));
1722
+ }, "reactors");
1666
1723
  var markRead = /* @__PURE__ */ __name((feature, chatId, until) => {
1667
1724
  const maxId = until === void 0 ? void 0 : messageNumber(until, "--until takes a message id");
1668
1725
  return feature.write("the chat may have been marked read \u2014 repeating it is safe", async () => {
@@ -1726,7 +1783,7 @@ var transcribe = /* @__PURE__ */ __name((feature, reference, messageId) => {
1726
1783
  const deadline = Date.now() + TRANSCRIBE_WAIT_MS;
1727
1784
  for (; ; ) {
1728
1785
  const answer = await feature.client.call({ _: "messages.transcribeAudio", peer, msgId: id }).catch((error) => {
1729
- if (!tl7.RpcError.is(error, "PREMIUM_ACCOUNT_REQUIRED"))
1786
+ if (!tl8.RpcError.is(error, "PREMIUM_ACCOUNT_REQUIRED"))
1730
1787
  throw error;
1731
1788
  throw new CliError("permission_error", "Telegram transcribes only for Premium accounts, or a few messages a week on the free trial, used up now", { provider_error: error.text, status: error.code });
1732
1789
  });
@@ -1739,7 +1796,7 @@ var transcribe = /* @__PURE__ */ __name((feature, reference, messageId) => {
1739
1796
  }, "transcribe");
1740
1797
 
1741
1798
  // dist/telegram/poll-voters.js
1742
- import { PeersIndex as PeersIndex7, parsePeer } from "@mtcute/node";
1799
+ import { PeersIndex as PeersIndex8, parsePeer as parsePeer2 } from "@mtcute/node";
1743
1800
  var pollVotersOf = /* @__PURE__ */ __name(async (client, chatId, messageId, { limit, answerId: answer }) => {
1744
1801
  const list = await client.call({
1745
1802
  _: "messages.getPollVotes",
@@ -1748,7 +1805,7 @@ var pollVotersOf = /* @__PURE__ */ __name(async (client, chatId, messageId, { li
1748
1805
  limit,
1749
1806
  ...answer === void 0 ? {} : { option: Buffer.from(answer, "base64url") }
1750
1807
  });
1751
- const peers = PeersIndex7.from(list);
1808
+ const peers = PeersIndex8.from(list);
1752
1809
  const answersOf = /* @__PURE__ */ __name((vote2) => {
1753
1810
  if (vote2._ === "messagePeerVote")
1754
1811
  return [answerId(vote2.option)];
@@ -1757,7 +1814,7 @@ var pollVotersOf = /* @__PURE__ */ __name(async (client, chatId, messageId, { li
1757
1814
  return answer === void 0 ? [] : [answer];
1758
1815
  }, "answersOf");
1759
1816
  const items = list.votes.map((vote2) => ({
1760
- person: toMember(parsePeer(vote2.peer, peers)),
1817
+ person: toMember(parsePeer2(vote2.peer, peers)),
1761
1818
  answers: answersOf(vote2),
1762
1819
  votedAt: new Date(vote2.date * 1e3).toISOString()
1763
1820
  }));
@@ -1852,7 +1909,7 @@ var pollOf = /* @__PURE__ */ __name(async (feature, chatId, messageId) => {
1852
1909
 
1853
1910
  // dist/telegram/sending.js
1854
1911
  import { AsyncLocalStorage } from "node:async_hooks";
1855
- import { networkMiddlewares, tl as tl8 } from "@mtcute/node";
1912
+ import { networkMiddlewares, tl as tl9 } from "@mtcute/node";
1856
1913
  var SENDS = /* @__PURE__ */ new Set([
1857
1914
  "messages.sendMessage",
1858
1915
  "messages.sendMedia",
@@ -1893,7 +1950,7 @@ var recordRequest = /* @__PURE__ */ __name(async (context, next) => {
1893
1950
  const failure = answer;
1894
1951
  if (failure?._ === "mt_rpc_error" && typeof failure.errorMessage === "string") {
1895
1952
  end({
1896
- errorCode: codeOf(tl8.RpcError.fromTl(failure)),
1953
+ errorCode: codeOf(tl9.RpcError.fromTl(failure)),
1897
1954
  providerError: errorKey(failure.errorMessage)
1898
1955
  });
1899
1956
  } else
@@ -1930,7 +1987,7 @@ var sending = /* @__PURE__ */ __name(async (work) => {
1930
1987
  }, "sending");
1931
1988
 
1932
1989
  // dist/telegram/stats.js
1933
- import { tl as tl9 } from "@mtcute/node";
1990
+ import { tl as tl10 } from "@mtcute/node";
1934
1991
  var DAY_MS = 864e5;
1935
1992
  var MS_FROM = 1e11;
1936
1993
  var axisOf = /* @__PURE__ */ __name((values) => {
@@ -1974,7 +2031,7 @@ var graphs = /* @__PURE__ */ __name(async (keys, graphOf) => {
1974
2031
  answered[key] = await graphOf(graph);
1975
2032
  return answered;
1976
2033
  }, "graphs");
1977
- var nameOf = /* @__PURE__ */ __name((user) => {
2034
+ var nameOf2 = /* @__PURE__ */ __name((user) => {
1978
2035
  if (user?._ !== "user")
1979
2036
  return null;
1980
2037
  const full = [user.firstName, user.lastName].filter(Boolean).join(" ");
@@ -1982,7 +2039,7 @@ var nameOf = /* @__PURE__ */ __name((user) => {
1982
2039
  }, "nameOf");
1983
2040
  var toOfficialGroupStats = /* @__PURE__ */ __name(async (chat2, stats, graphOf) => {
1984
2041
  const users = new Map(stats.users.map((user) => [user.id, user]));
1985
- const person = /* @__PURE__ */ __name((userId) => ({ person: String(userId), name: nameOf(users.get(userId)) }), "person");
2042
+ const person = /* @__PURE__ */ __name((userId) => ({ person: String(userId), name: nameOf2(users.get(userId)) }), "person");
1986
2043
  return {
1987
2044
  version: 1,
1988
2045
  kind: "group",
@@ -2084,7 +2141,7 @@ var officialChatStats = /* @__PURE__ */ __name((feature, reference) => {
2084
2141
  return toOfficialGraph(loaded.json.data);
2085
2142
  return { error: loaded._ === "statsGraphError" ? loaded.error : "Telegram did not finish this graph" };
2086
2143
  } catch (error) {
2087
- if (tl9.RpcError.is(error))
2144
+ if (tl10.RpcError.is(error))
2088
2145
  return { error: error.text };
2089
2146
  throw error;
2090
2147
  }
@@ -2092,7 +2149,7 @@ var officialChatStats = /* @__PURE__ */ __name((feature, reference) => {
2092
2149
  try {
2093
2150
  return broadcast ? await toOfficialChannelStats(chat2, await feature.client.call({ _: "stats.getBroadcastStats", channel }, options), graphOf) : await toOfficialGroupStats(chat2, await feature.client.call({ _: "stats.getMegagroupStats", channel }, options), graphOf);
2094
2151
  } catch (error) {
2095
- if (tl9.RpcError.is(error, "AUTH_KEY_UNREGISTERED"))
2152
+ if (tl10.RpcError.is(error, "AUTH_KEY_UNREGISTERED"))
2096
2153
  throw new CliError("provider_error", "Telegram's statistics server did not accept this login (AUTH_KEY_UNREGISTERED); the login itself works \u2014 try again later", { provider_error: error.text, status: error.code });
2097
2154
  throw error;
2098
2155
  }
@@ -2100,7 +2157,7 @@ var officialChatStats = /* @__PURE__ */ __name((feature, reference) => {
2100
2157
  }, "officialChatStats");
2101
2158
 
2102
2159
  // dist/telegram/topics.js
2103
- import { getMarkedPeerId as getMarkedPeerId7, tl as tl10 } from "@mtcute/node";
2160
+ import { getMarkedPeerId as getMarkedPeerId7, tl as tl11 } from "@mtcute/node";
2104
2161
  var stateOf = /* @__PURE__ */ __name(async ({ client }, chatId) => {
2105
2162
  let full = await client.getFullChat(Number(chatId));
2106
2163
  if (full.migratedToId != null)
@@ -2167,7 +2224,7 @@ var enableForum = /* @__PURE__ */ __name((feature, chatId) => feature.call(async
2167
2224
  });
2168
2225
  return await stateOf(feature, state.chat.id);
2169
2226
  } catch (error) {
2170
- if (tl10.RpcError.is(error, "CHAT_NOT_MODIFIED"))
2227
+ if (tl11.RpcError.is(error, "CHAT_NOT_MODIFIED"))
2171
2228
  return stateOf(feature, state.chat.id);
2172
2229
  throw unknownIfUnanswered(error, "topics may have been enabled; check the forum state before repeating");
2173
2230
  }
@@ -2214,7 +2271,7 @@ var editTopic = /* @__PURE__ */ __name((feature, chatId, topicId, { title, close
2214
2271
  return feature.call(async () => {
2215
2272
  const { client } = feature;
2216
2273
  const unchanged = /* @__PURE__ */ __name((error) => {
2217
- if (!tl10.RpcError.is(error, "TOPIC_NOT_MODIFIED") && !tl10.RpcError.is(error, "PINNED_TOPIC_NOT_MODIFIED"))
2274
+ if (!tl11.RpcError.is(error, "TOPIC_NOT_MODIFIED") && !tl11.RpcError.is(error, "PINNED_TOPIC_NOT_MODIFIED"))
2218
2275
  throw unknownIfUnanswered(error, "the topic may have changed \u2014 repeating it is safe");
2219
2276
  }, "unchanged");
2220
2277
  if (title !== void 0 || closed !== void 0) {
@@ -2614,6 +2671,9 @@ var TelegramAdapter = class _TelegramAdapter {
2614
2671
  markRead(chatId, until) {
2615
2672
  return markRead(this.#feature, chatId, until);
2616
2673
  }
2674
+ reactors(chatId, messageId, window) {
2675
+ return reactors(this.#feature, chatId, messageId, window);
2676
+ }
2617
2677
  delete(chatId, messageIds, options) {
2618
2678
  return deleteMessages(this.#feature, chatId, messageIds, options);
2619
2679
  }
@@ -2,18 +2,18 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  answeredWire
5
- } from "./chunk-ZIG4WIVN.js";
5
+ } from "./chunk-XXLAGQDN.js";
6
6
  import {
7
7
  CALLER_META_KEY,
8
8
  PROXY_CLIENT_NAME,
9
9
  StdioServerTransport,
10
10
  callerOf,
11
11
  serveStdio
12
- } from "./chunk-QWPVSWQE.js";
12
+ } from "./chunk-WLGQTYIO.js";
13
13
  import {
14
14
  McpServer
15
15
  } from "./chunk-5D4AEUVA.js";
16
- import "./chunk-QPE72FCE.js";
16
+ import "./chunk-AQSKZMBD.js";
17
17
  import "./chunk-O5EHUB2V.js";
18
18
  import "./chunk-T4SDOYPY.js";
19
19
  import "./chunk-67SRVSPU.js";
@@ -22,7 +22,7 @@ import {
22
22
  __name
23
23
  } from "./chunk-ZVVMGPBJ.js";
24
24
 
25
- // node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/mcp/all-profiles.js
25
+ // node_modules/.pnpm/@wirecat+cli-core@0.479.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._835150ae4189cac822e446e361e54dd7/node_modules/@wirecat/cli-core/dist/mcp/all-profiles.js
26
26
  import { spawn } from "node:child_process";
27
27
  import { randomUUID } from "node:crypto";
28
28
  var PROTOCOL = "2025-06-18";
@@ -256,7 +256,7 @@ var serveAllProfilesOverStdio = /* @__PURE__ */ __name(async (options, io = {})
256
256
  }, "serveAllProfilesOverStdio");
257
257
  var serveAllProfilesOverHttp = /* @__PURE__ */ __name(async (options, http) => {
258
258
  const { build, close } = allProfilesServer(options);
259
- const { serveOverHttp } = await import("./serve-5SP2TCGV.js");
259
+ const { serveOverHttp } = await import("./serve-QEVXXJ2G.js");
260
260
  const listening = await serveOverHttp(build, {
261
261
  ...http,
262
262
  appName: options.command,
@@ -2,11 +2,11 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  checkedOptions
5
- } from "./chunk-YGYQY5AG.js";
5
+ } from "./chunk-BZUO2KFV.js";
6
6
  import {
7
7
  messagesFor,
8
8
  systemFor
9
- } from "./chunk-PFL3CCP2.js";
9
+ } from "./chunk-DC7O7TVJ.js";
10
10
  import {
11
11
  Anthropic
12
12
  } from "./chunk-ADLS6FVG.js";
@@ -22,7 +22,7 @@ import {
22
22
  __name
23
23
  } from "./chunk-ZVVMGPBJ.js";
24
24
 
25
- // node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/models/anthropic.js
25
+ // node_modules/.pnpm/@wirecat+cli-core@0.479.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._835150ae4189cac822e446e361e54dd7/node_modules/@wirecat/cli-core/dist/models/anthropic.js
26
26
  var options = strictObject({
27
27
  stop_sequences: optional(array(string()))
28
28
  });
@@ -3,36 +3,36 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  PER_RUN,
5
5
  envelope
6
- } from "./chunk-N5BGV5YZ.js";
6
+ } from "./chunk-QI75LME5.js";
7
7
  import {
8
8
  answered,
9
9
  failed,
10
10
  registerCommands,
11
11
  runCommandForAgent,
12
12
  toolsFromCommands
13
- } from "./chunk-FNASJIAI.js";
13
+ } from "./chunk-DECFDUNW.js";
14
14
  import {
15
15
  mcpUrlOf
16
- } from "./chunk-4VFRP2T2.js";
16
+ } from "./chunk-EPKGNUOZ.js";
17
17
  import {
18
18
  agentJson,
19
19
  skillResource
20
- } from "./chunk-ETVQH5AL.js";
20
+ } from "./chunk-ID6TO5P5.js";
21
21
  import {
22
22
  answeredWire
23
- } from "./chunk-ZIG4WIVN.js";
23
+ } from "./chunk-XXLAGQDN.js";
24
24
  import {
25
25
  StdioServerTransport,
26
26
  serveStdio
27
- } from "./chunk-QWPVSWQE.js";
27
+ } from "./chunk-WLGQTYIO.js";
28
28
  import {
29
29
  McpServer
30
30
  } from "./chunk-5D4AEUVA.js";
31
- import "./chunk-73OWDRGK.js";
32
- import "./chunk-WD7Q2H4J.js";
33
- import "./chunk-S3C2L3IE.js";
34
- import "./chunk-SLFDNASB.js";
35
- import "./chunk-GGIDY5KC.js";
31
+ import "./chunk-E5Z4FGRD.js";
32
+ import "./chunk-ELQ5ORY2.js";
33
+ import "./chunk-QWTHUKS4.js";
34
+ import "./chunk-T3ZLOMWW.js";
35
+ import "./chunk-67GS5BZI.js";
36
36
  import {
37
37
  DEFAULT_OUTPUT_BYTES,
38
38
  changesAuthorityAt,
@@ -41,36 +41,36 @@ import {
41
41
  fetchesOnlyAt,
42
42
  judgedTargets,
43
43
  rootOf2 as rootOf
44
- } from "./chunk-J6B5DQ3I.js";
45
- import "./chunk-Z6SXT5DV.js";
46
- import "./chunk-QPE72FCE.js";
44
+ } from "./chunk-LSP2NCNL.js";
45
+ import "./chunk-V7OXTQBY.js";
46
+ import "./chunk-AQSKZMBD.js";
47
47
  import "./chunk-VMU4SGCE.js";
48
48
  import "./chunk-MFS52LTZ.js";
49
- import "./chunk-Q6NALH2X.js";
49
+ import "./chunk-EUTOFAUT.js";
50
50
  import {
51
51
  readOnlyLockOf
52
- } from "./chunk-NBXUNS6Q.js";
52
+ } from "./chunk-T4UTTH3A.js";
53
53
  import {
54
54
  mcpHttpMarker
55
- } from "./chunk-2A2KXY5G.js";
56
- import "./chunk-RDO66SBI.js";
57
- import "./chunk-5PDGRPTS.js";
55
+ } from "./chunk-XQV7EMAI.js";
56
+ import "./chunk-2J3TUUCO.js";
57
+ import "./chunk-2GQCWNX5.js";
58
58
  import {
59
59
  appInstructions
60
- } from "./chunk-HJSWUHHP.js";
61
- import "./chunk-PFL3CCP2.js";
62
- import "./chunk-VIGQIMGM.js";
63
- import "./chunk-L23IJ3IZ.js";
64
- import "./chunk-QVXMOHHN.js";
65
- import "./chunk-ZM2AI3E5.js";
66
- import "./chunk-ZI7THBWF.js";
67
- import "./chunk-RI7H2VVU.js";
68
- import "./chunk-OOBCCVYM.js";
60
+ } from "./chunk-XFXTB522.js";
61
+ import "./chunk-DC7O7TVJ.js";
62
+ import "./chunk-7P6ZCUPN.js";
63
+ import "./chunk-FO33YFWF.js";
64
+ import "./chunk-XX37LKXG.js";
65
+ import "./chunk-PHPXTRMS.js";
66
+ import "./chunk-PAHBZPZN.js";
67
+ import "./chunk-R2F6U4F3.js";
68
+ import "./chunk-6BQUCCBD.js";
69
69
  import "./chunk-O5EHUB2V.js";
70
- import "./chunk-NEPB2EI6.js";
71
- import "./chunk-4UZE26T6.js";
72
- import "./chunk-AQGW6OHU.js";
73
- import "./chunk-SJIHZA4K.js";
70
+ import "./chunk-PEIDCYF5.js";
71
+ import "./chunk-T5OFRHDS.js";
72
+ import "./chunk-QQYM26DA.js";
73
+ import "./chunk-C2MKA7SX.js";
74
74
  import {
75
75
  mcpErrorResult
76
76
  } from "./chunk-T4SDOYPY.js";
@@ -82,7 +82,7 @@ import {
82
82
  __name
83
83
  } from "./chunk-ZVVMGPBJ.js";
84
84
 
85
- // node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/mcp/app-server.js
85
+ // node_modules/.pnpm/@wirecat+cli-core@0.479.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._835150ae4189cac822e446e361e54dd7/node_modules/@wirecat/cli-core/dist/mcp/app-server.js
86
86
  var EXCLUDED = [["mcp"]];
87
87
  var createAppServer = /* @__PURE__ */ __name((command, context, options) => {
88
88
  const { app } = options;
@@ -197,7 +197,7 @@ var serveAppOverStdio = /* @__PURE__ */ __name(async (command, context, options)
197
197
  var serveAppOverHttp = /* @__PURE__ */ __name(async (command, context, options, http) => {
198
198
  const { app } = options;
199
199
  const { build } = createAppServer(command, context, options);
200
- const { serveOverHttp } = await import("./serve-5SP2TCGV.js");
200
+ const { serveOverHttp } = await import("./serve-QEVXXJ2G.js");
201
201
  const listening = await serveOverHttp(build, {
202
202
  ...http,
203
203
  appName: app.command,
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  TELEGRAM_BOT
5
- } from "./chunk-QAW5QNOY.js";
5
+ } from "./chunk-WPRLG5SL.js";
6
6
  import {
7
7
  BotTokenStore,
8
8
  ChatRegistry,
@@ -12,58 +12,58 @@ import {
12
12
  checkApiParameter,
13
13
  generatedApiCommand,
14
14
  prepareRpcApiBody
15
- } from "./chunk-S7FO7OU2.js";
16
- import "./chunk-2J2G3ELT.js";
15
+ } from "./chunk-XMKKBDEW.js";
16
+ import "./chunk-6XXI3AHJ.js";
17
17
  import "./chunk-FG2QTYEF.js";
18
- import "./chunk-MAV5ODPN.js";
19
- import "./chunk-4VFRP2T2.js";
20
- import "./chunk-ETVQH5AL.js";
21
- import "./chunk-4N53GVUI.js";
22
- import "./chunk-73OWDRGK.js";
18
+ import "./chunk-LGKLQE2I.js";
19
+ import "./chunk-EPKGNUOZ.js";
20
+ import "./chunk-ID6TO5P5.js";
21
+ import "./chunk-VYFKWPIS.js";
22
+ import "./chunk-E5Z4FGRD.js";
23
23
  import {
24
24
  newOperationId,
25
25
  readUpload,
26
26
  uploadBytes
27
- } from "./chunk-WD7Q2H4J.js";
28
- import "./chunk-S3C2L3IE.js";
29
- import "./chunk-MHS2LEZA.js";
27
+ } from "./chunk-ELQ5ORY2.js";
28
+ import "./chunk-QWTHUKS4.js";
29
+ import "./chunk-GD6BOLZP.js";
30
30
  import "./chunk-2ABQZVK4.js";
31
- import "./chunk-SLFDNASB.js";
32
- import "./chunk-GGIDY5KC.js";
31
+ import "./chunk-T3ZLOMWW.js";
32
+ import "./chunk-67GS5BZI.js";
33
33
  import {
34
34
  DEFAULT_PERMISSIONS,
35
35
  guardedWrite,
36
36
  levelFor,
37
37
  overrideSharedContract,
38
38
  ownerOnlyOption
39
- } from "./chunk-J6B5DQ3I.js";
40
- import "./chunk-Z6SXT5DV.js";
41
- import "./chunk-QPE72FCE.js";
42
- import "./chunk-YSIC5B32.js";
39
+ } from "./chunk-LSP2NCNL.js";
40
+ import "./chunk-V7OXTQBY.js";
41
+ import "./chunk-AQSKZMBD.js";
42
+ import "./chunk-C6NTI37N.js";
43
43
  import "./chunk-VMU4SGCE.js";
44
44
  import "./chunk-MFS52LTZ.js";
45
- import "./chunk-Q6NALH2X.js";
46
- import "./chunk-LOIFBJBA.js";
47
- import "./chunk-NBXUNS6Q.js";
48
- import "./chunk-443D2OY7.js";
49
- import "./chunk-2A2KXY5G.js";
50
- import "./chunk-RDO66SBI.js";
51
- import "./chunk-5PDGRPTS.js";
52
- import "./chunk-YGYQY5AG.js";
53
- import "./chunk-PFL3CCP2.js";
54
- import "./chunk-VIGQIMGM.js";
55
- import "./chunk-L23IJ3IZ.js";
56
- import "./chunk-QVXMOHHN.js";
57
- import "./chunk-ZM2AI3E5.js";
58
- import "./chunk-ZI7THBWF.js";
59
- import "./chunk-RI7H2VVU.js";
60
- import "./chunk-OOBCCVYM.js";
45
+ import "./chunk-EUTOFAUT.js";
46
+ import "./chunk-EW3Y44NV.js";
47
+ import "./chunk-T4UTTH3A.js";
48
+ import "./chunk-GHAQXUH3.js";
49
+ import "./chunk-XQV7EMAI.js";
50
+ import "./chunk-2J3TUUCO.js";
51
+ import "./chunk-2GQCWNX5.js";
52
+ import "./chunk-BZUO2KFV.js";
53
+ import "./chunk-DC7O7TVJ.js";
54
+ import "./chunk-7P6ZCUPN.js";
55
+ import "./chunk-FO33YFWF.js";
56
+ import "./chunk-XX37LKXG.js";
57
+ import "./chunk-PHPXTRMS.js";
58
+ import "./chunk-PAHBZPZN.js";
59
+ import "./chunk-R2F6U4F3.js";
60
+ import "./chunk-6BQUCCBD.js";
61
61
  import "./chunk-O5EHUB2V.js";
62
- import "./chunk-NEPB2EI6.js";
63
- import "./chunk-4UZE26T6.js";
64
- import "./chunk-AQGW6OHU.js";
65
- import "./chunk-56JDML7T.js";
66
- import "./chunk-SJIHZA4K.js";
62
+ import "./chunk-PEIDCYF5.js";
63
+ import "./chunk-T5OFRHDS.js";
64
+ import "./chunk-QQYM26DA.js";
65
+ import "./chunk-ADLIUGL2.js";
66
+ import "./chunk-C2MKA7SX.js";
67
67
  import "./chunk-T4SDOYPY.js";
68
68
  import {
69
69
  CliError,