@wirecat/zoom-cli 0.67.0 → 0.68.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 (177) hide show
  1. package/dist/answer-entities.d.ts +18 -0
  2. package/dist/answer-entities.d.ts.map +1 -1
  3. package/dist/answer-entities.js +12 -0
  4. package/dist/answer-entities.js.map +1 -1
  5. package/dist/answer-policy.d.ts.map +1 -1
  6. package/dist/answer-policy.js +2 -1
  7. package/dist/answer-policy.js.map +1 -1
  8. package/dist/bin/zm.js +2 -2
  9. package/dist/bundle/{all-profiles-SEW2VL76.js → all-profiles-R66UM3HM.js} +12 -12
  10. package/dist/bundle/answer-policy-UCGUO53A.js +104 -0
  11. package/dist/bundle/{anthropic-FSNASJML.js → anthropic-4ZI2BPLG.js} +7 -7
  12. package/dist/bundle/{app-server-EVSRYJ3H.js → app-server-64O5IQI5.js} +61 -58
  13. package/dist/bundle/{bun-DACL5SVO.js → bun-HUHQD76Z.js} +2 -2
  14. package/dist/bundle/{bun-sqlite-HQ2KOXSI.js → bun-sqlite-VOVHPTIF.js} +6 -6
  15. package/dist/bundle/{chunk-SMVO5R3T.js → chunk-2OSBCYJT.js} +39 -26
  16. package/dist/bundle/{chunk-TBRG2DPE.js → chunk-2T6XHWDX.js} +2 -2
  17. package/dist/bundle/{chunk-6AJDVJVZ.js → chunk-32FPA7P2.js} +2 -2
  18. package/dist/bundle/{chunk-7LLUUXJB.js → chunk-355PHJYX.js} +1 -1
  19. package/dist/bundle/{chunk-3GO3KME7.js → chunk-3BRV2YU2.js} +3 -3
  20. package/dist/bundle/{chunk-I7SOXH64.js → chunk-474WF55M.js} +53 -39
  21. package/dist/bundle/{chunk-L643D4RJ.js → chunk-4TLPOY22.js} +12 -12
  22. package/dist/bundle/{chunk-D6OXI2NV.js → chunk-4YFJYSSK.js} +205 -59
  23. package/dist/bundle/chunk-5JAYUG3X.js +261 -0
  24. package/dist/bundle/{chunk-VNIBTNV4.js → chunk-65T3PU75.js} +2 -2
  25. package/dist/bundle/{chunk-6TZF2JP7.js → chunk-6CJ7NHIP.js} +13 -13
  26. package/dist/bundle/{chunk-MWEOVTIF.js → chunk-6T3P226D.js} +4 -4
  27. package/dist/bundle/{chunk-EPDRF66S.js → chunk-6TJ62LZQ.js} +22 -14
  28. package/dist/bundle/{chunk-ZRMZBMOF.js → chunk-6XO7RTJY.js} +66 -6
  29. package/dist/bundle/{chunk-VFIEYRYD.js → chunk-77I67HWF.js} +8 -8
  30. package/dist/bundle/{chunk-QX2MAT6I.js → chunk-77KFLU5F.js} +3 -3
  31. package/dist/bundle/{chunk-4GCKDO2H.js → chunk-7AUP2WT3.js} +3 -3
  32. package/dist/bundle/{chunk-7VU5UGRR.js → chunk-7DUYFITC.js} +16 -16
  33. package/dist/bundle/{chunk-ASCHAVNW.js → chunk-7QNJICKZ.js} +27 -27
  34. package/dist/bundle/{chunk-KWRSC6O6.js → chunk-A63ZFOQJ.js} +18 -4
  35. package/dist/bundle/{chunk-SSXCOUP3.js → chunk-AJ7CMUGD.js} +464 -220
  36. package/dist/bundle/{chunk-SCFFCIIP.js → chunk-AVEIQMHZ.js} +2 -2
  37. package/dist/bundle/chunk-AYEVBAGO.js +178 -0
  38. package/dist/bundle/{chunk-AAZFLJSH.js → chunk-B6JMVB6R.js} +10 -10
  39. package/dist/bundle/{chunk-CRLBTNC4.js → chunk-BL36NSV5.js} +3 -3
  40. package/dist/bundle/{chunk-4UVT2QCO.js → chunk-BOAMDYLY.js} +4 -4
  41. package/dist/bundle/chunk-BSM43OMN.js +31 -0
  42. package/dist/bundle/{chunk-QEI55M2F.js → chunk-DGNPJGD3.js} +16 -10
  43. package/dist/bundle/{chunk-SOZVC3SV.js → chunk-DVA6MQWK.js} +1 -1
  44. package/dist/bundle/{chunk-YRNZT4GQ.js → chunk-DWSUSWAX.js} +98 -13
  45. package/dist/bundle/{chunk-LFQ73UFK.js → chunk-EH5QGQFR.js} +3 -3
  46. package/dist/bundle/{chunk-OZEYFJX2.js → chunk-EJDV5IIF.js} +1 -1
  47. package/dist/bundle/{chunk-VQTAU4DV.js → chunk-EWIBLDQQ.js} +8 -8
  48. package/dist/bundle/{chunk-4ZR5DJ26.js → chunk-EZRPSZJS.js} +3 -3
  49. package/dist/bundle/{chunk-KIJLM5UL.js → chunk-FBLUKCIR.js} +1 -1
  50. package/dist/bundle/{chunk-WZ5XK74U.js → chunk-FEM2JQN2.js} +1 -1
  51. package/dist/bundle/{chunk-GP4NSYDU.js → chunk-FMQS7HCC.js} +12 -12
  52. package/dist/bundle/{chunk-B5Z4XPVS.js → chunk-FNQASORM.js} +2 -2
  53. package/dist/bundle/{chunk-FWU3ZYHE.js → chunk-GOXDBCDM.js} +728 -130
  54. package/dist/bundle/{chunk-CLEZE65P.js → chunk-HXOAPH47.js} +1 -1
  55. package/dist/bundle/{chunk-7K5TDTZY.js → chunk-JO4YADNV.js} +7 -7
  56. package/dist/bundle/{chunk-4U2555EQ.js → chunk-JRCYFCPL.js} +30 -28
  57. package/dist/bundle/{chunk-L6CAUVMU.js → chunk-K67V24AT.js} +5 -5
  58. package/dist/bundle/{chunk-B3KWAULD.js → chunk-KAPJQGHE.js} +2 -2
  59. package/dist/bundle/{chunk-T6CZWSHF.js → chunk-KNE6VFHZ.js} +21 -21
  60. package/dist/bundle/{chunk-LM26DJOK.js → chunk-KUB2U5NT.js} +6 -6
  61. package/dist/bundle/{chunk-EUPZSR2G.js → chunk-L4WVLRXM.js} +4 -4
  62. package/dist/bundle/{chunk-BKY4XVB4.js → chunk-LBOSTBAY.js} +1248 -617
  63. package/dist/bundle/{chunk-C6UKW7JO.js → chunk-LV7QRR5S.js} +6 -6
  64. package/dist/bundle/{chunk-FGTPREAZ.js → chunk-LYWUG43B.js} +33 -33
  65. package/dist/bundle/{chunk-NTZDM5SJ.js → chunk-NRRI37NJ.js} +9 -9
  66. package/dist/bundle/{chunk-J3ZBEWQY.js → chunk-NUJMJQXV.js} +54 -147
  67. package/dist/bundle/{chunk-6IBM4Z3V.js → chunk-OE7EIP5L.js} +1 -1
  68. package/dist/bundle/{chunk-ZMPTO2WB.js → chunk-P2TISY3R.js} +1 -1
  69. package/dist/bundle/{chunk-KV4267S4.js → chunk-P3ASN72F.js} +1 -1
  70. package/dist/bundle/{chunk-V33VGWT3.js → chunk-PIHBD3YS.js} +16 -6
  71. package/dist/bundle/{chunk-RYKG6AEH.js → chunk-PUTGTW6W.js} +4 -2
  72. package/dist/bundle/{chunk-L6WUAGPN.js → chunk-QXTREL2M.js} +3 -3
  73. package/dist/bundle/{chunk-X67YD3QI.js → chunk-R7LFGEDE.js} +2 -2
  74. package/dist/bundle/{chunk-2UW533HQ.js → chunk-RGJ7OWHU.js} +4 -4
  75. package/dist/bundle/{chunk-LKJXTACE.js → chunk-RP3U3J53.js} +7 -7
  76. package/dist/bundle/{chunk-DG4DWAU7.js → chunk-RRYUD2EF.js} +3 -3
  77. package/dist/bundle/{chunk-Q65SDEFN.js → chunk-SRP6SFFD.js} +2 -2
  78. package/dist/bundle/{chunk-4KDZ22RA.js → chunk-SSPSNSC5.js} +1 -1
  79. package/dist/bundle/{chunk-DFUPETW7.js → chunk-TDGZMC6K.js} +130 -75
  80. package/dist/bundle/{chunk-EQ7XRRKV.js → chunk-TN3FH2GQ.js} +11 -11
  81. package/dist/bundle/chunk-TUNQ6NE2.js +64 -0
  82. package/dist/bundle/{chunk-FXQPK742.js → chunk-TZUKDM72.js} +29 -15
  83. package/dist/bundle/{chunk-IFDO3YPJ.js → chunk-UDJTRFRV.js} +1 -1
  84. package/dist/bundle/{chunk-ESFMHBHH.js → chunk-US5C3WAY.js} +60 -51
  85. package/dist/bundle/{chunk-KANH7GBB.js → chunk-UU5PLDRA.js} +2 -2
  86. package/dist/bundle/{chunk-OTMGAKUM.js → chunk-VLD7Y4SY.js} +7 -7
  87. package/dist/bundle/{chunk-YPF6OS37.js → chunk-VW6BF6M7.js} +1 -1
  88. package/dist/bundle/{chunk-JVCHGI7W.js → chunk-W42BJ65M.js} +1 -1
  89. package/dist/bundle/{chunk-RAMPYIO2.js → chunk-Y5LP5SHV.js} +11 -11
  90. package/dist/bundle/{chunk-WHQ4ZCJI.js → chunk-YJY3W2ZT.js} +210 -85
  91. package/dist/bundle/{chunk-3ZIHUSMM.js → chunk-YOAEZSDG.js} +2 -2
  92. package/dist/bundle/{chunk-M43MBWJX.js → chunk-YQRNFG2E.js} +13471 -1289
  93. package/dist/bundle/{chunk-7HAIM7GV.js → chunk-YTF2WPV4.js} +601 -443
  94. package/dist/bundle/{chunk-6UFWFKFH.js → chunk-ZRD3NDOX.js} +2 -2
  95. package/dist/bundle/{cli-YUATSOLA.js → cli-VQJ7ZRYR.js} +89 -61
  96. package/dist/bundle/command-contract-JPUWWYIV.js +41 -0
  97. package/dist/bundle/config-YGLLR77A.js +90 -0
  98. package/dist/bundle/{decode-IL44LNC3.js → decode-L3ENO2XH.js} +6 -6
  99. package/dist/bundle/{dispatch-3BGIXSJR.js → dispatch-5MGDLOK4.js} +9 -9
  100. package/dist/bundle/{dist-3W27UQ2S.js → dist-WQLS7U23.js} +47 -27
  101. package/dist/bundle/{echarts-CO4D26JF.js → echarts-5LLJ6JXC.js} +2 -2
  102. package/dist/bundle/{embed-XH2X4DFM.js → embed-37MYTCU7.js} +7 -7
  103. package/dist/bundle/{embedder-WTFWDXBJ.js → embedder-GNGHVJAO.js} +10 -10
  104. package/dist/bundle/{failure-HTIS3NLS.js → failure-CR64C4XA.js} +3 -3
  105. package/dist/bundle/{first-run-5RBH7FDO.js → first-run-NR5JKYP3.js} +12 -12
  106. package/dist/bundle/first-screen-RCR7ATO2.js +39 -0
  107. package/dist/bundle/{folders-F4DNQPIY.js → folders-VU4IN35Y.js} +5 -5
  108. package/dist/bundle/{instructions-EPPBL6TT.js → instructions-P72XX4AK.js} +1 -1
  109. package/dist/bundle/{main-LVQTCDZS.js → main-QYFCYSTW.js} +21 -23
  110. package/dist/bundle/{mcp-PPVOM4SE.js → mcp-M4QN2E7R.js} +2 -2
  111. package/dist/bundle/{meetings-BMELXRTR.js → meetings-66UQINKI.js} +13 -7
  112. package/dist/bundle/{node-CQVMWVIG.js → node-ZB4RNICS.js} +2 -2
  113. package/dist/bundle/{node-sqlite-QQEX7LZT.js → node-sqlite-XPRKBDF3.js} +7 -7
  114. package/dist/bundle/{oauth-AYGX7CQS.js → oauth-WJRDUU5J.js} +8 -8
  115. package/dist/bundle/{open-MIL2TOT6.js → open-S2YSIEOW.js} +6 -6
  116. package/dist/bundle/openai-CRNZFNZD.js +25 -0
  117. package/dist/bundle/{output-file-4XADZPYH.js → output-file-6COFGPUL.js} +6 -6
  118. package/dist/bundle/{process-NJVQK6GB.js → process-XNN4WG6N.js} +1 -1
  119. package/dist/bundle/{program-WUYRS6H7.js → program-BRPJKRCX.js} +115 -187
  120. package/dist/bundle/{prompt-J4QPFLEA.js → prompt-7RQOL25I.js} +6 -6
  121. package/dist/bundle/{recognize-OLJZVNWW.js → recognize-N5WADGQB.js} +5 -5
  122. package/dist/bundle/{remote-JPUXNYLV.js → remote-WHYV35IF.js} +8 -8
  123. package/dist/bundle/{rerank-XVV3X5TT.js → rerank-FBMZVWSH.js} +8 -8
  124. package/dist/bundle/{run-log-DJXBEVS5.js → run-log-TOCHREH2.js} +59 -59
  125. package/dist/bundle/{serve-NYYUO3MR.js → serve-4BABX4WS.js} +10 -10
  126. package/dist/bundle/{server-4Z5E4YTT.js → server-CDVI6LOB.js} +47 -47
  127. package/dist/bundle/server-XOFQKFVO.js +72 -0
  128. package/dist/bundle/{services-EKWM76HP.js → services-PIY33I7R.js} +43 -33
  129. package/dist/bundle/{speech-WFJ44ACJ.js → speech-LS5Q4FL2.js} +14 -14
  130. package/dist/bundle/{state-VIRCT4VW.js → state-YUX5R2R7.js} +7 -7
  131. package/dist/bundle/{store-ZTDZ6UY5.js → store-BD7HAXAA.js} +20 -18
  132. package/dist/bundle/{store-2Q4GEZJS.js → store-ERMGBF2B.js} +49 -29
  133. package/dist/bundle/store-connection-JBR6CMTJ.js +83 -0
  134. package/dist/bundle/store-maintenance-command-I5DUSO2C.js +62 -0
  135. package/dist/bundle/{streaming-7BPKIGAS.js → streaming-O53PIORL.js} +7 -7
  136. package/dist/bundle/{tokens-CQHMMKNX.js → tokens-QKNEP2GJ.js} +7 -7
  137. package/dist/bundle/zm.js +9 -10
  138. package/dist/bundle/zoom-app-XJXZ4ZBX.js +41 -0
  139. package/dist/commands.d.ts.map +1 -1
  140. package/dist/commands.js +1 -0
  141. package/dist/commands.js.map +1 -1
  142. package/dist/config.d.ts.map +1 -1
  143. package/dist/config.js +2 -3
  144. package/dist/config.js.map +1 -1
  145. package/dist/identity.d.ts +1 -0
  146. package/dist/identity.d.ts.map +1 -1
  147. package/dist/identity.js +11 -0
  148. package/dist/identity.js.map +1 -1
  149. package/dist/program-bindings.d.ts.map +1 -1
  150. package/dist/program-bindings.js +7 -2
  151. package/dist/program-bindings.js.map +1 -1
  152. package/dist/setup-commands.d.ts +6 -0
  153. package/dist/setup-commands.d.ts.map +1 -1
  154. package/dist/setup-commands.js +24 -9
  155. package/dist/setup-commands.js.map +1 -1
  156. package/dist/version.d.ts +1 -1
  157. package/dist/version.js +1 -1
  158. package/dist/zoom-app.d.ts +32 -0
  159. package/dist/zoom-app.d.ts.map +1 -1
  160. package/dist/zoom-app.js +61 -0
  161. package/dist/zoom-app.js.map +1 -1
  162. package/package.json +3 -3
  163. package/dist/bundle/answer-policy-5OYUL6UF.js +0 -103
  164. package/dist/bundle/chunk-54RTMQL6.js +0 -132
  165. package/dist/bundle/chunk-6VFORXL3.js +0 -101
  166. package/dist/bundle/chunk-D4KBD63W.js +0 -19
  167. package/dist/bundle/chunk-SXFODCYK.js +0 -9
  168. package/dist/bundle/chunk-Z3WXI4DK.js +0 -31
  169. package/dist/bundle/command-contract-UWHY55UE.js +0 -41
  170. package/dist/bundle/config-TGF6E6ZD.js +0 -89
  171. package/dist/bundle/first-screen-PGFIXJAX.js +0 -39
  172. package/dist/bundle/openai-7QZZXQW5.js +0 -25
  173. package/dist/bundle/server-VW5UVCH7.js +0 -72
  174. package/dist/bundle/store-connection-FKVVQLEF.js +0 -83
  175. package/dist/bundle/store-maintenance-command-AU73UVUQ.js +0 -62
  176. package/dist/bundle/zoom-app-OEKFMJS6.js +0 -25
  177. /package/dist/bundle/{chunk-LU3WKZBA.js → chunk-VOXIGICJ.js} +0 -0
@@ -4,7 +4,7 @@ import {
4
4
  envName,
5
5
  readOnlyLockOf,
6
6
  readOnlyRefusal
7
- } from "./chunk-SCFFCIIP.js";
7
+ } from "./chunk-AVEIQMHZ.js";
8
8
  import {
9
9
  currentCaller,
10
10
  endpointTemplate,
@@ -14,18 +14,18 @@ import {
14
14
  providerErrorKey,
15
15
  renderEvent,
16
16
  runContextOf
17
- } from "./chunk-LKJXTACE.js";
17
+ } from "./chunk-RP3U3J53.js";
18
18
  import {
19
19
  permissionCeiling
20
- } from "./chunk-EUPZSR2G.js";
20
+ } from "./chunk-L4WVLRXM.js";
21
21
  import {
22
22
  fieldsOf,
23
23
  projectFields,
24
24
  resolveOutput
25
- } from "./chunk-7K5TDTZY.js";
25
+ } from "./chunk-JO4YADNV.js";
26
26
  import {
27
27
  carries
28
- } from "./chunk-SOZVC3SV.js";
28
+ } from "./chunk-DVA6MQWK.js";
29
29
  import {
30
30
  DEFAULT_HISTORY_LIMITS,
31
31
  DEFAULT_RERANK_MODEL,
@@ -58,10 +58,10 @@ import {
58
58
  typedCommand,
59
59
  useAsProcessRun,
60
60
  withWriteScope
61
- } from "./chunk-4U2555EQ.js";
61
+ } from "./chunk-JRCYFCPL.js";
62
62
  import {
63
63
  isCliFailure
64
- } from "./chunk-3ZIHUSMM.js";
64
+ } from "./chunk-YOAEZSDG.js";
65
65
  import {
66
66
  CEILING_KEY,
67
67
  COMMAND_PATH_KEY,
@@ -72,21 +72,10 @@ import {
72
72
  keyForCommand,
73
73
  layerPermissions,
74
74
  permissionOverrides
75
- } from "./chunk-VNIBTNV4.js";
75
+ } from "./chunk-65T3PU75.js";
76
76
  import {
77
- author,
78
- count,
79
- evidenceSource,
80
- id,
81
- note,
82
- organization,
83
- project,
84
- providerMetadata,
85
- reminder,
86
- text,
87
- time,
88
- untrusted
89
- } from "./chunk-54RTMQL6.js";
77
+ note
78
+ } from "./chunk-TUNQ6NE2.js";
90
79
  import {
91
80
  FACT_STATUSES,
92
81
  LINK_KINDS,
@@ -101,14 +90,31 @@ import {
101
90
  TASK_STATES,
102
91
  TASK_TYPES,
103
92
  TASK_VERDICTS,
104
- WORK_TASK_TYPES
105
- } from "./chunk-YRNZT4GQ.js";
93
+ WORK_TASK_TYPES,
94
+ author,
95
+ count,
96
+ evidenceSource,
97
+ id,
98
+ organization,
99
+ project,
100
+ providerMetadata,
101
+ reminder,
102
+ text,
103
+ time,
104
+ untrusted
105
+ } from "./chunk-DWSUSWAX.js";
106
106
  import {
107
107
  sharedConfigPath
108
- } from "./chunk-OTMGAKUM.js";
108
+ } from "./chunk-VLD7Y4SY.js";
109
+ import {
110
+ INVOICE_DIRECTIONS,
111
+ MONEY_DIRECTIONS,
112
+ ORDER_PURPOSES,
113
+ ORDER_STATUSES
114
+ } from "./chunk-AYEVBAGO.js";
109
115
  import {
110
116
  storePath
111
- } from "./chunk-6AJDVJVZ.js";
117
+ } from "./chunk-32FPA7P2.js";
112
118
  import {
113
119
  FACT_TYPES,
114
120
  MEETING_RESULT_ENTITIES,
@@ -126,12 +132,12 @@ import {
126
132
  meetingStats,
127
133
  meetingSummary,
128
134
  meetingTranscript
129
- } from "./chunk-DFUPETW7.js";
135
+ } from "./chunk-TDGZMC6K.js";
130
136
  import {
131
137
  FIELD_TYPES,
132
138
  QUERY_BACKENDS,
133
139
  describeQuery
134
- } from "./chunk-AAZFLJSH.js";
140
+ } from "./chunk-B6JMVB6R.js";
135
141
  import {
136
142
  configFilePath,
137
143
  createRecordLog,
@@ -140,7 +146,7 @@ import {
140
146
  resolvePaths,
141
147
  saveConfigFile,
142
148
  writeSecurely
143
- } from "./chunk-T6CZWSHF.js";
149
+ } from "./chunk-KNE6VFHZ.js";
144
150
  import {
145
151
  COMPACT_FLAG,
146
152
  MAX_NEXT_STEPS,
@@ -192,18 +198,18 @@ import {
192
198
  unwrap,
193
199
  variant,
194
200
  writes
195
- } from "./chunk-NTZDM5SJ.js";
201
+ } from "./chunk-NRRI37NJ.js";
196
202
  import {
197
203
  CliError
198
- } from "./chunk-WZ5XK74U.js";
204
+ } from "./chunk-FEM2JQN2.js";
199
205
  import {
200
206
  visibleControls
201
- } from "./chunk-6IBM4Z3V.js";
207
+ } from "./chunk-OE7EIP5L.js";
202
208
  import {
203
209
  __name
204
210
  } from "./chunk-ZVVMGPBJ.js";
205
211
 
206
- // node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/registry.js
212
+ // node_modules/.pnpm/@wirecat+cli-base@0.80.8_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
207
213
  var labels = /* @__PURE__ */ new WeakMap();
208
214
  var annotate = /* @__PURE__ */ __name((command, meta) => {
209
215
  labels.set(command, { ...labels.get(command), ...meta });
@@ -3704,7 +3710,7 @@ __name(useColor, "useColor");
3704
3710
  // node_modules/.pnpm/commander@15.0.0/node_modules/commander/index.js
3705
3711
  var program = new Command();
3706
3712
 
3707
- // node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/contracts.js
3713
+ // node_modules/.pnpm/@wirecat+cli-base@0.80.8_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
3708
3714
  import { isDeepStrictEqual } from "node:util";
3709
3715
  var protectedCommands = /* @__PURE__ */ new WeakMap();
3710
3716
  var hasSharedContract = /* @__PURE__ */ __name((command) => protectedCommands.has(command), "hasSharedContract");
@@ -3890,8 +3896,8 @@ var customizeSharedCommand = /* @__PURE__ */ __name((reference2, reason, build,
3890
3896
  }
3891
3897
  }, "adopt");
3892
3898
  adopt(reference2, command);
3893
- const ordered = /* @__PURE__ */ __name((records) => [...records].sort((a, b) => JSON.stringify([a.command, a.field]).localeCompare(JSON.stringify([b.command, b.field]))), "ordered");
3894
- if (!Array.isArray(expectedOverrides) || !same(ordered(edits), ordered(expectedOverrides)))
3899
+ const ordered2 = /* @__PURE__ */ __name((records) => [...records].sort((a, b) => JSON.stringify([a.command, a.field]).localeCompare(JSON.stringify([b.command, b.field]))), "ordered");
3900
+ if (!Array.isArray(expectedOverrides) || !same(ordered2(edits), ordered2(expectedOverrides)))
3895
3901
  throw new CliError("configuration_error", `provider shell ${command.name()} differs from its reviewed shared contract overrides; review Core and provider definitions before updating the explicit declarations`, { reason: "contract.unacknowledged-override", expected: expectedOverrides ?? null, actual: edits });
3896
3902
  for (const { command: own, record: record2 } of pending) {
3897
3903
  protectedCommands.set(own, record2);
@@ -3906,7 +3912,7 @@ var customizeSharedCommand = /* @__PURE__ */ __name((reference2, reason, build,
3906
3912
  return command;
3907
3913
  }, "customizeSharedCommand");
3908
3914
 
3909
- // node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/document.js
3915
+ // node_modules/.pnpm/@wirecat+cli-base@0.80.8_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
3910
3916
  var argumentInfoSchema = object({
3911
3917
  name: string(),
3912
3918
  required: boolean(),
@@ -3980,7 +3986,7 @@ var commandsDocumentSchema = strictObject({
3980
3986
  exit_codes: record(string(), pipe(number(), integer()))
3981
3987
  });
3982
3988
 
3983
- // node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/index.js
3989
+ // node_modules/.pnpm/@wirecat+cli-base@0.80.8_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
3984
3990
  var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
3985
3991
  let command = root;
3986
3992
  const path2 = [];
@@ -3998,7 +4004,7 @@ var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
3998
4004
  }
3999
4005
  }, "refuseJoinedPath");
4000
4006
 
4001
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/runs/log-events.js
4007
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/runs/log-events.js
4002
4008
  var CORE_LOG_EVENTS = defineLogEvents([
4003
4009
  { id: "provider.request", meaning: "a request went to the messenger", keys: ["operation"] },
4004
4010
  { id: "provider.response", meaning: "the messenger answered the request, or it failed", keys: ["operation"] },
@@ -4032,7 +4038,7 @@ var DIAGNOSTIC_LOG_EVENTS = {
4032
4038
  cache: "cache.answered"
4033
4039
  };
4034
4040
 
4035
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/runs/recording.js
4041
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/runs/recording.js
4036
4042
  var recorded = /* @__PURE__ */ __name(async (options, body) => {
4037
4043
  const recording = startRecording(options);
4038
4044
  try {
@@ -4217,7 +4223,7 @@ var partialOutcome = /* @__PURE__ */ __name((answer) => {
4217
4223
  return void 0;
4218
4224
  }, "partialOutcome");
4219
4225
 
4220
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/deadline.js
4226
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/cli/deadline.js
4221
4227
  var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
4222
4228
  if (ms2 === void 0)
4223
4229
  return body();
@@ -4243,7 +4249,7 @@ var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
4243
4249
  }
4244
4250
  }, "withDeadline");
4245
4251
 
4246
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/execution.js
4252
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/cli/execution.js
4247
4253
  var DEFAULT_COMMAND_MS = 3e4;
4248
4254
  var DEFAULT_COOPERATIVE_MS = 5 * 6e4;
4249
4255
  var DEFAULT_SYNC_MS = 15 * 6e4;
@@ -4426,7 +4432,7 @@ var withAbort = /* @__PURE__ */ __name(async (signal, body) => {
4426
4432
  }
4427
4433
  }, "withAbort");
4428
4434
 
4429
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/profile.js
4435
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/cli/profile.js
4430
4436
  var asFirstWord = /* @__PURE__ */ __name((profile) => `${profile} `, "asFirstWord");
4431
4437
  var PLAIN_NAME = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
4432
4438
  var isProfileName = /* @__PURE__ */ __name((word) => PLAIN_NAME.test(word), "isProfileName");
@@ -4495,7 +4501,7 @@ var sampleCommand = /* @__PURE__ */ __name((commands) => {
4495
4501
  return void 0;
4496
4502
  }, "sampleCommand");
4497
4503
 
4498
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/models/endpoint.js
4504
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/models/endpoint.js
4499
4505
  var endpoint = /* @__PURE__ */ __name((value) => {
4500
4506
  try {
4501
4507
  const url2 = new URL(value);
@@ -4505,7 +4511,7 @@ var endpoint = /* @__PURE__ */ __name((value) => {
4505
4511
  }
4506
4512
  }, "endpoint");
4507
4513
 
4508
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/models/settings.js
4514
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/models/settings.js
4509
4515
  var MODEL_FIELDS = ["provider", "model", "base_url"];
4510
4516
  var modelSettingsShape = record(pipe(string(), regex(/^[a-z][a-z0-9-]*$/)), strictObject({
4511
4517
  provider: optional(picklist(["off", "openai", "anthropic"])),
@@ -4574,7 +4580,7 @@ var modelTarget = /* @__PURE__ */ __name((settings, purpose) => {
4574
4580
  };
4575
4581
  }, "modelTarget");
4576
4582
 
4577
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/analysis/settings.js
4583
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/analysis/settings.js
4578
4584
  var model = pipe(string(), trim(), minLength(1), maxLength(200));
4579
4585
  var url = pipe(string(), check(endpoint, "use an HTTP/S endpoint without credentials, query or fragment"));
4580
4586
  var AI_FIELDS = {
@@ -4618,7 +4624,7 @@ var resolveAISettings = /* @__PURE__ */ __name((prefix, layers, env) => {
4618
4624
  };
4619
4625
  }, "resolveAISettings");
4620
4626
 
4621
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/bot/registry.js
4627
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/cli/bot/registry.js
4622
4628
  import { existsSync, readdirSync, readFileSync } from "node:fs";
4623
4629
  import { join } from "node:path";
4624
4630
  var botsDirectory = /* @__PURE__ */ __name((app, env = process.env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "bots"), "botsDirectory");
@@ -4707,10 +4713,10 @@ var registryProfiles = /* @__PURE__ */ __name((app, env = process.env) => {
4707
4713
  return readdirSync(directory, { withFileTypes: true }).filter((entry) => entry.isFile() && entry.name.endsWith(".json")).map((entry) => entry.name).map((name) => name.slice(0, -".json".length));
4708
4714
  }, "registryProfiles");
4709
4715
 
4710
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
4716
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
4711
4717
  import { readFileSync as readFileSync2 } from "node:fs";
4712
4718
 
4713
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/config-repair.js
4719
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/cli/config-repair.js
4714
4720
  var REPAIR_WORDS = {
4715
4721
  byte_order_mark: "an invisible byte-order mark at the start",
4716
4722
  comment: "a comment, which JSON does not allow",
@@ -4951,7 +4957,7 @@ ${parts.join(",\n")}
4951
4957
  ${indent}${close}`;
4952
4958
  }, "serialise");
4953
4959
 
4954
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
4960
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
4955
4961
  var isNode = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
4956
4962
  var SECTIONS = ["personal", "bot"];
4957
4963
  var SHELL_SAFE = /^[A-Za-z0-9_.:@-]*$/;
@@ -5246,7 +5252,7 @@ var readConfigFile = /* @__PURE__ */ __name((path2) => {
5246
5252
  return "issue" in parsed ? { issue: publicIssue(parsed.issue) } : parsed;
5247
5253
  }, "readConfigFile");
5248
5254
 
5249
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/default-config.js
5255
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/cli/default-config.js
5250
5256
  import { existsSync as existsSync2, linkSync, mkdirSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";
5251
5257
  import { dirname, join as join2 } from "node:path";
5252
5258
  var DEFAULT_CONFIG = {
@@ -5275,7 +5281,7 @@ function ensureDefaultConfig(path2, config = DEFAULT_CONFIG) {
5275
5281
  }
5276
5282
  __name(ensureDefaultConfig, "ensureDefaultConfig");
5277
5283
 
5278
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/messenger/accounts.js
5284
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/cli/messenger/accounts.js
5279
5285
  import { existsSync as existsSync3, readdirSync as readdirSync2, readFileSync as readFileSync3 } from "node:fs";
5280
5286
  import { join as join3 } from "node:path";
5281
5287
  var accountFileFor = /* @__PURE__ */ __name((app, profile, env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "accounts", `${profile}.json`), "accountFileFor");
@@ -5297,7 +5303,7 @@ var profilesWithAccounts = /* @__PURE__ */ __name((app, env) => {
5297
5303
  }, "profilesWithAccounts");
5298
5304
  var profilesHere = /* @__PURE__ */ __name((app, configured, env) => [.../* @__PURE__ */ new Set([...configured, ...profilesWithAccounts(app, env)])].sort(), "profilesHere");
5299
5305
 
5300
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/setting-defaults.js
5306
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/cli/setting-defaults.js
5301
5307
  var isNode2 = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
5302
5308
  var parentOf = /* @__PURE__ */ __name((config, key) => {
5303
5309
  const path2 = key.split(".");
@@ -5330,7 +5336,7 @@ var settingRows = /* @__PURE__ */ __name((raw, declared) => declared.map((settin
5330
5336
  };
5331
5337
  }), "settingRows");
5332
5338
 
5333
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/settings.js
5339
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/cli/settings.js
5334
5340
  import { existsSync as existsSync4 } from "node:fs";
5335
5341
  var DEFAULT_LIMIT = DEFAULT_CONFIG.defaults.limit;
5336
5342
  var DEFAULT_KEEP_RUNS_FOR_DAYS = DEFAULT_CONFIG.defaults.keep_runs_for_days;
@@ -5841,7 +5847,7 @@ var given = /* @__PURE__ */ __name((value) => {
5841
5847
  return trimmed === void 0 || trimmed === "" ? void 0 : trimmed;
5842
5848
  }, "given");
5843
5849
 
5844
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/background/budget.js
5850
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/background/budget.js
5845
5851
  var DEADLINE_MARGIN_MS = 5e3;
5846
5852
  var DEADLINE_MARGIN_SHARE = 0.15;
5847
5853
  var DEFAULT_REQUEST_MS = 2e3;
@@ -5884,7 +5890,7 @@ var runBudget = /* @__PURE__ */ __name(({ requests, deadline, requestMs, signal,
5884
5890
  };
5885
5891
  }, "runBudget");
5886
5892
 
5887
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/context.js
5893
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/cli/context.js
5888
5894
  var runBudgetOf = /* @__PURE__ */ __name((command, requests) => {
5889
5895
  const { deadline, signal, app } = environmentOf(command);
5890
5896
  const now = deadline?.();
@@ -5907,6 +5913,10 @@ var provide = /* @__PURE__ */ __name((program2, environment) => {
5907
5913
  environments.set(program2, environment);
5908
5914
  }, "provide");
5909
5915
  var environmentOf = /* @__PURE__ */ __name((command) => environments.get(rootOf(command)) ?? {}, "environmentOf");
5916
+ var withAgentLevels = /* @__PURE__ */ __name((command, flags) => {
5917
+ const overrides = environmentOf(command).agent?.overrides ?? [];
5918
+ return overrides.length > 0 ? { ...flags, permission: [...overrides, ...flags.permission ?? []] } : flags;
5919
+ }, "withAgentLevels");
5910
5920
  var secretInputOf = /* @__PURE__ */ __name((command) => {
5911
5921
  const { stdin, stderr } = environmentOf(command);
5912
5922
  return { ...stdin ? { input: stdin } : {}, ...stderr ? { output: stderr } : {} };
@@ -5933,9 +5943,7 @@ var outputFor = /* @__PURE__ */ __name((command) => {
5933
5943
  var baseContext = /* @__PURE__ */ __name((command, resolveSettings) => {
5934
5944
  const environment = environmentOf(command);
5935
5945
  const env = environment.env ?? process.env;
5936
- const flags = command.optsWithGlobals();
5937
- const overrides = environment.agent?.overrides ?? [];
5938
- const settings = resolveSettings(overrides.length > 0 ? { ...flags, permission: [...overrides, ...flags.permission ?? []] } : flags, { env });
5946
+ const settings = resolveSettings(withAgentLevels(command, command.optsWithGlobals()), { env });
5939
5947
  const { renderer, format, color, streams, compact, full } = resolveOutput({
5940
5948
  ...settings,
5941
5949
  env,
@@ -6000,6 +6008,13 @@ var baseContext = /* @__PURE__ */ __name((command, resolveSettings) => {
6000
6008
  }, "track")
6001
6009
  };
6002
6010
  }, "baseContext");
6011
+ var inCommandRun = /* @__PURE__ */ __name((command, body) => {
6012
+ const { resolveSettings } = environmentOf(command);
6013
+ if (!resolveSettings)
6014
+ return body(() => {
6015
+ });
6016
+ return baseContext(command, (flags, options) => resolveSettings(flags, { ...options, needsProfile: false })).run(body);
6017
+ }, "inCommandRun");
6003
6018
  var commandPath = /* @__PURE__ */ __name((command) => {
6004
6019
  const words = [];
6005
6020
  for (let current = command; current?.parent; current = current.parent)
@@ -6007,7 +6022,7 @@ var commandPath = /* @__PURE__ */ __name((command) => {
6007
6022
  return words.join(" ");
6008
6023
  }, "commandPath");
6009
6024
 
6010
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/effects.js
6025
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/cli/effects.js
6011
6026
  var REMOTE_READ = { remote: "read", local: "read" };
6012
6027
  var FETCH = { remote: "read", local: "write" };
6013
6028
  var REMOTE_WRITE = { remote: "write", local: "write" };
@@ -6091,6 +6106,7 @@ var writesFileOnlyWith = /* @__PURE__ */ __name((command, option) => {
6091
6106
  FILE_OPTION.set(command, option);
6092
6107
  return command;
6093
6108
  }, "writesFileOnlyWith");
6109
+ var writesNewFileOnlyWith = /* @__PURE__ */ __name((command, option) => destroysNothing(writesFileOnlyWith(command, option)), "writesNewFileOnlyWith");
6094
6110
  var writesFileNow = /* @__PURE__ */ __name((command) => {
6095
6111
  const option = FILE_OPTION.get(command);
6096
6112
  return option === void 0 || command.opts()[option] !== void 0;
@@ -6152,7 +6168,7 @@ var refuseUnderReadOnly = /* @__PURE__ */ __name((command, what) => {
6152
6168
  throw readOnlyRefusal(lock, what);
6153
6169
  }, "refuseUnderReadOnly");
6154
6170
 
6155
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/member.js
6171
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/member.js
6156
6172
  var member = strictObject({
6157
6173
  id,
6158
6174
  name: nullable(text),
@@ -6175,7 +6191,7 @@ var member = strictObject({
6175
6191
  check: optional(record(string(), unknown()))
6176
6192
  });
6177
6193
 
6178
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/chat.js
6194
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/chat.js
6179
6195
  var setting = optional(nullable(boolean()));
6180
6196
  var chat = strictObject({
6181
6197
  ref: reference,
@@ -6216,7 +6232,7 @@ var chat = strictObject({
6216
6232
  members: optional(array(member))
6217
6233
  });
6218
6234
 
6219
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/list-results.js
6235
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/list-results.js
6220
6236
  var botProfile = strictObject({
6221
6237
  name: text,
6222
6238
  token: text,
@@ -6247,6 +6263,10 @@ var scheduledJob = strictObject({
6247
6263
  name: text,
6248
6264
  kind: picklist(["command", "agent"]),
6249
6265
  when: text,
6266
+ /** When a finished run shows a desktop notice: `always`, `failures` or `never`; the default is shown, not left out. */
6267
+ notify: optional(picklist(["always", "failures", "never"])),
6268
+ /** Where a run's result is sent after it: `telegram-bot:<profile>/<chat>` or `email:<profile>/<address>`. */
6269
+ deliver_to: optional(array(text)),
6250
6270
  last: nullable(strictObject({
6251
6271
  at: time,
6252
6272
  exit_code: number(),
@@ -6255,8 +6275,29 @@ var scheduledJob = strictObject({
6255
6275
  reason: optional(text),
6256
6276
  error_code: optional(text),
6257
6277
  failing_since: optional(time),
6258
- failures: optional(number())
6259
- }))
6278
+ failures: optional(number()),
6279
+ cost_usd: optional(number()),
6280
+ /** The last time a run did not start, and why: the day's cost cap, or too little new mail. */
6281
+ skipped: optional(strictObject({
6282
+ at: time,
6283
+ why: text,
6284
+ /** A dotted id for `why`, so a client can translate it: `cost.day-cap`, `mail.none-new`, `mail.below-threshold`. */
6285
+ reason: optional(pipe(text, regex(/^[a-z][a-z0-9-]*(\.[a-z][a-z0-9-]*)+$/)))
6286
+ })),
6287
+ /** How the run's result went along each route; `reason` a dotted id, `error` the sending CLI's code and reason id. */
6288
+ deliveries: optional(array(strictObject({
6289
+ to: text,
6290
+ ok: boolean(),
6291
+ reason: optional(pipe(text, regex(/^[a-z][a-z0-9-]*(\.[a-z][a-z0-9-]*)+$/))),
6292
+ error: optional(text)
6293
+ })))
6294
+ })),
6295
+ /** Agent schedules: what today's runs cost, in US dollars. */
6296
+ spent_today_usd: optional(number()),
6297
+ /** Agent schedules: the cap on one run (`--max-cost`), null when none. */
6298
+ max_cost_usd: optional(nullable(number())),
6299
+ /** Agent schedules: the daily cap in force, the schedule's `--max-cost-per-day` or the config's; 0 for none. */
6300
+ max_cost_per_day_usd: optional(number())
6260
6301
  });
6261
6302
  var botTemplate = strictObject({
6262
6303
  name: nullable(text),
@@ -6284,7 +6325,7 @@ var stickerInventory = strictObject({
6284
6325
  url: optional(nullable(text))
6285
6326
  });
6286
6327
 
6287
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/batch-result.js
6328
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/batch-result.js
6288
6329
  var actionableError = objectWithRest({
6289
6330
  code: text,
6290
6331
  message: text,
@@ -6301,7 +6342,7 @@ var batchResult = strictObject({
6301
6342
  max_error_percent: count
6302
6343
  });
6303
6344
 
6304
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/conversation-preparation.js
6345
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/conversation-preparation.js
6305
6346
  var conversationBuild = strictObject({
6306
6347
  chat: id,
6307
6348
  messages: count,
@@ -6326,13 +6367,13 @@ var catchUpPreparation = strictObject({
6326
6367
  prepared: optional(conversationPreparation)
6327
6368
  });
6328
6369
 
6329
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
6370
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
6330
6371
  import { spawn } from "node:child_process";
6331
6372
  import { randomBytes } from "node:crypto";
6332
6373
  import { closeSync, existsSync as existsSync6, mkdirSync as mkdirSync2, openSync, readdirSync as readdirSync3, readFileSync as readFileSync5, realpathSync, rmSync as rmSync3 } from "node:fs";
6333
6374
  import { dirname as dirname2, join as join5 } from "node:path";
6334
6375
 
6335
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/background/checkpoints.js
6376
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/background/checkpoints.js
6336
6377
  import { existsSync as existsSync5, readFileSync as readFileSync4, rmSync as rmSync2 } from "node:fs";
6337
6378
  import { join as join4 } from "node:path";
6338
6379
  var PART = /^[\w@+-][\w.@+-]{0,99}$/;
@@ -6372,7 +6413,7 @@ var progressOf = /* @__PURE__ */ __name((input) => {
6372
6413
  };
6373
6414
  }, "progressOf");
6374
6415
 
6375
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/runs/record-log.js
6416
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/runs/record-log.js
6376
6417
  var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) => {
6377
6418
  const run = currentRun();
6378
6419
  const trace = traceId ?? run.traceId;
@@ -6386,7 +6427,7 @@ var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) =
6386
6427
  }));
6387
6428
  }, "recordLogFor");
6388
6429
 
6389
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
6430
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
6390
6431
  var JOB_STATES = ["running", "done", "partial", "failed", "cancelled", "died"];
6391
6432
  var spawnDetached = /* @__PURE__ */ __name((argv, env, log) => {
6392
6433
  const out = openSync(log, "a", 384);
@@ -6436,11 +6477,11 @@ var finishJob = /* @__PURE__ */ __name((app, dir, id6, change) => {
6436
6477
  const job2 = readJob(dir, id6);
6437
6478
  if (!job2)
6438
6479
  return;
6439
- const outcome3 = stateOf(job2);
6480
+ const outcome4 = stateOf(job2);
6440
6481
  recordLogFor(recordsPath(dir, id6), app, job2.traceId ? { traceId: job2.traceId } : {})[job2.error ? "error" : "info"]({
6441
6482
  event: "job.exit",
6442
6483
  job: id6,
6443
- outcome: outcome3,
6484
+ outcome: outcome4,
6444
6485
  ...job2.error ? { errorCode: job2.error.code } : {}
6445
6486
  });
6446
6487
  }, "finishJob");
@@ -6541,7 +6582,7 @@ var startArchiveJob = /* @__PURE__ */ __name((app, env, profile, input, spawnJob
6541
6582
  return { job: id6, pid, chat: input.chat, log };
6542
6583
  }, "startArchiveJob");
6543
6584
 
6544
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/job.js
6585
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/job.js
6545
6586
  var problem = strictObject({ code: text, message: text });
6546
6587
  var job = strictObject({
6547
6588
  id,
@@ -6564,7 +6605,7 @@ var job = strictObject({
6564
6605
  error: optional(problem)
6565
6606
  });
6566
6607
 
6567
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/message.js
6608
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/message.js
6568
6609
  var quoted = strictObject({
6569
6610
  id,
6570
6611
  sender_id: nullable(id),
@@ -6683,7 +6724,7 @@ var message = strictObject({
6683
6724
  provider_metadata: providerMetadata
6684
6725
  });
6685
6726
 
6686
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/extraction-report.js
6727
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/extraction-report.js
6687
6728
  var extractionItem = strictObject({
6688
6729
  ref: reference,
6689
6730
  attachment: count,
@@ -6716,7 +6757,7 @@ var extractionReport = strictObject({
6716
6757
  cursor: optional(text)
6717
6758
  });
6718
6759
 
6719
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/message-transfer.js
6760
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/message-transfer.js
6720
6761
  var savedMessageFile = strictObject({
6721
6762
  kind: text,
6722
6763
  path: text,
@@ -6803,7 +6844,7 @@ var messageSyncAll = strictObject({
6803
6844
  var messageSyncStarted = strictObject({ job: id, pid: count, chat: text, log: text });
6804
6845
  var messageSync = union([messageSyncEstimate, messageSyncChat, messageSyncAll, messageSyncStarted]);
6805
6846
 
6806
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/store-records.js
6847
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/store-records.js
6807
6848
  var range = strictObject({ from: number(), to: number() });
6808
6849
  var storeChatStatus = strictObject({
6809
6850
  chat_id: id,
@@ -6901,7 +6942,7 @@ var storeJobRetry = union([
6901
6942
  ]);
6902
6943
  var storeJobClear = strictObject({ cleared: array(id) });
6903
6944
 
6904
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/account.js
6945
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/account.js
6905
6946
  var account = strictObject({
6906
6947
  provider: text,
6907
6948
  id,
@@ -6911,7 +6952,7 @@ var account = strictObject({
6911
6952
  scope: optional(picklist(["personal", "work"]))
6912
6953
  });
6913
6954
 
6914
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/account-session.js
6955
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/account-session.js
6915
6956
  var accountSession = strictObject({
6916
6957
  current: boolean(),
6917
6958
  client: nullable(text),
@@ -6921,7 +6962,7 @@ var accountSession = strictObject({
6921
6962
  created_at: optional(nullable(time))
6922
6963
  });
6923
6964
 
6924
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/account-change.js
6965
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/account-change.js
6925
6966
  var accountChange = strictObject({ operation_id: id, account: omit(account, ["provider", "scope"]) });
6926
6967
  var endedAccountSessions = strictObject({ operation_id: id, sessions: array(accountSession) });
6927
6968
  var audience = picklist(["everyone", "contacts", "nobody"]);
@@ -6939,7 +6980,7 @@ var accountPrivacy = strictObject({
6939
6980
  });
6940
6981
  var accountPrivacyChange = strictObject({ operation_id: id, privacy: accountPrivacy });
6941
6982
 
6942
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/account-profile.js
6983
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/account-profile.js
6943
6984
  var accountProfile = strictObject({
6944
6985
  profile: id,
6945
6986
  current: boolean(),
@@ -6951,7 +6992,7 @@ var accountProfile = strictObject({
6951
6992
  bot: optional(literal(true))
6952
6993
  });
6953
6994
 
6954
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/counter-reading.js
6995
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/counter-reading.js
6955
6996
  var milliseconds = pipe(number(), minValue(0));
6956
6997
  var counterReading = strictObject({
6957
6998
  counter: picklist(["views", "reactions", "comments"]),
@@ -6963,7 +7004,7 @@ var counterReading = strictObject({
6963
7004
  });
6964
7005
  var selection = record(string(), unknown());
6965
7006
 
6966
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/admin-report.js
7007
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/admin-report.js
6967
7008
  var adminRow = strictObject({
6968
7009
  ref: reference,
6969
7010
  /** What `stats * evidence` takes: a person id, a stay or a message locator. */
@@ -7016,11 +7057,11 @@ var adminReport = strictObject({
7016
7057
  rows: array(adminRow)
7017
7058
  });
7018
7059
 
7019
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/analysis-consent.js
7060
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/analysis-consent.js
7020
7061
  var analysisConsent = strictObject({ chat: id, provider: text, at: time });
7021
7062
  var analysisConsentRevocation = strictObject({ revoked: boolean() });
7022
7063
 
7023
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/attachment-results.js
7064
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/attachment-results.js
7024
7065
  var fingerprint = pipe(text, regex(/^[a-f0-9]{64}$/));
7025
7066
  var attachmentBytes = strictObject({
7026
7067
  ref: reference,
@@ -7048,7 +7089,7 @@ var attachmentTextChange = strictObject({
7048
7089
  replaced: nullable(picklist(["extracted", "agent"]))
7049
7090
  });
7050
7091
 
7051
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/chart.js
7092
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/chart.js
7052
7093
  var chart = strictObject({
7053
7094
  version: literal(1),
7054
7095
  kind: picklist(["bar", "line", "grouped-bar"]),
@@ -7063,7 +7104,7 @@ var chart = strictObject({
7063
7104
  file: optional(strictObject({ path: text, format: picklist(["svg", "png"]), width: count, height: count }))
7064
7105
  });
7065
7106
 
7066
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/folder.js
7107
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/folder.js
7067
7108
  var named = strictObject({
7068
7109
  id,
7069
7110
  title: nullable(text),
@@ -7086,7 +7127,7 @@ var folder = strictObject({
7086
7127
  excluded_chats: optional(array(named))
7087
7128
  });
7088
7129
 
7089
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/invite-link.js
7130
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/invite-link.js
7090
7131
  var inviteLink = strictObject({
7091
7132
  link: text,
7092
7133
  /** Who joins by it asks first, and an admin lets them in. */
@@ -7102,7 +7143,7 @@ var inviteLink = strictObject({
7102
7143
  joined_count: optional(count)
7103
7144
  });
7104
7145
 
7105
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/chat-admin.js
7146
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/chat-admin.js
7106
7147
  var operated = { operation_id: id, chat_id: id };
7107
7148
  var group = strictObject({
7108
7149
  ...omit(chat, ["ref", "provider", "account", "invite_link", "members"]).entries,
@@ -7182,7 +7223,7 @@ var chatFolderOrder = strictObject({
7182
7223
  folders: array(strictObject({ id, title: text }))
7183
7224
  });
7184
7225
 
7185
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/chat-change.js
7226
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/chat-change.js
7186
7227
  var operated2 = { operation_id: id, chat_id: id };
7187
7228
  var chatRemoval = strictObject(operated2);
7188
7229
  var chatMuting = strictObject({
@@ -7193,7 +7234,7 @@ var chatArchive = strictObject({ ...operated2, archived: boolean() });
7193
7234
  var chatPin = strictObject({ ...operated2, pinned: boolean() });
7194
7235
  var chatUnread = strictObject({ ...operated2, unread: literal(true) });
7195
7236
 
7196
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/chat-event.js
7237
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/chat-event.js
7197
7238
  var who = strictObject({ id: nullable(id), name: nullable(text), username: optional(nullable(text)) });
7198
7239
  var chatEvent = strictObject({
7199
7240
  chat_id: id,
@@ -7210,7 +7251,7 @@ var chatEvent = strictObject({
7210
7251
  before: optional(strictObject({ name: nullable(text), username: nullable(text) }))
7211
7252
  });
7212
7253
 
7213
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/chat-metadata.js
7254
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/chat-metadata.js
7214
7255
  var chatMetadata = strictObject({
7215
7256
  chat_id: id,
7216
7257
  title: nullable(text),
@@ -7225,7 +7266,7 @@ var chatMetadataRefresh = strictObject({
7225
7266
  has_more: boolean()
7226
7267
  });
7227
7268
 
7228
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/chat-moderation.js
7269
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/chat-moderation.js
7229
7270
  var action = picklist(["report", "delete", "remove"]);
7230
7271
  var level = picklist(["deny", "readonly", "ask", "allow"]);
7231
7272
  var chatRules = strictObject({
@@ -7262,7 +7303,7 @@ var chatModeration = strictObject({
7262
7303
  }))
7263
7304
  });
7264
7305
 
7265
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/chat-stats.js
7306
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/chat-stats.js
7266
7307
  var optionalCount = optional(count);
7267
7308
  var minutes = nullable(number());
7268
7309
  var chatStats = strictObject({
@@ -7336,7 +7377,7 @@ var taskStats = strictObject({
7336
7377
  }))
7337
7378
  });
7338
7379
 
7339
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/chat-tracking.js
7380
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/chat-tracking.js
7340
7381
  var memberCount = strictObject({
7341
7382
  day: pipe(text, isoDate()),
7342
7383
  participants: nullable(count),
@@ -7359,7 +7400,7 @@ var chatTracking = strictObject({
7359
7400
  tracked: boolean()
7360
7401
  });
7361
7402
 
7362
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/contact-read.js
7403
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/contact-read.js
7363
7404
  var contactLookup = strictObject({ id, name: nullable(text), username: nullable(text) });
7364
7405
  var contactSync = strictObject({ added: count, changed: count, known: count });
7365
7406
  var profileFields = {
@@ -7397,7 +7438,7 @@ var profileFields = {
7397
7438
  }))
7398
7439
  };
7399
7440
 
7400
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/contact.js
7441
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/contact.js
7401
7442
  var contact = strictObject({
7402
7443
  ref: reference,
7403
7444
  id,
@@ -7428,7 +7469,7 @@ var contact = strictObject({
7428
7469
  notes: optional(array(strictObject({ id, text, revision: count, created_at: time, updated_at: time })))
7429
7470
  });
7430
7471
 
7431
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/contact-activity.js
7472
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/contact-activity.js
7432
7473
  var linkedIdentity = strictObject({
7433
7474
  provider: text,
7434
7475
  id,
@@ -7469,7 +7510,7 @@ var contactCheck = strictObject({
7469
7510
  checked_at: time
7470
7511
  });
7471
7512
 
7472
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/contact-context.js
7513
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/contact-context.js
7473
7514
  var contextPerson = strictObject({ ...linkedPerson.entries, provider: text, id });
7474
7515
  var contextMessage = strictObject({
7475
7516
  locator: reference,
@@ -7667,7 +7708,7 @@ var contactPreparation = strictObject({
7667
7708
  })
7668
7709
  });
7669
7710
 
7670
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/contact-note.js
7711
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/contact-note.js
7671
7712
  var contactNote = strictObject({
7672
7713
  id,
7673
7714
  /** The contact, as a `contact:` reference. */
@@ -7679,13 +7720,13 @@ var contactNote = strictObject({
7679
7720
  updated_at: time
7680
7721
  });
7681
7722
 
7682
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/contact-write.js
7723
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/contact-write.js
7683
7724
  var addressBookPerson = strictObject({ id, name: nullable(text), username: nullable(text) });
7684
7725
  var contactUpdate = strictObject({ operation_id: id, person: addressBookPerson });
7685
7726
  var contactStateChange = strictObject({ operation_id: id, person_id: id });
7686
7727
  var contactImport = strictObject({ operation_id: id, sent: count, recognised: array(addressBookPerson) });
7687
7728
 
7688
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/conversation-results.js
7729
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/conversation-results.js
7689
7730
  var conversationDetails = union([
7690
7731
  strictObject({ ...conversation.entries, messages: array(message) }),
7691
7732
  message
@@ -7775,7 +7816,7 @@ var conversationHit = strictObject({
7775
7816
  stale: boolean()
7776
7817
  });
7777
7818
 
7778
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/counters.js
7819
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/counters.js
7779
7820
  var counters = strictObject({
7780
7821
  cutoff: time,
7781
7822
  max_age_ms: milliseconds,
@@ -7805,7 +7846,94 @@ var counterRefresh = strictObject({
7805
7846
  complete: optional(boolean())
7806
7847
  });
7807
7848
 
7808
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/document.js
7849
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/deal.js
7850
+ var nullableText = nullable(text);
7851
+ var party = strictObject({ ref: reference, name: nullableText, owner: boolean() });
7852
+ var outcome = picklist(["open", "won", "lost"]);
7853
+ var crmAccount = nullable(strictObject({ provider: text, account: text }));
7854
+ var day = nullable(pipe(string(), regex(/^\d{4}-\d{2}-\d{2}$/)));
7855
+ var deal = strictObject({
7856
+ id,
7857
+ ref: reference,
7858
+ kind: picklist(["deal", "lead"]),
7859
+ title: text,
7860
+ /** One line with the stage, amount and status. */
7861
+ summary: text,
7862
+ pipeline: reference,
7863
+ pipeline_name: text,
7864
+ stage: text,
7865
+ status: outcome,
7866
+ organization: nullable(party),
7867
+ currency: nullableText,
7868
+ amount: nullableText,
7869
+ close_date: day,
7870
+ closed_date: day,
7871
+ closed_reason: nullableText,
7872
+ rank: nullable(number()),
7873
+ /** A lead's deal, once it became one. */
7874
+ deal: nullable(reference),
7875
+ /** The CRM account it is a copy from; `null` for the owner's own. */
7876
+ account: crmAccount,
7877
+ external_id: nullableText,
7878
+ /** A CRM copy's assignee, the identity `<account>/user/<id>`. */
7879
+ assignee: nullableText,
7880
+ /** A CRM copy's own fields by code; a list field's value is its option's label, `option_id` its id. */
7881
+ provider_metadata: record(string(), strictObject({
7882
+ label: nullable(string()),
7883
+ value: unknown(),
7884
+ option_id: optional(union([string(), array(string())]))
7885
+ })),
7886
+ people: array(strictObject({ ...party.entries, role: picklist(["owner", "contact", "decision-maker"]) })),
7887
+ author: strictObject({
7888
+ type: picklist(["person", "bot"]),
7889
+ id,
7890
+ name: nullableText,
7891
+ kind: nullable(picklist(["agent", "rule"]))
7892
+ }),
7893
+ model: nullableText,
7894
+ source: text,
7895
+ reason: nullableText,
7896
+ evidence: array(reference),
7897
+ project: nullable(reference),
7898
+ project_name: nullableText,
7899
+ created_at: time,
7900
+ updated_at: time,
7901
+ untrusted
7902
+ });
7903
+ var lead = deal;
7904
+ var pipelineStage = strictObject({
7905
+ name: text,
7906
+ position: count,
7907
+ outcome,
7908
+ external_id: nullableText,
7909
+ /** Open deals or leads in it now. */
7910
+ open: count,
7911
+ /** With a funnel: rows that got this far, and the share of them that reached the next stage. */
7912
+ reached: optional(count),
7913
+ conversion: optional(nullable(number()))
7914
+ });
7915
+ var pipeline = strictObject({
7916
+ id,
7917
+ ref: reference,
7918
+ name: text,
7919
+ kind: picklist(["deal", "lead"]),
7920
+ account: crmAccount,
7921
+ external_id: nullableText,
7922
+ stages: array(pipelineStage),
7923
+ created_at: time,
7924
+ totals: optional(strictObject({ items: count, open: count, won: count, lost: count, win_rate: nullable(number()) })),
7925
+ since: optional(day),
7926
+ untrusted
7927
+ });
7928
+ var stage = strictObject({
7929
+ ...pipelineStage.entries,
7930
+ pipeline: reference,
7931
+ pipeline_name: text,
7932
+ kind: picklist(["deal", "lead"]),
7933
+ untrusted
7934
+ });
7935
+
7936
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/document.js
7809
7937
  var document = strictObject({
7810
7938
  ref: reference,
7811
7939
  id,
@@ -7820,7 +7948,7 @@ var document = strictObject({
7820
7948
  owners: optional(array(text))
7821
7949
  });
7822
7950
 
7823
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/document-link.js
7951
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/document-link.js
7824
7952
  var documentLink = strictObject({
7825
7953
  ref: reference,
7826
7954
  url: text,
@@ -7831,7 +7959,7 @@ var documentLink = strictObject({
7831
7959
  sender: strictObject({ id: nullable(id), name: nullable(text) })
7832
7960
  });
7833
7961
 
7834
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/evidence.js
7962
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/evidence.js
7835
7963
  var evidenceMessage = pick(message, ["ref", "chat_title", "timestamp", "sender_name", "text"]);
7836
7964
  var contribution = strictObject({
7837
7965
  message: evidenceMessage,
@@ -7861,7 +7989,7 @@ var retentionStay = strictObject({
7861
7989
  });
7862
7990
  var evidence = union([contribution, retentionStay]);
7863
7991
 
7864
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/fact.js
7992
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/fact.js
7865
7993
  var fact = strictObject({
7866
7994
  ref: reference,
7867
7995
  id,
@@ -7891,9 +8019,9 @@ var fact = strictObject({
7891
8019
  updated_at: time
7892
8020
  });
7893
8021
 
7894
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/hit.js
8022
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/hit.js
7895
8023
  var hit = strictObject({
7896
- kind: picklist(["message", "mail", "note", "document", "event", "meeting"]),
8024
+ kind: picklist(["message", "mail", "note", "document", "event", "meeting", "deal", "lead"]),
7897
8025
  ref: reference,
7898
8026
  provider: text,
7899
8027
  url: optional(text),
@@ -7929,7 +8057,7 @@ var hit = strictObject({
7929
8057
  untrusted
7930
8058
  });
7931
8059
 
7932
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/identity.js
8060
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/identity.js
7933
8061
  var identity = strictObject({
7934
8062
  ref: reference,
7935
8063
  provider: text,
@@ -7942,7 +8070,7 @@ var identity = strictObject({
7942
8070
  person: optional(nullable(reference))
7943
8071
  });
7944
8072
 
7945
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/image-embedding.js
8073
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/image-embedding.js
7946
8074
  var imageEmbedding = strictObject({
7947
8075
  model: text,
7948
8076
  embedded: count,
@@ -7951,7 +8079,7 @@ var imageEmbedding = strictObject({
7951
8079
  more: boolean()
7952
8080
  });
7953
8081
 
7954
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/join-request.js
8082
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/join-request.js
7955
8083
  var joinRequest = strictObject({
7956
8084
  person_id: id,
7957
8085
  name: nullable(text),
@@ -7962,7 +8090,7 @@ var joinRequest = strictObject({
7962
8090
  about: optional(text)
7963
8091
  });
7964
8092
 
7965
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/poll-vote.js
8093
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/poll-vote.js
7966
8094
  var pollVote = strictObject({
7967
8095
  person_id: id,
7968
8096
  name: nullable(text),
@@ -7972,7 +8100,7 @@ var pollVote = strictObject({
7972
8100
  voted_at: time
7973
8101
  });
7974
8102
 
7975
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/listener.js
8103
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/listener.js
7976
8104
  var reactions = unwrap(unwrap(message.entries.reactions));
7977
8105
  var observation = strictObject({
7978
8106
  value: pipe(number(), minValue(0)),
@@ -8014,7 +8142,7 @@ var serveSummary = strictObject({
8014
8142
  tasks: optional(strictObject({ added: count, closed: count, review: count }))
8015
8143
  });
8016
8144
 
8017
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/mail-counts.js
8145
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/mail-counts.js
8018
8146
  var mailCounts = strictObject({
8019
8147
  by: picklist(["day", "week", "sender"]),
8020
8148
  received: count,
@@ -8029,7 +8157,7 @@ var mailCounts = strictObject({
8029
8157
  }))
8030
8158
  });
8031
8159
 
8032
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/mail-findings.js
8160
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/mail-findings.js
8033
8161
  var evidence2 = strictObject({ reference, fingerprint: text });
8034
8162
  var base = { id, evidence: array(evidence2) };
8035
8163
  var finding = variant("kind", [
@@ -8044,7 +8172,11 @@ var finding = variant("kind", [
8044
8172
  due_at: optional(time),
8045
8173
  due_evidence: optional(array(reference)),
8046
8174
  assignee: optional(reference),
8047
- assignee_evidence: optional(array(reference))
8175
+ assignee_evidence: optional(array(reference)),
8176
+ /** `<service>:<id>` in the outside service the mail came from, such as `avito:4512345678`. */
8177
+ external_id: optional(text),
8178
+ /** The http or https page the task is about, such as the conversation the mail links to. */
8179
+ source_url: optional(text)
8048
8180
  }),
8049
8181
  strictObject({
8050
8182
  ...base,
@@ -8052,7 +8184,9 @@ var finding = variant("kind", [
8052
8184
  project: optional(reference),
8053
8185
  subject: optional(reference),
8054
8186
  type: picklist(FACT_TYPES),
8055
- statement: text
8187
+ statement: text,
8188
+ /** Every new finding gives one; a batch staged before reason was needed on every kind has none. */
8189
+ reason: optional(text)
8056
8190
  }),
8057
8191
  strictObject({
8058
8192
  ...base,
@@ -8070,12 +8204,84 @@ var finding = variant("kind", [
8070
8204
  scope: picklist(MEMORY_SCOPES),
8071
8205
  body: text,
8072
8206
  subject: optional(reference),
8073
- project: optional(reference)
8207
+ project: optional(reference),
8208
+ reason: optional(text)
8074
8209
  }),
8075
8210
  strictObject({ ...base, kind: literal("link"), from: reference, to: reference, reason: text }),
8076
- strictObject({ ...base, kind: literal("new_contact"), address: text, name: text, reason: optional(text) })
8211
+ strictObject({ ...base, kind: literal("new_contact"), address: text, name: text, reason: optional(text) }),
8212
+ strictObject({
8213
+ ...base,
8214
+ kind: literal("invoice"),
8215
+ direction: picklist(INVOICE_DIRECTIONS),
8216
+ counterparty: optional(reference),
8217
+ /** A counterparty the store may not hold yet; the owner's accept finds its organization or makes one. */
8218
+ counterparty_name: optional(text),
8219
+ counterparty_email: optional(text),
8220
+ currency: text,
8221
+ lines: array(strictObject({
8222
+ description: text,
8223
+ quantity: optional(text),
8224
+ unit_price: optional(text),
8225
+ amount: optional(text)
8226
+ })),
8227
+ total: optional(text),
8228
+ number: optional(text),
8229
+ issue_date: optional(text),
8230
+ due_date: optional(text),
8231
+ project: optional(reference),
8232
+ reason: text
8233
+ }),
8234
+ strictObject({
8235
+ ...base,
8236
+ kind: literal("payment"),
8237
+ direction: picklist(MONEY_DIRECTIONS),
8238
+ payer: optional(reference),
8239
+ payer_name: optional(text),
8240
+ payer_email: optional(text),
8241
+ payee: optional(reference),
8242
+ payee_name: optional(text),
8243
+ payee_email: optional(text),
8244
+ amount: text,
8245
+ currency: text,
8246
+ date: text,
8247
+ reference: optional(text),
8248
+ allocations: optional(array(strictObject({ invoice: reference, amount: text }))),
8249
+ project: optional(reference),
8250
+ reason: text
8251
+ }),
8252
+ strictObject({
8253
+ ...base,
8254
+ kind: literal("order"),
8255
+ purpose: picklist(ORDER_PURPOSES),
8256
+ customer: optional(reference),
8257
+ customer_name: optional(text),
8258
+ customer_email: optional(text),
8259
+ supplier: optional(reference),
8260
+ supplier_name: text,
8261
+ number: optional(text),
8262
+ total: optional(text),
8263
+ currency: optional(text),
8264
+ status: optional(picklist(ORDER_STATUSES)),
8265
+ order_date: optional(text),
8266
+ fulfilled_date: optional(text),
8267
+ invoice: optional(reference),
8268
+ payment: optional(reference),
8269
+ project: optional(reference),
8270
+ /** The order's page at the shop, http or https. */
8271
+ source_url: optional(text),
8272
+ reason: text
8273
+ }),
8274
+ strictObject({
8275
+ ...base,
8276
+ kind: literal("order_update"),
8277
+ supplier_name: text,
8278
+ number: text,
8279
+ status: picklist(ORDER_STATUSES),
8280
+ date: optional(text),
8281
+ reason: text
8282
+ })
8077
8283
  ]);
8078
- var outcome = strictObject({
8284
+ var outcome2 = strictObject({
8079
8285
  id,
8080
8286
  fingerprint: text,
8081
8287
  status: picklist(["accepted", "rejected"]),
@@ -8091,11 +8297,11 @@ var mailFindings = strictObject({
8091
8297
  author,
8092
8298
  decided_by: nullable(strictObject({ type: picklist(["person", "bot"]), id })),
8093
8299
  decided_at: nullable(time),
8094
- previous: array(outcome),
8095
- receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome) }))
8300
+ previous: array(outcome2),
8301
+ receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome2) }))
8096
8302
  });
8097
8303
 
8098
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/media-archive.js
8304
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/media-archive.js
8099
8305
  var mediaArchive = strictObject({
8100
8306
  directory: text,
8101
8307
  chats: count,
@@ -8127,7 +8333,7 @@ var mediaArchiveTimer = union([
8127
8333
  strictObject({ ...timer, action: picklist(["install", "start", "stop", "uninstall"]) })
8128
8334
  ]);
8129
8335
 
8130
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation-parts.js
8336
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation-parts.js
8131
8337
  var preparationId = pipe(string(), minLength(1));
8132
8338
  var preparationCount = pipe(number(), integer(), minValue(0));
8133
8339
  var preparationTime = nullable(isoTime);
@@ -8219,7 +8425,7 @@ var preparationMeeting = strictObject({
8219
8425
  updated_at: isoTime
8220
8426
  });
8221
8427
 
8222
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/meeting-evidence.js
8428
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/meeting-evidence.js
8223
8429
  var meetingEvidence = preparationEvidence;
8224
8430
  var meetingPersonContext = strictObject({
8225
8431
  person: strictObject({ uid: string(), name: nullable(string()) }),
@@ -8241,7 +8447,7 @@ var meetingPersonContext = strictObject({
8241
8447
  })
8242
8448
  });
8243
8449
 
8244
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/meeting-findings.js
8450
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/meeting-findings.js
8245
8451
  var evidence3 = strictObject({ reference, fingerprint: text });
8246
8452
  var base2 = { id, project: reference, evidence: array(evidence3) };
8247
8453
  var finding2 = variant("kind", [
@@ -8259,7 +8465,7 @@ var finding2 = variant("kind", [
8259
8465
  assignee_evidence: optional(array(reference))
8260
8466
  })
8261
8467
  ]);
8262
- var outcome2 = strictObject({
8468
+ var outcome3 = strictObject({
8263
8469
  id,
8264
8470
  fingerprint: text,
8265
8471
  status: picklist(["accepted", "rejected"]),
@@ -8275,11 +8481,11 @@ var meetingFindings = strictObject({
8275
8481
  author,
8276
8482
  decided_by: nullable(strictObject({ type: picklist(["person", "bot"]), id })),
8277
8483
  decided_at: nullable(time),
8278
- previous: array(outcome2),
8279
- receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome2) }))
8484
+ previous: array(outcome3),
8485
+ receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome3) }))
8280
8486
  });
8281
8487
 
8282
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/meeting-communications.js
8488
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/meeting-communications.js
8283
8489
  var communicationCoverage = strictObject({
8284
8490
  read_usage: strictObject({ reads: preparationCount, charged_bytes: preparationCount, reserved_bytes: preparationCount, remaining_bytes: preparationCount }),
8285
8491
  query: string(),
@@ -8324,7 +8530,7 @@ var preparationCommunications = strictObject({
8324
8530
  }))
8325
8531
  });
8326
8532
 
8327
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation.js
8533
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation.js
8328
8534
  var meetingPreparation = strictObject({
8329
8535
  communications: optional(preparationCommunications),
8330
8536
  schema_version: literal(1),
@@ -8437,7 +8643,7 @@ var meetingPreparation = strictObject({
8437
8643
  })
8438
8644
  });
8439
8645
 
8440
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/meeting-project-candidates.js
8646
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/meeting-project-candidates.js
8441
8647
  var count4 = pipe(number(), integer(), minValue(0));
8442
8648
  var id3 = pipe(string(), minLength(1));
8443
8649
  var text3 = string();
@@ -8501,7 +8707,7 @@ var meetingProjectCandidates = strictObject({
8501
8707
  })
8502
8708
  });
8503
8709
 
8504
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/meeting-series-inventory.js
8710
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/meeting-series-inventory.js
8505
8711
  var count5 = pipe(number(), integer(), minValue(0));
8506
8712
  var id4 = pipe(string(), minLength(1), maxLength(1e3));
8507
8713
  var meetingSeriesInventory = strictObject({
@@ -8531,7 +8737,7 @@ var meetingSeriesInventory = strictObject({
8531
8737
  })
8532
8738
  });
8533
8739
 
8534
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/meeting-task-proposal.js
8740
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/meeting-task-proposal.js
8535
8741
  var text4 = string();
8536
8742
  var id5 = pipe(number(), integer(), minValue(1));
8537
8743
  var revision = picklist(["current", "superseded"]);
@@ -8548,7 +8754,7 @@ var meetingTaskProposal = strictObject({
8548
8754
  persistence: literal("proposal-only")
8549
8755
  });
8550
8756
 
8551
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/memory.js
8757
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/memory.js
8552
8758
  var memory = strictObject({
8553
8759
  ref: reference,
8554
8760
  id,
@@ -8575,7 +8781,7 @@ var memory = strictObject({
8575
8781
  updated_at: time
8576
8782
  });
8577
8783
 
8578
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/mention.js
8784
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/mention.js
8579
8785
  var kind = picklist(["phone", "email", "url", "document", "person-name", "place"]);
8580
8786
  var status = picklist(["found", "linked", "dismissed"]);
8581
8787
  var mention = strictObject({
@@ -8618,13 +8824,13 @@ var mentionRebuild = strictObject({
8618
8824
  mentions: count
8619
8825
  });
8620
8826
 
8621
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/message-change.js
8827
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/message-change.js
8622
8828
  var operated3 = { operation_id: id, chat_id: id };
8623
8829
  var messagePin = strictObject({ ...operated3, message_id: id, pinned: boolean() });
8624
8830
  var messageStar = strictObject({ ...operated3, message_id: id, starred: boolean() });
8625
8831
  var messageDeletion = strictObject({ ...operated3, deleted: array(id), for_everyone: boolean() });
8626
8832
 
8627
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/message-read.js
8833
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/message-read.js
8628
8834
  var messageTranscript = strictObject({
8629
8835
  message_id: id,
8630
8836
  text,
@@ -8682,7 +8888,7 @@ var evidencePacket = strictObject({
8682
8888
  }))
8683
8889
  });
8684
8890
 
8685
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/message-context.js
8891
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/message-context.js
8686
8892
  var messageThread = strictObject({
8687
8893
  ref: reference,
8688
8894
  chat: id,
@@ -8699,7 +8905,7 @@ var messageThread = strictObject({
8699
8905
  });
8700
8906
  var messageContext = union([message, messageThread]);
8701
8907
 
8702
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/message-counts.js
8908
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/message-counts.js
8703
8909
  var messageCounts = strictObject({
8704
8910
  by: picklist(["chat", "sender", "day", "hour"]),
8705
8911
  total: count,
@@ -8712,7 +8918,7 @@ var messageCounts = strictObject({
8712
8918
  }))
8713
8919
  });
8714
8920
 
8715
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/message-link.js
8921
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/message-link.js
8716
8922
  var messageLink = strictObject({
8717
8923
  ref: reference,
8718
8924
  url: nullable(text),
@@ -8729,7 +8935,7 @@ var messageLink = strictObject({
8729
8935
  })))
8730
8936
  });
8731
8937
 
8732
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/message-write.js
8938
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/message-write.js
8733
8939
  var messageWrite = strictObject({
8734
8940
  operation_id: id,
8735
8941
  message,
@@ -8744,7 +8950,7 @@ var draftWrite = strictObject({
8744
8950
  });
8745
8951
  var messageSend = union([messageWrite, draftWrite]);
8746
8952
 
8747
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/model.js
8953
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/model.js
8748
8954
  var model2 = strictObject({
8749
8955
  id,
8750
8956
  kind: picklist(["audio", "text", "image", "reranker"]),
@@ -8761,7 +8967,7 @@ var model2 = strictObject({
8761
8967
  path: text
8762
8968
  });
8763
8969
 
8764
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/model-key.js
8970
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/model-key.js
8765
8971
  var source = picklist(["environment", "keyring", "file"]);
8766
8972
  var modelKey = strictObject({
8767
8973
  provider: text,
@@ -8771,7 +8977,7 @@ var modelKey = strictObject({
8771
8977
  var storedModelKey = strictObject({ ...omit(modelKey, ["removed"]).entries, stored: source });
8772
8978
  var removedModelKey = strictObject({ ...omit(modelKey, ["stored"]).entries, removed: array(source) });
8773
8979
 
8774
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/official-stats.js
8980
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/official-stats.js
8775
8981
  var versus = strictObject({ current: number(), previous: number() });
8776
8982
  var person = { person_ref: reference, name: nullable(text) };
8777
8983
  var graph = strictObject({
@@ -8805,14 +9011,14 @@ var officialStats = strictObject({
8805
9011
  graphs: record(string(), union([graph, strictObject({ error: text })]))
8806
9012
  });
8807
9013
 
8808
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/person.js
9014
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/person.js
8809
9015
  var person2 = strictObject({
8810
9016
  ref: reference,
8811
9017
  name: nullable(text),
8812
9018
  identities: optional(array(identity))
8813
9019
  });
8814
9020
 
8815
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/poll.js
9021
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/poll.js
8816
9022
  var poll = strictObject({
8817
9023
  chat_id: id,
8818
9024
  message_id: id,
@@ -8828,11 +9034,11 @@ var poll = strictObject({
8828
9034
  });
8829
9035
  var pollChange = strictObject({ operation_id: id, poll });
8830
9036
 
8831
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/private-contact.js
9037
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/private-contact.js
8832
9038
  var contactAlias = strictObject({ person_id: id, alias: nullable(text) });
8833
9039
  var contactNoteRemoval = strictObject({ id, person_id: id, removed: boolean() });
8834
9040
 
8835
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/ranking.js
9041
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/ranking.js
8836
9042
  var figures = record(string(), number());
8837
9043
  var freshness = picklist(["fresh", "stale", "partial", "unknown"]);
8838
9044
  var rankingRow = strictObject({
@@ -8879,7 +9085,7 @@ var ranking = strictObject({
8879
9085
  rows: array(rankingRow)
8880
9086
  });
8881
9087
 
8882
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/reaction.js
9088
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/reaction.js
8883
9089
  var reaction = strictObject({
8884
9090
  person: strictObject({ id, name: nullable(text), username: nullable(text) }),
8885
9091
  /** The emoji, or `custom:<id>` for a custom one. */
@@ -8887,7 +9093,7 @@ var reaction = strictObject({
8887
9093
  reacted_at: time
8888
9094
  });
8889
9095
 
8890
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/reaction-change.js
9096
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/reaction-change.js
8891
9097
  var reactionChange = strictObject({
8892
9098
  operation_id: id,
8893
9099
  chat_id: id,
@@ -8895,7 +9101,7 @@ var reactionChange = strictObject({
8895
9101
  reaction: nullable(text)
8896
9102
  });
8897
9103
 
8898
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/recipient.js
9104
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/recipient.js
8899
9105
  var recipient = strictObject({ id, title: nullable(text), partner_id: optional(id), added_at: time });
8900
9106
  var recipientAdded = strictObject({ id, title: nullable(text), added: boolean() });
8901
9107
  var recipientRemoved = strictObject({ id, title: nullable(text), removed: boolean() });
@@ -8906,7 +9112,7 @@ var recipientChange = strictObject({
8906
9112
  ...partial(recipientOff).entries
8907
9113
  });
8908
9114
 
8909
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/recorded-run.js
9115
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/recorded-run.js
8910
9116
  var events = array(record(string(), unknown()));
8911
9117
  var recordedRun = strictObject({
8912
9118
  run_id: id,
@@ -8978,7 +9184,7 @@ var runHit = strictObject({
8978
9184
  });
8979
9185
  var runLocation = strictObject({ path: text });
8980
9186
 
8981
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/relationship.js
9187
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/relationship.js
8982
9188
  var relationship = strictObject({
8983
9189
  id,
8984
9190
  from: reference,
@@ -8995,7 +9201,7 @@ var relationship = strictObject({
8995
9201
  created_at: time
8996
9202
  });
8997
9203
 
8998
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/reply-stats.js
9204
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/reply-stats.js
8999
9205
  var milliseconds2 = nullable(pipe(number(), minValue(0)));
9000
9206
  var figures2 = { replies: count, median_ms: milliseconds2, p90_ms: milliseconds2, mean_ms: milliseconds2 };
9001
9207
  var responseTimes = strictObject({
@@ -9012,7 +9218,7 @@ var waitingChats = strictObject({
9012
9218
  by_kind: strictObject({ private: count, group: count })
9013
9219
  });
9014
9220
 
9015
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/retention.js
9221
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/retention.js
9016
9222
  var retentionCohort = strictObject({
9017
9223
  /** The first day of the joining day or week. */
9018
9224
  cohort: text,
@@ -9060,7 +9266,7 @@ var retention = strictObject({
9060
9266
  rows: array(retentionCohort)
9061
9267
  });
9062
9268
 
9063
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/saved-search.js
9269
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/saved-search.js
9064
9270
  var savedSearch = strictObject({
9065
9271
  id,
9066
9272
  /** `null` for a run in the history. */
@@ -9077,7 +9283,7 @@ var savedSearch = strictObject({
9077
9283
  });
9078
9284
  var searchHistoryClear = strictObject({ cleared: count });
9079
9285
 
9080
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/send-attempt.js
9286
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/send-attempt.js
9081
9287
  var sendAttempt = strictObject({
9082
9288
  at: time,
9083
9289
  profile: text,
@@ -9105,7 +9311,7 @@ var sendAttempt = strictObject({
9105
9311
  error_code: optional(text)
9106
9312
  });
9107
9313
 
9108
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/store-maintenance.js
9314
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/store-maintenance.js
9109
9315
  var absent = strictObject({ path: text, exists: literal(false) });
9110
9316
  var schema = strictObject({ version: count, min_compatible: count, writable: boolean(), speaks: count });
9111
9317
  var infoSchema = strictObject({
@@ -9260,12 +9466,25 @@ var storeBackup = strictObject({
9260
9466
  encrypted: optional(literal(true))
9261
9467
  });
9262
9468
  var storeDecrypt = strictObject({ path: text, from: text, bytes: count });
9263
- var storeRestore = strictObject({
9264
- path: text,
9265
- restored_from: text,
9266
- kept_at: nullable(text),
9267
- schema: count
9268
- });
9469
+ var storeRestore = union([
9470
+ strictObject({
9471
+ path: text,
9472
+ restored_from: text,
9473
+ kept_at: nullable(text),
9474
+ schema: count
9475
+ }),
9476
+ /** From a rollback copy: its tables put back in place, the store returned to `schema` from `was`. */
9477
+ strictObject({
9478
+ path: text,
9479
+ restored_from: text,
9480
+ rolled_back: literal(true),
9481
+ schema: count,
9482
+ was: count,
9483
+ tables: array(strictObject({ table: text, rows: count })),
9484
+ rebuilt: array(text),
9485
+ foreign_key_violations: count
9486
+ })
9487
+ ]);
9269
9488
  var storeReset = union([
9270
9489
  strictObject({ ...absent.entries, reset: literal(false) }),
9271
9490
  strictObject({
@@ -9313,7 +9532,7 @@ var storeRepair = union([
9313
9532
  ]);
9314
9533
  var storeCopyRemoval = strictObject({ path: text, deleted: strictObject({ name: text, rows: count }) });
9315
9534
 
9316
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/store-table.js
9535
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/store-table.js
9317
9536
  var TABLE_KINDS = ["data", "search_index", "search_index_part", "internal"];
9318
9537
  var storeTable = strictObject({
9319
9538
  name: text,
@@ -9322,7 +9541,7 @@ var storeTable = strictObject({
9322
9541
  bytes: optional(nullable(count))
9323
9542
  });
9324
9543
 
9325
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/tag-change.js
9544
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/tag-change.js
9326
9545
  var tagTarget = variant("type", [
9327
9546
  strictObject({ type: literal("chat"), chat_id: id }),
9328
9547
  strictObject({ type: literal("contact"), person_id: id }),
@@ -9353,7 +9572,7 @@ var automaticTags = strictObject({
9353
9572
  dry_run: boolean()
9354
9573
  });
9355
9574
 
9356
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/task-pair.js
9575
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/task-pair.js
9357
9576
  var side = strictObject({ ref: reference, key: text, title: text, status: text });
9358
9577
  var taskPair = strictObject({
9359
9578
  task: nullable(side),
@@ -9376,7 +9595,7 @@ var taskPair = strictObject({
9376
9595
  created_at: time
9377
9596
  });
9378
9597
 
9379
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/task-results.js
9598
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/task-results.js
9380
9599
  var nullableTime = nullable(time);
9381
9600
  var link = strictObject({
9382
9601
  id,
@@ -9411,6 +9630,10 @@ var taskCard = strictObject({
9411
9630
  revision: number(),
9412
9631
  parent: nullable(reference),
9413
9632
  source: nullable(text),
9633
+ /** `<service>:<id>`, its id in an outside service, such as `avito:4512345678`. */
9634
+ external_id: nullable(text),
9635
+ /** The http or https page it is about, such as an Avito ad. */
9636
+ source_url: nullable(text),
9414
9637
  due_at: nullableTime,
9415
9638
  next_check_at: nullableTime,
9416
9639
  closed_at: nullableTime,
@@ -9546,7 +9769,7 @@ var taskReview = strictObject({
9546
9769
  untrusted
9547
9770
  });
9548
9771
 
9549
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/topic.js
9772
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/topic.js
9550
9773
  var topic = strictObject({
9551
9774
  id,
9552
9775
  title: text,
@@ -9560,9 +9783,13 @@ var topic = strictObject({
9560
9783
  untrusted
9561
9784
  });
9562
9785
 
9563
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/entities/index.js
9786
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/index.js
9564
9787
  var ENTITIES = {
9565
9788
  sync_progress: progress,
9789
+ deal,
9790
+ lead,
9791
+ pipeline,
9792
+ stage,
9566
9793
  ...MEETING_RESULT_ENTITIES,
9567
9794
  message,
9568
9795
  message_context: messageContext,
@@ -9842,7 +10069,7 @@ var entityDefinitions = /* @__PURE__ */ __name(() => Object.fromEntries(Object.e
9842
10069
  return [name, definition];
9843
10070
  })), "entityDefinitions");
9844
10071
 
9845
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/answer-entity.js
10072
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/cli/answer-entity.js
9846
10073
  var schemas = /* @__PURE__ */ new WeakMap();
9847
10074
  var answerEntity = /* @__PURE__ */ __name((command, name, schema2, options = {}) => {
9848
10075
  if (Object.hasOwn(ENTITIES, name))
@@ -9876,29 +10103,20 @@ var answerRow = /* @__PURE__ */ __name((command) => {
9876
10103
  return own && metaOf(command).output?.entity === own.name ? own.row : void 0;
9877
10104
  }, "answerRow");
9878
10105
 
9879
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/project-status-rows.js
9880
- var where = [{ field: "ref" }, { field: ["chat_title", "chat"] }];
10106
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/cli/project-status-rows.js
10107
+ var where = [{ field: "ref" }];
9881
10108
  var who2 = { field: ["who.owner", "who.name"], tag: "you" };
10109
+ var ON_CHAT_ROW = /* @__PURE__ */ new Set(["reply-next", "coverage"]);
9882
10110
  var STATUS_SIGNAL_ROWS = {
9883
- "status.last-message": { columns: [...where, { field: "at", as: "time" }, who2] },
9884
- "status.reply-next": {
9885
- columns: [
9886
- ...where,
9887
- { field: "data.next" },
9888
- { field: "data.addressed.name" },
9889
- { field: "data.waiting_since", as: "day" },
9890
- { field: "data.overdue", tag: "overdue" }
9891
- ]
9892
- },
9893
10111
  "status.questions": {
9894
- columns: [...where, { field: "at", as: "day" }, { field: "data.side" }, who2],
10112
+ columns: [...where, { field: "at", as: "day" }, who2],
9895
10113
  text: ["data.excerpt"]
9896
10114
  },
9897
10115
  "status.promises": {
9898
10116
  columns: [
9899
10117
  ...where,
9900
10118
  { field: "at", as: "day" },
9901
- { field: "data.source" },
10119
+ { field: "basis" },
9902
10120
  { field: "data.side" },
9903
10121
  { field: "data.due", as: "day" },
9904
10122
  { field: "data.status" }
@@ -9925,21 +10143,10 @@ var STATUS_SIGNAL_ROWS = {
9925
10143
  columns: [
9926
10144
  ...where,
9927
10145
  { field: "data.query" },
9928
- { field: "data.theirs_last", as: "day" },
9929
10146
  { field: "data.yours_last", as: "day" },
9930
10147
  { field: "data.silent_since", as: "day" }
9931
10148
  ]
9932
10149
  },
9933
- "status.coverage": {
9934
- columns: [
9935
- { field: "chat" },
9936
- { field: "chat_title" },
9937
- { field: "data.state" },
9938
- { field: "data.held.messages", as: "count", tag: "held" },
9939
- { field: "data.held.oldest_at", as: "day" },
9940
- { field: "sync_command" }
9941
- ]
9942
- },
9943
10150
  "status.children": {
9944
10151
  columns: [
9945
10152
  { field: "data.child" },
@@ -9956,10 +10163,14 @@ var STATUS_ROWS = {
9956
10163
  columns: [
9957
10164
  { field: "chat" },
9958
10165
  { field: "title" },
9959
- { field: "kind" },
9960
10166
  { field: "role" },
9961
- { field: "attention", as: "count", tag: "attention" },
9962
- { field: "why" }
10167
+ { field: "next", prefix: "next" },
10168
+ { field: "addressed.name" },
10169
+ { field: "waiting_since", as: "day" },
10170
+ { field: "overdue", tag: "overdue" },
10171
+ { field: "held.messages", as: "count", tag: "held" },
10172
+ { field: "unlisted.questions", as: "count", tag: "questions unlisted" },
10173
+ { field: "unlisted.promises", as: "count", tag: "promises unlisted" }
9963
10174
  ]
9964
10175
  },
9965
10176
  "status.money": {
@@ -9970,7 +10181,6 @@ var STATUS_ROWS = {
9970
10181
  { field: "rows", as: "count", tag: "rows" }
9971
10182
  ]
9972
10183
  },
9973
- "status.signal": { columns: [{ field: "id" }, { field: "version" }] },
9974
10184
  "status.out-of-scope": {
9975
10185
  columns: [
9976
10186
  { field: "chat" },
@@ -9985,7 +10195,7 @@ var STATUS_ROWS = {
9985
10195
  "status.failed": { columns: [{ field: "signal" }], text: ["why"] }
9986
10196
  };
9987
10197
 
9988
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/compact.js
10198
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/cli/compact.js
9989
10199
  var TEXT_CHARS = 400;
9990
10200
  var sender = { field: ["sender_is_me", "sender_name"], tag: "me" };
9991
10201
  var messageRow = {
@@ -10170,8 +10380,8 @@ var cellOf = /* @__PURE__ */ __name((item, column, clock) => {
10170
10380
  const parts = clock.parts(iso);
10171
10381
  if (!parts)
10172
10382
  return { text: clean(iso) };
10173
- const day = parts.date.slice(5);
10174
- return { text: column.as === "day" ? day : `${day} ${parts.time}`, date: parts.date };
10383
+ const day2 = parts.date.slice(5);
10384
+ return column.as === "day" ? { text: day2, date: parts.date } : { text: `${day2} ${parts.time}`, date: parts.date, time: parts.time };
10175
10385
  }
10176
10386
  case "count":
10177
10387
  return typeof value === "number" && value !== 0 ? { text: column.tag ? `${value} ${column.tag}` : String(value) } : void 0;
@@ -10219,6 +10429,17 @@ var sameEverywhere = /* @__PURE__ */ __name((rows2, index) => {
10219
10429
  const first2 = rows2[0]?.cells[index]?.text;
10220
10430
  return first2 !== void 0 && rows2.every(({ cells }) => cells[index]?.text === first2);
10221
10431
  }, "sameEverywhere");
10432
+ var ordered = /* @__PURE__ */ __name((dates) => dates.every((one, at2) => at2 === 0 || one >= dates[at2 - 1]) || dates.every((one, at2) => at2 === 0 || one <= dates[at2 - 1]), "ordered");
10433
+ var dayColumn = /* @__PURE__ */ __name((rows2, shape, hoisted) => {
10434
+ const index = shape.columns.findIndex((column, at2) => column.as === "time" && !hoisted[at2]);
10435
+ if (index < 0)
10436
+ return -1;
10437
+ const dates = rows2.map(({ cells }) => cells[index]?.date);
10438
+ if (dates.some((one) => one === void 0))
10439
+ return -1;
10440
+ const days = dates;
10441
+ return ordered(days) && new Set(days).size * 3 <= days.length ? index : -1;
10442
+ }, "dayColumn");
10222
10443
  var rowsOfItems = /* @__PURE__ */ __name((items, shape, clock, chars) => {
10223
10444
  const dates = [];
10224
10445
  const rows2 = items.map((item) => {
@@ -10241,18 +10462,31 @@ var rowsOfItems = /* @__PURE__ */ __name((items, shape, clock, chars) => {
10241
10462
  return [];
10242
10463
  return [`${sourceOf(item, column) ?? fieldsOfColumn(column.field)[0]}: ${rows2[0]?.cells[index]?.text}`];
10243
10464
  });
10244
- const lines = rows2.map(({ cells, text: text5, item }) => {
10245
- const parts = cells.map((cell, index) => hoisted[index] ? void 0 : cell?.text);
10465
+ const byDay = dayColumn(rows2, shape, hoisted);
10466
+ let shownDay;
10467
+ const lines = rows2.flatMap(({ cells, text: text5, item }) => {
10468
+ const parts = cells.map((cell2, index) => hoisted[index] ? void 0 : cell2?.text);
10469
+ const dayLine = [];
10470
+ const cell = cells[byDay];
10471
+ if (byDay >= 0 && cell?.date && cell.time) {
10472
+ if (cell.date !== shownDay)
10473
+ dayLine.push(`# ${cell.date}`);
10474
+ shownDay = cell.date;
10475
+ parts[byDay] = cell.time;
10476
+ }
10246
10477
  const shortened = prefix ? clean(prefix) : void 0;
10247
10478
  if (shortened && parts[0]?.startsWith(shortened))
10248
10479
  parts[0] = `#${parts[0].slice(shortened.length)}`;
10249
10480
  const shown = [...parts, text5].filter((part) => part !== void 0 && part !== "");
10250
- return guarded(shown.length ? shown.join(" \xB7 ") : item ? blockLine(item, chars) : "");
10481
+ return [...dayLine, guarded(shown.length ? shown.join(" \xB7 ") : item ? blockLine(item, chars) : "")];
10251
10482
  });
10252
- const when = span(dates);
10253
- const header = [...prefix ? [`ref: ${clean(prefix)}<id>`] : [], ...named2, ...when ? [when, clock.zone] : []];
10254
- return { header, lines };
10483
+ const header = [...prefix ? [`ref: ${clean(prefix)}<id>`] : [], ...named2];
10484
+ return { header, lines, dates };
10255
10485
  }, "rowsOfItems");
10486
+ var spanOf = /* @__PURE__ */ __name((dates, clock) => {
10487
+ const when = span(dates);
10488
+ return when ? [when, clock.zone] : [];
10489
+ }, "spanOf");
10256
10490
  var blockLine = /* @__PURE__ */ __name((fields, chars) => blockOf(fields, chars).join(" "), "blockLine");
10257
10491
  var blockOf = /* @__PURE__ */ __name((fields, chars, indent = "", whole = []) => Object.entries(fields).filter(([name]) => !(name === "priority" && "priority_label" in fields)).filter(([, value]) => present(value) || value === false).flatMap(([name, value]) => {
10258
10492
  const label = `${indent}${clean(name)}:`;
@@ -10303,25 +10537,31 @@ var compactText = /* @__PURE__ */ __name((body, shape, options, rowsOf = rowsOfE
10303
10537
  const chars = options.textChars ?? TEXT_CHARS;
10304
10538
  let lines = [];
10305
10539
  if ("items" in body) {
10306
- const { header, lines: rows2 } = rowsOfItems(body.items, shape, clock, chars);
10307
- lines = (header.length ? [`# ${header.join(" \xB7 ")}`] : []).concat(rows2.length ? rows2 : ["# nothing found"]);
10540
+ const { header, lines: rows2, dates } = rowsOfItems(body.items, shape, clock, chars);
10541
+ const head = [...header, ...spanOf(dates, clock)];
10542
+ lines = (head.length ? [`# ${head.join(" \xB7 ")}`] : []).concat(rows2.length ? rows2 : ["# nothing found"]);
10308
10543
  } else if (isFields(body.item)) {
10309
10544
  const sections = shape.sections ?? {};
10310
- const rest = Object.fromEntries(Object.entries(body.item).filter(([name]) => !Object.hasOwn(sections, name)));
10545
+ const rest = Object.fromEntries(Object.entries(body.item).filter(([name]) => !Object.hasOwn(sections, name) && !shape.hidden?.includes(name)));
10311
10546
  lines = blockOf(rest, chars, "", shape.whole).map(guarded);
10547
+ let dates = [];
10548
+ let drawn = [];
10312
10549
  for (const [name, entity] of Object.entries(sections)) {
10313
10550
  const list = body.item[name];
10314
10551
  if (!Array.isArray(list))
10315
10552
  continue;
10316
- const { header, lines: rows2 } = rowsOfItems(list, rowsOf(entity), clock, chars);
10317
- lines = lines.concat([`# ${[`${clean(name)}: ${list.length}`, ...header].join(" \xB7 ")}`], rows2);
10553
+ const { header, lines: rows2, dates: more } = rowsOfItems(list, rowsOf(entity), clock, chars);
10554
+ dates = dates.concat(more);
10555
+ drawn = drawn.concat([`# ${[`${clean(name)}: ${list.length}`, ...header].join(" \xB7 ")}`], rows2);
10318
10556
  }
10557
+ const when = spanOf(dates, clock);
10558
+ lines = lines.concat(when.length ? [`# ${when.join(" \xB7 ")}`] : [], drawn);
10319
10559
  } else if (present(body.item))
10320
10560
  lines = [guarded(cut(clean(String(body.item)), chars))];
10321
10561
  return lines.concat(footerOf(body)).join("\n");
10322
10562
  }, "compactText");
10323
10563
 
10324
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/steps.js
10564
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/cli/steps.js
10325
10565
  var STEPS2 = defineSteps([
10326
10566
  ...STEPS,
10327
10567
  {
@@ -10602,7 +10842,7 @@ var stepLine = /* @__PURE__ */ __name((root, step2) => {
10602
10842
  ].join(" ");
10603
10843
  }, "stepLine");
10604
10844
 
10605
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/output-budget.js
10845
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/cli/output-budget.js
10606
10846
  var SOFT_OUTPUT_BYTES = 256 * 1024;
10607
10847
  var CARRIED = ["json", "compact", "offline", "timeout", "full", "brief", "maxOutputBytes"];
10608
10848
  var NOT_WITH_COMPACT = /* @__PURE__ */ new Set(["json", "brief"]);
@@ -10660,7 +10900,7 @@ var largeAnswerSteps = /* @__PURE__ */ __name((command) => {
10660
10900
  return args ? compactStep(command, args, "the answer is large as JSON; one line per item keeps every ref") : [];
10661
10901
  }, "largeAnswerSteps");
10662
10902
 
10663
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
10903
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
10664
10904
  var HIDDEN = /* @__PURE__ */ new Set(["providerRef", "provider_ref"]);
10665
10905
  var withoutProviderRefs = /* @__PURE__ */ __name((value) => strip(value), "withoutProviderRefs");
10666
10906
  var strip = /* @__PURE__ */ __name((value) => {
@@ -10674,7 +10914,7 @@ var strip = /* @__PURE__ */ __name((value) => {
10674
10914
  return Object.fromEntries(Object.entries(value).flatMap(([key, inner]) => HIDDEN.has(key) ? [] : [[key, strip(inner)]]));
10675
10915
  }, "strip");
10676
10916
 
10677
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/cli/envelope.js
10917
+ // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/cli/envelope.js
10678
10918
  var answerSchema = /* @__PURE__ */ __name((item = unknown()) => union([listEnvelopeSchema(item), itemEnvelopeSchema(item)]), "answerSchema");
10679
10919
  var capped2 = /* @__PURE__ */ __name((steps) => steps.length > 0 ? { next: steps.slice(0, MAX_NEXT_STEPS) } : {}, "capped");
10680
10920
  var listOf = /* @__PURE__ */ __name((command, input) => {
@@ -10914,9 +11154,11 @@ export {
10914
11154
  setExitCode,
10915
11155
  provide,
10916
11156
  environmentOf,
11157
+ withAgentLevels,
10917
11158
  secretInputOf,
10918
11159
  outputFor,
10919
11160
  baseContext,
11161
+ inCommandRun,
10920
11162
  REMOTE_READ,
10921
11163
  FETCH,
10922
11164
  REMOTE_WRITE,
@@ -10940,6 +11182,7 @@ export {
10940
11182
  fetchesOnly,
10941
11183
  fetchesOnlyAt,
10942
11184
  writesFileOnlyWith,
11185
+ writesNewFileOnlyWith,
10943
11186
  readsOverMcp,
10944
11187
  readsOverMcpAt,
10945
11188
  isStoreChange,
@@ -11014,6 +11257,7 @@ export {
11014
11257
  answerEntity,
11015
11258
  answerEntitySchema,
11016
11259
  answerProjectionSchema,
11260
+ ON_CHAT_ROW,
11017
11261
  STATUS_SIGNAL_ROWS,
11018
11262
  STATUS_ROWS,
11019
11263
  SHARED_ROWS,