@wirecat/cli-memo 0.131.55 → 0.131.57

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/dist/bin/memo.js +2 -2
  2. package/dist/bundle/{all-profiles-PJR2VHDP.js → all-profiles-XWRUFNP2.js} +7 -7
  3. package/dist/bundle/{anthropic-ZUDIWREK.js → anthropic-266QJJGV.js} +5 -5
  4. package/dist/bundle/{app-server-EYNQ4L2V.js → app-server-YV3D7PPC.js} +38 -38
  5. package/dist/bundle/auto-B7SEJAR5.js +86 -0
  6. package/dist/bundle/{bun-W2ZP6I6Z.js → bun-22MM6T54.js} +2 -2
  7. package/dist/bundle/{bun-sqlite-T2CTJ6AR.js → bun-sqlite-V73FFF2C.js} +4 -4
  8. package/dist/bundle/{chunk-MGDBKE7E.js → chunk-2CF2R7SA.js} +7 -7
  9. package/dist/bundle/{chunk-VQTU4ILC.js → chunk-2LPPNYOZ.js} +1 -1
  10. package/dist/bundle/{chunk-6NJ5OI2S.js → chunk-3BWYMNWP.js} +1 -1
  11. package/dist/bundle/{chunk-2NVP4FZH.js → chunk-3N7LEJRT.js} +2 -2
  12. package/dist/bundle/{chunk-T5WGWLY2.js → chunk-4K2ECEHT.js} +11 -11
  13. package/dist/bundle/{chunk-4335SGVD.js → chunk-4XKHXETB.js} +7007 -2683
  14. package/dist/bundle/{chunk-7ZO2LAFF.js → chunk-5FYDQEM7.js} +5 -5
  15. package/dist/bundle/{chunk-IVDBHH3N.js → chunk-6FABO4WB.js} +1 -1
  16. package/dist/bundle/{chunk-WYZDNDQ5.js → chunk-6WWF4RST.js} +734 -491
  17. package/dist/bundle/{chunk-OSPAMIIY.js → chunk-72ZEEKOJ.js} +3 -3
  18. package/dist/bundle/{chunk-MZMJALJT.js → chunk-ASWLM74P.js} +2 -2
  19. package/dist/bundle/{chunk-5UM2OEOR.js → chunk-ATEHG5O6.js} +2 -2
  20. package/dist/bundle/{chunk-JBQP2M7J.js → chunk-BLCYVRW3.js} +8 -8
  21. package/dist/bundle/{chunk-PSJB456T.js → chunk-CQPMBTB6.js} +1 -1
  22. package/dist/bundle/{chunk-ZTM4UUCP.js → chunk-D7FZIH5H.js} +10 -10
  23. package/dist/bundle/{chunk-O7CBAY6J.js → chunk-DQWHLOKG.js} +4 -4
  24. package/dist/bundle/{chunk-MU4MPJCU.js → chunk-DUBGCFRO.js} +3 -3
  25. package/dist/bundle/{chunk-WLKDS65F.js → chunk-EMNQPMZO.js} +1 -1
  26. package/dist/bundle/{chunk-LCE5LBZC.js → chunk-EQQIUVLP.js} +4 -4
  27. package/dist/bundle/{chunk-4VQ7FPNW.js → chunk-EUE76Q4D.js} +3 -3
  28. package/dist/bundle/{chunk-JGY2PJ3N.js → chunk-F5DOQOCK.js} +12 -12
  29. package/dist/bundle/{chunk-OKERVM3M.js → chunk-FG7ZGEZ6.js} +4 -4
  30. package/dist/bundle/{chunk-26QKDK5P.js → chunk-FU3XDL34.js} +5 -5
  31. package/dist/bundle/{chunk-3MWNNJII.js → chunk-G3QR3IYN.js} +9 -9
  32. package/dist/bundle/{chunk-VXZ7FWKU.js → chunk-GBOES7QS.js} +3 -3
  33. package/dist/bundle/{chunk-KTVYCPJW.js → chunk-HVHUHYNF.js} +1 -1
  34. package/dist/bundle/{chunk-LWWJW5V7.js → chunk-IRTWA4KO.js} +6 -6
  35. package/dist/bundle/{chunk-P5UTNYA7.js → chunk-IY7GB2SJ.js} +2 -2
  36. package/dist/bundle/{chunk-KK2ATSEC.js → chunk-JYUNAC6P.js} +7 -7
  37. package/dist/bundle/{chunk-IRFHHNSX.js → chunk-KZDKFYIF.js} +320 -182
  38. package/dist/bundle/{chunk-MFVZXEQN.js → chunk-L3GFAQFP.js} +22 -22
  39. package/dist/bundle/{chunk-DIFRVXKQ.js → chunk-MV6ZSBA3.js} +1124 -435
  40. package/dist/bundle/{chunk-MV5W4FLV.js → chunk-N2TGYTKE.js} +1 -1
  41. package/dist/bundle/{chunk-UBZN4EWJ.js → chunk-NDCURVJS.js} +5 -5
  42. package/dist/bundle/{chunk-VPCNLTME.js → chunk-NEWKSMXP.js} +2 -2
  43. package/dist/bundle/{chunk-ACSHPLHQ.js → chunk-NFAF27AD.js} +7 -7
  44. package/dist/bundle/{chunk-AYY5CYJJ.js → chunk-ONJNZ2RJ.js} +1 -1
  45. package/dist/bundle/{chunk-RSBROHX4.js → chunk-OROO3KYQ.js} +2 -2
  46. package/dist/bundle/{chunk-MMWIVZ7F.js → chunk-P7L4FG5S.js} +2 -2
  47. package/dist/bundle/{chunk-PHP3T567.js → chunk-PBVG3KJR.js} +3 -3
  48. package/dist/bundle/{chunk-B5VQSSL2.js → chunk-PE7RYCI4.js} +14 -14
  49. package/dist/bundle/{chunk-YHHR7NQ3.js → chunk-PHWJBFZ6.js} +33 -33
  50. package/dist/bundle/{chunk-XD52BEML.js → chunk-QHZTKYHC.js} +5 -5
  51. package/dist/bundle/{chunk-CADGAURO.js → chunk-QLCPRKFK.js} +29 -29
  52. package/dist/bundle/{chunk-64JCY7XJ.js → chunk-RCGFSWZE.js} +44 -0
  53. package/dist/bundle/{chunk-BC7N6IQ6.js → chunk-RJWL3NEL.js} +1 -1
  54. package/dist/bundle/{chunk-GESLAB4N.js → chunk-RTROEIYE.js} +2 -2
  55. package/dist/bundle/{chunk-JB43Q2QL.js → chunk-RYDNM3K2.js} +1 -1
  56. package/dist/bundle/{chunk-IR45YH4T.js → chunk-SMLBSPMG.js} +5 -5
  57. package/dist/bundle/{chunk-AF2ZDP3M.js → chunk-TB4IRRAC.js} +1 -1
  58. package/dist/bundle/{chunk-SR3ZNX24.js → chunk-V4BKQWDS.js} +132 -114
  59. package/dist/bundle/{chunk-RX6JTLKD.js → chunk-VEDOHZEU.js} +7 -7
  60. package/dist/bundle/{chunk-BEO6VJ2E.js → chunk-WKMLLL2F.js} +106 -96
  61. package/dist/bundle/{chunk-P3MKPY7D.js → chunk-XC6OYACL.js} +74 -15
  62. package/dist/bundle/{chunk-FUINFNUC.js → chunk-XEQPZBIH.js} +1 -1
  63. package/dist/bundle/{chunk-643B3X4D.js → chunk-XLYMVYMU.js} +2 -2
  64. package/dist/bundle/{chunk-DDD3CXHR.js → chunk-XXOWA66S.js} +31 -24
  65. package/dist/bundle/{chunk-BSA22I76.js → chunk-YC4KNMOZ.js} +5 -5
  66. package/dist/bundle/{chunk-34GJQ4ZR.js → chunk-YTAQKOAW.js} +1 -1
  67. package/dist/bundle/{chunk-VBYV6XQI.js → chunk-Z6RSOFHK.js} +2 -2
  68. package/dist/bundle/{command-contract-EWPKHGAZ.js → command-contract-DKK56GZX.js} +13 -13
  69. package/dist/bundle/{decode-UWT3Y66W.js → decode-JHVAOF3N.js} +4 -4
  70. package/dist/bundle/{dispatch-W4ZVXTJT.js → dispatch-CRYB6Q2V.js} +1 -1
  71. package/dist/bundle/{echarts-7VGTR45R.js → echarts-KCOXA225.js} +2 -2
  72. package/dist/bundle/{embed-CM2QSTNK.js → embed-4NYYOVNS.js} +5 -5
  73. package/dist/bundle/{embedder-CDCAMVV7.js → embedder-SHPWEDIQ.js} +8 -8
  74. package/dist/bundle/{entry-WHEWBNJL.js → entry-VZE4CVPX.js} +6 -6
  75. package/dist/bundle/failure-CMZXMZO6.js +66 -0
  76. package/dist/bundle/{failure-GQHAQVGH.js → failure-ZMQJF3RO.js} +1 -1
  77. package/dist/bundle/{first-run-ZBIQO5RZ.js → first-run-EKXME7UK.js} +8 -8
  78. package/dist/bundle/first-screen-QS5PVWDZ.js +30 -0
  79. package/dist/bundle/{instructions-LYKSTUGQ.js → instructions-ER3ONEOR.js} +1 -1
  80. package/dist/bundle/mcp-3ABYEJI3.js +90 -0
  81. package/dist/bundle/memo.js +9 -9
  82. package/dist/bundle/{node-LFRTSZBZ.js → node-DBZKVPDA.js} +2 -2
  83. package/dist/bundle/{node-sqlite-Y47T5FTT.js → node-sqlite-UZVU7EXS.js} +5 -5
  84. package/dist/bundle/{oauth-YM5C6VS3.js → oauth-VEFHKRWG.js} +6 -6
  85. package/dist/bundle/{open-WPA4DW5G.js → open-XNRAMLOK.js} +4 -4
  86. package/dist/bundle/{openai-RCPT23DA.js → openai-4XIX5RN2.js} +9 -9
  87. package/dist/bundle/{process-P2X2KFMR.js → process-EIGF77RB.js} +1 -1
  88. package/dist/bundle/{program-W35YGVVL.js → program-6ZIWHNZV.js} +103 -70
  89. package/dist/bundle/{prompt-65WPTVYC.js → prompt-V7RFTWTA.js} +4 -4
  90. package/dist/bundle/{recognize-MEFMK7HT.js → recognize-7PWWI67V.js} +3 -3
  91. package/dist/bundle/{remote-4XIR3ZYK.js → remote-NOKKQ2U5.js} +6 -6
  92. package/dist/bundle/{rerank-YRLAXFFL.js → rerank-X7UWX2ZF.js} +6 -6
  93. package/dist/bundle/{serve-6SPZH6CY.js → serve-Z6YCLXXP.js} +8 -8
  94. package/dist/bundle/server-AXMJBL6J.js +61 -0
  95. package/dist/bundle/server-KABSY3RL.js +48 -0
  96. package/dist/bundle/{server-7VLGYAOI.js → server-LXD7DXU3.js} +53 -53
  97. package/dist/bundle/{state-G34NVZ7F.js → state-K5D3BMKT.js} +5 -5
  98. package/dist/bundle/{store-6U4SYK4Q.js → store-6SZBCSUF.js} +21 -11
  99. package/dist/bundle/store-maintenance-command-GTMZOLMZ.js +48 -0
  100. package/dist/bundle/update-63B3BTGO.js +69 -0
  101. package/dist/doctor/command.d.ts.map +1 -1
  102. package/dist/doctor/command.js +13 -3
  103. package/dist/doctor/command.js.map +1 -1
  104. package/dist/examples.d.ts.map +1 -1
  105. package/dist/examples.js +5 -1
  106. package/dist/examples.js.map +1 -1
  107. package/dist/notes/embed.d.ts +5 -3
  108. package/dist/notes/embed.d.ts.map +1 -1
  109. package/dist/notes/embed.js +23 -9
  110. package/dist/notes/embed.js.map +1 -1
  111. package/dist/search/answers.d.ts.map +1 -1
  112. package/dist/search/answers.js +8 -0
  113. package/dist/search/answers.js.map +1 -1
  114. package/dist/version.d.ts +1 -1
  115. package/dist/version.js +1 -1
  116. package/package.json +2 -2
  117. package/dist/bundle/auto-K7FXWNR2.js +0 -86
  118. package/dist/bundle/failure-PFBL75CT.js +0 -66
  119. package/dist/bundle/first-screen-CUAY5N6E.js +0 -30
  120. package/dist/bundle/mcp-I72UY3QP.js +0 -90
  121. package/dist/bundle/server-FB75UHSF.js +0 -48
  122. package/dist/bundle/server-IELXA6S2.js +0 -61
  123. package/dist/bundle/store-maintenance-command-ONVPBZLT.js +0 -48
  124. package/dist/bundle/update-WJ2N47FV.js +0 -69
  125. /package/dist/bundle/{chunk-2H36DXV7.js → chunk-SO2HNIPX.js} +0 -0
@@ -9,18 +9,18 @@ import {
9
9
  providerErrorKey,
10
10
  renderEvent,
11
11
  runContextOf
12
- } from "./chunk-MGDBKE7E.js";
12
+ } from "./chunk-2CF2R7SA.js";
13
13
  import {
14
14
  permissionCeiling
15
- } from "./chunk-4VQ7FPNW.js";
15
+ } from "./chunk-EUE76Q4D.js";
16
16
  import {
17
17
  envName,
18
18
  readOnlyLockOf,
19
19
  readOnlyRefusal
20
- } from "./chunk-6NJ5OI2S.js";
20
+ } from "./chunk-3BWYMNWP.js";
21
21
  import {
22
22
  carries
23
- } from "./chunk-AYY5CYJJ.js";
23
+ } from "./chunk-ONJNZ2RJ.js";
24
24
  import {
25
25
  DEAL_ROLES,
26
26
  FACT_STATUSES,
@@ -74,21 +74,23 @@ import {
74
74
  text,
75
75
  time,
76
76
  untrusted
77
- } from "./chunk-SR3ZNX24.js";
77
+ } from "./chunk-V4BKQWDS.js";
78
78
  import {
79
79
  isCliFailure,
80
80
  storeDamaged
81
- } from "./chunk-P5UTNYA7.js";
81
+ } from "./chunk-IY7GB2SJ.js";
82
82
  import {
83
- sharedConfigPath
84
- } from "./chunk-UBZN4EWJ.js";
83
+ readSharedSection,
84
+ sharedConfigPath,
85
+ writeSharedSection
86
+ } from "./chunk-NDCURVJS.js";
85
87
  import {
86
88
  filesPresent,
87
89
  sharedModelsDirectory
88
- } from "./chunk-OSPAMIIY.js";
90
+ } from "./chunk-72ZEEKOJ.js";
89
91
  import {
90
92
  storePath
91
- } from "./chunk-RSBROHX4.js";
93
+ } from "./chunk-OROO3KYQ.js";
92
94
  import {
93
95
  configFilePath,
94
96
  createRecordLog,
@@ -101,7 +103,7 @@ import {
101
103
  saveConfigFile,
102
104
  traceIdOf,
103
105
  writeSecurely
104
- } from "./chunk-WLKDS65F.js";
106
+ } from "./chunk-EMNQPMZO.js";
105
107
  import {
106
108
  COMPACT_FLAG,
107
109
  EXIT_CODES,
@@ -146,6 +148,7 @@ import {
146
148
  regex,
147
149
  safeInteger,
148
150
  safeParse,
151
+ startsWith,
149
152
  stepOf,
150
153
  strictObject,
151
154
  string,
@@ -153,9 +156,10 @@ import {
153
156
  union,
154
157
  unknown,
155
158
  unwrap,
159
+ url,
156
160
  variant,
157
161
  writes
158
- } from "./chunk-64JCY7XJ.js";
162
+ } from "./chunk-RCGFSWZE.js";
159
163
  import {
160
164
  CliError,
161
165
  isCliError,
@@ -3952,7 +3956,7 @@ var commandsDocument = /* @__PURE__ */ __name((root, about) => ({
3952
3956
  exit_codes: { ok: 0, internal_error: GENERIC_FAILURE, ...EXIT_CODES }
3953
3957
  }), "commandsDocument");
3954
3958
 
3955
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/sends/guarded.js
3959
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/sends/guarded.js
3956
3960
  import { AsyncLocalStorage } from "node:async_hooks";
3957
3961
  var sentIds = /* @__PURE__ */ __name((typed2, message2) => ({
3958
3962
  messageId: message2.id,
@@ -4058,7 +4062,7 @@ var guardedWrite = /* @__PURE__ */ __name(async (guard, attempt, act, settled2 =
4058
4062
  }, "guardedWrite");
4059
4063
  var codeOf = /* @__PURE__ */ __name((error) => typeof error?.code === "string" ? error.code : "unknown", "codeOf");
4060
4064
 
4061
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/cli/result-fields.js
4065
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/cli/result-fields.js
4062
4066
  var named = /* @__PURE__ */ __name((work) => {
4063
4067
  try {
4064
4068
  return work();
@@ -4085,7 +4089,7 @@ var projectFields2 = /* @__PURE__ */ __name((value, fields) => named(() => {
4085
4089
  return projectFields(value, fields);
4086
4090
  }), "projectFields");
4087
4091
 
4088
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/cli/execution.js
4092
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/cli/execution.js
4089
4093
  var DEFAULT_COOPERATIVE_MS = 5 * 6e4;
4090
4094
  var DEFAULT_SYNC_MS = 15 * 6e4;
4091
4095
  var DEFAULT_OUTPUT_BYTES = 4 * 1024 * 1024;
@@ -4107,7 +4111,7 @@ var withAbort = /* @__PURE__ */ __name(async (signal, body) => {
4107
4111
  }
4108
4112
  }, "withAbort");
4109
4113
 
4110
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/sends/permissions.js
4114
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/sends/permissions.js
4111
4115
  var LEVELS = ["deny", "readonly", "ask", "allow"];
4112
4116
  var DANGEROUS = /* @__PURE__ */ new Set(["messages.delete", "bot.messages.delete", "topics.delete", "chats.delete", "chats.clear"]);
4113
4117
  var skipFlagFor = /* @__PURE__ */ __name((key) => DANGEROUS.has(key) ? "--allow-dangerous" : "--yes", "skipFlagFor");
@@ -4136,6 +4140,10 @@ var DEFAULT_PERMISSIONS = {
4136
4140
  "server.stop": "ask",
4137
4141
  "server.restart": "ask",
4138
4142
  "models.download": "ask",
4143
+ // NEED-2357.f: many MCP clients (ChatGPT) cannot answer a question, and a switch deletes nothing; kept as a key so a
4144
+ // profile can still deny it.
4145
+ "models.set": "allow",
4146
+ "models.add": "ask",
4139
4147
  "images.models.download": "ask",
4140
4148
  "schedule.run": "ask",
4141
4149
  "schedule.exec": "ask",
@@ -4503,7 +4511,7 @@ var assertRetentionEvidenceRead = /* @__PURE__ */ __name((permissions) => {
4503
4511
  }
4504
4512
  }, "assertRetentionEvidenceRead");
4505
4513
 
4506
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/cli/messenger/accounts.js
4514
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/cli/messenger/accounts.js
4507
4515
  import { existsSync, readdirSync, readFileSync } from "node:fs";
4508
4516
  import { join } from "node:path";
4509
4517
  var accountFileFor = /* @__PURE__ */ __name((app, profile, env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "accounts", `${profile}.json`), "accountFileFor");
@@ -4525,12 +4533,12 @@ var profilesWithAccounts = /* @__PURE__ */ __name((app, env) => {
4525
4533
  }, "profilesWithAccounts");
4526
4534
  var profilesHere = /* @__PURE__ */ __name((app, configured, env) => [.../* @__PURE__ */ new Set([...configured, ...profilesWithAccounts(app, env)])].sort(), "profilesHere");
4527
4535
 
4528
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/background/budget.js
4536
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/background/budget.js
4529
4537
  var DEADLINE_MARGIN_MS = 5e3;
4530
4538
  var DEADLINE_MARGIN_SHARE = 0.15;
4531
4539
  var deadlineMargin = /* @__PURE__ */ __name((deadline) => Math.max(DEADLINE_MARGIN_MS, deadline.ms * DEADLINE_MARGIN_SHARE), "deadlineMargin");
4532
4540
 
4533
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/output-detail.js
4541
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/output-detail.js
4534
4542
  var RARELY_SET = ["editedAt", "replyTo", "forwardedFrom", "reactions"];
4535
4543
  var BRIEF = ["locator", "chatTitle", "timestamp", "senderName", "excerpt", "score"];
4536
4544
  var SNAKE_BRIEF = ["ref", "chat_title", "timestamp", "sender_name", "excerpt", "score"];
@@ -4566,7 +4574,7 @@ var atDetail = /* @__PURE__ */ __name((value, detail = "default") => {
4566
4574
  return value;
4567
4575
  }, "atDetail");
4568
4576
 
4569
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/output.js
4577
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/output.js
4570
4578
  var refuseCompact = /* @__PURE__ */ __name(({ json, jsonl, fields, hitDetail }) => {
4571
4579
  const other = jsonl ? "--jsonl" : fields !== void 0 ? "--json=\u2026" : json ? "--json" : hitDetail === "brief" ? "--brief" : "";
4572
4580
  if (other)
@@ -4630,7 +4638,7 @@ var silence = /* @__PURE__ */ __name((renderer) => ({
4630
4638
  }, "warn")
4631
4639
  }), "silence");
4632
4640
 
4633
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/runs/log-events.js
4641
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/runs/log-events.js
4634
4642
  var CORE_LOG_EVENTS = defineLogEvents([
4635
4643
  { id: "provider.request", meaning: "a request went to the messenger", keys: ["operation"] },
4636
4644
  { id: "provider.response", meaning: "the messenger answered the request, or it failed", keys: ["operation"] },
@@ -4664,7 +4672,7 @@ var DIAGNOSTIC_LOG_EVENTS = {
4664
4672
  cache: "cache.answered"
4665
4673
  };
4666
4674
 
4667
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/runs/log-keys.js
4675
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/runs/log-keys.js
4668
4676
  var snake2 = /* @__PURE__ */ __name((key) => key.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snake");
4669
4677
  var camel = /* @__PURE__ */ __name((key) => key.replace(/_([a-z0-9])/g, (_, letter) => letter.toUpperCase()), "camel");
4670
4678
  var renamed = /* @__PURE__ */ __name((record2, name) => Object.fromEntries(Object.entries(record2).map(([key, value]) => [name(key), value])), "renamed");
@@ -4677,13 +4685,13 @@ var snakeLogger = /* @__PURE__ */ __name((logger) => ({
4677
4685
  error: /* @__PURE__ */ __name((event2, message2) => logger.error(logAttributes(event2), message2), "error")
4678
4686
  }), "snakeLogger");
4679
4687
 
4680
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/runs/run.js
4688
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/runs/run.js
4681
4689
  import { randomUUID } from "node:crypto";
4682
4690
  import { appendFileSync, mkdirSync, readdirSync as readdirSync2, readFileSync as readFileSync2, rmSync, statSync, writeFileSync } from "node:fs";
4683
4691
  import { userInfo } from "node:os";
4684
4692
  import { join as join2, sep } from "node:path";
4685
4693
 
4686
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/runs/log-attributes.js
4694
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/runs/log-attributes.js
4687
4695
  var diagnostic = {
4688
4696
  event: true,
4689
4697
  operation: true,
@@ -4753,7 +4761,7 @@ var LOG_ATTRIBUTES = [
4753
4761
  ...new Set([...Object.keys(diagnostic), ...Object.keys(send), ...background, ...crash, ...dropped].map((key) => Object.keys(logAttributes({ [key]: true }))[0]))
4754
4762
  ].sort();
4755
4763
 
4756
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/runs/run.js
4764
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/runs/run.js
4757
4765
  var KEEP_RUNS_FOR_DAYS = 30;
4758
4766
  var KEEP_SUCCESSFUL_RUNS_FOR_DAYS = 7;
4759
4767
  var RUNS_SIZE_LIMIT_MB = 200;
@@ -4869,8 +4877,8 @@ var runtime = /* @__PURE__ */ __name(() => {
4869
4877
  }, "runtime");
4870
4878
  var newRunId = /* @__PURE__ */ __name((startedAt, command) => {
4871
4879
  const stamp = startedAt.toISOString().replace(/[-:]/g, "").replace(/\.\d+Z$/, "Z");
4872
- const slug = command.replace(/[^a-z0-9]+/gi, "-").toLowerCase();
4873
- return `${stamp}-${slug}-${randomUUID().slice(0, 6)}`;
4880
+ const slug2 = command.replace(/[^a-z0-9]+/gi, "-").toLowerCase();
4881
+ return `${stamp}-${slug2}-${randomUUID().slice(0, 6)}`;
4874
4882
  }, "newRunId");
4875
4883
  var INDEX = "index.jsonl";
4876
4884
  var appendIndex = /* @__PURE__ */ __name((dayDir, written) => {
@@ -5106,7 +5114,7 @@ var metadataOf = /* @__PURE__ */ __name((parsed) => {
5106
5114
  };
5107
5115
  }, "metadataOf");
5108
5116
 
5109
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/runs/scope.js
5117
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/runs/scope.js
5110
5118
  import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
5111
5119
  import { randomBytes } from "node:crypto";
5112
5120
  var scopes = new AsyncLocalStorage2();
@@ -5124,7 +5132,7 @@ var currentRun = /* @__PURE__ */ __name(() => {
5124
5132
  return processScope;
5125
5133
  }, "currentRun");
5126
5134
  var inRun = /* @__PURE__ */ __name((scope, body) => scopes.run(scope, body), "inRun");
5127
- var typedCommand = /* @__PURE__ */ __name((tool, words, profile = currentRun().profile) => [tool, profile, words].filter((part) => part !== void 0 && part !== "").join(" "), "typedCommand");
5135
+ var typedCommand = /* @__PURE__ */ __name((tool, words2, profile = currentRun().profile) => [tool, profile, words2].filter((part) => part !== void 0 && part !== "").join(" "), "typedCommand");
5128
5136
  var useAsProcessRun = /* @__PURE__ */ __name((scope) => {
5129
5137
  processScope = scope;
5130
5138
  }, "useAsProcessRun");
@@ -5141,7 +5149,7 @@ var childTrace = /* @__PURE__ */ __name(() => {
5141
5149
  var attempts = new AsyncLocalStorage2();
5142
5150
  var withAttempt = /* @__PURE__ */ __name((attempt, work) => attempts.run(attempt, work), "withAttempt");
5143
5151
 
5144
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/runs/recording.js
5152
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/runs/recording.js
5145
5153
  var recorded = /* @__PURE__ */ __name(async (options, body) => {
5146
5154
  const recording = startRecording(options);
5147
5155
  try {
@@ -5333,7 +5341,7 @@ var partialOutcome = /* @__PURE__ */ __name((answer) => {
5333
5341
  return void 0;
5334
5342
  }, "partialOutcome");
5335
5343
 
5336
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/cli/deadline.js
5344
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/cli/deadline.js
5337
5345
  var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
5338
5346
  if (ms2 === void 0)
5339
5347
  return body();
@@ -5359,7 +5367,7 @@ var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
5359
5367
  }
5360
5368
  }, "withDeadline");
5361
5369
 
5362
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/cli/profile.js
5370
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/cli/profile.js
5363
5371
  var asFirstWord = /* @__PURE__ */ __name((profile) => `${profile} `, "asFirstWord");
5364
5372
  var PLAIN_NAME = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
5365
5373
  var isProfileName = /* @__PURE__ */ __name((word) => PLAIN_NAME.test(word), "isProfileName");
@@ -5385,12 +5393,12 @@ var takesProfile = /* @__PURE__ */ __name((command) => {
5385
5393
  return top !== void 0 && !PROFILE_FREE.has(top.name());
5386
5394
  }, "takesProfile");
5387
5395
  var commandWords = /* @__PURE__ */ __name((program2) => /* @__PURE__ */ new Set(["help", ...program2.commands.flatMap((command) => [command.name(), ...command.aliases()])]), "commandWords");
5388
- var liftProfile = /* @__PURE__ */ __name((argv, words, valued = /* @__PURE__ */ new Set()) => {
5396
+ var liftProfile = /* @__PURE__ */ __name((argv, words2, valued = /* @__PURE__ */ new Set()) => {
5389
5397
  let at2 = 0;
5390
5398
  while (argv[at2]?.startsWith("-") && argv[at2] !== "--")
5391
5399
  at2 += valued.has(argv[at2]) ? 2 : 1;
5392
5400
  const first2 = argv[at2];
5393
- if (first2 === void 0 || first2.startsWith("-") || words.has(first2))
5401
+ if (first2 === void 0 || first2.startsWith("-") || words2.has(first2))
5394
5402
  return { rest: argv };
5395
5403
  return { profile: first2, rest: [...argv.slice(0, at2), ...argv.slice(at2 + 1)] };
5396
5404
  }, "liftProfile");
@@ -5401,20 +5409,20 @@ var rootOf = /* @__PURE__ */ __name((command) => {
5401
5409
  return root;
5402
5410
  }, "rootOf");
5403
5411
 
5404
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/cli/settings.js
5412
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/cli/settings.js
5405
5413
  import { existsSync as existsSync4 } from "node:fs";
5406
5414
 
5407
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/models/endpoint.js
5415
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/models/endpoint.js
5408
5416
  var endpoint = /* @__PURE__ */ __name((value) => {
5409
5417
  try {
5410
- const url2 = new URL(value);
5411
- return ["https:", "http:"].includes(url2.protocol) && !url2.username && !url2.password && !url2.search && !url2.hash;
5418
+ const url3 = new URL(value);
5419
+ return ["https:", "http:"].includes(url3.protocol) && !url3.username && !url3.password && !url3.search && !url3.hash;
5412
5420
  } catch {
5413
5421
  return false;
5414
5422
  }
5415
5423
  }, "endpoint");
5416
5424
 
5417
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/models/settings.js
5425
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/models/settings.js
5418
5426
  var MODEL_FIELDS = ["provider", "model", "base_url"];
5419
5427
  var modelSettingsShape = record(pipe(string(), regex(/^[a-z][a-z0-9-]*$/)), strictObject({
5420
5428
  provider: optional(picklist(["off", "openai", "anthropic"])),
@@ -5483,13 +5491,13 @@ var modelTarget = /* @__PURE__ */ __name((settings, purpose) => {
5483
5491
  };
5484
5492
  }, "modelTarget");
5485
5493
 
5486
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/analysis/settings.js
5494
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/analysis/settings.js
5487
5495
  var model = pipe(string(), trim(), minLength(1), maxLength(200));
5488
- var url = pipe(string(), check(endpoint, "use an HTTP/S endpoint without credentials, query or fragment"));
5496
+ var url2 = pipe(string(), check(endpoint, "use an HTTP/S endpoint without credentials, query or fragment"));
5489
5497
  var AI_FIELDS = {
5490
5498
  embeddingProvider: optional(picklist(["local", "openai"])),
5491
5499
  embeddingModel: optional(model),
5492
- embeddingBaseUrl: optional(url),
5500
+ embeddingBaseUrl: optional(url2),
5493
5501
  embeddingDims: optional(pipe(number(), integer(), minValue(1), maxValue(65536))),
5494
5502
  models: optional(modelSettingsShape)
5495
5503
  };
@@ -5527,7 +5535,7 @@ var resolveAISettings = /* @__PURE__ */ __name((prefix, layers, env) => {
5527
5535
  };
5528
5536
  }, "resolveAISettings");
5529
5537
 
5530
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/domain/duration.js
5538
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/domain/duration.js
5531
5539
  var DURATION = /^(\d+)(ms|s|m|h|d)$/;
5532
5540
  var UNIT_MS = { ms: 1, s: 1e3, m: 6e4, h: 36e5, d: 864e5 };
5533
5541
  var parseDuration = /* @__PURE__ */ __name((value, source2) => {
@@ -5541,14 +5549,16 @@ var parseDuration = /* @__PURE__ */ __name((value, source2) => {
5541
5549
  return ms2;
5542
5550
  }, "parseDuration");
5543
5551
 
5544
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/embeddings/models.js
5552
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/embeddings/models.js
5545
5553
  var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/${repository}/resolve/${commit}/${name}`, "huggingFace");
5546
5554
  var e5 = huggingFace("Xenova/multilingual-e5-small", "761b726dd34fb83930e26aab4e9ac3899aa1fa78");
5555
+ var e5Large = huggingFace("Xenova/multilingual-e5-large", "00fc3aeb3dbb95842de2ac1961d33c6319acf57b");
5547
5556
  var gemma = huggingFace("onnx-community/embeddinggemma-300m-ONNX", "5090578d9565bb06545b4552f76e6bc2c93e4a66");
5548
5557
  var TEXT_MODELS = [
5549
5558
  {
5550
5559
  id: "e5-small",
5551
5560
  title: "multilingual-e5-small, 8-bit",
5561
+ size: "small",
5552
5562
  languages: "about 100 languages, Russian and English among them",
5553
5563
  licence: "MIT",
5554
5564
  dims: 384,
@@ -5582,6 +5592,7 @@ var TEXT_MODELS = [
5582
5592
  {
5583
5593
  id: "embeddinggemma",
5584
5594
  title: "EmbeddingGemma 300M, 4-bit",
5595
+ size: "medium",
5585
5596
  languages: "over 100 languages \u2014 the best of the two on chat, about seven times slower",
5586
5597
  licence: "Gemma Terms of Use",
5587
5598
  terms: "https://ai.google.dev/gemma/terms",
@@ -5618,16 +5629,113 @@ var TEXT_MODELS = [
5618
5629
  bytes: 1156830
5619
5630
  }
5620
5631
  ]
5632
+ },
5633
+ {
5634
+ id: "e5-large",
5635
+ title: "multilingual-e5-large, 8-bit",
5636
+ size: "large",
5637
+ languages: "about 100 languages, Russian and English among them \u2014 reads better than e5-small, several times slower",
5638
+ licence: "MIT",
5639
+ dims: 1024,
5640
+ maxTokens: 512,
5641
+ // 2026-11-07, one 8-thread session on the Ryzen AI 9 HX 470 while other benchmarks ran: 3.4 chunks/s.
5642
+ chunksPerSecond: 4,
5643
+ pooling: "mean",
5644
+ prefix: { query: "query: ", passage: "passage: " },
5645
+ onnx: "onnx/model_quantized.onnx",
5646
+ files: [
5647
+ {
5648
+ name: "onnx/model_quantized.onnx",
5649
+ url: e5Large("onnx/model_quantized.onnx"),
5650
+ sha256: "0a8d65db9a36f810ba5da15249f13145fcdc7890e6656f1fd38cd8b7c4db1fca",
5651
+ bytes: 561768762
5652
+ },
5653
+ {
5654
+ name: "tokenizer.json",
5655
+ url: e5Large("tokenizer.json"),
5656
+ sha256: "62c24cdc13d4c9952d63718d6c9fa4c287974249e16b7ade6d5a85e7bbb75626",
5657
+ bytes: 17082660
5658
+ },
5659
+ {
5660
+ name: "tokenizer_config.json",
5661
+ url: e5Large("tokenizer_config.json"),
5662
+ sha256: "efb5c0d09722e5fe59a462cd2a9976ee216d55b037597d997cd3fe833216da15",
5663
+ bytes: 418
5664
+ }
5665
+ ]
5621
5666
  }
5622
5667
  ];
5623
5668
  var DEFAULT_TEXT_MODEL = "e5-small";
5624
- var textModel = /* @__PURE__ */ __name((id6) => {
5625
- const found = TEXT_MODELS.find((model3) => model3.id === id6);
5669
+ var SECTION = "text_models";
5670
+ var slug = pipe(string(), regex(/^[a-z0-9][a-z0-9._-]{0,62}$/, "is not a model id: a-z, 0-9, . _ -"));
5671
+ var words = pipe(string(), trim(), minLength(1), maxLength(300));
5672
+ 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"));
5673
+ var modelFile = strictObject({
5674
+ name: fileName,
5675
+ url: pipe(string(), url(), startsWith("https://", "has to be an https address")),
5676
+ sha256: pipe(string(), regex(/^[0-9a-f]{64}$/, "has to be a sha256 in hex")),
5677
+ bytes: pipe(number(), integer(), minValue(1))
5678
+ });
5679
+ var CustomTextModelShape = pipe(strictObject({
5680
+ id: slug,
5681
+ title: words,
5682
+ languages: words,
5683
+ licence: words,
5684
+ terms: optional(pipe(string(), url())),
5685
+ dims: pipe(number(), integer(), minValue(1), maxValue(8192)),
5686
+ maxTokens: pipe(number(), integer(), minValue(16), maxValue(32768)),
5687
+ chunksPerSecond: optional(pipe(number(), minValue(0.01))),
5688
+ pooling: picklist(["mean", "sentence_embedding"]),
5689
+ prefix: strictObject({
5690
+ query: pipe(string(), maxLength(200)),
5691
+ passage: pipe(string(), maxLength(200))
5692
+ }),
5693
+ onnx: fileName,
5694
+ externalData: optional(fileName),
5695
+ files: pipe(array(modelFile), minLength(1), maxLength(16))
5696
+ }), check((model3) => !TEXT_MODELS.some((one) => one.id === model3.id), "takes the id of a model this version ships; choose another"), check((model3) => {
5697
+ const names = model3.files.map(({ name }) => name);
5698
+ return [model3.onnx, model3.externalData, "tokenizer.json", "tokenizer_config.json"].every((name) => name === void 0 || names.includes(name));
5699
+ }, "has to list its onnx file, its external data and tokenizer.json and tokenizer_config.json among files"));
5700
+ var TextModelsSection = strictObject({
5701
+ use: optional(slug),
5702
+ custom: optional(array(CustomTextModelShape))
5703
+ });
5704
+ var textModelsFile = /* @__PURE__ */ __name((env = process.env) => sharedConfigPath(storePath(env), env), "textModelsFile");
5705
+ var readTextModelsSection = /* @__PURE__ */ __name((env = process.env) => {
5706
+ const path2 = textModelsFile(env);
5707
+ const section = readSharedSection(path2, SECTION);
5708
+ if (section === void 0)
5709
+ return {};
5710
+ const checked = safeParse(TextModelsSection, section);
5711
+ if (!checked.success) {
5712
+ const issue = checked.issues[0];
5713
+ const at2 = issue ? getDotPath(issue) : null;
5714
+ throw new CliError("configuration_error", `${path2}: ${SECTION}${at2 ? `.${at2}` : ""} ${issue?.message ?? "is not valid"}`);
5715
+ }
5716
+ const ids = checked.output.custom?.map(({ id: id6 }) => id6) ?? [];
5717
+ const twice = ids.find((id6, at2) => ids.indexOf(id6) !== at2);
5718
+ if (twice)
5719
+ throw new CliError("configuration_error", `${path2}: ${SECTION}.custom names ${twice} twice`);
5720
+ return checked.output;
5721
+ }, "readTextModelsSection");
5722
+ var writeTextModelsSection = /* @__PURE__ */ __name((section, env = process.env) => writeSharedSection(textModelsFile(env), SECTION, section.use === void 0 && !section.custom?.length ? void 0 : section), "writeTextModelsSection");
5723
+ var textModels = /* @__PURE__ */ __name((env = process.env) => [
5724
+ ...TEXT_MODELS,
5725
+ ...(readTextModelsSection(env).custom ?? []).map((model3) => ({ ...model3, custom: true }))
5726
+ ], "textModels");
5727
+ var textModel = /* @__PURE__ */ __name((id6, env = process.env) => {
5728
+ const known = textModels(env);
5729
+ const found = known.find((model3) => model3.id === id6);
5626
5730
  if (!found) {
5627
- throw new CliError("validation_error", `no text model ${id6} \u2014 one of: ${TEXT_MODELS.map((model3) => model3.id).join(", ")}`);
5731
+ throw new CliError("validation_error", `no text model ${id6} \u2014 one of: ${known.map((model3) => model3.id).join(", ")}`);
5628
5732
  }
5629
5733
  return found;
5630
5734
  }, "textModel");
5735
+ var chosenTextModel = /* @__PURE__ */ __name((env = process.env) => {
5736
+ const use = readTextModelsSection(env).use;
5737
+ return use === void 0 ? { id: DEFAULT_TEXT_MODEL, from: "default" } : { id: use, from: "chosen" };
5738
+ }, "chosenTextModel");
5631
5739
  var mmarco = huggingFace("cross-encoder/mmarco-mMiniLMv2-L12-H384-v1", "1427fd652930e4ba29e8149678df786c240d8825");
5632
5740
  var bge = huggingFace("onnx-community/bge-reranker-v2-m3-ONNX", "6f5ff65298512715a1e669753bc754d2bc8f367b");
5633
5741
  var RERANK_MODELS = [
@@ -5697,10 +5805,13 @@ var rerankModel = /* @__PURE__ */ __name((id6) => {
5697
5805
  }
5698
5806
  return found;
5699
5807
  }, "rerankModel");
5700
- var vectorModelKey = /* @__PURE__ */ __name((model3) => `local:${model3.id}:${model3.dims}`, "vectorModelKey");
5808
+ var vectorModelKey = /* @__PURE__ */ __name((model3) => {
5809
+ const weights = model3.custom ? model3.files.find(({ name }) => name === model3.onnx)?.sha256.slice(0, 12) : void 0;
5810
+ return `local:${model3.id}${weights ? `@${weights}` : ""}:${model3.dims}`;
5811
+ }, "vectorModelKey");
5701
5812
  var meaningFloor = /* @__PURE__ */ __name((key) => key === "local:e5-small:384" ? 0.8 : 0, "meaningFloor");
5702
5813
 
5703
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/history-limits.js
5814
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/services/history-limits.js
5704
5815
  var HISTORY_MAX_DAYS = 1095;
5705
5816
  var DEFAULT_HISTORY_LIMITS = { dialogDays: 1095, groupDays: 365, groupMembersMax: 50 };
5706
5817
  var DAY_MS2 = 24 * 60 * 60 * 1e3;
@@ -5747,7 +5858,7 @@ var limitBatch = /* @__PURE__ */ __name((batch, shapes, included, limits, now =
5747
5858
  return { batch: { ...batch, messages }, skipped };
5748
5859
  }, "limitBatch");
5749
5860
 
5750
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/cli/bot/registry.js
5861
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/cli/bot/registry.js
5751
5862
  import { existsSync as existsSync2, readdirSync as readdirSync3, readFileSync as readFileSync3 } from "node:fs";
5752
5863
  import { join as join3 } from "node:path";
5753
5864
  var botsDirectory = /* @__PURE__ */ __name((app, env = process.env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "bots"), "botsDirectory");
@@ -5836,10 +5947,10 @@ var registryProfiles = /* @__PURE__ */ __name((app, env = process.env) => {
5836
5947
  return readdirSync3(directory, { withFileTypes: true }).filter((entry) => entry.isFile() && entry.name.endsWith(".json")).map((entry) => entry.name).map((name) => name.slice(0, -".json".length));
5837
5948
  }, "registryProfiles");
5838
5949
 
5839
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
5950
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
5840
5951
  import { readFileSync as readFileSync4 } from "node:fs";
5841
5952
 
5842
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/cli/config-repair.js
5953
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/cli/config-repair.js
5843
5954
  var REPAIR_WORDS = {
5844
5955
  byte_order_mark: "an invisible byte-order mark at the start",
5845
5956
  comment: "a comment, which JSON does not allow",
@@ -6080,7 +6191,7 @@ ${parts.join(",\n")}
6080
6191
  ${indent}${close}`;
6081
6192
  }, "serialise");
6082
6193
 
6083
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
6194
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
6084
6195
  var isNode = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
6085
6196
  var SECTIONS = ["personal", "bot"];
6086
6197
  var SHELL_SAFE = /^[A-Za-z0-9_.:@-]*$/;
@@ -6375,7 +6486,7 @@ var readConfigFile = /* @__PURE__ */ __name((path2) => {
6375
6486
  return "issue" in parsed ? { issue: publicIssue(parsed.issue) } : parsed;
6376
6487
  }, "readConfigFile");
6377
6488
 
6378
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/cli/default-config.js
6489
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/cli/default-config.js
6379
6490
  import { existsSync as existsSync3, linkSync, mkdirSync as mkdirSync2, mkdtempSync, rmSync as rmSync2, writeFileSync as writeFileSync2 } from "node:fs";
6380
6491
  import { dirname, join as join4 } from "node:path";
6381
6492
  var DEFAULT_CONFIG = {
@@ -6404,7 +6515,7 @@ function ensureDefaultConfig(path2, config = DEFAULT_CONFIG) {
6404
6515
  }
6405
6516
  __name(ensureDefaultConfig, "ensureDefaultConfig");
6406
6517
 
6407
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/cli/setting-defaults.js
6518
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/cli/setting-defaults.js
6408
6519
  var isNode2 = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
6409
6520
  var parentOf = /* @__PURE__ */ __name((config, key) => {
6410
6521
  const path2 = key.split(".");
@@ -6437,7 +6548,7 @@ var settingRows = /* @__PURE__ */ __name((raw, declared) => declared.map((settin
6437
6548
  };
6438
6549
  }), "settingRows");
6439
6550
 
6440
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/cli/settings.js
6551
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/cli/settings.js
6441
6552
  var DEFAULT_LIMIT = DEFAULT_CONFIG.defaults.limit;
6442
6553
  var DEFAULT_KEEP_RUNS_FOR_DAYS = DEFAULT_CONFIG.defaults.keep_runs_for_days;
6443
6554
  var DEFAULT_SENDS_PER_HOUR = DEFAULT_CONFIG.defaults.sends_per_hour;
@@ -6581,8 +6692,8 @@ var NoProfileHere = class extends CliError {
6581
6692
  this.app = app;
6582
6693
  }
6583
6694
  /** `words`: the command that was typed, without its arguments, so the suggestion runs as written. */
6584
- withoutSetup(words) {
6585
- const command = words ? `${this.app.command} personal ${words}` : `${this.app.command} personal \u2026`;
6695
+ withoutSetup(words2) {
6696
+ const command = words2 ? `${this.app.command} personal ${words2}` : `${this.app.command} personal \u2026`;
6586
6697
  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: [] });
6587
6698
  }
6588
6699
  };
@@ -6947,7 +7058,7 @@ var given = /* @__PURE__ */ __name((value) => {
6947
7058
  return trimmed === void 0 || trimmed === "" ? void 0 : trimmed;
6948
7059
  }, "given");
6949
7060
 
6950
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/cli/context.js
7061
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/cli/context.js
6951
7062
  var setExitCode = /* @__PURE__ */ __name((command, code) => {
6952
7063
  const slot = environmentOf(command).exit;
6953
7064
  if (slot)
@@ -7063,13 +7174,13 @@ var inCommandRun = /* @__PURE__ */ __name((command, body) => {
7063
7174
  return baseContext(command, (flags, options) => resolveSettings(flags, { ...options, needsProfile: false })).run(body);
7064
7175
  }, "inCommandRun");
7065
7176
  var commandPath = /* @__PURE__ */ __name((command) => {
7066
- const words = [];
7177
+ const words2 = [];
7067
7178
  for (let current2 = command; current2?.parent; current2 = current2.parent)
7068
- words.unshift(current2.name());
7069
- return words.join(" ");
7179
+ words2.unshift(current2.name());
7180
+ return words2.join(" ");
7070
7181
  }, "commandPath");
7071
7182
 
7072
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/cli/effects.js
7183
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/cli/effects.js
7073
7184
  var REMOTE_READ = { remote: "read", local: "read" };
7074
7185
  var FETCH = { remote: "read", local: "write" };
7075
7186
  var REMOTE_WRITE = { remote: "write", local: "write" };
@@ -7148,10 +7259,10 @@ var refuseStoreChange = /* @__PURE__ */ __name((app, env) => {
7148
7259
  throw readOnlyRefusal(lock, storeChangeRefusal(app));
7149
7260
  }, "refuseStoreChange");
7150
7261
  var pathOf2 = /* @__PURE__ */ __name((command) => {
7151
- const words = [];
7262
+ const words2 = [];
7152
7263
  for (let at2 = command; at2.parent; at2 = at2.parent)
7153
- words.unshift(at2.name());
7154
- return words;
7264
+ words2.unshift(at2.name());
7265
+ return words2;
7155
7266
  }, "pathOf");
7156
7267
  var changesMessenger = /* @__PURE__ */ __name((command) => {
7157
7268
  const { path: path2, effects, lifetime, reaches } = "path" in command ? command : { path: pathOf2(command), ...metaOf(command) };
@@ -7184,7 +7295,7 @@ var refuseUnderReadOnly = /* @__PURE__ */ __name((command, what) => {
7184
7295
  throw readOnlyRefusal(lock, what);
7185
7296
  }, "refuseUnderReadOnly");
7186
7297
 
7187
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/account.js
7298
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/account.js
7188
7299
  var account = strictObject({
7189
7300
  provider: text,
7190
7301
  id,
@@ -7194,7 +7305,7 @@ var account = strictObject({
7194
7305
  scope: optional(picklist(["personal", "work"]))
7195
7306
  });
7196
7307
 
7197
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/account-session.js
7308
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/account-session.js
7198
7309
  var accountSession = strictObject({
7199
7310
  current: boolean(),
7200
7311
  client: nullable(text),
@@ -7204,7 +7315,7 @@ var accountSession = strictObject({
7204
7315
  created_at: optional(nullable(time))
7205
7316
  });
7206
7317
 
7207
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/account-change.js
7318
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/account-change.js
7208
7319
  var accountChange = strictObject({ operation_id: id, account: omit(account, ["provider", "scope"]) });
7209
7320
  var endedAccountSessions = strictObject({ operation_id: id, sessions: array(accountSession) });
7210
7321
  var audience = picklist(["everyone", "contacts", "nobody"]);
@@ -7222,7 +7333,7 @@ var accountPrivacy = strictObject({
7222
7333
  });
7223
7334
  var accountPrivacyChange = strictObject({ operation_id: id, privacy: accountPrivacy });
7224
7335
 
7225
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/account-profile.js
7336
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/account-profile.js
7226
7337
  var accountProfile = strictObject({
7227
7338
  profile: id,
7228
7339
  current: boolean(),
@@ -7234,7 +7345,7 @@ var accountProfile = strictObject({
7234
7345
  bot: optional(literal(true))
7235
7346
  });
7236
7347
 
7237
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/counter-reading.js
7348
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/counter-reading.js
7238
7349
  var milliseconds = pipe(number(), minValue(0));
7239
7350
  var counterReading = strictObject({
7240
7351
  counter: picklist(["views", "reactions", "comments"]),
@@ -7246,7 +7357,7 @@ var counterReading = strictObject({
7246
7357
  });
7247
7358
  var selection = record(string(), unknown());
7248
7359
 
7249
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/admin-report.js
7360
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/admin-report.js
7250
7361
  var adminRow = strictObject({
7251
7362
  ref: reference,
7252
7363
  /** What `stats * evidence` takes: a person id, a stay or a message locator. */
@@ -7299,7 +7410,7 @@ var adminReport = strictObject({
7299
7410
  rows: array(adminRow)
7300
7411
  });
7301
7412
 
7302
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/task.js
7413
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/task.js
7303
7414
  var closeSuggestion = strictObject({
7304
7415
  as: picklist(["done", "dismissed"]),
7305
7416
  /** The agent's name. */
@@ -7361,7 +7472,7 @@ var task = strictObject({
7361
7472
  updated_at: optional(time)
7362
7473
  });
7363
7474
 
7364
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/agenda.js
7475
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/agenda.js
7365
7476
  var agendaChat = strictObject({
7366
7477
  chat: reference,
7367
7478
  title: nullable(text),
@@ -7431,11 +7542,11 @@ var agenda = strictObject({
7431
7542
  unlisted_categories: array(strictObject({ name: text, open_tasks: number() }))
7432
7543
  });
7433
7544
 
7434
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/analysis-consent.js
7545
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/analysis-consent.js
7435
7546
  var analysisConsent = strictObject({ chat: id, provider: text, at: time });
7436
7547
  var analysisConsentRevocation = strictObject({ revoked: boolean() });
7437
7548
 
7438
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/attachment.js
7549
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/attachment.js
7439
7550
  var attachment = strictObject({
7440
7551
  /** The message it came with, as a locator; absent inside that message. */
7441
7552
  message: optional(reference),
@@ -7473,7 +7584,7 @@ var attachment = strictObject({
7473
7584
  });
7474
7585
  var hitFile = strictObject({ position: count, kind: text, name: optional(text), size: optional(count) });
7475
7586
 
7476
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/batch-result.js
7587
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/batch-result.js
7477
7588
  var actionableError = objectWithRest({
7478
7589
  code: text,
7479
7590
  message: text,
@@ -7490,7 +7601,7 @@ var batchResult = strictObject({
7490
7601
  max_error_percent: count
7491
7602
  });
7492
7603
 
7493
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/extraction-report.js
7604
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/extraction-report.js
7494
7605
  var extractionItem = strictObject({
7495
7606
  ref: reference,
7496
7607
  attachment: count,
@@ -7523,7 +7634,7 @@ var extractionReport = strictObject({
7523
7634
  cursor: optional(text)
7524
7635
  });
7525
7636
 
7526
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/attachment-results.js
7637
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/attachment-results.js
7527
7638
  var fingerprint = pipe(text, regex(/^[a-f0-9]{64}$/));
7528
7639
  var attachmentBytes = strictObject({
7529
7640
  ref: reference,
@@ -7551,7 +7662,7 @@ var attachmentTextChange = strictObject({
7551
7662
  replaced: nullable(picklist(["extracted", "agent"]))
7552
7663
  });
7553
7664
 
7554
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/chart.js
7665
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/chart.js
7555
7666
  var chart = strictObject({
7556
7667
  version: literal(1),
7557
7668
  kind: picklist(["bar", "line", "grouped-bar"]),
@@ -7566,7 +7677,7 @@ var chart = strictObject({
7566
7677
  file: optional(strictObject({ path: text, format: picklist(["svg", "png"]), width: count, height: count }))
7567
7678
  });
7568
7679
 
7569
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/member.js
7680
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/member.js
7570
7681
  var member = strictObject({
7571
7682
  id,
7572
7683
  name: nullable(text),
@@ -7589,7 +7700,7 @@ var member = strictObject({
7589
7700
  check: optional(record(string(), unknown()))
7590
7701
  });
7591
7702
 
7592
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/chat.js
7703
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/chat.js
7593
7704
  var setting = optional(nullable(boolean()));
7594
7705
  var chat = strictObject({
7595
7706
  ref: reference,
@@ -7630,7 +7741,7 @@ var chat = strictObject({
7630
7741
  members: optional(array(member))
7631
7742
  });
7632
7743
 
7633
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/folder.js
7744
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/folder.js
7634
7745
  var named2 = strictObject({
7635
7746
  id,
7636
7747
  title: nullable(text),
@@ -7653,7 +7764,7 @@ var folder = strictObject({
7653
7764
  excluded_chats: optional(array(named2))
7654
7765
  });
7655
7766
 
7656
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/invite-link.js
7767
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/invite-link.js
7657
7768
  var inviteLink = strictObject({
7658
7769
  link: text,
7659
7770
  /** Who joins by it asks first, and an admin lets them in. */
@@ -7669,7 +7780,7 @@ var inviteLink = strictObject({
7669
7780
  joined_count: optional(count)
7670
7781
  });
7671
7782
 
7672
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/chat-admin.js
7783
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/chat-admin.js
7673
7784
  var operated = { operation_id: id, chat_id: id };
7674
7785
  var group = strictObject({
7675
7786
  ...omit(chat, ["ref", "provider", "account", "invite_link", "members"]).entries,
@@ -7749,7 +7860,7 @@ var chatFolderOrder = strictObject({
7749
7860
  folders: array(strictObject({ id, title: text }))
7750
7861
  });
7751
7862
 
7752
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/chat-change.js
7863
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/chat-change.js
7753
7864
  var operated2 = { operation_id: id, chat_id: id };
7754
7865
  var chatRemoval = strictObject(operated2);
7755
7866
  var chatMuting = strictObject({
@@ -7760,7 +7871,7 @@ var chatArchive = strictObject({ ...operated2, archived: boolean() });
7760
7871
  var chatPin = strictObject({ ...operated2, pinned: boolean() });
7761
7872
  var chatUnread = strictObject({ ...operated2, unread: literal(true) });
7762
7873
 
7763
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/chat-event.js
7874
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/chat-event.js
7764
7875
  var who = strictObject({ id: nullable(id), name: nullable(text), username: optional(nullable(text)) });
7765
7876
  var chatEvent = strictObject({
7766
7877
  chat_id: id,
@@ -7777,7 +7888,7 @@ var chatEvent = strictObject({
7777
7888
  before: optional(strictObject({ name: nullable(text), username: nullable(text) }))
7778
7889
  });
7779
7890
 
7780
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/chat-metadata.js
7891
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/chat-metadata.js
7781
7892
  var chatMetadata = strictObject({
7782
7893
  chat_id: id,
7783
7894
  title: nullable(text),
@@ -7792,7 +7903,7 @@ var chatMetadataRefresh = strictObject({
7792
7903
  has_more: boolean()
7793
7904
  });
7794
7905
 
7795
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/chat-moderation.js
7906
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/chat-moderation.js
7796
7907
  var action = picklist(["report", "delete", "remove"]);
7797
7908
  var level = picklist(["deny", "readonly", "ask", "allow"]);
7798
7909
  var chatRules = strictObject({
@@ -7829,7 +7940,7 @@ var chatModeration = strictObject({
7829
7940
  }))
7830
7941
  });
7831
7942
 
7832
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/chat-stats.js
7943
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/chat-stats.js
7833
7944
  var optionalCount = optional(count);
7834
7945
  var minutes = nullable(number());
7835
7946
  var chatStats = strictObject({
@@ -7903,7 +8014,7 @@ var taskStats = strictObject({
7903
8014
  }))
7904
8015
  });
7905
8016
 
7906
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/chat-tracking.js
8017
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/chat-tracking.js
7907
8018
  var memberCount = strictObject({
7908
8019
  day: pipe(text, isoDate()),
7909
8020
  participants: nullable(count),
@@ -7926,7 +8037,7 @@ var chatTracking = strictObject({
7926
8037
  tracked: boolean()
7927
8038
  });
7928
8039
 
7929
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/contact-read.js
8040
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/contact-read.js
7930
8041
  var contactLookup = strictObject({ id, name: nullable(text), username: nullable(text) });
7931
8042
  var contactSync = strictObject({ added: count, changed: count, known: count });
7932
8043
  var profileFields = {
@@ -7964,7 +8075,7 @@ var profileFields = {
7964
8075
  }))
7965
8076
  };
7966
8077
 
7967
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/contact.js
8078
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/contact.js
7968
8079
  var contact = strictObject({
7969
8080
  ref: reference,
7970
8081
  id,
@@ -7995,7 +8106,7 @@ var contact = strictObject({
7995
8106
  notes: optional(array(strictObject({ id, text, revision: count, created_at: time, updated_at: time })))
7996
8107
  });
7997
8108
 
7998
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/botcheck/reasons.js
8109
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/botcheck/reasons.js
7999
8110
  var WEIGHTS = {
8000
8111
  bot: 3,
8001
8112
  scam: 3,
@@ -8020,7 +8131,7 @@ var LINK = /https?:\/\/|t\.me\/|www\./i;
8020
8131
  var DIGITS = /\d{5,}/;
8021
8132
  var oddName = /* @__PURE__ */ __name((name) => !name?.trim() || DIGITS.test(name) || LINK.test(name), "oddName");
8022
8133
 
8023
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/contact-activity.js
8134
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/contact-activity.js
8024
8135
  var linkedIdentity = strictObject({
8025
8136
  provider: text,
8026
8137
  id,
@@ -8062,7 +8173,7 @@ var contactCheck = strictObject({
8062
8173
  checked_at: time
8063
8174
  });
8064
8175
 
8065
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/message.js
8176
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/message.js
8066
8177
  var quoted = strictObject({
8067
8178
  id,
8068
8179
  sender_id: nullable(id),
@@ -8181,7 +8292,7 @@ var message = strictObject({
8181
8292
  provider_metadata: providerMetadata
8182
8293
  });
8183
8294
 
8184
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/contact-context.js
8295
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/contact-context.js
8185
8296
  var contextPerson = strictObject({ ...linkedPerson.entries, provider: text, id });
8186
8297
  var contextMessage = strictObject({
8187
8298
  locator: reference,
@@ -8381,7 +8492,7 @@ var contactPreparation = strictObject({
8381
8492
  })
8382
8493
  });
8383
8494
 
8384
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/contact-note.js
8495
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/contact-note.js
8385
8496
  var contactNote = strictObject({
8386
8497
  id,
8387
8498
  /** The contact, as a `contact:` reference. */
@@ -8393,13 +8504,13 @@ var contactNote = strictObject({
8393
8504
  updated_at: time
8394
8505
  });
8395
8506
 
8396
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/contact-write.js
8507
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/contact-write.js
8397
8508
  var addressBookPerson = strictObject({ id, name: nullable(text), username: nullable(text) });
8398
8509
  var contactUpdate = strictObject({ operation_id: id, person: addressBookPerson });
8399
8510
  var contactStateChange = strictObject({ operation_id: id, person_id: id });
8400
8511
  var contactImport = strictObject({ operation_id: id, sent: count, recognised: array(addressBookPerson) });
8401
8512
 
8402
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/conversation.js
8513
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/conversation.js
8403
8514
  var conversation = strictObject({
8404
8515
  id,
8405
8516
  chat: reference,
@@ -8414,7 +8525,7 @@ var conversation = strictObject({
8414
8525
  rules_version: count
8415
8526
  });
8416
8527
 
8417
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/conversation-preparation.js
8528
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/conversation-preparation.js
8418
8529
  var conversationBuild = strictObject({
8419
8530
  chat: id,
8420
8531
  messages: count,
@@ -8439,7 +8550,7 @@ var catchUpPreparation = strictObject({
8439
8550
  prepared: optional(conversationPreparation)
8440
8551
  });
8441
8552
 
8442
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/conversation-results.js
8553
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/conversation-results.js
8443
8554
  var conversationDetails = union([
8444
8555
  strictObject({ ...conversation.entries, messages: array(message) }),
8445
8556
  message
@@ -8529,7 +8640,7 @@ var conversationHit = strictObject({
8529
8640
  stale: boolean()
8530
8641
  });
8531
8642
 
8532
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/counters.js
8643
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/counters.js
8533
8644
  var counters = strictObject({
8534
8645
  cutoff: time,
8535
8646
  max_age_ms: milliseconds,
@@ -8559,7 +8670,7 @@ var counterRefresh = strictObject({
8559
8670
  complete: optional(boolean())
8560
8671
  });
8561
8672
 
8562
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/deal.js
8673
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/deal.js
8563
8674
  var nullableText = nullable(text);
8564
8675
  var party = strictObject({ ref: reference, name: nullableText, owner: boolean() });
8565
8676
  var outcome = picklist(["open", "won", "lost"]);
@@ -8623,7 +8734,10 @@ var pipelineStage = strictObject({
8623
8734
  open: count,
8624
8735
  /** With a funnel: rows that got this far, and the share of them that reached the next stage. */
8625
8736
  reached: optional(count),
8626
- conversion: optional(nullable(number()))
8737
+ conversion: optional(nullable(number())),
8738
+ /** With a funnel: rows standing in it now, and their sum per currency, never converted. */
8739
+ items: optional(count),
8740
+ amounts: optional(array(strictObject({ amount: text, currency: text, items: count })))
8627
8741
  });
8628
8742
  var pipeline = strictObject({
8629
8743
  id,
@@ -8646,7 +8760,7 @@ var stage = strictObject({
8646
8760
  untrusted
8647
8761
  });
8648
8762
 
8649
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/document.js
8763
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/document.js
8650
8764
  var document = strictObject({
8651
8765
  ref: reference,
8652
8766
  id,
@@ -8661,7 +8775,7 @@ var document = strictObject({
8661
8775
  owners: optional(array(text))
8662
8776
  });
8663
8777
 
8664
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/document-link.js
8778
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/document-link.js
8665
8779
  var documentLink = strictObject({
8666
8780
  ref: reference,
8667
8781
  url: text,
@@ -8672,7 +8786,7 @@ var documentLink = strictObject({
8672
8786
  sender: strictObject({ id: nullable(id), name: nullable(text) })
8673
8787
  });
8674
8788
 
8675
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/evidence.js
8789
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/evidence.js
8676
8790
  var evidenceMessage = pick(message, ["ref", "chat_title", "timestamp", "sender_name", "text"]);
8677
8791
  var contribution = strictObject({
8678
8792
  message: evidenceMessage,
@@ -8702,7 +8816,7 @@ var retentionStay = strictObject({
8702
8816
  });
8703
8817
  var evidence = union([contribution, retentionStay]);
8704
8818
 
8705
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/fact.js
8819
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/fact.js
8706
8820
  var fact = strictObject({
8707
8821
  ref: reference,
8708
8822
  id,
@@ -8732,7 +8846,7 @@ var fact = strictObject({
8732
8846
  updated_at: time
8733
8847
  });
8734
8848
 
8735
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/hit.js
8849
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/hit.js
8736
8850
  var hit = strictObject({
8737
8851
  kind: picklist(["message", "mail", "note", "document", "event", "meeting", "deal", "lead"]),
8738
8852
  ref: reference,
@@ -8770,7 +8884,7 @@ var hit = strictObject({
8770
8884
  untrusted
8771
8885
  });
8772
8886
 
8773
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/identity.js
8887
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/identity.js
8774
8888
  var identity = strictObject({
8775
8889
  ref: reference,
8776
8890
  provider: text,
@@ -8783,7 +8897,7 @@ var identity = strictObject({
8783
8897
  person: optional(nullable(reference))
8784
8898
  });
8785
8899
 
8786
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/image-embedding.js
8900
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/image-embedding.js
8787
8901
  var imageEmbedding = strictObject({
8788
8902
  model: text,
8789
8903
  embedded: count,
@@ -8792,13 +8906,13 @@ var imageEmbedding = strictObject({
8792
8906
  more: boolean()
8793
8907
  });
8794
8908
 
8795
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
8909
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
8796
8910
  import { spawn } from "node:child_process";
8797
8911
  import { randomBytes as randomBytes2 } from "node:crypto";
8798
8912
  import { closeSync, existsSync as existsSync5, mkdirSync as mkdirSync3, openSync, readdirSync as readdirSync4, readFileSync as readFileSync5, realpathSync, rmSync as rmSync3 } from "node:fs";
8799
8913
  import { dirname as dirname2, join as join5 } from "node:path";
8800
8914
 
8801
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/background/checkpoints.js
8915
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/background/checkpoints.js
8802
8916
  var progressOf = /* @__PURE__ */ __name((input) => {
8803
8917
  const total = input.total ?? null;
8804
8918
  const updated = input.updatedAt ?? null;
@@ -8814,7 +8928,7 @@ var progressOf = /* @__PURE__ */ __name((input) => {
8814
8928
  };
8815
8929
  }, "progressOf");
8816
8930
 
8817
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/runs/record-log.js
8931
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/runs/record-log.js
8818
8932
  var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) => {
8819
8933
  const run = currentRun();
8820
8934
  const trace = traceId ?? run.traceId;
@@ -8828,7 +8942,7 @@ var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) =
8828
8942
  }));
8829
8943
  }, "recordLogFor");
8830
8944
 
8831
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
8945
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
8832
8946
  var JOB_STATES = ["running", "done", "partial", "failed", "cancelled", "died"];
8833
8947
  var spawnDetached = /* @__PURE__ */ __name((argv, env, log) => {
8834
8948
  const out = openSync(log, "a", 384);
@@ -8983,7 +9097,7 @@ var startArchiveJob = /* @__PURE__ */ __name((app, env, profile, input, spawnJob
8983
9097
  return { job: id6, pid, chat: input.chat, log };
8984
9098
  }, "startArchiveJob");
8985
9099
 
8986
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/job.js
9100
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/job.js
8987
9101
  var problem = strictObject({ code: text, message: text });
8988
9102
  var job = strictObject({
8989
9103
  id,
@@ -9006,7 +9120,7 @@ var job = strictObject({
9006
9120
  error: optional(problem)
9007
9121
  });
9008
9122
 
9009
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/join-request.js
9123
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/join-request.js
9010
9124
  var joinRequest = strictObject({
9011
9125
  person_id: id,
9012
9126
  name: nullable(text),
@@ -9017,7 +9131,7 @@ var joinRequest = strictObject({
9017
9131
  about: optional(text)
9018
9132
  });
9019
9133
 
9020
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/list-results.js
9134
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/list-results.js
9021
9135
  var botProfile = strictObject({
9022
9136
  name: text,
9023
9137
  token: text,
@@ -9110,7 +9224,7 @@ var stickerInventory = strictObject({
9110
9224
  url: optional(nullable(text))
9111
9225
  });
9112
9226
 
9113
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/poll-vote.js
9227
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/poll-vote.js
9114
9228
  var pollVote = strictObject({
9115
9229
  person_id: id,
9116
9230
  name: nullable(text),
@@ -9120,7 +9234,7 @@ var pollVote = strictObject({
9120
9234
  voted_at: time
9121
9235
  });
9122
9236
 
9123
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/listener.js
9237
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/listener.js
9124
9238
  var reactions = unwrap(unwrap(message.entries.reactions));
9125
9239
  var observation = strictObject({
9126
9240
  value: pipe(number(), minValue(0)),
@@ -9162,7 +9276,7 @@ var serveSummary = strictObject({
9162
9276
  tasks: optional(strictObject({ added: count, closed: count, review: count }))
9163
9277
  });
9164
9278
 
9165
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/mail-counts.js
9279
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/mail-counts.js
9166
9280
  var mailCounts = strictObject({
9167
9281
  by: picklist(["day", "week", "sender"]),
9168
9282
  received: count,
@@ -9177,7 +9291,7 @@ var mailCounts = strictObject({
9177
9291
  }))
9178
9292
  });
9179
9293
 
9180
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/mail-findings.js
9294
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/mail-findings.js
9181
9295
  var evidence2 = strictObject({ reference, fingerprint: text });
9182
9296
  var base = { id, evidence: array(evidence2) };
9183
9297
  var finding = variant("kind", [
@@ -9321,7 +9435,7 @@ var mailFindings = strictObject({
9321
9435
  receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome2) }))
9322
9436
  });
9323
9437
 
9324
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/media-archive.js
9438
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/media-archive.js
9325
9439
  var mediaArchive = strictObject({
9326
9440
  directory: text,
9327
9441
  chats: count,
@@ -9353,7 +9467,7 @@ var mediaArchiveTimer = union([
9353
9467
  strictObject({ ...timer, action: picklist(["install", "start", "stop", "uninstall"]) })
9354
9468
  ]);
9355
9469
 
9356
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation-parts.js
9470
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation-parts.js
9357
9471
  var preparationId = pipe(string(), minLength(1));
9358
9472
  var preparationCount = pipe(number(), integer(), minValue(0));
9359
9473
  var preparationTime = nullable(isoTime);
@@ -9445,7 +9559,7 @@ var preparationMeeting = strictObject({
9445
9559
  updated_at: isoTime
9446
9560
  });
9447
9561
 
9448
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/meeting-evidence.js
9562
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/meeting-evidence.js
9449
9563
  var meetingEvidence = preparationEvidence;
9450
9564
  var meetingPersonContext = strictObject({
9451
9565
  person: strictObject({ uid: string(), name: nullable(string()) }),
@@ -9467,7 +9581,7 @@ var meetingPersonContext = strictObject({
9467
9581
  })
9468
9582
  });
9469
9583
 
9470
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/meeting-findings.js
9584
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/meeting-findings.js
9471
9585
  var evidence3 = strictObject({ reference, fingerprint: text });
9472
9586
  var base2 = { id, project: reference, evidence: array(evidence3) };
9473
9587
  var finding2 = variant("kind", [
@@ -9505,7 +9619,7 @@ var meetingFindings = strictObject({
9505
9619
  receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome3) }))
9506
9620
  });
9507
9621
 
9508
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/meeting-communications.js
9622
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/meeting-communications.js
9509
9623
  var communicationCoverage = strictObject({
9510
9624
  read_usage: strictObject({ reads: preparationCount, charged_bytes: preparationCount, reserved_bytes: preparationCount, remaining_bytes: preparationCount }),
9511
9625
  query: string(),
@@ -9550,7 +9664,7 @@ var preparationCommunications = strictObject({
9550
9664
  }))
9551
9665
  });
9552
9666
 
9553
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation.js
9667
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation.js
9554
9668
  var meetingPreparation = strictObject({
9555
9669
  communications: optional(preparationCommunications),
9556
9670
  schema_version: literal(1),
@@ -9663,7 +9777,7 @@ var meetingPreparation = strictObject({
9663
9777
  })
9664
9778
  });
9665
9779
 
9666
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/meeting-project-candidates.js
9780
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/meeting-project-candidates.js
9667
9781
  var count4 = pipe(number(), integer(), minValue(0));
9668
9782
  var id3 = pipe(string(), minLength(1));
9669
9783
  var text3 = string();
@@ -9727,7 +9841,7 @@ var meetingProjectCandidates = strictObject({
9727
9841
  })
9728
9842
  });
9729
9843
 
9730
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/meeting-series-inventory.js
9844
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/meeting-series-inventory.js
9731
9845
  var count5 = pipe(number(), integer(), minValue(0));
9732
9846
  var id4 = pipe(string(), minLength(1), maxLength(1e3));
9733
9847
  var meetingSeriesInventory = strictObject({
@@ -9757,7 +9871,7 @@ var meetingSeriesInventory = strictObject({
9757
9871
  })
9758
9872
  });
9759
9873
 
9760
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/meeting-task-proposal.js
9874
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/meeting-task-proposal.js
9761
9875
  var text4 = string();
9762
9876
  var id5 = pipe(number(), integer(), minValue(1));
9763
9877
  var revision = picklist(["current", "superseded"]);
@@ -9774,7 +9888,7 @@ var meetingTaskProposal = strictObject({
9774
9888
  persistence: literal("proposal-only")
9775
9889
  });
9776
9890
 
9777
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/memory.js
9891
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/memory.js
9778
9892
  var memory = strictObject({
9779
9893
  ref: reference,
9780
9894
  id,
@@ -9801,7 +9915,7 @@ var memory = strictObject({
9801
9915
  updated_at: time
9802
9916
  });
9803
9917
 
9804
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/mention.js
9918
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/mention.js
9805
9919
  var kind = picklist(["phone", "email", "url", "document", "person-name", "place"]);
9806
9920
  var status = picklist(["found", "linked", "dismissed"]);
9807
9921
  var mention = strictObject({
@@ -9844,13 +9958,13 @@ var mentionRebuild = strictObject({
9844
9958
  mentions: count
9845
9959
  });
9846
9960
 
9847
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/message-change.js
9961
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/message-change.js
9848
9962
  var operated3 = { operation_id: id, chat_id: id };
9849
9963
  var messagePin = strictObject({ ...operated3, message_id: id, pinned: boolean() });
9850
9964
  var messageStar = strictObject({ ...operated3, message_id: id, starred: boolean() });
9851
9965
  var messageDeletion = strictObject({ ...operated3, deleted: array(id), for_everyone: boolean() });
9852
9966
 
9853
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/message-read.js
9967
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/message-read.js
9854
9968
  var messageTranscript = strictObject({
9855
9969
  message_id: id,
9856
9970
  text,
@@ -9908,7 +10022,7 @@ var evidencePacket = strictObject({
9908
10022
  }))
9909
10023
  });
9910
10024
 
9911
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/message-context.js
10025
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/message-context.js
9912
10026
  var messageThread = strictObject({
9913
10027
  ref: reference,
9914
10028
  chat: id,
@@ -9925,7 +10039,7 @@ var messageThread = strictObject({
9925
10039
  });
9926
10040
  var messageContext = union([message, messageThread]);
9927
10041
 
9928
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/message-counts.js
10042
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/message-counts.js
9929
10043
  var messageCounts = strictObject({
9930
10044
  by: picklist(["chat", "sender", "day", "hour"]),
9931
10045
  total: count,
@@ -9938,7 +10052,7 @@ var messageCounts = strictObject({
9938
10052
  }))
9939
10053
  });
9940
10054
 
9941
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/message-link.js
10055
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/message-link.js
9942
10056
  var messageLink = strictObject({
9943
10057
  ref: reference,
9944
10058
  url: nullable(text),
@@ -9955,7 +10069,7 @@ var messageLink = strictObject({
9955
10069
  })))
9956
10070
  });
9957
10071
 
9958
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/message-transfer.js
10072
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/message-transfer.js
9959
10073
  var savedMessageFile = strictObject({
9960
10074
  kind: text,
9961
10075
  path: text,
@@ -10042,7 +10156,7 @@ var messageSyncAll = strictObject({
10042
10156
  var messageSyncStarted = strictObject({ job: id, pid: count, chat: text, log: text });
10043
10157
  var messageSync = union([messageSyncEstimate, messageSyncChat, messageSyncAll, messageSyncStarted]);
10044
10158
 
10045
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/message-write.js
10159
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/message-write.js
10046
10160
  var messageWrite = strictObject({
10047
10161
  operation_id: id,
10048
10162
  message,
@@ -10057,7 +10171,7 @@ var draftWrite = strictObject({
10057
10171
  });
10058
10172
  var messageSend = union([messageWrite, draftWrite]);
10059
10173
 
10060
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/model.js
10174
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/model.js
10061
10175
  var model2 = strictObject({
10062
10176
  id,
10063
10177
  kind: picklist(["audio", "text", "image", "reranker"]),
@@ -10065,16 +10179,34 @@ var model2 = strictObject({
10065
10179
  /** Which languages it reads, in words. */
10066
10180
  languages: text,
10067
10181
  licence: optional(text),
10182
+ /** A text model's licence terms to accept with `models download --accept-terms`. */
10183
+ terms: optional(text),
10184
+ /** A text model's size next to the others: small is fastest, large reads best. */
10185
+ size: optional(picklist(["small", "medium", "large"])),
10186
+ /** A text model's vector length. */
10187
+ dims: optional(count),
10188
+ /** About how many chunks a second a text model embeds here, when measured. */
10189
+ chunks_per_second: optional(number()),
10190
+ /** A text model the owner added with `models add`. */
10191
+ custom: optional(boolean()),
10068
10192
  /** What its files take on disk once downloaded. */
10069
10193
  size_bytes: count,
10070
10194
  downloaded: boolean(),
10071
- /** The one used when no model is named. */
10195
+ /** The one used when no model is named: for text, the one `models use` chose. */
10072
10196
  default: boolean(),
10073
10197
  /** The folder its files are in once downloaded, so an agent can place them by hand. */
10074
10198
  path: text
10075
10199
  });
10200
+ var chosenModel = strictObject({
10201
+ ...model2.entries,
10202
+ previous: id,
10203
+ /** Chunk texts the previous model has vectors for and this one has not; `null` when no store is there to count. */
10204
+ to_embed: nullable(count),
10205
+ /** Embedding time alone at the model's speed, done a part per sync; `null` when the speed or the count is unknown. */
10206
+ estimate_seconds: nullable(count)
10207
+ });
10076
10208
 
10077
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/model-key.js
10209
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/model-key.js
10078
10210
  var source = picklist(["environment", "keyring", "file"]);
10079
10211
  var modelKey = strictObject({
10080
10212
  provider: text,
@@ -10084,7 +10216,7 @@ var modelKey = strictObject({
10084
10216
  var storedModelKey = strictObject({ ...omit(modelKey, ["removed"]).entries, stored: source });
10085
10217
  var removedModelKey = strictObject({ ...omit(modelKey, ["stored"]).entries, removed: array(source) });
10086
10218
 
10087
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/note.js
10219
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/note.js
10088
10220
  var link = {
10089
10221
  target_text: nullable(text),
10090
10222
  kind: text,
@@ -10125,7 +10257,7 @@ var note = strictObject({
10125
10257
  backlinks: optional(array(strictObject({ from: reference, ...link })))
10126
10258
  });
10127
10259
 
10128
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/official-stats.js
10260
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/official-stats.js
10129
10261
  var versus = strictObject({ current: number(), previous: number() });
10130
10262
  var person = { person_ref: reference, name: nullable(text) };
10131
10263
  var graph = strictObject({
@@ -10159,14 +10291,14 @@ var officialStats = strictObject({
10159
10291
  graphs: record(string(), union([graph, strictObject({ error: text })]))
10160
10292
  });
10161
10293
 
10162
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/person.js
10294
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/person.js
10163
10295
  var person2 = strictObject({
10164
10296
  ref: reference,
10165
10297
  name: nullable(text),
10166
10298
  identities: optional(array(identity))
10167
10299
  });
10168
10300
 
10169
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/poll.js
10301
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/poll.js
10170
10302
  var poll = strictObject({
10171
10303
  chat_id: id,
10172
10304
  message_id: id,
@@ -10182,11 +10314,11 @@ var poll = strictObject({
10182
10314
  });
10183
10315
  var pollChange = strictObject({ operation_id: id, poll });
10184
10316
 
10185
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/private-contact.js
10317
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/private-contact.js
10186
10318
  var contactAlias = strictObject({ person_id: id, alias: nullable(text) });
10187
10319
  var contactNoteRemoval = strictObject({ id, person_id: id, removed: boolean() });
10188
10320
 
10189
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/ranking.js
10321
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/ranking.js
10190
10322
  var figures = record(string(), number());
10191
10323
  var freshness = picklist(["fresh", "stale", "partial", "unknown"]);
10192
10324
  var rankingRow = strictObject({
@@ -10233,7 +10365,7 @@ var ranking = strictObject({
10233
10365
  rows: array(rankingRow)
10234
10366
  });
10235
10367
 
10236
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/reaction.js
10368
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/reaction.js
10237
10369
  var reaction = strictObject({
10238
10370
  person: strictObject({ id, name: nullable(text), username: nullable(text) }),
10239
10371
  /** The emoji, or `custom:<id>` for a custom one. */
@@ -10241,7 +10373,7 @@ var reaction = strictObject({
10241
10373
  reacted_at: time
10242
10374
  });
10243
10375
 
10244
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/reaction-change.js
10376
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/reaction-change.js
10245
10377
  var reactionChange = strictObject({
10246
10378
  operation_id: id,
10247
10379
  chat_id: id,
@@ -10249,7 +10381,7 @@ var reactionChange = strictObject({
10249
10381
  reaction: nullable(text)
10250
10382
  });
10251
10383
 
10252
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/recipient.js
10384
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/recipient.js
10253
10385
  var recipient = strictObject({ id, title: nullable(text), partner_id: optional(id), added_at: time });
10254
10386
  var recipientAdded = strictObject({ id, title: nullable(text), added: boolean() });
10255
10387
  var recipientRemoved = strictObject({ id, title: nullable(text), removed: boolean() });
@@ -10260,7 +10392,7 @@ var recipientChange = strictObject({
10260
10392
  ...partial(recipientOff).entries
10261
10393
  });
10262
10394
 
10263
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/recorded-run.js
10395
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/recorded-run.js
10264
10396
  var events = array(record(string(), unknown()));
10265
10397
  var recordedRun = strictObject({
10266
10398
  run_id: id,
@@ -10332,7 +10464,7 @@ var runHit = strictObject({
10332
10464
  });
10333
10465
  var runLocation = strictObject({ path: text });
10334
10466
 
10335
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/relationship.js
10467
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/relationship.js
10336
10468
  var relationship = strictObject({
10337
10469
  id,
10338
10470
  from: reference,
@@ -10355,7 +10487,7 @@ var relationship = strictObject({
10355
10487
  created_at: time
10356
10488
  });
10357
10489
 
10358
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/reply-stats.js
10490
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/reply-stats.js
10359
10491
  var milliseconds2 = nullable(pipe(number(), minValue(0)));
10360
10492
  var figures2 = { replies: count, median_ms: milliseconds2, p90_ms: milliseconds2, mean_ms: milliseconds2 };
10361
10493
  var responseTimes = strictObject({
@@ -10372,7 +10504,7 @@ var waitingChats = strictObject({
10372
10504
  by_kind: strictObject({ private: count, group: count })
10373
10505
  });
10374
10506
 
10375
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/retention.js
10507
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/retention.js
10376
10508
  var retentionCohort = strictObject({
10377
10509
  /** The first day of the joining day or week. */
10378
10510
  cohort: text,
@@ -10420,7 +10552,7 @@ var retention = strictObject({
10420
10552
  rows: array(retentionCohort)
10421
10553
  });
10422
10554
 
10423
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/saved-search.js
10555
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/saved-search.js
10424
10556
  var savedSearch = strictObject({
10425
10557
  id,
10426
10558
  /** `null` for a run in the history. */
@@ -10437,7 +10569,7 @@ var savedSearch = strictObject({
10437
10569
  });
10438
10570
  var searchHistoryClear = strictObject({ cleared: count });
10439
10571
 
10440
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/send-attempt.js
10572
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/send-attempt.js
10441
10573
  var sendAttempt = strictObject({
10442
10574
  at: time,
10443
10575
  profile: text,
@@ -10465,7 +10597,7 @@ var sendAttempt = strictObject({
10465
10597
  error_code: optional(text)
10466
10598
  });
10467
10599
 
10468
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/store-maintenance.js
10600
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/store-maintenance.js
10469
10601
  var absent = strictObject({ path: text, exists: literal(false) });
10470
10602
  var schema = strictObject({ version: count, min_compatible: count, writable: boolean(), speaks: count });
10471
10603
  var infoSchema = strictObject({
@@ -10686,7 +10818,7 @@ var storeRepair = union([
10686
10818
  ]);
10687
10819
  var storeCopyRemoval = strictObject({ path: text, deleted: strictObject({ name: text, rows: count }) });
10688
10820
 
10689
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/store-records.js
10821
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/store-records.js
10690
10822
  var range = strictObject({ from: number(), to: number() });
10691
10823
  var storeChatStatus = strictObject({
10692
10824
  chat_id: id,
@@ -10784,7 +10916,7 @@ var storeJobRetry = union([
10784
10916
  ]);
10785
10917
  var storeJobClear = strictObject({ cleared: array(id) });
10786
10918
 
10787
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/store-table.js
10919
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/store-table.js
10788
10920
  var TABLE_KINDS = ["data", "search_index", "search_index_part", "internal"];
10789
10921
  var storeTable = strictObject({
10790
10922
  name: text,
@@ -10793,7 +10925,7 @@ var storeTable = strictObject({
10793
10925
  bytes: optional(nullable(count))
10794
10926
  });
10795
10927
 
10796
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/tag-change.js
10928
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/tag-change.js
10797
10929
  var tagTarget = variant("type", [
10798
10930
  strictObject({ type: literal("chat"), chat_id: id }),
10799
10931
  strictObject({ type: literal("contact"), person_id: id }),
@@ -10824,7 +10956,7 @@ var automaticTags = strictObject({
10824
10956
  dry_run: boolean()
10825
10957
  });
10826
10958
 
10827
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/tagging.js
10959
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/tagging.js
10828
10960
  var tagging = strictObject({
10829
10961
  tag: text,
10830
10962
  type: picklist(TAG_TYPES),
@@ -10837,7 +10969,7 @@ var tagging = strictObject({
10837
10969
  created_at: time
10838
10970
  });
10839
10971
 
10840
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/task-pair.js
10972
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/task-pair.js
10841
10973
  var side = strictObject({ ref: reference, key: text, title: text, status: text });
10842
10974
  var taskPair = strictObject({
10843
10975
  task: nullable(side),
@@ -10860,7 +10992,7 @@ var taskPair = strictObject({
10860
10992
  created_at: time
10861
10993
  });
10862
10994
 
10863
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/task-results.js
10995
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/task-results.js
10864
10996
  var nullableTime = nullable(time);
10865
10997
  var link2 = strictObject({
10866
10998
  id,
@@ -11034,7 +11166,7 @@ var taskReview = strictObject({
11034
11166
  untrusted
11035
11167
  });
11036
11168
 
11037
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/topic.js
11169
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/topic.js
11038
11170
  var topic = strictObject({
11039
11171
  id,
11040
11172
  title: text,
@@ -11048,7 +11180,7 @@ var topic = strictObject({
11048
11180
  untrusted
11049
11181
  });
11050
11182
 
11051
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/entities/index.js
11183
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/entities/index.js
11052
11184
  var ENTITIES = {
11053
11185
  sync_progress: progress,
11054
11186
  deal,
@@ -11290,6 +11422,7 @@ var ENTITIES = {
11290
11422
  chat_folder_order: chatFolderOrder,
11291
11423
  chat_rules: chatRules,
11292
11424
  chat_moderation: chatModeration,
11425
+ "model.chosen": chosenModel,
11293
11426
  model_key: modelKey,
11294
11427
  "model_key.stored": storedModelKey,
11295
11428
  "model_key.removed": removedModelKey,
@@ -11334,7 +11467,7 @@ var entityDefinitions = /* @__PURE__ */ __name(() => Object.fromEntries(Object.e
11334
11467
  return [name, definition];
11335
11468
  })), "entityDefinitions");
11336
11469
 
11337
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/cli/answer-entity.js
11470
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/cli/answer-entity.js
11338
11471
  var schemas = /* @__PURE__ */ new WeakMap();
11339
11472
  var answerEntity = /* @__PURE__ */ __name((command, name, schema2, options = {}) => {
11340
11473
  if (Object.hasOwn(ENTITIES, name))
@@ -11368,7 +11501,7 @@ var answerRow = /* @__PURE__ */ __name((command) => {
11368
11501
  return own && metaOf(command).output?.entity === own.name ? own.row : void 0;
11369
11502
  }, "answerRow");
11370
11503
 
11371
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/images/picture/models.js
11504
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/images/picture/models.js
11372
11505
  import { join as join6 } from "node:path";
11373
11506
  var clip = /* @__PURE__ */ __name((name) => `https://huggingface.co/Xenova/clip-vit-base-patch32/resolve/d15189d7028b43f1d3e65039190477f6af591c2a/${name}`, "clip");
11374
11507
  var IMAGE_MODELS = [
@@ -11422,7 +11555,7 @@ var imageModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedM
11422
11555
  var placedImage = /* @__PURE__ */ __name((model3, directory) => model3.files.map((file) => [file, join6(directory, model3.id, file.name)]), "placedImage");
11423
11556
  var isImageModelInstalled = /* @__PURE__ */ __name((model3, directory) => filesPresent(placedImage(model3, directory)), "isImageModelInstalled");
11424
11557
 
11425
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/cli/steps.js
11558
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/cli/steps.js
11426
11559
  var STEPS2 = defineSteps([
11427
11560
  ...STEPS,
11428
11561
  {
@@ -11656,10 +11789,10 @@ var nextStep = /* @__PURE__ */ __name((id6, input) => {
11656
11789
  const args = Object.fromEntries(Object.entries(input.args ?? {}).filter(([, value]) => value !== void 0));
11657
11790
  return stepOf(definition, { ...input, args });
11658
11791
  }, "nextStep");
11659
- var lineOf = /* @__PURE__ */ __name((command, words) => {
11792
+ var lineOf = /* @__PURE__ */ __name((command, words2) => {
11660
11793
  const root = rootOf2(command);
11661
11794
  const profile = root.getOptionValue("profile");
11662
- return typedCommand(root.name(), words, typeof profile === "string" && profile !== "" ? profile : void 0);
11795
+ return typedCommand(root.name(), words2, typeof profile === "string" && profile !== "" ? profile : void 0);
11663
11796
  }, "lineOf");
11664
11797
  var rootOf2 = /* @__PURE__ */ __name((command) => {
11665
11798
  let root = command;
@@ -11700,7 +11833,7 @@ var stepLine = /* @__PURE__ */ __name((root, step2) => {
11700
11833
  ].join(" ");
11701
11834
  }, "stepLine");
11702
11835
 
11703
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/cli/project-status-rows.js
11836
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/cli/project-status-rows.js
11704
11837
  var where = [{ field: "ref" }];
11705
11838
  var who2 = { field: ["who.owner", "who.name"], tag: "you" };
11706
11839
  var ON_CHAT_ROW = /* @__PURE__ */ new Set(["reply-next", "coverage"]);
@@ -11792,7 +11925,7 @@ var STATUS_ROWS = {
11792
11925
  "status.failed": { columns: [{ field: "signal" }], text: ["why"] }
11793
11926
  };
11794
11927
 
11795
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/cli/compact.js
11928
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/cli/compact.js
11796
11929
  var TEXT_CHARS = 400;
11797
11930
  var sender = { field: ["sender_is_me", "sender_name"], tag: "me" };
11798
11931
  var messageRow = {
@@ -12158,7 +12291,7 @@ var compactText = /* @__PURE__ */ __name((body, shape, options, rowsOf = rowsOfE
12158
12291
  return lines.concat(footerOf(body)).join("\n");
12159
12292
  }, "compactText");
12160
12293
 
12161
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/cli/output-budget.js
12294
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/cli/output-budget.js
12162
12295
  var SOFT_OUTPUT_BYTES = 256 * 1024;
12163
12296
  var CARRIED = ["json", "compact", "offline", "timeout", "full", "brief", "maxOutputBytes"];
12164
12297
  var NOT_WITH_COMPACT = /* @__PURE__ */ new Set(["json", "brief"]);
@@ -12184,10 +12317,10 @@ var declaresRow = /* @__PURE__ */ __name((command) => {
12184
12317
  return rowShapeOf(command, rows2 && entityRows(rows2)) !== GENERIC_ROW;
12185
12318
  }, "declaresRow");
12186
12319
  var pathOf3 = /* @__PURE__ */ __name((command) => {
12187
- const words = [];
12320
+ const words2 = [];
12188
12321
  for (let at2 = command; at2.parent; at2 = at2.parent)
12189
- words.unshift(at2.name());
12190
- return words.join(" ");
12322
+ words2.unshift(at2.name());
12323
+ return words2.join(" ");
12191
12324
  }, "pathOf");
12192
12325
  var step = /* @__PURE__ */ __name((command, id6, args, why) => ({
12193
12326
  kind: "command",
@@ -12205,7 +12338,7 @@ var largeAnswerSteps = /* @__PURE__ */ __name((command) => {
12205
12338
  return args ? compactStep(command, args, "the answer is large as JSON; one line per item keeps every ref") : [];
12206
12339
  }, "largeAnswerSteps");
12207
12340
 
12208
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
12341
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
12209
12342
  var HIDDEN = /* @__PURE__ */ new Set(["providerRef", "provider_ref"]);
12210
12343
  var withoutProviderRefs = /* @__PURE__ */ __name((value) => strip(value), "withoutProviderRefs");
12211
12344
  var strip = /* @__PURE__ */ __name((value) => {
@@ -12219,7 +12352,7 @@ var strip = /* @__PURE__ */ __name((value) => {
12219
12352
  return Object.fromEntries(Object.entries(value).flatMap(([key, inner]) => HIDDEN.has(key) ? [] : [[key, strip(inner)]]));
12220
12353
  }, "strip");
12221
12354
 
12222
- // node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/cli/envelope.js
12355
+ // node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/cli/envelope.js
12223
12356
  var answerSchema = /* @__PURE__ */ __name((item = unknown()) => union([listEnvelopeSchema(item), itemEnvelopeSchema(item)]), "answerSchema");
12224
12357
  var capped2 = /* @__PURE__ */ __name((steps) => steps.length > 0 ? { next: steps.slice(0, MAX_NEXT_STEPS) } : {}, "capped");
12225
12358
  var listOf = /* @__PURE__ */ __name((command, input) => {
@@ -12432,9 +12565,14 @@ export {
12432
12565
  endpoint,
12433
12566
  modelTarget,
12434
12567
  parseDuration,
12435
- TEXT_MODELS,
12436
12568
  DEFAULT_TEXT_MODEL,
12569
+ CustomTextModelShape,
12570
+ textModelsFile,
12571
+ readTextModelsSection,
12572
+ writeTextModelsSection,
12573
+ textModels,
12437
12574
  textModel,
12575
+ chosenTextModel,
12438
12576
  RERANK_MODELS,
12439
12577
  DEFAULT_RERANK_MODEL,
12440
12578
  rerankModel,