@wirecat/tg-cli 0.109.0 → 0.110.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-6JLFYFL5.js → adapter-JWUCHTXU.js} +45 -45
- package/dist/bundle/{all-profiles-X7Y3T5S4.js → all-profiles-OMRCKP54.js} +8 -8
- package/dist/bundle/{anthropic-LGVXAADT.js → anthropic-WXFHH74P.js} +5 -5
- package/dist/bundle/{app-server-UI3AFSJX.js → app-server-ILIPNO6T.js} +40 -40
- package/dist/bundle/{bot-api-TQYRNYJQ.js → bot-api-KV765AZK.js} +46 -46
- package/dist/bundle/{bot-history-DDNTNMNB.js → bot-history-3P6EIM5L.js} +15 -15
- package/dist/bundle/{bun-WXGS6HML.js → bun-MJOYPPEN.js} +2 -2
- package/dist/bundle/{bun-sqlite-M6JEXKRT.js → bun-sqlite-GFRVRRDZ.js} +4 -4
- package/dist/bundle/{chunk-C3RX3UOE.js → chunk-2YWQEG2P.js} +11 -11
- package/dist/bundle/{chunk-UIPBAT2T.js → chunk-32HEOKI2.js} +15 -14
- package/dist/bundle/{chunk-BZIZLEJN.js → chunk-3KOF5T4N.js} +4 -4
- package/dist/bundle/{chunk-WHYS6OSG.js → chunk-3L2JTAVD.js} +2 -2
- package/dist/bundle/{chunk-XJVGCCQE.js → chunk-3XTMVGTS.js} +1904 -624
- package/dist/bundle/{chunk-P5ILJ7MN.js → chunk-4BMXELWN.js} +5 -5
- package/dist/bundle/{chunk-ZMZKZL3Y.js → chunk-4GOF43MW.js} +1 -1
- package/dist/bundle/{chunk-7AJ2IESO.js → chunk-4I6HTOCM.js} +1 -1
- package/dist/bundle/{chunk-4R4AH6FM.js → chunk-4YOPRYEY.js} +94 -94
- package/dist/bundle/{chunk-AGVKIJB7.js → chunk-54CWOD7V.js} +6 -6
- package/dist/bundle/{chunk-76C5SSMR.js → chunk-5ASW5BNM.js} +12 -12
- package/dist/bundle/{chunk-P57R2P75.js → chunk-5CMOXHQS.js} +7 -7
- package/dist/bundle/{chunk-N56WXUCW.js → chunk-6KESAYMZ.js} +2 -2
- package/dist/bundle/{chunk-YYOIULA2.js → chunk-6WTLP2SI.js} +8 -8
- package/dist/bundle/{chunk-TMXNMO66.js → chunk-7ABA4EXC.js} +3 -3
- package/dist/bundle/{chunk-RD2NLJSU.js → chunk-7LZBMZQM.js} +4 -4
- package/dist/bundle/{chunk-VFVMB3NV.js → chunk-ABVHA4K6.js} +5 -5
- package/dist/bundle/{chunk-BESIMQ5U.js → chunk-AXNBGLO5.js} +1 -1
- package/dist/bundle/{chunk-INYO2QFW.js → chunk-AZYVTDAE.js} +3 -3
- package/dist/bundle/{chunk-N5FSRC6H.js → chunk-BWRCPMMC.js} +41 -31
- package/dist/bundle/{chunk-2ILQYCBY.js → chunk-BYOEVYY2.js} +553 -291
- package/dist/bundle/{chunk-NAVNCM5K.js → chunk-EB44Z44U.js} +1 -1
- package/dist/bundle/{chunk-XMMWKHNY.js → chunk-EO563SUX.js} +7 -7
- package/dist/bundle/{chunk-OHLMHBDI.js → chunk-F24EAGOU.js} +32 -31
- package/dist/bundle/{chunk-WNTXIQMB.js → chunk-F7RWNBC2.js} +2 -2
- package/dist/bundle/{chunk-IGIPIO4J.js → chunk-FYAHTTOB.js} +11 -11
- package/dist/bundle/{chunk-SH63Q4QR.js → chunk-GPIORQAD.js} +22 -22
- package/dist/bundle/{chunk-BHPCZCX7.js → chunk-HCAYTAJN.js} +2 -2
- package/dist/bundle/{chunk-P55L4S6N.js → chunk-JDOSIWPN.js} +3 -3
- package/dist/bundle/{chunk-MF6NKU3Z.js → chunk-KLOFBUXA.js} +22 -22
- package/dist/bundle/{chunk-IV2QWSPG.js → chunk-L3YDXUDK.js} +12 -3
- package/dist/bundle/{chunk-QQF7RDLR.js → chunk-M3XIME74.js} +4 -4
- package/dist/bundle/{chunk-CHI6D4D6.js → chunk-MXIBRT6W.js} +4 -4
- package/dist/bundle/{chunk-ZHP44EML.js → chunk-MZRD776E.js} +3 -3
- package/dist/bundle/{chunk-KHKC236O.js → chunk-NDT22GBK.js} +2 -2
- package/dist/bundle/{chunk-IULYECPC.js → chunk-NFBOZT7H.js} +4 -4
- package/dist/bundle/{chunk-GUFM5RLW.js → chunk-ONHHBPV3.js} +2 -2
- package/dist/bundle/{chunk-CVLDXFRP.js → chunk-Q35J5LCO.js} +8 -8
- package/dist/bundle/{chunk-DZVYGBZB.js → chunk-QRH2AWBZ.js} +55 -54
- package/dist/bundle/{chunk-25VC6U3A.js → chunk-RARYRHQA.js} +1 -1
- package/dist/bundle/{chunk-AD3QPYI3.js → chunk-RSZEEWOW.js} +2 -2
- package/dist/bundle/{chunk-M62LF3QE.js → chunk-RXWG7OWT.js} +348 -300
- package/dist/bundle/{chunk-ZUOS7QUB.js → chunk-SD5J5T7M.js} +11 -11
- package/dist/bundle/{chunk-S7B6MTXX.js → chunk-SLAPUEMZ.js} +6 -6
- package/dist/bundle/{chunk-CH2ESVV5.js → chunk-TDQVVXPF.js} +42 -24
- package/dist/bundle/{chunk-YXCQ4DLZ.js → chunk-TJA3BWY3.js} +1 -1
- package/dist/bundle/{chunk-DLAFGSTN.js → chunk-UIPT6IAU.js} +1 -1
- package/dist/bundle/{chunk-UUQ3BH2Z.js → chunk-VM7I5VKX.js} +2 -2
- package/dist/bundle/{chunk-5SUFMBU5.js → chunk-VOBMR7E5.js} +45 -45
- package/dist/bundle/{chunk-VYR2IIWW.js → chunk-W3B6EEZU.js} +1 -1
- package/dist/bundle/{chunk-7T7ILNCU.js → chunk-XLNYDJKG.js} +2 -2
- package/dist/bundle/{chunk-ZFMS5G4H.js → chunk-YPEAEEHF.js} +2 -2
- package/dist/bundle/{chunk-DO33KAMM.js → chunk-YPLL3Q3M.js} +57 -57
- package/dist/bundle/{chunk-3PEZWXKO.js → chunk-YWSNUUW5.js} +6 -6
- package/dist/bundle/command-contract-TNSW7W6G.js +32 -0
- package/dist/bundle/{decode-RKPOGPBE.js → decode-3KBXZCFM.js} +4 -4
- package/dist/bundle/{echarts-H5QQRBHI.js → echarts-24TVPFGC.js} +2 -2
- package/dist/bundle/{embed-7TVAPNP7.js → embed-3BDPZ4Q7.js} +5 -5
- package/dist/bundle/{embedder-YOOHWWN6.js → embedder-EMVDEZFR.js} +8 -8
- package/dist/bundle/{entry-SAKW5HEZ.js → entry-NQD6Z2BM.js} +5 -5
- package/dist/bundle/{first-run-C744N572.js → first-run-ZBIO6C67.js} +9 -9
- package/dist/bundle/first-screen-4HRCG7OX.js +30 -0
- package/dist/bundle/{identity-NRWTZIQ4.js → identity-EDGOOTOM.js} +3 -3
- package/dist/bundle/{instructions-6LWRAW47.js → instructions-N2WVMNFZ.js} +1 -1
- package/dist/bundle/{mcp-WSGVVZWI.js → mcp-EMNFFY4N.js} +2 -2
- package/dist/bundle/{node-XN4PIVWW.js → node-VBZAZHUS.js} +2 -2
- package/dist/bundle/{node-sqlite-PCBGROGQ.js → node-sqlite-C3V64OAL.js} +4 -4
- package/dist/bundle/{oauth-PX6NGHUV.js → oauth-NZXELYDA.js} +6 -6
- package/dist/bundle/{open-BKJGJ6GX.js → open-2XRUGMV7.js} +3 -3
- package/dist/bundle/{openai-MJP7CZXP.js → openai-OLGTN3ZB.js} +13 -13
- package/dist/bundle/{process-4PRR3MLT.js → process-CASPZ2DH.js} +1 -1
- package/dist/bundle/{program-7YZUO42B.js → program-QPQDSGYA.js} +50 -48
- package/dist/bundle/{prompt-CILSZC2R.js → prompt-ESZL7SGX.js} +4 -4
- package/dist/bundle/{proxy-transport-FWGKTYBL.js → proxy-transport-OROEVBCG.js} +4 -4
- package/dist/bundle/{recognize-AVFDJAIL.js → recognize-LQ7QOG4T.js} +3 -3
- package/dist/bundle/{remote-2VYXGOM4.js → remote-34XP4EDN.js} +6 -6
- package/dist/bundle/{rerank-6FU2JPCD.js → rerank-7F6NLBCW.js} +6 -6
- package/dist/bundle/{serve-3YQOHBR6.js → serve-M6TTKXI4.js} +8 -8
- package/dist/bundle/{server-TPK3LNEX.js → server-GLZ5M7PE.js} +32 -32
- package/dist/bundle/server-KOW7OKE2.js +56 -0
- package/dist/bundle/{state-LLUNBLZE.js → state-UKKPLMHS.js} +5 -5
- package/dist/bundle/{store-27FQ743G.js → store-J2MBIDJK.js} +10 -10
- package/dist/bundle/store-maintenance-command-64B57C3U.js +45 -0
- package/dist/bundle/tg.js +4 -4
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +2 -1
- package/dist/program.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/command-contract-E2MWR3T3.js +0 -32
- package/dist/bundle/first-screen-7GKUEIWS.js +0 -30
- package/dist/bundle/server-S2K4YDDG.js +0 -56
- package/dist/bundle/store-maintenance-command-AFJMKEBK.js +0 -45
- /package/dist/bundle/{chunk-62EDJKGP.js → chunk-NPGVOZVK.js} +0 -0
|
@@ -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.68.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/errors.js
|
|
8
8
|
var errorCodes = [
|
|
9
9
|
"validation_error",
|
|
10
10
|
"configuration_error",
|
|
@@ -1918,7 +1918,7 @@ function toStandardJsonSchema(schema) {
|
|
|
1918
1918
|
}
|
|
1919
1919
|
__name(toStandardJsonSchema, "toStandardJsonSchema");
|
|
1920
1920
|
|
|
1921
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1921
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/registry.js
|
|
1922
1922
|
var word = pipe(string(), regex(/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/, "a lower-case word, words joined by -"));
|
|
1923
1923
|
var SNAKE_CASE = /^[a-z][a-z0-9]*(_[a-z0-9]+)*$/;
|
|
1924
1924
|
var text = pipe(string(), regex(/\S/, "must not be empty"));
|
|
@@ -1960,7 +1960,7 @@ var fill = /* @__PURE__ */ __name((template, values) => template.replace(PLACEHO
|
|
|
1960
1960
|
return String(value);
|
|
1961
1961
|
}), "fill");
|
|
1962
1962
|
|
|
1963
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1963
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/effects.js
|
|
1964
1964
|
var EFFECT_LEVELS = ["none", "read", "write"];
|
|
1965
1965
|
var effectsSchema = strictObject({
|
|
1966
1966
|
remote: picklist(EFFECT_LEVELS),
|
|
@@ -1968,7 +1968,7 @@ var effectsSchema = strictObject({
|
|
|
1968
1968
|
});
|
|
1969
1969
|
var writes = /* @__PURE__ */ __name((effects) => effects === void 0 || effects.remote === "write" || effects.local === "write", "writes");
|
|
1970
1970
|
|
|
1971
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1971
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/output.js
|
|
1972
1972
|
var MAX_NEXT_STEPS = 2;
|
|
1973
1973
|
var isoTime = pipe(string(), isoTimestamp("an ISO 8601 time in UTC"), endsWith("Z", "an ISO 8601 time in UTC, ending in `Z`"));
|
|
1974
1974
|
var reference = pipe(string(), regex(/^[a-z]+:\S+$/, "a reference such as `note:42`"));
|
|
@@ -2064,7 +2064,7 @@ var jsonlOf = /* @__PURE__ */ __name(({ items, page, meta }) => [
|
|
|
2064
2064
|
JSON.stringify({ type: "end", complete: meta.complete, ...meta.issues ? { issues: meta.issues } : {}, page })
|
|
2065
2065
|
].join("\n"), "jsonlOf");
|
|
2066
2066
|
|
|
2067
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2067
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/errors.js
|
|
2068
2068
|
var CRASH_CODE = "internal_error";
|
|
2069
2069
|
var CRASH_REASON = "command.crashed";
|
|
2070
2070
|
var errorObjectSchema = strictObject({
|
|
@@ -2151,7 +2151,7 @@ var BASE_REASONS = defineReasons([
|
|
|
2151
2151
|
{ reason: CRASH_REASON, code: CRASH_CODE, message: "the command failed; this is a bug", details: [] }
|
|
2152
2152
|
]);
|
|
2153
2153
|
|
|
2154
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2154
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/steps.js
|
|
2155
2155
|
var SAME_COMMAND = "*";
|
|
2156
2156
|
var commandPath = pipe(string(), regex(/^[a-z][a-z0-9-]*( [a-z][a-z0-9-]*)*$/, "a command path such as `messages sync`"));
|
|
2157
2157
|
var stepSchema = union([
|
|
@@ -2230,7 +2230,7 @@ var STEPS = defineSteps([
|
|
|
2230
2230
|
}
|
|
2231
2231
|
]);
|
|
2232
2232
|
|
|
2233
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2233
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/log.js
|
|
2234
2234
|
var LOG_SEVERITIES = ["trace", "debug", "info", "warn", "error", "fatal"];
|
|
2235
2235
|
var logRecordSchema = strictObject({
|
|
2236
2236
|
time: isoTime,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
tool,
|
|
21
21
|
toolKey,
|
|
22
22
|
toolsFromCommands
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-TDQVVXPF.js";
|
|
24
24
|
import {
|
|
25
25
|
CHART_KINDS,
|
|
26
26
|
CHART_SIZE,
|
|
@@ -34,19 +34,20 @@ import {
|
|
|
34
34
|
registerPrompts,
|
|
35
35
|
stdinFieldOf,
|
|
36
36
|
syncsFirst
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-KLOFBUXA.js";
|
|
38
38
|
import {
|
|
39
39
|
agentJson,
|
|
40
40
|
skillResource
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-32HEOKI2.js";
|
|
42
42
|
import {
|
|
43
43
|
answeredWire
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-4I6HTOCM.js";
|
|
45
45
|
import {
|
|
46
46
|
StdioServerTransport,
|
|
47
47
|
callerOf,
|
|
48
|
+
callingAgent,
|
|
48
49
|
serveStdio
|
|
49
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-L3YDXUDK.js";
|
|
50
51
|
import {
|
|
51
52
|
McpServer,
|
|
52
53
|
ResourceTemplate
|
|
@@ -54,7 +55,7 @@ import {
|
|
|
54
55
|
import {
|
|
55
56
|
connectedFor,
|
|
56
57
|
guardFor
|
|
57
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-GPIORQAD.js";
|
|
58
59
|
import {
|
|
59
60
|
capability,
|
|
60
61
|
dateWindow,
|
|
@@ -63,10 +64,10 @@ import {
|
|
|
63
64
|
servicesFor,
|
|
64
65
|
storedDeps,
|
|
65
66
|
wholeList
|
|
66
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-3XTMVGTS.js";
|
|
67
68
|
import {
|
|
68
69
|
findCommand
|
|
69
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-4BMXELWN.js";
|
|
70
71
|
import {
|
|
71
72
|
DEFAULT_OUTPUT_BYTES,
|
|
72
73
|
changesAuthorityAt,
|
|
@@ -82,34 +83,34 @@ import {
|
|
|
82
83
|
sealed,
|
|
83
84
|
snakeKeys,
|
|
84
85
|
typedCommand
|
|
85
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-QRH2AWBZ.js";
|
|
86
87
|
import {
|
|
87
88
|
isCliFailure,
|
|
88
89
|
withCaller
|
|
89
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-Q35J5LCO.js";
|
|
90
91
|
import {
|
|
91
92
|
readOnlyLockOf
|
|
92
|
-
} from "./chunk-
|
|
93
|
+
} from "./chunk-XLNYDJKG.js";
|
|
93
94
|
import {
|
|
94
95
|
mcpHttpMarker
|
|
95
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-MXIBRT6W.js";
|
|
96
97
|
import {
|
|
97
98
|
instructions
|
|
98
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-TJA3BWY3.js";
|
|
99
100
|
import {
|
|
100
101
|
warmEmbedders
|
|
101
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-YWSNUUW5.js";
|
|
102
103
|
import {
|
|
103
104
|
openStore,
|
|
104
105
|
pdfPreviewLimits
|
|
105
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-RXWG7OWT.js";
|
|
106
107
|
import {
|
|
107
108
|
timezoneOf
|
|
108
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-YPLL3Q3M.js";
|
|
109
110
|
import {
|
|
110
111
|
mcpErrorResult,
|
|
111
112
|
visibleControls
|
|
112
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-BWRCPMMC.js";
|
|
113
114
|
import {
|
|
114
115
|
CliError,
|
|
115
116
|
description,
|
|
@@ -125,15 +126,15 @@ import {
|
|
|
125
126
|
regex,
|
|
126
127
|
strictObject,
|
|
127
128
|
string
|
|
128
|
-
} from "./chunk-
|
|
129
|
+
} from "./chunk-EO563SUX.js";
|
|
129
130
|
import {
|
|
130
131
|
__name
|
|
131
132
|
} from "./chunk-ZVVMGPBJ.js";
|
|
132
133
|
|
|
133
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
134
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/mcp/server.js
|
|
134
135
|
import { randomUUID } from "node:crypto";
|
|
135
136
|
|
|
136
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
137
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/mcp/agent-log.js
|
|
137
138
|
var agentLog = /* @__PURE__ */ __name((open) => {
|
|
138
139
|
let held;
|
|
139
140
|
return {
|
|
@@ -152,7 +153,7 @@ var agentLog = /* @__PURE__ */ __name((open) => {
|
|
|
152
153
|
};
|
|
153
154
|
}, "agentLog");
|
|
154
155
|
|
|
155
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
156
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/mcp/resources.js
|
|
156
157
|
var LISTED = 100;
|
|
157
158
|
var registerResources = /* @__PURE__ */ __name((server, session, { command, name, limit, recorded, withStore, messenger, guard, assertRead }) => {
|
|
158
159
|
server.registerResource("chat", new ResourceTemplate(`${command}://chat/{id}`, {
|
|
@@ -190,7 +191,7 @@ var registerResources = /* @__PURE__ */ __name((server, session, { command, name
|
|
|
190
191
|
});
|
|
191
192
|
}, "registerResources");
|
|
192
193
|
|
|
193
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
194
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/mcp/session.js
|
|
194
195
|
var HARMLESS = /* @__PURE__ */ new Set(["validation_error", "not_found", "permission_error", "confirmation_required", "rate_limited"]);
|
|
195
196
|
var harmless = /* @__PURE__ */ __name((code) => HARMLESS.has(code), "harmless");
|
|
196
197
|
var MessengerSession = class {
|
|
@@ -265,7 +266,7 @@ var MessengerSession = class {
|
|
|
265
266
|
}
|
|
266
267
|
};
|
|
267
268
|
|
|
268
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
269
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/mcp/tools/attachments.js
|
|
269
270
|
var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
|
|
270
271
|
const _command = messenger.app.command;
|
|
271
272
|
return {
|
|
@@ -319,7 +320,7 @@ var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
|
|
|
319
320
|
};
|
|
320
321
|
}, "attachmentsTools");
|
|
321
322
|
|
|
322
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
323
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/mcp/tools/messages-photo.js
|
|
323
324
|
var PHOTO_LIMIT = 512 * 1024;
|
|
324
325
|
var IMAGE_TYPES = [
|
|
325
326
|
["image/jpeg", (b) => b[0] === 255 && b[1] === 216 && b[2] === 255],
|
|
@@ -373,7 +374,7 @@ var readUpTo = /* @__PURE__ */ __name(async (file, limit, saveIt) => {
|
|
|
373
374
|
return new Uint8Array(Buffer.concat(chunks));
|
|
374
375
|
}, "readUpTo");
|
|
375
376
|
|
|
376
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
377
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/mcp/tools/stats.js
|
|
377
378
|
var statsTools = /* @__PURE__ */ __name((messenger) => ({
|
|
378
379
|
stats_charts: tool({
|
|
379
380
|
title: "A chart from a chat's statistics",
|
|
@@ -410,14 +411,14 @@ var statsTools = /* @__PURE__ */ __name((messenger) => ({
|
|
|
410
411
|
})
|
|
411
412
|
}), "statsTools");
|
|
412
413
|
|
|
413
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
414
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/mcp/tools.js
|
|
414
415
|
var pictureTools = /* @__PURE__ */ __name((messenger) => Object.fromEntries(Object.entries({
|
|
415
416
|
...messagesPhotoTools(messenger),
|
|
416
417
|
...attachmentsTools(messenger),
|
|
417
418
|
...statsTools(messenger)
|
|
418
419
|
}).map(([name, definition]) => [name, { ...definition, input: strictObject(definition.input.entries) }])), "pictureTools");
|
|
419
420
|
|
|
420
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
421
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/mcp/server.js
|
|
421
422
|
var PER_RUN = /* @__PURE__ */ new Set([
|
|
422
423
|
"streams",
|
|
423
424
|
"stdin",
|
|
@@ -535,10 +536,10 @@ var createServer = /* @__PURE__ */ __name((command, context, messenger, sessionO
|
|
|
535
536
|
});
|
|
536
537
|
const skill = messenger.skill ? skillResource(app, messenger.skill) : void 0;
|
|
537
538
|
const log = agentLog(() => openStore({ env: context.env, command: app.command, version: app.version }));
|
|
538
|
-
const audit = /* @__PURE__ */ __name(async (call) => {
|
|
539
|
+
const audit = /* @__PURE__ */ __name(async (call, caller) => {
|
|
539
540
|
if (!recalledAccount(app, provider, settings.profile, context.env))
|
|
540
541
|
return;
|
|
541
|
-
await log.record({ actor: { bot: `${app.command}-mcp
|
|
542
|
+
await log.record({ actor: { bot: callingAgent(`${app.command}-mcp`, caller) }, ...call });
|
|
542
543
|
}, "audit");
|
|
543
544
|
const targets = judgedTargets(root);
|
|
544
545
|
const passed = Object.fromEntries(Object.entries(environment).filter(([key]) => !PER_RUN.has(key)));
|
|
@@ -610,7 +611,7 @@ var createServer = /* @__PURE__ */ __name((command, context, messenger, sessionO
|
|
|
610
611
|
...outcomeOf(result),
|
|
611
612
|
startedAt,
|
|
612
613
|
finishedAt: Date.now()
|
|
613
|
-
}).catch(() => void 0);
|
|
614
|
+
}, caller).catch(() => void 0);
|
|
614
615
|
return result;
|
|
615
616
|
}, "run")
|
|
616
617
|
}), "asCommand");
|
|
@@ -741,7 +742,7 @@ var serveOverStdio = /* @__PURE__ */ __name(async (command, context, messenger,
|
|
|
741
742
|
}, "serveOverStdio");
|
|
742
743
|
var serveOverHttpUntilStopped = /* @__PURE__ */ __name(async (command, context, messenger, options, http) => {
|
|
743
744
|
const { session, embedders, build, log } = createServer(command, context, messenger, options);
|
|
744
|
-
const { serveOverHttp } = await import("./serve-
|
|
745
|
+
const { serveOverHttp } = await import("./serve-M6TTKXI4.js");
|
|
745
746
|
const appName = messenger.app.command;
|
|
746
747
|
const appEnvPrefix = messenger.app.envPrefix;
|
|
747
748
|
const listening = await serveOverHttp(build, {
|
|
@@ -2,11 +2,11 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
openCache
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-SLAPUEMZ.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError,
|
|
8
8
|
isCliError
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-EO563SUX.js";
|
|
10
10
|
import {
|
|
11
11
|
__name
|
|
12
12
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -13,40 +13,40 @@ import {
|
|
|
13
13
|
privateFiles,
|
|
14
14
|
providerRequest,
|
|
15
15
|
withSqliteSidecars
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-BYOEVYY2.js";
|
|
17
17
|
import {
|
|
18
18
|
parseProxy,
|
|
19
19
|
proxyAddress,
|
|
20
20
|
proxyError,
|
|
21
21
|
proxyLabel,
|
|
22
22
|
proxySetting
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-EB44Z44U.js";
|
|
24
24
|
import {
|
|
25
25
|
messengerContext
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-GPIORQAD.js";
|
|
27
27
|
import {
|
|
28
28
|
uploadBlob
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-3XTMVGTS.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-QRH2AWBZ.js";
|
|
37
37
|
import {
|
|
38
38
|
TG
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-YPEAEEHF.js";
|
|
40
40
|
import {
|
|
41
41
|
Credentials,
|
|
42
42
|
pathsAreOverridden,
|
|
43
43
|
resolvePaths
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-BWRCPMMC.js";
|
|
45
45
|
import {
|
|
46
46
|
CliError,
|
|
47
47
|
isCliError,
|
|
48
48
|
optional
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-EO563SUX.js";
|
|
50
50
|
import {
|
|
51
51
|
importFrom
|
|
52
52
|
} from "./chunk-Y5E2WNWB.js";
|
|
@@ -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-JWUCHTXU.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-3P6EIM5L.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-JWUCHTXU.js")).TelegramAdapter.open({
|
|
888
888
|
credentials,
|
|
889
889
|
sessionPath: personalPath,
|
|
890
890
|
checks: words,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
refuseLacking,
|
|
11
11
|
servicesFor,
|
|
12
12
|
throughWrapper
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-3XTMVGTS.js";
|
|
14
14
|
import {
|
|
15
15
|
CEILING_KEY,
|
|
16
16
|
LOG_ATTRIBUTES,
|
|
@@ -34,35 +34,35 @@ import {
|
|
|
34
34
|
rememberAccount,
|
|
35
35
|
rootOf2 as rootOf,
|
|
36
36
|
skipFlagFor
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-QRH2AWBZ.js";
|
|
38
38
|
import {
|
|
39
39
|
isCliFailure,
|
|
40
40
|
providerErrorKey
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-Q35J5LCO.js";
|
|
42
42
|
import {
|
|
43
43
|
MESSENGER_CHANGE_REFUSAL,
|
|
44
44
|
readOnlyRefusal
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-XLNYDJKG.js";
|
|
46
46
|
import {
|
|
47
47
|
servingProfiles
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-7ABA4EXC.js";
|
|
49
49
|
import {
|
|
50
50
|
openStore
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-RXWG7OWT.js";
|
|
52
52
|
import {
|
|
53
53
|
logRecordOf,
|
|
54
54
|
realSleep,
|
|
55
55
|
resolvePaths,
|
|
56
56
|
writeSecurely
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-BWRCPMMC.js";
|
|
58
58
|
import {
|
|
59
59
|
CliError
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-EO563SUX.js";
|
|
61
61
|
import {
|
|
62
62
|
__name
|
|
63
63
|
} from "./chunk-ZVVMGPBJ.js";
|
|
64
64
|
|
|
65
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
65
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/cli/messenger/ask.js
|
|
66
66
|
import { openSync } from "node:fs";
|
|
67
67
|
import { createInterface } from "node:readline";
|
|
68
68
|
import { ReadStream } from "node:tty";
|
|
@@ -117,10 +117,10 @@ var terminalAsker = /* @__PURE__ */ __name((command) => async (key, request) =>
|
|
|
117
117
|
throw new CliError("cancelled", `${key}: not done \u2014 the answer was no`);
|
|
118
118
|
}, "terminalAsker");
|
|
119
119
|
|
|
120
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
120
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/sends/guard.js
|
|
121
121
|
import { randomUUID } from "node:crypto";
|
|
122
122
|
|
|
123
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
123
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/sends/flood.js
|
|
124
124
|
import { mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
125
125
|
import { dirname, join } from "node:path";
|
|
126
126
|
var MOST_DEADLINES = 50;
|
|
@@ -204,11 +204,11 @@ var FloodMemory = class {
|
|
|
204
204
|
}
|
|
205
205
|
};
|
|
206
206
|
|
|
207
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
207
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/sends/journal.js
|
|
208
208
|
import { appendFileSync, mkdirSync as mkdirSync3, readFileSync as readFileSync2 } from "node:fs";
|
|
209
209
|
import { dirname as dirname3, join as join2 } from "node:path";
|
|
210
210
|
|
|
211
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
211
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/sends/file-lock.js
|
|
212
212
|
import { closeSync, mkdirSync as mkdirSync2, openSync as openSync2, statSync, unlinkSync } from "node:fs";
|
|
213
213
|
import { dirname as dirname2 } from "node:path";
|
|
214
214
|
var LOCK_WAIT_MS = 5e3;
|
|
@@ -275,7 +275,7 @@ var lockTime = /* @__PURE__ */ __name((lock) => {
|
|
|
275
275
|
}
|
|
276
276
|
}, "lockTime");
|
|
277
277
|
|
|
278
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
278
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/sends/journal.js
|
|
279
279
|
var sendsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "sends", `${profile}.jsonl`), "sendsPathFor");
|
|
280
280
|
var SendJournal = class {
|
|
281
281
|
static {
|
|
@@ -352,7 +352,7 @@ var withSendId = /* @__PURE__ */ __name((entry) => {
|
|
|
352
352
|
return cid === void 0 || rest.sendId !== void 0 ? rest : { ...rest, sendId: String(cid) };
|
|
353
353
|
}, "withSendId");
|
|
354
354
|
|
|
355
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
355
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/sends/recipients.js
|
|
356
356
|
import { existsSync, readFileSync as readFileSync3, rmSync } from "node:fs";
|
|
357
357
|
import { join as join3 } from "node:path";
|
|
358
358
|
var recipientsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "profiles", `${profile}.recipients.json`), "recipientsPathFor");
|
|
@@ -464,7 +464,7 @@ var RecipientList = class {
|
|
|
464
464
|
}
|
|
465
465
|
};
|
|
466
466
|
|
|
467
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
467
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/sends/guard.js
|
|
468
468
|
var HOUR_MS = 60 * 60 * 1e3;
|
|
469
469
|
var READS_UNDER_HOLD = /* @__PURE__ */ new Set([
|
|
470
470
|
"attachments.extract",
|
|
@@ -657,7 +657,7 @@ var guardFor = /* @__PURE__ */ __name((app, settings, warn, env = process.env, a
|
|
|
657
657
|
}), "guardFor");
|
|
658
658
|
var journalFailure = /* @__PURE__ */ __name((error) => error?.code ?? (error instanceof Error ? error.name : "error"), "journalFailure");
|
|
659
659
|
|
|
660
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
660
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/sends/pace.js
|
|
661
661
|
import { readFileSync as readFileSync4, renameSync as renameSync2, writeFileSync as writeFileSync2 } from "node:fs";
|
|
662
662
|
import { join as join4 } from "node:path";
|
|
663
663
|
var DEFAULT_PACE = { perMinute: 60, burst: 20 };
|
|
@@ -716,7 +716,7 @@ var Pacer = class {
|
|
|
716
716
|
}
|
|
717
717
|
};
|
|
718
718
|
|
|
719
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
719
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/cli/permission-keys.js
|
|
720
720
|
var pathOf = /* @__PURE__ */ __name((command) => {
|
|
721
721
|
const words = [];
|
|
722
722
|
for (let at = command; at?.parent; at = at.parent)
|
|
@@ -776,7 +776,7 @@ var refuseUnknownPermissionKeys = /* @__PURE__ */ __name((command, settings, too
|
|
|
776
776
|
throw new CliError("validation_error", `--permission ${key} names no command`, { permission: key });
|
|
777
777
|
}, "refuseUnknownPermissionKeys");
|
|
778
778
|
|
|
779
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
779
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/cli/messenger/flooded.js
|
|
780
780
|
var LONG_LIVED = /* @__PURE__ */ new Set(["self", "newSendId", "close", "formatMarkdown", "formatHtml", "storedChats"]);
|
|
781
781
|
var LISTENING = /* @__PURE__ */ new Set(["watch", "feed", "listen", "listenHistory"]);
|
|
782
782
|
var BLOCKING = /* @__PURE__ */ new Set(["frozen", "limited", "banned"]);
|
|
@@ -895,7 +895,7 @@ var flooded = /* @__PURE__ */ __name((messenger, memory, { name, warn, pacer })
|
|
|
895
895
|
});
|
|
896
896
|
}, "flooded");
|
|
897
897
|
|
|
898
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
898
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/cli/messenger/observed.js
|
|
899
899
|
var observed = /* @__PURE__ */ __name((messenger, events) => {
|
|
900
900
|
const timed = /* @__PURE__ */ __name(async (operation, named, work, after) => {
|
|
901
901
|
const write = currentOperation();
|
|
@@ -994,7 +994,7 @@ var byPart = /* @__PURE__ */ __name((batch, counts) => {
|
|
|
994
994
|
counts[part] = (counts[part] ?? 0) + items.length;
|
|
995
995
|
}, "byPart");
|
|
996
996
|
|
|
997
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
997
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/cli/messenger/stored.js
|
|
998
998
|
var REKEY_PACING = { lockMs: 50, pauseMs: 25 };
|
|
999
999
|
var stored = /* @__PURE__ */ __name((messenger, { account, store, warn, events, pending, announcing, deletedWithoutChat, profile, rekeyed, rekeyPacing = REKEY_PACING, closing, namesFromStore, recipientIds, countsUnread = false }) => {
|
|
1000
1000
|
let warned = false;
|
|
@@ -1486,7 +1486,7 @@ var keep = /* @__PURE__ */ __name(async (store, account, event, seenAt, among, c
|
|
|
1486
1486
|
}
|
|
1487
1487
|
}, "keep");
|
|
1488
1488
|
|
|
1489
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1489
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/cli/messenger/context.js
|
|
1490
1490
|
var lazyStore = /* @__PURE__ */ __name((env, command, version) => {
|
|
1491
1491
|
let opened;
|
|
1492
1492
|
return {
|
|
@@ -2,7 +2,7 @@ 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-EO563SUX.js";
|
|
6
6
|
import {
|
|
7
7
|
importFrom
|
|
8
8
|
} from "./chunk-Y5E2WNWB.js";
|
|
@@ -10,7 +10,7 @@ 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.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/node_modules/@wirecat/cli-core/dist/store/vector-extension.js
|
|
14
14
|
import { readFileSync } from "node:fs";
|
|
15
15
|
var musl = /* @__PURE__ */ __name(() => {
|
|
16
16
|
if (process.platform !== "linux")
|
|
@@ -3,15 +3,15 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
readSharedSection,
|
|
5
5
|
writeSharedSection
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-54CWOD7V.js";
|
|
7
7
|
import {
|
|
8
8
|
CliError
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-EO563SUX.js";
|
|
10
10
|
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.511.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._5c8fd69a9fdf1e5f27f7a7a8cfa45e82/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";
|