@wirecat/drive-cli 0.59.0 → 0.60.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 (156) hide show
  1. package/dist/bin/drive.js +2 -2
  2. package/dist/bin/drive.js.map +1 -1
  3. package/dist/bundle/{all-profiles-CVISDGMF.js → all-profiles-537I27Z4.js} +11 -11
  4. package/dist/bundle/{anthropic-WLNQC23G.js → anthropic-X4NWVHDF.js} +7 -7
  5. package/dist/bundle/{app-server-P2VOONXF.js → app-server-KSHJKKS7.js} +47 -47
  6. package/dist/bundle/{bun-CDFBNTKV.js → bun-WTBGGCUC.js} +2 -2
  7. package/dist/bundle/{bun-sqlite-MNZICITP.js → bun-sqlite-T7Y3JFFD.js} +6 -6
  8. package/dist/bundle/{chunk-YV4ABH6J.js → chunk-22ATLSNK.js} +3 -3
  9. package/dist/bundle/{chunk-CBM2XAEZ.js → chunk-246P2DCT.js} +3 -3
  10. package/dist/bundle/{chunk-H2BKXPBL.js → chunk-3TQHIHZI.js} +2 -2
  11. package/dist/bundle/{chunk-IGF6EXBR.js → chunk-4CBZEAQ7.js} +32 -32
  12. package/dist/bundle/{chunk-L5SE2XZP.js → chunk-4VHBDVY2.js} +1 -1
  13. package/dist/bundle/{chunk-IIP43FQJ.js → chunk-4XZXH2NM.js} +1 -1
  14. package/dist/bundle/{chunk-UWVNRPT7.js → chunk-57QVQGBE.js} +21 -21
  15. package/dist/bundle/{chunk-A6SLYOP2.js → chunk-5AMRCBMP.js} +67 -34
  16. package/dist/bundle/{chunk-ZSMCJKGP.js → chunk-5XHLQZAG.js} +27 -26
  17. package/dist/bundle/{chunk-YADXWQHV.js → chunk-67QXMO2G.js} +25 -25
  18. package/dist/bundle/{chunk-36B7AIGP.js → chunk-6HTKB4WC.js} +1 -1
  19. package/dist/bundle/{chunk-5C7K6XIT.js → chunk-73MNUSP3.js} +1 -1
  20. package/dist/bundle/{chunk-3KNZADHJ.js → chunk-73TTP6ET.js} +431 -187
  21. package/dist/bundle/{chunk-IBZ3IBO4.js → chunk-77C5XRH3.js} +5 -5
  22. package/dist/bundle/{chunk-PGKIOSN3.js → chunk-77YTRBL6.js} +10 -10
  23. package/dist/bundle/{chunk-TI55J3BA.js → chunk-ALWTUDZF.js} +3 -3
  24. package/dist/bundle/{chunk-HWLLVLAB.js → chunk-AXWXQNTC.js} +13 -10
  25. package/dist/bundle/{chunk-P7WPYKSB.js → chunk-CKGHRWVR.js} +2 -2
  26. package/dist/bundle/{chunk-JW2CVCUH.js → chunk-D6WIWOQC.js} +3 -3
  27. package/dist/bundle/{chunk-A6EG7ZDS.js → chunk-DMHGWL5D.js} +12 -12
  28. package/dist/bundle/{chunk-FICVPYE4.js → chunk-DQDKLZAK.js} +47 -47
  29. package/dist/bundle/{chunk-JSDVK3JA.js → chunk-EHAI773E.js} +1 -1
  30. package/dist/bundle/{chunk-UQPKAY6I.js → chunk-FO4TCH6P.js} +1 -1
  31. package/dist/bundle/{chunk-GJ4ZCIOP.js → chunk-FTZNUZO7.js} +3 -3
  32. package/dist/bundle/{chunk-6C6255U6.js → chunk-FZOCQQ66.js} +11 -11
  33. package/dist/bundle/{chunk-EHEZSV6I.js → chunk-GD6TQ6U4.js} +8 -8
  34. package/dist/bundle/{chunk-XCOCPXCM.js → chunk-GVRS5AIH.js} +2 -2
  35. package/dist/bundle/{chunk-DI5Z4SH5.js → chunk-HCJG7ENG.js} +2 -2
  36. package/dist/bundle/{chunk-AD62XJKO.js → chunk-HFGR33KD.js} +24 -24
  37. package/dist/bundle/{chunk-K4LXGZTE.js → chunk-HQVIK6PM.js} +36 -18
  38. package/dist/bundle/{chunk-YU3PTU3D.js → chunk-IRZ7OF3F.js} +1 -1
  39. package/dist/bundle/{chunk-LJ7E4HLQ.js → chunk-IXN7Y6JA.js} +1 -1
  40. package/dist/bundle/{chunk-7QTVIZII.js → chunk-JGUJJNGZ.js} +790 -325
  41. package/dist/bundle/{chunk-FVQCM7IQ.js → chunk-JQLIM6BH.js} +4 -4
  42. package/dist/bundle/{chunk-BSGOM3BD.js → chunk-K6XVRA6U.js} +1 -1
  43. package/dist/bundle/{chunk-3VSUT6BD.js → chunk-KEXTTZJM.js} +2 -2
  44. package/dist/bundle/{chunk-V36RIXFA.js → chunk-LJ77Y3TK.js} +1 -1
  45. package/dist/bundle/{chunk-II7LST64.js → chunk-LQSRVQ3V.js} +3 -2
  46. package/dist/bundle/{chunk-OKXSTWKW.js → chunk-MVNPE5FZ.js} +7 -7
  47. package/dist/bundle/{chunk-M6I2SQN7.js → chunk-MXP35VPO.js} +2 -2
  48. package/dist/bundle/{chunk-TJXPJ3A5.js → chunk-N7S2UPF3.js} +135 -60
  49. package/dist/bundle/{chunk-3KJTJDDT.js → chunk-O37ESNAP.js} +17 -17
  50. package/dist/bundle/{chunk-EVETU3TF.js → chunk-OMKUBCNN.js} +7 -7
  51. package/dist/bundle/{chunk-MUUHUHWC.js → chunk-OYNUBWD2.js} +1 -22
  52. package/dist/bundle/{chunk-PAEVBAM3.js → chunk-PDYHEWKG.js} +4 -4
  53. package/dist/bundle/{chunk-EORMZCVF.js → chunk-PETFPXLU.js} +2 -2
  54. package/dist/bundle/{chunk-GI5JBGXH.js → chunk-PPL5ASW2.js} +613 -372
  55. package/dist/bundle/{chunk-B5GBJ35N.js → chunk-QIJWSKZL.js} +2 -2
  56. package/dist/bundle/{chunk-OZH4ALTI.js → chunk-S36HRPNS.js} +1 -1
  57. package/dist/bundle/{chunk-KFZUODXB.js → chunk-SBHSNOU4.js} +34 -18
  58. package/dist/bundle/{chunk-F3FOL42A.js → chunk-SZXI4OXX.js} +1 -1
  59. package/dist/bundle/{chunk-3U22QTU6.js → chunk-TKW4QWCY.js} +12 -0
  60. package/dist/bundle/{chunk-6CQO2FIN.js → chunk-TVQDMP2F.js} +391 -282
  61. package/dist/bundle/{chunk-GT5KTGCN.js → chunk-TXMTMEHW.js} +4 -4
  62. package/dist/bundle/{chunk-IADOBOKB.js → chunk-UNJE63JK.js} +1 -1
  63. package/dist/bundle/{chunk-HIOJRPCT.js → chunk-UTFATA4K.js} +1 -1
  64. package/dist/bundle/{chunk-LPHMAQJQ.js → chunk-UVLSWLPZ.js} +15 -15
  65. package/dist/bundle/{chunk-KPRGTTJH.js → chunk-UVYVIHEA.js} +1 -1
  66. package/dist/bundle/{chunk-MKCNUI72.js → chunk-V2VMBM7O.js} +1 -1
  67. package/dist/bundle/{chunk-QTM7USFA.js → chunk-V7QMHMR3.js} +5 -5
  68. package/dist/bundle/{chunk-TFH5X46A.js → chunk-VRW6ZDTH.js} +18 -18
  69. package/dist/bundle/{chunk-OMMEQJOB.js → chunk-XDIEQ2CE.js} +2 -2
  70. package/dist/bundle/{chunk-MEAPA4EZ.js → chunk-XFXRGQXJ.js} +2 -2
  71. package/dist/bundle/{chunk-HMZAMHKN.js → chunk-YDN2RH5S.js} +1 -1
  72. package/dist/bundle/{chunk-P3ZTW2ZM.js → chunk-YGG7UA3C.js} +4 -4
  73. package/dist/bundle/{chunk-VT6GZAF4.js → chunk-YYHKVOVK.js} +4 -4
  74. package/dist/bundle/{chunk-V42KAPU3.js → chunk-ZPQS7XJA.js} +3 -3
  75. package/dist/bundle/command-contract-NUIWUVYB.js +39 -0
  76. package/dist/bundle/{decode-XTOMXMGN.js → decode-35N57AFW.js} +6 -6
  77. package/dist/bundle/{dispatch-T6TW2JJB.js → dispatch-CWXZW3PL.js} +1 -1
  78. package/dist/bundle/drive.js +10 -10
  79. package/dist/bundle/{echarts-RKKIOYVV.js → echarts-3P3QZWMU.js} +2 -2
  80. package/dist/bundle/{embed-STHKKA6G.js → embed-Q6Q5IOJQ.js} +7 -7
  81. package/dist/bundle/{embedder-3XZEWHRO.js → embedder-D44JDTAA.js} +10 -10
  82. package/dist/bundle/{entry-CNOYSSSD.js → entry-ZHCNI7XO.js} +9 -9
  83. package/dist/bundle/{failure-DNQYXP2T.js → failure-GRMMSDCZ.js} +2 -2
  84. package/dist/bundle/{first-run-F2SI24PK.js → first-run-3DC2SDWM.js} +10 -10
  85. package/dist/bundle/first-screen-YJF4YODC.js +37 -0
  86. package/dist/bundle/{google-BYNSAIQI.js → google-6ZZDKFBN.js} +10 -10
  87. package/dist/bundle/{google-api-4VTZH7OP.js → google-api-E6MOJ4ZD.js} +52 -52
  88. package/dist/bundle/grants-GWXDH5GM.js +105 -0
  89. package/dist/bundle/{identity-ARDPFYV5.js → identity-TID7S5NE.js} +4 -4
  90. package/dist/bundle/{instructions-N3OH5X2Y.js → instructions-ANJN4HV3.js} +1 -1
  91. package/dist/bundle/{login-4VQEC7VI.js → login-BGMK2ABH.js} +59 -61
  92. package/dist/bundle/{node-YU5JBNAA.js → node-VOB45ES2.js} +2 -2
  93. package/dist/bundle/{node-sqlite-3C6PSBIW.js → node-sqlite-TSX6XQY2.js} +7 -7
  94. package/dist/bundle/{oauth-D6NJFPYU.js → oauth-CEOYXW6C.js} +8 -8
  95. package/dist/bundle/{open-M2V2VYXO.js → open-3USWHGNR.js} +6 -6
  96. package/dist/bundle/{openai-ST2IWNUX.js → openai-YZ5VGPIP.js} +14 -14
  97. package/dist/bundle/{process-PYNNBBTV.js → process-44JS2W7L.js} +1 -1
  98. package/dist/bundle/{program-Q4VWV2MR.js → program-TZLAFKJV.js} +99 -82
  99. package/dist/bundle/{prompt-MFIOJMAF.js → prompt-SG7LAOXW.js} +6 -6
  100. package/dist/bundle/{reasons-LOQ5J73F.js → reasons-ZK3U3CIN.js} +3 -3
  101. package/dist/bundle/{recognize-FBLMWXNE.js → recognize-OFW7HWTM.js} +5 -5
  102. package/dist/bundle/{remote-XC3OXE4T.js → remote-YBDRZQZ5.js} +8 -8
  103. package/dist/bundle/{rerank-2XMKKF4S.js → rerank-TQQNS5FJ.js} +8 -8
  104. package/dist/bundle/{serve-Q2BQHNZB.js → serve-OPZXMVLH.js} +10 -10
  105. package/dist/bundle/{server-42HPV3AH.js → server-2D6DDIK5.js} +39 -39
  106. package/dist/bundle/server-R6G2O772.js +70 -0
  107. package/dist/bundle/{services-WU22S2MU.js → services-34WKT3NN.js} +29 -27
  108. package/dist/bundle/{sqlite-runtime-CSO6K6B2.js → sqlite-runtime-WPUMKLUV.js} +7 -7
  109. package/dist/bundle/{start-TZWKM4AH.js → start-ZXUJZ4JV.js} +1 -1
  110. package/dist/bundle/{state-FLUT7U7R.js → state-AV2RB3AQ.js} +7 -7
  111. package/dist/bundle/{store-TG6622NG.js → store-3M7N2Q5T.js} +15 -15
  112. package/dist/bundle/{store-HDWMJ44E.js → store-YKV4GAMS.js} +25 -19
  113. package/dist/bundle/store-maintenance-command-WDXNY4ZF.js +60 -0
  114. package/dist/bundle/tokens-F63RXXEF.js +103 -0
  115. package/dist/commands/config.d.ts.map +1 -1
  116. package/dist/commands/config.js +14 -5
  117. package/dist/commands/config.js.map +1 -1
  118. package/dist/commands/context.d.ts +4 -2
  119. package/dist/commands/context.d.ts.map +1 -1
  120. package/dist/commands/context.js.map +1 -1
  121. package/dist/commands/session.d.ts.map +1 -1
  122. package/dist/commands/session.js +5 -2
  123. package/dist/commands/session.js.map +1 -1
  124. package/dist/config.d.ts +7 -0
  125. package/dist/config.d.ts.map +1 -1
  126. package/dist/config.js +22 -3
  127. package/dist/config.js.map +1 -1
  128. package/dist/errors.js +4 -4
  129. package/dist/errors.js.map +1 -1
  130. package/dist/login.d.ts.map +1 -1
  131. package/dist/login.js +3 -5
  132. package/dist/login.js.map +1 -1
  133. package/dist/program.d.ts.map +1 -1
  134. package/dist/program.js +5 -1
  135. package/dist/program.js.map +1 -1
  136. package/dist/reasons.d.ts +1 -1
  137. package/dist/reasons.d.ts.map +1 -1
  138. package/dist/reasons.js +1 -22
  139. package/dist/reasons.js.map +1 -1
  140. package/dist/registry.d.ts +1 -1
  141. package/dist/registry.d.ts.map +1 -1
  142. package/dist/registry.js +2 -1
  143. package/dist/registry.js.map +1 -1
  144. package/dist/tokens.js +5 -5
  145. package/dist/tokens.js.map +1 -1
  146. package/dist/upload.js +1 -1
  147. package/dist/upload.js.map +1 -1
  148. package/dist/version.d.ts +1 -1
  149. package/dist/version.js +1 -1
  150. package/package.json +2 -2
  151. package/dist/bundle/command-contract-LQDNHZJU.js +0 -39
  152. package/dist/bundle/first-screen-TYYF6VXY.js +0 -37
  153. package/dist/bundle/grants-EUQXSICG.js +0 -105
  154. package/dist/bundle/server-EWZYN323.js +0 -70
  155. package/dist/bundle/store-maintenance-command-RHWRUREJ.js +0 -60
  156. package/dist/bundle/tokens-TXYURU4S.js +0 -103
@@ -9,18 +9,18 @@ import {
9
9
  providerErrorKey,
10
10
  renderEvent,
11
11
  runContextOf
12
- } from "./chunk-EHEZSV6I.js";
12
+ } from "./chunk-GD6TQ6U4.js";
13
13
  import {
14
14
  permissionCeiling
15
- } from "./chunk-JW2CVCUH.js";
15
+ } from "./chunk-D6WIWOQC.js";
16
16
  import {
17
17
  envName,
18
18
  readOnlyLockOf,
19
19
  readOnlyRefusal
20
- } from "./chunk-IIP43FQJ.js";
20
+ } from "./chunk-4XZXH2NM.js";
21
21
  import {
22
22
  carries
23
- } from "./chunk-5C7K6XIT.js";
23
+ } from "./chunk-73MNUSP3.js";
24
24
  import {
25
25
  CEILING_KEY,
26
26
  COMMAND_PATH_KEY,
@@ -62,10 +62,10 @@ import {
62
62
  typedCommand,
63
63
  useAsProcessRun,
64
64
  withWriteScope
65
- } from "./chunk-AD62XJKO.js";
65
+ } from "./chunk-HFGR33KD.js";
66
66
  import {
67
67
  isCliFailure
68
- } from "./chunk-HMZAMHKN.js";
68
+ } from "./chunk-YDN2RH5S.js";
69
69
  import {
70
70
  author,
71
71
  count,
@@ -79,7 +79,7 @@ import {
79
79
  text,
80
80
  time,
81
81
  untrusted
82
- } from "./chunk-VT6GZAF4.js";
82
+ } from "./chunk-YYHKVOVK.js";
83
83
  import {
84
84
  FACT_STATUSES,
85
85
  FACT_TYPES,
@@ -99,6 +99,7 @@ import {
99
99
  WORK_TASK_TYPES,
100
100
  event,
101
101
  meeting,
102
+ meetingCounts,
102
103
  meetingDetails,
103
104
  meetingHit,
104
105
  meetingLink,
@@ -110,18 +111,18 @@ import {
110
111
  meetingStats,
111
112
  meetingSummary,
112
113
  meetingTranscript
113
- } from "./chunk-TJXPJ3A5.js";
114
+ } from "./chunk-N7S2UPF3.js";
114
115
  import {
115
116
  FIELD_TYPES,
116
117
  QUERY_BACKENDS,
117
118
  describeQuery
118
- } from "./chunk-L5SE2XZP.js";
119
+ } from "./chunk-4VHBDVY2.js";
119
120
  import {
120
121
  sharedConfigPath
121
- } from "./chunk-IBZ3IBO4.js";
122
+ } from "./chunk-77C5XRH3.js";
122
123
  import {
123
124
  storePath
124
- } from "./chunk-3VSUT6BD.js";
125
+ } from "./chunk-KEXTTZJM.js";
125
126
  import {
126
127
  configFilePath,
127
128
  createRecordLog,
@@ -132,19 +133,19 @@ import {
132
133
  resolvePaths,
133
134
  saveConfigFile,
134
135
  writeSecurely
135
- } from "./chunk-CBM2XAEZ.js";
136
+ } from "./chunk-246P2DCT.js";
136
137
  import {
137
138
  EXIT_CODES,
138
139
  GENERIC_FAILURE,
139
140
  exitCodeOfAnswer
140
- } from "./chunk-V36RIXFA.js";
141
+ } from "./chunk-LJ77Y3TK.js";
141
142
  import {
142
143
  singleLine,
143
144
  visibleControls
144
145
  } from "./chunk-HIP43OGZ.js";
145
146
  import {
146
147
  defineLogEvents
147
- } from "./chunk-UQPKAY6I.js";
148
+ } from "./chunk-FO4TCH6P.js";
148
149
  import {
149
150
  COMPACT_FLAG,
150
151
  MAX_NEXT_STEPS,
@@ -195,7 +196,7 @@ import {
195
196
  unwrap,
196
197
  variant,
197
198
  writes
198
- } from "./chunk-3U22QTU6.js";
199
+ } from "./chunk-TKW4QWCY.js";
199
200
  import {
200
201
  CliError
201
202
  } from "./chunk-EBLA7GXY.js";
@@ -4007,7 +4008,7 @@ var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
4007
4008
  }
4008
4009
  }, "refuseJoinedPath");
4009
4010
 
4010
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/cli/result-fields.js
4011
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/cli/result-fields.js
4011
4012
  var named = /* @__PURE__ */ __name((work) => {
4012
4013
  try {
4013
4014
  return work();
@@ -4034,7 +4035,7 @@ var projectFields2 = /* @__PURE__ */ __name((value, fields) => named(() => {
4034
4035
  return projectFields(value, fields);
4035
4036
  }), "projectFields");
4036
4037
 
4037
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/cli/execution.js
4038
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/cli/execution.js
4038
4039
  var DEFAULT_COMMAND_MS = 3e4;
4039
4040
  var DEFAULT_COOPERATIVE_MS = 5 * 6e4;
4040
4041
  var DEFAULT_SYNC_MS = 15 * 6e4;
@@ -4140,6 +4141,7 @@ var execution = /* @__PURE__ */ __name((streams, { timeoutMs, fields, maxOutputB
4140
4141
  reason: "output.too-large",
4141
4142
  max_bytes: maxOutputBytes,
4142
4143
  emitted_bytes: bytes,
4144
+ needed_bytes: bytes + size,
4143
4145
  partial_output: bytes > 0
4144
4146
  });
4145
4147
  bytes += size;
@@ -4216,7 +4218,7 @@ var withAbort = /* @__PURE__ */ __name(async (signal, body) => {
4216
4218
  }
4217
4219
  }, "withAbort");
4218
4220
 
4219
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/cli/profile.js
4221
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/cli/profile.js
4220
4222
  var asFirstWord = /* @__PURE__ */ __name((profile) => `${profile} `, "asFirstWord");
4221
4223
  var PLAIN_NAME = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
4222
4224
  var isProfileName = /* @__PURE__ */ __name((word) => PLAIN_NAME.test(word), "isProfileName");
@@ -4285,7 +4287,7 @@ var sampleCommand = /* @__PURE__ */ __name((commands) => {
4285
4287
  return void 0;
4286
4288
  }, "sampleCommand");
4287
4289
 
4288
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/cli/messenger/accounts.js
4290
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/cli/messenger/accounts.js
4289
4291
  import { existsSync, readdirSync, readFileSync } from "node:fs";
4290
4292
  import { join } from "node:path";
4291
4293
  var accountFileFor = /* @__PURE__ */ __name((app, profile, env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "accounts", `${profile}.json`), "accountFileFor");
@@ -4307,7 +4309,7 @@ var profilesWithAccounts = /* @__PURE__ */ __name((app, env) => {
4307
4309
  }, "profilesWithAccounts");
4308
4310
  var profilesHere = /* @__PURE__ */ __name((app, configured, env) => [.../* @__PURE__ */ new Set([...configured, ...profilesWithAccounts(app, env)])].sort(), "profilesHere");
4309
4311
 
4310
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/output-detail.js
4312
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/output-detail.js
4311
4313
  var RARELY_SET = ["editedAt", "replyTo", "forwardedFrom", "reactions"];
4312
4314
  var BRIEF = ["locator", "chatTitle", "timestamp", "senderName", "excerpt", "score"];
4313
4315
  var SNAKE_BRIEF = ["ref", "chat_title", "timestamp", "sender_name", "excerpt", "score"];
@@ -4343,7 +4345,7 @@ var atDetail = /* @__PURE__ */ __name((value, detail = "default") => {
4343
4345
  return value;
4344
4346
  }, "atDetail");
4345
4347
 
4346
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/output.js
4348
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/output.js
4347
4349
  var refuseCompact = /* @__PURE__ */ __name(({ json, jsonl, fields, hitDetail }) => {
4348
4350
  const other = jsonl ? "--jsonl" : fields !== void 0 ? "--json=\u2026" : json ? "--json" : hitDetail === "brief" ? "--brief" : "";
4349
4351
  if (other)
@@ -4407,7 +4409,7 @@ var silence = /* @__PURE__ */ __name((renderer) => ({
4407
4409
  }, "warn")
4408
4410
  }), "silence");
4409
4411
 
4410
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/runs/log-events.js
4412
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/runs/log-events.js
4411
4413
  var CORE_LOG_EVENTS = defineLogEvents([
4412
4414
  { id: "provider.request", meaning: "a request went to the messenger", keys: ["operation"] },
4413
4415
  { id: "provider.response", meaning: "the messenger answered the request, or it failed", keys: ["operation"] },
@@ -4441,7 +4443,7 @@ var DIAGNOSTIC_LOG_EVENTS = {
4441
4443
  cache: "cache.answered"
4442
4444
  };
4443
4445
 
4444
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/runs/recording.js
4446
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/runs/recording.js
4445
4447
  var recorded = /* @__PURE__ */ __name(async (options, body) => {
4446
4448
  const recording = startRecording(options);
4447
4449
  try {
@@ -4626,9 +4628,9 @@ var partialOutcome = /* @__PURE__ */ __name((answer) => {
4626
4628
  return void 0;
4627
4629
  }, "partialOutcome");
4628
4630
 
4629
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/cli/deadline.js
4630
- var withDeadline = /* @__PURE__ */ __name(async (ms, closeables, body) => {
4631
- if (ms === void 0)
4631
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/cli/deadline.js
4632
+ var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
4633
+ if (ms2 === void 0)
4632
4634
  return body();
4633
4635
  let timer2;
4634
4636
  let timedOut;
@@ -4637,10 +4639,10 @@ var withDeadline = /* @__PURE__ */ __name(async (ms, closeables, body) => {
4637
4639
  timer2 = setTimeout(() => {
4638
4640
  const pending = [...writes2];
4639
4641
  const cut2 = pending.filter((write) => !write.preparing);
4640
- 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`);
4642
+ 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`);
4641
4643
  stopWrites(writes2, timedOut);
4642
4644
  void Promise.allSettled(closeables.map((closeable) => closeable.close())).then(() => reject(timedOut));
4643
- }, ms);
4645
+ }, ms2);
4644
4646
  });
4645
4647
  try {
4646
4648
  return await Promise.race([withWriteScope(writes2, body), expired]);
@@ -4652,10 +4654,10 @@ var withDeadline = /* @__PURE__ */ __name(async (ms, closeables, body) => {
4652
4654
  }
4653
4655
  }, "withDeadline");
4654
4656
 
4655
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/cli/settings.js
4657
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/cli/settings.js
4656
4658
  import { existsSync as existsSync3 } from "node:fs";
4657
4659
 
4658
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/models/endpoint.js
4660
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/models/endpoint.js
4659
4661
  var endpoint = /* @__PURE__ */ __name((value) => {
4660
4662
  try {
4661
4663
  const url2 = new URL(value);
@@ -4665,7 +4667,7 @@ var endpoint = /* @__PURE__ */ __name((value) => {
4665
4667
  }
4666
4668
  }, "endpoint");
4667
4669
 
4668
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/models/settings.js
4670
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/models/settings.js
4669
4671
  var MODEL_FIELDS = ["provider", "model", "base_url"];
4670
4672
  var modelSettingsShape = record(pipe(string(), regex(/^[a-z][a-z0-9-]*$/)), strictObject({
4671
4673
  provider: optional(picklist(["off", "openai", "anthropic"])),
@@ -4734,7 +4736,7 @@ var modelTarget = /* @__PURE__ */ __name((settings, purpose) => {
4734
4736
  };
4735
4737
  }, "modelTarget");
4736
4738
 
4737
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/analysis/settings.js
4739
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/analysis/settings.js
4738
4740
  var model = pipe(string(), trim(), minLength(1), maxLength(200));
4739
4741
  var url = pipe(string(), check(endpoint, "use an HTTP/S endpoint without credentials, query or fragment"));
4740
4742
  var AI_FIELDS = {
@@ -4778,10 +4780,10 @@ var resolveAISettings = /* @__PURE__ */ __name((prefix, layers, env) => {
4778
4780
  };
4779
4781
  }, "resolveAISettings");
4780
4782
 
4781
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
4783
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
4782
4784
  import { readFileSync as readFileSync2 } from "node:fs";
4783
4785
 
4784
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/cli/config-repair.js
4786
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/cli/config-repair.js
4785
4787
  var REPAIR_WORDS = {
4786
4788
  byte_order_mark: "an invisible byte-order mark at the start",
4787
4789
  comment: "a comment, which JSON does not allow",
@@ -5022,7 +5024,7 @@ ${parts.join(",\n")}
5022
5024
  ${indent}${close}`;
5023
5025
  }, "serialise");
5024
5026
 
5025
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
5027
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
5026
5028
  var isNode = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
5027
5029
  var SECTIONS = ["personal", "bot"];
5028
5030
  var SHELL_SAFE = /^[A-Za-z0-9_.:@-]*$/;
@@ -5276,11 +5278,11 @@ var issueMessage = /* @__PURE__ */ __name((issues, doctor = "doctor") => {
5276
5278
  const more = issues.length - 1;
5277
5279
  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)`);
5278
5280
  }, "issueMessage");
5279
- var checkConfigText = /* @__PURE__ */ __name((text5, { file, tool, schema: schema2, knownPermissions }) => {
5281
+ var checkConfigText = /* @__PURE__ */ __name((text5, { file, tool, schema: schema2, knownPermissions, repair = true }) => {
5280
5282
  const parsed = parseConfigText(text5, file);
5281
5283
  if ("issue" in parsed) {
5282
5284
  const issue = publicIssue(parsed.issue);
5283
- if (repairConfigText(text5).state === "repaired")
5285
+ if (repair && repairConfigText(text5).state === "repaired")
5284
5286
  issue.fix = `${tool} config repair`;
5285
5287
  return { issues: [issue], config: void 0 };
5286
5288
  }
@@ -5316,7 +5318,7 @@ var readConfigFile = /* @__PURE__ */ __name((path2) => {
5316
5318
  return "issue" in parsed ? { issue: publicIssue(parsed.issue) } : parsed;
5317
5319
  }, "readConfigFile");
5318
5320
 
5319
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/cli/default-config.js
5321
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/cli/default-config.js
5320
5322
  import { existsSync as existsSync2, linkSync, mkdirSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";
5321
5323
  import { dirname, join as join2 } from "node:path";
5322
5324
  var DEFAULT_CONFIG = {
@@ -5345,7 +5347,40 @@ function ensureDefaultConfig(path2, config = DEFAULT_CONFIG) {
5345
5347
  }
5346
5348
  __name(ensureDefaultConfig, "ensureDefaultConfig");
5347
5349
 
5348
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/cli/settings.js
5350
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/cli/setting-defaults.js
5351
+ var isNode2 = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
5352
+ var parentOf = /* @__PURE__ */ __name((config, key) => {
5353
+ const path2 = key.split(".");
5354
+ const leaf = path2.pop();
5355
+ return { node: path2.reduce((node, part) => isNode2(node) ? node[part] : void 0, config), leaf };
5356
+ }, "parentOf");
5357
+ var withSettingDefaults = /* @__PURE__ */ __name((raw, declared) => {
5358
+ if (raw !== void 0 && !isNode2(raw))
5359
+ return { config: raw, added: [] };
5360
+ const config = raw === void 0 ? {} : structuredClone(raw);
5361
+ const added = [];
5362
+ for (const setting2 of declared) {
5363
+ const { node, leaf } = parentOf(config, setting2.key);
5364
+ if (!isNode2(node) || Object.hasOwn(node, leaf))
5365
+ continue;
5366
+ node[leaf] = setting2.default;
5367
+ added.push(setting2.key);
5368
+ }
5369
+ return { config, added };
5370
+ }, "withSettingDefaults");
5371
+ var settingRows = /* @__PURE__ */ __name((raw, declared) => declared.map((setting2) => {
5372
+ const { node, leaf } = isNode2(raw) ? parentOf(raw, setting2.key) : { node: void 0, leaf: "" };
5373
+ const written = isNode2(node) && Object.hasOwn(node, leaf);
5374
+ return {
5375
+ setting: setting2.key,
5376
+ value: written ? node[leaf] : setting2.default,
5377
+ default: setting2.default,
5378
+ from: written ? "config file" : "default",
5379
+ description: setting2.description
5380
+ };
5381
+ }), "settingRows");
5382
+
5383
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/cli/settings.js
5349
5384
  var DEFAULT_LIMIT = DEFAULT_CONFIG.defaults.limit;
5350
5385
  var DEFAULT_KEEP_RUNS_FOR_DAYS = DEFAULT_CONFIG.defaults.keep_runs_for_days;
5351
5386
  var DEFAULT_SENDS_PER_HOUR = DEFAULT_CONFIG.defaults.sends_per_hour;
@@ -5409,12 +5444,73 @@ var MESSENGER_ONLY_SETTINGS = [
5409
5444
  "history_dialog_days",
5410
5445
  "history_group_days",
5411
5446
  "history_group_members_max",
5412
- "read_other_bots"
5447
+ "read_other_bots",
5448
+ "speech_model",
5449
+ "picture_search"
5413
5450
  ];
5414
5451
  var SHARED_DEFAULTS_ONLY = {
5415
5452
  update_check: optional(flag),
5416
5453
  skill_hint: optional(flag)
5417
5454
  };
5455
+ var SHARED_SETTINGS = [
5456
+ { key: "limit", default: DEFAULT_LIMIT, description: "how many items a list shows at once" },
5457
+ { key: "keep_runs_for_days", default: DEFAULT_KEEP_RUNS_FOR_DAYS, description: "days a run is kept" },
5458
+ {
5459
+ key: "sends_per_hour",
5460
+ default: DEFAULT_SENDS_PER_HOUR,
5461
+ description: "the most messages an account sends in an hour; a bot has none unless its section sets one"
5462
+ },
5463
+ { key: "update_check", default: true, description: "check once a day for a newer version" },
5464
+ {
5465
+ key: "skill_hint",
5466
+ default: true,
5467
+ description: "tell an agent once a day that `skill install` would give it this tool's guide"
5468
+ },
5469
+ { key: "record", default: true, description: "keep every run in runs list; false keeps failed runs only" },
5470
+ {
5471
+ key: "record_input",
5472
+ default: true,
5473
+ description: `keep what was typed in a run's command line: true, false, or "failed" for failed runs only`
5474
+ },
5475
+ {
5476
+ key: "keep_successful_runs_for_days",
5477
+ default: KEEP_SUCCESSFUL_RUNS_FOR_DAYS,
5478
+ description: "days a successful run is kept"
5479
+ },
5480
+ { key: "runs_size_limit_mb", default: RUNS_SIZE_LIMIT_MB, description: "the most megabytes all runs may take" },
5481
+ { key: "sender_colors", default: false, description: "color each sender's name in a conversation" },
5482
+ { key: "search_catch_up", default: false, description: "prepare local search after a gaps repair" },
5483
+ {
5484
+ key: "history_dialog_days",
5485
+ default: DEFAULT_HISTORY_LIMITS.dialogDays,
5486
+ description: "days of a one-to-one chat's pushed history the store keeps"
5487
+ },
5488
+ {
5489
+ key: "history_group_days",
5490
+ default: DEFAULT_HISTORY_LIMITS.groupDays,
5491
+ description: "days of a group's pushed history the store keeps"
5492
+ },
5493
+ {
5494
+ key: "history_group_members_max",
5495
+ default: DEFAULT_HISTORY_LIMITS.groupMembersMax,
5496
+ description: "a group with more people than this keeps no pushed history"
5497
+ },
5498
+ {
5499
+ key: "picture_search",
5500
+ default: false,
5501
+ description: "search and images embed read the pictures themselves, with a model on this computer"
5502
+ },
5503
+ {
5504
+ key: "search_reranker",
5505
+ default: DEFAULT_RERANK_MODEL,
5506
+ description: "the reranker that orders search's first hits, or off"
5507
+ },
5508
+ {
5509
+ key: "embedding_provider",
5510
+ default: AI_DEFAULTS.embeddingProvider,
5511
+ description: "local or openai: what turns text into vectors for search by meaning"
5512
+ }
5513
+ ];
5418
5514
  var NONE_NAMED = "none named";
5419
5515
  var NO_PROFILE = "default";
5420
5516
  var namedProfile = /* @__PURE__ */ __name((settings) => settings.sources?.profile === NONE_NAMED ? void 0 : settings.profile, "namedProfile");
@@ -5467,12 +5563,14 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
5467
5563
  const defaultsOnlyKeys = Object.keys(defaultsOnly);
5468
5564
  const botOnlyKeys = Object.keys(BOT_ONLY_ENTRIES);
5469
5565
  const allSettings = [...Object.keys(profileEntries), ...botOnlyKeys, ...defaultsOnlyKeys].filter((setting2) => app.messenger !== false || !MESSENGER_ONLY_SETTINGS.includes(setting2) || app.sends === true && setting2 === "sends_per_hour");
5566
+ const readSchema = extension.schema ?? schema2;
5567
+ const declaredSettings = [...SHARED_SETTINGS, ...extension.settings ?? []].filter(({ key, default: value }) => allSettings.includes(key) && safeParse(readSchema, { defaults: { [key]: value } }).success).map((setting2) => ({ ...setting2, key: `defaults.${setting2.key}` }));
5568
+ const withDefaults = /* @__PURE__ */ __name((raw, except = []) => withSettingDefaults(isScope(raw) && !Object.hasOwn(raw, "defaults") ? { ...raw, defaults: {} } : raw, declaredSettings.filter(({ key }) => !except.includes(key))), "withDefaults");
5470
5569
  const PROFILE = envName(app, "PROFILE");
5471
5570
  const PROFILE_LOCK = envName(app, "PROFILE_LOCK");
5472
5571
  const TIMEOUT = envName(app, "TIMEOUT");
5473
5572
  const REQUESTS_PER_MINUTE = envName(app, "REQUESTS_PER_MINUTE");
5474
5573
  const configPathFor = /* @__PURE__ */ __name(({ env = process.env, configDir }) => configFilePath(configDir ?? resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).config), "configPathFor");
5475
- const readSchema = extension.schema ?? schema2;
5476
5574
  const context2 = /* @__PURE__ */ __name((file) => ({ file, tool: app.command }), "context");
5477
5575
  const loadConfig = /* @__PURE__ */ __name((path2) => {
5478
5576
  const read = readConfigText(path2);
@@ -5480,7 +5578,12 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
5480
5578
  return { config: { profiles: {} }, issues: [read.issue] };
5481
5579
  if (read.text === void 0)
5482
5580
  return { config: { profiles: {} }, issues: [] };
5483
- const { config, issues } = checkConfigText(read.text, { file: path2, tool: app.command, schema: readSchema });
5581
+ const { config, issues } = checkConfigText(read.text, {
5582
+ file: path2,
5583
+ tool: app.command,
5584
+ schema: readSchema,
5585
+ repair: extension.configRepair !== false
5586
+ });
5484
5587
  return { config: config ?? { profiles: {} }, issues };
5485
5588
  }, "loadConfig");
5486
5589
  const locked = /* @__PURE__ */ __name((profile, lock) => {
@@ -5508,7 +5611,7 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
5508
5611
  const configPath = configPathFor(options);
5509
5612
  try {
5510
5613
  if (!options.readOnly)
5511
- ensureDefaultConfig(configPath);
5614
+ ensureDefaultConfig(configPath, withDefaults(DEFAULT_CONFIG).config);
5512
5615
  } catch (error) {
5513
5616
  throw new CliError("configuration_error", error instanceof Error ? error.message : String(error));
5514
5617
  }
@@ -5686,7 +5789,7 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
5686
5789
  throw new CliError("validation_error", `${setting2} has no problem to remove \u2014 name the profile, or add --defaults, to unset a setting`);
5687
5790
  if (!known && valueAt(raw, at2) === void 0)
5688
5791
  throw new CliError("validation_error", `no setting called "${setting2}" \u2014 one of: ${allSettings.join(", ")}`);
5689
- saveConfigFile(path2, withoutPath(raw, at2).config);
5792
+ saveConfigFile(path2, withDefaults(withoutPath(raw, at2).config, [at2.join(".")]).config);
5690
5793
  return null;
5691
5794
  }
5692
5795
  if (!known)
@@ -5707,13 +5810,24 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
5707
5810
  if (added)
5708
5811
  throw new CliError("validation_error", `${setting2} cannot be "${value}": ${added.what}`);
5709
5812
  const checked = safeParse(readSchema, changed);
5710
- saveConfigFile(path2, checked.success ? checked.output : changed);
5813
+ saveConfigFile(path2, withDefaults(checked.success ? checked.output : changed).config);
5711
5814
  return valueAt(checked.success ? checked.output : changed, at2) ?? null;
5712
5815
  }, "changeSetting");
5816
+ const migrate = /* @__PURE__ */ __name((path2) => {
5817
+ const read = readConfigFile(path2);
5818
+ if ("issue" in read)
5819
+ throw new CliError("configuration_error", issueMessage([read.issue]));
5820
+ const { config, added } = withDefaults(read.raw);
5821
+ if (added.length > 0)
5822
+ saveConfigFile(path2, config);
5823
+ return added;
5824
+ }, "migrate");
5713
5825
  return {
5714
5826
  resolveSettings,
5715
5827
  configuredProfiles,
5716
5828
  changeSetting,
5829
+ migrate,
5830
+ declaredSettings,
5717
5831
  allSettings,
5718
5832
  defaultsOnlyKeys,
5719
5833
  schema: schema2,
@@ -5754,7 +5868,7 @@ var given = /* @__PURE__ */ __name((value) => {
5754
5868
  return trimmed === void 0 || trimmed === "" ? void 0 : trimmed;
5755
5869
  }, "given");
5756
5870
 
5757
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/cli/context.js
5871
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/cli/context.js
5758
5872
  var setExitCode = /* @__PURE__ */ __name((command, code) => {
5759
5873
  const slot = environmentOf(command).exit;
5760
5874
  if (slot)
@@ -5867,7 +5981,7 @@ var commandPath = /* @__PURE__ */ __name((command) => {
5867
5981
  return words.join(" ");
5868
5982
  }, "commandPath");
5869
5983
 
5870
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/cli/effects.js
5984
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/cli/effects.js
5871
5985
  var REMOTE_READ = { remote: "read", local: "read" };
5872
5986
  var FETCH = { remote: "read", local: "write" };
5873
5987
  var REMOTE_WRITE = { remote: "write", local: "write" };
@@ -5979,7 +6093,7 @@ var refuseUnderReadOnly = /* @__PURE__ */ __name((command, what) => {
5979
6093
  throw readOnlyRefusal(lock, what);
5980
6094
  }, "refuseUnderReadOnly");
5981
6095
 
5982
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/account.js
6096
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/account.js
5983
6097
  var account = strictObject({
5984
6098
  provider: text,
5985
6099
  id,
@@ -5989,7 +6103,7 @@ var account = strictObject({
5989
6103
  scope: optional(picklist(["personal", "work"]))
5990
6104
  });
5991
6105
 
5992
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/account-session.js
6106
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/account-session.js
5993
6107
  var accountSession = strictObject({
5994
6108
  current: boolean(),
5995
6109
  client: nullable(text),
@@ -5999,7 +6113,7 @@ var accountSession = strictObject({
5999
6113
  created_at: optional(nullable(time))
6000
6114
  });
6001
6115
 
6002
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/account-change.js
6116
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/account-change.js
6003
6117
  var accountChange = strictObject({ operation_id: id, account: omit(account, ["provider", "scope"]) });
6004
6118
  var endedAccountSessions = strictObject({ operation_id: id, sessions: array(accountSession) });
6005
6119
  var audience = picklist(["everyone", "contacts", "nobody"]);
@@ -6017,7 +6131,7 @@ var accountPrivacy = strictObject({
6017
6131
  });
6018
6132
  var accountPrivacyChange = strictObject({ operation_id: id, privacy: accountPrivacy });
6019
6133
 
6020
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/account-profile.js
6134
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/account-profile.js
6021
6135
  var accountProfile = strictObject({
6022
6136
  profile: id,
6023
6137
  current: boolean(),
@@ -6027,7 +6141,7 @@ var accountProfile = strictObject({
6027
6141
  signed_in: optional(boolean())
6028
6142
  });
6029
6143
 
6030
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/counter-reading.js
6144
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/counter-reading.js
6031
6145
  var milliseconds = pipe(number(), minValue(0));
6032
6146
  var counterReading = strictObject({
6033
6147
  counter: picklist(["views", "reactions", "comments"]),
@@ -6039,7 +6153,7 @@ var counterReading = strictObject({
6039
6153
  });
6040
6154
  var selection = record(string(), unknown());
6041
6155
 
6042
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/admin-report.js
6156
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/admin-report.js
6043
6157
  var adminRow = strictObject({
6044
6158
  ref: reference,
6045
6159
  /** What `stats * evidence` takes: a person id, a stay or a message locator. */
@@ -6092,11 +6206,11 @@ var adminReport = strictObject({
6092
6206
  rows: array(adminRow)
6093
6207
  });
6094
6208
 
6095
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/analysis-consent.js
6209
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/analysis-consent.js
6096
6210
  var analysisConsent = strictObject({ chat: id, provider: text, at: time });
6097
6211
  var analysisConsentRevocation = strictObject({ revoked: boolean() });
6098
6212
 
6099
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/batch-result.js
6213
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/batch-result.js
6100
6214
  var actionableError = objectWithRest({
6101
6215
  code: text,
6102
6216
  message: text,
@@ -6113,7 +6227,7 @@ var batchResult = strictObject({
6113
6227
  max_error_percent: count
6114
6228
  });
6115
6229
 
6116
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/extraction-report.js
6230
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/extraction-report.js
6117
6231
  var extractionItem = strictObject({
6118
6232
  ref: reference,
6119
6233
  attachment: count,
@@ -6146,7 +6260,7 @@ var extractionReport = strictObject({
6146
6260
  cursor: optional(text)
6147
6261
  });
6148
6262
 
6149
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/attachment-results.js
6263
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/attachment-results.js
6150
6264
  var fingerprint = pipe(text, regex(/^[a-f0-9]{64}$/));
6151
6265
  var attachmentBytes = strictObject({
6152
6266
  ref: reference,
@@ -6174,7 +6288,7 @@ var attachmentTextChange = strictObject({
6174
6288
  replaced: nullable(picklist(["extracted", "agent"]))
6175
6289
  });
6176
6290
 
6177
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/chart.js
6291
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/chart.js
6178
6292
  var chart = strictObject({
6179
6293
  version: literal(1),
6180
6294
  kind: picklist(["bar", "line", "grouped-bar"]),
@@ -6189,7 +6303,7 @@ var chart = strictObject({
6189
6303
  file: optional(strictObject({ path: text, format: picklist(["svg", "png"]), width: count, height: count }))
6190
6304
  });
6191
6305
 
6192
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/member.js
6306
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/member.js
6193
6307
  var member = strictObject({
6194
6308
  id,
6195
6309
  name: nullable(text),
@@ -6212,7 +6326,7 @@ var member = strictObject({
6212
6326
  check: optional(record(string(), unknown()))
6213
6327
  });
6214
6328
 
6215
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/chat.js
6329
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/chat.js
6216
6330
  var setting = optional(nullable(boolean()));
6217
6331
  var chat = strictObject({
6218
6332
  ref: reference,
@@ -6253,7 +6367,7 @@ var chat = strictObject({
6253
6367
  members: optional(array(member))
6254
6368
  });
6255
6369
 
6256
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/folder.js
6370
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/folder.js
6257
6371
  var named2 = strictObject({
6258
6372
  id,
6259
6373
  title: nullable(text),
@@ -6276,7 +6390,7 @@ var folder = strictObject({
6276
6390
  excluded_chats: optional(array(named2))
6277
6391
  });
6278
6392
 
6279
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/invite-link.js
6393
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/invite-link.js
6280
6394
  var inviteLink = strictObject({
6281
6395
  link: text,
6282
6396
  /** Who joins by it asks first, and an admin lets them in. */
@@ -6292,7 +6406,7 @@ var inviteLink = strictObject({
6292
6406
  joined_count: optional(count)
6293
6407
  });
6294
6408
 
6295
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/chat-admin.js
6409
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/chat-admin.js
6296
6410
  var operated = { operation_id: id, chat_id: id };
6297
6411
  var group = strictObject({
6298
6412
  ...omit(chat, ["ref", "provider", "account", "invite_link", "members"]).entries,
@@ -6372,7 +6486,7 @@ var chatFolderOrder = strictObject({
6372
6486
  folders: array(strictObject({ id, title: text }))
6373
6487
  });
6374
6488
 
6375
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/chat-change.js
6489
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/chat-change.js
6376
6490
  var operated2 = { operation_id: id, chat_id: id };
6377
6491
  var chatRemoval = strictObject(operated2);
6378
6492
  var chatMuting = strictObject({
@@ -6383,7 +6497,7 @@ var chatArchive = strictObject({ ...operated2, archived: boolean() });
6383
6497
  var chatPin = strictObject({ ...operated2, pinned: boolean() });
6384
6498
  var chatUnread = strictObject({ ...operated2, unread: literal(true) });
6385
6499
 
6386
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/chat-event.js
6500
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/chat-event.js
6387
6501
  var who = strictObject({ id: nullable(id), name: nullable(text), username: optional(nullable(text)) });
6388
6502
  var chatEvent = strictObject({
6389
6503
  chat_id: id,
@@ -6400,7 +6514,7 @@ var chatEvent = strictObject({
6400
6514
  before: optional(strictObject({ name: nullable(text), username: nullable(text) }))
6401
6515
  });
6402
6516
 
6403
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/chat-metadata.js
6517
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/chat-metadata.js
6404
6518
  var chatMetadata = strictObject({
6405
6519
  chat_id: id,
6406
6520
  title: nullable(text),
@@ -6415,7 +6529,7 @@ var chatMetadataRefresh = strictObject({
6415
6529
  has_more: boolean()
6416
6530
  });
6417
6531
 
6418
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/chat-moderation.js
6532
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/chat-moderation.js
6419
6533
  var action = picklist(["report", "delete", "remove"]);
6420
6534
  var level = picklist(["deny", "readonly", "ask", "allow"]);
6421
6535
  var chatRules = strictObject({
@@ -6452,7 +6566,7 @@ var chatModeration = strictObject({
6452
6566
  }))
6453
6567
  });
6454
6568
 
6455
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/chat-stats.js
6569
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/chat-stats.js
6456
6570
  var optionalCount = optional(count);
6457
6571
  var minutes = nullable(number());
6458
6572
  var chatStats = strictObject({
@@ -6503,18 +6617,30 @@ var chatStats = strictObject({
6503
6617
  })),
6504
6618
  series: optional(array(strictObject({ key: text, messages: count, senders: count, joined: optionalCount, left: optionalCount })))
6505
6619
  });
6620
+ var ms = nullable(pipe(number(), minValue(0)));
6506
6621
  var taskStats = strictObject({
6507
6622
  /** Open tasks across every row. */
6508
6623
  open: count,
6624
+ created: count,
6625
+ closed: count,
6626
+ median_close_ms: ms,
6627
+ mean_open_age_ms: ms,
6509
6628
  rows: array(strictObject({
6510
- chat: reference,
6629
+ /** Rows of `--by chat` only. */
6630
+ chat: optional(reference),
6631
+ /** The chat reference, `meeting:<account>/<meeting>` or `project:<id>`. */
6632
+ key: text,
6633
+ name: nullable(text),
6511
6634
  open: count,
6635
+ created: count,
6636
+ closed: count,
6512
6637
  oldest_open_at: nullable(time),
6513
- median_close_ms: nullable(pipe(number(), minValue(0)))
6638
+ median_close_ms: ms,
6639
+ mean_open_age_ms: ms
6514
6640
  }))
6515
6641
  });
6516
6642
 
6517
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/chat-tracking.js
6643
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/chat-tracking.js
6518
6644
  var memberCount = strictObject({
6519
6645
  day: pipe(text, isoDate()),
6520
6646
  participants: nullable(count),
@@ -6537,7 +6663,7 @@ var chatTracking = strictObject({
6537
6663
  tracked: boolean()
6538
6664
  });
6539
6665
 
6540
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/contact-read.js
6666
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/contact-read.js
6541
6667
  var contactLookup = strictObject({ id, name: nullable(text), username: nullable(text) });
6542
6668
  var contactSync = strictObject({ added: count, changed: count, known: count });
6543
6669
  var profileFields = {
@@ -6575,7 +6701,7 @@ var profileFields = {
6575
6701
  }))
6576
6702
  };
6577
6703
 
6578
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/contact.js
6704
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/contact.js
6579
6705
  var contact = strictObject({
6580
6706
  ref: reference,
6581
6707
  id,
@@ -6606,7 +6732,7 @@ var contact = strictObject({
6606
6732
  notes: optional(array(strictObject({ id, text, revision: count, created_at: time, updated_at: time })))
6607
6733
  });
6608
6734
 
6609
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/contact-activity.js
6735
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/contact-activity.js
6610
6736
  var linkedIdentity = strictObject({
6611
6737
  provider: text,
6612
6738
  id,
@@ -6647,7 +6773,7 @@ var contactCheck = strictObject({
6647
6773
  checked_at: time
6648
6774
  });
6649
6775
 
6650
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/message.js
6776
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/message.js
6651
6777
  var quoted = strictObject({
6652
6778
  id,
6653
6779
  sender_id: nullable(id),
@@ -6766,7 +6892,7 @@ var message = strictObject({
6766
6892
  provider_metadata: providerMetadata
6767
6893
  });
6768
6894
 
6769
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/contact-context.js
6895
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/contact-context.js
6770
6896
  var contextPerson = strictObject({ ...linkedPerson.entries, provider: text, id });
6771
6897
  var contextMessage = strictObject({
6772
6898
  locator: reference,
@@ -6964,7 +7090,7 @@ var contactPreparation = strictObject({
6964
7090
  })
6965
7091
  });
6966
7092
 
6967
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/contact-note.js
7093
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/contact-note.js
6968
7094
  var contactNote = strictObject({
6969
7095
  id,
6970
7096
  /** The contact, as a `contact:` reference. */
@@ -6976,13 +7102,13 @@ var contactNote = strictObject({
6976
7102
  updated_at: time
6977
7103
  });
6978
7104
 
6979
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/contact-write.js
7105
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/contact-write.js
6980
7106
  var addressBookPerson = strictObject({ id, name: nullable(text), username: nullable(text) });
6981
7107
  var contactUpdate = strictObject({ operation_id: id, person: addressBookPerson });
6982
7108
  var contactStateChange = strictObject({ operation_id: id, person_id: id });
6983
7109
  var contactImport = strictObject({ operation_id: id, sent: count, recognised: array(addressBookPerson) });
6984
7110
 
6985
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/conversation-preparation.js
7111
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/conversation-preparation.js
6986
7112
  var conversationBuild = strictObject({
6987
7113
  chat: id,
6988
7114
  messages: count,
@@ -7007,7 +7133,7 @@ var catchUpPreparation = strictObject({
7007
7133
  prepared: optional(conversationPreparation)
7008
7134
  });
7009
7135
 
7010
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/conversation-results.js
7136
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/conversation-results.js
7011
7137
  var conversationDetails = union([
7012
7138
  strictObject({ ...conversation.entries, messages: array(message) }),
7013
7139
  message
@@ -7097,7 +7223,7 @@ var conversationHit = strictObject({
7097
7223
  stale: boolean()
7098
7224
  });
7099
7225
 
7100
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/counters.js
7226
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/counters.js
7101
7227
  var counters = strictObject({
7102
7228
  cutoff: time,
7103
7229
  max_age_ms: milliseconds,
@@ -7127,7 +7253,7 @@ var counterRefresh = strictObject({
7127
7253
  complete: optional(boolean())
7128
7254
  });
7129
7255
 
7130
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/document.js
7256
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/document.js
7131
7257
  var document = strictObject({
7132
7258
  ref: reference,
7133
7259
  id,
@@ -7142,7 +7268,7 @@ var document = strictObject({
7142
7268
  owners: optional(array(text))
7143
7269
  });
7144
7270
 
7145
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/document-link.js
7271
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/document-link.js
7146
7272
  var documentLink = strictObject({
7147
7273
  ref: reference,
7148
7274
  url: text,
@@ -7153,7 +7279,7 @@ var documentLink = strictObject({
7153
7279
  sender: strictObject({ id: nullable(id), name: nullable(text) })
7154
7280
  });
7155
7281
 
7156
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/evidence.js
7282
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/evidence.js
7157
7283
  var evidenceMessage = pick(message, ["ref", "chat_title", "timestamp", "sender_name", "text"]);
7158
7284
  var contribution = strictObject({
7159
7285
  message: evidenceMessage,
@@ -7183,7 +7309,7 @@ var retentionStay = strictObject({
7183
7309
  });
7184
7310
  var evidence = union([contribution, retentionStay]);
7185
7311
 
7186
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/fact.js
7312
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/fact.js
7187
7313
  var fact = strictObject({
7188
7314
  ref: reference,
7189
7315
  id,
@@ -7213,7 +7339,7 @@ var fact = strictObject({
7213
7339
  updated_at: time
7214
7340
  });
7215
7341
 
7216
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/hit.js
7342
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/hit.js
7217
7343
  var hit = strictObject({
7218
7344
  kind: picklist(["message", "mail", "note", "document", "event", "meeting"]),
7219
7345
  ref: reference,
@@ -7251,7 +7377,7 @@ var hit = strictObject({
7251
7377
  untrusted
7252
7378
  });
7253
7379
 
7254
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/identity.js
7380
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/identity.js
7255
7381
  var identity = strictObject({
7256
7382
  ref: reference,
7257
7383
  provider: text,
@@ -7264,7 +7390,7 @@ var identity = strictObject({
7264
7390
  person: optional(nullable(reference))
7265
7391
  });
7266
7392
 
7267
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/image-embedding.js
7393
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/image-embedding.js
7268
7394
  var imageEmbedding = strictObject({
7269
7395
  model: text,
7270
7396
  embedded: count,
@@ -7273,13 +7399,13 @@ var imageEmbedding = strictObject({
7273
7399
  more: boolean()
7274
7400
  });
7275
7401
 
7276
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
7402
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
7277
7403
  import { spawn } from "node:child_process";
7278
7404
  import { randomBytes } from "node:crypto";
7279
7405
  import { closeSync, existsSync as existsSync4, mkdirSync as mkdirSync2, openSync, readdirSync as readdirSync2, readFileSync as readFileSync3, realpathSync, rmSync as rmSync2 } from "node:fs";
7280
7406
  import { dirname as dirname2, join as join3 } from "node:path";
7281
7407
 
7282
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/background/checkpoints.js
7408
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/background/checkpoints.js
7283
7409
  var progressOf = /* @__PURE__ */ __name((input) => {
7284
7410
  const total = input.total ?? null;
7285
7411
  const updated = input.updatedAt ?? null;
@@ -7295,7 +7421,7 @@ var progressOf = /* @__PURE__ */ __name((input) => {
7295
7421
  };
7296
7422
  }, "progressOf");
7297
7423
 
7298
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/runs/record-log.js
7424
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/runs/record-log.js
7299
7425
  var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) => {
7300
7426
  const run = currentRun();
7301
7427
  const trace = traceId ?? run.traceId;
@@ -7309,7 +7435,7 @@ var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) =
7309
7435
  }));
7310
7436
  }, "recordLogFor");
7311
7437
 
7312
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
7438
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
7313
7439
  var JOB_STATES = ["running", "done", "partial", "failed", "cancelled", "died"];
7314
7440
  var spawnDetached = /* @__PURE__ */ __name((argv, env, log) => {
7315
7441
  const out = openSync(log, "a", 384);
@@ -7464,7 +7590,7 @@ var startArchiveJob = /* @__PURE__ */ __name((app, env, profile, input, spawnJob
7464
7590
  return { job: id6, pid, chat: input.chat, log };
7465
7591
  }, "startArchiveJob");
7466
7592
 
7467
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/job.js
7593
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/job.js
7468
7594
  var problem = strictObject({ code: text, message: text });
7469
7595
  var job = strictObject({
7470
7596
  id,
@@ -7487,7 +7613,7 @@ var job = strictObject({
7487
7613
  error: optional(problem)
7488
7614
  });
7489
7615
 
7490
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/join-request.js
7616
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/join-request.js
7491
7617
  var joinRequest = strictObject({
7492
7618
  person_id: id,
7493
7619
  name: nullable(text),
@@ -7498,7 +7624,7 @@ var joinRequest = strictObject({
7498
7624
  about: optional(text)
7499
7625
  });
7500
7626
 
7501
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/list-results.js
7627
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/list-results.js
7502
7628
  var botProfile = strictObject({
7503
7629
  name: text,
7504
7630
  token: text,
@@ -7566,7 +7692,7 @@ var stickerInventory = strictObject({
7566
7692
  url: optional(nullable(text))
7567
7693
  });
7568
7694
 
7569
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/poll-vote.js
7695
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/poll-vote.js
7570
7696
  var pollVote = strictObject({
7571
7697
  person_id: id,
7572
7698
  name: nullable(text),
@@ -7576,7 +7702,7 @@ var pollVote = strictObject({
7576
7702
  voted_at: time
7577
7703
  });
7578
7704
 
7579
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/listener.js
7705
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/listener.js
7580
7706
  var reactions = unwrap(unwrap(message.entries.reactions));
7581
7707
  var observation = strictObject({
7582
7708
  value: pipe(number(), minValue(0)),
@@ -7618,7 +7744,22 @@ var serveSummary = strictObject({
7618
7744
  tasks: optional(strictObject({ added: count, closed: count, review: count }))
7619
7745
  });
7620
7746
 
7621
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/mail-findings.js
7747
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/mail-counts.js
7748
+ var mailCounts = strictObject({
7749
+ by: picklist(["day", "week", "sender"]),
7750
+ received: count,
7751
+ sent: count,
7752
+ rows: array(strictObject({
7753
+ /** `YYYY-MM-DD`, or the sender's address. */
7754
+ key: text,
7755
+ name: nullable(text),
7756
+ received: count,
7757
+ /** Always 0 by sender: the owner sends that mail. */
7758
+ sent: count
7759
+ }))
7760
+ });
7761
+
7762
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/mail-findings.js
7622
7763
  var evidence2 = strictObject({ reference, fingerprint: text });
7623
7764
  var base = { id, evidence: array(evidence2) };
7624
7765
  var finding = variant("kind", [
@@ -7684,7 +7825,7 @@ var mailFindings = strictObject({
7684
7825
  receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome) }))
7685
7826
  });
7686
7827
 
7687
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/media-archive.js
7828
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/media-archive.js
7688
7829
  var mediaArchive = strictObject({
7689
7830
  directory: text,
7690
7831
  chats: count,
@@ -7716,7 +7857,7 @@ var mediaArchiveTimer = union([
7716
7857
  strictObject({ ...timer, action: picklist(["install", "start", "stop", "uninstall"]) })
7717
7858
  ]);
7718
7859
 
7719
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation-parts.js
7860
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation-parts.js
7720
7861
  var preparationId = pipe(string(), minLength(1));
7721
7862
  var preparationCount = pipe(number(), integer(), minValue(0));
7722
7863
  var preparationTime = nullable(isoTime);
@@ -7808,7 +7949,7 @@ var preparationMeeting = strictObject({
7808
7949
  updated_at: isoTime
7809
7950
  });
7810
7951
 
7811
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/meeting-evidence.js
7952
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/meeting-evidence.js
7812
7953
  var meetingEvidence = preparationEvidence;
7813
7954
  var meetingPersonContext = strictObject({
7814
7955
  person: strictObject({ uid: string(), name: nullable(string()) }),
@@ -7830,7 +7971,7 @@ var meetingPersonContext = strictObject({
7830
7971
  })
7831
7972
  });
7832
7973
 
7833
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/meeting-findings.js
7974
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/meeting-findings.js
7834
7975
  var evidence3 = strictObject({ reference, fingerprint: text });
7835
7976
  var base2 = { id, project: reference, evidence: array(evidence3) };
7836
7977
  var finding2 = variant("kind", [
@@ -7868,7 +8009,7 @@ var meetingFindings = strictObject({
7868
8009
  receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome2) }))
7869
8010
  });
7870
8011
 
7871
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/meeting-communications.js
8012
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/meeting-communications.js
7872
8013
  var communicationCoverage = strictObject({
7873
8014
  read_usage: strictObject({ reads: preparationCount, charged_bytes: preparationCount, reserved_bytes: preparationCount, remaining_bytes: preparationCount }),
7874
8015
  query: string(),
@@ -7913,7 +8054,7 @@ var preparationCommunications = strictObject({
7913
8054
  }))
7914
8055
  });
7915
8056
 
7916
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation.js
8057
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation.js
7917
8058
  var meetingPreparation = strictObject({
7918
8059
  communications: optional(preparationCommunications),
7919
8060
  schema_version: literal(1),
@@ -8026,7 +8167,7 @@ var meetingPreparation = strictObject({
8026
8167
  })
8027
8168
  });
8028
8169
 
8029
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/meeting-project-candidates.js
8170
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/meeting-project-candidates.js
8030
8171
  var count4 = pipe(number(), integer(), minValue(0));
8031
8172
  var id3 = pipe(string(), minLength(1));
8032
8173
  var text3 = string();
@@ -8090,7 +8231,7 @@ var meetingProjectCandidates = strictObject({
8090
8231
  })
8091
8232
  });
8092
8233
 
8093
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/meeting-series-inventory.js
8234
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/meeting-series-inventory.js
8094
8235
  var count5 = pipe(number(), integer(), minValue(0));
8095
8236
  var id4 = pipe(string(), minLength(1), maxLength(1e3));
8096
8237
  var meetingSeriesInventory = strictObject({
@@ -8120,7 +8261,7 @@ var meetingSeriesInventory = strictObject({
8120
8261
  })
8121
8262
  });
8122
8263
 
8123
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/meeting-task-proposal.js
8264
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/meeting-task-proposal.js
8124
8265
  var text4 = string();
8125
8266
  var id5 = pipe(number(), integer(), minValue(1));
8126
8267
  var revision = picklist(["current", "superseded"]);
@@ -8137,7 +8278,7 @@ var meetingTaskProposal = strictObject({
8137
8278
  persistence: literal("proposal-only")
8138
8279
  });
8139
8280
 
8140
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/memory.js
8281
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/memory.js
8141
8282
  var memory = strictObject({
8142
8283
  ref: reference,
8143
8284
  id,
@@ -8164,7 +8305,7 @@ var memory = strictObject({
8164
8305
  updated_at: time
8165
8306
  });
8166
8307
 
8167
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/mention.js
8308
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/mention.js
8168
8309
  var kind = picklist(["phone", "email", "url", "document", "person-name", "place"]);
8169
8310
  var status = picklist(["found", "linked", "dismissed"]);
8170
8311
  var mention = strictObject({
@@ -8207,13 +8348,13 @@ var mentionRebuild = strictObject({
8207
8348
  mentions: count
8208
8349
  });
8209
8350
 
8210
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/message-change.js
8351
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/message-change.js
8211
8352
  var operated3 = { operation_id: id, chat_id: id };
8212
8353
  var messagePin = strictObject({ ...operated3, message_id: id, pinned: boolean() });
8213
8354
  var messageStar = strictObject({ ...operated3, message_id: id, starred: boolean() });
8214
8355
  var messageDeletion = strictObject({ ...operated3, deleted: array(id), for_everyone: boolean() });
8215
8356
 
8216
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/message-read.js
8357
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/message-read.js
8217
8358
  var messageTranscript = strictObject({
8218
8359
  message_id: id,
8219
8360
  text,
@@ -8271,7 +8412,7 @@ var evidencePacket = strictObject({
8271
8412
  }))
8272
8413
  });
8273
8414
 
8274
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/message-context.js
8415
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/message-context.js
8275
8416
  var messageThread = strictObject({
8276
8417
  ref: reference,
8277
8418
  chat: id,
@@ -8288,7 +8429,7 @@ var messageThread = strictObject({
8288
8429
  });
8289
8430
  var messageContext = union([message, messageThread]);
8290
8431
 
8291
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/message-counts.js
8432
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/message-counts.js
8292
8433
  var messageCounts = strictObject({
8293
8434
  by: picklist(["chat", "sender", "day", "hour"]),
8294
8435
  total: count,
@@ -8301,7 +8442,7 @@ var messageCounts = strictObject({
8301
8442
  }))
8302
8443
  });
8303
8444
 
8304
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/message-link.js
8445
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/message-link.js
8305
8446
  var messageLink = strictObject({
8306
8447
  ref: reference,
8307
8448
  url: nullable(text),
@@ -8318,7 +8459,7 @@ var messageLink = strictObject({
8318
8459
  })))
8319
8460
  });
8320
8461
 
8321
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/message-transfer.js
8462
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/message-transfer.js
8322
8463
  var savedMessageFile = strictObject({
8323
8464
  kind: text,
8324
8465
  path: text,
@@ -8405,7 +8546,7 @@ var messageSyncAll = strictObject({
8405
8546
  var messageSyncStarted = strictObject({ job: id, pid: count, chat: text, log: text });
8406
8547
  var messageSync = union([messageSyncEstimate, messageSyncChat, messageSyncAll, messageSyncStarted]);
8407
8548
 
8408
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/message-write.js
8549
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/message-write.js
8409
8550
  var messageWrite = strictObject({
8410
8551
  operation_id: id,
8411
8552
  message,
@@ -8420,7 +8561,7 @@ var draftWrite = strictObject({
8420
8561
  });
8421
8562
  var messageSend = union([messageWrite, draftWrite]);
8422
8563
 
8423
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/model.js
8564
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/model.js
8424
8565
  var model2 = strictObject({
8425
8566
  id,
8426
8567
  kind: picklist(["audio", "text", "image", "reranker"]),
@@ -8437,7 +8578,7 @@ var model2 = strictObject({
8437
8578
  path: text
8438
8579
  });
8439
8580
 
8440
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/model-key.js
8581
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/model-key.js
8441
8582
  var source = picklist(["environment", "keyring", "file"]);
8442
8583
  var modelKey = strictObject({
8443
8584
  provider: text,
@@ -8447,7 +8588,7 @@ var modelKey = strictObject({
8447
8588
  var storedModelKey = strictObject({ ...omit(modelKey, ["removed"]).entries, stored: source });
8448
8589
  var removedModelKey = strictObject({ ...omit(modelKey, ["stored"]).entries, removed: array(source) });
8449
8590
 
8450
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/official-stats.js
8591
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/official-stats.js
8451
8592
  var versus = strictObject({ current: number(), previous: number() });
8452
8593
  var person = { person_ref: reference, name: nullable(text) };
8453
8594
  var graph = strictObject({
@@ -8481,14 +8622,14 @@ var officialStats = strictObject({
8481
8622
  graphs: record(string(), union([graph, strictObject({ error: text })]))
8482
8623
  });
8483
8624
 
8484
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/person.js
8625
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/person.js
8485
8626
  var person2 = strictObject({
8486
8627
  ref: reference,
8487
8628
  name: nullable(text),
8488
8629
  identities: optional(array(identity))
8489
8630
  });
8490
8631
 
8491
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/poll.js
8632
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/poll.js
8492
8633
  var poll = strictObject({
8493
8634
  chat_id: id,
8494
8635
  message_id: id,
@@ -8504,11 +8645,11 @@ var poll = strictObject({
8504
8645
  });
8505
8646
  var pollChange = strictObject({ operation_id: id, poll });
8506
8647
 
8507
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/private-contact.js
8648
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/private-contact.js
8508
8649
  var contactAlias = strictObject({ person_id: id, alias: nullable(text) });
8509
8650
  var contactNoteRemoval = strictObject({ id, person_id: id, removed: boolean() });
8510
8651
 
8511
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/ranking.js
8652
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/ranking.js
8512
8653
  var figures = record(string(), number());
8513
8654
  var freshness = picklist(["fresh", "stale", "partial", "unknown"]);
8514
8655
  var rankingRow = strictObject({
@@ -8555,7 +8696,7 @@ var ranking = strictObject({
8555
8696
  rows: array(rankingRow)
8556
8697
  });
8557
8698
 
8558
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/reaction.js
8699
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/reaction.js
8559
8700
  var reaction = strictObject({
8560
8701
  person: strictObject({ id, name: nullable(text), username: nullable(text) }),
8561
8702
  /** The emoji, or `custom:<id>` for a custom one. */
@@ -8563,7 +8704,7 @@ var reaction = strictObject({
8563
8704
  reacted_at: time
8564
8705
  });
8565
8706
 
8566
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/reaction-change.js
8707
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/reaction-change.js
8567
8708
  var reactionChange = strictObject({
8568
8709
  operation_id: id,
8569
8710
  chat_id: id,
@@ -8571,7 +8712,7 @@ var reactionChange = strictObject({
8571
8712
  reaction: nullable(text)
8572
8713
  });
8573
8714
 
8574
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/recipient.js
8715
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/recipient.js
8575
8716
  var recipient = strictObject({ id, title: nullable(text), partner_id: optional(id), added_at: time });
8576
8717
  var recipientAdded = strictObject({ id, title: nullable(text), added: boolean() });
8577
8718
  var recipientRemoved = strictObject({ id, title: nullable(text), removed: boolean() });
@@ -8582,7 +8723,7 @@ var recipientChange = strictObject({
8582
8723
  ...partial(recipientOff).entries
8583
8724
  });
8584
8725
 
8585
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/recorded-run.js
8726
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/recorded-run.js
8586
8727
  var events = array(record(string(), unknown()));
8587
8728
  var recordedRun = strictObject({
8588
8729
  run_id: id,
@@ -8654,7 +8795,7 @@ var runHit = strictObject({
8654
8795
  });
8655
8796
  var runLocation = strictObject({ path: text });
8656
8797
 
8657
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/relationship.js
8798
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/relationship.js
8658
8799
  var relationship = strictObject({
8659
8800
  id,
8660
8801
  from: reference,
@@ -8671,7 +8812,24 @@ var relationship = strictObject({
8671
8812
  created_at: time
8672
8813
  });
8673
8814
 
8674
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/retention.js
8815
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/reply-stats.js
8816
+ var milliseconds2 = nullable(pipe(number(), minValue(0)));
8817
+ var figures2 = { replies: count, median_ms: milliseconds2, p90_ms: milliseconds2, mean_ms: milliseconds2 };
8818
+ var responseTimes = strictObject({
8819
+ who: picklist(["me", "others"]),
8820
+ ...figures2,
8821
+ buckets: strictObject({ under_5m: count, under_1h: count, under_1d: count, over_1d: count }),
8822
+ /** One row per calendar day of the reply; empty with `--by total`. */
8823
+ rows: array(strictObject({ key: text, ...figures2 }))
8824
+ });
8825
+ var waitingChats = strictObject({
8826
+ chats: count,
8827
+ messages: count,
8828
+ oldest_at: nullable(time),
8829
+ by_kind: strictObject({ private: count, group: count })
8830
+ });
8831
+
8832
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/retention.js
8675
8833
  var retentionCohort = strictObject({
8676
8834
  /** The first day of the joining day or week. */
8677
8835
  cohort: text,
@@ -8719,7 +8877,7 @@ var retention = strictObject({
8719
8877
  rows: array(retentionCohort)
8720
8878
  });
8721
8879
 
8722
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/saved-search.js
8880
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/saved-search.js
8723
8881
  var savedSearch = strictObject({
8724
8882
  id,
8725
8883
  /** `null` for a run in the history. */
@@ -8736,7 +8894,7 @@ var savedSearch = strictObject({
8736
8894
  });
8737
8895
  var searchHistoryClear = strictObject({ cleared: count });
8738
8896
 
8739
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/send-attempt.js
8897
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/send-attempt.js
8740
8898
  var sendAttempt = strictObject({
8741
8899
  at: time,
8742
8900
  profile: text,
@@ -8764,7 +8922,7 @@ var sendAttempt = strictObject({
8764
8922
  error_code: optional(text)
8765
8923
  });
8766
8924
 
8767
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/store-maintenance.js
8925
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/store-maintenance.js
8768
8926
  var absent = strictObject({ path: text, exists: literal(false) });
8769
8927
  var schema = strictObject({ version: count, min_compatible: count, writable: boolean(), speaks: count });
8770
8928
  var infoSchema = strictObject({
@@ -8972,7 +9130,7 @@ var storeRepair = union([
8972
9130
  ]);
8973
9131
  var storeCopyRemoval = strictObject({ path: text, deleted: strictObject({ name: text, rows: count }) });
8974
9132
 
8975
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/store-records.js
9133
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/store-records.js
8976
9134
  var range = strictObject({ from: number(), to: number() });
8977
9135
  var storeChatStatus = strictObject({
8978
9136
  chat_id: id,
@@ -8984,6 +9142,13 @@ var storeChatStatus = strictObject({
8984
9142
  last_stored_at: nullable(time),
8985
9143
  held: array(range)
8986
9144
  });
9145
+ var chatCoverage = strictObject({
9146
+ chats: count,
9147
+ fetched: count,
9148
+ partial: count,
9149
+ never: count,
9150
+ oldest_message_at: nullable(time)
9151
+ });
8987
9152
  var storeClear = strictObject({
8988
9153
  cleared: boolean(),
8989
9154
  dry_run: optional(literal(true)),
@@ -9063,7 +9228,7 @@ var storeJobRetry = union([
9063
9228
  ]);
9064
9229
  var storeJobClear = strictObject({ cleared: array(id) });
9065
9230
 
9066
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/store-table.js
9231
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/store-table.js
9067
9232
  var TABLE_KINDS = ["data", "search_index", "search_index_part", "internal"];
9068
9233
  var storeTable = strictObject({
9069
9234
  name: text,
@@ -9072,7 +9237,7 @@ var storeTable = strictObject({
9072
9237
  bytes: optional(nullable(count))
9073
9238
  });
9074
9239
 
9075
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/tag-change.js
9240
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/tag-change.js
9076
9241
  var tagTarget = variant("type", [
9077
9242
  strictObject({ type: literal("chat"), chat_id: id }),
9078
9243
  strictObject({ type: literal("contact"), person_id: id }),
@@ -9103,7 +9268,7 @@ var automaticTags = strictObject({
9103
9268
  dry_run: boolean()
9104
9269
  });
9105
9270
 
9106
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/task-pair.js
9271
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/task-pair.js
9107
9272
  var side = strictObject({ ref: reference, key: text, title: text, status: text });
9108
9273
  var taskPair = strictObject({
9109
9274
  task: nullable(side),
@@ -9126,7 +9291,7 @@ var taskPair = strictObject({
9126
9291
  created_at: time
9127
9292
  });
9128
9293
 
9129
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/task-results.js
9294
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/task-results.js
9130
9295
  var nullableTime = nullable(time);
9131
9296
  var link = strictObject({
9132
9297
  id,
@@ -9296,7 +9461,7 @@ var taskReview = strictObject({
9296
9461
  untrusted
9297
9462
  });
9298
9463
 
9299
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/topic.js
9464
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/topic.js
9300
9465
  var topic = strictObject({
9301
9466
  id,
9302
9467
  title: text,
@@ -9310,7 +9475,7 @@ var topic = strictObject({
9310
9475
  untrusted
9311
9476
  });
9312
9477
 
9313
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/index.js
9478
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/entities/index.js
9314
9479
  var ENTITIES = {
9315
9480
  sync_progress: progress,
9316
9481
  ...MEETING_RESULT_ENTITIES,
@@ -9340,19 +9505,22 @@ var ENTITIES = {
9340
9505
  attachments: optional(array(hitFile)),
9341
9506
  untrusted
9342
9507
  }),
9343
- "message.summary": pick(message, [
9344
- "ref",
9345
- "chat_id",
9346
- "chat_title",
9347
- "timestamp",
9348
- "sender_name",
9349
- "sender_is_me",
9350
- "outgoing",
9351
- "text",
9352
- "transcript",
9353
- "attachments",
9354
- "email"
9355
- ]),
9508
+ "message.summary": strictObject({
9509
+ ...pick(message, [
9510
+ "ref",
9511
+ "chat_id",
9512
+ "chat_title",
9513
+ "timestamp",
9514
+ "sender_name",
9515
+ "sender_is_me",
9516
+ "outgoing",
9517
+ "text",
9518
+ "transcript",
9519
+ "attachments",
9520
+ "email"
9521
+ ]).entries,
9522
+ untrusted
9523
+ }),
9356
9524
  message_link: messageLink,
9357
9525
  message_write: messageWrite,
9358
9526
  message_send: messageSend,
@@ -9471,6 +9639,7 @@ var ENTITIES = {
9471
9639
  meeting_review: meetingReview,
9472
9640
  meeting_link: meetingLink,
9473
9641
  meeting_stats: meetingStats,
9642
+ meeting_counts: meetingCounts,
9474
9643
  meeting_speaker: meetingSpeaker,
9475
9644
  meeting_participants: meetingParticipants,
9476
9645
  meeting_passage: meetingPassage,
@@ -9508,6 +9677,7 @@ var ENTITIES = {
9508
9677
  job,
9509
9678
  store_chat_status: storeChatStatus,
9510
9679
  store_clear: storeClear,
9680
+ chat_coverage: chatCoverage,
9511
9681
  store_export: storeExport,
9512
9682
  store_gap_plan: storeGapPlan,
9513
9683
  store_gap_repair: storeGapRepair,
@@ -9563,6 +9733,9 @@ var ENTITIES = {
9563
9733
  topic,
9564
9734
  folder,
9565
9735
  message_counts: messageCounts,
9736
+ response_times: responseTimes,
9737
+ waiting_chats: waitingChats,
9738
+ mail_counts: mailCounts,
9566
9739
  ranking,
9567
9740
  admin_report: adminReport,
9568
9741
  analysis_consent: analysisConsent,
@@ -9584,7 +9757,7 @@ var entityDefinitions = /* @__PURE__ */ __name(() => Object.fromEntries(Object.e
9584
9757
  return [name, definition];
9585
9758
  })), "entityDefinitions");
9586
9759
 
9587
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/cli/answer-entity.js
9760
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/cli/answer-entity.js
9588
9761
  var schemas = /* @__PURE__ */ new WeakMap();
9589
9762
  var answerEntity = /* @__PURE__ */ __name((command, name, schema2, options = {}) => {
9590
9763
  if (Object.hasOwn(ENTITIES, name))
@@ -9618,7 +9791,7 @@ var answerRow = /* @__PURE__ */ __name((command) => {
9618
9791
  return own && metaOf(command).output?.entity === own.name ? own.row : void 0;
9619
9792
  }, "answerRow");
9620
9793
 
9621
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/cli/steps.js
9794
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/cli/steps.js
9622
9795
  var STEPS2 = defineSteps([
9623
9796
  ...STEPS,
9624
9797
  {
@@ -9840,7 +10013,7 @@ var STEPS2 = defineSteps([
9840
10013
  }
9841
10014
  ]);
9842
10015
  var nextStep = /* @__PURE__ */ __name((id6, input) => {
9843
- const definition = STEPS2.find((step) => step.id === id6);
10016
+ const definition = STEPS2.find((step2) => step2.id === id6);
9844
10017
  if (!definition)
9845
10018
  throw new Error(`no step "${id6}"`);
9846
10019
  const args = Object.fromEntries(Object.entries(input.args ?? {}).filter(([, value]) => value !== void 0));
@@ -9863,7 +10036,7 @@ var commandAt = /* @__PURE__ */ __name((root, path2) => {
9863
10036
  at2 = at2?.commands.find((one) => one.name() === word || one.aliases().includes(word));
9864
10037
  return at2 === root ? void 0 : at2;
9865
10038
  }, "commandAt");
9866
- var runnable = /* @__PURE__ */ __name((root, steps) => withSafety((steps ?? []).filter((step) => step.kind === "user_action" || commandAt(root, step.command) !== void 0).slice(0, MAX_NEXT_STEPS), judgedTargets(root)), "runnable");
10039
+ var runnable = /* @__PURE__ */ __name((root, steps) => withSafety((steps ?? []).filter((step2) => step2.kind === "user_action" || commandAt(root, step2.command) !== void 0).slice(0, MAX_NEXT_STEPS), judgedTargets(root)), "runnable");
9867
10040
  var failureSteps = /* @__PURE__ */ __name((root, error) => {
9868
10041
  const model3 = error.details?.model;
9869
10042
  const own = error.reason === "model.not-downloaded" && typeof model3 === "string" ? [
@@ -9873,33 +10046,33 @@ var failureSteps = /* @__PURE__ */ __name((root, error) => {
9873
10046
  ] : [];
9874
10047
  return runnable(root, [...error.next ?? [], ...own]);
9875
10048
  }, "failureSteps");
9876
- var withSafety = /* @__PURE__ */ __name((steps, targets) => steps.map((step) => {
9877
- if (step.kind === "user_action")
9878
- return step;
9879
- const effects = targets(step.command)?.effects;
9880
- return { ...step, safe_to_auto_execute: effects !== void 0 && !writes(effects) };
10049
+ var withSafety = /* @__PURE__ */ __name((steps, targets) => steps.map((step2) => {
10050
+ if (step2.kind === "user_action")
10051
+ return step2;
10052
+ const effects = targets(step2.command)?.effects;
10053
+ return { ...step2, safe_to_auto_execute: effects !== void 0 && !writes(effects) };
9881
10054
  }), "withSafety");
9882
- var withLines = /* @__PURE__ */ __name((root, steps) => steps.map((step) => step.kind === "command" ? { ...step, line: stepLine(root, step) } : step), "withLines");
10055
+ var withLines = /* @__PURE__ */ __name((root, steps) => steps.map((step2) => step2.kind === "command" ? { ...step2, line: stepLine(root, step2) } : step2), "withLines");
9883
10056
  var kebab = /* @__PURE__ */ __name((name) => name.replaceAll("_", "-"), "kebab");
9884
10057
  var quoted2 = /* @__PURE__ */ __name((value) => {
9885
10058
  const text5 = String(value);
9886
10059
  return /^[\w@:./+-]+$/.test(text5) ? text5 : JSON.stringify(text5);
9887
10060
  }, "quoted");
9888
- var stepLine = /* @__PURE__ */ __name((root, step) => {
9889
- const command = commandAt(root, step.command);
10061
+ var stepLine = /* @__PURE__ */ __name((root, step2) => {
10062
+ const command = commandAt(root, step2.command);
9890
10063
  const positional = new Set(command?.registeredArguments.map((argument) => argument.name()) ?? []);
9891
- const args = Object.entries(step.args).filter(([, value]) => value !== void 0 && value !== false);
10064
+ const args = Object.entries(step2.args).filter(([, value]) => value !== void 0 && value !== false);
9892
10065
  const profile = root.getOptionValue("profile");
9893
10066
  return [
9894
10067
  root.name(),
9895
10068
  ...typeof profile === "string" && profile !== "" ? [quoted2(profile)] : [],
9896
- step.command,
9897
- ...(command?.registeredArguments ?? []).flatMap((argument) => step.args[argument.name()] === void 0 ? [] : [quoted2(step.args[argument.name()])]),
10069
+ step2.command,
10070
+ ...(command?.registeredArguments ?? []).flatMap((argument) => step2.args[argument.name()] === void 0 ? [] : [quoted2(step2.args[argument.name()])]),
9898
10071
  ...args.filter(([name]) => !positional.has(name)).map(([name, value]) => value === true ? `--${kebab(name)}` : `--${kebab(name)} ${quoted2(value)}`)
9899
10072
  ].join(" ");
9900
10073
  }, "stepLine");
9901
10074
 
9902
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/cli/project-status-rows.js
10075
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/cli/project-status-rows.js
9903
10076
  var where = [{ field: "ref" }, { field: ["chat_title", "chat"] }];
9904
10077
  var who2 = { field: ["who.owner", "who.name"], tag: "you" };
9905
10078
  var STATUS_SIGNAL_ROWS = {
@@ -10008,7 +10181,7 @@ var STATUS_ROWS = {
10008
10181
  "status.failed": { columns: [{ field: "signal" }], text: ["why"] }
10009
10182
  };
10010
10183
 
10011
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/cli/compact.js
10184
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/cli/compact.js
10012
10185
  var TEXT_CHARS = 400;
10013
10186
  var sender = { field: ["sender_is_me", "sender_name"], tag: "me" };
10014
10187
  var messageRow = {
@@ -10161,10 +10334,10 @@ var clockFor = /* @__PURE__ */ __name((zone) => {
10161
10334
  return {
10162
10335
  zone,
10163
10336
  parts: /* @__PURE__ */ __name((iso) => {
10164
- const ms = Date.parse(iso);
10165
- if (Number.isNaN(ms))
10337
+ const ms2 = Date.parse(iso);
10338
+ if (Number.isNaN(ms2))
10166
10339
  return void 0;
10167
- const part = Object.fromEntries(format.formatToParts(ms).map(({ type, value }) => [type, value]));
10340
+ const part = Object.fromEntries(format.formatToParts(ms2).map(({ type, value }) => [type, value]));
10168
10341
  return { date: `${part.year}-${part.month}-${part.day}`, time: `${part.hour}:${part.minute}` };
10169
10342
  }, "parts")
10170
10343
  };
@@ -10288,20 +10461,20 @@ var blockOf = /* @__PURE__ */ __name((fields, chars, indent = "", whole = []) =>
10288
10461
  var footerOf = /* @__PURE__ */ __name((body) => {
10289
10462
  const lines = [];
10290
10463
  const steps = body.next ?? [];
10291
- const lineOf2 = /* @__PURE__ */ __name((step) => step.kind === "command" ? step.line ?? step.command : void 0, "lineOf");
10464
+ const lineOf2 = /* @__PURE__ */ __name((step2) => step2.kind === "command" ? step2.line ?? step2.command : void 0, "lineOf");
10292
10465
  if ("items" in body && body.page.has_more) {
10293
- const more = steps.find((step) => step.step === "page.next");
10466
+ const more = steps.find((step2) => step2.step === "page.next");
10294
10467
  const line = more?.kind === "command" ? more.line : void 0;
10295
10468
  const page2 = body.page;
10296
10469
  lines.push(`# more: ${clean(line ?? (page2.mode === "cursor" && page2.next_cursor ? `--cursor ${page2.next_cursor}` : page2.mode === "page" && page2.next_page ? `--page ${page2.next_page}` : "raise --limit"))}`);
10297
10470
  }
10298
10471
  for (const missing of body.missing ?? [])
10299
10472
  lines.push(`# missing: ${clean(missing.field)}: ${clean(missing.why)}`);
10300
- for (const step of steps) {
10301
- if (step.step === "page.next" && "items" in body)
10473
+ for (const step2 of steps) {
10474
+ if (step2.step === "page.next" && "items" in body)
10302
10475
  continue;
10303
- const line = lineOf2(step);
10304
- lines.push(`# next: ${clean(step.why)}${line ? `: ${clean(line)}` : ""}`);
10476
+ const line = lineOf2(step2);
10477
+ lines.push(`# next: ${clean(step2.why)}${line ? `: ${clean(line)}` : ""}`);
10305
10478
  }
10306
10479
  if (body.meta?.complete === false) {
10307
10480
  const issues = (body.meta.issues ?? []).map((issue) => `${clean(issue.source)}: ${clean(String(issue.code))}`);
@@ -10344,7 +10517,65 @@ var compactText = /* @__PURE__ */ __name((body, shape, options, rowsOf = rowsOfE
10344
10517
  return lines.concat(footerOf(body)).join("\n");
10345
10518
  }, "compactText");
10346
10519
 
10347
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
10520
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/cli/output-budget.js
10521
+ var SOFT_OUTPUT_BYTES = 256 * 1024;
10522
+ var CARRIED = ["json", "compact", "offline", "timeout", "full", "brief", "maxOutputBytes"];
10523
+ var NOT_WITH_COMPACT = /* @__PURE__ */ new Set(["json", "brief"]);
10524
+ var snake2 = /* @__PURE__ */ __name((name) => name.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snake");
10525
+ var typed = /* @__PURE__ */ __name((command, key) => command.getOptionValueSource(key) === "cli", "typed");
10526
+ var typedArgs = /* @__PURE__ */ __name((command) => {
10527
+ const root = rootOf2(command);
10528
+ if (root.getOptionValue("fields") !== void 0)
10529
+ return void 0;
10530
+ if (command.options.some((option) => option.negate && typed(command, option.attributeName())))
10531
+ return void 0;
10532
+ const positional = command.registeredArguments.flatMap((argument, index) => {
10533
+ const value = command.processedArgs[index];
10534
+ const word = Array.isArray(value) ? value.join(" ") : value;
10535
+ return word === void 0 || word === "" ? [] : [[argument.name(), word]];
10536
+ });
10537
+ const own = command.options.map((option) => option.attributeName()).filter((key) => typed(command, key)).map((key) => [snake2(key), command.getOptionValue(key)]);
10538
+ const global = CARRIED.filter((key) => typed(root, key)).map((key) => [snake2(key), root.getOptionValue(key)]);
10539
+ return Object.fromEntries([...positional, ...own, ...global]);
10540
+ }, "typedArgs");
10541
+ var declaresRow = /* @__PURE__ */ __name((command) => {
10542
+ const { rows: rows2 } = environmentOf(command);
10543
+ return rowShapeOf(command, rows2 && entityRows(rows2)) !== GENERIC_ROW;
10544
+ }, "declaresRow");
10545
+ var pathOf3 = /* @__PURE__ */ __name((command) => {
10546
+ const words = [];
10547
+ for (let at2 = command; at2.parent; at2 = at2.parent)
10548
+ words.unshift(at2.name());
10549
+ return words.join(" ");
10550
+ }, "pathOf");
10551
+ var step = /* @__PURE__ */ __name((command, id6, args, why) => ({
10552
+ kind: "command",
10553
+ step: id6,
10554
+ command: pathOf3(command),
10555
+ args,
10556
+ why,
10557
+ safe_to_auto_execute: true
10558
+ }), "step");
10559
+ var compactStep = /* @__PURE__ */ __name((command, args, why) => rootOf2(command).getOptionValue("compact") === true || !declaresRow(command) ? [] : [
10560
+ step(command, "output.compact", { ...Object.fromEntries(Object.entries(args).filter(([key]) => !NOT_WITH_COMPACT.has(key))), compact: true }, why)
10561
+ ], "compactStep");
10562
+ var tooLargeSteps = /* @__PURE__ */ __name((command, { maxBytes, neededBytes }) => {
10563
+ const args = typedArgs(command);
10564
+ if (!args)
10565
+ return [];
10566
+ const limit = Number(command.getOptionValue("limit"));
10567
+ const fits = Math.floor(limit * maxBytes / neededBytes * 0.9);
10568
+ return [
10569
+ ...compactStep(command, args, "the answer is over the output cap as JSON; one line per item keeps every ref"),
10570
+ ...Number.isSafeInteger(limit) && fits >= 1 && fits < limit ? [step(command, "output.limit", { ...args, limit: fits }, `about ${fits} items fit under the output cap`)] : []
10571
+ ];
10572
+ }, "tooLargeSteps");
10573
+ var largeAnswerSteps = /* @__PURE__ */ __name((command) => {
10574
+ const args = typedArgs(command);
10575
+ return args ? compactStep(command, args, "the answer is large as JSON; one line per item keeps every ref") : [];
10576
+ }, "largeAnswerSteps");
10577
+
10578
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
10348
10579
  var HIDDEN = /* @__PURE__ */ new Set(["providerRef", "provider_ref"]);
10349
10580
  var withoutProviderRefs = /* @__PURE__ */ __name((value) => strip(value), "withoutProviderRefs");
10350
10581
  var strip = /* @__PURE__ */ __name((value) => {
@@ -10358,7 +10589,7 @@ var strip = /* @__PURE__ */ __name((value) => {
10358
10589
  return Object.fromEntries(Object.entries(value).flatMap(([key, inner]) => HIDDEN.has(key) ? [] : [[key, strip(inner)]]));
10359
10590
  }, "strip");
10360
10591
 
10361
- // node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/cli/envelope.js
10592
+ // node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/cli/envelope.js
10362
10593
  var answerSchema = /* @__PURE__ */ __name((item = unknown()) => union([listEnvelopeSchema(item), itemEnvelopeSchema(item)]), "answerSchema");
10363
10594
  var capped2 = /* @__PURE__ */ __name((steps) => steps.length > 0 ? { next: steps.slice(0, MAX_NEXT_STEPS) } : {}, "capped");
10364
10595
  var listOf = /* @__PURE__ */ __name((command, input) => {
@@ -10401,7 +10632,7 @@ var itemOf = /* @__PURE__ */ __name((item, { next = [], missing, meta } = {}) =>
10401
10632
  };
10402
10633
  return body;
10403
10634
  }, "itemOf");
10404
- var snake2 = /* @__PURE__ */ __name((key) => key.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snake");
10635
+ var snake3 = /* @__PURE__ */ __name((key) => key.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snake");
10405
10636
  var snakeKeysKeeping = /* @__PURE__ */ __name((verbatim) => {
10406
10637
  const kept = new Set(verbatim);
10407
10638
  const convert = /* @__PURE__ */ __name((value) => {
@@ -10412,7 +10643,7 @@ var snakeKeysKeeping = /* @__PURE__ */ __name((verbatim) => {
10412
10643
  return Object.fromEntries(Object.entries(value).flatMap(([key, inner]) => {
10413
10644
  if (inner === void 0)
10414
10645
  return [];
10415
- const name = snake2(key);
10646
+ const name = snake3(key);
10416
10647
  return [[name, kept.has(key) || kept.has(name) ? inner : convert(inner)]];
10417
10648
  }));
10418
10649
  }, "convert");
@@ -10452,7 +10683,16 @@ var sealed = /* @__PURE__ */ __name((value) => {
10452
10683
  const { meta, ...rest } = withoutProviderRefs(value);
10453
10684
  return { ...rest, meta: metaNow(meta) };
10454
10685
  }, "sealed");
10455
- var compactSteps = /* @__PURE__ */ __name((root, steps) => steps.map((step) => step.kind === "command" ? { ...step, line: `${step.line ?? stepLine(root, step)} ${COMPACT_FLAG}` } : step), "compactSteps");
10686
+ var compactSteps = /* @__PURE__ */ __name((root, steps) => steps.map((step2) => step2.kind === "command" ? { ...step2, line: `${step2.line ?? stepLine(root, step2)} ${COMPACT_FLAG}` } : step2), "compactSteps");
10687
+ var withLargeAnswerStep = /* @__PURE__ */ __name((command, body) => {
10688
+ if ((body.next?.length ?? 0) >= MAX_NEXT_STEPS)
10689
+ return body;
10690
+ const added = largeAnswerSteps(command);
10691
+ if (added.length === 0 || Buffer.byteLength(JSON.stringify(body)) <= SOFT_OUTPUT_BYTES)
10692
+ return body;
10693
+ const root = rootOf2(command);
10694
+ return { ...body, next: [...body.next ?? [], ...withLines(root, runnable(root, added))] };
10695
+ }, "withLargeAnswerStep");
10456
10696
  var linesOf = /* @__PURE__ */ __name((body) => jsonlOf("items" in body ? body : { items: [body.item], page: { mode: "page", limit: 1, has_more: false }, meta: body.meta }), "linesOf");
10457
10697
  var jsonlRecords = /* @__PURE__ */ __name((body) => linesOf(sealed(body)).split("\n").map((line) => JSON.parse(line)), "jsonlRecords");
10458
10698
  var renderAnswer = /* @__PURE__ */ __name((command, { renderer, format, streams, compact, full }, body, view) => {
@@ -10464,9 +10704,10 @@ var renderAnswer = /* @__PURE__ */ __name((command, { renderer, format, streams,
10464
10704
  const kept = withoutProviderRefs({ ...body, ...next.length > 0 ? { next } : {} });
10465
10705
  if (next.length === 0)
10466
10706
  delete kept.next;
10467
- const whole = sealed(kept);
10707
+ const sealedBody = sealed(kept);
10468
10708
  const environment = environmentOf(command);
10469
10709
  const drawn = compact && !environment.agent;
10710
+ const whole = format === "json" && !drawn && !environment.agent ? withLargeAnswerStep(command, sealedBody) : sealedBody;
10470
10711
  if (drawn) {
10471
10712
  const lined = whole.next ? { ...whole, next: compactSteps(root, whole.next) } : whole;
10472
10713
  const timezone = Intl.DateTimeFormat().resolvedOptions().timeZone;
@@ -10486,8 +10727,8 @@ var renderAnswer = /* @__PURE__ */ __name((command, { renderer, format, streams,
10486
10727
  setExitCode(command, code);
10487
10728
  if (drawn || format === "json")
10488
10729
  return;
10489
- for (const step of next)
10490
- renderer.note(step.kind === "command" ? `\u2192 ${step.why}: ${stepLine(root, step)}` : `\u2192 ${step.why}`);
10730
+ for (const step2 of next)
10731
+ renderer.note(step2.kind === "command" ? `\u2192 ${step2.why}: ${stepLine(root, step2)}` : `\u2192 ${step2.why}`);
10491
10732
  }, "renderAnswer");
10492
10733
  var renderDocument = /* @__PURE__ */ __name(({ renderer }, document2) => renderer.result(document2), "renderDocument");
10493
10734
  var itemAnswer = /* @__PURE__ */ __name((item) => sealed(itemOf(item)), "itemAnswer");
@@ -10556,6 +10797,8 @@ export {
10556
10797
  checkConfigText,
10557
10798
  rememberAccount,
10558
10799
  recalledAccount,
10800
+ withSettingDefaults,
10801
+ settingRows,
10559
10802
  NONE_NAMED,
10560
10803
  namedProfile,
10561
10804
  NoProfileHere,
@@ -10649,7 +10892,6 @@ export {
10649
10892
  answerProjectionSchema,
10650
10893
  STATUS_SIGNAL_ROWS,
10651
10894
  entityRows,
10652
- withoutProviderRefs,
10653
10895
  nextStep,
10654
10896
  lineOf,
10655
10897
  rootOf2,
@@ -10658,6 +10900,8 @@ export {
10658
10900
  failureSteps,
10659
10901
  withLines,
10660
10902
  stepLine,
10903
+ tooLargeSteps,
10904
+ withoutProviderRefs,
10661
10905
  answerSchema,
10662
10906
  listOf,
10663
10907
  itemOf,