@wirecat/tg-cli 0.126.0 → 0.128.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-BXU3AVB7.js → adapter-JOI34QLS.js} +43 -43
- package/dist/bundle/{all-profiles-G5A6IROO.js → all-profiles-2BZEE7J2.js} +18 -28
- package/dist/bundle/{anthropic-SINVEVEM.js → anthropic-NW7DL3S3.js} +2 -2
- package/dist/bundle/{app-server-IHIQXPJF.js → app-server-RUTYKELF.js} +39 -54
- package/dist/bundle/{bot-api-LGAVVYRM.js → bot-api-DW6NAZAQ.js} +44 -44
- package/dist/bundle/{bot-history-5C35FGCD.js → bot-history-FAJ2W42U.js} +12 -12
- package/dist/bundle/{bun-2GK3YOP3.js → bun-IVP5LSVI.js} +2 -2
- package/dist/bundle/{bun-sqlite-7DGADK3E.js → bun-sqlite-ATPCJ4CT.js} +3 -3
- package/dist/bundle/{chunk-Y5DGB7GP.js → chunk-2A3TC52A.js} +7 -7
- package/dist/bundle/{chunk-Y4724JRR.js → chunk-2IL4YDGG.js} +2 -2
- package/dist/bundle/{chunk-2F2UMQMB.js → chunk-2QHIOPSA.js} +182 -399
- package/dist/bundle/{chunk-SXVB2CVR.js → chunk-3UGRMFWK.js} +2 -2
- package/dist/bundle/{chunk-QCLMP635.js → chunk-4DSIGS2E.js} +5 -5
- package/dist/bundle/{chunk-HPFB4Y7P.js → chunk-5AP25FMW.js} +1 -1
- package/dist/bundle/{chunk-CK7DSGIK.js → chunk-7D6LI2N7.js} +322 -11
- package/dist/bundle/{chunk-2LN6OJUB.js → chunk-7I5NMVX7.js} +1 -1
- package/dist/bundle/{chunk-JQ2RKLPU.js → chunk-AF2XVV5P.js} +648 -239
- package/dist/bundle/{chunk-MP47TE77.js → chunk-BVCRDHI2.js} +3 -3
- package/dist/bundle/{chunk-7UACPXDC.js → chunk-E56QE3UC.js} +987 -768
- package/dist/bundle/{chunk-ACLUVZ4I.js → chunk-EAUHYQUK.js} +40 -48
- package/dist/bundle/{chunk-L5PYWQDA.js → chunk-F4UIBEQK.js} +2 -2
- package/dist/bundle/{chunk-FYOHGIQP.js → chunk-FHGAJK4I.js} +16 -13
- package/dist/bundle/{chunk-AA2NZAUT.js → chunk-G3PL3R45.js} +1 -1
- package/dist/bundle/{chunk-W75SKUY4.js → chunk-GYO4WXLG.js} +2 -2
- package/dist/bundle/{chunk-GIY56MIB.js → chunk-IHLNXL2D.js} +1 -1
- package/dist/bundle/{chunk-MA2XHO4O.js → chunk-IIHCSJV2.js} +641 -389
- package/dist/bundle/{chunk-N2JSMP4N.js → chunk-IV2KJQ5F.js} +16 -15
- package/dist/bundle/{chunk-QGLB4D7J.js → chunk-J3SX36NE.js} +1 -1
- package/dist/bundle/{chunk-XGBXRDJP.js → chunk-JI2PFQFL.js} +5 -5
- package/dist/bundle/{chunk-RFDPU4NO.js → chunk-JJGPU24U.js} +4 -4
- package/dist/bundle/{chunk-5NLAGTWU.js → chunk-KF2Q776U.js} +7 -7
- package/dist/bundle/{chunk-F34EE5Y2.js → chunk-KKZQK6IK.js} +2 -2
- package/dist/bundle/{chunk-5GINYFD4.js → chunk-LTADKMP5.js} +1 -1
- package/dist/bundle/{chunk-J2BUWK5U.js → chunk-MC6FOTCV.js} +98 -6
- package/dist/bundle/{chunk-63DSHUNP.js → chunk-MDGLKMLD.js} +5 -5
- package/dist/bundle/{chunk-PJ6FZXUR.js → chunk-MGBVVQTU.js} +2 -2
- package/dist/bundle/{chunk-K4DXGJK4.js → chunk-MOUPWPNL.js} +10 -10
- package/dist/bundle/{chunk-G4VVBR6U.js → chunk-NXDQXDRN.js} +3 -3
- package/dist/bundle/{chunk-SL4S5GFR.js → chunk-ODBK56ZR.js} +1 -1
- package/dist/bundle/{chunk-QYLYMOXN.js → chunk-OX6574YV.js} +11 -11
- package/dist/bundle/{chunk-4GR5YYGA.js → chunk-PJA43HVE.js} +2 -2
- package/dist/bundle/{chunk-GI2ZUNOH.js → chunk-Q3ZO6Q3M.js} +4 -4
- package/dist/bundle/{chunk-OXB5P37M.js → chunk-QO4ON2X7.js} +1 -1
- package/dist/bundle/{chunk-NJ3FSKSU.js → chunk-QYN5RDTZ.js} +2 -2
- package/dist/bundle/{chunk-GOGGRLS6.js → chunk-R4QVV3LN.js} +27 -12
- package/dist/bundle/{chunk-AZ7DSHQO.js → chunk-RIGNCUZD.js} +1 -1
- package/dist/bundle/{chunk-QMEPKUG3.js → chunk-RZFIQMOA.js} +55 -52
- package/dist/bundle/{chunk-G4RCT5RH.js → chunk-SDLJJF7E.js} +12 -12
- package/dist/bundle/{chunk-JAKP5RWM.js → chunk-T2CWSFGY.js} +1558 -928
- package/dist/bundle/{chunk-W35POPPX.js → chunk-TGUXKG4B.js} +16 -16
- package/dist/bundle/{chunk-W725T2V7.js → chunk-TQFUAKU6.js} +1 -1
- package/dist/bundle/{chunk-UIFQEXVP.js → chunk-UURJO46N.js} +1 -1
- package/dist/bundle/{chunk-AKUBJHE5.js → chunk-WG3BF7SA.js} +1 -1
- package/dist/bundle/{chunk-7FL2N6DM.js → chunk-WMF6SL5D.js} +1 -1
- package/dist/bundle/{chunk-ZXCQF6XV.js → chunk-WMUPZ3IY.js} +10 -10
- package/dist/bundle/{chunk-KSLZEXRF.js → chunk-WPMJQIEU.js} +1 -1
- package/dist/bundle/{chunk-QOINWAQD.js → chunk-XYAH6QQO.js} +2 -2
- package/dist/bundle/{chunk-DGGAYHLN.js → chunk-YSXDCSBP.js} +33 -23
- package/dist/bundle/{chunk-AYEQMXRE.js → chunk-YVV5S2QA.js} +1 -1
- package/dist/bundle/{chunk-P2GNIWGG.js → chunk-ZVLYK6CZ.js} +6 -6
- package/dist/bundle/{command-contract-ZEYY3ZXK.js → command-contract-3BSXDYBC.js} +13 -13
- package/dist/bundle/{command-server-entry-UWY6PQIV.js → command-server-entry-BU3X4XNL.js} +20 -20
- package/dist/bundle/{decode-QGMFQ6XX.js → decode-NXB7E46F.js} +2 -2
- package/dist/bundle/{echarts-GHU3GEWV.js → echarts-NAXLKJLA.js} +2 -2
- package/dist/bundle/{embed-6DMEWQDO.js → embed-LB6ONWHX.js} +3 -3
- package/dist/bundle/{embedder-W2L7YZPW.js → embedder-WE7B2RU5.js} +6 -6
- package/dist/bundle/{entry-LPEXVFQC.js → entry-W6Y52ZRN.js} +6 -6
- package/dist/bundle/{first-run-3UJ6SJF5.js → first-run-NVYNZZA6.js} +5 -5
- package/dist/bundle/{first-screen-VCSY5QH5.js → first-screen-Z6TVHK6I.js} +14 -14
- package/dist/bundle/{instructions-RUVAH2IS.js → instructions-MRUC57NS.js} +1 -1
- package/dist/bundle/{node-RYSNHVBX.js → node-G7PMDYQV.js} +2 -2
- package/dist/bundle/{node-sqlite-J6ZL4LUY.js → node-sqlite-RXWQ3SES.js} +4 -4
- package/dist/bundle/{oauth-B2QNZNSC.js → oauth-6ZWOL6KX.js} +4 -4
- package/dist/bundle/{open-OMUP5P6V.js → open-V7LMZCFI.js} +2 -2
- package/dist/bundle/{openai-BT4BP4VQ.js → openai-P472V4ZM.js} +12 -12
- package/dist/bundle/{process-HG3QDD54.js → process-GSNPENHL.js} +1 -1
- package/dist/bundle/{program-P2VATMKJ.js → program-IELITPKT.js} +46 -46
- package/dist/bundle/{prompt-BTIHH3Z4.js → prompt-2CP6CQ5N.js} +2 -2
- package/dist/bundle/{recognize-CTSJXPIG.js → recognize-R2DEQ5TC.js} +1 -1
- package/dist/bundle/{remote-2FIGCMKL.js → remote-JG3POFES.js} +6 -6
- package/dist/bundle/{rerank-TI5SLEF4.js → rerank-TVMR3OLL.js} +4 -4
- package/dist/bundle/{serve-IO3IM5C7.js → serve-DBWSMLPH.js} +6 -6
- package/dist/bundle/{server-WEPFFTYA.js → server-EXJ2WNZY.js} +37 -35
- package/dist/bundle/server-SXNFFAIR.js +61 -0
- package/dist/bundle/{sqlite-runtime-CTEYXX7L.js → sqlite-runtime-AWMY7W4Q.js} +3 -3
- package/dist/bundle/{state-GFHVDGHM.js → state-HN44BWNQ.js} +3 -3
- package/dist/bundle/{store-RCK6HT4F.js → store-GIYS3LHV.js} +9 -9
- package/dist/bundle/{store-Y5XC4LEM.js → store-LOVKYQDC.js} +15 -11
- package/dist/bundle/store-maintenance-command-X3VOYNCG.js +52 -0
- package/dist/bundle/tg.js +3 -3
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/dist/bundle/chunk-BSKYPHLB.js +0 -76
- package/dist/bundle/server-RIGXUTKZ.js +0 -62
- package/dist/bundle/store-maintenance-command-XH6VMCDU.js +0 -52
package/dist/bin/tg.js
CHANGED
|
@@ -9,7 +9,7 @@ if (
|
|
|
9
9
|
(words[0] === "--version" || words[0] === "-V") &&
|
|
10
10
|
!Object.keys(process.env).some((key) => key.endsWith("_TEST_ARGV_LOG"))
|
|
11
11
|
) {
|
|
12
|
-
process.stdout.write("0.
|
|
12
|
+
process.stdout.write("0.128.0\n")
|
|
13
13
|
} else {
|
|
14
14
|
// Before the bundle compiles: the bundle's own call comes after its chunks.
|
|
15
15
|
module.enableCompileCache()
|
|
@@ -28,7 +28,7 @@ if (
|
|
|
28
28
|
: next(specifier, context),
|
|
29
29
|
})
|
|
30
30
|
}
|
|
31
|
-
const chunks = ["../bundle/adapter-
|
|
31
|
+
const chunks = ["../bundle/adapter-JOI34QLS.js","../bundle/all-profiles-2BZEE7J2.js","../bundle/anthropic-NW7DL3S3.js","../bundle/app-server-RUTYKELF.js","../bundle/bot-api-DW6NAZAQ.js","../bundle/bot-history-FAJ2W42U.js","../bundle/bun-IVP5LSVI.js","../bundle/bun-sqlite-ATPCJ4CT.js","../bundle/command-contract-3BSXDYBC.js","../bundle/command-server-entry-BU3X4XNL.js","../bundle/decode-NXB7E46F.js","../bundle/dispatch-PRAIGIFS.js","../bundle/dist-I7OZPHAZ.js","../bundle/echarts-NAXLKJLA.js","../bundle/embed-LB6ONWHX.js","../bundle/embedder-WE7B2RU5.js","../bundle/entry-W6Y52ZRN.js","../bundle/failure-7Y34AUJT.js","../bundle/first-run-NVYNZZA6.js","../bundle/first-screen-Z6TVHK6I.js","../bundle/instructions-MRUC57NS.js","../bundle/mcp-TDKGDB4V.js","../bundle/node-G7PMDYQV.js","../bundle/node-P4E63KXA.js","../bundle/node-TLZSIHIJ.js","../bundle/node-sqlite-RXWQ3SES.js","../bundle/oauth-6ZWOL6KX.js","../bundle/open-V7LMZCFI.js","../bundle/openai-P472V4ZM.js","../bundle/process-GSNPENHL.js","../bundle/program-IELITPKT.js","../bundle/prompt-2CP6CQ5N.js","../bundle/proxy-transport-DP7SIMIC.js","../bundle/recognize-R2DEQ5TC.js","../bundle/remote-JG3POFES.js","../bundle/rerank-TVMR3OLL.js","../bundle/serve-DBWSMLPH.js","../bundle/server-EXJ2WNZY.js","../bundle/server-SXNFFAIR.js","../bundle/state-HN44BWNQ.js","../bundle/store-GIYS3LHV.js","../bundle/store-maintenance-command-X3VOYNCG.js"]
|
|
32
32
|
if (((words) => words
|
|
33
33
|
.filter((word) => !word.startsWith("-"))
|
|
34
34
|
.slice(0, 2)
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
toUploadParams,
|
|
36
36
|
videoMime,
|
|
37
37
|
withCause
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-5AP25FMW.js";
|
|
39
39
|
import {
|
|
40
40
|
proxiedTransport
|
|
41
41
|
} from "./chunk-YRZXOQOB.js";
|
|
@@ -46,64 +46,64 @@ import {
|
|
|
46
46
|
bareCheck,
|
|
47
47
|
formatMarkdown,
|
|
48
48
|
providerRequest
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-E56QE3UC.js";
|
|
50
50
|
import "./chunk-URFBZNLU.js";
|
|
51
|
-
import "./chunk-
|
|
52
|
-
import "./chunk-
|
|
53
|
-
import "./chunk-
|
|
54
|
-
import "./chunk-
|
|
55
|
-
import "./chunk-
|
|
56
|
-
import "./chunk-
|
|
57
|
-
import "./chunk-
|
|
58
|
-
import "./chunk-
|
|
59
|
-
import "./chunk-
|
|
51
|
+
import "./chunk-G3PL3R45.js";
|
|
52
|
+
import "./chunk-MOUPWPNL.js";
|
|
53
|
+
import "./chunk-WMUPZ3IY.js";
|
|
54
|
+
import "./chunk-WPMJQIEU.js";
|
|
55
|
+
import "./chunk-YSXDCSBP.js";
|
|
56
|
+
import "./chunk-R4QVV3LN.js";
|
|
57
|
+
import "./chunk-Q3ZO6Q3M.js";
|
|
58
|
+
import "./chunk-RZFIQMOA.js";
|
|
59
|
+
import "./chunk-FHGAJK4I.js";
|
|
60
60
|
import {
|
|
61
61
|
uploadBlob,
|
|
62
62
|
validateFormattedText
|
|
63
|
-
} from "./chunk-
|
|
64
|
-
import "./chunk-
|
|
63
|
+
} from "./chunk-IIHCSJV2.js";
|
|
64
|
+
import "./chunk-SDLJJF7E.js";
|
|
65
65
|
import "./chunk-LD42OGKK.js";
|
|
66
66
|
import "./chunk-FIVFP53N.js";
|
|
67
|
-
import "./chunk-
|
|
68
|
-
import "./chunk-
|
|
69
|
-
import "./chunk-
|
|
70
|
-
import "./chunk-
|
|
71
|
-
import "./chunk-
|
|
67
|
+
import "./chunk-2IL4YDGG.js";
|
|
68
|
+
import "./chunk-KF2Q776U.js";
|
|
69
|
+
import "./chunk-TGUXKG4B.js";
|
|
70
|
+
import "./chunk-4DSIGS2E.js";
|
|
71
|
+
import "./chunk-JJGPU24U.js";
|
|
72
72
|
import "./chunk-2ABQZVK4.js";
|
|
73
|
-
import "./chunk-
|
|
74
|
-
import "./chunk-
|
|
75
|
-
import "./chunk-
|
|
76
|
-
import "./chunk-
|
|
77
|
-
import "./chunk-
|
|
73
|
+
import "./chunk-MDGLKMLD.js";
|
|
74
|
+
import "./chunk-UURJO46N.js";
|
|
75
|
+
import "./chunk-ODBK56ZR.js";
|
|
76
|
+
import "./chunk-GYO4WXLG.js";
|
|
77
|
+
import "./chunk-7I5NMVX7.js";
|
|
78
78
|
import {
|
|
79
79
|
observedCounters,
|
|
80
80
|
pickChat
|
|
81
|
-
} from "./chunk-
|
|
82
|
-
import "./chunk-
|
|
83
|
-
import "./chunk-
|
|
84
|
-
import "./chunk-
|
|
81
|
+
} from "./chunk-T2CWSFGY.js";
|
|
82
|
+
import "./chunk-2A3TC52A.js";
|
|
83
|
+
import "./chunk-WG3BF7SA.js";
|
|
84
|
+
import "./chunk-3UGRMFWK.js";
|
|
85
85
|
import "./chunk-M4OP5ASJ.js";
|
|
86
86
|
import "./chunk-D72URWJE.js";
|
|
87
|
-
import "./chunk-
|
|
88
|
-
import "./chunk-
|
|
89
|
-
import "./chunk-
|
|
90
|
-
import "./chunk-
|
|
91
|
-
import "./chunk-
|
|
92
|
-
import "./chunk-
|
|
93
|
-
import "./chunk-
|
|
94
|
-
import "./chunk-
|
|
95
|
-
import "./chunk-
|
|
96
|
-
import "./chunk-
|
|
97
|
-
import "./chunk-
|
|
98
|
-
import "./chunk-
|
|
87
|
+
import "./chunk-PJA43HVE.js";
|
|
88
|
+
import "./chunk-JI2PFQFL.js";
|
|
89
|
+
import "./chunk-LTADKMP5.js";
|
|
90
|
+
import "./chunk-XYAH6QQO.js";
|
|
91
|
+
import "./chunk-2QHIOPSA.js";
|
|
92
|
+
import "./chunk-ZVLYK6CZ.js";
|
|
93
|
+
import "./chunk-QYN5RDTZ.js";
|
|
94
|
+
import "./chunk-YVV5S2QA.js";
|
|
95
|
+
import "./chunk-QO4ON2X7.js";
|
|
96
|
+
import "./chunk-RIGNCUZD.js";
|
|
97
|
+
import "./chunk-F4UIBEQK.js";
|
|
98
|
+
import "./chunk-BVCRDHI2.js";
|
|
99
99
|
import {
|
|
100
100
|
currentAttempt,
|
|
101
101
|
runEvent
|
|
102
|
-
} from "./chunk-
|
|
103
|
-
import "./chunk-
|
|
104
|
-
import "./chunk-
|
|
102
|
+
} from "./chunk-AF2XVV5P.js";
|
|
103
|
+
import "./chunk-MGBVVQTU.js";
|
|
104
|
+
import "./chunk-7D6LI2N7.js";
|
|
105
105
|
import "./chunk-XWBPP2HX.js";
|
|
106
|
-
import "./chunk-
|
|
106
|
+
import "./chunk-TQFUAKU6.js";
|
|
107
107
|
import "./chunk-NM5GBJME.js";
|
|
108
108
|
import "./chunk-XS5C5TQ7.js";
|
|
109
109
|
import "./chunk-Y5E2WNWB.js";
|
|
@@ -1,30 +1,33 @@
|
|
|
1
1
|
import { createRequire as __bundleRequire } from "node:module";
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
answeredWire
|
|
5
|
-
} from "./chunk-BSKYPHLB.js";
|
|
6
3
|
import {
|
|
7
4
|
CALLER_META_KEY,
|
|
8
5
|
PROXY_CLIENT_NAME,
|
|
9
6
|
StdioServerTransport,
|
|
7
|
+
answeredWire,
|
|
10
8
|
callerOf,
|
|
11
9
|
serveStdio
|
|
12
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-MC6FOTCV.js";
|
|
13
11
|
import {
|
|
14
12
|
McpServer
|
|
15
13
|
} from "./chunk-5D4AEUVA.js";
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-ZVLYK6CZ.js";
|
|
15
|
+
import "./chunk-MGBVVQTU.js";
|
|
18
16
|
import "./chunk-XWBPP2HX.js";
|
|
19
17
|
import "./chunk-NM5GBJME.js";
|
|
20
|
-
import
|
|
18
|
+
import {
|
|
19
|
+
errorObjectOf,
|
|
20
|
+
mcpErrorResult
|
|
21
|
+
} from "./chunk-XS5C5TQ7.js";
|
|
21
22
|
import "./chunk-Y5E2WNWB.js";
|
|
22
|
-
import
|
|
23
|
+
import {
|
|
24
|
+
CliError
|
|
25
|
+
} from "./chunk-7KCBPAQS.js";
|
|
23
26
|
import {
|
|
24
27
|
__name
|
|
25
28
|
} from "./chunk-ZVVMGPBJ.js";
|
|
26
29
|
|
|
27
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/mcp/all-profiles.js
|
|
28
31
|
import { spawn } from "node:child_process";
|
|
29
32
|
import { randomUUID } from "node:crypto";
|
|
30
33
|
var PROTOCOL = "2025-06-18";
|
|
@@ -180,10 +183,7 @@ var withProfile = /* @__PURE__ */ __name((tool, profiles, name, signedIn = () =>
|
|
|
180
183
|
}
|
|
181
184
|
};
|
|
182
185
|
}, "withProfile");
|
|
183
|
-
var refusal = /* @__PURE__ */ __name((text) => ({
|
|
184
|
-
isError: true,
|
|
185
|
-
content: [{ type: "text", text }]
|
|
186
|
-
}), "refusal");
|
|
186
|
+
var refusal = /* @__PURE__ */ __name((code, text, details) => mcpErrorResult(errorObjectOf(new CliError(code, text, details), { effects: { remote: "none", local: "none" } })), "refusal");
|
|
187
187
|
var allProfilesServer = /* @__PURE__ */ __name((options) => {
|
|
188
188
|
const children = pool(options);
|
|
189
189
|
let listed;
|
|
@@ -210,9 +210,9 @@ var allProfilesServer = /* @__PURE__ */ __name((options) => {
|
|
|
210
210
|
const { name, arguments: given = {}, _meta } = request.params;
|
|
211
211
|
const { profile, ...rest } = given;
|
|
212
212
|
if (typeof profile !== "string" || !profiles.includes(profile))
|
|
213
|
-
return refusal(`${name} needs "profile", one of: ${profiles.join(", ")}. If the owner did not say which account, ask.`);
|
|
213
|
+
return refusal("validation_error", `${name} needs "profile", one of: ${profiles.join(", ")}. If the owner did not say which account, ask.`);
|
|
214
214
|
if (!signedIn(profile))
|
|
215
|
-
return refusal(options.signIn?.(profile) ?? `profile ${profile} is not signed in.`);
|
|
215
|
+
return refusal("authentication_error", options.signIn?.(profile) ?? `profile ${profile} is not signed in.`);
|
|
216
216
|
try {
|
|
217
217
|
return await children.use(profile, (child) => (
|
|
218
218
|
// Children are shared by every session, so each call names its own caller.
|
|
@@ -223,7 +223,7 @@ var allProfilesServer = /* @__PURE__ */ __name((options) => {
|
|
|
223
223
|
})
|
|
224
224
|
));
|
|
225
225
|
} catch (error) {
|
|
226
|
-
return refusal(`profile ${profile}: ${error instanceof Error ? error.message : String(error)}`);
|
|
226
|
+
return refusal("outcome_unknown", `profile ${profile}: ${error instanceof Error ? error.message : String(error)}`);
|
|
227
227
|
}
|
|
228
228
|
});
|
|
229
229
|
return server;
|
|
@@ -238,18 +238,8 @@ var serveAllProfilesOverStdio = /* @__PURE__ */ __name(async (options, io = {})
|
|
|
238
238
|
transport: new StdioServerTransport(wire.input, wire.output),
|
|
239
239
|
onerror: /* @__PURE__ */ __name((error) => options.note?.(`mcp: ${error.message}`), "onerror")
|
|
240
240
|
});
|
|
241
|
-
|
|
242
|
-
wire.ended.then(() => resolve("input"));
|
|
243
|
-
if (own)
|
|
244
|
-
io.signal?.addEventListener("abort", () => resolve("stopped"), { once: true });
|
|
245
|
-
else {
|
|
246
|
-
process.once("SIGINT", () => resolve("stopped"));
|
|
247
|
-
process.once("SIGTERM", () => resolve("stopped"));
|
|
248
|
-
}
|
|
249
|
-
});
|
|
241
|
+
await wire.finished(own ? io.signal : void 0);
|
|
250
242
|
try {
|
|
251
|
-
if (ended === "input")
|
|
252
|
-
await wire.answered();
|
|
253
243
|
wire.release();
|
|
254
244
|
await handle.close();
|
|
255
245
|
} finally {
|
|
@@ -258,7 +248,7 @@ var serveAllProfilesOverStdio = /* @__PURE__ */ __name(async (options, io = {})
|
|
|
258
248
|
}, "serveAllProfilesOverStdio");
|
|
259
249
|
var serveAllProfilesOverHttp = /* @__PURE__ */ __name(async (options, http) => {
|
|
260
250
|
const { build, close } = allProfilesServer(options);
|
|
261
|
-
const { serveOverHttp } = await import("./serve-
|
|
251
|
+
const { serveOverHttp } = await import("./serve-DBWSMLPH.js");
|
|
262
252
|
const listening = await serveOverHttp(build, {
|
|
263
253
|
...http,
|
|
264
254
|
appName: options.command,
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
checkedOptions,
|
|
6
6
|
messagesFor,
|
|
7
7
|
systemFor
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-3UGRMFWK.js";
|
|
9
9
|
import {
|
|
10
10
|
Anthropic
|
|
11
11
|
} from "./chunk-ADLS6FVG.js";
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
__name
|
|
27
27
|
} from "./chunk-ZVVMGPBJ.js";
|
|
28
28
|
|
|
29
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/models/anthropic.js
|
|
30
30
|
var options = strictObject({
|
|
31
31
|
stop_sequences: optional(array(string())),
|
|
32
32
|
thinking: optional(strictObject({ type: picklist(["disabled", "adaptive"]) })),
|
|
@@ -3,57 +3,55 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
PER_RUN,
|
|
5
5
|
envelope
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-EAUHYQUK.js";
|
|
7
7
|
import {
|
|
8
8
|
mcpUrlOf
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import {
|
|
11
|
-
answeredWire
|
|
12
|
-
} from "./chunk-BSKYPHLB.js";
|
|
9
|
+
} from "./chunk-YSXDCSBP.js";
|
|
13
10
|
import {
|
|
14
11
|
answered,
|
|
15
12
|
failed,
|
|
16
13
|
registerCommands,
|
|
17
14
|
runCommandForAgent,
|
|
18
15
|
toolsFromCommands
|
|
19
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-IV2KJQ5F.js";
|
|
20
17
|
import {
|
|
21
18
|
agentJson,
|
|
22
19
|
skillResource
|
|
23
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-R4QVV3LN.js";
|
|
24
21
|
import {
|
|
25
22
|
StdioServerTransport,
|
|
23
|
+
answeredWire,
|
|
26
24
|
serveStdio
|
|
27
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-MC6FOTCV.js";
|
|
28
26
|
import {
|
|
29
27
|
appInstructions
|
|
30
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-IHLNXL2D.js";
|
|
31
29
|
import {
|
|
32
30
|
McpServer
|
|
33
31
|
} from "./chunk-5D4AEUVA.js";
|
|
34
32
|
import {
|
|
35
33
|
mcpHttpMarker
|
|
36
|
-
} from "./chunk-
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-
|
|
34
|
+
} from "./chunk-Q3ZO6Q3M.js";
|
|
35
|
+
import "./chunk-FHGAJK4I.js";
|
|
36
|
+
import "./chunk-IIHCSJV2.js";
|
|
37
|
+
import "./chunk-SDLJJF7E.js";
|
|
40
38
|
import "./chunk-LD42OGKK.js";
|
|
41
39
|
import "./chunk-FIVFP53N.js";
|
|
42
|
-
import "./chunk-
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
46
|
-
import "./chunk-
|
|
47
|
-
import "./chunk-
|
|
48
|
-
import "./chunk-
|
|
49
|
-
import "./chunk-
|
|
50
|
-
import "./chunk-
|
|
51
|
-
import "./chunk-
|
|
40
|
+
import "./chunk-2IL4YDGG.js";
|
|
41
|
+
import "./chunk-KF2Q776U.js";
|
|
42
|
+
import "./chunk-TGUXKG4B.js";
|
|
43
|
+
import "./chunk-4DSIGS2E.js";
|
|
44
|
+
import "./chunk-ODBK56ZR.js";
|
|
45
|
+
import "./chunk-7I5NMVX7.js";
|
|
46
|
+
import "./chunk-T2CWSFGY.js";
|
|
47
|
+
import "./chunk-2A3TC52A.js";
|
|
48
|
+
import "./chunk-WG3BF7SA.js";
|
|
49
|
+
import "./chunk-3UGRMFWK.js";
|
|
52
50
|
import "./chunk-M4OP5ASJ.js";
|
|
53
51
|
import "./chunk-D72URWJE.js";
|
|
54
|
-
import "./chunk-
|
|
55
|
-
import "./chunk-
|
|
56
|
-
import "./chunk-
|
|
52
|
+
import "./chunk-JI2PFQFL.js";
|
|
53
|
+
import "./chunk-LTADKMP5.js";
|
|
54
|
+
import "./chunk-XYAH6QQO.js";
|
|
57
55
|
import {
|
|
58
56
|
DEFAULT_OUTPUT_BYTES,
|
|
59
57
|
changesAuthorityAt,
|
|
@@ -63,21 +61,21 @@ import {
|
|
|
63
61
|
judgedTargets,
|
|
64
62
|
readsOverMcpAt,
|
|
65
63
|
rootOf2 as rootOf
|
|
66
|
-
} from "./chunk-
|
|
67
|
-
import "./chunk-
|
|
68
|
-
import "./chunk-
|
|
64
|
+
} from "./chunk-2QHIOPSA.js";
|
|
65
|
+
import "./chunk-ZVLYK6CZ.js";
|
|
66
|
+
import "./chunk-QYN5RDTZ.js";
|
|
69
67
|
import {
|
|
70
68
|
readOnlyLockOf
|
|
71
|
-
} from "./chunk-
|
|
72
|
-
import "./chunk-
|
|
73
|
-
import "./chunk-
|
|
74
|
-
import "./chunk-
|
|
75
|
-
import "./chunk-
|
|
76
|
-
import "./chunk-
|
|
77
|
-
import "./chunk-
|
|
78
|
-
import "./chunk-
|
|
69
|
+
} from "./chunk-YVV5S2QA.js";
|
|
70
|
+
import "./chunk-QO4ON2X7.js";
|
|
71
|
+
import "./chunk-RIGNCUZD.js";
|
|
72
|
+
import "./chunk-F4UIBEQK.js";
|
|
73
|
+
import "./chunk-BVCRDHI2.js";
|
|
74
|
+
import "./chunk-AF2XVV5P.js";
|
|
75
|
+
import "./chunk-MGBVVQTU.js";
|
|
76
|
+
import "./chunk-7D6LI2N7.js";
|
|
79
77
|
import "./chunk-XWBPP2HX.js";
|
|
80
|
-
import "./chunk-
|
|
78
|
+
import "./chunk-TQFUAKU6.js";
|
|
81
79
|
import "./chunk-NM5GBJME.js";
|
|
82
80
|
import {
|
|
83
81
|
mcpErrorResult
|
|
@@ -90,7 +88,7 @@ import {
|
|
|
90
88
|
__name
|
|
91
89
|
} from "./chunk-ZVVMGPBJ.js";
|
|
92
90
|
|
|
93
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
91
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/mcp/app-server.js
|
|
94
92
|
var EXCLUDED = [["mcp"]];
|
|
95
93
|
var aliasesOf = /* @__PURE__ */ __name((root, path) => {
|
|
96
94
|
let at = root;
|
|
@@ -200,27 +198,14 @@ var serveAppOverStdio = /* @__PURE__ */ __name(async (command, context, options)
|
|
|
200
198
|
transport: new StdioServerTransport(wire.input, wire.output),
|
|
201
199
|
onerror: /* @__PURE__ */ __name((error) => context.renderer.note(`mcp: ${error.message}`), "onerror")
|
|
202
200
|
});
|
|
203
|
-
|
|
204
|
-
wire.ended.then(() => resolve("input"));
|
|
205
|
-
if (own) {
|
|
206
|
-
if (signal?.aborted)
|
|
207
|
-
resolve("stopped");
|
|
208
|
-
else
|
|
209
|
-
signal?.addEventListener("abort", () => resolve("stopped"), { once: true });
|
|
210
|
-
} else {
|
|
211
|
-
process.once("SIGINT", () => resolve("stopped"));
|
|
212
|
-
process.once("SIGTERM", () => resolve("stopped"));
|
|
213
|
-
}
|
|
214
|
-
});
|
|
215
|
-
if (ended === "input")
|
|
216
|
-
await wire.answered();
|
|
201
|
+
await wire.finished(own ? signal : void 0);
|
|
217
202
|
wire.release();
|
|
218
203
|
await handle.close();
|
|
219
204
|
}, "serveAppOverStdio");
|
|
220
205
|
var serveAppOverHttp = /* @__PURE__ */ __name(async (command, context, options, http) => {
|
|
221
206
|
const { app } = options;
|
|
222
207
|
const { build } = createAppServer(command, context, options);
|
|
223
|
-
const { serveOverHttp } = await import("./serve-
|
|
208
|
+
const { serveOverHttp } = await import("./serve-DBWSMLPH.js");
|
|
224
209
|
const listening = await serveOverHttp(build, {
|
|
225
210
|
...http,
|
|
226
211
|
appName: app.command,
|
|
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
TELEGRAM_BOT
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-OX6574YV.js";
|
|
6
6
|
import {
|
|
7
7
|
BotTokenStore,
|
|
8
8
|
apiPlainJson,
|
|
@@ -11,47 +11,47 @@ import {
|
|
|
11
11
|
checkApiParameter,
|
|
12
12
|
generatedApiCommand,
|
|
13
13
|
prepareRpcApiBody
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-E56QE3UC.js";
|
|
15
15
|
import "./chunk-URFBZNLU.js";
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-G3PL3R45.js";
|
|
17
|
+
import "./chunk-MOUPWPNL.js";
|
|
18
|
+
import "./chunk-WMUPZ3IY.js";
|
|
19
|
+
import "./chunk-WPMJQIEU.js";
|
|
20
|
+
import "./chunk-YSXDCSBP.js";
|
|
21
|
+
import "./chunk-R4QVV3LN.js";
|
|
22
|
+
import "./chunk-Q3ZO6Q3M.js";
|
|
23
|
+
import "./chunk-RZFIQMOA.js";
|
|
24
|
+
import "./chunk-FHGAJK4I.js";
|
|
25
25
|
import {
|
|
26
26
|
newOperationId,
|
|
27
27
|
readUpload,
|
|
28
28
|
uploadBytes
|
|
29
|
-
} from "./chunk-
|
|
30
|
-
import "./chunk-
|
|
29
|
+
} from "./chunk-IIHCSJV2.js";
|
|
30
|
+
import "./chunk-SDLJJF7E.js";
|
|
31
31
|
import "./chunk-LD42OGKK.js";
|
|
32
32
|
import "./chunk-FIVFP53N.js";
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-2IL4YDGG.js";
|
|
34
|
+
import "./chunk-KF2Q776U.js";
|
|
35
|
+
import "./chunk-TGUXKG4B.js";
|
|
36
|
+
import "./chunk-4DSIGS2E.js";
|
|
37
|
+
import "./chunk-JJGPU24U.js";
|
|
38
38
|
import "./chunk-2ABQZVK4.js";
|
|
39
|
-
import "./chunk-
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
46
|
-
import "./chunk-
|
|
47
|
-
import "./chunk-
|
|
48
|
-
import "./chunk-
|
|
39
|
+
import "./chunk-MDGLKMLD.js";
|
|
40
|
+
import "./chunk-UURJO46N.js";
|
|
41
|
+
import "./chunk-ODBK56ZR.js";
|
|
42
|
+
import "./chunk-GYO4WXLG.js";
|
|
43
|
+
import "./chunk-7I5NMVX7.js";
|
|
44
|
+
import "./chunk-T2CWSFGY.js";
|
|
45
|
+
import "./chunk-2A3TC52A.js";
|
|
46
|
+
import "./chunk-WG3BF7SA.js";
|
|
47
|
+
import "./chunk-3UGRMFWK.js";
|
|
48
|
+
import "./chunk-WMF6SL5D.js";
|
|
49
49
|
import "./chunk-M4OP5ASJ.js";
|
|
50
50
|
import "./chunk-D72URWJE.js";
|
|
51
|
-
import "./chunk-
|
|
52
|
-
import "./chunk-
|
|
53
|
-
import "./chunk-
|
|
54
|
-
import "./chunk-
|
|
51
|
+
import "./chunk-PJA43HVE.js";
|
|
52
|
+
import "./chunk-JI2PFQFL.js";
|
|
53
|
+
import "./chunk-LTADKMP5.js";
|
|
54
|
+
import "./chunk-XYAH6QQO.js";
|
|
55
55
|
import {
|
|
56
56
|
ChatRegistry,
|
|
57
57
|
DEFAULT_PERMISSIONS,
|
|
@@ -59,19 +59,19 @@ import {
|
|
|
59
59
|
levelFor,
|
|
60
60
|
overrideSharedContract,
|
|
61
61
|
ownerOnlyOption
|
|
62
|
-
} from "./chunk-
|
|
63
|
-
import "./chunk-
|
|
64
|
-
import "./chunk-
|
|
65
|
-
import "./chunk-
|
|
66
|
-
import "./chunk-
|
|
67
|
-
import "./chunk-
|
|
68
|
-
import "./chunk-
|
|
69
|
-
import "./chunk-
|
|
70
|
-
import "./chunk-
|
|
71
|
-
import "./chunk-
|
|
72
|
-
import "./chunk-
|
|
62
|
+
} from "./chunk-2QHIOPSA.js";
|
|
63
|
+
import "./chunk-ZVLYK6CZ.js";
|
|
64
|
+
import "./chunk-QYN5RDTZ.js";
|
|
65
|
+
import "./chunk-YVV5S2QA.js";
|
|
66
|
+
import "./chunk-QO4ON2X7.js";
|
|
67
|
+
import "./chunk-RIGNCUZD.js";
|
|
68
|
+
import "./chunk-F4UIBEQK.js";
|
|
69
|
+
import "./chunk-BVCRDHI2.js";
|
|
70
|
+
import "./chunk-AF2XVV5P.js";
|
|
71
|
+
import "./chunk-MGBVVQTU.js";
|
|
72
|
+
import "./chunk-7D6LI2N7.js";
|
|
73
73
|
import "./chunk-XWBPP2HX.js";
|
|
74
|
-
import "./chunk-
|
|
74
|
+
import "./chunk-TQFUAKU6.js";
|
|
75
75
|
import "./chunk-NM5GBJME.js";
|
|
76
76
|
import {
|
|
77
77
|
array,
|
|
@@ -5,23 +5,23 @@ import {
|
|
|
5
5
|
toCliError,
|
|
6
6
|
toHistoryChannel,
|
|
7
7
|
toHistoryMessages
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-5AP25FMW.js";
|
|
9
9
|
import {
|
|
10
10
|
proxiedTransport
|
|
11
11
|
} from "./chunk-YRZXOQOB.js";
|
|
12
12
|
import "./chunk-URFBZNLU.js";
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-TGUXKG4B.js";
|
|
14
|
+
import "./chunk-T2CWSFGY.js";
|
|
15
|
+
import "./chunk-2A3TC52A.js";
|
|
16
|
+
import "./chunk-WG3BF7SA.js";
|
|
17
|
+
import "./chunk-JI2PFQFL.js";
|
|
18
|
+
import "./chunk-LTADKMP5.js";
|
|
19
|
+
import "./chunk-F4UIBEQK.js";
|
|
20
|
+
import "./chunk-AF2XVV5P.js";
|
|
21
|
+
import "./chunk-MGBVVQTU.js";
|
|
22
|
+
import "./chunk-7D6LI2N7.js";
|
|
23
23
|
import "./chunk-XWBPP2HX.js";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-TQFUAKU6.js";
|
|
25
25
|
import "./chunk-NM5GBJME.js";
|
|
26
26
|
import "./chunk-XS5C5TQ7.js";
|
|
27
27
|
import "./chunk-Y5E2WNWB.js";
|
|
@@ -18,12 +18,12 @@ import {
|
|
|
18
18
|
jitCompatCheck,
|
|
19
19
|
refineSqliteCodecs,
|
|
20
20
|
sql
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-WG3BF7SA.js";
|
|
22
22
|
import {
|
|
23
23
|
__name
|
|
24
24
|
} from "./chunk-ZVVMGPBJ.js";
|
|
25
25
|
|
|
26
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/bun.js
|
|
27
27
|
import { Database } from "bun:sqlite";
|
|
28
28
|
var bunSQLiteCodecs = refineSqliteCodecs({
|
|
29
29
|
"integer:boolean": { normalize: booleanFromInteger },
|
|
@@ -3,10 +3,10 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
loadVectorExtension,
|
|
5
5
|
vectorExtension
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-J3SX36NE.js";
|
|
7
7
|
import {
|
|
8
8
|
refuseOwnerStoreInTests
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-TQFUAKU6.js";
|
|
10
10
|
import "./chunk-NM5GBJME.js";
|
|
11
11
|
import "./chunk-XS5C5TQ7.js";
|
|
12
12
|
import {
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
__name
|
|
18
18
|
} from "./chunk-ZVVMGPBJ.js";
|
|
19
19
|
|
|
20
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/node_modules/@wirecat/cli-core/dist/store/drivers/bun-sqlite.js
|
|
21
21
|
var customised = false;
|
|
22
22
|
var ownLibrary = /* @__PURE__ */ __name(async () => {
|
|
23
23
|
try {
|