@wirecat/hubspot-cli 0.3.2 → 0.5.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 (152) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/README.md +6 -5
  3. package/dist/bin/hubspot.js +2 -2
  4. package/dist/bundle/agent-RBQMA24N.js +40 -0
  5. package/dist/bundle/{all-profiles-6452VSJB.js → all-profiles-PGFXLOKN.js} +11 -11
  6. package/dist/bundle/{anthropic-VQUOVYOW.js → anthropic-LPOJ3TYF.js} +5 -5
  7. package/dist/bundle/{app-server-EQZUP4H4.js → app-server-EYWGCSRY.js} +68 -68
  8. package/dist/bundle/{bun-AJPJ4ZUN.js → bun-ZJOOKIIW.js} +2 -2
  9. package/dist/bundle/{bun-sqlite-AGXGSF6D.js → bun-sqlite-Y6KKH2OW.js} +6 -6
  10. package/dist/bundle/{chunk-2A64XS22.js → chunk-23CLSKY7.js} +3 -3
  11. package/dist/bundle/{chunk-GZZR5U3K.js → chunk-34HDRZIL.js} +14 -14
  12. package/dist/bundle/{chunk-NZGI74GS.js → chunk-3CHJYWA2.js} +6 -6
  13. package/dist/bundle/{chunk-PMP37KLR.js → chunk-4RZ4DUQT.js} +3 -3
  14. package/dist/bundle/{chunk-LT5KE44Q.js → chunk-5ENY4POG.js} +61 -61
  15. package/dist/bundle/{chunk-QBEDVMLZ.js → chunk-5HGS65I3.js} +2 -2
  16. package/dist/bundle/{chunk-KVXEEKBB.js → chunk-5UPNDUAA.js} +2 -2
  17. package/dist/bundle/{chunk-YIF5M5R6.js → chunk-5WADRBQG.js} +3 -3
  18. package/dist/bundle/{chunk-KO4VR5NK.js → chunk-6PWRJGX4.js} +4 -4
  19. package/dist/bundle/{chunk-TKK3ECDS.js → chunk-6S422S22.js} +7 -7
  20. package/dist/bundle/{chunk-5AYKCKSE.js → chunk-7Q64D56R.js} +11 -11
  21. package/dist/bundle/{chunk-PHXOL5HZ.js → chunk-7RIE3DAW.js} +174 -161
  22. package/dist/bundle/{chunk-RVWGFD32.js → chunk-A5UTNGI4.js} +13 -13
  23. package/dist/bundle/{chunk-NTQBS2JL.js → chunk-ABPZOI3C.js} +4 -4
  24. package/dist/bundle/{chunk-L433IDOX.js → chunk-AHZQMSXW.js} +10 -10
  25. package/dist/bundle/{chunk-X5S5KUSU.js → chunk-AIQT2GGK.js} +19 -19
  26. package/dist/bundle/{chunk-3R4KRNUZ.js → chunk-AVBKXCEY.js} +8 -8
  27. package/dist/bundle/{chunk-TIHDBKA7.js → chunk-BCW7DAVV.js} +2 -2
  28. package/dist/bundle/{chunk-7UEL65GQ.js → chunk-BGUGTMTS.js} +8 -8
  29. package/dist/bundle/{chunk-BN22EKQQ.js → chunk-BH5FEFZB.js} +2 -2
  30. package/dist/bundle/{chunk-DJ2GJ77D.js → chunk-BVK4GUUI.js} +1352 -838
  31. package/dist/bundle/{chunk-3TEFE6YU.js → chunk-BW7NPFVC.js} +18 -8
  32. package/dist/bundle/{chunk-WRCKE5ND.js → chunk-CWCJEAHZ.js} +3 -3
  33. package/dist/bundle/{chunk-DW23LM47.js → chunk-DDMBPYHP.js} +2 -2
  34. package/dist/bundle/{chunk-WGBVRDY3.js → chunk-DEUCWBBH.js} +103 -5
  35. package/dist/bundle/{chunk-SEELWPRD.js → chunk-DJUUQG6Y.js} +8 -8
  36. package/dist/bundle/{chunk-VW5F6FK3.js → chunk-EGR3YUWD.js} +4 -4
  37. package/dist/bundle/{chunk-M763RNWP.js → chunk-EPBHJMF6.js} +20 -14
  38. package/dist/bundle/{chunk-7NZT7Y55.js → chunk-GZJP3KQQ.js} +3 -4
  39. package/dist/bundle/{chunk-BHZUPOQY.js → chunk-HBFSGL5E.js} +26 -26
  40. package/dist/bundle/{chunk-O3VM5PTJ.js → chunk-HPRGUUHY.js} +1 -1
  41. package/dist/bundle/{chunk-DSRXCLPO.js → chunk-HPSESLOZ.js} +1 -1
  42. package/dist/bundle/{chunk-Q27QAB4X.js → chunk-I334AT2H.js} +7 -7
  43. package/dist/bundle/{chunk-BAUK2MD5.js → chunk-K3WCBNH4.js} +43 -64
  44. package/dist/bundle/{chunk-JK2SNLU5.js → chunk-K5S7MKBB.js} +17 -17
  45. package/dist/bundle/{chunk-J5P5VSRG.js → chunk-KAW5VEER.js} +21 -8
  46. package/dist/bundle/{chunk-NNMU2TDU.js → chunk-KC4ILAKO.js} +1 -1
  47. package/dist/bundle/{chunk-K4X5ZHI2.js → chunk-KRTXJMCD.js} +16 -16
  48. package/dist/bundle/{chunk-DQB5JMTY.js → chunk-KXWRVLSU.js} +1 -1
  49. package/dist/bundle/{chunk-VQEAZXTV.js → chunk-L4SVHQ7H.js} +7 -7
  50. package/dist/bundle/{chunk-ARTJLL7W.js → chunk-L6WSFVTD.js} +8 -8
  51. package/dist/bundle/{chunk-OJIJVOOA.js → chunk-LWS5AO3H.js} +17 -17
  52. package/dist/bundle/{chunk-E4X7JAFC.js → chunk-LXLXF2OE.js} +3 -3
  53. package/dist/bundle/{chunk-ODPU3II6.js → chunk-MENMD5Y5.js} +8 -8
  54. package/dist/bundle/{chunk-5ZV7REBE.js → chunk-MFWECOO3.js} +82 -64
  55. package/dist/bundle/{chunk-HPZRUY6S.js → chunk-MGMLSPIY.js} +1 -1
  56. package/dist/bundle/{chunk-B3EH22CO.js → chunk-MKBQFD37.js} +1 -1
  57. package/dist/bundle/{chunk-E4FAMU2S.js → chunk-MPNMEWHA.js} +417 -320
  58. package/dist/bundle/{chunk-2HYGCLKN.js → chunk-MPQ4SPZG.js} +93 -40
  59. package/dist/bundle/{chunk-ITGNDZRR.js → chunk-MW4ROXQ6.js} +3 -3
  60. package/dist/bundle/{chunk-JP2HJXFO.js → chunk-NEDV6RCQ.js} +10 -3
  61. package/dist/bundle/{chunk-PLRUUXK7.js → chunk-NEP67GLY.js} +6 -6
  62. package/dist/bundle/{chunk-6MFP47XC.js → chunk-NKIKMG33.js} +35 -35
  63. package/dist/bundle/{chunk-GC6FLHZF.js → chunk-NLPGUYCG.js} +12 -12
  64. package/dist/bundle/{chunk-AF7DANIR.js → chunk-OCISQFMW.js} +1 -1
  65. package/dist/bundle/{chunk-AVUMH42T.js → chunk-ODRF47VS.js} +8 -8
  66. package/dist/bundle/{chunk-EE4JSYGZ.js → chunk-OFOA6VJ2.js} +3 -3
  67. package/dist/bundle/{chunk-BUGROVF3.js → chunk-PMGAU6AP.js} +2 -2
  68. package/dist/bundle/{chunk-IQ2XZ62J.js → chunk-POTS24SH.js} +18 -18
  69. package/dist/bundle/{chunk-B2W3C4N6.js → chunk-PPQRWFJZ.js} +5 -5
  70. package/dist/bundle/{chunk-GRFICQTZ.js → chunk-QCHW7R7L.js} +1 -1
  71. package/dist/bundle/{chunk-5K3FGXZH.js → chunk-QDNYJOWJ.js} +1 -1
  72. package/dist/bundle/{chunk-WCQW4GYO.js → chunk-QIHJKE4K.js} +24 -8
  73. package/dist/bundle/{chunk-7LQRXVQ3.js → chunk-QLFD3MOL.js} +1002 -560
  74. package/dist/bundle/{chunk-7VHBS5BJ.js → chunk-QPTHEZZ5.js} +2 -2
  75. package/dist/bundle/{chunk-IXZLMFPO.js → chunk-R7ZOCDNG.js} +1 -1
  76. package/dist/bundle/{chunk-FIVD4HM4.js → chunk-RJBKDZGV.js} +8 -8
  77. package/dist/bundle/{chunk-4DNHXRCJ.js → chunk-RZS7N3OZ.js} +7 -7
  78. package/dist/bundle/{chunk-A6UFH3QU.js → chunk-SBNZYRVZ.js} +4 -4
  79. package/dist/bundle/{chunk-EMOVVERN.js → chunk-STTHRJBX.js} +5 -5
  80. package/dist/bundle/{chunk-2NCO4E4T.js → chunk-V5VMAHDQ.js} +6 -6
  81. package/dist/bundle/{chunk-LA3YU4K7.js → chunk-VCYUYFIV.js} +1 -1
  82. package/dist/bundle/{chunk-3I2FGNWO.js → chunk-VIJV474N.js} +1 -1
  83. package/dist/bundle/{chunk-ABXVU5O4.js → chunk-WDR77HPO.js} +22 -1
  84. package/dist/bundle/{chunk-3PEKYGZ3.js → chunk-WEM4FZPM.js} +2 -2
  85. package/dist/bundle/{chunk-5PPG73G6.js → chunk-WQZENAPE.js} +3 -3
  86. package/dist/bundle/{chunk-5YNAVVCW.js → chunk-WXEN6AXQ.js} +16 -3
  87. package/dist/bundle/{chunk-IBTMK5KD.js → chunk-YJLJZMEA.js} +25 -25
  88. package/dist/bundle/{chunk-2PRVWEJC.js → chunk-YQBGPBYN.js} +2 -2
  89. package/dist/bundle/{chunk-3DIXAEGH.js → chunk-YZ5MULJM.js} +3 -3
  90. package/dist/bundle/{chunk-JUKAIXKY.js → chunk-Z7FC6VVM.js} +1 -1
  91. package/dist/bundle/{chunk-LKSNISYV.js → chunk-ZKPM53YG.js} +4 -4
  92. package/dist/bundle/{chunk-U6XA3OOM.js → chunk-ZLWQPUPB.js} +2 -2
  93. package/dist/bundle/{chunk-CBCEMFCF.js → chunk-ZMHD76RE.js} +2 -2
  94. package/dist/bundle/command-contract-O2UKYHLD.js +40 -0
  95. package/dist/bundle/{command-server-entry-GJSMDSNE.js → command-server-entry-B7S5AUE6.js} +28 -28
  96. package/dist/bundle/{decode-6PLXHVHW.js → decode-7L33C5UJ.js} +5 -5
  97. package/dist/bundle/{dispatch-TAQ7635E.js → dispatch-BIGHHSXV.js} +8 -8
  98. package/dist/bundle/{echarts-UZ7QLRE2.js → echarts-CWR3QH55.js} +2 -2
  99. package/dist/bundle/{embed-AWLL4EBF.js → embed-GXQ3HOQ6.js} +6 -6
  100. package/dist/bundle/{embedder-MM225YJ6.js → embedder-47OYXGLS.js} +9 -9
  101. package/dist/bundle/{failure-MR2XVHFP.js → failure-VMZOU5GZ.js} +2 -2
  102. package/dist/bundle/{first-run-KCZVNFJ7.js → first-run-YVQQOUQG.js} +12 -12
  103. package/dist/bundle/first-screen-TU3KE2B5.js +40 -0
  104. package/dist/bundle/hubspot.js +27 -25
  105. package/dist/bundle/{instructions-ZJ7U3QUE.js → instructions-QFS2MPK3.js} +1 -1
  106. package/dist/bundle/{mcp-CNV7F2XZ.js → mcp-Z2KZNCXB.js} +2 -2
  107. package/dist/bundle/meeting-combined-WBEOLQMP.js +25 -0
  108. package/dist/bundle/{meeting-model-OYXB2NOE.js → meeting-model-GLF2HVJG.js} +11 -11
  109. package/dist/bundle/{meeting-semantic-S3DBB7XD.js → meeting-semantic-RG56F4YX.js} +6 -6
  110. package/dist/bundle/{node-HGCZGZ4R.js → node-3TSWTXGI.js} +2 -2
  111. package/dist/bundle/{node-sqlite-RKYSRKEB.js → node-sqlite-UPQCG7DJ.js} +7 -7
  112. package/dist/bundle/{oauth-PYDCAQ7Y.js → oauth-MCVEENW3.js} +7 -7
  113. package/dist/bundle/{open-UCDSQUN2.js → open-JMUTKUYJ.js} +5 -5
  114. package/dist/bundle/{openai-Y4F5ZC7O.js → openai-HT7YDOK7.js} +15 -15
  115. package/dist/bundle/{process-P7FB7YO7.js → process-7RC6DAGM.js} +1 -1
  116. package/dist/bundle/{program-VKYZXANH.js → program-3DLBMOEJ.js} +174 -120
  117. package/dist/bundle/{prompt-E5TKZ37Q.js → prompt-7EROPXPF.js} +5 -5
  118. package/dist/bundle/{recognize-5NYPTSLT.js → recognize-B232GXD2.js} +4 -4
  119. package/dist/bundle/{remote-U4LUAHF2.js → remote-HGV64VRC.js} +9 -9
  120. package/dist/bundle/{rerank-AJAVKK5L.js → rerank-5S6TDXHD.js} +7 -7
  121. package/dist/bundle/{schemas-QLQ2K6DL.js → schemas-SB42IXEX.js} +1 -1
  122. package/dist/bundle/{serve-4UJ3R5IP.js → serve-D2WFCV6Z.js} +9 -9
  123. package/dist/bundle/{server-DUKWJUKD.js → server-4AXPTJPV.js} +60 -60
  124. package/dist/bundle/server-FFHVNABP.js +86 -0
  125. package/dist/bundle/{source-LJG4BWRU.js → source-DF63EC2B.js} +114 -86
  126. package/dist/bundle/{sqlite-runtime-KLEA4XAU.js → sqlite-runtime-DAFMZNLI.js} +6 -6
  127. package/dist/bundle/{state-COGSYMVH.js → state-7OEBDXVV.js} +6 -6
  128. package/dist/bundle/{store-BJXCSP26.js → store-2ZWSWF76.js} +24 -24
  129. package/dist/bundle/{store-V5UMSWK4.js → store-KC6US326.js} +26 -22
  130. package/dist/bundle/store-Q3ZKD4FJ.js +34 -0
  131. package/dist/bundle/store-maintenance-command-24A4GBRP.js +73 -0
  132. package/dist/bundle/surface-SPTM57EP.js +72 -0
  133. package/dist/bundle/writer-EQQ55HOS.js +86 -0
  134. package/dist/config.d.ts +1 -0
  135. package/dist/config.d.ts.map +1 -1
  136. package/dist/config.js +59 -10
  137. package/dist/config.js.map +1 -1
  138. package/dist/version.d.ts +1 -1
  139. package/dist/version.js +1 -1
  140. package/package.json +4 -4
  141. package/skills/hubspot-cli/references/api/api-basic.md +34 -6
  142. package/skills/hubspot-cli/references/api/api-batch.md +19 -9
  143. package/skills/hubspot-cli/references/api/api-search.md +9 -0
  144. package/dist/bundle/agent-A7ARC3QB.js +0 -40
  145. package/dist/bundle/command-contract-R2FGN7CQ.js +0 -40
  146. package/dist/bundle/first-screen-SCDV7TXT.js +0 -40
  147. package/dist/bundle/meeting-combined-EL5XZIJ5.js +0 -25
  148. package/dist/bundle/server-UQVV2PPX.js +0 -86
  149. package/dist/bundle/store-7DQGZH64.js +0 -32
  150. package/dist/bundle/store-maintenance-command-DQUBBWMD.js +0 -73
  151. package/dist/bundle/surface-IGBQUYE5.js +0 -72
  152. package/dist/bundle/writer-QOEJONAD.js +0 -86
@@ -8,21 +8,21 @@ import {
8
8
  sameOrdinaryFile,
9
9
  syncDirectory,
10
10
  writeFileAtomic
11
- } from "./chunk-RVWGFD32.js";
11
+ } from "./chunk-A5UTNGI4.js";
12
12
  import {
13
13
  WIRECAT_TOOLS
14
- } from "./chunk-ABXVU5O4.js";
14
+ } from "./chunk-WDR77HPO.js";
15
15
  import {
16
16
  isNewer,
17
17
  updateCommand
18
- } from "./chunk-PMP37KLR.js";
18
+ } from "./chunk-4RZ4DUQT.js";
19
19
  import {
20
20
  LIST_QUERY_GUIDE,
21
21
  capability,
22
22
  dateWindow,
23
23
  momentOf,
24
24
  timeBounds
25
- } from "./chunk-M763RNWP.js";
25
+ } from "./chunk-EPBHJMF6.js";
26
26
  import {
27
27
  EmptyAnswer,
28
28
  MAX_MODEL_IMAGE_BYTES,
@@ -31,7 +31,7 @@ import {
31
31
  range,
32
32
  systemFor,
33
33
  validateImages
34
- } from "./chunk-2A64XS22.js";
34
+ } from "./chunk-23CLSKY7.js";
35
35
  import {
36
36
  anyOfTerms,
37
37
  isFunctionWord,
@@ -42,7 +42,7 @@ import {
42
42
  questionText,
43
43
  resolveMeetingSelection,
44
44
  words
45
- } from "./chunk-5AYKCKSE.js";
45
+ } from "./chunk-7Q64D56R.js";
46
46
  import {
47
47
  DEFAULT_IMAGE_MODEL,
48
48
  LINK,
@@ -70,7 +70,7 @@ import {
70
70
  sentIds,
71
71
  tagging,
72
72
  task
73
- } from "./chunk-PHXOL5HZ.js";
73
+ } from "./chunk-7RIE3DAW.js";
74
74
  import {
75
75
  CustomTextModelShape,
76
76
  DEFAULT_RERANK_MODEL,
@@ -84,7 +84,7 @@ import {
84
84
  textModels,
85
85
  vectorModelKey,
86
86
  writeTextModelsSection
87
- } from "./chunk-ARTJLL7W.js";
87
+ } from "./chunk-L6WSFVTD.js";
88
88
  import {
89
89
  AGENDA_COLUMNS,
90
90
  BUSINESS_FIND_MAX,
@@ -138,17 +138,17 @@ import {
138
138
  seenBy,
139
139
  threadConversation,
140
140
  withoutField
141
- } from "./chunk-7LQRXVQ3.js";
141
+ } from "./chunk-QLFD3MOL.js";
142
142
  import {
143
143
  DEFAULT_STEMMERS,
144
144
  createStemmer,
145
145
  cutsDeep
146
- } from "./chunk-7UEL65GQ.js";
146
+ } from "./chunk-BGUGTMTS.js";
147
147
  import {
148
148
  MINUTE,
149
149
  YEAR,
150
150
  aheadOf
151
- } from "./chunk-WRCKE5ND.js";
151
+ } from "./chunk-CWCJEAHZ.js";
152
152
  import {
153
153
  FIELD_VERSION,
154
154
  RRF_K,
@@ -157,7 +157,7 @@ import {
157
157
  plainQuery,
158
158
  validateAst,
159
159
  validateFields
160
- } from "./chunk-Q27QAB4X.js";
160
+ } from "./chunk-I334AT2H.js";
161
161
  import {
162
162
  LOG_ATTRIBUTES,
163
163
  TASK_KINDS,
@@ -180,30 +180,23 @@ import {
180
180
  sourceOf3 as sourceOf2,
181
181
  typedCommand,
182
182
  withAttempt
183
- } from "./chunk-IBTMK5KD.js";
183
+ } from "./chunk-YJLJZMEA.js";
184
184
  import {
185
185
  isCliFailure,
186
186
  sqliteCode
187
- } from "./chunk-DW23LM47.js";
187
+ } from "./chunk-DDMBPYHP.js";
188
188
  import {
189
189
  localOnly,
190
190
  refuseOffComputer,
191
191
  remoteKey
192
- } from "./chunk-L433IDOX.js";
192
+ } from "./chunk-AHZQMSXW.js";
193
193
  import {
194
194
  PLAIN_HTTP_REFUSED,
195
195
  endpoint,
196
196
  endpointFetch,
197
197
  modelAddressAllowed,
198
198
  onThisComputer
199
- } from "./chunk-WCQW4GYO.js";
200
- import {
201
- DEFAULT_TASK_CATEGORIES,
202
- FALLBACK_CATEGORY,
203
- readSharedSection,
204
- sharedConfigPath,
205
- writeSharedSection
206
- } from "./chunk-4DNHXRCJ.js";
199
+ } from "./chunk-QIHJKE4K.js";
207
200
  import {
208
201
  Unzip,
209
202
  UnzipInflate,
@@ -214,11 +207,11 @@ import {
214
207
  placedText,
215
208
  runEmbedders,
216
209
  textModelsDirectory
217
- } from "./chunk-BAUK2MD5.js";
210
+ } from "./chunk-K3WCBNH4.js";
218
211
  import {
219
212
  installFiles,
220
213
  megabytes
221
- } from "./chunk-KO4VR5NK.js";
214
+ } from "./chunk-6PWRJGX4.js";
222
215
  import {
223
216
  MAX_ACTIONS,
224
217
  ModerationRules,
@@ -232,7 +225,7 @@ import {
232
225
  someUndone,
233
226
  validateFormattedText,
234
227
  visibleFormattedText
235
- } from "./chunk-SEELWPRD.js";
228
+ } from "./chunk-DJUUQG6Y.js";
236
229
  import {
237
230
  CEILING_KEY,
238
231
  DEFAULT_PERMISSIONS,
@@ -241,7 +234,7 @@ import {
241
234
  levelFor,
242
235
  skipFlagFor,
243
236
  stops
244
- } from "./chunk-3TEFE6YU.js";
237
+ } from "./chunk-BW7NPFVC.js";
245
238
  import {
246
239
  COUNTER_FIELDS,
247
240
  RANKING_TOKENIZER_VERSION,
@@ -260,7 +253,7 @@ import {
260
253
  pickPerson,
261
254
  rankingOptions,
262
255
  rankingQuestion
263
- } from "./chunk-IQ2XZ62J.js";
256
+ } from "./chunk-POTS24SH.js";
264
257
  import {
265
258
  MESSAGE_PARSING,
266
259
  QUERY_LIMITS,
@@ -270,11 +263,11 @@ import {
270
263
  isQueryLimit,
271
264
  outOfTime,
272
265
  searchError
273
- } from "./chunk-JP2HJXFO.js";
266
+ } from "./chunk-NEDV6RCQ.js";
274
267
  import {
275
268
  fold,
276
269
  normalize
277
- } from "./chunk-DQB5JMTY.js";
270
+ } from "./chunk-KXWRVLSU.js";
278
271
  import {
279
272
  CRM_KINDS,
280
273
  DEAL_KINDS,
@@ -300,10 +293,10 @@ import {
300
293
  parseLocator,
301
294
  parseReference,
302
295
  providerNamed
303
- } from "./chunk-GC6FLHZF.js";
296
+ } from "./chunk-NLPGUYCG.js";
304
297
  import {
305
298
  normalizeTag
306
- } from "./chunk-CBCEMFCF.js";
299
+ } from "./chunk-ZMHD76RE.js";
307
300
  import {
308
301
  OPERATORS_BY_TYPE,
309
302
  READ_BUDGET_EXCEEDED,
@@ -327,11 +320,18 @@ import {
327
320
  validateQuery,
328
321
  walkQuery,
329
322
  windowOf
330
- } from "./chunk-LT5KE44Q.js";
323
+ } from "./chunk-5ENY4POG.js";
324
+ import {
325
+ DEFAULT_TASK_CATEGORIES,
326
+ FALLBACK_CATEGORY,
327
+ readSharedSection,
328
+ sharedConfigPath,
329
+ writeSharedSection
330
+ } from "./chunk-RZS7N3OZ.js";
331
331
  import {
332
332
  storePath,
333
333
  wirecatDirectory
334
- } from "./chunk-3PEKYGZ3.js";
334
+ } from "./chunk-WEM4FZPM.js";
335
335
  import {
336
336
  Credentials,
337
337
  backoffMs,
@@ -340,7 +340,7 @@ import {
340
340
  realSleep,
341
341
  resolvePaths,
342
342
  writeSecurely
343
- } from "./chunk-X5S5KUSU.js";
343
+ } from "./chunk-AIQT2GGK.js";
344
344
  import {
345
345
  array,
346
346
  boolean,
@@ -349,6 +349,7 @@ import {
349
349
  getDotPath,
350
350
  integer,
351
351
  isoTimestamp,
352
+ literal,
352
353
  maxLength,
353
354
  maxValue,
354
355
  minLength,
@@ -378,7 +379,7 @@ import {
378
379
  CliError,
379
380
  isCliError,
380
381
  singleLine
381
- } from "./chunk-BUGROVF3.js";
382
+ } from "./chunk-PMGAU6AP.js";
382
383
  import {
383
384
  __commonJS,
384
385
  __export,
@@ -16995,10 +16996,10 @@ var require_lib3 = __commonJS({
16995
16996
  }
16996
16997
  });
16997
16998
 
16998
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/ports/traits.js
16999
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/ports/traits.js
16999
17000
  var syncsOneChat = /* @__PURE__ */ __name((messenger) => messenger.history !== "store" || messenger.historyOnDemand === true, "syncsOneChat");
17000
17001
 
17001
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/conversations/link.js
17002
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/conversations/link.js
17002
17003
  var RULES_VERSION = 6;
17003
17004
  var LOOK_BACK = 50;
17004
17005
  var SAME_SENDER_WITHIN = 10;
@@ -17096,7 +17097,7 @@ var latest = /* @__PURE__ */ __name((window2, matches) => {
17096
17097
  var sameThread = /* @__PURE__ */ __name((a, b) => a.threadId === b.threadId, "sameThread");
17097
17098
  var link = /* @__PURE__ */ __name((message, parentId, source, kind2, confidence, method) => ({ messageId: message.id, parentId, source, kind: kind2, confidence, method }), "link");
17098
17099
 
17099
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/sends/upload.js
17100
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/sends/upload.js
17100
17101
  import { openAsBlob, realpathSync } from "node:fs";
17101
17102
  import { open, stat } from "node:fs/promises";
17102
17103
  import { basename, dirname, extname, isAbsolute, relative, resolve, sep } from "node:path";
@@ -17178,7 +17179,6 @@ var CREDENTIAL_RUNS = [
17178
17179
  ];
17179
17180
  var WIRECAT_APPS = [
17180
17181
  ...WIRECAT_TOOLS.map(({ appName, envPrefix }) => ({ appName, prefix: envPrefix })),
17181
- { appName: "amo-cli", prefix: "AMO" },
17182
17182
  { appName: "beeline-cli", prefix: "BEELINE" },
17183
17183
  { appName: "zm", prefix: "ZM" },
17184
17184
  { appName: "cli-messaging", prefix: "MESSAGING" },
@@ -17313,7 +17313,7 @@ var readStickerFile = /* @__PURE__ */ __name(async (path2, maxBytes, read) => {
17313
17313
  return { name, source };
17314
17314
  }, "readStickerFile");
17315
17315
 
17316
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/crm/values.js
17316
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/crm/values.js
17317
17317
  var values_exports = {};
17318
17318
  __export(values_exports, {
17319
17319
  amountOf: () => amountOf,
@@ -17330,10 +17330,10 @@ __export(values_exports, {
17330
17330
  time: () => time
17331
17331
  });
17332
17332
 
17333
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/crm/source.js
17333
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/crm/source.js
17334
17334
  var CRM_FILE_SOURCES = ["record", "field", "document", "activity", "comment"];
17335
17335
 
17336
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/crm/files.js
17336
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/crm/files.js
17337
17337
  var parseCrmFileId = /* @__PURE__ */ __name((id3) => {
17338
17338
  const [kind2 = "", owner = "", source = "", ...rest] = id3.trim().split(":");
17339
17339
  const providerId = rest.join(":");
@@ -17366,7 +17366,7 @@ var withoutFileLinks = /* @__PURE__ */ __name((body) => {
17366
17366
  return walk2(body);
17367
17367
  }, "withoutFileLinks");
17368
17368
 
17369
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/crm/values.js
17369
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/crm/values.js
17370
17370
  var isRaw = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isRaw");
17371
17371
  var fieldOf = /* @__PURE__ */ __name((value, key) => isRaw(value) ? value[key] : void 0, "fieldOf");
17372
17372
  var rawsOf = /* @__PURE__ */ __name((value) => Array.isArray(value) ? value.filter(isRaw) : [], "rawsOf");
@@ -17425,10 +17425,30 @@ var crmValuesOf = /* @__PURE__ */ __name((values, fields2) => {
17425
17425
  }));
17426
17426
  }, "crmValuesOf");
17427
17427
 
17428
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/sends/guard.js
17428
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/crm/walk.js
17429
+ var crmWindowOf = /* @__PURE__ */ __name((query) => {
17430
+ const page = query.page ?? 1;
17431
+ return { offset: (Number.isSafeInteger(page) && page > 1 ? page - 1 : 0) * query.limit, limit: query.limit };
17432
+ }, "crmWindowOf");
17433
+ var walk = /* @__PURE__ */ __name(async (window2, largest, fetchPage) => {
17434
+ const want = window2.limit + 1;
17435
+ const rows = [];
17436
+ let at3 = window2.offset;
17437
+ while (rows.length < want) {
17438
+ const page = await fetchPage(at3, Math.min(largest, want - rows.length));
17439
+ for (const row of page.rows)
17440
+ rows.push(row);
17441
+ at3 += page.rows.length;
17442
+ if (!page.more || page.rows.length === 0)
17443
+ break;
17444
+ }
17445
+ return { items: rows.slice(0, window2.limit), hasMore: rows.length > window2.limit };
17446
+ }, "walk");
17447
+
17448
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/sends/guard.js
17429
17449
  import { randomUUID } from "node:crypto";
17430
17450
 
17431
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/sends/flood.js
17451
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/sends/flood.js
17432
17452
  import { mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
17433
17453
  import { dirname as dirname2, join } from "node:path";
17434
17454
  var MOST_DEADLINES = 50;
@@ -17512,11 +17532,11 @@ var FloodMemory = class {
17512
17532
  }
17513
17533
  };
17514
17534
 
17515
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/sends/journal.js
17535
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/sends/journal.js
17516
17536
  import { appendFileSync, mkdirSync as mkdirSync3, readFileSync as readFileSync2 } from "node:fs";
17517
17537
  import { dirname as dirname4, join as join2 } from "node:path";
17518
17538
 
17519
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/sends/file-lock.js
17539
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/sends/file-lock.js
17520
17540
  import { closeSync, mkdirSync as mkdirSync2, openSync, statSync, unlinkSync } from "node:fs";
17521
17541
  import { dirname as dirname3 } from "node:path";
17522
17542
  var LOCK_WAIT_MS = 5e3;
@@ -17583,7 +17603,7 @@ var lockTime = /* @__PURE__ */ __name((lock) => {
17583
17603
  }
17584
17604
  }, "lockTime");
17585
17605
 
17586
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/sends/journal.js
17606
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/sends/journal.js
17587
17607
  var sendsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "sends", `${profile}.jsonl`), "sendsPathFor");
17588
17608
  var SendJournal = class {
17589
17609
  static {
@@ -17660,7 +17680,7 @@ var withSendId = /* @__PURE__ */ __name((entry) => {
17660
17680
  return cid === void 0 || rest.sendId !== void 0 ? rest : { ...rest, sendId: String(cid) };
17661
17681
  }, "withSendId");
17662
17682
 
17663
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/sends/recipients.js
17683
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/sends/recipients.js
17664
17684
  import { existsSync, readFileSync as readFileSync3, rmSync } from "node:fs";
17665
17685
  import { join as join3 } from "node:path";
17666
17686
  var recipientsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "profiles", `${profile}.recipients.json`), "recipientsPathFor");
@@ -17772,7 +17792,7 @@ var RecipientList = class {
17772
17792
  }
17773
17793
  };
17774
17794
 
17775
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/sends/guard.js
17795
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/sends/guard.js
17776
17796
  var HOUR_MS = 60 * 60 * 1e3;
17777
17797
  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");
17778
17798
  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");
@@ -17960,7 +17980,7 @@ var guardFor = /* @__PURE__ */ __name((app, settings, warn, env = process.env, a
17960
17980
  }), "guardFor");
17961
17981
  var journalFailure = /* @__PURE__ */ __name((error) => error?.code ?? (error instanceof Error ? error.name : "error"), "journalFailure");
17962
17982
 
17963
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/sends/keyed-guard.js
17983
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/sends/keyed-guard.js
17964
17984
  var keyedGuard = /* @__PURE__ */ __name((build, ask2, levelOf, extra) => {
17965
17985
  let question;
17966
17986
  let answered = false;
@@ -18003,12 +18023,12 @@ var keyedGuard = /* @__PURE__ */ __name((build, ask2, levelOf, extra) => {
18003
18023
  };
18004
18024
  }, "keyedGuard");
18005
18025
 
18006
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/sends/send-id.js
18026
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/sends/send-id.js
18007
18027
  import { randomBytes } from "node:crypto";
18008
18028
  var newSendId = /* @__PURE__ */ __name(() => randomBytes(8).readBigInt64BE().toString(), "newSendId");
18009
18029
  var newOperationId = newSendId;
18010
18030
 
18011
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/crm/foreign-contacts.js
18031
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/crm/foreign-contacts.js
18012
18032
  import { readFileSync as readFileSync4 } from "node:fs";
18013
18033
  import { join as join4 } from "node:path";
18014
18034
  var DAILY_FOREIGN_CONTACTS = 100;
@@ -18083,7 +18103,7 @@ var foreignContacts = /* @__PURE__ */ __name((source, file, options2 = {}) => {
18083
18103
  };
18084
18104
  }, "foreignContacts");
18085
18105
 
18086
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/crm/writer.js
18106
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/crm/writer.js
18087
18107
  var CRM_ASSIGN_OTHERS_KEY = "crm.assign-others";
18088
18108
  var CRM_WRITE_KEYS = [CRM_ASSIGN_OTHERS_KEY];
18089
18109
  var PLURALS = {
@@ -18116,7 +18136,7 @@ var CRM_WRITE_DEFAULTS = {
18116
18136
  [CRM_ASSIGN_OTHERS_KEY]: "deny"
18117
18137
  };
18118
18138
 
18119
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/crm/writes.js
18139
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/crm/writes.js
18120
18140
  var moneyChecked = /* @__PURE__ */ __name((check2, param) => {
18121
18141
  try {
18122
18142
  check2();
@@ -18563,30 +18583,10 @@ var updateCrmRecord = /* @__PURE__ */ __name(async (context2, kind2, externalId,
18563
18583
  return writeRecord(context2, kind2, "update", fields2, operationId, () => writer.update(kind2, externalId, fields2, { operationId }));
18564
18584
  }, "updateCrmRecord");
18565
18585
 
18566
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/crm/walk.js
18567
- var crmWindowOf = /* @__PURE__ */ __name((query) => {
18568
- const page = query.page ?? 1;
18569
- return { offset: (Number.isSafeInteger(page) && page > 1 ? page - 1 : 0) * query.limit, limit: query.limit };
18570
- }, "crmWindowOf");
18571
- var walk = /* @__PURE__ */ __name(async (window2, largest, fetchPage) => {
18572
- const want = window2.limit + 1;
18573
- const rows = [];
18574
- let at3 = window2.offset;
18575
- while (rows.length < want) {
18576
- const page = await fetchPage(at3, Math.min(largest, want - rows.length));
18577
- for (const row of page.rows)
18578
- rows.push(row);
18579
- at3 += page.rows.length;
18580
- if (!page.more || page.rows.length === 0)
18581
- break;
18582
- }
18583
- return { items: rows.slice(0, window2.limit), hasMore: rows.length > window2.limit };
18584
- }, "walk");
18585
-
18586
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/crm/file-fetch.js
18586
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/crm/file-fetch.js
18587
18587
  var EXCHANGE_MS = 60 * 60 * 1e3;
18588
18588
 
18589
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/crm/manifest/map.js
18589
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/crm/manifest/map.js
18590
18590
  var TIMES = { createdAt: "epoch", updatedAt: "epoch" };
18591
18591
  var ITEM = {
18592
18592
  externalId: "id",
@@ -18638,7 +18638,7 @@ var FIELDS = {
18638
18638
  lead: ITEM
18639
18639
  };
18640
18640
 
18641
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/crm/manifest/manifest.js
18641
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/crm/manifest/manifest.js
18642
18642
  var path = pipe(string(), regex(/^[^.\s]+(\.[^.\s]+)*$/, "a dotted path such as properties.name"));
18643
18643
  var paths = pipe(array(path), minLength(1));
18644
18644
  var crmRuleSchema = union([
@@ -18670,20 +18670,27 @@ var entity = strictObject({
18670
18670
  })),
18671
18671
  ids: optional(call),
18672
18672
  get: optional(call),
18673
+ search: optional(call),
18673
18674
  select: optional(strictObject({
18674
18675
  from: path,
18675
18676
  also: optional(array(string())),
18676
18677
  max: optional(pipe(number(), integer(), minValue(1)))
18677
18678
  })),
18678
18679
  map: record(string(), rule),
18679
- custom: optional(strictObject({ from: path, split: optional(string()) })),
18680
- optional: optional(strictObject({ message: pipe(string(), minLength(1)), scope: optional(string()) }))
18680
+ custom: optional(strictObject({
18681
+ from: path,
18682
+ split: optional(string()),
18683
+ typed: optional(strictObject({ by: path, current: optional(path), paths: optional(record(string(), path)) }))
18684
+ })),
18685
+ optional: optional(strictObject({ message: pipe(string(), minLength(1)), scope: optional(string()) })),
18686
+ linked: optional(literal(true))
18681
18687
  });
18682
18688
  var pipelines = strictObject({
18683
18689
  call,
18684
18690
  map: strictObject({ externalId: rule, name: rule }),
18685
18691
  stages: strictObject({
18686
- each: path,
18692
+ each: union([literal("."), path]),
18693
+ pipeline: optional(path),
18687
18694
  map: strictObject({ externalId: rule, name: rule, position: optional(rule) }),
18688
18695
  outcome: union([
18689
18696
  strictObject({ path, won: optional(array(string())), lost: optional(array(string())) }),
@@ -18702,7 +18709,7 @@ var fields = strictObject({
18702
18709
  filterable: optional(rule),
18703
18710
  options: optional(union([strictObject({ each: path, id: path, label: path }), function_()]))
18704
18711
  }),
18705
- keep: optional(function_())
18712
+ keep: optional(union([strictObject({ path, is: unknown() }), function_()]))
18706
18713
  });
18707
18714
  var kind = picklist(CRM_KINDS);
18708
18715
  var schema = strictObject({
@@ -18724,7 +18731,7 @@ var schema = strictObject({
18724
18731
  }))
18725
18732
  });
18726
18733
 
18727
- // node_modules/.pnpm/@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/codegen/names.js
18734
+ // node_modules/.pnpm/@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/codegen/names.js
18728
18735
  var pascal = /* @__PURE__ */ __name((text3) => text3.split(/[^A-Za-z0-9]+/).filter(Boolean).map((word) => word[0]?.toUpperCase() + word.slice(1)).join(""), "pascal");
18729
18736
  var GLOBALS = /* @__PURE__ */ new Set([
18730
18737
  "Array",
@@ -18760,7 +18767,7 @@ var identifier = /* @__PURE__ */ __name((id3) => {
18760
18767
  return GLOBALS.has(name) ? `Api${name}` : name;
18761
18768
  }, "identifier");
18762
18769
 
18763
- // node_modules/.pnpm/@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/codegen/sign-in.js
18770
+ // node_modules/.pnpm/@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/codegen/sign-in.js
18764
18771
  var BEARER = { in: "header", name: "authorization", value: /* @__PURE__ */ __name((token) => `Bearer ${token}`, "value") };
18765
18772
  var signInPlace = /* @__PURE__ */ __name((scheme) => {
18766
18773
  if (scheme.type === "apiKey") {
@@ -18793,7 +18800,7 @@ var signInRequirements = /* @__PURE__ */ __name((operation, document) => {
18793
18800
  return requirements?.some((one) => Object.keys(one).length > 0) ? requirements : void 0;
18794
18801
  }, "signInRequirements");
18795
18802
 
18796
- // node_modules/.pnpm/@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/codegen/graphql.js
18803
+ // node_modules/.pnpm/@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/codegen/graphql.js
18797
18804
  var graphqlDocument = /* @__PURE__ */ __name((binding, selection = binding.selection) => {
18798
18805
  const variables = Object.entries(binding.variables);
18799
18806
  const declared = variables.length ? `(${variables.map(([name, type]) => `$${name}: ${type}`).join(", ")})` : "";
@@ -18802,7 +18809,7 @@ var graphqlDocument = /* @__PURE__ */ __name((binding, selection = binding.selec
18802
18809
  return `${binding.operation} ${binding.field[0]?.toUpperCase()}${binding.field.slice(1)}${declared} { ${binding.field}${passed}${inner} }`;
18803
18810
  }, "graphqlDocument");
18804
18811
 
18805
- // node_modules/.pnpm/@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/codegen/openapi.js
18812
+ // node_modules/.pnpm/@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/codegen/openapi.js
18806
18813
  var IGNORED = /* @__PURE__ */ new Set([
18807
18814
  "readOnly",
18808
18815
  "example",
@@ -18846,7 +18853,7 @@ var KNOWN = /* @__PURE__ */ new Set([
18846
18853
  ]);
18847
18854
  var LARGEST_EXAMPLE = 8 * 1024;
18848
18855
 
18849
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/cli/bot/api-input.js
18856
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/cli/bot/api-input.js
18850
18857
  import { readFileSync as readFileSync5 } from "node:fs";
18851
18858
 
18852
18859
  // node_modules/.pnpm/lossless-json@4.3.3/node_modules/lossless-json/lib/esm/utils.js
@@ -19533,7 +19540,7 @@ function resolveSpace(space) {
19533
19540
  }
19534
19541
  __name(resolveSpace, "resolveSpace");
19535
19542
 
19536
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/cli/bot/api-input.js
19543
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/cli/bot/api-input.js
19537
19544
  var RENAMED = { timeout: "poll-timeout" };
19538
19545
  var apiFlagOf = /* @__PURE__ */ __name((name) => RENAMED[name] ?? name.replace(/_/g, "-").replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), "apiFlagOf");
19539
19546
  var apiOptionKey = /* @__PURE__ */ __name((name) => apiFlagOf(name).replace(/-([a-z0-9])/g, (_, letter) => letter.toUpperCase()), "apiOptionKey");
@@ -19671,7 +19678,7 @@ var flagValue = /* @__PURE__ */ __name((operation, name, raw, type) => {
19671
19678
  return raw;
19672
19679
  }, "flagValue");
19673
19680
 
19674
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/cli/service-api-manifest.js
19681
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/cli/service-api-manifest.js
19675
19682
  var manifestBaseUrl = /* @__PURE__ */ __name((manifest, given, variables = {}) => {
19676
19683
  const server = manifest.servers?.[0];
19677
19684
  if (given === void 0 && !server)
@@ -19744,7 +19751,12 @@ var signRequest = /* @__PURE__ */ __name(async (manifest, operation, request, to
19744
19751
  if (auth.in === "query" || auth.name !== "authorization")
19745
19752
  request.redirect = "manual";
19746
19753
  }, "signRequest");
19747
- var at = /* @__PURE__ */ __name((value, path2) => path2.split(".").reduce((inner, key) => inner && typeof inner === "object" ? inner[key] : void 0, value), "at");
19754
+ var underBase = /* @__PURE__ */ __name((url, baseUrl) => {
19755
+ const base = new URL(baseUrl);
19756
+ const prefix = base.pathname.endsWith("/") ? base.pathname : `${base.pathname}/`;
19757
+ return url.origin === base.origin && (url.pathname === base.pathname || url.pathname.startsWith(prefix));
19758
+ }, "underBase");
19759
+ var at = /* @__PURE__ */ __name((value, path2) => path2 === "" ? value : path2.split(".").reduce((inner, key) => inner && typeof inner === "object" ? inner[key] : void 0, value), "at");
19748
19760
  var numberOf = /* @__PURE__ */ __name((value) => {
19749
19761
  const number3 = typeof value === "number" ? value : typeof value === "string" ? Number(value) : Number(String(value));
19750
19762
  return Number.isFinite(number3) ? number3 : void 0;
@@ -19757,7 +19769,7 @@ var withValue = /* @__PURE__ */ __name((input, parameter, value) => {
19757
19769
  const { [parameter.name]: _, ...fields2 } = input.fields;
19758
19770
  return { ...input, fields: fields2, body: apiJson({ ...body, [parameter.name]: value }) };
19759
19771
  }, "withValue");
19760
- var nextPage = /* @__PURE__ */ __name((pagination, input, answer) => {
19772
+ var nextPage = /* @__PURE__ */ __name((pagination, input, answer, headers) => {
19761
19773
  const listed3 = pagination.items === void 0 ? [answer] : at(answer, pagination.items);
19762
19774
  const items = Array.isArray(listed3) ? listed3 : [];
19763
19775
  switch (pagination.style) {
@@ -19770,9 +19782,10 @@ var nextPage = /* @__PURE__ */ __name((pagination, input, answer) => {
19770
19782
  case "page": {
19771
19783
  const parameter = pagination.style === "offset" ? pagination.offset : pagination.page;
19772
19784
  const total = pagination.total === void 0 ? void 0 : numberOf(at(answer, pagination.total));
19773
- const current = numberOf(parameterValue(input, parameter)) ?? (pagination.style === "offset" ? 0 : 1);
19785
+ const current = numberOf(parameterValue(input, parameter)) ?? (pagination.style === "offset" ? 0 : pagination.start ?? 1);
19774
19786
  const next = pagination.style === "offset" ? current + items.length : current + 1;
19775
- const last = items.length === 0 || total !== void 0 && pagination.style === "offset" && next >= total;
19787
+ const pages = pagination.style === "page" && pagination.pagesHeader !== void 0 ? numberOf(headers?.get(pagination.pagesHeader) ?? void 0) : void 0;
19788
+ const last = items.length === 0 || total !== void 0 && pagination.style === "offset" && next >= total || pages !== void 0 && current >= pages;
19776
19789
  return last ? { items } : { items, next: { input: withValue(input, parameter, next) } };
19777
19790
  }
19778
19791
  case "link": {
@@ -19782,10 +19795,10 @@ var nextPage = /* @__PURE__ */ __name((pagination, input, answer) => {
19782
19795
  }
19783
19796
  }, "nextPage");
19784
19797
 
19785
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/crm/manifest/source.js
19798
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/crm/manifest/source.js
19786
19799
  var OVERLAP_MS = 10 * 6e4;
19787
19800
 
19788
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/sends/pace.js
19801
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/sends/pace.js
19789
19802
  import { readFileSync as readFileSync6, renameSync as renameSync2, writeFileSync as writeFileSync2 } from "node:fs";
19790
19803
  import { join as join5 } from "node:path";
19791
19804
  var DEFAULT_PACE = { perMinute: 60, burst: 20 };
@@ -19880,7 +19893,7 @@ var waitForTurn = /* @__PURE__ */ __name(async (pacer, options2) => {
19880
19893
  await (options2.sleep ?? ((ms) => new Promise((resolve7) => setTimeout(resolve7, ms))))(waitMs);
19881
19894
  }, "waitForTurn");
19882
19895
 
19883
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/crm/provider-call.js
19896
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/crm/provider-call.js
19884
19897
  var RETRY = { retries: 3, baseDelayMs: 1e3, maxDelayMs: 1e4, maxRetryAfterMs: 3e4 };
19885
19898
  var UNANSWERED = /* @__PURE__ */ new Set(["timeout", "network_error", "provider_unavailable", "cancelled", "invalid_response"]);
19886
19899
  var unanswered = /* @__PURE__ */ __name((error) => !isCliError(error) || UNANSWERED.has(error.code) && error.details.sent !== false, "unanswered");
@@ -19916,7 +19929,7 @@ var providerCall = /* @__PURE__ */ __name(async (options2) => {
19916
19929
  }
19917
19930
  }, "providerCall");
19918
19931
 
19919
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/crm/query.js
19932
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/crm/query.js
19920
19933
  var valueFor = /* @__PURE__ */ __name((kind2, raw, name) => {
19921
19934
  if (kind2 === "id") {
19922
19935
  if (!/^[\w.:-]{1,100}$/u.test(raw))
@@ -20017,7 +20030,7 @@ var selectedCodes = /* @__PURE__ */ __name((fields2, wanted) => {
20017
20030
  });
20018
20031
  }, "selectedCodes");
20019
20032
 
20020
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/search/groups.js
20033
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/search/groups.js
20021
20034
  var ALL = "all";
20022
20035
  var OWNER_NOTES = { provider: "notes", account: INTERNAL_NOTES };
20023
20036
  var NOT_GROUP_NAMES = /* @__PURE__ */ new Set([ALL, "bots"]);
@@ -20089,7 +20102,7 @@ var groupEntries = /* @__PURE__ */ __name((saved) => ({
20089
20102
  [ALL]: [ALL]
20090
20103
  }), "groupEntries");
20091
20104
 
20092
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/search-kind.js
20105
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/search-kind.js
20093
20106
  var NO_MAIL = "no_mail";
20094
20107
  var MAIL = "email";
20095
20108
  var groupLockOf = /* @__PURE__ */ __name((app, env) => {
@@ -20163,7 +20176,7 @@ var accountsOfKind = /* @__PURE__ */ __name((kind2, chosen, held, explicit, comm
20163
20176
  return chosenMail.map(({ provider, account }) => ({ provider, account }));
20164
20177
  }, "accountsOfKind");
20165
20178
 
20166
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/crm/group-hint.js
20179
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/crm/group-hint.js
20167
20180
  var workGroupHint = /* @__PURE__ */ __name((key) => `add it to a work group: \`memo groups add work ${key.provider}:${key.account}\``, "workGroupHint");
20168
20181
  var ungroupedHint = /* @__PURE__ */ __name(async (store, key) => {
20169
20182
  const { groups } = (await listContextOf(store, key, void 0)).membership;
@@ -20171,7 +20184,7 @@ var ungroupedHint = /* @__PURE__ */ __name(async (store, key) => {
20171
20184
  return grouped2 ? void 0 : workGroupHint(key);
20172
20185
  }, "ungroupedHint");
20173
20186
 
20174
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/crm/viewer.js
20187
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/crm/viewer.js
20175
20188
  var VIEWERS = "crm:viewers";
20176
20189
  var viewersOf = /* @__PURE__ */ __name(async (store, account) => {
20177
20190
  try {
@@ -20246,7 +20259,7 @@ var ownerOf = /* @__PURE__ */ __name(async (run2, owner) => {
20246
20259
  return crmIdentityId(run2.account, normalCrmUserId(owner), "user");
20247
20260
  }, "ownerOf");
20248
20261
 
20249
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/crm/sync.js
20262
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/crm/sync.js
20250
20263
  var DAY2 = 864e5;
20251
20264
  var CLOCK_MARGIN = 60 * 6e4;
20252
20265
  var MOST_UNLISTED = 0.5;
@@ -20900,7 +20913,7 @@ var crmStatus = /* @__PURE__ */ __name(async (store, account, { profile, now, ki
20900
20913
  return { items, page: 1, limit: Math.max(1, items.length), hasMore: false };
20901
20914
  }, "crmStatus");
20902
20915
 
20903
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/cli/messenger/lacks.js
20916
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/cli/messenger/lacks.js
20904
20917
  var COMMAND_NEEDS = {
20905
20918
  "account update": ["updateProfile", "change the profile"],
20906
20919
  "account sessions list": ["sessions", "list the account's sessions"],
@@ -20918,7 +20931,10 @@ var COMMAND_NEEDS = {
20918
20931
  "contacts import": ["importContacts", "import contacts"],
20919
20932
  "messages comments": ["comments", "read comments on a channel post"],
20920
20933
  "messages pin": ["pin", "pin a message"],
20921
- "messages unpin": ["unpin", "unpin a message"]
20934
+ "messages unpin": ["unpin", "unpin a message"],
20935
+ "messages scheduled cancel": ["cancelScheduled", "cancel a scheduled message"],
20936
+ "messages scheduled edit": ["editScheduled", "edit a scheduled message"],
20937
+ "messages scheduled send": ["sendScheduled", "send a scheduled message now"]
20922
20938
  };
20923
20939
  var STORE_ANSWERS = /* @__PURE__ */ new Set(["chats events"]);
20924
20940
  var lackedNeed = /* @__PURE__ */ __name((messenger, path2) => {
@@ -20950,7 +20966,7 @@ var hideNever = /* @__PURE__ */ __name((messenger, group) => {
20950
20966
  return group;
20951
20967
  }, "hideNever");
20952
20968
 
20953
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/deps.js
20969
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/deps.js
20954
20970
  var accountStore = /* @__PURE__ */ __name(async (deps) => (await deps.store()).forAccount(await deps.account()), "accountStore");
20955
20971
  var crossAccount = /* @__PURE__ */ __name((deps, _reason) => deps.store(), "crossAccount");
20956
20972
  var NO_LOCAL_STORE = "this answer comes from the messenger, not from the local store";
@@ -21012,7 +21028,7 @@ var storedDeps = /* @__PURE__ */ __name((messenger, store, account, guard) => ({
21012
21028
  }), "storedDeps");
21013
21029
  var storeModeDeps = /* @__PURE__ */ __name((messenger, store, account, guard) => ({ ...storedDeps(messenger, store, account, guard), offline: false, reads: "store" }), "storeModeDeps");
21014
21030
 
21015
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/questions.js
21031
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/questions.js
21016
21032
  var LINKS = /https?:\/\/\S+/g;
21017
21033
  var unanswered2 = /* @__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");
21018
21034
  var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker = "others" }) => {
@@ -21042,7 +21058,7 @@ var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker
21042
21058
  });
21043
21059
  }, "questions");
21044
21060
 
21045
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/members-audit.js
21061
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/members-audit.js
21046
21062
  var AUDIT_PAGE = 200;
21047
21063
  var AUDIT_BUDGET = 10;
21048
21064
  var AUDIT_PAUSE_MS = 1e3;
@@ -21122,7 +21138,7 @@ var burstJoins = /* @__PURE__ */ __name((members) => {
21122
21138
  return found;
21123
21139
  }, "burstJoins");
21124
21140
 
21125
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/task-categories.js
21141
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/task-categories.js
21126
21142
  var names = /* @__PURE__ */ __name((categories) => categories.map(({ name }) => name).join(", "), "names");
21127
21143
  var taskCategoryOf = /* @__PURE__ */ __name((categories = DEFAULT_TASK_CATEGORIES, flag = "--category") => (typed) => {
21128
21144
  const name = typed.trim().toLowerCase();
@@ -21179,7 +21195,7 @@ var categorize = /* @__PURE__ */ __name((text3, categories = DEFAULT_TASK_CATEGO
21179
21195
  return best.name;
21180
21196
  }, "categorize");
21181
21197
 
21182
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/task-rules.js
21198
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/task-rules.js
21183
21199
  var taskAccount = /* @__PURE__ */ __name(({ provider, account }) => `${provider}:${account}`, "taskAccount");
21184
21200
  var RULES_IN = {
21185
21201
  dialog: "all",
@@ -21385,7 +21401,7 @@ var applyTaskRulesToChats = /* @__PURE__ */ __name(async (store, account, chatId
21385
21401
  return passes;
21386
21402
  }, "applyTaskRulesToChats");
21387
21403
 
21388
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/patience.js
21404
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/patience.js
21389
21405
  import { setTimeout as sleep } from "node:timers/promises";
21390
21406
  var LONGEST_WAIT_MS = 5 * 60 * 1e3;
21391
21407
  var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
@@ -21408,10 +21424,10 @@ var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
21408
21424
  }
21409
21425
  }, "patiently");
21410
21426
 
21411
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/archive.js
21427
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/archive.js
21412
21428
  import { setTimeout as sleep2 } from "node:timers/promises";
21413
21429
 
21414
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/backfill-estimate.js
21430
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/backfill-estimate.js
21415
21431
  var REQUEST_MS = 400;
21416
21432
  var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, maxPages, pauseMs }) => {
21417
21433
  const lowest = ranges[0];
@@ -21434,13 +21450,13 @@ var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, max
21434
21450
  };
21435
21451
  }, "estimateBackfill");
21436
21452
 
21437
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/domain/recovery.js
21453
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/domain/recovery.js
21438
21454
  var withRecovery = /* @__PURE__ */ __name((error) => ({
21439
21455
  ...error,
21440
21456
  retryable: typeof error.retryable === "boolean" ? error.retryable : error.code === "rate_limited" || error.status === 429
21441
21457
  }), "withRecovery");
21442
21458
 
21443
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/batch.js
21459
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/batch.js
21444
21460
  var actionable = /* @__PURE__ */ __name((error) => {
21445
21461
  if (isCliFailure(error))
21446
21462
  return withRecovery({ code: error.code, message: error.message, ...error.details });
@@ -21523,7 +21539,7 @@ var mergeBatches = /* @__PURE__ */ __name((a, b) => {
21523
21539
  };
21524
21540
  }, "mergeBatches");
21525
21541
 
21526
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/message-resolution.js
21542
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/message-resolution.js
21527
21543
  var readChatId = /* @__PURE__ */ __name(async (deps, reference, store, account) => {
21528
21544
  if (deps.reads !== "store")
21529
21545
  return keptChatId(deps.messenger, reference, store, account);
@@ -21724,7 +21740,7 @@ var chatsMatchingIn = /* @__PURE__ */ __name(async (store, accounts, pattern) =>
21724
21740
  }, "chatsMatchingIn");
21725
21741
  var isText = /* @__PURE__ */ __name((value) => typeof value === "string" && value !== "", "isText");
21726
21742
 
21727
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/images/context/index.js
21743
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/images/context/index.js
21728
21744
  var CONTEXT_MESSAGES = 3;
21729
21745
  var CONTEXT_MINUTES = 10;
21730
21746
  var MAX_CHARS = 1200;
@@ -21748,12 +21764,12 @@ var context = {
21748
21764
  }, "describe")
21749
21765
  };
21750
21766
 
21751
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/images/registry.js
21767
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/images/registry.js
21752
21768
  var BUILT_INS = [context];
21753
21769
  var providers = [...BUILT_INS];
21754
21770
  var registeredImageProviders = /* @__PURE__ */ __name(() => providers, "registeredImageProviders");
21755
21771
 
21756
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/conversations.js
21772
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/conversations.js
21757
21773
  var READ_PAGE = 5e3;
21758
21774
  var CHAIN = 50;
21759
21775
  var CONVERSATION_QUERY = {
@@ -21905,7 +21921,7 @@ var sized = /* @__PURE__ */ __name((size2) => {
21905
21921
  return size2;
21906
21922
  }, "sized");
21907
21923
 
21908
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/embeddings-maintenance.js
21924
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/embeddings-maintenance.js
21909
21925
  var REFRESH_BOUNDS = { maxChats: 20, maxChunks: 2e3 };
21910
21926
  var MESSAGE_PAGE = 5e3;
21911
21927
  var PER_SESSION = 8;
@@ -21924,7 +21940,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = chosenTextModel(dep
21924
21940
  price: remote.price,
21925
21941
  installed: true,
21926
21942
  perBatch: PER_REQUEST * concurrency,
21927
- open: /* @__PURE__ */ __name(async () => (await import("./remote-U4LUAHF2.js")).openRemote(remote, apiKey, {
21943
+ open: /* @__PURE__ */ __name(async () => (await import("./remote-HGV64VRC.js")).openRemote(remote, apiKey, {
21928
21944
  concurrency,
21929
21945
  env: deps.env ?? process.env
21930
21946
  }), "open")
@@ -21944,7 +21960,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = chosenTextModel(dep
21944
21960
  if (!isTextModelInstalled(model, directory2))
21945
21961
  throw notDownloaded(model.id);
21946
21962
  if (apart) {
21947
- const { openProcess } = await import("./process-P7FB7YO7.js");
21963
+ const { openProcess } = await import("./process-7RC6DAGM.js");
21948
21964
  return openProcess(model, directory2, { threads: threads ?? defaultThreads() });
21949
21965
  }
21950
21966
  return openEmbedder(model, directory2, { threads: threads ?? defaultThreads() });
@@ -22233,7 +22249,7 @@ var shaped = /* @__PURE__ */ __name(({ chatId, builtAt, algorithmVersion, pendin
22233
22249
  return { ...one, state };
22234
22250
  }, "shaped");
22235
22251
 
22236
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/search-catchup.js
22252
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/search-catchup.js
22237
22253
  var CATCH_UP_BOUNDS = { maxChunks: 500, maxMessages: 1e4, timeMs: 3e4 };
22238
22254
  var validateCatchUpBounds = /* @__PURE__ */ __name((options2) => {
22239
22255
  for (const [key, value, maximum] of [
@@ -22286,7 +22302,7 @@ var catchUpSearch = /* @__PURE__ */ __name(async (deps, chat, options2, signal,
22286
22302
  }
22287
22303
  }, "catchUpSearch");
22288
22304
 
22289
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/archive.js
22305
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/archive.js
22290
22306
  var pushed = /* @__PURE__ */ __name((deps, what) => {
22291
22307
  if (deps.reads === "store") {
22292
22308
  throw new CliError("validation_error", `${what} asks for older history, and this messenger pushes its history instead \u2014 keep \`${typedCommand(deps.messenger.app.command, "serve")}\` running`);
@@ -22667,7 +22683,7 @@ var timeOfKey = /* @__PURE__ */ __name(async (store, account, chatId, key, byTim
22667
22683
  return message?.timestamp ?? fallback;
22668
22684
  }, "timeOfKey");
22669
22685
 
22670
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/botcheck/check.js
22686
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/botcheck/check.js
22671
22687
  var DAY_MS = 864e5;
22672
22688
  var NEW_DAYS = 30;
22673
22689
  var SAME_TEXT_MIN = 20;
@@ -22744,7 +22760,7 @@ var scorePerson = /* @__PURE__ */ __name(({ subject, provider, activity, photos,
22744
22760
  };
22745
22761
  }, "scorePerson");
22746
22762
 
22747
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/http/time-limit.js
22763
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/http/time-limit.js
22748
22764
  var timeLimit = /* @__PURE__ */ __name((ms) => {
22749
22765
  const controller = new AbortController();
22750
22766
  const timer = setTimeout(() => controller.abort(new DOMException("The operation timed out.", "TimeoutError")), ms);
@@ -22760,7 +22776,7 @@ var withTimeLimit = /* @__PURE__ */ __name(async (ms, run2) => {
22760
22776
  }
22761
22777
  }, "withTimeLimit");
22762
22778
 
22763
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/botcheck/registries.js
22779
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/botcheck/registries.js
22764
22780
  var REGISTRIES = {
22765
22781
  cas: { title: "Combot Anti-Spam (CAS)", docs: "https://cas.chat/api" },
22766
22782
  lols: { title: "lols.bot", docs: "https://api.lols.bot/lols-bot.json" }
@@ -22847,7 +22863,7 @@ var notCovered = /* @__PURE__ */ __name((messenger, now = /* @__PURE__ */ new Da
22847
22863
  detail: `lists Telegram accounts only, not ${messenger} ones`
22848
22864
  })), "notCovered");
22849
22865
 
22850
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/botcheck/service.js
22866
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/botcheck/service.js
22851
22867
  var ACTIVITY_MESSAGES = 1e3;
22852
22868
  var botCheckService = /* @__PURE__ */ __name((deps) => {
22853
22869
  const subjectOf = /* @__PURE__ */ __name(async (reference) => {
@@ -22935,7 +22951,7 @@ var botCheckService = /* @__PURE__ */ __name((deps) => {
22935
22951
  };
22936
22952
  }, "botCheckService");
22937
22953
 
22938
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/domain/thread.js
22954
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/domain/thread.js
22939
22955
  var threadIdOf = /* @__PURE__ */ __name((value) => {
22940
22956
  if (value === void 0)
22941
22957
  return void 0;
@@ -22945,7 +22961,7 @@ var threadIdOf = /* @__PURE__ */ __name((value) => {
22945
22961
  return id3;
22946
22962
  }, "threadIdOf");
22947
22963
 
22948
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/chat-stats.js
22964
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/chat-stats.js
22949
22965
  var TOP_POSTS = 5;
22950
22966
  var JOINS = /* @__PURE__ */ new Set(["join", "add"]);
22951
22967
  var LEAVES = /* @__PURE__ */ new Set(["leave", "remove"]);
@@ -23062,7 +23078,7 @@ var median = /* @__PURE__ */ __name((values) => {
23062
23078
  return Math.round(sorted.length % 2 === 0 ? ((sorted[middle - 1] ?? upper) + upper) / 2 : upper);
23063
23079
  }, "median");
23064
23080
 
23065
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/member-history.js
23081
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/member-history.js
23066
23082
  var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
23067
23083
  const events = [];
23068
23084
  for (const stay of stays) {
@@ -23094,7 +23110,7 @@ var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
23094
23110
  return events.filter(({ at: at3 }) => Date.parse(at3) >= since).sort((a, b) => Date.parse(a.at) - Date.parse(b.at) || a.id.localeCompare(b.id));
23095
23111
  }, "memberEvents");
23096
23112
 
23097
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/chats.js
23113
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/chats.js
23098
23114
  var EVENTS_DAYS = 7;
23099
23115
  var TRACKED_DAYS = 30;
23100
23116
  var STATS_PAGE = 1e3;
@@ -23389,7 +23405,7 @@ var storedMembers = /* @__PURE__ */ __name(async (store, chatId) => {
23389
23405
  return members.length === 0 ? null : members;
23390
23406
  }, "storedMembers");
23391
23407
 
23392
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/inbox.js
23408
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/inbox.js
23393
23409
  var INBOX_CHATS = 20;
23394
23410
  var REVIEW_DAYS = 3;
23395
23411
  var UNANSWERED_HOURS = 24;
@@ -23597,7 +23613,7 @@ var inboxService = /* @__PURE__ */ __name((deps) => {
23597
23613
  };
23598
23614
  }, "inboxService");
23599
23615
 
23600
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/excerpt.js
23616
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/excerpt.js
23601
23617
  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");
23602
23618
  var excerpt = /* @__PURE__ */ __name((text3, query, size2 = 240, options2 = {}) => {
23603
23619
  const flat = text3.replace(/\s+/g, " ").trim();
@@ -23613,7 +23629,7 @@ var excerpt = /* @__PURE__ */ __name((text3, query, size2 = 240, options2 = {})
23613
23629
  }, "excerpt");
23614
23630
  var withExcerpt = /* @__PURE__ */ __name(({ matchedText, ...hit }, query) => ({ ...hit, excerpt: excerpt(matchedText ?? hit.text, query) }), "withExcerpt");
23615
23631
 
23616
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/person-meetings.js
23632
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/person-meetings.js
23617
23633
  var SCAN = 1e3;
23618
23634
  var SNIPPET = 200;
23619
23635
  var SNIPPET_ROWS = 6;
@@ -23678,7 +23694,7 @@ var personMeetings = /* @__PURE__ */ __name(async (store, people, accounts, { li
23678
23694
  return { items, total: newest.length, hasMore: cut || newest.length > limit };
23679
23695
  }, "personMeetings");
23680
23696
 
23681
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/person-context.js
23697
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/person-context.js
23682
23698
  var CONTEXT_MESSAGES2 = 10;
23683
23699
  var CONTEXT_BYTES = 64 * 1024;
23684
23700
  var toContext = /* @__PURE__ */ __name((key, message, chatTitle2) => ({
@@ -23984,10 +24000,10 @@ var personMessages = /* @__PURE__ */ __name(async (store, asked, reference, { ch
23984
24000
  };
23985
24001
  }, "personMessages");
23986
24002
 
23987
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
24003
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
23988
24004
  import { createHash } from "node:crypto";
23989
24005
 
23990
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/meeting-reference.js
24006
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/meeting-reference.js
23991
24007
  var missing2 = /* @__PURE__ */ __name(() => new CliError("not_found", "the meeting evidence is unavailable for this account"), "missing");
23992
24008
  var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId, reference, options2 = {}) => {
23993
24009
  const parsed = parseMeetingReference(reference);
@@ -24005,7 +24021,7 @@ var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId,
24005
24021
  return { parsed, meeting };
24006
24022
  }, "authorizedMeetingMetadata");
24007
24023
 
24008
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
24024
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
24009
24025
  var hash = /* @__PURE__ */ __name((value) => createHash("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
24010
24026
  var checkMeetingCancelled = /* @__PURE__ */ __name((signal) => {
24011
24027
  if (signal?.aborted)
@@ -24204,7 +24220,7 @@ var readMeetingEvidence = /* @__PURE__ */ __name(async (store, accountId, refere
24204
24220
  return { ...packet, fingerprint: hash(packet) };
24205
24221
  }, "readMeetingEvidence");
24206
24222
 
24207
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/person-meeting-context.js
24223
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/person-meeting-context.js
24208
24224
  var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference, options2) => {
24209
24225
  const { meetings = 10, cues = 5, bytes: bytes2 = 64 * 1024, scanLimit = 1e3, since, signal } = options2;
24210
24226
  const requestedAccounts = options2.accountIds;
@@ -24303,7 +24319,7 @@ var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference,
24303
24319
  };
24304
24320
  }, "personMeetingContext");
24305
24321
 
24306
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/person-preparation.js
24322
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/person-preparation.js
24307
24323
  var PREPARE_BYTES = 96 * 1024;
24308
24324
  var MEETINGS = 5;
24309
24325
  var CUES = 3;
@@ -24426,7 +24442,7 @@ var meetingsOf = /* @__PURE__ */ __name(async (store, uid, stored, since, left)
24426
24442
  }
24427
24443
  }, "meetingsOf");
24428
24444
 
24429
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/person-profile.js
24445
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/person-profile.js
24430
24446
  var personProfile = /* @__PURE__ */ __name(async (deps, person, known2) => {
24431
24447
  const online = deps.offline ? void 0 : await deps.connection();
24432
24448
  const held = await storeIfOpen(deps);
@@ -24496,7 +24512,7 @@ var quiet = /* @__PURE__ */ __name((facts) => facts.chats.map(({ id: id3, title,
24496
24512
  complete: false
24497
24513
  })), "quiet");
24498
24514
 
24499
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/person-timeline.js
24515
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/person-timeline.js
24500
24516
  var TIMELINE_ITEMS = 50;
24501
24517
  var TIMELINE_MAX = 500;
24502
24518
  var SCOPES = ["personal", "work"];
@@ -24558,7 +24574,7 @@ var personTimeline = /* @__PURE__ */ __name(async (store, asked, reference, { sc
24558
24574
  };
24559
24575
  }, "personTimeline");
24560
24576
 
24561
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/chat-coverage.js
24577
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/chat-coverage.js
24562
24578
  var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
24563
24579
  const ids2 = [...new Set(chatIds)];
24564
24580
  if (ids2.length === 0)
@@ -24584,7 +24600,7 @@ var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
24584
24600
  }));
24585
24601
  }, "chatCoverage");
24586
24602
 
24587
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/context/evidence-response.js
24603
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/context/evidence-response.js
24588
24604
  var contextSourceKey = /* @__PURE__ */ __name((source) => JSON.stringify([source.kind, source.accountId, source.provider, source.account]), "contextSourceKey");
24589
24605
  var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
24590
24606
  const fail2 = /* @__PURE__ */ __name(() => {
@@ -24648,7 +24664,7 @@ var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
24648
24664
  }
24649
24665
  }, "validateContextEvidencePage");
24650
24666
 
24651
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/context/read-budget.js
24667
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/context/read-budget.js
24652
24668
  var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
24653
24669
  if (!limits || typeof limits !== "object" || Array.isArray(limits))
24654
24670
  throw new CliError("validation_error", "limits needs a context read allowance");
@@ -24701,7 +24717,7 @@ var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
24701
24717
  };
24702
24718
  }, "contextReadBudget");
24703
24719
 
24704
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/context-evidence.js
24720
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/context-evidence.js
24705
24721
  var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits) => {
24706
24722
  if (!port || typeof port.read !== "function")
24707
24723
  throw new CliError("configuration_error", "context evidence reader is unavailable");
@@ -24745,7 +24761,7 @@ var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits)
24745
24761
  };
24746
24762
  }, "createContextEvidenceReader");
24747
24763
 
24748
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/project-gathering-around.js
24764
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/project-gathering-around.js
24749
24765
  var storedMessageNeighbours = /* @__PURE__ */ __name((messages) => ({
24750
24766
  async around(ref, window2) {
24751
24767
  const at3 = parseLocator(ref);
@@ -24840,7 +24856,7 @@ var storedNeighbours = /* @__PURE__ */ __name((store) => {
24840
24856
  };
24841
24857
  }, "storedNeighbours");
24842
24858
 
24843
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/project-gathering-request.js
24859
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/project-gathering-request.js
24844
24860
  import { createHash as createHash2 } from "node:crypto";
24845
24861
  var DAY3 = 864e5;
24846
24862
  var MAX_TIME = 864e13;
@@ -25102,7 +25118,7 @@ var contextChunks = /* @__PURE__ */ __name((after, before) => {
25102
25118
  }, "contextChunks");
25103
25119
  var projectUnits = /* @__PURE__ */ __name((plan, window2) => {
25104
25120
  const chunks = contextChunks(window2.after, window2.before);
25105
- const literal = chunks.flatMap((chunk) => plan.lanes.filter((lane) => lane.query !== null).flatMap((lane) => plan.sources.map((source, sourceIndex) => ({
25121
+ const literal2 = chunks.flatMap((chunk) => plan.lanes.filter((lane) => lane.query !== null).flatMap((lane) => plan.sources.map((source, sourceIndex) => ({
25106
25122
  lane,
25107
25123
  source,
25108
25124
  sourceIndex,
@@ -25129,7 +25145,7 @@ var projectUnits = /* @__PURE__ */ __name((plan, window2) => {
25129
25145
  }
25130
25146
  ] : [];
25131
25147
  }));
25132
- const units2 = [...literal, ...bySender, ...linked];
25148
+ const units2 = [...literal2, ...bySender, ...linked];
25133
25149
  if (units2.length > LIMITS.units)
25134
25150
  fail(`${units2.length} lane \xD7 source \xD7 90-day reads exceed ${LIMITS.units}; narrow the lanes, sources or window`);
25135
25151
  return units2;
@@ -25156,7 +25172,7 @@ var decodeCheckpoint = /* @__PURE__ */ __name((text3, plan) => {
25156
25172
  return value;
25157
25173
  }, "decodeCheckpoint");
25158
25174
 
25159
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/project-gathering.js
25175
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/project-gathering.js
25160
25176
  var terminal = /* @__PURE__ */ new Set(["done", "unavailable", "failed"]);
25161
25177
  var PAGE2 = 20;
25162
25178
  var PEOPLE = 20;
@@ -25560,7 +25576,7 @@ var peopleOf = /* @__PURE__ */ __name((items, senderOf) => {
25560
25576
  return [...byKey.values()].sort((a, b) => b.items - a.items || a.name.localeCompare(b.name));
25561
25577
  }, "peopleOf");
25562
25578
 
25563
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/meeting-project-candidate-matching.js
25579
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/meeting-project-candidate-matching.js
25564
25580
  var normalizedText = /* @__PURE__ */ __name((text3) => text3.normalize("NFKC").toLowerCase().replace(/\s+/gu, " "), "normalizedText");
25565
25581
  var termsOf = /* @__PURE__ */ __name((entry) => [
25566
25582
  { name: entry.name, kind: "canonical" },
@@ -25604,7 +25620,7 @@ var matchVocabularyTerms = /* @__PURE__ */ __name((catalog, texts) => {
25604
25620
  return result.sort((a, b) => Number(a.entry.id) - Number(b.entry.id));
25605
25621
  }, "matchVocabularyTerms");
25606
25622
 
25607
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/project-gathering-mentions.js
25623
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/project-gathering-mentions.js
25608
25624
  var KINDS = ["project", "tag", "topic"];
25609
25625
  var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering, options2 = {}) => {
25610
25626
  if (typeof vocabulary?.vocabulary !== "function")
@@ -25659,7 +25675,7 @@ var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering,
25659
25675
  };
25660
25676
  }, "findEvidenceMentions");
25661
25677
 
25662
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/project-purposes.js
25678
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/project-purposes.js
25663
25679
  var BUILT_IN_PURPOSES = ["work", "sales", "support", "other"];
25664
25680
  var DEFAULT_PURPOSES = ["work"];
25665
25681
  var LINK_PURPOSE = "work";
@@ -25689,7 +25705,7 @@ var purposeList = /* @__PURE__ */ __name((value, previous = []) => [
25689
25705
  ...value.split(",").map((one) => one.trim()).filter(Boolean)
25690
25706
  ], "purposeList");
25691
25707
 
25692
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/stored-project-gathering.js
25708
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/stored-project-gathering.js
25693
25709
  var storedChatCount = /* @__PURE__ */ __name((store) => async (account, chatId, { since, until }) => {
25694
25710
  const window2 = { since: new Date(since).toISOString(), until: new Date(until - 1).toISOString() };
25695
25711
  const [messages, newest, oldest] = await Promise.all([
@@ -26000,7 +26016,7 @@ var purposeHintOf = /* @__PURE__ */ __name((linked, rows, of) => {
26000
26016
  return { chat: top.ref, relationship: link4.relationship, items, of };
26001
26017
  }, "purposeHintOf");
26002
26018
 
26003
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/people.js
26019
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/people.js
26004
26020
  var peopleService = /* @__PURE__ */ __name((deps) => {
26005
26021
  const localCard = /* @__PURE__ */ __name(async (card, includeNotes = false) => {
26006
26022
  const held = await storeIfOpen(deps);
@@ -26265,7 +26281,7 @@ var withoutPhone = /* @__PURE__ */ __name((answer) => {
26265
26281
  return rest;
26266
26282
  }, "withoutPhone");
26267
26283
 
26268
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/task-stats.js
26284
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/task-stats.js
26269
26285
  var TASK_STATS_BY = ["chat", "meeting", "project"];
26270
26286
  var PERIOD_FIELD = "created";
26271
26287
  var refuseNestedPeriod = /* @__PURE__ */ __name((node, top = true) => {
@@ -26396,7 +26412,7 @@ var meetingNames = /* @__PURE__ */ __name(async (store, groups) => {
26396
26412
  }));
26397
26413
  }, "meetingNames");
26398
26414
 
26399
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/task-tag-filters.js
26415
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/task-tag-filters.js
26400
26416
  var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
26401
26417
  const tags = /* @__PURE__ */ new Map();
26402
26418
  for (const node of query ? walkQuery(query.root) : [])
@@ -26405,7 +26421,7 @@ var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
26405
26421
  return tags;
26406
26422
  }, "taskTagFilters");
26407
26423
 
26408
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/tasks.js
26424
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/tasks.js
26409
26425
  var TASK_QUERY = {
26410
26426
  entity: "task",
26411
26427
  backend: "sql",
@@ -26905,7 +26921,7 @@ var taskView = /* @__PURE__ */ __name(async (store, account, task2) => {
26905
26921
  };
26906
26922
  }, "taskView");
26907
26923
 
26908
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/mail/owed.js
26924
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/mail/owed.js
26909
26925
  var mailTurn = /* @__PURE__ */ __name((newest) => {
26910
26926
  if (newest === null)
26911
26927
  return null;
@@ -26914,7 +26930,7 @@ var mailTurn = /* @__PURE__ */ __name((newest) => {
26914
26930
  return newest.addressed ? "owed" : null;
26915
26931
  }, "mailTurn");
26916
26932
 
26917
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/agenda-mail.js
26933
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/agenda-mail.js
26918
26934
  var absent = /* @__PURE__ */ __name((error) => {
26919
26935
  if (error instanceof CliError && error.code === "not_found")
26920
26936
  return void 0;
@@ -26972,7 +26988,7 @@ var mailActivity = /* @__PURE__ */ __name(async (store, account, since, chats) =
26972
26988
  };
26973
26989
  }, "mailActivity");
26974
26990
 
26975
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/agenda.js
26991
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/agenda.js
26976
26992
  var DAY4 = 864e5;
26977
26993
  var AGENDA_DEFAULTS = { unanswered: DAY4, waiting: 7 * DAY4 };
26978
26994
  var CLAIMS = ["none", "mine", "others", "any"];
@@ -27226,18 +27242,18 @@ var agendaItem = /* @__PURE__ */ __name((shown) => {
27226
27242
  };
27227
27243
  }, "agendaItem");
27228
27244
 
27229
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/media-archive.js
27245
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/media-archive.js
27230
27246
  import { setTimeout as sleep3 } from "node:timers/promises";
27231
27247
 
27232
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
27248
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
27233
27249
  import { lstat } from "node:fs/promises";
27234
27250
 
27235
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
27251
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
27236
27252
  import { createHash as createHash4, randomUUID as randomUUID3 } from "node:crypto";
27237
27253
  import { open as open3, rename as rename2, unlink as unlink2 } from "node:fs/promises";
27238
27254
  import { join as join7 } from "node:path";
27239
27255
 
27240
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-metadata.js
27256
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-metadata.js
27241
27257
  import { createHash as createHash3 } from "node:crypto";
27242
27258
  var metadataLimit = 16384;
27243
27259
  var partialIdentity = /* @__PURE__ */ __name((locator) => JSON.stringify([locator.provider, locator.account, locator.occurrenceId, locator.assetId]), "partialIdentity");
@@ -27297,7 +27313,7 @@ var readPartialMetadata = /* @__PURE__ */ __name(async (path2, locator, maxBytes
27297
27313
  }
27298
27314
  }, "readPartialMetadata");
27299
27315
 
27300
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-writer.js
27316
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-writer.js
27301
27317
  import { randomUUID as randomUUID2 } from "node:crypto";
27302
27318
  import { open as open2, rename, unlink } from "node:fs/promises";
27303
27319
  import { join as join6 } from "node:path";
@@ -27389,7 +27405,7 @@ var partialWriter = /* @__PURE__ */ __name(async (input) => {
27389
27405
  };
27390
27406
  }, "partialWriter");
27391
27407
 
27392
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
27408
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
27393
27409
  var NativeRecordingPartialStore = class {
27394
27410
  static {
27395
27411
  __name(this, "NativeRecordingPartialStore");
@@ -27496,12 +27512,12 @@ var NativeRecordingPartialStore = class {
27496
27512
  }
27497
27513
  };
27498
27514
 
27499
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
27515
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
27500
27516
  import { createHash as createHash5 } from "node:crypto";
27501
27517
  import { link as link2 } from "node:fs/promises";
27502
27518
  import { basename as basename2, dirname as dirname5, join as join9, resolve as resolve2 } from "node:path";
27503
27519
 
27504
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-files.js
27520
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-files.js
27505
27521
  import { unlink as unlink3 } from "node:fs/promises";
27506
27522
  var verifiedPublicationFile = /* @__PURE__ */ __name(async (path2, expected2, signal, writable = false) => {
27507
27523
  signal?.throwIfAborted();
@@ -27536,7 +27552,7 @@ var commitPublication = /* @__PURE__ */ __name(async (root, partialPath, finalPa
27536
27552
  signal?.throwIfAborted();
27537
27553
  }, "commitPublication");
27538
27554
 
27539
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-journal.js
27555
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-journal.js
27540
27556
  import { randomUUID as randomUUID4 } from "node:crypto";
27541
27557
  import { open as open4, rename as rename3, unlink as unlink4 } from "node:fs/promises";
27542
27558
  import { join as join8 } from "node:path";
@@ -27609,7 +27625,7 @@ var writePublicationJournal = /* @__PURE__ */ __name(async (root, path2, prefix,
27609
27625
  }
27610
27626
  }, "writePublicationJournal");
27611
27627
 
27612
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
27628
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
27613
27629
  var NativeRecordingPublication = class {
27614
27630
  static {
27615
27631
  __name(this, "NativeRecordingPublication");
@@ -27682,7 +27698,7 @@ var NativeRecordingPublication = class {
27682
27698
  }
27683
27699
  };
27684
27700
 
27685
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/media-archive-manifest.js
27701
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/media-archive-manifest.js
27686
27702
  import { createHash as createHash6 } from "node:crypto";
27687
27703
  import { readdir } from "node:fs/promises";
27688
27704
  import { isAbsolute as isAbsolute2, join as join10, resolve as resolve3 } from "node:path";
@@ -27769,7 +27785,7 @@ var commitMediaEntry = /* @__PURE__ */ __name((root, one, beforePublish) => writ
27769
27785
  beforePublish
27770
27786
  }), "commitMediaEntry");
27771
27787
 
27772
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
27788
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
27773
27789
  var validator = '"media-completed-v1"';
27774
27790
  var maximumFileBytes = 64 * 1024 * 1024 * 1024;
27775
27791
  var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind2, file, beforeWrite, signal, metadata = {}) => {
@@ -27870,7 +27886,7 @@ var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind2, file
27870
27886
  return entry;
27871
27887
  }, "archiveMediaFile");
27872
27888
 
27873
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/media-archive-locks.js
27889
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/media-archive-locks.js
27874
27890
  import { mkdir, realpath } from "node:fs/promises";
27875
27891
  import { join as join11, resolve as resolve4 } from "node:path";
27876
27892
  var archiveLocations = /* @__PURE__ */ __name(async (initial, signal) => {
@@ -27937,7 +27953,7 @@ var withMediaArchiveLocks = /* @__PURE__ */ __name(async (directory2, signal, ru
27937
27953
  throw new CliError("validation_error", "archive locations changed during locking; run the command again");
27938
27954
  }, "withMediaArchiveLocks");
27939
27955
 
27940
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/media-archive.js
27956
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/media-archive.js
27941
27957
  var checkMediaArchive = /* @__PURE__ */ __name((directory2, signal) => withMediaArchiveLocks(directory2, signal, async (root) => {
27942
27958
  const entries = await readMediaManifests(root, signal);
27943
27959
  if (!entries.length)
@@ -28080,7 +28096,7 @@ var archiveMedia = /* @__PURE__ */ __name(async (ports, options2) => {
28080
28096
  }, { create: true });
28081
28097
  }, "archiveMedia");
28082
28098
 
28083
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/media-archive-move.js
28099
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/media-archive-move.js
28084
28100
  import { realpath as realpath2, unlink as unlink5 } from "node:fs/promises";
28085
28101
  import { basename as basename3, dirname as dirname6, join as join12, resolve as resolve5 } from "node:path";
28086
28102
  var canonicalDestination = /* @__PURE__ */ __name(async (directory2) => {
@@ -28231,7 +28247,7 @@ var moveMediaArchive = /* @__PURE__ */ __name(async (options2) => {
28231
28247
  }, { additional: [target2], createAdditional: !options2.dryRun });
28232
28248
  }, "moveMediaArchive");
28233
28249
 
28234
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/model-downloads.js
28250
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/model-downloads.js
28235
28251
  import { writeFileSync as writeFileSync3 } from "node:fs";
28236
28252
  import { join as join13 } from "node:path";
28237
28253
  var bytesOf = /* @__PURE__ */ __name((model) => model.files.reduce((sum2, file) => sum2 + file.bytes, 0), "bytesOf");
@@ -28256,7 +28272,7 @@ var downloadTextModel = /* @__PURE__ */ __name(async (id3, { env, progress = /*
28256
28272
  `);
28257
28273
  await nativeRuntime({ env, progress });
28258
28274
  progress(`${model.id}: loading it once to check it works`);
28259
- const { openEmbedder: openEmbedder2 } = await import("./embed-AWLL4EBF.js");
28275
+ const { openEmbedder: openEmbedder2 } = await import("./embed-GXQ3HOQ6.js");
28260
28276
  const embedder = await openEmbedder2(model, directory2);
28261
28277
  try {
28262
28278
  const [vector] = await embedder.embed(["check"], "query");
@@ -28277,7 +28293,7 @@ var downloadRerankModel = /* @__PURE__ */ __name(async (id3, { env, progress = /
28277
28293
  }
28278
28294
  await nativeRuntime({ env, progress });
28279
28295
  progress(`${model.id}: loading it once to check it works`);
28280
- const { openReranker } = await import("./rerank-AJAVKK5L.js");
28296
+ const { openReranker } = await import("./rerank-5S6TDXHD.js");
28281
28297
  const reranker = await openReranker(model, directory2);
28282
28298
  try {
28283
28299
  await reranker.score("check", ["check"]);
@@ -28295,7 +28311,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id3, { env, progress = /*
28295
28311
  await installFiles(placedImage(model, directory2), { progress, ...bytes2 ? { bytes: bytes2 } : {} });
28296
28312
  }
28297
28313
  progress(`${model.id}: loading it once to check it works`);
28298
- const { openPictureEmbedder } = await import("./embedder-MM225YJ6.js");
28314
+ const { openPictureEmbedder } = await import("./embedder-47OYXGLS.js");
28299
28315
  const embedder = await openPictureEmbedder(model, directory2);
28300
28316
  try {
28301
28317
  const vector = await embedder.embedQuery("check");
@@ -28307,7 +28323,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id3, { env, progress = /*
28307
28323
  return { model, directory: directory2 };
28308
28324
  }, "downloadImageModel");
28309
28325
 
28310
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/domain/money-words.js
28326
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/domain/money-words.js
28311
28327
  var MONEY_REQUEST = "money-request";
28312
28328
  var MONEY_DONE = "money-done";
28313
28329
  var PROMISE = "promise";
@@ -28341,10 +28357,10 @@ var MONEY_WORDS = [
28341
28357
  }
28342
28358
  ];
28343
28359
 
28344
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/money-words.js
28360
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/money-words.js
28345
28361
  var moneyClassesOf = /* @__PURE__ */ __name((text3) => listsHit(text3, MONEY_WORDS), "moneyClassesOf");
28346
28362
 
28347
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/domain/status-words.js
28363
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/domain/status-words.js
28348
28364
  var words2 = /* @__PURE__ */ __name((forms) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${forms.join("|")})(?![\\p{L}\\p{N}])`, "iu"), "words");
28349
28365
  var MONEY_DONE_FORMS = words2([
28350
28366
  "\u043E\u043F\u043B\u0430\u0442\u0438\u043B[\u0430\u0438]?",
@@ -28384,7 +28400,7 @@ var PROMISE_FORMS = words2([
28384
28400
  "estar\xE1 listo"
28385
28401
  ]);
28386
28402
 
28387
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/project-status/items.js
28403
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/project-status/items.js
28388
28404
  var EXCERPT_CHARS = 80;
28389
28405
  var excerpt2 = /* @__PURE__ */ __name((text3) => {
28390
28406
  const flat = text3.replace(/\s+/g, " ").trim();
@@ -28406,7 +28422,7 @@ var whoOf = /* @__PURE__ */ __name((message) => ({
28406
28422
  var fromOwner = /* @__PURE__ */ __name((message) => message.outgoing === true, "fromOwner");
28407
28423
  var day = /* @__PURE__ */ __name((at3) => new Date(at3).toISOString().slice(0, 10), "day");
28408
28424
 
28409
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/project-status/signals/amounts.js
28425
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/project-status/signals/amounts.js
28410
28426
  var MONEY = DEFAULT_TASK_CATEGORIES.filter((category) => category.name === "money");
28411
28427
  var verbOf = /* @__PURE__ */ __name((text3) => {
28412
28428
  if (MONEY_DONE_FORMS.test(text3))
@@ -28487,7 +28503,7 @@ var amounts = {
28487
28503
  attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.state === "asked" ? [{ chat: item2.chat, weight: 2, why: "money asked" }] : []), "attention")
28488
28504
  };
28489
28505
 
28490
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/project-status/signals/children.js
28506
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/project-status/signals/children.js
28491
28507
  var children = {
28492
28508
  id: "children",
28493
28509
  version: 1,
@@ -28516,7 +28532,7 @@ var children = {
28516
28532
  }, "read")
28517
28533
  };
28518
28534
 
28519
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/project-status/signals/coverage.js
28535
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/project-status/signals/coverage.js
28520
28536
  var coverage = {
28521
28537
  id: "coverage",
28522
28538
  version: 1,
@@ -28545,7 +28561,7 @@ var coverage = {
28545
28561
  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")
28546
28562
  };
28547
28563
 
28548
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/project-status/signals/payments.js
28564
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/project-status/signals/payments.js
28549
28565
  var holding2 = /* @__PURE__ */ __name((row) => row.review !== "rejected", "holding");
28550
28566
  var item = /* @__PURE__ */ __name((row, at3, data) => ({
28551
28567
  signal: "payments",
@@ -28595,7 +28611,7 @@ var payments = {
28595
28611
  }, "read")
28596
28612
  };
28597
28613
 
28598
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/project-status/signals/promises.js
28614
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/project-status/signals/promises.js
28599
28615
  var PATTERNS_PER_CHAT = 3;
28600
28616
  var DAY5 = 864e5;
28601
28617
  var KINDS2 = /* @__PURE__ */ new Set(["promise", "request"]);
@@ -28684,7 +28700,7 @@ var promises = {
28684
28700
  }, "read")
28685
28701
  };
28686
28702
 
28687
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/project-status/signals/questions.js
28703
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/project-status/signals/questions.js
28688
28704
  var PER_SIDE = 5;
28689
28705
  var WEEK = 7 * 864e5;
28690
28706
  var NOBODY = /* @__PURE__ */ new Set();
@@ -28715,7 +28731,7 @@ var questions2 = {
28715
28731
  }, "attention")
28716
28732
  };
28717
28733
 
28718
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/project-status/signals/reply-next.js
28734
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/project-status/signals/reply-next.js
28719
28735
  var targetOf = /* @__PURE__ */ __name((message, chat, owners) => {
28720
28736
  const byId2 = /* @__PURE__ */ __name((id3) => chat.messages.find((one) => one.id === id3), "byId");
28721
28737
  const quoted = message.replyTo ?? (message.replyToId === void 0 ? void 0 : byId2(message.replyToId));
@@ -28783,7 +28799,7 @@ var replyNext = {
28783
28799
  attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.next === "owner" ? [{ chat: item2.chat, weight: 2, why: "your move" }] : []), "attention")
28784
28800
  };
28785
28801
 
28786
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/project-status/signals/topics.js
28802
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/project-status/signals/topics.js
28787
28803
  var escaped = /* @__PURE__ */ __name((text3) => text3.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
28788
28804
  var wholeWord = /* @__PURE__ */ __name((word) => new RegExp(`(?<![\\p{L}\\p{N}])${escaped(word)}(?![\\p{L}\\p{N}])`, "u"), "wholeWord");
28789
28805
  var matcherOf = /* @__PURE__ */ __name((query) => {
@@ -28829,7 +28845,7 @@ var topics = {
28829
28845
  }, "read")
28830
28846
  };
28831
28847
 
28832
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/project-status/signals/index.js
28848
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/project-status/signals/index.js
28833
28849
  var STATUS_SIGNALS = [
28834
28850
  replyNext,
28835
28851
  questions2,
@@ -28841,7 +28857,7 @@ var STATUS_SIGNALS = [
28841
28857
  children
28842
28858
  ];
28843
28859
 
28844
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/project-status/index.js
28860
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/project-status/index.js
28845
28861
  var DAY6 = 864e5;
28846
28862
  var STATUS_WINDOW = 300;
28847
28863
  var STATUS_CHATS = 16;
@@ -29030,7 +29046,7 @@ var projectStatus = /* @__PURE__ */ __name(async (store, input) => {
29030
29046
  };
29031
29047
  }, "projectStatus");
29032
29048
 
29033
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/account.js
29049
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/account.js
29034
29050
  var accountService = /* @__PURE__ */ __name((deps) => {
29035
29051
  const online = /* @__PURE__ */ __name(async (command) => {
29036
29052
  if (deps.offline)
@@ -29102,7 +29118,7 @@ var accountService = /* @__PURE__ */ __name((deps) => {
29102
29118
  };
29103
29119
  }, "accountService");
29104
29120
 
29105
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/domain/send-time.js
29121
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/domain/send-time.js
29106
29122
  var sendTime = /* @__PURE__ */ __name((value, now = Date.now(), flag = "--at-time", zone) => {
29107
29123
  const at3 = aheadOf(value, flag, now, {
29108
29124
  ...zone === void 0 ? {} : { zone },
@@ -29113,7 +29129,7 @@ var sendTime = /* @__PURE__ */ __name((value, now = Date.now(), flag = "--at-tim
29113
29129
  return new Date(at3 - at3 % MINUTE).toISOString();
29114
29130
  }, "sendTime");
29115
29131
 
29116
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/admin.js
29132
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/admin.js
29117
29133
  var recordMembership = /* @__PURE__ */ __name(async (deps, operationId, done2, change, fix, write) => {
29118
29134
  try {
29119
29135
  const held = await accountStoreIfOpen(deps);
@@ -29360,7 +29376,7 @@ var linkLimits = /* @__PURE__ */ __name(({ approval, expires, maxUses }) => {
29360
29376
  return expires === void 0 ? void 0 : sendTime(expires, Date.now(), "--expire-time");
29361
29377
  }, "linkLimits");
29362
29378
 
29363
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/mail-search.js
29379
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/mail-search.js
29364
29380
  var THREADS_PAGE = 500;
29365
29381
  var threadsOf = /* @__PURE__ */ __name(async (store, key) => {
29366
29382
  const account = await store.accounts.storedAccount(key).catch(() => void 0);
@@ -29435,7 +29451,7 @@ var readMail = /* @__PURE__ */ __name(async (store, locator, { before = 0, after
29435
29451
  return thread.slice(Math.max(0, at3 - before), at3 + after + 1).map((hit) => hit.id === message ? { ...hit, anchor: true } : hit);
29436
29452
  }, "readMail");
29437
29453
 
29438
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/messages-search.js
29454
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/messages-search.js
29439
29455
  var PERSON_FIELDS = /* @__PURE__ */ new Set(["from", "to", "cc", "bcc"]);
29440
29456
  var MAIL_FIELDS = /* @__PURE__ */ new Set(["to", "cc", "bcc", "subject", "mailbox", "label", "is", "list"]);
29441
29457
  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");
@@ -29808,7 +29824,7 @@ var statsLucene = /* @__PURE__ */ __name(async (store, account, request, messeng
29808
29824
  };
29809
29825
  }, "statsLucene");
29810
29826
 
29811
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/rankings-selection.js
29827
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/rankings-selection.js
29812
29828
  var RANKING_SELECTION_BYTES = 64 * 1024;
29813
29829
  var object2 = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0, "object");
29814
29830
  function invalid2(message = "ranking selection is invalid \u2014 obtain a new drilldown from stats top") {
@@ -29977,7 +29993,7 @@ var readRankingSelection = /* @__PURE__ */ __name(async (store, input) => {
29977
29993
  };
29978
29994
  }, "readRankingSelection");
29979
29995
 
29980
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/search-record.js
29996
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/search-record.js
29981
29997
  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");
29982
29998
  var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
29983
29999
  command,
@@ -29987,7 +30003,7 @@ var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
29987
30003
  fieldsVersion: FIELD_VERSION
29988
30004
  }), "searchRecordOf");
29989
30005
 
29990
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/admin-statistics.js
30006
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/admin-statistics.js
29991
30007
  function invalid3(message) {
29992
30008
  throw new CliError("validation_error", message);
29993
30009
  }
@@ -30281,7 +30297,7 @@ var adminStatisticsService = /* @__PURE__ */ __name((deps) => ({
30281
30297
  }, "evidence")
30282
30298
  }), "adminStatisticsService");
30283
30299
 
30284
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/archive-gaps.js
30300
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/archive-gaps.js
30285
30301
  import { createHash as createHash7, randomUUID as randomUUID5 } from "node:crypto";
30286
30302
  var GAP_BOUNDS = { maxGaps: 5, limit: 500, timeMs: 3e4 };
30287
30303
  var validateRepair = /* @__PURE__ */ __name((messenger, options2) => {
@@ -30418,12 +30434,12 @@ var gapsService = /* @__PURE__ */ __name((deps) => {
30418
30434
  return { plan, repair };
30419
30435
  }, "gapsService");
30420
30436
 
30421
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/attachments.js
30437
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/attachments.js
30422
30438
  import { createHash as createHash10 } from "node:crypto";
30423
30439
  import { constants as constants2, mkdirSync as mkdirSync5 } from "node:fs";
30424
30440
  import { lstat as lstat5, open as open6, readFile as readFile2, stat as stat2 } from "node:fs/promises";
30425
30441
 
30426
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/attachments/directory.js
30442
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/attachments/directory.js
30427
30443
  import { lstat as lstat2, readdir as readdir2, realpath as realpath3 } from "node:fs/promises";
30428
30444
  import { basename as basename4, join as join14, relative as relative2, sep as sep2 } from "node:path";
30429
30445
  var MAX_FILES = 1e4;
@@ -30494,15 +30510,15 @@ var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app,
30494
30510
  return choices;
30495
30511
  }, "directoryPaths");
30496
30512
 
30497
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/attachments/documents.js
30513
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/attachments/documents.js
30498
30514
  import { posix } from "node:path";
30499
30515
 
30500
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/attachments/container.js
30516
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/attachments/container.js
30501
30517
  import { setImmediate as tick } from "node:timers/promises";
30502
30518
  import { crc32 } from "node:zlib";
30503
30519
  var import_xmldom = __toESM(require_lib(), 1);
30504
30520
 
30505
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/attachments/encoding.js
30521
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/attachments/encoding.js
30506
30522
  var import_chardet = __toESM(require_lib2(), 1);
30507
30523
  var import_iconv_lite = __toESM(require_lib3(), 1);
30508
30524
  var SAMPLE = 65536;
@@ -30604,7 +30620,7 @@ var decodeXml = /* @__PURE__ */ __name((bytes2) => {
30604
30620
  return result.text;
30605
30621
  }, "decodeXml");
30606
30622
 
30607
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/attachments/container.js
30623
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/attachments/container.js
30608
30624
  var MAX_PART = 10 * 1024 * 1024;
30609
30625
  var MAX_ENTRIES = 1e3;
30610
30626
  var decoder = new TextDecoder("utf-8", { fatal: true });
@@ -30819,7 +30835,7 @@ var elements = /* @__PURE__ */ __name((node, name, namespace) => {
30819
30835
  return found;
30820
30836
  }, "elements");
30821
30837
 
30822
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/attachments/sheets.js
30838
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/attachments/sheets.js
30823
30839
  var columnName = /* @__PURE__ */ __name((column) => {
30824
30840
  let name = "";
30825
30841
  for (let rest = column; rest > 0; rest = Math.floor((rest - 1) / 26))
@@ -30874,7 +30890,7 @@ var sheetText = /* @__PURE__ */ __name((sheets2, maxChars = MAX_TEXT_CHARS) => {
30874
30890
  return { text: parts.join("").trim(), truncated: false };
30875
30891
  }, "sheetText");
30876
30892
 
30877
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/attachments/documents.js
30893
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/attachments/documents.js
30878
30894
  var OFFICE = "urn:oasis:names:tc:opendocument:xmlns:office:1.0";
30879
30895
  var TEXT = "urn:oasis:names:tc:opendocument:xmlns:text:1.0";
30880
30896
  var TABLE = "urn:oasis:names:tc:opendocument:xmlns:table:1.0";
@@ -31274,10 +31290,10 @@ var readDocument = /* @__PURE__ */ __name(async (bytes2, kind2, signal) => {
31274
31290
  }
31275
31291
  }, "readDocument");
31276
31292
 
31277
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/attachments/extract.js
31293
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/attachments/extract.js
31278
31294
  import { extname as extname3 } from "node:path";
31279
31295
 
31280
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/readers/engine.js
31296
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/readers/engine.js
31281
31297
  import { readFileSync as readFileSync7 } from "node:fs";
31282
31298
  import { dirname as dirname7, extname as extname2, join as join15 } from "node:path";
31283
31299
  import { fileURLToPath } from "node:url";
@@ -31338,7 +31354,7 @@ var derived = /* @__PURE__ */ __name((bytes2, extractor, read) => {
31338
31354
  }
31339
31355
  }, "derived");
31340
31356
 
31341
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/readers/image/index.js
31357
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/readers/image/index.js
31342
31358
  var IMAGES = /* @__PURE__ */ new Set([".jpg", ".jpeg", ".png", ".webp", ".gif", ".heic", ".tif", ".tiff", ".bmp"]);
31343
31359
  var image2 = {
31344
31360
  id: "image",
@@ -31347,7 +31363,7 @@ var image2 = {
31347
31363
  read: /* @__PURE__ */ __name(async () => ({ status: "needs-agent" }), "read")
31348
31364
  };
31349
31365
 
31350
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/readers/doc/index.js
31366
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/readers/doc/index.js
31351
31367
  var OLE = "\xD0\xCF\xE0\xA1\xB1\xE1";
31352
31368
  var doc = {
31353
31369
  id: "doc",
@@ -31359,7 +31375,7 @@ var doc = {
31359
31375
  }), "read")
31360
31376
  };
31361
31377
 
31362
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/readers/docx/index.js
31378
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/readers/docx/index.js
31363
31379
  var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
31364
31380
  var docx = {
31365
31381
  id: "docx",
@@ -31372,10 +31388,10 @@ var docx = {
31372
31388
  }), "read")
31373
31389
  };
31374
31390
 
31375
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/attachments/markup.js
31391
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/attachments/markup.js
31376
31392
  var import_iconv_lite2 = __toESM(require_lib3(), 1);
31377
31393
 
31378
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/domain/html-entities.js
31394
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/domain/html-entities.js
31379
31395
  var NAMED = {
31380
31396
  amp: "&",
31381
31397
  lt: "<",
@@ -31427,7 +31443,7 @@ var decodeEntities = /* @__PURE__ */ __name((text3) => text3.replace(/&(#x[0-9a-
31427
31443
  return body[1] === "x" || body[1] === "X" ? character(Number.parseInt(body.slice(2), 16), entity2) : character(Number(body.slice(1)), entity2);
31428
31444
  }), "decodeEntities");
31429
31445
 
31430
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/attachments/markup.js
31446
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/attachments/markup.js
31431
31447
  var RTF_SKIPPED = /* @__PURE__ */ new Set([
31432
31448
  "fonttbl",
31433
31449
  "colortbl",
@@ -31593,7 +31609,7 @@ var htmlText = /* @__PURE__ */ __name((source) => {
31593
31609
  return decodeEntities(replaceTags(blocks, /<[^>]*>/g, "")).replace(/(?<![ \t\u00a0])[ \t\u00a0]+\n/g, "\n").replace(/\n{3,}/g, "\n\n").trim();
31594
31610
  }, "htmlText");
31595
31611
 
31596
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/readers/html/page.js
31612
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/readers/html/page.js
31597
31613
  var clean = /* @__PURE__ */ __name((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim() : "", "clean");
31598
31614
  var namesIn = /* @__PURE__ */ __name((value) => [value].flat().map((entry) => typeof entry === "string" ? clean(entry) : clean(entry?.name)).filter(Boolean).join(", "), "namesIn");
31599
31615
  var jsonLdNodes = /* @__PURE__ */ __name((document) => {
@@ -31649,7 +31665,7 @@ var markdownSections = /* @__PURE__ */ __name((text3) => {
31649
31665
  return found.map((section, index) => ({ ...section, end: found[index + 1]?.start ?? text3.length }));
31650
31666
  }, "markdownSections");
31651
31667
 
31652
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/readers/html/index.js
31668
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/readers/html/index.js
31653
31669
  var HTML = /* @__PURE__ */ new Set([".html", ".htm", ".xhtml"]);
31654
31670
  var first = /* @__PURE__ */ __name((...values) => values.find((value) => typeof value === "string" && value !== ""), "first");
31655
31671
  var loaded = /* @__PURE__ */ __name(async (load, name) => {
@@ -31720,7 +31736,7 @@ var html = {
31720
31736
  }, "read")
31721
31737
  };
31722
31738
 
31723
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/readers/office/index.js
31739
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/readers/office/index.js
31724
31740
  var office = {
31725
31741
  id: "office",
31726
31742
  version: documentExtractor("odt"),
@@ -31731,7 +31747,7 @@ var office = {
31731
31747
  }, "read")
31732
31748
  };
31733
31749
 
31734
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/readers/pdf/index.js
31750
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/readers/pdf/index.js
31735
31751
  var pdf = {
31736
31752
  id: "pdf",
31737
31753
  version: "unpdf",
@@ -31798,7 +31814,7 @@ var pdf = {
31798
31814
  }), "read")
31799
31815
  };
31800
31816
 
31801
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/readers/plain/index.js
31817
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/readers/plain/index.js
31802
31818
  var PLAIN = /* @__PURE__ */ new Set([".txt", ".md", ".markdown", ".csv", ".tsv", ".json", ".log"]);
31803
31819
  var isPlain = /* @__PURE__ */ __name((hint) => PLAIN.has(extensionOf(hint)) || hint.mime?.startsWith("text/") || hint.mime === "application/json", "isPlain");
31804
31820
  var readPlain = /* @__PURE__ */ __name((bytes2) => {
@@ -31818,7 +31834,7 @@ var plain = {
31818
31834
  read: /* @__PURE__ */ __name(async (bytes2) => readPlain(bytes2), "read")
31819
31835
  };
31820
31836
 
31821
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/readers/rtf/index.js
31837
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/readers/rtf/index.js
31822
31838
  var rtf = {
31823
31839
  id: "rtf",
31824
31840
  version: "v1",
@@ -31826,10 +31842,10 @@ var rtf = {
31826
31842
  read: /* @__PURE__ */ __name(async (bytes2) => derived(bytes2, "rtf:v1", rtfText), "read")
31827
31843
  };
31828
31844
 
31829
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
31845
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
31830
31846
  import { basename as basename5 } from "node:path";
31831
31847
 
31832
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/attachments/csv-spans.js
31848
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/attachments/csv-spans.js
31833
31849
  var delimitedSpans = /* @__PURE__ */ __name((text3, delimiter, maxCells = 1e4) => {
31834
31850
  const cells = [];
31835
31851
  let row = 1, column = 1, start = 0, quoted = false, truncated = false;
@@ -31867,7 +31883,7 @@ var delimitedSpans = /* @__PURE__ */ __name((text3, delimiter, maxCells = 1e4) =
31867
31883
  return { cells, truncated };
31868
31884
  }, "delimitedSpans");
31869
31885
 
31870
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
31886
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
31871
31887
  var DELIMITED = {
31872
31888
  ".csv": ",",
31873
31889
  ".tsv": " ",
@@ -31906,7 +31922,7 @@ var sheets = {
31906
31922
  }, "read")
31907
31923
  };
31908
31924
 
31909
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/readers/registry.js
31925
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/readers/registry.js
31910
31926
  var BUILT_INS2 = [office, pdf, docx, doc, rtf, html, sheets, plain, image2];
31911
31927
  var HEAD_BYTES = 1024;
31912
31928
  var readers = [...BUILT_INS2];
@@ -31916,7 +31932,7 @@ var readWithRegistry = /* @__PURE__ */ __name(async (bytes2, hint, context2) =>
31916
31932
  return reader ? reader.read(bytes2, hint, context2) : { status: "unsupported" };
31917
31933
  }, "readWithRegistry");
31918
31934
 
31919
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/attachments/extract.js
31935
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/attachments/extract.js
31920
31936
  var importEngine = /* @__PURE__ */ __name((name) => importFrom(new URL("attachments/extract.js", import.meta.resolve("@wirecat/cli-core")).href, name), "importEngine");
31921
31937
  var extensionOf2 = /* @__PURE__ */ __name(({ name, path: path2 }) => extname3(name ?? path2).toLowerCase(), "extensionOf");
31922
31938
  var extractText = /* @__PURE__ */ __name(async (bytes2, hint, load, signal, env = process.env) => {
@@ -32995,7 +33011,7 @@ function imageSize(input) {
32995
33011
  }
32996
33012
  __name(imageSize, "imageSize");
32997
33013
 
32998
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/attachments/ocr.js
33014
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/attachments/ocr.js
32999
33015
  var MAX_PAGES = 20;
33000
33016
  var MAX_PIXELS = 2e7;
33001
33017
  var cancelled2 = /* @__PURE__ */ __name((signal) => {
@@ -33155,7 +33171,7 @@ var ocrPdf = /* @__PURE__ */ __name(async (bytes2, pipeline2, load, signal) => {
33155
33171
  }
33156
33172
  }, "ocrPdf");
33157
33173
 
33158
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/attachments/pdf-preview.js
33174
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/attachments/pdf-preview.js
33159
33175
  var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = importEngine, env = process.env) => {
33160
33176
  const limits = pdfPreviewLimits(env);
33161
33177
  const cancelled3 = /* @__PURE__ */ __name(() => {
@@ -33232,7 +33248,7 @@ var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = impo
33232
33248
  }
33233
33249
  }, "pdfPreview");
33234
33250
 
33235
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/attachments/picture-reading.js
33251
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/attachments/picture-reading.js
33236
33252
  import { spawn } from "node:child_process";
33237
33253
  import { mkdtempSync, readFileSync as readFileSync8, rmSync as rmSync2, writeFileSync as writeFileSync4 } from "node:fs";
33238
33254
  import { tmpdir } from "node:os";
@@ -33395,7 +33411,7 @@ Read the attached picture.`,
33395
33411
  }
33396
33412
  }, "readPictureWithAgent");
33397
33413
 
33398
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/attachments/transfer.js
33414
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/attachments/transfer.js
33399
33415
  import { createHash as createHash8 } from "node:crypto";
33400
33416
  import { constants } from "node:fs";
33401
33417
  import { lstat as lstat3, open as open5 } from "node:fs/promises";
@@ -33503,7 +33519,7 @@ var transferMime = /* @__PURE__ */ __name((head, hint, name = null) => {
33503
33519
  return hint !== null && /^[a-z0-9.+-]+\/[a-z0-9.+-]+$/i.test(hint) ? hint : "application/octet-stream";
33504
33520
  }, "transferMime");
33505
33521
 
33506
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/file-download.js
33522
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/file-download.js
33507
33523
  import { createWriteStream, mkdirSync as mkdirSync4 } from "node:fs";
33508
33524
  import { link as link3, rm } from "node:fs/promises";
33509
33525
  import { join as join17, resolve as resolve6 } from "node:path";
@@ -33617,12 +33633,12 @@ var save = /* @__PURE__ */ __name(async (file, directory2, fallbackName, { uniqu
33617
33633
  }
33618
33634
  }, "save");
33619
33635
 
33620
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/pictures.js
33636
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/pictures.js
33621
33637
  import { createHash as createHash9 } from "node:crypto";
33622
33638
  import { lstat as lstat4, readFile } from "node:fs/promises";
33623
33639
  import { setTimeout as sleep4 } from "node:timers/promises";
33624
33640
 
33625
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/domain/models.js
33641
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/domain/models.js
33626
33642
  var GROUP_SETTINGS = [
33627
33643
  "allCanPin",
33628
33644
  "onlyAdminsAdd",
@@ -33636,7 +33652,7 @@ var ADMIN_RIGHTS = ["read", "members", "admins", "info", "pin", "link", "post",
33636
33652
  var senderIsMe = /* @__PURE__ */ __name((message, account) => message.outgoing === true || message.senderId !== null && String(message.senderId) === account, "senderIsMe");
33637
33653
  var MEDIA_KINDS = ["photo", "video", "file", "audio", "link"];
33638
33654
 
33639
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/pictures.js
33655
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/pictures.js
33640
33656
  var PICTURE_MAX_BYTES = 25 * 1024 * 1024;
33641
33657
  var PICTURE_FLOOR = 0.25;
33642
33658
  var PAGE3 = 50;
@@ -33677,7 +33693,7 @@ var picturesService = /* @__PURE__ */ __name((deps) => {
33677
33693
  const directory2 = imageModelsDirectory(deps.env);
33678
33694
  if (!isImageModelInstalled(model2, directory2))
33679
33695
  throw new CliError("not_found", missingModel(model2.id), { reason: "model.not-downloaded", model: model2.id });
33680
- const { openPictureEmbedder } = await import("./embedder-MM225YJ6.js");
33696
+ const { openPictureEmbedder } = await import("./embedder-47OYXGLS.js");
33681
33697
  return openPictureEmbedder(model2, directory2);
33682
33698
  }, "open");
33683
33699
  const embedder = /* @__PURE__ */ __name(() => {
@@ -33851,7 +33867,7 @@ var withPictures = /* @__PURE__ */ __name((messages, pictures) => ({
33851
33867
  }, "search")
33852
33868
  }), "withPictures");
33853
33869
 
33854
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/attachments.js
33870
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/attachments.js
33855
33871
  var ATTACHMENT_QUERY = {
33856
33872
  entity: "attachment",
33857
33873
  backend: "sql",
@@ -34322,7 +34338,7 @@ var attachmentsService = /* @__PURE__ */ __name((deps) => ({
34322
34338
  }, "readPicture")
34323
34339
  }), "attachmentsService");
34324
34340
 
34325
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/chat-documents.js
34341
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/chat-documents.js
34326
34342
  var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
34327
34343
  list: /* @__PURE__ */ __name(async (chat, { limit, offset, ref }) => {
34328
34344
  const store = await accountStore(deps);
@@ -34352,7 +34368,7 @@ var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
34352
34368
  }, "list")
34353
34369
  }), "chatDocumentsService");
34354
34370
 
34355
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/retention.js
34371
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/retention.js
34356
34372
  var observationDuration = /* @__PURE__ */ __name((text3, flag) => {
34357
34373
  const match = /^(\d+(?:\.\d+)?)([smhdw])$/.exec(text3);
34358
34374
  const units2 = { s: 1e3, m: 6e4, h: 36e5, d: 864e5, w: 6048e5 };
@@ -34439,7 +34455,7 @@ var isRetentionSelection = /* @__PURE__ */ __name((selection) => {
34439
34455
  }
34440
34456
  }, "isRetentionSelection");
34441
34457
 
34442
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/counters.js
34458
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/counters.js
34443
34459
  var counterFields = /* @__PURE__ */ __name((text3 = "views,reactions,comments") => {
34444
34460
  const fields2 = text3.split(",").map((one) => one.trim());
34445
34461
  if (!fields2.length || fields2.some((one) => !COUNTER_FIELDS.includes(one)) || new Set(fields2).size !== fields2.length)
@@ -34646,7 +34662,7 @@ var countersService = /* @__PURE__ */ __name((deps) => {
34646
34662
  };
34647
34663
  }, "countersService");
34648
34664
 
34649
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/search/respell.js
34665
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/search/respell.js
34650
34666
  var LATIN = {
34651
34667
  \u0430: "a",
34652
34668
  \u0431: "b",
@@ -34701,7 +34717,7 @@ var respelled = /* @__PURE__ */ __name(async (vocabulary, words3) => {
34701
34717
  return found;
34702
34718
  }, "respelled");
34703
34719
 
34704
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/named-chat.js
34720
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/named-chat.js
34705
34721
  var LEAST_USES = 3;
34706
34722
  var SAMPLE2 = 50;
34707
34723
  var CAPITALISED = 0.8;
@@ -34751,7 +34767,7 @@ var queryWords2 = /* @__PURE__ */ __name((query) => {
34751
34767
  }, "queryWords");
34752
34768
  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");
34753
34769
 
34754
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/search-refresh.js
34770
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/search-refresh.js
34755
34771
  var SYNC_KEY = "messages.sync-first";
34756
34772
  var SYNC_BOUNDS = { maxChats: 5, timeMs: 3e4, maxMessages: 500 };
34757
34773
  var keyOf4 = /* @__PURE__ */ __name((chat) => JSON.stringify([chat.account.provider, chat.account.account, chat.chatId]), "keyOf");
@@ -34883,9 +34899,10 @@ var withRefresh = /* @__PURE__ */ __name((found, refreshed) => ({
34883
34899
  ...!refreshed || refreshed.complete ? {} : { coverage: { ...found.coverage, state: "stale" } }
34884
34900
  }), "withRefresh");
34885
34901
 
34886
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/embeddings-search.js
34902
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/embeddings-search.js
34887
34903
  var CANDIDATES = 50;
34888
34904
  var ACROSS_CHATS = 500;
34905
+ var OWN_BLOCK = 5;
34889
34906
  var PER_CHAT = 20;
34890
34907
  var WORD_HITS = 200;
34891
34908
  var RRF_K2 = 60;
@@ -35032,6 +35049,7 @@ var embeddingsSearch = /* @__PURE__ */ __name((deps) => {
35032
35049
  };
35033
35050
  });
35034
35051
  const meaning = [];
35052
+ const own = [];
35035
35053
  const sources = words3.sources;
35036
35054
  if (target2.installed && prepared.scopeAccounts.length && eligibility?.conversations.length !== 0) {
35037
35055
  await withEmbedder(deps, target2, choice, {}, async (embedder) => {
@@ -35041,7 +35059,7 @@ var embeddingsSearch = /* @__PURE__ */ __name((deps) => {
35041
35059
  if (scope === null)
35042
35060
  continue;
35043
35061
  const whole2 = "chatId" in scope || one.provider === MAIL;
35044
- const hits = await store.vectors.nearestConversations(one, {
35062
+ const hits2 = await store.vectors.nearestConversations(one, {
35045
35063
  ...scope,
35046
35064
  ...since === void 0 ? {} : { since },
35047
35065
  model: target2.key,
@@ -35057,11 +35075,24 @@ var embeddingsSearch = /* @__PURE__ */ __name((deps) => {
35057
35075
  query: vector
35058
35076
  });
35059
35077
  const found = [
35060
- ...hits,
35078
+ ...hits2,
35061
35079
  ...images.filter((hit) => !eligibility || eligibility.conversations.includes(hit.summary.id))
35062
35080
  ].sort((a, b) => b.score - a.score);
35081
+ const mine = await store.vectors.nearestConversations(one, {
35082
+ ...scope,
35083
+ ...since === void 0 ? {} : { since },
35084
+ model: target2.key,
35085
+ limit: OWN_BLOCK,
35086
+ query: vector,
35087
+ fromOwner: true,
35088
+ ...eligibility ? { conversations: eligibility.conversations } : {}
35089
+ });
35063
35090
  for (const hit of found)
35064
35091
  sources.set(hit.summary.id, one);
35092
+ for (const hit of mine) {
35093
+ sources.set(hit.summary.id, one);
35094
+ own.push(hit);
35095
+ }
35065
35096
  meaning.push(...whole2 ? found.map((hit) => ({ hit, lead: hit.score })) : shared(found, limit));
35066
35097
  }
35067
35098
  });
@@ -35087,20 +35118,25 @@ var embeddingsSearch = /* @__PURE__ */ __name((deps) => {
35087
35118
  ].sort();
35088
35119
  if (scoped.length > 1)
35089
35120
  readiness.scopes = scoped;
35121
+ const located = /* @__PURE__ */ __name((hit) => {
35122
+ const source2 = sources.get(hit.summary.id);
35123
+ return {
35124
+ ...hit,
35125
+ source: source2,
35126
+ locator: formatLocator({ ...source2, chat: hit.summary.chatId, message: hit.chunk.firstMessageId })
35127
+ };
35128
+ }, "located");
35129
+ const hits = fused(meaning.map(({ hit }) => hit), words3.hits, meaningFloor(target2.key)).slice(0, limit).map(located);
35130
+ const shown = new Set(hits.map((hit) => hit.summary.id));
35131
+ const ownHits = own.filter((hit) => !shown.has(hit.summary.id)).sort((a, b) => b.score - a.score).slice(0, OWN_BLOCK).map((hit) => located({ ...hit, by: ["meaning"] }));
35090
35132
  return {
35091
35133
  accounts: prepared.scopeAccounts,
35092
35134
  model: target2.id,
35093
35135
  meaning: target2.installed ? "searched" : "unavailable",
35094
35136
  ...wordsOutOfTime ? { words: "out-of-time" } : {},
35095
35137
  ...words3.respellings.size ? { respelled: Object.fromEntries(words3.respellings) } : {},
35096
- hits: fused(meaning.map(({ hit }) => hit), words3.hits, meaningFloor(target2.key)).slice(0, limit).map((hit) => {
35097
- const source2 = sources.get(hit.summary.id);
35098
- return {
35099
- ...hit,
35100
- source: source2,
35101
- locator: formatLocator({ ...source2, chat: hit.summary.chatId, message: hit.chunk.firstMessageId })
35102
- };
35103
- }),
35138
+ hits,
35139
+ ...ownHits.length ? { own: ownHits } : {},
35104
35140
  readiness,
35105
35141
  ...locallyRefreshed ? { prepared: locallyRefreshed } : {},
35106
35142
  ...refreshed ? { refreshed, coverage: { state: refreshed.complete ? "partial" : "stale" } } : {},
@@ -35219,13 +35255,13 @@ var meanOf = /* @__PURE__ */ __name((vectors) => {
35219
35255
  return mean2.map((value) => value / length);
35220
35256
  }, "meanOf");
35221
35257
 
35222
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/embeddings.js
35258
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/embeddings.js
35223
35259
  var embeddingsService = /* @__PURE__ */ __name((deps) => ({
35224
35260
  ...embeddingsMaintenance(deps),
35225
35261
  ...embeddingsSearch(deps)
35226
35262
  }), "embeddingsService");
35227
35263
 
35228
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/folders.js
35264
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/folders.js
35229
35265
  var foldersService = /* @__PURE__ */ __name((deps) => {
35230
35266
  const online = /* @__PURE__ */ __name(async (command) => {
35231
35267
  if (deps.offline)
@@ -35366,7 +35402,7 @@ var foldersService = /* @__PURE__ */ __name((deps) => {
35366
35402
  };
35367
35403
  }, "foldersService");
35368
35404
 
35369
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/mentions.js
35405
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/mentions.js
35370
35406
  var REVIEW_COUNT = 500;
35371
35407
  var mentionsService = /* @__PURE__ */ __name((deps) => {
35372
35408
  const located = /* @__PURE__ */ __name(async () => {
@@ -35445,7 +35481,7 @@ var mentionsService = /* @__PURE__ */ __name((deps) => {
35445
35481
  };
35446
35482
  }, "mentionsService");
35447
35483
 
35448
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/domain/message-link.js
35484
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/domain/message-link.js
35449
35485
  var fileLinks = /* @__PURE__ */ __name((attachments) => hitFiles(attachments).map(({ position, kind: kind2, name }) => ({
35450
35486
  position,
35451
35487
  kind: kind2,
@@ -35494,7 +35530,7 @@ var validatePermalink = /* @__PURE__ */ __name((link4) => {
35494
35530
  return { url: link4.url, access: link4.access, reason: link4.reason };
35495
35531
  }, "validatePermalink");
35496
35532
 
35497
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/domain/pin-duration.js
35533
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/domain/pin-duration.js
35498
35534
  var spokenSeconds = /* @__PURE__ */ __name((seconds) => {
35499
35535
  if (seconds % 86400 === 0 && seconds > 86400)
35500
35536
  return `${seconds / 86400}d`;
@@ -35526,7 +35562,7 @@ var pinDurationOf = /* @__PURE__ */ __name((value, allowed, flag = "--expire-tim
35526
35562
  return seconds;
35527
35563
  }, "pinDurationOf");
35528
35564
 
35529
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/sends/send-as.js
35565
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/sends/send-as.js
35530
35566
  var sendAsCheck = /* @__PURE__ */ __name((connection, sendAs) => {
35531
35567
  if (sendAs === void 0) {
35532
35568
  const saved = connection.savedSender?.bind(connection);
@@ -35551,7 +35587,7 @@ var typedSendAs = /* @__PURE__ */ __name((typed) => {
35551
35587
  return sendAs;
35552
35588
  }, "typedSendAs");
35553
35589
 
35554
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/search/total.js
35590
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/search/total.js
35555
35591
  var TOTAL_CAP = 1e4;
35556
35592
  var totalOf = /* @__PURE__ */ __name((count3, shown, hasMore, exact = true) => {
35557
35593
  const least = shown + (hasMore ? 1 : 0);
@@ -35562,7 +35598,7 @@ var totalOf = /* @__PURE__ */ __name((count3, shown, hasMore, exact = true) => {
35562
35598
  return { value: count3, relation: exact ? "eq" : "gte" };
35563
35599
  }, "totalOf");
35564
35600
 
35565
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/search/lucene/meaning-parts.js
35601
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/search/lucene/meaning-parts.js
35566
35602
  var WORD_FIELDS = /* @__PURE__ */ new Set(["text", "exact"]);
35567
35603
  var fieldsOfQuery = /* @__PURE__ */ __name((root, everything) => {
35568
35604
  let narrows = false;
@@ -35591,7 +35627,7 @@ var meaningWords = /* @__PURE__ */ __name((root) => {
35591
35627
  return wanted(root).join(" ").trim();
35592
35628
  }, "meaningWords");
35593
35629
 
35594
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/messages-combined.js
35630
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/messages-combined.js
35595
35631
  var COMBINED_DEFAULTS = { candidateDepth: 300, rrfK: 60, rerank: "all", chatCap: 0 };
35596
35632
  var tokensOf = /* @__PURE__ */ __name((text3) => normalize(text3).match(/[\p{L}\p{N}\p{Co}\p{M}]+/gu) ?? [], "tokensOf");
35597
35633
  var searchCombined = /* @__PURE__ */ __name(async (store, account, request, messenger = {}, options2 = COMBINED_DEFAULTS) => {
@@ -35792,7 +35828,7 @@ var signals = /* @__PURE__ */ __name((hit, terms, corrections, execution, mode,
35792
35828
  return mode === "coverage" ? coverage2 * 4 : mode === "proximity" ? proximity : mode === "phrase" ? phrase2 : coverage2 * 4 + proximity + phrase2;
35793
35829
  }, "signals");
35794
35830
 
35795
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/messages-discovery.js
35831
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/messages-discovery.js
35796
35832
  var MEANING_DEPTH = 100;
35797
35833
  var RRF_K3 = 60;
35798
35834
  var RERANK_DEPTH = 50;
@@ -36118,7 +36154,7 @@ var mixedWithReranker = /* @__PURE__ */ __name((head, scores) => {
36118
36154
  })).sort((a, b) => b.mixed - a.mixed).map(({ hit }) => hit);
36119
36155
  }, "mixedWithReranker");
36120
36156
 
36121
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/thread-context.js
36157
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/thread-context.js
36122
36158
  var THREAD_BOUNDS = { maxHops: 8, maxMessages: 50, maxBytes: 65536, withinMs: 864e5 };
36123
36159
  var bytes = /* @__PURE__ */ __name((items, links) => Buffer.byteLength(JSON.stringify({ items, links }), "utf8"), "bytes");
36124
36160
  var threadBounds = /* @__PURE__ */ __name((options2 = {}) => {
@@ -36317,7 +36353,7 @@ var readThreadContext = /* @__PURE__ */ __name(async (store, account, chat, mess
36317
36353
  return result;
36318
36354
  }, "readThreadContext");
36319
36355
 
36320
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/messages-archive-search.js
36356
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/messages-archive-search.js
36321
36357
  var SEARCH_FILL_MS = 200;
36322
36358
  var statsStore = /* @__PURE__ */ __name(async (store, account, request, messenger = {}) => {
36323
36359
  const stop = Date.now() + SEARCH_FILL_MS;
@@ -36425,7 +36461,7 @@ var accountOf2 = /* @__PURE__ */ __name((hit) => {
36425
36461
  }, "accountOf");
36426
36462
  var keyOf5 = /* @__PURE__ */ __name(({ provider, account }) => `${provider}/${account}`, "keyOf");
36427
36463
 
36428
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/meaning-model.js
36464
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/meaning-model.js
36429
36465
  var meaningModel = /* @__PURE__ */ __name(async (store, env = process.env) => {
36430
36466
  const chosen = chosenTextModel(env);
36431
36467
  if (chosen.from === "chosen" || chosen.id !== DEFAULT_TEXT_MODEL)
@@ -36440,7 +36476,7 @@ var meaningModel = /* @__PURE__ */ __name(async (store, env = process.env) => {
36440
36476
  return (counts.get(before) ?? 0) > (counts.get(now) ?? 0) ? previous.id : current.id;
36441
36477
  }, "meaningModel");
36442
36478
 
36443
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/messages-meaning.js
36479
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/messages-meaning.js
36444
36480
  var meaningText = /* @__PURE__ */ __name((question) => {
36445
36481
  try {
36446
36482
  const text3 = questionLookup(question) === void 0 ? question : questionText(question);
@@ -36519,7 +36555,7 @@ var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, sh
36519
36555
  }
36520
36556
  }, "meaningLane");
36521
36557
 
36522
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/messages-rerank.js
36558
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/messages-rerank.js
36523
36559
  var rerankLane = /* @__PURE__ */ __name((deps) => {
36524
36560
  const choice = deps.reranker ?? DEFAULT_RERANK_MODEL;
36525
36561
  if (choice === "off")
@@ -36531,9 +36567,9 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
36531
36567
  return { skipped: { reason: `${model.id} is not downloaded`, step: "models.download", model: model.id } };
36532
36568
  try {
36533
36569
  const warm = deps.embedders;
36534
- const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-P7FB7YO7.js")).openRerankerProcess(model, directory2, {
36570
+ const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-7RC6DAGM.js")).openRerankerProcess(model, directory2, {
36535
36571
  threads: defaultThreads()
36536
- })) : await (await import("./rerank-AJAVKK5L.js")).openReranker(model, directory2);
36572
+ })) : await (await import("./rerank-5S6TDXHD.js")).openReranker(model, directory2);
36537
36573
  return {
36538
36574
  model: model.id,
36539
36575
  score: /* @__PURE__ */ __name((question, passages) => reranker.score(plainWords(question), passages), "score"),
@@ -36553,7 +36589,7 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
36553
36589
  };
36554
36590
  }, "rerankLane");
36555
36591
 
36556
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/search/question-period.js
36592
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/search/question-period.js
36557
36593
  var DAY7 = 864e5;
36558
36594
  var SPAN = { start: 0, end: 0 };
36559
36595
  var phrase = /* @__PURE__ */ __name((source) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${source})(?![\\p{L}\\p{N}])`, "giu"), "phrase");
@@ -36678,17 +36714,17 @@ var questionPeriod = /* @__PURE__ */ __name((text3, now, zone) => {
36678
36714
  };
36679
36715
  }, "questionPeriod");
36680
36716
 
36681
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/document-pictures.js
36717
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/document-pictures.js
36682
36718
  var openPictureEmbedderFor = /* @__PURE__ */ __name(async ({ env, command } = {}) => {
36683
36719
  const model = imageModel(DEFAULT_IMAGE_MODEL);
36684
36720
  const directory2 = imageModelsDirectory(env);
36685
36721
  if (!isImageModelInstalled(model, directory2))
36686
36722
  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 });
36687
- const { openPictureEmbedder } = await import("./embedder-MM225YJ6.js");
36723
+ const { openPictureEmbedder } = await import("./embedder-47OYXGLS.js");
36688
36724
  return openPictureEmbedder(model, directory2);
36689
36725
  }, "openPictureEmbedderFor");
36690
36726
 
36691
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/document-source.js
36727
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/document-source.js
36692
36728
  var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file) => {
36693
36729
  const metadata = note.frontMatter;
36694
36730
  const account = accounts.find(({ id: id3 }) => String(id3) === note.folderId);
@@ -36710,7 +36746,7 @@ var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file) =>
36710
36746
  };
36711
36747
  }, "documentSource");
36712
36748
 
36713
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/embeddings/keys.js
36749
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/embeddings/keys.js
36714
36750
  var endpointKeyName = /* @__PURE__ */ __name((baseUrl) => {
36715
36751
  const host = new URL(baseUrl).host;
36716
36752
  return ["openai", "anthropic"].includes(host) ? `endpoint:${host}` : host;
@@ -36743,7 +36779,7 @@ var embeddingKeys = /* @__PURE__ */ __name((app, env = process.env, keyring) =>
36743
36779
  };
36744
36780
  }, "embeddingKeys");
36745
36781
 
36746
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/models/openai.js
36782
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/models/openai.js
36747
36783
  var options = strictObject({
36748
36784
  temperature: range(0, 2),
36749
36785
  top_p: range(0, 1),
@@ -36810,7 +36846,7 @@ var openai = {
36810
36846
  }), "complete")
36811
36847
  };
36812
36848
 
36813
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/models/index.js
36849
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/models/index.js
36814
36850
  var modelGateway = /* @__PURE__ */ __name((deps) => ({
36815
36851
  complete: /* @__PURE__ */ __name(async (request) => {
36816
36852
  if (deps.signal?.aborted)
@@ -36825,7 +36861,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
36825
36861
  if (!adapter && target2.provider === "openai")
36826
36862
  adapter = openai;
36827
36863
  if (!adapter && target2.provider === "anthropic")
36828
- adapter = (await import("./anthropic-VQUOVYOW.js")).anthropic;
36864
+ adapter = (await import("./anthropic-LPOJ3TYF.js")).anthropic;
36829
36865
  if (!adapter)
36830
36866
  throw new CliError("validation_error", `no model adapter for ${target2.provider}`);
36831
36867
  if (request.images !== void 0 && adapter.images !== true)
@@ -36885,7 +36921,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
36885
36921
  }, "complete")
36886
36922
  }), "modelGateway");
36887
36923
 
36888
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/enrichment-setting.js
36924
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/enrichment-setting.js
36889
36925
  var SECTION2 = "enrichment";
36890
36926
  var ENRICHMENT_PROVIDERS = ["openai", "anthropic"];
36891
36927
  var DEFAULT_BASE_URLS = {
@@ -36960,7 +36996,7 @@ var costOf = /* @__PURE__ */ __name((usage, setting) => {
36960
36996
  return price ? Math.round((usage.input * price.input + usage.output * price.output) * 1e6) / 1e6 : null;
36961
36997
  }, "costOf");
36962
36998
 
36963
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/enrichment.js
36999
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/enrichment.js
36964
37000
  var ENRICH_PER_RUN = 600;
36965
37001
  var MAX_LINE = 400;
36966
37002
  var line2 = pipe(unknown(), transform((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim().slice(0, MAX_LINE) : ""));
@@ -37036,7 +37072,7 @@ var enrichmentState = /* @__PURE__ */ __name(async (store, env, estimateFor, key
37036
37072
  };
37037
37073
  }, "enrichmentState");
37038
37074
 
37039
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/notes-title-tier.js
37075
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/notes-title-tier.js
37040
37076
  var plainQueryWords = /* @__PURE__ */ __name((query) => {
37041
37077
  let root;
37042
37078
  try {
@@ -37063,7 +37099,7 @@ var titleTiers = /* @__PURE__ */ __name((hits, words3) => {
37063
37099
  return [...hits].sort((a, b) => rank(a) - rank(b));
37064
37100
  }, "titleTiers");
37065
37101
 
37066
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/notes-search.js
37102
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/notes-search.js
37067
37103
  var storeQuery = /* @__PURE__ */ __name(async (store, text3, { exact, timezone } = {}) => resolvedQuery(store, parsedQuery(text3, exact), timezone), "storeQuery");
37068
37104
  var parsedQuery = /* @__PURE__ */ __name((text3, exact) => validateFields(parseLucene(text3, { ...SEARCH_QUERY, defaultField: exact ? "exact" : "text" })).root, "parsedQuery");
37069
37105
  var resolvedQuery = /* @__PURE__ */ __name(async (store, root, timezone) => {
@@ -37491,7 +37527,7 @@ var searchNotesOf = /* @__PURE__ */ __name(async (store, account, text3, { accou
37491
37527
  };
37492
37528
  }, "searchNotesOf");
37493
37529
 
37494
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/events-search.js
37530
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/events-search.js
37495
37531
  var MAX_EVENTS_OFFSET = 1e3;
37496
37532
  var iso3 = /* @__PURE__ */ __name((at3) => at3 === null ? null : new Date(at3).toISOString(), "iso");
37497
37533
  var accountIdsOf = /* @__PURE__ */ __name(async (store, accounts) => {
@@ -37609,7 +37645,7 @@ var searchEvents = /* @__PURE__ */ __name(async (store, query, { limit = 20, off
37609
37645
  };
37610
37646
  }, "searchEvents");
37611
37647
 
37612
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/search-all-business.js
37648
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/search-all-business.js
37613
37649
  var OWN_BUSINESS = { provider: "business", account: INTERNAL_NOTES };
37614
37650
  var BUSINESS_WORDS_ONLY = "invoices, payments, orders, contracts, subscriptions, products and wallets are found by the words of their numbers and names only";
37615
37651
  var placeOf = /* @__PURE__ */ __name(({ source, imported }) => source ?? (imported === void 0 ? OWN_BUSINESS : { provider: imported, account: "" }), "placeOf");
@@ -37639,7 +37675,7 @@ var searchBusiness = /* @__PURE__ */ __name(async (store, { words: words3, anyWo
37639
37675
  };
37640
37676
  }, "searchBusiness");
37641
37677
 
37642
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/search-all-meetings.js
37678
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/search-all-meetings.js
37643
37679
  var MOST_HITS_PER_MEETING = 3;
37644
37680
  var PAGE_ROWS = 200;
37645
37681
  var MOST_PAGES = 25;
@@ -37867,7 +37903,7 @@ var titleItem = /* @__PURE__ */ __name((account, meeting, query) => ({
37867
37903
  foundBy: ["title"]
37868
37904
  }), "titleItem");
37869
37905
 
37870
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/search-harder.js
37906
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/search-harder.js
37871
37907
  var SECTION3 = "search_harder";
37872
37908
  var HARDER_MODELS = {
37873
37909
  anthropic: "claude-haiku-5-5",
@@ -38113,7 +38149,7 @@ var reorderHarder = /* @__PURE__ */ __name(async (question, hits, { laterPage, a
38113
38149
  };
38114
38150
  }, "reorderHarder");
38115
38151
 
38116
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/search-all.js
38152
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/search-all.js
38117
38153
  var RESOURCES_SEARCHED = ["messages", "mail", "notes", "events", "crm", "business", "meetings"];
38118
38154
  var refusal2 = /* @__PURE__ */ __name((error, text3) => {
38119
38155
  const { reason, span } = error.details ?? {};
@@ -38558,7 +38594,7 @@ var insidePeriodFirst = /* @__PURE__ */ __name((ordered, period) => {
38558
38594
  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);
38559
38595
  }, "insidePeriodFirst");
38560
38596
 
38561
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/server-search.js
38597
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/server-search.js
38562
38598
  var SERVER_SEARCH_KEY = "messages.server-search";
38563
38599
  var SERVER_BOUNDS = { timeMs: 5e3, perCall: 100, maxCalls: 3, textBytes: 262144 };
38564
38600
  var DEFAULT_BACKEND = "both";
@@ -38749,8 +38785,12 @@ var searchServer = /* @__PURE__ */ __name(async (deps, request) => {
38749
38785
  return { report, sources };
38750
38786
  }, "searchServer");
38751
38787
 
38752
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/messages.js
38788
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/messages.js
38753
38789
  var DELETE_AT_ONCE = 10;
38790
+ var atOnce = /* @__PURE__ */ __name((ids2) => {
38791
+ if (ids2.length > DELETE_AT_ONCE)
38792
+ throw new CliError("validation_error", `at most ${DELETE_AT_ONCE} messages at once, got ${ids2.length}`);
38793
+ }, "atOnce");
38754
38794
  var filesOf = /* @__PURE__ */ __name(({ attachments }) => {
38755
38795
  const files = fileLinks(attachments);
38756
38796
  return files.length > 0 ? { files } : {};
@@ -38786,6 +38826,15 @@ var messagesService = /* @__PURE__ */ __name((deps) => {
38786
38826
  ...query.saved === void 0 ? {} : { saved: query.saved }
38787
38827
  }).catch(() => void 0);
38788
38828
  }, "remember");
38829
+ const waiting = /* @__PURE__ */ __name(async (connection, chat, ids2) => {
38830
+ const list2 = capability(connection, "scheduled", "list scheduled messages");
38831
+ const { id: chatId } = await connection.resolve(chat);
38832
+ const queued = await list2(chatId);
38833
+ const unknown3 = ids2.filter((id3) => !queued.some((message) => message.id === id3));
38834
+ if (unknown3.length > 0)
38835
+ throw new CliError("not_found", `nothing scheduled in this chat has the id ${unknown3.join(", ")} \u2014 a scheduled message has an id of its own, not the one of a sent message; \`messages scheduled ${chat}\` lists them`, { sent: false });
38836
+ return { chatId, found: ids2.map((id3) => queued.find((message) => message.id === id3)) };
38837
+ }, "waiting");
38789
38838
  const pinning = /* @__PURE__ */ __name(async ({ chat, message }, pinned, asked, requested) => {
38790
38839
  const allowed = deps.messenger.pinDurations;
38791
38840
  if (requested !== void 0 && !allowed?.includes(requested))
@@ -39091,6 +39140,53 @@ var messagesService = /* @__PURE__ */ __name((deps) => {
39091
39140
  await guardedWrite(guard, { operationId, chatId, kind: "delete", count: messages.length, forEveryone }, () => remove(chatId, messages, { forEveryone }));
39092
39141
  return { operationId, chatId, deleted: messages, forEveryone };
39093
39142
  }, "delete"),
39143
+ cancelScheduled: /* @__PURE__ */ __name(async ({ chat, ids: ids2 }) => {
39144
+ atOnce(ids2);
39145
+ const connection = await deps.connection();
39146
+ const cancel = capability(connection, "cancelScheduled", "cancel a scheduled message");
39147
+ const { chatId } = await waiting(connection, chat, ids2);
39148
+ const operationId = newOperationId();
39149
+ await guardedWrite(guard, { operationId, chatId, kind: "delete", key: "messages.scheduled.cancel", count: ids2.length }, () => cancel(chatId, ids2));
39150
+ return { operationId, chatId, cancelled: ids2 };
39151
+ }, "cancelScheduled"),
39152
+ editScheduled: /* @__PURE__ */ __name(async ({ chat, id: id3, text: typed, markdown, html: html2, at: at3 }) => {
39153
+ if (typed === void 0 && at3 === void 0)
39154
+ throw new CliError("validation_error", "nothing to change \u2014 give the new text, --at-time, or both");
39155
+ const connection = await deps.connection();
39156
+ const edit = capability(connection, "editScheduled", "edit a scheduled message");
39157
+ const prepared = typed === void 0 ? void 0 : await formatted(connection, typed, { markdown, html: html2 });
39158
+ const change = prepared && (deps.agentText ? visibleFormattedText(prepared) : prepared);
39159
+ if (change !== void 0 && change.text.trim() === "")
39160
+ throw new CliError("validation_error", "no new text \u2014 the marks leave nothing");
39161
+ const { chatId, found: [current] } = await waiting(connection, chat, [id3]);
39162
+ const scheduledFor = at3 ?? current?.scheduledFor ?? current?.timestamp;
39163
+ if (scheduledFor === void 0)
39164
+ throw new CliError("invalid_response", "the scheduled message has no time");
39165
+ const operationId = newOperationId();
39166
+ const message = await guardedWrite(guard, {
39167
+ operationId,
39168
+ chatId,
39169
+ kind: "edit",
39170
+ key: "messages.scheduled.edit",
39171
+ messageId: id3,
39172
+ scheduledFor,
39173
+ ...change === void 0 ? {} : { length: change.text.length }
39174
+ }, () => edit(chatId, id3, {
39175
+ at: scheduledFor,
39176
+ ...change === void 0 ? {} : { text: change.text },
39177
+ ...change === void 0 || change.spans.length === 0 ? {} : { formatting: change.spans }
39178
+ }));
39179
+ return { operationId, message, scheduledFor };
39180
+ }, "editScheduled"),
39181
+ sendScheduled: /* @__PURE__ */ __name(async ({ chat, ids: ids2 }) => {
39182
+ atOnce(ids2);
39183
+ const connection = await deps.connection();
39184
+ const send = capability(connection, "sendScheduled", "send a scheduled message now");
39185
+ const { chatId } = await waiting(connection, chat, ids2);
39186
+ const operationId = newOperationId();
39187
+ const messages = await guardedWrite(guard, { operationId, chatId, kind: "message", key: "messages.scheduled.send", count: ids2.length }, () => send(chatId, ids2));
39188
+ return { operationId, chatId, sent: ids2, messages };
39189
+ }, "sendScheduled"),
39094
39190
  forward: /* @__PURE__ */ __name(async ({ chat, message, to, silent, sendId, sendAs, threadId: typedThread }) => {
39095
39191
  const connection = await deps.connection();
39096
39192
  const forward = capability(connection, "forward", "forward a message");
@@ -39189,7 +39285,7 @@ var checkMediaOptions = /* @__PURE__ */ __name((messenger, asked, attachments) =
39189
39285
  throw new CliError("validation_error", `${MEDIA_FLAGS[first2]} needs a --photo or --file`);
39190
39286
  }, "checkMediaOptions");
39191
39287
 
39192
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/domain/channel-tags.js
39288
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/domain/channel-tags.js
39193
39289
  var CHANNEL_TAG_RULES_VERSION = "keywords-v1";
39194
39290
  var RULES2 = {
39195
39291
  ai: [/\b(ai|gpt|llm|machine learning|artificial intelligence)\b/iu, /нейросет|искусственн/iu],
@@ -39204,7 +39300,7 @@ var classifyChannel = /* @__PURE__ */ __name((metadata) => Object.entries(RULES2
39204
39300
  return fields2.length ? [{ tag, score: fields2.length / 3, fields: fields2 }] : [];
39205
39301
  }), "classifyChannel");
39206
39302
 
39207
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/metadata.js
39303
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/metadata.js
39208
39304
  var metadataService = /* @__PURE__ */ __name((deps) => {
39209
39305
  const held = /* @__PURE__ */ __name(async (reference, { includeLeft = false } = {}) => {
39210
39306
  const store = await deps.store();
@@ -39290,7 +39386,7 @@ var metadataService = /* @__PURE__ */ __name((deps) => {
39290
39386
  };
39291
39387
  }, "metadataService");
39292
39388
 
39293
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/moderation/run.js
39389
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/moderation/run.js
39294
39390
  var FIRST_LOOK_MS = 24 * 36e5;
39295
39391
  var moderateWith = /* @__PURE__ */ __name(async (run2) => {
39296
39392
  const { chatId, title, rules, point, since, dryRun } = run2;
@@ -39327,7 +39423,7 @@ var moderateWith = /* @__PURE__ */ __name(async (run2) => {
39327
39423
  return { chatId, rows, notes };
39328
39424
  }, "moderateWith");
39329
39425
 
39330
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/moderation.js
39426
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/moderation.js
39331
39427
  var moderationService = /* @__PURE__ */ __name((deps) => {
39332
39428
  const file = /* @__PURE__ */ __name(() => {
39333
39429
  const env = deps.env ?? process.env;
@@ -39412,7 +39508,7 @@ var moderatorOf = /* @__PURE__ */ __name((adapter, deps) => ({
39412
39508
  }, "removePerson")
39413
39509
  }), "moderatorOf");
39414
39510
 
39415
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/private-people.js
39511
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/private-people.js
39416
39512
  var noteItem = /* @__PURE__ */ __name((provider, note) => ({
39417
39513
  id: note.id,
39418
39514
  contact: formatReference({ type: "contact", provider, id: note.personId }),
@@ -39456,7 +39552,7 @@ var privatePeopleService = /* @__PURE__ */ __name((deps) => {
39456
39552
  };
39457
39553
  }, "privatePeopleService");
39458
39554
 
39459
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/rankings.js
39555
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/rankings.js
39460
39556
  var empty = /* @__PURE__ */ __name(() => ({
39461
39557
  total: 0,
39462
39558
  population: 0,
@@ -39712,7 +39808,7 @@ var rankingsService = /* @__PURE__ */ __name((deps) => ({
39712
39808
  }, "evidence")
39713
39809
  }), "rankingsService");
39714
39810
 
39715
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/reply-stats.js
39811
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/reply-stats.js
39716
39812
  var FIELDS2 = ["date", "chat", "kind", "muted"];
39717
39813
  var WAITING_TAIL = 100;
39718
39814
  var plainOnly = /* @__PURE__ */ __name((text3, command) => {
@@ -39846,7 +39942,7 @@ var replyStatsService = /* @__PURE__ */ __name((deps) => {
39846
39942
  };
39847
39943
  }, "replyStatsService");
39848
39944
 
39849
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/searches.js
39945
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/searches.js
39850
39946
  var savedSearchItem = /* @__PURE__ */ __name((one) => ({
39851
39947
  id: one.id,
39852
39948
  name: one.name,
@@ -39972,7 +40068,7 @@ var searchesService = /* @__PURE__ */ __name((deps) => {
39972
40068
  };
39973
40069
  }, "searchesService");
39974
40070
 
39975
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/tags.js
40071
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/tags.js
39976
40072
  var TAGGING_QUERY = {
39977
40073
  entity: "tagging",
39978
40074
  backend: "sql",
@@ -40056,7 +40152,7 @@ var tagsService = /* @__PURE__ */ __name((deps) => {
40056
40152
  };
40057
40153
  }, "tagsService");
40058
40154
 
40059
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/topics.js
40155
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/topics.js
40060
40156
  var actionOf = /* @__PURE__ */ __name(({ title, closed, pinned, hidden, icon }) => {
40061
40157
  const set = [closed, pinned, hidden].filter((one) => one !== void 0).length;
40062
40158
  if (title !== void 0 || icon !== void 0 || set !== 1)
@@ -40255,7 +40351,7 @@ var topicsService = /* @__PURE__ */ __name((deps) => {
40255
40351
  };
40256
40352
  }, "topicsService");
40257
40353
 
40258
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/evidence.js
40354
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/evidence.js
40259
40355
  import { createHash as createHash11, randomUUID as randomUUID6 } from "node:crypto";
40260
40356
  var hash2 = /* @__PURE__ */ __name((value) => createHash11("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
40261
40357
  var positive2 = /* @__PURE__ */ __name((value, name, minimum = 1) => {
@@ -40329,7 +40425,7 @@ var prepareEvidencePacket = /* @__PURE__ */ __name(({ kind: kind2, source, page,
40329
40425
  return { ...content, id: randomUUID6(), fingerprint: hash2(content) };
40330
40426
  }, "prepareEvidencePacket");
40331
40427
 
40332
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/evidence-read.js
40428
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/evidence-read.js
40333
40429
  var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, limit, before }, messenger = {}) => {
40334
40430
  if (!Number.isSafeInteger(limit) || limit < 1 || limit > 100)
40335
40431
  throw new CliError("validation_error", "evidence message limit must be an integer from 1 to 100");
@@ -40349,7 +40445,7 @@ var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, l
40349
40445
  return { ...packet, nextBeforeId: older && last ? last.id : null };
40350
40446
  }, "readEvidencePacket");
40351
40447
 
40352
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/meeting-project-discovery.js
40448
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/meeting-project-discovery.js
40353
40449
  var scopeKeys = [
40354
40450
  "accountId",
40355
40451
  "meetingId",
@@ -40371,7 +40467,7 @@ var optionKeys = /* @__PURE__ */ new Set([
40371
40467
  "maxVocabularyReadBytes"
40372
40468
  ]);
40373
40469
 
40374
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/text-model-choice.js
40470
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/text-model-choice.js
40375
40471
  import { createHash as createHash12 } from "node:crypto";
40376
40472
  import { existsSync as existsSync2 } from "node:fs";
40377
40473
  var useTextModel = /* @__PURE__ */ __name(async (id3, { env, command }) => {
@@ -40502,14 +40598,14 @@ var addCustomTextModel = /* @__PURE__ */ __name(async (id3, payload, { env, fetc
40502
40598
  return { ...checked2.output, custom: true };
40503
40599
  }, "addCustomTextModel");
40504
40600
 
40505
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/calendar/sync.js
40601
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/calendar/sync.js
40506
40602
  var DAY8 = 864e5;
40507
40603
  var SLOTS_EVERY = 7 * DAY8;
40508
40604
 
40509
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/calendar/feeds.js
40605
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/calendar/feeds.js
40510
40606
  var FEED_LIMITS = { maxBytes: 10 * 1024 * 1024, timeoutMs: 3e4, redirects: 5 };
40511
40607
 
40512
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/calendar/reads.js
40608
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/calendar/reads.js
40513
40609
  var LIST = "events list";
40514
40610
  var EVENT_TYPES = [
40515
40611
  "default",
@@ -40568,7 +40664,7 @@ var EVENTS_QUERY = {
40568
40664
  } : field)
40569
40665
  };
40570
40666
 
40571
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/calendar/writer.js
40667
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/calendar/writer.js
40572
40668
  var EVENTS_NOTIFY_KEY = "events.notify";
40573
40669
  var EVENTS_DELETE_SERIES_KEY = "events.delete.series";
40574
40670
  var EVENTS_REMIND_HOOK_KEY = "events.remind.hook";
@@ -40586,7 +40682,7 @@ var CALENDAR_WRITE_DEFAULTS = {
40586
40682
  [EVENTS_REMIND_HOOK_KEY]: "deny"
40587
40683
  };
40588
40684
 
40589
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/context/communication-selection.js
40685
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/context/communication-selection.js
40590
40686
  var communicationFields = {
40591
40687
  sources: pipe(array(strictObject({
40592
40688
  id: pipe(string(), regex(/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/)),
@@ -40618,7 +40714,7 @@ var communicationRequest = /* @__PURE__ */ __name((value, preparationAfter) => {
40618
40714
  return { ...input, after, before };
40619
40715
  }, "communicationRequest");
40620
40716
 
40621
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/meeting-preparation-validation.js
40717
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/meeting-preparation-validation.js
40622
40718
  var MEETING_PREPARATION_LIMITS = {
40623
40719
  meetings: { min: 1, max: 20, default: 5 },
40624
40720
  cues: { min: 1, max: 100, default: 10 },
@@ -40691,7 +40787,7 @@ var validateMeetingPreparationRequest = /* @__PURE__ */ __name((externalId, orig
40691
40787
  };
40692
40788
  }, "validateMeetingPreparationRequest");
40693
40789
 
40694
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/meeting-communications-selection.js
40790
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/meeting-communications-selection.js
40695
40791
  var validatePreparationCommunications = /* @__PURE__ */ __name((section, request, after) => {
40696
40792
  const fail2 = /* @__PURE__ */ __name(() => {
40697
40793
  throw new CliError("invalid_response", "Preparation communications returned another selection or invalid evidence");
@@ -40739,7 +40835,7 @@ var validatePreparationCommunications = /* @__PURE__ */ __name((section, request
40739
40835
  }
40740
40836
  }, "validatePreparationCommunications");
40741
40837
 
40742
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/package-upgrade.js
40838
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/package-upgrade.js
40743
40839
  var upgradePackage = /* @__PURE__ */ __name(async ({ current, command, packageName, check: check2 }, ports) => {
40744
40840
  const installer = ports.installer();
40745
40841
  const argv = updateCommand(installer, packageName);
@@ -40804,7 +40900,7 @@ var dayAfter = /* @__PURE__ */ __name((published) => {
40804
40900
  return Number.isNaN(time2) ? null : new Date(time2 + 24 * 60 * 60 * 1e3).toISOString();
40805
40901
  }, "dayAfter");
40806
40902
 
40807
- // node_modules/.pnpm/@wirecat+cli-core@0.699.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_13ea275dd452fd1070c59d86b8d8c388/node_modules/@wirecat/cli-core/dist/services/index.js
40903
+ // node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/index.js
40808
40904
  var servicesFor = /* @__PURE__ */ __name((deps) => {
40809
40905
  const pictures = picturesService(deps);
40810
40906
  const base = {
@@ -40966,8 +41062,11 @@ export {
40966
41062
  graphqlVariables,
40967
41063
  manifestBaseUrl,
40968
41064
  signRequest,
41065
+ underBase,
40969
41066
  parameterValue,
40970
41067
  nextPage,
41068
+ crmWindowOf,
41069
+ walk,
40971
41070
  DEFAULT_PACE,
40972
41071
  pacePathFor,
40973
41072
  Pacer,
@@ -41016,8 +41115,6 @@ export {
41016
41115
  SYNCED_FROM,
41017
41116
  syncRecorded,
41018
41117
  crmStatus,
41019
- crmWindowOf,
41020
- walk,
41021
41118
  endpointKeyName,
41022
41119
  embeddingKeys,
41023
41120
  modelGateway,