@wirecat/tg-cli 0.104.0 → 0.106.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-QTAHA2JC.js → adapter-TIGHDHUK.js} +115 -55
- package/dist/bundle/{all-profiles-7CXBVRFU.js → all-profiles-N4DLSGWY.js} +5 -5
- package/dist/bundle/{anthropic-FWBQ7JHT.js → anthropic-D2T2QRLR.js} +3 -3
- package/dist/bundle/{app-server-XF4GY2Y6.js → app-server-FZTDNSPB.js} +34 -34
- package/dist/bundle/{bot-api-XDMMWRYI.js → bot-api-OMUV6EIK.js} +38 -38
- package/dist/bundle/{bot-history-TU2X7RNN.js → bot-history-P2MWYLXW.js} +10 -10
- package/dist/bundle/{bun-6GSDPKNZ.js → bun-UA5PRMLC.js} +2 -2
- package/dist/bundle/{bun-sqlite-AO27E35V.js → bun-sqlite-XVRVJ7A2.js} +2 -2
- package/dist/bundle/{chunk-B7TTM75D.js → chunk-2GQCWNX5.js} +1 -1
- package/dist/bundle/{chunk-54RJDS3X.js → chunk-2J3TUUCO.js} +2 -2
- package/dist/bundle/{chunk-UDXRDFHN.js → chunk-67GS5BZI.js} +154 -142
- package/dist/bundle/{chunk-PHQTSF44.js → chunk-6BQUCCBD.js} +4 -4
- package/dist/bundle/{chunk-C5N7G6UH.js → chunk-6XXI3AHJ.js} +1 -1
- package/dist/bundle/{chunk-QY7MW7HK.js → chunk-7P6ZCUPN.js} +2 -2
- package/dist/bundle/{chunk-MB3PCNRL.js → chunk-ADLIUGL2.js} +2 -2
- package/dist/bundle/{chunk-FRZHF2X6.js → chunk-AQSKZMBD.js} +7 -7
- package/dist/bundle/{chunk-ZBH7Z6WX.js → chunk-BLWCHZCW.js} +2 -2
- package/dist/bundle/{chunk-LSQUNABH.js → chunk-BZUO2KFV.js} +1 -1
- package/dist/bundle/{chunk-7WHM3KNI.js → chunk-C2MKA7SX.js} +1 -1
- package/dist/bundle/{chunk-TJR37WKA.js → chunk-C6NTI37N.js} +10 -10
- package/dist/bundle/{chunk-LOFG3Q35.js → chunk-DC7O7TVJ.js} +1 -1
- package/dist/bundle/{chunk-BKVJNPA6.js → chunk-DECFDUNW.js} +11 -11
- package/dist/bundle/{chunk-HOR7DS3P.js → chunk-E5Z4FGRD.js} +25 -21
- package/dist/bundle/{chunk-P3WU6UYJ.js → chunk-ELQ5ORY2.js} +2929 -2852
- package/dist/bundle/{chunk-YBQ753RP.js → chunk-EPKGNUOZ.js} +26 -22
- package/dist/bundle/{chunk-BI2AXVHY.js → chunk-EUTOFAUT.js} +2 -2
- package/dist/bundle/{chunk-FUWSIEYY.js → chunk-EW3Y44NV.js} +9 -9
- package/dist/bundle/{chunk-MCD2GANK.js → chunk-FO33YFWF.js} +5 -5
- package/dist/bundle/{chunk-DANCAYRP.js → chunk-GD6BOLZP.js} +8 -6
- package/dist/bundle/{chunk-UVYY5EIS.js → chunk-GHAQXUH3.js} +1 -1
- package/dist/bundle/{chunk-RRWMYR2H.js → chunk-ID6TO5P5.js} +11 -9
- package/dist/bundle/{chunk-UTVANQN5.js → chunk-JOSUY2NX.js} +1 -1
- package/dist/bundle/{chunk-PWIE7VBL.js → chunk-LGKLQE2I.js} +1 -1
- package/dist/bundle/{chunk-GE22MYA6.js → chunk-LSP2NCNL.js} +55 -47
- package/dist/bundle/{chunk-6K4QGBXU.js → chunk-ONK66VVG.js} +18 -1
- package/dist/bundle/{chunk-3XZQQGCB.js → chunk-PAHBZPZN.js} +51 -47
- package/dist/bundle/{chunk-Y5PJQPMQ.js → chunk-PEIDCYF5.js} +1 -1
- package/dist/bundle/{chunk-QVTCOBN5.js → chunk-PHPXTRMS.js} +314 -263
- package/dist/bundle/{chunk-SZE6425L.js → chunk-QI75LME5.js} +26 -26
- package/dist/bundle/{chunk-Y3VNNLUT.js → chunk-QQYM26DA.js} +1 -1
- package/dist/bundle/{chunk-3GGU65YR.js → chunk-QWTHUKS4.js} +4 -4
- package/dist/bundle/{chunk-GZ5CR5QB.js → chunk-R2F6U4F3.js} +7 -7
- package/dist/bundle/{chunk-ADMV4WGV.js → chunk-T3ZLOMWW.js} +4 -4
- package/dist/bundle/{chunk-N6VHHMSZ.js → chunk-T4UTTH3A.js} +1 -1
- package/dist/bundle/{chunk-KRLCUBII.js → chunk-T5OFRHDS.js} +5 -5
- package/dist/bundle/{chunk-UT6G2X7T.js → chunk-V7OXTQBY.js} +3 -3
- package/dist/bundle/{chunk-YD6ZQ6LM.js → chunk-VYFKWPIS.js} +56 -46
- package/dist/bundle/{chunk-5K7E36ND.js → chunk-WLGQTYIO.js} +2 -2
- package/dist/bundle/{chunk-RTAV5XNT.js → chunk-WPRLG5SL.js} +9 -8
- package/dist/bundle/{chunk-U2AK4QXY.js → chunk-XFXTB522.js} +1 -1
- package/dist/bundle/{chunk-MR4LW4EC.js → chunk-XMKKBDEW.js} +315 -283
- package/dist/bundle/{chunk-6YUFPSSE.js → chunk-XQV7EMAI.js} +4 -4
- package/dist/bundle/{chunk-LJCGQMGN.js → chunk-XX37LKXG.js} +4 -4
- package/dist/bundle/{chunk-BIWJK5YU.js → chunk-XXLAGQDN.js} +1 -1
- package/dist/bundle/{command-contract-RICU4OWW.js → command-contract-N5FA573V.js} +12 -12
- package/dist/bundle/{echarts-2YP32GX5.js → echarts-WLPTUTMR.js} +2 -2
- package/dist/bundle/{embed-QNWVBCL5.js → embed-IALJOWZJ.js} +3 -3
- package/dist/bundle/{embedder-ENS7ARPP.js → embedder-ZY2TS2XJ.js} +6 -6
- package/dist/bundle/{entry-MPYSQPZO.js → entry-67RA75VS.js} +3 -3
- package/dist/bundle/{first-run-YLB7RNGP.js → first-run-QN3UUBJW.js} +5 -5
- package/dist/bundle/{first-screen-AYOE4JFC.js → first-screen-FK4ZJQJY.js} +13 -13
- package/dist/bundle/{identity-XQLO7NYW.js → identity-X3YA364I.js} +1 -1
- package/dist/bundle/{instructions-5F4XG3B6.js → instructions-355MU4CT.js} +1 -1
- package/dist/bundle/{node-JOUDFPFN.js → node-UGJWZLVB.js} +2 -2
- package/dist/bundle/{node-sqlite-ZY6ZFFXS.js → node-sqlite-FJFIOC3K.js} +2 -2
- package/dist/bundle/{oauth-KOR3ZNTA.js → oauth-EZGVL3PP.js} +4 -4
- package/dist/bundle/{open-JACXAGY5.js → open-ANYJ5AKD.js} +1 -1
- package/dist/bundle/{process-7W3X5VME.js → process-JVAQXITD.js} +1 -1
- package/dist/bundle/{program-NSZWGHNJ.js → program-QGSZY5SZ.js} +40 -40
- package/dist/bundle/{prompt-CRRG5UB6.js → prompt-EWF4ZSJO.js} +2 -2
- package/dist/bundle/{recognize-ASXEB45M.js → recognize-T5TPTI6P.js} +3 -3
- package/dist/bundle/{remote-CB3GAXGJ.js → remote-KOAALKIC.js} +4 -4
- package/dist/bundle/{rerank-PDD5BPID.js → rerank-MCXFZFRH.js} +4 -4
- package/dist/bundle/{serve-M4XFAYUM.js → serve-QEVXXJ2G.js} +6 -6
- package/dist/bundle/server-6QM3GFZX.js +55 -0
- package/dist/bundle/{server-IN673OYO.js → server-Y3ZLG44J.js} +26 -26
- package/dist/bundle/{state-626GOOVZ.js → state-F2ZJV2VP.js} +3 -3
- package/dist/bundle/{store-6JM4HJU5.js → store-QX7HBTOW.js} +7 -7
- package/dist/bundle/store-maintenance-command-ZBOQSTHY.js +44 -0
- package/dist/bundle/tg.js +2 -2
- package/dist/commands/context.d.ts.map +1 -1
- package/dist/commands/context.js +1 -0
- package/dist/commands/context.js.map +1 -1
- package/dist/telegram/adapter.d.ts +7 -0
- package/dist/telegram/adapter.d.ts.map +1 -1
- package/dist/telegram/adapter.js +3 -0
- package/dist/telegram/adapter.js.map +1 -1
- package/dist/telegram/contacts.d.ts +3 -1
- package/dist/telegram/contacts.d.ts.map +1 -1
- package/dist/telegram/contacts.js +4 -1
- package/dist/telegram/contacts.js.map +1 -1
- package/dist/telegram/map.d.ts.map +1 -1
- package/dist/telegram/map.js +17 -0
- package/dist/telegram/map.js.map +1 -1
- package/dist/telegram/messages.d.ts +7 -0
- package/dist/telegram/messages.d.ts.map +1 -1
- package/dist/telegram/messages.js +5 -0
- package/dist/telegram/messages.js.map +1 -1
- package/dist/telegram/reactors.d.ts +16 -0
- package/dist/telegram/reactors.d.ts.map +1 -0
- package/dist/telegram/reactors.js +58 -0
- package/dist/telegram/reactors.js.map +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/skills/tg-cli/SKILL.md +3 -2
- package/dist/bundle/server-ISWPSKQ6.js +0 -55
- package/dist/bundle/store-maintenance-command-DI2UX4V3.js +0 -44
|
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
answerOf,
|
|
5
5
|
messengerContext
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-E5Z4FGRD.js";
|
|
7
7
|
import {
|
|
8
8
|
RULES_VERSION,
|
|
9
9
|
applyTaskRulesOnArrival,
|
|
@@ -14,12 +14,13 @@ import {
|
|
|
14
14
|
openRequestTask,
|
|
15
15
|
pollVoteAnswer,
|
|
16
16
|
queryTerms,
|
|
17
|
+
senderIsMe,
|
|
17
18
|
serveRelay,
|
|
18
19
|
servicesFor,
|
|
19
20
|
syncsOneChat,
|
|
20
21
|
typedQuery,
|
|
21
22
|
withQuery
|
|
22
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-ELQ5ORY2.js";
|
|
23
24
|
import {
|
|
24
25
|
stringWidth,
|
|
25
26
|
wrapAnsi
|
|
@@ -50,32 +51,32 @@ import {
|
|
|
50
51
|
snakeKeys,
|
|
51
52
|
storeTable,
|
|
52
53
|
withoutProviderRefs
|
|
53
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-LSP2NCNL.js";
|
|
54
55
|
import {
|
|
55
56
|
failureKey
|
|
56
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-AQSKZMBD.js";
|
|
57
58
|
import {
|
|
58
59
|
envName
|
|
59
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-T4UTTH3A.js";
|
|
60
61
|
import {
|
|
61
62
|
holdLock,
|
|
62
63
|
lockPath,
|
|
63
64
|
releaseLock,
|
|
64
65
|
servingProfiles,
|
|
65
66
|
takeLock
|
|
66
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-2J3TUUCO.js";
|
|
67
68
|
import {
|
|
68
69
|
holdersOf
|
|
69
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-2GQCWNX5.js";
|
|
70
71
|
import {
|
|
71
72
|
checkedOptions,
|
|
72
73
|
range
|
|
73
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-BZUO2KFV.js";
|
|
74
75
|
import {
|
|
75
76
|
messagesFor,
|
|
76
77
|
systemFor,
|
|
77
78
|
validateImages
|
|
78
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-DC7O7TVJ.js";
|
|
79
80
|
import {
|
|
80
81
|
MIGRATIONS,
|
|
81
82
|
drainNoteIndex,
|
|
@@ -104,19 +105,19 @@ import {
|
|
|
104
105
|
storeClients,
|
|
105
106
|
storeContents,
|
|
106
107
|
vectorIndexCounts
|
|
107
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-PHPXTRMS.js";
|
|
108
109
|
import {
|
|
109
110
|
queryFieldsOf
|
|
110
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-PAHBZPZN.js";
|
|
111
112
|
import {
|
|
112
113
|
storePath
|
|
113
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-PEIDCYF5.js";
|
|
114
115
|
import {
|
|
115
116
|
openCache
|
|
116
|
-
} from "./chunk-
|
|
117
|
+
} from "./chunk-T5OFRHDS.js";
|
|
117
118
|
import {
|
|
118
119
|
readSecret
|
|
119
|
-
} from "./chunk-
|
|
120
|
+
} from "./chunk-ADLIUGL2.js";
|
|
120
121
|
import {
|
|
121
122
|
Credentials,
|
|
122
123
|
pathsAreOverridden,
|
|
@@ -5489,11 +5490,11 @@ var require_liquid_node = __commonJS({
|
|
|
5489
5490
|
}
|
|
5490
5491
|
});
|
|
5491
5492
|
|
|
5492
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5493
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.479.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._835150ae4189cac822e446e361e54dd7/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
|
|
5493
5494
|
import { chmodSync, constants, copyFileSync, existsSync as existsSync7, mkdirSync, realpathSync, renameSync as renameSync2, rmSync as rmSync2, statfsSync, statSync as statSync3, writeFileSync } from "node:fs";
|
|
5494
5495
|
import { dirname, resolve } from "node:path";
|
|
5495
5496
|
|
|
5496
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5497
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.479.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._835150ae4189cac822e446e361e54dd7/node_modules/@wirecat/cli-core/dist/sealed.js
|
|
5497
5498
|
import { createCipheriv, createDecipheriv, createHash, randomBytes, scrypt, timingSafeEqual } from "node:crypto";
|
|
5498
5499
|
import { closeSync, createReadStream, createWriteStream, existsSync, openSync, readSync, renameSync, rmSync, statSync } from "node:fs";
|
|
5499
5500
|
import { Transform } from "node:stream";
|
|
@@ -5600,7 +5601,7 @@ var unsealFile = /* @__PURE__ */ __name(async (from, to, password) => {
|
|
|
5600
5601
|
renameSync(pending, to);
|
|
5601
5602
|
}, "unsealFile");
|
|
5602
5603
|
|
|
5603
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5604
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.479.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._835150ae4189cac822e446e361e54dd7/node_modules/@wirecat/cli-core/dist/store/compatibility.js
|
|
5604
5605
|
var SPEAKS = MIGRATIONS.at(-1)?.version ?? 0;
|
|
5605
5606
|
var fileSchemaOf = /* @__PURE__ */ __name((database) => {
|
|
5606
5607
|
const tracked = database.prepare("SELECT 1 FROM sqlite_master WHERE name = 'schema_migrations'").get();
|
|
@@ -5624,7 +5625,7 @@ var compatibilityOf = /* @__PURE__ */ __name((file2, migrations = MIGRATIONS) =>
|
|
|
5624
5625
|
};
|
|
5625
5626
|
}, "compatibilityOf");
|
|
5626
5627
|
|
|
5627
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5628
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.479.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._835150ae4189cac822e446e361e54dd7/node_modules/@wirecat/cli-core/dist/store/repair.js
|
|
5628
5629
|
import { createHash as createHash2 } from "node:crypto";
|
|
5629
5630
|
var COPY_MARK = "__repair_";
|
|
5630
5631
|
var COPY_NAME = /__repair_[0-9a-f]{8}(_\d+)?$/;
|
|
@@ -5878,7 +5879,7 @@ var deleteCopy = /* @__PURE__ */ __name((database, name) => {
|
|
|
5878
5879
|
return found;
|
|
5879
5880
|
}, "deleteCopy");
|
|
5880
5881
|
|
|
5881
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5882
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.479.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._835150ae4189cac822e446e361e54dd7/node_modules/@wirecat/cli-core/dist/cli/store-info.js
|
|
5882
5883
|
import { existsSync as existsSync2, statSync as statSync2 } from "node:fs";
|
|
5883
5884
|
var pendingIfKnown = /* @__PURE__ */ __name((database) => database.prepare("SELECT 1 FROM pragma_table_info('messages') WHERE name = 'normalized_text'").get() ? pendingNormalization(database) : null, "pendingIfKnown");
|
|
5884
5885
|
var bytesOf = /* @__PURE__ */ __name((path) => existsSync2(path) ? statSync2(path).size : 0, "bytesOf");
|
|
@@ -5925,7 +5926,7 @@ var storeInfoCommand = /* @__PURE__ */ __name(() => annotate(new Command("info")
|
|
|
5925
5926
|
renderAnswer(this, outputFor(this), itemOf(answer));
|
|
5926
5927
|
}), "storeInfoCommand");
|
|
5927
5928
|
|
|
5928
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5929
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.479.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._835150ae4189cac822e446e361e54dd7/node_modules/@wirecat/cli-core/dist/cli/messenger/password.js
|
|
5929
5930
|
var ENCRYPT_OPTION = [
|
|
5930
5931
|
"--encrypt",
|
|
5931
5932
|
"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"
|
|
@@ -5944,7 +5945,7 @@ var passwordOf = /* @__PURE__ */ __name(async (command, { twice }) => {
|
|
|
5944
5945
|
return password;
|
|
5945
5946
|
}, "passwordOf");
|
|
5946
5947
|
|
|
5947
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5948
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.479.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._835150ae4189cac822e446e361e54dd7/node_modules/@wirecat/cli-core/dist/replies/rules.js
|
|
5948
5949
|
import { existsSync as existsSync3, readFileSync } from "node:fs";
|
|
5949
5950
|
import { join } from "node:path";
|
|
5950
5951
|
var REPLY_ACTIONS = ["reply", "task"];
|
|
@@ -6115,7 +6116,7 @@ var problem = /* @__PURE__ */ __name((issue) => {
|
|
|
6115
6116
|
}, "problem");
|
|
6116
6117
|
var broken = /* @__PURE__ */ __name((path, why) => new CliError("configuration_error", `the reply rules ${path} cannot be read (${why}) \u2014 fix the file`), "broken");
|
|
6117
6118
|
|
|
6118
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6119
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.479.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._835150ae4189cac822e446e361e54dd7/node_modules/@wirecat/cli-core/dist/replies/state.js
|
|
6119
6120
|
import { existsSync as existsSync4, readFileSync as readFileSync2 } from "node:fs";
|
|
6120
6121
|
import { join as join2 } from "node:path";
|
|
6121
6122
|
var ANSWERED_KEPT = 1e3;
|
|
@@ -6168,7 +6169,7 @@ var recordReply = /* @__PURE__ */ __name((state, rule2, message, now) => {
|
|
|
6168
6169
|
}, "recordReply");
|
|
6169
6170
|
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");
|
|
6170
6171
|
|
|
6171
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6172
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.479.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._835150ae4189cac822e446e361e54dd7/node_modules/@wirecat/cli-core/dist/replies/decide.js
|
|
6172
6173
|
var skip = /* @__PURE__ */ __name((why) => ({ skip: why }), "skip");
|
|
6173
6174
|
var decide = /* @__PURE__ */ __name((rule2, incoming, state, now) => {
|
|
6174
6175
|
const { message, chat, owner, sender } = incoming;
|
|
@@ -6274,7 +6275,7 @@ var filled = /* @__PURE__ */ __name((template2, senderName) => {
|
|
|
6274
6275
|
return template2.replaceAll("{firstName}", name.split(/\s+/)[0] ?? name).replaceAll("{name}", name);
|
|
6275
6276
|
}, "filled");
|
|
6276
6277
|
|
|
6277
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6278
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.479.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._835150ae4189cac822e446e361e54dd7/node_modules/@wirecat/cli-core/dist/replies/template.js
|
|
6278
6279
|
var import_liquidjs = __toESM(require_liquid_node(), 1);
|
|
6279
6280
|
var TEMPLATE_LIMITS = {
|
|
6280
6281
|
parse: 32768,
|
|
@@ -6434,7 +6435,7 @@ var renderReplyTemplate = /* @__PURE__ */ __name(async (reply, input) => {
|
|
|
6434
6435
|
}
|
|
6435
6436
|
}, "renderReplyTemplate");
|
|
6436
6437
|
|
|
6437
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6438
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.479.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._835150ae4189cac822e446e361e54dd7/node_modules/@wirecat/cli-core/dist/replies/dry-run.js
|
|
6438
6439
|
var DRY_RUN_DAYS = 7;
|
|
6439
6440
|
var PAGE = 500;
|
|
6440
6441
|
var dryRun = /* @__PURE__ */ __name(async (store, account, rules, { since, until = Date.now(), only, audience, render }) => {
|
|
@@ -6548,7 +6549,7 @@ var storedSince = /* @__PURE__ */ __name(async (store, account, chat, since) =>
|
|
|
6548
6549
|
}
|
|
6549
6550
|
}, "storedSince");
|
|
6550
6551
|
|
|
6551
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6552
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.479.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._835150ae4189cac822e446e361e54dd7/node_modules/@wirecat/cli-core/dist/embeddings/keys.js
|
|
6552
6553
|
var endpointKeyName = /* @__PURE__ */ __name((baseUrl) => {
|
|
6553
6554
|
const host = new URL(baseUrl).host;
|
|
6554
6555
|
return ["openai", "anthropic"].includes(host) ? `endpoint:${host}` : host;
|
|
@@ -6579,7 +6580,7 @@ var embeddingKeys = /* @__PURE__ */ __name((app, env = process.env, keyring) =>
|
|
|
6579
6580
|
};
|
|
6580
6581
|
}, "embeddingKeys");
|
|
6581
6582
|
|
|
6582
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6583
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.479.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._835150ae4189cac822e446e361e54dd7/node_modules/@wirecat/cli-core/dist/models/openai.js
|
|
6583
6584
|
var options = strictObject({
|
|
6584
6585
|
temperature: range(0, 2),
|
|
6585
6586
|
top_p: range(0, 1),
|
|
@@ -6628,7 +6629,7 @@ var openai = {
|
|
|
6628
6629
|
}, "complete")
|
|
6629
6630
|
};
|
|
6630
6631
|
|
|
6631
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6632
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.479.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._835150ae4189cac822e446e361e54dd7/node_modules/@wirecat/cli-core/dist/models/index.js
|
|
6632
6633
|
var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
6633
6634
|
complete: /* @__PURE__ */ __name(async (request) => {
|
|
6634
6635
|
if (deps.signal?.aborted)
|
|
@@ -6643,7 +6644,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
6643
6644
|
if (!adapter && target.provider === "openai")
|
|
6644
6645
|
adapter = openai;
|
|
6645
6646
|
if (!adapter && target.provider === "anthropic")
|
|
6646
|
-
adapter = (await import("./anthropic-
|
|
6647
|
+
adapter = (await import("./anthropic-D2T2QRLR.js")).anthropic;
|
|
6647
6648
|
if (!adapter)
|
|
6648
6649
|
throw new CliError("validation_error", `no model adapter for ${target.provider}`);
|
|
6649
6650
|
if (request.images !== void 0 && adapter.images !== true)
|
|
@@ -6684,7 +6685,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
6684
6685
|
}, "complete")
|
|
6685
6686
|
}), "modelGateway");
|
|
6686
6687
|
|
|
6687
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6688
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.479.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._835150ae4189cac822e446e361e54dd7/node_modules/@wirecat/cli-core/dist/replies/consents.js
|
|
6688
6689
|
import { existsSync as existsSync5, readFileSync as readFileSync3 } from "node:fs";
|
|
6689
6690
|
import { join as join3 } from "node:path";
|
|
6690
6691
|
var shape = strictObject({
|
|
@@ -6709,7 +6710,7 @@ var mayModelReply = /* @__PURE__ */ __name((path, provider, chat) => {
|
|
|
6709
6710
|
return consent.provider === provider && !consent.deniedChats.includes(chat);
|
|
6710
6711
|
}, "mayModelReply");
|
|
6711
6712
|
|
|
6712
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6713
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.479.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._835150ae4189cac822e446e361e54dd7/node_modules/@wirecat/cli-core/dist/replies/rendering.js
|
|
6713
6714
|
var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, options2 = {
|
|
6714
6715
|
ai: true
|
|
6715
6716
|
}) => async (rule2, message, chat, now) => {
|
|
@@ -6756,7 +6757,7 @@ var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, o
|
|
|
6756
6757
|
return result2;
|
|
6757
6758
|
}, "replyRenderer");
|
|
6758
6759
|
|
|
6759
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6760
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.479.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._835150ae4189cac822e446e361e54dd7/node_modules/@wirecat/cli-core/dist/replies/serve.js
|
|
6760
6761
|
var NOT_ALLOWED = "replies.send is not allow";
|
|
6761
6762
|
var NO_RULES = "no rules";
|
|
6762
6763
|
var ONLY_TASK = "opened a task, sent nothing";
|
|
@@ -6849,7 +6850,7 @@ var replyTo = /* @__PURE__ */ __name(async (deps, message) => {
|
|
|
6849
6850
|
return { skip: why };
|
|
6850
6851
|
}, "replyTo");
|
|
6851
6852
|
|
|
6852
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6853
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.479.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._835150ae4189cac822e446e361e54dd7/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-members.js
|
|
6853
6854
|
var FIRST_FETCH_MS = 6e4;
|
|
6854
6855
|
var DAY_MS = 864e5;
|
|
6855
6856
|
var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch: fetch2, warn, firstMs = FIRST_FETCH_MS, everyMs = DAY_MS }) => {
|
|
@@ -6903,7 +6904,7 @@ var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch: fetch2, warn, fi
|
|
|
6903
6904
|
};
|
|
6904
6905
|
}, "memberFetches");
|
|
6905
6906
|
|
|
6906
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6907
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.479.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._835150ae4189cac822e446e361e54dd7/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-notice.js
|
|
6907
6908
|
var record2 = /* @__PURE__ */ __name((context, app, severity, attributes) => recordLogFor(context.streams.diagnostic, app, { command: currentRun().command || "serve" })[severity](attributes), "record");
|
|
6908
6909
|
var noticeFor = /* @__PURE__ */ __name((context, app, severity = "warn") => ({ text, ...attributes }) => {
|
|
6909
6910
|
if (context.format === "pretty") {
|
|
@@ -6936,7 +6937,7 @@ var recordDiagnostics = /* @__PURE__ */ __name((context, app) => {
|
|
|
6936
6937
|
return context;
|
|
6937
6938
|
}, "recordDiagnostics");
|
|
6938
6939
|
|
|
6939
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6940
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.479.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._835150ae4189cac822e446e361e54dd7/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-stems.js
|
|
6940
6941
|
var STEMS_EVERY_MS = 3e4;
|
|
6941
6942
|
var STEMS_SLICE_MS = 2e3;
|
|
6942
6943
|
var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY_MS, sliceMs = STEMS_SLICE_MS }) => {
|
|
@@ -6976,7 +6977,7 @@ var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY
|
|
|
6976
6977
|
};
|
|
6977
6978
|
}, "stemFills");
|
|
6978
6979
|
|
|
6979
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6980
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.479.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._835150ae4189cac822e446e361e54dd7/node_modules/@wirecat/cli-core/dist/render/messages.js
|
|
6980
6981
|
import { styleText } from "node:util";
|
|
6981
6982
|
var TIME_WIDTH = 8;
|
|
6982
6983
|
var INDENT = " ".repeat(TIME_WIDTH + 2);
|
|
@@ -7083,9 +7084,12 @@ var attachmentLines = /* @__PURE__ */ __name((attachments, paint, options2) => {
|
|
|
7083
7084
|
let number2 = 0;
|
|
7084
7085
|
const keyboard = attachments.flatMap((attachment) => attachment.buttons ?? []).map((row) => paint("dim", row.map((button) => link(`[${++number2} ${singleLine(button.text)}]`, button.url)).join(" ")));
|
|
7085
7086
|
const polls = attachments.flatMap((attachment) => attachment.poll ? pollLines(attachment.poll) : []);
|
|
7087
|
+
const cards = attachments.flatMap(({ contact }) => contact ? [
|
|
7088
|
+
paint("dim", `\u{1F464} ${[contact.name, contact.phone].flatMap((part) => part ? [singleLine(part)] : []).join(" \xB7 ")}`)
|
|
7089
|
+
] : []);
|
|
7086
7090
|
const groups = /* @__PURE__ */ new Map();
|
|
7087
7091
|
for (const attachment of attachments) {
|
|
7088
|
-
if (attachment.buttons || attachment.poll)
|
|
7092
|
+
if (attachment.buttons || attachment.poll || attachment.contact)
|
|
7089
7093
|
continue;
|
|
7090
7094
|
const key = singleLine(attachment.name ?? attachment.title ?? attachment.kind);
|
|
7091
7095
|
groups.set(key, [...groups.get(key) ?? [], attachment]);
|
|
@@ -7098,7 +7102,7 @@ var attachmentLines = /* @__PURE__ */ __name((attachments, paint, options2) => {
|
|
|
7098
7102
|
const each = same2.map((attachment, index) => link(String(index + 1), attachment.url)).join(" ");
|
|
7099
7103
|
return paint("dim", `\u{1F4CE} ${label} \xD7${same2.length} ${each}`);
|
|
7100
7104
|
});
|
|
7101
|
-
return [...polls, ...files, ...keyboard];
|
|
7105
|
+
return [...polls, ...cards, ...files, ...keyboard];
|
|
7102
7106
|
}, "attachmentLines");
|
|
7103
7107
|
var pollLines = /* @__PURE__ */ __name((poll) => {
|
|
7104
7108
|
const kind = [
|
|
@@ -7149,7 +7153,7 @@ var editedAt = /* @__PURE__ */ __name((message, options2) => {
|
|
|
7149
7153
|
return day(edited) === day(message.timestamp) ? time : `${day(edited)} ${time}`;
|
|
7150
7154
|
}, "editedAt");
|
|
7151
7155
|
|
|
7152
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7156
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.479.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._835150ae4189cac822e446e361e54dd7/node_modules/@wirecat/cli-core/dist/cli/messenger/message-items.js
|
|
7153
7157
|
var defined = /* @__PURE__ */ __name((value) => Object.fromEntries(Object.entries(value).filter(([, one]) => one !== void 0)), "defined");
|
|
7154
7158
|
var attachmentItem = /* @__PURE__ */ __name((attachment) => defined({
|
|
7155
7159
|
kind: attachment.kind,
|
|
@@ -7161,6 +7165,13 @@ var attachmentItem = /* @__PURE__ */ __name((attachment) => defined({
|
|
|
7161
7165
|
width: attachment.width,
|
|
7162
7166
|
height: attachment.height,
|
|
7163
7167
|
duration: attachment.duration,
|
|
7168
|
+
contact: attachment.contact && defined({
|
|
7169
|
+
name: attachment.contact.name,
|
|
7170
|
+
first_name: attachment.contact.firstName,
|
|
7171
|
+
last_name: attachment.contact.lastName,
|
|
7172
|
+
phone: attachment.contact.phone,
|
|
7173
|
+
user_id: attachment.contact.userId
|
|
7174
|
+
}),
|
|
7164
7175
|
buttons: attachment.buttons
|
|
7165
7176
|
}), "attachmentItem");
|
|
7166
7177
|
var quotedItem = /* @__PURE__ */ __name((quoted) => quoted === null ? null : {
|
|
@@ -7186,8 +7197,7 @@ var messageItem = /* @__PURE__ */ __name((message, reader) => {
|
|
|
7186
7197
|
sender_name: message.senderName,
|
|
7187
7198
|
sender_username: message.senderUsername,
|
|
7188
7199
|
sender_is_chat: message.senderIsChat,
|
|
7189
|
-
|
|
7190
|
-
sender_is_me: message.outgoing === true || message.senderId !== null && String(message.senderId) === account,
|
|
7200
|
+
sender_is_me: senderIsMe(message, account),
|
|
7191
7201
|
mentions: message.mentions,
|
|
7192
7202
|
timestamp: message.timestamp,
|
|
7193
7203
|
edited_at: message.editedAt,
|
|
@@ -7238,7 +7248,7 @@ var viewOf = /* @__PURE__ */ __name((context, messenger) => ({
|
|
|
7238
7248
|
locale: messenger.app.locale
|
|
7239
7249
|
}), "viewOf");
|
|
7240
7250
|
|
|
7241
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7251
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.479.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._835150ae4189cac822e446e361e54dd7/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-answers.js
|
|
7242
7252
|
var observed = /* @__PURE__ */ __name((value) => ({
|
|
7243
7253
|
value: value.value,
|
|
7244
7254
|
observed_at: value.observedAt,
|
|
@@ -7305,7 +7315,7 @@ var watchEventItem = /* @__PURE__ */ __name((value, account) => {
|
|
|
7305
7315
|
}
|
|
7306
7316
|
}, "watchEventItem");
|
|
7307
7317
|
|
|
7308
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7318
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.479.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._835150ae4189cac822e446e361e54dd7/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-command.js
|
|
7309
7319
|
var watchCommand = /* @__PURE__ */ __name((messenger) => annotate(new Command("watch"), {
|
|
7310
7320
|
output: { entity: "watch_item" },
|
|
7311
7321
|
effects: REMOTE_READ,
|
|
@@ -7460,7 +7470,7 @@ var describe = /* @__PURE__ */ __name((event, render) => {
|
|
|
7460
7470
|
}
|
|
7461
7471
|
}, "describe");
|
|
7462
7472
|
|
|
7463
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7473
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.479.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._835150ae4189cac822e446e361e54dd7/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-command.js
|
|
7464
7474
|
var serveCommand = /* @__PURE__ */ __name((messenger) => {
|
|
7465
7475
|
const command = annotate(new Command("serve"), {
|
|
7466
7476
|
output: { entity: "serve_summary" },
|
|
@@ -7676,7 +7686,7 @@ var tasking = /* @__PURE__ */ __name((context, warn) => {
|
|
|
7676
7686
|
};
|
|
7677
7687
|
}, "tasking");
|
|
7678
7688
|
|
|
7679
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7689
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.479.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._835150ae4189cac822e446e361e54dd7/node_modules/@wirecat/cli-core/dist/cli/messenger/store-tables-command.js
|
|
7680
7690
|
import { existsSync as existsSync6 } from "node:fs";
|
|
7681
7691
|
var PATH = "store tables list";
|
|
7682
7692
|
var STORE_TABLES_QUERY = {
|
|
@@ -7719,7 +7729,7 @@ var storeTablesCommand = /* @__PURE__ */ __name((messenger) => {
|
|
|
7719
7729
|
return tables;
|
|
7720
7730
|
}, "storeTablesCommand");
|
|
7721
7731
|
|
|
7722
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7732
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.479.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._835150ae4189cac822e446e361e54dd7/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
|
|
7723
7733
|
var SEARCH_INDEXES = ["messages_fts", "chats_fts", "identities_fts"];
|
|
7724
7734
|
var WORD_INDEX = "message_words";
|
|
7725
7735
|
var schemaOf = /* @__PURE__ */ __name((database) => {
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
import {
|
|
29
29
|
agentOf,
|
|
30
30
|
clientHash
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-AQSKZMBD.js";
|
|
32
32
|
import {
|
|
33
33
|
__name
|
|
34
34
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -540,7 +540,7 @@ function toError(value) {
|
|
|
540
540
|
}
|
|
541
541
|
__name(toError, "toError");
|
|
542
542
|
|
|
543
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
543
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.479.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._835150ae4189cac822e446e361e54dd7/node_modules/@wirecat/cli-core/dist/mcp/caller.js
|
|
544
544
|
var CALLER_META_KEY = "wirecat.dev/caller";
|
|
545
545
|
var PROXY_CLIENT_NAME = "all-profiles";
|
|
546
546
|
var NAME = /^[\w .@()/+-]{1,64}$/;
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
privateFiles,
|
|
14
14
|
providerRequest,
|
|
15
15
|
withSqliteSidecars
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-XMKKBDEW.js";
|
|
17
17
|
import {
|
|
18
18
|
parseProxy,
|
|
19
19
|
proxyAddress,
|
|
@@ -23,20 +23,20 @@ import {
|
|
|
23
23
|
} from "./chunk-FG2QTYEF.js";
|
|
24
24
|
import {
|
|
25
25
|
messengerContext
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-E5Z4FGRD.js";
|
|
27
27
|
import {
|
|
28
28
|
uploadBlob
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-ELQ5ORY2.js";
|
|
30
30
|
import {
|
|
31
31
|
asFirstWord,
|
|
32
32
|
currentAttempt,
|
|
33
33
|
environmentOf,
|
|
34
34
|
fromFile,
|
|
35
35
|
settingsFor
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-LSP2NCNL.js";
|
|
37
37
|
import {
|
|
38
38
|
TG
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-GHAQXUH3.js";
|
|
40
40
|
import {
|
|
41
41
|
Credentials,
|
|
42
42
|
pathsAreOverridden,
|
|
@@ -178,7 +178,7 @@ var telegramOf = /* @__PURE__ */ __name((command, base) => {
|
|
|
178
178
|
throw new CliError(unreachable, 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\``);
|
|
179
179
|
}
|
|
180
180
|
const options = { credentials: resolved, sessionPath, ...connecting };
|
|
181
|
-
return environment.adapter ? await environment.adapter(options) : await (await import("./adapter-
|
|
181
|
+
return environment.adapter ? await environment.adapter(options) : await (await import("./adapter-TIGHDHUK.js")).TelegramAdapter.open({
|
|
182
182
|
...options,
|
|
183
183
|
...proxyOption(proxy()),
|
|
184
184
|
diagnostic: /* @__PURE__ */ __name((line) => base.streams.diagnostic(line), "diagnostic"),
|
|
@@ -213,6 +213,7 @@ var TELEGRAM = {
|
|
|
213
213
|
personalBots: true,
|
|
214
214
|
pollQuiz: true,
|
|
215
215
|
pollVoters: true,
|
|
216
|
+
reactionsList: true,
|
|
216
217
|
topicShow: true,
|
|
217
218
|
forwardTopic: true,
|
|
218
219
|
// mtcute's InputMedia.poll documents 5–600 seconds.
|
|
@@ -863,7 +864,7 @@ var TELEGRAM_BOT = {
|
|
|
863
864
|
const botId = token.split(":", 1)[0] ?? "";
|
|
864
865
|
if (!/^\d+$/.test(botId))
|
|
865
866
|
throw new CliError("authentication_error", "the bot token has no valid bot id");
|
|
866
|
-
const reader = await (environment.botHistory ?? (await import("./bot-history-
|
|
867
|
+
const reader = await (environment.botHistory ?? (await import("./bot-history-P2MWYLXW.js")).openBotHistory)({
|
|
867
868
|
credentials,
|
|
868
869
|
sessionPath: botSessionFile(profile, botId, env),
|
|
869
870
|
token,
|
|
@@ -883,7 +884,7 @@ var TELEGRAM_BOT = {
|
|
|
883
884
|
return void 0;
|
|
884
885
|
let personal;
|
|
885
886
|
try {
|
|
886
|
-
personal = environment.adapter ? await environment.adapter({ credentials, sessionPath: personalPath }) : await (await import("./adapter-
|
|
887
|
+
personal = environment.adapter ? await environment.adapter({ credentials, sessionPath: personalPath }) : await (await import("./adapter-TIGHDHUK.js")).TelegramAdapter.open({
|
|
887
888
|
credentials,
|
|
888
889
|
sessionPath: personalPath,
|
|
889
890
|
checks: words,
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.479.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._835150ae4189cac822e446e361e54dd7/node_modules/@wirecat/cli-core/dist/mcp/instructions.js
|
|
8
8
|
var instructions = /* @__PURE__ */ __name(({ command, name, profile, writes, skill }) => {
|
|
9
9
|
const all = typeof profile !== "string";
|
|
10
10
|
const offers = /* @__PURE__ */ __name((key) => all || writes.includes(key), "offers");
|