@wirecat/tg-cli 0.110.0 → 0.112.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 (111) hide show
  1. package/README.md +3 -0
  2. package/dist/bin/tg.js +2 -2
  3. package/dist/bundle/{adapter-JWUCHTXU.js → adapter-ILDV2YSZ.js} +70 -50
  4. package/dist/bundle/{all-profiles-OMRCKP54.js → all-profiles-4SH2Q4WV.js} +8 -8
  5. package/dist/bundle/{anthropic-WXFHH74P.js → anthropic-64SM23YO.js} +5 -5
  6. package/dist/bundle/{app-server-ILIPNO6T.js → app-server-SSYZWCDJ.js} +40 -40
  7. package/dist/bundle/{bot-api-KV765AZK.js → bot-api-OHAGQMES.js} +46 -46
  8. package/dist/bundle/{bot-history-3P6EIM5L.js → bot-history-AUFO7UL2.js} +15 -15
  9. package/dist/bundle/{bun-MJOYPPEN.js → bun-AHZX63TR.js} +2 -2
  10. package/dist/bundle/{bun-sqlite-GFRVRRDZ.js → bun-sqlite-KBIIODPV.js} +4 -4
  11. package/dist/bundle/{chunk-XLNYDJKG.js → chunk-2IGZLBTE.js} +2 -2
  12. package/dist/bundle/{chunk-ABVHA4K6.js → chunk-3AJO4GER.js} +5 -5
  13. package/dist/bundle/{chunk-RARYRHQA.js → chunk-3GL4AOOG.js} +1 -1
  14. package/dist/bundle/{chunk-SLAPUEMZ.js → chunk-3W7BU2BL.js} +6 -6
  15. package/dist/bundle/{chunk-MXIBRT6W.js → chunk-4IDJ7QCG.js} +4 -4
  16. package/dist/bundle/{chunk-QRH2AWBZ.js → chunk-4JXZKMXV.js} +77 -54
  17. package/dist/bundle/{chunk-6KESAYMZ.js → chunk-5BNYW5RA.js} +2 -2
  18. package/dist/bundle/{chunk-6WTLP2SI.js → chunk-5W72OARG.js} +8 -8
  19. package/dist/bundle/{chunk-RSZEEWOW.js → chunk-6KGENDPF.js} +2 -2
  20. package/dist/bundle/{chunk-4GOF43MW.js → chunk-7MFJFVUN.js} +1 -1
  21. package/dist/bundle/{chunk-4YOPRYEY.js → chunk-B3Y2KZRS.js} +109 -94
  22. package/dist/bundle/{chunk-RXWG7OWT.js → chunk-BIERCQVG.js} +1221 -557
  23. package/dist/bundle/{chunk-AXNBGLO5.js → chunk-BTAET4U3.js} +1 -1
  24. package/dist/bundle/{chunk-UIPT6IAU.js → chunk-COTC7HF3.js} +1 -1
  25. package/dist/bundle/{chunk-F7RWNBC2.js → chunk-D5JP2YWG.js} +2 -2
  26. package/dist/bundle/{chunk-W3B6EEZU.js → chunk-DFUTZGEV.js} +1 -1
  27. package/dist/bundle/{chunk-3KOF5T4N.js → chunk-DNYGJAEP.js} +4 -4
  28. package/dist/bundle/{chunk-3L2JTAVD.js → chunk-E4EJ2UTT.js} +2 -2
  29. package/dist/bundle/{chunk-YPLL3Q3M.js → chunk-EO7PQE3J.js} +119 -65
  30. package/dist/bundle/{chunk-YPEAEEHF.js → chunk-EPAOLRUL.js} +2 -2
  31. package/dist/bundle/{chunk-TJA3BWY3.js → chunk-GM44UNGL.js} +1 -1
  32. package/dist/bundle/{chunk-4I6HTOCM.js → chunk-GSGS62LX.js} +1 -1
  33. package/dist/bundle/{chunk-7ABA4EXC.js → chunk-GW7JRFTF.js} +3 -3
  34. package/dist/bundle/{chunk-5CMOXHQS.js → chunk-ICEJKOKO.js} +7 -7
  35. package/dist/bundle/{chunk-GPIORQAD.js → chunk-JIGYVVWA.js} +22 -22
  36. package/dist/bundle/{chunk-AZYVTDAE.js → chunk-JLB5LEXJ.js} +3 -3
  37. package/dist/bundle/{chunk-VOBMR7E5.js → chunk-JPRYFDOJ.js} +45 -44
  38. package/dist/bundle/{chunk-FYAHTTOB.js → chunk-JXTYTAWE.js} +11 -11
  39. package/dist/bundle/{chunk-F24EAGOU.js → chunk-JYOQMYNJ.js} +28 -28
  40. package/dist/bundle/{chunk-YWSNUUW5.js → chunk-K7VOCHVS.js} +6 -6
  41. package/dist/bundle/{chunk-KLOFBUXA.js → chunk-KGYPSBTI.js} +33 -23
  42. package/dist/bundle/{chunk-BWRCPMMC.js → chunk-KLNQXUDX.js} +18 -18
  43. package/dist/bundle/{chunk-3XTMVGTS.js → chunk-KYYAHIG2.js} +246 -229
  44. package/dist/bundle/{chunk-TDQVVXPF.js → chunk-MCXVGHL6.js} +85 -31
  45. package/dist/bundle/{chunk-32HEOKI2.js → chunk-NKACHGB2.js} +27 -14
  46. package/dist/bundle/{chunk-HCAYTAJN.js → chunk-NQKPXVLX.js} +2 -2
  47. package/dist/bundle/{chunk-L3YDXUDK.js → chunk-PDVSMGWO.js} +2 -2
  48. package/dist/bundle/{chunk-2YWQEG2P.js → chunk-PXUHQO66.js} +11 -11
  49. package/dist/bundle/{chunk-EO563SUX.js → chunk-QL4WBCL5.js} +7 -7
  50. package/dist/bundle/{chunk-MZRD776E.js → chunk-QMJGHSGN.js} +3 -3
  51. package/dist/bundle/{chunk-M3XIME74.js → chunk-RANORATG.js} +4 -4
  52. package/dist/bundle/{chunk-Q35J5LCO.js → chunk-RC7EBLHM.js} +10 -9
  53. package/dist/bundle/{chunk-VM7I5VKX.js → chunk-RHYMEHYK.js} +2 -2
  54. package/dist/bundle/{chunk-NDT22GBK.js → chunk-RPNRCFEE.js} +2 -2
  55. package/dist/bundle/{chunk-EB44Z44U.js → chunk-SC2DUQAK.js} +1 -1
  56. package/dist/bundle/{chunk-ONHHBPV3.js → chunk-SFJFBIYP.js} +2 -2
  57. package/dist/bundle/{chunk-SD5J5T7M.js → chunk-TOBJGMMA.js} +11 -11
  58. package/dist/bundle/{chunk-5ASW5BNM.js → chunk-TUJEJ4D5.js} +26 -13
  59. package/dist/bundle/{chunk-BYOEVYY2.js → chunk-UQOSZ2XX.js} +468 -351
  60. package/dist/bundle/{chunk-JDOSIWPN.js → chunk-UVRD447S.js} +3 -3
  61. package/dist/bundle/{chunk-4BMXELWN.js → chunk-UXCWUEN7.js} +5 -5
  62. package/dist/bundle/{chunk-54CWOD7V.js → chunk-WI2S6INJ.js} +6 -6
  63. package/dist/bundle/{chunk-NFBOZT7H.js → chunk-WWKXTKCE.js} +4 -4
  64. package/dist/bundle/{chunk-7LZBMZQM.js → chunk-XSYJKEA5.js} +4 -4
  65. package/dist/bundle/command-contract-4KVJJZ46.js +32 -0
  66. package/dist/bundle/{decode-3KBXZCFM.js → decode-FR3QHHJI.js} +4 -4
  67. package/dist/bundle/{echarts-24TVPFGC.js → echarts-VTV4C2OS.js} +2 -2
  68. package/dist/bundle/{embed-3BDPZ4Q7.js → embed-US7X5P5D.js} +5 -5
  69. package/dist/bundle/{embedder-EMVDEZFR.js → embedder-63Z7ZBYG.js} +8 -8
  70. package/dist/bundle/{entry-NQD6Z2BM.js → entry-B4J7IAG3.js} +5 -5
  71. package/dist/bundle/{first-run-ZBIO6C67.js → first-run-MXPPUGII.js} +9 -9
  72. package/dist/bundle/first-screen-GFYHUBBD.js +30 -0
  73. package/dist/bundle/{identity-EDGOOTOM.js → identity-AQWKU7SM.js} +3 -3
  74. package/dist/bundle/{instructions-N2WVMNFZ.js → instructions-GBR6DJTK.js} +1 -1
  75. package/dist/bundle/{mcp-EMNFFY4N.js → mcp-YJEQYYTR.js} +2 -2
  76. package/dist/bundle/{node-VBZAZHUS.js → node-QXGPMDH2.js} +2 -2
  77. package/dist/bundle/{node-sqlite-C3V64OAL.js → node-sqlite-L6CAMXQ2.js} +4 -4
  78. package/dist/bundle/{oauth-NZXELYDA.js → oauth-5RK6J4SG.js} +6 -6
  79. package/dist/bundle/{open-2XRUGMV7.js → open-A3IAG7U6.js} +3 -3
  80. package/dist/bundle/{openai-OLGTN3ZB.js → openai-YKNGCHVV.js} +13 -13
  81. package/dist/bundle/{process-CASPZ2DH.js → process-CGLNXFIU.js} +1 -1
  82. package/dist/bundle/{program-QPQDSGYA.js → program-AEDR6R5P.js} +48 -48
  83. package/dist/bundle/{prompt-ESZL7SGX.js → prompt-65CSCL2T.js} +4 -4
  84. package/dist/bundle/{proxy-transport-OROEVBCG.js → proxy-transport-U3QOYMQF.js} +4 -4
  85. package/dist/bundle/{recognize-LQ7QOG4T.js → recognize-ECRO6CFK.js} +3 -3
  86. package/dist/bundle/{remote-34XP4EDN.js → remote-6IEFZFGO.js} +6 -6
  87. package/dist/bundle/{rerank-7F6NLBCW.js → rerank-23GXWT2V.js} +6 -6
  88. package/dist/bundle/{serve-M6TTKXI4.js → serve-S65YTPZN.js} +8 -8
  89. package/dist/bundle/server-IH24WEAC.js +56 -0
  90. package/dist/bundle/{server-GLZ5M7PE.js → server-MVTBK7GV.js} +32 -32
  91. package/dist/bundle/{state-UKKPLMHS.js → state-TH3UVQAW.js} +5 -5
  92. package/dist/bundle/{store-J2MBIDJK.js → store-2WFTUSNG.js} +12 -10
  93. package/dist/bundle/store-maintenance-command-PUOU2CL6.js +45 -0
  94. package/dist/bundle/tg.js +4 -4
  95. package/dist/telegram/adapter.d.ts +2 -0
  96. package/dist/telegram/adapter.d.ts.map +1 -1
  97. package/dist/telegram/adapter.js +3 -0
  98. package/dist/telegram/adapter.js.map +1 -1
  99. package/dist/telegram/topics.d.ts +4 -2
  100. package/dist/telegram/topics.d.ts.map +1 -1
  101. package/dist/telegram/topics.js +21 -3
  102. package/dist/telegram/topics.js.map +1 -1
  103. package/dist/version.d.ts +1 -1
  104. package/dist/version.js +1 -1
  105. package/package.json +3 -3
  106. package/skills/tg-cli/SKILL.md +16 -9
  107. package/dist/bundle/command-contract-TNSW7W6G.js +0 -32
  108. package/dist/bundle/first-screen-4HRCG7OX.js +0 -30
  109. package/dist/bundle/server-KOW7OKE2.js +0 -56
  110. package/dist/bundle/store-maintenance-command-64B57C3U.js +0 -45
  111. /package/dist/bundle/{chunk-NPGVOZVK.js → chunk-WJWLHLQ7.js} +0 -0
@@ -4,10 +4,11 @@ import {
4
4
  acquireLock,
5
5
  openOrdinaryFile,
6
6
  readBoundedUtf8File,
7
+ safeName,
7
8
  sameOrdinaryFile,
8
9
  syncDirectory,
9
10
  writeFileAtomic
10
- } from "./chunk-5ASW5BNM.js";
11
+ } from "./chunk-TUJEJ4D5.js";
11
12
  import {
12
13
  Command,
13
14
  DEFAULT_IMAGE_MODEL,
@@ -46,23 +47,23 @@ import {
46
47
  typedCommand,
47
48
  vectorModelKey,
48
49
  withAttempt
49
- } from "./chunk-QRH2AWBZ.js";
50
+ } from "./chunk-4JXZKMXV.js";
50
51
  import {
51
52
  isCliFailure
52
- } from "./chunk-Q35J5LCO.js";
53
+ } from "./chunk-RC7EBLHM.js";
53
54
  import {
54
55
  isNewer,
55
56
  updateCommand
56
- } from "./chunk-ABVHA4K6.js";
57
+ } from "./chunk-3AJO4GER.js";
57
58
  import {
58
59
  readOnlyLockOf
59
- } from "./chunk-XLNYDJKG.js";
60
+ } from "./chunk-2IGZLBTE.js";
60
61
  import {
61
62
  MAX_MODEL_IMAGE_BYTES
62
- } from "./chunk-NDT22GBK.js";
63
+ } from "./chunk-RPNRCFEE.js";
63
64
  import {
64
65
  remoteKey
65
- } from "./chunk-AZYVTDAE.js";
66
+ } from "./chunk-JLB5LEXJ.js";
66
67
  import {
67
68
  Unzip,
68
69
  UnzipInflate,
@@ -73,11 +74,11 @@ import {
73
74
  placedText,
74
75
  runEmbedders,
75
76
  textModelsDirectory
76
- } from "./chunk-YWSNUUW5.js";
77
+ } from "./chunk-K7VOCHVS.js";
77
78
  import {
78
79
  installFiles,
79
80
  megabytes
80
- } from "./chunk-NFBOZT7H.js";
81
+ } from "./chunk-WWKXTKCE.js";
81
82
  import {
82
83
  AGENDA_COLUMNS,
83
84
  CHAT_COLUMNS,
@@ -149,7 +150,7 @@ import {
149
150
  threadConversation,
150
151
  validateAst,
151
152
  validateFields
152
- } from "./chunk-RXWG7OWT.js";
153
+ } from "./chunk-BIERCQVG.js";
153
154
  import {
154
155
  EVENT_QUERY,
155
156
  MEETING_PROJECT_EVIDENCE_QUERY,
@@ -170,6 +171,7 @@ import {
170
171
  formatMeetingReference,
171
172
  implicitTextTerms,
172
173
  importFiles,
174
+ isClosedState,
173
175
  listed,
174
176
  meetingCueFingerprint,
175
177
  meetingDetailsAnswer,
@@ -193,27 +195,27 @@ import {
193
195
  validateQuery,
194
196
  walkQuery,
195
197
  zonedMoment
196
- } from "./chunk-YPLL3Q3M.js";
198
+ } from "./chunk-EO7PQE3J.js";
197
199
  import {
198
200
  DEFAULT_STEMMERS,
199
201
  createStemmer,
200
202
  fold,
201
203
  normalize
202
- } from "./chunk-6WTLP2SI.js";
204
+ } from "./chunk-5W72OARG.js";
203
205
  import {
204
206
  DEFAULT_TASK_CATEGORIES,
205
207
  FALLBACK_CATEGORY
206
- } from "./chunk-54CWOD7V.js";
208
+ } from "./chunk-WI2S6INJ.js";
207
209
  import {
208
210
  storePath,
209
211
  wirecatDirectory
210
- } from "./chunk-VM7I5VKX.js";
212
+ } from "./chunk-RHYMEHYK.js";
211
213
  import {
212
214
  resolvePaths,
213
215
  singleLine,
214
216
  visibleControls,
215
217
  writeSecurely
216
- } from "./chunk-BWRCPMMC.js";
218
+ } from "./chunk-KLNQXUDX.js";
217
219
  import {
218
220
  CliError,
219
221
  array,
@@ -238,7 +240,7 @@ import {
238
240
  string,
239
241
  transform,
240
242
  unknown
241
- } from "./chunk-EO563SUX.js";
243
+ } from "./chunk-QL4WBCL5.js";
242
244
  import {
243
245
  importFrom,
244
246
  resolveFrom
@@ -16858,7 +16860,7 @@ var require_lib3 = __commonJS({
16858
16860
  }
16859
16861
  });
16860
16862
 
16861
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/conversations/link.js
16863
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/conversations/link.js
16862
16864
  var RULES_VERSION = 5;
16863
16865
  var LOOK_BACK = 50;
16864
16866
  var SAME_SENDER_WITHIN = 10;
@@ -16948,15 +16950,15 @@ var latest = /* @__PURE__ */ __name((window3, matches) => {
16948
16950
  var sameThread = /* @__PURE__ */ __name((a, b) => a.threadId === b.threadId, "sameThread");
16949
16951
  var link = /* @__PURE__ */ __name((message, parentId, source, kind, confidence, method) => ({ messageId: message.id, parentId, source, kind, confidence, method }), "link");
16950
16952
 
16951
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/ports/traits.js
16953
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/ports/traits.js
16952
16954
  var syncsOneChat = /* @__PURE__ */ __name((messenger) => messenger.history !== "store" || messenger.historyOnDemand === true, "syncsOneChat");
16953
16955
 
16954
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/sends/send-id.js
16956
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/sends/send-id.js
16955
16957
  import { randomBytes } from "node:crypto";
16956
16958
  var newSendId = /* @__PURE__ */ __name(() => randomBytes(8).readBigInt64BE().toString(), "newSendId");
16957
16959
  var newOperationId = newSendId;
16958
16960
 
16959
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/sends/upload.js
16961
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/sends/upload.js
16960
16962
  import { openAsBlob, realpathSync } from "node:fs";
16961
16963
  import { open, stat } from "node:fs/promises";
16962
16964
  import { basename, dirname, extname, isAbsolute, relative, resolve, sep } from "node:path";
@@ -17177,7 +17179,7 @@ var readStickerFile = /* @__PURE__ */ __name(async (path, maxBytes, read) => {
17177
17179
  return { name, source };
17178
17180
  }, "readStickerFile");
17179
17181
 
17180
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/cli/messenger/lacks.js
17182
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/cli/messenger/lacks.js
17181
17183
  var COMMAND_NEEDS = {
17182
17184
  "account update": ["updateProfile", "change the profile"],
17183
17185
  "account sessions list": ["sessions", "list the account's sessions"],
@@ -17227,7 +17229,7 @@ var hideNever = /* @__PURE__ */ __name((messenger, group) => {
17227
17229
  return group;
17228
17230
  }, "hideNever");
17229
17231
 
17230
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/members-audit.js
17232
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/members-audit.js
17231
17233
  var AUDIT_PAGE = 200;
17232
17234
  var AUDIT_BUDGET = 10;
17233
17235
  var AUDIT_PAUSE_MS = 1e3;
@@ -17307,7 +17309,7 @@ var burstJoins = /* @__PURE__ */ __name((members) => {
17307
17309
  return found;
17308
17310
  }, "burstJoins");
17309
17311
 
17310
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/meetings/cli/query-options.js
17312
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/cli/query-options.js
17311
17313
  var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
17312
17314
  command.allowUnknownOption();
17313
17315
  const parse = command.parseOptions.bind(command);
@@ -17327,7 +17329,7 @@ var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
17327
17329
  return command;
17328
17330
  }, "queryWordsAfterOptions");
17329
17331
 
17330
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/meetings/cli/passage.js
17332
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/cli/passage.js
17331
17333
  var count = /* @__PURE__ */ __name((value) => {
17332
17334
  if (!/^(0|[1-9]\d*)$/.test(value) || !Number.isSafeInteger(Number(value)))
17333
17335
  throw new CliError("validation_error", "expected a nonnegative safe integer");
@@ -17369,7 +17371,7 @@ var addMeetingPassageCommandDefinition = /* @__PURE__ */ __name((program, deps)
17369
17371
  var createMeetingPassageCommand = sharedCommand(createMeetingPassageCommandDefinition);
17370
17372
  var addMeetingPassageCommand = sharedCommand(addMeetingPassageCommandDefinition);
17371
17373
 
17372
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/meetings/cli/project-evidence.js
17374
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/cli/project-evidence.js
17373
17375
  var integer2 = /* @__PURE__ */ __name((value) => {
17374
17376
  if (!/^[1-9]\d*$/.test(value) || !Number.isSafeInteger(Number(value)))
17375
17377
  throw new CliError("validation_error", "expected a positive safe integer");
@@ -17392,7 +17394,7 @@ ${fieldsHelp(MEETING_PROJECT_EVIDENCE_QUERY)}`).option("--limit <n>", "hits in o
17392
17394
  }, "addMeetingProjectEvidenceCommandDefinition");
17393
17395
  var addMeetingProjectEvidenceCommand = sharedCommand(addMeetingProjectEvidenceCommandDefinition);
17394
17396
 
17395
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/meetings/cli/search.js
17397
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/cli/search.js
17396
17398
  var ZONED = /(?:Z|[+-]\d{2}:?\d{2})$/i;
17397
17399
  var moment = /* @__PURE__ */ __name((flag, end, readIn) => (value) => {
17398
17400
  const zone = timezoneOf();
@@ -17478,7 +17480,7 @@ var addMeetingSearchCommandDefinition = /* @__PURE__ */ __name((program, deps) =
17478
17480
  var createMeetingSearchCommand = sharedCommand(createMeetingSearchCommandDefinition);
17479
17481
  var addMeetingSearchCommand = sharedCommand(addMeetingSearchCommandDefinition);
17480
17482
 
17481
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/meetings/cli/index.js
17483
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/cli/index.js
17482
17484
  var integer4 = /* @__PURE__ */ __name((text2) => {
17483
17485
  if (!/^[1-9]\d*$/.test(text2) || !Number.isSafeInteger(Number(text2)))
17484
17486
  throw new InvalidArgumentError("expected a positive integer");
@@ -17598,7 +17600,7 @@ ${fieldsHelp(EVENT_QUERY, MEETING_QUERY_GUIDE)}`);
17598
17600
  }, "addMeetingCommandsDefinition");
17599
17601
  var addMeetingCommands = sharedCommand(addMeetingCommandsDefinition);
17600
17602
 
17601
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/cli/list-query.js
17603
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/cli/list-query.js
17602
17604
  var LIST_QUERY_GUIDE = "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md";
17603
17605
  var withQuery = /* @__PURE__ */ __name((command, registry) => {
17604
17606
  const query = defineQuery(registry);
@@ -17615,9 +17617,19 @@ var unfilteredQuery = /* @__PURE__ */ __name((entity, schema2) => ({
17615
17617
  backend: "native",
17616
17618
  fields: queryFieldsOf(schema2, {})
17617
17619
  }), "unfilteredQuery");
17618
- var listQuery = /* @__PURE__ */ __name((text2, registry, command) => {
17620
+ var withTomorrow = /* @__PURE__ */ __name((query, registry, zone = timezoneOf(), now = Date.now()) => {
17621
+ const times = new Set(registry.fields.filter(({ type }) => type === "time").map(({ name }) => name));
17622
+ const date2 = /* @__PURE__ */ new Date(`${new Intl.DateTimeFormat("en-CA", { timeZone: zone }).format(now)}T00:00:00Z`);
17623
+ date2.setUTCDate(date2.getUTCDate() + 1);
17624
+ const tomorrow = date2.toISOString().slice(0, 10);
17625
+ const day = /* @__PURE__ */ __name((value) => value.toLowerCase() === "tomorrow" ? tomorrow : value, "day");
17626
+ const map = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? times.has(node.field) ? { ...node, value: day(node.value), ...node.upper === void 0 ? {} : { upper: day(node.upper) } } : node : { ...node, clauses: node.clauses.map((clause) => ({ ...clause, node: map(clause.node) })) }, "map");
17627
+ return { ...query, root: map(query.root) };
17628
+ }, "withTomorrow");
17629
+ var listQuery = /* @__PURE__ */ __name((text2, registry, command, { defaultField = "none" } = {}) => {
17619
17630
  const context2 = { command, guide: LIST_QUERY_GUIDE };
17620
- const typed = text2.trim() === "" ? void 0 : parseLucene(text2, { defaultField: "none", ...context2 });
17631
+ const parsed = text2.trim() === "" ? void 0 : parseLucene(text2, { defaultField, ...context2 });
17632
+ const typed = parsed && withTomorrow(parsed, registry);
17621
17633
  if (typed)
17622
17634
  validateQuery(typed, registry, context2);
17623
17635
  const named2 = typed ? fieldsNamed(typed) : /* @__PURE__ */ new Set();
@@ -17714,7 +17726,7 @@ var termField = /* @__PURE__ */ __name((name, type, example, more = {}) => nativ
17714
17726
  var queryHelp = /* @__PURE__ */ __name((registry) => `
17715
17727
  ${fieldsHelp(registry, LIST_QUERY_GUIDE)}`, "queryHelp");
17716
17728
 
17717
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/cli/paging.js
17729
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/cli/paging.js
17718
17730
  var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
17719
17731
  if (!/^\d+$/.test(value.trim()) || Number(value) < 1)
17720
17732
  throw new CliError("validation_error", `${flag} takes a whole number from 1 upwards, not "${value}"`);
@@ -17723,7 +17735,7 @@ var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
17723
17735
  var withPaging = /* @__PURE__ */ __name((command) => command.option("--limit <n>", "how many to show", positiveCount("--limit")).option("--page <n>", "which page, starting at 1", positiveCount("--page")).option("--all", "every row, no paging"), "withPaging");
17724
17736
  var window = /* @__PURE__ */ __name(({ limit, page, all }) => all ? { offset: 0 } : { limit, offset: (page - 1) * limit }, "window");
17725
17737
 
17726
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/cli/messenger/chat-answers.js
17738
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/cli/messenger/chat-answers.js
17727
17739
  var defined = /* @__PURE__ */ __name((record2) => Object.fromEntries(Object.entries(record2).filter(([, value]) => value !== void 0)), "defined");
17728
17740
  var chatRef = /* @__PURE__ */ __name((account, chat) => formatReference({ type: "chat", provider: account.provider, account: account.account, chat }), "chatRef");
17729
17741
  var settingsOf = /* @__PURE__ */ __name((settings) => defined({
@@ -17985,7 +17997,7 @@ var sessionAnswer = /* @__PURE__ */ __name(({ current, client, device, location,
17985
17997
  ...createdAt === void 0 ? {} : { created_at: createdAt }
17986
17998
  }), "sessionAnswer");
17987
17999
 
17988
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/deps.js
18000
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/deps.js
17989
18001
  var accountStore = /* @__PURE__ */ __name(async (deps) => (await deps.store()).forAccount(await deps.account()), "accountStore");
17990
18002
  var crossAccount = /* @__PURE__ */ __name((deps, _reason) => deps.store(), "crossAccount");
17991
18003
  var NO_LOCAL_STORE = "this answer comes from the messenger, not from the local store";
@@ -18050,7 +18062,7 @@ var storedDeps = /* @__PURE__ */ __name((messenger, store, account, guard) => ({
18050
18062
  }), "storedDeps");
18051
18063
  var storeModeDeps = /* @__PURE__ */ __name((messenger, store, account, guard) => ({ ...storedDeps(messenger, store, account, guard), offline: false, reads: "store" }), "storeModeDeps");
18052
18064
 
18053
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/resolve.js
18065
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/resolve.js
18054
18066
  var isId = /* @__PURE__ */ __name((reference) => /^-?\d+$/.test(reference.trim()), "isId");
18055
18067
  var foldName = /* @__PURE__ */ __name((name) => name.normalize("NFC").replace(/[\uFE0E\uFE0F\u200D]/g, "").toLowerCase(), "foldName");
18056
18068
  var pickChat = /* @__PURE__ */ __name((reference, chats) => {
@@ -18088,7 +18100,7 @@ ${lines3}`, { candidates });
18088
18100
  }, "ambiguous");
18089
18101
  var isPresent = /* @__PURE__ */ __name((value) => value !== null && value !== void 0, "isPresent");
18090
18102
 
18091
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/ports/messenger.js
18103
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/ports/messenger.js
18092
18104
  var throughWrapper = /* @__PURE__ */ __name((inner, handled, wrap = (_, call) => call) => new Proxy(handled, {
18093
18105
  get: /* @__PURE__ */ __name((own, key) => {
18094
18106
  if (key in own)
@@ -18105,7 +18117,7 @@ var capability = /* @__PURE__ */ __name((adapter, method, what) => {
18105
18117
  return found.bind(adapter);
18106
18118
  }, "capability");
18107
18119
 
18108
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/moment.js
18120
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/moment.js
18109
18121
  var AGO = /^(\d+)(m|h|d)$/;
18110
18122
  var AGO_MS = { m: 6e4, h: 36e5, d: 864e5 };
18111
18123
  var DATE = /^\d{4}-\d{2}-\d{2}/;
@@ -18145,7 +18157,7 @@ var dateWindow = /* @__PURE__ */ __name(({ sinceTime, untilTime, zone, now = Dat
18145
18157
  };
18146
18158
  }, "dateWindow");
18147
18159
 
18148
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/questions.js
18160
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/questions.js
18149
18161
  var LINKS = /https?:\/\/\S+/g;
18150
18162
  var unanswered = /* @__PURE__ */ __name((messages, { answerers: answerers2, before: before2 }) => questions(messages, { answerers: answerers2 }).filter(({ question, answer }) => answer === void 0 && Date.parse(question.timestamp) < before2).map(({ question }) => question), "unanswered");
18151
18163
  var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2 }) => {
@@ -18172,7 +18184,7 @@ var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2 }) =>
18172
18184
  });
18173
18185
  }, "questions");
18174
18186
 
18175
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/task-categories.js
18187
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/task-categories.js
18176
18188
  var names = /* @__PURE__ */ __name((categories) => categories.map(({ name }) => name).join(", "), "names");
18177
18189
  var taskCategoryOf = /* @__PURE__ */ __name((categories = DEFAULT_TASK_CATEGORIES, flag = "--category") => (typed) => {
18178
18190
  const name = typed.trim().toLowerCase();
@@ -18222,7 +18234,7 @@ var categorize = /* @__PURE__ */ __name((text2, categories = DEFAULT_TASK_CATEGO
18222
18234
  return best.name;
18223
18235
  }, "categorize");
18224
18236
 
18225
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/task-rules.js
18237
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/task-rules.js
18226
18238
  var taskAccount = /* @__PURE__ */ __name(({ provider, account }) => `${provider}:${account}`, "taskAccount");
18227
18239
  var RULES_IN = {
18228
18240
  dialog: "all",
@@ -18264,7 +18276,7 @@ var applyTaskRules = /* @__PURE__ */ __name(async (review, { store, account, now
18264
18276
  }, "open");
18265
18277
  const close = /* @__PURE__ */ __name(async (message, kind, answer) => {
18266
18278
  for (const task2 of await store.findBySource(owner, sourceOf2(message))) {
18267
- if (task2.kind !== kind || task2.state !== "open")
18279
+ if (task2.kind !== kind || isClosedState(task2.state))
18268
18280
  continue;
18269
18281
  result.closed += 1;
18270
18282
  if (dryRun)
@@ -18428,7 +18440,7 @@ var applyTaskRulesToChats = /* @__PURE__ */ __name(async (store, account, chatId
18428
18440
  return passes;
18429
18441
  }, "applyTaskRulesToChats");
18430
18442
 
18431
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/botcheck/check.js
18443
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/botcheck/check.js
18432
18444
  var DAY_MS = 864e5;
18433
18445
  var NEW_DAYS = 30;
18434
18446
  var SAME_TEXT_MIN = 20;
@@ -18505,7 +18517,7 @@ var scorePerson = /* @__PURE__ */ __name(({ subject, provider, activity, photos,
18505
18517
  };
18506
18518
  }, "scorePerson");
18507
18519
 
18508
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/botcheck/registries.js
18520
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/botcheck/registries.js
18509
18521
  var REGISTRIES = {
18510
18522
  cas: { title: "Combot Anti-Spam (CAS)", docs: "https://cas.chat/api" },
18511
18523
  lols: { title: "lols.bot", docs: "https://api.lols.bot/lols-bot.json" }
@@ -18590,7 +18602,7 @@ var notCovered = /* @__PURE__ */ __name((messenger, now = /* @__PURE__ */ new Da
18590
18602
  detail: `lists Telegram accounts only, not ${messenger} ones`
18591
18603
  })), "notCovered");
18592
18604
 
18593
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/botcheck/service.js
18605
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/botcheck/service.js
18594
18606
  var ACTIVITY_MESSAGES = 1e3;
18595
18607
  var botCheckService = /* @__PURE__ */ __name((deps) => {
18596
18608
  const subjectOf = /* @__PURE__ */ __name(async (reference) => {
@@ -18678,7 +18690,7 @@ var botCheckService = /* @__PURE__ */ __name((deps) => {
18678
18690
  };
18679
18691
  }, "botCheckService");
18680
18692
 
18681
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/domain/thread.js
18693
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/domain/thread.js
18682
18694
  var threadIdOf = /* @__PURE__ */ __name((value) => {
18683
18695
  if (value === void 0)
18684
18696
  return void 0;
@@ -18688,7 +18700,7 @@ var threadIdOf = /* @__PURE__ */ __name((value) => {
18688
18700
  return id2;
18689
18701
  }, "threadIdOf");
18690
18702
 
18691
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/chat-stats.js
18703
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/chat-stats.js
18692
18704
  var TOP_POSTS = 5;
18693
18705
  var JOINS = /* @__PURE__ */ new Set(["join", "add"]);
18694
18706
  var LEAVES = /* @__PURE__ */ new Set(["leave", "remove"]);
@@ -18805,7 +18817,7 @@ var median = /* @__PURE__ */ __name((values) => {
18805
18817
  return Math.round(sorted.length % 2 === 0 ? ((sorted[middle - 1] ?? upper) + upper) / 2 : upper);
18806
18818
  }, "median");
18807
18819
 
18808
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/member-history.js
18820
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/member-history.js
18809
18821
  var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
18810
18822
  const events = [];
18811
18823
  for (const stay of stays) {
@@ -18837,7 +18849,7 @@ var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
18837
18849
  return events.filter(({ at }) => Date.parse(at) >= since).sort((a, b) => Date.parse(a.at) - Date.parse(b.at) || a.id.localeCompare(b.id));
18838
18850
  }, "memberEvents");
18839
18851
 
18840
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/message-resolution.js
18852
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/message-resolution.js
18841
18853
  var readChatId = /* @__PURE__ */ __name(async (deps, reference, store, account) => {
18842
18854
  if (deps.reads !== "store")
18843
18855
  return keptChatId(deps.messenger, reference, store, account);
@@ -18984,7 +18996,7 @@ var senderAmong = /* @__PURE__ */ __name(async (store, accounts, reference) => {
18984
18996
  }
18985
18997
  }, "senderAmong");
18986
18998
 
18987
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/chats.js
18999
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/chats.js
18988
19000
  var EVENTS_DAYS = 7;
18989
19001
  var TRACKED_DAYS = 30;
18990
19002
  var STATS_PAGE = 1e3;
@@ -19279,7 +19291,7 @@ var storedMembers = /* @__PURE__ */ __name(async (store, chatId) => {
19279
19291
  return members.length === 0 ? null : members;
19280
19292
  }, "storedMembers");
19281
19293
 
19282
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/inbox.js
19294
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/inbox.js
19283
19295
  var INBOX_CHATS = 20;
19284
19296
  var REVIEW_DAYS = 3;
19285
19297
  var UNANSWERED_HOURS = 24;
@@ -19487,7 +19499,7 @@ var inboxService = /* @__PURE__ */ __name((deps) => {
19487
19499
  };
19488
19500
  }, "inboxService");
19489
19501
 
19490
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/domain/formatting.js
19502
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/domain/formatting.js
19491
19503
  var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "the messenger formatter returned invalid text spans"), "invalid");
19492
19504
  var validateFormattedText = /* @__PURE__ */ __name((formatted2) => {
19493
19505
  const { text: text2, spans } = formatted2;
@@ -19547,7 +19559,7 @@ var visibleFormattedText = /* @__PURE__ */ __name((formatted2) => {
19547
19559
  };
19548
19560
  }, "visibleFormattedText");
19549
19561
 
19550
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/moderation/check.js
19562
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/moderation/check.js
19551
19563
  var INVITE = /max\.ru\/join\/|(t|telegram)\.me\/(\+|joinchat\/)|tg:\/\/join/i;
19552
19564
  var LINK2 = /https?:\/\/\S+/i;
19553
19565
  var STRENGTH = { report: 0, delete: 1, remove: 2 };
@@ -19735,7 +19747,7 @@ var nextPoint = /* @__PURE__ */ __name((rows, found) => {
19735
19747
  }, "nextPoint");
19736
19748
  var someUndone = /* @__PURE__ */ __name((rows) => rows.some(undone), "someUndone");
19737
19749
 
19738
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/moderation/rules.js
19750
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/moderation/rules.js
19739
19751
  import { existsSync, readFileSync } from "node:fs";
19740
19752
  import { join } from "node:path";
19741
19753
  var RULE_ACTIONS = ["report", "delete", "remove"];
@@ -19878,7 +19890,7 @@ var assign = /* @__PURE__ */ __name((rules, key, value) => {
19878
19890
  return { ...rules, [head]: { ...rules[head], [tail]: value } };
19879
19891
  }, "assign");
19880
19892
 
19881
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/person-context.js
19893
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/person-context.js
19882
19894
  var CONTEXT_MESSAGES = 10;
19883
19895
  var CONTEXT_BYTES = 64 * 1024;
19884
19896
  var toContext = /* @__PURE__ */ __name((key, message, chatTitle) => ({
@@ -20134,10 +20146,10 @@ var personMessages = /* @__PURE__ */ __name(async (store, asked, reference, { ch
20134
20146
  };
20135
20147
  }, "personMessages");
20136
20148
 
20137
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
20149
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
20138
20150
  import { createHash } from "node:crypto";
20139
20151
 
20140
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/meeting-reference.js
20152
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/meeting-reference.js
20141
20153
  var missing2 = /* @__PURE__ */ __name(() => new CliError("not_found", "the meeting evidence is unavailable for this account"), "missing");
20142
20154
  var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId, reference, options = {}) => {
20143
20155
  const parsed = parseMeetingReference(reference);
@@ -20155,7 +20167,7 @@ var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId,
20155
20167
  return { parsed, meeting };
20156
20168
  }, "authorizedMeetingMetadata");
20157
20169
 
20158
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
20170
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
20159
20171
  var hash = /* @__PURE__ */ __name((value) => createHash("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
20160
20172
  var checkMeetingCancelled = /* @__PURE__ */ __name((signal) => {
20161
20173
  if (signal?.aborted)
@@ -20354,7 +20366,7 @@ var readMeetingEvidence = /* @__PURE__ */ __name(async (store, accountId, refere
20354
20366
  return { ...packet, fingerprint: hash(packet) };
20355
20367
  }, "readMeetingEvidence");
20356
20368
 
20357
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/person-meeting-context.js
20369
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/person-meeting-context.js
20358
20370
  var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference, options) => {
20359
20371
  const { meetings = 10, cues = 5, bytes: bytes2 = 64 * 1024, scanLimit = 1e3, since, signal } = options;
20360
20372
  const requestedAccounts = options.accountIds;
@@ -20453,7 +20465,7 @@ var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference,
20453
20465
  };
20454
20466
  }, "personMeetingContext");
20455
20467
 
20456
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/person-preparation.js
20468
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/person-preparation.js
20457
20469
  var PREPARE_BYTES = 96 * 1024;
20458
20470
  var MEETINGS = 5;
20459
20471
  var CUES = 3;
@@ -20570,7 +20582,7 @@ var meetingsOf = /* @__PURE__ */ __name(async (store, uid, stored, since, left)
20570
20582
  }
20571
20583
  }, "meetingsOf");
20572
20584
 
20573
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/person-profile.js
20585
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/person-profile.js
20574
20586
  var personProfile = /* @__PURE__ */ __name(async (deps, person, known2) => {
20575
20587
  const online = deps.offline ? void 0 : await deps.connection();
20576
20588
  const held = await storeIfOpen(deps);
@@ -20640,7 +20652,7 @@ var quiet = /* @__PURE__ */ __name((facts) => facts.chats.map(({ id: id2, title,
20640
20652
  complete: false
20641
20653
  })), "quiet");
20642
20654
 
20643
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/person-timeline.js
20655
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/person-timeline.js
20644
20656
  var TIMELINE_ITEMS = 50;
20645
20657
  var TIMELINE_MAX = 500;
20646
20658
  var SCOPES = ["personal", "work"];
@@ -20695,7 +20707,7 @@ var personTimeline = /* @__PURE__ */ __name(async (store, asked, reference, { sc
20695
20707
  };
20696
20708
  }, "personTimeline");
20697
20709
 
20698
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/people.js
20710
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/people.js
20699
20711
  var peopleService = /* @__PURE__ */ __name((deps) => {
20700
20712
  const localCard = /* @__PURE__ */ __name(async (card, includeNotes = false) => {
20701
20713
  const held = await storeIfOpen(deps);
@@ -20922,7 +20934,7 @@ var withoutPhone = /* @__PURE__ */ __name((answer) => {
20922
20934
  return rest;
20923
20935
  }, "withoutPhone");
20924
20936
 
20925
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/task-tag-filters.js
20937
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/task-tag-filters.js
20926
20938
  var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
20927
20939
  const tags = /* @__PURE__ */ new Map();
20928
20940
  for (const node of query ? walkQuery(query.root) : [])
@@ -20931,7 +20943,7 @@ var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
20931
20943
  return tags;
20932
20944
  }, "taskTagFilters");
20933
20945
 
20934
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/tasks.js
20946
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/tasks.js
20935
20947
  var TASK_QUERY = {
20936
20948
  entity: "task",
20937
20949
  backend: "sql",
@@ -21068,7 +21080,7 @@ var tasksService = /* @__PURE__ */ __name((deps, categories) => {
21068
21080
  const planOf = /* @__PURE__ */ __name(async (store, id2, plan, by) => {
21069
21081
  if (plan.category !== void 0)
21070
21082
  plan = { ...plan, category: await categoryOf(store, plan.category) };
21071
- const open7 = (await store.tasks.details(id2)).status === "open";
21083
+ const open7 = !isClosedState((await store.tasks.details(id2)).status);
21072
21084
  if (!open7 && (plan.dueAt != null || plan.nextCheckAt != null))
21073
21085
  throw new CliError("validation_error", "a closed task takes no due date or next check; it stays closed");
21074
21086
  const { assignees, ...fields } = plan;
@@ -21099,7 +21111,7 @@ var tasksService = /* @__PURE__ */ __name((deps, categories) => {
21099
21111
  if (!current.some((one) => one.to === to))
21100
21112
  await store.tasks.assign(id2, { to, role: "assignee" }, by);
21101
21113
  }, "assign");
21102
- const reviewAfterLink = /* @__PURE__ */ __name(async (store, id2) => (await store.tasks.get(id2))?.state === "open" ? store.tasks.reviewDuplicates(id2, { linked: true }) : 0, "reviewAfterLink");
21114
+ const reviewAfterLink = /* @__PURE__ */ __name(async (store, id2) => !isClosedState((await store.tasks.get(id2))?.state ?? "done") ? store.tasks.reviewDuplicates(id2, { linked: true }) : 0, "reviewAfterLink");
21103
21115
  return {
21104
21116
  list: /* @__PURE__ */ __name(({ query, limit, offset, previews }) => inStore(async (store, account) => {
21105
21117
  const groups = /* @__PURE__ */ new Map();
@@ -21116,7 +21128,7 @@ var tasksService = /* @__PURE__ */ __name((deps, categories) => {
21116
21128
  ...previews ? { previews: await Promise.all(shown.map(({ task: task2 }) => taskView(store, account, task2))) } : {}
21117
21129
  };
21118
21130
  }), "list"),
21119
- add: /* @__PURE__ */ __name((message, type, origin, { category: named2, ...plan } = {}, choice = {}) => inStore(async (store, account) => {
21131
+ add: /* @__PURE__ */ __name((message, type, origin, { category: named2, ...plan } = {}, choice = {}, author = void 0) => inStore(async (store, account) => {
21120
21132
  const chosen = named2 === void 0 ? void 0 : await categoryOf(store, named2);
21121
21133
  const source = message.trim();
21122
21134
  const native = isNoteReference(source);
@@ -21151,7 +21163,7 @@ var tasksService = /* @__PURE__ */ __name((deps, categories) => {
21151
21163
  ...plan.dueAt ? { due: plan.dueAt } : {}
21152
21164
  };
21153
21165
  const subject = { account: taskAccount(account), draft };
21154
- const by = origin === "owner" ? "owner" : { bot: origin };
21166
+ const by = author ?? (origin === "owner" ? "owner" : { bot: origin });
21155
21167
  if (choice.attach !== void 0) {
21156
21168
  const target2 = await owned(store, account, choice.attach);
21157
21169
  const similarity = await store.tasks.compare(subject, target2.id);
@@ -21245,7 +21257,7 @@ var tasksService = /* @__PURE__ */ __name((deps, categories) => {
21245
21257
  }, "release"),
21246
21258
  close: /* @__PURE__ */ __name((id2, { as, reason, by, agent, certainty, suggestOnly }) => inStore(async (store, account) => {
21247
21259
  const existing = await owned(store, account, id2);
21248
- const suggested = existing.state === "open" ? await store.tasks.closeSuggestion(id2) : null;
21260
+ const suggested = !isClosedState(existing.state) ? await store.tasks.closeSuggestion(id2) : null;
21249
21261
  const state = as ?? (by === "owner" ? suggested?.as : void 0);
21250
21262
  if (state === void 0)
21251
21263
  throw new CliError("validation_error", "say how the task is closed: --as done, or --as dismissed");
@@ -21255,7 +21267,7 @@ var tasksService = /* @__PURE__ */ __name((deps, categories) => {
21255
21267
  const { closeCertainty, closeSuggestion } = await store.tasks.details(task2.id);
21256
21268
  return { ...await taskView(store, account, task2), closeCertainty, closeSuggestion };
21257
21269
  }, "closedView");
21258
- if (by === "agent" && existing.state === "open") {
21270
+ if (by === "agent" && !isClosedState(existing.state)) {
21259
21271
  if (certainty === void 0)
21260
21272
  throw new CliError("validation_error", "an agent closes a task with its certainty, 0 to 1: how sure it is the task needs nothing more", { reason: "task.certainty-required" });
21261
21273
  const { allowed, min } = await store.tasks.agentClose();
@@ -21411,7 +21423,7 @@ var taskView = /* @__PURE__ */ __name(async (store, account, task2) => {
21411
21423
  };
21412
21424
  }, "taskView");
21413
21425
 
21414
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/chat-coverage.js
21426
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/chat-coverage.js
21415
21427
  var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
21416
21428
  const ids = [...new Set(chatIds)];
21417
21429
  if (ids.length === 0)
@@ -21437,7 +21449,7 @@ var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
21437
21449
  }));
21438
21450
  }, "chatCoverage");
21439
21451
 
21440
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/context/evidence-response.js
21452
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/context/evidence-response.js
21441
21453
  var contextSourceKey = /* @__PURE__ */ __name((source) => JSON.stringify([source.kind, source.accountId, source.provider, source.account]), "contextSourceKey");
21442
21454
  var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
21443
21455
  const fail2 = /* @__PURE__ */ __name(() => {
@@ -21501,7 +21513,7 @@ var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
21501
21513
  }
21502
21514
  }, "validateContextEvidencePage");
21503
21515
 
21504
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/context/read-budget.js
21516
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/context/read-budget.js
21505
21517
  var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
21506
21518
  if (!limits || typeof limits !== "object" || Array.isArray(limits))
21507
21519
  throw new CliError("validation_error", "limits needs a context read allowance");
@@ -21554,7 +21566,7 @@ var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
21554
21566
  };
21555
21567
  }, "contextReadBudget");
21556
21568
 
21557
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/context-evidence.js
21569
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/context-evidence.js
21558
21570
  var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits) => {
21559
21571
  if (!port || typeof port.read !== "function")
21560
21572
  throw new CliError("configuration_error", "context evidence reader is unavailable");
@@ -21598,7 +21610,7 @@ var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits)
21598
21610
  };
21599
21611
  }, "createContextEvidenceReader");
21600
21612
 
21601
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/excerpt.js
21613
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/excerpt.js
21602
21614
  var queryWords = /* @__PURE__ */ __name((query) => query.toLowerCase().split(/\s+/).map((word) => word.replace(/^[\p{L}_]+:/u, "").replace(/~\d+$/u, "").replace(/^[^\p{L}\p{N}]+|[^\p{L}\p{N}]+$/gu, "")).filter((word) => word.length > 2 && !["and", "or", "not"].includes(word)), "queryWords");
21603
21615
  var excerpt = /* @__PURE__ */ __name((text2, query, size2 = 240, options = {}) => {
21604
21616
  const flat = text2.replace(/\s+/g, " ").trim();
@@ -21614,18 +21626,18 @@ var excerpt = /* @__PURE__ */ __name((text2, query, size2 = 240, options = {}) =
21614
21626
  }, "excerpt");
21615
21627
  var withExcerpt = /* @__PURE__ */ __name(({ matchedText, ...hit }, query) => ({ ...hit, excerpt: excerpt(matchedText ?? hit.text, query) }), "withExcerpt");
21616
21628
 
21617
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/media-archive.js
21629
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/media-archive.js
21618
21630
  import { setTimeout as sleep } from "node:timers/promises";
21619
21631
 
21620
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
21632
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
21621
21633
  import { lstat } from "node:fs/promises";
21622
21634
 
21623
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
21635
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
21624
21636
  import { createHash as createHash3, randomUUID as randomUUID2 } from "node:crypto";
21625
21637
  import { open as open3, rename as rename2, unlink as unlink2 } from "node:fs/promises";
21626
21638
  import { join as join3 } from "node:path";
21627
21639
 
21628
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-metadata.js
21640
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-metadata.js
21629
21641
  import { createHash as createHash2 } from "node:crypto";
21630
21642
  var metadataLimit = 16384;
21631
21643
  var partialIdentity = /* @__PURE__ */ __name((locator) => JSON.stringify([locator.provider, locator.account, locator.occurrenceId, locator.assetId]), "partialIdentity");
@@ -21685,7 +21697,7 @@ var readPartialMetadata = /* @__PURE__ */ __name(async (path, locator, maxBytes,
21685
21697
  }
21686
21698
  }, "readPartialMetadata");
21687
21699
 
21688
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-writer.js
21700
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-writer.js
21689
21701
  import { randomUUID } from "node:crypto";
21690
21702
  import { open as open2, rename, unlink } from "node:fs/promises";
21691
21703
  import { join as join2 } from "node:path";
@@ -21777,7 +21789,7 @@ var partialWriter = /* @__PURE__ */ __name(async (input) => {
21777
21789
  };
21778
21790
  }, "partialWriter");
21779
21791
 
21780
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
21792
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
21781
21793
  var NativeRecordingPartialStore = class {
21782
21794
  static {
21783
21795
  __name(this, "NativeRecordingPartialStore");
@@ -21884,12 +21896,12 @@ var NativeRecordingPartialStore = class {
21884
21896
  }
21885
21897
  };
21886
21898
 
21887
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
21899
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
21888
21900
  import { createHash as createHash4 } from "node:crypto";
21889
21901
  import { link as link2 } from "node:fs/promises";
21890
21902
  import { basename as basename2, dirname as dirname2, join as join5, resolve as resolve2 } from "node:path";
21891
21903
 
21892
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-files.js
21904
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-files.js
21893
21905
  import { unlink as unlink3 } from "node:fs/promises";
21894
21906
  var verifiedPublicationFile = /* @__PURE__ */ __name(async (path, expected, signal, writable = false) => {
21895
21907
  signal?.throwIfAborted();
@@ -21924,7 +21936,7 @@ var commitPublication = /* @__PURE__ */ __name(async (root, partialPath, finalPa
21924
21936
  signal?.throwIfAborted();
21925
21937
  }, "commitPublication");
21926
21938
 
21927
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-journal.js
21939
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-journal.js
21928
21940
  import { randomUUID as randomUUID3 } from "node:crypto";
21929
21941
  import { open as open4, rename as rename3, unlink as unlink4 } from "node:fs/promises";
21930
21942
  import { join as join4 } from "node:path";
@@ -21997,7 +22009,7 @@ var writePublicationJournal = /* @__PURE__ */ __name(async (root, path, prefix,
21997
22009
  }
21998
22010
  }, "writePublicationJournal");
21999
22011
 
22000
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
22012
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
22001
22013
  var NativeRecordingPublication = class {
22002
22014
  static {
22003
22015
  __name(this, "NativeRecordingPublication");
@@ -22070,7 +22082,7 @@ var NativeRecordingPublication = class {
22070
22082
  }
22071
22083
  };
22072
22084
 
22073
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/media-archive-manifest.js
22085
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/media-archive-manifest.js
22074
22086
  import { createHash as createHash5 } from "node:crypto";
22075
22087
  import { readdir } from "node:fs/promises";
22076
22088
  import { isAbsolute as isAbsolute2, join as join6, resolve as resolve3 } from "node:path";
@@ -22157,7 +22169,7 @@ var commitMediaEntry = /* @__PURE__ */ __name((root, one, beforePublish) => writ
22157
22169
  beforePublish
22158
22170
  }), "commitMediaEntry");
22159
22171
 
22160
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
22172
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
22161
22173
  var validator = '"media-completed-v1"';
22162
22174
  var maximumFileBytes = 64 * 1024 * 1024 * 1024;
22163
22175
  var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file2, beforeWrite, signal, metadata = {}) => {
@@ -22258,7 +22270,7 @@ var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file2
22258
22270
  return entry;
22259
22271
  }, "archiveMediaFile");
22260
22272
 
22261
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/media-archive-locks.js
22273
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/media-archive-locks.js
22262
22274
  import { mkdir, realpath } from "node:fs/promises";
22263
22275
  import { join as join7, resolve as resolve4 } from "node:path";
22264
22276
  var archiveLocations = /* @__PURE__ */ __name(async (initial, signal) => {
@@ -22325,7 +22337,7 @@ var withMediaArchiveLocks = /* @__PURE__ */ __name(async (directory2, signal, ru
22325
22337
  throw new CliError("validation_error", "archive locations changed during locking; run the command again");
22326
22338
  }, "withMediaArchiveLocks");
22327
22339
 
22328
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/media-archive.js
22340
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/media-archive.js
22329
22341
  var validateMediaSince = /* @__PURE__ */ __name((value, flag = "--since-time") => {
22330
22342
  if (value === void 0)
22331
22343
  return void 0;
@@ -22478,7 +22490,7 @@ var archiveMedia = /* @__PURE__ */ __name(async (ports, options) => {
22478
22490
  }, { create: true });
22479
22491
  }, "archiveMedia");
22480
22492
 
22481
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/media-archive-move.js
22493
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/media-archive-move.js
22482
22494
  import { realpath as realpath2, unlink as unlink5 } from "node:fs/promises";
22483
22495
  import { basename as basename3, dirname as dirname3, join as join8, resolve as resolve5 } from "node:path";
22484
22496
  var canonicalDestination = /* @__PURE__ */ __name(async (directory2) => {
@@ -22631,7 +22643,7 @@ var moveMediaArchive = /* @__PURE__ */ __name(async (options) => {
22631
22643
  }, { additional: [target2], createAdditional: !options.dryRun });
22632
22644
  }, "moveMediaArchive");
22633
22645
 
22634
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/model-downloads.js
22646
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/model-downloads.js
22635
22647
  var bytesOf = /* @__PURE__ */ __name((model) => model.files.reduce((sum2, file2) => sum2 + file2.bytes, 0), "bytesOf");
22636
22648
  var nativeRuntime = /* @__PURE__ */ __name(async ({ env, progress = /* @__PURE__ */ __name(() => {
22637
22649
  }, "progress") }) => {
@@ -22654,7 +22666,7 @@ var downloadTextModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
22654
22666
  }
22655
22667
  await nativeRuntime({ env, progress });
22656
22668
  progress(`${model.id}: loading it once to check it works`);
22657
- const { openEmbedder: openEmbedder2 } = await import("./embed-3BDPZ4Q7.js");
22669
+ const { openEmbedder: openEmbedder2 } = await import("./embed-US7X5P5D.js");
22658
22670
  const embedder = await openEmbedder2(model, directory2);
22659
22671
  try {
22660
22672
  const [vector] = await embedder.embed(["check"], "query");
@@ -22675,7 +22687,7 @@ var downloadRerankModel = /* @__PURE__ */ __name(async (id2, { env, progress = /
22675
22687
  }
22676
22688
  await nativeRuntime({ env, progress });
22677
22689
  progress(`${model.id}: loading it once to check it works`);
22678
- const { openReranker } = await import("./rerank-7F6NLBCW.js");
22690
+ const { openReranker } = await import("./rerank-23GXWT2V.js");
22679
22691
  const reranker = await openReranker(model, directory2);
22680
22692
  try {
22681
22693
  await reranker.score("check", ["check"]);
@@ -22693,7 +22705,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
22693
22705
  await installFiles(placedImage(model, directory2), { progress });
22694
22706
  }
22695
22707
  progress(`${model.id}: loading it once to check it works`);
22696
- const { openPictureEmbedder } = await import("./embedder-EMVDEZFR.js");
22708
+ const { openPictureEmbedder } = await import("./embedder-63Z7ZBYG.js");
22697
22709
  const embedder = await openPictureEmbedder(model, directory2);
22698
22710
  try {
22699
22711
  const vector = await embedder.embedQuery("check");
@@ -22705,7 +22717,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
22705
22717
  return { model, directory: directory2 };
22706
22718
  }, "downloadImageModel");
22707
22719
 
22708
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/project-gathering-around.js
22720
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/project-gathering-around.js
22709
22721
  var storedMessageNeighbours = /* @__PURE__ */ __name((messages) => ({
22710
22722
  async around(ref, window3) {
22711
22723
  const at = parseLocator(ref);
@@ -22800,7 +22812,7 @@ var storedNeighbours = /* @__PURE__ */ __name((store) => {
22800
22812
  };
22801
22813
  }, "storedNeighbours");
22802
22814
 
22803
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/project-gathering-request.js
22815
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/project-gathering-request.js
22804
22816
  import { createHash as createHash6 } from "node:crypto";
22805
22817
  var DAY = 864e5;
22806
22818
  var MAX_TIME = 864e13;
@@ -23116,7 +23128,7 @@ var decodeCheckpoint = /* @__PURE__ */ __name((text2, plan) => {
23116
23128
  return value;
23117
23129
  }, "decodeCheckpoint");
23118
23130
 
23119
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/project-gathering.js
23131
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/project-gathering.js
23120
23132
  var terminal = /* @__PURE__ */ new Set(["done", "unavailable", "failed"]);
23121
23133
  var PAGE2 = 20;
23122
23134
  var PEOPLE = 20;
@@ -23520,7 +23532,7 @@ var peopleOf = /* @__PURE__ */ __name((items, senderOf) => {
23520
23532
  return [...byKey.values()].sort((a, b) => b.items - a.items || a.name.localeCompare(b.name));
23521
23533
  }, "peopleOf");
23522
23534
 
23523
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/meeting-project-candidate-matching.js
23535
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/meeting-project-candidate-matching.js
23524
23536
  var normalizedText = /* @__PURE__ */ __name((text2) => text2.normalize("NFKC").toLowerCase().replace(/\s+/gu, " "), "normalizedText");
23525
23537
  var termsOf = /* @__PURE__ */ __name((entry) => [
23526
23538
  { name: entry.name, kind: "canonical" },
@@ -23564,7 +23576,7 @@ var matchVocabularyTerms = /* @__PURE__ */ __name((catalog, texts) => {
23564
23576
  return result.sort((a, b) => Number(a.entry.id) - Number(b.entry.id));
23565
23577
  }, "matchVocabularyTerms");
23566
23578
 
23567
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/project-gathering-mentions.js
23579
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/project-gathering-mentions.js
23568
23580
  var KINDS = ["project", "tag", "topic"];
23569
23581
  var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering, options = {}) => {
23570
23582
  if (typeof vocabulary?.vocabulary !== "function")
@@ -23619,7 +23631,7 @@ var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering,
23619
23631
  };
23620
23632
  }, "findEvidenceMentions");
23621
23633
 
23622
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/stored-project-gathering.js
23634
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/stored-project-gathering.js
23623
23635
  var PROJECT_ID = /^project:[1-9]\d*$/;
23624
23636
  var canonicalProjectRef = /* @__PURE__ */ __name(async (store, reference) => {
23625
23637
  if (PROJECT_ID.test(reference)) {
@@ -23785,7 +23797,7 @@ var gatherStoredProject = /* @__PURE__ */ __name(async (store, input) => {
23785
23797
  return { projectRef: project.ref, unreadSources: [...unread, ...unreadChats, ...members.left], ...gathered, mentions };
23786
23798
  }, "gatherStoredProject");
23787
23799
 
23788
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/account.js
23800
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/account.js
23789
23801
  var accountService = /* @__PURE__ */ __name((deps) => {
23790
23802
  const online = /* @__PURE__ */ __name(async (command) => {
23791
23803
  if (deps.offline)
@@ -23857,7 +23869,7 @@ var accountService = /* @__PURE__ */ __name((deps) => {
23857
23869
  };
23858
23870
  }, "accountService");
23859
23871
 
23860
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/domain/send-time.js
23872
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/domain/send-time.js
23861
23873
  var MINUTE = 6e4;
23862
23874
  var YEAR = 365 * 24 * 60 * MINUTE;
23863
23875
  var DELAY = /^(\d+)(m|h|d)$/;
@@ -23876,7 +23888,7 @@ var sendTime = /* @__PURE__ */ __name((value, now = Date.now(), flag = "--at-tim
23876
23888
  return new Date(at - at % MINUTE).toISOString();
23877
23889
  }, "sendTime");
23878
23890
 
23879
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/admin.js
23891
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/admin.js
23880
23892
  var recordMembership = /* @__PURE__ */ __name(async (deps, operationId, done2, change, fix, write) => {
23881
23893
  try {
23882
23894
  const held = await accountStoreIfOpen(deps);
@@ -24123,7 +24135,7 @@ var linkLimits = /* @__PURE__ */ __name(({ approval, expires, maxUses }) => {
24123
24135
  return expires === void 0 ? void 0 : sendTime(expires, Date.now(), "--expire-time");
24124
24136
  }, "linkLimits");
24125
24137
 
24126
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/mail-search.js
24138
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/mail-search.js
24127
24139
  var THREADS_PAGE = 500;
24128
24140
  var threadsOf = /* @__PURE__ */ __name(async (store, key) => {
24129
24141
  const account = await store.accounts.storedAccount(key).catch(() => void 0);
@@ -24202,7 +24214,7 @@ var readMail = /* @__PURE__ */ __name(async (store, locator, { before: before2 =
24202
24214
  return thread.slice(Math.max(0, at - before2), at + after + 1).map((hit) => hit.id === message ? { ...hit, anchor: true } : hit);
24203
24215
  }, "readMail");
24204
24216
 
24205
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/search-kind.js
24217
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/search-kind.js
24206
24218
  var NO_MAIL = "no_mail";
24207
24219
  var MAIL = "email";
24208
24220
  var listContextOf = /* @__PURE__ */ __name(async (store, account, app, stored) => {
@@ -24249,7 +24261,7 @@ var accountsOfKind = /* @__PURE__ */ __name((kind, chosen, held, explicit, comma
24249
24261
  return chosenMail.map(({ provider, account }) => ({ provider, account }));
24250
24262
  }, "accountsOfKind");
24251
24263
 
24252
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/messages-search.js
24264
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/messages-search.js
24253
24265
  var MAIL_FIELDS = /* @__PURE__ */ new Set(["to", "cc", "bcc", "subject", "mailbox", "label", "is"]);
24254
24266
  var positiveSources = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? node.field === "in" ? [node.value.toLowerCase()] : [] : node.clauses.filter(({ occur }) => occur !== "must_not").flatMap(({ node: node2 }) => positiveSources(node2)), "positiveSources");
24255
24267
  var prepareLucene = /* @__PURE__ */ __name(async (store, account, request, messenger) => {
@@ -24597,7 +24609,7 @@ var statsLucene = /* @__PURE__ */ __name(async (store, account, request, messeng
24597
24609
  };
24598
24610
  }, "statsLucene");
24599
24611
 
24600
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/rankings-selection.js
24612
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/rankings-selection.js
24601
24613
  var RANKING_SELECTION_BYTES = 64 * 1024;
24602
24614
  var object = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0, "object");
24603
24615
  function invalid3(message = "ranking selection is invalid \u2014 obtain a new drilldown from stats top") {
@@ -24766,7 +24778,7 @@ var readRankingSelection = /* @__PURE__ */ __name(async (store, input) => {
24766
24778
  };
24767
24779
  }, "readRankingSelection");
24768
24780
 
24769
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/search-record.js
24781
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/search-record.js
24770
24782
  var canonical = /* @__PURE__ */ __name((value, nested = false) => Array.isArray(value) ? value.map((one) => canonical(one, true)) : value !== null && typeof value === "object" ? Object.fromEntries(Object.entries(value).filter(([, one]) => one !== void 0 && (nested || one !== false)).sort(([a], [b]) => a < b ? -1 : a > b ? 1 : 0).map(([key, one]) => [key, canonical(one, true)])) : value, "canonical");
24771
24783
  var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
24772
24784
  command,
@@ -24776,7 +24788,7 @@ var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
24776
24788
  fieldsVersion: FIELD_VERSION
24777
24789
  }), "searchRecordOf");
24778
24790
 
24779
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/admin-statistics.js
24791
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/admin-statistics.js
24780
24792
  function invalid4(message) {
24781
24793
  throw new CliError("validation_error", message);
24782
24794
  }
@@ -25070,7 +25082,7 @@ var adminStatisticsService = /* @__PURE__ */ __name((deps) => ({
25070
25082
  }, "evidence")
25071
25083
  }), "adminStatisticsService");
25072
25084
 
25073
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/agenda.js
25085
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/agenda.js
25074
25086
  var DAY2 = 864e5;
25075
25087
  var CLAIMS = ["none", "mine", "others", "any"];
25076
25088
  var TASK_FIELDS = /* @__PURE__ */ new Set(["tag", "category", "claimed"]);
@@ -25312,10 +25324,10 @@ var agendaItem = /* @__PURE__ */ __name((shown) => {
25312
25324
  };
25313
25325
  }, "agendaItem");
25314
25326
 
25315
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/archive.js
25327
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/archive.js
25316
25328
  import { setTimeout as sleep3 } from "node:timers/promises";
25317
25329
 
25318
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/backfill-estimate.js
25330
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/backfill-estimate.js
25319
25331
  var REQUEST_MS = 400;
25320
25332
  var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, maxPages, pauseMs }) => {
25321
25333
  const lowest = ranges[0];
@@ -25338,13 +25350,13 @@ var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, max
25338
25350
  };
25339
25351
  }, "estimateBackfill");
25340
25352
 
25341
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/domain/recovery.js
25353
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/domain/recovery.js
25342
25354
  var withRecovery = /* @__PURE__ */ __name((error) => ({
25343
25355
  ...error,
25344
25356
  retryable: typeof error.retryable === "boolean" ? error.retryable : error.code === "rate_limited" || error.status === 429
25345
25357
  }), "withRecovery");
25346
25358
 
25347
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/batch.js
25359
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/batch.js
25348
25360
  var actionable = /* @__PURE__ */ __name((error) => {
25349
25361
  if (isCliFailure(error))
25350
25362
  return withRecovery({ code: error.code, message: error.message, ...error.details });
@@ -25427,7 +25439,7 @@ var mergeBatches = /* @__PURE__ */ __name((a, b) => {
25427
25439
  };
25428
25440
  }, "mergeBatches");
25429
25441
 
25430
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/patience.js
25442
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/patience.js
25431
25443
  import { setTimeout as sleep2 } from "node:timers/promises";
25432
25444
  var LONGEST_WAIT_MS = 5 * 60 * 1e3;
25433
25445
  var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
@@ -25450,7 +25462,7 @@ var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
25450
25462
  }
25451
25463
  }, "patiently");
25452
25464
 
25453
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/images/context/index.js
25465
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/images/context/index.js
25454
25466
  var CONTEXT_MESSAGES2 = 3;
25455
25467
  var CONTEXT_MINUTES = 10;
25456
25468
  var MAX_CHARS = 1200;
@@ -25474,12 +25486,12 @@ var context = {
25474
25486
  }, "describe")
25475
25487
  };
25476
25488
 
25477
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/images/registry.js
25489
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/images/registry.js
25478
25490
  var BUILT_INS = [context];
25479
25491
  var providers = [...BUILT_INS];
25480
25492
  var registeredImageProviders = /* @__PURE__ */ __name(() => providers, "registeredImageProviders");
25481
25493
 
25482
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/conversations.js
25494
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/conversations.js
25483
25495
  var READ_PAGE = 5e3;
25484
25496
  var CHAIN = 50;
25485
25497
  var CONVERSATION_QUERY = {
@@ -25631,7 +25643,7 @@ var sized = /* @__PURE__ */ __name((size2) => {
25631
25643
  return size2;
25632
25644
  }, "sized");
25633
25645
 
25634
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/embeddings-maintenance.js
25646
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/embeddings-maintenance.js
25635
25647
  var REFRESH_BOUNDS = { maxChats: 20, maxChunks: 2e3 };
25636
25648
  var MESSAGE_PAGE = 5e3;
25637
25649
  var PER_SESSION = 8;
@@ -25650,7 +25662,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = DEFAULT_TEXT_MODEL)
25650
25662
  price: remote.price,
25651
25663
  installed: true,
25652
25664
  perBatch: PER_REQUEST * concurrency,
25653
- open: /* @__PURE__ */ __name(async () => (await import("./remote-34XP4EDN.js")).openRemote(remote, apiKey, { concurrency }), "open")
25665
+ open: /* @__PURE__ */ __name(async () => (await import("./remote-6IEFZFGO.js")).openRemote(remote, apiKey, { concurrency }), "open")
25654
25666
  };
25655
25667
  }
25656
25668
  const model = textModel(choice);
@@ -25667,7 +25679,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = DEFAULT_TEXT_MODEL)
25667
25679
  if (!isTextModelInstalled(model, directory2))
25668
25680
  throw notDownloaded(model.id);
25669
25681
  if (apart) {
25670
- const { openProcess } = await import("./process-CASPZ2DH.js");
25682
+ const { openProcess } = await import("./process-CGLNXFIU.js");
25671
25683
  return openProcess(model, directory2, { threads: threads ?? defaultThreads() });
25672
25684
  }
25673
25685
  return openEmbedder(model, directory2, { threads: threads ?? defaultThreads() });
@@ -25956,7 +25968,7 @@ var shaped = /* @__PURE__ */ __name(({ chatId, builtAt, algorithmVersion, pendin
25956
25968
  return { ...one, state };
25957
25969
  }, "shaped");
25958
25970
 
25959
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/search-catchup.js
25971
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/search-catchup.js
25960
25972
  var CATCH_UP_BOUNDS = { maxChunks: 500, maxMessages: 1e4, timeMs: 3e4 };
25961
25973
  var validateCatchUpBounds = /* @__PURE__ */ __name((options) => {
25962
25974
  for (const [key, value, maximum] of [
@@ -26009,7 +26021,7 @@ var catchUpSearch = /* @__PURE__ */ __name(async (deps, chat, options, signal, c
26009
26021
  }
26010
26022
  }, "catchUpSearch");
26011
26023
 
26012
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/archive.js
26024
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/archive.js
26013
26025
  var pushed = /* @__PURE__ */ __name((deps, what) => {
26014
26026
  if (deps.reads === "store") {
26015
26027
  throw new CliError("validation_error", `${what} asks for older history, and this messenger pushes its history instead \u2014 keep \`${typedCommand(deps.messenger.app.command, "serve")}\` running`);
@@ -26281,7 +26293,7 @@ var fetchInto = /* @__PURE__ */ __name(async ({ history, store, account, fetchin
26281
26293
  }
26282
26294
  const boundary = window3 === void 0 ? held.from : low;
26283
26295
  before2 = byTime ? new Date(boundary + (fresh > 0 && !(window3 && fetching.beforeInclusive) ? 1 : 0)).toISOString() : String(boundary);
26284
- note(`${fetched} messages so far, back to ${held.from}`);
26296
+ note(`${fetched} messages so far, back to ${fromAt.slice(0, 10)}`);
26285
26297
  const wait = fetching.jitter ? pauseMs * (1 + Math.random()) : pauseMs;
26286
26298
  await sleep3(wait, void 0, { signal: stop }).catch(() => {
26287
26299
  });
@@ -26330,7 +26342,7 @@ var timeOfKey = /* @__PURE__ */ __name(async (store, account, chatId, key, byTim
26330
26342
  return message?.timestamp ?? fallback;
26331
26343
  }, "timeOfKey");
26332
26344
 
26333
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/archive-gaps.js
26345
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/archive-gaps.js
26334
26346
  import { createHash as createHash7, randomUUID as randomUUID4 } from "node:crypto";
26335
26347
  var GAP_BOUNDS = { maxGaps: 5, limit: 500, timeMs: 3e4 };
26336
26348
  var validateRepair = /* @__PURE__ */ __name((messenger, options) => {
@@ -26467,12 +26479,12 @@ var gapsService = /* @__PURE__ */ __name((deps) => {
26467
26479
  return { plan, repair };
26468
26480
  }, "gapsService");
26469
26481
 
26470
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/attachments.js
26482
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/attachments.js
26471
26483
  import { createHash as createHash9 } from "node:crypto";
26472
26484
  import { constants as constants2 } from "node:fs";
26473
26485
  import { open as open6, readFile, stat as stat2 } from "node:fs/promises";
26474
26486
 
26475
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/attachments/directory.js
26487
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/attachments/directory.js
26476
26488
  import { lstat as lstat2, readdir as readdir2, realpath as realpath3 } from "node:fs/promises";
26477
26489
  import { basename as basename4, join as join9, relative as relative2, sep as sep2 } from "node:path";
26478
26490
  var MAX_FILES = 1e4;
@@ -26543,15 +26555,15 @@ var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app,
26543
26555
  return choices;
26544
26556
  }, "directoryPaths");
26545
26557
 
26546
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/attachments/documents.js
26558
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/attachments/documents.js
26547
26559
  import { posix } from "node:path";
26548
26560
 
26549
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/attachments/container.js
26561
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/attachments/container.js
26550
26562
  import { setImmediate as tick } from "node:timers/promises";
26551
26563
  import { crc32 } from "node:zlib";
26552
26564
  var import_xmldom = __toESM(require_lib(), 1);
26553
26565
 
26554
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/attachments/encoding.js
26566
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/attachments/encoding.js
26555
26567
  var import_chardet = __toESM(require_lib2(), 1);
26556
26568
  var import_iconv_lite = __toESM(require_lib3(), 1);
26557
26569
  var SAMPLE = 65536;
@@ -26653,7 +26665,7 @@ var decodeXml = /* @__PURE__ */ __name((bytes2) => {
26653
26665
  return result.text;
26654
26666
  }, "decodeXml");
26655
26667
 
26656
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/attachments/container.js
26668
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/attachments/container.js
26657
26669
  var MAX_PART = 10 * 1024 * 1024;
26658
26670
  var MAX_ENTRIES = 1e3;
26659
26671
  var decoder = new TextDecoder("utf-8", { fatal: true });
@@ -26666,7 +26678,7 @@ var cancelled = /* @__PURE__ */ __name((signal) => {
26666
26678
  if (signal?.aborted)
26667
26679
  throw new CliError("cancelled", "document extraction cancelled");
26668
26680
  }, "cancelled");
26669
- var safeName = /* @__PURE__ */ __name((name) => name.length > 0 && name.length <= 512 && !/^[\\/]|\\/.test(name) && ![...name].some((character) => character.charCodeAt(0) < 32) && !name.split("/").includes(".."), "safeName");
26681
+ var safeName2 = /* @__PURE__ */ __name((name) => name.length > 0 && name.length <= 512 && !/^[\\/]|\\/.test(name) && ![...name].some((character) => character.charCodeAt(0) < 32) && !name.split("/").includes(".."), "safeName");
26670
26682
  var directory = /* @__PURE__ */ __name((bytes2) => {
26671
26683
  const view = new DataView(bytes2.buffer, bytes2.byteOffset, bytes2.byteLength);
26672
26684
  let end = -1;
@@ -26701,7 +26713,7 @@ var directory = /* @__PURE__ */ __name((bytes2) => {
26701
26713
  if (next > stop)
26702
26714
  throw new Error("invalid_zip");
26703
26715
  const name = decoder.decode(bytes2.subarray(offset + 46, offset + 46 + length));
26704
- if (!safeName(name) || entries.has(name) || flags & 1 || method !== 0 && method !== 8)
26716
+ if (!safeName2(name) || entries.has(name) || flags & 1 || method !== 0 && method !== 8)
26705
26717
  throw new Error("invalid_zip");
26706
26718
  if ((view.getUint32(offset + 38, true) >>> 16 & 61440) === 40960)
26707
26719
  throw new Error("invalid_zip");
@@ -26868,7 +26880,7 @@ var elements = /* @__PURE__ */ __name((node, name, namespace) => {
26868
26880
  return found;
26869
26881
  }, "elements");
26870
26882
 
26871
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/attachments/sheets.js
26883
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/attachments/sheets.js
26872
26884
  var columnName = /* @__PURE__ */ __name((column) => {
26873
26885
  let name = "";
26874
26886
  for (let rest = column; rest > 0; rest = Math.floor((rest - 1) / 26))
@@ -26923,7 +26935,7 @@ var sheetText = /* @__PURE__ */ __name((sheets2, maxChars = MAX_TEXT_CHARS) => {
26923
26935
  return { text: parts.join("").trim(), truncated: false };
26924
26936
  }, "sheetText");
26925
26937
 
26926
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/attachments/documents.js
26938
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/attachments/documents.js
26927
26939
  var OFFICE = "urn:oasis:names:tc:opendocument:xmlns:office:1.0";
26928
26940
  var TEXT = "urn:oasis:names:tc:opendocument:xmlns:text:1.0";
26929
26941
  var TABLE = "urn:oasis:names:tc:opendocument:xmlns:table:1.0";
@@ -27323,10 +27335,10 @@ var readDocument = /* @__PURE__ */ __name(async (bytes2, kind, signal) => {
27323
27335
  }
27324
27336
  }, "readDocument");
27325
27337
 
27326
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/attachments/extract.js
27338
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/attachments/extract.js
27327
27339
  import { extname as extname3 } from "node:path";
27328
27340
 
27329
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/readers/engine.js
27341
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/readers/engine.js
27330
27342
  import { readFileSync as readFileSync2 } from "node:fs";
27331
27343
  import { dirname as dirname4, extname as extname2, join as join10 } from "node:path";
27332
27344
  import { fileURLToPath } from "node:url";
@@ -27387,7 +27399,7 @@ var derived = /* @__PURE__ */ __name((bytes2, extractor, read) => {
27387
27399
  }
27388
27400
  }, "derived");
27389
27401
 
27390
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/readers/image/index.js
27402
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/readers/image/index.js
27391
27403
  var IMAGES = /* @__PURE__ */ new Set([".jpg", ".jpeg", ".png", ".webp", ".gif", ".heic", ".tif", ".tiff", ".bmp"]);
27392
27404
  var image2 = {
27393
27405
  id: "image",
@@ -27396,7 +27408,7 @@ var image2 = {
27396
27408
  read: /* @__PURE__ */ __name(async () => ({ status: "needs-agent" }), "read")
27397
27409
  };
27398
27410
 
27399
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/readers/doc/index.js
27411
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/readers/doc/index.js
27400
27412
  var OLE = "\xD0\xCF\xE0\xA1\xB1\xE1";
27401
27413
  var doc = {
27402
27414
  id: "doc",
@@ -27408,7 +27420,7 @@ var doc = {
27408
27420
  }), "read")
27409
27421
  };
27410
27422
 
27411
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/readers/docx/index.js
27423
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/readers/docx/index.js
27412
27424
  var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
27413
27425
  var docx = {
27414
27426
  id: "docx",
@@ -27421,7 +27433,7 @@ var docx = {
27421
27433
  }), "read")
27422
27434
  };
27423
27435
 
27424
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/attachments/markup.js
27436
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/attachments/markup.js
27425
27437
  var import_iconv_lite2 = __toESM(require_lib3(), 1);
27426
27438
  var RTF_SKIPPED = /* @__PURE__ */ new Set([
27427
27439
  "fonttbl",
@@ -27597,7 +27609,7 @@ var htmlText = /* @__PURE__ */ __name((source) => {
27597
27609
  }, "htmlText");
27598
27610
  var safeChar = /* @__PURE__ */ __name((code, fallback) => code > 0 && code <= 1114111 ? String.fromCodePoint(code) : fallback, "safeChar");
27599
27611
 
27600
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/readers/html/page.js
27612
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/readers/html/page.js
27601
27613
  var clean = /* @__PURE__ */ __name((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim() : "", "clean");
27602
27614
  var namesIn = /* @__PURE__ */ __name((value) => [value].flat().map((entry) => typeof entry === "string" ? clean(entry) : clean(entry?.name)).filter(Boolean).join(", "), "namesIn");
27603
27615
  var jsonLdNodes = /* @__PURE__ */ __name((document) => {
@@ -27653,7 +27665,7 @@ var markdownSections = /* @__PURE__ */ __name((text2) => {
27653
27665
  return found.map((section, index) => ({ ...section, end: found[index + 1]?.start ?? text2.length }));
27654
27666
  }, "markdownSections");
27655
27667
 
27656
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/readers/html/index.js
27668
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/readers/html/index.js
27657
27669
  var HTML = /* @__PURE__ */ new Set([".html", ".htm", ".xhtml"]);
27658
27670
  var first = /* @__PURE__ */ __name((...values) => values.find((value) => typeof value === "string" && value !== ""), "first");
27659
27671
  var loaded = /* @__PURE__ */ __name(async (load, name) => {
@@ -27724,7 +27736,7 @@ var html = {
27724
27736
  }, "read")
27725
27737
  };
27726
27738
 
27727
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/readers/office/index.js
27739
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/readers/office/index.js
27728
27740
  var office = {
27729
27741
  id: "office",
27730
27742
  version: documentExtractor("odt"),
@@ -27735,7 +27747,7 @@ var office = {
27735
27747
  }, "read")
27736
27748
  };
27737
27749
 
27738
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/readers/pdf/index.js
27750
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/readers/pdf/index.js
27739
27751
  var pdf = {
27740
27752
  id: "pdf",
27741
27753
  version: "unpdf",
@@ -27802,7 +27814,7 @@ var pdf = {
27802
27814
  }), "read")
27803
27815
  };
27804
27816
 
27805
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/readers/plain/index.js
27817
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/readers/plain/index.js
27806
27818
  var PLAIN = /* @__PURE__ */ new Set([".txt", ".md", ".markdown", ".csv", ".tsv", ".json", ".log"]);
27807
27819
  var isPlain = /* @__PURE__ */ __name((hint) => PLAIN.has(extensionOf(hint)) || hint.mime?.startsWith("text/") || hint.mime === "application/json", "isPlain");
27808
27820
  var readPlain = /* @__PURE__ */ __name((bytes2) => {
@@ -27822,7 +27834,7 @@ var plain = {
27822
27834
  read: /* @__PURE__ */ __name(async (bytes2) => readPlain(bytes2), "read")
27823
27835
  };
27824
27836
 
27825
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/readers/rtf/index.js
27837
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/readers/rtf/index.js
27826
27838
  var rtf = {
27827
27839
  id: "rtf",
27828
27840
  version: "v1",
@@ -27830,10 +27842,10 @@ var rtf = {
27830
27842
  read: /* @__PURE__ */ __name(async (bytes2) => derived(bytes2, "rtf:v1", rtfText), "read")
27831
27843
  };
27832
27844
 
27833
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
27845
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
27834
27846
  import { basename as basename5 } from "node:path";
27835
27847
 
27836
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/attachments/csv-spans.js
27848
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/attachments/csv-spans.js
27837
27849
  var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) => {
27838
27850
  const cells = [];
27839
27851
  let row = 1, column = 1, start = 0, quoted = false, truncated = false;
@@ -27871,7 +27883,7 @@ var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) =
27871
27883
  return { cells, truncated };
27872
27884
  }, "delimitedSpans");
27873
27885
 
27874
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
27886
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
27875
27887
  var DELIMITED = {
27876
27888
  ".csv": ",",
27877
27889
  ".tsv": " ",
@@ -27910,7 +27922,7 @@ var sheets = {
27910
27922
  }, "read")
27911
27923
  };
27912
27924
 
27913
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/readers/registry.js
27925
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/readers/registry.js
27914
27926
  var BUILT_INS2 = [office, pdf, docx, doc, rtf, html, sheets, plain, image2];
27915
27927
  var HEAD_BYTES = 1024;
27916
27928
  var readers = [...BUILT_INS2];
@@ -27920,7 +27932,7 @@ var readWithRegistry = /* @__PURE__ */ __name(async (bytes2, hint, context2) =>
27920
27932
  return reader ? reader.read(bytes2, hint, context2) : { status: "unsupported" };
27921
27933
  }, "readWithRegistry");
27922
27934
 
27923
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/attachments/extract.js
27935
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/attachments/extract.js
27924
27936
  var importEngine = /* @__PURE__ */ __name((name) => importFrom(new URL("attachments/extract.js", import.meta.resolve("@wirecat/cli-core")).href, name), "importEngine");
27925
27937
  var extensionOf2 = /* @__PURE__ */ __name(({ name, path }) => extname3(name ?? path).toLowerCase(), "extensionOf");
27926
27938
  var extractText = /* @__PURE__ */ __name(async (bytes2, hint, load, signal, env = process.env) => {
@@ -28999,7 +29011,7 @@ function imageSize(input) {
28999
29011
  }
29000
29012
  __name(imageSize, "imageSize");
29001
29013
 
29002
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/attachments/ocr.js
29014
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/attachments/ocr.js
29003
29015
  var MAX_PAGES = 20;
29004
29016
  var MAX_PIXELS = 2e7;
29005
29017
  var cancelled2 = /* @__PURE__ */ __name((signal) => {
@@ -29150,7 +29162,7 @@ var ocrPdf = /* @__PURE__ */ __name(async (bytes2, pipeline2, load, signal) => {
29150
29162
  }
29151
29163
  }, "ocrPdf");
29152
29164
 
29153
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/attachments/pdf-preview.js
29165
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/attachments/pdf-preview.js
29154
29166
  var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = importEngine, env = process.env) => {
29155
29167
  const limits = pdfPreviewLimits(env);
29156
29168
  const cancelled4 = /* @__PURE__ */ __name(() => {
@@ -29227,7 +29239,7 @@ var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = impo
29227
29239
  }
29228
29240
  }, "pdfPreview");
29229
29241
 
29230
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/attachments/transfer.js
29242
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/attachments/transfer.js
29231
29243
  import { createHash as createHash8 } from "node:crypto";
29232
29244
  import { constants } from "node:fs";
29233
29245
  import { lstat as lstat3, open as open5 } from "node:fs/promises";
@@ -29335,7 +29347,7 @@ var transferMime = /* @__PURE__ */ __name((head, hint, name = null) => {
29335
29347
  return hint !== null && /^[a-z0-9.+-]+\/[a-z0-9.+-]+$/i.test(hint) ? hint : "application/octet-stream";
29336
29348
  }, "transferMime");
29337
29349
 
29338
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/attachments.js
29350
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/attachments.js
29339
29351
  var ATTACHMENT_QUERY = {
29340
29352
  entity: "attachment",
29341
29353
  backend: "sql",
@@ -29716,7 +29728,7 @@ var attachmentsService = /* @__PURE__ */ __name((deps) => ({
29716
29728
  }, "setText")
29717
29729
  }), "attachmentsService");
29718
29730
 
29719
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/chat-documents.js
29731
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/chat-documents.js
29720
29732
  var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
29721
29733
  list: /* @__PURE__ */ __name(async (chat, { limit, offset, ref }) => {
29722
29734
  const store = await accountStore(deps);
@@ -29746,7 +29758,7 @@ var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
29746
29758
  }, "list")
29747
29759
  }), "chatDocumentsService");
29748
29760
 
29749
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/retention.js
29761
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/retention.js
29750
29762
  var observationDuration = /* @__PURE__ */ __name((text2, flag) => {
29751
29763
  const match = /^(\d+(?:\.\d+)?)([smhdw])$/.exec(text2);
29752
29764
  const units2 = { s: 1e3, m: 6e4, h: 36e5, d: 864e5, w: 6048e5 };
@@ -29833,7 +29845,7 @@ var isRetentionSelection = /* @__PURE__ */ __name((selection) => {
29833
29845
  }
29834
29846
  }, "isRetentionSelection");
29835
29847
 
29836
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/counters.js
29848
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/counters.js
29837
29849
  var counterFields = /* @__PURE__ */ __name((text2 = "views,reactions,comments") => {
29838
29850
  const fields = text2.split(",").map((one) => one.trim());
29839
29851
  if (!fields.length || fields.some((one) => !COUNTER_FIELDS.includes(one)) || new Set(fields).size !== fields.length)
@@ -30040,7 +30052,7 @@ var countersService = /* @__PURE__ */ __name((deps) => {
30040
30052
  };
30041
30053
  }, "countersService");
30042
30054
 
30043
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/search-refresh.js
30055
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/search-refresh.js
30044
30056
  var SYNC_KEY = "messages.sync-first";
30045
30057
  var SYNC_BOUNDS = { maxChats: 5, timeMs: 3e4, maxMessages: 500 };
30046
30058
  var keyOf2 = /* @__PURE__ */ __name((chat) => JSON.stringify([chat.account.provider, chat.account.account, chat.chatId]), "keyOf");
@@ -30172,7 +30184,7 @@ var withRefresh = /* @__PURE__ */ __name((found, refreshed) => ({
30172
30184
  ...!refreshed || refreshed.complete ? {} : { coverage: { ...found.coverage, state: "stale" } }
30173
30185
  }), "withRefresh");
30174
30186
 
30175
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/embeddings-search.js
30187
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/embeddings-search.js
30176
30188
  var CANDIDATES = 50;
30177
30189
  var WORD_HITS = 200;
30178
30190
  var RRF_K = 60;
@@ -30447,13 +30459,13 @@ var meanOf = /* @__PURE__ */ __name((vectors) => {
30447
30459
  return mean.map((value) => value / length);
30448
30460
  }, "meanOf");
30449
30461
 
30450
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/embeddings.js
30462
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/embeddings.js
30451
30463
  var embeddingsService = /* @__PURE__ */ __name((deps) => ({
30452
30464
  ...embeddingsMaintenance(deps),
30453
30465
  ...embeddingsSearch(deps)
30454
30466
  }), "embeddingsService");
30455
30467
 
30456
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/folders.js
30468
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/folders.js
30457
30469
  var foldersService = /* @__PURE__ */ __name((deps) => {
30458
30470
  const online = /* @__PURE__ */ __name(async (command) => {
30459
30471
  if (deps.offline)
@@ -30594,7 +30606,7 @@ var foldersService = /* @__PURE__ */ __name((deps) => {
30594
30606
  };
30595
30607
  }, "foldersService");
30596
30608
 
30597
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/mentions.js
30609
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/mentions.js
30598
30610
  var REVIEW_COUNT = 500;
30599
30611
  var mentionsService = /* @__PURE__ */ __name((deps) => {
30600
30612
  const located = /* @__PURE__ */ __name(async () => {
@@ -30673,7 +30685,7 @@ var mentionsService = /* @__PURE__ */ __name((deps) => {
30673
30685
  };
30674
30686
  }, "mentionsService");
30675
30687
 
30676
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/domain/message-link.js
30688
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/domain/message-link.js
30677
30689
  var messageLinkTarget = /* @__PURE__ */ __name((reference, message, provider) => {
30678
30690
  if (isLocator(reference)) {
30679
30691
  if (message !== void 0)
@@ -30720,7 +30732,7 @@ var validatePermalink = /* @__PURE__ */ __name((link4) => {
30720
30732
  return { url: link4.url, access: link4.access, reason: link4.reason };
30721
30733
  }, "validatePermalink");
30722
30734
 
30723
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/domain/pin-duration.js
30735
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/domain/pin-duration.js
30724
30736
  var spokenSeconds = /* @__PURE__ */ __name((seconds) => {
30725
30737
  if (seconds % 86400 === 0 && seconds > 86400)
30726
30738
  return `${seconds / 86400}d`;
@@ -30752,7 +30764,7 @@ var pinDurationOf = /* @__PURE__ */ __name((value, allowed, flag = "--expire-tim
30752
30764
  return seconds;
30753
30765
  }, "pinDurationOf");
30754
30766
 
30755
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/sends/send-as.js
30767
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/sends/send-as.js
30756
30768
  var sendAsCheck = /* @__PURE__ */ __name((connection, sendAs) => {
30757
30769
  if (sendAs === void 0) {
30758
30770
  const saved = connection.savedSender?.bind(connection);
@@ -30777,7 +30789,7 @@ var typedSendAs = /* @__PURE__ */ __name((typed) => {
30777
30789
  return sendAs;
30778
30790
  }, "typedSendAs");
30779
30791
 
30780
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/search/total.js
30792
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/search/total.js
30781
30793
  var TOTAL_CAP = 1e4;
30782
30794
  var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
30783
30795
  const least = shown + (hasMore ? 1 : 0);
@@ -30788,7 +30800,7 @@ var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
30788
30800
  return { value: count4, relation: exact ? "eq" : "gte" };
30789
30801
  }, "totalOf");
30790
30802
 
30791
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/search/lucene/meaning-parts.js
30803
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/search/lucene/meaning-parts.js
30792
30804
  var WORD_FIELDS = /* @__PURE__ */ new Set(["text", "exact"]);
30793
30805
  var fieldsOfQuery = /* @__PURE__ */ __name((root, everything) => {
30794
30806
  let narrows = false;
@@ -30817,7 +30829,7 @@ var meaningWords = /* @__PURE__ */ __name((root) => {
30817
30829
  return wanted(root).join(" ").trim();
30818
30830
  }, "meaningWords");
30819
30831
 
30820
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/search/question-plan.js
30832
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/search/question-plan.js
30821
30833
  var words = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}]+/gu) ?? [], "words");
30822
30834
  var scaffolding = new Set(words("what which how many much who where when is are was were do does did can could should we the a an for of to under from in on at has have \u0441\u043A\u043E\u043B\u044C\u043A\u043E \u043A\u0430\u043A\u043E\u0439 \u043A\u0430\u043A\u0430\u044F \u043A\u0430\u043A\u0438\u0435 \u043A\u0430\u043A\u043E\u0435 \u043A\u0442\u043E \u043A\u043E\u043C\u0443 \u043A\u0435\u043C \u0433\u0434\u0435 \u043A\u043E\u0433\u0434\u0430 \u043A\u0430\u043A \u0447\u0442\u043E \u0432\u043E \u043F\u043E \u043D\u0430 \u0432 \u043A \u0441 \u0443 \u0447\u0435\u0440\u0435\u0437 \u043B\u0438 \u0434\u043E\u043B\u0436\u0435\u043D \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0443\u0436\u043D\u043E \u0438\u0434\u0451\u0442 \u0438\u0434\u0435\u0442 \u043C\u043E\u0436\u043D\u043E \u043C\u043E\u0436\u0435\u0442 \u043C\u043E\u0433\u0443\u0442"));
30823
30835
  var questionWord = /\b(?:what|which|how|who|where|when|can|could|should)\b|(?:^|\s)(?:сколько|какой|какая|какие|какое|кто|кому|кем|где|когда|как|что|можно|может|могут|ли)(?:\s|$)/iu;
@@ -30932,7 +30944,7 @@ function planQuestion(text2, strict = false) {
30932
30944
  }
30933
30945
  __name(planQuestion, "planQuestion");
30934
30946
 
30935
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/messages-combined.js
30947
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/messages-combined.js
30936
30948
  var COMBINED_DEFAULTS = { candidateDepth: 300, rrfK: 60, rerank: "all", chatCap: 0 };
30937
30949
  var tokensOf = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}\p{Co}\p{M}]+/gu) ?? [], "tokensOf");
30938
30950
  var searchCombined = /* @__PURE__ */ __name(async (store, account, request, messenger = {}, options = COMBINED_DEFAULTS) => {
@@ -31125,7 +31137,7 @@ var signals = /* @__PURE__ */ __name((hit, terms, corrections, execution, mode,
31125
31137
  return mode === "coverage" ? coverage * 4 : mode === "proximity" ? proximity : mode === "phrase" ? phrase : coverage * 4 + proximity + phrase;
31126
31138
  }, "signals");
31127
31139
 
31128
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/messages-discovery.js
31140
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/messages-discovery.js
31129
31141
  var MEANING_DEPTH = 100;
31130
31142
  var RRF_K2 = 60;
31131
31143
  var RERANK_DEPTH = 50;
@@ -31453,7 +31465,7 @@ var mixedWithReranker = /* @__PURE__ */ __name((head, scores) => {
31453
31465
  })).sort((a, b) => b.mixed - a.mixed).map(({ hit }) => hit);
31454
31466
  }, "mixedWithReranker");
31455
31467
 
31456
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/thread-context.js
31468
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/thread-context.js
31457
31469
  var THREAD_BOUNDS = { maxHops: 8, maxMessages: 50, maxBytes: 65536, withinMs: 864e5 };
31458
31470
  var bytes = /* @__PURE__ */ __name((items, links) => Buffer.byteLength(JSON.stringify({ items, links }), "utf8"), "bytes");
31459
31471
  var threadBounds = /* @__PURE__ */ __name((options = {}) => {
@@ -31652,7 +31664,7 @@ var readThreadContext = /* @__PURE__ */ __name(async (store, account, chat, mess
31652
31664
  return result;
31653
31665
  }, "readThreadContext");
31654
31666
 
31655
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/messages-archive-search.js
31667
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/messages-archive-search.js
31656
31668
  var SEARCH_FILL_MS = 200;
31657
31669
  var statsStore = /* @__PURE__ */ __name(async (store, account, request, messenger = {}) => {
31658
31670
  const stop = Date.now() + SEARCH_FILL_MS;
@@ -31719,12 +31731,12 @@ var accountOf2 = /* @__PURE__ */ __name((hit) => {
31719
31731
  }, "accountOf");
31720
31732
  var keyOf3 = /* @__PURE__ */ __name(({ provider, account }) => `${provider}/${account}`, "keyOf");
31721
31733
 
31722
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/pictures.js
31734
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/pictures.js
31723
31735
  import { createHash as createHash10 } from "node:crypto";
31724
31736
  import { readFile as readFile2, stat as stat3 } from "node:fs/promises";
31725
31737
  import { setTimeout as sleep4 } from "node:timers/promises";
31726
31738
 
31727
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/domain/models.js
31739
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/domain/models.js
31728
31740
  var GROUP_SETTINGS = [
31729
31741
  "allCanPin",
31730
31742
  "onlyAdminsAdd",
@@ -31738,10 +31750,10 @@ var ADMIN_RIGHTS = ["read", "members", "admins", "info", "pin", "link", "post",
31738
31750
  var senderIsMe = /* @__PURE__ */ __name((message, account) => message.outgoing === true || message.senderId !== null && String(message.senderId) === account, "senderIsMe");
31739
31751
  var MEDIA_KINDS = ["photo", "video", "file", "audio", "link"];
31740
31752
 
31741
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/file-download.js
31753
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/file-download.js
31742
31754
  import { createWriteStream, mkdirSync } from "node:fs";
31743
31755
  import { link as link3, rm } from "node:fs/promises";
31744
- import { basename as basename6, join as join11, resolve as resolve6 } from "node:path";
31756
+ import { join as join11, resolve as resolve6 } from "node:path";
31745
31757
  import { Readable, Transform } from "node:stream";
31746
31758
  import { pipeline } from "node:stream/promises";
31747
31759
  var refreshedFiles = /* @__PURE__ */ __name((files) => files.flatMap(({ kind, name, position, providerRef }) => providerRef === void 0 || Object.keys(providerRef).length === 0 ? [] : [
@@ -31815,17 +31827,8 @@ var EXTENSIONS = {
31815
31827
  "application/pdf": "pdf"
31816
31828
  };
31817
31829
  var BY_KIND = { photo: "jpg" };
31818
- var safeName2 = /* @__PURE__ */ __name((name, platform = process.platform) => {
31819
- let plain2 = name === void 0 ? "" : basename6(name.replaceAll("\\", "/")).replace(/[\p{Cc}​-‏‪-‮⁦-⁩]/gu, "").replace(/^\.+/, "");
31820
- if (platform === "win32") {
31821
- plain2 = plain2.replace(/[<>:"|?*]/g, "_").replace(/[. ]+$/, "");
31822
- if (/^(con|prn|aux|nul|com[1-9]|lpt[1-9])(?:\.|$)/i.test(plain2))
31823
- return void 0;
31824
- }
31825
- return plain2 === "" ? void 0 : plain2;
31826
- }, "safeName");
31827
31830
  var save = /* @__PURE__ */ __name(async (file2, directory2, fallbackName, { unique = false } = {}) => {
31828
- const own = safeName2(file2.name);
31831
+ const own = safeName(file2.name);
31829
31832
  const fileName = /* @__PURE__ */ __name(() => {
31830
31833
  const extension = EXTENSIONS[file2.mime ?? ""] ?? BY_KIND[file2.kind];
31831
31834
  return own ?? (extension ? `${fallbackName}.${extension}` : fallbackName);
@@ -31861,7 +31864,7 @@ var save = /* @__PURE__ */ __name(async (file2, directory2, fallbackName, { uniq
31861
31864
  }
31862
31865
  }, "save");
31863
31866
 
31864
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/pictures.js
31867
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/pictures.js
31865
31868
  var PICTURE_MAX_BYTES = 25 * 1024 * 1024;
31866
31869
  var PICTURE_FLOOR = 0.25;
31867
31870
  var PAGE5 = 50;
@@ -31878,7 +31881,7 @@ var picturesService = /* @__PURE__ */ __name((deps) => {
31878
31881
  const directory2 = imageModelsDirectory(deps.env);
31879
31882
  if (!isImageModelInstalled(model2, directory2))
31880
31883
  throw new CliError("not_found", missingModel(model2.id), { reason: "model.not-downloaded", model: model2.id });
31881
- const { openPictureEmbedder } = await import("./embedder-EMVDEZFR.js");
31884
+ const { openPictureEmbedder } = await import("./embedder-63Z7ZBYG.js");
31882
31885
  return openPictureEmbedder(model2, directory2);
31883
31886
  }, "open");
31884
31887
  const embedder = /* @__PURE__ */ __name(() => {
@@ -32075,7 +32078,7 @@ var withPictures = /* @__PURE__ */ __name((messages, pictures) => ({
32075
32078
  }, "search")
32076
32079
  }), "withPictures");
32077
32080
 
32078
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/messages-meaning.js
32081
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/messages-meaning.js
32079
32082
  var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, shared, within) => {
32080
32083
  const target2 = embeddingTarget(deps, DEFAULT_TEXT_MODEL);
32081
32084
  const skipped = /* @__PURE__ */ __name((reason, step) => ({
@@ -32124,7 +32127,7 @@ var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, sh
32124
32127
  }
32125
32128
  }, "meaningLane");
32126
32129
 
32127
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/messages-rerank.js
32130
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/messages-rerank.js
32128
32131
  var rerankLane = /* @__PURE__ */ __name((deps) => {
32129
32132
  const choice = deps.reranker ?? DEFAULT_RERANK_MODEL;
32130
32133
  if (choice === "off")
@@ -32136,9 +32139,9 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
32136
32139
  return { skipped: { reason: `${model.id} is not downloaded`, step: "models.download", model: model.id } };
32137
32140
  try {
32138
32141
  const warm = deps.embedders;
32139
- const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-CASPZ2DH.js")).openRerankerProcess(model, directory2, {
32142
+ const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-CGLNXFIU.js")).openRerankerProcess(model, directory2, {
32140
32143
  threads: defaultThreads()
32141
- })) : await (await import("./rerank-7F6NLBCW.js")).openReranker(model, directory2);
32144
+ })) : await (await import("./rerank-23GXWT2V.js")).openReranker(model, directory2);
32142
32145
  return {
32143
32146
  model: model.id,
32144
32147
  score: /* @__PURE__ */ __name((question, passages) => reranker.score(plainWords(question), passages), "score"),
@@ -32158,17 +32161,17 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
32158
32161
  };
32159
32162
  }, "rerankLane");
32160
32163
 
32161
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/document-pictures.js
32164
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/document-pictures.js
32162
32165
  var openPictureEmbedderFor = /* @__PURE__ */ __name(async ({ env, command } = {}) => {
32163
32166
  const model = imageModel(DEFAULT_IMAGE_MODEL);
32164
32167
  const directory2 = imageModelsDirectory(env);
32165
32168
  if (!isImageModelInstalled(model, directory2))
32166
32169
  throw new CliError("not_found", `the picture model is not downloaded \u2014 ${command === void 0 ? "install it with a WireCat CLI that has `images models download` (tg, max or wa); they share the model folder" : `\`${command} images models download ${model.id}\` fetches it`}`, { reason: "model.not-downloaded", model: model.id });
32167
- const { openPictureEmbedder } = await import("./embedder-EMVDEZFR.js");
32170
+ const { openPictureEmbedder } = await import("./embedder-63Z7ZBYG.js");
32168
32171
  return openPictureEmbedder(model, directory2);
32169
32172
  }, "openPictureEmbedderFor");
32170
32173
 
32171
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/document-source.js
32174
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/document-source.js
32172
32175
  var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file2) => {
32173
32176
  const metadata = note.frontMatter;
32174
32177
  const account = accounts.find(({ id: id2 }) => String(id2) === note.folderId);
@@ -32183,7 +32186,7 @@ var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file2) =>
32183
32186
  };
32184
32187
  }, "documentSource");
32185
32188
 
32186
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/notes-title-tier.js
32189
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/notes-title-tier.js
32187
32190
  var plainQueryWords = /* @__PURE__ */ __name((query) => {
32188
32191
  let root;
32189
32192
  try {
@@ -32210,7 +32213,7 @@ var titleTiers = /* @__PURE__ */ __name((hits, words2) => {
32210
32213
  return [...hits].sort((a, b) => rank(a) - rank(b));
32211
32214
  }, "titleTiers");
32212
32215
 
32213
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/notes-search.js
32216
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/notes-search.js
32214
32217
  var storeQuery = /* @__PURE__ */ __name(async (store, text2, { exact, timezone } = {}) => resolvedQuery(store, parsedQuery(text2, exact), timezone), "storeQuery");
32215
32218
  var parsedQuery = /* @__PURE__ */ __name((text2, exact) => validateFields(parseLucene(text2, { ...SEARCH_QUERY, defaultField: exact ? "exact" : "text" })).root, "parsedQuery");
32216
32219
  var resolvedQuery = /* @__PURE__ */ __name(async (store, root, timezone) => {
@@ -32620,7 +32623,7 @@ var searchNotesOf = /* @__PURE__ */ __name(async (store, account, text2, { accou
32620
32623
  };
32621
32624
  }, "searchNotesOf");
32622
32625
 
32623
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/events-search.js
32626
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/events-search.js
32624
32627
  var MAX_EVENTS_OFFSET = 1e3;
32625
32628
  var iso3 = /* @__PURE__ */ __name((at) => at === null ? null : new Date(at).toISOString(), "iso");
32626
32629
  var accountIdsOf = /* @__PURE__ */ __name(async (store, accounts) => {
@@ -32732,7 +32735,7 @@ var searchEvents = /* @__PURE__ */ __name(async (store, query, { limit = 20, off
32732
32735
  };
32733
32736
  }, "searchEvents");
32734
32737
 
32735
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/search-all.js
32738
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/search-all.js
32736
32739
  var RESOURCES_SEARCHED = ["messages", "mail", "notes", "events"];
32737
32740
  var skippable = /* @__PURE__ */ __name((error) => error instanceof CliError && (error.code === "validation_error" || error.code === "not_found"), "skippable");
32738
32741
  var filtersBeside = /* @__PURE__ */ __name((text2) => {
@@ -32940,7 +32943,7 @@ var searchAll = /* @__PURE__ */ __name(async (store, account, request, messenger
32940
32943
  };
32941
32944
  }, "searchAll");
32942
32945
 
32943
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/search-all-meetings.js
32946
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/search-all-meetings.js
32944
32947
  var RESOURCES_SEARCHED_WITH_MEETINGS = [...RESOURCES_SEARCHED, "meetings"];
32945
32948
  var whole3 = /* @__PURE__ */ __name((value, minimum, maximum, label) => {
32946
32949
  if (!Number.isSafeInteger(value) || value < minimum || value > maximum)
@@ -33187,7 +33190,7 @@ var searchAllOfSource = /* @__PURE__ */ __name(async (store, account, source, re
33187
33190
  return { ...found, skipped: [...skipped, ...empty2, ...unnamed, ...found.skipped] };
33188
33191
  }, "searchAllOfSource");
33189
33192
 
33190
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/server-search.js
33193
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/server-search.js
33191
33194
  var SERVER_SEARCH_KEY = "messages.server-search";
33192
33195
  var SERVER_BOUNDS = { timeMs: 5e3, perCall: 100, maxCalls: 3 };
33193
33196
  var DEFAULT_BACKEND = "both";
@@ -33376,7 +33379,7 @@ var searchServer = /* @__PURE__ */ __name(async (deps, request) => {
33376
33379
  return { report, sources };
33377
33380
  }, "searchServer");
33378
33381
 
33379
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/messages.js
33382
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/messages.js
33380
33383
  var DELETE_AT_ONCE = 10;
33381
33384
  var messagesService = /* @__PURE__ */ __name((deps) => {
33382
33385
  const { guard } = deps;
@@ -33802,7 +33805,7 @@ var checkMediaOptions = /* @__PURE__ */ __name((messenger, asked, attachments) =
33802
33805
  throw new CliError("validation_error", `${MEDIA_FLAGS[first2]} needs a --photo or --file`);
33803
33806
  }, "checkMediaOptions");
33804
33807
 
33805
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/domain/channel-tags.js
33808
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/domain/channel-tags.js
33806
33809
  var CHANNEL_TAG_RULES_VERSION = "keywords-v1";
33807
33810
  var RULES = {
33808
33811
  ai: [/\b(ai|gpt|llm|machine learning|artificial intelligence)\b/iu, /нейросет|искусственн/iu],
@@ -33817,7 +33820,7 @@ var classifyChannel = /* @__PURE__ */ __name((metadata) => Object.entries(RULES)
33817
33820
  return fields.length ? [{ tag, score: fields.length / 3, fields }] : [];
33818
33821
  }), "classifyChannel");
33819
33822
 
33820
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/metadata.js
33823
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/metadata.js
33821
33824
  var metadataService = /* @__PURE__ */ __name((deps) => {
33822
33825
  const held = /* @__PURE__ */ __name(async (reference, { includeLeft = false } = {}) => {
33823
33826
  const store = await deps.store();
@@ -33903,7 +33906,7 @@ var metadataService = /* @__PURE__ */ __name((deps) => {
33903
33906
  };
33904
33907
  }, "metadataService");
33905
33908
 
33906
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/moderation/run.js
33909
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/moderation/run.js
33907
33910
  var FIRST_LOOK_MS = 24 * 36e5;
33908
33911
  var moderateWith = /* @__PURE__ */ __name(async (run) => {
33909
33912
  const { chatId, title, rules, point, since, dryRun } = run;
@@ -33940,7 +33943,7 @@ var moderateWith = /* @__PURE__ */ __name(async (run) => {
33940
33943
  return { chatId, rows, notes };
33941
33944
  }, "moderateWith");
33942
33945
 
33943
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/moderation.js
33946
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/moderation.js
33944
33947
  var moderationService = /* @__PURE__ */ __name((deps) => {
33945
33948
  const file2 = /* @__PURE__ */ __name(() => new ModerationRules(moderationPathFor(deps.messenger.app, deps.profile ?? "default", deps.env ?? process.env)), "file");
33946
33949
  const group = /* @__PURE__ */ __name(async (chat) => {
@@ -34018,7 +34021,7 @@ var moderatorOf = /* @__PURE__ */ __name((adapter, deps) => ({
34018
34021
  }, "removePerson")
34019
34022
  }), "moderatorOf");
34020
34023
 
34021
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/private-people.js
34024
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/private-people.js
34022
34025
  var noteItem = /* @__PURE__ */ __name((provider, note) => ({
34023
34026
  id: note.id,
34024
34027
  contact: formatReference({ type: "contact", provider, id: note.personId }),
@@ -34062,7 +34065,7 @@ var privatePeopleService = /* @__PURE__ */ __name((deps) => {
34062
34065
  };
34063
34066
  }, "privatePeopleService");
34064
34067
 
34065
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/rankings.js
34068
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/rankings.js
34066
34069
  var empty = /* @__PURE__ */ __name(() => ({
34067
34070
  total: 0,
34068
34071
  population: 0,
@@ -34318,7 +34321,7 @@ var rankingsService = /* @__PURE__ */ __name((deps) => ({
34318
34321
  }, "evidence")
34319
34322
  }), "rankingsService");
34320
34323
 
34321
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/searches.js
34324
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/searches.js
34322
34325
  var savedSearchItem = /* @__PURE__ */ __name((one) => ({
34323
34326
  id: one.id,
34324
34327
  name: one.name,
@@ -34447,7 +34450,7 @@ var searchesService = /* @__PURE__ */ __name((deps) => {
34447
34450
  };
34448
34451
  }, "searchesService");
34449
34452
 
34450
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/tags.js
34453
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/tags.js
34451
34454
  var TAGGING_QUERY = {
34452
34455
  entity: "tagging",
34453
34456
  backend: "sql",
@@ -34531,10 +34534,10 @@ var tagsService = /* @__PURE__ */ __name((deps) => {
34531
34534
  };
34532
34535
  }, "tagsService");
34533
34536
 
34534
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/topics.js
34535
- var actionOf = /* @__PURE__ */ __name(({ title, closed, pinned, hidden }) => {
34537
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/topics.js
34538
+ var actionOf = /* @__PURE__ */ __name(({ title, closed, pinned, hidden, icon }) => {
34536
34539
  const set = [closed, pinned, hidden].filter((one) => one !== void 0).length;
34537
- if (title !== void 0 || set !== 1)
34540
+ if (title !== void 0 || icon !== void 0 || set !== 1)
34538
34541
  return "topic-edit";
34539
34542
  if (closed !== void 0)
34540
34543
  return closed ? "topic-close" : "topic-reopen";
@@ -34546,6 +34549,12 @@ var validTitle = /* @__PURE__ */ __name((title) => {
34546
34549
  if (title.trim() === "" || new TextEncoder().encode(title).byteLength > 128)
34547
34550
  throw new CliError("validation_error", "a topic title needs 1\u2013128 UTF-8 bytes");
34548
34551
  }, "validTitle");
34552
+ var validIcon = /* @__PURE__ */ __name((icon) => {
34553
+ const emoji = icon.trim();
34554
+ if (emoji === "")
34555
+ throw new CliError("validation_error", "which icon? give an emoji from `topics icons list`");
34556
+ return emoji;
34557
+ }, "validIcon");
34549
34558
  var topicsService = /* @__PURE__ */ __name((deps) => {
34550
34559
  const online = /* @__PURE__ */ __name(async () => {
34551
34560
  if (deps.offline)
@@ -34561,6 +34570,11 @@ var topicsService = /* @__PURE__ */ __name((deps) => {
34561
34570
  throw new CliError("validation_error", "which topic? give its id, from `topics list`");
34562
34571
  return capability(await deps.connection(), "topic", "show a forum topic")(chat, id2);
34563
34572
  }, "show"),
34573
+ icons: /* @__PURE__ */ __name(async () => {
34574
+ if (deps.offline)
34575
+ throw new CliError("validation_error", "`topics icons list` asks the messenger; not with --offline");
34576
+ return capability(await deps.connection(), "topicIcons", "list topic icons")();
34577
+ }, "icons"),
34564
34578
  enable: /* @__PURE__ */ __name(async (chat, { upgrade }) => {
34565
34579
  const connection = await online();
34566
34580
  const probe = capability(connection, "forumState", "configure forum topics");
@@ -34637,8 +34651,9 @@ var topicsService = /* @__PURE__ */ __name((deps) => {
34637
34651
  forum: true
34638
34652
  };
34639
34653
  }, "enable"),
34640
- create: /* @__PURE__ */ __name(async (chat, title, { sendId }) => {
34654
+ create: /* @__PURE__ */ __name(async (chat, title, { sendId, icon: typedIcon }) => {
34641
34655
  validTitle(title);
34656
+ const icon = typedIcon === void 0 ? void 0 : validIcon(typedIcon);
34642
34657
  const connection = await online();
34643
34658
  const create = capability(connection, "createTopic", "create forum topics");
34644
34659
  const probe = capability(connection, "forumState", "read forum settings");
@@ -34653,7 +34668,7 @@ var topicsService = /* @__PURE__ */ __name((deps) => {
34653
34668
  action: "topic-create",
34654
34669
  key: "topics.create",
34655
34670
  length: title.length
34656
- }, () => create(target2, title, { sendId: id2 }), (done2) => ({ threadId: done2.id, resultChatId: target2 }), async () => {
34671
+ }, () => create(target2, title, { sendId: id2, ...icon === void 0 ? {} : { icon } }), (done2) => ({ threadId: done2.id, resultChatId: target2 }), async () => {
34657
34672
  const state = await probe(chatId);
34658
34673
  if (!state.forum)
34659
34674
  throw new CliError("validation_error", "enable topics first with `topics enable`; creating a topic never upgrades a group");
@@ -34667,8 +34682,9 @@ var topicsService = /* @__PURE__ */ __name((deps) => {
34667
34682
  }, "create"),
34668
34683
  edit: /* @__PURE__ */ __name(async (chat, typedTopic, change) => {
34669
34684
  const { title, closed, pinned, hidden } = change;
34670
- if (title === void 0 && closed === void 0 && pinned === void 0 && hidden === void 0)
34671
- throw new CliError("validation_error", "nothing to change \u2014 rename, close, reopen, pin, unpin or hide it");
34685
+ const icon = change.icon == null ? change.icon : validIcon(change.icon);
34686
+ if ([title, closed, pinned, hidden, icon].every((one) => one === void 0))
34687
+ throw new CliError("validation_error", "nothing to change \u2014 rename, close, reopen, pin, unpin, hide or give an icon");
34672
34688
  if (title !== void 0)
34673
34689
  validTitle(title);
34674
34690
  const topicId = typedTopic.trim();
@@ -34683,7 +34699,8 @@ var topicsService = /* @__PURE__ */ __name((deps) => {
34683
34699
  ...title === void 0 ? {} : { title },
34684
34700
  ...closed === void 0 ? {} : { closed },
34685
34701
  ...pinned === void 0 ? {} : { pinned },
34686
- ...hidden === void 0 ? {} : { hidden }
34702
+ ...hidden === void 0 ? {} : { hidden },
34703
+ ...icon === void 0 ? {} : { icon }
34687
34704
  }));
34688
34705
  return { operationId, chatId, topic };
34689
34706
  }, "edit"),
@@ -34716,7 +34733,7 @@ var topicsService = /* @__PURE__ */ __name((deps) => {
34716
34733
  };
34717
34734
  }, "topicsService");
34718
34735
 
34719
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/evidence.js
34736
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/evidence.js
34720
34737
  import { createHash as createHash11, randomUUID as randomUUID5 } from "node:crypto";
34721
34738
  var hash2 = /* @__PURE__ */ __name((value) => createHash11("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
34722
34739
  var positive = /* @__PURE__ */ __name((value, name, minimum = 1) => {
@@ -34790,7 +34807,7 @@ var prepareEvidencePacket = /* @__PURE__ */ __name(({ kind, source, page, limits
34790
34807
  return { ...content, id: randomUUID5(), fingerprint: hash2(content) };
34791
34808
  }, "prepareEvidencePacket");
34792
34809
 
34793
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/evidence-read.js
34810
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/evidence-read.js
34794
34811
  var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, limit, before: before2 }, messenger = {}) => {
34795
34812
  if (!Number.isSafeInteger(limit) || limit < 1 || limit > 100)
34796
34813
  throw new CliError("validation_error", "evidence message limit must be an integer from 1 to 100");
@@ -34810,7 +34827,7 @@ var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, l
34810
34827
  return { ...packet, nextBeforeId: older && last ? last.id : null };
34811
34828
  }, "readEvidencePacket");
34812
34829
 
34813
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/meeting-project-discovery.js
34830
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/meeting-project-discovery.js
34814
34831
  var scopeKeys = [
34815
34832
  "accountId",
34816
34833
  "meetingId",
@@ -34832,7 +34849,7 @@ var optionKeys = /* @__PURE__ */ new Set([
34832
34849
  "maxVocabularyReadBytes"
34833
34850
  ]);
34834
34851
 
34835
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/context/communication-selection.js
34852
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/context/communication-selection.js
34836
34853
  var communicationFields = {
34837
34854
  sources: pipe(array(strictObject({
34838
34855
  id: pipe(string(), regex(/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/)),
@@ -34864,7 +34881,7 @@ var communicationRequest = /* @__PURE__ */ __name((value, preparationAfter) => {
34864
34881
  return { ...input, after, before: before2 };
34865
34882
  }, "communicationRequest");
34866
34883
 
34867
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/meeting-preparation-validation.js
34884
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/meeting-preparation-validation.js
34868
34885
  var MEETING_PREPARATION_LIMITS = {
34869
34886
  meetings: { min: 1, max: 20, default: 5 },
34870
34887
  cues: { min: 1, max: 100, default: 10 },
@@ -34937,7 +34954,7 @@ var validateMeetingPreparationRequest = /* @__PURE__ */ __name((externalId, orig
34937
34954
  };
34938
34955
  }, "validateMeetingPreparationRequest");
34939
34956
 
34940
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/meeting-communications-selection.js
34957
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/meeting-communications-selection.js
34941
34958
  var validatePreparationCommunications = /* @__PURE__ */ __name((section, request, after) => {
34942
34959
  const fail2 = /* @__PURE__ */ __name(() => {
34943
34960
  throw new CliError("invalid_response", "Preparation communications returned another selection or invalid evidence");
@@ -34985,7 +35002,7 @@ var validatePreparationCommunications = /* @__PURE__ */ __name((section, request
34985
35002
  }
34986
35003
  }, "validatePreparationCommunications");
34987
35004
 
34988
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/package-upgrade.js
35005
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/package-upgrade.js
34989
35006
  var upgradePackage = /* @__PURE__ */ __name(async ({ current, command, packageName, check: check2 }, ports) => {
34990
35007
  const installer = ports.installer();
34991
35008
  const argv = updateCommand(installer, packageName);
@@ -35050,7 +35067,7 @@ var dayAfter = /* @__PURE__ */ __name((published) => {
35050
35067
  return Number.isNaN(time) ? null : new Date(time + 24 * 60 * 60 * 1e3).toISOString();
35051
35068
  }, "dayAfter");
35052
35069
 
35053
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/services/index.js
35070
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/services/index.js
35054
35071
  var servicesFor = /* @__PURE__ */ __name((deps) => {
35055
35072
  const pictures = picturesService(deps);
35056
35073
  const base = {
@@ -35086,7 +35103,7 @@ var servicesFor = /* @__PURE__ */ __name((deps) => {
35086
35103
  return deps.messenger.services ? { ...base, ...deps.messenger.services(base, deps) } : base;
35087
35104
  }, "servicesFor");
35088
35105
 
35089
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/background/relay.js
35106
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/background/relay.js
35090
35107
  import { createHash as createHash12 } from "node:crypto";
35091
35108
  import { chmodSync, lstatSync, mkdirSync as mkdirSync2, rmSync } from "node:fs";
35092
35109
  import { createConnection, createServer } from "node:net";
@@ -35307,7 +35324,7 @@ var relayCommand = /* @__PURE__ */ __name((path, request, options) => new Promis
35307
35324
  }, () => finish({ error: stopped() }));
35308
35325
  }), "relayCommand");
35309
35326
 
35310
- // node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-relay.js
35327
+ // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-relay.js
35311
35328
  var lentConnection = /* @__PURE__ */ __name((connection, watchers) => throughWrapper(connection, {
35312
35329
  close: /* @__PURE__ */ __name(async () => {
35313
35330
  }, "close"),