@wirecat/zoom-cli 0.67.0 → 0.69.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 (180) 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-ZQWPCJEK.js} +12 -12
  10. package/dist/bundle/answer-policy-VBDYLUXI.js +104 -0
  11. package/dist/bundle/{anthropic-FSNASJML.js → anthropic-7FUQ2HYJ.js} +7 -7
  12. package/dist/bundle/{app-server-EVSRYJ3H.js → app-server-DNPE2EQB.js} +61 -58
  13. package/dist/bundle/{bun-DACL5SVO.js → bun-ZVQFCFCC.js} +2 -2
  14. package/dist/bundle/{bun-sqlite-HQ2KOXSI.js → bun-sqlite-EB2UMUPJ.js} +6 -6
  15. package/dist/bundle/{chunk-4ZR5DJ26.js → chunk-2SYWVIQJ.js} +3 -3
  16. package/dist/bundle/chunk-37B7A4RP.js +66 -0
  17. package/dist/bundle/{chunk-WHQ4ZCJI.js → chunk-3TPRYZUW.js} +214 -86
  18. package/dist/bundle/{chunk-L6CAUVMU.js → chunk-4APZQYCH.js} +5 -5
  19. package/dist/bundle/{chunk-ASCHAVNW.js → chunk-52DCABMU.js} +27 -27
  20. package/dist/bundle/{chunk-LM26DJOK.js → chunk-5GOE6PQK.js} +6 -6
  21. package/dist/bundle/{chunk-QX2MAT6I.js → chunk-5H6VTEEC.js} +3 -3
  22. package/dist/bundle/{chunk-V33VGWT3.js → chunk-5ZF6QVMC.js} +16 -6
  23. package/dist/bundle/{chunk-GP4NSYDU.js → chunk-5ZJXKASF.js} +254 -13
  24. package/dist/bundle/chunk-6AMMTXEA.js +12473 -0
  25. package/dist/bundle/{chunk-Q65SDEFN.js → chunk-6KMTQX3D.js} +2 -2
  26. package/dist/bundle/{chunk-TBRG2DPE.js → chunk-6N2D6JGX.js} +2 -2
  27. package/dist/bundle/{chunk-X67YD3QI.js → chunk-6TICX3MN.js} +2 -2
  28. package/dist/bundle/{chunk-4GCKDO2H.js → chunk-7AUP2WT3.js} +3 -3
  29. package/dist/bundle/{chunk-JVCHGI7W.js → chunk-B5D7NZI7.js} +1 -1
  30. package/dist/bundle/{chunk-AAZFLJSH.js → chunk-B6JMVB6R.js} +10 -10
  31. package/dist/bundle/{chunk-CRLBTNC4.js → chunk-BL36NSV5.js} +3 -3
  32. package/dist/bundle/{chunk-4UVT2QCO.js → chunk-BOAMDYLY.js} +4 -4
  33. package/dist/bundle/{chunk-VQTAU4DV.js → chunk-C6TEYKXV.js} +8 -8
  34. package/dist/bundle/{chunk-6AJDVJVZ.js → chunk-CKK6JOC4.js} +2 -2
  35. package/dist/bundle/{chunk-4U2555EQ.js → chunk-CUZHKYC2.js} +30 -28
  36. package/dist/bundle/{chunk-7LLUUXJB.js → chunk-DHD25JII.js} +1 -1
  37. package/dist/bundle/{chunk-RYKG6AEH.js → chunk-EPPSMCEV.js} +4 -2
  38. package/dist/bundle/chunk-F5DYBWH7.js +299 -0
  39. package/dist/bundle/{chunk-KIJLM5UL.js → chunk-FBLUKCIR.js} +1 -1
  40. package/dist/bundle/{chunk-WZ5XK74U.js → chunk-FEM2JQN2.js} +1 -1
  41. package/dist/bundle/{chunk-SSXCOUP3.js → chunk-G6IX2MD2.js} +500 -227
  42. package/dist/bundle/{chunk-OTMGAKUM.js → chunk-GR3QDHBU.js} +7 -7
  43. package/dist/bundle/{chunk-QEI55M2F.js → chunk-GXDOTUUO.js} +10 -10
  44. package/dist/bundle/chunk-H3MFBYTQ.js +261 -0
  45. package/dist/bundle/{chunk-DFUPETW7.js → chunk-HC56J5LB.js} +135 -76
  46. package/dist/bundle/{chunk-D6OXI2NV.js → chunk-HSI7YOYK.js} +229 -67
  47. package/dist/bundle/{chunk-FGTPREAZ.js → chunk-HW5QTRFF.js} +35 -35
  48. package/dist/bundle/{chunk-VNIBTNV4.js → chunk-IEC4E65G.js} +2 -2
  49. package/dist/bundle/{chunk-EUPZSR2G.js → chunk-IPBZKUC3.js} +4 -4
  50. package/dist/bundle/{chunk-EQ7XRRKV.js → chunk-JHFP3Z5S.js} +11 -11
  51. package/dist/bundle/{chunk-3GO3KME7.js → chunk-JX5JJZC3.js} +3 -3
  52. package/dist/bundle/{chunk-7HAIM7GV.js → chunk-JZ4YOAHA.js} +963 -622
  53. package/dist/bundle/{chunk-B3KWAULD.js → chunk-KAPJQGHE.js} +2 -2
  54. package/dist/bundle/{chunk-T6CZWSHF.js → chunk-KNE6VFHZ.js} +21 -21
  55. package/dist/bundle/{chunk-I7SOXH64.js → chunk-KX5MZVPX.js} +66 -39
  56. package/dist/bundle/chunk-L62EJDNZ.js +64 -0
  57. package/dist/bundle/{chunk-EPDRF66S.js → chunk-LDRQ5NAP.js} +22 -14
  58. package/dist/bundle/{chunk-7VU5UGRR.js → chunk-LEA4BGK7.js} +16 -16
  59. package/dist/bundle/{chunk-ZMPTO2WB.js → chunk-LQX74VKG.js} +1 -1
  60. package/dist/bundle/{chunk-LKJXTACE.js → chunk-MJMVIFSC.js} +7 -7
  61. package/dist/bundle/{chunk-KWRSC6O6.js → chunk-MNOVYS43.js} +18 -4
  62. package/dist/bundle/{chunk-M43MBWJX.js → chunk-MOTKS7XG.js} +20741 -14882
  63. package/dist/bundle/{chunk-MWEOVTIF.js → chunk-MSDCZ6GT.js} +4 -4
  64. package/dist/bundle/{chunk-SOZVC3SV.js → chunk-MVDPZRFE.js} +1 -1
  65. package/dist/bundle/{chunk-NTZDM5SJ.js → chunk-NRRI37NJ.js} +9 -9
  66. package/dist/bundle/{chunk-BKY4XVB4.js → chunk-O7L44JK2.js} +2632 -1870
  67. package/dist/bundle/{chunk-6IBM4Z3V.js → chunk-OE7EIP5L.js} +1 -1
  68. package/dist/bundle/{chunk-RAMPYIO2.js → chunk-OSBHEM2A.js} +11 -11
  69. package/dist/bundle/{chunk-KV4267S4.js → chunk-P3ASN72F.js} +1 -1
  70. package/dist/bundle/{chunk-DG4DWAU7.js → chunk-QLGG7S6F.js} +3 -3
  71. package/dist/bundle/{chunk-6UFWFKFH.js → chunk-QW5VPZEH.js} +2 -2
  72. package/dist/bundle/{chunk-C6UKW7JO.js → chunk-QXM7S3Y3.js} +6 -6
  73. package/dist/bundle/{chunk-ESFMHBHH.js → chunk-R2ULMWB4.js} +62 -53
  74. package/dist/bundle/{chunk-L6WUAGPN.js → chunk-R3JYPY3J.js} +3 -3
  75. package/dist/bundle/{chunk-2UW533HQ.js → chunk-RGJ7OWHU.js} +4 -4
  76. package/dist/bundle/{chunk-7K5TDTZY.js → chunk-RPQ3JOD3.js} +7 -7
  77. package/dist/bundle/{chunk-L643D4RJ.js → chunk-S2EAGDS7.js} +12 -12
  78. package/dist/bundle/{chunk-4KDZ22RA.js → chunk-SQT47CFW.js} +1 -1
  79. package/dist/bundle/{chunk-CLEZE65P.js → chunk-SZ3Z4ZNO.js} +1 -1
  80. package/dist/bundle/chunk-T5X4LGXE.js +380 -0
  81. package/dist/bundle/{chunk-SMVO5R3T.js → chunk-TFFEFEG2.js} +39 -26
  82. package/dist/bundle/{chunk-LFQ73UFK.js → chunk-TKXLWFM2.js} +3 -3
  83. package/dist/bundle/{chunk-SCFFCIIP.js → chunk-TN77LX6W.js} +2 -2
  84. package/dist/bundle/{chunk-VFIEYRYD.js → chunk-TWIC6JJG.js} +8 -8
  85. package/dist/bundle/{chunk-FXQPK742.js → chunk-UEZ6URJR.js} +29 -15
  86. package/dist/bundle/{chunk-OZEYFJX2.js → chunk-V4MM6GST.js} +1 -1
  87. package/dist/bundle/chunk-V74QFMSL.js +31 -0
  88. package/dist/bundle/{chunk-YPF6OS37.js → chunk-VW6BF6M7.js} +1 -1
  89. package/dist/bundle/{chunk-6TZF2JP7.js → chunk-WY4NYPPS.js} +13 -13
  90. package/dist/bundle/{chunk-B5Z4XPVS.js → chunk-XITUFTON.js} +2 -2
  91. package/dist/bundle/{chunk-FWU3ZYHE.js → chunk-XJBYGMZ4.js} +776 -134
  92. package/dist/bundle/{chunk-KANH7GBB.js → chunk-XRZDYWF6.js} +2 -2
  93. package/dist/bundle/{chunk-ZRMZBMOF.js → chunk-Z6TTGTMU.js} +156 -9
  94. package/dist/bundle/{chunk-IFDO3YPJ.js → chunk-ZRHMB3LQ.js} +1 -1
  95. package/dist/bundle/{cli-YUATSOLA.js → cli-P3BZUE6S.js} +106 -64
  96. package/dist/bundle/command-contract-TOLB32NJ.js +41 -0
  97. package/dist/bundle/config-4KLLIADY.js +90 -0
  98. package/dist/bundle/{decode-IL44LNC3.js → decode-QWOQXM7M.js} +6 -6
  99. package/dist/bundle/{dispatch-3BGIXSJR.js → dispatch-5MGDLOK4.js} +9 -9
  100. package/dist/bundle/{dist-3W27UQ2S.js → dist-OUE4MF37.js} +108 -28
  101. package/dist/bundle/{echarts-CO4D26JF.js → echarts-65IMPY43.js} +2 -2
  102. package/dist/bundle/{embed-XH2X4DFM.js → embed-4IULBCKL.js} +7 -7
  103. package/dist/bundle/{embedder-WTFWDXBJ.js → embedder-JW4W6IZI.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-CH6C674R.js} +12 -12
  106. package/dist/bundle/first-screen-OCAW5ZN6.js +39 -0
  107. package/dist/bundle/{folders-F4DNQPIY.js → folders-VU4IN35Y.js} +5 -5
  108. package/dist/bundle/{instructions-EPPBL6TT.js → instructions-G5QIH2TM.js} +1 -1
  109. package/dist/bundle/{main-LVQTCDZS.js → main-O4ZJIEWP.js} +21 -23
  110. package/dist/bundle/{mcp-PPVOM4SE.js → mcp-M4QN2E7R.js} +2 -2
  111. package/dist/bundle/{meetings-BMELXRTR.js → meetings-77CCAVYD.js} +13 -7
  112. package/dist/bundle/{node-CQVMWVIG.js → node-E6VQHU4Y.js} +2 -2
  113. package/dist/bundle/{node-sqlite-QQEX7LZT.js → node-sqlite-RJZ4PGLD.js} +7 -7
  114. package/dist/bundle/{oauth-AYGX7CQS.js → oauth-F4JKNRW4.js} +8 -8
  115. package/dist/bundle/{open-MIL2TOT6.js → open-NYOGMIAA.js} +6 -6
  116. package/dist/bundle/openai-5U6EQTFQ.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-OBWUKBMX.js} +1 -1
  119. package/dist/bundle/{program-WUYRS6H7.js → program-MU7DEJTO.js} +115 -187
  120. package/dist/bundle/{prompt-J4QPFLEA.js → prompt-2QWQTHWT.js} +6 -6
  121. package/dist/bundle/{recognize-OLJZVNWW.js → recognize-SNUNTUC3.js} +5 -5
  122. package/dist/bundle/{remote-JPUXNYLV.js → remote-2CTCIQGF.js} +8 -8
  123. package/dist/bundle/{rerank-XVV3X5TT.js → rerank-XDA7NJNH.js} +8 -8
  124. package/dist/bundle/{run-log-DJXBEVS5.js → run-log-NSG3DJVX.js} +59 -59
  125. package/dist/bundle/{serve-NYYUO3MR.js → serve-TWQFHOV2.js} +10 -10
  126. package/dist/bundle/{server-4Z5E4YTT.js → server-RIQ6HMH2.js} +47 -47
  127. package/dist/bundle/server-XO6XQQTJ.js +72 -0
  128. package/dist/bundle/{services-EKWM76HP.js → services-NKZQJQIV.js} +49 -33
  129. package/dist/bundle/{speech-WFJ44ACJ.js → speech-ZOB76SXA.js} +14 -14
  130. package/dist/bundle/{state-VIRCT4VW.js → state-7YYEIXQ5.js} +7 -7
  131. package/dist/bundle/{store-ZTDZ6UY5.js → store-E6RTSSNR.js} +29 -18
  132. package/dist/bundle/{store-2Q4GEZJS.js → store-OX4HRBLO.js} +80 -29
  133. package/dist/bundle/store-connection-55QPNUDS.js +83 -0
  134. package/dist/bundle/store-maintenance-command-Q5MSU6OK.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-TSI2MGVK.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-3ZIHUSMM.js +0 -22
  165. package/dist/bundle/chunk-54RTMQL6.js +0 -132
  166. package/dist/bundle/chunk-6VFORXL3.js +0 -101
  167. package/dist/bundle/chunk-D4KBD63W.js +0 -19
  168. package/dist/bundle/chunk-J3ZBEWQY.js +0 -880
  169. package/dist/bundle/chunk-SXFODCYK.js +0 -9
  170. package/dist/bundle/chunk-YRNZT4GQ.js +0 -176
  171. package/dist/bundle/chunk-Z3WXI4DK.js +0 -31
  172. package/dist/bundle/command-contract-UWHY55UE.js +0 -41
  173. package/dist/bundle/config-TGF6E6ZD.js +0 -89
  174. package/dist/bundle/first-screen-PGFIXJAX.js +0 -39
  175. package/dist/bundle/openai-7QZZXQW5.js +0 -25
  176. package/dist/bundle/server-VW5UVCH7.js +0 -72
  177. package/dist/bundle/store-connection-FKVVQLEF.js +0 -83
  178. package/dist/bundle/store-maintenance-command-AU73UVUQ.js +0 -62
  179. package/dist/bundle/zoom-app-OEKFMJS6.js +0 -25
  180. /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-TN77LX6W.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-MJMVIFSC.js";
18
18
  import {
19
19
  permissionCeiling
20
- } from "./chunk-EUPZSR2G.js";
20
+ } from "./chunk-IPBZKUC3.js";
21
21
  import {
22
22
  fieldsOf,
23
23
  projectFields,
24
24
  resolveOutput
25
- } from "./chunk-7K5TDTZY.js";
25
+ } from "./chunk-RPQ3JOD3.js";
26
26
  import {
27
27
  carries
28
- } from "./chunk-SOZVC3SV.js";
28
+ } from "./chunk-MVDPZRFE.js";
29
29
  import {
30
30
  DEFAULT_HISTORY_LIMITS,
31
31
  DEFAULT_RERANK_MODEL,
@@ -58,10 +58,7 @@ import {
58
58
  typedCommand,
59
59
  useAsProcessRun,
60
60
  withWriteScope
61
- } from "./chunk-4U2555EQ.js";
62
- import {
63
- isCliFailure
64
- } from "./chunk-3ZIHUSMM.js";
61
+ } from "./chunk-CUZHKYC2.js";
65
62
  import {
66
63
  CEILING_KEY,
67
64
  COMMAND_PATH_KEY,
@@ -72,21 +69,10 @@ import {
72
69
  keyForCommand,
73
70
  layerPermissions,
74
71
  permissionOverrides
75
- } from "./chunk-VNIBTNV4.js";
72
+ } from "./chunk-IEC4E65G.js";
76
73
  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";
74
+ note
75
+ } from "./chunk-L62EJDNZ.js";
90
76
  import {
91
77
  FACT_STATUSES,
92
78
  LINK_KINDS,
@@ -95,20 +81,44 @@ import {
95
81
  MEMORY_SCOPES,
96
82
  MEMORY_STATUSES,
97
83
  PRIORITY_LABELS,
98
- RELATION_KINDS,
99
84
  TASK_KINDS,
100
85
  TASK_ORIGINS,
101
86
  TASK_STATES,
102
87
  TASK_TYPES,
103
88
  TASK_VERDICTS,
104
- WORK_TASK_TYPES
105
- } from "./chunk-YRNZT4GQ.js";
89
+ WORK_TASK_TYPES,
90
+ author,
91
+ count,
92
+ evidenceSource,
93
+ id,
94
+ markStoreDamaged,
95
+ organization,
96
+ project,
97
+ providerMetadata,
98
+ reminder,
99
+ text,
100
+ time,
101
+ untrusted
102
+ } from "./chunk-T5X4LGXE.js";
103
+ import {
104
+ isCliFailure,
105
+ storeDamaged
106
+ } from "./chunk-37B7A4RP.js";
106
107
  import {
107
108
  sharedConfigPath
108
- } from "./chunk-OTMGAKUM.js";
109
+ } from "./chunk-GR3QDHBU.js";
110
+ import {
111
+ DEAL_ROLES,
112
+ INVOICE_DIRECTIONS,
113
+ MONEY_DIRECTIONS,
114
+ ORDER_PURPOSES,
115
+ ORDER_STATUSES,
116
+ RELATION_KINDS,
117
+ STANDINGS
118
+ } from "./chunk-F5DYBWH7.js";
109
119
  import {
110
120
  storePath
111
- } from "./chunk-6AJDVJVZ.js";
121
+ } from "./chunk-CKK6JOC4.js";
112
122
  import {
113
123
  FACT_TYPES,
114
124
  MEETING_RESULT_ENTITIES,
@@ -126,12 +136,12 @@ import {
126
136
  meetingStats,
127
137
  meetingSummary,
128
138
  meetingTranscript
129
- } from "./chunk-DFUPETW7.js";
139
+ } from "./chunk-HC56J5LB.js";
130
140
  import {
131
141
  FIELD_TYPES,
132
142
  QUERY_BACKENDS,
133
143
  describeQuery
134
- } from "./chunk-AAZFLJSH.js";
144
+ } from "./chunk-B6JMVB6R.js";
135
145
  import {
136
146
  configFilePath,
137
147
  createRecordLog,
@@ -140,7 +150,7 @@ import {
140
150
  resolvePaths,
141
151
  saveConfigFile,
142
152
  writeSecurely
143
- } from "./chunk-T6CZWSHF.js";
153
+ } from "./chunk-KNE6VFHZ.js";
144
154
  import {
145
155
  COMPACT_FLAG,
146
156
  MAX_NEXT_STEPS,
@@ -192,18 +202,18 @@ import {
192
202
  unwrap,
193
203
  variant,
194
204
  writes
195
- } from "./chunk-NTZDM5SJ.js";
205
+ } from "./chunk-NRRI37NJ.js";
196
206
  import {
197
207
  CliError
198
- } from "./chunk-WZ5XK74U.js";
208
+ } from "./chunk-FEM2JQN2.js";
199
209
  import {
200
210
  visibleControls
201
- } from "./chunk-6IBM4Z3V.js";
211
+ } from "./chunk-OE7EIP5L.js";
202
212
  import {
203
213
  __name
204
214
  } from "./chunk-ZVVMGPBJ.js";
205
215
 
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
216
+ // 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
217
  var labels = /* @__PURE__ */ new WeakMap();
208
218
  var annotate = /* @__PURE__ */ __name((command, meta) => {
209
219
  labels.set(command, { ...labels.get(command), ...meta });
@@ -3704,7 +3714,7 @@ __name(useColor, "useColor");
3704
3714
  // node_modules/.pnpm/commander@15.0.0/node_modules/commander/index.js
3705
3715
  var program = new Command();
3706
3716
 
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
3717
+ // 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
3718
  import { isDeepStrictEqual } from "node:util";
3709
3719
  var protectedCommands = /* @__PURE__ */ new WeakMap();
3710
3720
  var hasSharedContract = /* @__PURE__ */ __name((command) => protectedCommands.has(command), "hasSharedContract");
@@ -3890,8 +3900,8 @@ var customizeSharedCommand = /* @__PURE__ */ __name((reference2, reason, build,
3890
3900
  }
3891
3901
  }, "adopt");
3892
3902
  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)))
3903
+ const ordered2 = /* @__PURE__ */ __name((records) => [...records].sort((a, b) => JSON.stringify([a.command, a.field]).localeCompare(JSON.stringify([b.command, b.field]))), "ordered");
3904
+ if (!Array.isArray(expectedOverrides) || !same(ordered2(edits), ordered2(expectedOverrides)))
3895
3905
  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
3906
  for (const { command: own, record: record2 } of pending) {
3897
3907
  protectedCommands.set(own, record2);
@@ -3906,7 +3916,7 @@ var customizeSharedCommand = /* @__PURE__ */ __name((reference2, reason, build,
3906
3916
  return command;
3907
3917
  }, "customizeSharedCommand");
3908
3918
 
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
3919
+ // 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
3920
  var argumentInfoSchema = object({
3911
3921
  name: string(),
3912
3922
  required: boolean(),
@@ -3980,7 +3990,7 @@ var commandsDocumentSchema = strictObject({
3980
3990
  exit_codes: record(string(), pipe(number(), integer()))
3981
3991
  });
3982
3992
 
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
3993
+ // 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
3994
  var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
3985
3995
  let command = root;
3986
3996
  const path2 = [];
@@ -3998,7 +4008,7 @@ var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
3998
4008
  }
3999
4009
  }, "refuseJoinedPath");
4000
4010
 
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
4011
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/runs/log-events.js
4002
4012
  var CORE_LOG_EVENTS = defineLogEvents([
4003
4013
  { id: "provider.request", meaning: "a request went to the messenger", keys: ["operation"] },
4004
4014
  { id: "provider.response", meaning: "the messenger answered the request, or it failed", keys: ["operation"] },
@@ -4032,7 +4042,7 @@ var DIAGNOSTIC_LOG_EVENTS = {
4032
4042
  cache: "cache.answered"
4033
4043
  };
4034
4044
 
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
4045
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/runs/recording.js
4036
4046
  var recorded = /* @__PURE__ */ __name(async (options, body) => {
4037
4047
  const recording = startRecording(options);
4038
4048
  try {
@@ -4123,7 +4133,14 @@ var startRecording = /* @__PURE__ */ __name((options) => {
4123
4133
  ...partial2 ? { partial: partial2 } : {}
4124
4134
  });
4125
4135
  }, "succeed"),
4126
- fail: /* @__PURE__ */ __name(async (error) => {
4136
+ fail: /* @__PURE__ */ __name(async (thrown) => {
4137
+ const error = storeDamaged(thrown);
4138
+ markStoreDamaged(thrown, {
4139
+ store: storePath(options.env),
4140
+ command: `${options.app.command} ${options.command}`,
4141
+ version: options.app.version,
4142
+ runId
4143
+ });
4127
4144
  const failed = run ?? (held ? keep(open({ startedAt })) : void 0);
4128
4145
  if (failed) {
4129
4146
  if (!isCliFailure(error))
@@ -4138,8 +4155,8 @@ var startRecording = /* @__PURE__ */ __name((options) => {
4138
4155
  ...run ? {} : { keptBecauseFailed: true }
4139
4156
  });
4140
4157
  }
4141
- if (typeof error === "object" && error !== null)
4142
- settled.add(error);
4158
+ if (typeof thrown === "object" && thrown !== null)
4159
+ settled.add(thrown);
4143
4160
  }, "fail")
4144
4161
  };
4145
4162
  }, "startRecording");
@@ -4217,7 +4234,7 @@ var partialOutcome = /* @__PURE__ */ __name((answer) => {
4217
4234
  return void 0;
4218
4235
  }, "partialOutcome");
4219
4236
 
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
4237
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/cli/deadline.js
4221
4238
  var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
4222
4239
  if (ms2 === void 0)
4223
4240
  return body();
@@ -4243,7 +4260,7 @@ var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
4243
4260
  }
4244
4261
  }, "withDeadline");
4245
4262
 
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
4263
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/cli/execution.js
4247
4264
  var DEFAULT_COMMAND_MS = 3e4;
4248
4265
  var DEFAULT_COOPERATIVE_MS = 5 * 6e4;
4249
4266
  var DEFAULT_SYNC_MS = 15 * 6e4;
@@ -4426,7 +4443,7 @@ var withAbort = /* @__PURE__ */ __name(async (signal, body) => {
4426
4443
  }
4427
4444
  }, "withAbort");
4428
4445
 
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
4446
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/cli/profile.js
4430
4447
  var asFirstWord = /* @__PURE__ */ __name((profile) => `${profile} `, "asFirstWord");
4431
4448
  var PLAIN_NAME = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
4432
4449
  var isProfileName = /* @__PURE__ */ __name((word) => PLAIN_NAME.test(word), "isProfileName");
@@ -4495,7 +4512,7 @@ var sampleCommand = /* @__PURE__ */ __name((commands) => {
4495
4512
  return void 0;
4496
4513
  }, "sampleCommand");
4497
4514
 
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
4515
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/models/endpoint.js
4499
4516
  var endpoint = /* @__PURE__ */ __name((value) => {
4500
4517
  try {
4501
4518
  const url2 = new URL(value);
@@ -4505,7 +4522,7 @@ var endpoint = /* @__PURE__ */ __name((value) => {
4505
4522
  }
4506
4523
  }, "endpoint");
4507
4524
 
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
4525
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/models/settings.js
4509
4526
  var MODEL_FIELDS = ["provider", "model", "base_url"];
4510
4527
  var modelSettingsShape = record(pipe(string(), regex(/^[a-z][a-z0-9-]*$/)), strictObject({
4511
4528
  provider: optional(picklist(["off", "openai", "anthropic"])),
@@ -4574,7 +4591,7 @@ var modelTarget = /* @__PURE__ */ __name((settings, purpose) => {
4574
4591
  };
4575
4592
  }, "modelTarget");
4576
4593
 
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
4594
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/analysis/settings.js
4578
4595
  var model = pipe(string(), trim(), minLength(1), maxLength(200));
4579
4596
  var url = pipe(string(), check(endpoint, "use an HTTP/S endpoint without credentials, query or fragment"));
4580
4597
  var AI_FIELDS = {
@@ -4618,7 +4635,7 @@ var resolveAISettings = /* @__PURE__ */ __name((prefix, layers, env) => {
4618
4635
  };
4619
4636
  }, "resolveAISettings");
4620
4637
 
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
4638
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/cli/bot/registry.js
4622
4639
  import { existsSync, readdirSync, readFileSync } from "node:fs";
4623
4640
  import { join } from "node:path";
4624
4641
  var botsDirectory = /* @__PURE__ */ __name((app, env = process.env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "bots"), "botsDirectory");
@@ -4707,10 +4724,10 @@ var registryProfiles = /* @__PURE__ */ __name((app, env = process.env) => {
4707
4724
  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
4725
  }, "registryProfiles");
4709
4726
 
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
4727
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
4711
4728
  import { readFileSync as readFileSync2 } from "node:fs";
4712
4729
 
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
4730
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/cli/config-repair.js
4714
4731
  var REPAIR_WORDS = {
4715
4732
  byte_order_mark: "an invisible byte-order mark at the start",
4716
4733
  comment: "a comment, which JSON does not allow",
@@ -4951,7 +4968,7 @@ ${parts.join(",\n")}
4951
4968
  ${indent}${close}`;
4952
4969
  }, "serialise");
4953
4970
 
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
4971
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
4955
4972
  var isNode = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
4956
4973
  var SECTIONS = ["personal", "bot"];
4957
4974
  var SHELL_SAFE = /^[A-Za-z0-9_.:@-]*$/;
@@ -5246,7 +5263,7 @@ var readConfigFile = /* @__PURE__ */ __name((path2) => {
5246
5263
  return "issue" in parsed ? { issue: publicIssue(parsed.issue) } : parsed;
5247
5264
  }, "readConfigFile");
5248
5265
 
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
5266
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/cli/default-config.js
5250
5267
  import { existsSync as existsSync2, linkSync, mkdirSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";
5251
5268
  import { dirname, join as join2 } from "node:path";
5252
5269
  var DEFAULT_CONFIG = {
@@ -5275,7 +5292,7 @@ function ensureDefaultConfig(path2, config = DEFAULT_CONFIG) {
5275
5292
  }
5276
5293
  __name(ensureDefaultConfig, "ensureDefaultConfig");
5277
5294
 
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
5295
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/cli/messenger/accounts.js
5279
5296
  import { existsSync as existsSync3, readdirSync as readdirSync2, readFileSync as readFileSync3 } from "node:fs";
5280
5297
  import { join as join3 } from "node:path";
5281
5298
  var accountFileFor = /* @__PURE__ */ __name((app, profile, env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "accounts", `${profile}.json`), "accountFileFor");
@@ -5297,7 +5314,7 @@ var profilesWithAccounts = /* @__PURE__ */ __name((app, env) => {
5297
5314
  }, "profilesWithAccounts");
5298
5315
  var profilesHere = /* @__PURE__ */ __name((app, configured, env) => [.../* @__PURE__ */ new Set([...configured, ...profilesWithAccounts(app, env)])].sort(), "profilesHere");
5299
5316
 
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
5317
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/cli/setting-defaults.js
5301
5318
  var isNode2 = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
5302
5319
  var parentOf = /* @__PURE__ */ __name((config, key) => {
5303
5320
  const path2 = key.split(".");
@@ -5330,7 +5347,7 @@ var settingRows = /* @__PURE__ */ __name((raw, declared) => declared.map((settin
5330
5347
  };
5331
5348
  }), "settingRows");
5332
5349
 
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
5350
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/cli/settings.js
5334
5351
  import { existsSync as existsSync4 } from "node:fs";
5335
5352
  var DEFAULT_LIMIT = DEFAULT_CONFIG.defaults.limit;
5336
5353
  var DEFAULT_KEEP_RUNS_FOR_DAYS = DEFAULT_CONFIG.defaults.keep_runs_for_days;
@@ -5841,7 +5858,7 @@ var given = /* @__PURE__ */ __name((value) => {
5841
5858
  return trimmed === void 0 || trimmed === "" ? void 0 : trimmed;
5842
5859
  }, "given");
5843
5860
 
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
5861
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/background/budget.js
5845
5862
  var DEADLINE_MARGIN_MS = 5e3;
5846
5863
  var DEADLINE_MARGIN_SHARE = 0.15;
5847
5864
  var DEFAULT_REQUEST_MS = 2e3;
@@ -5884,7 +5901,7 @@ var runBudget = /* @__PURE__ */ __name(({ requests, deadline, requestMs, signal,
5884
5901
  };
5885
5902
  }, "runBudget");
5886
5903
 
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
5904
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/cli/context.js
5888
5905
  var runBudgetOf = /* @__PURE__ */ __name((command, requests) => {
5889
5906
  const { deadline, signal, app } = environmentOf(command);
5890
5907
  const now = deadline?.();
@@ -5907,6 +5924,10 @@ var provide = /* @__PURE__ */ __name((program2, environment) => {
5907
5924
  environments.set(program2, environment);
5908
5925
  }, "provide");
5909
5926
  var environmentOf = /* @__PURE__ */ __name((command) => environments.get(rootOf(command)) ?? {}, "environmentOf");
5927
+ var withAgentLevels = /* @__PURE__ */ __name((command, flags) => {
5928
+ const overrides = environmentOf(command).agent?.overrides ?? [];
5929
+ return overrides.length > 0 ? { ...flags, permission: [...overrides, ...flags.permission ?? []] } : flags;
5930
+ }, "withAgentLevels");
5910
5931
  var secretInputOf = /* @__PURE__ */ __name((command) => {
5911
5932
  const { stdin, stderr } = environmentOf(command);
5912
5933
  return { ...stdin ? { input: stdin } : {}, ...stderr ? { output: stderr } : {} };
@@ -5933,9 +5954,7 @@ var outputFor = /* @__PURE__ */ __name((command) => {
5933
5954
  var baseContext = /* @__PURE__ */ __name((command, resolveSettings) => {
5934
5955
  const environment = environmentOf(command);
5935
5956
  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 });
5957
+ const settings = resolveSettings(withAgentLevels(command, command.optsWithGlobals()), { env });
5939
5958
  const { renderer, format, color, streams, compact, full } = resolveOutput({
5940
5959
  ...settings,
5941
5960
  env,
@@ -6000,6 +6019,13 @@ var baseContext = /* @__PURE__ */ __name((command, resolveSettings) => {
6000
6019
  }, "track")
6001
6020
  };
6002
6021
  }, "baseContext");
6022
+ var inCommandRun = /* @__PURE__ */ __name((command, body) => {
6023
+ const { resolveSettings } = environmentOf(command);
6024
+ if (!resolveSettings)
6025
+ return body(() => {
6026
+ });
6027
+ return baseContext(command, (flags, options) => resolveSettings(flags, { ...options, needsProfile: false })).run(body);
6028
+ }, "inCommandRun");
6003
6029
  var commandPath = /* @__PURE__ */ __name((command) => {
6004
6030
  const words = [];
6005
6031
  for (let current = command; current?.parent; current = current.parent)
@@ -6007,7 +6033,7 @@ var commandPath = /* @__PURE__ */ __name((command) => {
6007
6033
  return words.join(" ");
6008
6034
  }, "commandPath");
6009
6035
 
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
6036
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/cli/effects.js
6011
6037
  var REMOTE_READ = { remote: "read", local: "read" };
6012
6038
  var FETCH = { remote: "read", local: "write" };
6013
6039
  var REMOTE_WRITE = { remote: "write", local: "write" };
@@ -6091,6 +6117,7 @@ var writesFileOnlyWith = /* @__PURE__ */ __name((command, option) => {
6091
6117
  FILE_OPTION.set(command, option);
6092
6118
  return command;
6093
6119
  }, "writesFileOnlyWith");
6120
+ var writesNewFileOnlyWith = /* @__PURE__ */ __name((command, option) => destroysNothing(writesFileOnlyWith(command, option)), "writesNewFileOnlyWith");
6094
6121
  var writesFileNow = /* @__PURE__ */ __name((command) => {
6095
6122
  const option = FILE_OPTION.get(command);
6096
6123
  return option === void 0 || command.opts()[option] !== void 0;
@@ -6152,7 +6179,7 @@ var refuseUnderReadOnly = /* @__PURE__ */ __name((command, what) => {
6152
6179
  throw readOnlyRefusal(lock, what);
6153
6180
  }, "refuseUnderReadOnly");
6154
6181
 
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
6182
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/member.js
6156
6183
  var member = strictObject({
6157
6184
  id,
6158
6185
  name: nullable(text),
@@ -6175,7 +6202,7 @@ var member = strictObject({
6175
6202
  check: optional(record(string(), unknown()))
6176
6203
  });
6177
6204
 
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
6205
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/chat.js
6179
6206
  var setting = optional(nullable(boolean()));
6180
6207
  var chat = strictObject({
6181
6208
  ref: reference,
@@ -6216,7 +6243,7 @@ var chat = strictObject({
6216
6243
  members: optional(array(member))
6217
6244
  });
6218
6245
 
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
6246
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/list-results.js
6220
6247
  var botProfile = strictObject({
6221
6248
  name: text,
6222
6249
  token: text,
@@ -6247,6 +6274,10 @@ var scheduledJob = strictObject({
6247
6274
  name: text,
6248
6275
  kind: picklist(["command", "agent"]),
6249
6276
  when: text,
6277
+ /** When a finished run shows a desktop notice: `always`, `failures` or `never`; the default is shown, not left out. */
6278
+ notify: optional(picklist(["always", "failures", "never"])),
6279
+ /** Where a run's result is sent after it: `telegram-bot:<profile>/<chat>` or `email:<profile>/<address>`. */
6280
+ deliver_to: optional(array(text)),
6250
6281
  last: nullable(strictObject({
6251
6282
  at: time,
6252
6283
  exit_code: number(),
@@ -6255,8 +6286,29 @@ var scheduledJob = strictObject({
6255
6286
  reason: optional(text),
6256
6287
  error_code: optional(text),
6257
6288
  failing_since: optional(time),
6258
- failures: optional(number())
6259
- }))
6289
+ failures: optional(number()),
6290
+ cost_usd: optional(number()),
6291
+ /** The last time a run did not start, and why: the day's cost cap, or too little new mail. */
6292
+ skipped: optional(strictObject({
6293
+ at: time,
6294
+ why: text,
6295
+ /** A dotted id for `why`, so a client can translate it: `cost.day-cap`, `mail.none-new`, `mail.below-threshold`. */
6296
+ reason: optional(pipe(text, regex(/^[a-z][a-z0-9-]*(\.[a-z][a-z0-9-]*)+$/)))
6297
+ })),
6298
+ /** How the run's result went along each route; `reason` a dotted id, `error` the sending CLI's code and reason id. */
6299
+ deliveries: optional(array(strictObject({
6300
+ to: text,
6301
+ ok: boolean(),
6302
+ reason: optional(pipe(text, regex(/^[a-z][a-z0-9-]*(\.[a-z][a-z0-9-]*)+$/))),
6303
+ error: optional(text)
6304
+ })))
6305
+ })),
6306
+ /** Agent schedules: what today's runs cost, in US dollars. */
6307
+ spent_today_usd: optional(number()),
6308
+ /** Agent schedules: the cap on one run (`--max-cost`), null when none. */
6309
+ max_cost_usd: optional(nullable(number())),
6310
+ /** Agent schedules: the daily cap in force, the schedule's `--max-cost-per-day` or the config's; 0 for none. */
6311
+ max_cost_per_day_usd: optional(number())
6260
6312
  });
6261
6313
  var botTemplate = strictObject({
6262
6314
  name: nullable(text),
@@ -6284,7 +6336,7 @@ var stickerInventory = strictObject({
6284
6336
  url: optional(nullable(text))
6285
6337
  });
6286
6338
 
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
6339
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/batch-result.js
6288
6340
  var actionableError = objectWithRest({
6289
6341
  code: text,
6290
6342
  message: text,
@@ -6301,7 +6353,7 @@ var batchResult = strictObject({
6301
6353
  max_error_percent: count
6302
6354
  });
6303
6355
 
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
6356
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/conversation-preparation.js
6305
6357
  var conversationBuild = strictObject({
6306
6358
  chat: id,
6307
6359
  messages: count,
@@ -6326,13 +6378,13 @@ var catchUpPreparation = strictObject({
6326
6378
  prepared: optional(conversationPreparation)
6327
6379
  });
6328
6380
 
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
6381
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
6330
6382
  import { spawn } from "node:child_process";
6331
6383
  import { randomBytes } from "node:crypto";
6332
6384
  import { closeSync, existsSync as existsSync6, mkdirSync as mkdirSync2, openSync, readdirSync as readdirSync3, readFileSync as readFileSync5, realpathSync, rmSync as rmSync3 } from "node:fs";
6333
6385
  import { dirname as dirname2, join as join5 } from "node:path";
6334
6386
 
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
6387
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/background/checkpoints.js
6336
6388
  import { existsSync as existsSync5, readFileSync as readFileSync4, rmSync as rmSync2 } from "node:fs";
6337
6389
  import { join as join4 } from "node:path";
6338
6390
  var PART = /^[\w@+-][\w.@+-]{0,99}$/;
@@ -6372,7 +6424,7 @@ var progressOf = /* @__PURE__ */ __name((input) => {
6372
6424
  };
6373
6425
  }, "progressOf");
6374
6426
 
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
6427
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/runs/record-log.js
6376
6428
  var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) => {
6377
6429
  const run = currentRun();
6378
6430
  const trace = traceId ?? run.traceId;
@@ -6386,7 +6438,7 @@ var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) =
6386
6438
  }));
6387
6439
  }, "recordLogFor");
6388
6440
 
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
6441
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
6390
6442
  var JOB_STATES = ["running", "done", "partial", "failed", "cancelled", "died"];
6391
6443
  var spawnDetached = /* @__PURE__ */ __name((argv, env, log) => {
6392
6444
  const out = openSync(log, "a", 384);
@@ -6436,11 +6488,11 @@ var finishJob = /* @__PURE__ */ __name((app, dir, id6, change) => {
6436
6488
  const job2 = readJob(dir, id6);
6437
6489
  if (!job2)
6438
6490
  return;
6439
- const outcome3 = stateOf(job2);
6491
+ const outcome4 = stateOf(job2);
6440
6492
  recordLogFor(recordsPath(dir, id6), app, job2.traceId ? { traceId: job2.traceId } : {})[job2.error ? "error" : "info"]({
6441
6493
  event: "job.exit",
6442
6494
  job: id6,
6443
- outcome: outcome3,
6495
+ outcome: outcome4,
6444
6496
  ...job2.error ? { errorCode: job2.error.code } : {}
6445
6497
  });
6446
6498
  }, "finishJob");
@@ -6541,7 +6593,7 @@ var startArchiveJob = /* @__PURE__ */ __name((app, env, profile, input, spawnJob
6541
6593
  return { job: id6, pid, chat: input.chat, log };
6542
6594
  }, "startArchiveJob");
6543
6595
 
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
6596
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/job.js
6545
6597
  var problem = strictObject({ code: text, message: text });
6546
6598
  var job = strictObject({
6547
6599
  id,
@@ -6564,7 +6616,7 @@ var job = strictObject({
6564
6616
  error: optional(problem)
6565
6617
  });
6566
6618
 
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
6619
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/message.js
6568
6620
  var quoted = strictObject({
6569
6621
  id,
6570
6622
  sender_id: nullable(id),
@@ -6683,7 +6735,7 @@ var message = strictObject({
6683
6735
  provider_metadata: providerMetadata
6684
6736
  });
6685
6737
 
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
6738
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/extraction-report.js
6687
6739
  var extractionItem = strictObject({
6688
6740
  ref: reference,
6689
6741
  attachment: count,
@@ -6716,7 +6768,7 @@ var extractionReport = strictObject({
6716
6768
  cursor: optional(text)
6717
6769
  });
6718
6770
 
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
6771
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/message-transfer.js
6720
6772
  var savedMessageFile = strictObject({
6721
6773
  kind: text,
6722
6774
  path: text,
@@ -6803,7 +6855,7 @@ var messageSyncAll = strictObject({
6803
6855
  var messageSyncStarted = strictObject({ job: id, pid: count, chat: text, log: text });
6804
6856
  var messageSync = union([messageSyncEstimate, messageSyncChat, messageSyncAll, messageSyncStarted]);
6805
6857
 
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
6858
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/store-records.js
6807
6859
  var range = strictObject({ from: number(), to: number() });
6808
6860
  var storeChatStatus = strictObject({
6809
6861
  chat_id: id,
@@ -6901,7 +6953,7 @@ var storeJobRetry = union([
6901
6953
  ]);
6902
6954
  var storeJobClear = strictObject({ cleared: array(id) });
6903
6955
 
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
6956
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/account.js
6905
6957
  var account = strictObject({
6906
6958
  provider: text,
6907
6959
  id,
@@ -6911,7 +6963,7 @@ var account = strictObject({
6911
6963
  scope: optional(picklist(["personal", "work"]))
6912
6964
  });
6913
6965
 
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
6966
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/account-session.js
6915
6967
  var accountSession = strictObject({
6916
6968
  current: boolean(),
6917
6969
  client: nullable(text),
@@ -6921,7 +6973,7 @@ var accountSession = strictObject({
6921
6973
  created_at: optional(nullable(time))
6922
6974
  });
6923
6975
 
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
6976
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/account-change.js
6925
6977
  var accountChange = strictObject({ operation_id: id, account: omit(account, ["provider", "scope"]) });
6926
6978
  var endedAccountSessions = strictObject({ operation_id: id, sessions: array(accountSession) });
6927
6979
  var audience = picklist(["everyone", "contacts", "nobody"]);
@@ -6939,7 +6991,7 @@ var accountPrivacy = strictObject({
6939
6991
  });
6940
6992
  var accountPrivacyChange = strictObject({ operation_id: id, privacy: accountPrivacy });
6941
6993
 
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
6994
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/account-profile.js
6943
6995
  var accountProfile = strictObject({
6944
6996
  profile: id,
6945
6997
  current: boolean(),
@@ -6951,7 +7003,7 @@ var accountProfile = strictObject({
6951
7003
  bot: optional(literal(true))
6952
7004
  });
6953
7005
 
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
7006
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/counter-reading.js
6955
7007
  var milliseconds = pipe(number(), minValue(0));
6956
7008
  var counterReading = strictObject({
6957
7009
  counter: picklist(["views", "reactions", "comments"]),
@@ -6963,7 +7015,7 @@ var counterReading = strictObject({
6963
7015
  });
6964
7016
  var selection = record(string(), unknown());
6965
7017
 
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
7018
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/admin-report.js
6967
7019
  var adminRow = strictObject({
6968
7020
  ref: reference,
6969
7021
  /** What `stats * evidence` takes: a person id, a stay or a message locator. */
@@ -7016,11 +7068,11 @@ var adminReport = strictObject({
7016
7068
  rows: array(adminRow)
7017
7069
  });
7018
7070
 
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
7071
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/analysis-consent.js
7020
7072
  var analysisConsent = strictObject({ chat: id, provider: text, at: time });
7021
7073
  var analysisConsentRevocation = strictObject({ revoked: boolean() });
7022
7074
 
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
7075
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/attachment-results.js
7024
7076
  var fingerprint = pipe(text, regex(/^[a-f0-9]{64}$/));
7025
7077
  var attachmentBytes = strictObject({
7026
7078
  ref: reference,
@@ -7048,7 +7100,7 @@ var attachmentTextChange = strictObject({
7048
7100
  replaced: nullable(picklist(["extracted", "agent"]))
7049
7101
  });
7050
7102
 
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
7103
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/chart.js
7052
7104
  var chart = strictObject({
7053
7105
  version: literal(1),
7054
7106
  kind: picklist(["bar", "line", "grouped-bar"]),
@@ -7063,7 +7115,7 @@ var chart = strictObject({
7063
7115
  file: optional(strictObject({ path: text, format: picklist(["svg", "png"]), width: count, height: count }))
7064
7116
  });
7065
7117
 
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
7118
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/folder.js
7067
7119
  var named = strictObject({
7068
7120
  id,
7069
7121
  title: nullable(text),
@@ -7086,7 +7138,7 @@ var folder = strictObject({
7086
7138
  excluded_chats: optional(array(named))
7087
7139
  });
7088
7140
 
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
7141
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/invite-link.js
7090
7142
  var inviteLink = strictObject({
7091
7143
  link: text,
7092
7144
  /** Who joins by it asks first, and an admin lets them in. */
@@ -7102,7 +7154,7 @@ var inviteLink = strictObject({
7102
7154
  joined_count: optional(count)
7103
7155
  });
7104
7156
 
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
7157
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/chat-admin.js
7106
7158
  var operated = { operation_id: id, chat_id: id };
7107
7159
  var group = strictObject({
7108
7160
  ...omit(chat, ["ref", "provider", "account", "invite_link", "members"]).entries,
@@ -7182,7 +7234,7 @@ var chatFolderOrder = strictObject({
7182
7234
  folders: array(strictObject({ id, title: text }))
7183
7235
  });
7184
7236
 
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
7237
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/chat-change.js
7186
7238
  var operated2 = { operation_id: id, chat_id: id };
7187
7239
  var chatRemoval = strictObject(operated2);
7188
7240
  var chatMuting = strictObject({
@@ -7193,7 +7245,7 @@ var chatArchive = strictObject({ ...operated2, archived: boolean() });
7193
7245
  var chatPin = strictObject({ ...operated2, pinned: boolean() });
7194
7246
  var chatUnread = strictObject({ ...operated2, unread: literal(true) });
7195
7247
 
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
7248
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/chat-event.js
7197
7249
  var who = strictObject({ id: nullable(id), name: nullable(text), username: optional(nullable(text)) });
7198
7250
  var chatEvent = strictObject({
7199
7251
  chat_id: id,
@@ -7210,7 +7262,7 @@ var chatEvent = strictObject({
7210
7262
  before: optional(strictObject({ name: nullable(text), username: nullable(text) }))
7211
7263
  });
7212
7264
 
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
7265
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/chat-metadata.js
7214
7266
  var chatMetadata = strictObject({
7215
7267
  chat_id: id,
7216
7268
  title: nullable(text),
@@ -7225,7 +7277,7 @@ var chatMetadataRefresh = strictObject({
7225
7277
  has_more: boolean()
7226
7278
  });
7227
7279
 
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
7280
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/chat-moderation.js
7229
7281
  var action = picklist(["report", "delete", "remove"]);
7230
7282
  var level = picklist(["deny", "readonly", "ask", "allow"]);
7231
7283
  var chatRules = strictObject({
@@ -7262,7 +7314,7 @@ var chatModeration = strictObject({
7262
7314
  }))
7263
7315
  });
7264
7316
 
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
7317
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/chat-stats.js
7266
7318
  var optionalCount = optional(count);
7267
7319
  var minutes = nullable(number());
7268
7320
  var chatStats = strictObject({
@@ -7336,7 +7388,7 @@ var taskStats = strictObject({
7336
7388
  }))
7337
7389
  });
7338
7390
 
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
7391
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/chat-tracking.js
7340
7392
  var memberCount = strictObject({
7341
7393
  day: pipe(text, isoDate()),
7342
7394
  participants: nullable(count),
@@ -7359,7 +7411,7 @@ var chatTracking = strictObject({
7359
7411
  tracked: boolean()
7360
7412
  });
7361
7413
 
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
7414
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/contact-read.js
7363
7415
  var contactLookup = strictObject({ id, name: nullable(text), username: nullable(text) });
7364
7416
  var contactSync = strictObject({ added: count, changed: count, known: count });
7365
7417
  var profileFields = {
@@ -7397,7 +7449,7 @@ var profileFields = {
7397
7449
  }))
7398
7450
  };
7399
7451
 
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
7452
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/contact.js
7401
7453
  var contact = strictObject({
7402
7454
  ref: reference,
7403
7455
  id,
@@ -7428,7 +7480,7 @@ var contact = strictObject({
7428
7480
  notes: optional(array(strictObject({ id, text, revision: count, created_at: time, updated_at: time })))
7429
7481
  });
7430
7482
 
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
7483
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/contact-activity.js
7432
7484
  var linkedIdentity = strictObject({
7433
7485
  provider: text,
7434
7486
  id,
@@ -7436,6 +7488,7 @@ var linkedIdentity = strictObject({
7436
7488
  username: nullable(text),
7437
7489
  is_bot: nullable(boolean()),
7438
7490
  accounts: array(id),
7491
+ seen_in: array(strictObject({ account: id, scope: picklist(["personal", "work"]) })),
7439
7492
  method: text,
7440
7493
  linked_by: text,
7441
7494
  linked_at: time
@@ -7469,7 +7522,7 @@ var contactCheck = strictObject({
7469
7522
  checked_at: time
7470
7523
  });
7471
7524
 
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
7525
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/contact-context.js
7473
7526
  var contextPerson = strictObject({ ...linkedPerson.entries, provider: text, id });
7474
7527
  var contextMessage = strictObject({
7475
7528
  locator: reference,
@@ -7503,6 +7556,8 @@ var contextEvent = strictObject({
7503
7556
  });
7504
7557
  var context = strictObject({
7505
7558
  person: contextPerson,
7559
+ /** The accounts read: only those of the scopes the caller may read. */
7560
+ accounts: array(strictObject({ provider: text, account: id, scope: picklist(["personal", "work"]) })),
7506
7561
  shared: array(sharedChat),
7507
7562
  last: strictObject({
7508
7563
  from_them: nullable(contextMessage),
@@ -7667,7 +7722,7 @@ var contactPreparation = strictObject({
7667
7722
  })
7668
7723
  });
7669
7724
 
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
7725
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/contact-note.js
7671
7726
  var contactNote = strictObject({
7672
7727
  id,
7673
7728
  /** The contact, as a `contact:` reference. */
@@ -7679,13 +7734,13 @@ var contactNote = strictObject({
7679
7734
  updated_at: time
7680
7735
  });
7681
7736
 
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
7737
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/contact-write.js
7683
7738
  var addressBookPerson = strictObject({ id, name: nullable(text), username: nullable(text) });
7684
7739
  var contactUpdate = strictObject({ operation_id: id, person: addressBookPerson });
7685
7740
  var contactStateChange = strictObject({ operation_id: id, person_id: id });
7686
7741
  var contactImport = strictObject({ operation_id: id, sent: count, recognised: array(addressBookPerson) });
7687
7742
 
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
7743
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/conversation-results.js
7689
7744
  var conversationDetails = union([
7690
7745
  strictObject({ ...conversation.entries, messages: array(message) }),
7691
7746
  message
@@ -7775,7 +7830,7 @@ var conversationHit = strictObject({
7775
7830
  stale: boolean()
7776
7831
  });
7777
7832
 
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
7833
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/counters.js
7779
7834
  var counters = strictObject({
7780
7835
  cutoff: time,
7781
7836
  max_age_ms: milliseconds,
@@ -7805,7 +7860,97 @@ var counterRefresh = strictObject({
7805
7860
  complete: optional(boolean())
7806
7861
  });
7807
7862
 
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
7863
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/deal.js
7864
+ var nullableText = nullable(text);
7865
+ var party = strictObject({ ref: reference, name: nullableText, owner: boolean() });
7866
+ var outcome = picklist(["open", "won", "lost"]);
7867
+ var crmAccount = nullable(strictObject({ provider: text, account: text }));
7868
+ var day = nullable(pipe(string(), regex(/^\d{4}-\d{2}-\d{2}$/)));
7869
+ var deal = strictObject({
7870
+ id,
7871
+ ref: reference,
7872
+ kind: picklist(["deal", "lead"]),
7873
+ title: text,
7874
+ /** One line with the stage, amount and status. */
7875
+ summary: text,
7876
+ pipeline: reference,
7877
+ pipeline_name: text,
7878
+ stage: text,
7879
+ status: outcome,
7880
+ organization: nullable(party),
7881
+ currency: nullableText,
7882
+ amount: nullableText,
7883
+ close_date: day,
7884
+ closed_date: day,
7885
+ closed_reason: nullableText,
7886
+ rank: nullable(number()),
7887
+ /** A lead's deal, once it became one. */
7888
+ deal: nullable(reference),
7889
+ /** The CRM account it is a copy from; `null` for the owner's own. */
7890
+ account: crmAccount,
7891
+ external_id: nullableText,
7892
+ /** A CRM copy's assignee, the identity `<account>/user/<id>`. */
7893
+ assignee: nullableText,
7894
+ /** A CRM copy's own fields by code; a list field's value is its option's label, `option_id` its id. */
7895
+ provider_metadata: record(string(), strictObject({
7896
+ label: nullable(string()),
7897
+ value: unknown(),
7898
+ option_id: optional(union([string(), array(string())]))
7899
+ })),
7900
+ people: array(strictObject({ ...party.entries, role: picklist(DEAL_ROLES) })),
7901
+ author: strictObject({
7902
+ type: picklist(["person", "bot"]),
7903
+ id,
7904
+ name: nullableText,
7905
+ kind: nullable(picklist(["agent", "rule"]))
7906
+ }),
7907
+ model: nullableText,
7908
+ source: text,
7909
+ reason: nullableText,
7910
+ evidence: array(reference),
7911
+ project: nullable(reference),
7912
+ project_name: nullableText,
7913
+ created_at: time,
7914
+ updated_at: time,
7915
+ untrusted
7916
+ });
7917
+ var lead = deal;
7918
+ var pipelineStage = strictObject({
7919
+ name: text,
7920
+ position: count,
7921
+ outcome,
7922
+ external_id: nullableText,
7923
+ /** Open deals or leads in it now. */
7924
+ open: count,
7925
+ /** With a funnel: rows that got this far, and the share of them that reached the next stage. */
7926
+ reached: optional(count),
7927
+ conversion: optional(nullable(number())),
7928
+ /** With a funnel: rows standing in it now, and their sum per currency, never converted. */
7929
+ items: optional(count),
7930
+ amounts: optional(array(strictObject({ amount: text, currency: text, items: count })))
7931
+ });
7932
+ var pipeline = strictObject({
7933
+ id,
7934
+ ref: reference,
7935
+ name: text,
7936
+ kind: picklist(["deal", "lead"]),
7937
+ account: crmAccount,
7938
+ external_id: nullableText,
7939
+ stages: array(pipelineStage),
7940
+ created_at: time,
7941
+ totals: optional(strictObject({ items: count, open: count, won: count, lost: count, win_rate: nullable(number()) })),
7942
+ since: optional(day),
7943
+ untrusted
7944
+ });
7945
+ var stage = strictObject({
7946
+ ...pipelineStage.entries,
7947
+ pipeline: reference,
7948
+ pipeline_name: text,
7949
+ kind: picklist(["deal", "lead"]),
7950
+ untrusted
7951
+ });
7952
+
7953
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/document.js
7809
7954
  var document = strictObject({
7810
7955
  ref: reference,
7811
7956
  id,
@@ -7820,7 +7965,7 @@ var document = strictObject({
7820
7965
  owners: optional(array(text))
7821
7966
  });
7822
7967
 
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
7968
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/document-link.js
7824
7969
  var documentLink = strictObject({
7825
7970
  ref: reference,
7826
7971
  url: text,
@@ -7831,7 +7976,7 @@ var documentLink = strictObject({
7831
7976
  sender: strictObject({ id: nullable(id), name: nullable(text) })
7832
7977
  });
7833
7978
 
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
7979
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/evidence.js
7835
7980
  var evidenceMessage = pick(message, ["ref", "chat_title", "timestamp", "sender_name", "text"]);
7836
7981
  var contribution = strictObject({
7837
7982
  message: evidenceMessage,
@@ -7861,7 +8006,7 @@ var retentionStay = strictObject({
7861
8006
  });
7862
8007
  var evidence = union([contribution, retentionStay]);
7863
8008
 
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
8009
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/fact.js
7865
8010
  var fact = strictObject({
7866
8011
  ref: reference,
7867
8012
  id,
@@ -7891,9 +8036,9 @@ var fact = strictObject({
7891
8036
  updated_at: time
7892
8037
  });
7893
8038
 
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
8039
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/hit.js
7895
8040
  var hit = strictObject({
7896
- kind: picklist(["message", "mail", "note", "document", "event", "meeting"]),
8041
+ kind: picklist(["message", "mail", "note", "document", "event", "meeting", "deal", "lead"]),
7897
8042
  ref: reference,
7898
8043
  provider: text,
7899
8044
  url: optional(text),
@@ -7929,7 +8074,7 @@ var hit = strictObject({
7929
8074
  untrusted
7930
8075
  });
7931
8076
 
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
8077
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/identity.js
7933
8078
  var identity = strictObject({
7934
8079
  ref: reference,
7935
8080
  provider: text,
@@ -7942,7 +8087,7 @@ var identity = strictObject({
7942
8087
  person: optional(nullable(reference))
7943
8088
  });
7944
8089
 
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
8090
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/image-embedding.js
7946
8091
  var imageEmbedding = strictObject({
7947
8092
  model: text,
7948
8093
  embedded: count,
@@ -7951,7 +8096,7 @@ var imageEmbedding = strictObject({
7951
8096
  more: boolean()
7952
8097
  });
7953
8098
 
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
8099
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/join-request.js
7955
8100
  var joinRequest = strictObject({
7956
8101
  person_id: id,
7957
8102
  name: nullable(text),
@@ -7962,7 +8107,7 @@ var joinRequest = strictObject({
7962
8107
  about: optional(text)
7963
8108
  });
7964
8109
 
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
8110
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/poll-vote.js
7966
8111
  var pollVote = strictObject({
7967
8112
  person_id: id,
7968
8113
  name: nullable(text),
@@ -7972,7 +8117,7 @@ var pollVote = strictObject({
7972
8117
  voted_at: time
7973
8118
  });
7974
8119
 
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
8120
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/listener.js
7976
8121
  var reactions = unwrap(unwrap(message.entries.reactions));
7977
8122
  var observation = strictObject({
7978
8123
  value: pipe(number(), minValue(0)),
@@ -8014,7 +8159,7 @@ var serveSummary = strictObject({
8014
8159
  tasks: optional(strictObject({ added: count, closed: count, review: count }))
8015
8160
  });
8016
8161
 
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
8162
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/mail-counts.js
8018
8163
  var mailCounts = strictObject({
8019
8164
  by: picklist(["day", "week", "sender"]),
8020
8165
  received: count,
@@ -8029,7 +8174,7 @@ var mailCounts = strictObject({
8029
8174
  }))
8030
8175
  });
8031
8176
 
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
8177
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/mail-findings.js
8033
8178
  var evidence2 = strictObject({ reference, fingerprint: text });
8034
8179
  var base = { id, evidence: array(evidence2) };
8035
8180
  var finding = variant("kind", [
@@ -8044,7 +8189,11 @@ var finding = variant("kind", [
8044
8189
  due_at: optional(time),
8045
8190
  due_evidence: optional(array(reference)),
8046
8191
  assignee: optional(reference),
8047
- assignee_evidence: optional(array(reference))
8192
+ assignee_evidence: optional(array(reference)),
8193
+ /** `<service>:<id>` in the outside service the mail came from, such as `avito:4512345678`. */
8194
+ external_id: optional(text),
8195
+ /** The http or https page the task is about, such as the conversation the mail links to. */
8196
+ source_url: optional(text)
8048
8197
  }),
8049
8198
  strictObject({
8050
8199
  ...base,
@@ -8052,7 +8201,9 @@ var finding = variant("kind", [
8052
8201
  project: optional(reference),
8053
8202
  subject: optional(reference),
8054
8203
  type: picklist(FACT_TYPES),
8055
- statement: text
8204
+ statement: text,
8205
+ /** Every new finding gives one; a batch staged before reason was needed on every kind has none. */
8206
+ reason: optional(text)
8056
8207
  }),
8057
8208
  strictObject({
8058
8209
  ...base,
@@ -8070,12 +8221,84 @@ var finding = variant("kind", [
8070
8221
  scope: picklist(MEMORY_SCOPES),
8071
8222
  body: text,
8072
8223
  subject: optional(reference),
8073
- project: optional(reference)
8224
+ project: optional(reference),
8225
+ reason: optional(text)
8074
8226
  }),
8075
8227
  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) })
8228
+ strictObject({ ...base, kind: literal("new_contact"), address: text, name: text, reason: optional(text) }),
8229
+ strictObject({
8230
+ ...base,
8231
+ kind: literal("invoice"),
8232
+ direction: picklist(INVOICE_DIRECTIONS),
8233
+ counterparty: optional(reference),
8234
+ /** A counterparty the store may not hold yet; the owner's accept finds its organization or makes one. */
8235
+ counterparty_name: optional(text),
8236
+ counterparty_email: optional(text),
8237
+ currency: text,
8238
+ lines: array(strictObject({
8239
+ description: text,
8240
+ quantity: optional(text),
8241
+ unit_price: optional(text),
8242
+ amount: optional(text)
8243
+ })),
8244
+ total: optional(text),
8245
+ number: optional(text),
8246
+ issue_date: optional(text),
8247
+ due_date: optional(text),
8248
+ project: optional(reference),
8249
+ reason: text
8250
+ }),
8251
+ strictObject({
8252
+ ...base,
8253
+ kind: literal("payment"),
8254
+ direction: picklist(MONEY_DIRECTIONS),
8255
+ payer: optional(reference),
8256
+ payer_name: optional(text),
8257
+ payer_email: optional(text),
8258
+ payee: optional(reference),
8259
+ payee_name: optional(text),
8260
+ payee_email: optional(text),
8261
+ amount: text,
8262
+ currency: text,
8263
+ date: text,
8264
+ reference: optional(text),
8265
+ allocations: optional(array(strictObject({ invoice: reference, amount: text }))),
8266
+ project: optional(reference),
8267
+ reason: text
8268
+ }),
8269
+ strictObject({
8270
+ ...base,
8271
+ kind: literal("order"),
8272
+ purpose: picklist(ORDER_PURPOSES),
8273
+ customer: optional(reference),
8274
+ customer_name: optional(text),
8275
+ customer_email: optional(text),
8276
+ supplier: optional(reference),
8277
+ supplier_name: text,
8278
+ number: optional(text),
8279
+ total: optional(text),
8280
+ currency: optional(text),
8281
+ status: optional(picklist(ORDER_STATUSES)),
8282
+ order_date: optional(text),
8283
+ fulfilled_date: optional(text),
8284
+ invoice: optional(reference),
8285
+ payment: optional(reference),
8286
+ project: optional(reference),
8287
+ /** The order's page at the shop, http or https. */
8288
+ source_url: optional(text),
8289
+ reason: text
8290
+ }),
8291
+ strictObject({
8292
+ ...base,
8293
+ kind: literal("order_update"),
8294
+ supplier_name: text,
8295
+ number: text,
8296
+ status: picklist(ORDER_STATUSES),
8297
+ date: optional(text),
8298
+ reason: text
8299
+ })
8077
8300
  ]);
8078
- var outcome = strictObject({
8301
+ var outcome2 = strictObject({
8079
8302
  id,
8080
8303
  fingerprint: text,
8081
8304
  status: picklist(["accepted", "rejected"]),
@@ -8091,11 +8314,11 @@ var mailFindings = strictObject({
8091
8314
  author,
8092
8315
  decided_by: nullable(strictObject({ type: picklist(["person", "bot"]), id })),
8093
8316
  decided_at: nullable(time),
8094
- previous: array(outcome),
8095
- receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome) }))
8317
+ previous: array(outcome2),
8318
+ receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome2) }))
8096
8319
  });
8097
8320
 
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
8321
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/media-archive.js
8099
8322
  var mediaArchive = strictObject({
8100
8323
  directory: text,
8101
8324
  chats: count,
@@ -8127,7 +8350,7 @@ var mediaArchiveTimer = union([
8127
8350
  strictObject({ ...timer, action: picklist(["install", "start", "stop", "uninstall"]) })
8128
8351
  ]);
8129
8352
 
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
8353
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation-parts.js
8131
8354
  var preparationId = pipe(string(), minLength(1));
8132
8355
  var preparationCount = pipe(number(), integer(), minValue(0));
8133
8356
  var preparationTime = nullable(isoTime);
@@ -8219,7 +8442,7 @@ var preparationMeeting = strictObject({
8219
8442
  updated_at: isoTime
8220
8443
  });
8221
8444
 
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
8445
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/meeting-evidence.js
8223
8446
  var meetingEvidence = preparationEvidence;
8224
8447
  var meetingPersonContext = strictObject({
8225
8448
  person: strictObject({ uid: string(), name: nullable(string()) }),
@@ -8241,7 +8464,7 @@ var meetingPersonContext = strictObject({
8241
8464
  })
8242
8465
  });
8243
8466
 
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
8467
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/meeting-findings.js
8245
8468
  var evidence3 = strictObject({ reference, fingerprint: text });
8246
8469
  var base2 = { id, project: reference, evidence: array(evidence3) };
8247
8470
  var finding2 = variant("kind", [
@@ -8259,7 +8482,7 @@ var finding2 = variant("kind", [
8259
8482
  assignee_evidence: optional(array(reference))
8260
8483
  })
8261
8484
  ]);
8262
- var outcome2 = strictObject({
8485
+ var outcome3 = strictObject({
8263
8486
  id,
8264
8487
  fingerprint: text,
8265
8488
  status: picklist(["accepted", "rejected"]),
@@ -8275,11 +8498,11 @@ var meetingFindings = strictObject({
8275
8498
  author,
8276
8499
  decided_by: nullable(strictObject({ type: picklist(["person", "bot"]), id })),
8277
8500
  decided_at: nullable(time),
8278
- previous: array(outcome2),
8279
- receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome2) }))
8501
+ previous: array(outcome3),
8502
+ receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome3) }))
8280
8503
  });
8281
8504
 
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
8505
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/meeting-communications.js
8283
8506
  var communicationCoverage = strictObject({
8284
8507
  read_usage: strictObject({ reads: preparationCount, charged_bytes: preparationCount, reserved_bytes: preparationCount, remaining_bytes: preparationCount }),
8285
8508
  query: string(),
@@ -8324,7 +8547,7 @@ var preparationCommunications = strictObject({
8324
8547
  }))
8325
8548
  });
8326
8549
 
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
8550
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation.js
8328
8551
  var meetingPreparation = strictObject({
8329
8552
  communications: optional(preparationCommunications),
8330
8553
  schema_version: literal(1),
@@ -8437,7 +8660,7 @@ var meetingPreparation = strictObject({
8437
8660
  })
8438
8661
  });
8439
8662
 
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
8663
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/meeting-project-candidates.js
8441
8664
  var count4 = pipe(number(), integer(), minValue(0));
8442
8665
  var id3 = pipe(string(), minLength(1));
8443
8666
  var text3 = string();
@@ -8501,7 +8724,7 @@ var meetingProjectCandidates = strictObject({
8501
8724
  })
8502
8725
  });
8503
8726
 
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
8727
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/meeting-series-inventory.js
8505
8728
  var count5 = pipe(number(), integer(), minValue(0));
8506
8729
  var id4 = pipe(string(), minLength(1), maxLength(1e3));
8507
8730
  var meetingSeriesInventory = strictObject({
@@ -8531,7 +8754,7 @@ var meetingSeriesInventory = strictObject({
8531
8754
  })
8532
8755
  });
8533
8756
 
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
8757
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/meeting-task-proposal.js
8535
8758
  var text4 = string();
8536
8759
  var id5 = pipe(number(), integer(), minValue(1));
8537
8760
  var revision = picklist(["current", "superseded"]);
@@ -8548,7 +8771,7 @@ var meetingTaskProposal = strictObject({
8548
8771
  persistence: literal("proposal-only")
8549
8772
  });
8550
8773
 
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
8774
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/memory.js
8552
8775
  var memory = strictObject({
8553
8776
  ref: reference,
8554
8777
  id,
@@ -8575,7 +8798,7 @@ var memory = strictObject({
8575
8798
  updated_at: time
8576
8799
  });
8577
8800
 
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
8801
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/mention.js
8579
8802
  var kind = picklist(["phone", "email", "url", "document", "person-name", "place"]);
8580
8803
  var status = picklist(["found", "linked", "dismissed"]);
8581
8804
  var mention = strictObject({
@@ -8618,13 +8841,13 @@ var mentionRebuild = strictObject({
8618
8841
  mentions: count
8619
8842
  });
8620
8843
 
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
8844
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/message-change.js
8622
8845
  var operated3 = { operation_id: id, chat_id: id };
8623
8846
  var messagePin = strictObject({ ...operated3, message_id: id, pinned: boolean() });
8624
8847
  var messageStar = strictObject({ ...operated3, message_id: id, starred: boolean() });
8625
8848
  var messageDeletion = strictObject({ ...operated3, deleted: array(id), for_everyone: boolean() });
8626
8849
 
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
8850
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/message-read.js
8628
8851
  var messageTranscript = strictObject({
8629
8852
  message_id: id,
8630
8853
  text,
@@ -8682,7 +8905,7 @@ var evidencePacket = strictObject({
8682
8905
  }))
8683
8906
  });
8684
8907
 
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
8908
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/message-context.js
8686
8909
  var messageThread = strictObject({
8687
8910
  ref: reference,
8688
8911
  chat: id,
@@ -8699,7 +8922,7 @@ var messageThread = strictObject({
8699
8922
  });
8700
8923
  var messageContext = union([message, messageThread]);
8701
8924
 
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
8925
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/message-counts.js
8703
8926
  var messageCounts = strictObject({
8704
8927
  by: picklist(["chat", "sender", "day", "hour"]),
8705
8928
  total: count,
@@ -8712,7 +8935,7 @@ var messageCounts = strictObject({
8712
8935
  }))
8713
8936
  });
8714
8937
 
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
8938
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/message-link.js
8716
8939
  var messageLink = strictObject({
8717
8940
  ref: reference,
8718
8941
  url: nullable(text),
@@ -8729,7 +8952,7 @@ var messageLink = strictObject({
8729
8952
  })))
8730
8953
  });
8731
8954
 
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
8955
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/message-write.js
8733
8956
  var messageWrite = strictObject({
8734
8957
  operation_id: id,
8735
8958
  message,
@@ -8744,7 +8967,7 @@ var draftWrite = strictObject({
8744
8967
  });
8745
8968
  var messageSend = union([messageWrite, draftWrite]);
8746
8969
 
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
8970
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/model.js
8748
8971
  var model2 = strictObject({
8749
8972
  id,
8750
8973
  kind: picklist(["audio", "text", "image", "reranker"]),
@@ -8761,7 +8984,7 @@ var model2 = strictObject({
8761
8984
  path: text
8762
8985
  });
8763
8986
 
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
8987
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/model-key.js
8765
8988
  var source = picklist(["environment", "keyring", "file"]);
8766
8989
  var modelKey = strictObject({
8767
8990
  provider: text,
@@ -8771,7 +8994,7 @@ var modelKey = strictObject({
8771
8994
  var storedModelKey = strictObject({ ...omit(modelKey, ["removed"]).entries, stored: source });
8772
8995
  var removedModelKey = strictObject({ ...omit(modelKey, ["stored"]).entries, removed: array(source) });
8773
8996
 
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
8997
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/official-stats.js
8775
8998
  var versus = strictObject({ current: number(), previous: number() });
8776
8999
  var person = { person_ref: reference, name: nullable(text) };
8777
9000
  var graph = strictObject({
@@ -8805,14 +9028,14 @@ var officialStats = strictObject({
8805
9028
  graphs: record(string(), union([graph, strictObject({ error: text })]))
8806
9029
  });
8807
9030
 
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
9031
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/person.js
8809
9032
  var person2 = strictObject({
8810
9033
  ref: reference,
8811
9034
  name: nullable(text),
8812
9035
  identities: optional(array(identity))
8813
9036
  });
8814
9037
 
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
9038
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/poll.js
8816
9039
  var poll = strictObject({
8817
9040
  chat_id: id,
8818
9041
  message_id: id,
@@ -8828,11 +9051,11 @@ var poll = strictObject({
8828
9051
  });
8829
9052
  var pollChange = strictObject({ operation_id: id, poll });
8830
9053
 
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
9054
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/private-contact.js
8832
9055
  var contactAlias = strictObject({ person_id: id, alias: nullable(text) });
8833
9056
  var contactNoteRemoval = strictObject({ id, person_id: id, removed: boolean() });
8834
9057
 
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
9058
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/ranking.js
8836
9059
  var figures = record(string(), number());
8837
9060
  var freshness = picklist(["fresh", "stale", "partial", "unknown"]);
8838
9061
  var rankingRow = strictObject({
@@ -8879,7 +9102,7 @@ var ranking = strictObject({
8879
9102
  rows: array(rankingRow)
8880
9103
  });
8881
9104
 
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
9105
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/reaction.js
8883
9106
  var reaction = strictObject({
8884
9107
  person: strictObject({ id, name: nullable(text), username: nullable(text) }),
8885
9108
  /** The emoji, or `custom:<id>` for a custom one. */
@@ -8887,7 +9110,7 @@ var reaction = strictObject({
8887
9110
  reacted_at: time
8888
9111
  });
8889
9112
 
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
9113
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/reaction-change.js
8891
9114
  var reactionChange = strictObject({
8892
9115
  operation_id: id,
8893
9116
  chat_id: id,
@@ -8895,7 +9118,7 @@ var reactionChange = strictObject({
8895
9118
  reaction: nullable(text)
8896
9119
  });
8897
9120
 
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
9121
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/recipient.js
8899
9122
  var recipient = strictObject({ id, title: nullable(text), partner_id: optional(id), added_at: time });
8900
9123
  var recipientAdded = strictObject({ id, title: nullable(text), added: boolean() });
8901
9124
  var recipientRemoved = strictObject({ id, title: nullable(text), removed: boolean() });
@@ -8906,7 +9129,7 @@ var recipientChange = strictObject({
8906
9129
  ...partial(recipientOff).entries
8907
9130
  });
8908
9131
 
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
9132
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/recorded-run.js
8910
9133
  var events = array(record(string(), unknown()));
8911
9134
  var recordedRun = strictObject({
8912
9135
  run_id: id,
@@ -8978,7 +9201,7 @@ var runHit = strictObject({
8978
9201
  });
8979
9202
  var runLocation = strictObject({ path: text });
8980
9203
 
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
9204
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/relationship.js
8982
9205
  var relationship = strictObject({
8983
9206
  id,
8984
9207
  from: reference,
@@ -8992,10 +9215,16 @@ var relationship = strictObject({
8992
9215
  confirmed: boolean(),
8993
9216
  provenance: nullable(text),
8994
9217
  confidence_category: picklist(["owner-confirmed", "weak"]),
9218
+ /** `reported`: a CRM account says so and nobody confirmed it; `ended`: it no longer holds. */
9219
+ standing: picklist(STANDINGS),
9220
+ /** A job title beside it, never its role. */
9221
+ position: nullable(text),
9222
+ starts_at: nullable(time),
9223
+ ends_at: nullable(time),
8995
9224
  created_at: time
8996
9225
  });
8997
9226
 
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
9227
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/reply-stats.js
8999
9228
  var milliseconds2 = nullable(pipe(number(), minValue(0)));
9000
9229
  var figures2 = { replies: count, median_ms: milliseconds2, p90_ms: milliseconds2, mean_ms: milliseconds2 };
9001
9230
  var responseTimes = strictObject({
@@ -9012,7 +9241,7 @@ var waitingChats = strictObject({
9012
9241
  by_kind: strictObject({ private: count, group: count })
9013
9242
  });
9014
9243
 
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
9244
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/retention.js
9016
9245
  var retentionCohort = strictObject({
9017
9246
  /** The first day of the joining day or week. */
9018
9247
  cohort: text,
@@ -9060,7 +9289,7 @@ var retention = strictObject({
9060
9289
  rows: array(retentionCohort)
9061
9290
  });
9062
9291
 
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
9292
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/saved-search.js
9064
9293
  var savedSearch = strictObject({
9065
9294
  id,
9066
9295
  /** `null` for a run in the history. */
@@ -9077,7 +9306,7 @@ var savedSearch = strictObject({
9077
9306
  });
9078
9307
  var searchHistoryClear = strictObject({ cleared: count });
9079
9308
 
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
9309
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/send-attempt.js
9081
9310
  var sendAttempt = strictObject({
9082
9311
  at: time,
9083
9312
  profile: text,
@@ -9105,7 +9334,7 @@ var sendAttempt = strictObject({
9105
9334
  error_code: optional(text)
9106
9335
  });
9107
9336
 
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
9337
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/store-maintenance.js
9109
9338
  var absent = strictObject({ path: text, exists: literal(false) });
9110
9339
  var schema = strictObject({ version: count, min_compatible: count, writable: boolean(), speaks: count });
9111
9340
  var infoSchema = strictObject({
@@ -9260,12 +9489,25 @@ var storeBackup = strictObject({
9260
9489
  encrypted: optional(literal(true))
9261
9490
  });
9262
9491
  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
- });
9492
+ var storeRestore = union([
9493
+ strictObject({
9494
+ path: text,
9495
+ restored_from: text,
9496
+ kept_at: nullable(text),
9497
+ schema: count
9498
+ }),
9499
+ /** From a rollback copy: its tables put back in place, the store returned to `schema` from `was`. */
9500
+ strictObject({
9501
+ path: text,
9502
+ restored_from: text,
9503
+ rolled_back: literal(true),
9504
+ schema: count,
9505
+ was: count,
9506
+ tables: array(strictObject({ table: text, rows: count })),
9507
+ rebuilt: array(text),
9508
+ foreign_key_violations: count
9509
+ })
9510
+ ]);
9269
9511
  var storeReset = union([
9270
9512
  strictObject({ ...absent.entries, reset: literal(false) }),
9271
9513
  strictObject({
@@ -9313,7 +9555,7 @@ var storeRepair = union([
9313
9555
  ]);
9314
9556
  var storeCopyRemoval = strictObject({ path: text, deleted: strictObject({ name: text, rows: count }) });
9315
9557
 
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
9558
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/store-table.js
9317
9559
  var TABLE_KINDS = ["data", "search_index", "search_index_part", "internal"];
9318
9560
  var storeTable = strictObject({
9319
9561
  name: text,
@@ -9322,7 +9564,7 @@ var storeTable = strictObject({
9322
9564
  bytes: optional(nullable(count))
9323
9565
  });
9324
9566
 
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
9567
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/tag-change.js
9326
9568
  var tagTarget = variant("type", [
9327
9569
  strictObject({ type: literal("chat"), chat_id: id }),
9328
9570
  strictObject({ type: literal("contact"), person_id: id }),
@@ -9353,7 +9595,7 @@ var automaticTags = strictObject({
9353
9595
  dry_run: boolean()
9354
9596
  });
9355
9597
 
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
9598
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/task-pair.js
9357
9599
  var side = strictObject({ ref: reference, key: text, title: text, status: text });
9358
9600
  var taskPair = strictObject({
9359
9601
  task: nullable(side),
@@ -9376,7 +9618,7 @@ var taskPair = strictObject({
9376
9618
  created_at: time
9377
9619
  });
9378
9620
 
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
9621
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/task-results.js
9380
9622
  var nullableTime = nullable(time);
9381
9623
  var link = strictObject({
9382
9624
  id,
@@ -9411,6 +9653,10 @@ var taskCard = strictObject({
9411
9653
  revision: number(),
9412
9654
  parent: nullable(reference),
9413
9655
  source: nullable(text),
9656
+ /** `<service>:<id>`, its id in an outside service, such as `avito:4512345678`. */
9657
+ external_id: nullable(text),
9658
+ /** The http or https page it is about, such as an Avito ad. */
9659
+ source_url: nullable(text),
9414
9660
  due_at: nullableTime,
9415
9661
  next_check_at: nullableTime,
9416
9662
  closed_at: nullableTime,
@@ -9546,7 +9792,7 @@ var taskReview = strictObject({
9546
9792
  untrusted
9547
9793
  });
9548
9794
 
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
9795
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/topic.js
9550
9796
  var topic = strictObject({
9551
9797
  id,
9552
9798
  title: text,
@@ -9560,9 +9806,13 @@ var topic = strictObject({
9560
9806
  untrusted
9561
9807
  });
9562
9808
 
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
9809
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/index.js
9564
9810
  var ENTITIES = {
9565
9811
  sync_progress: progress,
9812
+ deal,
9813
+ lead,
9814
+ pipeline,
9815
+ stage,
9566
9816
  ...MEETING_RESULT_ENTITIES,
9567
9817
  message,
9568
9818
  message_context: messageContext,
@@ -9842,7 +10092,7 @@ var entityDefinitions = /* @__PURE__ */ __name(() => Object.fromEntries(Object.e
9842
10092
  return [name, definition];
9843
10093
  })), "entityDefinitions");
9844
10094
 
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
10095
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/cli/answer-entity.js
9846
10096
  var schemas = /* @__PURE__ */ new WeakMap();
9847
10097
  var answerEntity = /* @__PURE__ */ __name((command, name, schema2, options = {}) => {
9848
10098
  if (Object.hasOwn(ENTITIES, name))
@@ -9876,29 +10126,20 @@ var answerRow = /* @__PURE__ */ __name((command) => {
9876
10126
  return own && metaOf(command).output?.entity === own.name ? own.row : void 0;
9877
10127
  }, "answerRow");
9878
10128
 
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"] }];
10129
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/cli/project-status-rows.js
10130
+ var where = [{ field: "ref" }];
9881
10131
  var who2 = { field: ["who.owner", "who.name"], tag: "you" };
10132
+ var ON_CHAT_ROW = /* @__PURE__ */ new Set(["reply-next", "coverage"]);
9882
10133
  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
10134
  "status.questions": {
9894
- columns: [...where, { field: "at", as: "day" }, { field: "data.side" }, who2],
10135
+ columns: [...where, { field: "at", as: "day" }, who2],
9895
10136
  text: ["data.excerpt"]
9896
10137
  },
9897
10138
  "status.promises": {
9898
10139
  columns: [
9899
10140
  ...where,
9900
10141
  { field: "at", as: "day" },
9901
- { field: "data.source" },
10142
+ { field: "basis" },
9902
10143
  { field: "data.side" },
9903
10144
  { field: "data.due", as: "day" },
9904
10145
  { field: "data.status" }
@@ -9925,21 +10166,10 @@ var STATUS_SIGNAL_ROWS = {
9925
10166
  columns: [
9926
10167
  ...where,
9927
10168
  { field: "data.query" },
9928
- { field: "data.theirs_last", as: "day" },
9929
10169
  { field: "data.yours_last", as: "day" },
9930
10170
  { field: "data.silent_since", as: "day" }
9931
10171
  ]
9932
10172
  },
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
10173
  "status.children": {
9944
10174
  columns: [
9945
10175
  { field: "data.child" },
@@ -9956,10 +10186,14 @@ var STATUS_ROWS = {
9956
10186
  columns: [
9957
10187
  { field: "chat" },
9958
10188
  { field: "title" },
9959
- { field: "kind" },
9960
10189
  { field: "role" },
9961
- { field: "attention", as: "count", tag: "attention" },
9962
- { field: "why" }
10190
+ { field: "next", prefix: "next" },
10191
+ { field: "addressed.name" },
10192
+ { field: "waiting_since", as: "day" },
10193
+ { field: "overdue", tag: "overdue" },
10194
+ { field: "held.messages", as: "count", tag: "held" },
10195
+ { field: "unlisted.questions", as: "count", tag: "questions unlisted" },
10196
+ { field: "unlisted.promises", as: "count", tag: "promises unlisted" }
9963
10197
  ]
9964
10198
  },
9965
10199
  "status.money": {
@@ -9970,7 +10204,6 @@ var STATUS_ROWS = {
9970
10204
  { field: "rows", as: "count", tag: "rows" }
9971
10205
  ]
9972
10206
  },
9973
- "status.signal": { columns: [{ field: "id" }, { field: "version" }] },
9974
10207
  "status.out-of-scope": {
9975
10208
  columns: [
9976
10209
  { field: "chat" },
@@ -9985,7 +10218,7 @@ var STATUS_ROWS = {
9985
10218
  "status.failed": { columns: [{ field: "signal" }], text: ["why"] }
9986
10219
  };
9987
10220
 
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
10221
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/cli/compact.js
9989
10222
  var TEXT_CHARS = 400;
9990
10223
  var sender = { field: ["sender_is_me", "sender_name"], tag: "me" };
9991
10224
  var messageRow = {
@@ -10170,8 +10403,8 @@ var cellOf = /* @__PURE__ */ __name((item, column, clock) => {
10170
10403
  const parts = clock.parts(iso);
10171
10404
  if (!parts)
10172
10405
  return { text: clean(iso) };
10173
- const day = parts.date.slice(5);
10174
- return { text: column.as === "day" ? day : `${day} ${parts.time}`, date: parts.date };
10406
+ const day2 = parts.date.slice(5);
10407
+ return column.as === "day" ? { text: day2, date: parts.date } : { text: `${day2} ${parts.time}`, date: parts.date, time: parts.time };
10175
10408
  }
10176
10409
  case "count":
10177
10410
  return typeof value === "number" && value !== 0 ? { text: column.tag ? `${value} ${column.tag}` : String(value) } : void 0;
@@ -10219,6 +10452,17 @@ var sameEverywhere = /* @__PURE__ */ __name((rows2, index) => {
10219
10452
  const first2 = rows2[0]?.cells[index]?.text;
10220
10453
  return first2 !== void 0 && rows2.every(({ cells }) => cells[index]?.text === first2);
10221
10454
  }, "sameEverywhere");
10455
+ 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");
10456
+ var dayColumn = /* @__PURE__ */ __name((rows2, shape, hoisted) => {
10457
+ const index = shape.columns.findIndex((column, at2) => column.as === "time" && !hoisted[at2]);
10458
+ if (index < 0)
10459
+ return -1;
10460
+ const dates = rows2.map(({ cells }) => cells[index]?.date);
10461
+ if (dates.some((one) => one === void 0))
10462
+ return -1;
10463
+ const days = dates;
10464
+ return ordered(days) && new Set(days).size * 3 <= days.length ? index : -1;
10465
+ }, "dayColumn");
10222
10466
  var rowsOfItems = /* @__PURE__ */ __name((items, shape, clock, chars) => {
10223
10467
  const dates = [];
10224
10468
  const rows2 = items.map((item) => {
@@ -10241,18 +10485,31 @@ var rowsOfItems = /* @__PURE__ */ __name((items, shape, clock, chars) => {
10241
10485
  return [];
10242
10486
  return [`${sourceOf(item, column) ?? fieldsOfColumn(column.field)[0]}: ${rows2[0]?.cells[index]?.text}`];
10243
10487
  });
10244
- const lines = rows2.map(({ cells, text: text5, item }) => {
10245
- const parts = cells.map((cell, index) => hoisted[index] ? void 0 : cell?.text);
10488
+ const byDay = dayColumn(rows2, shape, hoisted);
10489
+ let shownDay;
10490
+ const lines = rows2.flatMap(({ cells, text: text5, item }) => {
10491
+ const parts = cells.map((cell2, index) => hoisted[index] ? void 0 : cell2?.text);
10492
+ const dayLine = [];
10493
+ const cell = cells[byDay];
10494
+ if (byDay >= 0 && cell?.date && cell.time) {
10495
+ if (cell.date !== shownDay)
10496
+ dayLine.push(`# ${cell.date}`);
10497
+ shownDay = cell.date;
10498
+ parts[byDay] = cell.time;
10499
+ }
10246
10500
  const shortened = prefix ? clean(prefix) : void 0;
10247
10501
  if (shortened && parts[0]?.startsWith(shortened))
10248
10502
  parts[0] = `#${parts[0].slice(shortened.length)}`;
10249
10503
  const shown = [...parts, text5].filter((part) => part !== void 0 && part !== "");
10250
- return guarded(shown.length ? shown.join(" \xB7 ") : item ? blockLine(item, chars) : "");
10504
+ return [...dayLine, guarded(shown.length ? shown.join(" \xB7 ") : item ? blockLine(item, chars) : "")];
10251
10505
  });
10252
- const when = span(dates);
10253
- const header = [...prefix ? [`ref: ${clean(prefix)}<id>`] : [], ...named2, ...when ? [when, clock.zone] : []];
10254
- return { header, lines };
10506
+ const header = [...prefix ? [`ref: ${clean(prefix)}<id>`] : [], ...named2];
10507
+ return { header, lines, dates };
10255
10508
  }, "rowsOfItems");
10509
+ var spanOf = /* @__PURE__ */ __name((dates, clock) => {
10510
+ const when = span(dates);
10511
+ return when ? [when, clock.zone] : [];
10512
+ }, "spanOf");
10256
10513
  var blockLine = /* @__PURE__ */ __name((fields, chars) => blockOf(fields, chars).join(" "), "blockLine");
10257
10514
  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
10515
  const label = `${indent}${clean(name)}:`;
@@ -10303,25 +10560,31 @@ var compactText = /* @__PURE__ */ __name((body, shape, options, rowsOf = rowsOfE
10303
10560
  const chars = options.textChars ?? TEXT_CHARS;
10304
10561
  let lines = [];
10305
10562
  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"]);
10563
+ const { header, lines: rows2, dates } = rowsOfItems(body.items, shape, clock, chars);
10564
+ const head = [...header, ...spanOf(dates, clock)];
10565
+ lines = (head.length ? [`# ${head.join(" \xB7 ")}`] : []).concat(rows2.length ? rows2 : ["# nothing found"]);
10308
10566
  } else if (isFields(body.item)) {
10309
10567
  const sections = shape.sections ?? {};
10310
- const rest = Object.fromEntries(Object.entries(body.item).filter(([name]) => !Object.hasOwn(sections, name)));
10568
+ const rest = Object.fromEntries(Object.entries(body.item).filter(([name]) => !Object.hasOwn(sections, name) && !shape.hidden?.includes(name)));
10311
10569
  lines = blockOf(rest, chars, "", shape.whole).map(guarded);
10570
+ let dates = [];
10571
+ let drawn = [];
10312
10572
  for (const [name, entity] of Object.entries(sections)) {
10313
10573
  const list = body.item[name];
10314
10574
  if (!Array.isArray(list))
10315
10575
  continue;
10316
- const { header, lines: rows2 } = rowsOfItems(list, rowsOf(entity), clock, chars);
10317
- lines = lines.concat([`# ${[`${clean(name)}: ${list.length}`, ...header].join(" \xB7 ")}`], rows2);
10576
+ const { header, lines: rows2, dates: more } = rowsOfItems(list, rowsOf(entity), clock, chars);
10577
+ dates = dates.concat(more);
10578
+ drawn = drawn.concat([`# ${[`${clean(name)}: ${list.length}`, ...header].join(" \xB7 ")}`], rows2);
10318
10579
  }
10580
+ const when = spanOf(dates, clock);
10581
+ lines = lines.concat(when.length ? [`# ${when.join(" \xB7 ")}`] : [], drawn);
10319
10582
  } else if (present(body.item))
10320
10583
  lines = [guarded(cut(clean(String(body.item)), chars))];
10321
10584
  return lines.concat(footerOf(body)).join("\n");
10322
10585
  }, "compactText");
10323
10586
 
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
10587
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/cli/steps.js
10325
10588
  var STEPS2 = defineSteps([
10326
10589
  ...STEPS,
10327
10590
  {
@@ -10535,6 +10798,12 @@ var STEPS2 = defineSteps([
10535
10798
  ],
10536
10799
  why: "once the tasks these {shown} messages hold are opened, updated or closed, so the next review starts after them"
10537
10800
  },
10801
+ {
10802
+ id: "store.recover",
10803
+ command: "store recover",
10804
+ args: [],
10805
+ why: "the store file is damaged; this says what is lost and the commands that recover it"
10806
+ },
10538
10807
  {
10539
10808
  id: "search.meetings",
10540
10809
  command: "*",
@@ -10573,7 +10842,7 @@ var failureSteps = /* @__PURE__ */ __name((root, error) => {
10573
10842
  nextStep(IMAGE_MODELS.some((one) => one.id === model3) ? "models.download-image" : "models.download", {
10574
10843
  args: { model: model3 }
10575
10844
  })
10576
- ] : [];
10845
+ ] : error.reason === "store.damaged" ? [nextStep("store.recover", {})] : [];
10577
10846
  return runnable(root, [...error.next ?? [], ...own]);
10578
10847
  }, "failureSteps");
10579
10848
  var withSafety = /* @__PURE__ */ __name((steps, targets) => steps.map((step2) => {
@@ -10602,7 +10871,7 @@ var stepLine = /* @__PURE__ */ __name((root, step2) => {
10602
10871
  ].join(" ");
10603
10872
  }, "stepLine");
10604
10873
 
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
10874
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/cli/output-budget.js
10606
10875
  var SOFT_OUTPUT_BYTES = 256 * 1024;
10607
10876
  var CARRIED = ["json", "compact", "offline", "timeout", "full", "brief", "maxOutputBytes"];
10608
10877
  var NOT_WITH_COMPACT = /* @__PURE__ */ new Set(["json", "brief"]);
@@ -10660,7 +10929,7 @@ var largeAnswerSteps = /* @__PURE__ */ __name((command) => {
10660
10929
  return args ? compactStep(command, args, "the answer is large as JSON; one line per item keeps every ref") : [];
10661
10930
  }, "largeAnswerSteps");
10662
10931
 
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
10932
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
10664
10933
  var HIDDEN = /* @__PURE__ */ new Set(["providerRef", "provider_ref"]);
10665
10934
  var withoutProviderRefs = /* @__PURE__ */ __name((value) => strip(value), "withoutProviderRefs");
10666
10935
  var strip = /* @__PURE__ */ __name((value) => {
@@ -10674,7 +10943,7 @@ var strip = /* @__PURE__ */ __name((value) => {
10674
10943
  return Object.fromEntries(Object.entries(value).flatMap(([key, inner]) => HIDDEN.has(key) ? [] : [[key, strip(inner)]]));
10675
10944
  }, "strip");
10676
10945
 
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
10946
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/cli/envelope.js
10678
10947
  var answerSchema = /* @__PURE__ */ __name((item = unknown()) => union([listEnvelopeSchema(item), itemEnvelopeSchema(item)]), "answerSchema");
10679
10948
  var capped2 = /* @__PURE__ */ __name((steps) => steps.length > 0 ? { next: steps.slice(0, MAX_NEXT_STEPS) } : {}, "capped");
10680
10949
  var listOf = /* @__PURE__ */ __name((command, input) => {
@@ -10914,9 +11183,11 @@ export {
10914
11183
  setExitCode,
10915
11184
  provide,
10916
11185
  environmentOf,
11186
+ withAgentLevels,
10917
11187
  secretInputOf,
10918
11188
  outputFor,
10919
11189
  baseContext,
11190
+ inCommandRun,
10920
11191
  REMOTE_READ,
10921
11192
  FETCH,
10922
11193
  REMOTE_WRITE,
@@ -10940,6 +11211,7 @@ export {
10940
11211
  fetchesOnly,
10941
11212
  fetchesOnlyAt,
10942
11213
  writesFileOnlyWith,
11214
+ writesNewFileOnlyWith,
10943
11215
  readsOverMcp,
10944
11216
  readsOverMcpAt,
10945
11217
  isStoreChange,
@@ -11014,6 +11286,7 @@ export {
11014
11286
  answerEntity,
11015
11287
  answerEntitySchema,
11016
11288
  answerProjectionSchema,
11289
+ ON_CHAT_ROW,
11017
11290
  STATUS_SIGNAL_ROWS,
11018
11291
  STATUS_ROWS,
11019
11292
  SHARED_ROWS,