@wirecat/mail-cli 0.2.0 → 0.3.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 (94) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/bin/mail.js +2 -2
  3. package/dist/bundle/{all-profiles-7WILOT5E.js → all-profiles-52LCOKSL.js} +5 -5
  4. package/dist/bundle/{anthropic-NHWLIMEZ.js → anthropic-HPW7PLTT.js} +3 -3
  5. package/dist/bundle/{app-server-XDMYCJLV.js → app-server-Y7XSPVHJ.js} +39 -39
  6. package/dist/bundle/{bun-GTG5IYLQ.js → bun-B7YXDIMT.js} +2 -2
  7. package/dist/bundle/{bun-sqlite-KGH5F33G.js → bun-sqlite-TTTKY7H2.js} +2 -2
  8. package/dist/bundle/{chunk-MABCR67K.js → chunk-37MSU5O6.js} +1 -1
  9. package/dist/bundle/{chunk-CT7NG7BI.js → chunk-3RDTVH3H.js} +3 -3
  10. package/dist/bundle/{chunk-TMVIQJCG.js → chunk-4PXWXI2U.js} +2 -2
  11. package/dist/bundle/{chunk-4I3YT5KK.js → chunk-4UOEUEZZ.js} +4 -4
  12. package/dist/bundle/{chunk-7LKJDJNS.js → chunk-5LY3OS7U.js} +1 -1
  13. package/dist/bundle/{chunk-H5BW7454.js → chunk-5SSFYIFF.js} +4 -4
  14. package/dist/bundle/{chunk-MDVXIPA3.js → chunk-732GKOLO.js} +10 -10
  15. package/dist/bundle/{chunk-ZNYJG4AY.js → chunk-C2THROZU.js} +42 -42
  16. package/dist/bundle/{chunk-DDMJ3RVO.js → chunk-C6E3VFUX.js} +2 -2
  17. package/dist/bundle/{chunk-QJHCKFFC.js → chunk-DKKCQMDM.js} +16 -16
  18. package/dist/bundle/{chunk-7REG25RM.js → chunk-FGNTGLWA.js} +3 -3
  19. package/dist/bundle/{chunk-GQKYSGIA.js → chunk-FUXSKWWJ.js} +46 -46
  20. package/dist/bundle/{chunk-EKE3R36Y.js → chunk-FX77WAQL.js} +6 -6
  21. package/dist/bundle/{chunk-H7NUGJPV.js → chunk-GX2M3AOO.js} +2 -2
  22. package/dist/bundle/{chunk-QUSZWBZF.js → chunk-H2JVXO5V.js} +32 -22
  23. package/dist/bundle/{chunk-77VHMI3A.js → chunk-HS25KDT3.js} +1 -1
  24. package/dist/bundle/{chunk-H66ZMBDD.js → chunk-I2ARI6FI.js} +1 -1
  25. package/dist/bundle/{chunk-D7UZXUSB.js → chunk-IXHLMSHV.js} +2 -2
  26. package/dist/bundle/{chunk-BUOSCMCD.js → chunk-JDOOPGKW.js} +2 -2
  27. package/dist/bundle/{chunk-VWO3XXSF.js → chunk-JHNLU42I.js} +1 -1
  28. package/dist/bundle/{chunk-6HIW7IJL.js → chunk-JXYFIUVX.js} +4 -4
  29. package/dist/bundle/{chunk-HJRUFT5Y.js → chunk-K6SIGXRS.js} +5 -5
  30. package/dist/bundle/{chunk-WJ3LUWRN.js → chunk-KALDYMKJ.js} +3 -3
  31. package/dist/bundle/{chunk-BKZEYTLU.js → chunk-KXVZ373I.js} +358 -303
  32. package/dist/bundle/{chunk-VRQRBVKT.js → chunk-LCA5KC34.js} +43 -43
  33. package/dist/bundle/{chunk-76IKLP2M.js → chunk-LJDOPCPW.js} +96 -91
  34. package/dist/bundle/{chunk-GPAAQ6LY.js → chunk-MHNEMDH3.js} +13 -13
  35. package/dist/bundle/{chunk-5FLW25US.js → chunk-MXUUQXMA.js} +5 -5
  36. package/dist/bundle/{chunk-ETPT7TPW.js → chunk-N5WIUNOT.js} +1 -1
  37. package/dist/bundle/{chunk-UZR3IKS7.js → chunk-O2F54PUO.js} +1 -1
  38. package/dist/bundle/{chunk-H7XOHNRY.js → chunk-O3DRPTWF.js} +1 -1
  39. package/dist/bundle/{chunk-5JOKRFWE.js → chunk-PL6UPJIL.js} +1 -1
  40. package/dist/bundle/{chunk-SVNTRF5O.js → chunk-PYIJCWCH.js} +11 -11
  41. package/dist/bundle/{chunk-THVLMTH7.js → chunk-QTWIZKUI.js} +26 -26
  42. package/dist/bundle/{chunk-QUGFBY7O.js → chunk-RMYYKBFW.js} +7 -7
  43. package/dist/bundle/{chunk-2X4WYZPA.js → chunk-RORC2FW7.js} +2 -2
  44. package/dist/bundle/{chunk-S2GSU4MT.js → chunk-RVIMMCHF.js} +9 -9
  45. package/dist/bundle/{chunk-STC45HZX.js → chunk-RZCFEASJ.js} +196 -196
  46. package/dist/bundle/{chunk-QLYHLW54.js → chunk-SRMJ6LLC.js} +5 -5
  47. package/dist/bundle/{chunk-AJIT2T3F.js → chunk-TL7PE6JU.js} +6 -6
  48. package/dist/bundle/{chunk-BPF7IXJT.js → chunk-TLZWUADZ.js} +5 -5
  49. package/dist/bundle/{chunk-Y5WA7AOA.js → chunk-TNQOKGJS.js} +21 -21
  50. package/dist/bundle/{chunk-Z6F7EXT2.js → chunk-V7NZTJKU.js} +7 -7
  51. package/dist/bundle/{chunk-Y6KUKIQZ.js → chunk-VTJDEWMB.js} +2 -2
  52. package/dist/bundle/{chunk-YQAUH3PN.js → chunk-X7TFD5SX.js} +1 -1
  53. package/dist/bundle/{chunk-R5JD4GMA.js → chunk-XD3TL4BK.js} +1 -1
  54. package/dist/bundle/{chunk-7QEE5I7H.js → chunk-XQVGIW4R.js} +2 -2
  55. package/dist/bundle/{chunk-AROBJF5P.js → chunk-Y2HGQK7A.js} +1 -1
  56. package/dist/bundle/{chunk-ZKH5CHGI.js → chunk-YVIX7FHL.js} +5 -5
  57. package/dist/bundle/{chunk-VBLFQJY3.js → chunk-ZIJJNH47.js} +1 -1
  58. package/dist/bundle/{command-contract-Y42ULKE5.js → command-contract-3HA7CZEQ.js} +13 -13
  59. package/dist/bundle/{decode-L4X542L3.js → decode-VLI3MAXE.js} +2 -2
  60. package/dist/bundle/{dist-WKIRHOLK.js → dist-C7LAAMNF.js} +14 -14
  61. package/dist/bundle/{echarts-G6QLXR4X.js → echarts-POTU3SHN.js} +2 -2
  62. package/dist/bundle/{embed-E33ZBHQR.js → embed-J2DEEEUF.js} +3 -3
  63. package/dist/bundle/{embedder-EMBCIVGF.js → embedder-5N56V7YJ.js} +6 -6
  64. package/dist/bundle/{first-run-WF2HF5FI.js → first-run-XILZE4PI.js} +5 -5
  65. package/dist/bundle/{first-screen-DZFOUUZC.js → first-screen-43VLEDWZ.js} +14 -14
  66. package/dist/bundle/{instructions-DUH7265J.js → instructions-B7AUZXPL.js} +1 -1
  67. package/dist/bundle/mail.js +2 -2
  68. package/dist/bundle/{node-73PKCCE7.js → node-SZAO6HTA.js} +2 -2
  69. package/dist/bundle/{node-sqlite-FDD5N6GC.js → node-sqlite-O34FFLRV.js} +2 -2
  70. package/dist/bundle/{oauth-ND3K2F7B.js → oauth-YYTLIPJT.js} +4 -4
  71. package/dist/bundle/{open-FZYY6TKE.js → open-SWJGI6H4.js} +1 -1
  72. package/dist/bundle/{openai-BXOF6XIM.js → openai-GYXWCQOV.js} +10 -10
  73. package/dist/bundle/{process-TXIK4VJP.js → process-GLVWCUMK.js} +1 -1
  74. package/dist/bundle/{program-2SUR4WOS.js → program-HW73TGIF.js} +306 -289
  75. package/dist/bundle/{prompt-I5GCP73M.js → prompt-OZLHHGCD.js} +2 -2
  76. package/dist/bundle/{recognize-ILYEKXVB.js → recognize-RDQSGHC5.js} +1 -1
  77. package/dist/bundle/{remote-SSPZEAJ7.js → remote-BKU5P3GK.js} +4 -4
  78. package/dist/bundle/{rerank-NAO5RMGB.js → rerank-EQIXYHKB.js} +4 -4
  79. package/dist/bundle/{serve-UDXIEQKC.js → serve-S6K5HKWG.js} +6 -6
  80. package/dist/bundle/{server-KTPELKAN.js → server-4VRVHPQC.js} +31 -31
  81. package/dist/bundle/server-WK6DRJX2.js +63 -0
  82. package/dist/bundle/{sqlite-runtime-AONFLND6.js → sqlite-runtime-OOE455YM.js} +2 -2
  83. package/dist/bundle/{state-I4PLX3UB.js → state-OLPOJ2TY.js} +3 -3
  84. package/dist/bundle/{store-ZPPRXGPY.js → store-6AVCPLH4.js} +9 -9
  85. package/dist/bundle/{store-OHQH3MGN.js → store-WFV26CWY.js} +11 -11
  86. package/dist/bundle/store-maintenance-command-S6235I3W.js +52 -0
  87. package/dist/program.d.ts.map +1 -1
  88. package/dist/program.js +8 -1
  89. package/dist/program.js.map +1 -1
  90. package/dist/version.d.ts +1 -1
  91. package/dist/version.js +1 -1
  92. package/package.json +2 -2
  93. package/dist/bundle/server-UZFSEKNJ.js +0 -63
  94. package/dist/bundle/store-maintenance-command-QOYXEBT6.js +0 -52
@@ -2,11 +2,11 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  renderMessages
5
- } from "./chunk-VWO3XXSF.js";
5
+ } from "./chunk-JHNLU42I.js";
6
6
  import {
7
7
  answerOf,
8
8
  messengerContext
9
- } from "./chunk-Y5WA7AOA.js";
9
+ } from "./chunk-TNQOKGJS.js";
10
10
  import {
11
11
  RULES_VERSION,
12
12
  applyTaskRulesOnArrival,
@@ -23,19 +23,19 @@ import {
23
23
  syncsOneChat,
24
24
  typedQuery,
25
25
  withQuery
26
- } from "./chunk-STC45HZX.js";
26
+ } from "./chunk-RZCFEASJ.js";
27
27
  import {
28
28
  checkedOptions,
29
29
  range
30
- } from "./chunk-ETPT7TPW.js";
30
+ } from "./chunk-N5WIUNOT.js";
31
31
  import {
32
32
  messagesFor,
33
33
  systemFor,
34
34
  validateImages
35
- } from "./chunk-YQAUH3PN.js";
35
+ } from "./chunk-X7TFD5SX.js";
36
36
  import {
37
37
  readSecret
38
- } from "./chunk-DDMJ3RVO.js";
38
+ } from "./chunk-C6E3VFUX.js";
39
39
  import {
40
40
  Command,
41
41
  LOCAL_READ,
@@ -62,23 +62,23 @@ import {
62
62
  snakeKeys,
63
63
  storeTable,
64
64
  withoutProviderRefs
65
- } from "./chunk-GQKYSGIA.js";
65
+ } from "./chunk-FUXSKWWJ.js";
66
66
  import {
67
67
  levelFor
68
- } from "./chunk-H5BW7454.js";
68
+ } from "./chunk-5SSFYIFF.js";
69
69
  import {
70
70
  failureKey
71
- } from "./chunk-QUGFBY7O.js";
71
+ } from "./chunk-RMYYKBFW.js";
72
72
  import {
73
73
  holdLock,
74
74
  lockPath,
75
75
  releaseLock,
76
76
  servingProfiles,
77
77
  takeLock
78
- } from "./chunk-Y6KUKIQZ.js";
78
+ } from "./chunk-VTJDEWMB.js";
79
79
  import {
80
80
  holdersOf
81
- } from "./chunk-H66ZMBDD.js";
81
+ } from "./chunk-I2ARI6FI.js";
82
82
  import {
83
83
  MIGRATIONS,
84
84
  drainNoteIndex,
@@ -105,20 +105,20 @@ import {
105
105
  storeClients,
106
106
  storeContents,
107
107
  vectorIndexCounts
108
- } from "./chunk-BKZEYTLU.js";
108
+ } from "./chunk-KXVZ373I.js";
109
109
  import {
110
110
  formatLocator,
111
111
  parseLocator
112
- } from "./chunk-BPF7IXJT.js";
112
+ } from "./chunk-TLZWUADZ.js";
113
113
  import {
114
114
  queryFieldsOf
115
- } from "./chunk-ZNYJG4AY.js";
115
+ } from "./chunk-C2THROZU.js";
116
116
  import {
117
117
  openCache
118
- } from "./chunk-HJRUFT5Y.js";
118
+ } from "./chunk-K6SIGXRS.js";
119
119
  import {
120
120
  storePath
121
- } from "./chunk-5JOKRFWE.js";
121
+ } from "./chunk-PL6UPJIL.js";
122
122
  import {
123
123
  Credentials,
124
124
  pathsAreOverridden,
@@ -5491,11 +5491,11 @@ var require_liquid_node = __commonJS({
5491
5491
  }
5492
5492
  });
5493
5493
 
5494
- // node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
5494
+ // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
5495
5495
  import { chmodSync, constants, copyFileSync, existsSync as existsSync7, mkdirSync, realpathSync, renameSync as renameSync2, rmSync as rmSync2, statfsSync, statSync as statSync3, writeFileSync } from "node:fs";
5496
5496
  import { dirname, resolve } from "node:path";
5497
5497
 
5498
- // node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/sealed.js
5498
+ // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/sealed.js
5499
5499
  import { createCipheriv, createDecipheriv, createHash, randomBytes, scrypt, timingSafeEqual } from "node:crypto";
5500
5500
  import { closeSync, createReadStream, createWriteStream, existsSync, openSync, readSync, renameSync, rmSync, statSync } from "node:fs";
5501
5501
  import { Transform } from "node:stream";
@@ -5602,7 +5602,7 @@ var unsealFile = /* @__PURE__ */ __name(async (from, to, password) => {
5602
5602
  renameSync(pending, to);
5603
5603
  }, "unsealFile");
5604
5604
 
5605
- // node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/store/compatibility.js
5605
+ // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/compatibility.js
5606
5606
  var SPEAKS = MIGRATIONS.at(-1)?.version ?? 0;
5607
5607
  var fileSchemaOf = /* @__PURE__ */ __name((database) => {
5608
5608
  const tracked = database.prepare("SELECT 1 FROM sqlite_master WHERE name = 'schema_migrations'").get();
@@ -5626,7 +5626,7 @@ var compatibilityOf = /* @__PURE__ */ __name((file2, migrations = MIGRATIONS) =>
5626
5626
  };
5627
5627
  }, "compatibilityOf");
5628
5628
 
5629
- // node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/store/repair.js
5629
+ // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/repair.js
5630
5630
  import { createHash as createHash2 } from "node:crypto";
5631
5631
  var COPY_MARK = "__repair_";
5632
5632
  var COPY_NAME = /__repair_[0-9a-f]{8}(_\d+)?$/;
@@ -5880,7 +5880,7 @@ var deleteCopy = /* @__PURE__ */ __name((database, name) => {
5880
5880
  return found;
5881
5881
  }, "deleteCopy");
5882
5882
 
5883
- // node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/cli/store-info.js
5883
+ // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/cli/store-info.js
5884
5884
  import { existsSync as existsSync2, statSync as statSync2 } from "node:fs";
5885
5885
  var pendingIfKnown = /* @__PURE__ */ __name((database) => database.prepare("SELECT 1 FROM pragma_table_info('messages') WHERE name = 'normalized_text'").get() ? pendingNormalization(database) : null, "pendingIfKnown");
5886
5886
  var bytesOf = /* @__PURE__ */ __name((path) => existsSync2(path) ? statSync2(path).size : 0, "bytesOf");
@@ -5927,7 +5927,7 @@ var storeInfoCommand = /* @__PURE__ */ __name(() => annotate(new Command("info")
5927
5927
  renderAnswer(this, outputFor(this), itemOf(answer));
5928
5928
  }), "storeInfoCommand");
5929
5929
 
5930
- // node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/cli/messenger/password.js
5930
+ // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/cli/messenger/password.js
5931
5931
  var ENCRYPT_OPTION = [
5932
5932
  "--encrypt",
5933
5933
  "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"
@@ -5946,7 +5946,7 @@ var passwordOf = /* @__PURE__ */ __name(async (command, { twice }) => {
5946
5946
  return password;
5947
5947
  }, "passwordOf");
5948
5948
 
5949
- // node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/replies/rules.js
5949
+ // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/replies/rules.js
5950
5950
  import { existsSync as existsSync3, readFileSync } from "node:fs";
5951
5951
  import { join } from "node:path";
5952
5952
  var REPLY_ACTIONS = ["reply", "task"];
@@ -6117,7 +6117,7 @@ var problem = /* @__PURE__ */ __name((issue) => {
6117
6117
  }, "problem");
6118
6118
  var broken = /* @__PURE__ */ __name((path, why) => new CliError("configuration_error", `the reply rules ${path} cannot be read (${why}) \u2014 fix the file`), "broken");
6119
6119
 
6120
- // node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/replies/state.js
6120
+ // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/replies/state.js
6121
6121
  import { existsSync as existsSync4, readFileSync as readFileSync2 } from "node:fs";
6122
6122
  import { join as join2 } from "node:path";
6123
6123
  var ANSWERED_KEPT = 1e3;
@@ -6170,7 +6170,7 @@ var recordReply = /* @__PURE__ */ __name((state, rule2, message, now) => {
6170
6170
  }, "recordReply");
6171
6171
  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");
6172
6172
 
6173
- // node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/replies/decide.js
6173
+ // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/replies/decide.js
6174
6174
  var skip = /* @__PURE__ */ __name((why) => ({ skip: why }), "skip");
6175
6175
  var decide = /* @__PURE__ */ __name((rule2, incoming, state, now) => {
6176
6176
  const { message, chat, owner, sender } = incoming;
@@ -6276,7 +6276,7 @@ var filled = /* @__PURE__ */ __name((template2, senderName) => {
6276
6276
  return template2.replaceAll("{firstName}", name.split(/\s+/)[0] ?? name).replaceAll("{name}", name);
6277
6277
  }, "filled");
6278
6278
 
6279
- // node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/replies/template.js
6279
+ // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/replies/template.js
6280
6280
  var import_liquidjs = __toESM(require_liquid_node(), 1);
6281
6281
  var TEMPLATE_LIMITS = {
6282
6282
  parse: 32768,
@@ -6436,7 +6436,7 @@ var renderReplyTemplate = /* @__PURE__ */ __name(async (reply, input) => {
6436
6436
  }
6437
6437
  }, "renderReplyTemplate");
6438
6438
 
6439
- // node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/replies/dry-run.js
6439
+ // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/replies/dry-run.js
6440
6440
  var DRY_RUN_DAYS = 7;
6441
6441
  var PAGE = 500;
6442
6442
  var dryRun = /* @__PURE__ */ __name(async (store, account, rules, { since, until = Date.now(), only, audience, render }) => {
@@ -6550,7 +6550,7 @@ var storedSince = /* @__PURE__ */ __name(async (store, account, chat, since) =>
6550
6550
  }
6551
6551
  }, "storedSince");
6552
6552
 
6553
- // node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/embeddings/keys.js
6553
+ // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/embeddings/keys.js
6554
6554
  var endpointKeyName = /* @__PURE__ */ __name((baseUrl) => {
6555
6555
  const host = new URL(baseUrl).host;
6556
6556
  return ["openai", "anthropic"].includes(host) ? `endpoint:${host}` : host;
@@ -6581,7 +6581,7 @@ var embeddingKeys = /* @__PURE__ */ __name((app, env = process.env, keyring) =>
6581
6581
  };
6582
6582
  }, "embeddingKeys");
6583
6583
 
6584
- // node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/models/openai.js
6584
+ // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/models/openai.js
6585
6585
  var options = strictObject({
6586
6586
  temperature: range(0, 2),
6587
6587
  top_p: range(0, 1),
@@ -6630,7 +6630,7 @@ var openai = {
6630
6630
  }, "complete")
6631
6631
  };
6632
6632
 
6633
- // node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/models/index.js
6633
+ // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/models/index.js
6634
6634
  var modelGateway = /* @__PURE__ */ __name((deps) => ({
6635
6635
  complete: /* @__PURE__ */ __name(async (request) => {
6636
6636
  if (deps.signal?.aborted)
@@ -6645,7 +6645,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
6645
6645
  if (!adapter && target.provider === "openai")
6646
6646
  adapter = openai;
6647
6647
  if (!adapter && target.provider === "anthropic")
6648
- adapter = (await import("./anthropic-NHWLIMEZ.js")).anthropic;
6648
+ adapter = (await import("./anthropic-HPW7PLTT.js")).anthropic;
6649
6649
  if (!adapter)
6650
6650
  throw new CliError("validation_error", `no model adapter for ${target.provider}`);
6651
6651
  if (request.images !== void 0 && adapter.images !== true)
@@ -6686,7 +6686,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
6686
6686
  }, "complete")
6687
6687
  }), "modelGateway");
6688
6688
 
6689
- // node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/replies/consents.js
6689
+ // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/replies/consents.js
6690
6690
  import { existsSync as existsSync5, readFileSync as readFileSync3 } from "node:fs";
6691
6691
  import { join as join3 } from "node:path";
6692
6692
  var shape = strictObject({
@@ -6711,7 +6711,7 @@ var mayModelReply = /* @__PURE__ */ __name((path, provider, chat) => {
6711
6711
  return consent.provider === provider && !consent.deniedChats.includes(chat);
6712
6712
  }, "mayModelReply");
6713
6713
 
6714
- // node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/replies/rendering.js
6714
+ // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/replies/rendering.js
6715
6715
  var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, options2 = {
6716
6716
  ai: true
6717
6717
  }) => async (rule2, message, chat, now) => {
@@ -6758,7 +6758,7 @@ var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, o
6758
6758
  return result2;
6759
6759
  }, "replyRenderer");
6760
6760
 
6761
- // node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/replies/serve.js
6761
+ // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/replies/serve.js
6762
6762
  var NOT_ALLOWED = "replies.send is not allow";
6763
6763
  var NO_RULES = "no rules";
6764
6764
  var ONLY_TASK = "opened a task, sent nothing";
@@ -6851,7 +6851,7 @@ var replyTo = /* @__PURE__ */ __name(async (deps, message) => {
6851
6851
  return { skip: why };
6852
6852
  }, "replyTo");
6853
6853
 
6854
- // node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-members.js
6854
+ // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-members.js
6855
6855
  var FIRST_FETCH_MS = 6e4;
6856
6856
  var DAY_MS = 864e5;
6857
6857
  var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch: fetch2, warn, firstMs = FIRST_FETCH_MS, everyMs = DAY_MS }) => {
@@ -6905,7 +6905,7 @@ var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch: fetch2, warn, fi
6905
6905
  };
6906
6906
  }, "memberFetches");
6907
6907
 
6908
- // node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-notice.js
6908
+ // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-notice.js
6909
6909
  var record2 = /* @__PURE__ */ __name((context, app, severity, attributes) => recordLogFor(context.streams.diagnostic, app, { command: currentRun().command || "serve" })[severity](attributes), "record");
6910
6910
  var noticeFor = /* @__PURE__ */ __name((context, app, severity = "warn") => ({ text, ...attributes }) => {
6911
6911
  if (context.format === "pretty") {
@@ -6938,7 +6938,7 @@ var recordDiagnostics = /* @__PURE__ */ __name((context, app) => {
6938
6938
  return context;
6939
6939
  }, "recordDiagnostics");
6940
6940
 
6941
- // node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-stems.js
6941
+ // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-stems.js
6942
6942
  var STEMS_EVERY_MS = 3e4;
6943
6943
  var STEMS_SLICE_MS = 2e3;
6944
6944
  var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY_MS, sliceMs = STEMS_SLICE_MS }) => {
@@ -6978,7 +6978,7 @@ var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY
6978
6978
  };
6979
6979
  }, "stemFills");
6980
6980
 
6981
- // node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/cli/messenger/message-items.js
6981
+ // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/cli/messenger/message-items.js
6982
6982
  var defined = /* @__PURE__ */ __name((value) => Object.fromEntries(Object.entries(value).filter(([, one]) => one !== void 0)), "defined");
6983
6983
  var attachmentItem = /* @__PURE__ */ __name((attachment) => defined({
6984
6984
  kind: attachment.kind,
@@ -7073,7 +7073,7 @@ var viewOf = /* @__PURE__ */ __name((context, messenger) => ({
7073
7073
  locale: messenger.app.locale
7074
7074
  }), "viewOf");
7075
7075
 
7076
- // node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-answers.js
7076
+ // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-answers.js
7077
7077
  var observed = /* @__PURE__ */ __name((value) => ({
7078
7078
  value: value.value,
7079
7079
  observed_at: value.observedAt,
@@ -7140,7 +7140,7 @@ var watchEventItem = /* @__PURE__ */ __name((value, account) => {
7140
7140
  }
7141
7141
  }, "watchEventItem");
7142
7142
 
7143
- // node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-command.js
7143
+ // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-command.js
7144
7144
  var watchCommand = /* @__PURE__ */ __name((messenger) => annotate(new Command("watch"), {
7145
7145
  output: { entity: "watch_item" },
7146
7146
  effects: REMOTE_READ,
@@ -7295,7 +7295,7 @@ var describe = /* @__PURE__ */ __name((event, render) => {
7295
7295
  }
7296
7296
  }, "describe");
7297
7297
 
7298
- // node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-command.js
7298
+ // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-command.js
7299
7299
  var serveCommand = /* @__PURE__ */ __name((messenger) => {
7300
7300
  const command = annotate(new Command("serve"), {
7301
7301
  output: { entity: "serve_summary" },
@@ -7511,7 +7511,7 @@ var tasking = /* @__PURE__ */ __name((context, warn) => {
7511
7511
  };
7512
7512
  }, "tasking");
7513
7513
 
7514
- // node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/cli/messenger/store-tables-command.js
7514
+ // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/cli/messenger/store-tables-command.js
7515
7515
  import { existsSync as existsSync6 } from "node:fs";
7516
7516
  var PATH = "store tables list";
7517
7517
  var STORE_TABLES_QUERY = {
@@ -7554,7 +7554,7 @@ var storeTablesCommand = /* @__PURE__ */ __name((messenger) => {
7554
7554
  return tables;
7555
7555
  }, "storeTablesCommand");
7556
7556
 
7557
- // node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
7557
+ // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
7558
7558
  var SEARCH_INDEXES = ["messages_fts", "chats_fts", "identities_fts"];
7559
7559
  var WORD_INDEX = "message_words";
7560
7560
  var schemaOf = /* @__PURE__ */ __name((database) => {