@wirecat/mail-cli 0.24.0 → 0.25.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 (106) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/bin/mail.js +2 -2
  3. package/dist/bundle/{all-profiles-VS7P6DJY.js → all-profiles-QEV2PSOR.js} +9 -9
  4. package/dist/bundle/{anthropic-C5JXKGBS.js → anthropic-5NKQXIHM.js} +16 -9
  5. package/dist/bundle/{app-server-HU3LVU42.js → app-server-G2CJNT4R.js} +56 -45
  6. package/dist/bundle/{bun-QLFX47WZ.js → bun-6HBYWQIX.js} +2 -2
  7. package/dist/bundle/{bun-sqlite-W4PGAKVY.js → bun-sqlite-DXIQ7BVR.js} +8 -4
  8. package/dist/bundle/{chunk-U6MMQNNK.js → chunk-37F6QYTO.js} +5 -5
  9. package/dist/bundle/{chunk-5NLHDK7P.js → chunk-3XVR2ROR.js} +30 -30
  10. package/dist/bundle/{chunk-TI7ZIPA2.js → chunk-434YOD6A.js} +3 -3
  11. package/dist/bundle/{chunk-NCRSE647.js → chunk-5QYK3LWS.js} +57 -25
  12. package/dist/bundle/{chunk-WOX7FZJP.js → chunk-5ZYFV6FD.js} +82 -61
  13. package/dist/bundle/chunk-7GLJSJ7M.js +16 -0
  14. package/dist/bundle/{chunk-XBEO472U.js → chunk-A6BPOX5O.js} +11804 -10024
  15. package/dist/bundle/{chunk-VVL4MKYH.js → chunk-ADKMBXY4.js} +1 -1
  16. package/dist/bundle/{chunk-PRQ2U7HF.js → chunk-B7SWTH5O.js} +2 -2
  17. package/dist/bundle/{chunk-64ZG5ERD.js → chunk-BC7PFQL7.js} +2 -2
  18. package/dist/bundle/{chunk-Q6K2XUGU.js → chunk-CBYBZCQP.js} +1 -1
  19. package/dist/bundle/{chunk-ZO4MQWIK.js → chunk-CIWWNBVW.js} +7 -7
  20. package/dist/bundle/{chunk-Q4OKEN3B.js → chunk-DIA56CS7.js} +7 -6
  21. package/dist/bundle/{chunk-QI3PXUOJ.js → chunk-EXVY76VO.js} +36 -30
  22. package/dist/bundle/{chunk-RNZKQMFY.js → chunk-FZZD4AFY.js} +11 -11
  23. package/dist/bundle/{chunk-5X3GU5LI.js → chunk-G5LHHAW2.js} +5 -5
  24. package/dist/bundle/{chunk-YI544LHI.js → chunk-GJRYZXBN.js} +8 -8
  25. package/dist/bundle/{chunk-NSIN5IM4.js → chunk-GY4XCLCO.js} +9 -14
  26. package/dist/bundle/{chunk-IRUN4XOV.js → chunk-HEIDAHRC.js} +2 -2
  27. package/dist/bundle/{chunk-4QNHAM3J.js → chunk-HEYVMAAQ.js} +1 -1
  28. package/dist/bundle/{chunk-RLQZFZLK.js → chunk-HJSJBNCJ.js} +61 -6
  29. package/dist/bundle/{chunk-H5FJTHVA.js → chunk-HLXVUMZJ.js} +2 -2
  30. package/dist/bundle/{chunk-DW3F6DUW.js → chunk-IACWKZWS.js} +1 -1
  31. package/dist/bundle/{chunk-JOQGJUFT.js → chunk-IXO4SCKE.js} +1 -1
  32. package/dist/bundle/{chunk-X7J3TTDO.js → chunk-IZOYW4Z4.js} +24 -0
  33. package/dist/bundle/{chunk-6PWCQKMD.js → chunk-J4OYK4WL.js} +13 -13
  34. package/dist/bundle/{chunk-ZR2BDNGG.js → chunk-JG4MNYG2.js} +1 -1
  35. package/dist/bundle/{chunk-JMLIKXFO.js → chunk-K2OGF7KC.js} +1 -1
  36. package/dist/bundle/chunk-K6HR6HCO.js +32 -0
  37. package/dist/bundle/{chunk-FKWUUCX2.js → chunk-KFB2X6KE.js} +385 -178
  38. package/dist/bundle/{chunk-3FD3IATT.js → chunk-KK4HD3SI.js} +5 -5
  39. package/dist/bundle/{chunk-HBZAJINU.js → chunk-L4QVOEOB.js} +2 -2
  40. package/dist/bundle/chunk-LGZPKKBN.js +53 -0
  41. package/dist/bundle/{chunk-O373QEAJ.js → chunk-MBFPFWCO.js} +25 -25
  42. package/dist/bundle/{chunk-SWKQ6IAR.js → chunk-MWGH3M46.js} +2 -2
  43. package/dist/bundle/{chunk-C5BMCLCQ.js → chunk-ND5H5ADM.js} +3 -3
  44. package/dist/bundle/{chunk-EKGRNFYQ.js → chunk-NMZQTYKJ.js} +1 -1
  45. package/dist/bundle/{chunk-RUASZW3M.js → chunk-OLKCJBZY.js} +4 -4
  46. package/dist/bundle/{chunk-MTO6YVMN.js → chunk-OLLIWNFG.js} +3 -3
  47. package/dist/bundle/{chunk-X47BL4M5.js → chunk-P6GXNT7Z.js} +12 -12
  48. package/dist/bundle/{chunk-YBQ5AYLZ.js → chunk-PGC5TRH6.js} +3 -3
  49. package/dist/bundle/{chunk-RN7OI5KL.js → chunk-PHHH2NQP.js} +14 -8
  50. package/dist/bundle/{chunk-KGOVFEWZ.js → chunk-PP3YOAWG.js} +2 -2
  51. package/dist/bundle/{chunk-YA45XV6G.js → chunk-PQMJ5BXH.js} +4 -4
  52. package/dist/bundle/{chunk-NWKKPDZV.js → chunk-QB3DP2TN.js} +1 -1
  53. package/dist/bundle/{chunk-BFQQV22T.js → chunk-QQUY4MZY.js} +1 -1
  54. package/dist/bundle/{chunk-VNKWSCN7.js → chunk-S2QRAKQI.js} +16 -16
  55. package/dist/bundle/{chunk-6VV7J2TN.js → chunk-SMTBV62X.js} +31 -26
  56. package/dist/bundle/{chunk-A6J4MPTI.js → chunk-T27IMG6X.js} +1 -1
  57. package/dist/bundle/{chunk-FNLUKODV.js → chunk-TY644DKQ.js} +1 -1
  58. package/dist/bundle/{chunk-3KSK5BBB.js → chunk-U6IQ6YQ2.js} +1 -1
  59. package/dist/bundle/{chunk-PT6MF2VU.js → chunk-VFU7PVPQ.js} +336 -106
  60. package/dist/bundle/{chunk-QVMOEB3I.js → chunk-VL6H2BND.js} +13 -13
  61. package/dist/bundle/{chunk-OQW6GHUA.js → chunk-WOAYHCM2.js} +1 -1
  62. package/dist/bundle/{chunk-TLEBSMC7.js → chunk-WX6OYVCH.js} +3968 -3527
  63. package/dist/bundle/{chunk-C3NYJW6B.js → chunk-XMDEM6BZ.js} +631 -79
  64. package/dist/bundle/{chunk-AUTX2MLF.js → chunk-XQYKIZMG.js} +11 -9
  65. package/dist/bundle/{chunk-KV4VTKF3.js → chunk-YNS2YVUR.js} +68 -5
  66. package/dist/bundle/{chunk-JWMLMAHP.js → chunk-Z5T6OW3V.js} +13 -4
  67. package/dist/bundle/command-contract-XSW2Q33S.js +36 -0
  68. package/dist/bundle/{command-server-entry-5E3PPDE5.js → command-server-entry-XMSSY5ID.js} +23 -22
  69. package/dist/bundle/{decode-AVWV7SVZ.js → decode-RYGB4PGT.js} +4 -4
  70. package/dist/bundle/{dispatch-BXPHSNK5.js → dispatch-PLQOIZG5.js} +1 -1
  71. package/dist/bundle/{dist-PIOOKBWT.js → dist-GY2AQETI.js} +23 -16
  72. package/dist/bundle/{echarts-7K6YQV52.js → echarts-7CM2MCMW.js} +2 -2
  73. package/dist/bundle/{embed-4NT76GJK.js → embed-FTBDPOPT.js} +5 -5
  74. package/dist/bundle/{embedder-ITQFF7EN.js → embedder-B43WGNBD.js} +8 -8
  75. package/dist/bundle/{failure-3Q65JOPD.js → failure-XP5QYV2T.js} +1 -1
  76. package/dist/bundle/{first-run-PM74YU4X.js → first-run-XIIUARNM.js} +9 -8
  77. package/dist/bundle/first-screen-Z7HC6PQU.js +34 -0
  78. package/dist/bundle/{instructions-JDSITYHV.js → instructions-R7OHVAWH.js} +1 -1
  79. package/dist/bundle/mail.js +5 -5
  80. package/dist/bundle/{node-D6YIJOJI.js → node-3N2JGZ7V.js} +2 -2
  81. package/dist/bundle/{node-sqlite-PJOHHB4X.js → node-sqlite-WFJXW3CZ.js} +9 -5
  82. package/dist/bundle/{oauth-BOWJ3IBT.js → oauth-SVJLQTWV.js} +6 -6
  83. package/dist/bundle/{open-FIAKKZMW.js → open-ZDONVKSX.js} +4 -4
  84. package/dist/bundle/{openai-QL54VVLC.js → openai-XVEW6XOU.js} +17 -13
  85. package/dist/bundle/{process-AYHK7WRC.js → process-YAHHUFR5.js} +1 -1
  86. package/dist/bundle/{program-6FKWOTBK.js → program-HU2UVMJE.js} +5742 -5008
  87. package/dist/bundle/{prompt-XJZCBELC.js → prompt-JAJ2CUJI.js} +4 -4
  88. package/dist/bundle/{recognize-OQKWAHBY.js → recognize-UFBWUNFR.js} +3 -3
  89. package/dist/bundle/{remote-NLVUZ5WK.js → remote-2GFOVLCR.js} +8 -6
  90. package/dist/bundle/{rerank-NRPZDTJ7.js → rerank-BGPSMXTL.js} +6 -6
  91. package/dist/bundle/{serve-O4YUI7F6.js → serve-CB3XJTH3.js} +8 -8
  92. package/dist/bundle/server-34GEF22R.js +68 -0
  93. package/dist/bundle/{server-WAL3M4OO.js → server-M7FQY7TX.js} +38 -36
  94. package/dist/bundle/{sqlite-runtime-5YHGI4D4.js → sqlite-runtime-AEV6PGDR.js} +5 -5
  95. package/dist/bundle/{state-WYYOJ7KK.js → state-YLBEQLBI.js} +5 -5
  96. package/dist/bundle/{store-6BJO3F2J.js → store-CDUL3HKK.js} +17 -14
  97. package/dist/bundle/{store-X72GOJHD.js → store-EKWKY6GG.js} +22 -17
  98. package/dist/bundle/store-maintenance-command-XH2JUM5F.js +58 -0
  99. package/dist/version.d.ts +1 -1
  100. package/dist/version.js +1 -1
  101. package/package.json +2 -2
  102. package/dist/bundle/chunk-B72343TK.js +0 -35
  103. package/dist/bundle/command-contract-ERYYPAD2.js +0 -35
  104. package/dist/bundle/first-screen-WBVGVSMY.js +0 -33
  105. package/dist/bundle/server-6OT5ZEWL.js +0 -66
  106. package/dist/bundle/store-maintenance-command-ASS7RBYC.js +0 -54
@@ -13,7 +13,7 @@ import {
13
13
  permissionOverrides,
14
14
  projectFields,
15
15
  resolveOutput
16
- } from "./chunk-Q4OKEN3B.js";
16
+ } from "./chunk-DIA56CS7.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-XQYKIZMG.js";
27
27
  import {
28
28
  carries
29
- } from "./chunk-DW3F6DUW.js";
29
+ } from "./chunk-IACWKZWS.js";
30
30
  import {
31
31
  permissionCeiling
32
- } from "./chunk-SWKQ6IAR.js";
32
+ } from "./chunk-MWGH3M46.js";
33
33
  import {
34
34
  note
35
- } from "./chunk-MTO6YVMN.js";
35
+ } from "./chunk-OLLIWNFG.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-MBFPFWCO.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-5ZYFV6FD.js";
115
116
  import {
116
117
  isCliFailure,
117
118
  storeDamaged
118
- } from "./chunk-3KSK5BBB.js";
119
+ } from "./chunk-U6IQ6YQ2.js";
120
+ import {
121
+ endpoint
122
+ } from "./chunk-K6HR6HCO.js";
119
123
  import {
120
124
  readSharedSection,
121
125
  sharedConfigPath,
122
126
  writeSharedSection
123
- } from "./chunk-3FD3IATT.js";
127
+ } from "./chunk-KK4HD3SI.js";
124
128
  import {
125
129
  filesPresent,
126
130
  sharedModelsDirectory
127
- } from "./chunk-TI7ZIPA2.js";
131
+ } from "./chunk-434YOD6A.js";
128
132
  import {
129
133
  storePath
130
- } from "./chunk-B72343TK.js";
134
+ } from "./chunk-LGZPKKBN.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-TY644DKQ.js";
140
144
  import {
141
145
  COMPACT_FLAG,
142
146
  MAX_NEXT_STEPS,
@@ -190,7 +194,7 @@ import {
190
194
  url,
191
195
  variant,
192
196
  writes
193
- } from "./chunk-X7J3TTDO.js";
197
+ } from "./chunk-IZOYW4Z4.js";
194
198
  import {
195
199
  CliError,
196
200
  isCliError,
@@ -200,12 +204,55 @@ 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.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/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";
@@ -3913,7 +3960,7 @@ var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
3913
3960
  }
3914
3961
  }, "refuseJoinedPath");
3915
3962
 
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
3963
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/cli/command-server-request.js
3917
3964
  import { AsyncLocalStorage } from "node:async_hooks";
3918
3965
  var requests = new AsyncLocalStorage();
3919
3966
  var inCommandServerRequest = /* @__PURE__ */ __name((request, work) => requests.run(request, work), "inCommandServerRequest");
@@ -3928,7 +3975,7 @@ var exitCodeSet = /* @__PURE__ */ __name(() => {
3928
3975
  return direct;
3929
3976
  }, "exitCodeSet");
3930
3977
 
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
3978
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/sends/guarded.js
3932
3979
  import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
3933
3980
  var sentIds = /* @__PURE__ */ __name((typed2, message2) => ({
3934
3981
  messageId: message2.id,
@@ -4034,7 +4081,7 @@ var guardedWrite = /* @__PURE__ */ __name(async (guard, attempt, act, settled2 =
4034
4081
  }, "guardedWrite");
4035
4082
  var codeOf = /* @__PURE__ */ __name((error) => typeof error?.code === "string" ? error.code : "unknown", "codeOf");
4036
4083
 
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
4084
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/cli/execution.js
4038
4085
  var DEFAULT_COMMAND_MS = 3e4;
4039
4086
  var DEFAULT_COOPERATIVE_MS = 5 * 6e4;
4040
4087
  var DEFAULT_SYNC_MS = 15 * 6e4;
@@ -4217,15 +4264,15 @@ var withAbort = /* @__PURE__ */ __name(async (signal, body) => {
4217
4264
  }
4218
4265
  }, "withAbort");
4219
4266
 
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";
4267
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/cli/messenger/accounts.js
4268
+ import { existsSync, readdirSync, readFileSync as readFileSync2 } from "node:fs";
4222
4269
  import { join } from "node:path";
4223
4270
  var accountFileFor = /* @__PURE__ */ __name((app, profile, env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "accounts", `${profile}.json`), "accountFileFor");
4224
4271
  var rememberAccount = /* @__PURE__ */ __name((app, profile, id6, env) => writeSecurely(accountFileFor(app, profile, env), `${JSON.stringify({ account: id6 })}
4225
4272
  `, 384), "rememberAccount");
4226
4273
  var recalledAccount = /* @__PURE__ */ __name((app, provider, profile, env) => {
4227
4274
  try {
4228
- const { account: account2 } = JSON.parse(readFileSync(accountFileFor(app, profile, env), "utf8"));
4275
+ const { account: account2 } = JSON.parse(readFileSync2(accountFileFor(app, profile, env), "utf8"));
4229
4276
  return typeof account2 === "string" ? { provider, account: account2 } : void 0;
4230
4277
  } catch {
4231
4278
  return void 0;
@@ -4239,7 +4286,7 @@ var profilesWithAccounts = /* @__PURE__ */ __name((app, env) => {
4239
4286
  }, "profilesWithAccounts");
4240
4287
  var profilesHere = /* @__PURE__ */ __name((app, configured, env) => [.../* @__PURE__ */ new Set([...configured, ...profilesWithAccounts(app, env)])].sort(), "profilesHere");
4241
4288
 
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
4289
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/background/budget.js
4243
4290
  var DEADLINE_MARGIN_MS = 5e3;
4244
4291
  var DEADLINE_MARGIN_SHARE = 0.15;
4245
4292
  var DEFAULT_REQUEST_MS = 2e3;
@@ -4282,7 +4329,7 @@ var runBudget = /* @__PURE__ */ __name(({ requests: requests2, deadline, request
4282
4329
  };
4283
4330
  }, "runBudget");
4284
4331
 
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
4332
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/runs/log-events.js
4286
4333
  var CORE_LOG_EVENTS = defineLogEvents([
4287
4334
  { id: "provider.request", meaning: "a request went to the messenger", keys: ["operation"] },
4288
4335
  { id: "provider.response", meaning: "the messenger answered the request, or it failed", keys: ["operation"] },
@@ -4293,6 +4340,7 @@ var CORE_LOG_EVENTS = defineLogEvents([
4293
4340
  keys: ["operation", "reason"]
4294
4341
  },
4295
4342
  { id: "store.write", meaning: "a committed write changed rows of one store table", keys: ["table", "op", "n"] },
4343
+ { id: "sync.progress", meaning: "what a sync's progress line showed: chats and messages so far", keys: ["counts"] },
4296
4344
  { id: "command.crashed", meaning: "a command failed on a bug; where, never what", keys: ["error_class", "frames"] },
4297
4345
  {
4298
4346
  id: "events.dropped",
@@ -4315,10 +4363,11 @@ var DIAGNOSTIC_LOG_EVENTS = {
4315
4363
  response: "provider.response",
4316
4364
  warning: "client.warning",
4317
4365
  cache: "cache.answered",
4318
- store: "store.write"
4366
+ store: "store.write",
4367
+ progress: "sync.progress"
4319
4368
  };
4320
4369
 
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
4370
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/runs/recording.js
4322
4371
  var recorded = /* @__PURE__ */ __name(async (options, body) => {
4323
4372
  const recording = startRecording(options);
4324
4373
  try {
@@ -4533,7 +4582,7 @@ var partialOutcome = /* @__PURE__ */ __name((answer) => {
4533
4582
  return void 0;
4534
4583
  }, "partialOutcome");
4535
4584
 
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
4585
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/cli/deadline.js
4537
4586
  var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
4538
4587
  if (ms2 === void 0)
4539
4588
  return body();
@@ -4559,7 +4608,7 @@ var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
4559
4608
  }
4560
4609
  }, "withDeadline");
4561
4610
 
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
4611
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/cli/profile.js
4563
4612
  var asFirstWord = /* @__PURE__ */ __name((profile) => `${profile} `, "asFirstWord");
4564
4613
  var PLAIN_NAME = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
4565
4614
  var isProfileName = /* @__PURE__ */ __name((word) => PLAIN_NAME.test(word), "isProfileName");
@@ -4628,20 +4677,10 @@ var sampleCommand = /* @__PURE__ */ __name((commands) => {
4628
4677
  return void 0;
4629
4678
  }, "sampleCommand");
4630
4679
 
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
4680
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/cli/settings.js
4632
4681
  import { existsSync as existsSync5 } from "node:fs";
4633
4682
 
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
4683
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/models/settings.js
4645
4684
  var MODEL_FIELDS = ["provider", "model", "base_url"];
4646
4685
  var modelSettingsShape = record(pipe(string(), regex(/^[a-z][a-z0-9-]*$/)), strictObject({
4647
4686
  provider: optional(picklist(["off", "openai", "anthropic"])),
@@ -4710,7 +4749,7 @@ var modelTarget = /* @__PURE__ */ __name((settings, purpose) => {
4710
4749
  };
4711
4750
  }, "modelTarget");
4712
4751
 
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
4752
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/analysis/settings.js
4714
4753
  var model = pipe(string(), trim(), minLength(1), maxLength(200));
4715
4754
  var url2 = pipe(string(), check(endpoint, "use an HTTP/S endpoint without credentials, query or fragment"));
4716
4755
  var AI_FIELDS = {
@@ -4754,7 +4793,7 @@ var resolveAISettings = /* @__PURE__ */ __name((prefix, layers, env) => {
4754
4793
  };
4755
4794
  }, "resolveAISettings");
4756
4795
 
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
4796
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/domain/duration.js
4758
4797
  var DURATION = /^(\d+)(ms|s|m|h|d)$/;
4759
4798
  var UNIT_MS = { ms: 1, s: 1e3, m: 6e4, h: 36e5, d: 864e5 };
4760
4799
  var parseDuration = /* @__PURE__ */ __name((value, source2) => {
@@ -4768,7 +4807,7 @@ var parseDuration = /* @__PURE__ */ __name((value, source2) => {
4768
4807
  return ms2;
4769
4808
  }, "parseDuration");
4770
4809
 
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
4810
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/embeddings/models.js
4772
4811
  import { existsSync as existsSync2 } from "node:fs";
4773
4812
  import { join as join2 } from "node:path";
4774
4813
  var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/${repository}/resolve/${commit}/${name}`, "huggingFace");
@@ -5045,7 +5084,7 @@ var vectorModelKey = /* @__PURE__ */ __name((model3) => {
5045
5084
  }, "vectorModelKey");
5046
5085
  var meaningFloor = /* @__PURE__ */ __name((key) => key === "local:e5-small:384" ? 0.8 : 0, "meaningFloor");
5047
5086
 
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
5087
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/services/history-limits.js
5049
5088
  var HISTORY_MAX_DAYS = 1095;
5050
5089
  var DEFAULT_HISTORY_LIMITS = { dialogDays: 1095, groupDays: 365, groupMembersMax: 50 };
5051
5090
  var DAY_MS = 24 * 60 * 60 * 1e3;
@@ -5092,8 +5131,8 @@ var limitBatch = /* @__PURE__ */ __name((batch, shapes, included, limits, now =
5092
5131
  return { batch: { ...batch, messages }, skipped };
5093
5132
  }, "limitBatch");
5094
5133
 
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";
5134
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/cli/bot/registry.js
5135
+ import { existsSync as existsSync3, readdirSync as readdirSync2, readFileSync as readFileSync3 } from "node:fs";
5097
5136
  import { join as join3 } from "node:path";
5098
5137
  var botsDirectory = /* @__PURE__ */ __name((app, env = process.env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "bots"), "botsDirectory");
5099
5138
  var botFiles = /* @__PURE__ */ __name((app, profile, env = process.env) => {
@@ -5163,7 +5202,7 @@ var ChatRegistry = class {
5163
5202
  if (!existsSync3(this.#path))
5164
5203
  return {};
5165
5204
  try {
5166
- const parsed = JSON.parse(readFileSync2(this.#path, "utf8"));
5205
+ const parsed = JSON.parse(readFileSync3(this.#path, "utf8"));
5167
5206
  return parsed && typeof parsed === "object" ? parsed : {};
5168
5207
  } catch {
5169
5208
  return {};
@@ -5181,10 +5220,10 @@ var registryProfiles = /* @__PURE__ */ __name((app, env = process.env) => {
5181
5220
  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
5221
  }, "registryProfiles");
5183
5222
 
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";
5223
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
5224
+ import { readFileSync as readFileSync4 } from "node:fs";
5186
5225
 
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
5226
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/cli/config-repair.js
5188
5227
  var REPAIR_WORDS = {
5189
5228
  byte_order_mark: "an invisible byte-order mark at the start",
5190
5229
  comment: "a comment, which JSON does not allow",
@@ -5425,7 +5464,7 @@ ${parts.join(",\n")}
5425
5464
  ${indent}${close}`;
5426
5465
  }, "serialise");
5427
5466
 
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
5467
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
5429
5468
  var isNode = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
5430
5469
  var SECTIONS = ["personal", "bot"];
5431
5470
  var SHELL_SAFE = /^[A-Za-z0-9_.:@-]*$/;
@@ -5699,7 +5738,7 @@ var checkConfigText = /* @__PURE__ */ __name((text5, { file, tool, schema: schem
5699
5738
  var wholeFile = /* @__PURE__ */ __name((file, what) => ({ kind: "invalid_value", file, what }), "wholeFile");
5700
5739
  var readConfigText = /* @__PURE__ */ __name((path2) => {
5701
5740
  try {
5702
- return { text: readFileSync3(path2, "utf8") };
5741
+ return { text: readFileSync4(path2, "utf8") };
5703
5742
  } catch (error) {
5704
5743
  const code = error.code;
5705
5744
  if (code === "ENOENT")
@@ -5719,7 +5758,7 @@ var readConfigFile = /* @__PURE__ */ __name((path2) => {
5719
5758
  return "issue" in parsed ? { issue: publicIssue(parsed.issue) } : parsed;
5720
5759
  }, "readConfigFile");
5721
5760
 
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
5761
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/cli/default-config.js
5723
5762
  import { existsSync as existsSync4, linkSync, mkdirSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";
5724
5763
  import { dirname, join as join4 } from "node:path";
5725
5764
  var DEFAULT_CONFIG = {
@@ -5748,7 +5787,7 @@ function ensureDefaultConfig(path2, config = DEFAULT_CONFIG) {
5748
5787
  }
5749
5788
  __name(ensureDefaultConfig, "ensureDefaultConfig");
5750
5789
 
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
5790
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/cli/setting-defaults.js
5752
5791
  var isNode2 = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
5753
5792
  var parentOf = /* @__PURE__ */ __name((config, key) => {
5754
5793
  const path2 = key.split(".");
@@ -5770,7 +5809,7 @@ var withSettingDefaults = /* @__PURE__ */ __name((raw, declared) => {
5770
5809
  return { config, added };
5771
5810
  }, "withSettingDefaults");
5772
5811
 
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
5812
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/cli/settings.js
5774
5813
  var DEFAULT_LIMIT = DEFAULT_CONFIG.defaults.limit;
5775
5814
  var DEFAULT_KEEP_RUNS_FOR_DAYS = DEFAULT_CONFIG.defaults.keep_runs_for_days;
5776
5815
  var DEFAULT_SENDS_PER_HOUR = DEFAULT_CONFIG.defaults.sends_per_hour;
@@ -6295,7 +6334,7 @@ var given = /* @__PURE__ */ __name((value) => {
6295
6334
  return trimmed === void 0 || trimmed === "" ? void 0 : trimmed;
6296
6335
  }, "given");
6297
6336
 
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
6337
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/cli/context.js
6299
6338
  var runBudgetOf = /* @__PURE__ */ __name((command, requests2) => {
6300
6339
  const { deadline, signal, app } = environmentOf(command);
6301
6340
  const now = deadline?.();
@@ -6364,6 +6403,7 @@ var baseContext = /* @__PURE__ */ __name((command, resolveSettings) => {
6364
6403
  });
6365
6404
  const closeables = [];
6366
6405
  const ranFor = namedProfile(settings);
6406
+ let namedTheAnswer = false;
6367
6407
  return {
6368
6408
  settings,
6369
6409
  renderer,
@@ -6379,6 +6419,9 @@ var baseContext = /* @__PURE__ */ __name((command, resolveSettings) => {
6379
6419
  return withAbort(environment.commandSignal, () => withDeadline(unbounded ? void 0 : settings.commandTimeoutMs, closeables, () => body(() => {
6380
6420
  })));
6381
6421
  const runName = name ?? `${environment.agent ? "mcp " : ""}${commandPath(command)}`;
6422
+ const answersFor = !environment.agent && name === void 0 && !namedTheAnswer;
6423
+ if (answersFor)
6424
+ namedTheAnswer = true;
6382
6425
  return recorded({
6383
6426
  app: environment.app,
6384
6427
  command: runName,
@@ -6405,7 +6448,7 @@ var baseContext = /* @__PURE__ */ __name((command, resolveSettings) => {
6405
6448
  ...settings.keepSuccessfulRunsForDays === void 0 ? {} : { keepSuccessDays: settings.keepSuccessfulRunsForDays },
6406
6449
  ...settings.keepStoreRunsForDays === void 0 ? {} : { keepStoreDays: settings.keepStoreRunsForDays },
6407
6450
  ...settings.runsSizeLimitMb === void 0 ? {} : { maxBytes: settings.runsSizeLimitMb * 1024 * 1024 },
6408
- processRun: !environment.agent,
6451
+ processRun: answersFor,
6409
6452
  format,
6410
6453
  streams,
6411
6454
  env
@@ -6431,7 +6474,7 @@ var commandPath = /* @__PURE__ */ __name((command) => {
6431
6474
  return words2.join(" ");
6432
6475
  }, "commandPath");
6433
6476
 
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
6477
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/cli/effects.js
6435
6478
  var REMOTE_READ = { remote: "read", local: "read" };
6436
6479
  var FETCH = { remote: "read", local: "write" };
6437
6480
  var REMOTE_WRITE = { remote: "write", local: "write" };
@@ -6502,6 +6545,7 @@ var fetchesOnly = /* @__PURE__ */ __name((command) => {
6502
6545
  return effects?.remote === "read" && effects.local === "write" && !STORE_WRITES.has(command) && !changesAuthority(command) && !OTHER_SERVICE.has(command) && !savesFiles(command);
6503
6546
  }, "fetchesOnly");
6504
6547
  var FILE_OPTION = /* @__PURE__ */ new WeakMap();
6548
+ var fileOptionOf = /* @__PURE__ */ __name((command) => FILE_OPTION.get(command), "fileOptionOf");
6505
6549
  var writesFileNow = /* @__PURE__ */ __name((command) => {
6506
6550
  const option = FILE_OPTION.get(command);
6507
6551
  return option === void 0 || command.opts()[option] !== void 0;
@@ -6563,7 +6607,7 @@ var refuseUnderReadOnly = /* @__PURE__ */ __name((command, what) => {
6563
6607
  throw readOnlyRefusal(lock, what);
6564
6608
  }, "refuseUnderReadOnly");
6565
6609
 
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
6610
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/account.js
6567
6611
  var account = strictObject({
6568
6612
  provider: text,
6569
6613
  id,
@@ -6573,7 +6617,7 @@ var account = strictObject({
6573
6617
  scope: optional(picklist(["personal", "work"]))
6574
6618
  });
6575
6619
 
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
6620
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/account-session.js
6577
6621
  var accountSession = strictObject({
6578
6622
  current: boolean(),
6579
6623
  client: nullable(text),
@@ -6583,7 +6627,7 @@ var accountSession = strictObject({
6583
6627
  created_at: optional(nullable(time))
6584
6628
  });
6585
6629
 
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
6630
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/account-change.js
6587
6631
  var accountChange = strictObject({ operation_id: id, account: omit(account, ["provider", "scope"]) });
6588
6632
  var endedAccountSessions = strictObject({ operation_id: id, sessions: array(accountSession) });
6589
6633
  var audience = picklist(["everyone", "contacts", "nobody"]);
@@ -6612,7 +6656,7 @@ var accountRemoval = strictObject({
6612
6656
  kept: array(strictObject({ kind: removalKind, target: text, reason: text }))
6613
6657
  });
6614
6658
 
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
6659
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/account-profile.js
6616
6660
  var accountProfile = strictObject({
6617
6661
  profile: id,
6618
6662
  current: boolean(),
@@ -6624,7 +6668,7 @@ var accountProfile = strictObject({
6624
6668
  bot: optional(literal(true))
6625
6669
  });
6626
6670
 
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
6671
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/counter-reading.js
6628
6672
  var milliseconds = pipe(number(), minValue(0));
6629
6673
  var counterReading = strictObject({
6630
6674
  counter: picklist(["views", "reactions", "comments"]),
@@ -6636,7 +6680,7 @@ var counterReading = strictObject({
6636
6680
  });
6637
6681
  var selection = record(string(), unknown());
6638
6682
 
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
6683
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/admin-report.js
6640
6684
  var adminRow = strictObject({
6641
6685
  ref: reference,
6642
6686
  /** What `stats * evidence` takes: a person id, a stay or a message locator. */
@@ -6689,7 +6733,7 @@ var adminReport = strictObject({
6689
6733
  rows: array(adminRow)
6690
6734
  });
6691
6735
 
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
6736
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/task.js
6693
6737
  var closeSuggestion = strictObject({
6694
6738
  as: picklist(["done", "dismissed"]),
6695
6739
  /** The agent's name. */
@@ -6751,7 +6795,7 @@ var task = strictObject({
6751
6795
  updated_at: optional(time)
6752
6796
  });
6753
6797
 
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
6798
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/agenda.js
6755
6799
  var agendaChat = strictObject({
6756
6800
  chat: reference,
6757
6801
  title: nullable(text),
@@ -6821,11 +6865,11 @@ var agenda = strictObject({
6821
6865
  unlisted_categories: array(strictObject({ name: text, open_tasks: number() }))
6822
6866
  });
6823
6867
 
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
6868
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/analysis-consent.js
6825
6869
  var analysisConsent = strictObject({ chat: id, provider: text, at: time });
6826
6870
  var analysisConsentRevocation = strictObject({ revoked: boolean() });
6827
6871
 
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
6872
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/attachment.js
6829
6873
  var attachment = strictObject({
6830
6874
  /** The message it came with, as a locator; absent inside that message. */
6831
6875
  message: optional(reference),
@@ -6861,9 +6905,16 @@ var attachment = strictObject({
6861
6905
  url: optional(text)
6862
6906
  }))))
6863
6907
  });
6864
- var hitFile = strictObject({ position: count, kind: text, name: optional(text), size: optional(count) });
6908
+ var hitFile = strictObject({
6909
+ position: count,
6910
+ kind: text,
6911
+ name: optional(text),
6912
+ size: optional(count),
6913
+ /** The saved copy on this computer, once `messages download` fetched it; absent until then. */
6914
+ local_path: optional(text)
6915
+ });
6865
6916
 
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
6917
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/batch-result.js
6867
6918
  var actionableError = objectWithRest({
6868
6919
  code: text,
6869
6920
  message: text,
@@ -6880,7 +6931,7 @@ var batchResult = strictObject({
6880
6931
  max_error_percent: count
6881
6932
  });
6882
6933
 
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
6934
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/extraction-report.js
6884
6935
  var extractionItem = strictObject({
6885
6936
  ref: reference,
6886
6937
  attachment: count,
@@ -6913,7 +6964,7 @@ var extractionReport = strictObject({
6913
6964
  cursor: optional(text)
6914
6965
  });
6915
6966
 
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
6967
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/attachment-results.js
6917
6968
  var fingerprint = pipe(text, regex(/^[a-f0-9]{64}$/));
6918
6969
  var attachmentBytes = strictObject({
6919
6970
  ref: reference,
@@ -6938,10 +6989,13 @@ var attachmentTextChange = strictObject({
6938
6989
  attachment: count,
6939
6990
  origin: literal("agent"),
6940
6991
  chars: count,
6941
- replaced: nullable(picklist(["extracted", "agent"]))
6992
+ replaced: nullable(picklist(["extracted", "agent"])),
6993
+ /** `images read` only: who read the picture, `agent:claude` or `agent:codex/<model>`, and what it read. */
6994
+ extractor: optional(text),
6995
+ text: optional(text)
6942
6996
  });
6943
6997
 
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
6998
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/botcheck/reasons.js
6945
6999
  var WEIGHTS = {
6946
7000
  bot: 3,
6947
7001
  scam: 3,
@@ -6966,7 +7020,7 @@ var LINK = /https?:\/\/|t\.me\/|www\./i;
6966
7020
  var DIGITS = /\d{5,}/;
6967
7021
  var oddName = /* @__PURE__ */ __name((name) => !name?.trim() || DIGITS.test(name) || LINK.test(name), "oddName");
6968
7022
 
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
7023
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/contact-activity.js
6970
7024
  var linkedIdentity = strictObject({
6971
7025
  provider: text,
6972
7026
  id,
@@ -6974,6 +7028,9 @@ var linkedIdentity = strictObject({
6974
7028
  username: nullable(text),
6975
7029
  phone: optional(nullable(text)),
6976
7030
  email: optional(nullable(text)),
7031
+ /** Every phone and address the source gave, `phone` and `email` among them. */
7032
+ phones: optional(array(text)),
7033
+ emails: optional(array(text)),
6977
7034
  is_bot: nullable(boolean()),
6978
7035
  accounts: array(id),
6979
7036
  seen_in: array(strictObject({ account: id, scope: picklist(["personal", "work"]) })),
@@ -6984,6 +7041,8 @@ var linkedIdentity = strictObject({
6984
7041
  var linkedPerson = strictObject({
6985
7042
  uid: id,
6986
7043
  name: nullable(text),
7044
+ /** The name `people list` shows: the person's own, else an account's, a username, phone or address. */
7045
+ display_name: optional(nullable(text)),
6987
7046
  identities: array(linkedIdentity),
6988
7047
  /** An agent's link: the `identity_link` proposal the owner decides; the person is still as it was. */
6989
7048
  proposal: optional(text)
@@ -7016,7 +7075,7 @@ var contactCheck = strictObject({
7016
7075
  checked_at: time
7017
7076
  });
7018
7077
 
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
7078
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/member.js
7020
7079
  var member = strictObject({
7021
7080
  id,
7022
7081
  name: nullable(text),
@@ -7039,7 +7098,7 @@ var member = strictObject({
7039
7098
  check: optional(record(string(), unknown()))
7040
7099
  });
7041
7100
 
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
7101
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/chat.js
7043
7102
  var setting = optional(nullable(boolean()));
7044
7103
  var chat = strictObject({
7045
7104
  ref: reference,
@@ -7080,7 +7139,7 @@ var chat = strictObject({
7080
7139
  members: optional(array(member))
7081
7140
  });
7082
7141
 
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
7142
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/message.js
7084
7143
  var quoted = strictObject({
7085
7144
  id,
7086
7145
  sender_id: nullable(id),
@@ -7199,7 +7258,7 @@ var message = strictObject({
7199
7258
  provider_metadata: providerMetadata
7200
7259
  });
7201
7260
 
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
7261
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/contact-context.js
7203
7262
  var contextPerson = strictObject({ ...linkedPerson.entries, provider: text, id });
7204
7263
  var contextMessage = strictObject({
7205
7264
  locator: reference,
@@ -7403,12 +7462,24 @@ var contactPreparation = strictObject({
7403
7462
  })
7404
7463
  });
7405
7464
 
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
7465
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/deal.js
7407
7466
  var nullableText = nullable(text);
7408
7467
  var party = strictObject({ ref: reference, name: nullableText, owner: boolean() });
7409
7468
  var outcome = picklist(["open", "won", "lost"]);
7410
7469
  var crmAccount = nullable(strictObject({ provider: text, account: text }));
7411
7470
  var day = nullable(pipe(string(), regex(/^\d{4}-\d{2}-\d{2}$/)));
7471
+ var activity = strictObject({
7472
+ external_id: text,
7473
+ kind: picklist(CRM_ACTIVITY_KINDS),
7474
+ subject: text,
7475
+ body: nullableText,
7476
+ due_at: nullable(time),
7477
+ done: boolean(),
7478
+ /** The identity `<account>/user/<id>` responsible for it. */
7479
+ assignee: nullableText,
7480
+ created_at: time,
7481
+ updated_at: time
7482
+ });
7412
7483
  var deal = strictObject({
7413
7484
  id,
7414
7485
  ref: reference,
@@ -7423,6 +7494,9 @@ var deal = strictObject({
7423
7494
  base_stage: nullable(strictObject({ ref: reference, name: text })),
7424
7495
  status: outcome,
7425
7496
  organization: nullable(party),
7497
+ /** A CRM copy's own person and company as the CRM keeps them on it, such as a lead's with nobody linked yet. */
7498
+ contact_name: nullableText,
7499
+ company_name: nullableText,
7426
7500
  currency: nullableText,
7427
7501
  amount: nullableText,
7428
7502
  close_date: day,
@@ -7457,6 +7531,8 @@ var deal = strictObject({
7457
7531
  project_name: nullableText,
7458
7532
  created_at: time,
7459
7533
  updated_at: time,
7534
+ /** `show` of a CRM copy whose `activities` setting is on: its activities and tasks, open ones first. */
7535
+ activities: optional(array(activity)),
7460
7536
  untrusted
7461
7537
  });
7462
7538
  var lead = deal;
@@ -7495,7 +7571,7 @@ var stage = strictObject({
7495
7571
  untrusted
7496
7572
  });
7497
7573
 
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
7574
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/business-context.js
7499
7575
  var nullableText2 = nullable(text);
7500
7576
  var day2 = nullable(pipe(string(), regex(/^\d{4}-\d{2}-\d{2}$/)));
7501
7577
  var standing = picklist(STANDINGS);
@@ -7669,7 +7745,7 @@ var dealBrief = strictObject({
7669
7745
  not_read: coverage2.entries.not_read
7670
7746
  });
7671
7747
 
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
7748
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/chart.js
7673
7749
  var chart = strictObject({
7674
7750
  version: literal(1),
7675
7751
  kind: picklist(["bar", "line", "grouped-bar"]),
@@ -7684,7 +7760,7 @@ var chart = strictObject({
7684
7760
  file: optional(strictObject({ path: text, format: picklist(["svg", "png"]), width: count, height: count }))
7685
7761
  });
7686
7762
 
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
7763
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/folder.js
7688
7764
  var named = strictObject({
7689
7765
  id,
7690
7766
  title: nullable(text),
@@ -7707,7 +7783,7 @@ var folder = strictObject({
7707
7783
  excluded_chats: optional(array(named))
7708
7784
  });
7709
7785
 
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
7786
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/invite-link.js
7711
7787
  var inviteLink = strictObject({
7712
7788
  link: text,
7713
7789
  /** Who joins by it asks first, and an admin lets them in. */
@@ -7723,7 +7799,7 @@ var inviteLink = strictObject({
7723
7799
  joined_count: optional(count)
7724
7800
  });
7725
7801
 
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
7802
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/chat-admin.js
7727
7803
  var operated = { operation_id: id, chat_id: id };
7728
7804
  var group = strictObject({
7729
7805
  ...omit(chat, ["ref", "provider", "account", "invite_link", "members"]).entries,
@@ -7803,7 +7879,7 @@ var chatFolderOrder = strictObject({
7803
7879
  folders: array(strictObject({ id, title: text }))
7804
7880
  });
7805
7881
 
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
7882
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/chat-change.js
7807
7883
  var operated2 = { operation_id: id, chat_id: id };
7808
7884
  var chatRemoval = strictObject(operated2);
7809
7885
  var chatMuting = strictObject({
@@ -7814,7 +7890,7 @@ var chatArchive = strictObject({ ...operated2, archived: boolean() });
7814
7890
  var chatPin = strictObject({ ...operated2, pinned: boolean() });
7815
7891
  var chatUnread = strictObject({ ...operated2, unread: literal(true) });
7816
7892
 
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
7893
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/chat-event.js
7818
7894
  var who = strictObject({ id: nullable(id), name: nullable(text), username: optional(nullable(text)) });
7819
7895
  var chatEvent = strictObject({
7820
7896
  chat_id: id,
@@ -7831,7 +7907,7 @@ var chatEvent = strictObject({
7831
7907
  before: optional(strictObject({ name: nullable(text), username: nullable(text) }))
7832
7908
  });
7833
7909
 
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
7910
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/chat-metadata.js
7835
7911
  var chatMetadata = strictObject({
7836
7912
  chat_id: id,
7837
7913
  title: nullable(text),
@@ -7846,7 +7922,7 @@ var chatMetadataRefresh = strictObject({
7846
7922
  has_more: boolean()
7847
7923
  });
7848
7924
 
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
7925
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/chat-moderation.js
7850
7926
  var action = picklist(["report", "delete", "remove"]);
7851
7927
  var level = picklist(["deny", "readonly", "ask", "allow"]);
7852
7928
  var chatRules = strictObject({
@@ -7883,7 +7959,7 @@ var chatModeration = strictObject({
7883
7959
  }))
7884
7960
  });
7885
7961
 
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
7962
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/chat-stats.js
7887
7963
  var optionalCount = optional(count);
7888
7964
  var minutes = nullable(number());
7889
7965
  var chatStats = strictObject({
@@ -7936,6 +8012,8 @@ var chatStats = strictObject({
7936
8012
  });
7937
8013
  var ms = nullable(pipe(number(), minValue(0)));
7938
8014
  var taskStats = strictObject({
8015
+ /** Every account counted, `provider:account`, when the answer reads several (memo without `--source`). */
8016
+ accounts: optional(array(text)),
7939
8017
  /** Open tasks across every row. */
7940
8018
  open: count,
7941
8019
  created: count,
@@ -7957,7 +8035,7 @@ var taskStats = strictObject({
7957
8035
  }))
7958
8036
  });
7959
8037
 
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
8038
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/chat-tracking.js
7961
8039
  var memberCount = strictObject({
7962
8040
  day: pipe(text, isoDate()),
7963
8041
  participants: nullable(count),
@@ -7980,7 +8058,7 @@ var chatTracking = strictObject({
7980
8058
  tracked: boolean()
7981
8059
  });
7982
8060
 
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
8061
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/contact-read.js
7984
8062
  var contactLookup = strictObject({ id, name: nullable(text), username: nullable(text) });
7985
8063
  var contactSync = strictObject({ added: count, changed: count, known: count });
7986
8064
  var profileFields = {
@@ -8018,7 +8096,7 @@ var profileFields = {
8018
8096
  }))
8019
8097
  };
8020
8098
 
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
8099
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/contact.js
8022
8100
  var contact = strictObject({
8023
8101
  ref: reference,
8024
8102
  id,
@@ -8049,7 +8127,7 @@ var contact = strictObject({
8049
8127
  notes: optional(array(strictObject({ id, text, revision: count, created_at: time, updated_at: time })))
8050
8128
  });
8051
8129
 
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
8130
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/contact-note.js
8053
8131
  var contactNote = strictObject({
8054
8132
  id,
8055
8133
  /** The contact, as a `contact:` reference. */
@@ -8061,13 +8139,13 @@ var contactNote = strictObject({
8061
8139
  updated_at: time
8062
8140
  });
8063
8141
 
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
8142
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/contact-write.js
8065
8143
  var addressBookPerson = strictObject({ id, name: nullable(text), username: nullable(text) });
8066
8144
  var contactUpdate = strictObject({ operation_id: id, person: addressBookPerson });
8067
8145
  var contactStateChange = strictObject({ operation_id: id, person_id: id });
8068
8146
  var contactImport = strictObject({ operation_id: id, sent: count, recognised: array(addressBookPerson) });
8069
8147
 
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
8148
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/conversation.js
8071
8149
  var conversation = strictObject({
8072
8150
  id,
8073
8151
  chat: reference,
@@ -8082,7 +8160,7 @@ var conversation = strictObject({
8082
8160
  rules_version: count
8083
8161
  });
8084
8162
 
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
8163
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/conversation-preparation.js
8086
8164
  var conversationBuild = strictObject({
8087
8165
  chat: id,
8088
8166
  messages: count,
@@ -8107,7 +8185,7 @@ var catchUpPreparation = strictObject({
8107
8185
  prepared: optional(conversationPreparation)
8108
8186
  });
8109
8187
 
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
8188
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/conversation-results.js
8111
8189
  var conversationDetails = union([
8112
8190
  strictObject({ ...conversation.entries, messages: array(message) }),
8113
8191
  message
@@ -8197,7 +8275,7 @@ var conversationHit = strictObject({
8197
8275
  stale: boolean()
8198
8276
  });
8199
8277
 
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
8278
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/counters.js
8201
8279
  var counters = strictObject({
8202
8280
  cutoff: time,
8203
8281
  max_age_ms: milliseconds,
@@ -8227,7 +8305,7 @@ var counterRefresh = strictObject({
8227
8305
  complete: optional(boolean())
8228
8306
  });
8229
8307
 
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
8308
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/document.js
8231
8309
  var document = strictObject({
8232
8310
  ref: reference,
8233
8311
  id,
@@ -8242,7 +8320,7 @@ var document = strictObject({
8242
8320
  owners: optional(array(text))
8243
8321
  });
8244
8322
 
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
8323
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/document-link.js
8246
8324
  var documentLink = strictObject({
8247
8325
  ref: reference,
8248
8326
  url: text,
@@ -8253,7 +8331,7 @@ var documentLink = strictObject({
8253
8331
  sender: strictObject({ id: nullable(id), name: nullable(text) })
8254
8332
  });
8255
8333
 
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
8334
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/evidence.js
8257
8335
  var evidenceMessage = pick(message, ["ref", "chat_title", "timestamp", "sender_name", "text"]);
8258
8336
  var contribution = strictObject({
8259
8337
  message: evidenceMessage,
@@ -8283,7 +8361,7 @@ var retentionStay = strictObject({
8283
8361
  });
8284
8362
  var evidence = union([contribution, retentionStay]);
8285
8363
 
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
8364
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/fact.js
8287
8365
  var fact = strictObject({
8288
8366
  ref: reference,
8289
8367
  id,
@@ -8314,7 +8392,7 @@ var fact = strictObject({
8314
8392
  updated_at: time
8315
8393
  });
8316
8394
 
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
8395
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/hit.js
8318
8396
  var hit = strictObject({
8319
8397
  kind: picklist(["message", "mail", "note", "document", "event", "meeting", "deal", "lead", ...BUSINESS_KINDS]),
8320
8398
  ref: reference,
@@ -8360,7 +8438,7 @@ var hit = strictObject({
8360
8438
  untrusted
8361
8439
  });
8362
8440
 
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
8441
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/identity.js
8364
8442
  var identity = strictObject({
8365
8443
  ref: reference,
8366
8444
  provider: text,
@@ -8376,7 +8454,7 @@ var identity = strictObject({
8376
8454
  person: optional(nullable(reference))
8377
8455
  });
8378
8456
 
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
8457
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/image-embedding.js
8380
8458
  var imageEmbedding = strictObject({
8381
8459
  model: text,
8382
8460
  embedded: count,
@@ -8385,13 +8463,13 @@ var imageEmbedding = strictObject({
8385
8463
  more: boolean()
8386
8464
  });
8387
8465
 
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
8466
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
8389
8467
  import { spawn } from "node:child_process";
8390
8468
  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";
8469
+ import { closeSync, existsSync as existsSync6, mkdirSync as mkdirSync2, openSync, readdirSync as readdirSync3, readFileSync as readFileSync5, realpathSync, rmSync as rmSync2 } from "node:fs";
8392
8470
  import { dirname as dirname2, join as join5 } from "node:path";
8393
8471
 
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
8472
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/background/checkpoints.js
8395
8473
  var progressOf = /* @__PURE__ */ __name((input) => {
8396
8474
  const total = input.total ?? null;
8397
8475
  const updated = input.updatedAt ?? null;
@@ -8407,7 +8485,7 @@ var progressOf = /* @__PURE__ */ __name((input) => {
8407
8485
  };
8408
8486
  }, "progressOf");
8409
8487
 
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
8488
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/runs/record-log.js
8411
8489
  var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) => {
8412
8490
  const run = currentRun();
8413
8491
  const trace = traceId ?? run.traceId;
@@ -8421,7 +8499,7 @@ var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) =
8421
8499
  }));
8422
8500
  }, "recordLogFor");
8423
8501
 
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
8502
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
8425
8503
  var JOB_STATES = ["running", "done", "partial", "failed", "cancelled", "died"];
8426
8504
  var spawnDetached = /* @__PURE__ */ __name((argv, env, log) => {
8427
8505
  const out = openSync(log, "a", 384);
@@ -8448,7 +8526,7 @@ var readJob = /* @__PURE__ */ __name((dir, id6) => {
8448
8526
  if (!/^[\w-]+$/.test(id6) || !existsSync6(jobPath(dir, id6)))
8449
8527
  return void 0;
8450
8528
  try {
8451
- return JSON.parse(readFileSync4(jobPath(dir, id6), "utf8"));
8529
+ return JSON.parse(readFileSync5(jobPath(dir, id6), "utf8"));
8452
8530
  } catch {
8453
8531
  return void 0;
8454
8532
  }
@@ -8576,7 +8654,7 @@ var startArchiveJob = /* @__PURE__ */ __name((app, env, profile, input, spawnJob
8576
8654
  return { job: id6, pid, chat: input.chat, log };
8577
8655
  }, "startArchiveJob");
8578
8656
 
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
8657
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/job.js
8580
8658
  var problem = strictObject({ code: text, message: text });
8581
8659
  var job = strictObject({
8582
8660
  id,
@@ -8599,7 +8677,7 @@ var job = strictObject({
8599
8677
  error: optional(problem)
8600
8678
  });
8601
8679
 
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
8680
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/join-request.js
8603
8681
  var joinRequest = strictObject({
8604
8682
  person_id: id,
8605
8683
  name: nullable(text),
@@ -8610,7 +8688,7 @@ var joinRequest = strictObject({
8610
8688
  about: optional(text)
8611
8689
  });
8612
8690
 
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
8691
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/list-results.js
8614
8692
  var botProfile = strictObject({
8615
8693
  name: text,
8616
8694
  token: text,
@@ -8674,12 +8752,39 @@ var scheduledJob = strictObject({
8674
8752
  error: optional(text)
8675
8753
  })))
8676
8754
  })),
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. */
8755
+ /** Agent schedules: the agent it starts, as `schedule agents list` names it; null for a program no agent here runs. */
8756
+ harness: optional(nullable(text)),
8757
+ /** Agent schedules: whether the agent reports what a run cost; when it does not, the cost fields are null. */
8758
+ reports_cost: optional(boolean()),
8759
+ /** Agent schedules: what today's runs cost, in US dollars; null when the agent reports no cost (unknown, not 0). */
8760
+ spent_today_usd: optional(nullable(number())),
8761
+ /** Agent schedules: the cap on one run (`--max-cost`), null when none or when the agent reports no cost. */
8680
8762
  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())
8763
+ /**
8764
+ * Agent schedules: the daily cap in force, the schedule's `--max-cost-per-day` or the config's; 0 for none; null when
8765
+ * the agent reports no cost, so no cap can stop it.
8766
+ */
8767
+ max_cost_per_day_usd: optional(nullable(number()))
8768
+ });
8769
+ var scheduleHarness = strictObject({
8770
+ id: text,
8771
+ name: text,
8772
+ /** The program names it is found by on PATH, the first found wins. */
8773
+ programs: array(text),
8774
+ /** It reports what a run costs, so `--max-cost` and `--max-cost-per-day` hold. */
8775
+ reports_cost: boolean(),
8776
+ /** The agent's own limits hold a one-shot run to the CLIs' commands (claude, gemini, opencode). */
8777
+ restricted: boolean(),
8778
+ /** Why an agent that is not restricted is not, and what it may still do: a client shows it before the owner picks. */
8779
+ restricted_reason: nullable(text),
8780
+ /**
8781
+ * Not restricted, yet a schedule starts it once the owner accepts that with `--allow-dangerous` (codex, whose sandbox
8782
+ * blocks the network and most writes); refused without it (`agent.unrestricted`). False for the rest.
8783
+ */
8784
+ allowed_with_ack: boolean(),
8785
+ installed: boolean(),
8786
+ /** Where its program is, or null when it is not on PATH. */
8787
+ path: nullable(text)
8683
8788
  });
8684
8789
  var botTemplate = strictObject({
8685
8790
  name: nullable(text),
@@ -8707,7 +8812,7 @@ var stickerInventory = strictObject({
8707
8812
  url: optional(nullable(text))
8708
8813
  });
8709
8814
 
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
8815
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/poll-vote.js
8711
8816
  var pollVote = strictObject({
8712
8817
  person_id: id,
8713
8818
  name: nullable(text),
@@ -8717,7 +8822,7 @@ var pollVote = strictObject({
8717
8822
  voted_at: time
8718
8823
  });
8719
8824
 
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
8825
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/listener.js
8721
8826
  var reactions = unwrap(unwrap(message.entries.reactions));
8722
8827
  var observation = strictObject({
8723
8828
  value: pipe(number(), minValue(0)),
@@ -8759,7 +8864,7 @@ var serveSummary = strictObject({
8759
8864
  tasks: optional(strictObject({ added: count, closed: count, review: count }))
8760
8865
  });
8761
8866
 
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
8867
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/mail-counts.js
8763
8868
  var mailCounts = strictObject({
8764
8869
  by: picklist(["day", "week", "sender"]),
8765
8870
  received: count,
@@ -8774,7 +8879,7 @@ var mailCounts = strictObject({
8774
8879
  }))
8775
8880
  });
8776
8881
 
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
8882
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/mail-findings.js
8778
8883
  var evidence2 = strictObject({ reference, fingerprint: text });
8779
8884
  var base = { id, evidence: array(evidence2) };
8780
8885
  var finding = variant("kind", [
@@ -8918,7 +9023,7 @@ var mailFindings = strictObject({
8918
9023
  receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome2) }))
8919
9024
  });
8920
9025
 
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
9026
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/media-archive.js
8922
9027
  var mediaArchive = strictObject({
8923
9028
  directory: text,
8924
9029
  chats: count,
@@ -8950,7 +9055,7 @@ var mediaArchiveTimer = union([
8950
9055
  strictObject({ ...timer, action: picklist(["install", "start", "stop", "uninstall"]) })
8951
9056
  ]);
8952
9057
 
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
9058
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation-parts.js
8954
9059
  var preparationId = pipe(string(), minLength(1));
8955
9060
  var preparationCount = pipe(number(), integer(), minValue(0));
8956
9061
  var preparationTime = nullable(isoTime);
@@ -9042,7 +9147,7 @@ var preparationMeeting = strictObject({
9042
9147
  updated_at: isoTime
9043
9148
  });
9044
9149
 
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
9150
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/meeting-evidence.js
9046
9151
  var meetingEvidence = preparationEvidence;
9047
9152
  var meetingPersonContext = strictObject({
9048
9153
  person: strictObject({ uid: string(), name: nullable(string()) }),
@@ -9064,7 +9169,7 @@ var meetingPersonContext = strictObject({
9064
9169
  })
9065
9170
  });
9066
9171
 
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
9172
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/meeting-findings.js
9068
9173
  var evidence3 = strictObject({ reference, fingerprint: text });
9069
9174
  var base2 = { id, project: reference, evidence: array(evidence3) };
9070
9175
  var finding2 = variant("kind", [
@@ -9102,7 +9207,7 @@ var meetingFindings = strictObject({
9102
9207
  receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome3) }))
9103
9208
  });
9104
9209
 
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
9210
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/meeting-communications.js
9106
9211
  var communicationCoverage = strictObject({
9107
9212
  read_usage: strictObject({ reads: preparationCount, charged_bytes: preparationCount, reserved_bytes: preparationCount, remaining_bytes: preparationCount }),
9108
9213
  query: string(),
@@ -9147,7 +9252,7 @@ var preparationCommunications = strictObject({
9147
9252
  }))
9148
9253
  });
9149
9254
 
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
9255
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation.js
9151
9256
  var meetingPreparation = strictObject({
9152
9257
  communications: optional(preparationCommunications),
9153
9258
  schema_version: literal(1),
@@ -9260,7 +9365,7 @@ var meetingPreparation = strictObject({
9260
9365
  })
9261
9366
  });
9262
9367
 
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
9368
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/meeting-project-candidates.js
9264
9369
  var count4 = pipe(number(), integer(), minValue(0));
9265
9370
  var id3 = pipe(string(), minLength(1));
9266
9371
  var text3 = string();
@@ -9324,7 +9429,7 @@ var meetingProjectCandidates = strictObject({
9324
9429
  })
9325
9430
  });
9326
9431
 
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
9432
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/meeting-series-inventory.js
9328
9433
  var count5 = pipe(number(), integer(), minValue(0));
9329
9434
  var id4 = pipe(string(), minLength(1), maxLength(1e3));
9330
9435
  var meetingSeriesInventory = strictObject({
@@ -9354,7 +9459,7 @@ var meetingSeriesInventory = strictObject({
9354
9459
  })
9355
9460
  });
9356
9461
 
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
9462
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/meeting-task-proposal.js
9358
9463
  var text4 = string();
9359
9464
  var id5 = pipe(number(), integer(), minValue(1));
9360
9465
  var revision = picklist(["current", "superseded"]);
@@ -9371,7 +9476,7 @@ var meetingTaskProposal = strictObject({
9371
9476
  persistence: literal("proposal-only")
9372
9477
  });
9373
9478
 
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
9479
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/memory.js
9375
9480
  var memory = strictObject({
9376
9481
  ref: reference,
9377
9482
  id,
@@ -9399,7 +9504,7 @@ var memory = strictObject({
9399
9504
  updated_at: time
9400
9505
  });
9401
9506
 
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
9507
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/mention.js
9403
9508
  var kind = picklist(["phone", "email", "url", "document", "person-name", "place"]);
9404
9509
  var status = picklist(["found", "linked", "proposed", "dismissed"]);
9405
9510
  var mention = strictObject({
@@ -9443,13 +9548,13 @@ var mentionRebuild = strictObject({
9443
9548
  mentions: count
9444
9549
  });
9445
9550
 
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
9551
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/message-change.js
9447
9552
  var operated3 = { operation_id: id, chat_id: id };
9448
9553
  var messagePin = strictObject({ ...operated3, message_id: id, pinned: boolean() });
9449
9554
  var messageStar = strictObject({ ...operated3, message_id: id, starred: boolean() });
9450
9555
  var messageDeletion = strictObject({ ...operated3, deleted: array(id), for_everyone: boolean() });
9451
9556
 
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
9557
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/message-read.js
9453
9558
  var messageTranscript = strictObject({
9454
9559
  message_id: id,
9455
9560
  text,
@@ -9507,7 +9612,7 @@ var evidencePacket = strictObject({
9507
9612
  }))
9508
9613
  });
9509
9614
 
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
9615
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/message-context.js
9511
9616
  var messageThread = strictObject({
9512
9617
  ref: reference,
9513
9618
  chat: id,
@@ -9524,7 +9629,7 @@ var messageThread = strictObject({
9524
9629
  });
9525
9630
  var messageContext = union([message, messageThread]);
9526
9631
 
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
9632
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/message-counts.js
9528
9633
  var messageCounts = strictObject({
9529
9634
  by: picklist(["chat", "sender", "day", "hour"]),
9530
9635
  total: count,
@@ -9537,7 +9642,7 @@ var messageCounts = strictObject({
9537
9642
  }))
9538
9643
  });
9539
9644
 
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
9645
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/message-link.js
9541
9646
  var messageLink = strictObject({
9542
9647
  ref: reference,
9543
9648
  url: nullable(text),
@@ -9554,7 +9659,7 @@ var messageLink = strictObject({
9554
9659
  })))
9555
9660
  });
9556
9661
 
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
9662
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/message-transfer.js
9558
9663
  var savedMessageFile = strictObject({
9559
9664
  kind: text,
9560
9665
  path: text,
@@ -9641,7 +9746,7 @@ var messageSyncAll = strictObject({
9641
9746
  var messageSyncStarted = strictObject({ job: id, pid: count, chat: text, log: text });
9642
9747
  var messageSync = union([messageSyncEstimate, messageSyncChat, messageSyncAll, messageSyncStarted]);
9643
9748
 
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
9749
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/message-write.js
9645
9750
  var messageWrite = strictObject({
9646
9751
  operation_id: id,
9647
9752
  message,
@@ -9656,7 +9761,7 @@ var draftWrite = strictObject({
9656
9761
  });
9657
9762
  var messageSend = union([messageWrite, draftWrite]);
9658
9763
 
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
9764
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/model.js
9660
9765
  var model2 = strictObject({
9661
9766
  id,
9662
9767
  kind: picklist(["audio", "text", "image", "reranker"]),
@@ -9691,7 +9796,7 @@ var chosenModel = strictObject({
9691
9796
  estimate_seconds: nullable(count)
9692
9797
  });
9693
9798
 
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
9799
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/model-key.js
9695
9800
  var source = picklist(["environment", "keyring", "file"]);
9696
9801
  var modelKey = strictObject({
9697
9802
  provider: text,
@@ -9701,7 +9806,7 @@ var modelKey = strictObject({
9701
9806
  var storedModelKey = strictObject({ ...omit(modelKey, ["removed"]).entries, stored: source });
9702
9807
  var removedModelKey = strictObject({ ...omit(modelKey, ["stored"]).entries, removed: array(source) });
9703
9808
 
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
9809
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/official-stats.js
9705
9810
  var versus = strictObject({ current: number(), previous: number() });
9706
9811
  var person = { person_ref: reference, name: nullable(text) };
9707
9812
  var graph = strictObject({
@@ -9735,14 +9840,14 @@ var officialStats = strictObject({
9735
9840
  graphs: record(string(), union([graph, strictObject({ error: text })]))
9736
9841
  });
9737
9842
 
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
9843
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/person.js
9739
9844
  var person2 = strictObject({
9740
9845
  ref: reference,
9741
9846
  name: nullable(text),
9742
9847
  identities: optional(array(identity))
9743
9848
  });
9744
9849
 
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
9850
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/poll.js
9746
9851
  var poll = strictObject({
9747
9852
  chat_id: id,
9748
9853
  message_id: id,
@@ -9758,11 +9863,11 @@ var poll = strictObject({
9758
9863
  });
9759
9864
  var pollChange = strictObject({ operation_id: id, poll });
9760
9865
 
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
9866
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/private-contact.js
9762
9867
  var contactAlias = strictObject({ person_id: id, alias: nullable(text) });
9763
9868
  var contactNoteRemoval = strictObject({ id, person_id: id, removed: boolean() });
9764
9869
 
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
9870
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/ranking.js
9766
9871
  var figures = record(string(), number());
9767
9872
  var freshness = picklist(["fresh", "stale", "partial", "unknown"]);
9768
9873
  var rankingRow = strictObject({
@@ -9809,7 +9914,7 @@ var ranking = strictObject({
9809
9914
  rows: array(rankingRow)
9810
9915
  });
9811
9916
 
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
9917
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/reaction.js
9813
9918
  var reaction = strictObject({
9814
9919
  person: strictObject({ id, name: nullable(text), username: nullable(text) }),
9815
9920
  /** The emoji, or `custom:<id>` for a custom one. */
@@ -9817,7 +9922,7 @@ var reaction = strictObject({
9817
9922
  reacted_at: time
9818
9923
  });
9819
9924
 
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
9925
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/reaction-change.js
9821
9926
  var reactionChange = strictObject({
9822
9927
  operation_id: id,
9823
9928
  chat_id: id,
@@ -9825,7 +9930,7 @@ var reactionChange = strictObject({
9825
9930
  reaction: nullable(text)
9826
9931
  });
9827
9932
 
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
9933
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/recipient.js
9829
9934
  var recipient = strictObject({ id, title: nullable(text), partner_id: optional(id), added_at: time });
9830
9935
  var recipientAdded = strictObject({ id, title: nullable(text), added: boolean() });
9831
9936
  var recipientRemoved = strictObject({ id, title: nullable(text), removed: boolean() });
@@ -9836,7 +9941,7 @@ var recipientChange = strictObject({
9836
9941
  ...partial(recipientOff).entries
9837
9942
  });
9838
9943
 
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
9944
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/recorded-run.js
9840
9945
  var events = array(record(string(), unknown()));
9841
9946
  var recordedRun = strictObject({
9842
9947
  run_id: id,
@@ -9908,7 +10013,7 @@ var runHit = strictObject({
9908
10013
  });
9909
10014
  var runLocation = strictObject({ path: text });
9910
10015
 
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
10016
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/relationship.js
9912
10017
  var relationship = strictObject({
9913
10018
  id,
9914
10019
  from: reference,
@@ -9935,7 +10040,7 @@ var relationship = strictObject({
9935
10040
  created_at: time
9936
10041
  });
9937
10042
 
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
10043
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/reply-stats.js
9939
10044
  var milliseconds2 = nullable(pipe(number(), minValue(0)));
9940
10045
  var figures2 = { replies: count, median_ms: milliseconds2, p90_ms: milliseconds2, mean_ms: milliseconds2 };
9941
10046
  var responseTimes = strictObject({
@@ -9952,7 +10057,7 @@ var waitingChats = strictObject({
9952
10057
  by_kind: strictObject({ private: count, group: count })
9953
10058
  });
9954
10059
 
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
10060
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/retention.js
9956
10061
  var retentionCohort = strictObject({
9957
10062
  /** The first day of the joining day or week. */
9958
10063
  cohort: text,
@@ -10000,7 +10105,7 @@ var retention = strictObject({
10000
10105
  rows: array(retentionCohort)
10001
10106
  });
10002
10107
 
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
10108
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/saved-search.js
10004
10109
  var savedSearch = strictObject({
10005
10110
  id,
10006
10111
  /** `null` for a run in the history. */
@@ -10017,7 +10122,7 @@ var savedSearch = strictObject({
10017
10122
  });
10018
10123
  var searchHistoryClear = strictObject({ cleared: count });
10019
10124
 
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
10125
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/send-attempt.js
10021
10126
  var sendAttempt = strictObject({
10022
10127
  at: time,
10023
10128
  profile: text,
@@ -10045,7 +10150,7 @@ var sendAttempt = strictObject({
10045
10150
  error_code: optional(text)
10046
10151
  });
10047
10152
 
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
10153
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/store-maintenance.js
10049
10154
  var absent = strictObject({ path: text, exists: literal(false) });
10050
10155
  var schema = strictObject({ version: count, min_compatible: count, writable: boolean(), speaks: count });
10051
10156
  var infoSchema = strictObject({
@@ -10219,6 +10324,15 @@ var storeRestore = union([
10219
10324
  foreign_key_violations: count
10220
10325
  })
10221
10326
  ]);
10327
+ var importCounts = strictObject({ chats: count, messages: count });
10328
+ var storeImport = strictObject({
10329
+ store: text,
10330
+ profile: text,
10331
+ account: text,
10332
+ imported: boolean(),
10333
+ file: strictObject({ chats: count, people: count, messages: count }),
10334
+ added: optional(importCounts)
10335
+ });
10222
10336
  var storeReset = union([
10223
10337
  strictObject({ ...absent.entries, reset: literal(false) }),
10224
10338
  strictObject({
@@ -10266,7 +10380,7 @@ var storeRepair = union([
10266
10380
  ]);
10267
10381
  var storeCopyRemoval = strictObject({ path: text, deleted: strictObject({ name: text, rows: count }) });
10268
10382
 
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
10383
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/store-records.js
10270
10384
  var range = strictObject({ from: number(), to: number() });
10271
10385
  var storeChatStatus = strictObject({
10272
10386
  chat_id: id,
@@ -10364,7 +10478,7 @@ var storeJobRetry = union([
10364
10478
  ]);
10365
10479
  var storeJobClear = strictObject({ cleared: array(id) });
10366
10480
 
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
10481
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/store-table.js
10368
10482
  var TABLE_KINDS = ["data", "search_index", "search_index_part", "internal"];
10369
10483
  var storeTable = strictObject({
10370
10484
  name: text,
@@ -10373,7 +10487,7 @@ var storeTable = strictObject({
10373
10487
  bytes: optional(nullable(count))
10374
10488
  });
10375
10489
 
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
10490
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/tag-change.js
10377
10491
  var tagTarget = variant("type", [
10378
10492
  strictObject({ type: literal("chat"), chat_id: id }),
10379
10493
  strictObject({ type: literal("contact"), person_id: id }),
@@ -10404,7 +10518,7 @@ var automaticTags = strictObject({
10404
10518
  dry_run: boolean()
10405
10519
  });
10406
10520
 
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
10521
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/tagging.js
10408
10522
  var tagging = strictObject({
10409
10523
  tag: text,
10410
10524
  type: picklist(TAG_TYPES),
@@ -10417,7 +10531,7 @@ var tagging = strictObject({
10417
10531
  created_at: time
10418
10532
  });
10419
10533
 
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
10534
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/task-pair.js
10421
10535
  var side = strictObject({ ref: reference, key: text, title: text, status: text });
10422
10536
  var taskPair = strictObject({
10423
10537
  task: nullable(side),
@@ -10440,7 +10554,7 @@ var taskPair = strictObject({
10440
10554
  created_at: time
10441
10555
  });
10442
10556
 
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
10557
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/task-results.js
10444
10558
  var nullableTime = nullable(time);
10445
10559
  var link = strictObject({
10446
10560
  id,
@@ -10614,7 +10728,7 @@ var taskReview = strictObject({
10614
10728
  untrusted
10615
10729
  });
10616
10730
 
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
10731
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/template.js
10618
10732
  var template = strictObject({
10619
10733
  key: text,
10620
10734
  channel: picklist(["telegram", "email", "text"]),
@@ -10626,7 +10740,7 @@ var template = strictObject({
10626
10740
  updated_by: nullable(text)
10627
10741
  });
10628
10742
 
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
10743
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/topic.js
10630
10744
  var topic = strictObject({
10631
10745
  id,
10632
10746
  title: text,
@@ -10640,7 +10754,7 @@ var topic = strictObject({
10640
10754
  untrusted
10641
10755
  });
10642
10756
 
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
10757
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/entities/index.js
10644
10758
  var ENTITIES = {
10645
10759
  sync_progress: progress,
10646
10760
  deal,
@@ -10747,6 +10861,7 @@ var ENTITIES = {
10747
10861
  topic_icon: topicIcon,
10748
10862
  bot_webhook: botWebhook,
10749
10863
  scheduled_job: scheduledJob,
10864
+ schedule_harness: scheduleHarness,
10750
10865
  call_record: callRecord,
10751
10866
  sticker_inventory: stickerInventory,
10752
10867
  note,
@@ -10867,6 +10982,7 @@ var ENTITIES = {
10867
10982
  store_decrypt: storeDecrypt,
10868
10983
  store_restore: storeRestore,
10869
10984
  store_reset: storeReset,
10985
+ store_import: storeImport,
10870
10986
  store_repair: storeRepair,
10871
10987
  store_copy_removal: storeCopyRemoval,
10872
10988
  store_table: storeTable,
@@ -10933,7 +11049,7 @@ var entityDefinitions = /* @__PURE__ */ __name(() => Object.fromEntries(Object.e
10933
11049
  return [name, definition];
10934
11050
  })), "entityDefinitions");
10935
11051
 
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
11052
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/cli/answer-entity.js
10937
11053
  var schemas = /* @__PURE__ */ new WeakMap();
10938
11054
  var answerEntity = /* @__PURE__ */ __name((command, name, schema2, options = {}) => {
10939
11055
  if (Object.hasOwn(ENTITIES, name))
@@ -10967,7 +11083,7 @@ var answerRow = /* @__PURE__ */ __name((command) => {
10967
11083
  return own && metaOf(command).output?.entity === own.name ? own.row : void 0;
10968
11084
  }, "answerRow");
10969
11085
 
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
11086
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/images/picture/models.js
10971
11087
  import { join as join6 } from "node:path";
10972
11088
  var clip = /* @__PURE__ */ __name((name) => `https://huggingface.co/Xenova/clip-vit-base-patch32/resolve/d15189d7028b43f1d3e65039190477f6af591c2a/${name}`, "clip");
10973
11089
  var IMAGE_MODELS = [
@@ -11021,7 +11137,7 @@ var imageModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedM
11021
11137
  var placedImage = /* @__PURE__ */ __name((model3, directory) => model3.files.map((file) => [file, join6(directory, model3.id, file.name)]), "placedImage");
11022
11138
  var isImageModelInstalled = /* @__PURE__ */ __name((model3, directory) => filesPresent(placedImage(model3, directory)), "isImageModelInstalled");
11023
11139
 
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
11140
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/cli/steps.js
11025
11141
  var STEPS2 = defineSteps([
11026
11142
  ...STEPS,
11027
11143
  {
@@ -11302,7 +11418,7 @@ var stepLine = /* @__PURE__ */ __name((root, step2) => {
11302
11418
  ].join(" ");
11303
11419
  }, "stepLine");
11304
11420
 
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
11421
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/cli/project-status-rows.js
11306
11422
  var where = [{ field: "ref" }];
11307
11423
  var who2 = { field: ["who.owner", "who.name"], tag: "you" };
11308
11424
  var ON_CHAT_ROW = /* @__PURE__ */ new Set(["reply-next", "coverage"]);
@@ -11394,7 +11510,7 @@ var STATUS_ROWS = {
11394
11510
  "status.failed": { columns: [{ field: "signal" }], text: ["why"] }
11395
11511
  };
11396
11512
 
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
11513
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/cli/compact.js
11398
11514
  var TEXT_CHARS = 400;
11399
11515
  var sender = { field: ["sender_is_me", "sender_name"], tag: "me" };
11400
11516
  var messageRow = {
@@ -11760,7 +11876,7 @@ var compactText = /* @__PURE__ */ __name((body, shape, options, rowsOf = rowsOfE
11760
11876
  return lines.concat(footerOf(body)).join("\n");
11761
11877
  }, "compactText");
11762
11878
 
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
11879
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/cli/output-budget.js
11764
11880
  var SOFT_OUTPUT_BYTES = 256 * 1024;
11765
11881
  var CARRIED = ["json", "compact", "offline", "timeout", "full", "brief", "maxOutputBytes"];
11766
11882
  var NOT_WITH_COMPACT = /* @__PURE__ */ new Set(["json", "brief"]);
@@ -11818,7 +11934,7 @@ var largeAnswerSteps = /* @__PURE__ */ __name((command) => {
11818
11934
  return args ? compactStep(command, args, "the answer is large as JSON; one line per item keeps every ref") : [];
11819
11935
  }, "largeAnswerSteps");
11820
11936
 
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
11937
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
11822
11938
  var HIDDEN = /* @__PURE__ */ new Set(["providerRef", "provider_ref"]);
11823
11939
  var withoutProviderRefs = /* @__PURE__ */ __name((value) => strip(value), "withoutProviderRefs");
11824
11940
  var strip = /* @__PURE__ */ __name((value) => {
@@ -11832,7 +11948,91 @@ var strip = /* @__PURE__ */ __name((value) => {
11832
11948
  return Object.fromEntries(Object.entries(value).flatMap(([key, inner]) => HIDDEN.has(key) ? [] : [[key, strip(inner)]]));
11833
11949
  }, "strip");
11834
11950
 
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
11951
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/cli/untrusted-marks.js
11952
+ var OPEN = "\u27E6";
11953
+ var CLOSE = "\u27E7";
11954
+ var untrustedMarkOf = /* @__PURE__ */ __name((app, env) => {
11955
+ if (readOnlyLockOf(app, env) === void 0)
11956
+ return void 0;
11957
+ const mark = ancestorValue(envName(app, "UNTRUSTED_MARK"), env);
11958
+ return mark && /^[0-9a-f]{16}$/.test(mark) ? mark : void 0;
11959
+ }, "untrustedMarkOf");
11960
+ var marked = /* @__PURE__ */ __name((text5, mark, source2, id6) => {
11961
+ const inside = text5.replaceAll(OPEN, "").replaceAll(CLOSE, "").replaceAll(mark, "");
11962
+ const named2 = id6 === void 0 ? "" : ` id=${id6.replaceAll(OPEN, "").replaceAll(CLOSE, "").replace(/\s/g, "")}`;
11963
+ return `${OPEN}untrusted:${mark} source=${source2}${named2}${CLOSE}${inside}${OPEN}/untrusted:${mark}${CLOSE}`;
11964
+ }, "marked");
11965
+ var idOf = /* @__PURE__ */ __name((value) => {
11966
+ const id6 = value.ref ?? value.id;
11967
+ return typeof id6 === "string" || typeof id6 === "number" ? String(id6) : void 0;
11968
+ }, "idOf");
11969
+ var markAt = /* @__PURE__ */ __name((value, path2, mark, source2, id6) => {
11970
+ if (Array.isArray(value))
11971
+ return value.map((one) => markAt(one, path2, mark, source2, id6));
11972
+ if (path2.length === 0)
11973
+ return typeof value === "string" && !value.startsWith(`${OPEN}untrusted:${mark} `) ? marked(value, mark, source2, id6) : value;
11974
+ if (value === null || typeof value !== "object")
11975
+ return value;
11976
+ const [key = "", ...rest] = path2;
11977
+ const record2 = value;
11978
+ if (!(key in record2))
11979
+ return value;
11980
+ return { ...record2, [key]: markAt(record2[key], rest, mark, source2, idOf(record2) ?? id6) };
11981
+ }, "markAt");
11982
+ var withUntrustedMarked = /* @__PURE__ */ __name((value, mark, id6) => {
11983
+ if (Array.isArray(value))
11984
+ return value.map((one) => withUntrustedMarked(one, mark, id6));
11985
+ if (value === null || typeof value !== "object")
11986
+ return value;
11987
+ const record2 = value;
11988
+ const own = idOf(record2) ?? id6;
11989
+ let result = Object.fromEntries(Object.entries(record2).map(([key, child]) => [
11990
+ key,
11991
+ key === "untrusted" ? child : withUntrustedMarked(child, mark, own)
11992
+ ]));
11993
+ const fields = Array.isArray(record2.untrusted) ? record2.untrusted.filter((one) => typeof one === "string") : [];
11994
+ for (const field of fields)
11995
+ result = markAt(result, field.split("."), mark, field, own);
11996
+ return result;
11997
+ }, "withUntrustedMarked");
11998
+ var MESSAGE_UNTRUSTED = [
11999
+ "text",
12000
+ "transcript",
12001
+ "excerpt",
12002
+ "sender_name",
12003
+ "sender_username",
12004
+ "chat_title",
12005
+ "subject",
12006
+ "snippet",
12007
+ "attachments.name",
12008
+ "attachments.title",
12009
+ "attachments.text",
12010
+ "from.name",
12011
+ "to.name",
12012
+ "cc.name",
12013
+ "bcc.name",
12014
+ "reply_addresses.name"
12015
+ ];
12016
+ var DECLARED = /* @__PURE__ */ new WeakMap();
12017
+ var marksUntrusted = /* @__PURE__ */ __name((command, fields = MESSAGE_UNTRUSTED) => {
12018
+ DECLARED.set(command, fields);
12019
+ return command;
12020
+ }, "marksUntrusted");
12021
+ var untrustedFieldsOf = /* @__PURE__ */ __name((command) => DECLARED.get(command), "untrustedFieldsOf");
12022
+ var withFieldsMarked = /* @__PURE__ */ __name((value, fields, mark, id6) => {
12023
+ if (Array.isArray(value))
12024
+ return value.map((one) => withFieldsMarked(one, fields, mark, id6));
12025
+ if (value === null || typeof value !== "object")
12026
+ return value;
12027
+ const record2 = value;
12028
+ const own = idOf(record2) ?? id6;
12029
+ let result = Object.fromEntries(Object.entries(record2).map(([key, child]) => [key, withFieldsMarked(child, fields, mark, own)]));
12030
+ for (const field of fields)
12031
+ result = markAt(result, field.split("."), mark, field, own);
12032
+ return result;
12033
+ }, "withFieldsMarked");
12034
+
12035
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/cli/envelope.js
11836
12036
  var answerSchema = /* @__PURE__ */ __name((item = unknown()) => union([listEnvelopeSchema(item), itemEnvelopeSchema(item)]), "answerSchema");
11837
12037
  var capped2 = /* @__PURE__ */ __name((steps) => steps.length > 0 ? { next: steps.slice(0, MAX_NEXT_STEPS) } : {}, "capped");
11838
12038
  var listOf = /* @__PURE__ */ __name((command, input) => {
@@ -11944,7 +12144,11 @@ var renderAnswer = /* @__PURE__ */ __name((command, { renderer, format, streams,
11944
12144
  const root = rootOf2(command);
11945
12145
  const runnableSteps = runnable(root, body.next);
11946
12146
  const next = environmentOf(command).agent ? runnableSteps : withLines(root, runnableSteps);
11947
- const kept = withoutProviderRefs({ ...body, ...next.length > 0 ? { next } : {} });
12147
+ const { app, env } = environmentOf(command);
12148
+ const mark = app ? untrustedMarkOf(app, env ?? process.env) : void 0;
12149
+ const declared = untrustedFieldsOf(command);
12150
+ const shown = mark === void 0 ? body : withUntrustedMarked(declared ? withFieldsMarked(body, declared, mark) : body, mark);
12151
+ const kept = withoutProviderRefs({ ...shown, ...next.length > 0 ? { next } : {} });
11948
12152
  if (next.length === 0)
11949
12153
  delete kept.next;
11950
12154
  const sealedBody = sealed(kept);
@@ -11985,9 +12189,9 @@ var printItem = /* @__PURE__ */ __name(({ renderer, format }, item) => {
11985
12189
  }, "printItem");
11986
12190
 
11987
12191
  export {
11988
- endpoint,
11989
12192
  modelTarget,
11990
12193
  envName,
12194
+ ancestorValue,
11991
12195
  readOnlyLockOf,
11992
12196
  mailHolderVariable,
11993
12197
  MESSENGER_CHANGE_REFUSAL,
@@ -12008,6 +12212,7 @@ export {
12008
12212
  topicIcon,
12009
12213
  botWebhook,
12010
12214
  scheduledJob,
12215
+ scheduleHarness,
12011
12216
  callRecord,
12012
12217
  stickerInventory,
12013
12218
  progressOf,
@@ -12133,6 +12338,7 @@ export {
12133
12338
  narrowsUnderLock,
12134
12339
  admittedUnderLock,
12135
12340
  changesStore,
12341
+ fileOptionOf,
12136
12342
  readsOverMcpAt,
12137
12343
  isStoreChange,
12138
12344
  previewFlag,
@@ -12196,6 +12402,7 @@ export {
12196
12402
  stepLine,
12197
12403
  tooLargeSteps,
12198
12404
  withoutProviderRefs,
12405
+ marksUntrusted,
12199
12406
  answerSchema,
12200
12407
  listOf,
12201
12408
  itemOf,