@wirecat/tg-cli 0.121.0 → 0.123.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 (106) hide show
  1. package/contracts/wirecat.json +15 -0
  2. package/dist/bin/tg.js +2 -2
  3. package/dist/bundle/{adapter-GVSBFSBY.js → adapter-GAOG65O2.js} +46 -46
  4. package/dist/bundle/{all-profiles-CTOGU4XR.js → all-profiles-HLE6PHNI.js} +8 -8
  5. package/dist/bundle/{anthropic-7472H6ES.js → anthropic-FZC4BS7T.js} +4 -4
  6. package/dist/bundle/{app-server-GZWV4NPR.js → app-server-SHZNMV27.js} +40 -40
  7. package/dist/bundle/{bot-api-PPVAKICN.js → bot-api-LRS2KMDE.js} +46 -46
  8. package/dist/bundle/{bot-history-7YY7MCR4.js → bot-history-IJ7ZZKW5.js} +16 -16
  9. package/dist/bundle/{bun-KCN62RMD.js → bun-FACL53HM.js} +2 -2
  10. package/dist/bundle/{bun-sqlite-2BNE56MY.js → bun-sqlite-B2MD7RTL.js} +8 -4
  11. package/dist/bundle/{chunk-BJTJBNR7.js → chunk-3BUQXB7B.js} +7 -7
  12. package/dist/bundle/{chunk-T7ONSJAA.js → chunk-3JISIGLP.js} +2 -2
  13. package/dist/bundle/{chunk-MKAKM3V7.js → chunk-3P7HWXDJ.js} +3 -3
  14. package/dist/bundle/{chunk-U6HEZPCR.js → chunk-3S6KZCZ7.js} +1 -1
  15. package/dist/bundle/{chunk-MAPJUOTD.js → chunk-4DCFLHLN.js} +3 -3
  16. package/dist/bundle/{chunk-6LRKWXCS.js → chunk-5IHYZ6ED.js} +11 -11
  17. package/dist/bundle/{chunk-7DPWVKYS.js → chunk-5R5HGV2J.js} +2 -2
  18. package/dist/bundle/{chunk-7UIMMQOV.js → chunk-6FK2Z75N.js} +2 -2
  19. package/dist/bundle/{chunk-CPDYPZIG.js → chunk-6KT5BTWL.js} +192 -153
  20. package/dist/bundle/{chunk-QQ264PXQ.js → chunk-7EFJHLKW.js} +1 -1
  21. package/dist/bundle/{chunk-NR7PGYPO.js → chunk-ADI5R2MM.js} +29 -29
  22. package/dist/bundle/{chunk-RZX7RDXY.js → chunk-B6G3TNN4.js} +14 -14
  23. package/dist/bundle/{chunk-M47CXY5J.js → chunk-BAB3ALHZ.js} +27 -24
  24. package/dist/bundle/{chunk-4HJCWFPN.js → chunk-BGUYYKS3.js} +48 -48
  25. package/dist/bundle/{chunk-3EGVR7OF.js → chunk-DEMGDKCX.js} +97 -81
  26. package/dist/bundle/{chunk-VAAZL6OD.js → chunk-E2Z4C6CQ.js} +2 -2
  27. package/dist/bundle/{chunk-ZSW7LN7T.js → chunk-EABZ2CUG.js} +15 -14
  28. package/dist/bundle/{chunk-M73VM67N.js → chunk-EISV5YWD.js} +1493 -1001
  29. package/dist/bundle/{chunk-24DWSW6H.js → chunk-ENEMZAIJ.js} +12 -11
  30. package/dist/bundle/{chunk-AYDLA27G.js → chunk-EOUUI5FI.js} +3 -3
  31. package/dist/bundle/{chunk-Y4CSR5RP.js → chunk-FFHX7VKP.js} +1 -1
  32. package/dist/bundle/{chunk-7I6YVQHW.js → chunk-HJLTWT52.js} +1 -1
  33. package/dist/bundle/{chunk-DG44ORQ3.js → chunk-I7K4OR5Q.js} +4 -4
  34. package/dist/bundle/chunk-KKMNMQMW.js +53 -0
  35. package/dist/bundle/{chunk-W77WC6ZK.js → chunk-MFN5MSIL.js} +3 -3
  36. package/dist/bundle/{chunk-KVW7LCZK.js → chunk-NYRAW4M5.js} +3 -3
  37. package/dist/bundle/chunk-OE5JMZSM.js +185 -0
  38. package/dist/bundle/{chunk-R6KXHBMW.js → chunk-OOWE2O5U.js} +1 -1
  39. package/dist/bundle/{chunk-YRY752BB.js → chunk-PAHSIORC.js} +5 -5
  40. package/dist/bundle/{chunk-3E35VJME.js → chunk-PZJXQMSZ.js} +1 -1
  41. package/dist/bundle/{chunk-KKD5ZPGD.js → chunk-PZQ2MQFX.js} +5 -5
  42. package/dist/bundle/{chunk-TEMCXODM.js → chunk-Q74XVJFT.js} +1 -1
  43. package/dist/bundle/{chunk-CMEWPXKU.js → chunk-QLB3BFSN.js} +1 -1
  44. package/dist/bundle/{chunk-S7P5X23R.js → chunk-QLXKWAET.js} +38 -11
  45. package/dist/bundle/{chunk-PLBEUSZP.js → chunk-QVMAZVSN.js} +1 -1
  46. package/dist/bundle/{chunk-YMJKHMHX.js → chunk-RDKPKS2P.js} +1 -1
  47. package/dist/bundle/{chunk-ESLV57MC.js → chunk-SCGCDLI7.js} +1 -1
  48. package/dist/bundle/{chunk-WGGSFGNZ.js → chunk-SMFUKHG2.js} +24 -0
  49. package/dist/bundle/{chunk-3HNI6GI7.js → chunk-SNEJK4SN.js} +4 -4
  50. package/dist/bundle/{chunk-SHIHW2YN.js → chunk-STPYSD6W.js} +2 -2
  51. package/dist/bundle/{chunk-RPBO5XL3.js → chunk-SWGGYBCW.js} +13 -13
  52. package/dist/bundle/{chunk-SQWTUENZ.js → chunk-T5OO7VDT.js} +306 -261
  53. package/dist/bundle/{chunk-QNNUNGPL.js → chunk-U5FILNK6.js} +2 -2
  54. package/dist/bundle/{chunk-KPAUPIC3.js → chunk-UB6J5HRW.js} +3 -3
  55. package/dist/bundle/{chunk-VPNLTNQD.js → chunk-UBFDPLFQ.js} +5 -5
  56. package/dist/bundle/{chunk-DAK2J3FG.js → chunk-V23X3W2W.js} +7 -7
  57. package/dist/bundle/{chunk-QMNUQTA2.js → chunk-V4722KYX.js} +1 -1
  58. package/dist/bundle/{chunk-GB55EDOF.js → chunk-V4JEZFW5.js} +1 -1
  59. package/dist/bundle/{chunk-6SQAE7NM.js → chunk-VVRWH5VH.js} +7 -7
  60. package/dist/bundle/{chunk-4J34T6IQ.js → chunk-WA7YED3Y.js} +1 -1
  61. package/dist/bundle/{chunk-CLMRF6XR.js → chunk-WSLTW6MI.js} +2 -2
  62. package/dist/bundle/{chunk-5P43K3GL.js → chunk-XDL4L3OI.js} +24584 -23597
  63. package/dist/bundle/{chunk-7MXRFFIT.js → chunk-Z5HHBTS5.js} +2 -2
  64. package/dist/bundle/{chunk-LTAHG7BO.js → chunk-ZJPXRW65.js} +3 -3
  65. package/dist/bundle/{chunk-FATTEYZH.js → chunk-ZOBRYIUG.js} +1 -1
  66. package/dist/bundle/{chunk-FERGNQYA.js → chunk-ZQ3WGGKK.js} +12 -12
  67. package/dist/bundle/command-contract-HWSWHMO4.js +33 -0
  68. package/dist/bundle/{command-server-entry-37PKBJ5A.js → command-server-entry-5LKDRLEX.js} +69 -53
  69. package/dist/bundle/{decode-F7KC7WT4.js → decode-L4DQDHXA.js} +4 -4
  70. package/dist/bundle/{dispatch-U2DW6UI7.js → dispatch-PQSCFHEX.js} +1 -1
  71. package/dist/bundle/{echarts-4VYG66GX.js → echarts-6LES2JIV.js} +2 -2
  72. package/dist/bundle/{embed-ENZ6R4HF.js → embed-T5MLKX75.js} +5 -5
  73. package/dist/bundle/{embedder-4CBICMFO.js → embedder-56NMRLC5.js} +8 -8
  74. package/dist/bundle/{entry-XQ562EDO.js → entry-U5GV6Y46.js} +7 -7
  75. package/dist/bundle/{failure-HJD7S5UA.js → failure-BX5HJAQE.js} +1 -1
  76. package/dist/bundle/{first-run-PPXOC6ID.js → first-run-ISQ52V3I.js} +8 -8
  77. package/dist/bundle/first-screen-7L4AMZDO.js +31 -0
  78. package/dist/bundle/{instructions-XLCMJ5PJ.js → instructions-CJEXDI7E.js} +1 -1
  79. package/dist/bundle/{node-SSAC67R5.js → node-QLWTGZW7.js} +2 -2
  80. package/dist/bundle/{node-sqlite-SUUUSYSZ.js → node-sqlite-X2C3RR2Q.js} +9 -5
  81. package/dist/bundle/{oauth-2ZNHMPEX.js → oauth-VP3KMHLX.js} +6 -6
  82. package/dist/bundle/{open-EFNT7V2Q.js → open-GLR5EUZS.js} +4 -4
  83. package/dist/bundle/{openai-7STFVJXA.js → openai-6CDCJ5LQ.js} +12 -12
  84. package/dist/bundle/{process-63F4PNWH.js → process-7FABZ3T2.js} +1 -1
  85. package/dist/bundle/{program-C2E3TQNK.js → program-KUIAHJDX.js} +49 -49
  86. package/dist/bundle/{prompt-QPO7EKD5.js → prompt-XPHIZMD2.js} +4 -4
  87. package/dist/bundle/{proxy-transport-ENU2SJYT.js → proxy-transport-IIB7ZXIS.js} +4 -4
  88. package/dist/bundle/{recognize-MLXEHFYL.js → recognize-FVFYI3XX.js} +3 -3
  89. package/dist/bundle/{remote-DO7FLJEF.js → remote-3AMCG2P4.js} +6 -6
  90. package/dist/bundle/{rerank-W3WSBDAM.js → rerank-XV4E25ML.js} +6 -6
  91. package/dist/bundle/{serve-Z3TOTEMQ.js → serve-NVSZA4UN.js} +8 -8
  92. package/dist/bundle/{server-BYSOJCUA.js → server-MBMPHRJE.js} +31 -31
  93. package/dist/bundle/server-MHVGYRQZ.js +61 -0
  94. package/dist/bundle/{state-PKRPBCMY.js → state-JBMB2QUR.js} +5 -5
  95. package/dist/bundle/{store-Y4G7CNJT.js → store-T4SCYTY2.js} +11 -11
  96. package/dist/bundle/store-maintenance-command-F7WQMTMP.js +49 -0
  97. package/dist/bundle/tg.js +6 -6
  98. package/dist/version.d.ts +1 -1
  99. package/dist/version.js +1 -1
  100. package/package.json +2 -2
  101. package/dist/bundle/chunk-54KFRAHF.js +0 -35
  102. package/dist/bundle/chunk-GNGYV5NX.js +0 -116
  103. package/dist/bundle/command-contract-3W73W27G.js +0 -33
  104. package/dist/bundle/first-screen-JC6BYZYD.js +0 -31
  105. package/dist/bundle/server-IRUVLXD4.js +0 -61
  106. package/dist/bundle/store-maintenance-command-PHK43OSM.js +0 -49
@@ -4,7 +4,7 @@ import {
4
4
  ACCESS_SECONDS,
5
5
  REFRESH_SECONDS,
6
6
  readStored
7
- } from "./chunk-3HNI6GI7.js";
7
+ } from "./chunk-SNEJK4SN.js";
8
8
  import {
9
9
  OAuthError,
10
10
  OAuthErrorCode
@@ -13,7 +13,7 @@ import {
13
13
  __name
14
14
  } from "./chunk-ZVVMGPBJ.js";
15
15
 
16
- // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._325ff8c9daf4b8769887d5253d3c1255/node_modules/@wirecat/cli-core/dist/mcp/http/oauth.js
16
+ // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/mcp/http/oauth.js
17
17
  import { createHash, randomBytes, randomInt, timingSafeEqual } from "node:crypto";
18
18
  import { chmodSync, mkdirSync, renameSync, rmSync, writeFileSync } from "node:fs";
19
19
  import { dirname } from "node:path";
@@ -16,10 +16,10 @@ import {
16
16
  servicesFor,
17
17
  throughWrapper,
18
18
  withFileLockAsync
19
- } from "./chunk-SQWTUENZ.js";
19
+ } from "./chunk-T5OO7VDT.js";
20
20
  import {
21
21
  servingProfiles
22
- } from "./chunk-W77WC6ZK.js";
22
+ } from "./chunk-MFN5MSIL.js";
23
23
  import {
24
24
  chatReferenceOf,
25
25
  ensureAccount,
@@ -27,7 +27,7 @@ import {
27
27
  isId,
28
28
  openStore,
29
29
  pickPerson
30
- } from "./chunk-5P43K3GL.js";
30
+ } from "./chunk-XDL4L3OI.js";
31
31
  import {
32
32
  CEILING_KEY,
33
33
  WRITE_KEYS,
@@ -47,16 +47,16 @@ import {
47
47
  rememberAccount,
48
48
  rootOf2 as rootOf,
49
49
  skipFlagFor
50
- } from "./chunk-CPDYPZIG.js";
50
+ } from "./chunk-6KT5BTWL.js";
51
51
  import {
52
52
  providerErrorKey
53
- } from "./chunk-6SQAE7NM.js";
53
+ } from "./chunk-VVRWH5VH.js";
54
54
  import {
55
55
  isCliFailure
56
- } from "./chunk-7MXRFFIT.js";
56
+ } from "./chunk-Z5HHBTS5.js";
57
57
  import {
58
58
  resolvePaths
59
- } from "./chunk-U6HEZPCR.js";
59
+ } from "./chunk-3S6KZCZ7.js";
60
60
  import {
61
61
  CliError
62
62
  } from "./chunk-VUBZFMGP.js";
@@ -64,7 +64,7 @@ import {
64
64
  __name
65
65
  } from "./chunk-ZVVMGPBJ.js";
66
66
 
67
- // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._325ff8c9daf4b8769887d5253d3c1255/node_modules/@wirecat/cli-core/dist/cli/messenger/ask.js
67
+ // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/cli/messenger/ask.js
68
68
  import { openSync } from "node:fs";
69
69
  import { createInterface } from "node:readline";
70
70
  import { ReadStream } from "node:tty";
@@ -119,7 +119,7 @@ var terminalAsker = /* @__PURE__ */ __name((command) => async (key, request) =>
119
119
  throw new CliError("cancelled", `${key}: not done \u2014 the answer was no`);
120
120
  }, "terminalAsker");
121
121
 
122
- // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._325ff8c9daf4b8769887d5253d3c1255/node_modules/@wirecat/cli-core/dist/sends/pace.js
122
+ // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/sends/pace.js
123
123
  import { readFileSync, renameSync, writeFileSync } from "node:fs";
124
124
  import { join } from "node:path";
125
125
  var DEFAULT_PACE = { perMinute: 60, burst: 20 };
@@ -209,7 +209,7 @@ var waitForTurn = /* @__PURE__ */ __name(async (pacer, options) => {
209
209
  await (options.sleep ?? ((ms) => new Promise((resolve) => setTimeout(resolve, ms))))(waitMs);
210
210
  }, "waitForTurn");
211
211
 
212
- // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._325ff8c9daf4b8769887d5253d3c1255/node_modules/@wirecat/cli-core/dist/cli/permission-keys.js
212
+ // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/cli/permission-keys.js
213
213
  var pathOf = /* @__PURE__ */ __name((command) => {
214
214
  const words = [];
215
215
  for (let at = command; at?.parent; at = at.parent)
@@ -269,7 +269,7 @@ var refuseUnknownPermissionKeys = /* @__PURE__ */ __name((command, settings, too
269
269
  throw new CliError("validation_error", `--permission ${key} names no command`, { permission: key });
270
270
  }, "refuseUnknownPermissionKeys");
271
271
 
272
- // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._325ff8c9daf4b8769887d5253d3c1255/node_modules/@wirecat/cli-core/dist/cli/messenger/flooded.js
272
+ // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/cli/messenger/flooded.js
273
273
  var LONG_LIVED = /* @__PURE__ */ new Set(["self", "newSendId", "close", "formatMarkdown", "formatHtml", "storedChats"]);
274
274
  var LISTENING = /* @__PURE__ */ new Set(["watch", "feed", "listen", "listenHistory"]);
275
275
  var BLOCKING = /* @__PURE__ */ new Set(["frozen", "limited", "banned"]);
@@ -366,7 +366,7 @@ var flooded = /* @__PURE__ */ __name((messenger, memory, { name, warn, pacer })
366
366
  });
367
367
  }, "flooded");
368
368
 
369
- // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._325ff8c9daf4b8769887d5253d3c1255/node_modules/@wirecat/cli-core/dist/cli/messenger/observed.js
369
+ // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/cli/messenger/observed.js
370
370
  var observed = /* @__PURE__ */ __name((messenger, events) => {
371
371
  const timed = /* @__PURE__ */ __name(async (operation, named, work, after) => {
372
372
  const write = currentOperation();
@@ -465,7 +465,7 @@ var byPart = /* @__PURE__ */ __name((batch, counts) => {
465
465
  counts[part] = (counts[part] ?? 0) + items.length;
466
466
  }, "byPart");
467
467
 
468
- // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._325ff8c9daf4b8769887d5253d3c1255/node_modules/@wirecat/cli-core/dist/cli/messenger/stored.js
468
+ // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/cli/messenger/stored.js
469
469
  var REKEY_PACING = { lockMs: 50, pauseMs: 25 };
470
470
  var stored = /* @__PURE__ */ __name((messenger, { account, store, warn, events, pending, announcing, deletedWithoutChat, profile, rekeyed, rekeyPacing = REKEY_PACING, closing, namesFromStore, recipientIds, countsUnread = false, historyLimits, command = "cli" }) => {
471
471
  let warned = false;
@@ -1041,7 +1041,7 @@ var keep = /* @__PURE__ */ __name(async (store, account, event, seenAt, among, c
1041
1041
  }
1042
1042
  }, "keep");
1043
1043
 
1044
- // node_modules/.pnpm/@wirecat+cli-core@0.624.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._325ff8c9daf4b8769887d5253d3c1255/node_modules/@wirecat/cli-core/dist/cli/messenger/context.js
1044
+ // node_modules/.pnpm/@wirecat+cli-core@0.633.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._d745f308dd36458ab3f46a9ad7a22686/node_modules/@wirecat/cli-core/dist/cli/messenger/context.js
1045
1045
  var lazyStore = /* @__PURE__ */ __name((env, command, version) => {
1046
1046
  let opened;
1047
1047
  return {
@@ -1449,6 +1449,7 @@ export {
1449
1449
  knownBeside,
1450
1450
  unknownPermissionIssues,
1451
1451
  refuseUnknownPermissionKeys,
1452
+ fill,
1452
1453
  connectedFor,
1453
1454
  refuseLocalWrite,
1454
1455
  messengerContext