@wirecat/tg-cli 0.127.0 → 0.128.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 (97) hide show
  1. package/dist/bin/tg.js +2 -2
  2. package/dist/bundle/{adapter-EZFS2UR6.js → adapter-JOI34QLS.js} +43 -43
  3. package/dist/bundle/{all-profiles-TNIUBQK6.js → all-profiles-2BZEE7J2.js} +18 -28
  4. package/dist/bundle/{anthropic-NGIS5LTL.js → anthropic-NW7DL3S3.js} +2 -2
  5. package/dist/bundle/{app-server-RPU76G7D.js → app-server-RUTYKELF.js} +39 -54
  6. package/dist/bundle/{bot-api-QJ6U6BLG.js → bot-api-DW6NAZAQ.js} +44 -44
  7. package/dist/bundle/{bot-history-THULK2C6.js → bot-history-FAJ2W42U.js} +12 -12
  8. package/dist/bundle/{bun-QLSLLP27.js → bun-IVP5LSVI.js} +2 -2
  9. package/dist/bundle/{bun-sqlite-SH5245ZY.js → bun-sqlite-ATPCJ4CT.js} +3 -3
  10. package/dist/bundle/{chunk-4CQ3PV3V.js → chunk-2A3TC52A.js} +7 -7
  11. package/dist/bundle/{chunk-SN52ZGFN.js → chunk-2IL4YDGG.js} +2 -2
  12. package/dist/bundle/{chunk-TGKTIDYS.js → chunk-2QHIOPSA.js} +176 -150
  13. package/dist/bundle/{chunk-ZSS3BH6Z.js → chunk-3UGRMFWK.js} +2 -2
  14. package/dist/bundle/{chunk-QPVCFSVU.js → chunk-4DSIGS2E.js} +5 -5
  15. package/dist/bundle/{chunk-BNM6KNUQ.js → chunk-5AP25FMW.js} +1 -1
  16. package/dist/bundle/{chunk-ERUB3KU3.js → chunk-7D6LI2N7.js} +5 -5
  17. package/dist/bundle/{chunk-FSDLSEZA.js → chunk-7I5NMVX7.js} +1 -1
  18. package/dist/bundle/{chunk-3WI53AA4.js → chunk-AF2XVV5P.js} +648 -239
  19. package/dist/bundle/{chunk-3I3TGKVG.js → chunk-BVCRDHI2.js} +3 -3
  20. package/dist/bundle/{chunk-JF7D2Y4K.js → chunk-E56QE3UC.js} +352 -325
  21. package/dist/bundle/{chunk-J6FHZXNS.js → chunk-EAUHYQUK.js} +40 -48
  22. package/dist/bundle/{chunk-IWJ5OLU6.js → chunk-F4UIBEQK.js} +2 -2
  23. package/dist/bundle/{chunk-DNNYE6PS.js → chunk-FHGAJK4I.js} +16 -13
  24. package/dist/bundle/{chunk-MTU3UP5U.js → chunk-G3PL3R45.js} +1 -1
  25. package/dist/bundle/{chunk-Y7UA7HGL.js → chunk-GYO4WXLG.js} +2 -2
  26. package/dist/bundle/{chunk-LOG65WHO.js → chunk-IHLNXL2D.js} +1 -1
  27. package/dist/bundle/{chunk-P5NJECXX.js → chunk-IIHCSJV2.js} +507 -340
  28. package/dist/bundle/{chunk-4FFKCC7Y.js → chunk-IV2KJQ5F.js} +16 -15
  29. package/dist/bundle/{chunk-EGNQSWPH.js → chunk-J3SX36NE.js} +1 -1
  30. package/dist/bundle/{chunk-CXWAKV2O.js → chunk-JI2PFQFL.js} +5 -5
  31. package/dist/bundle/{chunk-S3XUJPPL.js → chunk-JJGPU24U.js} +4 -4
  32. package/dist/bundle/{chunk-XUAVZ6YX.js → chunk-KF2Q776U.js} +7 -7
  33. package/dist/bundle/{chunk-3CV5TBBR.js → chunk-KKZQK6IK.js} +2 -2
  34. package/dist/bundle/{chunk-VMV5CMLH.js → chunk-LTADKMP5.js} +1 -1
  35. package/dist/bundle/{chunk-X4ECHJNG.js → chunk-MC6FOTCV.js} +98 -6
  36. package/dist/bundle/{chunk-BWHVHPAQ.js → chunk-MDGLKMLD.js} +5 -5
  37. package/dist/bundle/{chunk-APSMQIA4.js → chunk-MGBVVQTU.js} +2 -2
  38. package/dist/bundle/{chunk-JWEKUAVZ.js → chunk-MOUPWPNL.js} +10 -10
  39. package/dist/bundle/{chunk-NBN5OYXH.js → chunk-NXDQXDRN.js} +3 -3
  40. package/dist/bundle/{chunk-GHVRCLJI.js → chunk-ODBK56ZR.js} +1 -1
  41. package/dist/bundle/{chunk-7GE6KMLB.js → chunk-OX6574YV.js} +11 -11
  42. package/dist/bundle/{chunk-2R6ZSE3O.js → chunk-PJA43HVE.js} +2 -2
  43. package/dist/bundle/{chunk-5AOFOJQA.js → chunk-Q3ZO6Q3M.js} +4 -4
  44. package/dist/bundle/{chunk-FD44T7HC.js → chunk-QO4ON2X7.js} +1 -1
  45. package/dist/bundle/{chunk-Y65BQJOY.js → chunk-QYN5RDTZ.js} +2 -2
  46. package/dist/bundle/{chunk-R52ZZZKZ.js → chunk-R4QVV3LN.js} +23 -12
  47. package/dist/bundle/{chunk-UIQMBOXU.js → chunk-RIGNCUZD.js} +1 -1
  48. package/dist/bundle/{chunk-5SN6KFPC.js → chunk-RZFIQMOA.js} +55 -52
  49. package/dist/bundle/{chunk-4MKRKW6V.js → chunk-SDLJJF7E.js} +12 -12
  50. package/dist/bundle/{chunk-HPM47WO3.js → chunk-T2CWSFGY.js} +394 -378
  51. package/dist/bundle/{chunk-JFQZ6BWI.js → chunk-TGUXKG4B.js} +16 -16
  52. package/dist/bundle/{chunk-Y62I2T36.js → chunk-TQFUAKU6.js} +1 -1
  53. package/dist/bundle/{chunk-UW34Z7J3.js → chunk-UURJO46N.js} +1 -1
  54. package/dist/bundle/{chunk-K4VO7S6Q.js → chunk-WG3BF7SA.js} +1 -1
  55. package/dist/bundle/{chunk-YIPOWJPN.js → chunk-WMF6SL5D.js} +1 -1
  56. package/dist/bundle/{chunk-UY2TRFYN.js → chunk-WMUPZ3IY.js} +10 -10
  57. package/dist/bundle/{chunk-H7GAFD4N.js → chunk-WPMJQIEU.js} +1 -1
  58. package/dist/bundle/{chunk-5FDYMMEQ.js → chunk-XYAH6QQO.js} +2 -2
  59. package/dist/bundle/{chunk-YZGIQY2R.js → chunk-YSXDCSBP.js} +33 -23
  60. package/dist/bundle/{chunk-45URY64S.js → chunk-YVV5S2QA.js} +1 -1
  61. package/dist/bundle/{chunk-5KZKVKWU.js → chunk-ZVLYK6CZ.js} +6 -6
  62. package/dist/bundle/{command-contract-DY6Y4TES.js → command-contract-3BSXDYBC.js} +13 -13
  63. package/dist/bundle/{command-server-entry-UG2CLYXI.js → command-server-entry-BU3X4XNL.js} +20 -20
  64. package/dist/bundle/{decode-3NEUZJ2N.js → decode-NXB7E46F.js} +2 -2
  65. package/dist/bundle/{echarts-CN6ZVAJZ.js → echarts-NAXLKJLA.js} +2 -2
  66. package/dist/bundle/{embed-M4EHIKA5.js → embed-LB6ONWHX.js} +3 -3
  67. package/dist/bundle/{embedder-K2XL2UB4.js → embedder-WE7B2RU5.js} +6 -6
  68. package/dist/bundle/{entry-6M55YL2H.js → entry-W6Y52ZRN.js} +6 -6
  69. package/dist/bundle/{first-run-TLJILIOF.js → first-run-NVYNZZA6.js} +5 -5
  70. package/dist/bundle/{first-screen-WME7ILW2.js → first-screen-Z6TVHK6I.js} +14 -14
  71. package/dist/bundle/{instructions-QLC2AXAB.js → instructions-MRUC57NS.js} +1 -1
  72. package/dist/bundle/{node-BAA3T4CH.js → node-G7PMDYQV.js} +2 -2
  73. package/dist/bundle/{node-sqlite-FNYVHQCO.js → node-sqlite-RXWQ3SES.js} +4 -4
  74. package/dist/bundle/{oauth-32T5KL5E.js → oauth-6ZWOL6KX.js} +4 -4
  75. package/dist/bundle/{open-4VQ6FUEI.js → open-V7LMZCFI.js} +2 -2
  76. package/dist/bundle/{openai-HDOKCN3Z.js → openai-P472V4ZM.js} +12 -12
  77. package/dist/bundle/{process-GOUBIWKC.js → process-GSNPENHL.js} +1 -1
  78. package/dist/bundle/{program-QFXJL2R5.js → program-IELITPKT.js} +46 -46
  79. package/dist/bundle/{prompt-YYODWYFO.js → prompt-2CP6CQ5N.js} +2 -2
  80. package/dist/bundle/{recognize-7ZULX5HL.js → recognize-R2DEQ5TC.js} +1 -1
  81. package/dist/bundle/{remote-TUG7M5Y5.js → remote-JG3POFES.js} +6 -6
  82. package/dist/bundle/{rerank-D2EZWG66.js → rerank-TVMR3OLL.js} +4 -4
  83. package/dist/bundle/{serve-MP3GA2XX.js → serve-DBWSMLPH.js} +6 -6
  84. package/dist/bundle/{server-D277L3H3.js → server-EXJ2WNZY.js} +37 -35
  85. package/dist/bundle/server-SXNFFAIR.js +61 -0
  86. package/dist/bundle/{sqlite-runtime-XHZXEOLY.js → sqlite-runtime-AWMY7W4Q.js} +3 -3
  87. package/dist/bundle/{state-YI3W6HGO.js → state-HN44BWNQ.js} +3 -3
  88. package/dist/bundle/{store-C4RFPYPK.js → store-GIYS3LHV.js} +9 -9
  89. package/dist/bundle/{store-CIZPJFWE.js → store-LOVKYQDC.js} +11 -11
  90. package/dist/bundle/store-maintenance-command-X3VOYNCG.js +52 -0
  91. package/dist/bundle/tg.js +3 -3
  92. package/dist/version.d.ts +1 -1
  93. package/dist/version.js +1 -1
  94. package/package.json +2 -2
  95. package/dist/bundle/chunk-ZIPUVOGT.js +0 -76
  96. package/dist/bundle/server-GEP7QXGI.js +0 -62
  97. package/dist/bundle/store-maintenance-command-JNDYWFD2.js +0 -52
@@ -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-FHGAJK4I.js";
7
7
  import {
8
8
  FETCHING,
9
9
  RULES_VERSION,
@@ -28,14 +28,14 @@ import {
28
28
  typedQuery,
29
29
  withQuery,
30
30
  withTimeLimit
31
- } from "./chunk-P5NJECXX.js";
31
+ } from "./chunk-IIHCSJV2.js";
32
32
  import {
33
33
  holdLock,
34
34
  lockPath,
35
35
  releaseLock,
36
36
  servingProfiles,
37
37
  takeLock
38
- } from "./chunk-SN52ZGFN.js";
38
+ } from "./chunk-2IL4YDGG.js";
39
39
  import {
40
40
  QUICK_HEALTH_CHECKS,
41
41
  fts5Tables,
@@ -43,14 +43,14 @@ import {
43
43
  lossUnknown,
44
44
  storeDamageReport,
45
45
  storeHealth
46
- } from "./chunk-JFQZ6BWI.js";
46
+ } from "./chunk-TGUXKG4B.js";
47
47
  import {
48
48
  stringWidth,
49
49
  wrapAnsi
50
50
  } from "./chunk-2ABQZVK4.js";
51
51
  import {
52
52
  readSecret
53
- } from "./chunk-Y7UA7HGL.js";
53
+ } from "./chunk-GYO4WXLG.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-T2CWSFGY.js";
89
89
  import {
90
90
  openCache
91
- } from "./chunk-CXWAKV2O.js";
91
+ } from "./chunk-JI2PFQFL.js";
92
92
  import {
93
93
  Command,
94
94
  LOCAL_READ,
@@ -116,14 +116,14 @@ import {
116
116
  snakeKeys,
117
117
  storeTable,
118
118
  withoutProviderRefs
119
- } from "./chunk-TGKTIDYS.js";
119
+ } from "./chunk-2QHIOPSA.js";
120
120
  import {
121
121
  holdersOf
122
- } from "./chunk-FD44T7HC.js";
122
+ } from "./chunk-QO4ON2X7.js";
123
123
  import {
124
124
  modelAddressAllowed,
125
125
  onThisComputer
126
- } from "./chunk-UIQMBOXU.js";
126
+ } from "./chunk-RIGNCUZD.js";
127
127
  import {
128
128
  currentRun,
129
129
  formatLocator,
@@ -133,19 +133,19 @@ import {
133
133
  readHealthMark,
134
134
  readJournalMark,
135
135
  recordDeepCheck
136
- } from "./chunk-3WI53AA4.js";
136
+ } from "./chunk-AF2XVV5P.js";
137
137
  import {
138
138
  failureKey,
139
139
  isStoreDamage
140
- } from "./chunk-APSMQIA4.js";
140
+ } from "./chunk-MGBVVQTU.js";
141
141
  import {
142
142
  readSharedSection,
143
143
  sharedConfigPath,
144
144
  writeSharedSection
145
- } from "./chunk-ERUB3KU3.js";
145
+ } from "./chunk-7D6LI2N7.js";
146
146
  import {
147
147
  storePath
148
- } from "./chunk-Y62I2T36.js";
148
+ } from "./chunk-TQFUAKU6.js";
149
149
  import {
150
150
  Credentials,
151
151
  isMovedRun,
@@ -5518,11 +5518,11 @@ var require_liquid_node = __commonJS({
5518
5518
  }
5519
5519
  });
5520
5520
 
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
5521
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
5522
5522
  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
5523
  import { dirname as dirname3, resolve } from "node:path";
5524
5524
 
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
5525
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/sealed.js
5526
5526
  import { createCipheriv, createDecipheriv, createHash, randomBytes, scrypt, timingSafeEqual } from "node:crypto";
5527
5527
  import { closeSync, createReadStream, createWriteStream, existsSync, openSync, readSync, renameSync, rmSync, statSync } from "node:fs";
5528
5528
  import { Transform } from "node:stream";
@@ -5629,7 +5629,7 @@ var unsealFile = /* @__PURE__ */ __name(async (from, to, password) => {
5629
5629
  renameSync(pending, to);
5630
5630
  }, "unsealFile");
5631
5631
 
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
5632
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/store/compatibility.js
5633
5633
  var SPEAKS = MIGRATIONS.at(-1)?.version ?? 0;
5634
5634
  var fileSchemaOf = /* @__PURE__ */ __name((database) => {
5635
5635
  const tracked = database.prepare("SELECT 1 FROM sqlite_master WHERE name = 'schema_migrations'").get();
@@ -5653,7 +5653,7 @@ var compatibilityOf = /* @__PURE__ */ __name((file2, migrations = MIGRATIONS) =>
5653
5653
  };
5654
5654
  }, "compatibilityOf");
5655
5655
 
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
5656
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/store/repair.js
5657
5657
  import { createHash as createHash2 } from "node:crypto";
5658
5658
  var COPY_MARK = "__repair_";
5659
5659
  var COPY_NAME = /__repair_[0-9a-f]{8}(_\d+)?$/;
@@ -5907,19 +5907,19 @@ var deleteCopy = /* @__PURE__ */ __name((database, name) => {
5907
5907
  return found;
5908
5908
  }, "deleteCopy");
5909
5909
 
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
5910
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/cli/store-info.js
5911
5911
  import { existsSync as existsSync4, statSync as statSync3 } from "node:fs";
5912
5912
 
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
5913
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/cli/store-recover.js
5914
5914
  import { existsSync as existsSync3 } from "node:fs";
5915
5915
 
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
5916
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/store/recover.js
5917
5917
  import { execFileSync, spawn } from "node:child_process";
5918
5918
  import { existsSync as existsSync2, readFileSync, realpathSync, renameSync as renameSync2, rmSync as rmSync2, statfsSync, statSync as statSync2, writeFileSync } from "node:fs";
5919
5919
  import { basename, dirname, join } from "node:path";
5920
5920
  import { Transform as Transform2 } from "node:stream";
5921
5921
 
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
5922
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/store/refill.js
5923
5923
  var REFILL_MARGIN_MS = 864e5;
5924
5924
  var TIME_KEYS = 1e12;
5925
5925
  var integerId = `external_id GLOB '[0-9]*' AND NOT external_id GLOB '*[^0-9]*'`;
@@ -5999,7 +5999,7 @@ var forgetMail = /* @__PURE__ */ __name((database, cutoff, now) => {
5999
5999
  return [...folders].map(([account, count3]) => ({ account, folders: count3 }));
6000
6000
  }, "forgetMail");
6001
6001
 
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
6002
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/store/recover.js
6003
6003
  var SQLITE3_MINIMUM = [3, 43, 0];
6004
6004
  var STORE_PARTS = ["", "-wal", "-shm"];
6005
6005
  var RECOVER_LOCK = ".recover-lock";
@@ -6527,7 +6527,7 @@ var recoverLocked = /* @__PURE__ */ __name(async ({ path, command, version, sqli
6527
6527
  }
6528
6528
  }, "recoverLocked");
6529
6529
 
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
6530
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/cli/store-recover.js
6531
6531
  var COUNTED = [
6532
6532
  "accounts",
6533
6533
  "chats",
@@ -6683,7 +6683,7 @@ var storeRecoverCommand = /* @__PURE__ */ __name(({ command, version }) => {
6683
6683
  return recover;
6684
6684
  }, "storeRecoverCommand");
6685
6685
 
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
6686
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/cli/store-info.js
6687
6687
  var pendingIfKnown = /* @__PURE__ */ __name((database) => database.prepare("SELECT 1 FROM pragma_table_info('messages') WHERE name = 'normalized_text'").get() ? pendingNormalization(database) : null, "pendingIfKnown");
6688
6688
  var bytesOf = /* @__PURE__ */ __name((path) => existsSync4(path) ? statSync3(path).size : 0, "bytesOf");
6689
6689
  var messageOf = /* @__PURE__ */ __name((error) => error instanceof Error ? error.message : String(error), "messageOf");
@@ -6729,7 +6729,7 @@ var storeInfoCommand = /* @__PURE__ */ __name(() => annotate(new Command("info")
6729
6729
  renderAnswer(this, outputFor(this), itemOf(answer));
6730
6730
  }), "storeInfoCommand");
6731
6731
 
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
6732
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/cli/messenger/password.js
6733
6733
  var ENCRYPT_OPTION = [
6734
6734
  "--encrypt",
6735
6735
  "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 +6748,7 @@ var passwordOf = /* @__PURE__ */ __name(async (command, { twice }) => {
6748
6748
  return password;
6749
6749
  }, "passwordOf");
6750
6750
 
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
6751
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/replies/rules.js
6752
6752
  import { existsSync as existsSync5, readFileSync as readFileSync2 } from "node:fs";
6753
6753
  import { join as join2 } from "node:path";
6754
6754
  var REPLY_ACTIONS = ["reply", "task"];
@@ -6919,7 +6919,7 @@ var problem = /* @__PURE__ */ __name((issue) => {
6919
6919
  }, "problem");
6920
6920
  var broken = /* @__PURE__ */ __name((path, why) => new CliError("configuration_error", `the reply rules ${path} cannot be read (${why}) \u2014 fix the file`), "broken");
6921
6921
 
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
6922
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/replies/state.js
6923
6923
  import { existsSync as existsSync6, readFileSync as readFileSync3 } from "node:fs";
6924
6924
  import { join as join3 } from "node:path";
6925
6925
  var ANSWERED_KEPT = 1e3;
@@ -6972,7 +6972,7 @@ var recordReply = /* @__PURE__ */ __name((state, rule2, message, now) => {
6972
6972
  }, "recordReply");
6973
6973
  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
6974
 
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
6975
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/replies/decide.js
6976
6976
  var skip = /* @__PURE__ */ __name((why) => ({ skip: why }), "skip");
6977
6977
  var decide = /* @__PURE__ */ __name((rule2, incoming, state, now) => {
6978
6978
  const { message, chat, owner, sender } = incoming;
@@ -7078,10 +7078,10 @@ var filled = /* @__PURE__ */ __name((template2, senderName) => {
7078
7078
  return template2.replaceAll("{firstName}", name.split(/\s+/)[0] ?? name).replaceAll("{name}", name);
7079
7079
  }, "filled");
7080
7080
 
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
7081
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/replies/template.js
7082
7082
  var import_liquidjs2 = __toESM(require_liquid_node(), 1);
7083
7083
 
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
7084
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/render/liquid.js
7085
7085
  var import_liquidjs = __toESM(require_liquid_node(), 1);
7086
7086
  var safeLiquid = /* @__PURE__ */ __name((limits) => {
7087
7087
  const engine = new import_liquidjs.Liquid({
@@ -7108,7 +7108,7 @@ var safeLiquid = /* @__PURE__ */ __name((limits) => {
7108
7108
  return engine;
7109
7109
  }, "safeLiquid");
7110
7110
 
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
7111
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/replies/template.js
7112
7112
  var TEMPLATE_LIMITS = {
7113
7113
  parse: 32768,
7114
7114
  renders: 2e3,
@@ -7247,7 +7247,7 @@ var renderReplyTemplate = /* @__PURE__ */ __name(async (reply, input) => {
7247
7247
  }
7248
7248
  }, "renderReplyTemplate");
7249
7249
 
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
7250
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/replies/dry-run.js
7251
7251
  var DRY_RUN_DAYS = 7;
7252
7252
  var PAGE = 500;
7253
7253
  var dryRun = /* @__PURE__ */ __name(async (store, account, rules, { since, until = Date.now(), only, audience, render }) => {
@@ -7361,7 +7361,7 @@ var storedSince = /* @__PURE__ */ __name(async (store, account, chat, since) =>
7361
7361
  }
7362
7362
  }, "storedSince");
7363
7363
 
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
7364
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/models/ai.js
7365
7365
  var AI_PROVIDERS = ["anthropic", "openai", "ollama"];
7366
7366
  var DEFAULT_BASE_URL = {
7367
7367
  anthropic: "https://api.anthropic.com",
@@ -7511,7 +7511,7 @@ var checkAi = /* @__PURE__ */ __name(async (deps) => {
7511
7511
  }
7512
7512
  }, "checkAi");
7513
7513
 
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
7514
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/models/purpose.js
7515
7515
  var HOSTED = {
7516
7516
  openai: "https://api.openai.com/v1",
7517
7517
  anthropic: "https://api.anthropic.com"
@@ -7532,7 +7532,7 @@ var purposeModel = /* @__PURE__ */ __name((settings, purpose, deps) => {
7532
7532
  return shared ? { target: shared.target, key: /* @__PURE__ */ __name(() => shared.key, "key"), shared: shared.setting } : void 0;
7533
7533
  }, "purposeModel");
7534
7534
 
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
7535
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/replies/consents.js
7536
7536
  import { existsSync as existsSync7, readFileSync as readFileSync4 } from "node:fs";
7537
7537
  import { join as join4 } from "node:path";
7538
7538
  var shape = strictObject({
@@ -7557,7 +7557,7 @@ var mayModelReply = /* @__PURE__ */ __name((path, provider, chat) => {
7557
7557
  return consent.provider === provider && !consent.deniedChats.includes(chat);
7558
7558
  }, "mayModelReply");
7559
7559
 
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
7560
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/replies/rendering.js
7561
7561
  var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, options = {
7562
7562
  ai: true
7563
7563
  }) => async (rule2, message, chat, now) => {
@@ -7605,7 +7605,7 @@ var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, o
7605
7605
  return result2;
7606
7606
  }, "replyRenderer");
7607
7607
 
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
7608
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/replies/serve.js
7609
7609
  var NOT_ALLOWED = "replies.send is not allow";
7610
7610
  var NO_RULES = "no rules";
7611
7611
  var ONLY_TASK = "opened a task, sent nothing";
@@ -7698,7 +7698,7 @@ var replyTo = /* @__PURE__ */ __name(async (deps, message) => {
7698
7698
  return { skip: why };
7699
7699
  }, "replyTo");
7700
7700
 
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
7701
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-catch-up.js
7702
7702
  var START_SYNC_DELAY_MS = 3e4;
7703
7703
  var START_SYNC_BUDGET_MS = 5 * 6e4;
7704
7704
  var START_SYNC_WINDOW_MS = 7 * 864e5;
@@ -7775,7 +7775,7 @@ var startSync = /* @__PURE__ */ __name(({ chats, newestHeld, fetch, note, warn,
7775
7775
  };
7776
7776
  }, "startSync");
7777
7777
 
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
7778
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-members.js
7779
7779
  var FIRST_FETCH_MS = 6e4;
7780
7780
  var DAY_MS = 864e5;
7781
7781
  var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch, warn, firstMs = FIRST_FETCH_MS, everyMs = DAY_MS }) => {
@@ -7829,7 +7829,7 @@ var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch, warn, firstMs =
7829
7829
  };
7830
7830
  }, "memberFetches");
7831
7831
 
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
7832
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-notice.js
7833
7833
  var record2 = /* @__PURE__ */ __name((context, app, severity, attributes) => recordLogFor(context.streams.diagnostic, app, { command: currentRun().command || "serve" })[severity](attributes), "record");
7834
7834
  var noticeFor = /* @__PURE__ */ __name((context, app, severity = "warn") => ({ text, ...attributes }) => {
7835
7835
  if (context.format === "pretty") {
@@ -7862,7 +7862,7 @@ var recordDiagnostics = /* @__PURE__ */ __name((context, app) => {
7862
7862
  return context;
7863
7863
  }, "recordDiagnostics");
7864
7864
 
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
7865
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-outdated.js
7866
7866
  import { existsSync as existsSync8, readFileSync as readFileSync5, realpathSync as realpathSync2 } from "node:fs";
7867
7867
  import { dirname as dirname2, join as join5 } from "node:path";
7868
7868
  var OUTDATED_CHECK_MS = 6e4;
@@ -7948,7 +7948,7 @@ var watchOutdated = /* @__PURE__ */ __name(({ check: check2, onOutdated, everyMs
7948
7948
  };
7949
7949
  }, "watchOutdated");
7950
7950
 
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
7951
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-stems.js
7952
7952
  var STEMS_EVERY_MS = 3e4;
7953
7953
  var STEMS_SLICE_MS = 2e3;
7954
7954
  var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY_MS, sliceMs = STEMS_SLICE_MS }) => {
@@ -7988,7 +7988,7 @@ var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY
7988
7988
  };
7989
7989
  }, "stemFills");
7990
7990
 
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
7991
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/render/messages.js
7992
7992
  import { styleText } from "node:util";
7993
7993
  var TIME_WIDTH = 8;
7994
7994
  var INDENT = " ".repeat(TIME_WIDTH + 2);
@@ -8164,7 +8164,7 @@ var editedAt = /* @__PURE__ */ __name((message, options) => {
8164
8164
  return day(edited) === day(message.timestamp) ? time : `${day(edited)} ${time}`;
8165
8165
  }, "editedAt");
8166
8166
 
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
8167
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/cli/messenger/message-items.js
8168
8168
  var defined = /* @__PURE__ */ __name((value) => Object.fromEntries(Object.entries(value).filter(([, one]) => one !== void 0)), "defined");
8169
8169
  var attachmentItem = /* @__PURE__ */ __name((attachment) => defined({
8170
8170
  kind: attachment.kind,
@@ -8260,7 +8260,7 @@ var viewOf = /* @__PURE__ */ __name((context, messenger) => ({
8260
8260
  locale: messenger.app.locale
8261
8261
  }), "viewOf");
8262
8262
 
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
8263
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-answers.js
8264
8264
  var observed = /* @__PURE__ */ __name((value) => ({
8265
8265
  value: value.value,
8266
8266
  observed_at: value.observedAt,
@@ -8327,7 +8327,7 @@ var watchEventItem = /* @__PURE__ */ __name((value, account) => {
8327
8327
  }
8328
8328
  }, "watchEventItem");
8329
8329
 
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
8330
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-command.js
8331
8331
  var watchCommand = /* @__PURE__ */ __name((messenger) => annotate(new Command("watch"), {
8332
8332
  output: { entity: "watch_item" },
8333
8333
  effects: REMOTE_READ,
@@ -8482,7 +8482,7 @@ var describe = /* @__PURE__ */ __name((event, render) => {
8482
8482
  }
8483
8483
  }, "describe");
8484
8484
 
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
8485
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-command.js
8486
8486
  var serveCommand = /* @__PURE__ */ __name((messenger) => {
8487
8487
  const command = annotate(new Command("serve"), {
8488
8488
  output: { entity: "serve_summary" },
@@ -8523,7 +8523,7 @@ var serveCommand = /* @__PURE__ */ __name((messenger) => {
8523
8523
  });
8524
8524
  }, "onReady");
8525
8525
  const counts = {};
8526
- const rules = replying(context, messenger, Date.parse(startedAt));
8526
+ const rules = replying(context, messenger, Date.parse(startedAt), () => messenger.resolveSettings(this.optsWithGlobals(), { env: context.env }));
8527
8527
  const tasks = tasking(context, warn);
8528
8528
  const { handled, startSyncDelayMs, outdated: outdatedHook } = environmentOf(this);
8529
8529
  const count3 = /* @__PURE__ */ __name((event) => {
@@ -8665,7 +8665,7 @@ var NO_REPLIES = {
8665
8665
  }, "stop"),
8666
8666
  summary: /* @__PURE__ */ __name(() => ({}), "summary")
8667
8667
  };
8668
- var replying = /* @__PURE__ */ __name((context, messenger, since) => {
8668
+ var replying = /* @__PURE__ */ __name((context, messenger, since, reload) => {
8669
8669
  if (messenger.autoReplies === false)
8670
8670
  return NO_REPLIES;
8671
8671
  const controller = new AbortController();
@@ -8690,6 +8690,9 @@ var replying = /* @__PURE__ */ __name((context, messenger, since) => {
8690
8690
  if (connection === void 0 || controller.signal.aborted)
8691
8691
  return;
8692
8692
  const open = connection;
8693
+ const current = reload();
8694
+ settings.permissions = current.permissions;
8695
+ settings.permissionSources = current.permissionSources;
8693
8696
  const answer = await replyTo({
8694
8697
  rulesPath: repliesPathFor(app, profile, env),
8695
8698
  statePath: repliesStatePathFor(app, profile, env),
@@ -8765,7 +8768,7 @@ var tasking = /* @__PURE__ */ __name((context, warn) => {
8765
8768
  };
8766
8769
  }, "tasking");
8767
8770
 
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
8771
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/cli/messenger/store-tables-command.js
8769
8772
  import { existsSync as existsSync9 } from "node:fs";
8770
8773
  var PATH = "store tables list";
8771
8774
  var STORE_TABLES_QUERY = {
@@ -8808,7 +8811,7 @@ var storeTablesCommand = /* @__PURE__ */ __name((owner) => {
8808
8811
  return tables;
8809
8812
  }, "storeTablesCommand");
8810
8813
 
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
8814
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
8812
8815
  var SEARCH_INDEXES = ["messages_fts", "chats_fts", "identities_fts"];
8813
8816
  var WORD_INDEX = "message_words";
8814
8817
  var schemaOf = /* @__PURE__ */ __name((database) => {
@@ -7,7 +7,7 @@ import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // 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/files/ordinary-file.js
10
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/files/ordinary-file.js
11
11
  import { constants } from "node:fs";
12
12
  import { lstat, open } from "node:fs/promises";
13
13
  var deviceOf = /* @__PURE__ */ __name((dev) => process.platform === "win32" ? BigInt.asUintN(32, dev) : dev, "deviceOf");
@@ -73,7 +73,7 @@ var syncDirectory = /* @__PURE__ */ __name(async (path) => {
73
73
  }
74
74
  }, "syncDirectory");
75
75
 
76
- // 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/files/atomic-write.js
76
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/files/atomic-write.js
77
77
  import { randomUUID } from "node:crypto";
78
78
  import { constants as constants2 } from "node:fs";
79
79
  import { link, open as open2, realpath, rename, unlink } from "node:fs/promises";
@@ -111,7 +111,7 @@ var writeFileAtomic = /* @__PURE__ */ __name(async (path, content, { mode = 384,
111
111
  }
112
112
  }, "writeFileAtomic");
113
113
 
114
- // 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/files/bounded-utf8.js
114
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/files/bounded-utf8.js
115
115
  var readBoundedUtf8File = /* @__PURE__ */ __name(async (path, { maxBytes }) => {
116
116
  if (!Number.isSafeInteger(maxBytes) || maxBytes < 1 || maxBytes > 16 * 1024 * 1024)
117
117
  throw new CliError("validation_error", "file maxBytes takes 1\u201316777216 bytes");
@@ -140,21 +140,21 @@ var readBoundedUtf8File = /* @__PURE__ */ __name(async (path, { maxBytes }) => {
140
140
  }
141
141
  }, "readBoundedUtf8File");
142
142
 
143
- // 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/files/lock.js
143
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/files/lock.js
144
144
  import { mkdir as mkdir2 } from "node:fs/promises";
145
145
  import { basename as basename2, dirname as dirname2 } from "node:path";
146
146
 
147
- // 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/files/native-writer-lease.js
147
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
148
148
  import { randomUUID as randomUUID2 } from "node:crypto";
149
149
  import { lstat as lstat3, mkdir, open as open3, realpath as realpath3, rmdir as rmdir2, unlink as unlink4 } from "node:fs/promises";
150
150
  import { hostname as hostname2 } from "node:os";
151
151
  import { join as join3 } from "node:path";
152
152
 
153
- // 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/files/native-lease-inspection.js
153
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
154
154
  import { lstat as lstat2, readdir, realpath as realpath2, unlink as unlink2 } from "node:fs/promises";
155
155
  import { join as join2 } from "node:path";
156
156
 
157
- // 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/files/native-lease-owner.js
157
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/files/native-lease-owner.js
158
158
  import { hostname } from "node:os";
159
159
  var missingLeaseFile = /* @__PURE__ */ __name((error) => typeof error === "object" && error !== null && "code" in error && error.code === "ENOENT", "missingLeaseFile");
160
160
  var readLeaseOwner = /* @__PURE__ */ __name(async (path, name, signal) => {
@@ -199,7 +199,7 @@ var leaseOwnerStatus = /* @__PURE__ */ __name((owner) => {
199
199
  }
200
200
  }, "leaseOwnerStatus");
201
201
 
202
- // 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/files/native-lease-inspection.js
202
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
203
203
  var leaseInspection = /* @__PURE__ */ __name((markerDirectory) => {
204
204
  const inspect = /* @__PURE__ */ __name(async (destination, options = {}) => {
205
205
  options.signal?.throwIfAborted();
@@ -258,7 +258,7 @@ var leaseInspection = /* @__PURE__ */ __name((markerDirectory) => {
258
258
  return { inspect, recover };
259
259
  }, "leaseInspection");
260
260
 
261
- // 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/files/native-lease-release.js
261
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/files/native-lease-release.js
262
262
  import { rmdir, unlink as unlink3 } from "node:fs/promises";
263
263
  var ownedNativeLease = /* @__PURE__ */ __name((path, name, owner, folder, identity) => {
264
264
  let releasing;
@@ -283,7 +283,7 @@ var ownedNativeLease = /* @__PURE__ */ __name((path, name, owner, folder, identi
283
283
  };
284
284
  }, "ownedNativeLease");
285
285
 
286
- // 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/files/native-writer-lease.js
286
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
287
287
  var validName = /* @__PURE__ */ __name((value) => typeof value === "string" && value.length > 0 && value !== "." && value !== ".." && !/[\\/\0:]/.test(value), "validName");
288
288
  var nativeWriterLeaseStore = /* @__PURE__ */ __name((layout) => {
289
289
  const { markerDirectory, legacyMarker } = layout;
@@ -354,7 +354,7 @@ var nativeWriterLeaseStore = /* @__PURE__ */ __name((layout) => {
354
354
  };
355
355
  }, "nativeWriterLeaseStore");
356
356
 
357
- // 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/files/lock.js
357
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/files/lock.js
358
358
  var acquireLock = /* @__PURE__ */ __name(async (path, { signal } = {}) => {
359
359
  const folder = dirname2(path);
360
360
  await mkdir2(folder, { recursive: true, mode: 448 });
@@ -369,7 +369,7 @@ var acquireLock = /* @__PURE__ */ __name(async (path, { signal } = {}) => {
369
369
  });
370
370
  }, "acquireLock");
371
371
 
372
- // 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/files/safe-name.js
372
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/files/safe-name.js
373
373
  import { basename as basename3 } from "node:path";
374
374
  var safeName = /* @__PURE__ */ __name((name, platform = process.platform) => {
375
375
  let plain = name === void 0 ? "" : basename3(name.replaceAll("\\", "/")).replace(/[\p{Cc}​-‏‪-‮⁦-⁩]/gu, "").replace(/^\.+/, "");