@wirecat/tg-cli 0.107.0 → 0.108.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-PN5AXCJ7.js → adapter-YFWRJWL5.js} +37 -37
- package/dist/bundle/{all-profiles-SDHNKZQQ.js → all-profiles-GQIZSF4W.js} +5 -5
- package/dist/bundle/{anthropic-F3BXQLYB.js → anthropic-BKWEDKPU.js} +3 -3
- package/dist/bundle/{app-server-XDKMWVCD.js → app-server-RJV7ICLH.js} +34 -34
- package/dist/bundle/{bot-api-YXJL4CEV.js → bot-api-2PAH2JZ3.js} +38 -38
- package/dist/bundle/{bot-history-SDLHR7PV.js → bot-history-DPPZ43F4.js} +10 -10
- package/dist/bundle/{bun-SMH7PKUS.js → bun-Q7COX3Z5.js} +2 -2
- package/dist/bundle/{bun-sqlite-KB6PSTWH.js → bun-sqlite-YI4AYZXO.js} +2 -2
- package/dist/bundle/{chunk-P5KMLJQR.js → chunk-26PWIQPP.js} +194 -194
- package/dist/bundle/{chunk-465FPHSG.js → chunk-3562DVQ7.js} +7 -7
- package/dist/bundle/{chunk-GJS26XEB.js → chunk-3GXKJKIC.js} +4 -4
- package/dist/bundle/{chunk-VMKPRAIB.js → chunk-3HYDKCXB.js} +4 -4
- package/dist/bundle/{chunk-44UANKAI.js → chunk-4RDMNNVO.js} +14 -9
- package/dist/bundle/{chunk-STGY3EAZ.js → chunk-5HPXENE5.js} +1 -1
- package/dist/bundle/{chunk-BMXGEQDA.js → chunk-5P27JGGA.js} +4 -4
- package/dist/bundle/{chunk-DBZVF73F.js → chunk-6MZ2ZBX4.js} +2 -2
- package/dist/bundle/{chunk-YA44IPCS.js → chunk-6QTUYMGX.js} +1 -1
- package/dist/bundle/{chunk-CJJVFGFX.js → chunk-76OSISA3.js} +1 -1
- package/dist/bundle/{chunk-GGAG3G7B.js → chunk-77OOX2OE.js} +47 -47
- package/dist/bundle/{chunk-53QVFV34.js → chunk-AOUB2QFP.js} +1 -1
- package/dist/bundle/{chunk-PYRJO6B3.js → chunk-AS2BVZU3.js} +3 -3
- package/dist/bundle/{chunk-AWBJSYX6.js → chunk-B7TFWNKJ.js} +1 -1
- package/dist/bundle/{chunk-A4DS5ANQ.js → chunk-BL72ZIBV.js} +1 -1
- package/dist/bundle/{chunk-REJM262E.js → chunk-BOSMBW4I.js} +10 -10
- package/dist/bundle/{chunk-JAWXJILO.js → chunk-BT6PWDM6.js} +2 -2
- package/dist/bundle/{chunk-TEHAIU6I.js → chunk-CVWF3BFK.js} +42 -42
- package/dist/bundle/{chunk-NSQL3YRD.js → chunk-CZANI3DM.js} +20 -20
- package/dist/bundle/{chunk-BGVODG6P.js → chunk-D6DBVPES.js} +2 -2
- package/dist/bundle/{chunk-NUVHRCUK.js → chunk-DNOJKQXQ.js} +255 -247
- package/dist/bundle/{chunk-BYDDYOF4.js → chunk-DUWTG2GE.js} +7 -7
- package/dist/bundle/{chunk-53RW4KLL.js → chunk-EBB7RFCW.js} +1 -1
- package/dist/bundle/{chunk-X7M7YZPF.js → chunk-EWL3ZFOI.js} +5 -5
- package/dist/bundle/{chunk-NMTFZNFU.js → chunk-F67VPIJL.js} +26 -26
- package/dist/bundle/{chunk-WXIGT6FY.js → chunk-KQFR7ZAA.js} +11 -11
- package/dist/bundle/{chunk-RGNKRI5T.js → chunk-KZPZFPGB.js} +20 -20
- package/dist/bundle/{chunk-YSDA3EWT.js → chunk-LY2LFJMU.js} +92 -92
- package/dist/bundle/{chunk-5QBTHR57.js → chunk-LYLGLFWY.js} +2 -2
- package/dist/bundle/{chunk-KROO42KC.js → chunk-NCXCBVHO.js} +5 -5
- package/dist/bundle/{chunk-JZOXKRDG.js → chunk-OB5PPPXH.js} +6 -6
- package/dist/bundle/{chunk-IY7IEM56.js → chunk-ON67U6WV.js} +4 -4
- package/dist/bundle/{chunk-3UEFJ75D.js → chunk-PCMW3PW6.js} +1 -1
- package/dist/bundle/{chunk-NCWB3KXP.js → chunk-PQHYM2XC.js} +1 -1
- package/dist/bundle/{chunk-TKCZYJAT.js → chunk-QVIT6SQ5.js} +1779 -1519
- package/dist/bundle/{chunk-H4LIQVPN.js → chunk-R5YOKYTE.js} +9 -9
- package/dist/bundle/{chunk-LA2OUJK5.js → chunk-REI5TPS3.js} +8 -8
- package/dist/bundle/{chunk-P5UG655O.js → chunk-SONKULUF.js} +2 -2
- package/dist/bundle/{chunk-WFG7KFM4.js → chunk-TVA3NXXO.js} +1 -1
- package/dist/bundle/{chunk-6FSG6QZH.js → chunk-VK2YLSK7.js} +1 -1
- package/dist/bundle/{chunk-MOZX3JX3.js → chunk-WEDWIXIC.js} +2 -2
- package/dist/bundle/{chunk-TFV4UPQZ.js → chunk-WKSLGPZQ.js} +3 -3
- package/dist/bundle/{chunk-DFZBGU4G.js → chunk-WUF64WOG.js} +4 -4
- package/dist/bundle/{chunk-P4A27ETD.js → chunk-XZXOGHU5.js} +70 -46
- package/dist/bundle/{chunk-OIHAM73W.js → chunk-YJ6GFFEE.js} +1 -1
- package/dist/bundle/{chunk-WS3S7DXT.js → chunk-ZHHVNTBJ.js} +1 -1
- package/dist/bundle/{chunk-O7VQHFMZ.js → chunk-ZYBDAZFO.js} +1 -1
- package/dist/bundle/{command-contract-B4DA4MXP.js → command-contract-5GJV6EHG.js} +12 -12
- package/dist/bundle/{decode-WEP3HD56.js → decode-ZFAFVFWX.js} +2 -2
- package/dist/bundle/{echarts-MRMILSAF.js → echarts-SVXNTKGV.js} +2 -2
- package/dist/bundle/{embed-LCLTUVUD.js → embed-V755YE7O.js} +3 -3
- package/dist/bundle/{embedder-O4WNEXUC.js → embedder-MQAPNQBH.js} +6 -6
- package/dist/bundle/{entry-7HDX6BDR.js → entry-ULQ3VOMQ.js} +3 -3
- package/dist/bundle/{first-run-M7YVVQJS.js → first-run-64BTWXDR.js} +5 -5
- package/dist/bundle/{first-screen-MXW3UZFB.js → first-screen-YZCH4TEV.js} +13 -13
- package/dist/bundle/{identity-EEMHQOTN.js → identity-PW45VBUU.js} +1 -1
- package/dist/bundle/{instructions-YIH3J4TI.js → instructions-G3ZUIRRH.js} +1 -1
- package/dist/bundle/{node-YWT7RFN6.js → node-IDJXLZSX.js} +2 -2
- package/dist/bundle/node-sqlite-W22J37MG.js +62 -0
- package/dist/bundle/{oauth-CADZB7TT.js → oauth-Q52LBXDE.js} +4 -4
- package/dist/bundle/{open-AMRU27KK.js → open-YLD7VHEC.js} +1 -1
- package/dist/bundle/{process-JC76J5UD.js → process-OBESF2XG.js} +1 -1
- package/dist/bundle/{program-FI6MTY2V.js → program-EBMWHOKQ.js} +40 -40
- package/dist/bundle/{prompt-SPYTHKHN.js → prompt-FHHQF3MG.js} +2 -2
- package/dist/bundle/{recognize-G5VVM6MU.js → recognize-QNHKHGKM.js} +1 -1
- package/dist/bundle/{remote-Z3HW42CH.js → remote-RVZWRCCT.js} +4 -4
- package/dist/bundle/{rerank-QJ5NLZUU.js → rerank-KG2USEME.js} +4 -4
- package/dist/bundle/{serve-3I4C6Y5X.js → serve-I4MJKEQ4.js} +6 -6
- package/dist/bundle/server-AXMWFPNT.js +55 -0
- package/dist/bundle/{server-2L4BONHN.js → server-GV7SV3L6.js} +26 -26
- package/dist/bundle/{state-IXZYPH46.js → state-AJKHWFBU.js} +3 -3
- package/dist/bundle/{store-KS4XIA2R.js → store-L3HFSSGJ.js} +7 -7
- package/dist/bundle/store-maintenance-command-Y22ARSDR.js +44 -0
- package/dist/bundle/tg.js +2 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/dist/bundle/node-sqlite-LVHTONMA.js +0 -46
- package/dist/bundle/server-7TJ337SR.js +0 -55
- package/dist/bundle/store-maintenance-command-I3L24P22.js +0 -44
|
@@ -3,11 +3,11 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
envName,
|
|
5
5
|
readOnlyLockOf
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-PCMW3PW6.js";
|
|
7
7
|
import {
|
|
8
8
|
CAPABILITY_STATEMENTS,
|
|
9
9
|
storeCapable
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-NCXCBVHO.js";
|
|
11
11
|
import {
|
|
12
12
|
catchCrashes
|
|
13
13
|
} from "./chunk-T4SDOYPY.js";
|
|
@@ -21,10 +21,10 @@ import {
|
|
|
21
21
|
__name
|
|
22
22
|
} from "./chunk-ZVVMGPBJ.js";
|
|
23
23
|
|
|
24
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/cli/entry.js
|
|
25
25
|
import { spawn as spawn2 } from "node:child_process";
|
|
26
26
|
|
|
27
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/sqlite-runtime.js
|
|
28
28
|
import { spawn, spawnSync } from "node:child_process";
|
|
29
29
|
import { readFileSync } from "node:fs";
|
|
30
30
|
import { dirname } from "node:path";
|
|
@@ -112,7 +112,7 @@ var relay = /* @__PURE__ */ __name((child, host = process) => new Promise(() =>
|
|
|
112
112
|
});
|
|
113
113
|
}), "relay");
|
|
114
114
|
|
|
115
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
115
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/cli/argv-log.js
|
|
116
116
|
import { appendFileSync } from "node:fs";
|
|
117
117
|
var logParsedArgv = /* @__PURE__ */ __name((file, action) => {
|
|
118
118
|
const words = [];
|
|
@@ -136,7 +136,7 @@ var logVersion = /* @__PURE__ */ __name((file) => {
|
|
|
136
136
|
`);
|
|
137
137
|
}, "logVersion");
|
|
138
138
|
|
|
139
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
139
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/cli/entry.js
|
|
140
140
|
var processIo = /* @__PURE__ */ __name(() => ({
|
|
141
141
|
argv: process.argv,
|
|
142
142
|
env: process.env,
|
|
@@ -190,8 +190,8 @@ var startCli = /* @__PURE__ */ __name(async (entry) => {
|
|
|
190
190
|
if (command.optsWithGlobals().dryRun === true)
|
|
191
191
|
return;
|
|
192
192
|
const [{ setupAtStart }, { commandPathOf }] = await Promise.all([
|
|
193
|
-
import("./first-run-
|
|
194
|
-
import("./command-contract-
|
|
193
|
+
import("./first-run-64BTWXDR.js"),
|
|
194
|
+
import("./command-contract-5GJV6EHG.js")
|
|
195
195
|
]);
|
|
196
196
|
await setupAtStart({
|
|
197
197
|
command: entry.app.command,
|
|
@@ -206,7 +206,7 @@ var startCli = /* @__PURE__ */ __name(async (entry) => {
|
|
|
206
206
|
ask: /* @__PURE__ */ __name(async (question, command) => {
|
|
207
207
|
if (headless(command) || io.stdin.isTTY !== true)
|
|
208
208
|
return false;
|
|
209
|
-
const { readSecret } = await import("./prompt-
|
|
209
|
+
const { readSecret } = await import("./prompt-FHHQF3MG.js");
|
|
210
210
|
const answer = await readSecret(`${question} [y/N] `, {
|
|
211
211
|
input: io.stdin,
|
|
212
212
|
output: io.stderr,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
privateFiles,
|
|
14
14
|
providerRequest,
|
|
15
15
|
withSqliteSidecars
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-DNOJKQXQ.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-CZANI3DM.js";
|
|
27
27
|
import {
|
|
28
28
|
uploadBlob
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-26PWIQPP.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-77OOX2OE.js";
|
|
37
37
|
import {
|
|
38
38
|
TG
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-TVA3NXXO.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-YFWRJWL5.js")).TelegramAdapter.open({
|
|
182
182
|
...options,
|
|
183
183
|
...proxyOption(proxy()),
|
|
184
184
|
diagnostic: /* @__PURE__ */ __name((line) => base.streams.diagnostic(line), "diagnostic"),
|
|
@@ -864,7 +864,7 @@ var TELEGRAM_BOT = {
|
|
|
864
864
|
const botId = token.split(":", 1)[0] ?? "";
|
|
865
865
|
if (!/^\d+$/.test(botId))
|
|
866
866
|
throw new CliError("authentication_error", "the bot token has no valid bot id");
|
|
867
|
-
const reader = await (environment.botHistory ?? (await import("./bot-history-
|
|
867
|
+
const reader = await (environment.botHistory ?? (await import("./bot-history-DPPZ43F4.js")).openBotHistory)({
|
|
868
868
|
credentials,
|
|
869
869
|
sessionPath: botSessionFile(profile, botId, env),
|
|
870
870
|
token,
|
|
@@ -884,7 +884,7 @@ var TELEGRAM_BOT = {
|
|
|
884
884
|
return void 0;
|
|
885
885
|
let personal;
|
|
886
886
|
try {
|
|
887
|
-
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-YFWRJWL5.js")).TelegramAdapter.open({
|
|
888
888
|
credentials,
|
|
889
889
|
sessionPath: personalPath,
|
|
890
890
|
checks: words,
|
|
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
readSharedSection,
|
|
5
5
|
writeSharedSection
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ON67U6WV.js";
|
|
7
7
|
import {
|
|
8
8
|
CliError
|
|
9
9
|
} from "./chunk-67SRVSPU.js";
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
__name
|
|
12
12
|
} from "./chunk-ZVVMGPBJ.js";
|
|
13
13
|
|
|
14
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/cli/setup-answers.js
|
|
15
15
|
var PERMISSION_ANSWERS = ["readonly", "allow"];
|
|
16
16
|
var QUESTIONS = ["languages", "tools", "permissions"];
|
|
17
17
|
var SECTION = "setup";
|
|
@@ -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.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/shared-55XJMTPA.js
|
|
8
8
|
var entityKind = /* @__PURE__ */ Symbol.for("drizzle:entityKind");
|
|
9
9
|
var kindsByConstructor = /* @__PURE__ */ new WeakMap();
|
|
10
10
|
function collectKinds(ctor) {
|
|
@@ -8,12 +8,12 @@ import {
|
|
|
8
8
|
ACCESS_SECONDS,
|
|
9
9
|
REFRESH_SECONDS,
|
|
10
10
|
readStored
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-WUF64WOG.js";
|
|
12
12
|
import {
|
|
13
13
|
__name
|
|
14
14
|
} from "./chunk-ZVVMGPBJ.js";
|
|
15
15
|
|
|
16
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/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";
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
unknown
|
|
20
20
|
} from "./chunk-67SRVSPU.js";
|
|
21
21
|
|
|
22
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/entities/fields.js
|
|
23
23
|
var text = string();
|
|
24
24
|
var id = pipe(string(), minLength(1));
|
|
25
25
|
var time = isoTime;
|
|
@@ -33,7 +33,7 @@ var author = strictObject({
|
|
|
33
33
|
name: nullable(text)
|
|
34
34
|
});
|
|
35
35
|
|
|
36
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/entities/note.js
|
|
37
37
|
var link = {
|
|
38
38
|
target_text: nullable(text),
|
|
39
39
|
kind: text,
|
|
@@ -74,7 +74,7 @@ var note = strictObject({
|
|
|
74
74
|
backlinks: optional(array(strictObject({ from: reference, ...link })))
|
|
75
75
|
});
|
|
76
76
|
|
|
77
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
77
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/entities/knowledge-lists.js
|
|
78
78
|
var organization = strictObject({
|
|
79
79
|
id,
|
|
80
80
|
ref: reference,
|
|
@@ -5,15 +5,15 @@ import {
|
|
|
5
5
|
readLock,
|
|
6
6
|
releaseLock,
|
|
7
7
|
takeLock
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-BT6PWDM6.js";
|
|
9
9
|
import {
|
|
10
10
|
__name
|
|
11
11
|
} from "./chunk-ZVVMGPBJ.js";
|
|
12
12
|
|
|
13
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
|
|
14
14
|
import { existsSync as existsSync2, readFileSync as readFileSync2 } from "node:fs";
|
|
15
15
|
|
|
16
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/mcp/http/activity.js
|
|
17
17
|
import { randomBytes } from "node:crypto";
|
|
18
18
|
import { chmodSync, existsSync, mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
19
19
|
import { dirname } from "node:path";
|
|
@@ -86,7 +86,7 @@ var activityRecorder = /* @__PURE__ */ __name((path, now = Date.now) => {
|
|
|
86
86
|
};
|
|
87
87
|
}, "activityRecorder");
|
|
88
88
|
|
|
89
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
89
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._95f40a748301e48ce1af109feea5b293/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
|
|
90
90
|
var ACCESS_SECONDS = 60 * 60;
|
|
91
91
|
var REFRESH_SECONDS = 30 * 24 * 60 * 60;
|
|
92
92
|
var readStored = /* @__PURE__ */ __name((path) => existsSync2(path) ? JSON.parse(readFileSync2(path, "utf8")) : { clients: [], tokens: [] }, "readStored");
|