@wirecat/hubspot-cli 0.3.2 → 0.4.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 +18 -0
  2. package/README.md +6 -5
  3. package/dist/bin/hubspot.js +2 -2
  4. package/dist/bundle/agent-NST4YXJR.js +40 -0
  5. package/dist/bundle/{all-profiles-6452VSJB.js → all-profiles-JVEE4PXX.js} +11 -11
  6. package/dist/bundle/{anthropic-VQUOVYOW.js → anthropic-6HT57GNF.js} +5 -5
  7. package/dist/bundle/{app-server-EQZUP4H4.js → app-server-FOBFF6G6.js} +68 -68
  8. package/dist/bundle/{bun-AJPJ4ZUN.js → bun-GW443QB3.js} +2 -2
  9. package/dist/bundle/{bun-sqlite-AGXGSF6D.js → bun-sqlite-TGIAICDN.js} +6 -6
  10. package/dist/bundle/{chunk-ARTJLL7W.js → chunk-2BCWK5BF.js} +5 -5
  11. package/dist/bundle/{chunk-JUKAIXKY.js → chunk-2Q2XIXDL.js} +1 -1
  12. package/dist/bundle/{chunk-X5S5KUSU.js → chunk-3BM6KBWP.js} +19 -19
  13. package/dist/bundle/{chunk-J5P5VSRG.js → chunk-3LMW7U7F.js} +8 -8
  14. package/dist/bundle/{chunk-NNMU2TDU.js → chunk-3MPMYAII.js} +1 -1
  15. package/dist/bundle/{chunk-WGBVRDY3.js → chunk-3MUHCLRY.js} +25 -3
  16. package/dist/bundle/{chunk-TIHDBKA7.js → chunk-3SRGN5MQ.js} +2 -2
  17. package/dist/bundle/{chunk-EMOVVERN.js → chunk-4OPN3KCN.js} +5 -5
  18. package/dist/bundle/{chunk-6MFP47XC.js → chunk-5G4L6NQJ.js} +35 -35
  19. package/dist/bundle/{chunk-DQB5JMTY.js → chunk-5KLNBGPU.js} +1 -1
  20. package/dist/bundle/{chunk-ABXVU5O4.js → chunk-5OBVICFK.js} +8 -1
  21. package/dist/bundle/{chunk-LKSNISYV.js → chunk-5WKJFMC3.js} +4 -4
  22. package/dist/bundle/{chunk-B2W3C4N6.js → chunk-5ZVYIA56.js} +5 -5
  23. package/dist/bundle/{chunk-AF7DANIR.js → chunk-6NUXFVJQ.js} +1 -1
  24. package/dist/bundle/{chunk-3PEKYGZ3.js → chunk-6ULR7N3T.js} +2 -2
  25. package/dist/bundle/{chunk-VW5F6FK3.js → chunk-7JVKQ6NM.js} +4 -4
  26. package/dist/bundle/{chunk-VQEAZXTV.js → chunk-7OJ43BAH.js} +7 -7
  27. package/dist/bundle/{chunk-PMP37KLR.js → chunk-7QH5BZUG.js} +3 -3
  28. package/dist/bundle/{chunk-OJIJVOOA.js → chunk-A6PVEUGN.js} +16 -16
  29. package/dist/bundle/{chunk-FIVD4HM4.js → chunk-AT43MYQL.js} +8 -8
  30. package/dist/bundle/{chunk-3R4KRNUZ.js → chunk-ATGD64VO.js} +8 -8
  31. package/dist/bundle/{chunk-DSRXCLPO.js → chunk-AV2ZJ4WX.js} +1 -1
  32. package/dist/bundle/{chunk-3DIXAEGH.js → chunk-BXZRSXBL.js} +3 -3
  33. package/dist/bundle/{chunk-5K3FGXZH.js → chunk-CFQQTDSA.js} +1 -1
  34. package/dist/bundle/{chunk-KO4VR5NK.js → chunk-DBPFHJXX.js} +4 -4
  35. package/dist/bundle/{chunk-GRFICQTZ.js → chunk-DG4RBKIV.js} +1 -1
  36. package/dist/bundle/{chunk-5AYKCKSE.js → chunk-E33KM3DB.js} +11 -11
  37. package/dist/bundle/{chunk-5ZV7REBE.js → chunk-EBJYK7UM.js} +63 -60
  38. package/dist/bundle/{chunk-GZZR5U3K.js → chunk-ETKLP4VE.js} +12 -12
  39. package/dist/bundle/{chunk-BN22EKQQ.js → chunk-EU7AVWSX.js} +2 -2
  40. package/dist/bundle/{chunk-PLRUUXK7.js → chunk-F3HJ2E3P.js} +6 -6
  41. package/dist/bundle/{chunk-B3EH22CO.js → chunk-F4ZLRS4B.js} +1 -1
  42. package/dist/bundle/{chunk-5PPG73G6.js → chunk-FK4LEJZM.js} +3 -3
  43. package/dist/bundle/{chunk-M763RNWP.js → chunk-FOLKK6FW.js} +13 -13
  44. package/dist/bundle/{chunk-NTQBS2JL.js → chunk-FWW2CUXH.js} +4 -4
  45. package/dist/bundle/{chunk-SEELWPRD.js → chunk-GJSHLF43.js} +8 -8
  46. package/dist/bundle/{chunk-CBCEMFCF.js → chunk-GOOXUCJW.js} +2 -2
  47. package/dist/bundle/{chunk-BUGROVF3.js → chunk-HM6AMYHR.js} +2 -2
  48. package/dist/bundle/{chunk-PHXOL5HZ.js → chunk-HM72O37C.js} +156 -156
  49. package/dist/bundle/{chunk-KVXEEKBB.js → chunk-HPRKSL5S.js} +2 -2
  50. package/dist/bundle/{chunk-3TEFE6YU.js → chunk-HQYJ66ZX.js} +7 -7
  51. package/dist/bundle/{chunk-3I2FGNWO.js → chunk-HVXOA4FO.js} +1 -1
  52. package/dist/bundle/{chunk-IBTMK5KD.js → chunk-IED6MKPU.js} +25 -25
  53. package/dist/bundle/{chunk-LA3YU4K7.js → chunk-JKNUCEII.js} +1 -1
  54. package/dist/bundle/{chunk-IQ2XZ62J.js → chunk-JWO3PB5Z.js} +18 -18
  55. package/dist/bundle/{chunk-BAUK2MD5.js → chunk-K4DWBOO6.js} +43 -64
  56. package/dist/bundle/{chunk-YIF5M5R6.js → chunk-LS4S7PAP.js} +3 -3
  57. package/dist/bundle/{chunk-RVWGFD32.js → chunk-LX7QMRRG.js} +13 -13
  58. package/dist/bundle/{chunk-WCQW4GYO.js → chunk-M25KVDHA.js} +24 -8
  59. package/dist/bundle/{chunk-L433IDOX.js → chunk-MQACXJLG.js} +8 -8
  60. package/dist/bundle/{chunk-7VHBS5BJ.js → chunk-N4EIJ53V.js} +2 -2
  61. package/dist/bundle/{chunk-O3VM5PTJ.js → chunk-NL3RKJR6.js} +1 -1
  62. package/dist/bundle/{chunk-LT5KE44Q.js → chunk-NLZADZ4F.js} +61 -61
  63. package/dist/bundle/{chunk-E4X7JAFC.js → chunk-OLDIP4CV.js} +3 -3
  64. package/dist/bundle/{chunk-AVUMH42T.js → chunk-PKFLSX5F.js} +8 -8
  65. package/dist/bundle/{chunk-IXZLMFPO.js → chunk-PMJCZIV4.js} +1 -1
  66. package/dist/bundle/{chunk-NZGI74GS.js → chunk-PQUZ2YDC.js} +6 -6
  67. package/dist/bundle/{chunk-TKK3ECDS.js → chunk-Q7DIEU6L.js} +7 -7
  68. package/dist/bundle/{chunk-E4FAMU2S.js → chunk-QIFCH5DZ.js} +347 -313
  69. package/dist/bundle/{chunk-WRCKE5ND.js → chunk-QJHRRJKD.js} +3 -3
  70. package/dist/bundle/{chunk-7UEL65GQ.js → chunk-QNQ4V4UT.js} +8 -8
  71. package/dist/bundle/{chunk-JP2HJXFO.js → chunk-QODPEZC5.js} +3 -3
  72. package/dist/bundle/{chunk-ODPU3II6.js → chunk-QV4GDVBN.js} +8 -8
  73. package/dist/bundle/{chunk-2A64XS22.js → chunk-RFGIUCKU.js} +3 -3
  74. package/dist/bundle/{chunk-GC6FLHZF.js → chunk-T3GZKV5A.js} +12 -12
  75. package/dist/bundle/{chunk-HPZRUY6S.js → chunk-TAF4PKDS.js} +1 -1
  76. package/dist/bundle/{chunk-K4X5ZHI2.js → chunk-UHHXZKB2.js} +16 -16
  77. package/dist/bundle/{chunk-4DNHXRCJ.js → chunk-UIWWAT3C.js} +7 -7
  78. package/dist/bundle/{chunk-ITGNDZRR.js → chunk-V23OHBGM.js} +3 -3
  79. package/dist/bundle/{chunk-U6XA3OOM.js → chunk-V2B2OWTC.js} +2 -2
  80. package/dist/bundle/{chunk-2NCO4E4T.js → chunk-VDAYIXV4.js} +6 -6
  81. package/dist/bundle/{chunk-7NZT7Y55.js → chunk-VMF2UIQI.js} +1 -1
  82. package/dist/bundle/{chunk-QBEDVMLZ.js → chunk-W5X37TBC.js} +2 -2
  83. package/dist/bundle/{chunk-EE4JSYGZ.js → chunk-WATDMTDC.js} +3 -3
  84. package/dist/bundle/{chunk-Q27QAB4X.js → chunk-WBUVNKHJ.js} +7 -7
  85. package/dist/bundle/{chunk-7LQRXVQ3.js → chunk-WLFYEAZ6.js} +978 -548
  86. package/dist/bundle/{chunk-5YNAVVCW.js → chunk-X5U7GLHD.js} +3 -3
  87. package/dist/bundle/{chunk-JK2SNLU5.js → chunk-XCDRFC6G.js} +17 -17
  88. package/dist/bundle/{chunk-DJ2GJ77D.js → chunk-XDDTJYGA.js} +434 -371
  89. package/dist/bundle/{chunk-2PRVWEJC.js → chunk-XJVFXHDI.js} +2 -2
  90. package/dist/bundle/{chunk-2HYGCLKN.js → chunk-XMWMA2N5.js} +77 -38
  91. package/dist/bundle/{chunk-BHZUPOQY.js → chunk-YYYRE4AV.js} +26 -26
  92. package/dist/bundle/{chunk-DW23LM47.js → chunk-Z3YOKGVZ.js} +2 -2
  93. package/dist/bundle/{chunk-A6UFH3QU.js → chunk-Z4PY5BDP.js} +4 -4
  94. package/dist/bundle/command-contract-LYX2QNIA.js +40 -0
  95. package/dist/bundle/{command-server-entry-GJSMDSNE.js → command-server-entry-OJQ55UA2.js} +28 -28
  96. package/dist/bundle/{decode-6PLXHVHW.js → decode-CDQDRPRJ.js} +5 -5
  97. package/dist/bundle/{dispatch-TAQ7635E.js → dispatch-JQBAZWCL.js} +8 -8
  98. package/dist/bundle/{echarts-UZ7QLRE2.js → echarts-GJ5JJG2A.js} +2 -2
  99. package/dist/bundle/{embed-AWLL4EBF.js → embed-BUQXGMKR.js} +6 -6
  100. package/dist/bundle/{embedder-MM225YJ6.js → embedder-FCX6LE4O.js} +9 -9
  101. package/dist/bundle/{failure-MR2XVHFP.js → failure-I6AAF5R5.js} +2 -2
  102. package/dist/bundle/{first-run-KCZVNFJ7.js → first-run-RPYEXXQK.js} +12 -12
  103. package/dist/bundle/first-screen-Y4EH3HZS.js +40 -0
  104. package/dist/bundle/hubspot.js +25 -25
  105. package/dist/bundle/{instructions-ZJ7U3QUE.js → instructions-LPVTPERS.js} +1 -1
  106. package/dist/bundle/{mcp-CNV7F2XZ.js → mcp-YGOAUNC3.js} +2 -2
  107. package/dist/bundle/meeting-combined-FEEVVUGC.js +25 -0
  108. package/dist/bundle/{meeting-model-OYXB2NOE.js → meeting-model-TRGBEWCY.js} +11 -11
  109. package/dist/bundle/{meeting-semantic-S3DBB7XD.js → meeting-semantic-RSF5KNKD.js} +6 -6
  110. package/dist/bundle/{node-HGCZGZ4R.js → node-UAT3EIAP.js} +2 -2
  111. package/dist/bundle/{node-sqlite-RKYSRKEB.js → node-sqlite-3HKDQNFD.js} +7 -7
  112. package/dist/bundle/{oauth-PYDCAQ7Y.js → oauth-DYW2NSZP.js} +7 -7
  113. package/dist/bundle/{open-UCDSQUN2.js → open-KBRXJ5BC.js} +5 -5
  114. package/dist/bundle/{openai-Y4F5ZC7O.js → openai-YNCLRTSK.js} +15 -15
  115. package/dist/bundle/{process-P7FB7YO7.js → process-63BB7LKP.js} +1 -1
  116. package/dist/bundle/{program-VKYZXANH.js → program-VX52OB3O.js} +132 -98
  117. package/dist/bundle/{prompt-E5TKZ37Q.js → prompt-TWLJ3M2O.js} +5 -5
  118. package/dist/bundle/{recognize-5NYPTSLT.js → recognize-GQ6DLGE7.js} +4 -4
  119. package/dist/bundle/{remote-U4LUAHF2.js → remote-RKNSF3TT.js} +9 -9
  120. package/dist/bundle/{rerank-AJAVKK5L.js → rerank-H4HSGQUJ.js} +7 -7
  121. package/dist/bundle/{schemas-QLQ2K6DL.js → schemas-LDK7O6VW.js} +1 -1
  122. package/dist/bundle/{serve-4UJ3R5IP.js → serve-4ZNIAL7H.js} +9 -9
  123. package/dist/bundle/server-3IYIZEEQ.js +86 -0
  124. package/dist/bundle/{server-DUKWJUKD.js → server-4G4QB3QN.js} +60 -60
  125. package/dist/bundle/{source-LJG4BWRU.js → source-2UCNCCO7.js} +79 -79
  126. package/dist/bundle/{sqlite-runtime-KLEA4XAU.js → sqlite-runtime-C2JYC7JF.js} +6 -6
  127. package/dist/bundle/{state-COGSYMVH.js → state-3KDXCXHG.js} +6 -6
  128. package/dist/bundle/store-2MNUHHZC.js +32 -0
  129. package/dist/bundle/{store-V5UMSWK4.js → store-J5FQBZYR.js} +26 -22
  130. package/dist/bundle/{store-BJXCSP26.js → store-LXLG5HTS.js} +24 -24
  131. package/dist/bundle/store-maintenance-command-DDB7TR6V.js +73 -0
  132. package/dist/bundle/surface-ZTZANYKC.js +72 -0
  133. package/dist/bundle/writer-X7PGBLDH.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 +56 -8
  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 +3 -3
  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-LX7QMRRG.js";
12
12
  import {
13
13
  WIRECAT_TOOLS
14
- } from "./chunk-ABXVU5O4.js";
14
+ } from "./chunk-5OBVICFK.js";
15
15
  import {
16
16
  isNewer,
17
17
  updateCommand
18
- } from "./chunk-PMP37KLR.js";
18
+ } from "./chunk-7QH5BZUG.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-FOLKK6FW.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-RFGIUCKU.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-E33KM3DB.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-HM72O37C.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-2BCWK5BF.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-WLFYEAZ6.js";
142
142
  import {
143
143
  DEFAULT_STEMMERS,
144
144
  createStemmer,
145
145
  cutsDeep
146
- } from "./chunk-7UEL65GQ.js";
146
+ } from "./chunk-QNQ4V4UT.js";
147
147
  import {
148
148
  MINUTE,
149
149
  YEAR,
150
150
  aheadOf
151
- } from "./chunk-WRCKE5ND.js";
151
+ } from "./chunk-QJHRRJKD.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-WBUVNKHJ.js";
161
161
  import {
162
162
  LOG_ATTRIBUTES,
163
163
  TASK_KINDS,
@@ -180,30 +180,30 @@ import {
180
180
  sourceOf3 as sourceOf2,
181
181
  typedCommand,
182
182
  withAttempt
183
- } from "./chunk-IBTMK5KD.js";
183
+ } from "./chunk-IED6MKPU.js";
184
184
  import {
185
185
  isCliFailure,
186
186
  sqliteCode
187
- } from "./chunk-DW23LM47.js";
187
+ } from "./chunk-Z3YOKGVZ.js";
188
188
  import {
189
189
  localOnly,
190
190
  refuseOffComputer,
191
191
  remoteKey
192
- } from "./chunk-L433IDOX.js";
192
+ } from "./chunk-MQACXJLG.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";
199
+ } from "./chunk-M25KVDHA.js";
200
200
  import {
201
201
  DEFAULT_TASK_CATEGORIES,
202
202
  FALLBACK_CATEGORY,
203
203
  readSharedSection,
204
204
  sharedConfigPath,
205
205
  writeSharedSection
206
- } from "./chunk-4DNHXRCJ.js";
206
+ } from "./chunk-UIWWAT3C.js";
207
207
  import {
208
208
  Unzip,
209
209
  UnzipInflate,
@@ -214,11 +214,11 @@ import {
214
214
  placedText,
215
215
  runEmbedders,
216
216
  textModelsDirectory
217
- } from "./chunk-BAUK2MD5.js";
217
+ } from "./chunk-K4DWBOO6.js";
218
218
  import {
219
219
  installFiles,
220
220
  megabytes
221
- } from "./chunk-KO4VR5NK.js";
221
+ } from "./chunk-DBPFHJXX.js";
222
222
  import {
223
223
  MAX_ACTIONS,
224
224
  ModerationRules,
@@ -232,7 +232,7 @@ import {
232
232
  someUndone,
233
233
  validateFormattedText,
234
234
  visibleFormattedText
235
- } from "./chunk-SEELWPRD.js";
235
+ } from "./chunk-GJSHLF43.js";
236
236
  import {
237
237
  CEILING_KEY,
238
238
  DEFAULT_PERMISSIONS,
@@ -241,7 +241,7 @@ import {
241
241
  levelFor,
242
242
  skipFlagFor,
243
243
  stops
244
- } from "./chunk-3TEFE6YU.js";
244
+ } from "./chunk-HQYJ66ZX.js";
245
245
  import {
246
246
  COUNTER_FIELDS,
247
247
  RANKING_TOKENIZER_VERSION,
@@ -260,7 +260,7 @@ import {
260
260
  pickPerson,
261
261
  rankingOptions,
262
262
  rankingQuestion
263
- } from "./chunk-IQ2XZ62J.js";
263
+ } from "./chunk-JWO3PB5Z.js";
264
264
  import {
265
265
  MESSAGE_PARSING,
266
266
  QUERY_LIMITS,
@@ -270,11 +270,11 @@ import {
270
270
  isQueryLimit,
271
271
  outOfTime,
272
272
  searchError
273
- } from "./chunk-JP2HJXFO.js";
273
+ } from "./chunk-QODPEZC5.js";
274
274
  import {
275
275
  fold,
276
276
  normalize
277
- } from "./chunk-DQB5JMTY.js";
277
+ } from "./chunk-5KLNBGPU.js";
278
278
  import {
279
279
  CRM_KINDS,
280
280
  DEAL_KINDS,
@@ -300,10 +300,10 @@ import {
300
300
  parseLocator,
301
301
  parseReference,
302
302
  providerNamed
303
- } from "./chunk-GC6FLHZF.js";
303
+ } from "./chunk-T3GZKV5A.js";
304
304
  import {
305
305
  normalizeTag
306
- } from "./chunk-CBCEMFCF.js";
306
+ } from "./chunk-GOOXUCJW.js";
307
307
  import {
308
308
  OPERATORS_BY_TYPE,
309
309
  READ_BUDGET_EXCEEDED,
@@ -327,11 +327,11 @@ import {
327
327
  validateQuery,
328
328
  walkQuery,
329
329
  windowOf
330
- } from "./chunk-LT5KE44Q.js";
330
+ } from "./chunk-NLZADZ4F.js";
331
331
  import {
332
332
  storePath,
333
333
  wirecatDirectory
334
- } from "./chunk-3PEKYGZ3.js";
334
+ } from "./chunk-6ULR7N3T.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-3BM6KBWP.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-HM6AMYHR.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.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/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.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/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.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/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.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/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.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/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.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/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.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/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.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/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.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/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.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/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.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/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.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/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.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/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.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/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.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/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.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/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.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/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.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/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.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/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.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/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.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/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.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/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.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/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.124.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
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.124.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
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.124.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
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.124.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
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.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/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.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/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.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/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.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/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.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/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.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/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.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/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.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/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.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/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.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/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.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/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.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/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.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/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"],
@@ -20950,7 +20963,7 @@ var hideNever = /* @__PURE__ */ __name((messenger, group) => {
20950
20963
  return group;
20951
20964
  }, "hideNever");
20952
20965
 
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
20966
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/deps.js
20954
20967
  var accountStore = /* @__PURE__ */ __name(async (deps) => (await deps.store()).forAccount(await deps.account()), "accountStore");
20955
20968
  var crossAccount = /* @__PURE__ */ __name((deps, _reason) => deps.store(), "crossAccount");
20956
20969
  var NO_LOCAL_STORE = "this answer comes from the messenger, not from the local store";
@@ -21012,7 +21025,7 @@ var storedDeps = /* @__PURE__ */ __name((messenger, store, account, guard) => ({
21012
21025
  }), "storedDeps");
21013
21026
  var storeModeDeps = /* @__PURE__ */ __name((messenger, store, account, guard) => ({ ...storedDeps(messenger, store, account, guard), offline: false, reads: "store" }), "storeModeDeps");
21014
21027
 
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
21028
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/questions.js
21016
21029
  var LINKS = /https?:\/\/\S+/g;
21017
21030
  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
21031
  var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker = "others" }) => {
@@ -21042,7 +21055,7 @@ var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker
21042
21055
  });
21043
21056
  }, "questions");
21044
21057
 
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
21058
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/members-audit.js
21046
21059
  var AUDIT_PAGE = 200;
21047
21060
  var AUDIT_BUDGET = 10;
21048
21061
  var AUDIT_PAUSE_MS = 1e3;
@@ -21122,7 +21135,7 @@ var burstJoins = /* @__PURE__ */ __name((members) => {
21122
21135
  return found;
21123
21136
  }, "burstJoins");
21124
21137
 
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
21138
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/task-categories.js
21126
21139
  var names = /* @__PURE__ */ __name((categories) => categories.map(({ name }) => name).join(", "), "names");
21127
21140
  var taskCategoryOf = /* @__PURE__ */ __name((categories = DEFAULT_TASK_CATEGORIES, flag = "--category") => (typed) => {
21128
21141
  const name = typed.trim().toLowerCase();
@@ -21179,7 +21192,7 @@ var categorize = /* @__PURE__ */ __name((text3, categories = DEFAULT_TASK_CATEGO
21179
21192
  return best.name;
21180
21193
  }, "categorize");
21181
21194
 
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
21195
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/task-rules.js
21183
21196
  var taskAccount = /* @__PURE__ */ __name(({ provider, account }) => `${provider}:${account}`, "taskAccount");
21184
21197
  var RULES_IN = {
21185
21198
  dialog: "all",
@@ -21385,7 +21398,7 @@ var applyTaskRulesToChats = /* @__PURE__ */ __name(async (store, account, chatId
21385
21398
  return passes;
21386
21399
  }, "applyTaskRulesToChats");
21387
21400
 
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
21401
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/patience.js
21389
21402
  import { setTimeout as sleep } from "node:timers/promises";
21390
21403
  var LONGEST_WAIT_MS = 5 * 60 * 1e3;
21391
21404
  var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
@@ -21408,10 +21421,10 @@ var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
21408
21421
  }
21409
21422
  }, "patiently");
21410
21423
 
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
21424
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/archive.js
21412
21425
  import { setTimeout as sleep2 } from "node:timers/promises";
21413
21426
 
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
21427
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/backfill-estimate.js
21415
21428
  var REQUEST_MS = 400;
21416
21429
  var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, maxPages, pauseMs }) => {
21417
21430
  const lowest = ranges[0];
@@ -21434,13 +21447,13 @@ var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, max
21434
21447
  };
21435
21448
  }, "estimateBackfill");
21436
21449
 
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
21450
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/domain/recovery.js
21438
21451
  var withRecovery = /* @__PURE__ */ __name((error) => ({
21439
21452
  ...error,
21440
21453
  retryable: typeof error.retryable === "boolean" ? error.retryable : error.code === "rate_limited" || error.status === 429
21441
21454
  }), "withRecovery");
21442
21455
 
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
21456
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/batch.js
21444
21457
  var actionable = /* @__PURE__ */ __name((error) => {
21445
21458
  if (isCliFailure(error))
21446
21459
  return withRecovery({ code: error.code, message: error.message, ...error.details });
@@ -21523,7 +21536,7 @@ var mergeBatches = /* @__PURE__ */ __name((a, b) => {
21523
21536
  };
21524
21537
  }, "mergeBatches");
21525
21538
 
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
21539
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/message-resolution.js
21527
21540
  var readChatId = /* @__PURE__ */ __name(async (deps, reference, store, account) => {
21528
21541
  if (deps.reads !== "store")
21529
21542
  return keptChatId(deps.messenger, reference, store, account);
@@ -21724,7 +21737,7 @@ var chatsMatchingIn = /* @__PURE__ */ __name(async (store, accounts, pattern) =>
21724
21737
  }, "chatsMatchingIn");
21725
21738
  var isText = /* @__PURE__ */ __name((value) => typeof value === "string" && value !== "", "isText");
21726
21739
 
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
21740
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/images/context/index.js
21728
21741
  var CONTEXT_MESSAGES = 3;
21729
21742
  var CONTEXT_MINUTES = 10;
21730
21743
  var MAX_CHARS = 1200;
@@ -21748,12 +21761,12 @@ var context = {
21748
21761
  }, "describe")
21749
21762
  };
21750
21763
 
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
21764
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/images/registry.js
21752
21765
  var BUILT_INS = [context];
21753
21766
  var providers = [...BUILT_INS];
21754
21767
  var registeredImageProviders = /* @__PURE__ */ __name(() => providers, "registeredImageProviders");
21755
21768
 
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
21769
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/conversations.js
21757
21770
  var READ_PAGE = 5e3;
21758
21771
  var CHAIN = 50;
21759
21772
  var CONVERSATION_QUERY = {
@@ -21905,7 +21918,7 @@ var sized = /* @__PURE__ */ __name((size2) => {
21905
21918
  return size2;
21906
21919
  }, "sized");
21907
21920
 
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
21921
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/embeddings-maintenance.js
21909
21922
  var REFRESH_BOUNDS = { maxChats: 20, maxChunks: 2e3 };
21910
21923
  var MESSAGE_PAGE = 5e3;
21911
21924
  var PER_SESSION = 8;
@@ -21924,7 +21937,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = chosenTextModel(dep
21924
21937
  price: remote.price,
21925
21938
  installed: true,
21926
21939
  perBatch: PER_REQUEST * concurrency,
21927
- open: /* @__PURE__ */ __name(async () => (await import("./remote-U4LUAHF2.js")).openRemote(remote, apiKey, {
21940
+ open: /* @__PURE__ */ __name(async () => (await import("./remote-RKNSF3TT.js")).openRemote(remote, apiKey, {
21928
21941
  concurrency,
21929
21942
  env: deps.env ?? process.env
21930
21943
  }), "open")
@@ -21944,7 +21957,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = chosenTextModel(dep
21944
21957
  if (!isTextModelInstalled(model, directory2))
21945
21958
  throw notDownloaded(model.id);
21946
21959
  if (apart) {
21947
- const { openProcess } = await import("./process-P7FB7YO7.js");
21960
+ const { openProcess } = await import("./process-63BB7LKP.js");
21948
21961
  return openProcess(model, directory2, { threads: threads ?? defaultThreads() });
21949
21962
  }
21950
21963
  return openEmbedder(model, directory2, { threads: threads ?? defaultThreads() });
@@ -22233,7 +22246,7 @@ var shaped = /* @__PURE__ */ __name(({ chatId, builtAt, algorithmVersion, pendin
22233
22246
  return { ...one, state };
22234
22247
  }, "shaped");
22235
22248
 
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
22249
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/search-catchup.js
22237
22250
  var CATCH_UP_BOUNDS = { maxChunks: 500, maxMessages: 1e4, timeMs: 3e4 };
22238
22251
  var validateCatchUpBounds = /* @__PURE__ */ __name((options2) => {
22239
22252
  for (const [key, value, maximum] of [
@@ -22286,7 +22299,7 @@ var catchUpSearch = /* @__PURE__ */ __name(async (deps, chat, options2, signal,
22286
22299
  }
22287
22300
  }, "catchUpSearch");
22288
22301
 
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
22302
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/archive.js
22290
22303
  var pushed = /* @__PURE__ */ __name((deps, what) => {
22291
22304
  if (deps.reads === "store") {
22292
22305
  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 +22680,7 @@ var timeOfKey = /* @__PURE__ */ __name(async (store, account, chatId, key, byTim
22667
22680
  return message?.timestamp ?? fallback;
22668
22681
  }, "timeOfKey");
22669
22682
 
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
22683
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/botcheck/check.js
22671
22684
  var DAY_MS = 864e5;
22672
22685
  var NEW_DAYS = 30;
22673
22686
  var SAME_TEXT_MIN = 20;
@@ -22744,7 +22757,7 @@ var scorePerson = /* @__PURE__ */ __name(({ subject, provider, activity, photos,
22744
22757
  };
22745
22758
  }, "scorePerson");
22746
22759
 
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
22760
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/http/time-limit.js
22748
22761
  var timeLimit = /* @__PURE__ */ __name((ms) => {
22749
22762
  const controller = new AbortController();
22750
22763
  const timer = setTimeout(() => controller.abort(new DOMException("The operation timed out.", "TimeoutError")), ms);
@@ -22760,7 +22773,7 @@ var withTimeLimit = /* @__PURE__ */ __name(async (ms, run2) => {
22760
22773
  }
22761
22774
  }, "withTimeLimit");
22762
22775
 
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
22776
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/botcheck/registries.js
22764
22777
  var REGISTRIES = {
22765
22778
  cas: { title: "Combot Anti-Spam (CAS)", docs: "https://cas.chat/api" },
22766
22779
  lols: { title: "lols.bot", docs: "https://api.lols.bot/lols-bot.json" }
@@ -22847,7 +22860,7 @@ var notCovered = /* @__PURE__ */ __name((messenger, now = /* @__PURE__ */ new Da
22847
22860
  detail: `lists Telegram accounts only, not ${messenger} ones`
22848
22861
  })), "notCovered");
22849
22862
 
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
22863
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/botcheck/service.js
22851
22864
  var ACTIVITY_MESSAGES = 1e3;
22852
22865
  var botCheckService = /* @__PURE__ */ __name((deps) => {
22853
22866
  const subjectOf = /* @__PURE__ */ __name(async (reference) => {
@@ -22935,7 +22948,7 @@ var botCheckService = /* @__PURE__ */ __name((deps) => {
22935
22948
  };
22936
22949
  }, "botCheckService");
22937
22950
 
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
22951
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/domain/thread.js
22939
22952
  var threadIdOf = /* @__PURE__ */ __name((value) => {
22940
22953
  if (value === void 0)
22941
22954
  return void 0;
@@ -22945,7 +22958,7 @@ var threadIdOf = /* @__PURE__ */ __name((value) => {
22945
22958
  return id3;
22946
22959
  }, "threadIdOf");
22947
22960
 
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
22961
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/chat-stats.js
22949
22962
  var TOP_POSTS = 5;
22950
22963
  var JOINS = /* @__PURE__ */ new Set(["join", "add"]);
22951
22964
  var LEAVES = /* @__PURE__ */ new Set(["leave", "remove"]);
@@ -23062,7 +23075,7 @@ var median = /* @__PURE__ */ __name((values) => {
23062
23075
  return Math.round(sorted.length % 2 === 0 ? ((sorted[middle - 1] ?? upper) + upper) / 2 : upper);
23063
23076
  }, "median");
23064
23077
 
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
23078
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/member-history.js
23066
23079
  var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
23067
23080
  const events = [];
23068
23081
  for (const stay of stays) {
@@ -23094,7 +23107,7 @@ var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
23094
23107
  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
23108
  }, "memberEvents");
23096
23109
 
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
23110
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/chats.js
23098
23111
  var EVENTS_DAYS = 7;
23099
23112
  var TRACKED_DAYS = 30;
23100
23113
  var STATS_PAGE = 1e3;
@@ -23389,7 +23402,7 @@ var storedMembers = /* @__PURE__ */ __name(async (store, chatId) => {
23389
23402
  return members.length === 0 ? null : members;
23390
23403
  }, "storedMembers");
23391
23404
 
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
23405
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/inbox.js
23393
23406
  var INBOX_CHATS = 20;
23394
23407
  var REVIEW_DAYS = 3;
23395
23408
  var UNANSWERED_HOURS = 24;
@@ -23597,7 +23610,7 @@ var inboxService = /* @__PURE__ */ __name((deps) => {
23597
23610
  };
23598
23611
  }, "inboxService");
23599
23612
 
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
23613
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/excerpt.js
23601
23614
  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
23615
  var excerpt = /* @__PURE__ */ __name((text3, query, size2 = 240, options2 = {}) => {
23603
23616
  const flat = text3.replace(/\s+/g, " ").trim();
@@ -23613,7 +23626,7 @@ var excerpt = /* @__PURE__ */ __name((text3, query, size2 = 240, options2 = {})
23613
23626
  }, "excerpt");
23614
23627
  var withExcerpt = /* @__PURE__ */ __name(({ matchedText, ...hit }, query) => ({ ...hit, excerpt: excerpt(matchedText ?? hit.text, query) }), "withExcerpt");
23615
23628
 
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
23629
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/person-meetings.js
23617
23630
  var SCAN = 1e3;
23618
23631
  var SNIPPET = 200;
23619
23632
  var SNIPPET_ROWS = 6;
@@ -23678,7 +23691,7 @@ var personMeetings = /* @__PURE__ */ __name(async (store, people, accounts, { li
23678
23691
  return { items, total: newest.length, hasMore: cut || newest.length > limit };
23679
23692
  }, "personMeetings");
23680
23693
 
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
23694
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/person-context.js
23682
23695
  var CONTEXT_MESSAGES2 = 10;
23683
23696
  var CONTEXT_BYTES = 64 * 1024;
23684
23697
  var toContext = /* @__PURE__ */ __name((key, message, chatTitle2) => ({
@@ -23984,10 +23997,10 @@ var personMessages = /* @__PURE__ */ __name(async (store, asked, reference, { ch
23984
23997
  };
23985
23998
  }, "personMessages");
23986
23999
 
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
24000
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
23988
24001
  import { createHash } from "node:crypto";
23989
24002
 
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
24003
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/meeting-reference.js
23991
24004
  var missing2 = /* @__PURE__ */ __name(() => new CliError("not_found", "the meeting evidence is unavailable for this account"), "missing");
23992
24005
  var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId, reference, options2 = {}) => {
23993
24006
  const parsed = parseMeetingReference(reference);
@@ -24005,7 +24018,7 @@ var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId,
24005
24018
  return { parsed, meeting };
24006
24019
  }, "authorizedMeetingMetadata");
24007
24020
 
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
24021
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
24009
24022
  var hash = /* @__PURE__ */ __name((value) => createHash("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
24010
24023
  var checkMeetingCancelled = /* @__PURE__ */ __name((signal) => {
24011
24024
  if (signal?.aborted)
@@ -24204,7 +24217,7 @@ var readMeetingEvidence = /* @__PURE__ */ __name(async (store, accountId, refere
24204
24217
  return { ...packet, fingerprint: hash(packet) };
24205
24218
  }, "readMeetingEvidence");
24206
24219
 
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
24220
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/person-meeting-context.js
24208
24221
  var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference, options2) => {
24209
24222
  const { meetings = 10, cues = 5, bytes: bytes2 = 64 * 1024, scanLimit = 1e3, since, signal } = options2;
24210
24223
  const requestedAccounts = options2.accountIds;
@@ -24303,7 +24316,7 @@ var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference,
24303
24316
  };
24304
24317
  }, "personMeetingContext");
24305
24318
 
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
24319
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/person-preparation.js
24307
24320
  var PREPARE_BYTES = 96 * 1024;
24308
24321
  var MEETINGS = 5;
24309
24322
  var CUES = 3;
@@ -24426,7 +24439,7 @@ var meetingsOf = /* @__PURE__ */ __name(async (store, uid, stored, since, left)
24426
24439
  }
24427
24440
  }, "meetingsOf");
24428
24441
 
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
24442
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/person-profile.js
24430
24443
  var personProfile = /* @__PURE__ */ __name(async (deps, person, known2) => {
24431
24444
  const online = deps.offline ? void 0 : await deps.connection();
24432
24445
  const held = await storeIfOpen(deps);
@@ -24496,7 +24509,7 @@ var quiet = /* @__PURE__ */ __name((facts) => facts.chats.map(({ id: id3, title,
24496
24509
  complete: false
24497
24510
  })), "quiet");
24498
24511
 
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
24512
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/person-timeline.js
24500
24513
  var TIMELINE_ITEMS = 50;
24501
24514
  var TIMELINE_MAX = 500;
24502
24515
  var SCOPES = ["personal", "work"];
@@ -24558,7 +24571,7 @@ var personTimeline = /* @__PURE__ */ __name(async (store, asked, reference, { sc
24558
24571
  };
24559
24572
  }, "personTimeline");
24560
24573
 
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
24574
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/chat-coverage.js
24562
24575
  var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
24563
24576
  const ids2 = [...new Set(chatIds)];
24564
24577
  if (ids2.length === 0)
@@ -24584,7 +24597,7 @@ var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
24584
24597
  }));
24585
24598
  }, "chatCoverage");
24586
24599
 
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
24600
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/context/evidence-response.js
24588
24601
  var contextSourceKey = /* @__PURE__ */ __name((source) => JSON.stringify([source.kind, source.accountId, source.provider, source.account]), "contextSourceKey");
24589
24602
  var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
24590
24603
  const fail2 = /* @__PURE__ */ __name(() => {
@@ -24648,7 +24661,7 @@ var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
24648
24661
  }
24649
24662
  }, "validateContextEvidencePage");
24650
24663
 
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
24664
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/context/read-budget.js
24652
24665
  var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
24653
24666
  if (!limits || typeof limits !== "object" || Array.isArray(limits))
24654
24667
  throw new CliError("validation_error", "limits needs a context read allowance");
@@ -24701,7 +24714,7 @@ var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
24701
24714
  };
24702
24715
  }, "contextReadBudget");
24703
24716
 
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
24717
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/context-evidence.js
24705
24718
  var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits) => {
24706
24719
  if (!port || typeof port.read !== "function")
24707
24720
  throw new CliError("configuration_error", "context evidence reader is unavailable");
@@ -24745,7 +24758,7 @@ var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits)
24745
24758
  };
24746
24759
  }, "createContextEvidenceReader");
24747
24760
 
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
24761
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/project-gathering-around.js
24749
24762
  var storedMessageNeighbours = /* @__PURE__ */ __name((messages) => ({
24750
24763
  async around(ref, window2) {
24751
24764
  const at3 = parseLocator(ref);
@@ -24840,7 +24853,7 @@ var storedNeighbours = /* @__PURE__ */ __name((store) => {
24840
24853
  };
24841
24854
  }, "storedNeighbours");
24842
24855
 
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
24856
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/project-gathering-request.js
24844
24857
  import { createHash as createHash2 } from "node:crypto";
24845
24858
  var DAY3 = 864e5;
24846
24859
  var MAX_TIME = 864e13;
@@ -25102,7 +25115,7 @@ var contextChunks = /* @__PURE__ */ __name((after, before) => {
25102
25115
  }, "contextChunks");
25103
25116
  var projectUnits = /* @__PURE__ */ __name((plan, window2) => {
25104
25117
  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) => ({
25118
+ const literal2 = chunks.flatMap((chunk) => plan.lanes.filter((lane) => lane.query !== null).flatMap((lane) => plan.sources.map((source, sourceIndex) => ({
25106
25119
  lane,
25107
25120
  source,
25108
25121
  sourceIndex,
@@ -25129,7 +25142,7 @@ var projectUnits = /* @__PURE__ */ __name((plan, window2) => {
25129
25142
  }
25130
25143
  ] : [];
25131
25144
  }));
25132
- const units2 = [...literal, ...bySender, ...linked];
25145
+ const units2 = [...literal2, ...bySender, ...linked];
25133
25146
  if (units2.length > LIMITS.units)
25134
25147
  fail(`${units2.length} lane \xD7 source \xD7 90-day reads exceed ${LIMITS.units}; narrow the lanes, sources or window`);
25135
25148
  return units2;
@@ -25156,7 +25169,7 @@ var decodeCheckpoint = /* @__PURE__ */ __name((text3, plan) => {
25156
25169
  return value;
25157
25170
  }, "decodeCheckpoint");
25158
25171
 
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
25172
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/project-gathering.js
25160
25173
  var terminal = /* @__PURE__ */ new Set(["done", "unavailable", "failed"]);
25161
25174
  var PAGE2 = 20;
25162
25175
  var PEOPLE = 20;
@@ -25560,7 +25573,7 @@ var peopleOf = /* @__PURE__ */ __name((items, senderOf) => {
25560
25573
  return [...byKey.values()].sort((a, b) => b.items - a.items || a.name.localeCompare(b.name));
25561
25574
  }, "peopleOf");
25562
25575
 
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
25576
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/meeting-project-candidate-matching.js
25564
25577
  var normalizedText = /* @__PURE__ */ __name((text3) => text3.normalize("NFKC").toLowerCase().replace(/\s+/gu, " "), "normalizedText");
25565
25578
  var termsOf = /* @__PURE__ */ __name((entry) => [
25566
25579
  { name: entry.name, kind: "canonical" },
@@ -25604,7 +25617,7 @@ var matchVocabularyTerms = /* @__PURE__ */ __name((catalog, texts) => {
25604
25617
  return result.sort((a, b) => Number(a.entry.id) - Number(b.entry.id));
25605
25618
  }, "matchVocabularyTerms");
25606
25619
 
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
25620
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/project-gathering-mentions.js
25608
25621
  var KINDS = ["project", "tag", "topic"];
25609
25622
  var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering, options2 = {}) => {
25610
25623
  if (typeof vocabulary?.vocabulary !== "function")
@@ -25659,7 +25672,7 @@ var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering,
25659
25672
  };
25660
25673
  }, "findEvidenceMentions");
25661
25674
 
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
25675
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/project-purposes.js
25663
25676
  var BUILT_IN_PURPOSES = ["work", "sales", "support", "other"];
25664
25677
  var DEFAULT_PURPOSES = ["work"];
25665
25678
  var LINK_PURPOSE = "work";
@@ -25689,7 +25702,7 @@ var purposeList = /* @__PURE__ */ __name((value, previous = []) => [
25689
25702
  ...value.split(",").map((one) => one.trim()).filter(Boolean)
25690
25703
  ], "purposeList");
25691
25704
 
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
25705
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/stored-project-gathering.js
25693
25706
  var storedChatCount = /* @__PURE__ */ __name((store) => async (account, chatId, { since, until }) => {
25694
25707
  const window2 = { since: new Date(since).toISOString(), until: new Date(until - 1).toISOString() };
25695
25708
  const [messages, newest, oldest] = await Promise.all([
@@ -26000,7 +26013,7 @@ var purposeHintOf = /* @__PURE__ */ __name((linked, rows, of) => {
26000
26013
  return { chat: top.ref, relationship: link4.relationship, items, of };
26001
26014
  }, "purposeHintOf");
26002
26015
 
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
26016
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/people.js
26004
26017
  var peopleService = /* @__PURE__ */ __name((deps) => {
26005
26018
  const localCard = /* @__PURE__ */ __name(async (card, includeNotes = false) => {
26006
26019
  const held = await storeIfOpen(deps);
@@ -26265,7 +26278,7 @@ var withoutPhone = /* @__PURE__ */ __name((answer) => {
26265
26278
  return rest;
26266
26279
  }, "withoutPhone");
26267
26280
 
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
26281
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/task-stats.js
26269
26282
  var TASK_STATS_BY = ["chat", "meeting", "project"];
26270
26283
  var PERIOD_FIELD = "created";
26271
26284
  var refuseNestedPeriod = /* @__PURE__ */ __name((node, top = true) => {
@@ -26396,7 +26409,7 @@ var meetingNames = /* @__PURE__ */ __name(async (store, groups) => {
26396
26409
  }));
26397
26410
  }, "meetingNames");
26398
26411
 
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
26412
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/task-tag-filters.js
26400
26413
  var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
26401
26414
  const tags = /* @__PURE__ */ new Map();
26402
26415
  for (const node of query ? walkQuery(query.root) : [])
@@ -26405,7 +26418,7 @@ var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
26405
26418
  return tags;
26406
26419
  }, "taskTagFilters");
26407
26420
 
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
26421
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/tasks.js
26409
26422
  var TASK_QUERY = {
26410
26423
  entity: "task",
26411
26424
  backend: "sql",
@@ -26905,7 +26918,7 @@ var taskView = /* @__PURE__ */ __name(async (store, account, task2) => {
26905
26918
  };
26906
26919
  }, "taskView");
26907
26920
 
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
26921
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/mail/owed.js
26909
26922
  var mailTurn = /* @__PURE__ */ __name((newest) => {
26910
26923
  if (newest === null)
26911
26924
  return null;
@@ -26914,7 +26927,7 @@ var mailTurn = /* @__PURE__ */ __name((newest) => {
26914
26927
  return newest.addressed ? "owed" : null;
26915
26928
  }, "mailTurn");
26916
26929
 
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
26930
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/agenda-mail.js
26918
26931
  var absent = /* @__PURE__ */ __name((error) => {
26919
26932
  if (error instanceof CliError && error.code === "not_found")
26920
26933
  return void 0;
@@ -26972,7 +26985,7 @@ var mailActivity = /* @__PURE__ */ __name(async (store, account, since, chats) =
26972
26985
  };
26973
26986
  }, "mailActivity");
26974
26987
 
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
26988
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/agenda.js
26976
26989
  var DAY4 = 864e5;
26977
26990
  var AGENDA_DEFAULTS = { unanswered: DAY4, waiting: 7 * DAY4 };
26978
26991
  var CLAIMS = ["none", "mine", "others", "any"];
@@ -27226,18 +27239,18 @@ var agendaItem = /* @__PURE__ */ __name((shown) => {
27226
27239
  };
27227
27240
  }, "agendaItem");
27228
27241
 
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
27242
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/media-archive.js
27230
27243
  import { setTimeout as sleep3 } from "node:timers/promises";
27231
27244
 
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
27245
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
27233
27246
  import { lstat } from "node:fs/promises";
27234
27247
 
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
27248
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
27236
27249
  import { createHash as createHash4, randomUUID as randomUUID3 } from "node:crypto";
27237
27250
  import { open as open3, rename as rename2, unlink as unlink2 } from "node:fs/promises";
27238
27251
  import { join as join7 } from "node:path";
27239
27252
 
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
27253
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-metadata.js
27241
27254
  import { createHash as createHash3 } from "node:crypto";
27242
27255
  var metadataLimit = 16384;
27243
27256
  var partialIdentity = /* @__PURE__ */ __name((locator) => JSON.stringify([locator.provider, locator.account, locator.occurrenceId, locator.assetId]), "partialIdentity");
@@ -27297,7 +27310,7 @@ var readPartialMetadata = /* @__PURE__ */ __name(async (path2, locator, maxBytes
27297
27310
  }
27298
27311
  }, "readPartialMetadata");
27299
27312
 
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
27313
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-writer.js
27301
27314
  import { randomUUID as randomUUID2 } from "node:crypto";
27302
27315
  import { open as open2, rename, unlink } from "node:fs/promises";
27303
27316
  import { join as join6 } from "node:path";
@@ -27389,7 +27402,7 @@ var partialWriter = /* @__PURE__ */ __name(async (input) => {
27389
27402
  };
27390
27403
  }, "partialWriter");
27391
27404
 
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
27405
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
27393
27406
  var NativeRecordingPartialStore = class {
27394
27407
  static {
27395
27408
  __name(this, "NativeRecordingPartialStore");
@@ -27496,12 +27509,12 @@ var NativeRecordingPartialStore = class {
27496
27509
  }
27497
27510
  };
27498
27511
 
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
27512
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
27500
27513
  import { createHash as createHash5 } from "node:crypto";
27501
27514
  import { link as link2 } from "node:fs/promises";
27502
27515
  import { basename as basename2, dirname as dirname5, join as join9, resolve as resolve2 } from "node:path";
27503
27516
 
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
27517
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-files.js
27505
27518
  import { unlink as unlink3 } from "node:fs/promises";
27506
27519
  var verifiedPublicationFile = /* @__PURE__ */ __name(async (path2, expected2, signal, writable = false) => {
27507
27520
  signal?.throwIfAborted();
@@ -27536,7 +27549,7 @@ var commitPublication = /* @__PURE__ */ __name(async (root, partialPath, finalPa
27536
27549
  signal?.throwIfAborted();
27537
27550
  }, "commitPublication");
27538
27551
 
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
27552
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-journal.js
27540
27553
  import { randomUUID as randomUUID4 } from "node:crypto";
27541
27554
  import { open as open4, rename as rename3, unlink as unlink4 } from "node:fs/promises";
27542
27555
  import { join as join8 } from "node:path";
@@ -27609,7 +27622,7 @@ var writePublicationJournal = /* @__PURE__ */ __name(async (root, path2, prefix,
27609
27622
  }
27610
27623
  }, "writePublicationJournal");
27611
27624
 
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
27625
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
27613
27626
  var NativeRecordingPublication = class {
27614
27627
  static {
27615
27628
  __name(this, "NativeRecordingPublication");
@@ -27682,7 +27695,7 @@ var NativeRecordingPublication = class {
27682
27695
  }
27683
27696
  };
27684
27697
 
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
27698
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/media-archive-manifest.js
27686
27699
  import { createHash as createHash6 } from "node:crypto";
27687
27700
  import { readdir } from "node:fs/promises";
27688
27701
  import { isAbsolute as isAbsolute2, join as join10, resolve as resolve3 } from "node:path";
@@ -27769,7 +27782,7 @@ var commitMediaEntry = /* @__PURE__ */ __name((root, one, beforePublish) => writ
27769
27782
  beforePublish
27770
27783
  }), "commitMediaEntry");
27771
27784
 
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
27785
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
27773
27786
  var validator = '"media-completed-v1"';
27774
27787
  var maximumFileBytes = 64 * 1024 * 1024 * 1024;
27775
27788
  var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind2, file, beforeWrite, signal, metadata = {}) => {
@@ -27870,7 +27883,7 @@ var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind2, file
27870
27883
  return entry;
27871
27884
  }, "archiveMediaFile");
27872
27885
 
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
27886
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/media-archive-locks.js
27874
27887
  import { mkdir, realpath } from "node:fs/promises";
27875
27888
  import { join as join11, resolve as resolve4 } from "node:path";
27876
27889
  var archiveLocations = /* @__PURE__ */ __name(async (initial, signal) => {
@@ -27937,7 +27950,7 @@ var withMediaArchiveLocks = /* @__PURE__ */ __name(async (directory2, signal, ru
27937
27950
  throw new CliError("validation_error", "archive locations changed during locking; run the command again");
27938
27951
  }, "withMediaArchiveLocks");
27939
27952
 
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
27953
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/media-archive.js
27941
27954
  var checkMediaArchive = /* @__PURE__ */ __name((directory2, signal) => withMediaArchiveLocks(directory2, signal, async (root) => {
27942
27955
  const entries = await readMediaManifests(root, signal);
27943
27956
  if (!entries.length)
@@ -28080,7 +28093,7 @@ var archiveMedia = /* @__PURE__ */ __name(async (ports, options2) => {
28080
28093
  }, { create: true });
28081
28094
  }, "archiveMedia");
28082
28095
 
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
28096
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/media-archive-move.js
28084
28097
  import { realpath as realpath2, unlink as unlink5 } from "node:fs/promises";
28085
28098
  import { basename as basename3, dirname as dirname6, join as join12, resolve as resolve5 } from "node:path";
28086
28099
  var canonicalDestination = /* @__PURE__ */ __name(async (directory2) => {
@@ -28231,7 +28244,7 @@ var moveMediaArchive = /* @__PURE__ */ __name(async (options2) => {
28231
28244
  }, { additional: [target2], createAdditional: !options2.dryRun });
28232
28245
  }, "moveMediaArchive");
28233
28246
 
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
28247
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/model-downloads.js
28235
28248
  import { writeFileSync as writeFileSync3 } from "node:fs";
28236
28249
  import { join as join13 } from "node:path";
28237
28250
  var bytesOf = /* @__PURE__ */ __name((model) => model.files.reduce((sum2, file) => sum2 + file.bytes, 0), "bytesOf");
@@ -28256,7 +28269,7 @@ var downloadTextModel = /* @__PURE__ */ __name(async (id3, { env, progress = /*
28256
28269
  `);
28257
28270
  await nativeRuntime({ env, progress });
28258
28271
  progress(`${model.id}: loading it once to check it works`);
28259
- const { openEmbedder: openEmbedder2 } = await import("./embed-AWLL4EBF.js");
28272
+ const { openEmbedder: openEmbedder2 } = await import("./embed-BUQXGMKR.js");
28260
28273
  const embedder = await openEmbedder2(model, directory2);
28261
28274
  try {
28262
28275
  const [vector] = await embedder.embed(["check"], "query");
@@ -28277,7 +28290,7 @@ var downloadRerankModel = /* @__PURE__ */ __name(async (id3, { env, progress = /
28277
28290
  }
28278
28291
  await nativeRuntime({ env, progress });
28279
28292
  progress(`${model.id}: loading it once to check it works`);
28280
- const { openReranker } = await import("./rerank-AJAVKK5L.js");
28293
+ const { openReranker } = await import("./rerank-H4HSGQUJ.js");
28281
28294
  const reranker = await openReranker(model, directory2);
28282
28295
  try {
28283
28296
  await reranker.score("check", ["check"]);
@@ -28295,7 +28308,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id3, { env, progress = /*
28295
28308
  await installFiles(placedImage(model, directory2), { progress, ...bytes2 ? { bytes: bytes2 } : {} });
28296
28309
  }
28297
28310
  progress(`${model.id}: loading it once to check it works`);
28298
- const { openPictureEmbedder } = await import("./embedder-MM225YJ6.js");
28311
+ const { openPictureEmbedder } = await import("./embedder-FCX6LE4O.js");
28299
28312
  const embedder = await openPictureEmbedder(model, directory2);
28300
28313
  try {
28301
28314
  const vector = await embedder.embedQuery("check");
@@ -28307,7 +28320,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id3, { env, progress = /*
28307
28320
  return { model, directory: directory2 };
28308
28321
  }, "downloadImageModel");
28309
28322
 
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
28323
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/domain/money-words.js
28311
28324
  var MONEY_REQUEST = "money-request";
28312
28325
  var MONEY_DONE = "money-done";
28313
28326
  var PROMISE = "promise";
@@ -28341,10 +28354,10 @@ var MONEY_WORDS = [
28341
28354
  }
28342
28355
  ];
28343
28356
 
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
28357
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/money-words.js
28345
28358
  var moneyClassesOf = /* @__PURE__ */ __name((text3) => listsHit(text3, MONEY_WORDS), "moneyClassesOf");
28346
28359
 
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
28360
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/domain/status-words.js
28348
28361
  var words2 = /* @__PURE__ */ __name((forms) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${forms.join("|")})(?![\\p{L}\\p{N}])`, "iu"), "words");
28349
28362
  var MONEY_DONE_FORMS = words2([
28350
28363
  "\u043E\u043F\u043B\u0430\u0442\u0438\u043B[\u0430\u0438]?",
@@ -28384,7 +28397,7 @@ var PROMISE_FORMS = words2([
28384
28397
  "estar\xE1 listo"
28385
28398
  ]);
28386
28399
 
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
28400
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/project-status/items.js
28388
28401
  var EXCERPT_CHARS = 80;
28389
28402
  var excerpt2 = /* @__PURE__ */ __name((text3) => {
28390
28403
  const flat = text3.replace(/\s+/g, " ").trim();
@@ -28406,7 +28419,7 @@ var whoOf = /* @__PURE__ */ __name((message) => ({
28406
28419
  var fromOwner = /* @__PURE__ */ __name((message) => message.outgoing === true, "fromOwner");
28407
28420
  var day = /* @__PURE__ */ __name((at3) => new Date(at3).toISOString().slice(0, 10), "day");
28408
28421
 
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
28422
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/project-status/signals/amounts.js
28410
28423
  var MONEY = DEFAULT_TASK_CATEGORIES.filter((category) => category.name === "money");
28411
28424
  var verbOf = /* @__PURE__ */ __name((text3) => {
28412
28425
  if (MONEY_DONE_FORMS.test(text3))
@@ -28487,7 +28500,7 @@ var amounts = {
28487
28500
  attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.state === "asked" ? [{ chat: item2.chat, weight: 2, why: "money asked" }] : []), "attention")
28488
28501
  };
28489
28502
 
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
28503
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/project-status/signals/children.js
28491
28504
  var children = {
28492
28505
  id: "children",
28493
28506
  version: 1,
@@ -28516,7 +28529,7 @@ var children = {
28516
28529
  }, "read")
28517
28530
  };
28518
28531
 
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
28532
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/project-status/signals/coverage.js
28520
28533
  var coverage = {
28521
28534
  id: "coverage",
28522
28535
  version: 1,
@@ -28545,7 +28558,7 @@ var coverage = {
28545
28558
  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
28559
  };
28547
28560
 
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
28561
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/project-status/signals/payments.js
28549
28562
  var holding2 = /* @__PURE__ */ __name((row) => row.review !== "rejected", "holding");
28550
28563
  var item = /* @__PURE__ */ __name((row, at3, data) => ({
28551
28564
  signal: "payments",
@@ -28595,7 +28608,7 @@ var payments = {
28595
28608
  }, "read")
28596
28609
  };
28597
28610
 
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
28611
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/project-status/signals/promises.js
28599
28612
  var PATTERNS_PER_CHAT = 3;
28600
28613
  var DAY5 = 864e5;
28601
28614
  var KINDS2 = /* @__PURE__ */ new Set(["promise", "request"]);
@@ -28684,7 +28697,7 @@ var promises = {
28684
28697
  }, "read")
28685
28698
  };
28686
28699
 
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
28700
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/project-status/signals/questions.js
28688
28701
  var PER_SIDE = 5;
28689
28702
  var WEEK = 7 * 864e5;
28690
28703
  var NOBODY = /* @__PURE__ */ new Set();
@@ -28715,7 +28728,7 @@ var questions2 = {
28715
28728
  }, "attention")
28716
28729
  };
28717
28730
 
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
28731
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/project-status/signals/reply-next.js
28719
28732
  var targetOf = /* @__PURE__ */ __name((message, chat, owners) => {
28720
28733
  const byId2 = /* @__PURE__ */ __name((id3) => chat.messages.find((one) => one.id === id3), "byId");
28721
28734
  const quoted = message.replyTo ?? (message.replyToId === void 0 ? void 0 : byId2(message.replyToId));
@@ -28783,7 +28796,7 @@ var replyNext = {
28783
28796
  attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.next === "owner" ? [{ chat: item2.chat, weight: 2, why: "your move" }] : []), "attention")
28784
28797
  };
28785
28798
 
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
28799
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/project-status/signals/topics.js
28787
28800
  var escaped = /* @__PURE__ */ __name((text3) => text3.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
28788
28801
  var wholeWord = /* @__PURE__ */ __name((word) => new RegExp(`(?<![\\p{L}\\p{N}])${escaped(word)}(?![\\p{L}\\p{N}])`, "u"), "wholeWord");
28789
28802
  var matcherOf = /* @__PURE__ */ __name((query) => {
@@ -28829,7 +28842,7 @@ var topics = {
28829
28842
  }, "read")
28830
28843
  };
28831
28844
 
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
28845
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/project-status/signals/index.js
28833
28846
  var STATUS_SIGNALS = [
28834
28847
  replyNext,
28835
28848
  questions2,
@@ -28841,7 +28854,7 @@ var STATUS_SIGNALS = [
28841
28854
  children
28842
28855
  ];
28843
28856
 
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
28857
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/project-status/index.js
28845
28858
  var DAY6 = 864e5;
28846
28859
  var STATUS_WINDOW = 300;
28847
28860
  var STATUS_CHATS = 16;
@@ -29030,7 +29043,7 @@ var projectStatus = /* @__PURE__ */ __name(async (store, input) => {
29030
29043
  };
29031
29044
  }, "projectStatus");
29032
29045
 
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
29046
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/account.js
29034
29047
  var accountService = /* @__PURE__ */ __name((deps) => {
29035
29048
  const online = /* @__PURE__ */ __name(async (command) => {
29036
29049
  if (deps.offline)
@@ -29102,7 +29115,7 @@ var accountService = /* @__PURE__ */ __name((deps) => {
29102
29115
  };
29103
29116
  }, "accountService");
29104
29117
 
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
29118
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/domain/send-time.js
29106
29119
  var sendTime = /* @__PURE__ */ __name((value, now = Date.now(), flag = "--at-time", zone) => {
29107
29120
  const at3 = aheadOf(value, flag, now, {
29108
29121
  ...zone === void 0 ? {} : { zone },
@@ -29113,7 +29126,7 @@ var sendTime = /* @__PURE__ */ __name((value, now = Date.now(), flag = "--at-tim
29113
29126
  return new Date(at3 - at3 % MINUTE).toISOString();
29114
29127
  }, "sendTime");
29115
29128
 
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
29129
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/admin.js
29117
29130
  var recordMembership = /* @__PURE__ */ __name(async (deps, operationId, done2, change, fix, write) => {
29118
29131
  try {
29119
29132
  const held = await accountStoreIfOpen(deps);
@@ -29360,7 +29373,7 @@ var linkLimits = /* @__PURE__ */ __name(({ approval, expires, maxUses }) => {
29360
29373
  return expires === void 0 ? void 0 : sendTime(expires, Date.now(), "--expire-time");
29361
29374
  }, "linkLimits");
29362
29375
 
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
29376
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/mail-search.js
29364
29377
  var THREADS_PAGE = 500;
29365
29378
  var threadsOf = /* @__PURE__ */ __name(async (store, key) => {
29366
29379
  const account = await store.accounts.storedAccount(key).catch(() => void 0);
@@ -29435,7 +29448,7 @@ var readMail = /* @__PURE__ */ __name(async (store, locator, { before = 0, after
29435
29448
  return thread.slice(Math.max(0, at3 - before), at3 + after + 1).map((hit) => hit.id === message ? { ...hit, anchor: true } : hit);
29436
29449
  }, "readMail");
29437
29450
 
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
29451
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/messages-search.js
29439
29452
  var PERSON_FIELDS = /* @__PURE__ */ new Set(["from", "to", "cc", "bcc"]);
29440
29453
  var MAIL_FIELDS = /* @__PURE__ */ new Set(["to", "cc", "bcc", "subject", "mailbox", "label", "is", "list"]);
29441
29454
  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 +29821,7 @@ var statsLucene = /* @__PURE__ */ __name(async (store, account, request, messeng
29808
29821
  };
29809
29822
  }, "statsLucene");
29810
29823
 
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
29824
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/rankings-selection.js
29812
29825
  var RANKING_SELECTION_BYTES = 64 * 1024;
29813
29826
  var object2 = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0, "object");
29814
29827
  function invalid2(message = "ranking selection is invalid \u2014 obtain a new drilldown from stats top") {
@@ -29977,7 +29990,7 @@ var readRankingSelection = /* @__PURE__ */ __name(async (store, input) => {
29977
29990
  };
29978
29991
  }, "readRankingSelection");
29979
29992
 
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
29993
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/search-record.js
29981
29994
  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
29995
  var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
29983
29996
  command,
@@ -29987,7 +30000,7 @@ var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
29987
30000
  fieldsVersion: FIELD_VERSION
29988
30001
  }), "searchRecordOf");
29989
30002
 
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
30003
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/admin-statistics.js
29991
30004
  function invalid3(message) {
29992
30005
  throw new CliError("validation_error", message);
29993
30006
  }
@@ -30281,7 +30294,7 @@ var adminStatisticsService = /* @__PURE__ */ __name((deps) => ({
30281
30294
  }, "evidence")
30282
30295
  }), "adminStatisticsService");
30283
30296
 
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
30297
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/archive-gaps.js
30285
30298
  import { createHash as createHash7, randomUUID as randomUUID5 } from "node:crypto";
30286
30299
  var GAP_BOUNDS = { maxGaps: 5, limit: 500, timeMs: 3e4 };
30287
30300
  var validateRepair = /* @__PURE__ */ __name((messenger, options2) => {
@@ -30418,12 +30431,12 @@ var gapsService = /* @__PURE__ */ __name((deps) => {
30418
30431
  return { plan, repair };
30419
30432
  }, "gapsService");
30420
30433
 
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
30434
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/attachments.js
30422
30435
  import { createHash as createHash10 } from "node:crypto";
30423
30436
  import { constants as constants2, mkdirSync as mkdirSync5 } from "node:fs";
30424
30437
  import { lstat as lstat5, open as open6, readFile as readFile2, stat as stat2 } from "node:fs/promises";
30425
30438
 
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
30439
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/attachments/directory.js
30427
30440
  import { lstat as lstat2, readdir as readdir2, realpath as realpath3 } from "node:fs/promises";
30428
30441
  import { basename as basename4, join as join14, relative as relative2, sep as sep2 } from "node:path";
30429
30442
  var MAX_FILES = 1e4;
@@ -30494,15 +30507,15 @@ var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app,
30494
30507
  return choices;
30495
30508
  }, "directoryPaths");
30496
30509
 
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
30510
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/attachments/documents.js
30498
30511
  import { posix } from "node:path";
30499
30512
 
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
30513
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/attachments/container.js
30501
30514
  import { setImmediate as tick } from "node:timers/promises";
30502
30515
  import { crc32 } from "node:zlib";
30503
30516
  var import_xmldom = __toESM(require_lib(), 1);
30504
30517
 
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
30518
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/attachments/encoding.js
30506
30519
  var import_chardet = __toESM(require_lib2(), 1);
30507
30520
  var import_iconv_lite = __toESM(require_lib3(), 1);
30508
30521
  var SAMPLE = 65536;
@@ -30604,7 +30617,7 @@ var decodeXml = /* @__PURE__ */ __name((bytes2) => {
30604
30617
  return result.text;
30605
30618
  }, "decodeXml");
30606
30619
 
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
30620
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/attachments/container.js
30608
30621
  var MAX_PART = 10 * 1024 * 1024;
30609
30622
  var MAX_ENTRIES = 1e3;
30610
30623
  var decoder = new TextDecoder("utf-8", { fatal: true });
@@ -30819,7 +30832,7 @@ var elements = /* @__PURE__ */ __name((node, name, namespace) => {
30819
30832
  return found;
30820
30833
  }, "elements");
30821
30834
 
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
30835
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/attachments/sheets.js
30823
30836
  var columnName = /* @__PURE__ */ __name((column) => {
30824
30837
  let name = "";
30825
30838
  for (let rest = column; rest > 0; rest = Math.floor((rest - 1) / 26))
@@ -30874,7 +30887,7 @@ var sheetText = /* @__PURE__ */ __name((sheets2, maxChars = MAX_TEXT_CHARS) => {
30874
30887
  return { text: parts.join("").trim(), truncated: false };
30875
30888
  }, "sheetText");
30876
30889
 
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
30890
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/attachments/documents.js
30878
30891
  var OFFICE = "urn:oasis:names:tc:opendocument:xmlns:office:1.0";
30879
30892
  var TEXT = "urn:oasis:names:tc:opendocument:xmlns:text:1.0";
30880
30893
  var TABLE = "urn:oasis:names:tc:opendocument:xmlns:table:1.0";
@@ -31274,10 +31287,10 @@ var readDocument = /* @__PURE__ */ __name(async (bytes2, kind2, signal) => {
31274
31287
  }
31275
31288
  }, "readDocument");
31276
31289
 
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
31290
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/attachments/extract.js
31278
31291
  import { extname as extname3 } from "node:path";
31279
31292
 
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
31293
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/readers/engine.js
31281
31294
  import { readFileSync as readFileSync7 } from "node:fs";
31282
31295
  import { dirname as dirname7, extname as extname2, join as join15 } from "node:path";
31283
31296
  import { fileURLToPath } from "node:url";
@@ -31338,7 +31351,7 @@ var derived = /* @__PURE__ */ __name((bytes2, extractor, read) => {
31338
31351
  }
31339
31352
  }, "derived");
31340
31353
 
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
31354
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/readers/image/index.js
31342
31355
  var IMAGES = /* @__PURE__ */ new Set([".jpg", ".jpeg", ".png", ".webp", ".gif", ".heic", ".tif", ".tiff", ".bmp"]);
31343
31356
  var image2 = {
31344
31357
  id: "image",
@@ -31347,7 +31360,7 @@ var image2 = {
31347
31360
  read: /* @__PURE__ */ __name(async () => ({ status: "needs-agent" }), "read")
31348
31361
  };
31349
31362
 
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
31363
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/readers/doc/index.js
31351
31364
  var OLE = "\xD0\xCF\xE0\xA1\xB1\xE1";
31352
31365
  var doc = {
31353
31366
  id: "doc",
@@ -31359,7 +31372,7 @@ var doc = {
31359
31372
  }), "read")
31360
31373
  };
31361
31374
 
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
31375
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/readers/docx/index.js
31363
31376
  var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
31364
31377
  var docx = {
31365
31378
  id: "docx",
@@ -31372,10 +31385,10 @@ var docx = {
31372
31385
  }), "read")
31373
31386
  };
31374
31387
 
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
31388
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/attachments/markup.js
31376
31389
  var import_iconv_lite2 = __toESM(require_lib3(), 1);
31377
31390
 
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
31391
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/domain/html-entities.js
31379
31392
  var NAMED = {
31380
31393
  amp: "&",
31381
31394
  lt: "<",
@@ -31427,7 +31440,7 @@ var decodeEntities = /* @__PURE__ */ __name((text3) => text3.replace(/&(#x[0-9a-
31427
31440
  return body[1] === "x" || body[1] === "X" ? character(Number.parseInt(body.slice(2), 16), entity2) : character(Number(body.slice(1)), entity2);
31428
31441
  }), "decodeEntities");
31429
31442
 
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
31443
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/attachments/markup.js
31431
31444
  var RTF_SKIPPED = /* @__PURE__ */ new Set([
31432
31445
  "fonttbl",
31433
31446
  "colortbl",
@@ -31593,7 +31606,7 @@ var htmlText = /* @__PURE__ */ __name((source) => {
31593
31606
  return decodeEntities(replaceTags(blocks, /<[^>]*>/g, "")).replace(/(?<![ \t\u00a0])[ \t\u00a0]+\n/g, "\n").replace(/\n{3,}/g, "\n\n").trim();
31594
31607
  }, "htmlText");
31595
31608
 
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
31609
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/readers/html/page.js
31597
31610
  var clean = /* @__PURE__ */ __name((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim() : "", "clean");
31598
31611
  var namesIn = /* @__PURE__ */ __name((value) => [value].flat().map((entry) => typeof entry === "string" ? clean(entry) : clean(entry?.name)).filter(Boolean).join(", "), "namesIn");
31599
31612
  var jsonLdNodes = /* @__PURE__ */ __name((document) => {
@@ -31649,7 +31662,7 @@ var markdownSections = /* @__PURE__ */ __name((text3) => {
31649
31662
  return found.map((section, index) => ({ ...section, end: found[index + 1]?.start ?? text3.length }));
31650
31663
  }, "markdownSections");
31651
31664
 
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
31665
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/readers/html/index.js
31653
31666
  var HTML = /* @__PURE__ */ new Set([".html", ".htm", ".xhtml"]);
31654
31667
  var first = /* @__PURE__ */ __name((...values) => values.find((value) => typeof value === "string" && value !== ""), "first");
31655
31668
  var loaded = /* @__PURE__ */ __name(async (load, name) => {
@@ -31720,7 +31733,7 @@ var html = {
31720
31733
  }, "read")
31721
31734
  };
31722
31735
 
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
31736
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/readers/office/index.js
31724
31737
  var office = {
31725
31738
  id: "office",
31726
31739
  version: documentExtractor("odt"),
@@ -31731,7 +31744,7 @@ var office = {
31731
31744
  }, "read")
31732
31745
  };
31733
31746
 
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
31747
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/readers/pdf/index.js
31735
31748
  var pdf = {
31736
31749
  id: "pdf",
31737
31750
  version: "unpdf",
@@ -31798,7 +31811,7 @@ var pdf = {
31798
31811
  }), "read")
31799
31812
  };
31800
31813
 
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
31814
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/readers/plain/index.js
31802
31815
  var PLAIN = /* @__PURE__ */ new Set([".txt", ".md", ".markdown", ".csv", ".tsv", ".json", ".log"]);
31803
31816
  var isPlain = /* @__PURE__ */ __name((hint) => PLAIN.has(extensionOf(hint)) || hint.mime?.startsWith("text/") || hint.mime === "application/json", "isPlain");
31804
31817
  var readPlain = /* @__PURE__ */ __name((bytes2) => {
@@ -31818,7 +31831,7 @@ var plain = {
31818
31831
  read: /* @__PURE__ */ __name(async (bytes2) => readPlain(bytes2), "read")
31819
31832
  };
31820
31833
 
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
31834
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/readers/rtf/index.js
31822
31835
  var rtf = {
31823
31836
  id: "rtf",
31824
31837
  version: "v1",
@@ -31826,10 +31839,10 @@ var rtf = {
31826
31839
  read: /* @__PURE__ */ __name(async (bytes2) => derived(bytes2, "rtf:v1", rtfText), "read")
31827
31840
  };
31828
31841
 
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
31842
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
31830
31843
  import { basename as basename5 } from "node:path";
31831
31844
 
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
31845
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/attachments/csv-spans.js
31833
31846
  var delimitedSpans = /* @__PURE__ */ __name((text3, delimiter, maxCells = 1e4) => {
31834
31847
  const cells = [];
31835
31848
  let row = 1, column = 1, start = 0, quoted = false, truncated = false;
@@ -31867,7 +31880,7 @@ var delimitedSpans = /* @__PURE__ */ __name((text3, delimiter, maxCells = 1e4) =
31867
31880
  return { cells, truncated };
31868
31881
  }, "delimitedSpans");
31869
31882
 
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
31883
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
31871
31884
  var DELIMITED = {
31872
31885
  ".csv": ",",
31873
31886
  ".tsv": " ",
@@ -31906,7 +31919,7 @@ var sheets = {
31906
31919
  }, "read")
31907
31920
  };
31908
31921
 
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
31922
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/readers/registry.js
31910
31923
  var BUILT_INS2 = [office, pdf, docx, doc, rtf, html, sheets, plain, image2];
31911
31924
  var HEAD_BYTES = 1024;
31912
31925
  var readers = [...BUILT_INS2];
@@ -31916,7 +31929,7 @@ var readWithRegistry = /* @__PURE__ */ __name(async (bytes2, hint, context2) =>
31916
31929
  return reader ? reader.read(bytes2, hint, context2) : { status: "unsupported" };
31917
31930
  }, "readWithRegistry");
31918
31931
 
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
31932
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/attachments/extract.js
31920
31933
  var importEngine = /* @__PURE__ */ __name((name) => importFrom(new URL("attachments/extract.js", import.meta.resolve("@wirecat/cli-core")).href, name), "importEngine");
31921
31934
  var extensionOf2 = /* @__PURE__ */ __name(({ name, path: path2 }) => extname3(name ?? path2).toLowerCase(), "extensionOf");
31922
31935
  var extractText = /* @__PURE__ */ __name(async (bytes2, hint, load, signal, env = process.env) => {
@@ -32995,7 +33008,7 @@ function imageSize(input) {
32995
33008
  }
32996
33009
  __name(imageSize, "imageSize");
32997
33010
 
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
33011
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/attachments/ocr.js
32999
33012
  var MAX_PAGES = 20;
33000
33013
  var MAX_PIXELS = 2e7;
33001
33014
  var cancelled2 = /* @__PURE__ */ __name((signal) => {
@@ -33155,7 +33168,7 @@ var ocrPdf = /* @__PURE__ */ __name(async (bytes2, pipeline2, load, signal) => {
33155
33168
  }
33156
33169
  }, "ocrPdf");
33157
33170
 
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
33171
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/attachments/pdf-preview.js
33159
33172
  var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = importEngine, env = process.env) => {
33160
33173
  const limits = pdfPreviewLimits(env);
33161
33174
  const cancelled3 = /* @__PURE__ */ __name(() => {
@@ -33232,7 +33245,7 @@ var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = impo
33232
33245
  }
33233
33246
  }, "pdfPreview");
33234
33247
 
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
33248
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/attachments/picture-reading.js
33236
33249
  import { spawn } from "node:child_process";
33237
33250
  import { mkdtempSync, readFileSync as readFileSync8, rmSync as rmSync2, writeFileSync as writeFileSync4 } from "node:fs";
33238
33251
  import { tmpdir } from "node:os";
@@ -33395,7 +33408,7 @@ Read the attached picture.`,
33395
33408
  }
33396
33409
  }, "readPictureWithAgent");
33397
33410
 
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
33411
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/attachments/transfer.js
33399
33412
  import { createHash as createHash8 } from "node:crypto";
33400
33413
  import { constants } from "node:fs";
33401
33414
  import { lstat as lstat3, open as open5 } from "node:fs/promises";
@@ -33503,7 +33516,7 @@ var transferMime = /* @__PURE__ */ __name((head, hint, name = null) => {
33503
33516
  return hint !== null && /^[a-z0-9.+-]+\/[a-z0-9.+-]+$/i.test(hint) ? hint : "application/octet-stream";
33504
33517
  }, "transferMime");
33505
33518
 
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
33519
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/file-download.js
33507
33520
  import { createWriteStream, mkdirSync as mkdirSync4 } from "node:fs";
33508
33521
  import { link as link3, rm } from "node:fs/promises";
33509
33522
  import { join as join17, resolve as resolve6 } from "node:path";
@@ -33617,12 +33630,12 @@ var save = /* @__PURE__ */ __name(async (file, directory2, fallbackName, { uniqu
33617
33630
  }
33618
33631
  }, "save");
33619
33632
 
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
33633
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/pictures.js
33621
33634
  import { createHash as createHash9 } from "node:crypto";
33622
33635
  import { lstat as lstat4, readFile } from "node:fs/promises";
33623
33636
  import { setTimeout as sleep4 } from "node:timers/promises";
33624
33637
 
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
33638
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/domain/models.js
33626
33639
  var GROUP_SETTINGS = [
33627
33640
  "allCanPin",
33628
33641
  "onlyAdminsAdd",
@@ -33636,7 +33649,7 @@ var ADMIN_RIGHTS = ["read", "members", "admins", "info", "pin", "link", "post",
33636
33649
  var senderIsMe = /* @__PURE__ */ __name((message, account) => message.outgoing === true || message.senderId !== null && String(message.senderId) === account, "senderIsMe");
33637
33650
  var MEDIA_KINDS = ["photo", "video", "file", "audio", "link"];
33638
33651
 
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
33652
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/pictures.js
33640
33653
  var PICTURE_MAX_BYTES = 25 * 1024 * 1024;
33641
33654
  var PICTURE_FLOOR = 0.25;
33642
33655
  var PAGE3 = 50;
@@ -33677,7 +33690,7 @@ var picturesService = /* @__PURE__ */ __name((deps) => {
33677
33690
  const directory2 = imageModelsDirectory(deps.env);
33678
33691
  if (!isImageModelInstalled(model2, directory2))
33679
33692
  throw new CliError("not_found", missingModel(model2.id), { reason: "model.not-downloaded", model: model2.id });
33680
- const { openPictureEmbedder } = await import("./embedder-MM225YJ6.js");
33693
+ const { openPictureEmbedder } = await import("./embedder-FCX6LE4O.js");
33681
33694
  return openPictureEmbedder(model2, directory2);
33682
33695
  }, "open");
33683
33696
  const embedder = /* @__PURE__ */ __name(() => {
@@ -33851,7 +33864,7 @@ var withPictures = /* @__PURE__ */ __name((messages, pictures) => ({
33851
33864
  }, "search")
33852
33865
  }), "withPictures");
33853
33866
 
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
33867
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/attachments.js
33855
33868
  var ATTACHMENT_QUERY = {
33856
33869
  entity: "attachment",
33857
33870
  backend: "sql",
@@ -34322,7 +34335,7 @@ var attachmentsService = /* @__PURE__ */ __name((deps) => ({
34322
34335
  }, "readPicture")
34323
34336
  }), "attachmentsService");
34324
34337
 
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
34338
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/chat-documents.js
34326
34339
  var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
34327
34340
  list: /* @__PURE__ */ __name(async (chat, { limit, offset, ref }) => {
34328
34341
  const store = await accountStore(deps);
@@ -34352,7 +34365,7 @@ var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
34352
34365
  }, "list")
34353
34366
  }), "chatDocumentsService");
34354
34367
 
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
34368
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/retention.js
34356
34369
  var observationDuration = /* @__PURE__ */ __name((text3, flag) => {
34357
34370
  const match = /^(\d+(?:\.\d+)?)([smhdw])$/.exec(text3);
34358
34371
  const units2 = { s: 1e3, m: 6e4, h: 36e5, d: 864e5, w: 6048e5 };
@@ -34439,7 +34452,7 @@ var isRetentionSelection = /* @__PURE__ */ __name((selection) => {
34439
34452
  }
34440
34453
  }, "isRetentionSelection");
34441
34454
 
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
34455
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/counters.js
34443
34456
  var counterFields = /* @__PURE__ */ __name((text3 = "views,reactions,comments") => {
34444
34457
  const fields2 = text3.split(",").map((one) => one.trim());
34445
34458
  if (!fields2.length || fields2.some((one) => !COUNTER_FIELDS.includes(one)) || new Set(fields2).size !== fields2.length)
@@ -34646,7 +34659,7 @@ var countersService = /* @__PURE__ */ __name((deps) => {
34646
34659
  };
34647
34660
  }, "countersService");
34648
34661
 
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
34662
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/search/respell.js
34650
34663
  var LATIN = {
34651
34664
  \u0430: "a",
34652
34665
  \u0431: "b",
@@ -34701,7 +34714,7 @@ var respelled = /* @__PURE__ */ __name(async (vocabulary, words3) => {
34701
34714
  return found;
34702
34715
  }, "respelled");
34703
34716
 
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
34717
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/named-chat.js
34705
34718
  var LEAST_USES = 3;
34706
34719
  var SAMPLE2 = 50;
34707
34720
  var CAPITALISED = 0.8;
@@ -34751,7 +34764,7 @@ var queryWords2 = /* @__PURE__ */ __name((query) => {
34751
34764
  }, "queryWords");
34752
34765
  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
34766
 
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
34767
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/search-refresh.js
34755
34768
  var SYNC_KEY = "messages.sync-first";
34756
34769
  var SYNC_BOUNDS = { maxChats: 5, timeMs: 3e4, maxMessages: 500 };
34757
34770
  var keyOf4 = /* @__PURE__ */ __name((chat) => JSON.stringify([chat.account.provider, chat.account.account, chat.chatId]), "keyOf");
@@ -34883,9 +34896,10 @@ var withRefresh = /* @__PURE__ */ __name((found, refreshed) => ({
34883
34896
  ...!refreshed || refreshed.complete ? {} : { coverage: { ...found.coverage, state: "stale" } }
34884
34897
  }), "withRefresh");
34885
34898
 
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
34899
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/embeddings-search.js
34887
34900
  var CANDIDATES = 50;
34888
34901
  var ACROSS_CHATS = 500;
34902
+ var OWN_BLOCK = 5;
34889
34903
  var PER_CHAT = 20;
34890
34904
  var WORD_HITS = 200;
34891
34905
  var RRF_K2 = 60;
@@ -35032,6 +35046,7 @@ var embeddingsSearch = /* @__PURE__ */ __name((deps) => {
35032
35046
  };
35033
35047
  });
35034
35048
  const meaning = [];
35049
+ const own = [];
35035
35050
  const sources = words3.sources;
35036
35051
  if (target2.installed && prepared.scopeAccounts.length && eligibility?.conversations.length !== 0) {
35037
35052
  await withEmbedder(deps, target2, choice, {}, async (embedder) => {
@@ -35041,7 +35056,7 @@ var embeddingsSearch = /* @__PURE__ */ __name((deps) => {
35041
35056
  if (scope === null)
35042
35057
  continue;
35043
35058
  const whole2 = "chatId" in scope || one.provider === MAIL;
35044
- const hits = await store.vectors.nearestConversations(one, {
35059
+ const hits2 = await store.vectors.nearestConversations(one, {
35045
35060
  ...scope,
35046
35061
  ...since === void 0 ? {} : { since },
35047
35062
  model: target2.key,
@@ -35057,11 +35072,24 @@ var embeddingsSearch = /* @__PURE__ */ __name((deps) => {
35057
35072
  query: vector
35058
35073
  });
35059
35074
  const found = [
35060
- ...hits,
35075
+ ...hits2,
35061
35076
  ...images.filter((hit) => !eligibility || eligibility.conversations.includes(hit.summary.id))
35062
35077
  ].sort((a, b) => b.score - a.score);
35078
+ const mine = await store.vectors.nearestConversations(one, {
35079
+ ...scope,
35080
+ ...since === void 0 ? {} : { since },
35081
+ model: target2.key,
35082
+ limit: OWN_BLOCK,
35083
+ query: vector,
35084
+ fromOwner: true,
35085
+ ...eligibility ? { conversations: eligibility.conversations } : {}
35086
+ });
35063
35087
  for (const hit of found)
35064
35088
  sources.set(hit.summary.id, one);
35089
+ for (const hit of mine) {
35090
+ sources.set(hit.summary.id, one);
35091
+ own.push(hit);
35092
+ }
35065
35093
  meaning.push(...whole2 ? found.map((hit) => ({ hit, lead: hit.score })) : shared(found, limit));
35066
35094
  }
35067
35095
  });
@@ -35087,20 +35115,25 @@ var embeddingsSearch = /* @__PURE__ */ __name((deps) => {
35087
35115
  ].sort();
35088
35116
  if (scoped.length > 1)
35089
35117
  readiness.scopes = scoped;
35118
+ const located = /* @__PURE__ */ __name((hit) => {
35119
+ const source2 = sources.get(hit.summary.id);
35120
+ return {
35121
+ ...hit,
35122
+ source: source2,
35123
+ locator: formatLocator({ ...source2, chat: hit.summary.chatId, message: hit.chunk.firstMessageId })
35124
+ };
35125
+ }, "located");
35126
+ const hits = fused(meaning.map(({ hit }) => hit), words3.hits, meaningFloor(target2.key)).slice(0, limit).map(located);
35127
+ const shown = new Set(hits.map((hit) => hit.summary.id));
35128
+ 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
35129
  return {
35091
35130
  accounts: prepared.scopeAccounts,
35092
35131
  model: target2.id,
35093
35132
  meaning: target2.installed ? "searched" : "unavailable",
35094
35133
  ...wordsOutOfTime ? { words: "out-of-time" } : {},
35095
35134
  ...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
- }),
35135
+ hits,
35136
+ ...ownHits.length ? { own: ownHits } : {},
35104
35137
  readiness,
35105
35138
  ...locallyRefreshed ? { prepared: locallyRefreshed } : {},
35106
35139
  ...refreshed ? { refreshed, coverage: { state: refreshed.complete ? "partial" : "stale" } } : {},
@@ -35219,13 +35252,13 @@ var meanOf = /* @__PURE__ */ __name((vectors) => {
35219
35252
  return mean2.map((value) => value / length);
35220
35253
  }, "meanOf");
35221
35254
 
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
35255
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/embeddings.js
35223
35256
  var embeddingsService = /* @__PURE__ */ __name((deps) => ({
35224
35257
  ...embeddingsMaintenance(deps),
35225
35258
  ...embeddingsSearch(deps)
35226
35259
  }), "embeddingsService");
35227
35260
 
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
35261
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/folders.js
35229
35262
  var foldersService = /* @__PURE__ */ __name((deps) => {
35230
35263
  const online = /* @__PURE__ */ __name(async (command) => {
35231
35264
  if (deps.offline)
@@ -35366,7 +35399,7 @@ var foldersService = /* @__PURE__ */ __name((deps) => {
35366
35399
  };
35367
35400
  }, "foldersService");
35368
35401
 
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
35402
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/mentions.js
35370
35403
  var REVIEW_COUNT = 500;
35371
35404
  var mentionsService = /* @__PURE__ */ __name((deps) => {
35372
35405
  const located = /* @__PURE__ */ __name(async () => {
@@ -35445,7 +35478,7 @@ var mentionsService = /* @__PURE__ */ __name((deps) => {
35445
35478
  };
35446
35479
  }, "mentionsService");
35447
35480
 
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
35481
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/domain/message-link.js
35449
35482
  var fileLinks = /* @__PURE__ */ __name((attachments) => hitFiles(attachments).map(({ position, kind: kind2, name }) => ({
35450
35483
  position,
35451
35484
  kind: kind2,
@@ -35494,7 +35527,7 @@ var validatePermalink = /* @__PURE__ */ __name((link4) => {
35494
35527
  return { url: link4.url, access: link4.access, reason: link4.reason };
35495
35528
  }, "validatePermalink");
35496
35529
 
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
35530
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/domain/pin-duration.js
35498
35531
  var spokenSeconds = /* @__PURE__ */ __name((seconds) => {
35499
35532
  if (seconds % 86400 === 0 && seconds > 86400)
35500
35533
  return `${seconds / 86400}d`;
@@ -35526,7 +35559,7 @@ var pinDurationOf = /* @__PURE__ */ __name((value, allowed, flag = "--expire-tim
35526
35559
  return seconds;
35527
35560
  }, "pinDurationOf");
35528
35561
 
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
35562
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/sends/send-as.js
35530
35563
  var sendAsCheck = /* @__PURE__ */ __name((connection, sendAs) => {
35531
35564
  if (sendAs === void 0) {
35532
35565
  const saved = connection.savedSender?.bind(connection);
@@ -35551,7 +35584,7 @@ var typedSendAs = /* @__PURE__ */ __name((typed) => {
35551
35584
  return sendAs;
35552
35585
  }, "typedSendAs");
35553
35586
 
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
35587
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/search/total.js
35555
35588
  var TOTAL_CAP = 1e4;
35556
35589
  var totalOf = /* @__PURE__ */ __name((count3, shown, hasMore, exact = true) => {
35557
35590
  const least = shown + (hasMore ? 1 : 0);
@@ -35562,7 +35595,7 @@ var totalOf = /* @__PURE__ */ __name((count3, shown, hasMore, exact = true) => {
35562
35595
  return { value: count3, relation: exact ? "eq" : "gte" };
35563
35596
  }, "totalOf");
35564
35597
 
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
35598
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/search/lucene/meaning-parts.js
35566
35599
  var WORD_FIELDS = /* @__PURE__ */ new Set(["text", "exact"]);
35567
35600
  var fieldsOfQuery = /* @__PURE__ */ __name((root, everything) => {
35568
35601
  let narrows = false;
@@ -35591,7 +35624,7 @@ var meaningWords = /* @__PURE__ */ __name((root) => {
35591
35624
  return wanted(root).join(" ").trim();
35592
35625
  }, "meaningWords");
35593
35626
 
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
35627
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/messages-combined.js
35595
35628
  var COMBINED_DEFAULTS = { candidateDepth: 300, rrfK: 60, rerank: "all", chatCap: 0 };
35596
35629
  var tokensOf = /* @__PURE__ */ __name((text3) => normalize(text3).match(/[\p{L}\p{N}\p{Co}\p{M}]+/gu) ?? [], "tokensOf");
35597
35630
  var searchCombined = /* @__PURE__ */ __name(async (store, account, request, messenger = {}, options2 = COMBINED_DEFAULTS) => {
@@ -35792,7 +35825,7 @@ var signals = /* @__PURE__ */ __name((hit, terms, corrections, execution, mode,
35792
35825
  return mode === "coverage" ? coverage2 * 4 : mode === "proximity" ? proximity : mode === "phrase" ? phrase2 : coverage2 * 4 + proximity + phrase2;
35793
35826
  }, "signals");
35794
35827
 
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
35828
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/messages-discovery.js
35796
35829
  var MEANING_DEPTH = 100;
35797
35830
  var RRF_K3 = 60;
35798
35831
  var RERANK_DEPTH = 50;
@@ -36118,7 +36151,7 @@ var mixedWithReranker = /* @__PURE__ */ __name((head, scores) => {
36118
36151
  })).sort((a, b) => b.mixed - a.mixed).map(({ hit }) => hit);
36119
36152
  }, "mixedWithReranker");
36120
36153
 
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
36154
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/thread-context.js
36122
36155
  var THREAD_BOUNDS = { maxHops: 8, maxMessages: 50, maxBytes: 65536, withinMs: 864e5 };
36123
36156
  var bytes = /* @__PURE__ */ __name((items, links) => Buffer.byteLength(JSON.stringify({ items, links }), "utf8"), "bytes");
36124
36157
  var threadBounds = /* @__PURE__ */ __name((options2 = {}) => {
@@ -36317,7 +36350,7 @@ var readThreadContext = /* @__PURE__ */ __name(async (store, account, chat, mess
36317
36350
  return result;
36318
36351
  }, "readThreadContext");
36319
36352
 
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
36353
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/messages-archive-search.js
36321
36354
  var SEARCH_FILL_MS = 200;
36322
36355
  var statsStore = /* @__PURE__ */ __name(async (store, account, request, messenger = {}) => {
36323
36356
  const stop = Date.now() + SEARCH_FILL_MS;
@@ -36425,7 +36458,7 @@ var accountOf2 = /* @__PURE__ */ __name((hit) => {
36425
36458
  }, "accountOf");
36426
36459
  var keyOf5 = /* @__PURE__ */ __name(({ provider, account }) => `${provider}/${account}`, "keyOf");
36427
36460
 
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
36461
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/meaning-model.js
36429
36462
  var meaningModel = /* @__PURE__ */ __name(async (store, env = process.env) => {
36430
36463
  const chosen = chosenTextModel(env);
36431
36464
  if (chosen.from === "chosen" || chosen.id !== DEFAULT_TEXT_MODEL)
@@ -36440,7 +36473,7 @@ var meaningModel = /* @__PURE__ */ __name(async (store, env = process.env) => {
36440
36473
  return (counts.get(before) ?? 0) > (counts.get(now) ?? 0) ? previous.id : current.id;
36441
36474
  }, "meaningModel");
36442
36475
 
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
36476
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/messages-meaning.js
36444
36477
  var meaningText = /* @__PURE__ */ __name((question) => {
36445
36478
  try {
36446
36479
  const text3 = questionLookup(question) === void 0 ? question : questionText(question);
@@ -36519,7 +36552,7 @@ var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, sh
36519
36552
  }
36520
36553
  }, "meaningLane");
36521
36554
 
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
36555
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/messages-rerank.js
36523
36556
  var rerankLane = /* @__PURE__ */ __name((deps) => {
36524
36557
  const choice = deps.reranker ?? DEFAULT_RERANK_MODEL;
36525
36558
  if (choice === "off")
@@ -36531,9 +36564,9 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
36531
36564
  return { skipped: { reason: `${model.id} is not downloaded`, step: "models.download", model: model.id } };
36532
36565
  try {
36533
36566
  const warm = deps.embedders;
36534
- const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-P7FB7YO7.js")).openRerankerProcess(model, directory2, {
36567
+ const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-63BB7LKP.js")).openRerankerProcess(model, directory2, {
36535
36568
  threads: defaultThreads()
36536
- })) : await (await import("./rerank-AJAVKK5L.js")).openReranker(model, directory2);
36569
+ })) : await (await import("./rerank-H4HSGQUJ.js")).openReranker(model, directory2);
36537
36570
  return {
36538
36571
  model: model.id,
36539
36572
  score: /* @__PURE__ */ __name((question, passages) => reranker.score(plainWords(question), passages), "score"),
@@ -36553,7 +36586,7 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
36553
36586
  };
36554
36587
  }, "rerankLane");
36555
36588
 
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
36589
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/search/question-period.js
36557
36590
  var DAY7 = 864e5;
36558
36591
  var SPAN = { start: 0, end: 0 };
36559
36592
  var phrase = /* @__PURE__ */ __name((source) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${source})(?![\\p{L}\\p{N}])`, "giu"), "phrase");
@@ -36678,17 +36711,17 @@ var questionPeriod = /* @__PURE__ */ __name((text3, now, zone) => {
36678
36711
  };
36679
36712
  }, "questionPeriod");
36680
36713
 
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
36714
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/document-pictures.js
36682
36715
  var openPictureEmbedderFor = /* @__PURE__ */ __name(async ({ env, command } = {}) => {
36683
36716
  const model = imageModel(DEFAULT_IMAGE_MODEL);
36684
36717
  const directory2 = imageModelsDirectory(env);
36685
36718
  if (!isImageModelInstalled(model, directory2))
36686
36719
  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");
36720
+ const { openPictureEmbedder } = await import("./embedder-FCX6LE4O.js");
36688
36721
  return openPictureEmbedder(model, directory2);
36689
36722
  }, "openPictureEmbedderFor");
36690
36723
 
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
36724
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/document-source.js
36692
36725
  var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file) => {
36693
36726
  const metadata = note.frontMatter;
36694
36727
  const account = accounts.find(({ id: id3 }) => String(id3) === note.folderId);
@@ -36710,7 +36743,7 @@ var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file) =>
36710
36743
  };
36711
36744
  }, "documentSource");
36712
36745
 
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
36746
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/embeddings/keys.js
36714
36747
  var endpointKeyName = /* @__PURE__ */ __name((baseUrl) => {
36715
36748
  const host = new URL(baseUrl).host;
36716
36749
  return ["openai", "anthropic"].includes(host) ? `endpoint:${host}` : host;
@@ -36743,7 +36776,7 @@ var embeddingKeys = /* @__PURE__ */ __name((app, env = process.env, keyring) =>
36743
36776
  };
36744
36777
  }, "embeddingKeys");
36745
36778
 
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
36779
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/models/openai.js
36747
36780
  var options = strictObject({
36748
36781
  temperature: range(0, 2),
36749
36782
  top_p: range(0, 1),
@@ -36810,7 +36843,7 @@ var openai = {
36810
36843
  }), "complete")
36811
36844
  };
36812
36845
 
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
36846
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/models/index.js
36814
36847
  var modelGateway = /* @__PURE__ */ __name((deps) => ({
36815
36848
  complete: /* @__PURE__ */ __name(async (request) => {
36816
36849
  if (deps.signal?.aborted)
@@ -36825,7 +36858,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
36825
36858
  if (!adapter && target2.provider === "openai")
36826
36859
  adapter = openai;
36827
36860
  if (!adapter && target2.provider === "anthropic")
36828
- adapter = (await import("./anthropic-VQUOVYOW.js")).anthropic;
36861
+ adapter = (await import("./anthropic-6HT57GNF.js")).anthropic;
36829
36862
  if (!adapter)
36830
36863
  throw new CliError("validation_error", `no model adapter for ${target2.provider}`);
36831
36864
  if (request.images !== void 0 && adapter.images !== true)
@@ -36885,7 +36918,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
36885
36918
  }, "complete")
36886
36919
  }), "modelGateway");
36887
36920
 
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
36921
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/enrichment-setting.js
36889
36922
  var SECTION2 = "enrichment";
36890
36923
  var ENRICHMENT_PROVIDERS = ["openai", "anthropic"];
36891
36924
  var DEFAULT_BASE_URLS = {
@@ -36960,7 +36993,7 @@ var costOf = /* @__PURE__ */ __name((usage, setting) => {
36960
36993
  return price ? Math.round((usage.input * price.input + usage.output * price.output) * 1e6) / 1e6 : null;
36961
36994
  }, "costOf");
36962
36995
 
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
36996
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/enrichment.js
36964
36997
  var ENRICH_PER_RUN = 600;
36965
36998
  var MAX_LINE = 400;
36966
36999
  var line2 = pipe(unknown(), transform((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim().slice(0, MAX_LINE) : ""));
@@ -37036,7 +37069,7 @@ var enrichmentState = /* @__PURE__ */ __name(async (store, env, estimateFor, key
37036
37069
  };
37037
37070
  }, "enrichmentState");
37038
37071
 
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
37072
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/notes-title-tier.js
37040
37073
  var plainQueryWords = /* @__PURE__ */ __name((query) => {
37041
37074
  let root;
37042
37075
  try {
@@ -37063,7 +37096,7 @@ var titleTiers = /* @__PURE__ */ __name((hits, words3) => {
37063
37096
  return [...hits].sort((a, b) => rank(a) - rank(b));
37064
37097
  }, "titleTiers");
37065
37098
 
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
37099
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/notes-search.js
37067
37100
  var storeQuery = /* @__PURE__ */ __name(async (store, text3, { exact, timezone } = {}) => resolvedQuery(store, parsedQuery(text3, exact), timezone), "storeQuery");
37068
37101
  var parsedQuery = /* @__PURE__ */ __name((text3, exact) => validateFields(parseLucene(text3, { ...SEARCH_QUERY, defaultField: exact ? "exact" : "text" })).root, "parsedQuery");
37069
37102
  var resolvedQuery = /* @__PURE__ */ __name(async (store, root, timezone) => {
@@ -37491,7 +37524,7 @@ var searchNotesOf = /* @__PURE__ */ __name(async (store, account, text3, { accou
37491
37524
  };
37492
37525
  }, "searchNotesOf");
37493
37526
 
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
37527
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/events-search.js
37495
37528
  var MAX_EVENTS_OFFSET = 1e3;
37496
37529
  var iso3 = /* @__PURE__ */ __name((at3) => at3 === null ? null : new Date(at3).toISOString(), "iso");
37497
37530
  var accountIdsOf = /* @__PURE__ */ __name(async (store, accounts) => {
@@ -37609,7 +37642,7 @@ var searchEvents = /* @__PURE__ */ __name(async (store, query, { limit = 20, off
37609
37642
  };
37610
37643
  }, "searchEvents");
37611
37644
 
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
37645
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/search-all-business.js
37613
37646
  var OWN_BUSINESS = { provider: "business", account: INTERNAL_NOTES };
37614
37647
  var BUSINESS_WORDS_ONLY = "invoices, payments, orders, contracts, subscriptions, products and wallets are found by the words of their numbers and names only";
37615
37648
  var placeOf = /* @__PURE__ */ __name(({ source, imported }) => source ?? (imported === void 0 ? OWN_BUSINESS : { provider: imported, account: "" }), "placeOf");
@@ -37639,7 +37672,7 @@ var searchBusiness = /* @__PURE__ */ __name(async (store, { words: words3, anyWo
37639
37672
  };
37640
37673
  }, "searchBusiness");
37641
37674
 
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
37675
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/search-all-meetings.js
37643
37676
  var MOST_HITS_PER_MEETING = 3;
37644
37677
  var PAGE_ROWS = 200;
37645
37678
  var MOST_PAGES = 25;
@@ -37867,7 +37900,7 @@ var titleItem = /* @__PURE__ */ __name((account, meeting, query) => ({
37867
37900
  foundBy: ["title"]
37868
37901
  }), "titleItem");
37869
37902
 
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
37903
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/search-harder.js
37871
37904
  var SECTION3 = "search_harder";
37872
37905
  var HARDER_MODELS = {
37873
37906
  anthropic: "claude-haiku-5-5",
@@ -38113,7 +38146,7 @@ var reorderHarder = /* @__PURE__ */ __name(async (question, hits, { laterPage, a
38113
38146
  };
38114
38147
  }, "reorderHarder");
38115
38148
 
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
38149
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/search-all.js
38117
38150
  var RESOURCES_SEARCHED = ["messages", "mail", "notes", "events", "crm", "business", "meetings"];
38118
38151
  var refusal2 = /* @__PURE__ */ __name((error, text3) => {
38119
38152
  const { reason, span } = error.details ?? {};
@@ -38558,7 +38591,7 @@ var insidePeriodFirst = /* @__PURE__ */ __name((ordered, period) => {
38558
38591
  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
38592
  }, "insidePeriodFirst");
38560
38593
 
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
38594
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/server-search.js
38562
38595
  var SERVER_SEARCH_KEY = "messages.server-search";
38563
38596
  var SERVER_BOUNDS = { timeMs: 5e3, perCall: 100, maxCalls: 3, textBytes: 262144 };
38564
38597
  var DEFAULT_BACKEND = "both";
@@ -38749,7 +38782,7 @@ var searchServer = /* @__PURE__ */ __name(async (deps, request) => {
38749
38782
  return { report, sources };
38750
38783
  }, "searchServer");
38751
38784
 
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
38785
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/messages.js
38753
38786
  var DELETE_AT_ONCE = 10;
38754
38787
  var filesOf = /* @__PURE__ */ __name(({ attachments }) => {
38755
38788
  const files = fileLinks(attachments);
@@ -39189,7 +39222,7 @@ var checkMediaOptions = /* @__PURE__ */ __name((messenger, asked, attachments) =
39189
39222
  throw new CliError("validation_error", `${MEDIA_FLAGS[first2]} needs a --photo or --file`);
39190
39223
  }, "checkMediaOptions");
39191
39224
 
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
39225
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/domain/channel-tags.js
39193
39226
  var CHANNEL_TAG_RULES_VERSION = "keywords-v1";
39194
39227
  var RULES2 = {
39195
39228
  ai: [/\b(ai|gpt|llm|machine learning|artificial intelligence)\b/iu, /нейросет|искусственн/iu],
@@ -39204,7 +39237,7 @@ var classifyChannel = /* @__PURE__ */ __name((metadata) => Object.entries(RULES2
39204
39237
  return fields2.length ? [{ tag, score: fields2.length / 3, fields: fields2 }] : [];
39205
39238
  }), "classifyChannel");
39206
39239
 
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
39240
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/metadata.js
39208
39241
  var metadataService = /* @__PURE__ */ __name((deps) => {
39209
39242
  const held = /* @__PURE__ */ __name(async (reference, { includeLeft = false } = {}) => {
39210
39243
  const store = await deps.store();
@@ -39290,7 +39323,7 @@ var metadataService = /* @__PURE__ */ __name((deps) => {
39290
39323
  };
39291
39324
  }, "metadataService");
39292
39325
 
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
39326
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/moderation/run.js
39294
39327
  var FIRST_LOOK_MS = 24 * 36e5;
39295
39328
  var moderateWith = /* @__PURE__ */ __name(async (run2) => {
39296
39329
  const { chatId, title, rules, point, since, dryRun } = run2;
@@ -39327,7 +39360,7 @@ var moderateWith = /* @__PURE__ */ __name(async (run2) => {
39327
39360
  return { chatId, rows, notes };
39328
39361
  }, "moderateWith");
39329
39362
 
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
39363
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/moderation.js
39331
39364
  var moderationService = /* @__PURE__ */ __name((deps) => {
39332
39365
  const file = /* @__PURE__ */ __name(() => {
39333
39366
  const env = deps.env ?? process.env;
@@ -39412,7 +39445,7 @@ var moderatorOf = /* @__PURE__ */ __name((adapter, deps) => ({
39412
39445
  }, "removePerson")
39413
39446
  }), "moderatorOf");
39414
39447
 
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
39448
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/private-people.js
39416
39449
  var noteItem = /* @__PURE__ */ __name((provider, note) => ({
39417
39450
  id: note.id,
39418
39451
  contact: formatReference({ type: "contact", provider, id: note.personId }),
@@ -39456,7 +39489,7 @@ var privatePeopleService = /* @__PURE__ */ __name((deps) => {
39456
39489
  };
39457
39490
  }, "privatePeopleService");
39458
39491
 
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
39492
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/rankings.js
39460
39493
  var empty = /* @__PURE__ */ __name(() => ({
39461
39494
  total: 0,
39462
39495
  population: 0,
@@ -39712,7 +39745,7 @@ var rankingsService = /* @__PURE__ */ __name((deps) => ({
39712
39745
  }, "evidence")
39713
39746
  }), "rankingsService");
39714
39747
 
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
39748
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/reply-stats.js
39716
39749
  var FIELDS2 = ["date", "chat", "kind", "muted"];
39717
39750
  var WAITING_TAIL = 100;
39718
39751
  var plainOnly = /* @__PURE__ */ __name((text3, command) => {
@@ -39846,7 +39879,7 @@ var replyStatsService = /* @__PURE__ */ __name((deps) => {
39846
39879
  };
39847
39880
  }, "replyStatsService");
39848
39881
 
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
39882
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/searches.js
39850
39883
  var savedSearchItem = /* @__PURE__ */ __name((one) => ({
39851
39884
  id: one.id,
39852
39885
  name: one.name,
@@ -39972,7 +40005,7 @@ var searchesService = /* @__PURE__ */ __name((deps) => {
39972
40005
  };
39973
40006
  }, "searchesService");
39974
40007
 
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
40008
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/tags.js
39976
40009
  var TAGGING_QUERY = {
39977
40010
  entity: "tagging",
39978
40011
  backend: "sql",
@@ -40056,7 +40089,7 @@ var tagsService = /* @__PURE__ */ __name((deps) => {
40056
40089
  };
40057
40090
  }, "tagsService");
40058
40091
 
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
40092
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/topics.js
40060
40093
  var actionOf = /* @__PURE__ */ __name(({ title, closed, pinned, hidden, icon }) => {
40061
40094
  const set = [closed, pinned, hidden].filter((one) => one !== void 0).length;
40062
40095
  if (title !== void 0 || icon !== void 0 || set !== 1)
@@ -40255,7 +40288,7 @@ var topicsService = /* @__PURE__ */ __name((deps) => {
40255
40288
  };
40256
40289
  }, "topicsService");
40257
40290
 
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
40291
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/evidence.js
40259
40292
  import { createHash as createHash11, randomUUID as randomUUID6 } from "node:crypto";
40260
40293
  var hash2 = /* @__PURE__ */ __name((value) => createHash11("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
40261
40294
  var positive2 = /* @__PURE__ */ __name((value, name, minimum = 1) => {
@@ -40329,7 +40362,7 @@ var prepareEvidencePacket = /* @__PURE__ */ __name(({ kind: kind2, source, page,
40329
40362
  return { ...content, id: randomUUID6(), fingerprint: hash2(content) };
40330
40363
  }, "prepareEvidencePacket");
40331
40364
 
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
40365
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/evidence-read.js
40333
40366
  var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, limit, before }, messenger = {}) => {
40334
40367
  if (!Number.isSafeInteger(limit) || limit < 1 || limit > 100)
40335
40368
  throw new CliError("validation_error", "evidence message limit must be an integer from 1 to 100");
@@ -40349,7 +40382,7 @@ var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, l
40349
40382
  return { ...packet, nextBeforeId: older && last ? last.id : null };
40350
40383
  }, "readEvidencePacket");
40351
40384
 
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
40385
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/meeting-project-discovery.js
40353
40386
  var scopeKeys = [
40354
40387
  "accountId",
40355
40388
  "meetingId",
@@ -40371,7 +40404,7 @@ var optionKeys = /* @__PURE__ */ new Set([
40371
40404
  "maxVocabularyReadBytes"
40372
40405
  ]);
40373
40406
 
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
40407
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/text-model-choice.js
40375
40408
  import { createHash as createHash12 } from "node:crypto";
40376
40409
  import { existsSync as existsSync2 } from "node:fs";
40377
40410
  var useTextModel = /* @__PURE__ */ __name(async (id3, { env, command }) => {
@@ -40502,14 +40535,14 @@ var addCustomTextModel = /* @__PURE__ */ __name(async (id3, payload, { env, fetc
40502
40535
  return { ...checked2.output, custom: true };
40503
40536
  }, "addCustomTextModel");
40504
40537
 
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
40538
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/calendar/sync.js
40506
40539
  var DAY8 = 864e5;
40507
40540
  var SLOTS_EVERY = 7 * DAY8;
40508
40541
 
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
40542
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/calendar/feeds.js
40510
40543
  var FEED_LIMITS = { maxBytes: 10 * 1024 * 1024, timeoutMs: 3e4, redirects: 5 };
40511
40544
 
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
40545
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/calendar/reads.js
40513
40546
  var LIST = "events list";
40514
40547
  var EVENT_TYPES = [
40515
40548
  "default",
@@ -40568,7 +40601,7 @@ var EVENTS_QUERY = {
40568
40601
  } : field)
40569
40602
  };
40570
40603
 
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
40604
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/calendar/writer.js
40572
40605
  var EVENTS_NOTIFY_KEY = "events.notify";
40573
40606
  var EVENTS_DELETE_SERIES_KEY = "events.delete.series";
40574
40607
  var EVENTS_REMIND_HOOK_KEY = "events.remind.hook";
@@ -40586,7 +40619,7 @@ var CALENDAR_WRITE_DEFAULTS = {
40586
40619
  [EVENTS_REMIND_HOOK_KEY]: "deny"
40587
40620
  };
40588
40621
 
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
40622
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/context/communication-selection.js
40590
40623
  var communicationFields = {
40591
40624
  sources: pipe(array(strictObject({
40592
40625
  id: pipe(string(), regex(/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/)),
@@ -40618,7 +40651,7 @@ var communicationRequest = /* @__PURE__ */ __name((value, preparationAfter) => {
40618
40651
  return { ...input, after, before };
40619
40652
  }, "communicationRequest");
40620
40653
 
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
40654
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/meeting-preparation-validation.js
40622
40655
  var MEETING_PREPARATION_LIMITS = {
40623
40656
  meetings: { min: 1, max: 20, default: 5 },
40624
40657
  cues: { min: 1, max: 100, default: 10 },
@@ -40691,7 +40724,7 @@ var validateMeetingPreparationRequest = /* @__PURE__ */ __name((externalId, orig
40691
40724
  };
40692
40725
  }, "validateMeetingPreparationRequest");
40693
40726
 
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
40727
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/meeting-communications-selection.js
40695
40728
  var validatePreparationCommunications = /* @__PURE__ */ __name((section, request, after) => {
40696
40729
  const fail2 = /* @__PURE__ */ __name(() => {
40697
40730
  throw new CliError("invalid_response", "Preparation communications returned another selection or invalid evidence");
@@ -40739,7 +40772,7 @@ var validatePreparationCommunications = /* @__PURE__ */ __name((section, request
40739
40772
  }
40740
40773
  }, "validatePreparationCommunications");
40741
40774
 
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
40775
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/package-upgrade.js
40743
40776
  var upgradePackage = /* @__PURE__ */ __name(async ({ current, command, packageName, check: check2 }, ports) => {
40744
40777
  const installer = ports.installer();
40745
40778
  const argv = updateCommand(installer, packageName);
@@ -40804,7 +40837,7 @@ var dayAfter = /* @__PURE__ */ __name((published) => {
40804
40837
  return Number.isNaN(time2) ? null : new Date(time2 + 24 * 60 * 60 * 1e3).toISOString();
40805
40838
  }, "dayAfter");
40806
40839
 
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
40840
+ // node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/services/index.js
40808
40841
  var servicesFor = /* @__PURE__ */ __name((deps) => {
40809
40842
  const pictures = picturesService(deps);
40810
40843
  const base = {
@@ -40966,8 +40999,11 @@ export {
40966
40999
  graphqlVariables,
40967
41000
  manifestBaseUrl,
40968
41001
  signRequest,
41002
+ underBase,
40969
41003
  parameterValue,
40970
41004
  nextPage,
41005
+ crmWindowOf,
41006
+ walk,
40971
41007
  DEFAULT_PACE,
40972
41008
  pacePathFor,
40973
41009
  Pacer,
@@ -41016,8 +41052,6 @@ export {
41016
41052
  SYNCED_FROM,
41017
41053
  syncRecorded,
41018
41054
  crmStatus,
41019
- crmWindowOf,
41020
- walk,
41021
41055
  endpointKeyName,
41022
41056
  embeddingKeys,
41023
41057
  modelGateway,