@wirecat/zoom-cli 0.66.0 → 0.68.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 (207) hide show
  1. package/README.md +2 -1
  2. package/constants.json +7 -0
  3. package/dist/answer-entities.d.ts +18 -0
  4. package/dist/answer-entities.d.ts.map +1 -1
  5. package/dist/answer-entities.js +12 -0
  6. package/dist/answer-entities.js.map +1 -1
  7. package/dist/answer-policy.d.ts.map +1 -1
  8. package/dist/answer-policy.js +2 -1
  9. package/dist/answer-policy.js.map +1 -1
  10. package/dist/answers.d.ts +4 -4
  11. package/dist/bin/main.js +3 -2
  12. package/dist/bin/main.js.map +1 -1
  13. package/dist/bin/zm.js +2 -2
  14. package/dist/bundle/{all-profiles-D5CFH2OK.js → all-profiles-R66UM3HM.js} +12 -11
  15. package/dist/bundle/answer-policy-UCGUO53A.js +104 -0
  16. package/dist/bundle/{anthropic-K2E2JS4S.js → anthropic-4ZI2BPLG.js} +7 -7
  17. package/dist/bundle/{app-server-TVXDG6HZ.js → app-server-64O5IQI5.js} +61 -57
  18. package/dist/bundle/{bun-O4WHGL2F.js → bun-HUHQD76Z.js} +2 -2
  19. package/dist/bundle/{bun-sqlite-HGBEHQI3.js → bun-sqlite-VOVHPTIF.js} +6 -6
  20. package/dist/bundle/{chunk-N6JMJN5A.js → chunk-2OSBCYJT.js} +39 -26
  21. package/dist/bundle/{chunk-7JMBEPW2.js → chunk-2T6XHWDX.js} +2 -2
  22. package/dist/bundle/chunk-32FPA7P2.js +35 -0
  23. package/dist/bundle/{chunk-NO24PJNW.js → chunk-355PHJYX.js} +1 -1
  24. package/dist/bundle/{chunk-NMQUCHTX.js → chunk-3BRV2YU2.js} +3 -3
  25. package/dist/bundle/{chunk-GNGBG5BT.js → chunk-474WF55M.js} +95 -48
  26. package/dist/bundle/{chunk-O5FKJV3T.js → chunk-4TLPOY22.js} +12 -12
  27. package/dist/bundle/{chunk-CR4CXOLX.js → chunk-4YFJYSSK.js} +205 -59
  28. package/dist/bundle/chunk-5JAYUG3X.js +261 -0
  29. package/dist/bundle/{chunk-5HPALDUO.js → chunk-65T3PU75.js} +3 -2
  30. package/dist/bundle/{chunk-QAPU2JNO.js → chunk-6CJ7NHIP.js} +13 -13
  31. package/dist/bundle/{chunk-LN2S3RA3.js → chunk-6T3P226D.js} +4 -4
  32. package/dist/bundle/{chunk-P3XVLHIQ.js → chunk-6TJ62LZQ.js} +22 -14
  33. package/dist/bundle/{chunk-FWFFQV4D.js → chunk-6XO7RTJY.js} +129 -9
  34. package/dist/bundle/{chunk-K5CIN4JP.js → chunk-77I67HWF.js} +8 -8
  35. package/dist/bundle/{chunk-3B7L2UX4.js → chunk-77KFLU5F.js} +3 -3
  36. package/dist/bundle/{chunk-2YLNUZ3T.js → chunk-7AUP2WT3.js} +3 -3
  37. package/dist/bundle/{chunk-7PF56S6U.js → chunk-7DUYFITC.js} +25 -23
  38. package/dist/bundle/{chunk-ZKTXUDSR.js → chunk-7QNJICKZ.js} +30 -26
  39. package/dist/bundle/{chunk-XWDSEJWP.js → chunk-A63ZFOQJ.js} +18 -4
  40. package/dist/bundle/{chunk-A2SCXNA7.js → chunk-AJ7CMUGD.js} +1396 -326
  41. package/dist/bundle/{chunk-Z6U3MEGJ.js → chunk-AVEIQMHZ.js} +4 -2
  42. package/dist/bundle/chunk-AYEVBAGO.js +178 -0
  43. package/dist/bundle/{chunk-SU4WPBQE.js → chunk-B6JMVB6R.js} +22 -23
  44. package/dist/bundle/{chunk-YLEQN6PB.js → chunk-BL36NSV5.js} +3 -3
  45. package/dist/bundle/{chunk-RMKHYUHK.js → chunk-BOAMDYLY.js} +4 -4
  46. package/dist/bundle/chunk-BSM43OMN.js +31 -0
  47. package/dist/bundle/{chunk-67RNZGAG.js → chunk-DGNPJGD3.js} +16 -10
  48. package/dist/bundle/{chunk-Y3EIK4XW.js → chunk-DVA6MQWK.js} +1 -1
  49. package/dist/bundle/{chunk-AU4JHT3R.js → chunk-DWSUSWAX.js} +98 -13
  50. package/dist/bundle/{chunk-H5ZVZAOD.js → chunk-EH5QGQFR.js} +3 -3
  51. package/dist/bundle/chunk-EJDV5IIF.js +93 -0
  52. package/dist/bundle/{chunk-3WTKZ2ZS.js → chunk-EWIBLDQQ.js} +8 -8
  53. package/dist/bundle/{chunk-GHAPWKG2.js → chunk-EZRPSZJS.js} +3 -3
  54. package/dist/bundle/{chunk-QJHRYUMJ.js → chunk-FBLUKCIR.js} +1 -1
  55. package/dist/bundle/{chunk-S6S3KVJI.js → chunk-FEM2JQN2.js} +2 -1
  56. package/dist/bundle/{chunk-P2G4KGTR.js → chunk-FMQS7HCC.js} +12 -12
  57. package/dist/bundle/{chunk-ZNFPDTQM.js → chunk-FNQASORM.js} +2 -2
  58. package/dist/bundle/{chunk-GKXFL35E.js → chunk-GOXDBCDM.js} +728 -130
  59. package/dist/bundle/{chunk-U3ZUT557.js → chunk-HXOAPH47.js} +1 -1
  60. package/dist/bundle/{chunk-QV5ZGRK3.js → chunk-JO4YADNV.js} +7 -7
  61. package/dist/bundle/{chunk-5A26IBAR.js → chunk-JRCYFCPL.js} +30 -28
  62. package/dist/bundle/{chunk-ZTL7ANSG.js → chunk-K67V24AT.js} +5 -5
  63. package/dist/bundle/{chunk-BXSAROQP.js → chunk-KAPJQGHE.js} +2 -2
  64. package/dist/bundle/{chunk-TFDVFD4N.js → chunk-KNE6VFHZ.js} +97 -38
  65. package/dist/bundle/{chunk-AZ7ICKIA.js → chunk-KUB2U5NT.js} +6 -6
  66. package/dist/bundle/{chunk-GI6QVSCW.js → chunk-L4WVLRXM.js} +4 -4
  67. package/dist/bundle/{chunk-756RS4PH.js → chunk-LBOSTBAY.js} +2541 -1355
  68. package/dist/bundle/{chunk-62GOOZO3.js → chunk-LV7QRR5S.js} +6 -6
  69. package/dist/bundle/{chunk-J4EZL6HY.js → chunk-LYWUG43B.js} +33 -33
  70. package/dist/bundle/{chunk-N67BLTBV.js → chunk-NRRI37NJ.js} +28 -9
  71. package/dist/bundle/{chunk-N5JRRBEG.js → chunk-NUJMJQXV.js} +281 -10
  72. package/dist/bundle/{chunk-UYV2JGLQ.js → chunk-OE7EIP5L.js} +1 -1
  73. package/dist/bundle/{chunk-U4RVOSX3.js → chunk-P2TISY3R.js} +1 -1
  74. package/dist/bundle/{chunk-ILHTNOIV.js → chunk-P3ASN72F.js} +1 -1
  75. package/dist/bundle/{chunk-UOIXBEFR.js → chunk-PIHBD3YS.js} +16 -6
  76. package/dist/bundle/{chunk-BLT3LR3U.js → chunk-PUTGTW6W.js} +4 -2
  77. package/dist/bundle/{chunk-TUEEXECZ.js → chunk-QXTREL2M.js} +3 -3
  78. package/dist/bundle/{chunk-2VPHQFO5.js → chunk-R7LFGEDE.js} +2 -2
  79. package/dist/bundle/{chunk-IDWHJ35K.js → chunk-RGJ7OWHU.js} +4 -4
  80. package/dist/bundle/{chunk-3Y2F65AY.js → chunk-RP3U3J53.js} +10 -89
  81. package/dist/bundle/{chunk-JX3V35A5.js → chunk-RRYUD2EF.js} +3 -3
  82. package/dist/bundle/{chunk-XFUID5NY.js → chunk-SRP6SFFD.js} +2 -2
  83. package/dist/bundle/{chunk-7SQJCKR6.js → chunk-SSPSNSC5.js} +1 -1
  84. package/dist/bundle/{chunk-Q47C3QZW.js → chunk-TDGZMC6K.js} +510 -318
  85. package/dist/bundle/{chunk-EXXM4RNI.js → chunk-TN3FH2GQ.js} +11 -11
  86. package/dist/bundle/chunk-TUNQ6NE2.js +64 -0
  87. package/dist/bundle/{chunk-CAW6IMFZ.js → chunk-TZUKDM72.js} +72 -20
  88. package/dist/bundle/{chunk-S4GDDO5S.js → chunk-UDJTRFRV.js} +1 -1
  89. package/dist/bundle/{chunk-5GD2XZ6X.js → chunk-US5C3WAY.js} +63 -53
  90. package/dist/bundle/{chunk-7KCTPGOF.js → chunk-UU5PLDRA.js} +2 -2
  91. package/dist/bundle/{chunk-6TIKPRVQ.js → chunk-VLD7Y4SY.js} +7 -7
  92. package/dist/bundle/{chunk-PQLBPYJR.js → chunk-VW6BF6M7.js} +1 -1
  93. package/dist/bundle/chunk-W42BJ65M.js +37 -0
  94. package/dist/bundle/{chunk-KDKFGQWG.js → chunk-Y5LP5SHV.js} +15 -12
  95. package/dist/bundle/{chunk-TMVKZMDO.js → chunk-YJY3W2ZT.js} +232 -88
  96. package/dist/bundle/{chunk-6GSJLNP4.js → chunk-YOAEZSDG.js} +2 -2
  97. package/dist/bundle/{chunk-IKQ73INC.js → chunk-YQRNFG2E.js} +15849 -1674
  98. package/dist/bundle/{chunk-RO44LANT.js → chunk-YTF2WPV4.js} +1880 -778
  99. package/dist/bundle/{chunk-CZ4KLUJG.js → chunk-ZRD3NDOX.js} +2 -2
  100. package/dist/bundle/{cli-HWQIL2AC.js → cli-VQJ7ZRYR.js} +124 -69
  101. package/dist/bundle/command-contract-JPUWWYIV.js +41 -0
  102. package/dist/bundle/config-YGLLR77A.js +90 -0
  103. package/dist/bundle/{decode-XPAPPUGE.js → decode-L3ENO2XH.js} +6 -6
  104. package/dist/bundle/{dispatch-AKVJGP2S.js → dispatch-5MGDLOK4.js} +9 -9
  105. package/dist/bundle/{dist-LDIUQBM7.js → dist-WQLS7U23.js} +66 -17
  106. package/dist/bundle/{echarts-FMACRZQC.js → echarts-5LLJ6JXC.js} +2 -2
  107. package/dist/bundle/{embed-LK45GRQ7.js → embed-37MYTCU7.js} +7 -7
  108. package/dist/bundle/{embedder-QPBC5XBY.js → embedder-GNGHVJAO.js} +10 -10
  109. package/dist/bundle/{failure-7OULAOWQ.js → failure-CR64C4XA.js} +3 -3
  110. package/dist/bundle/{first-run-J5FG773Q.js → first-run-NR5JKYP3.js} +12 -12
  111. package/dist/bundle/first-screen-RCR7ATO2.js +39 -0
  112. package/dist/bundle/{folders-RHPUVMDI.js → folders-VU4IN35Y.js} +5 -5
  113. package/dist/bundle/{instructions-E5FXYCWF.js → instructions-P72XX4AK.js} +1 -1
  114. package/dist/bundle/{main-FJHE5YHU.js → main-QYFCYSTW.js} +23 -24
  115. package/dist/bundle/{mcp-MNI62HHE.js → mcp-M4QN2E7R.js} +2 -2
  116. package/dist/bundle/{meetings-MYIDGYGW.js → meetings-66UQINKI.js} +37 -7
  117. package/dist/bundle/{node-4SNKUPXT.js → node-ZB4RNICS.js} +2 -2
  118. package/dist/bundle/{node-sqlite-SYZUTVPC.js → node-sqlite-XPRKBDF3.js} +7 -7
  119. package/dist/bundle/{oauth-QPS5VTN6.js → oauth-WJRDUU5J.js} +8 -8
  120. package/dist/bundle/{open-OVCASRSJ.js → open-S2YSIEOW.js} +6 -6
  121. package/dist/bundle/openai-CRNZFNZD.js +25 -0
  122. package/dist/bundle/{output-file-K5JEL33Z.js → output-file-6COFGPUL.js} +6 -6
  123. package/dist/bundle/{process-HQZOTT6U.js → process-XNN4WG6N.js} +1 -1
  124. package/dist/bundle/{program-A546WC4F.js → program-BRPJKRCX.js} +181 -205
  125. package/dist/bundle/{prompt-CYBKP7S5.js → prompt-7RQOL25I.js} +6 -6
  126. package/dist/bundle/{recognize-3H3YDCFI.js → recognize-N5WADGQB.js} +5 -5
  127. package/dist/bundle/{remote-VAYVTJBS.js → remote-WHYV35IF.js} +8 -8
  128. package/dist/bundle/{rerank-XA4GA5PS.js → rerank-FBMZVWSH.js} +8 -8
  129. package/dist/bundle/{run-log-XAFHMI3F.js → run-log-TOCHREH2.js} +59 -57
  130. package/dist/bundle/{serve-KGHEDUHB.js → serve-4BABX4WS.js} +10 -10
  131. package/dist/bundle/{server-ZYTSMDTP.js → server-CDVI6LOB.js} +47 -46
  132. package/dist/bundle/server-XOFQKFVO.js +72 -0
  133. package/dist/bundle/{services-ZHMZC2OQ.js → services-PIY33I7R.js} +59 -32
  134. package/dist/bundle/{speech-7CJEFKM3.js → speech-LS5Q4FL2.js} +14 -14
  135. package/dist/bundle/{state-U6KSYVOH.js → state-YUX5R2R7.js} +7 -7
  136. package/dist/bundle/{store-DJE3LAEG.js → store-BD7HAXAA.js} +22 -17
  137. package/dist/bundle/{store-WS4CQGYU.js → store-ERMGBF2B.js} +59 -30
  138. package/dist/bundle/store-connection-JBR6CMTJ.js +83 -0
  139. package/dist/bundle/store-maintenance-command-I5DUSO2C.js +62 -0
  140. package/dist/bundle/{streaming-QMHH7L6N.js → streaming-O53PIORL.js} +7 -7
  141. package/dist/bundle/{tokens-PWQ56OXO.js → tokens-QKNEP2GJ.js} +7 -7
  142. package/dist/bundle/zm.js +9 -10
  143. package/dist/bundle/zoom-app-XJXZ4ZBX.js +41 -0
  144. package/dist/commands.d.ts.map +1 -1
  145. package/dist/commands.js +1 -0
  146. package/dist/commands.js.map +1 -1
  147. package/dist/config.d.ts +9 -0
  148. package/dist/config.d.ts.map +1 -1
  149. package/dist/config.js +48 -10
  150. package/dist/config.js.map +1 -1
  151. package/dist/identity.d.ts +1 -0
  152. package/dist/identity.d.ts.map +1 -1
  153. package/dist/identity.js +11 -0
  154. package/dist/identity.js.map +1 -1
  155. package/dist/meeting-source.d.ts.map +1 -1
  156. package/dist/meeting-source.js +2 -1
  157. package/dist/meeting-source.js.map +1 -1
  158. package/dist/meeting-stats-commands.d.ts +4 -2
  159. package/dist/meeting-stats-commands.d.ts.map +1 -1
  160. package/dist/meeting-stats-commands.js +27 -2
  161. package/dist/meeting-stats-commands.js.map +1 -1
  162. package/dist/program-bindings.d.ts.map +1 -1
  163. package/dist/program-bindings.js +10 -4
  164. package/dist/program-bindings.js.map +1 -1
  165. package/dist/recording-schedule-setup.d.ts.map +1 -1
  166. package/dist/recording-schedule-setup.js +5 -5
  167. package/dist/recording-schedule-setup.js.map +1 -1
  168. package/dist/run.d.ts.map +1 -1
  169. package/dist/run.js +2 -6
  170. package/dist/run.js.map +1 -1
  171. package/dist/setup-commands.d.ts +7 -1
  172. package/dist/setup-commands.d.ts.map +1 -1
  173. package/dist/setup-commands.js +45 -8
  174. package/dist/setup-commands.js.map +1 -1
  175. package/dist/store-commands.d.ts.map +1 -1
  176. package/dist/store-commands.js +6 -0
  177. package/dist/store-commands.js.map +1 -1
  178. package/dist/store-connection.d.ts +2 -1
  179. package/dist/store-connection.d.ts.map +1 -1
  180. package/dist/store-connection.js +4 -0
  181. package/dist/store-connection.js.map +1 -1
  182. package/dist/version.d.ts +1 -1
  183. package/dist/version.js +1 -1
  184. package/dist/watch-service.d.ts +1 -1
  185. package/dist/watch-service.d.ts.map +1 -1
  186. package/dist/watch-service.js +5 -3
  187. package/dist/watch-service.js.map +1 -1
  188. package/dist/zoom-app.d.ts +49 -0
  189. package/dist/zoom-app.d.ts.map +1 -0
  190. package/dist/zoom-app.js +83 -0
  191. package/dist/zoom-app.js.map +1 -0
  192. package/package.json +4 -3
  193. package/skills/zoom-cli/SKILL.md +4 -1
  194. package/dist/bundle/answer-policy-YAYMKRRD.js +0 -101
  195. package/dist/bundle/chunk-2T5BOLBS.js +0 -132
  196. package/dist/bundle/chunk-HKQWV3KT.js +0 -31
  197. package/dist/bundle/chunk-L7IK4FOA.js +0 -18
  198. package/dist/bundle/chunk-P2SYZNM4.js +0 -19
  199. package/dist/bundle/chunk-TN7K66PU.js +0 -9
  200. package/dist/bundle/command-contract-CQFJXWX6.js +0 -40
  201. package/dist/bundle/config-R2Y6ZVQS.js +0 -83
  202. package/dist/bundle/first-screen-MULOBUHN.js +0 -38
  203. package/dist/bundle/openai-VEVT7D7L.js +0 -25
  204. package/dist/bundle/server-IDNSJXF3.js +0 -71
  205. package/dist/bundle/store-connection-T5WGOOPH.js +0 -81
  206. package/dist/bundle/store-maintenance-command-5CBQCEQQ.js +0 -61
  207. /package/dist/bundle/{chunk-NUN6OGOV.js → chunk-VOXIGICJ.js} +0 -0
@@ -4,7 +4,7 @@ import {
4
4
  envName,
5
5
  readOnlyLockOf,
6
6
  readOnlyRefusal
7
- } from "./chunk-Z6U3MEGJ.js";
7
+ } from "./chunk-AVEIQMHZ.js";
8
8
  import {
9
9
  currentCaller,
10
10
  endpointTemplate,
@@ -14,18 +14,18 @@ import {
14
14
  providerErrorKey,
15
15
  renderEvent,
16
16
  runContextOf
17
- } from "./chunk-3Y2F65AY.js";
17
+ } from "./chunk-RP3U3J53.js";
18
18
  import {
19
19
  permissionCeiling
20
- } from "./chunk-GI6QVSCW.js";
20
+ } from "./chunk-L4WVLRXM.js";
21
21
  import {
22
22
  fieldsOf,
23
23
  projectFields,
24
24
  resolveOutput
25
- } from "./chunk-QV5ZGRK3.js";
25
+ } from "./chunk-JO4YADNV.js";
26
26
  import {
27
27
  carries
28
- } from "./chunk-Y3EIK4XW.js";
28
+ } from "./chunk-DVA6MQWK.js";
29
29
  import {
30
30
  DEFAULT_HISTORY_LIMITS,
31
31
  DEFAULT_RERANK_MODEL,
@@ -58,10 +58,10 @@ import {
58
58
  typedCommand,
59
59
  useAsProcessRun,
60
60
  withWriteScope
61
- } from "./chunk-5A26IBAR.js";
61
+ } from "./chunk-JRCYFCPL.js";
62
62
  import {
63
63
  isCliFailure
64
- } from "./chunk-6GSJLNP4.js";
64
+ } from "./chunk-YOAEZSDG.js";
65
65
  import {
66
66
  CEILING_KEY,
67
67
  COMMAND_PATH_KEY,
@@ -72,21 +72,10 @@ import {
72
72
  keyForCommand,
73
73
  layerPermissions,
74
74
  permissionOverrides
75
- } from "./chunk-5HPALDUO.js";
75
+ } from "./chunk-65T3PU75.js";
76
76
  import {
77
- author,
78
- count,
79
- evidenceSource,
80
- id,
81
- note,
82
- organization,
83
- project,
84
- providerMetadata,
85
- reminder,
86
- text,
87
- time,
88
- untrusted
89
- } from "./chunk-2T5BOLBS.js";
77
+ note
78
+ } from "./chunk-TUNQ6NE2.js";
90
79
  import {
91
80
  FACT_STATUSES,
92
81
  LINK_KINDS,
@@ -101,21 +90,37 @@ import {
101
90
  TASK_STATES,
102
91
  TASK_TYPES,
103
92
  TASK_VERDICTS,
104
- WORK_TASK_TYPES
105
- } from "./chunk-AU4JHT3R.js";
93
+ WORK_TASK_TYPES,
94
+ author,
95
+ count,
96
+ evidenceSource,
97
+ id,
98
+ organization,
99
+ project,
100
+ providerMetadata,
101
+ reminder,
102
+ text,
103
+ time,
104
+ untrusted
105
+ } from "./chunk-DWSUSWAX.js";
106
106
  import {
107
107
  sharedConfigPath
108
- } from "./chunk-6TIKPRVQ.js";
108
+ } from "./chunk-VLD7Y4SY.js";
109
+ import {
110
+ INVOICE_DIRECTIONS,
111
+ MONEY_DIRECTIONS,
112
+ ORDER_PURPOSES,
113
+ ORDER_STATUSES
114
+ } from "./chunk-AYEVBAGO.js";
109
115
  import {
110
116
  storePath
111
- } from "./chunk-L7IK4FOA.js";
117
+ } from "./chunk-32FPA7P2.js";
112
118
  import {
113
119
  FACT_TYPES,
114
120
  MEETING_RESULT_ENTITIES,
115
- PAYMENT_DIRECTIONS,
116
- PAYMENT_STATES,
117
121
  event,
118
122
  meeting,
123
+ meetingCounts,
119
124
  meetingDetails,
120
125
  meetingHit,
121
126
  meetingLink,
@@ -127,12 +132,12 @@ import {
127
132
  meetingStats,
128
133
  meetingSummary,
129
134
  meetingTranscript
130
- } from "./chunk-Q47C3QZW.js";
135
+ } from "./chunk-TDGZMC6K.js";
131
136
  import {
132
137
  FIELD_TYPES,
133
138
  QUERY_BACKENDS,
134
139
  describeQuery
135
- } from "./chunk-SU4WPBQE.js";
140
+ } from "./chunk-B6JMVB6R.js";
136
141
  import {
137
142
  configFilePath,
138
143
  createRecordLog,
@@ -141,7 +146,7 @@ import {
141
146
  resolvePaths,
142
147
  saveConfigFile,
143
148
  writeSecurely
144
- } from "./chunk-TFDVFD4N.js";
149
+ } from "./chunk-KNE6VFHZ.js";
145
150
  import {
146
151
  COMPACT_FLAG,
147
152
  MAX_NEXT_STEPS,
@@ -193,18 +198,18 @@ import {
193
198
  unwrap,
194
199
  variant,
195
200
  writes
196
- } from "./chunk-N67BLTBV.js";
201
+ } from "./chunk-NRRI37NJ.js";
197
202
  import {
198
203
  CliError
199
- } from "./chunk-S6S3KVJI.js";
204
+ } from "./chunk-FEM2JQN2.js";
200
205
  import {
201
206
  visibleControls
202
- } from "./chunk-UYV2JGLQ.js";
207
+ } from "./chunk-OE7EIP5L.js";
203
208
  import {
204
209
  __name
205
210
  } from "./chunk-ZVVMGPBJ.js";
206
211
 
207
- // node_modules/.pnpm/@wirecat+cli-base@0.75.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
212
+ // node_modules/.pnpm/@wirecat+cli-base@0.80.8_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
208
213
  var labels = /* @__PURE__ */ new WeakMap();
209
214
  var annotate = /* @__PURE__ */ __name((command, meta) => {
210
215
  labels.set(command, { ...labels.get(command), ...meta });
@@ -3705,7 +3710,7 @@ __name(useColor, "useColor");
3705
3710
  // node_modules/.pnpm/commander@15.0.0/node_modules/commander/index.js
3706
3711
  var program = new Command();
3707
3712
 
3708
- // node_modules/.pnpm/@wirecat+cli-base@0.75.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
3713
+ // node_modules/.pnpm/@wirecat+cli-base@0.80.8_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
3709
3714
  import { isDeepStrictEqual } from "node:util";
3710
3715
  var protectedCommands = /* @__PURE__ */ new WeakMap();
3711
3716
  var hasSharedContract = /* @__PURE__ */ __name((command) => protectedCommands.has(command), "hasSharedContract");
@@ -3891,8 +3896,8 @@ var customizeSharedCommand = /* @__PURE__ */ __name((reference2, reason, build,
3891
3896
  }
3892
3897
  }, "adopt");
3893
3898
  adopt(reference2, command);
3894
- const ordered = /* @__PURE__ */ __name((records) => [...records].sort((a, b) => JSON.stringify([a.command, a.field]).localeCompare(JSON.stringify([b.command, b.field]))), "ordered");
3895
- if (!Array.isArray(expectedOverrides) || !same(ordered(edits), ordered(expectedOverrides)))
3899
+ const ordered2 = /* @__PURE__ */ __name((records) => [...records].sort((a, b) => JSON.stringify([a.command, a.field]).localeCompare(JSON.stringify([b.command, b.field]))), "ordered");
3900
+ if (!Array.isArray(expectedOverrides) || !same(ordered2(edits), ordered2(expectedOverrides)))
3896
3901
  throw new CliError("configuration_error", `provider shell ${command.name()} differs from its reviewed shared contract overrides; review Core and provider definitions before updating the explicit declarations`, { reason: "contract.unacknowledged-override", expected: expectedOverrides ?? null, actual: edits });
3897
3902
  for (const { command: own, record: record2 } of pending) {
3898
3903
  protectedCommands.set(own, record2);
@@ -3907,7 +3912,7 @@ var customizeSharedCommand = /* @__PURE__ */ __name((reference2, reason, build,
3907
3912
  return command;
3908
3913
  }, "customizeSharedCommand");
3909
3914
 
3910
- // node_modules/.pnpm/@wirecat+cli-base@0.75.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
3915
+ // node_modules/.pnpm/@wirecat+cli-base@0.80.8_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
3911
3916
  var argumentInfoSchema = object({
3912
3917
  name: string(),
3913
3918
  required: boolean(),
@@ -3981,7 +3986,7 @@ var commandsDocumentSchema = strictObject({
3981
3986
  exit_codes: record(string(), pipe(number(), integer()))
3982
3987
  });
3983
3988
 
3984
- // node_modules/.pnpm/@wirecat+cli-base@0.75.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
3989
+ // node_modules/.pnpm/@wirecat+cli-base@0.80.8_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
3985
3990
  var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
3986
3991
  let command = root;
3987
3992
  const path2 = [];
@@ -3999,7 +4004,7 @@ var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
3999
4004
  }
4000
4005
  }, "refuseJoinedPath");
4001
4006
 
4002
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/runs/log-events.js
4007
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/runs/log-events.js
4003
4008
  var CORE_LOG_EVENTS = defineLogEvents([
4004
4009
  { id: "provider.request", meaning: "a request went to the messenger", keys: ["operation"] },
4005
4010
  { id: "provider.response", meaning: "the messenger answered the request, or it failed", keys: ["operation"] },
@@ -4033,7 +4038,7 @@ var DIAGNOSTIC_LOG_EVENTS = {
4033
4038
  cache: "cache.answered"
4034
4039
  };
4035
4040
 
4036
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/runs/recording.js
4041
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/runs/recording.js
4037
4042
  var recorded = /* @__PURE__ */ __name(async (options, body) => {
4038
4043
  const recording = startRecording(options);
4039
4044
  try {
@@ -4218,9 +4223,9 @@ var partialOutcome = /* @__PURE__ */ __name((answer) => {
4218
4223
  return void 0;
4219
4224
  }, "partialOutcome");
4220
4225
 
4221
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/cli/deadline.js
4222
- var withDeadline = /* @__PURE__ */ __name(async (ms, closeables, body) => {
4223
- if (ms === void 0)
4226
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/cli/deadline.js
4227
+ var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
4228
+ if (ms2 === void 0)
4224
4229
  return body();
4225
4230
  let timer2;
4226
4231
  let timedOut;
@@ -4229,10 +4234,10 @@ var withDeadline = /* @__PURE__ */ __name(async (ms, closeables, body) => {
4229
4234
  timer2 = setTimeout(() => {
4230
4235
  const pending = [...writes2];
4231
4236
  const cut2 = pending.filter((write) => !write.preparing);
4232
- timedOut = cut2.length > 0 ? new CliError("outcome_unknown", `\`--timeout\` ended the command after ${ms}ms with ${cut2.length === 1 ? "a write" : `${cut2.length} writes`} in flight; the messenger may or may not have carried it out \u2014 check before repeating it`, { operation_ids: cut2.map((write) => write.operationId), retryable: false }) : new CliError("timeout", `the command did not finish within ${ms}ms \u2014 \`--timeout\` ended it`);
4237
+ timedOut = cut2.length > 0 ? new CliError("outcome_unknown", `\`--timeout\` ended the command after ${ms2}ms with ${cut2.length === 1 ? "a write" : `${cut2.length} writes`} in flight; the messenger may or may not have carried it out \u2014 check before repeating it`, { operation_ids: cut2.map((write) => write.operationId), retryable: false }) : new CliError("timeout", `the command did not finish within ${ms2}ms \u2014 \`--timeout\` ended it`);
4233
4238
  stopWrites(writes2, timedOut);
4234
4239
  void Promise.allSettled(closeables.map((closeable) => closeable.close())).then(() => reject(timedOut));
4235
- }, ms);
4240
+ }, ms2);
4236
4241
  });
4237
4242
  try {
4238
4243
  return await Promise.race([withWriteScope(writes2, body), expired]);
@@ -4244,7 +4249,7 @@ var withDeadline = /* @__PURE__ */ __name(async (ms, closeables, body) => {
4244
4249
  }
4245
4250
  }, "withDeadline");
4246
4251
 
4247
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/cli/execution.js
4252
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/cli/execution.js
4248
4253
  var DEFAULT_COMMAND_MS = 3e4;
4249
4254
  var DEFAULT_COOPERATIVE_MS = 5 * 6e4;
4250
4255
  var DEFAULT_SYNC_MS = 15 * 6e4;
@@ -4350,6 +4355,7 @@ var execution = /* @__PURE__ */ __name((streams, { timeoutMs, fields, maxOutputB
4350
4355
  reason: "output.too-large",
4351
4356
  max_bytes: maxOutputBytes,
4352
4357
  emitted_bytes: bytes,
4358
+ needed_bytes: bytes + size,
4353
4359
  partial_output: bytes > 0
4354
4360
  });
4355
4361
  bytes += size;
@@ -4426,7 +4432,7 @@ var withAbort = /* @__PURE__ */ __name(async (signal, body) => {
4426
4432
  }
4427
4433
  }, "withAbort");
4428
4434
 
4429
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/cli/profile.js
4435
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/cli/profile.js
4430
4436
  var asFirstWord = /* @__PURE__ */ __name((profile) => `${profile} `, "asFirstWord");
4431
4437
  var PLAIN_NAME = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
4432
4438
  var isProfileName = /* @__PURE__ */ __name((word) => PLAIN_NAME.test(word), "isProfileName");
@@ -4495,7 +4501,7 @@ var sampleCommand = /* @__PURE__ */ __name((commands) => {
4495
4501
  return void 0;
4496
4502
  }, "sampleCommand");
4497
4503
 
4498
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/models/endpoint.js
4504
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/models/endpoint.js
4499
4505
  var endpoint = /* @__PURE__ */ __name((value) => {
4500
4506
  try {
4501
4507
  const url2 = new URL(value);
@@ -4505,7 +4511,7 @@ var endpoint = /* @__PURE__ */ __name((value) => {
4505
4511
  }
4506
4512
  }, "endpoint");
4507
4513
 
4508
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/models/settings.js
4514
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/models/settings.js
4509
4515
  var MODEL_FIELDS = ["provider", "model", "base_url"];
4510
4516
  var modelSettingsShape = record(pipe(string(), regex(/^[a-z][a-z0-9-]*$/)), strictObject({
4511
4517
  provider: optional(picklist(["off", "openai", "anthropic"])),
@@ -4574,7 +4580,7 @@ var modelTarget = /* @__PURE__ */ __name((settings, purpose) => {
4574
4580
  };
4575
4581
  }, "modelTarget");
4576
4582
 
4577
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/analysis/settings.js
4583
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/analysis/settings.js
4578
4584
  var model = pipe(string(), trim(), minLength(1), maxLength(200));
4579
4585
  var url = pipe(string(), check(endpoint, "use an HTTP/S endpoint without credentials, query or fragment"));
4580
4586
  var AI_FIELDS = {
@@ -4618,8 +4624,340 @@ var resolveAISettings = /* @__PURE__ */ __name((prefix, layers, env) => {
4618
4624
  };
4619
4625
  }, "resolveAISettings");
4620
4626
 
4621
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
4622
- import { readFileSync } from "node:fs";
4627
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/cli/bot/registry.js
4628
+ import { existsSync, readdirSync, readFileSync } from "node:fs";
4629
+ import { join } from "node:path";
4630
+ var botsDirectory = /* @__PURE__ */ __name((app, env = process.env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "bots"), "botsDirectory");
4631
+ var botFiles = /* @__PURE__ */ __name((app, profile, env = process.env) => {
4632
+ const directory = botsDirectory(app, env);
4633
+ return {
4634
+ registry: join(directory, `${profile}.json`),
4635
+ recipients: join(directory, "recipients", `${profile}.json`),
4636
+ journal: join(directory, "sends", `${profile}.jsonl`),
4637
+ updates: join(directory, "updates", `${profile}.json`),
4638
+ presses: join(directory, "presses", `${profile}.json`),
4639
+ checks: join(directory, "checks", `${profile}.json`)
4640
+ };
4641
+ }, "botFiles");
4642
+ var ChatRegistry = class {
4643
+ static {
4644
+ __name(this, "ChatRegistry");
4645
+ }
4646
+ #path;
4647
+ constructor(app, profile, env = process.env) {
4648
+ this.#path = botFiles(app, profile, env).registry;
4649
+ }
4650
+ list(filter = {}) {
4651
+ const { chats } = this.#read();
4652
+ return (Array.isArray(chats) ? chats : []).filter((chat2) => (filter.id === void 0 || chat2.id === filter.id) && (filter.kind === void 0 || chat2.kind === filter.kind) && (filter.title === void 0 || chat2.title?.toLocaleLowerCase() === filter.title?.toLocaleLowerCase()));
4653
+ }
4654
+ /** The bot's own user id, once any command has learned it — the key its messages are stored under. */
4655
+ botId() {
4656
+ const { botId } = this.#read();
4657
+ return typeof botId === "string" ? botId : void 0;
4658
+ }
4659
+ rememberBot(id6) {
4660
+ const file = this.#read();
4661
+ if (file.botId !== id6)
4662
+ this.#write({ ...file, botId: id6 });
4663
+ }
4664
+ /** Makes this bot known to `bot list` before it has seen any chat. */
4665
+ touch() {
4666
+ if (!existsSync(this.#path))
4667
+ writeSecurely(this.#path, `${JSON.stringify({ chats: [] }, null, 2)}
4668
+ `, 384);
4669
+ }
4670
+ /** Newer facts win; a chat seen only as an id keeps the title it had. */
4671
+ observe(chats, now = /* @__PURE__ */ new Date()) {
4672
+ if (chats.length === 0)
4673
+ return;
4674
+ const byId = new Map(this.list().map((chat2) => [chat2.id, chat2]));
4675
+ const at2 = now.toISOString();
4676
+ for (const chat2 of chats) {
4677
+ const known = byId.get(chat2.id);
4678
+ const defined = Object.fromEntries(Object.entries(chat2).filter(([, value]) => value !== void 0 && value !== null));
4679
+ byId.set(chat2.id, {
4680
+ title: null,
4681
+ kind: "unknown",
4682
+ unreadCount: null,
4683
+ lastMessageAt: null,
4684
+ participantsCount: null,
4685
+ ...known,
4686
+ ...defined,
4687
+ id: chat2.id,
4688
+ firstSeenAt: known?.firstSeenAt ?? at2,
4689
+ lastSeenAt: at2
4690
+ });
4691
+ }
4692
+ this.#write({ ...this.#read(), chats: [...byId.values()] });
4693
+ }
4694
+ #read() {
4695
+ if (!existsSync(this.#path))
4696
+ return {};
4697
+ try {
4698
+ const parsed = JSON.parse(readFileSync(this.#path, "utf8"));
4699
+ return parsed && typeof parsed === "object" ? parsed : {};
4700
+ } catch {
4701
+ return {};
4702
+ }
4703
+ }
4704
+ #write(file) {
4705
+ writeSecurely(this.#path, `${JSON.stringify(file, null, 2)}
4706
+ `, 384);
4707
+ }
4708
+ };
4709
+ var registryProfiles = /* @__PURE__ */ __name((app, env = process.env) => {
4710
+ const directory = botsDirectory(app, env);
4711
+ if (!existsSync(directory))
4712
+ return [];
4713
+ return readdirSync(directory, { withFileTypes: true }).filter((entry) => entry.isFile() && entry.name.endsWith(".json")).map((entry) => entry.name).map((name) => name.slice(0, -".json".length));
4714
+ }, "registryProfiles");
4715
+
4716
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
4717
+ import { readFileSync as readFileSync2 } from "node:fs";
4718
+
4719
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/cli/config-repair.js
4720
+ var REPAIR_WORDS = {
4721
+ byte_order_mark: "an invisible byte-order mark at the start",
4722
+ comment: "a comment, which JSON does not allow",
4723
+ trailing_comma: "a comma before a closing bracket",
4724
+ missing_comma: "a missing comma",
4725
+ unquoted_key: "a key without double quotes",
4726
+ single_quotes: "text in single quotes",
4727
+ missing_closer: "the file stops before its closing brackets \u2014 whatever followed this line was already lost"
4728
+ };
4729
+ var GiveUp = class {
4730
+ static {
4731
+ __name(this, "GiveUp");
4732
+ }
4733
+ at;
4734
+ why;
4735
+ constructor(at2, why) {
4736
+ this.at = at2;
4737
+ this.why = why;
4738
+ }
4739
+ };
4740
+ var NUMBER = /^-?(0|[1-9]\d*)(\.\d+)?([eE][+-]?\d+)?/;
4741
+ var LITERAL = /^(true|false|null)/;
4742
+ var KEY = /^[A-Za-z_$][\w$.-]*/;
4743
+ var ENDS_VALUE = /^[\s,\]}/]?$/;
4744
+ var repairConfigText = /* @__PURE__ */ __name((text5) => {
4745
+ try {
4746
+ JSON.parse(text5);
4747
+ return { state: "valid" };
4748
+ } catch {
4749
+ }
4750
+ const fixes = [];
4751
+ const lineAt = /* @__PURE__ */ __name((offset) => text5.slice(0, offset).split("\n").length, "lineAt");
4752
+ const fix = /* @__PURE__ */ __name((kind2, offset) => fixes.push({ kind: kind2, line: lineAt(offset) }), "fix");
4753
+ const giveUp = /* @__PURE__ */ __name((why, offset = at2) => {
4754
+ throw new GiveUp(offset, why);
4755
+ }, "giveUp");
4756
+ let at2 = 0;
4757
+ let truncated = false;
4758
+ let last = "open";
4759
+ let lastEnd = 0;
4760
+ const previous = /* @__PURE__ */ __name(() => last, "previous");
4761
+ const skip = /* @__PURE__ */ __name(() => {
4762
+ for (; ; ) {
4763
+ while (/\s/.test(text5[at2] ?? ""))
4764
+ at2++;
4765
+ if (text5.startsWith("//", at2)) {
4766
+ fix("comment", at2);
4767
+ while (at2 < text5.length && text5[at2] !== "\n")
4768
+ at2++;
4769
+ } else if (text5.startsWith("/*", at2)) {
4770
+ const end = text5.indexOf("*/", at2 + 2);
4771
+ if (end < 0)
4772
+ giveUp("a /* comment is never closed");
4773
+ fix("comment", at2);
4774
+ at2 = end + 2;
4775
+ } else
4776
+ return;
4777
+ }
4778
+ }, "skip");
4779
+ const string2 = /* @__PURE__ */ __name(() => {
4780
+ const quote = text5[at2];
4781
+ const start = at2;
4782
+ if (quote === "'")
4783
+ fix("single_quotes", at2);
4784
+ at2++;
4785
+ let body = "";
4786
+ for (; ; ) {
4787
+ if (at2 >= text5.length)
4788
+ giveUp("the file stops inside a quoted text", start);
4789
+ const char = text5[at2];
4790
+ if (char === quote)
4791
+ break;
4792
+ if (text5.charCodeAt(at2) < 32)
4793
+ giveUp("a line break inside a quoted text");
4794
+ if (char === "\\") {
4795
+ const next = text5[at2 + 1] ?? "";
4796
+ if (quote === "'" && next === "'")
4797
+ body += "'";
4798
+ else if (/^["\\/bfnrt]$/.test(next))
4799
+ body += `\\${next}`;
4800
+ else if (next === "u" && /^[0-9a-fA-F]{4}$/.test(text5.slice(at2 + 2, at2 + 6))) {
4801
+ body += text5.slice(at2, at2 + 6);
4802
+ at2 += 4;
4803
+ } else
4804
+ giveUp("an escape JSON has no meaning for");
4805
+ at2 += 2;
4806
+ continue;
4807
+ }
4808
+ body += char === '"' ? '\\"' : char;
4809
+ at2++;
4810
+ }
4811
+ at2++;
4812
+ return JSON.parse(`"${body}"`);
4813
+ }, "string");
4814
+ const key = /* @__PURE__ */ __name(() => {
4815
+ const char = text5[at2] ?? "";
4816
+ if (char === '"' || char === "'")
4817
+ return string2();
4818
+ const word = KEY.exec(text5.slice(at2))?.[0];
4819
+ if (!word)
4820
+ return giveUp("something other than a key where a key should be");
4821
+ fix("unquoted_key", at2);
4822
+ at2 += word.length;
4823
+ return word;
4824
+ }, "key");
4825
+ const scalar = /* @__PURE__ */ __name(() => {
4826
+ const char = text5[at2] ?? "";
4827
+ if (char === '"' || char === "'")
4828
+ return { json: JSON.stringify(string2()) };
4829
+ const word = (NUMBER.exec(text5.slice(at2)) ?? LITERAL.exec(text5.slice(at2)))?.[0];
4830
+ if (!word || !ENDS_VALUE.test(text5[at2 + word.length] ?? ""))
4831
+ return giveUp("a value that is not JSON \u2014 text needs quotes, and only true, false and null go without");
4832
+ if (at2 + word.length === text5.length && NUMBER.test(word))
4833
+ giveUp("the file stops inside a number");
4834
+ at2 += word.length;
4835
+ return { json: word };
4836
+ }, "scalar");
4837
+ const members = /* @__PURE__ */ __name((close, one) => {
4838
+ const out = [];
4839
+ at2++;
4840
+ last = "open";
4841
+ let comma = -1;
4842
+ for (; ; ) {
4843
+ skip();
4844
+ if (truncated)
4845
+ return out;
4846
+ if (at2 >= text5.length) {
4847
+ if (previous() === "close")
4848
+ giveUp("the file stops after a closing bracket, so which brackets are missing has two readings");
4849
+ if (previous() === "comma")
4850
+ fix("trailing_comma", comma);
4851
+ fix("missing_closer", text5.length);
4852
+ truncated = true;
4853
+ return out;
4854
+ }
4855
+ const char = text5[at2];
4856
+ if (char === close) {
4857
+ if (previous() === "comma")
4858
+ fix("trailing_comma", comma);
4859
+ at2++;
4860
+ last = "close";
4861
+ return out;
4862
+ }
4863
+ if (char === "}" || char === "]")
4864
+ giveUp(`a ${char} where ${close} should close`);
4865
+ if (char === ",") {
4866
+ if (previous() !== "value" && previous() !== "close")
4867
+ giveUp("a comma with nothing before it");
4868
+ comma = at2;
4869
+ at2++;
4870
+ last = "comma";
4871
+ continue;
4872
+ }
4873
+ if (previous() === "value" || previous() === "close") {
4874
+ if (lineAt(at2) === lineAt(lastEnd))
4875
+ giveUp("two entries on one line with no comma between them");
4876
+ fix("missing_comma", lastEnd);
4877
+ }
4878
+ out.push(one());
4879
+ }
4880
+ }, "members");
4881
+ const value = /* @__PURE__ */ __name(() => {
4882
+ const char = text5[at2] ?? "";
4883
+ let node;
4884
+ if (char === "{") {
4885
+ const seen = /* @__PURE__ */ new Set();
4886
+ node = {
4887
+ object: members("}", () => {
4888
+ const start = at2;
4889
+ const name = key();
4890
+ if (seen.has(name))
4891
+ giveUp("a key appears twice in one object", start);
4892
+ seen.add(name);
4893
+ skip();
4894
+ if (at2 >= text5.length)
4895
+ giveUp("the file stops after a key, before its value");
4896
+ if (text5[at2] !== ":")
4897
+ giveUp("a key with no colon after it");
4898
+ at2++;
4899
+ skip();
4900
+ if (at2 >= text5.length)
4901
+ giveUp("the file stops after a key, before its value");
4902
+ return [name, value()];
4903
+ })
4904
+ };
4905
+ } else if (char === "[") {
4906
+ node = {
4907
+ array: members("]", () => {
4908
+ return value();
4909
+ })
4910
+ };
4911
+ } else
4912
+ node = scalar();
4913
+ if (!truncated) {
4914
+ last = "json" in node ? "value" : "close";
4915
+ lastEnd = at2;
4916
+ }
4917
+ return node;
4918
+ }, "value");
4919
+ try {
4920
+ if (text5.includes("\0") || text5.includes(String.fromCharCode(65533)))
4921
+ giveUp("the file is not text", 0);
4922
+ if (text5.charCodeAt(0) === 65279) {
4923
+ fix("byte_order_mark", 0);
4924
+ at2 = 1;
4925
+ }
4926
+ skip();
4927
+ if (text5[at2] !== "{")
4928
+ giveUp(at2 >= text5.length ? "the file is empty" : "the file does not start with {");
4929
+ const root = value();
4930
+ skip();
4931
+ if (at2 < text5.length)
4932
+ giveUp("more text after the closing }");
4933
+ const repaired = `${serialise(root, "")}
4934
+ `;
4935
+ JSON.parse(repaired);
4936
+ return { state: "repaired", text: repaired, fixes };
4937
+ } catch (error) {
4938
+ if (!(error instanceof GiveUp))
4939
+ throw error;
4940
+ const before = text5.slice(0, error.at).split("\n");
4941
+ return {
4942
+ state: "refused",
4943
+ line: before.length,
4944
+ column: (before.at(-1)?.length ?? 0) + 1,
4945
+ why: error.why
4946
+ };
4947
+ }
4948
+ }, "repairConfigText");
4949
+ var serialise = /* @__PURE__ */ __name((node, indent) => {
4950
+ if ("json" in node)
4951
+ return node.json;
4952
+ const inner = `${indent} `;
4953
+ const parts = "object" in node ? node.object.map(([name, item]) => `${inner}${JSON.stringify(name)}: ${serialise(item, inner)}`) : node.array.map((item) => `${inner}${serialise(item, inner)}`);
4954
+ const [open, close] = "object" in node ? ["{", "}"] : ["[", "]"];
4955
+ return parts.length === 0 ? `${open}${close}` : `${open}
4956
+ ${parts.join(",\n")}
4957
+ ${indent}${close}`;
4958
+ }, "serialise");
4959
+
4960
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
4623
4961
  var isNode = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
4624
4962
  var SECTIONS = ["personal", "bot"];
4625
4963
  var SHELL_SAFE = /^[A-Za-z0-9_.:@-]*$/;
@@ -4866,17 +5204,22 @@ var withoutPath = /* @__PURE__ */ __name((raw, at2) => {
4866
5204
  }, "withoutPath");
4867
5205
  var withoutSetting = /* @__PURE__ */ __name((raw, setting2) => withoutPath(raw, settingPathOf(setting2)), "withoutSetting");
4868
5206
  var publicIssue = /* @__PURE__ */ __name(({ at: _, ...issue }) => issue, "publicIssue");
5207
+ var fixVerb = /* @__PURE__ */ __name((issue) => issue.kind === "invalid_json" ? "repair" : "remove", "fixVerb");
4869
5208
  var issueMessage = /* @__PURE__ */ __name((issues, doctor = "doctor") => {
4870
5209
  const [first2] = issues;
4871
5210
  if (!first2)
4872
5211
  return "";
4873
5212
  const more = issues.length - 1;
4874
- return `${first2.file}: ${first2.what}` + (first2.fix ? ` \u2014 remove it with \`${first2.fix}\`` : "") + (more === 0 ? "" : ` (and ${more} more problem${more === 1 ? "" : "s"} \u2014 \`${doctor}\` lists them all)`);
5213
+ return `${first2.file}: ${first2.what}` + (first2.fix ? ` \u2014 ${fixVerb(first2)} it with \`${first2.fix}\`` : "") + (more === 0 ? "" : ` (and ${more} more problem${more === 1 ? "" : "s"} \u2014 \`${doctor}\` lists them all)`);
4875
5214
  }, "issueMessage");
4876
- var checkConfigText = /* @__PURE__ */ __name((text5, { file, tool, schema: schema2, knownPermissions }) => {
5215
+ var checkConfigText = /* @__PURE__ */ __name((text5, { file, tool, schema: schema2, knownPermissions, repair = true }) => {
4877
5216
  const parsed = parseConfigText(text5, file);
4878
- if ("issue" in parsed)
4879
- return { issues: [publicIssue(parsed.issue)], config: void 0 };
5217
+ if ("issue" in parsed) {
5218
+ const issue = publicIssue(parsed.issue);
5219
+ if (repair && repairConfigText(text5).state === "repaired")
5220
+ issue.fix = `${tool} config repair`;
5221
+ return { issues: [issue], config: void 0 };
5222
+ }
4880
5223
  if (!isNode(parsed.raw))
4881
5224
  return { issues: [wholeFile(file, "the file must hold a JSON object")], config: void 0 };
4882
5225
  const context2 = { file, tool };
@@ -4889,7 +5232,7 @@ var checkConfigText = /* @__PURE__ */ __name((text5, { file, tool, schema: schem
4889
5232
  var wholeFile = /* @__PURE__ */ __name((file, what) => ({ kind: "invalid_value", file, what }), "wholeFile");
4890
5233
  var readConfigText = /* @__PURE__ */ __name((path2) => {
4891
5234
  try {
4892
- return { text: readFileSync(path2, "utf8") };
5235
+ return { text: readFileSync2(path2, "utf8") };
4893
5236
  } catch (error) {
4894
5237
  const code = error.code;
4895
5238
  if (code === "ENOENT")
@@ -4909,20 +5252,20 @@ var readConfigFile = /* @__PURE__ */ __name((path2) => {
4909
5252
  return "issue" in parsed ? { issue: publicIssue(parsed.issue) } : parsed;
4910
5253
  }, "readConfigFile");
4911
5254
 
4912
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/cli/default-config.js
4913
- import { existsSync, linkSync, mkdirSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";
4914
- import { dirname, join } from "node:path";
5255
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/cli/default-config.js
5256
+ import { existsSync as existsSync2, linkSync, mkdirSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";
5257
+ import { dirname, join as join2 } from "node:path";
4915
5258
  var DEFAULT_CONFIG = {
4916
5259
  defaults: { limit: 20, keep_runs_for_days: 30, sends_per_hour: 30, update_check: true, skill_hint: true },
4917
5260
  profiles: {}
4918
5261
  };
4919
5262
  function ensureDefaultConfig(path2, config = DEFAULT_CONFIG) {
4920
- if (existsSync(path2))
5263
+ if (existsSync2(path2))
4921
5264
  return;
4922
5265
  const directory = dirname(path2);
4923
5266
  mkdirSync(directory, { recursive: true, mode: 448 });
4924
- const temporary = mkdtempSync(join(directory, ".config-"));
4925
- const candidate = join(temporary, "config.json");
5267
+ const temporary = mkdtempSync(join2(directory, ".config-"));
5268
+ const candidate = join2(temporary, "config.json");
4926
5269
  try {
4927
5270
  writeFileSync(candidate, `${JSON.stringify(config, null, 2)}
4928
5271
  `, { flag: "wx", mode: 384 });
@@ -4938,30 +5281,63 @@ function ensureDefaultConfig(path2, config = DEFAULT_CONFIG) {
4938
5281
  }
4939
5282
  __name(ensureDefaultConfig, "ensureDefaultConfig");
4940
5283
 
4941
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/cli/messenger/accounts.js
4942
- import { existsSync as existsSync2, readdirSync, readFileSync as readFileSync2 } from "node:fs";
4943
- import { join as join2 } from "node:path";
4944
- var accountFileFor = /* @__PURE__ */ __name((app, profile, env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "accounts", `${profile}.json`), "accountFileFor");
5284
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/cli/messenger/accounts.js
5285
+ import { existsSync as existsSync3, readdirSync as readdirSync2, readFileSync as readFileSync3 } from "node:fs";
5286
+ import { join as join3 } from "node:path";
5287
+ var accountFileFor = /* @__PURE__ */ __name((app, profile, env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "accounts", `${profile}.json`), "accountFileFor");
4945
5288
  var rememberAccount = /* @__PURE__ */ __name((app, profile, id6, env) => writeSecurely(accountFileFor(app, profile, env), `${JSON.stringify({ account: id6 })}
4946
5289
  `, 384), "rememberAccount");
4947
5290
  var recalledAccount = /* @__PURE__ */ __name((app, provider, profile, env) => {
4948
5291
  try {
4949
- const { account: account2 } = JSON.parse(readFileSync2(accountFileFor(app, profile, env), "utf8"));
5292
+ const { account: account2 } = JSON.parse(readFileSync3(accountFileFor(app, profile, env), "utf8"));
4950
5293
  return typeof account2 === "string" ? { provider, account: account2 } : void 0;
4951
5294
  } catch {
4952
5295
  return void 0;
4953
5296
  }
4954
5297
  }, "recalledAccount");
4955
5298
  var profilesWithAccounts = /* @__PURE__ */ __name((app, env) => {
4956
- const dir = join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "accounts");
4957
- if (!existsSync2(dir))
5299
+ const dir = join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "accounts");
5300
+ if (!existsSync3(dir))
4958
5301
  return [];
4959
- return readdirSync(dir).filter((name) => name.endsWith(".json")).map((name) => name.slice(0, -".json".length));
5302
+ return readdirSync2(dir).filter((name) => name.endsWith(".json")).map((name) => name.slice(0, -".json".length));
4960
5303
  }, "profilesWithAccounts");
4961
5304
  var profilesHere = /* @__PURE__ */ __name((app, configured, env) => [.../* @__PURE__ */ new Set([...configured, ...profilesWithAccounts(app, env)])].sort(), "profilesHere");
4962
5305
 
4963
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/cli/settings.js
4964
- import { existsSync as existsSync3 } from "node:fs";
5306
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/cli/setting-defaults.js
5307
+ var isNode2 = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
5308
+ var parentOf = /* @__PURE__ */ __name((config, key) => {
5309
+ const path2 = key.split(".");
5310
+ const leaf = path2.pop();
5311
+ return { node: path2.reduce((node, part) => isNode2(node) ? node[part] : void 0, config), leaf };
5312
+ }, "parentOf");
5313
+ var withSettingDefaults = /* @__PURE__ */ __name((raw, declared) => {
5314
+ if (raw !== void 0 && !isNode2(raw))
5315
+ return { config: raw, added: [] };
5316
+ const config = raw === void 0 ? {} : structuredClone(raw);
5317
+ const added = [];
5318
+ for (const setting2 of declared) {
5319
+ const { node, leaf } = parentOf(config, setting2.key);
5320
+ if (!isNode2(node) || Object.hasOwn(node, leaf))
5321
+ continue;
5322
+ node[leaf] = setting2.default;
5323
+ added.push(setting2.key);
5324
+ }
5325
+ return { config, added };
5326
+ }, "withSettingDefaults");
5327
+ var settingRows = /* @__PURE__ */ __name((raw, declared) => declared.map((setting2) => {
5328
+ const { node, leaf } = isNode2(raw) ? parentOf(raw, setting2.key) : { node: void 0, leaf: "" };
5329
+ const written = isNode2(node) && Object.hasOwn(node, leaf);
5330
+ return {
5331
+ setting: setting2.key,
5332
+ value: written ? node[leaf] : setting2.default,
5333
+ default: setting2.default,
5334
+ from: written ? "config file" : "default",
5335
+ description: setting2.description
5336
+ };
5337
+ }), "settingRows");
5338
+
5339
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/cli/settings.js
5340
+ import { existsSync as existsSync4 } from "node:fs";
4965
5341
  var DEFAULT_LIMIT = DEFAULT_CONFIG.defaults.limit;
4966
5342
  var DEFAULT_KEEP_RUNS_FOR_DAYS = DEFAULT_CONFIG.defaults.keep_runs_for_days;
4967
5343
  var DEFAULT_SENDS_PER_HOUR = DEFAULT_CONFIG.defaults.sends_per_hour;
@@ -5025,12 +5401,73 @@ var MESSENGER_ONLY_SETTINGS = [
5025
5401
  "history_dialog_days",
5026
5402
  "history_group_days",
5027
5403
  "history_group_members_max",
5028
- "read_other_bots"
5404
+ "read_other_bots",
5405
+ "speech_model",
5406
+ "picture_search"
5029
5407
  ];
5030
5408
  var SHARED_DEFAULTS_ONLY = {
5031
5409
  update_check: optional(flag),
5032
5410
  skill_hint: optional(flag)
5033
5411
  };
5412
+ var SHARED_SETTINGS = [
5413
+ { key: "limit", default: DEFAULT_LIMIT, description: "how many items a list shows at once" },
5414
+ { key: "keep_runs_for_days", default: DEFAULT_KEEP_RUNS_FOR_DAYS, description: "days a run is kept" },
5415
+ {
5416
+ key: "sends_per_hour",
5417
+ default: DEFAULT_SENDS_PER_HOUR,
5418
+ description: "the most messages an account sends in an hour; a bot has none unless its section sets one"
5419
+ },
5420
+ { key: "update_check", default: true, description: "check once a day for a newer version" },
5421
+ {
5422
+ key: "skill_hint",
5423
+ default: true,
5424
+ description: "tell an agent once a day that `skill install` would give it this tool's guide"
5425
+ },
5426
+ { key: "record", default: true, description: "keep every run in runs list; false keeps failed runs only" },
5427
+ {
5428
+ key: "record_input",
5429
+ default: true,
5430
+ description: `keep what was typed in a run's command line: true, false, or "failed" for failed runs only`
5431
+ },
5432
+ {
5433
+ key: "keep_successful_runs_for_days",
5434
+ default: KEEP_SUCCESSFUL_RUNS_FOR_DAYS,
5435
+ description: "days a successful run is kept"
5436
+ },
5437
+ { key: "runs_size_limit_mb", default: RUNS_SIZE_LIMIT_MB, description: "the most megabytes all runs may take" },
5438
+ { key: "sender_colors", default: false, description: "color each sender's name in a conversation" },
5439
+ { key: "search_catch_up", default: false, description: "prepare local search after a gaps repair" },
5440
+ {
5441
+ key: "history_dialog_days",
5442
+ default: DEFAULT_HISTORY_LIMITS.dialogDays,
5443
+ description: "days of a one-to-one chat's pushed history the store keeps"
5444
+ },
5445
+ {
5446
+ key: "history_group_days",
5447
+ default: DEFAULT_HISTORY_LIMITS.groupDays,
5448
+ description: "days of a group's pushed history the store keeps"
5449
+ },
5450
+ {
5451
+ key: "history_group_members_max",
5452
+ default: DEFAULT_HISTORY_LIMITS.groupMembersMax,
5453
+ description: "a group with more people than this keeps no pushed history"
5454
+ },
5455
+ {
5456
+ key: "picture_search",
5457
+ default: false,
5458
+ description: "search and images embed read the pictures themselves, with a model on this computer"
5459
+ },
5460
+ {
5461
+ key: "search_reranker",
5462
+ default: DEFAULT_RERANK_MODEL,
5463
+ description: "the reranker that orders search's first hits, or off"
5464
+ },
5465
+ {
5466
+ key: "embedding_provider",
5467
+ default: AI_DEFAULTS.embeddingProvider,
5468
+ description: "local or openai: what turns text into vectors for search by meaning"
5469
+ }
5470
+ ];
5034
5471
  var NONE_NAMED = "none named";
5035
5472
  var NO_PROFILE = "default";
5036
5473
  var namedProfile = /* @__PURE__ */ __name((settings) => settings.sources?.profile === NONE_NAMED ? void 0 : settings.profile, "namedProfile");
@@ -5083,12 +5520,14 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
5083
5520
  const defaultsOnlyKeys = Object.keys(defaultsOnly);
5084
5521
  const botOnlyKeys = Object.keys(BOT_ONLY_ENTRIES);
5085
5522
  const allSettings = [...Object.keys(profileEntries), ...botOnlyKeys, ...defaultsOnlyKeys].filter((setting2) => app.messenger !== false || !MESSENGER_ONLY_SETTINGS.includes(setting2) || app.sends === true && setting2 === "sends_per_hour");
5523
+ const readSchema = extension.schema ?? schema2;
5524
+ const declaredSettings = [...SHARED_SETTINGS, ...extension.settings ?? []].filter(({ key, default: value }) => allSettings.includes(key) && safeParse(readSchema, { defaults: { [key]: value } }).success).map((setting2) => ({ ...setting2, key: `defaults.${setting2.key}` }));
5525
+ const withDefaults = /* @__PURE__ */ __name((raw, except = []) => withSettingDefaults(isScope(raw) && !Object.hasOwn(raw, "defaults") ? { ...raw, defaults: {} } : raw, declaredSettings.filter(({ key }) => !except.includes(key))), "withDefaults");
5086
5526
  const PROFILE = envName(app, "PROFILE");
5087
5527
  const PROFILE_LOCK = envName(app, "PROFILE_LOCK");
5088
5528
  const TIMEOUT = envName(app, "TIMEOUT");
5089
5529
  const REQUESTS_PER_MINUTE = envName(app, "REQUESTS_PER_MINUTE");
5090
5530
  const configPathFor = /* @__PURE__ */ __name(({ env = process.env, configDir }) => configFilePath(configDir ?? resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).config), "configPathFor");
5091
- const readSchema = extension.schema ?? schema2;
5092
5531
  const context2 = /* @__PURE__ */ __name((file) => ({ file, tool: app.command }), "context");
5093
5532
  const loadConfig = /* @__PURE__ */ __name((path2) => {
5094
5533
  const read = readConfigText(path2);
@@ -5096,7 +5535,12 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
5096
5535
  return { config: { profiles: {} }, issues: [read.issue] };
5097
5536
  if (read.text === void 0)
5098
5537
  return { config: { profiles: {} }, issues: [] };
5099
- const { config, issues } = checkConfigText(read.text, { file: path2, tool: app.command, schema: readSchema });
5538
+ const { config, issues } = checkConfigText(read.text, {
5539
+ file: path2,
5540
+ tool: app.command,
5541
+ schema: readSchema,
5542
+ repair: extension.configRepair !== false
5543
+ });
5100
5544
  return { config: config ?? { profiles: {} }, issues };
5101
5545
  }, "loadConfig");
5102
5546
  const locked = /* @__PURE__ */ __name((profile, lock) => {
@@ -5119,12 +5563,21 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
5119
5563
  throw new CliError("validation_error", `name a profile: \`${app.command} <profile> \u2026\` \u2014 profiles here: ${here.join(", ")} (or set ${PROFILE})`, { profiles: here });
5120
5564
  }, "unnamed");
5121
5565
  const profilesOf = /* @__PURE__ */ __name((config, env) => profilesHere(app, [...namedProfiles(config), ...extension.profiles?.(env) ?? []], env), "profilesOf");
5566
+ const botsOf = /* @__PURE__ */ __name((config, env) => [.../* @__PURE__ */ new Set([...Object.keys(config.bot?.profiles ?? {}), ...registryProfiles(app, env)])].sort(), "botsOf");
5567
+ const accountsOf = /* @__PURE__ */ __name((config, env, bots) => {
5568
+ const personal = /* @__PURE__ */ new Set([
5569
+ ...Object.keys(config.personal?.profiles ?? {}),
5570
+ ...profilesWithAccounts(app, env),
5571
+ ...extension.profiles?.(env) ?? []
5572
+ ]);
5573
+ return profilesOf(config, env).filter((name) => !bots.includes(name) || personal.has(name));
5574
+ }, "accountsOf");
5122
5575
  const resolveSettings = /* @__PURE__ */ __name((flags = {}, options = {}) => {
5123
5576
  const env = options.env ?? process.env;
5124
5577
  const configPath = configPathFor(options);
5125
5578
  try {
5126
5579
  if (!options.readOnly)
5127
- ensureDefaultConfig(configPath);
5580
+ ensureDefaultConfig(configPath, withDefaults(DEFAULT_CONFIG).config);
5128
5581
  } catch (error) {
5129
5582
  throw new CliError("configuration_error", error instanceof Error ? error.message : String(error));
5130
5583
  }
@@ -5140,6 +5593,7 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
5140
5593
  ], void 0);
5141
5594
  const profile = locked(named2.value === void 0 ? unnamed(config, env, options.needsProfile !== false) : { value: named2.value, from: named2.from }, lock);
5142
5595
  const kind2 = options.kind ?? "personal";
5596
+ const bots = botsOf(config, env);
5143
5597
  const name = usableProfileName(profile.value);
5144
5598
  const configured = config.profiles[name] ?? {};
5145
5599
  const shared = config.defaults ?? {};
@@ -5231,9 +5685,11 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
5231
5685
  updateCheck: updateCheck.value,
5232
5686
  skillHint: skillHint.value,
5233
5687
  configPath,
5234
- configFound: existsSync3(configPath),
5688
+ configFound: existsSync4(configPath),
5235
5689
  configuredProfiles: namedProfiles(config),
5236
5690
  profilesHere: profilesOf(config, env),
5691
+ accountProfiles: accountsOf(config, env, bots),
5692
+ botProfiles: bots,
5237
5693
  sources: {
5238
5694
  ...ai.sources,
5239
5695
  profile: profile.from,
@@ -5302,7 +5758,7 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
5302
5758
  throw new CliError("validation_error", `${setting2} has no problem to remove \u2014 name the profile, or add --defaults, to unset a setting`);
5303
5759
  if (!known && valueAt(raw, at2) === void 0)
5304
5760
  throw new CliError("validation_error", `no setting called "${setting2}" \u2014 one of: ${allSettings.join(", ")}`);
5305
- saveConfigFile(path2, withoutPath(raw, at2).config);
5761
+ saveConfigFile(path2, withDefaults(withoutPath(raw, at2).config, [at2.join(".")]).config);
5306
5762
  return null;
5307
5763
  }
5308
5764
  if (!known)
@@ -5316,20 +5772,41 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
5316
5772
  if (kind2 !== "bot" && botOnlyKeys.includes(setting2)) {
5317
5773
  throw new CliError("validation_error", `${setting2} is a bot's setting \u2014 add --bot`);
5318
5774
  }
5319
- const changed = structuredClone(raw);
5320
- setAt(changed, at2, level2 === void 0 ? parseValue(value) : value.trim());
5321
5775
  const had = new Set(before.map((issue) => issue.at.join(".")));
5322
- const added = schemaIssues(changed, readSchema, context2(path2)).find((issue) => !had.has(issue.at.join(".")) || issue.at.join(".") === at2.join("."));
5776
+ const tried = /* @__PURE__ */ __name((typed2) => {
5777
+ const changed2 = structuredClone(raw);
5778
+ setAt(changed2, at2, typed2);
5779
+ const added2 = schemaIssues(changed2, readSchema, context2(path2)).find((issue) => !had.has(issue.at.join(".")) || issue.at.join(".") === at2.join("."));
5780
+ return { changed: changed2, added: added2 };
5781
+ }, "tried");
5782
+ const parsed = level2 === void 0 ? parseValue(value) : value.trim();
5783
+ let { changed, added } = tried(parsed);
5784
+ if (added && typeof parsed !== "string") {
5785
+ const asText = tried(value.trim());
5786
+ if (!asText.added)
5787
+ ({ changed, added } = asText);
5788
+ }
5323
5789
  if (added)
5324
5790
  throw new CliError("validation_error", `${setting2} cannot be "${value}": ${added.what}`);
5325
5791
  const checked = safeParse(readSchema, changed);
5326
- saveConfigFile(path2, checked.success ? checked.output : changed);
5792
+ saveConfigFile(path2, withDefaults(checked.success ? checked.output : changed).config);
5327
5793
  return valueAt(checked.success ? checked.output : changed, at2) ?? null;
5328
5794
  }, "changeSetting");
5795
+ const migrate = /* @__PURE__ */ __name((path2) => {
5796
+ const read = readConfigFile(path2);
5797
+ if ("issue" in read)
5798
+ throw new CliError("configuration_error", issueMessage([read.issue]));
5799
+ const { config, added } = withDefaults(read.raw);
5800
+ if (added.length > 0)
5801
+ saveConfigFile(path2, config);
5802
+ return added;
5803
+ }, "migrate");
5329
5804
  return {
5330
5805
  resolveSettings,
5331
5806
  configuredProfiles,
5332
5807
  changeSetting,
5808
+ migrate,
5809
+ declaredSettings,
5333
5810
  allSettings,
5334
5811
  defaultsOnlyKeys,
5335
5812
  schema: schema2,
@@ -5370,7 +5847,7 @@ var given = /* @__PURE__ */ __name((value) => {
5370
5847
  return trimmed === void 0 || trimmed === "" ? void 0 : trimmed;
5371
5848
  }, "given");
5372
5849
 
5373
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/background/budget.js
5850
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/background/budget.js
5374
5851
  var DEADLINE_MARGIN_MS = 5e3;
5375
5852
  var DEADLINE_MARGIN_SHARE = 0.15;
5376
5853
  var DEFAULT_REQUEST_MS = 2e3;
@@ -5413,7 +5890,7 @@ var runBudget = /* @__PURE__ */ __name(({ requests, deadline, requestMs, signal,
5413
5890
  };
5414
5891
  }, "runBudget");
5415
5892
 
5416
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/cli/context.js
5893
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/cli/context.js
5417
5894
  var runBudgetOf = /* @__PURE__ */ __name((command, requests) => {
5418
5895
  const { deadline, signal, app } = environmentOf(command);
5419
5896
  const now = deadline?.();
@@ -5436,6 +5913,10 @@ var provide = /* @__PURE__ */ __name((program2, environment) => {
5436
5913
  environments.set(program2, environment);
5437
5914
  }, "provide");
5438
5915
  var environmentOf = /* @__PURE__ */ __name((command) => environments.get(rootOf(command)) ?? {}, "environmentOf");
5916
+ var withAgentLevels = /* @__PURE__ */ __name((command, flags) => {
5917
+ const overrides = environmentOf(command).agent?.overrides ?? [];
5918
+ return overrides.length > 0 ? { ...flags, permission: [...overrides, ...flags.permission ?? []] } : flags;
5919
+ }, "withAgentLevels");
5439
5920
  var secretInputOf = /* @__PURE__ */ __name((command) => {
5440
5921
  const { stdin, stderr } = environmentOf(command);
5441
5922
  return { ...stdin ? { input: stdin } : {}, ...stderr ? { output: stderr } : {} };
@@ -5462,9 +5943,7 @@ var outputFor = /* @__PURE__ */ __name((command) => {
5462
5943
  var baseContext = /* @__PURE__ */ __name((command, resolveSettings) => {
5463
5944
  const environment = environmentOf(command);
5464
5945
  const env = environment.env ?? process.env;
5465
- const flags = command.optsWithGlobals();
5466
- const overrides = environment.agent?.overrides ?? [];
5467
- const settings = resolveSettings(overrides.length > 0 ? { ...flags, permission: [...overrides, ...flags.permission ?? []] } : flags, { env });
5946
+ const settings = resolveSettings(withAgentLevels(command, command.optsWithGlobals()), { env });
5468
5947
  const { renderer, format, color, streams, compact, full } = resolveOutput({
5469
5948
  ...settings,
5470
5949
  env,
@@ -5529,6 +6008,13 @@ var baseContext = /* @__PURE__ */ __name((command, resolveSettings) => {
5529
6008
  }, "track")
5530
6009
  };
5531
6010
  }, "baseContext");
6011
+ var inCommandRun = /* @__PURE__ */ __name((command, body) => {
6012
+ const { resolveSettings } = environmentOf(command);
6013
+ if (!resolveSettings)
6014
+ return body(() => {
6015
+ });
6016
+ return baseContext(command, (flags, options) => resolveSettings(flags, { ...options, needsProfile: false })).run(body);
6017
+ }, "inCommandRun");
5532
6018
  var commandPath = /* @__PURE__ */ __name((command) => {
5533
6019
  const words = [];
5534
6020
  for (let current = command; current?.parent; current = current.parent)
@@ -5536,7 +6022,7 @@ var commandPath = /* @__PURE__ */ __name((command) => {
5536
6022
  return words.join(" ");
5537
6023
  }, "commandPath");
5538
6024
 
5539
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/cli/effects.js
6025
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/cli/effects.js
5540
6026
  var REMOTE_READ = { remote: "read", local: "read" };
5541
6027
  var FETCH = { remote: "read", local: "write" };
5542
6028
  var REMOTE_WRITE = { remote: "write", local: "write" };
@@ -5572,6 +6058,30 @@ var destroysNothing = /* @__PURE__ */ __name((command) => {
5572
6058
  KEPT_UNDER_LOCK.add(command);
5573
6059
  return command;
5574
6060
  }, "destroysNothing");
6061
+ var PROPOSE_COMMANDS = ["messages acknowledge", "mail findings add"];
6062
+ var PROPOSES = /* @__PURE__ */ new WeakSet();
6063
+ var proposesOnly = /* @__PURE__ */ __name((command) => {
6064
+ PROPOSES.add(command);
6065
+ return command;
6066
+ }, "proposesOnly");
6067
+ var isProposal = /* @__PURE__ */ __name((command) => {
6068
+ if (!PROPOSES.has(command))
6069
+ return false;
6070
+ const path2 = pathOf2(command).join(" ");
6071
+ return PROPOSE_COMMANDS.some((listed) => path2 === listed || path2.endsWith(` ${listed}`));
6072
+ }, "isProposal");
6073
+ var LOCKED_AUTHORITY_COMMANDS = ["rules add"];
6074
+ var NARROWS = /* @__PURE__ */ new WeakSet();
6075
+ var narrowsUnderLock = /* @__PURE__ */ __name((command) => {
6076
+ NARROWS.add(command);
6077
+ return command;
6078
+ }, "narrowsUnderLock");
6079
+ var admittedUnderLock = /* @__PURE__ */ __name((command) => {
6080
+ if (!NARROWS.has(command))
6081
+ return false;
6082
+ const path2 = pathOf2(command).join(" ");
6083
+ return LOCKED_AUTHORITY_COMMANDS.some((listed) => path2 === listed || path2.endsWith(` ${listed}`));
6084
+ }, "admittedUnderLock");
5575
6085
  var STORE_WRITES = /* @__PURE__ */ new WeakSet();
5576
6086
  var changesStore = /* @__PURE__ */ __name((command) => {
5577
6087
  STORE_WRITES.add(command);
@@ -5596,6 +6106,7 @@ var writesFileOnlyWith = /* @__PURE__ */ __name((command, option) => {
5596
6106
  FILE_OPTION.set(command, option);
5597
6107
  return command;
5598
6108
  }, "writesFileOnlyWith");
6109
+ var writesNewFileOnlyWith = /* @__PURE__ */ __name((command, option) => destroysNothing(writesFileOnlyWith(command, option)), "writesNewFileOnlyWith");
5599
6110
  var writesFileNow = /* @__PURE__ */ __name((command) => {
5600
6111
  const option = FILE_OPTION.get(command);
5601
6112
  return option === void 0 || command.opts()[option] !== void 0;
@@ -5609,7 +6120,7 @@ var readsOverMcpAt = /* @__PURE__ */ __name((root) => (path2) => {
5609
6120
  }, "readsOverMcpAt");
5610
6121
  var isStoreChange = /* @__PURE__ */ __name((command) => {
5611
6122
  const effects = metaOf(command).effects;
5612
- return (effects?.remote === "none" || STORE_WRITES.has(command)) && effects?.local === "write" && !KEPT_UNDER_LOCK.has(command) && !changesAuthority(command) && writesFileNow(command);
6123
+ return (effects?.remote === "none" || STORE_WRITES.has(command)) && effects?.local === "write" && !KEPT_UNDER_LOCK.has(command) && !isProposal(command) && !changesAuthority(command) && writesFileNow(command);
5613
6124
  }, "isStoreChange");
5614
6125
  var STORE_CHANGE_REFUSAL = "change the message store";
5615
6126
  var previewFlag = /* @__PURE__ */ __name((program2) => program2.options.some((option) => option.long === "--dry-run") ? " --dry-run" : "", "previewFlag");
@@ -5657,7 +6168,7 @@ var refuseUnderReadOnly = /* @__PURE__ */ __name((command, what) => {
5657
6168
  throw readOnlyRefusal(lock, what);
5658
6169
  }, "refuseUnderReadOnly");
5659
6170
 
5660
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/member.js
6171
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/member.js
5661
6172
  var member = strictObject({
5662
6173
  id,
5663
6174
  name: nullable(text),
@@ -5680,7 +6191,7 @@ var member = strictObject({
5680
6191
  check: optional(record(string(), unknown()))
5681
6192
  });
5682
6193
 
5683
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/chat.js
6194
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/chat.js
5684
6195
  var setting = optional(nullable(boolean()));
5685
6196
  var chat = strictObject({
5686
6197
  ref: reference,
@@ -5721,7 +6232,7 @@ var chat = strictObject({
5721
6232
  members: optional(array(member))
5722
6233
  });
5723
6234
 
5724
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/list-results.js
6235
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/list-results.js
5725
6236
  var botProfile = strictObject({
5726
6237
  name: text,
5727
6238
  token: text,
@@ -5752,6 +6263,10 @@ var scheduledJob = strictObject({
5752
6263
  name: text,
5753
6264
  kind: picklist(["command", "agent"]),
5754
6265
  when: text,
6266
+ /** When a finished run shows a desktop notice: `always`, `failures` or `never`; the default is shown, not left out. */
6267
+ notify: optional(picklist(["always", "failures", "never"])),
6268
+ /** Where a run's result is sent after it: `telegram-bot:<profile>/<chat>` or `email:<profile>/<address>`. */
6269
+ deliver_to: optional(array(text)),
5755
6270
  last: nullable(strictObject({
5756
6271
  at: time,
5757
6272
  exit_code: number(),
@@ -5760,8 +6275,29 @@ var scheduledJob = strictObject({
5760
6275
  reason: optional(text),
5761
6276
  error_code: optional(text),
5762
6277
  failing_since: optional(time),
5763
- failures: optional(number())
5764
- }))
6278
+ failures: optional(number()),
6279
+ cost_usd: optional(number()),
6280
+ /** The last time a run did not start, and why: the day's cost cap, or too little new mail. */
6281
+ skipped: optional(strictObject({
6282
+ at: time,
6283
+ why: text,
6284
+ /** A dotted id for `why`, so a client can translate it: `cost.day-cap`, `mail.none-new`, `mail.below-threshold`. */
6285
+ reason: optional(pipe(text, regex(/^[a-z][a-z0-9-]*(\.[a-z][a-z0-9-]*)+$/)))
6286
+ })),
6287
+ /** How the run's result went along each route; `reason` a dotted id, `error` the sending CLI's code and reason id. */
6288
+ deliveries: optional(array(strictObject({
6289
+ to: text,
6290
+ ok: boolean(),
6291
+ reason: optional(pipe(text, regex(/^[a-z][a-z0-9-]*(\.[a-z][a-z0-9-]*)+$/))),
6292
+ error: optional(text)
6293
+ })))
6294
+ })),
6295
+ /** Agent schedules: what today's runs cost, in US dollars. */
6296
+ spent_today_usd: optional(number()),
6297
+ /** Agent schedules: the cap on one run (`--max-cost`), null when none. */
6298
+ max_cost_usd: optional(nullable(number())),
6299
+ /** Agent schedules: the daily cap in force, the schedule's `--max-cost-per-day` or the config's; 0 for none. */
6300
+ max_cost_per_day_usd: optional(number())
5765
6301
  });
5766
6302
  var botTemplate = strictObject({
5767
6303
  name: nullable(text),
@@ -5789,7 +6325,7 @@ var stickerInventory = strictObject({
5789
6325
  url: optional(nullable(text))
5790
6326
  });
5791
6327
 
5792
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/batch-result.js
6328
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/batch-result.js
5793
6329
  var actionableError = objectWithRest({
5794
6330
  code: text,
5795
6331
  message: text,
@@ -5806,7 +6342,7 @@ var batchResult = strictObject({
5806
6342
  max_error_percent: count
5807
6343
  });
5808
6344
 
5809
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/conversation-preparation.js
6345
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/conversation-preparation.js
5810
6346
  var conversationBuild = strictObject({
5811
6347
  chat: id,
5812
6348
  messages: count,
@@ -5831,15 +6367,15 @@ var catchUpPreparation = strictObject({
5831
6367
  prepared: optional(conversationPreparation)
5832
6368
  });
5833
6369
 
5834
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
6370
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
5835
6371
  import { spawn } from "node:child_process";
5836
6372
  import { randomBytes } from "node:crypto";
5837
- import { closeSync, existsSync as existsSync5, mkdirSync as mkdirSync2, openSync, readdirSync as readdirSync2, readFileSync as readFileSync4, realpathSync, rmSync as rmSync3 } from "node:fs";
5838
- import { dirname as dirname2, join as join4 } from "node:path";
6373
+ import { closeSync, existsSync as existsSync6, mkdirSync as mkdirSync2, openSync, readdirSync as readdirSync3, readFileSync as readFileSync5, realpathSync, rmSync as rmSync3 } from "node:fs";
6374
+ import { dirname as dirname2, join as join5 } from "node:path";
5839
6375
 
5840
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/background/checkpoints.js
5841
- import { existsSync as existsSync4, readFileSync as readFileSync3, rmSync as rmSync2 } from "node:fs";
5842
- import { join as join3 } from "node:path";
6376
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/background/checkpoints.js
6377
+ import { existsSync as existsSync5, readFileSync as readFileSync4, rmSync as rmSync2 } from "node:fs";
6378
+ import { join as join4 } from "node:path";
5843
6379
  var PART = /^[\w@+-][\w.@+-]{0,99}$/;
5844
6380
  var checkpointPath = /* @__PURE__ */ __name((state, profile, job2) => {
5845
6381
  for (const part of [profile, job2]) {
@@ -5847,11 +6383,11 @@ var checkpointPath = /* @__PURE__ */ __name((state, profile, job2) => {
5847
6383
  throw new CliError("validation_error", `a checkpoint is named by letters, digits, ".", "@" and "-" \u2014 not "${part}"`);
5848
6384
  }
5849
6385
  }
5850
- return join3(state, "checkpoints", profile, `${job2}.json`);
6386
+ return join4(state, "checkpoints", profile, `${job2}.json`);
5851
6387
  }, "checkpointPath");
5852
6388
  var readCheckpoint = /* @__PURE__ */ __name((path2) => {
5853
6389
  try {
5854
- return existsSync4(path2) ? JSON.parse(readFileSync3(path2, "utf8")) : void 0;
6390
+ return existsSync5(path2) ? JSON.parse(readFileSync4(path2, "utf8")) : void 0;
5855
6391
  } catch {
5856
6392
  return void 0;
5857
6393
  }
@@ -5877,7 +6413,7 @@ var progressOf = /* @__PURE__ */ __name((input) => {
5877
6413
  };
5878
6414
  }, "progressOf");
5879
6415
 
5880
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/runs/record-log.js
6416
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/runs/record-log.js
5881
6417
  var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) => {
5882
6418
  const run = currentRun();
5883
6419
  const trace = traceId ?? run.traceId;
@@ -5891,7 +6427,7 @@ var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) =
5891
6427
  }));
5892
6428
  }, "recordLogFor");
5893
6429
 
5894
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
6430
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
5895
6431
  var JOB_STATES = ["running", "done", "partial", "failed", "cancelled", "died"];
5896
6432
  var spawnDetached = /* @__PURE__ */ __name((argv, env, log) => {
5897
6433
  const out = openSync(log, "a", 384);
@@ -5907,23 +6443,23 @@ var spawnDetached = /* @__PURE__ */ __name((argv, env, log) => {
5907
6443
  closeSync(out);
5908
6444
  }
5909
6445
  }, "spawnDetached");
5910
- var jobsDir = /* @__PURE__ */ __name((app, env) => join4(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "backfill"), "jobsDir");
5911
- var jobPath = /* @__PURE__ */ __name((dir, id6) => join4(dir, `${id6}.json`), "jobPath");
6446
+ var jobsDir = /* @__PURE__ */ __name((app, env) => join5(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "backfill"), "jobsDir");
6447
+ var jobPath = /* @__PURE__ */ __name((dir, id6) => join5(dir, `${id6}.json`), "jobPath");
5912
6448
  var saveJob = /* @__PURE__ */ __name((dir, job2) => {
5913
6449
  mkdirSync2(dir, { recursive: true, mode: 448 });
5914
6450
  writeSecurely(jobPath(dir, job2.id), `${JSON.stringify(job2, null, 2)}
5915
6451
  `, 384);
5916
6452
  }, "saveJob");
5917
6453
  var readJob = /* @__PURE__ */ __name((dir, id6) => {
5918
- if (!/^[\w-]+$/.test(id6) || !existsSync5(jobPath(dir, id6)))
6454
+ if (!/^[\w-]+$/.test(id6) || !existsSync6(jobPath(dir, id6)))
5919
6455
  return void 0;
5920
6456
  try {
5921
- return JSON.parse(readFileSync4(jobPath(dir, id6), "utf8"));
6457
+ return JSON.parse(readFileSync5(jobPath(dir, id6), "utf8"));
5922
6458
  } catch {
5923
6459
  return void 0;
5924
6460
  }
5925
6461
  }, "readJob");
5926
- var recordsPath = /* @__PURE__ */ __name((dir, id6) => join4(dir, `${id6}.jsonl`), "recordsPath");
6462
+ var recordsPath = /* @__PURE__ */ __name((dir, id6) => join5(dir, `${id6}.jsonl`), "recordsPath");
5927
6463
  var tracedJob = /* @__PURE__ */ __name((env) => {
5928
6464
  const trace = childTrace();
5929
6465
  return { env: { ...env, TRACEPARENT: trace.traceparent }, traceId: trace.traceId };
@@ -5941,11 +6477,11 @@ var finishJob = /* @__PURE__ */ __name((app, dir, id6, change) => {
5941
6477
  const job2 = readJob(dir, id6);
5942
6478
  if (!job2)
5943
6479
  return;
5944
- const outcome2 = stateOf(job2);
6480
+ const outcome4 = stateOf(job2);
5945
6481
  recordLogFor(recordsPath(dir, id6), app, job2.traceId ? { traceId: job2.traceId } : {})[job2.error ? "error" : "info"]({
5946
6482
  event: "job.exit",
5947
6483
  job: id6,
5948
- outcome: outcome2,
6484
+ outcome: outcome4,
5949
6485
  ...job2.error ? { errorCode: job2.error.code } : {}
5950
6486
  });
5951
6487
  }, "finishJob");
@@ -5960,7 +6496,7 @@ var removeJob = /* @__PURE__ */ __name((dir, job2) => {
5960
6496
  if (dirname2(job2.log) === dir)
5961
6497
  rmSync3(job2.log, { force: true });
5962
6498
  }, "removeJob");
5963
- var listJobs = /* @__PURE__ */ __name((dir) => existsSync5(dir) ? readdirSync2(dir).filter((name) => name.endsWith(".json")).flatMap((name) => readJob(dir, name.slice(0, -".json".length)) ?? []).sort((a, b) => b.startedAt.localeCompare(a.startedAt)) : [], "listJobs");
6499
+ var listJobs = /* @__PURE__ */ __name((dir) => existsSync6(dir) ? readdirSync3(dir).filter((name) => name.endsWith(".json")).flatMap((name) => readJob(dir, name.slice(0, -".json".length)) ?? []).sort((a, b) => b.startedAt.localeCompare(a.startedAt)) : [], "listJobs");
5964
6500
  var jobDetails = /* @__PURE__ */ __name((job2) => ({
5965
6501
  job: job2.id,
5966
6502
  profile: job2.profile,
@@ -6026,7 +6562,7 @@ var startArchiveJob = /* @__PURE__ */ __name((app, env, profile, input, spawnJob
6026
6562
  const startedAt = (/* @__PURE__ */ new Date()).toISOString();
6027
6563
  const id6 = `${startedAt.replace(/[-:]/g, "").slice(0, 15)}-${randomBytes(3).toString("hex")}`;
6028
6564
  mkdirSync2(dir, { recursive: true, mode: 448 });
6029
- const log = join4(dir, `${id6}.log`);
6565
+ const log = join5(dir, `${id6}.log`);
6030
6566
  const job2 = {
6031
6567
  id: id6,
6032
6568
  chat: input.chat,
@@ -6046,7 +6582,7 @@ var startArchiveJob = /* @__PURE__ */ __name((app, env, profile, input, spawnJob
6046
6582
  return { job: id6, pid, chat: input.chat, log };
6047
6583
  }, "startArchiveJob");
6048
6584
 
6049
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/job.js
6585
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/job.js
6050
6586
  var problem = strictObject({ code: text, message: text });
6051
6587
  var job = strictObject({
6052
6588
  id,
@@ -6069,7 +6605,7 @@ var job = strictObject({
6069
6605
  error: optional(problem)
6070
6606
  });
6071
6607
 
6072
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/message.js
6608
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/message.js
6073
6609
  var quoted = strictObject({
6074
6610
  id,
6075
6611
  sender_id: nullable(id),
@@ -6171,12 +6707,24 @@ var message = strictObject({
6171
6707
  read: nullable(boolean()),
6172
6708
  flagged: nullable(boolean()),
6173
6709
  /** How much the sender's mail looks like spam, a scam or a robot (memo's score), and why; absent when unscored. */
6174
- sender_score: optional(strictObject({ score: number(), signals: array(text), demoted: optional(literal(true)) }))
6710
+ sender_score: optional(strictObject({ score: number(), signals: array(text), demoted: optional(literal(true)) })),
6711
+ /** Mail `review`: filed in the mailbox of mail sent to many. */
6712
+ bulk: optional(boolean()),
6713
+ /** Mail `review`: its List-Id, `null` when it has none. */
6714
+ list_id: optional(nullable(text)),
6715
+ /** Mail `review`: the mail rule that decided how it is stored, by its id in `rules list`; `null` when none. */
6716
+ rule_id: optional(nullable(number())),
6717
+ /** Mail `review`: the evidence fingerprint a finding cites this email by. */
6718
+ fingerprint: optional(pipe(text, regex(/^[a-f0-9]{64}$/))),
6719
+ /** Mail `review`: no earlier stored email, in any account, came from this address. */
6720
+ new_sender: optional(boolean()),
6721
+ /** Mail `review`: how many identities the sender's person has; 1 is this address alone. */
6722
+ sender_identities: optional(number())
6175
6723
  })),
6176
6724
  provider_metadata: providerMetadata
6177
6725
  });
6178
6726
 
6179
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/extraction-report.js
6727
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/extraction-report.js
6180
6728
  var extractionItem = strictObject({
6181
6729
  ref: reference,
6182
6730
  attachment: count,
@@ -6209,7 +6757,7 @@ var extractionReport = strictObject({
6209
6757
  cursor: optional(text)
6210
6758
  });
6211
6759
 
6212
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/message-transfer.js
6760
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/message-transfer.js
6213
6761
  var savedMessageFile = strictObject({
6214
6762
  kind: text,
6215
6763
  path: text,
@@ -6296,7 +6844,7 @@ var messageSyncAll = strictObject({
6296
6844
  var messageSyncStarted = strictObject({ job: id, pid: count, chat: text, log: text });
6297
6845
  var messageSync = union([messageSyncEstimate, messageSyncChat, messageSyncAll, messageSyncStarted]);
6298
6846
 
6299
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/store-records.js
6847
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/store-records.js
6300
6848
  var range = strictObject({ from: number(), to: number() });
6301
6849
  var storeChatStatus = strictObject({
6302
6850
  chat_id: id,
@@ -6308,6 +6856,13 @@ var storeChatStatus = strictObject({
6308
6856
  last_stored_at: nullable(time),
6309
6857
  held: array(range)
6310
6858
  });
6859
+ var chatCoverage = strictObject({
6860
+ chats: count,
6861
+ fetched: count,
6862
+ partial: count,
6863
+ never: count,
6864
+ oldest_message_at: nullable(time)
6865
+ });
6311
6866
  var storeClear = strictObject({
6312
6867
  cleared: boolean(),
6313
6868
  dry_run: optional(literal(true)),
@@ -6387,7 +6942,7 @@ var storeJobRetry = union([
6387
6942
  ]);
6388
6943
  var storeJobClear = strictObject({ cleared: array(id) });
6389
6944
 
6390
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/account.js
6945
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/account.js
6391
6946
  var account = strictObject({
6392
6947
  provider: text,
6393
6948
  id,
@@ -6397,7 +6952,7 @@ var account = strictObject({
6397
6952
  scope: optional(picklist(["personal", "work"]))
6398
6953
  });
6399
6954
 
6400
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/account-session.js
6955
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/account-session.js
6401
6956
  var accountSession = strictObject({
6402
6957
  current: boolean(),
6403
6958
  client: nullable(text),
@@ -6407,7 +6962,7 @@ var accountSession = strictObject({
6407
6962
  created_at: optional(nullable(time))
6408
6963
  });
6409
6964
 
6410
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/account-change.js
6965
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/account-change.js
6411
6966
  var accountChange = strictObject({ operation_id: id, account: omit(account, ["provider", "scope"]) });
6412
6967
  var endedAccountSessions = strictObject({ operation_id: id, sessions: array(accountSession) });
6413
6968
  var audience = picklist(["everyone", "contacts", "nobody"]);
@@ -6425,17 +6980,19 @@ var accountPrivacy = strictObject({
6425
6980
  });
6426
6981
  var accountPrivacyChange = strictObject({ operation_id: id, privacy: accountPrivacy });
6427
6982
 
6428
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/account-profile.js
6983
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/account-profile.js
6429
6984
  var accountProfile = strictObject({
6430
6985
  profile: id,
6431
6986
  current: boolean(),
6432
6987
  account: nullable(id),
6433
6988
  name: nullable(text),
6434
6989
  /** False for a profile with no session on this computer; absent when the messenger does not say. */
6435
- signed_in: optional(boolean())
6990
+ signed_in: optional(boolean()),
6991
+ /** True when the same name is a bot profile too (`<tool> <profile> bot …`); absent otherwise. */
6992
+ bot: optional(literal(true))
6436
6993
  });
6437
6994
 
6438
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/counter-reading.js
6995
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/counter-reading.js
6439
6996
  var milliseconds = pipe(number(), minValue(0));
6440
6997
  var counterReading = strictObject({
6441
6998
  counter: picklist(["views", "reactions", "comments"]),
@@ -6447,7 +7004,7 @@ var counterReading = strictObject({
6447
7004
  });
6448
7005
  var selection = record(string(), unknown());
6449
7006
 
6450
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/admin-report.js
7007
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/admin-report.js
6451
7008
  var adminRow = strictObject({
6452
7009
  ref: reference,
6453
7010
  /** What `stats * evidence` takes: a person id, a stay or a message locator. */
@@ -6500,11 +7057,11 @@ var adminReport = strictObject({
6500
7057
  rows: array(adminRow)
6501
7058
  });
6502
7059
 
6503
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/analysis-consent.js
7060
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/analysis-consent.js
6504
7061
  var analysisConsent = strictObject({ chat: id, provider: text, at: time });
6505
7062
  var analysisConsentRevocation = strictObject({ revoked: boolean() });
6506
7063
 
6507
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/attachment-results.js
7064
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/attachment-results.js
6508
7065
  var fingerprint = pipe(text, regex(/^[a-f0-9]{64}$/));
6509
7066
  var attachmentBytes = strictObject({
6510
7067
  ref: reference,
@@ -6532,7 +7089,7 @@ var attachmentTextChange = strictObject({
6532
7089
  replaced: nullable(picklist(["extracted", "agent"]))
6533
7090
  });
6534
7091
 
6535
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/chart.js
7092
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/chart.js
6536
7093
  var chart = strictObject({
6537
7094
  version: literal(1),
6538
7095
  kind: picklist(["bar", "line", "grouped-bar"]),
@@ -6547,7 +7104,7 @@ var chart = strictObject({
6547
7104
  file: optional(strictObject({ path: text, format: picklist(["svg", "png"]), width: count, height: count }))
6548
7105
  });
6549
7106
 
6550
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/folder.js
7107
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/folder.js
6551
7108
  var named = strictObject({
6552
7109
  id,
6553
7110
  title: nullable(text),
@@ -6570,7 +7127,7 @@ var folder = strictObject({
6570
7127
  excluded_chats: optional(array(named))
6571
7128
  });
6572
7129
 
6573
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/invite-link.js
7130
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/invite-link.js
6574
7131
  var inviteLink = strictObject({
6575
7132
  link: text,
6576
7133
  /** Who joins by it asks first, and an admin lets them in. */
@@ -6586,7 +7143,7 @@ var inviteLink = strictObject({
6586
7143
  joined_count: optional(count)
6587
7144
  });
6588
7145
 
6589
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/chat-admin.js
7146
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/chat-admin.js
6590
7147
  var operated = { operation_id: id, chat_id: id };
6591
7148
  var group = strictObject({
6592
7149
  ...omit(chat, ["ref", "provider", "account", "invite_link", "members"]).entries,
@@ -6666,7 +7223,7 @@ var chatFolderOrder = strictObject({
6666
7223
  folders: array(strictObject({ id, title: text }))
6667
7224
  });
6668
7225
 
6669
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/chat-change.js
7226
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/chat-change.js
6670
7227
  var operated2 = { operation_id: id, chat_id: id };
6671
7228
  var chatRemoval = strictObject(operated2);
6672
7229
  var chatMuting = strictObject({
@@ -6677,7 +7234,7 @@ var chatArchive = strictObject({ ...operated2, archived: boolean() });
6677
7234
  var chatPin = strictObject({ ...operated2, pinned: boolean() });
6678
7235
  var chatUnread = strictObject({ ...operated2, unread: literal(true) });
6679
7236
 
6680
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/chat-event.js
7237
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/chat-event.js
6681
7238
  var who = strictObject({ id: nullable(id), name: nullable(text), username: optional(nullable(text)) });
6682
7239
  var chatEvent = strictObject({
6683
7240
  chat_id: id,
@@ -6694,7 +7251,7 @@ var chatEvent = strictObject({
6694
7251
  before: optional(strictObject({ name: nullable(text), username: nullable(text) }))
6695
7252
  });
6696
7253
 
6697
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/chat-metadata.js
7254
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/chat-metadata.js
6698
7255
  var chatMetadata = strictObject({
6699
7256
  chat_id: id,
6700
7257
  title: nullable(text),
@@ -6709,7 +7266,7 @@ var chatMetadataRefresh = strictObject({
6709
7266
  has_more: boolean()
6710
7267
  });
6711
7268
 
6712
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/chat-moderation.js
7269
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/chat-moderation.js
6713
7270
  var action = picklist(["report", "delete", "remove"]);
6714
7271
  var level = picklist(["deny", "readonly", "ask", "allow"]);
6715
7272
  var chatRules = strictObject({
@@ -6746,7 +7303,7 @@ var chatModeration = strictObject({
6746
7303
  }))
6747
7304
  });
6748
7305
 
6749
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/chat-stats.js
7306
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/chat-stats.js
6750
7307
  var optionalCount = optional(count);
6751
7308
  var minutes = nullable(number());
6752
7309
  var chatStats = strictObject({
@@ -6797,18 +7354,30 @@ var chatStats = strictObject({
6797
7354
  })),
6798
7355
  series: optional(array(strictObject({ key: text, messages: count, senders: count, joined: optionalCount, left: optionalCount })))
6799
7356
  });
7357
+ var ms = nullable(pipe(number(), minValue(0)));
6800
7358
  var taskStats = strictObject({
6801
7359
  /** Open tasks across every row. */
6802
7360
  open: count,
7361
+ created: count,
7362
+ closed: count,
7363
+ median_close_ms: ms,
7364
+ mean_open_age_ms: ms,
6803
7365
  rows: array(strictObject({
6804
- chat: reference,
7366
+ /** Rows of `--by chat` only. */
7367
+ chat: optional(reference),
7368
+ /** The chat reference, `meeting:<account>/<meeting>` or `project:<id>`. */
7369
+ key: text,
7370
+ name: nullable(text),
6805
7371
  open: count,
7372
+ created: count,
7373
+ closed: count,
6806
7374
  oldest_open_at: nullable(time),
6807
- median_close_ms: nullable(pipe(number(), minValue(0)))
7375
+ median_close_ms: ms,
7376
+ mean_open_age_ms: ms
6808
7377
  }))
6809
7378
  });
6810
7379
 
6811
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/chat-tracking.js
7380
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/chat-tracking.js
6812
7381
  var memberCount = strictObject({
6813
7382
  day: pipe(text, isoDate()),
6814
7383
  participants: nullable(count),
@@ -6831,7 +7400,7 @@ var chatTracking = strictObject({
6831
7400
  tracked: boolean()
6832
7401
  });
6833
7402
 
6834
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/contact-read.js
7403
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/contact-read.js
6835
7404
  var contactLookup = strictObject({ id, name: nullable(text), username: nullable(text) });
6836
7405
  var contactSync = strictObject({ added: count, changed: count, known: count });
6837
7406
  var profileFields = {
@@ -6869,7 +7438,7 @@ var profileFields = {
6869
7438
  }))
6870
7439
  };
6871
7440
 
6872
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/contact.js
7441
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/contact.js
6873
7442
  var contact = strictObject({
6874
7443
  ref: reference,
6875
7444
  id,
@@ -6900,7 +7469,7 @@ var contact = strictObject({
6900
7469
  notes: optional(array(strictObject({ id, text, revision: count, created_at: time, updated_at: time })))
6901
7470
  });
6902
7471
 
6903
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/contact-activity.js
7472
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/contact-activity.js
6904
7473
  var linkedIdentity = strictObject({
6905
7474
  provider: text,
6906
7475
  id,
@@ -6941,7 +7510,7 @@ var contactCheck = strictObject({
6941
7510
  checked_at: time
6942
7511
  });
6943
7512
 
6944
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/contact-context.js
7513
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/contact-context.js
6945
7514
  var contextPerson = strictObject({ ...linkedPerson.entries, provider: text, id });
6946
7515
  var contextMessage = strictObject({
6947
7516
  locator: reference,
@@ -7139,7 +7708,7 @@ var contactPreparation = strictObject({
7139
7708
  })
7140
7709
  });
7141
7710
 
7142
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/contact-note.js
7711
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/contact-note.js
7143
7712
  var contactNote = strictObject({
7144
7713
  id,
7145
7714
  /** The contact, as a `contact:` reference. */
@@ -7151,13 +7720,13 @@ var contactNote = strictObject({
7151
7720
  updated_at: time
7152
7721
  });
7153
7722
 
7154
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/contact-write.js
7723
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/contact-write.js
7155
7724
  var addressBookPerson = strictObject({ id, name: nullable(text), username: nullable(text) });
7156
7725
  var contactUpdate = strictObject({ operation_id: id, person: addressBookPerson });
7157
7726
  var contactStateChange = strictObject({ operation_id: id, person_id: id });
7158
7727
  var contactImport = strictObject({ operation_id: id, sent: count, recognised: array(addressBookPerson) });
7159
7728
 
7160
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/conversation-results.js
7729
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/conversation-results.js
7161
7730
  var conversationDetails = union([
7162
7731
  strictObject({ ...conversation.entries, messages: array(message) }),
7163
7732
  message
@@ -7247,7 +7816,7 @@ var conversationHit = strictObject({
7247
7816
  stale: boolean()
7248
7817
  });
7249
7818
 
7250
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/counters.js
7819
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/counters.js
7251
7820
  var counters = strictObject({
7252
7821
  cutoff: time,
7253
7822
  max_age_ms: milliseconds,
@@ -7277,7 +7846,94 @@ var counterRefresh = strictObject({
7277
7846
  complete: optional(boolean())
7278
7847
  });
7279
7848
 
7280
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/document.js
7849
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/deal.js
7850
+ var nullableText = nullable(text);
7851
+ var party = strictObject({ ref: reference, name: nullableText, owner: boolean() });
7852
+ var outcome = picklist(["open", "won", "lost"]);
7853
+ var crmAccount = nullable(strictObject({ provider: text, account: text }));
7854
+ var day = nullable(pipe(string(), regex(/^\d{4}-\d{2}-\d{2}$/)));
7855
+ var deal = strictObject({
7856
+ id,
7857
+ ref: reference,
7858
+ kind: picklist(["deal", "lead"]),
7859
+ title: text,
7860
+ /** One line with the stage, amount and status. */
7861
+ summary: text,
7862
+ pipeline: reference,
7863
+ pipeline_name: text,
7864
+ stage: text,
7865
+ status: outcome,
7866
+ organization: nullable(party),
7867
+ currency: nullableText,
7868
+ amount: nullableText,
7869
+ close_date: day,
7870
+ closed_date: day,
7871
+ closed_reason: nullableText,
7872
+ rank: nullable(number()),
7873
+ /** A lead's deal, once it became one. */
7874
+ deal: nullable(reference),
7875
+ /** The CRM account it is a copy from; `null` for the owner's own. */
7876
+ account: crmAccount,
7877
+ external_id: nullableText,
7878
+ /** A CRM copy's assignee, the identity `<account>/user/<id>`. */
7879
+ assignee: nullableText,
7880
+ /** A CRM copy's own fields by code; a list field's value is its option's label, `option_id` its id. */
7881
+ provider_metadata: record(string(), strictObject({
7882
+ label: nullable(string()),
7883
+ value: unknown(),
7884
+ option_id: optional(union([string(), array(string())]))
7885
+ })),
7886
+ people: array(strictObject({ ...party.entries, role: picklist(["owner", "contact", "decision-maker"]) })),
7887
+ author: strictObject({
7888
+ type: picklist(["person", "bot"]),
7889
+ id,
7890
+ name: nullableText,
7891
+ kind: nullable(picklist(["agent", "rule"]))
7892
+ }),
7893
+ model: nullableText,
7894
+ source: text,
7895
+ reason: nullableText,
7896
+ evidence: array(reference),
7897
+ project: nullable(reference),
7898
+ project_name: nullableText,
7899
+ created_at: time,
7900
+ updated_at: time,
7901
+ untrusted
7902
+ });
7903
+ var lead = deal;
7904
+ var pipelineStage = strictObject({
7905
+ name: text,
7906
+ position: count,
7907
+ outcome,
7908
+ external_id: nullableText,
7909
+ /** Open deals or leads in it now. */
7910
+ open: count,
7911
+ /** With a funnel: rows that got this far, and the share of them that reached the next stage. */
7912
+ reached: optional(count),
7913
+ conversion: optional(nullable(number()))
7914
+ });
7915
+ var pipeline = strictObject({
7916
+ id,
7917
+ ref: reference,
7918
+ name: text,
7919
+ kind: picklist(["deal", "lead"]),
7920
+ account: crmAccount,
7921
+ external_id: nullableText,
7922
+ stages: array(pipelineStage),
7923
+ created_at: time,
7924
+ totals: optional(strictObject({ items: count, open: count, won: count, lost: count, win_rate: nullable(number()) })),
7925
+ since: optional(day),
7926
+ untrusted
7927
+ });
7928
+ var stage = strictObject({
7929
+ ...pipelineStage.entries,
7930
+ pipeline: reference,
7931
+ pipeline_name: text,
7932
+ kind: picklist(["deal", "lead"]),
7933
+ untrusted
7934
+ });
7935
+
7936
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/document.js
7281
7937
  var document = strictObject({
7282
7938
  ref: reference,
7283
7939
  id,
@@ -7292,7 +7948,7 @@ var document = strictObject({
7292
7948
  owners: optional(array(text))
7293
7949
  });
7294
7950
 
7295
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/document-link.js
7951
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/document-link.js
7296
7952
  var documentLink = strictObject({
7297
7953
  ref: reference,
7298
7954
  url: text,
@@ -7303,7 +7959,7 @@ var documentLink = strictObject({
7303
7959
  sender: strictObject({ id: nullable(id), name: nullable(text) })
7304
7960
  });
7305
7961
 
7306
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/evidence.js
7962
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/evidence.js
7307
7963
  var evidenceMessage = pick(message, ["ref", "chat_title", "timestamp", "sender_name", "text"]);
7308
7964
  var contribution = strictObject({
7309
7965
  message: evidenceMessage,
@@ -7333,17 +7989,7 @@ var retentionStay = strictObject({
7333
7989
  });
7334
7990
  var evidence = union([contribution, retentionStay]);
7335
7991
 
7336
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/fact.js
7337
- var payment = strictObject({
7338
- amount: text,
7339
- currency: text,
7340
- direction: picklist(PAYMENT_DIRECTIONS),
7341
- counterparty: nullable(reference),
7342
- counterparty_name: nullable(text),
7343
- due_at: nullable(text),
7344
- state: picklist(PAYMENT_STATES),
7345
- item: nullable(text)
7346
- });
7992
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/fact.js
7347
7993
  var fact = strictObject({
7348
7994
  ref: reference,
7349
7995
  id,
@@ -7367,17 +8013,15 @@ var fact = strictObject({
7367
8013
  /** Who recorded it: the owner, or an agent whose fact waits as proposed. */
7368
8014
  origin: picklist(["owner", "agent"]),
7369
8015
  evidence: array(reference),
7370
- /** A `payment` fact's fields. */
7371
- payment: optional(nullable(payment)),
7372
8016
  /** With `--sources`: each piece of evidence read back. */
7373
8017
  sources: optional(array(evidenceSource)),
7374
8018
  created_at: time,
7375
8019
  updated_at: time
7376
8020
  });
7377
8021
 
7378
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/hit.js
8022
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/hit.js
7379
8023
  var hit = strictObject({
7380
- kind: picklist(["message", "mail", "note", "document", "event", "meeting"]),
8024
+ kind: picklist(["message", "mail", "note", "document", "event", "meeting", "deal", "lead"]),
7381
8025
  ref: reference,
7382
8026
  provider: text,
7383
8027
  url: optional(text),
@@ -7413,7 +8057,7 @@ var hit = strictObject({
7413
8057
  untrusted
7414
8058
  });
7415
8059
 
7416
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/identity.js
8060
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/identity.js
7417
8061
  var identity = strictObject({
7418
8062
  ref: reference,
7419
8063
  provider: text,
@@ -7426,7 +8070,7 @@ var identity = strictObject({
7426
8070
  person: optional(nullable(reference))
7427
8071
  });
7428
8072
 
7429
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/image-embedding.js
8073
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/image-embedding.js
7430
8074
  var imageEmbedding = strictObject({
7431
8075
  model: text,
7432
8076
  embedded: count,
@@ -7435,7 +8079,7 @@ var imageEmbedding = strictObject({
7435
8079
  more: boolean()
7436
8080
  });
7437
8081
 
7438
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/join-request.js
8082
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/join-request.js
7439
8083
  var joinRequest = strictObject({
7440
8084
  person_id: id,
7441
8085
  name: nullable(text),
@@ -7446,7 +8090,7 @@ var joinRequest = strictObject({
7446
8090
  about: optional(text)
7447
8091
  });
7448
8092
 
7449
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/poll-vote.js
8093
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/poll-vote.js
7450
8094
  var pollVote = strictObject({
7451
8095
  person_id: id,
7452
8096
  name: nullable(text),
@@ -7456,7 +8100,7 @@ var pollVote = strictObject({
7456
8100
  voted_at: time
7457
8101
  });
7458
8102
 
7459
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/listener.js
8103
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/listener.js
7460
8104
  var reactions = unwrap(unwrap(message.entries.reactions));
7461
8105
  var observation = strictObject({
7462
8106
  value: pipe(number(), minValue(0)),
@@ -7498,7 +8142,166 @@ var serveSummary = strictObject({
7498
8142
  tasks: optional(strictObject({ added: count, closed: count, review: count }))
7499
8143
  });
7500
8144
 
7501
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/media-archive.js
8145
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/mail-counts.js
8146
+ var mailCounts = strictObject({
8147
+ by: picklist(["day", "week", "sender"]),
8148
+ received: count,
8149
+ sent: count,
8150
+ rows: array(strictObject({
8151
+ /** `YYYY-MM-DD`, or the sender's address. */
8152
+ key: text,
8153
+ name: nullable(text),
8154
+ received: count,
8155
+ /** Always 0 by sender: the owner sends that mail. */
8156
+ sent: count
8157
+ }))
8158
+ });
8159
+
8160
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/mail-findings.js
8161
+ var evidence2 = strictObject({ reference, fingerprint: text });
8162
+ var base = { id, evidence: array(evidence2) };
8163
+ var finding = variant("kind", [
8164
+ strictObject({
8165
+ ...base,
8166
+ kind: literal("task"),
8167
+ project: optional(reference),
8168
+ type: picklist(WORK_TASK_TYPES),
8169
+ title: text,
8170
+ reason: text,
8171
+ commitment: picklist(["explicit", "inferred"]),
8172
+ due_at: optional(time),
8173
+ due_evidence: optional(array(reference)),
8174
+ assignee: optional(reference),
8175
+ assignee_evidence: optional(array(reference)),
8176
+ /** `<service>:<id>` in the outside service the mail came from, such as `avito:4512345678`. */
8177
+ external_id: optional(text),
8178
+ /** The http or https page the task is about, such as the conversation the mail links to. */
8179
+ source_url: optional(text)
8180
+ }),
8181
+ strictObject({
8182
+ ...base,
8183
+ kind: literal("fact"),
8184
+ project: optional(reference),
8185
+ subject: optional(reference),
8186
+ type: picklist(FACT_TYPES),
8187
+ statement: text,
8188
+ /** Every new finding gives one; a batch staged before reason was needed on every kind has none. */
8189
+ reason: optional(text)
8190
+ }),
8191
+ strictObject({
8192
+ ...base,
8193
+ kind: literal("task_update"),
8194
+ task: reference,
8195
+ change: picklist(["close", "due", "detail"]),
8196
+ due_at: optional(time),
8197
+ detail: optional(text),
8198
+ reason: text
8199
+ }),
8200
+ strictObject({
8201
+ ...base,
8202
+ kind: literal("memory"),
8203
+ memory_kind: picklist(MEMORY_KINDS),
8204
+ scope: picklist(MEMORY_SCOPES),
8205
+ body: text,
8206
+ subject: optional(reference),
8207
+ project: optional(reference),
8208
+ reason: optional(text)
8209
+ }),
8210
+ strictObject({ ...base, kind: literal("link"), from: reference, to: reference, reason: text }),
8211
+ strictObject({ ...base, kind: literal("new_contact"), address: text, name: text, reason: optional(text) }),
8212
+ strictObject({
8213
+ ...base,
8214
+ kind: literal("invoice"),
8215
+ direction: picklist(INVOICE_DIRECTIONS),
8216
+ counterparty: optional(reference),
8217
+ /** A counterparty the store may not hold yet; the owner's accept finds its organization or makes one. */
8218
+ counterparty_name: optional(text),
8219
+ counterparty_email: optional(text),
8220
+ currency: text,
8221
+ lines: array(strictObject({
8222
+ description: text,
8223
+ quantity: optional(text),
8224
+ unit_price: optional(text),
8225
+ amount: optional(text)
8226
+ })),
8227
+ total: optional(text),
8228
+ number: optional(text),
8229
+ issue_date: optional(text),
8230
+ due_date: optional(text),
8231
+ project: optional(reference),
8232
+ reason: text
8233
+ }),
8234
+ strictObject({
8235
+ ...base,
8236
+ kind: literal("payment"),
8237
+ direction: picklist(MONEY_DIRECTIONS),
8238
+ payer: optional(reference),
8239
+ payer_name: optional(text),
8240
+ payer_email: optional(text),
8241
+ payee: optional(reference),
8242
+ payee_name: optional(text),
8243
+ payee_email: optional(text),
8244
+ amount: text,
8245
+ currency: text,
8246
+ date: text,
8247
+ reference: optional(text),
8248
+ allocations: optional(array(strictObject({ invoice: reference, amount: text }))),
8249
+ project: optional(reference),
8250
+ reason: text
8251
+ }),
8252
+ strictObject({
8253
+ ...base,
8254
+ kind: literal("order"),
8255
+ purpose: picklist(ORDER_PURPOSES),
8256
+ customer: optional(reference),
8257
+ customer_name: optional(text),
8258
+ customer_email: optional(text),
8259
+ supplier: optional(reference),
8260
+ supplier_name: text,
8261
+ number: optional(text),
8262
+ total: optional(text),
8263
+ currency: optional(text),
8264
+ status: optional(picklist(ORDER_STATUSES)),
8265
+ order_date: optional(text),
8266
+ fulfilled_date: optional(text),
8267
+ invoice: optional(reference),
8268
+ payment: optional(reference),
8269
+ project: optional(reference),
8270
+ /** The order's page at the shop, http or https. */
8271
+ source_url: optional(text),
8272
+ reason: text
8273
+ }),
8274
+ strictObject({
8275
+ ...base,
8276
+ kind: literal("order_update"),
8277
+ supplier_name: text,
8278
+ number: text,
8279
+ status: picklist(ORDER_STATUSES),
8280
+ date: optional(text),
8281
+ reason: text
8282
+ })
8283
+ ]);
8284
+ var outcome2 = strictObject({
8285
+ id,
8286
+ fingerprint: text,
8287
+ status: picklist(["accepted", "rejected"]),
8288
+ reference: nullable(reference),
8289
+ reused: boolean()
8290
+ });
8291
+ var mailFindings = strictObject({
8292
+ id,
8293
+ account: strictObject({ provider: text, account: text }),
8294
+ input: strictObject({ schema_version: literal(1), key: text, extractor: text, findings: array(finding) }),
8295
+ fingerprint: text,
8296
+ status: picklist(["proposed", "reviewed"]),
8297
+ author,
8298
+ decided_by: nullable(strictObject({ type: picklist(["person", "bot"]), id })),
8299
+ decided_at: nullable(time),
8300
+ previous: array(outcome2),
8301
+ receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome2) }))
8302
+ });
8303
+
8304
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/media-archive.js
7502
8305
  var mediaArchive = strictObject({
7503
8306
  directory: text,
7504
8307
  chats: count,
@@ -7530,7 +8333,7 @@ var mediaArchiveTimer = union([
7530
8333
  strictObject({ ...timer, action: picklist(["install", "start", "stop", "uninstall"]) })
7531
8334
  ]);
7532
8335
 
7533
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation-parts.js
8336
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation-parts.js
7534
8337
  var preparationId = pipe(string(), minLength(1));
7535
8338
  var preparationCount = pipe(number(), integer(), minValue(0));
7536
8339
  var preparationTime = nullable(isoTime);
@@ -7622,7 +8425,7 @@ var preparationMeeting = strictObject({
7622
8425
  updated_at: isoTime
7623
8426
  });
7624
8427
 
7625
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/meeting-evidence.js
8428
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/meeting-evidence.js
7626
8429
  var meetingEvidence = preparationEvidence;
7627
8430
  var meetingPersonContext = strictObject({
7628
8431
  person: strictObject({ uid: string(), name: nullable(string()) }),
@@ -7644,13 +8447,13 @@ var meetingPersonContext = strictObject({
7644
8447
  })
7645
8448
  });
7646
8449
 
7647
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/meeting-findings.js
7648
- var evidence2 = strictObject({ reference, fingerprint: text });
7649
- var base = { id, project: reference, evidence: array(evidence2) };
7650
- var finding = variant("kind", [
7651
- strictObject({ ...base, kind: literal("fact"), type: picklist(FACT_TYPES), statement: text }),
8450
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/meeting-findings.js
8451
+ var evidence3 = strictObject({ reference, fingerprint: text });
8452
+ var base2 = { id, project: reference, evidence: array(evidence3) };
8453
+ var finding2 = variant("kind", [
8454
+ strictObject({ ...base2, kind: literal("fact"), type: picklist(FACT_TYPES), statement: text }),
7652
8455
  strictObject({
7653
- ...base,
8456
+ ...base2,
7654
8457
  kind: literal("task"),
7655
8458
  type: picklist(WORK_TASK_TYPES),
7656
8459
  title: text,
@@ -7662,7 +8465,7 @@ var finding = variant("kind", [
7662
8465
  assignee_evidence: optional(array(reference))
7663
8466
  })
7664
8467
  ]);
7665
- var outcome = strictObject({
8468
+ var outcome3 = strictObject({
7666
8469
  id,
7667
8470
  fingerprint: text,
7668
8471
  status: picklist(["accepted", "rejected"]),
@@ -7672,17 +8475,17 @@ var outcome = strictObject({
7672
8475
  var meetingFindings = strictObject({
7673
8476
  id,
7674
8477
  account: strictObject({ provider: text, account: text }),
7675
- input: strictObject({ schema_version: literal(1), key: text, extractor: text, findings: array(finding) }),
8478
+ input: strictObject({ schema_version: literal(1), key: text, extractor: text, findings: array(finding2) }),
7676
8479
  fingerprint: text,
7677
8480
  status: picklist(["proposed", "reviewed"]),
7678
8481
  author,
7679
8482
  decided_by: nullable(strictObject({ type: picklist(["person", "bot"]), id })),
7680
8483
  decided_at: nullable(time),
7681
- previous: array(outcome),
7682
- receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome) }))
8484
+ previous: array(outcome3),
8485
+ receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome3) }))
7683
8486
  });
7684
8487
 
7685
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/meeting-communications.js
8488
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/meeting-communications.js
7686
8489
  var communicationCoverage = strictObject({
7687
8490
  read_usage: strictObject({ reads: preparationCount, charged_bytes: preparationCount, reserved_bytes: preparationCount, remaining_bytes: preparationCount }),
7688
8491
  query: string(),
@@ -7727,7 +8530,7 @@ var preparationCommunications = strictObject({
7727
8530
  }))
7728
8531
  });
7729
8532
 
7730
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation.js
8533
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation.js
7731
8534
  var meetingPreparation = strictObject({
7732
8535
  communications: optional(preparationCommunications),
7733
8536
  schema_version: literal(1),
@@ -7840,7 +8643,7 @@ var meetingPreparation = strictObject({
7840
8643
  })
7841
8644
  });
7842
8645
 
7843
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/meeting-project-candidates.js
8646
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/meeting-project-candidates.js
7844
8647
  var count4 = pipe(number(), integer(), minValue(0));
7845
8648
  var id3 = pipe(string(), minLength(1));
7846
8649
  var text3 = string();
@@ -7904,7 +8707,7 @@ var meetingProjectCandidates = strictObject({
7904
8707
  })
7905
8708
  });
7906
8709
 
7907
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/meeting-series-inventory.js
8710
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/meeting-series-inventory.js
7908
8711
  var count5 = pipe(number(), integer(), minValue(0));
7909
8712
  var id4 = pipe(string(), minLength(1), maxLength(1e3));
7910
8713
  var meetingSeriesInventory = strictObject({
@@ -7934,7 +8737,7 @@ var meetingSeriesInventory = strictObject({
7934
8737
  })
7935
8738
  });
7936
8739
 
7937
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/meeting-task-proposal.js
8740
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/meeting-task-proposal.js
7938
8741
  var text4 = string();
7939
8742
  var id5 = pipe(number(), integer(), minValue(1));
7940
8743
  var revision = picklist(["current", "superseded"]);
@@ -7951,7 +8754,7 @@ var meetingTaskProposal = strictObject({
7951
8754
  persistence: literal("proposal-only")
7952
8755
  });
7953
8756
 
7954
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/memory.js
8757
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/memory.js
7955
8758
  var memory = strictObject({
7956
8759
  ref: reference,
7957
8760
  id,
@@ -7978,7 +8781,7 @@ var memory = strictObject({
7978
8781
  updated_at: time
7979
8782
  });
7980
8783
 
7981
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/mention.js
8784
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/mention.js
7982
8785
  var kind = picklist(["phone", "email", "url", "document", "person-name", "place"]);
7983
8786
  var status = picklist(["found", "linked", "dismissed"]);
7984
8787
  var mention = strictObject({
@@ -8021,13 +8824,13 @@ var mentionRebuild = strictObject({
8021
8824
  mentions: count
8022
8825
  });
8023
8826
 
8024
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/message-change.js
8827
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/message-change.js
8025
8828
  var operated3 = { operation_id: id, chat_id: id };
8026
8829
  var messagePin = strictObject({ ...operated3, message_id: id, pinned: boolean() });
8027
8830
  var messageStar = strictObject({ ...operated3, message_id: id, starred: boolean() });
8028
8831
  var messageDeletion = strictObject({ ...operated3, deleted: array(id), for_everyone: boolean() });
8029
8832
 
8030
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/message-read.js
8833
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/message-read.js
8031
8834
  var messageTranscript = strictObject({
8032
8835
  message_id: id,
8033
8836
  text,
@@ -8085,7 +8888,7 @@ var evidencePacket = strictObject({
8085
8888
  }))
8086
8889
  });
8087
8890
 
8088
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/message-context.js
8891
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/message-context.js
8089
8892
  var messageThread = strictObject({
8090
8893
  ref: reference,
8091
8894
  chat: id,
@@ -8102,7 +8905,7 @@ var messageThread = strictObject({
8102
8905
  });
8103
8906
  var messageContext = union([message, messageThread]);
8104
8907
 
8105
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/message-counts.js
8908
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/message-counts.js
8106
8909
  var messageCounts = strictObject({
8107
8910
  by: picklist(["chat", "sender", "day", "hour"]),
8108
8911
  total: count,
@@ -8115,7 +8918,7 @@ var messageCounts = strictObject({
8115
8918
  }))
8116
8919
  });
8117
8920
 
8118
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/message-link.js
8921
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/message-link.js
8119
8922
  var messageLink = strictObject({
8120
8923
  ref: reference,
8121
8924
  url: nullable(text),
@@ -8132,7 +8935,7 @@ var messageLink = strictObject({
8132
8935
  })))
8133
8936
  });
8134
8937
 
8135
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/message-write.js
8938
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/message-write.js
8136
8939
  var messageWrite = strictObject({
8137
8940
  operation_id: id,
8138
8941
  message,
@@ -8147,7 +8950,7 @@ var draftWrite = strictObject({
8147
8950
  });
8148
8951
  var messageSend = union([messageWrite, draftWrite]);
8149
8952
 
8150
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/model.js
8953
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/model.js
8151
8954
  var model2 = strictObject({
8152
8955
  id,
8153
8956
  kind: picklist(["audio", "text", "image", "reranker"]),
@@ -8164,7 +8967,7 @@ var model2 = strictObject({
8164
8967
  path: text
8165
8968
  });
8166
8969
 
8167
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/model-key.js
8970
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/model-key.js
8168
8971
  var source = picklist(["environment", "keyring", "file"]);
8169
8972
  var modelKey = strictObject({
8170
8973
  provider: text,
@@ -8174,7 +8977,7 @@ var modelKey = strictObject({
8174
8977
  var storedModelKey = strictObject({ ...omit(modelKey, ["removed"]).entries, stored: source });
8175
8978
  var removedModelKey = strictObject({ ...omit(modelKey, ["stored"]).entries, removed: array(source) });
8176
8979
 
8177
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/official-stats.js
8980
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/official-stats.js
8178
8981
  var versus = strictObject({ current: number(), previous: number() });
8179
8982
  var person = { person_ref: reference, name: nullable(text) };
8180
8983
  var graph = strictObject({
@@ -8208,14 +9011,14 @@ var officialStats = strictObject({
8208
9011
  graphs: record(string(), union([graph, strictObject({ error: text })]))
8209
9012
  });
8210
9013
 
8211
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/person.js
9014
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/person.js
8212
9015
  var person2 = strictObject({
8213
9016
  ref: reference,
8214
9017
  name: nullable(text),
8215
9018
  identities: optional(array(identity))
8216
9019
  });
8217
9020
 
8218
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/poll.js
9021
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/poll.js
8219
9022
  var poll = strictObject({
8220
9023
  chat_id: id,
8221
9024
  message_id: id,
@@ -8231,11 +9034,11 @@ var poll = strictObject({
8231
9034
  });
8232
9035
  var pollChange = strictObject({ operation_id: id, poll });
8233
9036
 
8234
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/private-contact.js
9037
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/private-contact.js
8235
9038
  var contactAlias = strictObject({ person_id: id, alias: nullable(text) });
8236
9039
  var contactNoteRemoval = strictObject({ id, person_id: id, removed: boolean() });
8237
9040
 
8238
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/ranking.js
9041
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/ranking.js
8239
9042
  var figures = record(string(), number());
8240
9043
  var freshness = picklist(["fresh", "stale", "partial", "unknown"]);
8241
9044
  var rankingRow = strictObject({
@@ -8282,7 +9085,7 @@ var ranking = strictObject({
8282
9085
  rows: array(rankingRow)
8283
9086
  });
8284
9087
 
8285
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/reaction.js
9088
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/reaction.js
8286
9089
  var reaction = strictObject({
8287
9090
  person: strictObject({ id, name: nullable(text), username: nullable(text) }),
8288
9091
  /** The emoji, or `custom:<id>` for a custom one. */
@@ -8290,7 +9093,7 @@ var reaction = strictObject({
8290
9093
  reacted_at: time
8291
9094
  });
8292
9095
 
8293
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/reaction-change.js
9096
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/reaction-change.js
8294
9097
  var reactionChange = strictObject({
8295
9098
  operation_id: id,
8296
9099
  chat_id: id,
@@ -8298,7 +9101,7 @@ var reactionChange = strictObject({
8298
9101
  reaction: nullable(text)
8299
9102
  });
8300
9103
 
8301
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/recipient.js
9104
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/recipient.js
8302
9105
  var recipient = strictObject({ id, title: nullable(text), partner_id: optional(id), added_at: time });
8303
9106
  var recipientAdded = strictObject({ id, title: nullable(text), added: boolean() });
8304
9107
  var recipientRemoved = strictObject({ id, title: nullable(text), removed: boolean() });
@@ -8309,7 +9112,7 @@ var recipientChange = strictObject({
8309
9112
  ...partial(recipientOff).entries
8310
9113
  });
8311
9114
 
8312
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/recorded-run.js
9115
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/recorded-run.js
8313
9116
  var events = array(record(string(), unknown()));
8314
9117
  var recordedRun = strictObject({
8315
9118
  run_id: id,
@@ -8381,7 +9184,7 @@ var runHit = strictObject({
8381
9184
  });
8382
9185
  var runLocation = strictObject({ path: text });
8383
9186
 
8384
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/relationship.js
9187
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/relationship.js
8385
9188
  var relationship = strictObject({
8386
9189
  id,
8387
9190
  from: reference,
@@ -8398,7 +9201,24 @@ var relationship = strictObject({
8398
9201
  created_at: time
8399
9202
  });
8400
9203
 
8401
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/retention.js
9204
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/reply-stats.js
9205
+ var milliseconds2 = nullable(pipe(number(), minValue(0)));
9206
+ var figures2 = { replies: count, median_ms: milliseconds2, p90_ms: milliseconds2, mean_ms: milliseconds2 };
9207
+ var responseTimes = strictObject({
9208
+ who: picklist(["me", "others"]),
9209
+ ...figures2,
9210
+ buckets: strictObject({ under_5m: count, under_1h: count, under_1d: count, over_1d: count }),
9211
+ /** One row per calendar day of the reply; empty with `--by total`. */
9212
+ rows: array(strictObject({ key: text, ...figures2 }))
9213
+ });
9214
+ var waitingChats = strictObject({
9215
+ chats: count,
9216
+ messages: count,
9217
+ oldest_at: nullable(time),
9218
+ by_kind: strictObject({ private: count, group: count })
9219
+ });
9220
+
9221
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/retention.js
8402
9222
  var retentionCohort = strictObject({
8403
9223
  /** The first day of the joining day or week. */
8404
9224
  cohort: text,
@@ -8446,7 +9266,7 @@ var retention = strictObject({
8446
9266
  rows: array(retentionCohort)
8447
9267
  });
8448
9268
 
8449
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/saved-search.js
9269
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/saved-search.js
8450
9270
  var savedSearch = strictObject({
8451
9271
  id,
8452
9272
  /** `null` for a run in the history. */
@@ -8463,7 +9283,7 @@ var savedSearch = strictObject({
8463
9283
  });
8464
9284
  var searchHistoryClear = strictObject({ cleared: count });
8465
9285
 
8466
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/send-attempt.js
9286
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/send-attempt.js
8467
9287
  var sendAttempt = strictObject({
8468
9288
  at: time,
8469
9289
  profile: text,
@@ -8491,7 +9311,7 @@ var sendAttempt = strictObject({
8491
9311
  error_code: optional(text)
8492
9312
  });
8493
9313
 
8494
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/store-maintenance.js
9314
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/store-maintenance.js
8495
9315
  var absent = strictObject({ path: text, exists: literal(false) });
8496
9316
  var schema = strictObject({ version: count, min_compatible: count, writable: boolean(), speaks: count });
8497
9317
  var infoSchema = strictObject({
@@ -8646,12 +9466,25 @@ var storeBackup = strictObject({
8646
9466
  encrypted: optional(literal(true))
8647
9467
  });
8648
9468
  var storeDecrypt = strictObject({ path: text, from: text, bytes: count });
8649
- var storeRestore = strictObject({
8650
- path: text,
8651
- restored_from: text,
8652
- kept_at: nullable(text),
8653
- schema: count
8654
- });
9469
+ var storeRestore = union([
9470
+ strictObject({
9471
+ path: text,
9472
+ restored_from: text,
9473
+ kept_at: nullable(text),
9474
+ schema: count
9475
+ }),
9476
+ /** From a rollback copy: its tables put back in place, the store returned to `schema` from `was`. */
9477
+ strictObject({
9478
+ path: text,
9479
+ restored_from: text,
9480
+ rolled_back: literal(true),
9481
+ schema: count,
9482
+ was: count,
9483
+ tables: array(strictObject({ table: text, rows: count })),
9484
+ rebuilt: array(text),
9485
+ foreign_key_violations: count
9486
+ })
9487
+ ]);
8655
9488
  var storeReset = union([
8656
9489
  strictObject({ ...absent.entries, reset: literal(false) }),
8657
9490
  strictObject({
@@ -8699,7 +9532,7 @@ var storeRepair = union([
8699
9532
  ]);
8700
9533
  var storeCopyRemoval = strictObject({ path: text, deleted: strictObject({ name: text, rows: count }) });
8701
9534
 
8702
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/store-table.js
9535
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/store-table.js
8703
9536
  var TABLE_KINDS = ["data", "search_index", "search_index_part", "internal"];
8704
9537
  var storeTable = strictObject({
8705
9538
  name: text,
@@ -8708,7 +9541,7 @@ var storeTable = strictObject({
8708
9541
  bytes: optional(nullable(count))
8709
9542
  });
8710
9543
 
8711
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/tag-change.js
9544
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/tag-change.js
8712
9545
  var tagTarget = variant("type", [
8713
9546
  strictObject({ type: literal("chat"), chat_id: id }),
8714
9547
  strictObject({ type: literal("contact"), person_id: id }),
@@ -8739,7 +9572,7 @@ var automaticTags = strictObject({
8739
9572
  dry_run: boolean()
8740
9573
  });
8741
9574
 
8742
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/task-pair.js
9575
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/task-pair.js
8743
9576
  var side = strictObject({ ref: reference, key: text, title: text, status: text });
8744
9577
  var taskPair = strictObject({
8745
9578
  task: nullable(side),
@@ -8762,7 +9595,7 @@ var taskPair = strictObject({
8762
9595
  created_at: time
8763
9596
  });
8764
9597
 
8765
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/task-results.js
9598
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/task-results.js
8766
9599
  var nullableTime = nullable(time);
8767
9600
  var link = strictObject({
8768
9601
  id,
@@ -8797,6 +9630,10 @@ var taskCard = strictObject({
8797
9630
  revision: number(),
8798
9631
  parent: nullable(reference),
8799
9632
  source: nullable(text),
9633
+ /** `<service>:<id>`, its id in an outside service, such as `avito:4512345678`. */
9634
+ external_id: nullable(text),
9635
+ /** The http or https page it is about, such as an Avito ad. */
9636
+ source_url: nullable(text),
8800
9637
  due_at: nullableTime,
8801
9638
  next_check_at: nullableTime,
8802
9639
  closed_at: nullableTime,
@@ -8892,8 +9729,47 @@ var taskScan = strictObject({
8892
9729
  held_chats: optional(count),
8893
9730
  tasks: array(strictObject({ source: text, kind: picklist(TASK_KINDS), category: nullable(text) }))
8894
9731
  });
9732
+ var taskAnalysisMark = strictObject({
9733
+ chat: text,
9734
+ from: time,
9735
+ through: time,
9736
+ through_id: text,
9737
+ by: text,
9738
+ checked_at: time,
9739
+ checked_through: time,
9740
+ at: time
9741
+ });
9742
+ var taskAnalysisMarkMoved = strictObject({ ...taskAnalysisMark.entries, moved: boolean() });
9743
+ var taskAnalysis = strictObject({
9744
+ chat: text,
9745
+ title: nullable(text),
9746
+ kind: text,
9747
+ newest_at: nullableTime,
9748
+ mark: nullable(taskAnalysisMark),
9749
+ waiting: count,
9750
+ late: count,
9751
+ untrusted
9752
+ });
9753
+ var taskReview = strictObject({
9754
+ chat: text,
9755
+ from: time,
9756
+ mark: nullable(taskAnalysisMark),
9757
+ late: count,
9758
+ has_more: boolean(),
9759
+ through: nullable(reference),
9760
+ messages: array(strictObject({
9761
+ ref: reference,
9762
+ at: time,
9763
+ sender: nullable(text),
9764
+ outgoing: boolean(),
9765
+ reply_to: nullable(text),
9766
+ text
9767
+ })),
9768
+ open_tasks: array(strictObject({ key: nullable(text), kind: text, title: nullable(text), source: nullable(text) })),
9769
+ untrusted
9770
+ });
8895
9771
 
8896
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/topic.js
9772
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/topic.js
8897
9773
  var topic = strictObject({
8898
9774
  id,
8899
9775
  title: text,
@@ -8907,9 +9783,13 @@ var topic = strictObject({
8907
9783
  untrusted
8908
9784
  });
8909
9785
 
8910
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/entities/index.js
9786
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/index.js
8911
9787
  var ENTITIES = {
8912
9788
  sync_progress: progress,
9789
+ deal,
9790
+ lead,
9791
+ pipeline,
9792
+ stage,
8913
9793
  ...MEETING_RESULT_ENTITIES,
8914
9794
  message,
8915
9795
  message_context: messageContext,
@@ -8937,18 +9817,22 @@ var ENTITIES = {
8937
9817
  attachments: optional(array(hitFile)),
8938
9818
  untrusted
8939
9819
  }),
8940
- "message.summary": pick(message, [
8941
- "ref",
8942
- "chat_id",
8943
- "chat_title",
8944
- "timestamp",
8945
- "sender_name",
8946
- "sender_is_me",
8947
- "outgoing",
8948
- "text",
8949
- "transcript",
8950
- "attachments"
8951
- ]),
9820
+ "message.summary": strictObject({
9821
+ ...pick(message, [
9822
+ "ref",
9823
+ "chat_id",
9824
+ "chat_title",
9825
+ "timestamp",
9826
+ "sender_name",
9827
+ "sender_is_me",
9828
+ "outgoing",
9829
+ "text",
9830
+ "transcript",
9831
+ "attachments",
9832
+ "email"
9833
+ ]).entries,
9834
+ untrusted
9835
+ }),
8952
9836
  message_link: messageLink,
8953
9837
  message_write: messageWrite,
8954
9838
  message_send: messageSend,
@@ -9045,6 +9929,9 @@ var ENTITIES = {
9045
9929
  task_unmerge: taskUnmerge,
9046
9930
  task_categories: taskCategories,
9047
9931
  task_scan: taskScan,
9932
+ task_analysis: taskAnalysis,
9933
+ task_analysis_mark: taskAnalysisMarkMoved,
9934
+ task_review: taskReview,
9048
9935
  fact,
9049
9936
  memory,
9050
9937
  meeting,
@@ -9055,6 +9942,7 @@ var ENTITIES = {
9055
9942
  meeting_project_evidence: meetingProjectEvidence,
9056
9943
  meeting_preparation: meetingPreparation,
9057
9944
  meeting_findings: meetingFindings,
9945
+ mail_findings: mailFindings,
9058
9946
  meeting_transcript: meetingTranscript,
9059
9947
  meeting_summary: meetingSummary,
9060
9948
  meeting_evidence: meetingEvidence,
@@ -9063,6 +9951,7 @@ var ENTITIES = {
9063
9951
  meeting_review: meetingReview,
9064
9952
  meeting_link: meetingLink,
9065
9953
  meeting_stats: meetingStats,
9954
+ meeting_counts: meetingCounts,
9066
9955
  meeting_speaker: meetingSpeaker,
9067
9956
  meeting_participants: meetingParticipants,
9068
9957
  meeting_passage: meetingPassage,
@@ -9100,6 +9989,7 @@ var ENTITIES = {
9100
9989
  job,
9101
9990
  store_chat_status: storeChatStatus,
9102
9991
  store_clear: storeClear,
9992
+ chat_coverage: chatCoverage,
9103
9993
  store_export: storeExport,
9104
9994
  store_gap_plan: storeGapPlan,
9105
9995
  store_gap_repair: storeGapRepair,
@@ -9155,6 +10045,9 @@ var ENTITIES = {
9155
10045
  topic,
9156
10046
  folder,
9157
10047
  message_counts: messageCounts,
10048
+ response_times: responseTimes,
10049
+ waiting_chats: waitingChats,
10050
+ mail_counts: mailCounts,
9158
10051
  ranking,
9159
10052
  admin_report: adminReport,
9160
10053
  analysis_consent: analysisConsent,
@@ -9176,7 +10069,7 @@ var entityDefinitions = /* @__PURE__ */ __name(() => Object.fromEntries(Object.e
9176
10069
  return [name, definition];
9177
10070
  })), "entityDefinitions");
9178
10071
 
9179
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/cli/answer-entity.js
10072
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/cli/answer-entity.js
9180
10073
  var schemas = /* @__PURE__ */ new WeakMap();
9181
10074
  var answerEntity = /* @__PURE__ */ __name((command, name, schema2, options = {}) => {
9182
10075
  if (Object.hasOwn(ENTITIES, name))
@@ -9210,29 +10103,20 @@ var answerRow = /* @__PURE__ */ __name((command) => {
9210
10103
  return own && metaOf(command).output?.entity === own.name ? own.row : void 0;
9211
10104
  }, "answerRow");
9212
10105
 
9213
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/cli/project-status-rows.js
9214
- var where = [{ field: "ref" }, { field: ["chat_title", "chat"] }];
10106
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/cli/project-status-rows.js
10107
+ var where = [{ field: "ref" }];
9215
10108
  var who2 = { field: ["who.owner", "who.name"], tag: "you" };
10109
+ var ON_CHAT_ROW = /* @__PURE__ */ new Set(["reply-next", "coverage"]);
9216
10110
  var STATUS_SIGNAL_ROWS = {
9217
- "status.last-message": { columns: [...where, { field: "at", as: "time" }, who2] },
9218
- "status.reply-next": {
9219
- columns: [
9220
- ...where,
9221
- { field: "data.next" },
9222
- { field: "data.addressed.name" },
9223
- { field: "data.waiting_since", as: "day" },
9224
- { field: "data.overdue", tag: "overdue" }
9225
- ]
9226
- },
9227
10111
  "status.questions": {
9228
- columns: [...where, { field: "at", as: "day" }, { field: "data.side" }, who2],
10112
+ columns: [...where, { field: "at", as: "day" }, who2],
9229
10113
  text: ["data.excerpt"]
9230
10114
  },
9231
10115
  "status.promises": {
9232
10116
  columns: [
9233
10117
  ...where,
9234
10118
  { field: "at", as: "day" },
9235
- { field: "data.source" },
10119
+ { field: "basis" },
9236
10120
  { field: "data.side" },
9237
10121
  { field: "data.due", as: "day" },
9238
10122
  { field: "data.status" }
@@ -9259,21 +10143,10 @@ var STATUS_SIGNAL_ROWS = {
9259
10143
  columns: [
9260
10144
  ...where,
9261
10145
  { field: "data.query" },
9262
- { field: "data.theirs_last", as: "day" },
9263
10146
  { field: "data.yours_last", as: "day" },
9264
10147
  { field: "data.silent_since", as: "day" }
9265
10148
  ]
9266
10149
  },
9267
- "status.coverage": {
9268
- columns: [
9269
- { field: "chat" },
9270
- { field: "chat_title" },
9271
- { field: "data.state" },
9272
- { field: "data.held.messages", as: "count", tag: "held" },
9273
- { field: "data.held.oldest_at", as: "day" },
9274
- { field: "sync_command" }
9275
- ]
9276
- },
9277
10150
  "status.children": {
9278
10151
  columns: [
9279
10152
  { field: "data.child" },
@@ -9290,10 +10163,14 @@ var STATUS_ROWS = {
9290
10163
  columns: [
9291
10164
  { field: "chat" },
9292
10165
  { field: "title" },
9293
- { field: "kind" },
9294
10166
  { field: "role" },
9295
- { field: "attention", as: "count", tag: "attention" },
9296
- { field: "why" }
10167
+ { field: "next", prefix: "next" },
10168
+ { field: "addressed.name" },
10169
+ { field: "waiting_since", as: "day" },
10170
+ { field: "overdue", tag: "overdue" },
10171
+ { field: "held.messages", as: "count", tag: "held" },
10172
+ { field: "unlisted.questions", as: "count", tag: "questions unlisted" },
10173
+ { field: "unlisted.promises", as: "count", tag: "promises unlisted" }
9297
10174
  ]
9298
10175
  },
9299
10176
  "status.money": {
@@ -9304,12 +10181,21 @@ var STATUS_ROWS = {
9304
10181
  { field: "rows", as: "count", tag: "rows" }
9305
10182
  ]
9306
10183
  },
9307
- "status.signal": { columns: [{ field: "id" }, { field: "version" }] },
9308
- "status.out-of-scope": { columns: [{ field: "chat" }, { field: "reason" }, { field: "purpose" }] },
10184
+ "status.out-of-scope": {
10185
+ columns: [
10186
+ { field: "chat" },
10187
+ { field: "reason" },
10188
+ { field: "purpose" },
10189
+ { field: "messages", as: "count", tag: "messages" },
10190
+ { field: "first_at", as: "day" },
10191
+ { field: "last_at", as: "day" },
10192
+ { field: "read_command" }
10193
+ ]
10194
+ },
9309
10195
  "status.failed": { columns: [{ field: "signal" }], text: ["why"] }
9310
10196
  };
9311
10197
 
9312
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/cli/compact.js
10198
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/cli/compact.js
9313
10199
  var TEXT_CHARS = 400;
9314
10200
  var sender = { field: ["sender_is_me", "sender_name"], tag: "me" };
9315
10201
  var messageRow = {
@@ -9324,6 +10210,60 @@ var messageRow = {
9324
10210
  ],
9325
10211
  text: ["text", "transcript", "excerpt"]
9326
10212
  };
10213
+ var linkedChatColumns = [
10214
+ { field: "ref" },
10215
+ { field: "title" },
10216
+ { field: "purpose" },
10217
+ { field: "proposed", prefix: "proposed" }
10218
+ ];
10219
+ var EVIDENCE_ROWS = {
10220
+ project_evidence: {
10221
+ columns: [],
10222
+ sections: {
10223
+ items: "evidence_item",
10224
+ linked_chats: "linked_chat",
10225
+ left_out: "linked_chat.left_out",
10226
+ members: "evidence_member"
10227
+ },
10228
+ whole: ["checkpoint"]
10229
+ },
10230
+ evidence_item: {
10231
+ columns: [
10232
+ { field: "ref" },
10233
+ { field: "at", as: "day" },
10234
+ { field: "context" },
10235
+ { field: "proposed", prefix: "proposed" }
10236
+ ],
10237
+ text: ["text"]
10238
+ },
10239
+ linked_chat: {
10240
+ columns: [
10241
+ ...linkedChatColumns,
10242
+ { field: "state" },
10243
+ { field: "items", as: "count", tag: "items" },
10244
+ { field: "capped", tag: "capped" },
10245
+ { field: "score", prefix: "score" },
10246
+ { field: "sync_command" }
10247
+ ]
10248
+ },
10249
+ "linked_chat.left_out": {
10250
+ columns: [
10251
+ ...linkedChatColumns,
10252
+ { field: "messages", as: "count", tag: "messages" },
10253
+ { field: "first_at", as: "day" },
10254
+ { field: "last_at", as: "day" },
10255
+ { field: "read_command" }
10256
+ ]
10257
+ },
10258
+ evidence_member: {
10259
+ columns: [
10260
+ { field: "person" },
10261
+ { field: "state" },
10262
+ { field: "proposed", prefix: "proposed" },
10263
+ { field: "score", prefix: "score" }
10264
+ ]
10265
+ }
10266
+ };
9327
10267
  var SHARED_ROWS = {
9328
10268
  message: messageRow,
9329
10269
  "message.summary": messageRow,
@@ -9346,7 +10286,8 @@ var SHARED_ROWS = {
9346
10286
  { field: "last_message_at", as: "time" }
9347
10287
  ]
9348
10288
  },
9349
- ...STATUS_ROWS
10289
+ ...STATUS_ROWS,
10290
+ ...EVIDENCE_ROWS
9350
10291
  };
9351
10292
  var GENERIC_ROW = {
9352
10293
  columns: [
@@ -9407,10 +10348,10 @@ var clockFor = /* @__PURE__ */ __name((zone) => {
9407
10348
  return {
9408
10349
  zone,
9409
10350
  parts: /* @__PURE__ */ __name((iso) => {
9410
- const ms = Date.parse(iso);
9411
- if (Number.isNaN(ms))
10351
+ const ms2 = Date.parse(iso);
10352
+ if (Number.isNaN(ms2))
9412
10353
  return void 0;
9413
- const part = Object.fromEntries(format.formatToParts(ms).map(({ type, value }) => [type, value]));
10354
+ const part = Object.fromEntries(format.formatToParts(ms2).map(({ type, value }) => [type, value]));
9414
10355
  return { date: `${part.year}-${part.month}-${part.day}`, time: `${part.hour}:${part.minute}` };
9415
10356
  }, "parts")
9416
10357
  };
@@ -9433,13 +10374,14 @@ var cellOf = /* @__PURE__ */ __name((item, column, clock) => {
9433
10374
  switch (column.as) {
9434
10375
  case "time":
9435
10376
  case "day": {
9436
- if (typeof value !== "string")
10377
+ const iso = typeof value === "number" && Number.isFinite(value) ? new Date(value).toISOString() : value;
10378
+ if (typeof iso !== "string")
9437
10379
  return void 0;
9438
- const parts = clock.parts(value);
10380
+ const parts = clock.parts(iso);
9439
10381
  if (!parts)
9440
- return { text: clean(value) };
9441
- const day = parts.date.slice(5);
9442
- return { text: column.as === "day" ? day : `${day} ${parts.time}`, date: parts.date };
10382
+ return { text: clean(iso) };
10383
+ const day2 = parts.date.slice(5);
10384
+ return column.as === "day" ? { text: day2, date: parts.date } : { text: `${day2} ${parts.time}`, date: parts.date, time: parts.time };
9443
10385
  }
9444
10386
  case "count":
9445
10387
  return typeof value === "number" && value !== 0 ? { text: column.tag ? `${value} ${column.tag}` : String(value) } : void 0;
@@ -9459,7 +10401,7 @@ var cellOf = /* @__PURE__ */ __name((item, column, clock) => {
9459
10401
  if (value === true)
9460
10402
  return column.tag ? { text: column.tag } : void 0;
9461
10403
  if (typeof value === "string" || typeof value === "number")
9462
- return { text: clean(String(value)) };
10404
+ return { text: clean(column.prefix ? `${column.prefix} ${value}` : String(value)) };
9463
10405
  return void 0;
9464
10406
  }
9465
10407
  }, "cellOf");
@@ -9487,6 +10429,17 @@ var sameEverywhere = /* @__PURE__ */ __name((rows2, index) => {
9487
10429
  const first2 = rows2[0]?.cells[index]?.text;
9488
10430
  return first2 !== void 0 && rows2.every(({ cells }) => cells[index]?.text === first2);
9489
10431
  }, "sameEverywhere");
10432
+ var ordered = /* @__PURE__ */ __name((dates) => dates.every((one, at2) => at2 === 0 || one >= dates[at2 - 1]) || dates.every((one, at2) => at2 === 0 || one <= dates[at2 - 1]), "ordered");
10433
+ var dayColumn = /* @__PURE__ */ __name((rows2, shape, hoisted) => {
10434
+ const index = shape.columns.findIndex((column, at2) => column.as === "time" && !hoisted[at2]);
10435
+ if (index < 0)
10436
+ return -1;
10437
+ const dates = rows2.map(({ cells }) => cells[index]?.date);
10438
+ if (dates.some((one) => one === void 0))
10439
+ return -1;
10440
+ const days = dates;
10441
+ return ordered(days) && new Set(days).size * 3 <= days.length ? index : -1;
10442
+ }, "dayColumn");
9490
10443
  var rowsOfItems = /* @__PURE__ */ __name((items, shape, clock, chars) => {
9491
10444
  const dates = [];
9492
10445
  const rows2 = items.map((item) => {
@@ -9509,44 +10462,57 @@ var rowsOfItems = /* @__PURE__ */ __name((items, shape, clock, chars) => {
9509
10462
  return [];
9510
10463
  return [`${sourceOf(item, column) ?? fieldsOfColumn(column.field)[0]}: ${rows2[0]?.cells[index]?.text}`];
9511
10464
  });
9512
- const lines = rows2.map(({ cells, text: text5, item }) => {
9513
- const parts = cells.map((cell, index) => hoisted[index] ? void 0 : cell?.text);
10465
+ const byDay = dayColumn(rows2, shape, hoisted);
10466
+ let shownDay;
10467
+ const lines = rows2.flatMap(({ cells, text: text5, item }) => {
10468
+ const parts = cells.map((cell2, index) => hoisted[index] ? void 0 : cell2?.text);
10469
+ const dayLine = [];
10470
+ const cell = cells[byDay];
10471
+ if (byDay >= 0 && cell?.date && cell.time) {
10472
+ if (cell.date !== shownDay)
10473
+ dayLine.push(`# ${cell.date}`);
10474
+ shownDay = cell.date;
10475
+ parts[byDay] = cell.time;
10476
+ }
9514
10477
  const shortened = prefix ? clean(prefix) : void 0;
9515
10478
  if (shortened && parts[0]?.startsWith(shortened))
9516
10479
  parts[0] = `#${parts[0].slice(shortened.length)}`;
9517
10480
  const shown = [...parts, text5].filter((part) => part !== void 0 && part !== "");
9518
- return guarded(shown.length ? shown.join(" \xB7 ") : item ? blockLine(item, chars) : "");
10481
+ return [...dayLine, guarded(shown.length ? shown.join(" \xB7 ") : item ? blockLine(item, chars) : "")];
9519
10482
  });
9520
- const when = span(dates);
9521
- const header = [...prefix ? [`ref: ${clean(prefix)}<id>`] : [], ...named2, ...when ? [when, clock.zone] : []];
9522
- return { header, lines };
10483
+ const header = [...prefix ? [`ref: ${clean(prefix)}<id>`] : [], ...named2];
10484
+ return { header, lines, dates };
9523
10485
  }, "rowsOfItems");
10486
+ var spanOf = /* @__PURE__ */ __name((dates, clock) => {
10487
+ const when = span(dates);
10488
+ return when ? [when, clock.zone] : [];
10489
+ }, "spanOf");
9524
10490
  var blockLine = /* @__PURE__ */ __name((fields, chars) => blockOf(fields, chars).join(" "), "blockLine");
9525
- var blockOf = /* @__PURE__ */ __name((fields, chars, indent = "") => Object.entries(fields).filter(([name]) => !(name === "priority" && "priority_label" in fields)).filter(([, value]) => present(value) || value === false).flatMap(([name, value]) => {
10491
+ var blockOf = /* @__PURE__ */ __name((fields, chars, indent = "", whole = []) => Object.entries(fields).filter(([name]) => !(name === "priority" && "priority_label" in fields)).filter(([, value]) => present(value) || value === false).flatMap(([name, value]) => {
9526
10492
  const label = `${indent}${clean(name)}:`;
9527
10493
  if (isFields(value))
9528
10494
  return [label, ...blockOf(value, chars, `${indent} `)];
9529
10495
  if (Array.isArray(value))
9530
10496
  return value.every((one) => !isFields(one) && !Array.isArray(one)) ? [`${label} ${cut(clean(value.join(", ")), chars)}`] : [`${label} ${value.length} \u2014 --json shows them`];
9531
- return [`${label} ${cut(clean(String(value)), chars)}`];
10497
+ return [`${label} ${whole.includes(name) ? clean(String(value)) : cut(clean(String(value)), chars)}`];
9532
10498
  }), "blockOf");
9533
10499
  var footerOf = /* @__PURE__ */ __name((body) => {
9534
10500
  const lines = [];
9535
10501
  const steps = body.next ?? [];
9536
- const lineOf2 = /* @__PURE__ */ __name((step) => step.kind === "command" ? step.line ?? step.command : void 0, "lineOf");
10502
+ const lineOf2 = /* @__PURE__ */ __name((step2) => step2.kind === "command" ? step2.line ?? step2.command : void 0, "lineOf");
9537
10503
  if ("items" in body && body.page.has_more) {
9538
- const more = steps.find((step) => step.step === "page.next");
10504
+ const more = steps.find((step2) => step2.step === "page.next");
9539
10505
  const line = more?.kind === "command" ? more.line : void 0;
9540
10506
  const page2 = body.page;
9541
10507
  lines.push(`# more: ${clean(line ?? (page2.mode === "cursor" && page2.next_cursor ? `--cursor ${page2.next_cursor}` : page2.mode === "page" && page2.next_page ? `--page ${page2.next_page}` : "raise --limit"))}`);
9542
10508
  }
9543
10509
  for (const missing of body.missing ?? [])
9544
10510
  lines.push(`# missing: ${clean(missing.field)}: ${clean(missing.why)}`);
9545
- for (const step of steps) {
9546
- if (step.step === "page.next" && "items" in body)
10511
+ for (const step2 of steps) {
10512
+ if (step2.step === "page.next" && "items" in body)
9547
10513
  continue;
9548
- const line = lineOf2(step);
9549
- lines.push(`# next: ${clean(step.why)}${line ? `: ${clean(line)}` : ""}`);
10514
+ const line = lineOf2(step2);
10515
+ lines.push(`# next: ${clean(step2.why)}${line ? `: ${clean(line)}` : ""}`);
9550
10516
  }
9551
10517
  if (body.meta?.complete === false) {
9552
10518
  const issues = (body.meta.issues ?? []).map((issue) => `${clean(issue.source)}: ${clean(String(issue.code))}`);
@@ -9571,25 +10537,31 @@ var compactText = /* @__PURE__ */ __name((body, shape, options, rowsOf = rowsOfE
9571
10537
  const chars = options.textChars ?? TEXT_CHARS;
9572
10538
  let lines = [];
9573
10539
  if ("items" in body) {
9574
- const { header, lines: rows2 } = rowsOfItems(body.items, shape, clock, chars);
9575
- lines = (header.length ? [`# ${header.join(" \xB7 ")}`] : []).concat(rows2.length ? rows2 : ["# nothing found"]);
10540
+ const { header, lines: rows2, dates } = rowsOfItems(body.items, shape, clock, chars);
10541
+ const head = [...header, ...spanOf(dates, clock)];
10542
+ lines = (head.length ? [`# ${head.join(" \xB7 ")}`] : []).concat(rows2.length ? rows2 : ["# nothing found"]);
9576
10543
  } else if (isFields(body.item)) {
9577
10544
  const sections = shape.sections ?? {};
9578
- const rest = Object.fromEntries(Object.entries(body.item).filter(([name]) => !Object.hasOwn(sections, name)));
9579
- lines = blockOf(rest, chars).map(guarded);
10545
+ const rest = Object.fromEntries(Object.entries(body.item).filter(([name]) => !Object.hasOwn(sections, name) && !shape.hidden?.includes(name)));
10546
+ lines = blockOf(rest, chars, "", shape.whole).map(guarded);
10547
+ let dates = [];
10548
+ let drawn = [];
9580
10549
  for (const [name, entity] of Object.entries(sections)) {
9581
10550
  const list = body.item[name];
9582
10551
  if (!Array.isArray(list))
9583
10552
  continue;
9584
- const { header, lines: rows2 } = rowsOfItems(list, rowsOf(entity), clock, chars);
9585
- lines = lines.concat([`# ${[`${clean(name)}: ${list.length}`, ...header].join(" \xB7 ")}`], rows2);
10553
+ const { header, lines: rows2, dates: more } = rowsOfItems(list, rowsOf(entity), clock, chars);
10554
+ dates = dates.concat(more);
10555
+ drawn = drawn.concat([`# ${[`${clean(name)}: ${list.length}`, ...header].join(" \xB7 ")}`], rows2);
9586
10556
  }
10557
+ const when = spanOf(dates, clock);
10558
+ lines = lines.concat(when.length ? [`# ${when.join(" \xB7 ")}`] : [], drawn);
9587
10559
  } else if (present(body.item))
9588
10560
  lines = [guarded(cut(clean(String(body.item)), chars))];
9589
10561
  return lines.concat(footerOf(body)).join("\n");
9590
10562
  }, "compactText");
9591
10563
 
9592
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/cli/steps.js
10564
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/cli/steps.js
9593
10565
  var STEPS2 = defineSteps([
9594
10566
  ...STEPS,
9595
10567
  {
@@ -9793,6 +10765,16 @@ var STEPS2 = defineSteps([
9793
10765
  args: [],
9794
10766
  why: "serve still runs an older version; a restart runs the one installed now"
9795
10767
  },
10768
+ {
10769
+ id: "tasks.acknowledge",
10770
+ command: "tasks acknowledge",
10771
+ args: [
10772
+ { name: "chat", required: true },
10773
+ { name: "message", required: true },
10774
+ { name: "since_time", required: false }
10775
+ ],
10776
+ why: "once the tasks these {shown} messages hold are opened, updated or closed, so the next review starts after them"
10777
+ },
9796
10778
  {
9797
10779
  id: "search.meetings",
9798
10780
  command: "*",
@@ -9801,7 +10783,7 @@ var STEPS2 = defineSteps([
9801
10783
  }
9802
10784
  ]);
9803
10785
  var nextStep = /* @__PURE__ */ __name((id6, input) => {
9804
- const definition = STEPS2.find((step) => step.id === id6);
10786
+ const definition = STEPS2.find((step2) => step2.id === id6);
9805
10787
  if (!definition)
9806
10788
  throw new Error(`no step "${id6}"`);
9807
10789
  const args = Object.fromEntries(Object.entries(input.args ?? {}).filter(([, value]) => value !== void 0));
@@ -9824,7 +10806,7 @@ var commandAt = /* @__PURE__ */ __name((root, path2) => {
9824
10806
  at2 = at2?.commands.find((one) => one.name() === word || one.aliases().includes(word));
9825
10807
  return at2 === root ? void 0 : at2;
9826
10808
  }, "commandAt");
9827
- var runnable = /* @__PURE__ */ __name((root, steps) => withSafety((steps ?? []).filter((step) => step.kind === "user_action" || commandAt(root, step.command) !== void 0).slice(0, MAX_NEXT_STEPS), judgedTargets(root)), "runnable");
10809
+ var runnable = /* @__PURE__ */ __name((root, steps) => withSafety((steps ?? []).filter((step2) => step2.kind === "user_action" || commandAt(root, step2.command) !== void 0).slice(0, MAX_NEXT_STEPS), judgedTargets(root)), "runnable");
9828
10810
  var failureSteps = /* @__PURE__ */ __name((root, error) => {
9829
10811
  const model3 = error.details?.model;
9830
10812
  const own = error.reason === "model.not-downloaded" && typeof model3 === "string" ? [
@@ -9834,33 +10816,91 @@ var failureSteps = /* @__PURE__ */ __name((root, error) => {
9834
10816
  ] : [];
9835
10817
  return runnable(root, [...error.next ?? [], ...own]);
9836
10818
  }, "failureSteps");
9837
- var withSafety = /* @__PURE__ */ __name((steps, targets) => steps.map((step) => {
9838
- if (step.kind === "user_action")
9839
- return step;
9840
- const effects = targets(step.command)?.effects;
9841
- return { ...step, safe_to_auto_execute: effects !== void 0 && !writes(effects) };
10819
+ var withSafety = /* @__PURE__ */ __name((steps, targets) => steps.map((step2) => {
10820
+ if (step2.kind === "user_action")
10821
+ return step2;
10822
+ const effects = targets(step2.command)?.effects;
10823
+ return { ...step2, safe_to_auto_execute: effects !== void 0 && !writes(effects) };
9842
10824
  }), "withSafety");
9843
- var withLines = /* @__PURE__ */ __name((root, steps) => steps.map((step) => step.kind === "command" ? { ...step, line: stepLine(root, step) } : step), "withLines");
10825
+ var withLines = /* @__PURE__ */ __name((root, steps) => steps.map((step2) => step2.kind === "command" ? { ...step2, line: stepLine(root, step2) } : step2), "withLines");
9844
10826
  var kebab = /* @__PURE__ */ __name((name) => name.replaceAll("_", "-"), "kebab");
9845
10827
  var quoted2 = /* @__PURE__ */ __name((value) => {
9846
10828
  const text5 = String(value);
9847
10829
  return /^[\w@:./+-]+$/.test(text5) ? text5 : JSON.stringify(text5);
9848
10830
  }, "quoted");
9849
- var stepLine = /* @__PURE__ */ __name((root, step) => {
9850
- const command = commandAt(root, step.command);
10831
+ var stepLine = /* @__PURE__ */ __name((root, step2) => {
10832
+ const command = commandAt(root, step2.command);
9851
10833
  const positional = new Set(command?.registeredArguments.map((argument) => argument.name()) ?? []);
9852
- const args = Object.entries(step.args).filter(([, value]) => value !== void 0 && value !== false);
10834
+ const args = Object.entries(step2.args).filter(([, value]) => value !== void 0 && value !== false);
9853
10835
  const profile = root.getOptionValue("profile");
9854
10836
  return [
9855
10837
  root.name(),
9856
10838
  ...typeof profile === "string" && profile !== "" ? [quoted2(profile)] : [],
9857
- step.command,
9858
- ...(command?.registeredArguments ?? []).flatMap((argument) => step.args[argument.name()] === void 0 ? [] : [quoted2(step.args[argument.name()])]),
10839
+ step2.command,
10840
+ ...(command?.registeredArguments ?? []).flatMap((argument) => step2.args[argument.name()] === void 0 ? [] : [quoted2(step2.args[argument.name()])]),
9859
10841
  ...args.filter(([name]) => !positional.has(name)).map(([name, value]) => value === true ? `--${kebab(name)}` : `--${kebab(name)} ${quoted2(value)}`)
9860
10842
  ].join(" ");
9861
10843
  }, "stepLine");
9862
10844
 
9863
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
10845
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/cli/output-budget.js
10846
+ var SOFT_OUTPUT_BYTES = 256 * 1024;
10847
+ var CARRIED = ["json", "compact", "offline", "timeout", "full", "brief", "maxOutputBytes"];
10848
+ var NOT_WITH_COMPACT = /* @__PURE__ */ new Set(["json", "brief"]);
10849
+ var snake2 = /* @__PURE__ */ __name((name) => name.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snake");
10850
+ var typed = /* @__PURE__ */ __name((command, key) => command.getOptionValueSource(key) === "cli", "typed");
10851
+ var typedArgs = /* @__PURE__ */ __name((command) => {
10852
+ const root = rootOf2(command);
10853
+ if (root.getOptionValue("fields") !== void 0)
10854
+ return void 0;
10855
+ if (command.options.some((option) => option.negate && typed(command, option.attributeName())))
10856
+ return void 0;
10857
+ const positional = command.registeredArguments.flatMap((argument, index) => {
10858
+ const value = command.processedArgs[index];
10859
+ const word = Array.isArray(value) ? value.join(" ") : value;
10860
+ return word === void 0 || word === "" ? [] : [[argument.name(), word]];
10861
+ });
10862
+ const own = command.options.map((option) => option.attributeName()).filter((key) => typed(command, key)).map((key) => [snake2(key), command.getOptionValue(key)]);
10863
+ const global = CARRIED.filter((key) => typed(root, key)).map((key) => [snake2(key), root.getOptionValue(key)]);
10864
+ return Object.fromEntries([...positional, ...own, ...global]);
10865
+ }, "typedArgs");
10866
+ var declaresRow = /* @__PURE__ */ __name((command) => {
10867
+ const { rows: rows2 } = environmentOf(command);
10868
+ return rowShapeOf(command, rows2 && entityRows(rows2)) !== GENERIC_ROW;
10869
+ }, "declaresRow");
10870
+ var pathOf3 = /* @__PURE__ */ __name((command) => {
10871
+ const words = [];
10872
+ for (let at2 = command; at2.parent; at2 = at2.parent)
10873
+ words.unshift(at2.name());
10874
+ return words.join(" ");
10875
+ }, "pathOf");
10876
+ var step = /* @__PURE__ */ __name((command, id6, args, why) => ({
10877
+ kind: "command",
10878
+ step: id6,
10879
+ command: pathOf3(command),
10880
+ args,
10881
+ why,
10882
+ safe_to_auto_execute: true
10883
+ }), "step");
10884
+ var compactStep = /* @__PURE__ */ __name((command, args, why) => rootOf2(command).getOptionValue("compact") === true || !declaresRow(command) ? [] : [
10885
+ step(command, "output.compact", { ...Object.fromEntries(Object.entries(args).filter(([key]) => !NOT_WITH_COMPACT.has(key))), compact: true }, why)
10886
+ ], "compactStep");
10887
+ var tooLargeSteps = /* @__PURE__ */ __name((command, { maxBytes, neededBytes }) => {
10888
+ const args = typedArgs(command);
10889
+ if (!args)
10890
+ return [];
10891
+ const limit = Number(command.getOptionValue("limit"));
10892
+ const fits = Math.floor(limit * maxBytes / neededBytes * 0.9);
10893
+ return [
10894
+ ...compactStep(command, args, "the answer is over the output cap as JSON; one line per item keeps every ref"),
10895
+ ...Number.isSafeInteger(limit) && fits >= 1 && fits < limit ? [step(command, "output.limit", { ...args, limit: fits }, `about ${fits} items fit under the output cap`)] : []
10896
+ ];
10897
+ }, "tooLargeSteps");
10898
+ var largeAnswerSteps = /* @__PURE__ */ __name((command) => {
10899
+ const args = typedArgs(command);
10900
+ return args ? compactStep(command, args, "the answer is large as JSON; one line per item keeps every ref") : [];
10901
+ }, "largeAnswerSteps");
10902
+
10903
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
9864
10904
  var HIDDEN = /* @__PURE__ */ new Set(["providerRef", "provider_ref"]);
9865
10905
  var withoutProviderRefs = /* @__PURE__ */ __name((value) => strip(value), "withoutProviderRefs");
9866
10906
  var strip = /* @__PURE__ */ __name((value) => {
@@ -9874,7 +10914,7 @@ var strip = /* @__PURE__ */ __name((value) => {
9874
10914
  return Object.fromEntries(Object.entries(value).flatMap(([key, inner]) => HIDDEN.has(key) ? [] : [[key, strip(inner)]]));
9875
10915
  }, "strip");
9876
10916
 
9877
- // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/cli/envelope.js
10917
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/cli/envelope.js
9878
10918
  var answerSchema = /* @__PURE__ */ __name((item = unknown()) => union([listEnvelopeSchema(item), itemEnvelopeSchema(item)]), "answerSchema");
9879
10919
  var capped2 = /* @__PURE__ */ __name((steps) => steps.length > 0 ? { next: steps.slice(0, MAX_NEXT_STEPS) } : {}, "capped");
9880
10920
  var listOf = /* @__PURE__ */ __name((command, input) => {
@@ -9917,7 +10957,7 @@ var itemOf = /* @__PURE__ */ __name((item, { next = [], missing, meta } = {}) =>
9917
10957
  };
9918
10958
  return body;
9919
10959
  }, "itemOf");
9920
- var snake2 = /* @__PURE__ */ __name((key) => key.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snake");
10960
+ var snake3 = /* @__PURE__ */ __name((key) => key.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snake");
9921
10961
  var snakeKeysKeeping = /* @__PURE__ */ __name((verbatim) => {
9922
10962
  const kept = new Set(verbatim);
9923
10963
  const convert = /* @__PURE__ */ __name((value) => {
@@ -9928,7 +10968,7 @@ var snakeKeysKeeping = /* @__PURE__ */ __name((verbatim) => {
9928
10968
  return Object.fromEntries(Object.entries(value).flatMap(([key, inner]) => {
9929
10969
  if (inner === void 0)
9930
10970
  return [];
9931
- const name = snake2(key);
10971
+ const name = snake3(key);
9932
10972
  return [[name, kept.has(key) || kept.has(name) ? inner : convert(inner)]];
9933
10973
  }));
9934
10974
  }, "convert");
@@ -9968,7 +11008,16 @@ var sealed = /* @__PURE__ */ __name((value) => {
9968
11008
  const { meta, ...rest } = withoutProviderRefs(value);
9969
11009
  return { ...rest, meta: metaNow(meta) };
9970
11010
  }, "sealed");
9971
- var compactSteps = /* @__PURE__ */ __name((root, steps) => steps.map((step) => step.kind === "command" ? { ...step, line: `${step.line ?? stepLine(root, step)} ${COMPACT_FLAG}` } : step), "compactSteps");
11011
+ var compactSteps = /* @__PURE__ */ __name((root, steps) => steps.map((step2) => step2.kind === "command" ? { ...step2, line: `${step2.line ?? stepLine(root, step2)} ${COMPACT_FLAG}` } : step2), "compactSteps");
11012
+ var withLargeAnswerStep = /* @__PURE__ */ __name((command, body) => {
11013
+ if ((body.next?.length ?? 0) >= MAX_NEXT_STEPS)
11014
+ return body;
11015
+ const added = largeAnswerSteps(command);
11016
+ if (added.length === 0 || Buffer.byteLength(JSON.stringify(body)) <= SOFT_OUTPUT_BYTES)
11017
+ return body;
11018
+ const root = rootOf2(command);
11019
+ return { ...body, next: [...body.next ?? [], ...withLines(root, runnable(root, added))] };
11020
+ }, "withLargeAnswerStep");
9972
11021
  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");
9973
11022
  var jsonlRecords = /* @__PURE__ */ __name((body) => linesOf(sealed(body)).split("\n").map((line) => JSON.parse(line)), "jsonlRecords");
9974
11023
  var renderAnswer = /* @__PURE__ */ __name((command, { renderer, format, streams, compact, full }, body, view) => {
@@ -9980,9 +11029,10 @@ var renderAnswer = /* @__PURE__ */ __name((command, { renderer, format, streams,
9980
11029
  const kept = withoutProviderRefs({ ...body, ...next.length > 0 ? { next } : {} });
9981
11030
  if (next.length === 0)
9982
11031
  delete kept.next;
9983
- const whole = sealed(kept);
11032
+ const sealedBody = sealed(kept);
9984
11033
  const environment = environmentOf(command);
9985
11034
  const drawn = compact && !environment.agent;
11035
+ const whole = format === "json" && !drawn && !environment.agent ? withLargeAnswerStep(command, sealedBody) : sealedBody;
9986
11036
  if (drawn) {
9987
11037
  const lined = whole.next ? { ...whole, next: compactSteps(root, whole.next) } : whole;
9988
11038
  const timezone = Intl.DateTimeFormat().resolvedOptions().timeZone;
@@ -10002,8 +11052,8 @@ var renderAnswer = /* @__PURE__ */ __name((command, { renderer, format, streams,
10002
11052
  setExitCode(command, code);
10003
11053
  if (drawn || format === "json")
10004
11054
  return;
10005
- for (const step of next)
10006
- renderer.note(step.kind === "command" ? `\u2192 ${step.why}: ${stepLine(root, step)}` : `\u2192 ${step.why}`);
11055
+ for (const step2 of next)
11056
+ renderer.note(step2.kind === "command" ? `\u2192 ${step2.why}: ${stepLine(root, step2)}` : `\u2192 ${step2.why}`);
10007
11057
  }, "renderAnswer");
10008
11058
  var renderDocument = /* @__PURE__ */ __name(({ renderer }, document2) => renderer.result(document2), "renderDocument");
10009
11059
  var itemAnswer = /* @__PURE__ */ __name((item) => sealed(itemOf(item)), "itemAnswer");
@@ -10068,10 +11118,17 @@ export {
10068
11118
  AI_ENTRIES,
10069
11119
  AI_SETTING_KEYS,
10070
11120
  resolveAISettings,
11121
+ botsDirectory,
11122
+ botFiles,
11123
+ ChatRegistry,
11124
+ registryProfiles,
11125
+ REPAIR_WORDS,
11126
+ repairConfigText,
10071
11127
  permissionIssues,
10072
11128
  settingPathOf,
10073
11129
  withoutSetting,
10074
11130
  publicIssue,
11131
+ fixVerb,
10075
11132
  issueMessage,
10076
11133
  checkConfigText,
10077
11134
  readConfigText,
@@ -10082,6 +11139,8 @@ export {
10082
11139
  rememberAccount,
10083
11140
  recalledAccount,
10084
11141
  profilesHere,
11142
+ withSettingDefaults,
11143
+ settingRows,
10085
11144
  plain,
10086
11145
  count2 as count,
10087
11146
  flag,
@@ -10095,9 +11154,11 @@ export {
10095
11154
  setExitCode,
10096
11155
  provide,
10097
11156
  environmentOf,
11157
+ withAgentLevels,
10098
11158
  secretInputOf,
10099
11159
  outputFor,
10100
11160
  baseContext,
11161
+ inCommandRun,
10101
11162
  REMOTE_READ,
10102
11163
  FETCH,
10103
11164
  REMOTE_WRITE,
@@ -10111,10 +11172,17 @@ export {
10111
11172
  logsInOrOut,
10112
11173
  isLogin,
10113
11174
  destroysNothing,
11175
+ PROPOSE_COMMANDS,
11176
+ proposesOnly,
11177
+ isProposal,
11178
+ LOCKED_AUTHORITY_COMMANDS,
11179
+ narrowsUnderLock,
11180
+ admittedUnderLock,
10114
11181
  changesStore,
10115
11182
  fetchesOnly,
10116
11183
  fetchesOnlyAt,
10117
11184
  writesFileOnlyWith,
11185
+ writesNewFileOnlyWith,
10118
11186
  readsOverMcp,
10119
11187
  readsOverMcpAt,
10120
11188
  isStoreChange,
@@ -10189,6 +11257,7 @@ export {
10189
11257
  answerEntity,
10190
11258
  answerEntitySchema,
10191
11259
  answerProjectionSchema,
11260
+ ON_CHAT_ROW,
10192
11261
  STATUS_SIGNAL_ROWS,
10193
11262
  STATUS_ROWS,
10194
11263
  SHARED_ROWS,
@@ -10197,7 +11266,6 @@ export {
10197
11266
  entityRows,
10198
11267
  rowShapeOf,
10199
11268
  compactText,
10200
- withoutProviderRefs,
10201
11269
  nextStep,
10202
11270
  lineOf,
10203
11271
  rootOf2,
@@ -10207,6 +11275,8 @@ export {
10207
11275
  withSafety,
10208
11276
  withLines,
10209
11277
  stepLine,
11278
+ tooLargeSteps,
11279
+ withoutProviderRefs,
10210
11280
  answerSchema,
10211
11281
  listOf,
10212
11282
  itemOf,