@wirecat/mail-cli 0.34.0 → 0.35.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 (150) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/README.md +4 -1
  3. package/contracts/wirecat.json +52 -2
  4. package/dist/bin/mail.js +2 -2
  5. package/dist/bundle/agent-KWLCQCSC.js +39 -0
  6. package/dist/bundle/{all-profiles-2KUKROHY.js → all-profiles-6BDSMVOO.js} +63 -21
  7. package/dist/bundle/{anthropic-E5KRCEVC.js → anthropic-C3XUXUCJ.js} +5 -5
  8. package/dist/bundle/{app-server-HIQ3QO5K.js → app-server-GUHDK4OR.js} +81 -71
  9. package/dist/bundle/{bun-KARJPE5D.js → bun-FN7AM4AG.js} +2 -2
  10. package/dist/bundle/{bun-sqlite-NHGX6ZUN.js → bun-sqlite-56IVBF22.js} +6 -6
  11. package/dist/bundle/{chunk-R2GS3GBJ.js → chunk-2B67TUIF.js} +96 -66
  12. package/dist/bundle/{chunk-4SKE5GYA.js → chunk-2UNQTKRH.js} +1 -1
  13. package/dist/bundle/{chunk-QXLYLVEC.js → chunk-3ACF6TIV.js} +1 -1
  14. package/dist/bundle/chunk-3EV2B7KZ.js +726 -0
  15. package/dist/bundle/chunk-3KAJCOJP.js +109 -0
  16. package/dist/bundle/{chunk-NAENYLIO.js → chunk-3WAZKCDF.js} +2 -2
  17. package/dist/bundle/{chunk-V43KEZYA.js → chunk-46SBNO67.js} +9 -60
  18. package/dist/bundle/{chunk-A2Y2RFNW.js → chunk-4IASS7NQ.js} +57 -4
  19. package/dist/bundle/{chunk-OOYRMTX5.js → chunk-4U5ODZO7.js} +12 -26
  20. package/dist/bundle/{chunk-DYQGEZA2.js → chunk-5WYBI35N.js} +3 -3
  21. package/dist/bundle/{chunk-QFJC6POK.js → chunk-5XQI7WCJ.js} +1 -1
  22. package/dist/bundle/{chunk-2SCQ7Z4I.js → chunk-635AFLZO.js} +4 -4
  23. package/dist/bundle/{chunk-OJ3BI2U4.js → chunk-6B4WZVLN.js} +34 -28
  24. package/dist/bundle/{chunk-FNYWC6A3.js → chunk-6Q5THDNW.js} +3 -3
  25. package/dist/bundle/{chunk-CKVWAUBW.js → chunk-6VARUB3J.js} +12 -12
  26. package/dist/bundle/{chunk-EZAX77SM.js → chunk-7FXZKQAC.js} +86 -75
  27. package/dist/bundle/{chunk-H77ALM2Y.js → chunk-7JVKQ6NM.js} +4 -4
  28. package/dist/bundle/{chunk-HH647UBC.js → chunk-7KMI47AP.js} +104 -255
  29. package/dist/bundle/{chunk-DZRP4UCK.js → chunk-7PXAUMK5.js} +30 -15
  30. package/dist/bundle/{chunk-KGYK3OI3.js → chunk-7YMLEWTX.js} +43 -64
  31. package/dist/bundle/{chunk-OG5QO5RR.js → chunk-AISQNKT7.js} +8 -8
  32. package/dist/bundle/chunk-AV2ZJ4WX.js +7 -0
  33. package/dist/bundle/{chunk-QOQF2TX3.js → chunk-AXKIXVQA.js} +338 -299
  34. package/dist/bundle/{chunk-ZGZADWD7.js → chunk-CDGVYQXG.js} +1 -1
  35. package/dist/bundle/{chunk-Z6A6QPPW.js → chunk-CFQQTDSA.js} +1 -1
  36. package/dist/bundle/{chunk-QXYNDMA6.js → chunk-CMGZXBJW.js} +6 -6
  37. package/dist/bundle/{chunk-4URI6EAV.js → chunk-DD2P67NP.js} +3 -3
  38. package/dist/bundle/{chunk-X6IGETU6.js → chunk-DFHUJTP5.js} +2 -2
  39. package/dist/bundle/{chunk-WYGDALB3.js → chunk-DREU6TN6.js} +18 -18
  40. package/dist/bundle/{chunk-TZJC4AOK.js → chunk-DZHEVVXA.js} +53 -33
  41. package/dist/bundle/{chunk-RPNQXWRS.js → chunk-E6HSSKRX.js} +2 -2
  42. package/dist/bundle/{chunk-6LFRZDPV.js → chunk-EHAXFDDP.js} +1 -1
  43. package/dist/bundle/chunk-EU4J6GCJ.js +52 -0
  44. package/dist/bundle/{chunk-NJVJH5MH.js → chunk-EX4Z7CCO.js} +3245 -1644
  45. package/dist/bundle/chunk-G662S2M4.js +559 -0
  46. package/dist/bundle/{chunk-JVGVLRBA.js → chunk-GG634DR3.js} +5 -5
  47. package/dist/bundle/{chunk-IMQ4CVZJ.js → chunk-GU3PYIV2.js} +2 -2
  48. package/dist/bundle/{chunk-LKTDW5LH.js → chunk-HF5QWKK2.js} +18 -8
  49. package/dist/bundle/chunk-HJDIMVFW.js +108 -0
  50. package/dist/bundle/{chunk-FORAOCZ3.js → chunk-HKWZG7CZ.js} +6 -6
  51. package/dist/bundle/{chunk-QQGPV3QN.js → chunk-HM6AMYHR.js} +2 -2
  52. package/dist/bundle/{chunk-AGZ7SNFF.js → chunk-HVXOA4FO.js} +1 -1
  53. package/dist/bundle/{chunk-NHD5BOJU.js → chunk-I3QZCQJT.js} +6 -6
  54. package/dist/bundle/{chunk-OX5MCGXL.js → chunk-ILEKGH44.js} +63 -54
  55. package/dist/bundle/{chunk-I3MS74OF.js → chunk-J5ULUTWE.js} +4 -4
  56. package/dist/bundle/{chunk-26DYRMXE.js → chunk-L4RCWRWS.js} +1 -1
  57. package/dist/bundle/chunk-MCJYJIH5.js +192 -0
  58. package/dist/bundle/{chunk-NWD7AFOR.js → chunk-NEDS4ORI.js} +2 -2
  59. package/dist/bundle/{chunk-VRGEDK4T.js → chunk-ODQCRZX5.js} +35 -12
  60. package/dist/bundle/chunk-OO4OKMNB.js +80 -0
  61. package/dist/bundle/{chunk-T2EE5M7O.js → chunk-OOQFBRNR.js} +144 -10
  62. package/dist/bundle/{chunk-PA4GEJXQ.js → chunk-OTP2HJ67.js} +9 -9
  63. package/dist/bundle/{chunk-5D4AEUVA.js → chunk-PL5P7UKW.js} +434 -1
  64. package/dist/bundle/{chunk-6G4VQFVX.js → chunk-PQDQCCGG.js} +17 -17
  65. package/dist/bundle/{chunk-KLI5FKZ2.js → chunk-Q5U2HIBJ.js} +7 -7
  66. package/dist/bundle/{chunk-HRDCH2VB.js → chunk-QFMKCU42.js} +3664 -3339
  67. package/dist/bundle/{chunk-VBVR6JRC.js → chunk-QYCMB7JY.js} +269 -173
  68. package/dist/bundle/{chunk-6GGMFL7J.js → chunk-RBV2AM52.js} +2 -100
  69. package/dist/bundle/{chunk-XIF75Z7D.js → chunk-RJNKM3CQ.js} +1 -1
  70. package/dist/bundle/{chunk-SK3N4CK5.js → chunk-RQHWSNX4.js} +4 -4
  71. package/dist/bundle/{chunk-4VHK5UBM.js → chunk-RQJGX7F7.js} +3 -3
  72. package/dist/bundle/{chunk-PC3N3LH3.js → chunk-TARNPINT.js} +3 -3
  73. package/dist/bundle/{chunk-5GANGHQI.js → chunk-TP2BCK2Z.js} +9 -9
  74. package/dist/bundle/{chunk-ZZEWQR43.js → chunk-TP766H4O.js} +14 -14
  75. package/dist/bundle/{chunk-PVZMN3UZ.js → chunk-UHGKN5US.js} +8 -8
  76. package/dist/bundle/{chunk-4VM3UCSO.js → chunk-UWDRU3R6.js} +2 -2
  77. package/dist/bundle/{chunk-KNVTBDTE.js → chunk-V4O47JV6.js} +3 -3
  78. package/dist/bundle/{chunk-MGXYIVVJ.js → chunk-W4JYGMTU.js} +12 -12
  79. package/dist/bundle/{chunk-2GDLJKPT.js → chunk-W7ICCFG5.js} +1 -1
  80. package/dist/bundle/{chunk-KF6O4RZO.js → chunk-WDEVKKAD.js} +3 -3
  81. package/dist/bundle/{chunk-YWX5X5RI.js → chunk-WZKM5I7B.js} +19 -17
  82. package/dist/bundle/{chunk-MDISZMK4.js → chunk-XKKYRMGG.js} +4 -4
  83. package/dist/bundle/chunk-XQNKAM26.js +338 -0
  84. package/dist/bundle/{chunk-LOSYDRJU.js → chunk-YA44BG3N.js} +38 -9
  85. package/dist/bundle/{chunk-2VBEBPGX.js → chunk-YCIWSKOH.js} +9 -9
  86. package/dist/bundle/{chunk-NXERDBEK.js → chunk-YQTRKNZQ.js} +4 -4
  87. package/dist/bundle/chunk-YRAJFTFU.js +353 -0
  88. package/dist/bundle/{chunk-XWU3A7H6.js → chunk-YTI533XF.js} +2 -2
  89. package/dist/bundle/{chunk-PRDKEVUL.js → chunk-ZMYRPMAJ.js} +1 -1
  90. package/dist/bundle/{chunk-EGQJDEFY.js → chunk-ZX7HZDD6.js} +144 -562
  91. package/dist/bundle/{chunk-NI4GCP2T.js → chunk-ZYEU35MB.js} +2 -2
  92. package/dist/bundle/command-contract-D5UXWHMS.js +39 -0
  93. package/dist/bundle/{command-server-entry-NF45UPEV.js → command-server-entry-TPJ47FYS.js} +28 -28
  94. package/dist/bundle/{decode-DUZA3EHC.js → decode-XHUASXQK.js} +5 -5
  95. package/dist/bundle/{dispatch-CDJZAMVP.js → dispatch-MQZHGGVP.js} +8 -8
  96. package/dist/bundle/{dist-RH7EMC4J.js → dist-BAE4IQ52.js} +23 -23
  97. package/dist/bundle/dist-PAKDDIBT.js +191 -0
  98. package/dist/bundle/{echarts-GZHZBNRA.js → echarts-U7Z2PKIG.js} +2 -2
  99. package/dist/bundle/{embed-VE3CSJN4.js → embed-W7GPB6EI.js} +6 -6
  100. package/dist/bundle/{embedder-DSJ77DX5.js → embedder-T72XLFQ5.js} +9 -9
  101. package/dist/bundle/{failure-YH6HAGFT.js → failure-MP6VKL5Y.js} +2 -2
  102. package/dist/bundle/{first-run-3L7HLYTI.js → first-run-C44TJXRI.js} +12 -12
  103. package/dist/bundle/first-screen-IESI7DAU.js +39 -0
  104. package/dist/bundle/{instructions-OZK3BLIO.js → instructions-WGMWQNPP.js} +1 -1
  105. package/dist/bundle/mail.js +12 -12
  106. package/dist/bundle/{mcp-YUG4YR4R.js → mcp-YGOAUNC3.js} +2 -2
  107. package/dist/bundle/meeting-combined-XGZBSWIQ.js +24 -0
  108. package/dist/bundle/{meeting-model-U7LW5WEN.js → meeting-model-QVHLD4WI.js} +11 -11
  109. package/dist/bundle/{meeting-semantic-64IOIQRR.js → meeting-semantic-QKQHUHXX.js} +6 -6
  110. package/dist/bundle/{node-OS3VWBUZ.js → node-WANDMJJQ.js} +2 -2
  111. package/dist/bundle/{node-sqlite-RQ623VFA.js → node-sqlite-NM5XA4DR.js} +7 -7
  112. package/dist/bundle/{oauth-CBPAG734.js → oauth-6E63ELEE.js} +8 -8
  113. package/dist/bundle/{open-H4DGOMBC.js → open-5542RTLE.js} +5 -5
  114. package/dist/bundle/{openai-EMWRGR54.js → openai-NOYNPFB5.js} +15 -15
  115. package/dist/bundle/{process-3TOIYASI.js → process-7AEXXSBX.js} +1 -1
  116. package/dist/bundle/{program-WA6RGAJL.js → program-VMA5CGNR.js} +3184 -2163
  117. package/dist/bundle/{prompt-22KNCMBI.js → prompt-WYYO4AJL.js} +5 -5
  118. package/dist/bundle/{recognize-UWD4RSCZ.js → recognize-UGCCOMAS.js} +4 -4
  119. package/dist/bundle/{remote-LJY7MF2E.js → remote-VZS6BNQB.js} +9 -9
  120. package/dist/bundle/{rerank-JJ6KNJFB.js → rerank-O46D5GJ2.js} +7 -7
  121. package/dist/bundle/{serve-3EPLJYVZ.js → serve-QAAF2LCW.js} +10 -10
  122. package/dist/bundle/server-456MYK3X.js +84 -0
  123. package/dist/bundle/{server-5JOFO4V4.js → server-Q3PUZLLX.js} +75 -64
  124. package/dist/bundle/{sqlite-runtime-MGJA5E27.js → sqlite-runtime-EQBCDO2U.js} +6 -6
  125. package/dist/bundle/{state-UCRDOWOP.js → state-XIOHYXCR.js} +6 -6
  126. package/dist/bundle/{store-HS272YSA.js → store-OXJZZUR7.js} +34 -21
  127. package/dist/bundle/{store-265VRRQV.js → store-VJBL5XKR.js} +28 -23
  128. package/dist/bundle/store-maintenance-command-D7XYIX52.js +71 -0
  129. package/dist/bundle/surface-N7LK7PKN.js +70 -0
  130. package/dist/commands/read.d.ts +2 -2
  131. package/dist/commands/read.d.ts.map +1 -1
  132. package/dist/commands/read.js +5 -4
  133. package/dist/commands/read.js.map +1 -1
  134. package/dist/commands/sync.d.ts +2 -1
  135. package/dist/commands/sync.d.ts.map +1 -1
  136. package/dist/commands/sync.js +16 -9
  137. package/dist/commands/sync.js.map +1 -1
  138. package/dist/config.d.ts +5 -0
  139. package/dist/config.d.ts.map +1 -1
  140. package/dist/config.js +16 -1
  141. package/dist/config.js.map +1 -1
  142. package/dist/version.d.ts +1 -1
  143. package/dist/version.js +1 -1
  144. package/package.json +3 -3
  145. package/dist/bundle/chunk-FEBUZHU3.js +0 -2
  146. package/dist/bundle/command-contract-PZ7VOOXP.js +0 -39
  147. package/dist/bundle/first-screen-MY5KID77.js +0 -37
  148. package/dist/bundle/meeting-combined-RYMUPY54.js +0 -24
  149. package/dist/bundle/server-EOQNS7B7.js +0 -75
  150. package/dist/bundle/store-maintenance-command-IKZM5NRP.js +0 -66
@@ -13,7 +13,7 @@ import {
13
13
  permissionOverrides,
14
14
  projectFields,
15
15
  resolveOutput
16
- } from "./chunk-LKTDW5LH.js";
16
+ } from "./chunk-HF5QWKK2.js";
17
17
  import {
18
18
  currentCaller,
19
19
  endpointTemplate,
@@ -23,20 +23,20 @@ import {
23
23
  providerErrorKey,
24
24
  renderEvent,
25
25
  runContextOf
26
- } from "./chunk-PVZMN3UZ.js";
26
+ } from "./chunk-UHGKN5US.js";
27
27
  import {
28
28
  permissionCeiling
29
- } from "./chunk-KF6O4RZO.js";
29
+ } from "./chunk-WDEVKKAD.js";
30
30
  import {
31
31
  DEFAULT_RERANK_MODEL,
32
32
  RERANK_MODELS
33
- } from "./chunk-FORAOCZ3.js";
33
+ } from "./chunk-HKWZG7CZ.js";
34
34
  import {
35
35
  carries
36
- } from "./chunk-PRDKEVUL.js";
36
+ } from "./chunk-ZMYRPMAJ.js";
37
37
  import {
38
38
  note
39
- } from "./chunk-4URI6EAV.js";
39
+ } from "./chunk-DD2P67NP.js";
40
40
  import {
41
41
  CATEGORIES,
42
42
  FACT_STATUSES,
@@ -81,7 +81,7 @@ import {
81
81
  typedCommand,
82
82
  untrusted,
83
83
  useAsProcessRun
84
- } from "./chunk-TZJC4AOK.js";
84
+ } from "./chunk-DZHEVVXA.js";
85
85
  import {
86
86
  BUSINESS_KINDS,
87
87
  CRM_ACTIVITY_KINDS,
@@ -96,14 +96,14 @@ import {
96
96
  ORDER_STATUSES,
97
97
  RELATION_KINDS,
98
98
  STANDINGS
99
- } from "./chunk-CKVWAUBW.js";
99
+ } from "./chunk-6VARUB3J.js";
100
100
  import {
101
101
  isCliFailure,
102
102
  storeDamaged
103
- } from "./chunk-4VM3UCSO.js";
103
+ } from "./chunk-UWDRU3R6.js";
104
104
  import {
105
105
  TAG_TYPES
106
- } from "./chunk-XWU3A7H6.js";
106
+ } from "./chunk-YTI533XF.js";
107
107
  import {
108
108
  FACT_TYPES,
109
109
  FIELD_TYPES,
@@ -131,21 +131,21 @@ import {
131
131
  parseLucene,
132
132
  readsZone,
133
133
  timezoneOf
134
- } from "./chunk-QOQF2TX3.js";
134
+ } from "./chunk-AXKIXVQA.js";
135
135
  import {
136
136
  endpoint
137
- } from "./chunk-T2EE5M7O.js";
137
+ } from "./chunk-OOQFBRNR.js";
138
138
  import {
139
139
  repairConfigText,
140
140
  sharedConfigPath
141
- } from "./chunk-KLI5FKZ2.js";
141
+ } from "./chunk-Q5U2HIBJ.js";
142
142
  import {
143
143
  filesPresent,
144
144
  sharedModelsDirectory
145
- } from "./chunk-2SCQ7Z4I.js";
145
+ } from "./chunk-635AFLZO.js";
146
146
  import {
147
147
  storePath
148
- } from "./chunk-NI4GCP2T.js";
148
+ } from "./chunk-ZYEU35MB.js";
149
149
  import {
150
150
  configFilePath,
151
151
  createRecordLog,
@@ -154,7 +154,7 @@ import {
154
154
  resolvePaths,
155
155
  saveConfigFile,
156
156
  writeSecurely
157
- } from "./chunk-EZAX77SM.js";
157
+ } from "./chunk-7FXZKQAC.js";
158
158
  import {
159
159
  COMPACT_FLAG,
160
160
  MAX_NEXT_STEPS,
@@ -206,17 +206,17 @@ import {
206
206
  unwrap,
207
207
  variant,
208
208
  writes
209
- } from "./chunk-LOSYDRJU.js";
209
+ } from "./chunk-YA44BG3N.js";
210
210
  import {
211
211
  CliError,
212
212
  isCliError,
213
213
  visibleControls
214
- } from "./chunk-QQGPV3QN.js";
214
+ } from "./chunk-HM6AMYHR.js";
215
215
  import {
216
216
  __name
217
217
  } from "./chunk-ZVVMGPBJ.js";
218
218
 
219
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/ports/app.js
219
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/ports/app.js
220
220
  import { readFileSync } from "node:fs";
221
221
  var envName = /* @__PURE__ */ __name((app, name) => `${app.envPrefix}_${name}`, "envName");
222
222
  var locking = /* @__PURE__ */ __name((value) => value !== void 0 && value.trim() !== "" && value !== "0", "locking");
@@ -270,7 +270,7 @@ var mailHolderVariable = /* @__PURE__ */ __name((app) => envName(app, "MAIL_HOLD
270
270
  var MESSENGER_CHANGE_REFUSAL = "send, react, change chats or change the account";
271
271
  var readOnlyRefusal = /* @__PURE__ */ __name((lock, what) => new CliError("permission_error", `this process is read-only (${lock}) \u2014 it cannot ${what}`), "readOnlyRefusal");
272
272
 
273
- // node_modules/.pnpm/@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/registry.js
273
+ // node_modules/.pnpm/@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/registry.js
274
274
  var labels = /* @__PURE__ */ new WeakMap();
275
275
  var annotate = /* @__PURE__ */ __name((command, meta) => {
276
276
  labels.set(command, { ...labels.get(command), ...meta });
@@ -3771,7 +3771,7 @@ __name(useColor, "useColor");
3771
3771
  // node_modules/.pnpm/commander@15.0.0/node_modules/commander/index.js
3772
3772
  var program = new Command();
3773
3773
 
3774
- // node_modules/.pnpm/@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/document.js
3774
+ // node_modules/.pnpm/@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/document.js
3775
3775
  var argumentInfoSchema = object({
3776
3776
  name: string(),
3777
3777
  required: boolean(),
@@ -3845,7 +3845,7 @@ var commandsDocumentSchema = strictObject({
3845
3845
  exit_codes: record(string(), pipe(number(), integer()))
3846
3846
  });
3847
3847
 
3848
- // node_modules/.pnpm/@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/contracts.js
3848
+ // node_modules/.pnpm/@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/contracts.js
3849
3849
  import { isDeepStrictEqual } from "node:util";
3850
3850
  var protectedCommands = /* @__PURE__ */ new WeakMap();
3851
3851
  var hasSharedContract = /* @__PURE__ */ __name((command) => protectedCommands.has(command), "hasSharedContract");
@@ -3955,7 +3955,7 @@ var sharedCommand = /* @__PURE__ */ __name((factory) => (...args) => {
3955
3955
  return result;
3956
3956
  }, "sharedCommand");
3957
3957
 
3958
- // node_modules/.pnpm/@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/index.js
3958
+ // node_modules/.pnpm/@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/index.js
3959
3959
  var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
3960
3960
  let command = root;
3961
3961
  const path2 = [];
@@ -3973,7 +3973,7 @@ var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
3973
3973
  }
3974
3974
  }, "refuseJoinedPath");
3975
3975
 
3976
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/cli/command-server-request.js
3976
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/cli/command-server-request.js
3977
3977
  import { AsyncLocalStorage } from "node:async_hooks";
3978
3978
  var requests = new AsyncLocalStorage();
3979
3979
  var inCommandServerRequest = /* @__PURE__ */ __name((request, work) => requests.run(request, work), "inCommandServerRequest");
@@ -3988,7 +3988,7 @@ var exitCodeSet = /* @__PURE__ */ __name(() => {
3988
3988
  return direct;
3989
3989
  }, "exitCodeSet");
3990
3990
 
3991
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/sends/guarded.js
3991
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/sends/guarded.js
3992
3992
  import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
3993
3993
  var sentIds = /* @__PURE__ */ __name((typed2, message2) => ({
3994
3994
  messageId: message2.id,
@@ -4094,7 +4094,7 @@ var guardedWrite = /* @__PURE__ */ __name(async (guard, attempt, act, settled2 =
4094
4094
  }, "guardedWrite");
4095
4095
  var codeOf = /* @__PURE__ */ __name((error) => typeof error?.code === "string" ? error.code : "unknown", "codeOf");
4096
4096
 
4097
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/cli/execution.js
4097
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/cli/execution.js
4098
4098
  var DEFAULT_COMMAND_MS = 3e4;
4099
4099
  var DEFAULT_COOPERATIVE_MS = 5 * 6e4;
4100
4100
  var DEFAULT_SYNC_MS = 15 * 6e4;
@@ -4277,7 +4277,7 @@ var withAbort = /* @__PURE__ */ __name(async (signal, body) => {
4277
4277
  }
4278
4278
  }, "withAbort");
4279
4279
 
4280
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/cli/messenger/accounts.js
4280
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/cli/messenger/accounts.js
4281
4281
  import { existsSync, readdirSync, readFileSync as readFileSync2 } from "node:fs";
4282
4282
  import { join } from "node:path";
4283
4283
  var accountFileFor = /* @__PURE__ */ __name((app, profile, env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "accounts", `${profile}.json`), "accountFileFor");
@@ -4299,10 +4299,12 @@ var profilesWithAccounts = /* @__PURE__ */ __name((app, env) => {
4299
4299
  }, "profilesWithAccounts");
4300
4300
  var profilesHere = /* @__PURE__ */ __name((app, configured, env) => [.../* @__PURE__ */ new Set([...configured, ...profilesWithAccounts(app, env)])].sort(), "profilesHere");
4301
4301
 
4302
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/background/budget.js
4302
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/background/budget.js
4303
4303
  var DEADLINE_MARGIN_MS = 5e3;
4304
4304
  var DEADLINE_MARGIN_SHARE = 0.15;
4305
4305
  var DEFAULT_REQUEST_MS = 2e3;
4306
+ var ANSWER_RESERVE_MS = 500;
4307
+ var oneMoreFits = /* @__PURE__ */ __name((deadline, at2, requestMs = DEFAULT_REQUEST_MS) => deadline !== void 0 && at2 + requestMs + ANSWER_RESERVE_MS < deadline.endsAt, "oneMoreFits");
4306
4308
  var deadlineMargin = /* @__PURE__ */ __name((deadline) => Math.max(DEADLINE_MARGIN_MS, deadline.ms * DEADLINE_MARGIN_SHARE), "deadlineMargin");
4307
4309
  var requestsFor = /* @__PURE__ */ __name((deadline, requestMs = DEFAULT_REQUEST_MS) => deadline === void 0 ? null : Math.max(1, Math.floor((deadline.ms - deadlineMargin(deadline)) / requestMs)), "requestsFor");
4308
4310
  var runBudget = /* @__PURE__ */ __name(({ requests: requests2, deadline, requestMs, signal, now = Date.now } = {}) => {
@@ -4310,6 +4312,7 @@ var runBudget = /* @__PURE__ */ __name(({ requests: requests2, deadline, request
4310
4312
  const limit = fits === null ? requests2 ?? null : Math.min(fits, requests2 ?? fits);
4311
4313
  const margin = deadline ? deadlineMargin(deadline) : 0;
4312
4314
  let used = 0;
4315
+ let granted = false;
4313
4316
  let stopped2 = null;
4314
4317
  let last;
4315
4318
  let slowest = 0;
@@ -4332,6 +4335,17 @@ var runBudget = /* @__PURE__ */ __name(({ requests: requests2, deadline, request
4332
4335
  last = at2;
4333
4336
  return null;
4334
4337
  },
4338
+ first() {
4339
+ if (granted || used > 0 || stopped2 !== "deadline")
4340
+ return false;
4341
+ const at2 = now();
4342
+ if (!oneMoreFits(deadline, at2, Math.max(requestMs ?? DEFAULT_REQUEST_MS, slowest)))
4343
+ return false;
4344
+ granted = true;
4345
+ used += 1;
4346
+ last = at2;
4347
+ return true;
4348
+ },
4335
4349
  get used() {
4336
4350
  return used;
4337
4351
  },
@@ -4342,7 +4356,7 @@ var runBudget = /* @__PURE__ */ __name(({ requests: requests2, deadline, request
4342
4356
  };
4343
4357
  }, "runBudget");
4344
4358
 
4345
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/runs/log-events.js
4359
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/runs/log-events.js
4346
4360
  var CORE_LOG_EVENTS = defineLogEvents([
4347
4361
  { id: "provider.request", meaning: "a request went to the messenger", keys: ["operation"] },
4348
4362
  { id: "provider.response", meaning: "the messenger answered the request, or it failed", keys: ["operation"] },
@@ -4380,7 +4394,7 @@ var DIAGNOSTIC_LOG_EVENTS = {
4380
4394
  progress: "sync.progress"
4381
4395
  };
4382
4396
 
4383
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/runs/recording.js
4397
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/runs/recording.js
4384
4398
  var recorded = /* @__PURE__ */ __name(async (options, body) => {
4385
4399
  const recording = startRecording(options);
4386
4400
  try {
@@ -4595,7 +4609,7 @@ var partialOutcome = /* @__PURE__ */ __name((answer) => {
4595
4609
  return void 0;
4596
4610
  }, "partialOutcome");
4597
4611
 
4598
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/cli/deadline.js
4612
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/cli/deadline.js
4599
4613
  var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
4600
4614
  if (ms2 === void 0)
4601
4615
  return body();
@@ -4621,7 +4635,7 @@ var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
4621
4635
  }
4622
4636
  }, "withDeadline");
4623
4637
 
4624
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/cli/profile.js
4638
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/cli/profile.js
4625
4639
  var asFirstWord = /* @__PURE__ */ __name((profile) => `${profile} `, "asFirstWord");
4626
4640
  var PLAIN_NAME = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
4627
4641
  var isProfileName = /* @__PURE__ */ __name((word) => PLAIN_NAME.test(word), "isProfileName");
@@ -4690,10 +4704,10 @@ var sampleCommand = /* @__PURE__ */ __name((commands) => {
4690
4704
  return void 0;
4691
4705
  }, "sampleCommand");
4692
4706
 
4693
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/cli/settings.js
4707
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/cli/settings.js
4694
4708
  import { existsSync as existsSync4 } from "node:fs";
4695
4709
 
4696
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/models/settings.js
4710
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/models/settings.js
4697
4711
  var MODEL_FIELDS = ["provider", "model", "base_url"];
4698
4712
  var modelSettingsShape = record(pipe(string(), regex(/^[a-z][a-z0-9-]*$/)), strictObject({
4699
4713
  provider: optional(picklist(["off", "openai", "anthropic"])),
@@ -4762,7 +4776,7 @@ var modelTarget = /* @__PURE__ */ __name((settings, purpose) => {
4762
4776
  };
4763
4777
  }, "modelTarget");
4764
4778
 
4765
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/analysis/settings.js
4779
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/analysis/settings.js
4766
4780
  var model = pipe(string(), trim(), minLength(1), maxLength(200));
4767
4781
  var url = pipe(string(), check(endpoint, "use an HTTP/S endpoint without credentials, query or fragment"));
4768
4782
  var AI_FIELDS = {
@@ -4806,7 +4820,7 @@ var resolveAISettings = /* @__PURE__ */ __name((prefix, layers, env) => {
4806
4820
  };
4807
4821
  }, "resolveAISettings");
4808
4822
 
4809
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/domain/duration.js
4823
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/domain/duration.js
4810
4824
  var DURATION = /^(\d+)(ms|s|m|h|d)$/;
4811
4825
  var UNIT_MS = { ms: 1, s: 1e3, m: 6e4, h: 36e5, d: 864e5 };
4812
4826
  var parseDuration = /* @__PURE__ */ __name((value, source2) => {
@@ -4820,7 +4834,7 @@ var parseDuration = /* @__PURE__ */ __name((value, source2) => {
4820
4834
  return ms2;
4821
4835
  }, "parseDuration");
4822
4836
 
4823
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/services/history-limits.js
4837
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/services/history-limits.js
4824
4838
  var HISTORY_MAX_DAYS = 1095;
4825
4839
  var DEFAULT_HISTORY_LIMITS = { dialogDays: 1095, groupDays: 365, groupMembersMax: 50 };
4826
4840
  var DAY_MS = 24 * 60 * 60 * 1e3;
@@ -4867,7 +4881,7 @@ var limitBatch = /* @__PURE__ */ __name((batch, shapes, included, limits, now =
4867
4881
  return { batch: { ...batch, messages }, skipped };
4868
4882
  }, "limitBatch");
4869
4883
 
4870
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/cli/bot/registry.js
4884
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/cli/bot/registry.js
4871
4885
  import { existsSync as existsSync2, readdirSync as readdirSync2, readFileSync as readFileSync3 } from "node:fs";
4872
4886
  import { join as join2 } from "node:path";
4873
4887
  var botsDirectory = /* @__PURE__ */ __name((app, env = process.env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "bots"), "botsDirectory");
@@ -4956,7 +4970,7 @@ var registryProfiles = /* @__PURE__ */ __name((app, env = process.env) => {
4956
4970
  return readdirSync2(directory, { withFileTypes: true }).filter((entry) => entry.isFile() && entry.name.endsWith(".json")).map((entry) => entry.name).map((name) => name.slice(0, -".json".length));
4957
4971
  }, "registryProfiles");
4958
4972
 
4959
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
4973
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
4960
4974
  import { readFileSync as readFileSync4 } from "node:fs";
4961
4975
  var isNode = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
4962
4976
  var SECTIONS = ["personal", "bot"];
@@ -5251,7 +5265,7 @@ var readConfigFile = /* @__PURE__ */ __name((path2) => {
5251
5265
  return "issue" in parsed ? { issue: publicIssue(parsed.issue) } : parsed;
5252
5266
  }, "readConfigFile");
5253
5267
 
5254
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/cli/default-config.js
5268
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/cli/default-config.js
5255
5269
  import { existsSync as existsSync3, linkSync, mkdirSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";
5256
5270
  import { dirname, join as join3 } from "node:path";
5257
5271
  var DEFAULT_CONFIG = {
@@ -5280,7 +5294,7 @@ function ensureDefaultConfig(path2, config = DEFAULT_CONFIG) {
5280
5294
  }
5281
5295
  __name(ensureDefaultConfig, "ensureDefaultConfig");
5282
5296
 
5283
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/cli/setting-defaults.js
5297
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/cli/setting-defaults.js
5284
5298
  var isNode2 = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
5285
5299
  var parentOf = /* @__PURE__ */ __name((config, key) => {
5286
5300
  const path2 = key.split(".");
@@ -5302,7 +5316,7 @@ var withSettingDefaults = /* @__PURE__ */ __name((raw, declared) => {
5302
5316
  return { config, added };
5303
5317
  }, "withSettingDefaults");
5304
5318
 
5305
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/cli/settings.js
5319
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/cli/settings.js
5306
5320
  var DEFAULT_LIMIT = DEFAULT_CONFIG.defaults.limit;
5307
5321
  var DEFAULT_KEEP_RUNS_FOR_DAYS = DEFAULT_CONFIG.defaults.keep_runs_for_days;
5308
5322
  var DEFAULT_SENDS_PER_HOUR = DEFAULT_CONFIG.defaults.sends_per_hour;
@@ -5830,7 +5844,7 @@ var given = /* @__PURE__ */ __name((value) => {
5830
5844
  return trimmed === void 0 || trimmed === "" ? void 0 : trimmed;
5831
5845
  }, "given");
5832
5846
 
5833
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/cli/context.js
5847
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/cli/context.js
5834
5848
  var runBudgetOf = /* @__PURE__ */ __name((command, requests2) => {
5835
5849
  const { deadline, signal, app } = environmentOf(command);
5836
5850
  const now = deadline?.();
@@ -5856,9 +5870,17 @@ var provide = /* @__PURE__ */ __name((program2, environment) => {
5856
5870
  environments.set(program2, environment);
5857
5871
  }, "provide");
5858
5872
  var environmentOf = /* @__PURE__ */ __name((command) => environments.get(rootOf(command)) ?? {}, "environmentOf");
5873
+ var PAGING = ["page", "limit", "all"];
5874
+ var withoutOwnPaging = /* @__PURE__ */ __name((command, flags) => {
5875
+ if (metaOf(command).origin !== "generated")
5876
+ return flags;
5877
+ const own = PAGING.filter((name) => command.options.some((option) => option.attributeName() === name));
5878
+ return own.length > 0 ? Object.fromEntries(Object.entries(flags).filter(([name]) => !own.includes(name))) : flags;
5879
+ }, "withoutOwnPaging");
5859
5880
  var withAgentLevels = /* @__PURE__ */ __name((command, flags) => {
5860
5881
  const overrides = environmentOf(command).agent?.overrides ?? [];
5861
- return overrides.length > 0 ? { ...flags, permission: [...overrides, ...flags.permission ?? []] } : flags;
5882
+ const read = withoutOwnPaging(command, flags);
5883
+ return overrides.length > 0 ? { ...read, permission: [...overrides, ...read.permission ?? []] } : read;
5862
5884
  }, "withAgentLevels");
5863
5885
  var secretInputOf = /* @__PURE__ */ __name((command) => {
5864
5886
  const { stdin, stderr } = environmentOf(command);
@@ -5976,7 +5998,7 @@ var commandPath = /* @__PURE__ */ __name((command) => {
5976
5998
  return words.join(" ");
5977
5999
  }, "commandPath");
5978
6000
 
5979
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/cli/effects.js
6001
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/cli/effects.js
5980
6002
  var REMOTE_READ = { remote: "read", local: "read" };
5981
6003
  var FETCH = { remote: "read", local: "write" };
5982
6004
  var REMOTE_WRITE = { remote: "write", local: "write" };
@@ -6116,7 +6138,7 @@ var refuseUnderReadOnly = /* @__PURE__ */ __name((command, what) => {
6116
6138
  throw readOnlyRefusal(lock, what);
6117
6139
  }, "refuseUnderReadOnly");
6118
6140
 
6119
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/account.js
6141
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/account.js
6120
6142
  var account = strictObject({
6121
6143
  provider: text,
6122
6144
  id,
@@ -6126,7 +6148,7 @@ var account = strictObject({
6126
6148
  scope: optional(picklist(["personal", "work"]))
6127
6149
  });
6128
6150
 
6129
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/account-session.js
6151
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/account-session.js
6130
6152
  var accountSession = strictObject({
6131
6153
  current: boolean(),
6132
6154
  client: nullable(text),
@@ -6136,7 +6158,7 @@ var accountSession = strictObject({
6136
6158
  created_at: optional(nullable(time))
6137
6159
  });
6138
6160
 
6139
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/account-change.js
6161
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/account-change.js
6140
6162
  var accountChange = strictObject({ operation_id: id, account: omit(account, ["provider", "scope"]) });
6141
6163
  var endedAccountSessions = strictObject({ operation_id: id, sessions: array(accountSession) });
6142
6164
  var audience = picklist(["everyone", "contacts", "nobody"]);
@@ -6165,7 +6187,7 @@ var accountRemoval = strictObject({
6165
6187
  kept: array(strictObject({ kind: removalKind, target: text, reason: text }))
6166
6188
  });
6167
6189
 
6168
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/account-profile.js
6190
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/account-profile.js
6169
6191
  var accountProfile = strictObject({
6170
6192
  profile: id,
6171
6193
  current: boolean(),
@@ -6177,7 +6199,7 @@ var accountProfile = strictObject({
6177
6199
  bot: optional(literal(true))
6178
6200
  });
6179
6201
 
6180
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/counter-reading.js
6202
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/counter-reading.js
6181
6203
  var milliseconds = pipe(number(), minValue(0));
6182
6204
  var counterReading = strictObject({
6183
6205
  counter: picklist(["views", "reactions", "comments"]),
@@ -6189,7 +6211,7 @@ var counterReading = strictObject({
6189
6211
  });
6190
6212
  var selection = record(string(), unknown());
6191
6213
 
6192
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/admin-report.js
6214
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/admin-report.js
6193
6215
  var adminRow = strictObject({
6194
6216
  ref: reference,
6195
6217
  /** What `stats * evidence` takes: a person id, a stay or a message locator. */
@@ -6242,7 +6264,7 @@ var adminReport = strictObject({
6242
6264
  rows: array(adminRow)
6243
6265
  });
6244
6266
 
6245
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/task.js
6267
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/task.js
6246
6268
  var closeSuggestion = strictObject({
6247
6269
  as: picklist(["done", "dismissed"]),
6248
6270
  /** The agent's name. */
@@ -6304,7 +6326,7 @@ var task = strictObject({
6304
6326
  updated_at: optional(time)
6305
6327
  });
6306
6328
 
6307
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/agenda.js
6329
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/agenda.js
6308
6330
  var agendaChat = strictObject({
6309
6331
  chat: reference,
6310
6332
  title: nullable(text),
@@ -6374,11 +6396,11 @@ var agenda = strictObject({
6374
6396
  unlisted_categories: array(strictObject({ name: text, open_tasks: number() }))
6375
6397
  });
6376
6398
 
6377
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/analysis-consent.js
6399
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/analysis-consent.js
6378
6400
  var analysisConsent = strictObject({ chat: id, provider: text, at: time });
6379
6401
  var analysisConsentRevocation = strictObject({ revoked: boolean() });
6380
6402
 
6381
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/attachment.js
6403
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/attachment.js
6382
6404
  var attachment = strictObject({
6383
6405
  /** The message it came with, as a locator; absent inside that message. */
6384
6406
  message: optional(reference),
@@ -6423,7 +6445,7 @@ var hitFile = strictObject({
6423
6445
  local_path: optional(text)
6424
6446
  });
6425
6447
 
6426
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/batch-result.js
6448
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/batch-result.js
6427
6449
  var actionableError = objectWithRest({
6428
6450
  code: text,
6429
6451
  message: text,
@@ -6440,7 +6462,7 @@ var batchResult = strictObject({
6440
6462
  max_error_percent: count
6441
6463
  });
6442
6464
 
6443
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/extraction-report.js
6465
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/extraction-report.js
6444
6466
  var extractionItem = strictObject({
6445
6467
  ref: reference,
6446
6468
  attachment: count,
@@ -6473,7 +6495,7 @@ var extractionReport = strictObject({
6473
6495
  cursor: optional(text)
6474
6496
  });
6475
6497
 
6476
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/attachment-results.js
6498
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/attachment-results.js
6477
6499
  var fingerprint = pipe(text, regex(/^[a-f0-9]{64}$/));
6478
6500
  var attachmentBytes = strictObject({
6479
6501
  ref: reference,
@@ -6504,7 +6526,7 @@ var attachmentTextChange = strictObject({
6504
6526
  text: optional(text)
6505
6527
  });
6506
6528
 
6507
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/botcheck/reasons.js
6529
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/botcheck/reasons.js
6508
6530
  var WEIGHTS = {
6509
6531
  bot: 3,
6510
6532
  scam: 3,
@@ -6529,7 +6551,7 @@ var LINK = /https?:\/\/|t\.me\/|www\./i;
6529
6551
  var DIGITS = /\d{5,}/;
6530
6552
  var oddName = /* @__PURE__ */ __name((name) => !name?.trim() || DIGITS.test(name) || LINK.test(name), "oddName");
6531
6553
 
6532
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/contact-activity.js
6554
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/contact-activity.js
6533
6555
  var linkedIdentity = strictObject({
6534
6556
  provider: text,
6535
6557
  id,
@@ -6584,7 +6606,7 @@ var contactCheck = strictObject({
6584
6606
  checked_at: time
6585
6607
  });
6586
6608
 
6587
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/member.js
6609
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/member.js
6588
6610
  var member = strictObject({
6589
6611
  id,
6590
6612
  name: nullable(text),
@@ -6607,7 +6629,7 @@ var member = strictObject({
6607
6629
  check: optional(record(string(), unknown()))
6608
6630
  });
6609
6631
 
6610
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/chat.js
6632
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/chat.js
6611
6633
  var setting = optional(nullable(boolean()));
6612
6634
  var chat = strictObject({
6613
6635
  ref: reference,
@@ -6648,7 +6670,7 @@ var chat = strictObject({
6648
6670
  members: optional(array(member))
6649
6671
  });
6650
6672
 
6651
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/message.js
6673
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/message.js
6652
6674
  var quoted = strictObject({
6653
6675
  id,
6654
6676
  sender_id: nullable(id),
@@ -6762,12 +6784,14 @@ var message = strictObject({
6762
6784
  /** Mail `review`: no earlier stored email, in any account, came from this address. */
6763
6785
  new_sender: optional(boolean()),
6764
6786
  /** Mail `review`: how many identities the sender's person has; 1 is this address alone. */
6765
- sender_identities: optional(number())
6787
+ sender_identities: optional(number()),
6788
+ /** Mail `review`: how `inbox` sorted the thread, by the AI model; the reason is untrusted. */
6789
+ inbox: optional(strictObject({ bucket: picklist(["answer", "read", "later"]), reason: text }))
6766
6790
  })),
6767
6791
  provider_metadata: providerMetadata
6768
6792
  });
6769
6793
 
6770
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/recorded-meeting.js
6794
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/recorded-meeting.js
6771
6795
  var recordedMeeting = strictObject({
6772
6796
  ref: reference,
6773
6797
  meeting_id: count,
@@ -6776,13 +6800,15 @@ var recordedMeeting = strictObject({
6776
6800
  started_at: nullable(time),
6777
6801
  duration_ms: nullable(count),
6778
6802
  has_transcript: boolean(),
6803
+ /** The start of its transcript, on one line: what the people said, never instructions. */
6804
+ snippet: optional(nullable(text)),
6779
6805
  event: nullable(reference),
6780
6806
  people: array(reference),
6781
6807
  /** Present only on a phone call: its direction, manager and the other side's number. */
6782
6808
  call: optional(meetingCall)
6783
6809
  });
6784
6810
 
6785
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/contact-context.js
6811
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/contact-context.js
6786
6812
  var contextPerson = strictObject({ ...linkedPerson.entries, provider: text, id });
6787
6813
  var contextMessage = strictObject({
6788
6814
  locator: reference,
@@ -6988,7 +7014,7 @@ var contactPreparation = strictObject({
6988
7014
  })
6989
7015
  });
6990
7016
 
6991
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/deal.js
7017
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/deal.js
6992
7018
  var nullableText = nullable(text);
6993
7019
  var party = strictObject({ ref: reference, name: nullableText, owner: boolean() });
6994
7020
  var outcome = picklist(["open", "won", "lost"]);
@@ -7006,6 +7032,12 @@ var activity = strictObject({
7006
7032
  created_at: time,
7007
7033
  updated_at: time
7008
7034
  });
7035
+ var stageEntry = strictObject({
7036
+ from: nullableText,
7037
+ to: text,
7038
+ at: time,
7039
+ exact: boolean()
7040
+ });
7009
7041
  var deal = strictObject({
7010
7042
  id,
7011
7043
  ref: reference,
@@ -7064,9 +7096,30 @@ var deal = strictObject({
7064
7096
  activities: optional(array(activity)),
7065
7097
  /** `show` of a CRM copy: the newest recorded meetings and calls of its people, in its account's scope. */
7066
7098
  meetings: optional(array(recordedMeeting)),
7099
+ /**
7100
+ * `show` of a CRM copy: every stage it entered, oldest first. Once the CRM's own history names any, it alone is
7101
+ * listed, from as far back as it was read; the copy's changes between syncs are left out.
7102
+ */
7103
+ stage_history: optional(array(stageEntry)),
7067
7104
  untrusted
7068
7105
  });
7069
7106
  var lead = deal;
7107
+ var amount = strictObject({ amount: text, currency: text, items: count });
7108
+ var winRate = nullable(number());
7109
+ var pipelineOwner = strictObject({
7110
+ assignee: nullableText,
7111
+ name: nullableText,
7112
+ open: count,
7113
+ won: count,
7114
+ lost: count,
7115
+ win_rate: winRate
7116
+ });
7117
+ var pipelineClosed = strictObject({
7118
+ won: count,
7119
+ lost: count,
7120
+ win_rate: winRate,
7121
+ won_amounts: array(amount)
7122
+ });
7070
7123
  var pipelineStage = strictObject({
7071
7124
  name: text,
7072
7125
  position: count,
@@ -7079,8 +7132,11 @@ var pipelineStage = strictObject({
7079
7132
  conversion: optional(nullable(number())),
7080
7133
  /** With a funnel: rows standing in it now, and their sum per currency, never converted. */
7081
7134
  items: optional(count),
7082
- amounts: optional(array(strictObject({ amount: text, currency: text, items: count })))
7135
+ amounts: optional(array(amount)),
7136
+ /** With a funnel: the median days a row of the window stayed in it before it moved on. */
7137
+ median_days: optional(nullable(number()))
7083
7138
  });
7139
+ var pipelineStageAnswer = pipelineStage;
7084
7140
  var pipeline = strictObject({
7085
7141
  id,
7086
7142
  ref: reference,
@@ -7088,10 +7144,20 @@ var pipeline = strictObject({
7088
7144
  kind: picklist(["deal", "lead"]),
7089
7145
  account: crmAccount,
7090
7146
  external_id: nullableText,
7091
- stages: array(pipelineStage),
7147
+ stages: array(pipelineStageAnswer),
7092
7148
  created_at: time,
7093
- totals: optional(strictObject({ items: count, open: count, won: count, lost: count, win_rate: nullable(number()) })),
7149
+ /** `show`: the rows made in the window. */
7150
+ totals: optional(strictObject({ items: count, open: count, won: count, lost: count, win_rate: winRate })),
7151
+ window: optional(strictObject({ since: nullable(time), until: nullable(time) })),
7094
7152
  since: optional(day),
7153
+ /** `show`: rows closed on a day in the window, in the owner's zone. */
7154
+ closed: optional(pipelineClosed),
7155
+ /** `show`: days from made to won, of the rows won in the window. */
7156
+ cycle: optional(strictObject({ median_days: nullable(number()), items: count })),
7157
+ owners: optional(array(pipelineOwner)),
7158
+ lost_reasons: optional(array(strictObject({ reason: text, items: count }))),
7159
+ /** `show`: rows whose stages came from the CRM's own history, and from the copy's diffs. */
7160
+ history: optional(strictObject({ exact: count, copy: count })),
7095
7161
  untrusted
7096
7162
  });
7097
7163
  var stage = strictObject({
@@ -7099,10 +7165,12 @@ var stage = strictObject({
7099
7165
  pipeline: reference,
7100
7166
  pipeline_name: text,
7101
7167
  kind: picklist(["deal", "lead"]),
7168
+ /** A CRM's stage: the task its `stage-tasks` rule opens when a row enters it, or `null`. */
7169
+ stage_task: optional(nullable(strictObject({ title: text, due_days: count }))),
7102
7170
  untrusted
7103
7171
  });
7104
7172
 
7105
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/business-context.js
7173
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/business-context.js
7106
7174
  var nullableText2 = nullable(text);
7107
7175
  var day2 = nullable(pipe(string(), regex(/^\d{4}-\d{2}-\d{2}$/)));
7108
7176
  var standing = picklist(STANDINGS);
@@ -7188,6 +7256,16 @@ var taskLine = strictObject({
7188
7256
  due_at: nullable(time)
7189
7257
  });
7190
7258
  var counts = { messages: count, mail: count, meetings: count };
7259
+ var touch = {
7260
+ kind: picklist(["message", "mail", "meeting"]),
7261
+ ref: reference,
7262
+ title: nullableText2,
7263
+ at: nullable(time),
7264
+ people: array(reference),
7265
+ text: optional(nullableText2),
7266
+ call: optional(meetingCall),
7267
+ duration_ms: optional(nullable(count))
7268
+ };
7191
7269
  var personBusiness = strictObject({
7192
7270
  organizations: section(strictObject({ ...related.entries, categories })),
7193
7271
  reports_to: section(related),
@@ -7227,13 +7305,15 @@ var organizationContext = strictObject({
7227
7305
  money,
7228
7306
  /** Counts only, through its own people, in the accounts read. */
7229
7307
  communications: strictObject({ ...counts, has_more: boolean() }),
7308
+ /** Its people's messages, mail and meetings, newest first. */
7309
+ history: section(strictObject(touch)),
7230
7310
  tasks: section(taskLine),
7231
7311
  coverage: coverage2
7232
7312
  });
7233
7313
  var { untrusted: _, ...dealRow } = deal.entries;
7234
7314
  var dealContext = strictObject({
7235
7315
  deal: strictObject(dealRow),
7236
- stages: section(strictObject({ from: nullableText2, to: text, pipeline: reference, at: time })),
7316
+ stages: section(strictObject({ from: nullableText2, to: text, pipeline: reference, at: time, exact: boolean() })),
7237
7317
  organization: nullable(strictObject({ ref: reference, name: nullableText2, categories })),
7238
7318
  participants: section(related),
7239
7319
  owner: nullable(related),
@@ -7242,14 +7322,7 @@ var dealContext = strictObject({
7242
7322
  window: strictObject({ since: time, until: time }),
7243
7323
  /** Shared people within its lifetime: `proposed`, an overlap of people, never a link. */
7244
7324
  communications: strictObject({
7245
- ...section(strictObject({
7246
- kind: picklist(["message", "mail", "meeting"]),
7247
- ref: reference,
7248
- title: nullableText2,
7249
- at: nullable(time),
7250
- people: array(reference),
7251
- standing: literal("proposed")
7252
- })).entries,
7325
+ ...section(strictObject({ ...touch, standing: literal("proposed") })).entries,
7253
7326
  counts: strictObject(counts)
7254
7327
  }),
7255
7328
  tasks: section(taskLine),
@@ -7276,7 +7349,7 @@ var dealBrief = strictObject({
7276
7349
  not_read: coverage2.entries.not_read
7277
7350
  });
7278
7351
 
7279
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/chart.js
7352
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/chart.js
7280
7353
  var chart = strictObject({
7281
7354
  version: literal(1),
7282
7355
  kind: picklist(["bar", "line", "grouped-bar"]),
@@ -7291,7 +7364,7 @@ var chart = strictObject({
7291
7364
  file: optional(strictObject({ path: text, format: picklist(["svg", "png"]), width: count, height: count }))
7292
7365
  });
7293
7366
 
7294
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/folder.js
7367
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/folder.js
7295
7368
  var named = strictObject({
7296
7369
  id,
7297
7370
  title: nullable(text),
@@ -7314,7 +7387,7 @@ var folder = strictObject({
7314
7387
  excluded_chats: optional(array(named))
7315
7388
  });
7316
7389
 
7317
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/invite-link.js
7390
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/invite-link.js
7318
7391
  var inviteLink = strictObject({
7319
7392
  link: text,
7320
7393
  /** Who joins by it asks first, and an admin lets them in. */
@@ -7330,7 +7403,7 @@ var inviteLink = strictObject({
7330
7403
  joined_count: optional(count)
7331
7404
  });
7332
7405
 
7333
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/chat-admin.js
7406
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/chat-admin.js
7334
7407
  var operated = { operation_id: id, chat_id: id };
7335
7408
  var group = strictObject({
7336
7409
  ...omit(chat, ["ref", "provider", "account", "invite_link", "members"]).entries,
@@ -7410,7 +7483,7 @@ var chatFolderOrder = strictObject({
7410
7483
  folders: array(strictObject({ id, title: text }))
7411
7484
  });
7412
7485
 
7413
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/chat-change.js
7486
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/chat-change.js
7414
7487
  var operated2 = { operation_id: id, chat_id: id };
7415
7488
  var chatRemoval = strictObject(operated2);
7416
7489
  var chatMuting = strictObject({
@@ -7421,7 +7494,7 @@ var chatArchive = strictObject({ ...operated2, archived: boolean() });
7421
7494
  var chatPin = strictObject({ ...operated2, pinned: boolean() });
7422
7495
  var chatUnread = strictObject({ ...operated2, unread: literal(true) });
7423
7496
 
7424
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/chat-event.js
7497
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/chat-event.js
7425
7498
  var who = strictObject({ id: nullable(id), name: nullable(text), username: optional(nullable(text)) });
7426
7499
  var chatEvent = strictObject({
7427
7500
  chat_id: id,
@@ -7438,7 +7511,7 @@ var chatEvent = strictObject({
7438
7511
  before: optional(strictObject({ name: nullable(text), username: nullable(text) }))
7439
7512
  });
7440
7513
 
7441
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/chat-metadata.js
7514
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/chat-metadata.js
7442
7515
  var chatMetadata = strictObject({
7443
7516
  chat_id: id,
7444
7517
  title: nullable(text),
@@ -7453,7 +7526,7 @@ var chatMetadataRefresh = strictObject({
7453
7526
  has_more: boolean()
7454
7527
  });
7455
7528
 
7456
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/chat-moderation.js
7529
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/chat-moderation.js
7457
7530
  var action = picklist(["report", "delete", "remove"]);
7458
7531
  var level = picklist(["deny", "readonly", "ask", "allow"]);
7459
7532
  var chatRules = strictObject({
@@ -7490,7 +7563,7 @@ var chatModeration = strictObject({
7490
7563
  }))
7491
7564
  });
7492
7565
 
7493
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/chat-sending.js
7566
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/chat-sending.js
7494
7567
  var chatSending = strictObject({
7495
7568
  mode: picklist(["allowed", "ask", "denied"]),
7496
7569
  meaning: text,
@@ -7500,7 +7573,7 @@ var chatSending = strictObject({
7500
7573
  changed: optional(boolean())
7501
7574
  });
7502
7575
 
7503
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/chat-stats.js
7576
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/chat-stats.js
7504
7577
  var optionalCount = optional(count);
7505
7578
  var minutes = nullable(number());
7506
7579
  var chatStats = strictObject({
@@ -7576,7 +7649,7 @@ var taskStats = strictObject({
7576
7649
  }))
7577
7650
  });
7578
7651
 
7579
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/chat-tracking.js
7652
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/chat-tracking.js
7580
7653
  var memberCount = strictObject({
7581
7654
  day: pipe(text, isoDate()),
7582
7655
  participants: nullable(count),
@@ -7599,7 +7672,7 @@ var chatTracking = strictObject({
7599
7672
  tracked: boolean()
7600
7673
  });
7601
7674
 
7602
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/contact-read.js
7675
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/contact-read.js
7603
7676
  var contactLookup = strictObject({ id, name: nullable(text), username: nullable(text) });
7604
7677
  var contactSync = strictObject({ added: count, changed: count, known: count });
7605
7678
  var profileFields = {
@@ -7637,7 +7710,7 @@ var profileFields = {
7637
7710
  }))
7638
7711
  };
7639
7712
 
7640
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/contact.js
7713
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/contact.js
7641
7714
  var contact = strictObject({
7642
7715
  ref: reference,
7643
7716
  id,
@@ -7668,7 +7741,7 @@ var contact = strictObject({
7668
7741
  notes: optional(array(strictObject({ id, text, revision: count, created_at: time, updated_at: time })))
7669
7742
  });
7670
7743
 
7671
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/contact-note.js
7744
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/contact-note.js
7672
7745
  var contactNote = strictObject({
7673
7746
  id,
7674
7747
  /** The contact, as a `contact:` reference. */
@@ -7680,13 +7753,13 @@ var contactNote = strictObject({
7680
7753
  updated_at: time
7681
7754
  });
7682
7755
 
7683
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/contact-write.js
7756
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/contact-write.js
7684
7757
  var addressBookPerson = strictObject({ id, name: nullable(text), username: nullable(text) });
7685
7758
  var contactUpdate = strictObject({ operation_id: id, person: addressBookPerson });
7686
7759
  var contactStateChange = strictObject({ operation_id: id, person_id: id });
7687
7760
  var contactImport = strictObject({ operation_id: id, sent: count, recognised: array(addressBookPerson) });
7688
7761
 
7689
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/conversation.js
7762
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/conversation.js
7690
7763
  var conversation = strictObject({
7691
7764
  id,
7692
7765
  chat: reference,
@@ -7701,7 +7774,7 @@ var conversation = strictObject({
7701
7774
  rules_version: count
7702
7775
  });
7703
7776
 
7704
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/conversation-preparation.js
7777
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/conversation-preparation.js
7705
7778
  var conversationBuild = strictObject({
7706
7779
  chat: id,
7707
7780
  messages: count,
@@ -7726,7 +7799,7 @@ var catchUpPreparation = strictObject({
7726
7799
  prepared: optional(conversationPreparation)
7727
7800
  });
7728
7801
 
7729
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/conversation-results.js
7802
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/conversation-results.js
7730
7803
  var conversationDetails = union([
7731
7804
  strictObject({ ...conversation.entries, messages: array(message) }),
7732
7805
  message
@@ -7816,7 +7889,7 @@ var conversationHit = strictObject({
7816
7889
  stale: boolean()
7817
7890
  });
7818
7891
 
7819
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/counters.js
7892
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/counters.js
7820
7893
  var counters = strictObject({
7821
7894
  cutoff: time,
7822
7895
  max_age_ms: milliseconds,
@@ -7846,7 +7919,7 @@ var counterRefresh = strictObject({
7846
7919
  complete: optional(boolean())
7847
7920
  });
7848
7921
 
7849
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/document.js
7922
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/document.js
7850
7923
  var document = strictObject({
7851
7924
  ref: reference,
7852
7925
  id,
@@ -7861,7 +7934,7 @@ var document = strictObject({
7861
7934
  owners: optional(array(text))
7862
7935
  });
7863
7936
 
7864
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/document-link.js
7937
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/document-link.js
7865
7938
  var documentLink = strictObject({
7866
7939
  ref: reference,
7867
7940
  url: text,
@@ -7872,7 +7945,7 @@ var documentLink = strictObject({
7872
7945
  sender: strictObject({ id: nullable(id), name: nullable(text) })
7873
7946
  });
7874
7947
 
7875
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/evidence.js
7948
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/evidence.js
7876
7949
  var evidenceMessage = pick(message, ["ref", "chat_title", "timestamp", "sender_name", "text"]);
7877
7950
  var contribution = strictObject({
7878
7951
  message: evidenceMessage,
@@ -7902,7 +7975,7 @@ var retentionStay = strictObject({
7902
7975
  });
7903
7976
  var evidence = union([contribution, retentionStay]);
7904
7977
 
7905
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/fact.js
7978
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/fact.js
7906
7979
  var fact = strictObject({
7907
7980
  ref: reference,
7908
7981
  id,
@@ -7933,9 +8006,20 @@ var fact = strictObject({
7933
8006
  updated_at: time
7934
8007
  });
7935
8008
 
7936
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/hit.js
8009
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/hit.js
7937
8010
  var hit = strictObject({
7938
- kind: picklist(["message", "mail", "note", "document", "event", "meeting", "deal", "lead", ...BUSINESS_KINDS]),
8011
+ kind: picklist([
8012
+ "message",
8013
+ "mail",
8014
+ "note",
8015
+ "document",
8016
+ "event",
8017
+ "meeting",
8018
+ "deal",
8019
+ "lead",
8020
+ "crm_file",
8021
+ ...BUSINESS_KINDS
8022
+ ]),
7939
8023
  ref: reference,
7940
8024
  provider: text,
7941
8025
  url: optional(text),
@@ -7981,7 +8065,7 @@ var hit = strictObject({
7981
8065
  untrusted
7982
8066
  });
7983
8067
 
7984
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/identity.js
8068
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/identity.js
7985
8069
  var identity = strictObject({
7986
8070
  ref: reference,
7987
8071
  provider: text,
@@ -7997,7 +8081,7 @@ var identity = strictObject({
7997
8081
  person: optional(nullable(reference))
7998
8082
  });
7999
8083
 
8000
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/image-embedding.js
8084
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/image-embedding.js
8001
8085
  var imageEmbedding = strictObject({
8002
8086
  model: text,
8003
8087
  embedded: count,
@@ -8006,13 +8090,13 @@ var imageEmbedding = strictObject({
8006
8090
  more: boolean()
8007
8091
  });
8008
8092
 
8009
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
8093
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
8010
8094
  import { spawn } from "node:child_process";
8011
8095
  import { randomBytes } from "node:crypto";
8012
8096
  import { closeSync, existsSync as existsSync5, mkdirSync as mkdirSync2, openSync, readdirSync as readdirSync3, readFileSync as readFileSync5, realpathSync, rmSync as rmSync2 } from "node:fs";
8013
8097
  import { dirname as dirname2, join as join4 } from "node:path";
8014
8098
 
8015
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/background/checkpoints.js
8099
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/background/checkpoints.js
8016
8100
  var progressOf = /* @__PURE__ */ __name((input) => {
8017
8101
  const total = input.total ?? null;
8018
8102
  const updated = input.updatedAt ?? null;
@@ -8028,7 +8112,7 @@ var progressOf = /* @__PURE__ */ __name((input) => {
8028
8112
  };
8029
8113
  }, "progressOf");
8030
8114
 
8031
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/runs/record-log.js
8115
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/runs/record-log.js
8032
8116
  var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) => {
8033
8117
  const run = currentRun();
8034
8118
  const trace = traceId ?? run.traceId;
@@ -8042,7 +8126,7 @@ var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) =
8042
8126
  }));
8043
8127
  }, "recordLogFor");
8044
8128
 
8045
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
8129
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
8046
8130
  var JOB_STATES = ["running", "done", "partial", "failed", "cancelled", "died"];
8047
8131
  var spawnDetached = /* @__PURE__ */ __name((argv, env, log) => {
8048
8132
  const out = openSync(log, "a", 384);
@@ -8197,7 +8281,7 @@ var startArchiveJob = /* @__PURE__ */ __name((app, env, profile, input, spawnJob
8197
8281
  return { job: id6, pid, chat: input.chat, log };
8198
8282
  }, "startArchiveJob");
8199
8283
 
8200
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/job.js
8284
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/job.js
8201
8285
  var problem = strictObject({ code: text, message: text });
8202
8286
  var job = strictObject({
8203
8287
  id,
@@ -8220,7 +8304,7 @@ var job = strictObject({
8220
8304
  error: optional(problem)
8221
8305
  });
8222
8306
 
8223
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/join-request.js
8307
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/join-request.js
8224
8308
  var joinRequest = strictObject({
8225
8309
  person_id: id,
8226
8310
  name: nullable(text),
@@ -8231,7 +8315,7 @@ var joinRequest = strictObject({
8231
8315
  about: optional(text)
8232
8316
  });
8233
8317
 
8234
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/list-results.js
8318
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/list-results.js
8235
8319
  var botProfile = strictObject({
8236
8320
  name: text,
8237
8321
  token: text,
@@ -8355,7 +8439,7 @@ var stickerInventory = strictObject({
8355
8439
  url: optional(nullable(text))
8356
8440
  });
8357
8441
 
8358
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/poll-vote.js
8442
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/poll-vote.js
8359
8443
  var pollVote = strictObject({
8360
8444
  person_id: id,
8361
8445
  name: nullable(text),
@@ -8365,7 +8449,7 @@ var pollVote = strictObject({
8365
8449
  voted_at: time
8366
8450
  });
8367
8451
 
8368
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/listener.js
8452
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/listener.js
8369
8453
  var reactions = unwrap(unwrap(message.entries.reactions));
8370
8454
  var observation = strictObject({
8371
8455
  value: pipe(number(), minValue(0)),
@@ -8407,7 +8491,7 @@ var serveSummary = strictObject({
8407
8491
  tasks: optional(strictObject({ added: count, closed: count, review: count }))
8408
8492
  });
8409
8493
 
8410
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/mail-counts.js
8494
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/mail-counts.js
8411
8495
  var mailCounts = strictObject({
8412
8496
  by: picklist(["day", "week", "sender"]),
8413
8497
  received: count,
@@ -8422,7 +8506,7 @@ var mailCounts = strictObject({
8422
8506
  }))
8423
8507
  });
8424
8508
 
8425
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/mail-findings.js
8509
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/mail-findings.js
8426
8510
  var evidence2 = strictObject({ reference, fingerprint: text });
8427
8511
  var base = { id, evidence: array(evidence2) };
8428
8512
  var finding = variant("kind", [
@@ -8566,7 +8650,7 @@ var mailFindings = strictObject({
8566
8650
  receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome2) }))
8567
8651
  });
8568
8652
 
8569
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/media-archive.js
8653
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/media-archive.js
8570
8654
  var mediaArchive = strictObject({
8571
8655
  directory: text,
8572
8656
  chats: count,
@@ -8598,7 +8682,7 @@ var mediaArchiveTimer = union([
8598
8682
  strictObject({ ...timer, action: picklist(["install", "start", "stop", "uninstall"]) })
8599
8683
  ]);
8600
8684
 
8601
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation-parts.js
8685
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation-parts.js
8602
8686
  var preparationId = pipe(string(), minLength(1));
8603
8687
  var preparationCount = pipe(number(), integer(), minValue(0));
8604
8688
  var preparationTime = nullable(isoTime);
@@ -8690,7 +8774,7 @@ var preparationMeeting = strictObject({
8690
8774
  updated_at: isoTime
8691
8775
  });
8692
8776
 
8693
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/meeting-evidence.js
8777
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/meeting-evidence.js
8694
8778
  var meetingEvidence = preparationEvidence;
8695
8779
  var meetingPersonContext = strictObject({
8696
8780
  person: strictObject({ uid: string(), name: nullable(string()) }),
@@ -8712,7 +8796,7 @@ var meetingPersonContext = strictObject({
8712
8796
  })
8713
8797
  });
8714
8798
 
8715
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/meeting-findings.js
8799
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/meeting-findings.js
8716
8800
  var evidence3 = strictObject({ reference, fingerprint: text });
8717
8801
  var base2 = { id, project: reference, evidence: array(evidence3) };
8718
8802
  var finding2 = variant("kind", [
@@ -8750,7 +8834,7 @@ var meetingFindings = strictObject({
8750
8834
  receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome3) }))
8751
8835
  });
8752
8836
 
8753
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/meeting-communications.js
8837
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/meeting-communications.js
8754
8838
  var communicationCoverage = strictObject({
8755
8839
  read_usage: strictObject({ reads: preparationCount, charged_bytes: preparationCount, reserved_bytes: preparationCount, remaining_bytes: preparationCount }),
8756
8840
  query: string(),
@@ -8795,7 +8879,7 @@ var preparationCommunications = strictObject({
8795
8879
  }))
8796
8880
  });
8797
8881
 
8798
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation.js
8882
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation.js
8799
8883
  var meetingPreparation = strictObject({
8800
8884
  communications: optional(preparationCommunications),
8801
8885
  schema_version: literal(1),
@@ -8908,7 +8992,7 @@ var meetingPreparation = strictObject({
8908
8992
  })
8909
8993
  });
8910
8994
 
8911
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/meeting-project-candidates.js
8995
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/meeting-project-candidates.js
8912
8996
  var count4 = pipe(number(), integer(), minValue(0));
8913
8997
  var id3 = pipe(string(), minLength(1));
8914
8998
  var text3 = string();
@@ -8972,7 +9056,7 @@ var meetingProjectCandidates = strictObject({
8972
9056
  })
8973
9057
  });
8974
9058
 
8975
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/meeting-series-inventory.js
9059
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/meeting-series-inventory.js
8976
9060
  var count5 = pipe(number(), integer(), minValue(0));
8977
9061
  var id4 = pipe(string(), minLength(1), maxLength(1e3));
8978
9062
  var meetingSeriesInventory = strictObject({
@@ -9002,7 +9086,7 @@ var meetingSeriesInventory = strictObject({
9002
9086
  })
9003
9087
  });
9004
9088
 
9005
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/meeting-task-proposal.js
9089
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/meeting-task-proposal.js
9006
9090
  var text4 = string();
9007
9091
  var id5 = pipe(number(), integer(), minValue(1));
9008
9092
  var revision = picklist(["current", "superseded"]);
@@ -9019,7 +9103,7 @@ var meetingTaskProposal = strictObject({
9019
9103
  persistence: literal("proposal-only")
9020
9104
  });
9021
9105
 
9022
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/memory.js
9106
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/memory.js
9023
9107
  var memory = strictObject({
9024
9108
  ref: reference,
9025
9109
  id,
@@ -9047,7 +9131,7 @@ var memory = strictObject({
9047
9131
  updated_at: time
9048
9132
  });
9049
9133
 
9050
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/mention.js
9134
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/mention.js
9051
9135
  var kind = picklist(["phone", "email", "url", "document", "person-name", "place"]);
9052
9136
  var status = picklist(["found", "linked", "proposed", "dismissed"]);
9053
9137
  var mention = strictObject({
@@ -9091,13 +9175,16 @@ var mentionRebuild = strictObject({
9091
9175
  mentions: count
9092
9176
  });
9093
9177
 
9094
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/message-change.js
9178
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/message-change.js
9095
9179
  var operated3 = { operation_id: id, chat_id: id };
9096
9180
  var messagePin = strictObject({ ...operated3, message_id: id, pinned: boolean() });
9097
9181
  var messageStar = strictObject({ ...operated3, message_id: id, starred: boolean() });
9098
9182
  var messageDeletion = strictObject({ ...operated3, deleted: array(id), for_everyone: boolean() });
9183
+ var scheduledCancellation = strictObject({ ...operated3, cancelled: array(id) });
9184
+ var scheduledSendEntries = { ...operated3, sent: array(id), messages: array(message) };
9185
+ var scheduledSend = strictObject(scheduledSendEntries);
9099
9186
 
9100
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/message-read.js
9187
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/message-read.js
9101
9188
  var messageTranscript = strictObject({
9102
9189
  message_id: id,
9103
9190
  text,
@@ -9155,7 +9242,7 @@ var evidencePacket = strictObject({
9155
9242
  }))
9156
9243
  });
9157
9244
 
9158
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/message-context.js
9245
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/message-context.js
9159
9246
  var messageThread = strictObject({
9160
9247
  ref: reference,
9161
9248
  chat: id,
@@ -9172,7 +9259,7 @@ var messageThread = strictObject({
9172
9259
  });
9173
9260
  var messageContext = union([message, messageThread]);
9174
9261
 
9175
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/message-counts.js
9262
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/message-counts.js
9176
9263
  var messageCounts = strictObject({
9177
9264
  by: picklist(["chat", "sender", "day", "hour"]),
9178
9265
  total: count,
@@ -9185,7 +9272,7 @@ var messageCounts = strictObject({
9185
9272
  }))
9186
9273
  });
9187
9274
 
9188
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/message-link.js
9275
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/message-link.js
9189
9276
  var messageLink = strictObject({
9190
9277
  ref: reference,
9191
9278
  url: nullable(text),
@@ -9202,7 +9289,7 @@ var messageLink = strictObject({
9202
9289
  })))
9203
9290
  });
9204
9291
 
9205
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/message-transfer.js
9292
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/message-transfer.js
9206
9293
  var savedMessageFile = strictObject({
9207
9294
  kind: text,
9208
9295
  path: text,
@@ -9289,7 +9376,7 @@ var messageSyncAll = strictObject({
9289
9376
  var messageSyncStarted = strictObject({ job: id, pid: count, chat: text, log: text });
9290
9377
  var messageSync = union([messageSyncEstimate, messageSyncChat, messageSyncAll, messageSyncStarted]);
9291
9378
 
9292
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/message-write.js
9379
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/message-write.js
9293
9380
  var messageWrite = strictObject({
9294
9381
  operation_id: id,
9295
9382
  message,
@@ -9304,7 +9391,7 @@ var draftWrite = strictObject({
9304
9391
  });
9305
9392
  var messageSend = union([messageWrite, draftWrite]);
9306
9393
 
9307
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/model.js
9394
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/model.js
9308
9395
  var model2 = strictObject({
9309
9396
  id,
9310
9397
  kind: picklist(["audio", "text", "image", "reranker"]),
@@ -9339,7 +9426,7 @@ var chosenModel = strictObject({
9339
9426
  estimate_seconds: nullable(count)
9340
9427
  });
9341
9428
 
9342
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/model-key.js
9429
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/model-key.js
9343
9430
  var source = picklist(["environment", "keyring", "file"]);
9344
9431
  var modelKey = strictObject({
9345
9432
  provider: text,
@@ -9349,7 +9436,7 @@ var modelKey = strictObject({
9349
9436
  var storedModelKey = strictObject({ ...omit(modelKey, ["removed"]).entries, stored: source });
9350
9437
  var removedModelKey = strictObject({ ...omit(modelKey, ["stored"]).entries, removed: array(source) });
9351
9438
 
9352
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/official-stats.js
9439
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/official-stats.js
9353
9440
  var versus = strictObject({ current: number(), previous: number() });
9354
9441
  var person = { person_ref: reference, name: nullable(text) };
9355
9442
  var graph = strictObject({
@@ -9383,14 +9470,14 @@ var officialStats = strictObject({
9383
9470
  graphs: record(string(), union([graph, strictObject({ error: text })]))
9384
9471
  });
9385
9472
 
9386
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/person.js
9473
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/person.js
9387
9474
  var person2 = strictObject({
9388
9475
  ref: reference,
9389
9476
  name: nullable(text),
9390
9477
  identities: optional(array(identity))
9391
9478
  });
9392
9479
 
9393
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/poll.js
9480
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/poll.js
9394
9481
  var poll = strictObject({
9395
9482
  chat_id: id,
9396
9483
  message_id: id,
@@ -9406,11 +9493,11 @@ var poll = strictObject({
9406
9493
  });
9407
9494
  var pollChange = strictObject({ operation_id: id, poll });
9408
9495
 
9409
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/private-contact.js
9496
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/private-contact.js
9410
9497
  var contactAlias = strictObject({ person_id: id, alias: nullable(text) });
9411
9498
  var contactNoteRemoval = strictObject({ id, person_id: id, removed: boolean() });
9412
9499
 
9413
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/ranking.js
9500
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/ranking.js
9414
9501
  var figures = record(string(), number());
9415
9502
  var freshness = picklist(["fresh", "stale", "partial", "unknown"]);
9416
9503
  var rankingRow = strictObject({
@@ -9457,7 +9544,7 @@ var ranking = strictObject({
9457
9544
  rows: array(rankingRow)
9458
9545
  });
9459
9546
 
9460
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/reaction.js
9547
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/reaction.js
9461
9548
  var reaction = strictObject({
9462
9549
  person: strictObject({ id, name: nullable(text), username: nullable(text) }),
9463
9550
  /** The emoji, or `custom:<id>` for a custom one. */
@@ -9465,7 +9552,7 @@ var reaction = strictObject({
9465
9552
  reacted_at: time
9466
9553
  });
9467
9554
 
9468
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/reaction-change.js
9555
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/reaction-change.js
9469
9556
  var reactionChange = strictObject({
9470
9557
  operation_id: id,
9471
9558
  chat_id: id,
@@ -9473,7 +9560,7 @@ var reactionChange = strictObject({
9473
9560
  reaction: nullable(text)
9474
9561
  });
9475
9562
 
9476
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/recipient.js
9563
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/recipient.js
9477
9564
  var recipient = strictObject({ id, title: nullable(text), partner_id: optional(id), added_at: time });
9478
9565
  var recipientAdded = strictObject({ id, title: nullable(text), added: boolean() });
9479
9566
  var recipientRemoved = strictObject({ id, title: nullable(text), removed: boolean() });
@@ -9484,7 +9571,7 @@ var recipientChange = strictObject({
9484
9571
  ...partial(recipientOff).entries
9485
9572
  });
9486
9573
 
9487
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/recorded-run.js
9574
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/recorded-run.js
9488
9575
  var events = array(record(string(), unknown()));
9489
9576
  var recordedRun = strictObject({
9490
9577
  run_id: id,
@@ -9556,7 +9643,7 @@ var runHit = strictObject({
9556
9643
  });
9557
9644
  var runLocation = strictObject({ path: text });
9558
9645
 
9559
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/relationship.js
9646
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/relationship.js
9560
9647
  var relationship = strictObject({
9561
9648
  id,
9562
9649
  from: reference,
@@ -9583,7 +9670,7 @@ var relationship = strictObject({
9583
9670
  created_at: time
9584
9671
  });
9585
9672
 
9586
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/reply-stats.js
9673
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/reply-stats.js
9587
9674
  var milliseconds2 = nullable(pipe(number(), minValue(0)));
9588
9675
  var figures2 = { replies: count, median_ms: milliseconds2, p90_ms: milliseconds2, mean_ms: milliseconds2 };
9589
9676
  var responseTimes = strictObject({
@@ -9600,7 +9687,7 @@ var waitingChats = strictObject({
9600
9687
  by_kind: strictObject({ private: count, group: count })
9601
9688
  });
9602
9689
 
9603
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/retention.js
9690
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/retention.js
9604
9691
  var retentionCohort = strictObject({
9605
9692
  /** The first day of the joining day or week. */
9606
9693
  cohort: text,
@@ -9648,7 +9735,7 @@ var retention = strictObject({
9648
9735
  rows: array(retentionCohort)
9649
9736
  });
9650
9737
 
9651
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/saved-search.js
9738
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/saved-search.js
9652
9739
  var savedSearch = strictObject({
9653
9740
  id,
9654
9741
  /** `null` for a run in the history. */
@@ -9665,7 +9752,7 @@ var savedSearch = strictObject({
9665
9752
  });
9666
9753
  var searchHistoryClear = strictObject({ cleared: count });
9667
9754
 
9668
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/send-attempt.js
9755
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/send-attempt.js
9669
9756
  var sendAttempt = strictObject({
9670
9757
  at: time,
9671
9758
  profile: text,
@@ -9693,7 +9780,7 @@ var sendAttempt = strictObject({
9693
9780
  error_code: optional(text)
9694
9781
  });
9695
9782
 
9696
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/store-maintenance.js
9783
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/store-maintenance.js
9697
9784
  var absent = strictObject({ path: text, exists: literal(false) });
9698
9785
  var schema = strictObject({ version: count, min_compatible: count, writable: boolean(), speaks: count });
9699
9786
  var infoSchema = strictObject({
@@ -9923,7 +10010,7 @@ var storeRepair = union([
9923
10010
  ]);
9924
10011
  var storeCopyRemoval = strictObject({ path: text, deleted: strictObject({ name: text, rows: count }) });
9925
10012
 
9926
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/store-records.js
10013
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/store-records.js
9927
10014
  var range = strictObject({ from: number(), to: number() });
9928
10015
  var storeChatStatus = strictObject({
9929
10016
  chat_id: id,
@@ -10021,7 +10108,7 @@ var storeJobRetry = union([
10021
10108
  ]);
10022
10109
  var storeJobClear = strictObject({ cleared: array(id) });
10023
10110
 
10024
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/store-table.js
10111
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/store-table.js
10025
10112
  var TABLE_KINDS = ["data", "search_index", "search_index_part", "internal"];
10026
10113
  var storeTable = strictObject({
10027
10114
  name: text,
@@ -10030,7 +10117,7 @@ var storeTable = strictObject({
10030
10117
  bytes: optional(nullable(count))
10031
10118
  });
10032
10119
 
10033
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/tag-change.js
10120
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/tag-change.js
10034
10121
  var tagTarget = variant("type", [
10035
10122
  strictObject({ type: literal("chat"), chat_id: id }),
10036
10123
  strictObject({ type: literal("contact"), person_id: id }),
@@ -10061,7 +10148,7 @@ var automaticTags = strictObject({
10061
10148
  dry_run: boolean()
10062
10149
  });
10063
10150
 
10064
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/tagging.js
10151
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/tagging.js
10065
10152
  var tagging = strictObject({
10066
10153
  tag: text,
10067
10154
  type: picklist(TAG_TYPES),
@@ -10074,7 +10161,7 @@ var tagging = strictObject({
10074
10161
  created_at: time
10075
10162
  });
10076
10163
 
10077
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/task-pair.js
10164
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/task-pair.js
10078
10165
  var side = strictObject({ ref: reference, key: text, title: text, status: text });
10079
10166
  var taskPair = strictObject({
10080
10167
  task: nullable(side),
@@ -10097,7 +10184,7 @@ var taskPair = strictObject({
10097
10184
  created_at: time
10098
10185
  });
10099
10186
 
10100
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/task-results.js
10187
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/task-results.js
10101
10188
  var nullableTime = nullable(time);
10102
10189
  var link = strictObject({
10103
10190
  id,
@@ -10271,7 +10358,7 @@ var taskReview = strictObject({
10271
10358
  untrusted
10272
10359
  });
10273
10360
 
10274
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/template.js
10361
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/template.js
10275
10362
  var template = strictObject({
10276
10363
  key: text,
10277
10364
  channel: picklist(["telegram", "email", "text"]),
@@ -10283,7 +10370,7 @@ var template = strictObject({
10283
10370
  updated_by: nullable(text)
10284
10371
  });
10285
10372
 
10286
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/topic.js
10373
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/topic.js
10287
10374
  var topic = strictObject({
10288
10375
  id,
10289
10376
  title: text,
@@ -10297,7 +10384,7 @@ var topic = strictObject({
10297
10384
  untrusted
10298
10385
  });
10299
10386
 
10300
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/entities/index.js
10387
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/index.js
10301
10388
  var ENTITIES = {
10302
10389
  sync_progress: progress,
10303
10390
  deal,
@@ -10331,6 +10418,7 @@ var ENTITIES = {
10331
10418
  attachments: optional(array(hitFile)),
10332
10419
  untrusted
10333
10420
  }),
10421
+ // Typed loosely: the inferred type of `ENTITIES` would pass the size the compiler writes out (TS7056).
10334
10422
  "message.summary": strictObject({
10335
10423
  ...pick(message, [
10336
10424
  "ref",
@@ -10353,6 +10441,8 @@ var ENTITIES = {
10353
10441
  message_pin: messagePin,
10354
10442
  message_star: messageStar,
10355
10443
  message_deletion: messageDeletion,
10444
+ scheduled_cancellation: scheduledCancellation,
10445
+ scheduled_send: scheduledSend,
10356
10446
  message_transcript: messageTranscript,
10357
10447
  message_links: messageLinks,
10358
10448
  evidence_packet: evidencePacket,
@@ -10596,7 +10686,7 @@ var entityDefinitions = /* @__PURE__ */ __name(() => Object.fromEntries(Object.e
10596
10686
  return [name, definition];
10597
10687
  })), "entityDefinitions");
10598
10688
 
10599
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/cli/answer-entity.js
10689
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/cli/answer-entity.js
10600
10690
  var schemas = /* @__PURE__ */ new WeakMap();
10601
10691
  var answerEntity = /* @__PURE__ */ __name((command, name, schema2, options = {}) => {
10602
10692
  if (Object.hasOwn(ENTITIES, name))
@@ -10630,7 +10720,7 @@ var answerRow = /* @__PURE__ */ __name((command) => {
10630
10720
  return own && metaOf(command).output?.entity === own.name ? own.row : void 0;
10631
10721
  }, "answerRow");
10632
10722
 
10633
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/images/picture/models.js
10723
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/images/picture/models.js
10634
10724
  import { join as join5 } from "node:path";
10635
10725
  var clip = /* @__PURE__ */ __name((name) => `https://huggingface.co/Xenova/clip-vit-base-patch32/resolve/d15189d7028b43f1d3e65039190477f6af591c2a/${name}`, "clip");
10636
10726
  var IMAGE_MODELS = [
@@ -10684,7 +10774,7 @@ var imageModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedM
10684
10774
  var placedImage = /* @__PURE__ */ __name((model3, directory) => model3.files.map((file) => [file, join5(directory, model3.id, file.name)]), "placedImage");
10685
10775
  var isImageModelInstalled = /* @__PURE__ */ __name((model3, directory) => filesPresent(placedImage(model3, directory)), "isImageModelInstalled");
10686
10776
 
10687
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/cli/steps.js
10777
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/cli/steps.js
10688
10778
  var STEPS2 = defineSteps([
10689
10779
  ...STEPS,
10690
10780
  {
@@ -10974,7 +11064,7 @@ var stepLine = /* @__PURE__ */ __name((root, step2) => {
10974
11064
  ].join(" ");
10975
11065
  }, "stepLine");
10976
11066
 
10977
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/cli/project-status-rows.js
11067
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/cli/project-status-rows.js
10978
11068
  var where = [{ field: "ref" }];
10979
11069
  var who2 = { field: ["who.owner", "who.name"], tag: "you" };
10980
11070
  var ON_CHAT_ROW = /* @__PURE__ */ new Set(["reply-next", "coverage"]);
@@ -11066,7 +11156,7 @@ var STATUS_ROWS = {
11066
11156
  "status.failed": { columns: [{ field: "signal" }], text: ["why"] }
11067
11157
  };
11068
11158
 
11069
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/cli/compact.js
11159
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/cli/compact.js
11070
11160
  var TEXT_CHARS = 400;
11071
11161
  var sender = { field: ["sender_is_me", "sender_name"], tag: "me" };
11072
11162
  var messageRow = {
@@ -11434,7 +11524,7 @@ var compactText = /* @__PURE__ */ __name((body, shape, options, rowsOf = rowsOfE
11434
11524
  return lines.concat(footerOf(body)).join("\n");
11435
11525
  }, "compactText");
11436
11526
 
11437
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/cli/output-budget.js
11527
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/cli/output-budget.js
11438
11528
  var SOFT_OUTPUT_BYTES = 256 * 1024;
11439
11529
  var CARRIED = ["json", "compact", "offline", "timeout", "full", "brief", "maxOutputBytes"];
11440
11530
  var NOT_WITH_COMPACT = /* @__PURE__ */ new Set(["json", "brief"]);
@@ -11492,7 +11582,7 @@ var largeAnswerSteps = /* @__PURE__ */ __name((command) => {
11492
11582
  return args ? compactStep(command, args, "the answer is large as JSON; one line per item keeps every ref") : [];
11493
11583
  }, "largeAnswerSteps");
11494
11584
 
11495
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
11585
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
11496
11586
  var HIDDEN = /* @__PURE__ */ new Set(["providerRef", "provider_ref"]);
11497
11587
  var withoutProviderRefs = /* @__PURE__ */ __name((value) => strip(value), "withoutProviderRefs");
11498
11588
  var strip = /* @__PURE__ */ __name((value) => {
@@ -11506,7 +11596,7 @@ var strip = /* @__PURE__ */ __name((value) => {
11506
11596
  return Object.fromEntries(Object.entries(value).flatMap(([key, inner]) => HIDDEN.has(key) ? [] : [[key, strip(inner)]]));
11507
11597
  }, "strip");
11508
11598
 
11509
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/cli/untrusted-marks.js
11599
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/cli/untrusted-marks.js
11510
11600
  var OPEN = "\u27E6";
11511
11601
  var CLOSE = "\u27E7";
11512
11602
  var untrustedMarkOf = /* @__PURE__ */ __name((app, env) => {
@@ -11515,6 +11605,10 @@ var untrustedMarkOf = /* @__PURE__ */ __name((app, env) => {
11515
11605
  const mark = ancestorValue(envName(app, "UNTRUSTED_MARK"), env);
11516
11606
  return mark && /^[0-9a-f]{16}$/.test(mark) ? mark : void 0;
11517
11607
  }, "untrustedMarkOf");
11608
+ var runMarkOf = /* @__PURE__ */ __name((command) => {
11609
+ const { app, env } = environmentOf(command);
11610
+ return app ? untrustedMarkOf(app, env ?? process.env) : void 0;
11611
+ }, "runMarkOf");
11518
11612
  var marked = /* @__PURE__ */ __name((text5, mark, source2, id6) => {
11519
11613
  const inside = text5.replaceAll(OPEN, "").replaceAll(CLOSE, "").replaceAll(mark, "");
11520
11614
  const named2 = id6 === void 0 ? "" : ` id=${id6.replaceAll(OPEN, "").replaceAll(CLOSE, "").replace(/\s/g, "")}`;
@@ -11590,7 +11684,7 @@ var withFieldsMarked = /* @__PURE__ */ __name((value, fields, mark, id6) => {
11590
11684
  return result;
11591
11685
  }, "withFieldsMarked");
11592
11686
 
11593
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/node_modules/@wirecat/cli-core/dist/cli/envelope.js
11687
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/cli/envelope.js
11594
11688
  var answerSchema = /* @__PURE__ */ __name((item = unknown()) => union([listEnvelopeSchema(item), itemEnvelopeSchema(item)]), "answerSchema");
11595
11689
  var capped2 = /* @__PURE__ */ __name((steps) => steps.length > 0 ? { next: steps.slice(0, MAX_NEXT_STEPS) } : {}, "capped");
11596
11690
  var listOf = /* @__PURE__ */ __name((command, input) => {
@@ -11720,8 +11814,7 @@ var renderAnswer = /* @__PURE__ */ __name((command, { renderer, format, streams,
11720
11814
  const root = rootOf2(command);
11721
11815
  const runnableSteps = runnable(root, body.next);
11722
11816
  const next = environmentOf(command).agent ? runnableSteps : withLines(root, runnableSteps);
11723
- const { app, env } = environmentOf(command);
11724
- const mark = app ? untrustedMarkOf(app, env ?? process.env) : void 0;
11817
+ const mark = runMarkOf(command);
11725
11818
  const declared = untrustedFieldsOf(command);
11726
11819
  const shown = mark === void 0 ? body : withUntrustedMarked(declared ? withFieldsMarked(body, declared, mark) : body, mark);
11727
11820
  const kept = withoutProviderRefs({ ...shown, ...next.length > 0 ? { next } : {} });
@@ -11880,6 +11973,7 @@ export {
11880
11973
  setExitCode,
11881
11974
  provide,
11882
11975
  environmentOf,
11976
+ withoutOwnPaging,
11883
11977
  withAgentLevels,
11884
11978
  secretInputOf,
11885
11979
  outputFieldsOf,
@@ -11969,6 +12063,8 @@ export {
11969
12063
  stepLine,
11970
12064
  tooLargeSteps,
11971
12065
  withoutProviderRefs,
12066
+ runMarkOf,
12067
+ withUntrustedMarked,
11972
12068
  marksUntrusted,
11973
12069
  answerSchema,
11974
12070
  listOf,