@wirecat/tg-cli 0.134.0 → 0.135.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 (139) hide show
  1. package/dist/bin/tg.js +2 -2
  2. package/dist/bundle/{adapter-Y4IXTXAG.js → adapter-OHJF6PB5.js} +67 -67
  3. package/dist/bundle/agent-QPF2KU4I.js +37 -0
  4. package/dist/bundle/{all-profiles-SUGID6CX.js → all-profiles-LQ73BIFB.js} +10 -10
  5. package/dist/bundle/{anthropic-4QKTXT4B.js → anthropic-YYBMT2HD.js} +5 -5
  6. package/dist/bundle/{app-server-TPOD6LIJ.js → app-server-HV4C4CSA.js} +61 -61
  7. package/dist/bundle/{bot-api-KBESP422.js → bot-api-URQXWMVR.js} +67 -67
  8. package/dist/bundle/{bot-history-3EORA23G.js → bot-history-FRLCHPDQ.js} +23 -23
  9. package/dist/bundle/{bun-FL76M4M2.js → bun-J3ML43BO.js} +2 -2
  10. package/dist/bundle/{bun-sqlite-H37OSTAJ.js → bun-sqlite-ZNB2B2DL.js} +6 -6
  11. package/dist/bundle/{chunk-JXEO5EIN.js → chunk-24G3SEXH.js} +2 -2
  12. package/dist/bundle/{chunk-JWLODUN3.js → chunk-27F6QBPY.js} +14 -14
  13. package/dist/bundle/{chunk-XVRLD3LN.js → chunk-2OFCIF2W.js} +2 -2
  14. package/dist/bundle/{chunk-4S2DHHJM.js → chunk-2U7XA4IH.js} +1 -1
  15. package/dist/bundle/{chunk-HD7DV5B2.js → chunk-4CLSIEWN.js} +35 -35
  16. package/dist/bundle/{chunk-PRM7GKBV.js → chunk-5CEKH6R6.js} +7 -7
  17. package/dist/bundle/{chunk-Z77R76S2.js → chunk-5WEEK65F.js} +1 -1
  18. package/dist/bundle/{chunk-3O25FAPA.js → chunk-6VWVYPH2.js} +1 -1
  19. package/dist/bundle/{chunk-CNGNR4CY.js → chunk-6WS474NQ.js} +6 -6
  20. package/dist/bundle/{chunk-L4PNDW4S.js → chunk-7GWOGEWJ.js} +6 -6
  21. package/dist/bundle/{chunk-HETHFOHC.js → chunk-AMRMU23L.js} +16 -3
  22. package/dist/bundle/{chunk-M323L5SG.js → chunk-B2UXNYCD.js} +13 -13
  23. package/dist/bundle/{chunk-2GT563YH.js → chunk-B4ZMFU5I.js} +2 -2
  24. package/dist/bundle/{chunk-JWNSG5GI.js → chunk-BFKPMG5T.js} +1 -1
  25. package/dist/bundle/{chunk-ZC7OEYDX.js → chunk-BQSODAU3.js} +1 -1
  26. package/dist/bundle/{chunk-YHTSJMZ5.js → chunk-BXUMZWMN.js} +565 -477
  27. package/dist/bundle/{chunk-DG35TQ6P.js → chunk-E2VIO7RY.js} +3 -3
  28. package/dist/bundle/{chunk-H3TLAYGY.js → chunk-F5FOS64B.js} +4 -4
  29. package/dist/bundle/{chunk-PK5WEGPJ.js → chunk-GCUFGDKE.js} +2 -2
  30. package/dist/bundle/{chunk-YPJCURT6.js → chunk-GUERS64O.js} +2 -2
  31. package/dist/bundle/{chunk-ZW2N2GI2.js → chunk-HILS2UL7.js} +12 -12
  32. package/dist/bundle/{chunk-XS4EE7MO.js → chunk-IOJOLV25.js} +14 -14
  33. package/dist/bundle/{chunk-XLNV3U6N.js → chunk-JBS4VPAX.js} +3 -3
  34. package/dist/bundle/{chunk-2JWY7CXJ.js → chunk-K5QGBYDL.js} +4 -4
  35. package/dist/bundle/{chunk-ANBI3OXK.js → chunk-KKXF6TSS.js} +1 -1
  36. package/dist/bundle/{chunk-UTTEAOJ3.js → chunk-L2ZQDTDU.js} +1 -1
  37. package/dist/bundle/{chunk-XZ6XEAJP.js → chunk-LFPUW7DR.js} +15 -15
  38. package/dist/bundle/{chunk-L47PFECD.js → chunk-LGYATGQI.js} +7 -7
  39. package/dist/bundle/{chunk-JCDD5T3A.js → chunk-MA27675E.js} +2 -2
  40. package/dist/bundle/{chunk-NUD4CBHK.js → chunk-MDI7554C.js} +3 -3
  41. package/dist/bundle/{chunk-VH4J7IIS.js → chunk-MMZ4QAKJ.js} +1 -1
  42. package/dist/bundle/{chunk-FR4Y5CGW.js → chunk-MOPBEBVS.js} +4 -4
  43. package/dist/bundle/{chunk-TZCFJJEU.js → chunk-MPRXUTIK.js} +2 -2
  44. package/dist/bundle/{chunk-K5FK6WWN.js → chunk-N7F5KT6U.js} +1 -1
  45. package/dist/bundle/{chunk-CSXCCK6J.js → chunk-NBP6LXSY.js} +2 -2
  46. package/dist/bundle/{chunk-PCBVSHKD.js → chunk-NP46ZKQW.js} +4 -4
  47. package/dist/bundle/{chunk-TI5U6AUT.js → chunk-NRSJXUUO.js} +26 -26
  48. package/dist/bundle/{chunk-4R2ZJGFF.js → chunk-NVWZ7S3I.js} +578 -451
  49. package/dist/bundle/{chunk-W2QSDPG6.js → chunk-OBIMTRA7.js} +3 -3
  50. package/dist/bundle/{chunk-O3QBO6NW.js → chunk-OQJURSRL.js} +17 -17
  51. package/dist/bundle/{chunk-V6G4LTXU.js → chunk-OU3WN4YH.js} +3 -3
  52. package/dist/bundle/{chunk-VNJRWFHP.js → chunk-PBK2ECXT.js} +1 -1
  53. package/dist/bundle/{chunk-3ZNO27UE.js → chunk-PHAFT2BO.js} +1 -1
  54. package/dist/bundle/{chunk-3QQWTP77.js → chunk-PKIGE4NE.js} +2 -2
  55. package/dist/bundle/{chunk-CA7DY2YU.js → chunk-QBRQLOZA.js} +3 -3
  56. package/dist/bundle/{chunk-NYEVPAF2.js → chunk-QD4MTOI7.js} +61 -61
  57. package/dist/bundle/{chunk-WGGUKQE7.js → chunk-QHQ52UMF.js} +75 -31
  58. package/dist/bundle/{chunk-6UNLEQA5.js → chunk-R2G3MWEF.js} +19 -19
  59. package/dist/bundle/{chunk-TKWYXM7L.js → chunk-RCEP5OXD.js} +7 -7
  60. package/dist/bundle/{chunk-7GGDCQJ5.js → chunk-RHJ2VGHV.js} +8 -8
  61. package/dist/bundle/{chunk-SPXNI53Z.js → chunk-RXBKVNOK.js} +23 -10
  62. package/dist/bundle/{chunk-WPXVJGSL.js → chunk-RZ7POTFA.js} +3 -3
  63. package/dist/bundle/{chunk-OJSPB4LA.js → chunk-S7PIM4GG.js} +2 -2
  64. package/dist/bundle/{chunk-JHZJBNDO.js → chunk-SIDGH56R.js} +2 -2
  65. package/dist/bundle/{chunk-RVA3CRSY.js → chunk-SRMELB6Q.js} +12 -12
  66. package/dist/bundle/{chunk-IJ7R2WMK.js → chunk-SVPNU7PD.js} +4 -4
  67. package/dist/bundle/{chunk-GIGZTI74.js → chunk-TB2MG6PE.js} +938 -710
  68. package/dist/bundle/{chunk-J5RB4ASI.js → chunk-UN5TH2CG.js} +28 -13
  69. package/dist/bundle/{chunk-PZ2ZFPGO.js → chunk-V3ZWYMXT.js} +1 -1
  70. package/dist/bundle/{chunk-ITJ7DGNA.js → chunk-VFU25P57.js} +4 -4
  71. package/dist/bundle/{chunk-AYWST6NA.js → chunk-VJEMCJPL.js} +35 -35
  72. package/dist/bundle/{chunk-AHVWZDXO.js → chunk-VK2NDTBS.js} +72 -57
  73. package/dist/bundle/{chunk-CDKXZLMP.js → chunk-W6A2OZ3C.js} +164 -158
  74. package/dist/bundle/{chunk-EXMAWEHC.js → chunk-WDI6LA4X.js} +2 -2
  75. package/dist/bundle/{chunk-O4ZOQJ6W.js → chunk-WTGRQGQL.js} +15 -8
  76. package/dist/bundle/{chunk-JAL443BH.js → chunk-WUCTF2XE.js} +9 -9
  77. package/dist/bundle/{chunk-HEZK4W3U.js → chunk-WZCRCCOZ.js} +6 -6
  78. package/dist/bundle/{chunk-4X6BX3XP.js → chunk-XB6O445X.js} +6 -6
  79. package/dist/bundle/{chunk-PRI2XTM7.js → chunk-XKFES4EM.js} +8 -8
  80. package/dist/bundle/{chunk-6DJJVFSG.js → chunk-YBUX6EAK.js} +6 -6
  81. package/dist/bundle/{chunk-77E7Q4EQ.js → chunk-YMRL7MYS.js} +7 -7
  82. package/dist/bundle/{chunk-6MEHKUN6.js → chunk-Z6M6NZUX.js} +1 -1
  83. package/dist/bundle/{chunk-QYRK4XXH.js → chunk-ZCDRXKCR.js} +13 -13
  84. package/dist/bundle/{chunk-MMDFPBFZ.js → chunk-ZJ3S4S6H.js} +6 -6
  85. package/dist/bundle/{chunk-3PG6QVQZ.js → chunk-ZL7TJXFL.js} +10 -10
  86. package/dist/bundle/{chunk-MXA3FU2R.js → chunk-ZMBVZWUW.js} +1 -1
  87. package/dist/bundle/{chunk-MUV73B5A.js → chunk-ZMTASSIB.js} +7 -7
  88. package/dist/bundle/{chunk-6DGVK5KS.js → chunk-ZQ5ERQHO.js} +2 -2
  89. package/dist/bundle/{chunk-FR3ATU5I.js → chunk-ZWVDXVG3.js} +4 -4
  90. package/dist/bundle/command-contract-K4MU32K6.js +37 -0
  91. package/dist/bundle/{command-server-entry-WQAE5UGU.js → command-server-entry-XP6BVJIK.js} +27 -27
  92. package/dist/bundle/{decode-2J2DOVGV.js → decode-TUB45ALX.js} +5 -5
  93. package/dist/bundle/{dispatch-IZ2TP5GW.js → dispatch-ICPUKMEG.js} +8 -8
  94. package/dist/bundle/{echarts-GFIIHZ4U.js → echarts-HJ7D7XTM.js} +2 -2
  95. package/dist/bundle/{embed-AGOXADHW.js → embed-4QDN36YF.js} +6 -6
  96. package/dist/bundle/{embedder-PCIXGM2Y.js → embedder-Q7ID2LEG.js} +9 -9
  97. package/dist/bundle/{entry-HUQXUV52.js → entry-Z6VRZP7F.js} +9 -9
  98. package/dist/bundle/{failure-JSRHZ2S6.js → failure-PEPNEEK7.js} +2 -2
  99. package/dist/bundle/{first-run-2LXN7B33.js → first-run-GKBEHAAX.js} +12 -12
  100. package/dist/bundle/first-screen-IA3ONZ75.js +37 -0
  101. package/dist/bundle/{instructions-RSLTJVFJ.js → instructions-26ZXYYMY.js} +1 -1
  102. package/dist/bundle/{mcp-MMENCB7I.js → mcp-KGWT6TGO.js} +2 -2
  103. package/dist/bundle/meeting-combined-KUV2HP52.js +23 -0
  104. package/dist/bundle/{meeting-model-SI77WMMK.js → meeting-model-JB7X4CA3.js} +11 -11
  105. package/dist/bundle/{meeting-semantic-WRXWUR4M.js → meeting-semantic-MQNUVG33.js} +6 -6
  106. package/dist/bundle/{node-5XGMCUGQ.js → node-RIANITAT.js} +2 -2
  107. package/dist/bundle/{node-sqlite-ES7SQSIC.js → node-sqlite-I2P26Z3S.js} +7 -7
  108. package/dist/bundle/{oauth-QFM4Y6N7.js → oauth-GFMJL2ZZ.js} +7 -7
  109. package/dist/bundle/{open-2MD2DKGQ.js → open-CWVYEFNN.js} +5 -5
  110. package/dist/bundle/{openai-6TMKJKYO.js → openai-PQLK7YTJ.js} +15 -15
  111. package/dist/bundle/{process-VA2DP7MY.js → process-P4D4KFWE.js} +1 -1
  112. package/dist/bundle/{program-K3SLEA42.js → program-MF4QZJKH.js} +70 -70
  113. package/dist/bundle/{prompt-VZSPCE6E.js → prompt-JWIOYU53.js} +5 -5
  114. package/dist/bundle/{proxy-transport-OJU2EOOC.js → proxy-transport-DWY6ABVT.js} +5 -5
  115. package/dist/bundle/{recognize-LH3ZZEIL.js → recognize-IPJL4CQZ.js} +4 -4
  116. package/dist/bundle/{remote-JNW5HN2I.js → remote-DVY6F6YO.js} +9 -9
  117. package/dist/bundle/{rerank-P23UJMII.js → rerank-XSPWLBIO.js} +7 -7
  118. package/dist/bundle/{serve-VSLLMILH.js → serve-AJAVEH2M.js} +9 -9
  119. package/dist/bundle/server-GGXUR5BZ.js +78 -0
  120. package/dist/bundle/{server-FBRRRKCS.js → server-GII7NIKF.js} +53 -53
  121. package/dist/bundle/{sqlite-runtime-LWATDAAU.js → sqlite-runtime-KFDYJTUO.js} +6 -6
  122. package/dist/bundle/{state-3AFJL2EL.js → state-76OJSCQC.js} +6 -6
  123. package/dist/bundle/{store-6TLYL2VU.js → store-2KJS4YMH.js} +18 -18
  124. package/dist/bundle/{store-PEXV5DNA.js → store-FBP2J23G.js} +20 -20
  125. package/dist/bundle/store-maintenance-command-NUWOUZ62.js +65 -0
  126. package/dist/bundle/surface-EGSHCISG.js +64 -0
  127. package/dist/bundle/tg.js +13 -13
  128. package/dist/version.d.ts +1 -1
  129. package/dist/version.js +1 -1
  130. package/package.json +3 -3
  131. package/skills/tg-cli/SKILL.md +5 -4
  132. package/skills/tg-cli/references/search.md +2 -2
  133. package/dist/bundle/agent-G7VHOJMS.js +0 -37
  134. package/dist/bundle/command-contract-LEFXJAA3.js +0 -37
  135. package/dist/bundle/first-screen-VUE6RCSF.js +0 -37
  136. package/dist/bundle/meeting-combined-PBNPHOM3.js +0 -23
  137. package/dist/bundle/server-TA4QP7PG.js +0 -78
  138. package/dist/bundle/store-maintenance-command-IYJLUQ5X.js +0 -65
  139. package/dist/bundle/surface-L4VY4WFG.js +0 -64
@@ -3,12 +3,12 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  answerOf,
5
5
  messengerContext
6
- } from "./chunk-XS4EE7MO.js";
6
+ } from "./chunk-IOJOLV25.js";
7
7
  import {
8
8
  chatEventAnswer,
9
9
  memberAnswer,
10
10
  pollVoteAnswer
11
- } from "./chunk-7GGDCQJ5.js";
11
+ } from "./chunk-RHJ2VGHV.js";
12
12
  import {
13
13
  FETCHING,
14
14
  RULES_VERSION,
@@ -25,7 +25,7 @@ import {
25
25
  servicesFor,
26
26
  syncsOneChat,
27
27
  withTimeLimit
28
- } from "./chunk-YHTSJMZ5.js";
28
+ } from "./chunk-BXUMZWMN.js";
29
29
  import {
30
30
  stringWidth,
31
31
  wrapAnsi
@@ -33,19 +33,20 @@ import {
33
33
  import {
34
34
  holdLock,
35
35
  lockPath,
36
+ markCurrent,
36
37
  releaseLock,
37
38
  servingProfiles,
38
39
  takeLock
39
- } from "./chunk-HETHFOHC.js";
40
+ } from "./chunk-AMRMU23L.js";
40
41
  import {
41
42
  serveRelay
42
- } from "./chunk-PRM7GKBV.js";
43
+ } from "./chunk-5CEKH6R6.js";
43
44
  import {
44
45
  capability,
45
46
  queryTerms,
46
47
  typedQuery,
47
48
  withQuery
48
- } from "./chunk-QYRK4XXH.js";
49
+ } from "./chunk-ZCDRXKCR.js";
49
50
  import {
50
51
  QUICK_HEALTH_CHECKS,
51
52
  fts5Tables,
@@ -53,10 +54,10 @@ import {
53
54
  lossUnknown,
54
55
  storeDamageReport,
55
56
  storeHealth
56
- } from "./chunk-O3QBO6NW.js";
57
+ } from "./chunk-OQJURSRL.js";
57
58
  import {
58
59
  readSecret
59
- } from "./chunk-NUD4CBHK.js";
60
+ } from "./chunk-MDI7554C.js";
60
61
  import {
61
62
  CORPORA,
62
63
  MIGRATIONS,
@@ -94,10 +95,10 @@ import {
94
95
  storeClients,
95
96
  storeContents,
96
97
  vectorIndexCounts
97
- } from "./chunk-4R2ZJGFF.js";
98
+ } from "./chunk-NVWZ7S3I.js";
98
99
  import {
99
100
  openCache
100
- } from "./chunk-L4PNDW4S.js";
101
+ } from "./chunk-7GWOGEWJ.js";
101
102
  import {
102
103
  Command,
103
104
  LOCAL_READ,
@@ -125,14 +126,14 @@ import {
125
126
  snakeKeys,
126
127
  storeTable,
127
128
  withoutProviderRefs
128
- } from "./chunk-CDKXZLMP.js";
129
+ } from "./chunk-W6A2OZ3C.js";
129
130
  import {
130
131
  holdersOf
131
- } from "./chunk-K5FK6WWN.js";
132
+ } from "./chunk-N7F5KT6U.js";
132
133
  import {
133
134
  modelAddressAllowed,
134
135
  onThisComputer
135
- } from "./chunk-4X6BX3XP.js";
136
+ } from "./chunk-XB6O445X.js";
136
137
  import {
137
138
  currentRun,
138
139
  formatLocator,
@@ -141,28 +142,28 @@ import {
141
142
  readHealthMark,
142
143
  readJournalMark,
143
144
  recordDeepCheck
144
- } from "./chunk-HD7DV5B2.js";
145
+ } from "./chunk-4CLSIEWN.js";
145
146
  import {
146
147
  failureKey,
147
148
  isStoreDamage
148
- } from "./chunk-WPXVJGSL.js";
149
+ } from "./chunk-RZ7POTFA.js";
149
150
  import {
150
151
  readSharedSection,
151
152
  sharedConfigPath,
152
153
  writeSharedSection
153
- } from "./chunk-77E7Q4EQ.js";
154
+ } from "./chunk-YMRL7MYS.js";
154
155
  import {
155
156
  queryFieldsOf
156
- } from "./chunk-NYEVPAF2.js";
157
+ } from "./chunk-QD4MTOI7.js";
157
158
  import {
158
159
  storePath
159
- } from "./chunk-XVRLD3LN.js";
160
+ } from "./chunk-2OFCIF2W.js";
160
161
  import {
161
162
  Credentials,
162
163
  isMovedRun,
163
164
  resolvePaths,
164
165
  writeSecurely
165
- } from "./chunk-6UNLEQA5.js";
166
+ } from "./chunk-R2G3MWEF.js";
166
167
  import {
167
168
  array,
168
169
  boolean,
@@ -184,12 +185,12 @@ import {
184
185
  string,
185
186
  transform,
186
187
  trim
187
- } from "./chunk-SPXNI53Z.js";
188
+ } from "./chunk-RXBKVNOK.js";
188
189
  import {
189
190
  CliError,
190
191
  singleLine,
191
192
  visibleControls
192
- } from "./chunk-PK5WEGPJ.js";
193
+ } from "./chunk-GCUFGDKE.js";
193
194
  import {
194
195
  __commonJS,
195
196
  __name,
@@ -5529,11 +5530,11 @@ var require_liquid_node = __commonJS({
5529
5530
  }
5530
5531
  });
5531
5532
 
5532
- // node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
5533
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
5533
5534
  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";
5534
5535
  import { dirname as dirname3, resolve } from "node:path";
5535
5536
 
5536
- // node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/sealed.js
5537
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/sealed.js
5537
5538
  import { createCipheriv, createDecipheriv, createHash, randomBytes, scrypt, timingSafeEqual } from "node:crypto";
5538
5539
  import { closeSync, createReadStream, createWriteStream, existsSync, openSync, readSync, renameSync, rmSync, statSync } from "node:fs";
5539
5540
  import { Transform } from "node:stream";
@@ -5640,7 +5641,7 @@ var unsealFile = /* @__PURE__ */ __name(async (from, to, password) => {
5640
5641
  renameSync(pending, to);
5641
5642
  }, "unsealFile");
5642
5643
 
5643
- // node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/store/compatibility.js
5644
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/store/compatibility.js
5644
5645
  var SPEAKS = MIGRATIONS.at(-1)?.version ?? 0;
5645
5646
  var fileSchemaOf = /* @__PURE__ */ __name((database) => {
5646
5647
  const tracked = database.prepare("SELECT 1 FROM sqlite_master WHERE name = 'schema_migrations'").get();
@@ -5664,7 +5665,7 @@ var compatibilityOf = /* @__PURE__ */ __name((file2, migrations = MIGRATIONS) =>
5664
5665
  };
5665
5666
  }, "compatibilityOf");
5666
5667
 
5667
- // node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/store/repair.js
5668
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/store/repair.js
5668
5669
  import { createHash as createHash2 } from "node:crypto";
5669
5670
  var COPY_MARK = "__repair_";
5670
5671
  var COPY_NAME = /__repair_[0-9a-f]{8}(_\d+)?$/;
@@ -5918,19 +5919,19 @@ var deleteCopy = /* @__PURE__ */ __name((database, name) => {
5918
5919
  return found;
5919
5920
  }, "deleteCopy");
5920
5921
 
5921
- // node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/cli/store-info.js
5922
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/cli/store-info.js
5922
5923
  import { existsSync as existsSync4, statSync as statSync3 } from "node:fs";
5923
5924
 
5924
- // node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/cli/store-recover.js
5925
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/cli/store-recover.js
5925
5926
  import { existsSync as existsSync3 } from "node:fs";
5926
5927
 
5927
- // node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/store/recover.js
5928
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/store/recover.js
5928
5929
  import { execFileSync, spawn } from "node:child_process";
5929
5930
  import { existsSync as existsSync2, readFileSync, realpathSync, renameSync as renameSync2, rmSync as rmSync2, statfsSync, statSync as statSync2, writeFileSync } from "node:fs";
5930
5931
  import { basename, dirname, join } from "node:path";
5931
5932
  import { Transform as Transform2 } from "node:stream";
5932
5933
 
5933
- // node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/store/refill.js
5934
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/store/refill.js
5934
5935
  var REFILL_MARGIN_MS = 864e5;
5935
5936
  var TIME_KEYS = 1e12;
5936
5937
  var integerId = `external_id GLOB '[0-9]*' AND NOT external_id GLOB '*[^0-9]*'`;
@@ -6010,7 +6011,7 @@ var forgetMail = /* @__PURE__ */ __name((database, cutoff, now) => {
6010
6011
  return [...folders].map(([account, count3]) => ({ account, folders: count3 }));
6011
6012
  }, "forgetMail");
6012
6013
 
6013
- // node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/store/recover.js
6014
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/store/recover.js
6014
6015
  var SQLITE3_MINIMUM = [3, 43, 0];
6015
6016
  var STORE_PARTS = ["", "-wal", "-shm"];
6016
6017
  var RECOVER_LOCK = ".recover-lock";
@@ -6541,7 +6542,7 @@ var recoverLocked = /* @__PURE__ */ __name(async ({ path, command, version, sqli
6541
6542
  }
6542
6543
  }, "recoverLocked");
6543
6544
 
6544
- // node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/cli/store-recover.js
6545
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/cli/store-recover.js
6545
6546
  var COUNTED = [
6546
6547
  "accounts",
6547
6548
  "chats",
@@ -6697,7 +6698,7 @@ var storeRecoverCommand = /* @__PURE__ */ __name(({ command, version }) => {
6697
6698
  return recover;
6698
6699
  }, "storeRecoverCommand");
6699
6700
 
6700
- // node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/cli/store-info.js
6701
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/cli/store-info.js
6701
6702
  var pendingIfKnown = /* @__PURE__ */ __name((database) => database.prepare("SELECT 1 FROM pragma_table_info('messages') WHERE name = 'normalized_text'").get() ? pendingNormalization(database) : null, "pendingIfKnown");
6702
6703
  var bytesOf = /* @__PURE__ */ __name((path) => existsSync4(path) ? statSync3(path).size : 0, "bytesOf");
6703
6704
  var messageOf = /* @__PURE__ */ __name((error) => error instanceof Error ? error.message : String(error), "messageOf");
@@ -6743,7 +6744,7 @@ var storeInfoCommand = /* @__PURE__ */ __name(() => annotate(new Command("info")
6743
6744
  renderAnswer(this, outputFor(this), itemOf(answer));
6744
6745
  }), "storeInfoCommand");
6745
6746
 
6746
- // node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/cli/messenger/password.js
6747
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/cli/messenger/password.js
6747
6748
  var ENCRYPT_OPTION = [
6748
6749
  "--encrypt",
6749
6750
  "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"
@@ -6762,7 +6763,7 @@ var passwordOf = /* @__PURE__ */ __name(async (command, { twice }) => {
6762
6763
  return password;
6763
6764
  }, "passwordOf");
6764
6765
 
6765
- // node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/replies/rules.js
6766
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/replies/rules.js
6766
6767
  import { existsSync as existsSync5, readFileSync as readFileSync2 } from "node:fs";
6767
6768
  import { join as join2 } from "node:path";
6768
6769
  var REPLY_ACTIONS = ["reply", "task"];
@@ -6933,7 +6934,7 @@ var problem = /* @__PURE__ */ __name((issue) => {
6933
6934
  }, "problem");
6934
6935
  var broken = /* @__PURE__ */ __name((path, why) => new CliError("configuration_error", `the reply rules ${path} cannot be read (${why}) \u2014 fix the file`), "broken");
6935
6936
 
6936
- // node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/replies/state.js
6937
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/replies/state.js
6937
6938
  import { existsSync as existsSync6, readFileSync as readFileSync3 } from "node:fs";
6938
6939
  import { join as join3 } from "node:path";
6939
6940
  var ANSWERED_KEPT = 1e3;
@@ -6986,7 +6987,7 @@ var recordReply = /* @__PURE__ */ __name((state, rule2, message, now) => {
6986
6987
  }, "recordReply");
6987
6988
  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");
6988
6989
 
6989
- // node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/replies/decide.js
6990
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/replies/decide.js
6990
6991
  var skip = /* @__PURE__ */ __name((why) => ({ skip: why }), "skip");
6991
6992
  var decide = /* @__PURE__ */ __name((rule2, incoming, state, now) => {
6992
6993
  const { message, chat, owner, sender } = incoming;
@@ -7092,10 +7093,10 @@ var filled = /* @__PURE__ */ __name((template2, senderName) => {
7092
7093
  return template2.replaceAll("{firstName}", name.split(/\s+/)[0] ?? name).replaceAll("{name}", name);
7093
7094
  }, "filled");
7094
7095
 
7095
- // node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/replies/template.js
7096
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/replies/template.js
7096
7097
  var import_liquidjs2 = __toESM(require_liquid_node(), 1);
7097
7098
 
7098
- // node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/render/liquid.js
7099
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/render/liquid.js
7099
7100
  var import_liquidjs = __toESM(require_liquid_node(), 1);
7100
7101
  var safeLiquid = /* @__PURE__ */ __name((limits) => {
7101
7102
  const engine = new import_liquidjs.Liquid({
@@ -7122,7 +7123,7 @@ var safeLiquid = /* @__PURE__ */ __name((limits) => {
7122
7123
  return engine;
7123
7124
  }, "safeLiquid");
7124
7125
 
7125
- // node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/replies/template.js
7126
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/replies/template.js
7126
7127
  var TEMPLATE_LIMITS = {
7127
7128
  parse: 32768,
7128
7129
  renders: 2e3,
@@ -7261,7 +7262,7 @@ var renderReplyTemplate = /* @__PURE__ */ __name(async (reply, input) => {
7261
7262
  }
7262
7263
  }, "renderReplyTemplate");
7263
7264
 
7264
- // node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/replies/dry-run.js
7265
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/replies/dry-run.js
7265
7266
  var DRY_RUN_DAYS = 7;
7266
7267
  var PAGE = 500;
7267
7268
  var dryRun = /* @__PURE__ */ __name(async (store, account, rules, { since, until = Date.now(), only, audience, render }) => {
@@ -7375,7 +7376,7 @@ var storedSince = /* @__PURE__ */ __name(async (store, account, chat, since) =>
7375
7376
  }
7376
7377
  }, "storedSince");
7377
7378
 
7378
- // node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/models/ai.js
7379
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/models/ai.js
7379
7380
  var AI_PROVIDERS = ["anthropic", "openai", "ollama"];
7380
7381
  var DEFAULT_BASE_URL = {
7381
7382
  anthropic: "https://api.anthropic.com",
@@ -7525,7 +7526,7 @@ var checkAi = /* @__PURE__ */ __name(async (deps) => {
7525
7526
  }
7526
7527
  }, "checkAi");
7527
7528
 
7528
- // node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/models/purpose.js
7529
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/models/purpose.js
7529
7530
  var HOSTED = {
7530
7531
  openai: "https://api.openai.com/v1",
7531
7532
  anthropic: "https://api.anthropic.com"
@@ -7546,7 +7547,7 @@ var purposeModel = /* @__PURE__ */ __name((settings, purpose, deps) => {
7546
7547
  return shared ? { target: shared.target, key: /* @__PURE__ */ __name(() => shared.key, "key"), shared: shared.setting } : void 0;
7547
7548
  }, "purposeModel");
7548
7549
 
7549
- // node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/replies/consents.js
7550
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/replies/consents.js
7550
7551
  import { existsSync as existsSync7, readFileSync as readFileSync4 } from "node:fs";
7551
7552
  import { join as join4 } from "node:path";
7552
7553
  var shape = strictObject({
@@ -7571,7 +7572,7 @@ var mayModelReply = /* @__PURE__ */ __name((path, provider, chat) => {
7571
7572
  return consent.provider === provider && !consent.deniedChats.includes(chat);
7572
7573
  }, "mayModelReply");
7573
7574
 
7574
- // node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/replies/rendering.js
7575
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/replies/rendering.js
7575
7576
  var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, options = {
7576
7577
  ai: true
7577
7578
  }) => async (rule2, message, chat, now) => {
@@ -7619,7 +7620,7 @@ var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, o
7619
7620
  return result2;
7620
7621
  }, "replyRenderer");
7621
7622
 
7622
- // node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/replies/serve.js
7623
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/replies/serve.js
7623
7624
  var NOT_ALLOWED = "replies.send is not allow";
7624
7625
  var NO_RULES = "no rules";
7625
7626
  var ONLY_TASK = "opened a task, sent nothing";
@@ -7712,7 +7713,7 @@ var replyTo = /* @__PURE__ */ __name(async (deps, message) => {
7712
7713
  return { skip: why };
7713
7714
  }, "replyTo");
7714
7715
 
7715
- // node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-catch-up.js
7716
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-catch-up.js
7716
7717
  var START_SYNC_DELAY_MS = 3e4;
7717
7718
  var START_SYNC_BUDGET_MS = 5 * 6e4;
7718
7719
  var START_SYNC_WINDOW_MS = 7 * 864e5;
@@ -7789,7 +7790,7 @@ var startSync = /* @__PURE__ */ __name(({ chats, newestHeld, fetch, note, warn,
7789
7790
  };
7790
7791
  }, "startSync");
7791
7792
 
7792
- // node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-members.js
7793
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-members.js
7793
7794
  var FIRST_FETCH_MS = 6e4;
7794
7795
  var DAY_MS = 864e5;
7795
7796
  var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch, warn, firstMs = FIRST_FETCH_MS, everyMs = DAY_MS }) => {
@@ -7843,7 +7844,7 @@ var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch, warn, firstMs =
7843
7844
  };
7844
7845
  }, "memberFetches");
7845
7846
 
7846
- // node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-notice.js
7847
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-notice.js
7847
7848
  var record2 = /* @__PURE__ */ __name((context, app, severity, attributes) => recordLogFor(context.streams.diagnostic, app, { command: currentRun().command || "serve" })[severity](attributes), "record");
7848
7849
  var noticeFor = /* @__PURE__ */ __name((context, app, severity = "warn") => ({ text, ...attributes }) => {
7849
7850
  if (context.format === "pretty") {
@@ -7876,7 +7877,7 @@ var recordDiagnostics = /* @__PURE__ */ __name((context, app) => {
7876
7877
  return context;
7877
7878
  }, "recordDiagnostics");
7878
7879
 
7879
- // node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-outdated.js
7880
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-outdated.js
7880
7881
  import { existsSync as existsSync8, readFileSync as readFileSync5, realpathSync as realpathSync2 } from "node:fs";
7881
7882
  import { dirname as dirname2, join as join5 } from "node:path";
7882
7883
  var OUTDATED_CHECK_MS = 6e4;
@@ -7962,7 +7963,7 @@ var watchOutdated = /* @__PURE__ */ __name(({ check: check2, onOutdated, everyMs
7962
7963
  };
7963
7964
  }, "watchOutdated");
7964
7965
 
7965
- // node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-stems.js
7966
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-stems.js
7966
7967
  var STEMS_EVERY_MS = 3e4;
7967
7968
  var STEMS_SLICE_MS = 2e3;
7968
7969
  var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY_MS, sliceMs = STEMS_SLICE_MS }) => {
@@ -8002,7 +8003,7 @@ var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY
8002
8003
  };
8003
8004
  }, "stemFills");
8004
8005
 
8005
- // node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/render/messages.js
8006
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/render/messages.js
8006
8007
  import { styleText } from "node:util";
8007
8008
  var TIME_WIDTH = 8;
8008
8009
  var INDENT = " ".repeat(TIME_WIDTH + 2);
@@ -8178,7 +8179,7 @@ var editedAt = /* @__PURE__ */ __name((message, options) => {
8178
8179
  return day(edited) === day(message.timestamp) ? time : `${day(edited)} ${time}`;
8179
8180
  }, "editedAt");
8180
8181
 
8181
- // node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/cli/messenger/message-items.js
8182
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/cli/messenger/message-items.js
8182
8183
  var defined = /* @__PURE__ */ __name((value) => Object.fromEntries(Object.entries(value).filter(([, one]) => one !== void 0)), "defined");
8183
8184
  var attachmentItem = /* @__PURE__ */ __name((attachment) => defined({
8184
8185
  kind: attachment.kind,
@@ -8274,7 +8275,7 @@ var viewOf = /* @__PURE__ */ __name((context, messenger) => ({
8274
8275
  locale: messenger.app.locale
8275
8276
  }), "viewOf");
8276
8277
 
8277
- // node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-answers.js
8278
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-answers.js
8278
8279
  var observed = /* @__PURE__ */ __name((value) => ({
8279
8280
  value: value.value,
8280
8281
  observed_at: value.observedAt,
@@ -8341,7 +8342,7 @@ var watchEventItem = /* @__PURE__ */ __name((value, account) => {
8341
8342
  }
8342
8343
  }, "watchEventItem");
8343
8344
 
8344
- // node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-command.js
8345
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-command.js
8345
8346
  var watchCommand = /* @__PURE__ */ __name((messenger) => annotate(new Command("watch"), {
8346
8347
  output: { entity: "watch_item" },
8347
8348
  effects: REMOTE_READ,
@@ -8496,7 +8497,8 @@ var describe = /* @__PURE__ */ __name((event, render) => {
8496
8497
  }
8497
8498
  }, "describe");
8498
8499
 
8499
- // node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-command.js
8500
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-command.js
8501
+ var CURRENT_EVERY_MS = 6e4;
8500
8502
  var serveCommand = /* @__PURE__ */ __name((messenger) => {
8501
8503
  const command = annotate(new Command("serve"), {
8502
8504
  output: { entity: "serve_summary" },
@@ -8519,9 +8521,18 @@ var serveCommand = /* @__PURE__ */ __name((messenger) => {
8519
8521
  throw new CliError("validation_error", `${messenger.app.command} serve is already running for profile ${context.profile} (PID ${held.pid}, since ${held.startedAt})`);
8520
8522
  }
8521
8523
  let relaying;
8524
+ let current;
8525
+ const stamp = /* @__PURE__ */ __name(() => {
8526
+ try {
8527
+ markCurrent(path);
8528
+ } catch {
8529
+ }
8530
+ }, "stamp");
8522
8531
  const onReady = /* @__PURE__ */ __name(() => {
8523
8532
  const listening2 = { pid: process.pid, startedAt, version, listeningAt: (/* @__PURE__ */ new Date()).toISOString() };
8524
8533
  holdLock(path, listening2);
8534
+ stamp();
8535
+ current ??= setInterval(stamp, CURRENT_EVERY_MS).unref();
8525
8536
  note({
8526
8537
  code: "listening",
8527
8538
  text: `listening for profile ${context.profile}, catching up on what arrived while it was down`
@@ -8642,6 +8653,10 @@ var serveCommand = /* @__PURE__ */ __name((messenger) => {
8642
8653
  }, "connected")
8643
8654
  });
8644
8655
  } finally {
8656
+ if (current) {
8657
+ clearInterval(current);
8658
+ stamp();
8659
+ }
8645
8660
  watch.stop();
8646
8661
  await relaying;
8647
8662
  await relay?.close();
@@ -8782,7 +8797,7 @@ var tasking = /* @__PURE__ */ __name((context, warn) => {
8782
8797
  };
8783
8798
  }, "tasking");
8784
8799
 
8785
- // node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/cli/messenger/store-tables-command.js
8800
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/cli/messenger/store-tables-command.js
8786
8801
  import { existsSync as existsSync9 } from "node:fs";
8787
8802
  var PATH = "store tables list";
8788
8803
  var STORE_TABLES_QUERY = {
@@ -8825,7 +8840,7 @@ var storeTablesCommand = /* @__PURE__ */ __name((owner) => {
8825
8840
  return tables;
8826
8841
  }, "storeTablesCommand");
8827
8842
 
8828
- // node_modules/.pnpm/@wirecat+cli-core@0.714.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.122.0_commander@15_dd9fedf917a0d541ef7fdcdb0be0e64b/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
8843
+ // node_modules/.pnpm/@wirecat+cli-core@0.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
8829
8844
  var SEARCH_INDEXES = ["messages_fts", "chats_fts", "identities_fts"];
8830
8845
  var WORD_INDEX = "message_words";
8831
8846
  var schemaOf = /* @__PURE__ */ __name((database) => {