@wirecat/tg-cli 0.121.0 → 0.122.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/tg.js +2 -2
- package/dist/bundle/{adapter-GVSBFSBY.js → adapter-ZI57T2L5.js} +41 -41
- package/dist/bundle/{all-profiles-CTOGU4XR.js → all-profiles-7VXJF42C.js} +6 -6
- package/dist/bundle/{anthropic-7472H6ES.js → anthropic-DKRXIWVV.js} +2 -2
- package/dist/bundle/{app-server-GZWV4NPR.js → app-server-F5MKHZ7S.js} +37 -37
- package/dist/bundle/{bot-api-PPVAKICN.js → bot-api-F24NWJT3.js} +42 -42
- package/dist/bundle/{bot-history-7YY7MCR4.js → bot-history-U3WM3A7S.js} +12 -12
- package/dist/bundle/{bun-KCN62RMD.js → bun-OMTJAXGK.js} +2 -2
- package/dist/bundle/{bun-sqlite-2BNE56MY.js → bun-sqlite-HSYLO46A.js} +2 -2
- package/dist/bundle/{chunk-7MXRFFIT.js → chunk-27SVHRHV.js} +2 -2
- package/dist/bundle/{chunk-6SQAE7NM.js → chunk-2FXA32RJ.js} +6 -6
- package/dist/bundle/{chunk-KPAUPIC3.js → chunk-2UHANFLM.js} +2 -2
- package/dist/bundle/{chunk-24DWSW6H.js → chunk-33ELXJRR.js} +11 -10
- package/dist/bundle/{chunk-3EGVR7OF.js → chunk-4MFMUBHH.js} +95 -79
- package/dist/bundle/{chunk-SHIHW2YN.js → chunk-4N2WJYLE.js} +2 -2
- package/dist/bundle/{chunk-SQWTUENZ.js → chunk-6DLRATDC.js} +242 -239
- package/dist/bundle/{chunk-QQ264PXQ.js → chunk-6LMEIELG.js} +1 -1
- package/dist/bundle/{chunk-AYDLA27G.js → chunk-7FWU4RON.js} +3 -3
- package/dist/bundle/{chunk-KKD5ZPGD.js → chunk-7GCVON7M.js} +5 -5
- package/dist/bundle/{chunk-TEMCXODM.js → chunk-7X6YLKTK.js} +1 -1
- package/dist/bundle/{chunk-ESLV57MC.js → chunk-ALW7ROTM.js} +1 -1
- package/dist/bundle/{chunk-MAPJUOTD.js → chunk-ARKB3M5X.js} +3 -3
- package/dist/bundle/{chunk-GB55EDOF.js → chunk-C5CB6RIX.js} +1 -1
- package/dist/bundle/{chunk-S7P5X23R.js → chunk-CB6AHU6H.js} +27 -9
- package/dist/bundle/{chunk-YMJKHMHX.js → chunk-CW3C7FSO.js} +1 -1
- package/dist/bundle/{chunk-QNNUNGPL.js → chunk-D3ODL4P7.js} +2 -2
- package/dist/bundle/{chunk-T7ONSJAA.js → chunk-DCGGZUNJ.js} +2 -2
- package/dist/bundle/{chunk-3HNI6GI7.js → chunk-DDSAJKPO.js} +4 -4
- package/dist/bundle/{chunk-7UIMMQOV.js → chunk-DTTONQW7.js} +1 -1
- package/dist/bundle/{chunk-VPNLTNQD.js → chunk-E3MFMMVY.js} +5 -5
- package/dist/bundle/{chunk-W77WC6ZK.js → chunk-FHWUOFWX.js} +2 -2
- package/dist/bundle/{chunk-5P43K3GL.js → chunk-FYHFAOPM.js} +1505 -1014
- package/dist/bundle/{chunk-ZSW7LN7T.js → chunk-FZKHFTKH.js} +13 -13
- package/dist/bundle/{chunk-CPDYPZIG.js → chunk-GJBGZQHN.js} +177 -151
- package/dist/bundle/{chunk-3E35VJME.js → chunk-GJFICFQB.js} +1 -1
- package/dist/bundle/{chunk-YRY752BB.js → chunk-HAR76KJG.js} +4 -4
- package/dist/bundle/{chunk-CLMRF6XR.js → chunk-LQRZUNYF.js} +2 -2
- package/dist/bundle/{chunk-LTAHG7BO.js → chunk-MFWWZ6XL.js} +2 -2
- package/dist/bundle/{chunk-NR7PGYPO.js → chunk-N7WDVH2O.js} +28 -28
- package/dist/bundle/{chunk-KVW7LCZK.js → chunk-NE3EGYPD.js} +3 -3
- package/dist/bundle/{chunk-RPBO5XL3.js → chunk-NU4RMUMQ.js} +10 -10
- package/dist/bundle/{chunk-CMEWPXKU.js → chunk-O5A4IS2D.js} +1 -1
- package/dist/bundle/{chunk-M47CXY5J.js → chunk-PG3V225O.js} +21 -21
- package/dist/bundle/{chunk-DAK2J3FG.js → chunk-QROAXWDU.js} +7 -7
- package/dist/bundle/{chunk-4HJCWFPN.js → chunk-R2IW6JBV.js} +46 -46
- package/dist/bundle/{chunk-FERGNQYA.js → chunk-RFFU6KQ5.js} +12 -12
- package/dist/bundle/{chunk-M73VM67N.js → chunk-SODUFMDW.js} +727 -382
- package/dist/bundle/{chunk-4J34T6IQ.js → chunk-TKJZENAZ.js} +1 -1
- package/dist/bundle/{chunk-QMNUQTA2.js → chunk-UGEYQWEO.js} +1 -1
- package/dist/bundle/chunk-V4BPS7MH.js +185 -0
- package/dist/bundle/{chunk-6LRKWXCS.js → chunk-VC6J7X76.js} +10 -10
- package/dist/bundle/{chunk-MKAKM3V7.js → chunk-VDFEWSCS.js} +2 -2
- package/dist/bundle/{chunk-Y4CSR5RP.js → chunk-VQL4RVXZ.js} +1 -1
- package/dist/bundle/{chunk-R6KXHBMW.js → chunk-W34QQMBK.js} +1 -1
- package/dist/bundle/{chunk-54KFRAHF.js → chunk-Y52T5EMB.js} +1 -1
- package/dist/bundle/{chunk-VAAZL6OD.js → chunk-Y74WJL3M.js} +2 -2
- package/dist/bundle/{chunk-PLBEUSZP.js → chunk-YDMKP7PO.js} +1 -1
- package/dist/bundle/{chunk-RZX7RDXY.js → chunk-YFEH7OWG.js} +12 -12
- package/dist/bundle/{chunk-DG44ORQ3.js → chunk-ZKHXWSKD.js} +4 -4
- package/dist/bundle/{chunk-BJTJBNR7.js → chunk-ZNPRTCUO.js} +6 -6
- package/dist/bundle/{command-contract-3W73W27G.js → command-contract-247AKZTE.js} +12 -12
- package/dist/bundle/{command-server-entry-37PKBJ5A.js → command-server-entry-N32NX4QW.js} +67 -51
- package/dist/bundle/{decode-F7KC7WT4.js → decode-ZKJWSFXF.js} +2 -2
- package/dist/bundle/{echarts-4VYG66GX.js → echarts-QLVLIP73.js} +2 -2
- package/dist/bundle/{embed-ENZ6R4HF.js → embed-LC6K7P3S.js} +3 -3
- package/dist/bundle/{embedder-4CBICMFO.js → embedder-6C3OQBOV.js} +6 -6
- package/dist/bundle/{entry-XQ562EDO.js → entry-5H6LB3MP.js} +5 -5
- package/dist/bundle/{first-run-PPXOC6ID.js → first-run-IOYQ4XQK.js} +5 -5
- package/dist/bundle/{first-screen-JC6BYZYD.js → first-screen-NVK7PFX4.js} +13 -13
- package/dist/bundle/{instructions-XLCMJ5PJ.js → instructions-SZUMEDY3.js} +1 -1
- package/dist/bundle/{node-SSAC67R5.js → node-V76RRFIA.js} +2 -2
- package/dist/bundle/{node-sqlite-SUUUSYSZ.js → node-sqlite-2DTVOT7L.js} +3 -3
- package/dist/bundle/{oauth-2ZNHMPEX.js → oauth-CT7EBDRY.js} +4 -4
- package/dist/bundle/{open-EFNT7V2Q.js → open-G3VHOOMV.js} +2 -2
- package/dist/bundle/{openai-7STFVJXA.js → openai-F4K7MVTZ.js} +10 -10
- package/dist/bundle/{process-63F4PNWH.js → process-XH3KEHSF.js} +1 -1
- package/dist/bundle/{program-C2E3TQNK.js → program-FLGIHTHM.js} +44 -44
- package/dist/bundle/{prompt-QPO7EKD5.js → prompt-JWQ6UQ6R.js} +2 -2
- package/dist/bundle/{recognize-MLXEHFYL.js → recognize-Z26T3SYD.js} +1 -1
- package/dist/bundle/{remote-DO7FLJEF.js → remote-7KHT6V3O.js} +4 -4
- package/dist/bundle/{rerank-W3WSBDAM.js → rerank-6QVI74QY.js} +4 -4
- package/dist/bundle/{serve-Z3TOTEMQ.js → serve-WYDZTONY.js} +6 -6
- package/dist/bundle/server-UXQT7LZT.js +61 -0
- package/dist/bundle/{server-BYSOJCUA.js → server-Y4J2NCFA.js} +28 -28
- package/dist/bundle/{state-PKRPBCMY.js → state-YCXBKOD2.js} +3 -3
- package/dist/bundle/{store-Y4G7CNJT.js → store-QECSDJRP.js} +9 -9
- package/dist/bundle/store-maintenance-command-5YW6TRJA.js +49 -0
- package/dist/bundle/tg.js +3 -3
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/dist/bundle/chunk-GNGYV5NX.js +0 -116
- package/dist/bundle/server-IRUVLXD4.js +0 -61
- package/dist/bundle/store-maintenance-command-PHK43OSM.js +0 -49
|
@@ -16,10 +16,10 @@ import {
|
|
|
16
16
|
servicesFor,
|
|
17
17
|
throughWrapper,
|
|
18
18
|
withFileLockAsync
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-6DLRATDC.js";
|
|
20
20
|
import {
|
|
21
21
|
servingProfiles
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-FHWUOFWX.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-
|
|
30
|
+
} from "./chunk-FYHFAOPM.js";
|
|
31
31
|
import {
|
|
32
32
|
CEILING_KEY,
|
|
33
33
|
WRITE_KEYS,
|
|
@@ -47,13 +47,13 @@ import {
|
|
|
47
47
|
rememberAccount,
|
|
48
48
|
rootOf2 as rootOf,
|
|
49
49
|
skipFlagFor
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-GJBGZQHN.js";
|
|
51
51
|
import {
|
|
52
52
|
providerErrorKey
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-2FXA32RJ.js";
|
|
54
54
|
import {
|
|
55
55
|
isCliFailure
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-27SVHRHV.js";
|
|
57
57
|
import {
|
|
58
58
|
resolvePaths
|
|
59
59
|
} from "./chunk-U6HEZPCR.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.
|
|
67
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/cli/messenger/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.
|
|
122
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/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.
|
|
212
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/cli/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.
|
|
272
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/cli/messenger/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.
|
|
369
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/cli/messenger/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.
|
|
468
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/cli/messenger/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.
|
|
1044
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.630.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.93.0_commander@15._c57a4ca23893bad5bbd6c181f9c73774/node_modules/@wirecat/cli-core/dist/cli/messenger/context.js
|
|
1045
1045
|
var lazyStore = /* @__PURE__ */ __name((env, command, version) => {
|
|
1046
1046
|
let opened;
|
|
1047
1047
|
return {
|