@wirecat/tg-cli 0.120.0 → 0.122.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. package/contracts/wirecat.json +25 -3
  2. package/dist/bin/tg.js +2 -2
  3. package/dist/bundle/{adapter-OJKHXGBC.js → adapter-ZI57T2L5.js} +53 -49
  4. package/dist/bundle/{all-profiles-URIWNL23.js → all-profiles-7VXJF42C.js} +6 -6
  5. package/dist/bundle/{anthropic-YUKNB63B.js → anthropic-DKRXIWVV.js} +13 -4
  6. package/dist/bundle/{app-server-H5QNHGH4.js → app-server-F5MKHZ7S.js} +43 -42
  7. package/dist/bundle/{bot-api-27GN4Y3D.js → bot-api-F24NWJT3.js} +47 -44
  8. package/dist/bundle/{bot-history-VVSWLVZM.js → bot-history-U3WM3A7S.js} +12 -12
  9. package/dist/bundle/{bun-PAAJX3GU.js → bun-OMTJAXGK.js} +2 -2
  10. package/dist/bundle/{bun-sqlite-TPEBWFZH.js → bun-sqlite-HSYLO46A.js} +2 -2
  11. package/dist/bundle/{chunk-WLBPNLDF.js → chunk-27SVHRHV.js} +2 -2
  12. package/dist/bundle/{chunk-3FPFRDG2.js → chunk-2FXA32RJ.js} +6 -6
  13. package/dist/bundle/{chunk-4JATS2J5.js → chunk-2UHANFLM.js} +2 -2
  14. package/dist/bundle/{chunk-FPWXG53C.js → chunk-33ELXJRR.js} +37 -121
  15. package/dist/bundle/{chunk-KP26Y5OA.js → chunk-4MFMUBHH.js} +4901 -4827
  16. package/dist/bundle/{chunk-HDSKBXAF.js → chunk-4N2WJYLE.js} +2 -2
  17. package/dist/bundle/{chunk-7WS3ULOO.js → chunk-6DLRATDC.js} +1159 -801
  18. package/dist/bundle/{chunk-YQKEPT22.js → chunk-6LMEIELG.js} +1 -1
  19. package/dist/bundle/{chunk-DH7VKHTZ.js → chunk-7FWU4RON.js} +3 -3
  20. package/dist/bundle/{chunk-4OWY7QBE.js → chunk-7GCVON7M.js} +5 -5
  21. package/dist/bundle/{chunk-HIBYYKGO.js → chunk-7X6YLKTK.js} +1 -1
  22. package/dist/bundle/{chunk-D2WNQJUQ.js → chunk-ALW7ROTM.js} +1 -1
  23. package/dist/bundle/{chunk-6XHZV7AQ.js → chunk-ARKB3M5X.js} +3 -3
  24. package/dist/bundle/{chunk-KTV5Y5EX.js → chunk-C5CB6RIX.js} +1 -1
  25. package/dist/bundle/{chunk-7VNV426X.js → chunk-CB6AHU6H.js} +44 -22
  26. package/dist/bundle/{chunk-CGUDXNJE.js → chunk-CW3C7FSO.js} +1 -1
  27. package/dist/bundle/{chunk-3SANNNWS.js → chunk-D3ODL4P7.js} +2 -2
  28. package/dist/bundle/{chunk-34DSPJNN.js → chunk-DCGGZUNJ.js} +2 -2
  29. package/dist/bundle/{chunk-CYWV2RLN.js → chunk-DDSAJKPO.js} +4 -4
  30. package/dist/bundle/{chunk-KRCMKFUV.js → chunk-DTTONQW7.js} +1 -1
  31. package/dist/bundle/{chunk-PDYTNTQI.js → chunk-E3MFMMVY.js} +5 -5
  32. package/dist/bundle/{chunk-ZON7K5QE.js → chunk-FHWUOFWX.js} +2 -2
  33. package/dist/bundle/{chunk-ZRRZTPSB.js → chunk-FYHFAOPM.js} +2219 -1052
  34. package/dist/bundle/{chunk-H5XC2WYO.js → chunk-FZKHFTKH.js} +22 -22
  35. package/dist/bundle/{chunk-THJHYMFR.js → chunk-GJBGZQHN.js} +3626 -3596
  36. package/dist/bundle/{chunk-DDKFAUQD.js → chunk-GJFICFQB.js} +1 -1
  37. package/dist/bundle/{chunk-CLURRDNU.js → chunk-HAR76KJG.js} +4 -4
  38. package/dist/bundle/{chunk-JJY3TQTM.js → chunk-LQRZUNYF.js} +2 -2
  39. package/dist/bundle/{chunk-LLCGOZ44.js → chunk-MFWWZ6XL.js} +2 -2
  40. package/dist/bundle/{chunk-LS72R7DN.js → chunk-N7WDVH2O.js} +37 -35
  41. package/dist/bundle/chunk-NE3EGYPD.js +109 -0
  42. package/dist/bundle/{chunk-YBOVL25O.js → chunk-NU4RMUMQ.js} +16 -16
  43. package/dist/bundle/{chunk-JQLGS3SG.js → chunk-O5A4IS2D.js} +1 -1
  44. package/dist/bundle/{chunk-DE7QIEUP.js → chunk-PG3V225O.js} +30 -49
  45. package/dist/bundle/{chunk-WQ55F4Y3.js → chunk-QROAXWDU.js} +7 -7
  46. package/dist/bundle/{chunk-U2TPRUWK.js → chunk-R2IW6JBV.js} +81 -81
  47. package/dist/bundle/{chunk-CLTMVPGT.js → chunk-RFFU6KQ5.js} +12 -12
  48. package/dist/bundle/{chunk-DQTQO6PB.js → chunk-SODUFMDW.js} +1651 -948
  49. package/dist/bundle/{chunk-KW6JZGG3.js → chunk-TKJZENAZ.js} +1 -1
  50. package/dist/bundle/{chunk-B7B65ZLU.js → chunk-UGEYQWEO.js} +1 -1
  51. package/dist/bundle/chunk-V4BPS7MH.js +185 -0
  52. package/dist/bundle/{chunk-3GLLWDM6.js → chunk-VC6J7X76.js} +16 -16
  53. package/dist/bundle/{chunk-S6OC367D.js → chunk-VDFEWSCS.js} +2 -2
  54. package/dist/bundle/{chunk-KLHOQ6XQ.js → chunk-VQL4RVXZ.js} +3 -1
  55. package/dist/bundle/{chunk-JSEIT2WO.js → chunk-W34QQMBK.js} +1 -1
  56. package/dist/bundle/{chunk-MMPISXSU.js → chunk-Y52T5EMB.js} +1 -1
  57. package/dist/bundle/{chunk-MTD6WZKV.js → chunk-Y74WJL3M.js} +6 -6
  58. package/dist/bundle/chunk-YDMKP7PO.js +18 -0
  59. package/dist/bundle/{chunk-VUUR2SRS.js → chunk-YFEH7OWG.js} +33 -16
  60. package/dist/bundle/{chunk-YDROJG2Y.js → chunk-ZKHXWSKD.js} +4 -4
  61. package/dist/bundle/{chunk-7N4IUEX3.js → chunk-ZNPRTCUO.js} +6 -6
  62. package/dist/bundle/{command-contract-KW6FNOJO.js → command-contract-247AKZTE.js} +12 -12
  63. package/dist/bundle/command-server-entry-N32NX4QW.js +162 -0
  64. package/dist/bundle/{decode-RVWSCZW4.js → decode-ZKJWSFXF.js} +2 -2
  65. package/dist/bundle/{echarts-6VNUD3JF.js → echarts-QLVLIP73.js} +2 -2
  66. package/dist/bundle/{embed-LWLCQKIK.js → embed-LC6K7P3S.js} +3 -3
  67. package/dist/bundle/{embedder-CXKHLRJT.js → embedder-6C3OQBOV.js} +6 -6
  68. package/dist/bundle/{entry-HV4NSX3Z.js → entry-5H6LB3MP.js} +7 -4
  69. package/dist/bundle/{first-run-OPI6NIWQ.js → first-run-IOYQ4XQK.js} +5 -5
  70. package/dist/bundle/{first-screen-BVQLF4LN.js → first-screen-NVK7PFX4.js} +13 -13
  71. package/dist/bundle/{instructions-TK4HXL3A.js → instructions-SZUMEDY3.js} +1 -1
  72. package/dist/bundle/{node-WFPNBUCU.js → node-V76RRFIA.js} +2 -2
  73. package/dist/bundle/{node-sqlite-L5BRGJLK.js → node-sqlite-2DTVOT7L.js} +3 -3
  74. package/dist/bundle/{oauth-CGVWL35B.js → oauth-CT7EBDRY.js} +4 -4
  75. package/dist/bundle/{open-HLL55C5S.js → open-G3VHOOMV.js} +2 -2
  76. package/dist/bundle/{openai-YFCNXIJ4.js → openai-F4K7MVTZ.js} +13 -13
  77. package/dist/bundle/{process-4A5JP5LO.js → process-XH3KEHSF.js} +1 -1
  78. package/dist/bundle/{program-IFGQGSUF.js → program-FLGIHTHM.js} +63 -60
  79. package/dist/bundle/{prompt-B5FYE2DQ.js → prompt-JWQ6UQ6R.js} +2 -2
  80. package/dist/bundle/{recognize-ZHMHGIV3.js → recognize-Z26T3SYD.js} +1 -1
  81. package/dist/bundle/{remote-A3W5HE52.js → remote-7KHT6V3O.js} +4 -4
  82. package/dist/bundle/{rerank-HWJAQOZM.js → rerank-6QVI74QY.js} +4 -4
  83. package/dist/bundle/{serve-PP326Q2F.js → serve-WYDZTONY.js} +11 -11
  84. package/dist/bundle/server-UXQT7LZT.js +61 -0
  85. package/dist/bundle/{server-MV6CL63L.js → server-Y4J2NCFA.js} +32 -32
  86. package/dist/bundle/{state-Y3RJ7ZXB.js → state-YCXBKOD2.js} +3 -3
  87. package/dist/bundle/{store-EVNI2MHZ.js → store-QECSDJRP.js} +9 -9
  88. package/dist/bundle/store-maintenance-command-5YW6TRJA.js +49 -0
  89. package/dist/bundle/tg.js +4 -4
  90. package/dist/version.d.ts +1 -1
  91. package/dist/version.js +1 -1
  92. package/package.json +2 -2
  93. package/dist/bundle/server-TZGGOJ26.js +0 -60
  94. package/dist/bundle/store-maintenance-command-XPQE47RE.js +0 -49
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  answerOf,
5
5
  messengerContext
6
- } from "./chunk-H5XC2WYO.js";
6
+ } from "./chunk-FZKHFTKH.js";
7
7
  import {
8
8
  FETCHING,
9
9
  RULES_VERSION,
@@ -27,7 +27,7 @@ import {
27
27
  typedQuery,
28
28
  withQuery,
29
29
  withTimeLimit
30
- } from "./chunk-7WS3ULOO.js";
30
+ } from "./chunk-6DLRATDC.js";
31
31
  import {
32
32
  QUICK_HEALTH_CHECKS,
33
33
  fts5Tables,
@@ -35,47 +35,21 @@ import {
35
35
  lossUnknown,
36
36
  storeDamageReport,
37
37
  storeHealth
38
- } from "./chunk-YDROJG2Y.js";
39
- import {
40
- stringWidth,
41
- wrapAnsi
42
- } from "./chunk-2ABQZVK4.js";
43
- import {
44
- Command,
45
- LOCAL_READ,
46
- LOCAL_WRITE,
47
- REMOTE_READ,
48
- REMOTE_WRITE,
49
- annotate,
50
- codeOf,
51
- destroysNothing,
52
- environmentOf,
53
- itemOf,
54
- jsonlRecords,
55
- levelFor,
56
- lineOf,
57
- listOf,
58
- modelTarget,
59
- nextStep,
60
- outputFor,
61
- parseDuration,
62
- recalledAccount,
63
- recordLogFor,
64
- renderAnswer,
65
- snakeKeys,
66
- storeTable,
67
- withoutProviderRefs
68
- } from "./chunk-THJHYMFR.js";
38
+ } from "./chunk-ZKHXWSKD.js";
69
39
  import {
70
40
  holdLock,
71
41
  lockPath,
72
42
  releaseLock,
73
43
  servingProfiles,
74
44
  takeLock
75
- } from "./chunk-ZON7K5QE.js";
45
+ } from "./chunk-FHWUOFWX.js";
76
46
  import {
77
- holdersOf
78
- } from "./chunk-JQLGS3SG.js";
47
+ stringWidth,
48
+ wrapAnsi
49
+ } from "./chunk-2ABQZVK4.js";
50
+ import {
51
+ readSecret
52
+ } from "./chunk-LQRZUNYF.js";
79
53
  import {
80
54
  CORPORA,
81
55
  MIGRATIONS,
@@ -110,7 +84,39 @@ import {
110
84
  storeClients,
111
85
  storeContents,
112
86
  vectorIndexCounts
113
- } from "./chunk-ZRRZTPSB.js";
87
+ } from "./chunk-FYHFAOPM.js";
88
+ import {
89
+ openCache
90
+ } from "./chunk-E3MFMMVY.js";
91
+ import {
92
+ Command,
93
+ LOCAL_READ,
94
+ LOCAL_WRITE,
95
+ REMOTE_READ,
96
+ REMOTE_WRITE,
97
+ annotate,
98
+ codeOf,
99
+ destroysNothing,
100
+ environmentOf,
101
+ itemOf,
102
+ jsonlRecords,
103
+ levelFor,
104
+ lineOf,
105
+ listOf,
106
+ modelTarget,
107
+ nextStep,
108
+ outputFor,
109
+ parseDuration,
110
+ recalledAccount,
111
+ recordLogFor,
112
+ renderAnswer,
113
+ snakeKeys,
114
+ storeTable,
115
+ withoutProviderRefs
116
+ } from "./chunk-GJBGZQHN.js";
117
+ import {
118
+ holdersOf
119
+ } from "./chunk-O5A4IS2D.js";
114
120
  import {
115
121
  currentRun,
116
122
  formatLocator,
@@ -120,20 +126,14 @@ import {
120
126
  readHealthMark,
121
127
  readJournalMark,
122
128
  recordDeepCheck
123
- } from "./chunk-KP26Y5OA.js";
129
+ } from "./chunk-4MFMUBHH.js";
124
130
  import {
125
131
  failureKey,
126
132
  isStoreDamage
127
- } from "./chunk-WLBPNLDF.js";
128
- import {
129
- readSecret
130
- } from "./chunk-JJY3TQTM.js";
133
+ } from "./chunk-27SVHRHV.js";
131
134
  import {
132
135
  storePath
133
- } from "./chunk-MMPISXSU.js";
134
- import {
135
- openCache
136
- } from "./chunk-PDYTNTQI.js";
136
+ } from "./chunk-Y52T5EMB.js";
137
137
  import {
138
138
  resolvePaths,
139
139
  writeSecurely
@@ -5503,11 +5503,11 @@ var require_liquid_node = __commonJS({
5503
5503
  }
5504
5504
  });
5505
5505
 
5506
- // node_modules/.pnpm/@wirecat+cli-core@0.619.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._3343d636b3fedf7ef3285e4c7a47096e/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
5506
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
5507
5507
  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";
5508
5508
  import { dirname as dirname3, resolve } from "node:path";
5509
5509
 
5510
- // node_modules/.pnpm/@wirecat+cli-core@0.619.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._3343d636b3fedf7ef3285e4c7a47096e/node_modules/@wirecat/cli-core/dist/sealed.js
5510
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/sealed.js
5511
5511
  import { createCipheriv, createDecipheriv, createHash, randomBytes, scrypt, timingSafeEqual } from "node:crypto";
5512
5512
  import { closeSync, createReadStream, createWriteStream, existsSync, openSync, readSync, renameSync, rmSync, statSync } from "node:fs";
5513
5513
  import { Transform } from "node:stream";
@@ -5614,7 +5614,7 @@ var unsealFile = /* @__PURE__ */ __name(async (from, to, password) => {
5614
5614
  renameSync(pending, to);
5615
5615
  }, "unsealFile");
5616
5616
 
5617
- // node_modules/.pnpm/@wirecat+cli-core@0.619.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._3343d636b3fedf7ef3285e4c7a47096e/node_modules/@wirecat/cli-core/dist/store/compatibility.js
5617
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/store/compatibility.js
5618
5618
  var SPEAKS = MIGRATIONS.at(-1)?.version ?? 0;
5619
5619
  var fileSchemaOf = /* @__PURE__ */ __name((database) => {
5620
5620
  const tracked = database.prepare("SELECT 1 FROM sqlite_master WHERE name = 'schema_migrations'").get();
@@ -5638,7 +5638,7 @@ var compatibilityOf = /* @__PURE__ */ __name((file2, migrations = MIGRATIONS) =>
5638
5638
  };
5639
5639
  }, "compatibilityOf");
5640
5640
 
5641
- // node_modules/.pnpm/@wirecat+cli-core@0.619.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._3343d636b3fedf7ef3285e4c7a47096e/node_modules/@wirecat/cli-core/dist/store/repair.js
5641
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/store/repair.js
5642
5642
  import { createHash as createHash2 } from "node:crypto";
5643
5643
  var COPY_MARK = "__repair_";
5644
5644
  var COPY_NAME = /__repair_[0-9a-f]{8}(_\d+)?$/;
@@ -5892,19 +5892,19 @@ var deleteCopy = /* @__PURE__ */ __name((database, name) => {
5892
5892
  return found;
5893
5893
  }, "deleteCopy");
5894
5894
 
5895
- // node_modules/.pnpm/@wirecat+cli-core@0.619.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._3343d636b3fedf7ef3285e4c7a47096e/node_modules/@wirecat/cli-core/dist/cli/store-info.js
5895
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/cli/store-info.js
5896
5896
  import { existsSync as existsSync4, statSync as statSync3 } from "node:fs";
5897
5897
 
5898
- // node_modules/.pnpm/@wirecat+cli-core@0.619.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._3343d636b3fedf7ef3285e4c7a47096e/node_modules/@wirecat/cli-core/dist/cli/store-recover.js
5898
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/cli/store-recover.js
5899
5899
  import { existsSync as existsSync3 } from "node:fs";
5900
5900
 
5901
- // node_modules/.pnpm/@wirecat+cli-core@0.619.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._3343d636b3fedf7ef3285e4c7a47096e/node_modules/@wirecat/cli-core/dist/store/recover.js
5901
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/store/recover.js
5902
5902
  import { execFileSync, spawn } from "node:child_process";
5903
5903
  import { existsSync as existsSync2, readFileSync, realpathSync, renameSync as renameSync2, rmSync as rmSync2, statfsSync, statSync as statSync2, writeFileSync } from "node:fs";
5904
5904
  import { basename, dirname, join } from "node:path";
5905
5905
  import { Transform as Transform2 } from "node:stream";
5906
5906
 
5907
- // node_modules/.pnpm/@wirecat+cli-core@0.619.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._3343d636b3fedf7ef3285e4c7a47096e/node_modules/@wirecat/cli-core/dist/store/refill.js
5907
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/store/refill.js
5908
5908
  var REFILL_MARGIN_MS = 864e5;
5909
5909
  var TIME_KEYS = 1e12;
5910
5910
  var integerId = `external_id GLOB '[0-9]*' AND NOT external_id GLOB '*[^0-9]*'`;
@@ -5984,7 +5984,7 @@ var forgetMail = /* @__PURE__ */ __name((database, cutoff, now) => {
5984
5984
  return [...folders].map(([account, count3]) => ({ account, folders: count3 }));
5985
5985
  }, "forgetMail");
5986
5986
 
5987
- // node_modules/.pnpm/@wirecat+cli-core@0.619.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._3343d636b3fedf7ef3285e4c7a47096e/node_modules/@wirecat/cli-core/dist/store/recover.js
5987
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/store/recover.js
5988
5988
  var SQLITE3_MINIMUM = [3, 43, 0];
5989
5989
  var STORE_PARTS = ["", "-wal", "-shm"];
5990
5990
  var RECOVER_LOCK = ".recover-lock";
@@ -6512,7 +6512,7 @@ var recoverLocked = /* @__PURE__ */ __name(async ({ path, command, version, sqli
6512
6512
  }
6513
6513
  }, "recoverLocked");
6514
6514
 
6515
- // node_modules/.pnpm/@wirecat+cli-core@0.619.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._3343d636b3fedf7ef3285e4c7a47096e/node_modules/@wirecat/cli-core/dist/cli/store-recover.js
6515
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/cli/store-recover.js
6516
6516
  var COUNTED = [
6517
6517
  "accounts",
6518
6518
  "chats",
@@ -6668,7 +6668,7 @@ var storeRecoverCommand = /* @__PURE__ */ __name(({ command, version }) => {
6668
6668
  return recover;
6669
6669
  }, "storeRecoverCommand");
6670
6670
 
6671
- // node_modules/.pnpm/@wirecat+cli-core@0.619.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._3343d636b3fedf7ef3285e4c7a47096e/node_modules/@wirecat/cli-core/dist/cli/store-info.js
6671
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/cli/store-info.js
6672
6672
  var pendingIfKnown = /* @__PURE__ */ __name((database) => database.prepare("SELECT 1 FROM pragma_table_info('messages') WHERE name = 'normalized_text'").get() ? pendingNormalization(database) : null, "pendingIfKnown");
6673
6673
  var bytesOf = /* @__PURE__ */ __name((path) => existsSync4(path) ? statSync3(path).size : 0, "bytesOf");
6674
6674
  var messageOf = /* @__PURE__ */ __name((error) => error instanceof Error ? error.message : String(error), "messageOf");
@@ -6714,7 +6714,7 @@ var storeInfoCommand = /* @__PURE__ */ __name(() => annotate(new Command("info")
6714
6714
  renderAnswer(this, outputFor(this), itemOf(answer));
6715
6715
  }), "storeInfoCommand");
6716
6716
 
6717
- // node_modules/.pnpm/@wirecat+cli-core@0.619.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._3343d636b3fedf7ef3285e4c7a47096e/node_modules/@wirecat/cli-core/dist/cli/messenger/password.js
6717
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/cli/messenger/password.js
6718
6718
  var ENCRYPT_OPTION = [
6719
6719
  "--encrypt",
6720
6720
  "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"
@@ -6733,7 +6733,7 @@ var passwordOf = /* @__PURE__ */ __name(async (command, { twice }) => {
6733
6733
  return password;
6734
6734
  }, "passwordOf");
6735
6735
 
6736
- // node_modules/.pnpm/@wirecat+cli-core@0.619.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._3343d636b3fedf7ef3285e4c7a47096e/node_modules/@wirecat/cli-core/dist/replies/rules.js
6736
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/replies/rules.js
6737
6737
  import { existsSync as existsSync5, readFileSync as readFileSync2 } from "node:fs";
6738
6738
  import { join as join2 } from "node:path";
6739
6739
  var REPLY_ACTIONS = ["reply", "task"];
@@ -6904,7 +6904,7 @@ var problem = /* @__PURE__ */ __name((issue) => {
6904
6904
  }, "problem");
6905
6905
  var broken = /* @__PURE__ */ __name((path, why) => new CliError("configuration_error", `the reply rules ${path} cannot be read (${why}) \u2014 fix the file`), "broken");
6906
6906
 
6907
- // node_modules/.pnpm/@wirecat+cli-core@0.619.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._3343d636b3fedf7ef3285e4c7a47096e/node_modules/@wirecat/cli-core/dist/replies/state.js
6907
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/replies/state.js
6908
6908
  import { existsSync as existsSync6, readFileSync as readFileSync3 } from "node:fs";
6909
6909
  import { join as join3 } from "node:path";
6910
6910
  var ANSWERED_KEPT = 1e3;
@@ -6957,7 +6957,7 @@ var recordReply = /* @__PURE__ */ __name((state, rule2, message, now) => {
6957
6957
  }, "recordReply");
6958
6958
  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");
6959
6959
 
6960
- // node_modules/.pnpm/@wirecat+cli-core@0.619.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._3343d636b3fedf7ef3285e4c7a47096e/node_modules/@wirecat/cli-core/dist/replies/decide.js
6960
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/replies/decide.js
6961
6961
  var skip = /* @__PURE__ */ __name((why) => ({ skip: why }), "skip");
6962
6962
  var decide = /* @__PURE__ */ __name((rule2, incoming, state, now) => {
6963
6963
  const { message, chat, owner, sender } = incoming;
@@ -7063,10 +7063,10 @@ var filled = /* @__PURE__ */ __name((template2, senderName) => {
7063
7063
  return template2.replaceAll("{firstName}", name.split(/\s+/)[0] ?? name).replaceAll("{name}", name);
7064
7064
  }, "filled");
7065
7065
 
7066
- // node_modules/.pnpm/@wirecat+cli-core@0.619.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._3343d636b3fedf7ef3285e4c7a47096e/node_modules/@wirecat/cli-core/dist/replies/template.js
7066
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/replies/template.js
7067
7067
  var import_liquidjs2 = __toESM(require_liquid_node(), 1);
7068
7068
 
7069
- // node_modules/.pnpm/@wirecat+cli-core@0.619.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._3343d636b3fedf7ef3285e4c7a47096e/node_modules/@wirecat/cli-core/dist/render/liquid.js
7069
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/render/liquid.js
7070
7070
  var import_liquidjs = __toESM(require_liquid_node(), 1);
7071
7071
  var safeLiquid = /* @__PURE__ */ __name((limits) => {
7072
7072
  const engine = new import_liquidjs.Liquid({
@@ -7093,7 +7093,7 @@ var safeLiquid = /* @__PURE__ */ __name((limits) => {
7093
7093
  return engine;
7094
7094
  }, "safeLiquid");
7095
7095
 
7096
- // node_modules/.pnpm/@wirecat+cli-core@0.619.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._3343d636b3fedf7ef3285e4c7a47096e/node_modules/@wirecat/cli-core/dist/replies/template.js
7096
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/replies/template.js
7097
7097
  var TEMPLATE_LIMITS = {
7098
7098
  parse: 32768,
7099
7099
  renders: 2e3,
@@ -7232,7 +7232,7 @@ var renderReplyTemplate = /* @__PURE__ */ __name(async (reply, input) => {
7232
7232
  }
7233
7233
  }, "renderReplyTemplate");
7234
7234
 
7235
- // node_modules/.pnpm/@wirecat+cli-core@0.619.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._3343d636b3fedf7ef3285e4c7a47096e/node_modules/@wirecat/cli-core/dist/replies/dry-run.js
7235
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/replies/dry-run.js
7236
7236
  var DRY_RUN_DAYS = 7;
7237
7237
  var PAGE = 500;
7238
7238
  var dryRun = /* @__PURE__ */ __name(async (store, account, rules, { since, until = Date.now(), only, audience, render }) => {
@@ -7346,7 +7346,7 @@ var storedSince = /* @__PURE__ */ __name(async (store, account, chat, since) =>
7346
7346
  }
7347
7347
  }, "storedSince");
7348
7348
 
7349
- // node_modules/.pnpm/@wirecat+cli-core@0.619.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._3343d636b3fedf7ef3285e4c7a47096e/node_modules/@wirecat/cli-core/dist/replies/consents.js
7349
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/replies/consents.js
7350
7350
  import { existsSync as existsSync7, readFileSync as readFileSync4 } from "node:fs";
7351
7351
  import { join as join4 } from "node:path";
7352
7352
  var shape = strictObject({
@@ -7371,7 +7371,7 @@ var mayModelReply = /* @__PURE__ */ __name((path, provider, chat) => {
7371
7371
  return consent.provider === provider && !consent.deniedChats.includes(chat);
7372
7372
  }, "mayModelReply");
7373
7373
 
7374
- // node_modules/.pnpm/@wirecat+cli-core@0.619.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._3343d636b3fedf7ef3285e4c7a47096e/node_modules/@wirecat/cli-core/dist/replies/rendering.js
7374
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/replies/rendering.js
7375
7375
  var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, options = {
7376
7376
  ai: true
7377
7377
  }) => async (rule2, message, chat, now) => {
@@ -7418,7 +7418,7 @@ var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, o
7418
7418
  return result2;
7419
7419
  }, "replyRenderer");
7420
7420
 
7421
- // node_modules/.pnpm/@wirecat+cli-core@0.619.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._3343d636b3fedf7ef3285e4c7a47096e/node_modules/@wirecat/cli-core/dist/replies/serve.js
7421
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/replies/serve.js
7422
7422
  var NOT_ALLOWED = "replies.send is not allow";
7423
7423
  var NO_RULES = "no rules";
7424
7424
  var ONLY_TASK = "opened a task, sent nothing";
@@ -7511,7 +7511,7 @@ var replyTo = /* @__PURE__ */ __name(async (deps, message) => {
7511
7511
  return { skip: why };
7512
7512
  }, "replyTo");
7513
7513
 
7514
- // node_modules/.pnpm/@wirecat+cli-core@0.619.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._3343d636b3fedf7ef3285e4c7a47096e/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-catch-up.js
7514
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-catch-up.js
7515
7515
  var START_SYNC_DELAY_MS = 3e4;
7516
7516
  var START_SYNC_BUDGET_MS = 5 * 6e4;
7517
7517
  var START_SYNC_WINDOW_MS = 7 * 864e5;
@@ -7588,7 +7588,7 @@ var startSync = /* @__PURE__ */ __name(({ chats, newestHeld, fetch, note, warn,
7588
7588
  };
7589
7589
  }, "startSync");
7590
7590
 
7591
- // node_modules/.pnpm/@wirecat+cli-core@0.619.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._3343d636b3fedf7ef3285e4c7a47096e/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-members.js
7591
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-members.js
7592
7592
  var FIRST_FETCH_MS = 6e4;
7593
7593
  var DAY_MS = 864e5;
7594
7594
  var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch, warn, firstMs = FIRST_FETCH_MS, everyMs = DAY_MS }) => {
@@ -7642,7 +7642,7 @@ var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch, warn, firstMs =
7642
7642
  };
7643
7643
  }, "memberFetches");
7644
7644
 
7645
- // node_modules/.pnpm/@wirecat+cli-core@0.619.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._3343d636b3fedf7ef3285e4c7a47096e/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-notice.js
7645
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-notice.js
7646
7646
  var record2 = /* @__PURE__ */ __name((context, app, severity, attributes) => recordLogFor(context.streams.diagnostic, app, { command: currentRun().command || "serve" })[severity](attributes), "record");
7647
7647
  var noticeFor = /* @__PURE__ */ __name((context, app, severity = "warn") => ({ text, ...attributes }) => {
7648
7648
  if (context.format === "pretty") {
@@ -7675,7 +7675,7 @@ var recordDiagnostics = /* @__PURE__ */ __name((context, app) => {
7675
7675
  return context;
7676
7676
  }, "recordDiagnostics");
7677
7677
 
7678
- // node_modules/.pnpm/@wirecat+cli-core@0.619.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._3343d636b3fedf7ef3285e4c7a47096e/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-outdated.js
7678
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-outdated.js
7679
7679
  import { existsSync as existsSync8, readFileSync as readFileSync5, realpathSync as realpathSync2 } from "node:fs";
7680
7680
  import { dirname as dirname2, join as join5 } from "node:path";
7681
7681
  var OUTDATED_CHECK_MS = 6e4;
@@ -7761,7 +7761,7 @@ var watchOutdated = /* @__PURE__ */ __name(({ check: check2, onOutdated, everyMs
7761
7761
  };
7762
7762
  }, "watchOutdated");
7763
7763
 
7764
- // node_modules/.pnpm/@wirecat+cli-core@0.619.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._3343d636b3fedf7ef3285e4c7a47096e/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-stems.js
7764
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-stems.js
7765
7765
  var STEMS_EVERY_MS = 3e4;
7766
7766
  var STEMS_SLICE_MS = 2e3;
7767
7767
  var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY_MS, sliceMs = STEMS_SLICE_MS }) => {
@@ -7801,7 +7801,7 @@ var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY
7801
7801
  };
7802
7802
  }, "stemFills");
7803
7803
 
7804
- // node_modules/.pnpm/@wirecat+cli-core@0.619.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._3343d636b3fedf7ef3285e4c7a47096e/node_modules/@wirecat/cli-core/dist/render/messages.js
7804
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/render/messages.js
7805
7805
  import { styleText } from "node:util";
7806
7806
  var TIME_WIDTH = 8;
7807
7807
  var INDENT = " ".repeat(TIME_WIDTH + 2);
@@ -7977,7 +7977,7 @@ var editedAt = /* @__PURE__ */ __name((message, options) => {
7977
7977
  return day(edited) === day(message.timestamp) ? time : `${day(edited)} ${time}`;
7978
7978
  }, "editedAt");
7979
7979
 
7980
- // node_modules/.pnpm/@wirecat+cli-core@0.619.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._3343d636b3fedf7ef3285e4c7a47096e/node_modules/@wirecat/cli-core/dist/cli/messenger/message-items.js
7980
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/cli/messenger/message-items.js
7981
7981
  var defined = /* @__PURE__ */ __name((value) => Object.fromEntries(Object.entries(value).filter(([, one]) => one !== void 0)), "defined");
7982
7982
  var attachmentItem = /* @__PURE__ */ __name((attachment) => defined({
7983
7983
  kind: attachment.kind,
@@ -7996,7 +7996,7 @@ var attachmentItem = /* @__PURE__ */ __name((attachment) => defined({
7996
7996
  phone: attachment.contact.phone,
7997
7997
  user_id: attachment.contact.userId
7998
7998
  }),
7999
- buttons: attachment.buttons
7999
+ buttons: attachment.buttons?.map((row) => row.map(({ data: _data, ...button }) => button))
8000
8000
  }), "attachmentItem");
8001
8001
  var quotedItem = /* @__PURE__ */ __name((quoted) => quoted === null ? null : {
8002
8002
  id: quoted.id,
@@ -8072,7 +8072,7 @@ var viewOf = /* @__PURE__ */ __name((context, messenger) => ({
8072
8072
  locale: messenger.app.locale
8073
8073
  }), "viewOf");
8074
8074
 
8075
- // node_modules/.pnpm/@wirecat+cli-core@0.619.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._3343d636b3fedf7ef3285e4c7a47096e/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-answers.js
8075
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-answers.js
8076
8076
  var observed = /* @__PURE__ */ __name((value) => ({
8077
8077
  value: value.value,
8078
8078
  observed_at: value.observedAt,
@@ -8139,7 +8139,7 @@ var watchEventItem = /* @__PURE__ */ __name((value, account) => {
8139
8139
  }
8140
8140
  }, "watchEventItem");
8141
8141
 
8142
- // node_modules/.pnpm/@wirecat+cli-core@0.619.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._3343d636b3fedf7ef3285e4c7a47096e/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-command.js
8142
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-command.js
8143
8143
  var watchCommand = /* @__PURE__ */ __name((messenger) => annotate(new Command("watch"), {
8144
8144
  output: { entity: "watch_item" },
8145
8145
  effects: REMOTE_READ,
@@ -8294,7 +8294,7 @@ var describe = /* @__PURE__ */ __name((event, render) => {
8294
8294
  }
8295
8295
  }, "describe");
8296
8296
 
8297
- // node_modules/.pnpm/@wirecat+cli-core@0.619.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._3343d636b3fedf7ef3285e4c7a47096e/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-command.js
8297
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-command.js
8298
8298
  var serveCommand = /* @__PURE__ */ __name((messenger) => {
8299
8299
  const command = annotate(new Command("serve"), {
8300
8300
  output: { entity: "serve_summary" },
@@ -8577,7 +8577,7 @@ var tasking = /* @__PURE__ */ __name((context, warn) => {
8577
8577
  };
8578
8578
  }, "tasking");
8579
8579
 
8580
- // node_modules/.pnpm/@wirecat+cli-core@0.619.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._3343d636b3fedf7ef3285e4c7a47096e/node_modules/@wirecat/cli-core/dist/cli/messenger/store-tables-command.js
8580
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/cli/messenger/store-tables-command.js
8581
8581
  import { existsSync as existsSync9 } from "node:fs";
8582
8582
  var PATH = "store tables list";
8583
8583
  var STORE_TABLES_QUERY = {
@@ -8620,7 +8620,7 @@ var storeTablesCommand = /* @__PURE__ */ __name((messenger) => {
8620
8620
  return tables;
8621
8621
  }, "storeTablesCommand");
8622
8622
 
8623
- // node_modules/.pnpm/@wirecat+cli-core@0.619.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._3343d636b3fedf7ef3285e4c7a47096e/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
8623
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
8624
8624
  var SEARCH_INDEXES = ["messages_fts", "chats_fts", "identities_fts"];
8625
8625
  var WORD_INDEX = "message_words";
8626
8626
  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.619.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._3343d636b3fedf7ef3285e4c7a47096e/node_modules/@wirecat/cli-core/dist/files/ordinary-file.js
10
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/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.619.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._3343d636b3fedf7ef3285e4c7a47096e/node_modules/@wirecat/cli-core/dist/files/atomic-write.js
76
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/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.619.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._3343d636b3fedf7ef3285e4c7a47096e/node_modules/@wirecat/cli-core/dist/files/bounded-utf8.js
114
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/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.619.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._3343d636b3fedf7ef3285e4c7a47096e/node_modules/@wirecat/cli-core/dist/files/lock.js
143
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/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.619.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._3343d636b3fedf7ef3285e4c7a47096e/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
147
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/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.619.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._3343d636b3fedf7ef3285e4c7a47096e/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
153
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/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.619.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._3343d636b3fedf7ef3285e4c7a47096e/node_modules/@wirecat/cli-core/dist/files/native-lease-owner.js
157
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/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.619.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._3343d636b3fedf7ef3285e4c7a47096e/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
202
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/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.619.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._3343d636b3fedf7ef3285e4c7a47096e/node_modules/@wirecat/cli-core/dist/files/native-lease-release.js
261
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/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.619.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._3343d636b3fedf7ef3285e4c7a47096e/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
286
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/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.619.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._3343d636b3fedf7ef3285e4c7a47096e/node_modules/@wirecat/cli-core/dist/files/lock.js
357
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/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.619.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._3343d636b3fedf7ef3285e4c7a47096e/node_modules/@wirecat/cli-core/dist/files/safe-name.js
372
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/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(/^\.+/, "");