@wirecat/hubspot-cli 0.6.0 → 0.7.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 (134) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/bin/hubspot.js +2 -2
  3. package/dist/bundle/agent-JXICB6TB.js +40 -0
  4. package/dist/bundle/{all-profiles-HFVXPMF6.js → all-profiles-GVEX5MXB.js} +7 -7
  5. package/dist/bundle/{anthropic-VE6WR6IN.js → anthropic-GK6VBQUD.js} +2 -2
  6. package/dist/bundle/{app-server-GZ4DCQK7.js → app-server-JRROE463.js} +60 -60
  7. package/dist/bundle/{bun-2DHMKD34.js → bun-B7XTFPUF.js} +2 -2
  8. package/dist/bundle/{bun-sqlite-T5XTYL7L.js → bun-sqlite-QSNZ2YP4.js} +3 -3
  9. package/dist/bundle/{chunk-6DABKZYH.js → chunk-2FLLS5IL.js} +34 -20
  10. package/dist/bundle/{chunk-UVGJL753.js → chunk-2HSYAKWO.js} +51 -51
  11. package/dist/bundle/{chunk-PDVMYIBP.js → chunk-2IRBXFIU.js} +1166 -599
  12. package/dist/bundle/{chunk-YIH2A2PQ.js → chunk-2PCVKD27.js} +1 -1
  13. package/dist/bundle/{chunk-VR2CJFVL.js → chunk-2V5KOOJV.js} +7 -7
  14. package/dist/bundle/{chunk-5O5WYSSO.js → chunk-4F62XXF6.js} +495 -375
  15. package/dist/bundle/{chunk-67YPTVGP.js → chunk-4HZQ5UIY.js} +2 -2
  16. package/dist/bundle/{chunk-5WDNG4QE.js → chunk-4LHNA6LJ.js} +1 -1
  17. package/dist/bundle/{chunk-THGAVPRA.js → chunk-52NC5E42.js} +10 -10
  18. package/dist/bundle/{chunk-XRFYVVFU.js → chunk-5AVU5SF6.js} +1 -1
  19. package/dist/bundle/{chunk-UCGZRZJA.js → chunk-5EJ3C3JG.js} +1 -1
  20. package/dist/bundle/{chunk-3W5R3XAH.js → chunk-5ISQ4KJM.js} +6 -6
  21. package/dist/bundle/{chunk-CU76ZACK.js → chunk-5MFZYHPO.js} +2 -2
  22. package/dist/bundle/{chunk-K4Y2ZWOO.js → chunk-63YWTFZF.js} +3 -3
  23. package/dist/bundle/{chunk-GWXTVO43.js → chunk-6EHX762H.js} +6 -6
  24. package/dist/bundle/{chunk-YDG5FIQB.js → chunk-6IHXKMY6.js} +6 -6
  25. package/dist/bundle/{chunk-J76CMNWQ.js → chunk-6WKK4UZP.js} +1 -1
  26. package/dist/bundle/{chunk-CTN4DW2F.js → chunk-A7KGBXBT.js} +3 -3
  27. package/dist/bundle/{chunk-3YTTWJKL.js → chunk-ALOPYWYY.js} +1 -1
  28. package/dist/bundle/{chunk-Q6AC7WLD.js → chunk-B3JVNOTB.js} +2 -2
  29. package/dist/bundle/{chunk-5NIIXJV3.js → chunk-BQPAIGAF.js} +2 -2
  30. package/dist/bundle/{chunk-HZIGGAC7.js → chunk-BRBBZDMZ.js} +1 -1
  31. package/dist/bundle/{chunk-E27NRLJZ.js → chunk-BXXU4EXK.js} +17 -17
  32. package/dist/bundle/{chunk-5IPB5WLB.js → chunk-BY3NKT34.js} +10 -10
  33. package/dist/bundle/{chunk-HYDXA624.js → chunk-CBTWKTWN.js} +5 -5
  34. package/dist/bundle/{chunk-MJ24YFXZ.js → chunk-CEHBT7QX.js} +5 -5
  35. package/dist/bundle/{chunk-RLK2EGQD.js → chunk-DBHJIFDS.js} +28 -15
  36. package/dist/bundle/{chunk-EJZIEBAR.js → chunk-DIHVN5IC.js} +6 -6
  37. package/dist/bundle/{chunk-2VUIJ5XB.js → chunk-DMYLQX2O.js} +1 -1
  38. package/dist/bundle/{chunk-J2SCELII.js → chunk-DWWZAQ4N.js} +13 -13
  39. package/dist/bundle/{chunk-WE4JSHIG.js → chunk-GD5JTKLS.js} +1 -1
  40. package/dist/bundle/{chunk-R26OEZOL.js → chunk-GHBJBDTW.js} +1 -1
  41. package/dist/bundle/{chunk-3HS7JTPI.js → chunk-GYH2AXPO.js} +13 -13
  42. package/dist/bundle/{chunk-JFLKTYH5.js → chunk-GZD6BYO7.js} +5 -5
  43. package/dist/bundle/{chunk-AKSWXRIU.js → chunk-I5WHQH5K.js} +1 -1
  44. package/dist/bundle/{chunk-J4FXBF44.js → chunk-INT5JXGP.js} +1 -1
  45. package/dist/bundle/{chunk-KKMOKSS5.js → chunk-IRFFXKKK.js} +2 -2
  46. package/dist/bundle/{chunk-RLNPTES2.js → chunk-J5HHB27S.js} +4 -4
  47. package/dist/bundle/{chunk-GEJI27GN.js → chunk-JEUYZCWF.js} +5 -5
  48. package/dist/bundle/{chunk-EB53G4HO.js → chunk-JQUS4KFV.js} +2 -2
  49. package/dist/bundle/{chunk-GR4HZBWO.js → chunk-KGLMYQXM.js} +1 -1
  50. package/dist/bundle/{chunk-JDCFHZNU.js → chunk-L3DUZVBP.js} +7 -7
  51. package/dist/bundle/{chunk-I75ON7VM.js → chunk-LGGBKAVQ.js} +7 -7
  52. package/dist/bundle/{chunk-ID4GJFE7.js → chunk-LJ52BS6C.js} +6 -6
  53. package/dist/bundle/{chunk-ZERQSELP.js → chunk-M3JDGRXM.js} +184 -157
  54. package/dist/bundle/{chunk-3TLNO3VM.js → chunk-MR2BNER3.js} +1 -1
  55. package/dist/bundle/{chunk-NQOQG7L3.js → chunk-NUPAXK4Z.js} +1 -1
  56. package/dist/bundle/{chunk-LTU4BQ4S.js → chunk-OX37ZK27.js} +2 -2
  57. package/dist/bundle/{chunk-LHY5XGIR.js → chunk-P7N3TZLH.js} +56 -56
  58. package/dist/bundle/{chunk-PZ3QJDTD.js → chunk-QAQK2WXJ.js} +4 -4
  59. package/dist/bundle/{chunk-BU5CEMUH.js → chunk-QY7EOB66.js} +12 -12
  60. package/dist/bundle/{chunk-MSQGZHKM.js → chunk-RE55EPBX.js} +25 -24
  61. package/dist/bundle/{chunk-X2QRCFGJ.js → chunk-SBORPDIQ.js} +3 -3
  62. package/dist/bundle/{chunk-GHXTNKX2.js → chunk-SFFV2F3Y.js} +2 -2
  63. package/dist/bundle/{chunk-24HPBWKZ.js → chunk-SMEEFN65.js} +2 -2
  64. package/dist/bundle/{chunk-UZ2CL435.js → chunk-SVRCPPNI.js} +1 -1
  65. package/dist/bundle/{chunk-G6LDK6DJ.js → chunk-SZZVNPTI.js} +4 -4
  66. package/dist/bundle/{chunk-TXO4CJW3.js → chunk-TXCINEH6.js} +5 -5
  67. package/dist/bundle/{chunk-ZKTYTOF4.js → chunk-UMXA357W.js} +7 -7
  68. package/dist/bundle/{chunk-KDW7B7AR.js → chunk-VJQLJQHT.js} +4 -4
  69. package/dist/bundle/{chunk-H4W2OO35.js → chunk-WSTF2MWW.js} +1 -1
  70. package/dist/bundle/{chunk-TRLV5NWZ.js → chunk-WSUS3MUK.js} +478 -385
  71. package/dist/bundle/{chunk-M3LRSN6J.js → chunk-WWIYZN67.js} +12 -12
  72. package/dist/bundle/{chunk-2I2KBCS6.js → chunk-XL3NAXZY.js} +3 -3
  73. package/dist/bundle/{chunk-QK5HQUHB.js → chunk-XWYYFAML.js} +2 -2
  74. package/dist/bundle/{chunk-5VTKBGPW.js → chunk-XZLOQNS7.js} +10 -10
  75. package/dist/bundle/{chunk-TAPQZYXY.js → chunk-YDTFPDAJ.js} +1 -1
  76. package/dist/bundle/{chunk-4UEYVM46.js → chunk-YFHCKAGU.js} +3 -3
  77. package/dist/bundle/{chunk-TT75CEYZ.js → chunk-YGZ37OEN.js} +1 -1
  78. package/dist/bundle/{chunk-V7N2K5OT.js → chunk-YOVIH4QI.js} +22 -22
  79. package/dist/bundle/{chunk-PR7ZDMGF.js → chunk-YVMLFHWS.js} +2 -2
  80. package/dist/bundle/{chunk-T4MZJMEJ.js → chunk-ZH76HQDA.js} +16 -16
  81. package/dist/bundle/{chunk-QH47G73D.js → chunk-ZNNGK73C.js} +2 -2
  82. package/dist/bundle/{chunk-5ILCAAY4.js → chunk-ZNRZJIRM.js} +33 -33
  83. package/dist/bundle/{chunk-BM5F2ZNI.js → chunk-ZS6T2PYQ.js} +1 -1
  84. package/dist/bundle/command-contract-7EWUA6E6.js +40 -0
  85. package/dist/bundle/{command-server-entry-H6IAJNOF.js → command-server-entry-BFXXPNJO.js} +24 -24
  86. package/dist/bundle/{decode-TR2EC46M.js → decode-5M7R44BR.js} +2 -2
  87. package/dist/bundle/{echarts-7OP7I5B2.js → echarts-7MBFY6SZ.js} +2 -2
  88. package/dist/bundle/{embed-FLGS4LN7.js → embed-Y4GYNHRX.js} +3 -3
  89. package/dist/bundle/{embedder-JIXQXCP3.js → embedder-FI4T4LQB.js} +6 -6
  90. package/dist/bundle/{first-run-XJ2NWIK2.js → first-run-YY66AKKG.js} +6 -6
  91. package/dist/bundle/first-screen-U7Z63VXE.js +40 -0
  92. package/dist/bundle/hubspot.js +17 -17
  93. package/dist/bundle/{instructions-PYCYV6QE.js → instructions-SM7TKV6L.js} +1 -1
  94. package/dist/bundle/{meeting-combined-IHTM5H5B.js → meeting-combined-B444C4NF.js} +11 -11
  95. package/dist/bundle/{meeting-model-2PA5WJY5.js → meeting-model-DKLMBQXX.js} +8 -8
  96. package/dist/bundle/{meeting-semantic-5IH63QFV.js → meeting-semantic-C5T6UDVB.js} +2 -2
  97. package/dist/bundle/{node-6GTNIVBM.js → node-OS6OQF3F.js} +2 -2
  98. package/dist/bundle/{node-sqlite-FBCEHPNT.js → node-sqlite-2XTWZ4HL.js} +4 -4
  99. package/dist/bundle/{oauth-BFP4SCL5.js → oauth-BSSJ66FC.js} +4 -4
  100. package/dist/bundle/{open-MLU4MHGO.js → open-UZ3TKWDY.js} +2 -2
  101. package/dist/bundle/{openai-R7WJI6SO.js → openai-POVKFBTC.js} +12 -12
  102. package/dist/bundle/{process-NMNQLJHZ.js → process-A7ZJGQ6G.js} +1 -1
  103. package/dist/bundle/{program-Z735HPFG.js → program-Q3JFUVC6.js} +193 -102
  104. package/dist/bundle/{prompt-A6RM55Q4.js → prompt-TYOYTRJM.js} +2 -2
  105. package/dist/bundle/{recognize-ORRDV45M.js → recognize-GGFRONZT.js} +1 -1
  106. package/dist/bundle/{remote-UF3WSC4X.js → remote-K4SLWHMI.js} +6 -6
  107. package/dist/bundle/{rerank-ZSJORUGH.js → rerank-2QTKDUBV.js} +4 -4
  108. package/dist/bundle/{serve-4KBJ6SIA.js → serve-FG2G2X6Y.js} +6 -6
  109. package/dist/bundle/{server-IFK4S6LJ.js → server-KRDHBT5Q.js} +52 -52
  110. package/dist/bundle/server-VFKK6OS4.js +86 -0
  111. package/dist/bundle/{source-PBCQAG4C.js → source-XP2JNUVU.js} +64 -64
  112. package/dist/bundle/{sqlite-runtime-XPDUWOPG.js → sqlite-runtime-TWV7KFLA.js} +3 -3
  113. package/dist/bundle/{state-4M26H7NL.js → state-EFX5ZQED.js} +3 -3
  114. package/dist/bundle/store-LON2XRIS.js +34 -0
  115. package/dist/bundle/{store-3W4ZOOIB.js → store-MNQ6YQIS.js} +20 -20
  116. package/dist/bundle/{store-ICTY3RIF.js → store-QPVH5VPJ.js} +18 -18
  117. package/dist/bundle/store-maintenance-command-YEMPRNJX.js +73 -0
  118. package/dist/bundle/surface-UJRMT6QT.js +72 -0
  119. package/dist/bundle/writer-NOSHE7ZI.js +86 -0
  120. package/dist/crm/records.d.ts.map +1 -1
  121. package/dist/crm/records.js +3 -0
  122. package/dist/crm/records.js.map +1 -1
  123. package/dist/version.d.ts +1 -1
  124. package/dist/version.js +1 -1
  125. package/package.json +2 -2
  126. package/skills/hubspot-cli/SKILL.md +10 -3
  127. package/dist/bundle/agent-XB35QVOK.js +0 -40
  128. package/dist/bundle/command-contract-5FXCYQUS.js +0 -40
  129. package/dist/bundle/first-screen-U73G5CMM.js +0 -40
  130. package/dist/bundle/server-MNUAZWTN.js +0 -86
  131. package/dist/bundle/store-CDY2PW6J.js +0 -34
  132. package/dist/bundle/store-maintenance-command-Y7TC3I43.js +0 -73
  133. package/dist/bundle/surface-4LNDJZD2.js +0 -72
  134. package/dist/bundle/writer-WGHWQTC2.js +0 -86
@@ -8,10 +8,10 @@ import {
8
8
  sameOrdinaryFile,
9
9
  syncDirectory,
10
10
  writeFileAtomic
11
- } from "./chunk-M3LRSN6J.js";
11
+ } from "./chunk-WWIYZN67.js";
12
12
  import {
13
13
  WIRECAT_TOOLS
14
- } from "./chunk-TT75CEYZ.js";
14
+ } from "./chunk-YGZ37OEN.js";
15
15
  import {
16
16
  isNewer,
17
17
  updateCommand
@@ -25,7 +25,7 @@ import {
25
25
  termField,
26
26
  timeBounds,
27
27
  withQuery
28
- } from "./chunk-BU5CEMUH.js";
28
+ } from "./chunk-QY7EOB66.js";
29
29
  import {
30
30
  EmptyAnswer,
31
31
  MAX_MODEL_IMAGE_BYTES,
@@ -34,7 +34,7 @@ import {
34
34
  range,
35
35
  systemFor,
36
36
  validateImages
37
- } from "./chunk-QK5HQUHB.js";
37
+ } from "./chunk-XWYYFAML.js";
38
38
  import {
39
39
  anyOfTerms,
40
40
  isFunctionWord,
@@ -45,8 +45,9 @@ import {
45
45
  questionText,
46
46
  resolveMeetingSelection,
47
47
  words
48
- } from "./chunk-THGAVPRA.js";
48
+ } from "./chunk-52NC5E42.js";
49
49
  import {
50
+ API_UNTRUSTED,
50
51
  Command,
51
52
  DEFAULT_IMAGE_MODEL,
52
53
  LINK,
@@ -63,6 +64,7 @@ import {
63
64
  baseContext,
64
65
  codeOf,
65
66
  conversation,
67
+ deadlineMargin,
66
68
  envName,
67
69
  environmentOf,
68
70
  guardedWrite,
@@ -73,6 +75,7 @@ import {
73
75
  issueMessage,
74
76
  itemOf,
75
77
  listOf,
78
+ marksUntrusted,
76
79
  oddName,
77
80
  outputFor,
78
81
  parseDuration,
@@ -88,11 +91,11 @@ import {
88
91
  sentIds,
89
92
  tagging,
90
93
  task
91
- } from "./chunk-ZERQSELP.js";
94
+ } from "./chunk-M3JDGRXM.js";
92
95
  import {
93
96
  providerErrorKey,
94
97
  secretInput
95
- } from "./chunk-I75ON7VM.js";
98
+ } from "./chunk-LGGBKAVQ.js";
96
99
  import {
97
100
  CustomTextModelShape,
98
101
  DEFAULT_RERANK_MODEL,
@@ -106,7 +109,7 @@ import {
106
109
  textModels,
107
110
  vectorModelKey,
108
111
  writeTextModelsSection
109
- } from "./chunk-PZ3QJDTD.js";
112
+ } from "./chunk-QAQK2WXJ.js";
110
113
  import {
111
114
  AGENDA_COLUMNS,
112
115
  BUSINESS_FIND_MAX,
@@ -157,22 +160,23 @@ import {
157
160
  profilesOn,
158
161
  queryFilter,
159
162
  rankingContextRange,
163
+ respelled,
160
164
  seenBy,
161
165
  threadConversation,
162
166
  trackerBodyOf,
163
167
  trackerTitleOf,
164
168
  withoutField
165
- } from "./chunk-PDVMYIBP.js";
169
+ } from "./chunk-2IRBXFIU.js";
166
170
  import {
167
171
  DEFAULT_STEMMERS,
168
172
  createStemmer,
169
173
  cutsDeep
170
- } from "./chunk-ZKTYTOF4.js";
174
+ } from "./chunk-UMXA357W.js";
171
175
  import {
172
176
  MINUTE,
173
177
  YEAR,
174
178
  aheadOf
175
- } from "./chunk-CU76ZACK.js";
179
+ } from "./chunk-5MFZYHPO.js";
176
180
  import {
177
181
  FIELD_VERSION,
178
182
  RRF_K,
@@ -181,7 +185,7 @@ import {
181
185
  plainQuery,
182
186
  validateAst,
183
187
  validateFields
184
- } from "./chunk-GWXTVO43.js";
188
+ } from "./chunk-6EHX762H.js";
185
189
  import {
186
190
  LOG_ATTRIBUTES,
187
191
  TASK_KINDS,
@@ -206,16 +210,16 @@ import {
206
210
  sourceOf3 as sourceOf2,
207
211
  typedCommand,
208
212
  withAttempt
209
- } from "./chunk-V7N2K5OT.js";
213
+ } from "./chunk-YOVIH4QI.js";
210
214
  import {
211
215
  isCliFailure,
212
216
  sqliteCode
213
- } from "./chunk-HZIGGAC7.js";
217
+ } from "./chunk-BRBBZDMZ.js";
214
218
  import {
215
219
  localOnly,
216
220
  refuseOffComputer,
217
221
  remoteKey
218
- } from "./chunk-JDCFHZNU.js";
222
+ } from "./chunk-L3DUZVBP.js";
219
223
  import {
220
224
  PLAIN_HTTP_REFUSED,
221
225
  endpoint,
@@ -225,7 +229,7 @@ import {
225
229
  providerWaitMs,
226
230
  readJsonResponse,
227
231
  statusToCode
228
- } from "./chunk-5WDNG4QE.js";
232
+ } from "./chunk-4LHNA6LJ.js";
229
233
  import {
230
234
  Unzip,
231
235
  UnzipInflate,
@@ -236,11 +240,11 @@ import {
236
240
  placedText,
237
241
  runEmbedders,
238
242
  textModelsDirectory
239
- } from "./chunk-JFLKTYH5.js";
243
+ } from "./chunk-GZD6BYO7.js";
240
244
  import {
241
245
  installFiles,
242
246
  megabytes
243
- } from "./chunk-CTN4DW2F.js";
247
+ } from "./chunk-A7KGBXBT.js";
244
248
  import {
245
249
  MAX_ACTIONS,
246
250
  ModerationRules,
@@ -254,7 +258,7 @@ import {
254
258
  someUndone,
255
259
  validateFormattedText,
256
260
  visibleFormattedText
257
- } from "./chunk-EJZIEBAR.js";
261
+ } from "./chunk-DIHVN5IC.js";
258
262
  import {
259
263
  AUTHORITY_KEY,
260
264
  CEILING_KEY,
@@ -267,7 +271,7 @@ import {
267
271
  levelFor,
268
272
  skipFlagFor,
269
273
  stops
270
- } from "./chunk-G6LDK6DJ.js";
274
+ } from "./chunk-SZZVNPTI.js";
271
275
  import {
272
276
  COUNTER_FIELDS,
273
277
  RANKING_TOKENIZER_VERSION,
@@ -286,7 +290,7 @@ import {
286
290
  pickPerson,
287
291
  rankingOptions,
288
292
  rankingQuestion
289
- } from "./chunk-E27NRLJZ.js";
293
+ } from "./chunk-BXXU4EXK.js";
290
294
  import {
291
295
  MESSAGE_PARSING,
292
296
  QUERY_LIMITS,
@@ -296,11 +300,11 @@ import {
296
300
  isQueryLimit,
297
301
  outOfTime,
298
302
  searchError
299
- } from "./chunk-PR7ZDMGF.js";
303
+ } from "./chunk-YVMLFHWS.js";
300
304
  import {
301
305
  fold,
302
306
  normalize
303
- } from "./chunk-AKSWXRIU.js";
307
+ } from "./chunk-I5WHQH5K.js";
304
308
  import {
305
309
  CRM_KINDS,
306
310
  DEAL_KINDS,
@@ -311,6 +315,7 @@ import {
311
315
  currencyOf,
312
316
  formatLocator,
313
317
  formatReference,
318
+ hasGlobalItemIds,
314
319
  holdsKind,
315
320
  holdsKindOf,
316
321
  isCrmUserId,
@@ -327,10 +332,10 @@ import {
327
332
  parseLocator,
328
333
  parseReference,
329
334
  providerNamed
330
- } from "./chunk-RLK2EGQD.js";
335
+ } from "./chunk-DBHJIFDS.js";
331
336
  import {
332
337
  normalizeTag
333
- } from "./chunk-YIH2A2PQ.js";
338
+ } from "./chunk-2PCVKD27.js";
334
339
  import {
335
340
  OPERATORS_BY_TYPE,
336
341
  READ_BUDGET_EXCEEDED,
@@ -354,18 +359,18 @@ import {
354
359
  validateQuery,
355
360
  walkQuery,
356
361
  windowOf
357
- } from "./chunk-UVGJL753.js";
362
+ } from "./chunk-2HSYAKWO.js";
358
363
  import {
359
364
  DEFAULT_TASK_CATEGORIES,
360
365
  FALLBACK_CATEGORY,
361
366
  readSharedSection,
362
367
  sharedConfigPath,
363
368
  writeSharedSection
364
- } from "./chunk-MJ24YFXZ.js";
369
+ } from "./chunk-CEHBT7QX.js";
365
370
  import {
366
371
  storePath,
367
372
  wirecatDirectory
368
- } from "./chunk-2VUIJ5XB.js";
373
+ } from "./chunk-DMYLQX2O.js";
369
374
  import {
370
375
  Credentials,
371
376
  backoffMs,
@@ -17031,10 +17036,10 @@ var require_lib3 = __commonJS({
17031
17036
  }
17032
17037
  });
17033
17038
 
17034
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/ports/traits.js
17039
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/ports/traits.js
17035
17040
  var syncsOneChat = /* @__PURE__ */ __name((messenger) => messenger.history !== "store" || messenger.historyOnDemand === true, "syncsOneChat");
17036
17041
 
17037
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/conversations/link.js
17042
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/conversations/link.js
17038
17043
  var RULES_VERSION = 6;
17039
17044
  var LOOK_BACK = 50;
17040
17045
  var SAME_SENDER_WITHIN = 10;
@@ -17132,7 +17137,7 @@ var latest = /* @__PURE__ */ __name((window2, matches) => {
17132
17137
  var sameThread = /* @__PURE__ */ __name((a, b) => a.threadId === b.threadId, "sameThread");
17133
17138
  var link = /* @__PURE__ */ __name((message, parentId, source, kind2, confidence, method) => ({ messageId: message.id, parentId, source, kind: kind2, confidence, method }), "link");
17134
17139
 
17135
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/sends/upload.js
17140
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/sends/upload.js
17136
17141
  import { openAsBlob, realpathSync } from "node:fs";
17137
17142
  import { open, stat } from "node:fs/promises";
17138
17143
  import { basename, dirname, extname, isAbsolute, relative, resolve, sep } from "node:path";
@@ -17348,7 +17353,7 @@ var readStickerFile = /* @__PURE__ */ __name(async (path2, maxBytes, read) => {
17348
17353
  return { name, source };
17349
17354
  }, "readStickerFile");
17350
17355
 
17351
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/crm/values.js
17356
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/crm/values.js
17352
17357
  var values_exports = {};
17353
17358
  __export(values_exports, {
17354
17359
  amountOf: () => amountOf,
@@ -17365,10 +17370,10 @@ __export(values_exports, {
17365
17370
  time: () => time
17366
17371
  });
17367
17372
 
17368
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/crm/source.js
17373
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/crm/source.js
17369
17374
  var CRM_FILE_SOURCES = ["record", "field", "document", "activity", "comment"];
17370
17375
 
17371
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/crm/files.js
17376
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/crm/files.js
17372
17377
  var parseCrmFileId = /* @__PURE__ */ __name((id3) => {
17373
17378
  const [kind2 = "", owner = "", source = "", ...rest] = id3.trim().split(":");
17374
17379
  const providerId = rest.join(":");
@@ -17401,7 +17406,7 @@ var withoutFileLinks = /* @__PURE__ */ __name((body) => {
17401
17406
  return walk2(body);
17402
17407
  }, "withoutFileLinks");
17403
17408
 
17404
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/crm/values.js
17409
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/crm/values.js
17405
17410
  var isRaw = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isRaw");
17406
17411
  var fieldOf = /* @__PURE__ */ __name((value, key) => isRaw(value) ? value[key] : void 0, "fieldOf");
17407
17412
  var rawsOf = /* @__PURE__ */ __name((value) => Array.isArray(value) ? value.filter(isRaw) : [], "rawsOf");
@@ -17460,7 +17465,7 @@ var crmValuesOf = /* @__PURE__ */ __name((values, fields2) => {
17460
17465
  }));
17461
17466
  }, "crmValuesOf");
17462
17467
 
17463
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/crm/walk.js
17468
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/crm/walk.js
17464
17469
  var crmWindowOf = /* @__PURE__ */ __name((query) => {
17465
17470
  const page = query.page ?? 1;
17466
17471
  return { offset: (Number.isSafeInteger(page) && page > 1 ? page - 1 : 0) * query.limit, limit: query.limit };
@@ -17480,10 +17485,10 @@ var walk = /* @__PURE__ */ __name(async (window2, largest, fetchPage) => {
17480
17485
  return { items: rows.slice(0, window2.limit), hasMore: rows.length > window2.limit };
17481
17486
  }, "walk");
17482
17487
 
17483
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/sends/guard.js
17488
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/sends/guard.js
17484
17489
  import { randomUUID } from "node:crypto";
17485
17490
 
17486
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/sends/flood.js
17491
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/sends/flood.js
17487
17492
  import { mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
17488
17493
  import { dirname as dirname2, join } from "node:path";
17489
17494
  var MOST_DEADLINES = 50;
@@ -17567,11 +17572,11 @@ var FloodMemory = class {
17567
17572
  }
17568
17573
  };
17569
17574
 
17570
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/sends/journal.js
17575
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/sends/journal.js
17571
17576
  import { appendFileSync, mkdirSync as mkdirSync3, readFileSync as readFileSync2 } from "node:fs";
17572
17577
  import { dirname as dirname4, join as join2 } from "node:path";
17573
17578
 
17574
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/sends/file-lock.js
17579
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/sends/file-lock.js
17575
17580
  import { closeSync, mkdirSync as mkdirSync2, openSync, statSync, unlinkSync } from "node:fs";
17576
17581
  import { dirname as dirname3 } from "node:path";
17577
17582
  var LOCK_WAIT_MS = 5e3;
@@ -17638,7 +17643,7 @@ var lockTime = /* @__PURE__ */ __name((lock) => {
17638
17643
  }
17639
17644
  }, "lockTime");
17640
17645
 
17641
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/sends/journal.js
17646
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/sends/journal.js
17642
17647
  var sendsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "sends", `${profile}.jsonl`), "sendsPathFor");
17643
17648
  var SendJournal = class {
17644
17649
  static {
@@ -17715,7 +17720,7 @@ var withSendId = /* @__PURE__ */ __name((entry) => {
17715
17720
  return cid === void 0 || rest.sendId !== void 0 ? rest : { ...rest, sendId: String(cid) };
17716
17721
  }, "withSendId");
17717
17722
 
17718
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/sends/recipients.js
17723
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/sends/recipients.js
17719
17724
  import { existsSync, readFileSync as readFileSync3, rmSync } from "node:fs";
17720
17725
  import { join as join3 } from "node:path";
17721
17726
  var recipientsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "profiles", `${profile}.recipients.json`), "recipientsPathFor");
@@ -17827,7 +17832,7 @@ var RecipientList = class {
17827
17832
  }
17828
17833
  };
17829
17834
 
17830
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/sends/guard.js
17835
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/sends/guard.js
17831
17836
  var HOUR_MS = 60 * 60 * 1e3;
17832
17837
  var countsTowardLimit = /* @__PURE__ */ __name(({ kind: kind2 = "message", action, notify }) => kind2 === "message" || kind2 === "forward" || kind2 === "edit" || kind2 === "delete" || kind2 === "pin" && notify === true || action === "create" || action === "members.add" || action === "requests.accept" || action === "join" || action === "contact-import", "countsTowardLimit");
17833
17838
  var weightOf = /* @__PURE__ */ __name(({ kind: kind2 = "message", action, count: count3, people }) => kind2 === "delete" || kind2 === "message" && action === void 0 ? Math.max(1, count3 ?? 1) : action === "create" || action === "members.add" || action === "requests.accept" || action === "contact-import" ? Math.max(1, people ?? count3 ?? 1) : 1, "weightOf");
@@ -18015,7 +18020,7 @@ var guardFor = /* @__PURE__ */ __name((app, settings, warn, env = process.env, a
18015
18020
  }), "guardFor");
18016
18021
  var journalFailure = /* @__PURE__ */ __name((error) => error?.code ?? (error instanceof Error ? error.name : "error"), "journalFailure");
18017
18022
 
18018
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/cli/messenger/ask.js
18023
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/cli/messenger/ask.js
18019
18024
  import { openSync as openSync2 } from "node:fs";
18020
18025
  import { createInterface } from "node:readline";
18021
18026
  import { ReadStream } from "node:tty";
@@ -18070,7 +18075,7 @@ var terminalAsker = /* @__PURE__ */ __name((command) => async (key, request) =>
18070
18075
  throw new CliError("cancelled", `${key}: not done \u2014 the answer was no`);
18071
18076
  }, "terminalAsker");
18072
18077
 
18073
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/sends/keyed-guard.js
18078
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/sends/keyed-guard.js
18074
18079
  var keyedGuard = /* @__PURE__ */ __name((build, ask2, levelOf, extra) => {
18075
18080
  let question;
18076
18081
  let answered = false;
@@ -18113,7 +18118,7 @@ var keyedGuard = /* @__PURE__ */ __name((build, ask2, levelOf, extra) => {
18113
18118
  };
18114
18119
  }, "keyedGuard");
18115
18120
 
18116
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/sends/profile-writes.js
18121
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/sends/profile-writes.js
18117
18122
  var levelsOf = /* @__PURE__ */ __name((writes, defaults) => {
18118
18123
  const settings = writes.settings();
18119
18124
  return { settings, defaults: { ...DEFAULT_PERMISSIONS, ...defaults, ...settings.permissionDefaults } };
@@ -18124,19 +18129,19 @@ var profileWriteGuard = /* @__PURE__ */ __name((writes, ask2, builtIn, extra) =>
18124
18129
  }), writes.env, asker), ask2, (key) => levelFor(settings.permissions, key, defaults).level, extra);
18125
18130
  }, "profileWriteGuard");
18126
18131
 
18127
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/sends/send-id.js
18132
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/sends/send-id.js
18128
18133
  import { randomBytes } from "node:crypto";
18129
18134
  var newSendId = /* @__PURE__ */ __name(() => randomBytes(8).readBigInt64BE().toString(), "newSendId");
18130
18135
  var newOperationId = newSendId;
18131
18136
 
18132
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/crm/foreign-contacts.js
18137
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/crm/foreign-contacts.js
18133
18138
  import { readFileSync as readFileSync4 } from "node:fs";
18134
18139
  import { join as join4 } from "node:path";
18135
18140
 
18136
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/crm/state-folders.js
18141
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/crm/state-folders.js
18137
18142
  var CRM_SHARED_FOLDERS = { files: "files", foreignContacts: "foreign-contacts" };
18138
18143
 
18139
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/crm/foreign-contacts.js
18144
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/crm/foreign-contacts.js
18140
18145
  var DAILY_FOREIGN_CONTACTS = 100;
18141
18146
  var foreignContactsPathFor = /* @__PURE__ */ __name((app, account, env = process.env, user) => join4(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "crm", CRM_SHARED_FOLDERS.foreignContacts, `${[account.provider, account.account, ...user ? [user] : []].join("-").replace(/[^\w.-]+/gu, "_")}.json`), "foreignContactsPathFor");
18142
18147
  var shownIn = /* @__PURE__ */ __name((file, day2) => {
@@ -18209,7 +18214,7 @@ var foreignContacts = /* @__PURE__ */ __name((source, file, options2 = {}) => {
18209
18214
  };
18210
18215
  }, "foreignContacts");
18211
18216
 
18212
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/crm/writer.js
18217
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/crm/writer.js
18213
18218
  var CRM_ASSIGN_OTHERS_KEY = "crm.assign-others";
18214
18219
  var CRM_WRITE_KEYS = [CRM_ASSIGN_OTHERS_KEY];
18215
18220
  var PLURALS = {
@@ -18244,7 +18249,7 @@ var CRM_WRITE_DEFAULTS = {
18244
18249
  [CRM_ASSIGN_OTHERS_KEY]: "deny"
18245
18250
  };
18246
18251
 
18247
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/crm/writes.js
18252
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/crm/writes.js
18248
18253
  var moneyChecked = /* @__PURE__ */ __name((check2, param) => {
18249
18254
  try {
18250
18255
  check2();
@@ -18704,9 +18709,25 @@ var activityTargetOf = /* @__PURE__ */ __name(async (context2, given) => {
18704
18709
  const copy = await copyOf(context2, kind2, given.trim());
18705
18710
  return { kind: kind2, externalId: copy.externalId, ref: copy.ref, title: copy.title };
18706
18711
  }
18707
- if ((kind2 === "person" || kind2 === "organization") && RECORD_ID.test(id3))
18708
- return { kind: kind2, externalId: id3, ref: null, title: null };
18709
- throw new CliError("validation_error", `--subject takes deal:<id> or lead:<id> as a list shows it, or person:<id> or organization:<id> by the CRM's id; got ${given}`, { reason: "ref.malformed", param: "--subject" });
18712
+ if (kind2 === "person" || kind2 === "organization") {
18713
+ const crmId = id3.startsWith("crm:") ? id3.slice(4) : /^\d+$/.test(id3) ? void 0 : id3;
18714
+ if (crmId !== void 0 && RECORD_ID.test(crmId))
18715
+ return { kind: kind2, externalId: crmId, ref: null, title: null };
18716
+ if (crmId === void 0) {
18717
+ const ids2 = await context2.store.crm.externalIdsOf(context2.account, given);
18718
+ if (ids2.length > 1)
18719
+ throw new CliError("validation_error", `${given} is ${ids2.length} records of the CRM; name one as ${kind2}:crm:<id>`, {
18720
+ reason: "crm.record-ambiguous",
18721
+ param: "--subject",
18722
+ candidates: ids2.map((one) => ({ id: `${kind2}:crm:${one}` })),
18723
+ sent: false
18724
+ });
18725
+ if (ids2[0])
18726
+ return { kind: kind2, externalId: ids2[0], ref: given, title: null };
18727
+ throw new CliError("not_found", `the copy holds no ${given}; a ${kind2} by the CRM's id, as ${kind2 === "person" ? "people" : "organizations"} list prints it, is ${kind2}:crm:<id>`, { param: "--subject", sent: false });
18728
+ }
18729
+ }
18730
+ throw new CliError("validation_error", `--subject takes deal:<id>, lead:<id>, person:<id> or organization:<id> as the copy's lists and deals show give them, or person:crm:<id> or organization:crm:<id> by the CRM's id; got ${given}`, { reason: "ref.malformed", param: "--subject" });
18710
18731
  }, "activityTargetOf");
18711
18732
  var activityKeys = /* @__PURE__ */ __name(async (context2, key, owner) => ({
18712
18733
  key,
@@ -18785,10 +18806,10 @@ var completeCrmActivity = /* @__PURE__ */ __name(async (context2, externalId, op
18785
18806
  return { operationId, activity, stored, on: await answeredTargets(context2, activity, []) };
18786
18807
  }, "completeCrmActivity");
18787
18808
 
18788
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/crm/file-fetch.js
18809
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/crm/file-fetch.js
18789
18810
  var EXCHANGE_MS = 60 * 60 * 1e3;
18790
18811
 
18791
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/crm/manifest/map.js
18812
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/crm/manifest/map.js
18792
18813
  var TIMES = { createdAt: "epoch", updatedAt: "epoch" };
18793
18814
  var ITEM = {
18794
18815
  externalId: "id",
@@ -18840,7 +18861,7 @@ var FIELDS = {
18840
18861
  lead: ITEM
18841
18862
  };
18842
18863
 
18843
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/crm/manifest/manifest.js
18864
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/crm/manifest/manifest.js
18844
18865
  var path = pipe(string(), regex(/^[^.\s]+(\.[^.\s]+)*$/, "a dotted path such as properties.name"));
18845
18866
  var paths = pipe(array(path), minLength(1));
18846
18867
  var crmRuleSchema = union([
@@ -19072,7 +19093,7 @@ var KNOWN = /* @__PURE__ */ new Set([
19072
19093
  ]);
19073
19094
  var LARGEST_EXAMPLE = 8 * 1024;
19074
19095
 
19075
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/cli/bot/api-input.js
19096
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/cli/bot/api-input.js
19076
19097
  import { readFileSync as readFileSync5 } from "node:fs";
19077
19098
 
19078
19099
  // node_modules/.pnpm/lossless-json@4.3.3/node_modules/lossless-json/lib/esm/utils.js
@@ -19759,7 +19780,7 @@ function resolveSpace(space) {
19759
19780
  }
19760
19781
  __name(resolveSpace, "resolveSpace");
19761
19782
 
19762
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/cli/bot/api-input.js
19783
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/cli/bot/api-input.js
19763
19784
  var RENAMED = { timeout: "poll-timeout" };
19764
19785
  var apiFlagOf = /* @__PURE__ */ __name((name) => RENAMED[name] ?? name.replace(/_/g, "-").replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), "apiFlagOf");
19765
19786
  var apiOptionKey = /* @__PURE__ */ __name((name) => apiFlagOf(name).replace(/-([a-z0-9])/g, (_, letter) => letter.toUpperCase()), "apiOptionKey");
@@ -19897,7 +19918,7 @@ var flagValue = /* @__PURE__ */ __name((operation, name, raw, type) => {
19897
19918
  return raw;
19898
19919
  }, "flagValue");
19899
19920
 
19900
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/cli/service-api-manifest.js
19921
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/cli/service-api-manifest.js
19901
19922
  var manifestBaseUrl = /* @__PURE__ */ __name((manifest, given, variables = {}) => {
19902
19923
  const server = manifest.servers?.[0];
19903
19924
  if (given === void 0 && !server)
@@ -20014,10 +20035,10 @@ var nextPage = /* @__PURE__ */ __name((pagination, input, answer, headers) => {
20014
20035
  }
20015
20036
  }, "nextPage");
20016
20037
 
20017
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/crm/manifest/source.js
20038
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/crm/manifest/source.js
20018
20039
  var OVERLAP_MS = 10 * 6e4;
20019
20040
 
20020
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/cli/bot/api.js
20041
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/cli/bot/api.js
20021
20042
  var apiPathOf = /* @__PURE__ */ __name((operation) => {
20022
20043
  const { command, group } = operation;
20023
20044
  if (!group)
@@ -20056,6 +20077,7 @@ var generatedApiCommand = /* @__PURE__ */ __name((api) => {
20056
20077
  command.addOption(secretInput(new Option("--body <json>", "the request body as JSON; - reads it from stdin")));
20057
20078
  command.option("--body-file <path>", "the request body from a JSON file; - is stdin");
20058
20079
  }
20080
+ marksUntrusted(command, API_UNTRUSTED);
20059
20081
  annotate(command, {
20060
20082
  origin: "generated",
20061
20083
  api_operation: operation.id,
@@ -20130,7 +20152,7 @@ var generatedApiCommand = /* @__PURE__ */ __name((api) => {
20130
20152
  return group;
20131
20153
  }, "generatedApiCommand");
20132
20154
 
20133
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/cli/command-runs.js
20155
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/cli/command-runs.js
20134
20156
  import { AsyncLocalStorage } from "node:async_hooks";
20135
20157
  var parses = new AsyncLocalStorage();
20136
20158
  var providerEvent = /* @__PURE__ */ __name((event2) => {
@@ -20163,7 +20185,7 @@ var providerRequest = /* @__PURE__ */ __name((operation, sink = providerEvent, c
20163
20185
  };
20164
20186
  }, "providerRequest");
20165
20187
 
20166
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/cli/bot/api-http.js
20188
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/cli/bot/api-http.js
20167
20189
  var LARGEST_ANSWER = 16 * 1024 * 1024;
20168
20190
  var segment = /* @__PURE__ */ __name((name, value) => {
20169
20191
  if (value === void 0 || value === "" || value === "." || value === "..")
@@ -20381,7 +20403,7 @@ var refusal = /* @__PURE__ */ __name((service, operation, response, writes, inne
20381
20403
  });
20382
20404
  }, "refusal");
20383
20405
 
20384
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/cli/permission-keys.js
20406
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/cli/permission-keys.js
20385
20407
  var HOUSEKEEPING = /* @__PURE__ */ new Set([
20386
20408
  "help",
20387
20409
  "guide",
@@ -20469,7 +20491,7 @@ var refuseUnknownPermissionKeys = /* @__PURE__ */ __name((command, settings, too
20469
20491
  throw new CliError("validation_error", `--permission ${key} names no command${now === void 0 ? "" : `: its command moved, so use ${now}`}`, { permission: key });
20470
20492
  }, "refuseUnknownPermissionKeys");
20471
20493
 
20472
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/cli/service-api.js
20494
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/cli/service-api.js
20473
20495
  var serviceApiOperations = /* @__PURE__ */ __name((manifest) => {
20474
20496
  const reasonOf2 = /* @__PURE__ */ __name((operation) => operation.response?.sensitive ? "it returns a credential, which is never printed" : unsendableBody(operation), "reasonOf");
20475
20497
  return {
@@ -20772,10 +20794,10 @@ var serviceApiCommand = /* @__PURE__ */ __name((options2) => {
20772
20794
  return group;
20773
20795
  }, "serviceApiCommand");
20774
20796
 
20775
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/cli/service-api-call.js
20797
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/cli/service-api-call.js
20776
20798
  var NO_COMMAND = new Command("source");
20777
20799
 
20778
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/sends/pace.js
20800
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/sends/pace.js
20779
20801
  import { readFileSync as readFileSync6, renameSync as renameSync2, writeFileSync as writeFileSync2 } from "node:fs";
20780
20802
  import { join as join5 } from "node:path";
20781
20803
  var DEFAULT_PACE = { perMinute: 60, burst: 20 };
@@ -20870,7 +20892,7 @@ var waitForTurn = /* @__PURE__ */ __name(async (pacer, options2) => {
20870
20892
  await (options2.sleep ?? ((ms) => new Promise((resolve7) => setTimeout(resolve7, ms))))(waitMs);
20871
20893
  }, "waitForTurn");
20872
20894
 
20873
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/crm/provider-call.js
20895
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/crm/provider-call.js
20874
20896
  var RETRY = { retries: 3, baseDelayMs: 1e3, maxDelayMs: 1e4, maxRetryAfterMs: 3e4 };
20875
20897
  var UNANSWERED = /* @__PURE__ */ new Set(["timeout", "network_error", "provider_unavailable", "cancelled", "invalid_response"]);
20876
20898
  var unanswered2 = /* @__PURE__ */ __name((error) => !isCliError(error) || UNANSWERED.has(error.code) && error.details.sent !== false, "unanswered");
@@ -20906,7 +20928,7 @@ var providerCall = /* @__PURE__ */ __name(async (options2) => {
20906
20928
  }
20907
20929
  }, "providerCall");
20908
20930
 
20909
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/crm/query.js
20931
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/crm/query.js
20910
20932
  var valueFor = /* @__PURE__ */ __name((kind2, raw, name) => {
20911
20933
  if (kind2 === "id") {
20912
20934
  if (!/^[\w.:-]{1,100}$/u.test(raw))
@@ -21007,7 +21029,7 @@ var selectedCodes = /* @__PURE__ */ __name((fields2, wanted) => {
21007
21029
  });
21008
21030
  }, "selectedCodes");
21009
21031
 
21010
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/search/groups.js
21032
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/search/groups.js
21011
21033
  var ALL = "all";
21012
21034
  var OWNER_NOTES = { provider: "notes", account: INTERNAL_NOTES };
21013
21035
  var NOT_GROUP_NAMES = /* @__PURE__ */ new Set([ALL, "bots"]);
@@ -21079,7 +21101,7 @@ var groupEntries = /* @__PURE__ */ __name((saved) => ({
21079
21101
  [ALL]: [ALL]
21080
21102
  }), "groupEntries");
21081
21103
 
21082
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/search-kind.js
21104
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/search-kind.js
21083
21105
  var NO_MAIL = "no_mail";
21084
21106
  var MAIL = "email";
21085
21107
  var groupLockOf = /* @__PURE__ */ __name((app, env) => {
@@ -21153,7 +21175,7 @@ var accountsOfKind = /* @__PURE__ */ __name((kind2, chosen, held, explicit, comm
21153
21175
  return chosenMail.map(({ provider, account }) => ({ provider, account }));
21154
21176
  }, "accountsOfKind");
21155
21177
 
21156
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/crm/group-hint.js
21178
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/crm/group-hint.js
21157
21179
  var workGroupHint = /* @__PURE__ */ __name((key) => `add it to a work group: \`memo groups add work ${key.provider}:${key.account}\``, "workGroupHint");
21158
21180
  var ungroupedHint = /* @__PURE__ */ __name(async (store, key) => {
21159
21181
  const { groups } = (await listContextOf(store, key, void 0)).membership;
@@ -21161,7 +21183,7 @@ var ungroupedHint = /* @__PURE__ */ __name(async (store, key) => {
21161
21183
  return grouped2 ? void 0 : workGroupHint(key);
21162
21184
  }, "ungroupedHint");
21163
21185
 
21164
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/crm/viewer.js
21186
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/crm/viewer.js
21165
21187
  var VIEWERS = "crm:viewers";
21166
21188
  var viewersOf = /* @__PURE__ */ __name(async (store, account) => {
21167
21189
  try {
@@ -21236,7 +21258,7 @@ var ownerOf = /* @__PURE__ */ __name(async (run2, owner) => {
21236
21258
  return crmIdentityId(run2.account, normalCrmUserId(owner), "user");
21237
21259
  }, "ownerOf");
21238
21260
 
21239
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/crm/sync.js
21261
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/crm/sync.js
21240
21262
  var DAY2 = 864e5;
21241
21263
  var CLOCK_MARGIN = 60 * 6e4;
21242
21264
  var MOST_UNLISTED = 0.5;
@@ -21890,7 +21912,7 @@ var crmStatus = /* @__PURE__ */ __name(async (store, account, { profile, now, ki
21890
21912
  return { items, page: 1, limit: Math.max(1, items.length), hasMore: false };
21891
21913
  }, "crmStatus");
21892
21914
 
21893
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/cli/messenger/lacks.js
21915
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/cli/messenger/lacks.js
21894
21916
  var COMMAND_NEEDS = {
21895
21917
  "account update": ["updateProfile", "change the profile"],
21896
21918
  "account sessions list": ["sessions", "list the account's sessions"],
@@ -21955,7 +21977,7 @@ var hideNever = /* @__PURE__ */ __name((messenger, group) => {
21955
21977
  return group;
21956
21978
  }, "hideNever");
21957
21979
 
21958
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/deps.js
21980
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/deps.js
21959
21981
  var accountStore = /* @__PURE__ */ __name(async (deps) => (await deps.store()).forAccount(await deps.account()), "accountStore");
21960
21982
  var crossAccount = /* @__PURE__ */ __name((deps, _reason) => deps.store(), "crossAccount");
21961
21983
  var NO_LOCAL_STORE = "this answer comes from the messenger, not from the local store";
@@ -22017,7 +22039,7 @@ var storedDeps = /* @__PURE__ */ __name((messenger, store, account, guard) => ({
22017
22039
  }), "storedDeps");
22018
22040
  var storeModeDeps = /* @__PURE__ */ __name((messenger, store, account, guard) => ({ ...storedDeps(messenger, store, account, guard), offline: false, reads: "store" }), "storeModeDeps");
22019
22041
 
22020
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/questions.js
22042
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/questions.js
22021
22043
  var LINKS = /https?:\/\/\S+/g;
22022
22044
  var unanswered3 = /* @__PURE__ */ __name((messages, { answerers: answerers2, before }) => questions(messages, { answerers: answerers2 }).filter(({ question, answer }) => answer === void 0 && Date.parse(question.timestamp) < before).map(({ question }) => question), "unanswered");
22023
22045
  var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker = "others" }) => {
@@ -22047,7 +22069,7 @@ var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker
22047
22069
  });
22048
22070
  }, "questions");
22049
22071
 
22050
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/members-audit.js
22072
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/members-audit.js
22051
22073
  var AUDIT_PAGE = 200;
22052
22074
  var AUDIT_BUDGET = 10;
22053
22075
  var AUDIT_PAUSE_MS = 1e3;
@@ -22127,7 +22149,7 @@ var burstJoins = /* @__PURE__ */ __name((members) => {
22127
22149
  return found;
22128
22150
  }, "burstJoins");
22129
22151
 
22130
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/task-categories.js
22152
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/task-categories.js
22131
22153
  var names = /* @__PURE__ */ __name((categories) => categories.map(({ name }) => name).join(", "), "names");
22132
22154
  var taskCategoryOf = /* @__PURE__ */ __name((categories = DEFAULT_TASK_CATEGORIES, flag = "--category") => (typed) => {
22133
22155
  const name = typed.trim().toLowerCase();
@@ -22184,7 +22206,7 @@ var categorize = /* @__PURE__ */ __name((text3, categories = DEFAULT_TASK_CATEGO
22184
22206
  return best.name;
22185
22207
  }, "categorize");
22186
22208
 
22187
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/task-rules.js
22209
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/task-rules.js
22188
22210
  var taskAccount = /* @__PURE__ */ __name(({ provider, account }) => `${provider}:${account}`, "taskAccount");
22189
22211
  var RULES_IN = {
22190
22212
  dialog: "all",
@@ -22390,7 +22412,7 @@ var applyTaskRulesToChats = /* @__PURE__ */ __name(async (store, account, chatId
22390
22412
  return passes;
22391
22413
  }, "applyTaskRulesToChats");
22392
22414
 
22393
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/patience.js
22415
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/patience.js
22394
22416
  import { setTimeout as sleep } from "node:timers/promises";
22395
22417
  var LONGEST_WAIT_MS = 5 * 60 * 1e3;
22396
22418
  var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
@@ -22413,10 +22435,10 @@ var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
22413
22435
  }
22414
22436
  }, "patiently");
22415
22437
 
22416
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/archive.js
22438
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/archive.js
22417
22439
  import { setTimeout as sleep2 } from "node:timers/promises";
22418
22440
 
22419
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/backfill-estimate.js
22441
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/backfill-estimate.js
22420
22442
  var REQUEST_MS = 400;
22421
22443
  var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, maxPages, pauseMs }) => {
22422
22444
  const lowest = ranges[0];
@@ -22439,13 +22461,13 @@ var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, max
22439
22461
  };
22440
22462
  }, "estimateBackfill");
22441
22463
 
22442
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/domain/recovery.js
22464
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/domain/recovery.js
22443
22465
  var withRecovery = /* @__PURE__ */ __name((error) => ({
22444
22466
  ...error,
22445
22467
  retryable: typeof error.retryable === "boolean" ? error.retryable : error.code === "rate_limited" || error.status === 429
22446
22468
  }), "withRecovery");
22447
22469
 
22448
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/batch.js
22470
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/batch.js
22449
22471
  var actionable = /* @__PURE__ */ __name((error) => {
22450
22472
  if (isCliFailure(error))
22451
22473
  return withRecovery({ code: error.code, message: error.message, ...error.details });
@@ -22528,7 +22550,7 @@ var mergeBatches = /* @__PURE__ */ __name((a, b) => {
22528
22550
  };
22529
22551
  }, "mergeBatches");
22530
22552
 
22531
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/message-resolution.js
22553
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/message-resolution.js
22532
22554
  var readChatId = /* @__PURE__ */ __name(async (deps, reference, store, account) => {
22533
22555
  if (deps.reads !== "store")
22534
22556
  return keptChatId(deps.messenger, reference, store, account);
@@ -22729,7 +22751,7 @@ var chatsMatchingIn = /* @__PURE__ */ __name(async (store, accounts, pattern) =>
22729
22751
  }, "chatsMatchingIn");
22730
22752
  var isText = /* @__PURE__ */ __name((value) => typeof value === "string" && value !== "", "isText");
22731
22753
 
22732
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/images/context/index.js
22754
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/images/context/index.js
22733
22755
  var CONTEXT_MESSAGES = 3;
22734
22756
  var CONTEXT_MINUTES = 10;
22735
22757
  var MAX_CHARS = 1200;
@@ -22753,12 +22775,12 @@ var context = {
22753
22775
  }, "describe")
22754
22776
  };
22755
22777
 
22756
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/images/registry.js
22778
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/images/registry.js
22757
22779
  var BUILT_INS = [context];
22758
22780
  var providers = [...BUILT_INS];
22759
22781
  var registeredImageProviders = /* @__PURE__ */ __name(() => providers, "registeredImageProviders");
22760
22782
 
22761
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/conversations.js
22783
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/conversations.js
22762
22784
  var READ_PAGE = 5e3;
22763
22785
  var CHAIN = 50;
22764
22786
  var CONVERSATION_QUERY = {
@@ -22910,7 +22932,7 @@ var sized = /* @__PURE__ */ __name((size2) => {
22910
22932
  return size2;
22911
22933
  }, "sized");
22912
22934
 
22913
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/embeddings-maintenance.js
22935
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/embeddings-maintenance.js
22914
22936
  var REFRESH_BOUNDS = { maxChats: 20, maxChunks: 2e3 };
22915
22937
  var MESSAGE_PAGE = 5e3;
22916
22938
  var PER_SESSION = 8;
@@ -22929,7 +22951,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = chosenTextModel(dep
22929
22951
  price: remote.price,
22930
22952
  installed: true,
22931
22953
  perBatch: PER_REQUEST * concurrency,
22932
- open: /* @__PURE__ */ __name(async () => (await import("./remote-UF3WSC4X.js")).openRemote(remote, apiKey, {
22954
+ open: /* @__PURE__ */ __name(async () => (await import("./remote-K4SLWHMI.js")).openRemote(remote, apiKey, {
22933
22955
  concurrency,
22934
22956
  env: deps.env ?? process.env
22935
22957
  }), "open")
@@ -22949,7 +22971,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = chosenTextModel(dep
22949
22971
  if (!isTextModelInstalled(model, directory2))
22950
22972
  throw notDownloaded(model.id);
22951
22973
  if (apart) {
22952
- const { openProcess } = await import("./process-NMNQLJHZ.js");
22974
+ const { openProcess } = await import("./process-A7ZJGQ6G.js");
22953
22975
  return openProcess(model, directory2, { threads: threads ?? defaultThreads() });
22954
22976
  }
22955
22977
  return openEmbedder(model, directory2, { threads: threads ?? defaultThreads() });
@@ -23238,7 +23260,7 @@ var shaped = /* @__PURE__ */ __name(({ chatId, builtAt, algorithmVersion, pendin
23238
23260
  return { ...one, state };
23239
23261
  }, "shaped");
23240
23262
 
23241
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/search-catchup.js
23263
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/search-catchup.js
23242
23264
  var CATCH_UP_BOUNDS = { maxChunks: 500, maxMessages: 1e4, timeMs: 3e4 };
23243
23265
  var validateCatchUpBounds = /* @__PURE__ */ __name((options2) => {
23244
23266
  for (const [key, value, maximum] of [
@@ -23291,7 +23313,7 @@ var catchUpSearch = /* @__PURE__ */ __name(async (deps, chat, options2, signal,
23291
23313
  }
23292
23314
  }, "catchUpSearch");
23293
23315
 
23294
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/archive.js
23316
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/archive.js
23295
23317
  var pushed = /* @__PURE__ */ __name((deps, what2) => {
23296
23318
  if (deps.reads === "store") {
23297
23319
  throw new CliError("validation_error", `${what2} asks for older history, and this messenger pushes its history instead \u2014 keep \`${typedCommand(deps.messenger.app.command, "serve")}\` running`);
@@ -23694,7 +23716,7 @@ var timeOfKey = /* @__PURE__ */ __name(async (store, account, chatId, key, byTim
23694
23716
  return message?.timestamp ?? fallback;
23695
23717
  }, "timeOfKey");
23696
23718
 
23697
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/botcheck/check.js
23719
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/botcheck/check.js
23698
23720
  var DAY_MS = 864e5;
23699
23721
  var NEW_DAYS = 30;
23700
23722
  var SAME_TEXT_MIN = 20;
@@ -23771,7 +23793,7 @@ var scorePerson = /* @__PURE__ */ __name(({ subject, provider, activity, photos,
23771
23793
  };
23772
23794
  }, "scorePerson");
23773
23795
 
23774
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/http/time-limit.js
23796
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/http/time-limit.js
23775
23797
  var timeLimit = /* @__PURE__ */ __name((ms) => {
23776
23798
  const controller = new AbortController();
23777
23799
  const timer = setTimeout(() => controller.abort(new DOMException("The operation timed out.", "TimeoutError")), ms);
@@ -23787,7 +23809,7 @@ var withTimeLimit = /* @__PURE__ */ __name(async (ms, run2) => {
23787
23809
  }
23788
23810
  }, "withTimeLimit");
23789
23811
 
23790
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/botcheck/registries.js
23812
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/botcheck/registries.js
23791
23813
  var REGISTRIES = {
23792
23814
  cas: { title: "Combot Anti-Spam (CAS)", docs: "https://cas.chat/api" },
23793
23815
  lols: { title: "lols.bot", docs: "https://api.lols.bot/lols-bot.json" }
@@ -23874,7 +23896,7 @@ var notCovered = /* @__PURE__ */ __name((messenger, now = /* @__PURE__ */ new Da
23874
23896
  detail: `lists Telegram accounts only, not ${messenger} ones`
23875
23897
  })), "notCovered");
23876
23898
 
23877
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/botcheck/service.js
23899
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/botcheck/service.js
23878
23900
  var ACTIVITY_MESSAGES = 1e3;
23879
23901
  var botCheckService = /* @__PURE__ */ __name((deps) => {
23880
23902
  const subjectOf = /* @__PURE__ */ __name(async (reference) => {
@@ -23962,7 +23984,7 @@ var botCheckService = /* @__PURE__ */ __name((deps) => {
23962
23984
  };
23963
23985
  }, "botCheckService");
23964
23986
 
23965
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/domain/thread.js
23987
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/domain/thread.js
23966
23988
  var threadIdOf = /* @__PURE__ */ __name((value) => {
23967
23989
  if (value === void 0)
23968
23990
  return void 0;
@@ -23972,7 +23994,7 @@ var threadIdOf = /* @__PURE__ */ __name((value) => {
23972
23994
  return id3;
23973
23995
  }, "threadIdOf");
23974
23996
 
23975
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/chat-stats.js
23997
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/chat-stats.js
23976
23998
  var TOP_POSTS = 5;
23977
23999
  var JOINS = /* @__PURE__ */ new Set(["join", "add"]);
23978
24000
  var LEAVES = /* @__PURE__ */ new Set(["leave", "remove"]);
@@ -24089,7 +24111,7 @@ var median = /* @__PURE__ */ __name((values) => {
24089
24111
  return Math.round(sorted.length % 2 === 0 ? ((sorted[middle - 1] ?? upper) + upper) / 2 : upper);
24090
24112
  }, "median");
24091
24113
 
24092
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/member-history.js
24114
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/member-history.js
24093
24115
  var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
24094
24116
  const events = [];
24095
24117
  for (const stay of stays) {
@@ -24121,7 +24143,7 @@ var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
24121
24143
  return events.filter(({ at: at2 }) => Date.parse(at2) >= since).sort((a, b) => Date.parse(a.at) - Date.parse(b.at) || a.id.localeCompare(b.id));
24122
24144
  }, "memberEvents");
24123
24145
 
24124
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/chats.js
24146
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/chats.js
24125
24147
  var EVENTS_DAYS = 7;
24126
24148
  var TRACKED_DAYS = 30;
24127
24149
  var STATS_PAGE = 1e3;
@@ -24416,7 +24438,7 @@ var storedMembers = /* @__PURE__ */ __name(async (store, chatId) => {
24416
24438
  return members.length === 0 ? null : members;
24417
24439
  }, "storedMembers");
24418
24440
 
24419
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/inbox.js
24441
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/inbox.js
24420
24442
  var INBOX_CHATS = 20;
24421
24443
  var REVIEW_DAYS = 3;
24422
24444
  var UNANSWERED_HOURS = 24;
@@ -24424,7 +24446,8 @@ var reviewStart = /* @__PURE__ */ __name((now = Date.now()) => now - REVIEW_DAYS
24424
24446
  var byRecency = /* @__PURE__ */ __name((chats) => chats.toSorted((a, b) => Date.parse(b.lastMessageAt ?? "") - Date.parse(a.lastMessageAt ?? "")), "byRecency");
24425
24447
  var isQuiet = /* @__PURE__ */ __name((chat) => (chat.muted === true || chat.archived === true) && (chat.unreadMentions ?? 0) === 0 && chat.markedUnread !== true, "isQuiet");
24426
24448
  var heard = /* @__PURE__ */ __name((chats, all) => all ? { heard: chats, quiet: 0 } : { heard: chats.filter((chat) => !isQuiet(chat)), quiet: chats.filter(isQuiet).length }, "heard");
24427
- var everyChat = /* @__PURE__ */ __name((adapter) => adapter.chats({ offset: 0 }), "everyChat");
24449
+ var everyChat = /* @__PURE__ */ __name((adapter) => adapter.unreadChats ? adapter.unreadChats() : adapter.chats({ offset: 0 }), "everyChat");
24450
+ var leftOf = /* @__PURE__ */ __name((page) => page.left?.length ? { left: page.left } : {}, "leftOf");
24428
24451
  var storeReader = /* @__PURE__ */ __name((deps, store, account) => ({
24429
24452
  chats: /* @__PURE__ */ __name(async ({ limit, offset }) => {
24430
24453
  const newest = new Map((await store.chats.chatStats(account)).map((one) => [one.chatId, one.newestAt]));
@@ -24477,7 +24500,7 @@ var unreadIn = /* @__PURE__ */ __name(async (adapter, { limit, all = false, kind
24477
24500
  if (theirs.length > 0)
24478
24501
  chats.push({ id: id3, title, kind: kind2, unreadCount, messages: theirs, more: count3 > limit });
24479
24502
  }
24480
- return { mode: "unread", chats, skipped, partial: page.hasMore, quiet: quiet2 };
24503
+ return { mode: "unread", chats, skipped, partial: page.hasMore, ...leftOf(page), quiet: quiet2 };
24481
24504
  }, "unreadIn");
24482
24505
  var newIn = /* @__PURE__ */ __name(async (adapter, { since, points, limit, all = false, kinds }) => {
24483
24506
  const page = await everyChat(adapter);
@@ -24508,6 +24531,7 @@ var newIn = /* @__PURE__ */ __name(async (adapter, { since, points, limit, all =
24508
24531
  chats,
24509
24532
  skipped,
24510
24533
  partial: page.hasMore,
24534
+ ...leftOf(page),
24511
24535
  quiet: quiet2,
24512
24536
  checked: checked2
24513
24537
  };
@@ -24556,6 +24580,7 @@ var reviewIn = /* @__PURE__ */ __name(async (adapter, { since, points, chat, kin
24556
24580
  chats,
24557
24581
  skipped,
24558
24582
  partial,
24583
+ ...leftOf(page),
24559
24584
  quiet: quiet2,
24560
24585
  ...points === void 0 ? {} : { checked: checked2 }
24561
24586
  };
@@ -24591,7 +24616,8 @@ var inboxService = /* @__PURE__ */ __name((deps) => {
24591
24616
  chats: capability(connection, "chats", "list chats"),
24592
24617
  history: capability(connection, "history", "read a chat's history"),
24593
24618
  resolve: /* @__PURE__ */ __name((reference) => connection.resolve(reference), "resolve"),
24594
- ...connection.admins ? { admins: capability(connection, "admins", "list a chat's admins") } : {}
24619
+ ...connection.admins ? { admins: capability(connection, "admins", "list a chat's admins") } : {},
24620
+ ...connection.unreadChats ? { unreadChats: capability(connection, "unreadChats", "count unread chats") } : {}
24595
24621
  };
24596
24622
  }, "reader");
24597
24623
  return {
@@ -24624,7 +24650,7 @@ var inboxService = /* @__PURE__ */ __name((deps) => {
24624
24650
  };
24625
24651
  }, "inboxService");
24626
24652
 
24627
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/excerpt.js
24653
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/excerpt.js
24628
24654
  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");
24629
24655
  var excerpt = /* @__PURE__ */ __name((text3, query, size2 = 240, options2 = {}) => {
24630
24656
  const flat = text3.replace(/\s+/g, " ").trim();
@@ -24640,7 +24666,7 @@ var excerpt = /* @__PURE__ */ __name((text3, query, size2 = 240, options2 = {})
24640
24666
  }, "excerpt");
24641
24667
  var withExcerpt = /* @__PURE__ */ __name(({ matchedText, ...hit }, query) => ({ ...hit, excerpt: excerpt(matchedText ?? hit.text, query) }), "withExcerpt");
24642
24668
 
24643
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/person-meetings.js
24669
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/person-meetings.js
24644
24670
  var SCAN = 1e3;
24645
24671
  var SNIPPET = 200;
24646
24672
  var SNIPPET_ROWS = 6;
@@ -24705,7 +24731,7 @@ var personMeetings = /* @__PURE__ */ __name(async (store, people, accounts, { li
24705
24731
  return { items, total: newest.length, hasMore: cut || newest.length > limit };
24706
24732
  }, "personMeetings");
24707
24733
 
24708
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/person-context.js
24734
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/person-context.js
24709
24735
  var CONTEXT_MESSAGES2 = 10;
24710
24736
  var CONTEXT_BYTES = 64 * 1024;
24711
24737
  var toContext = /* @__PURE__ */ __name((key, message, chatTitle2) => ({
@@ -25011,10 +25037,10 @@ var personMessages = /* @__PURE__ */ __name(async (store, asked, reference, { ch
25011
25037
  };
25012
25038
  }, "personMessages");
25013
25039
 
25014
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
25040
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
25015
25041
  import { createHash } from "node:crypto";
25016
25042
 
25017
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/meeting-reference.js
25043
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/meeting-reference.js
25018
25044
  var missing2 = /* @__PURE__ */ __name(() => new CliError("not_found", "the meeting evidence is unavailable for this account"), "missing");
25019
25045
  var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId, reference, options2 = {}) => {
25020
25046
  const parsed = parseMeetingReference(reference);
@@ -25032,7 +25058,7 @@ var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId,
25032
25058
  return { parsed, meeting };
25033
25059
  }, "authorizedMeetingMetadata");
25034
25060
 
25035
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
25061
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
25036
25062
  var hash = /* @__PURE__ */ __name((value) => createHash("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
25037
25063
  var checkMeetingCancelled = /* @__PURE__ */ __name((signal) => {
25038
25064
  if (signal?.aborted)
@@ -25231,7 +25257,7 @@ var readMeetingEvidence = /* @__PURE__ */ __name(async (store, accountId, refere
25231
25257
  return { ...packet, fingerprint: hash(packet) };
25232
25258
  }, "readMeetingEvidence");
25233
25259
 
25234
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/person-meeting-context.js
25260
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/person-meeting-context.js
25235
25261
  var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference, options2) => {
25236
25262
  const { meetings = 10, cues = 5, bytes: bytes2 = 64 * 1024, scanLimit = 1e3, since, signal } = options2;
25237
25263
  const requestedAccounts = options2.accountIds;
@@ -25330,7 +25356,7 @@ var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference,
25330
25356
  };
25331
25357
  }, "personMeetingContext");
25332
25358
 
25333
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/person-preparation.js
25359
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/person-preparation.js
25334
25360
  var PREPARE_BYTES = 96 * 1024;
25335
25361
  var MEETINGS = 5;
25336
25362
  var CUES = 3;
@@ -25453,7 +25479,7 @@ var meetingsOf = /* @__PURE__ */ __name(async (store, uid, stored, since, left)
25453
25479
  }
25454
25480
  }, "meetingsOf");
25455
25481
 
25456
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/person-profile.js
25482
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/person-profile.js
25457
25483
  var personProfile = /* @__PURE__ */ __name(async (deps, person, known2) => {
25458
25484
  const online = deps.offline ? void 0 : await deps.connection();
25459
25485
  const held = await storeIfOpen(deps);
@@ -25523,7 +25549,7 @@ var quiet = /* @__PURE__ */ __name((facts) => facts.chats.map(({ id: id3, title,
25523
25549
  complete: false
25524
25550
  })), "quiet");
25525
25551
 
25526
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/person-timeline.js
25552
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/person-timeline.js
25527
25553
  var TIMELINE_ITEMS = 50;
25528
25554
  var TIMELINE_MAX = 500;
25529
25555
  var SCOPES = ["personal", "work"];
@@ -25585,7 +25611,7 @@ var personTimeline = /* @__PURE__ */ __name(async (store, asked, reference, { sc
25585
25611
  };
25586
25612
  }, "personTimeline");
25587
25613
 
25588
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/chat-coverage.js
25614
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/chat-coverage.js
25589
25615
  var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
25590
25616
  const ids2 = [...new Set(chatIds)];
25591
25617
  if (ids2.length === 0)
@@ -25611,7 +25637,7 @@ var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
25611
25637
  }));
25612
25638
  }, "chatCoverage");
25613
25639
 
25614
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/context/evidence-response.js
25640
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/context/evidence-response.js
25615
25641
  var contextSourceKey = /* @__PURE__ */ __name((source) => JSON.stringify([source.kind, source.accountId, source.provider, source.account]), "contextSourceKey");
25616
25642
  var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
25617
25643
  const fail2 = /* @__PURE__ */ __name(() => {
@@ -25675,7 +25701,7 @@ var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
25675
25701
  }
25676
25702
  }, "validateContextEvidencePage");
25677
25703
 
25678
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/context/read-budget.js
25704
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/context/read-budget.js
25679
25705
  var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
25680
25706
  if (!limits || typeof limits !== "object" || Array.isArray(limits))
25681
25707
  throw new CliError("validation_error", "limits needs a context read allowance");
@@ -25728,7 +25754,7 @@ var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
25728
25754
  };
25729
25755
  }, "contextReadBudget");
25730
25756
 
25731
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/context-evidence.js
25757
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/context-evidence.js
25732
25758
  var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits) => {
25733
25759
  if (!port || typeof port.read !== "function")
25734
25760
  throw new CliError("configuration_error", "context evidence reader is unavailable");
@@ -25772,7 +25798,7 @@ var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits)
25772
25798
  };
25773
25799
  }, "createContextEvidenceReader");
25774
25800
 
25775
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/project-gathering-around.js
25801
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/project-gathering-around.js
25776
25802
  var storedMessageNeighbours = /* @__PURE__ */ __name((messages) => ({
25777
25803
  async around(ref, window2) {
25778
25804
  const at2 = parseLocator(ref);
@@ -25867,7 +25893,7 @@ var storedNeighbours = /* @__PURE__ */ __name((store) => {
25867
25893
  };
25868
25894
  }, "storedNeighbours");
25869
25895
 
25870
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/project-gathering-request.js
25896
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/project-gathering-request.js
25871
25897
  import { createHash as createHash2 } from "node:crypto";
25872
25898
  var DAY3 = 864e5;
25873
25899
  var MAX_TIME = 864e13;
@@ -26183,7 +26209,7 @@ var decodeCheckpoint = /* @__PURE__ */ __name((text3, plan) => {
26183
26209
  return value;
26184
26210
  }, "decodeCheckpoint");
26185
26211
 
26186
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/project-gathering.js
26212
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/project-gathering.js
26187
26213
  var terminal = /* @__PURE__ */ new Set(["done", "unavailable", "failed"]);
26188
26214
  var PAGE2 = 20;
26189
26215
  var PEOPLE = 20;
@@ -26587,7 +26613,7 @@ var peopleOf = /* @__PURE__ */ __name((items, senderOf) => {
26587
26613
  return [...byKey.values()].sort((a, b) => b.items - a.items || a.name.localeCompare(b.name));
26588
26614
  }, "peopleOf");
26589
26615
 
26590
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/meeting-project-candidate-matching.js
26616
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/meeting-project-candidate-matching.js
26591
26617
  var normalizedText = /* @__PURE__ */ __name((text3) => text3.normalize("NFKC").toLowerCase().replace(/\s+/gu, " "), "normalizedText");
26592
26618
  var termsOf = /* @__PURE__ */ __name((entry) => [
26593
26619
  { name: entry.name, kind: "canonical" },
@@ -26631,7 +26657,7 @@ var matchVocabularyTerms = /* @__PURE__ */ __name((catalog, texts) => {
26631
26657
  return result.sort((a, b) => Number(a.entry.id) - Number(b.entry.id));
26632
26658
  }, "matchVocabularyTerms");
26633
26659
 
26634
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/project-gathering-mentions.js
26660
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/project-gathering-mentions.js
26635
26661
  var KINDS = ["project", "tag", "topic"];
26636
26662
  var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering, options2 = {}) => {
26637
26663
  if (typeof vocabulary?.vocabulary !== "function")
@@ -26686,7 +26712,7 @@ var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering,
26686
26712
  };
26687
26713
  }, "findEvidenceMentions");
26688
26714
 
26689
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/project-purposes.js
26715
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/project-purposes.js
26690
26716
  var BUILT_IN_PURPOSES = ["work", "sales", "support", "other"];
26691
26717
  var DEFAULT_PURPOSES = ["work"];
26692
26718
  var LINK_PURPOSE = "work";
@@ -26716,7 +26742,7 @@ var purposeList = /* @__PURE__ */ __name((value, previous = []) => [
26716
26742
  ...value.split(",").map((one) => one.trim()).filter(Boolean)
26717
26743
  ], "purposeList");
26718
26744
 
26719
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/stored-project-gathering.js
26745
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/stored-project-gathering.js
26720
26746
  var storedChatCount = /* @__PURE__ */ __name((store) => async (account, chatId, { since, until }) => {
26721
26747
  const window2 = { since: new Date(since).toISOString(), until: new Date(until - 1).toISOString() };
26722
26748
  const [messages, newest, oldest] = await Promise.all([
@@ -27027,7 +27053,7 @@ var purposeHintOf = /* @__PURE__ */ __name((linked, rows, of) => {
27027
27053
  return { chat: top.ref, relationship: link4.relationship, items, of };
27028
27054
  }, "purposeHintOf");
27029
27055
 
27030
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/people.js
27056
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/people.js
27031
27057
  var peopleService = /* @__PURE__ */ __name((deps) => {
27032
27058
  const localCard = /* @__PURE__ */ __name(async (card, includeNotes = false) => {
27033
27059
  const held = await storeIfOpen(deps);
@@ -27292,7 +27318,7 @@ var withoutPhone = /* @__PURE__ */ __name((answer) => {
27292
27318
  return rest;
27293
27319
  }, "withoutPhone");
27294
27320
 
27295
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/task-stats.js
27321
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/task-stats.js
27296
27322
  var TASK_STATS_BY = ["chat", "meeting", "project"];
27297
27323
  var PERIOD_FIELD = "created";
27298
27324
  var refuseNestedPeriod = /* @__PURE__ */ __name((node, top = true) => {
@@ -27423,7 +27449,7 @@ var meetingNames = /* @__PURE__ */ __name(async (store, groups) => {
27423
27449
  }));
27424
27450
  }, "meetingNames");
27425
27451
 
27426
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/task-tag-filters.js
27452
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/task-tag-filters.js
27427
27453
  var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
27428
27454
  const tags = /* @__PURE__ */ new Map();
27429
27455
  for (const node of query ? walkQuery(query.root) : [])
@@ -27432,7 +27458,7 @@ var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
27432
27458
  return tags;
27433
27459
  }, "taskTagFilters");
27434
27460
 
27435
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/tasks.js
27461
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/tasks.js
27436
27462
  var TASK_QUERY = {
27437
27463
  entity: "task",
27438
27464
  backend: "sql",
@@ -27932,7 +27958,7 @@ var taskView = /* @__PURE__ */ __name(async (store, account, task2) => {
27932
27958
  };
27933
27959
  }, "taskView");
27934
27960
 
27935
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/mail/owed.js
27961
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/mail/owed.js
27936
27962
  var mailTurn = /* @__PURE__ */ __name((newest) => {
27937
27963
  if (newest === null)
27938
27964
  return null;
@@ -27941,7 +27967,7 @@ var mailTurn = /* @__PURE__ */ __name((newest) => {
27941
27967
  return newest.addressed ? "owed" : null;
27942
27968
  }, "mailTurn");
27943
27969
 
27944
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/agenda-mail.js
27970
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/agenda-mail.js
27945
27971
  var absent = /* @__PURE__ */ __name((error) => {
27946
27972
  if (error instanceof CliError && error.code === "not_found")
27947
27973
  return void 0;
@@ -27999,7 +28025,7 @@ var mailActivity = /* @__PURE__ */ __name(async (store, account, since, chats) =
27999
28025
  };
28000
28026
  }, "mailActivity");
28001
28027
 
28002
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/agenda.js
28028
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/agenda.js
28003
28029
  var DAY4 = 864e5;
28004
28030
  var AGENDA_DEFAULTS = { unanswered: DAY4, waiting: 7 * DAY4 };
28005
28031
  var CLAIMS = ["none", "mine", "others", "any"];
@@ -28253,18 +28279,18 @@ var agendaItem = /* @__PURE__ */ __name((shown) => {
28253
28279
  };
28254
28280
  }, "agendaItem");
28255
28281
 
28256
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/media-archive.js
28282
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/media-archive.js
28257
28283
  import { setTimeout as sleep3 } from "node:timers/promises";
28258
28284
 
28259
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
28285
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
28260
28286
  import { lstat } from "node:fs/promises";
28261
28287
 
28262
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
28288
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
28263
28289
  import { createHash as createHash4, randomUUID as randomUUID3 } from "node:crypto";
28264
28290
  import { open as open3, rename as rename2, unlink as unlink2 } from "node:fs/promises";
28265
28291
  import { join as join7 } from "node:path";
28266
28292
 
28267
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-metadata.js
28293
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-metadata.js
28268
28294
  import { createHash as createHash3 } from "node:crypto";
28269
28295
  var metadataLimit = 16384;
28270
28296
  var partialIdentity = /* @__PURE__ */ __name((locator) => JSON.stringify([locator.provider, locator.account, locator.occurrenceId, locator.assetId]), "partialIdentity");
@@ -28324,7 +28350,7 @@ var readPartialMetadata = /* @__PURE__ */ __name(async (path2, locator, maxBytes
28324
28350
  }
28325
28351
  }, "readPartialMetadata");
28326
28352
 
28327
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-writer.js
28353
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-writer.js
28328
28354
  import { randomUUID as randomUUID2 } from "node:crypto";
28329
28355
  import { open as open2, rename, unlink } from "node:fs/promises";
28330
28356
  import { join as join6 } from "node:path";
@@ -28416,7 +28442,7 @@ var partialWriter = /* @__PURE__ */ __name(async (input) => {
28416
28442
  };
28417
28443
  }, "partialWriter");
28418
28444
 
28419
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
28445
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
28420
28446
  var NativeRecordingPartialStore = class {
28421
28447
  static {
28422
28448
  __name(this, "NativeRecordingPartialStore");
@@ -28523,12 +28549,12 @@ var NativeRecordingPartialStore = class {
28523
28549
  }
28524
28550
  };
28525
28551
 
28526
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
28552
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
28527
28553
  import { createHash as createHash5 } from "node:crypto";
28528
28554
  import { link as link2 } from "node:fs/promises";
28529
28555
  import { basename as basename2, dirname as dirname5, join as join9, resolve as resolve2 } from "node:path";
28530
28556
 
28531
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-files.js
28557
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-files.js
28532
28558
  import { unlink as unlink3 } from "node:fs/promises";
28533
28559
  var verifiedPublicationFile = /* @__PURE__ */ __name(async (path2, expected2, signal, writable = false) => {
28534
28560
  signal?.throwIfAborted();
@@ -28563,7 +28589,7 @@ var commitPublication = /* @__PURE__ */ __name(async (root, partialPath, finalPa
28563
28589
  signal?.throwIfAborted();
28564
28590
  }, "commitPublication");
28565
28591
 
28566
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-journal.js
28592
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-journal.js
28567
28593
  import { randomUUID as randomUUID4 } from "node:crypto";
28568
28594
  import { open as open4, rename as rename3, unlink as unlink4 } from "node:fs/promises";
28569
28595
  import { join as join8 } from "node:path";
@@ -28636,7 +28662,7 @@ var writePublicationJournal = /* @__PURE__ */ __name(async (root, path2, prefix,
28636
28662
  }
28637
28663
  }, "writePublicationJournal");
28638
28664
 
28639
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
28665
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
28640
28666
  var NativeRecordingPublication = class {
28641
28667
  static {
28642
28668
  __name(this, "NativeRecordingPublication");
@@ -28709,7 +28735,7 @@ var NativeRecordingPublication = class {
28709
28735
  }
28710
28736
  };
28711
28737
 
28712
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/media-archive-manifest.js
28738
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/media-archive-manifest.js
28713
28739
  import { createHash as createHash6 } from "node:crypto";
28714
28740
  import { readdir } from "node:fs/promises";
28715
28741
  import { isAbsolute as isAbsolute2, join as join10, resolve as resolve3 } from "node:path";
@@ -28796,7 +28822,7 @@ var commitMediaEntry = /* @__PURE__ */ __name((root, one, beforePublish) => writ
28796
28822
  beforePublish
28797
28823
  }), "commitMediaEntry");
28798
28824
 
28799
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
28825
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
28800
28826
  var validator = '"media-completed-v1"';
28801
28827
  var maximumFileBytes = 64 * 1024 * 1024 * 1024;
28802
28828
  var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind2, file, beforeWrite, signal, metadata = {}) => {
@@ -28897,7 +28923,7 @@ var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind2, file
28897
28923
  return entry;
28898
28924
  }, "archiveMediaFile");
28899
28925
 
28900
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/media-archive-locks.js
28926
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/media-archive-locks.js
28901
28927
  import { mkdir, realpath } from "node:fs/promises";
28902
28928
  import { join as join11, resolve as resolve4 } from "node:path";
28903
28929
  var archiveLocations = /* @__PURE__ */ __name(async (initial, signal) => {
@@ -28964,7 +28990,7 @@ var withMediaArchiveLocks = /* @__PURE__ */ __name(async (directory2, signal, ru
28964
28990
  throw new CliError("validation_error", "archive locations changed during locking; run the command again");
28965
28991
  }, "withMediaArchiveLocks");
28966
28992
 
28967
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/media-archive.js
28993
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/media-archive.js
28968
28994
  var checkMediaArchive = /* @__PURE__ */ __name((directory2, signal) => withMediaArchiveLocks(directory2, signal, async (root) => {
28969
28995
  const entries = await readMediaManifests(root, signal);
28970
28996
  if (!entries.length)
@@ -29107,7 +29133,7 @@ var archiveMedia = /* @__PURE__ */ __name(async (ports, options2) => {
29107
29133
  }, { create: true });
29108
29134
  }, "archiveMedia");
29109
29135
 
29110
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/media-archive-move.js
29136
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/media-archive-move.js
29111
29137
  import { realpath as realpath2, unlink as unlink5 } from "node:fs/promises";
29112
29138
  import { basename as basename3, dirname as dirname6, join as join12, resolve as resolve5 } from "node:path";
29113
29139
  var canonicalDestination = /* @__PURE__ */ __name(async (directory2) => {
@@ -29258,7 +29284,7 @@ var moveMediaArchive = /* @__PURE__ */ __name(async (options2) => {
29258
29284
  }, { additional: [target2], createAdditional: !options2.dryRun });
29259
29285
  }, "moveMediaArchive");
29260
29286
 
29261
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/model-downloads.js
29287
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/model-downloads.js
29262
29288
  import { writeFileSync as writeFileSync3 } from "node:fs";
29263
29289
  import { join as join13 } from "node:path";
29264
29290
  var bytesOf = /* @__PURE__ */ __name((model) => model.files.reduce((sum2, file) => sum2 + file.bytes, 0), "bytesOf");
@@ -29283,7 +29309,7 @@ var downloadTextModel = /* @__PURE__ */ __name(async (id3, { env, progress = /*
29283
29309
  `);
29284
29310
  await nativeRuntime({ env, progress });
29285
29311
  progress(`${model.id}: loading it once to check it works`);
29286
- const { openEmbedder: openEmbedder2 } = await import("./embed-FLGS4LN7.js");
29312
+ const { openEmbedder: openEmbedder2 } = await import("./embed-Y4GYNHRX.js");
29287
29313
  const embedder = await openEmbedder2(model, directory2);
29288
29314
  try {
29289
29315
  const [vector] = await embedder.embed(["check"], "query");
@@ -29304,7 +29330,7 @@ var downloadRerankModel = /* @__PURE__ */ __name(async (id3, { env, progress = /
29304
29330
  }
29305
29331
  await nativeRuntime({ env, progress });
29306
29332
  progress(`${model.id}: loading it once to check it works`);
29307
- const { openReranker } = await import("./rerank-ZSJORUGH.js");
29333
+ const { openReranker } = await import("./rerank-2QTKDUBV.js");
29308
29334
  const reranker = await openReranker(model, directory2);
29309
29335
  try {
29310
29336
  await reranker.score("check", ["check"]);
@@ -29322,7 +29348,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id3, { env, progress = /*
29322
29348
  await installFiles(placedImage(model, directory2), { progress, ...bytes2 ? { bytes: bytes2 } : {} });
29323
29349
  }
29324
29350
  progress(`${model.id}: loading it once to check it works`);
29325
- const { openPictureEmbedder } = await import("./embedder-JIXQXCP3.js");
29351
+ const { openPictureEmbedder } = await import("./embedder-FI4T4LQB.js");
29326
29352
  const embedder = await openPictureEmbedder(model, directory2);
29327
29353
  try {
29328
29354
  const vector = await embedder.embedQuery("check");
@@ -29334,7 +29360,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id3, { env, progress = /*
29334
29360
  return { model, directory: directory2 };
29335
29361
  }, "downloadImageModel");
29336
29362
 
29337
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/domain/money-words.js
29363
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/domain/money-words.js
29338
29364
  var MONEY_REQUEST = "money-request";
29339
29365
  var MONEY_DONE = "money-done";
29340
29366
  var PROMISE = "promise";
@@ -29368,10 +29394,10 @@ var MONEY_WORDS = [
29368
29394
  }
29369
29395
  ];
29370
29396
 
29371
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/money-words.js
29397
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/money-words.js
29372
29398
  var moneyClassesOf = /* @__PURE__ */ __name((text3) => listsHit(text3, MONEY_WORDS), "moneyClassesOf");
29373
29399
 
29374
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/domain/status-words.js
29400
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/domain/status-words.js
29375
29401
  var words2 = /* @__PURE__ */ __name((forms) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${forms.join("|")})(?![\\p{L}\\p{N}])`, "iu"), "words");
29376
29402
  var MONEY_DONE_FORMS = words2([
29377
29403
  "\u043E\u043F\u043B\u0430\u0442\u0438\u043B[\u0430\u0438]?",
@@ -29411,7 +29437,7 @@ var PROMISE_FORMS = words2([
29411
29437
  "estar\xE1 listo"
29412
29438
  ]);
29413
29439
 
29414
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/project-status/items.js
29440
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/project-status/items.js
29415
29441
  var EXCERPT_CHARS = 80;
29416
29442
  var excerpt2 = /* @__PURE__ */ __name((text3) => {
29417
29443
  const flat = text3.replace(/\s+/g, " ").trim();
@@ -29433,7 +29459,7 @@ var whoOf = /* @__PURE__ */ __name((message) => ({
29433
29459
  var fromOwner = /* @__PURE__ */ __name((message) => message.outgoing === true, "fromOwner");
29434
29460
  var day = /* @__PURE__ */ __name((at2) => new Date(at2).toISOString().slice(0, 10), "day");
29435
29461
 
29436
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/project-status/signals/amounts.js
29462
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/project-status/signals/amounts.js
29437
29463
  var MONEY = DEFAULT_TASK_CATEGORIES.filter((category) => category.name === "money");
29438
29464
  var verbOf = /* @__PURE__ */ __name((text3) => {
29439
29465
  if (MONEY_DONE_FORMS.test(text3))
@@ -29514,7 +29540,7 @@ var amounts = {
29514
29540
  attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.state === "asked" ? [{ chat: item2.chat, weight: 2, why: "money asked" }] : []), "attention")
29515
29541
  };
29516
29542
 
29517
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/project-status/signals/children.js
29543
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/project-status/signals/children.js
29518
29544
  var children = {
29519
29545
  id: "children",
29520
29546
  version: 1,
@@ -29543,7 +29569,7 @@ var children = {
29543
29569
  }, "read")
29544
29570
  };
29545
29571
 
29546
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/project-status/signals/coverage.js
29572
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/project-status/signals/coverage.js
29547
29573
  var coverage = {
29548
29574
  id: "coverage",
29549
29575
  version: 1,
@@ -29572,7 +29598,7 @@ var coverage = {
29572
29598
  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")
29573
29599
  };
29574
29600
 
29575
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/project-status/signals/payments.js
29601
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/project-status/signals/payments.js
29576
29602
  var holding2 = /* @__PURE__ */ __name((row) => row.review !== "rejected", "holding");
29577
29603
  var item = /* @__PURE__ */ __name((row, at2, data) => ({
29578
29604
  signal: "payments",
@@ -29622,7 +29648,7 @@ var payments = {
29622
29648
  }, "read")
29623
29649
  };
29624
29650
 
29625
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/project-status/signals/promises.js
29651
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/project-status/signals/promises.js
29626
29652
  var PATTERNS_PER_CHAT = 3;
29627
29653
  var DAY5 = 864e5;
29628
29654
  var KINDS2 = /* @__PURE__ */ new Set(["promise", "request"]);
@@ -29711,7 +29737,7 @@ var promises = {
29711
29737
  }, "read")
29712
29738
  };
29713
29739
 
29714
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/project-status/signals/questions.js
29740
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/project-status/signals/questions.js
29715
29741
  var PER_SIDE = 5;
29716
29742
  var WEEK = 7 * 864e5;
29717
29743
  var NOBODY = /* @__PURE__ */ new Set();
@@ -29742,7 +29768,7 @@ var questions2 = {
29742
29768
  }, "attention")
29743
29769
  };
29744
29770
 
29745
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/project-status/signals/reply-next.js
29771
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/project-status/signals/reply-next.js
29746
29772
  var targetOf = /* @__PURE__ */ __name((message, chat, owners) => {
29747
29773
  const byId2 = /* @__PURE__ */ __name((id3) => chat.messages.find((one) => one.id === id3), "byId");
29748
29774
  const quoted = message.replyTo ?? (message.replyToId === void 0 ? void 0 : byId2(message.replyToId));
@@ -29810,7 +29836,7 @@ var replyNext = {
29810
29836
  attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.next === "owner" ? [{ chat: item2.chat, weight: 2, why: "your move" }] : []), "attention")
29811
29837
  };
29812
29838
 
29813
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/project-status/signals/topics.js
29839
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/project-status/signals/topics.js
29814
29840
  var escaped = /* @__PURE__ */ __name((text3) => text3.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
29815
29841
  var wholeWord = /* @__PURE__ */ __name((word) => new RegExp(`(?<![\\p{L}\\p{N}])${escaped(word)}(?![\\p{L}\\p{N}])`, "u"), "wholeWord");
29816
29842
  var matcherOf = /* @__PURE__ */ __name((query) => {
@@ -29856,7 +29882,7 @@ var topics = {
29856
29882
  }, "read")
29857
29883
  };
29858
29884
 
29859
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/project-status/signals/index.js
29885
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/project-status/signals/index.js
29860
29886
  var STATUS_SIGNALS = [
29861
29887
  replyNext,
29862
29888
  questions2,
@@ -29868,7 +29894,7 @@ var STATUS_SIGNALS = [
29868
29894
  children
29869
29895
  ];
29870
29896
 
29871
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/project-status/index.js
29897
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/project-status/index.js
29872
29898
  var DAY6 = 864e5;
29873
29899
  var STATUS_WINDOW = 300;
29874
29900
  var STATUS_CHATS = 16;
@@ -30057,7 +30083,7 @@ var projectStatus = /* @__PURE__ */ __name(async (store, input) => {
30057
30083
  };
30058
30084
  }, "projectStatus");
30059
30085
 
30060
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/account.js
30086
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/account.js
30061
30087
  var accountService = /* @__PURE__ */ __name((deps) => {
30062
30088
  const online = /* @__PURE__ */ __name(async (command) => {
30063
30089
  if (deps.offline)
@@ -30129,7 +30155,7 @@ var accountService = /* @__PURE__ */ __name((deps) => {
30129
30155
  };
30130
30156
  }, "accountService");
30131
30157
 
30132
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/domain/send-time.js
30158
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/domain/send-time.js
30133
30159
  var sendTime = /* @__PURE__ */ __name((value, now = Date.now(), flag = "--at-time", zone) => {
30134
30160
  const at2 = aheadOf(value, flag, now, {
30135
30161
  ...zone === void 0 ? {} : { zone },
@@ -30140,7 +30166,7 @@ var sendTime = /* @__PURE__ */ __name((value, now = Date.now(), flag = "--at-tim
30140
30166
  return new Date(at2 - at2 % MINUTE).toISOString();
30141
30167
  }, "sendTime");
30142
30168
 
30143
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/admin.js
30169
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/admin.js
30144
30170
  var recordMembership = /* @__PURE__ */ __name(async (deps, operationId, done2, change, fix, write2) => {
30145
30171
  try {
30146
30172
  const held = await accountStoreIfOpen(deps);
@@ -30387,7 +30413,7 @@ var linkLimits = /* @__PURE__ */ __name(({ approval, expires, maxUses }) => {
30387
30413
  return expires === void 0 ? void 0 : sendTime(expires, Date.now(), "--expire-time");
30388
30414
  }, "linkLimits");
30389
30415
 
30390
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/mail-search.js
30416
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/mail-search.js
30391
30417
  var THREADS_PAGE = 500;
30392
30418
  var threadsOf = /* @__PURE__ */ __name(async (store, key) => {
30393
30419
  const account = await store.accounts.storedAccount(key).catch(() => void 0);
@@ -30462,7 +30488,7 @@ var readMail = /* @__PURE__ */ __name(async (store, locator, { before = 0, after
30462
30488
  return thread.slice(Math.max(0, at2 - before), at2 + after + 1).map((hit) => hit.id === message ? { ...hit, anchor: true } : hit);
30463
30489
  }, "readMail");
30464
30490
 
30465
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/messages-search.js
30491
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/messages-search.js
30466
30492
  var PERSON_FIELDS = /* @__PURE__ */ new Set(["from", "to", "cc", "bcc"]);
30467
30493
  var MAIL_FIELDS = /* @__PURE__ */ new Set(["to", "cc", "bcc", "subject", "mailbox", "label", "is", "list"]);
30468
30494
  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");
@@ -30835,7 +30861,7 @@ var statsLucene = /* @__PURE__ */ __name(async (store, account, request, messeng
30835
30861
  };
30836
30862
  }, "statsLucene");
30837
30863
 
30838
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/rankings-selection.js
30864
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/rankings-selection.js
30839
30865
  var RANKING_SELECTION_BYTES = 64 * 1024;
30840
30866
  var object2 = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0, "object");
30841
30867
  function invalid2(message = "ranking selection is invalid \u2014 obtain a new drilldown from stats top") {
@@ -31004,7 +31030,7 @@ var readRankingSelection = /* @__PURE__ */ __name(async (store, input) => {
31004
31030
  };
31005
31031
  }, "readRankingSelection");
31006
31032
 
31007
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/search-record.js
31033
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/search-record.js
31008
31034
  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");
31009
31035
  var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
31010
31036
  command,
@@ -31014,7 +31040,7 @@ var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
31014
31040
  fieldsVersion: FIELD_VERSION
31015
31041
  }), "searchRecordOf");
31016
31042
 
31017
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/admin-statistics.js
31043
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/admin-statistics.js
31018
31044
  function invalid3(message) {
31019
31045
  throw new CliError("validation_error", message);
31020
31046
  }
@@ -31308,7 +31334,7 @@ var adminStatisticsService = /* @__PURE__ */ __name((deps) => ({
31308
31334
  }, "evidence")
31309
31335
  }), "adminStatisticsService");
31310
31336
 
31311
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/archive-gaps.js
31337
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/archive-gaps.js
31312
31338
  import { createHash as createHash7, randomUUID as randomUUID5 } from "node:crypto";
31313
31339
  var GAP_BOUNDS = { maxGaps: 5, limit: 500, timeMs: 3e4 };
31314
31340
  var validateRepair = /* @__PURE__ */ __name((messenger, options2) => {
@@ -31445,12 +31471,12 @@ var gapsService = /* @__PURE__ */ __name((deps) => {
31445
31471
  return { plan, repair };
31446
31472
  }, "gapsService");
31447
31473
 
31448
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/attachments.js
31474
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/attachments.js
31449
31475
  import { createHash as createHash10 } from "node:crypto";
31450
31476
  import { constants as constants2, mkdirSync as mkdirSync5 } from "node:fs";
31451
31477
  import { lstat as lstat5, open as open6, readFile as readFile2, stat as stat2 } from "node:fs/promises";
31452
31478
 
31453
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/attachments/directory.js
31479
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/attachments/directory.js
31454
31480
  import { lstat as lstat2, readdir as readdir2, realpath as realpath3 } from "node:fs/promises";
31455
31481
  import { basename as basename4, join as join14, relative as relative2, sep as sep2 } from "node:path";
31456
31482
  var MAX_FILES = 1e4;
@@ -31521,15 +31547,15 @@ var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app,
31521
31547
  return choices;
31522
31548
  }, "directoryPaths");
31523
31549
 
31524
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/attachments/documents.js
31550
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/attachments/documents.js
31525
31551
  import { posix } from "node:path";
31526
31552
 
31527
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/attachments/container.js
31553
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/attachments/container.js
31528
31554
  import { setImmediate as tick } from "node:timers/promises";
31529
31555
  import { crc32 } from "node:zlib";
31530
31556
  var import_xmldom = __toESM(require_lib(), 1);
31531
31557
 
31532
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/attachments/encoding.js
31558
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/attachments/encoding.js
31533
31559
  var import_chardet = __toESM(require_lib2(), 1);
31534
31560
  var import_iconv_lite = __toESM(require_lib3(), 1);
31535
31561
  var SAMPLE = 65536;
@@ -31631,7 +31657,7 @@ var decodeXml = /* @__PURE__ */ __name((bytes2) => {
31631
31657
  return result.text;
31632
31658
  }, "decodeXml");
31633
31659
 
31634
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/attachments/container.js
31660
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/attachments/container.js
31635
31661
  var MAX_PART = 10 * 1024 * 1024;
31636
31662
  var MAX_ENTRIES = 1e3;
31637
31663
  var decoder = new TextDecoder("utf-8", { fatal: true });
@@ -31846,7 +31872,7 @@ var elements = /* @__PURE__ */ __name((node, name, namespace) => {
31846
31872
  return found;
31847
31873
  }, "elements");
31848
31874
 
31849
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/attachments/sheets.js
31875
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/attachments/sheets.js
31850
31876
  var columnName = /* @__PURE__ */ __name((column) => {
31851
31877
  let name = "";
31852
31878
  for (let rest = column; rest > 0; rest = Math.floor((rest - 1) / 26))
@@ -31901,7 +31927,7 @@ var sheetText = /* @__PURE__ */ __name((sheets2, maxChars = MAX_TEXT_CHARS) => {
31901
31927
  return { text: parts.join("").trim(), truncated: false };
31902
31928
  }, "sheetText");
31903
31929
 
31904
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/attachments/documents.js
31930
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/attachments/documents.js
31905
31931
  var OFFICE = "urn:oasis:names:tc:opendocument:xmlns:office:1.0";
31906
31932
  var TEXT = "urn:oasis:names:tc:opendocument:xmlns:text:1.0";
31907
31933
  var TABLE = "urn:oasis:names:tc:opendocument:xmlns:table:1.0";
@@ -32301,10 +32327,10 @@ var readDocument = /* @__PURE__ */ __name(async (bytes2, kind2, signal) => {
32301
32327
  }
32302
32328
  }, "readDocument");
32303
32329
 
32304
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/attachments/extract.js
32330
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/attachments/extract.js
32305
32331
  import { extname as extname3 } from "node:path";
32306
32332
 
32307
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/readers/engine.js
32333
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/readers/engine.js
32308
32334
  import { readFileSync as readFileSync7 } from "node:fs";
32309
32335
  import { dirname as dirname7, extname as extname2, join as join15 } from "node:path";
32310
32336
  import { fileURLToPath } from "node:url";
@@ -32365,7 +32391,7 @@ var derived = /* @__PURE__ */ __name((bytes2, extractor, read) => {
32365
32391
  }
32366
32392
  }, "derived");
32367
32393
 
32368
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/readers/image/index.js
32394
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/readers/image/index.js
32369
32395
  var IMAGES = /* @__PURE__ */ new Set([".jpg", ".jpeg", ".png", ".webp", ".gif", ".heic", ".tif", ".tiff", ".bmp"]);
32370
32396
  var image2 = {
32371
32397
  id: "image",
@@ -32374,7 +32400,7 @@ var image2 = {
32374
32400
  read: /* @__PURE__ */ __name(async () => ({ status: "needs-agent" }), "read")
32375
32401
  };
32376
32402
 
32377
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/readers/doc/index.js
32403
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/readers/doc/index.js
32378
32404
  var OLE = "\xD0\xCF\xE0\xA1\xB1\xE1";
32379
32405
  var doc = {
32380
32406
  id: "doc",
@@ -32386,7 +32412,7 @@ var doc = {
32386
32412
  }), "read")
32387
32413
  };
32388
32414
 
32389
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/readers/docx/index.js
32415
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/readers/docx/index.js
32390
32416
  var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
32391
32417
  var docx = {
32392
32418
  id: "docx",
@@ -32399,10 +32425,10 @@ var docx = {
32399
32425
  }), "read")
32400
32426
  };
32401
32427
 
32402
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/attachments/markup.js
32428
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/attachments/markup.js
32403
32429
  var import_iconv_lite2 = __toESM(require_lib3(), 1);
32404
32430
 
32405
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/domain/html-entities.js
32431
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/domain/html-entities.js
32406
32432
  var NAMED = {
32407
32433
  amp: "&",
32408
32434
  lt: "<",
@@ -32454,7 +32480,7 @@ var decodeEntities = /* @__PURE__ */ __name((text3) => text3.replace(/&(#x[0-9a-
32454
32480
  return body[1] === "x" || body[1] === "X" ? character(Number.parseInt(body.slice(2), 16), entity2) : character(Number(body.slice(1)), entity2);
32455
32481
  }), "decodeEntities");
32456
32482
 
32457
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/attachments/markup.js
32483
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/attachments/markup.js
32458
32484
  var RTF_SKIPPED = /* @__PURE__ */ new Set([
32459
32485
  "fonttbl",
32460
32486
  "colortbl",
@@ -32620,7 +32646,7 @@ var htmlText = /* @__PURE__ */ __name((source) => {
32620
32646
  return decodeEntities(replaceTags(blocks, /<[^>]*>/g, "")).replace(/(?<![ \t\u00a0])[ \t\u00a0]+\n/g, "\n").replace(/\n{3,}/g, "\n\n").trim();
32621
32647
  }, "htmlText");
32622
32648
 
32623
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/readers/html/page.js
32649
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/readers/html/page.js
32624
32650
  var clean = /* @__PURE__ */ __name((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim() : "", "clean");
32625
32651
  var namesIn = /* @__PURE__ */ __name((value) => [value].flat().map((entry) => typeof entry === "string" ? clean(entry) : clean(entry?.name)).filter(Boolean).join(", "), "namesIn");
32626
32652
  var jsonLdNodes = /* @__PURE__ */ __name((document) => {
@@ -32676,7 +32702,7 @@ var markdownSections = /* @__PURE__ */ __name((text3) => {
32676
32702
  return found.map((section, index) => ({ ...section, end: found[index + 1]?.start ?? text3.length }));
32677
32703
  }, "markdownSections");
32678
32704
 
32679
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/readers/html/index.js
32705
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/readers/html/index.js
32680
32706
  var HTML = /* @__PURE__ */ new Set([".html", ".htm", ".xhtml"]);
32681
32707
  var first = /* @__PURE__ */ __name((...values) => values.find((value) => typeof value === "string" && value !== ""), "first");
32682
32708
  var loaded = /* @__PURE__ */ __name(async (load, name) => {
@@ -32747,7 +32773,7 @@ var html = {
32747
32773
  }, "read")
32748
32774
  };
32749
32775
 
32750
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/readers/office/index.js
32776
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/readers/office/index.js
32751
32777
  var office = {
32752
32778
  id: "office",
32753
32779
  version: documentExtractor("odt"),
@@ -32758,7 +32784,7 @@ var office = {
32758
32784
  }, "read")
32759
32785
  };
32760
32786
 
32761
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/readers/pdf/index.js
32787
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/readers/pdf/index.js
32762
32788
  var pdf = {
32763
32789
  id: "pdf",
32764
32790
  version: "unpdf",
@@ -32825,7 +32851,7 @@ var pdf = {
32825
32851
  }), "read")
32826
32852
  };
32827
32853
 
32828
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/readers/plain/index.js
32854
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/readers/plain/index.js
32829
32855
  var PLAIN = /* @__PURE__ */ new Set([".txt", ".md", ".markdown", ".csv", ".tsv", ".json", ".log"]);
32830
32856
  var isPlain = /* @__PURE__ */ __name((hint) => PLAIN.has(extensionOf(hint)) || hint.mime?.startsWith("text/") || hint.mime === "application/json", "isPlain");
32831
32857
  var readPlain = /* @__PURE__ */ __name((bytes2) => {
@@ -32845,7 +32871,7 @@ var plain = {
32845
32871
  read: /* @__PURE__ */ __name(async (bytes2) => readPlain(bytes2), "read")
32846
32872
  };
32847
32873
 
32848
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/readers/rtf/index.js
32874
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/readers/rtf/index.js
32849
32875
  var rtf = {
32850
32876
  id: "rtf",
32851
32877
  version: "v1",
@@ -32853,10 +32879,10 @@ var rtf = {
32853
32879
  read: /* @__PURE__ */ __name(async (bytes2) => derived(bytes2, "rtf:v1", rtfText), "read")
32854
32880
  };
32855
32881
 
32856
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
32882
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
32857
32883
  import { basename as basename5 } from "node:path";
32858
32884
 
32859
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/attachments/csv-spans.js
32885
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/attachments/csv-spans.js
32860
32886
  var delimitedSpans = /* @__PURE__ */ __name((text3, delimiter, maxCells = 1e4) => {
32861
32887
  const cells = [];
32862
32888
  let row = 1, column = 1, start = 0, quoted = false, truncated = false;
@@ -32894,7 +32920,7 @@ var delimitedSpans = /* @__PURE__ */ __name((text3, delimiter, maxCells = 1e4) =
32894
32920
  return { cells, truncated };
32895
32921
  }, "delimitedSpans");
32896
32922
 
32897
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
32923
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
32898
32924
  var DELIMITED = {
32899
32925
  ".csv": ",",
32900
32926
  ".tsv": " ",
@@ -32933,7 +32959,7 @@ var sheets = {
32933
32959
  }, "read")
32934
32960
  };
32935
32961
 
32936
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/readers/registry.js
32962
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/readers/registry.js
32937
32963
  var BUILT_INS2 = [office, pdf, docx, doc, rtf, html, sheets, plain, image2];
32938
32964
  var HEAD_BYTES = 1024;
32939
32965
  var readers = [...BUILT_INS2];
@@ -32943,7 +32969,7 @@ var readWithRegistry = /* @__PURE__ */ __name(async (bytes2, hint, context2) =>
32943
32969
  return reader ? reader.read(bytes2, hint, context2) : { status: "unsupported" };
32944
32970
  }, "readWithRegistry");
32945
32971
 
32946
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/attachments/extract.js
32972
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/attachments/extract.js
32947
32973
  var importEngine = /* @__PURE__ */ __name((name) => importFrom(new URL("attachments/extract.js", import.meta.resolve("@wirecat/cli-core")).href, name), "importEngine");
32948
32974
  var extensionOf2 = /* @__PURE__ */ __name(({ name, path: path2 }) => extname3(name ?? path2).toLowerCase(), "extensionOf");
32949
32975
  var extractText = /* @__PURE__ */ __name(async (bytes2, hint, load, signal, env = process.env) => {
@@ -34022,7 +34048,7 @@ function imageSize(input) {
34022
34048
  }
34023
34049
  __name(imageSize, "imageSize");
34024
34050
 
34025
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/attachments/ocr.js
34051
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/attachments/ocr.js
34026
34052
  var MAX_PAGES = 20;
34027
34053
  var MAX_PIXELS = 2e7;
34028
34054
  var cancelled2 = /* @__PURE__ */ __name((signal) => {
@@ -34182,7 +34208,7 @@ var ocrPdf = /* @__PURE__ */ __name(async (bytes2, pipeline2, load, signal) => {
34182
34208
  }
34183
34209
  }, "ocrPdf");
34184
34210
 
34185
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/attachments/pdf-preview.js
34211
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/attachments/pdf-preview.js
34186
34212
  var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = importEngine, env = process.env) => {
34187
34213
  const limits = pdfPreviewLimits(env);
34188
34214
  const cancelled3 = /* @__PURE__ */ __name(() => {
@@ -34259,7 +34285,7 @@ var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = impo
34259
34285
  }
34260
34286
  }, "pdfPreview");
34261
34287
 
34262
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/attachments/picture-reading.js
34288
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/attachments/picture-reading.js
34263
34289
  import { spawn } from "node:child_process";
34264
34290
  import { mkdtempSync, readFileSync as readFileSync8, rmSync as rmSync2, writeFileSync as writeFileSync4 } from "node:fs";
34265
34291
  import { tmpdir } from "node:os";
@@ -34422,7 +34448,7 @@ Read the attached picture.`,
34422
34448
  }
34423
34449
  }, "readPictureWithAgent");
34424
34450
 
34425
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/attachments/transfer.js
34451
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/attachments/transfer.js
34426
34452
  import { createHash as createHash8 } from "node:crypto";
34427
34453
  import { constants } from "node:fs";
34428
34454
  import { lstat as lstat3, open as open5 } from "node:fs/promises";
@@ -34530,7 +34556,7 @@ var transferMime = /* @__PURE__ */ __name((head, hint, name = null) => {
34530
34556
  return hint !== null && /^[a-z0-9.+-]+\/[a-z0-9.+-]+$/i.test(hint) ? hint : "application/octet-stream";
34531
34557
  }, "transferMime");
34532
34558
 
34533
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/file-download.js
34559
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/file-download.js
34534
34560
  import { createWriteStream, mkdirSync as mkdirSync4 } from "node:fs";
34535
34561
  import { link as link3, rm } from "node:fs/promises";
34536
34562
  import { join as join17, resolve as resolve6 } from "node:path";
@@ -34609,9 +34635,10 @@ var EXTENSIONS = {
34609
34635
  var BY_KIND = { photo: "jpg" };
34610
34636
  var save = /* @__PURE__ */ __name(async (file, directory2, fallbackName, { unique = false } = {}) => {
34611
34637
  const own = safeName(file.name);
34638
+ const fallback = safeName(fallbackName) ?? "file";
34612
34639
  const fileName = /* @__PURE__ */ __name(() => {
34613
34640
  const extension = EXTENSIONS[file.mime ?? ""] ?? BY_KIND[file.kind];
34614
- return own ?? (extension ? `${fallbackName}.${extension}` : fallbackName);
34641
+ return own ?? (extension ? `${fallback}.${extension}` : fallback);
34615
34642
  }, "fileName");
34616
34643
  const partial = join17(directory2, `.${fileName()}.${process.pid}.part`);
34617
34644
  let bytes2 = 0;
@@ -34624,7 +34651,7 @@ var save = /* @__PURE__ */ __name(async (file, directory2, fallbackName, { uniqu
34624
34651
  try {
34625
34652
  await pipeline(Readable.from(file.bytes()), counting, createWriteStream(partial, { flags: "wx", mode: 384 }));
34626
34653
  const name = fileName();
34627
- const names2 = unique && own ? [name, `${fallbackName}-${own}`] : [name];
34654
+ const names2 = unique && own ? [name, `${fallback}-${own}`] : [name];
34628
34655
  for (const candidate of names2) {
34629
34656
  const path3 = resolve6(join17(directory2, candidate));
34630
34657
  const taken2 = await link3(partial, path3).then(() => false, (error) => {
@@ -34644,12 +34671,12 @@ var save = /* @__PURE__ */ __name(async (file, directory2, fallbackName, { uniqu
34644
34671
  }
34645
34672
  }, "save");
34646
34673
 
34647
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/pictures.js
34674
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/pictures.js
34648
34675
  import { createHash as createHash9 } from "node:crypto";
34649
34676
  import { lstat as lstat4, readFile } from "node:fs/promises";
34650
34677
  import { setTimeout as sleep4 } from "node:timers/promises";
34651
34678
 
34652
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/domain/models.js
34679
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/domain/models.js
34653
34680
  var GROUP_SETTINGS = [
34654
34681
  "allCanPin",
34655
34682
  "onlyAdminsAdd",
@@ -34663,7 +34690,7 @@ var ADMIN_RIGHTS = ["read", "members", "admins", "info", "pin", "link", "post",
34663
34690
  var senderIsMe = /* @__PURE__ */ __name((message, account) => message.outgoing === true || message.senderId !== null && String(message.senderId) === account, "senderIsMe");
34664
34691
  var MEDIA_KINDS = ["photo", "video", "file", "audio", "link"];
34665
34692
 
34666
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/pictures.js
34693
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/pictures.js
34667
34694
  var PICTURE_MAX_BYTES = 25 * 1024 * 1024;
34668
34695
  var PICTURE_FLOOR = 0.25;
34669
34696
  var PAGE3 = 50;
@@ -34704,7 +34731,7 @@ var picturesService = /* @__PURE__ */ __name((deps) => {
34704
34731
  const directory2 = imageModelsDirectory(deps.env);
34705
34732
  if (!isImageModelInstalled(model2, directory2))
34706
34733
  throw new CliError("not_found", missingModel(model2.id), { reason: "model.not-downloaded", model: model2.id });
34707
- const { openPictureEmbedder } = await import("./embedder-JIXQXCP3.js");
34734
+ const { openPictureEmbedder } = await import("./embedder-FI4T4LQB.js");
34708
34735
  return openPictureEmbedder(model2, directory2);
34709
34736
  }, "open");
34710
34737
  const embedder = /* @__PURE__ */ __name(() => {
@@ -34878,7 +34905,7 @@ var withPictures = /* @__PURE__ */ __name((messages, pictures) => ({
34878
34905
  }, "search")
34879
34906
  }), "withPictures");
34880
34907
 
34881
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/attachments.js
34908
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/attachments.js
34882
34909
  var ATTACHMENT_QUERY = {
34883
34910
  entity: "attachment",
34884
34911
  backend: "sql",
@@ -35349,7 +35376,7 @@ var attachmentsService = /* @__PURE__ */ __name((deps) => ({
35349
35376
  }, "readPicture")
35350
35377
  }), "attachmentsService");
35351
35378
 
35352
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/chat-documents.js
35379
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/chat-documents.js
35353
35380
  var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
35354
35381
  list: /* @__PURE__ */ __name(async (chat, { limit, offset, ref }) => {
35355
35382
  const store = await accountStore(deps);
@@ -35379,7 +35406,7 @@ var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
35379
35406
  }, "list")
35380
35407
  }), "chatDocumentsService");
35381
35408
 
35382
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/retention.js
35409
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/retention.js
35383
35410
  var observationDuration = /* @__PURE__ */ __name((text3, flag) => {
35384
35411
  const match = /^(\d+(?:\.\d+)?)([smhdw])$/.exec(text3);
35385
35412
  const units2 = { s: 1e3, m: 6e4, h: 36e5, d: 864e5, w: 6048e5 };
@@ -35466,7 +35493,7 @@ var isRetentionSelection = /* @__PURE__ */ __name((selection) => {
35466
35493
  }
35467
35494
  }, "isRetentionSelection");
35468
35495
 
35469
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/counters.js
35496
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/counters.js
35470
35497
  var counterFields = /* @__PURE__ */ __name((text3 = "views,reactions,comments") => {
35471
35498
  const fields2 = text3.split(",").map((one) => one.trim());
35472
35499
  if (!fields2.length || fields2.some((one) => !COUNTER_FIELDS.includes(one)) || new Set(fields2).size !== fields2.length)
@@ -35673,62 +35700,7 @@ var countersService = /* @__PURE__ */ __name((deps) => {
35673
35700
  };
35674
35701
  }, "countersService");
35675
35702
 
35676
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/search/respell.js
35677
- var LATIN = {
35678
- \u0430: "a",
35679
- \u0431: "b",
35680
- \u0432: "v",
35681
- \u0433: "g",
35682
- \u0434: "d",
35683
- \u0435: "e",
35684
- \u0436: "zh",
35685
- \u0437: "z",
35686
- \u0438: "i",
35687
- \u043A: "k",
35688
- \u043B: "l",
35689
- \u043C: "m",
35690
- \u043D: "n",
35691
- \u043E: "o",
35692
- \u043F: "p",
35693
- \u0440: "r",
35694
- \u0441: "s",
35695
- \u0442: "t",
35696
- \u0443: "u",
35697
- \u0444: "f",
35698
- \u0445: "h",
35699
- \u0446: "ts",
35700
- \u0447: "ch",
35701
- \u0448: "sh",
35702
- \u0449: "sch",
35703
- \u044A: "",
35704
- \u044B: "y",
35705
- \u044C: "",
35706
- \u044D: "e",
35707
- \u044E: "yu",
35708
- \u044F: "ya"
35709
- };
35710
- var latinSpellings = /* @__PURE__ */ __name((word) => {
35711
- if (!new RegExp("\\p{Script=Cyrillic}", "u").test(word))
35712
- return [];
35713
- const plain2 = [...normalize(word)].map((letter) => LATIN[letter] ?? letter).join("");
35714
- return [.../* @__PURE__ */ new Set([plain2, plain2.replaceAll("ks", "x")])];
35715
- }, "latinSpellings");
35716
- var respelled = /* @__PURE__ */ __name(async (vocabulary, words3) => {
35717
- const known2 = await vocabulary.knownTerms(words3);
35718
- const found = /* @__PURE__ */ new Map();
35719
- for (const word of words3.filter((one) => !known2.has(one))) {
35720
- const latin = latinSpellings(word);
35721
- const held = await vocabulary.knownTerms(latin);
35722
- const nearLatin = await correctWords(vocabulary, latin.filter((one) => !held.has(one)));
35723
- const asLatin = [.../* @__PURE__ */ new Set([...held, ...[...nearLatin.values()].flat()])];
35724
- const forms = asLatin.length ? asLatin : (await correctWords(vocabulary, [word])).get(normalize(word)) ?? [];
35725
- if (forms.length)
35726
- found.set(word, forms);
35727
- }
35728
- return found;
35729
- }, "respelled");
35730
-
35731
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/named-chat.js
35703
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/named-chat.js
35732
35704
  var LEAST_USES = 3;
35733
35705
  var SAMPLE2 = 50;
35734
35706
  var CAPITALISED = 0.8;
@@ -35782,7 +35754,7 @@ var queryWords2 = /* @__PURE__ */ __name((query) => {
35782
35754
  }, "queryWords");
35783
35755
  var without = /* @__PURE__ */ __name((query, word) => query.replace(new RegExp(`(?<![\\p{L}\\p{N}])${word}(?![\\p{L}\\p{N}])`, "giu"), " ").replace(/\s+/gu, " ").trim(), "without");
35784
35756
 
35785
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/search-refresh.js
35757
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/search-refresh.js
35786
35758
  var SYNC_KEY = "messages.sync-first";
35787
35759
  var SYNC_BOUNDS = { maxChats: 5, timeMs: 3e4, maxMessages: 500 };
35788
35760
  var keyOf5 = /* @__PURE__ */ __name((chat) => JSON.stringify([chat.account.provider, chat.account.account, chat.chatId]), "keyOf");
@@ -35914,7 +35886,7 @@ var withRefresh = /* @__PURE__ */ __name((found, refreshed) => ({
35914
35886
  ...!refreshed || refreshed.complete ? {} : { coverage: { ...found.coverage, state: "stale" } }
35915
35887
  }), "withRefresh");
35916
35888
 
35917
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/embeddings-search.js
35889
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/embeddings-search.js
35918
35890
  var CANDIDATES = 50;
35919
35891
  var ACROSS_CHATS = 500;
35920
35892
  var OWN_BLOCK = 5;
@@ -36375,13 +36347,13 @@ var meanOf = /* @__PURE__ */ __name((vectors) => {
36375
36347
  return mean2.map((value) => value / length);
36376
36348
  }, "meanOf");
36377
36349
 
36378
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/embeddings.js
36350
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/embeddings.js
36379
36351
  var embeddingsService = /* @__PURE__ */ __name((deps) => ({
36380
36352
  ...embeddingsMaintenance(deps),
36381
36353
  ...embeddingsSearch(deps)
36382
36354
  }), "embeddingsService");
36383
36355
 
36384
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/folders.js
36356
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/folders.js
36385
36357
  var foldersService = /* @__PURE__ */ __name((deps) => {
36386
36358
  const online = /* @__PURE__ */ __name(async (command) => {
36387
36359
  if (deps.offline)
@@ -36522,7 +36494,7 @@ var foldersService = /* @__PURE__ */ __name((deps) => {
36522
36494
  };
36523
36495
  }, "foldersService");
36524
36496
 
36525
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/mentions.js
36497
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/mentions.js
36526
36498
  var REVIEW_COUNT = 500;
36527
36499
  var mentionsService = /* @__PURE__ */ __name((deps) => {
36528
36500
  const located = /* @__PURE__ */ __name(async () => {
@@ -36601,7 +36573,7 @@ var mentionsService = /* @__PURE__ */ __name((deps) => {
36601
36573
  };
36602
36574
  }, "mentionsService");
36603
36575
 
36604
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/domain/message-link.js
36576
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/domain/message-link.js
36605
36577
  var fileLinks = /* @__PURE__ */ __name((attachments) => hitFiles(attachments).map(({ position, kind: kind2, name }) => ({
36606
36578
  position,
36607
36579
  kind: kind2,
@@ -36650,7 +36622,7 @@ var validatePermalink = /* @__PURE__ */ __name((link4) => {
36650
36622
  return { url: link4.url, access: link4.access, reason: link4.reason };
36651
36623
  }, "validatePermalink");
36652
36624
 
36653
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/domain/pin-duration.js
36625
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/domain/pin-duration.js
36654
36626
  var spokenSeconds = /* @__PURE__ */ __name((seconds) => {
36655
36627
  if (seconds % 86400 === 0 && seconds > 86400)
36656
36628
  return `${seconds / 86400}d`;
@@ -36682,7 +36654,7 @@ var pinDurationOf = /* @__PURE__ */ __name((value, allowed, flag = "--expire-tim
36682
36654
  return seconds;
36683
36655
  }, "pinDurationOf");
36684
36656
 
36685
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/sends/send-as.js
36657
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/sends/send-as.js
36686
36658
  var sendAsCheck = /* @__PURE__ */ __name((connection, sendAs) => {
36687
36659
  if (sendAs === void 0) {
36688
36660
  const saved = connection.savedSender?.bind(connection);
@@ -36707,7 +36679,7 @@ var typedSendAs = /* @__PURE__ */ __name((typed) => {
36707
36679
  return sendAs;
36708
36680
  }, "typedSendAs");
36709
36681
 
36710
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/search/total.js
36682
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/search/total.js
36711
36683
  var TOTAL_CAP = 1e4;
36712
36684
  var totalOf = /* @__PURE__ */ __name((count3, shown, hasMore, exact = true) => {
36713
36685
  const least = shown + (hasMore ? 1 : 0);
@@ -36718,7 +36690,7 @@ var totalOf = /* @__PURE__ */ __name((count3, shown, hasMore, exact = true) => {
36718
36690
  return { value: count3, relation: exact ? "eq" : "gte" };
36719
36691
  }, "totalOf");
36720
36692
 
36721
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/search/lucene/meaning-parts.js
36693
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/search/lucene/meaning-parts.js
36722
36694
  var WORD_FIELDS = /* @__PURE__ */ new Set(["text", "exact"]);
36723
36695
  var fieldsOfQuery = /* @__PURE__ */ __name((root, everything) => {
36724
36696
  let narrows = false;
@@ -36747,7 +36719,7 @@ var meaningWords = /* @__PURE__ */ __name((root) => {
36747
36719
  return wanted(root).join(" ").trim();
36748
36720
  }, "meaningWords");
36749
36721
 
36750
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/messages-combined.js
36722
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/messages-combined.js
36751
36723
  var COMBINED_DEFAULTS = { candidateDepth: 300, rrfK: 60, rerank: "all", chatCap: 0 };
36752
36724
  var tokensOf = /* @__PURE__ */ __name((text3) => normalize(text3).match(/[\p{L}\p{N}\p{Co}\p{M}]+/gu) ?? [], "tokensOf");
36753
36725
  var searchCombined = /* @__PURE__ */ __name(async (store, account, request, messenger = {}, options2 = COMBINED_DEFAULTS) => {
@@ -36948,7 +36920,7 @@ var signals = /* @__PURE__ */ __name((hit, terms, corrections, execution, mode,
36948
36920
  return mode === "coverage" ? coverage2 * 4 : mode === "proximity" ? proximity : mode === "phrase" ? phrase2 : coverage2 * 4 + proximity + phrase2;
36949
36921
  }, "signals");
36950
36922
 
36951
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/messages-discovery.js
36923
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/messages-discovery.js
36952
36924
  var MEANING_DEPTH = 100;
36953
36925
  var RRF_K3 = 60;
36954
36926
  var RERANK_DEPTH = 50;
@@ -37274,7 +37246,7 @@ var mixedWithReranker = /* @__PURE__ */ __name((head, scores) => {
37274
37246
  })).sort((a, b) => b.mixed - a.mixed).map(({ hit }) => hit);
37275
37247
  }, "mixedWithReranker");
37276
37248
 
37277
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/thread-context.js
37249
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/thread-context.js
37278
37250
  var THREAD_BOUNDS = { maxHops: 8, maxMessages: 50, maxBytes: 65536, withinMs: 864e5 };
37279
37251
  var bytes = /* @__PURE__ */ __name((items, links) => Buffer.byteLength(JSON.stringify({ items, links }), "utf8"), "bytes");
37280
37252
  var threadBounds = /* @__PURE__ */ __name((options2 = {}) => {
@@ -37473,7 +37445,7 @@ var readThreadContext = /* @__PURE__ */ __name(async (store, account, chat, mess
37473
37445
  return result;
37474
37446
  }, "readThreadContext");
37475
37447
 
37476
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/messages-archive-search.js
37448
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/messages-archive-search.js
37477
37449
  var SEARCH_FILL_MS = 200;
37478
37450
  var statsStore = /* @__PURE__ */ __name(async (store, account, request, messenger = {}) => {
37479
37451
  const stop = Date.now() + SEARCH_FILL_MS;
@@ -37581,7 +37553,7 @@ var accountOf2 = /* @__PURE__ */ __name((hit) => {
37581
37553
  }, "accountOf");
37582
37554
  var keyOf6 = /* @__PURE__ */ __name(({ provider, account }) => `${provider}/${account}`, "keyOf");
37583
37555
 
37584
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/meaning-model.js
37556
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/meaning-model.js
37585
37557
  var meaningModel = /* @__PURE__ */ __name(async (store, env = process.env) => {
37586
37558
  const chosen = chosenTextModel(env);
37587
37559
  if (chosen.from === "chosen" || chosen.id !== DEFAULT_TEXT_MODEL)
@@ -37596,7 +37568,7 @@ var meaningModel = /* @__PURE__ */ __name(async (store, env = process.env) => {
37596
37568
  return (counts.get(before) ?? 0) > (counts.get(now) ?? 0) ? previous.id : current.id;
37597
37569
  }, "meaningModel");
37598
37570
 
37599
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/messages-meaning.js
37571
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/messages-meaning.js
37600
37572
  var meaningText = /* @__PURE__ */ __name((question) => {
37601
37573
  try {
37602
37574
  const text3 = questionLookup(question) === void 0 ? question : questionText(question);
@@ -37675,7 +37647,7 @@ var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, sh
37675
37647
  }
37676
37648
  }, "meaningLane");
37677
37649
 
37678
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/messages-rerank.js
37650
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/messages-rerank.js
37679
37651
  var rerankLane = /* @__PURE__ */ __name((deps) => {
37680
37652
  const choice = deps.reranker ?? DEFAULT_RERANK_MODEL;
37681
37653
  if (choice === "off")
@@ -37687,9 +37659,9 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
37687
37659
  return { skipped: { reason: `${model.id} is not downloaded`, step: "models.download", model: model.id } };
37688
37660
  try {
37689
37661
  const warm = deps.embedders;
37690
- const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-NMNQLJHZ.js")).openRerankerProcess(model, directory2, {
37662
+ const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-A7ZJGQ6G.js")).openRerankerProcess(model, directory2, {
37691
37663
  threads: defaultThreads()
37692
- })) : await (await import("./rerank-ZSJORUGH.js")).openReranker(model, directory2);
37664
+ })) : await (await import("./rerank-2QTKDUBV.js")).openReranker(model, directory2);
37693
37665
  return {
37694
37666
  model: model.id,
37695
37667
  score: /* @__PURE__ */ __name((question, passages) => reranker.score(plainWords(question), passages), "score"),
@@ -37709,7 +37681,7 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
37709
37681
  };
37710
37682
  }, "rerankLane");
37711
37683
 
37712
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/search/question-period.js
37684
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/search/question-period.js
37713
37685
  var DAY7 = 864e5;
37714
37686
  var SPAN = { start: 0, end: 0 };
37715
37687
  var phrase = /* @__PURE__ */ __name((source) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${source})(?![\\p{L}\\p{N}])`, "giu"), "phrase");
@@ -37834,17 +37806,17 @@ var questionPeriod = /* @__PURE__ */ __name((text3, now, zone) => {
37834
37806
  };
37835
37807
  }, "questionPeriod");
37836
37808
 
37837
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/document-pictures.js
37809
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/document-pictures.js
37838
37810
  var openPictureEmbedderFor = /* @__PURE__ */ __name(async ({ env, command } = {}) => {
37839
37811
  const model = imageModel(DEFAULT_IMAGE_MODEL);
37840
37812
  const directory2 = imageModelsDirectory(env);
37841
37813
  if (!isImageModelInstalled(model, directory2))
37842
37814
  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 });
37843
- const { openPictureEmbedder } = await import("./embedder-JIXQXCP3.js");
37815
+ const { openPictureEmbedder } = await import("./embedder-FI4T4LQB.js");
37844
37816
  return openPictureEmbedder(model, directory2);
37845
37817
  }, "openPictureEmbedderFor");
37846
37818
 
37847
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/document-source.js
37819
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/document-source.js
37848
37820
  var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file) => {
37849
37821
  const metadata = note.frontMatter;
37850
37822
  const account = accounts.find(({ id: id3 }) => String(id3) === note.folderId);
@@ -37866,7 +37838,7 @@ var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file) =>
37866
37838
  };
37867
37839
  }, "documentSource");
37868
37840
 
37869
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/embeddings/keys.js
37841
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/embeddings/keys.js
37870
37842
  var endpointKeyName = /* @__PURE__ */ __name((baseUrl) => {
37871
37843
  const host = new URL(baseUrl).host;
37872
37844
  return ["openai", "anthropic"].includes(host) ? `endpoint:${host}` : host;
@@ -37899,7 +37871,7 @@ var embeddingKeys = /* @__PURE__ */ __name((app, env = process.env, keyring) =>
37899
37871
  };
37900
37872
  }, "embeddingKeys");
37901
37873
 
37902
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/models/openai.js
37874
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/models/openai.js
37903
37875
  var options = strictObject({
37904
37876
  temperature: range(0, 2),
37905
37877
  top_p: range(0, 1),
@@ -37966,7 +37938,7 @@ var openai = {
37966
37938
  }), "complete")
37967
37939
  };
37968
37940
 
37969
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/models/index.js
37941
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/models/index.js
37970
37942
  var modelGateway = /* @__PURE__ */ __name((deps) => ({
37971
37943
  complete: /* @__PURE__ */ __name(async (request) => {
37972
37944
  if (deps.signal?.aborted)
@@ -37981,7 +37953,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
37981
37953
  if (!adapter && target2.provider === "openai")
37982
37954
  adapter = openai;
37983
37955
  if (!adapter && target2.provider === "anthropic")
37984
- adapter = (await import("./anthropic-VE6WR6IN.js")).anthropic;
37956
+ adapter = (await import("./anthropic-GK6VBQUD.js")).anthropic;
37985
37957
  if (!adapter)
37986
37958
  throw new CliError("validation_error", `no model adapter for ${target2.provider}`);
37987
37959
  if (request.images !== void 0 && adapter.images !== true)
@@ -38041,7 +38013,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
38041
38013
  }, "complete")
38042
38014
  }), "modelGateway");
38043
38015
 
38044
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/enrichment-setting.js
38016
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/enrichment-setting.js
38045
38017
  var SECTION2 = "enrichment";
38046
38018
  var ENRICHMENT_PROVIDERS = ["openai", "anthropic"];
38047
38019
  var DEFAULT_BASE_URLS = {
@@ -38116,7 +38088,7 @@ var costOf = /* @__PURE__ */ __name((usage, setting) => {
38116
38088
  return price ? Math.round((usage.input * price.input + usage.output * price.output) * 1e6) / 1e6 : null;
38117
38089
  }, "costOf");
38118
38090
 
38119
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/enrichment.js
38091
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/enrichment.js
38120
38092
  var ENRICH_PER_RUN = 600;
38121
38093
  var MAX_LINE = 400;
38122
38094
  var line2 = pipe(unknown(), transform((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim().slice(0, MAX_LINE) : ""));
@@ -38192,7 +38164,7 @@ var enrichmentState = /* @__PURE__ */ __name(async (store, env, estimateFor, key
38192
38164
  };
38193
38165
  }, "enrichmentState");
38194
38166
 
38195
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/notes-title-tier.js
38167
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/notes-title-tier.js
38196
38168
  var plainQueryWords = /* @__PURE__ */ __name((query) => {
38197
38169
  let root;
38198
38170
  try {
@@ -38219,7 +38191,7 @@ var titleTiers = /* @__PURE__ */ __name((hits, words3) => {
38219
38191
  return [...hits].sort((a, b) => rank(a) - rank(b));
38220
38192
  }, "titleTiers");
38221
38193
 
38222
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/notes-search.js
38194
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/notes-search.js
38223
38195
  var storeQuery = /* @__PURE__ */ __name(async (store, text3, { exact, timezone } = {}) => resolvedQuery(store, parsedQuery(text3, exact), timezone), "storeQuery");
38224
38196
  var parsedQuery = /* @__PURE__ */ __name((text3, exact) => validateFields(parseLucene(text3, { ...SEARCH_QUERY, defaultField: exact ? "exact" : "text" })).root, "parsedQuery");
38225
38197
  var resolvedQuery = /* @__PURE__ */ __name(async (store, root, timezone) => {
@@ -38261,6 +38233,7 @@ var searchNotesQuery = /* @__PURE__ */ __name(async (store, request) => {
38261
38233
  ...stemmer ? { stemmer } : {}
38262
38234
  });
38263
38235
  }, "searchNotesQuery");
38236
+ var NOTE_BATCH = 8;
38264
38237
  var downloadHint = /* @__PURE__ */ __name((model, command) => command === void 0 ? `install it with a WireCat CLI that has \`models download\` (tg, max or wa); they share the model folder` : `\`${command} models download ${model}\``, "downloadHint");
38265
38238
  var localModel = /* @__PURE__ */ __name((choice, env, command) => {
38266
38239
  const model = textModel(choice ?? chosenTextModel(env).id, env);
@@ -38282,6 +38255,45 @@ var withLocal = /* @__PURE__ */ __name(async (model, directory2, threads, work,
38282
38255
  await embedder.close();
38283
38256
  }
38284
38257
  }, "withLocal");
38258
+ var stopsAt = /* @__PURE__ */ __name((deadline) => deadline ? deadline.endsAt - deadlineMargin(deadline) : Number.POSITIVE_INFINITY, "stopsAt");
38259
+ var embedChunks = /* @__PURE__ */ __name(async (store, source, { model: choice, maxChunks = Number.POSITIVE_INFINITY, env, threads, command, deadline, signal } = {}) => {
38260
+ const { model, directory: directory2, key } = localModel(choice, env, command);
38261
+ if ((await source.chunksToEmbed(key, { limit: 1 })).length === 0)
38262
+ return { model: model.id, embedded: 0, left: false };
38263
+ const until = stopsAt(deadline);
38264
+ const stopped = /* @__PURE__ */ __name((slowest) => signal?.aborted ? "cancelled" : Date.now() + slowest >= until ? "deadline" : void 0, "stopped");
38265
+ const stop = /* @__PURE__ */ __name(async (embedded, why) => {
38266
+ const remaining = await source.chunksLeft?.(key);
38267
+ return { model: model.id, embedded, left: true, stopped: why, ...remaining === void 0 ? {} : { remaining } };
38268
+ }, "stop");
38269
+ const early = stopped(0);
38270
+ if (early)
38271
+ return stop(0, early);
38272
+ return withLocal(model, directory2, threads, async (embedder) => {
38273
+ let embedded = 0;
38274
+ let after;
38275
+ let slowest = 0;
38276
+ while (embedded < maxChunks) {
38277
+ const started = Date.now();
38278
+ const batch = await source.chunksToEmbed(key, {
38279
+ limit: Math.min(NOTE_BATCH, maxChunks - embedded),
38280
+ ...after === void 0 ? {} : { after }
38281
+ });
38282
+ if (batch.length === 0)
38283
+ break;
38284
+ const why = stopped(slowest);
38285
+ if (why)
38286
+ return stop(embedded, why);
38287
+ after = batch.at(-1)?.hash;
38288
+ const vectors = await embedder.embed(batch.map(({ text: text3 }) => text3), "passage");
38289
+ await store.vectors.saveVectors(key, model.dims, batch.map(({ hash: hash3 }, index) => ({ hash: hash3, vector: vectors[index] })));
38290
+ embedded += batch.length;
38291
+ slowest = Math.max(slowest, Date.now() - started);
38292
+ }
38293
+ const left = (await source.chunksToEmbed(key, { limit: 1, ...after === void 0 ? {} : { after } })).length > 0;
38294
+ return { model: model.id, embedded, left };
38295
+ });
38296
+ }, "embedChunks");
38285
38297
  var nearestNotes = /* @__PURE__ */ __name(async (store, query, options2) => {
38286
38298
  const { key, vector, floor } = await queryVector(store, query, options2);
38287
38299
  const nearest2 = await store.notes.nearest(key, vector, {
@@ -38647,7 +38659,31 @@ var searchNotesOf = /* @__PURE__ */ __name(async (store, account, text3, { accou
38647
38659
  };
38648
38660
  }, "searchNotesOf");
38649
38661
 
38650
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/events-search.js
38662
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/crm-meaning.js
38663
+ var embedCrmActivities = /* @__PURE__ */ __name(async (store, options2 = {}) => {
38664
+ localModel(options2.model, options2.env, options2.command);
38665
+ const until = stopsAt(options2.deadline);
38666
+ const refreshed = await store.crm.activityChunks.refresh({
38667
+ until: /* @__PURE__ */ __name(() => options2.signal?.aborted === true || Date.now() >= until, "until")
38668
+ });
38669
+ const embedded = await embedChunks(store, store.crm.activityChunks, options2);
38670
+ return refreshed.left ? { ...embedded, left: true } : embedded;
38671
+ }, "embedCrmActivities");
38672
+ var nearestCrmActivities = /* @__PURE__ */ __name(async (store, words3, { limit, accounts, kinds, viewers, env, command, embedders }) => {
38673
+ const { model, directory: directory2, key } = localModel(await meaningModel(store, env), env, command);
38674
+ if (!await store.crm.activityChunks.embedded(key, accounts))
38675
+ throw new CliError("not_found", `no CRM activity has vectors of ${model.id} yet, so only words were matched`);
38676
+ const [vector] = await withLocal(model, directory2, void 0, (embedder) => embedder.embed([words3], "query"), embedders);
38677
+ const floor = meaningFloor(key);
38678
+ return (await store.crm.activityChunks.nearest(key, vector, {
38679
+ limit,
38680
+ ...accounts === void 0 ? {} : { accounts },
38681
+ ...kinds === void 0 ? {} : { kinds },
38682
+ ...viewers === void 0 ? {} : { viewers }
38683
+ })).filter(({ score }) => score > floor);
38684
+ }, "nearestCrmActivities");
38685
+
38686
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/events-search.js
38651
38687
  var MAX_EVENTS_OFFSET = 1e3;
38652
38688
  var iso3 = /* @__PURE__ */ __name((at2) => at2 === null ? null : new Date(at2).toISOString(), "iso");
38653
38689
  var accountIdsOf = /* @__PURE__ */ __name(async (store, accounts) => {
@@ -38765,7 +38801,7 @@ var searchEvents = /* @__PURE__ */ __name(async (store, query, { limit = 20, off
38765
38801
  };
38766
38802
  }, "searchEvents");
38767
38803
 
38768
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/search-all-business.js
38804
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/search-all-business.js
38769
38805
  var OWN_BUSINESS = { provider: "business", account: INTERNAL_NOTES };
38770
38806
  var BUSINESS_WORDS_ONLY = "invoices, payments, orders, contracts, subscriptions, products and wallets are found by the words of their numbers and names only";
38771
38807
  var placeOf = /* @__PURE__ */ __name(({ source, imported }) => source ?? (imported === void 0 ? OWN_BUSINESS : { provider: imported, account: "" }), "placeOf");
@@ -38795,7 +38831,7 @@ var searchBusiness = /* @__PURE__ */ __name(async (store, { words: words3, anyWo
38795
38831
  };
38796
38832
  }, "searchBusiness");
38797
38833
 
38798
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/search-all-meetings.js
38834
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/search-all-meetings.js
38799
38835
  var MOST_HITS_PER_MEETING = 3;
38800
38836
  var PAGE_ROWS = 200;
38801
38837
  var MOST_PAGES2 = 25;
@@ -39023,7 +39059,7 @@ var titleItem = /* @__PURE__ */ __name((account, meeting, query) => ({
39023
39059
  foundBy: ["title"]
39024
39060
  }), "titleItem");
39025
39061
 
39026
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/search-harder.js
39062
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/search-harder.js
39027
39063
  var SECTION3 = "search_harder";
39028
39064
  var HARDER_MODELS = {
39029
39065
  anthropic: "claude-haiku-5-5",
@@ -39269,7 +39305,7 @@ var reorderHarder = /* @__PURE__ */ __name(async (question, hits, { laterPage, a
39269
39305
  };
39270
39306
  }, "reorderHarder");
39271
39307
 
39272
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/tracker-meaning.js
39308
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/tracker-meaning.js
39273
39309
  var nearestTracker = /* @__PURE__ */ __name(async (store, words3, { limit, accounts, env, command, embedders }) => {
39274
39310
  const { model, directory: directory2, key } = localModel(await meaningModel(store, env), env, command);
39275
39311
  if (!await store.tracker.embedded(key, accounts))
@@ -39279,7 +39315,7 @@ var nearestTracker = /* @__PURE__ */ __name(async (store, words3, { limit, accou
39279
39315
  return (await store.tracker.nearest(key, vector, { limit, accounts })).filter(({ score }) => score > floor);
39280
39316
  }, "nearestTracker");
39281
39317
 
39282
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/search-all.js
39318
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/search-all.js
39283
39319
  var RESOURCES_SEARCHED = [
39284
39320
  "messages",
39285
39321
  "mail",
@@ -39364,7 +39400,7 @@ var trackerTitle = /* @__PURE__ */ __name(({ kind: kind2, record: record2 }) =>
39364
39400
  const key = kind2 === "issue" ? record2.key : void 0;
39365
39401
  return key ? `${key} ${title}` : title;
39366
39402
  }, "trackerTitle");
39367
- var trackerMeaningWords = /* @__PURE__ */ __name((text3) => {
39403
+ var meaningWordsOf = /* @__PURE__ */ __name((text3) => {
39368
39404
  try {
39369
39405
  const { root } = parseLucene(text3, SEARCH_QUERY);
39370
39406
  const nodes = root.kind === "boolean" ? root.clauses.map(({ node }) => node) : [root];
@@ -39374,8 +39410,43 @@ var trackerMeaningWords = /* @__PURE__ */ __name((text3) => {
39374
39410
  } catch {
39375
39411
  return void 0;
39376
39412
  }
39377
- }, "trackerMeaningWords");
39413
+ }, "meaningWordsOf");
39378
39414
  var trackerExcerpt = /* @__PURE__ */ __name(({ kind: kind2, record: record2 }, query) => excerpt([trackerTitleOf(kind2, record2), trackerBodyOf(kind2, record2)].filter(Boolean).join("\n"), query), "trackerExcerpt");
39415
+ var oneHitPerItem = /* @__PURE__ */ __name((ordered, cosines, items) => {
39416
+ const kept3 = /* @__PURE__ */ new Map();
39417
+ for (const hit of ordered) {
39418
+ const key = items.get(hit.ref) ?? hit.ref;
39419
+ const held = kept3.get(key);
39420
+ if (!held) {
39421
+ kept3.set(key, hit);
39422
+ continue;
39423
+ }
39424
+ held.accounts = [...held.accounts ?? [held.account], hit.account];
39425
+ held.foundBy = ["words", "meaning"].filter((by) => [held, hit].some(({ foundBy }) => foundBy.includes(by)));
39426
+ const cosine = cosines.get(hit.ref);
39427
+ if (cosine !== void 0 && cosine > (cosines.get(held.ref) ?? Number.NEGATIVE_INFINITY))
39428
+ cosines.set(held.ref, cosine);
39429
+ }
39430
+ return [...kept3.values()];
39431
+ }, "oneHitPerItem");
39432
+ var fusedLane = /* @__PURE__ */ __name((byWords, byMeaning, discover, cosines) => {
39433
+ const fused2 = /* @__PURE__ */ new Map();
39434
+ byWords.forEach((item2, rank) => {
39435
+ fused2.set(item2.ref, { item: item2, score: 1 / (RRF_K + rank + 1) });
39436
+ });
39437
+ byMeaning.forEach(({ hit, score }, rank) => {
39438
+ cosines.set(hit.ref, score);
39439
+ const held = fused2.get(hit.ref);
39440
+ if (held && !held.item.foundBy.includes("meaning"))
39441
+ held.item.foundBy = [...held.item.foundBy, "meaning"];
39442
+ const vote = 1 / (RRF_K + rank + 1);
39443
+ if (held && discover)
39444
+ held.score = Math.max(held.score, vote);
39445
+ else
39446
+ fused2.set(hit.ref, { item: held?.item ?? hit, score: (held?.score ?? 0) + vote });
39447
+ });
39448
+ return [...fused2.values()].sort((a, b) => b.score - a.score).map(({ item: item2 }) => item2);
39449
+ }, "fusedLane");
39379
39450
  var crmAccounts = /* @__PURE__ */ __name(async (store) => (await store.accounts.accounts()).filter(({ provider }) => holdsKind(provider, "crm")), "crmAccounts");
39380
39451
  var searchAll = /* @__PURE__ */ __name(async (store, account, asked, messenger = {}, searchMessages = (query) => searchStore(store, account, query, messenger), meaning) => {
39381
39452
  if (!asked.text.trim())
@@ -39398,6 +39469,7 @@ var searchAll = /* @__PURE__ */ __name(async (store, account, asked, messenger =
39398
39469
  let notes;
39399
39470
  let events;
39400
39471
  let tracker;
39472
+ let crm;
39401
39473
  const by = {};
39402
39474
  let server;
39403
39475
  const discover = !request.exact && questionLookup(request.text) !== void 0;
@@ -39580,7 +39652,7 @@ var searchAll = /* @__PURE__ */ __name(async (store, account, asked, messenger =
39580
39652
  });
39581
39653
  hasMore ||= found.hasMore;
39582
39654
  const titled = /(?:^|[\s(+])title:/u.test(request.text);
39583
- lists.push(found.items.filter((deal) => !titled || deal.matched.includes("title")).map((deal) => ({
39655
+ const byWords = found.items.filter((deal) => !titled || deal.matched.includes("title")).map((deal) => ({
39584
39656
  kind: deal.kind,
39585
39657
  ref: deal.ref,
39586
39658
  provider: deal.account?.provider ?? "crm",
@@ -39590,7 +39662,56 @@ var searchAll = /* @__PURE__ */ __name(async (store, account, asked, messenger =
39590
39662
  text: deal.summary,
39591
39663
  foundBy: deal.matched.includes("title") ? ["title"] : ["words"],
39592
39664
  ...deal.corrections ? { match: "corrected", corrections: deal.corrections } : {}
39593
- })));
39665
+ }));
39666
+ const plain2 = titled ? void 0 : meaningWordsOf(discover ? questionText(request.text) : request.text);
39667
+ let near2;
39668
+ let meaningSkipped;
39669
+ if (request.crmActivities === false)
39670
+ meaningSkipped = "the profile may not read activities";
39671
+ else if (request.exact)
39672
+ meaningSkipped = "--exact searches words as written";
39673
+ else if (plain2 === void 0)
39674
+ meaningSkipped = "the query names a title, which meaning cannot follow";
39675
+ else
39676
+ try {
39677
+ near2 = await nearestCrmActivities(store, plain2, {
39678
+ limit: Math.min(depth, 500),
39679
+ accounts: chosen2,
39680
+ viewers,
39681
+ embedders,
39682
+ ...request.crmKinds === void 0 ? {} : { kinds: request.crmKinds },
39683
+ ...command === void 0 ? {} : { command },
39684
+ ...request.env === void 0 ? {} : { env: request.env }
39685
+ });
39686
+ } catch (error) {
39687
+ if (!(error instanceof CliError && error.code === "not_found"))
39688
+ throw error;
39689
+ meaningSkipped = error.message;
39690
+ }
39691
+ crm = {
39692
+ by: near2 === void 0 ? "words" : "words and meaning",
39693
+ ...meaningSkipped === void 0 ? {} : { meaningSkipped },
39694
+ ...near2 === void 0 && plain2 !== void 0 && !request.exact && request.crmActivities !== false ? { needsVectors: true } : {}
39695
+ };
39696
+ if (near2 === void 0)
39697
+ lists.push(byWords);
39698
+ else {
39699
+ const byMeaning = await Promise.all(near2.map(async ({ ref, kind: kind2, account: at2, subject, body, score }) => {
39700
+ const deal = await store.deals.get(ref);
39701
+ const hit = {
39702
+ kind: kind2,
39703
+ ref,
39704
+ provider: at2.provider,
39705
+ account: at2.account,
39706
+ title: deal.title,
39707
+ timestamp: deal.updatedAt,
39708
+ text: excerpt([subject, body].filter(Boolean).join("\n"), request.text),
39709
+ foundBy: ["meaning"]
39710
+ };
39711
+ return { hit, score };
39712
+ }));
39713
+ lists.push(fusedLane(byWords, byMeaning, discover, cosines));
39714
+ }
39594
39715
  if (request.crmFiles !== false) {
39595
39716
  const files = await store.crmFiles.find({
39596
39717
  words: words3,
@@ -39620,29 +39741,36 @@ var searchAll = /* @__PURE__ */ __name(async (store, account, asked, messenger =
39620
39741
  if (!read.length)
39621
39742
  continue;
39622
39743
  const { words: words3, anyWord } = titleWords2(request.text, "issues, projects and comments are found by the words and meaning of their title and text only");
39744
+ const deep = Math.min(depth * read.length, 500);
39623
39745
  const found = await store.tracker.find({
39624
39746
  words: words3,
39625
39747
  anyWord: anyWord || discover,
39626
39748
  ...request.exact ? { exact: true } : {},
39627
39749
  kinds: ["issue", "project", "comment"],
39628
- limit: Math.min(depth, 500),
39750
+ limit: deep,
39629
39751
  accounts: read
39630
39752
  });
39631
39753
  hasMore ||= found.hasMore;
39632
- const hitOf = /* @__PURE__ */ __name((at2, item2, text3, foundBy) => ({
39633
- kind: TRACKER_HIT_KINDS[item2.kind],
39634
- // Two sign-ins see the same issue under the same id, so the account keeps their hits apart.
39635
- ref: `tracker:${at2.provider}/${at2.account}/${item2.kind}/${item2.record.externalId}`,
39636
- provider: at2.provider,
39637
- account: at2.account,
39638
- ...item2.record.url ? { url: item2.record.url } : {},
39639
- title: trackerTitle(item2),
39640
- timestamp: new Date(item2.record.updatedAt ?? item2.syncedAt).toISOString(),
39641
- text: text3,
39642
- foundBy
39643
- }), "hitOf");
39754
+ const items = /* @__PURE__ */ new Map();
39755
+ const hitOf = /* @__PURE__ */ __name((at2, item2, text3, foundBy) => {
39756
+ const ref = `tracker:${at2.provider}/${at2.account}/${item2.kind}/${item2.record.externalId}`;
39757
+ if (hasGlobalItemIds(at2.provider))
39758
+ items.set(ref, JSON.stringify([at2.provider, item2.kind, item2.record.externalId]));
39759
+ return {
39760
+ kind: TRACKER_HIT_KINDS[item2.kind],
39761
+ // Two sign-ins see the same issue under the same id, so the account keeps their hits apart.
39762
+ ref,
39763
+ provider: at2.provider,
39764
+ account: at2.account,
39765
+ ...item2.record.url ? { url: item2.record.url } : {},
39766
+ title: trackerTitle(item2),
39767
+ timestamp: new Date(item2.record.updatedAt ?? item2.syncedAt).toISOString(),
39768
+ text: text3,
39769
+ foundBy
39770
+ };
39771
+ }, "hitOf");
39644
39772
  const byWords = found.items.map(({ account: at2, item: item2, excerpt: text3 }) => hitOf(at2, item2, text3, ["words"]));
39645
- const plain2 = trackerMeaningWords(discover ? questionText(request.text) : request.text);
39773
+ const plain2 = meaningWordsOf(discover ? questionText(request.text) : request.text);
39646
39774
  let near2;
39647
39775
  let meaningSkipped;
39648
39776
  if (request.exact)
@@ -39652,7 +39780,7 @@ var searchAll = /* @__PURE__ */ __name(async (store, account, asked, messenger =
39652
39780
  else
39653
39781
  try {
39654
39782
  near2 = await nearestTracker(store, plain2, {
39655
- limit: Math.min(depth, 500),
39783
+ limit: deep,
39656
39784
  accounts: read,
39657
39785
  embedders,
39658
39786
  ...command === void 0 ? {} : { command },
@@ -39668,25 +39796,13 @@ var searchAll = /* @__PURE__ */ __name(async (store, account, asked, messenger =
39668
39796
  ...meaningSkipped === void 0 ? {} : { meaningSkipped }
39669
39797
  };
39670
39798
  if (near2 === void 0)
39671
- lists.push(byWords);
39799
+ lists.push(oneHitPerItem(byWords, cosines, items));
39672
39800
  else {
39673
- const fused2 = /* @__PURE__ */ new Map();
39674
- byWords.forEach((item2, rank) => {
39675
- fused2.set(item2.ref, { item: item2, score: 1 / (RRF_K + rank + 1) });
39676
- });
39677
- near2.forEach(({ account: at2, item: item2, score }, rank) => {
39678
- const hit = hitOf(at2, item2, trackerExcerpt(item2, request.text), ["meaning"]);
39679
- cosines.set(hit.ref, score);
39680
- const held = fused2.get(hit.ref);
39681
- if (held)
39682
- held.item.foundBy = ["words", "meaning"];
39683
- const vote = 1 / (RRF_K + rank + 1);
39684
- if (held && discover)
39685
- held.score = Math.max(held.score, vote);
39686
- else
39687
- fused2.set(hit.ref, { item: held?.item ?? hit, score: (held?.score ?? 0) + vote });
39688
- });
39689
- lists.push([...fused2.values()].sort((a, b) => b.score - a.score).map(({ item: item2 }) => item2));
39801
+ const byMeaning = near2.map(({ account: at2, item: item2, score }) => ({
39802
+ hit: hitOf(at2, item2, trackerExcerpt(item2, request.text), ["meaning"]),
39803
+ score
39804
+ }));
39805
+ lists.push(oneHitPerItem(fusedLane(byWords, byMeaning, discover, cosines), cosines, items));
39690
39806
  }
39691
39807
  for (const { provider, account: account2 } of read)
39692
39808
  accounts.push({ resource, provider, account: account2 });
@@ -39771,6 +39887,7 @@ var searchAll = /* @__PURE__ */ __name(async (store, account, asked, messenger =
39771
39887
  ...notes === void 0 ? {} : { notes },
39772
39888
  ...events === void 0 ? {} : { events },
39773
39889
  ...tracker === void 0 ? {} : { tracker },
39890
+ ...crm === void 0 ? {} : { crm },
39774
39891
  ...by.messages === void 0 ? {} : { messages: by.messages },
39775
39892
  ...by.mail === void 0 ? {} : { mail: by.mail },
39776
39893
  ...server === void 0 ? {} : { server },
@@ -39836,7 +39953,7 @@ var insidePeriodFirst = /* @__PURE__ */ __name((ordered, period) => {
39836
39953
  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);
39837
39954
  }, "insidePeriodFirst");
39838
39955
 
39839
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/server-search.js
39956
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/server-search.js
39840
39957
  var SERVER_SEARCH_KEY = "messages.server-search";
39841
39958
  var SERVER_BOUNDS = { timeMs: 5e3, perCall: 100, maxCalls: 3, textBytes: 262144 };
39842
39959
  var DEFAULT_BACKEND = "both";
@@ -40035,7 +40152,7 @@ var searchServer = /* @__PURE__ */ __name(async (deps, request) => {
40035
40152
  return { report, sources };
40036
40153
  }, "searchServer");
40037
40154
 
40038
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/messages.js
40155
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/messages.js
40039
40156
  var DELETE_AT_ONCE = 10;
40040
40157
  var atOnce = /* @__PURE__ */ __name((ids2) => {
40041
40158
  if (ids2.length > DELETE_AT_ONCE)
@@ -40535,7 +40652,7 @@ var checkMediaOptions = /* @__PURE__ */ __name((messenger, asked, attachments) =
40535
40652
  throw new CliError("validation_error", `${MEDIA_FLAGS[first2]} needs a --photo or --file`);
40536
40653
  }, "checkMediaOptions");
40537
40654
 
40538
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/domain/channel-tags.js
40655
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/domain/channel-tags.js
40539
40656
  var CHANNEL_TAG_RULES_VERSION = "keywords-v1";
40540
40657
  var RULES2 = {
40541
40658
  ai: [/\b(ai|gpt|llm|machine learning|artificial intelligence)\b/iu, /нейросет|искусственн/iu],
@@ -40550,7 +40667,7 @@ var classifyChannel = /* @__PURE__ */ __name((metadata) => Object.entries(RULES2
40550
40667
  return fields2.length ? [{ tag, score: fields2.length / 3, fields: fields2 }] : [];
40551
40668
  }), "classifyChannel");
40552
40669
 
40553
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/metadata.js
40670
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/metadata.js
40554
40671
  var metadataService = /* @__PURE__ */ __name((deps) => {
40555
40672
  const held = /* @__PURE__ */ __name(async (reference, { includeLeft = false } = {}) => {
40556
40673
  const store = await deps.store();
@@ -40636,7 +40753,7 @@ var metadataService = /* @__PURE__ */ __name((deps) => {
40636
40753
  };
40637
40754
  }, "metadataService");
40638
40755
 
40639
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/moderation/run.js
40756
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/moderation/run.js
40640
40757
  var FIRST_LOOK_MS = 24 * 36e5;
40641
40758
  var moderateWith = /* @__PURE__ */ __name(async (run2) => {
40642
40759
  const { chatId, title, rules, point, since, dryRun } = run2;
@@ -40673,7 +40790,7 @@ var moderateWith = /* @__PURE__ */ __name(async (run2) => {
40673
40790
  return { chatId, rows, notes };
40674
40791
  }, "moderateWith");
40675
40792
 
40676
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/moderation.js
40793
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/moderation.js
40677
40794
  var moderationService = /* @__PURE__ */ __name((deps) => {
40678
40795
  const file = /* @__PURE__ */ __name(() => {
40679
40796
  const env = deps.env ?? process.env;
@@ -40758,7 +40875,7 @@ var moderatorOf = /* @__PURE__ */ __name((adapter, deps) => ({
40758
40875
  }, "removePerson")
40759
40876
  }), "moderatorOf");
40760
40877
 
40761
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/private-people.js
40878
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/private-people.js
40762
40879
  var noteItem = /* @__PURE__ */ __name((provider, note) => ({
40763
40880
  id: note.id,
40764
40881
  contact: formatReference({ type: "contact", provider, id: note.personId }),
@@ -40802,7 +40919,7 @@ var privatePeopleService = /* @__PURE__ */ __name((deps) => {
40802
40919
  };
40803
40920
  }, "privatePeopleService");
40804
40921
 
40805
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/rankings.js
40922
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/rankings.js
40806
40923
  var empty = /* @__PURE__ */ __name(() => ({
40807
40924
  total: 0,
40808
40925
  population: 0,
@@ -41058,7 +41175,7 @@ var rankingsService = /* @__PURE__ */ __name((deps) => ({
41058
41175
  }, "evidence")
41059
41176
  }), "rankingsService");
41060
41177
 
41061
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/reply-stats.js
41178
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/reply-stats.js
41062
41179
  var FIELDS2 = ["date", "chat", "kind", "muted"];
41063
41180
  var WAITING_TAIL = 100;
41064
41181
  var plainOnly = /* @__PURE__ */ __name((text3, command) => {
@@ -41192,7 +41309,7 @@ var replyStatsService = /* @__PURE__ */ __name((deps) => {
41192
41309
  };
41193
41310
  }, "replyStatsService");
41194
41311
 
41195
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/searches.js
41312
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/searches.js
41196
41313
  var savedSearchItem = /* @__PURE__ */ __name((one) => ({
41197
41314
  id: one.id,
41198
41315
  name: one.name,
@@ -41318,7 +41435,7 @@ var searchesService = /* @__PURE__ */ __name((deps) => {
41318
41435
  };
41319
41436
  }, "searchesService");
41320
41437
 
41321
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/tags.js
41438
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/tags.js
41322
41439
  var TAGGING_QUERY = {
41323
41440
  entity: "tagging",
41324
41441
  backend: "sql",
@@ -41402,7 +41519,7 @@ var tagsService = /* @__PURE__ */ __name((deps) => {
41402
41519
  };
41403
41520
  }, "tagsService");
41404
41521
 
41405
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/topics.js
41522
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/topics.js
41406
41523
  var actionOf = /* @__PURE__ */ __name(({ title, closed, pinned, hidden, icon }) => {
41407
41524
  const set2 = [closed, pinned, hidden].filter((one) => one !== void 0).length;
41408
41525
  if (title !== void 0 || icon !== void 0 || set2 !== 1)
@@ -41601,7 +41718,7 @@ var topicsService = /* @__PURE__ */ __name((deps) => {
41601
41718
  };
41602
41719
  }, "topicsService");
41603
41720
 
41604
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/evidence.js
41721
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/evidence.js
41605
41722
  import { createHash as createHash11, randomUUID as randomUUID6 } from "node:crypto";
41606
41723
  var hash2 = /* @__PURE__ */ __name((value) => createHash11("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
41607
41724
  var positive2 = /* @__PURE__ */ __name((value, name, minimum = 1) => {
@@ -41675,7 +41792,7 @@ var prepareEvidencePacket = /* @__PURE__ */ __name(({ kind: kind2, source, page,
41675
41792
  return { ...content, id: randomUUID6(), fingerprint: hash2(content) };
41676
41793
  }, "prepareEvidencePacket");
41677
41794
 
41678
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/evidence-read.js
41795
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/evidence-read.js
41679
41796
  var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, limit, before }, messenger = {}) => {
41680
41797
  if (!Number.isSafeInteger(limit) || limit < 1 || limit > 100)
41681
41798
  throw new CliError("validation_error", "evidence message limit must be an integer from 1 to 100");
@@ -41695,7 +41812,7 @@ var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, l
41695
41812
  return { ...packet, nextBeforeId: older && last ? last.id : null };
41696
41813
  }, "readEvidencePacket");
41697
41814
 
41698
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/meeting-project-discovery.js
41815
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/meeting-project-discovery.js
41699
41816
  var scopeKeys = [
41700
41817
  "accountId",
41701
41818
  "meetingId",
@@ -41717,7 +41834,7 @@ var optionKeys = /* @__PURE__ */ new Set([
41717
41834
  "maxVocabularyReadBytes"
41718
41835
  ]);
41719
41836
 
41720
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/text-model-choice.js
41837
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/text-model-choice.js
41721
41838
  import { createHash as createHash12 } from "node:crypto";
41722
41839
  import { existsSync as existsSync2 } from "node:fs";
41723
41840
  var useTextModel = /* @__PURE__ */ __name(async (id3, { env, command }) => {
@@ -41848,14 +41965,14 @@ var addCustomTextModel = /* @__PURE__ */ __name(async (id3, payload, { env, fetc
41848
41965
  return { ...checked2.output, custom: true };
41849
41966
  }, "addCustomTextModel");
41850
41967
 
41851
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/calendar/sync.js
41968
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/calendar/sync.js
41852
41969
  var DAY8 = 864e5;
41853
41970
  var SLOTS_EVERY = 7 * DAY8;
41854
41971
 
41855
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/calendar/feeds.js
41972
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/calendar/feeds.js
41856
41973
  var FEED_LIMITS = { maxBytes: 10 * 1024 * 1024, timeoutMs: 3e4, redirects: 5 };
41857
41974
 
41858
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/calendar/reads.js
41975
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/calendar/reads.js
41859
41976
  var LIST = "events list";
41860
41977
  var EVENT_TYPES = [
41861
41978
  "default",
@@ -41914,7 +42031,7 @@ var EVENTS_QUERY = {
41914
42031
  } : field)
41915
42032
  };
41916
42033
 
41917
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/calendar/writer.js
42034
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/calendar/writer.js
41918
42035
  var EVENTS_NOTIFY_KEY = "events.notify";
41919
42036
  var EVENTS_DELETE_SERIES_KEY = "events.delete.series";
41920
42037
  var EVENTS_REMIND_HOOK_KEY = "events.remind.hook";
@@ -41932,7 +42049,7 @@ var CALENDAR_WRITE_DEFAULTS = {
41932
42049
  [EVENTS_REMIND_HOOK_KEY]: "deny"
41933
42050
  };
41934
42051
 
41935
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/context/communication-selection.js
42052
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/context/communication-selection.js
41936
42053
  var communicationFields = {
41937
42054
  sources: pipe(array(strictObject({
41938
42055
  id: pipe(string(), regex(/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/)),
@@ -41964,7 +42081,7 @@ var communicationRequest = /* @__PURE__ */ __name((value, preparationAfter) => {
41964
42081
  return { ...input, after, before };
41965
42082
  }, "communicationRequest");
41966
42083
 
41967
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/meeting-preparation-validation.js
42084
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/meeting-preparation-validation.js
41968
42085
  var MEETING_PREPARATION_LIMITS = {
41969
42086
  meetings: { min: 1, max: 20, default: 5 },
41970
42087
  cues: { min: 1, max: 100, default: 10 },
@@ -42037,7 +42154,7 @@ var validateMeetingPreparationRequest = /* @__PURE__ */ __name((externalId, orig
42037
42154
  };
42038
42155
  }, "validateMeetingPreparationRequest");
42039
42156
 
42040
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/meeting-communications-selection.js
42157
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/meeting-communications-selection.js
42041
42158
  var validatePreparationCommunications = /* @__PURE__ */ __name((section, request, after) => {
42042
42159
  const fail2 = /* @__PURE__ */ __name(() => {
42043
42160
  throw new CliError("invalid_response", "Preparation communications returned another selection or invalid evidence");
@@ -42085,7 +42202,7 @@ var validatePreparationCommunications = /* @__PURE__ */ __name((section, request
42085
42202
  }
42086
42203
  }, "validatePreparationCommunications");
42087
42204
 
42088
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/package-upgrade.js
42205
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/package-upgrade.js
42089
42206
  var upgradePackage = /* @__PURE__ */ __name(async ({ current, command, packageName, check: check2 }, ports) => {
42090
42207
  const installer = ports.installer();
42091
42208
  const argv = updateCommand(installer, packageName);
@@ -42150,7 +42267,7 @@ var dayAfter = /* @__PURE__ */ __name((published) => {
42150
42267
  return Number.isNaN(time2) ? null : new Date(time2 + 24 * 60 * 60 * 1e3).toISOString();
42151
42268
  }, "dayAfter");
42152
42269
 
42153
- // node_modules/.pnpm/@wirecat+cli-core@0.734.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_2c8b9986a0059051c16d1a97d78c2d87/node_modules/@wirecat/cli-core/dist/services/index.js
42270
+ // node_modules/.pnpm/@wirecat+cli-core@0.748.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_80da9f03871bc395375181cc05991961/node_modules/@wirecat/cli-core/dist/services/index.js
42154
42271
  var servicesFor = /* @__PURE__ */ __name((deps) => {
42155
42272
  const pictures = picturesService(deps);
42156
42273
  const base = {
@@ -42255,8 +42372,10 @@ export {
42255
42372
  fetchInto,
42256
42373
  GAP_BOUNDS,
42257
42374
  typesText,
42375
+ realPathOf,
42258
42376
  refuseLockedOutput,
42259
42377
  refusedPlace,
42378
+ inside,
42260
42379
  readUpload,
42261
42380
  readAttachments,
42262
42381
  readStickerFile,
@@ -42378,6 +42497,7 @@ export {
42378
42497
  keyVariable,
42379
42498
  enrichmentState,
42380
42499
  searchNotesOf,
42500
+ embedCrmActivities,
42381
42501
  HARDER_MODELS,
42382
42502
  HARDER_CANDIDATES,
42383
42503
  HARDER_CHARS,