@wirecat/mail-cli 0.30.0 → 0.32.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 (105) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist/bin/mail.js +2 -2
  3. package/dist/bundle/{all-profiles-523GLORJ.js → all-profiles-OTCWJSJS.js} +19 -29
  4. package/dist/bundle/{anthropic-KKYGROQR.js → anthropic-GUXHDK32.js} +2 -2
  5. package/dist/bundle/{app-server-RJR7U5NT.js → app-server-GX7DOE4O.js} +45 -60
  6. package/dist/bundle/{bun-EBQHHLKR.js → bun-V5QLYBZU.js} +2 -2
  7. package/dist/bundle/{bun-sqlite-LTG2RRSL.js → bun-sqlite-AXD5CCO3.js} +3 -3
  8. package/dist/bundle/{chunk-L2D5QYI3.js → chunk-2IYAZRTC.js} +2 -2
  9. package/dist/bundle/{chunk-ONA3UI3R.js → chunk-2UMEZY6D.js} +2 -2
  10. package/dist/bundle/{chunk-XGEPAJBY.js → chunk-3URYKAJP.js} +1 -1
  11. package/dist/bundle/{chunk-SPWKGRTO.js → chunk-4YNUQGDP.js} +1 -1
  12. package/dist/bundle/{chunk-MVDP7VL6.js → chunk-6SJ7HHAE.js} +1 -1
  13. package/dist/bundle/{chunk-T7A6HSBF.js → chunk-6TRKNME5.js} +1 -1
  14. package/dist/bundle/{chunk-YNI57LTZ.js → chunk-6XNTELM5.js} +1 -1
  15. package/dist/bundle/{chunk-NMN7RTX5.js → chunk-7GW4D3OW.js} +19 -18
  16. package/dist/bundle/{chunk-3HCEKXXB.js → chunk-AJY2IT25.js} +6 -6
  17. package/dist/bundle/{chunk-KE2RQUQO.js → chunk-ANYADN3S.js} +17 -17
  18. package/dist/bundle/{chunk-FL2TKSZY.js → chunk-CAQ5GW3A.js} +1 -1
  19. package/dist/bundle/{chunk-SNZFQ5SS.js → chunk-CD3TAITM.js} +14 -2
  20. package/dist/bundle/{chunk-54JKDFOV.js → chunk-FA3B2DHZ.js} +1 -1
  21. package/dist/bundle/{chunk-Q23EEGPC.js → chunk-GDDCKTBR.js} +1 -1
  22. package/dist/bundle/{chunk-HVJ2WQI7.js → chunk-GPOTPA3S.js} +10 -10
  23. package/dist/bundle/{chunk-S2KKQA7O.js → chunk-GSXCMQWV.js} +41 -49
  24. package/dist/bundle/{chunk-GXKFRZUP.js → chunk-HFA6AZWA.js} +3 -3
  25. package/dist/bundle/{chunk-DBI22GQL.js → chunk-HUWQ7LXZ.js} +506 -338
  26. package/dist/bundle/{chunk-5X5A3CAX.js → chunk-IBCGCYRU.js} +1 -1
  27. package/dist/bundle/{chunk-4F7WQHDO.js → chunk-IVD3JTN5.js} +1 -1
  28. package/dist/bundle/{chunk-IIV43UIC.js → chunk-JRGPPS6H.js} +12 -12
  29. package/dist/bundle/{chunk-3ECFSRLQ.js → chunk-JUS4Y4BW.js} +3 -3
  30. package/dist/bundle/{chunk-F22PLRCG.js → chunk-KLFF54AF.js} +7 -7
  31. package/dist/bundle/{chunk-J5PUHGK2.js → chunk-KLGZX6QT.js} +1 -1
  32. package/dist/bundle/{chunk-CWAA73PJ.js → chunk-LVFI3TCG.js} +5 -5
  33. package/dist/bundle/{chunk-GDFJKUMK.js → chunk-LVJWN2PR.js} +6 -6
  34. package/dist/bundle/{chunk-E2SL7HIZ.js → chunk-MENP3FF5.js} +11 -12
  35. package/dist/bundle/{chunk-HZUUVNWC.js → chunk-MHXZ62CU.js} +1 -1
  36. package/dist/bundle/{chunk-B3NXAN6J.js → chunk-MSK7RNOM.js} +149 -148
  37. package/dist/bundle/{chunk-D3J4T5OZ.js → chunk-MT2WDBG2.js} +12 -12
  38. package/dist/bundle/{chunk-2M7PPII5.js → chunk-MVMNZ3Q3.js} +745 -336
  39. package/dist/bundle/{chunk-ZG2XBWFT.js → chunk-NMN5JUYL.js} +3 -3
  40. package/dist/bundle/{chunk-JKWNPRZD.js → chunk-O7OP5NQO.js} +1 -1
  41. package/dist/bundle/{chunk-NV2REPY6.js → chunk-OUM4ZO53.js} +1 -1
  42. package/dist/bundle/{chunk-KIZYN3NG.js → chunk-PALY5PGE.js} +5 -5
  43. package/dist/bundle/{chunk-LM4K6K2R.js → chunk-PCMQYGEM.js} +4 -4
  44. package/dist/bundle/{chunk-GCSFZTRI.js → chunk-PCWAZVAD.js} +30 -5
  45. package/dist/bundle/{chunk-6C7SA4LD.js → chunk-QHXOXYAT.js} +57 -54
  46. package/dist/bundle/{chunk-WXQK5RO5.js → chunk-RNBG75HW.js} +33 -23
  47. package/dist/bundle/{chunk-TIMBTN5Z.js → chunk-SDAYOJLL.js} +5 -5
  48. package/dist/bundle/{chunk-LN2LWPN2.js → chunk-SEJBS7SI.js} +1 -1
  49. package/dist/bundle/{chunk-U7VYDTXN.js → chunk-SWXKS7JK.js} +16 -16
  50. package/dist/bundle/{chunk-R3IFRHZ2.js → chunk-SZZJOSIS.js} +2 -2
  51. package/dist/bundle/{chunk-WHS3CTTM.js → chunk-T577U52I.js} +7 -7
  52. package/dist/bundle/{chunk-SN5V6CKH.js → chunk-TDTCCHAI.js} +98 -6
  53. package/dist/bundle/{chunk-FYXGD6R6.js → chunk-TWHIZJAZ.js} +2 -2
  54. package/dist/bundle/{chunk-K5FTIIYR.js → chunk-U346WBJ5.js} +4 -4
  55. package/dist/bundle/{chunk-MP572GP7.js → chunk-U57QRUP7.js} +2 -2
  56. package/dist/bundle/{chunk-YMJXGIYG.js → chunk-U7RLFLTM.js} +23 -23
  57. package/dist/bundle/{chunk-ENKZEQ4Y.js → chunk-WNGMI6AZ.js} +2 -2
  58. package/dist/bundle/{chunk-BOGGQOVO.js → chunk-WQOGHND4.js} +1 -1
  59. package/dist/bundle/{chunk-A3YXTDTP.js → chunk-XXXVVNGI.js} +18 -15
  60. package/dist/bundle/{chunk-RLPWLGP6.js → chunk-Z6OKVD3R.js} +7 -7
  61. package/dist/bundle/{chunk-QGIQ62KV.js → chunk-ZAD7K4TI.js} +382 -366
  62. package/dist/bundle/{chunk-26H2HVJD.js → chunk-ZDP6A2VL.js} +2 -2
  63. package/dist/bundle/{command-contract-ETECA2AC.js → command-contract-DZ6XRIOI.js} +15 -15
  64. package/dist/bundle/{command-server-entry-BFXRYTBC.js → command-server-entry-BVXOPKXH.js} +21 -21
  65. package/dist/bundle/{decode-4QRYNPD5.js → decode-STN3EHT7.js} +2 -2
  66. package/dist/bundle/{dist-MHJPECI4.js → dist-B2JWWTNN.js} +15 -11
  67. package/dist/bundle/{echarts-EJXBKCJT.js → echarts-QIXLXS3G.js} +2 -2
  68. package/dist/bundle/{embed-46WZZMUQ.js → embed-4NC4ELYP.js} +3 -3
  69. package/dist/bundle/{embedder-56WHJKJE.js → embedder-HBRDIFQC.js} +6 -6
  70. package/dist/bundle/{first-run-CATDBOBV.js → first-run-6QF67AAZ.js} +6 -6
  71. package/dist/bundle/first-screen-LXSZMK2P.js +34 -0
  72. package/dist/bundle/{instructions-Z7GVGWXS.js → instructions-MD2RZT5Z.js} +1 -1
  73. package/dist/bundle/mail.js +2 -2
  74. package/dist/bundle/{node-L2PVEW3N.js → node-IEVT2FSJ.js} +2 -2
  75. package/dist/bundle/{node-sqlite-RIGII7U7.js → node-sqlite-EOTTDMOG.js} +4 -4
  76. package/dist/bundle/{oauth-OWT6NYRS.js → oauth-A5BEFGCI.js} +4 -4
  77. package/dist/bundle/{open-D3SPYL7O.js → open-HWN2EZYG.js} +2 -2
  78. package/dist/bundle/{openai-IPTZDMFD.js → openai-PJKJ4CIU.js} +12 -12
  79. package/dist/bundle/{process-MNZTQ2DA.js → process-6Q23D3TO.js} +1 -1
  80. package/dist/bundle/{program-QCHTCOCR.js → program-WR43NPAV.js} +523 -454
  81. package/dist/bundle/{prompt-BN6AKRWN.js → prompt-E7Q2662O.js} +2 -2
  82. package/dist/bundle/{recognize-I5TH7OEW.js → recognize-4F4PIL4B.js} +1 -1
  83. package/dist/bundle/{remote-R324LAUL.js → remote-RGJXO7XK.js} +6 -6
  84. package/dist/bundle/{rerank-ZMGZCUJV.js → rerank-EDY7PHMG.js} +4 -4
  85. package/dist/bundle/{serve-YUFZSNJC.js → serve-Q4XF6ID2.js} +6 -6
  86. package/dist/bundle/server-2Y5NSP2U.js +67 -0
  87. package/dist/bundle/{server-54ULZ3RA.js → server-5I72DSDF.js} +43 -41
  88. package/dist/bundle/{sqlite-runtime-AYQTUQXM.js → sqlite-runtime-PU3Z2H7C.js} +3 -3
  89. package/dist/bundle/{state-PHEBOYYI.js → state-CWSXJBU2.js} +3 -3
  90. package/dist/bundle/{store-NGX3A5XT.js → store-KQPKS3PX.js} +15 -15
  91. package/dist/bundle/{store-4PHDSXEV.js → store-ZAMKKM2A.js} +13 -13
  92. package/dist/bundle/store-maintenance-command-PMTTDR6J.js +58 -0
  93. package/dist/commands/rules.d.ts.map +1 -1
  94. package/dist/commands/rules.js +73 -22
  95. package/dist/commands/rules.js.map +1 -1
  96. package/dist/mail/rules/apply.d.ts.map +1 -1
  97. package/dist/mail/rules/apply.js +1 -9
  98. package/dist/mail/rules/apply.js.map +1 -1
  99. package/dist/version.d.ts +1 -1
  100. package/dist/version.js +1 -1
  101. package/package.json +2 -2
  102. package/dist/bundle/chunk-IJONJTST.js +0 -76
  103. package/dist/bundle/first-screen-WCDR3QUR.js +0 -34
  104. package/dist/bundle/server-UD75CYDG.js +0 -68
  105. package/dist/bundle/store-maintenance-command-WHBIV6HC.js +0 -58
@@ -8,7 +8,7 @@ import {
8
8
  sameOrdinaryFile,
9
9
  syncDirectory,
10
10
  writeFileAtomic
11
- } from "./chunk-IIV43UIC.js";
11
+ } from "./chunk-JRGPPS6H.js";
12
12
  import {
13
13
  MAX_ACTIONS,
14
14
  ModerationRules,
@@ -21,7 +21,7 @@ import {
21
21
  someUndone,
22
22
  validateFormattedText,
23
23
  visibleFormattedText
24
- } from "./chunk-GDFJKUMK.js";
24
+ } from "./chunk-LVJWN2PR.js";
25
25
  import {
26
26
  EmptyAnswer,
27
27
  MAX_MODEL_IMAGE_BYTES,
@@ -30,7 +30,7 @@ import {
30
30
  range,
31
31
  systemFor,
32
32
  validateImages
33
- } from "./chunk-26H2HVJD.js";
33
+ } from "./chunk-ZDP6A2VL.js";
34
34
  import {
35
35
  Command,
36
36
  CustomTextModelShape,
@@ -79,13 +79,15 @@ import {
79
79
  textModels,
80
80
  vectorModelKey,
81
81
  writeTextModelsSection
82
- } from "./chunk-B3NXAN6J.js";
82
+ } from "./chunk-MSK7RNOM.js";
83
83
  import {
84
84
  CEILING_KEY,
85
+ STORE_ONLY_KEYS,
85
86
  keyForWrite,
86
87
  levelFor,
87
- skipFlagFor
88
- } from "./chunk-GCSFZTRI.js";
88
+ skipFlagFor,
89
+ stops
90
+ } from "./chunk-PCWAZVAD.js";
89
91
  import {
90
92
  isNewer,
91
93
  updateCommand
@@ -145,7 +147,7 @@ import {
145
147
  validateAst,
146
148
  validateFields,
147
149
  withoutField
148
- } from "./chunk-QGIQ62KV.js";
150
+ } from "./chunk-ZAD7K4TI.js";
149
151
  import {
150
152
  COUNTER_FIELDS,
151
153
  MESSAGE_PARSING,
@@ -170,7 +172,7 @@ import {
170
172
  rankingOptions,
171
173
  rankingQuestion,
172
174
  searchError
173
- } from "./chunk-KE2RQUQO.js";
175
+ } from "./chunk-ANYADN3S.js";
174
176
  import {
175
177
  LOG_ATTRIBUTES,
176
178
  TASK_KINDS,
@@ -193,8 +195,9 @@ import {
193
195
  sourceOf3 as sourceOf2,
194
196
  typedCommand,
195
197
  withAttempt
196
- } from "./chunk-YMJXGIYG.js";
198
+ } from "./chunk-U7RLFLTM.js";
197
199
  import {
200
+ BACKENDS,
198
201
  EVENT_QUERY,
199
202
  INTERNAL_NOTES,
200
203
  MEETING_PROJECT_EVIDENCE_QUERY,
@@ -230,12 +233,13 @@ import {
230
233
  liftMeetingFields,
231
234
  listed,
232
235
  meetingCueFingerprint,
233
- meetingDetailsAnswer,
236
+ meetingDetailsBody,
234
237
  meetingHitsList,
235
238
  meetingPeople,
239
+ meetingShowThrough,
236
240
  meetingSummaryAnswer,
237
241
  meetingTranscriptAnswer,
238
- meetingsList,
242
+ meetingsListThrough,
239
243
  meetingsQuery,
240
244
  normalizeTag,
241
245
  parseLocator,
@@ -247,46 +251,49 @@ import {
247
251
  pull,
248
252
  queryError,
249
253
  queryFieldsOf,
254
+ rangeOf,
250
255
  readMeetingProjectEvidence,
256
+ serviceCallsOf,
251
257
  strongRecordingValidator,
252
258
  timezoneOf,
253
259
  validateMeetingHitSearch,
254
260
  validateMeetingPassage,
255
261
  validateQuery,
256
262
  walkQuery,
263
+ windowOf,
257
264
  zonedMoment
258
- } from "./chunk-2M7PPII5.js";
265
+ } from "./chunk-MVMNZ3Q3.js";
259
266
  import {
260
267
  isCliFailure,
261
268
  sqliteCode
262
- } from "./chunk-JKWNPRZD.js";
269
+ } from "./chunk-O7OP5NQO.js";
263
270
  import {
264
271
  DEFAULT_STEMMERS,
265
272
  createStemmer
266
- } from "./chunk-F22PLRCG.js";
273
+ } from "./chunk-KLFF54AF.js";
267
274
  import {
268
275
  fold,
269
276
  normalize
270
- } from "./chunk-SPWKGRTO.js";
277
+ } from "./chunk-4YNUQGDP.js";
271
278
  import {
272
279
  localOnly,
273
280
  refuseOffComputer,
274
281
  remoteKey
275
- } from "./chunk-WHS3CTTM.js";
282
+ } from "./chunk-T577U52I.js";
276
283
  import {
277
284
  PLAIN_HTTP_REFUSED,
278
285
  endpoint,
279
286
  endpointFetch,
280
287
  modelAddressAllowed,
281
288
  onThisComputer
282
- } from "./chunk-Q23EEGPC.js";
289
+ } from "./chunk-GDDCKTBR.js";
283
290
  import {
284
291
  DEFAULT_TASK_CATEGORIES,
285
292
  FALLBACK_CATEGORY,
286
293
  readSharedSection,
287
294
  sharedConfigPath,
288
295
  writeSharedSection
289
- } from "./chunk-KIZYN3NG.js";
296
+ } from "./chunk-PALY5PGE.js";
290
297
  import {
291
298
  Unzip,
292
299
  UnzipInflate,
@@ -297,15 +304,15 @@ import {
297
304
  placedText,
298
305
  runEmbedders,
299
306
  textModelsDirectory
300
- } from "./chunk-CWAA73PJ.js";
307
+ } from "./chunk-LVFI3TCG.js";
301
308
  import {
302
309
  installFiles,
303
310
  megabytes
304
- } from "./chunk-3ECFSRLQ.js";
311
+ } from "./chunk-JUS4Y4BW.js";
305
312
  import {
306
313
  storePath,
307
314
  wirecatDirectory
308
- } from "./chunk-54JKDFOV.js";
315
+ } from "./chunk-FA3B2DHZ.js";
309
316
  import {
310
317
  Credentials,
311
318
  logRecordOf,
@@ -16966,10 +16973,10 @@ var require_lib3 = __commonJS({
16966
16973
  }
16967
16974
  });
16968
16975
 
16969
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/ports/traits.js
16976
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/ports/traits.js
16970
16977
  var syncsOneChat = /* @__PURE__ */ __name((messenger) => messenger.history !== "store" || messenger.historyOnDemand === true, "syncsOneChat");
16971
16978
 
16972
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/conversations/link.js
16979
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/conversations/link.js
16973
16980
  var RULES_VERSION = 5;
16974
16981
  var LOOK_BACK = 50;
16975
16982
  var SAME_SENDER_WITHIN = 10;
@@ -17059,7 +17066,7 @@ var latest = /* @__PURE__ */ __name((window3, matches) => {
17059
17066
  var sameThread = /* @__PURE__ */ __name((a, b) => a.threadId === b.threadId, "sameThread");
17060
17067
  var link = /* @__PURE__ */ __name((message, parentId, source, kind, confidence, method) => ({ messageId: message.id, parentId, source, kind, confidence, method }), "link");
17061
17068
 
17062
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/sends/upload.js
17069
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/sends/upload.js
17063
17070
  import { openAsBlob, realpathSync } from "node:fs";
17064
17071
  import { open, stat } from "node:fs/promises";
17065
17072
  import { basename, dirname, extname, isAbsolute, relative, resolve, sep } from "node:path";
@@ -17273,10 +17280,10 @@ var readStickerFile = /* @__PURE__ */ __name(async (path, maxBytes, read) => {
17273
17280
  return { name, source };
17274
17281
  }, "readStickerFile");
17275
17282
 
17276
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/sends/guard.js
17283
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/sends/guard.js
17277
17284
  import { randomUUID } from "node:crypto";
17278
17285
 
17279
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/sends/flood.js
17286
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/sends/flood.js
17280
17287
  import { mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
17281
17288
  import { dirname as dirname2, join } from "node:path";
17282
17289
  var MOST_DEADLINES = 50;
@@ -17360,11 +17367,11 @@ var FloodMemory = class {
17360
17367
  }
17361
17368
  };
17362
17369
 
17363
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/sends/journal.js
17370
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/sends/journal.js
17364
17371
  import { appendFileSync, mkdirSync as mkdirSync3, readFileSync as readFileSync2 } from "node:fs";
17365
17372
  import { dirname as dirname4, join as join2 } from "node:path";
17366
17373
 
17367
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/sends/file-lock.js
17374
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/sends/file-lock.js
17368
17375
  import { closeSync, mkdirSync as mkdirSync2, openSync, statSync, unlinkSync } from "node:fs";
17369
17376
  import { dirname as dirname3 } from "node:path";
17370
17377
  var LOCK_WAIT_MS = 5e3;
@@ -17431,7 +17438,7 @@ var lockTime = /* @__PURE__ */ __name((lock) => {
17431
17438
  }
17432
17439
  }, "lockTime");
17433
17440
 
17434
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/sends/journal.js
17441
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/sends/journal.js
17435
17442
  var sendsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "sends", `${profile}.jsonl`), "sendsPathFor");
17436
17443
  var SendJournal = class {
17437
17444
  static {
@@ -17508,7 +17515,7 @@ var withSendId = /* @__PURE__ */ __name((entry) => {
17508
17515
  return cid === void 0 || rest.sendId !== void 0 ? rest : { ...rest, sendId: String(cid) };
17509
17516
  }, "withSendId");
17510
17517
 
17511
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/sends/recipients.js
17518
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/sends/recipients.js
17512
17519
  import { existsSync, readFileSync as readFileSync3, rmSync } from "node:fs";
17513
17520
  import { join as join3 } from "node:path";
17514
17521
  var recipientsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "profiles", `${profile}.recipients.json`), "recipientsPathFor");
@@ -17620,23 +17627,14 @@ var RecipientList = class {
17620
17627
  }
17621
17628
  };
17622
17629
 
17623
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/sends/guard.js
17630
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/sends/guard.js
17624
17631
  var HOUR_MS = 60 * 60 * 1e3;
17625
- var READS = /* @__PURE__ */ new Set([
17626
- "attachments.extract",
17627
- "conversations.embeddings",
17628
- "conversations.links",
17629
- "messages.server-search",
17630
- "messages.sync-first",
17631
- "stats.contacts.top.sync-first",
17632
- "stats.messages.counters.sync",
17633
- "stats.messages.show.sync-first",
17634
- "stats.messages.top.sync-first",
17635
- "store.gaps.repair"
17636
- ]);
17637
17632
  var countsTowardLimit = /* @__PURE__ */ __name(({ kind = "message", action, notify }) => kind === "message" || kind === "forward" || kind === "edit" || kind === "delete" || kind === "pin" && notify === true || action === "create" || action === "members.add" || action === "requests.accept" || action === "join" || action === "contact-import", "countsTowardLimit");
17638
17633
  var weightOf = /* @__PURE__ */ __name(({ kind = "message", action, count: count4, people }) => kind === "delete" || kind === "message" && action === void 0 ? Math.max(1, count4 ?? 1) : action === "create" || action === "members.add" || action === "requests.accept" || action === "contact-import" ? Math.max(1, people ?? count4 ?? 1) : 1, "weightOf");
17639
- var timeOf = /* @__PURE__ */ __name((entry) => Date.parse(entry.scheduledFor ?? entry.at), "timeOf");
17634
+ var timeOf = /* @__PURE__ */ __name((entry) => {
17635
+ const scheduled = entry.scheduledFor === void 0 ? Number.NaN : Date.parse(entry.scheduledFor);
17636
+ return Number.isNaN(scheduled) ? Date.parse(entry.at) : scheduled;
17637
+ }, "timeOf");
17640
17638
  var ceilingRefusal = /* @__PURE__ */ __name((key, command) => new CliError("permission_error", `${key} is not allowed: setup's answer keeps every WireCat tool read-only; the owner changes it at a terminal with \`${command} setup\``, { permission: key }), "ceilingRefusal");
17641
17639
  var levelRefusal = /* @__PURE__ */ __name((refused, fix = `${refused.command} ${refused.profile} config set permissions.${refused.key} allow`) => refused.named === CEILING_KEY ? ceilingRefusal(refused.key, refused.command) : new CliError("permission_error", `profile ${refused.profile} does not let ${refused.key} write (permissions.${refused.named} is ${refused.level}, from the ${refused.permissionSources[refused.named ?? ""] ?? "default"}); to allow it: ${fix}`, { permission: refused.key }), "levelRefusal");
17642
17640
  var sendGuard = /* @__PURE__ */ __name(({ profile, recipients, command = recipients.command, readOnlyLock, permissions, permissionSources = {}, permissionDefaults, permissionFix, ask: ask2 = refuseToAsk, sendsPerHour, journal, flood, warn, now = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Date(), "now") }) => {
@@ -17644,13 +17642,13 @@ var sendGuard = /* @__PURE__ */ __name(({ profile, recipients, command = recipie
17644
17642
  let reservation;
17645
17643
  const answered = /* @__PURE__ */ new WeakSet();
17646
17644
  const refuseReadOnly = /* @__PURE__ */ __name(({ key }) => {
17647
- if (key !== void 0 && READS.has(key))
17645
+ if (key !== void 0 && STORE_ONLY_KEYS.has(key))
17648
17646
  return;
17649
17647
  if (readOnlyLock)
17650
17648
  throw readOnlyRefusal(readOnlyLock, MESSENGER_CHANGE_REFUSAL);
17651
17649
  }, "refuseReadOnly");
17652
17650
  const refuseHeld = /* @__PURE__ */ __name(({ key }) => {
17653
- if (key !== void 0 && READS.has(key))
17651
+ if (key !== void 0 && STORE_ONLY_KEYS.has(key))
17654
17652
  return;
17655
17653
  const block = flood?.sendBlock();
17656
17654
  if (!block)
@@ -17664,7 +17662,7 @@ var sendGuard = /* @__PURE__ */ __name(({ profile, recipients, command = recipie
17664
17662
  if (levels !== void 0) {
17665
17663
  const key = request.key ?? keyForWrite(kind, action);
17666
17664
  const { level, key: named2 } = levelFor(levels, key, permissionDefaults);
17667
- if (level === "deny" || level === "readonly")
17665
+ if (stops(level, key))
17668
17666
  throw levelRefusal({ profile, command, key, level, named: named2, permissionSources }, permissionFix?.(request, key));
17669
17667
  if (level === "ask" && !answered.has(request)) {
17670
17668
  throw new CliError("confirmation_required", `${key} asks before it acts, and it was not asked`);
@@ -17687,6 +17685,8 @@ var sendGuard = /* @__PURE__ */ __name(({ profile, recipients, command = recipie
17687
17685
  throw new CliError("rate_limited", `${count4} at once is more than the hourly limit of profile ${profile} (sendsPerHour ${sendsPerHour}) \u2014 do fewer at a time`);
17688
17686
  }
17689
17687
  const at = request.scheduledFor ? Date.parse(request.scheduledFor) : now().getTime();
17688
+ if (Number.isNaN(at))
17689
+ throw new CliError("validation_error", `"${request.scheduledFor}" is not a time to send at \u2014 use ISO 8601`);
17690
17690
  const counted2 = entries.filter(countsTowardLimit).filter((entry) => entry.outcome === "sent" || entry.outcome === "outcome_unknown" || entry.outcome === "reserved").filter((entry) => Math.abs(timeOf(entry) - at) < HOUR_MS);
17691
17691
  const unsure = /* @__PURE__ */ __name((entry) => entry.outcome === "outcome_unknown", "unsure");
17692
17692
  const same2 = /* @__PURE__ */ __name((a, b) => a.sendId !== void 0 && a.sendId === b.sendId && a.chatId === b.chatId, "same");
@@ -17815,7 +17815,7 @@ var guardFor = /* @__PURE__ */ __name((app, settings, warn, env = process.env, a
17815
17815
  }), "guardFor");
17816
17816
  var journalFailure = /* @__PURE__ */ __name((error) => error?.code ?? (error instanceof Error ? error.name : "error"), "journalFailure");
17817
17817
 
17818
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/cli/messenger/lacks.js
17818
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/messenger/lacks.js
17819
17819
  var COMMAND_NEEDS = {
17820
17820
  "account update": ["updateProfile", "change the profile"],
17821
17821
  "account sessions list": ["sessions", "list the account's sessions"],
@@ -17865,7 +17865,7 @@ var hideNever = /* @__PURE__ */ __name((messenger, group) => {
17865
17865
  return group;
17866
17866
  }, "hideNever");
17867
17867
 
17868
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/members-audit.js
17868
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/members-audit.js
17869
17869
  var AUDIT_PAGE = 200;
17870
17870
  var AUDIT_BUDGET = 10;
17871
17871
  var AUDIT_PAUSE_MS = 1e3;
@@ -17945,7 +17945,82 @@ var burstJoins = /* @__PURE__ */ __name((members) => {
17945
17945
  return found;
17946
17946
  }, "burstJoins");
17947
17947
 
17948
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/meetings/cli/query-options.js
17948
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/meetings/cli/management.js
17949
+ var REMOTE_READ = { remote: "read", local: "read" };
17950
+ var REMOTE_WRITE = { remote: "write", local: "write" };
17951
+ var minutes = /* @__PURE__ */ __name((text2) => {
17952
+ if (!/^[1-9]\d*$/.test(text2))
17953
+ throw new InvalidArgumentError("expected whole minutes");
17954
+ return Number(text2);
17955
+ }, "minutes");
17956
+ var changeOptions = /* @__PURE__ */ __name((command) => command.option("--title <title>", "the meeting's title").addOption(new Option("--kind <kind>", "an instant or a scheduled meeting").choices(["instant", "scheduled"])).option("--start-time <time>", "when it starts: an ISO time with its offset, 2026-11-20T10:00:00+01:00").option("--duration-minutes <minutes>", "how long it lasts, 1\u20131440", minutes).option("--timezone <zone>", "its IANA time zone, Europe/Madrid").option("--agenda <text>", "its agenda"), "changeOptions");
17957
+ var changeOf = /* @__PURE__ */ __name((flags) => Object.fromEntries(["title", "kind", "startTime", "durationMinutes", "timezone", "agenda"].flatMap((key) => flags[key] === void 0 ? [] : [[key, flags[key]]])), "changeOf");
17958
+ var meetingOf = /* @__PURE__ */ __name((one) => ({
17959
+ id: one.id,
17960
+ title: one.title,
17961
+ kind: one.kind,
17962
+ start_time: one.startTime,
17963
+ duration_minutes: one.durationMinutes,
17964
+ timezone: one.timezone,
17965
+ agenda: one.agenda,
17966
+ join_url: one.joinUrl
17967
+ }), "meetingOf");
17968
+ var receiptItem = /* @__PURE__ */ __name((receipt) => {
17969
+ const { change } = receipt;
17970
+ return {
17971
+ action: receipt.action,
17972
+ provider: receipt.scope.provider,
17973
+ account: receipt.scope.account,
17974
+ ...receipt.id === void 0 ? {} : { id: receipt.id },
17975
+ ...receipt.occurrenceId === void 0 ? {} : { occurrence_id: receipt.occurrenceId },
17976
+ ...change ? {
17977
+ change: {
17978
+ ...change.title === void 0 ? {} : { title: change.title },
17979
+ ...change.kind === void 0 ? {} : { kind: change.kind },
17980
+ ...change.startTime === void 0 ? {} : { start_time: change.startTime },
17981
+ ...change.durationMinutes === void 0 ? {} : { duration_minutes: change.durationMinutes },
17982
+ ...change.timezone === void 0 ? {} : { timezone: change.timezone },
17983
+ ...change.agenda === void 0 ? {} : { agenda: change.agenda }
17984
+ }
17985
+ } : {},
17986
+ applied: receipt.applied,
17987
+ ...receipt.meeting ? { meeting: meetingOf(receipt.meeting) } : {}
17988
+ };
17989
+ }, "receiptItem");
17990
+ var addMeetingManagementCommands = /* @__PURE__ */ __name((group, deps) => {
17991
+ const { management, print, output, inRun, askFirst } = deps;
17992
+ const has = /* @__PURE__ */ __name((name) => management.capabilities.includes(name), "has");
17993
+ const mutation = /* @__PURE__ */ __name(async (command) => {
17994
+ const dryRun = command.optsWithGlobals().dryRun === true;
17995
+ if (!dryRun) {
17996
+ if (!askFirst)
17997
+ throw new CliError("configuration_error", "this tool cannot ask before it changes a meeting on the service");
17998
+ await askFirst(command);
17999
+ }
18000
+ return { apply: true, dryRun };
18001
+ }, "mutation");
18002
+ const write = /* @__PURE__ */ __name((name) => annotate(group.command(name), { effects: REMOTE_WRITE, offline: false, output: { entity: "meeting_change" } }), "write");
18003
+ const target2 = /* @__PURE__ */ __name((command) => command.argument("<meeting>", "the service's id of the meeting"), "target");
18004
+ if (has("create"))
18005
+ output(changeOptions(write("create").description("create a meeting on the service"))).action(async (flags, command) => inRun(command, async () => print({ item: receiptItem(await management.create(changeOf(flags), await mutation(command))) }, command)));
18006
+ if (has("update"))
18007
+ output(changeOptions(target2(write("update").description("change a meeting on the service")))).action(async (id2, flags, command) => inRun(command, async () => print({ item: receiptItem(await management.update(id2, changeOf(flags), await mutation(command))) }, command)));
18008
+ if (has("cancel"))
18009
+ output(target2(write("cancel").description("cancel a meeting on the service")).option("--occurrence-id <id>", "cancel only this occurrence of a repeating meeting")).action(async (id2, flags, command) => inRun(command, async () => print({
18010
+ item: receiptItem(await management.cancel(id2, {
18011
+ ...await mutation(command),
18012
+ ...flags.occurrenceId === void 0 ? {} : { occurrenceId: flags.occurrenceId }
18013
+ }))
18014
+ }, command)));
18015
+ if (has("invitation"))
18016
+ output(target2(annotate(group.command("invitation"), {
18017
+ effects: REMOTE_READ,
18018
+ offline: false,
18019
+ output: { entity: "meeting_invitation" }
18020
+ }).description("the invitation text the service writes for a meeting"))).action(async (id2, _flags, command) => inRun(command, async () => print({ item: { ...await management.invitation(id2), untrusted: ["invitation"] } }, command)));
18021
+ }, "addMeetingManagementCommands");
18022
+
18023
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/meetings/cli/query-options.js
17949
18024
  var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
17950
18025
  command.allowUnknownOption();
17951
18026
  const parse2 = command.parseOptions.bind(command);
@@ -17965,7 +18040,7 @@ var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
17965
18040
  return command;
17966
18041
  }, "queryWordsAfterOptions");
17967
18042
 
17968
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/meetings/cli/passage.js
18043
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/meetings/cli/passage.js
17969
18044
  var count = /* @__PURE__ */ __name((value) => {
17970
18045
  if (!/^(0|[1-9]\d*)$/.test(value) || !Number.isSafeInteger(Number(value)))
17971
18046
  throw new CliError("validation_error", "expected a nonnegative safe integer");
@@ -18007,7 +18082,7 @@ var addMeetingPassageCommandDefinition = /* @__PURE__ */ __name((program, deps)
18007
18082
  var createMeetingPassageCommand = sharedCommand(createMeetingPassageCommandDefinition);
18008
18083
  var addMeetingPassageCommand = sharedCommand(addMeetingPassageCommandDefinition);
18009
18084
 
18010
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/meetings/cli/project-evidence.js
18085
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/meetings/cli/project-evidence.js
18011
18086
  var integer2 = /* @__PURE__ */ __name((value) => {
18012
18087
  if (!/^[1-9]\d*$/.test(value) || !Number.isSafeInteger(Number(value)))
18013
18088
  throw new CliError("validation_error", "expected a positive safe integer");
@@ -18030,15 +18105,20 @@ ${fieldsHelp(MEETING_PROJECT_EVIDENCE_QUERY)}`).option("--limit <n>", "hits in o
18030
18105
  }, "addMeetingProjectEvidenceCommandDefinition");
18031
18106
  var addMeetingProjectEvidenceCommand = sharedCommand(addMeetingProjectEvidenceCommandDefinition);
18032
18107
 
18033
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/meetings/cli/search.js
18108
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/meetings/cli/search.js
18034
18109
  var ZONED = /(?:Z|[+-]\d{2}:?\d{2})$/i;
18110
+ var AGO = /^(\d+)(m|h|d)$/;
18111
+ var AGO_MS = { m: 6e4, h: 36e5, d: 864e5 };
18035
18112
  var moment = /* @__PURE__ */ __name((flag, end, readIn) => (value) => {
18113
+ const [, amount, unit] = AGO.exec(value.trim()) ?? [];
18114
+ if (amount && unit)
18115
+ return Date.now() - Number(amount) * (AGO_MS[unit] ?? 0);
18036
18116
  const zone = timezoneOf();
18037
18117
  let time;
18038
18118
  try {
18039
18119
  time = zonedMoment(value, zone, { start: 0, end: value.length }, { end });
18040
18120
  } catch {
18041
- throw new CliError("validation_error", `${flag} takes an ISO date, or a time with or without an offset`);
18121
+ throw new CliError("validation_error", `${flag} takes an ISO date, a time with or without an offset, or 30m, 2h, 7d ago`);
18042
18122
  }
18043
18123
  if (!ZONED.test(value.trim()))
18044
18124
  readIn(zone);
@@ -18056,7 +18136,7 @@ var createMeetingSearchCommandDefinition = /* @__PURE__ */ __name((program) => {
18056
18136
  program.addCommand(search);
18057
18137
  }
18058
18138
  const readIn = /* @__PURE__ */ __name((zone) => command.setOptionValue("timesReadIn", zone), "readIn");
18059
- const command = search.command("meetings").description("find words in stored meetings, indexing new ones first").argument("<query>", 'words, OR, (groups), -word, "a phrase", "a b"~N (within N lines), exact:word, from:"Name" (who said the line); date>=30d, project:, tag:, topic: choose meetings; a word also matches its other forms and spellings speech recognition garbled').option("--meeting-id <id>", "only this stored meeting", integer3).option("--identity-id <id>", "meetings with this participant identity; does not say who spoke a hit", integer3).option("--person-id <id>", "meetings with a participant linked to this person", integer3).option("--event-id <id>", "only meetings linked to this stored event", integer3).option("--series-id <id>", "only meetings in this stored series", integer3).option("--project <project>", "meetings confirmed in this project, by name, key or alias").option("--tag <name>", "meetings with this tag, by name or alias").option("--topic-name <name>", "meetings with this topic, by name or alias").option("--since-time <time>", "meetings starting at or after this ISO 8601 date or time", moment("--since-time", false, readIn)).option("--until-time <time>", "meetings starting at or before this ISO 8601 date or time; a date alone covers that whole local day", moment("--until-time", true, readIn)).option("--limit <n>", "how many hits, 1 through 1000 (default 100)", integer3).option("--cursor <cursor>", "continue from the previous page's page.next_cursor, with the same query and filters").option("--max-read-bytes <bytes>", "most stored bytes to read, 1 through 67108864 (default 4194304)", integer3);
18139
+ const command = search.command("meetings").description("find words in stored meetings, indexing new ones first").argument("<query>", 'words, OR, (groups), -word, "a phrase", "a b"~N (within N lines), exact:word, from:"Name" (who said the line); date>=30d, project:, tag:, topic: choose meetings; a word also matches its other forms and spellings speech recognition garbled').option("--meeting-id <id>", "only this stored meeting", integer3).option("--identity-id <id>", "meetings with this participant identity; does not say who spoke a hit", integer3).option("--person-id <id>", "meetings with a participant linked to this person", integer3).option("--event-id <id>", "only meetings linked to this stored event", integer3).option("--series-id <id>", "only meetings in this stored series", integer3).option("--project <project>", "meetings confirmed in this project, by name, key or alias").option("--tag <name>", "meetings with this tag, by name or alias").option("--topic-name <name>", "meetings with this topic, by name or alias").option("--since-time <time>", "meetings starting at or after this ISO 8601 date or time, or 30m, 2h, 7d ago", moment("--since-time", false, readIn)).option("--until-time <time>", "meetings starting at or before this ISO 8601 date or time; a date alone covers that whole local day", moment("--until-time", true, readIn)).option("--limit <n>", "how many hits, 1 through 1000 (default 100)", integer3).option("--cursor <cursor>", "continue from the previous page's page.next_cursor, with the same query and filters").option("--max-read-bytes <bytes>", "most stored bytes to read, 1 through 67108864 (default 4194304)", integer3);
18060
18140
  annotate(command, {
18061
18141
  origin: "handwritten",
18062
18142
  effects: { remote: "none", local: "read" },
@@ -18116,7 +18196,7 @@ var addMeetingSearchCommandDefinition = /* @__PURE__ */ __name((program, deps) =
18116
18196
  var createMeetingSearchCommand = sharedCommand(createMeetingSearchCommandDefinition);
18117
18197
  var addMeetingSearchCommand = sharedCommand(addMeetingSearchCommandDefinition);
18118
18198
 
18119
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/meetings/cli/index.js
18199
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/meetings/cli/index.js
18120
18200
  var integer4 = /* @__PURE__ */ __name((text2) => {
18121
18201
  if (!/^[1-9]\d*$/.test(text2) || !Number.isSafeInteger(Number(text2)))
18122
18202
  throw new InvalidArgumentError("expected a positive integer");
@@ -18135,6 +18215,14 @@ var date = /* @__PURE__ */ __name((text2) => {
18135
18215
  }
18136
18216
  }, "date");
18137
18217
  var LOCAL_READ = { remote: "none", local: "read" };
18218
+ var REMOTE_READ2 = { remote: "read", local: "read" };
18219
+ var backendOf = /* @__PURE__ */ __name((value) => {
18220
+ if (!BACKENDS.includes(value))
18221
+ throw new InvalidArgumentError("expected archive, server or both");
18222
+ return value;
18223
+ }, "backendOf");
18224
+ var backendOption = /* @__PURE__ */ __name((command) => command.option("--backend <archive|server|both>", "where to read: the store (archive), the service (server), or both, kept in the store (default: both)", backendOf), "backendOption");
18225
+ var BACKEND_HELP = "--backend both asks the service with the part of the query it can filter, keeps what it returns, then runs the whole query over the store; each item says found_in archive, server or both. --offline reads the store only.";
18138
18226
  var LOCAL_WRITE = { remote: "none", local: "write" };
18139
18227
  var FETCH = { remote: "read", local: "write" };
18140
18228
  var addMeetingCommandsDefinition = /* @__PURE__ */ __name((program, deps) => {
@@ -18150,20 +18238,44 @@ var addMeetingCommandsDefinition = /* @__PURE__ */ __name((program, deps) => {
18150
18238
  const opts = command.optsWithGlobals();
18151
18239
  deps.write(value, opts.json ? "json" : opts.jsonl ? "jsonl" : "text");
18152
18240
  }, "print");
18153
- const list2 = queryWordsAfterOptions(group.command("list").description("stored meetings, newest first")).argument("[query...]", "field:value terms that narrow the list \u2014 the fields are below").addHelpText("after", `
18154
- ${fieldsHelp(MEETING_QUERY, MEETING_QUERY_GUIDE)}`);
18155
- annotate(list2, { effects: LOCAL_READ, query: defineQuery(MEETING_QUERY), output: { entity: "meeting" } });
18156
- output(list2).option("--limit <n>", "meetings per page", integer4, 100).option("--page <n>", "page number", integer4, 1).action(async (words3, opts, command) => {
18241
+ const access = /* @__PURE__ */ __name((command, backend) => ({
18242
+ ...backend === void 0 ? {} : { backend },
18243
+ offline: command.optsWithGlobals().offline === true,
18244
+ timezone: timezoneOf(deps.timezone),
18245
+ ...deps.now ? { now: deps.now() } : {}
18246
+ }), "access");
18247
+ const list2 = queryWordsAfterOptions(group.command("list").description("meetings, newest first: the service's and the stored ones, kept in the store")).argument("[query...]", "field:value terms that narrow the list \u2014 the fields are below").addHelpText("after", `
18248
+ ${fieldsHelp(MEETING_QUERY, MEETING_QUERY_GUIDE)}
18249
+ ${BACKEND_HELP}`);
18250
+ annotate(list2, {
18251
+ effects: REMOTE_READ2,
18252
+ partial: true,
18253
+ query: defineQuery(MEETING_QUERY),
18254
+ output: { entity: "meeting" }
18255
+ });
18256
+ backendOption(output(list2)).option("--limit <n>", "meetings per page", integer4, 100).option("--page <n>", "page number", integer4, 1).action(async (words3, opts, command) => {
18157
18257
  const query = meetingsQuery(words3.join(" "));
18158
- print(await meetingsList(deps.store, {
18159
- accountId: deps.accountId,
18160
- limit: opts.limit,
18161
- offset: (opts.page - 1) * opts.limit,
18162
- ...query ? { query } : {}
18163
- }), command);
18258
+ await deps.inRun(command, async () => {
18259
+ const { server: _server, ...answer } = await meetingsListThrough(deps.source, deps.store, {
18260
+ accountId: deps.accountId,
18261
+ limit: opts.limit,
18262
+ offset: (opts.page - 1) * opts.limit,
18263
+ ...query ? { query } : {}
18264
+ }, access(command, opts.backend));
18265
+ print(answer, command);
18266
+ });
18164
18267
  });
18165
- output(annotate(group.command("show"), { effects: LOCAL_READ, output: { entity: "meeting_details" } }).description("show a stored meeting").argument("<meeting>", "stored meeting id", integer4).addHelpText("after", SAVE_HELP)).action(async (id2, _opts, command) => {
18166
- print(await meetingDetailsAnswer(deps.store, id2, deps.accountId), command);
18268
+ backendOption(output(annotate(group.command("show"), { effects: REMOTE_READ2, partial: true, output: { entity: "meeting_details" } }).description("show a meeting, read again from the service with its people, transcript and documents").argument("<meeting>", "the stored meeting's number, its meeting: ref, or the service's id (provider_id)").addHelpText("after", `${SAVE_HELP}
18269
+ ${BACKEND_HELP}`))).action(async (meeting, opts, command) => {
18270
+ await deps.inRun(command, async () => {
18271
+ const shown = await meetingShowThrough(deps.source, deps.store, deps.accountId, meeting, access(command, opts.backend));
18272
+ const { item: item2 } = await meetingDetailsBody(deps.store, shown.details);
18273
+ print({
18274
+ item: shown.foundIn ? { ...item2, found_in: shown.foundIn } : item2,
18275
+ ...shown.missing ? { missing: shown.missing } : {},
18276
+ ...shown.meta ? { meta: shown.meta } : {}
18277
+ }, command);
18278
+ });
18167
18279
  });
18168
18280
  output(annotate(group.command("transcript"), { effects: LOCAL_READ, output: { entity: "meeting_transcript" } }).description("show current meeting transcripts").argument("<meeting>", "stored meeting id", integer4).option("--history", "include superseded transcript versions").addHelpText("after", SAVE_HELP)).action(async (id2, opts, command) => {
18169
18281
  print(await meetingTranscriptAnswer(deps.store, id2, deps.accountId, { history: opts.history }), command);
@@ -18248,6 +18360,14 @@ ${deps.importHelp}`);
18248
18360
  now: deps.now?.() ?? Date.now()
18249
18361
  }), command);
18250
18362
  });
18363
+ if (deps.management)
18364
+ addMeetingManagementCommands(group, {
18365
+ management: deps.management,
18366
+ print,
18367
+ output,
18368
+ inRun: deps.inRun,
18369
+ ...deps.askFirst ? { askFirst: deps.askFirst } : {}
18370
+ });
18251
18371
  const eventList = queryWordsAfterOptions(annotate(program.command("events").description("the owner's stored events"), {
18252
18372
  effects: { remote: "none", local: "none" }
18253
18373
  }).command("list")).description("list stored events").argument("[query...]", "event id, origin or time fields that narrow the list").addHelpText("after", `
@@ -18265,7 +18385,7 @@ ${fieldsHelp(EVENT_QUERY, MEETING_QUERY_GUIDE)}`);
18265
18385
  }, "addMeetingCommandsDefinition");
18266
18386
  var addMeetingCommands = sharedCommand(addMeetingCommandsDefinition);
18267
18387
 
18268
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/cli/list-query.js
18388
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/list-query.js
18269
18389
  var LIST_QUERY_GUIDE = "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md";
18270
18390
  var QUERY_ARGUMENT = "field:value terms that narrow the list \u2014 the fields are below";
18271
18391
  var withQuery = /* @__PURE__ */ __name((command, registry) => {
@@ -18399,7 +18519,7 @@ var termField = /* @__PURE__ */ __name((name, type, example, more = {}) => nativ
18399
18519
  var queryHelp = /* @__PURE__ */ __name((registry) => `
18400
18520
  ${fieldsHelp(registry, LIST_QUERY_GUIDE)}`, "queryHelp");
18401
18521
 
18402
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/cli/paging.js
18522
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/paging.js
18403
18523
  var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
18404
18524
  if (!/^\d+$/.test(value.trim()) || Number(value) < 1)
18405
18525
  throw new CliError("validation_error", `${flag} takes a whole number from 1 upwards, not "${value}"`);
@@ -18408,7 +18528,7 @@ var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
18408
18528
  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");
18409
18529
  var window = /* @__PURE__ */ __name(({ limit, page, all }) => all ? { offset: 0 } : { limit, offset: (page - 1) * limit }, "window");
18410
18530
 
18411
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/cli/messenger/chat-answers.js
18531
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/messenger/chat-answers.js
18412
18532
  var defined = /* @__PURE__ */ __name((record2) => Object.fromEntries(Object.entries(record2).filter(([, value]) => value !== void 0)), "defined");
18413
18533
  var chatRef = /* @__PURE__ */ __name((account, chat) => formatReference({ type: "chat", provider: account.provider, account: account.account, chat }), "chatRef");
18414
18534
  var settingsOf = /* @__PURE__ */ __name((settings) => defined({
@@ -18670,7 +18790,7 @@ var sessionAnswer = /* @__PURE__ */ __name(({ current, client, device, location,
18670
18790
  ...createdAt === void 0 ? {} : { created_at: createdAt }
18671
18791
  }), "sessionAnswer");
18672
18792
 
18673
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/deps.js
18793
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/deps.js
18674
18794
  var accountStore = /* @__PURE__ */ __name(async (deps) => (await deps.store()).forAccount(await deps.account()), "accountStore");
18675
18795
  var crossAccount = /* @__PURE__ */ __name((deps, _reason) => deps.store(), "crossAccount");
18676
18796
  var NO_LOCAL_STORE = "this answer comes from the messenger, not from the local store";
@@ -18732,7 +18852,7 @@ var storedDeps = /* @__PURE__ */ __name((messenger, store, account, guard) => ({
18732
18852
  }), "storedDeps");
18733
18853
  var storeModeDeps = /* @__PURE__ */ __name((messenger, store, account, guard) => ({ ...storedDeps(messenger, store, account, guard), offline: false, reads: "store" }), "storeModeDeps");
18734
18854
 
18735
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/ports/messenger.js
18855
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/ports/messenger.js
18736
18856
  var throughWrapper = /* @__PURE__ */ __name((inner, handled, wrap = (_, call) => call) => new Proxy(handled, {
18737
18857
  get: /* @__PURE__ */ __name((own, key) => {
18738
18858
  if (key in own)
@@ -18749,12 +18869,12 @@ var capability = /* @__PURE__ */ __name((adapter, method, what) => {
18749
18869
  return found.bind(adapter);
18750
18870
  }, "capability");
18751
18871
 
18752
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/sends/send-id.js
18872
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/sends/send-id.js
18753
18873
  import { randomBytes } from "node:crypto";
18754
18874
  var newSendId = /* @__PURE__ */ __name(() => randomBytes(8).readBigInt64BE().toString(), "newSendId");
18755
18875
  var newOperationId = newSendId;
18756
18876
 
18757
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/questions.js
18877
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/questions.js
18758
18878
  var LINKS = /https?:\/\/\S+/g;
18759
18879
  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");
18760
18880
  var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker = "others" }) => {
@@ -18784,7 +18904,7 @@ var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker
18784
18904
  });
18785
18905
  }, "questions");
18786
18906
 
18787
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/task-categories.js
18907
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/task-categories.js
18788
18908
  var names = /* @__PURE__ */ __name((categories) => categories.map(({ name }) => name).join(", "), "names");
18789
18909
  var taskCategoryOf = /* @__PURE__ */ __name((categories = DEFAULT_TASK_CATEGORIES, flag = "--category") => (typed) => {
18790
18910
  const name = typed.trim().toLowerCase();
@@ -18841,7 +18961,7 @@ var categorize = /* @__PURE__ */ __name((text2, categories = DEFAULT_TASK_CATEGO
18841
18961
  return best.name;
18842
18962
  }, "categorize");
18843
18963
 
18844
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/task-rules.js
18964
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/task-rules.js
18845
18965
  var taskAccount = /* @__PURE__ */ __name(({ provider, account }) => `${provider}:${account}`, "taskAccount");
18846
18966
  var RULES_IN = {
18847
18967
  dialog: "all",
@@ -19047,14 +19167,14 @@ var applyTaskRulesToChats = /* @__PURE__ */ __name(async (store, account, chatId
19047
19167
  return passes;
19048
19168
  }, "applyTaskRulesToChats");
19049
19169
 
19050
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/moment.js
19051
- var AGO = /^(\d+)(m|h|d)$/;
19052
- var AGO_MS = { m: 6e4, h: 36e5, d: 864e5 };
19170
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/moment.js
19171
+ var AGO2 = /^(\d+)(m|h|d)$/;
19172
+ var AGO_MS2 = { m: 6e4, h: 36e5, d: 864e5 };
19053
19173
  var DATE = /^\d{4}-\d{2}-\d{2}/;
19054
19174
  var momentOf = /* @__PURE__ */ __name((reference, flag = "--since", now = Date.now(), at = {}) => {
19055
19175
  const wanted = reference.trim();
19056
- const [, amount, unit] = AGO.exec(wanted) ?? [];
19057
- const time = amount && unit ? now - Number(amount) * (AGO_MS[unit] ?? 0) : DATE.test(wanted) ? calendarMoment(wanted, flag, at) : Number.NaN;
19176
+ const [, amount, unit] = AGO2.exec(wanted) ?? [];
19177
+ const time = amount && unit ? now - Number(amount) * (AGO_MS2[unit] ?? 0) : DATE.test(wanted) ? calendarMoment(wanted, flag, at) : Number.NaN;
19058
19178
  if (Number.isNaN(time)) {
19059
19179
  throw new CliError("validation_error", `${flag} takes an ISO 8601 time or 30m, 2h, 1d ago \u2014 not "${wanted}"`);
19060
19180
  }
@@ -19062,8 +19182,8 @@ var momentOf = /* @__PURE__ */ __name((reference, flag = "--since", now = Date.n
19062
19182
  }, "momentOf");
19063
19183
  var aheadOf = /* @__PURE__ */ __name((reference, flag, now = Date.now(), at = {}) => {
19064
19184
  const wanted = reference.trim();
19065
- const [, amount, unit] = AGO.exec(wanted) ?? [];
19066
- const time = amount && unit ? now + Number(amount) * (AGO_MS[unit] ?? 0) : DATE.test(wanted) ? calendarMoment(wanted, flag, at) : Number.NaN;
19185
+ const [, amount, unit] = AGO2.exec(wanted) ?? [];
19186
+ const time = amount && unit ? now + Number(amount) * (AGO_MS2[unit] ?? 0) : DATE.test(wanted) ? calendarMoment(wanted, flag, at) : Number.NaN;
19067
19187
  if (Number.isNaN(time)) {
19068
19188
  throw new CliError("validation_error", `${flag} takes an ISO 8601 time or 30m, 2h, 3d from now \u2014 not "${wanted}"`);
19069
19189
  }
@@ -19087,7 +19207,7 @@ var dateWindow = /* @__PURE__ */ __name(({ sinceTime, untilTime, zone, now = Dat
19087
19207
  };
19088
19208
  }, "dateWindow");
19089
19209
 
19090
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/patience.js
19210
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/patience.js
19091
19211
  import { setTimeout as sleep } from "node:timers/promises";
19092
19212
  var LONGEST_WAIT_MS = 5 * 60 * 1e3;
19093
19213
  var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
@@ -19110,10 +19230,10 @@ var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
19110
19230
  }
19111
19231
  }, "patiently");
19112
19232
 
19113
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/archive.js
19233
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/archive.js
19114
19234
  import { setTimeout as sleep2 } from "node:timers/promises";
19115
19235
 
19116
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/backfill-estimate.js
19236
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/backfill-estimate.js
19117
19237
  var REQUEST_MS = 400;
19118
19238
  var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, maxPages, pauseMs }) => {
19119
19239
  const lowest = ranges[0];
@@ -19136,13 +19256,13 @@ var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, max
19136
19256
  };
19137
19257
  }, "estimateBackfill");
19138
19258
 
19139
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/domain/recovery.js
19259
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/domain/recovery.js
19140
19260
  var withRecovery = /* @__PURE__ */ __name((error) => ({
19141
19261
  ...error,
19142
19262
  retryable: typeof error.retryable === "boolean" ? error.retryable : error.code === "rate_limited" || error.status === 429
19143
19263
  }), "withRecovery");
19144
19264
 
19145
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/batch.js
19265
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/batch.js
19146
19266
  var actionable = /* @__PURE__ */ __name((error) => {
19147
19267
  if (isCliFailure(error))
19148
19268
  return withRecovery({ code: error.code, message: error.message, ...error.details });
@@ -19225,7 +19345,7 @@ var mergeBatches = /* @__PURE__ */ __name((a, b) => {
19225
19345
  };
19226
19346
  }, "mergeBatches");
19227
19347
 
19228
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/search/groups.js
19348
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/search/groups.js
19229
19349
  var ALL = "all";
19230
19350
  var OWNER_NOTES = { provider: "notes", account: INTERNAL_NOTES };
19231
19351
  var NOT_GROUP_NAMES = /* @__PURE__ */ new Set([ALL, "bots"]);
@@ -19297,7 +19417,7 @@ var groupEntries = /* @__PURE__ */ __name((saved) => ({
19297
19417
  [ALL]: [ALL]
19298
19418
  }), "groupEntries");
19299
19419
 
19300
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/search-kind.js
19420
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/search-kind.js
19301
19421
  var NO_MAIL = "no_mail";
19302
19422
  var MAIL = "email";
19303
19423
  var groupLockOf = /* @__PURE__ */ __name((app, env) => {
@@ -19371,7 +19491,7 @@ var accountsOfKind = /* @__PURE__ */ __name((kind, chosen, held, explicit, comma
19371
19491
  return chosenMail.map(({ provider, account }) => ({ provider, account }));
19372
19492
  }, "accountsOfKind");
19373
19493
 
19374
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/message-resolution.js
19494
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/message-resolution.js
19375
19495
  var readChatId = /* @__PURE__ */ __name(async (deps, reference, store, account) => {
19376
19496
  if (deps.reads !== "store")
19377
19497
  return keptChatId(deps.messenger, reference, store, account);
@@ -19485,12 +19605,14 @@ var chatAmong = /* @__PURE__ */ __name(async (messenger, store, accounts, refere
19485
19605
  const [only] = accounts;
19486
19606
  if (accounts.length === 1 && only)
19487
19607
  return { account: only, chatId: await storedChatId(messenger, reference, store, only, { includeLeft: true }) };
19488
- const found = (await Promise.all(accounts.map(async (account) => {
19489
- const held = (await store.chats.chats(account, {})).items;
19490
- const chatId = await storedChatId(messenger, reference, store, account).catch(missing);
19608
+ const among = /* @__PURE__ */ __name(async (includeLeft) => (await Promise.all(accounts.map(async (account) => {
19609
+ const held = (await store.chats.chats(account, includeLeft ? { includeLeft } : {})).items;
19610
+ const chatId = await storedChatId(messenger, reference, store, account, { includeLeft }).catch(missing);
19491
19611
  const chat = held.find((one2) => one2.id === chatId);
19492
19612
  return chat ? [{ account, chat }] : [];
19493
- }))).flat();
19613
+ }))).flat(), "among");
19614
+ const current = await among(false);
19615
+ const found = current.length > 0 ? current : await among(true);
19494
19616
  const [one] = found;
19495
19617
  if (found.length === 1 && one)
19496
19618
  return { account: one.account, chatId: one.chat.id };
@@ -19570,7 +19692,7 @@ var chatsMatchingIn = /* @__PURE__ */ __name(async (store, accounts, pattern) =>
19570
19692
  }, "chatsMatchingIn");
19571
19693
  var isText = /* @__PURE__ */ __name((value) => typeof value === "string" && value !== "", "isText");
19572
19694
 
19573
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/images/context/index.js
19695
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/images/context/index.js
19574
19696
  var CONTEXT_MESSAGES = 3;
19575
19697
  var CONTEXT_MINUTES = 10;
19576
19698
  var MAX_CHARS = 1200;
@@ -19594,12 +19716,12 @@ var context = {
19594
19716
  }, "describe")
19595
19717
  };
19596
19718
 
19597
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/images/registry.js
19719
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/images/registry.js
19598
19720
  var BUILT_INS = [context];
19599
19721
  var providers = [...BUILT_INS];
19600
19722
  var registeredImageProviders = /* @__PURE__ */ __name(() => providers, "registeredImageProviders");
19601
19723
 
19602
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/conversations.js
19724
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/conversations.js
19603
19725
  var READ_PAGE = 5e3;
19604
19726
  var CHAIN = 50;
19605
19727
  var CONVERSATION_QUERY = {
@@ -19751,7 +19873,7 @@ var sized = /* @__PURE__ */ __name((size2) => {
19751
19873
  return size2;
19752
19874
  }, "sized");
19753
19875
 
19754
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/embeddings-maintenance.js
19876
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/embeddings-maintenance.js
19755
19877
  var REFRESH_BOUNDS = { maxChats: 20, maxChunks: 2e3 };
19756
19878
  var MESSAGE_PAGE = 5e3;
19757
19879
  var PER_SESSION = 8;
@@ -19770,7 +19892,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = chosenTextModel(dep
19770
19892
  price: remote.price,
19771
19893
  installed: true,
19772
19894
  perBatch: PER_REQUEST * concurrency,
19773
- open: /* @__PURE__ */ __name(async () => (await import("./remote-R324LAUL.js")).openRemote(remote, apiKey, {
19895
+ open: /* @__PURE__ */ __name(async () => (await import("./remote-RGJXO7XK.js")).openRemote(remote, apiKey, {
19774
19896
  concurrency,
19775
19897
  env: deps.env ?? process.env
19776
19898
  }), "open")
@@ -19790,7 +19912,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = chosenTextModel(dep
19790
19912
  if (!isTextModelInstalled(model, directory2))
19791
19913
  throw notDownloaded(model.id);
19792
19914
  if (apart) {
19793
- const { openProcess } = await import("./process-MNZTQ2DA.js");
19915
+ const { openProcess } = await import("./process-6Q23D3TO.js");
19794
19916
  return openProcess(model, directory2, { threads: threads ?? defaultThreads() });
19795
19917
  }
19796
19918
  return openEmbedder(model, directory2, { threads: threads ?? defaultThreads() });
@@ -20079,7 +20201,7 @@ var shaped = /* @__PURE__ */ __name(({ chatId, builtAt, algorithmVersion, pendin
20079
20201
  return { ...one, state };
20080
20202
  }, "shaped");
20081
20203
 
20082
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/search-catchup.js
20204
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/search-catchup.js
20083
20205
  var CATCH_UP_BOUNDS = { maxChunks: 500, maxMessages: 1e4, timeMs: 3e4 };
20084
20206
  var validateCatchUpBounds = /* @__PURE__ */ __name((options2) => {
20085
20207
  for (const [key, value, maximum] of [
@@ -20132,7 +20254,7 @@ var catchUpSearch = /* @__PURE__ */ __name(async (deps, chat, options2, signal,
20132
20254
  }
20133
20255
  }, "catchUpSearch");
20134
20256
 
20135
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/archive.js
20257
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/archive.js
20136
20258
  var pushed = /* @__PURE__ */ __name((deps, what) => {
20137
20259
  if (deps.reads === "store") {
20138
20260
  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`);
@@ -20513,7 +20635,7 @@ var timeOfKey = /* @__PURE__ */ __name(async (store, account, chatId, key, byTim
20513
20635
  return message?.timestamp ?? fallback;
20514
20636
  }, "timeOfKey");
20515
20637
 
20516
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/botcheck/check.js
20638
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/botcheck/check.js
20517
20639
  var DAY_MS = 864e5;
20518
20640
  var NEW_DAYS = 30;
20519
20641
  var SAME_TEXT_MIN = 20;
@@ -20590,7 +20712,7 @@ var scorePerson = /* @__PURE__ */ __name(({ subject, provider, activity, photos,
20590
20712
  };
20591
20713
  }, "scorePerson");
20592
20714
 
20593
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/http/time-limit.js
20715
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/http/time-limit.js
20594
20716
  var timeLimit = /* @__PURE__ */ __name((ms) => {
20595
20717
  const controller = new AbortController();
20596
20718
  const timer = setTimeout(() => controller.abort(new DOMException("The operation timed out.", "TimeoutError")), ms);
@@ -20606,7 +20728,7 @@ var withTimeLimit = /* @__PURE__ */ __name(async (ms, run2) => {
20606
20728
  }
20607
20729
  }, "withTimeLimit");
20608
20730
 
20609
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/botcheck/registries.js
20731
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/botcheck/registries.js
20610
20732
  var REGISTRIES = {
20611
20733
  cas: { title: "Combot Anti-Spam (CAS)", docs: "https://cas.chat/api" },
20612
20734
  lols: { title: "lols.bot", docs: "https://api.lols.bot/lols-bot.json" }
@@ -20693,7 +20815,7 @@ var notCovered = /* @__PURE__ */ __name((messenger, now = /* @__PURE__ */ new Da
20693
20815
  detail: `lists Telegram accounts only, not ${messenger} ones`
20694
20816
  })), "notCovered");
20695
20817
 
20696
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/botcheck/service.js
20818
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/botcheck/service.js
20697
20819
  var ACTIVITY_MESSAGES = 1e3;
20698
20820
  var botCheckService = /* @__PURE__ */ __name((deps) => {
20699
20821
  const subjectOf = /* @__PURE__ */ __name(async (reference) => {
@@ -20781,7 +20903,7 @@ var botCheckService = /* @__PURE__ */ __name((deps) => {
20781
20903
  };
20782
20904
  }, "botCheckService");
20783
20905
 
20784
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/domain/thread.js
20906
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/domain/thread.js
20785
20907
  var threadIdOf = /* @__PURE__ */ __name((value) => {
20786
20908
  if (value === void 0)
20787
20909
  return void 0;
@@ -20791,7 +20913,7 @@ var threadIdOf = /* @__PURE__ */ __name((value) => {
20791
20913
  return id2;
20792
20914
  }, "threadIdOf");
20793
20915
 
20794
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/chat-stats.js
20916
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/chat-stats.js
20795
20917
  var TOP_POSTS = 5;
20796
20918
  var JOINS = /* @__PURE__ */ new Set(["join", "add"]);
20797
20919
  var LEAVES = /* @__PURE__ */ new Set(["leave", "remove"]);
@@ -20908,7 +21030,7 @@ var median = /* @__PURE__ */ __name((values) => {
20908
21030
  return Math.round(sorted.length % 2 === 0 ? ((sorted[middle - 1] ?? upper) + upper) / 2 : upper);
20909
21031
  }, "median");
20910
21032
 
20911
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/member-history.js
21033
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/member-history.js
20912
21034
  var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
20913
21035
  const events = [];
20914
21036
  for (const stay of stays) {
@@ -20940,7 +21062,7 @@ var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
20940
21062
  return events.filter(({ at }) => Date.parse(at) >= since).sort((a, b) => Date.parse(a.at) - Date.parse(b.at) || a.id.localeCompare(b.id));
20941
21063
  }, "memberEvents");
20942
21064
 
20943
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/chats.js
21065
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/chats.js
20944
21066
  var EVENTS_DAYS = 7;
20945
21067
  var TRACKED_DAYS = 30;
20946
21068
  var STATS_PAGE = 1e3;
@@ -21235,7 +21357,7 @@ var storedMembers = /* @__PURE__ */ __name(async (store, chatId) => {
21235
21357
  return members.length === 0 ? null : members;
21236
21358
  }, "storedMembers");
21237
21359
 
21238
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/inbox.js
21360
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/inbox.js
21239
21361
  var INBOX_CHATS = 20;
21240
21362
  var REVIEW_DAYS = 3;
21241
21363
  var UNANSWERED_HOURS = 24;
@@ -21443,7 +21565,7 @@ var inboxService = /* @__PURE__ */ __name((deps) => {
21443
21565
  };
21444
21566
  }, "inboxService");
21445
21567
 
21446
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/person-meetings.js
21568
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/person-meetings.js
21447
21569
  var SCAN = 1e3;
21448
21570
  var personMeetings = /* @__PURE__ */ __name(async (store, people, accounts, { limit = 10, since, until } = {}) => {
21449
21571
  const byId2 = new Map(accounts.map((one) => [one.id, one]));
@@ -21495,7 +21617,7 @@ var personMeetings = /* @__PURE__ */ __name(async (store, people, accounts, { li
21495
21617
  return { items, total: newest.length, hasMore: cut || newest.length > limit };
21496
21618
  }, "personMeetings");
21497
21619
 
21498
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/person-context.js
21620
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/person-context.js
21499
21621
  var CONTEXT_MESSAGES2 = 10;
21500
21622
  var CONTEXT_BYTES = 64 * 1024;
21501
21623
  var toContext = /* @__PURE__ */ __name((key, message, chatTitle2) => ({
@@ -21801,10 +21923,10 @@ var personMessages = /* @__PURE__ */ __name(async (store, asked, reference, { ch
21801
21923
  };
21802
21924
  }, "personMessages");
21803
21925
 
21804
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
21926
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
21805
21927
  import { createHash } from "node:crypto";
21806
21928
 
21807
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/meeting-reference.js
21929
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/meeting-reference.js
21808
21930
  var missing2 = /* @__PURE__ */ __name(() => new CliError("not_found", "the meeting evidence is unavailable for this account"), "missing");
21809
21931
  var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId, reference, options2 = {}) => {
21810
21932
  const parsed = parseMeetingReference(reference);
@@ -21822,7 +21944,7 @@ var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId,
21822
21944
  return { parsed, meeting };
21823
21945
  }, "authorizedMeetingMetadata");
21824
21946
 
21825
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
21947
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
21826
21948
  var hash = /* @__PURE__ */ __name((value) => createHash("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
21827
21949
  var checkMeetingCancelled = /* @__PURE__ */ __name((signal) => {
21828
21950
  if (signal?.aborted)
@@ -22021,7 +22143,7 @@ var readMeetingEvidence = /* @__PURE__ */ __name(async (store, accountId, refere
22021
22143
  return { ...packet, fingerprint: hash(packet) };
22022
22144
  }, "readMeetingEvidence");
22023
22145
 
22024
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/person-meeting-context.js
22146
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/person-meeting-context.js
22025
22147
  var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference, options2) => {
22026
22148
  const { meetings = 10, cues = 5, bytes: bytes2 = 64 * 1024, scanLimit = 1e3, since, signal } = options2;
22027
22149
  const requestedAccounts = options2.accountIds;
@@ -22120,7 +22242,7 @@ var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference,
22120
22242
  };
22121
22243
  }, "personMeetingContext");
22122
22244
 
22123
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/person-preparation.js
22245
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/person-preparation.js
22124
22246
  var PREPARE_BYTES = 96 * 1024;
22125
22247
  var MEETINGS = 5;
22126
22248
  var CUES = 3;
@@ -22243,7 +22365,7 @@ var meetingsOf = /* @__PURE__ */ __name(async (store, uid, stored, since, left)
22243
22365
  }
22244
22366
  }, "meetingsOf");
22245
22367
 
22246
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/person-profile.js
22368
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/person-profile.js
22247
22369
  var personProfile = /* @__PURE__ */ __name(async (deps, person, known2) => {
22248
22370
  const online = deps.offline ? void 0 : await deps.connection();
22249
22371
  const held = await storeIfOpen(deps);
@@ -22313,7 +22435,7 @@ var quiet = /* @__PURE__ */ __name((facts) => facts.chats.map(({ id: id2, title,
22313
22435
  complete: false
22314
22436
  })), "quiet");
22315
22437
 
22316
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/person-timeline.js
22438
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/person-timeline.js
22317
22439
  var TIMELINE_ITEMS = 50;
22318
22440
  var TIMELINE_MAX = 500;
22319
22441
  var SCOPES = ["personal", "work"];
@@ -22375,7 +22497,7 @@ var personTimeline = /* @__PURE__ */ __name(async (store, asked, reference, { sc
22375
22497
  };
22376
22498
  }, "personTimeline");
22377
22499
 
22378
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/chat-coverage.js
22500
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/chat-coverage.js
22379
22501
  var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
22380
22502
  const ids = [...new Set(chatIds)];
22381
22503
  if (ids.length === 0)
@@ -22401,7 +22523,7 @@ var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
22401
22523
  }));
22402
22524
  }, "chatCoverage");
22403
22525
 
22404
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/context/evidence-response.js
22526
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/context/evidence-response.js
22405
22527
  var contextSourceKey = /* @__PURE__ */ __name((source) => JSON.stringify([source.kind, source.accountId, source.provider, source.account]), "contextSourceKey");
22406
22528
  var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
22407
22529
  const fail2 = /* @__PURE__ */ __name(() => {
@@ -22465,7 +22587,7 @@ var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
22465
22587
  }
22466
22588
  }, "validateContextEvidencePage");
22467
22589
 
22468
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/context/read-budget.js
22590
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/context/read-budget.js
22469
22591
  var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
22470
22592
  if (!limits || typeof limits !== "object" || Array.isArray(limits))
22471
22593
  throw new CliError("validation_error", "limits needs a context read allowance");
@@ -22518,7 +22640,7 @@ var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
22518
22640
  };
22519
22641
  }, "contextReadBudget");
22520
22642
 
22521
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/context-evidence.js
22643
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/context-evidence.js
22522
22644
  var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits) => {
22523
22645
  if (!port || typeof port.read !== "function")
22524
22646
  throw new CliError("configuration_error", "context evidence reader is unavailable");
@@ -22562,7 +22684,7 @@ var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits)
22562
22684
  };
22563
22685
  }, "createContextEvidenceReader");
22564
22686
 
22565
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/excerpt.js
22687
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/excerpt.js
22566
22688
  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");
22567
22689
  var excerpt = /* @__PURE__ */ __name((text2, query, size2 = 240, options2 = {}) => {
22568
22690
  const flat = text2.replace(/\s+/g, " ").trim();
@@ -22578,7 +22700,7 @@ var excerpt = /* @__PURE__ */ __name((text2, query, size2 = 240, options2 = {})
22578
22700
  }, "excerpt");
22579
22701
  var withExcerpt = /* @__PURE__ */ __name(({ matchedText, ...hit }, query) => ({ ...hit, excerpt: excerpt(matchedText ?? hit.text, query) }), "withExcerpt");
22580
22702
 
22581
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/project-gathering-around.js
22703
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/project-gathering-around.js
22582
22704
  var storedMessageNeighbours = /* @__PURE__ */ __name((messages) => ({
22583
22705
  async around(ref, window3) {
22584
22706
  const at = parseLocator(ref);
@@ -22673,7 +22795,7 @@ var storedNeighbours = /* @__PURE__ */ __name((store) => {
22673
22795
  };
22674
22796
  }, "storedNeighbours");
22675
22797
 
22676
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/project-gathering-request.js
22798
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/project-gathering-request.js
22677
22799
  import { createHash as createHash2 } from "node:crypto";
22678
22800
  var DAY = 864e5;
22679
22801
  var MAX_TIME = 864e13;
@@ -22989,7 +23111,7 @@ var decodeCheckpoint = /* @__PURE__ */ __name((text2, plan) => {
22989
23111
  return value;
22990
23112
  }, "decodeCheckpoint");
22991
23113
 
22992
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/project-gathering.js
23114
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/project-gathering.js
22993
23115
  var terminal = /* @__PURE__ */ new Set(["done", "unavailable", "failed"]);
22994
23116
  var PAGE2 = 20;
22995
23117
  var PEOPLE = 20;
@@ -23393,7 +23515,7 @@ var peopleOf = /* @__PURE__ */ __name((items, senderOf) => {
23393
23515
  return [...byKey.values()].sort((a, b) => b.items - a.items || a.name.localeCompare(b.name));
23394
23516
  }, "peopleOf");
23395
23517
 
23396
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/meeting-project-candidate-matching.js
23518
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/meeting-project-candidate-matching.js
23397
23519
  var normalizedText = /* @__PURE__ */ __name((text2) => text2.normalize("NFKC").toLowerCase().replace(/\s+/gu, " "), "normalizedText");
23398
23520
  var termsOf = /* @__PURE__ */ __name((entry) => [
23399
23521
  { name: entry.name, kind: "canonical" },
@@ -23437,7 +23559,7 @@ var matchVocabularyTerms = /* @__PURE__ */ __name((catalog, texts) => {
23437
23559
  return result.sort((a, b) => Number(a.entry.id) - Number(b.entry.id));
23438
23560
  }, "matchVocabularyTerms");
23439
23561
 
23440
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/project-gathering-mentions.js
23562
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/project-gathering-mentions.js
23441
23563
  var KINDS = ["project", "tag", "topic"];
23442
23564
  var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering, options2 = {}) => {
23443
23565
  if (typeof vocabulary?.vocabulary !== "function")
@@ -23492,7 +23614,7 @@ var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering,
23492
23614
  };
23493
23615
  }, "findEvidenceMentions");
23494
23616
 
23495
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/project-purposes.js
23617
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/project-purposes.js
23496
23618
  var BUILT_IN_PURPOSES = ["work", "sales", "support", "other"];
23497
23619
  var DEFAULT_PURPOSES = ["work"];
23498
23620
  var LINK_PURPOSE = "work";
@@ -23522,7 +23644,7 @@ var purposeList = /* @__PURE__ */ __name((value, previous = []) => [
23522
23644
  ...value.split(",").map((one) => one.trim()).filter(Boolean)
23523
23645
  ], "purposeList");
23524
23646
 
23525
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/stored-project-gathering.js
23647
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/stored-project-gathering.js
23526
23648
  var storedChatCount = /* @__PURE__ */ __name((store) => async (account, chatId, { since, until }) => {
23527
23649
  const window3 = { since: new Date(since).toISOString(), until: new Date(until - 1).toISOString() };
23528
23650
  const [messages, newest, oldest] = await Promise.all([
@@ -23833,7 +23955,7 @@ var purposeHintOf = /* @__PURE__ */ __name((linked, rows, of) => {
23833
23955
  return { chat: top.ref, relationship: link4.relationship, items, of };
23834
23956
  }, "purposeHintOf");
23835
23957
 
23836
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/people.js
23958
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/people.js
23837
23959
  var peopleService = /* @__PURE__ */ __name((deps) => {
23838
23960
  const localCard = /* @__PURE__ */ __name(async (card, includeNotes = false) => {
23839
23961
  const held = await storeIfOpen(deps);
@@ -24098,7 +24220,7 @@ var withoutPhone = /* @__PURE__ */ __name((answer) => {
24098
24220
  return rest;
24099
24221
  }, "withoutPhone");
24100
24222
 
24101
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/task-stats.js
24223
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/task-stats.js
24102
24224
  var TASK_STATS_BY = ["chat", "meeting", "project"];
24103
24225
  var PERIOD_FIELD = "created";
24104
24226
  var refuseNestedPeriod = /* @__PURE__ */ __name((node, top = true) => {
@@ -24218,18 +24340,18 @@ var meetingIdOf = /* @__PURE__ */ __name((group) => {
24218
24340
  }
24219
24341
  }, "meetingIdOf");
24220
24342
  var meetingNames = /* @__PURE__ */ __name(async (store, groups) => {
24221
- const meetingOf = new Map(groups.flatMap((group) => {
24343
+ const meetingOf2 = new Map(groups.flatMap((group) => {
24222
24344
  const id2 = meetingIdOf(group);
24223
24345
  return id2 === void 0 ? [] : [[group, id2]];
24224
24346
  }));
24225
- const titles = await store.tasks.statNames("meeting", [...new Set(meetingOf.values())]);
24226
- return new Map([...meetingOf].flatMap(([group, id2]) => {
24347
+ const titles = await store.tasks.statNames("meeting", [...new Set(meetingOf2.values())]);
24348
+ return new Map([...meetingOf2].flatMap(([group, id2]) => {
24227
24349
  const title = titles.get(id2);
24228
24350
  return title === void 0 ? [] : [[group, title]];
24229
24351
  }));
24230
24352
  }, "meetingNames");
24231
24353
 
24232
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/task-tag-filters.js
24354
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/task-tag-filters.js
24233
24355
  var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
24234
24356
  const tags = /* @__PURE__ */ new Map();
24235
24357
  for (const node of query ? walkQuery(query.root) : [])
@@ -24238,7 +24360,7 @@ var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
24238
24360
  return tags;
24239
24361
  }, "taskTagFilters");
24240
24362
 
24241
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/tasks.js
24363
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/tasks.js
24242
24364
  var TASK_QUERY = {
24243
24365
  entity: "task",
24244
24366
  backend: "sql",
@@ -24738,7 +24860,7 @@ var taskView = /* @__PURE__ */ __name(async (store, account, task2) => {
24738
24860
  };
24739
24861
  }, "taskView");
24740
24862
 
24741
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/mail/owed.js
24863
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/mail/owed.js
24742
24864
  var mailTurn = /* @__PURE__ */ __name((newest) => {
24743
24865
  if (newest === null)
24744
24866
  return null;
@@ -24747,7 +24869,7 @@ var mailTurn = /* @__PURE__ */ __name((newest) => {
24747
24869
  return newest.addressed ? "owed" : null;
24748
24870
  }, "mailTurn");
24749
24871
 
24750
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/agenda-mail.js
24872
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/agenda-mail.js
24751
24873
  var absent = /* @__PURE__ */ __name((error) => {
24752
24874
  if (error instanceof CliError && error.code === "not_found")
24753
24875
  return void 0;
@@ -24805,7 +24927,7 @@ var mailActivity = /* @__PURE__ */ __name(async (store, account, since, chats) =
24805
24927
  };
24806
24928
  }, "mailActivity");
24807
24929
 
24808
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/agenda.js
24930
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/agenda.js
24809
24931
  var DAY2 = 864e5;
24810
24932
  var AGENDA_DEFAULTS = { unanswered: DAY2, waiting: 7 * DAY2 };
24811
24933
  var CLAIMS = ["none", "mine", "others", "any"];
@@ -25059,18 +25181,18 @@ var agendaItem = /* @__PURE__ */ __name((shown) => {
25059
25181
  };
25060
25182
  }, "agendaItem");
25061
25183
 
25062
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/media-archive.js
25184
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/media-archive.js
25063
25185
  import { setTimeout as sleep3 } from "node:timers/promises";
25064
25186
 
25065
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
25187
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
25066
25188
  import { lstat } from "node:fs/promises";
25067
25189
 
25068
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
25190
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
25069
25191
  import { createHash as createHash4, randomUUID as randomUUID3 } from "node:crypto";
25070
25192
  import { open as open3, rename as rename2, unlink as unlink2 } from "node:fs/promises";
25071
25193
  import { join as join5 } from "node:path";
25072
25194
 
25073
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-metadata.js
25195
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-metadata.js
25074
25196
  import { createHash as createHash3 } from "node:crypto";
25075
25197
  var metadataLimit = 16384;
25076
25198
  var partialIdentity = /* @__PURE__ */ __name((locator) => JSON.stringify([locator.provider, locator.account, locator.occurrenceId, locator.assetId]), "partialIdentity");
@@ -25130,7 +25252,7 @@ var readPartialMetadata = /* @__PURE__ */ __name(async (path, locator, maxBytes,
25130
25252
  }
25131
25253
  }, "readPartialMetadata");
25132
25254
 
25133
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-writer.js
25255
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-writer.js
25134
25256
  import { randomUUID as randomUUID2 } from "node:crypto";
25135
25257
  import { open as open2, rename, unlink } from "node:fs/promises";
25136
25258
  import { join as join4 } from "node:path";
@@ -25222,7 +25344,7 @@ var partialWriter = /* @__PURE__ */ __name(async (input) => {
25222
25344
  };
25223
25345
  }, "partialWriter");
25224
25346
 
25225
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
25347
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
25226
25348
  var NativeRecordingPartialStore = class {
25227
25349
  static {
25228
25350
  __name(this, "NativeRecordingPartialStore");
@@ -25329,12 +25451,12 @@ var NativeRecordingPartialStore = class {
25329
25451
  }
25330
25452
  };
25331
25453
 
25332
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
25454
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
25333
25455
  import { createHash as createHash5 } from "node:crypto";
25334
25456
  import { link as link2 } from "node:fs/promises";
25335
25457
  import { basename as basename2, dirname as dirname5, join as join7, resolve as resolve2 } from "node:path";
25336
25458
 
25337
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-files.js
25459
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-files.js
25338
25460
  import { unlink as unlink3 } from "node:fs/promises";
25339
25461
  var verifiedPublicationFile = /* @__PURE__ */ __name(async (path, expected2, signal, writable = false) => {
25340
25462
  signal?.throwIfAborted();
@@ -25369,7 +25491,7 @@ var commitPublication = /* @__PURE__ */ __name(async (root, partialPath, finalPa
25369
25491
  signal?.throwIfAborted();
25370
25492
  }, "commitPublication");
25371
25493
 
25372
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-journal.js
25494
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-journal.js
25373
25495
  import { randomUUID as randomUUID4 } from "node:crypto";
25374
25496
  import { open as open4, rename as rename3, unlink as unlink4 } from "node:fs/promises";
25375
25497
  import { join as join6 } from "node:path";
@@ -25442,7 +25564,7 @@ var writePublicationJournal = /* @__PURE__ */ __name(async (root, path, prefix,
25442
25564
  }
25443
25565
  }, "writePublicationJournal");
25444
25566
 
25445
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
25567
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
25446
25568
  var NativeRecordingPublication = class {
25447
25569
  static {
25448
25570
  __name(this, "NativeRecordingPublication");
@@ -25515,7 +25637,7 @@ var NativeRecordingPublication = class {
25515
25637
  }
25516
25638
  };
25517
25639
 
25518
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/media-archive-manifest.js
25640
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/media-archive-manifest.js
25519
25641
  import { createHash as createHash6 } from "node:crypto";
25520
25642
  import { readdir } from "node:fs/promises";
25521
25643
  import { isAbsolute as isAbsolute2, join as join8, resolve as resolve3 } from "node:path";
@@ -25602,7 +25724,7 @@ var commitMediaEntry = /* @__PURE__ */ __name((root, one, beforePublish) => writ
25602
25724
  beforePublish
25603
25725
  }), "commitMediaEntry");
25604
25726
 
25605
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
25727
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
25606
25728
  var validator = '"media-completed-v1"';
25607
25729
  var maximumFileBytes = 64 * 1024 * 1024 * 1024;
25608
25730
  var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file, beforeWrite, signal, metadata = {}) => {
@@ -25703,7 +25825,7 @@ var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file,
25703
25825
  return entry;
25704
25826
  }, "archiveMediaFile");
25705
25827
 
25706
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/media-archive-locks.js
25828
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/media-archive-locks.js
25707
25829
  import { mkdir, realpath } from "node:fs/promises";
25708
25830
  import { join as join9, resolve as resolve4 } from "node:path";
25709
25831
  var archiveLocations = /* @__PURE__ */ __name(async (initial, signal) => {
@@ -25770,7 +25892,7 @@ var withMediaArchiveLocks = /* @__PURE__ */ __name(async (directory2, signal, ru
25770
25892
  throw new CliError("validation_error", "archive locations changed during locking; run the command again");
25771
25893
  }, "withMediaArchiveLocks");
25772
25894
 
25773
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/media-archive.js
25895
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/media-archive.js
25774
25896
  var validateMediaSince = /* @__PURE__ */ __name((value, flag = "--since-time") => {
25775
25897
  if (value === void 0)
25776
25898
  return void 0;
@@ -25923,7 +26045,7 @@ var archiveMedia = /* @__PURE__ */ __name(async (ports, options2) => {
25923
26045
  }, { create: true });
25924
26046
  }, "archiveMedia");
25925
26047
 
25926
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/media-archive-move.js
26048
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/media-archive-move.js
25927
26049
  import { realpath as realpath2, unlink as unlink5 } from "node:fs/promises";
25928
26050
  import { basename as basename3, dirname as dirname6, join as join10, resolve as resolve5 } from "node:path";
25929
26051
  var canonicalDestination = /* @__PURE__ */ __name(async (directory2) => {
@@ -26076,7 +26198,7 @@ var moveMediaArchive = /* @__PURE__ */ __name(async (options2) => {
26076
26198
  }, { additional: [target2], createAdditional: !options2.dryRun });
26077
26199
  }, "moveMediaArchive");
26078
26200
 
26079
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/model-downloads.js
26201
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/model-downloads.js
26080
26202
  import { writeFileSync as writeFileSync2 } from "node:fs";
26081
26203
  import { join as join11 } from "node:path";
26082
26204
  var bytesOf = /* @__PURE__ */ __name((model) => model.files.reduce((sum2, file) => sum2 + file.bytes, 0), "bytesOf");
@@ -26101,7 +26223,7 @@ var downloadTextModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
26101
26223
  `);
26102
26224
  await nativeRuntime({ env, progress });
26103
26225
  progress(`${model.id}: loading it once to check it works`);
26104
- const { openEmbedder: openEmbedder2 } = await import("./embed-46WZZMUQ.js");
26226
+ const { openEmbedder: openEmbedder2 } = await import("./embed-4NC4ELYP.js");
26105
26227
  const embedder = await openEmbedder2(model, directory2);
26106
26228
  try {
26107
26229
  const [vector] = await embedder.embed(["check"], "query");
@@ -26122,7 +26244,7 @@ var downloadRerankModel = /* @__PURE__ */ __name(async (id2, { env, progress = /
26122
26244
  }
26123
26245
  await nativeRuntime({ env, progress });
26124
26246
  progress(`${model.id}: loading it once to check it works`);
26125
- const { openReranker } = await import("./rerank-ZMGZCUJV.js");
26247
+ const { openReranker } = await import("./rerank-EDY7PHMG.js");
26126
26248
  const reranker = await openReranker(model, directory2);
26127
26249
  try {
26128
26250
  await reranker.score("check", ["check"]);
@@ -26140,7 +26262,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
26140
26262
  await installFiles(placedImage(model, directory2), { progress, ...bytes2 ? { bytes: bytes2 } : {} });
26141
26263
  }
26142
26264
  progress(`${model.id}: loading it once to check it works`);
26143
- const { openPictureEmbedder } = await import("./embedder-56WHJKJE.js");
26265
+ const { openPictureEmbedder } = await import("./embedder-HBRDIFQC.js");
26144
26266
  const embedder = await openPictureEmbedder(model, directory2);
26145
26267
  try {
26146
26268
  const vector = await embedder.embedQuery("check");
@@ -26152,7 +26274,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
26152
26274
  return { model, directory: directory2 };
26153
26275
  }, "downloadImageModel");
26154
26276
 
26155
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/domain/money-words.js
26277
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/domain/money-words.js
26156
26278
  var MONEY_REQUEST = "money-request";
26157
26279
  var MONEY_DONE = "money-done";
26158
26280
  var PROMISE = "promise";
@@ -26186,10 +26308,10 @@ var MONEY_WORDS = [
26186
26308
  }
26187
26309
  ];
26188
26310
 
26189
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/money-words.js
26311
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/money-words.js
26190
26312
  var moneyClassesOf = /* @__PURE__ */ __name((text2) => listsHit(text2, MONEY_WORDS), "moneyClassesOf");
26191
26313
 
26192
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/domain/status-words.js
26314
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/domain/status-words.js
26193
26315
  var words = /* @__PURE__ */ __name((forms) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${forms.join("|")})(?![\\p{L}\\p{N}])`, "iu"), "words");
26194
26316
  var MONEY_DONE_FORMS = words([
26195
26317
  "\u043E\u043F\u043B\u0430\u0442\u0438\u043B[\u0430\u0438]?",
@@ -26229,7 +26351,7 @@ var PROMISE_FORMS = words([
26229
26351
  "estar\xE1 listo"
26230
26352
  ]);
26231
26353
 
26232
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/project-status/items.js
26354
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/project-status/items.js
26233
26355
  var EXCERPT_CHARS = 80;
26234
26356
  var excerpt2 = /* @__PURE__ */ __name((text2) => {
26235
26357
  const flat = text2.replace(/\s+/g, " ").trim();
@@ -26251,7 +26373,7 @@ var whoOf = /* @__PURE__ */ __name((message) => ({
26251
26373
  var fromOwner = /* @__PURE__ */ __name((message) => message.outgoing === true, "fromOwner");
26252
26374
  var day = /* @__PURE__ */ __name((at) => new Date(at).toISOString().slice(0, 10), "day");
26253
26375
 
26254
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/project-status/signals/amounts.js
26376
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/project-status/signals/amounts.js
26255
26377
  var MONEY = DEFAULT_TASK_CATEGORIES.filter((category) => category.name === "money");
26256
26378
  var verbOf = /* @__PURE__ */ __name((text2) => {
26257
26379
  if (MONEY_DONE_FORMS.test(text2))
@@ -26332,7 +26454,7 @@ var amounts = {
26332
26454
  attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.state === "asked" ? [{ chat: item2.chat, weight: 2, why: "money asked" }] : []), "attention")
26333
26455
  };
26334
26456
 
26335
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/project-status/signals/children.js
26457
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/project-status/signals/children.js
26336
26458
  var children = {
26337
26459
  id: "children",
26338
26460
  version: 1,
@@ -26361,7 +26483,7 @@ var children = {
26361
26483
  }, "read")
26362
26484
  };
26363
26485
 
26364
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/project-status/signals/coverage.js
26486
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/project-status/signals/coverage.js
26365
26487
  var coverage = {
26366
26488
  id: "coverage",
26367
26489
  version: 1,
@@ -26390,7 +26512,7 @@ var coverage = {
26390
26512
  attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.state !== "complete" && item2.data.beforeHeld ? [{ chat: item2.chat, weight: 3, why: "held in part" }] : []), "attention")
26391
26513
  };
26392
26514
 
26393
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/project-status/signals/payments.js
26515
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/project-status/signals/payments.js
26394
26516
  var holding2 = /* @__PURE__ */ __name((row) => row.review !== "rejected", "holding");
26395
26517
  var item = /* @__PURE__ */ __name((row, at, data) => ({
26396
26518
  signal: "payments",
@@ -26440,7 +26562,7 @@ var payments = {
26440
26562
  }, "read")
26441
26563
  };
26442
26564
 
26443
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/project-status/signals/promises.js
26565
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/project-status/signals/promises.js
26444
26566
  var PATTERNS_PER_CHAT = 3;
26445
26567
  var DAY3 = 864e5;
26446
26568
  var KINDS2 = /* @__PURE__ */ new Set(["promise", "request"]);
@@ -26529,7 +26651,7 @@ var promises = {
26529
26651
  }, "read")
26530
26652
  };
26531
26653
 
26532
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/project-status/signals/questions.js
26654
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/project-status/signals/questions.js
26533
26655
  var PER_SIDE = 5;
26534
26656
  var WEEK = 7 * 864e5;
26535
26657
  var NOBODY = /* @__PURE__ */ new Set();
@@ -26560,7 +26682,7 @@ var questions2 = {
26560
26682
  }, "attention")
26561
26683
  };
26562
26684
 
26563
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/project-status/signals/reply-next.js
26685
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/project-status/signals/reply-next.js
26564
26686
  var targetOf = /* @__PURE__ */ __name((message, chat, owners) => {
26565
26687
  const byId2 = /* @__PURE__ */ __name((id2) => chat.messages.find((one) => one.id === id2), "byId");
26566
26688
  const quoted = message.replyTo ?? (message.replyToId === void 0 ? void 0 : byId2(message.replyToId));
@@ -26628,7 +26750,7 @@ var replyNext = {
26628
26750
  attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.next === "owner" ? [{ chat: item2.chat, weight: 2, why: "your move" }] : []), "attention")
26629
26751
  };
26630
26752
 
26631
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/project-status/signals/topics.js
26753
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/project-status/signals/topics.js
26632
26754
  var escaped = /* @__PURE__ */ __name((text2) => text2.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
26633
26755
  var wholeWord = /* @__PURE__ */ __name((word) => new RegExp(`(?<![\\p{L}\\p{N}])${escaped(word)}(?![\\p{L}\\p{N}])`, "u"), "wholeWord");
26634
26756
  var matcherOf = /* @__PURE__ */ __name((query) => {
@@ -26674,7 +26796,7 @@ var topics = {
26674
26796
  }, "read")
26675
26797
  };
26676
26798
 
26677
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/project-status/signals/index.js
26799
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/project-status/signals/index.js
26678
26800
  var STATUS_SIGNALS = [
26679
26801
  replyNext,
26680
26802
  questions2,
@@ -26686,7 +26808,7 @@ var STATUS_SIGNALS = [
26686
26808
  children
26687
26809
  ];
26688
26810
 
26689
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/project-status/index.js
26811
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/project-status/index.js
26690
26812
  var DAY4 = 864e5;
26691
26813
  var STATUS_WINDOW = 300;
26692
26814
  var STATUS_CHATS = 16;
@@ -26875,7 +26997,7 @@ var projectStatus = /* @__PURE__ */ __name(async (store, input) => {
26875
26997
  };
26876
26998
  }, "projectStatus");
26877
26999
 
26878
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/account.js
27000
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/account.js
26879
27001
  var accountService = /* @__PURE__ */ __name((deps) => {
26880
27002
  const online = /* @__PURE__ */ __name(async (command) => {
26881
27003
  if (deps.offline)
@@ -26947,7 +27069,7 @@ var accountService = /* @__PURE__ */ __name((deps) => {
26947
27069
  };
26948
27070
  }, "accountService");
26949
27071
 
26950
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/domain/send-time.js
27072
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/domain/send-time.js
26951
27073
  var MINUTE = 6e4;
26952
27074
  var YEAR = 365 * 24 * 60 * MINUTE;
26953
27075
  var DELAY = /^(\d+)(m|h|d)$/;
@@ -26966,7 +27088,7 @@ var sendTime = /* @__PURE__ */ __name((value, now = Date.now(), flag = "--at-tim
26966
27088
  return new Date(at - at % MINUTE).toISOString();
26967
27089
  }, "sendTime");
26968
27090
 
26969
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/admin.js
27091
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/admin.js
26970
27092
  var recordMembership = /* @__PURE__ */ __name(async (deps, operationId, done2, change, fix, write) => {
26971
27093
  try {
26972
27094
  const held = await accountStoreIfOpen(deps);
@@ -27213,7 +27335,7 @@ var linkLimits = /* @__PURE__ */ __name(({ approval, expires, maxUses }) => {
27213
27335
  return expires === void 0 ? void 0 : sendTime(expires, Date.now(), "--expire-time");
27214
27336
  }, "linkLimits");
27215
27337
 
27216
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/mail-search.js
27338
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/mail-search.js
27217
27339
  var THREADS_PAGE = 500;
27218
27340
  var threadsOf = /* @__PURE__ */ __name(async (store, key) => {
27219
27341
  const account = await store.accounts.storedAccount(key).catch(() => void 0);
@@ -27292,7 +27414,7 @@ var readMail = /* @__PURE__ */ __name(async (store, locator, { before: before2 =
27292
27414
  return thread.slice(Math.max(0, at - before2), at + after + 1).map((hit) => hit.id === message ? { ...hit, anchor: true } : hit);
27293
27415
  }, "readMail");
27294
27416
 
27295
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/messages-search.js
27417
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/messages-search.js
27296
27418
  var PERSON_FIELDS = /* @__PURE__ */ new Set(["from", "to", "cc", "bcc"]);
27297
27419
  var MAIL_FIELDS = /* @__PURE__ */ new Set(["to", "cc", "bcc", "subject", "mailbox", "label", "is", "list"]);
27298
27420
  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");
@@ -27376,9 +27498,7 @@ var prepareLucene = /* @__PURE__ */ __name(async (store, account, request, messe
27376
27498
  if (node.field === "date")
27377
27499
  return {
27378
27500
  ...node,
27379
- resolution: {
27380
- date: dateRange(node.value, node.operator === "range" ? node.upper ?? "*" : node.value, node.operator === "range" ? node.lower_inclusive === true : true, node.operator === "range" ? node.upper_inclusive === true : true, timezone, node.span)
27381
- }
27501
+ resolution: { date: rangeOf(node, timezone) }
27382
27502
  };
27383
27503
  return node;
27384
27504
  }, "resolve");
@@ -27661,7 +27781,7 @@ var statsLucene = /* @__PURE__ */ __name(async (store, account, request, messeng
27661
27781
  };
27662
27782
  }, "statsLucene");
27663
27783
 
27664
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/rankings-selection.js
27784
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/rankings-selection.js
27665
27785
  var RANKING_SELECTION_BYTES = 64 * 1024;
27666
27786
  var object2 = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0, "object");
27667
27787
  function invalid(message = "ranking selection is invalid \u2014 obtain a new drilldown from stats top") {
@@ -27830,7 +27950,7 @@ var readRankingSelection = /* @__PURE__ */ __name(async (store, input) => {
27830
27950
  };
27831
27951
  }, "readRankingSelection");
27832
27952
 
27833
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/search-record.js
27953
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/search-record.js
27834
27954
  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");
27835
27955
  var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
27836
27956
  command,
@@ -27840,7 +27960,7 @@ var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
27840
27960
  fieldsVersion: FIELD_VERSION
27841
27961
  }), "searchRecordOf");
27842
27962
 
27843
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/admin-statistics.js
27963
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/admin-statistics.js
27844
27964
  function invalid2(message) {
27845
27965
  throw new CliError("validation_error", message);
27846
27966
  }
@@ -28134,7 +28254,7 @@ var adminStatisticsService = /* @__PURE__ */ __name((deps) => ({
28134
28254
  }, "evidence")
28135
28255
  }), "adminStatisticsService");
28136
28256
 
28137
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/archive-gaps.js
28257
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/archive-gaps.js
28138
28258
  import { createHash as createHash7, randomUUID as randomUUID5 } from "node:crypto";
28139
28259
  var GAP_BOUNDS = { maxGaps: 5, limit: 500, timeMs: 3e4 };
28140
28260
  var validateRepair = /* @__PURE__ */ __name((messenger, options2) => {
@@ -28271,12 +28391,12 @@ var gapsService = /* @__PURE__ */ __name((deps) => {
28271
28391
  return { plan, repair };
28272
28392
  }, "gapsService");
28273
28393
 
28274
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/attachments.js
28394
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/attachments.js
28275
28395
  import { createHash as createHash10 } from "node:crypto";
28276
28396
  import { constants as constants2, mkdirSync as mkdirSync5 } from "node:fs";
28277
28397
  import { lstat as lstat5, open as open6, readFile as readFile2, stat as stat2 } from "node:fs/promises";
28278
28398
 
28279
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/attachments/directory.js
28399
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/attachments/directory.js
28280
28400
  import { lstat as lstat2, readdir as readdir2, realpath as realpath3 } from "node:fs/promises";
28281
28401
  import { basename as basename4, join as join12, relative as relative2, sep as sep2 } from "node:path";
28282
28402
  var MAX_FILES = 1e4;
@@ -28347,21 +28467,21 @@ var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app,
28347
28467
  return choices;
28348
28468
  }, "directoryPaths");
28349
28469
 
28350
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/attachments/documents.js
28470
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/attachments/documents.js
28351
28471
  import { posix } from "node:path";
28352
28472
 
28353
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/attachments/container.js
28473
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/attachments/container.js
28354
28474
  import { setImmediate as tick } from "node:timers/promises";
28355
28475
  import { crc32 } from "node:zlib";
28356
28476
  var import_xmldom = __toESM(require_lib(), 1);
28357
28477
 
28358
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/attachments/encoding.js
28478
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/attachments/encoding.js
28359
28479
  var import_chardet = __toESM(require_lib2(), 1);
28360
28480
  var import_iconv_lite = __toESM(require_lib3(), 1);
28361
28481
  var SAMPLE = 65536;
28362
28482
  var invalidText = /* @__PURE__ */ __name((text2) => {
28363
- for (const character of text2) {
28364
- const code = character.charCodeAt(0);
28483
+ for (const character2 of text2) {
28484
+ const code = character2.charCodeAt(0);
28365
28485
  if (code < 9 || code === 11 || code > 13 && code < 32 || code >= 127 && code <= 159)
28366
28486
  return true;
28367
28487
  }
@@ -28457,7 +28577,7 @@ var decodeXml = /* @__PURE__ */ __name((bytes2) => {
28457
28577
  return result.text;
28458
28578
  }, "decodeXml");
28459
28579
 
28460
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/attachments/container.js
28580
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/attachments/container.js
28461
28581
  var MAX_PART = 10 * 1024 * 1024;
28462
28582
  var MAX_ENTRIES = 1e3;
28463
28583
  var decoder = new TextDecoder("utf-8", { fatal: true });
@@ -28470,7 +28590,7 @@ var cancelled = /* @__PURE__ */ __name((signal) => {
28470
28590
  if (signal?.aborted)
28471
28591
  throw new CliError("cancelled", "document extraction cancelled");
28472
28592
  }, "cancelled");
28473
- var safeName2 = /* @__PURE__ */ __name((name) => name.length > 0 && name.length <= 512 && !/^[\\/]|\\/.test(name) && ![...name].some((character) => character.charCodeAt(0) < 32) && !name.split("/").includes(".."), "safeName");
28593
+ var safeName2 = /* @__PURE__ */ __name((name) => name.length > 0 && name.length <= 512 && !/^[\\/]|\\/.test(name) && ![...name].some((character2) => character2.charCodeAt(0) < 32) && !name.split("/").includes(".."), "safeName");
28474
28594
  var directory = /* @__PURE__ */ __name((bytes2) => {
28475
28595
  const view = new DataView(bytes2.buffer, bytes2.byteOffset, bytes2.byteLength);
28476
28596
  let end = -1;
@@ -28672,7 +28792,7 @@ var elements = /* @__PURE__ */ __name((node, name, namespace) => {
28672
28792
  return found;
28673
28793
  }, "elements");
28674
28794
 
28675
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/attachments/sheets.js
28795
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/attachments/sheets.js
28676
28796
  var columnName = /* @__PURE__ */ __name((column) => {
28677
28797
  let name = "";
28678
28798
  for (let rest = column; rest > 0; rest = Math.floor((rest - 1) / 26))
@@ -28727,7 +28847,7 @@ var sheetText = /* @__PURE__ */ __name((sheets2, maxChars = MAX_TEXT_CHARS) => {
28727
28847
  return { text: parts.join("").trim(), truncated: false };
28728
28848
  }, "sheetText");
28729
28849
 
28730
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/attachments/documents.js
28850
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/attachments/documents.js
28731
28851
  var OFFICE = "urn:oasis:names:tc:opendocument:xmlns:office:1.0";
28732
28852
  var TEXT = "urn:oasis:names:tc:opendocument:xmlns:text:1.0";
28733
28853
  var TABLE = "urn:oasis:names:tc:opendocument:xmlns:table:1.0";
@@ -28802,7 +28922,7 @@ var rootIs = /* @__PURE__ */ __name((node, name, namespaces) => {
28802
28922
  }, "rootIs");
28803
28923
  var target = /* @__PURE__ */ __name((owner, reference) => {
28804
28924
  const decoded = decodeURIComponent(reference.split(/[?#]/)[0] ?? "");
28805
- if (/^[a-z][a-z0-9+.-]*:|^[\\/]|\\/i.test(decoded) || [...decoded].some((character) => character.charCodeAt(0) < 32))
28925
+ if (/^[a-z][a-z0-9+.-]*:|^[\\/]|\\/i.test(decoded) || [...decoded].some((character2) => character2.charCodeAt(0) < 32))
28806
28926
  throw new Error("external_part");
28807
28927
  const path = posix.normalize(posix.join(posix.dirname(owner), decoded));
28808
28928
  if (path.startsWith("../") || !path || path === ".")
@@ -29127,10 +29247,10 @@ var readDocument = /* @__PURE__ */ __name(async (bytes2, kind, signal) => {
29127
29247
  }
29128
29248
  }, "readDocument");
29129
29249
 
29130
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/attachments/extract.js
29250
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/attachments/extract.js
29131
29251
  import { extname as extname3 } from "node:path";
29132
29252
 
29133
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/readers/engine.js
29253
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/readers/engine.js
29134
29254
  import { readFileSync as readFileSync4 } from "node:fs";
29135
29255
  import { dirname as dirname7, extname as extname2, join as join13 } from "node:path";
29136
29256
  import { fileURLToPath } from "node:url";
@@ -29191,7 +29311,7 @@ var derived = /* @__PURE__ */ __name((bytes2, extractor, read) => {
29191
29311
  }
29192
29312
  }, "derived");
29193
29313
 
29194
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/readers/image/index.js
29314
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/readers/image/index.js
29195
29315
  var IMAGES = /* @__PURE__ */ new Set([".jpg", ".jpeg", ".png", ".webp", ".gif", ".heic", ".tif", ".tiff", ".bmp"]);
29196
29316
  var image2 = {
29197
29317
  id: "image",
@@ -29200,7 +29320,7 @@ var image2 = {
29200
29320
  read: /* @__PURE__ */ __name(async () => ({ status: "needs-agent" }), "read")
29201
29321
  };
29202
29322
 
29203
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/readers/doc/index.js
29323
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/readers/doc/index.js
29204
29324
  var OLE = "\xD0\xCF\xE0\xA1\xB1\xE1";
29205
29325
  var doc = {
29206
29326
  id: "doc",
@@ -29212,7 +29332,7 @@ var doc = {
29212
29332
  }), "read")
29213
29333
  };
29214
29334
 
29215
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/readers/docx/index.js
29335
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/readers/docx/index.js
29216
29336
  var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
29217
29337
  var docx = {
29218
29338
  id: "docx",
@@ -29225,8 +29345,62 @@ var docx = {
29225
29345
  }), "read")
29226
29346
  };
29227
29347
 
29228
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/attachments/markup.js
29348
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/attachments/markup.js
29229
29349
  var import_iconv_lite2 = __toESM(require_lib3(), 1);
29350
+
29351
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/domain/html-entities.js
29352
+ var NAMED = {
29353
+ amp: "&",
29354
+ lt: "<",
29355
+ gt: ">",
29356
+ quot: '"',
29357
+ apos: "'",
29358
+ nbsp: "\xA0",
29359
+ shy: "\xAD",
29360
+ ensp: "\u2002",
29361
+ emsp: "\u2003",
29362
+ thinsp: "\u2009",
29363
+ zwnj: "\u200C",
29364
+ zwj: "\u200D",
29365
+ lsquo: "\u2018",
29366
+ rsquo: "\u2019",
29367
+ sbquo: "\u201A",
29368
+ ldquo: "\u201C",
29369
+ rdquo: "\u201D",
29370
+ bdquo: "\u201E",
29371
+ laquo: "\xAB",
29372
+ raquo: "\xBB",
29373
+ lsaquo: "\u2039",
29374
+ rsaquo: "\u203A",
29375
+ ndash: "\u2013",
29376
+ mdash: "\u2014",
29377
+ hellip: "\u2026",
29378
+ bull: "\u2022",
29379
+ middot: "\xB7",
29380
+ copy: "\xA9",
29381
+ reg: "\xAE",
29382
+ trade: "\u2122",
29383
+ euro: "\u20AC",
29384
+ pound: "\xA3",
29385
+ yen: "\xA5",
29386
+ cent: "\xA2",
29387
+ deg: "\xB0",
29388
+ plusmn: "\xB1",
29389
+ times: "\xD7",
29390
+ divide: "\xF7",
29391
+ sect: "\xA7",
29392
+ para: "\xB6",
29393
+ iexcl: "\xA1",
29394
+ iquest: "\xBF"
29395
+ };
29396
+ var character = /* @__PURE__ */ __name((code, entity) => code > 0 && code <= 1114111 ? String.fromCodePoint(code) : entity, "character");
29397
+ var decodeEntities = /* @__PURE__ */ __name((text2) => text2.replace(/&(#x[0-9a-f]{1,6}|#\d{1,7}|[a-z]{2,8});/gi, (entity, body) => {
29398
+ if (body[0] !== "#")
29399
+ return NAMED[body] ?? NAMED[body.toLowerCase()] ?? entity;
29400
+ return body[1] === "x" || body[1] === "X" ? character(Number.parseInt(body.slice(2), 16), entity) : character(Number(body.slice(1)), entity);
29401
+ }), "decodeEntities");
29402
+
29403
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/attachments/markup.js
29230
29404
  var RTF_SKIPPED = /* @__PURE__ */ new Set([
29231
29405
  "fonttbl",
29232
29406
  "colortbl",
@@ -29359,7 +29533,6 @@ var HTML_DROPPED_CLOSE = new Map(["script", "style", "head", "noscript", "templa
29359
29533
  new RegExp(`<\\/${name}\\s*>`, "gi")
29360
29534
  ]));
29361
29535
  var HTML_BLOCK = /<\/?(p|div|br|li|ul|ol|tr|h[1-6]|blockquote|pre|section|article|header|footer|table|hr)\b[^>]*>/gi;
29362
- var ENTITIES = { amp: "&", lt: "<", gt: ">", quot: '"', apos: "'", nbsp: "\xA0" };
29363
29536
  var replaceTags = /* @__PURE__ */ __name((source, tag, replacement) => {
29364
29537
  const end = source.lastIndexOf(">") + 1;
29365
29538
  return source.slice(0, end).replace(tag, replacement) + source.slice(end);
@@ -29390,18 +29563,10 @@ var dropHidden = /* @__PURE__ */ __name((source) => {
29390
29563
  var htmlText = /* @__PURE__ */ __name((source) => {
29391
29564
  const uncommented = source.replace(/<!--[\s\S]*?(-->|$)/g, (comment, close) => close ? "" : comment);
29392
29565
  const blocks = replaceTags(dropHidden(uncommented).replace(/<\/t[dh]\s*>/gi, " "), HTML_BLOCK, "\n");
29393
- return replaceTags(blocks, /<[^>]*>/g, "").replace(/&(#x[0-9a-f]{1,6}|#\d{1,7}|[a-z]{2,8});/gi, (entity, body) => {
29394
- const lower = body.toLowerCase();
29395
- if (lower.startsWith("#x"))
29396
- return safeChar(Number.parseInt(lower.slice(2), 16), entity);
29397
- if (lower.startsWith("#"))
29398
- return safeChar(Number(lower.slice(1)), entity);
29399
- return ENTITIES[lower] ?? entity;
29400
- }).replace(/(?<![ \t\u00a0])[ \t\u00a0]+\n/g, "\n").replace(/\n{3,}/g, "\n\n").trim();
29566
+ return decodeEntities(replaceTags(blocks, /<[^>]*>/g, "")).replace(/(?<![ \t\u00a0])[ \t\u00a0]+\n/g, "\n").replace(/\n{3,}/g, "\n\n").trim();
29401
29567
  }, "htmlText");
29402
- var safeChar = /* @__PURE__ */ __name((code, fallback) => code > 0 && code <= 1114111 ? String.fromCodePoint(code) : fallback, "safeChar");
29403
29568
 
29404
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/readers/html/page.js
29569
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/readers/html/page.js
29405
29570
  var clean = /* @__PURE__ */ __name((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim() : "", "clean");
29406
29571
  var namesIn = /* @__PURE__ */ __name((value) => [value].flat().map((entry) => typeof entry === "string" ? clean(entry) : clean(entry?.name)).filter(Boolean).join(", "), "namesIn");
29407
29572
  var jsonLdNodes = /* @__PURE__ */ __name((document) => {
@@ -29457,7 +29622,7 @@ var markdownSections = /* @__PURE__ */ __name((text2) => {
29457
29622
  return found.map((section, index) => ({ ...section, end: found[index + 1]?.start ?? text2.length }));
29458
29623
  }, "markdownSections");
29459
29624
 
29460
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/readers/html/index.js
29625
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/readers/html/index.js
29461
29626
  var HTML = /* @__PURE__ */ new Set([".html", ".htm", ".xhtml"]);
29462
29627
  var first = /* @__PURE__ */ __name((...values) => values.find((value) => typeof value === "string" && value !== ""), "first");
29463
29628
  var loaded = /* @__PURE__ */ __name(async (load, name) => {
@@ -29528,7 +29693,7 @@ var html = {
29528
29693
  }, "read")
29529
29694
  };
29530
29695
 
29531
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/readers/office/index.js
29696
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/readers/office/index.js
29532
29697
  var office = {
29533
29698
  id: "office",
29534
29699
  version: documentExtractor("odt"),
@@ -29539,7 +29704,7 @@ var office = {
29539
29704
  }, "read")
29540
29705
  };
29541
29706
 
29542
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/readers/pdf/index.js
29707
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/readers/pdf/index.js
29543
29708
  var pdf = {
29544
29709
  id: "pdf",
29545
29710
  version: "unpdf",
@@ -29606,7 +29771,7 @@ var pdf = {
29606
29771
  }), "read")
29607
29772
  };
29608
29773
 
29609
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/readers/plain/index.js
29774
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/readers/plain/index.js
29610
29775
  var PLAIN = /* @__PURE__ */ new Set([".txt", ".md", ".markdown", ".csv", ".tsv", ".json", ".log"]);
29611
29776
  var isPlain = /* @__PURE__ */ __name((hint) => PLAIN.has(extensionOf(hint)) || hint.mime?.startsWith("text/") || hint.mime === "application/json", "isPlain");
29612
29777
  var readPlain = /* @__PURE__ */ __name((bytes2) => {
@@ -29626,7 +29791,7 @@ var plain = {
29626
29791
  read: /* @__PURE__ */ __name(async (bytes2) => readPlain(bytes2), "read")
29627
29792
  };
29628
29793
 
29629
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/readers/rtf/index.js
29794
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/readers/rtf/index.js
29630
29795
  var rtf = {
29631
29796
  id: "rtf",
29632
29797
  version: "v1",
@@ -29634,10 +29799,10 @@ var rtf = {
29634
29799
  read: /* @__PURE__ */ __name(async (bytes2) => derived(bytes2, "rtf:v1", rtfText), "read")
29635
29800
  };
29636
29801
 
29637
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
29802
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
29638
29803
  import { basename as basename5 } from "node:path";
29639
29804
 
29640
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/attachments/csv-spans.js
29805
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/attachments/csv-spans.js
29641
29806
  var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) => {
29642
29807
  const cells = [];
29643
29808
  let row = 1, column = 1, start = 0, quoted = false, truncated = false;
@@ -29675,7 +29840,7 @@ var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) =
29675
29840
  return { cells, truncated };
29676
29841
  }, "delimitedSpans");
29677
29842
 
29678
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
29843
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
29679
29844
  var DELIMITED = {
29680
29845
  ".csv": ",",
29681
29846
  ".tsv": " ",
@@ -29714,7 +29879,7 @@ var sheets = {
29714
29879
  }, "read")
29715
29880
  };
29716
29881
 
29717
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/readers/registry.js
29882
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/readers/registry.js
29718
29883
  var BUILT_INS2 = [office, pdf, docx, doc, rtf, html, sheets, plain, image2];
29719
29884
  var HEAD_BYTES = 1024;
29720
29885
  var readers = [...BUILT_INS2];
@@ -29724,7 +29889,7 @@ var readWithRegistry = /* @__PURE__ */ __name(async (bytes2, hint, context2) =>
29724
29889
  return reader ? reader.read(bytes2, hint, context2) : { status: "unsupported" };
29725
29890
  }, "readWithRegistry");
29726
29891
 
29727
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/attachments/extract.js
29892
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/attachments/extract.js
29728
29893
  var importEngine = /* @__PURE__ */ __name((name) => importFrom(new URL("attachments/extract.js", import.meta.resolve("@wirecat/cli-core")).href, name), "importEngine");
29729
29894
  var extensionOf2 = /* @__PURE__ */ __name(({ name, path }) => extname3(name ?? path).toLowerCase(), "extensionOf");
29730
29895
  var extractText = /* @__PURE__ */ __name(async (bytes2, hint, load, signal, env = process.env) => {
@@ -30803,7 +30968,7 @@ function imageSize(input) {
30803
30968
  }
30804
30969
  __name(imageSize, "imageSize");
30805
30970
 
30806
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/attachments/ocr.js
30971
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/attachments/ocr.js
30807
30972
  var MAX_PAGES = 20;
30808
30973
  var MAX_PIXELS = 2e7;
30809
30974
  var cancelled2 = /* @__PURE__ */ __name((signal) => {
@@ -30963,7 +31128,7 @@ var ocrPdf = /* @__PURE__ */ __name(async (bytes2, pipeline2, load, signal) => {
30963
31128
  }
30964
31129
  }, "ocrPdf");
30965
31130
 
30966
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/attachments/pdf-preview.js
31131
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/attachments/pdf-preview.js
30967
31132
  var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = importEngine, env = process.env) => {
30968
31133
  const limits = pdfPreviewLimits(env);
30969
31134
  const cancelled3 = /* @__PURE__ */ __name(() => {
@@ -31040,7 +31205,7 @@ var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = impo
31040
31205
  }
31041
31206
  }, "pdfPreview");
31042
31207
 
31043
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/attachments/picture-reading.js
31208
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/attachments/picture-reading.js
31044
31209
  import { spawn } from "node:child_process";
31045
31210
  import { mkdtempSync, readFileSync as readFileSync5, rmSync as rmSync2, writeFileSync as writeFileSync3 } from "node:fs";
31046
31211
  import { tmpdir } from "node:os";
@@ -31203,7 +31368,7 @@ Read the attached picture.`,
31203
31368
  }
31204
31369
  }, "readPictureWithAgent");
31205
31370
 
31206
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/attachments/transfer.js
31371
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/attachments/transfer.js
31207
31372
  import { createHash as createHash8 } from "node:crypto";
31208
31373
  import { constants } from "node:fs";
31209
31374
  import { lstat as lstat3, open as open5 } from "node:fs/promises";
@@ -31311,7 +31476,7 @@ var transferMime = /* @__PURE__ */ __name((head, hint, name = null) => {
31311
31476
  return hint !== null && /^[a-z0-9.+-]+\/[a-z0-9.+-]+$/i.test(hint) ? hint : "application/octet-stream";
31312
31477
  }, "transferMime");
31313
31478
 
31314
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/file-download.js
31479
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/file-download.js
31315
31480
  import { createWriteStream, mkdirSync as mkdirSync4 } from "node:fs";
31316
31481
  import { link as link3, rm } from "node:fs/promises";
31317
31482
  import { join as join15, resolve as resolve6 } from "node:path";
@@ -31425,12 +31590,12 @@ var save = /* @__PURE__ */ __name(async (file, directory2, fallbackName, { uniqu
31425
31590
  }
31426
31591
  }, "save");
31427
31592
 
31428
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/pictures.js
31593
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/pictures.js
31429
31594
  import { createHash as createHash9 } from "node:crypto";
31430
31595
  import { lstat as lstat4, readFile } from "node:fs/promises";
31431
31596
  import { setTimeout as sleep4 } from "node:timers/promises";
31432
31597
 
31433
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/domain/models.js
31598
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/domain/models.js
31434
31599
  var GROUP_SETTINGS = [
31435
31600
  "allCanPin",
31436
31601
  "onlyAdminsAdd",
@@ -31444,7 +31609,7 @@ var ADMIN_RIGHTS = ["read", "members", "admins", "info", "pin", "link", "post",
31444
31609
  var senderIsMe = /* @__PURE__ */ __name((message, account) => message.outgoing === true || message.senderId !== null && String(message.senderId) === account, "senderIsMe");
31445
31610
  var MEDIA_KINDS = ["photo", "video", "file", "audio", "link"];
31446
31611
 
31447
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/pictures.js
31612
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/pictures.js
31448
31613
  var PICTURE_MAX_BYTES = 25 * 1024 * 1024;
31449
31614
  var PICTURE_FLOOR = 0.25;
31450
31615
  var PAGE3 = 50;
@@ -31485,7 +31650,7 @@ var picturesService = /* @__PURE__ */ __name((deps) => {
31485
31650
  const directory2 = imageModelsDirectory(deps.env);
31486
31651
  if (!isImageModelInstalled(model2, directory2))
31487
31652
  throw new CliError("not_found", missingModel(model2.id), { reason: "model.not-downloaded", model: model2.id });
31488
- const { openPictureEmbedder } = await import("./embedder-56WHJKJE.js");
31653
+ const { openPictureEmbedder } = await import("./embedder-HBRDIFQC.js");
31489
31654
  return openPictureEmbedder(model2, directory2);
31490
31655
  }, "open");
31491
31656
  const embedder = /* @__PURE__ */ __name(() => {
@@ -31659,7 +31824,7 @@ var withPictures = /* @__PURE__ */ __name((messages, pictures) => ({
31659
31824
  }, "search")
31660
31825
  }), "withPictures");
31661
31826
 
31662
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/attachments.js
31827
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/attachments.js
31663
31828
  var ATTACHMENT_QUERY = {
31664
31829
  entity: "attachment",
31665
31830
  backend: "sql",
@@ -32130,7 +32295,7 @@ var attachmentsService = /* @__PURE__ */ __name((deps) => ({
32130
32295
  }, "readPicture")
32131
32296
  }), "attachmentsService");
32132
32297
 
32133
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/chat-documents.js
32298
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/chat-documents.js
32134
32299
  var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
32135
32300
  list: /* @__PURE__ */ __name(async (chat, { limit, offset, ref }) => {
32136
32301
  const store = await accountStore(deps);
@@ -32160,7 +32325,7 @@ var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
32160
32325
  }, "list")
32161
32326
  }), "chatDocumentsService");
32162
32327
 
32163
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/retention.js
32328
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/retention.js
32164
32329
  var observationDuration = /* @__PURE__ */ __name((text2, flag) => {
32165
32330
  const match = /^(\d+(?:\.\d+)?)([smhdw])$/.exec(text2);
32166
32331
  const units2 = { s: 1e3, m: 6e4, h: 36e5, d: 864e5, w: 6048e5 };
@@ -32247,7 +32412,7 @@ var isRetentionSelection = /* @__PURE__ */ __name((selection) => {
32247
32412
  }
32248
32413
  }, "isRetentionSelection");
32249
32414
 
32250
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/counters.js
32415
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/counters.js
32251
32416
  var counterFields = /* @__PURE__ */ __name((text2 = "views,reactions,comments") => {
32252
32417
  const fields = text2.split(",").map((one) => one.trim());
32253
32418
  if (!fields.length || fields.some((one) => !COUNTER_FIELDS.includes(one)) || new Set(fields).size !== fields.length)
@@ -32454,7 +32619,7 @@ var countersService = /* @__PURE__ */ __name((deps) => {
32454
32619
  };
32455
32620
  }, "countersService");
32456
32621
 
32457
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/search-refresh.js
32622
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/search-refresh.js
32458
32623
  var SYNC_KEY = "messages.sync-first";
32459
32624
  var SYNC_BOUNDS = { maxChats: 5, timeMs: 3e4, maxMessages: 500 };
32460
32625
  var keyOf3 = /* @__PURE__ */ __name((chat) => JSON.stringify([chat.account.provider, chat.account.account, chat.chatId]), "keyOf");
@@ -32586,7 +32751,7 @@ var withRefresh = /* @__PURE__ */ __name((found, refreshed) => ({
32586
32751
  ...!refreshed || refreshed.complete ? {} : { coverage: { ...found.coverage, state: "stale" } }
32587
32752
  }), "withRefresh");
32588
32753
 
32589
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/embeddings-search.js
32754
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/embeddings-search.js
32590
32755
  var CANDIDATES = 50;
32591
32756
  var WORD_HITS = 200;
32592
32757
  var RRF_K = 60;
@@ -32861,13 +33026,13 @@ var meanOf = /* @__PURE__ */ __name((vectors) => {
32861
33026
  return mean2.map((value) => value / length);
32862
33027
  }, "meanOf");
32863
33028
 
32864
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/embeddings.js
33029
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/embeddings.js
32865
33030
  var embeddingsService = /* @__PURE__ */ __name((deps) => ({
32866
33031
  ...embeddingsMaintenance(deps),
32867
33032
  ...embeddingsSearch(deps)
32868
33033
  }), "embeddingsService");
32869
33034
 
32870
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/folders.js
33035
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/folders.js
32871
33036
  var foldersService = /* @__PURE__ */ __name((deps) => {
32872
33037
  const online = /* @__PURE__ */ __name(async (command) => {
32873
33038
  if (deps.offline)
@@ -33008,7 +33173,7 @@ var foldersService = /* @__PURE__ */ __name((deps) => {
33008
33173
  };
33009
33174
  }, "foldersService");
33010
33175
 
33011
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/mentions.js
33176
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/mentions.js
33012
33177
  var REVIEW_COUNT = 500;
33013
33178
  var mentionsService = /* @__PURE__ */ __name((deps) => {
33014
33179
  const located = /* @__PURE__ */ __name(async () => {
@@ -33087,7 +33252,7 @@ var mentionsService = /* @__PURE__ */ __name((deps) => {
33087
33252
  };
33088
33253
  }, "mentionsService");
33089
33254
 
33090
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/domain/message-link.js
33255
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/domain/message-link.js
33091
33256
  var fileLinks = /* @__PURE__ */ __name((attachments) => hitFiles(attachments).map(({ position, kind, name }) => ({
33092
33257
  position,
33093
33258
  kind,
@@ -33136,7 +33301,7 @@ var validatePermalink = /* @__PURE__ */ __name((link4) => {
33136
33301
  return { url: link4.url, access: link4.access, reason: link4.reason };
33137
33302
  }, "validatePermalink");
33138
33303
 
33139
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/domain/pin-duration.js
33304
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/domain/pin-duration.js
33140
33305
  var spokenSeconds = /* @__PURE__ */ __name((seconds) => {
33141
33306
  if (seconds % 86400 === 0 && seconds > 86400)
33142
33307
  return `${seconds / 86400}d`;
@@ -33168,7 +33333,7 @@ var pinDurationOf = /* @__PURE__ */ __name((value, allowed, flag = "--expire-tim
33168
33333
  return seconds;
33169
33334
  }, "pinDurationOf");
33170
33335
 
33171
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/sends/send-as.js
33336
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/sends/send-as.js
33172
33337
  var sendAsCheck = /* @__PURE__ */ __name((connection, sendAs) => {
33173
33338
  if (sendAs === void 0) {
33174
33339
  const saved = connection.savedSender?.bind(connection);
@@ -33193,7 +33358,7 @@ var typedSendAs = /* @__PURE__ */ __name((typed) => {
33193
33358
  return sendAs;
33194
33359
  }, "typedSendAs");
33195
33360
 
33196
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/search/total.js
33361
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/search/total.js
33197
33362
  var TOTAL_CAP = 1e4;
33198
33363
  var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
33199
33364
  const least = shown + (hasMore ? 1 : 0);
@@ -33204,7 +33369,7 @@ var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
33204
33369
  return { value: count4, relation: exact ? "eq" : "gte" };
33205
33370
  }, "totalOf");
33206
33371
 
33207
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/search/lucene/meaning-parts.js
33372
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/search/lucene/meaning-parts.js
33208
33373
  var WORD_FIELDS = /* @__PURE__ */ new Set(["text", "exact"]);
33209
33374
  var fieldsOfQuery = /* @__PURE__ */ __name((root, everything) => {
33210
33375
  let narrows = false;
@@ -33233,7 +33398,7 @@ var meaningWords = /* @__PURE__ */ __name((root) => {
33233
33398
  return wanted(root).join(" ").trim();
33234
33399
  }, "meaningWords");
33235
33400
 
33236
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/search/question-plan.js
33401
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/search/question-plan.js
33237
33402
  var words2 = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}]+/gu) ?? [], "words");
33238
33403
  var scaffolding = new Set(words2("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"));
33239
33404
  var questionWord = /\b(?:what|which|how|who|where|when|can|could|should)\b|(?:^|\s)(?:сколько|какой|какая|какие|какое|кто|кому|кем|где|когда|как|что|можно|может|могут|ли)(?:\s|$)/iu;
@@ -33366,7 +33531,7 @@ var questionLookup = /* @__PURE__ */ __name((text2) => {
33366
33531
  return terms.length ? anyOfTerms(terms, plan.scope) : void 0;
33367
33532
  }, "questionLookup");
33368
33533
 
33369
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/messages-combined.js
33534
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/messages-combined.js
33370
33535
  var COMBINED_DEFAULTS = { candidateDepth: 300, rrfK: 60, rerank: "all", chatCap: 0 };
33371
33536
  var tokensOf = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}\p{Co}\p{M}]+/gu) ?? [], "tokensOf");
33372
33537
  var searchCombined = /* @__PURE__ */ __name(async (store, account, request, messenger = {}, options2 = COMBINED_DEFAULTS) => {
@@ -33560,7 +33725,7 @@ var signals = /* @__PURE__ */ __name((hit, terms, corrections, execution, mode,
33560
33725
  return mode === "coverage" ? coverage2 * 4 : mode === "proximity" ? proximity : mode === "phrase" ? phrase2 : coverage2 * 4 + proximity + phrase2;
33561
33726
  }, "signals");
33562
33727
 
33563
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/messages-discovery.js
33728
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/messages-discovery.js
33564
33729
  var MEANING_DEPTH = 100;
33565
33730
  var RRF_K2 = 60;
33566
33731
  var RERANK_DEPTH = 50;
@@ -33886,7 +34051,7 @@ var mixedWithReranker = /* @__PURE__ */ __name((head, scores) => {
33886
34051
  })).sort((a, b) => b.mixed - a.mixed).map(({ hit }) => hit);
33887
34052
  }, "mixedWithReranker");
33888
34053
 
33889
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/thread-context.js
34054
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/thread-context.js
33890
34055
  var THREAD_BOUNDS = { maxHops: 8, maxMessages: 50, maxBytes: 65536, withinMs: 864e5 };
33891
34056
  var bytes = /* @__PURE__ */ __name((items, links) => Buffer.byteLength(JSON.stringify({ items, links }), "utf8"), "bytes");
33892
34057
  var threadBounds = /* @__PURE__ */ __name((options2 = {}) => {
@@ -34085,7 +34250,7 @@ var readThreadContext = /* @__PURE__ */ __name(async (store, account, chat, mess
34085
34250
  return result;
34086
34251
  }, "readThreadContext");
34087
34252
 
34088
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/messages-archive-search.js
34253
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/messages-archive-search.js
34089
34254
  var SEARCH_FILL_MS = 200;
34090
34255
  var statsStore = /* @__PURE__ */ __name(async (store, account, request, messenger = {}) => {
34091
34256
  const stop = Date.now() + SEARCH_FILL_MS;
@@ -34154,7 +34319,7 @@ var accountOf2 = /* @__PURE__ */ __name((hit) => {
34154
34319
  }, "accountOf");
34155
34320
  var keyOf4 = /* @__PURE__ */ __name(({ provider, account }) => `${provider}/${account}`, "keyOf");
34156
34321
 
34157
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/meaning-model.js
34322
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/meaning-model.js
34158
34323
  var meaningModel = /* @__PURE__ */ __name(async (store, env = process.env) => {
34159
34324
  const chosen = chosenTextModel(env);
34160
34325
  if (chosen.from === "chosen" || chosen.id !== DEFAULT_TEXT_MODEL)
@@ -34169,7 +34334,7 @@ var meaningModel = /* @__PURE__ */ __name(async (store, env = process.env) => {
34169
34334
  return (counts.get(before2) ?? 0) > (counts.get(now) ?? 0) ? previous.id : current.id;
34170
34335
  }, "meaningModel");
34171
34336
 
34172
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/messages-meaning.js
34337
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/messages-meaning.js
34173
34338
  var meaningText = /* @__PURE__ */ __name((question) => {
34174
34339
  try {
34175
34340
  const text2 = questionLookup(question) === void 0 ? question : questionText(question);
@@ -34248,7 +34413,7 @@ var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, sh
34248
34413
  }
34249
34414
  }, "meaningLane");
34250
34415
 
34251
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/messages-rerank.js
34416
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/messages-rerank.js
34252
34417
  var rerankLane = /* @__PURE__ */ __name((deps) => {
34253
34418
  const choice = deps.reranker ?? DEFAULT_RERANK_MODEL;
34254
34419
  if (choice === "off")
@@ -34260,9 +34425,9 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
34260
34425
  return { skipped: { reason: `${model.id} is not downloaded`, step: "models.download", model: model.id } };
34261
34426
  try {
34262
34427
  const warm = deps.embedders;
34263
- const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-MNZTQ2DA.js")).openRerankerProcess(model, directory2, {
34428
+ const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-6Q23D3TO.js")).openRerankerProcess(model, directory2, {
34264
34429
  threads: defaultThreads()
34265
- })) : await (await import("./rerank-ZMGZCUJV.js")).openReranker(model, directory2);
34430
+ })) : await (await import("./rerank-EDY7PHMG.js")).openReranker(model, directory2);
34266
34431
  return {
34267
34432
  model: model.id,
34268
34433
  score: /* @__PURE__ */ __name((question, passages) => reranker.score(plainWords(question), passages), "score"),
@@ -34282,7 +34447,7 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
34282
34447
  };
34283
34448
  }, "rerankLane");
34284
34449
 
34285
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/search/question-period.js
34450
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/search/question-period.js
34286
34451
  var DAY5 = 864e5;
34287
34452
  var SPAN = { start: 0, end: 0 };
34288
34453
  var phrase = /* @__PURE__ */ __name((source) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${source})(?![\\p{L}\\p{N}])`, "giu"), "phrase");
@@ -34407,17 +34572,17 @@ var questionPeriod = /* @__PURE__ */ __name((text2, now, zone) => {
34407
34572
  };
34408
34573
  }, "questionPeriod");
34409
34574
 
34410
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/document-pictures.js
34575
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/document-pictures.js
34411
34576
  var openPictureEmbedderFor = /* @__PURE__ */ __name(async ({ env, command } = {}) => {
34412
34577
  const model = imageModel(DEFAULT_IMAGE_MODEL);
34413
34578
  const directory2 = imageModelsDirectory(env);
34414
34579
  if (!isImageModelInstalled(model, directory2))
34415
34580
  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 });
34416
- const { openPictureEmbedder } = await import("./embedder-56WHJKJE.js");
34581
+ const { openPictureEmbedder } = await import("./embedder-HBRDIFQC.js");
34417
34582
  return openPictureEmbedder(model, directory2);
34418
34583
  }, "openPictureEmbedderFor");
34419
34584
 
34420
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/document-source.js
34585
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/document-source.js
34421
34586
  var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file) => {
34422
34587
  const metadata = note.frontMatter;
34423
34588
  const account = accounts.find(({ id: id2 }) => String(id2) === note.folderId);
@@ -34439,7 +34604,7 @@ var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file) =>
34439
34604
  };
34440
34605
  }, "documentSource");
34441
34606
 
34442
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/embeddings/keys.js
34607
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/embeddings/keys.js
34443
34608
  var endpointKeyName = /* @__PURE__ */ __name((baseUrl) => {
34444
34609
  const host = new URL(baseUrl).host;
34445
34610
  return ["openai", "anthropic"].includes(host) ? `endpoint:${host}` : host;
@@ -34472,7 +34637,7 @@ var embeddingKeys = /* @__PURE__ */ __name((app, env = process.env, keyring) =>
34472
34637
  };
34473
34638
  }, "embeddingKeys");
34474
34639
 
34475
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/models/openai.js
34640
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/models/openai.js
34476
34641
  var options = strictObject({
34477
34642
  temperature: range(0, 2),
34478
34643
  top_p: range(0, 1),
@@ -34539,7 +34704,7 @@ var openai = {
34539
34704
  }), "complete")
34540
34705
  };
34541
34706
 
34542
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/models/index.js
34707
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/models/index.js
34543
34708
  var modelGateway = /* @__PURE__ */ __name((deps) => ({
34544
34709
  complete: /* @__PURE__ */ __name(async (request) => {
34545
34710
  if (deps.signal?.aborted)
@@ -34554,7 +34719,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
34554
34719
  if (!adapter && target2.provider === "openai")
34555
34720
  adapter = openai;
34556
34721
  if (!adapter && target2.provider === "anthropic")
34557
- adapter = (await import("./anthropic-KKYGROQR.js")).anthropic;
34722
+ adapter = (await import("./anthropic-GUXHDK32.js")).anthropic;
34558
34723
  if (!adapter)
34559
34724
  throw new CliError("validation_error", `no model adapter for ${target2.provider}`);
34560
34725
  if (request.images !== void 0 && adapter.images !== true)
@@ -34614,7 +34779,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
34614
34779
  }, "complete")
34615
34780
  }), "modelGateway");
34616
34781
 
34617
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/enrichment-setting.js
34782
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/enrichment-setting.js
34618
34783
  var SECTION2 = "enrichment";
34619
34784
  var ENRICHMENT_PROVIDERS = ["openai", "anthropic"];
34620
34785
  var DEFAULT_BASE_URLS = {
@@ -34689,7 +34854,7 @@ var costOf = /* @__PURE__ */ __name((usage, setting) => {
34689
34854
  return price ? Math.round((usage.input * price.input + usage.output * price.output) * 1e6) / 1e6 : null;
34690
34855
  }, "costOf");
34691
34856
 
34692
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/enrichment.js
34857
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/enrichment.js
34693
34858
  var ENRICH_PER_RUN = 600;
34694
34859
  var MAX_LINE = 400;
34695
34860
  var line2 = pipe(unknown(), transform((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim().slice(0, MAX_LINE) : ""));
@@ -34765,7 +34930,7 @@ var enrichmentState = /* @__PURE__ */ __name(async (store, env, estimateFor, key
34765
34930
  };
34766
34931
  }, "enrichmentState");
34767
34932
 
34768
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/notes-title-tier.js
34933
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/notes-title-tier.js
34769
34934
  var plainQueryWords = /* @__PURE__ */ __name((query) => {
34770
34935
  let root;
34771
34936
  try {
@@ -34792,7 +34957,7 @@ var titleTiers = /* @__PURE__ */ __name((hits, words3) => {
34792
34957
  return [...hits].sort((a, b) => rank(a) - rank(b));
34793
34958
  }, "titleTiers");
34794
34959
 
34795
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/notes-search.js
34960
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/notes-search.js
34796
34961
  var storeQuery = /* @__PURE__ */ __name(async (store, text2, { exact, timezone } = {}) => resolvedQuery(store, parsedQuery(text2, exact), timezone), "storeQuery");
34797
34962
  var parsedQuery = /* @__PURE__ */ __name((text2, exact) => validateFields(parseLucene(text2, { ...SEARCH_QUERY, defaultField: exact ? "exact" : "text" })).root, "parsedQuery");
34798
34963
  var resolvedQuery = /* @__PURE__ */ __name(async (store, root, timezone) => {
@@ -35221,7 +35386,7 @@ var searchNotesOf = /* @__PURE__ */ __name(async (store, account, text2, { accou
35221
35386
  };
35222
35387
  }, "searchNotesOf");
35223
35388
 
35224
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/events-search.js
35389
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/events-search.js
35225
35390
  var MAX_EVENTS_OFFSET = 1e3;
35226
35391
  var iso3 = /* @__PURE__ */ __name((at) => at === null ? null : new Date(at).toISOString(), "iso");
35227
35392
  var accountIdsOf = /* @__PURE__ */ __name(async (store, accounts) => {
@@ -35339,7 +35504,7 @@ var searchEvents = /* @__PURE__ */ __name(async (store, query, { limit = 20, off
35339
35504
  };
35340
35505
  }, "searchEvents");
35341
35506
 
35342
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/search-all-business.js
35507
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/search-all-business.js
35343
35508
  var OWN_BUSINESS = { provider: "business", account: INTERNAL_NOTES };
35344
35509
  var BUSINESS_WORDS_ONLY = "invoices, payments, orders, contracts, subscriptions, products and wallets are found by the words of their numbers and names only";
35345
35510
  var placeOf = /* @__PURE__ */ __name(({ source, imported }) => source ?? (imported === void 0 ? OWN_BUSINESS : { provider: imported, account: "" }), "placeOf");
@@ -35369,7 +35534,7 @@ var searchBusiness = /* @__PURE__ */ __name(async (store, { words: words3, anyWo
35369
35534
  };
35370
35535
  }, "searchBusiness");
35371
35536
 
35372
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/meeting-hit-search.js
35537
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/meeting-hit-search.js
35373
35538
  var resolveMeetingSelection = /* @__PURE__ */ __name(async (store, request) => {
35374
35539
  const { project, tag, topic, ...input } = request;
35375
35540
  input.signal?.throwIfAborted();
@@ -35407,7 +35572,7 @@ var resolveMeetingSelection = /* @__PURE__ */ __name(async (store, request) => {
35407
35572
  return { input, selection };
35408
35573
  }, "resolveMeetingSelection");
35409
35574
 
35410
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/search-all-meetings.js
35575
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/search-all-meetings.js
35411
35576
  var MOST_HITS_PER_MEETING = 3;
35412
35577
  var PAGE_ROWS = 200;
35413
35578
  var MOST_PAGES = 25;
@@ -35635,7 +35800,7 @@ var titleItem = /* @__PURE__ */ __name((account, meeting, query) => ({
35635
35800
  foundBy: ["title"]
35636
35801
  }), "titleItem");
35637
35802
 
35638
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/search-harder.js
35803
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/search-harder.js
35639
35804
  var SECTION3 = "search_harder";
35640
35805
  var HARDER_MODELS = {
35641
35806
  anthropic: "claude-haiku-5-5",
@@ -35881,7 +36046,7 @@ var reorderHarder = /* @__PURE__ */ __name(async (question, hits, { laterPage, a
35881
36046
  };
35882
36047
  }, "reorderHarder");
35883
36048
 
35884
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/search-all.js
36049
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/search-all.js
35885
36050
  var RESOURCES_SEARCHED = ["messages", "mail", "notes", "events", "crm", "business", "meetings"];
35886
36051
  var refusal = /* @__PURE__ */ __name((error, text2) => {
35887
36052
  const { reason, span } = error.details ?? {};
@@ -36294,7 +36459,7 @@ var insidePeriodFirst = /* @__PURE__ */ __name((ordered, period) => {
36294
36459
  return ordered.map((item2, rank) => ({ item: item2, score: 1 - rank / PERIOD_DEPTH + (inside2(item2) ? PERIOD_BOOST : 0) })).sort((a, b) => b.score - a.score).map(({ item: item2 }) => item2);
36295
36460
  }, "insidePeriodFirst");
36296
36461
 
36297
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/server-search.js
36462
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/server-search.js
36298
36463
  var SERVER_SEARCH_KEY = "messages.server-search";
36299
36464
  var SERVER_BOUNDS = { timeMs: 5e3, perCall: 100, maxCalls: 3, textBytes: 262144 };
36300
36465
  var DEFAULT_BACKEND = "both";
@@ -36317,31 +36482,37 @@ var merge = /* @__PURE__ */ __name((one, other) => {
36317
36482
  };
36318
36483
  }, "merge");
36319
36484
  var sameAccount4 = /* @__PURE__ */ __name((one, other) => one.provider === other.provider && one.account === other.account, "sameAccount");
36320
- var branchesOf = /* @__PURE__ */ __name((node, account) => {
36321
- if (node.kind === "predicate") {
36322
- if ((node.field === "text" || node.field === "exact") && (node.operator === "term" || node.operator === "phrase"))
36323
- return node.value === "" ? [{ words: [] }] : [{ words: [node.value] }];
36485
+ var serverReads = /* @__PURE__ */ __name((account) => ({
36486
+ fields: {
36487
+ text: ["term", "phrase"],
36488
+ exact: ["term", "phrase"],
36489
+ chat: ["term", "phrase"],
36490
+ from: ["term", "phrase"],
36491
+ date: ["term", "range"]
36492
+ },
36493
+ maxCalls: SERVER_BOUNDS.maxCalls,
36494
+ all: { words: [] },
36495
+ leaf: /* @__PURE__ */ __name((node) => {
36496
+ if (node.field === "text" || node.field === "exact")
36497
+ return { words: node.value === "" ? [] : [node.value] };
36324
36498
  const { chat, sender, date: date2 } = node.resolution ?? {};
36325
36499
  if (chat)
36326
- return sameAccount4(chat.account, account) ? [{ words: [], chat: chat.chatId }] : [];
36500
+ return sameAccount4(chat.account, account) ? { words: [], chat: chat.chatId } : void 0;
36327
36501
  if (sender?.provider === account.provider)
36328
- return [{ words: [], from: sender.id }];
36329
- if (date2)
36330
- return [
36331
- {
36332
- words: [],
36333
- ...date2.lower === void 0 ? {} : { minDate: date2.lower_inclusive ? date2.lower : date2.lower + 1 },
36334
- ...date2.upper === void 0 ? {} : { maxDate: date2.upper_inclusive ? date2.upper : date2.upper - 1 }
36335
- }
36336
- ];
36337
- return [{ words: [] }];
36338
- }
36339
- const must = node.clauses.filter(({ occur }) => occur === "must");
36340
- if (must.length)
36341
- return must.reduce((product, { node: node2 }) => product.flatMap((one) => branchesOf(node2, account).flatMap((other) => merge(one, other) ?? [])), [{ words: [] }]);
36342
- const should = node.clauses.filter(({ occur }) => occur === "should");
36343
- return should.length ? should.flatMap(({ node: node2 }) => branchesOf(node2, account)) : [{ words: [] }];
36344
- }, "branchesOf");
36502
+ return { words: [], from: sender.id };
36503
+ if (date2) {
36504
+ const { from, to } = windowOf(date2);
36505
+ return {
36506
+ words: [],
36507
+ ...from === void 0 ? {} : { minDate: from },
36508
+ ...to === void 0 ? {} : { maxDate: to }
36509
+ };
36510
+ }
36511
+ return { words: [] };
36512
+ }, "leaf"),
36513
+ both: merge,
36514
+ sends: /* @__PURE__ */ __name(({ words: words3 }) => words3.length > 0, "sends")
36515
+ }), "serverReads");
36345
36516
  var asQuery = /* @__PURE__ */ __name(({ words: words3, from, ...rest }) => ({
36346
36517
  text: words3.join(" "),
36347
36518
  ...rest,
@@ -36398,15 +36569,12 @@ var searchServer = /* @__PURE__ */ __name(async (deps, request) => {
36398
36569
  const scoped = execution.chat ? sameAccount4(execution.chat.account, account) ? { words: [], chat: execution.chat.chatId } : void 0 : { words: [] };
36399
36570
  if (!scoped)
36400
36571
  return skip("other_accounts");
36401
- const all = branchesOf(execution.root, account).flatMap((branch) => merge(scoped, branch) ?? []);
36402
- const unique = [
36403
- ...new Map(all.filter(({ words: words3 }) => words3.length).map((branch) => [JSON.stringify(branch), branch])).values()
36404
- ];
36405
- if (!unique.length)
36572
+ const { calls, complete } = serviceCallsOf(execution.root, serverReads(account), scoped);
36573
+ if (!calls.length)
36406
36574
  return skip("no_words");
36407
- if (deps.messenger.serverSearch === "chat" && unique.some(({ chat }) => chat === void 0))
36575
+ if (deps.messenger.serverSearch === "chat" && calls.some(({ chat }) => chat === void 0))
36408
36576
  return skip("needs_chat");
36409
- if (unique.length > SERVER_BOUNDS.maxCalls)
36577
+ if (!complete)
36410
36578
  report.complete = false;
36411
36579
  const controller = new AbortController();
36412
36580
  const timer = setTimeout(() => controller.abort(), timeMs);
@@ -36416,7 +36584,6 @@ var searchServer = /* @__PURE__ */ __name(async (deps, request) => {
36416
36584
  resolve7(BOUND);
36417
36585
  stop.addEventListener("abort", () => resolve7(BOUND), { once: true });
36418
36586
  });
36419
- const calls = unique.slice(0, SERVER_BOUNDS.maxCalls);
36420
36587
  const pending = new Set(calls);
36421
36588
  const found = [];
36422
36589
  let open7 = true;
@@ -36483,7 +36650,7 @@ var searchServer = /* @__PURE__ */ __name(async (deps, request) => {
36483
36650
  return { report, sources };
36484
36651
  }, "searchServer");
36485
36652
 
36486
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/messages.js
36653
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/messages.js
36487
36654
  var DELETE_AT_ONCE = 10;
36488
36655
  var filesOf = /* @__PURE__ */ __name(({ attachments }) => {
36489
36656
  const files = fileLinks(attachments);
@@ -36923,7 +37090,7 @@ var checkMediaOptions = /* @__PURE__ */ __name((messenger, asked, attachments) =
36923
37090
  throw new CliError("validation_error", `${MEDIA_FLAGS[first2]} needs a --photo or --file`);
36924
37091
  }, "checkMediaOptions");
36925
37092
 
36926
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/domain/channel-tags.js
37093
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/domain/channel-tags.js
36927
37094
  var CHANNEL_TAG_RULES_VERSION = "keywords-v1";
36928
37095
  var RULES2 = {
36929
37096
  ai: [/\b(ai|gpt|llm|machine learning|artificial intelligence)\b/iu, /нейросет|искусственн/iu],
@@ -36938,7 +37105,7 @@ var classifyChannel = /* @__PURE__ */ __name((metadata) => Object.entries(RULES2
36938
37105
  return fields.length ? [{ tag, score: fields.length / 3, fields }] : [];
36939
37106
  }), "classifyChannel");
36940
37107
 
36941
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/metadata.js
37108
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/metadata.js
36942
37109
  var metadataService = /* @__PURE__ */ __name((deps) => {
36943
37110
  const held = /* @__PURE__ */ __name(async (reference, { includeLeft = false } = {}) => {
36944
37111
  const store = await deps.store();
@@ -37024,7 +37191,7 @@ var metadataService = /* @__PURE__ */ __name((deps) => {
37024
37191
  };
37025
37192
  }, "metadataService");
37026
37193
 
37027
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/moderation/run.js
37194
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/moderation/run.js
37028
37195
  var FIRST_LOOK_MS = 24 * 36e5;
37029
37196
  var moderateWith = /* @__PURE__ */ __name(async (run2) => {
37030
37197
  const { chatId, title, rules, point, since, dryRun } = run2;
@@ -37061,7 +37228,7 @@ var moderateWith = /* @__PURE__ */ __name(async (run2) => {
37061
37228
  return { chatId, rows, notes };
37062
37229
  }, "moderateWith");
37063
37230
 
37064
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/moderation.js
37231
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/moderation.js
37065
37232
  var moderationService = /* @__PURE__ */ __name((deps) => {
37066
37233
  const file = /* @__PURE__ */ __name(() => new ModerationRules(moderationPathFor(deps.messenger.app, deps.profile ?? "default", deps.env ?? process.env)), "file");
37067
37234
  const group = /* @__PURE__ */ __name(async (chat) => {
@@ -37139,7 +37306,7 @@ var moderatorOf = /* @__PURE__ */ __name((adapter, deps) => ({
37139
37306
  }, "removePerson")
37140
37307
  }), "moderatorOf");
37141
37308
 
37142
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/private-people.js
37309
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/private-people.js
37143
37310
  var noteItem = /* @__PURE__ */ __name((provider, note) => ({
37144
37311
  id: note.id,
37145
37312
  contact: formatReference({ type: "contact", provider, id: note.personId }),
@@ -37183,7 +37350,7 @@ var privatePeopleService = /* @__PURE__ */ __name((deps) => {
37183
37350
  };
37184
37351
  }, "privatePeopleService");
37185
37352
 
37186
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/rankings.js
37353
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/rankings.js
37187
37354
  var empty = /* @__PURE__ */ __name(() => ({
37188
37355
  total: 0,
37189
37356
  population: 0,
@@ -37439,7 +37606,7 @@ var rankingsService = /* @__PURE__ */ __name((deps) => ({
37439
37606
  }, "evidence")
37440
37607
  }), "rankingsService");
37441
37608
 
37442
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/reply-stats.js
37609
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/reply-stats.js
37443
37610
  var FIELDS = ["date", "chat", "kind", "muted"];
37444
37611
  var WAITING_TAIL = 100;
37445
37612
  var plainOnly = /* @__PURE__ */ __name((text2, command) => {
@@ -37573,7 +37740,7 @@ var replyStatsService = /* @__PURE__ */ __name((deps) => {
37573
37740
  };
37574
37741
  }, "replyStatsService");
37575
37742
 
37576
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/searches.js
37743
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/searches.js
37577
37744
  var savedSearchItem = /* @__PURE__ */ __name((one) => ({
37578
37745
  id: one.id,
37579
37746
  name: one.name,
@@ -37699,7 +37866,7 @@ var searchesService = /* @__PURE__ */ __name((deps) => {
37699
37866
  };
37700
37867
  }, "searchesService");
37701
37868
 
37702
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/tags.js
37869
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/tags.js
37703
37870
  var TAGGING_QUERY = {
37704
37871
  entity: "tagging",
37705
37872
  backend: "sql",
@@ -37783,7 +37950,7 @@ var tagsService = /* @__PURE__ */ __name((deps) => {
37783
37950
  };
37784
37951
  }, "tagsService");
37785
37952
 
37786
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/topics.js
37953
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/topics.js
37787
37954
  var actionOf = /* @__PURE__ */ __name(({ title, closed, pinned, hidden, icon }) => {
37788
37955
  const set = [closed, pinned, hidden].filter((one) => one !== void 0).length;
37789
37956
  if (title !== void 0 || icon !== void 0 || set !== 1)
@@ -37982,10 +38149,10 @@ var topicsService = /* @__PURE__ */ __name((deps) => {
37982
38149
  };
37983
38150
  }, "topicsService");
37984
38151
 
37985
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/crm/sync.js
38152
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/crm/sync.js
37986
38153
  var CLOCK_MARGIN = 60 * 6e4;
37987
38154
 
37988
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/crm/writer.js
38155
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/crm/writer.js
37989
38156
  var CRM_ASSIGN_OTHERS_KEY = "crm.assign-others";
37990
38157
  var CRM_WRITE_DEFAULTS = {
37991
38158
  "deals.delete": "ask",
@@ -37993,7 +38160,7 @@ var CRM_WRITE_DEFAULTS = {
37993
38160
  [CRM_ASSIGN_OTHERS_KEY]: "deny"
37994
38161
  };
37995
38162
 
37996
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/evidence.js
38163
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/evidence.js
37997
38164
  import { createHash as createHash11, randomUUID as randomUUID6 } from "node:crypto";
37998
38165
  var hash2 = /* @__PURE__ */ __name((value) => createHash11("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
37999
38166
  var positive2 = /* @__PURE__ */ __name((value, name, minimum = 1) => {
@@ -38067,7 +38234,7 @@ var prepareEvidencePacket = /* @__PURE__ */ __name(({ kind, source, page, limits
38067
38234
  return { ...content, id: randomUUID6(), fingerprint: hash2(content) };
38068
38235
  }, "prepareEvidencePacket");
38069
38236
 
38070
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/evidence-read.js
38237
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/evidence-read.js
38071
38238
  var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, limit, before: before2 }, messenger = {}) => {
38072
38239
  if (!Number.isSafeInteger(limit) || limit < 1 || limit > 100)
38073
38240
  throw new CliError("validation_error", "evidence message limit must be an integer from 1 to 100");
@@ -38087,7 +38254,7 @@ var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, l
38087
38254
  return { ...packet, nextBeforeId: older && last ? last.id : null };
38088
38255
  }, "readEvidencePacket");
38089
38256
 
38090
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/meeting-project-discovery.js
38257
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/meeting-project-discovery.js
38091
38258
  var scopeKeys = [
38092
38259
  "accountId",
38093
38260
  "meetingId",
@@ -38109,7 +38276,7 @@ var optionKeys = /* @__PURE__ */ new Set([
38109
38276
  "maxVocabularyReadBytes"
38110
38277
  ]);
38111
38278
 
38112
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/text-model-choice.js
38279
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/text-model-choice.js
38113
38280
  import { createHash as createHash12 } from "node:crypto";
38114
38281
  import { existsSync as existsSync2 } from "node:fs";
38115
38282
  var useTextModel = /* @__PURE__ */ __name(async (id2, { env, command }) => {
@@ -38240,14 +38407,14 @@ var addCustomTextModel = /* @__PURE__ */ __name(async (id2, payload, { env, fetc
38240
38407
  return { ...checked2.output, custom: true };
38241
38408
  }, "addCustomTextModel");
38242
38409
 
38243
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/calendar/sync.js
38410
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/calendar/sync.js
38244
38411
  var DAY6 = 864e5;
38245
38412
  var SLOTS_EVERY = 7 * DAY6;
38246
38413
 
38247
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/calendar/feeds.js
38414
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/calendar/feeds.js
38248
38415
  var FEED_LIMITS = { maxBytes: 10 * 1024 * 1024, timeoutMs: 3e4, redirects: 5 };
38249
38416
 
38250
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/calendar/reads.js
38417
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/calendar/reads.js
38251
38418
  var LIST = "events list";
38252
38419
  var EVENT_TYPES = [
38253
38420
  "default",
@@ -38306,7 +38473,7 @@ var EVENTS_QUERY = {
38306
38473
  } : field)
38307
38474
  };
38308
38475
 
38309
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/calendar/writer.js
38476
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/calendar/writer.js
38310
38477
  var EVENTS_NOTIFY_KEY = "events.notify";
38311
38478
  var EVENTS_DELETE_SERIES_KEY = "events.delete.series";
38312
38479
  var EVENTS_REMIND_HOOK_KEY = "events.remind.hook";
@@ -38324,7 +38491,7 @@ var CALENDAR_WRITE_DEFAULTS = {
38324
38491
  [EVENTS_REMIND_HOOK_KEY]: "deny"
38325
38492
  };
38326
38493
 
38327
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/context/communication-selection.js
38494
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/context/communication-selection.js
38328
38495
  var communicationFields = {
38329
38496
  sources: pipe(array(strictObject({
38330
38497
  id: pipe(string(), regex(/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/)),
@@ -38356,7 +38523,7 @@ var communicationRequest = /* @__PURE__ */ __name((value, preparationAfter) => {
38356
38523
  return { ...input, after, before: before2 };
38357
38524
  }, "communicationRequest");
38358
38525
 
38359
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/meeting-preparation-validation.js
38526
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/meeting-preparation-validation.js
38360
38527
  var MEETING_PREPARATION_LIMITS = {
38361
38528
  meetings: { min: 1, max: 20, default: 5 },
38362
38529
  cues: { min: 1, max: 100, default: 10 },
@@ -38429,7 +38596,7 @@ var validateMeetingPreparationRequest = /* @__PURE__ */ __name((externalId, orig
38429
38596
  };
38430
38597
  }, "validateMeetingPreparationRequest");
38431
38598
 
38432
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/meeting-communications-selection.js
38599
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/meeting-communications-selection.js
38433
38600
  var validatePreparationCommunications = /* @__PURE__ */ __name((section, request, after) => {
38434
38601
  const fail2 = /* @__PURE__ */ __name(() => {
38435
38602
  throw new CliError("invalid_response", "Preparation communications returned another selection or invalid evidence");
@@ -38477,7 +38644,7 @@ var validatePreparationCommunications = /* @__PURE__ */ __name((section, request
38477
38644
  }
38478
38645
  }, "validatePreparationCommunications");
38479
38646
 
38480
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/package-upgrade.js
38647
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/package-upgrade.js
38481
38648
  var upgradePackage = /* @__PURE__ */ __name(async ({ current, command, packageName, check: check2 }, ports) => {
38482
38649
  const installer = ports.installer();
38483
38650
  const argv = updateCommand(installer, packageName);
@@ -38542,7 +38709,7 @@ var dayAfter = /* @__PURE__ */ __name((published) => {
38542
38709
  return Number.isNaN(time) ? null : new Date(time + 24 * 60 * 60 * 1e3).toISOString();
38543
38710
  }, "dayAfter");
38544
38711
 
38545
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/services/index.js
38712
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/index.js
38546
38713
  var servicesFor = /* @__PURE__ */ __name((deps) => {
38547
38714
  const pictures = picturesService(deps);
38548
38715
  const base = {
@@ -38579,7 +38746,7 @@ var servicesFor = /* @__PURE__ */ __name((deps) => {
38579
38746
  return deps.messenger.services ? { ...base, ...deps.messenger.services(base, deps) } : base;
38580
38747
  }, "servicesFor");
38581
38748
 
38582
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/background/relay.js
38749
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/background/relay.js
38583
38750
  import { createHash as createHash13 } from "node:crypto";
38584
38751
  import { chmodSync, lstatSync, mkdirSync as mkdirSync6, rmSync as rmSync3 } from "node:fs";
38585
38752
  import { createConnection, createServer } from "node:net";
@@ -38800,7 +38967,7 @@ var relayCommand = /* @__PURE__ */ __name((path, request, options2) => new Promi
38800
38967
  }, () => finish({ error: stopped() }));
38801
38968
  }), "relayCommand");
38802
38969
 
38803
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_2476fb045fb1ee08e5e46f4aab8c07fa/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-relay.js
38970
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-relay.js
38804
38971
  var lentConnection = /* @__PURE__ */ __name((connection, watchers) => throughWrapper(connection, {
38805
38972
  close: /* @__PURE__ */ __name(async () => {
38806
38973
  }, "close"),
@@ -38967,6 +39134,7 @@ export {
38967
39134
  readUpload,
38968
39135
  readAttachments,
38969
39136
  readStickerFile,
39137
+ decodeEntities,
38970
39138
  importEngine,
38971
39139
  extractText,
38972
39140
  engineHint,