@wirecat/tg-cli 0.125.0 → 0.126.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-H2LTOLOA.js → adapter-BXU3AVB7.js} +43 -43
  3. package/dist/bundle/{all-profiles-75HGEFL7.js → all-profiles-G5A6IROO.js} +6 -6
  4. package/dist/bundle/{anthropic-N54MKE4C.js → anthropic-SINVEVEM.js} +2 -2
  5. package/dist/bundle/{app-server-3N5INKKI.js → app-server-IHIQXPJF.js} +42 -38
  6. package/dist/bundle/{bot-api-V65KTEAH.js → bot-api-LGAVVYRM.js} +44 -44
  7. package/dist/bundle/{bot-history-TT2EAHEE.js → bot-history-5C35FGCD.js} +12 -12
  8. package/dist/bundle/{bun-LN4J7PA7.js → bun-2GK3YOP3.js} +2 -2
  9. package/dist/bundle/{bun-sqlite-6PDBFBUI.js → bun-sqlite-7DGADK3E.js} +3 -3
  10. package/dist/bundle/{chunk-FHPEUAHQ.js → chunk-2F2UMQMB.js} +164 -152
  11. package/dist/bundle/{chunk-SGHF75RQ.js → chunk-2LN6OJUB.js} +1 -1
  12. package/dist/bundle/{chunk-RZ7KBWDQ.js → chunk-4GR5YYGA.js} +2 -2
  13. package/dist/bundle/{chunk-VHD4V64E.js → chunk-5GINYFD4.js} +1 -1
  14. package/dist/bundle/{chunk-IN3NAFUN.js → chunk-5NLAGTWU.js} +7 -7
  15. package/dist/bundle/{chunk-GUPMDMFM.js → chunk-63DSHUNP.js} +5 -5
  16. package/dist/bundle/{chunk-HHG5FR5H.js → chunk-7FL2N6DM.js} +1 -1
  17. package/dist/bundle/{chunk-RX5GU7GQ.js → chunk-7UACPXDC.js} +494 -436
  18. package/dist/bundle/{chunk-GRDVBJCR.js → chunk-AA2NZAUT.js} +1 -1
  19. package/dist/bundle/{chunk-QVK7NF3A.js → chunk-ACLUVZ4I.js} +32 -28
  20. package/dist/bundle/{chunk-QYT6HDCL.js → chunk-AKUBJHE5.js} +1 -1
  21. package/dist/bundle/{chunk-DYOZ7CUV.js → chunk-AYEQMXRE.js} +1 -1
  22. package/dist/bundle/{chunk-VG3EQJYV.js → chunk-AZ7DSHQO.js} +31 -2
  23. package/dist/bundle/{chunk-AI2J3WJT.js → chunk-BSKYPHLB.js} +1 -1
  24. package/dist/bundle/{chunk-FUYCAROL.js → chunk-CK7DSGIK.js} +5 -5
  25. package/dist/bundle/{chunk-VUBSGQ2O.js → chunk-DGGAYHLN.js} +24 -22
  26. package/dist/bundle/{chunk-E4HDE5DN.js → chunk-F34EE5Y2.js} +2 -2
  27. package/dist/bundle/{chunk-AMPHPP4P.js → chunk-FYOHGIQP.js} +13 -13
  28. package/dist/bundle/{chunk-UTNK2PFE.js → chunk-G4RCT5RH.js} +12 -12
  29. package/dist/bundle/{chunk-DI3RJ3MJ.js → chunk-G4VVBR6U.js} +3 -3
  30. package/dist/bundle/{chunk-FSP74THJ.js → chunk-GI2ZUNOH.js} +4 -4
  31. package/dist/bundle/{chunk-DNCOELTM.js → chunk-GIY56MIB.js} +1 -1
  32. package/dist/bundle/{chunk-UG66U2T7.js → chunk-GOGGRLS6.js} +19 -13
  33. package/dist/bundle/{chunk-BLNMM3AX.js → chunk-HPFB4Y7P.js} +1 -1
  34. package/dist/bundle/{chunk-MK4IKICN.js → chunk-J2BUWK5U.js} +2 -2
  35. package/dist/bundle/{chunk-JC6HMPL7.js → chunk-JAKP5RWM.js} +3694 -3590
  36. package/dist/bundle/{chunk-6Y6SSZ34.js → chunk-JQ2RKLPU.js} +129 -83
  37. package/dist/bundle/{chunk-ZX5OSZHH.js → chunk-K4DXGJK4.js} +10 -10
  38. package/dist/bundle/{chunk-JB4BO5XZ.js → chunk-KSLZEXRF.js} +1 -1
  39. package/dist/bundle/{chunk-3GILMKQ2.js → chunk-L5PYWQDA.js} +2 -2
  40. package/dist/bundle/{chunk-TAFH5K5D.js → chunk-MA2XHO4O.js} +273 -242
  41. package/dist/bundle/{chunk-PCC7GWOS.js → chunk-MP47TE77.js} +3 -3
  42. package/dist/bundle/{chunk-OG2ONSH6.js → chunk-N2JSMP4N.js} +16 -16
  43. package/dist/bundle/{chunk-B252D7V4.js → chunk-NJ3FSKSU.js} +4 -6
  44. package/dist/bundle/{chunk-TVQBOIWC.js → chunk-OXB5P37M.js} +1 -1
  45. package/dist/bundle/{chunk-4TCBRKWQ.js → chunk-P2GNIWGG.js} +6 -6
  46. package/dist/bundle/{chunk-77Z3OGAT.js → chunk-PJ6FZXUR.js} +2 -2
  47. package/dist/bundle/{chunk-JKF7LZBU.js → chunk-QCLMP635.js} +5 -5
  48. package/dist/bundle/{chunk-X6436BYW.js → chunk-QGLB4D7J.js} +1 -1
  49. package/dist/bundle/{chunk-37SZHAEA.js → chunk-QMEPKUG3.js} +51 -50
  50. package/dist/bundle/{chunk-7OBSIDBJ.js → chunk-QOINWAQD.js} +2 -2
  51. package/dist/bundle/{chunk-CNEJQQMD.js → chunk-QYLYMOXN.js} +11 -11
  52. package/dist/bundle/{chunk-INZAZMUF.js → chunk-RFDPU4NO.js} +9 -4
  53. package/dist/bundle/{chunk-WH4T44L3.js → chunk-SL4S5GFR.js} +1 -1
  54. package/dist/bundle/{chunk-LU2CHHPC.js → chunk-SXVB2CVR.js} +2 -2
  55. package/dist/bundle/{chunk-EIGV2JKX.js → chunk-UIFQEXVP.js} +1 -1
  56. package/dist/bundle/{chunk-JCNKGZQG.js → chunk-W35POPPX.js} +16 -16
  57. package/dist/bundle/{chunk-NTHALPDT.js → chunk-W725T2V7.js} +2 -1
  58. package/dist/bundle/{chunk-4KIOWSDL.js → chunk-W75SKUY4.js} +2 -2
  59. package/dist/bundle/{chunk-VZDAVZYX.js → chunk-XGBXRDJP.js} +5 -5
  60. package/dist/bundle/{chunk-6HLB73UN.js → chunk-Y4724JRR.js} +2 -2
  61. package/dist/bundle/{chunk-S4SOS27T.js → chunk-Y5DGB7GP.js} +7 -7
  62. package/dist/bundle/{chunk-XTNOBJRP.js → chunk-ZXCQF6XV.js} +10 -10
  63. package/dist/bundle/{command-contract-JP6SCP7U.js → command-contract-ZEYY3ZXK.js} +13 -13
  64. package/dist/bundle/{command-server-entry-BLSFT3T6.js → command-server-entry-UWY6PQIV.js} +20 -20
  65. package/dist/bundle/{decode-NNLEQU7B.js → decode-QGMFQ6XX.js} +2 -2
  66. package/dist/bundle/{echarts-XAZHGDOM.js → echarts-GHU3GEWV.js} +2 -2
  67. package/dist/bundle/{embed-Q7ZCVSCO.js → embed-6DMEWQDO.js} +3 -3
  68. package/dist/bundle/{embedder-MVS3PVWQ.js → embedder-W2L7YZPW.js} +6 -6
  69. package/dist/bundle/{entry-XN3ZZAOK.js → entry-LPEXVFQC.js} +6 -6
  70. package/dist/bundle/{first-run-G4EFTONI.js → first-run-3UJ6SJF5.js} +5 -5
  71. package/dist/bundle/{first-screen-RIDJEPC3.js → first-screen-VCSY5QH5.js} +14 -14
  72. package/dist/bundle/{instructions-QDHYYZBU.js → instructions-RUVAH2IS.js} +1 -1
  73. package/dist/bundle/{node-3Y7OVY2U.js → node-RYSNHVBX.js} +2 -2
  74. package/dist/bundle/{node-sqlite-R2SBROJM.js → node-sqlite-J6ZL4LUY.js} +4 -4
  75. package/dist/bundle/{oauth-WSPWMWTV.js → oauth-B2QNZNSC.js} +4 -4
  76. package/dist/bundle/{open-VFLF4HRQ.js → open-OMUP5P6V.js} +2 -2
  77. package/dist/bundle/{openai-DFCKZZDV.js → openai-BT4BP4VQ.js} +12 -12
  78. package/dist/bundle/{process-VZKFAGNP.js → process-HG3QDD54.js} +1 -1
  79. package/dist/bundle/{program-2LB3CUZX.js → program-P2VATMKJ.js} +46 -46
  80. package/dist/bundle/{prompt-RVLA2PEY.js → prompt-BTIHH3Z4.js} +2 -2
  81. package/dist/bundle/{recognize-LEKNA3G5.js → recognize-CTSJXPIG.js} +1 -1
  82. package/dist/bundle/{remote-WG5V2I2G.js → remote-2FIGCMKL.js} +6 -6
  83. package/dist/bundle/{rerank-ONAEQVJ6.js → rerank-TI5SLEF4.js} +4 -4
  84. package/dist/bundle/{serve-BL2X6FZG.js → serve-IO3IM5C7.js} +6 -6
  85. package/dist/bundle/server-RIGXUTKZ.js +62 -0
  86. package/dist/bundle/{server-3LSC4BMK.js → server-WEPFFTYA.js} +31 -29
  87. package/dist/bundle/{sqlite-runtime-RQXPRH6C.js → sqlite-runtime-CTEYXX7L.js} +3 -3
  88. package/dist/bundle/{state-O7LRA526.js → state-GFHVDGHM.js} +3 -3
  89. package/dist/bundle/{store-HMJUPK45.js → store-RCK6HT4F.js} +9 -9
  90. package/dist/bundle/{store-7C4UAND2.js → store-Y5XC4LEM.js} +11 -11
  91. package/dist/bundle/store-maintenance-command-XH6VMCDU.js +52 -0
  92. package/dist/bundle/tg.js +3 -3
  93. package/dist/version.d.ts +1 -1
  94. package/dist/version.js +1 -1
  95. package/package.json +2 -2
  96. package/dist/bundle/server-7EYEEGJT.js +0 -62
  97. package/dist/bundle/store-maintenance-command-I7PSA3SZ.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-AMPHPP4P.js";
6
+ } from "./chunk-FYOHGIQP.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-TAFH5K5D.js";
31
+ } from "./chunk-MA2XHO4O.js";
32
32
  import {
33
33
  holdLock,
34
34
  lockPath,
35
35
  releaseLock,
36
36
  servingProfiles,
37
37
  takeLock
38
- } from "./chunk-6HLB73UN.js";
38
+ } from "./chunk-Y4724JRR.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-JCNKGZQG.js";
46
+ } from "./chunk-W35POPPX.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-4KIOWSDL.js";
53
+ } from "./chunk-W75SKUY4.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-JC6HMPL7.js";
88
+ } from "./chunk-JAKP5RWM.js";
89
89
  import {
90
90
  openCache
91
- } from "./chunk-VZDAVZYX.js";
91
+ } from "./chunk-XGBXRDJP.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-FHPEUAHQ.js";
119
+ } from "./chunk-2F2UMQMB.js";
120
120
  import {
121
121
  holdersOf
122
- } from "./chunk-TVQBOIWC.js";
122
+ } from "./chunk-OXB5P37M.js";
123
123
  import {
124
124
  modelAddressAllowed,
125
125
  onThisComputer
126
- } from "./chunk-VG3EQJYV.js";
126
+ } from "./chunk-AZ7DSHQO.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-6Y6SSZ34.js";
136
+ } from "./chunk-JQ2RKLPU.js";
137
137
  import {
138
138
  failureKey,
139
139
  isStoreDamage
140
- } from "./chunk-77Z3OGAT.js";
140
+ } from "./chunk-PJ6FZXUR.js";
141
141
  import {
142
142
  readSharedSection,
143
143
  sharedConfigPath,
144
144
  writeSharedSection
145
- } from "./chunk-FUYCAROL.js";
145
+ } from "./chunk-CK7DSGIK.js";
146
146
  import {
147
147
  storePath
148
- } from "./chunk-NTHALPDT.js";
148
+ } from "./chunk-W725T2V7.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.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
5521
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/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.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/sealed.js
5525
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/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.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/store/compatibility.js
5632
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/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.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/store/repair.js
5656
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/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.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/cli/store-info.js
5910
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/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.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/cli/store-recover.js
5913
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/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.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/store/recover.js
5916
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/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.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/store/refill.js
5922
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/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.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/store/recover.js
6002
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/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.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/cli/store-recover.js
6530
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/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.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/cli/store-info.js
6686
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/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.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/cli/messenger/password.js
6732
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/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.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/replies/rules.js
6751
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/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.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/replies/state.js
6922
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/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.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/replies/decide.js
6975
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/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.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/replies/template.js
7081
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/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.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/render/liquid.js
7084
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/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.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/replies/template.js
7111
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/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.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/replies/dry-run.js
7250
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/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.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/models/ai.js
7364
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/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.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/models/purpose.js
7514
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/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.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/replies/consents.js
7535
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/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.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/replies/rendering.js
7560
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/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.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/replies/serve.js
7608
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/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.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-catch-up.js
7701
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/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.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-members.js
7778
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/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.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-notice.js
7832
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/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.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-outdated.js
7865
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/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.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-stems.js
7951
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/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.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/render/messages.js
7991
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/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.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/cli/messenger/message-items.js
8167
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/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.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-answers.js
8263
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/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.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-command.js
8330
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/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.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-command.js
8485
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/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" },
@@ -8765,7 +8765,7 @@ var tasking = /* @__PURE__ */ __name((context, warn) => {
8765
8765
  };
8766
8766
  }, "tasking");
8767
8767
 
8768
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/cli/messenger/store-tables-command.js
8768
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/cli/messenger/store-tables-command.js
8769
8769
  import { existsSync as existsSync9 } from "node:fs";
8770
8770
  var PATH = "store tables list";
8771
8771
  var STORE_TABLES_QUERY = {
@@ -8808,7 +8808,7 @@ var storeTablesCommand = /* @__PURE__ */ __name((owner) => {
8808
8808
  return tables;
8809
8809
  }, "storeTablesCommand");
8810
8810
 
8811
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
8811
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
8812
8812
  var SEARCH_INDEXES = ["messages_fts", "chats_fts", "identities_fts"];
8813
8813
  var WORD_INDEX = "message_words";
8814
8814
  var schemaOf = /* @__PURE__ */ __name((database) => {
@@ -9546,6 +9546,7 @@ export {
9546
9546
  replyModelIdentity,
9547
9547
  replyRenderer,
9548
9548
  DAY_MS,
9549
+ ownPackageRoot,
9549
9550
  renderMessages,
9550
9551
  messageItem,
9551
9552
  messageItems,
@@ -7,7 +7,7 @@ import {
7
7
  describeOptions,
8
8
  keyForCommand,
9
9
  metaOf
10
- } from "./chunk-FHPEUAHQ.js";
10
+ } from "./chunk-2F2UMQMB.js";
11
11
  import {
12
12
  jsonSchemaOf
13
13
  } from "./chunk-XS5C5TQ7.js";
@@ -18,7 +18,7 @@ import {
18
18
  __name
19
19
  } from "./chunk-ZVVMGPBJ.js";
20
20
 
21
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/cli/command-contract.js
21
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/cli/command-contract.js
22
22
  var SCHEMA_DIALECT = "https://json-schema.org/draft/2020-12/schema";
23
23
  var outputOf = /* @__PURE__ */ __name((command) => {
24
24
  const entity = answerEntitySchema(command);
@@ -13,7 +13,7 @@ import {
13
13
  privateFiles,
14
14
  providerRequest,
15
15
  withSqliteSidecars
16
- } from "./chunk-RX5GU7GQ.js";
16
+ } from "./chunk-7UACPXDC.js";
17
17
  import {
18
18
  parseProxy,
19
19
  proxyAddress,
@@ -23,26 +23,26 @@ import {
23
23
  } from "./chunk-URFBZNLU.js";
24
24
  import {
25
25
  messengerContext
26
- } from "./chunk-AMPHPP4P.js";
26
+ } from "./chunk-FYOHGIQP.js";
27
27
  import {
28
28
  uploadBlob
29
- } from "./chunk-TAFH5K5D.js";
29
+ } from "./chunk-MA2XHO4O.js";
30
30
  import {
31
31
  DESKTOP,
32
32
  TG
33
- } from "./chunk-HHG5FR5H.js";
33
+ } from "./chunk-7FL2N6DM.js";
34
34
  import {
35
35
  asFirstWord,
36
36
  environmentOf,
37
37
  fromFile,
38
38
  settingsFor
39
- } from "./chunk-FHPEUAHQ.js";
39
+ } from "./chunk-2F2UMQMB.js";
40
40
  import {
41
41
  hostFetch
42
- } from "./chunk-VG3EQJYV.js";
42
+ } from "./chunk-AZ7DSHQO.js";
43
43
  import {
44
44
  currentAttempt
45
- } from "./chunk-6Y6SSZ34.js";
45
+ } from "./chunk-JQ2RKLPU.js";
46
46
  import {
47
47
  Credentials,
48
48
  isMovedRun,
@@ -189,7 +189,7 @@ var logOut = /* @__PURE__ */ __name(async (profile, sessionPath, context) => {
189
189
  checks: checkWords("tg", profile),
190
190
  ...keyring ? { keyring } : {}
191
191
  });
192
- const { TelegramAdapter } = await import("./adapter-H2LTOLOA.js");
192
+ const { TelegramAdapter } = await import("./adapter-BXU3AVB7.js");
193
193
  const adapter = await TelegramAdapter.open({ credentials, sessionPath, ...through ? { proxy: through.proxy } : {} });
194
194
  try {
195
195
  await adapter.logout();
@@ -254,7 +254,7 @@ var telegramOf = /* @__PURE__ */ __name((command, base) => {
254
254
  throw new CliError(temporary ? "provider_unavailable" : "authentication_error", loggedIn ? `no Telegram app credentials found for profile "${profile}", although it has logged in on this machine \u2014 the keyring is probably out of reach (cron, ssh, an MCP client that trims the environment: set XDG_RUNTIME_DIR); \`tg ${asFirstWord(profile)}doctor\` shows it. Log in again only if they were removed` : `no Telegram app credentials for profile "${profile}" \u2014 run ${setup} in a local terminal first, or sign in from ${desktop}; agents: read \`tg skill show\``, temporary ? { reason: "credentials.unreachable" } : {});
255
255
  }
256
256
  const options = { credentials: resolved, sessionPath, ...connecting };
257
- return environment.adapter ? await environment.adapter(options) : await (await import("./adapter-H2LTOLOA.js")).TelegramAdapter.open({
257
+ return environment.adapter ? await environment.adapter(options) : await (await import("./adapter-BXU3AVB7.js")).TelegramAdapter.open({
258
258
  ...options,
259
259
  ...proxyOption(proxy()),
260
260
  diagnostic: /* @__PURE__ */ __name((line) => base.streams.diagnostic(line), "diagnostic"),
@@ -979,7 +979,7 @@ var TELEGRAM_BOT = {
979
979
  const botId = token.split(":", 1)[0] ?? "";
980
980
  if (!/^\d+$/.test(botId))
981
981
  throw new CliError("authentication_error", "the bot token has no valid bot id");
982
- const reader = await (environment.botHistory ?? (await import("./bot-history-TT2EAHEE.js")).openBotHistory)({
982
+ const reader = await (environment.botHistory ?? (await import("./bot-history-5C35FGCD.js")).openBotHistory)({
983
983
  credentials,
984
984
  sessionPath: botSessionFile(profile, botId, env),
985
985
  token,
@@ -999,7 +999,7 @@ var TELEGRAM_BOT = {
999
999
  return void 0;
1000
1000
  let personal;
1001
1001
  try {
1002
- personal = environment.adapter ? await environment.adapter({ credentials, sessionPath: personalPath }) : await (await import("./adapter-H2LTOLOA.js")).TelegramAdapter.open({
1002
+ personal = environment.adapter ? await environment.adapter({ credentials, sessionPath: personalPath }) : await (await import("./adapter-BXU3AVB7.js")).TelegramAdapter.open({
1003
1003
  credentials,
1004
1004
  sessionPath: personalPath,
1005
1005
  checks: words,
@@ -6,7 +6,7 @@ import {
6
6
  import {
7
7
  commandPathOf,
8
8
  outputOf
9
- } from "./chunk-7OBSIDBJ.js";
9
+ } from "./chunk-QOINWAQD.js";
10
10
  import {
11
11
  Command,
12
12
  Help,
@@ -17,7 +17,7 @@ import {
17
17
  environmentOf,
18
18
  metaOf,
19
19
  takesProfile
20
- } from "./chunk-FHPEUAHQ.js";
20
+ } from "./chunk-2F2UMQMB.js";
21
21
  import {
22
22
  writes
23
23
  } from "./chunk-XS5C5TQ7.js";
@@ -28,7 +28,7 @@ import {
28
28
  __name
29
29
  } from "./chunk-ZVVMGPBJ.js";
30
30
 
31
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/cli/help/command-help.js
31
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/cli/help/command-help.js
32
32
  var ARGUMENT_KINDS = {
33
33
  chat: "chat",
34
34
  chats: "chat",
@@ -221,7 +221,7 @@ var installCommandHelp = /* @__PURE__ */ __name((program, { profile = true } = {
221
221
  command.addHelpText("after", () => commandHelpText(command));
222
222
  }, "installCommandHelp");
223
223
 
224
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/cli/help/first-screen.js
224
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/cli/help/first-screen.js
225
225
  var WIRECAT_TOOLS = [
226
226
  {
227
227
  command: "tg",
@@ -268,6 +268,11 @@ var WIRECAT_TOOLS = [
268
268
  command: "b24",
269
269
  package: "@wirecat/bitrix24-cli",
270
270
  does: "Bitrix24 CRM: deals, leads and pipelines, searchable with your other WireCat data"
271
+ },
272
+ {
273
+ command: "pbx",
274
+ package: "@wirecat/asterisk-cli",
275
+ does: "Asterisk PBX calls and recordings, searchable with your other WireCat data"
271
276
  }
272
277
  ];
273
278
  var WIDTH = 100;
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/cli/stdin-field.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/cli/stdin-field.js
8
8
  var fields = /* @__PURE__ */ new WeakMap();
9
9
  var readsStdin = /* @__PURE__ */ __name((command, field) => {
10
10
  fields.set(command, field);
@@ -17,7 +17,7 @@ import {
17
17
  __name
18
18
  } from "./chunk-ZVVMGPBJ.js";
19
19
 
20
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/models/options.js
20
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/models/options.js
21
21
  var checkedOptions = /* @__PURE__ */ __name((provider, schema, options) => {
22
22
  const parsed = safeParse(schema, options);
23
23
  if (!parsed.success) {
@@ -27,7 +27,7 @@ var checkedOptions = /* @__PURE__ */ __name((provider, schema, options) => {
27
27
  }, "checkedOptions");
28
28
  var range = /* @__PURE__ */ __name((min, max) => optional(pipe(number(), finite(), minValue(min), maxValue(max))), "range");
29
29
 
30
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/models/types.js
30
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/models/types.js
31
31
  var MAX_MODEL_IMAGE_BYTES = 4 * 1024 * 1024;
32
32
  var validateImages = /* @__PURE__ */ __name((images) => {
33
33
  if (images === void 0)
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.650.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._f55ccfac747d9da64edfb69ea8dcc45a/node_modules/@wirecat/cli-core/dist/cli/command-server-argv.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._6e2e147598ef84d8ba691d078b64b926/node_modules/@wirecat/cli-core/dist/cli/command-server-argv.js
8
8
  var COMMAND_SERVER_ARGV = ["commands", "--serve"];
9
9
  var isCommandServer = /* @__PURE__ */ __name((args) => args.length === COMMAND_SERVER_ARGV.length && COMMAND_SERVER_ARGV.every((word, at) => args[at] === word), "isCommandServer");
10
10