@wirecat/mail-cli 0.22.0 → 0.23.1

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 (125) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/README.md +2 -1
  3. package/dist/bin/mail.js +2 -2
  4. package/dist/bundle/{all-profiles-DTUWUCQQ.js → all-profiles-FJHJCGRU.js} +9 -9
  5. package/dist/bundle/{anthropic-YJAEQSNT.js → anthropic-AFL7NKVZ.js} +9 -7
  6. package/dist/bundle/{app-server-3ZXSTBA3.js → app-server-WKCBJMHI.js} +46 -46
  7. package/dist/bundle/{bun-34VBM7C5.js → bun-HQATAQJQ.js} +2 -2
  8. package/dist/bundle/{bun-sqlite-GCT7ROCK.js → bun-sqlite-4ECAV7OU.js} +4 -4
  9. package/dist/bundle/{chunk-RFB27ACZ.js → chunk-2HXHAFRP.js} +2 -2
  10. package/dist/bundle/{chunk-MD64ITYO.js → chunk-34743C4C.js} +1 -1
  11. package/dist/bundle/{chunk-Z75WYAX6.js → chunk-3OZKDC6Y.js} +8 -7
  12. package/dist/bundle/{chunk-UWL2IOII.js → chunk-3QVGB2CI.js} +2 -2
  13. package/dist/bundle/{chunk-3HDQVTND.js → chunk-3UFD76IR.js} +5 -5
  14. package/dist/bundle/{chunk-SCIC2CJS.js → chunk-4IFX4HV2.js} +4 -4
  15. package/dist/bundle/{chunk-QE72KTS7.js → chunk-4IWJARFA.js} +1 -1
  16. package/dist/bundle/{chunk-ZZSHGCRC.js → chunk-4YJJQNNJ.js} +4 -4
  17. package/dist/bundle/{chunk-RPCKBXKN.js → chunk-5UKBUI4I.js} +2 -2
  18. package/dist/bundle/{chunk-J4UZXBEV.js → chunk-76RTQYJQ.js} +1 -1
  19. package/dist/bundle/{chunk-I2SDXWLR.js → chunk-7YRKUEYE.js} +118 -54
  20. package/dist/bundle/{chunk-ZKLXSVIO.js → chunk-AGNAT7CM.js} +1 -1
  21. package/dist/bundle/{chunk-HSBGNVEL.js → chunk-B6QMMRIM.js} +361 -188
  22. package/dist/bundle/{chunk-WBAA2X3E.js → chunk-BVJQBAGL.js} +11 -11
  23. package/dist/bundle/{chunk-TCCN5TON.js → chunk-CBWA2T3N.js} +24 -2
  24. package/dist/bundle/{chunk-P6FT6YYT.js → chunk-CCYHBNRL.js} +16 -16
  25. package/dist/bundle/{chunk-B74SOC4R.js → chunk-CUOCDJFI.js} +8 -8
  26. package/dist/bundle/{chunk-RY7PBP4F.js → chunk-CYQVWITQ.js} +16 -16
  27. package/dist/bundle/{chunk-566MEXK5.js → chunk-E7ZVKQHG.js} +3 -3
  28. package/dist/bundle/{chunk-HJ2CXDKJ.js → chunk-EXPR6QAX.js} +26 -12
  29. package/dist/bundle/{chunk-LTXYJAJK.js → chunk-FWFNUJQD.js} +24 -63
  30. package/dist/bundle/{chunk-VINSQR4X.js → chunk-GJNFNC76.js} +7 -7
  31. package/dist/bundle/{chunk-BHNBWFT5.js → chunk-GOMJNH56.js} +44 -0
  32. package/dist/bundle/{chunk-7XLOWYGD.js → chunk-HOKGIYUO.js} +39 -4
  33. package/dist/bundle/{chunk-FTI73RLC.js → chunk-KKGX7JMX.js} +2 -2
  34. package/dist/bundle/{chunk-BMV56JCL.js → chunk-LLYVBO3R.js} +1 -1
  35. package/dist/bundle/{chunk-QTMVGOSF.js → chunk-LQDMUMA2.js} +1336 -796
  36. package/dist/bundle/{chunk-VQZCIDSO.js → chunk-M7RGG3UU.js} +3 -3
  37. package/dist/bundle/{chunk-R3WPMQYZ.js → chunk-MBKNL5TX.js} +632 -435
  38. package/dist/bundle/{chunk-AF62BPIW.js → chunk-MUDHCYN4.js} +5 -5
  39. package/dist/bundle/{chunk-25PD6FZY.js → chunk-NKBAZ4VC.js} +2 -2
  40. package/dist/bundle/{chunk-2PPEDB67.js → chunk-NMGF3UOZ.js} +30 -30
  41. package/dist/bundle/{chunk-KMQAHDBM.js → chunk-NOA6E6MM.js} +2173 -1297
  42. package/dist/bundle/{chunk-J2U6LUT5.js → chunk-OJCUSHZG.js} +3 -3
  43. package/dist/bundle/{chunk-T3DTYJTG.js → chunk-OU5CWCG2.js} +1 -1
  44. package/dist/bundle/{chunk-OKO2Q6H6.js → chunk-PMIKRELC.js} +2 -2
  45. package/dist/bundle/{chunk-RT6SLZBI.js → chunk-QR7JZM3D.js} +1 -1
  46. package/dist/bundle/{chunk-O3M2S62X.js → chunk-QUKD5SO2.js} +3 -3
  47. package/dist/bundle/{chunk-SFC46MP2.js → chunk-QV3M2MHG.js} +10 -10
  48. package/dist/bundle/{chunk-SYEICLTR.js → chunk-R554W7ZO.js} +1 -1
  49. package/dist/bundle/{chunk-NOVBK4SY.js → chunk-R5MYOLQP.js} +12 -12
  50. package/dist/bundle/{chunk-4FWJNIPH.js → chunk-ROKTS7WM.js} +1 -1
  51. package/dist/bundle/{chunk-GAPQENMY.js → chunk-S5OTP7XS.js} +22 -4
  52. package/dist/bundle/{chunk-HRRSTIGP.js → chunk-SBGXKM4U.js} +10 -6
  53. package/dist/bundle/{chunk-ODFHIXMA.js → chunk-SNTLN2QT.js} +1 -1
  54. package/dist/bundle/{chunk-VDUGE6TH.js → chunk-SR3ADLGX.js} +2 -2
  55. package/dist/bundle/{chunk-4WIEVQ2Q.js → chunk-UMXVQIGD.js} +137 -9
  56. package/dist/bundle/{chunk-HN43G27G.js → chunk-V3TDQUXD.js} +45 -27
  57. package/dist/bundle/{chunk-3DSYLE5N.js → chunk-V7CFZ773.js} +2 -2
  58. package/dist/bundle/{chunk-LF5XM4HE.js → chunk-VAMCRP47.js} +1 -1
  59. package/dist/bundle/{chunk-Z7N4MGOQ.js → chunk-VFKX5UMJ.js} +5 -5
  60. package/dist/bundle/{chunk-72N26BQM.js → chunk-VYHIX3OP.js} +88 -88
  61. package/dist/bundle/{chunk-P2QJA7S5.js → chunk-VYIIX6VN.js} +1 -1
  62. package/dist/bundle/{chunk-V6OIIVH3.js → chunk-WN4HP7IZ.js} +11 -11
  63. package/dist/bundle/{chunk-MDDB7M7Z.js → chunk-ZXIPJF3Y.js} +1 -1
  64. package/dist/bundle/command-contract-IIHBNF7J.js +35 -0
  65. package/dist/bundle/{decode-BIOOL5E4.js → decode-QXKTMOTH.js} +4 -4
  66. package/dist/bundle/{dispatch-R5OF2FVZ.js → dispatch-G4CYFWQ2.js} +1 -1
  67. package/dist/bundle/{dist-TJVIRLE5.js → dist-5FX36DAW.js} +44 -22
  68. package/dist/bundle/{echarts-ECPGMKXO.js → echarts-HHUM43TU.js} +2 -2
  69. package/dist/bundle/{embed-F7JFSLHN.js → embed-SRZSDZVI.js} +5 -5
  70. package/dist/bundle/{embedder-U4G74HV3.js → embedder-WZIZCWLX.js} +8 -8
  71. package/dist/bundle/{failure-WYKVF6RH.js → failure-FFPK2WYB.js} +1 -1
  72. package/dist/bundle/{first-run-JTYPUYQP.js → first-run-6DVWZ3JQ.js} +8 -8
  73. package/dist/bundle/first-screen-SRZ7NYHZ.js +33 -0
  74. package/dist/bundle/{instructions-WNCGZ7OJ.js → instructions-UWONE6UT.js} +1 -1
  75. package/dist/bundle/mail.js +5 -5
  76. package/dist/bundle/{node-UIRGGMGT.js → node-HLAOYJDB.js} +2 -2
  77. package/dist/bundle/{node-sqlite-4ZM7OPRF.js → node-sqlite-RO66I7W6.js} +5 -5
  78. package/dist/bundle/{oauth-5RAJZPBW.js → oauth-VNLB2TET.js} +6 -6
  79. package/dist/bundle/{open-7ORCHOAI.js → open-QQSG343L.js} +4 -4
  80. package/dist/bundle/{openai-XSJNXJA7.js → openai-JTFC7OGF.js} +12 -12
  81. package/dist/bundle/{process-ZLO72UVZ.js → process-3CZAXR6P.js} +1 -1
  82. package/dist/bundle/{program-MXGQFQJG.js → program-XTOS4RAM.js} +4528 -2579
  83. package/dist/bundle/{prompt-IDUPCUGM.js → prompt-HGQ6GPYL.js} +6 -4
  84. package/dist/bundle/{recognize-OS3EZKIM.js → recognize-2SHMNEIZ.js} +3 -3
  85. package/dist/bundle/{remote-PF4LZR65.js → remote-GBQC3433.js} +6 -6
  86. package/dist/bundle/{rerank-CQNZF3JI.js → rerank-FQHQXFNR.js} +6 -6
  87. package/dist/bundle/{serve-Y2DDLGBT.js → serve-THU67QUZ.js} +8 -8
  88. package/dist/bundle/{server-TVRT7YEY.js → server-LOT3CLYX.js} +36 -36
  89. package/dist/bundle/server-VKMUX7ZT.js +65 -0
  90. package/dist/bundle/{sqlite-runtime-5343C3OE.js → sqlite-runtime-NOOUMBC4.js} +5 -5
  91. package/dist/bundle/{state-4GBTMPIV.js → state-KSKZCV2U.js} +5 -5
  92. package/dist/bundle/{store-QA6QJ5BB.js → store-BAKSHTKF.js} +37 -14
  93. package/dist/bundle/{store-OLBLTQPT.js → store-OHNZOQ7U.js} +30 -18
  94. package/dist/bundle/store-maintenance-command-ROQHJVEA.js +54 -0
  95. package/dist/commands/account-remove.d.ts +3 -0
  96. package/dist/commands/account-remove.d.ts.map +1 -0
  97. package/dist/commands/account-remove.js +65 -0
  98. package/dist/commands/account-remove.js.map +1 -0
  99. package/dist/commands/account.d.ts.map +1 -1
  100. package/dist/commands/account.js +3 -1
  101. package/dist/commands/account.js.map +1 -1
  102. package/dist/commands/context.d.ts +3 -1
  103. package/dist/commands/context.d.ts.map +1 -1
  104. package/dist/commands/context.js.map +1 -1
  105. package/dist/commands/rules.d.ts.map +1 -1
  106. package/dist/commands/rules.js +29 -7
  107. package/dist/commands/rules.js.map +1 -1
  108. package/dist/commands/sync.d.ts +0 -1
  109. package/dist/commands/sync.d.ts.map +1 -1
  110. package/dist/commands/sync.js +8 -2
  111. package/dist/commands/sync.js.map +1 -1
  112. package/dist/mail/changes.d.ts +1 -0
  113. package/dist/mail/changes.d.ts.map +1 -1
  114. package/dist/mail/changes.js +1 -1
  115. package/dist/mail/changes.js.map +1 -1
  116. package/dist/providers.js +2 -2
  117. package/dist/providers.js.map +1 -1
  118. package/dist/version.d.ts +1 -1
  119. package/dist/version.js +1 -1
  120. package/package.json +3 -3
  121. package/dist/bundle/chunk-QPRXTLMD.js +0 -33
  122. package/dist/bundle/command-contract-Y4ZQAJEC.js +0 -35
  123. package/dist/bundle/first-screen-W6RWTAU7.js +0 -33
  124. package/dist/bundle/server-I3IALQMC.js +0 -65
  125. package/dist/bundle/store-maintenance-command-LB6CMGP4.js +0 -55
@@ -13,7 +13,7 @@ import {
13
13
  permissionOverrides,
14
14
  projectFields,
15
15
  resolveOutput
16
- } from "./chunk-HRRSTIGP.js";
16
+ } from "./chunk-SBGXKM4U.js";
17
17
  import {
18
18
  currentCaller,
19
19
  endpointTemplate,
@@ -23,16 +23,16 @@ import {
23
23
  providerErrorKey,
24
24
  renderEvent,
25
25
  runContextOf
26
- } from "./chunk-B74SOC4R.js";
27
- import {
28
- permissionCeiling
29
- } from "./chunk-VDUGE6TH.js";
26
+ } from "./chunk-CUOCDJFI.js";
30
27
  import {
31
28
  carries
32
- } from "./chunk-T3DTYJTG.js";
29
+ } from "./chunk-OU5CWCG2.js";
30
+ import {
31
+ permissionCeiling
32
+ } from "./chunk-SR3ADLGX.js";
33
33
  import {
34
34
  note
35
- } from "./chunk-566MEXK5.js";
35
+ } from "./chunk-E7ZVKQHG.js";
36
36
  import {
37
37
  FACT_STATUSES,
38
38
  LINK_KINDS,
@@ -56,11 +56,13 @@ import {
56
56
  project,
57
57
  providerMetadata,
58
58
  reminder,
59
+ sourceReview,
59
60
  text,
60
61
  time,
61
62
  untrusted
62
- } from "./chunk-HJ2CXDKJ.js";
63
+ } from "./chunk-EXPR6QAX.js";
63
64
  import {
65
+ BUSINESS_KINDS,
64
66
  DEAL_ROLES,
65
67
  FACT_TYPES,
66
68
  FIELD_TYPES,
@@ -88,21 +90,23 @@ import {
88
90
  meetingStats,
89
91
  meetingSummary,
90
92
  meetingTranscript
91
- } from "./chunk-I2SDXWLR.js";
93
+ } from "./chunk-7YRKUEYE.js";
92
94
  import {
93
95
  isCliFailure,
94
96
  storeDamaged
95
- } from "./chunk-SYEICLTR.js";
97
+ } from "./chunk-R554W7ZO.js";
96
98
  import {
97
- sharedConfigPath
98
- } from "./chunk-3HDQVTND.js";
99
+ readSharedSection,
100
+ sharedConfigPath,
101
+ writeSharedSection
102
+ } from "./chunk-3UFD76IR.js";
99
103
  import {
100
104
  filesPresent,
101
105
  sharedModelsDirectory
102
- } from "./chunk-O3M2S62X.js";
106
+ } from "./chunk-QUKD5SO2.js";
103
107
  import {
104
108
  storePath
105
- } from "./chunk-RPCKBXKN.js";
109
+ } from "./chunk-5UKBUI4I.js";
106
110
  import {
107
111
  configFilePath,
108
112
  createRecordLog,
@@ -112,7 +116,7 @@ import {
112
116
  saveConfigFile,
113
117
  traceIdOf,
114
118
  writeSecurely
115
- } from "./chunk-BMV56JCL.js";
119
+ } from "./chunk-LLYVBO3R.js";
116
120
  import {
117
121
  COMPACT_FLAG,
118
122
  MAX_NEXT_STEPS,
@@ -155,6 +159,7 @@ import {
155
159
  regex,
156
160
  safeInteger,
157
161
  safeParse,
162
+ startsWith,
158
163
  stepOf,
159
164
  strictObject,
160
165
  string,
@@ -162,9 +167,10 @@ import {
162
167
  union,
163
168
  unknown,
164
169
  unwrap,
170
+ url,
165
171
  variant,
166
172
  writes
167
- } from "./chunk-BHNBWFT5.js";
173
+ } from "./chunk-GOMJNH56.js";
168
174
  import {
169
175
  CliError,
170
176
  isCliError,
@@ -174,7 +180,7 @@ import {
174
180
  __name
175
181
  } from "./chunk-ZVVMGPBJ.js";
176
182
 
177
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/ports/app.js
183
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/ports/app.js
178
184
  var envName = /* @__PURE__ */ __name((app, name) => `${app.envPrefix}_${name}`, "envName");
179
185
  var readOnlyLockOf = /* @__PURE__ */ __name((app, env) => {
180
186
  const name = envName(app, "READ_ONLY");
@@ -3887,7 +3893,7 @@ var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
3887
3893
  }
3888
3894
  }, "refuseJoinedPath");
3889
3895
 
3890
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/sends/guarded.js
3896
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/sends/guarded.js
3891
3897
  import { AsyncLocalStorage } from "node:async_hooks";
3892
3898
  var sentIds = /* @__PURE__ */ __name((typed2, message2) => ({
3893
3899
  messageId: message2.id,
@@ -3993,7 +3999,7 @@ var guardedWrite = /* @__PURE__ */ __name(async (guard, attempt, act, settled2 =
3993
3999
  }, "guardedWrite");
3994
4000
  var codeOf = /* @__PURE__ */ __name((error) => typeof error?.code === "string" ? error.code : "unknown", "codeOf");
3995
4001
 
3996
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/cli/execution.js
4002
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/cli/execution.js
3997
4003
  var DEFAULT_COMMAND_MS = 3e4;
3998
4004
  var DEFAULT_COOPERATIVE_MS = 5 * 6e4;
3999
4005
  var DEFAULT_SYNC_MS = 15 * 6e4;
@@ -4176,7 +4182,7 @@ var withAbort = /* @__PURE__ */ __name(async (signal, body) => {
4176
4182
  }
4177
4183
  }, "withAbort");
4178
4184
 
4179
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/cli/messenger/accounts.js
4185
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/cli/messenger/accounts.js
4180
4186
  import { existsSync, readdirSync, readFileSync } from "node:fs";
4181
4187
  import { join } from "node:path";
4182
4188
  var accountFileFor = /* @__PURE__ */ __name((app, profile, env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "accounts", `${profile}.json`), "accountFileFor");
@@ -4198,7 +4204,7 @@ var profilesWithAccounts = /* @__PURE__ */ __name((app, env) => {
4198
4204
  }, "profilesWithAccounts");
4199
4205
  var profilesHere = /* @__PURE__ */ __name((app, configured, env) => [.../* @__PURE__ */ new Set([...configured, ...profilesWithAccounts(app, env)])].sort(), "profilesHere");
4200
4206
 
4201
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/background/budget.js
4207
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/background/budget.js
4202
4208
  var DEADLINE_MARGIN_MS = 5e3;
4203
4209
  var DEADLINE_MARGIN_SHARE = 0.15;
4204
4210
  var DEFAULT_REQUEST_MS = 2e3;
@@ -4241,7 +4247,7 @@ var runBudget = /* @__PURE__ */ __name(({ requests, deadline, requestMs, signal,
4241
4247
  };
4242
4248
  }, "runBudget");
4243
4249
 
4244
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/runs/log-events.js
4250
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/runs/log-events.js
4245
4251
  var CORE_LOG_EVENTS = defineLogEvents([
4246
4252
  { id: "provider.request", meaning: "a request went to the messenger", keys: ["operation"] },
4247
4253
  { id: "provider.response", meaning: "the messenger answered the request, or it failed", keys: ["operation"] },
@@ -4275,7 +4281,7 @@ var DIAGNOSTIC_LOG_EVENTS = {
4275
4281
  cache: "cache.answered"
4276
4282
  };
4277
4283
 
4278
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/runs/log-keys.js
4284
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/runs/log-keys.js
4279
4285
  var snake2 = /* @__PURE__ */ __name((key) => key.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snake");
4280
4286
  var camel = /* @__PURE__ */ __name((key) => key.replace(/_([a-z0-9])/g, (_, letter) => letter.toUpperCase()), "camel");
4281
4287
  var renamed = /* @__PURE__ */ __name((record2, name) => Object.fromEntries(Object.entries(record2).map(([key, value]) => [name(key), value])), "renamed");
@@ -4288,13 +4294,13 @@ var snakeLogger = /* @__PURE__ */ __name((logger) => ({
4288
4294
  error: /* @__PURE__ */ __name((event2, message2) => logger.error(logAttributes(event2), message2), "error")
4289
4295
  }), "snakeLogger");
4290
4296
 
4291
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/runs/run.js
4297
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/runs/run.js
4292
4298
  import { randomUUID } from "node:crypto";
4293
4299
  import { appendFileSync, mkdirSync, readdirSync as readdirSync2, readFileSync as readFileSync2, rmSync, statSync, writeFileSync } from "node:fs";
4294
4300
  import { userInfo } from "node:os";
4295
4301
  import { join as join2, sep } from "node:path";
4296
4302
 
4297
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/runs/log-attributes.js
4303
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/runs/log-attributes.js
4298
4304
  var diagnostic = {
4299
4305
  event: true,
4300
4306
  operation: true,
@@ -4364,7 +4370,7 @@ var LOG_ATTRIBUTES = [
4364
4370
  ...new Set([...Object.keys(diagnostic), ...Object.keys(send), ...background, ...crash, ...dropped].map((key) => Object.keys(logAttributes({ [key]: true }))[0]))
4365
4371
  ].sort();
4366
4372
 
4367
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/runs/run.js
4373
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/runs/run.js
4368
4374
  var KEEP_RUNS_FOR_DAYS = 30;
4369
4375
  var KEEP_SUCCESSFUL_RUNS_FOR_DAYS = 7;
4370
4376
  var RUNS_SIZE_LIMIT_MB = 200;
@@ -4480,8 +4486,8 @@ var runtime = /* @__PURE__ */ __name(() => {
4480
4486
  }, "runtime");
4481
4487
  var newRunId = /* @__PURE__ */ __name((startedAt, command) => {
4482
4488
  const stamp = startedAt.toISOString().replace(/[-:]/g, "").replace(/\.\d+Z$/, "Z");
4483
- const slug = command.replace(/[^a-z0-9]+/gi, "-").toLowerCase();
4484
- return `${stamp}-${slug}-${randomUUID().slice(0, 6)}`;
4489
+ const slug2 = command.replace(/[^a-z0-9]+/gi, "-").toLowerCase();
4490
+ return `${stamp}-${slug2}-${randomUUID().slice(0, 6)}`;
4485
4491
  }, "newRunId");
4486
4492
  var INDEX = "index.jsonl";
4487
4493
  var appendIndex = /* @__PURE__ */ __name((dayDir, written) => {
@@ -4717,7 +4723,7 @@ var metadataOf = /* @__PURE__ */ __name((parsed) => {
4717
4723
  };
4718
4724
  }, "metadataOf");
4719
4725
 
4720
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/runs/scope.js
4726
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/runs/scope.js
4721
4727
  import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
4722
4728
  import { randomBytes } from "node:crypto";
4723
4729
  var scopes = new AsyncLocalStorage2();
@@ -4736,7 +4742,7 @@ var currentRun = /* @__PURE__ */ __name(() => {
4736
4742
  }, "currentRun");
4737
4743
  var inRun = /* @__PURE__ */ __name((scope, body) => scopes.run(scope, body), "inRun");
4738
4744
  var runEvent = /* @__PURE__ */ __name((event2) => scopes.getStore()?.events?.(event2), "runEvent");
4739
- var typedCommand = /* @__PURE__ */ __name((tool, words, profile = currentRun().profile) => [tool, profile, words].filter((part) => part !== void 0 && part !== "").join(" "), "typedCommand");
4745
+ var typedCommand = /* @__PURE__ */ __name((tool, words2, profile = currentRun().profile) => [tool, profile, words2].filter((part) => part !== void 0 && part !== "").join(" "), "typedCommand");
4740
4746
  var useAsProcessRun = /* @__PURE__ */ __name((scope) => {
4741
4747
  processScope = scope;
4742
4748
  }, "useAsProcessRun");
@@ -4755,7 +4761,7 @@ var attempts = new AsyncLocalStorage2();
4755
4761
  var withAttempt = /* @__PURE__ */ __name((attempt, work) => attempts.run(attempt, work), "withAttempt");
4756
4762
  var currentAttempt = /* @__PURE__ */ __name(() => attempts.getStore(), "currentAttempt");
4757
4763
 
4758
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/runs/recording.js
4764
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/runs/recording.js
4759
4765
  var recorded = /* @__PURE__ */ __name(async (options, body) => {
4760
4766
  const recording = startRecording(options);
4761
4767
  try {
@@ -4947,7 +4953,7 @@ var partialOutcome = /* @__PURE__ */ __name((answer) => {
4947
4953
  return void 0;
4948
4954
  }, "partialOutcome");
4949
4955
 
4950
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/cli/deadline.js
4956
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/cli/deadline.js
4951
4957
  var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
4952
4958
  if (ms2 === void 0)
4953
4959
  return body();
@@ -4973,7 +4979,7 @@ var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
4973
4979
  }
4974
4980
  }, "withDeadline");
4975
4981
 
4976
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/cli/profile.js
4982
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/cli/profile.js
4977
4983
  var asFirstWord = /* @__PURE__ */ __name((profile) => `${profile} `, "asFirstWord");
4978
4984
  var PLAIN_NAME = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
4979
4985
  var isProfileName = /* @__PURE__ */ __name((word) => PLAIN_NAME.test(word), "isProfileName");
@@ -4999,19 +5005,19 @@ var takesProfile = /* @__PURE__ */ __name((command) => {
4999
5005
  return top !== void 0 && !PROFILE_FREE.has(top.name());
5000
5006
  }, "takesProfile");
5001
5007
  var commandWords = /* @__PURE__ */ __name((program2) => /* @__PURE__ */ new Set(["help", ...program2.commands.flatMap((command) => [command.name(), ...command.aliases()])]), "commandWords");
5002
- var liftProfile = /* @__PURE__ */ __name((argv, words, valued = /* @__PURE__ */ new Set()) => {
5008
+ var liftProfile = /* @__PURE__ */ __name((argv, words2, valued = /* @__PURE__ */ new Set()) => {
5003
5009
  let at2 = 0;
5004
5010
  while (argv[at2]?.startsWith("-") && argv[at2] !== "--")
5005
5011
  at2 += valued.has(argv[at2]) ? 2 : 1;
5006
5012
  const first2 = argv[at2];
5007
- if (first2 === void 0 || first2.startsWith("-") || words.has(first2))
5013
+ if (first2 === void 0 || first2.startsWith("-") || words2.has(first2))
5008
5014
  return { rest: argv };
5009
5015
  return { profile: first2, rest: [...argv.slice(0, at2), ...argv.slice(at2 + 1)] };
5010
5016
  }, "liftProfile");
5011
5017
  var valuedOptions = /* @__PURE__ */ __name((program2) => new Set(program2.options.filter((option) => option.required).flatMap((option) => [option.long, option.short].filter((flag2) => flag2 !== void 0))), "valuedOptions");
5012
- var refuseCommandName = /* @__PURE__ */ __name((profile, words, command) => {
5013
- if (words.has(profile)) {
5014
- throw new CliError("validation_error", `"${profile}" is a command, so \`${command} ${profile} \u2026\` would always mean the command and never this profile. Pick a name that is not one of: ` + [...words].sort().join(", "));
5018
+ var refuseCommandName = /* @__PURE__ */ __name((profile, words2, command) => {
5019
+ if (words2.has(profile)) {
5020
+ throw new CliError("validation_error", `"${profile}" is a command, so \`${command} ${profile} \u2026\` would always mean the command and never this profile. Pick a name that is not one of: ` + [...words2].sort().join(", "));
5015
5021
  }
5016
5022
  }, "refuseCommandName");
5017
5023
  var rootOf = /* @__PURE__ */ __name((command) => {
@@ -5042,20 +5048,20 @@ var sampleCommand = /* @__PURE__ */ __name((commands) => {
5042
5048
  return void 0;
5043
5049
  }, "sampleCommand");
5044
5050
 
5045
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/cli/settings.js
5051
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/cli/settings.js
5046
5052
  import { existsSync as existsSync4 } from "node:fs";
5047
5053
 
5048
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/models/endpoint.js
5054
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/models/endpoint.js
5049
5055
  var endpoint = /* @__PURE__ */ __name((value) => {
5050
5056
  try {
5051
- const url2 = new URL(value);
5052
- return ["https:", "http:"].includes(url2.protocol) && !url2.username && !url2.password && !url2.search && !url2.hash;
5057
+ const url3 = new URL(value);
5058
+ return ["https:", "http:"].includes(url3.protocol) && !url3.username && !url3.password && !url3.search && !url3.hash;
5053
5059
  } catch {
5054
5060
  return false;
5055
5061
  }
5056
5062
  }, "endpoint");
5057
5063
 
5058
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/models/settings.js
5064
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/models/settings.js
5059
5065
  var MODEL_FIELDS = ["provider", "model", "base_url"];
5060
5066
  var modelSettingsShape = record(pipe(string(), regex(/^[a-z][a-z0-9-]*$/)), strictObject({
5061
5067
  provider: optional(picklist(["off", "openai", "anthropic"])),
@@ -5124,13 +5130,13 @@ var modelTarget = /* @__PURE__ */ __name((settings, purpose) => {
5124
5130
  };
5125
5131
  }, "modelTarget");
5126
5132
 
5127
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/analysis/settings.js
5133
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/analysis/settings.js
5128
5134
  var model = pipe(string(), trim(), minLength(1), maxLength(200));
5129
- var url = pipe(string(), check(endpoint, "use an HTTP/S endpoint without credentials, query or fragment"));
5135
+ var url2 = pipe(string(), check(endpoint, "use an HTTP/S endpoint without credentials, query or fragment"));
5130
5136
  var AI_FIELDS = {
5131
5137
  embeddingProvider: optional(picklist(["local", "openai"])),
5132
5138
  embeddingModel: optional(model),
5133
- embeddingBaseUrl: optional(url),
5139
+ embeddingBaseUrl: optional(url2),
5134
5140
  embeddingDims: optional(pipe(number(), integer(), minValue(1), maxValue(65536))),
5135
5141
  models: optional(modelSettingsShape)
5136
5142
  };
@@ -5168,7 +5174,7 @@ var resolveAISettings = /* @__PURE__ */ __name((prefix, layers, env) => {
5168
5174
  };
5169
5175
  }, "resolveAISettings");
5170
5176
 
5171
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/domain/duration.js
5177
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/domain/duration.js
5172
5178
  var DURATION = /^(\d+)(ms|s|m|h|d)$/;
5173
5179
  var UNIT_MS = { ms: 1, s: 1e3, m: 6e4, h: 36e5, d: 864e5 };
5174
5180
  var parseDuration = /* @__PURE__ */ __name((value, source2) => {
@@ -5182,14 +5188,16 @@ var parseDuration = /* @__PURE__ */ __name((value, source2) => {
5182
5188
  return ms2;
5183
5189
  }, "parseDuration");
5184
5190
 
5185
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/embeddings/models.js
5191
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/embeddings/models.js
5186
5192
  var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/${repository}/resolve/${commit}/${name}`, "huggingFace");
5187
5193
  var e5 = huggingFace("Xenova/multilingual-e5-small", "761b726dd34fb83930e26aab4e9ac3899aa1fa78");
5194
+ var e5Large = huggingFace("Xenova/multilingual-e5-large", "00fc3aeb3dbb95842de2ac1961d33c6319acf57b");
5188
5195
  var gemma = huggingFace("onnx-community/embeddinggemma-300m-ONNX", "5090578d9565bb06545b4552f76e6bc2c93e4a66");
5189
5196
  var TEXT_MODELS = [
5190
5197
  {
5191
5198
  id: "e5-small",
5192
5199
  title: "multilingual-e5-small, 8-bit",
5200
+ size: "small",
5193
5201
  languages: "about 100 languages, Russian and English among them",
5194
5202
  licence: "MIT",
5195
5203
  dims: 384,
@@ -5223,6 +5231,7 @@ var TEXT_MODELS = [
5223
5231
  {
5224
5232
  id: "embeddinggemma",
5225
5233
  title: "EmbeddingGemma 300M, 4-bit",
5234
+ size: "medium",
5226
5235
  languages: "over 100 languages \u2014 the best of the two on chat, about seven times slower",
5227
5236
  licence: "Gemma Terms of Use",
5228
5237
  terms: "https://ai.google.dev/gemma/terms",
@@ -5259,16 +5268,113 @@ var TEXT_MODELS = [
5259
5268
  bytes: 1156830
5260
5269
  }
5261
5270
  ]
5271
+ },
5272
+ {
5273
+ id: "e5-large",
5274
+ title: "multilingual-e5-large, 8-bit",
5275
+ size: "large",
5276
+ languages: "about 100 languages, Russian and English among them \u2014 reads better than e5-small, several times slower",
5277
+ licence: "MIT",
5278
+ dims: 1024,
5279
+ maxTokens: 512,
5280
+ // 2026-11-07, one 8-thread session on the Ryzen AI 9 HX 470 while other benchmarks ran: 3.4 chunks/s.
5281
+ chunksPerSecond: 4,
5282
+ pooling: "mean",
5283
+ prefix: { query: "query: ", passage: "passage: " },
5284
+ onnx: "onnx/model_quantized.onnx",
5285
+ files: [
5286
+ {
5287
+ name: "onnx/model_quantized.onnx",
5288
+ url: e5Large("onnx/model_quantized.onnx"),
5289
+ sha256: "0a8d65db9a36f810ba5da15249f13145fcdc7890e6656f1fd38cd8b7c4db1fca",
5290
+ bytes: 561768762
5291
+ },
5292
+ {
5293
+ name: "tokenizer.json",
5294
+ url: e5Large("tokenizer.json"),
5295
+ sha256: "62c24cdc13d4c9952d63718d6c9fa4c287974249e16b7ade6d5a85e7bbb75626",
5296
+ bytes: 17082660
5297
+ },
5298
+ {
5299
+ name: "tokenizer_config.json",
5300
+ url: e5Large("tokenizer_config.json"),
5301
+ sha256: "efb5c0d09722e5fe59a462cd2a9976ee216d55b037597d997cd3fe833216da15",
5302
+ bytes: 418
5303
+ }
5304
+ ]
5262
5305
  }
5263
5306
  ];
5264
5307
  var DEFAULT_TEXT_MODEL = "e5-small";
5265
- var textModel = /* @__PURE__ */ __name((id6) => {
5266
- const found = TEXT_MODELS.find((model3) => model3.id === id6);
5308
+ var SECTION = "text_models";
5309
+ var slug = pipe(string(), regex(/^[a-z0-9][a-z0-9._-]{0,62}$/, "is not a model id: a-z, 0-9, . _ -"));
5310
+ var words = pipe(string(), trim(), minLength(1), maxLength(300));
5311
+ var fileName = pipe(string(), check((name) => /^[\w.-]+(\/[\w.-]+)*$/.test(name) && !name.split("/").some((part) => part === ".." || part === "."), "is not a file inside the model's folder"));
5312
+ var modelFile = strictObject({
5313
+ name: fileName,
5314
+ url: pipe(string(), url(), startsWith("https://", "has to be an https address")),
5315
+ sha256: pipe(string(), regex(/^[0-9a-f]{64}$/, "has to be a sha256 in hex")),
5316
+ bytes: pipe(number(), integer(), minValue(1))
5317
+ });
5318
+ var CustomTextModelShape = pipe(strictObject({
5319
+ id: slug,
5320
+ title: words,
5321
+ languages: words,
5322
+ licence: words,
5323
+ terms: optional(pipe(string(), url())),
5324
+ dims: pipe(number(), integer(), minValue(1), maxValue(8192)),
5325
+ maxTokens: pipe(number(), integer(), minValue(16), maxValue(32768)),
5326
+ chunksPerSecond: optional(pipe(number(), minValue(0.01))),
5327
+ pooling: picklist(["mean", "sentence_embedding"]),
5328
+ prefix: strictObject({
5329
+ query: pipe(string(), maxLength(200)),
5330
+ passage: pipe(string(), maxLength(200))
5331
+ }),
5332
+ onnx: fileName,
5333
+ externalData: optional(fileName),
5334
+ files: pipe(array(modelFile), minLength(1), maxLength(16))
5335
+ }), check((model3) => !TEXT_MODELS.some((one) => one.id === model3.id), "takes the id of a model this version ships; choose another"), check((model3) => {
5336
+ const names = model3.files.map(({ name }) => name);
5337
+ return [model3.onnx, model3.externalData, "tokenizer.json", "tokenizer_config.json"].every((name) => name === void 0 || names.includes(name));
5338
+ }, "has to list its onnx file, its external data and tokenizer.json and tokenizer_config.json among files"));
5339
+ var TextModelsSection = strictObject({
5340
+ use: optional(slug),
5341
+ custom: optional(array(CustomTextModelShape))
5342
+ });
5343
+ var textModelsFile = /* @__PURE__ */ __name((env = process.env) => sharedConfigPath(storePath(env), env), "textModelsFile");
5344
+ var readTextModelsSection = /* @__PURE__ */ __name((env = process.env) => {
5345
+ const path2 = textModelsFile(env);
5346
+ const section = readSharedSection(path2, SECTION);
5347
+ if (section === void 0)
5348
+ return {};
5349
+ const checked = safeParse(TextModelsSection, section);
5350
+ if (!checked.success) {
5351
+ const issue = checked.issues[0];
5352
+ const at2 = issue ? getDotPath(issue) : null;
5353
+ throw new CliError("configuration_error", `${path2}: ${SECTION}${at2 ? `.${at2}` : ""} ${issue?.message ?? "is not valid"}`);
5354
+ }
5355
+ const ids = checked.output.custom?.map(({ id: id6 }) => id6) ?? [];
5356
+ const twice = ids.find((id6, at2) => ids.indexOf(id6) !== at2);
5357
+ if (twice)
5358
+ throw new CliError("configuration_error", `${path2}: ${SECTION}.custom names ${twice} twice`);
5359
+ return checked.output;
5360
+ }, "readTextModelsSection");
5361
+ var writeTextModelsSection = /* @__PURE__ */ __name((section, env = process.env) => writeSharedSection(textModelsFile(env), SECTION, section.use === void 0 && !section.custom?.length ? void 0 : section), "writeTextModelsSection");
5362
+ var textModels = /* @__PURE__ */ __name((env = process.env) => [
5363
+ ...TEXT_MODELS,
5364
+ ...(readTextModelsSection(env).custom ?? []).map((model3) => ({ ...model3, custom: true }))
5365
+ ], "textModels");
5366
+ var textModel = /* @__PURE__ */ __name((id6, env = process.env) => {
5367
+ const known = textModels(env);
5368
+ const found = known.find((model3) => model3.id === id6);
5267
5369
  if (!found) {
5268
- throw new CliError("validation_error", `no text model ${id6} \u2014 one of: ${TEXT_MODELS.map((model3) => model3.id).join(", ")}`);
5370
+ throw new CliError("validation_error", `no text model ${id6} \u2014 one of: ${known.map((model3) => model3.id).join(", ")}`);
5269
5371
  }
5270
5372
  return found;
5271
5373
  }, "textModel");
5374
+ var chosenTextModel = /* @__PURE__ */ __name((env = process.env) => {
5375
+ const use = readTextModelsSection(env).use;
5376
+ return use === void 0 ? { id: DEFAULT_TEXT_MODEL, from: "default" } : { id: use, from: "chosen" };
5377
+ }, "chosenTextModel");
5272
5378
  var mmarco = huggingFace("cross-encoder/mmarco-mMiniLMv2-L12-H384-v1", "1427fd652930e4ba29e8149678df786c240d8825");
5273
5379
  var bge = huggingFace("onnx-community/bge-reranker-v2-m3-ONNX", "6f5ff65298512715a1e669753bc754d2bc8f367b");
5274
5380
  var RERANK_MODELS = [
@@ -5338,10 +5444,13 @@ var rerankModel = /* @__PURE__ */ __name((id6) => {
5338
5444
  }
5339
5445
  return found;
5340
5446
  }, "rerankModel");
5341
- var vectorModelKey = /* @__PURE__ */ __name((model3) => `local:${model3.id}:${model3.dims}`, "vectorModelKey");
5447
+ var vectorModelKey = /* @__PURE__ */ __name((model3) => {
5448
+ const weights = model3.custom ? model3.files.find(({ name }) => name === model3.onnx)?.sha256.slice(0, 12) : void 0;
5449
+ return `local:${model3.id}${weights ? `@${weights}` : ""}:${model3.dims}`;
5450
+ }, "vectorModelKey");
5342
5451
  var meaningFloor = /* @__PURE__ */ __name((key) => key === "local:e5-small:384" ? 0.8 : 0, "meaningFloor");
5343
5452
 
5344
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/history-limits.js
5453
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/history-limits.js
5345
5454
  var HISTORY_MAX_DAYS = 1095;
5346
5455
  var DEFAULT_HISTORY_LIMITS = { dialogDays: 1095, groupDays: 365, groupMembersMax: 50 };
5347
5456
  var DAY_MS2 = 24 * 60 * 60 * 1e3;
@@ -5388,7 +5497,7 @@ var limitBatch = /* @__PURE__ */ __name((batch, shapes, included, limits, now =
5388
5497
  return { batch: { ...batch, messages }, skipped };
5389
5498
  }, "limitBatch");
5390
5499
 
5391
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/cli/bot/registry.js
5500
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/cli/bot/registry.js
5392
5501
  import { existsSync as existsSync2, readdirSync as readdirSync3, readFileSync as readFileSync3 } from "node:fs";
5393
5502
  import { join as join3 } from "node:path";
5394
5503
  var botsDirectory = /* @__PURE__ */ __name((app, env = process.env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "bots"), "botsDirectory");
@@ -5477,10 +5586,10 @@ var registryProfiles = /* @__PURE__ */ __name((app, env = process.env) => {
5477
5586
  return readdirSync3(directory, { withFileTypes: true }).filter((entry) => entry.isFile() && entry.name.endsWith(".json")).map((entry) => entry.name).map((name) => name.slice(0, -".json".length));
5478
5587
  }, "registryProfiles");
5479
5588
 
5480
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
5589
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
5481
5590
  import { readFileSync as readFileSync4 } from "node:fs";
5482
5591
 
5483
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/cli/config-repair.js
5592
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/cli/config-repair.js
5484
5593
  var REPAIR_WORDS = {
5485
5594
  byte_order_mark: "an invisible byte-order mark at the start",
5486
5595
  comment: "a comment, which JSON does not allow",
@@ -5721,7 +5830,7 @@ ${parts.join(",\n")}
5721
5830
  ${indent}${close}`;
5722
5831
  }, "serialise");
5723
5832
 
5724
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
5833
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
5725
5834
  var isNode = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
5726
5835
  var SECTIONS = ["personal", "bot"];
5727
5836
  var SHELL_SAFE = /^[A-Za-z0-9_.:@-]*$/;
@@ -6015,7 +6124,7 @@ var readConfigFile = /* @__PURE__ */ __name((path2) => {
6015
6124
  return "issue" in parsed ? { issue: publicIssue(parsed.issue) } : parsed;
6016
6125
  }, "readConfigFile");
6017
6126
 
6018
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/cli/default-config.js
6127
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/cli/default-config.js
6019
6128
  import { existsSync as existsSync3, linkSync, mkdirSync as mkdirSync2, mkdtempSync, rmSync as rmSync2, writeFileSync as writeFileSync2 } from "node:fs";
6020
6129
  import { dirname, join as join4 } from "node:path";
6021
6130
  var DEFAULT_CONFIG = {
@@ -6044,7 +6153,7 @@ function ensureDefaultConfig(path2, config = DEFAULT_CONFIG) {
6044
6153
  }
6045
6154
  __name(ensureDefaultConfig, "ensureDefaultConfig");
6046
6155
 
6047
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/cli/setting-defaults.js
6156
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/cli/setting-defaults.js
6048
6157
  var isNode2 = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
6049
6158
  var parentOf = /* @__PURE__ */ __name((config, key) => {
6050
6159
  const path2 = key.split(".");
@@ -6066,7 +6175,7 @@ var withSettingDefaults = /* @__PURE__ */ __name((raw, declared) => {
6066
6175
  return { config, added };
6067
6176
  }, "withSettingDefaults");
6068
6177
 
6069
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/cli/settings.js
6178
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/cli/settings.js
6070
6179
  var DEFAULT_LIMIT = DEFAULT_CONFIG.defaults.limit;
6071
6180
  var DEFAULT_KEEP_RUNS_FOR_DAYS = DEFAULT_CONFIG.defaults.keep_runs_for_days;
6072
6181
  var DEFAULT_SENDS_PER_HOUR = DEFAULT_CONFIG.defaults.sends_per_hour;
@@ -6210,8 +6319,8 @@ var NoProfileHere = class extends CliError {
6210
6319
  this.app = app;
6211
6320
  }
6212
6321
  /** `words`: the command that was typed, without its arguments, so the suggestion runs as written. */
6213
- withoutSetup(words) {
6214
- const command = words ? `${this.app.command} personal ${words}` : `${this.app.command} personal \u2026`;
6322
+ withoutSetup(words2) {
6323
+ const command = words2 ? `${this.app.command} personal ${words2}` : `${this.app.command} personal \u2026`;
6215
6324
  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: [] });
6216
6325
  }
6217
6326
  };
@@ -6576,7 +6685,7 @@ var given = /* @__PURE__ */ __name((value) => {
6576
6685
  return trimmed === void 0 || trimmed === "" ? void 0 : trimmed;
6577
6686
  }, "given");
6578
6687
 
6579
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/cli/context.js
6688
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/cli/context.js
6580
6689
  var runBudgetOf = /* @__PURE__ */ __name((command, requests) => {
6581
6690
  const { deadline, signal, app } = environmentOf(command);
6582
6691
  const now = deadline?.();
@@ -6702,13 +6811,13 @@ var inCommandRun = /* @__PURE__ */ __name((command, body) => {
6702
6811
  return baseContext(command, (flags, options) => resolveSettings(flags, { ...options, needsProfile: false })).run(body);
6703
6812
  }, "inCommandRun");
6704
6813
  var commandPath = /* @__PURE__ */ __name((command) => {
6705
- const words = [];
6814
+ const words2 = [];
6706
6815
  for (let current2 = command; current2?.parent; current2 = current2.parent)
6707
- words.unshift(current2.name());
6708
- return words.join(" ");
6816
+ words2.unshift(current2.name());
6817
+ return words2.join(" ");
6709
6818
  }, "commandPath");
6710
6819
 
6711
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/cli/effects.js
6820
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/cli/effects.js
6712
6821
  var REMOTE_READ = { remote: "read", local: "read" };
6713
6822
  var FETCH = { remote: "read", local: "write" };
6714
6823
  var REMOTE_WRITE = { remote: "write", local: "write" };
@@ -6758,6 +6867,10 @@ var isProposal = /* @__PURE__ */ __name((command) => {
6758
6867
  }, "isProposal");
6759
6868
  var LOCKED_AUTHORITY_COMMANDS = ["rules add"];
6760
6869
  var NARROWS = /* @__PURE__ */ new WeakSet();
6870
+ var narrowsUnderLock = /* @__PURE__ */ __name((command) => {
6871
+ NARROWS.add(command);
6872
+ return command;
6873
+ }, "narrowsUnderLock");
6761
6874
  var admittedUnderLock = /* @__PURE__ */ __name((command) => {
6762
6875
  if (!NARROWS.has(command))
6763
6876
  return false;
@@ -6799,10 +6912,10 @@ var refuseStoreChange = /* @__PURE__ */ __name((app, env) => {
6799
6912
  throw readOnlyRefusal(lock, storeChangeRefusal(app));
6800
6913
  }, "refuseStoreChange");
6801
6914
  var pathOf2 = /* @__PURE__ */ __name((command) => {
6802
- const words = [];
6915
+ const words2 = [];
6803
6916
  for (let at2 = command; at2.parent; at2 = at2.parent)
6804
- words.unshift(at2.name());
6805
- return words;
6917
+ words2.unshift(at2.name());
6918
+ return words2;
6806
6919
  }, "pathOf");
6807
6920
  var changesMessenger = /* @__PURE__ */ __name((command) => {
6808
6921
  const { path: path2, effects, lifetime, reaches } = "path" in command ? command : { path: pathOf2(command), ...metaOf(command) };
@@ -6836,7 +6949,7 @@ var refuseUnderReadOnly = /* @__PURE__ */ __name((command, what) => {
6836
6949
  throw readOnlyRefusal(lock, what);
6837
6950
  }, "refuseUnderReadOnly");
6838
6951
 
6839
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/account.js
6952
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/account.js
6840
6953
  var account = strictObject({
6841
6954
  provider: text,
6842
6955
  id,
@@ -6846,7 +6959,7 @@ var account = strictObject({
6846
6959
  scope: optional(picklist(["personal", "work"]))
6847
6960
  });
6848
6961
 
6849
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/account-session.js
6962
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/account-session.js
6850
6963
  var accountSession = strictObject({
6851
6964
  current: boolean(),
6852
6965
  client: nullable(text),
@@ -6856,7 +6969,7 @@ var accountSession = strictObject({
6856
6969
  created_at: optional(nullable(time))
6857
6970
  });
6858
6971
 
6859
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/account-change.js
6972
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/account-change.js
6860
6973
  var accountChange = strictObject({ operation_id: id, account: omit(account, ["provider", "scope"]) });
6861
6974
  var endedAccountSessions = strictObject({ operation_id: id, sessions: array(accountSession) });
6862
6975
  var audience = picklist(["everyone", "contacts", "nobody"]);
@@ -6873,8 +6986,19 @@ var accountPrivacy = strictObject({
6873
6986
  last_seen: optional(shownAudience)
6874
6987
  });
6875
6988
  var accountPrivacyChange = strictObject({ operation_id: id, privacy: accountPrivacy });
6989
+ var removalKind = picklist(["sign_in", "keyring", "config", "file", "store", "unit", "schedule"]);
6990
+ var accountRemoval = strictObject({
6991
+ profile: text,
6992
+ data: picklist(["kept", "deleted"]),
6993
+ dry_run: boolean(),
6994
+ account: nullable(strictObject({ provider: text, account: text })),
6995
+ revoked: nullable(boolean()),
6996
+ config_file: text,
6997
+ removed: array(strictObject({ kind: removalKind, target: text })),
6998
+ kept: array(strictObject({ kind: removalKind, target: text, reason: text }))
6999
+ });
6876
7000
 
6877
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/account-profile.js
7001
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/account-profile.js
6878
7002
  var accountProfile = strictObject({
6879
7003
  profile: id,
6880
7004
  current: boolean(),
@@ -6886,7 +7010,7 @@ var accountProfile = strictObject({
6886
7010
  bot: optional(literal(true))
6887
7011
  });
6888
7012
 
6889
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/counter-reading.js
7013
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/counter-reading.js
6890
7014
  var milliseconds = pipe(number(), minValue(0));
6891
7015
  var counterReading = strictObject({
6892
7016
  counter: picklist(["views", "reactions", "comments"]),
@@ -6898,7 +7022,7 @@ var counterReading = strictObject({
6898
7022
  });
6899
7023
  var selection = record(string(), unknown());
6900
7024
 
6901
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/admin-report.js
7025
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/admin-report.js
6902
7026
  var adminRow = strictObject({
6903
7027
  ref: reference,
6904
7028
  /** What `stats * evidence` takes: a person id, a stay or a message locator. */
@@ -6951,7 +7075,7 @@ var adminReport = strictObject({
6951
7075
  rows: array(adminRow)
6952
7076
  });
6953
7077
 
6954
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/task.js
7078
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/task.js
6955
7079
  var closeSuggestion = strictObject({
6956
7080
  as: picklist(["done", "dismissed"]),
6957
7081
  /** The agent's name. */
@@ -7013,7 +7137,7 @@ var task = strictObject({
7013
7137
  updated_at: optional(time)
7014
7138
  });
7015
7139
 
7016
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/agenda.js
7140
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/agenda.js
7017
7141
  var agendaChat = strictObject({
7018
7142
  chat: reference,
7019
7143
  title: nullable(text),
@@ -7083,11 +7207,11 @@ var agenda = strictObject({
7083
7207
  unlisted_categories: array(strictObject({ name: text, open_tasks: number() }))
7084
7208
  });
7085
7209
 
7086
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/analysis-consent.js
7210
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/analysis-consent.js
7087
7211
  var analysisConsent = strictObject({ chat: id, provider: text, at: time });
7088
7212
  var analysisConsentRevocation = strictObject({ revoked: boolean() });
7089
7213
 
7090
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/attachment.js
7214
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/attachment.js
7091
7215
  var attachment = strictObject({
7092
7216
  /** The message it came with, as a locator; absent inside that message. */
7093
7217
  message: optional(reference),
@@ -7125,7 +7249,7 @@ var attachment = strictObject({
7125
7249
  });
7126
7250
  var hitFile = strictObject({ position: count, kind: text, name: optional(text), size: optional(count) });
7127
7251
 
7128
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/batch-result.js
7252
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/batch-result.js
7129
7253
  var actionableError = objectWithRest({
7130
7254
  code: text,
7131
7255
  message: text,
@@ -7142,7 +7266,7 @@ var batchResult = strictObject({
7142
7266
  max_error_percent: count
7143
7267
  });
7144
7268
 
7145
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/extraction-report.js
7269
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/extraction-report.js
7146
7270
  var extractionItem = strictObject({
7147
7271
  ref: reference,
7148
7272
  attachment: count,
@@ -7175,7 +7299,7 @@ var extractionReport = strictObject({
7175
7299
  cursor: optional(text)
7176
7300
  });
7177
7301
 
7178
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/attachment-results.js
7302
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/attachment-results.js
7179
7303
  var fingerprint = pipe(text, regex(/^[a-f0-9]{64}$/));
7180
7304
  var attachmentBytes = strictObject({
7181
7305
  ref: reference,
@@ -7203,7 +7327,7 @@ var attachmentTextChange = strictObject({
7203
7327
  replaced: nullable(picklist(["extracted", "agent"]))
7204
7328
  });
7205
7329
 
7206
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/chart.js
7330
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/chart.js
7207
7331
  var chart = strictObject({
7208
7332
  version: literal(1),
7209
7333
  kind: picklist(["bar", "line", "grouped-bar"]),
@@ -7218,7 +7342,7 @@ var chart = strictObject({
7218
7342
  file: optional(strictObject({ path: text, format: picklist(["svg", "png"]), width: count, height: count }))
7219
7343
  });
7220
7344
 
7221
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/member.js
7345
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/member.js
7222
7346
  var member = strictObject({
7223
7347
  id,
7224
7348
  name: nullable(text),
@@ -7241,7 +7365,7 @@ var member = strictObject({
7241
7365
  check: optional(record(string(), unknown()))
7242
7366
  });
7243
7367
 
7244
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/chat.js
7368
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/chat.js
7245
7369
  var setting = optional(nullable(boolean()));
7246
7370
  var chat = strictObject({
7247
7371
  ref: reference,
@@ -7282,7 +7406,7 @@ var chat = strictObject({
7282
7406
  members: optional(array(member))
7283
7407
  });
7284
7408
 
7285
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/folder.js
7409
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/folder.js
7286
7410
  var named = strictObject({
7287
7411
  id,
7288
7412
  title: nullable(text),
@@ -7305,7 +7429,7 @@ var folder = strictObject({
7305
7429
  excluded_chats: optional(array(named))
7306
7430
  });
7307
7431
 
7308
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/invite-link.js
7432
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/invite-link.js
7309
7433
  var inviteLink = strictObject({
7310
7434
  link: text,
7311
7435
  /** Who joins by it asks first, and an admin lets them in. */
@@ -7321,7 +7445,7 @@ var inviteLink = strictObject({
7321
7445
  joined_count: optional(count)
7322
7446
  });
7323
7447
 
7324
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/chat-admin.js
7448
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/chat-admin.js
7325
7449
  var operated = { operation_id: id, chat_id: id };
7326
7450
  var group = strictObject({
7327
7451
  ...omit(chat, ["ref", "provider", "account", "invite_link", "members"]).entries,
@@ -7401,7 +7525,7 @@ var chatFolderOrder = strictObject({
7401
7525
  folders: array(strictObject({ id, title: text }))
7402
7526
  });
7403
7527
 
7404
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/chat-change.js
7528
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/chat-change.js
7405
7529
  var operated2 = { operation_id: id, chat_id: id };
7406
7530
  var chatRemoval = strictObject(operated2);
7407
7531
  var chatMuting = strictObject({
@@ -7412,7 +7536,7 @@ var chatArchive = strictObject({ ...operated2, archived: boolean() });
7412
7536
  var chatPin = strictObject({ ...operated2, pinned: boolean() });
7413
7537
  var chatUnread = strictObject({ ...operated2, unread: literal(true) });
7414
7538
 
7415
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/chat-event.js
7539
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/chat-event.js
7416
7540
  var who = strictObject({ id: nullable(id), name: nullable(text), username: optional(nullable(text)) });
7417
7541
  var chatEvent = strictObject({
7418
7542
  chat_id: id,
@@ -7429,7 +7553,7 @@ var chatEvent = strictObject({
7429
7553
  before: optional(strictObject({ name: nullable(text), username: nullable(text) }))
7430
7554
  });
7431
7555
 
7432
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/chat-metadata.js
7556
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/chat-metadata.js
7433
7557
  var chatMetadata = strictObject({
7434
7558
  chat_id: id,
7435
7559
  title: nullable(text),
@@ -7444,7 +7568,7 @@ var chatMetadataRefresh = strictObject({
7444
7568
  has_more: boolean()
7445
7569
  });
7446
7570
 
7447
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/chat-moderation.js
7571
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/chat-moderation.js
7448
7572
  var action = picklist(["report", "delete", "remove"]);
7449
7573
  var level = picklist(["deny", "readonly", "ask", "allow"]);
7450
7574
  var chatRules = strictObject({
@@ -7481,7 +7605,7 @@ var chatModeration = strictObject({
7481
7605
  }))
7482
7606
  });
7483
7607
 
7484
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/chat-stats.js
7608
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/chat-stats.js
7485
7609
  var optionalCount = optional(count);
7486
7610
  var minutes = nullable(number());
7487
7611
  var chatStats = strictObject({
@@ -7555,7 +7679,7 @@ var taskStats = strictObject({
7555
7679
  }))
7556
7680
  });
7557
7681
 
7558
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/chat-tracking.js
7682
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/chat-tracking.js
7559
7683
  var memberCount = strictObject({
7560
7684
  day: pipe(text, isoDate()),
7561
7685
  participants: nullable(count),
@@ -7578,7 +7702,7 @@ var chatTracking = strictObject({
7578
7702
  tracked: boolean()
7579
7703
  });
7580
7704
 
7581
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/contact-read.js
7705
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/contact-read.js
7582
7706
  var contactLookup = strictObject({ id, name: nullable(text), username: nullable(text) });
7583
7707
  var contactSync = strictObject({ added: count, changed: count, known: count });
7584
7708
  var profileFields = {
@@ -7616,7 +7740,7 @@ var profileFields = {
7616
7740
  }))
7617
7741
  };
7618
7742
 
7619
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/contact.js
7743
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/contact.js
7620
7744
  var contact = strictObject({
7621
7745
  ref: reference,
7622
7746
  id,
@@ -7647,7 +7771,7 @@ var contact = strictObject({
7647
7771
  notes: optional(array(strictObject({ id, text, revision: count, created_at: time, updated_at: time })))
7648
7772
  });
7649
7773
 
7650
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/botcheck/reasons.js
7774
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/botcheck/reasons.js
7651
7775
  var WEIGHTS = {
7652
7776
  bot: 3,
7653
7777
  scam: 3,
@@ -7672,7 +7796,7 @@ var LINK = /https?:\/\/|t\.me\/|www\./i;
7672
7796
  var DIGITS = /\d{5,}/;
7673
7797
  var oddName = /* @__PURE__ */ __name((name) => !name?.trim() || DIGITS.test(name) || LINK.test(name), "oddName");
7674
7798
 
7675
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/contact-activity.js
7799
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/contact-activity.js
7676
7800
  var linkedIdentity = strictObject({
7677
7801
  provider: text,
7678
7802
  id,
@@ -7714,7 +7838,7 @@ var contactCheck = strictObject({
7714
7838
  checked_at: time
7715
7839
  });
7716
7840
 
7717
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/message.js
7841
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/message.js
7718
7842
  var quoted = strictObject({
7719
7843
  id,
7720
7844
  sender_id: nullable(id),
@@ -7833,7 +7957,7 @@ var message = strictObject({
7833
7957
  provider_metadata: providerMetadata
7834
7958
  });
7835
7959
 
7836
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/contact-context.js
7960
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/contact-context.js
7837
7961
  var contextPerson = strictObject({ ...linkedPerson.entries, provider: text, id });
7838
7962
  var contextMessage = strictObject({
7839
7963
  locator: reference,
@@ -8033,7 +8157,7 @@ var contactPreparation = strictObject({
8033
8157
  })
8034
8158
  });
8035
8159
 
8036
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/contact-note.js
8160
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/contact-note.js
8037
8161
  var contactNote = strictObject({
8038
8162
  id,
8039
8163
  /** The contact, as a `contact:` reference. */
@@ -8045,13 +8169,13 @@ var contactNote = strictObject({
8045
8169
  updated_at: time
8046
8170
  });
8047
8171
 
8048
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/contact-write.js
8172
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/contact-write.js
8049
8173
  var addressBookPerson = strictObject({ id, name: nullable(text), username: nullable(text) });
8050
8174
  var contactUpdate = strictObject({ operation_id: id, person: addressBookPerson });
8051
8175
  var contactStateChange = strictObject({ operation_id: id, person_id: id });
8052
8176
  var contactImport = strictObject({ operation_id: id, sent: count, recognised: array(addressBookPerson) });
8053
8177
 
8054
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/conversation.js
8178
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/conversation.js
8055
8179
  var conversation = strictObject({
8056
8180
  id,
8057
8181
  chat: reference,
@@ -8066,7 +8190,7 @@ var conversation = strictObject({
8066
8190
  rules_version: count
8067
8191
  });
8068
8192
 
8069
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/conversation-preparation.js
8193
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/conversation-preparation.js
8070
8194
  var conversationBuild = strictObject({
8071
8195
  chat: id,
8072
8196
  messages: count,
@@ -8091,7 +8215,7 @@ var catchUpPreparation = strictObject({
8091
8215
  prepared: optional(conversationPreparation)
8092
8216
  });
8093
8217
 
8094
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/conversation-results.js
8218
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/conversation-results.js
8095
8219
  var conversationDetails = union([
8096
8220
  strictObject({ ...conversation.entries, messages: array(message) }),
8097
8221
  message
@@ -8181,7 +8305,7 @@ var conversationHit = strictObject({
8181
8305
  stale: boolean()
8182
8306
  });
8183
8307
 
8184
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/counters.js
8308
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/counters.js
8185
8309
  var counters = strictObject({
8186
8310
  cutoff: time,
8187
8311
  max_age_ms: milliseconds,
@@ -8211,7 +8335,7 @@ var counterRefresh = strictObject({
8211
8335
  complete: optional(boolean())
8212
8336
  });
8213
8337
 
8214
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/deal.js
8338
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/deal.js
8215
8339
  var nullableText = nullable(text);
8216
8340
  var party = strictObject({ ref: reference, name: nullableText, owner: boolean() });
8217
8341
  var outcome = picklist(["open", "won", "lost"]);
@@ -8301,7 +8425,7 @@ var stage = strictObject({
8301
8425
  untrusted
8302
8426
  });
8303
8427
 
8304
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/document.js
8428
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/document.js
8305
8429
  var document = strictObject({
8306
8430
  ref: reference,
8307
8431
  id,
@@ -8316,7 +8440,7 @@ var document = strictObject({
8316
8440
  owners: optional(array(text))
8317
8441
  });
8318
8442
 
8319
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/document-link.js
8443
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/document-link.js
8320
8444
  var documentLink = strictObject({
8321
8445
  ref: reference,
8322
8446
  url: text,
@@ -8327,7 +8451,7 @@ var documentLink = strictObject({
8327
8451
  sender: strictObject({ id: nullable(id), name: nullable(text) })
8328
8452
  });
8329
8453
 
8330
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/evidence.js
8454
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/evidence.js
8331
8455
  var evidenceMessage = pick(message, ["ref", "chat_title", "timestamp", "sender_name", "text"]);
8332
8456
  var contribution = strictObject({
8333
8457
  message: evidenceMessage,
@@ -8357,7 +8481,7 @@ var retentionStay = strictObject({
8357
8481
  });
8358
8482
  var evidence = union([contribution, retentionStay]);
8359
8483
 
8360
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/fact.js
8484
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/fact.js
8361
8485
  var fact = strictObject({
8362
8486
  ref: reference,
8363
8487
  id,
@@ -8383,13 +8507,14 @@ var fact = strictObject({
8383
8507
  evidence: array(reference),
8384
8508
  /** With `--sources`: each piece of evidence read back. */
8385
8509
  sources: optional(array(evidenceSource)),
8510
+ source_review: optional(sourceReview),
8386
8511
  created_at: time,
8387
8512
  updated_at: time
8388
8513
  });
8389
8514
 
8390
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/hit.js
8515
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/hit.js
8391
8516
  var hit = strictObject({
8392
- kind: picklist(["message", "mail", "note", "document", "event", "meeting", "deal", "lead"]),
8517
+ kind: picklist(["message", "mail", "note", "document", "event", "meeting", "deal", "lead", ...BUSINESS_KINDS]),
8393
8518
  ref: reference,
8394
8519
  provider: text,
8395
8520
  url: optional(text),
@@ -8419,13 +8544,17 @@ var hit = strictObject({
8419
8544
  lines_total: optional(count),
8420
8545
  /** A meeting passage's stored line, so two passages of one meeting stay apart; `search meetings` gives the same. */
8421
8546
  id: optional(pipe(string(), minLength(1))),
8547
+ /** A business hit's: `proposed` waits for the owner; a product or a wallet has no review and is `confirmed`. */
8548
+ review: optional(picklist(["proposed", "confirmed"])),
8549
+ /** A business hit's record in the import that made it; absent for one the owner or an agent wrote. */
8550
+ source_record: optional(strictObject({ provider: text, account: text, external_id: text })),
8422
8551
  /** A message's files; absent when it has none. */
8423
8552
  attachments: optional(array(hitFile)),
8424
8553
  /** Absent on a note hit: the owner wrote it. */
8425
8554
  untrusted
8426
8555
  });
8427
8556
 
8428
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/identity.js
8557
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/identity.js
8429
8558
  var identity = strictObject({
8430
8559
  ref: reference,
8431
8560
  provider: text,
@@ -8438,7 +8567,7 @@ var identity = strictObject({
8438
8567
  person: optional(nullable(reference))
8439
8568
  });
8440
8569
 
8441
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/image-embedding.js
8570
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/image-embedding.js
8442
8571
  var imageEmbedding = strictObject({
8443
8572
  model: text,
8444
8573
  embedded: count,
@@ -8447,13 +8576,13 @@ var imageEmbedding = strictObject({
8447
8576
  more: boolean()
8448
8577
  });
8449
8578
 
8450
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
8579
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
8451
8580
  import { spawn } from "node:child_process";
8452
8581
  import { randomBytes as randomBytes2 } from "node:crypto";
8453
8582
  import { closeSync, existsSync as existsSync5, mkdirSync as mkdirSync3, openSync, readdirSync as readdirSync4, readFileSync as readFileSync5, realpathSync, rmSync as rmSync3 } from "node:fs";
8454
8583
  import { dirname as dirname2, join as join5 } from "node:path";
8455
8584
 
8456
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/background/checkpoints.js
8585
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/background/checkpoints.js
8457
8586
  var progressOf = /* @__PURE__ */ __name((input) => {
8458
8587
  const total = input.total ?? null;
8459
8588
  const updated = input.updatedAt ?? null;
@@ -8469,7 +8598,7 @@ var progressOf = /* @__PURE__ */ __name((input) => {
8469
8598
  };
8470
8599
  }, "progressOf");
8471
8600
 
8472
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/runs/record-log.js
8601
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/runs/record-log.js
8473
8602
  var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) => {
8474
8603
  const run = currentRun();
8475
8604
  const trace = traceId ?? run.traceId;
@@ -8483,7 +8612,7 @@ var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) =
8483
8612
  }));
8484
8613
  }, "recordLogFor");
8485
8614
 
8486
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
8615
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
8487
8616
  var JOB_STATES = ["running", "done", "partial", "failed", "cancelled", "died"];
8488
8617
  var spawnDetached = /* @__PURE__ */ __name((argv, env, log) => {
8489
8618
  const out = openSync(log, "a", 384);
@@ -8638,7 +8767,7 @@ var startArchiveJob = /* @__PURE__ */ __name((app, env, profile, input, spawnJob
8638
8767
  return { job: id6, pid, chat: input.chat, log };
8639
8768
  }, "startArchiveJob");
8640
8769
 
8641
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/job.js
8770
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/job.js
8642
8771
  var problem = strictObject({ code: text, message: text });
8643
8772
  var job = strictObject({
8644
8773
  id,
@@ -8661,7 +8790,7 @@ var job = strictObject({
8661
8790
  error: optional(problem)
8662
8791
  });
8663
8792
 
8664
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/join-request.js
8793
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/join-request.js
8665
8794
  var joinRequest = strictObject({
8666
8795
  person_id: id,
8667
8796
  name: nullable(text),
@@ -8672,7 +8801,7 @@ var joinRequest = strictObject({
8672
8801
  about: optional(text)
8673
8802
  });
8674
8803
 
8675
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/list-results.js
8804
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/list-results.js
8676
8805
  var botProfile = strictObject({
8677
8806
  name: text,
8678
8807
  token: text,
@@ -8717,11 +8846,13 @@ var scheduledJob = strictObject({
8717
8846
  failing_since: optional(time),
8718
8847
  failures: optional(number()),
8719
8848
  cost_usd: optional(number()),
8720
- /** The last time a run did not start, and why: the day's cost cap, or too little new mail. */
8849
+ input_hash: optional(text),
8850
+ /** The last time a run did not start, and why: the day's cost cap, too little new mail, or the same input. */
8721
8851
  skipped: optional(strictObject({
8722
8852
  at: time,
8723
8853
  why: text,
8724
- /** A dotted id for `why`, so a client can translate it: `cost.day-cap`, `mail.none-new`, `mail.below-threshold`. */
8854
+ /** A dotted id for `why`, so a client can translate it: `cost.day-cap`, `mail.none-new`, `mail.below-threshold`,
8855
+ * `mail.same-input`. */
8725
8856
  reason: optional(pipe(text, regex(/^[a-z][a-z0-9-]*(\.[a-z][a-z0-9-]*)+$/)))
8726
8857
  })),
8727
8858
  /** How the run's result went along each route; `reason` a dotted id, `error` the sending CLI's code and reason id. */
@@ -8765,7 +8896,7 @@ var stickerInventory = strictObject({
8765
8896
  url: optional(nullable(text))
8766
8897
  });
8767
8898
 
8768
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/poll-vote.js
8899
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/poll-vote.js
8769
8900
  var pollVote = strictObject({
8770
8901
  person_id: id,
8771
8902
  name: nullable(text),
@@ -8775,7 +8906,7 @@ var pollVote = strictObject({
8775
8906
  voted_at: time
8776
8907
  });
8777
8908
 
8778
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/listener.js
8909
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/listener.js
8779
8910
  var reactions = unwrap(unwrap(message.entries.reactions));
8780
8911
  var observation = strictObject({
8781
8912
  value: pipe(number(), minValue(0)),
@@ -8817,7 +8948,7 @@ var serveSummary = strictObject({
8817
8948
  tasks: optional(strictObject({ added: count, closed: count, review: count }))
8818
8949
  });
8819
8950
 
8820
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/mail-counts.js
8951
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/mail-counts.js
8821
8952
  var mailCounts = strictObject({
8822
8953
  by: picklist(["day", "week", "sender"]),
8823
8954
  received: count,
@@ -8832,7 +8963,7 @@ var mailCounts = strictObject({
8832
8963
  }))
8833
8964
  });
8834
8965
 
8835
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/mail-findings.js
8966
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/mail-findings.js
8836
8967
  var evidence2 = strictObject({ reference, fingerprint: text });
8837
8968
  var base = { id, evidence: array(evidence2) };
8838
8969
  var finding = variant("kind", [
@@ -8976,7 +9107,7 @@ var mailFindings = strictObject({
8976
9107
  receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome2) }))
8977
9108
  });
8978
9109
 
8979
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/media-archive.js
9110
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/media-archive.js
8980
9111
  var mediaArchive = strictObject({
8981
9112
  directory: text,
8982
9113
  chats: count,
@@ -9008,7 +9139,7 @@ var mediaArchiveTimer = union([
9008
9139
  strictObject({ ...timer, action: picklist(["install", "start", "stop", "uninstall"]) })
9009
9140
  ]);
9010
9141
 
9011
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation-parts.js
9142
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation-parts.js
9012
9143
  var preparationId = pipe(string(), minLength(1));
9013
9144
  var preparationCount = pipe(number(), integer(), minValue(0));
9014
9145
  var preparationTime = nullable(isoTime);
@@ -9100,7 +9231,7 @@ var preparationMeeting = strictObject({
9100
9231
  updated_at: isoTime
9101
9232
  });
9102
9233
 
9103
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/meeting-evidence.js
9234
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/meeting-evidence.js
9104
9235
  var meetingEvidence = preparationEvidence;
9105
9236
  var meetingPersonContext = strictObject({
9106
9237
  person: strictObject({ uid: string(), name: nullable(string()) }),
@@ -9122,7 +9253,7 @@ var meetingPersonContext = strictObject({
9122
9253
  })
9123
9254
  });
9124
9255
 
9125
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/meeting-findings.js
9256
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/meeting-findings.js
9126
9257
  var evidence3 = strictObject({ reference, fingerprint: text });
9127
9258
  var base2 = { id, project: reference, evidence: array(evidence3) };
9128
9259
  var finding2 = variant("kind", [
@@ -9160,7 +9291,7 @@ var meetingFindings = strictObject({
9160
9291
  receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome3) }))
9161
9292
  });
9162
9293
 
9163
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/meeting-communications.js
9294
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/meeting-communications.js
9164
9295
  var communicationCoverage = strictObject({
9165
9296
  read_usage: strictObject({ reads: preparationCount, charged_bytes: preparationCount, reserved_bytes: preparationCount, remaining_bytes: preparationCount }),
9166
9297
  query: string(),
@@ -9205,7 +9336,7 @@ var preparationCommunications = strictObject({
9205
9336
  }))
9206
9337
  });
9207
9338
 
9208
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation.js
9339
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation.js
9209
9340
  var meetingPreparation = strictObject({
9210
9341
  communications: optional(preparationCommunications),
9211
9342
  schema_version: literal(1),
@@ -9318,7 +9449,7 @@ var meetingPreparation = strictObject({
9318
9449
  })
9319
9450
  });
9320
9451
 
9321
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/meeting-project-candidates.js
9452
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/meeting-project-candidates.js
9322
9453
  var count4 = pipe(number(), integer(), minValue(0));
9323
9454
  var id3 = pipe(string(), minLength(1));
9324
9455
  var text3 = string();
@@ -9382,7 +9513,7 @@ var meetingProjectCandidates = strictObject({
9382
9513
  })
9383
9514
  });
9384
9515
 
9385
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/meeting-series-inventory.js
9516
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/meeting-series-inventory.js
9386
9517
  var count5 = pipe(number(), integer(), minValue(0));
9387
9518
  var id4 = pipe(string(), minLength(1), maxLength(1e3));
9388
9519
  var meetingSeriesInventory = strictObject({
@@ -9412,7 +9543,7 @@ var meetingSeriesInventory = strictObject({
9412
9543
  })
9413
9544
  });
9414
9545
 
9415
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/meeting-task-proposal.js
9546
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/meeting-task-proposal.js
9416
9547
  var text4 = string();
9417
9548
  var id5 = pipe(number(), integer(), minValue(1));
9418
9549
  var revision = picklist(["current", "superseded"]);
@@ -9429,7 +9560,7 @@ var meetingTaskProposal = strictObject({
9429
9560
  persistence: literal("proposal-only")
9430
9561
  });
9431
9562
 
9432
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/memory.js
9563
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/memory.js
9433
9564
  var memory = strictObject({
9434
9565
  ref: reference,
9435
9566
  id,
@@ -9452,11 +9583,12 @@ var memory = strictObject({
9452
9583
  /** With `--sources`: each piece of evidence read back. */
9453
9584
  sources: optional(array(evidenceSource)),
9454
9585
  last_verified_at: nullable(time),
9586
+ source_review: optional(sourceReview),
9455
9587
  created_at: time,
9456
9588
  updated_at: time
9457
9589
  });
9458
9590
 
9459
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/mention.js
9591
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/mention.js
9460
9592
  var kind = picklist(["phone", "email", "url", "document", "person-name", "place"]);
9461
9593
  var status = picklist(["found", "linked", "dismissed"]);
9462
9594
  var mention = strictObject({
@@ -9499,13 +9631,13 @@ var mentionRebuild = strictObject({
9499
9631
  mentions: count
9500
9632
  });
9501
9633
 
9502
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/message-change.js
9634
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/message-change.js
9503
9635
  var operated3 = { operation_id: id, chat_id: id };
9504
9636
  var messagePin = strictObject({ ...operated3, message_id: id, pinned: boolean() });
9505
9637
  var messageStar = strictObject({ ...operated3, message_id: id, starred: boolean() });
9506
9638
  var messageDeletion = strictObject({ ...operated3, deleted: array(id), for_everyone: boolean() });
9507
9639
 
9508
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/message-read.js
9640
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/message-read.js
9509
9641
  var messageTranscript = strictObject({
9510
9642
  message_id: id,
9511
9643
  text,
@@ -9563,7 +9695,7 @@ var evidencePacket = strictObject({
9563
9695
  }))
9564
9696
  });
9565
9697
 
9566
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/message-context.js
9698
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/message-context.js
9567
9699
  var messageThread = strictObject({
9568
9700
  ref: reference,
9569
9701
  chat: id,
@@ -9580,7 +9712,7 @@ var messageThread = strictObject({
9580
9712
  });
9581
9713
  var messageContext = union([message, messageThread]);
9582
9714
 
9583
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/message-counts.js
9715
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/message-counts.js
9584
9716
  var messageCounts = strictObject({
9585
9717
  by: picklist(["chat", "sender", "day", "hour"]),
9586
9718
  total: count,
@@ -9593,7 +9725,7 @@ var messageCounts = strictObject({
9593
9725
  }))
9594
9726
  });
9595
9727
 
9596
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/message-link.js
9728
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/message-link.js
9597
9729
  var messageLink = strictObject({
9598
9730
  ref: reference,
9599
9731
  url: nullable(text),
@@ -9610,7 +9742,7 @@ var messageLink = strictObject({
9610
9742
  })))
9611
9743
  });
9612
9744
 
9613
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/message-transfer.js
9745
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/message-transfer.js
9614
9746
  var savedMessageFile = strictObject({
9615
9747
  kind: text,
9616
9748
  path: text,
@@ -9697,7 +9829,7 @@ var messageSyncAll = strictObject({
9697
9829
  var messageSyncStarted = strictObject({ job: id, pid: count, chat: text, log: text });
9698
9830
  var messageSync = union([messageSyncEstimate, messageSyncChat, messageSyncAll, messageSyncStarted]);
9699
9831
 
9700
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/message-write.js
9832
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/message-write.js
9701
9833
  var messageWrite = strictObject({
9702
9834
  operation_id: id,
9703
9835
  message,
@@ -9712,7 +9844,7 @@ var draftWrite = strictObject({
9712
9844
  });
9713
9845
  var messageSend = union([messageWrite, draftWrite]);
9714
9846
 
9715
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/model.js
9847
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/model.js
9716
9848
  var model2 = strictObject({
9717
9849
  id,
9718
9850
  kind: picklist(["audio", "text", "image", "reranker"]),
@@ -9720,16 +9852,34 @@ var model2 = strictObject({
9720
9852
  /** Which languages it reads, in words. */
9721
9853
  languages: text,
9722
9854
  licence: optional(text),
9855
+ /** A text model's licence terms to accept with `models download --accept-terms`. */
9856
+ terms: optional(text),
9857
+ /** A text model's size next to the others: small is fastest, large reads best. */
9858
+ size: optional(picklist(["small", "medium", "large"])),
9859
+ /** A text model's vector length. */
9860
+ dims: optional(count),
9861
+ /** About how many chunks a second a text model embeds here, when measured. */
9862
+ chunks_per_second: optional(number()),
9863
+ /** A text model the owner added with `models add`. */
9864
+ custom: optional(boolean()),
9723
9865
  /** What its files take on disk once downloaded. */
9724
9866
  size_bytes: count,
9725
9867
  downloaded: boolean(),
9726
- /** The one used when no model is named. */
9868
+ /** The one used when no model is named: for text, the one `models use` chose. */
9727
9869
  default: boolean(),
9728
9870
  /** The folder its files are in once downloaded, so an agent can place them by hand. */
9729
9871
  path: text
9730
9872
  });
9873
+ var chosenModel = strictObject({
9874
+ ...model2.entries,
9875
+ previous: id,
9876
+ /** Chunk texts the previous model has vectors for and this one has not; `null` when no store is there to count. */
9877
+ to_embed: nullable(count),
9878
+ /** Embedding time alone at the model's speed, done a part per sync; `null` when the speed or the count is unknown. */
9879
+ estimate_seconds: nullable(count)
9880
+ });
9731
9881
 
9732
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/model-key.js
9882
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/model-key.js
9733
9883
  var source = picklist(["environment", "keyring", "file"]);
9734
9884
  var modelKey = strictObject({
9735
9885
  provider: text,
@@ -9739,7 +9889,7 @@ var modelKey = strictObject({
9739
9889
  var storedModelKey = strictObject({ ...omit(modelKey, ["removed"]).entries, stored: source });
9740
9890
  var removedModelKey = strictObject({ ...omit(modelKey, ["stored"]).entries, removed: array(source) });
9741
9891
 
9742
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/official-stats.js
9892
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/official-stats.js
9743
9893
  var versus = strictObject({ current: number(), previous: number() });
9744
9894
  var person = { person_ref: reference, name: nullable(text) };
9745
9895
  var graph = strictObject({
@@ -9773,14 +9923,14 @@ var officialStats = strictObject({
9773
9923
  graphs: record(string(), union([graph, strictObject({ error: text })]))
9774
9924
  });
9775
9925
 
9776
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/person.js
9926
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/person.js
9777
9927
  var person2 = strictObject({
9778
9928
  ref: reference,
9779
9929
  name: nullable(text),
9780
9930
  identities: optional(array(identity))
9781
9931
  });
9782
9932
 
9783
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/poll.js
9933
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/poll.js
9784
9934
  var poll = strictObject({
9785
9935
  chat_id: id,
9786
9936
  message_id: id,
@@ -9796,11 +9946,11 @@ var poll = strictObject({
9796
9946
  });
9797
9947
  var pollChange = strictObject({ operation_id: id, poll });
9798
9948
 
9799
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/private-contact.js
9949
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/private-contact.js
9800
9950
  var contactAlias = strictObject({ person_id: id, alias: nullable(text) });
9801
9951
  var contactNoteRemoval = strictObject({ id, person_id: id, removed: boolean() });
9802
9952
 
9803
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/ranking.js
9953
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/ranking.js
9804
9954
  var figures = record(string(), number());
9805
9955
  var freshness = picklist(["fresh", "stale", "partial", "unknown"]);
9806
9956
  var rankingRow = strictObject({
@@ -9847,7 +9997,7 @@ var ranking = strictObject({
9847
9997
  rows: array(rankingRow)
9848
9998
  });
9849
9999
 
9850
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/reaction.js
10000
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/reaction.js
9851
10001
  var reaction = strictObject({
9852
10002
  person: strictObject({ id, name: nullable(text), username: nullable(text) }),
9853
10003
  /** The emoji, or `custom:<id>` for a custom one. */
@@ -9855,7 +10005,7 @@ var reaction = strictObject({
9855
10005
  reacted_at: time
9856
10006
  });
9857
10007
 
9858
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/reaction-change.js
10008
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/reaction-change.js
9859
10009
  var reactionChange = strictObject({
9860
10010
  operation_id: id,
9861
10011
  chat_id: id,
@@ -9863,7 +10013,7 @@ var reactionChange = strictObject({
9863
10013
  reaction: nullable(text)
9864
10014
  });
9865
10015
 
9866
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/recipient.js
10016
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/recipient.js
9867
10017
  var recipient = strictObject({ id, title: nullable(text), partner_id: optional(id), added_at: time });
9868
10018
  var recipientAdded = strictObject({ id, title: nullable(text), added: boolean() });
9869
10019
  var recipientRemoved = strictObject({ id, title: nullable(text), removed: boolean() });
@@ -9874,7 +10024,7 @@ var recipientChange = strictObject({
9874
10024
  ...partial(recipientOff).entries
9875
10025
  });
9876
10026
 
9877
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/recorded-run.js
10027
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/recorded-run.js
9878
10028
  var events = array(record(string(), unknown()));
9879
10029
  var recordedRun = strictObject({
9880
10030
  run_id: id,
@@ -9946,7 +10096,7 @@ var runHit = strictObject({
9946
10096
  });
9947
10097
  var runLocation = strictObject({ path: text });
9948
10098
 
9949
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/relationship.js
10099
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/relationship.js
9950
10100
  var relationship = strictObject({
9951
10101
  id,
9952
10102
  from: reference,
@@ -9969,7 +10119,7 @@ var relationship = strictObject({
9969
10119
  created_at: time
9970
10120
  });
9971
10121
 
9972
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/reply-stats.js
10122
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/reply-stats.js
9973
10123
  var milliseconds2 = nullable(pipe(number(), minValue(0)));
9974
10124
  var figures2 = { replies: count, median_ms: milliseconds2, p90_ms: milliseconds2, mean_ms: milliseconds2 };
9975
10125
  var responseTimes = strictObject({
@@ -9986,7 +10136,7 @@ var waitingChats = strictObject({
9986
10136
  by_kind: strictObject({ private: count, group: count })
9987
10137
  });
9988
10138
 
9989
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/retention.js
10139
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/retention.js
9990
10140
  var retentionCohort = strictObject({
9991
10141
  /** The first day of the joining day or week. */
9992
10142
  cohort: text,
@@ -10034,7 +10184,7 @@ var retention = strictObject({
10034
10184
  rows: array(retentionCohort)
10035
10185
  });
10036
10186
 
10037
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/saved-search.js
10187
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/saved-search.js
10038
10188
  var savedSearch = strictObject({
10039
10189
  id,
10040
10190
  /** `null` for a run in the history. */
@@ -10051,7 +10201,7 @@ var savedSearch = strictObject({
10051
10201
  });
10052
10202
  var searchHistoryClear = strictObject({ cleared: count });
10053
10203
 
10054
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/send-attempt.js
10204
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/send-attempt.js
10055
10205
  var sendAttempt = strictObject({
10056
10206
  at: time,
10057
10207
  profile: text,
@@ -10079,7 +10229,7 @@ var sendAttempt = strictObject({
10079
10229
  error_code: optional(text)
10080
10230
  });
10081
10231
 
10082
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/store-maintenance.js
10232
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/store-maintenance.js
10083
10233
  var absent = strictObject({ path: text, exists: literal(false) });
10084
10234
  var schema = strictObject({ version: count, min_compatible: count, writable: boolean(), speaks: count });
10085
10235
  var infoSchema = strictObject({
@@ -10300,7 +10450,7 @@ var storeRepair = union([
10300
10450
  ]);
10301
10451
  var storeCopyRemoval = strictObject({ path: text, deleted: strictObject({ name: text, rows: count }) });
10302
10452
 
10303
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/store-records.js
10453
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/store-records.js
10304
10454
  var range = strictObject({ from: number(), to: number() });
10305
10455
  var storeChatStatus = strictObject({
10306
10456
  chat_id: id,
@@ -10398,7 +10548,7 @@ var storeJobRetry = union([
10398
10548
  ]);
10399
10549
  var storeJobClear = strictObject({ cleared: array(id) });
10400
10550
 
10401
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/store-table.js
10551
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/store-table.js
10402
10552
  var TABLE_KINDS = ["data", "search_index", "search_index_part", "internal"];
10403
10553
  var storeTable = strictObject({
10404
10554
  name: text,
@@ -10407,7 +10557,7 @@ var storeTable = strictObject({
10407
10557
  bytes: optional(nullable(count))
10408
10558
  });
10409
10559
 
10410
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/tag-change.js
10560
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/tag-change.js
10411
10561
  var tagTarget = variant("type", [
10412
10562
  strictObject({ type: literal("chat"), chat_id: id }),
10413
10563
  strictObject({ type: literal("contact"), person_id: id }),
@@ -10438,7 +10588,7 @@ var automaticTags = strictObject({
10438
10588
  dry_run: boolean()
10439
10589
  });
10440
10590
 
10441
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/tagging.js
10591
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/tagging.js
10442
10592
  var tagging = strictObject({
10443
10593
  tag: text,
10444
10594
  type: picklist(TAG_TYPES),
@@ -10451,7 +10601,7 @@ var tagging = strictObject({
10451
10601
  created_at: time
10452
10602
  });
10453
10603
 
10454
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/task-pair.js
10604
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/task-pair.js
10455
10605
  var side = strictObject({ ref: reference, key: text, title: text, status: text });
10456
10606
  var taskPair = strictObject({
10457
10607
  task: nullable(side),
@@ -10474,7 +10624,7 @@ var taskPair = strictObject({
10474
10624
  created_at: time
10475
10625
  });
10476
10626
 
10477
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/task-results.js
10627
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/task-results.js
10478
10628
  var nullableTime = nullable(time);
10479
10629
  var link = strictObject({
10480
10630
  id,
@@ -10648,7 +10798,19 @@ var taskReview = strictObject({
10648
10798
  untrusted
10649
10799
  });
10650
10800
 
10651
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/topic.js
10801
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/template.js
10802
+ var template = strictObject({
10803
+ key: text,
10804
+ channel: picklist(["telegram", "email", "text"]),
10805
+ language: text,
10806
+ about: text,
10807
+ renders: boolean(),
10808
+ source: picklist(["stored", "default"]),
10809
+ updated_at: nullable(time),
10810
+ updated_by: nullable(text)
10811
+ });
10812
+
10813
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/topic.js
10652
10814
  var topic = strictObject({
10653
10815
  id,
10654
10816
  title: text,
@@ -10662,7 +10824,7 @@ var topic = strictObject({
10662
10824
  untrusted
10663
10825
  });
10664
10826
 
10665
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/entities/index.js
10827
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/entities/index.js
10666
10828
  var ENTITIES = {
10667
10829
  sync_progress: progress,
10668
10830
  deal,
@@ -10750,6 +10912,7 @@ var ENTITIES = {
10750
10912
  account_session: accountSession,
10751
10913
  account_change: accountChange,
10752
10914
  ended_account_sessions: endedAccountSessions,
10915
+ account_removal: accountRemoval,
10753
10916
  account_privacy: accountPrivacy,
10754
10917
  account_privacy_change: accountPrivacyChange,
10755
10918
  account_profile: accountProfile,
@@ -10904,6 +11067,7 @@ var ENTITIES = {
10904
11067
  chat_folder_order: chatFolderOrder,
10905
11068
  chat_rules: chatRules,
10906
11069
  chat_moderation: chatModeration,
11070
+ "model.chosen": chosenModel,
10907
11071
  model_key: modelKey,
10908
11072
  "model_key.stored": storedModelKey,
10909
11073
  "model_key.removed": removedModelKey,
@@ -10941,14 +11105,15 @@ var ENTITIES = {
10941
11105
  tracked_chat: trackedChat,
10942
11106
  tracked_chat_history: trackedChatHistory,
10943
11107
  chat_tracking: chatTracking,
10944
- task_stats: taskStats
11108
+ task_stats: taskStats,
11109
+ template
10945
11110
  };
10946
11111
  var entityDefinitions = /* @__PURE__ */ __name(() => Object.fromEntries(Object.entries(ENTITIES).map(([name, schema2]) => {
10947
11112
  const { $schema: _, ...definition } = jsonSchemaOf(schema2);
10948
11113
  return [name, definition];
10949
11114
  })), "entityDefinitions");
10950
11115
 
10951
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/cli/answer-entity.js
11116
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/cli/answer-entity.js
10952
11117
  var schemas = /* @__PURE__ */ new WeakMap();
10953
11118
  var answerEntity = /* @__PURE__ */ __name((command, name, schema2, options = {}) => {
10954
11119
  if (Object.hasOwn(ENTITIES, name))
@@ -10982,7 +11147,7 @@ var answerRow = /* @__PURE__ */ __name((command) => {
10982
11147
  return own && metaOf(command).output?.entity === own.name ? own.row : void 0;
10983
11148
  }, "answerRow");
10984
11149
 
10985
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/images/picture/models.js
11150
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/images/picture/models.js
10986
11151
  import { join as join6 } from "node:path";
10987
11152
  var clip = /* @__PURE__ */ __name((name) => `https://huggingface.co/Xenova/clip-vit-base-patch32/resolve/d15189d7028b43f1d3e65039190477f6af591c2a/${name}`, "clip");
10988
11153
  var IMAGE_MODELS = [
@@ -11036,7 +11201,7 @@ var imageModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedM
11036
11201
  var placedImage = /* @__PURE__ */ __name((model3, directory) => model3.files.map((file) => [file, join6(directory, model3.id, file.name)]), "placedImage");
11037
11202
  var isImageModelInstalled = /* @__PURE__ */ __name((model3, directory) => filesPresent(placedImage(model3, directory)), "isImageModelInstalled");
11038
11203
 
11039
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/cli/steps.js
11204
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/cli/steps.js
11040
11205
  var STEPS2 = defineSteps([
11041
11206
  ...STEPS,
11042
11207
  {
@@ -11270,10 +11435,10 @@ var nextStep = /* @__PURE__ */ __name((id6, input) => {
11270
11435
  const args = Object.fromEntries(Object.entries(input.args ?? {}).filter(([, value]) => value !== void 0));
11271
11436
  return stepOf(definition, { ...input, args });
11272
11437
  }, "nextStep");
11273
- var lineOf = /* @__PURE__ */ __name((command, words) => {
11438
+ var lineOf = /* @__PURE__ */ __name((command, words2) => {
11274
11439
  const root = rootOf2(command);
11275
11440
  const profile = root.getOptionValue("profile");
11276
- return typedCommand(root.name(), words, typeof profile === "string" && profile !== "" ? profile : void 0);
11441
+ return typedCommand(root.name(), words2, typeof profile === "string" && profile !== "" ? profile : void 0);
11277
11442
  }, "lineOf");
11278
11443
  var rootOf2 = /* @__PURE__ */ __name((command) => {
11279
11444
  let root = command;
@@ -11323,7 +11488,7 @@ var stepLine = /* @__PURE__ */ __name((root, step2) => {
11323
11488
  ].join(" ");
11324
11489
  }, "stepLine");
11325
11490
 
11326
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/cli/project-status-rows.js
11491
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/cli/project-status-rows.js
11327
11492
  var where = [{ field: "ref" }];
11328
11493
  var who2 = { field: ["who.owner", "who.name"], tag: "you" };
11329
11494
  var ON_CHAT_ROW = /* @__PURE__ */ new Set(["reply-next", "coverage"]);
@@ -11415,7 +11580,7 @@ var STATUS_ROWS = {
11415
11580
  "status.failed": { columns: [{ field: "signal" }], text: ["why"] }
11416
11581
  };
11417
11582
 
11418
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/cli/compact.js
11583
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/cli/compact.js
11419
11584
  var TEXT_CHARS = 400;
11420
11585
  var sender = { field: ["sender_is_me", "sender_name"], tag: "me" };
11421
11586
  var messageRow = {
@@ -11781,7 +11946,7 @@ var compactText = /* @__PURE__ */ __name((body, shape, options, rowsOf = rowsOfE
11781
11946
  return lines.concat(footerOf(body)).join("\n");
11782
11947
  }, "compactText");
11783
11948
 
11784
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/cli/output-budget.js
11949
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/cli/output-budget.js
11785
11950
  var SOFT_OUTPUT_BYTES = 256 * 1024;
11786
11951
  var CARRIED = ["json", "compact", "offline", "timeout", "full", "brief", "maxOutputBytes"];
11787
11952
  var NOT_WITH_COMPACT = /* @__PURE__ */ new Set(["json", "brief"]);
@@ -11807,10 +11972,10 @@ var declaresRow = /* @__PURE__ */ __name((command) => {
11807
11972
  return rowShapeOf(command, rows2 && entityRows(rows2)) !== GENERIC_ROW;
11808
11973
  }, "declaresRow");
11809
11974
  var pathOf3 = /* @__PURE__ */ __name((command) => {
11810
- const words = [];
11975
+ const words2 = [];
11811
11976
  for (let at2 = command; at2.parent; at2 = at2.parent)
11812
- words.unshift(at2.name());
11813
- return words.join(" ");
11977
+ words2.unshift(at2.name());
11978
+ return words2.join(" ");
11814
11979
  }, "pathOf");
11815
11980
  var step = /* @__PURE__ */ __name((command, id6, args, why) => ({
11816
11981
  kind: "command",
@@ -11839,7 +12004,7 @@ var largeAnswerSteps = /* @__PURE__ */ __name((command) => {
11839
12004
  return args ? compactStep(command, args, "the answer is large as JSON; one line per item keeps every ref") : [];
11840
12005
  }, "largeAnswerSteps");
11841
12006
 
11842
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
12007
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
11843
12008
  var HIDDEN = /* @__PURE__ */ new Set(["providerRef", "provider_ref"]);
11844
12009
  var withoutProviderRefs = /* @__PURE__ */ __name((value) => strip(value), "withoutProviderRefs");
11845
12010
  var strip = /* @__PURE__ */ __name((value) => {
@@ -11853,7 +12018,7 @@ var strip = /* @__PURE__ */ __name((value) => {
11853
12018
  return Object.fromEntries(Object.entries(value).flatMap(([key, inner]) => HIDDEN.has(key) ? [] : [[key, strip(inner)]]));
11854
12019
  }, "strip");
11855
12020
 
11856
- // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/cli/envelope.js
12021
+ // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/cli/envelope.js
11857
12022
  var answerSchema = /* @__PURE__ */ __name((item = unknown()) => union([listEnvelopeSchema(item), itemEnvelopeSchema(item)]), "answerSchema");
11858
12023
  var capped2 = /* @__PURE__ */ __name((steps) => steps.length > 0 ? { next: steps.slice(0, MAX_NEXT_STEPS) } : {}, "capped");
11859
12024
  var listOf = /* @__PURE__ */ __name((command, input) => {
@@ -12107,9 +12272,13 @@ export {
12107
12272
  refuseCommandName,
12108
12273
  rootOf,
12109
12274
  sampleCommand,
12110
- TEXT_MODELS,
12111
12275
  DEFAULT_TEXT_MODEL,
12276
+ CustomTextModelShape,
12277
+ readTextModelsSection,
12278
+ writeTextModelsSection,
12279
+ textModels,
12112
12280
  textModel,
12281
+ chosenTextModel,
12113
12282
  RERANK_MODELS,
12114
12283
  DEFAULT_RERANK_MODEL,
12115
12284
  rerankModel,
@@ -12123,10 +12292,12 @@ export {
12123
12292
  REPAIR_WORDS,
12124
12293
  repairConfigText,
12125
12294
  permissionIssues,
12295
+ withoutPath,
12126
12296
  publicIssue,
12127
12297
  fixVerb,
12128
12298
  issueMessage,
12129
12299
  readConfigFile,
12300
+ accountFileFor,
12130
12301
  rememberAccount,
12131
12302
  recalledAccount,
12132
12303
  profilesHere,
@@ -12158,6 +12329,7 @@ export {
12158
12329
  isLogin,
12159
12330
  destroysNothing,
12160
12331
  proposesOnly,
12332
+ narrowsUnderLock,
12161
12333
  admittedUnderLock,
12162
12334
  changesStore,
12163
12335
  readsOverMcpAt,
@@ -12200,6 +12372,7 @@ export {
12200
12372
  sendAttempt,
12201
12373
  storeTable,
12202
12374
  tagging,
12375
+ template,
12203
12376
  topic,
12204
12377
  ENTITIES,
12205
12378
  entityDefinitions,