@wirecat/zoom-cli 0.66.0 → 0.67.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 (190) hide show
  1. package/README.md +2 -1
  2. package/constants.json +7 -0
  3. package/dist/answers.d.ts +4 -4
  4. package/dist/bin/main.js +3 -2
  5. package/dist/bin/main.js.map +1 -1
  6. package/dist/bin/zm.js +2 -2
  7. package/dist/bundle/{all-profiles-D5CFH2OK.js → all-profiles-SEW2VL76.js} +12 -11
  8. package/dist/bundle/answer-policy-5OYUL6UF.js +103 -0
  9. package/dist/bundle/{anthropic-K2E2JS4S.js → anthropic-FSNASJML.js} +7 -7
  10. package/dist/bundle/{app-server-TVXDG6HZ.js → app-server-EVSRYJ3H.js} +55 -54
  11. package/dist/bundle/{bun-O4WHGL2F.js → bun-DACL5SVO.js} +2 -2
  12. package/dist/bundle/{bun-sqlite-HGBEHQI3.js → bun-sqlite-HQ2KOXSI.js} +6 -6
  13. package/dist/bundle/{chunk-IDWHJ35K.js → chunk-2UW533HQ.js} +4 -4
  14. package/dist/bundle/{chunk-NMQUCHTX.js → chunk-3GO3KME7.js} +3 -3
  15. package/dist/bundle/{chunk-6GSJLNP4.js → chunk-3ZIHUSMM.js} +2 -2
  16. package/dist/bundle/{chunk-2YLNUZ3T.js → chunk-4GCKDO2H.js} +3 -3
  17. package/dist/bundle/{chunk-7SQJCKR6.js → chunk-4KDZ22RA.js} +1 -1
  18. package/dist/bundle/{chunk-5A26IBAR.js → chunk-4U2555EQ.js} +23 -23
  19. package/dist/bundle/{chunk-RMKHYUHK.js → chunk-4UVT2QCO.js} +4 -4
  20. package/dist/bundle/{chunk-GHAPWKG2.js → chunk-4ZR5DJ26.js} +3 -3
  21. package/dist/bundle/{chunk-2T5BOLBS.js → chunk-54RTMQL6.js} +4 -4
  22. package/dist/bundle/chunk-6AJDVJVZ.js +35 -0
  23. package/dist/bundle/{chunk-UYV2JGLQ.js → chunk-6IBM4Z3V.js} +1 -1
  24. package/dist/bundle/{chunk-QAPU2JNO.js → chunk-6TZF2JP7.js} +13 -13
  25. package/dist/bundle/{chunk-CZ4KLUJG.js → chunk-6UFWFKFH.js} +2 -2
  26. package/dist/bundle/chunk-6VFORXL3.js +101 -0
  27. package/dist/bundle/{chunk-RO44LANT.js → chunk-7HAIM7GV.js} +1577 -633
  28. package/dist/bundle/{chunk-QV5ZGRK3.js → chunk-7K5TDTZY.js} +7 -7
  29. package/dist/bundle/{chunk-NO24PJNW.js → chunk-7LLUUXJB.js} +1 -1
  30. package/dist/bundle/{chunk-7PF56S6U.js → chunk-7VU5UGRR.js} +24 -22
  31. package/dist/bundle/{chunk-SU4WPBQE.js → chunk-AAZFLJSH.js} +22 -23
  32. package/dist/bundle/{chunk-ZKTXUDSR.js → chunk-ASCHAVNW.js} +30 -26
  33. package/dist/bundle/{chunk-BXSAROQP.js → chunk-B3KWAULD.js} +2 -2
  34. package/dist/bundle/{chunk-ZNFPDTQM.js → chunk-B5Z4XPVS.js} +2 -2
  35. package/dist/bundle/{chunk-756RS4PH.js → chunk-BKY4XVB4.js} +1688 -1133
  36. package/dist/bundle/{chunk-62GOOZO3.js → chunk-C6UKW7JO.js} +6 -6
  37. package/dist/bundle/{chunk-U3ZUT557.js → chunk-CLEZE65P.js} +1 -1
  38. package/dist/bundle/{chunk-YLEQN6PB.js → chunk-CRLBTNC4.js} +3 -3
  39. package/dist/bundle/{chunk-P2SYZNM4.js → chunk-D4KBD63W.js} +1 -1
  40. package/dist/bundle/{chunk-CR4CXOLX.js → chunk-D6OXI2NV.js} +17 -17
  41. package/dist/bundle/{chunk-Q47C3QZW.js → chunk-DFUPETW7.js} +444 -307
  42. package/dist/bundle/{chunk-JX3V35A5.js → chunk-DG4DWAU7.js} +3 -3
  43. package/dist/bundle/{chunk-P3XVLHIQ.js → chunk-EPDRF66S.js} +4 -4
  44. package/dist/bundle/{chunk-EXXM4RNI.js → chunk-EQ7XRRKV.js} +11 -11
  45. package/dist/bundle/{chunk-5GD2XZ6X.js → chunk-ESFMHBHH.js} +30 -29
  46. package/dist/bundle/{chunk-GI6QVSCW.js → chunk-EUPZSR2G.js} +4 -4
  47. package/dist/bundle/{chunk-J4EZL6HY.js → chunk-FGTPREAZ.js} +33 -33
  48. package/dist/bundle/{chunk-GKXFL35E.js → chunk-FWU3ZYHE.js} +50 -50
  49. package/dist/bundle/{chunk-CAW6IMFZ.js → chunk-FXQPK742.js} +55 -17
  50. package/dist/bundle/{chunk-P2G4KGTR.js → chunk-GP4NSYDU.js} +11 -11
  51. package/dist/bundle/{chunk-GNGBG5BT.js → chunk-I7SOXH64.js} +71 -38
  52. package/dist/bundle/{chunk-S4GDDO5S.js → chunk-IFDO3YPJ.js} +1 -1
  53. package/dist/bundle/{chunk-N5JRRBEG.js → chunk-J3ZBEWQY.js} +373 -9
  54. package/dist/bundle/chunk-JVCHGI7W.js +37 -0
  55. package/dist/bundle/{chunk-7KCTPGOF.js → chunk-KANH7GBB.js} +2 -2
  56. package/dist/bundle/{chunk-QJHRYUMJ.js → chunk-KIJLM5UL.js} +1 -1
  57. package/dist/bundle/{chunk-ILHTNOIV.js → chunk-KV4267S4.js} +1 -1
  58. package/dist/bundle/{chunk-XWDSEJWP.js → chunk-KWRSC6O6.js} +4 -4
  59. package/dist/bundle/{chunk-O5FKJV3T.js → chunk-L643D4RJ.js} +12 -12
  60. package/dist/bundle/{chunk-ZTL7ANSG.js → chunk-L6CAUVMU.js} +5 -5
  61. package/dist/bundle/{chunk-TUEEXECZ.js → chunk-L6WUAGPN.js} +3 -3
  62. package/dist/bundle/{chunk-H5ZVZAOD.js → chunk-LFQ73UFK.js} +3 -3
  63. package/dist/bundle/{chunk-3Y2F65AY.js → chunk-LKJXTACE.js} +10 -89
  64. package/dist/bundle/{chunk-AZ7ICKIA.js → chunk-LM26DJOK.js} +6 -6
  65. package/dist/bundle/{chunk-IKQ73INC.js → chunk-M43MBWJX.js} +3229 -1236
  66. package/dist/bundle/{chunk-LN2S3RA3.js → chunk-MWEOVTIF.js} +4 -4
  67. package/dist/bundle/{chunk-N67BLTBV.js → chunk-NTZDM5SJ.js} +28 -9
  68. package/dist/bundle/{chunk-6TIKPRVQ.js → chunk-OTMGAKUM.js} +7 -7
  69. package/dist/bundle/chunk-OZEYFJX2.js +93 -0
  70. package/dist/bundle/{chunk-XFUID5NY.js → chunk-Q65SDEFN.js} +2 -2
  71. package/dist/bundle/{chunk-67RNZGAG.js → chunk-QEI55M2F.js} +10 -10
  72. package/dist/bundle/{chunk-3B7L2UX4.js → chunk-QX2MAT6I.js} +3 -3
  73. package/dist/bundle/{chunk-KDKFGQWG.js → chunk-RAMPYIO2.js} +15 -12
  74. package/dist/bundle/{chunk-BLT3LR3U.js → chunk-RYKG6AEH.js} +1 -1
  75. package/dist/bundle/{chunk-Z6U3MEGJ.js → chunk-SCFFCIIP.js} +4 -2
  76. package/dist/bundle/{chunk-N6JMJN5A.js → chunk-SMVO5R3T.js} +19 -19
  77. package/dist/bundle/{chunk-Y3EIK4XW.js → chunk-SOZVC3SV.js} +1 -1
  78. package/dist/bundle/{chunk-A2SCXNA7.js → chunk-SSXCOUP3.js} +1084 -258
  79. package/dist/bundle/{chunk-TN7K66PU.js → chunk-SXFODCYK.js} +1 -1
  80. package/dist/bundle/{chunk-TFDVFD4N.js → chunk-T6CZWSHF.js} +97 -38
  81. package/dist/bundle/{chunk-7JMBEPW2.js → chunk-TBRG2DPE.js} +2 -2
  82. package/dist/bundle/{chunk-UOIXBEFR.js → chunk-V33VGWT3.js} +5 -5
  83. package/dist/bundle/{chunk-K5CIN4JP.js → chunk-VFIEYRYD.js} +8 -8
  84. package/dist/bundle/{chunk-5HPALDUO.js → chunk-VNIBTNV4.js} +3 -2
  85. package/dist/bundle/{chunk-3WTKZ2ZS.js → chunk-VQTAU4DV.js} +8 -8
  86. package/dist/bundle/{chunk-TMVKZMDO.js → chunk-WHQ4ZCJI.js} +49 -30
  87. package/dist/bundle/{chunk-S6S3KVJI.js → chunk-WZ5XK74U.js} +2 -1
  88. package/dist/bundle/{chunk-2VPHQFO5.js → chunk-X67YD3QI.js} +2 -2
  89. package/dist/bundle/{chunk-PQLBPYJR.js → chunk-YPF6OS37.js} +1 -1
  90. package/dist/bundle/{chunk-AU4JHT3R.js → chunk-YRNZT4GQ.js} +7 -7
  91. package/dist/bundle/{chunk-HKQWV3KT.js → chunk-Z3WXI4DK.js} +3 -3
  92. package/dist/bundle/{chunk-U4RVOSX3.js → chunk-ZMPTO2WB.js} +1 -1
  93. package/dist/bundle/{chunk-FWFFQV4D.js → chunk-ZRMZBMOF.js} +69 -9
  94. package/dist/bundle/{cli-HWQIL2AC.js → cli-YUATSOLA.js} +94 -67
  95. package/dist/bundle/command-contract-UWHY55UE.js +41 -0
  96. package/dist/bundle/config-TGF6E6ZD.js +89 -0
  97. package/dist/bundle/{decode-XPAPPUGE.js → decode-IL44LNC3.js} +6 -6
  98. package/dist/bundle/{dispatch-AKVJGP2S.js → dispatch-3BGIXSJR.js} +9 -9
  99. package/dist/bundle/{dist-LDIUQBM7.js → dist-3W27UQ2S.js} +46 -17
  100. package/dist/bundle/{echarts-FMACRZQC.js → echarts-CO4D26JF.js} +2 -2
  101. package/dist/bundle/{embed-LK45GRQ7.js → embed-XH2X4DFM.js} +7 -7
  102. package/dist/bundle/{embedder-QPBC5XBY.js → embedder-WTFWDXBJ.js} +10 -10
  103. package/dist/bundle/{failure-7OULAOWQ.js → failure-HTIS3NLS.js} +3 -3
  104. package/dist/bundle/{first-run-J5FG773Q.js → first-run-5RBH7FDO.js} +12 -12
  105. package/dist/bundle/first-screen-PGFIXJAX.js +39 -0
  106. package/dist/bundle/{folders-RHPUVMDI.js → folders-F4DNQPIY.js} +5 -5
  107. package/dist/bundle/{instructions-E5FXYCWF.js → instructions-EPPBL6TT.js} +1 -1
  108. package/dist/bundle/{main-FJHE5YHU.js → main-LVQTCDZS.js} +23 -22
  109. package/dist/bundle/{mcp-MNI62HHE.js → mcp-PPVOM4SE.js} +2 -2
  110. package/dist/bundle/{meetings-MYIDGYGW.js → meetings-BMELXRTR.js} +31 -7
  111. package/dist/bundle/{node-4SNKUPXT.js → node-CQVMWVIG.js} +2 -2
  112. package/dist/bundle/{node-sqlite-SYZUTVPC.js → node-sqlite-QQEX7LZT.js} +7 -7
  113. package/dist/bundle/{oauth-QPS5VTN6.js → oauth-AYGX7CQS.js} +8 -8
  114. package/dist/bundle/{open-OVCASRSJ.js → open-MIL2TOT6.js} +6 -6
  115. package/dist/bundle/openai-7QZZXQW5.js +25 -0
  116. package/dist/bundle/{output-file-K5JEL33Z.js → output-file-4XADZPYH.js} +6 -6
  117. package/dist/bundle/{process-HQZOTT6U.js → process-NJVQK6GB.js} +1 -1
  118. package/dist/bundle/{program-A546WC4F.js → program-WUYRS6H7.js} +152 -104
  119. package/dist/bundle/{prompt-CYBKP7S5.js → prompt-J4QPFLEA.js} +6 -6
  120. package/dist/bundle/{recognize-3H3YDCFI.js → recognize-OLJZVNWW.js} +5 -5
  121. package/dist/bundle/{remote-VAYVTJBS.js → remote-JPUXNYLV.js} +8 -8
  122. package/dist/bundle/{rerank-XA4GA5PS.js → rerank-XVV3X5TT.js} +8 -8
  123. package/dist/bundle/{run-log-XAFHMI3F.js → run-log-DJXBEVS5.js} +59 -57
  124. package/dist/bundle/{serve-KGHEDUHB.js → serve-NYYUO3MR.js} +10 -10
  125. package/dist/bundle/{server-ZYTSMDTP.js → server-4Z5E4YTT.js} +47 -46
  126. package/dist/bundle/server-VW5UVCH7.js +72 -0
  127. package/dist/bundle/{services-ZHMZC2OQ.js → services-EKWM76HP.js} +49 -32
  128. package/dist/bundle/{speech-7CJEFKM3.js → speech-WFJ44ACJ.js} +14 -14
  129. package/dist/bundle/{state-U6KSYVOH.js → state-VIRCT4VW.js} +7 -7
  130. package/dist/bundle/{store-WS4CQGYU.js → store-2Q4GEZJS.js} +30 -21
  131. package/dist/bundle/{store-DJE3LAEG.js → store-ZTDZ6UY5.js} +20 -17
  132. package/dist/bundle/store-connection-FKVVQLEF.js +83 -0
  133. package/dist/bundle/store-maintenance-command-AU73UVUQ.js +62 -0
  134. package/dist/bundle/{streaming-QMHH7L6N.js → streaming-7BPKIGAS.js} +7 -7
  135. package/dist/bundle/{tokens-PWQ56OXO.js → tokens-CQHMMKNX.js} +7 -7
  136. package/dist/bundle/zm.js +10 -10
  137. package/dist/bundle/zoom-app-OEKFMJS6.js +25 -0
  138. package/dist/config.d.ts +9 -0
  139. package/dist/config.d.ts.map +1 -1
  140. package/dist/config.js +46 -7
  141. package/dist/config.js.map +1 -1
  142. package/dist/meeting-source.d.ts.map +1 -1
  143. package/dist/meeting-source.js +2 -1
  144. package/dist/meeting-source.js.map +1 -1
  145. package/dist/meeting-stats-commands.d.ts +4 -2
  146. package/dist/meeting-stats-commands.d.ts.map +1 -1
  147. package/dist/meeting-stats-commands.js +27 -2
  148. package/dist/meeting-stats-commands.js.map +1 -1
  149. package/dist/program-bindings.d.ts.map +1 -1
  150. package/dist/program-bindings.js +3 -2
  151. package/dist/program-bindings.js.map +1 -1
  152. package/dist/recording-schedule-setup.d.ts.map +1 -1
  153. package/dist/recording-schedule-setup.js +5 -5
  154. package/dist/recording-schedule-setup.js.map +1 -1
  155. package/dist/run.d.ts.map +1 -1
  156. package/dist/run.js +2 -6
  157. package/dist/run.js.map +1 -1
  158. package/dist/setup-commands.d.ts +1 -1
  159. package/dist/setup-commands.d.ts.map +1 -1
  160. package/dist/setup-commands.js +30 -8
  161. package/dist/setup-commands.js.map +1 -1
  162. package/dist/store-commands.d.ts.map +1 -1
  163. package/dist/store-commands.js +6 -0
  164. package/dist/store-commands.js.map +1 -1
  165. package/dist/store-connection.d.ts +2 -1
  166. package/dist/store-connection.d.ts.map +1 -1
  167. package/dist/store-connection.js +4 -0
  168. package/dist/store-connection.js.map +1 -1
  169. package/dist/version.d.ts +1 -1
  170. package/dist/version.js +1 -1
  171. package/dist/watch-service.d.ts +1 -1
  172. package/dist/watch-service.d.ts.map +1 -1
  173. package/dist/watch-service.js +5 -3
  174. package/dist/watch-service.js.map +1 -1
  175. package/dist/zoom-app.d.ts +17 -0
  176. package/dist/zoom-app.d.ts.map +1 -0
  177. package/dist/zoom-app.js +22 -0
  178. package/dist/zoom-app.js.map +1 -0
  179. package/package.json +4 -3
  180. package/skills/zoom-cli/SKILL.md +4 -1
  181. package/dist/bundle/answer-policy-YAYMKRRD.js +0 -101
  182. package/dist/bundle/chunk-L7IK4FOA.js +0 -18
  183. package/dist/bundle/command-contract-CQFJXWX6.js +0 -40
  184. package/dist/bundle/config-R2Y6ZVQS.js +0 -83
  185. package/dist/bundle/first-screen-MULOBUHN.js +0 -38
  186. package/dist/bundle/openai-VEVT7D7L.js +0 -25
  187. package/dist/bundle/server-IDNSJXF3.js +0 -71
  188. package/dist/bundle/store-connection-T5WGOOPH.js +0 -81
  189. package/dist/bundle/store-maintenance-command-5CBQCEQQ.js +0 -61
  190. /package/dist/bundle/{chunk-NUN6OGOV.js → chunk-LU3WKZBA.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-SCFFCIIP.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-LKJXTACE.js";
18
18
  import {
19
19
  permissionCeiling
20
- } from "./chunk-GI6QVSCW.js";
20
+ } from "./chunk-EUPZSR2G.js";
21
21
  import {
22
22
  fieldsOf,
23
23
  projectFields,
24
24
  resolveOutput
25
- } from "./chunk-QV5ZGRK3.js";
25
+ } from "./chunk-7K5TDTZY.js";
26
26
  import {
27
27
  carries
28
- } from "./chunk-Y3EIK4XW.js";
28
+ } from "./chunk-SOZVC3SV.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-4U2555EQ.js";
62
62
  import {
63
63
  isCliFailure
64
- } from "./chunk-6GSJLNP4.js";
64
+ } from "./chunk-3ZIHUSMM.js";
65
65
  import {
66
66
  CEILING_KEY,
67
67
  COMMAND_PATH_KEY,
@@ -72,7 +72,7 @@ import {
72
72
  keyForCommand,
73
73
  layerPermissions,
74
74
  permissionOverrides
75
- } from "./chunk-5HPALDUO.js";
75
+ } from "./chunk-VNIBTNV4.js";
76
76
  import {
77
77
  author,
78
78
  count,
@@ -86,7 +86,7 @@ import {
86
86
  text,
87
87
  time,
88
88
  untrusted
89
- } from "./chunk-2T5BOLBS.js";
89
+ } from "./chunk-54RTMQL6.js";
90
90
  import {
91
91
  FACT_STATUSES,
92
92
  LINK_KINDS,
@@ -102,20 +102,19 @@ import {
102
102
  TASK_TYPES,
103
103
  TASK_VERDICTS,
104
104
  WORK_TASK_TYPES
105
- } from "./chunk-AU4JHT3R.js";
105
+ } from "./chunk-YRNZT4GQ.js";
106
106
  import {
107
107
  sharedConfigPath
108
- } from "./chunk-6TIKPRVQ.js";
108
+ } from "./chunk-OTMGAKUM.js";
109
109
  import {
110
110
  storePath
111
- } from "./chunk-L7IK4FOA.js";
111
+ } from "./chunk-6AJDVJVZ.js";
112
112
  import {
113
113
  FACT_TYPES,
114
114
  MEETING_RESULT_ENTITIES,
115
- PAYMENT_DIRECTIONS,
116
- PAYMENT_STATES,
117
115
  event,
118
116
  meeting,
117
+ meetingCounts,
119
118
  meetingDetails,
120
119
  meetingHit,
121
120
  meetingLink,
@@ -127,12 +126,12 @@ import {
127
126
  meetingStats,
128
127
  meetingSummary,
129
128
  meetingTranscript
130
- } from "./chunk-Q47C3QZW.js";
129
+ } from "./chunk-DFUPETW7.js";
131
130
  import {
132
131
  FIELD_TYPES,
133
132
  QUERY_BACKENDS,
134
133
  describeQuery
135
- } from "./chunk-SU4WPBQE.js";
134
+ } from "./chunk-AAZFLJSH.js";
136
135
  import {
137
136
  configFilePath,
138
137
  createRecordLog,
@@ -141,7 +140,7 @@ import {
141
140
  resolvePaths,
142
141
  saveConfigFile,
143
142
  writeSecurely
144
- } from "./chunk-TFDVFD4N.js";
143
+ } from "./chunk-T6CZWSHF.js";
145
144
  import {
146
145
  COMPACT_FLAG,
147
146
  MAX_NEXT_STEPS,
@@ -193,18 +192,18 @@ import {
193
192
  unwrap,
194
193
  variant,
195
194
  writes
196
- } from "./chunk-N67BLTBV.js";
195
+ } from "./chunk-NTZDM5SJ.js";
197
196
  import {
198
197
  CliError
199
- } from "./chunk-S6S3KVJI.js";
198
+ } from "./chunk-WZ5XK74U.js";
200
199
  import {
201
200
  visibleControls
202
- } from "./chunk-UYV2JGLQ.js";
201
+ } from "./chunk-6IBM4Z3V.js";
203
202
  import {
204
203
  __name
205
204
  } from "./chunk-ZVVMGPBJ.js";
206
205
 
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
206
+ // node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/registry.js
208
207
  var labels = /* @__PURE__ */ new WeakMap();
209
208
  var annotate = /* @__PURE__ */ __name((command, meta) => {
210
209
  labels.set(command, { ...labels.get(command), ...meta });
@@ -3705,7 +3704,7 @@ __name(useColor, "useColor");
3705
3704
  // node_modules/.pnpm/commander@15.0.0/node_modules/commander/index.js
3706
3705
  var program = new Command();
3707
3706
 
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
3707
+ // node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/contracts.js
3709
3708
  import { isDeepStrictEqual } from "node:util";
3710
3709
  var protectedCommands = /* @__PURE__ */ new WeakMap();
3711
3710
  var hasSharedContract = /* @__PURE__ */ __name((command) => protectedCommands.has(command), "hasSharedContract");
@@ -3907,7 +3906,7 @@ var customizeSharedCommand = /* @__PURE__ */ __name((reference2, reason, build,
3907
3906
  return command;
3908
3907
  }, "customizeSharedCommand");
3909
3908
 
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
3909
+ // node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/document.js
3911
3910
  var argumentInfoSchema = object({
3912
3911
  name: string(),
3913
3912
  required: boolean(),
@@ -3981,7 +3980,7 @@ var commandsDocumentSchema = strictObject({
3981
3980
  exit_codes: record(string(), pipe(number(), integer()))
3982
3981
  });
3983
3982
 
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
3983
+ // node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/index.js
3985
3984
  var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
3986
3985
  let command = root;
3987
3986
  const path2 = [];
@@ -3999,7 +3998,7 @@ var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
3999
3998
  }
4000
3999
  }, "refuseJoinedPath");
4001
4000
 
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
4001
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/runs/log-events.js
4003
4002
  var CORE_LOG_EVENTS = defineLogEvents([
4004
4003
  { id: "provider.request", meaning: "a request went to the messenger", keys: ["operation"] },
4005
4004
  { id: "provider.response", meaning: "the messenger answered the request, or it failed", keys: ["operation"] },
@@ -4033,7 +4032,7 @@ var DIAGNOSTIC_LOG_EVENTS = {
4033
4032
  cache: "cache.answered"
4034
4033
  };
4035
4034
 
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
4035
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/runs/recording.js
4037
4036
  var recorded = /* @__PURE__ */ __name(async (options, body) => {
4038
4037
  const recording = startRecording(options);
4039
4038
  try {
@@ -4218,9 +4217,9 @@ var partialOutcome = /* @__PURE__ */ __name((answer) => {
4218
4217
  return void 0;
4219
4218
  }, "partialOutcome");
4220
4219
 
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)
4220
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/deadline.js
4221
+ var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
4222
+ if (ms2 === void 0)
4224
4223
  return body();
4225
4224
  let timer2;
4226
4225
  let timedOut;
@@ -4229,10 +4228,10 @@ var withDeadline = /* @__PURE__ */ __name(async (ms, closeables, body) => {
4229
4228
  timer2 = setTimeout(() => {
4230
4229
  const pending = [...writes2];
4231
4230
  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`);
4231
+ 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
4232
  stopWrites(writes2, timedOut);
4234
4233
  void Promise.allSettled(closeables.map((closeable) => closeable.close())).then(() => reject(timedOut));
4235
- }, ms);
4234
+ }, ms2);
4236
4235
  });
4237
4236
  try {
4238
4237
  return await Promise.race([withWriteScope(writes2, body), expired]);
@@ -4244,7 +4243,7 @@ var withDeadline = /* @__PURE__ */ __name(async (ms, closeables, body) => {
4244
4243
  }
4245
4244
  }, "withDeadline");
4246
4245
 
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
4246
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/execution.js
4248
4247
  var DEFAULT_COMMAND_MS = 3e4;
4249
4248
  var DEFAULT_COOPERATIVE_MS = 5 * 6e4;
4250
4249
  var DEFAULT_SYNC_MS = 15 * 6e4;
@@ -4350,6 +4349,7 @@ var execution = /* @__PURE__ */ __name((streams, { timeoutMs, fields, maxOutputB
4350
4349
  reason: "output.too-large",
4351
4350
  max_bytes: maxOutputBytes,
4352
4351
  emitted_bytes: bytes,
4352
+ needed_bytes: bytes + size,
4353
4353
  partial_output: bytes > 0
4354
4354
  });
4355
4355
  bytes += size;
@@ -4426,7 +4426,7 @@ var withAbort = /* @__PURE__ */ __name(async (signal, body) => {
4426
4426
  }
4427
4427
  }, "withAbort");
4428
4428
 
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
4429
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/profile.js
4430
4430
  var asFirstWord = /* @__PURE__ */ __name((profile) => `${profile} `, "asFirstWord");
4431
4431
  var PLAIN_NAME = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
4432
4432
  var isProfileName = /* @__PURE__ */ __name((word) => PLAIN_NAME.test(word), "isProfileName");
@@ -4495,7 +4495,7 @@ var sampleCommand = /* @__PURE__ */ __name((commands) => {
4495
4495
  return void 0;
4496
4496
  }, "sampleCommand");
4497
4497
 
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
4498
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/models/endpoint.js
4499
4499
  var endpoint = /* @__PURE__ */ __name((value) => {
4500
4500
  try {
4501
4501
  const url2 = new URL(value);
@@ -4505,7 +4505,7 @@ var endpoint = /* @__PURE__ */ __name((value) => {
4505
4505
  }
4506
4506
  }, "endpoint");
4507
4507
 
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
4508
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/models/settings.js
4509
4509
  var MODEL_FIELDS = ["provider", "model", "base_url"];
4510
4510
  var modelSettingsShape = record(pipe(string(), regex(/^[a-z][a-z0-9-]*$/)), strictObject({
4511
4511
  provider: optional(picklist(["off", "openai", "anthropic"])),
@@ -4574,7 +4574,7 @@ var modelTarget = /* @__PURE__ */ __name((settings, purpose) => {
4574
4574
  };
4575
4575
  }, "modelTarget");
4576
4576
 
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
4577
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/analysis/settings.js
4578
4578
  var model = pipe(string(), trim(), minLength(1), maxLength(200));
4579
4579
  var url = pipe(string(), check(endpoint, "use an HTTP/S endpoint without credentials, query or fragment"));
4580
4580
  var AI_FIELDS = {
@@ -4618,8 +4618,340 @@ var resolveAISettings = /* @__PURE__ */ __name((prefix, layers, env) => {
4618
4618
  };
4619
4619
  }, "resolveAISettings");
4620
4620
 
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";
4621
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/bot/registry.js
4622
+ import { existsSync, readdirSync, readFileSync } from "node:fs";
4623
+ import { join } from "node:path";
4624
+ var botsDirectory = /* @__PURE__ */ __name((app, env = process.env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "bots"), "botsDirectory");
4625
+ var botFiles = /* @__PURE__ */ __name((app, profile, env = process.env) => {
4626
+ const directory = botsDirectory(app, env);
4627
+ return {
4628
+ registry: join(directory, `${profile}.json`),
4629
+ recipients: join(directory, "recipients", `${profile}.json`),
4630
+ journal: join(directory, "sends", `${profile}.jsonl`),
4631
+ updates: join(directory, "updates", `${profile}.json`),
4632
+ presses: join(directory, "presses", `${profile}.json`),
4633
+ checks: join(directory, "checks", `${profile}.json`)
4634
+ };
4635
+ }, "botFiles");
4636
+ var ChatRegistry = class {
4637
+ static {
4638
+ __name(this, "ChatRegistry");
4639
+ }
4640
+ #path;
4641
+ constructor(app, profile, env = process.env) {
4642
+ this.#path = botFiles(app, profile, env).registry;
4643
+ }
4644
+ list(filter = {}) {
4645
+ const { chats } = this.#read();
4646
+ 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()));
4647
+ }
4648
+ /** The bot's own user id, once any command has learned it — the key its messages are stored under. */
4649
+ botId() {
4650
+ const { botId } = this.#read();
4651
+ return typeof botId === "string" ? botId : void 0;
4652
+ }
4653
+ rememberBot(id6) {
4654
+ const file = this.#read();
4655
+ if (file.botId !== id6)
4656
+ this.#write({ ...file, botId: id6 });
4657
+ }
4658
+ /** Makes this bot known to `bot list` before it has seen any chat. */
4659
+ touch() {
4660
+ if (!existsSync(this.#path))
4661
+ writeSecurely(this.#path, `${JSON.stringify({ chats: [] }, null, 2)}
4662
+ `, 384);
4663
+ }
4664
+ /** Newer facts win; a chat seen only as an id keeps the title it had. */
4665
+ observe(chats, now = /* @__PURE__ */ new Date()) {
4666
+ if (chats.length === 0)
4667
+ return;
4668
+ const byId = new Map(this.list().map((chat2) => [chat2.id, chat2]));
4669
+ const at2 = now.toISOString();
4670
+ for (const chat2 of chats) {
4671
+ const known = byId.get(chat2.id);
4672
+ const defined = Object.fromEntries(Object.entries(chat2).filter(([, value]) => value !== void 0 && value !== null));
4673
+ byId.set(chat2.id, {
4674
+ title: null,
4675
+ kind: "unknown",
4676
+ unreadCount: null,
4677
+ lastMessageAt: null,
4678
+ participantsCount: null,
4679
+ ...known,
4680
+ ...defined,
4681
+ id: chat2.id,
4682
+ firstSeenAt: known?.firstSeenAt ?? at2,
4683
+ lastSeenAt: at2
4684
+ });
4685
+ }
4686
+ this.#write({ ...this.#read(), chats: [...byId.values()] });
4687
+ }
4688
+ #read() {
4689
+ if (!existsSync(this.#path))
4690
+ return {};
4691
+ try {
4692
+ const parsed = JSON.parse(readFileSync(this.#path, "utf8"));
4693
+ return parsed && typeof parsed === "object" ? parsed : {};
4694
+ } catch {
4695
+ return {};
4696
+ }
4697
+ }
4698
+ #write(file) {
4699
+ writeSecurely(this.#path, `${JSON.stringify(file, null, 2)}
4700
+ `, 384);
4701
+ }
4702
+ };
4703
+ var registryProfiles = /* @__PURE__ */ __name((app, env = process.env) => {
4704
+ const directory = botsDirectory(app, env);
4705
+ if (!existsSync(directory))
4706
+ return [];
4707
+ return readdirSync(directory, { withFileTypes: true }).filter((entry) => entry.isFile() && entry.name.endsWith(".json")).map((entry) => entry.name).map((name) => name.slice(0, -".json".length));
4708
+ }, "registryProfiles");
4709
+
4710
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
4711
+ import { readFileSync as readFileSync2 } from "node:fs";
4712
+
4713
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/config-repair.js
4714
+ var REPAIR_WORDS = {
4715
+ byte_order_mark: "an invisible byte-order mark at the start",
4716
+ comment: "a comment, which JSON does not allow",
4717
+ trailing_comma: "a comma before a closing bracket",
4718
+ missing_comma: "a missing comma",
4719
+ unquoted_key: "a key without double quotes",
4720
+ single_quotes: "text in single quotes",
4721
+ missing_closer: "the file stops before its closing brackets \u2014 whatever followed this line was already lost"
4722
+ };
4723
+ var GiveUp = class {
4724
+ static {
4725
+ __name(this, "GiveUp");
4726
+ }
4727
+ at;
4728
+ why;
4729
+ constructor(at2, why) {
4730
+ this.at = at2;
4731
+ this.why = why;
4732
+ }
4733
+ };
4734
+ var NUMBER = /^-?(0|[1-9]\d*)(\.\d+)?([eE][+-]?\d+)?/;
4735
+ var LITERAL = /^(true|false|null)/;
4736
+ var KEY = /^[A-Za-z_$][\w$.-]*/;
4737
+ var ENDS_VALUE = /^[\s,\]}/]?$/;
4738
+ var repairConfigText = /* @__PURE__ */ __name((text5) => {
4739
+ try {
4740
+ JSON.parse(text5);
4741
+ return { state: "valid" };
4742
+ } catch {
4743
+ }
4744
+ const fixes = [];
4745
+ const lineAt = /* @__PURE__ */ __name((offset) => text5.slice(0, offset).split("\n").length, "lineAt");
4746
+ const fix = /* @__PURE__ */ __name((kind2, offset) => fixes.push({ kind: kind2, line: lineAt(offset) }), "fix");
4747
+ const giveUp = /* @__PURE__ */ __name((why, offset = at2) => {
4748
+ throw new GiveUp(offset, why);
4749
+ }, "giveUp");
4750
+ let at2 = 0;
4751
+ let truncated = false;
4752
+ let last = "open";
4753
+ let lastEnd = 0;
4754
+ const previous = /* @__PURE__ */ __name(() => last, "previous");
4755
+ const skip = /* @__PURE__ */ __name(() => {
4756
+ for (; ; ) {
4757
+ while (/\s/.test(text5[at2] ?? ""))
4758
+ at2++;
4759
+ if (text5.startsWith("//", at2)) {
4760
+ fix("comment", at2);
4761
+ while (at2 < text5.length && text5[at2] !== "\n")
4762
+ at2++;
4763
+ } else if (text5.startsWith("/*", at2)) {
4764
+ const end = text5.indexOf("*/", at2 + 2);
4765
+ if (end < 0)
4766
+ giveUp("a /* comment is never closed");
4767
+ fix("comment", at2);
4768
+ at2 = end + 2;
4769
+ } else
4770
+ return;
4771
+ }
4772
+ }, "skip");
4773
+ const string2 = /* @__PURE__ */ __name(() => {
4774
+ const quote = text5[at2];
4775
+ const start = at2;
4776
+ if (quote === "'")
4777
+ fix("single_quotes", at2);
4778
+ at2++;
4779
+ let body = "";
4780
+ for (; ; ) {
4781
+ if (at2 >= text5.length)
4782
+ giveUp("the file stops inside a quoted text", start);
4783
+ const char = text5[at2];
4784
+ if (char === quote)
4785
+ break;
4786
+ if (text5.charCodeAt(at2) < 32)
4787
+ giveUp("a line break inside a quoted text");
4788
+ if (char === "\\") {
4789
+ const next = text5[at2 + 1] ?? "";
4790
+ if (quote === "'" && next === "'")
4791
+ body += "'";
4792
+ else if (/^["\\/bfnrt]$/.test(next))
4793
+ body += `\\${next}`;
4794
+ else if (next === "u" && /^[0-9a-fA-F]{4}$/.test(text5.slice(at2 + 2, at2 + 6))) {
4795
+ body += text5.slice(at2, at2 + 6);
4796
+ at2 += 4;
4797
+ } else
4798
+ giveUp("an escape JSON has no meaning for");
4799
+ at2 += 2;
4800
+ continue;
4801
+ }
4802
+ body += char === '"' ? '\\"' : char;
4803
+ at2++;
4804
+ }
4805
+ at2++;
4806
+ return JSON.parse(`"${body}"`);
4807
+ }, "string");
4808
+ const key = /* @__PURE__ */ __name(() => {
4809
+ const char = text5[at2] ?? "";
4810
+ if (char === '"' || char === "'")
4811
+ return string2();
4812
+ const word = KEY.exec(text5.slice(at2))?.[0];
4813
+ if (!word)
4814
+ return giveUp("something other than a key where a key should be");
4815
+ fix("unquoted_key", at2);
4816
+ at2 += word.length;
4817
+ return word;
4818
+ }, "key");
4819
+ const scalar = /* @__PURE__ */ __name(() => {
4820
+ const char = text5[at2] ?? "";
4821
+ if (char === '"' || char === "'")
4822
+ return { json: JSON.stringify(string2()) };
4823
+ const word = (NUMBER.exec(text5.slice(at2)) ?? LITERAL.exec(text5.slice(at2)))?.[0];
4824
+ if (!word || !ENDS_VALUE.test(text5[at2 + word.length] ?? ""))
4825
+ return giveUp("a value that is not JSON \u2014 text needs quotes, and only true, false and null go without");
4826
+ if (at2 + word.length === text5.length && NUMBER.test(word))
4827
+ giveUp("the file stops inside a number");
4828
+ at2 += word.length;
4829
+ return { json: word };
4830
+ }, "scalar");
4831
+ const members = /* @__PURE__ */ __name((close, one) => {
4832
+ const out = [];
4833
+ at2++;
4834
+ last = "open";
4835
+ let comma = -1;
4836
+ for (; ; ) {
4837
+ skip();
4838
+ if (truncated)
4839
+ return out;
4840
+ if (at2 >= text5.length) {
4841
+ if (previous() === "close")
4842
+ giveUp("the file stops after a closing bracket, so which brackets are missing has two readings");
4843
+ if (previous() === "comma")
4844
+ fix("trailing_comma", comma);
4845
+ fix("missing_closer", text5.length);
4846
+ truncated = true;
4847
+ return out;
4848
+ }
4849
+ const char = text5[at2];
4850
+ if (char === close) {
4851
+ if (previous() === "comma")
4852
+ fix("trailing_comma", comma);
4853
+ at2++;
4854
+ last = "close";
4855
+ return out;
4856
+ }
4857
+ if (char === "}" || char === "]")
4858
+ giveUp(`a ${char} where ${close} should close`);
4859
+ if (char === ",") {
4860
+ if (previous() !== "value" && previous() !== "close")
4861
+ giveUp("a comma with nothing before it");
4862
+ comma = at2;
4863
+ at2++;
4864
+ last = "comma";
4865
+ continue;
4866
+ }
4867
+ if (previous() === "value" || previous() === "close") {
4868
+ if (lineAt(at2) === lineAt(lastEnd))
4869
+ giveUp("two entries on one line with no comma between them");
4870
+ fix("missing_comma", lastEnd);
4871
+ }
4872
+ out.push(one());
4873
+ }
4874
+ }, "members");
4875
+ const value = /* @__PURE__ */ __name(() => {
4876
+ const char = text5[at2] ?? "";
4877
+ let node;
4878
+ if (char === "{") {
4879
+ const seen = /* @__PURE__ */ new Set();
4880
+ node = {
4881
+ object: members("}", () => {
4882
+ const start = at2;
4883
+ const name = key();
4884
+ if (seen.has(name))
4885
+ giveUp("a key appears twice in one object", start);
4886
+ seen.add(name);
4887
+ skip();
4888
+ if (at2 >= text5.length)
4889
+ giveUp("the file stops after a key, before its value");
4890
+ if (text5[at2] !== ":")
4891
+ giveUp("a key with no colon after it");
4892
+ at2++;
4893
+ skip();
4894
+ if (at2 >= text5.length)
4895
+ giveUp("the file stops after a key, before its value");
4896
+ return [name, value()];
4897
+ })
4898
+ };
4899
+ } else if (char === "[") {
4900
+ node = {
4901
+ array: members("]", () => {
4902
+ return value();
4903
+ })
4904
+ };
4905
+ } else
4906
+ node = scalar();
4907
+ if (!truncated) {
4908
+ last = "json" in node ? "value" : "close";
4909
+ lastEnd = at2;
4910
+ }
4911
+ return node;
4912
+ }, "value");
4913
+ try {
4914
+ if (text5.includes("\0") || text5.includes(String.fromCharCode(65533)))
4915
+ giveUp("the file is not text", 0);
4916
+ if (text5.charCodeAt(0) === 65279) {
4917
+ fix("byte_order_mark", 0);
4918
+ at2 = 1;
4919
+ }
4920
+ skip();
4921
+ if (text5[at2] !== "{")
4922
+ giveUp(at2 >= text5.length ? "the file is empty" : "the file does not start with {");
4923
+ const root = value();
4924
+ skip();
4925
+ if (at2 < text5.length)
4926
+ giveUp("more text after the closing }");
4927
+ const repaired = `${serialise(root, "")}
4928
+ `;
4929
+ JSON.parse(repaired);
4930
+ return { state: "repaired", text: repaired, fixes };
4931
+ } catch (error) {
4932
+ if (!(error instanceof GiveUp))
4933
+ throw error;
4934
+ const before = text5.slice(0, error.at).split("\n");
4935
+ return {
4936
+ state: "refused",
4937
+ line: before.length,
4938
+ column: (before.at(-1)?.length ?? 0) + 1,
4939
+ why: error.why
4940
+ };
4941
+ }
4942
+ }, "repairConfigText");
4943
+ var serialise = /* @__PURE__ */ __name((node, indent) => {
4944
+ if ("json" in node)
4945
+ return node.json;
4946
+ const inner = `${indent} `;
4947
+ 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)}`);
4948
+ const [open, close] = "object" in node ? ["{", "}"] : ["[", "]"];
4949
+ return parts.length === 0 ? `${open}${close}` : `${open}
4950
+ ${parts.join(",\n")}
4951
+ ${indent}${close}`;
4952
+ }, "serialise");
4953
+
4954
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
4623
4955
  var isNode = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
4624
4956
  var SECTIONS = ["personal", "bot"];
4625
4957
  var SHELL_SAFE = /^[A-Za-z0-9_.:@-]*$/;
@@ -4866,17 +5198,22 @@ var withoutPath = /* @__PURE__ */ __name((raw, at2) => {
4866
5198
  }, "withoutPath");
4867
5199
  var withoutSetting = /* @__PURE__ */ __name((raw, setting2) => withoutPath(raw, settingPathOf(setting2)), "withoutSetting");
4868
5200
  var publicIssue = /* @__PURE__ */ __name(({ at: _, ...issue }) => issue, "publicIssue");
5201
+ var fixVerb = /* @__PURE__ */ __name((issue) => issue.kind === "invalid_json" ? "repair" : "remove", "fixVerb");
4869
5202
  var issueMessage = /* @__PURE__ */ __name((issues, doctor = "doctor") => {
4870
5203
  const [first2] = issues;
4871
5204
  if (!first2)
4872
5205
  return "";
4873
5206
  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)`);
5207
+ 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
5208
  }, "issueMessage");
4876
- var checkConfigText = /* @__PURE__ */ __name((text5, { file, tool, schema: schema2, knownPermissions }) => {
5209
+ var checkConfigText = /* @__PURE__ */ __name((text5, { file, tool, schema: schema2, knownPermissions, repair = true }) => {
4877
5210
  const parsed = parseConfigText(text5, file);
4878
- if ("issue" in parsed)
4879
- return { issues: [publicIssue(parsed.issue)], config: void 0 };
5211
+ if ("issue" in parsed) {
5212
+ const issue = publicIssue(parsed.issue);
5213
+ if (repair && repairConfigText(text5).state === "repaired")
5214
+ issue.fix = `${tool} config repair`;
5215
+ return { issues: [issue], config: void 0 };
5216
+ }
4880
5217
  if (!isNode(parsed.raw))
4881
5218
  return { issues: [wholeFile(file, "the file must hold a JSON object")], config: void 0 };
4882
5219
  const context2 = { file, tool };
@@ -4889,7 +5226,7 @@ var checkConfigText = /* @__PURE__ */ __name((text5, { file, tool, schema: schem
4889
5226
  var wholeFile = /* @__PURE__ */ __name((file, what) => ({ kind: "invalid_value", file, what }), "wholeFile");
4890
5227
  var readConfigText = /* @__PURE__ */ __name((path2) => {
4891
5228
  try {
4892
- return { text: readFileSync(path2, "utf8") };
5229
+ return { text: readFileSync2(path2, "utf8") };
4893
5230
  } catch (error) {
4894
5231
  const code = error.code;
4895
5232
  if (code === "ENOENT")
@@ -4909,20 +5246,20 @@ var readConfigFile = /* @__PURE__ */ __name((path2) => {
4909
5246
  return "issue" in parsed ? { issue: publicIssue(parsed.issue) } : parsed;
4910
5247
  }, "readConfigFile");
4911
5248
 
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";
5249
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/default-config.js
5250
+ import { existsSync as existsSync2, linkSync, mkdirSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";
5251
+ import { dirname, join as join2 } from "node:path";
4915
5252
  var DEFAULT_CONFIG = {
4916
5253
  defaults: { limit: 20, keep_runs_for_days: 30, sends_per_hour: 30, update_check: true, skill_hint: true },
4917
5254
  profiles: {}
4918
5255
  };
4919
5256
  function ensureDefaultConfig(path2, config = DEFAULT_CONFIG) {
4920
- if (existsSync(path2))
5257
+ if (existsSync2(path2))
4921
5258
  return;
4922
5259
  const directory = dirname(path2);
4923
5260
  mkdirSync(directory, { recursive: true, mode: 448 });
4924
- const temporary = mkdtempSync(join(directory, ".config-"));
4925
- const candidate = join(temporary, "config.json");
5261
+ const temporary = mkdtempSync(join2(directory, ".config-"));
5262
+ const candidate = join2(temporary, "config.json");
4926
5263
  try {
4927
5264
  writeFileSync(candidate, `${JSON.stringify(config, null, 2)}
4928
5265
  `, { flag: "wx", mode: 384 });
@@ -4938,30 +5275,63 @@ function ensureDefaultConfig(path2, config = DEFAULT_CONFIG) {
4938
5275
  }
4939
5276
  __name(ensureDefaultConfig, "ensureDefaultConfig");
4940
5277
 
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");
5278
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/messenger/accounts.js
5279
+ import { existsSync as existsSync3, readdirSync as readdirSync2, readFileSync as readFileSync3 } from "node:fs";
5280
+ import { join as join3 } from "node:path";
5281
+ var accountFileFor = /* @__PURE__ */ __name((app, profile, env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "accounts", `${profile}.json`), "accountFileFor");
4945
5282
  var rememberAccount = /* @__PURE__ */ __name((app, profile, id6, env) => writeSecurely(accountFileFor(app, profile, env), `${JSON.stringify({ account: id6 })}
4946
5283
  `, 384), "rememberAccount");
4947
5284
  var recalledAccount = /* @__PURE__ */ __name((app, provider, profile, env) => {
4948
5285
  try {
4949
- const { account: account2 } = JSON.parse(readFileSync2(accountFileFor(app, profile, env), "utf8"));
5286
+ const { account: account2 } = JSON.parse(readFileSync3(accountFileFor(app, profile, env), "utf8"));
4950
5287
  return typeof account2 === "string" ? { provider, account: account2 } : void 0;
4951
5288
  } catch {
4952
5289
  return void 0;
4953
5290
  }
4954
5291
  }, "recalledAccount");
4955
5292
  var profilesWithAccounts = /* @__PURE__ */ __name((app, env) => {
4956
- const dir = join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "accounts");
4957
- if (!existsSync2(dir))
5293
+ const dir = join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "accounts");
5294
+ if (!existsSync3(dir))
4958
5295
  return [];
4959
- return readdirSync(dir).filter((name) => name.endsWith(".json")).map((name) => name.slice(0, -".json".length));
5296
+ return readdirSync2(dir).filter((name) => name.endsWith(".json")).map((name) => name.slice(0, -".json".length));
4960
5297
  }, "profilesWithAccounts");
4961
5298
  var profilesHere = /* @__PURE__ */ __name((app, configured, env) => [.../* @__PURE__ */ new Set([...configured, ...profilesWithAccounts(app, env)])].sort(), "profilesHere");
4962
5299
 
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";
5300
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/setting-defaults.js
5301
+ var isNode2 = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
5302
+ var parentOf = /* @__PURE__ */ __name((config, key) => {
5303
+ const path2 = key.split(".");
5304
+ const leaf = path2.pop();
5305
+ return { node: path2.reduce((node, part) => isNode2(node) ? node[part] : void 0, config), leaf };
5306
+ }, "parentOf");
5307
+ var withSettingDefaults = /* @__PURE__ */ __name((raw, declared) => {
5308
+ if (raw !== void 0 && !isNode2(raw))
5309
+ return { config: raw, added: [] };
5310
+ const config = raw === void 0 ? {} : structuredClone(raw);
5311
+ const added = [];
5312
+ for (const setting2 of declared) {
5313
+ const { node, leaf } = parentOf(config, setting2.key);
5314
+ if (!isNode2(node) || Object.hasOwn(node, leaf))
5315
+ continue;
5316
+ node[leaf] = setting2.default;
5317
+ added.push(setting2.key);
5318
+ }
5319
+ return { config, added };
5320
+ }, "withSettingDefaults");
5321
+ var settingRows = /* @__PURE__ */ __name((raw, declared) => declared.map((setting2) => {
5322
+ const { node, leaf } = isNode2(raw) ? parentOf(raw, setting2.key) : { node: void 0, leaf: "" };
5323
+ const written = isNode2(node) && Object.hasOwn(node, leaf);
5324
+ return {
5325
+ setting: setting2.key,
5326
+ value: written ? node[leaf] : setting2.default,
5327
+ default: setting2.default,
5328
+ from: written ? "config file" : "default",
5329
+ description: setting2.description
5330
+ };
5331
+ }), "settingRows");
5332
+
5333
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/settings.js
5334
+ import { existsSync as existsSync4 } from "node:fs";
4965
5335
  var DEFAULT_LIMIT = DEFAULT_CONFIG.defaults.limit;
4966
5336
  var DEFAULT_KEEP_RUNS_FOR_DAYS = DEFAULT_CONFIG.defaults.keep_runs_for_days;
4967
5337
  var DEFAULT_SENDS_PER_HOUR = DEFAULT_CONFIG.defaults.sends_per_hour;
@@ -5025,12 +5395,73 @@ var MESSENGER_ONLY_SETTINGS = [
5025
5395
  "history_dialog_days",
5026
5396
  "history_group_days",
5027
5397
  "history_group_members_max",
5028
- "read_other_bots"
5398
+ "read_other_bots",
5399
+ "speech_model",
5400
+ "picture_search"
5029
5401
  ];
5030
5402
  var SHARED_DEFAULTS_ONLY = {
5031
5403
  update_check: optional(flag),
5032
5404
  skill_hint: optional(flag)
5033
5405
  };
5406
+ var SHARED_SETTINGS = [
5407
+ { key: "limit", default: DEFAULT_LIMIT, description: "how many items a list shows at once" },
5408
+ { key: "keep_runs_for_days", default: DEFAULT_KEEP_RUNS_FOR_DAYS, description: "days a run is kept" },
5409
+ {
5410
+ key: "sends_per_hour",
5411
+ default: DEFAULT_SENDS_PER_HOUR,
5412
+ description: "the most messages an account sends in an hour; a bot has none unless its section sets one"
5413
+ },
5414
+ { key: "update_check", default: true, description: "check once a day for a newer version" },
5415
+ {
5416
+ key: "skill_hint",
5417
+ default: true,
5418
+ description: "tell an agent once a day that `skill install` would give it this tool's guide"
5419
+ },
5420
+ { key: "record", default: true, description: "keep every run in runs list; false keeps failed runs only" },
5421
+ {
5422
+ key: "record_input",
5423
+ default: true,
5424
+ description: `keep what was typed in a run's command line: true, false, or "failed" for failed runs only`
5425
+ },
5426
+ {
5427
+ key: "keep_successful_runs_for_days",
5428
+ default: KEEP_SUCCESSFUL_RUNS_FOR_DAYS,
5429
+ description: "days a successful run is kept"
5430
+ },
5431
+ { key: "runs_size_limit_mb", default: RUNS_SIZE_LIMIT_MB, description: "the most megabytes all runs may take" },
5432
+ { key: "sender_colors", default: false, description: "color each sender's name in a conversation" },
5433
+ { key: "search_catch_up", default: false, description: "prepare local search after a gaps repair" },
5434
+ {
5435
+ key: "history_dialog_days",
5436
+ default: DEFAULT_HISTORY_LIMITS.dialogDays,
5437
+ description: "days of a one-to-one chat's pushed history the store keeps"
5438
+ },
5439
+ {
5440
+ key: "history_group_days",
5441
+ default: DEFAULT_HISTORY_LIMITS.groupDays,
5442
+ description: "days of a group's pushed history the store keeps"
5443
+ },
5444
+ {
5445
+ key: "history_group_members_max",
5446
+ default: DEFAULT_HISTORY_LIMITS.groupMembersMax,
5447
+ description: "a group with more people than this keeps no pushed history"
5448
+ },
5449
+ {
5450
+ key: "picture_search",
5451
+ default: false,
5452
+ description: "search and images embed read the pictures themselves, with a model on this computer"
5453
+ },
5454
+ {
5455
+ key: "search_reranker",
5456
+ default: DEFAULT_RERANK_MODEL,
5457
+ description: "the reranker that orders search's first hits, or off"
5458
+ },
5459
+ {
5460
+ key: "embedding_provider",
5461
+ default: AI_DEFAULTS.embeddingProvider,
5462
+ description: "local or openai: what turns text into vectors for search by meaning"
5463
+ }
5464
+ ];
5034
5465
  var NONE_NAMED = "none named";
5035
5466
  var NO_PROFILE = "default";
5036
5467
  var namedProfile = /* @__PURE__ */ __name((settings) => settings.sources?.profile === NONE_NAMED ? void 0 : settings.profile, "namedProfile");
@@ -5083,12 +5514,14 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
5083
5514
  const defaultsOnlyKeys = Object.keys(defaultsOnly);
5084
5515
  const botOnlyKeys = Object.keys(BOT_ONLY_ENTRIES);
5085
5516
  const allSettings = [...Object.keys(profileEntries), ...botOnlyKeys, ...defaultsOnlyKeys].filter((setting2) => app.messenger !== false || !MESSENGER_ONLY_SETTINGS.includes(setting2) || app.sends === true && setting2 === "sends_per_hour");
5517
+ const readSchema = extension.schema ?? schema2;
5518
+ 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}` }));
5519
+ const withDefaults = /* @__PURE__ */ __name((raw, except = []) => withSettingDefaults(isScope(raw) && !Object.hasOwn(raw, "defaults") ? { ...raw, defaults: {} } : raw, declaredSettings.filter(({ key }) => !except.includes(key))), "withDefaults");
5086
5520
  const PROFILE = envName(app, "PROFILE");
5087
5521
  const PROFILE_LOCK = envName(app, "PROFILE_LOCK");
5088
5522
  const TIMEOUT = envName(app, "TIMEOUT");
5089
5523
  const REQUESTS_PER_MINUTE = envName(app, "REQUESTS_PER_MINUTE");
5090
5524
  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
5525
  const context2 = /* @__PURE__ */ __name((file) => ({ file, tool: app.command }), "context");
5093
5526
  const loadConfig = /* @__PURE__ */ __name((path2) => {
5094
5527
  const read = readConfigText(path2);
@@ -5096,7 +5529,12 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
5096
5529
  return { config: { profiles: {} }, issues: [read.issue] };
5097
5530
  if (read.text === void 0)
5098
5531
  return { config: { profiles: {} }, issues: [] };
5099
- const { config, issues } = checkConfigText(read.text, { file: path2, tool: app.command, schema: readSchema });
5532
+ const { config, issues } = checkConfigText(read.text, {
5533
+ file: path2,
5534
+ tool: app.command,
5535
+ schema: readSchema,
5536
+ repair: extension.configRepair !== false
5537
+ });
5100
5538
  return { config: config ?? { profiles: {} }, issues };
5101
5539
  }, "loadConfig");
5102
5540
  const locked = /* @__PURE__ */ __name((profile, lock) => {
@@ -5119,12 +5557,21 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
5119
5557
  throw new CliError("validation_error", `name a profile: \`${app.command} <profile> \u2026\` \u2014 profiles here: ${here.join(", ")} (or set ${PROFILE})`, { profiles: here });
5120
5558
  }, "unnamed");
5121
5559
  const profilesOf = /* @__PURE__ */ __name((config, env) => profilesHere(app, [...namedProfiles(config), ...extension.profiles?.(env) ?? []], env), "profilesOf");
5560
+ const botsOf = /* @__PURE__ */ __name((config, env) => [.../* @__PURE__ */ new Set([...Object.keys(config.bot?.profiles ?? {}), ...registryProfiles(app, env)])].sort(), "botsOf");
5561
+ const accountsOf = /* @__PURE__ */ __name((config, env, bots) => {
5562
+ const personal = /* @__PURE__ */ new Set([
5563
+ ...Object.keys(config.personal?.profiles ?? {}),
5564
+ ...profilesWithAccounts(app, env),
5565
+ ...extension.profiles?.(env) ?? []
5566
+ ]);
5567
+ return profilesOf(config, env).filter((name) => !bots.includes(name) || personal.has(name));
5568
+ }, "accountsOf");
5122
5569
  const resolveSettings = /* @__PURE__ */ __name((flags = {}, options = {}) => {
5123
5570
  const env = options.env ?? process.env;
5124
5571
  const configPath = configPathFor(options);
5125
5572
  try {
5126
5573
  if (!options.readOnly)
5127
- ensureDefaultConfig(configPath);
5574
+ ensureDefaultConfig(configPath, withDefaults(DEFAULT_CONFIG).config);
5128
5575
  } catch (error) {
5129
5576
  throw new CliError("configuration_error", error instanceof Error ? error.message : String(error));
5130
5577
  }
@@ -5140,6 +5587,7 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
5140
5587
  ], void 0);
5141
5588
  const profile = locked(named2.value === void 0 ? unnamed(config, env, options.needsProfile !== false) : { value: named2.value, from: named2.from }, lock);
5142
5589
  const kind2 = options.kind ?? "personal";
5590
+ const bots = botsOf(config, env);
5143
5591
  const name = usableProfileName(profile.value);
5144
5592
  const configured = config.profiles[name] ?? {};
5145
5593
  const shared = config.defaults ?? {};
@@ -5231,9 +5679,11 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
5231
5679
  updateCheck: updateCheck.value,
5232
5680
  skillHint: skillHint.value,
5233
5681
  configPath,
5234
- configFound: existsSync3(configPath),
5682
+ configFound: existsSync4(configPath),
5235
5683
  configuredProfiles: namedProfiles(config),
5236
5684
  profilesHere: profilesOf(config, env),
5685
+ accountProfiles: accountsOf(config, env, bots),
5686
+ botProfiles: bots,
5237
5687
  sources: {
5238
5688
  ...ai.sources,
5239
5689
  profile: profile.from,
@@ -5302,7 +5752,7 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
5302
5752
  throw new CliError("validation_error", `${setting2} has no problem to remove \u2014 name the profile, or add --defaults, to unset a setting`);
5303
5753
  if (!known && valueAt(raw, at2) === void 0)
5304
5754
  throw new CliError("validation_error", `no setting called "${setting2}" \u2014 one of: ${allSettings.join(", ")}`);
5305
- saveConfigFile(path2, withoutPath(raw, at2).config);
5755
+ saveConfigFile(path2, withDefaults(withoutPath(raw, at2).config, [at2.join(".")]).config);
5306
5756
  return null;
5307
5757
  }
5308
5758
  if (!known)
@@ -5316,20 +5766,41 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
5316
5766
  if (kind2 !== "bot" && botOnlyKeys.includes(setting2)) {
5317
5767
  throw new CliError("validation_error", `${setting2} is a bot's setting \u2014 add --bot`);
5318
5768
  }
5319
- const changed = structuredClone(raw);
5320
- setAt(changed, at2, level2 === void 0 ? parseValue(value) : value.trim());
5321
5769
  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("."));
5770
+ const tried = /* @__PURE__ */ __name((typed2) => {
5771
+ const changed2 = structuredClone(raw);
5772
+ setAt(changed2, at2, typed2);
5773
+ const added2 = schemaIssues(changed2, readSchema, context2(path2)).find((issue) => !had.has(issue.at.join(".")) || issue.at.join(".") === at2.join("."));
5774
+ return { changed: changed2, added: added2 };
5775
+ }, "tried");
5776
+ const parsed = level2 === void 0 ? parseValue(value) : value.trim();
5777
+ let { changed, added } = tried(parsed);
5778
+ if (added && typeof parsed !== "string") {
5779
+ const asText = tried(value.trim());
5780
+ if (!asText.added)
5781
+ ({ changed, added } = asText);
5782
+ }
5323
5783
  if (added)
5324
5784
  throw new CliError("validation_error", `${setting2} cannot be "${value}": ${added.what}`);
5325
5785
  const checked = safeParse(readSchema, changed);
5326
- saveConfigFile(path2, checked.success ? checked.output : changed);
5786
+ saveConfigFile(path2, withDefaults(checked.success ? checked.output : changed).config);
5327
5787
  return valueAt(checked.success ? checked.output : changed, at2) ?? null;
5328
5788
  }, "changeSetting");
5789
+ const migrate = /* @__PURE__ */ __name((path2) => {
5790
+ const read = readConfigFile(path2);
5791
+ if ("issue" in read)
5792
+ throw new CliError("configuration_error", issueMessage([read.issue]));
5793
+ const { config, added } = withDefaults(read.raw);
5794
+ if (added.length > 0)
5795
+ saveConfigFile(path2, config);
5796
+ return added;
5797
+ }, "migrate");
5329
5798
  return {
5330
5799
  resolveSettings,
5331
5800
  configuredProfiles,
5332
5801
  changeSetting,
5802
+ migrate,
5803
+ declaredSettings,
5333
5804
  allSettings,
5334
5805
  defaultsOnlyKeys,
5335
5806
  schema: schema2,
@@ -5370,7 +5841,7 @@ var given = /* @__PURE__ */ __name((value) => {
5370
5841
  return trimmed === void 0 || trimmed === "" ? void 0 : trimmed;
5371
5842
  }, "given");
5372
5843
 
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
5844
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/background/budget.js
5374
5845
  var DEADLINE_MARGIN_MS = 5e3;
5375
5846
  var DEADLINE_MARGIN_SHARE = 0.15;
5376
5847
  var DEFAULT_REQUEST_MS = 2e3;
@@ -5413,7 +5884,7 @@ var runBudget = /* @__PURE__ */ __name(({ requests, deadline, requestMs, signal,
5413
5884
  };
5414
5885
  }, "runBudget");
5415
5886
 
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
5887
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/context.js
5417
5888
  var runBudgetOf = /* @__PURE__ */ __name((command, requests) => {
5418
5889
  const { deadline, signal, app } = environmentOf(command);
5419
5890
  const now = deadline?.();
@@ -5536,7 +6007,7 @@ var commandPath = /* @__PURE__ */ __name((command) => {
5536
6007
  return words.join(" ");
5537
6008
  }, "commandPath");
5538
6009
 
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
6010
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/effects.js
5540
6011
  var REMOTE_READ = { remote: "read", local: "read" };
5541
6012
  var FETCH = { remote: "read", local: "write" };
5542
6013
  var REMOTE_WRITE = { remote: "write", local: "write" };
@@ -5572,6 +6043,30 @@ var destroysNothing = /* @__PURE__ */ __name((command) => {
5572
6043
  KEPT_UNDER_LOCK.add(command);
5573
6044
  return command;
5574
6045
  }, "destroysNothing");
6046
+ var PROPOSE_COMMANDS = ["messages acknowledge", "mail findings add"];
6047
+ var PROPOSES = /* @__PURE__ */ new WeakSet();
6048
+ var proposesOnly = /* @__PURE__ */ __name((command) => {
6049
+ PROPOSES.add(command);
6050
+ return command;
6051
+ }, "proposesOnly");
6052
+ var isProposal = /* @__PURE__ */ __name((command) => {
6053
+ if (!PROPOSES.has(command))
6054
+ return false;
6055
+ const path2 = pathOf2(command).join(" ");
6056
+ return PROPOSE_COMMANDS.some((listed) => path2 === listed || path2.endsWith(` ${listed}`));
6057
+ }, "isProposal");
6058
+ var LOCKED_AUTHORITY_COMMANDS = ["rules add"];
6059
+ var NARROWS = /* @__PURE__ */ new WeakSet();
6060
+ var narrowsUnderLock = /* @__PURE__ */ __name((command) => {
6061
+ NARROWS.add(command);
6062
+ return command;
6063
+ }, "narrowsUnderLock");
6064
+ var admittedUnderLock = /* @__PURE__ */ __name((command) => {
6065
+ if (!NARROWS.has(command))
6066
+ return false;
6067
+ const path2 = pathOf2(command).join(" ");
6068
+ return LOCKED_AUTHORITY_COMMANDS.some((listed) => path2 === listed || path2.endsWith(` ${listed}`));
6069
+ }, "admittedUnderLock");
5575
6070
  var STORE_WRITES = /* @__PURE__ */ new WeakSet();
5576
6071
  var changesStore = /* @__PURE__ */ __name((command) => {
5577
6072
  STORE_WRITES.add(command);
@@ -5609,7 +6104,7 @@ var readsOverMcpAt = /* @__PURE__ */ __name((root) => (path2) => {
5609
6104
  }, "readsOverMcpAt");
5610
6105
  var isStoreChange = /* @__PURE__ */ __name((command) => {
5611
6106
  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);
6107
+ return (effects?.remote === "none" || STORE_WRITES.has(command)) && effects?.local === "write" && !KEPT_UNDER_LOCK.has(command) && !isProposal(command) && !changesAuthority(command) && writesFileNow(command);
5613
6108
  }, "isStoreChange");
5614
6109
  var STORE_CHANGE_REFUSAL = "change the message store";
5615
6110
  var previewFlag = /* @__PURE__ */ __name((program2) => program2.options.some((option) => option.long === "--dry-run") ? " --dry-run" : "", "previewFlag");
@@ -5657,7 +6152,7 @@ var refuseUnderReadOnly = /* @__PURE__ */ __name((command, what) => {
5657
6152
  throw readOnlyRefusal(lock, what);
5658
6153
  }, "refuseUnderReadOnly");
5659
6154
 
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
6155
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/member.js
5661
6156
  var member = strictObject({
5662
6157
  id,
5663
6158
  name: nullable(text),
@@ -5680,7 +6175,7 @@ var member = strictObject({
5680
6175
  check: optional(record(string(), unknown()))
5681
6176
  });
5682
6177
 
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
6178
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/chat.js
5684
6179
  var setting = optional(nullable(boolean()));
5685
6180
  var chat = strictObject({
5686
6181
  ref: reference,
@@ -5721,7 +6216,7 @@ var chat = strictObject({
5721
6216
  members: optional(array(member))
5722
6217
  });
5723
6218
 
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
6219
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/list-results.js
5725
6220
  var botProfile = strictObject({
5726
6221
  name: text,
5727
6222
  token: text,
@@ -5789,7 +6284,7 @@ var stickerInventory = strictObject({
5789
6284
  url: optional(nullable(text))
5790
6285
  });
5791
6286
 
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
6287
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/batch-result.js
5793
6288
  var actionableError = objectWithRest({
5794
6289
  code: text,
5795
6290
  message: text,
@@ -5806,7 +6301,7 @@ var batchResult = strictObject({
5806
6301
  max_error_percent: count
5807
6302
  });
5808
6303
 
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
6304
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/conversation-preparation.js
5810
6305
  var conversationBuild = strictObject({
5811
6306
  chat: id,
5812
6307
  messages: count,
@@ -5831,15 +6326,15 @@ var catchUpPreparation = strictObject({
5831
6326
  prepared: optional(conversationPreparation)
5832
6327
  });
5833
6328
 
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
6329
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
5835
6330
  import { spawn } from "node:child_process";
5836
6331
  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";
6332
+ import { closeSync, existsSync as existsSync6, mkdirSync as mkdirSync2, openSync, readdirSync as readdirSync3, readFileSync as readFileSync5, realpathSync, rmSync as rmSync3 } from "node:fs";
6333
+ import { dirname as dirname2, join as join5 } from "node:path";
5839
6334
 
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";
6335
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/background/checkpoints.js
6336
+ import { existsSync as existsSync5, readFileSync as readFileSync4, rmSync as rmSync2 } from "node:fs";
6337
+ import { join as join4 } from "node:path";
5843
6338
  var PART = /^[\w@+-][\w.@+-]{0,99}$/;
5844
6339
  var checkpointPath = /* @__PURE__ */ __name((state, profile, job2) => {
5845
6340
  for (const part of [profile, job2]) {
@@ -5847,11 +6342,11 @@ var checkpointPath = /* @__PURE__ */ __name((state, profile, job2) => {
5847
6342
  throw new CliError("validation_error", `a checkpoint is named by letters, digits, ".", "@" and "-" \u2014 not "${part}"`);
5848
6343
  }
5849
6344
  }
5850
- return join3(state, "checkpoints", profile, `${job2}.json`);
6345
+ return join4(state, "checkpoints", profile, `${job2}.json`);
5851
6346
  }, "checkpointPath");
5852
6347
  var readCheckpoint = /* @__PURE__ */ __name((path2) => {
5853
6348
  try {
5854
- return existsSync4(path2) ? JSON.parse(readFileSync3(path2, "utf8")) : void 0;
6349
+ return existsSync5(path2) ? JSON.parse(readFileSync4(path2, "utf8")) : void 0;
5855
6350
  } catch {
5856
6351
  return void 0;
5857
6352
  }
@@ -5877,7 +6372,7 @@ var progressOf = /* @__PURE__ */ __name((input) => {
5877
6372
  };
5878
6373
  }, "progressOf");
5879
6374
 
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
6375
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/runs/record-log.js
5881
6376
  var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) => {
5882
6377
  const run = currentRun();
5883
6378
  const trace = traceId ?? run.traceId;
@@ -5891,7 +6386,7 @@ var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) =
5891
6386
  }));
5892
6387
  }, "recordLogFor");
5893
6388
 
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
6389
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
5895
6390
  var JOB_STATES = ["running", "done", "partial", "failed", "cancelled", "died"];
5896
6391
  var spawnDetached = /* @__PURE__ */ __name((argv, env, log) => {
5897
6392
  const out = openSync(log, "a", 384);
@@ -5907,23 +6402,23 @@ var spawnDetached = /* @__PURE__ */ __name((argv, env, log) => {
5907
6402
  closeSync(out);
5908
6403
  }
5909
6404
  }, "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");
6405
+ var jobsDir = /* @__PURE__ */ __name((app, env) => join5(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "backfill"), "jobsDir");
6406
+ var jobPath = /* @__PURE__ */ __name((dir, id6) => join5(dir, `${id6}.json`), "jobPath");
5912
6407
  var saveJob = /* @__PURE__ */ __name((dir, job2) => {
5913
6408
  mkdirSync2(dir, { recursive: true, mode: 448 });
5914
6409
  writeSecurely(jobPath(dir, job2.id), `${JSON.stringify(job2, null, 2)}
5915
6410
  `, 384);
5916
6411
  }, "saveJob");
5917
6412
  var readJob = /* @__PURE__ */ __name((dir, id6) => {
5918
- if (!/^[\w-]+$/.test(id6) || !existsSync5(jobPath(dir, id6)))
6413
+ if (!/^[\w-]+$/.test(id6) || !existsSync6(jobPath(dir, id6)))
5919
6414
  return void 0;
5920
6415
  try {
5921
- return JSON.parse(readFileSync4(jobPath(dir, id6), "utf8"));
6416
+ return JSON.parse(readFileSync5(jobPath(dir, id6), "utf8"));
5922
6417
  } catch {
5923
6418
  return void 0;
5924
6419
  }
5925
6420
  }, "readJob");
5926
- var recordsPath = /* @__PURE__ */ __name((dir, id6) => join4(dir, `${id6}.jsonl`), "recordsPath");
6421
+ var recordsPath = /* @__PURE__ */ __name((dir, id6) => join5(dir, `${id6}.jsonl`), "recordsPath");
5927
6422
  var tracedJob = /* @__PURE__ */ __name((env) => {
5928
6423
  const trace = childTrace();
5929
6424
  return { env: { ...env, TRACEPARENT: trace.traceparent }, traceId: trace.traceId };
@@ -5941,11 +6436,11 @@ var finishJob = /* @__PURE__ */ __name((app, dir, id6, change) => {
5941
6436
  const job2 = readJob(dir, id6);
5942
6437
  if (!job2)
5943
6438
  return;
5944
- const outcome2 = stateOf(job2);
6439
+ const outcome3 = stateOf(job2);
5945
6440
  recordLogFor(recordsPath(dir, id6), app, job2.traceId ? { traceId: job2.traceId } : {})[job2.error ? "error" : "info"]({
5946
6441
  event: "job.exit",
5947
6442
  job: id6,
5948
- outcome: outcome2,
6443
+ outcome: outcome3,
5949
6444
  ...job2.error ? { errorCode: job2.error.code } : {}
5950
6445
  });
5951
6446
  }, "finishJob");
@@ -5960,7 +6455,7 @@ var removeJob = /* @__PURE__ */ __name((dir, job2) => {
5960
6455
  if (dirname2(job2.log) === dir)
5961
6456
  rmSync3(job2.log, { force: true });
5962
6457
  }, "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");
6458
+ 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
6459
  var jobDetails = /* @__PURE__ */ __name((job2) => ({
5965
6460
  job: job2.id,
5966
6461
  profile: job2.profile,
@@ -6026,7 +6521,7 @@ var startArchiveJob = /* @__PURE__ */ __name((app, env, profile, input, spawnJob
6026
6521
  const startedAt = (/* @__PURE__ */ new Date()).toISOString();
6027
6522
  const id6 = `${startedAt.replace(/[-:]/g, "").slice(0, 15)}-${randomBytes(3).toString("hex")}`;
6028
6523
  mkdirSync2(dir, { recursive: true, mode: 448 });
6029
- const log = join4(dir, `${id6}.log`);
6524
+ const log = join5(dir, `${id6}.log`);
6030
6525
  const job2 = {
6031
6526
  id: id6,
6032
6527
  chat: input.chat,
@@ -6046,7 +6541,7 @@ var startArchiveJob = /* @__PURE__ */ __name((app, env, profile, input, spawnJob
6046
6541
  return { job: id6, pid, chat: input.chat, log };
6047
6542
  }, "startArchiveJob");
6048
6543
 
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
6544
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/job.js
6050
6545
  var problem = strictObject({ code: text, message: text });
6051
6546
  var job = strictObject({
6052
6547
  id,
@@ -6069,7 +6564,7 @@ var job = strictObject({
6069
6564
  error: optional(problem)
6070
6565
  });
6071
6566
 
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
6567
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/message.js
6073
6568
  var quoted = strictObject({
6074
6569
  id,
6075
6570
  sender_id: nullable(id),
@@ -6171,12 +6666,24 @@ var message = strictObject({
6171
6666
  read: nullable(boolean()),
6172
6667
  flagged: nullable(boolean()),
6173
6668
  /** 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)) }))
6669
+ sender_score: optional(strictObject({ score: number(), signals: array(text), demoted: optional(literal(true)) })),
6670
+ /** Mail `review`: filed in the mailbox of mail sent to many. */
6671
+ bulk: optional(boolean()),
6672
+ /** Mail `review`: its List-Id, `null` when it has none. */
6673
+ list_id: optional(nullable(text)),
6674
+ /** Mail `review`: the mail rule that decided how it is stored, by its id in `rules list`; `null` when none. */
6675
+ rule_id: optional(nullable(number())),
6676
+ /** Mail `review`: the evidence fingerprint a finding cites this email by. */
6677
+ fingerprint: optional(pipe(text, regex(/^[a-f0-9]{64}$/))),
6678
+ /** Mail `review`: no earlier stored email, in any account, came from this address. */
6679
+ new_sender: optional(boolean()),
6680
+ /** Mail `review`: how many identities the sender's person has; 1 is this address alone. */
6681
+ sender_identities: optional(number())
6175
6682
  })),
6176
6683
  provider_metadata: providerMetadata
6177
6684
  });
6178
6685
 
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
6686
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/extraction-report.js
6180
6687
  var extractionItem = strictObject({
6181
6688
  ref: reference,
6182
6689
  attachment: count,
@@ -6209,7 +6716,7 @@ var extractionReport = strictObject({
6209
6716
  cursor: optional(text)
6210
6717
  });
6211
6718
 
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
6719
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/message-transfer.js
6213
6720
  var savedMessageFile = strictObject({
6214
6721
  kind: text,
6215
6722
  path: text,
@@ -6296,7 +6803,7 @@ var messageSyncAll = strictObject({
6296
6803
  var messageSyncStarted = strictObject({ job: id, pid: count, chat: text, log: text });
6297
6804
  var messageSync = union([messageSyncEstimate, messageSyncChat, messageSyncAll, messageSyncStarted]);
6298
6805
 
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
6806
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/store-records.js
6300
6807
  var range = strictObject({ from: number(), to: number() });
6301
6808
  var storeChatStatus = strictObject({
6302
6809
  chat_id: id,
@@ -6308,6 +6815,13 @@ var storeChatStatus = strictObject({
6308
6815
  last_stored_at: nullable(time),
6309
6816
  held: array(range)
6310
6817
  });
6818
+ var chatCoverage = strictObject({
6819
+ chats: count,
6820
+ fetched: count,
6821
+ partial: count,
6822
+ never: count,
6823
+ oldest_message_at: nullable(time)
6824
+ });
6311
6825
  var storeClear = strictObject({
6312
6826
  cleared: boolean(),
6313
6827
  dry_run: optional(literal(true)),
@@ -6387,7 +6901,7 @@ var storeJobRetry = union([
6387
6901
  ]);
6388
6902
  var storeJobClear = strictObject({ cleared: array(id) });
6389
6903
 
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
6904
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/account.js
6391
6905
  var account = strictObject({
6392
6906
  provider: text,
6393
6907
  id,
@@ -6397,7 +6911,7 @@ var account = strictObject({
6397
6911
  scope: optional(picklist(["personal", "work"]))
6398
6912
  });
6399
6913
 
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
6914
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/account-session.js
6401
6915
  var accountSession = strictObject({
6402
6916
  current: boolean(),
6403
6917
  client: nullable(text),
@@ -6407,7 +6921,7 @@ var accountSession = strictObject({
6407
6921
  created_at: optional(nullable(time))
6408
6922
  });
6409
6923
 
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
6924
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/account-change.js
6411
6925
  var accountChange = strictObject({ operation_id: id, account: omit(account, ["provider", "scope"]) });
6412
6926
  var endedAccountSessions = strictObject({ operation_id: id, sessions: array(accountSession) });
6413
6927
  var audience = picklist(["everyone", "contacts", "nobody"]);
@@ -6425,17 +6939,19 @@ var accountPrivacy = strictObject({
6425
6939
  });
6426
6940
  var accountPrivacyChange = strictObject({ operation_id: id, privacy: accountPrivacy });
6427
6941
 
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
6942
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/account-profile.js
6429
6943
  var accountProfile = strictObject({
6430
6944
  profile: id,
6431
6945
  current: boolean(),
6432
6946
  account: nullable(id),
6433
6947
  name: nullable(text),
6434
6948
  /** False for a profile with no session on this computer; absent when the messenger does not say. */
6435
- signed_in: optional(boolean())
6949
+ signed_in: optional(boolean()),
6950
+ /** True when the same name is a bot profile too (`<tool> <profile> bot …`); absent otherwise. */
6951
+ bot: optional(literal(true))
6436
6952
  });
6437
6953
 
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
6954
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/counter-reading.js
6439
6955
  var milliseconds = pipe(number(), minValue(0));
6440
6956
  var counterReading = strictObject({
6441
6957
  counter: picklist(["views", "reactions", "comments"]),
@@ -6447,7 +6963,7 @@ var counterReading = strictObject({
6447
6963
  });
6448
6964
  var selection = record(string(), unknown());
6449
6965
 
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
6966
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/admin-report.js
6451
6967
  var adminRow = strictObject({
6452
6968
  ref: reference,
6453
6969
  /** What `stats * evidence` takes: a person id, a stay or a message locator. */
@@ -6500,11 +7016,11 @@ var adminReport = strictObject({
6500
7016
  rows: array(adminRow)
6501
7017
  });
6502
7018
 
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
7019
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/analysis-consent.js
6504
7020
  var analysisConsent = strictObject({ chat: id, provider: text, at: time });
6505
7021
  var analysisConsentRevocation = strictObject({ revoked: boolean() });
6506
7022
 
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
7023
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/attachment-results.js
6508
7024
  var fingerprint = pipe(text, regex(/^[a-f0-9]{64}$/));
6509
7025
  var attachmentBytes = strictObject({
6510
7026
  ref: reference,
@@ -6532,7 +7048,7 @@ var attachmentTextChange = strictObject({
6532
7048
  replaced: nullable(picklist(["extracted", "agent"]))
6533
7049
  });
6534
7050
 
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
7051
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/chart.js
6536
7052
  var chart = strictObject({
6537
7053
  version: literal(1),
6538
7054
  kind: picklist(["bar", "line", "grouped-bar"]),
@@ -6547,7 +7063,7 @@ var chart = strictObject({
6547
7063
  file: optional(strictObject({ path: text, format: picklist(["svg", "png"]), width: count, height: count }))
6548
7064
  });
6549
7065
 
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
7066
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/folder.js
6551
7067
  var named = strictObject({
6552
7068
  id,
6553
7069
  title: nullable(text),
@@ -6570,7 +7086,7 @@ var folder = strictObject({
6570
7086
  excluded_chats: optional(array(named))
6571
7087
  });
6572
7088
 
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
7089
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/invite-link.js
6574
7090
  var inviteLink = strictObject({
6575
7091
  link: text,
6576
7092
  /** Who joins by it asks first, and an admin lets them in. */
@@ -6586,7 +7102,7 @@ var inviteLink = strictObject({
6586
7102
  joined_count: optional(count)
6587
7103
  });
6588
7104
 
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
7105
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/chat-admin.js
6590
7106
  var operated = { operation_id: id, chat_id: id };
6591
7107
  var group = strictObject({
6592
7108
  ...omit(chat, ["ref", "provider", "account", "invite_link", "members"]).entries,
@@ -6666,7 +7182,7 @@ var chatFolderOrder = strictObject({
6666
7182
  folders: array(strictObject({ id, title: text }))
6667
7183
  });
6668
7184
 
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
7185
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/chat-change.js
6670
7186
  var operated2 = { operation_id: id, chat_id: id };
6671
7187
  var chatRemoval = strictObject(operated2);
6672
7188
  var chatMuting = strictObject({
@@ -6677,7 +7193,7 @@ var chatArchive = strictObject({ ...operated2, archived: boolean() });
6677
7193
  var chatPin = strictObject({ ...operated2, pinned: boolean() });
6678
7194
  var chatUnread = strictObject({ ...operated2, unread: literal(true) });
6679
7195
 
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
7196
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/chat-event.js
6681
7197
  var who = strictObject({ id: nullable(id), name: nullable(text), username: optional(nullable(text)) });
6682
7198
  var chatEvent = strictObject({
6683
7199
  chat_id: id,
@@ -6694,7 +7210,7 @@ var chatEvent = strictObject({
6694
7210
  before: optional(strictObject({ name: nullable(text), username: nullable(text) }))
6695
7211
  });
6696
7212
 
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
7213
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/chat-metadata.js
6698
7214
  var chatMetadata = strictObject({
6699
7215
  chat_id: id,
6700
7216
  title: nullable(text),
@@ -6709,7 +7225,7 @@ var chatMetadataRefresh = strictObject({
6709
7225
  has_more: boolean()
6710
7226
  });
6711
7227
 
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
7228
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/chat-moderation.js
6713
7229
  var action = picklist(["report", "delete", "remove"]);
6714
7230
  var level = picklist(["deny", "readonly", "ask", "allow"]);
6715
7231
  var chatRules = strictObject({
@@ -6746,7 +7262,7 @@ var chatModeration = strictObject({
6746
7262
  }))
6747
7263
  });
6748
7264
 
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
7265
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/chat-stats.js
6750
7266
  var optionalCount = optional(count);
6751
7267
  var minutes = nullable(number());
6752
7268
  var chatStats = strictObject({
@@ -6797,18 +7313,30 @@ var chatStats = strictObject({
6797
7313
  })),
6798
7314
  series: optional(array(strictObject({ key: text, messages: count, senders: count, joined: optionalCount, left: optionalCount })))
6799
7315
  });
7316
+ var ms = nullable(pipe(number(), minValue(0)));
6800
7317
  var taskStats = strictObject({
6801
7318
  /** Open tasks across every row. */
6802
7319
  open: count,
7320
+ created: count,
7321
+ closed: count,
7322
+ median_close_ms: ms,
7323
+ mean_open_age_ms: ms,
6803
7324
  rows: array(strictObject({
6804
- chat: reference,
7325
+ /** Rows of `--by chat` only. */
7326
+ chat: optional(reference),
7327
+ /** The chat reference, `meeting:<account>/<meeting>` or `project:<id>`. */
7328
+ key: text,
7329
+ name: nullable(text),
6805
7330
  open: count,
7331
+ created: count,
7332
+ closed: count,
6806
7333
  oldest_open_at: nullable(time),
6807
- median_close_ms: nullable(pipe(number(), minValue(0)))
7334
+ median_close_ms: ms,
7335
+ mean_open_age_ms: ms
6808
7336
  }))
6809
7337
  });
6810
7338
 
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
7339
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/chat-tracking.js
6812
7340
  var memberCount = strictObject({
6813
7341
  day: pipe(text, isoDate()),
6814
7342
  participants: nullable(count),
@@ -6831,7 +7359,7 @@ var chatTracking = strictObject({
6831
7359
  tracked: boolean()
6832
7360
  });
6833
7361
 
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
7362
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/contact-read.js
6835
7363
  var contactLookup = strictObject({ id, name: nullable(text), username: nullable(text) });
6836
7364
  var contactSync = strictObject({ added: count, changed: count, known: count });
6837
7365
  var profileFields = {
@@ -6869,7 +7397,7 @@ var profileFields = {
6869
7397
  }))
6870
7398
  };
6871
7399
 
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
7400
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/contact.js
6873
7401
  var contact = strictObject({
6874
7402
  ref: reference,
6875
7403
  id,
@@ -6900,7 +7428,7 @@ var contact = strictObject({
6900
7428
  notes: optional(array(strictObject({ id, text, revision: count, created_at: time, updated_at: time })))
6901
7429
  });
6902
7430
 
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
7431
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/contact-activity.js
6904
7432
  var linkedIdentity = strictObject({
6905
7433
  provider: text,
6906
7434
  id,
@@ -6941,7 +7469,7 @@ var contactCheck = strictObject({
6941
7469
  checked_at: time
6942
7470
  });
6943
7471
 
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
7472
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/contact-context.js
6945
7473
  var contextPerson = strictObject({ ...linkedPerson.entries, provider: text, id });
6946
7474
  var contextMessage = strictObject({
6947
7475
  locator: reference,
@@ -7139,7 +7667,7 @@ var contactPreparation = strictObject({
7139
7667
  })
7140
7668
  });
7141
7669
 
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
7670
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/contact-note.js
7143
7671
  var contactNote = strictObject({
7144
7672
  id,
7145
7673
  /** The contact, as a `contact:` reference. */
@@ -7151,13 +7679,13 @@ var contactNote = strictObject({
7151
7679
  updated_at: time
7152
7680
  });
7153
7681
 
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
7682
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/contact-write.js
7155
7683
  var addressBookPerson = strictObject({ id, name: nullable(text), username: nullable(text) });
7156
7684
  var contactUpdate = strictObject({ operation_id: id, person: addressBookPerson });
7157
7685
  var contactStateChange = strictObject({ operation_id: id, person_id: id });
7158
7686
  var contactImport = strictObject({ operation_id: id, sent: count, recognised: array(addressBookPerson) });
7159
7687
 
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
7688
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/conversation-results.js
7161
7689
  var conversationDetails = union([
7162
7690
  strictObject({ ...conversation.entries, messages: array(message) }),
7163
7691
  message
@@ -7247,7 +7775,7 @@ var conversationHit = strictObject({
7247
7775
  stale: boolean()
7248
7776
  });
7249
7777
 
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
7778
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/counters.js
7251
7779
  var counters = strictObject({
7252
7780
  cutoff: time,
7253
7781
  max_age_ms: milliseconds,
@@ -7277,7 +7805,7 @@ var counterRefresh = strictObject({
7277
7805
  complete: optional(boolean())
7278
7806
  });
7279
7807
 
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
7808
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/document.js
7281
7809
  var document = strictObject({
7282
7810
  ref: reference,
7283
7811
  id,
@@ -7292,7 +7820,7 @@ var document = strictObject({
7292
7820
  owners: optional(array(text))
7293
7821
  });
7294
7822
 
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
7823
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/document-link.js
7296
7824
  var documentLink = strictObject({
7297
7825
  ref: reference,
7298
7826
  url: text,
@@ -7303,7 +7831,7 @@ var documentLink = strictObject({
7303
7831
  sender: strictObject({ id: nullable(id), name: nullable(text) })
7304
7832
  });
7305
7833
 
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
7834
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/evidence.js
7307
7835
  var evidenceMessage = pick(message, ["ref", "chat_title", "timestamp", "sender_name", "text"]);
7308
7836
  var contribution = strictObject({
7309
7837
  message: evidenceMessage,
@@ -7333,17 +7861,7 @@ var retentionStay = strictObject({
7333
7861
  });
7334
7862
  var evidence = union([contribution, retentionStay]);
7335
7863
 
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
- });
7864
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/fact.js
7347
7865
  var fact = strictObject({
7348
7866
  ref: reference,
7349
7867
  id,
@@ -7367,15 +7885,13 @@ var fact = strictObject({
7367
7885
  /** Who recorded it: the owner, or an agent whose fact waits as proposed. */
7368
7886
  origin: picklist(["owner", "agent"]),
7369
7887
  evidence: array(reference),
7370
- /** A `payment` fact's fields. */
7371
- payment: optional(nullable(payment)),
7372
7888
  /** With `--sources`: each piece of evidence read back. */
7373
7889
  sources: optional(array(evidenceSource)),
7374
7890
  created_at: time,
7375
7891
  updated_at: time
7376
7892
  });
7377
7893
 
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
7894
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/hit.js
7379
7895
  var hit = strictObject({
7380
7896
  kind: picklist(["message", "mail", "note", "document", "event", "meeting"]),
7381
7897
  ref: reference,
@@ -7413,7 +7929,7 @@ var hit = strictObject({
7413
7929
  untrusted
7414
7930
  });
7415
7931
 
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
7932
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/identity.js
7417
7933
  var identity = strictObject({
7418
7934
  ref: reference,
7419
7935
  provider: text,
@@ -7426,7 +7942,7 @@ var identity = strictObject({
7426
7942
  person: optional(nullable(reference))
7427
7943
  });
7428
7944
 
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
7945
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/image-embedding.js
7430
7946
  var imageEmbedding = strictObject({
7431
7947
  model: text,
7432
7948
  embedded: count,
@@ -7435,7 +7951,7 @@ var imageEmbedding = strictObject({
7435
7951
  more: boolean()
7436
7952
  });
7437
7953
 
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
7954
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/join-request.js
7439
7955
  var joinRequest = strictObject({
7440
7956
  person_id: id,
7441
7957
  name: nullable(text),
@@ -7446,7 +7962,7 @@ var joinRequest = strictObject({
7446
7962
  about: optional(text)
7447
7963
  });
7448
7964
 
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
7965
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/poll-vote.js
7450
7966
  var pollVote = strictObject({
7451
7967
  person_id: id,
7452
7968
  name: nullable(text),
@@ -7456,7 +7972,7 @@ var pollVote = strictObject({
7456
7972
  voted_at: time
7457
7973
  });
7458
7974
 
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
7975
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/listener.js
7460
7976
  var reactions = unwrap(unwrap(message.entries.reactions));
7461
7977
  var observation = strictObject({
7462
7978
  value: pipe(number(), minValue(0)),
@@ -7498,7 +8014,88 @@ var serveSummary = strictObject({
7498
8014
  tasks: optional(strictObject({ added: count, closed: count, review: count }))
7499
8015
  });
7500
8016
 
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
8017
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/mail-counts.js
8018
+ var mailCounts = strictObject({
8019
+ by: picklist(["day", "week", "sender"]),
8020
+ received: count,
8021
+ sent: count,
8022
+ rows: array(strictObject({
8023
+ /** `YYYY-MM-DD`, or the sender's address. */
8024
+ key: text,
8025
+ name: nullable(text),
8026
+ received: count,
8027
+ /** Always 0 by sender: the owner sends that mail. */
8028
+ sent: count
8029
+ }))
8030
+ });
8031
+
8032
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/mail-findings.js
8033
+ var evidence2 = strictObject({ reference, fingerprint: text });
8034
+ var base = { id, evidence: array(evidence2) };
8035
+ var finding = variant("kind", [
8036
+ strictObject({
8037
+ ...base,
8038
+ kind: literal("task"),
8039
+ project: optional(reference),
8040
+ type: picklist(WORK_TASK_TYPES),
8041
+ title: text,
8042
+ reason: text,
8043
+ commitment: picklist(["explicit", "inferred"]),
8044
+ due_at: optional(time),
8045
+ due_evidence: optional(array(reference)),
8046
+ assignee: optional(reference),
8047
+ assignee_evidence: optional(array(reference))
8048
+ }),
8049
+ strictObject({
8050
+ ...base,
8051
+ kind: literal("fact"),
8052
+ project: optional(reference),
8053
+ subject: optional(reference),
8054
+ type: picklist(FACT_TYPES),
8055
+ statement: text
8056
+ }),
8057
+ strictObject({
8058
+ ...base,
8059
+ kind: literal("task_update"),
8060
+ task: reference,
8061
+ change: picklist(["close", "due", "detail"]),
8062
+ due_at: optional(time),
8063
+ detail: optional(text),
8064
+ reason: text
8065
+ }),
8066
+ strictObject({
8067
+ ...base,
8068
+ kind: literal("memory"),
8069
+ memory_kind: picklist(MEMORY_KINDS),
8070
+ scope: picklist(MEMORY_SCOPES),
8071
+ body: text,
8072
+ subject: optional(reference),
8073
+ project: optional(reference)
8074
+ }),
8075
+ strictObject({ ...base, kind: literal("link"), from: reference, to: reference, reason: text }),
8076
+ strictObject({ ...base, kind: literal("new_contact"), address: text, name: text, reason: optional(text) })
8077
+ ]);
8078
+ var outcome = strictObject({
8079
+ id,
8080
+ fingerprint: text,
8081
+ status: picklist(["accepted", "rejected"]),
8082
+ reference: nullable(reference),
8083
+ reused: boolean()
8084
+ });
8085
+ var mailFindings = strictObject({
8086
+ id,
8087
+ account: strictObject({ provider: text, account: text }),
8088
+ input: strictObject({ schema_version: literal(1), key: text, extractor: text, findings: array(finding) }),
8089
+ fingerprint: text,
8090
+ status: picklist(["proposed", "reviewed"]),
8091
+ author,
8092
+ decided_by: nullable(strictObject({ type: picklist(["person", "bot"]), id })),
8093
+ decided_at: nullable(time),
8094
+ previous: array(outcome),
8095
+ receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome) }))
8096
+ });
8097
+
8098
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/media-archive.js
7502
8099
  var mediaArchive = strictObject({
7503
8100
  directory: text,
7504
8101
  chats: count,
@@ -7530,7 +8127,7 @@ var mediaArchiveTimer = union([
7530
8127
  strictObject({ ...timer, action: picklist(["install", "start", "stop", "uninstall"]) })
7531
8128
  ]);
7532
8129
 
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
8130
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation-parts.js
7534
8131
  var preparationId = pipe(string(), minLength(1));
7535
8132
  var preparationCount = pipe(number(), integer(), minValue(0));
7536
8133
  var preparationTime = nullable(isoTime);
@@ -7622,7 +8219,7 @@ var preparationMeeting = strictObject({
7622
8219
  updated_at: isoTime
7623
8220
  });
7624
8221
 
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
8222
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/meeting-evidence.js
7626
8223
  var meetingEvidence = preparationEvidence;
7627
8224
  var meetingPersonContext = strictObject({
7628
8225
  person: strictObject({ uid: string(), name: nullable(string()) }),
@@ -7644,13 +8241,13 @@ var meetingPersonContext = strictObject({
7644
8241
  })
7645
8242
  });
7646
8243
 
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 }),
8244
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/meeting-findings.js
8245
+ var evidence3 = strictObject({ reference, fingerprint: text });
8246
+ var base2 = { id, project: reference, evidence: array(evidence3) };
8247
+ var finding2 = variant("kind", [
8248
+ strictObject({ ...base2, kind: literal("fact"), type: picklist(FACT_TYPES), statement: text }),
7652
8249
  strictObject({
7653
- ...base,
8250
+ ...base2,
7654
8251
  kind: literal("task"),
7655
8252
  type: picklist(WORK_TASK_TYPES),
7656
8253
  title: text,
@@ -7662,7 +8259,7 @@ var finding = variant("kind", [
7662
8259
  assignee_evidence: optional(array(reference))
7663
8260
  })
7664
8261
  ]);
7665
- var outcome = strictObject({
8262
+ var outcome2 = strictObject({
7666
8263
  id,
7667
8264
  fingerprint: text,
7668
8265
  status: picklist(["accepted", "rejected"]),
@@ -7672,17 +8269,17 @@ var outcome = strictObject({
7672
8269
  var meetingFindings = strictObject({
7673
8270
  id,
7674
8271
  account: strictObject({ provider: text, account: text }),
7675
- input: strictObject({ schema_version: literal(1), key: text, extractor: text, findings: array(finding) }),
8272
+ input: strictObject({ schema_version: literal(1), key: text, extractor: text, findings: array(finding2) }),
7676
8273
  fingerprint: text,
7677
8274
  status: picklist(["proposed", "reviewed"]),
7678
8275
  author,
7679
8276
  decided_by: nullable(strictObject({ type: picklist(["person", "bot"]), id })),
7680
8277
  decided_at: nullable(time),
7681
- previous: array(outcome),
7682
- receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome) }))
8278
+ previous: array(outcome2),
8279
+ receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome2) }))
7683
8280
  });
7684
8281
 
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
8282
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/meeting-communications.js
7686
8283
  var communicationCoverage = strictObject({
7687
8284
  read_usage: strictObject({ reads: preparationCount, charged_bytes: preparationCount, reserved_bytes: preparationCount, remaining_bytes: preparationCount }),
7688
8285
  query: string(),
@@ -7727,7 +8324,7 @@ var preparationCommunications = strictObject({
7727
8324
  }))
7728
8325
  });
7729
8326
 
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
8327
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation.js
7731
8328
  var meetingPreparation = strictObject({
7732
8329
  communications: optional(preparationCommunications),
7733
8330
  schema_version: literal(1),
@@ -7840,7 +8437,7 @@ var meetingPreparation = strictObject({
7840
8437
  })
7841
8438
  });
7842
8439
 
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
8440
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/meeting-project-candidates.js
7844
8441
  var count4 = pipe(number(), integer(), minValue(0));
7845
8442
  var id3 = pipe(string(), minLength(1));
7846
8443
  var text3 = string();
@@ -7904,7 +8501,7 @@ var meetingProjectCandidates = strictObject({
7904
8501
  })
7905
8502
  });
7906
8503
 
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
8504
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/meeting-series-inventory.js
7908
8505
  var count5 = pipe(number(), integer(), minValue(0));
7909
8506
  var id4 = pipe(string(), minLength(1), maxLength(1e3));
7910
8507
  var meetingSeriesInventory = strictObject({
@@ -7934,7 +8531,7 @@ var meetingSeriesInventory = strictObject({
7934
8531
  })
7935
8532
  });
7936
8533
 
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
8534
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/meeting-task-proposal.js
7938
8535
  var text4 = string();
7939
8536
  var id5 = pipe(number(), integer(), minValue(1));
7940
8537
  var revision = picklist(["current", "superseded"]);
@@ -7951,7 +8548,7 @@ var meetingTaskProposal = strictObject({
7951
8548
  persistence: literal("proposal-only")
7952
8549
  });
7953
8550
 
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
8551
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/memory.js
7955
8552
  var memory = strictObject({
7956
8553
  ref: reference,
7957
8554
  id,
@@ -7978,7 +8575,7 @@ var memory = strictObject({
7978
8575
  updated_at: time
7979
8576
  });
7980
8577
 
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
8578
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/mention.js
7982
8579
  var kind = picklist(["phone", "email", "url", "document", "person-name", "place"]);
7983
8580
  var status = picklist(["found", "linked", "dismissed"]);
7984
8581
  var mention = strictObject({
@@ -8021,13 +8618,13 @@ var mentionRebuild = strictObject({
8021
8618
  mentions: count
8022
8619
  });
8023
8620
 
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
8621
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/message-change.js
8025
8622
  var operated3 = { operation_id: id, chat_id: id };
8026
8623
  var messagePin = strictObject({ ...operated3, message_id: id, pinned: boolean() });
8027
8624
  var messageStar = strictObject({ ...operated3, message_id: id, starred: boolean() });
8028
8625
  var messageDeletion = strictObject({ ...operated3, deleted: array(id), for_everyone: boolean() });
8029
8626
 
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
8627
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/message-read.js
8031
8628
  var messageTranscript = strictObject({
8032
8629
  message_id: id,
8033
8630
  text,
@@ -8085,7 +8682,7 @@ var evidencePacket = strictObject({
8085
8682
  }))
8086
8683
  });
8087
8684
 
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
8685
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/message-context.js
8089
8686
  var messageThread = strictObject({
8090
8687
  ref: reference,
8091
8688
  chat: id,
@@ -8102,7 +8699,7 @@ var messageThread = strictObject({
8102
8699
  });
8103
8700
  var messageContext = union([message, messageThread]);
8104
8701
 
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
8702
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/message-counts.js
8106
8703
  var messageCounts = strictObject({
8107
8704
  by: picklist(["chat", "sender", "day", "hour"]),
8108
8705
  total: count,
@@ -8115,7 +8712,7 @@ var messageCounts = strictObject({
8115
8712
  }))
8116
8713
  });
8117
8714
 
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
8715
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/message-link.js
8119
8716
  var messageLink = strictObject({
8120
8717
  ref: reference,
8121
8718
  url: nullable(text),
@@ -8132,7 +8729,7 @@ var messageLink = strictObject({
8132
8729
  })))
8133
8730
  });
8134
8731
 
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
8732
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/message-write.js
8136
8733
  var messageWrite = strictObject({
8137
8734
  operation_id: id,
8138
8735
  message,
@@ -8147,7 +8744,7 @@ var draftWrite = strictObject({
8147
8744
  });
8148
8745
  var messageSend = union([messageWrite, draftWrite]);
8149
8746
 
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
8747
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/model.js
8151
8748
  var model2 = strictObject({
8152
8749
  id,
8153
8750
  kind: picklist(["audio", "text", "image", "reranker"]),
@@ -8164,7 +8761,7 @@ var model2 = strictObject({
8164
8761
  path: text
8165
8762
  });
8166
8763
 
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
8764
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/model-key.js
8168
8765
  var source = picklist(["environment", "keyring", "file"]);
8169
8766
  var modelKey = strictObject({
8170
8767
  provider: text,
@@ -8174,7 +8771,7 @@ var modelKey = strictObject({
8174
8771
  var storedModelKey = strictObject({ ...omit(modelKey, ["removed"]).entries, stored: source });
8175
8772
  var removedModelKey = strictObject({ ...omit(modelKey, ["stored"]).entries, removed: array(source) });
8176
8773
 
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
8774
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/official-stats.js
8178
8775
  var versus = strictObject({ current: number(), previous: number() });
8179
8776
  var person = { person_ref: reference, name: nullable(text) };
8180
8777
  var graph = strictObject({
@@ -8208,14 +8805,14 @@ var officialStats = strictObject({
8208
8805
  graphs: record(string(), union([graph, strictObject({ error: text })]))
8209
8806
  });
8210
8807
 
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
8808
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/person.js
8212
8809
  var person2 = strictObject({
8213
8810
  ref: reference,
8214
8811
  name: nullable(text),
8215
8812
  identities: optional(array(identity))
8216
8813
  });
8217
8814
 
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
8815
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/poll.js
8219
8816
  var poll = strictObject({
8220
8817
  chat_id: id,
8221
8818
  message_id: id,
@@ -8231,11 +8828,11 @@ var poll = strictObject({
8231
8828
  });
8232
8829
  var pollChange = strictObject({ operation_id: id, poll });
8233
8830
 
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
8831
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/private-contact.js
8235
8832
  var contactAlias = strictObject({ person_id: id, alias: nullable(text) });
8236
8833
  var contactNoteRemoval = strictObject({ id, person_id: id, removed: boolean() });
8237
8834
 
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
8835
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/ranking.js
8239
8836
  var figures = record(string(), number());
8240
8837
  var freshness = picklist(["fresh", "stale", "partial", "unknown"]);
8241
8838
  var rankingRow = strictObject({
@@ -8282,7 +8879,7 @@ var ranking = strictObject({
8282
8879
  rows: array(rankingRow)
8283
8880
  });
8284
8881
 
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
8882
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/reaction.js
8286
8883
  var reaction = strictObject({
8287
8884
  person: strictObject({ id, name: nullable(text), username: nullable(text) }),
8288
8885
  /** The emoji, or `custom:<id>` for a custom one. */
@@ -8290,7 +8887,7 @@ var reaction = strictObject({
8290
8887
  reacted_at: time
8291
8888
  });
8292
8889
 
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
8890
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/reaction-change.js
8294
8891
  var reactionChange = strictObject({
8295
8892
  operation_id: id,
8296
8893
  chat_id: id,
@@ -8298,7 +8895,7 @@ var reactionChange = strictObject({
8298
8895
  reaction: nullable(text)
8299
8896
  });
8300
8897
 
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
8898
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/recipient.js
8302
8899
  var recipient = strictObject({ id, title: nullable(text), partner_id: optional(id), added_at: time });
8303
8900
  var recipientAdded = strictObject({ id, title: nullable(text), added: boolean() });
8304
8901
  var recipientRemoved = strictObject({ id, title: nullable(text), removed: boolean() });
@@ -8309,7 +8906,7 @@ var recipientChange = strictObject({
8309
8906
  ...partial(recipientOff).entries
8310
8907
  });
8311
8908
 
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
8909
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/recorded-run.js
8313
8910
  var events = array(record(string(), unknown()));
8314
8911
  var recordedRun = strictObject({
8315
8912
  run_id: id,
@@ -8381,7 +8978,7 @@ var runHit = strictObject({
8381
8978
  });
8382
8979
  var runLocation = strictObject({ path: text });
8383
8980
 
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
8981
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/relationship.js
8385
8982
  var relationship = strictObject({
8386
8983
  id,
8387
8984
  from: reference,
@@ -8398,7 +8995,24 @@ var relationship = strictObject({
8398
8995
  created_at: time
8399
8996
  });
8400
8997
 
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
8998
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/reply-stats.js
8999
+ var milliseconds2 = nullable(pipe(number(), minValue(0)));
9000
+ var figures2 = { replies: count, median_ms: milliseconds2, p90_ms: milliseconds2, mean_ms: milliseconds2 };
9001
+ var responseTimes = strictObject({
9002
+ who: picklist(["me", "others"]),
9003
+ ...figures2,
9004
+ buckets: strictObject({ under_5m: count, under_1h: count, under_1d: count, over_1d: count }),
9005
+ /** One row per calendar day of the reply; empty with `--by total`. */
9006
+ rows: array(strictObject({ key: text, ...figures2 }))
9007
+ });
9008
+ var waitingChats = strictObject({
9009
+ chats: count,
9010
+ messages: count,
9011
+ oldest_at: nullable(time),
9012
+ by_kind: strictObject({ private: count, group: count })
9013
+ });
9014
+
9015
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/retention.js
8402
9016
  var retentionCohort = strictObject({
8403
9017
  /** The first day of the joining day or week. */
8404
9018
  cohort: text,
@@ -8446,7 +9060,7 @@ var retention = strictObject({
8446
9060
  rows: array(retentionCohort)
8447
9061
  });
8448
9062
 
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
9063
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/saved-search.js
8450
9064
  var savedSearch = strictObject({
8451
9065
  id,
8452
9066
  /** `null` for a run in the history. */
@@ -8463,7 +9077,7 @@ var savedSearch = strictObject({
8463
9077
  });
8464
9078
  var searchHistoryClear = strictObject({ cleared: count });
8465
9079
 
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
9080
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/send-attempt.js
8467
9081
  var sendAttempt = strictObject({
8468
9082
  at: time,
8469
9083
  profile: text,
@@ -8491,7 +9105,7 @@ var sendAttempt = strictObject({
8491
9105
  error_code: optional(text)
8492
9106
  });
8493
9107
 
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
9108
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/store-maintenance.js
8495
9109
  var absent = strictObject({ path: text, exists: literal(false) });
8496
9110
  var schema = strictObject({ version: count, min_compatible: count, writable: boolean(), speaks: count });
8497
9111
  var infoSchema = strictObject({
@@ -8699,7 +9313,7 @@ var storeRepair = union([
8699
9313
  ]);
8700
9314
  var storeCopyRemoval = strictObject({ path: text, deleted: strictObject({ name: text, rows: count }) });
8701
9315
 
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
9316
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/store-table.js
8703
9317
  var TABLE_KINDS = ["data", "search_index", "search_index_part", "internal"];
8704
9318
  var storeTable = strictObject({
8705
9319
  name: text,
@@ -8708,7 +9322,7 @@ var storeTable = strictObject({
8708
9322
  bytes: optional(nullable(count))
8709
9323
  });
8710
9324
 
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
9325
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/tag-change.js
8712
9326
  var tagTarget = variant("type", [
8713
9327
  strictObject({ type: literal("chat"), chat_id: id }),
8714
9328
  strictObject({ type: literal("contact"), person_id: id }),
@@ -8739,7 +9353,7 @@ var automaticTags = strictObject({
8739
9353
  dry_run: boolean()
8740
9354
  });
8741
9355
 
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
9356
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/task-pair.js
8743
9357
  var side = strictObject({ ref: reference, key: text, title: text, status: text });
8744
9358
  var taskPair = strictObject({
8745
9359
  task: nullable(side),
@@ -8762,7 +9376,7 @@ var taskPair = strictObject({
8762
9376
  created_at: time
8763
9377
  });
8764
9378
 
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
9379
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/task-results.js
8766
9380
  var nullableTime = nullable(time);
8767
9381
  var link = strictObject({
8768
9382
  id,
@@ -8892,8 +9506,47 @@ var taskScan = strictObject({
8892
9506
  held_chats: optional(count),
8893
9507
  tasks: array(strictObject({ source: text, kind: picklist(TASK_KINDS), category: nullable(text) }))
8894
9508
  });
9509
+ var taskAnalysisMark = strictObject({
9510
+ chat: text,
9511
+ from: time,
9512
+ through: time,
9513
+ through_id: text,
9514
+ by: text,
9515
+ checked_at: time,
9516
+ checked_through: time,
9517
+ at: time
9518
+ });
9519
+ var taskAnalysisMarkMoved = strictObject({ ...taskAnalysisMark.entries, moved: boolean() });
9520
+ var taskAnalysis = strictObject({
9521
+ chat: text,
9522
+ title: nullable(text),
9523
+ kind: text,
9524
+ newest_at: nullableTime,
9525
+ mark: nullable(taskAnalysisMark),
9526
+ waiting: count,
9527
+ late: count,
9528
+ untrusted
9529
+ });
9530
+ var taskReview = strictObject({
9531
+ chat: text,
9532
+ from: time,
9533
+ mark: nullable(taskAnalysisMark),
9534
+ late: count,
9535
+ has_more: boolean(),
9536
+ through: nullable(reference),
9537
+ messages: array(strictObject({
9538
+ ref: reference,
9539
+ at: time,
9540
+ sender: nullable(text),
9541
+ outgoing: boolean(),
9542
+ reply_to: nullable(text),
9543
+ text
9544
+ })),
9545
+ open_tasks: array(strictObject({ key: nullable(text), kind: text, title: nullable(text), source: nullable(text) })),
9546
+ untrusted
9547
+ });
8895
9548
 
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
9549
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/topic.js
8897
9550
  var topic = strictObject({
8898
9551
  id,
8899
9552
  title: text,
@@ -8907,7 +9560,7 @@ var topic = strictObject({
8907
9560
  untrusted
8908
9561
  });
8909
9562
 
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
9563
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/index.js
8911
9564
  var ENTITIES = {
8912
9565
  sync_progress: progress,
8913
9566
  ...MEETING_RESULT_ENTITIES,
@@ -8937,18 +9590,22 @@ var ENTITIES = {
8937
9590
  attachments: optional(array(hitFile)),
8938
9591
  untrusted
8939
9592
  }),
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
- ]),
9593
+ "message.summary": strictObject({
9594
+ ...pick(message, [
9595
+ "ref",
9596
+ "chat_id",
9597
+ "chat_title",
9598
+ "timestamp",
9599
+ "sender_name",
9600
+ "sender_is_me",
9601
+ "outgoing",
9602
+ "text",
9603
+ "transcript",
9604
+ "attachments",
9605
+ "email"
9606
+ ]).entries,
9607
+ untrusted
9608
+ }),
8952
9609
  message_link: messageLink,
8953
9610
  message_write: messageWrite,
8954
9611
  message_send: messageSend,
@@ -9045,6 +9702,9 @@ var ENTITIES = {
9045
9702
  task_unmerge: taskUnmerge,
9046
9703
  task_categories: taskCategories,
9047
9704
  task_scan: taskScan,
9705
+ task_analysis: taskAnalysis,
9706
+ task_analysis_mark: taskAnalysisMarkMoved,
9707
+ task_review: taskReview,
9048
9708
  fact,
9049
9709
  memory,
9050
9710
  meeting,
@@ -9055,6 +9715,7 @@ var ENTITIES = {
9055
9715
  meeting_project_evidence: meetingProjectEvidence,
9056
9716
  meeting_preparation: meetingPreparation,
9057
9717
  meeting_findings: meetingFindings,
9718
+ mail_findings: mailFindings,
9058
9719
  meeting_transcript: meetingTranscript,
9059
9720
  meeting_summary: meetingSummary,
9060
9721
  meeting_evidence: meetingEvidence,
@@ -9063,6 +9724,7 @@ var ENTITIES = {
9063
9724
  meeting_review: meetingReview,
9064
9725
  meeting_link: meetingLink,
9065
9726
  meeting_stats: meetingStats,
9727
+ meeting_counts: meetingCounts,
9066
9728
  meeting_speaker: meetingSpeaker,
9067
9729
  meeting_participants: meetingParticipants,
9068
9730
  meeting_passage: meetingPassage,
@@ -9100,6 +9762,7 @@ var ENTITIES = {
9100
9762
  job,
9101
9763
  store_chat_status: storeChatStatus,
9102
9764
  store_clear: storeClear,
9765
+ chat_coverage: chatCoverage,
9103
9766
  store_export: storeExport,
9104
9767
  store_gap_plan: storeGapPlan,
9105
9768
  store_gap_repair: storeGapRepair,
@@ -9155,6 +9818,9 @@ var ENTITIES = {
9155
9818
  topic,
9156
9819
  folder,
9157
9820
  message_counts: messageCounts,
9821
+ response_times: responseTimes,
9822
+ waiting_chats: waitingChats,
9823
+ mail_counts: mailCounts,
9158
9824
  ranking,
9159
9825
  admin_report: adminReport,
9160
9826
  analysis_consent: analysisConsent,
@@ -9176,7 +9842,7 @@ var entityDefinitions = /* @__PURE__ */ __name(() => Object.fromEntries(Object.e
9176
9842
  return [name, definition];
9177
9843
  })), "entityDefinitions");
9178
9844
 
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
9845
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/answer-entity.js
9180
9846
  var schemas = /* @__PURE__ */ new WeakMap();
9181
9847
  var answerEntity = /* @__PURE__ */ __name((command, name, schema2, options = {}) => {
9182
9848
  if (Object.hasOwn(ENTITIES, name))
@@ -9210,7 +9876,7 @@ var answerRow = /* @__PURE__ */ __name((command) => {
9210
9876
  return own && metaOf(command).output?.entity === own.name ? own.row : void 0;
9211
9877
  }, "answerRow");
9212
9878
 
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
9879
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/project-status-rows.js
9214
9880
  var where = [{ field: "ref" }, { field: ["chat_title", "chat"] }];
9215
9881
  var who2 = { field: ["who.owner", "who.name"], tag: "you" };
9216
9882
  var STATUS_SIGNAL_ROWS = {
@@ -9305,11 +9971,21 @@ var STATUS_ROWS = {
9305
9971
  ]
9306
9972
  },
9307
9973
  "status.signal": { columns: [{ field: "id" }, { field: "version" }] },
9308
- "status.out-of-scope": { columns: [{ field: "chat" }, { field: "reason" }, { field: "purpose" }] },
9974
+ "status.out-of-scope": {
9975
+ columns: [
9976
+ { field: "chat" },
9977
+ { field: "reason" },
9978
+ { field: "purpose" },
9979
+ { field: "messages", as: "count", tag: "messages" },
9980
+ { field: "first_at", as: "day" },
9981
+ { field: "last_at", as: "day" },
9982
+ { field: "read_command" }
9983
+ ]
9984
+ },
9309
9985
  "status.failed": { columns: [{ field: "signal" }], text: ["why"] }
9310
9986
  };
9311
9987
 
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
9988
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/compact.js
9313
9989
  var TEXT_CHARS = 400;
9314
9990
  var sender = { field: ["sender_is_me", "sender_name"], tag: "me" };
9315
9991
  var messageRow = {
@@ -9324,6 +10000,60 @@ var messageRow = {
9324
10000
  ],
9325
10001
  text: ["text", "transcript", "excerpt"]
9326
10002
  };
10003
+ var linkedChatColumns = [
10004
+ { field: "ref" },
10005
+ { field: "title" },
10006
+ { field: "purpose" },
10007
+ { field: "proposed", prefix: "proposed" }
10008
+ ];
10009
+ var EVIDENCE_ROWS = {
10010
+ project_evidence: {
10011
+ columns: [],
10012
+ sections: {
10013
+ items: "evidence_item",
10014
+ linked_chats: "linked_chat",
10015
+ left_out: "linked_chat.left_out",
10016
+ members: "evidence_member"
10017
+ },
10018
+ whole: ["checkpoint"]
10019
+ },
10020
+ evidence_item: {
10021
+ columns: [
10022
+ { field: "ref" },
10023
+ { field: "at", as: "day" },
10024
+ { field: "context" },
10025
+ { field: "proposed", prefix: "proposed" }
10026
+ ],
10027
+ text: ["text"]
10028
+ },
10029
+ linked_chat: {
10030
+ columns: [
10031
+ ...linkedChatColumns,
10032
+ { field: "state" },
10033
+ { field: "items", as: "count", tag: "items" },
10034
+ { field: "capped", tag: "capped" },
10035
+ { field: "score", prefix: "score" },
10036
+ { field: "sync_command" }
10037
+ ]
10038
+ },
10039
+ "linked_chat.left_out": {
10040
+ columns: [
10041
+ ...linkedChatColumns,
10042
+ { field: "messages", as: "count", tag: "messages" },
10043
+ { field: "first_at", as: "day" },
10044
+ { field: "last_at", as: "day" },
10045
+ { field: "read_command" }
10046
+ ]
10047
+ },
10048
+ evidence_member: {
10049
+ columns: [
10050
+ { field: "person" },
10051
+ { field: "state" },
10052
+ { field: "proposed", prefix: "proposed" },
10053
+ { field: "score", prefix: "score" }
10054
+ ]
10055
+ }
10056
+ };
9327
10057
  var SHARED_ROWS = {
9328
10058
  message: messageRow,
9329
10059
  "message.summary": messageRow,
@@ -9346,7 +10076,8 @@ var SHARED_ROWS = {
9346
10076
  { field: "last_message_at", as: "time" }
9347
10077
  ]
9348
10078
  },
9349
- ...STATUS_ROWS
10079
+ ...STATUS_ROWS,
10080
+ ...EVIDENCE_ROWS
9350
10081
  };
9351
10082
  var GENERIC_ROW = {
9352
10083
  columns: [
@@ -9407,10 +10138,10 @@ var clockFor = /* @__PURE__ */ __name((zone) => {
9407
10138
  return {
9408
10139
  zone,
9409
10140
  parts: /* @__PURE__ */ __name((iso) => {
9410
- const ms = Date.parse(iso);
9411
- if (Number.isNaN(ms))
10141
+ const ms2 = Date.parse(iso);
10142
+ if (Number.isNaN(ms2))
9412
10143
  return void 0;
9413
- const part = Object.fromEntries(format.formatToParts(ms).map(({ type, value }) => [type, value]));
10144
+ const part = Object.fromEntries(format.formatToParts(ms2).map(({ type, value }) => [type, value]));
9414
10145
  return { date: `${part.year}-${part.month}-${part.day}`, time: `${part.hour}:${part.minute}` };
9415
10146
  }, "parts")
9416
10147
  };
@@ -9433,11 +10164,12 @@ var cellOf = /* @__PURE__ */ __name((item, column, clock) => {
9433
10164
  switch (column.as) {
9434
10165
  case "time":
9435
10166
  case "day": {
9436
- if (typeof value !== "string")
10167
+ const iso = typeof value === "number" && Number.isFinite(value) ? new Date(value).toISOString() : value;
10168
+ if (typeof iso !== "string")
9437
10169
  return void 0;
9438
- const parts = clock.parts(value);
10170
+ const parts = clock.parts(iso);
9439
10171
  if (!parts)
9440
- return { text: clean(value) };
10172
+ return { text: clean(iso) };
9441
10173
  const day = parts.date.slice(5);
9442
10174
  return { text: column.as === "day" ? day : `${day} ${parts.time}`, date: parts.date };
9443
10175
  }
@@ -9459,7 +10191,7 @@ var cellOf = /* @__PURE__ */ __name((item, column, clock) => {
9459
10191
  if (value === true)
9460
10192
  return column.tag ? { text: column.tag } : void 0;
9461
10193
  if (typeof value === "string" || typeof value === "number")
9462
- return { text: clean(String(value)) };
10194
+ return { text: clean(column.prefix ? `${column.prefix} ${value}` : String(value)) };
9463
10195
  return void 0;
9464
10196
  }
9465
10197
  }, "cellOf");
@@ -9522,31 +10254,31 @@ var rowsOfItems = /* @__PURE__ */ __name((items, shape, clock, chars) => {
9522
10254
  return { header, lines };
9523
10255
  }, "rowsOfItems");
9524
10256
  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]) => {
10257
+ 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
10258
  const label = `${indent}${clean(name)}:`;
9527
10259
  if (isFields(value))
9528
10260
  return [label, ...blockOf(value, chars, `${indent} `)];
9529
10261
  if (Array.isArray(value))
9530
10262
  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)}`];
10263
+ return [`${label} ${whole.includes(name) ? clean(String(value)) : cut(clean(String(value)), chars)}`];
9532
10264
  }), "blockOf");
9533
10265
  var footerOf = /* @__PURE__ */ __name((body) => {
9534
10266
  const lines = [];
9535
10267
  const steps = body.next ?? [];
9536
- const lineOf2 = /* @__PURE__ */ __name((step) => step.kind === "command" ? step.line ?? step.command : void 0, "lineOf");
10268
+ const lineOf2 = /* @__PURE__ */ __name((step2) => step2.kind === "command" ? step2.line ?? step2.command : void 0, "lineOf");
9537
10269
  if ("items" in body && body.page.has_more) {
9538
- const more = steps.find((step) => step.step === "page.next");
10270
+ const more = steps.find((step2) => step2.step === "page.next");
9539
10271
  const line = more?.kind === "command" ? more.line : void 0;
9540
10272
  const page2 = body.page;
9541
10273
  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
10274
  }
9543
10275
  for (const missing of body.missing ?? [])
9544
10276
  lines.push(`# missing: ${clean(missing.field)}: ${clean(missing.why)}`);
9545
- for (const step of steps) {
9546
- if (step.step === "page.next" && "items" in body)
10277
+ for (const step2 of steps) {
10278
+ if (step2.step === "page.next" && "items" in body)
9547
10279
  continue;
9548
- const line = lineOf2(step);
9549
- lines.push(`# next: ${clean(step.why)}${line ? `: ${clean(line)}` : ""}`);
10280
+ const line = lineOf2(step2);
10281
+ lines.push(`# next: ${clean(step2.why)}${line ? `: ${clean(line)}` : ""}`);
9550
10282
  }
9551
10283
  if (body.meta?.complete === false) {
9552
10284
  const issues = (body.meta.issues ?? []).map((issue) => `${clean(issue.source)}: ${clean(String(issue.code))}`);
@@ -9576,7 +10308,7 @@ var compactText = /* @__PURE__ */ __name((body, shape, options, rowsOf = rowsOfE
9576
10308
  } else if (isFields(body.item)) {
9577
10309
  const sections = shape.sections ?? {};
9578
10310
  const rest = Object.fromEntries(Object.entries(body.item).filter(([name]) => !Object.hasOwn(sections, name)));
9579
- lines = blockOf(rest, chars).map(guarded);
10311
+ lines = blockOf(rest, chars, "", shape.whole).map(guarded);
9580
10312
  for (const [name, entity] of Object.entries(sections)) {
9581
10313
  const list = body.item[name];
9582
10314
  if (!Array.isArray(list))
@@ -9589,7 +10321,7 @@ var compactText = /* @__PURE__ */ __name((body, shape, options, rowsOf = rowsOfE
9589
10321
  return lines.concat(footerOf(body)).join("\n");
9590
10322
  }, "compactText");
9591
10323
 
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
10324
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/steps.js
9593
10325
  var STEPS2 = defineSteps([
9594
10326
  ...STEPS,
9595
10327
  {
@@ -9793,6 +10525,16 @@ var STEPS2 = defineSteps([
9793
10525
  args: [],
9794
10526
  why: "serve still runs an older version; a restart runs the one installed now"
9795
10527
  },
10528
+ {
10529
+ id: "tasks.acknowledge",
10530
+ command: "tasks acknowledge",
10531
+ args: [
10532
+ { name: "chat", required: true },
10533
+ { name: "message", required: true },
10534
+ { name: "since_time", required: false }
10535
+ ],
10536
+ why: "once the tasks these {shown} messages hold are opened, updated or closed, so the next review starts after them"
10537
+ },
9796
10538
  {
9797
10539
  id: "search.meetings",
9798
10540
  command: "*",
@@ -9801,7 +10543,7 @@ var STEPS2 = defineSteps([
9801
10543
  }
9802
10544
  ]);
9803
10545
  var nextStep = /* @__PURE__ */ __name((id6, input) => {
9804
- const definition = STEPS2.find((step) => step.id === id6);
10546
+ const definition = STEPS2.find((step2) => step2.id === id6);
9805
10547
  if (!definition)
9806
10548
  throw new Error(`no step "${id6}"`);
9807
10549
  const args = Object.fromEntries(Object.entries(input.args ?? {}).filter(([, value]) => value !== void 0));
@@ -9824,7 +10566,7 @@ var commandAt = /* @__PURE__ */ __name((root, path2) => {
9824
10566
  at2 = at2?.commands.find((one) => one.name() === word || one.aliases().includes(word));
9825
10567
  return at2 === root ? void 0 : at2;
9826
10568
  }, "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");
10569
+ 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
10570
  var failureSteps = /* @__PURE__ */ __name((root, error) => {
9829
10571
  const model3 = error.details?.model;
9830
10572
  const own = error.reason === "model.not-downloaded" && typeof model3 === "string" ? [
@@ -9834,33 +10576,91 @@ var failureSteps = /* @__PURE__ */ __name((root, error) => {
9834
10576
  ] : [];
9835
10577
  return runnable(root, [...error.next ?? [], ...own]);
9836
10578
  }, "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) };
10579
+ var withSafety = /* @__PURE__ */ __name((steps, targets) => steps.map((step2) => {
10580
+ if (step2.kind === "user_action")
10581
+ return step2;
10582
+ const effects = targets(step2.command)?.effects;
10583
+ return { ...step2, safe_to_auto_execute: effects !== void 0 && !writes(effects) };
9842
10584
  }), "withSafety");
9843
- var withLines = /* @__PURE__ */ __name((root, steps) => steps.map((step) => step.kind === "command" ? { ...step, line: stepLine(root, step) } : step), "withLines");
10585
+ var withLines = /* @__PURE__ */ __name((root, steps) => steps.map((step2) => step2.kind === "command" ? { ...step2, line: stepLine(root, step2) } : step2), "withLines");
9844
10586
  var kebab = /* @__PURE__ */ __name((name) => name.replaceAll("_", "-"), "kebab");
9845
10587
  var quoted2 = /* @__PURE__ */ __name((value) => {
9846
10588
  const text5 = String(value);
9847
10589
  return /^[\w@:./+-]+$/.test(text5) ? text5 : JSON.stringify(text5);
9848
10590
  }, "quoted");
9849
- var stepLine = /* @__PURE__ */ __name((root, step) => {
9850
- const command = commandAt(root, step.command);
10591
+ var stepLine = /* @__PURE__ */ __name((root, step2) => {
10592
+ const command = commandAt(root, step2.command);
9851
10593
  const positional = new Set(command?.registeredArguments.map((argument) => argument.name()) ?? []);
9852
- const args = Object.entries(step.args).filter(([, value]) => value !== void 0 && value !== false);
10594
+ const args = Object.entries(step2.args).filter(([, value]) => value !== void 0 && value !== false);
9853
10595
  const profile = root.getOptionValue("profile");
9854
10596
  return [
9855
10597
  root.name(),
9856
10598
  ...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()])]),
10599
+ step2.command,
10600
+ ...(command?.registeredArguments ?? []).flatMap((argument) => step2.args[argument.name()] === void 0 ? [] : [quoted2(step2.args[argument.name()])]),
9859
10601
  ...args.filter(([name]) => !positional.has(name)).map(([name, value]) => value === true ? `--${kebab(name)}` : `--${kebab(name)} ${quoted2(value)}`)
9860
10602
  ].join(" ");
9861
10603
  }, "stepLine");
9862
10604
 
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
10605
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/output-budget.js
10606
+ var SOFT_OUTPUT_BYTES = 256 * 1024;
10607
+ var CARRIED = ["json", "compact", "offline", "timeout", "full", "brief", "maxOutputBytes"];
10608
+ var NOT_WITH_COMPACT = /* @__PURE__ */ new Set(["json", "brief"]);
10609
+ var snake2 = /* @__PURE__ */ __name((name) => name.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snake");
10610
+ var typed = /* @__PURE__ */ __name((command, key) => command.getOptionValueSource(key) === "cli", "typed");
10611
+ var typedArgs = /* @__PURE__ */ __name((command) => {
10612
+ const root = rootOf2(command);
10613
+ if (root.getOptionValue("fields") !== void 0)
10614
+ return void 0;
10615
+ if (command.options.some((option) => option.negate && typed(command, option.attributeName())))
10616
+ return void 0;
10617
+ const positional = command.registeredArguments.flatMap((argument, index) => {
10618
+ const value = command.processedArgs[index];
10619
+ const word = Array.isArray(value) ? value.join(" ") : value;
10620
+ return word === void 0 || word === "" ? [] : [[argument.name(), word]];
10621
+ });
10622
+ const own = command.options.map((option) => option.attributeName()).filter((key) => typed(command, key)).map((key) => [snake2(key), command.getOptionValue(key)]);
10623
+ const global = CARRIED.filter((key) => typed(root, key)).map((key) => [snake2(key), root.getOptionValue(key)]);
10624
+ return Object.fromEntries([...positional, ...own, ...global]);
10625
+ }, "typedArgs");
10626
+ var declaresRow = /* @__PURE__ */ __name((command) => {
10627
+ const { rows: rows2 } = environmentOf(command);
10628
+ return rowShapeOf(command, rows2 && entityRows(rows2)) !== GENERIC_ROW;
10629
+ }, "declaresRow");
10630
+ var pathOf3 = /* @__PURE__ */ __name((command) => {
10631
+ const words = [];
10632
+ for (let at2 = command; at2.parent; at2 = at2.parent)
10633
+ words.unshift(at2.name());
10634
+ return words.join(" ");
10635
+ }, "pathOf");
10636
+ var step = /* @__PURE__ */ __name((command, id6, args, why) => ({
10637
+ kind: "command",
10638
+ step: id6,
10639
+ command: pathOf3(command),
10640
+ args,
10641
+ why,
10642
+ safe_to_auto_execute: true
10643
+ }), "step");
10644
+ var compactStep = /* @__PURE__ */ __name((command, args, why) => rootOf2(command).getOptionValue("compact") === true || !declaresRow(command) ? [] : [
10645
+ step(command, "output.compact", { ...Object.fromEntries(Object.entries(args).filter(([key]) => !NOT_WITH_COMPACT.has(key))), compact: true }, why)
10646
+ ], "compactStep");
10647
+ var tooLargeSteps = /* @__PURE__ */ __name((command, { maxBytes, neededBytes }) => {
10648
+ const args = typedArgs(command);
10649
+ if (!args)
10650
+ return [];
10651
+ const limit = Number(command.getOptionValue("limit"));
10652
+ const fits = Math.floor(limit * maxBytes / neededBytes * 0.9);
10653
+ return [
10654
+ ...compactStep(command, args, "the answer is over the output cap as JSON; one line per item keeps every ref"),
10655
+ ...Number.isSafeInteger(limit) && fits >= 1 && fits < limit ? [step(command, "output.limit", { ...args, limit: fits }, `about ${fits} items fit under the output cap`)] : []
10656
+ ];
10657
+ }, "tooLargeSteps");
10658
+ var largeAnswerSteps = /* @__PURE__ */ __name((command) => {
10659
+ const args = typedArgs(command);
10660
+ return args ? compactStep(command, args, "the answer is large as JSON; one line per item keeps every ref") : [];
10661
+ }, "largeAnswerSteps");
10662
+
10663
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
9864
10664
  var HIDDEN = /* @__PURE__ */ new Set(["providerRef", "provider_ref"]);
9865
10665
  var withoutProviderRefs = /* @__PURE__ */ __name((value) => strip(value), "withoutProviderRefs");
9866
10666
  var strip = /* @__PURE__ */ __name((value) => {
@@ -9874,7 +10674,7 @@ var strip = /* @__PURE__ */ __name((value) => {
9874
10674
  return Object.fromEntries(Object.entries(value).flatMap(([key, inner]) => HIDDEN.has(key) ? [] : [[key, strip(inner)]]));
9875
10675
  }, "strip");
9876
10676
 
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
10677
+ // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/envelope.js
9878
10678
  var answerSchema = /* @__PURE__ */ __name((item = unknown()) => union([listEnvelopeSchema(item), itemEnvelopeSchema(item)]), "answerSchema");
9879
10679
  var capped2 = /* @__PURE__ */ __name((steps) => steps.length > 0 ? { next: steps.slice(0, MAX_NEXT_STEPS) } : {}, "capped");
9880
10680
  var listOf = /* @__PURE__ */ __name((command, input) => {
@@ -9917,7 +10717,7 @@ var itemOf = /* @__PURE__ */ __name((item, { next = [], missing, meta } = {}) =>
9917
10717
  };
9918
10718
  return body;
9919
10719
  }, "itemOf");
9920
- var snake2 = /* @__PURE__ */ __name((key) => key.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snake");
10720
+ var snake3 = /* @__PURE__ */ __name((key) => key.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snake");
9921
10721
  var snakeKeysKeeping = /* @__PURE__ */ __name((verbatim) => {
9922
10722
  const kept = new Set(verbatim);
9923
10723
  const convert = /* @__PURE__ */ __name((value) => {
@@ -9928,7 +10728,7 @@ var snakeKeysKeeping = /* @__PURE__ */ __name((verbatim) => {
9928
10728
  return Object.fromEntries(Object.entries(value).flatMap(([key, inner]) => {
9929
10729
  if (inner === void 0)
9930
10730
  return [];
9931
- const name = snake2(key);
10731
+ const name = snake3(key);
9932
10732
  return [[name, kept.has(key) || kept.has(name) ? inner : convert(inner)]];
9933
10733
  }));
9934
10734
  }, "convert");
@@ -9968,7 +10768,16 @@ var sealed = /* @__PURE__ */ __name((value) => {
9968
10768
  const { meta, ...rest } = withoutProviderRefs(value);
9969
10769
  return { ...rest, meta: metaNow(meta) };
9970
10770
  }, "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");
10771
+ var compactSteps = /* @__PURE__ */ __name((root, steps) => steps.map((step2) => step2.kind === "command" ? { ...step2, line: `${step2.line ?? stepLine(root, step2)} ${COMPACT_FLAG}` } : step2), "compactSteps");
10772
+ var withLargeAnswerStep = /* @__PURE__ */ __name((command, body) => {
10773
+ if ((body.next?.length ?? 0) >= MAX_NEXT_STEPS)
10774
+ return body;
10775
+ const added = largeAnswerSteps(command);
10776
+ if (added.length === 0 || Buffer.byteLength(JSON.stringify(body)) <= SOFT_OUTPUT_BYTES)
10777
+ return body;
10778
+ const root = rootOf2(command);
10779
+ return { ...body, next: [...body.next ?? [], ...withLines(root, runnable(root, added))] };
10780
+ }, "withLargeAnswerStep");
9972
10781
  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
10782
  var jsonlRecords = /* @__PURE__ */ __name((body) => linesOf(sealed(body)).split("\n").map((line) => JSON.parse(line)), "jsonlRecords");
9974
10783
  var renderAnswer = /* @__PURE__ */ __name((command, { renderer, format, streams, compact, full }, body, view) => {
@@ -9980,9 +10789,10 @@ var renderAnswer = /* @__PURE__ */ __name((command, { renderer, format, streams,
9980
10789
  const kept = withoutProviderRefs({ ...body, ...next.length > 0 ? { next } : {} });
9981
10790
  if (next.length === 0)
9982
10791
  delete kept.next;
9983
- const whole = sealed(kept);
10792
+ const sealedBody = sealed(kept);
9984
10793
  const environment = environmentOf(command);
9985
10794
  const drawn = compact && !environment.agent;
10795
+ const whole = format === "json" && !drawn && !environment.agent ? withLargeAnswerStep(command, sealedBody) : sealedBody;
9986
10796
  if (drawn) {
9987
10797
  const lined = whole.next ? { ...whole, next: compactSteps(root, whole.next) } : whole;
9988
10798
  const timezone = Intl.DateTimeFormat().resolvedOptions().timeZone;
@@ -10002,8 +10812,8 @@ var renderAnswer = /* @__PURE__ */ __name((command, { renderer, format, streams,
10002
10812
  setExitCode(command, code);
10003
10813
  if (drawn || format === "json")
10004
10814
  return;
10005
- for (const step of next)
10006
- renderer.note(step.kind === "command" ? `\u2192 ${step.why}: ${stepLine(root, step)}` : `\u2192 ${step.why}`);
10815
+ for (const step2 of next)
10816
+ renderer.note(step2.kind === "command" ? `\u2192 ${step2.why}: ${stepLine(root, step2)}` : `\u2192 ${step2.why}`);
10007
10817
  }, "renderAnswer");
10008
10818
  var renderDocument = /* @__PURE__ */ __name(({ renderer }, document2) => renderer.result(document2), "renderDocument");
10009
10819
  var itemAnswer = /* @__PURE__ */ __name((item) => sealed(itemOf(item)), "itemAnswer");
@@ -10068,10 +10878,17 @@ export {
10068
10878
  AI_ENTRIES,
10069
10879
  AI_SETTING_KEYS,
10070
10880
  resolveAISettings,
10881
+ botsDirectory,
10882
+ botFiles,
10883
+ ChatRegistry,
10884
+ registryProfiles,
10885
+ REPAIR_WORDS,
10886
+ repairConfigText,
10071
10887
  permissionIssues,
10072
10888
  settingPathOf,
10073
10889
  withoutSetting,
10074
10890
  publicIssue,
10891
+ fixVerb,
10075
10892
  issueMessage,
10076
10893
  checkConfigText,
10077
10894
  readConfigText,
@@ -10082,6 +10899,8 @@ export {
10082
10899
  rememberAccount,
10083
10900
  recalledAccount,
10084
10901
  profilesHere,
10902
+ withSettingDefaults,
10903
+ settingRows,
10085
10904
  plain,
10086
10905
  count2 as count,
10087
10906
  flag,
@@ -10111,6 +10930,12 @@ export {
10111
10930
  logsInOrOut,
10112
10931
  isLogin,
10113
10932
  destroysNothing,
10933
+ PROPOSE_COMMANDS,
10934
+ proposesOnly,
10935
+ isProposal,
10936
+ LOCKED_AUTHORITY_COMMANDS,
10937
+ narrowsUnderLock,
10938
+ admittedUnderLock,
10114
10939
  changesStore,
10115
10940
  fetchesOnly,
10116
10941
  fetchesOnlyAt,
@@ -10197,7 +11022,6 @@ export {
10197
11022
  entityRows,
10198
11023
  rowShapeOf,
10199
11024
  compactText,
10200
- withoutProviderRefs,
10201
11025
  nextStep,
10202
11026
  lineOf,
10203
11027
  rootOf2,
@@ -10207,6 +11031,8 @@ export {
10207
11031
  withSafety,
10208
11032
  withLines,
10209
11033
  stepLine,
11034
+ tooLargeSteps,
11035
+ withoutProviderRefs,
10210
11036
  answerSchema,
10211
11037
  listOf,
10212
11038
  itemOf,