@wirecat/mail-cli 0.24.0 → 0.26.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 (157) hide show
  1. package/CHANGELOG.md +48 -0
  2. package/README.md +3 -0
  3. package/contracts/wirecat.json +1325 -0
  4. package/dist/bin/mail.js +2 -2
  5. package/dist/bin/mail.js.map +1 -1
  6. package/dist/bundle/{all-profiles-VS7P6DJY.js → all-profiles-6NXVQLUQ.js} +11 -11
  7. package/dist/bundle/{anthropic-C5JXKGBS.js → anthropic-OLNFE2CL.js} +17 -10
  8. package/dist/bundle/{app-server-HU3LVU42.js → app-server-J76N6XIK.js} +60 -49
  9. package/dist/bundle/{bun-QLFX47WZ.js → bun-6PYDHXNR.js} +2 -2
  10. package/dist/bundle/{bun-sqlite-W4PGAKVY.js → bun-sqlite-QD5PFHPS.js} +9 -5
  11. package/dist/bundle/{chunk-WOX7FZJP.js → chunk-2E2EV4HD.js} +130 -77
  12. package/dist/bundle/{chunk-A6J4MPTI.js → chunk-2TCS4PLJ.js} +1 -1
  13. package/dist/bundle/{chunk-QI3PXUOJ.js → chunk-3J2UJFBJ.js} +39 -32
  14. package/dist/bundle/{chunk-LVGX7VTD.js → chunk-3RY4HC4V.js} +63 -5
  15. package/dist/bundle/chunk-3XTKQ5EM.js +54 -0
  16. package/dist/bundle/{chunk-ZO4MQWIK.js → chunk-4Q6KAV4O.js} +8 -8
  17. package/dist/bundle/{chunk-JOQGJUFT.js → chunk-52M5BAEG.js} +1 -1
  18. package/dist/bundle/{chunk-Q4OKEN3B.js → chunk-5WROIMUV.js} +12 -7
  19. package/dist/bundle/{chunk-VVL4MKYH.js → chunk-66C66FNK.js} +1 -1
  20. package/dist/bundle/{chunk-O373QEAJ.js → chunk-76EKZSDK.js} +27 -27
  21. package/dist/bundle/{chunk-AUTX2MLF.js → chunk-76VSHS5Y.js} +15 -10
  22. package/dist/bundle/{chunk-HBZAJINU.js → chunk-7C6FGWDH.js} +4 -4
  23. package/dist/bundle/{chunk-VUBZFMGP.js → chunk-7KCBPAQS.js} +2 -2
  24. package/dist/bundle/{chunk-FNLUKODV.js → chunk-7MEVD5PI.js} +57 -28
  25. package/dist/bundle/chunk-A3EBRXOQ.js +16 -0
  26. package/dist/bundle/{chunk-C3NYJW6B.js → chunk-A6XETABW.js} +852 -278
  27. package/dist/bundle/{chunk-VNKWSCN7.js → chunk-AJ5K74X6.js} +17 -17
  28. package/dist/bundle/{chunk-BFQQV22T.js → chunk-BDYQQ6G2.js} +1 -1
  29. package/dist/bundle/{chunk-ZR2BDNGG.js → chunk-BMGRDZM3.js} +1 -1
  30. package/dist/bundle/{chunk-TLEBSMC7.js → chunk-CFBIPM7T.js} +4109 -3575
  31. package/dist/bundle/{chunk-IRUN4XOV.js → chunk-CZI45AQM.js} +2 -2
  32. package/dist/bundle/{chunk-QVMOEB3I.js → chunk-DKIVYAXW.js} +18 -17
  33. package/dist/bundle/{chunk-X7J3TTDO.js → chunk-ECZSYLSL.js} +48 -9
  34. package/dist/bundle/{chunk-EKGRNFYQ.js → chunk-EDWJ7IYH.js} +1 -1
  35. package/dist/bundle/{chunk-MCPOZNWG.js → chunk-FIVFP53N.js} +1 -1
  36. package/dist/bundle/{chunk-5X3GU5LI.js → chunk-GIG7F6UW.js} +6 -6
  37. package/dist/bundle/{chunk-RN7OI5KL.js → chunk-H2IJQH5X.js} +20 -112
  38. package/dist/bundle/{chunk-NWKKPDZV.js → chunk-HI5XUETY.js} +2 -2
  39. package/dist/bundle/{chunk-YBQ5AYLZ.js → chunk-HNSBXC6U.js} +3 -3
  40. package/dist/bundle/{chunk-4W4EVVL4.js → chunk-IX3GUNGV.js} +4 -4
  41. package/dist/bundle/{chunk-PT6MF2VU.js → chunk-JNKXU7AE.js} +340 -108
  42. package/dist/bundle/{chunk-64ZG5ERD.js → chunk-JVJG54QK.js} +40 -2
  43. package/dist/bundle/{chunk-KGOVFEWZ.js → chunk-KXASCNOV.js} +3 -3
  44. package/dist/bundle/{chunk-5NLHDK7P.js → chunk-LMTQMYUF.js} +31 -31
  45. package/dist/bundle/{chunk-Q6K2XUGU.js → chunk-LTZGLOKE.js} +3 -2
  46. package/dist/bundle/{chunk-RLQZFZLK.js → chunk-M2LATBP2.js} +84 -10
  47. package/dist/bundle/{chunk-RX5CJ55S.js → chunk-M4OP5ASJ.js} +1 -1
  48. package/dist/bundle/{chunk-H5FJTHVA.js → chunk-M4Y33SJJ.js} +2 -2
  49. package/dist/bundle/{chunk-SWKQ6IAR.js → chunk-M7ECSGSN.js} +3 -3
  50. package/dist/bundle/{chunk-MTO6YVMN.js → chunk-M7RHPCXM.js} +3 -3
  51. package/dist/bundle/{chunk-PRQ2U7HF.js → chunk-MIWSCTLG.js} +2 -2
  52. package/dist/bundle/{chunk-NSIN5IM4.js → chunk-NBJU6MBU.js} +10 -15
  53. package/dist/bundle/{chunk-JWMLMAHP.js → chunk-NMFPK3MU.js} +14 -5
  54. package/dist/bundle/{chunk-4QNHAM3J.js → chunk-OGE7YG4J.js} +2 -2
  55. package/dist/bundle/{chunk-XBEO472U.js → chunk-PJ6YMNJG.js} +26515 -24466
  56. package/dist/bundle/{chunk-RUASZW3M.js → chunk-PY2IOVUN.js} +5 -5
  57. package/dist/bundle/{chunk-OQW6GHUA.js → chunk-QI6EXKSH.js} +1 -1
  58. package/dist/bundle/{chunk-KV4VTKF3.js → chunk-QJGG6QYV.js} +69 -6
  59. package/dist/bundle/{chunk-JMLIKXFO.js → chunk-RXKIP2ML.js} +2 -2
  60. package/dist/bundle/{chunk-6VV7J2TN.js → chunk-T7SHPALQ.js} +35 -28
  61. package/dist/bundle/{chunk-YI544LHI.js → chunk-UE2NKPA4.js} +9 -9
  62. package/dist/bundle/{chunk-X47BL4M5.js → chunk-UNJUCK5R.js} +13 -13
  63. package/dist/bundle/{chunk-C5BMCLCQ.js → chunk-V32L23NN.js} +4 -4
  64. package/dist/bundle/{chunk-DW3F6DUW.js → chunk-V4PFD25P.js} +1 -1
  65. package/dist/bundle/{chunk-U6MMQNNK.js → chunk-VA4V73SL.js} +6 -6
  66. package/dist/bundle/{chunk-3KSK5BBB.js → chunk-VJPLIXV4.js} +8 -2
  67. package/dist/bundle/{chunk-YA45XV6G.js → chunk-VWRT57QU.js} +4 -4
  68. package/dist/bundle/{chunk-FKWUUCX2.js → chunk-XELZCDWE.js} +427 -189
  69. package/dist/bundle/{chunk-3FD3IATT.js → chunk-XUJEZ5YF.js} +6 -6
  70. package/dist/bundle/{chunk-TI7ZIPA2.js → chunk-XZ7CQ6NA.js} +4 -4
  71. package/dist/bundle/{chunk-NCRSE647.js → chunk-YM345236.js} +159 -46
  72. package/dist/bundle/{chunk-6PWCQKMD.js → chunk-YXGHC3NP.js} +14 -14
  73. package/dist/bundle/{chunk-RNZKQMFY.js → chunk-ZZSZN4CJ.js} +22 -15
  74. package/dist/bundle/command-contract-NNEXHZW5.js +36 -0
  75. package/dist/bundle/{command-server-entry-5E3PPDE5.js → command-server-entry-AIBWNC5D.js} +25 -24
  76. package/dist/bundle/{decode-AVWV7SVZ.js → decode-H7KLRD33.js} +5 -5
  77. package/dist/bundle/{dispatch-BXPHSNK5.js → dispatch-DSVN7MNG.js} +8 -8
  78. package/dist/bundle/{dist-PIOOKBWT.js → dist-YYSP43J3.js} +29 -18
  79. package/dist/bundle/{echarts-7K6YQV52.js → echarts-VSD3LS6D.js} +2 -2
  80. package/dist/bundle/{embed-4NT76GJK.js → embed-UENZ5HN3.js} +6 -6
  81. package/dist/bundle/{embedder-ITQFF7EN.js → embedder-MJMGOJT7.js} +9 -9
  82. package/dist/bundle/{failure-3Q65JOPD.js → failure-COTPFUP4.js} +2 -2
  83. package/dist/bundle/{first-run-PM74YU4X.js → first-run-HYALREFN.js} +12 -11
  84. package/dist/bundle/first-screen-GPF5RHBX.js +34 -0
  85. package/dist/bundle/{instructions-JDSITYHV.js → instructions-WOHRYOLN.js} +1 -1
  86. package/dist/bundle/mail.js +15 -20
  87. package/dist/bundle/{mcp-7KQUJNFN.js → mcp-TDKGDB4V.js} +2 -2
  88. package/dist/bundle/{node-D6YIJOJI.js → node-4BRWJJCE.js} +2 -2
  89. package/dist/bundle/{node-sqlite-PJOHHB4X.js → node-sqlite-D3QESEYQ.js} +10 -6
  90. package/dist/bundle/{oauth-BOWJ3IBT.js → oauth-T7TTOBIZ.js} +7 -7
  91. package/dist/bundle/{open-FIAKKZMW.js → open-6P6627QB.js} +5 -5
  92. package/dist/bundle/{openai-QL54VVLC.js → openai-FIMCJGAP.js} +24 -19
  93. package/dist/bundle/{process-AYHK7WRC.js → process-35IH3WHC.js} +1 -1
  94. package/dist/bundle/{program-6FKWOTBK.js → program-IEXB72IK.js} +6685 -5463
  95. package/dist/bundle/{prompt-XJZCBELC.js → prompt-HFBCPMVL.js} +5 -5
  96. package/dist/bundle/{recognize-OQKWAHBY.js → recognize-CNL4HJ7Z.js} +4 -4
  97. package/dist/bundle/{remote-NLVUZ5WK.js → remote-AYGZI7HT.js} +9 -7
  98. package/dist/bundle/{rerank-NRPZDTJ7.js → rerank-5C2OZZXD.js} +7 -7
  99. package/dist/bundle/{serve-O4YUI7F6.js → serve-S6OYBDIB.js} +9 -9
  100. package/dist/bundle/{server-WAL3M4OO.js → server-VKO6E6PI.js} +42 -40
  101. package/dist/bundle/server-WXSHVDME.js +68 -0
  102. package/dist/bundle/{sqlite-runtime-5YHGI4D4.js → sqlite-runtime-DBTGNTVE.js} +6 -6
  103. package/dist/bundle/{state-WYYOJ7KK.js → state-ZQG6AL2Y.js} +6 -6
  104. package/dist/bundle/{store-X72GOJHD.js → store-B7BXWILZ.js} +25 -18
  105. package/dist/bundle/{store-6BJO3F2J.js → store-LY4QKTOO.js} +19 -16
  106. package/dist/bundle/store-maintenance-command-UR6NQDVV.js +58 -0
  107. package/dist/commands/rules.d.ts.map +1 -1
  108. package/dist/commands/rules.js +57 -19
  109. package/dist/commands/rules.js.map +1 -1
  110. package/dist/commands/session-start.d.ts.map +1 -1
  111. package/dist/commands/session-start.js +1 -1
  112. package/dist/commands/session-start.js.map +1 -1
  113. package/dist/config.d.ts +1 -0
  114. package/dist/config.d.ts.map +1 -1
  115. package/dist/config.js +13 -12
  116. package/dist/config.js.map +1 -1
  117. package/dist/discovery.d.ts.map +1 -1
  118. package/dist/discovery.js +7 -2
  119. package/dist/discovery.js.map +1 -1
  120. package/dist/identity.d.ts +2 -0
  121. package/dist/identity.d.ts.map +1 -1
  122. package/dist/identity.js +34 -0
  123. package/dist/identity.js.map +1 -1
  124. package/dist/mail/domain-age.d.ts +1 -1
  125. package/dist/mail/domain-age.d.ts.map +1 -1
  126. package/dist/mail/domain-age.js +9 -3
  127. package/dist/mail/domain-age.js.map +1 -1
  128. package/dist/mail/rules/file.d.ts.map +1 -1
  129. package/dist/mail/rules/file.js +4 -1
  130. package/dist/mail/rules/file.js.map +1 -1
  131. package/dist/mail/rules/query.d.ts +2 -1
  132. package/dist/mail/rules/query.d.ts.map +1 -1
  133. package/dist/mail/rules/query.js +16 -3
  134. package/dist/mail/rules/query.js.map +1 -1
  135. package/dist/oauth.d.ts +3 -1
  136. package/dist/oauth.d.ts.map +1 -1
  137. package/dist/oauth.js +48 -34
  138. package/dist/oauth.js.map +1 -1
  139. package/dist/reasons.d.ts.map +1 -1
  140. package/dist/reasons.js +5 -0
  141. package/dist/reasons.js.map +1 -1
  142. package/dist/store.d.ts.map +1 -1
  143. package/dist/store.js +2 -21
  144. package/dist/store.js.map +1 -1
  145. package/dist/version.d.ts +1 -1
  146. package/dist/version.js +1 -1
  147. package/dist/wcat.d.ts +3 -0
  148. package/dist/wcat.d.ts.map +1 -0
  149. package/dist/wcat.js +4 -0
  150. package/dist/wcat.js.map +1 -0
  151. package/package.json +10 -9
  152. package/dist/bundle/chunk-B72343TK.js +0 -35
  153. package/dist/bundle/command-contract-ERYYPAD2.js +0 -35
  154. package/dist/bundle/first-screen-WBVGVSMY.js +0 -33
  155. package/dist/bundle/server-6OT5ZEWL.js +0 -66
  156. package/dist/bundle/store-maintenance-command-ASS7RBYC.js +0 -54
  157. /package/dist/bundle/{chunk-YVNHQFLC.js → chunk-XWBPP2HX.js} +0 -0
@@ -13,7 +13,7 @@ import {
13
13
  permissionOverrides,
14
14
  projectFields,
15
15
  resolveOutput
16
- } from "./chunk-Q4OKEN3B.js";
16
+ } from "./chunk-5WROIMUV.js";
17
17
  import {
18
18
  currentCaller,
19
19
  endpointTemplate,
@@ -23,16 +23,16 @@ import {
23
23
  providerErrorKey,
24
24
  renderEvent,
25
25
  runContextOf
26
- } from "./chunk-AUTX2MLF.js";
26
+ } from "./chunk-76VSHS5Y.js";
27
27
  import {
28
28
  carries
29
- } from "./chunk-DW3F6DUW.js";
29
+ } from "./chunk-V4PFD25P.js";
30
30
  import {
31
31
  permissionCeiling
32
- } from "./chunk-SWKQ6IAR.js";
32
+ } from "./chunk-M7ECSGSN.js";
33
33
  import {
34
34
  note
35
- } from "./chunk-MTO6YVMN.js";
35
+ } from "./chunk-M7RHPCXM.js";
36
36
  import {
37
37
  CATEGORIES,
38
38
  FACT_STATUSES,
@@ -77,9 +77,10 @@ import {
77
77
  typedCommand,
78
78
  untrusted,
79
79
  useAsProcessRun
80
- } from "./chunk-O373QEAJ.js";
80
+ } from "./chunk-76EKZSDK.js";
81
81
  import {
82
82
  BUSINESS_KINDS,
83
+ CRM_ACTIVITY_KINDS,
83
84
  DEAL_KINDS,
84
85
  DEAL_ROLES,
85
86
  DEAL_STATUSES,
@@ -111,23 +112,26 @@ import {
111
112
  meetingStats,
112
113
  meetingSummary,
113
114
  meetingTranscript
114
- } from "./chunk-WOX7FZJP.js";
115
+ } from "./chunk-2E2EV4HD.js";
115
116
  import {
116
117
  isCliFailure,
117
118
  storeDamaged
118
- } from "./chunk-3KSK5BBB.js";
119
+ } from "./chunk-VJPLIXV4.js";
120
+ import {
121
+ endpoint
122
+ } from "./chunk-3RY4HC4V.js";
119
123
  import {
120
124
  readSharedSection,
121
125
  sharedConfigPath,
122
126
  writeSharedSection
123
- } from "./chunk-3FD3IATT.js";
127
+ } from "./chunk-XUJEZ5YF.js";
124
128
  import {
125
129
  filesPresent,
126
130
  sharedModelsDirectory
127
- } from "./chunk-TI7ZIPA2.js";
131
+ } from "./chunk-XZ7CQ6NA.js";
128
132
  import {
129
133
  storePath
130
- } from "./chunk-B72343TK.js";
134
+ } from "./chunk-3XTKQ5EM.js";
131
135
  import {
132
136
  configFilePath,
133
137
  createRecordLog,
@@ -136,7 +140,7 @@ import {
136
140
  resolvePaths,
137
141
  saveConfigFile,
138
142
  writeSecurely
139
- } from "./chunk-FNLUKODV.js";
143
+ } from "./chunk-7MEVD5PI.js";
140
144
  import {
141
145
  COMPACT_FLAG,
142
146
  MAX_NEXT_STEPS,
@@ -190,28 +194,71 @@ import {
190
194
  url,
191
195
  variant,
192
196
  writes
193
- } from "./chunk-X7J3TTDO.js";
197
+ } from "./chunk-ECZSYLSL.js";
194
198
  import {
195
199
  CliError,
196
200
  isCliError,
197
201
  visibleControls
198
- } from "./chunk-VUBZFMGP.js";
202
+ } from "./chunk-7KCBPAQS.js";
199
203
  import {
200
204
  __name
201
205
  } from "./chunk-ZVVMGPBJ.js";
202
206
 
203
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/ports/app.js
207
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/ports/app.js
208
+ import { readFileSync } from "node:fs";
204
209
  var envName = /* @__PURE__ */ __name((app, name) => `${app.envPrefix}_${name}`, "envName");
210
+ var locking = /* @__PURE__ */ __name((value) => value !== void 0 && value.trim() !== "" && value !== "0", "locking");
211
+ var ancestries = /* @__PURE__ */ new Map();
212
+ var readable = /* @__PURE__ */ __name((read, path2) => {
213
+ try {
214
+ return read(path2);
215
+ } catch (error) {
216
+ if (error.code === "EACCES")
217
+ return void 0;
218
+ throw error;
219
+ }
220
+ }, "readable");
221
+ var ancestorEnvironments = /* @__PURE__ */ __name(({ read = /* @__PURE__ */ __name((path2) => readFileSync(path2, "utf8"), "read"), from = process.ppid, uid = process.getuid?.() ?? -1, cache = ancestries } = {}) => {
222
+ if (process.platform !== "linux")
223
+ return [];
224
+ const key = `${from}:${uid}`;
225
+ const known = cache.get(key);
226
+ if (known !== void 0)
227
+ return known;
228
+ let found = [];
229
+ try {
230
+ for (let pid = from, depth = 0; pid >= 1 && depth < 64; depth++) {
231
+ const status2 = read(`/proc/${pid}/status`);
232
+ const field = /* @__PURE__ */ __name((name) => new RegExp(`^${name}:\\s*(\\d+)`, "m").exec(status2)?.[1], "field");
233
+ if (Number(field("Uid")) !== uid)
234
+ break;
235
+ const environ = readable(read, `/proc/${pid}/environ`);
236
+ if (environ === void 0)
237
+ break;
238
+ found.push(environ.split("\0"));
239
+ pid = Number(field("PPid"));
240
+ }
241
+ } catch {
242
+ found = null;
243
+ }
244
+ cache.set(key, found);
245
+ return found;
246
+ }, "ancestorEnvironments");
247
+ var valuesOf = /* @__PURE__ */ __name((environments2, name) => environments2.flatMap((environ) => environ.filter((entry) => entry.startsWith(`${name}=`)).map((entry) => entry.slice(name.length + 1))), "valuesOf");
248
+ var lockedByAncestor = /* @__PURE__ */ __name((name, ancestry = {}) => {
249
+ const environments2 = ancestorEnvironments(ancestry);
250
+ return environments2 === null || valuesOf(environments2, name).some(locking);
251
+ }, "lockedByAncestor");
252
+ var ancestorValue = /* @__PURE__ */ __name((name, env, ancestry = {}) => valuesOf(ancestorEnvironments(ancestry) ?? [], name).at(-1) ?? env[name], "ancestorValue");
205
253
  var readOnlyLockOf = /* @__PURE__ */ __name((app, env) => {
206
254
  const name = envName(app, "READ_ONLY");
207
- const value = env[name];
208
- return value === void 0 || value.trim() === "" || value === "0" ? void 0 : name;
255
+ return locking(env[name]) || lockedByAncestor(name) ? name : void 0;
209
256
  }, "readOnlyLockOf");
210
257
  var mailHolderVariable = /* @__PURE__ */ __name((app) => envName(app, "MAIL_HOLDER"), "mailHolderVariable");
211
258
  var MESSENGER_CHANGE_REFUSAL = "send, react, change chats or change the account";
212
259
  var readOnlyRefusal = /* @__PURE__ */ __name((lock, what) => new CliError("permission_error", `this process is read-only (${lock}) \u2014 it cannot ${what}`), "readOnlyRefusal");
213
260
 
214
- // node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/registry.js
261
+ // node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/registry.js
215
262
  var labels = /* @__PURE__ */ new WeakMap();
216
263
  var annotate = /* @__PURE__ */ __name((command, meta) => {
217
264
  labels.set(command, { ...labels.get(command), ...meta });
@@ -3712,7 +3759,7 @@ __name(useColor, "useColor");
3712
3759
  // node_modules/.pnpm/commander@15.0.0/node_modules/commander/index.js
3713
3760
  var program = new Command();
3714
3761
 
3715
- // node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/document.js
3762
+ // node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/document.js
3716
3763
  var argumentInfoSchema = object({
3717
3764
  name: string(),
3718
3765
  required: boolean(),
@@ -3750,7 +3797,7 @@ var commandInfoSchema = object({
3750
3797
  summary: optional(string()),
3751
3798
  description: string(),
3752
3799
  usage: string(),
3753
- origin: picklist(["handwritten", "generated"]),
3800
+ origin: picklist(["handwritten", "generated", "cli-core"]),
3754
3801
  api_operation: optional(string()),
3755
3802
  effects: optional(effectsSchema),
3756
3803
  state: optional(picklist(["beta", "deprecated"])),
@@ -3786,9 +3833,10 @@ var commandsDocumentSchema = strictObject({
3786
3833
  exit_codes: record(string(), pipe(number(), integer()))
3787
3834
  });
3788
3835
 
3789
- // node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/contracts.js
3836
+ // node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/contracts.js
3790
3837
  import { isDeepStrictEqual } from "node:util";
3791
3838
  var protectedCommands = /* @__PURE__ */ new WeakMap();
3839
+ var hasSharedContract = /* @__PURE__ */ __name((command) => protectedCommands.has(command), "hasSharedContract");
3792
3840
  var hidden = /* @__PURE__ */ __name((command) => Boolean(command._hidden), "hidden");
3793
3841
  var snapshot = /* @__PURE__ */ __name((command, known = /* @__PURE__ */ new Map(), children) => {
3794
3842
  if (hidden(command))
@@ -3895,7 +3943,7 @@ var sharedCommand = /* @__PURE__ */ __name((factory) => (...args) => {
3895
3943
  return result;
3896
3944
  }, "sharedCommand");
3897
3945
 
3898
- // node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/index.js
3946
+ // node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/index.js
3899
3947
  var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
3900
3948
  let command = root;
3901
3949
  const path2 = [];
@@ -3913,7 +3961,7 @@ var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
3913
3961
  }
3914
3962
  }, "refuseJoinedPath");
3915
3963
 
3916
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/cli/command-server-request.js
3964
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/cli/command-server-request.js
3917
3965
  import { AsyncLocalStorage } from "node:async_hooks";
3918
3966
  var requests = new AsyncLocalStorage();
3919
3967
  var inCommandServerRequest = /* @__PURE__ */ __name((request, work) => requests.run(request, work), "inCommandServerRequest");
@@ -3928,7 +3976,7 @@ var exitCodeSet = /* @__PURE__ */ __name(() => {
3928
3976
  return direct;
3929
3977
  }, "exitCodeSet");
3930
3978
 
3931
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/sends/guarded.js
3979
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/sends/guarded.js
3932
3980
  import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
3933
3981
  var sentIds = /* @__PURE__ */ __name((typed2, message2) => ({
3934
3982
  messageId: message2.id,
@@ -4034,7 +4082,7 @@ var guardedWrite = /* @__PURE__ */ __name(async (guard, attempt, act, settled2 =
4034
4082
  }, "guardedWrite");
4035
4083
  var codeOf = /* @__PURE__ */ __name((error) => typeof error?.code === "string" ? error.code : "unknown", "codeOf");
4036
4084
 
4037
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/cli/execution.js
4085
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/cli/execution.js
4038
4086
  var DEFAULT_COMMAND_MS = 3e4;
4039
4087
  var DEFAULT_COOPERATIVE_MS = 5 * 6e4;
4040
4088
  var DEFAULT_SYNC_MS = 15 * 6e4;
@@ -4217,15 +4265,15 @@ var withAbort = /* @__PURE__ */ __name(async (signal, body) => {
4217
4265
  }
4218
4266
  }, "withAbort");
4219
4267
 
4220
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/cli/messenger/accounts.js
4221
- import { existsSync, readdirSync, readFileSync } from "node:fs";
4268
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/cli/messenger/accounts.js
4269
+ import { existsSync, readdirSync, readFileSync as readFileSync2 } from "node:fs";
4222
4270
  import { join } from "node:path";
4223
4271
  var accountFileFor = /* @__PURE__ */ __name((app, profile, env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "accounts", `${profile}.json`), "accountFileFor");
4224
4272
  var rememberAccount = /* @__PURE__ */ __name((app, profile, id6, env) => writeSecurely(accountFileFor(app, profile, env), `${JSON.stringify({ account: id6 })}
4225
4273
  `, 384), "rememberAccount");
4226
4274
  var recalledAccount = /* @__PURE__ */ __name((app, provider, profile, env) => {
4227
4275
  try {
4228
- const { account: account2 } = JSON.parse(readFileSync(accountFileFor(app, profile, env), "utf8"));
4276
+ const { account: account2 } = JSON.parse(readFileSync2(accountFileFor(app, profile, env), "utf8"));
4229
4277
  return typeof account2 === "string" ? { provider, account: account2 } : void 0;
4230
4278
  } catch {
4231
4279
  return void 0;
@@ -4239,7 +4287,7 @@ var profilesWithAccounts = /* @__PURE__ */ __name((app, env) => {
4239
4287
  }, "profilesWithAccounts");
4240
4288
  var profilesHere = /* @__PURE__ */ __name((app, configured, env) => [.../* @__PURE__ */ new Set([...configured, ...profilesWithAccounts(app, env)])].sort(), "profilesHere");
4241
4289
 
4242
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/background/budget.js
4290
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/background/budget.js
4243
4291
  var DEADLINE_MARGIN_MS = 5e3;
4244
4292
  var DEADLINE_MARGIN_SHARE = 0.15;
4245
4293
  var DEFAULT_REQUEST_MS = 2e3;
@@ -4282,7 +4330,7 @@ var runBudget = /* @__PURE__ */ __name(({ requests: requests2, deadline, request
4282
4330
  };
4283
4331
  }, "runBudget");
4284
4332
 
4285
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/runs/log-events.js
4333
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/runs/log-events.js
4286
4334
  var CORE_LOG_EVENTS = defineLogEvents([
4287
4335
  { id: "provider.request", meaning: "a request went to the messenger", keys: ["operation"] },
4288
4336
  { id: "provider.response", meaning: "the messenger answered the request, or it failed", keys: ["operation"] },
@@ -4293,6 +4341,7 @@ var CORE_LOG_EVENTS = defineLogEvents([
4293
4341
  keys: ["operation", "reason"]
4294
4342
  },
4295
4343
  { id: "store.write", meaning: "a committed write changed rows of one store table", keys: ["table", "op", "n"] },
4344
+ { id: "sync.progress", meaning: "what a sync's progress line showed: chats and messages so far", keys: ["counts"] },
4296
4345
  { id: "command.crashed", meaning: "a command failed on a bug; where, never what", keys: ["error_class", "frames"] },
4297
4346
  {
4298
4347
  id: "events.dropped",
@@ -4315,10 +4364,11 @@ var DIAGNOSTIC_LOG_EVENTS = {
4315
4364
  response: "provider.response",
4316
4365
  warning: "client.warning",
4317
4366
  cache: "cache.answered",
4318
- store: "store.write"
4367
+ store: "store.write",
4368
+ progress: "sync.progress"
4319
4369
  };
4320
4370
 
4321
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/runs/recording.js
4371
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/runs/recording.js
4322
4372
  var recorded = /* @__PURE__ */ __name(async (options, body) => {
4323
4373
  const recording = startRecording(options);
4324
4374
  try {
@@ -4533,7 +4583,7 @@ var partialOutcome = /* @__PURE__ */ __name((answer) => {
4533
4583
  return void 0;
4534
4584
  }, "partialOutcome");
4535
4585
 
4536
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/cli/deadline.js
4586
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/cli/deadline.js
4537
4587
  var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
4538
4588
  if (ms2 === void 0)
4539
4589
  return body();
@@ -4559,7 +4609,7 @@ var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
4559
4609
  }
4560
4610
  }, "withDeadline");
4561
4611
 
4562
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/cli/profile.js
4612
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/cli/profile.js
4563
4613
  var asFirstWord = /* @__PURE__ */ __name((profile) => `${profile} `, "asFirstWord");
4564
4614
  var PLAIN_NAME = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
4565
4615
  var isProfileName = /* @__PURE__ */ __name((word) => PLAIN_NAME.test(word), "isProfileName");
@@ -4628,20 +4678,10 @@ var sampleCommand = /* @__PURE__ */ __name((commands) => {
4628
4678
  return void 0;
4629
4679
  }, "sampleCommand");
4630
4680
 
4631
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/cli/settings.js
4681
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/cli/settings.js
4632
4682
  import { existsSync as existsSync5 } from "node:fs";
4633
4683
 
4634
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/models/endpoint.js
4635
- var endpoint = /* @__PURE__ */ __name((value) => {
4636
- try {
4637
- const url3 = new URL(value);
4638
- return ["https:", "http:"].includes(url3.protocol) && !url3.username && !url3.password && !url3.search && !url3.hash;
4639
- } catch {
4640
- return false;
4641
- }
4642
- }, "endpoint");
4643
-
4644
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/models/settings.js
4684
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/models/settings.js
4645
4685
  var MODEL_FIELDS = ["provider", "model", "base_url"];
4646
4686
  var modelSettingsShape = record(pipe(string(), regex(/^[a-z][a-z0-9-]*$/)), strictObject({
4647
4687
  provider: optional(picklist(["off", "openai", "anthropic"])),
@@ -4710,7 +4750,7 @@ var modelTarget = /* @__PURE__ */ __name((settings, purpose) => {
4710
4750
  };
4711
4751
  }, "modelTarget");
4712
4752
 
4713
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/analysis/settings.js
4753
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/analysis/settings.js
4714
4754
  var model = pipe(string(), trim(), minLength(1), maxLength(200));
4715
4755
  var url2 = pipe(string(), check(endpoint, "use an HTTP/S endpoint without credentials, query or fragment"));
4716
4756
  var AI_FIELDS = {
@@ -4754,7 +4794,7 @@ var resolveAISettings = /* @__PURE__ */ __name((prefix, layers, env) => {
4754
4794
  };
4755
4795
  }, "resolveAISettings");
4756
4796
 
4757
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/domain/duration.js
4797
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/domain/duration.js
4758
4798
  var DURATION = /^(\d+)(ms|s|m|h|d)$/;
4759
4799
  var UNIT_MS = { ms: 1, s: 1e3, m: 6e4, h: 36e5, d: 864e5 };
4760
4800
  var parseDuration = /* @__PURE__ */ __name((value, source2) => {
@@ -4768,7 +4808,7 @@ var parseDuration = /* @__PURE__ */ __name((value, source2) => {
4768
4808
  return ms2;
4769
4809
  }, "parseDuration");
4770
4810
 
4771
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/embeddings/models.js
4811
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/embeddings/models.js
4772
4812
  import { existsSync as existsSync2 } from "node:fs";
4773
4813
  import { join as join2 } from "node:path";
4774
4814
  var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/${repository}/resolve/${commit}/${name}`, "huggingFace");
@@ -5045,7 +5085,7 @@ var vectorModelKey = /* @__PURE__ */ __name((model3) => {
5045
5085
  }, "vectorModelKey");
5046
5086
  var meaningFloor = /* @__PURE__ */ __name((key) => key === "local:e5-small:384" ? 0.8 : 0, "meaningFloor");
5047
5087
 
5048
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/services/history-limits.js
5088
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/history-limits.js
5049
5089
  var HISTORY_MAX_DAYS = 1095;
5050
5090
  var DEFAULT_HISTORY_LIMITS = { dialogDays: 1095, groupDays: 365, groupMembersMax: 50 };
5051
5091
  var DAY_MS = 24 * 60 * 60 * 1e3;
@@ -5092,8 +5132,8 @@ var limitBatch = /* @__PURE__ */ __name((batch, shapes, included, limits, now =
5092
5132
  return { batch: { ...batch, messages }, skipped };
5093
5133
  }, "limitBatch");
5094
5134
 
5095
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/cli/bot/registry.js
5096
- import { existsSync as existsSync3, readdirSync as readdirSync2, readFileSync as readFileSync2 } from "node:fs";
5135
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/cli/bot/registry.js
5136
+ import { existsSync as existsSync3, readdirSync as readdirSync2, readFileSync as readFileSync3 } from "node:fs";
5097
5137
  import { join as join3 } from "node:path";
5098
5138
  var botsDirectory = /* @__PURE__ */ __name((app, env = process.env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "bots"), "botsDirectory");
5099
5139
  var botFiles = /* @__PURE__ */ __name((app, profile, env = process.env) => {
@@ -5163,7 +5203,7 @@ var ChatRegistry = class {
5163
5203
  if (!existsSync3(this.#path))
5164
5204
  return {};
5165
5205
  try {
5166
- const parsed = JSON.parse(readFileSync2(this.#path, "utf8"));
5206
+ const parsed = JSON.parse(readFileSync3(this.#path, "utf8"));
5167
5207
  return parsed && typeof parsed === "object" ? parsed : {};
5168
5208
  } catch {
5169
5209
  return {};
@@ -5181,10 +5221,10 @@ var registryProfiles = /* @__PURE__ */ __name((app, env = process.env) => {
5181
5221
  return readdirSync2(directory, { withFileTypes: true }).filter((entry) => entry.isFile() && entry.name.endsWith(".json")).map((entry) => entry.name).map((name) => name.slice(0, -".json".length));
5182
5222
  }, "registryProfiles");
5183
5223
 
5184
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
5185
- import { readFileSync as readFileSync3 } from "node:fs";
5224
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
5225
+ import { readFileSync as readFileSync4 } from "node:fs";
5186
5226
 
5187
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/cli/config-repair.js
5227
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/cli/config-repair.js
5188
5228
  var REPAIR_WORDS = {
5189
5229
  byte_order_mark: "an invisible byte-order mark at the start",
5190
5230
  comment: "a comment, which JSON does not allow",
@@ -5425,7 +5465,7 @@ ${parts.join(",\n")}
5425
5465
  ${indent}${close}`;
5426
5466
  }, "serialise");
5427
5467
 
5428
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
5468
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
5429
5469
  var isNode = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
5430
5470
  var SECTIONS = ["personal", "bot"];
5431
5471
  var SHELL_SAFE = /^[A-Za-z0-9_.:@-]*$/;
@@ -5699,7 +5739,7 @@ var checkConfigText = /* @__PURE__ */ __name((text5, { file, tool, schema: schem
5699
5739
  var wholeFile = /* @__PURE__ */ __name((file, what) => ({ kind: "invalid_value", file, what }), "wholeFile");
5700
5740
  var readConfigText = /* @__PURE__ */ __name((path2) => {
5701
5741
  try {
5702
- return { text: readFileSync3(path2, "utf8") };
5742
+ return { text: readFileSync4(path2, "utf8") };
5703
5743
  } catch (error) {
5704
5744
  const code = error.code;
5705
5745
  if (code === "ENOENT")
@@ -5719,7 +5759,7 @@ var readConfigFile = /* @__PURE__ */ __name((path2) => {
5719
5759
  return "issue" in parsed ? { issue: publicIssue(parsed.issue) } : parsed;
5720
5760
  }, "readConfigFile");
5721
5761
 
5722
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/cli/default-config.js
5762
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/cli/default-config.js
5723
5763
  import { existsSync as existsSync4, linkSync, mkdirSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";
5724
5764
  import { dirname, join as join4 } from "node:path";
5725
5765
  var DEFAULT_CONFIG = {
@@ -5748,7 +5788,7 @@ function ensureDefaultConfig(path2, config = DEFAULT_CONFIG) {
5748
5788
  }
5749
5789
  __name(ensureDefaultConfig, "ensureDefaultConfig");
5750
5790
 
5751
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/cli/setting-defaults.js
5791
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/cli/setting-defaults.js
5752
5792
  var isNode2 = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
5753
5793
  var parentOf = /* @__PURE__ */ __name((config, key) => {
5754
5794
  const path2 = key.split(".");
@@ -5770,7 +5810,7 @@ var withSettingDefaults = /* @__PURE__ */ __name((raw, declared) => {
5770
5810
  return { config, added };
5771
5811
  }, "withSettingDefaults");
5772
5812
 
5773
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/cli/settings.js
5813
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/cli/settings.js
5774
5814
  var DEFAULT_LIMIT = DEFAULT_CONFIG.defaults.limit;
5775
5815
  var DEFAULT_KEEP_RUNS_FOR_DAYS = DEFAULT_CONFIG.defaults.keep_runs_for_days;
5776
5816
  var DEFAULT_SENDS_PER_HOUR = DEFAULT_CONFIG.defaults.sends_per_hour;
@@ -5940,11 +5980,12 @@ var fromFile = /* @__PURE__ */ __name((settings, key, fallback) => first([
5940
5980
  ], fallback), "fromFile");
5941
5981
  var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
5942
5982
  const declared = extension.permissions;
5943
- const profileEntries = {
5983
+ const botEntries = {
5944
5984
  ...SHARED_PROFILE_ENTRIES,
5945
5985
  ...declared ? { permissions: optional(commandPathLevels) } : {},
5946
5986
  ...extension.profile
5947
5987
  };
5988
+ const profileEntries = { ...botEntries, ...extension.personal };
5948
5989
  const defaultsOnly = { ...SHARED_DEFAULTS_ONLY, ...extension.defaults };
5949
5990
  const defaultsEntries = { ...profileEntries, ...defaultsOnly };
5950
5991
  const strictOf = /* @__PURE__ */ __name((entries) => strictObject(entries, objectMessage), "strictOf");
@@ -5956,7 +5997,7 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
5956
5997
  defaults: optional(strictOf(defaultsEntries)),
5957
5998
  profiles: optional(record(string(), strictOf(profileEntries), "has to be an object of profiles, by name"), {}),
5958
5999
  personal: optional(kindSection(profileEntries)),
5959
- bot: optional(kindSection({ ...profileEntries, ...BOT_ONLY_ENTRIES }))
6000
+ bot: optional(kindSection({ ...botEntries, ...BOT_ONLY_ENTRIES }))
5960
6001
  };
5961
6002
  const schema2 = strictOf(configEntries);
5962
6003
  const defaultsOnlyKeys = Object.keys(defaultsOnly);
@@ -6295,7 +6336,7 @@ var given = /* @__PURE__ */ __name((value) => {
6295
6336
  return trimmed === void 0 || trimmed === "" ? void 0 : trimmed;
6296
6337
  }, "given");
6297
6338
 
6298
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/cli/context.js
6339
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/cli/context.js
6299
6340
  var runBudgetOf = /* @__PURE__ */ __name((command, requests2) => {
6300
6341
  const { deadline, signal, app } = environmentOf(command);
6301
6342
  const now = deadline?.();
@@ -6364,6 +6405,7 @@ var baseContext = /* @__PURE__ */ __name((command, resolveSettings) => {
6364
6405
  });
6365
6406
  const closeables = [];
6366
6407
  const ranFor = namedProfile(settings);
6408
+ let namedTheAnswer = false;
6367
6409
  return {
6368
6410
  settings,
6369
6411
  renderer,
@@ -6379,6 +6421,9 @@ var baseContext = /* @__PURE__ */ __name((command, resolveSettings) => {
6379
6421
  return withAbort(environment.commandSignal, () => withDeadline(unbounded ? void 0 : settings.commandTimeoutMs, closeables, () => body(() => {
6380
6422
  })));
6381
6423
  const runName = name ?? `${environment.agent ? "mcp " : ""}${commandPath(command)}`;
6424
+ const answersFor = !environment.agent && name === void 0 && !namedTheAnswer;
6425
+ if (answersFor)
6426
+ namedTheAnswer = true;
6382
6427
  return recorded({
6383
6428
  app: environment.app,
6384
6429
  command: runName,
@@ -6405,7 +6450,7 @@ var baseContext = /* @__PURE__ */ __name((command, resolveSettings) => {
6405
6450
  ...settings.keepSuccessfulRunsForDays === void 0 ? {} : { keepSuccessDays: settings.keepSuccessfulRunsForDays },
6406
6451
  ...settings.keepStoreRunsForDays === void 0 ? {} : { keepStoreDays: settings.keepStoreRunsForDays },
6407
6452
  ...settings.runsSizeLimitMb === void 0 ? {} : { maxBytes: settings.runsSizeLimitMb * 1024 * 1024 },
6408
- processRun: !environment.agent,
6453
+ processRun: answersFor,
6409
6454
  format,
6410
6455
  streams,
6411
6456
  env
@@ -6431,7 +6476,7 @@ var commandPath = /* @__PURE__ */ __name((command) => {
6431
6476
  return words2.join(" ");
6432
6477
  }, "commandPath");
6433
6478
 
6434
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/cli/effects.js
6479
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/cli/effects.js
6435
6480
  var REMOTE_READ = { remote: "read", local: "read" };
6436
6481
  var FETCH = { remote: "read", local: "write" };
6437
6482
  var REMOTE_WRITE = { remote: "write", local: "write" };
@@ -6502,6 +6547,7 @@ var fetchesOnly = /* @__PURE__ */ __name((command) => {
6502
6547
  return effects?.remote === "read" && effects.local === "write" && !STORE_WRITES.has(command) && !changesAuthority(command) && !OTHER_SERVICE.has(command) && !savesFiles(command);
6503
6548
  }, "fetchesOnly");
6504
6549
  var FILE_OPTION = /* @__PURE__ */ new WeakMap();
6550
+ var fileOptionOf = /* @__PURE__ */ __name((command) => FILE_OPTION.get(command), "fileOptionOf");
6505
6551
  var writesFileNow = /* @__PURE__ */ __name((command) => {
6506
6552
  const option = FILE_OPTION.get(command);
6507
6553
  return option === void 0 || command.opts()[option] !== void 0;
@@ -6563,7 +6609,7 @@ var refuseUnderReadOnly = /* @__PURE__ */ __name((command, what) => {
6563
6609
  throw readOnlyRefusal(lock, what);
6564
6610
  }, "refuseUnderReadOnly");
6565
6611
 
6566
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/account.js
6612
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/account.js
6567
6613
  var account = strictObject({
6568
6614
  provider: text,
6569
6615
  id,
@@ -6573,7 +6619,7 @@ var account = strictObject({
6573
6619
  scope: optional(picklist(["personal", "work"]))
6574
6620
  });
6575
6621
 
6576
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/account-session.js
6622
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/account-session.js
6577
6623
  var accountSession = strictObject({
6578
6624
  current: boolean(),
6579
6625
  client: nullable(text),
@@ -6583,7 +6629,7 @@ var accountSession = strictObject({
6583
6629
  created_at: optional(nullable(time))
6584
6630
  });
6585
6631
 
6586
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/account-change.js
6632
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/account-change.js
6587
6633
  var accountChange = strictObject({ operation_id: id, account: omit(account, ["provider", "scope"]) });
6588
6634
  var endedAccountSessions = strictObject({ operation_id: id, sessions: array(accountSession) });
6589
6635
  var audience = picklist(["everyone", "contacts", "nobody"]);
@@ -6612,7 +6658,7 @@ var accountRemoval = strictObject({
6612
6658
  kept: array(strictObject({ kind: removalKind, target: text, reason: text }))
6613
6659
  });
6614
6660
 
6615
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/account-profile.js
6661
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/account-profile.js
6616
6662
  var accountProfile = strictObject({
6617
6663
  profile: id,
6618
6664
  current: boolean(),
@@ -6624,7 +6670,7 @@ var accountProfile = strictObject({
6624
6670
  bot: optional(literal(true))
6625
6671
  });
6626
6672
 
6627
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/counter-reading.js
6673
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/counter-reading.js
6628
6674
  var milliseconds = pipe(number(), minValue(0));
6629
6675
  var counterReading = strictObject({
6630
6676
  counter: picklist(["views", "reactions", "comments"]),
@@ -6636,7 +6682,7 @@ var counterReading = strictObject({
6636
6682
  });
6637
6683
  var selection = record(string(), unknown());
6638
6684
 
6639
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/admin-report.js
6685
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/admin-report.js
6640
6686
  var adminRow = strictObject({
6641
6687
  ref: reference,
6642
6688
  /** What `stats * evidence` takes: a person id, a stay or a message locator. */
@@ -6689,7 +6735,7 @@ var adminReport = strictObject({
6689
6735
  rows: array(adminRow)
6690
6736
  });
6691
6737
 
6692
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/task.js
6738
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/task.js
6693
6739
  var closeSuggestion = strictObject({
6694
6740
  as: picklist(["done", "dismissed"]),
6695
6741
  /** The agent's name. */
@@ -6751,7 +6797,7 @@ var task = strictObject({
6751
6797
  updated_at: optional(time)
6752
6798
  });
6753
6799
 
6754
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/agenda.js
6800
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/agenda.js
6755
6801
  var agendaChat = strictObject({
6756
6802
  chat: reference,
6757
6803
  title: nullable(text),
@@ -6821,11 +6867,11 @@ var agenda = strictObject({
6821
6867
  unlisted_categories: array(strictObject({ name: text, open_tasks: number() }))
6822
6868
  });
6823
6869
 
6824
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/analysis-consent.js
6870
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/analysis-consent.js
6825
6871
  var analysisConsent = strictObject({ chat: id, provider: text, at: time });
6826
6872
  var analysisConsentRevocation = strictObject({ revoked: boolean() });
6827
6873
 
6828
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/attachment.js
6874
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/attachment.js
6829
6875
  var attachment = strictObject({
6830
6876
  /** The message it came with, as a locator; absent inside that message. */
6831
6877
  message: optional(reference),
@@ -6861,9 +6907,16 @@ var attachment = strictObject({
6861
6907
  url: optional(text)
6862
6908
  }))))
6863
6909
  });
6864
- var hitFile = strictObject({ position: count, kind: text, name: optional(text), size: optional(count) });
6910
+ var hitFile = strictObject({
6911
+ position: count,
6912
+ kind: text,
6913
+ name: optional(text),
6914
+ size: optional(count),
6915
+ /** The saved copy on this computer, once `messages download` fetched it; absent until then. */
6916
+ local_path: optional(text)
6917
+ });
6865
6918
 
6866
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/batch-result.js
6919
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/batch-result.js
6867
6920
  var actionableError = objectWithRest({
6868
6921
  code: text,
6869
6922
  message: text,
@@ -6880,7 +6933,7 @@ var batchResult = strictObject({
6880
6933
  max_error_percent: count
6881
6934
  });
6882
6935
 
6883
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/extraction-report.js
6936
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/extraction-report.js
6884
6937
  var extractionItem = strictObject({
6885
6938
  ref: reference,
6886
6939
  attachment: count,
@@ -6913,7 +6966,7 @@ var extractionReport = strictObject({
6913
6966
  cursor: optional(text)
6914
6967
  });
6915
6968
 
6916
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/attachment-results.js
6969
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/attachment-results.js
6917
6970
  var fingerprint = pipe(text, regex(/^[a-f0-9]{64}$/));
6918
6971
  var attachmentBytes = strictObject({
6919
6972
  ref: reference,
@@ -6938,10 +6991,13 @@ var attachmentTextChange = strictObject({
6938
6991
  attachment: count,
6939
6992
  origin: literal("agent"),
6940
6993
  chars: count,
6941
- replaced: nullable(picklist(["extracted", "agent"]))
6994
+ replaced: nullable(picklist(["extracted", "agent"])),
6995
+ /** `images read` only: who read the picture, `agent:claude` or `agent:codex/<model>`, and what it read. */
6996
+ extractor: optional(text),
6997
+ text: optional(text)
6942
6998
  });
6943
6999
 
6944
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/botcheck/reasons.js
7000
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/botcheck/reasons.js
6945
7001
  var WEIGHTS = {
6946
7002
  bot: 3,
6947
7003
  scam: 3,
@@ -6966,7 +7022,7 @@ var LINK = /https?:\/\/|t\.me\/|www\./i;
6966
7022
  var DIGITS = /\d{5,}/;
6967
7023
  var oddName = /* @__PURE__ */ __name((name) => !name?.trim() || DIGITS.test(name) || LINK.test(name), "oddName");
6968
7024
 
6969
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/contact-activity.js
7025
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/contact-activity.js
6970
7026
  var linkedIdentity = strictObject({
6971
7027
  provider: text,
6972
7028
  id,
@@ -6974,6 +7030,9 @@ var linkedIdentity = strictObject({
6974
7030
  username: nullable(text),
6975
7031
  phone: optional(nullable(text)),
6976
7032
  email: optional(nullable(text)),
7033
+ /** Every phone and address the source gave, `phone` and `email` among them. */
7034
+ phones: optional(array(text)),
7035
+ emails: optional(array(text)),
6977
7036
  is_bot: nullable(boolean()),
6978
7037
  accounts: array(id),
6979
7038
  seen_in: array(strictObject({ account: id, scope: picklist(["personal", "work"]) })),
@@ -6984,6 +7043,8 @@ var linkedIdentity = strictObject({
6984
7043
  var linkedPerson = strictObject({
6985
7044
  uid: id,
6986
7045
  name: nullable(text),
7046
+ /** The name `people list` shows: the person's own, else an account's, a username, phone or address. */
7047
+ display_name: optional(nullable(text)),
6987
7048
  identities: array(linkedIdentity),
6988
7049
  /** An agent's link: the `identity_link` proposal the owner decides; the person is still as it was. */
6989
7050
  proposal: optional(text)
@@ -7016,7 +7077,7 @@ var contactCheck = strictObject({
7016
7077
  checked_at: time
7017
7078
  });
7018
7079
 
7019
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/member.js
7080
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/member.js
7020
7081
  var member = strictObject({
7021
7082
  id,
7022
7083
  name: nullable(text),
@@ -7039,7 +7100,7 @@ var member = strictObject({
7039
7100
  check: optional(record(string(), unknown()))
7040
7101
  });
7041
7102
 
7042
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/chat.js
7103
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/chat.js
7043
7104
  var setting = optional(nullable(boolean()));
7044
7105
  var chat = strictObject({
7045
7106
  ref: reference,
@@ -7080,7 +7141,7 @@ var chat = strictObject({
7080
7141
  members: optional(array(member))
7081
7142
  });
7082
7143
 
7083
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/message.js
7144
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/message.js
7084
7145
  var quoted = strictObject({
7085
7146
  id,
7086
7147
  sender_id: nullable(id),
@@ -7199,7 +7260,20 @@ var message = strictObject({
7199
7260
  provider_metadata: providerMetadata
7200
7261
  });
7201
7262
 
7202
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/contact-context.js
7263
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/recorded-meeting.js
7264
+ var recordedMeeting = strictObject({
7265
+ ref: reference,
7266
+ meeting_id: count,
7267
+ account: strictObject({ provider: text, account: text }),
7268
+ title: nullable(text),
7269
+ started_at: nullable(time),
7270
+ duration_ms: nullable(count),
7271
+ has_transcript: boolean(),
7272
+ event: nullable(reference),
7273
+ people: array(reference)
7274
+ });
7275
+
7276
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/contact-context.js
7203
7277
  var contextPerson = strictObject({ ...linkedPerson.entries, provider: text, id });
7204
7278
  var contextMessage = strictObject({
7205
7279
  locator: reference,
@@ -7245,6 +7319,8 @@ var context = strictObject({
7245
7319
  mentions: array(contextMessage),
7246
7320
  /** Calendar events they are invited to, one occurrence per series. */
7247
7321
  events: optional(strictObject({ upcoming: array(contextEvent), recent: array(contextEvent) })),
7322
+ /** Recorded meetings and calls they took part in, newest first. */
7323
+ meetings: optional(array(recordedMeeting)),
7248
7324
  limits: strictObject({ messages: count, bytes: count }),
7249
7325
  complete: boolean(),
7250
7326
  not_read: array(strictObject({
@@ -7403,12 +7479,24 @@ var contactPreparation = strictObject({
7403
7479
  })
7404
7480
  });
7405
7481
 
7406
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/deal.js
7482
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/deal.js
7407
7483
  var nullableText = nullable(text);
7408
7484
  var party = strictObject({ ref: reference, name: nullableText, owner: boolean() });
7409
7485
  var outcome = picklist(["open", "won", "lost"]);
7410
7486
  var crmAccount = nullable(strictObject({ provider: text, account: text }));
7411
7487
  var day = nullable(pipe(string(), regex(/^\d{4}-\d{2}-\d{2}$/)));
7488
+ var activity = strictObject({
7489
+ external_id: text,
7490
+ kind: picklist(CRM_ACTIVITY_KINDS),
7491
+ subject: text,
7492
+ body: nullableText,
7493
+ due_at: nullable(time),
7494
+ done: boolean(),
7495
+ /** The identity `<account>/user/<id>` responsible for it. */
7496
+ assignee: nullableText,
7497
+ created_at: time,
7498
+ updated_at: time
7499
+ });
7412
7500
  var deal = strictObject({
7413
7501
  id,
7414
7502
  ref: reference,
@@ -7423,6 +7511,9 @@ var deal = strictObject({
7423
7511
  base_stage: nullable(strictObject({ ref: reference, name: text })),
7424
7512
  status: outcome,
7425
7513
  organization: nullable(party),
7514
+ /** A CRM copy's own person and company as the CRM keeps them on it, such as a lead's with nobody linked yet. */
7515
+ contact_name: nullableText,
7516
+ company_name: nullableText,
7426
7517
  currency: nullableText,
7427
7518
  amount: nullableText,
7428
7519
  close_date: day,
@@ -7457,6 +7548,10 @@ var deal = strictObject({
7457
7548
  project_name: nullableText,
7458
7549
  created_at: time,
7459
7550
  updated_at: time,
7551
+ /** `show` of a CRM copy whose `activities` setting is on: its activities and tasks, open ones first. */
7552
+ activities: optional(array(activity)),
7553
+ /** `show` of a CRM copy: the newest recorded meetings and calls of its people, in its account's scope. */
7554
+ meetings: optional(array(recordedMeeting)),
7460
7555
  untrusted
7461
7556
  });
7462
7557
  var lead = deal;
@@ -7495,7 +7590,7 @@ var stage = strictObject({
7495
7590
  untrusted
7496
7591
  });
7497
7592
 
7498
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/business-context.js
7593
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/business-context.js
7499
7594
  var nullableText2 = nullable(text);
7500
7595
  var day2 = nullable(pipe(string(), regex(/^\d{4}-\d{2}-\d{2}$/)));
7501
7596
  var standing = picklist(STANDINGS);
@@ -7669,7 +7764,7 @@ var dealBrief = strictObject({
7669
7764
  not_read: coverage2.entries.not_read
7670
7765
  });
7671
7766
 
7672
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/chart.js
7767
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/chart.js
7673
7768
  var chart = strictObject({
7674
7769
  version: literal(1),
7675
7770
  kind: picklist(["bar", "line", "grouped-bar"]),
@@ -7684,7 +7779,7 @@ var chart = strictObject({
7684
7779
  file: optional(strictObject({ path: text, format: picklist(["svg", "png"]), width: count, height: count }))
7685
7780
  });
7686
7781
 
7687
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/folder.js
7782
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/folder.js
7688
7783
  var named = strictObject({
7689
7784
  id,
7690
7785
  title: nullable(text),
@@ -7707,7 +7802,7 @@ var folder = strictObject({
7707
7802
  excluded_chats: optional(array(named))
7708
7803
  });
7709
7804
 
7710
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/invite-link.js
7805
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/invite-link.js
7711
7806
  var inviteLink = strictObject({
7712
7807
  link: text,
7713
7808
  /** Who joins by it asks first, and an admin lets them in. */
@@ -7723,7 +7818,7 @@ var inviteLink = strictObject({
7723
7818
  joined_count: optional(count)
7724
7819
  });
7725
7820
 
7726
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/chat-admin.js
7821
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/chat-admin.js
7727
7822
  var operated = { operation_id: id, chat_id: id };
7728
7823
  var group = strictObject({
7729
7824
  ...omit(chat, ["ref", "provider", "account", "invite_link", "members"]).entries,
@@ -7803,7 +7898,7 @@ var chatFolderOrder = strictObject({
7803
7898
  folders: array(strictObject({ id, title: text }))
7804
7899
  });
7805
7900
 
7806
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/chat-change.js
7901
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/chat-change.js
7807
7902
  var operated2 = { operation_id: id, chat_id: id };
7808
7903
  var chatRemoval = strictObject(operated2);
7809
7904
  var chatMuting = strictObject({
@@ -7814,7 +7909,7 @@ var chatArchive = strictObject({ ...operated2, archived: boolean() });
7814
7909
  var chatPin = strictObject({ ...operated2, pinned: boolean() });
7815
7910
  var chatUnread = strictObject({ ...operated2, unread: literal(true) });
7816
7911
 
7817
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/chat-event.js
7912
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/chat-event.js
7818
7913
  var who = strictObject({ id: nullable(id), name: nullable(text), username: optional(nullable(text)) });
7819
7914
  var chatEvent = strictObject({
7820
7915
  chat_id: id,
@@ -7831,7 +7926,7 @@ var chatEvent = strictObject({
7831
7926
  before: optional(strictObject({ name: nullable(text), username: nullable(text) }))
7832
7927
  });
7833
7928
 
7834
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/chat-metadata.js
7929
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/chat-metadata.js
7835
7930
  var chatMetadata = strictObject({
7836
7931
  chat_id: id,
7837
7932
  title: nullable(text),
@@ -7846,7 +7941,7 @@ var chatMetadataRefresh = strictObject({
7846
7941
  has_more: boolean()
7847
7942
  });
7848
7943
 
7849
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/chat-moderation.js
7944
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/chat-moderation.js
7850
7945
  var action = picklist(["report", "delete", "remove"]);
7851
7946
  var level = picklist(["deny", "readonly", "ask", "allow"]);
7852
7947
  var chatRules = strictObject({
@@ -7883,7 +7978,7 @@ var chatModeration = strictObject({
7883
7978
  }))
7884
7979
  });
7885
7980
 
7886
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/chat-stats.js
7981
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/chat-stats.js
7887
7982
  var optionalCount = optional(count);
7888
7983
  var minutes = nullable(number());
7889
7984
  var chatStats = strictObject({
@@ -7936,6 +8031,8 @@ var chatStats = strictObject({
7936
8031
  });
7937
8032
  var ms = nullable(pipe(number(), minValue(0)));
7938
8033
  var taskStats = strictObject({
8034
+ /** Every account counted, `provider:account`, when the answer reads several (memo without `--source`). */
8035
+ accounts: optional(array(text)),
7939
8036
  /** Open tasks across every row. */
7940
8037
  open: count,
7941
8038
  created: count,
@@ -7957,7 +8054,7 @@ var taskStats = strictObject({
7957
8054
  }))
7958
8055
  });
7959
8056
 
7960
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/chat-tracking.js
8057
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/chat-tracking.js
7961
8058
  var memberCount = strictObject({
7962
8059
  day: pipe(text, isoDate()),
7963
8060
  participants: nullable(count),
@@ -7980,7 +8077,7 @@ var chatTracking = strictObject({
7980
8077
  tracked: boolean()
7981
8078
  });
7982
8079
 
7983
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/contact-read.js
8080
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/contact-read.js
7984
8081
  var contactLookup = strictObject({ id, name: nullable(text), username: nullable(text) });
7985
8082
  var contactSync = strictObject({ added: count, changed: count, known: count });
7986
8083
  var profileFields = {
@@ -8018,7 +8115,7 @@ var profileFields = {
8018
8115
  }))
8019
8116
  };
8020
8117
 
8021
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/contact.js
8118
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/contact.js
8022
8119
  var contact = strictObject({
8023
8120
  ref: reference,
8024
8121
  id,
@@ -8049,7 +8146,7 @@ var contact = strictObject({
8049
8146
  notes: optional(array(strictObject({ id, text, revision: count, created_at: time, updated_at: time })))
8050
8147
  });
8051
8148
 
8052
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/contact-note.js
8149
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/contact-note.js
8053
8150
  var contactNote = strictObject({
8054
8151
  id,
8055
8152
  /** The contact, as a `contact:` reference. */
@@ -8061,13 +8158,13 @@ var contactNote = strictObject({
8061
8158
  updated_at: time
8062
8159
  });
8063
8160
 
8064
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/contact-write.js
8161
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/contact-write.js
8065
8162
  var addressBookPerson = strictObject({ id, name: nullable(text), username: nullable(text) });
8066
8163
  var contactUpdate = strictObject({ operation_id: id, person: addressBookPerson });
8067
8164
  var contactStateChange = strictObject({ operation_id: id, person_id: id });
8068
8165
  var contactImport = strictObject({ operation_id: id, sent: count, recognised: array(addressBookPerson) });
8069
8166
 
8070
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/conversation.js
8167
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/conversation.js
8071
8168
  var conversation = strictObject({
8072
8169
  id,
8073
8170
  chat: reference,
@@ -8082,7 +8179,7 @@ var conversation = strictObject({
8082
8179
  rules_version: count
8083
8180
  });
8084
8181
 
8085
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/conversation-preparation.js
8182
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/conversation-preparation.js
8086
8183
  var conversationBuild = strictObject({
8087
8184
  chat: id,
8088
8185
  messages: count,
@@ -8107,7 +8204,7 @@ var catchUpPreparation = strictObject({
8107
8204
  prepared: optional(conversationPreparation)
8108
8205
  });
8109
8206
 
8110
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/conversation-results.js
8207
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/conversation-results.js
8111
8208
  var conversationDetails = union([
8112
8209
  strictObject({ ...conversation.entries, messages: array(message) }),
8113
8210
  message
@@ -8197,7 +8294,7 @@ var conversationHit = strictObject({
8197
8294
  stale: boolean()
8198
8295
  });
8199
8296
 
8200
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/counters.js
8297
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/counters.js
8201
8298
  var counters = strictObject({
8202
8299
  cutoff: time,
8203
8300
  max_age_ms: milliseconds,
@@ -8227,7 +8324,7 @@ var counterRefresh = strictObject({
8227
8324
  complete: optional(boolean())
8228
8325
  });
8229
8326
 
8230
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/document.js
8327
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/document.js
8231
8328
  var document = strictObject({
8232
8329
  ref: reference,
8233
8330
  id,
@@ -8242,7 +8339,7 @@ var document = strictObject({
8242
8339
  owners: optional(array(text))
8243
8340
  });
8244
8341
 
8245
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/document-link.js
8342
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/document-link.js
8246
8343
  var documentLink = strictObject({
8247
8344
  ref: reference,
8248
8345
  url: text,
@@ -8253,7 +8350,7 @@ var documentLink = strictObject({
8253
8350
  sender: strictObject({ id: nullable(id), name: nullable(text) })
8254
8351
  });
8255
8352
 
8256
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/evidence.js
8353
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/evidence.js
8257
8354
  var evidenceMessage = pick(message, ["ref", "chat_title", "timestamp", "sender_name", "text"]);
8258
8355
  var contribution = strictObject({
8259
8356
  message: evidenceMessage,
@@ -8283,7 +8380,7 @@ var retentionStay = strictObject({
8283
8380
  });
8284
8381
  var evidence = union([contribution, retentionStay]);
8285
8382
 
8286
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/fact.js
8383
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/fact.js
8287
8384
  var fact = strictObject({
8288
8385
  ref: reference,
8289
8386
  id,
@@ -8314,7 +8411,7 @@ var fact = strictObject({
8314
8411
  updated_at: time
8315
8412
  });
8316
8413
 
8317
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/hit.js
8414
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/hit.js
8318
8415
  var hit = strictObject({
8319
8416
  kind: picklist(["message", "mail", "note", "document", "event", "meeting", "deal", "lead", ...BUSINESS_KINDS]),
8320
8417
  ref: reference,
@@ -8360,7 +8457,7 @@ var hit = strictObject({
8360
8457
  untrusted
8361
8458
  });
8362
8459
 
8363
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/identity.js
8460
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/identity.js
8364
8461
  var identity = strictObject({
8365
8462
  ref: reference,
8366
8463
  provider: text,
@@ -8376,7 +8473,7 @@ var identity = strictObject({
8376
8473
  person: optional(nullable(reference))
8377
8474
  });
8378
8475
 
8379
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/image-embedding.js
8476
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/image-embedding.js
8380
8477
  var imageEmbedding = strictObject({
8381
8478
  model: text,
8382
8479
  embedded: count,
@@ -8385,13 +8482,13 @@ var imageEmbedding = strictObject({
8385
8482
  more: boolean()
8386
8483
  });
8387
8484
 
8388
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
8485
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
8389
8486
  import { spawn } from "node:child_process";
8390
8487
  import { randomBytes } from "node:crypto";
8391
- import { closeSync, existsSync as existsSync6, mkdirSync as mkdirSync2, openSync, readdirSync as readdirSync3, readFileSync as readFileSync4, realpathSync, rmSync as rmSync2 } from "node:fs";
8488
+ import { closeSync, existsSync as existsSync6, mkdirSync as mkdirSync2, openSync, readdirSync as readdirSync3, readFileSync as readFileSync5, realpathSync, rmSync as rmSync2 } from "node:fs";
8392
8489
  import { dirname as dirname2, join as join5 } from "node:path";
8393
8490
 
8394
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/background/checkpoints.js
8491
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/background/checkpoints.js
8395
8492
  var progressOf = /* @__PURE__ */ __name((input) => {
8396
8493
  const total = input.total ?? null;
8397
8494
  const updated = input.updatedAt ?? null;
@@ -8407,7 +8504,7 @@ var progressOf = /* @__PURE__ */ __name((input) => {
8407
8504
  };
8408
8505
  }, "progressOf");
8409
8506
 
8410
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/runs/record-log.js
8507
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/runs/record-log.js
8411
8508
  var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) => {
8412
8509
  const run = currentRun();
8413
8510
  const trace = traceId ?? run.traceId;
@@ -8421,7 +8518,7 @@ var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) =
8421
8518
  }));
8422
8519
  }, "recordLogFor");
8423
8520
 
8424
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
8521
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
8425
8522
  var JOB_STATES = ["running", "done", "partial", "failed", "cancelled", "died"];
8426
8523
  var spawnDetached = /* @__PURE__ */ __name((argv, env, log) => {
8427
8524
  const out = openSync(log, "a", 384);
@@ -8448,7 +8545,7 @@ var readJob = /* @__PURE__ */ __name((dir, id6) => {
8448
8545
  if (!/^[\w-]+$/.test(id6) || !existsSync6(jobPath(dir, id6)))
8449
8546
  return void 0;
8450
8547
  try {
8451
- return JSON.parse(readFileSync4(jobPath(dir, id6), "utf8"));
8548
+ return JSON.parse(readFileSync5(jobPath(dir, id6), "utf8"));
8452
8549
  } catch {
8453
8550
  return void 0;
8454
8551
  }
@@ -8576,7 +8673,7 @@ var startArchiveJob = /* @__PURE__ */ __name((app, env, profile, input, spawnJob
8576
8673
  return { job: id6, pid, chat: input.chat, log };
8577
8674
  }, "startArchiveJob");
8578
8675
 
8579
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/job.js
8676
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/job.js
8580
8677
  var problem = strictObject({ code: text, message: text });
8581
8678
  var job = strictObject({
8582
8679
  id,
@@ -8599,7 +8696,7 @@ var job = strictObject({
8599
8696
  error: optional(problem)
8600
8697
  });
8601
8698
 
8602
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/join-request.js
8699
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/join-request.js
8603
8700
  var joinRequest = strictObject({
8604
8701
  person_id: id,
8605
8702
  name: nullable(text),
@@ -8610,7 +8707,7 @@ var joinRequest = strictObject({
8610
8707
  about: optional(text)
8611
8708
  });
8612
8709
 
8613
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/list-results.js
8710
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/list-results.js
8614
8711
  var botProfile = strictObject({
8615
8712
  name: text,
8616
8713
  token: text,
@@ -8674,12 +8771,39 @@ var scheduledJob = strictObject({
8674
8771
  error: optional(text)
8675
8772
  })))
8676
8773
  })),
8677
- /** Agent schedules: what today's runs cost, in US dollars. */
8678
- spent_today_usd: optional(number()),
8679
- /** Agent schedules: the cap on one run (`--max-cost`), null when none. */
8774
+ /** Agent schedules: the agent it starts, as `schedule agents list` names it; null for a program no agent here runs. */
8775
+ harness: optional(nullable(text)),
8776
+ /** Agent schedules: whether the agent reports what a run cost; when it does not, the cost fields are null. */
8777
+ reports_cost: optional(boolean()),
8778
+ /** Agent schedules: what today's runs cost, in US dollars; null when the agent reports no cost (unknown, not 0). */
8779
+ spent_today_usd: optional(nullable(number())),
8780
+ /** Agent schedules: the cap on one run (`--max-cost`), null when none or when the agent reports no cost. */
8680
8781
  max_cost_usd: optional(nullable(number())),
8681
- /** Agent schedules: the daily cap in force, the schedule's `--max-cost-per-day` or the config's; 0 for none. */
8682
- max_cost_per_day_usd: optional(number())
8782
+ /**
8783
+ * Agent schedules: the daily cap in force, the schedule's `--max-cost-per-day` or the config's; 0 for none; null when
8784
+ * the agent reports no cost, so no cap can stop it.
8785
+ */
8786
+ max_cost_per_day_usd: optional(nullable(number()))
8787
+ });
8788
+ var scheduleHarness = strictObject({
8789
+ id: text,
8790
+ name: text,
8791
+ /** The program names it is found by on PATH, the first found wins. */
8792
+ programs: array(text),
8793
+ /** It reports what a run costs, so `--max-cost` and `--max-cost-per-day` hold. */
8794
+ reports_cost: boolean(),
8795
+ /** The agent's own limits hold a one-shot run to the CLIs' commands (claude, gemini, opencode). */
8796
+ restricted: boolean(),
8797
+ /** Why an agent that is not restricted is not, and what it may still do: a client shows it before the owner picks. */
8798
+ restricted_reason: nullable(text),
8799
+ /**
8800
+ * Not restricted, yet a schedule starts it once the owner accepts that with `--allow-dangerous` (codex, whose sandbox
8801
+ * blocks the network and most writes); refused without it (`agent.unrestricted`). False for the rest.
8802
+ */
8803
+ allowed_with_ack: boolean(),
8804
+ installed: boolean(),
8805
+ /** Where its program is, or null when it is not on PATH. */
8806
+ path: nullable(text)
8683
8807
  });
8684
8808
  var botTemplate = strictObject({
8685
8809
  name: nullable(text),
@@ -8707,7 +8831,7 @@ var stickerInventory = strictObject({
8707
8831
  url: optional(nullable(text))
8708
8832
  });
8709
8833
 
8710
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/poll-vote.js
8834
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/poll-vote.js
8711
8835
  var pollVote = strictObject({
8712
8836
  person_id: id,
8713
8837
  name: nullable(text),
@@ -8717,7 +8841,7 @@ var pollVote = strictObject({
8717
8841
  voted_at: time
8718
8842
  });
8719
8843
 
8720
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/listener.js
8844
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/listener.js
8721
8845
  var reactions = unwrap(unwrap(message.entries.reactions));
8722
8846
  var observation = strictObject({
8723
8847
  value: pipe(number(), minValue(0)),
@@ -8759,7 +8883,7 @@ var serveSummary = strictObject({
8759
8883
  tasks: optional(strictObject({ added: count, closed: count, review: count }))
8760
8884
  });
8761
8885
 
8762
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/mail-counts.js
8886
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/mail-counts.js
8763
8887
  var mailCounts = strictObject({
8764
8888
  by: picklist(["day", "week", "sender"]),
8765
8889
  received: count,
@@ -8774,7 +8898,7 @@ var mailCounts = strictObject({
8774
8898
  }))
8775
8899
  });
8776
8900
 
8777
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/mail-findings.js
8901
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/mail-findings.js
8778
8902
  var evidence2 = strictObject({ reference, fingerprint: text });
8779
8903
  var base = { id, evidence: array(evidence2) };
8780
8904
  var finding = variant("kind", [
@@ -8918,7 +9042,7 @@ var mailFindings = strictObject({
8918
9042
  receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome2) }))
8919
9043
  });
8920
9044
 
8921
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/media-archive.js
9045
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/media-archive.js
8922
9046
  var mediaArchive = strictObject({
8923
9047
  directory: text,
8924
9048
  chats: count,
@@ -8950,7 +9074,7 @@ var mediaArchiveTimer = union([
8950
9074
  strictObject({ ...timer, action: picklist(["install", "start", "stop", "uninstall"]) })
8951
9075
  ]);
8952
9076
 
8953
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation-parts.js
9077
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation-parts.js
8954
9078
  var preparationId = pipe(string(), minLength(1));
8955
9079
  var preparationCount = pipe(number(), integer(), minValue(0));
8956
9080
  var preparationTime = nullable(isoTime);
@@ -9042,7 +9166,7 @@ var preparationMeeting = strictObject({
9042
9166
  updated_at: isoTime
9043
9167
  });
9044
9168
 
9045
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/meeting-evidence.js
9169
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/meeting-evidence.js
9046
9170
  var meetingEvidence = preparationEvidence;
9047
9171
  var meetingPersonContext = strictObject({
9048
9172
  person: strictObject({ uid: string(), name: nullable(string()) }),
@@ -9064,7 +9188,7 @@ var meetingPersonContext = strictObject({
9064
9188
  })
9065
9189
  });
9066
9190
 
9067
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/meeting-findings.js
9191
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/meeting-findings.js
9068
9192
  var evidence3 = strictObject({ reference, fingerprint: text });
9069
9193
  var base2 = { id, project: reference, evidence: array(evidence3) };
9070
9194
  var finding2 = variant("kind", [
@@ -9102,7 +9226,7 @@ var meetingFindings = strictObject({
9102
9226
  receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome3) }))
9103
9227
  });
9104
9228
 
9105
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/meeting-communications.js
9229
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/meeting-communications.js
9106
9230
  var communicationCoverage = strictObject({
9107
9231
  read_usage: strictObject({ reads: preparationCount, charged_bytes: preparationCount, reserved_bytes: preparationCount, remaining_bytes: preparationCount }),
9108
9232
  query: string(),
@@ -9147,7 +9271,7 @@ var preparationCommunications = strictObject({
9147
9271
  }))
9148
9272
  });
9149
9273
 
9150
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation.js
9274
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation.js
9151
9275
  var meetingPreparation = strictObject({
9152
9276
  communications: optional(preparationCommunications),
9153
9277
  schema_version: literal(1),
@@ -9260,7 +9384,7 @@ var meetingPreparation = strictObject({
9260
9384
  })
9261
9385
  });
9262
9386
 
9263
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/meeting-project-candidates.js
9387
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/meeting-project-candidates.js
9264
9388
  var count4 = pipe(number(), integer(), minValue(0));
9265
9389
  var id3 = pipe(string(), minLength(1));
9266
9390
  var text3 = string();
@@ -9324,7 +9448,7 @@ var meetingProjectCandidates = strictObject({
9324
9448
  })
9325
9449
  });
9326
9450
 
9327
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/meeting-series-inventory.js
9451
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/meeting-series-inventory.js
9328
9452
  var count5 = pipe(number(), integer(), minValue(0));
9329
9453
  var id4 = pipe(string(), minLength(1), maxLength(1e3));
9330
9454
  var meetingSeriesInventory = strictObject({
@@ -9354,7 +9478,7 @@ var meetingSeriesInventory = strictObject({
9354
9478
  })
9355
9479
  });
9356
9480
 
9357
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/meeting-task-proposal.js
9481
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/meeting-task-proposal.js
9358
9482
  var text4 = string();
9359
9483
  var id5 = pipe(number(), integer(), minValue(1));
9360
9484
  var revision = picklist(["current", "superseded"]);
@@ -9371,7 +9495,7 @@ var meetingTaskProposal = strictObject({
9371
9495
  persistence: literal("proposal-only")
9372
9496
  });
9373
9497
 
9374
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/memory.js
9498
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/memory.js
9375
9499
  var memory = strictObject({
9376
9500
  ref: reference,
9377
9501
  id,
@@ -9399,7 +9523,7 @@ var memory = strictObject({
9399
9523
  updated_at: time
9400
9524
  });
9401
9525
 
9402
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/mention.js
9526
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/mention.js
9403
9527
  var kind = picklist(["phone", "email", "url", "document", "person-name", "place"]);
9404
9528
  var status = picklist(["found", "linked", "proposed", "dismissed"]);
9405
9529
  var mention = strictObject({
@@ -9443,13 +9567,13 @@ var mentionRebuild = strictObject({
9443
9567
  mentions: count
9444
9568
  });
9445
9569
 
9446
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/message-change.js
9570
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/message-change.js
9447
9571
  var operated3 = { operation_id: id, chat_id: id };
9448
9572
  var messagePin = strictObject({ ...operated3, message_id: id, pinned: boolean() });
9449
9573
  var messageStar = strictObject({ ...operated3, message_id: id, starred: boolean() });
9450
9574
  var messageDeletion = strictObject({ ...operated3, deleted: array(id), for_everyone: boolean() });
9451
9575
 
9452
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/message-read.js
9576
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/message-read.js
9453
9577
  var messageTranscript = strictObject({
9454
9578
  message_id: id,
9455
9579
  text,
@@ -9507,7 +9631,7 @@ var evidencePacket = strictObject({
9507
9631
  }))
9508
9632
  });
9509
9633
 
9510
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/message-context.js
9634
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/message-context.js
9511
9635
  var messageThread = strictObject({
9512
9636
  ref: reference,
9513
9637
  chat: id,
@@ -9524,7 +9648,7 @@ var messageThread = strictObject({
9524
9648
  });
9525
9649
  var messageContext = union([message, messageThread]);
9526
9650
 
9527
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/message-counts.js
9651
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/message-counts.js
9528
9652
  var messageCounts = strictObject({
9529
9653
  by: picklist(["chat", "sender", "day", "hour"]),
9530
9654
  total: count,
@@ -9537,7 +9661,7 @@ var messageCounts = strictObject({
9537
9661
  }))
9538
9662
  });
9539
9663
 
9540
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/message-link.js
9664
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/message-link.js
9541
9665
  var messageLink = strictObject({
9542
9666
  ref: reference,
9543
9667
  url: nullable(text),
@@ -9554,7 +9678,7 @@ var messageLink = strictObject({
9554
9678
  })))
9555
9679
  });
9556
9680
 
9557
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/message-transfer.js
9681
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/message-transfer.js
9558
9682
  var savedMessageFile = strictObject({
9559
9683
  kind: text,
9560
9684
  path: text,
@@ -9641,7 +9765,7 @@ var messageSyncAll = strictObject({
9641
9765
  var messageSyncStarted = strictObject({ job: id, pid: count, chat: text, log: text });
9642
9766
  var messageSync = union([messageSyncEstimate, messageSyncChat, messageSyncAll, messageSyncStarted]);
9643
9767
 
9644
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/message-write.js
9768
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/message-write.js
9645
9769
  var messageWrite = strictObject({
9646
9770
  operation_id: id,
9647
9771
  message,
@@ -9656,7 +9780,7 @@ var draftWrite = strictObject({
9656
9780
  });
9657
9781
  var messageSend = union([messageWrite, draftWrite]);
9658
9782
 
9659
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/model.js
9783
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/model.js
9660
9784
  var model2 = strictObject({
9661
9785
  id,
9662
9786
  kind: picklist(["audio", "text", "image", "reranker"]),
@@ -9691,7 +9815,7 @@ var chosenModel = strictObject({
9691
9815
  estimate_seconds: nullable(count)
9692
9816
  });
9693
9817
 
9694
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/model-key.js
9818
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/model-key.js
9695
9819
  var source = picklist(["environment", "keyring", "file"]);
9696
9820
  var modelKey = strictObject({
9697
9821
  provider: text,
@@ -9701,7 +9825,7 @@ var modelKey = strictObject({
9701
9825
  var storedModelKey = strictObject({ ...omit(modelKey, ["removed"]).entries, stored: source });
9702
9826
  var removedModelKey = strictObject({ ...omit(modelKey, ["stored"]).entries, removed: array(source) });
9703
9827
 
9704
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/official-stats.js
9828
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/official-stats.js
9705
9829
  var versus = strictObject({ current: number(), previous: number() });
9706
9830
  var person = { person_ref: reference, name: nullable(text) };
9707
9831
  var graph = strictObject({
@@ -9735,14 +9859,14 @@ var officialStats = strictObject({
9735
9859
  graphs: record(string(), union([graph, strictObject({ error: text })]))
9736
9860
  });
9737
9861
 
9738
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/person.js
9862
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/person.js
9739
9863
  var person2 = strictObject({
9740
9864
  ref: reference,
9741
9865
  name: nullable(text),
9742
9866
  identities: optional(array(identity))
9743
9867
  });
9744
9868
 
9745
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/poll.js
9869
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/poll.js
9746
9870
  var poll = strictObject({
9747
9871
  chat_id: id,
9748
9872
  message_id: id,
@@ -9758,11 +9882,11 @@ var poll = strictObject({
9758
9882
  });
9759
9883
  var pollChange = strictObject({ operation_id: id, poll });
9760
9884
 
9761
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/private-contact.js
9885
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/private-contact.js
9762
9886
  var contactAlias = strictObject({ person_id: id, alias: nullable(text) });
9763
9887
  var contactNoteRemoval = strictObject({ id, person_id: id, removed: boolean() });
9764
9888
 
9765
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/ranking.js
9889
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/ranking.js
9766
9890
  var figures = record(string(), number());
9767
9891
  var freshness = picklist(["fresh", "stale", "partial", "unknown"]);
9768
9892
  var rankingRow = strictObject({
@@ -9809,7 +9933,7 @@ var ranking = strictObject({
9809
9933
  rows: array(rankingRow)
9810
9934
  });
9811
9935
 
9812
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/reaction.js
9936
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/reaction.js
9813
9937
  var reaction = strictObject({
9814
9938
  person: strictObject({ id, name: nullable(text), username: nullable(text) }),
9815
9939
  /** The emoji, or `custom:<id>` for a custom one. */
@@ -9817,7 +9941,7 @@ var reaction = strictObject({
9817
9941
  reacted_at: time
9818
9942
  });
9819
9943
 
9820
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/reaction-change.js
9944
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/reaction-change.js
9821
9945
  var reactionChange = strictObject({
9822
9946
  operation_id: id,
9823
9947
  chat_id: id,
@@ -9825,7 +9949,7 @@ var reactionChange = strictObject({
9825
9949
  reaction: nullable(text)
9826
9950
  });
9827
9951
 
9828
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/recipient.js
9952
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/recipient.js
9829
9953
  var recipient = strictObject({ id, title: nullable(text), partner_id: optional(id), added_at: time });
9830
9954
  var recipientAdded = strictObject({ id, title: nullable(text), added: boolean() });
9831
9955
  var recipientRemoved = strictObject({ id, title: nullable(text), removed: boolean() });
@@ -9836,7 +9960,7 @@ var recipientChange = strictObject({
9836
9960
  ...partial(recipientOff).entries
9837
9961
  });
9838
9962
 
9839
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/recorded-run.js
9963
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/recorded-run.js
9840
9964
  var events = array(record(string(), unknown()));
9841
9965
  var recordedRun = strictObject({
9842
9966
  run_id: id,
@@ -9908,7 +10032,7 @@ var runHit = strictObject({
9908
10032
  });
9909
10033
  var runLocation = strictObject({ path: text });
9910
10034
 
9911
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/relationship.js
10035
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/relationship.js
9912
10036
  var relationship = strictObject({
9913
10037
  id,
9914
10038
  from: reference,
@@ -9935,7 +10059,7 @@ var relationship = strictObject({
9935
10059
  created_at: time
9936
10060
  });
9937
10061
 
9938
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/reply-stats.js
10062
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/reply-stats.js
9939
10063
  var milliseconds2 = nullable(pipe(number(), minValue(0)));
9940
10064
  var figures2 = { replies: count, median_ms: milliseconds2, p90_ms: milliseconds2, mean_ms: milliseconds2 };
9941
10065
  var responseTimes = strictObject({
@@ -9952,7 +10076,7 @@ var waitingChats = strictObject({
9952
10076
  by_kind: strictObject({ private: count, group: count })
9953
10077
  });
9954
10078
 
9955
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/retention.js
10079
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/retention.js
9956
10080
  var retentionCohort = strictObject({
9957
10081
  /** The first day of the joining day or week. */
9958
10082
  cohort: text,
@@ -10000,7 +10124,7 @@ var retention = strictObject({
10000
10124
  rows: array(retentionCohort)
10001
10125
  });
10002
10126
 
10003
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/saved-search.js
10127
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/saved-search.js
10004
10128
  var savedSearch = strictObject({
10005
10129
  id,
10006
10130
  /** `null` for a run in the history. */
@@ -10017,7 +10141,7 @@ var savedSearch = strictObject({
10017
10141
  });
10018
10142
  var searchHistoryClear = strictObject({ cleared: count });
10019
10143
 
10020
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/send-attempt.js
10144
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/send-attempt.js
10021
10145
  var sendAttempt = strictObject({
10022
10146
  at: time,
10023
10147
  profile: text,
@@ -10045,7 +10169,7 @@ var sendAttempt = strictObject({
10045
10169
  error_code: optional(text)
10046
10170
  });
10047
10171
 
10048
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/store-maintenance.js
10172
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/store-maintenance.js
10049
10173
  var absent = strictObject({ path: text, exists: literal(false) });
10050
10174
  var schema = strictObject({ version: count, min_compatible: count, writable: boolean(), speaks: count });
10051
10175
  var infoSchema = strictObject({
@@ -10219,6 +10343,15 @@ var storeRestore = union([
10219
10343
  foreign_key_violations: count
10220
10344
  })
10221
10345
  ]);
10346
+ var importCounts = strictObject({ chats: count, messages: count });
10347
+ var storeImport = strictObject({
10348
+ store: text,
10349
+ profile: text,
10350
+ account: text,
10351
+ imported: boolean(),
10352
+ file: strictObject({ chats: count, people: count, messages: count }),
10353
+ added: optional(importCounts)
10354
+ });
10222
10355
  var storeReset = union([
10223
10356
  strictObject({ ...absent.entries, reset: literal(false) }),
10224
10357
  strictObject({
@@ -10266,7 +10399,7 @@ var storeRepair = union([
10266
10399
  ]);
10267
10400
  var storeCopyRemoval = strictObject({ path: text, deleted: strictObject({ name: text, rows: count }) });
10268
10401
 
10269
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/store-records.js
10402
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/store-records.js
10270
10403
  var range = strictObject({ from: number(), to: number() });
10271
10404
  var storeChatStatus = strictObject({
10272
10405
  chat_id: id,
@@ -10364,7 +10497,7 @@ var storeJobRetry = union([
10364
10497
  ]);
10365
10498
  var storeJobClear = strictObject({ cleared: array(id) });
10366
10499
 
10367
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/store-table.js
10500
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/store-table.js
10368
10501
  var TABLE_KINDS = ["data", "search_index", "search_index_part", "internal"];
10369
10502
  var storeTable = strictObject({
10370
10503
  name: text,
@@ -10373,7 +10506,7 @@ var storeTable = strictObject({
10373
10506
  bytes: optional(nullable(count))
10374
10507
  });
10375
10508
 
10376
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/tag-change.js
10509
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/tag-change.js
10377
10510
  var tagTarget = variant("type", [
10378
10511
  strictObject({ type: literal("chat"), chat_id: id }),
10379
10512
  strictObject({ type: literal("contact"), person_id: id }),
@@ -10404,7 +10537,7 @@ var automaticTags = strictObject({
10404
10537
  dry_run: boolean()
10405
10538
  });
10406
10539
 
10407
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/tagging.js
10540
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/tagging.js
10408
10541
  var tagging = strictObject({
10409
10542
  tag: text,
10410
10543
  type: picklist(TAG_TYPES),
@@ -10417,7 +10550,7 @@ var tagging = strictObject({
10417
10550
  created_at: time
10418
10551
  });
10419
10552
 
10420
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/task-pair.js
10553
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/task-pair.js
10421
10554
  var side = strictObject({ ref: reference, key: text, title: text, status: text });
10422
10555
  var taskPair = strictObject({
10423
10556
  task: nullable(side),
@@ -10440,7 +10573,7 @@ var taskPair = strictObject({
10440
10573
  created_at: time
10441
10574
  });
10442
10575
 
10443
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/task-results.js
10576
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/task-results.js
10444
10577
  var nullableTime = nullable(time);
10445
10578
  var link = strictObject({
10446
10579
  id,
@@ -10614,7 +10747,7 @@ var taskReview = strictObject({
10614
10747
  untrusted
10615
10748
  });
10616
10749
 
10617
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/template.js
10750
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/template.js
10618
10751
  var template = strictObject({
10619
10752
  key: text,
10620
10753
  channel: picklist(["telegram", "email", "text"]),
@@ -10626,7 +10759,7 @@ var template = strictObject({
10626
10759
  updated_by: nullable(text)
10627
10760
  });
10628
10761
 
10629
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/topic.js
10762
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/topic.js
10630
10763
  var topic = strictObject({
10631
10764
  id,
10632
10765
  title: text,
@@ -10640,7 +10773,7 @@ var topic = strictObject({
10640
10773
  untrusted
10641
10774
  });
10642
10775
 
10643
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/entities/index.js
10776
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/index.js
10644
10777
  var ENTITIES = {
10645
10778
  sync_progress: progress,
10646
10779
  deal,
@@ -10747,6 +10880,7 @@ var ENTITIES = {
10747
10880
  topic_icon: topicIcon,
10748
10881
  bot_webhook: botWebhook,
10749
10882
  scheduled_job: scheduledJob,
10883
+ schedule_harness: scheduleHarness,
10750
10884
  call_record: callRecord,
10751
10885
  sticker_inventory: stickerInventory,
10752
10886
  note,
@@ -10867,6 +11001,7 @@ var ENTITIES = {
10867
11001
  store_decrypt: storeDecrypt,
10868
11002
  store_restore: storeRestore,
10869
11003
  store_reset: storeReset,
11004
+ store_import: storeImport,
10870
11005
  store_repair: storeRepair,
10871
11006
  store_copy_removal: storeCopyRemoval,
10872
11007
  store_table: storeTable,
@@ -10933,7 +11068,7 @@ var entityDefinitions = /* @__PURE__ */ __name(() => Object.fromEntries(Object.e
10933
11068
  return [name, definition];
10934
11069
  })), "entityDefinitions");
10935
11070
 
10936
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/cli/answer-entity.js
11071
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/cli/answer-entity.js
10937
11072
  var schemas = /* @__PURE__ */ new WeakMap();
10938
11073
  var answerEntity = /* @__PURE__ */ __name((command, name, schema2, options = {}) => {
10939
11074
  if (Object.hasOwn(ENTITIES, name))
@@ -10967,7 +11102,7 @@ var answerRow = /* @__PURE__ */ __name((command) => {
10967
11102
  return own && metaOf(command).output?.entity === own.name ? own.row : void 0;
10968
11103
  }, "answerRow");
10969
11104
 
10970
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/images/picture/models.js
11105
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/images/picture/models.js
10971
11106
  import { join as join6 } from "node:path";
10972
11107
  var clip = /* @__PURE__ */ __name((name) => `https://huggingface.co/Xenova/clip-vit-base-patch32/resolve/d15189d7028b43f1d3e65039190477f6af591c2a/${name}`, "clip");
10973
11108
  var IMAGE_MODELS = [
@@ -11021,7 +11156,7 @@ var imageModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedM
11021
11156
  var placedImage = /* @__PURE__ */ __name((model3, directory) => model3.files.map((file) => [file, join6(directory, model3.id, file.name)]), "placedImage");
11022
11157
  var isImageModelInstalled = /* @__PURE__ */ __name((model3, directory) => filesPresent(placedImage(model3, directory)), "isImageModelInstalled");
11023
11158
 
11024
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/cli/steps.js
11159
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/cli/steps.js
11025
11160
  var STEPS2 = defineSteps([
11026
11161
  ...STEPS,
11027
11162
  {
@@ -11036,6 +11171,15 @@ var STEPS2 = defineSteps([
11036
11171
  ],
11037
11172
  why: "the local copy is missing messages; syncing brings them in"
11038
11173
  },
11174
+ {
11175
+ id: "search.server",
11176
+ command: "search messages",
11177
+ args: [
11178
+ { name: "query", required: true },
11179
+ { name: "backend", required: true }
11180
+ ],
11181
+ why: "only the local copy was searched, and it does not hold every message; the messenger's own search reaches the rest"
11182
+ },
11039
11183
  {
11040
11184
  id: "messages.transcribe",
11041
11185
  command: "messages transcribe",
@@ -11302,7 +11446,7 @@ var stepLine = /* @__PURE__ */ __name((root, step2) => {
11302
11446
  ].join(" ");
11303
11447
  }, "stepLine");
11304
11448
 
11305
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/cli/project-status-rows.js
11449
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/cli/project-status-rows.js
11306
11450
  var where = [{ field: "ref" }];
11307
11451
  var who2 = { field: ["who.owner", "who.name"], tag: "you" };
11308
11452
  var ON_CHAT_ROW = /* @__PURE__ */ new Set(["reply-next", "coverage"]);
@@ -11394,7 +11538,7 @@ var STATUS_ROWS = {
11394
11538
  "status.failed": { columns: [{ field: "signal" }], text: ["why"] }
11395
11539
  };
11396
11540
 
11397
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/cli/compact.js
11541
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/cli/compact.js
11398
11542
  var TEXT_CHARS = 400;
11399
11543
  var sender = { field: ["sender_is_me", "sender_name"], tag: "me" };
11400
11544
  var messageRow = {
@@ -11742,8 +11886,9 @@ var compactText = /* @__PURE__ */ __name((body, shape, options, rowsOf = rowsOfE
11742
11886
  } else if (isFields(body.item)) {
11743
11887
  const sections = shape.sections ?? {};
11744
11888
  const rest = Object.fromEntries(Object.entries(body.item).filter(([name]) => !Object.hasOwn(sections, name) && !shape.hidden?.includes(name)));
11745
- lines = blockOf(rest, chars, "", shape.whole).map(guarded);
11746
- let dates = [];
11889
+ const own = shape.oneLine ? rowsOfItems([rest], shape, clock, chars) : void 0;
11890
+ lines = own ? own.lines.filter((line) => line !== "") : blockOf(rest, chars, "", shape.whole).map(guarded);
11891
+ let dates = own?.dates ?? [];
11747
11892
  let drawn = [];
11748
11893
  for (const [name, entity] of Object.entries(sections)) {
11749
11894
  const list = body.item[name];
@@ -11754,13 +11899,14 @@ var compactText = /* @__PURE__ */ __name((body, shape, options, rowsOf = rowsOfE
11754
11899
  drawn = drawn.concat([`# ${[`${clean(name)}: ${list.length}`, ...header].join(" \xB7 ")}`], rows2);
11755
11900
  }
11756
11901
  const when = spanOf(dates, clock);
11757
- lines = lines.concat(when.length ? [`# ${when.join(" \xB7 ")}`] : [], drawn);
11902
+ const head = [...own?.header ?? [], ...when];
11903
+ lines = own ? (head.length ? [`# ${head.join(" \xB7 ")}`] : []).concat(lines, drawn) : lines.concat(when.length ? [`# ${when.join(" \xB7 ")}`] : [], drawn);
11758
11904
  } else if (present(body.item))
11759
11905
  lines = [guarded(cut(clean(String(body.item)), chars))];
11760
11906
  return lines.concat(footerOf(body)).join("\n");
11761
11907
  }, "compactText");
11762
11908
 
11763
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/cli/output-budget.js
11909
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/cli/output-budget.js
11764
11910
  var SOFT_OUTPUT_BYTES = 256 * 1024;
11765
11911
  var CARRIED = ["json", "compact", "offline", "timeout", "full", "brief", "maxOutputBytes"];
11766
11912
  var NOT_WITH_COMPACT = /* @__PURE__ */ new Set(["json", "brief"]);
@@ -11818,7 +11964,7 @@ var largeAnswerSteps = /* @__PURE__ */ __name((command) => {
11818
11964
  return args ? compactStep(command, args, "the answer is large as JSON; one line per item keeps every ref") : [];
11819
11965
  }, "largeAnswerSteps");
11820
11966
 
11821
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
11967
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
11822
11968
  var HIDDEN = /* @__PURE__ */ new Set(["providerRef", "provider_ref"]);
11823
11969
  var withoutProviderRefs = /* @__PURE__ */ __name((value) => strip(value), "withoutProviderRefs");
11824
11970
  var strip = /* @__PURE__ */ __name((value) => {
@@ -11832,7 +11978,91 @@ var strip = /* @__PURE__ */ __name((value) => {
11832
11978
  return Object.fromEntries(Object.entries(value).flatMap(([key, inner]) => HIDDEN.has(key) ? [] : [[key, strip(inner)]]));
11833
11979
  }, "strip");
11834
11980
 
11835
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/cli/envelope.js
11981
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/cli/untrusted-marks.js
11982
+ var OPEN = "\u27E6";
11983
+ var CLOSE = "\u27E7";
11984
+ var untrustedMarkOf = /* @__PURE__ */ __name((app, env) => {
11985
+ if (readOnlyLockOf(app, env) === void 0)
11986
+ return void 0;
11987
+ const mark = ancestorValue(envName(app, "UNTRUSTED_MARK"), env);
11988
+ return mark && /^[0-9a-f]{16}$/.test(mark) ? mark : void 0;
11989
+ }, "untrustedMarkOf");
11990
+ var marked = /* @__PURE__ */ __name((text5, mark, source2, id6) => {
11991
+ const inside = text5.replaceAll(OPEN, "").replaceAll(CLOSE, "").replaceAll(mark, "");
11992
+ const named2 = id6 === void 0 ? "" : ` id=${id6.replaceAll(OPEN, "").replaceAll(CLOSE, "").replace(/\s/g, "")}`;
11993
+ return `${OPEN}untrusted:${mark} source=${source2}${named2}${CLOSE}${inside}${OPEN}/untrusted:${mark}${CLOSE}`;
11994
+ }, "marked");
11995
+ var idOf = /* @__PURE__ */ __name((value) => {
11996
+ const id6 = value.ref ?? value.id;
11997
+ return typeof id6 === "string" || typeof id6 === "number" ? String(id6) : void 0;
11998
+ }, "idOf");
11999
+ var markAt = /* @__PURE__ */ __name((value, path2, mark, source2, id6) => {
12000
+ if (Array.isArray(value))
12001
+ return value.map((one) => markAt(one, path2, mark, source2, id6));
12002
+ if (path2.length === 0)
12003
+ return typeof value === "string" && !value.startsWith(`${OPEN}untrusted:${mark} `) ? marked(value, mark, source2, id6) : value;
12004
+ if (value === null || typeof value !== "object")
12005
+ return value;
12006
+ const [key = "", ...rest] = path2;
12007
+ const record2 = value;
12008
+ if (!(key in record2))
12009
+ return value;
12010
+ return { ...record2, [key]: markAt(record2[key], rest, mark, source2, idOf(record2) ?? id6) };
12011
+ }, "markAt");
12012
+ var withUntrustedMarked = /* @__PURE__ */ __name((value, mark, id6) => {
12013
+ if (Array.isArray(value))
12014
+ return value.map((one) => withUntrustedMarked(one, mark, id6));
12015
+ if (value === null || typeof value !== "object")
12016
+ return value;
12017
+ const record2 = value;
12018
+ const own = idOf(record2) ?? id6;
12019
+ let result = Object.fromEntries(Object.entries(record2).map(([key, child]) => [
12020
+ key,
12021
+ key === "untrusted" ? child : withUntrustedMarked(child, mark, own)
12022
+ ]));
12023
+ const fields = Array.isArray(record2.untrusted) ? record2.untrusted.filter((one) => typeof one === "string") : [];
12024
+ for (const field of fields)
12025
+ result = markAt(result, field.split("."), mark, field, own);
12026
+ return result;
12027
+ }, "withUntrustedMarked");
12028
+ var MESSAGE_UNTRUSTED = [
12029
+ "text",
12030
+ "transcript",
12031
+ "excerpt",
12032
+ "sender_name",
12033
+ "sender_username",
12034
+ "chat_title",
12035
+ "subject",
12036
+ "snippet",
12037
+ "attachments.name",
12038
+ "attachments.title",
12039
+ "attachments.text",
12040
+ "from.name",
12041
+ "to.name",
12042
+ "cc.name",
12043
+ "bcc.name",
12044
+ "reply_addresses.name"
12045
+ ];
12046
+ var DECLARED = /* @__PURE__ */ new WeakMap();
12047
+ var marksUntrusted = /* @__PURE__ */ __name((command, fields = MESSAGE_UNTRUSTED) => {
12048
+ DECLARED.set(command, fields);
12049
+ return command;
12050
+ }, "marksUntrusted");
12051
+ var untrustedFieldsOf = /* @__PURE__ */ __name((command) => DECLARED.get(command), "untrustedFieldsOf");
12052
+ var withFieldsMarked = /* @__PURE__ */ __name((value, fields, mark, id6) => {
12053
+ if (Array.isArray(value))
12054
+ return value.map((one) => withFieldsMarked(one, fields, mark, id6));
12055
+ if (value === null || typeof value !== "object")
12056
+ return value;
12057
+ const record2 = value;
12058
+ const own = idOf(record2) ?? id6;
12059
+ let result = Object.fromEntries(Object.entries(record2).map(([key, child]) => [key, withFieldsMarked(child, fields, mark, own)]));
12060
+ for (const field of fields)
12061
+ result = markAt(result, field.split("."), mark, field, own);
12062
+ return result;
12063
+ }, "withFieldsMarked");
12064
+
12065
+ // node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/cli/envelope.js
11836
12066
  var answerSchema = /* @__PURE__ */ __name((item = unknown()) => union([listEnvelopeSchema(item), itemEnvelopeSchema(item)]), "answerSchema");
11837
12067
  var capped2 = /* @__PURE__ */ __name((steps) => steps.length > 0 ? { next: steps.slice(0, MAX_NEXT_STEPS) } : {}, "capped");
11838
12068
  var listOf = /* @__PURE__ */ __name((command, input) => {
@@ -11944,7 +12174,11 @@ var renderAnswer = /* @__PURE__ */ __name((command, { renderer, format, streams,
11944
12174
  const root = rootOf2(command);
11945
12175
  const runnableSteps = runnable(root, body.next);
11946
12176
  const next = environmentOf(command).agent ? runnableSteps : withLines(root, runnableSteps);
11947
- const kept = withoutProviderRefs({ ...body, ...next.length > 0 ? { next } : {} });
12177
+ const { app, env } = environmentOf(command);
12178
+ const mark = app ? untrustedMarkOf(app, env ?? process.env) : void 0;
12179
+ const declared = untrustedFieldsOf(command);
12180
+ const shown = mark === void 0 ? body : withUntrustedMarked(declared ? withFieldsMarked(body, declared, mark) : body, mark);
12181
+ const kept = withoutProviderRefs({ ...shown, ...next.length > 0 ? { next } : {} });
11948
12182
  if (next.length === 0)
11949
12183
  delete kept.next;
11950
12184
  const sealedBody = sealed(kept);
@@ -11985,9 +12219,9 @@ var printItem = /* @__PURE__ */ __name(({ renderer, format }, item) => {
11985
12219
  }, "printItem");
11986
12220
 
11987
12221
  export {
11988
- endpoint,
11989
12222
  modelTarget,
11990
12223
  envName,
12224
+ ancestorValue,
11991
12225
  readOnlyLockOf,
11992
12226
  mailHolderVariable,
11993
12227
  MESSENGER_CHANGE_REFUSAL,
@@ -12008,6 +12242,7 @@ export {
12008
12242
  topicIcon,
12009
12243
  botWebhook,
12010
12244
  scheduledJob,
12245
+ scheduleHarness,
12011
12246
  callRecord,
12012
12247
  stickerInventory,
12013
12248
  progressOf,
@@ -12037,6 +12272,7 @@ export {
12037
12272
  Help,
12038
12273
  Option,
12039
12274
  Command,
12275
+ hasSharedContract,
12040
12276
  assertSharedContracts,
12041
12277
  sharedContractOverrides,
12042
12278
  sharedContracts,
@@ -12133,6 +12369,7 @@ export {
12133
12369
  narrowsUnderLock,
12134
12370
  admittedUnderLock,
12135
12371
  changesStore,
12372
+ fileOptionOf,
12136
12373
  readsOverMcpAt,
12137
12374
  isStoreChange,
12138
12375
  previewFlag,
@@ -12196,6 +12433,7 @@ export {
12196
12433
  stepLine,
12197
12434
  tooLargeSteps,
12198
12435
  withoutProviderRefs,
12436
+ marksUntrusted,
12199
12437
  answerSchema,
12200
12438
  listOf,
12201
12439
  itemOf,