@wirecat/notion-cli 0.2.0 → 0.3.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 (160) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/README.md +6 -2
  3. package/contracts/wirecat.json +48 -0
  4. package/dist/bin/notion.js +2 -2
  5. package/dist/bundle/{all-profiles-JGYLQZ5C.js → all-profiles-4IONYZB6.js} +10 -10
  6. package/dist/bundle/{anthropic-S2VSMIKQ.js → anthropic-OXF74J4P.js} +6 -6
  7. package/dist/bundle/{app-server-SASYDBCA.js → app-server-M2VF6ABM.js} +59 -59
  8. package/dist/bundle/{bun-LU5LP3JI.js → bun-DLA6QRLL.js} +2 -2
  9. package/dist/bundle/{bun-sqlite-JBSINB4O.js → bun-sqlite-F4BYLW3F.js} +7 -7
  10. package/dist/bundle/{chunk-4HWJOU7N.js → chunk-2MHMKNWD.js} +1 -1
  11. package/dist/bundle/{chunk-SHJQ6JKG.js → chunk-4KUJTSHG.js} +2 -2
  12. package/dist/bundle/{chunk-SWAOWNKW.js → chunk-4TQVZXOV.js} +3 -3
  13. package/dist/bundle/{chunk-ODBZNSZ6.js → chunk-5LBJNTEJ.js} +6 -6
  14. package/dist/bundle/{chunk-SZOVLP44.js → chunk-5UA2TYMI.js} +2 -2
  15. package/dist/bundle/{chunk-22QQUKWA.js → chunk-5XP4KQ2F.js} +1 -1
  16. package/dist/bundle/{chunk-4IPURN72.js → chunk-6GN7KU7X.js} +9 -9
  17. package/dist/bundle/{chunk-X4TIMMKJ.js → chunk-6JBLIQQN.js} +1 -1
  18. package/dist/bundle/{chunk-4ZTVJHWU.js → chunk-7NF3V5L2.js} +4 -4
  19. package/dist/bundle/{chunk-OTV53F34.js → chunk-7NGFGFE5.js} +9 -60
  20. package/dist/bundle/{chunk-VBHETQVV.js → chunk-7NVPM55S.js} +1908 -1013
  21. package/dist/bundle/{chunk-Z56QFOBR.js → chunk-7YZPBAQX.js} +1 -1
  22. package/dist/bundle/{chunk-3AL7QUS3.js → chunk-AYU5TFDU.js} +20 -20
  23. package/dist/bundle/{chunk-FPY6EJ7B.js → chunk-BEPFGITI.js} +55 -55
  24. package/dist/bundle/{chunk-VCIALTEM.js → chunk-CBGBFAYJ.js} +12 -4
  25. package/dist/bundle/{chunk-NQWV4WQO.js → chunk-CDGZZNGY.js} +6 -6
  26. package/dist/bundle/{chunk-DH5PRHT4.js → chunk-CIVXTBJY.js} +13 -13
  27. package/dist/bundle/{chunk-B26TQZKZ.js → chunk-COH7OEER.js} +14 -13
  28. package/dist/bundle/{chunk-XF26XKTS.js → chunk-D6RCRBDH.js} +2 -2
  29. package/dist/bundle/{chunk-YMYUBZWT.js → chunk-EQPAZ33O.js} +17 -17
  30. package/dist/bundle/{chunk-LAYPFBOM.js → chunk-EY6S7FV3.js} +6 -6
  31. package/dist/bundle/chunk-FEMHUSGO.js +88 -0
  32. package/dist/bundle/{chunk-FWVBPRL4.js → chunk-FSJHASRQ.js} +79 -62
  33. package/dist/bundle/{chunk-TPX2M45D.js → chunk-GBFEEHQC.js} +10 -10
  34. package/dist/bundle/{chunk-5IYKVRH2.js → chunk-GCCPFKSU.js} +434 -343
  35. package/dist/bundle/{chunk-3Z4YTSRY.js → chunk-GK4GLPG2.js} +3 -3
  36. package/dist/bundle/{chunk-GZOUFX3C.js → chunk-GSNE7OB4.js} +4 -4
  37. package/dist/bundle/{chunk-TSDBSIFM.js → chunk-HTKSCSJU.js} +4 -4
  38. package/dist/bundle/{chunk-5NFK5EM2.js → chunk-IJMFG7HB.js} +7 -7
  39. package/dist/bundle/{chunk-D7QSEEYW.js → chunk-JIRRF6BM.js} +4 -4
  40. package/dist/bundle/{chunk-5RSC54NA.js → chunk-JODE2XED.js} +25 -25
  41. package/dist/bundle/{chunk-RV64YUQX.js → chunk-K5I64ZVI.js} +9 -9
  42. package/dist/bundle/{chunk-AOCUKEAX.js → chunk-KL3P5TQK.js} +4 -4
  43. package/dist/bundle/{chunk-2LWO3PDX.js → chunk-L62XTC7N.js} +11 -11
  44. package/dist/bundle/{chunk-LLG2POQ7.js → chunk-L6H7PY4X.js} +3 -3
  45. package/dist/bundle/{chunk-5RDNBG7D.js → chunk-LIQMUDIZ.js} +2 -2
  46. package/dist/bundle/{chunk-WF4D56CA.js → chunk-M2EEIYBU.js} +2 -2
  47. package/dist/bundle/{chunk-MZU2YFBZ.js → chunk-M6DGZ2O6.js} +8 -8
  48. package/dist/bundle/{chunk-FXEJY4OL.js → chunk-MRA62W5K.js} +233 -167
  49. package/dist/bundle/{chunk-XYIT2XB3.js → chunk-MVA5HVKL.js} +20 -0
  50. package/dist/bundle/{chunk-YVI5SQPY.js → chunk-NO2LIHWA.js} +1 -1
  51. package/dist/bundle/{chunk-WCSOH4JS.js → chunk-OCDJ4FFA.js} +4 -4
  52. package/dist/bundle/{chunk-2F4QQ7WB.js → chunk-OI5DWZJG.js} +3 -3
  53. package/dist/bundle/{chunk-EUIVXFLJ.js → chunk-P3P6DA6K.js} +6 -6
  54. package/dist/bundle/{chunk-MY742GAD.js → chunk-QX3TPFEX.js} +37 -37
  55. package/dist/bundle/{chunk-6RA3EABS.js → chunk-R6SDRSZK.js} +62 -32
  56. package/dist/bundle/{chunk-5QIQEUOG.js → chunk-RMJMID5D.js} +8 -8
  57. package/dist/bundle/{chunk-BNPTZ5ZB.js → chunk-SGBS5QCU.js} +4 -4
  58. package/dist/bundle/{chunk-YNTLT3Z3.js → chunk-T5UNSFES.js} +8 -8
  59. package/dist/bundle/{chunk-M7S2NDWB.js → chunk-TFNRCCGR.js} +4 -4
  60. package/dist/bundle/{chunk-B7ON6KPT.js → chunk-TJCPTRYD.js} +7 -7
  61. package/dist/bundle/{chunk-KM6WHPHI.js → chunk-TXONV3HW.js} +2 -2
  62. package/dist/bundle/{chunk-NOQ7B5N7.js → chunk-TZ2QJ53V.js} +2 -2
  63. package/dist/bundle/{chunk-KGERXYTV.js → chunk-UKE3CGHK.js} +1 -1
  64. package/dist/bundle/{chunk-6EVKHZKN.js → chunk-UROEWCOG.js} +3 -3
  65. package/dist/bundle/{chunk-WJHZMR2W.js → chunk-WHJWURZB.js} +6 -6
  66. package/dist/bundle/{chunk-G3EZFRSS.js → chunk-WU3XHGOB.js} +112 -42
  67. package/dist/bundle/{chunk-2F6VO5HA.js → chunk-WZEEEQGC.js} +3 -3
  68. package/dist/bundle/{chunk-M3KB25D3.js → chunk-XCTOCVMW.js} +14 -14
  69. package/dist/bundle/{chunk-FT3LN3HP.js → chunk-Y5LAJWR5.js} +1 -1
  70. package/dist/bundle/{chunk-ZZ32DXTH.js → chunk-YAPDU3SV.js} +1 -1
  71. package/dist/bundle/{chunk-HL52XXZX.js → chunk-YFWLHTNO.js} +1 -1
  72. package/dist/bundle/{chunk-P7CUM5IB.js → chunk-YGCI3DHS.js} +1 -1
  73. package/dist/bundle/{chunk-KCLOUUYF.js → chunk-Z53LYX4M.js} +3 -3
  74. package/dist/bundle/{chunk-ZKAEZXUP.js → chunk-ZC6ZQQ55.js} +36 -37
  75. package/dist/bundle/command-contract-UBXS6NHI.js +38 -0
  76. package/dist/bundle/{command-server-entry-UFSG7KRO.js → command-server-entry-2SORMVRM.js} +27 -27
  77. package/dist/bundle/{decode-7LLWTSPT.js → decode-5O7IEFPN.js} +6 -6
  78. package/dist/bundle/{dispatch-2GY6JIJH.js → dispatch-YHQX6FEJ.js} +8 -8
  79. package/dist/bundle/{echarts-BXX4OQWC.js → echarts-ARLMVQC7.js} +2 -2
  80. package/dist/bundle/{embed-JXFNBTKH.js → embed-FUDUKQ3K.js} +7 -7
  81. package/dist/bundle/{embedder-57YZ44KO.js → embedder-HDRV7GX3.js} +10 -10
  82. package/dist/bundle/{failure-MYT4HPE3.js → failure-JHXICWIL.js} +3 -3
  83. package/dist/bundle/first-run-BGEFTXOE.js +29 -0
  84. package/dist/bundle/first-screen-F5F3VS6Y.js +38 -0
  85. package/dist/bundle/{instructions-2VECIDXF.js → instructions-MEFIKCDI.js} +1 -1
  86. package/dist/bundle/{mcp-O6ACR2DX.js → mcp-VMS6PBCU.js} +2 -2
  87. package/dist/bundle/meeting-combined-HNSS3FQY.js +24 -0
  88. package/dist/bundle/meeting-model-REZVYGQW.js +26 -0
  89. package/dist/bundle/{meeting-semantic-ETN3A4BJ.js → meeting-semantic-R4CSLVRG.js} +7 -7
  90. package/dist/bundle/{node-MPEQSFI3.js → node-MAQALPLA.js} +2 -2
  91. package/dist/bundle/{node-sqlite-WA32MYSJ.js → node-sqlite-J7IJYNBO.js} +8 -8
  92. package/dist/bundle/notion.js +14 -14
  93. package/dist/bundle/{oauth-IAFZG3IR.js → oauth-AMV4YGJD.js} +8 -8
  94. package/dist/bundle/{open-M3JQUC5G.js → open-AB27MTGR.js} +6 -6
  95. package/dist/bundle/{openai-HXUEHUSD.js → openai-D77MU5XV.js} +17 -17
  96. package/dist/bundle/{process-F6TKXWWA.js → process-SIOWTRJ6.js} +1 -1
  97. package/dist/bundle/{program-Y7JAB6TG.js → program-QC5MX4ZJ.js} +2816 -1645
  98. package/dist/bundle/{prompt-IMUQLZD2.js → prompt-W77YDHA6.js} +6 -6
  99. package/dist/bundle/{recognize-2MZAYHAA.js → recognize-3JAXQQ36.js} +5 -5
  100. package/dist/bundle/{remote-OV4LB6VR.js → remote-PSOJXCXO.js} +11 -11
  101. package/dist/bundle/{rerank-ZIULUS34.js → rerank-EE44ZTGL.js} +8 -8
  102. package/dist/bundle/{schemas-DIVZS6TU.js → schemas-LBYUMBC6.js} +2 -2
  103. package/dist/bundle/{serve-YU7QBP6L.js → serve-XJMGAMFW.js} +10 -10
  104. package/dist/bundle/{server-LGMNONSB.js → server-ASU6CP5R.js} +51 -51
  105. package/dist/bundle/server-WSPQ5EOA.js +72 -0
  106. package/dist/bundle/{services-5WY4DCPJ.js → services-PT4PA4J6.js} +46 -39
  107. package/dist/bundle/{sqlite-runtime-5MXZDETH.js → sqlite-runtime-YHXRTVXE.js} +7 -7
  108. package/dist/bundle/{state-LWMZH2KI.js → state-T6ZKFWGD.js} +7 -7
  109. package/dist/bundle/{store-EPZYV4VW.js → store-3MUCZEI3.js} +20 -18
  110. package/dist/bundle/{store-QE6FEIZD.js → store-E5EE25FY.js} +24 -20
  111. package/dist/bundle/store-maintenance-command-ZZ55BBBG.js +63 -0
  112. package/dist/commands/api.d.ts.map +1 -1
  113. package/dist/commands/api.js +13 -4
  114. package/dist/commands/api.js.map +1 -1
  115. package/dist/commands/documents.d.ts +8 -0
  116. package/dist/commands/documents.d.ts.map +1 -1
  117. package/dist/commands/documents.js +173 -3
  118. package/dist/commands/documents.js.map +1 -1
  119. package/dist/commands/library.d.ts.map +1 -1
  120. package/dist/commands/library.js +3 -1
  121. package/dist/commands/library.js.map +1 -1
  122. package/dist/config.d.ts +19 -0
  123. package/dist/config.d.ts.map +1 -1
  124. package/dist/config.js +73 -5
  125. package/dist/config.js.map +1 -1
  126. package/dist/context.d.ts +3 -0
  127. package/dist/context.d.ts.map +1 -1
  128. package/dist/context.js +3 -0
  129. package/dist/context.js.map +1 -1
  130. package/dist/generated/types.d.ts +485 -375
  131. package/dist/generated/types.d.ts.map +1 -1
  132. package/dist/notion/errors.d.ts +5 -0
  133. package/dist/notion/errors.d.ts.map +1 -1
  134. package/dist/notion/errors.js +7 -0
  135. package/dist/notion/errors.js.map +1 -1
  136. package/dist/notion/writes.d.ts +40 -0
  137. package/dist/notion/writes.d.ts.map +1 -0
  138. package/dist/notion/writes.js +112 -0
  139. package/dist/notion/writes.js.map +1 -0
  140. package/dist/sync/cursor.d.ts +12 -0
  141. package/dist/sync/cursor.d.ts.map +1 -1
  142. package/dist/sync/files.d.ts +10 -0
  143. package/dist/sync/files.d.ts.map +1 -1
  144. package/dist/sync/files.js +19 -0
  145. package/dist/sync/files.js.map +1 -1
  146. package/dist/sync/source.d.ts.map +1 -1
  147. package/dist/sync/source.js +43 -25
  148. package/dist/sync/source.js.map +1 -1
  149. package/dist/version.d.ts +1 -1
  150. package/dist/version.js +1 -1
  151. package/package.json +3 -3
  152. package/skills/notion-cli/SKILL.md +6 -0
  153. package/dist/bundle/command-contract-JS5V27NX.js +0 -38
  154. package/dist/bundle/first-run-3PF7T74J.js +0 -29
  155. package/dist/bundle/first-screen-7BEROEQR.js +0 -36
  156. package/dist/bundle/meeting-combined-PPUQ3KBR.js +0 -24
  157. package/dist/bundle/meeting-model-ZNMYKMCD.js +0 -26
  158. package/dist/bundle/server-FKQET4ZO.js +0 -71
  159. package/dist/bundle/store-maintenance-command-ZUUUFCHL.js +0 -62
  160. /package/dist/bundle/{chunk-VKE77B3F.js → chunk-SHTHNBHG.js} +0 -0
@@ -9,20 +9,20 @@ import {
9
9
  providerErrorKey,
10
10
  renderEvent,
11
11
  runContextOf
12
- } from "./chunk-5NFK5EM2.js";
12
+ } from "./chunk-IJMFG7HB.js";
13
13
  import {
14
14
  permissionCeiling
15
- } from "./chunk-SWAOWNKW.js";
15
+ } from "./chunk-4TQVZXOV.js";
16
16
  import {
17
17
  DEFAULT_RERANK_MODEL,
18
18
  RERANK_MODELS
19
- } from "./chunk-WJHZMR2W.js";
19
+ } from "./chunk-WHJWURZB.js";
20
20
  import {
21
21
  carries
22
- } from "./chunk-Z56QFOBR.js";
22
+ } from "./chunk-7YZPBAQX.js";
23
23
  import {
24
24
  note
25
- } from "./chunk-TSDBSIFM.js";
25
+ } from "./chunk-HTKSCSJU.js";
26
26
  import {
27
27
  BUSINESS_KINDS,
28
28
  CATEGORIES,
@@ -80,14 +80,14 @@ import {
80
80
  typedCommand,
81
81
  untrusted,
82
82
  useAsProcessRun
83
- } from "./chunk-MY742GAD.js";
83
+ } from "./chunk-QX3TPFEX.js";
84
84
  import {
85
85
  isCliFailure,
86
86
  storeDamaged
87
- } from "./chunk-6EVKHZKN.js";
87
+ } from "./chunk-UROEWCOG.js";
88
88
  import {
89
89
  TAG_TYPES
90
- } from "./chunk-SZOVLP44.js";
90
+ } from "./chunk-5UA2TYMI.js";
91
91
  import {
92
92
  FACT_TYPES,
93
93
  FIELD_TYPES,
@@ -97,6 +97,7 @@ import {
97
97
  describeQuery,
98
98
  event,
99
99
  meeting,
100
+ meetingCall,
100
101
  meetingCounts,
101
102
  meetingDetails,
102
103
  meetingHit,
@@ -114,21 +115,21 @@ import {
114
115
  parseLucene,
115
116
  readsZone,
116
117
  timezoneOf
117
- } from "./chunk-FWVBPRL4.js";
118
+ } from "./chunk-FSJHASRQ.js";
118
119
  import {
119
120
  endpoint
120
- } from "./chunk-2F6VO5HA.js";
121
+ } from "./chunk-WZEEEQGC.js";
121
122
  import {
122
123
  repairConfigText,
123
124
  sharedConfigPath
124
- } from "./chunk-B7ON6KPT.js";
125
+ } from "./chunk-TJCPTRYD.js";
125
126
  import {
126
127
  filesPresent,
127
128
  sharedModelsDirectory
128
- } from "./chunk-D7QSEEYW.js";
129
+ } from "./chunk-JIRRF6BM.js";
129
130
  import {
130
131
  storePath
131
- } from "./chunk-WF4D56CA.js";
132
+ } from "./chunk-M2EEIYBU.js";
132
133
  import {
133
134
  configFilePath,
134
135
  createRecordLog,
@@ -140,7 +141,7 @@ import {
140
141
  resolvePaths,
141
142
  saveConfigFile,
142
143
  writeSecurely
143
- } from "./chunk-3AL7QUS3.js";
144
+ } from "./chunk-AYU5TFDU.js";
144
145
  import {
145
146
  COMPACT_FLAG,
146
147
  MAX_NEXT_STEPS,
@@ -157,7 +158,7 @@ import {
157
158
  reference,
158
159
  stepOf,
159
160
  writes
160
- } from "./chunk-4IPURN72.js";
161
+ } from "./chunk-6GN7KU7X.js";
161
162
  import {
162
163
  array,
163
164
  boolean,
@@ -194,18 +195,18 @@ import {
194
195
  unknown,
195
196
  unwrap,
196
197
  variant
197
- } from "./chunk-XYIT2XB3.js";
198
+ } from "./chunk-MVA5HVKL.js";
198
199
  import {
199
200
  CliError,
200
201
  isCliError,
201
202
  singleLine,
202
203
  visibleControls
203
- } from "./chunk-5RDNBG7D.js";
204
+ } from "./chunk-LIQMUDIZ.js";
204
205
  import {
205
206
  __name
206
207
  } from "./chunk-ZVVMGPBJ.js";
207
208
 
208
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/ports/app.js
209
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/ports/app.js
209
210
  import { readFileSync } from "node:fs";
210
211
  var envName = /* @__PURE__ */ __name((app, name) => `${app.envPrefix}_${name}`, "envName");
211
212
  var locking = /* @__PURE__ */ __name((value) => value !== void 0 && value.trim() !== "" && value !== "0", "locking");
@@ -259,7 +260,7 @@ var mailHolderVariable = /* @__PURE__ */ __name((app) => envName(app, "MAIL_HOLD
259
260
  var MESSENGER_CHANGE_REFUSAL = "send, react, change chats or change the account";
260
261
  var readOnlyRefusal = /* @__PURE__ */ __name((lock, what) => new CliError("permission_error", `this process is read-only (${lock}) \u2014 it cannot ${what}`), "readOnlyRefusal");
261
262
 
262
- // node_modules/.pnpm/@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/registry.js
263
+ // node_modules/.pnpm/@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/registry.js
263
264
  var labels = /* @__PURE__ */ new WeakMap();
264
265
  var annotate = /* @__PURE__ */ __name((command, meta) => {
265
266
  labels.set(command, { ...labels.get(command), ...meta });
@@ -3760,7 +3761,7 @@ __name(useColor, "useColor");
3760
3761
  // node_modules/.pnpm/commander@15.0.0/node_modules/commander/index.js
3761
3762
  var program = new Command();
3762
3763
 
3763
- // node_modules/.pnpm/@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/document.js
3764
+ // node_modules/.pnpm/@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/document.js
3764
3765
  var argumentInfoSchema = object({
3765
3766
  name: string(),
3766
3767
  required: boolean(),
@@ -3834,7 +3835,7 @@ var commandsDocumentSchema = strictObject({
3834
3835
  exit_codes: record(string(), pipe(number(), integer()))
3835
3836
  });
3836
3837
 
3837
- // node_modules/.pnpm/@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/contracts.js
3838
+ // node_modules/.pnpm/@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/contracts.js
3838
3839
  import { isDeepStrictEqual } from "node:util";
3839
3840
  var protectedCommands = /* @__PURE__ */ new WeakMap();
3840
3841
  var hasSharedContract = /* @__PURE__ */ __name((command) => protectedCommands.has(command), "hasSharedContract");
@@ -3944,7 +3945,7 @@ var sharedCommand = /* @__PURE__ */ __name((factory) => (...args) => {
3944
3945
  return result;
3945
3946
  }, "sharedCommand");
3946
3947
 
3947
- // node_modules/.pnpm/@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/index.js
3948
+ // node_modules/.pnpm/@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/index.js
3948
3949
  var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
3949
3950
  let command = root;
3950
3951
  const path2 = [];
@@ -3962,7 +3963,7 @@ var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
3962
3963
  }
3963
3964
  }, "refuseJoinedPath");
3964
3965
 
3965
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/sends/permissions.js
3966
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/sends/permissions.js
3966
3967
  var LEVELS = ["deny", "readonly", "ask", "allow"];
3967
3968
  var DANGEROUS = /* @__PURE__ */ new Set(["messages.delete", "bot.messages.delete", "topics.delete", "chats.delete", "chats.clear"]);
3968
3969
  var skipFlagFor = /* @__PURE__ */ __name((key) => DANGEROUS.has(key) ? "--allow-dangerous" : "--yes", "skipFlagFor");
@@ -4388,7 +4389,7 @@ var assertRetentionEvidenceRead = /* @__PURE__ */ __name((permissions) => {
4388
4389
  }
4389
4390
  }, "assertRetentionEvidenceRead");
4390
4391
 
4391
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/cli/command-server-request.js
4392
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/cli/command-server-request.js
4392
4393
  import { AsyncLocalStorage } from "node:async_hooks";
4393
4394
  var requests = new AsyncLocalStorage();
4394
4395
  var inCommandServerRequest = /* @__PURE__ */ __name((request, work) => requests.run(request, work), "inCommandServerRequest");
@@ -4403,7 +4404,7 @@ var exitCodeSet = /* @__PURE__ */ __name(() => {
4403
4404
  return direct;
4404
4405
  }, "exitCodeSet");
4405
4406
 
4406
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/sends/guarded.js
4407
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/sends/guarded.js
4407
4408
  import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
4408
4409
  var sentIds = /* @__PURE__ */ __name((typed2, message2) => ({
4409
4410
  messageId: message2.id,
@@ -4509,7 +4510,7 @@ var guardedWrite = /* @__PURE__ */ __name(async (guard, attempt, act, settled2 =
4509
4510
  }, "guardedWrite");
4510
4511
  var codeOf = /* @__PURE__ */ __name((error) => typeof error?.code === "string" ? error.code : "unknown", "codeOf");
4511
4512
 
4512
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/cli/result-fields.js
4513
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/cli/result-fields.js
4513
4514
  var named = /* @__PURE__ */ __name((work) => {
4514
4515
  try {
4515
4516
  return work();
@@ -4536,7 +4537,7 @@ var projectFields2 = /* @__PURE__ */ __name((value, fields) => named(() => {
4536
4537
  return projectFields(value, fields);
4537
4538
  }), "projectFields");
4538
4539
 
4539
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/cli/execution.js
4540
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/cli/execution.js
4540
4541
  var DEFAULT_COMMAND_MS = 3e4;
4541
4542
  var DEFAULT_COOPERATIVE_MS = 5 * 6e4;
4542
4543
  var DEFAULT_SYNC_MS = 15 * 6e4;
@@ -4719,7 +4720,7 @@ var withAbort = /* @__PURE__ */ __name(async (signal, body) => {
4719
4720
  }
4720
4721
  }, "withAbort");
4721
4722
 
4722
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/cli/messenger/accounts.js
4723
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/cli/messenger/accounts.js
4723
4724
  import { existsSync, readdirSync, readFileSync as readFileSync2 } from "node:fs";
4724
4725
  import { join } from "node:path";
4725
4726
  var accountFileFor = /* @__PURE__ */ __name((app, profile, env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "accounts", `${profile}.json`), "accountFileFor");
@@ -4741,10 +4742,12 @@ var profilesWithAccounts = /* @__PURE__ */ __name((app, env) => {
4741
4742
  }, "profilesWithAccounts");
4742
4743
  var profilesHere = /* @__PURE__ */ __name((app, configured, env) => [.../* @__PURE__ */ new Set([...configured, ...profilesWithAccounts(app, env)])].sort(), "profilesHere");
4743
4744
 
4744
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/background/budget.js
4745
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/background/budget.js
4745
4746
  var DEADLINE_MARGIN_MS = 5e3;
4746
4747
  var DEADLINE_MARGIN_SHARE = 0.15;
4747
4748
  var DEFAULT_REQUEST_MS = 2e3;
4749
+ var ANSWER_RESERVE_MS = 500;
4750
+ var oneMoreFits = /* @__PURE__ */ __name((deadline, at2, requestMs = DEFAULT_REQUEST_MS) => deadline !== void 0 && at2 + requestMs + ANSWER_RESERVE_MS < deadline.endsAt, "oneMoreFits");
4748
4751
  var deadlineMargin = /* @__PURE__ */ __name((deadline) => Math.max(DEADLINE_MARGIN_MS, deadline.ms * DEADLINE_MARGIN_SHARE), "deadlineMargin");
4749
4752
  var requestsFor = /* @__PURE__ */ __name((deadline, requestMs = DEFAULT_REQUEST_MS) => deadline === void 0 ? null : Math.max(1, Math.floor((deadline.ms - deadlineMargin(deadline)) / requestMs)), "requestsFor");
4750
4753
  var runBudget = /* @__PURE__ */ __name(({ requests: requests2, deadline, requestMs, signal, now = Date.now } = {}) => {
@@ -4752,6 +4755,7 @@ var runBudget = /* @__PURE__ */ __name(({ requests: requests2, deadline, request
4752
4755
  const limit = fits === null ? requests2 ?? null : Math.min(fits, requests2 ?? fits);
4753
4756
  const margin = deadline ? deadlineMargin(deadline) : 0;
4754
4757
  let used = 0;
4758
+ let granted = false;
4755
4759
  let stopped2 = null;
4756
4760
  let last;
4757
4761
  let slowest = 0;
@@ -4774,6 +4778,17 @@ var runBudget = /* @__PURE__ */ __name(({ requests: requests2, deadline, request
4774
4778
  last = at2;
4775
4779
  return null;
4776
4780
  },
4781
+ first() {
4782
+ if (granted || used > 0 || stopped2 !== "deadline")
4783
+ return false;
4784
+ const at2 = now();
4785
+ if (!oneMoreFits(deadline, at2, Math.max(requestMs ?? DEFAULT_REQUEST_MS, slowest)))
4786
+ return false;
4787
+ granted = true;
4788
+ used += 1;
4789
+ last = at2;
4790
+ return true;
4791
+ },
4777
4792
  get used() {
4778
4793
  return used;
4779
4794
  },
@@ -4784,7 +4799,7 @@ var runBudget = /* @__PURE__ */ __name(({ requests: requests2, deadline, request
4784
4799
  };
4785
4800
  }, "runBudget");
4786
4801
 
4787
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/output-detail.js
4802
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/output-detail.js
4788
4803
  var RARELY_SET = ["editedAt", "replyTo", "forwardedFrom", "reactions"];
4789
4804
  var BRIEF = ["locator", "chatTitle", "timestamp", "senderName", "excerpt", "score"];
4790
4805
  var SNAKE_BRIEF = ["ref", "chat_title", "timestamp", "sender_name", "excerpt", "score"];
@@ -4820,7 +4835,7 @@ var atDetail = /* @__PURE__ */ __name((value, detail = "default") => {
4820
4835
  return value;
4821
4836
  }, "atDetail");
4822
4837
 
4823
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/output.js
4838
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/output.js
4824
4839
  var refuseCompact = /* @__PURE__ */ __name(({ json, jsonl, fields, hitDetail }) => {
4825
4840
  const other = jsonl ? "--jsonl" : fields !== void 0 ? "--json=\u2026" : json ? "--json" : hitDetail === "brief" ? "--brief" : "";
4826
4841
  if (other)
@@ -4884,7 +4899,7 @@ var silence = /* @__PURE__ */ __name((renderer) => ({
4884
4899
  }, "warn")
4885
4900
  }), "silence");
4886
4901
 
4887
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/runs/log-events.js
4902
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/runs/log-events.js
4888
4903
  var CORE_LOG_EVENTS = defineLogEvents([
4889
4904
  { id: "provider.request", meaning: "a request went to the messenger", keys: ["operation"] },
4890
4905
  { id: "provider.response", meaning: "the messenger answered the request, or it failed", keys: ["operation"] },
@@ -4922,7 +4937,7 @@ var DIAGNOSTIC_LOG_EVENTS = {
4922
4937
  progress: "sync.progress"
4923
4938
  };
4924
4939
 
4925
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/runs/recording.js
4940
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/runs/recording.js
4926
4941
  var recorded = /* @__PURE__ */ __name(async (options, body) => {
4927
4942
  const recording = startRecording(options);
4928
4943
  try {
@@ -5137,7 +5152,7 @@ var partialOutcome = /* @__PURE__ */ __name((answer) => {
5137
5152
  return void 0;
5138
5153
  }, "partialOutcome");
5139
5154
 
5140
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/cli/deadline.js
5155
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/cli/deadline.js
5141
5156
  var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
5142
5157
  if (ms2 === void 0)
5143
5158
  return body();
@@ -5163,7 +5178,7 @@ var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
5163
5178
  }
5164
5179
  }, "withDeadline");
5165
5180
 
5166
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/cli/profile.js
5181
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/cli/profile.js
5167
5182
  var asFirstWord = /* @__PURE__ */ __name((profile) => `${profile} `, "asFirstWord");
5168
5183
  var PLAIN_NAME = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
5169
5184
  var isProfileName = /* @__PURE__ */ __name((word) => PLAIN_NAME.test(word), "isProfileName");
@@ -5232,10 +5247,10 @@ var sampleCommand = /* @__PURE__ */ __name((commands) => {
5232
5247
  return void 0;
5233
5248
  }, "sampleCommand");
5234
5249
 
5235
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/cli/settings.js
5250
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/cli/settings.js
5236
5251
  import { existsSync as existsSync4 } from "node:fs";
5237
5252
 
5238
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/models/settings.js
5253
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/models/settings.js
5239
5254
  var MODEL_FIELDS = ["provider", "model", "base_url"];
5240
5255
  var modelSettingsShape = record(pipe(string(), regex(/^[a-z][a-z0-9-]*$/)), strictObject({
5241
5256
  provider: optional(picklist(["off", "openai", "anthropic"])),
@@ -5304,7 +5319,7 @@ var modelTarget = /* @__PURE__ */ __name((settings, purpose) => {
5304
5319
  };
5305
5320
  }, "modelTarget");
5306
5321
 
5307
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/analysis/settings.js
5322
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/analysis/settings.js
5308
5323
  var model = pipe(string(), trim(), minLength(1), maxLength(200));
5309
5324
  var url = pipe(string(), check(endpoint, "use an HTTP/S endpoint without credentials, query or fragment"));
5310
5325
  var AI_FIELDS = {
@@ -5348,7 +5363,7 @@ var resolveAISettings = /* @__PURE__ */ __name((prefix, layers, env) => {
5348
5363
  };
5349
5364
  }, "resolveAISettings");
5350
5365
 
5351
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/domain/duration.js
5366
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/domain/duration.js
5352
5367
  var DURATION = /^(\d+)(ms|s|m|h|d)$/;
5353
5368
  var UNIT_MS = { ms: 1, s: 1e3, m: 6e4, h: 36e5, d: 864e5 };
5354
5369
  var parseDuration = /* @__PURE__ */ __name((value, source2) => {
@@ -5362,7 +5377,7 @@ var parseDuration = /* @__PURE__ */ __name((value, source2) => {
5362
5377
  return ms2;
5363
5378
  }, "parseDuration");
5364
5379
 
5365
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/services/history-limits.js
5380
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/history-limits.js
5366
5381
  var HISTORY_MAX_DAYS = 1095;
5367
5382
  var DEFAULT_HISTORY_LIMITS = { dialogDays: 1095, groupDays: 365, groupMembersMax: 50 };
5368
5383
  var DAY_MS = 24 * 60 * 60 * 1e3;
@@ -5409,7 +5424,7 @@ var limitBatch = /* @__PURE__ */ __name((batch, shapes, included, limits, now =
5409
5424
  return { batch: { ...batch, messages }, skipped };
5410
5425
  }, "limitBatch");
5411
5426
 
5412
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/cli/bot/registry.js
5427
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/cli/bot/registry.js
5413
5428
  import { existsSync as existsSync2, readdirSync as readdirSync2, readFileSync as readFileSync3 } from "node:fs";
5414
5429
  import { join as join2 } from "node:path";
5415
5430
  var botsDirectory = /* @__PURE__ */ __name((app, env = process.env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "bots"), "botsDirectory");
@@ -5498,7 +5513,7 @@ var registryProfiles = /* @__PURE__ */ __name((app, env = process.env) => {
5498
5513
  return readdirSync2(directory, { withFileTypes: true }).filter((entry) => entry.isFile() && entry.name.endsWith(".json")).map((entry) => entry.name).map((name) => name.slice(0, -".json".length));
5499
5514
  }, "registryProfiles");
5500
5515
 
5501
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
5516
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
5502
5517
  import { readFileSync as readFileSync4 } from "node:fs";
5503
5518
  var isNode = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
5504
5519
  var SECTIONS = ["personal", "bot"];
@@ -5793,7 +5808,7 @@ var readConfigFile = /* @__PURE__ */ __name((path2) => {
5793
5808
  return "issue" in parsed ? { issue: publicIssue(parsed.issue) } : parsed;
5794
5809
  }, "readConfigFile");
5795
5810
 
5796
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/cli/default-config.js
5811
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/cli/default-config.js
5797
5812
  import { existsSync as existsSync3, linkSync, mkdirSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";
5798
5813
  import { dirname, join as join3 } from "node:path";
5799
5814
  var DEFAULT_CONFIG = {
@@ -5822,7 +5837,7 @@ function ensureDefaultConfig(path2, config = DEFAULT_CONFIG) {
5822
5837
  }
5823
5838
  __name(ensureDefaultConfig, "ensureDefaultConfig");
5824
5839
 
5825
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/cli/setting-defaults.js
5840
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/cli/setting-defaults.js
5826
5841
  var isNode2 = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
5827
5842
  var parentOf = /* @__PURE__ */ __name((config, key) => {
5828
5843
  const path2 = key.split(".");
@@ -5844,7 +5859,7 @@ var withSettingDefaults = /* @__PURE__ */ __name((raw, declared) => {
5844
5859
  return { config, added };
5845
5860
  }, "withSettingDefaults");
5846
5861
 
5847
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/cli/settings.js
5862
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/cli/settings.js
5848
5863
  var DEFAULT_LIMIT = DEFAULT_CONFIG.defaults.limit;
5849
5864
  var DEFAULT_KEEP_RUNS_FOR_DAYS = DEFAULT_CONFIG.defaults.keep_runs_for_days;
5850
5865
  var DEFAULT_SENDS_PER_HOUR = DEFAULT_CONFIG.defaults.sends_per_hour;
@@ -5993,13 +6008,13 @@ var NoProfileHere = class extends CliError {
5993
6008
  }
5994
6009
  app;
5995
6010
  constructor(app) {
5996
- super("validation_error", `name a profile: there is none on this computer yet \u2014 create one with \`${app.command} personal setup\` (any name in place of personal)`, { profiles: [] });
6011
+ super("validation_error", `name a profile: there is none on this computer yet \u2014 create one with \`${app.command} personal setup\` (any name in place of personal)`, { reason: "profile.missing", profiles: [] });
5997
6012
  this.app = app;
5998
6013
  }
5999
6014
  /** `words`: the command that was typed, without its arguments, so the suggestion runs as written. */
6000
6015
  withoutSetup(words) {
6001
6016
  const command = words ? `${this.app.command} personal ${words}` : `${this.app.command} personal \u2026`;
6002
- return new CliError("validation_error", `name a profile: there is none on this computer yet \u2014 any name works, such as \`${command}\` (or set ${envName(this.app, "PROFILE")})`, { profiles: [] });
6017
+ return new CliError("validation_error", `name a profile: there is none on this computer yet \u2014 any name works, such as \`${command}\` (or set ${envName(this.app, "PROFILE")})`, { reason: "profile.missing", profiles: [] });
6003
6018
  }
6004
6019
  };
6005
6020
  var first = /* @__PURE__ */ __name((candidates, fallback) => {
@@ -6077,7 +6092,7 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
6077
6092
  const here = profilesOf(config, env);
6078
6093
  if (here.length === 0)
6079
6094
  throw new NoProfileHere(app);
6080
- throw new CliError("validation_error", `name a profile: \`${app.command} <profile> \u2026\` \u2014 profiles here: ${here.join(", ")} (or set ${PROFILE})`, { profiles: here });
6095
+ throw new CliError("validation_error", `name a profile: \`${app.command} <profile> \u2026\` \u2014 profiles here: ${here.join(", ")} (or set ${PROFILE})`, { reason: "profile.missing", profiles: here });
6081
6096
  }, "unnamed");
6082
6097
  const profilesOf = /* @__PURE__ */ __name((config, env) => profilesHere(app, [...namedProfiles(config), ...extension.profiles?.(env) ?? []], env), "profilesOf");
6083
6098
  const botsOf = /* @__PURE__ */ __name((config, env) => [.../* @__PURE__ */ new Set([...Object.keys(config.bot?.profiles ?? {}), ...registryProfiles(app, env)])].sort(), "botsOf");
@@ -6324,9 +6339,11 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
6324
6339
  saveConfigFile(path2, config);
6325
6340
  return added;
6326
6341
  }, "migrate");
6342
+ const settingSchema = /* @__PURE__ */ __name((key) => Object.hasOwn(profileEntries, key) ? profileEntries[key] : void 0, "settingSchema");
6327
6343
  return {
6328
6344
  resolveSettings,
6329
6345
  configuredProfiles,
6346
+ settingSchema,
6330
6347
  changeSetting,
6331
6348
  migrate,
6332
6349
  declaredSettings,
@@ -6370,7 +6387,7 @@ var given = /* @__PURE__ */ __name((value) => {
6370
6387
  return trimmed === void 0 || trimmed === "" ? void 0 : trimmed;
6371
6388
  }, "given");
6372
6389
 
6373
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/cli/context.js
6390
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/cli/context.js
6374
6391
  var runBudgetOf = /* @__PURE__ */ __name((command, requests2) => {
6375
6392
  const { deadline, signal, app } = environmentOf(command);
6376
6393
  const now = deadline?.();
@@ -6516,7 +6533,7 @@ var commandPath = /* @__PURE__ */ __name((command) => {
6516
6533
  return words.join(" ");
6517
6534
  }, "commandPath");
6518
6535
 
6519
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/cli/effects.js
6536
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/cli/effects.js
6520
6537
  var REMOTE_READ = { remote: "read", local: "read" };
6521
6538
  var FETCH = { remote: "read", local: "write" };
6522
6539
  var REMOTE_WRITE = { remote: "write", local: "write" };
@@ -6652,7 +6669,7 @@ var refuseUnderReadOnly = /* @__PURE__ */ __name((command, what) => {
6652
6669
  throw readOnlyRefusal(lock, what);
6653
6670
  }, "refuseUnderReadOnly");
6654
6671
 
6655
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/account.js
6672
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/account.js
6656
6673
  var account = strictObject({
6657
6674
  provider: text,
6658
6675
  id,
@@ -6662,7 +6679,7 @@ var account = strictObject({
6662
6679
  scope: optional(picklist(["personal", "work"]))
6663
6680
  });
6664
6681
 
6665
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/account-session.js
6682
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/account-session.js
6666
6683
  var accountSession = strictObject({
6667
6684
  current: boolean(),
6668
6685
  client: nullable(text),
@@ -6672,7 +6689,7 @@ var accountSession = strictObject({
6672
6689
  created_at: optional(nullable(time))
6673
6690
  });
6674
6691
 
6675
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/account-change.js
6692
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/account-change.js
6676
6693
  var accountChange = strictObject({ operation_id: id, account: omit(account, ["provider", "scope"]) });
6677
6694
  var endedAccountSessions = strictObject({ operation_id: id, sessions: array(accountSession) });
6678
6695
  var audience = picklist(["everyone", "contacts", "nobody"]);
@@ -6701,7 +6718,7 @@ var accountRemoval = strictObject({
6701
6718
  kept: array(strictObject({ kind: removalKind, target: text, reason: text }))
6702
6719
  });
6703
6720
 
6704
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/account-profile.js
6721
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/account-profile.js
6705
6722
  var accountProfile = strictObject({
6706
6723
  profile: id,
6707
6724
  current: boolean(),
@@ -6713,7 +6730,7 @@ var accountProfile = strictObject({
6713
6730
  bot: optional(literal(true))
6714
6731
  });
6715
6732
 
6716
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/counter-reading.js
6733
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/counter-reading.js
6717
6734
  var milliseconds = pipe(number(), minValue(0));
6718
6735
  var counterReading = strictObject({
6719
6736
  counter: picklist(["views", "reactions", "comments"]),
@@ -6725,7 +6742,7 @@ var counterReading = strictObject({
6725
6742
  });
6726
6743
  var selection = record(string(), unknown());
6727
6744
 
6728
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/admin-report.js
6745
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/admin-report.js
6729
6746
  var adminRow = strictObject({
6730
6747
  ref: reference,
6731
6748
  /** What `stats * evidence` takes: a person id, a stay or a message locator. */
@@ -6778,7 +6795,7 @@ var adminReport = strictObject({
6778
6795
  rows: array(adminRow)
6779
6796
  });
6780
6797
 
6781
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/task.js
6798
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/task.js
6782
6799
  var closeSuggestion = strictObject({
6783
6800
  as: picklist(["done", "dismissed"]),
6784
6801
  /** The agent's name. */
@@ -6840,7 +6857,7 @@ var task = strictObject({
6840
6857
  updated_at: optional(time)
6841
6858
  });
6842
6859
 
6843
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/agenda.js
6860
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/agenda.js
6844
6861
  var agendaChat = strictObject({
6845
6862
  chat: reference,
6846
6863
  title: nullable(text),
@@ -6910,11 +6927,11 @@ var agenda = strictObject({
6910
6927
  unlisted_categories: array(strictObject({ name: text, open_tasks: number() }))
6911
6928
  });
6912
6929
 
6913
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/analysis-consent.js
6930
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/analysis-consent.js
6914
6931
  var analysisConsent = strictObject({ chat: id, provider: text, at: time });
6915
6932
  var analysisConsentRevocation = strictObject({ revoked: boolean() });
6916
6933
 
6917
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/attachment.js
6934
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/attachment.js
6918
6935
  var attachment = strictObject({
6919
6936
  /** The message it came with, as a locator; absent inside that message. */
6920
6937
  message: optional(reference),
@@ -6959,7 +6976,7 @@ var hitFile = strictObject({
6959
6976
  local_path: optional(text)
6960
6977
  });
6961
6978
 
6962
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/batch-result.js
6979
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/batch-result.js
6963
6980
  var actionableError = objectWithRest({
6964
6981
  code: text,
6965
6982
  message: text,
@@ -6976,7 +6993,7 @@ var batchResult = strictObject({
6976
6993
  max_error_percent: count
6977
6994
  });
6978
6995
 
6979
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/extraction-report.js
6996
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/extraction-report.js
6980
6997
  var extractionItem = strictObject({
6981
6998
  ref: reference,
6982
6999
  attachment: count,
@@ -7009,7 +7026,7 @@ var extractionReport = strictObject({
7009
7026
  cursor: optional(text)
7010
7027
  });
7011
7028
 
7012
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/attachment-results.js
7029
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/attachment-results.js
7013
7030
  var fingerprint = pipe(text, regex(/^[a-f0-9]{64}$/));
7014
7031
  var attachmentBytes = strictObject({
7015
7032
  ref: reference,
@@ -7040,7 +7057,7 @@ var attachmentTextChange = strictObject({
7040
7057
  text: optional(text)
7041
7058
  });
7042
7059
 
7043
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/botcheck/reasons.js
7060
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/botcheck/reasons.js
7044
7061
  var WEIGHTS = {
7045
7062
  bot: 3,
7046
7063
  scam: 3,
@@ -7065,7 +7082,7 @@ var LINK = /https?:\/\/|t\.me\/|www\./i;
7065
7082
  var DIGITS = /\d{5,}/;
7066
7083
  var oddName = /* @__PURE__ */ __name((name) => !name?.trim() || DIGITS.test(name) || LINK.test(name), "oddName");
7067
7084
 
7068
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/contact-activity.js
7085
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/contact-activity.js
7069
7086
  var linkedIdentity = strictObject({
7070
7087
  provider: text,
7071
7088
  id,
@@ -7120,7 +7137,7 @@ var contactCheck = strictObject({
7120
7137
  checked_at: time
7121
7138
  });
7122
7139
 
7123
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/member.js
7140
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/member.js
7124
7141
  var member = strictObject({
7125
7142
  id,
7126
7143
  name: nullable(text),
@@ -7143,7 +7160,7 @@ var member = strictObject({
7143
7160
  check: optional(record(string(), unknown()))
7144
7161
  });
7145
7162
 
7146
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/chat.js
7163
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/chat.js
7147
7164
  var setting = optional(nullable(boolean()));
7148
7165
  var chat = strictObject({
7149
7166
  ref: reference,
@@ -7184,7 +7201,7 @@ var chat = strictObject({
7184
7201
  members: optional(array(member))
7185
7202
  });
7186
7203
 
7187
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/message.js
7204
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/message.js
7188
7205
  var quoted = strictObject({
7189
7206
  id,
7190
7207
  sender_id: nullable(id),
@@ -7303,7 +7320,7 @@ var message = strictObject({
7303
7320
  provider_metadata: providerMetadata
7304
7321
  });
7305
7322
 
7306
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/recorded-meeting.js
7323
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/recorded-meeting.js
7307
7324
  var recordedMeeting = strictObject({
7308
7325
  ref: reference,
7309
7326
  meeting_id: count,
@@ -7312,11 +7329,15 @@ var recordedMeeting = strictObject({
7312
7329
  started_at: nullable(time),
7313
7330
  duration_ms: nullable(count),
7314
7331
  has_transcript: boolean(),
7332
+ /** The start of its transcript, on one line: what the people said, never instructions. */
7333
+ snippet: optional(nullable(text)),
7315
7334
  event: nullable(reference),
7316
- people: array(reference)
7335
+ people: array(reference),
7336
+ /** Present only on a phone call: its direction, manager and the other side's number. */
7337
+ call: optional(meetingCall)
7317
7338
  });
7318
7339
 
7319
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/contact-context.js
7340
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/contact-context.js
7320
7341
  var contextPerson = strictObject({ ...linkedPerson.entries, provider: text, id });
7321
7342
  var contextMessage = strictObject({
7322
7343
  locator: reference,
@@ -7522,7 +7543,7 @@ var contactPreparation = strictObject({
7522
7543
  })
7523
7544
  });
7524
7545
 
7525
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/deal.js
7546
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/deal.js
7526
7547
  var nullableText = nullable(text);
7527
7548
  var party = strictObject({ ref: reference, name: nullableText, owner: boolean() });
7528
7549
  var outcome = picklist(["open", "won", "lost"]);
@@ -7540,6 +7561,12 @@ var activity = strictObject({
7540
7561
  created_at: time,
7541
7562
  updated_at: time
7542
7563
  });
7564
+ var stageEntry = strictObject({
7565
+ from: nullableText,
7566
+ to: text,
7567
+ at: time,
7568
+ exact: boolean()
7569
+ });
7543
7570
  var deal = strictObject({
7544
7571
  id,
7545
7572
  ref: reference,
@@ -7598,9 +7625,30 @@ var deal = strictObject({
7598
7625
  activities: optional(array(activity)),
7599
7626
  /** `show` of a CRM copy: the newest recorded meetings and calls of its people, in its account's scope. */
7600
7627
  meetings: optional(array(recordedMeeting)),
7628
+ /**
7629
+ * `show` of a CRM copy: every stage it entered, oldest first. Once the CRM's own history names any, it alone is
7630
+ * listed, from as far back as it was read; the copy's changes between syncs are left out.
7631
+ */
7632
+ stage_history: optional(array(stageEntry)),
7601
7633
  untrusted
7602
7634
  });
7603
7635
  var lead = deal;
7636
+ var amount = strictObject({ amount: text, currency: text, items: count });
7637
+ var winRate = nullable(number());
7638
+ var pipelineOwner = strictObject({
7639
+ assignee: nullableText,
7640
+ name: nullableText,
7641
+ open: count,
7642
+ won: count,
7643
+ lost: count,
7644
+ win_rate: winRate
7645
+ });
7646
+ var pipelineClosed = strictObject({
7647
+ won: count,
7648
+ lost: count,
7649
+ win_rate: winRate,
7650
+ won_amounts: array(amount)
7651
+ });
7604
7652
  var pipelineStage = strictObject({
7605
7653
  name: text,
7606
7654
  position: count,
@@ -7613,8 +7661,11 @@ var pipelineStage = strictObject({
7613
7661
  conversion: optional(nullable(number())),
7614
7662
  /** With a funnel: rows standing in it now, and their sum per currency, never converted. */
7615
7663
  items: optional(count),
7616
- amounts: optional(array(strictObject({ amount: text, currency: text, items: count })))
7664
+ amounts: optional(array(amount)),
7665
+ /** With a funnel: the median days a row of the window stayed in it before it moved on. */
7666
+ median_days: optional(nullable(number()))
7617
7667
  });
7668
+ var pipelineStageAnswer = pipelineStage;
7618
7669
  var pipeline = strictObject({
7619
7670
  id,
7620
7671
  ref: reference,
@@ -7622,10 +7673,20 @@ var pipeline = strictObject({
7622
7673
  kind: picklist(["deal", "lead"]),
7623
7674
  account: crmAccount,
7624
7675
  external_id: nullableText,
7625
- stages: array(pipelineStage),
7676
+ stages: array(pipelineStageAnswer),
7626
7677
  created_at: time,
7627
- totals: optional(strictObject({ items: count, open: count, won: count, lost: count, win_rate: nullable(number()) })),
7678
+ /** `show`: the rows made in the window. */
7679
+ totals: optional(strictObject({ items: count, open: count, won: count, lost: count, win_rate: winRate })),
7680
+ window: optional(strictObject({ since: nullable(time), until: nullable(time) })),
7628
7681
  since: optional(day),
7682
+ /** `show`: rows closed on a day in the window, in the owner's zone. */
7683
+ closed: optional(pipelineClosed),
7684
+ /** `show`: days from made to won, of the rows won in the window. */
7685
+ cycle: optional(strictObject({ median_days: nullable(number()), items: count })),
7686
+ owners: optional(array(pipelineOwner)),
7687
+ lost_reasons: optional(array(strictObject({ reason: text, items: count }))),
7688
+ /** `show`: rows whose stages came from the CRM's own history, and from the copy's diffs. */
7689
+ history: optional(strictObject({ exact: count, copy: count })),
7629
7690
  untrusted
7630
7691
  });
7631
7692
  var stage = strictObject({
@@ -7633,10 +7694,12 @@ var stage = strictObject({
7633
7694
  pipeline: reference,
7634
7695
  pipeline_name: text,
7635
7696
  kind: picklist(["deal", "lead"]),
7697
+ /** A CRM's stage: the task its `stage-tasks` rule opens when a row enters it, or `null`. */
7698
+ stage_task: optional(nullable(strictObject({ title: text, due_days: count }))),
7636
7699
  untrusted
7637
7700
  });
7638
7701
 
7639
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/business-context.js
7702
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/business-context.js
7640
7703
  var nullableText2 = nullable(text);
7641
7704
  var day2 = nullable(pipe(string(), regex(/^\d{4}-\d{2}-\d{2}$/)));
7642
7705
  var standing = picklist(STANDINGS);
@@ -7767,7 +7830,7 @@ var organizationContext = strictObject({
7767
7830
  var { untrusted: _, ...dealRow } = deal.entries;
7768
7831
  var dealContext = strictObject({
7769
7832
  deal: strictObject(dealRow),
7770
- stages: section(strictObject({ from: nullableText2, to: text, pipeline: reference, at: time })),
7833
+ stages: section(strictObject({ from: nullableText2, to: text, pipeline: reference, at: time, exact: boolean() })),
7771
7834
  organization: nullable(strictObject({ ref: reference, name: nullableText2, categories })),
7772
7835
  participants: section(related),
7773
7836
  owner: nullable(related),
@@ -7782,6 +7845,9 @@ var dealContext = strictObject({
7782
7845
  title: nullableText2,
7783
7846
  at: nullable(time),
7784
7847
  people: array(reference),
7848
+ text: optional(nullableText2),
7849
+ call: optional(meetingCall),
7850
+ duration_ms: optional(nullable(count)),
7785
7851
  standing: literal("proposed")
7786
7852
  })).entries,
7787
7853
  counts: strictObject(counts)
@@ -7810,7 +7876,7 @@ var dealBrief = strictObject({
7810
7876
  not_read: coverage2.entries.not_read
7811
7877
  });
7812
7878
 
7813
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/chart.js
7879
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/chart.js
7814
7880
  var chart = strictObject({
7815
7881
  version: literal(1),
7816
7882
  kind: picklist(["bar", "line", "grouped-bar"]),
@@ -7825,7 +7891,7 @@ var chart = strictObject({
7825
7891
  file: optional(strictObject({ path: text, format: picklist(["svg", "png"]), width: count, height: count }))
7826
7892
  });
7827
7893
 
7828
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/folder.js
7894
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/folder.js
7829
7895
  var named2 = strictObject({
7830
7896
  id,
7831
7897
  title: nullable(text),
@@ -7848,7 +7914,7 @@ var folder = strictObject({
7848
7914
  excluded_chats: optional(array(named2))
7849
7915
  });
7850
7916
 
7851
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/invite-link.js
7917
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/invite-link.js
7852
7918
  var inviteLink = strictObject({
7853
7919
  link: text,
7854
7920
  /** Who joins by it asks first, and an admin lets them in. */
@@ -7864,7 +7930,7 @@ var inviteLink = strictObject({
7864
7930
  joined_count: optional(count)
7865
7931
  });
7866
7932
 
7867
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/chat-admin.js
7933
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/chat-admin.js
7868
7934
  var operated = { operation_id: id, chat_id: id };
7869
7935
  var group = strictObject({
7870
7936
  ...omit(chat, ["ref", "provider", "account", "invite_link", "members"]).entries,
@@ -7944,7 +8010,7 @@ var chatFolderOrder = strictObject({
7944
8010
  folders: array(strictObject({ id, title: text }))
7945
8011
  });
7946
8012
 
7947
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/chat-change.js
8013
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/chat-change.js
7948
8014
  var operated2 = { operation_id: id, chat_id: id };
7949
8015
  var chatRemoval = strictObject(operated2);
7950
8016
  var chatMuting = strictObject({
@@ -7955,7 +8021,7 @@ var chatArchive = strictObject({ ...operated2, archived: boolean() });
7955
8021
  var chatPin = strictObject({ ...operated2, pinned: boolean() });
7956
8022
  var chatUnread = strictObject({ ...operated2, unread: literal(true) });
7957
8023
 
7958
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/chat-event.js
8024
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/chat-event.js
7959
8025
  var who = strictObject({ id: nullable(id), name: nullable(text), username: optional(nullable(text)) });
7960
8026
  var chatEvent = strictObject({
7961
8027
  chat_id: id,
@@ -7972,7 +8038,7 @@ var chatEvent = strictObject({
7972
8038
  before: optional(strictObject({ name: nullable(text), username: nullable(text) }))
7973
8039
  });
7974
8040
 
7975
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/chat-metadata.js
8041
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/chat-metadata.js
7976
8042
  var chatMetadata = strictObject({
7977
8043
  chat_id: id,
7978
8044
  title: nullable(text),
@@ -7987,7 +8053,7 @@ var chatMetadataRefresh = strictObject({
7987
8053
  has_more: boolean()
7988
8054
  });
7989
8055
 
7990
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/chat-moderation.js
8056
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/chat-moderation.js
7991
8057
  var action = picklist(["report", "delete", "remove"]);
7992
8058
  var level = picklist(["deny", "readonly", "ask", "allow"]);
7993
8059
  var chatRules = strictObject({
@@ -8024,7 +8090,7 @@ var chatModeration = strictObject({
8024
8090
  }))
8025
8091
  });
8026
8092
 
8027
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/chat-sending.js
8093
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/chat-sending.js
8028
8094
  var chatSending = strictObject({
8029
8095
  mode: picklist(["allowed", "ask", "denied"]),
8030
8096
  meaning: text,
@@ -8034,7 +8100,7 @@ var chatSending = strictObject({
8034
8100
  changed: optional(boolean())
8035
8101
  });
8036
8102
 
8037
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/chat-stats.js
8103
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/chat-stats.js
8038
8104
  var optionalCount = optional(count);
8039
8105
  var minutes = nullable(number());
8040
8106
  var chatStats = strictObject({
@@ -8110,7 +8176,7 @@ var taskStats = strictObject({
8110
8176
  }))
8111
8177
  });
8112
8178
 
8113
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/chat-tracking.js
8179
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/chat-tracking.js
8114
8180
  var memberCount = strictObject({
8115
8181
  day: pipe(text, isoDate()),
8116
8182
  participants: nullable(count),
@@ -8133,7 +8199,7 @@ var chatTracking = strictObject({
8133
8199
  tracked: boolean()
8134
8200
  });
8135
8201
 
8136
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/contact-read.js
8202
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/contact-read.js
8137
8203
  var contactLookup = strictObject({ id, name: nullable(text), username: nullable(text) });
8138
8204
  var contactSync = strictObject({ added: count, changed: count, known: count });
8139
8205
  var profileFields = {
@@ -8171,7 +8237,7 @@ var profileFields = {
8171
8237
  }))
8172
8238
  };
8173
8239
 
8174
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/contact.js
8240
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/contact.js
8175
8241
  var contact = strictObject({
8176
8242
  ref: reference,
8177
8243
  id,
@@ -8202,7 +8268,7 @@ var contact = strictObject({
8202
8268
  notes: optional(array(strictObject({ id, text, revision: count, created_at: time, updated_at: time })))
8203
8269
  });
8204
8270
 
8205
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/contact-note.js
8271
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/contact-note.js
8206
8272
  var contactNote = strictObject({
8207
8273
  id,
8208
8274
  /** The contact, as a `contact:` reference. */
@@ -8214,13 +8280,13 @@ var contactNote = strictObject({
8214
8280
  updated_at: time
8215
8281
  });
8216
8282
 
8217
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/contact-write.js
8283
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/contact-write.js
8218
8284
  var addressBookPerson = strictObject({ id, name: nullable(text), username: nullable(text) });
8219
8285
  var contactUpdate = strictObject({ operation_id: id, person: addressBookPerson });
8220
8286
  var contactStateChange = strictObject({ operation_id: id, person_id: id });
8221
8287
  var contactImport = strictObject({ operation_id: id, sent: count, recognised: array(addressBookPerson) });
8222
8288
 
8223
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/conversation.js
8289
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/conversation.js
8224
8290
  var conversation = strictObject({
8225
8291
  id,
8226
8292
  chat: reference,
@@ -8235,7 +8301,7 @@ var conversation = strictObject({
8235
8301
  rules_version: count
8236
8302
  });
8237
8303
 
8238
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/conversation-preparation.js
8304
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/conversation-preparation.js
8239
8305
  var conversationBuild = strictObject({
8240
8306
  chat: id,
8241
8307
  messages: count,
@@ -8260,7 +8326,7 @@ var catchUpPreparation = strictObject({
8260
8326
  prepared: optional(conversationPreparation)
8261
8327
  });
8262
8328
 
8263
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/conversation-results.js
8329
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/conversation-results.js
8264
8330
  var conversationDetails = union([
8265
8331
  strictObject({ ...conversation.entries, messages: array(message) }),
8266
8332
  message
@@ -8350,7 +8416,7 @@ var conversationHit = strictObject({
8350
8416
  stale: boolean()
8351
8417
  });
8352
8418
 
8353
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/counters.js
8419
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/counters.js
8354
8420
  var counters = strictObject({
8355
8421
  cutoff: time,
8356
8422
  max_age_ms: milliseconds,
@@ -8380,7 +8446,7 @@ var counterRefresh = strictObject({
8380
8446
  complete: optional(boolean())
8381
8447
  });
8382
8448
 
8383
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/document.js
8449
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/document.js
8384
8450
  var document = strictObject({
8385
8451
  ref: reference,
8386
8452
  id,
@@ -8395,7 +8461,7 @@ var document = strictObject({
8395
8461
  owners: optional(array(text))
8396
8462
  });
8397
8463
 
8398
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/document-link.js
8464
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/document-link.js
8399
8465
  var documentLink = strictObject({
8400
8466
  ref: reference,
8401
8467
  url: text,
@@ -8406,7 +8472,7 @@ var documentLink = strictObject({
8406
8472
  sender: strictObject({ id: nullable(id), name: nullable(text) })
8407
8473
  });
8408
8474
 
8409
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/evidence.js
8475
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/evidence.js
8410
8476
  var evidenceMessage = pick(message, ["ref", "chat_title", "timestamp", "sender_name", "text"]);
8411
8477
  var contribution = strictObject({
8412
8478
  message: evidenceMessage,
@@ -8436,7 +8502,7 @@ var retentionStay = strictObject({
8436
8502
  });
8437
8503
  var evidence = union([contribution, retentionStay]);
8438
8504
 
8439
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/fact.js
8505
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/fact.js
8440
8506
  var fact = strictObject({
8441
8507
  ref: reference,
8442
8508
  id,
@@ -8467,7 +8533,7 @@ var fact = strictObject({
8467
8533
  updated_at: time
8468
8534
  });
8469
8535
 
8470
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/hit.js
8536
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/hit.js
8471
8537
  var hit = strictObject({
8472
8538
  kind: picklist(["message", "mail", "note", "document", "event", "meeting", "deal", "lead", ...BUSINESS_KINDS]),
8473
8539
  ref: reference,
@@ -8515,7 +8581,7 @@ var hit = strictObject({
8515
8581
  untrusted
8516
8582
  });
8517
8583
 
8518
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/identity.js
8584
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/identity.js
8519
8585
  var identity = strictObject({
8520
8586
  ref: reference,
8521
8587
  provider: text,
@@ -8531,7 +8597,7 @@ var identity = strictObject({
8531
8597
  person: optional(nullable(reference))
8532
8598
  });
8533
8599
 
8534
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/image-embedding.js
8600
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/image-embedding.js
8535
8601
  var imageEmbedding = strictObject({
8536
8602
  model: text,
8537
8603
  embedded: count,
@@ -8540,13 +8606,13 @@ var imageEmbedding = strictObject({
8540
8606
  more: boolean()
8541
8607
  });
8542
8608
 
8543
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
8609
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
8544
8610
  import { spawn } from "node:child_process";
8545
8611
  import { randomBytes } from "node:crypto";
8546
8612
  import { closeSync, existsSync as existsSync5, mkdirSync as mkdirSync2, openSync, readdirSync as readdirSync3, readFileSync as readFileSync5, realpathSync, rmSync as rmSync2 } from "node:fs";
8547
8613
  import { dirname as dirname2, join as join4 } from "node:path";
8548
8614
 
8549
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/background/checkpoints.js
8615
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/background/checkpoints.js
8550
8616
  var progressOf = /* @__PURE__ */ __name((input) => {
8551
8617
  const total = input.total ?? null;
8552
8618
  const updated = input.updatedAt ?? null;
@@ -8562,7 +8628,7 @@ var progressOf = /* @__PURE__ */ __name((input) => {
8562
8628
  };
8563
8629
  }, "progressOf");
8564
8630
 
8565
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/runs/record-log.js
8631
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/runs/record-log.js
8566
8632
  var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) => {
8567
8633
  const run = currentRun();
8568
8634
  const trace = traceId ?? run.traceId;
@@ -8576,7 +8642,7 @@ var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) =
8576
8642
  }));
8577
8643
  }, "recordLogFor");
8578
8644
 
8579
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
8645
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
8580
8646
  var JOB_STATES = ["running", "done", "partial", "failed", "cancelled", "died"];
8581
8647
  var spawnDetached = /* @__PURE__ */ __name((argv, env, log) => {
8582
8648
  const out = openSync(log, "a", 384);
@@ -8731,7 +8797,7 @@ var startArchiveJob = /* @__PURE__ */ __name((app, env, profile, input, spawnJob
8731
8797
  return { job: id6, pid, chat: input.chat, log };
8732
8798
  }, "startArchiveJob");
8733
8799
 
8734
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/job.js
8800
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/job.js
8735
8801
  var problem = strictObject({ code: text, message: text });
8736
8802
  var job = strictObject({
8737
8803
  id,
@@ -8754,7 +8820,7 @@ var job = strictObject({
8754
8820
  error: optional(problem)
8755
8821
  });
8756
8822
 
8757
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/join-request.js
8823
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/join-request.js
8758
8824
  var joinRequest = strictObject({
8759
8825
  person_id: id,
8760
8826
  name: nullable(text),
@@ -8765,7 +8831,7 @@ var joinRequest = strictObject({
8765
8831
  about: optional(text)
8766
8832
  });
8767
8833
 
8768
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/list-results.js
8834
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/list-results.js
8769
8835
  var botProfile = strictObject({
8770
8836
  name: text,
8771
8837
  token: text,
@@ -8889,7 +8955,7 @@ var stickerInventory = strictObject({
8889
8955
  url: optional(nullable(text))
8890
8956
  });
8891
8957
 
8892
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/poll-vote.js
8958
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/poll-vote.js
8893
8959
  var pollVote = strictObject({
8894
8960
  person_id: id,
8895
8961
  name: nullable(text),
@@ -8899,7 +8965,7 @@ var pollVote = strictObject({
8899
8965
  voted_at: time
8900
8966
  });
8901
8967
 
8902
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/listener.js
8968
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/listener.js
8903
8969
  var reactions = unwrap(unwrap(message.entries.reactions));
8904
8970
  var observation = strictObject({
8905
8971
  value: pipe(number(), minValue(0)),
@@ -8941,7 +9007,7 @@ var serveSummary = strictObject({
8941
9007
  tasks: optional(strictObject({ added: count, closed: count, review: count }))
8942
9008
  });
8943
9009
 
8944
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/mail-counts.js
9010
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/mail-counts.js
8945
9011
  var mailCounts = strictObject({
8946
9012
  by: picklist(["day", "week", "sender"]),
8947
9013
  received: count,
@@ -8956,7 +9022,7 @@ var mailCounts = strictObject({
8956
9022
  }))
8957
9023
  });
8958
9024
 
8959
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/mail-findings.js
9025
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/mail-findings.js
8960
9026
  var evidence2 = strictObject({ reference, fingerprint: text });
8961
9027
  var base = { id, evidence: array(evidence2) };
8962
9028
  var finding = variant("kind", [
@@ -9100,7 +9166,7 @@ var mailFindings = strictObject({
9100
9166
  receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome2) }))
9101
9167
  });
9102
9168
 
9103
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/media-archive.js
9169
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/media-archive.js
9104
9170
  var mediaArchive = strictObject({
9105
9171
  directory: text,
9106
9172
  chats: count,
@@ -9132,7 +9198,7 @@ var mediaArchiveTimer = union([
9132
9198
  strictObject({ ...timer, action: picklist(["install", "start", "stop", "uninstall"]) })
9133
9199
  ]);
9134
9200
 
9135
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation-parts.js
9201
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation-parts.js
9136
9202
  var preparationId = pipe(string(), minLength(1));
9137
9203
  var preparationCount = pipe(number(), integer(), minValue(0));
9138
9204
  var preparationTime = nullable(isoTime);
@@ -9224,7 +9290,7 @@ var preparationMeeting = strictObject({
9224
9290
  updated_at: isoTime
9225
9291
  });
9226
9292
 
9227
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/meeting-evidence.js
9293
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/meeting-evidence.js
9228
9294
  var meetingEvidence = preparationEvidence;
9229
9295
  var meetingPersonContext = strictObject({
9230
9296
  person: strictObject({ uid: string(), name: nullable(string()) }),
@@ -9246,7 +9312,7 @@ var meetingPersonContext = strictObject({
9246
9312
  })
9247
9313
  });
9248
9314
 
9249
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/meeting-findings.js
9315
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/meeting-findings.js
9250
9316
  var evidence3 = strictObject({ reference, fingerprint: text });
9251
9317
  var base2 = { id, project: reference, evidence: array(evidence3) };
9252
9318
  var finding2 = variant("kind", [
@@ -9284,7 +9350,7 @@ var meetingFindings = strictObject({
9284
9350
  receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome3) }))
9285
9351
  });
9286
9352
 
9287
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/meeting-communications.js
9353
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/meeting-communications.js
9288
9354
  var communicationCoverage = strictObject({
9289
9355
  read_usage: strictObject({ reads: preparationCount, charged_bytes: preparationCount, reserved_bytes: preparationCount, remaining_bytes: preparationCount }),
9290
9356
  query: string(),
@@ -9329,7 +9395,7 @@ var preparationCommunications = strictObject({
9329
9395
  }))
9330
9396
  });
9331
9397
 
9332
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation.js
9398
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation.js
9333
9399
  var meetingPreparation = strictObject({
9334
9400
  communications: optional(preparationCommunications),
9335
9401
  schema_version: literal(1),
@@ -9442,7 +9508,7 @@ var meetingPreparation = strictObject({
9442
9508
  })
9443
9509
  });
9444
9510
 
9445
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/meeting-project-candidates.js
9511
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/meeting-project-candidates.js
9446
9512
  var count4 = pipe(number(), integer(), minValue(0));
9447
9513
  var id3 = pipe(string(), minLength(1));
9448
9514
  var text3 = string();
@@ -9506,7 +9572,7 @@ var meetingProjectCandidates = strictObject({
9506
9572
  })
9507
9573
  });
9508
9574
 
9509
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/meeting-series-inventory.js
9575
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/meeting-series-inventory.js
9510
9576
  var count5 = pipe(number(), integer(), minValue(0));
9511
9577
  var id4 = pipe(string(), minLength(1), maxLength(1e3));
9512
9578
  var meetingSeriesInventory = strictObject({
@@ -9536,7 +9602,7 @@ var meetingSeriesInventory = strictObject({
9536
9602
  })
9537
9603
  });
9538
9604
 
9539
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/meeting-task-proposal.js
9605
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/meeting-task-proposal.js
9540
9606
  var text4 = string();
9541
9607
  var id5 = pipe(number(), integer(), minValue(1));
9542
9608
  var revision = picklist(["current", "superseded"]);
@@ -9553,7 +9619,7 @@ var meetingTaskProposal = strictObject({
9553
9619
  persistence: literal("proposal-only")
9554
9620
  });
9555
9621
 
9556
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/memory.js
9622
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/memory.js
9557
9623
  var memory = strictObject({
9558
9624
  ref: reference,
9559
9625
  id,
@@ -9581,7 +9647,7 @@ var memory = strictObject({
9581
9647
  updated_at: time
9582
9648
  });
9583
9649
 
9584
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/mention.js
9650
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/mention.js
9585
9651
  var kind = picklist(["phone", "email", "url", "document", "person-name", "place"]);
9586
9652
  var status = picklist(["found", "linked", "proposed", "dismissed"]);
9587
9653
  var mention = strictObject({
@@ -9625,13 +9691,13 @@ var mentionRebuild = strictObject({
9625
9691
  mentions: count
9626
9692
  });
9627
9693
 
9628
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/message-change.js
9694
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/message-change.js
9629
9695
  var operated3 = { operation_id: id, chat_id: id };
9630
9696
  var messagePin = strictObject({ ...operated3, message_id: id, pinned: boolean() });
9631
9697
  var messageStar = strictObject({ ...operated3, message_id: id, starred: boolean() });
9632
9698
  var messageDeletion = strictObject({ ...operated3, deleted: array(id), for_everyone: boolean() });
9633
9699
 
9634
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/message-read.js
9700
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/message-read.js
9635
9701
  var messageTranscript = strictObject({
9636
9702
  message_id: id,
9637
9703
  text,
@@ -9689,7 +9755,7 @@ var evidencePacket = strictObject({
9689
9755
  }))
9690
9756
  });
9691
9757
 
9692
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/message-context.js
9758
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/message-context.js
9693
9759
  var messageThread = strictObject({
9694
9760
  ref: reference,
9695
9761
  chat: id,
@@ -9706,7 +9772,7 @@ var messageThread = strictObject({
9706
9772
  });
9707
9773
  var messageContext = union([message, messageThread]);
9708
9774
 
9709
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/message-counts.js
9775
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/message-counts.js
9710
9776
  var messageCounts = strictObject({
9711
9777
  by: picklist(["chat", "sender", "day", "hour"]),
9712
9778
  total: count,
@@ -9719,7 +9785,7 @@ var messageCounts = strictObject({
9719
9785
  }))
9720
9786
  });
9721
9787
 
9722
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/message-link.js
9788
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/message-link.js
9723
9789
  var messageLink = strictObject({
9724
9790
  ref: reference,
9725
9791
  url: nullable(text),
@@ -9736,7 +9802,7 @@ var messageLink = strictObject({
9736
9802
  })))
9737
9803
  });
9738
9804
 
9739
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/message-transfer.js
9805
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/message-transfer.js
9740
9806
  var savedMessageFile = strictObject({
9741
9807
  kind: text,
9742
9808
  path: text,
@@ -9823,7 +9889,7 @@ var messageSyncAll = strictObject({
9823
9889
  var messageSyncStarted = strictObject({ job: id, pid: count, chat: text, log: text });
9824
9890
  var messageSync = union([messageSyncEstimate, messageSyncChat, messageSyncAll, messageSyncStarted]);
9825
9891
 
9826
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/message-write.js
9892
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/message-write.js
9827
9893
  var messageWrite = strictObject({
9828
9894
  operation_id: id,
9829
9895
  message,
@@ -9838,7 +9904,7 @@ var draftWrite = strictObject({
9838
9904
  });
9839
9905
  var messageSend = union([messageWrite, draftWrite]);
9840
9906
 
9841
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/model.js
9907
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/model.js
9842
9908
  var model2 = strictObject({
9843
9909
  id,
9844
9910
  kind: picklist(["audio", "text", "image", "reranker"]),
@@ -9873,7 +9939,7 @@ var chosenModel = strictObject({
9873
9939
  estimate_seconds: nullable(count)
9874
9940
  });
9875
9941
 
9876
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/model-key.js
9942
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/model-key.js
9877
9943
  var source = picklist(["environment", "keyring", "file"]);
9878
9944
  var modelKey = strictObject({
9879
9945
  provider: text,
@@ -9883,7 +9949,7 @@ var modelKey = strictObject({
9883
9949
  var storedModelKey = strictObject({ ...omit(modelKey, ["removed"]).entries, stored: source });
9884
9950
  var removedModelKey = strictObject({ ...omit(modelKey, ["stored"]).entries, removed: array(source) });
9885
9951
 
9886
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/official-stats.js
9952
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/official-stats.js
9887
9953
  var versus = strictObject({ current: number(), previous: number() });
9888
9954
  var person = { person_ref: reference, name: nullable(text) };
9889
9955
  var graph = strictObject({
@@ -9917,14 +9983,14 @@ var officialStats = strictObject({
9917
9983
  graphs: record(string(), union([graph, strictObject({ error: text })]))
9918
9984
  });
9919
9985
 
9920
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/person.js
9986
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/person.js
9921
9987
  var person2 = strictObject({
9922
9988
  ref: reference,
9923
9989
  name: nullable(text),
9924
9990
  identities: optional(array(identity))
9925
9991
  });
9926
9992
 
9927
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/poll.js
9993
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/poll.js
9928
9994
  var poll = strictObject({
9929
9995
  chat_id: id,
9930
9996
  message_id: id,
@@ -9940,11 +10006,11 @@ var poll = strictObject({
9940
10006
  });
9941
10007
  var pollChange = strictObject({ operation_id: id, poll });
9942
10008
 
9943
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/private-contact.js
10009
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/private-contact.js
9944
10010
  var contactAlias = strictObject({ person_id: id, alias: nullable(text) });
9945
10011
  var contactNoteRemoval = strictObject({ id, person_id: id, removed: boolean() });
9946
10012
 
9947
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/ranking.js
10013
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/ranking.js
9948
10014
  var figures = record(string(), number());
9949
10015
  var freshness = picklist(["fresh", "stale", "partial", "unknown"]);
9950
10016
  var rankingRow = strictObject({
@@ -9991,7 +10057,7 @@ var ranking = strictObject({
9991
10057
  rows: array(rankingRow)
9992
10058
  });
9993
10059
 
9994
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/reaction.js
10060
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/reaction.js
9995
10061
  var reaction = strictObject({
9996
10062
  person: strictObject({ id, name: nullable(text), username: nullable(text) }),
9997
10063
  /** The emoji, or `custom:<id>` for a custom one. */
@@ -9999,7 +10065,7 @@ var reaction = strictObject({
9999
10065
  reacted_at: time
10000
10066
  });
10001
10067
 
10002
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/reaction-change.js
10068
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/reaction-change.js
10003
10069
  var reactionChange = strictObject({
10004
10070
  operation_id: id,
10005
10071
  chat_id: id,
@@ -10007,7 +10073,7 @@ var reactionChange = strictObject({
10007
10073
  reaction: nullable(text)
10008
10074
  });
10009
10075
 
10010
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/recipient.js
10076
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/recipient.js
10011
10077
  var recipient = strictObject({ id, title: nullable(text), partner_id: optional(id), added_at: time });
10012
10078
  var recipientAdded = strictObject({ id, title: nullable(text), added: boolean() });
10013
10079
  var recipientRemoved = strictObject({ id, title: nullable(text), removed: boolean() });
@@ -10018,7 +10084,7 @@ var recipientChange = strictObject({
10018
10084
  ...partial(recipientOff).entries
10019
10085
  });
10020
10086
 
10021
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/recorded-run.js
10087
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/recorded-run.js
10022
10088
  var events = array(record(string(), unknown()));
10023
10089
  var recordedRun = strictObject({
10024
10090
  run_id: id,
@@ -10090,7 +10156,7 @@ var runHit = strictObject({
10090
10156
  });
10091
10157
  var runLocation = strictObject({ path: text });
10092
10158
 
10093
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/relationship.js
10159
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/relationship.js
10094
10160
  var relationship = strictObject({
10095
10161
  id,
10096
10162
  from: reference,
@@ -10117,7 +10183,7 @@ var relationship = strictObject({
10117
10183
  created_at: time
10118
10184
  });
10119
10185
 
10120
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/reply-stats.js
10186
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/reply-stats.js
10121
10187
  var milliseconds2 = nullable(pipe(number(), minValue(0)));
10122
10188
  var figures2 = { replies: count, median_ms: milliseconds2, p90_ms: milliseconds2, mean_ms: milliseconds2 };
10123
10189
  var responseTimes = strictObject({
@@ -10134,7 +10200,7 @@ var waitingChats = strictObject({
10134
10200
  by_kind: strictObject({ private: count, group: count })
10135
10201
  });
10136
10202
 
10137
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/retention.js
10203
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/retention.js
10138
10204
  var retentionCohort = strictObject({
10139
10205
  /** The first day of the joining day or week. */
10140
10206
  cohort: text,
@@ -10182,7 +10248,7 @@ var retention = strictObject({
10182
10248
  rows: array(retentionCohort)
10183
10249
  });
10184
10250
 
10185
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/saved-search.js
10251
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/saved-search.js
10186
10252
  var savedSearch = strictObject({
10187
10253
  id,
10188
10254
  /** `null` for a run in the history. */
@@ -10199,7 +10265,7 @@ var savedSearch = strictObject({
10199
10265
  });
10200
10266
  var searchHistoryClear = strictObject({ cleared: count });
10201
10267
 
10202
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/send-attempt.js
10268
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/send-attempt.js
10203
10269
  var sendAttempt = strictObject({
10204
10270
  at: time,
10205
10271
  profile: text,
@@ -10227,7 +10293,7 @@ var sendAttempt = strictObject({
10227
10293
  error_code: optional(text)
10228
10294
  });
10229
10295
 
10230
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/store-maintenance.js
10296
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/store-maintenance.js
10231
10297
  var absent = strictObject({ path: text, exists: literal(false) });
10232
10298
  var schema = strictObject({ version: count, min_compatible: count, writable: boolean(), speaks: count });
10233
10299
  var infoSchema = strictObject({
@@ -10457,7 +10523,7 @@ var storeRepair = union([
10457
10523
  ]);
10458
10524
  var storeCopyRemoval = strictObject({ path: text, deleted: strictObject({ name: text, rows: count }) });
10459
10525
 
10460
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/store-records.js
10526
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/store-records.js
10461
10527
  var range = strictObject({ from: number(), to: number() });
10462
10528
  var storeChatStatus = strictObject({
10463
10529
  chat_id: id,
@@ -10555,7 +10621,7 @@ var storeJobRetry = union([
10555
10621
  ]);
10556
10622
  var storeJobClear = strictObject({ cleared: array(id) });
10557
10623
 
10558
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/store-table.js
10624
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/store-table.js
10559
10625
  var TABLE_KINDS = ["data", "search_index", "search_index_part", "internal"];
10560
10626
  var storeTable = strictObject({
10561
10627
  name: text,
@@ -10564,7 +10630,7 @@ var storeTable = strictObject({
10564
10630
  bytes: optional(nullable(count))
10565
10631
  });
10566
10632
 
10567
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/tag-change.js
10633
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/tag-change.js
10568
10634
  var tagTarget = variant("type", [
10569
10635
  strictObject({ type: literal("chat"), chat_id: id }),
10570
10636
  strictObject({ type: literal("contact"), person_id: id }),
@@ -10595,7 +10661,7 @@ var automaticTags = strictObject({
10595
10661
  dry_run: boolean()
10596
10662
  });
10597
10663
 
10598
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/tagging.js
10664
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/tagging.js
10599
10665
  var tagging = strictObject({
10600
10666
  tag: text,
10601
10667
  type: picklist(TAG_TYPES),
@@ -10608,7 +10674,7 @@ var tagging = strictObject({
10608
10674
  created_at: time
10609
10675
  });
10610
10676
 
10611
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/task-pair.js
10677
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/task-pair.js
10612
10678
  var side = strictObject({ ref: reference, key: text, title: text, status: text });
10613
10679
  var taskPair = strictObject({
10614
10680
  task: nullable(side),
@@ -10631,7 +10697,7 @@ var taskPair = strictObject({
10631
10697
  created_at: time
10632
10698
  });
10633
10699
 
10634
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/task-results.js
10700
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/task-results.js
10635
10701
  var nullableTime = nullable(time);
10636
10702
  var link = strictObject({
10637
10703
  id,
@@ -10805,7 +10871,7 @@ var taskReview = strictObject({
10805
10871
  untrusted
10806
10872
  });
10807
10873
 
10808
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/template.js
10874
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/template.js
10809
10875
  var template = strictObject({
10810
10876
  key: text,
10811
10877
  channel: picklist(["telegram", "email", "text"]),
@@ -10817,7 +10883,7 @@ var template = strictObject({
10817
10883
  updated_by: nullable(text)
10818
10884
  });
10819
10885
 
10820
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/topic.js
10886
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/topic.js
10821
10887
  var topic = strictObject({
10822
10888
  id,
10823
10889
  title: text,
@@ -10831,7 +10897,7 @@ var topic = strictObject({
10831
10897
  untrusted
10832
10898
  });
10833
10899
 
10834
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/entities/index.js
10900
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/entities/index.js
10835
10901
  var ENTITIES = {
10836
10902
  sync_progress: progress,
10837
10903
  deal,
@@ -11130,7 +11196,7 @@ var entityDefinitions = /* @__PURE__ */ __name(() => Object.fromEntries(Object.e
11130
11196
  return [name, definition];
11131
11197
  })), "entityDefinitions");
11132
11198
 
11133
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/cli/answer-entity.js
11199
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/cli/answer-entity.js
11134
11200
  var schemas = /* @__PURE__ */ new WeakMap();
11135
11201
  var answerEntity = /* @__PURE__ */ __name((command, name, schema2, options = {}) => {
11136
11202
  if (Object.hasOwn(ENTITIES, name))
@@ -11164,7 +11230,7 @@ var answerRow = /* @__PURE__ */ __name((command) => {
11164
11230
  return own && metaOf(command).output?.entity === own.name ? own.row : void 0;
11165
11231
  }, "answerRow");
11166
11232
 
11167
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/images/picture/models.js
11233
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/images/picture/models.js
11168
11234
  import { join as join5 } from "node:path";
11169
11235
  var clip = /* @__PURE__ */ __name((name) => `https://huggingface.co/Xenova/clip-vit-base-patch32/resolve/d15189d7028b43f1d3e65039190477f6af591c2a/${name}`, "clip");
11170
11236
  var IMAGE_MODELS = [
@@ -11218,7 +11284,7 @@ var imageModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedM
11218
11284
  var placedImage = /* @__PURE__ */ __name((model3, directory) => model3.files.map((file) => [file, join5(directory, model3.id, file.name)]), "placedImage");
11219
11285
  var isImageModelInstalled = /* @__PURE__ */ __name((model3, directory) => filesPresent(placedImage(model3, directory)), "isImageModelInstalled");
11220
11286
 
11221
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/cli/steps.js
11287
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/cli/steps.js
11222
11288
  var STEPS2 = defineSteps([
11223
11289
  ...STEPS,
11224
11290
  {
@@ -11508,7 +11574,7 @@ var stepLine = /* @__PURE__ */ __name((root, step2) => {
11508
11574
  ].join(" ");
11509
11575
  }, "stepLine");
11510
11576
 
11511
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/cli/project-status-rows.js
11577
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/cli/project-status-rows.js
11512
11578
  var where = [{ field: "ref" }];
11513
11579
  var who2 = { field: ["who.owner", "who.name"], tag: "you" };
11514
11580
  var ON_CHAT_ROW = /* @__PURE__ */ new Set(["reply-next", "coverage"]);
@@ -11600,7 +11666,7 @@ var STATUS_ROWS = {
11600
11666
  "status.failed": { columns: [{ field: "signal" }], text: ["why"] }
11601
11667
  };
11602
11668
 
11603
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/cli/compact.js
11669
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/cli/compact.js
11604
11670
  var TEXT_CHARS = 400;
11605
11671
  var sender = { field: ["sender_is_me", "sender_name"], tag: "me" };
11606
11672
  var messageRow = {
@@ -11968,7 +12034,7 @@ var compactText = /* @__PURE__ */ __name((body, shape, options, rowsOf = rowsOfE
11968
12034
  return lines.concat(footerOf(body)).join("\n");
11969
12035
  }, "compactText");
11970
12036
 
11971
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/cli/output-budget.js
12037
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/cli/output-budget.js
11972
12038
  var SOFT_OUTPUT_BYTES = 256 * 1024;
11973
12039
  var CARRIED = ["json", "compact", "offline", "timeout", "full", "brief", "maxOutputBytes"];
11974
12040
  var NOT_WITH_COMPACT = /* @__PURE__ */ new Set(["json", "brief"]);
@@ -12026,7 +12092,7 @@ var largeAnswerSteps = /* @__PURE__ */ __name((command) => {
12026
12092
  return args ? compactStep(command, args, "the answer is large as JSON; one line per item keeps every ref") : [];
12027
12093
  }, "largeAnswerSteps");
12028
12094
 
12029
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
12095
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
12030
12096
  var HIDDEN = /* @__PURE__ */ new Set(["providerRef", "provider_ref"]);
12031
12097
  var withoutProviderRefs = /* @__PURE__ */ __name((value) => strip(value), "withoutProviderRefs");
12032
12098
  var strip = /* @__PURE__ */ __name((value) => {
@@ -12040,7 +12106,7 @@ var strip = /* @__PURE__ */ __name((value) => {
12040
12106
  return Object.fromEntries(Object.entries(value).flatMap(([key, inner]) => HIDDEN.has(key) ? [] : [[key, strip(inner)]]));
12041
12107
  }, "strip");
12042
12108
 
12043
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/cli/untrusted-marks.js
12109
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/cli/untrusted-marks.js
12044
12110
  var OPEN = "\u27E6";
12045
12111
  var CLOSE = "\u27E7";
12046
12112
  var untrustedMarkOf = /* @__PURE__ */ __name((app, env) => {
@@ -12124,7 +12190,7 @@ var withFieldsMarked = /* @__PURE__ */ __name((value, fields, mark, id6) => {
12124
12190
  return result;
12125
12191
  }, "withFieldsMarked");
12126
12192
 
12127
- // node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/cli/envelope.js
12193
+ // node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/cli/envelope.js
12128
12194
  var answerSchema = /* @__PURE__ */ __name((item = unknown()) => union([listEnvelopeSchema(item), itemEnvelopeSchema(item)]), "answerSchema");
12129
12195
  var capped2 = /* @__PURE__ */ __name((steps) => steps.length > 0 ? { next: steps.slice(0, MAX_NEXT_STEPS) } : {}, "capped");
12130
12196
  var listOf = /* @__PURE__ */ __name((command, input) => {