@wirecat/zoom-cli 0.68.0 → 0.70.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 (156) hide show
  1. package/README.md +1 -1
  2. package/dist/account-removal.d.ts +6 -0
  3. package/dist/account-removal.d.ts.map +1 -0
  4. package/dist/account-removal.js +43 -0
  5. package/dist/account-removal.js.map +1 -0
  6. package/dist/bin/zm.js +2 -2
  7. package/dist/bundle/{all-profiles-R66UM3HM.js → all-profiles-GE2TFJJP.js} +9 -9
  8. package/dist/bundle/answer-policy-GOXSDYDD.js +104 -0
  9. package/dist/bundle/{anthropic-4ZI2BPLG.js → anthropic-FA6NHENI.js} +9 -7
  10. package/dist/bundle/{app-server-64O5IQI5.js → app-server-IRADMSNX.js} +50 -50
  11. package/dist/bundle/{bun-HUHQD76Z.js → bun-ZYZGGCX5.js} +2 -2
  12. package/dist/bundle/{bun-sqlite-VOVHPTIF.js → bun-sqlite-Y24TUIGS.js} +4 -4
  13. package/dist/bundle/{chunk-W42BJ65M.js → chunk-2JEM2YNV.js} +1 -1
  14. package/dist/bundle/{chunk-3BRV2YU2.js → chunk-2QFPVUM3.js} +2 -2
  15. package/dist/bundle/{chunk-KAPJQGHE.js → chunk-2U6SER67.js} +1 -1
  16. package/dist/bundle/{chunk-77I67HWF.js → chunk-3KC7C465.js} +7 -7
  17. package/dist/bundle/{chunk-YQRNFG2E.js → chunk-4DSIWYGO.js} +7661 -13544
  18. package/dist/bundle/{chunk-7DUYFITC.js → chunk-56OV5ASY.js} +11 -11
  19. package/dist/bundle/{chunk-AVEIQMHZ.js → chunk-5XWCBLUR.js} +1 -1
  20. package/dist/bundle/{chunk-HXOAPH47.js → chunk-6HJFIMT7.js} +1 -1
  21. package/dist/bundle/{chunk-SSPSNSC5.js → chunk-6IF5ZHDS.js} +1 -1
  22. package/dist/bundle/{chunk-BOAMDYLY.js → chunk-7QC4M4HS.js} +2 -2
  23. package/dist/bundle/{chunk-6T3P226D.js → chunk-AISJCF7A.js} +4 -4
  24. package/dist/bundle/chunk-AT2XKNFN.js +342 -0
  25. package/dist/bundle/{chunk-BSM43OMN.js → chunk-AUNW7N4I.js} +1 -1
  26. package/dist/bundle/{chunk-R7LFGEDE.js → chunk-BSS6HX4O.js} +2 -2
  27. package/dist/bundle/{chunk-FMQS7HCC.js → chunk-BVWF4B33.js} +251 -10
  28. package/dist/bundle/{chunk-DGNPJGD3.js → chunk-CEJJBZAE.js} +9 -15
  29. package/dist/bundle/{chunk-L4WVLRXM.js → chunk-CHGUNZ3L.js} +3 -3
  30. package/dist/bundle/{chunk-LBOSTBAY.js → chunk-CIZ25UPK.js} +3841 -2497
  31. package/dist/bundle/{chunk-TN3FH2GQ.js → chunk-CSEBB4OP.js} +8 -8
  32. package/dist/bundle/{chunk-JO4YADNV.js → chunk-D3PNCJD5.js} +5 -5
  33. package/dist/bundle/{chunk-US5C3WAY.js → chunk-DCUWJITQ.js} +30 -30
  34. package/dist/bundle/{chunk-QXTREL2M.js → chunk-DNR4B5YV.js} +2 -2
  35. package/dist/bundle/{chunk-PUTGTW6W.js → chunk-DXCTW3MV.js} +1 -1
  36. package/dist/bundle/{chunk-B6JMVB6R.js → chunk-EOSVN2ER.js} +1 -1
  37. package/dist/bundle/{chunk-ZRD3NDOX.js → chunk-GB5X3GBE.js} +23 -1
  38. package/dist/bundle/{chunk-32FPA7P2.js → chunk-GVT5363M.js} +2 -2
  39. package/dist/bundle/{chunk-EWIBLDQQ.js → chunk-IINZIP73.js} +7 -7
  40. package/dist/bundle/{chunk-5JAYUG3X.js → chunk-IS3ZTT2Z.js} +5 -5
  41. package/dist/bundle/{chunk-LYWUG43B.js → chunk-IWPXWGF7.js} +34 -34
  42. package/dist/bundle/{chunk-JRCYFCPL.js → chunk-J3SKXICS.js} +350 -136
  43. package/dist/bundle/{chunk-UDJTRFRV.js → chunk-JRO2FWO2.js} +1 -1
  44. package/dist/bundle/chunk-JULBAECW.js +126 -0
  45. package/dist/bundle/{chunk-FNQASORM.js → chunk-KM736RMJ.js} +1 -1
  46. package/dist/bundle/{chunk-4TLPOY22.js → chunk-KWRCP55G.js} +11 -11
  47. package/dist/bundle/{chunk-SRP6SFFD.js → chunk-L24UOUWG.js} +1 -1
  48. package/dist/bundle/{chunk-AJ7CMUGD.js → chunk-LAG5O2FV.js} +218 -231
  49. package/dist/bundle/{chunk-UU5PLDRA.js → chunk-LXXCLQCW.js} +2 -2
  50. package/dist/bundle/{chunk-65T3PU75.js → chunk-M6JIXMQZ.js} +5 -1
  51. package/dist/bundle/{chunk-LV7QRR5S.js → chunk-M7E44TMT.js} +5 -5
  52. package/dist/bundle/{chunk-6XO7RTJY.js → chunk-M7VUXXGS.js} +110 -8
  53. package/dist/bundle/{chunk-A63ZFOQJ.js → chunk-MVOMLJYQ.js} +3 -3
  54. package/dist/bundle/{chunk-DVA6MQWK.js → chunk-OA37BWE5.js} +1 -1
  55. package/dist/bundle/{chunk-77KFLU5F.js → chunk-OAQLVV6W.js} +2 -2
  56. package/dist/bundle/{chunk-KNE6VFHZ.js → chunk-OORMSM6O.js} +1 -1
  57. package/dist/bundle/{chunk-TZUKDM72.js → chunk-PV6OHXHN.js} +16 -16
  58. package/dist/bundle/{chunk-2OSBCYJT.js → chunk-QL7EMFIC.js} +18 -18
  59. package/dist/bundle/{chunk-4YFJYSSK.js → chunk-QO2KPU26.js} +45 -29
  60. package/dist/bundle/{chunk-GOXDBCDM.js → chunk-RB33VTUW.js} +297 -397
  61. package/dist/bundle/{chunk-TDGZMC6K.js → chunk-RIPAUCKJ.js} +59 -55
  62. package/dist/bundle/{chunk-6CJ7NHIP.js → chunk-RO3ZR4VP.js} +12 -12
  63. package/dist/bundle/{chunk-BL36NSV5.js → chunk-RQG5VOGH.js} +12 -2
  64. package/dist/bundle/{chunk-YTF2WPV4.js → chunk-RRRJCHUC.js} +2162 -1250
  65. package/dist/bundle/chunk-RWIILYKW.js +66 -0
  66. package/dist/bundle/{chunk-YJY3W2ZT.js → chunk-SNIY3JDN.js} +21 -18
  67. package/dist/bundle/{chunk-EH5QGQFR.js → chunk-SVF3NDAO.js} +3 -3
  68. package/dist/bundle/{chunk-VLD7Y4SY.js → chunk-UVPL7YAY.js} +5 -5
  69. package/dist/bundle/{chunk-2T6XHWDX.js → chunk-V2E7QFZ3.js} +1 -1
  70. package/dist/bundle/{chunk-K67V24AT.js → chunk-V5GRSOCZ.js} +4 -4
  71. package/dist/bundle/{chunk-DWSUSWAX.js → chunk-VE2VNECR.js} +131 -12
  72. package/dist/bundle/{chunk-RRYUD2EF.js → chunk-VJ5ZU4UF.js} +22 -4
  73. package/dist/bundle/{chunk-7QNJICKZ.js → chunk-VNU5L37V.js} +26 -26
  74. package/dist/bundle/{chunk-6TJ62LZQ.js → chunk-VSLDWT4E.js} +3 -3
  75. package/dist/bundle/{chunk-P2TISY3R.js → chunk-W7ZEEC4K.js} +1 -1
  76. package/dist/bundle/{chunk-NRRI37NJ.js → chunk-WOIHSQAL.js} +44 -0
  77. package/dist/bundle/{chunk-EJDV5IIF.js → chunk-X4ZF4XXI.js} +1 -1
  78. package/dist/bundle/{chunk-FBLUKCIR.js → chunk-XRFHQGOD.js} +1 -1
  79. package/dist/bundle/{chunk-KUB2U5NT.js → chunk-XWQNJKTP.js} +5 -5
  80. package/dist/bundle/chunk-Y6C3N7YG.js +12434 -0
  81. package/dist/bundle/{chunk-474WF55M.js → chunk-YJSPBUGB.js} +63 -32
  82. package/dist/bundle/{chunk-RP3U3J53.js → chunk-YTN2JN6N.js} +7 -7
  83. package/dist/bundle/{chunk-Y5LP5SHV.js → chunk-YUHM2OJM.js} +10 -10
  84. package/dist/bundle/{chunk-7AUP2WT3.js → chunk-ZBKWRYRS.js} +2 -2
  85. package/dist/bundle/{chunk-355PHJYX.js → chunk-ZS55EERO.js} +1 -1
  86. package/dist/bundle/{chunk-TUNQ6NE2.js → chunk-ZSKE7N2U.js} +3 -3
  87. package/dist/bundle/{chunk-PIHBD3YS.js → chunk-ZV3INEKM.js} +4 -4
  88. package/dist/bundle/{cli-VQJ7ZRYR.js → cli-VRSQ7HAE.js} +76 -60
  89. package/dist/bundle/command-contract-RPRKHVU6.js +41 -0
  90. package/dist/bundle/config-QU6A6VIO.js +90 -0
  91. package/dist/bundle/{decode-L3ENO2XH.js → decode-523PUQMR.js} +4 -4
  92. package/dist/bundle/{dispatch-5MGDLOK4.js → dispatch-IZCAK47P.js} +1 -1
  93. package/dist/bundle/{dist-WQLS7U23.js → dist-6WWKPEVW.js} +98 -22
  94. package/dist/bundle/{echarts-5LLJ6JXC.js → echarts-S5UMX2D3.js} +2 -2
  95. package/dist/bundle/{embed-37MYTCU7.js → embed-ODPDVHUK.js} +5 -5
  96. package/dist/bundle/{embedder-GNGHVJAO.js → embedder-PAXRBSZE.js} +8 -8
  97. package/dist/bundle/{failure-CR64C4XA.js → failure-R2OIHCE5.js} +1 -1
  98. package/dist/bundle/{first-run-NR5JKYP3.js → first-run-NVTDR5VO.js} +8 -8
  99. package/dist/bundle/first-screen-5RWZDWLK.js +39 -0
  100. package/dist/bundle/{folders-VU4IN35Y.js → folders-ZXTOFY4T.js} +3 -3
  101. package/dist/bundle/{instructions-P72XX4AK.js → instructions-DUB7E6C5.js} +1 -1
  102. package/dist/bundle/{main-QYFCYSTW.js → main-A7JSYQI6.js} +18 -18
  103. package/dist/bundle/{meetings-66UQINKI.js → meetings-BDZQV3HR.js} +4 -4
  104. package/dist/bundle/{node-ZB4RNICS.js → node-E25KP53H.js} +2 -2
  105. package/dist/bundle/{node-sqlite-XPRKBDF3.js → node-sqlite-PHWDFZCP.js} +5 -5
  106. package/dist/bundle/{oauth-WJRDUU5J.js → oauth-G2K46IYP.js} +6 -6
  107. package/dist/bundle/{open-S2YSIEOW.js → open-INWS5HIZ.js} +4 -4
  108. package/dist/bundle/{openai-CRNZFNZD.js → openai-T44ORVGQ.js} +10 -10
  109. package/dist/bundle/{output-file-6COFGPUL.js → output-file-YGQYZCBJ.js} +4 -4
  110. package/dist/bundle/{process-XNN4WG6N.js → process-UJ2JHMJN.js} +1 -1
  111. package/dist/bundle/{program-BRPJKRCX.js → program-LYTGFV6L.js} +115 -72
  112. package/dist/bundle/{prompt-7RQOL25I.js → prompt-VTUCRCE4.js} +6 -4
  113. package/dist/bundle/{recognize-N5WADGQB.js → recognize-3CEPOW2F.js} +3 -3
  114. package/dist/bundle/{remote-WHYV35IF.js → remote-DRQEXEZL.js} +6 -6
  115. package/dist/bundle/{rerank-FBMZVWSH.js → rerank-UL4KNNVN.js} +6 -6
  116. package/dist/bundle/{run-log-TOCHREH2.js → run-log-UZAB5CWF.js} +54 -54
  117. package/dist/bundle/{serve-4BABX4WS.js → serve-P5UWUOWQ.js} +8 -8
  118. package/dist/bundle/server-F3NPVMS2.js +72 -0
  119. package/dist/bundle/{server-CDVI6LOB.js → server-M6XK2Y3X.js} +42 -42
  120. package/dist/bundle/{services-PIY33I7R.js → services-4HRYNY62.js} +66 -30
  121. package/dist/bundle/{speech-LS5Q4FL2.js → speech-BBPBMFAO.js} +12 -12
  122. package/dist/bundle/{state-YUX5R2R7.js → state-GDSUNUSY.js} +5 -5
  123. package/dist/bundle/{store-BD7HAXAA.js → store-LBQ6FZP2.js} +41 -15
  124. package/dist/bundle/{store-ERMGBF2B.js → store-VWLABMLF.js} +57 -17
  125. package/dist/bundle/store-connection-XEBFP56U.js +83 -0
  126. package/dist/bundle/store-maintenance-command-G43JN57J.js +61 -0
  127. package/dist/bundle/{streaming-O53PIORL.js → streaming-EJ3NM2C2.js} +5 -5
  128. package/dist/bundle/{tokens-QKNEP2GJ.js → tokens-BE6CJMR5.js} +5 -5
  129. package/dist/bundle/zm.js +3 -3
  130. package/dist/bundle/{zoom-app-XJXZ4ZBX.js → zoom-app-YIEJLWCW.js} +6 -6
  131. package/dist/first-screen.d.ts.map +1 -1
  132. package/dist/first-screen.js +1 -0
  133. package/dist/first-screen.js.map +1 -1
  134. package/dist/permissions.js +1 -1
  135. package/dist/permissions.js.map +1 -1
  136. package/dist/setup-commands.d.ts.map +1 -1
  137. package/dist/setup-commands.js +11 -0
  138. package/dist/setup-commands.js.map +1 -1
  139. package/dist/tokens.d.ts +2 -0
  140. package/dist/tokens.d.ts.map +1 -1
  141. package/dist/tokens.js +11 -0
  142. package/dist/tokens.js.map +1 -1
  143. package/dist/version.d.ts +1 -1
  144. package/dist/version.js +1 -1
  145. package/package.json +2 -2
  146. package/dist/bundle/answer-policy-UCGUO53A.js +0 -104
  147. package/dist/bundle/chunk-AYEVBAGO.js +0 -178
  148. package/dist/bundle/chunk-EZRPSZJS.js +0 -33
  149. package/dist/bundle/chunk-NUJMJQXV.js +0 -787
  150. package/dist/bundle/chunk-YOAEZSDG.js +0 -22
  151. package/dist/bundle/command-contract-JPUWWYIV.js +0 -41
  152. package/dist/bundle/config-YGLLR77A.js +0 -90
  153. package/dist/bundle/first-screen-RCR7ATO2.js +0 -39
  154. package/dist/bundle/server-XOFQKFVO.js +0 -72
  155. package/dist/bundle/store-connection-JBR6CMTJ.js +0 -83
  156. package/dist/bundle/store-maintenance-command-I5DUSO2C.js +0 -62
@@ -1,10 +1,5 @@
1
1
  import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
- import {
4
- envName,
5
- readOnlyLockOf,
6
- readOnlyRefusal
7
- } from "./chunk-AVEIQMHZ.js";
8
3
  import {
9
4
  currentCaller,
10
5
  endpointTemplate,
@@ -14,18 +9,18 @@ import {
14
9
  providerErrorKey,
15
10
  renderEvent,
16
11
  runContextOf
17
- } from "./chunk-RP3U3J53.js";
12
+ } from "./chunk-YTN2JN6N.js";
18
13
  import {
19
14
  permissionCeiling
20
- } from "./chunk-L4WVLRXM.js";
15
+ } from "./chunk-CHGUNZ3L.js";
21
16
  import {
22
17
  fieldsOf,
23
18
  projectFields,
24
19
  resolveOutput
25
- } from "./chunk-JO4YADNV.js";
20
+ } from "./chunk-D3PNCJD5.js";
26
21
  import {
27
22
  carries
28
- } from "./chunk-DVA6MQWK.js";
23
+ } from "./chunk-OA37BWE5.js";
29
24
  import {
30
25
  DEFAULT_HISTORY_LIMITS,
31
26
  DEFAULT_RERANK_MODEL,
@@ -43,11 +38,14 @@ import {
43
38
  conversation,
44
39
  currentRun,
45
40
  enclosingTraceId,
41
+ endpoint,
46
42
  hitFile,
47
43
  inRun,
48
44
  logAttributes,
45
+ modelSettingsShape,
49
46
  newRunId,
50
47
  parseDuration,
48
+ resolveModelSettings,
51
49
  runsDirFor,
52
50
  snakeLogger,
53
51
  startRun,
@@ -58,10 +56,12 @@ import {
58
56
  typedCommand,
59
57
  useAsProcessRun,
60
58
  withWriteScope
61
- } from "./chunk-JRCYFCPL.js";
59
+ } from "./chunk-J3SKXICS.js";
62
60
  import {
63
- isCliFailure
64
- } from "./chunk-YOAEZSDG.js";
61
+ envName,
62
+ readOnlyLockOf,
63
+ readOnlyRefusal
64
+ } from "./chunk-5XWCBLUR.js";
65
65
  import {
66
66
  CEILING_KEY,
67
67
  COMMAND_PATH_KEY,
@@ -72,10 +72,10 @@ import {
72
72
  keyForCommand,
73
73
  layerPermissions,
74
74
  permissionOverrides
75
- } from "./chunk-65T3PU75.js";
75
+ } from "./chunk-M6JIXMQZ.js";
76
76
  import {
77
77
  note
78
- } from "./chunk-TUNQ6NE2.js";
78
+ } from "./chunk-ZSKE7N2U.js";
79
79
  import {
80
80
  FACT_STATUSES,
81
81
  LINK_KINDS,
@@ -84,7 +84,6 @@ import {
84
84
  MEMORY_SCOPES,
85
85
  MEMORY_STATUSES,
86
86
  PRIORITY_LABELS,
87
- RELATION_KINDS,
88
87
  TASK_KINDS,
89
88
  TASK_ORIGINS,
90
89
  TASK_STATES,
@@ -95,6 +94,7 @@ import {
95
94
  count,
96
95
  evidenceSource,
97
96
  id,
97
+ markStoreDamaged,
98
98
  organization,
99
99
  project,
100
100
  providerMetadata,
@@ -102,19 +102,27 @@ import {
102
102
  text,
103
103
  time,
104
104
  untrusted
105
- } from "./chunk-DWSUSWAX.js";
105
+ } from "./chunk-VE2VNECR.js";
106
+ import {
107
+ isCliFailure,
108
+ storeDamaged
109
+ } from "./chunk-RWIILYKW.js";
106
110
  import {
107
111
  sharedConfigPath
108
- } from "./chunk-VLD7Y4SY.js";
112
+ } from "./chunk-UVPL7YAY.js";
109
113
  import {
114
+ BUSINESS_KINDS,
115
+ DEAL_ROLES,
110
116
  INVOICE_DIRECTIONS,
111
117
  MONEY_DIRECTIONS,
112
118
  ORDER_PURPOSES,
113
- ORDER_STATUSES
114
- } from "./chunk-AYEVBAGO.js";
119
+ ORDER_STATUSES,
120
+ RELATION_KINDS,
121
+ STANDINGS
122
+ } from "./chunk-AT2XKNFN.js";
115
123
  import {
116
124
  storePath
117
- } from "./chunk-32FPA7P2.js";
125
+ } from "./chunk-GVT5363M.js";
118
126
  import {
119
127
  FACT_TYPES,
120
128
  MEETING_RESULT_ENTITIES,
@@ -132,12 +140,12 @@ import {
132
140
  meetingStats,
133
141
  meetingSummary,
134
142
  meetingTranscript
135
- } from "./chunk-TDGZMC6K.js";
143
+ } from "./chunk-RIPAUCKJ.js";
136
144
  import {
137
145
  FIELD_TYPES,
138
146
  QUERY_BACKENDS,
139
147
  describeQuery
140
- } from "./chunk-B6JMVB6R.js";
148
+ } from "./chunk-EOSVN2ER.js";
141
149
  import {
142
150
  configFilePath,
143
151
  createRecordLog,
@@ -146,7 +154,7 @@ import {
146
154
  resolvePaths,
147
155
  saveConfigFile,
148
156
  writeSecurely
149
- } from "./chunk-KNE6VFHZ.js";
157
+ } from "./chunk-OORMSM6O.js";
150
158
  import {
151
159
  COMPACT_FLAG,
152
160
  MAX_NEXT_STEPS,
@@ -157,7 +165,6 @@ import {
157
165
  defineSteps,
158
166
  effectsSchema,
159
167
  exitCodeOfAnswer,
160
- getDotPath,
161
168
  integer,
162
169
  isoDate,
163
170
  isoTime,
@@ -198,7 +205,7 @@ import {
198
205
  unwrap,
199
206
  variant,
200
207
  writes
201
- } from "./chunk-NRRI37NJ.js";
208
+ } from "./chunk-WOIHSQAL.js";
202
209
  import {
203
210
  CliError
204
211
  } from "./chunk-FEM2JQN2.js";
@@ -4004,7 +4011,7 @@ var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
4004
4011
  }
4005
4012
  }, "refuseJoinedPath");
4006
4013
 
4007
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/runs/log-events.js
4014
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/runs/log-events.js
4008
4015
  var CORE_LOG_EVENTS = defineLogEvents([
4009
4016
  { id: "provider.request", meaning: "a request went to the messenger", keys: ["operation"] },
4010
4017
  { id: "provider.response", meaning: "the messenger answered the request, or it failed", keys: ["operation"] },
@@ -4038,7 +4045,7 @@ var DIAGNOSTIC_LOG_EVENTS = {
4038
4045
  cache: "cache.answered"
4039
4046
  };
4040
4047
 
4041
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/runs/recording.js
4048
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/runs/recording.js
4042
4049
  var recorded = /* @__PURE__ */ __name(async (options, body) => {
4043
4050
  const recording = startRecording(options);
4044
4051
  try {
@@ -4129,7 +4136,14 @@ var startRecording = /* @__PURE__ */ __name((options) => {
4129
4136
  ...partial2 ? { partial: partial2 } : {}
4130
4137
  });
4131
4138
  }, "succeed"),
4132
- fail: /* @__PURE__ */ __name(async (error) => {
4139
+ fail: /* @__PURE__ */ __name(async (thrown) => {
4140
+ const error = storeDamaged(thrown);
4141
+ markStoreDamaged(thrown, {
4142
+ store: storePath(options.env),
4143
+ command: `${options.app.command} ${options.command}`,
4144
+ version: options.app.version,
4145
+ runId
4146
+ });
4133
4147
  const failed = run ?? (held ? keep(open({ startedAt })) : void 0);
4134
4148
  if (failed) {
4135
4149
  if (!isCliFailure(error))
@@ -4144,8 +4158,8 @@ var startRecording = /* @__PURE__ */ __name((options) => {
4144
4158
  ...run ? {} : { keptBecauseFailed: true }
4145
4159
  });
4146
4160
  }
4147
- if (typeof error === "object" && error !== null)
4148
- settled.add(error);
4161
+ if (typeof thrown === "object" && thrown !== null)
4162
+ settled.add(thrown);
4149
4163
  }, "fail")
4150
4164
  };
4151
4165
  }, "startRecording");
@@ -4223,7 +4237,7 @@ var partialOutcome = /* @__PURE__ */ __name((answer) => {
4223
4237
  return void 0;
4224
4238
  }, "partialOutcome");
4225
4239
 
4226
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/cli/deadline.js
4240
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/cli/deadline.js
4227
4241
  var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
4228
4242
  if (ms2 === void 0)
4229
4243
  return body();
@@ -4249,7 +4263,7 @@ var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
4249
4263
  }
4250
4264
  }, "withDeadline");
4251
4265
 
4252
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/cli/execution.js
4266
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/cli/execution.js
4253
4267
  var DEFAULT_COMMAND_MS = 3e4;
4254
4268
  var DEFAULT_COOPERATIVE_MS = 5 * 6e4;
4255
4269
  var DEFAULT_SYNC_MS = 15 * 6e4;
@@ -4432,7 +4446,7 @@ var withAbort = /* @__PURE__ */ __name(async (signal, body) => {
4432
4446
  }
4433
4447
  }, "withAbort");
4434
4448
 
4435
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/cli/profile.js
4449
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/cli/profile.js
4436
4450
  var asFirstWord = /* @__PURE__ */ __name((profile) => `${profile} `, "asFirstWord");
4437
4451
  var PLAIN_NAME = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
4438
4452
  var isProfileName = /* @__PURE__ */ __name((word) => PLAIN_NAME.test(word), "isProfileName");
@@ -4501,86 +4515,7 @@ var sampleCommand = /* @__PURE__ */ __name((commands) => {
4501
4515
  return void 0;
4502
4516
  }, "sampleCommand");
4503
4517
 
4504
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/models/endpoint.js
4505
- var endpoint = /* @__PURE__ */ __name((value) => {
4506
- try {
4507
- const url2 = new URL(value);
4508
- return ["https:", "http:"].includes(url2.protocol) && !url2.username && !url2.password && !url2.search && !url2.hash;
4509
- } catch {
4510
- return false;
4511
- }
4512
- }, "endpoint");
4513
-
4514
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/models/settings.js
4515
- var MODEL_FIELDS = ["provider", "model", "base_url"];
4516
- var modelSettingsShape = record(pipe(string(), regex(/^[a-z][a-z0-9-]*$/)), strictObject({
4517
- provider: optional(picklist(["off", "openai", "anthropic"])),
4518
- model: optional(pipe(string(), trim(), minLength(1), maxLength(200))),
4519
- base_url: optional(pipe(string(), check((value) => endpoint(value), "use an HTTP/S endpoint without credentials, query or fragment")))
4520
- }));
4521
- var resolveModelSettings = /* @__PURE__ */ __name((prefix, layers, env) => {
4522
- const configured = layers.map(([from, scope]) => [from, scope?.models ?? {}]);
4523
- const purposes = /* @__PURE__ */ new Set([
4524
- "default",
4525
- "analysis",
4526
- "replies",
4527
- ...configured.flatMap(([, models2]) => Object.keys(models2))
4528
- ]);
4529
- for (const name of Object.keys(env)) {
4530
- const match = new RegExp(`^${prefix}_MODELS_([A-Z][A-Z0-9_]*)_(PROVIDER|MODEL|BASE_URL)$`).exec(name);
4531
- if (match?.[1])
4532
- purposes.add(match[1].toLowerCase().replaceAll("_", "-"));
4533
- }
4534
- const models = {};
4535
- const sources = {};
4536
- for (const purpose of purposes) {
4537
- const resolved = {};
4538
- for (const field of MODEL_FIELDS) {
4539
- const variable = `${prefix}_MODELS_${purpose.replaceAll("-", "_").toUpperCase()}_${field.toUpperCase()}`;
4540
- const candidates = [
4541
- [variable, env[variable]?.trim() || void 0],
4542
- ...configured.map(([from, model3]) => [
4543
- `${from}: models.${purpose}.${field}`,
4544
- model3[purpose]?.[field]
4545
- ]),
4546
- ...purpose === "default" ? [] : [
4547
- [
4548
- `${prefix}_MODELS_DEFAULT_${field.toUpperCase()}`,
4549
- env[`${prefix}_MODELS_DEFAULT_${field.toUpperCase()}`]?.trim() || void 0
4550
- ],
4551
- ...configured.map(([from, model3]) => [
4552
- `${from}: models.default.${field}`,
4553
- model3.default?.[field]
4554
- ])
4555
- ]
4556
- ];
4557
- const selected = candidates.find(([, value]) => value !== void 0);
4558
- if (selected)
4559
- resolved[field] = selected[1];
4560
- sources[`models.${purpose}.${field}`] = selected?.[0] ?? "default";
4561
- }
4562
- if (Object.keys(resolved).length)
4563
- models[purpose] = resolved;
4564
- }
4565
- const checked = safeParse(modelSettingsShape, models);
4566
- if (!checked.success)
4567
- throw new CliError("configuration_error", `models.${getDotPath(checked.issues[0]) ?? "settings"} is invalid`);
4568
- return { models: checked.output, sources };
4569
- }, "resolveModelSettings");
4570
- var modelTarget = /* @__PURE__ */ __name((settings, purpose) => {
4571
- const configured = { ...settings.models?.default, ...settings.models?.[purpose] };
4572
- if (configured.provider === void 0 || configured.provider === "off")
4573
- return void 0;
4574
- if (!configured.model)
4575
- throw new CliError("configuration_error", `set models.${purpose}.model before calling its provider`);
4576
- return {
4577
- provider: configured.provider,
4578
- model: configured.model,
4579
- ...configured.base_url === void 0 ? {} : { baseUrl: configured.base_url }
4580
- };
4581
- }, "modelTarget");
4582
-
4583
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/analysis/settings.js
4518
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/analysis/settings.js
4584
4519
  var model = pipe(string(), trim(), minLength(1), maxLength(200));
4585
4520
  var url = pipe(string(), check(endpoint, "use an HTTP/S endpoint without credentials, query or fragment"));
4586
4521
  var AI_FIELDS = {
@@ -4624,7 +4559,7 @@ var resolveAISettings = /* @__PURE__ */ __name((prefix, layers, env) => {
4624
4559
  };
4625
4560
  }, "resolveAISettings");
4626
4561
 
4627
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/cli/bot/registry.js
4562
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/cli/bot/registry.js
4628
4563
  import { existsSync, readdirSync, readFileSync } from "node:fs";
4629
4564
  import { join } from "node:path";
4630
4565
  var botsDirectory = /* @__PURE__ */ __name((app, env = process.env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "bots"), "botsDirectory");
@@ -4713,10 +4648,10 @@ var registryProfiles = /* @__PURE__ */ __name((app, env = process.env) => {
4713
4648
  return readdirSync(directory, { withFileTypes: true }).filter((entry) => entry.isFile() && entry.name.endsWith(".json")).map((entry) => entry.name).map((name) => name.slice(0, -".json".length));
4714
4649
  }, "registryProfiles");
4715
4650
 
4716
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
4651
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
4717
4652
  import { readFileSync as readFileSync2 } from "node:fs";
4718
4653
 
4719
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/cli/config-repair.js
4654
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/cli/config-repair.js
4720
4655
  var REPAIR_WORDS = {
4721
4656
  byte_order_mark: "an invisible byte-order mark at the start",
4722
4657
  comment: "a comment, which JSON does not allow",
@@ -4957,7 +4892,7 @@ ${parts.join(",\n")}
4957
4892
  ${indent}${close}`;
4958
4893
  }, "serialise");
4959
4894
 
4960
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
4895
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
4961
4896
  var isNode = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
4962
4897
  var SECTIONS = ["personal", "bot"];
4963
4898
  var SHELL_SAFE = /^[A-Za-z0-9_.:@-]*$/;
@@ -5252,7 +5187,7 @@ var readConfigFile = /* @__PURE__ */ __name((path2) => {
5252
5187
  return "issue" in parsed ? { issue: publicIssue(parsed.issue) } : parsed;
5253
5188
  }, "readConfigFile");
5254
5189
 
5255
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/cli/default-config.js
5190
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/cli/default-config.js
5256
5191
  import { existsSync as existsSync2, linkSync, mkdirSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";
5257
5192
  import { dirname, join as join2 } from "node:path";
5258
5193
  var DEFAULT_CONFIG = {
@@ -5281,7 +5216,7 @@ function ensureDefaultConfig(path2, config = DEFAULT_CONFIG) {
5281
5216
  }
5282
5217
  __name(ensureDefaultConfig, "ensureDefaultConfig");
5283
5218
 
5284
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/cli/messenger/accounts.js
5219
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/cli/messenger/accounts.js
5285
5220
  import { existsSync as existsSync3, readdirSync as readdirSync2, readFileSync as readFileSync3 } from "node:fs";
5286
5221
  import { join as join3 } from "node:path";
5287
5222
  var accountFileFor = /* @__PURE__ */ __name((app, profile, env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "accounts", `${profile}.json`), "accountFileFor");
@@ -5303,7 +5238,7 @@ var profilesWithAccounts = /* @__PURE__ */ __name((app, env) => {
5303
5238
  }, "profilesWithAccounts");
5304
5239
  var profilesHere = /* @__PURE__ */ __name((app, configured, env) => [.../* @__PURE__ */ new Set([...configured, ...profilesWithAccounts(app, env)])].sort(), "profilesHere");
5305
5240
 
5306
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/cli/setting-defaults.js
5241
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/cli/setting-defaults.js
5307
5242
  var isNode2 = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
5308
5243
  var parentOf = /* @__PURE__ */ __name((config, key) => {
5309
5244
  const path2 = key.split(".");
@@ -5336,7 +5271,7 @@ var settingRows = /* @__PURE__ */ __name((raw, declared) => declared.map((settin
5336
5271
  };
5337
5272
  }), "settingRows");
5338
5273
 
5339
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/cli/settings.js
5274
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/cli/settings.js
5340
5275
  import { existsSync as existsSync4 } from "node:fs";
5341
5276
  var DEFAULT_LIMIT = DEFAULT_CONFIG.defaults.limit;
5342
5277
  var DEFAULT_KEEP_RUNS_FOR_DAYS = DEFAULT_CONFIG.defaults.keep_runs_for_days;
@@ -5847,7 +5782,7 @@ var given = /* @__PURE__ */ __name((value) => {
5847
5782
  return trimmed === void 0 || trimmed === "" ? void 0 : trimmed;
5848
5783
  }, "given");
5849
5784
 
5850
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/background/budget.js
5785
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/background/budget.js
5851
5786
  var DEADLINE_MARGIN_MS = 5e3;
5852
5787
  var DEADLINE_MARGIN_SHARE = 0.15;
5853
5788
  var DEFAULT_REQUEST_MS = 2e3;
@@ -5890,7 +5825,7 @@ var runBudget = /* @__PURE__ */ __name(({ requests, deadline, requestMs, signal,
5890
5825
  };
5891
5826
  }, "runBudget");
5892
5827
 
5893
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/cli/context.js
5828
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/cli/context.js
5894
5829
  var runBudgetOf = /* @__PURE__ */ __name((command, requests) => {
5895
5830
  const { deadline, signal, app } = environmentOf(command);
5896
5831
  const now = deadline?.();
@@ -6022,7 +5957,7 @@ var commandPath = /* @__PURE__ */ __name((command) => {
6022
5957
  return words.join(" ");
6023
5958
  }, "commandPath");
6024
5959
 
6025
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/cli/effects.js
5960
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/cli/effects.js
6026
5961
  var REMOTE_READ = { remote: "read", local: "read" };
6027
5962
  var FETCH = { remote: "read", local: "write" };
6028
5963
  var REMOTE_WRITE = { remote: "write", local: "write" };
@@ -6168,7 +6103,7 @@ var refuseUnderReadOnly = /* @__PURE__ */ __name((command, what) => {
6168
6103
  throw readOnlyRefusal(lock, what);
6169
6104
  }, "refuseUnderReadOnly");
6170
6105
 
6171
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/member.js
6106
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/member.js
6172
6107
  var member = strictObject({
6173
6108
  id,
6174
6109
  name: nullable(text),
@@ -6191,7 +6126,7 @@ var member = strictObject({
6191
6126
  check: optional(record(string(), unknown()))
6192
6127
  });
6193
6128
 
6194
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/chat.js
6129
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/chat.js
6195
6130
  var setting = optional(nullable(boolean()));
6196
6131
  var chat = strictObject({
6197
6132
  ref: reference,
@@ -6232,7 +6167,7 @@ var chat = strictObject({
6232
6167
  members: optional(array(member))
6233
6168
  });
6234
6169
 
6235
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/list-results.js
6170
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/list-results.js
6236
6171
  var botProfile = strictObject({
6237
6172
  name: text,
6238
6173
  token: text,
@@ -6325,7 +6260,7 @@ var stickerInventory = strictObject({
6325
6260
  url: optional(nullable(text))
6326
6261
  });
6327
6262
 
6328
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/batch-result.js
6263
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/batch-result.js
6329
6264
  var actionableError = objectWithRest({
6330
6265
  code: text,
6331
6266
  message: text,
@@ -6342,7 +6277,7 @@ var batchResult = strictObject({
6342
6277
  max_error_percent: count
6343
6278
  });
6344
6279
 
6345
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/conversation-preparation.js
6280
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/conversation-preparation.js
6346
6281
  var conversationBuild = strictObject({
6347
6282
  chat: id,
6348
6283
  messages: count,
@@ -6367,13 +6302,13 @@ var catchUpPreparation = strictObject({
6367
6302
  prepared: optional(conversationPreparation)
6368
6303
  });
6369
6304
 
6370
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
6305
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
6371
6306
  import { spawn } from "node:child_process";
6372
6307
  import { randomBytes } from "node:crypto";
6373
6308
  import { closeSync, existsSync as existsSync6, mkdirSync as mkdirSync2, openSync, readdirSync as readdirSync3, readFileSync as readFileSync5, realpathSync, rmSync as rmSync3 } from "node:fs";
6374
6309
  import { dirname as dirname2, join as join5 } from "node:path";
6375
6310
 
6376
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/background/checkpoints.js
6311
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/background/checkpoints.js
6377
6312
  import { existsSync as existsSync5, readFileSync as readFileSync4, rmSync as rmSync2 } from "node:fs";
6378
6313
  import { join as join4 } from "node:path";
6379
6314
  var PART = /^[\w@+-][\w.@+-]{0,99}$/;
@@ -6413,7 +6348,7 @@ var progressOf = /* @__PURE__ */ __name((input) => {
6413
6348
  };
6414
6349
  }, "progressOf");
6415
6350
 
6416
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/runs/record-log.js
6351
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/runs/record-log.js
6417
6352
  var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) => {
6418
6353
  const run = currentRun();
6419
6354
  const trace = traceId ?? run.traceId;
@@ -6427,7 +6362,7 @@ var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) =
6427
6362
  }));
6428
6363
  }, "recordLogFor");
6429
6364
 
6430
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
6365
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
6431
6366
  var JOB_STATES = ["running", "done", "partial", "failed", "cancelled", "died"];
6432
6367
  var spawnDetached = /* @__PURE__ */ __name((argv, env, log) => {
6433
6368
  const out = openSync(log, "a", 384);
@@ -6582,7 +6517,7 @@ var startArchiveJob = /* @__PURE__ */ __name((app, env, profile, input, spawnJob
6582
6517
  return { job: id6, pid, chat: input.chat, log };
6583
6518
  }, "startArchiveJob");
6584
6519
 
6585
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/job.js
6520
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/job.js
6586
6521
  var problem = strictObject({ code: text, message: text });
6587
6522
  var job = strictObject({
6588
6523
  id,
@@ -6605,7 +6540,7 @@ var job = strictObject({
6605
6540
  error: optional(problem)
6606
6541
  });
6607
6542
 
6608
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/message.js
6543
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/message.js
6609
6544
  var quoted = strictObject({
6610
6545
  id,
6611
6546
  sender_id: nullable(id),
@@ -6724,7 +6659,7 @@ var message = strictObject({
6724
6659
  provider_metadata: providerMetadata
6725
6660
  });
6726
6661
 
6727
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/extraction-report.js
6662
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/extraction-report.js
6728
6663
  var extractionItem = strictObject({
6729
6664
  ref: reference,
6730
6665
  attachment: count,
@@ -6757,7 +6692,7 @@ var extractionReport = strictObject({
6757
6692
  cursor: optional(text)
6758
6693
  });
6759
6694
 
6760
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/message-transfer.js
6695
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/message-transfer.js
6761
6696
  var savedMessageFile = strictObject({
6762
6697
  kind: text,
6763
6698
  path: text,
@@ -6844,7 +6779,7 @@ var messageSyncAll = strictObject({
6844
6779
  var messageSyncStarted = strictObject({ job: id, pid: count, chat: text, log: text });
6845
6780
  var messageSync = union([messageSyncEstimate, messageSyncChat, messageSyncAll, messageSyncStarted]);
6846
6781
 
6847
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/store-records.js
6782
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/store-records.js
6848
6783
  var range = strictObject({ from: number(), to: number() });
6849
6784
  var storeChatStatus = strictObject({
6850
6785
  chat_id: id,
@@ -6942,7 +6877,7 @@ var storeJobRetry = union([
6942
6877
  ]);
6943
6878
  var storeJobClear = strictObject({ cleared: array(id) });
6944
6879
 
6945
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/account.js
6880
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/account.js
6946
6881
  var account = strictObject({
6947
6882
  provider: text,
6948
6883
  id,
@@ -6952,7 +6887,7 @@ var account = strictObject({
6952
6887
  scope: optional(picklist(["personal", "work"]))
6953
6888
  });
6954
6889
 
6955
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/account-session.js
6890
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/account-session.js
6956
6891
  var accountSession = strictObject({
6957
6892
  current: boolean(),
6958
6893
  client: nullable(text),
@@ -6962,7 +6897,7 @@ var accountSession = strictObject({
6962
6897
  created_at: optional(nullable(time))
6963
6898
  });
6964
6899
 
6965
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/account-change.js
6900
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/account-change.js
6966
6901
  var accountChange = strictObject({ operation_id: id, account: omit(account, ["provider", "scope"]) });
6967
6902
  var endedAccountSessions = strictObject({ operation_id: id, sessions: array(accountSession) });
6968
6903
  var audience = picklist(["everyone", "contacts", "nobody"]);
@@ -6979,8 +6914,19 @@ var accountPrivacy = strictObject({
6979
6914
  last_seen: optional(shownAudience)
6980
6915
  });
6981
6916
  var accountPrivacyChange = strictObject({ operation_id: id, privacy: accountPrivacy });
6917
+ var removalKind = picklist(["sign_in", "keyring", "config", "file", "store", "unit", "schedule"]);
6918
+ var accountRemoval = strictObject({
6919
+ profile: text,
6920
+ data: picklist(["kept", "deleted"]),
6921
+ dry_run: boolean(),
6922
+ account: nullable(strictObject({ provider: text, account: text })),
6923
+ revoked: nullable(boolean()),
6924
+ config_file: text,
6925
+ removed: array(strictObject({ kind: removalKind, target: text })),
6926
+ kept: array(strictObject({ kind: removalKind, target: text, reason: text }))
6927
+ });
6982
6928
 
6983
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/account-profile.js
6929
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/account-profile.js
6984
6930
  var accountProfile = strictObject({
6985
6931
  profile: id,
6986
6932
  current: boolean(),
@@ -6992,7 +6938,7 @@ var accountProfile = strictObject({
6992
6938
  bot: optional(literal(true))
6993
6939
  });
6994
6940
 
6995
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/counter-reading.js
6941
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/counter-reading.js
6996
6942
  var milliseconds = pipe(number(), minValue(0));
6997
6943
  var counterReading = strictObject({
6998
6944
  counter: picklist(["views", "reactions", "comments"]),
@@ -7004,7 +6950,7 @@ var counterReading = strictObject({
7004
6950
  });
7005
6951
  var selection = record(string(), unknown());
7006
6952
 
7007
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/admin-report.js
6953
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/admin-report.js
7008
6954
  var adminRow = strictObject({
7009
6955
  ref: reference,
7010
6956
  /** What `stats * evidence` takes: a person id, a stay or a message locator. */
@@ -7057,11 +7003,11 @@ var adminReport = strictObject({
7057
7003
  rows: array(adminRow)
7058
7004
  });
7059
7005
 
7060
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/analysis-consent.js
7006
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/analysis-consent.js
7061
7007
  var analysisConsent = strictObject({ chat: id, provider: text, at: time });
7062
7008
  var analysisConsentRevocation = strictObject({ revoked: boolean() });
7063
7009
 
7064
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/attachment-results.js
7010
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/attachment-results.js
7065
7011
  var fingerprint = pipe(text, regex(/^[a-f0-9]{64}$/));
7066
7012
  var attachmentBytes = strictObject({
7067
7013
  ref: reference,
@@ -7089,7 +7035,7 @@ var attachmentTextChange = strictObject({
7089
7035
  replaced: nullable(picklist(["extracted", "agent"]))
7090
7036
  });
7091
7037
 
7092
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/chart.js
7038
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/chart.js
7093
7039
  var chart = strictObject({
7094
7040
  version: literal(1),
7095
7041
  kind: picklist(["bar", "line", "grouped-bar"]),
@@ -7104,7 +7050,7 @@ var chart = strictObject({
7104
7050
  file: optional(strictObject({ path: text, format: picklist(["svg", "png"]), width: count, height: count }))
7105
7051
  });
7106
7052
 
7107
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/folder.js
7053
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/folder.js
7108
7054
  var named = strictObject({
7109
7055
  id,
7110
7056
  title: nullable(text),
@@ -7127,7 +7073,7 @@ var folder = strictObject({
7127
7073
  excluded_chats: optional(array(named))
7128
7074
  });
7129
7075
 
7130
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/invite-link.js
7076
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/invite-link.js
7131
7077
  var inviteLink = strictObject({
7132
7078
  link: text,
7133
7079
  /** Who joins by it asks first, and an admin lets them in. */
@@ -7143,7 +7089,7 @@ var inviteLink = strictObject({
7143
7089
  joined_count: optional(count)
7144
7090
  });
7145
7091
 
7146
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/chat-admin.js
7092
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/chat-admin.js
7147
7093
  var operated = { operation_id: id, chat_id: id };
7148
7094
  var group = strictObject({
7149
7095
  ...omit(chat, ["ref", "provider", "account", "invite_link", "members"]).entries,
@@ -7223,7 +7169,7 @@ var chatFolderOrder = strictObject({
7223
7169
  folders: array(strictObject({ id, title: text }))
7224
7170
  });
7225
7171
 
7226
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/chat-change.js
7172
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/chat-change.js
7227
7173
  var operated2 = { operation_id: id, chat_id: id };
7228
7174
  var chatRemoval = strictObject(operated2);
7229
7175
  var chatMuting = strictObject({
@@ -7234,7 +7180,7 @@ var chatArchive = strictObject({ ...operated2, archived: boolean() });
7234
7180
  var chatPin = strictObject({ ...operated2, pinned: boolean() });
7235
7181
  var chatUnread = strictObject({ ...operated2, unread: literal(true) });
7236
7182
 
7237
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/chat-event.js
7183
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/chat-event.js
7238
7184
  var who = strictObject({ id: nullable(id), name: nullable(text), username: optional(nullable(text)) });
7239
7185
  var chatEvent = strictObject({
7240
7186
  chat_id: id,
@@ -7251,7 +7197,7 @@ var chatEvent = strictObject({
7251
7197
  before: optional(strictObject({ name: nullable(text), username: nullable(text) }))
7252
7198
  });
7253
7199
 
7254
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/chat-metadata.js
7200
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/chat-metadata.js
7255
7201
  var chatMetadata = strictObject({
7256
7202
  chat_id: id,
7257
7203
  title: nullable(text),
@@ -7266,7 +7212,7 @@ var chatMetadataRefresh = strictObject({
7266
7212
  has_more: boolean()
7267
7213
  });
7268
7214
 
7269
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/chat-moderation.js
7215
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/chat-moderation.js
7270
7216
  var action = picklist(["report", "delete", "remove"]);
7271
7217
  var level = picklist(["deny", "readonly", "ask", "allow"]);
7272
7218
  var chatRules = strictObject({
@@ -7303,7 +7249,7 @@ var chatModeration = strictObject({
7303
7249
  }))
7304
7250
  });
7305
7251
 
7306
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/chat-stats.js
7252
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/chat-stats.js
7307
7253
  var optionalCount = optional(count);
7308
7254
  var minutes = nullable(number());
7309
7255
  var chatStats = strictObject({
@@ -7377,7 +7323,7 @@ var taskStats = strictObject({
7377
7323
  }))
7378
7324
  });
7379
7325
 
7380
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/chat-tracking.js
7326
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/chat-tracking.js
7381
7327
  var memberCount = strictObject({
7382
7328
  day: pipe(text, isoDate()),
7383
7329
  participants: nullable(count),
@@ -7400,7 +7346,7 @@ var chatTracking = strictObject({
7400
7346
  tracked: boolean()
7401
7347
  });
7402
7348
 
7403
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/contact-read.js
7349
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/contact-read.js
7404
7350
  var contactLookup = strictObject({ id, name: nullable(text), username: nullable(text) });
7405
7351
  var contactSync = strictObject({ added: count, changed: count, known: count });
7406
7352
  var profileFields = {
@@ -7438,7 +7384,7 @@ var profileFields = {
7438
7384
  }))
7439
7385
  };
7440
7386
 
7441
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/contact.js
7387
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/contact.js
7442
7388
  var contact = strictObject({
7443
7389
  ref: reference,
7444
7390
  id,
@@ -7469,7 +7415,7 @@ var contact = strictObject({
7469
7415
  notes: optional(array(strictObject({ id, text, revision: count, created_at: time, updated_at: time })))
7470
7416
  });
7471
7417
 
7472
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/contact-activity.js
7418
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/contact-activity.js
7473
7419
  var linkedIdentity = strictObject({
7474
7420
  provider: text,
7475
7421
  id,
@@ -7477,6 +7423,7 @@ var linkedIdentity = strictObject({
7477
7423
  username: nullable(text),
7478
7424
  is_bot: nullable(boolean()),
7479
7425
  accounts: array(id),
7426
+ seen_in: array(strictObject({ account: id, scope: picklist(["personal", "work"]) })),
7480
7427
  method: text,
7481
7428
  linked_by: text,
7482
7429
  linked_at: time
@@ -7510,7 +7457,7 @@ var contactCheck = strictObject({
7510
7457
  checked_at: time
7511
7458
  });
7512
7459
 
7513
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/contact-context.js
7460
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/contact-context.js
7514
7461
  var contextPerson = strictObject({ ...linkedPerson.entries, provider: text, id });
7515
7462
  var contextMessage = strictObject({
7516
7463
  locator: reference,
@@ -7544,6 +7491,8 @@ var contextEvent = strictObject({
7544
7491
  });
7545
7492
  var context = strictObject({
7546
7493
  person: contextPerson,
7494
+ /** The accounts read: only those of the scopes the caller may read. */
7495
+ accounts: array(strictObject({ provider: text, account: id, scope: picklist(["personal", "work"]) })),
7547
7496
  shared: array(sharedChat),
7548
7497
  last: strictObject({
7549
7498
  from_them: nullable(contextMessage),
@@ -7708,7 +7657,7 @@ var contactPreparation = strictObject({
7708
7657
  })
7709
7658
  });
7710
7659
 
7711
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/contact-note.js
7660
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/contact-note.js
7712
7661
  var contactNote = strictObject({
7713
7662
  id,
7714
7663
  /** The contact, as a `contact:` reference. */
@@ -7720,13 +7669,13 @@ var contactNote = strictObject({
7720
7669
  updated_at: time
7721
7670
  });
7722
7671
 
7723
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/contact-write.js
7672
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/contact-write.js
7724
7673
  var addressBookPerson = strictObject({ id, name: nullable(text), username: nullable(text) });
7725
7674
  var contactUpdate = strictObject({ operation_id: id, person: addressBookPerson });
7726
7675
  var contactStateChange = strictObject({ operation_id: id, person_id: id });
7727
7676
  var contactImport = strictObject({ operation_id: id, sent: count, recognised: array(addressBookPerson) });
7728
7677
 
7729
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/conversation-results.js
7678
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/conversation-results.js
7730
7679
  var conversationDetails = union([
7731
7680
  strictObject({ ...conversation.entries, messages: array(message) }),
7732
7681
  message
@@ -7816,7 +7765,7 @@ var conversationHit = strictObject({
7816
7765
  stale: boolean()
7817
7766
  });
7818
7767
 
7819
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/counters.js
7768
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/counters.js
7820
7769
  var counters = strictObject({
7821
7770
  cutoff: time,
7822
7771
  max_age_ms: milliseconds,
@@ -7846,7 +7795,7 @@ var counterRefresh = strictObject({
7846
7795
  complete: optional(boolean())
7847
7796
  });
7848
7797
 
7849
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/deal.js
7798
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/deal.js
7850
7799
  var nullableText = nullable(text);
7851
7800
  var party = strictObject({ ref: reference, name: nullableText, owner: boolean() });
7852
7801
  var outcome = picklist(["open", "won", "lost"]);
@@ -7883,7 +7832,7 @@ var deal = strictObject({
7883
7832
  value: unknown(),
7884
7833
  option_id: optional(union([string(), array(string())]))
7885
7834
  })),
7886
- people: array(strictObject({ ...party.entries, role: picklist(["owner", "contact", "decision-maker"]) })),
7835
+ people: array(strictObject({ ...party.entries, role: picklist(DEAL_ROLES) })),
7887
7836
  author: strictObject({
7888
7837
  type: picklist(["person", "bot"]),
7889
7838
  id,
@@ -7910,7 +7859,10 @@ var pipelineStage = strictObject({
7910
7859
  open: count,
7911
7860
  /** With a funnel: rows that got this far, and the share of them that reached the next stage. */
7912
7861
  reached: optional(count),
7913
- conversion: optional(nullable(number()))
7862
+ conversion: optional(nullable(number())),
7863
+ /** With a funnel: rows standing in it now, and their sum per currency, never converted. */
7864
+ items: optional(count),
7865
+ amounts: optional(array(strictObject({ amount: text, currency: text, items: count })))
7914
7866
  });
7915
7867
  var pipeline = strictObject({
7916
7868
  id,
@@ -7933,7 +7885,7 @@ var stage = strictObject({
7933
7885
  untrusted
7934
7886
  });
7935
7887
 
7936
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/document.js
7888
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/document.js
7937
7889
  var document = strictObject({
7938
7890
  ref: reference,
7939
7891
  id,
@@ -7948,7 +7900,7 @@ var document = strictObject({
7948
7900
  owners: optional(array(text))
7949
7901
  });
7950
7902
 
7951
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/document-link.js
7903
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/document-link.js
7952
7904
  var documentLink = strictObject({
7953
7905
  ref: reference,
7954
7906
  url: text,
@@ -7959,7 +7911,7 @@ var documentLink = strictObject({
7959
7911
  sender: strictObject({ id: nullable(id), name: nullable(text) })
7960
7912
  });
7961
7913
 
7962
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/evidence.js
7914
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/evidence.js
7963
7915
  var evidenceMessage = pick(message, ["ref", "chat_title", "timestamp", "sender_name", "text"]);
7964
7916
  var contribution = strictObject({
7965
7917
  message: evidenceMessage,
@@ -7989,7 +7941,7 @@ var retentionStay = strictObject({
7989
7941
  });
7990
7942
  var evidence = union([contribution, retentionStay]);
7991
7943
 
7992
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/fact.js
7944
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/fact.js
7993
7945
  var fact = strictObject({
7994
7946
  ref: reference,
7995
7947
  id,
@@ -8019,9 +7971,9 @@ var fact = strictObject({
8019
7971
  updated_at: time
8020
7972
  });
8021
7973
 
8022
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/hit.js
7974
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/hit.js
8023
7975
  var hit = strictObject({
8024
- kind: picklist(["message", "mail", "note", "document", "event", "meeting", "deal", "lead"]),
7976
+ kind: picklist(["message", "mail", "note", "document", "event", "meeting", "deal", "lead", ...BUSINESS_KINDS]),
8025
7977
  ref: reference,
8026
7978
  provider: text,
8027
7979
  url: optional(text),
@@ -8051,13 +8003,17 @@ var hit = strictObject({
8051
8003
  lines_total: optional(count),
8052
8004
  /** A meeting passage's stored line, so two passages of one meeting stay apart; `search meetings` gives the same. */
8053
8005
  id: optional(pipe(string(), minLength(1))),
8006
+ /** A business hit's: `proposed` waits for the owner; a product or a wallet has no review and is `confirmed`. */
8007
+ review: optional(picklist(["proposed", "confirmed"])),
8008
+ /** A business hit's record in the import that made it; absent for one the owner or an agent wrote. */
8009
+ source_record: optional(strictObject({ provider: text, account: text, external_id: text })),
8054
8010
  /** A message's files; absent when it has none. */
8055
8011
  attachments: optional(array(hitFile)),
8056
8012
  /** Absent on a note hit: the owner wrote it. */
8057
8013
  untrusted
8058
8014
  });
8059
8015
 
8060
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/identity.js
8016
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/identity.js
8061
8017
  var identity = strictObject({
8062
8018
  ref: reference,
8063
8019
  provider: text,
@@ -8070,7 +8026,7 @@ var identity = strictObject({
8070
8026
  person: optional(nullable(reference))
8071
8027
  });
8072
8028
 
8073
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/image-embedding.js
8029
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/image-embedding.js
8074
8030
  var imageEmbedding = strictObject({
8075
8031
  model: text,
8076
8032
  embedded: count,
@@ -8079,7 +8035,7 @@ var imageEmbedding = strictObject({
8079
8035
  more: boolean()
8080
8036
  });
8081
8037
 
8082
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/join-request.js
8038
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/join-request.js
8083
8039
  var joinRequest = strictObject({
8084
8040
  person_id: id,
8085
8041
  name: nullable(text),
@@ -8090,7 +8046,7 @@ var joinRequest = strictObject({
8090
8046
  about: optional(text)
8091
8047
  });
8092
8048
 
8093
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/poll-vote.js
8049
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/poll-vote.js
8094
8050
  var pollVote = strictObject({
8095
8051
  person_id: id,
8096
8052
  name: nullable(text),
@@ -8100,7 +8056,7 @@ var pollVote = strictObject({
8100
8056
  voted_at: time
8101
8057
  });
8102
8058
 
8103
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/listener.js
8059
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/listener.js
8104
8060
  var reactions = unwrap(unwrap(message.entries.reactions));
8105
8061
  var observation = strictObject({
8106
8062
  value: pipe(number(), minValue(0)),
@@ -8142,7 +8098,7 @@ var serveSummary = strictObject({
8142
8098
  tasks: optional(strictObject({ added: count, closed: count, review: count }))
8143
8099
  });
8144
8100
 
8145
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/mail-counts.js
8101
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/mail-counts.js
8146
8102
  var mailCounts = strictObject({
8147
8103
  by: picklist(["day", "week", "sender"]),
8148
8104
  received: count,
@@ -8157,7 +8113,7 @@ var mailCounts = strictObject({
8157
8113
  }))
8158
8114
  });
8159
8115
 
8160
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/mail-findings.js
8116
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/mail-findings.js
8161
8117
  var evidence2 = strictObject({ reference, fingerprint: text });
8162
8118
  var base = { id, evidence: array(evidence2) };
8163
8119
  var finding = variant("kind", [
@@ -8301,7 +8257,7 @@ var mailFindings = strictObject({
8301
8257
  receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome2) }))
8302
8258
  });
8303
8259
 
8304
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/media-archive.js
8260
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/media-archive.js
8305
8261
  var mediaArchive = strictObject({
8306
8262
  directory: text,
8307
8263
  chats: count,
@@ -8333,7 +8289,7 @@ var mediaArchiveTimer = union([
8333
8289
  strictObject({ ...timer, action: picklist(["install", "start", "stop", "uninstall"]) })
8334
8290
  ]);
8335
8291
 
8336
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation-parts.js
8292
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation-parts.js
8337
8293
  var preparationId = pipe(string(), minLength(1));
8338
8294
  var preparationCount = pipe(number(), integer(), minValue(0));
8339
8295
  var preparationTime = nullable(isoTime);
@@ -8425,7 +8381,7 @@ var preparationMeeting = strictObject({
8425
8381
  updated_at: isoTime
8426
8382
  });
8427
8383
 
8428
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/meeting-evidence.js
8384
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/meeting-evidence.js
8429
8385
  var meetingEvidence = preparationEvidence;
8430
8386
  var meetingPersonContext = strictObject({
8431
8387
  person: strictObject({ uid: string(), name: nullable(string()) }),
@@ -8447,7 +8403,7 @@ var meetingPersonContext = strictObject({
8447
8403
  })
8448
8404
  });
8449
8405
 
8450
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/meeting-findings.js
8406
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/meeting-findings.js
8451
8407
  var evidence3 = strictObject({ reference, fingerprint: text });
8452
8408
  var base2 = { id, project: reference, evidence: array(evidence3) };
8453
8409
  var finding2 = variant("kind", [
@@ -8485,7 +8441,7 @@ var meetingFindings = strictObject({
8485
8441
  receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome3) }))
8486
8442
  });
8487
8443
 
8488
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/meeting-communications.js
8444
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/meeting-communications.js
8489
8445
  var communicationCoverage = strictObject({
8490
8446
  read_usage: strictObject({ reads: preparationCount, charged_bytes: preparationCount, reserved_bytes: preparationCount, remaining_bytes: preparationCount }),
8491
8447
  query: string(),
@@ -8530,7 +8486,7 @@ var preparationCommunications = strictObject({
8530
8486
  }))
8531
8487
  });
8532
8488
 
8533
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation.js
8489
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation.js
8534
8490
  var meetingPreparation = strictObject({
8535
8491
  communications: optional(preparationCommunications),
8536
8492
  schema_version: literal(1),
@@ -8643,7 +8599,7 @@ var meetingPreparation = strictObject({
8643
8599
  })
8644
8600
  });
8645
8601
 
8646
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/meeting-project-candidates.js
8602
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/meeting-project-candidates.js
8647
8603
  var count4 = pipe(number(), integer(), minValue(0));
8648
8604
  var id3 = pipe(string(), minLength(1));
8649
8605
  var text3 = string();
@@ -8707,7 +8663,7 @@ var meetingProjectCandidates = strictObject({
8707
8663
  })
8708
8664
  });
8709
8665
 
8710
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/meeting-series-inventory.js
8666
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/meeting-series-inventory.js
8711
8667
  var count5 = pipe(number(), integer(), minValue(0));
8712
8668
  var id4 = pipe(string(), minLength(1), maxLength(1e3));
8713
8669
  var meetingSeriesInventory = strictObject({
@@ -8737,7 +8693,7 @@ var meetingSeriesInventory = strictObject({
8737
8693
  })
8738
8694
  });
8739
8695
 
8740
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/meeting-task-proposal.js
8696
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/meeting-task-proposal.js
8741
8697
  var text4 = string();
8742
8698
  var id5 = pipe(number(), integer(), minValue(1));
8743
8699
  var revision = picklist(["current", "superseded"]);
@@ -8754,7 +8710,7 @@ var meetingTaskProposal = strictObject({
8754
8710
  persistence: literal("proposal-only")
8755
8711
  });
8756
8712
 
8757
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/memory.js
8713
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/memory.js
8758
8714
  var memory = strictObject({
8759
8715
  ref: reference,
8760
8716
  id,
@@ -8781,7 +8737,7 @@ var memory = strictObject({
8781
8737
  updated_at: time
8782
8738
  });
8783
8739
 
8784
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/mention.js
8740
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/mention.js
8785
8741
  var kind = picklist(["phone", "email", "url", "document", "person-name", "place"]);
8786
8742
  var status = picklist(["found", "linked", "dismissed"]);
8787
8743
  var mention = strictObject({
@@ -8824,13 +8780,13 @@ var mentionRebuild = strictObject({
8824
8780
  mentions: count
8825
8781
  });
8826
8782
 
8827
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/message-change.js
8783
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/message-change.js
8828
8784
  var operated3 = { operation_id: id, chat_id: id };
8829
8785
  var messagePin = strictObject({ ...operated3, message_id: id, pinned: boolean() });
8830
8786
  var messageStar = strictObject({ ...operated3, message_id: id, starred: boolean() });
8831
8787
  var messageDeletion = strictObject({ ...operated3, deleted: array(id), for_everyone: boolean() });
8832
8788
 
8833
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/message-read.js
8789
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/message-read.js
8834
8790
  var messageTranscript = strictObject({
8835
8791
  message_id: id,
8836
8792
  text,
@@ -8888,7 +8844,7 @@ var evidencePacket = strictObject({
8888
8844
  }))
8889
8845
  });
8890
8846
 
8891
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/message-context.js
8847
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/message-context.js
8892
8848
  var messageThread = strictObject({
8893
8849
  ref: reference,
8894
8850
  chat: id,
@@ -8905,7 +8861,7 @@ var messageThread = strictObject({
8905
8861
  });
8906
8862
  var messageContext = union([message, messageThread]);
8907
8863
 
8908
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/message-counts.js
8864
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/message-counts.js
8909
8865
  var messageCounts = strictObject({
8910
8866
  by: picklist(["chat", "sender", "day", "hour"]),
8911
8867
  total: count,
@@ -8918,7 +8874,7 @@ var messageCounts = strictObject({
8918
8874
  }))
8919
8875
  });
8920
8876
 
8921
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/message-link.js
8877
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/message-link.js
8922
8878
  var messageLink = strictObject({
8923
8879
  ref: reference,
8924
8880
  url: nullable(text),
@@ -8935,7 +8891,7 @@ var messageLink = strictObject({
8935
8891
  })))
8936
8892
  });
8937
8893
 
8938
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/message-write.js
8894
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/message-write.js
8939
8895
  var messageWrite = strictObject({
8940
8896
  operation_id: id,
8941
8897
  message,
@@ -8950,7 +8906,7 @@ var draftWrite = strictObject({
8950
8906
  });
8951
8907
  var messageSend = union([messageWrite, draftWrite]);
8952
8908
 
8953
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/model.js
8909
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/model.js
8954
8910
  var model2 = strictObject({
8955
8911
  id,
8956
8912
  kind: picklist(["audio", "text", "image", "reranker"]),
@@ -8958,16 +8914,34 @@ var model2 = strictObject({
8958
8914
  /** Which languages it reads, in words. */
8959
8915
  languages: text,
8960
8916
  licence: optional(text),
8917
+ /** A text model's licence terms to accept with `models download --accept-terms`. */
8918
+ terms: optional(text),
8919
+ /** A text model's size next to the others: small is fastest, large reads best. */
8920
+ size: optional(picklist(["small", "medium", "large"])),
8921
+ /** A text model's vector length. */
8922
+ dims: optional(count),
8923
+ /** About how many chunks a second a text model embeds here, when measured. */
8924
+ chunks_per_second: optional(number()),
8925
+ /** A text model the owner added with `models add`. */
8926
+ custom: optional(boolean()),
8961
8927
  /** What its files take on disk once downloaded. */
8962
8928
  size_bytes: count,
8963
8929
  downloaded: boolean(),
8964
- /** The one used when no model is named. */
8930
+ /** The one used when no model is named: for text, the one `models use` chose. */
8965
8931
  default: boolean(),
8966
8932
  /** The folder its files are in once downloaded, so an agent can place them by hand. */
8967
8933
  path: text
8968
8934
  });
8935
+ var chosenModel = strictObject({
8936
+ ...model2.entries,
8937
+ previous: id,
8938
+ /** Chunk texts the previous model has vectors for and this one has not; `null` when no store is there to count. */
8939
+ to_embed: nullable(count),
8940
+ /** Embedding time alone at the model's speed, done a part per sync; `null` when the speed or the count is unknown. */
8941
+ estimate_seconds: nullable(count)
8942
+ });
8969
8943
 
8970
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/model-key.js
8944
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/model-key.js
8971
8945
  var source = picklist(["environment", "keyring", "file"]);
8972
8946
  var modelKey = strictObject({
8973
8947
  provider: text,
@@ -8977,7 +8951,7 @@ var modelKey = strictObject({
8977
8951
  var storedModelKey = strictObject({ ...omit(modelKey, ["removed"]).entries, stored: source });
8978
8952
  var removedModelKey = strictObject({ ...omit(modelKey, ["stored"]).entries, removed: array(source) });
8979
8953
 
8980
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/official-stats.js
8954
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/official-stats.js
8981
8955
  var versus = strictObject({ current: number(), previous: number() });
8982
8956
  var person = { person_ref: reference, name: nullable(text) };
8983
8957
  var graph = strictObject({
@@ -9011,14 +8985,14 @@ var officialStats = strictObject({
9011
8985
  graphs: record(string(), union([graph, strictObject({ error: text })]))
9012
8986
  });
9013
8987
 
9014
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/person.js
8988
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/person.js
9015
8989
  var person2 = strictObject({
9016
8990
  ref: reference,
9017
8991
  name: nullable(text),
9018
8992
  identities: optional(array(identity))
9019
8993
  });
9020
8994
 
9021
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/poll.js
8995
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/poll.js
9022
8996
  var poll = strictObject({
9023
8997
  chat_id: id,
9024
8998
  message_id: id,
@@ -9034,11 +9008,11 @@ var poll = strictObject({
9034
9008
  });
9035
9009
  var pollChange = strictObject({ operation_id: id, poll });
9036
9010
 
9037
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/private-contact.js
9011
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/private-contact.js
9038
9012
  var contactAlias = strictObject({ person_id: id, alias: nullable(text) });
9039
9013
  var contactNoteRemoval = strictObject({ id, person_id: id, removed: boolean() });
9040
9014
 
9041
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/ranking.js
9015
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/ranking.js
9042
9016
  var figures = record(string(), number());
9043
9017
  var freshness = picklist(["fresh", "stale", "partial", "unknown"]);
9044
9018
  var rankingRow = strictObject({
@@ -9085,7 +9059,7 @@ var ranking = strictObject({
9085
9059
  rows: array(rankingRow)
9086
9060
  });
9087
9061
 
9088
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/reaction.js
9062
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/reaction.js
9089
9063
  var reaction = strictObject({
9090
9064
  person: strictObject({ id, name: nullable(text), username: nullable(text) }),
9091
9065
  /** The emoji, or `custom:<id>` for a custom one. */
@@ -9093,7 +9067,7 @@ var reaction = strictObject({
9093
9067
  reacted_at: time
9094
9068
  });
9095
9069
 
9096
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/reaction-change.js
9070
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/reaction-change.js
9097
9071
  var reactionChange = strictObject({
9098
9072
  operation_id: id,
9099
9073
  chat_id: id,
@@ -9101,7 +9075,7 @@ var reactionChange = strictObject({
9101
9075
  reaction: nullable(text)
9102
9076
  });
9103
9077
 
9104
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/recipient.js
9078
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/recipient.js
9105
9079
  var recipient = strictObject({ id, title: nullable(text), partner_id: optional(id), added_at: time });
9106
9080
  var recipientAdded = strictObject({ id, title: nullable(text), added: boolean() });
9107
9081
  var recipientRemoved = strictObject({ id, title: nullable(text), removed: boolean() });
@@ -9112,7 +9086,7 @@ var recipientChange = strictObject({
9112
9086
  ...partial(recipientOff).entries
9113
9087
  });
9114
9088
 
9115
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/recorded-run.js
9089
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/recorded-run.js
9116
9090
  var events = array(record(string(), unknown()));
9117
9091
  var recordedRun = strictObject({
9118
9092
  run_id: id,
@@ -9184,7 +9158,7 @@ var runHit = strictObject({
9184
9158
  });
9185
9159
  var runLocation = strictObject({ path: text });
9186
9160
 
9187
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/relationship.js
9161
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/relationship.js
9188
9162
  var relationship = strictObject({
9189
9163
  id,
9190
9164
  from: reference,
@@ -9198,10 +9172,16 @@ var relationship = strictObject({
9198
9172
  confirmed: boolean(),
9199
9173
  provenance: nullable(text),
9200
9174
  confidence_category: picklist(["owner-confirmed", "weak"]),
9175
+ /** `reported`: a CRM account says so and nobody confirmed it; `ended`: it no longer holds. */
9176
+ standing: picklist(STANDINGS),
9177
+ /** A job title beside it, never its role. */
9178
+ position: nullable(text),
9179
+ starts_at: nullable(time),
9180
+ ends_at: nullable(time),
9201
9181
  created_at: time
9202
9182
  });
9203
9183
 
9204
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/reply-stats.js
9184
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/reply-stats.js
9205
9185
  var milliseconds2 = nullable(pipe(number(), minValue(0)));
9206
9186
  var figures2 = { replies: count, median_ms: milliseconds2, p90_ms: milliseconds2, mean_ms: milliseconds2 };
9207
9187
  var responseTimes = strictObject({
@@ -9218,7 +9198,7 @@ var waitingChats = strictObject({
9218
9198
  by_kind: strictObject({ private: count, group: count })
9219
9199
  });
9220
9200
 
9221
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/retention.js
9201
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/retention.js
9222
9202
  var retentionCohort = strictObject({
9223
9203
  /** The first day of the joining day or week. */
9224
9204
  cohort: text,
@@ -9266,7 +9246,7 @@ var retention = strictObject({
9266
9246
  rows: array(retentionCohort)
9267
9247
  });
9268
9248
 
9269
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/saved-search.js
9249
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/saved-search.js
9270
9250
  var savedSearch = strictObject({
9271
9251
  id,
9272
9252
  /** `null` for a run in the history. */
@@ -9283,7 +9263,7 @@ var savedSearch = strictObject({
9283
9263
  });
9284
9264
  var searchHistoryClear = strictObject({ cleared: count });
9285
9265
 
9286
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/send-attempt.js
9266
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/send-attempt.js
9287
9267
  var sendAttempt = strictObject({
9288
9268
  at: time,
9289
9269
  profile: text,
@@ -9311,7 +9291,7 @@ var sendAttempt = strictObject({
9311
9291
  error_code: optional(text)
9312
9292
  });
9313
9293
 
9314
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/store-maintenance.js
9294
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/store-maintenance.js
9315
9295
  var absent = strictObject({ path: text, exists: literal(false) });
9316
9296
  var schema = strictObject({ version: count, min_compatible: count, writable: boolean(), speaks: count });
9317
9297
  var infoSchema = strictObject({
@@ -9532,7 +9512,7 @@ var storeRepair = union([
9532
9512
  ]);
9533
9513
  var storeCopyRemoval = strictObject({ path: text, deleted: strictObject({ name: text, rows: count }) });
9534
9514
 
9535
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/store-table.js
9515
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/store-table.js
9536
9516
  var TABLE_KINDS = ["data", "search_index", "search_index_part", "internal"];
9537
9517
  var storeTable = strictObject({
9538
9518
  name: text,
@@ -9541,7 +9521,7 @@ var storeTable = strictObject({
9541
9521
  bytes: optional(nullable(count))
9542
9522
  });
9543
9523
 
9544
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/tag-change.js
9524
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/tag-change.js
9545
9525
  var tagTarget = variant("type", [
9546
9526
  strictObject({ type: literal("chat"), chat_id: id }),
9547
9527
  strictObject({ type: literal("contact"), person_id: id }),
@@ -9572,7 +9552,7 @@ var automaticTags = strictObject({
9572
9552
  dry_run: boolean()
9573
9553
  });
9574
9554
 
9575
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/task-pair.js
9555
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/task-pair.js
9576
9556
  var side = strictObject({ ref: reference, key: text, title: text, status: text });
9577
9557
  var taskPair = strictObject({
9578
9558
  task: nullable(side),
@@ -9595,7 +9575,7 @@ var taskPair = strictObject({
9595
9575
  created_at: time
9596
9576
  });
9597
9577
 
9598
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/task-results.js
9578
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/task-results.js
9599
9579
  var nullableTime = nullable(time);
9600
9580
  var link = strictObject({
9601
9581
  id,
@@ -9769,7 +9749,7 @@ var taskReview = strictObject({
9769
9749
  untrusted
9770
9750
  });
9771
9751
 
9772
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/topic.js
9752
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/topic.js
9773
9753
  var topic = strictObject({
9774
9754
  id,
9775
9755
  title: text,
@@ -9783,7 +9763,7 @@ var topic = strictObject({
9783
9763
  untrusted
9784
9764
  });
9785
9765
 
9786
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/entities/index.js
9766
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/index.js
9787
9767
  var ENTITIES = {
9788
9768
  sync_progress: progress,
9789
9769
  deal,
@@ -9871,6 +9851,7 @@ var ENTITIES = {
9871
9851
  account_session: accountSession,
9872
9852
  account_change: accountChange,
9873
9853
  ended_account_sessions: endedAccountSessions,
9854
+ account_removal: accountRemoval,
9874
9855
  account_privacy: accountPrivacy,
9875
9856
  account_privacy_change: accountPrivacyChange,
9876
9857
  account_profile: accountProfile,
@@ -10025,6 +10006,7 @@ var ENTITIES = {
10025
10006
  chat_folder_order: chatFolderOrder,
10026
10007
  chat_rules: chatRules,
10027
10008
  chat_moderation: chatModeration,
10009
+ "model.chosen": chosenModel,
10028
10010
  model_key: modelKey,
10029
10011
  "model_key.stored": storedModelKey,
10030
10012
  "model_key.removed": removedModelKey,
@@ -10069,7 +10051,7 @@ var entityDefinitions = /* @__PURE__ */ __name(() => Object.fromEntries(Object.e
10069
10051
  return [name, definition];
10070
10052
  })), "entityDefinitions");
10071
10053
 
10072
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/cli/answer-entity.js
10054
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/cli/answer-entity.js
10073
10055
  var schemas = /* @__PURE__ */ new WeakMap();
10074
10056
  var answerEntity = /* @__PURE__ */ __name((command, name, schema2, options = {}) => {
10075
10057
  if (Object.hasOwn(ENTITIES, name))
@@ -10103,7 +10085,7 @@ var answerRow = /* @__PURE__ */ __name((command) => {
10103
10085
  return own && metaOf(command).output?.entity === own.name ? own.row : void 0;
10104
10086
  }, "answerRow");
10105
10087
 
10106
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/cli/project-status-rows.js
10088
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/cli/project-status-rows.js
10107
10089
  var where = [{ field: "ref" }];
10108
10090
  var who2 = { field: ["who.owner", "who.name"], tag: "you" };
10109
10091
  var ON_CHAT_ROW = /* @__PURE__ */ new Set(["reply-next", "coverage"]);
@@ -10195,7 +10177,7 @@ var STATUS_ROWS = {
10195
10177
  "status.failed": { columns: [{ field: "signal" }], text: ["why"] }
10196
10178
  };
10197
10179
 
10198
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/cli/compact.js
10180
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/cli/compact.js
10199
10181
  var TEXT_CHARS = 400;
10200
10182
  var sender = { field: ["sender_is_me", "sender_name"], tag: "me" };
10201
10183
  var messageRow = {
@@ -10561,7 +10543,7 @@ var compactText = /* @__PURE__ */ __name((body, shape, options, rowsOf = rowsOfE
10561
10543
  return lines.concat(footerOf(body)).join("\n");
10562
10544
  }, "compactText");
10563
10545
 
10564
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/cli/steps.js
10546
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/cli/steps.js
10565
10547
  var STEPS2 = defineSteps([
10566
10548
  ...STEPS,
10567
10549
  {
@@ -10775,6 +10757,12 @@ var STEPS2 = defineSteps([
10775
10757
  ],
10776
10758
  why: "once the tasks these {shown} messages hold are opened, updated or closed, so the next review starts after them"
10777
10759
  },
10760
+ {
10761
+ id: "store.recover",
10762
+ command: "store recover",
10763
+ args: [],
10764
+ why: "the store file is damaged; this says what is lost and the commands that recover it"
10765
+ },
10778
10766
  {
10779
10767
  id: "search.meetings",
10780
10768
  command: "*",
@@ -10813,7 +10801,7 @@ var failureSteps = /* @__PURE__ */ __name((root, error) => {
10813
10801
  nextStep(IMAGE_MODELS.some((one) => one.id === model3) ? "models.download-image" : "models.download", {
10814
10802
  args: { model: model3 }
10815
10803
  })
10816
- ] : [];
10804
+ ] : error.reason === "store.damaged" ? [nextStep("store.recover", {})] : [];
10817
10805
  return runnable(root, [...error.next ?? [], ...own]);
10818
10806
  }, "failureSteps");
10819
10807
  var withSafety = /* @__PURE__ */ __name((steps, targets) => steps.map((step2) => {
@@ -10842,7 +10830,7 @@ var stepLine = /* @__PURE__ */ __name((root, step2) => {
10842
10830
  ].join(" ");
10843
10831
  }, "stepLine");
10844
10832
 
10845
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/cli/output-budget.js
10833
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/cli/output-budget.js
10846
10834
  var SOFT_OUTPUT_BYTES = 256 * 1024;
10847
10835
  var CARRIED = ["json", "compact", "offline", "timeout", "full", "brief", "maxOutputBytes"];
10848
10836
  var NOT_WITH_COMPACT = /* @__PURE__ */ new Set(["json", "brief"]);
@@ -10900,7 +10888,7 @@ var largeAnswerSteps = /* @__PURE__ */ __name((command) => {
10900
10888
  return args ? compactStep(command, args, "the answer is large as JSON; one line per item keeps every ref") : [];
10901
10889
  }, "largeAnswerSteps");
10902
10890
 
10903
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
10891
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
10904
10892
  var HIDDEN = /* @__PURE__ */ new Set(["providerRef", "provider_ref"]);
10905
10893
  var withoutProviderRefs = /* @__PURE__ */ __name((value) => strip(value), "withoutProviderRefs");
10906
10894
  var strip = /* @__PURE__ */ __name((value) => {
@@ -10914,7 +10902,7 @@ var strip = /* @__PURE__ */ __name((value) => {
10914
10902
  return Object.fromEntries(Object.entries(value).flatMap(([key, inner]) => HIDDEN.has(key) ? [] : [[key, strip(inner)]]));
10915
10903
  }, "strip");
10916
10904
 
10917
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_90db47d7f41d7a563eea7bc9cc13c345/node_modules/@wirecat/cli-core/dist/cli/envelope.js
10905
+ // node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/cli/envelope.js
10918
10906
  var answerSchema = /* @__PURE__ */ __name((item = unknown()) => union([listEnvelopeSchema(item), itemEnvelopeSchema(item)]), "answerSchema");
10919
10907
  var capped2 = /* @__PURE__ */ __name((steps) => steps.length > 0 ? { next: steps.slice(0, MAX_NEXT_STEPS) } : {}, "capped");
10920
10908
  var listOf = /* @__PURE__ */ __name((command, input) => {
@@ -11113,8 +11101,6 @@ export {
11113
11101
  refuseCommandName,
11114
11102
  rootOf,
11115
11103
  sampleCommand,
11116
- endpoint,
11117
- modelTarget,
11118
11104
  AI_ENTRIES,
11119
11105
  AI_SETTING_KEYS,
11120
11106
  resolveAISettings,
@@ -11126,6 +11112,7 @@ export {
11126
11112
  repairConfigText,
11127
11113
  permissionIssues,
11128
11114
  settingPathOf,
11115
+ withoutPath,
11129
11116
  withoutSetting,
11130
11117
  publicIssue,
11131
11118
  fixVerb,