@wirecat/drive-cli 0.50.0 → 0.52.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 (148) hide show
  1. package/dist/bin/drive.js +2 -2
  2. package/dist/bundle/{all-profiles-WQTVOCIS.js → all-profiles-CYW6XBBS.js} +8 -8
  3. package/dist/bundle/{anthropic-YCA2AWIJ.js → anthropic-KW6KU36Y.js} +5 -5
  4. package/dist/bundle/{app-server-ZQOYUQJH.js → app-server-TCJZ333E.js} +53 -52
  5. package/dist/bundle/{bun-5NFIDHGM.js → bun-7SYKSCLA.js} +2 -2
  6. package/dist/bundle/{bun-sqlite-OAQE4M2E.js → bun-sqlite-RI7DR6RZ.js} +4 -4
  7. package/dist/bundle/{chunk-KZEOWOZV.js → chunk-234MHU76.js} +7 -7
  8. package/dist/bundle/{chunk-IGG4RBIZ.js → chunk-2623YE5I.js} +109 -98
  9. package/dist/bundle/{chunk-POD2GHQB.js → chunk-2AUXBJRX.js} +19 -19
  10. package/dist/bundle/{chunk-KEQ35HQQ.js → chunk-2UIMEMWU.js} +3 -3
  11. package/dist/bundle/{chunk-LNWRRK2H.js → chunk-33NVQGUY.js} +6 -6
  12. package/dist/bundle/{chunk-ZXD2I5ZQ.js → chunk-43QVYW3K.js} +49 -49
  13. package/dist/bundle/{chunk-BUALWXBT.js → chunk-4A2PIGC6.js} +1 -1
  14. package/dist/bundle/{chunk-3HNUH632.js → chunk-4CPLOMRK.js} +6 -6
  15. package/dist/bundle/{chunk-E656DAZT.js → chunk-4Z6TCU5T.js} +1 -1
  16. package/dist/bundle/{chunk-INVF3GXW.js → chunk-54O62JWP.js} +10 -10
  17. package/dist/bundle/{chunk-JA2YY7D4.js → chunk-5PLJKSG4.js} +7 -7
  18. package/dist/bundle/{chunk-XEETGCOC.js → chunk-6DHQTUB2.js} +1 -1
  19. package/dist/bundle/{chunk-ZKGYW63J.js → chunk-725OHXKR.js} +9 -9
  20. package/dist/bundle/chunk-7SH4JHYW.js +379 -0
  21. package/dist/bundle/{chunk-AO3NCZNT.js → chunk-7XKAVMCF.js} +8 -8
  22. package/dist/bundle/{chunk-PNUS224S.js → chunk-7YMDL4JQ.js} +8 -6
  23. package/dist/bundle/{chunk-CEUEXMIR.js → chunk-A4UNTWAX.js} +31 -27
  24. package/dist/bundle/{chunk-KYMGVMOS.js → chunk-ALJWBGD5.js} +1 -1
  25. package/dist/bundle/{chunk-QY3LK3OT.js → chunk-BSSCTWWK.js} +12 -12
  26. package/dist/bundle/{chunk-CCEVICWU.js → chunk-C6Z25IBJ.js} +49 -24
  27. package/dist/bundle/{chunk-ZJBRKR42.js → chunk-CB7SBYLO.js} +27 -27
  28. package/dist/bundle/{chunk-4VLUX3V5.js → chunk-CITFEQ6S.js} +1 -1
  29. package/dist/bundle/{chunk-Y73IZWRI.js → chunk-CKBHR7QO.js} +1 -1
  30. package/dist/bundle/{chunk-M2D4FXKY.js → chunk-CM7GAXGD.js} +5 -5
  31. package/dist/bundle/{chunk-OKSS7YUN.js → chunk-DLAFGSTN.js} +1 -1
  32. package/dist/bundle/{chunk-T7UZHKAS.js → chunk-DO4PDQY5.js} +2 -2
  33. package/dist/bundle/{chunk-P3T2SZW2.js → chunk-DW46P2DY.js} +1 -1
  34. package/dist/bundle/{chunk-Q3VG3UYV.js → chunk-F7UUZATI.js} +11 -11
  35. package/dist/bundle/{chunk-7SYSC7KX.js → chunk-FCJAHD4R.js} +2 -2
  36. package/dist/bundle/{chunk-QBECV7NO.js → chunk-FDWYPONW.js} +46 -34
  37. package/dist/bundle/{chunk-4SSUKRO4.js → chunk-FG4XXZZE.js} +2 -2
  38. package/dist/bundle/{chunk-DTHWL5YU.js → chunk-FJW3DDCF.js} +5 -5
  39. package/dist/bundle/{chunk-JHBX53SK.js → chunk-G6QF5KWF.js} +35 -35
  40. package/dist/bundle/{chunk-4J7UGHPK.js → chunk-G7DCVJ4F.js} +5 -5
  41. package/dist/bundle/{chunk-ZP735UUT.js → chunk-GR5GGZKH.js} +3 -3
  42. package/dist/bundle/{chunk-OL22OOIW.js → chunk-GVCN3GLZ.js} +16 -4
  43. package/dist/bundle/{chunk-2M5XEGVE.js → chunk-H47W2J6S.js} +638 -809
  44. package/dist/bundle/{chunk-HGWMX7BM.js → chunk-HQVJK5E7.js} +44 -22
  45. package/dist/bundle/{chunk-M6FQOGUW.js → chunk-HX7Y2ASG.js} +351 -282
  46. package/dist/bundle/{chunk-FSAM4Y2S.js → chunk-I7UH5CTA.js} +8 -8
  47. package/dist/bundle/{chunk-FABKIQ24.js → chunk-IDUNJCFO.js} +2 -2
  48. package/dist/bundle/{chunk-652YTDT5.js → chunk-IWFBAWZK.js} +15 -15
  49. package/dist/bundle/{chunk-3XX52F42.js → chunk-JEOYFKUK.js} +2 -2
  50. package/dist/bundle/{chunk-RTIMGPLN.js → chunk-KYVXMEBC.js} +3 -3
  51. package/dist/bundle/{chunk-IFM2APQB.js → chunk-LJAX6YCF.js} +2 -2
  52. package/dist/bundle/{chunk-R7XMCREL.js → chunk-LONV6HIK.js} +20 -20
  53. package/dist/bundle/{chunk-G75FZQAZ.js → chunk-NHBUTCNR.js} +10 -10
  54. package/dist/bundle/{chunk-5ZJHQ4TN.js → chunk-NPSZPUK6.js} +2 -2
  55. package/dist/bundle/{chunk-53UWCVSU.js → chunk-NSIFQ5OP.js} +1 -1
  56. package/dist/bundle/{chunk-HURI56SB.js → chunk-O6IOL6RX.js} +21 -21
  57. package/dist/bundle/{chunk-IA6LNKCF.js → chunk-PAXKALHV.js} +5 -5
  58. package/dist/bundle/{chunk-Z54E5LKF.js → chunk-PDGECM5D.js} +7 -7
  59. package/dist/bundle/{chunk-5OMLYNYB.js → chunk-PEOCBV2Z.js} +8 -8
  60. package/dist/bundle/{chunk-TATRMMOG.js → chunk-PQJYM5ES.js} +3 -3
  61. package/dist/bundle/{chunk-XGJUEH5C.js → chunk-PQYVPCJ2.js} +26 -26
  62. package/dist/bundle/{chunk-3CQNJKJT.js → chunk-PSNHPFSK.js} +1 -1
  63. package/dist/bundle/{chunk-6DDXB5WB.js → chunk-Q765VPZY.js} +2 -2
  64. package/dist/bundle/{chunk-YOABRW2M.js → chunk-R276546S.js} +1 -1
  65. package/dist/bundle/{chunk-QSDXVUJG.js → chunk-RNSP57TC.js} +4 -4
  66. package/dist/bundle/{chunk-VAETCXRI.js → chunk-UC22Q5KU.js} +11 -11
  67. package/dist/bundle/{chunk-EXYEDKTX.js → chunk-UR32UWTQ.js} +2 -2
  68. package/dist/bundle/{chunk-YROVFHPJ.js → chunk-VJZST5RD.js} +2 -2
  69. package/dist/bundle/{chunk-MMOG7ZVF.js → chunk-VSOLLTYT.js} +2 -2
  70. package/dist/bundle/{chunk-IUZ4PT2V.js → chunk-VZ2I62HN.js} +2 -2
  71. package/dist/bundle/{chunk-CTIQ77AB.js → chunk-W7IK7E4B.js} +17 -17
  72. package/dist/bundle/{chunk-C4PNAHI4.js → chunk-WBTVGFXI.js} +11 -11
  73. package/dist/bundle/{chunk-P6VN5UB4.js → chunk-WLFUBNFX.js} +4 -4
  74. package/dist/bundle/{chunk-Q27HCATD.js → chunk-WQJBAWQP.js} +534 -348
  75. package/dist/bundle/{chunk-4OLWMHS6.js → chunk-WQRGA75U.js} +15 -3
  76. package/dist/bundle/{chunk-5WN7JHQE.js → chunk-WUX7AUOQ.js} +26 -26
  77. package/dist/bundle/{chunk-VAK2Q2XG.js → chunk-X6ID5EAR.js} +16 -16
  78. package/dist/bundle/{chunk-5Z63NTC7.js → chunk-XOLQSCMF.js} +6 -6
  79. package/dist/bundle/{chunk-EY4CUQW2.js → chunk-YKZ4IPLB.js} +26 -9
  80. package/dist/bundle/{chunk-24TOKSZE.js → chunk-YNFELLNQ.js} +2 -2
  81. package/dist/bundle/{chunk-JSMPSOEM.js → chunk-YVPHJHIL.js} +3 -3
  82. package/dist/bundle/{chunk-QNLD7Y6Z.js → chunk-Z47LOJUS.js} +7 -7
  83. package/dist/bundle/{chunk-NHRJW3PH.js → chunk-ZDLIO76S.js} +2 -2
  84. package/dist/bundle/{chunk-OQEBGY74.js → chunk-ZNZUZGSV.js} +54 -47
  85. package/dist/bundle/{chunk-6E4PFCQ4.js → chunk-ZSXRDF6I.js} +1 -1
  86. package/dist/bundle/{chunk-UVPKSZSC.js → chunk-ZWSG7OCA.js} +4 -4
  87. package/dist/bundle/command-contract-I2YB5IXI.js +38 -0
  88. package/dist/bundle/{decode-YZRTP54O.js → decode-EDN2ARXZ.js} +19 -17
  89. package/dist/bundle/drive.js +7 -7
  90. package/dist/bundle/{echarts-C6HUK2FL.js → echarts-GXY34GHA.js} +2 -2
  91. package/dist/bundle/{embed-QRQ7ITFC.js → embed-3GSQIQXE.js} +5 -5
  92. package/dist/bundle/{embedder-EZDB3JPA.js → embedder-6ULWRG3R.js} +8 -8
  93. package/dist/bundle/{entry-4WQQKSYG.js → entry-IPRJLFHO.js} +6 -6
  94. package/dist/bundle/failure-4CVEVY45.js +37 -0
  95. package/dist/bundle/{first-run-ZAS4OV3T.js → first-run-FGHGWHC2.js} +9 -9
  96. package/dist/bundle/first-screen-M62KTPZG.js +36 -0
  97. package/dist/bundle/{google-KNILTIDW.js → google-BD3ZNFVJ.js} +9 -9
  98. package/dist/bundle/google-api-BDUWZMRV.js +83 -0
  99. package/dist/bundle/{identity-VBCGUXT5.js → identity-QLBSASO5.js} +2 -2
  100. package/dist/bundle/{instructions-II4M2WL3.js → instructions-K5BEQM4C.js} +1 -1
  101. package/dist/bundle/{login-4JACQVMD.js → login-VNZKRSAD.js} +65 -64
  102. package/dist/bundle/{mcp-6ZIAWU3N.js → mcp-5SNSMI2M.js} +82 -81
  103. package/dist/bundle/mcp-JZSYPQA4.js +96 -0
  104. package/dist/bundle/{mcp-ZYZ4DFW2.js → mcp-WSGVVZWI.js} +2 -2
  105. package/dist/bundle/{node-LIN7L4VQ.js → node-ZYWB7IET.js} +2 -2
  106. package/dist/bundle/{node-sqlite-VAH4KZN3.js → node-sqlite-J3OODPYK.js} +4 -4
  107. package/dist/bundle/{oauth-QUE3VCTU.js → oauth-L4VTCBLF.js} +6 -6
  108. package/dist/bundle/{open-DQ3EVYPB.js → open-SGUN7ZVF.js} +3 -3
  109. package/dist/bundle/openai-RLVISEDH.js +251 -0
  110. package/dist/bundle/{process-46XDWPVW.js → process-ZXO2MWRJ.js} +1 -1
  111. package/dist/bundle/{program-X3CZ4XDN.js → program-6S5EH7BS.js} +105 -103
  112. package/dist/bundle/{prompt-SAZYCZV3.js → prompt-AUWTBLO7.js} +4 -4
  113. package/dist/bundle/{reasons-366PI7OV.js → reasons-M5AKCNCU.js} +3 -3
  114. package/dist/bundle/{recognize-SSBOHOTW.js → recognize-ORX2UBQW.js} +5 -3
  115. package/dist/bundle/{remote-EL3FWCQE.js → remote-AGIJY73X.js} +6 -6
  116. package/dist/bundle/{rerank-RPIQRJIW.js → rerank-R6PE44M5.js} +6 -6
  117. package/dist/bundle/{serve-AX44DIKK.js → serve-VOBAQHAQ.js} +8 -8
  118. package/dist/bundle/server-24PS4M7U.js +70 -0
  119. package/dist/bundle/server-G6HFZ2CK.js +57 -0
  120. package/dist/bundle/{services-K4UOEMQD.js → services-HZFTTZSF.js} +35 -28
  121. package/dist/bundle/{sqlite-runtime-N7N3EYGH.js → sqlite-runtime-DTGPR2T2.js} +4 -4
  122. package/dist/bundle/{state-C3S5FD7V.js → state-WG3JKJM3.js} +5 -5
  123. package/dist/bundle/{store-4N3NBUGX.js → store-33VHIMEO.js} +14 -14
  124. package/dist/bundle/{store-QV4ZNEQ3.js → store-EV72MT5U.js} +16 -16
  125. package/dist/bundle/store-maintenance-command-ZTUEI4EC.js +58 -0
  126. package/dist/bundle/tokens-XDQXUFDQ.js +104 -0
  127. package/dist/commands/search.js +1 -1
  128. package/dist/commands/search.js.map +1 -1
  129. package/dist/contract-overrides.js +1 -1
  130. package/dist/contract-overrides.js.map +1 -1
  131. package/dist/knowledge-query.d.ts +1 -1
  132. package/dist/store.d.ts.map +1 -1
  133. package/dist/store.js +1 -0
  134. package/dist/store.js.map +1 -1
  135. package/dist/version.d.ts +1 -1
  136. package/dist/version.js +1 -1
  137. package/package.json +3 -3
  138. package/dist/bundle/command-contract-TAWVO2G3.js +0 -38
  139. package/dist/bundle/failure-EEJGMWEP.js +0 -37
  140. package/dist/bundle/first-screen-6ICWD2N3.js +0 -36
  141. package/dist/bundle/google-api-CZACYX5T.js +0 -82
  142. package/dist/bundle/mcp-2BR2EX7L.js +0 -95
  143. package/dist/bundle/server-DCJIGUW2.js +0 -56
  144. package/dist/bundle/server-WWQSQBFT.js +0 -69
  145. package/dist/bundle/store-maintenance-command-QL4AECBD.js +0 -57
  146. package/dist/bundle/tokens-Y7HCOXOA.js +0 -103
  147. /package/dist/bundle/{chunk-2WNDZFGG.js → chunk-62EDJKGP.js} +0 -0
  148. /package/dist/bundle/{chunk-VDZZ46RT.js → chunk-FQRJWVEB.js} +0 -0
@@ -2,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  QUERY_REASONS
5
- } from "./chunk-G75FZQAZ.js";
5
+ } from "./chunk-NHBUTCNR.js";
6
6
  import {
7
7
  defineReasons
8
- } from "./chunk-EY4CUQW2.js";
8
+ } from "./chunk-YKZ4IPLB.js";
9
9
  import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/errors/reasons.js
13
+ // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/errors/reasons.js
14
14
  var validation = /* @__PURE__ */ __name((reason, message) => [reason, "validation_error", message], "validation");
15
15
  var QUERY = [
16
16
  ["query.aborted", "the search was stopped before it finished"],
@@ -75,6 +75,10 @@ var OTHERS = [
75
75
  ["calendar.read-only", "permission_error", "the calendar takes no new events from this account"],
76
76
  ["busy.offline", "permission_error", "calendars busy asks the provider; --offline was given"],
77
77
  validation("busy.no-calendars", "no calendar syncs and no person was named, so there is nobody to ask"),
78
+ ["search.offline", "permission_error", "search --backend server asks the provider; --offline was given"],
79
+ validation("search.no-calendars", "no calendar of this profile syncs yet, so the provider has nothing to search"),
80
+ validation("search.server-options", "search --backend server takes neither --exact, --cursor nor --newest"),
81
+ validation("search.one-backend", "search answers from one backend at a time: archive or server"),
78
82
  validation("store.refused", "the local store refused the document text"),
79
83
  ["store.not-writable", "permission_error", "the message store cannot be written from this process"],
80
84
  [
@@ -94,6 +98,13 @@ var OTHERS = [
94
98
  validation("memory.evidence-required", "a memory needs its evidence"),
95
99
  validation("memory.scope-required", "a memory needs its scope"),
96
100
  ["model.not-downloaded", "not_found", "the model is not downloaded on this machine"],
101
+ ["transcription.no-key", "authentication_error", "no OpenAI key is set for transcription"],
102
+ validation("transcription.too-large", "the audio is over the transcription provider's size limit"),
103
+ [
104
+ "transcription.quota-exhausted",
105
+ "permission_error",
106
+ "the transcription provider account has no credit or limit left"
107
+ ],
97
108
  validation("name.invalid", "the name is not valid"),
98
109
  validation("output.choose-fields", "at a terminal, --json names the fields it prints"),
99
110
  validation("output.one-object", "a report is one JSON object; --jsonl streams lists only"),
@@ -202,6 +213,7 @@ var DETAILS = [
202
213
  "reference",
203
214
  "remembered",
204
215
  "retry_at",
216
+ "retry_after_ms",
205
217
  "runtime",
206
218
  "saved",
207
219
  "scheduled_for",
@@ -8,11 +8,11 @@ import {
8
8
  MAX_FILE_BYTES,
9
9
  MAX_TEXT_CHARS,
10
10
  attachmentMaxBytes
11
- } from "./chunk-3XX52F42.js";
11
+ } from "./chunk-JEOYFKUK.js";
12
12
  import {
13
13
  CliError,
14
14
  isCliError
15
- } from "./chunk-EY4CUQW2.js";
15
+ } from "./chunk-YKZ4IPLB.js";
16
16
  import {
17
17
  importFrom,
18
18
  resolveFrom
@@ -16632,20 +16632,20 @@ var require_lib3 = __commonJS({
16632
16632
  }
16633
16633
  });
16634
16634
 
16635
- // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/attachments/extract.js
16635
+ // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/attachments/extract.js
16636
16636
  import { extname as extname2 } from "node:path";
16637
16637
 
16638
- // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/readers/engine.js
16638
+ // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/readers/engine.js
16639
16639
  import { readFileSync } from "node:fs";
16640
16640
  import { dirname, extname, join } from "node:path";
16641
16641
  import { fileURLToPath } from "node:url";
16642
16642
 
16643
- // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/attachments/container.js
16643
+ // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/attachments/container.js
16644
16644
  import { setImmediate as tick } from "node:timers/promises";
16645
16645
  import { crc32 } from "node:zlib";
16646
16646
  var import_xmldom = __toESM(require_lib(), 1);
16647
16647
 
16648
- // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/attachments/encoding.js
16648
+ // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/attachments/encoding.js
16649
16649
  var import_chardet = __toESM(require_lib2(), 1);
16650
16650
  var import_iconv_lite = __toESM(require_lib3(), 1);
16651
16651
  var SAMPLE = 65536;
@@ -16747,7 +16747,7 @@ var decodeXml = /* @__PURE__ */ __name((bytes) => {
16747
16747
  return result.text;
16748
16748
  }, "decodeXml");
16749
16749
 
16750
- // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/attachments/container.js
16750
+ // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/attachments/container.js
16751
16751
  var MAX_PART = 10 * 1024 * 1024;
16752
16752
  var MAX_ENTRIES = 1e3;
16753
16753
  var decoder = new TextDecoder("utf-8", { fatal: true });
@@ -16962,7 +16962,7 @@ var elements = /* @__PURE__ */ __name((node, name, namespace) => {
16962
16962
  return found;
16963
16963
  }, "elements");
16964
16964
 
16965
- // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/readers/engine.js
16965
+ // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/readers/engine.js
16966
16966
  var BUILT_IN = ["unpdf", "mammoth", "word-extractor", "linkedom", "defuddle/node"];
16967
16967
  var ENGINES = [...BUILT_IN, "@napi-rs/canvas"];
16968
16968
  var isMissing = /* @__PURE__ */ __name((error, name) => error?.code === "ERR_MODULE_NOT_FOUND" && String(error.message).includes(name), "isMissing");
@@ -17020,7 +17020,7 @@ var derived = /* @__PURE__ */ __name((bytes, extractor, read) => {
17020
17020
  }
17021
17021
  }, "derived");
17022
17022
 
17023
- // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/readers/image/index.js
17023
+ // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/readers/image/index.js
17024
17024
  var IMAGES = /* @__PURE__ */ new Set([".jpg", ".jpeg", ".png", ".webp", ".gif", ".heic", ".tif", ".tiff", ".bmp"]);
17025
17025
  var image = {
17026
17026
  id: "image",
@@ -17029,7 +17029,7 @@ var image = {
17029
17029
  read: /* @__PURE__ */ __name(async () => ({ status: "needs-agent" }), "read")
17030
17030
  };
17031
17031
 
17032
- // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/readers/doc/index.js
17032
+ // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/readers/doc/index.js
17033
17033
  var OLE = "\xD0\xCF\xE0\xA1\xB1\xE1";
17034
17034
  var doc = {
17035
17035
  id: "doc",
@@ -17041,7 +17041,7 @@ var doc = {
17041
17041
  }), "read")
17042
17042
  };
17043
17043
 
17044
- // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/readers/docx/index.js
17044
+ // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/readers/docx/index.js
17045
17045
  var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
17046
17046
  var docx = {
17047
17047
  id: "docx",
@@ -17054,7 +17054,7 @@ var docx = {
17054
17054
  }), "read")
17055
17055
  };
17056
17056
 
17057
- // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/attachments/markup.js
17057
+ // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/attachments/markup.js
17058
17058
  var import_iconv_lite2 = __toESM(require_lib3(), 1);
17059
17059
  var RTF_SKIPPED = /* @__PURE__ */ new Set([
17060
17060
  "fonttbl",
@@ -17230,7 +17230,7 @@ var htmlText = /* @__PURE__ */ __name((source) => {
17230
17230
  }, "htmlText");
17231
17231
  var safeChar = /* @__PURE__ */ __name((code, fallback) => code > 0 && code <= 1114111 ? String.fromCodePoint(code) : fallback, "safeChar");
17232
17232
 
17233
- // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/readers/html/page.js
17233
+ // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/readers/html/page.js
17234
17234
  var clean = /* @__PURE__ */ __name((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim() : "", "clean");
17235
17235
  var namesIn = /* @__PURE__ */ __name((value) => [value].flat().map((entry) => typeof entry === "string" ? clean(entry) : clean(entry?.name)).filter(Boolean).join(", "), "namesIn");
17236
17236
  var jsonLdNodes = /* @__PURE__ */ __name((document) => {
@@ -17286,7 +17286,7 @@ var markdownSections = /* @__PURE__ */ __name((text) => {
17286
17286
  return found.map((section, index) => ({ ...section, end: found[index + 1]?.start ?? text.length }));
17287
17287
  }, "markdownSections");
17288
17288
 
17289
- // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/readers/html/index.js
17289
+ // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/readers/html/index.js
17290
17290
  var HTML = /* @__PURE__ */ new Set([".html", ".htm", ".xhtml"]);
17291
17291
  var first = /* @__PURE__ */ __name((...values) => values.find((value) => typeof value === "string" && value !== ""), "first");
17292
17292
  var loaded = /* @__PURE__ */ __name(async (load, name) => {
@@ -17357,10 +17357,10 @@ var html = {
17357
17357
  }, "read")
17358
17358
  };
17359
17359
 
17360
- // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/attachments/documents.js
17360
+ // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/attachments/documents.js
17361
17361
  import { posix } from "node:path";
17362
17362
 
17363
- // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/attachments/sheets.js
17363
+ // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/attachments/sheets.js
17364
17364
  var columnName = /* @__PURE__ */ __name((column) => {
17365
17365
  let name = "";
17366
17366
  for (let rest = column; rest > 0; rest = Math.floor((rest - 1) / 26))
@@ -17415,7 +17415,7 @@ var sheetText = /* @__PURE__ */ __name((sheets2, maxChars = MAX_TEXT_CHARS) => {
17415
17415
  return { text: parts.join("").trim(), truncated: false };
17416
17416
  }, "sheetText");
17417
17417
 
17418
- // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/attachments/documents.js
17418
+ // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/attachments/documents.js
17419
17419
  var OFFICE = "urn:oasis:names:tc:opendocument:xmlns:office:1.0";
17420
17420
  var TEXT = "urn:oasis:names:tc:opendocument:xmlns:text:1.0";
17421
17421
  var TABLE = "urn:oasis:names:tc:opendocument:xmlns:table:1.0";
@@ -17830,7 +17830,7 @@ var readDocument = /* @__PURE__ */ __name(async (bytes, kind, signal) => {
17830
17830
  }
17831
17831
  }, "readDocument");
17832
17832
 
17833
- // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/readers/office/index.js
17833
+ // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/readers/office/index.js
17834
17834
  var office = {
17835
17835
  id: "office",
17836
17836
  version: documentExtractor("odt"),
@@ -17841,7 +17841,7 @@ var office = {
17841
17841
  }, "read")
17842
17842
  };
17843
17843
 
17844
- // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/readers/pdf/index.js
17844
+ // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/readers/pdf/index.js
17845
17845
  var pdf = {
17846
17846
  id: "pdf",
17847
17847
  version: "unpdf",
@@ -17908,7 +17908,7 @@ var pdf = {
17908
17908
  }), "read")
17909
17909
  };
17910
17910
 
17911
- // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/readers/plain/index.js
17911
+ // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/readers/plain/index.js
17912
17912
  var PLAIN = /* @__PURE__ */ new Set([".txt", ".md", ".markdown", ".csv", ".tsv", ".json", ".log"]);
17913
17913
  var isPlain = /* @__PURE__ */ __name((hint) => PLAIN.has(extensionOf(hint)) || hint.mime?.startsWith("text/") || hint.mime === "application/json", "isPlain");
17914
17914
  var readPlain = /* @__PURE__ */ __name((bytes) => {
@@ -17928,7 +17928,7 @@ var plain = {
17928
17928
  read: /* @__PURE__ */ __name(async (bytes) => readPlain(bytes), "read")
17929
17929
  };
17930
17930
 
17931
- // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/readers/rtf/index.js
17931
+ // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/readers/rtf/index.js
17932
17932
  var rtf = {
17933
17933
  id: "rtf",
17934
17934
  version: "v1",
@@ -17936,10 +17936,10 @@ var rtf = {
17936
17936
  read: /* @__PURE__ */ __name(async (bytes) => derived(bytes, "rtf:v1", rtfText), "read")
17937
17937
  };
17938
17938
 
17939
- // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
17939
+ // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
17940
17940
  import { basename } from "node:path";
17941
17941
 
17942
- // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/attachments/csv-spans.js
17942
+ // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/attachments/csv-spans.js
17943
17943
  var delimitedSpans = /* @__PURE__ */ __name((text, delimiter, maxCells = 1e4) => {
17944
17944
  const cells = [];
17945
17945
  let row = 1, column = 1, start = 0, quoted = false, truncated = false;
@@ -17977,7 +17977,7 @@ var delimitedSpans = /* @__PURE__ */ __name((text, delimiter, maxCells = 1e4) =>
17977
17977
  return { cells, truncated };
17978
17978
  }, "delimitedSpans");
17979
17979
 
17980
- // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
17980
+ // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
17981
17981
  var DELIMITED = {
17982
17982
  ".csv": ",",
17983
17983
  ".tsv": " ",
@@ -18016,7 +18016,7 @@ var sheets = {
18016
18016
  }, "read")
18017
18017
  };
18018
18018
 
18019
- // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/readers/registry.js
18019
+ // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/readers/registry.js
18020
18020
  var BUILT_INS = [office, pdf, docx, doc, rtf, html, sheets, plain, image];
18021
18021
  var HEAD_BYTES = 1024;
18022
18022
  var readers = [...BUILT_INS];
@@ -18026,7 +18026,7 @@ var readWithRegistry = /* @__PURE__ */ __name(async (bytes, hint, context) => {
18026
18026
  return reader ? reader.read(bytes, hint, context) : { status: "unsupported" };
18027
18027
  }, "readWithRegistry");
18028
18028
 
18029
- // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/attachments/extract.js
18029
+ // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/attachments/extract.js
18030
18030
  var importEngine = /* @__PURE__ */ __name((name) => importFrom(new URL("attachments/extract.js", import.meta.resolve("@wirecat/cli-core")).href, name), "importEngine");
18031
18031
  var extensionOf2 = /* @__PURE__ */ __name(({ name, path }) => extname2(name ?? path).toLowerCase(), "extensionOf");
18032
18032
  var extractText = /* @__PURE__ */ __name(async (bytes, hint, load, signal, env = process.env) => {
@@ -1,57 +1,57 @@
1
1
  import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
- import {
4
- operations
5
- } from "./chunk-JSMPSOEM.js";
6
3
  import {
7
4
  fileId,
8
5
  inspectConfig,
9
6
  paths,
10
7
  profileName,
11
8
  refusal
12
- } from "./chunk-IA6LNKCF.js";
9
+ } from "./chunk-PAXKALHV.js";
10
+ import {
11
+ operations
12
+ } from "./chunk-YVPHJHIL.js";
13
13
  import {
14
14
  DRIVE_APP
15
- } from "./chunk-BUALWXBT.js";
15
+ } from "./chunk-4A2PIGC6.js";
16
16
  import {
17
17
  VERSION
18
- } from "./chunk-E656DAZT.js";
18
+ } from "./chunk-4Z6TCU5T.js";
19
19
  import {
20
20
  RecipientList,
21
21
  SendJournal,
22
22
  sendGuard
23
- } from "./chunk-ZJBRKR42.js";
23
+ } from "./chunk-CB7SBYLO.js";
24
24
  import {
25
25
  newOperationId
26
- } from "./chunk-2M5XEGVE.js";
26
+ } from "./chunk-H47W2J6S.js";
27
27
  import {
28
28
  profileFree
29
- } from "./chunk-QBECV7NO.js";
29
+ } from "./chunk-FDWYPONW.js";
30
30
  import {
31
31
  annotate,
32
32
  commandsDocument,
33
33
  describeProgram,
34
34
  flatten
35
- } from "./chunk-ZKGYW63J.js";
35
+ } from "./chunk-725OHXKR.js";
36
36
  import {
37
37
  guardedWrite
38
- } from "./chunk-R7XMCREL.js";
38
+ } from "./chunk-LONV6HIK.js";
39
39
  import {
40
40
  CEILING_KEY,
41
41
  LEVELS,
42
42
  layerPermissions,
43
43
  levelFor
44
- } from "./chunk-6DDXB5WB.js";
44
+ } from "./chunk-Q765VPZY.js";
45
45
  import {
46
46
  setupPermissionCeiling
47
- } from "./chunk-P6VN5UB4.js";
47
+ } from "./chunk-WLFUBNFX.js";
48
48
  import {
49
49
  readOnlyLockOf,
50
50
  readOnlyRefusal
51
- } from "./chunk-NHRJW3PH.js";
51
+ } from "./chunk-ZDLIO76S.js";
52
52
  import {
53
53
  writeSecurely
54
- } from "./chunk-HGWMX7BM.js";
54
+ } from "./chunk-HQVJK5E7.js";
55
55
  import {
56
56
  CliError,
57
57
  array,
@@ -70,7 +70,7 @@ import {
70
70
  string,
71
71
  unknown,
72
72
  writes
73
- } from "./chunk-EY4CUQW2.js";
73
+ } from "./chunk-YKZ4IPLB.js";
74
74
  import {
75
75
  __name
76
76
  } from "./chunk-ZVVMGPBJ.js";
@@ -2,23 +2,23 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  storePath
5
- } from "./chunk-YROVFHPJ.js";
5
+ } from "./chunk-VJZST5RD.js";
6
6
  import {
7
7
  resolvePaths,
8
8
  singleLine
9
- } from "./chunk-HGWMX7BM.js";
9
+ } from "./chunk-HQVJK5E7.js";
10
10
  import {
11
11
  CliError
12
- } from "./chunk-EY4CUQW2.js";
12
+ } from "./chunk-YKZ4IPLB.js";
13
13
  import {
14
14
  __name
15
15
  } from "./chunk-ZVVMGPBJ.js";
16
16
 
17
- // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/store/shared-config.js
17
+ // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/store/shared-config.js
18
18
  import { mkdirSync, readFileSync, renameSync, statSync, writeFileSync } from "node:fs";
19
19
  import { dirname, join, resolve } from "node:path";
20
20
 
21
- // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/domain/task-categories.js
21
+ // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/domain/task-categories.js
22
22
  var DEFAULT_TASK_CATEGORIES = [
23
23
  {
24
24
  name: "taxes",
@@ -773,7 +773,7 @@ var storedTaskCategories = /* @__PURE__ */ __name((json) => {
773
773
  }
774
774
  }, "storedTaskCategories");
775
775
 
776
- // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/store/shared-config.js
776
+ // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/store/shared-config.js
777
777
  var SECTION = "task_categories";
778
778
  var sharedConfigPath = /* @__PURE__ */ __name((store, env = process.env) => {
779
779
  const paths = resolvePaths({ appName: "WireCat", prefix: "WIRECAT", env });
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/errors.js
7
+ // node_modules/.pnpm/@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/errors.js
8
8
  var errorCodes = [
9
9
  "validation_error",
10
10
  "configuration_error",
@@ -1272,7 +1272,7 @@ function unwrap(schema) {
1272
1272
  }
1273
1273
  __name(unwrap, "unwrap");
1274
1274
 
1275
- // node_modules/.pnpm/@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/effects.js
1275
+ // node_modules/.pnpm/@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/effects.js
1276
1276
  var EFFECT_LEVELS = ["none", "read", "write"];
1277
1277
  var effectsSchema = strictObject({
1278
1278
  remote: picklist(EFFECT_LEVELS),
@@ -1909,7 +1909,7 @@ function toStandardJsonSchema(schema) {
1909
1909
  }
1910
1910
  __name(toStandardJsonSchema, "toStandardJsonSchema");
1911
1911
 
1912
- // node_modules/.pnpm/@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/registry.js
1912
+ // node_modules/.pnpm/@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/registry.js
1913
1913
  var word = pipe(string(), regex(/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/, "a lower-case word, words joined by -"));
1914
1914
  var SNAKE_CASE = /^[a-z][a-z0-9]*(_[a-z0-9]+)*$/;
1915
1915
  var text = pipe(string(), regex(/\S/, "must not be empty"));
@@ -1951,7 +1951,7 @@ var fill = /* @__PURE__ */ __name((template, values) => template.replace(PLACEHO
1951
1951
  return String(value);
1952
1952
  }), "fill");
1953
1953
 
1954
- // node_modules/.pnpm/@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/output.js
1954
+ // node_modules/.pnpm/@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/output.js
1955
1955
  var MAX_NEXT_STEPS = 2;
1956
1956
  var isoTime = pipe(string(), isoTimestamp("an ISO 8601 time in UTC"), endsWith("Z", "an ISO 8601 time in UTC, ending in `Z`"));
1957
1957
  var reference = pipe(string(), regex(/^[a-z]+:\S+$/, "a reference such as `note:42`"));
@@ -1986,14 +1986,25 @@ var missingSchema = strictObject({
1986
1986
  step: optional(dottedId)
1987
1987
  });
1988
1988
  var limit = pipe(number(), integer(), minValue(1));
1989
+ var totalSchema = strictObject({
1990
+ value: pipe(number(), integer(), minValue(0)),
1991
+ relation: picklist(["eq", "gte"])
1992
+ });
1989
1993
  var pageSchema = variant("mode", [
1990
1994
  strictObject({
1991
1995
  mode: literal("page"),
1992
1996
  limit,
1993
1997
  has_more: boolean(),
1994
- next_page: optional(pipe(number(), integer(), minValue(2)))
1998
+ next_page: optional(pipe(number(), integer(), minValue(2))),
1999
+ total: optional(totalSchema)
1995
2000
  }),
1996
- strictObject({ mode: literal("cursor"), limit, has_more: boolean(), next_cursor: optional(text) })
2001
+ strictObject({
2002
+ mode: literal("cursor"),
2003
+ limit,
2004
+ has_more: boolean(),
2005
+ next_cursor: optional(text),
2006
+ total: optional(totalSchema)
2007
+ })
1997
2008
  ]);
1998
2009
  var issueSchema = strictObject({
1999
2010
  code: picklist(errorCodes),
@@ -2036,7 +2047,7 @@ var jsonlOf = /* @__PURE__ */ __name(({ items, page, meta }) => [
2036
2047
  JSON.stringify({ type: "end", complete: meta.complete, ...meta.issues ? { issues: meta.issues } : {}, page })
2037
2048
  ].join("\n"), "jsonlOf");
2038
2049
 
2039
- // node_modules/.pnpm/@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/errors.js
2050
+ // node_modules/.pnpm/@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/errors.js
2040
2051
  var CRASH_CODE = "internal_error";
2041
2052
  var CRASH_REASON = "command.crashed";
2042
2053
  var errorObjectSchema = strictObject({
@@ -2083,6 +2094,12 @@ var BASE_REASONS = defineReasons([
2083
2094
  { reason: "auth.failed", code: "authentication_error", message: "the sign-in did not work", details: [] },
2084
2095
  { reason: "access.denied", code: "permission_error", message: "this account may not do that", details: [] },
2085
2096
  { reason: "item.not-found", code: "not_found", message: "nothing found by that name", details: [] },
2097
+ {
2098
+ reason: "tool.not-installed",
2099
+ code: "not_found",
2100
+ message: "no wcat-<name> program by that name is on PATH",
2101
+ details: ["tool", "installed"]
2102
+ },
2086
2103
  {
2087
2104
  reason: "confirmation.required",
2088
2105
  code: "confirmation_required",
@@ -2117,7 +2134,7 @@ var BASE_REASONS = defineReasons([
2117
2134
  { reason: CRASH_REASON, code: CRASH_CODE, message: "the command failed; this is a bug", details: [] }
2118
2135
  ]);
2119
2136
 
2120
- // node_modules/.pnpm/@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/steps.js
2137
+ // node_modules/.pnpm/@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/steps.js
2121
2138
  var SAME_COMMAND = "*";
2122
2139
  var commandPath = pipe(string(), regex(/^[a-z][a-z0-9-]*( [a-z][a-z0-9-]*)*$/, "a command path such as `messages sync`"));
2123
2140
  var stepSchema = union([
@@ -2196,7 +2213,7 @@ var STEPS = defineSteps([
2196
2213
  }
2197
2214
  ]);
2198
2215
 
2199
- // node_modules/.pnpm/@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/log.js
2216
+ // node_modules/.pnpm/@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/log.js
2200
2217
  var LOG_SEVERITIES = ["trace", "debug", "info", "warn", "error", "fatal"];
2201
2218
  var logRecordSchema = strictObject({
2202
2219
  time: isoTime,
@@ -8,12 +8,12 @@ import {
8
8
  ACCESS_SECONDS,
9
9
  REFRESH_SECONDS,
10
10
  readStored
11
- } from "./chunk-QSDXVUJG.js";
11
+ } from "./chunk-RNSP57TC.js";
12
12
  import {
13
13
  __name
14
14
  } from "./chunk-ZVVMGPBJ.js";
15
15
 
16
- // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/mcp/http/oauth.js
16
+ // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/mcp/http/oauth.js
17
17
  import { createHash, randomBytes, randomInt, timingSafeEqual } from "node:crypto";
18
18
  import { chmodSync, mkdirSync, renameSync, rmSync, writeFileSync } from "node:fs";
19
19
  import { dirname } from "node:path";
@@ -10,7 +10,7 @@ import {
10
10
  checkApiBody,
11
11
  checkApiParameter,
12
12
  parseApiJson
13
- } from "./chunk-M6FQOGUW.js";
13
+ } from "./chunk-HX7Y2ASG.js";
14
14
  import {
15
15
  CliError,
16
16
  array,
@@ -27,7 +27,7 @@ import {
27
27
  string,
28
28
  transform,
29
29
  unknown
30
- } from "./chunk-EY4CUQW2.js";
30
+ } from "./chunk-YKZ4IPLB.js";
31
31
  import {
32
32
  __name
33
33
  } from "./chunk-ZVVMGPBJ.js";
@@ -10299,7 +10299,7 @@ var operations = [
10299
10299
  }
10300
10300
  ];
10301
10301
 
10302
- // node_modules/.pnpm/@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/codegen/runtime.js
10302
+ // node_modules/.pnpm/@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/codegen/runtime.js
10303
10303
  var isLossless = /* @__PURE__ */ __name((input) => typeof input === "object" && input !== null && input.isLosslessNumber === true && typeof input.value === "string", "isLossless");
10304
10304
  var INTEGER = /^-?\d+$/;
10305
10305
  var INT64_MIN = -(2n ** 63n);
@@ -2,13 +2,13 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  LEVELS
5
- } from "./chunk-6DDXB5WB.js";
5
+ } from "./chunk-Q765VPZY.js";
6
6
  import {
7
7
  resolvePaths,
8
8
  singleLine,
9
9
  visibleControls,
10
10
  writeSecurely
11
- } from "./chunk-HGWMX7BM.js";
11
+ } from "./chunk-HQVJK5E7.js";
12
12
  import {
13
13
  CliError,
14
14
  array,
@@ -28,12 +28,12 @@ import {
28
28
  string,
29
29
  transform,
30
30
  unknown
31
- } from "./chunk-EY4CUQW2.js";
31
+ } from "./chunk-YKZ4IPLB.js";
32
32
  import {
33
33
  __name
34
34
  } from "./chunk-ZVVMGPBJ.js";
35
35
 
36
- // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/resolve.js
36
+ // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/resolve.js
37
37
  var isId = /* @__PURE__ */ __name((reference) => /^-?\d+$/.test(reference.trim()), "isId");
38
38
  var foldName = /* @__PURE__ */ __name((name) => name.normalize("NFC").replace(/[\uFE0E\uFE0F\u200D]/g, "").toLowerCase(), "foldName");
39
39
  var pickChat = /* @__PURE__ */ __name((reference, chats) => {
@@ -71,7 +71,7 @@ ${lines}`, { candidates });
71
71
  }, "ambiguous");
72
72
  var isPresent = /* @__PURE__ */ __name((value) => value !== null && value !== void 0, "isPresent");
73
73
 
74
- // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/domain/formatting.js
74
+ // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/domain/formatting.js
75
75
  var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "the messenger formatter returned invalid text spans"), "invalid");
76
76
  var validateFormattedText = /* @__PURE__ */ __name((formatted) => {
77
77
  const { text, spans } = formatted;
@@ -131,7 +131,7 @@ var visibleFormattedText = /* @__PURE__ */ __name((formatted) => {
131
131
  };
132
132
  }, "visibleFormattedText");
133
133
 
134
- // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/moderation/check.js
134
+ // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/moderation/check.js
135
135
  var INVITE = /max\.ru\/join\/|(t|telegram)\.me\/(\+|joinchat\/)|tg:\/\/join/i;
136
136
  var LINK = /https?:\/\/\S+/i;
137
137
  var STRENGTH = { report: 0, delete: 1, remove: 2 };
@@ -319,7 +319,7 @@ var nextPoint = /* @__PURE__ */ __name((rows, found) => {
319
319
  }, "nextPoint");
320
320
  var someUndone = /* @__PURE__ */ __name((rows) => rows.some(undone), "someUndone");
321
321
 
322
- // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/moderation/rules.js
322
+ // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/moderation/rules.js
323
323
  import { existsSync, readFileSync } from "node:fs";
324
324
  import { join } from "node:path";
325
325
  var RULE_ACTIONS = ["report", "delete", "remove"];
@@ -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-EY4CUQW2.js";
5
+ } from "./chunk-YKZ4IPLB.js";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/ports/app.js
10
+ // node_modules/.pnpm/@wirecat+cli-core@0.501.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e6af10c98f87b1454255e560646d3ddf/node_modules/@wirecat/cli-core/dist/ports/app.js
11
11
  var envName = /* @__PURE__ */ __name((app, name) => `${app.envPrefix}_${name}`, "envName");
12
12
  var readOnlyLockOf = /* @__PURE__ */ __name((app, env) => {
13
13
  const name = envName(app, "READ_ONLY");