@wirecat/mail-cli 0.31.0 → 0.33.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 (117) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist/bin/mail.js +2 -2
  3. package/dist/bundle/{all-profiles-XL62TNUO.js → all-profiles-W3CGXEEJ.js} +10 -10
  4. package/dist/bundle/{anthropic-3MSWVYCE.js → anthropic-UMDO5AKP.js} +5 -5
  5. package/dist/bundle/{app-server-RRNR5XFA.js → app-server-4SICQ5RP.js} +50 -50
  6. package/dist/bundle/{bun-E3F3PEQQ.js → bun-QVVCH4MJ.js} +2 -2
  7. package/dist/bundle/{bun-sqlite-UOFN77LO.js → bun-sqlite-CHD4AIUK.js} +6 -6
  8. package/dist/bundle/{chunk-JYGFEMTR.js → chunk-2BFXHCZW.js} +2 -2
  9. package/dist/bundle/{chunk-NEJU74O4.js → chunk-2L6D54BR.js} +8 -8
  10. package/dist/bundle/{chunk-BS6WYCNZ.js → chunk-2P44S7XK.js} +27 -30
  11. package/dist/bundle/{chunk-TUXNILKR.js → chunk-2X344EUT.js} +8 -8
  12. package/dist/bundle/{chunk-M4OP5ASJ.js → chunk-35AH33VJ.js} +1 -1
  13. package/dist/bundle/{chunk-UFMR2TB3.js → chunk-47YNANPZ.js} +2 -2
  14. package/dist/bundle/{chunk-7C6FGWDH.js → chunk-6IS4BEN4.js} +4 -4
  15. package/dist/bundle/{chunk-ITU6K7LU.js → chunk-6VCQ4CTK.js} +1 -1
  16. package/dist/bundle/{chunk-NYQPKZWL.js → chunk-74BYHR44.js} +590 -604
  17. package/dist/bundle/{chunk-T72DWT37.js → chunk-7OYZU5SP.js} +4 -4
  18. package/dist/bundle/{chunk-4BW5JACS.js → chunk-AEKWEYIG.js} +17 -17
  19. package/dist/bundle/{chunk-3CJ4C6BB.js → chunk-BF73DBAA.js} +13 -13
  20. package/dist/bundle/{chunk-7KCBPAQS.js → chunk-BI5P7JWM.js} +2 -2
  21. package/dist/bundle/{chunk-7MEVD5PI.js → chunk-BRRHYXUP.js} +19 -19
  22. package/dist/bundle/{chunk-GZLCZU5B.js → chunk-BZY5W35X.js} +7 -7
  23. package/dist/bundle/{chunk-6UOUDIXL.js → chunk-CHNNKHLL.js} +7468 -7317
  24. package/dist/bundle/{chunk-QVGCHTTU.js → chunk-CIG4UVP6.js} +12 -12
  25. package/dist/bundle/{chunk-D6D6JLXG.js → chunk-CZ6ZXDSO.js} +46 -37
  26. package/dist/bundle/{chunk-7E7YXQ52.js → chunk-DI74RP6R.js} +18 -18
  27. package/dist/bundle/{chunk-IX3GUNGV.js → chunk-EW3JFV7J.js} +4 -4
  28. package/dist/bundle/{chunk-GWKGZOSO.js → chunk-FSMCXQH2.js} +2 -2
  29. package/dist/bundle/{chunk-DDCDOBZS.js → chunk-GZYICXO4.js} +1 -1
  30. package/dist/bundle/{chunk-BKRIIZPV.js → chunk-H46MANPR.js} +3 -3
  31. package/dist/bundle/{chunk-OP5ZLH53.js → chunk-HFFHL7SV.js} +55 -55
  32. package/dist/bundle/{chunk-DCR3IWC7.js → chunk-I3UAD4EI.js} +33 -32
  33. package/dist/bundle/{chunk-EMVLCION.js → chunk-IBIFX2LK.js} +2 -2
  34. package/dist/bundle/{chunk-BNP7WLDQ.js → chunk-IPSLQX64.js} +2 -2
  35. package/dist/bundle/{chunk-DPDS6IZJ.js → chunk-JADBHKBP.js} +1 -1
  36. package/dist/bundle/{chunk-DWBY7DMF.js → chunk-JCQ47WR4.js} +5 -5
  37. package/dist/bundle/{chunk-LGDJDD5J.js → chunk-JUYUWMTG.js} +4 -4
  38. package/dist/bundle/{chunk-OXHQNEXU.js → chunk-KLLT572M.js} +3 -3
  39. package/dist/bundle/{chunk-5YRR52NH.js → chunk-L3MKFI3Y.js} +2 -2
  40. package/dist/bundle/{chunk-PZL7DHVJ.js → chunk-LACMDMDI.js} +9 -9
  41. package/dist/bundle/{chunk-DZSS2IUK.js → chunk-LB5FTCPZ.js} +3 -4
  42. package/dist/bundle/{chunk-JLIVJSCF.js → chunk-LFBD6RTX.js} +2 -2
  43. package/dist/bundle/{chunk-QSXJ2BVQ.js → chunk-LKGJMM6W.js} +6 -6
  44. package/dist/bundle/{chunk-NV3WPD3B.js → chunk-LXAX6AZU.js} +6 -6
  45. package/dist/bundle/{chunk-H2QTUZ3C.js → chunk-LXUHYDNE.js} +1 -1
  46. package/dist/bundle/{chunk-I3BQ2QIY.js → chunk-MJ7DUSHT.js} +14 -14
  47. package/dist/bundle/{chunk-4ME2NHNJ.js → chunk-MNJ3BMPZ.js} +3 -3
  48. package/dist/bundle/{chunk-THZHNCJP.js → chunk-MT7T5N2N.js} +4 -4
  49. package/dist/bundle/{chunk-KPFB2VUY.js → chunk-OFMYFFEF.js} +461 -402
  50. package/dist/bundle/{chunk-WZGFC7D5.js → chunk-OOYIPK4F.js} +1 -1
  51. package/dist/bundle/{chunk-NUN7DBR4.js → chunk-OWAJN74H.js} +17 -18
  52. package/dist/bundle/{chunk-S2QO6KUI.js → chunk-QN423PC6.js} +3 -3
  53. package/dist/bundle/{chunk-EV5SR3OC.js → chunk-QO7BK4WD.js} +8 -8
  54. package/dist/bundle/{chunk-GXBNTKJW.js → chunk-RENCSP47.js} +3 -3
  55. package/dist/bundle/{chunk-FIVFP53N.js → chunk-RXUVXAMM.js} +1 -1
  56. package/dist/bundle/{chunk-HZCINHHS.js → chunk-S6CHYNFE.js} +2 -2
  57. package/dist/bundle/{chunk-E3IOR37T.js → chunk-SDWYOYGN.js} +4 -4
  58. package/dist/bundle/{chunk-MS5XYEYW.js → chunk-SW7YGW3T.js} +28 -7
  59. package/dist/bundle/{chunk-BXMLIKUM.js → chunk-SYUIAMVA.js} +181 -156
  60. package/dist/bundle/{chunk-HZL3X4XR.js → chunk-TBZLGT7R.js} +20 -17
  61. package/dist/bundle/{chunk-FRXDSR45.js → chunk-TK77DCE5.js} +1 -1
  62. package/dist/bundle/{chunk-P6CYVOL6.js → chunk-UAV74EY4.js} +1 -1
  63. package/dist/bundle/{chunk-SQA5JI7Q.js → chunk-UG2QDGAH.js} +1 -1
  64. package/dist/bundle/{chunk-ECZSYLSL.js → chunk-UWF3SSRL.js} +25 -8
  65. package/dist/bundle/{chunk-QANXOKYQ.js → chunk-UX76GMQM.js} +6 -6
  66. package/dist/bundle/{chunk-I5Y6Y7Q5.js → chunk-UYZDH5LK.js} +1 -1
  67. package/dist/bundle/{chunk-3V6J7VPF.js → chunk-XN5KH24X.js} +5 -5
  68. package/dist/bundle/{chunk-FYP2M6IT.js → chunk-XQXYAOBV.js} +30 -29
  69. package/dist/bundle/{chunk-PIXFZZUZ.js → chunk-Y2P2LC5R.js} +21 -11
  70. package/dist/bundle/command-contract-NRNQAFFE.js +36 -0
  71. package/dist/bundle/{command-server-entry-A3FCP24M.js → command-server-entry-G2ZHCN5J.js} +25 -25
  72. package/dist/bundle/{decode-FI2ISRNZ.js → decode-U6V6D6XH.js} +5 -5
  73. package/dist/bundle/{dispatch-DSVN7MNG.js → dispatch-RHIK22OA.js} +8 -8
  74. package/dist/bundle/{dist-NLOOZJ64.js → dist-X5G2IMYG.js} +15 -15
  75. package/dist/bundle/{echarts-PMAJUJFE.js → echarts-UZJ6AREV.js} +2 -2
  76. package/dist/bundle/{embed-OIMT6SAX.js → embed-FEXLUH3T.js} +6 -6
  77. package/dist/bundle/{embedder-Q5IF5WIM.js → embedder-NHQARKFJ.js} +9 -9
  78. package/dist/bundle/{failure-COTPFUP4.js → failure-7DIA4OET.js} +2 -2
  79. package/dist/bundle/{first-run-4L53QWOT.js → first-run-PS5NR2QG.js} +12 -12
  80. package/dist/bundle/first-screen-C2WTLOG2.js +34 -0
  81. package/dist/bundle/{instructions-ZJGGGXOA.js → instructions-SDDUBGH4.js} +1 -1
  82. package/dist/bundle/mail.js +12 -12
  83. package/dist/bundle/{mcp-TDKGDB4V.js → mcp-GN4FTJX5.js} +2 -2
  84. package/dist/bundle/{node-DCSOHRD6.js → node-ELCNUOCE.js} +2 -2
  85. package/dist/bundle/{node-sqlite-7F77K5JA.js → node-sqlite-2E5MKZMH.js} +7 -7
  86. package/dist/bundle/{oauth-LVPMEN6M.js → oauth-JGPEIY3M.js} +7 -7
  87. package/dist/bundle/{open-XM5LWEN6.js → open-6DEMCZAB.js} +5 -5
  88. package/dist/bundle/{openai-H2LCGK22.js → openai-IVKDU5AH.js} +15 -15
  89. package/dist/bundle/{process-MFC5VSPT.js → process-67DAKAAQ.js} +1 -1
  90. package/dist/bundle/{program-ZQ43ZYKZ.js → program-ESJDQMAJ.js} +498 -481
  91. package/dist/bundle/{prompt-3LZAZNQ4.js → prompt-ZBWOT5KG.js} +5 -5
  92. package/dist/bundle/{recognize-GYQMHFY2.js → recognize-UUBH2DOH.js} +4 -4
  93. package/dist/bundle/{remote-P2MD5G64.js → remote-UYTNWNOB.js} +9 -9
  94. package/dist/bundle/{rerank-A5X6THV6.js → rerank-X2633CQN.js} +7 -7
  95. package/dist/bundle/{serve-IEC3EUKS.js → serve-CP7Q4OVW.js} +9 -9
  96. package/dist/bundle/{server-3REPXFNI.js → server-I7MXRSAG.js} +42 -42
  97. package/dist/bundle/server-QGTMJ7SF.js +67 -0
  98. package/dist/bundle/{sqlite-runtime-AOLQGC5J.js → sqlite-runtime-BX55LI5G.js} +6 -6
  99. package/dist/bundle/{state-D3P5IXXA.js → state-LLNJQXFH.js} +6 -6
  100. package/dist/bundle/{store-MZCQXBVW.js → store-K4KU5N75.js} +19 -19
  101. package/dist/bundle/{store-DIN6OY3K.js → store-N27XI3VV.js} +17 -17
  102. package/dist/bundle/store-maintenance-command-VPAFQCNA.js +58 -0
  103. package/dist/commands/messages.js +1 -1
  104. package/dist/commands/messages.js.map +1 -1
  105. package/dist/mail/cleanup.d.ts.map +1 -1
  106. package/dist/mail/cleanup.js +4 -3
  107. package/dist/mail/cleanup.js.map +1 -1
  108. package/dist/mail/rules/apply.js +1 -1
  109. package/dist/mail/rules/apply.js.map +1 -1
  110. package/dist/version.d.ts +1 -1
  111. package/dist/version.js +1 -1
  112. package/package.json +3 -3
  113. package/dist/bundle/command-contract-YRNKDQDL.js +0 -36
  114. package/dist/bundle/first-screen-ZPQLAAIS.js +0 -34
  115. package/dist/bundle/server-E2QTFURI.js +0 -67
  116. package/dist/bundle/store-maintenance-command-UMVFI6M6.js +0 -58
  117. /package/dist/bundle/{chunk-XWBPP2HX.js → chunk-BDCC2J2Z.js} +0 -0
@@ -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-JYGFEMTR.js";
5
+ } from "./chunk-2BFXHCZW.js";
6
6
  import {
7
7
  answerOf,
8
8
  messengerContext
9
- } from "./chunk-HZL3X4XR.js";
9
+ } from "./chunk-TBZLGT7R.js";
10
10
  import {
11
11
  FETCHING,
12
12
  RULES_VERSION,
@@ -31,17 +31,17 @@ import {
31
31
  typedQuery,
32
32
  withQuery,
33
33
  withTimeLimit
34
- } from "./chunk-NYQPKZWL.js";
34
+ } from "./chunk-74BYHR44.js";
35
35
  import {
36
36
  holdLock,
37
37
  lockPath,
38
38
  releaseLock,
39
39
  servingProfiles,
40
40
  takeLock
41
- } from "./chunk-GXBNTKJW.js";
41
+ } from "./chunk-RENCSP47.js";
42
42
  import {
43
43
  readSecret
44
- } from "./chunk-S2QO6KUI.js";
44
+ } from "./chunk-QN423PC6.js";
45
45
  import {
46
46
  Command,
47
47
  LOCAL_READ,
@@ -68,13 +68,13 @@ import {
68
68
  snakeKeys,
69
69
  storeTable,
70
70
  withoutProviderRefs
71
- } from "./chunk-BXMLIKUM.js";
71
+ } from "./chunk-SYUIAMVA.js";
72
72
  import {
73
73
  levelFor
74
- } from "./chunk-MS5XYEYW.js";
74
+ } from "./chunk-SW7YGW3T.js";
75
75
  import {
76
76
  holdersOf
77
- } from "./chunk-SQA5JI7Q.js";
77
+ } from "./chunk-UG2QDGAH.js";
78
78
  import {
79
79
  QUICK_HEALTH_CHECKS,
80
80
  fts5Tables,
@@ -82,7 +82,7 @@ import {
82
82
  lossUnknown,
83
83
  storeDamageReport,
84
84
  storeHealth
85
- } from "./chunk-4BW5JACS.js";
85
+ } from "./chunk-AEKWEYIG.js";
86
86
  import {
87
87
  CORPORA,
88
88
  MIGRATIONS,
@@ -117,44 +117,44 @@ import {
117
117
  storeClients,
118
118
  storeContents,
119
119
  vectorIndexCounts
120
- } from "./chunk-6UOUDIXL.js";
120
+ } from "./chunk-CHNNKHLL.js";
121
121
  import {
122
122
  currentRun,
123
123
  readDamageMark,
124
124
  readHealthMark,
125
125
  readJournalMark,
126
126
  recordDeepCheck
127
- } from "./chunk-FYP2M6IT.js";
127
+ } from "./chunk-XQXYAOBV.js";
128
128
  import {
129
129
  formatLocator,
130
130
  parseLocator,
131
131
  queryFieldsOf
132
- } from "./chunk-KPFB2VUY.js";
132
+ } from "./chunk-OFMYFFEF.js";
133
133
  import {
134
134
  failureKey,
135
135
  isStoreDamage
136
- } from "./chunk-5YRR52NH.js";
136
+ } from "./chunk-L3MKFI3Y.js";
137
137
  import {
138
138
  modelAddressAllowed,
139
139
  onThisComputer
140
- } from "./chunk-DWBY7DMF.js";
140
+ } from "./chunk-JCQ47WR4.js";
141
141
  import {
142
142
  readSharedSection,
143
143
  sharedConfigPath,
144
144
  writeSharedSection
145
- } from "./chunk-GZLCZU5B.js";
145
+ } from "./chunk-BZY5W35X.js";
146
146
  import {
147
147
  storePath
148
- } from "./chunk-BNP7WLDQ.js";
148
+ } from "./chunk-IPSLQX64.js";
149
149
  import {
150
150
  openCache
151
- } from "./chunk-NV3WPD3B.js";
151
+ } from "./chunk-LXAX6AZU.js";
152
152
  import {
153
153
  Credentials,
154
154
  isMovedRun,
155
155
  resolvePaths,
156
156
  writeSecurely
157
- } from "./chunk-7MEVD5PI.js";
157
+ } from "./chunk-BRRHYXUP.js";
158
158
  import {
159
159
  array,
160
160
  boolean,
@@ -176,10 +176,10 @@ import {
176
176
  string,
177
177
  transform,
178
178
  trim
179
- } from "./chunk-ECZSYLSL.js";
179
+ } from "./chunk-UWF3SSRL.js";
180
180
  import {
181
181
  CliError
182
- } from "./chunk-7KCBPAQS.js";
182
+ } from "./chunk-BI5P7JWM.js";
183
183
  import {
184
184
  __commonJS,
185
185
  __name,
@@ -5519,11 +5519,11 @@ var require_liquid_node = __commonJS({
5519
5519
  }
5520
5520
  });
5521
5521
 
5522
- // node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
5522
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
5523
5523
  import { chmodSync, constants, copyFileSync, existsSync as existsSync10, mkdirSync, realpathSync as realpathSync3, renameSync as renameSync3, rmSync as rmSync3, statfsSync as statfsSync2, statSync as statSync4, writeFileSync as writeFileSync2 } from "node:fs";
5524
5524
  import { dirname as dirname3, resolve } from "node:path";
5525
5525
 
5526
- // node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/sealed.js
5526
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/sealed.js
5527
5527
  import { createCipheriv, createDecipheriv, createHash, randomBytes, scrypt, timingSafeEqual } from "node:crypto";
5528
5528
  import { closeSync, createReadStream, createWriteStream, existsSync, openSync, readSync, renameSync, rmSync, statSync } from "node:fs";
5529
5529
  import { Transform } from "node:stream";
@@ -5630,7 +5630,7 @@ var unsealFile = /* @__PURE__ */ __name(async (from, to, password) => {
5630
5630
  renameSync(pending, to);
5631
5631
  }, "unsealFile");
5632
5632
 
5633
- // node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/store/compatibility.js
5633
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/store/compatibility.js
5634
5634
  var SPEAKS = MIGRATIONS.at(-1)?.version ?? 0;
5635
5635
  var fileSchemaOf = /* @__PURE__ */ __name((database) => {
5636
5636
  const tracked = database.prepare("SELECT 1 FROM sqlite_master WHERE name = 'schema_migrations'").get();
@@ -5654,7 +5654,7 @@ var compatibilityOf = /* @__PURE__ */ __name((file2, migrations = MIGRATIONS) =>
5654
5654
  };
5655
5655
  }, "compatibilityOf");
5656
5656
 
5657
- // node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/store/repair.js
5657
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/store/repair.js
5658
5658
  import { createHash as createHash2 } from "node:crypto";
5659
5659
  var COPY_MARK = "__repair_";
5660
5660
  var COPY_NAME = /__repair_[0-9a-f]{8}(_\d+)?$/;
@@ -5908,19 +5908,19 @@ var deleteCopy = /* @__PURE__ */ __name((database, name) => {
5908
5908
  return found;
5909
5909
  }, "deleteCopy");
5910
5910
 
5911
- // node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/cli/store-info.js
5911
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/cli/store-info.js
5912
5912
  import { existsSync as existsSync4, statSync as statSync3 } from "node:fs";
5913
5913
 
5914
- // node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/cli/store-recover.js
5914
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/cli/store-recover.js
5915
5915
  import { existsSync as existsSync3 } from "node:fs";
5916
5916
 
5917
- // node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/store/recover.js
5917
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/store/recover.js
5918
5918
  import { execFileSync, spawn } from "node:child_process";
5919
5919
  import { existsSync as existsSync2, readFileSync, realpathSync, renameSync as renameSync2, rmSync as rmSync2, statfsSync, statSync as statSync2, writeFileSync } from "node:fs";
5920
5920
  import { basename, dirname, join } from "node:path";
5921
5921
  import { Transform as Transform2 } from "node:stream";
5922
5922
 
5923
- // node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/store/refill.js
5923
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/store/refill.js
5924
5924
  var REFILL_MARGIN_MS = 864e5;
5925
5925
  var TIME_KEYS = 1e12;
5926
5926
  var integerId = `external_id GLOB '[0-9]*' AND NOT external_id GLOB '*[^0-9]*'`;
@@ -6000,7 +6000,7 @@ var forgetMail = /* @__PURE__ */ __name((database, cutoff, now) => {
6000
6000
  return [...folders].map(([account, count3]) => ({ account, folders: count3 }));
6001
6001
  }, "forgetMail");
6002
6002
 
6003
- // node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/store/recover.js
6003
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/store/recover.js
6004
6004
  var SQLITE3_MINIMUM = [3, 43, 0];
6005
6005
  var STORE_PARTS = ["", "-wal", "-shm"];
6006
6006
  var RECOVER_LOCK = ".recover-lock";
@@ -6528,7 +6528,7 @@ var recoverLocked = /* @__PURE__ */ __name(async ({ path, command, version, sqli
6528
6528
  }
6529
6529
  }, "recoverLocked");
6530
6530
 
6531
- // node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/cli/store-recover.js
6531
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/cli/store-recover.js
6532
6532
  var COUNTED = [
6533
6533
  "accounts",
6534
6534
  "chats",
@@ -6684,7 +6684,7 @@ var storeRecoverCommand = /* @__PURE__ */ __name(({ command, version }) => {
6684
6684
  return recover;
6685
6685
  }, "storeRecoverCommand");
6686
6686
 
6687
- // node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/cli/store-info.js
6687
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/cli/store-info.js
6688
6688
  var pendingIfKnown = /* @__PURE__ */ __name((database) => database.prepare("SELECT 1 FROM pragma_table_info('messages') WHERE name = 'normalized_text'").get() ? pendingNormalization(database) : null, "pendingIfKnown");
6689
6689
  var bytesOf = /* @__PURE__ */ __name((path) => existsSync4(path) ? statSync3(path).size : 0, "bytesOf");
6690
6690
  var messageOf = /* @__PURE__ */ __name((error) => error instanceof Error ? error.message : String(error), "messageOf");
@@ -6730,7 +6730,7 @@ var storeInfoCommand = /* @__PURE__ */ __name(() => annotate(new Command("info")
6730
6730
  renderAnswer(this, outputFor(this), itemOf(answer));
6731
6731
  }), "storeInfoCommand");
6732
6732
 
6733
- // node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/cli/messenger/password.js
6733
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/cli/messenger/password.js
6734
6734
  var ENCRYPT_OPTION = [
6735
6735
  "--encrypt",
6736
6736
  "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"
@@ -6749,7 +6749,7 @@ var passwordOf = /* @__PURE__ */ __name(async (command, { twice }) => {
6749
6749
  return password;
6750
6750
  }, "passwordOf");
6751
6751
 
6752
- // node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/replies/rules.js
6752
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/replies/rules.js
6753
6753
  import { existsSync as existsSync5, readFileSync as readFileSync2 } from "node:fs";
6754
6754
  import { join as join2 } from "node:path";
6755
6755
  var REPLY_ACTIONS = ["reply", "task"];
@@ -6920,7 +6920,7 @@ var problem = /* @__PURE__ */ __name((issue) => {
6920
6920
  }, "problem");
6921
6921
  var broken = /* @__PURE__ */ __name((path, why) => new CliError("configuration_error", `the reply rules ${path} cannot be read (${why}) \u2014 fix the file`), "broken");
6922
6922
 
6923
- // node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/replies/state.js
6923
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/replies/state.js
6924
6924
  import { existsSync as existsSync6, readFileSync as readFileSync3 } from "node:fs";
6925
6925
  import { join as join3 } from "node:path";
6926
6926
  var ANSWERED_KEPT = 1e3;
@@ -6973,7 +6973,7 @@ var recordReply = /* @__PURE__ */ __name((state, rule2, message, now) => {
6973
6973
  }, "recordReply");
6974
6974
  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");
6975
6975
 
6976
- // node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/replies/decide.js
6976
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/replies/decide.js
6977
6977
  var skip = /* @__PURE__ */ __name((why) => ({ skip: why }), "skip");
6978
6978
  var decide = /* @__PURE__ */ __name((rule2, incoming, state, now) => {
6979
6979
  const { message, chat, owner, sender } = incoming;
@@ -7079,10 +7079,10 @@ var filled = /* @__PURE__ */ __name((template2, senderName) => {
7079
7079
  return template2.replaceAll("{firstName}", name.split(/\s+/)[0] ?? name).replaceAll("{name}", name);
7080
7080
  }, "filled");
7081
7081
 
7082
- // node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/replies/template.js
7082
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/replies/template.js
7083
7083
  var import_liquidjs2 = __toESM(require_liquid_node(), 1);
7084
7084
 
7085
- // node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/render/liquid.js
7085
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/render/liquid.js
7086
7086
  var import_liquidjs = __toESM(require_liquid_node(), 1);
7087
7087
  var safeLiquid = /* @__PURE__ */ __name((limits) => {
7088
7088
  const engine = new import_liquidjs.Liquid({
@@ -7109,7 +7109,7 @@ var safeLiquid = /* @__PURE__ */ __name((limits) => {
7109
7109
  return engine;
7110
7110
  }, "safeLiquid");
7111
7111
 
7112
- // node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/replies/template.js
7112
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/replies/template.js
7113
7113
  var TEMPLATE_LIMITS = {
7114
7114
  parse: 32768,
7115
7115
  renders: 2e3,
@@ -7248,7 +7248,7 @@ var renderReplyTemplate = /* @__PURE__ */ __name(async (reply, input) => {
7248
7248
  }
7249
7249
  }, "renderReplyTemplate");
7250
7250
 
7251
- // node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/replies/dry-run.js
7251
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/replies/dry-run.js
7252
7252
  var DRY_RUN_DAYS = 7;
7253
7253
  var PAGE = 500;
7254
7254
  var dryRun = /* @__PURE__ */ __name(async (store, account, rules, { since, until = Date.now(), only, audience, render }) => {
@@ -7362,7 +7362,7 @@ var storedSince = /* @__PURE__ */ __name(async (store, account, chat, since) =>
7362
7362
  }
7363
7363
  }, "storedSince");
7364
7364
 
7365
- // node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/models/ai.js
7365
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/models/ai.js
7366
7366
  var AI_PROVIDERS = ["anthropic", "openai", "ollama"];
7367
7367
  var DEFAULT_BASE_URL = {
7368
7368
  anthropic: "https://api.anthropic.com",
@@ -7512,7 +7512,7 @@ var checkAi = /* @__PURE__ */ __name(async (deps) => {
7512
7512
  }
7513
7513
  }, "checkAi");
7514
7514
 
7515
- // node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/models/purpose.js
7515
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/models/purpose.js
7516
7516
  var HOSTED = {
7517
7517
  openai: "https://api.openai.com/v1",
7518
7518
  anthropic: "https://api.anthropic.com"
@@ -7533,7 +7533,7 @@ var purposeModel = /* @__PURE__ */ __name((settings, purpose, deps) => {
7533
7533
  return shared ? { target: shared.target, key: /* @__PURE__ */ __name(() => shared.key, "key"), shared: shared.setting } : void 0;
7534
7534
  }, "purposeModel");
7535
7535
 
7536
- // node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/replies/consents.js
7536
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/replies/consents.js
7537
7537
  import { existsSync as existsSync7, readFileSync as readFileSync4 } from "node:fs";
7538
7538
  import { join as join4 } from "node:path";
7539
7539
  var shape = strictObject({
@@ -7558,7 +7558,7 @@ var mayModelReply = /* @__PURE__ */ __name((path, provider, chat) => {
7558
7558
  return consent.provider === provider && !consent.deniedChats.includes(chat);
7559
7559
  }, "mayModelReply");
7560
7560
 
7561
- // node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/replies/rendering.js
7561
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/replies/rendering.js
7562
7562
  var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, options = {
7563
7563
  ai: true
7564
7564
  }) => async (rule2, message, chat, now) => {
@@ -7606,7 +7606,7 @@ var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, o
7606
7606
  return result2;
7607
7607
  }, "replyRenderer");
7608
7608
 
7609
- // node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/replies/serve.js
7609
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/replies/serve.js
7610
7610
  var NOT_ALLOWED = "replies.send is not allow";
7611
7611
  var NO_RULES = "no rules";
7612
7612
  var ONLY_TASK = "opened a task, sent nothing";
@@ -7699,7 +7699,7 @@ var replyTo = /* @__PURE__ */ __name(async (deps, message) => {
7699
7699
  return { skip: why };
7700
7700
  }, "replyTo");
7701
7701
 
7702
- // node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-catch-up.js
7702
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-catch-up.js
7703
7703
  var START_SYNC_DELAY_MS = 3e4;
7704
7704
  var START_SYNC_BUDGET_MS = 5 * 6e4;
7705
7705
  var START_SYNC_WINDOW_MS = 7 * 864e5;
@@ -7776,7 +7776,7 @@ var startSync = /* @__PURE__ */ __name(({ chats, newestHeld, fetch, note, warn,
7776
7776
  };
7777
7777
  }, "startSync");
7778
7778
 
7779
- // node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-members.js
7779
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-members.js
7780
7780
  var FIRST_FETCH_MS = 6e4;
7781
7781
  var DAY_MS = 864e5;
7782
7782
  var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch, warn, firstMs = FIRST_FETCH_MS, everyMs = DAY_MS }) => {
@@ -7830,7 +7830,7 @@ var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch, warn, firstMs =
7830
7830
  };
7831
7831
  }, "memberFetches");
7832
7832
 
7833
- // node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-notice.js
7833
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-notice.js
7834
7834
  var record2 = /* @__PURE__ */ __name((context, app, severity, attributes) => recordLogFor(context.streams.diagnostic, app, { command: currentRun().command || "serve" })[severity](attributes), "record");
7835
7835
  var noticeFor = /* @__PURE__ */ __name((context, app, severity = "warn") => ({ text, ...attributes }) => {
7836
7836
  if (context.format === "pretty") {
@@ -7863,7 +7863,7 @@ var recordDiagnostics = /* @__PURE__ */ __name((context, app) => {
7863
7863
  return context;
7864
7864
  }, "recordDiagnostics");
7865
7865
 
7866
- // node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-outdated.js
7866
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-outdated.js
7867
7867
  import { existsSync as existsSync8, readFileSync as readFileSync5, realpathSync as realpathSync2 } from "node:fs";
7868
7868
  import { dirname as dirname2, join as join5 } from "node:path";
7869
7869
  var OUTDATED_CHECK_MS = 6e4;
@@ -7949,7 +7949,7 @@ var watchOutdated = /* @__PURE__ */ __name(({ check: check2, onOutdated, everyMs
7949
7949
  };
7950
7950
  }, "watchOutdated");
7951
7951
 
7952
- // node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-stems.js
7952
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-stems.js
7953
7953
  var STEMS_EVERY_MS = 3e4;
7954
7954
  var STEMS_SLICE_MS = 2e3;
7955
7955
  var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY_MS, sliceMs = STEMS_SLICE_MS }) => {
@@ -7989,7 +7989,7 @@ var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY
7989
7989
  };
7990
7990
  }, "stemFills");
7991
7991
 
7992
- // node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/cli/messenger/message-items.js
7992
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/cli/messenger/message-items.js
7993
7993
  var defined = /* @__PURE__ */ __name((value) => Object.fromEntries(Object.entries(value).filter(([, one]) => one !== void 0)), "defined");
7994
7994
  var attachmentItem = /* @__PURE__ */ __name((attachment) => defined({
7995
7995
  kind: attachment.kind,
@@ -8085,7 +8085,7 @@ var viewOf = /* @__PURE__ */ __name((context, messenger) => ({
8085
8085
  locale: messenger.app.locale
8086
8086
  }), "viewOf");
8087
8087
 
8088
- // node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-answers.js
8088
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-answers.js
8089
8089
  var observed = /* @__PURE__ */ __name((value) => ({
8090
8090
  value: value.value,
8091
8091
  observed_at: value.observedAt,
@@ -8152,7 +8152,7 @@ var watchEventItem = /* @__PURE__ */ __name((value, account) => {
8152
8152
  }
8153
8153
  }, "watchEventItem");
8154
8154
 
8155
- // node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-command.js
8155
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-command.js
8156
8156
  var watchCommand = /* @__PURE__ */ __name((messenger) => annotate(new Command("watch"), {
8157
8157
  output: { entity: "watch_item" },
8158
8158
  effects: REMOTE_READ,
@@ -8307,7 +8307,7 @@ var describe = /* @__PURE__ */ __name((event, render) => {
8307
8307
  }
8308
8308
  }, "describe");
8309
8309
 
8310
- // node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-command.js
8310
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-command.js
8311
8311
  var serveCommand = /* @__PURE__ */ __name((messenger) => {
8312
8312
  const command = annotate(new Command("serve"), {
8313
8313
  output: { entity: "serve_summary" },
@@ -8593,7 +8593,7 @@ var tasking = /* @__PURE__ */ __name((context, warn) => {
8593
8593
  };
8594
8594
  }, "tasking");
8595
8595
 
8596
- // node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/cli/messenger/store-tables-command.js
8596
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/cli/messenger/store-tables-command.js
8597
8597
  import { existsSync as existsSync9 } from "node:fs";
8598
8598
  var PATH = "store tables list";
8599
8599
  var STORE_TABLES_QUERY = {
@@ -8636,7 +8636,7 @@ var storeTablesCommand = /* @__PURE__ */ __name((owner) => {
8636
8636
  return tables;
8637
8637
  }, "storeTablesCommand");
8638
8638
 
8639
- // node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
8639
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
8640
8640
  var SEARCH_INDEXES = ["messages_fts", "chats_fts", "identities_fts"];
8641
8641
  var WORD_INDEX = "message_words";
8642
8642
  var schemaOf = /* @__PURE__ */ __name((database) => {
@@ -12,10 +12,10 @@ import {
12
12
  refuseWriteBeforeConnecting,
13
13
  registerPrompts,
14
14
  syncsFirst
15
- } from "./chunk-BS6WYCNZ.js";
15
+ } from "./chunk-2P44S7XK.js";
16
16
  import {
17
17
  stdinFieldOf
18
- } from "./chunk-P6CYVOL6.js";
18
+ } from "./chunk-UAV74EY4.js";
19
19
  import {
20
20
  BinaryResource,
21
21
  Picture,
@@ -36,31 +36,31 @@ import {
36
36
  tool,
37
37
  toolKey,
38
38
  toolsFromCommands
39
- } from "./chunk-D6D6JLXG.js";
39
+ } from "./chunk-CZ6ZXDSO.js";
40
40
  import {
41
41
  agentJson,
42
42
  skillResource
43
- } from "./chunk-NUN7DBR4.js";
43
+ } from "./chunk-OWAJN74H.js";
44
44
  import {
45
45
  instructions
46
- } from "./chunk-ITU6K7LU.js";
46
+ } from "./chunk-6VCQ4CTK.js";
47
47
  import {
48
48
  StdioServerTransport,
49
49
  answeredWire,
50
50
  callerOf,
51
51
  callingAgent,
52
52
  serveStdio
53
- } from "./chunk-OXHQNEXU.js";
53
+ } from "./chunk-KLLT572M.js";
54
54
  import {
55
55
  McpServer,
56
56
  ResourceTemplate
57
57
  } from "./chunk-5D4AEUVA.js";
58
58
  import {
59
59
  mcpHttpMarker
60
- } from "./chunk-T72DWT37.js";
60
+ } from "./chunk-7OYZU5SP.js";
61
61
  import {
62
62
  connectedFor
63
- } from "./chunk-HZL3X4XR.js";
63
+ } from "./chunk-TBZLGT7R.js";
64
64
  import {
65
65
  capability,
66
66
  dateWindow,
@@ -70,10 +70,10 @@ import {
70
70
  servicesFor,
71
71
  storedDeps,
72
72
  wholeList
73
- } from "./chunk-NYQPKZWL.js";
73
+ } from "./chunk-74BYHR44.js";
74
74
  import {
75
75
  findCommand
76
- } from "./chunk-3V6J7VPF.js";
76
+ } from "./chunk-XN5KH24X.js";
77
77
  import {
78
78
  DEFAULT_OUTPUT_BYTES,
79
79
  changesAuthorityAt,
@@ -88,30 +88,31 @@ import {
88
88
  rootOf2 as rootOf,
89
89
  sealed,
90
90
  snakeKeys
91
- } from "./chunk-BXMLIKUM.js";
91
+ } from "./chunk-SYUIAMVA.js";
92
92
  import {
93
+ fetchesAt,
93
94
  levelFor,
94
95
  readKeysForCommand
95
- } from "./chunk-MS5XYEYW.js";
96
+ } from "./chunk-SW7YGW3T.js";
96
97
  import {
97
98
  withCaller
98
- } from "./chunk-TUXNILKR.js";
99
+ } from "./chunk-2X344EUT.js";
99
100
  import {
100
101
  openStore,
101
102
  pdfPreviewLimits
102
- } from "./chunk-6UOUDIXL.js";
103
+ } from "./chunk-CHNNKHLL.js";
103
104
  import {
104
105
  typedCommand
105
- } from "./chunk-FYP2M6IT.js";
106
+ } from "./chunk-XQXYAOBV.js";
106
107
  import {
107
108
  timezoneOf
108
- } from "./chunk-KPFB2VUY.js";
109
+ } from "./chunk-OFMYFFEF.js";
109
110
  import {
110
111
  isCliFailure
111
- } from "./chunk-5YRR52NH.js";
112
+ } from "./chunk-L3MKFI3Y.js";
112
113
  import {
113
114
  warmEmbedders
114
- } from "./chunk-QANXOKYQ.js";
115
+ } from "./chunk-UX76GMQM.js";
115
116
  import {
116
117
  description,
117
118
  errorObjectOf,
@@ -128,19 +129,19 @@ import {
128
129
  regex,
129
130
  strictObject,
130
131
  string
131
- } from "./chunk-ECZSYLSL.js";
132
+ } from "./chunk-UWF3SSRL.js";
132
133
  import {
133
134
  CliError,
134
135
  visibleControls
135
- } from "./chunk-7KCBPAQS.js";
136
+ } from "./chunk-BI5P7JWM.js";
136
137
  import {
137
138
  __name
138
139
  } from "./chunk-ZVVMGPBJ.js";
139
140
 
140
- // node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/mcp/server.js
141
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/mcp/server.js
141
142
  import { randomUUID } from "node:crypto";
142
143
 
143
- // node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/mcp/agent-log.js
144
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/mcp/agent-log.js
144
145
  var agentLog = /* @__PURE__ */ __name((open) => {
145
146
  let held;
146
147
  return {
@@ -159,7 +160,7 @@ var agentLog = /* @__PURE__ */ __name((open) => {
159
160
  };
160
161
  }, "agentLog");
161
162
 
162
- // node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/mcp/resources.js
163
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/mcp/resources.js
163
164
  var LISTED = 100;
164
165
  var registerResources = /* @__PURE__ */ __name((server, session, { command, name, limit, recorded, withStore, messenger, guard, assertRead }) => {
165
166
  server.registerResource("chat", new ResourceTemplate(`${command}://chat/{id}`, {
@@ -197,7 +198,7 @@ var registerResources = /* @__PURE__ */ __name((server, session, { command, name
197
198
  });
198
199
  }, "registerResources");
199
200
 
200
- // node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/mcp/session.js
201
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/mcp/session.js
201
202
  var HARMLESS = /* @__PURE__ */ new Set(["validation_error", "not_found", "permission_error", "confirmation_required", "rate_limited"]);
202
203
  var harmless = /* @__PURE__ */ __name((code) => HARMLESS.has(code), "harmless");
203
204
  var MessengerSession = class {
@@ -272,7 +273,7 @@ var MessengerSession = class {
272
273
  }
273
274
  };
274
275
 
275
- // node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/mcp/tools/attachments.js
276
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/mcp/tools/attachments.js
276
277
  var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
277
278
  const _command = messenger.app.command;
278
279
  return {
@@ -326,7 +327,7 @@ var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
326
327
  };
327
328
  }, "attachmentsTools");
328
329
 
329
- // node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/mcp/tools/messages-photo.js
330
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/mcp/tools/messages-photo.js
330
331
  var PHOTO_LIMIT = 512 * 1024;
331
332
  var IMAGE_TYPES = [
332
333
  ["image/jpeg", (b) => b[0] === 255 && b[1] === 216 && b[2] === 255],
@@ -382,7 +383,7 @@ var readUpTo = /* @__PURE__ */ __name(async (file, limit, saveIt) => {
382
383
  return new Uint8Array(Buffer.concat(chunks));
383
384
  }, "readUpTo");
384
385
 
385
- // node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/mcp/tools/stats.js
386
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/mcp/tools/stats.js
386
387
  var statsTools = /* @__PURE__ */ __name((messenger) => ({
387
388
  stats_charts: tool({
388
389
  title: "A chart from a chat's statistics",
@@ -419,14 +420,14 @@ var statsTools = /* @__PURE__ */ __name((messenger) => ({
419
420
  })
420
421
  }), "statsTools");
421
422
 
422
- // node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/mcp/tools.js
423
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/mcp/tools.js
423
424
  var pictureTools = /* @__PURE__ */ __name((messenger) => Object.fromEntries(Object.entries({
424
425
  ...messagesPhotoTools(messenger),
425
426
  ...attachmentsTools(messenger),
426
427
  ...statsTools(messenger)
427
428
  }).map(([name, definition]) => [name, { ...definition, input: strictObject(definition.input.entries) }])), "pictureTools");
428
429
 
429
- // node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/mcp/server.js
430
+ // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/mcp/server.js
430
431
  var PER_RUN = /* @__PURE__ */ new Set([
431
432
  "streams",
432
433
  "stdin",
@@ -485,7 +486,7 @@ var createServer = /* @__PURE__ */ __name((command, context, messenger, sessionO
485
486
  return void 0;
486
487
  }
487
488
  }, "stdin");
488
- const syncAllowed = /* @__PURE__ */ __name((path) => syncsFirst(messenger) && levelOf("messages.sync-first") === "allow" && (path[0] !== "stats" || levelOf(`${path.join(".")}.sync-first`) === "allow"), "syncAllowed");
489
+ const syncAllowed = /* @__PURE__ */ __name((path) => syncsFirst(messenger) && fetchesAt(levelOf("messages.sync-first")) && (path[0] !== "stats" || fetchesAt(levelOf(`${path.join(".")}.sync-first`))), "syncAllowed");
489
490
  const generated = toolsFromCommands(program.commands, {
490
491
  includeUnavailable: true,
491
492
  exclude: [["bot"]],
@@ -664,7 +665,7 @@ var createServer = /* @__PURE__ */ __name((command, context, messenger, sessionO
664
665
  spawnJob: sessionOptions.spawnJob,
665
666
  limit: settings.limit,
666
667
  get syncAllowed() {
667
- return syncsFirst(messenger) && levelOf("messages.sync-first") === "allow";
668
+ return syncsFirst(messenger) && fetchesAt(levelOf("messages.sync-first"));
668
669
  },
669
670
  guard,
670
671
  settings,
@@ -743,7 +744,7 @@ var serveOverStdio = /* @__PURE__ */ __name(async (command, context, messenger,
743
744
  }, "serveOverStdio");
744
745
  var serveOverHttpUntilStopped = /* @__PURE__ */ __name(async (command, context, messenger, options, http) => {
745
746
  const { session, embedders, build, log } = createServer(command, context, messenger, options);
746
- const { serveOverHttp } = await import("./serve-IEC3EUKS.js");
747
+ const { serveOverHttp } = await import("./serve-CP7Q4OVW.js");
747
748
  const appName = messenger.app.command;
748
749
  const appEnvPrefix = messenger.app.envPrefix;
749
750
  const listening = await serveOverHttp(build, {