@wirecat/drive-cli 0.45.0 → 0.45.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (149) hide show
  1. package/dist/bin/drive.js +2 -2
  2. package/dist/bundle/{all-profiles-LTHNCWQW.js → all-profiles-O7CNQ7FO.js} +8 -8
  3. package/dist/bundle/{anthropic-NOJEF3V2.js → anthropic-6T67J2CE.js} +5 -5
  4. package/dist/bundle/app-server-BVBZT3UY.js +237 -0
  5. package/dist/bundle/{bun-ADJVI4HY.js → bun-O6RL6LRQ.js} +2 -2
  6. package/dist/bundle/{bun-sqlite-GNXLBF2A.js → bun-sqlite-54W7JUY3.js} +4 -4
  7. package/dist/bundle/{chunk-IGB5CJCA.js → chunk-2DLAJGRN.js} +1 -1
  8. package/dist/bundle/{chunk-NQ6LLDDC.js → chunk-3HRDEJJW.js} +4 -4
  9. package/dist/bundle/{chunk-XPEWOPJR.js → chunk-3Z7WSD2A.js} +10 -8
  10. package/dist/bundle/{chunk-WPGCDWPU.js → chunk-44FV5JAS.js} +21 -21
  11. package/dist/bundle/{chunk-GX4WEMAG.js → chunk-4DW6QGEV.js} +11 -11
  12. package/dist/bundle/{chunk-IP4OK7RQ.js → chunk-4NGLRHWO.js} +1 -1
  13. package/dist/bundle/{chunk-LNB7BIZL.js → chunk-5MGIL5LW.js} +19 -17
  14. package/dist/bundle/{chunk-MWUITL6N.js → chunk-5TC3NCAF.js} +2 -2
  15. package/dist/bundle/{chunk-4UE7AVHZ.js → chunk-A3FU4RR6.js} +4 -4
  16. package/dist/bundle/{chunk-PIN5RZ3D.js → chunk-AIXLOMH4.js} +1 -1
  17. package/dist/bundle/{chunk-WZUJKUBK.js → chunk-AOOD3RMK.js} +7 -7
  18. package/dist/bundle/{chunk-Z4O6C7WR.js → chunk-AUS6TKP5.js} +35 -33
  19. package/dist/bundle/{chunk-5ZVLM6YR.js → chunk-B2J6FJNL.js} +1 -1
  20. package/dist/bundle/{chunk-OECPFZLP.js → chunk-BEXHAGXH.js} +96 -95
  21. package/dist/bundle/{chunk-3V6NPZY7.js → chunk-BHE7ZY2N.js} +45 -45
  22. package/dist/bundle/{chunk-GKHM6I64.js → chunk-BJ3JRO34.js} +7 -7
  23. package/dist/bundle/{chunk-2FTZBZOB.js → chunk-BQUPOB5H.js} +8 -8
  24. package/dist/bundle/{chunk-CDI67JSB.js → chunk-CFZWPIVC.js} +20 -20
  25. package/dist/bundle/{chunk-EVWXODYV.js → chunk-CKR3DVUK.js} +11 -11
  26. package/dist/bundle/{chunk-AN3GVZTU.js → chunk-CVIKKIGE.js} +1 -1
  27. package/dist/bundle/{chunk-7XWUOCGW.js → chunk-D67JGWSC.js} +2 -2
  28. package/dist/bundle/{chunk-UC44ZMQV.js → chunk-DDYR6DYL.js} +1 -1
  29. package/dist/bundle/{chunk-C6SMAEED.js → chunk-DL7D6Y3B.js} +199 -199
  30. package/dist/bundle/{chunk-PDH2QQQV.js → chunk-DORXXBFC.js} +7 -7
  31. package/dist/bundle/{chunk-DCTXOMOR.js → chunk-DXKVEOSS.js} +20 -2
  32. package/dist/bundle/{chunk-66N2DGGC.js → chunk-DXQEJWI3.js} +21 -14
  33. package/dist/bundle/{chunk-ZQNXKWUY.js → chunk-FEULDMWM.js} +258 -244
  34. package/dist/bundle/{chunk-TDC6JGDA.js → chunk-G3FAOS52.js} +2 -2
  35. package/dist/bundle/{chunk-HOIUIKWS.js → chunk-GHOWRW7E.js} +4 -3
  36. package/dist/bundle/{chunk-C4XP5T73.js → chunk-GNFHZZ55.js} +5 -5
  37. package/dist/bundle/{chunk-K4N2DKE5.js → chunk-GOR3Z2FR.js} +2 -2
  38. package/dist/bundle/{chunk-WQMVSQPP.js → chunk-GQW4GRYR.js} +6 -6
  39. package/dist/bundle/{chunk-Y5EJSZXV.js → chunk-GWPKIRNQ.js} +5 -5
  40. package/dist/bundle/{chunk-4TIC23D2.js → chunk-GYCUY4CL.js} +1 -1
  41. package/dist/bundle/{chunk-HA3WCVGY.js → chunk-HEPIOCHN.js} +51 -49
  42. package/dist/bundle/{chunk-DC4T3FNP.js → chunk-IAW5A7OR.js} +27 -27
  43. package/dist/bundle/{chunk-4TQSNQVV.js → chunk-IGMRWQP3.js} +25 -25
  44. package/dist/bundle/{chunk-65GGKAQ7.js → chunk-IKNU5A5Y.js} +3 -3
  45. package/dist/bundle/{chunk-ZPMLLONT.js → chunk-JVTVAZ5X.js} +19 -19
  46. package/dist/bundle/{chunk-A6ZKTNTZ.js → chunk-K74PQVQZ.js} +7 -7
  47. package/dist/bundle/{server-2UQDEWTS.js → chunk-K7FRUB33.js} +40 -63
  48. package/dist/bundle/{chunk-ZS635F4O.js → chunk-KADPV4YA.js} +2 -2
  49. package/dist/bundle/{chunk-ZIHLE7LG.js → chunk-KJMBV574.js} +3252 -3019
  50. package/dist/bundle/{chunk-ICKNJIGE.js → chunk-LHIL46I3.js} +2 -2
  51. package/dist/bundle/{chunk-LWT55XC5.js → chunk-LJARCTGL.js} +4 -4
  52. package/dist/bundle/{chunk-64WJYT2F.js → chunk-LOTQ2HMT.js} +9 -9
  53. package/dist/bundle/{chunk-V7GN5BI7.js → chunk-MAXN7COO.js} +1 -1
  54. package/dist/bundle/{chunk-LW2G4U6W.js → chunk-MFS52LTZ.js} +1 -1
  55. package/dist/bundle/{chunk-MJR2OTO4.js → chunk-MFSIOSUM.js} +6 -6
  56. package/dist/bundle/{chunk-YJX4X564.js → chunk-NB2N6L3R.js} +6 -6
  57. package/dist/bundle/{chunk-GTYY6BIE.js → chunk-NDNTLUPS.js} +2 -2
  58. package/dist/bundle/{chunk-TOYPN2XX.js → chunk-NLEB26GA.js} +2 -2
  59. package/dist/bundle/{chunk-7PVNJAQ2.js → chunk-NP3XLLN3.js} +3 -3
  60. package/dist/bundle/{chunk-LY26NW3I.js → chunk-NW7IMGRR.js} +1 -1
  61. package/dist/bundle/{chunk-NZIHPYY5.js → chunk-OWXTPXIQ.js} +11 -11
  62. package/dist/bundle/{chunk-BPBIBVFH.js → chunk-PDBBBUY7.js} +10 -10
  63. package/dist/bundle/{chunk-ZU732VCC.js → chunk-PH74B2VZ.js} +3 -3
  64. package/dist/bundle/{chunk-PJDO7AFZ.js → chunk-PJ7IQVOM.js} +2 -2
  65. package/dist/bundle/{chunk-CFT7UHF6.js → chunk-QTJUH3LS.js} +3 -3
  66. package/dist/bundle/{chunk-YE3J6DLY.js → chunk-QW36EOAM.js} +2 -2
  67. package/dist/bundle/{chunk-HLONHTSG.js → chunk-QWSRPXCJ.js} +4 -4
  68. package/dist/bundle/{chunk-LVDHWNJF.js → chunk-R2A3K7ZF.js} +5 -5
  69. package/dist/bundle/{chunk-SGOPYPVW.js → chunk-R2QRP7EJ.js} +9 -9
  70. package/dist/bundle/{chunk-35GRI4DI.js → chunk-RCS2SCX5.js} +5 -5
  71. package/dist/bundle/{chunk-CEO5HPRL.js → chunk-RJ633GFA.js} +2 -2
  72. package/dist/bundle/{chunk-N47CYWEM.js → chunk-SMHQA5J6.js} +13 -8
  73. package/dist/bundle/{chunk-YFLKH3NZ.js → chunk-SWMMR3FR.js} +2 -2
  74. package/dist/bundle/{chunk-P5KGFT7U.js → chunk-TRMIV3OA.js} +2 -2
  75. package/dist/bundle/{chunk-7NCG2SHR.js → chunk-VAGF723Z.js} +1 -1
  76. package/dist/bundle/{chunk-PWKXHDBQ.js → chunk-VCYFEWPD.js} +26 -26
  77. package/dist/bundle/{chunk-NKZ6V4JW.js → chunk-VHQNVG3J.js} +5 -5
  78. package/dist/bundle/{chunk-6KFA6HOM.js → chunk-VHT2WI4I.js} +19 -19
  79. package/dist/bundle/{chunk-QLZGLPJL.js → chunk-VYBOYBLX.js} +6 -6
  80. package/dist/bundle/{chunk-YJZBJ2TM.js → chunk-WUFCYDKB.js} +2 -2
  81. package/dist/bundle/{chunk-2YU3CXFD.js → chunk-XAZQTJXR.js} +40 -29
  82. package/dist/bundle/{chunk-I5EJHKNC.js → chunk-XEBFFKXO.js} +3 -3
  83. package/dist/bundle/{chunk-AH3SNVCV.js → chunk-XF5MFUEB.js} +15 -15
  84. package/dist/bundle/{chunk-VO4KOLQZ.js → chunk-ZBM4GEV2.js} +5 -4
  85. package/dist/bundle/command-contract-MXCBV3GJ.js +38 -0
  86. package/dist/bundle/drive.js +7 -7
  87. package/dist/bundle/{echarts-RFTK737T.js → echarts-LD3AI55P.js} +2 -2
  88. package/dist/bundle/{embed-5NAGJUMD.js → embed-FJKIIM43.js} +5 -5
  89. package/dist/bundle/{embedder-EWXLIGBY.js → embedder-NNQ5ZC25.js} +8 -8
  90. package/dist/bundle/{entry-YCPJ6H6U.js → entry-ZYSNPDSD.js} +6 -6
  91. package/dist/bundle/failure-MJJXFR63.js +37 -0
  92. package/dist/bundle/{first-run-LNAZDBB4.js → first-run-KA2UPZAU.js} +9 -9
  93. package/dist/bundle/first-screen-VQ3RXDMF.js +36 -0
  94. package/dist/bundle/{google-5FFKRHHC.js → google-ZYDFTHLN.js} +9 -9
  95. package/dist/bundle/google-api-2GT5PAW2.js +82 -0
  96. package/dist/bundle/{identity-53ZMPL2O.js → identity-JQFQXQIR.js} +2 -2
  97. package/dist/bundle/{instructions-FHNL7CMW.js → instructions-RZMSW3OC.js} +3 -1
  98. package/dist/bundle/{login-VXXZZR6G.js → login-JU6NKW5P.js} +64 -64
  99. package/dist/bundle/{mcp-F4XZO76F.js → mcp-2PZDI7WE.js} +77 -83
  100. package/dist/bundle/mcp-JOQMFGBC.js +95 -0
  101. package/dist/bundle/{mcp-IXFC2VVR.js → mcp-OQBZXELQ.js} +2 -2
  102. package/dist/bundle/{node-ZMCACJVS.js → node-ZRLYQL7J.js} +2 -2
  103. package/dist/bundle/{node-sqlite-QJQ5S7KS.js → node-sqlite-TXPSRROT.js} +4 -4
  104. package/dist/bundle/{oauth-TZFDPAFE.js → oauth-NAIBKERJ.js} +6 -6
  105. package/dist/bundle/{open-IYM25QTL.js → open-3P5EPXPV.js} +3 -3
  106. package/dist/bundle/{process-ZPTLNVQS.js → process-LL77573L.js} +1 -1
  107. package/dist/bundle/{program-YX7DZMPR.js → program-CZ55L6EW.js} +129 -151
  108. package/dist/bundle/{prompt-TGWTVIEK.js → prompt-3TX2SWOY.js} +4 -4
  109. package/dist/bundle/{reasons-Q5LOQESQ.js → reasons-GF2TYGX6.js} +3 -3
  110. package/dist/bundle/{recognize-AGPMWKIY.js → recognize-IFXOJHEA.js} +5 -5
  111. package/dist/bundle/{remote-QV7QSLAK.js → remote-663M42Y5.js} +6 -6
  112. package/dist/bundle/{rerank-HZKJJCS4.js → rerank-OT2F2DBV.js} +6 -6
  113. package/dist/bundle/{serve-NRJQOVT4.js → serve-PDNNI6O6.js} +8 -8
  114. package/dist/bundle/server-BFOEPMR7.js +56 -0
  115. package/dist/bundle/server-K566PJ7H.js +69 -0
  116. package/dist/bundle/{services-NZQWVMOE.js → services-5MCTECBU.js} +28 -28
  117. package/dist/bundle/{sqlite-runtime-6MXHTYYU.js → sqlite-runtime-BF3KDM7W.js} +4 -4
  118. package/dist/bundle/{state-IF2FLTSY.js → state-SZX65E74.js} +5 -5
  119. package/dist/bundle/{store-HVIBXOXS.js → store-TCWNLA3V.js} +14 -14
  120. package/dist/bundle/{store-HBD54IRL.js → store-UKPGGAPW.js} +16 -16
  121. package/dist/bundle/store-maintenance-command-QHLUVBTJ.js +57 -0
  122. package/dist/bundle/tokens-DFCFRF7I.js +103 -0
  123. package/dist/commands/mcp.d.ts.map +1 -1
  124. package/dist/commands/mcp.js +5 -9
  125. package/dist/commands/mcp.js.map +1 -1
  126. package/dist/contract-overrides.d.ts.map +1 -1
  127. package/dist/contract-overrides.js +13 -32
  128. package/dist/contract-overrides.js.map +1 -1
  129. package/dist/mcp.d.ts +1 -8
  130. package/dist/mcp.d.ts.map +1 -1
  131. package/dist/mcp.js +1 -8
  132. package/dist/mcp.js.map +1 -1
  133. package/dist/state.d.ts +8 -0
  134. package/dist/state.d.ts.map +1 -1
  135. package/dist/state.js +7 -0
  136. package/dist/state.js.map +1 -1
  137. package/dist/version.d.ts +1 -1
  138. package/dist/version.js +1 -1
  139. package/package.json +2 -2
  140. package/dist/bundle/command-contract-HX35D7KV.js +0 -38
  141. package/dist/bundle/failure-XBWHHBEW.js +0 -37
  142. package/dist/bundle/first-screen-P5NNFJD7.js +0 -36
  143. package/dist/bundle/google-api-TJCFOOAP.js +0 -82
  144. package/dist/bundle/mcp-2CJCJXSW.js +0 -95
  145. package/dist/bundle/server-R4JUHFSW.js +0 -56
  146. package/dist/bundle/store-maintenance-command-U3F4RGJB.js +0 -57
  147. package/dist/bundle/tokens-5D5YUA2Q.js +0 -103
  148. /package/dist/bundle/{chunk-IVQ6342B.js → chunk-O5EHUB2V.js} +0 -0
  149. /package/dist/bundle/{chunk-X5DFDGWS.js → chunk-Q2Z3VCM4.js} +0 -0
@@ -28,7 +28,7 @@ import {
28
28
  import {
29
29
  agentOf,
30
30
  clientHash
31
- } from "./chunk-XPEWOPJR.js";
31
+ } from "./chunk-3Z7WSD2A.js";
32
32
  import {
33
33
  __name
34
34
  } from "./chunk-ZVVMGPBJ.js";
@@ -540,7 +540,7 @@ function toError(value) {
540
540
  }
541
541
  __name(toError, "toError");
542
542
 
543
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/mcp/caller.js
543
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/mcp/caller.js
544
544
  var CALLER_META_KEY = "wirecat.dev/caller";
545
545
  var PROXY_CLIENT_NAME = "all-profiles";
546
546
  var NAME = /^[\w .@()/+-]{1,64}$/;
@@ -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-SGOPYPVW.js";
5
+ } from "./chunk-R2QRP7EJ.js";
6
6
  import {
7
7
  defineReasons
8
- } from "./chunk-GKHM6I64.js";
8
+ } from "./chunk-BJ3JRO34.js";
9
9
  import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/errors/reasons.js
13
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/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"],
@@ -57,6 +57,7 @@ var OTHERS = [
57
57
  ["extraction.invalid-proposals", "invalid_response", "the model's memory proposals could not be used"],
58
58
  validation("extraction.text-too-long", "the text is too long for memory extraction"),
59
59
  validation("file.locked", "another process holds the file's lock"),
60
+ ["mail.source-failed", "provider_error", "the mail server refused or did not complete a request"],
60
61
  ["mirror.partial", "provider_error", "some mirrored files were not synced"],
61
62
  ["profile.wrong-account", "authentication_error", "the signed-in source account does not match this profile"],
62
63
  validation("push.too-many-files", "the folder holds more files than one push takes"),
@@ -2,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  wirecatDirectory
5
- } from "./chunk-P5KGFT7U.js";
5
+ } from "./chunk-TRMIV3OA.js";
6
6
  import {
7
7
  CliError
8
- } from "./chunk-GKHM6I64.js";
8
+ } from "./chunk-BJ3JRO34.js";
9
9
  import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/speech/install.js
13
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/speech/install.js
14
14
  import { createHash, randomUUID } from "node:crypto";
15
15
  import { createReadStream, createWriteStream, mkdirSync, statSync } from "node:fs";
16
16
  import { rename, rm } from "node:fs/promises";
@@ -18,7 +18,7 @@ import { dirname, join } from "node:path";
18
18
  import { Readable, Transform } from "node:stream";
19
19
  import { pipeline } from "node:stream/promises";
20
20
 
21
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/speech/models.js
21
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/speech/models.js
22
22
  var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/csukuangfj/${repository}/resolve/${commit}/${name}`, "huggingFace");
23
23
  var gigaam = huggingFace("sherpa-onnx-nemo-transducer-punct-giga-am-v3-russian-2025-12-16", "a6039be7cee829a9044a69ac0ebaf1c191217c97");
24
24
  var gigaamCtc = huggingFace("sherpa-onnx-nemo-ctc-punct-giga-am-v3-russian-2025-12-16", "4fb5407ff028a69fec516cdf4c10fac9ddea7c16");
@@ -142,7 +142,7 @@ var speechModel = /* @__PURE__ */ __name((id) => {
142
142
  return model;
143
143
  }, "speechModel");
144
144
 
145
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/speech/install.js
145
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/speech/install.js
146
146
  var sharedModelsDirectory = /* @__PURE__ */ __name((kind, env = process.env) => join(wirecatDirectory(env), "models", kind), "sharedModelsDirectory");
147
147
  var modelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedModelsDirectory("audio", env), "modelsDirectory");
148
148
  var STALL_MS = 6e4;
@@ -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-GKHM6I64.js";
5
+ } from "./chunk-BJ3JRO34.js";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/errors/failures.js
10
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/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 failureKey = /* @__PURE__ */ __name((error) => isCliFailure(error) ? error.code : error instanceof Error ? error.name : "error", "failureKey");
13
13
 
@@ -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-P5KGFT7U.js";
5
+ } from "./chunk-TRMIV3OA.js";
6
6
  import {
7
7
  resolvePaths,
8
8
  singleLine
9
- } from "./chunk-6KFA6HOM.js";
9
+ } from "./chunk-VHT2WI4I.js";
10
10
  import {
11
11
  CliError
12
- } from "./chunk-GKHM6I64.js";
12
+ } from "./chunk-BJ3JRO34.js";
13
13
  import {
14
14
  __name
15
15
  } from "./chunk-ZVVMGPBJ.js";
16
16
 
17
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/shared-config.js
17
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/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.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/domain/task-categories.js
21
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/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.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/shared-config.js
776
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/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 });
@@ -5,17 +5,17 @@ import {
5
5
  checkConfigText,
6
6
  issueMessage,
7
7
  usableProfileName
8
- } from "./chunk-Z4O6C7WR.js";
8
+ } from "./chunk-AUS6TKP5.js";
9
9
  import {
10
10
  LEVELS
11
- } from "./chunk-PJDO7AFZ.js";
11
+ } from "./chunk-PJ7IQVOM.js";
12
12
  import {
13
13
  MAX_TEXT_CHARS
14
- } from "./chunk-MWUITL6N.js";
14
+ } from "./chunk-5TC3NCAF.js";
15
15
  import {
16
16
  resolvePaths,
17
17
  saveConfigFile
18
- } from "./chunk-6KFA6HOM.js";
18
+ } from "./chunk-VHT2WI4I.js";
19
19
  import {
20
20
  CliError,
21
21
  array,
@@ -36,7 +36,7 @@ import {
36
36
  strictObject,
37
37
  string,
38
38
  union
39
- } from "./chunk-GKHM6I64.js";
39
+ } from "./chunk-BJ3JRO34.js";
40
40
  import {
41
41
  __name
42
42
  } from "./chunk-ZVVMGPBJ.js";
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
 
4
4
  // dist/version.js
5
- var VERSION = "0.45.0";
5
+ var VERSION = "0.45.1";
6
6
 
7
7
  export {
8
8
  VERSION
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  answerOf,
5
5
  messengerContext
6
- } from "./chunk-DC4T3FNP.js";
6
+ } from "./chunk-IAW5A7OR.js";
7
7
  import {
8
8
  chatEventAnswer,
9
9
  memberAnswer,
@@ -12,17 +12,17 @@ import {
12
12
  serveRelay,
13
13
  typedQuery,
14
14
  withQuery
15
- } from "./chunk-ZPMLLONT.js";
15
+ } from "./chunk-JVTVAZ5X.js";
16
16
  import {
17
17
  renderMessages
18
- } from "./chunk-7XWUOCGW.js";
18
+ } from "./chunk-D67JGWSC.js";
19
19
  import {
20
20
  holdLock,
21
21
  lockPath,
22
22
  releaseLock,
23
23
  servingProfiles,
24
24
  takeLock
25
- } from "./chunk-7PVNJAQ2.js";
25
+ } from "./chunk-NP3XLLN3.js";
26
26
  import {
27
27
  RULES_VERSION,
28
28
  applyTaskRulesOnArrival,
@@ -31,7 +31,7 @@ import {
31
31
  openRequestTask,
32
32
  servicesFor,
33
33
  syncsOneChat
34
- } from "./chunk-C6SMAEED.js";
34
+ } from "./chunk-DL7D6Y3B.js";
35
35
  import {
36
36
  LOCAL_READ,
37
37
  LOCAL_WRITE,
@@ -53,39 +53,39 @@ import {
53
53
  snakeKeys,
54
54
  storeTable,
55
55
  withoutProviderRefs
56
- } from "./chunk-Z4O6C7WR.js";
56
+ } from "./chunk-AUS6TKP5.js";
57
57
  import {
58
58
  Command,
59
59
  annotate
60
- } from "./chunk-64WJYT2F.js";
60
+ } from "./chunk-LOTQ2HMT.js";
61
61
  import {
62
62
  holdersOf
63
- } from "./chunk-PIN5RZ3D.js";
63
+ } from "./chunk-AIXLOMH4.js";
64
64
  import {
65
65
  codeOf,
66
66
  currentRun
67
- } from "./chunk-CDI67JSB.js";
67
+ } from "./chunk-CFZWPIVC.js";
68
68
  import {
69
69
  failureKey
70
- } from "./chunk-K4N2DKE5.js";
70
+ } from "./chunk-GOR3Z2FR.js";
71
71
  import {
72
72
  levelFor
73
- } from "./chunk-PJDO7AFZ.js";
73
+ } from "./chunk-PJ7IQVOM.js";
74
74
  import {
75
75
  envName
76
- } from "./chunk-CEO5HPRL.js";
76
+ } from "./chunk-RJ633GFA.js";
77
77
  import {
78
78
  readSecret
79
- } from "./chunk-65GGKAQ7.js";
79
+ } from "./chunk-IKNU5A5Y.js";
80
80
  import {
81
81
  checkedOptions,
82
82
  range
83
- } from "./chunk-ICKNJIGE.js";
83
+ } from "./chunk-LHIL46I3.js";
84
84
  import {
85
85
  messagesFor,
86
86
  systemFor,
87
87
  validateImages
88
- } from "./chunk-ZS635F4O.js";
88
+ } from "./chunk-KADPV4YA.js";
89
89
  import {
90
90
  MIGRATIONS,
91
91
  drainNoteIndex,
@@ -112,26 +112,26 @@ import {
112
112
  storeClients,
113
113
  storeContents,
114
114
  vectorIndexCounts
115
- } from "./chunk-ZQNXKWUY.js";
115
+ } from "./chunk-FEULDMWM.js";
116
116
  import {
117
117
  formatLocator,
118
118
  parseLocator
119
- } from "./chunk-WZUJKUBK.js";
119
+ } from "./chunk-AOOD3RMK.js";
120
120
  import {
121
121
  queryFieldsOf
122
- } from "./chunk-SGOPYPVW.js";
122
+ } from "./chunk-R2QRP7EJ.js";
123
123
  import {
124
124
  storePath
125
- } from "./chunk-P5KGFT7U.js";
125
+ } from "./chunk-TRMIV3OA.js";
126
126
  import {
127
127
  openCache
128
- } from "./chunk-QLZGLPJL.js";
128
+ } from "./chunk-VYBOYBLX.js";
129
129
  import {
130
130
  Credentials,
131
131
  pathsAreOverridden,
132
132
  resolvePaths,
133
133
  writeSecurely
134
- } from "./chunk-6KFA6HOM.js";
134
+ } from "./chunk-VHT2WI4I.js";
135
135
  import {
136
136
  CliError,
137
137
  array,
@@ -156,7 +156,7 @@ import {
156
156
  transform,
157
157
  trim,
158
158
  union
159
- } from "./chunk-GKHM6I64.js";
159
+ } from "./chunk-BJ3JRO34.js";
160
160
  import {
161
161
  __commonJS,
162
162
  __name,
@@ -5496,11 +5496,11 @@ var require_liquid_node = __commonJS({
5496
5496
  }
5497
5497
  });
5498
5498
 
5499
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
5499
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
5500
5500
  import { chmodSync, constants, copyFileSync, existsSync as existsSync7, mkdirSync, realpathSync, renameSync as renameSync2, rmSync as rmSync2, statfsSync, statSync as statSync3, writeFileSync } from "node:fs";
5501
5501
  import { dirname, resolve } from "node:path";
5502
5502
 
5503
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/sealed.js
5503
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/sealed.js
5504
5504
  import { createCipheriv, createDecipheriv, createHash, randomBytes, scrypt, timingSafeEqual } from "node:crypto";
5505
5505
  import { closeSync, createReadStream, createWriteStream, existsSync, openSync, readSync, renameSync, rmSync, statSync } from "node:fs";
5506
5506
  import { Transform } from "node:stream";
@@ -5607,7 +5607,7 @@ var unsealFile = /* @__PURE__ */ __name(async (from, to, password) => {
5607
5607
  renameSync(pending, to);
5608
5608
  }, "unsealFile");
5609
5609
 
5610
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/compatibility.js
5610
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/compatibility.js
5611
5611
  var SPEAKS = MIGRATIONS.at(-1)?.version ?? 0;
5612
5612
  var fileSchemaOf = /* @__PURE__ */ __name((database) => {
5613
5613
  const tracked = database.prepare("SELECT 1 FROM sqlite_master WHERE name = 'schema_migrations'").get();
@@ -5631,7 +5631,7 @@ var compatibilityOf = /* @__PURE__ */ __name((file2, migrations = MIGRATIONS) =>
5631
5631
  };
5632
5632
  }, "compatibilityOf");
5633
5633
 
5634
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/repair.js
5634
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/repair.js
5635
5635
  import { createHash as createHash2 } from "node:crypto";
5636
5636
  var COPY_MARK = "__repair_";
5637
5637
  var COPY_NAME = /__repair_[0-9a-f]{8}(_\d+)?$/;
@@ -5885,7 +5885,7 @@ var deleteCopy = /* @__PURE__ */ __name((database, name) => {
5885
5885
  return found;
5886
5886
  }, "deleteCopy");
5887
5887
 
5888
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/cli/store-info.js
5888
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/cli/store-info.js
5889
5889
  import { existsSync as existsSync2, statSync as statSync2 } from "node:fs";
5890
5890
  var pendingIfKnown = /* @__PURE__ */ __name((database) => database.prepare("SELECT 1 FROM pragma_table_info('messages') WHERE name = 'normalized_text'").get() ? pendingNormalization(database) : null, "pendingIfKnown");
5891
5891
  var bytesOf = /* @__PURE__ */ __name((path) => existsSync2(path) ? statSync2(path).size : 0, "bytesOf");
@@ -5932,7 +5932,7 @@ var storeInfoCommand = /* @__PURE__ */ __name(() => annotate(new Command("info")
5932
5932
  renderAnswer(this, outputFor(this), itemOf(answer));
5933
5933
  }), "storeInfoCommand");
5934
5934
 
5935
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/cli/messenger/password.js
5935
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/cli/messenger/password.js
5936
5936
  var ENCRYPT_OPTION = [
5937
5937
  "--encrypt",
5938
5938
  "compress and encrypt with a password, typed at a hidden prompt or piped on stdin; it is never kept \u2014 lose it and the file cannot be opened"
@@ -5951,7 +5951,7 @@ var passwordOf = /* @__PURE__ */ __name(async (command, { twice }) => {
5951
5951
  return password;
5952
5952
  }, "passwordOf");
5953
5953
 
5954
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/replies/rules.js
5954
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/replies/rules.js
5955
5955
  import { existsSync as existsSync3, readFileSync } from "node:fs";
5956
5956
  import { join } from "node:path";
5957
5957
  var REPLY_ACTIONS = ["reply", "task"];
@@ -6122,7 +6122,7 @@ var problem = /* @__PURE__ */ __name((issue) => {
6122
6122
  }, "problem");
6123
6123
  var broken = /* @__PURE__ */ __name((path, why) => new CliError("configuration_error", `the reply rules ${path} cannot be read (${why}) \u2014 fix the file`), "broken");
6124
6124
 
6125
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/replies/state.js
6125
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/replies/state.js
6126
6126
  import { existsSync as existsSync4, readFileSync as readFileSync2 } from "node:fs";
6127
6127
  import { join as join2 } from "node:path";
6128
6128
  var ANSWERED_KEPT = 1e3;
@@ -6175,7 +6175,7 @@ var recordReply = /* @__PURE__ */ __name((state, rule2, message, now) => {
6175
6175
  }, "recordReply");
6176
6176
  var broken2 = /* @__PURE__ */ __name((path, why) => new CliError("configuration_error", `the reply state ${path} cannot be read (${why}) \u2014 fix or move the file`), "broken");
6177
6177
 
6178
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/replies/decide.js
6178
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/replies/decide.js
6179
6179
  var skip = /* @__PURE__ */ __name((why) => ({ skip: why }), "skip");
6180
6180
  var decide = /* @__PURE__ */ __name((rule2, incoming, state, now) => {
6181
6181
  const { message, chat, owner, sender } = incoming;
@@ -6281,7 +6281,7 @@ var filled = /* @__PURE__ */ __name((template2, senderName) => {
6281
6281
  return template2.replaceAll("{firstName}", name.split(/\s+/)[0] ?? name).replaceAll("{name}", name);
6282
6282
  }, "filled");
6283
6283
 
6284
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/replies/template.js
6284
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/replies/template.js
6285
6285
  var import_liquidjs = __toESM(require_liquid_node(), 1);
6286
6286
  var TEMPLATE_LIMITS = {
6287
6287
  parse: 32768,
@@ -6441,7 +6441,7 @@ var renderReplyTemplate = /* @__PURE__ */ __name(async (reply, input) => {
6441
6441
  }
6442
6442
  }, "renderReplyTemplate");
6443
6443
 
6444
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/replies/dry-run.js
6444
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/replies/dry-run.js
6445
6445
  var DRY_RUN_DAYS = 7;
6446
6446
  var PAGE = 500;
6447
6447
  var dryRun = /* @__PURE__ */ __name(async (store, account, rules, { since, until = Date.now(), only, audience, render }) => {
@@ -6555,7 +6555,7 @@ var storedSince = /* @__PURE__ */ __name(async (store, account, chat, since) =>
6555
6555
  }
6556
6556
  }, "storedSince");
6557
6557
 
6558
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/embeddings/keys.js
6558
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/embeddings/keys.js
6559
6559
  var endpointKeyName = /* @__PURE__ */ __name((baseUrl) => {
6560
6560
  const host = new URL(baseUrl).host;
6561
6561
  return ["openai", "anthropic"].includes(host) ? `endpoint:${host}` : host;
@@ -6586,7 +6586,7 @@ var embeddingKeys = /* @__PURE__ */ __name((app, env = process.env, keyring) =>
6586
6586
  };
6587
6587
  }, "embeddingKeys");
6588
6588
 
6589
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/models/openai.js
6589
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/models/openai.js
6590
6590
  var options = strictObject({
6591
6591
  temperature: range(0, 2),
6592
6592
  top_p: range(0, 1),
@@ -6635,7 +6635,7 @@ var openai = {
6635
6635
  }, "complete")
6636
6636
  };
6637
6637
 
6638
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/models/index.js
6638
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/models/index.js
6639
6639
  var modelGateway = /* @__PURE__ */ __name((deps) => ({
6640
6640
  complete: /* @__PURE__ */ __name(async (request) => {
6641
6641
  if (deps.signal?.aborted)
@@ -6650,7 +6650,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
6650
6650
  if (!adapter && target.provider === "openai")
6651
6651
  adapter = openai;
6652
6652
  if (!adapter && target.provider === "anthropic")
6653
- adapter = (await import("./anthropic-NOJEF3V2.js")).anthropic;
6653
+ adapter = (await import("./anthropic-6T67J2CE.js")).anthropic;
6654
6654
  if (!adapter)
6655
6655
  throw new CliError("validation_error", `no model adapter for ${target.provider}`);
6656
6656
  if (request.images !== void 0 && adapter.images !== true)
@@ -6691,7 +6691,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
6691
6691
  }, "complete")
6692
6692
  }), "modelGateway");
6693
6693
 
6694
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/replies/consents.js
6694
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/replies/consents.js
6695
6695
  import { existsSync as existsSync5, readFileSync as readFileSync3 } from "node:fs";
6696
6696
  import { join as join3 } from "node:path";
6697
6697
  var shape = strictObject({
@@ -6716,7 +6716,7 @@ var mayModelReply = /* @__PURE__ */ __name((path, provider, chat) => {
6716
6716
  return consent.provider === provider && !consent.deniedChats.includes(chat);
6717
6717
  }, "mayModelReply");
6718
6718
 
6719
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/replies/rendering.js
6719
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/replies/rendering.js
6720
6720
  var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, options2 = {
6721
6721
  ai: true
6722
6722
  }) => async (rule2, message, chat, now) => {
@@ -6763,7 +6763,7 @@ var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, o
6763
6763
  return result2;
6764
6764
  }, "replyRenderer");
6765
6765
 
6766
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/replies/serve.js
6766
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/replies/serve.js
6767
6767
  var NOT_ALLOWED = "replies.send is not allow";
6768
6768
  var NO_RULES = "no rules";
6769
6769
  var ONLY_TASK = "opened a task, sent nothing";
@@ -6856,7 +6856,7 @@ var replyTo = /* @__PURE__ */ __name(async (deps, message) => {
6856
6856
  return { skip: why };
6857
6857
  }, "replyTo");
6858
6858
 
6859
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-members.js
6859
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-members.js
6860
6860
  var FIRST_FETCH_MS = 6e4;
6861
6861
  var DAY_MS = 864e5;
6862
6862
  var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch: fetch2, warn, firstMs = FIRST_FETCH_MS, everyMs = DAY_MS }) => {
@@ -6910,7 +6910,7 @@ var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch: fetch2, warn, fi
6910
6910
  };
6911
6911
  }, "memberFetches");
6912
6912
 
6913
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-notice.js
6913
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-notice.js
6914
6914
  var record2 = /* @__PURE__ */ __name((context, app, severity, attributes) => recordLogFor(context.streams.diagnostic, app, { command: currentRun().command || "serve" })[severity](attributes), "record");
6915
6915
  var noticeFor = /* @__PURE__ */ __name((context, app, severity = "warn") => ({ text, ...attributes }) => {
6916
6916
  if (context.format === "pretty") {
@@ -6943,7 +6943,7 @@ var recordDiagnostics = /* @__PURE__ */ __name((context, app) => {
6943
6943
  return context;
6944
6944
  }, "recordDiagnostics");
6945
6945
 
6946
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-stems.js
6946
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-stems.js
6947
6947
  var STEMS_EVERY_MS = 3e4;
6948
6948
  var STEMS_SLICE_MS = 2e3;
6949
6949
  var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY_MS, sliceMs = STEMS_SLICE_MS }) => {
@@ -6983,7 +6983,7 @@ var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY
6983
6983
  };
6984
6984
  }, "stemFills");
6985
6985
 
6986
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/cli/messenger/message-items.js
6986
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/cli/messenger/message-items.js
6987
6987
  var defined = /* @__PURE__ */ __name((value) => Object.fromEntries(Object.entries(value).filter(([, one]) => one !== void 0)), "defined");
6988
6988
  var attachmentItem = /* @__PURE__ */ __name((attachment) => defined({
6989
6989
  kind: attachment.kind,
@@ -7020,6 +7020,8 @@ var messageItem = /* @__PURE__ */ __name((message, reader) => {
7020
7020
  sender_name: message.senderName,
7021
7021
  sender_username: message.senderUsername,
7022
7022
  sender_is_chat: message.senderIsChat,
7023
+ // MAX reports the owner's own messages with no sender id, so `outgoing` counts as well as the id.
7024
+ sender_is_me: message.outgoing === true || message.senderId !== null && String(message.senderId) === account,
7023
7025
  mentions: message.mentions,
7024
7026
  timestamp: message.timestamp,
7025
7027
  edited_at: message.editedAt,
@@ -7070,7 +7072,7 @@ var viewOf = /* @__PURE__ */ __name((context, messenger) => ({
7070
7072
  locale: messenger.app.locale
7071
7073
  }), "viewOf");
7072
7074
 
7073
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-answers.js
7075
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-answers.js
7074
7076
  var observed = /* @__PURE__ */ __name((value) => ({
7075
7077
  value: value.value,
7076
7078
  observed_at: value.observedAt,
@@ -7137,7 +7139,7 @@ var watchEventItem = /* @__PURE__ */ __name((value, account) => {
7137
7139
  }
7138
7140
  }, "watchEventItem");
7139
7141
 
7140
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-command.js
7142
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-command.js
7141
7143
  var watchCommand = /* @__PURE__ */ __name((messenger) => annotate(new Command("watch"), {
7142
7144
  output: { entity: "watch_item" },
7143
7145
  effects: REMOTE_READ,
@@ -7292,7 +7294,7 @@ var describe = /* @__PURE__ */ __name((event, render) => {
7292
7294
  }
7293
7295
  }, "describe");
7294
7296
 
7295
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-command.js
7297
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-command.js
7296
7298
  var serveCommand = /* @__PURE__ */ __name((messenger) => {
7297
7299
  const command = annotate(new Command("serve"), {
7298
7300
  output: { entity: "serve_summary" },
@@ -7508,7 +7510,7 @@ var tasking = /* @__PURE__ */ __name((context, warn) => {
7508
7510
  };
7509
7511
  }, "tasking");
7510
7512
 
7511
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/cli/messenger/store-tables-command.js
7513
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/cli/messenger/store-tables-command.js
7512
7514
  import { existsSync as existsSync6 } from "node:fs";
7513
7515
  var PATH = "store tables list";
7514
7516
  var STORE_TABLES_QUERY = {
@@ -7551,7 +7553,7 @@ var storeTablesCommand = /* @__PURE__ */ __name((messenger) => {
7551
7553
  return tables;
7552
7554
  }, "storeTablesCommand");
7553
7555
 
7554
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
7556
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
7555
7557
  var SEARCH_INDEXES = ["messages_fts", "chats_fts", "identities_fts"];
7556
7558
  var WORD_INDEX = "message_words";
7557
7559
  var schemaOf = /* @__PURE__ */ __name((database) => {