@wirecat/drive-cli 0.69.0 → 0.71.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 (228) hide show
  1. package/README.md +3 -2
  2. package/contracts/wirecat.json +14 -13
  3. package/dist/age.d.ts +0 -36
  4. package/dist/age.d.ts.map +1 -1
  5. package/dist/age.js +0 -22
  6. package/dist/age.js.map +1 -1
  7. package/dist/bin/drive.js +2 -2
  8. package/dist/bundle/{all-profiles-B4A737YW.js → all-profiles-3QJG2NAN.js} +13 -13
  9. package/dist/bundle/{anthropic-RZGPDESM.js → anthropic-PSWTEU6G.js} +8 -8
  10. package/dist/bundle/{app-server-OWEW7DY5.js → app-server-PVTA6ABR.js} +66 -58
  11. package/dist/bundle/{bun-V5QLYBZU.js → bun-LU5LP3JI.js} +2 -2
  12. package/dist/bundle/{bun-sqlite-KHLHXXGH.js → bun-sqlite-PYMKLBRU.js} +9 -9
  13. package/dist/bundle/{chunk-CAQ5GW3A.js → chunk-22QQUKWA.js} +1 -1
  14. package/dist/bundle/{chunk-3YKAFLXY.js → chunk-26DHFMGZ.js} +2 -2
  15. package/dist/bundle/{chunk-Y2QVNVHK.js → chunk-2BVVU7GG.js} +1 -1
  16. package/dist/bundle/{chunk-7JKECODO.js → chunk-2LHAVY4U.js} +1 -11
  17. package/dist/bundle/{chunk-HEBZCKMU.js → chunk-2PUNKUYJ.js} +4389 -4709
  18. package/dist/bundle/chunk-2UUWXPOB.js +31 -0
  19. package/dist/bundle/{chunk-KUQDBWPU.js → chunk-35SCQ4VI.js} +31 -32
  20. package/dist/bundle/{chunk-O6PD7RZY.js → chunk-3EBBLKIT.js} +4 -4
  21. package/dist/bundle/{chunk-PV3AWPHR.js → chunk-3N2OFXB5.js} +5 -5
  22. package/dist/bundle/{chunk-SY2HLH5R.js → chunk-3UGYFXH6.js} +82 -25
  23. package/dist/bundle/{chunk-OUM4ZO53.js → chunk-4HWJOU7N.js} +1 -1
  24. package/dist/bundle/{chunk-6D44YQ5X.js → chunk-4PA4DHYV.js} +6 -6
  25. package/dist/bundle/{chunk-EA2OB75T.js → chunk-4QNW4NK6.js} +1 -1
  26. package/dist/bundle/{chunk-GK6KXBL6.js → chunk-6SJOTNHF.js} +4 -4
  27. package/dist/bundle/{chunk-NVDR72GP.js → chunk-6TNNT2MQ.js} +250 -174
  28. package/dist/bundle/{chunk-4YECZ6CN.js → chunk-6W763DZN.js} +12 -12
  29. package/dist/bundle/{chunk-IQ2QU2X6.js → chunk-6XFIITOG.js} +1024 -598
  30. package/dist/bundle/{chunk-AD7VI3XU.js → chunk-72C4YOCH.js} +7 -7
  31. package/dist/bundle/{chunk-6EL5AVXX.js → chunk-7PDHGZN4.js} +4 -4
  32. package/dist/bundle/{chunk-22SH77TG.js → chunk-ACUAV6VX.js} +64 -64
  33. package/dist/bundle/{chunk-BBJVV4E2.js → chunk-ASMMG72J.js} +68 -38
  34. package/dist/bundle/{chunk-XUHQ7DVT.js → chunk-B5KSXHJ7.js} +1 -1
  35. package/dist/bundle/{chunk-BVVXYZSU.js → chunk-BKSQBBYG.js} +9 -9
  36. package/dist/bundle/{chunk-5SJZDEIO.js → chunk-CJLVYIOP.js} +21 -21
  37. package/dist/bundle/chunk-COJSWDNU.js +170 -0
  38. package/dist/bundle/{chunk-GTDCP5OG.js → chunk-COOOO5B3.js} +4 -4
  39. package/dist/bundle/{chunk-LUZRVBQR.js → chunk-D5TGYUVU.js} +6 -6
  40. package/dist/bundle/{chunk-CZ4UEXCE.js → chunk-EOEU3AZN.js} +6 -6
  41. package/dist/bundle/{chunk-CU6RATZH.js → chunk-FCS26CYQ.js} +4 -4
  42. package/dist/bundle/{chunk-LRCSDAYK.js → chunk-FJH7DJWK.js} +4 -4
  43. package/dist/bundle/{chunk-U3RXH6RY.js → chunk-FP54WSIR.js} +4 -4
  44. package/dist/bundle/{chunk-3URYKAJP.js → chunk-FT3LN3HP.js} +1 -1
  45. package/dist/bundle/{chunk-CDSB7WVG.js → chunk-GBKNJWOZ.js} +8 -8
  46. package/dist/bundle/{chunk-4J5GJJ2I.js → chunk-GOWXXYEF.js} +2 -2
  47. package/dist/bundle/{chunk-PB6NWKH3.js → chunk-GPQ44Y2R.js} +2 -2
  48. package/dist/bundle/{chunk-E7URRFBB.js → chunk-GZ2D4KXG.js} +10 -15
  49. package/dist/bundle/{chunk-376ZGVUZ.js → chunk-HKY7X6NY.js} +4 -4
  50. package/dist/bundle/{chunk-6XNTELM5.js → chunk-HL52XXZX.js} +1 -1
  51. package/dist/bundle/{chunk-533XOW74.js → chunk-HMS6EEQL.js} +3 -3
  52. package/dist/bundle/{chunk-F5UUJU6R.js → chunk-I4RWW3UD.js} +49 -4
  53. package/dist/bundle/{chunk-TZ75K6R7.js → chunk-ICDCAQ6K.js} +8 -8
  54. package/dist/bundle/{chunk-WOUIHZRI.js → chunk-J5Q5FS2N.js} +18 -75
  55. package/dist/bundle/{chunk-EL2E3ABX.js → chunk-JDV7HNNQ.js} +13 -13
  56. package/dist/bundle/{chunk-ZUG67442.js → chunk-JZHBZOJR.js} +3 -3
  57. package/dist/bundle/{chunk-SEJBS7SI.js → chunk-KGERXYTV.js} +1 -1
  58. package/dist/bundle/{chunk-5TK2YQCO.js → chunk-KGYVHPGE.js} +2 -2
  59. package/dist/bundle/{chunk-HCZYJMBP.js → chunk-KYKW2W6X.js} +1 -1
  60. package/dist/bundle/{chunk-RLGQMMYE.js → chunk-L46C6HQ7.js} +35 -13
  61. package/dist/bundle/chunk-LXKYKRHD.js +387 -0
  62. package/dist/bundle/{chunk-N4ACIIQB.js → chunk-MIA7P6FZ.js} +2 -2
  63. package/dist/bundle/{chunk-ZBYKCVSV.js → chunk-MNLL5YLM.js} +2 -2
  64. package/dist/bundle/{chunk-UPCEHSIZ.js → chunk-OF422U5D.js} +21 -16
  65. package/dist/bundle/{chunk-JRFKCYMW.js → chunk-OJSBWP3F.js} +23 -6
  66. package/dist/bundle/{chunk-MHXZ62CU.js → chunk-P7CUM5IB.js} +1 -1
  67. package/dist/bundle/{chunk-I55XYREN.js → chunk-PRW6SYA3.js} +1094 -2526
  68. package/dist/bundle/chunk-Q7DOMFJ4.js +259 -0
  69. package/dist/bundle/{chunk-3RLRJHAI.js → chunk-QETR5HIZ.js} +12081 -12607
  70. package/dist/bundle/{chunk-QJGFQRTL.js → chunk-QFR2PNJN.js} +12 -12
  71. package/dist/bundle/{chunk-2Q4CB4EI.js → chunk-QNRRK3CN.js} +2 -2
  72. package/dist/bundle/{chunk-5B5NOAIA.js → chunk-QXC6IEH6.js} +45 -45
  73. package/dist/bundle/{chunk-T6X6EZ5N.js → chunk-RESDD3Q4.js} +3 -3
  74. package/dist/bundle/chunk-RJOQH5YY.js +1979 -0
  75. package/dist/bundle/{chunk-AMQGKMLZ.js → chunk-RWDKMU74.js} +3 -3
  76. package/dist/bundle/{chunk-VUPWDCYV.js → chunk-SAKO3P4H.js} +1 -1
  77. package/dist/bundle/{chunk-GHFBT2ZM.js → chunk-SDKQNOL5.js} +6 -6
  78. package/dist/bundle/{chunk-25FT44S3.js → chunk-SERXSCN3.js} +287 -569
  79. package/dist/bundle/{chunk-2DS2TDGW.js → chunk-TAFHYHKA.js} +20 -118
  80. package/dist/bundle/{chunk-XVH3WZSZ.js → chunk-TAUBRNC5.js} +53 -53
  81. package/dist/bundle/{chunk-2VFAXC6O.js → chunk-UDMNY63V.js} +22 -19
  82. package/dist/bundle/{chunk-EWUQIUTB.js → chunk-UTO2GO4P.js} +5 -5
  83. package/dist/bundle/{chunk-V4FMN5A6.js → chunk-WVDCCYS3.js} +17 -17
  84. package/dist/bundle/chunk-X4TIMMKJ.js +16 -0
  85. package/dist/bundle/chunk-XF4EXO2C.js +335 -0
  86. package/dist/bundle/{chunk-OOIAJRKQ.js → chunk-XMMFBPGC.js} +2 -2
  87. package/dist/bundle/{chunk-4ZFO2CVH.js → chunk-Y2NWGNUB.js} +5 -5
  88. package/dist/bundle/{chunk-IJCUAKR5.js → chunk-YJIGGUPI.js} +4 -4
  89. package/dist/bundle/{chunk-L342KHIZ.js → chunk-YMJ6IDGT.js} +6 -6
  90. package/dist/bundle/{chunk-WNMPIRRF.js → chunk-YPFWNVHV.js} +3 -3
  91. package/dist/bundle/{chunk-T4FMXDDV.js → chunk-YPNWIB6H.js} +3 -3
  92. package/dist/bundle/{chunk-FIVFP53N.js → chunk-YVI5SQPY.js} +1 -1
  93. package/dist/bundle/{chunk-RWQ7T4Y5.js → chunk-Z3KUSRCF.js} +2 -2
  94. package/dist/bundle/{chunk-WQOGHND4.js → chunk-Z56QFOBR.js} +1 -1
  95. package/dist/bundle/chunk-ZCR3IRZ2.js +823 -0
  96. package/dist/bundle/{chunk-SYUXKV2E.js → chunk-ZM63SUHG.js} +2 -2
  97. package/dist/bundle/{chunk-M4OP5ASJ.js → chunk-ZZ32DXTH.js} +1 -1
  98. package/dist/bundle/{cli-BS4L3HAP.js → cli-556DERZL.js} +88 -69
  99. package/dist/bundle/command-contract-VRTOAV6W.js +43 -0
  100. package/dist/bundle/{command-server-entry-CJ2CV7ZV.js → command-server-entry-AYLGNZWD.js} +33 -30
  101. package/dist/bundle/decode-QU24MWMN.js +299 -0
  102. package/dist/bundle/{dispatch-WBEOHZDV.js → dispatch-4KODNOXV.js} +9 -9
  103. package/dist/bundle/drive.js +11 -11
  104. package/dist/bundle/{echarts-QIXLXS3G.js → echarts-BXX4OQWC.js} +2 -2
  105. package/dist/bundle/{embed-YNZW5X6M.js → embed-KG27KG3D.js} +9 -9
  106. package/dist/bundle/{embedder-LRC2PKTS.js → embedder-IPAVUQUV.js} +12 -12
  107. package/dist/bundle/entry-MVXQETWS.js +25 -0
  108. package/dist/bundle/{failure-X6PSLVSO.js → failure-ESL7ETL4.js} +4 -4
  109. package/dist/bundle/first-run-4UVLW2WR.js +31 -0
  110. package/dist/bundle/first-screen-JAKAIINI.js +41 -0
  111. package/dist/bundle/google-22NXXJX5.js +45 -0
  112. package/dist/bundle/{google-api-7JDZDCWE.js → google-api-VCDBSNOW.js} +70 -62
  113. package/dist/bundle/grants-MQMTVCRQ.js +118 -0
  114. package/dist/bundle/{identity-E43WKN5F.js → identity-LOWMVGZY.js} +6 -6
  115. package/dist/bundle/{instructions-MD2RZT5Z.js → instructions-2VECIDXF.js} +1 -1
  116. package/dist/bundle/{login-RBDJPQAG.js → login-7GBONT7V.js} +78 -70
  117. package/dist/bundle/{mcp-TDKGDB4V.js → mcp-O6ACR2DX.js} +2 -2
  118. package/dist/bundle/meeting-combined-LVP4AZKA.js +27 -0
  119. package/dist/bundle/meeting-model-RAY5XDXZ.js +29 -0
  120. package/dist/bundle/meeting-semantic-G7PFOKU7.js +25 -0
  121. package/dist/bundle/{node-IEVT2FSJ.js → node-MPEQSFI3.js} +2 -2
  122. package/dist/bundle/{node-sqlite-IENH4TRX.js → node-sqlite-OLQMAYB4.js} +10 -10
  123. package/dist/bundle/oauth-SGH2I2BY.js +22 -0
  124. package/dist/bundle/{open-TZ5H7NYM.js → open-OXTE672W.js} +8 -8
  125. package/dist/bundle/{openai-XF2KB7W2.js → openai-EB3TPIZY.js} +32 -30
  126. package/dist/bundle/{process-6Q23D3TO.js → process-F6TKXWWA.js} +1 -1
  127. package/dist/bundle/{program-D5XWOHV5.js → program-4IFDZ7FM.js} +1356 -1338
  128. package/dist/bundle/{prompt-KUC5D4GX.js → prompt-F5RRHPN2.js} +8 -8
  129. package/dist/bundle/{reasons-KSYP5VDJ.js → reasons-UORHJDHK.js} +5 -5
  130. package/dist/bundle/{recognize-DPFW7HO3.js → recognize-DAVNZND3.js} +7 -7
  131. package/dist/bundle/{remote-MODTSUNH.js → remote-D5EYYIAU.js} +13 -13
  132. package/dist/bundle/{rerank-JK7SERLE.js → rerank-CND2GVLZ.js} +10 -10
  133. package/dist/bundle/{serve-BV2WHZLW.js → serve-ZHSPUIGX.js} +12 -12
  134. package/dist/bundle/server-DUVJWP3Q.js +80 -0
  135. package/dist/bundle/{server-N3WPEU7Z.js → server-YMAK4LHC.js} +54 -46
  136. package/dist/bundle/{services-SV6CFUCS.js → services-ZILSFJ6E.js} +79 -54
  137. package/dist/bundle/{sqlite-runtime-RZ5PLZVQ.js → sqlite-runtime-S5VPMZQH.js} +9 -9
  138. package/dist/bundle/{start-C6EXYXAL.js → start-CR6X25RT.js} +7 -7
  139. package/dist/bundle/{state-RAZIREVG.js → state-YFPHVIIJ.js} +9 -9
  140. package/dist/bundle/{store-DQKJKX2G.js → store-CL4ZJZRI.js} +23 -19
  141. package/dist/bundle/{store-2DLGLYS6.js → store-UODRT6X4.js} +31 -26
  142. package/dist/bundle/store-maintenance-command-DY5XIBWR.js +72 -0
  143. package/dist/bundle/tokens-AF7QOFOF.js +118 -0
  144. package/dist/catalog.d.ts +0 -28
  145. package/dist/catalog.d.ts.map +1 -1
  146. package/dist/catalog.js +0 -82
  147. package/dist/catalog.js.map +1 -1
  148. package/dist/commands/catalog.d.ts +3 -8
  149. package/dist/commands/catalog.d.ts.map +1 -1
  150. package/dist/commands/catalog.js +36 -109
  151. package/dist/commands/catalog.js.map +1 -1
  152. package/dist/commands/context.d.ts +3 -0
  153. package/dist/commands/context.d.ts.map +1 -1
  154. package/dist/commands/context.js +20 -0
  155. package/dist/commands/context.js.map +1 -1
  156. package/dist/commands/documents.d.ts.map +1 -1
  157. package/dist/commands/documents.js +30 -72
  158. package/dist/commands/documents.js.map +1 -1
  159. package/dist/commands/folders.d.ts +1 -1
  160. package/dist/commands/folders.d.ts.map +1 -1
  161. package/dist/commands/folders.js +45 -48
  162. package/dist/commands/folders.js.map +1 -1
  163. package/dist/commands/knowledge.d.ts +4 -21
  164. package/dist/commands/knowledge.d.ts.map +1 -1
  165. package/dist/commands/knowledge.js +3 -241
  166. package/dist/commands/knowledge.js.map +1 -1
  167. package/dist/commands/mirrors.d.ts +2 -2
  168. package/dist/commands/mirrors.d.ts.map +1 -1
  169. package/dist/commands/mirrors.js +46 -202
  170. package/dist/commands/mirrors.js.map +1 -1
  171. package/dist/commands/search.d.ts +1 -3
  172. package/dist/commands/search.d.ts.map +1 -1
  173. package/dist/commands/search.js +20 -42
  174. package/dist/commands/search.js.map +1 -1
  175. package/dist/commands/sync.d.ts.map +1 -1
  176. package/dist/commands/sync.js +36 -53
  177. package/dist/commands/sync.js.map +1 -1
  178. package/dist/config.d.ts.map +1 -1
  179. package/dist/config.js +2 -1
  180. package/dist/config.js.map +1 -1
  181. package/dist/contract-overrides.d.ts +0 -2
  182. package/dist/contract-overrides.d.ts.map +1 -1
  183. package/dist/contract-overrides.js +0 -317
  184. package/dist/contract-overrides.js.map +1 -1
  185. package/dist/knowledge.d.ts +1 -1
  186. package/dist/knowledge.d.ts.map +1 -1
  187. package/dist/knowledge.js +4 -3
  188. package/dist/knowledge.js.map +1 -1
  189. package/dist/list-queries.d.ts +0 -31
  190. package/dist/list-queries.d.ts.map +1 -1
  191. package/dist/list-queries.js +0 -36
  192. package/dist/list-queries.js.map +1 -1
  193. package/dist/program.d.ts.map +1 -1
  194. package/dist/program.js +2 -3
  195. package/dist/program.js.map +1 -1
  196. package/dist/provider-json.d.ts.map +1 -1
  197. package/dist/provider-json.js +5 -5
  198. package/dist/provider-json.js.map +1 -1
  199. package/dist/reasons.d.ts.map +1 -1
  200. package/dist/reasons.js +0 -10
  201. package/dist/reasons.js.map +1 -1
  202. package/dist/sync.d.ts.map +1 -1
  203. package/dist/sync.js +1 -2
  204. package/dist/sync.js.map +1 -1
  205. package/dist/transcripts.d.ts +0 -6
  206. package/dist/transcripts.d.ts.map +1 -1
  207. package/dist/transcripts.js +0 -13
  208. package/dist/transcripts.js.map +1 -1
  209. package/dist/version.d.ts +1 -1
  210. package/dist/version.js +1 -1
  211. package/package.json +3 -3
  212. package/dist/bundle/command-contract-HYURWSD6.js +0 -40
  213. package/dist/bundle/decode-E2NM5SSM.js +0 -165
  214. package/dist/bundle/entry-2IMSWRJU.js +0 -25
  215. package/dist/bundle/first-run-7CPHQDM5.js +0 -30
  216. package/dist/bundle/first-screen-OKZ7GMFR.js +0 -38
  217. package/dist/bundle/google-WDKDBDD4.js +0 -45
  218. package/dist/bundle/grants-AU25GWKF.js +0 -110
  219. package/dist/bundle/oauth-3JGSN47Z.js +0 -22
  220. package/dist/bundle/server-6YDI4Y36.js +0 -72
  221. package/dist/bundle/store-maintenance-command-UJ5F5L4H.js +0 -64
  222. package/dist/bundle/tokens-LY3WML55.js +0 -110
  223. package/dist/knowledge-query.d.ts +0 -77
  224. package/dist/knowledge-query.d.ts.map +0 -1
  225. package/dist/knowledge-query.js +0 -104
  226. package/dist/knowledge-query.js.map +0 -1
  227. package/dist/bundle/{chunk-XWBPP2HX.js → chunk-VKE77B3F.js} +0 -0
  228. package/dist/bundle/{mdast-util-from-markdown-CE73EWJ2.js → mdast-util-from-markdown-FXEPSNER.js} +3 -3
@@ -2,8 +2,9 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  modelSettingsShape,
5
- resolveModelSettings
6
- } from "./chunk-F5UUJU6R.js";
5
+ resolveModelSettings,
6
+ runBudget
7
+ } from "./chunk-I4RWW3UD.js";
7
8
  import {
8
9
  currentCaller,
9
10
  endpointTemplate,
@@ -13,29 +14,33 @@ import {
13
14
  providerErrorKey,
14
15
  renderEvent,
15
16
  runContextOf
16
- } from "./chunk-AD7VI3XU.js";
17
- import {
18
- permissionCeiling
19
- } from "./chunk-CU6RATZH.js";
17
+ } from "./chunk-72C4YOCH.js";
20
18
  import {
21
19
  ancestorValue,
22
20
  envName,
23
21
  readOnlyLockOf,
24
22
  readOnlyRefusal
25
- } from "./chunk-ZBYKCVSV.js";
23
+ } from "./chunk-MNLL5YLM.js";
26
24
  import {
27
25
  carries
28
- } from "./chunk-WQOGHND4.js";
26
+ } from "./chunk-Z56QFOBR.js";
27
+ import {
28
+ DEFAULT_RERANK_MODEL,
29
+ RERANK_MODELS
30
+ } from "./chunk-XF4EXO2C.js";
31
+ import {
32
+ permissionCeiling
33
+ } from "./chunk-FCS26CYQ.js";
29
34
  import {
30
35
  endpoint
31
- } from "./chunk-L342KHIZ.js";
36
+ } from "./chunk-YMJ6IDGT.js";
32
37
  import {
33
38
  note
34
- } from "./chunk-533XOW74.js";
39
+ } from "./chunk-HMS6EEQL.js";
35
40
  import {
36
41
  filesPresent,
37
42
  sharedModelsDirectory
38
- } from "./chunk-GTDCP5OG.js";
43
+ } from "./chunk-COOOO5B3.js";
39
44
  import {
40
45
  BUSINESS_KINDS,
41
46
  CATEGORIES,
@@ -44,7 +49,6 @@ import {
44
49
  DEAL_ROLES,
45
50
  DEAL_STATUSES,
46
51
  FACT_STATUSES,
47
- FACT_TYPES,
48
52
  FINANCE_REVIEWS,
49
53
  INVOICE_DIRECTIONS,
50
54
  INVOICE_STATUSES,
@@ -53,7 +57,6 @@ import {
53
57
  LINK_KINDS,
54
58
  LINK_SOURCES,
55
59
  LOG_ATTRIBUTES,
56
- MEETING_RESULT_ENTITIES,
57
60
  MEMORY_KINDS,
58
61
  MEMORY_SCOPES,
59
62
  MEMORY_STATUSES,
@@ -64,7 +67,6 @@ import {
64
67
  RELATION_KINDS,
65
68
  RUNS_SIZE_LIMIT_MB,
66
69
  STANDINGS,
67
- TAG_TYPES,
68
70
  TASK_KINDS,
69
71
  TASK_ORIGINS,
70
72
  TASK_STATES,
@@ -76,26 +78,12 @@ import {
76
78
  count,
77
79
  currentRun,
78
80
  enclosingTraceId,
79
- event,
80
81
  evidenceSource,
81
82
  id,
82
83
  inRun,
83
84
  isGroupName,
84
85
  logAttributes,
85
86
  markStoreDamaged,
86
- meeting,
87
- meetingCounts,
88
- meetingDetails,
89
- meetingHit,
90
- meetingLink,
91
- meetingParticipants,
92
- meetingPassage,
93
- meetingProjectEvidence,
94
- meetingReview,
95
- meetingSpeaker,
96
- meetingStats,
97
- meetingSummary,
98
- meetingTranscript,
99
87
  newRunId,
100
88
  organization,
101
89
  project,
@@ -111,25 +99,50 @@ import {
111
99
  typedCommand,
112
100
  untrusted,
113
101
  useAsProcessRun
114
- } from "./chunk-I55XYREN.js";
115
- import {
116
- FIELD_TYPES,
117
- QUERY_BACKENDS,
118
- describeQuery
119
- } from "./chunk-UPCEHSIZ.js";
102
+ } from "./chunk-RJOQH5YY.js";
120
103
  import {
121
104
  isCliFailure,
122
105
  storeDamaged
123
- } from "./chunk-3YKAFLXY.js";
106
+ } from "./chunk-26DHFMGZ.js";
107
+ import {
108
+ TAG_TYPES
109
+ } from "./chunk-2UUWXPOB.js";
110
+ import {
111
+ FACT_TYPES,
112
+ MEETING_RESULT_ENTITIES,
113
+ callStats,
114
+ event,
115
+ meeting,
116
+ meetingCounts,
117
+ meetingDetails,
118
+ meetingHit,
119
+ meetingLink,
120
+ meetingParticipants,
121
+ meetingPassage,
122
+ meetingProjectEvidence,
123
+ meetingReview,
124
+ meetingSpeaker,
125
+ meetingStats,
126
+ meetingSummary,
127
+ meetingTagChange,
128
+ meetingTagging,
129
+ meetingTranscript,
130
+ readsZone
131
+ } from "./chunk-PRW6SYA3.js";
132
+ import {
133
+ FIELD_TYPES,
134
+ QUERY_BACKENDS,
135
+ describeQuery,
136
+ parseLucene,
137
+ timezoneOf
138
+ } from "./chunk-OF422U5D.js";
124
139
  import {
125
- readSharedSection,
126
140
  repairConfigText,
127
- sharedConfigPath,
128
- writeSharedSection
129
- } from "./chunk-CDSB7WVG.js";
141
+ sharedConfigPath
142
+ } from "./chunk-GBKNJWOZ.js";
130
143
  import {
131
144
  storePath
132
- } from "./chunk-RWQ7T4Y5.js";
145
+ } from "./chunk-Z3KUSRCF.js";
133
146
  import {
134
147
  configFilePath,
135
148
  createRecordLog,
@@ -140,19 +153,19 @@ import {
140
153
  resolvePaths,
141
154
  saveConfigFile,
142
155
  writeSecurely
143
- } from "./chunk-5SJZDEIO.js";
156
+ } from "./chunk-CJLVYIOP.js";
144
157
  import {
145
158
  EXIT_CODES,
146
159
  GENERIC_FAILURE,
147
160
  exitCodeOfAnswer
148
- } from "./chunk-PV3AWPHR.js";
161
+ } from "./chunk-3N2OFXB5.js";
149
162
  import {
150
163
  singleLine,
151
164
  visibleControls
152
- } from "./chunk-HCZYJMBP.js";
165
+ } from "./chunk-KYKW2W6X.js";
153
166
  import {
154
167
  defineLogEvents
155
- } from "./chunk-5TK2YQCO.js";
168
+ } from "./chunk-KGYVHPGE.js";
156
169
  import {
157
170
  COMPACT_FLAG,
158
171
  MAX_NEXT_STEPS,
@@ -162,7 +175,6 @@ import {
162
175
  check,
163
176
  defineSteps,
164
177
  effectsSchema,
165
- getDotPath,
166
178
  integer,
167
179
  isoDate,
168
180
  isoTime,
@@ -194,7 +206,6 @@ import {
194
206
  regex,
195
207
  safeInteger,
196
208
  safeParse,
197
- startsWith,
198
209
  stepOf,
199
210
  strictObject,
200
211
  string,
@@ -202,19 +213,18 @@ import {
202
213
  union,
203
214
  unknown,
204
215
  unwrap,
205
- url,
206
216
  variant,
207
217
  writes
208
- } from "./chunk-JRFKCYMW.js";
218
+ } from "./chunk-OJSBWP3F.js";
209
219
  import {
210
220
  CliError,
211
221
  isCliError
212
- } from "./chunk-EA2OB75T.js";
222
+ } from "./chunk-4QNW4NK6.js";
213
223
  import {
214
224
  __name
215
225
  } from "./chunk-ZVVMGPBJ.js";
216
226
 
217
- // node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/registry.js
227
+ // node_modules/.pnpm/@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/registry.js
218
228
  var labels = /* @__PURE__ */ new WeakMap();
219
229
  var annotate = /* @__PURE__ */ __name((command, meta) => {
220
230
  labels.set(command, { ...labels.get(command), ...meta });
@@ -3715,7 +3725,7 @@ __name(useColor, "useColor");
3715
3725
  // node_modules/.pnpm/commander@15.0.0/node_modules/commander/index.js
3716
3726
  var program = new Command();
3717
3727
 
3718
- // node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/contracts.js
3728
+ // node_modules/.pnpm/@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/contracts.js
3719
3729
  import { isDeepStrictEqual } from "node:util";
3720
3730
  var protectedCommands = /* @__PURE__ */ new WeakMap();
3721
3731
  var hasSharedContract = /* @__PURE__ */ __name((command) => protectedCommands.has(command), "hasSharedContract");
@@ -3917,7 +3927,7 @@ var customizeSharedCommand = /* @__PURE__ */ __name((reference2, reason, build,
3917
3927
  return command;
3918
3928
  }, "customizeSharedCommand");
3919
3929
 
3920
- // node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/document.js
3930
+ // node_modules/.pnpm/@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/document.js
3921
3931
  var argumentInfoSchema = object({
3922
3932
  name: string(),
3923
3933
  required: boolean(),
@@ -4000,7 +4010,7 @@ var commandsDocument = /* @__PURE__ */ __name((root, about) => ({
4000
4010
  exit_codes: { ok: 0, internal_error: GENERIC_FAILURE, ...EXIT_CODES }
4001
4011
  }), "commandsDocument");
4002
4012
 
4003
- // node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/index.js
4013
+ // node_modules/.pnpm/@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/index.js
4004
4014
  var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
4005
4015
  let command = root;
4006
4016
  const path2 = [];
@@ -4018,7 +4028,7 @@ var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
4018
4028
  }
4019
4029
  }, "refuseJoinedPath");
4020
4030
 
4021
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/sends/permissions.js
4031
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/sends/permissions.js
4022
4032
  var LEVELS = ["deny", "readonly", "ask", "allow"];
4023
4033
  var DANGEROUS = /* @__PURE__ */ new Set(["messages.delete", "bot.messages.delete", "topics.delete", "chats.delete", "chats.clear"]);
4024
4034
  var skipFlagFor = /* @__PURE__ */ __name((key) => DANGEROUS.has(key) ? "--allow-dangerous" : "--yes", "skipFlagFor");
@@ -4444,7 +4454,7 @@ var assertRetentionEvidenceRead = /* @__PURE__ */ __name((permissions) => {
4444
4454
  }
4445
4455
  }, "assertRetentionEvidenceRead");
4446
4456
 
4447
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/botcheck/reasons.js
4457
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/botcheck/reasons.js
4448
4458
  var WEIGHTS = {
4449
4459
  bot: 3,
4450
4460
  scam: 3,
@@ -4469,7 +4479,7 @@ var LINK = /https?:\/\/|t\.me\/|www\./i;
4469
4479
  var DIGITS = /\d{5,}/;
4470
4480
  var oddName = /* @__PURE__ */ __name((name) => !name?.trim() || DIGITS.test(name) || LINK.test(name), "oddName");
4471
4481
 
4472
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/contact-activity.js
4482
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/contact-activity.js
4473
4483
  var linkedIdentity = strictObject({
4474
4484
  provider: text,
4475
4485
  id,
@@ -4524,7 +4534,7 @@ var contactCheck = strictObject({
4524
4534
  checked_at: time
4525
4535
  });
4526
4536
 
4527
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/member.js
4537
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/member.js
4528
4538
  var member = strictObject({
4529
4539
  id,
4530
4540
  name: nullable(text),
@@ -4547,7 +4557,7 @@ var member = strictObject({
4547
4557
  check: optional(record(string(), unknown()))
4548
4558
  });
4549
4559
 
4550
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/chat.js
4560
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/chat.js
4551
4561
  var setting = optional(nullable(boolean()));
4552
4562
  var chat = strictObject({
4553
4563
  ref: reference,
@@ -4588,7 +4598,7 @@ var chat = strictObject({
4588
4598
  members: optional(array(member))
4589
4599
  });
4590
4600
 
4591
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/attachment.js
4601
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/attachment.js
4592
4602
  var attachment = strictObject({
4593
4603
  /** The message it came with, as a locator; absent inside that message. */
4594
4604
  message: optional(reference),
@@ -4633,7 +4643,7 @@ var hitFile = strictObject({
4633
4643
  local_path: optional(text)
4634
4644
  });
4635
4645
 
4636
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/message.js
4646
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/message.js
4637
4647
  var quoted = strictObject({
4638
4648
  id,
4639
4649
  sender_id: nullable(id),
@@ -4752,7 +4762,7 @@ var message = strictObject({
4752
4762
  provider_metadata: providerMetadata
4753
4763
  });
4754
4764
 
4755
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/recorded-meeting.js
4765
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/recorded-meeting.js
4756
4766
  var recordedMeeting = strictObject({
4757
4767
  ref: reference,
4758
4768
  meeting_id: count,
@@ -4765,7 +4775,7 @@ var recordedMeeting = strictObject({
4765
4775
  people: array(reference)
4766
4776
  });
4767
4777
 
4768
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/contact-context.js
4778
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/contact-context.js
4769
4779
  var contextPerson = strictObject({ ...linkedPerson.entries, provider: text, id });
4770
4780
  var contextMessage = strictObject({
4771
4781
  locator: reference,
@@ -4971,7 +4981,7 @@ var contactPreparation = strictObject({
4971
4981
  })
4972
4982
  });
4973
4983
 
4974
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/deal.js
4984
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/deal.js
4975
4985
  var nullableText = nullable(text);
4976
4986
  var party = strictObject({ ref: reference, name: nullableText, owner: boolean() });
4977
4987
  var outcome = picklist(["open", "won", "lost"]);
@@ -5019,7 +5029,10 @@ var deal = strictObject({
5019
5029
  external_id: nullableText,
5020
5030
  /** A CRM copy's assignee, the identity `<account>/user/<id>`. */
5021
5031
  assignee: nullableText,
5022
- /** A CRM copy's own fields by code; a list field's value is its option's label, `option_id` its id. */
5032
+ /**
5033
+ * A CRM copy's own fields by code; a list field's value is its option's label, `option_id` its id. `amount_note` is
5034
+ * WireCat's own note, not a CRM field: the CRM's amount the store could not keep, and why.
5035
+ */
5023
5036
  provider_metadata: record(string(), strictObject({
5024
5037
  label: nullable(string()),
5025
5038
  value: unknown(),
@@ -5082,7 +5095,7 @@ var stage = strictObject({
5082
5095
  untrusted
5083
5096
  });
5084
5097
 
5085
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/business-context.js
5098
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/business-context.js
5086
5099
  var nullableText2 = nullable(text);
5087
5100
  var day2 = nullable(pipe(string(), regex(/^\d{4}-\d{2}-\d{2}$/)));
5088
5101
  var standing = picklist(STANDINGS);
@@ -5256,7 +5269,7 @@ var dealBrief = strictObject({
5256
5269
  not_read: coverage2.entries.not_read
5257
5270
  });
5258
5271
 
5259
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/list-results.js
5272
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/list-results.js
5260
5273
  var botProfile = strictObject({
5261
5274
  name: text,
5262
5275
  token: text,
@@ -5380,7 +5393,7 @@ var stickerInventory = strictObject({
5380
5393
  url: optional(nullable(text))
5381
5394
  });
5382
5395
 
5383
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/batch-result.js
5396
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/batch-result.js
5384
5397
  var actionableError = objectWithRest({
5385
5398
  code: text,
5386
5399
  message: text,
@@ -5397,7 +5410,7 @@ var batchResult = strictObject({
5397
5410
  max_error_percent: count
5398
5411
  });
5399
5412
 
5400
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/conversation-preparation.js
5413
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/conversation-preparation.js
5401
5414
  var conversationBuild = strictObject({
5402
5415
  chat: id,
5403
5416
  messages: count,
@@ -5422,13 +5435,13 @@ var catchUpPreparation = strictObject({
5422
5435
  prepared: optional(conversationPreparation)
5423
5436
  });
5424
5437
 
5425
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
5438
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
5426
5439
  import { spawn } from "node:child_process";
5427
5440
  import { randomBytes } from "node:crypto";
5428
5441
  import { closeSync, existsSync, mkdirSync, openSync, readdirSync, readFileSync, realpathSync, rmSync } from "node:fs";
5429
5442
  import { dirname, join } from "node:path";
5430
5443
 
5431
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/background/checkpoints.js
5444
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/background/checkpoints.js
5432
5445
  var progressOf = /* @__PURE__ */ __name((input) => {
5433
5446
  const total = input.total ?? null;
5434
5447
  const updated = input.updatedAt ?? null;
@@ -5444,7 +5457,7 @@ var progressOf = /* @__PURE__ */ __name((input) => {
5444
5457
  };
5445
5458
  }, "progressOf");
5446
5459
 
5447
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/runs/record-log.js
5460
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/runs/record-log.js
5448
5461
  var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) => {
5449
5462
  const run = currentRun();
5450
5463
  const trace = traceId ?? run.traceId;
@@ -5458,7 +5471,7 @@ var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) =
5458
5471
  }));
5459
5472
  }, "recordLogFor");
5460
5473
 
5461
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
5474
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
5462
5475
  var JOB_STATES = ["running", "done", "partial", "failed", "cancelled", "died"];
5463
5476
  var spawnDetached = /* @__PURE__ */ __name((argv, env, log) => {
5464
5477
  const out = openSync(log, "a", 384);
@@ -5613,7 +5626,7 @@ var startArchiveJob = /* @__PURE__ */ __name((app, env, profile, input, spawnJob
5613
5626
  return { job: id6, pid, chat: input.chat, log };
5614
5627
  }, "startArchiveJob");
5615
5628
 
5616
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/job.js
5629
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/job.js
5617
5630
  var problem = strictObject({ code: text, message: text });
5618
5631
  var job = strictObject({
5619
5632
  id,
@@ -5636,7 +5649,7 @@ var job = strictObject({
5636
5649
  error: optional(problem)
5637
5650
  });
5638
5651
 
5639
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/extraction-report.js
5652
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/extraction-report.js
5640
5653
  var extractionItem = strictObject({
5641
5654
  ref: reference,
5642
5655
  attachment: count,
@@ -5669,7 +5682,7 @@ var extractionReport = strictObject({
5669
5682
  cursor: optional(text)
5670
5683
  });
5671
5684
 
5672
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/message-transfer.js
5685
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/message-transfer.js
5673
5686
  var savedMessageFile = strictObject({
5674
5687
  kind: text,
5675
5688
  path: text,
@@ -5756,7 +5769,7 @@ var messageSyncAll = strictObject({
5756
5769
  var messageSyncStarted = strictObject({ job: id, pid: count, chat: text, log: text });
5757
5770
  var messageSync = union([messageSyncEstimate, messageSyncChat, messageSyncAll, messageSyncStarted]);
5758
5771
 
5759
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/store-records.js
5772
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/store-records.js
5760
5773
  var range = strictObject({ from: number(), to: number() });
5761
5774
  var storeChatStatus = strictObject({
5762
5775
  chat_id: id,
@@ -5854,7 +5867,7 @@ var storeJobRetry = union([
5854
5867
  ]);
5855
5868
  var storeJobClear = strictObject({ cleared: array(id) });
5856
5869
 
5857
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/account.js
5870
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/account.js
5858
5871
  var account = strictObject({
5859
5872
  provider: text,
5860
5873
  id,
@@ -5864,7 +5877,7 @@ var account = strictObject({
5864
5877
  scope: optional(picklist(["personal", "work"]))
5865
5878
  });
5866
5879
 
5867
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/account-session.js
5880
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/account-session.js
5868
5881
  var accountSession = strictObject({
5869
5882
  current: boolean(),
5870
5883
  client: nullable(text),
@@ -5874,7 +5887,7 @@ var accountSession = strictObject({
5874
5887
  created_at: optional(nullable(time))
5875
5888
  });
5876
5889
 
5877
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/account-change.js
5890
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/account-change.js
5878
5891
  var accountChange = strictObject({ operation_id: id, account: omit(account, ["provider", "scope"]) });
5879
5892
  var endedAccountSessions = strictObject({ operation_id: id, sessions: array(accountSession) });
5880
5893
  var audience = picklist(["everyone", "contacts", "nobody"]);
@@ -5903,7 +5916,7 @@ var accountRemoval = strictObject({
5903
5916
  kept: array(strictObject({ kind: removalKind, target: text, reason: text }))
5904
5917
  });
5905
5918
 
5906
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/account-profile.js
5919
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/account-profile.js
5907
5920
  var accountProfile = strictObject({
5908
5921
  profile: id,
5909
5922
  current: boolean(),
@@ -5915,7 +5928,7 @@ var accountProfile = strictObject({
5915
5928
  bot: optional(literal(true))
5916
5929
  });
5917
5930
 
5918
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/counter-reading.js
5931
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/counter-reading.js
5919
5932
  var milliseconds = pipe(number(), minValue(0));
5920
5933
  var counterReading = strictObject({
5921
5934
  counter: picklist(["views", "reactions", "comments"]),
@@ -5927,7 +5940,7 @@ var counterReading = strictObject({
5927
5940
  });
5928
5941
  var selection = record(string(), unknown());
5929
5942
 
5930
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/admin-report.js
5943
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/admin-report.js
5931
5944
  var adminRow = strictObject({
5932
5945
  ref: reference,
5933
5946
  /** What `stats * evidence` takes: a person id, a stay or a message locator. */
@@ -5980,7 +5993,7 @@ var adminReport = strictObject({
5980
5993
  rows: array(adminRow)
5981
5994
  });
5982
5995
 
5983
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/task.js
5996
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/task.js
5984
5997
  var closeSuggestion = strictObject({
5985
5998
  as: picklist(["done", "dismissed"]),
5986
5999
  /** The agent's name. */
@@ -6042,7 +6055,7 @@ var task = strictObject({
6042
6055
  updated_at: optional(time)
6043
6056
  });
6044
6057
 
6045
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/agenda.js
6058
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/agenda.js
6046
6059
  var agendaChat = strictObject({
6047
6060
  chat: reference,
6048
6061
  title: nullable(text),
@@ -6112,11 +6125,11 @@ var agenda = strictObject({
6112
6125
  unlisted_categories: array(strictObject({ name: text, open_tasks: number() }))
6113
6126
  });
6114
6127
 
6115
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/analysis-consent.js
6128
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/analysis-consent.js
6116
6129
  var analysisConsent = strictObject({ chat: id, provider: text, at: time });
6117
6130
  var analysisConsentRevocation = strictObject({ revoked: boolean() });
6118
6131
 
6119
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/attachment-results.js
6132
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/attachment-results.js
6120
6133
  var fingerprint = pipe(text, regex(/^[a-f0-9]{64}$/));
6121
6134
  var attachmentBytes = strictObject({
6122
6135
  ref: reference,
@@ -6147,7 +6160,7 @@ var attachmentTextChange = strictObject({
6147
6160
  text: optional(text)
6148
6161
  });
6149
6162
 
6150
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/chart.js
6163
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/chart.js
6151
6164
  var chart = strictObject({
6152
6165
  version: literal(1),
6153
6166
  kind: picklist(["bar", "line", "grouped-bar"]),
@@ -6162,7 +6175,7 @@ var chart = strictObject({
6162
6175
  file: optional(strictObject({ path: text, format: picklist(["svg", "png"]), width: count, height: count }))
6163
6176
  });
6164
6177
 
6165
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/folder.js
6178
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/folder.js
6166
6179
  var named = strictObject({
6167
6180
  id,
6168
6181
  title: nullable(text),
@@ -6185,7 +6198,7 @@ var folder = strictObject({
6185
6198
  excluded_chats: optional(array(named))
6186
6199
  });
6187
6200
 
6188
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/invite-link.js
6201
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/invite-link.js
6189
6202
  var inviteLink = strictObject({
6190
6203
  link: text,
6191
6204
  /** Who joins by it asks first, and an admin lets them in. */
@@ -6201,7 +6214,7 @@ var inviteLink = strictObject({
6201
6214
  joined_count: optional(count)
6202
6215
  });
6203
6216
 
6204
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/chat-admin.js
6217
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/chat-admin.js
6205
6218
  var operated = { operation_id: id, chat_id: id };
6206
6219
  var group = strictObject({
6207
6220
  ...omit(chat, ["ref", "provider", "account", "invite_link", "members"]).entries,
@@ -6281,7 +6294,7 @@ var chatFolderOrder = strictObject({
6281
6294
  folders: array(strictObject({ id, title: text }))
6282
6295
  });
6283
6296
 
6284
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/chat-change.js
6297
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/chat-change.js
6285
6298
  var operated2 = { operation_id: id, chat_id: id };
6286
6299
  var chatRemoval = strictObject(operated2);
6287
6300
  var chatMuting = strictObject({
@@ -6292,7 +6305,7 @@ var chatArchive = strictObject({ ...operated2, archived: boolean() });
6292
6305
  var chatPin = strictObject({ ...operated2, pinned: boolean() });
6293
6306
  var chatUnread = strictObject({ ...operated2, unread: literal(true) });
6294
6307
 
6295
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/chat-event.js
6308
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/chat-event.js
6296
6309
  var who = strictObject({ id: nullable(id), name: nullable(text), username: optional(nullable(text)) });
6297
6310
  var chatEvent = strictObject({
6298
6311
  chat_id: id,
@@ -6309,7 +6322,7 @@ var chatEvent = strictObject({
6309
6322
  before: optional(strictObject({ name: nullable(text), username: nullable(text) }))
6310
6323
  });
6311
6324
 
6312
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/chat-metadata.js
6325
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/chat-metadata.js
6313
6326
  var chatMetadata = strictObject({
6314
6327
  chat_id: id,
6315
6328
  title: nullable(text),
@@ -6324,7 +6337,7 @@ var chatMetadataRefresh = strictObject({
6324
6337
  has_more: boolean()
6325
6338
  });
6326
6339
 
6327
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/chat-moderation.js
6340
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/chat-moderation.js
6328
6341
  var action = picklist(["report", "delete", "remove"]);
6329
6342
  var level = picklist(["deny", "readonly", "ask", "allow"]);
6330
6343
  var chatRules = strictObject({
@@ -6361,7 +6374,17 @@ var chatModeration = strictObject({
6361
6374
  }))
6362
6375
  });
6363
6376
 
6364
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/chat-stats.js
6377
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/chat-sending.js
6378
+ var chatSending = strictObject({
6379
+ mode: picklist(["allowed", "ask", "denied"]),
6380
+ meaning: text,
6381
+ /** When the owner last set it; `null` while it is the default, ask. */
6382
+ since: nullable(time),
6383
+ /** `set` only: whether this run changed it. */
6384
+ changed: optional(boolean())
6385
+ });
6386
+
6387
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/chat-stats.js
6365
6388
  var optionalCount = optional(count);
6366
6389
  var minutes = nullable(number());
6367
6390
  var chatStats = strictObject({
@@ -6437,7 +6460,7 @@ var taskStats = strictObject({
6437
6460
  }))
6438
6461
  });
6439
6462
 
6440
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/chat-tracking.js
6463
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/chat-tracking.js
6441
6464
  var memberCount = strictObject({
6442
6465
  day: pipe(text, isoDate()),
6443
6466
  participants: nullable(count),
@@ -6460,7 +6483,7 @@ var chatTracking = strictObject({
6460
6483
  tracked: boolean()
6461
6484
  });
6462
6485
 
6463
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/contact-read.js
6486
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/contact-read.js
6464
6487
  var contactLookup = strictObject({ id, name: nullable(text), username: nullable(text) });
6465
6488
  var contactSync = strictObject({ added: count, changed: count, known: count });
6466
6489
  var profileFields = {
@@ -6498,7 +6521,7 @@ var profileFields = {
6498
6521
  }))
6499
6522
  };
6500
6523
 
6501
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/contact.js
6524
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/contact.js
6502
6525
  var contact = strictObject({
6503
6526
  ref: reference,
6504
6527
  id,
@@ -6529,7 +6552,7 @@ var contact = strictObject({
6529
6552
  notes: optional(array(strictObject({ id, text, revision: count, created_at: time, updated_at: time })))
6530
6553
  });
6531
6554
 
6532
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/contact-note.js
6555
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/contact-note.js
6533
6556
  var contactNote = strictObject({
6534
6557
  id,
6535
6558
  /** The contact, as a `contact:` reference. */
@@ -6541,13 +6564,13 @@ var contactNote = strictObject({
6541
6564
  updated_at: time
6542
6565
  });
6543
6566
 
6544
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/contact-write.js
6567
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/contact-write.js
6545
6568
  var addressBookPerson = strictObject({ id, name: nullable(text), username: nullable(text) });
6546
6569
  var contactUpdate = strictObject({ operation_id: id, person: addressBookPerson });
6547
6570
  var contactStateChange = strictObject({ operation_id: id, person_id: id });
6548
6571
  var contactImport = strictObject({ operation_id: id, sent: count, recognised: array(addressBookPerson) });
6549
6572
 
6550
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/conversation.js
6573
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/conversation.js
6551
6574
  var conversation = strictObject({
6552
6575
  id,
6553
6576
  chat: reference,
@@ -6562,7 +6585,7 @@ var conversation = strictObject({
6562
6585
  rules_version: count
6563
6586
  });
6564
6587
 
6565
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/conversation-results.js
6588
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/conversation-results.js
6566
6589
  var conversationDetails = union([
6567
6590
  strictObject({ ...conversation.entries, messages: array(message) }),
6568
6591
  message
@@ -6652,7 +6675,7 @@ var conversationHit = strictObject({
6652
6675
  stale: boolean()
6653
6676
  });
6654
6677
 
6655
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/counters.js
6678
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/counters.js
6656
6679
  var counters = strictObject({
6657
6680
  cutoff: time,
6658
6681
  max_age_ms: milliseconds,
@@ -6682,7 +6705,7 @@ var counterRefresh = strictObject({
6682
6705
  complete: optional(boolean())
6683
6706
  });
6684
6707
 
6685
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/document.js
6708
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/document.js
6686
6709
  var document = strictObject({
6687
6710
  ref: reference,
6688
6711
  id,
@@ -6697,7 +6720,7 @@ var document = strictObject({
6697
6720
  owners: optional(array(text))
6698
6721
  });
6699
6722
 
6700
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/document-link.js
6723
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/document-link.js
6701
6724
  var documentLink = strictObject({
6702
6725
  ref: reference,
6703
6726
  url: text,
@@ -6708,7 +6731,7 @@ var documentLink = strictObject({
6708
6731
  sender: strictObject({ id: nullable(id), name: nullable(text) })
6709
6732
  });
6710
6733
 
6711
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/evidence.js
6734
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/evidence.js
6712
6735
  var evidenceMessage = pick(message, ["ref", "chat_title", "timestamp", "sender_name", "text"]);
6713
6736
  var contribution = strictObject({
6714
6737
  message: evidenceMessage,
@@ -6738,7 +6761,7 @@ var retentionStay = strictObject({
6738
6761
  });
6739
6762
  var evidence = union([contribution, retentionStay]);
6740
6763
 
6741
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/fact.js
6764
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/fact.js
6742
6765
  var fact = strictObject({
6743
6766
  ref: reference,
6744
6767
  id,
@@ -6769,7 +6792,7 @@ var fact = strictObject({
6769
6792
  updated_at: time
6770
6793
  });
6771
6794
 
6772
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/hit.js
6795
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/hit.js
6773
6796
  var hit = strictObject({
6774
6797
  kind: picklist(["message", "mail", "note", "document", "event", "meeting", "deal", "lead", ...BUSINESS_KINDS]),
6775
6798
  ref: reference,
@@ -6817,7 +6840,7 @@ var hit = strictObject({
6817
6840
  untrusted
6818
6841
  });
6819
6842
 
6820
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/identity.js
6843
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/identity.js
6821
6844
  var identity = strictObject({
6822
6845
  ref: reference,
6823
6846
  provider: text,
@@ -6833,7 +6856,7 @@ var identity = strictObject({
6833
6856
  person: optional(nullable(reference))
6834
6857
  });
6835
6858
 
6836
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/image-embedding.js
6859
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/image-embedding.js
6837
6860
  var imageEmbedding = strictObject({
6838
6861
  model: text,
6839
6862
  embedded: count,
@@ -6842,7 +6865,7 @@ var imageEmbedding = strictObject({
6842
6865
  more: boolean()
6843
6866
  });
6844
6867
 
6845
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/join-request.js
6868
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/join-request.js
6846
6869
  var joinRequest = strictObject({
6847
6870
  person_id: id,
6848
6871
  name: nullable(text),
@@ -6853,7 +6876,7 @@ var joinRequest = strictObject({
6853
6876
  about: optional(text)
6854
6877
  });
6855
6878
 
6856
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/poll-vote.js
6879
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/poll-vote.js
6857
6880
  var pollVote = strictObject({
6858
6881
  person_id: id,
6859
6882
  name: nullable(text),
@@ -6863,7 +6886,7 @@ var pollVote = strictObject({
6863
6886
  voted_at: time
6864
6887
  });
6865
6888
 
6866
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/listener.js
6889
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/listener.js
6867
6890
  var reactions = unwrap(unwrap(message.entries.reactions));
6868
6891
  var observation = strictObject({
6869
6892
  value: pipe(number(), minValue(0)),
@@ -6905,7 +6928,7 @@ var serveSummary = strictObject({
6905
6928
  tasks: optional(strictObject({ added: count, closed: count, review: count }))
6906
6929
  });
6907
6930
 
6908
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/mail-counts.js
6931
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/mail-counts.js
6909
6932
  var mailCounts = strictObject({
6910
6933
  by: picklist(["day", "week", "sender"]),
6911
6934
  received: count,
@@ -6920,7 +6943,7 @@ var mailCounts = strictObject({
6920
6943
  }))
6921
6944
  });
6922
6945
 
6923
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/mail-findings.js
6946
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/mail-findings.js
6924
6947
  var evidence2 = strictObject({ reference, fingerprint: text });
6925
6948
  var base = { id, evidence: array(evidence2) };
6926
6949
  var finding = variant("kind", [
@@ -7064,7 +7087,7 @@ var mailFindings = strictObject({
7064
7087
  receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome2) }))
7065
7088
  });
7066
7089
 
7067
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/media-archive.js
7090
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/media-archive.js
7068
7091
  var mediaArchive = strictObject({
7069
7092
  directory: text,
7070
7093
  chats: count,
@@ -7096,7 +7119,7 @@ var mediaArchiveTimer = union([
7096
7119
  strictObject({ ...timer, action: picklist(["install", "start", "stop", "uninstall"]) })
7097
7120
  ]);
7098
7121
 
7099
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation-parts.js
7122
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation-parts.js
7100
7123
  var preparationId = pipe(string(), minLength(1));
7101
7124
  var preparationCount = pipe(number(), integer(), minValue(0));
7102
7125
  var preparationTime = nullable(isoTime);
@@ -7188,7 +7211,7 @@ var preparationMeeting = strictObject({
7188
7211
  updated_at: isoTime
7189
7212
  });
7190
7213
 
7191
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/meeting-evidence.js
7214
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/meeting-evidence.js
7192
7215
  var meetingEvidence = preparationEvidence;
7193
7216
  var meetingPersonContext = strictObject({
7194
7217
  person: strictObject({ uid: string(), name: nullable(string()) }),
@@ -7210,7 +7233,7 @@ var meetingPersonContext = strictObject({
7210
7233
  })
7211
7234
  });
7212
7235
 
7213
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/meeting-findings.js
7236
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/meeting-findings.js
7214
7237
  var evidence3 = strictObject({ reference, fingerprint: text });
7215
7238
  var base2 = { id, project: reference, evidence: array(evidence3) };
7216
7239
  var finding2 = variant("kind", [
@@ -7248,7 +7271,7 @@ var meetingFindings = strictObject({
7248
7271
  receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome3) }))
7249
7272
  });
7250
7273
 
7251
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/meeting-communications.js
7274
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/meeting-communications.js
7252
7275
  var communicationCoverage = strictObject({
7253
7276
  read_usage: strictObject({ reads: preparationCount, charged_bytes: preparationCount, reserved_bytes: preparationCount, remaining_bytes: preparationCount }),
7254
7277
  query: string(),
@@ -7293,7 +7316,7 @@ var preparationCommunications = strictObject({
7293
7316
  }))
7294
7317
  });
7295
7318
 
7296
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation.js
7319
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation.js
7297
7320
  var meetingPreparation = strictObject({
7298
7321
  communications: optional(preparationCommunications),
7299
7322
  schema_version: literal(1),
@@ -7406,7 +7429,7 @@ var meetingPreparation = strictObject({
7406
7429
  })
7407
7430
  });
7408
7431
 
7409
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/meeting-project-candidates.js
7432
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/meeting-project-candidates.js
7410
7433
  var count3 = pipe(number(), integer(), minValue(0));
7411
7434
  var id3 = pipe(string(), minLength(1));
7412
7435
  var text3 = string();
@@ -7470,7 +7493,7 @@ var meetingProjectCandidates = strictObject({
7470
7493
  })
7471
7494
  });
7472
7495
 
7473
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/meeting-series-inventory.js
7496
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/meeting-series-inventory.js
7474
7497
  var count4 = pipe(number(), integer(), minValue(0));
7475
7498
  var id4 = pipe(string(), minLength(1), maxLength(1e3));
7476
7499
  var meetingSeriesInventory = strictObject({
@@ -7500,7 +7523,7 @@ var meetingSeriesInventory = strictObject({
7500
7523
  })
7501
7524
  });
7502
7525
 
7503
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/meeting-task-proposal.js
7526
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/meeting-task-proposal.js
7504
7527
  var text4 = string();
7505
7528
  var id5 = pipe(number(), integer(), minValue(1));
7506
7529
  var revision = picklist(["current", "superseded"]);
@@ -7517,7 +7540,7 @@ var meetingTaskProposal = strictObject({
7517
7540
  persistence: literal("proposal-only")
7518
7541
  });
7519
7542
 
7520
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/memory.js
7543
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/memory.js
7521
7544
  var memory = strictObject({
7522
7545
  ref: reference,
7523
7546
  id,
@@ -7545,7 +7568,7 @@ var memory = strictObject({
7545
7568
  updated_at: time
7546
7569
  });
7547
7570
 
7548
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/mention.js
7571
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/mention.js
7549
7572
  var kind = picklist(["phone", "email", "url", "document", "person-name", "place"]);
7550
7573
  var status = picklist(["found", "linked", "proposed", "dismissed"]);
7551
7574
  var mention = strictObject({
@@ -7589,13 +7612,13 @@ var mentionRebuild = strictObject({
7589
7612
  mentions: count
7590
7613
  });
7591
7614
 
7592
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/message-change.js
7615
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/message-change.js
7593
7616
  var operated3 = { operation_id: id, chat_id: id };
7594
7617
  var messagePin = strictObject({ ...operated3, message_id: id, pinned: boolean() });
7595
7618
  var messageStar = strictObject({ ...operated3, message_id: id, starred: boolean() });
7596
7619
  var messageDeletion = strictObject({ ...operated3, deleted: array(id), for_everyone: boolean() });
7597
7620
 
7598
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/message-read.js
7621
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/message-read.js
7599
7622
  var messageTranscript = strictObject({
7600
7623
  message_id: id,
7601
7624
  text,
@@ -7653,7 +7676,7 @@ var evidencePacket = strictObject({
7653
7676
  }))
7654
7677
  });
7655
7678
 
7656
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/message-context.js
7679
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/message-context.js
7657
7680
  var messageThread = strictObject({
7658
7681
  ref: reference,
7659
7682
  chat: id,
@@ -7670,7 +7693,7 @@ var messageThread = strictObject({
7670
7693
  });
7671
7694
  var messageContext = union([message, messageThread]);
7672
7695
 
7673
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/message-counts.js
7696
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/message-counts.js
7674
7697
  var messageCounts = strictObject({
7675
7698
  by: picklist(["chat", "sender", "day", "hour"]),
7676
7699
  total: count,
@@ -7683,7 +7706,7 @@ var messageCounts = strictObject({
7683
7706
  }))
7684
7707
  });
7685
7708
 
7686
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/message-link.js
7709
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/message-link.js
7687
7710
  var messageLink = strictObject({
7688
7711
  ref: reference,
7689
7712
  url: nullable(text),
@@ -7700,7 +7723,7 @@ var messageLink = strictObject({
7700
7723
  })))
7701
7724
  });
7702
7725
 
7703
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/message-write.js
7726
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/message-write.js
7704
7727
  var messageWrite = strictObject({
7705
7728
  operation_id: id,
7706
7729
  message,
@@ -7715,7 +7738,7 @@ var draftWrite = strictObject({
7715
7738
  });
7716
7739
  var messageSend = union([messageWrite, draftWrite]);
7717
7740
 
7718
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/model.js
7741
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/model.js
7719
7742
  var model = strictObject({
7720
7743
  id,
7721
7744
  kind: picklist(["audio", "text", "image", "reranker"]),
@@ -7750,7 +7773,7 @@ var chosenModel = strictObject({
7750
7773
  estimate_seconds: nullable(count)
7751
7774
  });
7752
7775
 
7753
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/model-key.js
7776
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/model-key.js
7754
7777
  var source = picklist(["environment", "keyring", "file"]);
7755
7778
  var modelKey = strictObject({
7756
7779
  provider: text,
@@ -7760,7 +7783,7 @@ var modelKey = strictObject({
7760
7783
  var storedModelKey = strictObject({ ...omit(modelKey, ["removed"]).entries, stored: source });
7761
7784
  var removedModelKey = strictObject({ ...omit(modelKey, ["stored"]).entries, removed: array(source) });
7762
7785
 
7763
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/official-stats.js
7786
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/official-stats.js
7764
7787
  var versus = strictObject({ current: number(), previous: number() });
7765
7788
  var person = { person_ref: reference, name: nullable(text) };
7766
7789
  var graph = strictObject({
@@ -7794,14 +7817,14 @@ var officialStats = strictObject({
7794
7817
  graphs: record(string(), union([graph, strictObject({ error: text })]))
7795
7818
  });
7796
7819
 
7797
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/person.js
7820
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/person.js
7798
7821
  var person2 = strictObject({
7799
7822
  ref: reference,
7800
7823
  name: nullable(text),
7801
7824
  identities: optional(array(identity))
7802
7825
  });
7803
7826
 
7804
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/poll.js
7827
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/poll.js
7805
7828
  var poll = strictObject({
7806
7829
  chat_id: id,
7807
7830
  message_id: id,
@@ -7817,11 +7840,11 @@ var poll = strictObject({
7817
7840
  });
7818
7841
  var pollChange = strictObject({ operation_id: id, poll });
7819
7842
 
7820
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/private-contact.js
7843
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/private-contact.js
7821
7844
  var contactAlias = strictObject({ person_id: id, alias: nullable(text) });
7822
7845
  var contactNoteRemoval = strictObject({ id, person_id: id, removed: boolean() });
7823
7846
 
7824
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/ranking.js
7847
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/ranking.js
7825
7848
  var figures = record(string(), number());
7826
7849
  var freshness = picklist(["fresh", "stale", "partial", "unknown"]);
7827
7850
  var rankingRow = strictObject({
@@ -7868,7 +7891,7 @@ var ranking = strictObject({
7868
7891
  rows: array(rankingRow)
7869
7892
  });
7870
7893
 
7871
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/reaction.js
7894
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/reaction.js
7872
7895
  var reaction = strictObject({
7873
7896
  person: strictObject({ id, name: nullable(text), username: nullable(text) }),
7874
7897
  /** The emoji, or `custom:<id>` for a custom one. */
@@ -7876,7 +7899,7 @@ var reaction = strictObject({
7876
7899
  reacted_at: time
7877
7900
  });
7878
7901
 
7879
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/reaction-change.js
7902
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/reaction-change.js
7880
7903
  var reactionChange = strictObject({
7881
7904
  operation_id: id,
7882
7905
  chat_id: id,
@@ -7884,7 +7907,7 @@ var reactionChange = strictObject({
7884
7907
  reaction: nullable(text)
7885
7908
  });
7886
7909
 
7887
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/recipient.js
7910
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/recipient.js
7888
7911
  var recipient = strictObject({ id, title: nullable(text), partner_id: optional(id), added_at: time });
7889
7912
  var recipientAdded = strictObject({ id, title: nullable(text), added: boolean() });
7890
7913
  var recipientRemoved = strictObject({ id, title: nullable(text), removed: boolean() });
@@ -7895,7 +7918,7 @@ var recipientChange = strictObject({
7895
7918
  ...partial(recipientOff).entries
7896
7919
  });
7897
7920
 
7898
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/recorded-run.js
7921
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/recorded-run.js
7899
7922
  var events = array(record(string(), unknown()));
7900
7923
  var recordedRun = strictObject({
7901
7924
  run_id: id,
@@ -7967,7 +7990,7 @@ var runHit = strictObject({
7967
7990
  });
7968
7991
  var runLocation = strictObject({ path: text });
7969
7992
 
7970
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/relationship.js
7993
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/relationship.js
7971
7994
  var relationship = strictObject({
7972
7995
  id,
7973
7996
  from: reference,
@@ -7994,7 +8017,7 @@ var relationship = strictObject({
7994
8017
  created_at: time
7995
8018
  });
7996
8019
 
7997
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/reply-stats.js
8020
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/reply-stats.js
7998
8021
  var milliseconds2 = nullable(pipe(number(), minValue(0)));
7999
8022
  var figures2 = { replies: count, median_ms: milliseconds2, p90_ms: milliseconds2, mean_ms: milliseconds2 };
8000
8023
  var responseTimes = strictObject({
@@ -8011,7 +8034,7 @@ var waitingChats = strictObject({
8011
8034
  by_kind: strictObject({ private: count, group: count })
8012
8035
  });
8013
8036
 
8014
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/retention.js
8037
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/retention.js
8015
8038
  var retentionCohort = strictObject({
8016
8039
  /** The first day of the joining day or week. */
8017
8040
  cohort: text,
@@ -8059,7 +8082,7 @@ var retention = strictObject({
8059
8082
  rows: array(retentionCohort)
8060
8083
  });
8061
8084
 
8062
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/saved-search.js
8085
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/saved-search.js
8063
8086
  var savedSearch = strictObject({
8064
8087
  id,
8065
8088
  /** `null` for a run in the history. */
@@ -8076,7 +8099,7 @@ var savedSearch = strictObject({
8076
8099
  });
8077
8100
  var searchHistoryClear = strictObject({ cleared: count });
8078
8101
 
8079
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/send-attempt.js
8102
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/send-attempt.js
8080
8103
  var sendAttempt = strictObject({
8081
8104
  at: time,
8082
8105
  profile: text,
@@ -8104,7 +8127,7 @@ var sendAttempt = strictObject({
8104
8127
  error_code: optional(text)
8105
8128
  });
8106
8129
 
8107
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/store-maintenance.js
8130
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/store-maintenance.js
8108
8131
  var absent = strictObject({ path: text, exists: literal(false) });
8109
8132
  var schema = strictObject({ version: count, min_compatible: count, writable: boolean(), speaks: count });
8110
8133
  var infoSchema = strictObject({
@@ -8334,7 +8357,7 @@ var storeRepair = union([
8334
8357
  ]);
8335
8358
  var storeCopyRemoval = strictObject({ path: text, deleted: strictObject({ name: text, rows: count }) });
8336
8359
 
8337
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/store-table.js
8360
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/store-table.js
8338
8361
  var TABLE_KINDS = ["data", "search_index", "search_index_part", "internal"];
8339
8362
  var storeTable = strictObject({
8340
8363
  name: text,
@@ -8343,7 +8366,7 @@ var storeTable = strictObject({
8343
8366
  bytes: optional(nullable(count))
8344
8367
  });
8345
8368
 
8346
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/tag-change.js
8369
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/tag-change.js
8347
8370
  var tagTarget = variant("type", [
8348
8371
  strictObject({ type: literal("chat"), chat_id: id }),
8349
8372
  strictObject({ type: literal("contact"), person_id: id }),
@@ -8374,7 +8397,7 @@ var automaticTags = strictObject({
8374
8397
  dry_run: boolean()
8375
8398
  });
8376
8399
 
8377
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/tagging.js
8400
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/tagging.js
8378
8401
  var tagging = strictObject({
8379
8402
  tag: text,
8380
8403
  type: picklist(TAG_TYPES),
@@ -8387,7 +8410,7 @@ var tagging = strictObject({
8387
8410
  created_at: time
8388
8411
  });
8389
8412
 
8390
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/task-pair.js
8413
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/task-pair.js
8391
8414
  var side = strictObject({ ref: reference, key: text, title: text, status: text });
8392
8415
  var taskPair = strictObject({
8393
8416
  task: nullable(side),
@@ -8410,7 +8433,7 @@ var taskPair = strictObject({
8410
8433
  created_at: time
8411
8434
  });
8412
8435
 
8413
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/task-results.js
8436
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/task-results.js
8414
8437
  var nullableTime = nullable(time);
8415
8438
  var link = strictObject({
8416
8439
  id,
@@ -8584,7 +8607,7 @@ var taskReview = strictObject({
8584
8607
  untrusted
8585
8608
  });
8586
8609
 
8587
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/template.js
8610
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/template.js
8588
8611
  var template = strictObject({
8589
8612
  key: text,
8590
8613
  channel: picklist(["telegram", "email", "text"]),
@@ -8596,7 +8619,7 @@ var template = strictObject({
8596
8619
  updated_by: nullable(text)
8597
8620
  });
8598
8621
 
8599
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/topic.js
8622
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/topic.js
8600
8623
  var topic = strictObject({
8601
8624
  id,
8602
8625
  title: text,
@@ -8610,7 +8633,7 @@ var topic = strictObject({
8610
8633
  untrusted
8611
8634
  });
8612
8635
 
8613
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/index.js
8636
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/index.js
8614
8637
  var ENTITIES = {
8615
8638
  sync_progress: progress,
8616
8639
  deal,
@@ -8785,6 +8808,9 @@ var ENTITIES = {
8785
8808
  meeting_link: meetingLink,
8786
8809
  meeting_stats: meetingStats,
8787
8810
  meeting_counts: meetingCounts,
8811
+ call_stats: callStats,
8812
+ meeting_tag_change: meetingTagChange,
8813
+ meeting_tagging: meetingTagging,
8788
8814
  meeting_speaker: meetingSpeaker,
8789
8815
  meeting_participants: meetingParticipants,
8790
8816
  meeting_passage: meetingPassage,
@@ -8861,6 +8887,7 @@ var ENTITIES = {
8861
8887
  chat_moderation: chatModeration,
8862
8888
  "model.chosen": chosenModel,
8863
8889
  model_key: modelKey,
8890
+ chat_sending: chatSending,
8864
8891
  "model_key.stored": storedModelKey,
8865
8892
  "model_key.removed": removedModelKey,
8866
8893
  chat_event: chatEvent,
@@ -8905,7 +8932,7 @@ var entityDefinitions = /* @__PURE__ */ __name(() => Object.fromEntries(Object.e
8905
8932
  return [name, definition];
8906
8933
  })), "entityDefinitions");
8907
8934
 
8908
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/answer-entity.js
8935
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/cli/answer-entity.js
8909
8936
  var schemas = /* @__PURE__ */ new WeakMap();
8910
8937
  var answerEntity = /* @__PURE__ */ __name((command, name, schema2, options = {}) => {
8911
8938
  if (Object.hasOwn(ENTITIES, name))
@@ -8939,7 +8966,7 @@ var answerRow = /* @__PURE__ */ __name((command) => {
8939
8966
  return own && metaOf(command).output?.entity === own.name ? own.row : void 0;
8940
8967
  }, "answerRow");
8941
8968
 
8942
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/project-status-rows.js
8969
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/cli/project-status-rows.js
8943
8970
  var where = [{ field: "ref" }];
8944
8971
  var who2 = { field: ["who.owner", "who.name"], tag: "you" };
8945
8972
  var ON_CHAT_ROW = /* @__PURE__ */ new Set(["reply-next", "coverage"]);
@@ -9031,7 +9058,7 @@ var STATUS_ROWS = {
9031
9058
  "status.failed": { columns: [{ field: "signal" }], text: ["why"] }
9032
9059
  };
9033
9060
 
9034
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/compact.js
9061
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/cli/compact.js
9035
9062
  var TEXT_CHARS = 400;
9036
9063
  var sender = { field: ["sender_is_me", "sender_name"], tag: "me" };
9037
9064
  var messageRow = {
@@ -9399,7 +9426,7 @@ var compactText = /* @__PURE__ */ __name((body, shape, options, rowsOf = rowsOfE
9399
9426
  return lines.concat(footerOf(body)).join("\n");
9400
9427
  }, "compactText");
9401
9428
 
9402
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/result-fields.js
9429
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/cli/result-fields.js
9403
9430
  var named2 = /* @__PURE__ */ __name((work) => {
9404
9431
  try {
9405
9432
  return work();
@@ -9426,7 +9453,7 @@ var projectFields2 = /* @__PURE__ */ __name((value, fields) => named2(() => {
9426
9453
  return projectFields(value, fields);
9427
9454
  }), "projectFields");
9428
9455
 
9429
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/runs/log-events.js
9456
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/runs/log-events.js
9430
9457
  var CORE_LOG_EVENTS = defineLogEvents([
9431
9458
  { id: "provider.request", meaning: "a request went to the messenger", keys: ["operation"] },
9432
9459
  { id: "provider.response", meaning: "the messenger answered the request, or it failed", keys: ["operation"] },
@@ -9464,7 +9491,7 @@ var DIAGNOSTIC_LOG_EVENTS = {
9464
9491
  progress: "sync.progress"
9465
9492
  };
9466
9493
 
9467
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/runs/recording.js
9494
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/runs/recording.js
9468
9495
  var recorded = /* @__PURE__ */ __name(async (options, body) => {
9469
9496
  const recording = startRecording(options);
9470
9497
  try {
@@ -9679,7 +9706,7 @@ var partialOutcome = /* @__PURE__ */ __name((answer) => {
9679
9706
  return void 0;
9680
9707
  }, "partialOutcome");
9681
9708
 
9682
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/command-server-request.js
9709
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/cli/command-server-request.js
9683
9710
  import { AsyncLocalStorage } from "node:async_hooks";
9684
9711
  var requests = new AsyncLocalStorage();
9685
9712
  var inCommandServerRequest = /* @__PURE__ */ __name((request, work) => requests.run(request, work), "inCommandServerRequest");
@@ -9694,7 +9721,7 @@ var exitCodeSet = /* @__PURE__ */ __name(() => {
9694
9721
  return direct;
9695
9722
  }, "exitCodeSet");
9696
9723
 
9697
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/sends/guarded.js
9724
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/sends/guarded.js
9698
9725
  import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
9699
9726
  var sentIds = /* @__PURE__ */ __name((typed2, message2) => ({
9700
9727
  messageId: message2.id,
@@ -9800,7 +9827,7 @@ var guardedWrite = /* @__PURE__ */ __name(async (guard, attempt, act, settled2 =
9800
9827
  }, "guardedWrite");
9801
9828
  var codeOf = /* @__PURE__ */ __name((error) => typeof error?.code === "string" ? error.code : "unknown", "codeOf");
9802
9829
 
9803
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/deadline.js
9830
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/cli/deadline.js
9804
9831
  var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
9805
9832
  if (ms2 === void 0)
9806
9833
  return body();
@@ -9826,7 +9853,7 @@ var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
9826
9853
  }
9827
9854
  }, "withDeadline");
9828
9855
 
9829
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/execution.js
9856
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/cli/execution.js
9830
9857
  var DEFAULT_COMMAND_MS = 3e4;
9831
9858
  var DEFAULT_COOPERATIVE_MS = 5 * 6e4;
9832
9859
  var DEFAULT_SYNC_MS = 15 * 6e4;
@@ -10009,7 +10036,7 @@ var withAbort = /* @__PURE__ */ __name(async (signal, body) => {
10009
10036
  }
10010
10037
  }, "withAbort");
10011
10038
 
10012
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/profile.js
10039
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/cli/profile.js
10013
10040
  var asFirstWord = /* @__PURE__ */ __name((profile) => `${profile} `, "asFirstWord");
10014
10041
  var PLAIN_NAME = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
10015
10042
  var isProfileName = /* @__PURE__ */ __name((word) => PLAIN_NAME.test(word), "isProfileName");
@@ -10035,12 +10062,12 @@ var takesProfile = /* @__PURE__ */ __name((command) => {
10035
10062
  return top !== void 0 && !PROFILE_FREE.has(top.name());
10036
10063
  }, "takesProfile");
10037
10064
  var commandWords = /* @__PURE__ */ __name((program2) => /* @__PURE__ */ new Set(["help", ...program2.commands.flatMap((command) => [command.name(), ...command.aliases()])]), "commandWords");
10038
- var liftProfile = /* @__PURE__ */ __name((argv, words2, valued = /* @__PURE__ */ new Set()) => {
10065
+ var liftProfile = /* @__PURE__ */ __name((argv, words, valued = /* @__PURE__ */ new Set()) => {
10039
10066
  let at2 = 0;
10040
10067
  while (argv[at2]?.startsWith("-") && argv[at2] !== "--")
10041
10068
  at2 += valued.has(argv[at2]) ? 2 : 1;
10042
10069
  const first2 = argv[at2];
10043
- if (first2 === void 0 || first2.startsWith("-") || words2.has(first2))
10070
+ if (first2 === void 0 || first2.startsWith("-") || words.has(first2))
10044
10071
  return { rest: argv };
10045
10072
  return { profile: first2, rest: [...argv.slice(0, at2), ...argv.slice(at2 + 1)] };
10046
10073
  }, "liftProfile");
@@ -10063,9 +10090,9 @@ var runGroup = /* @__PURE__ */ __name((app, env, word) => {
10063
10090
  return { name: lock, from: LOCK, locked: true };
10064
10091
  }, "runGroup");
10065
10092
  var valuedOptions = /* @__PURE__ */ __name((program2) => new Set(program2.options.filter((option) => option.required).flatMap((option) => [option.long, option.short].filter((flag2) => flag2 !== void 0))), "valuedOptions");
10066
- var refuseCommandName = /* @__PURE__ */ __name((profile, words2, command) => {
10067
- if (words2.has(profile)) {
10068
- throw new CliError("validation_error", `"${profile}" is a command, so \`${command} ${profile} \u2026\` would always mean the command and never this profile. Pick a name that is not one of: ` + [...words2].sort().join(", "));
10093
+ var refuseCommandName = /* @__PURE__ */ __name((profile, words, command) => {
10094
+ if (words.has(profile)) {
10095
+ throw new CliError("validation_error", `"${profile}" is a command, so \`${command} ${profile} \u2026\` would always mean the command and never this profile. Pick a name that is not one of: ` + [...words].sort().join(", "));
10069
10096
  }
10070
10097
  }, "refuseCommandName");
10071
10098
  var rootOf = /* @__PURE__ */ __name((command) => {
@@ -10096,13 +10123,13 @@ var sampleCommand = /* @__PURE__ */ __name((commands) => {
10096
10123
  return void 0;
10097
10124
  }, "sampleCommand");
10098
10125
 
10099
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/analysis/settings.js
10126
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/analysis/settings.js
10100
10127
  var model2 = pipe(string(), trim(), minLength(1), maxLength(200));
10101
- var url2 = pipe(string(), check(endpoint, "use an HTTP/S endpoint without credentials, query or fragment"));
10128
+ var url = pipe(string(), check(endpoint, "use an HTTP/S endpoint without credentials, query or fragment"));
10102
10129
  var AI_FIELDS = {
10103
10130
  embeddingProvider: optional(picklist(["local", "openai"])),
10104
10131
  embeddingModel: optional(model2),
10105
- embeddingBaseUrl: optional(url2),
10132
+ embeddingBaseUrl: optional(url),
10106
10133
  embeddingDims: optional(pipe(number(), integer(), minValue(1), maxValue(65536))),
10107
10134
  models: optional(modelSettingsShape)
10108
10135
  };
@@ -10140,7 +10167,7 @@ var resolveAISettings = /* @__PURE__ */ __name((prefix, layers, env) => {
10140
10167
  };
10141
10168
  }, "resolveAISettings");
10142
10169
 
10143
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/domain/duration.js
10170
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/domain/duration.js
10144
10171
  var DURATION = /^(\d+)(ms|s|m|h|d)$/;
10145
10172
  var UNIT_MS = { ms: 1, s: 1e3, m: 6e4, h: 36e5, d: 864e5 };
10146
10173
  var parseDuration = /* @__PURE__ */ __name((value, source2) => {
@@ -10154,296 +10181,19 @@ var parseDuration = /* @__PURE__ */ __name((value, source2) => {
10154
10181
  return ms2;
10155
10182
  }, "parseDuration");
10156
10183
 
10157
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/embeddings/models.js
10158
- import { existsSync as existsSync2 } from "node:fs";
10184
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/cli/bot/registry.js
10185
+ import { existsSync as existsSync2, readdirSync as readdirSync2, readFileSync as readFileSync2 } from "node:fs";
10159
10186
  import { join as join2 } from "node:path";
10160
- var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/${repository}/resolve/${commit}/${name}`, "huggingFace");
10161
- var e5 = huggingFace("Xenova/multilingual-e5-small", "761b726dd34fb83930e26aab4e9ac3899aa1fa78");
10162
- var e5Large = huggingFace("Xenova/multilingual-e5-large", "00fc3aeb3dbb95842de2ac1961d33c6319acf57b");
10163
- var gemma = huggingFace("onnx-community/embeddinggemma-300m-ONNX", "5090578d9565bb06545b4552f76e6bc2c93e4a66");
10164
- var TEXT_MODELS = [
10165
- {
10166
- id: "e5-small",
10167
- title: "multilingual-e5-small, 8-bit",
10168
- size: "small",
10169
- languages: "about 100 languages, Russian and English among them",
10170
- licence: "MIT",
10171
- dims: 384,
10172
- maxTokens: 512,
10173
- // 100k-message corpus, one 8-thread session on Ryzen AI 9 HX 470: 31–32 chunks/s.
10174
- chunksPerSecond: 31,
10175
- pooling: "mean",
10176
- prefix: { query: "query: ", passage: "passage: " },
10177
- onnx: "onnx/model_quantized.onnx",
10178
- files: [
10179
- {
10180
- name: "onnx/model_quantized.onnx",
10181
- url: e5("onnx/model_quantized.onnx"),
10182
- sha256: "f80102d3f2a1229f387d3c81909990d8945513e347b0eab049f7de3c6f98c193",
10183
- bytes: 118308185
10184
- },
10185
- {
10186
- name: "tokenizer.json",
10187
- url: e5("tokenizer.json"),
10188
- sha256: "0b44a9d7b51c3c62626640cda0e2c2f70fdacdc25bbbd68038369d14ebdf4c39",
10189
- bytes: 17082730
10190
- },
10191
- {
10192
- name: "tokenizer_config.json",
10193
- url: e5("tokenizer_config.json"),
10194
- sha256: "a1d6bc8734a6f635dc158508bef000f8e2e5a759c7d92f984b2c86e5ff53425b",
10195
- bytes: 443
10196
- }
10197
- ]
10198
- },
10199
- {
10200
- id: "embeddinggemma",
10201
- title: "EmbeddingGemma 300M, 4-bit",
10202
- size: "medium",
10203
- languages: "over 100 languages \u2014 the best of the two on chat, about seven times slower",
10204
- licence: "Gemma Terms of Use",
10205
- terms: "https://ai.google.dev/gemma/terms",
10206
- // Gemma Terms of Use §3.1: every copy carries this notice and the use restrictions of §3.2.
10207
- notice: "Gemma is provided under and subject to the Gemma Terms of Use found at ai.google.dev/gemma/terms. Its use is restricted by the Gemma Prohibited Use Policy: https://ai.google.dev/gemma/prohibited_use_policy",
10208
- dims: 768,
10209
- maxTokens: 2048,
10210
- // 2026-11-08, 1,200-character chunks, 8 threads on the Ryzen AI 9 HX 470: 8.3 chunks/s against e5-small's 52.7, so
10211
- // 5 on the scale e5-small's 31 sets. It was 2, which held a memo sync to 39 chunks.
10212
- chunksPerSecond: 5,
10213
- pooling: "sentence_embedding",
10214
- prefix: { query: "task: search result | query: ", passage: "title: none | text: " },
10215
- onnx: "onnx/model_q4.onnx",
10216
- externalData: "onnx/model_q4.onnx_data",
10217
- files: [
10218
- {
10219
- name: "onnx/model_q4.onnx",
10220
- url: gemma("onnx/model_q4.onnx"),
10221
- sha256: "ad1dfee81a70f7944b9b9d1cc6e48075b832881cf33fab2f2b248be78f3f0043",
10222
- bytes: 519322
10223
- },
10224
- {
10225
- name: "onnx/model_q4.onnx_data",
10226
- url: gemma("onnx/model_q4.onnx_data"),
10227
- sha256: "599962c3143b040de2dd05e5975be3e9091dd067cacc6a8f7186e3203bab9e02",
10228
- bytes: 196725760
10229
- },
10230
- {
10231
- name: "tokenizer.json",
10232
- url: gemma("tokenizer.json"),
10233
- sha256: "4dda02faaf32bc91031dc8c88457ac272b00c1016cc679757d1c441b248b9c47",
10234
- bytes: 20323312
10235
- },
10236
- {
10237
- name: "tokenizer_config.json",
10238
- url: gemma("tokenizer_config.json"),
10239
- sha256: "3ca953eea6c3c9fcda9cf3df22949ff18b216f7c74bd6459230f3f1013953f3a",
10240
- bytes: 1156830
10241
- }
10242
- ]
10243
- },
10244
- {
10245
- id: "e5-large",
10246
- title: "multilingual-e5-large, 8-bit",
10247
- size: "large",
10248
- languages: "about 100 languages, Russian and English among them \u2014 reads better than e5-small, several times slower",
10249
- licence: "MIT",
10250
- dims: 1024,
10251
- maxTokens: 512,
10252
- // 2026-11-07, one 8-thread session on the Ryzen AI 9 HX 470 while other benchmarks ran: 3.4 chunks/s.
10253
- chunksPerSecond: 4,
10254
- pooling: "mean",
10255
- prefix: { query: "query: ", passage: "passage: " },
10256
- onnx: "onnx/model_quantized.onnx",
10257
- files: [
10258
- {
10259
- name: "onnx/model_quantized.onnx",
10260
- url: e5Large("onnx/model_quantized.onnx"),
10261
- sha256: "0a8d65db9a36f810ba5da15249f13145fcdc7890e6656f1fd38cd8b7c4db1fca",
10262
- bytes: 561768762
10263
- },
10264
- {
10265
- name: "tokenizer.json",
10266
- url: e5Large("tokenizer.json"),
10267
- sha256: "62c24cdc13d4c9952d63718d6c9fa4c287974249e16b7ade6d5a85e7bbb75626",
10268
- bytes: 17082660
10269
- },
10270
- {
10271
- name: "tokenizer_config.json",
10272
- url: e5Large("tokenizer_config.json"),
10273
- sha256: "efb5c0d09722e5fe59a462cd2a9976ee216d55b037597d997cd3fe833216da15",
10274
- bytes: 418
10275
- }
10276
- ]
10277
- }
10278
- ];
10279
- var DEFAULT_TEXT_MODEL = "embeddinggemma";
10280
- var PREVIOUS_DEFAULT_TEXT_MODEL = "e5-small";
10281
- var SECTION = "text_models";
10282
- var slug = pipe(string(), regex(/^[a-z0-9][a-z0-9._-]{0,62}$/, "is not a model id: a-z, 0-9, . _ -"));
10283
- var words = pipe(string(), trim(), minLength(1), maxLength(300));
10284
- var fileName = pipe(string(), check((name) => /^[\w.-]+(\/[\w.-]+)*$/.test(name) && !name.split("/").some((part) => part === ".." || part === "."), "is not a file inside the model's folder"));
10285
- var modelFile = strictObject({
10286
- name: fileName,
10287
- url: pipe(string(), url(), startsWith("https://", "has to be an https address")),
10288
- sha256: pipe(string(), regex(/^[0-9a-f]{64}$/, "has to be a sha256 in hex")),
10289
- bytes: pipe(number(), integer(), minValue(1))
10290
- });
10291
- var CustomTextModelShape = pipe(strictObject({
10292
- id: slug,
10293
- title: words,
10294
- languages: words,
10295
- licence: words,
10296
- terms: optional(pipe(string(), url())),
10297
- dims: pipe(number(), integer(), minValue(1), maxValue(8192)),
10298
- maxTokens: pipe(number(), integer(), minValue(16), maxValue(32768)),
10299
- chunksPerSecond: optional(pipe(number(), minValue(0.01))),
10300
- pooling: picklist(["mean", "sentence_embedding"]),
10301
- prefix: strictObject({
10302
- query: pipe(string(), maxLength(200)),
10303
- passage: pipe(string(), maxLength(200))
10304
- }),
10305
- onnx: fileName,
10306
- externalData: optional(fileName),
10307
- files: pipe(array(modelFile), minLength(1), maxLength(16))
10308
- }), check((model3) => !TEXT_MODELS.some((one) => one.id === model3.id), "takes the id of a model this version ships; choose another"), check((model3) => {
10309
- const names = model3.files.map(({ name }) => name);
10310
- return [model3.onnx, model3.externalData, "tokenizer.json", "tokenizer_config.json"].every((name) => name === void 0 || names.includes(name));
10311
- }, "has to list its onnx file, its external data and tokenizer.json and tokenizer_config.json among files"));
10312
- var TextModelsSection = strictObject({
10313
- use: optional(slug),
10314
- custom: optional(array(CustomTextModelShape))
10315
- });
10316
- var textModelsFile = /* @__PURE__ */ __name((env = process.env) => sharedConfigPath(storePath(env), env), "textModelsFile");
10317
- var readTextModelsSection = /* @__PURE__ */ __name((env = process.env) => {
10318
- const path2 = textModelsFile(env);
10319
- const section2 = readSharedSection(path2, SECTION);
10320
- if (section2 === void 0)
10321
- return {};
10322
- const checked = safeParse(TextModelsSection, section2);
10323
- if (!checked.success) {
10324
- const issue = checked.issues[0];
10325
- const at2 = issue ? getDotPath(issue) : null;
10326
- throw new CliError("configuration_error", `${path2}: ${SECTION}${at2 ? `.${at2}` : ""} ${issue?.message ?? "is not valid"}`);
10327
- }
10328
- const ids = checked.output.custom?.map(({ id: id6 }) => id6) ?? [];
10329
- const twice = ids.find((id6, at2) => ids.indexOf(id6) !== at2);
10330
- if (twice)
10331
- throw new CliError("configuration_error", `${path2}: ${SECTION}.custom names ${twice} twice`);
10332
- return checked.output;
10333
- }, "readTextModelsSection");
10334
- var writeTextModelsSection = /* @__PURE__ */ __name((section2, env = process.env) => writeSharedSection(textModelsFile(env), SECTION, section2.use === void 0 && !section2.custom?.length ? void 0 : section2), "writeTextModelsSection");
10335
- var textModels = /* @__PURE__ */ __name((env = process.env) => [
10336
- ...TEXT_MODELS,
10337
- ...(readTextModelsSection(env).custom ?? []).map((model3) => ({ ...model3, custom: true }))
10338
- ], "textModels");
10339
- var textModel = /* @__PURE__ */ __name((id6, env = process.env) => {
10340
- const known = textModels(env);
10341
- const found = known.find((model3) => model3.id === id6);
10342
- if (!found) {
10343
- throw new CliError("validation_error", `no text model ${id6} \u2014 one of: ${known.map((model3) => model3.id).join(", ")}`);
10344
- }
10345
- return found;
10346
- }, "textModel");
10347
- var downloaded = /* @__PURE__ */ __name((id6, env) => {
10348
- const model3 = TEXT_MODELS.find((one) => one.id === id6);
10349
- const directory = sharedModelsDirectory("text", env);
10350
- return model3 !== void 0 && filesPresent(model3.files.map((file) => [file, join2(directory, model3.id, file.name)]));
10351
- }, "downloaded");
10352
- var chosenTextModel = /* @__PURE__ */ __name((env = process.env) => {
10353
- const use = readTextModelsSection(env).use;
10354
- if (use !== void 0)
10355
- return { id: use, from: "chosen" };
10356
- const kept = !downloaded(DEFAULT_TEXT_MODEL, env) && existsSync2(join2(sharedModelsDirectory("text", env), PREVIOUS_DEFAULT_TEXT_MODEL));
10357
- return { id: kept ? PREVIOUS_DEFAULT_TEXT_MODEL : DEFAULT_TEXT_MODEL, from: "default" };
10358
- }, "chosenTextModel");
10359
- var mmarco = huggingFace("cross-encoder/mmarco-mMiniLMv2-L12-H384-v1", "1427fd652930e4ba29e8149678df786c240d8825");
10360
- var bge = huggingFace("onnx-community/bge-reranker-v2-m3-ONNX", "6f5ff65298512715a1e669753bc754d2bc8f367b");
10361
- var RERANK_MODELS = [
10362
- {
10363
- id: "mmarco",
10364
- title: "mMARCO mMiniLMv2-L12 cross-encoder, 8-bit",
10365
- languages: "about 100 languages, Russian and English among them",
10366
- licence: "Apache-2.0",
10367
- maxTokens: 512,
10368
- // The x86 name is the quantizer's target; WebAssembly and native ONNX Runtime both run it on any processor.
10369
- onnx: "onnx/model_quint8_avx2.onnx",
10370
- files: [
10371
- {
10372
- name: "onnx/model_quint8_avx2.onnx",
10373
- url: mmarco("onnx/model_quint8_avx2.onnx"),
10374
- sha256: "6c2513767fb63d008a4377bef7a7a3555433d9436342bb53e35a3a72ffc52d4b",
10375
- bytes: 118620016
10376
- },
10377
- {
10378
- name: "tokenizer.json",
10379
- url: mmarco("tokenizer.json"),
10380
- sha256: "62c24cdc13d4c9952d63718d6c9fa4c287974249e16b7ade6d5a85e7bbb75626",
10381
- bytes: 17082660
10382
- },
10383
- {
10384
- name: "tokenizer_config.json",
10385
- url: mmarco("tokenizer_config.json"),
10386
- sha256: "e7fbfbfa6347b4e414c1cee50d142e2c2f9a895dad68b068ae83a8b564c3837e",
10387
- bytes: 435
10388
- }
10389
- ]
10390
- },
10391
- {
10392
- id: "bge-reranker-v2-m3",
10393
- title: "BGE reranker v2 m3, 8-bit",
10394
- languages: "over 100 languages \u2014 better than mmarco in the benchmark, about seven times slower",
10395
- licence: "Apache-2.0 (BAAI's; the ONNX export declares none)",
10396
- maxTokens: 512,
10397
- onnx: "onnx/model_quantized.onnx",
10398
- files: [
10399
- {
10400
- name: "onnx/model_quantized.onnx",
10401
- url: bge("onnx/model_quantized.onnx"),
10402
- sha256: "912fc1215c2dbff6499700534bd8d31253af01573861abbfc43afd1fab6cce5d",
10403
- bytes: 570727094
10404
- },
10405
- {
10406
- name: "tokenizer.json",
10407
- url: bge("tokenizer.json"),
10408
- sha256: "8bf8afbfd11306bd872018c53bfdf2e160a56f8edbcf49933324404791c148d3",
10409
- bytes: 17082900
10410
- },
10411
- {
10412
- name: "tokenizer_config.json",
10413
- url: bge("tokenizer_config.json"),
10414
- sha256: "b87c8703482b0300d3da30e201519aa641f6a450f5eb5bf1e624afbf70c74d80",
10415
- bytes: 1203
10416
- }
10417
- ]
10418
- }
10419
- ];
10420
- var DEFAULT_RERANK_MODEL = "mmarco";
10421
- var rerankModel = /* @__PURE__ */ __name((id6) => {
10422
- const found = RERANK_MODELS.find((model3) => model3.id === id6);
10423
- if (!found) {
10424
- throw new CliError("validation_error", `no reranker ${id6} \u2014 one of: ${RERANK_MODELS.map((model3) => model3.id).join(", ")}`);
10425
- }
10426
- return found;
10427
- }, "rerankModel");
10428
- var vectorModelKey = /* @__PURE__ */ __name((model3) => {
10429
- const weights = model3.custom ? model3.files.find(({ name }) => name === model3.onnx)?.sha256.slice(0, 12) : void 0;
10430
- return `local:${model3.id}${weights ? `@${weights}` : ""}:${model3.dims}`;
10431
- }, "vectorModelKey");
10432
- var meaningFloor = /* @__PURE__ */ __name((key) => key === "local:e5-small:384" ? 0.8 : 0, "meaningFloor");
10433
-
10434
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/bot/registry.js
10435
- import { existsSync as existsSync3, readdirSync as readdirSync2, readFileSync as readFileSync2 } from "node:fs";
10436
- import { join as join3 } from "node:path";
10437
- var botsDirectory = /* @__PURE__ */ __name((app, env = process.env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "bots"), "botsDirectory");
10187
+ var botsDirectory = /* @__PURE__ */ __name((app, env = process.env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "bots"), "botsDirectory");
10438
10188
  var botFiles = /* @__PURE__ */ __name((app, profile, env = process.env) => {
10439
10189
  const directory = botsDirectory(app, env);
10440
10190
  return {
10441
- registry: join3(directory, `${profile}.json`),
10442
- recipients: join3(directory, "recipients", `${profile}.json`),
10443
- journal: join3(directory, "sends", `${profile}.jsonl`),
10444
- updates: join3(directory, "updates", `${profile}.json`),
10445
- presses: join3(directory, "presses", `${profile}.json`),
10446
- checks: join3(directory, "checks", `${profile}.json`)
10191
+ registry: join2(directory, `${profile}.json`),
10192
+ recipients: join2(directory, "recipients", `${profile}.json`),
10193
+ journal: join2(directory, "sends", `${profile}.jsonl`),
10194
+ updates: join2(directory, "updates", `${profile}.json`),
10195
+ presses: join2(directory, "presses", `${profile}.json`),
10196
+ checks: join2(directory, "checks", `${profile}.json`)
10447
10197
  };
10448
10198
  }, "botFiles");
10449
10199
  var ChatRegistry = class {
@@ -10470,7 +10220,7 @@ var ChatRegistry = class {
10470
10220
  }
10471
10221
  /** Makes this bot known to `bot list` before it has seen any chat. */
10472
10222
  touch() {
10473
- if (!existsSync3(this.#path))
10223
+ if (!existsSync2(this.#path))
10474
10224
  writeSecurely(this.#path, `${JSON.stringify({ chats: [] }, null, 2)}
10475
10225
  `, 384);
10476
10226
  }
@@ -10499,7 +10249,7 @@ var ChatRegistry = class {
10499
10249
  this.#write({ ...this.#read(), chats: [...byId.values()] });
10500
10250
  }
10501
10251
  #read() {
10502
- if (!existsSync3(this.#path))
10252
+ if (!existsSync2(this.#path))
10503
10253
  return {};
10504
10254
  try {
10505
10255
  const parsed = JSON.parse(readFileSync2(this.#path, "utf8"));
@@ -10515,12 +10265,12 @@ var ChatRegistry = class {
10515
10265
  };
10516
10266
  var registryProfiles = /* @__PURE__ */ __name((app, env = process.env) => {
10517
10267
  const directory = botsDirectory(app, env);
10518
- if (!existsSync3(directory))
10268
+ if (!existsSync2(directory))
10519
10269
  return [];
10520
10270
  return readdirSync2(directory, { withFileTypes: true }).filter((entry) => entry.isFile() && entry.name.endsWith(".json")).map((entry) => entry.name).map((name) => name.slice(0, -".json".length));
10521
10271
  }, "registryProfiles");
10522
10272
 
10523
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
10273
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
10524
10274
  import { readFileSync as readFileSync3 } from "node:fs";
10525
10275
  var isNode = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
10526
10276
  var SECTIONS = ["personal", "bot"];
@@ -10816,20 +10566,20 @@ var readConfigFile = /* @__PURE__ */ __name((path2) => {
10816
10566
  return "issue" in parsed ? { issue: publicIssue(parsed.issue) } : parsed;
10817
10567
  }, "readConfigFile");
10818
10568
 
10819
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/default-config.js
10820
- import { existsSync as existsSync4, linkSync, mkdirSync as mkdirSync2, mkdtempSync, rmSync as rmSync2, writeFileSync } from "node:fs";
10821
- import { dirname as dirname2, join as join4 } from "node:path";
10569
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/cli/default-config.js
10570
+ import { existsSync as existsSync3, linkSync, mkdirSync as mkdirSync2, mkdtempSync, rmSync as rmSync2, writeFileSync } from "node:fs";
10571
+ import { dirname as dirname2, join as join3 } from "node:path";
10822
10572
  var DEFAULT_CONFIG = {
10823
10573
  defaults: { limit: 20, keep_runs_for_days: 30, sends_per_hour: 30, update_check: true, skill_hint: true },
10824
10574
  profiles: {}
10825
10575
  };
10826
10576
  function ensureDefaultConfig(path2, config = DEFAULT_CONFIG) {
10827
- if (existsSync4(path2))
10577
+ if (existsSync3(path2))
10828
10578
  return;
10829
10579
  const directory = dirname2(path2);
10830
10580
  mkdirSync2(directory, { recursive: true, mode: 448 });
10831
- const temporary = mkdtempSync(join4(directory, ".config-"));
10832
- const candidate = join4(temporary, "config.json");
10581
+ const temporary = mkdtempSync(join3(directory, ".config-"));
10582
+ const candidate = join3(temporary, "config.json");
10833
10583
  try {
10834
10584
  writeFileSync(candidate, `${JSON.stringify(config, null, 2)}
10835
10585
  `, { flag: "wx", mode: 384 });
@@ -10845,10 +10595,10 @@ function ensureDefaultConfig(path2, config = DEFAULT_CONFIG) {
10845
10595
  }
10846
10596
  __name(ensureDefaultConfig, "ensureDefaultConfig");
10847
10597
 
10848
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/messenger/accounts.js
10849
- import { existsSync as existsSync5, readdirSync as readdirSync3, readFileSync as readFileSync4 } from "node:fs";
10850
- import { join as join5 } from "node:path";
10851
- var accountFileFor = /* @__PURE__ */ __name((app, profile, env) => join5(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "accounts", `${profile}.json`), "accountFileFor");
10598
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/cli/messenger/accounts.js
10599
+ import { existsSync as existsSync4, readdirSync as readdirSync3, readFileSync as readFileSync4 } from "node:fs";
10600
+ import { join as join4 } from "node:path";
10601
+ var accountFileFor = /* @__PURE__ */ __name((app, profile, env) => join4(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "accounts", `${profile}.json`), "accountFileFor");
10852
10602
  var rememberAccount = /* @__PURE__ */ __name((app, profile, id6, env) => writeSecurely(accountFileFor(app, profile, env), `${JSON.stringify({ account: id6 })}
10853
10603
  `, 384), "rememberAccount");
10854
10604
  var recalledAccount = /* @__PURE__ */ __name((app, provider, profile, env) => {
@@ -10860,14 +10610,14 @@ var recalledAccount = /* @__PURE__ */ __name((app, provider, profile, env) => {
10860
10610
  }
10861
10611
  }, "recalledAccount");
10862
10612
  var profilesWithAccounts = /* @__PURE__ */ __name((app, env) => {
10863
- const dir = join5(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "accounts");
10864
- if (!existsSync5(dir))
10613
+ const dir = join4(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "accounts");
10614
+ if (!existsSync4(dir))
10865
10615
  return [];
10866
10616
  return readdirSync3(dir).filter((name) => name.endsWith(".json")).map((name) => name.slice(0, -".json".length));
10867
10617
  }, "profilesWithAccounts");
10868
10618
  var profilesHere = /* @__PURE__ */ __name((app, configured, env) => [.../* @__PURE__ */ new Set([...configured, ...profilesWithAccounts(app, env)])].sort(), "profilesHere");
10869
10619
 
10870
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/setting-defaults.js
10620
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/cli/setting-defaults.js
10871
10621
  var isNode2 = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
10872
10622
  var parentOf = /* @__PURE__ */ __name((config, key) => {
10873
10623
  const path2 = key.split(".");
@@ -10900,10 +10650,10 @@ var settingRows = /* @__PURE__ */ __name((raw, declared) => declared.map((settin
10900
10650
  };
10901
10651
  }), "settingRows");
10902
10652
 
10903
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/settings.js
10904
- import { existsSync as existsSync6 } from "node:fs";
10653
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/cli/settings.js
10654
+ import { existsSync as existsSync5 } from "node:fs";
10905
10655
 
10906
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/services/history-limits.js
10656
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/services/history-limits.js
10907
10657
  var HISTORY_MAX_DAYS = 1095;
10908
10658
  var DEFAULT_HISTORY_LIMITS = { dialogDays: 1095, groupDays: 365, groupMembersMax: 50 };
10909
10659
  var DAY_MS = 24 * 60 * 60 * 1e3;
@@ -10950,7 +10700,7 @@ var limitBatch = /* @__PURE__ */ __name((batch, shapes, included, limits, now =
10950
10700
  return { batch: { ...batch, messages }, skipped };
10951
10701
  }, "limitBatch");
10952
10702
 
10953
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/settings.js
10703
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/cli/settings.js
10954
10704
  var DEFAULT_LIMIT = DEFAULT_CONFIG.defaults.limit;
10955
10705
  var DEFAULT_KEEP_RUNS_FOR_DAYS = DEFAULT_CONFIG.defaults.keep_runs_for_days;
10956
10706
  var DEFAULT_SENDS_PER_HOUR = DEFAULT_CONFIG.defaults.sends_per_hour;
@@ -11103,8 +10853,8 @@ var NoProfileHere = class extends CliError {
11103
10853
  this.app = app;
11104
10854
  }
11105
10855
  /** `words`: the command that was typed, without its arguments, so the suggestion runs as written. */
11106
- withoutSetup(words2) {
11107
- const command = words2 ? `${this.app.command} personal ${words2}` : `${this.app.command} personal \u2026`;
10856
+ withoutSetup(words) {
10857
+ const command = words ? `${this.app.command} personal ${words}` : `${this.app.command} personal \u2026`;
11108
10858
  return new CliError("validation_error", `name a profile: there is none on this computer yet \u2014 any name works, such as \`${command}\` (or set ${envName(this.app, "PROFILE")})`, { profiles: [] });
11109
10859
  }
11110
10860
  };
@@ -11312,7 +11062,7 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
11312
11062
  updateCheck: updateCheck.value,
11313
11063
  skillHint: skillHint.value,
11314
11064
  configPath,
11315
- configFound: existsSync6(configPath),
11065
+ configFound: existsSync5(configPath),
11316
11066
  configuredProfiles: namedProfiles(config),
11317
11067
  profilesHere: profilesOf(config, env),
11318
11068
  accountProfiles: accountsOf(config, env, bots),
@@ -11476,50 +11226,7 @@ var given = /* @__PURE__ */ __name((value) => {
11476
11226
  return trimmed === void 0 || trimmed === "" ? void 0 : trimmed;
11477
11227
  }, "given");
11478
11228
 
11479
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/background/budget.js
11480
- var DEADLINE_MARGIN_MS = 5e3;
11481
- var DEADLINE_MARGIN_SHARE = 0.15;
11482
- var DEFAULT_REQUEST_MS = 2e3;
11483
- var deadlineMargin = /* @__PURE__ */ __name((deadline) => Math.max(DEADLINE_MARGIN_MS, deadline.ms * DEADLINE_MARGIN_SHARE), "deadlineMargin");
11484
- var requestsFor = /* @__PURE__ */ __name((deadline, requestMs = DEFAULT_REQUEST_MS) => deadline === void 0 ? null : Math.max(1, Math.floor((deadline.ms - deadlineMargin(deadline)) / requestMs)), "requestsFor");
11485
- var runBudget = /* @__PURE__ */ __name(({ requests: requests2, deadline, requestMs, signal, now = Date.now } = {}) => {
11486
- const fits = requestsFor(deadline, requestMs);
11487
- const limit = fits === null ? requests2 ?? null : Math.min(fits, requests2 ?? fits);
11488
- const margin = deadline ? deadlineMargin(deadline) : 0;
11489
- let used = 0;
11490
- let stopped2 = null;
11491
- let last;
11492
- let slowest = 0;
11493
- return {
11494
- take() {
11495
- if (stopped2)
11496
- return stopped2;
11497
- const at2 = now();
11498
- if (last !== void 0)
11499
- slowest = Math.max(slowest, at2 - last);
11500
- if (signal?.aborted)
11501
- stopped2 = "cancelled";
11502
- else if (limit !== null && used >= limit)
11503
- stopped2 = "requests";
11504
- else if (deadline && at2 + margin + slowest >= deadline.endsAt)
11505
- stopped2 = "deadline";
11506
- if (stopped2)
11507
- return stopped2;
11508
- used += 1;
11509
- last = at2;
11510
- return null;
11511
- },
11512
- get used() {
11513
- return used;
11514
- },
11515
- limit,
11516
- get stopped() {
11517
- return stopped2;
11518
- }
11519
- };
11520
- }, "runBudget");
11521
-
11522
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/output-detail.js
11229
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/output-detail.js
11523
11230
  var RARELY_SET = ["editedAt", "replyTo", "forwardedFrom", "reactions"];
11524
11231
  var BRIEF = ["locator", "chatTitle", "timestamp", "senderName", "excerpt", "score"];
11525
11232
  var SNAKE_BRIEF = ["ref", "chat_title", "timestamp", "sender_name", "excerpt", "score"];
@@ -11555,7 +11262,7 @@ var atDetail = /* @__PURE__ */ __name((value, detail = "default") => {
11555
11262
  return value;
11556
11263
  }, "atDetail");
11557
11264
 
11558
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/output.js
11265
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/output.js
11559
11266
  var refuseCompact = /* @__PURE__ */ __name(({ json, jsonl, fields, hitDetail }) => {
11560
11267
  const other = jsonl ? "--jsonl" : fields !== void 0 ? "--json=\u2026" : json ? "--json" : hitDetail === "brief" ? "--brief" : "";
11561
11268
  if (other)
@@ -11619,7 +11326,7 @@ var silence = /* @__PURE__ */ __name((renderer) => ({
11619
11326
  }, "warn")
11620
11327
  }), "silence");
11621
11328
 
11622
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/context.js
11329
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/cli/context.js
11623
11330
  var runBudgetOf = /* @__PURE__ */ __name((command, requests2) => {
11624
11331
  const { deadline, signal, app } = environmentOf(command);
11625
11332
  const now = deadline?.();
@@ -11659,11 +11366,17 @@ var detailOf = /* @__PURE__ */ __name(({ brief, full }) => {
11659
11366
  return brief ? { hitDetail: "brief" } : full ? { hitDetail: "full" } : {};
11660
11367
  }, "detailOf");
11661
11368
  var COMPACT_KEY = new Option(COMPACT_FLAG).attributeName();
11369
+ var outputFieldsOf = /* @__PURE__ */ __name((command) => {
11370
+ const fields = rootOf(command).getOptionValue("fields");
11371
+ return typeof fields === "string" ? { fields } : {};
11372
+ }, "outputFieldsOf");
11662
11373
  var compactOf = /* @__PURE__ */ __name((command) => command.optsWithGlobals()[COMPACT_KEY] === true, "compactOf");
11663
11374
  var outputFor = /* @__PURE__ */ __name((command) => {
11664
11375
  const { streams, tty, env, agent } = environmentOf(command);
11376
+ const { fields: _own, ...flags } = command.optsWithGlobals();
11665
11377
  return resolveOutput({
11666
- ...command.optsWithGlobals(),
11378
+ ...flags,
11379
+ ...outputFieldsOf(command),
11667
11380
  ...detailOf(command.optsWithGlobals()),
11668
11381
  compact: compactOf(command),
11669
11382
  ...agent ? { capture: agent.result } : {},
@@ -11681,7 +11394,7 @@ var baseContext = /* @__PURE__ */ __name((command, resolveSettings) => {
11681
11394
  env,
11682
11395
  compact: compactOf(command),
11683
11396
  ...detailOf(command.optsWithGlobals()),
11684
- ...command.optsWithGlobals().fields ? { fields: command.optsWithGlobals().fields } : {},
11397
+ ...outputFieldsOf(command),
11685
11398
  ...environment.agent ? { capture: environment.agent.result } : {},
11686
11399
  ...environment.streams ? { streams: environment.streams } : {},
11687
11400
  ...environment.tty === void 0 ? {} : { tty: environment.tty }
@@ -11753,13 +11466,13 @@ var inCommandRun = /* @__PURE__ */ __name((command, body) => {
11753
11466
  return baseContext(command, (flags, options) => resolveSettings(flags, { ...options, needsProfile: false })).run(body);
11754
11467
  }, "inCommandRun");
11755
11468
  var commandPath = /* @__PURE__ */ __name((command) => {
11756
- const words2 = [];
11469
+ const words = [];
11757
11470
  for (let current2 = command; current2?.parent; current2 = current2.parent)
11758
- words2.unshift(current2.name());
11759
- return words2.join(" ");
11471
+ words.unshift(current2.name());
11472
+ return words.join(" ");
11760
11473
  }, "commandPath");
11761
11474
 
11762
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/effects.js
11475
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/cli/effects.js
11763
11476
  var REMOTE_READ = { remote: "read", local: "read" };
11764
11477
  var FETCH = { remote: "read", local: "write" };
11765
11478
  var REMOTE_WRITE = { remote: "write", local: "write" };
@@ -11874,10 +11587,10 @@ var refuseStoreChange = /* @__PURE__ */ __name((app, env) => {
11874
11587
  throw readOnlyRefusal(lock, storeChangeRefusal(app));
11875
11588
  }, "refuseStoreChange");
11876
11589
  var pathOf2 = /* @__PURE__ */ __name((command) => {
11877
- const words2 = [];
11590
+ const words = [];
11878
11591
  for (let at2 = command; at2.parent; at2 = at2.parent)
11879
- words2.unshift(at2.name());
11880
- return words2;
11592
+ words.unshift(at2.name());
11593
+ return words;
11881
11594
  }, "pathOf");
11882
11595
  var changesMessenger = /* @__PURE__ */ __name((command) => {
11883
11596
  const { path: path2, effects, lifetime, reaches } = "path" in command ? command : { path: pathOf2(command), ...metaOf(command) };
@@ -11911,8 +11624,8 @@ var refuseUnderReadOnly = /* @__PURE__ */ __name((command, what) => {
11911
11624
  throw readOnlyRefusal(lock, what);
11912
11625
  }, "refuseUnderReadOnly");
11913
11626
 
11914
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/images/picture/models.js
11915
- import { join as join6 } from "node:path";
11627
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/images/picture/models.js
11628
+ import { join as join5 } from "node:path";
11916
11629
  var clip = /* @__PURE__ */ __name((name) => `https://huggingface.co/Xenova/clip-vit-base-patch32/resolve/d15189d7028b43f1d3e65039190477f6af591c2a/${name}`, "clip");
11917
11630
  var IMAGE_MODELS = [
11918
11631
  {
@@ -11962,10 +11675,10 @@ var imageModel = /* @__PURE__ */ __name((id6) => {
11962
11675
  return found;
11963
11676
  }, "imageModel");
11964
11677
  var imageModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedModelsDirectory("image", env), "imageModelsDirectory");
11965
- var placedImage = /* @__PURE__ */ __name((model3, directory) => model3.files.map((file) => [file, join6(directory, model3.id, file.name)]), "placedImage");
11678
+ var placedImage = /* @__PURE__ */ __name((model3, directory) => model3.files.map((file) => [file, join5(directory, model3.id, file.name)]), "placedImage");
11966
11679
  var isImageModelInstalled = /* @__PURE__ */ __name((model3, directory) => filesPresent(placedImage(model3, directory)), "isImageModelInstalled");
11967
11680
 
11968
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/steps.js
11681
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/cli/steps.js
11969
11682
  var STEPS2 = defineSteps([
11970
11683
  ...STEPS,
11971
11684
  {
@@ -12202,10 +11915,10 @@ var nextStep = /* @__PURE__ */ __name((id6, input) => {
12202
11915
  const args = Object.fromEntries(Object.entries(input.args ?? {}).filter(([, value]) => value !== void 0));
12203
11916
  return stepOf(definition, { ...input, args });
12204
11917
  }, "nextStep");
12205
- var lineOf = /* @__PURE__ */ __name((command, words2) => {
11918
+ var lineOf = /* @__PURE__ */ __name((command, words) => {
12206
11919
  const root = rootOf2(command);
12207
11920
  const profile = root.getOptionValue("profile");
12208
- return typedCommand(root.name(), words2, typeof profile === "string" && profile !== "" ? profile : void 0);
11921
+ return typedCommand(root.name(), words, typeof profile === "string" && profile !== "" ? profile : void 0);
12209
11922
  }, "lineOf");
12210
11923
  var rootOf2 = /* @__PURE__ */ __name((command) => {
12211
11924
  let root = command;
@@ -12255,7 +11968,7 @@ var stepLine = /* @__PURE__ */ __name((root, step2) => {
12255
11968
  ].join(" ");
12256
11969
  }, "stepLine");
12257
11970
 
12258
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/output-budget.js
11971
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/cli/output-budget.js
12259
11972
  var SOFT_OUTPUT_BYTES = 256 * 1024;
12260
11973
  var CARRIED = ["json", "compact", "offline", "timeout", "full", "brief", "maxOutputBytes"];
12261
11974
  var NOT_WITH_COMPACT = /* @__PURE__ */ new Set(["json", "brief"]);
@@ -12281,10 +11994,10 @@ var declaresRow = /* @__PURE__ */ __name((command) => {
12281
11994
  return rowShapeOf(command, rows2 && entityRows(rows2)) !== GENERIC_ROW;
12282
11995
  }, "declaresRow");
12283
11996
  var pathOf3 = /* @__PURE__ */ __name((command) => {
12284
- const words2 = [];
11997
+ const words = [];
12285
11998
  for (let at2 = command; at2.parent; at2 = at2.parent)
12286
- words2.unshift(at2.name());
12287
- return words2.join(" ");
11999
+ words.unshift(at2.name());
12000
+ return words.join(" ");
12288
12001
  }, "pathOf");
12289
12002
  var step = /* @__PURE__ */ __name((command, id6, args, why) => ({
12290
12003
  kind: "command",
@@ -12313,7 +12026,7 @@ var largeAnswerSteps = /* @__PURE__ */ __name((command) => {
12313
12026
  return args ? compactStep(command, args, "the answer is large as JSON; one line per item keeps every ref") : [];
12314
12027
  }, "largeAnswerSteps");
12315
12028
 
12316
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
12029
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
12317
12030
  var HIDDEN = /* @__PURE__ */ new Set(["providerRef", "provider_ref"]);
12318
12031
  var withoutProviderRefs = /* @__PURE__ */ __name((value) => strip(value), "withoutProviderRefs");
12319
12032
  var strip = /* @__PURE__ */ __name((value) => {
@@ -12327,7 +12040,7 @@ var strip = /* @__PURE__ */ __name((value) => {
12327
12040
  return Object.fromEntries(Object.entries(value).flatMap(([key, inner]) => HIDDEN.has(key) ? [] : [[key, strip(inner)]]));
12328
12041
  }, "strip");
12329
12042
 
12330
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/untrusted-marks.js
12043
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/cli/untrusted-marks.js
12331
12044
  var OPEN = "\u27E6";
12332
12045
  var CLOSE = "\u27E7";
12333
12046
  var untrustedMarkOf = /* @__PURE__ */ __name((app, env) => {
@@ -12411,7 +12124,7 @@ var withFieldsMarked = /* @__PURE__ */ __name((value, fields, mark, id6) => {
12411
12124
  return result;
12412
12125
  }, "withFieldsMarked");
12413
12126
 
12414
- // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/envelope.js
12127
+ // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/cli/envelope.js
12415
12128
  var answerSchema = /* @__PURE__ */ __name((item = unknown()) => union([listEnvelopeSchema(item), itemEnvelopeSchema(item)]), "answerSchema");
12416
12129
  var capped2 = /* @__PURE__ */ __name((steps) => steps.length > 0 ? { next: steps.slice(0, MAX_NEXT_STEPS) } : {}, "capped");
12417
12130
  var listOf = /* @__PURE__ */ __name((command, input) => {
@@ -12517,9 +12230,27 @@ var withLargeAnswerStep = /* @__PURE__ */ __name((command, body) => {
12517
12230
  }, "withLargeAnswerStep");
12518
12231
  var linesOf = /* @__PURE__ */ __name((body) => jsonlOf("items" in body ? body : { items: [body.item], page: { mode: "page", limit: 1, has_more: false }, meta: body.meta }), "linesOf");
12519
12232
  var jsonlRecords = /* @__PURE__ */ __name((body) => linesOf(sealed(body)).split("\n").map((line) => JSON.parse(line)), "jsonlRecords");
12233
+ var listZone = /* @__PURE__ */ __name((command) => {
12234
+ const registry = metaOf(command).query;
12235
+ const words = command.processedArgs.at(-1);
12236
+ const text5 = Array.isArray(words) ? words.join(" ") : typeof words === "string" ? words : "";
12237
+ const times = new Set(registry?.fields.filter(({ type }) => type === "time").map(({ name }) => name));
12238
+ if (times.size === 0 || text5.trim() === "")
12239
+ return void 0;
12240
+ try {
12241
+ if (!readsZone(parseLucene(text5, { defaultField: "none" }), times))
12242
+ return void 0;
12243
+ } catch {
12244
+ return void 0;
12245
+ }
12246
+ return timezoneOf(command.optsWithGlobals().timezone);
12247
+ }, "listZone");
12520
12248
  var renderAnswer = /* @__PURE__ */ __name((command, { renderer, format, streams, compact, full }, body, view) => {
12521
12249
  if (!isBody(body))
12522
12250
  refuse(body);
12251
+ const zone = "items" in body && body.meta?.timezone === void 0 ? listZone(command) : void 0;
12252
+ if (zone)
12253
+ body = { ...body, meta: { ...body.meta, timezone: zone } };
12523
12254
  const root = rootOf2(command);
12524
12255
  const runnableSteps = runnable(root, body.next);
12525
12256
  const next = environmentOf(command).agent ? runnableSteps : withLines(root, runnableSteps);
@@ -12730,20 +12461,6 @@ export {
12730
12461
  AI_SETTING_KEYS,
12731
12462
  resolveAISettings,
12732
12463
  parseDuration,
12733
- DEFAULT_TEXT_MODEL,
12734
- PREVIOUS_DEFAULT_TEXT_MODEL,
12735
- CustomTextModelShape,
12736
- textModelsFile,
12737
- readTextModelsSection,
12738
- writeTextModelsSection,
12739
- textModels,
12740
- textModel,
12741
- chosenTextModel,
12742
- RERANK_MODELS,
12743
- DEFAULT_RERANK_MODEL,
12744
- rerankModel,
12745
- vectorModelKey,
12746
- meaningFloor,
12747
12464
  historyWindow,
12748
12465
  limitBatch,
12749
12466
  botsDirectory,
@@ -12783,6 +12500,7 @@ export {
12783
12500
  environmentOf,
12784
12501
  withAgentLevels,
12785
12502
  secretInputOf,
12503
+ outputFieldsOf,
12786
12504
  outputFor,
12787
12505
  baseContext,
12788
12506
  inCommandRun,