@wirecat/tg-cli 0.127.0 → 0.129.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/contracts/wirecat.json +26 -0
- package/dist/bin/tg.js +2 -2
- package/dist/bundle/{adapter-EZFS2UR6.js → adapter-2XFPXBTA.js} +60 -52
- package/dist/bundle/{all-profiles-TNIUBQK6.js → all-profiles-GXFPZLYU.js} +20 -30
- package/dist/bundle/{anthropic-NGIS5LTL.js → anthropic-FHS5XNK5.js} +5 -5
- package/dist/bundle/{app-server-RPU76G7D.js → app-server-IZMFSFP2.js} +56 -63
- package/dist/bundle/{bot-api-QJ6U6BLG.js → bot-api-LQP75V5I.js} +61 -53
- package/dist/bundle/{bot-history-THULK2C6.js → bot-history-EJQOD4AQ.js} +22 -18
- package/dist/bundle/{bun-QLSLLP27.js → bun-GBAZFRCV.js} +2 -2
- package/dist/bundle/{bun-sqlite-SH5245ZY.js → bun-sqlite-JB4BX6X7.js} +6 -6
- package/dist/bundle/chunk-2JZJPVBH.js +334 -0
- package/dist/bundle/{chunk-DNNYE6PS.js → chunk-2LPODKIF.js} +18 -15
- package/dist/bundle/chunk-3KZG63EH.js +170 -0
- package/dist/bundle/chunk-3XMUP55N.js +372 -0
- package/dist/bundle/{chunk-BWHVHPAQ.js → chunk-4BJAQNJ5.js} +9 -9
- package/dist/bundle/{chunk-M4OP5ASJ.js → chunk-66PL7P4C.js} +1 -1
- package/dist/bundle/{chunk-JWEKUAVZ.js → chunk-66UG67CE.js} +12 -12
- package/dist/bundle/{chunk-R52ZZZKZ.js → chunk-6JBRQ6PM.js} +55 -22
- package/dist/bundle/{chunk-Y7UA7HGL.js → chunk-6M3FAHPS.js} +3 -3
- package/dist/bundle/{chunk-TGKTIDYS.js → chunk-7F3LOHRB.js} +290 -504
- package/dist/bundle/{chunk-XS5C5TQ7.js → chunk-AUNNJDVD.js} +25 -8
- package/dist/bundle/{chunk-ERUB3KU3.js → chunk-B5RGPZDZ.js} +7 -7
- package/dist/bundle/{chunk-YRZXOQOB.js → chunk-B6NQJAUC.js} +2 -2
- package/dist/bundle/{chunk-4FFKCC7Y.js → chunk-BMSS3PCY.js} +62 -36
- package/dist/bundle/{chunk-VMV5CMLH.js → chunk-C4ALE7CH.js} +1 -1
- package/dist/bundle/{chunk-K4VO7S6Q.js → chunk-CKJ73EF3.js} +1 -1
- package/dist/bundle/{chunk-IX3GUNGV.js → chunk-CLG2ISQH.js} +4 -4
- package/dist/bundle/{chunk-MTU3UP5U.js → chunk-EB2JE722.js} +1 -1
- package/dist/bundle/{chunk-EGNQSWPH.js → chunk-EUL7HMUL.js} +2 -2
- package/dist/bundle/{chunk-2R6ZSE3O.js → chunk-F6CV4KUN.js} +2 -2
- package/dist/bundle/{chunk-7KCBPAQS.js → chunk-F6MLJ3V5.js} +2 -2
- package/dist/bundle/{chunk-ZSS3BH6Z.js → chunk-FH4YIBBH.js} +4 -4
- package/dist/bundle/chunk-FIO5NMK3.js +771 -0
- package/dist/bundle/{chunk-FSDLSEZA.js → chunk-G2SMVYBU.js} +2 -2
- package/dist/bundle/{chunk-FIVFP53N.js → chunk-GA3URWIF.js} +1 -1
- package/dist/bundle/{chunk-4CQ3PV3V.js → chunk-GGGBPWUS.js} +10 -15
- package/dist/bundle/{chunk-3CV5TBBR.js → chunk-GSHTLLCJ.js} +2 -2
- package/dist/bundle/{chunk-IWJ5OLU6.js → chunk-GYCKRIRK.js} +3 -3
- package/dist/bundle/{chunk-H7GAFD4N.js → chunk-HHUK3XO5.js} +1 -1
- package/dist/bundle/{chunk-NM5GBJME.js → chunk-HT6OFANN.js} +19 -19
- package/dist/bundle/{chunk-GHVRCLJI.js → chunk-I5PILOTU.js} +1 -1
- package/dist/bundle/chunk-IBSHQWIJ.js +29 -0
- package/dist/bundle/{chunk-5SN6KFPC.js → chunk-IRWSZJYL.js} +65 -60
- package/dist/bundle/{chunk-3I3TGKVG.js → chunk-IV6SIKVH.js} +4 -4
- package/dist/bundle/{chunk-URFBZNLU.js → chunk-JUFLELQ7.js} +2 -2
- package/dist/bundle/{chunk-5FDYMMEQ.js → chunk-KY3JLXW2.js} +4 -4
- package/dist/bundle/{chunk-YZGIQY2R.js → chunk-LPT5T6PU.js} +37 -28
- package/dist/bundle/chunk-LQPZDDDP.js +259 -0
- package/dist/bundle/{chunk-CXWAKV2O.js → chunk-M327UNS6.js} +6 -6
- package/dist/bundle/{chunk-4MKRKW6V.js → chunk-MS6YEIG5.js} +13 -13
- package/dist/bundle/{chunk-UY2TRFYN.js → chunk-MVFSWKTM.js} +12 -12
- package/dist/bundle/{chunk-45URY64S.js → chunk-NRCY3WBC.js} +2 -2
- package/dist/bundle/{chunk-SN52ZGFN.js → chunk-O2ULG7OO.js} +3 -3
- package/dist/bundle/{chunk-JF7D2Y4K.js → chunk-OJMDKWWL.js} +670 -519
- package/dist/bundle/{chunk-UW34Z7J3.js → chunk-OKTRB4ZQ.js} +1 -1
- package/dist/bundle/{chunk-7GE6KMLB.js → chunk-OOQVHMCS.js} +15 -15
- package/dist/bundle/{chunk-P5NJECXX.js → chunk-OWVQMK7G.js} +939 -909
- package/dist/bundle/{chunk-YIPOWJPN.js → chunk-P4FZJO5F.js} +2 -2
- package/dist/bundle/{chunk-LD42OGKK.js → chunk-PS7ZS5HD.js} +4 -4
- package/dist/bundle/{chunk-J6FHZXNS.js → chunk-PWQKGFS2.js} +49 -55
- package/dist/bundle/{chunk-APSMQIA4.js → chunk-QBNEWEJC.js} +3 -3
- package/dist/bundle/{chunk-Y65BQJOY.js → chunk-QDEP2QOA.js} +3 -3
- package/dist/bundle/{chunk-FD44T7HC.js → chunk-QFVIHBLD.js} +1 -1
- package/dist/bundle/{chunk-5KZKVKWU.js → chunk-QJDHRBXL.js} +7 -7
- package/dist/bundle/{chunk-LOG65WHO.js → chunk-QJLCEOAP.js} +1 -1
- package/dist/bundle/{chunk-XUAVZ6YX.js → chunk-RAFK5KXU.js} +9 -9
- package/dist/bundle/{chunk-UIQMBOXU.js → chunk-RPWYTOLI.js} +5 -5
- package/dist/bundle/{chunk-QPVCFSVU.js → chunk-RZPMFVWM.js} +6 -6
- package/dist/bundle/chunk-S5UTBEV3.js +1974 -0
- package/dist/bundle/{chunk-X4ECHJNG.js → chunk-SYZXOEHY.js} +98 -6
- package/dist/bundle/{chunk-BNM6KNUQ.js → chunk-SZB5WRMI.js} +2 -2
- package/dist/bundle/{chunk-5AOFOJQA.js → chunk-TGRB4SSZ.js} +4 -4
- package/dist/bundle/{chunk-Y62I2T36.js → chunk-VSPSHBAC.js} +2 -2
- package/dist/bundle/{chunk-JFQZ6BWI.js → chunk-VTJ3AOTT.js} +17 -17
- package/dist/bundle/{chunk-HPM47WO3.js → chunk-VXWDQDRU.js} +6130 -6675
- package/dist/bundle/{chunk-S3XUJPPL.js → chunk-X5H5NERR.js} +6 -6
- package/dist/bundle/{chunk-3WI53AA4.js → chunk-XHX5D5VE.js} +1174 -2636
- package/dist/bundle/chunk-XXW6PFAX.js +16 -0
- package/dist/bundle/{chunk-NBN5OYXH.js → chunk-ZRQQOGAZ.js} +4 -4
- package/dist/bundle/command-contract-G752BLKA.js +37 -0
- package/dist/bundle/{command-server-entry-UG2CLYXI.js → command-server-entry-YR6ONDWO.js} +27 -24
- package/dist/bundle/decode-VUKGWFSW.js +296 -0
- package/dist/bundle/{dispatch-PRAIGIFS.js → dispatch-ST5FK2KI.js} +8 -8
- package/dist/bundle/{echarts-CN6ZVAJZ.js → echarts-GOV5M733.js} +2 -2
- package/dist/bundle/{embed-M4EHIKA5.js → embed-2IVIYNAJ.js} +6 -6
- package/dist/bundle/{embedder-K2XL2UB4.js → embedder-2HU7JYZK.js} +9 -9
- package/dist/bundle/{entry-6M55YL2H.js → entry-CSTCXYI5.js} +9 -9
- package/dist/bundle/{failure-7Y34AUJT.js → failure-GMUQKQ5K.js} +2 -2
- package/dist/bundle/{first-run-TLJILIOF.js → first-run-3IZGXZT5.js} +12 -11
- package/dist/bundle/first-screen-7QSNCZIK.js +35 -0
- package/dist/bundle/{instructions-QLC2AXAB.js → instructions-YSXV6FAC.js} +1 -1
- package/dist/bundle/{mcp-TDKGDB4V.js → mcp-VFIOZDVY.js} +2 -2
- package/dist/bundle/meeting-combined-X4E3LSIJ.js +23 -0
- package/dist/bundle/meeting-model-FQBDHGRU.js +24 -0
- package/dist/bundle/meeting-semantic-ONNEOJX5.js +21 -0
- package/dist/bundle/{node-BAA3T4CH.js → node-FMQWCZRS.js} +2 -2
- package/dist/bundle/{node-sqlite-FNYVHQCO.js → node-sqlite-YN5OKOC6.js} +7 -7
- package/dist/bundle/{oauth-32T5KL5E.js → oauth-EW7PTZVT.js} +7 -7
- package/dist/bundle/{open-4VQ6FUEI.js → open-Q2RDY344.js} +5 -5
- package/dist/bundle/{openai-HDOKCN3Z.js → openai-STON6G3O.js} +28 -26
- package/dist/bundle/{process-GOUBIWKC.js → process-OQUC2TW3.js} +1 -1
- package/dist/bundle/{program-QFXJL2R5.js → program-7JJHTZ25.js} +66 -57
- package/dist/bundle/{prompt-YYODWYFO.js → prompt-WHVF7UTW.js} +5 -5
- package/dist/bundle/{proxy-transport-DP7SIMIC.js → proxy-transport-A4MRO3PF.js} +5 -5
- package/dist/bundle/{recognize-7ZULX5HL.js → recognize-YDQWMXNI.js} +4 -4
- package/dist/bundle/{remote-TUG7M5Y5.js → remote-477LQHP6.js} +9 -9
- package/dist/bundle/{rerank-D2EZWG66.js → rerank-4YPB26FG.js} +7 -7
- package/dist/bundle/{serve-MP3GA2XX.js → serve-FXJNUOTS.js} +9 -9
- package/dist/bundle/{server-D277L3H3.js → server-2S6HFBGR.js} +52 -42
- package/dist/bundle/server-UOSUTZNE.js +69 -0
- package/dist/bundle/{sqlite-runtime-XHZXEOLY.js → sqlite-runtime-RXYNJYMC.js} +6 -6
- package/dist/bundle/{state-YI3W6HGO.js → state-I2GGYGRL.js} +6 -6
- package/dist/bundle/{store-CIZPJFWE.js → store-KX3AAQZH.js} +25 -20
- package/dist/bundle/{store-C4RFPYPK.js → store-VQXIB6KV.js} +17 -13
- package/dist/bundle/store-maintenance-command-LW2MMDLY.js +60 -0
- package/dist/bundle/tg.js +13 -13
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/bundle/chunk-ZIPUVOGT.js +0 -76
- package/dist/bundle/command-contract-DY6Y4TES.js +0 -34
- package/dist/bundle/decode-3NEUZJ2N.js +0 -162
- package/dist/bundle/first-screen-WME7ILW2.js +0 -32
- package/dist/bundle/server-GEP7QXGI.js +0 -62
- package/dist/bundle/store-maintenance-command-JNDYWFD2.js +0 -52
- /package/dist/bundle/{chunk-XWBPP2HX.js → chunk-ZI3YTXSF.js} +0 -0
package/contracts/wirecat.json
CHANGED
|
@@ -1493,6 +1493,32 @@
|
|
|
1493
1493
|
},
|
|
1494
1494
|
"entity": "model_key"
|
|
1495
1495
|
},
|
|
1496
|
+
{
|
|
1497
|
+
"path": [
|
|
1498
|
+
"models",
|
|
1499
|
+
"chats",
|
|
1500
|
+
"show"
|
|
1501
|
+
],
|
|
1502
|
+
"summary": "whether chat text may go to a model outside this computer, and since when",
|
|
1503
|
+
"effects": {
|
|
1504
|
+
"remote": "none",
|
|
1505
|
+
"local": "read"
|
|
1506
|
+
},
|
|
1507
|
+
"entity": "chat_sending"
|
|
1508
|
+
},
|
|
1509
|
+
{
|
|
1510
|
+
"path": [
|
|
1511
|
+
"models",
|
|
1512
|
+
"chats",
|
|
1513
|
+
"set"
|
|
1514
|
+
],
|
|
1515
|
+
"summary": "allowed, ask (the default) or denied; only you make it less strict",
|
|
1516
|
+
"effects": {
|
|
1517
|
+
"remote": "none",
|
|
1518
|
+
"local": "write"
|
|
1519
|
+
},
|
|
1520
|
+
"entity": "chat_sending"
|
|
1521
|
+
},
|
|
1496
1522
|
{
|
|
1497
1523
|
"path": [
|
|
1498
1524
|
"models",
|
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.129.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-2XFPXBTA.js","../bundle/all-profiles-GXFPZLYU.js","../bundle/anthropic-FHS5XNK5.js","../bundle/app-server-IZMFSFP2.js","../bundle/bot-api-LQP75V5I.js","../bundle/bot-history-EJQOD4AQ.js","../bundle/bun-GBAZFRCV.js","../bundle/bun-sqlite-JB4BX6X7.js","../bundle/command-contract-G752BLKA.js","../bundle/command-server-entry-YR6ONDWO.js","../bundle/decode-VUKGWFSW.js","../bundle/dispatch-ST5FK2KI.js","../bundle/dist-I7OZPHAZ.js","../bundle/echarts-GOV5M733.js","../bundle/embed-2IVIYNAJ.js","../bundle/embedder-2HU7JYZK.js","../bundle/entry-CSTCXYI5.js","../bundle/failure-GMUQKQ5K.js","../bundle/first-run-3IZGXZT5.js","../bundle/first-screen-7QSNCZIK.js","../bundle/instructions-YSXV6FAC.js","../bundle/mcp-VFIOZDVY.js","../bundle/node-FMQWCZRS.js","../bundle/node-P4E63KXA.js","../bundle/node-TLZSIHIJ.js","../bundle/node-sqlite-YN5OKOC6.js","../bundle/oauth-EW7PTZVT.js","../bundle/open-Q2RDY344.js","../bundle/openai-STON6G3O.js","../bundle/process-OQUC2TW3.js","../bundle/program-7JJHTZ25.js","../bundle/prompt-WHVF7UTW.js","../bundle/proxy-transport-A4MRO3PF.js","../bundle/recognize-YDQWMXNI.js","../bundle/remote-477LQHP6.js","../bundle/rerank-4YPB26FG.js","../bundle/serve-FXJNUOTS.js","../bundle/server-2S6HFBGR.js","../bundle/server-UOSUTZNE.js","../bundle/state-I2GGYGRL.js","../bundle/store-VQXIB6KV.js","../bundle/store-maintenance-command-LW2MMDLY.js"]
|
|
32
32
|
if (((words) => words
|
|
33
33
|
.filter((word) => !word.startsWith("-"))
|
|
34
34
|
.slice(0, 2)
|
|
@@ -35,10 +35,10 @@ import {
|
|
|
35
35
|
toUploadParams,
|
|
36
36
|
videoMime,
|
|
37
37
|
withCause
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-SZB5WRMI.js";
|
|
39
39
|
import {
|
|
40
40
|
proxiedTransport
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-B6NQJAUC.js";
|
|
42
42
|
import {
|
|
43
43
|
ADMIN_RIGHTS,
|
|
44
44
|
ADMIN_RIGHT_FIELDS,
|
|
@@ -46,71 +46,79 @@ import {
|
|
|
46
46
|
bareCheck,
|
|
47
47
|
formatMarkdown,
|
|
48
48
|
providerRequest
|
|
49
|
-
} from "./chunk-
|
|
50
|
-
import "./chunk-
|
|
51
|
-
import "./chunk-
|
|
52
|
-
import "./chunk-
|
|
53
|
-
import "./chunk-
|
|
54
|
-
import "./chunk-
|
|
55
|
-
import "./chunk-
|
|
56
|
-
import "./chunk-
|
|
57
|
-
import "./chunk-5AOFOJQA.js";
|
|
58
|
-
import "./chunk-5SN6KFPC.js";
|
|
59
|
-
import "./chunk-DNNYE6PS.js";
|
|
49
|
+
} from "./chunk-OJMDKWWL.js";
|
|
50
|
+
import "./chunk-JUFLELQ7.js";
|
|
51
|
+
import "./chunk-HHUK3XO5.js";
|
|
52
|
+
import "./chunk-LPT5T6PU.js";
|
|
53
|
+
import "./chunk-EB2JE722.js";
|
|
54
|
+
import "./chunk-6JBRQ6PM.js";
|
|
55
|
+
import "./chunk-IRWSZJYL.js";
|
|
56
|
+
import "./chunk-2LPODKIF.js";
|
|
60
57
|
import {
|
|
61
58
|
uploadBlob,
|
|
62
59
|
validateFormattedText
|
|
63
|
-
} from "./chunk-
|
|
64
|
-
import "./chunk-
|
|
65
|
-
import "./chunk-
|
|
66
|
-
import "./chunk-
|
|
67
|
-
import "./chunk-SN52ZGFN.js";
|
|
68
|
-
import "./chunk-XUAVZ6YX.js";
|
|
69
|
-
import "./chunk-JFQZ6BWI.js";
|
|
70
|
-
import "./chunk-QPVCFSVU.js";
|
|
71
|
-
import "./chunk-S3XUJPPL.js";
|
|
60
|
+
} from "./chunk-OWVQMK7G.js";
|
|
61
|
+
import "./chunk-MS6YEIG5.js";
|
|
62
|
+
import "./chunk-3XMUP55N.js";
|
|
63
|
+
import "./chunk-X5H5NERR.js";
|
|
72
64
|
import "./chunk-2ABQZVK4.js";
|
|
73
|
-
import "./chunk-
|
|
74
|
-
import "./chunk-
|
|
75
|
-
import "./chunk-
|
|
76
|
-
import "./chunk-
|
|
77
|
-
import "./chunk-
|
|
65
|
+
import "./chunk-66UG67CE.js";
|
|
66
|
+
import "./chunk-PS7ZS5HD.js";
|
|
67
|
+
import "./chunk-GA3URWIF.js";
|
|
68
|
+
import "./chunk-MVFSWKTM.js";
|
|
69
|
+
import "./chunk-TGRB4SSZ.js";
|
|
70
|
+
import "./chunk-O2ULG7OO.js";
|
|
71
|
+
import "./chunk-VTJ3AOTT.js";
|
|
72
|
+
import "./chunk-LQPZDDDP.js";
|
|
73
|
+
import "./chunk-RAFK5KXU.js";
|
|
74
|
+
import "./chunk-RZPMFVWM.js";
|
|
75
|
+
import "./chunk-3KZG63EH.js";
|
|
76
|
+
import "./chunk-4BJAQNJ5.js";
|
|
77
|
+
import "./chunk-I5PILOTU.js";
|
|
78
|
+
import "./chunk-OKTRB4ZQ.js";
|
|
79
|
+
import "./chunk-6M3FAHPS.js";
|
|
80
|
+
import "./chunk-G2SMVYBU.js";
|
|
78
81
|
import {
|
|
79
82
|
observedCounters,
|
|
80
83
|
pickChat
|
|
81
|
-
} from "./chunk-
|
|
82
|
-
import "./chunk-
|
|
83
|
-
import "./chunk-
|
|
84
|
-
import "./chunk-
|
|
85
|
-
import "./chunk-
|
|
84
|
+
} from "./chunk-VXWDQDRU.js";
|
|
85
|
+
import "./chunk-FIO5NMK3.js";
|
|
86
|
+
import "./chunk-GGGBPWUS.js";
|
|
87
|
+
import "./chunk-XXW6PFAX.js";
|
|
88
|
+
import "./chunk-CKJ73EF3.js";
|
|
89
|
+
import "./chunk-FH4YIBBH.js";
|
|
90
|
+
import "./chunk-66PL7P4C.js";
|
|
86
91
|
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-
|
|
92
|
+
import "./chunk-F6CV4KUN.js";
|
|
93
|
+
import "./chunk-M327UNS6.js";
|
|
94
|
+
import "./chunk-C4ALE7CH.js";
|
|
95
|
+
import "./chunk-KY3JLXW2.js";
|
|
96
|
+
import "./chunk-7F3LOHRB.js";
|
|
97
|
+
import "./chunk-QJDHRBXL.js";
|
|
98
|
+
import "./chunk-QDEP2QOA.js";
|
|
99
|
+
import "./chunk-NRCY3WBC.js";
|
|
100
|
+
import "./chunk-QFVIHBLD.js";
|
|
101
|
+
import "./chunk-GYCKRIRK.js";
|
|
102
|
+
import "./chunk-2JZJPVBH.js";
|
|
103
|
+
import "./chunk-RPWYTOLI.js";
|
|
104
|
+
import "./chunk-IV6SIKVH.js";
|
|
99
105
|
import {
|
|
100
106
|
currentAttempt,
|
|
101
107
|
runEvent
|
|
102
|
-
} from "./chunk-
|
|
103
|
-
import "./chunk-
|
|
104
|
-
import "./chunk-
|
|
105
|
-
import "./chunk-
|
|
106
|
-
import "./chunk-
|
|
107
|
-
import "./chunk-
|
|
108
|
-
import "./chunk-
|
|
108
|
+
} from "./chunk-S5UTBEV3.js";
|
|
109
|
+
import "./chunk-QBNEWEJC.js";
|
|
110
|
+
import "./chunk-IBSHQWIJ.js";
|
|
111
|
+
import "./chunk-B5RGPZDZ.js";
|
|
112
|
+
import "./chunk-XHX5D5VE.js";
|
|
113
|
+
import "./chunk-ZI3YTXSF.js";
|
|
114
|
+
import "./chunk-VSPSHBAC.js";
|
|
115
|
+
import "./chunk-HT6OFANN.js";
|
|
116
|
+
import "./chunk-AUNNJDVD.js";
|
|
109
117
|
import "./chunk-Y5E2WNWB.js";
|
|
110
118
|
import {
|
|
111
119
|
CliError,
|
|
112
120
|
isCliError
|
|
113
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-F6MLJ3V5.js";
|
|
114
122
|
import {
|
|
115
123
|
__name
|
|
116
124
|
} from "./chunk-ZVVMGPBJ.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-ZIPUVOGT.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-SYZXOEHY.js";
|
|
13
11
|
import {
|
|
14
12
|
McpServer
|
|
15
13
|
} from "./chunk-5D4AEUVA.js";
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import
|
|
14
|
+
import "./chunk-QJDHRBXL.js";
|
|
15
|
+
import "./chunk-QBNEWEJC.js";
|
|
16
|
+
import "./chunk-ZI3YTXSF.js";
|
|
17
|
+
import "./chunk-HT6OFANN.js";
|
|
18
|
+
import {
|
|
19
|
+
errorObjectOf,
|
|
20
|
+
mcpErrorResult
|
|
21
|
+
} from "./chunk-AUNNJDVD.js";
|
|
21
22
|
import "./chunk-Y5E2WNWB.js";
|
|
22
|
-
import
|
|
23
|
+
import {
|
|
24
|
+
CliError
|
|
25
|
+
} from "./chunk-F6MLJ3V5.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.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/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-FXJNUOTS.js");
|
|
262
252
|
const listening = await serveOverHttp(build, {
|
|
263
253
|
...http,
|
|
264
254
|
appName: options.command,
|
|
@@ -5,11 +5,11 @@ import {
|
|
|
5
5
|
checkedOptions,
|
|
6
6
|
messagesFor,
|
|
7
7
|
systemFor
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-FH4YIBBH.js";
|
|
9
9
|
import {
|
|
10
10
|
Anthropic
|
|
11
11
|
} from "./chunk-ADLS6FVG.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-HT6OFANN.js";
|
|
13
13
|
import {
|
|
14
14
|
array,
|
|
15
15
|
literal,
|
|
@@ -19,14 +19,14 @@ import {
|
|
|
19
19
|
strictObject,
|
|
20
20
|
string,
|
|
21
21
|
unknown
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-AUNNJDVD.js";
|
|
23
23
|
import "./chunk-Y5E2WNWB.js";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-F6MLJ3V5.js";
|
|
25
25
|
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.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/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,60 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
PER_RUN,
|
|
5
5
|
envelope
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-PWQKGFS2.js";
|
|
7
7
|
import {
|
|
8
8
|
mcpUrlOf
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import {
|
|
11
|
-
answeredWire
|
|
12
|
-
} from "./chunk-ZIPUVOGT.js";
|
|
9
|
+
} from "./chunk-LPT5T6PU.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-BMSS3PCY.js";
|
|
20
17
|
import {
|
|
21
18
|
agentJson,
|
|
22
19
|
skillResource
|
|
23
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-6JBRQ6PM.js";
|
|
24
21
|
import {
|
|
25
22
|
StdioServerTransport,
|
|
23
|
+
answeredWire,
|
|
26
24
|
serveStdio
|
|
27
|
-
} from "./chunk-
|
|
28
|
-
import {
|
|
29
|
-
appInstructions
|
|
30
|
-
} from "./chunk-LOG65WHO.js";
|
|
25
|
+
} from "./chunk-SYZXOEHY.js";
|
|
31
26
|
import {
|
|
32
27
|
McpServer
|
|
33
28
|
} from "./chunk-5D4AEUVA.js";
|
|
29
|
+
import "./chunk-2LPODKIF.js";
|
|
30
|
+
import "./chunk-OWVQMK7G.js";
|
|
31
|
+
import "./chunk-MS6YEIG5.js";
|
|
32
|
+
import "./chunk-3XMUP55N.js";
|
|
33
|
+
import "./chunk-PS7ZS5HD.js";
|
|
34
|
+
import "./chunk-GA3URWIF.js";
|
|
34
35
|
import {
|
|
35
36
|
mcpHttpMarker
|
|
36
|
-
} from "./chunk-
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
import "./chunk-
|
|
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-
|
|
52
|
-
import "./chunk-
|
|
37
|
+
} from "./chunk-TGRB4SSZ.js";
|
|
38
|
+
import "./chunk-O2ULG7OO.js";
|
|
39
|
+
import {
|
|
40
|
+
appInstructions
|
|
41
|
+
} from "./chunk-QJLCEOAP.js";
|
|
42
|
+
import "./chunk-VTJ3AOTT.js";
|
|
43
|
+
import "./chunk-LQPZDDDP.js";
|
|
44
|
+
import "./chunk-RAFK5KXU.js";
|
|
45
|
+
import "./chunk-RZPMFVWM.js";
|
|
46
|
+
import "./chunk-3KZG63EH.js";
|
|
47
|
+
import "./chunk-I5PILOTU.js";
|
|
48
|
+
import "./chunk-G2SMVYBU.js";
|
|
49
|
+
import "./chunk-VXWDQDRU.js";
|
|
50
|
+
import "./chunk-FIO5NMK3.js";
|
|
51
|
+
import "./chunk-GGGBPWUS.js";
|
|
52
|
+
import "./chunk-XXW6PFAX.js";
|
|
53
|
+
import "./chunk-CKJ73EF3.js";
|
|
54
|
+
import "./chunk-FH4YIBBH.js";
|
|
55
|
+
import "./chunk-66PL7P4C.js";
|
|
53
56
|
import "./chunk-D72URWJE.js";
|
|
54
|
-
import "./chunk-
|
|
55
|
-
import "./chunk-
|
|
56
|
-
import "./chunk-
|
|
57
|
+
import "./chunk-M327UNS6.js";
|
|
58
|
+
import "./chunk-C4ALE7CH.js";
|
|
59
|
+
import "./chunk-KY3JLXW2.js";
|
|
57
60
|
import {
|
|
58
61
|
DEFAULT_OUTPUT_BYTES,
|
|
59
62
|
changesAuthorityAt,
|
|
@@ -63,34 +66,37 @@ import {
|
|
|
63
66
|
judgedTargets,
|
|
64
67
|
readsOverMcpAt,
|
|
65
68
|
rootOf2 as rootOf
|
|
66
|
-
} from "./chunk-
|
|
67
|
-
import "./chunk-
|
|
68
|
-
import "./chunk-
|
|
69
|
+
} from "./chunk-7F3LOHRB.js";
|
|
70
|
+
import "./chunk-QJDHRBXL.js";
|
|
71
|
+
import "./chunk-QDEP2QOA.js";
|
|
69
72
|
import {
|
|
70
73
|
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-
|
|
79
|
-
import "./chunk-
|
|
80
|
-
import "./chunk-
|
|
81
|
-
import "./chunk-
|
|
74
|
+
} from "./chunk-NRCY3WBC.js";
|
|
75
|
+
import "./chunk-QFVIHBLD.js";
|
|
76
|
+
import "./chunk-GYCKRIRK.js";
|
|
77
|
+
import "./chunk-2JZJPVBH.js";
|
|
78
|
+
import "./chunk-RPWYTOLI.js";
|
|
79
|
+
import "./chunk-IV6SIKVH.js";
|
|
80
|
+
import "./chunk-S5UTBEV3.js";
|
|
81
|
+
import "./chunk-QBNEWEJC.js";
|
|
82
|
+
import "./chunk-IBSHQWIJ.js";
|
|
83
|
+
import "./chunk-B5RGPZDZ.js";
|
|
84
|
+
import "./chunk-XHX5D5VE.js";
|
|
85
|
+
import "./chunk-ZI3YTXSF.js";
|
|
86
|
+
import "./chunk-VSPSHBAC.js";
|
|
87
|
+
import "./chunk-HT6OFANN.js";
|
|
82
88
|
import {
|
|
83
89
|
mcpErrorResult
|
|
84
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-AUNNJDVD.js";
|
|
85
91
|
import "./chunk-Y5E2WNWB.js";
|
|
86
92
|
import {
|
|
87
93
|
CliError
|
|
88
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-F6MLJ3V5.js";
|
|
89
95
|
import {
|
|
90
96
|
__name
|
|
91
97
|
} from "./chunk-ZVVMGPBJ.js";
|
|
92
98
|
|
|
93
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
99
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/mcp/app-server.js
|
|
94
100
|
var EXCLUDED = [["mcp"]];
|
|
95
101
|
var aliasesOf = /* @__PURE__ */ __name((root, path) => {
|
|
96
102
|
let at = root;
|
|
@@ -200,27 +206,14 @@ var serveAppOverStdio = /* @__PURE__ */ __name(async (command, context, options)
|
|
|
200
206
|
transport: new StdioServerTransport(wire.input, wire.output),
|
|
201
207
|
onerror: /* @__PURE__ */ __name((error) => context.renderer.note(`mcp: ${error.message}`), "onerror")
|
|
202
208
|
});
|
|
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();
|
|
209
|
+
await wire.finished(own ? signal : void 0);
|
|
217
210
|
wire.release();
|
|
218
211
|
await handle.close();
|
|
219
212
|
}, "serveAppOverStdio");
|
|
220
213
|
var serveAppOverHttp = /* @__PURE__ */ __name(async (command, context, options, http) => {
|
|
221
214
|
const { app } = options;
|
|
222
215
|
const { build } = createAppServer(command, context, options);
|
|
223
|
-
const { serveOverHttp } = await import("./serve-
|
|
216
|
+
const { serveOverHttp } = await import("./serve-FXJNUOTS.js");
|
|
224
217
|
const listening = await serveOverHttp(build, {
|
|
225
218
|
...http,
|
|
226
219
|
appName: app.command,
|