@wirecat/tg-cli 0.116.0 → 0.118.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/bot/transport.d.ts +1 -1
- package/dist/bot/transport.d.ts.map +1 -1
- package/dist/bot/transport.js +42 -30
- package/dist/bot/transport.js.map +1 -1
- package/dist/bundle/{adapter-6CLMTQOV.js → adapter-4YNP6VCO.js} +70 -61
- package/dist/bundle/{all-profiles-R2UZMH24.js → all-profiles-MIQDYAGO.js} +10 -10
- package/dist/bundle/{anthropic-QKIPHV2Z.js → anthropic-NTASPJYE.js} +6 -6
- package/dist/bundle/{app-server-AZB2MFK6.js → app-server-UJZBJ2SK.js} +49 -46
- package/dist/bundle/{bot-api-2IM243J4.js → bot-api-JZAD4L3N.js} +49 -49
- package/dist/bundle/{bot-history-G6CRVCL2.js → bot-history-OUDHH3NU.js} +18 -18
- package/dist/bundle/{bun-JDKPISPX.js → bun-EC4HDIRD.js} +2 -2
- package/dist/bundle/{bun-sqlite-X5PY5IQT.js → bun-sqlite-A4HJR6KO.js} +5 -5
- package/dist/bundle/{chunk-SD5PUYKF.js → chunk-2KQHUBTV.js} +12 -12
- package/dist/bundle/{chunk-QHBVGKC3.js → chunk-2NA5KVP6.js} +210 -82
- package/dist/bundle/{chunk-PPLFOIYX.js → chunk-3MQOLYAN.js} +4 -4
- package/dist/bundle/{chunk-QGL2UGML.js → chunk-4BV4UMBB.js} +738 -235
- package/dist/bundle/{chunk-Y6VWGJ4Q.js → chunk-57LKX6N2.js} +4 -2
- package/dist/bundle/{chunk-BGMV66FC.js → chunk-5IIU7X4S.js} +1 -1
- package/dist/bundle/{chunk-H72UEHNG.js → chunk-5LDWBEWU.js} +55 -33
- package/dist/bundle/{chunk-XQUTJITP.js → chunk-5QYU7B27.js} +763 -130
- package/dist/bundle/chunk-65XV5PPI.js +64 -0
- package/dist/bundle/{chunk-NUYRMU56.js → chunk-6AXUEJGL.js} +2 -2
- package/dist/bundle/{chunk-N42VUNTO.js → chunk-6RI4TEIC.js} +2 -2
- package/dist/bundle/{chunk-VQPLHOVQ.js → chunk-6ZMTEUVU.js} +6 -6
- package/dist/bundle/{chunk-MQ7MCVZV.js → chunk-76EKXFX2.js} +2 -2
- package/dist/bundle/{chunk-K62YATVD.js → chunk-BNEP5EOV.js} +18 -4
- package/dist/bundle/{chunk-EB2IULWB.js → chunk-BXTDAGM4.js} +2 -2
- package/dist/bundle/{chunk-HBUJNNZD.js → chunk-CEY43D3A.js} +31 -29
- package/dist/bundle/chunk-DKFC5ZZ3.js +208 -0
- package/dist/bundle/{chunk-FDI4GOIP.js → chunk-DSZJREEO.js} +463 -358
- package/dist/bundle/{chunk-76CX2YPT.js → chunk-EPCFXKTX.js} +8 -8
- package/dist/bundle/{chunk-KA6EGOJY.js → chunk-EPXVRJAX.js} +2 -2
- package/dist/bundle/{chunk-4IQZRW4O.js → chunk-EQJ6NLF5.js} +13 -13
- package/dist/bundle/{chunk-4D5AUWAY.js → chunk-FHMK6OK4.js} +43 -25
- package/dist/bundle/{chunk-RSDIPQXP.js → chunk-G3RT2EQI.js} +2 -2
- package/dist/bundle/{chunk-IR4S7POE.js → chunk-GI4MTNA2.js} +8 -8
- package/dist/bundle/{chunk-HK6SIIGG.js → chunk-GIM37COQ.js} +3 -3
- package/dist/bundle/{chunk-UCSFO5GW.js → chunk-GLRRCKP6.js} +3 -3
- package/dist/bundle/{chunk-YYKJN6H5.js → chunk-GXCJ47SJ.js} +1499 -710
- package/dist/bundle/{chunk-GV7ZJ33M.js → chunk-H6S3C3MH.js} +4 -4
- package/dist/bundle/{chunk-LXH3SKY3.js → chunk-HJNRIK5X.js} +8 -8
- package/dist/bundle/{chunk-5VFPUOJO.js → chunk-I4TI5HDJ.js} +11 -11
- package/dist/bundle/{chunk-RSNGMNU5.js → chunk-JLJKGKU2.js} +6 -6
- package/dist/bundle/{chunk-T7CDLV33.js → chunk-JPVFYMSQ.js} +22 -14
- package/dist/bundle/{chunk-B4UOCWM4.js → chunk-JWIUK3SK.js} +2 -2
- package/dist/bundle/{chunk-LSKGCJWD.js → chunk-JWPSVS6C.js} +21246 -4044
- package/dist/bundle/{chunk-JJMQA272.js → chunk-JZETEZHC.js} +8 -21
- package/dist/bundle/{chunk-42GK3XRS.js → chunk-KEDHX6XG.js} +2 -2
- package/dist/bundle/{chunk-QAKL3GXB.js → chunk-MBH7IKLT.js} +1 -1
- package/dist/bundle/{chunk-HLNYJPAB.js → chunk-MZNOASAW.js} +2 -2
- package/dist/bundle/{chunk-YLRTLZF6.js → chunk-NKFTZVQU.js} +1 -1
- package/dist/bundle/{chunk-577MFPCP.js → chunk-NMT2VGEI.js} +3 -3
- package/dist/bundle/{chunk-5ZIBAYIZ.js → chunk-NUCDEOFC.js} +2 -2
- package/dist/bundle/{chunk-NL3PAFAE.js → chunk-OTQDJUES.js} +6 -6
- package/dist/bundle/{chunk-KV4267S4.js → chunk-P3ASN72F.js} +1 -1
- package/dist/bundle/{chunk-TZVL4U7U.js → chunk-PB252TT3.js} +4 -2
- package/dist/bundle/{chunk-HUOXUI2M.js → chunk-PO74BDER.js} +58 -47
- package/dist/bundle/{chunk-LFKEKSI5.js → chunk-PW3HFIJA.js} +523 -239
- package/dist/bundle/{chunk-5FCONCJO.js → chunk-PWCQC56A.js} +1 -1
- package/dist/bundle/{chunk-XBIPSSKI.js → chunk-QOGYHU3Q.js} +4 -4
- package/dist/bundle/{chunk-JFTCOV37.js → chunk-RG2E7ZQZ.js} +180 -25
- package/dist/bundle/{chunk-R52RMHWF.js → chunk-TMTEWOQS.js} +3 -3
- package/dist/bundle/{chunk-I6JF43YP.js → chunk-TSTEZNSX.js} +3 -3
- package/dist/bundle/{chunk-YPF6OS37.js → chunk-VW6BF6M7.js} +1 -1
- package/dist/bundle/{chunk-SKZ2E3WC.js → chunk-Y64SI2RO.js} +47 -1
- package/dist/bundle/{chunk-DP5LRU7K.js → chunk-YEOSV6JC.js} +1 -1
- package/dist/bundle/{chunk-OX6EWGSG.js → chunk-YHZFGUAP.js} +19 -19
- package/dist/bundle/{chunk-N6TIFJHW.js → chunk-YPRUWRKE.js} +1 -1
- package/dist/bundle/{chunk-PPSUA3IZ.js → chunk-ZMUC3UQO.js} +3 -3
- package/dist/bundle/{chunk-PXMHBTK3.js → chunk-ZXXTJF4Z.js} +4 -4
- package/dist/bundle/command-contract-7GZ6HAA6.js +33 -0
- package/dist/bundle/{decode-W6YPTGJA.js → decode-NMNPLKNR.js} +5 -5
- package/dist/bundle/{dispatch-H7EFNBEH.js → dispatch-OP27MWX5.js} +8 -8
- package/dist/bundle/{echarts-YAWDIC5D.js → echarts-S46LEIPS.js} +2 -2
- package/dist/bundle/{embed-EN4UTLV5.js → embed-I5ZYHGYC.js} +6 -6
- package/dist/bundle/{embedder-HEKHRL7E.js → embedder-LTJI67N2.js} +9 -9
- package/dist/bundle/{entry-2KB6MTCG.js → entry-O6BUPXF7.js} +7 -7
- package/dist/bundle/{failure-3DU3HLBQ.js → failure-4JUQFXJT.js} +2 -2
- package/dist/bundle/{first-run-LBG26WWO.js → first-run-PMZNCDGD.js} +11 -11
- package/dist/bundle/first-screen-BGML5DSO.js +31 -0
- package/dist/bundle/{instructions-HA62QNPR.js → instructions-AUEGY3VO.js} +1 -1
- package/dist/bundle/{mcp-PPVOM4SE.js → mcp-M4QN2E7R.js} +2 -2
- package/dist/bundle/{node-MZ2VWSQQ.js → node-XRA7RBCQ.js} +2 -2
- package/dist/bundle/{node-sqlite-KNNS6DCM.js → node-sqlite-DEZO6LRS.js} +6 -6
- package/dist/bundle/{oauth-KWUABBSQ.js → oauth-DAVC7WCD.js} +7 -7
- package/dist/bundle/{open-JXMCYCIV.js → open-DE2YO4T7.js} +5 -5
- package/dist/bundle/{openai-HL3IR4VT.js → openai-5BKGAULH.js} +14 -14
- package/dist/bundle/{process-K2FICLWY.js → process-4ZHPNUIQ.js} +1 -1
- package/dist/bundle/{program-IFOMT4JS.js → program-EGTKSNB4.js} +51 -51
- package/dist/bundle/{prompt-HVD3Q77P.js → prompt-HWCWHHPE.js} +5 -5
- package/dist/bundle/{proxy-transport-PA5SGMRY.js → proxy-transport-4DPZB2W2.js} +5 -5
- package/dist/bundle/{recognize-HHLVETKI.js → recognize-NG6RXNGF.js} +4 -4
- package/dist/bundle/{remote-HUAKXJCS.js → remote-ZKXIIGYH.js} +7 -7
- package/dist/bundle/{rerank-NWFIV7OF.js → rerank-TX5QFURV.js} +7 -7
- package/dist/bundle/{serve-ANUKAJJN.js → serve-XAS6DECW.js} +9 -9
- package/dist/bundle/{server-7Q7WAOHO.js → server-CNPIWBYU.js} +35 -35
- package/dist/bundle/server-FRTKLHZF.js +60 -0
- package/dist/bundle/{state-Y2AJ5XTP.js → state-3HTUETTS.js} +6 -6
- package/dist/bundle/{store-S3IG5KWL.js → store-B5VZWJHN.js} +23 -13
- package/dist/bundle/store-maintenance-command-VG3CLELA.js +50 -0
- package/dist/bundle/tg.js +13 -13
- package/dist/telegram/account.d.ts.map +1 -1
- package/dist/telegram/account.js +4 -1
- package/dist/telegram/account.js.map +1 -1
- package/dist/telegram/errors.d.ts.map +1 -1
- package/dist/telegram/errors.js +2 -1
- package/dist/telegram/errors.js.map +1 -1
- package/dist/telegram/feature.d.ts +4 -1
- package/dist/telegram/feature.d.ts.map +1 -1
- package/dist/telegram/feature.js +5 -2
- package/dist/telegram/feature.js.map +1 -1
- package/dist/telegram/sending.d.ts.map +1 -1
- package/dist/telegram/sending.js +24 -10
- package/dist/telegram/sending.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/bundle/chunk-K2RYCCTP.js +0 -48
- package/dist/bundle/chunk-ZDIAPICE.js +0 -132
- package/dist/bundle/command-contract-DPXM4SZT.js +0 -33
- package/dist/bundle/first-screen-TGTSLUI6.js +0 -31
- package/dist/bundle/server-HCQS4YDQ.js +0 -60
- package/dist/bundle/store-maintenance-command-V2WC4G6J.js +0 -50
- /package/dist/bundle/{chunk-LU3WKZBA.js → chunk-VOXIGICJ.js} +0 -0
|
@@ -1,35 +1,25 @@
|
|
|
1
1
|
import { createRequire as __bundleRequire } from "node:module";
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
|
+
isCliFailure,
|
|
4
5
|
secretNamed,
|
|
5
6
|
withoutSecrets
|
|
6
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-Y64SI2RO.js";
|
|
7
8
|
import {
|
|
8
9
|
isContentKey
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import {
|
|
11
|
-
errorCodes
|
|
12
|
-
} from "./chunk-EB2IULWB.js";
|
|
10
|
+
} from "./chunk-YHZFGUAP.js";
|
|
13
11
|
import {
|
|
14
12
|
__name
|
|
15
13
|
} from "./chunk-ZVVMGPBJ.js";
|
|
16
14
|
|
|
17
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/runs/run-context.js
|
|
18
16
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
19
17
|
import { createHash } from "node:crypto";
|
|
20
18
|
|
|
21
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
|
|
22
20
|
import { homedir } from "node:os";
|
|
23
21
|
|
|
24
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25
|
-
var isCliFailure = /* @__PURE__ */ __name((value) => value instanceof Error && value.name === "CliError" && errorCodes.includes(value.code), "isCliFailure");
|
|
26
|
-
var isCommanderFailure = /* @__PURE__ */ __name((value) => {
|
|
27
|
-
const { code, exitCode } = value ?? {};
|
|
28
|
-
return value instanceof Error && typeof code === "string" && code.startsWith("commander.") && typeof exitCode === "number";
|
|
29
|
-
}, "isCommanderFailure");
|
|
30
|
-
var failureKey = /* @__PURE__ */ __name((error) => isCliFailure(error) ? error.code : error instanceof Error ? error.name : "error", "failureKey");
|
|
31
|
-
|
|
32
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.567.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.77.1_commander@15._f1cdf35b93ce465cee2c32ebaca13ce7/node_modules/@wirecat/cli-core/dist/runs/events.js
|
|
22
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/runs/events.js
|
|
33
23
|
var providerErrorKey = /* @__PURE__ */ __name((value) => typeof value === "string" && /^[A-Za-z][A-Za-z0-9._-]{0,63}$/.test(value) ? value : void 0, "providerErrorKey");
|
|
34
24
|
var renderEvent = /* @__PURE__ */ __name((event) => {
|
|
35
25
|
if (event.event === "warning") {
|
|
@@ -77,7 +67,7 @@ var MARK = { request: "\u2192", response: "\u2190", cache: "\u2022", warning: "!
|
|
|
77
67
|
var age = /* @__PURE__ */ __name((ms) => ms < 1e3 ? `${ms}ms` : `${Math.round(ms / 1e3)}s`, "age");
|
|
78
68
|
var size = /* @__PURE__ */ __name((bytes) => bytes < 1e3 ? `${bytes} B` : `${(bytes / 1e3).toFixed(1)} kB`, "size");
|
|
79
69
|
|
|
80
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
70
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
|
|
81
71
|
var MESSAGE_AT_MOST = 500;
|
|
82
72
|
var CAUSES_AT_MOST = 5;
|
|
83
73
|
var FRAMES_AT_MOST = 15;
|
|
@@ -186,7 +176,7 @@ var redactText = /* @__PURE__ */ __name((text) => {
|
|
|
186
176
|
return out.length > MESSAGE_AT_MOST ? `${out.slice(0, MESSAGE_AT_MOST)}\u2026` : out;
|
|
187
177
|
}, "redactText");
|
|
188
178
|
|
|
189
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
179
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/runs/run-context.js
|
|
190
180
|
var REDACTED = "[redacted]";
|
|
191
181
|
var keepsSuccess = /* @__PURE__ */ __name(({ record, fromFlag, env, caller, persistent = false }) => {
|
|
192
182
|
if (!record)
|
|
@@ -349,9 +339,6 @@ var runContextOf = /* @__PURE__ */ __name(({ bin, command, program, argv, env, r
|
|
|
349
339
|
}, "runContextOf");
|
|
350
340
|
|
|
351
341
|
export {
|
|
352
|
-
isCliFailure,
|
|
353
|
-
isCommanderFailure,
|
|
354
|
-
failureKey,
|
|
355
342
|
providerErrorKey,
|
|
356
343
|
renderEvent,
|
|
357
344
|
errorDetailOf,
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
agentOf,
|
|
30
30
|
clientHash,
|
|
31
31
|
currentCaller
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-JZETEZHC.js";
|
|
33
33
|
import {
|
|
34
34
|
__name
|
|
35
35
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -541,7 +541,7 @@ function toError(value) {
|
|
|
541
541
|
}
|
|
542
542
|
__name(toError, "toError");
|
|
543
543
|
|
|
544
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
544
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/mcp/caller.js
|
|
545
545
|
var callingAgent = /* @__PURE__ */ __name((fallback, caller = currentCaller()) => {
|
|
546
546
|
const client = caller?.agent?.client?.name;
|
|
547
547
|
if (client && client !== "unknown")
|
|
@@ -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.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/mcp/stdio-wire.js
|
|
8
8
|
import { PassThrough, Writable } from "node:stream";
|
|
9
9
|
var lineReader = /* @__PURE__ */ __name((onMessage) => {
|
|
10
10
|
let rest = "";
|
|
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
defineReasons
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-EPCFXKTX.js";
|
|
6
6
|
|
|
7
7
|
// dist/reasons.js
|
|
8
8
|
var REASONS = defineReasons([
|
|
@@ -26,7 +26,7 @@ var REASONS = defineReasons([
|
|
|
26
26
|
].map(([reason, code, message]) => ({ reason, code, message, details: [] })));
|
|
27
27
|
|
|
28
28
|
// dist/version.js
|
|
29
|
-
var VERSION = "0.
|
|
29
|
+
var VERSION = "0.118.0";
|
|
30
30
|
|
|
31
31
|
// dist/identity.js
|
|
32
32
|
var TG = {
|
|
@@ -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.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/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");
|
|
@@ -2,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
unit
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-OTQDJUES.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-BXTDAGM4.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.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/embeddings/remote.js
|
|
14
14
|
import { setTimeout } from "node:timers/promises";
|
|
15
15
|
var OPENAI_URL = "https://api.openai.com/v1";
|
|
16
16
|
var OPENAI_MODELS = {
|
|
@@ -3,10 +3,10 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
proxyError,
|
|
5
5
|
proxyLabel
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-JWIUK3SK.js";
|
|
7
7
|
import {
|
|
8
8
|
CliError
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-BXTDAGM4.js";
|
|
10
10
|
import {
|
|
11
11
|
__name
|
|
12
12
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -5,23 +5,23 @@ import {
|
|
|
5
5
|
installFiles,
|
|
6
6
|
megabytes,
|
|
7
7
|
sharedModelsDirectory
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-JPVFYMSQ.js";
|
|
9
9
|
import {
|
|
10
10
|
importFrom
|
|
11
11
|
} from "./chunk-Y5E2WNWB.js";
|
|
12
12
|
import {
|
|
13
13
|
CliError
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-BXTDAGM4.js";
|
|
15
15
|
import {
|
|
16
16
|
__name
|
|
17
17
|
} from "./chunk-ZVVMGPBJ.js";
|
|
18
18
|
|
|
19
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/embeddings/embed.js
|
|
20
20
|
import { readFileSync as readFileSync2 } from "node:fs";
|
|
21
21
|
import { availableParallelism } from "node:os";
|
|
22
22
|
import { basename, join as join2 } from "node:path";
|
|
23
23
|
|
|
24
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/embeddings/onnx-runtime.js
|
|
25
25
|
import { createHash } from "node:crypto";
|
|
26
26
|
import { copyFileSync, mkdirSync, mkdtempSync, readFileSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
27
27
|
import { join } from "node:path";
|
|
@@ -678,7 +678,7 @@ var Unzip = /* @__PURE__ */ (function() {
|
|
|
678
678
|
return Unzip2;
|
|
679
679
|
})();
|
|
680
680
|
|
|
681
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
681
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/embeddings/onnx-runtime.js
|
|
682
682
|
var ONNX_RUNTIME_VERSION = "1.30.0";
|
|
683
683
|
var release = /* @__PURE__ */ __name((name, sha256, bytes) => ({
|
|
684
684
|
name,
|
|
@@ -858,7 +858,7 @@ var openSession = /* @__PURE__ */ __name(async (bytes, threads, options = {}) =>
|
|
|
858
858
|
return { ort, session: await ort.InferenceSession.create(bytes, options) };
|
|
859
859
|
}, "openSession");
|
|
860
860
|
|
|
861
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
861
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/embeddings/embed.js
|
|
862
862
|
var textModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedModelsDirectory("text", env), "textModelsDirectory");
|
|
863
863
|
var placedText = /* @__PURE__ */ __name((model, directory) => model.files.map((file) => [file, join2(directory, model.id, file.name)]), "placedText");
|
|
864
864
|
var isTextModelInstalled = /* @__PURE__ */ __name((model, directory) => filesPresent(placedText(model, directory)), "isTextModelInstalled");
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/installer.js
|
|
8
8
|
var installerOf = /* @__PURE__ */ __name((scriptPath) => {
|
|
9
9
|
const path = scriptPath.replaceAll("\\", "/");
|
|
10
10
|
if (path.includes("/_npx/"))
|
|
@@ -2,24 +2,26 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
CliError
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-BXTDAGM4.js";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/ports/app.js
|
|
11
11
|
var envName = /* @__PURE__ */ __name((app, name) => `${app.envPrefix}_${name}`, "envName");
|
|
12
12
|
var readOnlyLockOf = /* @__PURE__ */ __name((app, env) => {
|
|
13
13
|
const name = envName(app, "READ_ONLY");
|
|
14
14
|
const value = env[name];
|
|
15
15
|
return value === void 0 || value.trim() === "" || value === "0" ? void 0 : name;
|
|
16
16
|
}, "readOnlyLockOf");
|
|
17
|
+
var mailHolderVariable = /* @__PURE__ */ __name((app) => envName(app, "MAIL_HOLDER"), "mailHolderVariable");
|
|
17
18
|
var MESSENGER_CHANGE_REFUSAL = "send, react, change chats or change the account";
|
|
18
19
|
var readOnlyRefusal = /* @__PURE__ */ __name((lock, what) => new CliError("permission_error", `this process is read-only (${lock}) \u2014 it cannot ${what}`), "readOnlyRefusal");
|
|
19
20
|
|
|
20
21
|
export {
|
|
21
22
|
envName,
|
|
22
23
|
readOnlyLockOf,
|
|
24
|
+
mailHolderVariable,
|
|
23
25
|
MESSENGER_CHANGE_REFUSAL,
|
|
24
26
|
readOnlyRefusal
|
|
25
27
|
};
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
refuseLacking,
|
|
14
14
|
servicesFor,
|
|
15
15
|
throughWrapper
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-DSZJREEO.js";
|
|
17
17
|
import {
|
|
18
18
|
CEILING_KEY,
|
|
19
19
|
LOG_ATTRIBUTES,
|
|
@@ -38,35 +38,37 @@ import {
|
|
|
38
38
|
rememberAccount,
|
|
39
39
|
rootOf2 as rootOf,
|
|
40
40
|
skipFlagFor
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-PW3HFIJA.js";
|
|
42
42
|
import {
|
|
43
|
-
isCliFailure,
|
|
44
43
|
providerErrorKey
|
|
45
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-JZETEZHC.js";
|
|
46
45
|
import {
|
|
47
46
|
MESSENGER_CHANGE_REFUSAL,
|
|
48
47
|
readOnlyRefusal
|
|
49
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-PB252TT3.js";
|
|
50
49
|
import {
|
|
51
50
|
servingProfiles
|
|
52
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-GIM37COQ.js";
|
|
53
52
|
import {
|
|
54
53
|
openStore
|
|
55
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-JWPSVS6C.js";
|
|
55
|
+
import {
|
|
56
|
+
isCliFailure
|
|
57
|
+
} from "./chunk-Y64SI2RO.js";
|
|
56
58
|
import {
|
|
57
59
|
logRecordOf,
|
|
58
60
|
realSleep,
|
|
59
61
|
resolvePaths,
|
|
60
62
|
writeSecurely
|
|
61
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-YHZFGUAP.js";
|
|
62
64
|
import {
|
|
63
65
|
CliError
|
|
64
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-BXTDAGM4.js";
|
|
65
67
|
import {
|
|
66
68
|
__name
|
|
67
69
|
} from "./chunk-ZVVMGPBJ.js";
|
|
68
70
|
|
|
69
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
71
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/cli/messenger/ask.js
|
|
70
72
|
import { openSync } from "node:fs";
|
|
71
73
|
import { createInterface } from "node:readline";
|
|
72
74
|
import { ReadStream } from "node:tty";
|
|
@@ -121,10 +123,10 @@ var terminalAsker = /* @__PURE__ */ __name((command) => async (key, request) =>
|
|
|
121
123
|
throw new CliError("cancelled", `${key}: not done \u2014 the answer was no`);
|
|
122
124
|
}, "terminalAsker");
|
|
123
125
|
|
|
124
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
126
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/sends/guard.js
|
|
125
127
|
import { randomUUID } from "node:crypto";
|
|
126
128
|
|
|
127
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
129
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/sends/flood.js
|
|
128
130
|
import { mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
129
131
|
import { dirname, join } from "node:path";
|
|
130
132
|
var MOST_DEADLINES = 50;
|
|
@@ -208,11 +210,11 @@ var FloodMemory = class {
|
|
|
208
210
|
}
|
|
209
211
|
};
|
|
210
212
|
|
|
211
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
213
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/sends/journal.js
|
|
212
214
|
import { appendFileSync, mkdirSync as mkdirSync3, readFileSync as readFileSync2 } from "node:fs";
|
|
213
215
|
import { dirname as dirname3, join as join2 } from "node:path";
|
|
214
216
|
|
|
215
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
217
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/sends/file-lock.js
|
|
216
218
|
import { closeSync, mkdirSync as mkdirSync2, openSync as openSync2, statSync, unlinkSync } from "node:fs";
|
|
217
219
|
import { dirname as dirname2 } from "node:path";
|
|
218
220
|
var LOCK_WAIT_MS = 5e3;
|
|
@@ -279,7 +281,7 @@ var lockTime = /* @__PURE__ */ __name((lock) => {
|
|
|
279
281
|
}
|
|
280
282
|
}, "lockTime");
|
|
281
283
|
|
|
282
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
284
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/sends/journal.js
|
|
283
285
|
var sendsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "sends", `${profile}.jsonl`), "sendsPathFor");
|
|
284
286
|
var SendJournal = class {
|
|
285
287
|
static {
|
|
@@ -356,7 +358,7 @@ var withSendId = /* @__PURE__ */ __name((entry) => {
|
|
|
356
358
|
return cid === void 0 || rest.sendId !== void 0 ? rest : { ...rest, sendId: String(cid) };
|
|
357
359
|
}, "withSendId");
|
|
358
360
|
|
|
359
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
361
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/sends/recipients.js
|
|
360
362
|
import { existsSync, readFileSync as readFileSync3, rmSync } from "node:fs";
|
|
361
363
|
import { join as join3 } from "node:path";
|
|
362
364
|
var recipientsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "profiles", `${profile}.recipients.json`), "recipientsPathFor");
|
|
@@ -468,7 +470,7 @@ var RecipientList = class {
|
|
|
468
470
|
}
|
|
469
471
|
};
|
|
470
472
|
|
|
471
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
473
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/sends/guard.js
|
|
472
474
|
var HOUR_MS = 60 * 60 * 1e3;
|
|
473
475
|
var READS_UNDER_HOLD = /* @__PURE__ */ new Set([
|
|
474
476
|
"attachments.extract",
|
|
@@ -661,7 +663,7 @@ var guardFor = /* @__PURE__ */ __name((app, settings, warn, env = process.env, a
|
|
|
661
663
|
}), "guardFor");
|
|
662
664
|
var journalFailure = /* @__PURE__ */ __name((error) => error?.code ?? (error instanceof Error ? error.name : "error"), "journalFailure");
|
|
663
665
|
|
|
664
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
666
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/sends/pace.js
|
|
665
667
|
import { readFileSync as readFileSync4, renameSync as renameSync2, writeFileSync as writeFileSync2 } from "node:fs";
|
|
666
668
|
import { join as join4 } from "node:path";
|
|
667
669
|
var DEFAULT_PACE = { perMinute: 60, burst: 20 };
|
|
@@ -719,8 +721,39 @@ var Pacer = class {
|
|
|
719
721
|
renameSync2(temporary, this.path);
|
|
720
722
|
}
|
|
721
723
|
};
|
|
724
|
+
var ANNOUNCE_WAIT_MS = 5e3;
|
|
725
|
+
var LONGEST_PACE_WAIT_MS = 5 * 6e4;
|
|
726
|
+
var waitForTurn = /* @__PURE__ */ __name(async (pacer, options) => {
|
|
727
|
+
const { name, operation, warn } = options;
|
|
728
|
+
const now = options.now ?? Date.now;
|
|
729
|
+
let at = now();
|
|
730
|
+
try {
|
|
731
|
+
at = await pacer.reserve();
|
|
732
|
+
} catch (error) {
|
|
733
|
+
warn?.(`could not remember ${name}'s wait (${error instanceof Error ? error.message : String(error)})`, {
|
|
734
|
+
event: "warning",
|
|
735
|
+
code: "wait_not_remembered",
|
|
736
|
+
operation
|
|
737
|
+
});
|
|
738
|
+
}
|
|
739
|
+
const waitMs = at - now();
|
|
740
|
+
if (waitMs <= 0)
|
|
741
|
+
return;
|
|
742
|
+
if (waitMs > LONGEST_PACE_WAIT_MS)
|
|
743
|
+
throw new CliError("rate_limited", `${name} asked this profile to wait, ${Math.ceil(waitMs / 1e3)} s are left \u2014 nothing was sent to ${name}`, { retry_after_ms: waitMs, retry_at: new Date(at).toISOString(), remembered: true });
|
|
744
|
+
if (waitMs >= ANNOUNCE_WAIT_MS) {
|
|
745
|
+
const seconds = Math.ceil(waitMs / 1e3);
|
|
746
|
+
warn?.(`waiting ${seconds} s to keep this profile's pace with ${name}`, {
|
|
747
|
+
event: "warning",
|
|
748
|
+
code: "pace_wait",
|
|
749
|
+
operation,
|
|
750
|
+
counts: { seconds }
|
|
751
|
+
});
|
|
752
|
+
}
|
|
753
|
+
await (options.sleep ?? ((ms) => new Promise((resolve) => setTimeout(resolve, ms))))(waitMs);
|
|
754
|
+
}, "waitForTurn");
|
|
722
755
|
|
|
723
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
756
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/cli/permission-keys.js
|
|
724
757
|
var pathOf = /* @__PURE__ */ __name((command) => {
|
|
725
758
|
const words = [];
|
|
726
759
|
for (let at = command; at?.parent; at = at.parent)
|
|
@@ -780,12 +813,10 @@ var refuseUnknownPermissionKeys = /* @__PURE__ */ __name((command, settings, too
|
|
|
780
813
|
throw new CliError("validation_error", `--permission ${key} names no command`, { permission: key });
|
|
781
814
|
}, "refuseUnknownPermissionKeys");
|
|
782
815
|
|
|
783
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
816
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/cli/messenger/flooded.js
|
|
784
817
|
var LONG_LIVED = /* @__PURE__ */ new Set(["self", "newSendId", "close", "formatMarkdown", "formatHtml", "storedChats"]);
|
|
785
818
|
var LISTENING = /* @__PURE__ */ new Set(["watch", "feed", "listen", "listenHistory"]);
|
|
786
819
|
var BLOCKING = /* @__PURE__ */ new Set(["frozen", "limited", "banned"]);
|
|
787
|
-
var ANNOUNCE_WAIT_MS = 5e3;
|
|
788
|
-
var LONGEST_PACE_WAIT_MS = 5 * 6e4;
|
|
789
820
|
var chatOf = /* @__PURE__ */ __name((args) => typeof args[0] === "string" && /^-?\d+$/.test(args[0]) ? args[0] : void 0, "chatOf");
|
|
790
821
|
var flooded = /* @__PURE__ */ __name((messenger, memory, { name, warn, pacer }) => {
|
|
791
822
|
const kept = /* @__PURE__ */ __name(async (operation, what2) => {
|
|
@@ -841,28 +872,8 @@ var flooded = /* @__PURE__ */ __name((messenger, memory, { name, warn, pacer })
|
|
|
841
872
|
await kept(operation, () => pacer.holdFor(waitMs));
|
|
842
873
|
}, "noted");
|
|
843
874
|
const turn = /* @__PURE__ */ __name(async (operation) => {
|
|
844
|
-
if (
|
|
845
|
-
|
|
846
|
-
let at = Date.now();
|
|
847
|
-
await kept(operation, async () => {
|
|
848
|
-
at = await pacer.reserve();
|
|
849
|
-
});
|
|
850
|
-
const waitMs = at - Date.now();
|
|
851
|
-
if (waitMs <= 0)
|
|
852
|
-
return;
|
|
853
|
-
if (waitMs > LONGEST_PACE_WAIT_MS) {
|
|
854
|
-
throw new CliError("rate_limited", `${name} asked this profile to wait, ${Math.ceil(waitMs / 1e3)} s are left \u2014 nothing was sent to ${name}`, { retry_after_ms: waitMs, retry_at: new Date(at).toISOString(), remembered: true });
|
|
855
|
-
}
|
|
856
|
-
if (waitMs >= ANNOUNCE_WAIT_MS) {
|
|
857
|
-
const seconds = Math.ceil(waitMs / 1e3);
|
|
858
|
-
warn(`waiting ${seconds} s to keep this profile's pace with ${name}`, {
|
|
859
|
-
event: "warning",
|
|
860
|
-
code: "pace_wait",
|
|
861
|
-
operation,
|
|
862
|
-
counts: { seconds }
|
|
863
|
-
});
|
|
864
|
-
}
|
|
865
|
-
await new Promise((resolve) => setTimeout(resolve, waitMs));
|
|
875
|
+
if (pacer)
|
|
876
|
+
await waitForTurn(pacer, { name, operation, warn });
|
|
866
877
|
}, "turn");
|
|
867
878
|
return throughWrapper(messenger, {}, (operation, call) => {
|
|
868
879
|
if (LONG_LIVED.has(operation))
|
|
@@ -899,7 +910,7 @@ var flooded = /* @__PURE__ */ __name((messenger, memory, { name, warn, pacer })
|
|
|
899
910
|
});
|
|
900
911
|
}, "flooded");
|
|
901
912
|
|
|
902
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
913
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/cli/messenger/observed.js
|
|
903
914
|
var observed = /* @__PURE__ */ __name((messenger, events) => {
|
|
904
915
|
const timed = /* @__PURE__ */ __name(async (operation, named, work, after) => {
|
|
905
916
|
const write = currentOperation();
|
|
@@ -998,7 +1009,7 @@ var byPart = /* @__PURE__ */ __name((batch, counts) => {
|
|
|
998
1009
|
counts[part] = (counts[part] ?? 0) + items.length;
|
|
999
1010
|
}, "byPart");
|
|
1000
1011
|
|
|
1001
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1012
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/cli/messenger/stored.js
|
|
1002
1013
|
var REKEY_PACING = { lockMs: 50, pauseMs: 25 };
|
|
1003
1014
|
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" }) => {
|
|
1004
1015
|
let warned = false;
|
|
@@ -1574,7 +1585,7 @@ var keep = /* @__PURE__ */ __name(async (store, account, event, seenAt, among, c
|
|
|
1574
1585
|
}
|
|
1575
1586
|
}, "keep");
|
|
1576
1587
|
|
|
1577
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1588
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.80.8_commander@15._981e87e6afb3f510e9b2b59ded3c7286/node_modules/@wirecat/cli-core/dist/cli/messenger/context.js
|
|
1578
1589
|
var lazyStore = /* @__PURE__ */ __name((env, command, version) => {
|
|
1579
1590
|
let opened;
|
|
1580
1591
|
return {
|