@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
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  storePath
5
- } from "./chunk-NEPB2EI6.js";
5
+ } from "./chunk-PEIDCYF5.js";
6
6
  import {
7
7
  resolvePaths,
8
8
  singleLine
@@ -14,11 +14,11 @@ import {
14
14
  __name
15
15
  } from "./chunk-ZVVMGPBJ.js";
16
16
 
17
- // 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/store/shared-config.js
17
+ // 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/store/shared-config.js
18
18
  import { mkdirSync, readFileSync, renameSync, statSync, writeFileSync } from "node:fs";
19
19
  import { dirname, join, resolve } from "node:path";
20
20
 
21
- // 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/domain/task-categories.js
21
+ // 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/domain/task-categories.js
22
22
  var DEFAULT_TASK_CATEGORIES = [
23
23
  {
24
24
  name: "taxes",
@@ -773,7 +773,7 @@ var storedTaskCategories = /* @__PURE__ */ __name((json) => {
773
773
  }
774
774
  }, "storedTaskCategories");
775
775
 
776
- // 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/store/shared-config.js
776
+ // 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/store/shared-config.js
777
777
  var SECTION = "task_categories";
778
778
  var sharedConfigPath = /* @__PURE__ */ __name((store, env = process.env) => {
779
779
  const paths = resolvePaths({ appName: "WireCat", prefix: "WIRECAT", env });
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // 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/bot/instructions.js
7
+ // 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/bot/instructions.js
8
8
  var botInstructions = /* @__PURE__ */ __name(({ command, name, profile, writes, skill }) => [
9
9
  `The owner's ${name} bot "${profile}", through the official Bot API \u2014 not the owner's personal account. What it writes, people see as the bot.`,
10
10
  "Use these tools to read the chats this bot is in, find a message or a person, and \u2014 when the profile allows \u2014 write as the bot.",
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  unit
5
- } from "./chunk-L23IJ3IZ.js";
5
+ } from "./chunk-FO33YFWF.js";
6
6
  import {
7
7
  CliError
8
8
  } from "./chunk-67SRVSPU.js";
@@ -10,7 +10,7 @@ import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // 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/embeddings/remote.js
13
+ // 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/embeddings/remote.js
14
14
  import { setTimeout } from "node:timers/promises";
15
15
  var OPENAI_URL = "https://api.openai.com/v1";
16
16
  var OPENAI_MODELS = {
@@ -4,7 +4,7 @@ import {
4
4
  MAX_SECRET_INPUT,
5
5
  bufferedInput,
6
6
  inputPolicy
7
- } from "./chunk-SJIHZA4K.js";
7
+ } from "./chunk-C2MKA7SX.js";
8
8
  import {
9
9
  CliError
10
10
  } from "./chunk-67SRVSPU.js";
@@ -12,7 +12,7 @@ import {
12
12
  __name
13
13
  } from "./chunk-ZVVMGPBJ.js";
14
14
 
15
- // 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/terminal/prompt.js
15
+ // 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/terminal/prompt.js
16
16
  import { createInterface } from "node:readline";
17
17
  import { Writable } from "node:stream";
18
18
  var readSecret = /* @__PURE__ */ __name(async (prompt, { input = process.stdin, output = process.stderr, echo = false, signal: givenSignal } = {}) => {
@@ -8,14 +8,14 @@ import {
8
8
  __name
9
9
  } from "./chunk-ZVVMGPBJ.js";
10
10
 
11
- // 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/runs/run-context.js
11
+ // 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/runs/run-context.js
12
12
  import { AsyncLocalStorage } from "node:async_hooks";
13
13
  import { createHash } from "node:crypto";
14
14
 
15
- // 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/runs/error-detail.js
15
+ // 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/runs/error-detail.js
16
16
  import { homedir } from "node:os";
17
17
 
18
- // 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/errors/failures.js
18
+ // 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/errors/failures.js
19
19
  var isCliFailure = /* @__PURE__ */ __name((value) => value instanceof Error && value.name === "CliError" && errorCodes.includes(value.code), "isCliFailure");
20
20
  var isCommanderFailure = /* @__PURE__ */ __name((value) => {
21
21
  const { code, exitCode } = value ?? {};
@@ -23,7 +23,7 @@ var isCommanderFailure = /* @__PURE__ */ __name((value) => {
23
23
  }, "isCommanderFailure");
24
24
  var failureKey = /* @__PURE__ */ __name((error) => isCliFailure(error) ? error.code : error instanceof Error ? error.name : "error", "failureKey");
25
25
 
26
- // 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/runs/events.js
26
+ // 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/runs/events.js
27
27
  var providerErrorKey = /* @__PURE__ */ __name((value) => typeof value === "string" && /^[A-Za-z][A-Za-z0-9._-]{0,63}$/.test(value) ? value : void 0, "providerErrorKey");
28
28
  var renderEvent = /* @__PURE__ */ __name((event) => {
29
29
  if (event.event === "warning") {
@@ -71,7 +71,7 @@ var MARK = { request: "\u2192", response: "\u2190", cache: "\u2022", warning: "!
71
71
  var age = /* @__PURE__ */ __name((ms) => ms < 1e3 ? `${ms}ms` : `${Math.round(ms / 1e3)}s`, "age");
72
72
  var size = /* @__PURE__ */ __name((bytes) => bytes < 1e3 ? `${bytes} B` : `${(bytes / 1e3).toFixed(1)} kB`, "size");
73
73
 
74
- // 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/runs/secrets.js
74
+ // 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/runs/secrets.js
75
75
  var SECRET_WORDS = /* @__PURE__ */ new Set([
76
76
  "authorization",
77
77
  "cookie",
@@ -152,7 +152,7 @@ var withoutSecrets = /* @__PURE__ */ __name((text, mark = "[redacted]") => text.
152
152
  var RUN = /(?<![A-Za-z0-9_+/-])[A-Za-z0-9_+/-]{20,}/g;
153
153
  var HEX = /(?<![A-Za-z0-9])(?=[0-9]*[a-f])[0-9a-f]{20,}(?![A-Za-z0-9])/g;
154
154
 
155
- // 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/runs/error-detail.js
155
+ // 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/runs/error-detail.js
156
156
  var MESSAGE_AT_MOST = 500;
157
157
  var CAUSES_AT_MOST = 5;
158
158
  var FRAMES_AT_MOST = 15;
@@ -260,7 +260,7 @@ var redactText = /* @__PURE__ */ __name((text) => {
260
260
  return out.length > MESSAGE_AT_MOST ? `${out.slice(0, MESSAGE_AT_MOST)}\u2026` : out;
261
261
  }, "redactText");
262
262
 
263
- // 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/runs/run-context.js
263
+ // 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/runs/run-context.js
264
264
  var REDACTED = "[redacted]";
265
265
  var keepsSuccess = /* @__PURE__ */ __name(({ record, fromFlag, env, caller, persistent = false }) => {
266
266
  if (!record)
@@ -8,12 +8,12 @@ import {
8
8
  ACCESS_SECONDS,
9
9
  REFRESH_SECONDS,
10
10
  readStored
11
- } from "./chunk-2A2KXY5G.js";
11
+ } from "./chunk-XQV7EMAI.js";
12
12
  import {
13
13
  __name
14
14
  } from "./chunk-ZVVMGPBJ.js";
15
15
 
16
- // 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/http/oauth.js
16
+ // 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/http/oauth.js
17
17
  import { createHash, randomBytes, randomInt, timingSafeEqual } from "node:crypto";
18
18
  import { chmodSync, mkdirSync, renameSync, rmSync, writeFileSync } from "node:fs";
19
19
  import { dirname } from "node:path";
@@ -15,7 +15,7 @@ import {
15
15
  __name
16
16
  } from "./chunk-ZVVMGPBJ.js";
17
17
 
18
- // 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/options.js
18
+ // 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/options.js
19
19
  var checkedOptions = /* @__PURE__ */ __name((provider, schema, options) => {
20
20
  const parsed = safeParse(schema, options);
21
21
  if (!parsed.success) {
@@ -7,7 +7,7 @@ import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // 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/cli/input-policy.js
10
+ // 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/cli/input-policy.js
11
11
  var MAX_BUFFERED_INPUT = 16 * 1024 * 1024;
12
12
  var MAX_SECRET_INPUT = 64 * 1024;
13
13
  var policies = /* @__PURE__ */ new WeakMap();
@@ -9,22 +9,22 @@ import {
9
9
  readSetupAnswers,
10
10
  unanswered,
11
11
  writeSetupAnswers
12
- } from "./chunk-Q6NALH2X.js";
12
+ } from "./chunk-EUTOFAUT.js";
13
13
  import {
14
14
  DEFAULT_STEMMERS,
15
15
  LANGUAGES
16
- } from "./chunk-RI7H2VVU.js";
16
+ } from "./chunk-R2F6U4F3.js";
17
17
  import {
18
18
  sharedConfigPath
19
- } from "./chunk-OOBCCVYM.js";
19
+ } from "./chunk-6BQUCCBD.js";
20
20
  import {
21
21
  storePath
22
- } from "./chunk-NEPB2EI6.js";
22
+ } from "./chunk-PEIDCYF5.js";
23
23
  import {
24
24
  __name
25
25
  } from "./chunk-ZVVMGPBJ.js";
26
26
 
27
- // 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/cli/first-run.js
27
+ // 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/cli/first-run.js
28
28
  import { spawnSync } from "node:child_process";
29
29
  import { accessSync, constants, realpathSync } from "node:fs";
30
30
  import { delimiter, join } from "node:path";
@@ -82,7 +82,7 @@ var suggested = /* @__PURE__ */ __name((env, contentLanguages) => {
82
82
  return (own.length ? own : LANGUAGES.filter(({ code }) => code === "en" || code === system)).map(({ name }) => name);
83
83
  }, "suggested");
84
84
  var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLanguages }) => {
85
- const { openStore } = await import("./store-O4QVYHFL.js");
85
+ const { openStore } = await import("./store-QX7HBTOW.js");
86
86
  const store = await openStore({ env });
87
87
  let rebuild = false;
88
88
  try {
@@ -111,8 +111,8 @@ var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLang
111
111
  if (!rebuild)
112
112
  return;
113
113
  const [{ openCache }, { buildStems }] = await Promise.all([
114
- import("./open-UEFCMPLC.js"),
115
- import("./store-maintenance-command-BNRZ5IJD.js")
114
+ import("./open-ANYJ5AKD.js"),
115
+ import("./store-maintenance-command-ZBOQSTHY.js")
116
116
  ]);
117
117
  const database = await openCache(storePath(env));
118
118
  try {
@@ -124,7 +124,7 @@ var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLang
124
124
  var askTools = /* @__PURE__ */ __name(async (run) => {
125
125
  const { command, env, io } = run;
126
126
  const installed = run.installed ?? ((name) => onPath(name, env));
127
- const { WIRECAT_TOOLS } = await import("./first-screen-U63BJPXI.js");
127
+ const { WIRECAT_TOOLS } = await import("./first-screen-FK4ZJQJY.js");
128
128
  const others = WIRECAT_TOOLS.filter((tool) => tool.command !== command);
129
129
  const missing = others.filter((tool) => !installed(tool.command));
130
130
  io.say("Other WireCat tools \u2014 they share this store, so one search finds everything:");
@@ -197,7 +197,7 @@ var setupAtStart = /* @__PURE__ */ __name(async (start) => {
197
197
  contentLanguages: start.contentLanguages,
198
198
  all: start.path[0] === "setup",
199
199
  io: {
200
- ask: /* @__PURE__ */ __name(async (prompt) => (await import("./prompt-3PI4H66U.js")).readSecret(prompt, { input, echo: true }), "ask"),
200
+ ask: /* @__PURE__ */ __name(async (prompt) => (await import("./prompt-EWF4ZSJO.js")).readSecret(prompt, { input, echo: true }), "ask"),
201
201
  say: /* @__PURE__ */ __name((text) => process.stderr.write(`${text}
202
202
  `), "say")
203
203
  }
@@ -7,7 +7,7 @@ import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // 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/types.js
10
+ // 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/types.js
11
11
  var MAX_MODEL_IMAGE_BYTES = 4 * 1024 * 1024;
12
12
  var validateImages = /* @__PURE__ */ __name((images) => {
13
13
  if (images === void 0)
@@ -7,20 +7,20 @@ import {
7
7
  agentJson,
8
8
  commandAvailability,
9
9
  failureContext
10
- } from "./chunk-ETVQH5AL.js";
10
+ } from "./chunk-ID6TO5P5.js";
11
11
  import {
12
12
  callerOf
13
- } from "./chunk-QWPVSWQE.js";
13
+ } from "./chunk-WLGQTYIO.js";
14
14
  import {
15
15
  lentConnection,
16
16
  onlineDeps,
17
17
  refuseLacking,
18
18
  servicesFor,
19
19
  storeModeDeps
20
- } from "./chunk-WD7Q2H4J.js";
20
+ } from "./chunk-ELQ5ORY2.js";
21
21
  import {
22
22
  ENTITIES
23
- } from "./chunk-GGIDY5KC.js";
23
+ } from "./chunk-67GS5BZI.js";
24
24
  import {
25
25
  DEFAULT_OUTPUT_BYTES,
26
26
  LOCAL_WRITE,
@@ -43,16 +43,16 @@ import {
43
43
  sealed,
44
44
  startRecording,
45
45
  traceOf
46
- } from "./chunk-J6B5DQ3I.js";
46
+ } from "./chunk-LSP2NCNL.js";
47
47
  import {
48
48
  currentCaller,
49
49
  keepsSuccess,
50
50
  runContextOf,
51
51
  withCaller
52
- } from "./chunk-QPE72FCE.js";
52
+ } from "./chunk-AQSKZMBD.js";
53
53
  import {
54
54
  MAX_BUFFERED_INPUT
55
- } from "./chunk-SJIHZA4K.js";
55
+ } from "./chunk-C2MKA7SX.js";
56
56
  import {
57
57
  captureStreams,
58
58
  errorObjectOf,
@@ -101,7 +101,7 @@ import {
101
101
  __name
102
102
  } from "./chunk-ZVVMGPBJ.js";
103
103
 
104
- // 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/agent.js
104
+ // 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/agent.js
105
105
  import { Readable } from "node:stream";
106
106
 
107
107
  // node_modules/.pnpm/@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/lint.js
@@ -2749,7 +2749,7 @@ var VOCABULARY = defineVocabulary({
2749
2749
  flags: [...HOW_FLAGS, ...WHAT_FLAGS, ...CALENDAR_FLAGS]
2750
2750
  });
2751
2751
 
2752
- // 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/agent.js
2752
+ // 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/agent.js
2753
2753
  var TYPES = new Map(VOCABULARY.flags.map((flag) => [flag.name, flag.type]));
2754
2754
  var snake = /* @__PURE__ */ __name((name) => name.replaceAll("|", "_or_").replace(/[^a-z0-9]+/gi, "_"), "snake");
2755
2755
  var longOf = /* @__PURE__ */ __name((option) => option.flags.match(/--[a-z0-9][a-z0-9-]*/)?.[0], "longOf");
@@ -2970,7 +2970,7 @@ var runCommandForAgent = /* @__PURE__ */ __name(async (program, path, input, ctx
2970
2970
  }
2971
2971
  }, "runCommandForAgent");
2972
2972
 
2973
- // 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/tool.js
2973
+ // 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/tool.js
2974
2974
  var limit = optional(pipe(number(), integer(), minValue(1), maxValue(100), description("how many")));
2975
2975
  var page = optional(pipe(number(), integer(), minValue(1), description("which page, from 1")));
2976
2976
  var message = pipe(
@@ -3229,7 +3229,7 @@ var failed = /* @__PURE__ */ __name((error, errors, effects) => {
3229
3229
  return mcpErrorResult(JSON.parse(agentJson(errorObjectOf(error, context))));
3230
3230
  }, "failed");
3231
3231
 
3232
- // 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/surface.js
3232
+ // 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/surface.js
3233
3233
  import { randomUUID } from "node:crypto";
3234
3234
  var MATCHES = 8;
3235
3235
  var ANSWER = answerSchema();
@@ -10,7 +10,7 @@ import {
10
10
  refuseLacking,
11
11
  servicesFor,
12
12
  throughWrapper
13
- } from "./chunk-WD7Q2H4J.js";
13
+ } from "./chunk-ELQ5ORY2.js";
14
14
  import {
15
15
  CEILING_KEY,
16
16
  LOG_ATTRIBUTES,
@@ -34,21 +34,21 @@ import {
34
34
  rememberAccount,
35
35
  rootOf2 as rootOf,
36
36
  skipFlagFor
37
- } from "./chunk-J6B5DQ3I.js";
37
+ } from "./chunk-LSP2NCNL.js";
38
38
  import {
39
39
  isCliFailure,
40
40
  providerErrorKey
41
- } from "./chunk-QPE72FCE.js";
41
+ } from "./chunk-AQSKZMBD.js";
42
42
  import {
43
43
  MESSENGER_CHANGE_REFUSAL,
44
44
  readOnlyRefusal
45
- } from "./chunk-NBXUNS6Q.js";
45
+ } from "./chunk-T4UTTH3A.js";
46
46
  import {
47
47
  servingProfiles
48
- } from "./chunk-RDO66SBI.js";
48
+ } from "./chunk-2J3TUUCO.js";
49
49
  import {
50
50
  openStore
51
- } from "./chunk-ZM2AI3E5.js";
51
+ } from "./chunk-PHPXTRMS.js";
52
52
  import {
53
53
  logRecordOf,
54
54
  realSleep,
@@ -62,7 +62,7 @@ import {
62
62
  __name
63
63
  } from "./chunk-ZVVMGPBJ.js";
64
64
 
65
- // 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/cli/messenger/ask.js
65
+ // 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/cli/messenger/ask.js
66
66
  import { openSync } from "node:fs";
67
67
  import { createInterface } from "node:readline";
68
68
  import { ReadStream } from "node:tty";
@@ -117,10 +117,10 @@ var terminalAsker = /* @__PURE__ */ __name((command) => async (key, request) =>
117
117
  throw new CliError("cancelled", `${key}: not done \u2014 the answer was no`);
118
118
  }, "terminalAsker");
119
119
 
120
- // 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/sends/guard.js
120
+ // 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/sends/guard.js
121
121
  import { randomUUID } from "node:crypto";
122
122
 
123
- // 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/sends/flood.js
123
+ // 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/sends/flood.js
124
124
  import { mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
125
125
  import { dirname, join } from "node:path";
126
126
  var MOST_DEADLINES = 50;
@@ -204,11 +204,11 @@ var FloodMemory = class {
204
204
  }
205
205
  };
206
206
 
207
- // 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/sends/journal.js
207
+ // 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/sends/journal.js
208
208
  import { appendFileSync, mkdirSync as mkdirSync3, readFileSync as readFileSync2 } from "node:fs";
209
209
  import { dirname as dirname3, join as join2 } from "node:path";
210
210
 
211
- // 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/sends/file-lock.js
211
+ // 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/sends/file-lock.js
212
212
  import { closeSync, mkdirSync as mkdirSync2, openSync as openSync2, statSync, unlinkSync } from "node:fs";
213
213
  import { dirname as dirname2 } from "node:path";
214
214
  var LOCK_WAIT_MS = 5e3;
@@ -275,7 +275,7 @@ var lockTime = /* @__PURE__ */ __name((lock) => {
275
275
  }
276
276
  }, "lockTime");
277
277
 
278
- // 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/sends/journal.js
278
+ // 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/sends/journal.js
279
279
  var sendsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "sends", `${profile}.jsonl`), "sendsPathFor");
280
280
  var SendJournal = class {
281
281
  static {
@@ -352,7 +352,7 @@ var withSendId = /* @__PURE__ */ __name((entry) => {
352
352
  return cid === void 0 || rest.sendId !== void 0 ? rest : { ...rest, sendId: String(cid) };
353
353
  }, "withSendId");
354
354
 
355
- // 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/sends/recipients.js
355
+ // 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/sends/recipients.js
356
356
  import { existsSync, readFileSync as readFileSync3, rmSync } from "node:fs";
357
357
  import { join as join3 } from "node:path";
358
358
  var recipientsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "profiles", `${profile}.recipients.json`), "recipientsPathFor");
@@ -464,7 +464,7 @@ var RecipientList = class {
464
464
  }
465
465
  };
466
466
 
467
- // 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/sends/guard.js
467
+ // 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/sends/guard.js
468
468
  var HOUR_MS = 60 * 60 * 1e3;
469
469
  var READS_UNDER_HOLD = /* @__PURE__ */ new Set([
470
470
  "attachments.extract",
@@ -657,7 +657,7 @@ var guardFor = /* @__PURE__ */ __name((app, settings, warn, env = process.env, a
657
657
  }), "guardFor");
658
658
  var journalFailure = /* @__PURE__ */ __name((error) => error?.code ?? (error instanceof Error ? error.name : "error"), "journalFailure");
659
659
 
660
- // 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/sends/pace.js
660
+ // 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/sends/pace.js
661
661
  import { readFileSync as readFileSync4, renameSync as renameSync2, writeFileSync as writeFileSync2 } from "node:fs";
662
662
  import { join as join4 } from "node:path";
663
663
  var DEFAULT_PACE = { perMinute: 60, burst: 20 };
@@ -716,7 +716,7 @@ var Pacer = class {
716
716
  }
717
717
  };
718
718
 
719
- // 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/cli/permission-keys.js
719
+ // 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/cli/permission-keys.js
720
720
  var pathOf = /* @__PURE__ */ __name((command) => {
721
721
  const words = [];
722
722
  for (let at = command; at?.parent; at = at.parent)
@@ -776,7 +776,7 @@ var refuseUnknownPermissionKeys = /* @__PURE__ */ __name((command, settings, too
776
776
  throw new CliError("validation_error", `--permission ${key} names no command`, { permission: key });
777
777
  }, "refuseUnknownPermissionKeys");
778
778
 
779
- // 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/cli/messenger/flooded.js
779
+ // 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/cli/messenger/flooded.js
780
780
  var LONG_LIVED = /* @__PURE__ */ new Set(["self", "newSendId", "close", "formatMarkdown", "formatHtml", "storedChats"]);
781
781
  var LISTENING = /* @__PURE__ */ new Set(["watch", "feed", "listen", "listenHistory"]);
782
782
  var BLOCKING = /* @__PURE__ */ new Set(["frozen", "limited", "banned"]);
@@ -895,7 +895,7 @@ var flooded = /* @__PURE__ */ __name((messenger, memory, { name, warn, pacer })
895
895
  });
896
896
  }, "flooded");
897
897
 
898
- // 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/cli/messenger/observed.js
898
+ // 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/cli/messenger/observed.js
899
899
  var observed = /* @__PURE__ */ __name((messenger, events) => {
900
900
  const timed = /* @__PURE__ */ __name(async (operation, named, work, after) => {
901
901
  const write = currentOperation();
@@ -994,7 +994,7 @@ var byPart = /* @__PURE__ */ __name((batch, counts) => {
994
994
  counts[part] = (counts[part] ?? 0) + items.length;
995
995
  }, "byPart");
996
996
 
997
- // 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/cli/messenger/stored.js
997
+ // 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/cli/messenger/stored.js
998
998
  var REKEY_PACING = { lockMs: 50, pauseMs: 25 };
999
999
  var stored = /* @__PURE__ */ __name((messenger, { account, store, warn, events, pending, announcing, deletedWithoutChat, profile, rekeyed, rekeyPacing = REKEY_PACING, closing, namesFromStore, recipientIds, countsUnread = false }) => {
1000
1000
  let warned = false;
@@ -1486,7 +1486,7 @@ var keep = /* @__PURE__ */ __name(async (store, account, event, seenAt, among, c
1486
1486
  }
1487
1487
  }, "keep");
1488
1488
 
1489
- // 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/cli/messenger/context.js
1489
+ // 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/cli/messenger/context.js
1490
1490
  var lazyStore = /* @__PURE__ */ __name((env, command, version) => {
1491
1491
  let opened;
1492
1492
  return {
@@ -1549,7 +1549,11 @@ var storedMessages = /* @__PURE__ */ __name((provider, store, account) => {
1549
1549
  pollVotes: /* @__PURE__ */ __name(async (chatId, messageId) => {
1550
1550
  const owner = key();
1551
1551
  return owner ? (await store()).messages.pollVotes(owner, chatId, messageId) : [];
1552
- }, "pollVotes")
1552
+ }, "pollVotes"),
1553
+ reactors: /* @__PURE__ */ __name(async (chatId, messageId) => {
1554
+ const owner = key();
1555
+ return owner ? (await store()).messages.reactors(owner, chatId, messageId) : [];
1556
+ }, "reactors")
1553
1557
  };
1554
1558
  }, "storedMessages");
1555
1559
  var connectFor = /* @__PURE__ */ __name((command, messenger, base, options = {}) => {