@wirecat/tg-cli 0.127.0 → 0.129.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 (126) hide show
  1. package/contracts/wirecat.json +26 -0
  2. package/dist/bin/tg.js +2 -2
  3. package/dist/bundle/{adapter-EZFS2UR6.js → adapter-2XFPXBTA.js} +60 -52
  4. package/dist/bundle/{all-profiles-TNIUBQK6.js → all-profiles-GXFPZLYU.js} +20 -30
  5. package/dist/bundle/{anthropic-NGIS5LTL.js → anthropic-FHS5XNK5.js} +5 -5
  6. package/dist/bundle/{app-server-RPU76G7D.js → app-server-IZMFSFP2.js} +56 -63
  7. package/dist/bundle/{bot-api-QJ6U6BLG.js → bot-api-LQP75V5I.js} +61 -53
  8. package/dist/bundle/{bot-history-THULK2C6.js → bot-history-EJQOD4AQ.js} +22 -18
  9. package/dist/bundle/{bun-QLSLLP27.js → bun-GBAZFRCV.js} +2 -2
  10. package/dist/bundle/{bun-sqlite-SH5245ZY.js → bun-sqlite-JB4BX6X7.js} +6 -6
  11. package/dist/bundle/chunk-2JZJPVBH.js +334 -0
  12. package/dist/bundle/{chunk-DNNYE6PS.js → chunk-2LPODKIF.js} +18 -15
  13. package/dist/bundle/chunk-3KZG63EH.js +170 -0
  14. package/dist/bundle/chunk-3XMUP55N.js +372 -0
  15. package/dist/bundle/{chunk-BWHVHPAQ.js → chunk-4BJAQNJ5.js} +9 -9
  16. package/dist/bundle/{chunk-M4OP5ASJ.js → chunk-66PL7P4C.js} +1 -1
  17. package/dist/bundle/{chunk-JWEKUAVZ.js → chunk-66UG67CE.js} +12 -12
  18. package/dist/bundle/{chunk-R52ZZZKZ.js → chunk-6JBRQ6PM.js} +55 -22
  19. package/dist/bundle/{chunk-Y7UA7HGL.js → chunk-6M3FAHPS.js} +3 -3
  20. package/dist/bundle/{chunk-TGKTIDYS.js → chunk-7F3LOHRB.js} +290 -504
  21. package/dist/bundle/{chunk-XS5C5TQ7.js → chunk-AUNNJDVD.js} +25 -8
  22. package/dist/bundle/{chunk-ERUB3KU3.js → chunk-B5RGPZDZ.js} +7 -7
  23. package/dist/bundle/{chunk-YRZXOQOB.js → chunk-B6NQJAUC.js} +2 -2
  24. package/dist/bundle/{chunk-4FFKCC7Y.js → chunk-BMSS3PCY.js} +62 -36
  25. package/dist/bundle/{chunk-VMV5CMLH.js → chunk-C4ALE7CH.js} +1 -1
  26. package/dist/bundle/{chunk-K4VO7S6Q.js → chunk-CKJ73EF3.js} +1 -1
  27. package/dist/bundle/{chunk-IX3GUNGV.js → chunk-CLG2ISQH.js} +4 -4
  28. package/dist/bundle/{chunk-MTU3UP5U.js → chunk-EB2JE722.js} +1 -1
  29. package/dist/bundle/{chunk-EGNQSWPH.js → chunk-EUL7HMUL.js} +2 -2
  30. package/dist/bundle/{chunk-2R6ZSE3O.js → chunk-F6CV4KUN.js} +2 -2
  31. package/dist/bundle/{chunk-7KCBPAQS.js → chunk-F6MLJ3V5.js} +2 -2
  32. package/dist/bundle/{chunk-ZSS3BH6Z.js → chunk-FH4YIBBH.js} +4 -4
  33. package/dist/bundle/chunk-FIO5NMK3.js +771 -0
  34. package/dist/bundle/{chunk-FSDLSEZA.js → chunk-G2SMVYBU.js} +2 -2
  35. package/dist/bundle/{chunk-FIVFP53N.js → chunk-GA3URWIF.js} +1 -1
  36. package/dist/bundle/{chunk-4CQ3PV3V.js → chunk-GGGBPWUS.js} +10 -15
  37. package/dist/bundle/{chunk-3CV5TBBR.js → chunk-GSHTLLCJ.js} +2 -2
  38. package/dist/bundle/{chunk-IWJ5OLU6.js → chunk-GYCKRIRK.js} +3 -3
  39. package/dist/bundle/{chunk-H7GAFD4N.js → chunk-HHUK3XO5.js} +1 -1
  40. package/dist/bundle/{chunk-NM5GBJME.js → chunk-HT6OFANN.js} +19 -19
  41. package/dist/bundle/{chunk-GHVRCLJI.js → chunk-I5PILOTU.js} +1 -1
  42. package/dist/bundle/chunk-IBSHQWIJ.js +29 -0
  43. package/dist/bundle/{chunk-5SN6KFPC.js → chunk-IRWSZJYL.js} +65 -60
  44. package/dist/bundle/{chunk-3I3TGKVG.js → chunk-IV6SIKVH.js} +4 -4
  45. package/dist/bundle/{chunk-URFBZNLU.js → chunk-JUFLELQ7.js} +2 -2
  46. package/dist/bundle/{chunk-5FDYMMEQ.js → chunk-KY3JLXW2.js} +4 -4
  47. package/dist/bundle/{chunk-YZGIQY2R.js → chunk-LPT5T6PU.js} +37 -28
  48. package/dist/bundle/chunk-LQPZDDDP.js +259 -0
  49. package/dist/bundle/{chunk-CXWAKV2O.js → chunk-M327UNS6.js} +6 -6
  50. package/dist/bundle/{chunk-4MKRKW6V.js → chunk-MS6YEIG5.js} +13 -13
  51. package/dist/bundle/{chunk-UY2TRFYN.js → chunk-MVFSWKTM.js} +12 -12
  52. package/dist/bundle/{chunk-45URY64S.js → chunk-NRCY3WBC.js} +2 -2
  53. package/dist/bundle/{chunk-SN52ZGFN.js → chunk-O2ULG7OO.js} +3 -3
  54. package/dist/bundle/{chunk-JF7D2Y4K.js → chunk-OJMDKWWL.js} +670 -519
  55. package/dist/bundle/{chunk-UW34Z7J3.js → chunk-OKTRB4ZQ.js} +1 -1
  56. package/dist/bundle/{chunk-7GE6KMLB.js → chunk-OOQVHMCS.js} +15 -15
  57. package/dist/bundle/{chunk-P5NJECXX.js → chunk-OWVQMK7G.js} +939 -909
  58. package/dist/bundle/{chunk-YIPOWJPN.js → chunk-P4FZJO5F.js} +2 -2
  59. package/dist/bundle/{chunk-LD42OGKK.js → chunk-PS7ZS5HD.js} +4 -4
  60. package/dist/bundle/{chunk-J6FHZXNS.js → chunk-PWQKGFS2.js} +49 -55
  61. package/dist/bundle/{chunk-APSMQIA4.js → chunk-QBNEWEJC.js} +3 -3
  62. package/dist/bundle/{chunk-Y65BQJOY.js → chunk-QDEP2QOA.js} +3 -3
  63. package/dist/bundle/{chunk-FD44T7HC.js → chunk-QFVIHBLD.js} +1 -1
  64. package/dist/bundle/{chunk-5KZKVKWU.js → chunk-QJDHRBXL.js} +7 -7
  65. package/dist/bundle/{chunk-LOG65WHO.js → chunk-QJLCEOAP.js} +1 -1
  66. package/dist/bundle/{chunk-XUAVZ6YX.js → chunk-RAFK5KXU.js} +9 -9
  67. package/dist/bundle/{chunk-UIQMBOXU.js → chunk-RPWYTOLI.js} +5 -5
  68. package/dist/bundle/{chunk-QPVCFSVU.js → chunk-RZPMFVWM.js} +6 -6
  69. package/dist/bundle/chunk-S5UTBEV3.js +1974 -0
  70. package/dist/bundle/{chunk-X4ECHJNG.js → chunk-SYZXOEHY.js} +98 -6
  71. package/dist/bundle/{chunk-BNM6KNUQ.js → chunk-SZB5WRMI.js} +2 -2
  72. package/dist/bundle/{chunk-5AOFOJQA.js → chunk-TGRB4SSZ.js} +4 -4
  73. package/dist/bundle/{chunk-Y62I2T36.js → chunk-VSPSHBAC.js} +2 -2
  74. package/dist/bundle/{chunk-JFQZ6BWI.js → chunk-VTJ3AOTT.js} +17 -17
  75. package/dist/bundle/{chunk-HPM47WO3.js → chunk-VXWDQDRU.js} +6130 -6675
  76. package/dist/bundle/{chunk-S3XUJPPL.js → chunk-X5H5NERR.js} +6 -6
  77. package/dist/bundle/{chunk-3WI53AA4.js → chunk-XHX5D5VE.js} +1174 -2636
  78. package/dist/bundle/chunk-XXW6PFAX.js +16 -0
  79. package/dist/bundle/{chunk-NBN5OYXH.js → chunk-ZRQQOGAZ.js} +4 -4
  80. package/dist/bundle/command-contract-G752BLKA.js +37 -0
  81. package/dist/bundle/{command-server-entry-UG2CLYXI.js → command-server-entry-YR6ONDWO.js} +27 -24
  82. package/dist/bundle/decode-VUKGWFSW.js +296 -0
  83. package/dist/bundle/{dispatch-PRAIGIFS.js → dispatch-ST5FK2KI.js} +8 -8
  84. package/dist/bundle/{echarts-CN6ZVAJZ.js → echarts-GOV5M733.js} +2 -2
  85. package/dist/bundle/{embed-M4EHIKA5.js → embed-2IVIYNAJ.js} +6 -6
  86. package/dist/bundle/{embedder-K2XL2UB4.js → embedder-2HU7JYZK.js} +9 -9
  87. package/dist/bundle/{entry-6M55YL2H.js → entry-CSTCXYI5.js} +9 -9
  88. package/dist/bundle/{failure-7Y34AUJT.js → failure-GMUQKQ5K.js} +2 -2
  89. package/dist/bundle/{first-run-TLJILIOF.js → first-run-3IZGXZT5.js} +12 -11
  90. package/dist/bundle/first-screen-7QSNCZIK.js +35 -0
  91. package/dist/bundle/{instructions-QLC2AXAB.js → instructions-YSXV6FAC.js} +1 -1
  92. package/dist/bundle/{mcp-TDKGDB4V.js → mcp-VFIOZDVY.js} +2 -2
  93. package/dist/bundle/meeting-combined-X4E3LSIJ.js +23 -0
  94. package/dist/bundle/meeting-model-FQBDHGRU.js +24 -0
  95. package/dist/bundle/meeting-semantic-ONNEOJX5.js +21 -0
  96. package/dist/bundle/{node-BAA3T4CH.js → node-FMQWCZRS.js} +2 -2
  97. package/dist/bundle/{node-sqlite-FNYVHQCO.js → node-sqlite-YN5OKOC6.js} +7 -7
  98. package/dist/bundle/{oauth-32T5KL5E.js → oauth-EW7PTZVT.js} +7 -7
  99. package/dist/bundle/{open-4VQ6FUEI.js → open-Q2RDY344.js} +5 -5
  100. package/dist/bundle/{openai-HDOKCN3Z.js → openai-STON6G3O.js} +28 -26
  101. package/dist/bundle/{process-GOUBIWKC.js → process-OQUC2TW3.js} +1 -1
  102. package/dist/bundle/{program-QFXJL2R5.js → program-7JJHTZ25.js} +66 -57
  103. package/dist/bundle/{prompt-YYODWYFO.js → prompt-WHVF7UTW.js} +5 -5
  104. package/dist/bundle/{proxy-transport-DP7SIMIC.js → proxy-transport-A4MRO3PF.js} +5 -5
  105. package/dist/bundle/{recognize-7ZULX5HL.js → recognize-YDQWMXNI.js} +4 -4
  106. package/dist/bundle/{remote-TUG7M5Y5.js → remote-477LQHP6.js} +9 -9
  107. package/dist/bundle/{rerank-D2EZWG66.js → rerank-4YPB26FG.js} +7 -7
  108. package/dist/bundle/{serve-MP3GA2XX.js → serve-FXJNUOTS.js} +9 -9
  109. package/dist/bundle/{server-D277L3H3.js → server-2S6HFBGR.js} +52 -42
  110. package/dist/bundle/server-UOSUTZNE.js +69 -0
  111. package/dist/bundle/{sqlite-runtime-XHZXEOLY.js → sqlite-runtime-RXYNJYMC.js} +6 -6
  112. package/dist/bundle/{state-YI3W6HGO.js → state-I2GGYGRL.js} +6 -6
  113. package/dist/bundle/{store-CIZPJFWE.js → store-KX3AAQZH.js} +25 -20
  114. package/dist/bundle/{store-C4RFPYPK.js → store-VQXIB6KV.js} +17 -13
  115. package/dist/bundle/store-maintenance-command-LW2MMDLY.js +60 -0
  116. package/dist/bundle/tg.js +13 -13
  117. package/dist/version.d.ts +1 -1
  118. package/dist/version.js +1 -1
  119. package/package.json +3 -3
  120. package/dist/bundle/chunk-ZIPUVOGT.js +0 -76
  121. package/dist/bundle/command-contract-DY6Y4TES.js +0 -34
  122. package/dist/bundle/decode-3NEUZJ2N.js +0 -162
  123. package/dist/bundle/first-screen-WME7ILW2.js +0 -32
  124. package/dist/bundle/server-GEP7QXGI.js +0 -62
  125. package/dist/bundle/store-maintenance-command-JNDYWFD2.js +0 -52
  126. /package/dist/bundle/{chunk-XWBPP2HX.js → chunk-ZI3YTXSF.js} +0 -0
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  answerOf,
5
5
  messengerContext
6
- } from "./chunk-DNNYE6PS.js";
6
+ } from "./chunk-2LPODKIF.js";
7
7
  import {
8
8
  FETCHING,
9
9
  RULES_VERSION,
@@ -28,14 +28,18 @@ import {
28
28
  typedQuery,
29
29
  withQuery,
30
30
  withTimeLimit
31
- } from "./chunk-P5NJECXX.js";
31
+ } from "./chunk-OWVQMK7G.js";
32
+ import {
33
+ stringWidth,
34
+ wrapAnsi
35
+ } from "./chunk-2ABQZVK4.js";
32
36
  import {
33
37
  holdLock,
34
38
  lockPath,
35
39
  releaseLock,
36
40
  servingProfiles,
37
41
  takeLock
38
- } from "./chunk-SN52ZGFN.js";
42
+ } from "./chunk-O2ULG7OO.js";
39
43
  import {
40
44
  QUICK_HEALTH_CHECKS,
41
45
  fts5Tables,
@@ -43,14 +47,10 @@ import {
43
47
  lossUnknown,
44
48
  storeDamageReport,
45
49
  storeHealth
46
- } from "./chunk-JFQZ6BWI.js";
47
- import {
48
- stringWidth,
49
- wrapAnsi
50
- } from "./chunk-2ABQZVK4.js";
50
+ } from "./chunk-VTJ3AOTT.js";
51
51
  import {
52
52
  readSecret
53
- } from "./chunk-Y7UA7HGL.js";
53
+ } from "./chunk-6M3FAHPS.js";
54
54
  import {
55
55
  CORPORA,
56
56
  MIGRATIONS,
@@ -85,10 +85,10 @@ import {
85
85
  storeClients,
86
86
  storeContents,
87
87
  vectorIndexCounts
88
- } from "./chunk-HPM47WO3.js";
88
+ } from "./chunk-VXWDQDRU.js";
89
89
  import {
90
90
  openCache
91
- } from "./chunk-CXWAKV2O.js";
91
+ } from "./chunk-M327UNS6.js";
92
92
  import {
93
93
  Command,
94
94
  LOCAL_READ,
@@ -116,42 +116,44 @@ import {
116
116
  snakeKeys,
117
117
  storeTable,
118
118
  withoutProviderRefs
119
- } from "./chunk-TGKTIDYS.js";
119
+ } from "./chunk-7F3LOHRB.js";
120
120
  import {
121
121
  holdersOf
122
- } from "./chunk-FD44T7HC.js";
122
+ } from "./chunk-QFVIHBLD.js";
123
123
  import {
124
124
  modelAddressAllowed,
125
125
  onThisComputer
126
- } from "./chunk-UIQMBOXU.js";
126
+ } from "./chunk-RPWYTOLI.js";
127
127
  import {
128
128
  currentRun,
129
129
  formatLocator,
130
130
  parseLocator,
131
- queryFieldsOf,
132
131
  readDamageMark,
133
132
  readHealthMark,
134
133
  readJournalMark,
135
134
  recordDeepCheck
136
- } from "./chunk-3WI53AA4.js";
135
+ } from "./chunk-S5UTBEV3.js";
137
136
  import {
138
137
  failureKey,
139
138
  isStoreDamage
140
- } from "./chunk-APSMQIA4.js";
139
+ } from "./chunk-QBNEWEJC.js";
141
140
  import {
142
141
  readSharedSection,
143
142
  sharedConfigPath,
144
143
  writeSharedSection
145
- } from "./chunk-ERUB3KU3.js";
144
+ } from "./chunk-B5RGPZDZ.js";
145
+ import {
146
+ queryFieldsOf
147
+ } from "./chunk-XHX5D5VE.js";
146
148
  import {
147
149
  storePath
148
- } from "./chunk-Y62I2T36.js";
150
+ } from "./chunk-VSPSHBAC.js";
149
151
  import {
150
152
  Credentials,
151
153
  isMovedRun,
152
154
  resolvePaths,
153
155
  writeSecurely
154
- } from "./chunk-NM5GBJME.js";
156
+ } from "./chunk-HT6OFANN.js";
155
157
  import {
156
158
  array,
157
159
  boolean,
@@ -173,12 +175,12 @@ import {
173
175
  string,
174
176
  transform,
175
177
  trim
176
- } from "./chunk-XS5C5TQ7.js";
178
+ } from "./chunk-AUNNJDVD.js";
177
179
  import {
178
180
  CliError,
179
181
  singleLine,
180
182
  visibleControls
181
- } from "./chunk-7KCBPAQS.js";
183
+ } from "./chunk-F6MLJ3V5.js";
182
184
  import {
183
185
  __commonJS,
184
186
  __name,
@@ -5518,11 +5520,11 @@ var require_liquid_node = __commonJS({
5518
5520
  }
5519
5521
  });
5520
5522
 
5521
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
5523
+ // node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
5522
5524
  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";
5523
5525
  import { dirname as dirname3, resolve } from "node:path";
5524
5526
 
5525
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/sealed.js
5527
+ // node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/sealed.js
5526
5528
  import { createCipheriv, createDecipheriv, createHash, randomBytes, scrypt, timingSafeEqual } from "node:crypto";
5527
5529
  import { closeSync, createReadStream, createWriteStream, existsSync, openSync, readSync, renameSync, rmSync, statSync } from "node:fs";
5528
5530
  import { Transform } from "node:stream";
@@ -5629,7 +5631,7 @@ var unsealFile = /* @__PURE__ */ __name(async (from, to, password) => {
5629
5631
  renameSync(pending, to);
5630
5632
  }, "unsealFile");
5631
5633
 
5632
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/store/compatibility.js
5634
+ // node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/store/compatibility.js
5633
5635
  var SPEAKS = MIGRATIONS.at(-1)?.version ?? 0;
5634
5636
  var fileSchemaOf = /* @__PURE__ */ __name((database) => {
5635
5637
  const tracked = database.prepare("SELECT 1 FROM sqlite_master WHERE name = 'schema_migrations'").get();
@@ -5653,7 +5655,7 @@ var compatibilityOf = /* @__PURE__ */ __name((file2, migrations = MIGRATIONS) =>
5653
5655
  };
5654
5656
  }, "compatibilityOf");
5655
5657
 
5656
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/store/repair.js
5658
+ // node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/store/repair.js
5657
5659
  import { createHash as createHash2 } from "node:crypto";
5658
5660
  var COPY_MARK = "__repair_";
5659
5661
  var COPY_NAME = /__repair_[0-9a-f]{8}(_\d+)?$/;
@@ -5907,19 +5909,19 @@ var deleteCopy = /* @__PURE__ */ __name((database, name) => {
5907
5909
  return found;
5908
5910
  }, "deleteCopy");
5909
5911
 
5910
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/cli/store-info.js
5912
+ // node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/cli/store-info.js
5911
5913
  import { existsSync as existsSync4, statSync as statSync3 } from "node:fs";
5912
5914
 
5913
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/cli/store-recover.js
5915
+ // node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/cli/store-recover.js
5914
5916
  import { existsSync as existsSync3 } from "node:fs";
5915
5917
 
5916
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/store/recover.js
5918
+ // node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/store/recover.js
5917
5919
  import { execFileSync, spawn } from "node:child_process";
5918
5920
  import { existsSync as existsSync2, readFileSync, realpathSync, renameSync as renameSync2, rmSync as rmSync2, statfsSync, statSync as statSync2, writeFileSync } from "node:fs";
5919
5921
  import { basename, dirname, join } from "node:path";
5920
5922
  import { Transform as Transform2 } from "node:stream";
5921
5923
 
5922
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/store/refill.js
5924
+ // node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/store/refill.js
5923
5925
  var REFILL_MARGIN_MS = 864e5;
5924
5926
  var TIME_KEYS = 1e12;
5925
5927
  var integerId = `external_id GLOB '[0-9]*' AND NOT external_id GLOB '*[^0-9]*'`;
@@ -5999,7 +6001,7 @@ var forgetMail = /* @__PURE__ */ __name((database, cutoff, now) => {
5999
6001
  return [...folders].map(([account, count3]) => ({ account, folders: count3 }));
6000
6002
  }, "forgetMail");
6001
6003
 
6002
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/store/recover.js
6004
+ // node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/store/recover.js
6003
6005
  var SQLITE3_MINIMUM = [3, 43, 0];
6004
6006
  var STORE_PARTS = ["", "-wal", "-shm"];
6005
6007
  var RECOVER_LOCK = ".recover-lock";
@@ -6527,7 +6529,7 @@ var recoverLocked = /* @__PURE__ */ __name(async ({ path, command, version, sqli
6527
6529
  }
6528
6530
  }, "recoverLocked");
6529
6531
 
6530
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/cli/store-recover.js
6532
+ // node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/cli/store-recover.js
6531
6533
  var COUNTED = [
6532
6534
  "accounts",
6533
6535
  "chats",
@@ -6683,7 +6685,7 @@ var storeRecoverCommand = /* @__PURE__ */ __name(({ command, version }) => {
6683
6685
  return recover;
6684
6686
  }, "storeRecoverCommand");
6685
6687
 
6686
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/cli/store-info.js
6688
+ // node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/cli/store-info.js
6687
6689
  var pendingIfKnown = /* @__PURE__ */ __name((database) => database.prepare("SELECT 1 FROM pragma_table_info('messages') WHERE name = 'normalized_text'").get() ? pendingNormalization(database) : null, "pendingIfKnown");
6688
6690
  var bytesOf = /* @__PURE__ */ __name((path) => existsSync4(path) ? statSync3(path).size : 0, "bytesOf");
6689
6691
  var messageOf = /* @__PURE__ */ __name((error) => error instanceof Error ? error.message : String(error), "messageOf");
@@ -6729,7 +6731,7 @@ var storeInfoCommand = /* @__PURE__ */ __name(() => annotate(new Command("info")
6729
6731
  renderAnswer(this, outputFor(this), itemOf(answer));
6730
6732
  }), "storeInfoCommand");
6731
6733
 
6732
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/cli/messenger/password.js
6734
+ // node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/cli/messenger/password.js
6733
6735
  var ENCRYPT_OPTION = [
6734
6736
  "--encrypt",
6735
6737
  "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"
@@ -6748,7 +6750,7 @@ var passwordOf = /* @__PURE__ */ __name(async (command, { twice }) => {
6748
6750
  return password;
6749
6751
  }, "passwordOf");
6750
6752
 
6751
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/replies/rules.js
6753
+ // node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/replies/rules.js
6752
6754
  import { existsSync as existsSync5, readFileSync as readFileSync2 } from "node:fs";
6753
6755
  import { join as join2 } from "node:path";
6754
6756
  var REPLY_ACTIONS = ["reply", "task"];
@@ -6919,7 +6921,7 @@ var problem = /* @__PURE__ */ __name((issue) => {
6919
6921
  }, "problem");
6920
6922
  var broken = /* @__PURE__ */ __name((path, why) => new CliError("configuration_error", `the reply rules ${path} cannot be read (${why}) \u2014 fix the file`), "broken");
6921
6923
 
6922
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/replies/state.js
6924
+ // node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/replies/state.js
6923
6925
  import { existsSync as existsSync6, readFileSync as readFileSync3 } from "node:fs";
6924
6926
  import { join as join3 } from "node:path";
6925
6927
  var ANSWERED_KEPT = 1e3;
@@ -6972,7 +6974,7 @@ var recordReply = /* @__PURE__ */ __name((state, rule2, message, now) => {
6972
6974
  }, "recordReply");
6973
6975
  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");
6974
6976
 
6975
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/replies/decide.js
6977
+ // node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/replies/decide.js
6976
6978
  var skip = /* @__PURE__ */ __name((why) => ({ skip: why }), "skip");
6977
6979
  var decide = /* @__PURE__ */ __name((rule2, incoming, state, now) => {
6978
6980
  const { message, chat, owner, sender } = incoming;
@@ -7078,10 +7080,10 @@ var filled = /* @__PURE__ */ __name((template2, senderName) => {
7078
7080
  return template2.replaceAll("{firstName}", name.split(/\s+/)[0] ?? name).replaceAll("{name}", name);
7079
7081
  }, "filled");
7080
7082
 
7081
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/replies/template.js
7083
+ // node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/replies/template.js
7082
7084
  var import_liquidjs2 = __toESM(require_liquid_node(), 1);
7083
7085
 
7084
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/render/liquid.js
7086
+ // node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/render/liquid.js
7085
7087
  var import_liquidjs = __toESM(require_liquid_node(), 1);
7086
7088
  var safeLiquid = /* @__PURE__ */ __name((limits) => {
7087
7089
  const engine = new import_liquidjs.Liquid({
@@ -7108,7 +7110,7 @@ var safeLiquid = /* @__PURE__ */ __name((limits) => {
7108
7110
  return engine;
7109
7111
  }, "safeLiquid");
7110
7112
 
7111
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/replies/template.js
7113
+ // node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/replies/template.js
7112
7114
  var TEMPLATE_LIMITS = {
7113
7115
  parse: 32768,
7114
7116
  renders: 2e3,
@@ -7247,7 +7249,7 @@ var renderReplyTemplate = /* @__PURE__ */ __name(async (reply, input) => {
7247
7249
  }
7248
7250
  }, "renderReplyTemplate");
7249
7251
 
7250
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/replies/dry-run.js
7252
+ // node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/replies/dry-run.js
7251
7253
  var DRY_RUN_DAYS = 7;
7252
7254
  var PAGE = 500;
7253
7255
  var dryRun = /* @__PURE__ */ __name(async (store, account, rules, { since, until = Date.now(), only, audience, render }) => {
@@ -7361,7 +7363,7 @@ var storedSince = /* @__PURE__ */ __name(async (store, account, chat, since) =>
7361
7363
  }
7362
7364
  }, "storedSince");
7363
7365
 
7364
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/models/ai.js
7366
+ // node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/models/ai.js
7365
7367
  var AI_PROVIDERS = ["anthropic", "openai", "ollama"];
7366
7368
  var DEFAULT_BASE_URL = {
7367
7369
  anthropic: "https://api.anthropic.com",
@@ -7511,7 +7513,7 @@ var checkAi = /* @__PURE__ */ __name(async (deps) => {
7511
7513
  }
7512
7514
  }, "checkAi");
7513
7515
 
7514
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/models/purpose.js
7516
+ // node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/models/purpose.js
7515
7517
  var HOSTED = {
7516
7518
  openai: "https://api.openai.com/v1",
7517
7519
  anthropic: "https://api.anthropic.com"
@@ -7532,7 +7534,7 @@ var purposeModel = /* @__PURE__ */ __name((settings, purpose, deps) => {
7532
7534
  return shared ? { target: shared.target, key: /* @__PURE__ */ __name(() => shared.key, "key"), shared: shared.setting } : void 0;
7533
7535
  }, "purposeModel");
7534
7536
 
7535
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/replies/consents.js
7537
+ // node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/replies/consents.js
7536
7538
  import { existsSync as existsSync7, readFileSync as readFileSync4 } from "node:fs";
7537
7539
  import { join as join4 } from "node:path";
7538
7540
  var shape = strictObject({
@@ -7557,7 +7559,7 @@ var mayModelReply = /* @__PURE__ */ __name((path, provider, chat) => {
7557
7559
  return consent.provider === provider && !consent.deniedChats.includes(chat);
7558
7560
  }, "mayModelReply");
7559
7561
 
7560
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/replies/rendering.js
7562
+ // node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/replies/rendering.js
7561
7563
  var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, options = {
7562
7564
  ai: true
7563
7565
  }) => async (rule2, message, chat, now) => {
@@ -7605,7 +7607,7 @@ var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, o
7605
7607
  return result2;
7606
7608
  }, "replyRenderer");
7607
7609
 
7608
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/replies/serve.js
7610
+ // node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/replies/serve.js
7609
7611
  var NOT_ALLOWED = "replies.send is not allow";
7610
7612
  var NO_RULES = "no rules";
7611
7613
  var ONLY_TASK = "opened a task, sent nothing";
@@ -7698,7 +7700,7 @@ var replyTo = /* @__PURE__ */ __name(async (deps, message) => {
7698
7700
  return { skip: why };
7699
7701
  }, "replyTo");
7700
7702
 
7701
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-catch-up.js
7703
+ // node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-catch-up.js
7702
7704
  var START_SYNC_DELAY_MS = 3e4;
7703
7705
  var START_SYNC_BUDGET_MS = 5 * 6e4;
7704
7706
  var START_SYNC_WINDOW_MS = 7 * 864e5;
@@ -7775,7 +7777,7 @@ var startSync = /* @__PURE__ */ __name(({ chats, newestHeld, fetch, note, warn,
7775
7777
  };
7776
7778
  }, "startSync");
7777
7779
 
7778
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-members.js
7780
+ // node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-members.js
7779
7781
  var FIRST_FETCH_MS = 6e4;
7780
7782
  var DAY_MS = 864e5;
7781
7783
  var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch, warn, firstMs = FIRST_FETCH_MS, everyMs = DAY_MS }) => {
@@ -7829,7 +7831,7 @@ var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch, warn, firstMs =
7829
7831
  };
7830
7832
  }, "memberFetches");
7831
7833
 
7832
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-notice.js
7834
+ // node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-notice.js
7833
7835
  var record2 = /* @__PURE__ */ __name((context, app, severity, attributes) => recordLogFor(context.streams.diagnostic, app, { command: currentRun().command || "serve" })[severity](attributes), "record");
7834
7836
  var noticeFor = /* @__PURE__ */ __name((context, app, severity = "warn") => ({ text, ...attributes }) => {
7835
7837
  if (context.format === "pretty") {
@@ -7862,7 +7864,7 @@ var recordDiagnostics = /* @__PURE__ */ __name((context, app) => {
7862
7864
  return context;
7863
7865
  }, "recordDiagnostics");
7864
7866
 
7865
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-outdated.js
7867
+ // node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-outdated.js
7866
7868
  import { existsSync as existsSync8, readFileSync as readFileSync5, realpathSync as realpathSync2 } from "node:fs";
7867
7869
  import { dirname as dirname2, join as join5 } from "node:path";
7868
7870
  var OUTDATED_CHECK_MS = 6e4;
@@ -7948,7 +7950,7 @@ var watchOutdated = /* @__PURE__ */ __name(({ check: check2, onOutdated, everyMs
7948
7950
  };
7949
7951
  }, "watchOutdated");
7950
7952
 
7951
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-stems.js
7953
+ // node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-stems.js
7952
7954
  var STEMS_EVERY_MS = 3e4;
7953
7955
  var STEMS_SLICE_MS = 2e3;
7954
7956
  var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY_MS, sliceMs = STEMS_SLICE_MS }) => {
@@ -7988,7 +7990,7 @@ var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY
7988
7990
  };
7989
7991
  }, "stemFills");
7990
7992
 
7991
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/render/messages.js
7993
+ // node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/render/messages.js
7992
7994
  import { styleText } from "node:util";
7993
7995
  var TIME_WIDTH = 8;
7994
7996
  var INDENT = " ".repeat(TIME_WIDTH + 2);
@@ -8164,7 +8166,7 @@ var editedAt = /* @__PURE__ */ __name((message, options) => {
8164
8166
  return day(edited) === day(message.timestamp) ? time : `${day(edited)} ${time}`;
8165
8167
  }, "editedAt");
8166
8168
 
8167
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/cli/messenger/message-items.js
8169
+ // node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/cli/messenger/message-items.js
8168
8170
  var defined = /* @__PURE__ */ __name((value) => Object.fromEntries(Object.entries(value).filter(([, one]) => one !== void 0)), "defined");
8169
8171
  var attachmentItem = /* @__PURE__ */ __name((attachment) => defined({
8170
8172
  kind: attachment.kind,
@@ -8260,7 +8262,7 @@ var viewOf = /* @__PURE__ */ __name((context, messenger) => ({
8260
8262
  locale: messenger.app.locale
8261
8263
  }), "viewOf");
8262
8264
 
8263
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-answers.js
8265
+ // node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-answers.js
8264
8266
  var observed = /* @__PURE__ */ __name((value) => ({
8265
8267
  value: value.value,
8266
8268
  observed_at: value.observedAt,
@@ -8327,7 +8329,7 @@ var watchEventItem = /* @__PURE__ */ __name((value, account) => {
8327
8329
  }
8328
8330
  }, "watchEventItem");
8329
8331
 
8330
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-command.js
8332
+ // node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-command.js
8331
8333
  var watchCommand = /* @__PURE__ */ __name((messenger) => annotate(new Command("watch"), {
8332
8334
  output: { entity: "watch_item" },
8333
8335
  effects: REMOTE_READ,
@@ -8482,7 +8484,7 @@ var describe = /* @__PURE__ */ __name((event, render) => {
8482
8484
  }
8483
8485
  }, "describe");
8484
8486
 
8485
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-command.js
8487
+ // node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-command.js
8486
8488
  var serveCommand = /* @__PURE__ */ __name((messenger) => {
8487
8489
  const command = annotate(new Command("serve"), {
8488
8490
  output: { entity: "serve_summary" },
@@ -8523,7 +8525,7 @@ var serveCommand = /* @__PURE__ */ __name((messenger) => {
8523
8525
  });
8524
8526
  }, "onReady");
8525
8527
  const counts = {};
8526
- const rules = replying(context, messenger, Date.parse(startedAt));
8528
+ const rules = replying(context, messenger, Date.parse(startedAt), () => messenger.resolveSettings(this.optsWithGlobals(), { env: context.env }));
8527
8529
  const tasks = tasking(context, warn);
8528
8530
  const { handled, startSyncDelayMs, outdated: outdatedHook } = environmentOf(this);
8529
8531
  const count3 = /* @__PURE__ */ __name((event) => {
@@ -8665,7 +8667,7 @@ var NO_REPLIES = {
8665
8667
  }, "stop"),
8666
8668
  summary: /* @__PURE__ */ __name(() => ({}), "summary")
8667
8669
  };
8668
- var replying = /* @__PURE__ */ __name((context, messenger, since) => {
8670
+ var replying = /* @__PURE__ */ __name((context, messenger, since, reload) => {
8669
8671
  if (messenger.autoReplies === false)
8670
8672
  return NO_REPLIES;
8671
8673
  const controller = new AbortController();
@@ -8690,6 +8692,9 @@ var replying = /* @__PURE__ */ __name((context, messenger, since) => {
8690
8692
  if (connection === void 0 || controller.signal.aborted)
8691
8693
  return;
8692
8694
  const open = connection;
8695
+ const current = reload();
8696
+ settings.permissions = current.permissions;
8697
+ settings.permissionSources = current.permissionSources;
8693
8698
  const answer = await replyTo({
8694
8699
  rulesPath: repliesPathFor(app, profile, env),
8695
8700
  statePath: repliesStatePathFor(app, profile, env),
@@ -8765,7 +8770,7 @@ var tasking = /* @__PURE__ */ __name((context, warn) => {
8765
8770
  };
8766
8771
  }, "tasking");
8767
8772
 
8768
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/cli/messenger/store-tables-command.js
8773
+ // node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/cli/messenger/store-tables-command.js
8769
8774
  import { existsSync as existsSync9 } from "node:fs";
8770
8775
  var PATH = "store tables list";
8771
8776
  var STORE_TABLES_QUERY = {
@@ -8808,7 +8813,7 @@ var storeTablesCommand = /* @__PURE__ */ __name((owner) => {
8808
8813
  return tables;
8809
8814
  }, "storeTablesCommand");
8810
8815
 
8811
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
8816
+ // node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
8812
8817
  var SEARCH_INDEXES = ["messages_fts", "chats_fts", "identities_fts"];
8813
8818
  var WORD_INDEX = "message_words";
8814
8819
  var schemaOf = /* @__PURE__ */ __name((database) => {
@@ -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-Y62I2T36.js";
5
+ } from "./chunk-VSPSHBAC.js";
6
6
  import {
7
7
  CliError
8
- } from "./chunk-7KCBPAQS.js";
8
+ } from "./chunk-F6MLJ3V5.js";
9
9
  import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/speech/models.js
13
+ // node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/speech/models.js
14
14
  var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/csukuangfj/${repository}/resolve/${commit}/${name}`, "huggingFace");
15
15
  var gigaam = huggingFace("sherpa-onnx-nemo-transducer-punct-giga-am-v3-russian-2025-12-16", "a6039be7cee829a9044a69ac0ebaf1c191217c97");
16
16
  var gigaamCtc = huggingFace("sherpa-onnx-nemo-ctc-punct-giga-am-v3-russian-2025-12-16", "4fb5407ff028a69fec516cdf4c10fac9ddea7c16");
@@ -137,7 +137,7 @@ var speechModel = /* @__PURE__ */ __name((id) => {
137
137
  return model;
138
138
  }, "speechModel");
139
139
 
140
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/speech/install.js
140
+ // node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/speech/install.js
141
141
  import { createHash, randomUUID } from "node:crypto";
142
142
  import { createReadStream, createWriteStream, mkdirSync, statSync } from "node:fs";
143
143
  import { rename, rm } from "node:fs/promises";
@@ -4,10 +4,10 @@ import {
4
4
  check,
5
5
  pipe,
6
6
  string
7
- } from "./chunk-XS5C5TQ7.js";
7
+ } from "./chunk-AUNNJDVD.js";
8
8
  import {
9
9
  CliError
10
- } from "./chunk-7KCBPAQS.js";
10
+ } from "./chunk-F6MLJ3V5.js";
11
11
  import {
12
12
  __name
13
13
  } from "./chunk-ZVVMGPBJ.js";
@@ -7,18 +7,18 @@ import {
7
7
  describeOptions,
8
8
  keyForCommand,
9
9
  metaOf
10
- } from "./chunk-TGKTIDYS.js";
10
+ } from "./chunk-7F3LOHRB.js";
11
11
  import {
12
12
  jsonSchemaOf
13
- } from "./chunk-XS5C5TQ7.js";
13
+ } from "./chunk-AUNNJDVD.js";
14
14
  import {
15
15
  CliError
16
- } from "./chunk-7KCBPAQS.js";
16
+ } from "./chunk-F6MLJ3V5.js";
17
17
  import {
18
18
  __name
19
19
  } from "./chunk-ZVVMGPBJ.js";
20
20
 
21
- // node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/cli/command-contract.js
21
+ // node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/cli/command-contract.js
22
22
  var SCHEMA_DIALECT = "https://json-schema.org/draft/2020-12/schema";
23
23
  var outputOf = /* @__PURE__ */ __name((command) => {
24
24
  const entity = answerEntitySchema(command);