@wirecat/zoom-cli 0.64.0 → 0.66.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (157) hide show
  1. package/dist/answer-entities.d.ts +13 -0
  2. package/dist/answer-entities.d.ts.map +1 -1
  3. package/dist/answer-entities.js +5 -0
  4. package/dist/answer-entities.js.map +1 -1
  5. package/dist/answers.d.ts +8 -0
  6. package/dist/answers.d.ts.map +1 -1
  7. package/dist/archive-import.d.ts +1 -1
  8. package/dist/archive-import.d.ts.map +1 -1
  9. package/dist/archive-import.js +2 -1
  10. package/dist/archive-import.js.map +1 -1
  11. package/dist/bin/zm.js +6 -2
  12. package/dist/bin/zm.js.map +1 -1
  13. package/dist/bundle/{all-profiles-W2OVBZ7S.js → all-profiles-D5CFH2OK.js} +11 -8
  14. package/dist/bundle/answer-policy-YAYMKRRD.js +101 -0
  15. package/dist/bundle/{anthropic-P4BKQNBO.js → anthropic-K2E2JS4S.js} +7 -4
  16. package/dist/bundle/{app-server-AYUW45ND.js → app-server-TVXDG6HZ.js} +68 -61
  17. package/dist/bundle/{bun-MNGPTYDQ.js → bun-O4WHGL2F.js} +2 -2
  18. package/dist/bundle/{bun-sqlite-PTPUSXAO.js → bun-sqlite-HGBEHQI3.js} +6 -3
  19. package/dist/bundle/{chunk-TYKZCJD7.js → chunk-2T5BOLBS.js} +35 -35
  20. package/dist/bundle/{chunk-H3DMYF3W.js → chunk-2VPHQFO5.js} +8 -8
  21. package/dist/bundle/{chunk-JMSKDW5G.js → chunk-2YLNUZ3T.js} +5 -3
  22. package/dist/bundle/{chunk-AAC6VNSL.js → chunk-3B7L2UX4.js} +3 -3
  23. package/dist/bundle/{chunk-6NBQJJT6.js → chunk-3WTKZ2ZS.js} +13 -11
  24. package/dist/bundle/{chunk-H65B6A7Y.js → chunk-3Y2F65AY.js} +8 -8
  25. package/dist/bundle/{chunk-A2FOW3ZC.js → chunk-5A26IBAR.js} +162 -107
  26. package/dist/bundle/{chunk-BO5YVG3X.js → chunk-5GD2XZ6X.js} +132 -40
  27. package/dist/bundle/{chunk-7D56BQZL.js → chunk-5HPALDUO.js} +2 -2
  28. package/dist/bundle/{chunk-5FN4Q5H5.js → chunk-62GOOZO3.js} +8 -13
  29. package/dist/bundle/{chunk-J25UNZIL.js → chunk-67RNZGAG.js} +12 -10
  30. package/dist/bundle/{chunk-3AAO5N4L.js → chunk-6GSJLNP4.js} +2 -2
  31. package/dist/bundle/{chunk-UNO4G5NX.js → chunk-6TIKPRVQ.js} +11 -7
  32. package/dist/bundle/{chunk-HQHUPTZR.js → chunk-756RS4PH.js} +1393 -712
  33. package/dist/bundle/{chunk-R4NTPYXZ.js → chunk-7JMBEPW2.js} +2 -2
  34. package/dist/bundle/{chunk-HIGFBTEI.js → chunk-7KCTPGOF.js} +2 -2
  35. package/dist/bundle/{chunk-TJODNJKE.js → chunk-7PF56S6U.js} +33 -22
  36. package/dist/bundle/{chunk-LEQCRVPD.js → chunk-7SQJCKR6.js} +1 -1
  37. package/dist/bundle/{chunk-BWPKSUXW.js → chunk-A2SCXNA7.js} +4518 -402
  38. package/dist/bundle/{chunk-QK54GOGE.js → chunk-AU4JHT3R.js} +7 -9
  39. package/dist/bundle/{chunk-63MRRNDL.js → chunk-AZ7ICKIA.js} +8 -8
  40. package/dist/bundle/chunk-BLT3LR3U.js +34 -0
  41. package/dist/bundle/{chunk-UABUBDYB.js → chunk-BXSAROQP.js} +2 -2
  42. package/dist/bundle/{chunk-Q3EDUZ5R.js → chunk-CAW6IMFZ.js} +25 -18
  43. package/dist/bundle/{chunk-UCPL55YP.js → chunk-CR4CXOLX.js} +17 -17
  44. package/dist/bundle/{chunk-SMT6SFBK.js → chunk-CZ4KLUJG.js} +2 -2
  45. package/dist/bundle/{chunk-COTC7HF3.js → chunk-D72URWJE.js} +1 -39
  46. package/dist/bundle/{chunk-X6M5DK66.js → chunk-EXXM4RNI.js} +14 -12
  47. package/dist/bundle/{chunk-CZKV4USJ.js → chunk-FWFFQV4D.js} +59 -4
  48. package/dist/bundle/{chunk-JJZAGKUK.js → chunk-GHAPWKG2.js} +5 -3
  49. package/dist/bundle/{chunk-JRPYHDCO.js → chunk-GI6QVSCW.js} +4 -4
  50. package/dist/bundle/{chunk-Y7TWNMTW.js → chunk-GKXFL35E.js} +198 -65
  51. package/dist/bundle/{chunk-K6OSD6DG.js → chunk-GNGBG5BT.js} +81 -35
  52. package/dist/bundle/{chunk-RJLNVHIU.js → chunk-H5ZVZAOD.js} +3 -3
  53. package/dist/bundle/{chunk-XZSQLVED.js → chunk-HKQWV3KT.js} +5 -3
  54. package/dist/bundle/chunk-IDWHJ35K.js +166 -0
  55. package/dist/bundle/{chunk-JM43EKTY.js → chunk-IKQ73INC.js} +1928 -679
  56. package/dist/bundle/chunk-ILHTNOIV.js +23 -0
  57. package/dist/bundle/{chunk-OPP5CWAX.js → chunk-J4EZL6HY.js} +61 -56
  58. package/dist/bundle/{chunk-54UEJGYB.js → chunk-JX3V35A5.js} +3 -3
  59. package/dist/bundle/{chunk-7VJIKJNW.js → chunk-K5CIN4JP.js} +8 -8
  60. package/dist/bundle/{chunk-KJCCT3QY.js → chunk-KDKFGQWG.js} +17 -14
  61. package/dist/bundle/{chunk-RK3JBC4U.js → chunk-L7IK4FOA.js} +2 -2
  62. package/dist/bundle/{chunk-7EOW47PV.js → chunk-LN2S3RA3.js} +4 -4
  63. package/dist/bundle/{chunk-I5QX2HAT.js → chunk-N5JRRBEG.js} +214 -107
  64. package/dist/bundle/chunk-N67BLTBV.js +2443 -0
  65. package/dist/bundle/{chunk-23LOMA2I.js → chunk-N6JMJN5A.js} +48 -26
  66. package/dist/bundle/{chunk-CZFV6XTW.js → chunk-NMQUCHTX.js} +3 -3
  67. package/dist/bundle/{chunk-TJH5IQVZ.js → chunk-NO24PJNW.js} +1 -1
  68. package/dist/bundle/{chunk-UFI5SX3F.js → chunk-O5FKJV3T.js} +14 -12
  69. package/dist/bundle/{chunk-IIP4J3PD.js → chunk-P2G4KGTR.js} +94 -12
  70. package/dist/bundle/{chunk-OWXMQVVN.js → chunk-P2SYZNM4.js} +1 -1
  71. package/dist/bundle/{chunk-EQYPTGCT.js → chunk-P3XVLHIQ.js} +6 -4
  72. package/dist/bundle/chunk-PQLBPYJR.js +46 -0
  73. package/dist/bundle/{chunk-5BCNJB2A.js → chunk-Q47C3QZW.js} +675 -507
  74. package/dist/bundle/{chunk-IIGXCYEL.js → chunk-QAPU2JNO.js} +13 -13
  75. package/dist/bundle/{chunk-WFIJOFS5.js → chunk-QJHRYUMJ.js} +1 -1
  76. package/dist/bundle/{chunk-YNYMWXXH.js → chunk-QV5ZGRK3.js} +40 -11
  77. package/dist/bundle/{chunk-3IMEAZIM.js → chunk-RMKHYUHK.js} +9 -20
  78. package/dist/bundle/{chunk-AF4HONAZ.js → chunk-RO44LANT.js} +6449 -4436
  79. package/dist/bundle/{chunk-3DGQJASQ.js → chunk-S4GDDO5S.js} +1 -1
  80. package/dist/bundle/chunk-S6S3KVJI.js +45 -0
  81. package/dist/bundle/{chunk-SJIBJQJN.js → chunk-SU4WPBQE.js} +44 -14
  82. package/dist/bundle/{chunk-7NDSBTKR.js → chunk-TFDVFD4N.js} +91 -2546
  83. package/dist/bundle/{chunk-HQHYPKSU.js → chunk-TMVKZMDO.js} +54 -37
  84. package/dist/bundle/{chunk-PBJY5VR6.js → chunk-TN7K66PU.js} +1 -1
  85. package/dist/bundle/{chunk-ZW4N73FO.js → chunk-TUEEXECZ.js} +5 -5
  86. package/dist/bundle/{chunk-H5LLZ5XA.js → chunk-U3ZUT557.js} +1 -1
  87. package/dist/bundle/{chunk-4XVRA6P5.js → chunk-U4RVOSX3.js} +1 -1
  88. package/dist/bundle/{chunk-5YLR24D5.js → chunk-UOIXBEFR.js} +13 -6
  89. package/dist/bundle/chunk-UYV2JGLQ.js +34 -0
  90. package/dist/bundle/{chunk-7SWNZ44U.js → chunk-XFUID5NY.js} +4 -4
  91. package/dist/bundle/{chunk-BMYZWBAX.js → chunk-XWDSEJWP.js} +6 -6
  92. package/dist/bundle/{chunk-JZKNHA44.js → chunk-Y3EIK4XW.js} +1 -1
  93. package/dist/bundle/{chunk-24WCZURP.js → chunk-YLEQN6PB.js} +5 -3
  94. package/dist/bundle/{chunk-2UONVSJQ.js → chunk-Z6U3MEGJ.js} +2 -2
  95. package/dist/bundle/{chunk-L4JGVSBN.js → chunk-ZKTXUDSR.js} +33 -28
  96. package/dist/bundle/{chunk-FSYO3PUW.js → chunk-ZNFPDTQM.js} +2 -2
  97. package/dist/bundle/{chunk-C3RRIJ5C.js → chunk-ZTL7ANSG.js} +9 -42
  98. package/dist/bundle/{cli-Y2ZO3D5U.js → cli-HWQIL2AC.js} +124 -73
  99. package/dist/bundle/command-contract-CQFJXWX6.js +40 -0
  100. package/dist/bundle/config-R2Y6ZVQS.js +83 -0
  101. package/dist/bundle/{decode-GO6GAYH2.js → decode-XPAPPUGE.js} +6 -3
  102. package/dist/bundle/dispatch-AKVJGP2S.js +412 -0
  103. package/dist/bundle/{dist-MIJKAGXW.js → dist-LDIUQBM7.js} +23 -16
  104. package/dist/bundle/{echarts-NWK7LALR.js → echarts-FMACRZQC.js} +2 -2
  105. package/dist/bundle/{embed-2DOSN4DV.js → embed-LK45GRQ7.js} +7 -4
  106. package/dist/bundle/{embedder-3Q3C2WKC.js → embedder-QPBC5XBY.js} +12 -9
  107. package/dist/bundle/failure-7OULAOWQ.js +25 -0
  108. package/dist/bundle/first-run-J5FG773Q.js +28 -0
  109. package/dist/bundle/first-screen-MULOBUHN.js +38 -0
  110. package/dist/bundle/{folders-RSWEBHDZ.js → folders-RHPUVMDI.js} +5 -2
  111. package/dist/bundle/{instructions-M3FZPQVI.js → instructions-E5FXYCWF.js} +1 -1
  112. package/dist/bundle/{main-R77BPRRS.js → main-FJHE5YHU.js} +28 -22
  113. package/dist/bundle/{mcp-YJEQYYTR.js → mcp-MNI62HHE.js} +5 -3
  114. package/dist/bundle/{meetings-IV4Y4WRH.js → meetings-MYIDGYGW.js} +19 -6
  115. package/dist/bundle/{node-I3GEHYGL.js → node-4SNKUPXT.js} +2 -2
  116. package/dist/bundle/{node-sqlite-W6MR2TVQ.js → node-sqlite-SYZUTVPC.js} +12 -3
  117. package/dist/bundle/{oauth-M6YL4QXP.js → oauth-QPS5VTN6.js} +8 -5
  118. package/dist/bundle/{open-2VITLJAN.js → open-OVCASRSJ.js} +6 -2
  119. package/dist/bundle/openai-VEVT7D7L.js +25 -0
  120. package/dist/bundle/{output-file-XJJ3XMLQ.js → output-file-K5JEL33Z.js} +7 -4
  121. package/dist/bundle/{process-UBA4L4B2.js → process-HQZOTT6U.js} +1 -1
  122. package/dist/bundle/{program-5R5MRXUM.js → program-A546WC4F.js} +120 -112
  123. package/dist/bundle/{prompt-AVIXIM7Z.js → prompt-CYBKP7S5.js} +6 -3
  124. package/dist/bundle/{recognize-DJKTJOYU.js → recognize-3H3YDCFI.js} +5 -2
  125. package/dist/bundle/{remote-S3DTNYRP.js → remote-VAYVTJBS.js} +8 -5
  126. package/dist/bundle/{rerank-FMCDP6VF.js → rerank-XA4GA5PS.js} +8 -5
  127. package/dist/bundle/{run-log-T4MV2VEH.js → run-log-XAFHMI3F.js} +59 -54
  128. package/dist/bundle/{serve-5SGFJFMC.js → serve-KGHEDUHB.js} +18 -14
  129. package/dist/bundle/server-IDNSJXF3.js +71 -0
  130. package/dist/bundle/{server-PCMCY7WK.js → server-ZYTSMDTP.js} +47 -42
  131. package/dist/bundle/{services-SKRQ2POT.js → services-ZHMZC2OQ.js} +106 -28
  132. package/dist/bundle/{speech-FSDICIKO.js → speech-7CJEFKM3.js} +14 -11
  133. package/dist/bundle/{state-KPUSPWO6.js → state-U6KSYVOH.js} +7 -4
  134. package/dist/bundle/{store-W7LFPKG2.js → store-DJE3LAEG.js} +17 -13
  135. package/dist/bundle/{store-7MP2ZGQ7.js → store-WS4CQGYU.js} +40 -18
  136. package/dist/bundle/store-connection-T5WGOOPH.js +81 -0
  137. package/dist/bundle/store-maintenance-command-5CBQCEQQ.js +61 -0
  138. package/dist/bundle/{streaming-Q44ESD3E.js → streaming-QMHH7L6N.js} +7 -4
  139. package/dist/bundle/{tokens-TAFCHANI.js → tokens-PWQ56OXO.js} +7 -4
  140. package/dist/bundle/zm.js +150 -1
  141. package/dist/local-transcription.d.ts.map +1 -1
  142. package/dist/local-transcription.js +1 -0
  143. package/dist/local-transcription.js.map +1 -1
  144. package/dist/version.d.ts +1 -1
  145. package/dist/version.js +1 -1
  146. package/package.json +5 -4
  147. package/dist/bundle/answer-policy-HOA43GNA.js +0 -96
  148. package/dist/bundle/chunk-JRPAZ2WD.js +0 -3635
  149. package/dist/bundle/command-contract-DGTZIH2F.js +0 -38
  150. package/dist/bundle/config-N2UHDKGG.js +0 -78
  151. package/dist/bundle/first-run-S75VKIT3.js +0 -23
  152. package/dist/bundle/first-screen-DQNRT6GH.js +0 -36
  153. package/dist/bundle/openai-OG6B3JCU.js +0 -22
  154. package/dist/bundle/server-EYGZLKKQ.js +0 -66
  155. package/dist/bundle/store-connection-3HNZFJC4.js +0 -76
  156. package/dist/bundle/store-maintenance-command-6WBLTUZP.js +0 -55
  157. /package/dist/bundle/{chunk-WJWLHLQ7.js → chunk-NUN6OGOV.js} +0 -0
@@ -2,17 +2,25 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  refuseLacking
5
- } from "./chunk-23LOMA2I.js";
5
+ } from "./chunk-N6JMJN5A.js";
6
6
  import {
7
7
  servingProfiles
8
- } from "./chunk-RJLNVHIU.js";
8
+ } from "./chunk-H5ZVZAOD.js";
9
9
  import {
10
10
  OFFLINE,
11
11
  capability,
12
12
  chatIdIn,
13
+ profilesOnAccount,
13
14
  servicesFor,
14
15
  throughWrapper
15
- } from "./chunk-AF4HONAZ.js";
16
+ } from "./chunk-RO44LANT.js";
17
+ import {
18
+ chatReferenceOf,
19
+ ensureAccount,
20
+ foldName,
21
+ isId,
22
+ pickPerson
23
+ } from "./chunk-P2G4KGTR.js";
16
24
  import {
17
25
  asFirstWord,
18
26
  baseContext,
@@ -23,30 +31,26 @@ import {
23
31
  recalledAccount,
24
32
  rememberAccount,
25
33
  rootOf2 as rootOf
26
- } from "./chunk-BWPKSUXW.js";
34
+ } from "./chunk-A2SCXNA7.js";
27
35
  import {
28
36
  MESSENGER_CHANGE_REFUSAL,
29
37
  readOnlyRefusal
30
- } from "./chunk-2UONVSJQ.js";
38
+ } from "./chunk-Z6U3MEGJ.js";
31
39
  import {
32
40
  providerErrorKey
33
- } from "./chunk-H65B6A7Y.js";
41
+ } from "./chunk-3Y2F65AY.js";
34
42
  import {
35
43
  LOG_ATTRIBUTES,
36
44
  codeOf,
37
45
  currentOperation,
38
46
  currentRun,
39
47
  fromLogAttributes,
48
+ limitBatch,
40
49
  logAttributes
41
- } from "./chunk-A2FOW3ZC.js";
50
+ } from "./chunk-5A26IBAR.js";
42
51
  import {
43
52
  isCliFailure
44
- } from "./chunk-3AAO5N4L.js";
45
- import {
46
- foldName,
47
- isId,
48
- pickPerson
49
- } from "./chunk-IIP4J3PD.js";
53
+ } from "./chunk-6GSJLNP4.js";
50
54
  import {
51
55
  AUTHORITY_KEY,
52
56
  CEILING_KEY,
@@ -57,22 +61,24 @@ import {
57
61
  levelFor,
58
62
  readKeysForCommand,
59
63
  skipFlagFor
60
- } from "./chunk-7D56BQZL.js";
64
+ } from "./chunk-5HPALDUO.js";
61
65
  import {
62
66
  openStore
63
- } from "./chunk-JM43EKTY.js";
67
+ } from "./chunk-IKQ73INC.js";
64
68
  import {
65
- CliError,
66
69
  logRecordOf,
67
70
  realSleep,
68
71
  resolvePaths,
69
72
  writeSecurely
70
- } from "./chunk-7NDSBTKR.js";
73
+ } from "./chunk-TFDVFD4N.js";
74
+ import {
75
+ CliError
76
+ } from "./chunk-S6S3KVJI.js";
71
77
  import {
72
78
  __name
73
79
  } from "./chunk-ZVVMGPBJ.js";
74
80
 
75
- // node_modules/.pnpm/@wirecat+cli-core@0.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/node_modules/@wirecat/cli-core/dist/cli/messenger/ask.js
81
+ // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/cli/messenger/ask.js
76
82
  import { openSync } from "node:fs";
77
83
  import { createInterface } from "node:readline";
78
84
  import { ReadStream } from "node:tty";
@@ -127,10 +133,10 @@ var terminalAsker = /* @__PURE__ */ __name((command) => async (key, request) =>
127
133
  throw new CliError("cancelled", `${key}: not done \u2014 the answer was no`);
128
134
  }, "terminalAsker");
129
135
 
130
- // node_modules/.pnpm/@wirecat+cli-core@0.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/node_modules/@wirecat/cli-core/dist/sends/guard.js
136
+ // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/sends/guard.js
131
137
  import { randomUUID } from "node:crypto";
132
138
 
133
- // node_modules/.pnpm/@wirecat+cli-core@0.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/node_modules/@wirecat/cli-core/dist/sends/flood.js
139
+ // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/sends/flood.js
134
140
  import { mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
135
141
  import { dirname, join } from "node:path";
136
142
  var MOST_DEADLINES = 50;
@@ -214,11 +220,11 @@ var FloodMemory = class {
214
220
  }
215
221
  };
216
222
 
217
- // node_modules/.pnpm/@wirecat+cli-core@0.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/node_modules/@wirecat/cli-core/dist/sends/journal.js
223
+ // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/sends/journal.js
218
224
  import { appendFileSync, mkdirSync as mkdirSync3, readFileSync as readFileSync2 } from "node:fs";
219
225
  import { dirname as dirname3, join as join2 } from "node:path";
220
226
 
221
- // node_modules/.pnpm/@wirecat+cli-core@0.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/node_modules/@wirecat/cli-core/dist/sends/file-lock.js
227
+ // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/sends/file-lock.js
222
228
  import { closeSync, mkdirSync as mkdirSync2, openSync as openSync2, statSync, unlinkSync } from "node:fs";
223
229
  import { dirname as dirname2 } from "node:path";
224
230
  var LOCK_WAIT_MS = 5e3;
@@ -285,7 +291,7 @@ var lockTime = /* @__PURE__ */ __name((lock) => {
285
291
  }
286
292
  }, "lockTime");
287
293
 
288
- // node_modules/.pnpm/@wirecat+cli-core@0.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/node_modules/@wirecat/cli-core/dist/sends/journal.js
294
+ // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/sends/journal.js
289
295
  var sendsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "sends", `${profile}.jsonl`), "sendsPathFor");
290
296
  var SendJournal = class {
291
297
  static {
@@ -362,7 +368,7 @@ var withSendId = /* @__PURE__ */ __name((entry) => {
362
368
  return cid === void 0 || rest.sendId !== void 0 ? rest : { ...rest, sendId: String(cid) };
363
369
  }, "withSendId");
364
370
 
365
- // node_modules/.pnpm/@wirecat+cli-core@0.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/node_modules/@wirecat/cli-core/dist/sends/recipients.js
371
+ // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/sends/recipients.js
366
372
  import { existsSync, readFileSync as readFileSync3, rmSync } from "node:fs";
367
373
  import { join as join3 } from "node:path";
368
374
  var recipientsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "profiles", `${profile}.recipients.json`), "recipientsPathFor");
@@ -474,7 +480,7 @@ var RecipientList = class {
474
480
  }
475
481
  };
476
482
 
477
- // node_modules/.pnpm/@wirecat+cli-core@0.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/node_modules/@wirecat/cli-core/dist/sends/guard.js
483
+ // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/sends/guard.js
478
484
  var HOUR_MS = 60 * 60 * 1e3;
479
485
  var READS_UNDER_HOLD = /* @__PURE__ */ new Set([
480
486
  "attachments.extract",
@@ -667,7 +673,7 @@ var guardFor = /* @__PURE__ */ __name((app, settings, warn, env = process.env, a
667
673
  }), "guardFor");
668
674
  var journalFailure = /* @__PURE__ */ __name((error) => error?.code ?? (error instanceof Error ? error.name : "error"), "journalFailure");
669
675
 
670
- // node_modules/.pnpm/@wirecat+cli-core@0.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/node_modules/@wirecat/cli-core/dist/cli/permission-keys.js
676
+ // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/cli/permission-keys.js
671
677
  var HOUSEKEEPING = /* @__PURE__ */ new Set([
672
678
  "help",
673
679
  "guide",
@@ -746,10 +752,37 @@ var refuseUnknownPermissionKeys = /* @__PURE__ */ __name((command, settings, too
746
752
  throw new CliError("validation_error", `--permission ${key} names no command`, { permission: key });
747
753
  }, "refuseUnknownPermissionKeys");
748
754
 
749
- // node_modules/.pnpm/@wirecat+cli-core@0.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/node_modules/@wirecat/cli-core/dist/cli/messenger/stored.js
755
+ // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/cli/messenger/stored.js
750
756
  var REKEY_PACING = { lockMs: 50, pauseMs: 25 };
751
- var stored = /* @__PURE__ */ __name((messenger, { account, store, warn, events, pending, announcing, deletedWithoutChat, profile, rekeyed, rekeyPacing = REKEY_PACING, closing, namesFromStore, recipientIds, countsUnread = false }) => {
757
+ var stored = /* @__PURE__ */ __name((messenger, { account, store, warn, events, pending, announcing, deletedWithoutChat, profile, rekeyed, rekeyPacing = REKEY_PACING, closing, namesFromStore, recipientIds, countsUnread = false, historyLimits, command = "cli" }) => {
752
758
  let warned = false;
759
+ let limitedNoted = false;
760
+ const limited = /* @__PURE__ */ __name(async (opened, batch) => {
761
+ if (!historyLimits || !batch.messages?.length)
762
+ return { batch, skipped: /* @__PURE__ */ new Map() };
763
+ const shapes = await opened.chats.historyShapes(account, [...new Set(batch.messages.map((one) => one.chatId))]);
764
+ return limitBatch(batch, (chatId) => shapes.get(chatId), (chatId) => shapes.get(chatId)?.included === true, historyLimits);
765
+ }, "limited");
766
+ const noteLimited = /* @__PURE__ */ __name((skipped) => {
767
+ if (skipped.size === 0)
768
+ return;
769
+ const counts = {
770
+ chats: skipped.size,
771
+ messages: 0,
772
+ group_too_large: 0,
773
+ older_than_window: 0
774
+ };
775
+ for (const skip of skipped.values()) {
776
+ counts.messages = (counts.messages ?? 0) + skip.messages;
777
+ counts[skip.reason] = (counts[skip.reason] ?? 0) + 1;
778
+ }
779
+ const warning = { event: "warning", code: "history_limited", operation: "history.save", counts };
780
+ events(warning);
781
+ if (limitedNoted)
782
+ return;
783
+ limitedNoted = true;
784
+ warn(`history limits left out ${counts.messages} pushed messages of ${skipped.size} chats (big groups, older than the window) \u2014 \`${command} store status\` lists them; \`${command} messages sync <chat> --full-history\` fetches one and keeps it in full`, warning);
785
+ }, "noteLimited");
753
786
  let recorded = profile === void 0;
754
787
  const notWritten = /* @__PURE__ */ __name((operation, error) => {
755
788
  const warning = { event: "warning", code: "store_not_written", operation };
@@ -761,15 +794,18 @@ var stored = /* @__PURE__ */ __name((messenger, { account, store, warn, events,
761
794
  const attempt = /* @__PURE__ */ __name(async (operation, write) => {
762
795
  try {
763
796
  const opened = await store();
764
- if (opened)
765
- await write(opened);
797
+ if (!opened)
798
+ return false;
799
+ await write(opened);
766
800
  if (opened && !recorded && profile) {
767
801
  recorded = true;
768
802
  await Promise.resolve().then(() => opened.accounts.saveProfile(profile.app, profile.name, account)).catch(() => {
769
803
  });
770
804
  }
805
+ return true;
771
806
  } catch (error) {
772
807
  notWritten(operation, error);
808
+ return false;
773
809
  }
774
810
  }, "attempt");
775
811
  const save = /* @__PURE__ */ __name((operation, writing) => {
@@ -867,7 +903,13 @@ var stored = /* @__PURE__ */ __name((messenger, { account, store, warn, events,
867
903
  rekeysQueued += rekeys.length;
868
904
  const saving = previous.then(async () => {
869
905
  await saveRekeys(rekeys, round);
870
- await attempt(operation, (opened) => fill(opened, account, batch));
906
+ return attempt(operation, async (opened) => {
907
+ const { batch: kept, skipped } = await limited(opened, batch);
908
+ await fill(opened, account, kept);
909
+ if (skipped.size > 0)
910
+ await opened.chats.recordHistorySkips(account, skipped);
911
+ noteLimited(skipped);
912
+ });
871
913
  });
872
914
  previous = saving;
873
915
  pending?.add(saving);
@@ -877,10 +919,11 @@ var stored = /* @__PURE__ */ __name((messenger, { account, store, warn, events,
877
919
  pending?.delete(saving);
878
920
  rekeysOnly.delete(saving);
879
921
  });
880
- onBatch(batch);
922
+ void onBatch(batch, saving);
923
+ return saving;
881
924
  };
882
925
  }, "saveBatches");
883
- return throughWrapper(messenger, {
926
+ const wrapped = throughWrapper(messenger, {
884
927
  ...messenger.forumState ? {
885
928
  forumState: /* @__PURE__ */ __name(async (chatId) => {
886
929
  const state = await capability(messenger, "forumState", "read forum settings")(chatId);
@@ -1101,7 +1144,54 @@ var stored = /* @__PURE__ */ __name((messenger, { account, store, warn, events,
1101
1144
  return sent;
1102
1145
  }, "send")
1103
1146
  });
1147
+ const chatOf2 = /* @__PURE__ */ __name(async (typed) => {
1148
+ const named = chatReferenceOf(typed, account.provider);
1149
+ if (!named)
1150
+ return typed;
1151
+ let known;
1152
+ try {
1153
+ known = account.account;
1154
+ } catch {
1155
+ }
1156
+ await ensureAccount(named, { account: known, ...profile ? { profile: profile.name } : {} }, async (other) => {
1157
+ const opened = await store();
1158
+ return opened && profilesOnAccount(opened, profile?.app, account.provider)(other);
1159
+ });
1160
+ return named.chat;
1161
+ }, "chatOf");
1162
+ return withChatReferences(wrapped, chatOf2);
1104
1163
  }, "stored");
1164
+ var TYPED_CHAT = [
1165
+ "resolve",
1166
+ "chat",
1167
+ "history",
1168
+ "around",
1169
+ "historyAfter",
1170
+ "historyBefore",
1171
+ "historyFrom",
1172
+ "topics",
1173
+ "topic",
1174
+ "topicHistory",
1175
+ "download",
1176
+ "transcribe",
1177
+ "scheduled",
1178
+ "admins",
1179
+ "chatEvents",
1180
+ "leave",
1181
+ "group",
1182
+ "officialChatStats"
1183
+ ];
1184
+ var withChatReferences = /* @__PURE__ */ __name((adapter, chatOf2) => {
1185
+ const methods = adapter;
1186
+ const own = Object.fromEntries(TYPED_CHAT.flatMap((name) => {
1187
+ const method = methods[name];
1188
+ if (typeof method !== "function")
1189
+ return [];
1190
+ const call = /* @__PURE__ */ __name(async (typed, ...rest) => method.call(adapter, await chatOf2(typed), ...rest), "call");
1191
+ return [[name, call]];
1192
+ }));
1193
+ return throughWrapper(adapter, own);
1194
+ }, "withChatReferences");
1105
1195
  var saveSent = /* @__PURE__ */ __name((opened, account, typed, message, options, into = message.chatId || typed) => opened.messages.saveMessages(account, into, [message], { ...options, typedChatId: typed }), "saveSent");
1106
1196
  var storedChat = /* @__PURE__ */ __name(async (store, account, traits, reference) => {
1107
1197
  const bound = store.forAccount(account);
@@ -1238,7 +1328,7 @@ var keep = /* @__PURE__ */ __name(async (store, account, event, seenAt, among, c
1238
1328
  }
1239
1329
  }, "keep");
1240
1330
 
1241
- // node_modules/.pnpm/@wirecat+cli-core@0.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/node_modules/@wirecat/cli-core/dist/sends/pace.js
1331
+ // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/sends/pace.js
1242
1332
  import { readFileSync as readFileSync4, renameSync as renameSync2, writeFileSync as writeFileSync2 } from "node:fs";
1243
1333
  import { join as join4 } from "node:path";
1244
1334
  var DEFAULT_PACE = { perMinute: 60, burst: 20 };
@@ -1297,7 +1387,7 @@ var Pacer = class {
1297
1387
  }
1298
1388
  };
1299
1389
 
1300
- // node_modules/.pnpm/@wirecat+cli-core@0.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/node_modules/@wirecat/cli-core/dist/cli/messenger/flooded.js
1390
+ // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/cli/messenger/flooded.js
1301
1391
  var LONG_LIVED = /* @__PURE__ */ new Set(["self", "newSendId", "close", "formatMarkdown", "formatHtml", "storedChats"]);
1302
1392
  var LISTENING = /* @__PURE__ */ new Set(["watch", "feed", "listen", "listenHistory"]);
1303
1393
  var BLOCKING = /* @__PURE__ */ new Set(["frozen", "limited", "banned"]);
@@ -1416,7 +1506,7 @@ var flooded = /* @__PURE__ */ __name((messenger, memory, { name, warn, pacer })
1416
1506
  });
1417
1507
  }, "flooded");
1418
1508
 
1419
- // node_modules/.pnpm/@wirecat+cli-core@0.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/node_modules/@wirecat/cli-core/dist/cli/messenger/observed.js
1509
+ // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/cli/messenger/observed.js
1420
1510
  var observed = /* @__PURE__ */ __name((messenger, events) => {
1421
1511
  const timed = /* @__PURE__ */ __name(async (operation, named, work, after) => {
1422
1512
  const write = currentOperation();
@@ -1452,9 +1542,9 @@ var observed = /* @__PURE__ */ __name((messenger, events) => {
1452
1542
  }, "timed");
1453
1543
  const counted = /* @__PURE__ */ __name(async (operation, onItem, work, count) => {
1454
1544
  const counts = {};
1455
- await timed(operation, {}, () => work((item) => {
1545
+ await timed(operation, {}, () => work((item, ...rest) => {
1456
1546
  count(item, counts);
1457
- onItem(item);
1547
+ return onItem(item, ...rest);
1458
1548
  }), () => ({ counts }));
1459
1549
  }, "counted");
1460
1550
  const mint = messenger.newSendId;
@@ -1515,7 +1605,7 @@ var byPart = /* @__PURE__ */ __name((batch, counts) => {
1515
1605
  counts[part] = (counts[part] ?? 0) + items.length;
1516
1606
  }, "byPart");
1517
1607
 
1518
- // node_modules/.pnpm/@wirecat+cli-core@0.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/node_modules/@wirecat/cli-core/dist/cli/messenger/context.js
1608
+ // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/cli/messenger/context.js
1519
1609
  var lazyStore = /* @__PURE__ */ __name((env, command, version) => {
1520
1610
  let opened;
1521
1611
  return {
@@ -1693,7 +1783,8 @@ var connected = /* @__PURE__ */ __name((connection, { app, provider, name, delet
1693
1783
  rekeyed: /* @__PURE__ */ __name((from, to) => rekeyRecipients(app, settings.profile, env, renderer.warn, from, to), "rekeyed"),
1694
1784
  recipientIds: /* @__PURE__ */ __name(() => (new RecipientList(recipientsPathFor(app, settings.profile, env), app.command).read() ?? []).flatMap((recipient) => [recipient.id, ...recipient.partnerId ? [recipient.partnerId] : []]), "recipientIds"),
1695
1785
  ...history === "store" ? { namesFromStore: savedChatId ? { savedChatId } : {} } : {},
1696
- ...unreadCounts === "store" ? { countsUnread: true } : {}
1786
+ ...unreadCounts === "store" ? { countsUnread: true } : {},
1787
+ ...history === "store" && settings.historyLimits ? { historyLimits: settings.historyLimits, command: `${app.command} ${settings.profile}` } : {}
1697
1788
  });
1698
1789
  const passives = history === "store" && self !== null && !watching ? passivesOf(saving).map((passive) => listened(passive, events, renderer.warn, closeWaitMs)) : [];
1699
1790
  return {
@@ -1855,6 +1946,7 @@ var messengerContext = /* @__PURE__ */ __name((command, messenger, resolving = {
1855
1946
  // Turning recording off by name (--no-record, or record: false) keeps no search history either.
1856
1947
  history: base.settings.record,
1857
1948
  searchCatchUp: base.settings.searchCatchUp,
1949
+ ...base.settings.historyLimits ? { historyLimits: base.settings.historyLimits } : {},
1858
1950
  pictures: base.settings.pictureSearch,
1859
1951
  reranker: base.settings.searchReranker,
1860
1952
  guard,
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  CliError
5
- } from "./chunk-7NDSBTKR.js";
5
+ } from "./chunk-S6S3KVJI.js";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // node_modules/.pnpm/@wirecat+cli-core@0.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/node_modules/@wirecat/cli-core/dist/sends/permissions.js
10
+ // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/sends/permissions.js
11
11
  var LEVELS = ["deny", "readonly", "ask", "allow"];
12
12
  var DANGEROUS = /* @__PURE__ */ new Set(["messages.delete", "bot.messages.delete", "topics.delete", "chats.delete", "chats.clear"]);
13
13
  var skipFlagFor = /* @__PURE__ */ __name((key) => DANGEROUS.has(key) ? "--allow-dangerous" : "--yes", "skipFlagFor");
@@ -1,20 +1,16 @@
1
1
  import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ PRAGMAS
5
+ } from "./chunk-BLT3LR3U.js";
3
6
  import {
4
7
  CliError
5
- } from "./chunk-7NDSBTKR.js";
8
+ } from "./chunk-S6S3KVJI.js";
6
9
  import {
7
10
  __name
8
11
  } from "./chunk-ZVVMGPBJ.js";
9
12
 
10
- // node_modules/.pnpm/@wirecat+cli-core@0.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/node_modules/@wirecat/cli-core/dist/store/driver.js
11
- var PRAGMAS = `
12
- PRAGMA busy_timeout = 5000;
13
- PRAGMA journal_mode = WAL;
14
- PRAGMA foreign_keys = ON;
15
- `;
16
-
17
- // node_modules/.pnpm/@wirecat+cli-core@0.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/node_modules/@wirecat/cli-core/dist/store/sqlite-warning.js
13
+ // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/store/sqlite-warning.js
18
14
  var SQLITE_WARNING = "SQLite is an experimental feature";
19
15
  var quieted = /* @__PURE__ */ new WeakSet();
20
16
  var quietSqliteWarning = /* @__PURE__ */ __name((host = process) => {
@@ -35,7 +31,7 @@ var isSqliteWarning = /* @__PURE__ */ __name((warning, options) => {
35
31
  return name === "ExperimentalWarning" && message.startsWith(SQLITE_WARNING);
36
32
  }, "isSqliteWarning");
37
33
 
38
- // node_modules/.pnpm/@wirecat+cli-core@0.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/node_modules/@wirecat/cli-core/dist/store/open.js
34
+ // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/store/open.js
39
35
  var openCache = /* @__PURE__ */ __name(async (path) => {
40
36
  const database = await openFile(path);
41
37
  try {
@@ -48,12 +44,12 @@ var openCache = /* @__PURE__ */ __name(async (path) => {
48
44
  }, "openCache");
49
45
  var openFile = /* @__PURE__ */ __name((path) => "Bun" in globalThis ? openUnderBun(path) : openUnderNode(path), "openFile");
50
46
  var openUnderBun = /* @__PURE__ */ __name(async (path) => {
51
- const { openWithBunSqlite } = await import("./bun-sqlite-PTPUSXAO.js");
47
+ const { openWithBunSqlite } = await import("./bun-sqlite-HGBEHQI3.js");
52
48
  return await openWithBunSqlite(path);
53
49
  }, "openUnderBun");
54
50
  var openUnderNode = /* @__PURE__ */ __name(async (path) => {
55
51
  quietSqliteWarning();
56
- const { openWithNodeSqlite } = await import("./node-sqlite-W6MR2TVQ.js");
52
+ const { openWithNodeSqlite } = await import("./node-sqlite-SYZUTVPC.js");
57
53
  return openWithNodeSqlite(path);
58
54
  }, "openUnderNode");
59
55
  var runtime = /* @__PURE__ */ __name(() => {
@@ -90,7 +86,6 @@ var storeCapable = /* @__PURE__ */ __name(() => {
90
86
  }, "storeCapable");
91
87
 
92
88
  export {
93
- PRAGMAS,
94
89
  quietSqliteWarning,
95
90
  openCache,
96
91
  openFile,
@@ -2,24 +2,26 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  validateFormattedText
5
- } from "./chunk-IIP4J3PD.js";
5
+ } from "./chunk-P2G4KGTR.js";
6
6
  import {
7
7
  inputPolicy
8
- } from "./chunk-R4NTPYXZ.js";
8
+ } from "./chunk-7JMBEPW2.js";
9
9
  import {
10
- CliError,
11
10
  indent
12
- } from "./chunk-7NDSBTKR.js";
11
+ } from "./chunk-TFDVFD4N.js";
12
+ import {
13
+ CliError
14
+ } from "./chunk-S6S3KVJI.js";
13
15
  import {
14
16
  __name
15
17
  } from "./chunk-ZVVMGPBJ.js";
16
18
 
17
- // node_modules/.pnpm/@wirecat+cli-core@0.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/node_modules/@wirecat/cli-core/dist/domain/checks.js
19
+ // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/domain/checks.js
18
20
  var spelled = /* @__PURE__ */ __name((check, args) => `${check.replaceAll(".", " ")}${args === void 0 ? "" : ` ${args}`}`, "spelled");
19
21
  var bareCheck = /* @__PURE__ */ __name((check, args) => `\`${spelled(check, args)}\``, "bareCheck");
20
22
  var checkWords = /* @__PURE__ */ __name((command, profile) => (check, args) => `\`${command} ${profile === void 0 ? "" : `${profile} `}${spelled(check, args)}\``, "checkWords");
21
23
 
22
- // node_modules/.pnpm/@wirecat+cli-core@0.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/node_modules/@wirecat/cli-core/dist/domain/markdown.js
24
+ // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/domain/markdown.js
23
25
  var MARKERS = [
24
26
  ["**", "bold"],
25
27
  ["~~", "strike"],
@@ -65,7 +67,7 @@ var closing = /* @__PURE__ */ __name((input, open, marker) => {
65
67
  return end;
66
68
  }, "closing");
67
69
 
68
- // node_modules/.pnpm/@wirecat+cli-core@0.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/node_modules/@wirecat/cli-core/dist/domain/markdown-spans.js
70
+ // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/domain/markdown-spans.js
69
71
  var STYLES = [
70
72
  ["**", "bold"],
71
73
  ["__", "underline"],
@@ -225,7 +227,7 @@ var parseMarkdownSpans = /* @__PURE__ */ __name((input) => {
225
227
  return validateFormattedText(result);
226
228
  }, "parseMarkdownSpans");
227
229
 
228
- // node_modules/.pnpm/@wirecat+cli-core@0.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/node_modules/@wirecat/cli-core/dist/domain/polls.js
230
+ // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/domain/polls.js
229
231
  var countedPoll = /* @__PURE__ */ __name((poll, votes, self) => {
230
232
  const cast = votes.filter((vote) => vote.answers.length > 0);
231
233
  const mine = self === null ? void 0 : votes.find((vote) => vote.person.id === self);
@@ -1874,7 +1876,7 @@ var createDataURL = /* @__PURE__ */ __name(function(width, height, getPixel) {
1874
1876
  var qrcode_default = qrcode;
1875
1877
  var stringToBytes = qrcode.stringToBytes;
1876
1878
 
1877
- // node_modules/.pnpm/@wirecat+cli-core@0.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/node_modules/@wirecat/cli-core/dist/terminal/qr.js
1879
+ // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/terminal/qr.js
1878
1880
  var QUIET_ZONE = 4;
1879
1881
  var BLACK_ON_WHITE = "\x1B[30;107m";
1880
1882
  var RESET = "\x1B[0m";
@@ -1921,7 +1923,7 @@ var plainQr = /* @__PURE__ */ __name((link) => {
1921
1923
  return lines.join("\n");
1922
1924
  }, "plainQr");
1923
1925
 
1924
- // node_modules/.pnpm/@wirecat+cli-core@0.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/node_modules/@wirecat/cli-core/dist/terminal/login-qr.js
1926
+ // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/terminal/login-qr.js
1925
1927
  var MARGIN = 2;
1926
1928
  var atTerminal = /* @__PURE__ */ __name((input) => input.isTTY === true && !inputPolicy(input).noInput, "atTerminal");
1927
1929
  var PASTE_QR = "agents: paste the QR code above into the chat as a code block, exactly as printed; when a new one is printed, paste it and say the old one expired";
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  errorCodes
5
- } from "./chunk-7NDSBTKR.js";
5
+ } from "./chunk-S6S3KVJI.js";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // node_modules/.pnpm/@wirecat+cli-core@0.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/node_modules/@wirecat/cli-core/dist/errors/failures.js
10
+ // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/errors/failures.js
11
11
  var isCliFailure = /* @__PURE__ */ __name((value) => value instanceof Error && value.name === "CliError" && errorCodes.includes(value.code), "isCliFailure");
12
12
  var isCommanderFailure = /* @__PURE__ */ __name((value) => {
13
13
  const { code, exitCode } = value ?? {};
@@ -2,21 +2,25 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  storePath
5
- } from "./chunk-RK3JBC4U.js";
5
+ } from "./chunk-L7IK4FOA.js";
6
+ import {
7
+ resolvePaths
8
+ } from "./chunk-TFDVFD4N.js";
9
+ import {
10
+ CliError
11
+ } from "./chunk-S6S3KVJI.js";
6
12
  import {
7
- CliError,
8
- resolvePaths,
9
13
  singleLine
10
- } from "./chunk-7NDSBTKR.js";
14
+ } from "./chunk-UYV2JGLQ.js";
11
15
  import {
12
16
  __name
13
17
  } from "./chunk-ZVVMGPBJ.js";
14
18
 
15
- // node_modules/.pnpm/@wirecat+cli-core@0.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/node_modules/@wirecat/cli-core/dist/store/shared-config.js
19
+ // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/store/shared-config.js
16
20
  import { mkdirSync, readFileSync, renameSync, statSync, writeFileSync } from "node:fs";
17
21
  import { dirname, join, resolve } from "node:path";
18
22
 
19
- // node_modules/.pnpm/@wirecat+cli-core@0.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/node_modules/@wirecat/cli-core/dist/domain/task-categories.js
23
+ // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/domain/task-categories.js
20
24
  var DEFAULT_TASK_CATEGORIES = [
21
25
  {
22
26
  name: "taxes",
@@ -771,7 +775,7 @@ var storedTaskCategories = /* @__PURE__ */ __name((json) => {
771
775
  }
772
776
  }, "storedTaskCategories");
773
777
 
774
- // node_modules/.pnpm/@wirecat+cli-core@0.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/node_modules/@wirecat/cli-core/dist/store/shared-config.js
778
+ // node_modules/.pnpm/@wirecat+cli-core@0.552.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_23aa5a610a285948c067a35e1587367b/node_modules/@wirecat/cli-core/dist/store/shared-config.js
775
779
  var SECTION = "task_categories";
776
780
  var sharedConfigPath = /* @__PURE__ */ __name((store, env = process.env) => {
777
781
  const paths = resolvePaths({ appName: "WireCat", prefix: "WIRECAT", env });