@wirecat/tg-cli 0.111.0 → 0.113.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/README.md +3 -0
- package/dist/bin/tg.js +2 -2
- package/dist/bundle/{adapter-WFC2JAD4.js → adapter-EQKEFGPB.js} +70 -50
- package/dist/bundle/{all-profiles-FEUSGHT7.js → all-profiles-TTBFF663.js} +8 -8
- package/dist/bundle/{anthropic-O646SJIJ.js → anthropic-XPZS7267.js} +5 -5
- package/dist/bundle/{app-server-7P23Y45A.js → app-server-ZSZ7KRAY.js} +42 -42
- package/dist/bundle/{bot-api-WTJCL6VF.js → bot-api-X7BOVNIO.js} +46 -46
- package/dist/bundle/{bot-history-5J2Q4SPC.js → bot-history-DWIUIPN5.js} +15 -15
- package/dist/bundle/{bun-KUKVEKDW.js → bun-ZGZVAJU2.js} +2 -2
- package/dist/bundle/{bun-sqlite-2G5TXHYE.js → bun-sqlite-UN2UJ6SI.js} +4 -4
- package/dist/bundle/{chunk-UDYCZ5KB.js → chunk-3MAYYFKY.js} +1 -1
- package/dist/bundle/{chunk-3BD24JYK.js → chunk-452UZ2PU.js} +121 -95
- package/dist/bundle/{chunk-EB44Z44U.js → chunk-4GLMEES6.js} +1 -1
- package/dist/bundle/{chunk-J2Z5E7TO.js → chunk-4SQB5VKL.js} +1 -1
- package/dist/bundle/{chunk-BNQOUCL2.js → chunk-5NF7M4MN.js} +1 -1
- package/dist/bundle/{chunk-VIEVOF3O.js → chunk-6F6K3LWV.js} +11 -11
- package/dist/bundle/{chunk-QLLPZWYZ.js → chunk-6OKGHHRL.js} +4 -4
- package/dist/bundle/{chunk-QVM2HKJP.js → chunk-6WJ5M2Q4.js} +4 -4
- package/dist/bundle/{chunk-OYVDWHP5.js → chunk-7IWDS2CM.js} +2 -2
- package/dist/bundle/{chunk-ABVHA4K6.js → chunk-AGUCXSSM.js} +5 -5
- package/dist/bundle/{chunk-2ZH3PUQX.js → chunk-AVUIWZTP.js} +2 -2
- package/dist/bundle/{chunk-LLAZSGS7.js → chunk-BI5YJZJB.js} +31 -27
- package/dist/bundle/{chunk-COHMFCHD.js → chunk-EGR5IJCG.js} +95 -34
- package/dist/bundle/{chunk-7665YBJ7.js → chunk-ENXO43TV.js} +6 -6
- package/dist/bundle/{chunk-MSGYLWCH.js → chunk-G74QMORP.js} +2 -2
- package/dist/bundle/{chunk-KLHLWKWC.js → chunk-GX4LRLVD.js} +80 -60
- package/dist/bundle/{chunk-DREEXESG.js → chunk-HNN7EKIM.js} +114 -79
- package/dist/bundle/{chunk-2K6IGVSI.js → chunk-HO53POQG.js} +5 -5
- package/dist/bundle/{chunk-43ZFY6TW.js → chunk-IDUYRTPF.js} +2 -2
- package/dist/bundle/{chunk-WDRNVSWF.js → chunk-IYKRHDX6.js} +45 -44
- package/dist/bundle/{chunk-KE47Y4PW.js → chunk-J6USEBA6.js} +699 -379
- package/dist/bundle/{chunk-5ZPLOYTP.js → chunk-JDQSX2JQ.js} +453 -358
- package/dist/bundle/{chunk-NIKYFRDQ.js → chunk-JO45BOYE.js} +2 -2
- package/dist/bundle/{chunk-ONHHBPV3.js → chunk-JRTZ5I6M.js} +2 -2
- package/dist/bundle/{chunk-YG4BO7N3.js → chunk-JW7BMJ6O.js} +2 -2
- package/dist/bundle/{chunk-J4QVXR5I.js → chunk-K3F46QVN.js} +2 -2
- package/dist/bundle/{chunk-XXOJ7PQY.js → chunk-KK3JVOOV.js} +30 -30
- package/dist/bundle/{chunk-UPRYEDAV.js → chunk-KOWQVHXI.js} +3 -3
- package/dist/bundle/{chunk-BWRCPMMC.js → chunk-KQ23JWLJ.js} +20 -18
- package/dist/bundle/{chunk-ZCV4UEVH.js → chunk-KVLCIZUK.js} +3 -3
- package/dist/bundle/{chunk-DEG4JJHG.js → chunk-MTX5EDYJ.js} +813 -542
- package/dist/bundle/{chunk-UFIUMPXP.js → chunk-OC4RRFKH.js} +4 -4
- package/dist/bundle/{chunk-PNUHAHTF.js → chunk-OQR442B6.js} +1 -1
- package/dist/bundle/{chunk-TWZTQHP6.js → chunk-OSBAISA5.js} +6 -6
- package/dist/bundle/{chunk-UIPT6IAU.js → chunk-OYNSFQ7K.js} +1 -1
- package/dist/bundle/{chunk-EO563SUX.js → chunk-PCRLXJRH.js} +11 -7
- package/dist/bundle/{chunk-XIRASTVS.js → chunk-PHPNA2HU.js} +11 -11
- package/dist/bundle/{chunk-7GQLD5TJ.js → chunk-PHYDBR5M.js} +2 -2
- package/dist/bundle/{chunk-T6DSAROY.js → chunk-Q264PYGE.js} +51 -14
- package/dist/bundle/{chunk-QEAMO2TS.js → chunk-T4TTRFP5.js} +7 -7
- package/dist/bundle/{chunk-UMUJHC4M.js → chunk-T5RM4Y35.js} +3 -3
- package/dist/bundle/{chunk-ITSSCYLP.js → chunk-TQ6EA7TB.js} +11 -11
- package/dist/bundle/{chunk-QAC6Z675.js → chunk-TUD4MU7S.js} +2 -2
- package/dist/bundle/{chunk-ZCHC7TYO.js → chunk-U3MJQLZQ.js} +26 -13
- package/dist/bundle/{chunk-YFK3DNNP.js → chunk-UE75KPAC.js} +4 -4
- package/dist/bundle/{chunk-HN6ZMUAS.js → chunk-UIVLDKWT.js} +1 -1
- package/dist/bundle/{chunk-3WUTBGZE.js → chunk-VDATXIO4.js} +6 -6
- package/dist/bundle/{chunk-AUWYMMYL.js → chunk-VDEXNNMH.js} +4 -4
- package/dist/bundle/{chunk-33HEHPIK.js → chunk-VVA4555T.js} +8 -8
- package/dist/bundle/{chunk-PQGWEFJ2.js → chunk-WSAHUQ6K.js} +3 -3
- package/dist/bundle/{chunk-K457FHD4.js → chunk-XXNJF3ZM.js} +32 -26
- package/dist/bundle/{chunk-NQAV7U7C.js → chunk-XZ2ZHIAO.js} +1 -1
- package/dist/bundle/{chunk-5FJQG5UZ.js → chunk-Z6TRIW2O.js} +8 -8
- package/dist/bundle/{chunk-CJUSP5X2.js → chunk-ZID2Y4XU.js} +2 -2
- package/dist/bundle/command-contract-GV67H22L.js +32 -0
- package/dist/bundle/{decode-QJNVAAKJ.js → decode-AMQVTEMW.js} +4 -4
- package/dist/bundle/{echarts-2EDY7OUX.js → echarts-ECYONFQJ.js} +2 -2
- package/dist/bundle/{embed-PZSXOQJO.js → embed-VZYBZEWI.js} +5 -5
- package/dist/bundle/{embedder-O4EGMMUU.js → embedder-GSWBGHRK.js} +8 -8
- package/dist/bundle/{entry-DVLMQM6J.js → entry-LALZILY4.js} +5 -5
- package/dist/bundle/{first-run-J67KTUWA.js → first-run-LEAI623Q.js} +9 -9
- package/dist/bundle/first-screen-MOCVLE23.js +30 -0
- package/dist/bundle/{identity-DSYY4FLQ.js → identity-54HA5GN6.js} +3 -3
- package/dist/bundle/{instructions-O535XB2L.js → instructions-AXLQQS3G.js} +1 -1
- package/dist/bundle/{mcp-EMNFFY4N.js → mcp-VVMPUDSL.js} +2 -2
- package/dist/bundle/{node-S3VEQNTE.js → node-7JHC5K77.js} +2 -2
- package/dist/bundle/{node-sqlite-3DNWF2BW.js → node-sqlite-LYJEK46T.js} +4 -4
- package/dist/bundle/{oauth-IU2RAZ3D.js → oauth-BROPKI3K.js} +6 -6
- package/dist/bundle/{open-M2IPPXMI.js → open-C6XQ46JK.js} +3 -3
- package/dist/bundle/{openai-GDI7HISL.js → openai-VWSU7ZDD.js} +13 -13
- package/dist/bundle/{process-3IGMEATV.js → process-QKEFL5HL.js} +1 -1
- package/dist/bundle/{program-P7YPHVLD.js → program-ACY7O33O.js} +48 -48
- package/dist/bundle/{prompt-S6R7IHDK.js → prompt-EGULVW2F.js} +4 -4
- package/dist/bundle/{proxy-transport-OROEVBCG.js → proxy-transport-KIMADLQ2.js} +4 -4
- package/dist/bundle/{recognize-PFZRQ3P4.js → recognize-UMTKLWVR.js} +3 -3
- package/dist/bundle/{remote-Q37V7LUX.js → remote-DABI7PSQ.js} +6 -6
- package/dist/bundle/{rerank-V5YQQQAM.js → rerank-ZFATWWBE.js} +6 -6
- package/dist/bundle/{serve-5CAD2UVG.js → serve-B7YYCMGN.js} +8 -8
- package/dist/bundle/{server-R6YAO2SG.js → server-DGKZISZH.js} +32 -32
- package/dist/bundle/server-UC7UWUIS.js +56 -0
- package/dist/bundle/{state-Y3A2NEM3.js → state-AQ2PABA5.js} +5 -5
- package/dist/bundle/{store-H5K32CNI.js → store-46GJTFLJ.js} +12 -10
- package/dist/bundle/store-maintenance-command-FCFKHGRM.js +45 -0
- package/dist/bundle/tg.js +4 -4
- package/dist/telegram/adapter.d.ts +2 -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/topics.d.ts +4 -2
- package/dist/telegram/topics.d.ts.map +1 -1
- package/dist/telegram/topics.js +21 -3
- package/dist/telegram/topics.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/skills/tg-cli/SKILL.md +2 -0
- package/dist/bundle/command-contract-JCRVVL7P.js +0 -32
- package/dist/bundle/first-screen-PYEE5NMQ.js +0 -30
- package/dist/bundle/server-RUQLAWWS.js +0 -56
- package/dist/bundle/store-maintenance-command-QZDC4WKW.js +0 -45
- /package/dist/bundle/{chunk-NPGVOZVK.js → chunk-HPXYN7F3.js} +0 -0
|
@@ -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-PCRLXJRH.js";
|
|
6
6
|
|
|
7
7
|
// dist/reasons.js
|
|
8
8
|
var REASONS = defineReasons([
|
|
@@ -21,7 +21,7 @@ var REASONS = defineReasons([
|
|
|
21
21
|
].map(([reason, code, message]) => ({ reason, code, message, details: [] })));
|
|
22
22
|
|
|
23
23
|
// dist/version.js
|
|
24
|
-
var VERSION = "0.
|
|
24
|
+
var VERSION = "0.113.0";
|
|
25
25
|
|
|
26
26
|
// dist/identity.js
|
|
27
27
|
var TG = {
|
|
@@ -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-4GLMEES6.js";
|
|
7
7
|
import {
|
|
8
8
|
CliError
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-PCRLXJRH.js";
|
|
10
10
|
import {
|
|
11
11
|
__name
|
|
12
12
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -10,12 +10,12 @@ import {
|
|
|
10
10
|
optional,
|
|
11
11
|
pipe,
|
|
12
12
|
safeParse
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-PCRLXJRH.js";
|
|
14
14
|
import {
|
|
15
15
|
__name
|
|
16
16
|
} from "./chunk-ZVVMGPBJ.js";
|
|
17
17
|
|
|
18
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/models/options.js
|
|
19
19
|
var checkedOptions = /* @__PURE__ */ __name((provider, schema, options) => {
|
|
20
20
|
const parsed = safeParse(schema, options);
|
|
21
21
|
if (!parsed.success) {
|
|
@@ -8,12 +8,12 @@ import {
|
|
|
8
8
|
ACCESS_SECONDS,
|
|
9
9
|
REFRESH_SECONDS,
|
|
10
10
|
readStored
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-UE75KPAC.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.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/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";
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
tool,
|
|
21
21
|
toolKey,
|
|
22
22
|
toolsFromCommands
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-EGR5IJCG.js";
|
|
24
24
|
import {
|
|
25
25
|
CHART_KINDS,
|
|
26
26
|
CHART_SIZE,
|
|
@@ -34,20 +34,20 @@ import {
|
|
|
34
34
|
registerPrompts,
|
|
35
35
|
stdinFieldOf,
|
|
36
36
|
syncsFirst
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-XXNJF3ZM.js";
|
|
38
38
|
import {
|
|
39
39
|
agentJson,
|
|
40
40
|
skillResource
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-Q264PYGE.js";
|
|
42
42
|
import {
|
|
43
43
|
answeredWire
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-XZ2ZHIAO.js";
|
|
45
45
|
import {
|
|
46
46
|
StdioServerTransport,
|
|
47
47
|
callerOf,
|
|
48
48
|
callingAgent,
|
|
49
49
|
serveStdio
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-ZID2Y4XU.js";
|
|
51
51
|
import {
|
|
52
52
|
McpServer,
|
|
53
53
|
ResourceTemplate
|
|
@@ -55,7 +55,7 @@ import {
|
|
|
55
55
|
import {
|
|
56
56
|
connectedFor,
|
|
57
57
|
guardFor
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-BI5YJZJB.js";
|
|
59
59
|
import {
|
|
60
60
|
capability,
|
|
61
61
|
dateWindow,
|
|
@@ -64,53 +64,53 @@ import {
|
|
|
64
64
|
servicesFor,
|
|
65
65
|
storedDeps,
|
|
66
66
|
wholeList
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-JDQSX2JQ.js";
|
|
68
68
|
import {
|
|
69
69
|
findCommand
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-HO53POQG.js";
|
|
71
71
|
import {
|
|
72
72
|
DEFAULT_OUTPUT_BYTES,
|
|
73
73
|
changesAuthorityAt,
|
|
74
74
|
describeProgram,
|
|
75
75
|
environmentOf,
|
|
76
|
-
fetchesOnlyAt,
|
|
77
76
|
itemOf,
|
|
78
77
|
judgedTargets,
|
|
79
78
|
levelFor,
|
|
80
79
|
readKeysForCommand,
|
|
80
|
+
readsOverMcpAt,
|
|
81
81
|
recalledAccount,
|
|
82
82
|
rootOf2 as rootOf,
|
|
83
83
|
sealed,
|
|
84
84
|
snakeKeys,
|
|
85
85
|
typedCommand
|
|
86
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-GX4LRLVD.js";
|
|
87
87
|
import {
|
|
88
88
|
isCliFailure,
|
|
89
89
|
withCaller
|
|
90
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-Z6TRIW2O.js";
|
|
91
91
|
import {
|
|
92
92
|
readOnlyLockOf
|
|
93
|
-
} from "./chunk-
|
|
93
|
+
} from "./chunk-IDUYRTPF.js";
|
|
94
94
|
import {
|
|
95
95
|
mcpHttpMarker
|
|
96
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-UE75KPAC.js";
|
|
97
97
|
import {
|
|
98
98
|
instructions
|
|
99
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-5NF7M4MN.js";
|
|
100
100
|
import {
|
|
101
101
|
warmEmbedders
|
|
102
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-ENXO43TV.js";
|
|
103
103
|
import {
|
|
104
104
|
openStore,
|
|
105
105
|
pdfPreviewLimits
|
|
106
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-J6USEBA6.js";
|
|
107
107
|
import {
|
|
108
108
|
timezoneOf
|
|
109
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-HNN7EKIM.js";
|
|
110
110
|
import {
|
|
111
111
|
mcpErrorResult,
|
|
112
112
|
visibleControls
|
|
113
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-KQ23JWLJ.js";
|
|
114
114
|
import {
|
|
115
115
|
CliError,
|
|
116
116
|
description,
|
|
@@ -126,15 +126,15 @@ import {
|
|
|
126
126
|
regex,
|
|
127
127
|
strictObject,
|
|
128
128
|
string
|
|
129
|
-
} from "./chunk-
|
|
129
|
+
} from "./chunk-PCRLXJRH.js";
|
|
130
130
|
import {
|
|
131
131
|
__name
|
|
132
132
|
} from "./chunk-ZVVMGPBJ.js";
|
|
133
133
|
|
|
134
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
134
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/mcp/server.js
|
|
135
135
|
import { randomUUID } from "node:crypto";
|
|
136
136
|
|
|
137
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
137
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/mcp/agent-log.js
|
|
138
138
|
var agentLog = /* @__PURE__ */ __name((open) => {
|
|
139
139
|
let held;
|
|
140
140
|
return {
|
|
@@ -153,7 +153,7 @@ var agentLog = /* @__PURE__ */ __name((open) => {
|
|
|
153
153
|
};
|
|
154
154
|
}, "agentLog");
|
|
155
155
|
|
|
156
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
156
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/mcp/resources.js
|
|
157
157
|
var LISTED = 100;
|
|
158
158
|
var registerResources = /* @__PURE__ */ __name((server, session, { command, name, limit, recorded, withStore, messenger, guard, assertRead }) => {
|
|
159
159
|
server.registerResource("chat", new ResourceTemplate(`${command}://chat/{id}`, {
|
|
@@ -191,7 +191,7 @@ var registerResources = /* @__PURE__ */ __name((server, session, { command, name
|
|
|
191
191
|
});
|
|
192
192
|
}, "registerResources");
|
|
193
193
|
|
|
194
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
194
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/mcp/session.js
|
|
195
195
|
var HARMLESS = /* @__PURE__ */ new Set(["validation_error", "not_found", "permission_error", "confirmation_required", "rate_limited"]);
|
|
196
196
|
var harmless = /* @__PURE__ */ __name((code) => HARMLESS.has(code), "harmless");
|
|
197
197
|
var MessengerSession = class {
|
|
@@ -266,7 +266,7 @@ var MessengerSession = class {
|
|
|
266
266
|
}
|
|
267
267
|
};
|
|
268
268
|
|
|
269
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
269
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/mcp/tools/attachments.js
|
|
270
270
|
var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
|
|
271
271
|
const _command = messenger.app.command;
|
|
272
272
|
return {
|
|
@@ -320,7 +320,7 @@ var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
|
|
|
320
320
|
};
|
|
321
321
|
}, "attachmentsTools");
|
|
322
322
|
|
|
323
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
323
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/mcp/tools/messages-photo.js
|
|
324
324
|
var PHOTO_LIMIT = 512 * 1024;
|
|
325
325
|
var IMAGE_TYPES = [
|
|
326
326
|
["image/jpeg", (b) => b[0] === 255 && b[1] === 216 && b[2] === 255],
|
|
@@ -374,7 +374,7 @@ var readUpTo = /* @__PURE__ */ __name(async (file, limit, saveIt) => {
|
|
|
374
374
|
return new Uint8Array(Buffer.concat(chunks));
|
|
375
375
|
}, "readUpTo");
|
|
376
376
|
|
|
377
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
377
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/mcp/tools/stats.js
|
|
378
378
|
var statsTools = /* @__PURE__ */ __name((messenger) => ({
|
|
379
379
|
stats_charts: tool({
|
|
380
380
|
title: "A chart from a chat's statistics",
|
|
@@ -411,14 +411,14 @@ var statsTools = /* @__PURE__ */ __name((messenger) => ({
|
|
|
411
411
|
})
|
|
412
412
|
}), "statsTools");
|
|
413
413
|
|
|
414
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
414
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/mcp/tools.js
|
|
415
415
|
var pictureTools = /* @__PURE__ */ __name((messenger) => Object.fromEntries(Object.entries({
|
|
416
416
|
...messagesPhotoTools(messenger),
|
|
417
417
|
...attachmentsTools(messenger),
|
|
418
418
|
...statsTools(messenger)
|
|
419
419
|
}).map(([name, definition]) => [name, { ...definition, input: strictObject(definition.input.entries) }])), "pictureTools");
|
|
420
420
|
|
|
421
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
421
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/mcp/server.js
|
|
422
422
|
var PER_RUN = /* @__PURE__ */ new Set([
|
|
423
423
|
"streams",
|
|
424
424
|
"stdin",
|
|
@@ -488,7 +488,7 @@ var createServer = /* @__PURE__ */ __name((command, context, messenger, sessionO
|
|
|
488
488
|
readOnly: readOnlyLockOf(app, context.env) !== void 0,
|
|
489
489
|
keyOf,
|
|
490
490
|
authority,
|
|
491
|
-
fetchOnly:
|
|
491
|
+
fetchOnly: readsOverMcpAt(root),
|
|
492
492
|
offline: true,
|
|
493
493
|
stdin
|
|
494
494
|
}).map((one) => "sync_first" in one.input.entries && !syncAllowed(one.path) ? {
|
|
@@ -742,7 +742,7 @@ var serveOverStdio = /* @__PURE__ */ __name(async (command, context, messenger,
|
|
|
742
742
|
}, "serveOverStdio");
|
|
743
743
|
var serveOverHttpUntilStopped = /* @__PURE__ */ __name(async (command, context, messenger, options, http) => {
|
|
744
744
|
const { session, embedders, build, log } = createServer(command, context, messenger, options);
|
|
745
|
-
const { serveOverHttp } = await import("./serve-
|
|
745
|
+
const { serveOverHttp } = await import("./serve-B7YYCMGN.js");
|
|
746
746
|
const appName = messenger.app.command;
|
|
747
747
|
const appEnvPrefix = messenger.app.envPrefix;
|
|
748
748
|
const listening = await serveOverHttp(build, {
|
|
@@ -2,16 +2,16 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
alive
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-OQR442B6.js";
|
|
6
6
|
import {
|
|
7
7
|
resolvePaths,
|
|
8
8
|
writeSecurely
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-KQ23JWLJ.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.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/node_modules/@wirecat/cli-core/dist/background/lock.js
|
|
15
15
|
import { existsSync, linkSync, mkdirSync, readdirSync, readFileSync, rmSync, writeFileSync } from "node:fs";
|
|
16
16
|
import { dirname, join } from "node:path";
|
|
17
17
|
var lockPath = /* @__PURE__ */ __name((app, profile, env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "serve", `${profile}.lock`), "lockPath");
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
safeParse,
|
|
15
15
|
stepOf,
|
|
16
16
|
writes
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-PCRLXJRH.js";
|
|
18
18
|
import {
|
|
19
19
|
__commonJS,
|
|
20
20
|
__name,
|
|
@@ -1887,7 +1887,7 @@ var require_cli_table3 = __commonJS({
|
|
|
1887
1887
|
}
|
|
1888
1888
|
});
|
|
1889
1889
|
|
|
1890
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1890
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/exit-codes.js
|
|
1891
1891
|
var EXIT_CODES = {
|
|
1892
1892
|
validation_error: 2,
|
|
1893
1893
|
configuration_error: 3,
|
|
@@ -1907,7 +1907,7 @@ var EXIT_CODES = {
|
|
|
1907
1907
|
var exitCodeFor = /* @__PURE__ */ __name((code) => EXIT_CODES[code], "exitCodeFor");
|
|
1908
1908
|
var GENERIC_FAILURE = 1;
|
|
1909
1909
|
|
|
1910
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1910
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/sanitize.js
|
|
1911
1911
|
var CONTROL = (
|
|
1912
1912
|
// biome-ignore lint/suspicious/noControlCharactersInRegex: matching them is the whole point
|
|
1913
1913
|
/[\u0000-\u0008\u000B-\u001F\u007F-\u009F\u200B\u200E\u200F\u202A-\u202E\u2066-\u2069\uFEFF\u{E0000}-\u{E007F}]/gu
|
|
@@ -1931,7 +1931,7 @@ var visibleControls = /* @__PURE__ */ __name((text) => {
|
|
|
1931
1931
|
}, "visibleControls");
|
|
1932
1932
|
var singleLine = /* @__PURE__ */ __name((text) => visibleControls(text).replace(LINE_BREAKS, escaped), "singleLine");
|
|
1933
1933
|
|
|
1934
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1934
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/failure.js
|
|
1935
1935
|
var recognise = /* @__PURE__ */ __name((failure) => {
|
|
1936
1936
|
if (isCliError(failure))
|
|
1937
1937
|
return failure;
|
|
@@ -2078,7 +2078,7 @@ var catchCrashes = /* @__PURE__ */ __name((options) => {
|
|
|
2078
2078
|
};
|
|
2079
2079
|
}, "catchCrashes");
|
|
2080
2080
|
|
|
2081
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2081
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/drain.js
|
|
2082
2082
|
var waitForDrain = /* @__PURE__ */ __name((stream, signal) => {
|
|
2083
2083
|
if (signal?.aborted)
|
|
2084
2084
|
return Promise.reject(signal.reason);
|
|
@@ -2106,7 +2106,7 @@ var waitForDrain = /* @__PURE__ */ __name((stream, signal) => {
|
|
|
2106
2106
|
});
|
|
2107
2107
|
}, "waitForDrain");
|
|
2108
2108
|
|
|
2109
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2109
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/streams.js
|
|
2110
2110
|
var processStreams = {
|
|
2111
2111
|
drain: /* @__PURE__ */ __name(async (signal) => {
|
|
2112
2112
|
await Promise.all([waitForDrain(process.stdout, signal), waitForDrain(process.stderr, signal)]);
|
|
@@ -2135,7 +2135,7 @@ var captureStreams = /* @__PURE__ */ __name(() => {
|
|
|
2135
2135
|
};
|
|
2136
2136
|
}, "captureStreams");
|
|
2137
2137
|
|
|
2138
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2138
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/retry.js
|
|
2139
2139
|
var DEFAULT_RETRY = {
|
|
2140
2140
|
retries: 1,
|
|
2141
2141
|
baseDelayMs: 250,
|
|
@@ -2147,7 +2147,7 @@ var backoffMs = /* @__PURE__ */ __name((attempt, config, random) => {
|
|
|
2147
2147
|
return Math.round(random() * ceiling);
|
|
2148
2148
|
}, "backoffMs");
|
|
2149
2149
|
|
|
2150
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2150
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/result-fields.js
|
|
2151
2151
|
var forbidden = /* @__PURE__ */ new Set(["__proto__", "prototype", "constructor"]);
|
|
2152
2152
|
var validate = /* @__PURE__ */ __name((paths) => {
|
|
2153
2153
|
if (paths.length === 0 || paths.length > 128 || paths.some((path) => path.length > 256 || !/^[A-Za-z][A-Za-z0-9_]*(?:\.[A-Za-z][A-Za-z0-9_]*)*$/.test(path) || path.split(".").some((part) => forbidden.has(part))))
|
|
@@ -2212,7 +2212,7 @@ var projectFields = /* @__PURE__ */ __name((value, fields) => {
|
|
|
2212
2212
|
return project(value, fields);
|
|
2213
2213
|
}, "projectFields");
|
|
2214
2214
|
|
|
2215
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2215
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/batch.js
|
|
2216
2216
|
var BATCH_LIMITS = Object.freeze({
|
|
2217
2217
|
requests: 32,
|
|
2218
2218
|
input_bytes: 262144,
|
|
@@ -2339,7 +2339,7 @@ var runBatch = /* @__PURE__ */ __name(async (requests, options = {}) => {
|
|
|
2339
2339
|
};
|
|
2340
2340
|
}, "runBatch");
|
|
2341
2341
|
|
|
2342
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2342
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/config.js
|
|
2343
2343
|
import { randomBytes } from "node:crypto";
|
|
2344
2344
|
import { mkdirSync, readFileSync, renameSync, rmSync, writeFileSync } from "node:fs";
|
|
2345
2345
|
import { dirname, join } from "node:path";
|
|
@@ -2383,11 +2383,11 @@ var saveConfigFile = /* @__PURE__ */ __name((path, config) => {
|
|
|
2383
2383
|
`, 384);
|
|
2384
2384
|
}, "saveConfigFile");
|
|
2385
2385
|
|
|
2386
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2386
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/credentials.js
|
|
2387
2387
|
import { readFileSync as readFileSync2 } from "node:fs";
|
|
2388
2388
|
import { join as join3, resolve } from "node:path";
|
|
2389
2389
|
|
|
2390
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2390
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/keyring.js
|
|
2391
2391
|
import { createRequire } from "node:module";
|
|
2392
2392
|
var ENTRY_OPTIONS = { linux: { store: "secret-service" } };
|
|
2393
2393
|
var require2 = createRequire(new URL("keyring.js", import.meta.resolve("@wirecat/cli-base")).href);
|
|
@@ -2407,7 +2407,7 @@ var systemKeyring = {
|
|
|
2407
2407
|
delete: /* @__PURE__ */ __name((service, account) => entry(service, account).deletePassword(), "delete")
|
|
2408
2408
|
};
|
|
2409
2409
|
|
|
2410
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2410
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/paths.js
|
|
2411
2411
|
import { homedir, userInfo } from "node:os";
|
|
2412
2412
|
import { join as join2, posix, win32 } from "node:path";
|
|
2413
2413
|
var PATH_KINDS = ["config", "state", "cache"];
|
|
@@ -2456,9 +2456,10 @@ var homeIsMoved = /* @__PURE__ */ __name(({ env = process.env, platform = proces
|
|
|
2456
2456
|
const owners = defaultPaths({ appName, env: { HOME: home, USERPROFILE: home }, platform });
|
|
2457
2457
|
return PATH_KINDS.some((kind) => actual[kind] !== owners[kind]);
|
|
2458
2458
|
}, "homeIsMoved");
|
|
2459
|
+
var isMovedRun = /* @__PURE__ */ __name((options) => pathsAreOverridden(options) || homeIsMoved(options), "isMovedRun");
|
|
2459
2460
|
var configFilePath = /* @__PURE__ */ __name((configDir, fileName = "config.json") => join2(configDir, fileName), "configFilePath");
|
|
2460
2461
|
|
|
2461
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2462
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/credentials.js
|
|
2462
2463
|
var movedRunService = /* @__PURE__ */ __name((service, configDir) => `${service}:${resolve(configDir)}`, "movedRunService");
|
|
2463
2464
|
var warnedRuns = /* @__PURE__ */ new WeakSet();
|
|
2464
2465
|
var Credentials = class {
|
|
@@ -2593,7 +2594,7 @@ var Credentials = class {
|
|
|
2593
2594
|
}
|
|
2594
2595
|
};
|
|
2595
2596
|
|
|
2596
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2597
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/time.js
|
|
2597
2598
|
var abortError = /* @__PURE__ */ __name(() => new DOMException("The operation was aborted.", "AbortError"), "abortError");
|
|
2598
2599
|
var realSleep = /* @__PURE__ */ __name((ms, signal) => new Promise((resolve2, reject) => {
|
|
2599
2600
|
if (signal?.aborted) {
|
|
@@ -2607,7 +2608,7 @@ var realSleep = /* @__PURE__ */ __name((ms, signal) => new Promise((resolve2, re
|
|
|
2607
2608
|
}, { once: true });
|
|
2608
2609
|
}), "realSleep");
|
|
2609
2610
|
|
|
2610
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2611
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/logging.js
|
|
2611
2612
|
import { appendFileSync } from "node:fs";
|
|
2612
2613
|
var REDACTED_FIELDS = [
|
|
2613
2614
|
"authorization",
|
|
@@ -2702,7 +2703,7 @@ var silent = {
|
|
|
2702
2703
|
}, "error")
|
|
2703
2704
|
};
|
|
2704
2705
|
|
|
2705
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2706
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/pretty.js
|
|
2706
2707
|
var import_cli_table3 = __toESM(require_cli_table3(), 1);
|
|
2707
2708
|
import { styleText } from "node:util";
|
|
2708
2709
|
var renderPretty = /* @__PURE__ */ __name((value, options) => {
|
|
@@ -2777,7 +2778,7 @@ var BORDERLESS = {
|
|
|
2777
2778
|
middle: ""
|
|
2778
2779
|
};
|
|
2779
2780
|
|
|
2780
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2781
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/renderer.js
|
|
2781
2782
|
var createRenderer = /* @__PURE__ */ __name(({ format, color, streams = processStreams, quiet = false }) => {
|
|
2782
2783
|
const mark = /* @__PURE__ */ __name((symbol, message) => format === "pretty" ? `${symbol} ${visibleControls(message)}` : visibleControls(message), "mark");
|
|
2783
2784
|
const say = /* @__PURE__ */ __name((symbol) => (message) => {
|
|
@@ -2837,6 +2838,7 @@ export {
|
|
|
2837
2838
|
saveConfigFile,
|
|
2838
2839
|
resolvePaths,
|
|
2839
2840
|
pathsAreOverridden,
|
|
2841
|
+
isMovedRun,
|
|
2840
2842
|
configFilePath,
|
|
2841
2843
|
Credentials,
|
|
2842
2844
|
realSleep,
|
|
@@ -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-VDATXIO4.js";
|
|
7
7
|
import {
|
|
8
8
|
CliError
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-PCRLXJRH.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.544.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.73.0_commander@15._14d279ae6bc0fc41a3606e009c109ba5/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";
|