@wirecat/cli-memo 0.131.23 → 0.131.25

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 (222) hide show
  1. package/README.md +9 -12
  2. package/dist/app.d.ts +1 -1
  3. package/dist/bin/memo.js +2 -2
  4. package/dist/bundle/{all-profiles-VIPS6NHI.js → all-profiles-L2T7PQ7S.js} +9 -9
  5. package/dist/bundle/{anthropic-2QZHSXBA.js → anthropic-KWI2B4O2.js} +6 -6
  6. package/dist/bundle/{app-server-NTSADYGW.js → app-server-GLDIS3HE.js} +42 -42
  7. package/dist/bundle/auto-QFG57LR6.js +86 -0
  8. package/dist/bundle/{bun-KF5QK2YN.js → bun-SMKYTOGI.js} +2 -2
  9. package/dist/bundle/{bun-sqlite-XUCC2PWC.js → bun-sqlite-PKY3JXMR.js} +5 -5
  10. package/dist/bundle/{chunk-V7Y5FOYJ.js → chunk-47EZNSMD.js} +2 -2
  11. package/dist/bundle/{chunk-4QY7XOVI.js → chunk-4AONXXP2.js} +45 -26
  12. package/dist/bundle/{chunk-XRJIQC6P.js → chunk-5ANNUWNM.js} +2 -2
  13. package/dist/bundle/{chunk-QZXHMQCM.js → chunk-5GMOYTJQ.js} +1 -1
  14. package/dist/bundle/{chunk-N5L6YYYW.js → chunk-5JYB6QKS.js} +3 -15
  15. package/dist/bundle/{chunk-24P36RXS.js → chunk-5SKYUS4U.js} +484 -312
  16. package/dist/bundle/{chunk-6EZ7XGRG.js → chunk-6OP743NB.js} +2 -2
  17. package/dist/bundle/{chunk-Z6YD3YK4.js → chunk-7Y6O4UQB.js} +22 -22
  18. package/dist/bundle/{chunk-G4GEARGN.js → chunk-BNF2ZUNS.js} +9 -9
  19. package/dist/bundle/{chunk-AHFMQAJT.js → chunk-BX7DVBWD.js} +15 -12
  20. package/dist/bundle/{chunk-PDQFWOR5.js → chunk-D5ZV7PRP.js} +3 -3
  21. package/dist/bundle/{chunk-QWRBAQZ7.js → chunk-E2WPSRCI.js} +1 -1
  22. package/dist/bundle/{chunk-CCHHEMPM.js → chunk-EB2IULWB.js} +3 -2
  23. package/dist/bundle/{chunk-7PQOYNMA.js → chunk-EEVUVWHW.js} +2 -2
  24. package/dist/bundle/{chunk-GQOFHKUX.js → chunk-EFTJ4RTT.js} +6 -6
  25. package/dist/bundle/{chunk-BSDOH7DN.js → chunk-ENU2556X.js} +3 -3
  26. package/dist/bundle/{chunk-KQ5P5NLL.js → chunk-ERQHZZNF.js} +1 -1
  27. package/dist/bundle/{chunk-5WCEWK2F.js → chunk-FS3ABWVX.js} +12 -12
  28. package/dist/bundle/{chunk-JY4LVWGZ.js → chunk-G2BB5WY5.js} +15 -8
  29. package/dist/bundle/{chunk-O7OI5V7W.js → chunk-H5QHU5LZ.js} +8 -8
  30. package/dist/bundle/{chunk-AETJWLHX.js → chunk-I5LIEFQR.js} +4 -4
  31. package/dist/bundle/{chunk-JCCL7RGH.js → chunk-I7PL5WX2.js} +4 -4
  32. package/dist/bundle/{chunk-37NN65PB.js → chunk-IE27DJP3.js} +10 -10
  33. package/dist/bundle/{chunk-DIP3ENSY.js → chunk-ILUTSRU3.js} +1 -1
  34. package/dist/bundle/{chunk-DIELPPLF.js → chunk-INA5WGY7.js} +2 -2
  35. package/dist/bundle/{chunk-STZMKXK5.js → chunk-J7T6RSR5.js} +4 -4
  36. package/dist/bundle/{chunk-BSR4QZW5.js → chunk-JDDLDKC7.js} +3 -3
  37. package/dist/bundle/{chunk-MJWFSOJN.js → chunk-JLBKAIVT.js} +371 -211
  38. package/dist/bundle/{chunk-UJEO3VWA.js → chunk-JVNSHN2J.js} +1 -1
  39. package/dist/bundle/{chunk-ZCPUKUST.js → chunk-KFZGI7BU.js} +1 -1
  40. package/dist/bundle/{chunk-ILHTNOIV.js → chunk-KV4267S4.js} +1 -1
  41. package/dist/bundle/{chunk-CTT5VK66.js → chunk-LFNJ6CG6.js} +6 -6
  42. package/dist/bundle/chunk-MAUKGKRA.js +428 -0
  43. package/dist/bundle/{chunk-44NQLD5C.js → chunk-MWX7UJCL.js} +7 -7
  44. package/dist/bundle/{chunk-IJI62T4U.js → chunk-MZS3LIMW.js} +29 -29
  45. package/dist/bundle/{chunk-JDNA36EX.js → chunk-NFTWNCEL.js} +9 -9
  46. package/dist/bundle/{chunk-RE5SEGSR.js → chunk-OGMTUMB7.js} +4 -4
  47. package/dist/bundle/{chunk-QFO6K6CW.js → chunk-ON5SHKHB.js} +46 -46
  48. package/dist/bundle/{chunk-JRJIFGU2.js → chunk-PCT2CIYR.js} +5 -5
  49. package/dist/bundle/{chunk-46WO42ZW.js → chunk-POXCMAM7.js} +448 -517
  50. package/dist/bundle/{chunk-6PXE6QSQ.js → chunk-QA674BMY.js} +1 -1
  51. package/dist/bundle/{chunk-QSN5NUVL.js → chunk-QJJSMLBR.js} +3 -3
  52. package/dist/bundle/{chunk-GDGY2KIX.js → chunk-QOWGFGG3.js} +5 -5
  53. package/dist/bundle/{chunk-6I7XGWGH.js → chunk-QYDCVWD4.js} +6 -6
  54. package/dist/bundle/{chunk-NY4IKP35.js → chunk-RKLZQVKL.js} +2 -2
  55. package/dist/bundle/{chunk-FXF34MI2.js → chunk-RTII6JWI.js} +3 -3
  56. package/dist/bundle/{chunk-V5ZID7KC.js → chunk-SBMBBVXF.js} +1 -1
  57. package/dist/bundle/{chunk-H76MIWB2.js → chunk-SW5YJCHC.js} +4 -4
  58. package/dist/bundle/{chunk-YKZNFSQE.js → chunk-T3R6QHD2.js} +2 -2
  59. package/dist/bundle/{chunk-T4LW6UYQ.js → chunk-TZ7WDQPD.js} +40 -34
  60. package/dist/bundle/{chunk-R4V63U6A.js → chunk-UQS6Y2A7.js} +4 -4
  61. package/dist/bundle/{chunk-UMWR5PKA.js → chunk-UWUP3A5H.js} +13 -13
  62. package/dist/bundle/{chunk-5M4KSMYN.js → chunk-VGYXKQJE.js} +155 -81
  63. package/dist/bundle/{chunk-Z7XHH2Q5.js → chunk-VZ3K7IYC.js} +35 -17
  64. package/dist/bundle/{chunk-XTARXRP6.js → chunk-WGHQXJHL.js} +10 -10
  65. package/dist/bundle/{chunk-2IKXEL4V.js → chunk-WHVH72AD.js} +2 -2
  66. package/dist/bundle/{chunk-EW3XTUPB.js → chunk-XBIPSSKI.js} +4 -4
  67. package/dist/bundle/{chunk-L6FKTS3L.js → chunk-XFDE6AL4.js} +8 -8
  68. package/dist/bundle/{chunk-W53TRO7J.js → chunk-YMAS7U5X.js} +650 -330
  69. package/dist/bundle/{chunk-PQLBPYJR.js → chunk-YPF6OS37.js} +1 -1
  70. package/dist/bundle/{chunk-HBXZ7WIV.js → chunk-ZKZT6PCF.js} +8 -8
  71. package/dist/bundle/{chunk-CKLCJ6O7.js → chunk-ZLB2CM7Z.js} +6 -6
  72. package/dist/bundle/{chunk-4DKMYDLT.js → chunk-ZUV337F2.js} +43 -30
  73. package/dist/bundle/{chunk-BIYSJBQR.js → chunk-ZVEGLXYB.js} +4 -4
  74. package/dist/bundle/command-contract-47EKA67S.js +32 -0
  75. package/dist/bundle/{decode-LFASKQPE.js → decode-EEDEXCHR.js} +5 -5
  76. package/dist/bundle/{dispatch-MELZFYOS.js → dispatch-CU5KGRQL.js} +8 -8
  77. package/dist/bundle/{echarts-5AB3LFVD.js → echarts-36MD3UZF.js} +2 -2
  78. package/dist/bundle/{embed-6KQN523T.js → embed-R6JZ4CDW.js} +6 -6
  79. package/dist/bundle/{embedder-7SGPMINO.js → embedder-XUIOKCH6.js} +9 -9
  80. package/dist/bundle/{entry-CNZGHHZB.js → entry-WOAZRQ5F.js} +7 -7
  81. package/dist/bundle/failure-BHRE5S75.js +66 -0
  82. package/dist/bundle/{failure-RBNZBCZJ.js → failure-TUXXI6JT.js} +2 -2
  83. package/dist/bundle/{first-run-UI6UT4OR.js → first-run-3ZUSIFQJ.js} +11 -11
  84. package/dist/bundle/first-screen-WQ2IDXDP.js +30 -0
  85. package/dist/bundle/{instructions-52W6ZQTU.js → instructions-7VMPJMUM.js} +1 -1
  86. package/dist/bundle/mcp-I7LL7AJG.js +90 -0
  87. package/dist/bundle/{mcp-MNI62HHE.js → mcp-PPVOM4SE.js} +2 -2
  88. package/dist/bundle/memo.js +16 -16
  89. package/dist/bundle/{node-TL2PBNKO.js → node-SBHCG4ZC.js} +2 -2
  90. package/dist/bundle/{node-sqlite-64QIEQ37.js → node-sqlite-EMKROM5U.js} +6 -6
  91. package/dist/bundle/{oauth-GH7GLGEJ.js → oauth-OJPTUA5K.js} +7 -7
  92. package/dist/bundle/{open-PCKU5XOH.js → open-XI2AVS5B.js} +5 -5
  93. package/dist/bundle/{openai-P5QVLTF6.js → openai-NCYTRZB6.js} +10 -10
  94. package/dist/bundle/{process-PWAGP6YY.js → process-373B2EBA.js} +1 -1
  95. package/dist/bundle/{chunk-32FPXLNY.js → program-VW7IJ755.js} +9893 -2081
  96. package/dist/bundle/{prompt-FNBKJZLM.js → prompt-L3KQBPNH.js} +5 -5
  97. package/dist/bundle/{recognize-5TKRMMA2.js → recognize-GFWZX4F6.js} +4 -4
  98. package/dist/bundle/{remote-XZJ7ZAKJ.js → remote-5IGAYQBB.js} +7 -7
  99. package/dist/bundle/{rerank-JUH3QHX7.js → rerank-6HWHGDFX.js} +7 -7
  100. package/dist/bundle/{serve-JP6U3PUO.js → serve-AA7RKEOM.js} +9 -9
  101. package/dist/bundle/server-MWUCYBJF.js +61 -0
  102. package/dist/bundle/server-XEY5AKKG.js +48 -0
  103. package/dist/bundle/{server-VXI43PF5.js → server-Z6L4U6HO.js} +57 -57
  104. package/dist/bundle/{state-G4NEN2OZ.js → state-3WTPOBXR.js} +6 -6
  105. package/dist/bundle/{store-NHFLFHD5.js → store-LNP5BXUL.js} +13 -13
  106. package/dist/bundle/store-maintenance-command-6HEGTKPL.js +48 -0
  107. package/dist/bundle/update-6GWVILUX.js +69 -0
  108. package/dist/config.d.ts +2 -28
  109. package/dist/config.d.ts.map +1 -1
  110. package/dist/config.js +2 -35
  111. package/dist/config.js.map +1 -1
  112. package/dist/doctor/command.d.ts +0 -12
  113. package/dist/doctor/command.d.ts.map +1 -1
  114. package/dist/doctor/command.js +19 -24
  115. package/dist/doctor/command.js.map +1 -1
  116. package/dist/examples.d.ts.map +1 -1
  117. package/dist/examples.js +1 -8
  118. package/dist/examples.js.map +1 -1
  119. package/dist/failure.d.ts +2 -2
  120. package/dist/mail/command.d.ts.map +1 -1
  121. package/dist/mail/command.js +2 -87
  122. package/dist/mail/command.js.map +1 -1
  123. package/dist/mail/findings-command.d.ts.map +1 -1
  124. package/dist/mail/findings-command.js +1 -1
  125. package/dist/mail/findings-command.js.map +1 -1
  126. package/dist/mail/moved.d.ts +1 -1
  127. package/dist/mail/moved.d.ts.map +1 -1
  128. package/dist/mail/moved.js +3 -0
  129. package/dist/mail/moved.js.map +1 -1
  130. package/dist/mail/review-command.d.ts +1 -1
  131. package/dist/mail/review-command.d.ts.map +1 -1
  132. package/dist/program.js +1 -1
  133. package/dist/program.js.map +1 -1
  134. package/dist/read-only.d.ts +1 -1
  135. package/dist/reasons.d.ts.map +1 -1
  136. package/dist/reasons.js +1 -13
  137. package/dist/reasons.js.map +1 -1
  138. package/dist/run/auto.js +3 -3
  139. package/dist/run/auto.js.map +1 -1
  140. package/dist/run/import.d.ts +2 -2
  141. package/dist/run/import.d.ts.map +1 -1
  142. package/dist/run/import.js +24 -121
  143. package/dist/run/import.js.map +1 -1
  144. package/dist/search/command.js +1 -1
  145. package/dist/store/source-list.d.ts +1 -6
  146. package/dist/store/source-list.d.ts.map +1 -1
  147. package/dist/store/source-list.js +11 -46
  148. package/dist/store/source-list.js.map +1 -1
  149. package/dist/tasks/command.js +1 -1
  150. package/dist/tasks/command.js.map +1 -1
  151. package/dist/version.d.ts +1 -1
  152. package/dist/version.js +1 -1
  153. package/package.json +4 -4
  154. package/scenarios/set-up.md +3 -3
  155. package/skills/cli-memo/SKILL.md +13 -21
  156. package/skills/mail-triage/SKILL.md +9 -5
  157. package/dist/bundle/auto-MJWSDIMF.js +0 -86
  158. package/dist/bundle/chunk-UQA5UFJ2.js +0 -103
  159. package/dist/bundle/command-contract-XBYNZVP5.js +0 -32
  160. package/dist/bundle/failure-LJAYEPTS.js +0 -66
  161. package/dist/bundle/first-screen-3WDPZZXV.js +0 -30
  162. package/dist/bundle/mcp-JIOYIKWO.js +0 -90
  163. package/dist/bundle/program-D7OTNHGU.js +0 -10947
  164. package/dist/bundle/server-5M4YI3V4.js +0 -48
  165. package/dist/bundle/server-XAHF22CQ.js +0 -61
  166. package/dist/bundle/setup-YLI4S4TW.js +0 -973
  167. package/dist/bundle/store-maintenance-command-6UEORZWI.js +0 -48
  168. package/dist/bundle/update-6SD2JZUC.js +0 -69
  169. package/dist/mail/accounts.d.ts +0 -7
  170. package/dist/mail/accounts.d.ts.map +0 -1
  171. package/dist/mail/accounts.js +0 -28
  172. package/dist/mail/accounts.js.map +0 -1
  173. package/dist/mail/backfill-headers.d.ts +0 -11
  174. package/dist/mail/backfill-headers.d.ts.map +0 -1
  175. package/dist/mail/backfill-headers.js +0 -84
  176. package/dist/mail/backfill-headers.js.map +0 -1
  177. package/dist/mail/domain-age.d.ts +0 -26
  178. package/dist/mail/domain-age.d.ts.map +0 -1
  179. package/dist/mail/domain-age.js +0 -151
  180. package/dist/mail/domain-age.js.map +0 -1
  181. package/dist/mail/gmail.d.ts +0 -39
  182. package/dist/mail/gmail.d.ts.map +0 -1
  183. package/dist/mail/gmail.js +0 -325
  184. package/dist/mail/gmail.js.map +0 -1
  185. package/dist/mail/himalaya.d.ts +0 -22
  186. package/dist/mail/himalaya.d.ts.map +0 -1
  187. package/dist/mail/himalaya.js +0 -113
  188. package/dist/mail/himalaya.js.map +0 -1
  189. package/dist/mail/mbox.d.ts +0 -9
  190. package/dist/mail/mbox.d.ts.map +0 -1
  191. package/dist/mail/mbox.js +0 -230
  192. package/dist/mail/mbox.js.map +0 -1
  193. package/dist/mail/repair.d.ts +0 -7
  194. package/dist/mail/repair.d.ts.map +0 -1
  195. package/dist/mail/repair.js +0 -54
  196. package/dist/mail/repair.js.map +0 -1
  197. package/dist/mail/rule-store.d.ts +0 -12
  198. package/dist/mail/rule-store.d.ts.map +0 -1
  199. package/dist/mail/rule-store.js +0 -83
  200. package/dist/mail/rule-store.js.map +0 -1
  201. package/dist/mail/setup-command.d.ts +0 -4
  202. package/dist/mail/setup-command.d.ts.map +0 -1
  203. package/dist/mail/setup-command.js +0 -41
  204. package/dist/mail/setup-command.js.map +0 -1
  205. package/dist/mail/setup.d.ts +0 -19
  206. package/dist/mail/setup.d.ts.map +0 -1
  207. package/dist/mail/setup.js +0 -95
  208. package/dist/mail/setup.js.map +0 -1
  209. package/dist/mail/slices.d.ts +0 -6
  210. package/dist/mail/slices.d.ts.map +0 -1
  211. package/dist/mail/slices.js +0 -7
  212. package/dist/mail/slices.js.map +0 -1
  213. package/dist/mail/source.d.ts +0 -7
  214. package/dist/mail/source.d.ts.map +0 -1
  215. package/dist/mail/source.js +0 -119
  216. package/dist/mail/source.js.map +0 -1
  217. package/dist/mail/sync.d.ts +0 -21
  218. package/dist/mail/sync.d.ts.map +0 -1
  219. package/dist/mail/sync.js +0 -24
  220. package/dist/mail/sync.js.map +0 -1
  221. /package/dist/bundle/{chunk-NUN6OGOV.js → chunk-LU3WKZBA.js} +0 -0
  222. /package/dist/bundle/{chunk-WX2WLEEF.js → chunk-MNDLWYNQ.js} +0 -0
@@ -10,18 +10,18 @@ import {
10
10
  providerErrorKey,
11
11
  renderEvent,
12
12
  runContextOf
13
- } from "./chunk-JDNA36EX.js";
13
+ } from "./chunk-NFTWNCEL.js";
14
14
  import {
15
15
  permissionCeiling
16
- } from "./chunk-AETJWLHX.js";
16
+ } from "./chunk-I5LIEFQR.js";
17
17
  import {
18
18
  envName,
19
19
  readOnlyLockOf,
20
20
  readOnlyRefusal
21
- } from "./chunk-2IKXEL4V.js";
21
+ } from "./chunk-WHVH72AD.js";
22
22
  import {
23
23
  carries
24
- } from "./chunk-UJEO3VWA.js";
24
+ } from "./chunk-JVNSHN2J.js";
25
25
  import {
26
26
  FACT_STATUSES,
27
27
  FACT_TYPES,
@@ -45,6 +45,7 @@ import {
45
45
  describeQuery,
46
46
  event,
47
47
  meeting,
48
+ meetingCounts,
48
49
  meetingDetails,
49
50
  meetingHit,
50
51
  meetingLink,
@@ -56,17 +57,17 @@ import {
56
57
  meetingStats,
57
58
  meetingSummary,
58
59
  meetingTranscript
59
- } from "./chunk-5M4KSMYN.js";
60
+ } from "./chunk-VGYXKQJE.js";
60
61
  import {
61
62
  sharedConfigPath
62
- } from "./chunk-CKLCJ6O7.js";
63
+ } from "./chunk-ZLB2CM7Z.js";
63
64
  import {
64
65
  filesPresent,
65
66
  sharedModelsDirectory
66
- } from "./chunk-STZMKXK5.js";
67
+ } from "./chunk-J7T6RSR5.js";
67
68
  import {
68
69
  storePath
69
- } from "./chunk-DIELPPLF.js";
70
+ } from "./chunk-INA5WGY7.js";
70
71
  import {
71
72
  configFilePath,
72
73
  createRecordLog,
@@ -79,7 +80,7 @@ import {
79
80
  saveConfigFile,
80
81
  traceIdOf,
81
82
  writeSecurely
82
- } from "./chunk-T4LW6UYQ.js";
83
+ } from "./chunk-TZ7WDQPD.js";
83
84
  import {
84
85
  COMPACT_FLAG,
85
86
  EXIT_CODES,
@@ -134,18 +135,18 @@ import {
134
135
  unwrap,
135
136
  variant,
136
137
  writes
137
- } from "./chunk-JY4LVWGZ.js";
138
+ } from "./chunk-G2BB5WY5.js";
138
139
  import {
139
140
  CliError,
140
141
  isCliError,
141
142
  singleLine,
142
143
  visibleControls
143
- } from "./chunk-CCHHEMPM.js";
144
+ } from "./chunk-EB2IULWB.js";
144
145
  import {
145
146
  __name
146
147
  } from "./chunk-ZVVMGPBJ.js";
147
148
 
148
- // 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
149
+ // 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
149
150
  var labels = /* @__PURE__ */ new WeakMap();
150
151
  var annotate = /* @__PURE__ */ __name((command, meta) => {
151
152
  labels.set(command, { ...labels.get(command), ...meta });
@@ -3646,7 +3647,7 @@ __name(useColor, "useColor");
3646
3647
  // node_modules/.pnpm/commander@15.0.0/node_modules/commander/index.js
3647
3648
  var program = new Command();
3648
3649
 
3649
- // 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
3650
+ // 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
3650
3651
  import { isDeepStrictEqual } from "node:util";
3651
3652
  var protectedCommands = /* @__PURE__ */ new WeakMap();
3652
3653
  var hasSharedContract = /* @__PURE__ */ __name((command) => protectedCommands.has(command), "hasSharedContract");
@@ -3848,7 +3849,7 @@ var customizeSharedCommand = /* @__PURE__ */ __name((reference2, reason, build,
3848
3849
  return command;
3849
3850
  }, "customizeSharedCommand");
3850
3851
 
3851
- // 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
3852
+ // 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
3852
3853
  var argumentInfoSchema = object({
3853
3854
  name: string(),
3854
3855
  required: boolean(),
@@ -3931,7 +3932,7 @@ var commandsDocument = /* @__PURE__ */ __name((root, about) => ({
3931
3932
  exit_codes: { ok: 0, internal_error: GENERIC_FAILURE, ...EXIT_CODES }
3932
3933
  }), "commandsDocument");
3933
3934
 
3934
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/sends/guarded.js
3935
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/sends/guarded.js
3935
3936
  import { AsyncLocalStorage } from "node:async_hooks";
3936
3937
  var sentIds = /* @__PURE__ */ __name((typed2, message2) => ({
3937
3938
  messageId: message2.id,
@@ -4037,7 +4038,7 @@ var guardedWrite = /* @__PURE__ */ __name(async (guard, attempt, act, settled2 =
4037
4038
  }, "guardedWrite");
4038
4039
  var codeOf = /* @__PURE__ */ __name((error) => typeof error?.code === "string" ? error.code : "unknown", "codeOf");
4039
4040
 
4040
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/cli/result-fields.js
4041
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/cli/result-fields.js
4041
4042
  var named = /* @__PURE__ */ __name((work) => {
4042
4043
  try {
4043
4044
  return work();
@@ -4064,7 +4065,7 @@ var projectFields2 = /* @__PURE__ */ __name((value, fields) => named(() => {
4064
4065
  return projectFields(value, fields);
4065
4066
  }), "projectFields");
4066
4067
 
4067
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/cli/execution.js
4068
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/cli/execution.js
4068
4069
  var DEFAULT_COOPERATIVE_MS = 5 * 6e4;
4069
4070
  var DEFAULT_SYNC_MS = 15 * 6e4;
4070
4071
  var DEFAULT_OUTPUT_BYTES = 4 * 1024 * 1024;
@@ -4086,7 +4087,7 @@ var withAbort = /* @__PURE__ */ __name(async (signal, body) => {
4086
4087
  }
4087
4088
  }, "withAbort");
4088
4089
 
4089
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/sends/permissions.js
4090
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/sends/permissions.js
4090
4091
  var LEVELS = ["deny", "readonly", "ask", "allow"];
4091
4092
  var DANGEROUS = /* @__PURE__ */ new Set(["messages.delete", "bot.messages.delete", "topics.delete", "chats.delete", "chats.clear"]);
4092
4093
  var skipFlagFor = /* @__PURE__ */ __name((key) => DANGEROUS.has(key) ? "--allow-dangerous" : "--yes", "skipFlagFor");
@@ -4482,7 +4483,7 @@ var assertRetentionEvidenceRead = /* @__PURE__ */ __name((permissions) => {
4482
4483
  }
4483
4484
  }, "assertRetentionEvidenceRead");
4484
4485
 
4485
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/cli/messenger/accounts.js
4486
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/cli/messenger/accounts.js
4486
4487
  import { existsSync, readdirSync, readFileSync } from "node:fs";
4487
4488
  import { join } from "node:path";
4488
4489
  var accountFileFor = /* @__PURE__ */ __name((app, profile, env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "accounts", `${profile}.json`), "accountFileFor");
@@ -4504,12 +4505,12 @@ var profilesWithAccounts = /* @__PURE__ */ __name((app, env) => {
4504
4505
  }, "profilesWithAccounts");
4505
4506
  var profilesHere = /* @__PURE__ */ __name((app, configured, env) => [.../* @__PURE__ */ new Set([...configured, ...profilesWithAccounts(app, env)])].sort(), "profilesHere");
4506
4507
 
4507
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/background/budget.js
4508
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/background/budget.js
4508
4509
  var DEADLINE_MARGIN_MS = 5e3;
4509
4510
  var DEADLINE_MARGIN_SHARE = 0.15;
4510
4511
  var deadlineMargin = /* @__PURE__ */ __name((deadline) => Math.max(DEADLINE_MARGIN_MS, deadline.ms * DEADLINE_MARGIN_SHARE), "deadlineMargin");
4511
4512
 
4512
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/output-detail.js
4513
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/output-detail.js
4513
4514
  var RARELY_SET = ["editedAt", "replyTo", "forwardedFrom", "reactions"];
4514
4515
  var BRIEF = ["locator", "chatTitle", "timestamp", "senderName", "excerpt", "score"];
4515
4516
  var SNAKE_BRIEF = ["ref", "chat_title", "timestamp", "sender_name", "excerpt", "score"];
@@ -4545,7 +4546,7 @@ var atDetail = /* @__PURE__ */ __name((value, detail = "default") => {
4545
4546
  return value;
4546
4547
  }, "atDetail");
4547
4548
 
4548
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/output.js
4549
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/output.js
4549
4550
  var refuseCompact = /* @__PURE__ */ __name(({ json, jsonl, fields, hitDetail }) => {
4550
4551
  const other = jsonl ? "--jsonl" : fields !== void 0 ? "--json=\u2026" : json ? "--json" : hitDetail === "brief" ? "--brief" : "";
4551
4552
  if (other)
@@ -4609,7 +4610,7 @@ var silence = /* @__PURE__ */ __name((renderer) => ({
4609
4610
  }, "warn")
4610
4611
  }), "silence");
4611
4612
 
4612
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/runs/log-events.js
4613
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/runs/log-events.js
4613
4614
  var CORE_LOG_EVENTS = defineLogEvents([
4614
4615
  { id: "provider.request", meaning: "a request went to the messenger", keys: ["operation"] },
4615
4616
  { id: "provider.response", meaning: "the messenger answered the request, or it failed", keys: ["operation"] },
@@ -4643,7 +4644,7 @@ var DIAGNOSTIC_LOG_EVENTS = {
4643
4644
  cache: "cache.answered"
4644
4645
  };
4645
4646
 
4646
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/runs/log-keys.js
4647
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/runs/log-keys.js
4647
4648
  var snake2 = /* @__PURE__ */ __name((key) => key.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snake");
4648
4649
  var camel = /* @__PURE__ */ __name((key) => key.replace(/_([a-z0-9])/g, (_, letter) => letter.toUpperCase()), "camel");
4649
4650
  var renamed = /* @__PURE__ */ __name((record2, name) => Object.fromEntries(Object.entries(record2).map(([key, value]) => [name(key), value])), "renamed");
@@ -4656,13 +4657,13 @@ var snakeLogger = /* @__PURE__ */ __name((logger) => ({
4656
4657
  error: /* @__PURE__ */ __name((event2, message2) => logger.error(logAttributes(event2), message2), "error")
4657
4658
  }), "snakeLogger");
4658
4659
 
4659
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/runs/run.js
4660
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/runs/run.js
4660
4661
  import { randomUUID } from "node:crypto";
4661
4662
  import { appendFileSync, mkdirSync, readdirSync as readdirSync2, readFileSync as readFileSync2, rmSync, statSync, writeFileSync } from "node:fs";
4662
4663
  import { userInfo } from "node:os";
4663
4664
  import { join as join2, sep } from "node:path";
4664
4665
 
4665
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/runs/log-attributes.js
4666
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/runs/log-attributes.js
4666
4667
  var diagnostic = {
4667
4668
  event: true,
4668
4669
  operation: true,
@@ -4732,7 +4733,7 @@ var LOG_ATTRIBUTES = [
4732
4733
  ...new Set([...Object.keys(diagnostic), ...Object.keys(send), ...background, ...crash, ...dropped].map((key) => Object.keys(logAttributes({ [key]: true }))[0]))
4733
4734
  ].sort();
4734
4735
 
4735
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/runs/run.js
4736
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/runs/run.js
4736
4737
  var KEEP_RUNS_FOR_DAYS = 30;
4737
4738
  var KEEP_SUCCESSFUL_RUNS_FOR_DAYS = 7;
4738
4739
  var RUNS_SIZE_LIMIT_MB = 200;
@@ -5085,7 +5086,7 @@ var metadataOf = /* @__PURE__ */ __name((parsed) => {
5085
5086
  };
5086
5087
  }, "metadataOf");
5087
5088
 
5088
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/runs/scope.js
5089
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/runs/scope.js
5089
5090
  import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
5090
5091
  import { randomBytes } from "node:crypto";
5091
5092
  var scopes = new AsyncLocalStorage2();
@@ -5103,7 +5104,6 @@ var currentRun = /* @__PURE__ */ __name(() => {
5103
5104
  return processScope;
5104
5105
  }, "currentRun");
5105
5106
  var inRun = /* @__PURE__ */ __name((scope, body) => scopes.run(scope, body), "inRun");
5106
- var runEvent = /* @__PURE__ */ __name((event2) => scopes.getStore()?.events?.(event2), "runEvent");
5107
5107
  var typedCommand = /* @__PURE__ */ __name((tool, words, profile = currentRun().profile) => [tool, profile, words].filter((part) => part !== void 0 && part !== "").join(" "), "typedCommand");
5108
5108
  var useAsProcessRun = /* @__PURE__ */ __name((scope) => {
5109
5109
  processScope = scope;
@@ -5120,9 +5120,8 @@ var childTrace = /* @__PURE__ */ __name(() => {
5120
5120
  }, "childTrace");
5121
5121
  var attempts = new AsyncLocalStorage2();
5122
5122
  var withAttempt = /* @__PURE__ */ __name((attempt, work) => attempts.run(attempt, work), "withAttempt");
5123
- var currentAttempt = /* @__PURE__ */ __name(() => attempts.getStore(), "currentAttempt");
5124
5123
 
5125
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/runs/recording.js
5124
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/runs/recording.js
5126
5125
  var recorded = /* @__PURE__ */ __name(async (options, body) => {
5127
5126
  const recording = startRecording(options);
5128
5127
  try {
@@ -5307,9 +5306,9 @@ var partialOutcome = /* @__PURE__ */ __name((answer) => {
5307
5306
  return void 0;
5308
5307
  }, "partialOutcome");
5309
5308
 
5310
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/cli/deadline.js
5311
- var withDeadline = /* @__PURE__ */ __name(async (ms, closeables, body) => {
5312
- if (ms === void 0)
5309
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/cli/deadline.js
5310
+ var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
5311
+ if (ms2 === void 0)
5313
5312
  return body();
5314
5313
  let timer2;
5315
5314
  let timedOut;
@@ -5318,10 +5317,10 @@ var withDeadline = /* @__PURE__ */ __name(async (ms, closeables, body) => {
5318
5317
  timer2 = setTimeout(() => {
5319
5318
  const pending = [...writes2];
5320
5319
  const cut2 = pending.filter((write) => !write.preparing);
5321
- 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`);
5320
+ 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`);
5322
5321
  stopWrites(writes2, timedOut);
5323
5322
  void Promise.allSettled(closeables.map((closeable) => closeable.close())).then(() => reject(timedOut));
5324
- }, ms);
5323
+ }, ms2);
5325
5324
  });
5326
5325
  try {
5327
5326
  return await Promise.race([withWriteScope(writes2, body), expired]);
@@ -5333,7 +5332,7 @@ var withDeadline = /* @__PURE__ */ __name(async (ms, closeables, body) => {
5333
5332
  }
5334
5333
  }, "withDeadline");
5335
5334
 
5336
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/cli/profile.js
5335
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/cli/profile.js
5337
5336
  var asFirstWord = /* @__PURE__ */ __name((profile) => `${profile} `, "asFirstWord");
5338
5337
  var PLAIN_NAME = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
5339
5338
  var isProfileName = /* @__PURE__ */ __name((word) => PLAIN_NAME.test(word), "isProfileName");
@@ -5375,10 +5374,10 @@ var rootOf = /* @__PURE__ */ __name((command) => {
5375
5374
  return root;
5376
5375
  }, "rootOf");
5377
5376
 
5378
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/cli/settings.js
5379
- import { existsSync as existsSync3 } from "node:fs";
5377
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/cli/settings.js
5378
+ import { existsSync as existsSync4 } from "node:fs";
5380
5379
 
5381
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/models/endpoint.js
5380
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/models/endpoint.js
5382
5381
  var endpoint = /* @__PURE__ */ __name((value) => {
5383
5382
  try {
5384
5383
  const url2 = new URL(value);
@@ -5388,7 +5387,7 @@ var endpoint = /* @__PURE__ */ __name((value) => {
5388
5387
  }
5389
5388
  }, "endpoint");
5390
5389
 
5391
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/models/settings.js
5390
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/models/settings.js
5392
5391
  var MODEL_FIELDS = ["provider", "model", "base_url"];
5393
5392
  var modelSettingsShape = record(pipe(string(), regex(/^[a-z][a-z0-9-]*$/)), strictObject({
5394
5393
  provider: optional(picklist(["off", "openai", "anthropic"])),
@@ -5457,7 +5456,7 @@ var modelTarget = /* @__PURE__ */ __name((settings, purpose) => {
5457
5456
  };
5458
5457
  }, "modelTarget");
5459
5458
 
5460
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/analysis/settings.js
5459
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/analysis/settings.js
5461
5460
  var model = pipe(string(), trim(), minLength(1), maxLength(200));
5462
5461
  var url = pipe(string(), check(endpoint, "use an HTTP/S endpoint without credentials, query or fragment"));
5463
5462
  var AI_FIELDS = {
@@ -5501,7 +5500,7 @@ var resolveAISettings = /* @__PURE__ */ __name((prefix, layers, env) => {
5501
5500
  };
5502
5501
  }, "resolveAISettings");
5503
5502
 
5504
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/domain/duration.js
5503
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/domain/duration.js
5505
5504
  var DURATION = /^(\d+)(ms|s|m|h|d)$/;
5506
5505
  var UNIT_MS = { ms: 1, s: 1e3, m: 6e4, h: 36e5, d: 864e5 };
5507
5506
  var parseDuration = /* @__PURE__ */ __name((value, source2) => {
@@ -5509,13 +5508,13 @@ var parseDuration = /* @__PURE__ */ __name((value, source2) => {
5509
5508
  if (!match?.[1] || !match[2]) {
5510
5509
  throw new CliError("validation_error", `${source2} takes a duration with a unit \u2014 500ms, 30s, 2m, 4h or 1d \u2014 not "${value}"`);
5511
5510
  }
5512
- const ms = Number(match[1]) * (UNIT_MS[match[2]] ?? 0);
5513
- if (ms <= 0)
5511
+ const ms2 = Number(match[1]) * (UNIT_MS[match[2]] ?? 0);
5512
+ if (ms2 <= 0)
5514
5513
  throw new CliError("validation_error", `${source2} has to be more than zero, and "${value}" is not`);
5515
- return ms;
5514
+ return ms2;
5516
5515
  }, "parseDuration");
5517
5516
 
5518
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/embeddings/models.js
5517
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/embeddings/models.js
5519
5518
  var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/${repository}/resolve/${commit}/${name}`, "huggingFace");
5520
5519
  var e5 = huggingFace("Xenova/multilingual-e5-small", "761b726dd34fb83930e26aab4e9ac3899aa1fa78");
5521
5520
  var gemma = huggingFace("onnx-community/embeddinggemma-300m-ONNX", "5090578d9565bb06545b4552f76e6bc2c93e4a66");
@@ -5674,7 +5673,7 @@ var rerankModel = /* @__PURE__ */ __name((id6) => {
5674
5673
  var vectorModelKey = /* @__PURE__ */ __name((model3) => `local:${model3.id}:${model3.dims}`, "vectorModelKey");
5675
5674
  var meaningFloor = /* @__PURE__ */ __name((key) => key === "local:e5-small:384" ? 0.8 : 0, "meaningFloor");
5676
5675
 
5677
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/history-limits.js
5676
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/services/history-limits.js
5678
5677
  var HISTORY_MAX_DAYS = 1095;
5679
5678
  var DEFAULT_HISTORY_LIMITS = { dialogDays: 1095, groupDays: 365, groupMembersMax: 50 };
5680
5679
  var DAY_MS2 = 24 * 60 * 60 * 1e3;
@@ -5721,10 +5720,99 @@ var limitBatch = /* @__PURE__ */ __name((batch, shapes, included, limits, now =
5721
5720
  return { batch: { ...batch, messages }, skipped };
5722
5721
  }, "limitBatch");
5723
5722
 
5724
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
5725
- import { readFileSync as readFileSync3 } from "node:fs";
5723
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/cli/bot/registry.js
5724
+ import { existsSync as existsSync2, readdirSync as readdirSync3, readFileSync as readFileSync3 } from "node:fs";
5725
+ import { join as join3 } from "node:path";
5726
+ var botsDirectory = /* @__PURE__ */ __name((app, env = process.env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "bots"), "botsDirectory");
5727
+ var botFiles = /* @__PURE__ */ __name((app, profile, env = process.env) => {
5728
+ const directory = botsDirectory(app, env);
5729
+ return {
5730
+ registry: join3(directory, `${profile}.json`),
5731
+ recipients: join3(directory, "recipients", `${profile}.json`),
5732
+ journal: join3(directory, "sends", `${profile}.jsonl`),
5733
+ updates: join3(directory, "updates", `${profile}.json`),
5734
+ presses: join3(directory, "presses", `${profile}.json`),
5735
+ checks: join3(directory, "checks", `${profile}.json`)
5736
+ };
5737
+ }, "botFiles");
5738
+ var ChatRegistry = class {
5739
+ static {
5740
+ __name(this, "ChatRegistry");
5741
+ }
5742
+ #path;
5743
+ constructor(app, profile, env = process.env) {
5744
+ this.#path = botFiles(app, profile, env).registry;
5745
+ }
5746
+ list(filter = {}) {
5747
+ const { chats } = this.#read();
5748
+ 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()));
5749
+ }
5750
+ /** The bot's own user id, once any command has learned it — the key its messages are stored under. */
5751
+ botId() {
5752
+ const { botId } = this.#read();
5753
+ return typeof botId === "string" ? botId : void 0;
5754
+ }
5755
+ rememberBot(id6) {
5756
+ const file = this.#read();
5757
+ if (file.botId !== id6)
5758
+ this.#write({ ...file, botId: id6 });
5759
+ }
5760
+ /** Makes this bot known to `bot list` before it has seen any chat. */
5761
+ touch() {
5762
+ if (!existsSync2(this.#path))
5763
+ writeSecurely(this.#path, `${JSON.stringify({ chats: [] }, null, 2)}
5764
+ `, 384);
5765
+ }
5766
+ /** Newer facts win; a chat seen only as an id keeps the title it had. */
5767
+ observe(chats, now = /* @__PURE__ */ new Date()) {
5768
+ if (chats.length === 0)
5769
+ return;
5770
+ const byId = new Map(this.list().map((chat2) => [chat2.id, chat2]));
5771
+ const at2 = now.toISOString();
5772
+ for (const chat2 of chats) {
5773
+ const known = byId.get(chat2.id);
5774
+ const defined = Object.fromEntries(Object.entries(chat2).filter(([, value]) => value !== void 0 && value !== null));
5775
+ byId.set(chat2.id, {
5776
+ title: null,
5777
+ kind: "unknown",
5778
+ unreadCount: null,
5779
+ lastMessageAt: null,
5780
+ participantsCount: null,
5781
+ ...known,
5782
+ ...defined,
5783
+ id: chat2.id,
5784
+ firstSeenAt: known?.firstSeenAt ?? at2,
5785
+ lastSeenAt: at2
5786
+ });
5787
+ }
5788
+ this.#write({ ...this.#read(), chats: [...byId.values()] });
5789
+ }
5790
+ #read() {
5791
+ if (!existsSync2(this.#path))
5792
+ return {};
5793
+ try {
5794
+ const parsed = JSON.parse(readFileSync3(this.#path, "utf8"));
5795
+ return parsed && typeof parsed === "object" ? parsed : {};
5796
+ } catch {
5797
+ return {};
5798
+ }
5799
+ }
5800
+ #write(file) {
5801
+ writeSecurely(this.#path, `${JSON.stringify(file, null, 2)}
5802
+ `, 384);
5803
+ }
5804
+ };
5805
+ var registryProfiles = /* @__PURE__ */ __name((app, env = process.env) => {
5806
+ const directory = botsDirectory(app, env);
5807
+ if (!existsSync2(directory))
5808
+ return [];
5809
+ return readdirSync3(directory, { withFileTypes: true }).filter((entry) => entry.isFile() && entry.name.endsWith(".json")).map((entry) => entry.name).map((name) => name.slice(0, -".json".length));
5810
+ }, "registryProfiles");
5811
+
5812
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
5813
+ import { readFileSync as readFileSync4 } from "node:fs";
5726
5814
 
5727
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/cli/config-repair.js
5815
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/cli/config-repair.js
5728
5816
  var REPAIR_WORDS = {
5729
5817
  byte_order_mark: "an invisible byte-order mark at the start",
5730
5818
  comment: "a comment, which JSON does not allow",
@@ -5965,7 +6053,7 @@ ${parts.join(",\n")}
5965
6053
  ${indent}${close}`;
5966
6054
  }, "serialise");
5967
6055
 
5968
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
6056
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
5969
6057
  var isNode = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
5970
6058
  var SECTIONS = ["personal", "bot"];
5971
6059
  var SHELL_SAFE = /^[A-Za-z0-9_.:@-]*$/;
@@ -6220,11 +6308,11 @@ var issueMessage = /* @__PURE__ */ __name((issues, doctor = "doctor") => {
6220
6308
  const more = issues.length - 1;
6221
6309
  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)`);
6222
6310
  }, "issueMessage");
6223
- var checkConfigText = /* @__PURE__ */ __name((text5, { file, tool, schema: schema2, knownPermissions }) => {
6311
+ var checkConfigText = /* @__PURE__ */ __name((text5, { file, tool, schema: schema2, knownPermissions, repair = true }) => {
6224
6312
  const parsed = parseConfigText(text5, file);
6225
6313
  if ("issue" in parsed) {
6226
6314
  const issue = publicIssue(parsed.issue);
6227
- if (repairConfigText(text5).state === "repaired")
6315
+ if (repair && repairConfigText(text5).state === "repaired")
6228
6316
  issue.fix = `${tool} config repair`;
6229
6317
  return { issues: [issue], config: void 0 };
6230
6318
  }
@@ -6240,7 +6328,7 @@ var checkConfigText = /* @__PURE__ */ __name((text5, { file, tool, schema: schem
6240
6328
  var wholeFile = /* @__PURE__ */ __name((file, what) => ({ kind: "invalid_value", file, what }), "wholeFile");
6241
6329
  var readConfigText = /* @__PURE__ */ __name((path2) => {
6242
6330
  try {
6243
- return { text: readFileSync3(path2, "utf8") };
6331
+ return { text: readFileSync4(path2, "utf8") };
6244
6332
  } catch (error) {
6245
6333
  const code = error.code;
6246
6334
  if (code === "ENOENT")
@@ -6260,20 +6348,20 @@ var readConfigFile = /* @__PURE__ */ __name((path2) => {
6260
6348
  return "issue" in parsed ? { issue: publicIssue(parsed.issue) } : parsed;
6261
6349
  }, "readConfigFile");
6262
6350
 
6263
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/cli/default-config.js
6264
- import { existsSync as existsSync2, linkSync, mkdirSync as mkdirSync2, mkdtempSync, rmSync as rmSync2, writeFileSync as writeFileSync2 } from "node:fs";
6265
- import { dirname, join as join3 } from "node:path";
6351
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/cli/default-config.js
6352
+ import { existsSync as existsSync3, linkSync, mkdirSync as mkdirSync2, mkdtempSync, rmSync as rmSync2, writeFileSync as writeFileSync2 } from "node:fs";
6353
+ import { dirname, join as join4 } from "node:path";
6266
6354
  var DEFAULT_CONFIG = {
6267
6355
  defaults: { limit: 20, keep_runs_for_days: 30, sends_per_hour: 30, update_check: true, skill_hint: true },
6268
6356
  profiles: {}
6269
6357
  };
6270
6358
  function ensureDefaultConfig(path2, config = DEFAULT_CONFIG) {
6271
- if (existsSync2(path2))
6359
+ if (existsSync3(path2))
6272
6360
  return;
6273
6361
  const directory = dirname(path2);
6274
6362
  mkdirSync2(directory, { recursive: true, mode: 448 });
6275
- const temporary = mkdtempSync(join3(directory, ".config-"));
6276
- const candidate = join3(temporary, "config.json");
6363
+ const temporary = mkdtempSync(join4(directory, ".config-"));
6364
+ const candidate = join4(temporary, "config.json");
6277
6365
  try {
6278
6366
  writeFileSync2(candidate, `${JSON.stringify(config, null, 2)}
6279
6367
  `, { flag: "wx", mode: 384 });
@@ -6289,7 +6377,7 @@ function ensureDefaultConfig(path2, config = DEFAULT_CONFIG) {
6289
6377
  }
6290
6378
  __name(ensureDefaultConfig, "ensureDefaultConfig");
6291
6379
 
6292
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/cli/setting-defaults.js
6380
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/cli/setting-defaults.js
6293
6381
  var isNode2 = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
6294
6382
  var parentOf = /* @__PURE__ */ __name((config, key) => {
6295
6383
  const path2 = key.split(".");
@@ -6322,7 +6410,7 @@ var settingRows = /* @__PURE__ */ __name((raw, declared) => declared.map((settin
6322
6410
  };
6323
6411
  }), "settingRows");
6324
6412
 
6325
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/cli/settings.js
6413
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/cli/settings.js
6326
6414
  var DEFAULT_LIMIT = DEFAULT_CONFIG.defaults.limit;
6327
6415
  var DEFAULT_KEEP_RUNS_FOR_DAYS = DEFAULT_CONFIG.defaults.keep_runs_for_days;
6328
6416
  var DEFAULT_SENDS_PER_HOUR = DEFAULT_CONFIG.defaults.sends_per_hour;
@@ -6386,7 +6474,9 @@ var MESSENGER_ONLY_SETTINGS = [
6386
6474
  "history_dialog_days",
6387
6475
  "history_group_days",
6388
6476
  "history_group_members_max",
6389
- "read_other_bots"
6477
+ "read_other_bots",
6478
+ "speech_model",
6479
+ "picture_search"
6390
6480
  ];
6391
6481
  var SHARED_DEFAULTS_ONLY = {
6392
6482
  update_check: optional(flag),
@@ -6518,7 +6608,12 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
6518
6608
  return { config: { profiles: {} }, issues: [read.issue] };
6519
6609
  if (read.text === void 0)
6520
6610
  return { config: { profiles: {} }, issues: [] };
6521
- const { config, issues } = checkConfigText(read.text, { file: path2, tool: app.command, schema: readSchema });
6611
+ const { config, issues } = checkConfigText(read.text, {
6612
+ file: path2,
6613
+ tool: app.command,
6614
+ schema: readSchema,
6615
+ repair: extension.configRepair !== false
6616
+ });
6522
6617
  return { config: config ?? { profiles: {} }, issues };
6523
6618
  }, "loadConfig");
6524
6619
  const locked = /* @__PURE__ */ __name((profile, lock) => {
@@ -6541,6 +6636,15 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
6541
6636
  throw new CliError("validation_error", `name a profile: \`${app.command} <profile> \u2026\` \u2014 profiles here: ${here.join(", ")} (or set ${PROFILE})`, { profiles: here });
6542
6637
  }, "unnamed");
6543
6638
  const profilesOf = /* @__PURE__ */ __name((config, env) => profilesHere(app, [...namedProfiles(config), ...extension.profiles?.(env) ?? []], env), "profilesOf");
6639
+ const botsOf = /* @__PURE__ */ __name((config, env) => [.../* @__PURE__ */ new Set([...Object.keys(config.bot?.profiles ?? {}), ...registryProfiles(app, env)])].sort(), "botsOf");
6640
+ const accountsOf = /* @__PURE__ */ __name((config, env, bots) => {
6641
+ const personal = /* @__PURE__ */ new Set([
6642
+ ...Object.keys(config.personal?.profiles ?? {}),
6643
+ ...profilesWithAccounts(app, env),
6644
+ ...extension.profiles?.(env) ?? []
6645
+ ]);
6646
+ return profilesOf(config, env).filter((name) => !bots.includes(name) || personal.has(name));
6647
+ }, "accountsOf");
6544
6648
  const resolveSettings = /* @__PURE__ */ __name((flags = {}, options = {}) => {
6545
6649
  const env = options.env ?? process.env;
6546
6650
  const configPath = configPathFor(options);
@@ -6562,6 +6666,7 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
6562
6666
  ], void 0);
6563
6667
  const profile = locked(named3.value === void 0 ? unnamed(config, env, options.needsProfile !== false) : { value: named3.value, from: named3.from }, lock);
6564
6668
  const kind2 = options.kind ?? "personal";
6669
+ const bots = botsOf(config, env);
6565
6670
  const name = usableProfileName(profile.value);
6566
6671
  const configured = config.profiles[name] ?? {};
6567
6672
  const shared = config.defaults ?? {};
@@ -6653,9 +6758,11 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
6653
6758
  updateCheck: updateCheck.value,
6654
6759
  skillHint: skillHint.value,
6655
6760
  configPath,
6656
- configFound: existsSync3(configPath),
6761
+ configFound: existsSync4(configPath),
6657
6762
  configuredProfiles: namedProfiles(config),
6658
6763
  profilesHere: profilesOf(config, env),
6764
+ accountProfiles: accountsOf(config, env, bots),
6765
+ botProfiles: bots,
6659
6766
  sources: {
6660
6767
  ...ai.sources,
6661
6768
  profile: profile.from,
@@ -6738,10 +6845,20 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
6738
6845
  if (kind2 !== "bot" && botOnlyKeys.includes(setting2)) {
6739
6846
  throw new CliError("validation_error", `${setting2} is a bot's setting \u2014 add --bot`);
6740
6847
  }
6741
- const changed = structuredClone(raw);
6742
- setAt(changed, at2, level2 === void 0 ? parseValue(value) : value.trim());
6743
6848
  const had = new Set(before.map((issue) => issue.at.join(".")));
6744
- const added = schemaIssues(changed, readSchema, context2(path2)).find((issue) => !had.has(issue.at.join(".")) || issue.at.join(".") === at2.join("."));
6849
+ const tried = /* @__PURE__ */ __name((typed2) => {
6850
+ const changed2 = structuredClone(raw);
6851
+ setAt(changed2, at2, typed2);
6852
+ const added2 = schemaIssues(changed2, readSchema, context2(path2)).find((issue) => !had.has(issue.at.join(".")) || issue.at.join(".") === at2.join("."));
6853
+ return { changed: changed2, added: added2 };
6854
+ }, "tried");
6855
+ const parsed = level2 === void 0 ? parseValue(value) : value.trim();
6856
+ let { changed, added } = tried(parsed);
6857
+ if (added && typeof parsed !== "string") {
6858
+ const asText = tried(value.trim());
6859
+ if (!asText.added)
6860
+ ({ changed, added } = asText);
6861
+ }
6745
6862
  if (added)
6746
6863
  throw new CliError("validation_error", `${setting2} cannot be "${value}": ${added.what}`);
6747
6864
  const checked = safeParse(readSchema, changed);
@@ -6803,7 +6920,7 @@ var given = /* @__PURE__ */ __name((value) => {
6803
6920
  return trimmed === void 0 || trimmed === "" ? void 0 : trimmed;
6804
6921
  }, "given");
6805
6922
 
6806
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/cli/context.js
6923
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/cli/context.js
6807
6924
  var setExitCode = /* @__PURE__ */ __name((command, code) => {
6808
6925
  const slot = environmentOf(command).exit;
6809
6926
  if (slot)
@@ -6916,7 +7033,7 @@ var commandPath = /* @__PURE__ */ __name((command) => {
6916
7033
  return words.join(" ");
6917
7034
  }, "commandPath");
6918
7035
 
6919
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/cli/effects.js
7036
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/cli/effects.js
6920
7037
  var REMOTE_READ = { remote: "read", local: "read" };
6921
7038
  var FETCH = { remote: "read", local: "write" };
6922
7039
  var REMOTE_WRITE = { remote: "write", local: "write" };
@@ -7023,7 +7140,7 @@ var refuseUnderReadOnly = /* @__PURE__ */ __name((command, what) => {
7023
7140
  throw readOnlyRefusal(lock, what);
7024
7141
  }, "refuseUnderReadOnly");
7025
7142
 
7026
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/fields.js
7143
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/fields.js
7027
7144
  var text = string();
7028
7145
  var id = pipe(string(), minLength(1));
7029
7146
  var time = isoTime;
@@ -7047,7 +7164,7 @@ var author = strictObject({
7047
7164
  name: nullable(text)
7048
7165
  });
7049
7166
 
7050
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/account.js
7167
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/account.js
7051
7168
  var account = strictObject({
7052
7169
  provider: text,
7053
7170
  id,
@@ -7057,7 +7174,7 @@ var account = strictObject({
7057
7174
  scope: optional(picklist(["personal", "work"]))
7058
7175
  });
7059
7176
 
7060
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/account-session.js
7177
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/account-session.js
7061
7178
  var accountSession = strictObject({
7062
7179
  current: boolean(),
7063
7180
  client: nullable(text),
@@ -7067,7 +7184,7 @@ var accountSession = strictObject({
7067
7184
  created_at: optional(nullable(time))
7068
7185
  });
7069
7186
 
7070
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/account-change.js
7187
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/account-change.js
7071
7188
  var accountChange = strictObject({ operation_id: id, account: omit(account, ["provider", "scope"]) });
7072
7189
  var endedAccountSessions = strictObject({ operation_id: id, sessions: array(accountSession) });
7073
7190
  var audience = picklist(["everyone", "contacts", "nobody"]);
@@ -7085,17 +7202,19 @@ var accountPrivacy = strictObject({
7085
7202
  });
7086
7203
  var accountPrivacyChange = strictObject({ operation_id: id, privacy: accountPrivacy });
7087
7204
 
7088
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/account-profile.js
7205
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/account-profile.js
7089
7206
  var accountProfile = strictObject({
7090
7207
  profile: id,
7091
7208
  current: boolean(),
7092
7209
  account: nullable(id),
7093
7210
  name: nullable(text),
7094
7211
  /** False for a profile with no session on this computer; absent when the messenger does not say. */
7095
- signed_in: optional(boolean())
7212
+ signed_in: optional(boolean()),
7213
+ /** True when the same name is a bot profile too (`<tool> <profile> bot …`); absent otherwise. */
7214
+ bot: optional(literal(true))
7096
7215
  });
7097
7216
 
7098
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/counter-reading.js
7217
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/counter-reading.js
7099
7218
  var milliseconds = pipe(number(), minValue(0));
7100
7219
  var counterReading = strictObject({
7101
7220
  counter: picklist(["views", "reactions", "comments"]),
@@ -7107,7 +7226,7 @@ var counterReading = strictObject({
7107
7226
  });
7108
7227
  var selection = record(string(), unknown());
7109
7228
 
7110
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/admin-report.js
7229
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/admin-report.js
7111
7230
  var adminRow = strictObject({
7112
7231
  ref: reference,
7113
7232
  /** What `stats * evidence` takes: a person id, a stay or a message locator. */
@@ -7160,7 +7279,7 @@ var adminReport = strictObject({
7160
7279
  rows: array(adminRow)
7161
7280
  });
7162
7281
 
7163
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/task.js
7282
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/task.js
7164
7283
  var closeSuggestion = strictObject({
7165
7284
  as: picklist(["done", "dismissed"]),
7166
7285
  /** The agent's name. */
@@ -7218,7 +7337,7 @@ var task = strictObject({
7218
7337
  updated_at: optional(time)
7219
7338
  });
7220
7339
 
7221
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/agenda.js
7340
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/agenda.js
7222
7341
  var agendaChat = strictObject({
7223
7342
  chat: reference,
7224
7343
  title: nullable(text),
@@ -7288,11 +7407,11 @@ var agenda = strictObject({
7288
7407
  unlisted_categories: array(strictObject({ name: text, open_tasks: number() }))
7289
7408
  });
7290
7409
 
7291
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/analysis-consent.js
7410
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/analysis-consent.js
7292
7411
  var analysisConsent = strictObject({ chat: id, provider: text, at: time });
7293
7412
  var analysisConsentRevocation = strictObject({ revoked: boolean() });
7294
7413
 
7295
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/attachment.js
7414
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/attachment.js
7296
7415
  var attachment = strictObject({
7297
7416
  /** The message it came with, as a locator; absent inside that message. */
7298
7417
  message: optional(reference),
@@ -7330,7 +7449,7 @@ var attachment = strictObject({
7330
7449
  });
7331
7450
  var hitFile = strictObject({ position: count2, kind: text, name: optional(text), size: optional(count2) });
7332
7451
 
7333
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/batch-result.js
7452
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/batch-result.js
7334
7453
  var actionableError = objectWithRest({
7335
7454
  code: text,
7336
7455
  message: text,
@@ -7347,7 +7466,7 @@ var batchResult = strictObject({
7347
7466
  max_error_percent: count2
7348
7467
  });
7349
7468
 
7350
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/extraction-report.js
7469
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/extraction-report.js
7351
7470
  var extractionItem = strictObject({
7352
7471
  ref: reference,
7353
7472
  attachment: count2,
@@ -7380,7 +7499,7 @@ var extractionReport = strictObject({
7380
7499
  cursor: optional(text)
7381
7500
  });
7382
7501
 
7383
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/attachment-results.js
7502
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/attachment-results.js
7384
7503
  var fingerprint = pipe(text, regex(/^[a-f0-9]{64}$/));
7385
7504
  var attachmentBytes = strictObject({
7386
7505
  ref: reference,
@@ -7408,7 +7527,7 @@ var attachmentTextChange = strictObject({
7408
7527
  replaced: nullable(picklist(["extracted", "agent"]))
7409
7528
  });
7410
7529
 
7411
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/chart.js
7530
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/chart.js
7412
7531
  var chart = strictObject({
7413
7532
  version: literal(1),
7414
7533
  kind: picklist(["bar", "line", "grouped-bar"]),
@@ -7423,7 +7542,7 @@ var chart = strictObject({
7423
7542
  file: optional(strictObject({ path: text, format: picklist(["svg", "png"]), width: count2, height: count2 }))
7424
7543
  });
7425
7544
 
7426
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/member.js
7545
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/member.js
7427
7546
  var member = strictObject({
7428
7547
  id,
7429
7548
  name: nullable(text),
@@ -7446,7 +7565,7 @@ var member = strictObject({
7446
7565
  check: optional(record(string(), unknown()))
7447
7566
  });
7448
7567
 
7449
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/chat.js
7568
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/chat.js
7450
7569
  var setting = optional(nullable(boolean()));
7451
7570
  var chat = strictObject({
7452
7571
  ref: reference,
@@ -7487,7 +7606,7 @@ var chat = strictObject({
7487
7606
  members: optional(array(member))
7488
7607
  });
7489
7608
 
7490
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/folder.js
7609
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/folder.js
7491
7610
  var named2 = strictObject({
7492
7611
  id,
7493
7612
  title: nullable(text),
@@ -7510,7 +7629,7 @@ var folder = strictObject({
7510
7629
  excluded_chats: optional(array(named2))
7511
7630
  });
7512
7631
 
7513
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/invite-link.js
7632
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/invite-link.js
7514
7633
  var inviteLink = strictObject({
7515
7634
  link: text,
7516
7635
  /** Who joins by it asks first, and an admin lets them in. */
@@ -7526,7 +7645,7 @@ var inviteLink = strictObject({
7526
7645
  joined_count: optional(count2)
7527
7646
  });
7528
7647
 
7529
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/chat-admin.js
7648
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/chat-admin.js
7530
7649
  var operated = { operation_id: id, chat_id: id };
7531
7650
  var group = strictObject({
7532
7651
  ...omit(chat, ["ref", "provider", "account", "invite_link", "members"]).entries,
@@ -7606,7 +7725,7 @@ var chatFolderOrder = strictObject({
7606
7725
  folders: array(strictObject({ id, title: text }))
7607
7726
  });
7608
7727
 
7609
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/chat-change.js
7728
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/chat-change.js
7610
7729
  var operated2 = { operation_id: id, chat_id: id };
7611
7730
  var chatRemoval = strictObject(operated2);
7612
7731
  var chatMuting = strictObject({
@@ -7617,7 +7736,7 @@ var chatArchive = strictObject({ ...operated2, archived: boolean() });
7617
7736
  var chatPin = strictObject({ ...operated2, pinned: boolean() });
7618
7737
  var chatUnread = strictObject({ ...operated2, unread: literal(true) });
7619
7738
 
7620
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/chat-event.js
7739
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/chat-event.js
7621
7740
  var who = strictObject({ id: nullable(id), name: nullable(text), username: optional(nullable(text)) });
7622
7741
  var chatEvent = strictObject({
7623
7742
  chat_id: id,
@@ -7634,7 +7753,7 @@ var chatEvent = strictObject({
7634
7753
  before: optional(strictObject({ name: nullable(text), username: nullable(text) }))
7635
7754
  });
7636
7755
 
7637
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/chat-metadata.js
7756
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/chat-metadata.js
7638
7757
  var chatMetadata = strictObject({
7639
7758
  chat_id: id,
7640
7759
  title: nullable(text),
@@ -7649,7 +7768,7 @@ var chatMetadataRefresh = strictObject({
7649
7768
  has_more: boolean()
7650
7769
  });
7651
7770
 
7652
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/chat-moderation.js
7771
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/chat-moderation.js
7653
7772
  var action = picklist(["report", "delete", "remove"]);
7654
7773
  var level = picklist(["deny", "readonly", "ask", "allow"]);
7655
7774
  var chatRules = strictObject({
@@ -7686,7 +7805,7 @@ var chatModeration = strictObject({
7686
7805
  }))
7687
7806
  });
7688
7807
 
7689
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/chat-stats.js
7808
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/chat-stats.js
7690
7809
  var optionalCount = optional(count2);
7691
7810
  var minutes = nullable(number());
7692
7811
  var chatStats = strictObject({
@@ -7737,18 +7856,30 @@ var chatStats = strictObject({
7737
7856
  })),
7738
7857
  series: optional(array(strictObject({ key: text, messages: count2, senders: count2, joined: optionalCount, left: optionalCount })))
7739
7858
  });
7859
+ var ms = nullable(pipe(number(), minValue(0)));
7740
7860
  var taskStats = strictObject({
7741
7861
  /** Open tasks across every row. */
7742
7862
  open: count2,
7863
+ created: count2,
7864
+ closed: count2,
7865
+ median_close_ms: ms,
7866
+ mean_open_age_ms: ms,
7743
7867
  rows: array(strictObject({
7744
- chat: reference,
7868
+ /** Rows of `--by chat` only. */
7869
+ chat: optional(reference),
7870
+ /** The chat reference, `meeting:<account>/<meeting>` or `project:<id>`. */
7871
+ key: text,
7872
+ name: nullable(text),
7745
7873
  open: count2,
7874
+ created: count2,
7875
+ closed: count2,
7746
7876
  oldest_open_at: nullable(time),
7747
- median_close_ms: nullable(pipe(number(), minValue(0)))
7877
+ median_close_ms: ms,
7878
+ mean_open_age_ms: ms
7748
7879
  }))
7749
7880
  });
7750
7881
 
7751
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/chat-tracking.js
7882
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/chat-tracking.js
7752
7883
  var memberCount = strictObject({
7753
7884
  day: pipe(text, isoDate()),
7754
7885
  participants: nullable(count2),
@@ -7771,7 +7902,7 @@ var chatTracking = strictObject({
7771
7902
  tracked: boolean()
7772
7903
  });
7773
7904
 
7774
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/contact-read.js
7905
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/contact-read.js
7775
7906
  var contactLookup = strictObject({ id, name: nullable(text), username: nullable(text) });
7776
7907
  var contactSync = strictObject({ added: count2, changed: count2, known: count2 });
7777
7908
  var profileFields = {
@@ -7809,7 +7940,7 @@ var profileFields = {
7809
7940
  }))
7810
7941
  };
7811
7942
 
7812
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/contact.js
7943
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/contact.js
7813
7944
  var contact = strictObject({
7814
7945
  ref: reference,
7815
7946
  id,
@@ -7840,7 +7971,7 @@ var contact = strictObject({
7840
7971
  notes: optional(array(strictObject({ id, text, revision: count2, created_at: time, updated_at: time })))
7841
7972
  });
7842
7973
 
7843
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/botcheck/reasons.js
7974
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/botcheck/reasons.js
7844
7975
  var WEIGHTS = {
7845
7976
  bot: 3,
7846
7977
  scam: 3,
@@ -7865,7 +7996,7 @@ var LINK = /https?:\/\/|t\.me\/|www\./i;
7865
7996
  var DIGITS = /\d{5,}/;
7866
7997
  var oddName = /* @__PURE__ */ __name((name) => !name?.trim() || DIGITS.test(name) || LINK.test(name), "oddName");
7867
7998
 
7868
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/contact-activity.js
7999
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/contact-activity.js
7869
8000
  var linkedIdentity = strictObject({
7870
8001
  provider: text,
7871
8002
  id,
@@ -7906,7 +8037,7 @@ var contactCheck = strictObject({
7906
8037
  checked_at: time
7907
8038
  });
7908
8039
 
7909
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/message.js
8040
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/message.js
7910
8041
  var quoted = strictObject({
7911
8042
  id,
7912
8043
  sender_id: nullable(id),
@@ -8025,7 +8156,7 @@ var message = strictObject({
8025
8156
  provider_metadata: providerMetadata
8026
8157
  });
8027
8158
 
8028
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/contact-context.js
8159
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/contact-context.js
8029
8160
  var contextPerson = strictObject({ ...linkedPerson.entries, provider: text, id });
8030
8161
  var contextMessage = strictObject({
8031
8162
  locator: reference,
@@ -8223,7 +8354,7 @@ var contactPreparation = strictObject({
8223
8354
  })
8224
8355
  });
8225
8356
 
8226
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/contact-note.js
8357
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/contact-note.js
8227
8358
  var contactNote = strictObject({
8228
8359
  id,
8229
8360
  /** The contact, as a `contact:` reference. */
@@ -8235,13 +8366,13 @@ var contactNote = strictObject({
8235
8366
  updated_at: time
8236
8367
  });
8237
8368
 
8238
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/contact-write.js
8369
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/contact-write.js
8239
8370
  var addressBookPerson = strictObject({ id, name: nullable(text), username: nullable(text) });
8240
8371
  var contactUpdate = strictObject({ operation_id: id, person: addressBookPerson });
8241
8372
  var contactStateChange = strictObject({ operation_id: id, person_id: id });
8242
8373
  var contactImport = strictObject({ operation_id: id, sent: count2, recognised: array(addressBookPerson) });
8243
8374
 
8244
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/conversation.js
8375
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/conversation.js
8245
8376
  var conversation = strictObject({
8246
8377
  id,
8247
8378
  chat: reference,
@@ -8256,7 +8387,7 @@ var conversation = strictObject({
8256
8387
  rules_version: count2
8257
8388
  });
8258
8389
 
8259
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/conversation-preparation.js
8390
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/conversation-preparation.js
8260
8391
  var conversationBuild = strictObject({
8261
8392
  chat: id,
8262
8393
  messages: count2,
@@ -8281,7 +8412,7 @@ var catchUpPreparation = strictObject({
8281
8412
  prepared: optional(conversationPreparation)
8282
8413
  });
8283
8414
 
8284
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/conversation-results.js
8415
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/conversation-results.js
8285
8416
  var conversationDetails = union([
8286
8417
  strictObject({ ...conversation.entries, messages: array(message) }),
8287
8418
  message
@@ -8371,7 +8502,7 @@ var conversationHit = strictObject({
8371
8502
  stale: boolean()
8372
8503
  });
8373
8504
 
8374
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/counters.js
8505
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/counters.js
8375
8506
  var counters = strictObject({
8376
8507
  cutoff: time,
8377
8508
  max_age_ms: milliseconds,
@@ -8401,7 +8532,7 @@ var counterRefresh = strictObject({
8401
8532
  complete: optional(boolean())
8402
8533
  });
8403
8534
 
8404
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/document.js
8535
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/document.js
8405
8536
  var document = strictObject({
8406
8537
  ref: reference,
8407
8538
  id,
@@ -8416,7 +8547,7 @@ var document = strictObject({
8416
8547
  owners: optional(array(text))
8417
8548
  });
8418
8549
 
8419
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/document-link.js
8550
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/document-link.js
8420
8551
  var documentLink = strictObject({
8421
8552
  ref: reference,
8422
8553
  url: text,
@@ -8427,7 +8558,7 @@ var documentLink = strictObject({
8427
8558
  sender: strictObject({ id: nullable(id), name: nullable(text) })
8428
8559
  });
8429
8560
 
8430
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/evidence.js
8561
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/evidence.js
8431
8562
  var evidenceMessage = pick(message, ["ref", "chat_title", "timestamp", "sender_name", "text"]);
8432
8563
  var contribution = strictObject({
8433
8564
  message: evidenceMessage,
@@ -8457,7 +8588,7 @@ var retentionStay = strictObject({
8457
8588
  });
8458
8589
  var evidence = union([contribution, retentionStay]);
8459
8590
 
8460
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/fact.js
8591
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/fact.js
8461
8592
  var fact = strictObject({
8462
8593
  ref: reference,
8463
8594
  id,
@@ -8487,7 +8618,7 @@ var fact = strictObject({
8487
8618
  updated_at: time
8488
8619
  });
8489
8620
 
8490
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/hit.js
8621
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/hit.js
8491
8622
  var hit = strictObject({
8492
8623
  kind: picklist(["message", "mail", "note", "document", "event", "meeting"]),
8493
8624
  ref: reference,
@@ -8525,7 +8656,7 @@ var hit = strictObject({
8525
8656
  untrusted
8526
8657
  });
8527
8658
 
8528
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/identity.js
8659
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/identity.js
8529
8660
  var identity = strictObject({
8530
8661
  ref: reference,
8531
8662
  provider: text,
@@ -8538,7 +8669,7 @@ var identity = strictObject({
8538
8669
  person: optional(nullable(reference))
8539
8670
  });
8540
8671
 
8541
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/image-embedding.js
8672
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/image-embedding.js
8542
8673
  var imageEmbedding = strictObject({
8543
8674
  model: text,
8544
8675
  embedded: count2,
@@ -8547,13 +8678,13 @@ var imageEmbedding = strictObject({
8547
8678
  more: boolean()
8548
8679
  });
8549
8680
 
8550
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
8681
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
8551
8682
  import { spawn } from "node:child_process";
8552
8683
  import { randomBytes as randomBytes2 } from "node:crypto";
8553
- import { closeSync, existsSync as existsSync4, mkdirSync as mkdirSync3, openSync, readdirSync as readdirSync3, readFileSync as readFileSync4, realpathSync, rmSync as rmSync3 } from "node:fs";
8554
- import { dirname as dirname2, join as join4 } from "node:path";
8684
+ import { closeSync, existsSync as existsSync5, mkdirSync as mkdirSync3, openSync, readdirSync as readdirSync4, readFileSync as readFileSync5, realpathSync, rmSync as rmSync3 } from "node:fs";
8685
+ import { dirname as dirname2, join as join5 } from "node:path";
8555
8686
 
8556
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/background/checkpoints.js
8687
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/background/checkpoints.js
8557
8688
  var progressOf = /* @__PURE__ */ __name((input) => {
8558
8689
  const total = input.total ?? null;
8559
8690
  const updated = input.updatedAt ?? null;
@@ -8569,7 +8700,7 @@ var progressOf = /* @__PURE__ */ __name((input) => {
8569
8700
  };
8570
8701
  }, "progressOf");
8571
8702
 
8572
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/runs/record-log.js
8703
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/runs/record-log.js
8573
8704
  var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) => {
8574
8705
  const run = currentRun();
8575
8706
  const trace = traceId ?? run.traceId;
@@ -8583,7 +8714,7 @@ var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) =
8583
8714
  }));
8584
8715
  }, "recordLogFor");
8585
8716
 
8586
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
8717
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
8587
8718
  var JOB_STATES = ["running", "done", "partial", "failed", "cancelled", "died"];
8588
8719
  var spawnDetached = /* @__PURE__ */ __name((argv, env, log) => {
8589
8720
  const out = openSync(log, "a", 384);
@@ -8599,23 +8730,23 @@ var spawnDetached = /* @__PURE__ */ __name((argv, env, log) => {
8599
8730
  closeSync(out);
8600
8731
  }
8601
8732
  }, "spawnDetached");
8602
- var jobsDir = /* @__PURE__ */ __name((app, env) => join4(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "backfill"), "jobsDir");
8603
- var jobPath = /* @__PURE__ */ __name((dir, id6) => join4(dir, `${id6}.json`), "jobPath");
8733
+ var jobsDir = /* @__PURE__ */ __name((app, env) => join5(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "backfill"), "jobsDir");
8734
+ var jobPath = /* @__PURE__ */ __name((dir, id6) => join5(dir, `${id6}.json`), "jobPath");
8604
8735
  var saveJob = /* @__PURE__ */ __name((dir, job2) => {
8605
8736
  mkdirSync3(dir, { recursive: true, mode: 448 });
8606
8737
  writeSecurely(jobPath(dir, job2.id), `${JSON.stringify(job2, null, 2)}
8607
8738
  `, 384);
8608
8739
  }, "saveJob");
8609
8740
  var readJob = /* @__PURE__ */ __name((dir, id6) => {
8610
- if (!/^[\w-]+$/.test(id6) || !existsSync4(jobPath(dir, id6)))
8741
+ if (!/^[\w-]+$/.test(id6) || !existsSync5(jobPath(dir, id6)))
8611
8742
  return void 0;
8612
8743
  try {
8613
- return JSON.parse(readFileSync4(jobPath(dir, id6), "utf8"));
8744
+ return JSON.parse(readFileSync5(jobPath(dir, id6), "utf8"));
8614
8745
  } catch {
8615
8746
  return void 0;
8616
8747
  }
8617
8748
  }, "readJob");
8618
- var recordsPath = /* @__PURE__ */ __name((dir, id6) => join4(dir, `${id6}.jsonl`), "recordsPath");
8749
+ var recordsPath = /* @__PURE__ */ __name((dir, id6) => join5(dir, `${id6}.jsonl`), "recordsPath");
8619
8750
  var tracedJob = /* @__PURE__ */ __name((env) => {
8620
8751
  const trace = childTrace();
8621
8752
  return { env: { ...env, TRACEPARENT: trace.traceparent }, traceId: trace.traceId };
@@ -8652,7 +8783,7 @@ var removeJob = /* @__PURE__ */ __name((dir, job2) => {
8652
8783
  if (dirname2(job2.log) === dir)
8653
8784
  rmSync3(job2.log, { force: true });
8654
8785
  }, "removeJob");
8655
- var listJobs = /* @__PURE__ */ __name((dir) => existsSync4(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");
8786
+ var listJobs = /* @__PURE__ */ __name((dir) => existsSync5(dir) ? readdirSync4(dir).filter((name) => name.endsWith(".json")).flatMap((name) => readJob(dir, name.slice(0, -".json".length)) ?? []).sort((a, b) => b.startedAt.localeCompare(a.startedAt)) : [], "listJobs");
8656
8787
  var jobDetails = /* @__PURE__ */ __name((job2) => ({
8657
8788
  job: job2.id,
8658
8789
  profile: job2.profile,
@@ -8718,7 +8849,7 @@ var startArchiveJob = /* @__PURE__ */ __name((app, env, profile, input, spawnJob
8718
8849
  const startedAt = (/* @__PURE__ */ new Date()).toISOString();
8719
8850
  const id6 = `${startedAt.replace(/[-:]/g, "").slice(0, 15)}-${randomBytes2(3).toString("hex")}`;
8720
8851
  mkdirSync3(dir, { recursive: true, mode: 448 });
8721
- const log = join4(dir, `${id6}.log`);
8852
+ const log = join5(dir, `${id6}.log`);
8722
8853
  const job2 = {
8723
8854
  id: id6,
8724
8855
  chat: input.chat,
@@ -8738,7 +8869,7 @@ var startArchiveJob = /* @__PURE__ */ __name((app, env, profile, input, spawnJob
8738
8869
  return { job: id6, pid, chat: input.chat, log };
8739
8870
  }, "startArchiveJob");
8740
8871
 
8741
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/job.js
8872
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/job.js
8742
8873
  var problem = strictObject({ code: text, message: text });
8743
8874
  var job = strictObject({
8744
8875
  id,
@@ -8761,7 +8892,7 @@ var job = strictObject({
8761
8892
  error: optional(problem)
8762
8893
  });
8763
8894
 
8764
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/join-request.js
8895
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/join-request.js
8765
8896
  var joinRequest = strictObject({
8766
8897
  person_id: id,
8767
8898
  name: nullable(text),
@@ -8772,7 +8903,7 @@ var joinRequest = strictObject({
8772
8903
  about: optional(text)
8773
8904
  });
8774
8905
 
8775
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/knowledge-lists.js
8906
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/knowledge-lists.js
8776
8907
  var organization = strictObject({
8777
8908
  id,
8778
8909
  ref: reference,
@@ -8802,7 +8933,7 @@ var reminder = strictObject({
8802
8933
  receipt: nullable(text)
8803
8934
  });
8804
8935
 
8805
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/list-results.js
8936
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/list-results.js
8806
8937
  var botProfile = strictObject({
8807
8938
  name: text,
8808
8939
  token: text,
@@ -8870,7 +9001,7 @@ var stickerInventory = strictObject({
8870
9001
  url: optional(nullable(text))
8871
9002
  });
8872
9003
 
8873
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/poll-vote.js
9004
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/poll-vote.js
8874
9005
  var pollVote = strictObject({
8875
9006
  person_id: id,
8876
9007
  name: nullable(text),
@@ -8880,7 +9011,7 @@ var pollVote = strictObject({
8880
9011
  voted_at: time
8881
9012
  });
8882
9013
 
8883
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/listener.js
9014
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/listener.js
8884
9015
  var reactions = unwrap(unwrap(message.entries.reactions));
8885
9016
  var observation = strictObject({
8886
9017
  value: pipe(number(), minValue(0)),
@@ -8922,7 +9053,22 @@ var serveSummary = strictObject({
8922
9053
  tasks: optional(strictObject({ added: count2, closed: count2, review: count2 }))
8923
9054
  });
8924
9055
 
8925
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/mail-findings.js
9056
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/mail-counts.js
9057
+ var mailCounts = strictObject({
9058
+ by: picklist(["day", "week", "sender"]),
9059
+ received: count2,
9060
+ sent: count2,
9061
+ rows: array(strictObject({
9062
+ /** `YYYY-MM-DD`, or the sender's address. */
9063
+ key: text,
9064
+ name: nullable(text),
9065
+ received: count2,
9066
+ /** Always 0 by sender: the owner sends that mail. */
9067
+ sent: count2
9068
+ }))
9069
+ });
9070
+
9071
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/mail-findings.js
8926
9072
  var evidence2 = strictObject({ reference, fingerprint: text });
8927
9073
  var base = { id, evidence: array(evidence2) };
8928
9074
  var finding = variant("kind", [
@@ -8988,7 +9134,7 @@ var mailFindings = strictObject({
8988
9134
  receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome) }))
8989
9135
  });
8990
9136
 
8991
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/media-archive.js
9137
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/media-archive.js
8992
9138
  var mediaArchive = strictObject({
8993
9139
  directory: text,
8994
9140
  chats: count2,
@@ -9020,7 +9166,7 @@ var mediaArchiveTimer = union([
9020
9166
  strictObject({ ...timer, action: picklist(["install", "start", "stop", "uninstall"]) })
9021
9167
  ]);
9022
9168
 
9023
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation-parts.js
9169
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation-parts.js
9024
9170
  var preparationId = pipe(string(), minLength(1));
9025
9171
  var preparationCount = pipe(number(), integer(), minValue(0));
9026
9172
  var preparationTime = nullable(isoTime);
@@ -9112,7 +9258,7 @@ var preparationMeeting = strictObject({
9112
9258
  updated_at: isoTime
9113
9259
  });
9114
9260
 
9115
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/meeting-evidence.js
9261
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/meeting-evidence.js
9116
9262
  var meetingEvidence = preparationEvidence;
9117
9263
  var meetingPersonContext = strictObject({
9118
9264
  person: strictObject({ uid: string(), name: nullable(string()) }),
@@ -9134,7 +9280,7 @@ var meetingPersonContext = strictObject({
9134
9280
  })
9135
9281
  });
9136
9282
 
9137
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/meeting-findings.js
9283
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/meeting-findings.js
9138
9284
  var evidence3 = strictObject({ reference, fingerprint: text });
9139
9285
  var base2 = { id, project: reference, evidence: array(evidence3) };
9140
9286
  var finding2 = variant("kind", [
@@ -9172,7 +9318,7 @@ var meetingFindings = strictObject({
9172
9318
  receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome2) }))
9173
9319
  });
9174
9320
 
9175
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/meeting-communications.js
9321
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/meeting-communications.js
9176
9322
  var communicationCoverage = strictObject({
9177
9323
  read_usage: strictObject({ reads: preparationCount, charged_bytes: preparationCount, reserved_bytes: preparationCount, remaining_bytes: preparationCount }),
9178
9324
  query: string(),
@@ -9217,7 +9363,7 @@ var preparationCommunications = strictObject({
9217
9363
  }))
9218
9364
  });
9219
9365
 
9220
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation.js
9366
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation.js
9221
9367
  var meetingPreparation = strictObject({
9222
9368
  communications: optional(preparationCommunications),
9223
9369
  schema_version: literal(1),
@@ -9330,7 +9476,7 @@ var meetingPreparation = strictObject({
9330
9476
  })
9331
9477
  });
9332
9478
 
9333
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/meeting-project-candidates.js
9479
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/meeting-project-candidates.js
9334
9480
  var count4 = pipe(number(), integer(), minValue(0));
9335
9481
  var id3 = pipe(string(), minLength(1));
9336
9482
  var text3 = string();
@@ -9394,7 +9540,7 @@ var meetingProjectCandidates = strictObject({
9394
9540
  })
9395
9541
  });
9396
9542
 
9397
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/meeting-series-inventory.js
9543
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/meeting-series-inventory.js
9398
9544
  var count5 = pipe(number(), integer(), minValue(0));
9399
9545
  var id4 = pipe(string(), minLength(1), maxLength(1e3));
9400
9546
  var meetingSeriesInventory = strictObject({
@@ -9424,7 +9570,7 @@ var meetingSeriesInventory = strictObject({
9424
9570
  })
9425
9571
  });
9426
9572
 
9427
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/meeting-task-proposal.js
9573
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/meeting-task-proposal.js
9428
9574
  var text4 = string();
9429
9575
  var id5 = pipe(number(), integer(), minValue(1));
9430
9576
  var revision = picklist(["current", "superseded"]);
@@ -9441,7 +9587,7 @@ var meetingTaskProposal = strictObject({
9441
9587
  persistence: literal("proposal-only")
9442
9588
  });
9443
9589
 
9444
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/memory.js
9590
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/memory.js
9445
9591
  var memory = strictObject({
9446
9592
  ref: reference,
9447
9593
  id,
@@ -9468,7 +9614,7 @@ var memory = strictObject({
9468
9614
  updated_at: time
9469
9615
  });
9470
9616
 
9471
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/mention.js
9617
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/mention.js
9472
9618
  var kind = picklist(["phone", "email", "url", "document", "person-name", "place"]);
9473
9619
  var status = picklist(["found", "linked", "dismissed"]);
9474
9620
  var mention = strictObject({
@@ -9511,13 +9657,13 @@ var mentionRebuild = strictObject({
9511
9657
  mentions: count2
9512
9658
  });
9513
9659
 
9514
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/message-change.js
9660
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/message-change.js
9515
9661
  var operated3 = { operation_id: id, chat_id: id };
9516
9662
  var messagePin = strictObject({ ...operated3, message_id: id, pinned: boolean() });
9517
9663
  var messageStar = strictObject({ ...operated3, message_id: id, starred: boolean() });
9518
9664
  var messageDeletion = strictObject({ ...operated3, deleted: array(id), for_everyone: boolean() });
9519
9665
 
9520
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/message-read.js
9666
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/message-read.js
9521
9667
  var messageTranscript = strictObject({
9522
9668
  message_id: id,
9523
9669
  text,
@@ -9575,7 +9721,7 @@ var evidencePacket = strictObject({
9575
9721
  }))
9576
9722
  });
9577
9723
 
9578
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/message-context.js
9724
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/message-context.js
9579
9725
  var messageThread = strictObject({
9580
9726
  ref: reference,
9581
9727
  chat: id,
@@ -9592,7 +9738,7 @@ var messageThread = strictObject({
9592
9738
  });
9593
9739
  var messageContext = union([message, messageThread]);
9594
9740
 
9595
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/message-counts.js
9741
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/message-counts.js
9596
9742
  var messageCounts = strictObject({
9597
9743
  by: picklist(["chat", "sender", "day", "hour"]),
9598
9744
  total: count2,
@@ -9605,7 +9751,7 @@ var messageCounts = strictObject({
9605
9751
  }))
9606
9752
  });
9607
9753
 
9608
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/message-link.js
9754
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/message-link.js
9609
9755
  var messageLink = strictObject({
9610
9756
  ref: reference,
9611
9757
  url: nullable(text),
@@ -9622,7 +9768,7 @@ var messageLink = strictObject({
9622
9768
  })))
9623
9769
  });
9624
9770
 
9625
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/message-transfer.js
9771
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/message-transfer.js
9626
9772
  var savedMessageFile = strictObject({
9627
9773
  kind: text,
9628
9774
  path: text,
@@ -9709,7 +9855,7 @@ var messageSyncAll = strictObject({
9709
9855
  var messageSyncStarted = strictObject({ job: id, pid: count2, chat: text, log: text });
9710
9856
  var messageSync = union([messageSyncEstimate, messageSyncChat, messageSyncAll, messageSyncStarted]);
9711
9857
 
9712
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/message-write.js
9858
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/message-write.js
9713
9859
  var messageWrite = strictObject({
9714
9860
  operation_id: id,
9715
9861
  message,
@@ -9724,7 +9870,7 @@ var draftWrite = strictObject({
9724
9870
  });
9725
9871
  var messageSend = union([messageWrite, draftWrite]);
9726
9872
 
9727
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/model.js
9873
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/model.js
9728
9874
  var model2 = strictObject({
9729
9875
  id,
9730
9876
  kind: picklist(["audio", "text", "image", "reranker"]),
@@ -9741,7 +9887,7 @@ var model2 = strictObject({
9741
9887
  path: text
9742
9888
  });
9743
9889
 
9744
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/model-key.js
9890
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/model-key.js
9745
9891
  var source = picklist(["environment", "keyring", "file"]);
9746
9892
  var modelKey = strictObject({
9747
9893
  provider: text,
@@ -9751,7 +9897,7 @@ var modelKey = strictObject({
9751
9897
  var storedModelKey = strictObject({ ...omit(modelKey, ["removed"]).entries, stored: source });
9752
9898
  var removedModelKey = strictObject({ ...omit(modelKey, ["stored"]).entries, removed: array(source) });
9753
9899
 
9754
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/note.js
9900
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/note.js
9755
9901
  var link = {
9756
9902
  target_text: nullable(text),
9757
9903
  kind: text,
@@ -9792,7 +9938,7 @@ var note = strictObject({
9792
9938
  backlinks: optional(array(strictObject({ from: reference, ...link })))
9793
9939
  });
9794
9940
 
9795
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/official-stats.js
9941
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/official-stats.js
9796
9942
  var versus = strictObject({ current: number(), previous: number() });
9797
9943
  var person = { person_ref: reference, name: nullable(text) };
9798
9944
  var graph = strictObject({
@@ -9826,14 +9972,14 @@ var officialStats = strictObject({
9826
9972
  graphs: record(string(), union([graph, strictObject({ error: text })]))
9827
9973
  });
9828
9974
 
9829
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/person.js
9975
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/person.js
9830
9976
  var person2 = strictObject({
9831
9977
  ref: reference,
9832
9978
  name: nullable(text),
9833
9979
  identities: optional(array(identity))
9834
9980
  });
9835
9981
 
9836
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/poll.js
9982
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/poll.js
9837
9983
  var poll = strictObject({
9838
9984
  chat_id: id,
9839
9985
  message_id: id,
@@ -9849,11 +9995,11 @@ var poll = strictObject({
9849
9995
  });
9850
9996
  var pollChange = strictObject({ operation_id: id, poll });
9851
9997
 
9852
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/private-contact.js
9998
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/private-contact.js
9853
9999
  var contactAlias = strictObject({ person_id: id, alias: nullable(text) });
9854
10000
  var contactNoteRemoval = strictObject({ id, person_id: id, removed: boolean() });
9855
10001
 
9856
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/ranking.js
10002
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/ranking.js
9857
10003
  var figures = record(string(), number());
9858
10004
  var freshness = picklist(["fresh", "stale", "partial", "unknown"]);
9859
10005
  var rankingRow = strictObject({
@@ -9900,7 +10046,7 @@ var ranking = strictObject({
9900
10046
  rows: array(rankingRow)
9901
10047
  });
9902
10048
 
9903
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/reaction.js
10049
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/reaction.js
9904
10050
  var reaction = strictObject({
9905
10051
  person: strictObject({ id, name: nullable(text), username: nullable(text) }),
9906
10052
  /** The emoji, or `custom:<id>` for a custom one. */
@@ -9908,7 +10054,7 @@ var reaction = strictObject({
9908
10054
  reacted_at: time
9909
10055
  });
9910
10056
 
9911
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/reaction-change.js
10057
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/reaction-change.js
9912
10058
  var reactionChange = strictObject({
9913
10059
  operation_id: id,
9914
10060
  chat_id: id,
@@ -9916,7 +10062,7 @@ var reactionChange = strictObject({
9916
10062
  reaction: nullable(text)
9917
10063
  });
9918
10064
 
9919
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/recipient.js
10065
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/recipient.js
9920
10066
  var recipient = strictObject({ id, title: nullable(text), partner_id: optional(id), added_at: time });
9921
10067
  var recipientAdded = strictObject({ id, title: nullable(text), added: boolean() });
9922
10068
  var recipientRemoved = strictObject({ id, title: nullable(text), removed: boolean() });
@@ -9927,7 +10073,7 @@ var recipientChange = strictObject({
9927
10073
  ...partial(recipientOff).entries
9928
10074
  });
9929
10075
 
9930
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/recorded-run.js
10076
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/recorded-run.js
9931
10077
  var events = array(record(string(), unknown()));
9932
10078
  var recordedRun = strictObject({
9933
10079
  run_id: id,
@@ -9999,7 +10145,7 @@ var runHit = strictObject({
9999
10145
  });
10000
10146
  var runLocation = strictObject({ path: text });
10001
10147
 
10002
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/relationship.js
10148
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/relationship.js
10003
10149
  var relationship = strictObject({
10004
10150
  id,
10005
10151
  from: reference,
@@ -10016,7 +10162,7 @@ var relationship = strictObject({
10016
10162
  created_at: time
10017
10163
  });
10018
10164
 
10019
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/reply-stats.js
10165
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/reply-stats.js
10020
10166
  var milliseconds2 = nullable(pipe(number(), minValue(0)));
10021
10167
  var figures2 = { replies: count2, median_ms: milliseconds2, p90_ms: milliseconds2, mean_ms: milliseconds2 };
10022
10168
  var responseTimes = strictObject({
@@ -10033,7 +10179,7 @@ var waitingChats = strictObject({
10033
10179
  by_kind: strictObject({ private: count2, group: count2 })
10034
10180
  });
10035
10181
 
10036
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/retention.js
10182
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/retention.js
10037
10183
  var retentionCohort = strictObject({
10038
10184
  /** The first day of the joining day or week. */
10039
10185
  cohort: text,
@@ -10081,7 +10227,7 @@ var retention = strictObject({
10081
10227
  rows: array(retentionCohort)
10082
10228
  });
10083
10229
 
10084
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/saved-search.js
10230
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/saved-search.js
10085
10231
  var savedSearch = strictObject({
10086
10232
  id,
10087
10233
  /** `null` for a run in the history. */
@@ -10098,7 +10244,7 @@ var savedSearch = strictObject({
10098
10244
  });
10099
10245
  var searchHistoryClear = strictObject({ cleared: count2 });
10100
10246
 
10101
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/send-attempt.js
10247
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/send-attempt.js
10102
10248
  var sendAttempt = strictObject({
10103
10249
  at: time,
10104
10250
  profile: text,
@@ -10126,7 +10272,7 @@ var sendAttempt = strictObject({
10126
10272
  error_code: optional(text)
10127
10273
  });
10128
10274
 
10129
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/store-maintenance.js
10275
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/store-maintenance.js
10130
10276
  var absent = strictObject({ path: text, exists: literal(false) });
10131
10277
  var schema = strictObject({ version: count2, min_compatible: count2, writable: boolean(), speaks: count2 });
10132
10278
  var infoSchema = strictObject({
@@ -10334,7 +10480,7 @@ var storeRepair = union([
10334
10480
  ]);
10335
10481
  var storeCopyRemoval = strictObject({ path: text, deleted: strictObject({ name: text, rows: count2 }) });
10336
10482
 
10337
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/store-records.js
10483
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/store-records.js
10338
10484
  var range = strictObject({ from: number(), to: number() });
10339
10485
  var storeChatStatus = strictObject({
10340
10486
  chat_id: id,
@@ -10346,6 +10492,13 @@ var storeChatStatus = strictObject({
10346
10492
  last_stored_at: nullable(time),
10347
10493
  held: array(range)
10348
10494
  });
10495
+ var chatCoverage = strictObject({
10496
+ chats: count2,
10497
+ fetched: count2,
10498
+ partial: count2,
10499
+ never: count2,
10500
+ oldest_message_at: nullable(time)
10501
+ });
10349
10502
  var storeClear = strictObject({
10350
10503
  cleared: boolean(),
10351
10504
  dry_run: optional(literal(true)),
@@ -10425,7 +10578,7 @@ var storeJobRetry = union([
10425
10578
  ]);
10426
10579
  var storeJobClear = strictObject({ cleared: array(id) });
10427
10580
 
10428
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/store-table.js
10581
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/store-table.js
10429
10582
  var TABLE_KINDS = ["data", "search_index", "search_index_part", "internal"];
10430
10583
  var storeTable = strictObject({
10431
10584
  name: text,
@@ -10434,7 +10587,7 @@ var storeTable = strictObject({
10434
10587
  bytes: optional(nullable(count2))
10435
10588
  });
10436
10589
 
10437
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/tag-change.js
10590
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/tag-change.js
10438
10591
  var tagTarget = variant("type", [
10439
10592
  strictObject({ type: literal("chat"), chat_id: id }),
10440
10593
  strictObject({ type: literal("contact"), person_id: id }),
@@ -10465,7 +10618,7 @@ var automaticTags = strictObject({
10465
10618
  dry_run: boolean()
10466
10619
  });
10467
10620
 
10468
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/tagging.js
10621
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/tagging.js
10469
10622
  var tagging = strictObject({
10470
10623
  tag: text,
10471
10624
  type: picklist(TAG_TYPES),
@@ -10478,7 +10631,7 @@ var tagging = strictObject({
10478
10631
  created_at: time
10479
10632
  });
10480
10633
 
10481
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/task-pair.js
10634
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/task-pair.js
10482
10635
  var side = strictObject({ ref: reference, key: text, title: text, status: text });
10483
10636
  var taskPair = strictObject({
10484
10637
  task: nullable(side),
@@ -10501,7 +10654,7 @@ var taskPair = strictObject({
10501
10654
  created_at: time
10502
10655
  });
10503
10656
 
10504
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/task-results.js
10657
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/task-results.js
10505
10658
  var nullableTime = nullable(time);
10506
10659
  var link2 = strictObject({
10507
10660
  id,
@@ -10671,7 +10824,7 @@ var taskReview = strictObject({
10671
10824
  untrusted
10672
10825
  });
10673
10826
 
10674
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/topic.js
10827
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/topic.js
10675
10828
  var topic = strictObject({
10676
10829
  id,
10677
10830
  title: text,
@@ -10685,7 +10838,7 @@ var topic = strictObject({
10685
10838
  untrusted
10686
10839
  });
10687
10840
 
10688
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/entities/index.js
10841
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/entities/index.js
10689
10842
  var ENTITIES = {
10690
10843
  sync_progress: progress,
10691
10844
  ...MEETING_RESULT_ENTITIES,
@@ -10715,19 +10868,22 @@ var ENTITIES = {
10715
10868
  attachments: optional(array(hitFile)),
10716
10869
  untrusted
10717
10870
  }),
10718
- "message.summary": pick(message, [
10719
- "ref",
10720
- "chat_id",
10721
- "chat_title",
10722
- "timestamp",
10723
- "sender_name",
10724
- "sender_is_me",
10725
- "outgoing",
10726
- "text",
10727
- "transcript",
10728
- "attachments",
10729
- "email"
10730
- ]),
10871
+ "message.summary": strictObject({
10872
+ ...pick(message, [
10873
+ "ref",
10874
+ "chat_id",
10875
+ "chat_title",
10876
+ "timestamp",
10877
+ "sender_name",
10878
+ "sender_is_me",
10879
+ "outgoing",
10880
+ "text",
10881
+ "transcript",
10882
+ "attachments",
10883
+ "email"
10884
+ ]).entries,
10885
+ untrusted
10886
+ }),
10731
10887
  message_link: messageLink,
10732
10888
  message_write: messageWrite,
10733
10889
  message_send: messageSend,
@@ -10846,6 +11002,7 @@ var ENTITIES = {
10846
11002
  meeting_review: meetingReview,
10847
11003
  meeting_link: meetingLink,
10848
11004
  meeting_stats: meetingStats,
11005
+ meeting_counts: meetingCounts,
10849
11006
  meeting_speaker: meetingSpeaker,
10850
11007
  meeting_participants: meetingParticipants,
10851
11008
  meeting_passage: meetingPassage,
@@ -10883,6 +11040,7 @@ var ENTITIES = {
10883
11040
  job,
10884
11041
  store_chat_status: storeChatStatus,
10885
11042
  store_clear: storeClear,
11043
+ chat_coverage: chatCoverage,
10886
11044
  store_export: storeExport,
10887
11045
  store_gap_plan: storeGapPlan,
10888
11046
  store_gap_repair: storeGapRepair,
@@ -10940,6 +11098,7 @@ var ENTITIES = {
10940
11098
  message_counts: messageCounts,
10941
11099
  response_times: responseTimes,
10942
11100
  waiting_chats: waitingChats,
11101
+ mail_counts: mailCounts,
10943
11102
  ranking,
10944
11103
  admin_report: adminReport,
10945
11104
  analysis_consent: analysisConsent,
@@ -10961,7 +11120,7 @@ var entityDefinitions = /* @__PURE__ */ __name(() => Object.fromEntries(Object.e
10961
11120
  return [name, definition];
10962
11121
  })), "entityDefinitions");
10963
11122
 
10964
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/cli/answer-entity.js
11123
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/cli/answer-entity.js
10965
11124
  var schemas = /* @__PURE__ */ new WeakMap();
10966
11125
  var answerEntity = /* @__PURE__ */ __name((command, name, schema2, options = {}) => {
10967
11126
  if (Object.hasOwn(ENTITIES, name))
@@ -10995,8 +11154,8 @@ var answerRow = /* @__PURE__ */ __name((command) => {
10995
11154
  return own && metaOf(command).output?.entity === own.name ? own.row : void 0;
10996
11155
  }, "answerRow");
10997
11156
 
10998
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/images/picture/models.js
10999
- import { join as join5 } from "node:path";
11157
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/images/picture/models.js
11158
+ import { join as join6 } from "node:path";
11000
11159
  var clip = /* @__PURE__ */ __name((name) => `https://huggingface.co/Xenova/clip-vit-base-patch32/resolve/d15189d7028b43f1d3e65039190477f6af591c2a/${name}`, "clip");
11001
11160
  var IMAGE_MODELS = [
11002
11161
  {
@@ -11046,10 +11205,10 @@ var imageModel = /* @__PURE__ */ __name((id6) => {
11046
11205
  return found;
11047
11206
  }, "imageModel");
11048
11207
  var imageModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedModelsDirectory("image", env), "imageModelsDirectory");
11049
- var placedImage = /* @__PURE__ */ __name((model3, directory) => model3.files.map((file) => [file, join5(directory, model3.id, file.name)]), "placedImage");
11208
+ var placedImage = /* @__PURE__ */ __name((model3, directory) => model3.files.map((file) => [file, join6(directory, model3.id, file.name)]), "placedImage");
11050
11209
  var isImageModelInstalled = /* @__PURE__ */ __name((model3, directory) => filesPresent(placedImage(model3, directory)), "isImageModelInstalled");
11051
11210
 
11052
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/cli/steps.js
11211
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/cli/steps.js
11053
11212
  var STEPS2 = defineSteps([
11054
11213
  ...STEPS,
11055
11214
  {
@@ -11321,7 +11480,7 @@ var stepLine = /* @__PURE__ */ __name((root, step2) => {
11321
11480
  ].join(" ");
11322
11481
  }, "stepLine");
11323
11482
 
11324
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/cli/project-status-rows.js
11483
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/cli/project-status-rows.js
11325
11484
  var where = [{ field: "ref" }, { field: ["chat_title", "chat"] }];
11326
11485
  var who2 = { field: ["who.owner", "who.name"], tag: "you" };
11327
11486
  var STATUS_SIGNAL_ROWS = {
@@ -11430,7 +11589,7 @@ var STATUS_ROWS = {
11430
11589
  "status.failed": { columns: [{ field: "signal" }], text: ["why"] }
11431
11590
  };
11432
11591
 
11433
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/cli/compact.js
11592
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/cli/compact.js
11434
11593
  var TEXT_CHARS = 400;
11435
11594
  var sender = { field: ["sender_is_me", "sender_name"], tag: "me" };
11436
11595
  var messageRow = {
@@ -11583,10 +11742,10 @@ var clockFor = /* @__PURE__ */ __name((zone) => {
11583
11742
  return {
11584
11743
  zone,
11585
11744
  parts: /* @__PURE__ */ __name((iso) => {
11586
- const ms = Date.parse(iso);
11587
- if (Number.isNaN(ms))
11745
+ const ms2 = Date.parse(iso);
11746
+ if (Number.isNaN(ms2))
11588
11747
  return void 0;
11589
- const part = Object.fromEntries(format.formatToParts(ms).map(({ type, value }) => [type, value]));
11748
+ const part = Object.fromEntries(format.formatToParts(ms2).map(({ type, value }) => [type, value]));
11590
11749
  return { date: `${part.year}-${part.month}-${part.day}`, time: `${part.hour}:${part.minute}` };
11591
11750
  }, "parts")
11592
11751
  };
@@ -11766,7 +11925,7 @@ var compactText = /* @__PURE__ */ __name((body, shape, options, rowsOf = rowsOfE
11766
11925
  return lines.concat(footerOf(body)).join("\n");
11767
11926
  }, "compactText");
11768
11927
 
11769
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/cli/output-budget.js
11928
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/cli/output-budget.js
11770
11929
  var SOFT_OUTPUT_BYTES = 256 * 1024;
11771
11930
  var CARRIED = ["json", "compact", "offline", "timeout", "full", "brief", "maxOutputBytes"];
11772
11931
  var NOT_WITH_COMPACT = /* @__PURE__ */ new Set(["json", "brief"]);
@@ -11813,7 +11972,7 @@ var largeAnswerSteps = /* @__PURE__ */ __name((command) => {
11813
11972
  return args ? compactStep(command, args, "the answer is large as JSON; one line per item keeps every ref") : [];
11814
11973
  }, "largeAnswerSteps");
11815
11974
 
11816
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
11975
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
11817
11976
  var HIDDEN = /* @__PURE__ */ new Set(["providerRef", "provider_ref"]);
11818
11977
  var withoutProviderRefs = /* @__PURE__ */ __name((value) => strip(value), "withoutProviderRefs");
11819
11978
  var strip = /* @__PURE__ */ __name((value) => {
@@ -11827,7 +11986,7 @@ var strip = /* @__PURE__ */ __name((value) => {
11827
11986
  return Object.fromEntries(Object.entries(value).flatMap(([key, inner]) => HIDDEN.has(key) ? [] : [[key, strip(inner)]]));
11828
11987
  }, "strip");
11829
11988
 
11830
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/cli/envelope.js
11989
+ // node_modules/.pnpm/@wirecat+cli-core@0.567.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_90104be51d88dd1f434885448f73ba7c/node_modules/@wirecat/cli-core/dist/cli/envelope.js
11831
11990
  var answerSchema = /* @__PURE__ */ __name((item = unknown()) => union([listEnvelopeSchema(item), itemEnvelopeSchema(item)]), "answerSchema");
11832
11991
  var capped2 = /* @__PURE__ */ __name((steps) => steps.length > 0 ? { next: steps.slice(0, MAX_NEXT_STEPS) } : {}, "capped");
11833
11992
  var listOf = /* @__PURE__ */ __name((command, input) => {
@@ -12017,13 +12176,11 @@ export {
12017
12176
  readEvents,
12018
12177
  currentRun,
12019
12178
  inRun,
12020
- runEvent,
12021
12179
  typedCommand,
12022
12180
  enclosingTraceId,
12023
12181
  traceOf,
12024
12182
  childTrace,
12025
12183
  withAttempt,
12026
- currentAttempt,
12027
12184
  startRecording,
12028
12185
  wasSettled,
12029
12186
  sentIds,
@@ -12068,6 +12225,9 @@ export {
12068
12225
  assertRetentionEvidenceRead,
12069
12226
  historyWindow,
12070
12227
  limitBatch,
12228
+ botFiles,
12229
+ ChatRegistry,
12230
+ registryProfiles,
12071
12231
  REPAIR_WORDS,
12072
12232
  repairConfigText,
12073
12233
  permissionIssues,