@wirecat/mail-cli 0.14.0 → 0.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (163) hide show
  1. package/CHANGELOG.md +60 -0
  2. package/README.md +5 -4
  3. package/dist/bin/mail.js +2 -2
  4. package/dist/bundle/{all-profiles-O7HQNZOF.js → all-profiles-TUDREUUW.js} +10 -10
  5. package/dist/bundle/{anthropic-SNA6PTVO.js → anthropic-KQOVSP6C.js} +6 -6
  6. package/dist/bundle/{app-server-LBKMJMKN.js → app-server-QK7PKVT7.js} +47 -47
  7. package/dist/bundle/{bun-KF5QK2YN.js → bun-2NMWL5YB.js} +2 -2
  8. package/dist/bundle/{bun-sqlite-2DKMM2PT.js → bun-sqlite-Y4FP6SDX.js} +5 -5
  9. package/dist/bundle/{chunk-UJEO3VWA.js → chunk-3CVDHJER.js} +1 -1
  10. package/dist/bundle/{chunk-6EZ7XGRG.js → chunk-3ZJE5TIG.js} +2 -2
  11. package/dist/bundle/{chunk-UHHARH5X.js → chunk-4IEDXIUN.js} +308 -236
  12. package/dist/bundle/{chunk-KBFIKUCA.js → chunk-4IIH5PXR.js} +28 -28
  13. package/dist/bundle/{chunk-ZCPUKUST.js → chunk-5FPQGUJA.js} +1 -1
  14. package/dist/bundle/{chunk-DPKHVBP3.js → chunk-6DVPPLAN.js} +5 -5
  15. package/dist/bundle/{chunk-XRJIQC6P.js → chunk-7LMTWOTP.js} +2 -2
  16. package/dist/bundle/{chunk-H2ZURG7Q.js → chunk-ANFIIXBL.js} +2 -2
  17. package/dist/bundle/{chunk-KQ5P5NLL.js → chunk-ARDUJR5Z.js} +1 -1
  18. package/dist/bundle/{chunk-AOVOIXGR.js → chunk-B2NDDA2W.js} +10 -10
  19. package/dist/bundle/{chunk-MQK2UNG4.js → chunk-CGH6UH3T.js} +8 -8
  20. package/dist/bundle/{chunk-BP3TZ4EY.js → chunk-CRYWPLJP.js} +1 -1
  21. package/dist/bundle/{chunk-Q5EYTU3Q.js → chunk-CT2MIWXY.js} +3 -3
  22. package/dist/bundle/{chunk-7LDC275M.js → chunk-DDQXDX4U.js} +7 -7
  23. package/dist/bundle/{chunk-2KVR7FF3.js → chunk-DKIAHQRN.js} +9 -9
  24. package/dist/bundle/{chunk-CCHHEMPM.js → chunk-EB2IULWB.js} +3 -2
  25. package/dist/bundle/{chunk-MXG4L7NH.js → chunk-EBEYU7RW.js} +10 -10
  26. package/dist/bundle/{chunk-2F7D6YMB.js → chunk-EDJQDR5X.js} +4 -4
  27. package/dist/bundle/{chunk-E7BTD4P6.js → chunk-EZIJPXDZ.js} +6 -6
  28. package/dist/bundle/{chunk-RE5SEGSR.js → chunk-FHY664YS.js} +4 -4
  29. package/dist/bundle/{chunk-B5XAETYU.js → chunk-FROWEHK7.js} +2 -2
  30. package/dist/bundle/{chunk-IVDUR5Y4.js → chunk-G6RG2AZV.js} +15 -8
  31. package/dist/bundle/{chunk-P547HU26.js → chunk-GAYW2JRW.js} +10 -10
  32. package/dist/bundle/{chunk-2A4BAMNF.js → chunk-GIKNAOER.js} +4 -4
  33. package/dist/bundle/{chunk-UMWR5PKA.js → chunk-HN3EDDVX.js} +13 -13
  34. package/dist/bundle/{chunk-7GSE57K3.js → chunk-HVAXTTOT.js} +3 -3
  35. package/dist/bundle/{chunk-G53HRGTK.js → chunk-I3K6JG4I.js} +17 -17
  36. package/dist/bundle/{chunk-YG4OI3HJ.js → chunk-IJYYD2JU.js} +383 -204
  37. package/dist/bundle/{chunk-M2YIJDBL.js → chunk-K2OQCQ2N.js} +6 -6
  38. package/dist/bundle/{chunk-P62Z3Q35.js → chunk-KJV3BI7S.js} +14 -14
  39. package/dist/bundle/{chunk-DIP3ENSY.js → chunk-KMZRXGTF.js} +1 -1
  40. package/dist/bundle/{chunk-ILHTNOIV.js → chunk-KV4267S4.js} +1 -1
  41. package/dist/bundle/{chunk-QWRBAQZ7.js → chunk-LMN7SYX4.js} +1 -1
  42. package/dist/bundle/{chunk-I7EWIIBC.js → chunk-M24BGP7M.js} +2 -3
  43. package/dist/bundle/{chunk-V5ZID7KC.js → chunk-M6O4DH5F.js} +1 -1
  44. package/dist/bundle/{chunk-WVWNKZI4.js → chunk-MLWN27HF.js} +465 -280
  45. package/dist/bundle/{chunk-VA3JKERH.js → chunk-N7DLDEFU.js} +2 -2
  46. package/dist/bundle/{chunk-QZXHMQCM.js → chunk-OYB3FUYQ.js} +1 -1
  47. package/dist/bundle/{chunk-I62OTHDE.js → chunk-POS35G6D.js} +3 -3
  48. package/dist/bundle/{chunk-5C74F7XX.js → chunk-PWTEWT4M.js} +4 -4
  49. package/dist/bundle/{chunk-NVQUK2DH.js → chunk-PYX6K527.js} +47 -47
  50. package/dist/bundle/{chunk-VERSKGJV.js → chunk-Q4T2HBZP.js} +2 -2
  51. package/dist/bundle/{chunk-3EAAEF5U.js → chunk-QCNK3YUZ.js} +95 -36
  52. package/dist/bundle/{chunk-OGK7LMYT.js → chunk-R6SBRHVG.js} +6 -6
  53. package/dist/bundle/{chunk-WBJQEB6E.js → chunk-RPEW7E3S.js} +12 -12
  54. package/dist/bundle/{chunk-X5XIFNTI.js → chunk-TTOKDZQX.js} +2 -2
  55. package/dist/bundle/{chunk-NGZW2JPK.js → chunk-UBLFUQ7O.js} +7 -7
  56. package/dist/bundle/{chunk-W643XZIR.js → chunk-VD6GZ3W2.js} +2 -2
  57. package/dist/bundle/{chunk-6CZQJ5XR.js → chunk-VP5FL5JQ.js} +8 -8
  58. package/dist/bundle/{chunk-XPREXN3W.js → chunk-VTJ5TMGN.js} +3 -3
  59. package/dist/bundle/{chunk-IPKXRW6W.js → chunk-WKHHCCJE.js} +26 -25
  60. package/dist/bundle/{chunk-KLLKDOO2.js → chunk-X7EBOXBY.js} +485 -309
  61. package/dist/bundle/{chunk-H7OQ4YZV.js → chunk-XAANQN4R.js} +47 -28
  62. package/dist/bundle/{chunk-EW3XTUPB.js → chunk-XBIPSSKI.js} +4 -4
  63. package/dist/bundle/{chunk-3YGYB3LJ.js → chunk-XEIGKPYU.js} +27 -6
  64. package/dist/bundle/{chunk-FTGCXIQA.js → chunk-YGJO5VNR.js} +47 -33
  65. package/dist/bundle/{chunk-PQLBPYJR.js → chunk-YPF6OS37.js} +1 -1
  66. package/dist/bundle/{chunk-ER6PJAPK.js → chunk-ZNW4E3SG.js} +3 -3
  67. package/dist/bundle/{chunk-F5SZVO3A.js → chunk-ZS6YKNYS.js} +4 -4
  68. package/dist/bundle/command-contract-GVNLRXWS.js +34 -0
  69. package/dist/bundle/{decode-X7Y2VSYZ.js → decode-WCS4KOHV.js} +5 -5
  70. package/dist/bundle/{dispatch-OWNO2CMC.js → dispatch-3ILCYZ4Q.js} +8 -8
  71. package/dist/bundle/{dist-L7FNC74Q.js → dist-FL422DTA.js} +14 -14
  72. package/dist/bundle/{echarts-5AB3LFVD.js → echarts-45D6USAX.js} +2 -2
  73. package/dist/bundle/{embed-VBS5LRCE.js → embed-4B4ATLCN.js} +6 -6
  74. package/dist/bundle/{embedder-VFSYBDKK.js → embedder-ASWGJXNV.js} +9 -9
  75. package/dist/bundle/{failure-E534GZDF.js → failure-UDL5QZRZ.js} +2 -2
  76. package/dist/bundle/{first-run-NO2ODH2W.js → first-run-5K3UD4BU.js} +11 -11
  77. package/dist/bundle/first-screen-NNX54MYC.js +32 -0
  78. package/dist/bundle/{instructions-52W6ZQTU.js → instructions-6EFSPC7C.js} +1 -1
  79. package/dist/bundle/mail.js +12 -12
  80. package/dist/bundle/{mcp-MNI62HHE.js → mcp-PPVOM4SE.js} +2 -2
  81. package/dist/bundle/{node-TL2PBNKO.js → node-OXC26QXO.js} +2 -2
  82. package/dist/bundle/{node-sqlite-757HNQAD.js → node-sqlite-PXHZAG7Y.js} +6 -6
  83. package/dist/bundle/{oauth-VDRNJ7KN.js → oauth-YK2QLC7U.js} +7 -7
  84. package/dist/bundle/{open-NUWYOKPO.js → open-SABDXZ4B.js} +5 -5
  85. package/dist/bundle/{openai-YLBFVK5X.js → openai-DPURPXEU.js} +14 -14
  86. package/dist/bundle/{process-PWAGP6YY.js → process-YWPAOI6G.js} +1 -1
  87. package/dist/bundle/{program-PPUPVL7O.js → program-L43S7DRF.js} +12245 -11133
  88. package/dist/bundle/{prompt-M5U66RVJ.js → prompt-GKVNFGFE.js} +5 -5
  89. package/dist/bundle/{recognize-DCMDZA2U.js → recognize-344YDSLX.js} +4 -4
  90. package/dist/bundle/{remote-4SHI5WJG.js → remote-53UZUJJU.js} +7 -7
  91. package/dist/bundle/{rerank-DYMZMNPQ.js → rerank-PAIRND6R.js} +7 -7
  92. package/dist/bundle/{serve-HO3WME4G.js → serve-DZSO7LJK.js} +9 -9
  93. package/dist/bundle/{server-R3TIPRZN.js → server-EGG3V67I.js} +39 -39
  94. package/dist/bundle/server-SGGMRV2K.js +64 -0
  95. package/dist/bundle/{sqlite-runtime-DWRITUIH.js → sqlite-runtime-ZQ6F3VYZ.js} +6 -6
  96. package/dist/bundle/{state-QOMUDOGF.js → state-LXPOWLZ5.js} +6 -6
  97. package/dist/bundle/{store-RGO6IABA.js → store-4ZMSK5R5.js} +15 -15
  98. package/dist/bundle/{store-LHHMOE5V.js → store-PHT75I6S.js} +21 -19
  99. package/dist/bundle/store-maintenance-command-C6ONZNRX.js +54 -0
  100. package/dist/commands/account.d.ts.map +1 -1
  101. package/dist/commands/account.js +149 -3
  102. package/dist/commands/account.js.map +1 -1
  103. package/dist/commands/context.d.ts +3 -0
  104. package/dist/commands/context.d.ts.map +1 -1
  105. package/dist/commands/context.js +2 -2
  106. package/dist/commands/context.js.map +1 -1
  107. package/dist/commands/import.d.ts +3 -0
  108. package/dist/commands/import.d.ts.map +1 -0
  109. package/dist/commands/import.js +92 -0
  110. package/dist/commands/import.js.map +1 -0
  111. package/dist/commands/read.d.ts.map +1 -1
  112. package/dist/commands/read.js +29 -3
  113. package/dist/commands/read.js.map +1 -1
  114. package/dist/commands/session-start.d.ts.map +1 -1
  115. package/dist/commands/session-start.js +9 -7
  116. package/dist/commands/session-start.js.map +1 -1
  117. package/dist/commands/stats.d.ts.map +1 -1
  118. package/dist/commands/stats.js +49 -2
  119. package/dist/commands/stats.js.map +1 -1
  120. package/dist/commands/sync.d.ts +2 -0
  121. package/dist/commands/sync.d.ts.map +1 -1
  122. package/dist/commands/sync.js +38 -4
  123. package/dist/commands/sync.js.map +1 -1
  124. package/dist/config.d.ts +12 -1
  125. package/dist/config.d.ts.map +1 -1
  126. package/dist/config.js +30 -1
  127. package/dist/config.js.map +1 -1
  128. package/dist/mail/doctor.d.ts +3 -2
  129. package/dist/mail/doctor.d.ts.map +1 -1
  130. package/dist/mail/doctor.js +14 -16
  131. package/dist/mail/doctor.js.map +1 -1
  132. package/dist/mail/domain-age.d.ts +29 -0
  133. package/dist/mail/domain-age.d.ts.map +1 -0
  134. package/dist/mail/domain-age.js +157 -0
  135. package/dist/mail/domain-age.js.map +1 -0
  136. package/dist/mail/mbox.d.ts +9 -0
  137. package/dist/mail/mbox.d.ts.map +1 -0
  138. package/dist/mail/mbox.js +230 -0
  139. package/dist/mail/mbox.js.map +1 -0
  140. package/dist/oauth.d.ts +13 -9
  141. package/dist/oauth.d.ts.map +1 -1
  142. package/dist/oauth.js +12 -25
  143. package/dist/oauth.js.map +1 -1
  144. package/dist/profile.d.ts +4 -1
  145. package/dist/profile.d.ts.map +1 -1
  146. package/dist/profile.js +6 -1
  147. package/dist/profile.js.map +1 -1
  148. package/dist/program.d.ts.map +1 -1
  149. package/dist/program.js +15 -2
  150. package/dist/program.js.map +1 -1
  151. package/dist/reasons.d.ts +1 -1
  152. package/dist/reasons.d.ts.map +1 -1
  153. package/dist/reasons.js +0 -1
  154. package/dist/reasons.js.map +1 -1
  155. package/dist/version.d.ts +1 -1
  156. package/dist/version.js +1 -1
  157. package/package.json +4 -4
  158. package/skills/mail-cli/SKILL.md +2 -0
  159. package/dist/bundle/command-contract-B3OGAIDB.js +0 -34
  160. package/dist/bundle/first-screen-7VJLGMJJ.js +0 -32
  161. package/dist/bundle/server-244FHPY4.js +0 -64
  162. package/dist/bundle/store-maintenance-command-LU2ZBDUY.js +0 -54
  163. /package/dist/bundle/{chunk-NUN6OGOV.js → chunk-LU3WKZBA.js} +0 -0
@@ -13,7 +13,7 @@ import {
13
13
  permissionOverrides,
14
14
  projectFields,
15
15
  resolveOutput
16
- } from "./chunk-7LDC275M.js";
16
+ } from "./chunk-DDQXDX4U.js";
17
17
  import {
18
18
  currentCaller,
19
19
  endpointTemplate,
@@ -24,17 +24,17 @@ import {
24
24
  providerErrorKey,
25
25
  renderEvent,
26
26
  runContextOf
27
- } from "./chunk-2KVR7FF3.js";
27
+ } from "./chunk-DKIAHQRN.js";
28
28
  import {
29
29
  permissionCeiling
30
- } from "./chunk-ER6PJAPK.js";
30
+ } from "./chunk-ZNW4E3SG.js";
31
31
  import {
32
32
  carries
33
- } from "./chunk-UJEO3VWA.js";
33
+ } from "./chunk-3CVDHJER.js";
34
34
  import {
35
35
  filesPresent,
36
36
  sharedModelsDirectory
37
- } from "./chunk-F5SZVO3A.js";
37
+ } from "./chunk-ZS6YKNYS.js";
38
38
  import {
39
39
  author,
40
40
  count,
@@ -48,7 +48,7 @@ import {
48
48
  text,
49
49
  time,
50
50
  untrusted
51
- } from "./chunk-2A4BAMNF.js";
51
+ } from "./chunk-GIKNAOER.js";
52
52
  import {
53
53
  FACT_STATUSES,
54
54
  LINK_KINDS,
@@ -64,7 +64,7 @@ import {
64
64
  TASK_TYPES,
65
65
  TASK_VERDICTS,
66
66
  WORK_TASK_TYPES
67
- } from "./chunk-NGZW2JPK.js";
67
+ } from "./chunk-UBLFUQ7O.js";
68
68
  import {
69
69
  FACT_TYPES,
70
70
  FIELD_TYPES,
@@ -74,6 +74,7 @@ import {
74
74
  describeQuery,
75
75
  event,
76
76
  meeting,
77
+ meetingCounts,
77
78
  meetingDetails,
78
79
  meetingHit,
79
80
  meetingLink,
@@ -85,13 +86,13 @@ import {
85
86
  meetingStats,
86
87
  meetingSummary,
87
88
  meetingTranscript
88
- } from "./chunk-UHHARH5X.js";
89
+ } from "./chunk-4IEDXIUN.js";
89
90
  import {
90
91
  sharedConfigPath
91
- } from "./chunk-M2YIJDBL.js";
92
+ } from "./chunk-K2OQCQ2N.js";
92
93
  import {
93
94
  storePath
94
- } from "./chunk-X5XIFNTI.js";
95
+ } from "./chunk-TTOKDZQX.js";
95
96
  import {
96
97
  configFilePath,
97
98
  createRecordLog,
@@ -101,7 +102,7 @@ import {
101
102
  saveConfigFile,
102
103
  traceIdOf,
103
104
  writeSecurely
104
- } from "./chunk-3EAAEF5U.js";
105
+ } from "./chunk-QCNK3YUZ.js";
105
106
  import {
106
107
  COMPACT_FLAG,
107
108
  MAX_NEXT_STEPS,
@@ -153,27 +154,28 @@ import {
153
154
  unwrap,
154
155
  variant,
155
156
  writes
156
- } from "./chunk-IVDUR5Y4.js";
157
+ } from "./chunk-G6RG2AZV.js";
157
158
  import {
158
159
  CliError,
159
160
  isCliError,
160
161
  visibleControls
161
- } from "./chunk-CCHHEMPM.js";
162
+ } from "./chunk-EB2IULWB.js";
162
163
  import {
163
164
  __name
164
165
  } from "./chunk-ZVVMGPBJ.js";
165
166
 
166
- // 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/ports/app.js
167
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/ports/app.js
167
168
  var envName = /* @__PURE__ */ __name((app, name) => `${app.envPrefix}_${name}`, "envName");
168
169
  var readOnlyLockOf = /* @__PURE__ */ __name((app, env) => {
169
170
  const name = envName(app, "READ_ONLY");
170
171
  const value = env[name];
171
172
  return value === void 0 || value.trim() === "" || value === "0" ? void 0 : name;
172
173
  }, "readOnlyLockOf");
174
+ var mailHolderVariable = /* @__PURE__ */ __name((app) => envName(app, "MAIL_HOLDER"), "mailHolderVariable");
173
175
  var MESSENGER_CHANGE_REFUSAL = "send, react, change chats or change the account";
174
176
  var readOnlyRefusal = /* @__PURE__ */ __name((lock, what) => new CliError("permission_error", `this process is read-only (${lock}) \u2014 it cannot ${what}`), "readOnlyRefusal");
175
177
 
176
- // 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
178
+ // 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
177
179
  var labels = /* @__PURE__ */ new WeakMap();
178
180
  var annotate = /* @__PURE__ */ __name((command, meta) => {
179
181
  labels.set(command, { ...labels.get(command), ...meta });
@@ -3674,7 +3676,7 @@ __name(useColor, "useColor");
3674
3676
  // node_modules/.pnpm/commander@15.0.0/node_modules/commander/index.js
3675
3677
  var program = new Command();
3676
3678
 
3677
- // 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
3679
+ // 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
3678
3680
  var argumentInfoSchema = object({
3679
3681
  name: string(),
3680
3682
  required: boolean(),
@@ -3748,7 +3750,7 @@ var commandsDocumentSchema = strictObject({
3748
3750
  exit_codes: record(string(), pipe(number(), integer()))
3749
3751
  });
3750
3752
 
3751
- // 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
3753
+ // 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
3752
3754
  import { isDeepStrictEqual } from "node:util";
3753
3755
  var protectedCommands = /* @__PURE__ */ new WeakMap();
3754
3756
  var hidden = /* @__PURE__ */ __name((command) => Boolean(command._hidden), "hidden");
@@ -3857,7 +3859,7 @@ var sharedCommand = /* @__PURE__ */ __name((factory) => (...args) => {
3857
3859
  return result;
3858
3860
  }, "sharedCommand");
3859
3861
 
3860
- // node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/index.js
3862
+ // node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/index.js
3861
3863
  var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
3862
3864
  let command = root;
3863
3865
  const path2 = [];
@@ -3875,7 +3877,7 @@ var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
3875
3877
  }
3876
3878
  }, "refuseJoinedPath");
3877
3879
 
3878
- // 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
3880
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/sends/guarded.js
3879
3881
  import { AsyncLocalStorage } from "node:async_hooks";
3880
3882
  var sentIds = /* @__PURE__ */ __name((typed2, message2) => ({
3881
3883
  messageId: message2.id,
@@ -3981,7 +3983,7 @@ var guardedWrite = /* @__PURE__ */ __name(async (guard, attempt, act, settled2 =
3981
3983
  }, "guardedWrite");
3982
3984
  var codeOf = /* @__PURE__ */ __name((error) => typeof error?.code === "string" ? error.code : "unknown", "codeOf");
3983
3985
 
3984
- // 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
3986
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/execution.js
3985
3987
  var DEFAULT_COMMAND_MS = 3e4;
3986
3988
  var DEFAULT_COOPERATIVE_MS = 5 * 6e4;
3987
3989
  var DEFAULT_SYNC_MS = 15 * 6e4;
@@ -4164,7 +4166,7 @@ var withAbort = /* @__PURE__ */ __name(async (signal, body) => {
4164
4166
  }
4165
4167
  }, "withAbort");
4166
4168
 
4167
- // 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
4169
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/messenger/accounts.js
4168
4170
  import { existsSync, readdirSync, readFileSync } from "node:fs";
4169
4171
  import { join } from "node:path";
4170
4172
  var accountFileFor = /* @__PURE__ */ __name((app, profile, env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "accounts", `${profile}.json`), "accountFileFor");
@@ -4186,7 +4188,7 @@ var profilesWithAccounts = /* @__PURE__ */ __name((app, env) => {
4186
4188
  }, "profilesWithAccounts");
4187
4189
  var profilesHere = /* @__PURE__ */ __name((app, configured, env) => [.../* @__PURE__ */ new Set([...configured, ...profilesWithAccounts(app, env)])].sort(), "profilesHere");
4188
4190
 
4189
- // 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
4191
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/background/budget.js
4190
4192
  var DEADLINE_MARGIN_MS = 5e3;
4191
4193
  var DEADLINE_MARGIN_SHARE = 0.15;
4192
4194
  var DEFAULT_REQUEST_MS = 2e3;
@@ -4229,7 +4231,7 @@ var runBudget = /* @__PURE__ */ __name(({ requests, deadline, requestMs, signal,
4229
4231
  };
4230
4232
  }, "runBudget");
4231
4233
 
4232
- // 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
4234
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/runs/log-events.js
4233
4235
  var CORE_LOG_EVENTS = defineLogEvents([
4234
4236
  { id: "provider.request", meaning: "a request went to the messenger", keys: ["operation"] },
4235
4237
  { id: "provider.response", meaning: "the messenger answered the request, or it failed", keys: ["operation"] },
@@ -4263,7 +4265,7 @@ var DIAGNOSTIC_LOG_EVENTS = {
4263
4265
  cache: "cache.answered"
4264
4266
  };
4265
4267
 
4266
- // 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
4268
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/runs/log-keys.js
4267
4269
  var snake2 = /* @__PURE__ */ __name((key) => key.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snake");
4268
4270
  var camel = /* @__PURE__ */ __name((key) => key.replace(/_([a-z0-9])/g, (_, letter) => letter.toUpperCase()), "camel");
4269
4271
  var renamed = /* @__PURE__ */ __name((record2, name) => Object.fromEntries(Object.entries(record2).map(([key, value]) => [name(key), value])), "renamed");
@@ -4276,13 +4278,13 @@ var snakeLogger = /* @__PURE__ */ __name((logger) => ({
4276
4278
  error: /* @__PURE__ */ __name((event2, message2) => logger.error(logAttributes(event2), message2), "error")
4277
4279
  }), "snakeLogger");
4278
4280
 
4279
- // 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
4281
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/runs/run.js
4280
4282
  import { randomUUID } from "node:crypto";
4281
4283
  import { appendFileSync, mkdirSync, readdirSync as readdirSync2, readFileSync as readFileSync2, rmSync, statSync, writeFileSync } from "node:fs";
4282
4284
  import { userInfo } from "node:os";
4283
4285
  import { join as join2, sep } from "node:path";
4284
4286
 
4285
- // 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
4287
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/runs/log-attributes.js
4286
4288
  var diagnostic = {
4287
4289
  event: true,
4288
4290
  operation: true,
@@ -4352,7 +4354,7 @@ var LOG_ATTRIBUTES = [
4352
4354
  ...new Set([...Object.keys(diagnostic), ...Object.keys(send), ...background, ...crash, ...dropped].map((key) => Object.keys(logAttributes({ [key]: true }))[0]))
4353
4355
  ].sort();
4354
4356
 
4355
- // 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
4357
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/runs/run.js
4356
4358
  var KEEP_RUNS_FOR_DAYS = 30;
4357
4359
  var KEEP_SUCCESSFUL_RUNS_FOR_DAYS = 7;
4358
4360
  var RUNS_SIZE_LIMIT_MB = 200;
@@ -4705,7 +4707,7 @@ var metadataOf = /* @__PURE__ */ __name((parsed) => {
4705
4707
  };
4706
4708
  }, "metadataOf");
4707
4709
 
4708
- // 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
4710
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/runs/scope.js
4709
4711
  import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
4710
4712
  import { randomBytes } from "node:crypto";
4711
4713
  var scopes = new AsyncLocalStorage2();
@@ -4723,6 +4725,7 @@ var currentRun = /* @__PURE__ */ __name(() => {
4723
4725
  return processScope;
4724
4726
  }, "currentRun");
4725
4727
  var inRun = /* @__PURE__ */ __name((scope, body) => scopes.run(scope, body), "inRun");
4728
+ var runEvent = /* @__PURE__ */ __name((event2) => scopes.getStore()?.events?.(event2), "runEvent");
4726
4729
  var typedCommand = /* @__PURE__ */ __name((tool, words, profile = currentRun().profile) => [tool, profile, words].filter((part) => part !== void 0 && part !== "").join(" "), "typedCommand");
4727
4730
  var useAsProcessRun = /* @__PURE__ */ __name((scope) => {
4728
4731
  processScope = scope;
@@ -4740,8 +4743,9 @@ var childTrace = /* @__PURE__ */ __name(() => {
4740
4743
  }, "childTrace");
4741
4744
  var attempts = new AsyncLocalStorage2();
4742
4745
  var withAttempt = /* @__PURE__ */ __name((attempt, work) => attempts.run(attempt, work), "withAttempt");
4746
+ var currentAttempt = /* @__PURE__ */ __name(() => attempts.getStore(), "currentAttempt");
4743
4747
 
4744
- // 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
4748
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/runs/recording.js
4745
4749
  var recorded = /* @__PURE__ */ __name(async (options, body) => {
4746
4750
  const recording = startRecording(options);
4747
4751
  try {
@@ -4926,9 +4930,9 @@ var partialOutcome = /* @__PURE__ */ __name((answer) => {
4926
4930
  return void 0;
4927
4931
  }, "partialOutcome");
4928
4932
 
4929
- // 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
4930
- var withDeadline = /* @__PURE__ */ __name(async (ms, closeables, body) => {
4931
- if (ms === void 0)
4933
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/deadline.js
4934
+ var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
4935
+ if (ms2 === void 0)
4932
4936
  return body();
4933
4937
  let timer2;
4934
4938
  let timedOut;
@@ -4937,10 +4941,10 @@ var withDeadline = /* @__PURE__ */ __name(async (ms, closeables, body) => {
4937
4941
  timer2 = setTimeout(() => {
4938
4942
  const pending = [...writes2];
4939
4943
  const cut2 = pending.filter((write) => !write.preparing);
4940
- 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`);
4944
+ 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`);
4941
4945
  stopWrites(writes2, timedOut);
4942
4946
  void Promise.allSettled(closeables.map((closeable) => closeable.close())).then(() => reject(timedOut));
4943
- }, ms);
4947
+ }, ms2);
4944
4948
  });
4945
4949
  try {
4946
4950
  return await Promise.race([withWriteScope(writes2, body), expired]);
@@ -4952,7 +4956,7 @@ var withDeadline = /* @__PURE__ */ __name(async (ms, closeables, body) => {
4952
4956
  }
4953
4957
  }, "withDeadline");
4954
4958
 
4955
- // 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
4959
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/profile.js
4956
4960
  var asFirstWord = /* @__PURE__ */ __name((profile) => `${profile} `, "asFirstWord");
4957
4961
  var PLAIN_NAME = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
4958
4962
  var isProfileName = /* @__PURE__ */ __name((word) => PLAIN_NAME.test(word), "isProfileName");
@@ -5021,10 +5025,10 @@ var sampleCommand = /* @__PURE__ */ __name((commands) => {
5021
5025
  return void 0;
5022
5026
  }, "sampleCommand");
5023
5027
 
5024
- // 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
5025
- import { existsSync as existsSync3 } from "node:fs";
5028
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/settings.js
5029
+ import { existsSync as existsSync4 } from "node:fs";
5026
5030
 
5027
- // 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
5031
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/models/endpoint.js
5028
5032
  var endpoint = /* @__PURE__ */ __name((value) => {
5029
5033
  try {
5030
5034
  const url2 = new URL(value);
@@ -5034,7 +5038,7 @@ var endpoint = /* @__PURE__ */ __name((value) => {
5034
5038
  }
5035
5039
  }, "endpoint");
5036
5040
 
5037
- // 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
5041
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/models/settings.js
5038
5042
  var MODEL_FIELDS = ["provider", "model", "base_url"];
5039
5043
  var modelSettingsShape = record(pipe(string(), regex(/^[a-z][a-z0-9-]*$/)), strictObject({
5040
5044
  provider: optional(picklist(["off", "openai", "anthropic"])),
@@ -5103,7 +5107,7 @@ var modelTarget = /* @__PURE__ */ __name((settings, purpose) => {
5103
5107
  };
5104
5108
  }, "modelTarget");
5105
5109
 
5106
- // 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
5110
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/analysis/settings.js
5107
5111
  var model = pipe(string(), trim(), minLength(1), maxLength(200));
5108
5112
  var url = pipe(string(), check(endpoint, "use an HTTP/S endpoint without credentials, query or fragment"));
5109
5113
  var AI_FIELDS = {
@@ -5147,7 +5151,7 @@ var resolveAISettings = /* @__PURE__ */ __name((prefix, layers, env) => {
5147
5151
  };
5148
5152
  }, "resolveAISettings");
5149
5153
 
5150
- // 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
5154
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/domain/duration.js
5151
5155
  var DURATION = /^(\d+)(ms|s|m|h|d)$/;
5152
5156
  var UNIT_MS = { ms: 1, s: 1e3, m: 6e4, h: 36e5, d: 864e5 };
5153
5157
  var parseDuration = /* @__PURE__ */ __name((value, source2) => {
@@ -5155,13 +5159,13 @@ var parseDuration = /* @__PURE__ */ __name((value, source2) => {
5155
5159
  if (!match?.[1] || !match[2]) {
5156
5160
  throw new CliError("validation_error", `${source2} takes a duration with a unit \u2014 500ms, 30s, 2m, 4h or 1d \u2014 not "${value}"`);
5157
5161
  }
5158
- const ms = Number(match[1]) * (UNIT_MS[match[2]] ?? 0);
5159
- if (ms <= 0)
5162
+ const ms2 = Number(match[1]) * (UNIT_MS[match[2]] ?? 0);
5163
+ if (ms2 <= 0)
5160
5164
  throw new CliError("validation_error", `${source2} has to be more than zero, and "${value}" is not`);
5161
- return ms;
5165
+ return ms2;
5162
5166
  }, "parseDuration");
5163
5167
 
5164
- // 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
5168
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/embeddings/models.js
5165
5169
  var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/${repository}/resolve/${commit}/${name}`, "huggingFace");
5166
5170
  var e5 = huggingFace("Xenova/multilingual-e5-small", "761b726dd34fb83930e26aab4e9ac3899aa1fa78");
5167
5171
  var gemma = huggingFace("onnx-community/embeddinggemma-300m-ONNX", "5090578d9565bb06545b4552f76e6bc2c93e4a66");
@@ -5320,7 +5324,7 @@ var rerankModel = /* @__PURE__ */ __name((id6) => {
5320
5324
  var vectorModelKey = /* @__PURE__ */ __name((model3) => `local:${model3.id}:${model3.dims}`, "vectorModelKey");
5321
5325
  var meaningFloor = /* @__PURE__ */ __name((key) => key === "local:e5-small:384" ? 0.8 : 0, "meaningFloor");
5322
5326
 
5323
- // 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
5327
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/history-limits.js
5324
5328
  var HISTORY_MAX_DAYS = 1095;
5325
5329
  var DEFAULT_HISTORY_LIMITS = { dialogDays: 1095, groupDays: 365, groupMembersMax: 50 };
5326
5330
  var DAY_MS2 = 24 * 60 * 60 * 1e3;
@@ -5367,10 +5371,99 @@ var limitBatch = /* @__PURE__ */ __name((batch, shapes, included, limits, now =
5367
5371
  return { batch: { ...batch, messages }, skipped };
5368
5372
  }, "limitBatch");
5369
5373
 
5370
- // 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
5371
- import { readFileSync as readFileSync3 } from "node:fs";
5374
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/bot/registry.js
5375
+ import { existsSync as existsSync2, readdirSync as readdirSync3, readFileSync as readFileSync3 } from "node:fs";
5376
+ import { join as join3 } from "node:path";
5377
+ var botsDirectory = /* @__PURE__ */ __name((app, env = process.env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "bots"), "botsDirectory");
5378
+ var botFiles = /* @__PURE__ */ __name((app, profile, env = process.env) => {
5379
+ const directory = botsDirectory(app, env);
5380
+ return {
5381
+ registry: join3(directory, `${profile}.json`),
5382
+ recipients: join3(directory, "recipients", `${profile}.json`),
5383
+ journal: join3(directory, "sends", `${profile}.jsonl`),
5384
+ updates: join3(directory, "updates", `${profile}.json`),
5385
+ presses: join3(directory, "presses", `${profile}.json`),
5386
+ checks: join3(directory, "checks", `${profile}.json`)
5387
+ };
5388
+ }, "botFiles");
5389
+ var ChatRegistry = class {
5390
+ static {
5391
+ __name(this, "ChatRegistry");
5392
+ }
5393
+ #path;
5394
+ constructor(app, profile, env = process.env) {
5395
+ this.#path = botFiles(app, profile, env).registry;
5396
+ }
5397
+ list(filter = {}) {
5398
+ const { chats } = this.#read();
5399
+ 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()));
5400
+ }
5401
+ /** The bot's own user id, once any command has learned it — the key its messages are stored under. */
5402
+ botId() {
5403
+ const { botId } = this.#read();
5404
+ return typeof botId === "string" ? botId : void 0;
5405
+ }
5406
+ rememberBot(id6) {
5407
+ const file = this.#read();
5408
+ if (file.botId !== id6)
5409
+ this.#write({ ...file, botId: id6 });
5410
+ }
5411
+ /** Makes this bot known to `bot list` before it has seen any chat. */
5412
+ touch() {
5413
+ if (!existsSync2(this.#path))
5414
+ writeSecurely(this.#path, `${JSON.stringify({ chats: [] }, null, 2)}
5415
+ `, 384);
5416
+ }
5417
+ /** Newer facts win; a chat seen only as an id keeps the title it had. */
5418
+ observe(chats, now = /* @__PURE__ */ new Date()) {
5419
+ if (chats.length === 0)
5420
+ return;
5421
+ const byId = new Map(this.list().map((chat2) => [chat2.id, chat2]));
5422
+ const at2 = now.toISOString();
5423
+ for (const chat2 of chats) {
5424
+ const known = byId.get(chat2.id);
5425
+ const defined = Object.fromEntries(Object.entries(chat2).filter(([, value]) => value !== void 0 && value !== null));
5426
+ byId.set(chat2.id, {
5427
+ title: null,
5428
+ kind: "unknown",
5429
+ unreadCount: null,
5430
+ lastMessageAt: null,
5431
+ participantsCount: null,
5432
+ ...known,
5433
+ ...defined,
5434
+ id: chat2.id,
5435
+ firstSeenAt: known?.firstSeenAt ?? at2,
5436
+ lastSeenAt: at2
5437
+ });
5438
+ }
5439
+ this.#write({ ...this.#read(), chats: [...byId.values()] });
5440
+ }
5441
+ #read() {
5442
+ if (!existsSync2(this.#path))
5443
+ return {};
5444
+ try {
5445
+ const parsed = JSON.parse(readFileSync3(this.#path, "utf8"));
5446
+ return parsed && typeof parsed === "object" ? parsed : {};
5447
+ } catch {
5448
+ return {};
5449
+ }
5450
+ }
5451
+ #write(file) {
5452
+ writeSecurely(this.#path, `${JSON.stringify(file, null, 2)}
5453
+ `, 384);
5454
+ }
5455
+ };
5456
+ var registryProfiles = /* @__PURE__ */ __name((app, env = process.env) => {
5457
+ const directory = botsDirectory(app, env);
5458
+ if (!existsSync2(directory))
5459
+ return [];
5460
+ return readdirSync3(directory, { withFileTypes: true }).filter((entry) => entry.isFile() && entry.name.endsWith(".json")).map((entry) => entry.name).map((name) => name.slice(0, -".json".length));
5461
+ }, "registryProfiles");
5372
5462
 
5373
- // 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
5463
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
5464
+ import { readFileSync as readFileSync4 } from "node:fs";
5465
+
5466
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/config-repair.js
5374
5467
  var REPAIR_WORDS = {
5375
5468
  byte_order_mark: "an invisible byte-order mark at the start",
5376
5469
  comment: "a comment, which JSON does not allow",
@@ -5611,7 +5704,7 @@ ${parts.join(",\n")}
5611
5704
  ${indent}${close}`;
5612
5705
  }, "serialise");
5613
5706
 
5614
- // 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
5707
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
5615
5708
  var isNode = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
5616
5709
  var SECTIONS = ["personal", "bot"];
5617
5710
  var SHELL_SAFE = /^[A-Za-z0-9_.:@-]*$/;
@@ -5865,11 +5958,11 @@ var issueMessage = /* @__PURE__ */ __name((issues, doctor = "doctor") => {
5865
5958
  const more = issues.length - 1;
5866
5959
  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)`);
5867
5960
  }, "issueMessage");
5868
- var checkConfigText = /* @__PURE__ */ __name((text5, { file, tool, schema: schema2, knownPermissions }) => {
5961
+ var checkConfigText = /* @__PURE__ */ __name((text5, { file, tool, schema: schema2, knownPermissions, repair = true }) => {
5869
5962
  const parsed = parseConfigText(text5, file);
5870
5963
  if ("issue" in parsed) {
5871
5964
  const issue = publicIssue(parsed.issue);
5872
- if (repairConfigText(text5).state === "repaired")
5965
+ if (repair && repairConfigText(text5).state === "repaired")
5873
5966
  issue.fix = `${tool} config repair`;
5874
5967
  return { issues: [issue], config: void 0 };
5875
5968
  }
@@ -5885,7 +5978,7 @@ var checkConfigText = /* @__PURE__ */ __name((text5, { file, tool, schema: schem
5885
5978
  var wholeFile = /* @__PURE__ */ __name((file, what) => ({ kind: "invalid_value", file, what }), "wholeFile");
5886
5979
  var readConfigText = /* @__PURE__ */ __name((path2) => {
5887
5980
  try {
5888
- return { text: readFileSync3(path2, "utf8") };
5981
+ return { text: readFileSync4(path2, "utf8") };
5889
5982
  } catch (error) {
5890
5983
  const code = error.code;
5891
5984
  if (code === "ENOENT")
@@ -5905,20 +5998,20 @@ var readConfigFile = /* @__PURE__ */ __name((path2) => {
5905
5998
  return "issue" in parsed ? { issue: publicIssue(parsed.issue) } : parsed;
5906
5999
  }, "readConfigFile");
5907
6000
 
5908
- // 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
5909
- import { existsSync as existsSync2, linkSync, mkdirSync as mkdirSync2, mkdtempSync, rmSync as rmSync2, writeFileSync as writeFileSync2 } from "node:fs";
5910
- import { dirname, join as join3 } from "node:path";
6001
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/default-config.js
6002
+ import { existsSync as existsSync3, linkSync, mkdirSync as mkdirSync2, mkdtempSync, rmSync as rmSync2, writeFileSync as writeFileSync2 } from "node:fs";
6003
+ import { dirname, join as join4 } from "node:path";
5911
6004
  var DEFAULT_CONFIG = {
5912
6005
  defaults: { limit: 20, keep_runs_for_days: 30, sends_per_hour: 30, update_check: true, skill_hint: true },
5913
6006
  profiles: {}
5914
6007
  };
5915
6008
  function ensureDefaultConfig(path2, config = DEFAULT_CONFIG) {
5916
- if (existsSync2(path2))
6009
+ if (existsSync3(path2))
5917
6010
  return;
5918
6011
  const directory = dirname(path2);
5919
6012
  mkdirSync2(directory, { recursive: true, mode: 448 });
5920
- const temporary = mkdtempSync(join3(directory, ".config-"));
5921
- const candidate = join3(temporary, "config.json");
6013
+ const temporary = mkdtempSync(join4(directory, ".config-"));
6014
+ const candidate = join4(temporary, "config.json");
5922
6015
  try {
5923
6016
  writeFileSync2(candidate, `${JSON.stringify(config, null, 2)}
5924
6017
  `, { flag: "wx", mode: 384 });
@@ -5934,7 +6027,7 @@ function ensureDefaultConfig(path2, config = DEFAULT_CONFIG) {
5934
6027
  }
5935
6028
  __name(ensureDefaultConfig, "ensureDefaultConfig");
5936
6029
 
5937
- // 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
6030
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/setting-defaults.js
5938
6031
  var isNode2 = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
5939
6032
  var parentOf = /* @__PURE__ */ __name((config, key) => {
5940
6033
  const path2 = key.split(".");
@@ -5956,7 +6049,7 @@ var withSettingDefaults = /* @__PURE__ */ __name((raw, declared) => {
5956
6049
  return { config, added };
5957
6050
  }, "withSettingDefaults");
5958
6051
 
5959
- // 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
6052
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/settings.js
5960
6053
  var DEFAULT_LIMIT = DEFAULT_CONFIG.defaults.limit;
5961
6054
  var DEFAULT_KEEP_RUNS_FOR_DAYS = DEFAULT_CONFIG.defaults.keep_runs_for_days;
5962
6055
  var DEFAULT_SENDS_PER_HOUR = DEFAULT_CONFIG.defaults.sends_per_hour;
@@ -6020,7 +6113,9 @@ var MESSENGER_ONLY_SETTINGS = [
6020
6113
  "history_dialog_days",
6021
6114
  "history_group_days",
6022
6115
  "history_group_members_max",
6023
- "read_other_bots"
6116
+ "read_other_bots",
6117
+ "speech_model",
6118
+ "picture_search"
6024
6119
  ];
6025
6120
  var SHARED_DEFAULTS_ONLY = {
6026
6121
  update_check: optional(flag),
@@ -6152,7 +6247,12 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
6152
6247
  return { config: { profiles: {} }, issues: [read.issue] };
6153
6248
  if (read.text === void 0)
6154
6249
  return { config: { profiles: {} }, issues: [] };
6155
- const { config, issues } = checkConfigText(read.text, { file: path2, tool: app.command, schema: readSchema });
6250
+ const { config, issues } = checkConfigText(read.text, {
6251
+ file: path2,
6252
+ tool: app.command,
6253
+ schema: readSchema,
6254
+ repair: extension.configRepair !== false
6255
+ });
6156
6256
  return { config: config ?? { profiles: {} }, issues };
6157
6257
  }, "loadConfig");
6158
6258
  const locked = /* @__PURE__ */ __name((profile, lock) => {
@@ -6175,6 +6275,15 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
6175
6275
  throw new CliError("validation_error", `name a profile: \`${app.command} <profile> \u2026\` \u2014 profiles here: ${here.join(", ")} (or set ${PROFILE})`, { profiles: here });
6176
6276
  }, "unnamed");
6177
6277
  const profilesOf = /* @__PURE__ */ __name((config, env) => profilesHere(app, [...namedProfiles(config), ...extension.profiles?.(env) ?? []], env), "profilesOf");
6278
+ const botsOf = /* @__PURE__ */ __name((config, env) => [.../* @__PURE__ */ new Set([...Object.keys(config.bot?.profiles ?? {}), ...registryProfiles(app, env)])].sort(), "botsOf");
6279
+ const accountsOf = /* @__PURE__ */ __name((config, env, bots) => {
6280
+ const personal = /* @__PURE__ */ new Set([
6281
+ ...Object.keys(config.personal?.profiles ?? {}),
6282
+ ...profilesWithAccounts(app, env),
6283
+ ...extension.profiles?.(env) ?? []
6284
+ ]);
6285
+ return profilesOf(config, env).filter((name) => !bots.includes(name) || personal.has(name));
6286
+ }, "accountsOf");
6178
6287
  const resolveSettings = /* @__PURE__ */ __name((flags = {}, options = {}) => {
6179
6288
  const env = options.env ?? process.env;
6180
6289
  const configPath = configPathFor(options);
@@ -6196,6 +6305,7 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
6196
6305
  ], void 0);
6197
6306
  const profile = locked(named2.value === void 0 ? unnamed(config, env, options.needsProfile !== false) : { value: named2.value, from: named2.from }, lock);
6198
6307
  const kind2 = options.kind ?? "personal";
6308
+ const bots = botsOf(config, env);
6199
6309
  const name = usableProfileName(profile.value);
6200
6310
  const configured = config.profiles[name] ?? {};
6201
6311
  const shared = config.defaults ?? {};
@@ -6287,9 +6397,11 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
6287
6397
  updateCheck: updateCheck.value,
6288
6398
  skillHint: skillHint.value,
6289
6399
  configPath,
6290
- configFound: existsSync3(configPath),
6400
+ configFound: existsSync4(configPath),
6291
6401
  configuredProfiles: namedProfiles(config),
6292
6402
  profilesHere: profilesOf(config, env),
6403
+ accountProfiles: accountsOf(config, env, bots),
6404
+ botProfiles: bots,
6293
6405
  sources: {
6294
6406
  ...ai.sources,
6295
6407
  profile: profile.from,
@@ -6372,10 +6484,20 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
6372
6484
  if (kind2 !== "bot" && botOnlyKeys.includes(setting2)) {
6373
6485
  throw new CliError("validation_error", `${setting2} is a bot's setting \u2014 add --bot`);
6374
6486
  }
6375
- const changed = structuredClone(raw);
6376
- setAt(changed, at2, level2 === void 0 ? parseValue(value) : value.trim());
6377
6487
  const had = new Set(before.map((issue) => issue.at.join(".")));
6378
- const added = schemaIssues(changed, readSchema, context2(path2)).find((issue) => !had.has(issue.at.join(".")) || issue.at.join(".") === at2.join("."));
6488
+ const tried = /* @__PURE__ */ __name((typed2) => {
6489
+ const changed2 = structuredClone(raw);
6490
+ setAt(changed2, at2, typed2);
6491
+ const added2 = schemaIssues(changed2, readSchema, context2(path2)).find((issue) => !had.has(issue.at.join(".")) || issue.at.join(".") === at2.join("."));
6492
+ return { changed: changed2, added: added2 };
6493
+ }, "tried");
6494
+ const parsed = level2 === void 0 ? parseValue(value) : value.trim();
6495
+ let { changed, added } = tried(parsed);
6496
+ if (added && typeof parsed !== "string") {
6497
+ const asText = tried(value.trim());
6498
+ if (!asText.added)
6499
+ ({ changed, added } = asText);
6500
+ }
6379
6501
  if (added)
6380
6502
  throw new CliError("validation_error", `${setting2} cannot be "${value}": ${added.what}`);
6381
6503
  const checked = safeParse(readSchema, changed);
@@ -6437,7 +6559,7 @@ var given = /* @__PURE__ */ __name((value) => {
6437
6559
  return trimmed === void 0 || trimmed === "" ? void 0 : trimmed;
6438
6560
  }, "given");
6439
6561
 
6440
- // 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
6562
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/context.js
6441
6563
  var runBudgetOf = /* @__PURE__ */ __name((command, requests) => {
6442
6564
  const { deadline, signal, app } = environmentOf(command);
6443
6565
  const now = deadline?.();
@@ -6560,7 +6682,7 @@ var commandPath = /* @__PURE__ */ __name((command) => {
6560
6682
  return words.join(" ");
6561
6683
  }, "commandPath");
6562
6684
 
6563
- // 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
6685
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/effects.js
6564
6686
  var REMOTE_READ = { remote: "read", local: "read" };
6565
6687
  var FETCH = { remote: "read", local: "write" };
6566
6688
  var REMOTE_WRITE = { remote: "write", local: "write" };
@@ -6608,6 +6730,14 @@ var isProposal = /* @__PURE__ */ __name((command) => {
6608
6730
  const path2 = pathOf2(command).join(" ");
6609
6731
  return PROPOSE_COMMANDS.some((listed) => path2 === listed || path2.endsWith(` ${listed}`));
6610
6732
  }, "isProposal");
6733
+ var LOCKED_AUTHORITY_COMMANDS = ["rules add"];
6734
+ var NARROWS = /* @__PURE__ */ new WeakSet();
6735
+ var admittedUnderLock = /* @__PURE__ */ __name((command) => {
6736
+ if (!NARROWS.has(command))
6737
+ return false;
6738
+ const path2 = pathOf2(command).join(" ");
6739
+ return LOCKED_AUTHORITY_COMMANDS.some((listed) => path2 === listed || path2.endsWith(` ${listed}`));
6740
+ }, "admittedUnderLock");
6611
6741
  var STORE_WRITES = /* @__PURE__ */ new WeakSet();
6612
6742
  var changesStore = /* @__PURE__ */ __name((command) => {
6613
6743
  STORE_WRITES.add(command);
@@ -6680,7 +6810,7 @@ var refuseUnderReadOnly = /* @__PURE__ */ __name((command, what) => {
6680
6810
  throw readOnlyRefusal(lock, what);
6681
6811
  }, "refuseUnderReadOnly");
6682
6812
 
6683
- // 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
6813
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/account.js
6684
6814
  var account = strictObject({
6685
6815
  provider: text,
6686
6816
  id,
@@ -6690,7 +6820,7 @@ var account = strictObject({
6690
6820
  scope: optional(picklist(["personal", "work"]))
6691
6821
  });
6692
6822
 
6693
- // 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
6823
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/account-session.js
6694
6824
  var accountSession = strictObject({
6695
6825
  current: boolean(),
6696
6826
  client: nullable(text),
@@ -6700,7 +6830,7 @@ var accountSession = strictObject({
6700
6830
  created_at: optional(nullable(time))
6701
6831
  });
6702
6832
 
6703
- // 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
6833
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/account-change.js
6704
6834
  var accountChange = strictObject({ operation_id: id, account: omit(account, ["provider", "scope"]) });
6705
6835
  var endedAccountSessions = strictObject({ operation_id: id, sessions: array(accountSession) });
6706
6836
  var audience = picklist(["everyone", "contacts", "nobody"]);
@@ -6718,17 +6848,19 @@ var accountPrivacy = strictObject({
6718
6848
  });
6719
6849
  var accountPrivacyChange = strictObject({ operation_id: id, privacy: accountPrivacy });
6720
6850
 
6721
- // 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
6851
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/account-profile.js
6722
6852
  var accountProfile = strictObject({
6723
6853
  profile: id,
6724
6854
  current: boolean(),
6725
6855
  account: nullable(id),
6726
6856
  name: nullable(text),
6727
6857
  /** False for a profile with no session on this computer; absent when the messenger does not say. */
6728
- signed_in: optional(boolean())
6858
+ signed_in: optional(boolean()),
6859
+ /** True when the same name is a bot profile too (`<tool> <profile> bot …`); absent otherwise. */
6860
+ bot: optional(literal(true))
6729
6861
  });
6730
6862
 
6731
- // 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
6863
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/counter-reading.js
6732
6864
  var milliseconds = pipe(number(), minValue(0));
6733
6865
  var counterReading = strictObject({
6734
6866
  counter: picklist(["views", "reactions", "comments"]),
@@ -6740,7 +6872,7 @@ var counterReading = strictObject({
6740
6872
  });
6741
6873
  var selection = record(string(), unknown());
6742
6874
 
6743
- // 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
6875
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/admin-report.js
6744
6876
  var adminRow = strictObject({
6745
6877
  ref: reference,
6746
6878
  /** What `stats * evidence` takes: a person id, a stay or a message locator. */
@@ -6793,7 +6925,7 @@ var adminReport = strictObject({
6793
6925
  rows: array(adminRow)
6794
6926
  });
6795
6927
 
6796
- // 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
6928
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/task.js
6797
6929
  var closeSuggestion = strictObject({
6798
6930
  as: picklist(["done", "dismissed"]),
6799
6931
  /** The agent's name. */
@@ -6851,7 +6983,7 @@ var task = strictObject({
6851
6983
  updated_at: optional(time)
6852
6984
  });
6853
6985
 
6854
- // 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
6986
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/agenda.js
6855
6987
  var agendaChat = strictObject({
6856
6988
  chat: reference,
6857
6989
  title: nullable(text),
@@ -6921,11 +7053,11 @@ var agenda = strictObject({
6921
7053
  unlisted_categories: array(strictObject({ name: text, open_tasks: number() }))
6922
7054
  });
6923
7055
 
6924
- // 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
7056
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/analysis-consent.js
6925
7057
  var analysisConsent = strictObject({ chat: id, provider: text, at: time });
6926
7058
  var analysisConsentRevocation = strictObject({ revoked: boolean() });
6927
7059
 
6928
- // 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
7060
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/attachment.js
6929
7061
  var attachment = strictObject({
6930
7062
  /** The message it came with, as a locator; absent inside that message. */
6931
7063
  message: optional(reference),
@@ -6963,7 +7095,7 @@ var attachment = strictObject({
6963
7095
  });
6964
7096
  var hitFile = strictObject({ position: count, kind: text, name: optional(text), size: optional(count) });
6965
7097
 
6966
- // 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
7098
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/batch-result.js
6967
7099
  var actionableError = objectWithRest({
6968
7100
  code: text,
6969
7101
  message: text,
@@ -6980,7 +7112,7 @@ var batchResult = strictObject({
6980
7112
  max_error_percent: count
6981
7113
  });
6982
7114
 
6983
- // 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
7115
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/extraction-report.js
6984
7116
  var extractionItem = strictObject({
6985
7117
  ref: reference,
6986
7118
  attachment: count,
@@ -7013,7 +7145,7 @@ var extractionReport = strictObject({
7013
7145
  cursor: optional(text)
7014
7146
  });
7015
7147
 
7016
- // 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
7148
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/attachment-results.js
7017
7149
  var fingerprint = pipe(text, regex(/^[a-f0-9]{64}$/));
7018
7150
  var attachmentBytes = strictObject({
7019
7151
  ref: reference,
@@ -7041,7 +7173,7 @@ var attachmentTextChange = strictObject({
7041
7173
  replaced: nullable(picklist(["extracted", "agent"]))
7042
7174
  });
7043
7175
 
7044
- // 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
7176
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/chart.js
7045
7177
  var chart = strictObject({
7046
7178
  version: literal(1),
7047
7179
  kind: picklist(["bar", "line", "grouped-bar"]),
@@ -7056,7 +7188,7 @@ var chart = strictObject({
7056
7188
  file: optional(strictObject({ path: text, format: picklist(["svg", "png"]), width: count, height: count }))
7057
7189
  });
7058
7190
 
7059
- // 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
7191
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/member.js
7060
7192
  var member = strictObject({
7061
7193
  id,
7062
7194
  name: nullable(text),
@@ -7079,7 +7211,7 @@ var member = strictObject({
7079
7211
  check: optional(record(string(), unknown()))
7080
7212
  });
7081
7213
 
7082
- // 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
7214
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/chat.js
7083
7215
  var setting = optional(nullable(boolean()));
7084
7216
  var chat = strictObject({
7085
7217
  ref: reference,
@@ -7120,7 +7252,7 @@ var chat = strictObject({
7120
7252
  members: optional(array(member))
7121
7253
  });
7122
7254
 
7123
- // 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
7255
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/folder.js
7124
7256
  var named = strictObject({
7125
7257
  id,
7126
7258
  title: nullable(text),
@@ -7143,7 +7275,7 @@ var folder = strictObject({
7143
7275
  excluded_chats: optional(array(named))
7144
7276
  });
7145
7277
 
7146
- // 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
7278
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/invite-link.js
7147
7279
  var inviteLink = strictObject({
7148
7280
  link: text,
7149
7281
  /** Who joins by it asks first, and an admin lets them in. */
@@ -7159,7 +7291,7 @@ var inviteLink = strictObject({
7159
7291
  joined_count: optional(count)
7160
7292
  });
7161
7293
 
7162
- // 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
7294
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/chat-admin.js
7163
7295
  var operated = { operation_id: id, chat_id: id };
7164
7296
  var group = strictObject({
7165
7297
  ...omit(chat, ["ref", "provider", "account", "invite_link", "members"]).entries,
@@ -7239,7 +7371,7 @@ var chatFolderOrder = strictObject({
7239
7371
  folders: array(strictObject({ id, title: text }))
7240
7372
  });
7241
7373
 
7242
- // 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
7374
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/chat-change.js
7243
7375
  var operated2 = { operation_id: id, chat_id: id };
7244
7376
  var chatRemoval = strictObject(operated2);
7245
7377
  var chatMuting = strictObject({
@@ -7250,7 +7382,7 @@ var chatArchive = strictObject({ ...operated2, archived: boolean() });
7250
7382
  var chatPin = strictObject({ ...operated2, pinned: boolean() });
7251
7383
  var chatUnread = strictObject({ ...operated2, unread: literal(true) });
7252
7384
 
7253
- // 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
7385
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/chat-event.js
7254
7386
  var who = strictObject({ id: nullable(id), name: nullable(text), username: optional(nullable(text)) });
7255
7387
  var chatEvent = strictObject({
7256
7388
  chat_id: id,
@@ -7267,7 +7399,7 @@ var chatEvent = strictObject({
7267
7399
  before: optional(strictObject({ name: nullable(text), username: nullable(text) }))
7268
7400
  });
7269
7401
 
7270
- // 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
7402
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/chat-metadata.js
7271
7403
  var chatMetadata = strictObject({
7272
7404
  chat_id: id,
7273
7405
  title: nullable(text),
@@ -7282,7 +7414,7 @@ var chatMetadataRefresh = strictObject({
7282
7414
  has_more: boolean()
7283
7415
  });
7284
7416
 
7285
- // 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
7417
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/chat-moderation.js
7286
7418
  var action = picklist(["report", "delete", "remove"]);
7287
7419
  var level = picklist(["deny", "readonly", "ask", "allow"]);
7288
7420
  var chatRules = strictObject({
@@ -7319,7 +7451,7 @@ var chatModeration = strictObject({
7319
7451
  }))
7320
7452
  });
7321
7453
 
7322
- // 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
7454
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/chat-stats.js
7323
7455
  var optionalCount = optional(count);
7324
7456
  var minutes = nullable(number());
7325
7457
  var chatStats = strictObject({
@@ -7370,18 +7502,30 @@ var chatStats = strictObject({
7370
7502
  })),
7371
7503
  series: optional(array(strictObject({ key: text, messages: count, senders: count, joined: optionalCount, left: optionalCount })))
7372
7504
  });
7505
+ var ms = nullable(pipe(number(), minValue(0)));
7373
7506
  var taskStats = strictObject({
7374
7507
  /** Open tasks across every row. */
7375
7508
  open: count,
7509
+ created: count,
7510
+ closed: count,
7511
+ median_close_ms: ms,
7512
+ mean_open_age_ms: ms,
7376
7513
  rows: array(strictObject({
7377
- chat: reference,
7514
+ /** Rows of `--by chat` only. */
7515
+ chat: optional(reference),
7516
+ /** The chat reference, `meeting:<account>/<meeting>` or `project:<id>`. */
7517
+ key: text,
7518
+ name: nullable(text),
7378
7519
  open: count,
7520
+ created: count,
7521
+ closed: count,
7379
7522
  oldest_open_at: nullable(time),
7380
- median_close_ms: nullable(pipe(number(), minValue(0)))
7523
+ median_close_ms: ms,
7524
+ mean_open_age_ms: ms
7381
7525
  }))
7382
7526
  });
7383
7527
 
7384
- // 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
7528
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/chat-tracking.js
7385
7529
  var memberCount = strictObject({
7386
7530
  day: pipe(text, isoDate()),
7387
7531
  participants: nullable(count),
@@ -7404,7 +7548,7 @@ var chatTracking = strictObject({
7404
7548
  tracked: boolean()
7405
7549
  });
7406
7550
 
7407
- // 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
7551
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/contact-read.js
7408
7552
  var contactLookup = strictObject({ id, name: nullable(text), username: nullable(text) });
7409
7553
  var contactSync = strictObject({ added: count, changed: count, known: count });
7410
7554
  var profileFields = {
@@ -7442,7 +7586,7 @@ var profileFields = {
7442
7586
  }))
7443
7587
  };
7444
7588
 
7445
- // 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
7589
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/contact.js
7446
7590
  var contact = strictObject({
7447
7591
  ref: reference,
7448
7592
  id,
@@ -7473,7 +7617,7 @@ var contact = strictObject({
7473
7617
  notes: optional(array(strictObject({ id, text, revision: count, created_at: time, updated_at: time })))
7474
7618
  });
7475
7619
 
7476
- // 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
7620
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/botcheck/reasons.js
7477
7621
  var WEIGHTS = {
7478
7622
  bot: 3,
7479
7623
  scam: 3,
@@ -7498,7 +7642,7 @@ var LINK = /https?:\/\/|t\.me\/|www\./i;
7498
7642
  var DIGITS = /\d{5,}/;
7499
7643
  var oddName = /* @__PURE__ */ __name((name) => !name?.trim() || DIGITS.test(name) || LINK.test(name), "oddName");
7500
7644
 
7501
- // 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
7645
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/contact-activity.js
7502
7646
  var linkedIdentity = strictObject({
7503
7647
  provider: text,
7504
7648
  id,
@@ -7539,7 +7683,7 @@ var contactCheck = strictObject({
7539
7683
  checked_at: time
7540
7684
  });
7541
7685
 
7542
- // 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
7686
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/message.js
7543
7687
  var quoted = strictObject({
7544
7688
  id,
7545
7689
  sender_id: nullable(id),
@@ -7658,7 +7802,7 @@ var message = strictObject({
7658
7802
  provider_metadata: providerMetadata
7659
7803
  });
7660
7804
 
7661
- // 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
7805
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/contact-context.js
7662
7806
  var contextPerson = strictObject({ ...linkedPerson.entries, provider: text, id });
7663
7807
  var contextMessage = strictObject({
7664
7808
  locator: reference,
@@ -7856,7 +8000,7 @@ var contactPreparation = strictObject({
7856
8000
  })
7857
8001
  });
7858
8002
 
7859
- // 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
8003
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/contact-note.js
7860
8004
  var contactNote = strictObject({
7861
8005
  id,
7862
8006
  /** The contact, as a `contact:` reference. */
@@ -7868,13 +8012,13 @@ var contactNote = strictObject({
7868
8012
  updated_at: time
7869
8013
  });
7870
8014
 
7871
- // 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
8015
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/contact-write.js
7872
8016
  var addressBookPerson = strictObject({ id, name: nullable(text), username: nullable(text) });
7873
8017
  var contactUpdate = strictObject({ operation_id: id, person: addressBookPerson });
7874
8018
  var contactStateChange = strictObject({ operation_id: id, person_id: id });
7875
8019
  var contactImport = strictObject({ operation_id: id, sent: count, recognised: array(addressBookPerson) });
7876
8020
 
7877
- // 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
8021
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/conversation.js
7878
8022
  var conversation = strictObject({
7879
8023
  id,
7880
8024
  chat: reference,
@@ -7889,7 +8033,7 @@ var conversation = strictObject({
7889
8033
  rules_version: count
7890
8034
  });
7891
8035
 
7892
- // 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
8036
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/conversation-preparation.js
7893
8037
  var conversationBuild = strictObject({
7894
8038
  chat: id,
7895
8039
  messages: count,
@@ -7914,7 +8058,7 @@ var catchUpPreparation = strictObject({
7914
8058
  prepared: optional(conversationPreparation)
7915
8059
  });
7916
8060
 
7917
- // 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
8061
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/conversation-results.js
7918
8062
  var conversationDetails = union([
7919
8063
  strictObject({ ...conversation.entries, messages: array(message) }),
7920
8064
  message
@@ -8004,7 +8148,7 @@ var conversationHit = strictObject({
8004
8148
  stale: boolean()
8005
8149
  });
8006
8150
 
8007
- // 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
8151
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/counters.js
8008
8152
  var counters = strictObject({
8009
8153
  cutoff: time,
8010
8154
  max_age_ms: milliseconds,
@@ -8034,7 +8178,7 @@ var counterRefresh = strictObject({
8034
8178
  complete: optional(boolean())
8035
8179
  });
8036
8180
 
8037
- // 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
8181
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/document.js
8038
8182
  var document = strictObject({
8039
8183
  ref: reference,
8040
8184
  id,
@@ -8049,7 +8193,7 @@ var document = strictObject({
8049
8193
  owners: optional(array(text))
8050
8194
  });
8051
8195
 
8052
- // 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
8196
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/document-link.js
8053
8197
  var documentLink = strictObject({
8054
8198
  ref: reference,
8055
8199
  url: text,
@@ -8060,7 +8204,7 @@ var documentLink = strictObject({
8060
8204
  sender: strictObject({ id: nullable(id), name: nullable(text) })
8061
8205
  });
8062
8206
 
8063
- // 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
8207
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/evidence.js
8064
8208
  var evidenceMessage = pick(message, ["ref", "chat_title", "timestamp", "sender_name", "text"]);
8065
8209
  var contribution = strictObject({
8066
8210
  message: evidenceMessage,
@@ -8090,7 +8234,7 @@ var retentionStay = strictObject({
8090
8234
  });
8091
8235
  var evidence = union([contribution, retentionStay]);
8092
8236
 
8093
- // 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
8237
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/fact.js
8094
8238
  var fact = strictObject({
8095
8239
  ref: reference,
8096
8240
  id,
@@ -8120,7 +8264,7 @@ var fact = strictObject({
8120
8264
  updated_at: time
8121
8265
  });
8122
8266
 
8123
- // 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
8267
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/hit.js
8124
8268
  var hit = strictObject({
8125
8269
  kind: picklist(["message", "mail", "note", "document", "event", "meeting"]),
8126
8270
  ref: reference,
@@ -8158,7 +8302,7 @@ var hit = strictObject({
8158
8302
  untrusted
8159
8303
  });
8160
8304
 
8161
- // 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
8305
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/identity.js
8162
8306
  var identity = strictObject({
8163
8307
  ref: reference,
8164
8308
  provider: text,
@@ -8171,7 +8315,7 @@ var identity = strictObject({
8171
8315
  person: optional(nullable(reference))
8172
8316
  });
8173
8317
 
8174
- // 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
8318
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/image-embedding.js
8175
8319
  var imageEmbedding = strictObject({
8176
8320
  model: text,
8177
8321
  embedded: count,
@@ -8180,13 +8324,13 @@ var imageEmbedding = strictObject({
8180
8324
  more: boolean()
8181
8325
  });
8182
8326
 
8183
- // 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
8327
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
8184
8328
  import { spawn } from "node:child_process";
8185
8329
  import { randomBytes as randomBytes2 } from "node:crypto";
8186
- import { closeSync, existsSync as existsSync4, mkdirSync as mkdirSync3, openSync, readdirSync as readdirSync3, readFileSync as readFileSync4, realpathSync, rmSync as rmSync3 } from "node:fs";
8187
- import { dirname as dirname2, join as join4 } from "node:path";
8330
+ import { closeSync, existsSync as existsSync5, mkdirSync as mkdirSync3, openSync, readdirSync as readdirSync4, readFileSync as readFileSync5, realpathSync, rmSync as rmSync3 } from "node:fs";
8331
+ import { dirname as dirname2, join as join5 } from "node:path";
8188
8332
 
8189
- // 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
8333
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/background/checkpoints.js
8190
8334
  var progressOf = /* @__PURE__ */ __name((input) => {
8191
8335
  const total = input.total ?? null;
8192
8336
  const updated = input.updatedAt ?? null;
@@ -8202,7 +8346,7 @@ var progressOf = /* @__PURE__ */ __name((input) => {
8202
8346
  };
8203
8347
  }, "progressOf");
8204
8348
 
8205
- // 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
8349
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/runs/record-log.js
8206
8350
  var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) => {
8207
8351
  const run = currentRun();
8208
8352
  const trace = traceId ?? run.traceId;
@@ -8216,7 +8360,7 @@ var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) =
8216
8360
  }));
8217
8361
  }, "recordLogFor");
8218
8362
 
8219
- // 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
8363
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
8220
8364
  var JOB_STATES = ["running", "done", "partial", "failed", "cancelled", "died"];
8221
8365
  var spawnDetached = /* @__PURE__ */ __name((argv, env, log) => {
8222
8366
  const out = openSync(log, "a", 384);
@@ -8232,23 +8376,23 @@ var spawnDetached = /* @__PURE__ */ __name((argv, env, log) => {
8232
8376
  closeSync(out);
8233
8377
  }
8234
8378
  }, "spawnDetached");
8235
- var jobsDir = /* @__PURE__ */ __name((app, env) => join4(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "backfill"), "jobsDir");
8236
- var jobPath = /* @__PURE__ */ __name((dir, id6) => join4(dir, `${id6}.json`), "jobPath");
8379
+ var jobsDir = /* @__PURE__ */ __name((app, env) => join5(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "backfill"), "jobsDir");
8380
+ var jobPath = /* @__PURE__ */ __name((dir, id6) => join5(dir, `${id6}.json`), "jobPath");
8237
8381
  var saveJob = /* @__PURE__ */ __name((dir, job2) => {
8238
8382
  mkdirSync3(dir, { recursive: true, mode: 448 });
8239
8383
  writeSecurely(jobPath(dir, job2.id), `${JSON.stringify(job2, null, 2)}
8240
8384
  `, 384);
8241
8385
  }, "saveJob");
8242
8386
  var readJob = /* @__PURE__ */ __name((dir, id6) => {
8243
- if (!/^[\w-]+$/.test(id6) || !existsSync4(jobPath(dir, id6)))
8387
+ if (!/^[\w-]+$/.test(id6) || !existsSync5(jobPath(dir, id6)))
8244
8388
  return void 0;
8245
8389
  try {
8246
- return JSON.parse(readFileSync4(jobPath(dir, id6), "utf8"));
8390
+ return JSON.parse(readFileSync5(jobPath(dir, id6), "utf8"));
8247
8391
  } catch {
8248
8392
  return void 0;
8249
8393
  }
8250
8394
  }, "readJob");
8251
- var recordsPath = /* @__PURE__ */ __name((dir, id6) => join4(dir, `${id6}.jsonl`), "recordsPath");
8395
+ var recordsPath = /* @__PURE__ */ __name((dir, id6) => join5(dir, `${id6}.jsonl`), "recordsPath");
8252
8396
  var tracedJob = /* @__PURE__ */ __name((env) => {
8253
8397
  const trace = childTrace();
8254
8398
  return { env: { ...env, TRACEPARENT: trace.traceparent }, traceId: trace.traceId };
@@ -8285,7 +8429,7 @@ var removeJob = /* @__PURE__ */ __name((dir, job2) => {
8285
8429
  if (dirname2(job2.log) === dir)
8286
8430
  rmSync3(job2.log, { force: true });
8287
8431
  }, "removeJob");
8288
- 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");
8432
+ 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");
8289
8433
  var jobDetails = /* @__PURE__ */ __name((job2) => ({
8290
8434
  job: job2.id,
8291
8435
  profile: job2.profile,
@@ -8351,7 +8495,7 @@ var startArchiveJob = /* @__PURE__ */ __name((app, env, profile, input, spawnJob
8351
8495
  const startedAt = (/* @__PURE__ */ new Date()).toISOString();
8352
8496
  const id6 = `${startedAt.replace(/[-:]/g, "").slice(0, 15)}-${randomBytes2(3).toString("hex")}`;
8353
8497
  mkdirSync3(dir, { recursive: true, mode: 448 });
8354
- const log = join4(dir, `${id6}.log`);
8498
+ const log = join5(dir, `${id6}.log`);
8355
8499
  const job2 = {
8356
8500
  id: id6,
8357
8501
  chat: input.chat,
@@ -8371,7 +8515,7 @@ var startArchiveJob = /* @__PURE__ */ __name((app, env, profile, input, spawnJob
8371
8515
  return { job: id6, pid, chat: input.chat, log };
8372
8516
  }, "startArchiveJob");
8373
8517
 
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/job.js
8518
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/job.js
8375
8519
  var problem = strictObject({ code: text, message: text });
8376
8520
  var job = strictObject({
8377
8521
  id,
@@ -8394,7 +8538,7 @@ var job = strictObject({
8394
8538
  error: optional(problem)
8395
8539
  });
8396
8540
 
8397
- // 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
8541
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/join-request.js
8398
8542
  var joinRequest = strictObject({
8399
8543
  person_id: id,
8400
8544
  name: nullable(text),
@@ -8405,7 +8549,7 @@ var joinRequest = strictObject({
8405
8549
  about: optional(text)
8406
8550
  });
8407
8551
 
8408
- // 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
8552
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/list-results.js
8409
8553
  var botProfile = strictObject({
8410
8554
  name: text,
8411
8555
  token: text,
@@ -8473,7 +8617,7 @@ var stickerInventory = strictObject({
8473
8617
  url: optional(nullable(text))
8474
8618
  });
8475
8619
 
8476
- // 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
8620
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/poll-vote.js
8477
8621
  var pollVote = strictObject({
8478
8622
  person_id: id,
8479
8623
  name: nullable(text),
@@ -8483,7 +8627,7 @@ var pollVote = strictObject({
8483
8627
  voted_at: time
8484
8628
  });
8485
8629
 
8486
- // 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
8630
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/listener.js
8487
8631
  var reactions = unwrap(unwrap(message.entries.reactions));
8488
8632
  var observation = strictObject({
8489
8633
  value: pipe(number(), minValue(0)),
@@ -8525,7 +8669,22 @@ var serveSummary = strictObject({
8525
8669
  tasks: optional(strictObject({ added: count, closed: count, review: count }))
8526
8670
  });
8527
8671
 
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/mail-findings.js
8672
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/mail-counts.js
8673
+ var mailCounts = strictObject({
8674
+ by: picklist(["day", "week", "sender"]),
8675
+ received: count,
8676
+ sent: count,
8677
+ rows: array(strictObject({
8678
+ /** `YYYY-MM-DD`, or the sender's address. */
8679
+ key: text,
8680
+ name: nullable(text),
8681
+ received: count,
8682
+ /** Always 0 by sender: the owner sends that mail. */
8683
+ sent: count
8684
+ }))
8685
+ });
8686
+
8687
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/mail-findings.js
8529
8688
  var evidence2 = strictObject({ reference, fingerprint: text });
8530
8689
  var base = { id, evidence: array(evidence2) };
8531
8690
  var finding = variant("kind", [
@@ -8591,7 +8750,7 @@ var mailFindings = strictObject({
8591
8750
  receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome) }))
8592
8751
  });
8593
8752
 
8594
- // 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
8753
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/media-archive.js
8595
8754
  var mediaArchive = strictObject({
8596
8755
  directory: text,
8597
8756
  chats: count,
@@ -8623,7 +8782,7 @@ var mediaArchiveTimer = union([
8623
8782
  strictObject({ ...timer, action: picklist(["install", "start", "stop", "uninstall"]) })
8624
8783
  ]);
8625
8784
 
8626
- // 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
8785
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation-parts.js
8627
8786
  var preparationId = pipe(string(), minLength(1));
8628
8787
  var preparationCount = pipe(number(), integer(), minValue(0));
8629
8788
  var preparationTime = nullable(isoTime);
@@ -8715,7 +8874,7 @@ var preparationMeeting = strictObject({
8715
8874
  updated_at: isoTime
8716
8875
  });
8717
8876
 
8718
- // 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
8877
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/meeting-evidence.js
8719
8878
  var meetingEvidence = preparationEvidence;
8720
8879
  var meetingPersonContext = strictObject({
8721
8880
  person: strictObject({ uid: string(), name: nullable(string()) }),
@@ -8737,7 +8896,7 @@ var meetingPersonContext = strictObject({
8737
8896
  })
8738
8897
  });
8739
8898
 
8740
- // 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
8899
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/meeting-findings.js
8741
8900
  var evidence3 = strictObject({ reference, fingerprint: text });
8742
8901
  var base2 = { id, project: reference, evidence: array(evidence3) };
8743
8902
  var finding2 = variant("kind", [
@@ -8775,7 +8934,7 @@ var meetingFindings = strictObject({
8775
8934
  receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome2) }))
8776
8935
  });
8777
8936
 
8778
- // 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
8937
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/meeting-communications.js
8779
8938
  var communicationCoverage = strictObject({
8780
8939
  read_usage: strictObject({ reads: preparationCount, charged_bytes: preparationCount, reserved_bytes: preparationCount, remaining_bytes: preparationCount }),
8781
8940
  query: string(),
@@ -8820,7 +8979,7 @@ var preparationCommunications = strictObject({
8820
8979
  }))
8821
8980
  });
8822
8981
 
8823
- // 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
8982
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation.js
8824
8983
  var meetingPreparation = strictObject({
8825
8984
  communications: optional(preparationCommunications),
8826
8985
  schema_version: literal(1),
@@ -8933,7 +9092,7 @@ var meetingPreparation = strictObject({
8933
9092
  })
8934
9093
  });
8935
9094
 
8936
- // 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
9095
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/meeting-project-candidates.js
8937
9096
  var count4 = pipe(number(), integer(), minValue(0));
8938
9097
  var id3 = pipe(string(), minLength(1));
8939
9098
  var text3 = string();
@@ -8997,7 +9156,7 @@ var meetingProjectCandidates = strictObject({
8997
9156
  })
8998
9157
  });
8999
9158
 
9000
- // 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
9159
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/meeting-series-inventory.js
9001
9160
  var count5 = pipe(number(), integer(), minValue(0));
9002
9161
  var id4 = pipe(string(), minLength(1), maxLength(1e3));
9003
9162
  var meetingSeriesInventory = strictObject({
@@ -9027,7 +9186,7 @@ var meetingSeriesInventory = strictObject({
9027
9186
  })
9028
9187
  });
9029
9188
 
9030
- // 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
9189
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/meeting-task-proposal.js
9031
9190
  var text4 = string();
9032
9191
  var id5 = pipe(number(), integer(), minValue(1));
9033
9192
  var revision = picklist(["current", "superseded"]);
@@ -9044,7 +9203,7 @@ var meetingTaskProposal = strictObject({
9044
9203
  persistence: literal("proposal-only")
9045
9204
  });
9046
9205
 
9047
- // 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
9206
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/memory.js
9048
9207
  var memory = strictObject({
9049
9208
  ref: reference,
9050
9209
  id,
@@ -9071,7 +9230,7 @@ var memory = strictObject({
9071
9230
  updated_at: time
9072
9231
  });
9073
9232
 
9074
- // 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
9233
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/mention.js
9075
9234
  var kind = picklist(["phone", "email", "url", "document", "person-name", "place"]);
9076
9235
  var status = picklist(["found", "linked", "dismissed"]);
9077
9236
  var mention = strictObject({
@@ -9114,13 +9273,13 @@ var mentionRebuild = strictObject({
9114
9273
  mentions: count
9115
9274
  });
9116
9275
 
9117
- // 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
9276
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/message-change.js
9118
9277
  var operated3 = { operation_id: id, chat_id: id };
9119
9278
  var messagePin = strictObject({ ...operated3, message_id: id, pinned: boolean() });
9120
9279
  var messageStar = strictObject({ ...operated3, message_id: id, starred: boolean() });
9121
9280
  var messageDeletion = strictObject({ ...operated3, deleted: array(id), for_everyone: boolean() });
9122
9281
 
9123
- // 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
9282
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/message-read.js
9124
9283
  var messageTranscript = strictObject({
9125
9284
  message_id: id,
9126
9285
  text,
@@ -9178,7 +9337,7 @@ var evidencePacket = strictObject({
9178
9337
  }))
9179
9338
  });
9180
9339
 
9181
- // 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
9340
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/message-context.js
9182
9341
  var messageThread = strictObject({
9183
9342
  ref: reference,
9184
9343
  chat: id,
@@ -9195,7 +9354,7 @@ var messageThread = strictObject({
9195
9354
  });
9196
9355
  var messageContext = union([message, messageThread]);
9197
9356
 
9198
- // 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
9357
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/message-counts.js
9199
9358
  var messageCounts = strictObject({
9200
9359
  by: picklist(["chat", "sender", "day", "hour"]),
9201
9360
  total: count,
@@ -9208,7 +9367,7 @@ var messageCounts = strictObject({
9208
9367
  }))
9209
9368
  });
9210
9369
 
9211
- // 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
9370
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/message-link.js
9212
9371
  var messageLink = strictObject({
9213
9372
  ref: reference,
9214
9373
  url: nullable(text),
@@ -9225,7 +9384,7 @@ var messageLink = strictObject({
9225
9384
  })))
9226
9385
  });
9227
9386
 
9228
- // 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
9387
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/message-transfer.js
9229
9388
  var savedMessageFile = strictObject({
9230
9389
  kind: text,
9231
9390
  path: text,
@@ -9312,7 +9471,7 @@ var messageSyncAll = strictObject({
9312
9471
  var messageSyncStarted = strictObject({ job: id, pid: count, chat: text, log: text });
9313
9472
  var messageSync = union([messageSyncEstimate, messageSyncChat, messageSyncAll, messageSyncStarted]);
9314
9473
 
9315
- // 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
9474
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/message-write.js
9316
9475
  var messageWrite = strictObject({
9317
9476
  operation_id: id,
9318
9477
  message,
@@ -9327,7 +9486,7 @@ var draftWrite = strictObject({
9327
9486
  });
9328
9487
  var messageSend = union([messageWrite, draftWrite]);
9329
9488
 
9330
- // 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
9489
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/model.js
9331
9490
  var model2 = strictObject({
9332
9491
  id,
9333
9492
  kind: picklist(["audio", "text", "image", "reranker"]),
@@ -9344,7 +9503,7 @@ var model2 = strictObject({
9344
9503
  path: text
9345
9504
  });
9346
9505
 
9347
- // 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
9506
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/model-key.js
9348
9507
  var source = picklist(["environment", "keyring", "file"]);
9349
9508
  var modelKey = strictObject({
9350
9509
  provider: text,
@@ -9354,7 +9513,7 @@ var modelKey = strictObject({
9354
9513
  var storedModelKey = strictObject({ ...omit(modelKey, ["removed"]).entries, stored: source });
9355
9514
  var removedModelKey = strictObject({ ...omit(modelKey, ["stored"]).entries, removed: array(source) });
9356
9515
 
9357
- // 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
9516
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/official-stats.js
9358
9517
  var versus = strictObject({ current: number(), previous: number() });
9359
9518
  var person = { person_ref: reference, name: nullable(text) };
9360
9519
  var graph = strictObject({
@@ -9388,14 +9547,14 @@ var officialStats = strictObject({
9388
9547
  graphs: record(string(), union([graph, strictObject({ error: text })]))
9389
9548
  });
9390
9549
 
9391
- // 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
9550
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/person.js
9392
9551
  var person2 = strictObject({
9393
9552
  ref: reference,
9394
9553
  name: nullable(text),
9395
9554
  identities: optional(array(identity))
9396
9555
  });
9397
9556
 
9398
- // 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
9557
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/poll.js
9399
9558
  var poll = strictObject({
9400
9559
  chat_id: id,
9401
9560
  message_id: id,
@@ -9411,11 +9570,11 @@ var poll = strictObject({
9411
9570
  });
9412
9571
  var pollChange = strictObject({ operation_id: id, poll });
9413
9572
 
9414
- // 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
9573
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/private-contact.js
9415
9574
  var contactAlias = strictObject({ person_id: id, alias: nullable(text) });
9416
9575
  var contactNoteRemoval = strictObject({ id, person_id: id, removed: boolean() });
9417
9576
 
9418
- // 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
9577
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/ranking.js
9419
9578
  var figures = record(string(), number());
9420
9579
  var freshness = picklist(["fresh", "stale", "partial", "unknown"]);
9421
9580
  var rankingRow = strictObject({
@@ -9462,7 +9621,7 @@ var ranking = strictObject({
9462
9621
  rows: array(rankingRow)
9463
9622
  });
9464
9623
 
9465
- // 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
9624
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/reaction.js
9466
9625
  var reaction = strictObject({
9467
9626
  person: strictObject({ id, name: nullable(text), username: nullable(text) }),
9468
9627
  /** The emoji, or `custom:<id>` for a custom one. */
@@ -9470,7 +9629,7 @@ var reaction = strictObject({
9470
9629
  reacted_at: time
9471
9630
  });
9472
9631
 
9473
- // 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
9632
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/reaction-change.js
9474
9633
  var reactionChange = strictObject({
9475
9634
  operation_id: id,
9476
9635
  chat_id: id,
@@ -9478,7 +9637,7 @@ var reactionChange = strictObject({
9478
9637
  reaction: nullable(text)
9479
9638
  });
9480
9639
 
9481
- // 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
9640
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/recipient.js
9482
9641
  var recipient = strictObject({ id, title: nullable(text), partner_id: optional(id), added_at: time });
9483
9642
  var recipientAdded = strictObject({ id, title: nullable(text), added: boolean() });
9484
9643
  var recipientRemoved = strictObject({ id, title: nullable(text), removed: boolean() });
@@ -9489,7 +9648,7 @@ var recipientChange = strictObject({
9489
9648
  ...partial(recipientOff).entries
9490
9649
  });
9491
9650
 
9492
- // 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
9651
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/recorded-run.js
9493
9652
  var events = array(record(string(), unknown()));
9494
9653
  var recordedRun = strictObject({
9495
9654
  run_id: id,
@@ -9561,7 +9720,7 @@ var runHit = strictObject({
9561
9720
  });
9562
9721
  var runLocation = strictObject({ path: text });
9563
9722
 
9564
- // 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
9723
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/relationship.js
9565
9724
  var relationship = strictObject({
9566
9725
  id,
9567
9726
  from: reference,
@@ -9578,7 +9737,7 @@ var relationship = strictObject({
9578
9737
  created_at: time
9579
9738
  });
9580
9739
 
9581
- // 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
9740
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/reply-stats.js
9582
9741
  var milliseconds2 = nullable(pipe(number(), minValue(0)));
9583
9742
  var figures2 = { replies: count, median_ms: milliseconds2, p90_ms: milliseconds2, mean_ms: milliseconds2 };
9584
9743
  var responseTimes = strictObject({
@@ -9595,7 +9754,7 @@ var waitingChats = strictObject({
9595
9754
  by_kind: strictObject({ private: count, group: count })
9596
9755
  });
9597
9756
 
9598
- // 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
9757
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/retention.js
9599
9758
  var retentionCohort = strictObject({
9600
9759
  /** The first day of the joining day or week. */
9601
9760
  cohort: text,
@@ -9643,7 +9802,7 @@ var retention = strictObject({
9643
9802
  rows: array(retentionCohort)
9644
9803
  });
9645
9804
 
9646
- // 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
9805
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/saved-search.js
9647
9806
  var savedSearch = strictObject({
9648
9807
  id,
9649
9808
  /** `null` for a run in the history. */
@@ -9660,7 +9819,7 @@ var savedSearch = strictObject({
9660
9819
  });
9661
9820
  var searchHistoryClear = strictObject({ cleared: count });
9662
9821
 
9663
- // 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
9822
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/send-attempt.js
9664
9823
  var sendAttempt = strictObject({
9665
9824
  at: time,
9666
9825
  profile: text,
@@ -9688,7 +9847,7 @@ var sendAttempt = strictObject({
9688
9847
  error_code: optional(text)
9689
9848
  });
9690
9849
 
9691
- // 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
9850
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/store-maintenance.js
9692
9851
  var absent = strictObject({ path: text, exists: literal(false) });
9693
9852
  var schema = strictObject({ version: count, min_compatible: count, writable: boolean(), speaks: count });
9694
9853
  var infoSchema = strictObject({
@@ -9896,7 +10055,7 @@ var storeRepair = union([
9896
10055
  ]);
9897
10056
  var storeCopyRemoval = strictObject({ path: text, deleted: strictObject({ name: text, rows: count }) });
9898
10057
 
9899
- // 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
10058
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/store-records.js
9900
10059
  var range = strictObject({ from: number(), to: number() });
9901
10060
  var storeChatStatus = strictObject({
9902
10061
  chat_id: id,
@@ -9908,6 +10067,13 @@ var storeChatStatus = strictObject({
9908
10067
  last_stored_at: nullable(time),
9909
10068
  held: array(range)
9910
10069
  });
10070
+ var chatCoverage = strictObject({
10071
+ chats: count,
10072
+ fetched: count,
10073
+ partial: count,
10074
+ never: count,
10075
+ oldest_message_at: nullable(time)
10076
+ });
9911
10077
  var storeClear = strictObject({
9912
10078
  cleared: boolean(),
9913
10079
  dry_run: optional(literal(true)),
@@ -9987,7 +10153,7 @@ var storeJobRetry = union([
9987
10153
  ]);
9988
10154
  var storeJobClear = strictObject({ cleared: array(id) });
9989
10155
 
9990
- // 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
10156
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/store-table.js
9991
10157
  var TABLE_KINDS = ["data", "search_index", "search_index_part", "internal"];
9992
10158
  var storeTable = strictObject({
9993
10159
  name: text,
@@ -9996,7 +10162,7 @@ var storeTable = strictObject({
9996
10162
  bytes: optional(nullable(count))
9997
10163
  });
9998
10164
 
9999
- // 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
10165
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/tag-change.js
10000
10166
  var tagTarget = variant("type", [
10001
10167
  strictObject({ type: literal("chat"), chat_id: id }),
10002
10168
  strictObject({ type: literal("contact"), person_id: id }),
@@ -10027,7 +10193,7 @@ var automaticTags = strictObject({
10027
10193
  dry_run: boolean()
10028
10194
  });
10029
10195
 
10030
- // 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
10196
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/tagging.js
10031
10197
  var tagging = strictObject({
10032
10198
  tag: text,
10033
10199
  type: picklist(TAG_TYPES),
@@ -10040,7 +10206,7 @@ var tagging = strictObject({
10040
10206
  created_at: time
10041
10207
  });
10042
10208
 
10043
- // 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
10209
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/task-pair.js
10044
10210
  var side = strictObject({ ref: reference, key: text, title: text, status: text });
10045
10211
  var taskPair = strictObject({
10046
10212
  task: nullable(side),
@@ -10063,7 +10229,7 @@ var taskPair = strictObject({
10063
10229
  created_at: time
10064
10230
  });
10065
10231
 
10066
- // 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
10232
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/task-results.js
10067
10233
  var nullableTime = nullable(time);
10068
10234
  var link = strictObject({
10069
10235
  id,
@@ -10233,7 +10399,7 @@ var taskReview = strictObject({
10233
10399
  untrusted
10234
10400
  });
10235
10401
 
10236
- // 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
10402
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/topic.js
10237
10403
  var topic = strictObject({
10238
10404
  id,
10239
10405
  title: text,
@@ -10247,7 +10413,7 @@ var topic = strictObject({
10247
10413
  untrusted
10248
10414
  });
10249
10415
 
10250
- // 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
10416
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/entities/index.js
10251
10417
  var ENTITIES = {
10252
10418
  sync_progress: progress,
10253
10419
  ...MEETING_RESULT_ENTITIES,
@@ -10277,19 +10443,22 @@ var ENTITIES = {
10277
10443
  attachments: optional(array(hitFile)),
10278
10444
  untrusted
10279
10445
  }),
10280
- "message.summary": pick(message, [
10281
- "ref",
10282
- "chat_id",
10283
- "chat_title",
10284
- "timestamp",
10285
- "sender_name",
10286
- "sender_is_me",
10287
- "outgoing",
10288
- "text",
10289
- "transcript",
10290
- "attachments",
10291
- "email"
10292
- ]),
10446
+ "message.summary": strictObject({
10447
+ ...pick(message, [
10448
+ "ref",
10449
+ "chat_id",
10450
+ "chat_title",
10451
+ "timestamp",
10452
+ "sender_name",
10453
+ "sender_is_me",
10454
+ "outgoing",
10455
+ "text",
10456
+ "transcript",
10457
+ "attachments",
10458
+ "email"
10459
+ ]).entries,
10460
+ untrusted
10461
+ }),
10293
10462
  message_link: messageLink,
10294
10463
  message_write: messageWrite,
10295
10464
  message_send: messageSend,
@@ -10408,6 +10577,7 @@ var ENTITIES = {
10408
10577
  meeting_review: meetingReview,
10409
10578
  meeting_link: meetingLink,
10410
10579
  meeting_stats: meetingStats,
10580
+ meeting_counts: meetingCounts,
10411
10581
  meeting_speaker: meetingSpeaker,
10412
10582
  meeting_participants: meetingParticipants,
10413
10583
  meeting_passage: meetingPassage,
@@ -10445,6 +10615,7 @@ var ENTITIES = {
10445
10615
  job,
10446
10616
  store_chat_status: storeChatStatus,
10447
10617
  store_clear: storeClear,
10618
+ chat_coverage: chatCoverage,
10448
10619
  store_export: storeExport,
10449
10620
  store_gap_plan: storeGapPlan,
10450
10621
  store_gap_repair: storeGapRepair,
@@ -10502,6 +10673,7 @@ var ENTITIES = {
10502
10673
  message_counts: messageCounts,
10503
10674
  response_times: responseTimes,
10504
10675
  waiting_chats: waitingChats,
10676
+ mail_counts: mailCounts,
10505
10677
  ranking,
10506
10678
  admin_report: adminReport,
10507
10679
  analysis_consent: analysisConsent,
@@ -10523,7 +10695,7 @@ var entityDefinitions = /* @__PURE__ */ __name(() => Object.fromEntries(Object.e
10523
10695
  return [name, definition];
10524
10696
  })), "entityDefinitions");
10525
10697
 
10526
- // 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
10698
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/answer-entity.js
10527
10699
  var schemas = /* @__PURE__ */ new WeakMap();
10528
10700
  var answerEntity = /* @__PURE__ */ __name((command, name, schema2, options = {}) => {
10529
10701
  if (Object.hasOwn(ENTITIES, name))
@@ -10557,8 +10729,8 @@ var answerRow = /* @__PURE__ */ __name((command) => {
10557
10729
  return own && metaOf(command).output?.entity === own.name ? own.row : void 0;
10558
10730
  }, "answerRow");
10559
10731
 
10560
- // 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
10561
- import { join as join5 } from "node:path";
10732
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/images/picture/models.js
10733
+ import { join as join6 } from "node:path";
10562
10734
  var clip = /* @__PURE__ */ __name((name) => `https://huggingface.co/Xenova/clip-vit-base-patch32/resolve/d15189d7028b43f1d3e65039190477f6af591c2a/${name}`, "clip");
10563
10735
  var IMAGE_MODELS = [
10564
10736
  {
@@ -10608,10 +10780,10 @@ var imageModel = /* @__PURE__ */ __name((id6) => {
10608
10780
  return found;
10609
10781
  }, "imageModel");
10610
10782
  var imageModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedModelsDirectory("image", env), "imageModelsDirectory");
10611
- var placedImage = /* @__PURE__ */ __name((model3, directory) => model3.files.map((file) => [file, join5(directory, model3.id, file.name)]), "placedImage");
10783
+ var placedImage = /* @__PURE__ */ __name((model3, directory) => model3.files.map((file) => [file, join6(directory, model3.id, file.name)]), "placedImage");
10612
10784
  var isImageModelInstalled = /* @__PURE__ */ __name((model3, directory) => filesPresent(placedImage(model3, directory)), "isImageModelInstalled");
10613
10785
 
10614
- // 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
10786
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/steps.js
10615
10787
  var STEPS2 = defineSteps([
10616
10788
  ...STEPS,
10617
10789
  {
@@ -10892,7 +11064,7 @@ var stepLine = /* @__PURE__ */ __name((root, step2) => {
10892
11064
  ].join(" ");
10893
11065
  }, "stepLine");
10894
11066
 
10895
- // 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
11067
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/project-status-rows.js
10896
11068
  var where = [{ field: "ref" }, { field: ["chat_title", "chat"] }];
10897
11069
  var who2 = { field: ["who.owner", "who.name"], tag: "you" };
10898
11070
  var STATUS_SIGNAL_ROWS = {
@@ -11001,7 +11173,7 @@ var STATUS_ROWS = {
11001
11173
  "status.failed": { columns: [{ field: "signal" }], text: ["why"] }
11002
11174
  };
11003
11175
 
11004
- // 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
11176
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/compact.js
11005
11177
  var TEXT_CHARS = 400;
11006
11178
  var sender = { field: ["sender_is_me", "sender_name"], tag: "me" };
11007
11179
  var messageRow = {
@@ -11154,10 +11326,10 @@ var clockFor = /* @__PURE__ */ __name((zone) => {
11154
11326
  return {
11155
11327
  zone,
11156
11328
  parts: /* @__PURE__ */ __name((iso) => {
11157
- const ms = Date.parse(iso);
11158
- if (Number.isNaN(ms))
11329
+ const ms2 = Date.parse(iso);
11330
+ if (Number.isNaN(ms2))
11159
11331
  return void 0;
11160
- const part = Object.fromEntries(format.formatToParts(ms).map(({ type, value }) => [type, value]));
11332
+ const part = Object.fromEntries(format.formatToParts(ms2).map(({ type, value }) => [type, value]));
11161
11333
  return { date: `${part.year}-${part.month}-${part.day}`, time: `${part.hour}:${part.minute}` };
11162
11334
  }, "parts")
11163
11335
  };
@@ -11337,7 +11509,7 @@ var compactText = /* @__PURE__ */ __name((body, shape, options, rowsOf = rowsOfE
11337
11509
  return lines.concat(footerOf(body)).join("\n");
11338
11510
  }, "compactText");
11339
11511
 
11340
- // 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
11512
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/output-budget.js
11341
11513
  var SOFT_OUTPUT_BYTES = 256 * 1024;
11342
11514
  var CARRIED = ["json", "compact", "offline", "timeout", "full", "brief", "maxOutputBytes"];
11343
11515
  var NOT_WITH_COMPACT = /* @__PURE__ */ new Set(["json", "brief"]);
@@ -11395,7 +11567,7 @@ var largeAnswerSteps = /* @__PURE__ */ __name((command) => {
11395
11567
  return args ? compactStep(command, args, "the answer is large as JSON; one line per item keeps every ref") : [];
11396
11568
  }, "largeAnswerSteps");
11397
11569
 
11398
- // 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
11570
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
11399
11571
  var HIDDEN = /* @__PURE__ */ new Set(["providerRef", "provider_ref"]);
11400
11572
  var withoutProviderRefs = /* @__PURE__ */ __name((value) => strip(value), "withoutProviderRefs");
11401
11573
  var strip = /* @__PURE__ */ __name((value) => {
@@ -11409,7 +11581,7 @@ var strip = /* @__PURE__ */ __name((value) => {
11409
11581
  return Object.fromEntries(Object.entries(value).flatMap(([key, inner]) => HIDDEN.has(key) ? [] : [[key, strip(inner)]]));
11410
11582
  }, "strip");
11411
11583
 
11412
- // 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
11584
+ // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/envelope.js
11413
11585
  var answerSchema = /* @__PURE__ */ __name((item = unknown()) => union([listEnvelopeSchema(item), itemEnvelopeSchema(item)]), "answerSchema");
11414
11586
  var capped2 = /* @__PURE__ */ __name((steps) => steps.length > 0 ? { next: steps.slice(0, MAX_NEXT_STEPS) } : {}, "capped");
11415
11587
  var listOf = /* @__PURE__ */ __name((command, input) => {
@@ -11579,6 +11751,7 @@ export {
11579
11751
  progressOf,
11580
11752
  envName,
11581
11753
  readOnlyLockOf,
11754
+ mailHolderVariable,
11582
11755
  MESSENGER_CHANGE_REFUSAL,
11583
11756
  readOnlyRefusal,
11584
11757
  logAttributes,
@@ -11592,6 +11765,7 @@ export {
11592
11765
  readEvents,
11593
11766
  currentRun,
11594
11767
  inRun,
11768
+ runEvent,
11595
11769
  typedCommand,
11596
11770
  useAsProcessRun,
11597
11771
  processRun,
@@ -11599,6 +11773,7 @@ export {
11599
11773
  traceOf,
11600
11774
  childTrace,
11601
11775
  withAttempt,
11776
+ currentAttempt,
11602
11777
  recordLogFor,
11603
11778
  spawnDetached,
11604
11779
  jobsDir,
@@ -11670,6 +11845,9 @@ export {
11670
11845
  meaningFloor,
11671
11846
  historyWindow,
11672
11847
  limitBatch,
11848
+ botFiles,
11849
+ ChatRegistry,
11850
+ registryProfiles,
11673
11851
  REPAIR_WORDS,
11674
11852
  repairConfigText,
11675
11853
  permissionIssues,
@@ -11706,6 +11884,7 @@ export {
11706
11884
  isLogin,
11707
11885
  destroysNothing,
11708
11886
  proposesOnly,
11887
+ admittedUnderLock,
11709
11888
  changesStore,
11710
11889
  readsOverMcpAt,
11711
11890
  isStoreChange,