@wirecat/tg-cli 0.103.0 → 0.105.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 +1 -0
- package/dist/bin/tg.js +2 -2
- package/dist/bundle/{adapter-QG3YFFOY.js → adapter-WWYRCTPE.js} +37 -37
- package/dist/bundle/{all-profiles-ECXH3TBF.js → all-profiles-IJYM6NIJ.js} +5 -5
- package/dist/bundle/{anthropic-5MKO3QX7.js → anthropic-EDRWOXB5.js} +3 -3
- package/dist/bundle/app-server-2NF7ZH3C.js +222 -0
- package/dist/bundle/{bot-api-4DQPIOMK.js → bot-api-XCDLL6M2.js} +38 -38
- package/dist/bundle/{bot-history-UN74XXLU.js → bot-history-37WSQX3U.js} +10 -10
- package/dist/bundle/{bun-PS73VF2C.js → bun-ZX34DXTI.js} +2 -2
- package/dist/bundle/{bun-sqlite-RAWGPH23.js → bun-sqlite-7TZ73UKO.js} +2 -2
- package/dist/bundle/{chunk-DLF3H6NP.js → chunk-2A2KXY5G.js} +4 -4
- package/dist/bundle/{chunk-3CP7RK5R.js → chunk-2J2G3ELT.js} +1 -1
- package/dist/bundle/{chunk-H2UTBYFC.js → chunk-443D2OY7.js} +1 -1
- package/dist/bundle/{chunk-3IXKDIPH.js → chunk-4N53GVUI.js} +44 -42
- package/dist/bundle/{chunk-6N25NZOE.js → chunk-4UZE26T6.js} +5 -5
- package/dist/bundle/{chunk-WULARSC4.js → chunk-4VFRP2T2.js} +20 -20
- package/dist/bundle/{chunk-537O7OVE.js → chunk-56JDML7T.js} +2 -2
- package/dist/bundle/{chunk-RD7SSY7H.js → chunk-5PDGRPTS.js} +1 -1
- package/dist/bundle/{chunk-RKQIEJFR.js → chunk-6MQ3DEXF.js} +1 -1
- package/dist/bundle/{chunk-OGVBRRWY.js → chunk-73OWDRGK.js} +20 -20
- package/dist/bundle/{chunk-G5IMOOPB.js → chunk-AQGW6OHU.js} +1 -1
- package/dist/bundle/{chunk-HCDZWFXO.js → chunk-ETVQH5AL.js} +10 -9
- package/dist/bundle/{chunk-Q2LBOPKO.js → chunk-FNASJIAI.js} +25 -14
- package/dist/bundle/{chunk-DWQ4QT6X.js → chunk-GGIDY5KC.js} +92 -91
- package/dist/bundle/{chunk-COZ74WW4.js → chunk-HJSWUHHP.js} +20 -2
- package/dist/bundle/{chunk-BYYSVINK.js → chunk-J5OIB3OW.js} +2 -2
- package/dist/bundle/{chunk-EQHQ2AX3.js → chunk-J6B5DQ3I.js} +57 -48
- package/dist/bundle/{chunk-LAYPLF7G.js → chunk-L23IJ3IZ.js} +5 -5
- package/dist/bundle/{chunk-NIVZHTN4.js → chunk-LOIFBJBA.js} +9 -9
- package/dist/bundle/{chunk-GO354DJ5.js → chunk-MAV5ODPN.js} +1 -1
- package/dist/bundle/{chunk-QF7VVIF4.js → chunk-MHS2LEZA.js} +13 -6
- package/dist/bundle/{server-6XYURULQ.js → chunk-N5BGV5YZ.js} +46 -62
- package/dist/bundle/{chunk-AUKAZRF6.js → chunk-NBXUNS6Q.js} +1 -1
- package/dist/bundle/{chunk-TPFLD4OM.js → chunk-NEPB2EI6.js} +1 -1
- package/dist/bundle/{chunk-3QX6SOEO.js → chunk-OOBCCVYM.js} +4 -4
- package/dist/bundle/{chunk-YI72UVTJ.js → chunk-PFL3CCP2.js} +1 -1
- package/dist/bundle/{chunk-BV4N333Y.js → chunk-Q6NALH2X.js} +2 -2
- package/dist/bundle/{chunk-AAMJZJYC.js → chunk-QAW5QNOY.js} +8 -8
- package/dist/bundle/{chunk-EMC57SOZ.js → chunk-QPE72FCE.js} +9 -7
- package/dist/bundle/{chunk-RMC2S3F4.js → chunk-QVXMOHHN.js} +4 -4
- package/dist/bundle/{chunk-SSALGKMJ.js → chunk-QWPVSWQE.js} +2 -2
- package/dist/bundle/{chunk-VZN5LD26.js → chunk-RDO66SBI.js} +2 -2
- package/dist/bundle/{chunk-KCVDWZWS.js → chunk-RI7H2VVU.js} +7 -7
- package/dist/bundle/{chunk-ZHXSRYJ5.js → chunk-S3C2L3IE.js} +7 -5
- package/dist/bundle/{chunk-5HPAPVCB.js → chunk-S7FO7OU2.js} +2146 -1911
- package/dist/bundle/{chunk-TEO2KP52.js → chunk-SJIHZA4K.js} +1 -1
- package/dist/bundle/{chunk-57XGUIXA.js → chunk-SLFDNASB.js} +4 -4
- package/dist/bundle/{chunk-NKN54EDN.js → chunk-VIGQIMGM.js} +2 -2
- package/dist/bundle/{chunk-MHHDVR4G.js → chunk-WD7Q2H4J.js} +193 -193
- package/dist/bundle/{chunk-S5M4HFOZ.js → chunk-XP4JEE47.js} +1 -1
- package/dist/bundle/{chunk-Z2DPNTSU.js → chunk-YGYQY5AG.js} +1 -1
- package/dist/bundle/{chunk-FSPDODVT.js → chunk-YSIC5B32.js} +10 -10
- package/dist/bundle/{chunk-CMQ34EZL.js → chunk-Z6SXT5DV.js} +4 -3
- package/dist/bundle/{chunk-SSV37M5T.js → chunk-ZI7THBWF.js} +51 -47
- package/dist/bundle/{chunk-F27OI4J2.js → chunk-ZIG4WIVN.js} +1 -1
- package/dist/bundle/{chunk-KQ5BUI5T.js → chunk-ZM2AI3E5.js} +270 -251
- package/dist/bundle/{command-contract-ZGFJTLB2.js → command-contract-OF6TUQ5B.js} +12 -12
- package/dist/bundle/{echarts-UEQDIHVQ.js → echarts-WFLEME5I.js} +2 -2
- package/dist/bundle/{embed-5DPZKRW5.js → embed-ESTG27RK.js} +3 -3
- package/dist/bundle/{embedder-NBQXDXAO.js → embedder-P3W76VOZ.js} +6 -6
- package/dist/bundle/{entry-EE6YRAP4.js → entry-SNRZGNRA.js} +3 -3
- package/dist/bundle/{first-run-OSEVVWNT.js → first-run-JS24HORG.js} +5 -5
- package/dist/bundle/{first-screen-753THOU6.js → first-screen-U63BJPXI.js} +13 -13
- package/dist/bundle/{identity-LNH33PN3.js → identity-TYE57SHY.js} +1 -1
- package/dist/bundle/{instructions-PYGVIT7I.js → instructions-ERMZPVS4.js} +3 -1
- package/dist/bundle/{node-3OBKCX6M.js → node-KDZSMKIC.js} +2 -2
- package/dist/bundle/{node-sqlite-DMMTDRFB.js → node-sqlite-FR64YDYV.js} +2 -2
- package/dist/bundle/{oauth-FX5DDCRS.js → oauth-SPE76ZIY.js} +4 -4
- package/dist/bundle/{open-G6QRQAAL.js → open-UEFCMPLC.js} +1 -1
- package/dist/bundle/{process-47MMIFIJ.js → process-7MD6MEGB.js} +1 -1
- package/dist/bundle/{program-LBHBWRK5.js → program-NFFSOGUY.js} +40 -40
- package/dist/bundle/{prompt-CJ6Y4JYC.js → prompt-3PI4H66U.js} +2 -2
- package/dist/bundle/{recognize-7BLTOI45.js → recognize-54LQOU24.js} +3 -3
- package/dist/bundle/{remote-Q4A4JY6U.js → remote-JQ74NVUK.js} +4 -4
- package/dist/bundle/{rerank-CQAR46L3.js → rerank-66YCEORD.js} +4 -4
- package/dist/bundle/{serve-2UO2YMMG.js → serve-5SP2TCGV.js} +6 -6
- package/dist/bundle/{server-FMKC4RLL.js → server-GFICDJ6J.js} +26 -26
- package/dist/bundle/server-KMKRKOZP.js +55 -0
- package/dist/bundle/{state-RNWN2RDY.js → state-U7HXQB6I.js} +3 -3
- package/dist/bundle/{store-BBHTR477.js → store-O4QVYHFL.js} +7 -7
- package/dist/bundle/store-maintenance-command-BNRZ5IJD.js +44 -0
- package/dist/bundle/tg.js +2 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/skills/tg-cli/SKILL.md +1 -0
- package/dist/bundle/store-maintenance-command-GD6OLRXH.js +0 -44
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
commandPathOf,
|
|
8
8
|
findCommand,
|
|
9
9
|
outputOf
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-SLFDNASB.js";
|
|
11
11
|
import {
|
|
12
12
|
Command,
|
|
13
13
|
Help,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
environmentOf,
|
|
19
19
|
metaOf,
|
|
20
20
|
takesProfile
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-J6B5DQ3I.js";
|
|
22
22
|
import {
|
|
23
23
|
CliError,
|
|
24
24
|
writes
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
__name
|
|
28
28
|
} from "./chunk-ZVVMGPBJ.js";
|
|
29
29
|
|
|
30
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/cli/help/sections.js
|
|
31
31
|
var SECTIONS = {
|
|
32
32
|
read: "Read",
|
|
33
33
|
write: "Write",
|
|
@@ -92,7 +92,7 @@ var CORE_SECTIONS = {
|
|
|
92
92
|
upgrade: "setup"
|
|
93
93
|
};
|
|
94
94
|
|
|
95
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
95
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/cli/help/commands-text.js
|
|
96
96
|
var DESCRIPTION = 90;
|
|
97
97
|
var COLUMN = 52;
|
|
98
98
|
var short = /* @__PURE__ */ __name((text) => {
|
|
@@ -131,7 +131,7 @@ var commandsText = /* @__PURE__ */ __name((root, commands, scope) => {
|
|
|
131
131
|
`;
|
|
132
132
|
}, "commandsText");
|
|
133
133
|
|
|
134
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
134
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/cli/help/command-help.js
|
|
135
135
|
var ARGUMENT_KINDS = {
|
|
136
136
|
chat: "chat",
|
|
137
137
|
chats: "chat",
|
|
@@ -283,6 +283,8 @@ var withProfile = /* @__PURE__ */ __name((command, example) => {
|
|
|
283
283
|
const top = commandPathOf(command)[0];
|
|
284
284
|
if (!profiled.has(root) || top === void 0 || !takesProfile(command))
|
|
285
285
|
return example;
|
|
286
|
+
if (example.split(" ").includes("--profiles"))
|
|
287
|
+
return example;
|
|
286
288
|
const prefix = `${root.name()} ${top}`;
|
|
287
289
|
return example === prefix || example.startsWith(`${prefix} `) ? `${root.name()} ${EXAMPLE_PROFILE} ${example.slice(root.name().length + 1)}` : example;
|
|
288
290
|
}, "withProfile");
|
|
@@ -321,7 +323,7 @@ var installCommandHelp = /* @__PURE__ */ __name((program, { profile = true } = {
|
|
|
321
323
|
command.addHelpText("after", () => commandHelpText(command));
|
|
322
324
|
}, "installCommandHelp");
|
|
323
325
|
|
|
324
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
326
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/cli/help/first-screen.js
|
|
325
327
|
var WIRECAT_TOOLS = [
|
|
326
328
|
{
|
|
327
329
|
command: "tg",
|
|
@@ -353,6 +355,11 @@ var WIRECAT_TOOLS = [
|
|
|
353
355
|
package: "@wirecat/cli-memo",
|
|
354
356
|
shown: "memo context <person>",
|
|
355
357
|
does: "one person across messengers, mail, notes and meetings"
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
command: "mail",
|
|
361
|
+
package: "@wirecat/mail-cli",
|
|
362
|
+
does: "IMAP mail in the same local store: search your mailbox offline, next to your other WireCat data"
|
|
356
363
|
}
|
|
357
364
|
];
|
|
358
365
|
var WIDTH = 100;
|
|
@@ -1,22 +1,5 @@
|
|
|
1
1
|
import { createRequire as __bundleRequire } from "node:module";
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
CHART_KINDS,
|
|
5
|
-
CHART_SIZE,
|
|
6
|
-
chartAnswer,
|
|
7
|
-
chartPng,
|
|
8
|
-
chartRenderer,
|
|
9
|
-
chatChart,
|
|
10
|
-
keepRefreshedRefs,
|
|
11
|
-
mcpUrlOf,
|
|
12
|
-
refuseWriteBeforeConnecting,
|
|
13
|
-
registerPrompts,
|
|
14
|
-
stdinFieldOf,
|
|
15
|
-
syncsFirst
|
|
16
|
-
} from "./chunk-WULARSC4.js";
|
|
17
|
-
import {
|
|
18
|
-
answeredWire
|
|
19
|
-
} from "./chunk-F27OI4J2.js";
|
|
20
3
|
import {
|
|
21
4
|
BinaryResource,
|
|
22
5
|
Picture,
|
|
@@ -37,16 +20,33 @@ import {
|
|
|
37
20
|
tool,
|
|
38
21
|
toolKey,
|
|
39
22
|
toolsFromCommands
|
|
40
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-FNASJIAI.js";
|
|
24
|
+
import {
|
|
25
|
+
CHART_KINDS,
|
|
26
|
+
CHART_SIZE,
|
|
27
|
+
chartAnswer,
|
|
28
|
+
chartPng,
|
|
29
|
+
chartRenderer,
|
|
30
|
+
chatChart,
|
|
31
|
+
keepRefreshedRefs,
|
|
32
|
+
mcpUrlOf,
|
|
33
|
+
refuseWriteBeforeConnecting,
|
|
34
|
+
registerPrompts,
|
|
35
|
+
stdinFieldOf,
|
|
36
|
+
syncsFirst
|
|
37
|
+
} from "./chunk-4VFRP2T2.js";
|
|
41
38
|
import {
|
|
42
39
|
agentJson,
|
|
43
40
|
skillResource
|
|
44
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-ETVQH5AL.js";
|
|
42
|
+
import {
|
|
43
|
+
answeredWire
|
|
44
|
+
} from "./chunk-ZIG4WIVN.js";
|
|
45
45
|
import {
|
|
46
46
|
StdioServerTransport,
|
|
47
47
|
callerOf,
|
|
48
48
|
serveStdio
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-QWPVSWQE.js";
|
|
50
50
|
import {
|
|
51
51
|
McpServer,
|
|
52
52
|
ResourceTemplate
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
import {
|
|
55
55
|
connectedFor,
|
|
56
56
|
guardFor
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-73OWDRGK.js";
|
|
58
58
|
import {
|
|
59
59
|
capability,
|
|
60
60
|
dateWindow,
|
|
@@ -63,12 +63,10 @@ import {
|
|
|
63
63
|
servicesFor,
|
|
64
64
|
storedDeps,
|
|
65
65
|
wholeList
|
|
66
|
-
} from "./chunk-
|
|
67
|
-
import "./chunk-ZHXSRYJ5.js";
|
|
66
|
+
} from "./chunk-WD7Q2H4J.js";
|
|
68
67
|
import {
|
|
69
68
|
findCommand
|
|
70
|
-
} from "./chunk-
|
|
71
|
-
import "./chunk-DWQ4QT6X.js";
|
|
69
|
+
} from "./chunk-SLFDNASB.js";
|
|
72
70
|
import {
|
|
73
71
|
DEFAULT_OUTPUT_BYTES,
|
|
74
72
|
changesAuthorityAt,
|
|
@@ -84,46 +82,30 @@ import {
|
|
|
84
82
|
sealed,
|
|
85
83
|
snakeKeys,
|
|
86
84
|
typedCommand
|
|
87
|
-
} from "./chunk-
|
|
88
|
-
import "./chunk-CMQ34EZL.js";
|
|
85
|
+
} from "./chunk-J6B5DQ3I.js";
|
|
89
86
|
import {
|
|
90
87
|
isCliFailure,
|
|
91
88
|
withCaller
|
|
92
|
-
} from "./chunk-
|
|
93
|
-
import "./chunk-VMU4SGCE.js";
|
|
94
|
-
import "./chunk-MFS52LTZ.js";
|
|
95
|
-
import "./chunk-BV4N333Y.js";
|
|
89
|
+
} from "./chunk-QPE72FCE.js";
|
|
96
90
|
import {
|
|
97
91
|
readOnlyLockOf
|
|
98
|
-
} from "./chunk-
|
|
92
|
+
} from "./chunk-NBXUNS6Q.js";
|
|
99
93
|
import {
|
|
100
94
|
mcpHttpMarker
|
|
101
|
-
} from "./chunk-
|
|
102
|
-
import "./chunk-VZN5LD26.js";
|
|
103
|
-
import "./chunk-RD7SSY7H.js";
|
|
95
|
+
} from "./chunk-2A2KXY5G.js";
|
|
104
96
|
import {
|
|
105
97
|
instructions
|
|
106
|
-
} from "./chunk-
|
|
107
|
-
import "./chunk-YI72UVTJ.js";
|
|
108
|
-
import "./chunk-NKN54EDN.js";
|
|
98
|
+
} from "./chunk-HJSWUHHP.js";
|
|
109
99
|
import {
|
|
110
100
|
warmEmbedders
|
|
111
|
-
} from "./chunk-
|
|
112
|
-
import "./chunk-RMC2S3F4.js";
|
|
101
|
+
} from "./chunk-L23IJ3IZ.js";
|
|
113
102
|
import {
|
|
114
103
|
openStore,
|
|
115
104
|
pdfPreviewLimits
|
|
116
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-ZM2AI3E5.js";
|
|
117
106
|
import {
|
|
118
107
|
timezoneOf
|
|
119
|
-
} from "./chunk-
|
|
120
|
-
import "./chunk-KCVDWZWS.js";
|
|
121
|
-
import "./chunk-3QX6SOEO.js";
|
|
122
|
-
import "./chunk-O5EHUB2V.js";
|
|
123
|
-
import "./chunk-TPFLD4OM.js";
|
|
124
|
-
import "./chunk-6N25NZOE.js";
|
|
125
|
-
import "./chunk-G5IMOOPB.js";
|
|
126
|
-
import "./chunk-TEO2KP52.js";
|
|
108
|
+
} from "./chunk-ZI7THBWF.js";
|
|
127
109
|
import {
|
|
128
110
|
mcpErrorResult,
|
|
129
111
|
visibleControls
|
|
@@ -144,15 +126,14 @@ import {
|
|
|
144
126
|
strictObject,
|
|
145
127
|
string
|
|
146
128
|
} from "./chunk-67SRVSPU.js";
|
|
147
|
-
import "./chunk-Y5E2WNWB.js";
|
|
148
129
|
import {
|
|
149
130
|
__name
|
|
150
131
|
} from "./chunk-ZVVMGPBJ.js";
|
|
151
132
|
|
|
152
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
133
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/mcp/server.js
|
|
153
134
|
import { randomUUID } from "node:crypto";
|
|
154
135
|
|
|
155
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
136
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/mcp/agent-log.js
|
|
156
137
|
var agentLog = /* @__PURE__ */ __name((open) => {
|
|
157
138
|
let held;
|
|
158
139
|
return {
|
|
@@ -171,7 +152,7 @@ var agentLog = /* @__PURE__ */ __name((open) => {
|
|
|
171
152
|
};
|
|
172
153
|
}, "agentLog");
|
|
173
154
|
|
|
174
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
155
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/mcp/resources.js
|
|
175
156
|
var LISTED = 100;
|
|
176
157
|
var registerResources = /* @__PURE__ */ __name((server, session, { command, name, limit, recorded, withStore, messenger, guard, assertRead }) => {
|
|
177
158
|
server.registerResource("chat", new ResourceTemplate(`${command}://chat/{id}`, {
|
|
@@ -209,7 +190,7 @@ var registerResources = /* @__PURE__ */ __name((server, session, { command, name
|
|
|
209
190
|
});
|
|
210
191
|
}, "registerResources");
|
|
211
192
|
|
|
212
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
193
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/mcp/session.js
|
|
213
194
|
var HARMLESS = /* @__PURE__ */ new Set(["validation_error", "not_found", "permission_error", "confirmation_required", "rate_limited"]);
|
|
214
195
|
var harmless = /* @__PURE__ */ __name((code) => HARMLESS.has(code), "harmless");
|
|
215
196
|
var MessengerSession = class {
|
|
@@ -284,7 +265,7 @@ var MessengerSession = class {
|
|
|
284
265
|
}
|
|
285
266
|
};
|
|
286
267
|
|
|
287
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
268
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/mcp/tools/attachments.js
|
|
288
269
|
var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
|
|
289
270
|
const _command = messenger.app.command;
|
|
290
271
|
return {
|
|
@@ -338,7 +319,7 @@ var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
|
|
|
338
319
|
};
|
|
339
320
|
}, "attachmentsTools");
|
|
340
321
|
|
|
341
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
322
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/mcp/tools/messages-photo.js
|
|
342
323
|
var PHOTO_LIMIT = 512 * 1024;
|
|
343
324
|
var IMAGE_TYPES = [
|
|
344
325
|
["image/jpeg", (b) => b[0] === 255 && b[1] === 216 && b[2] === 255],
|
|
@@ -392,7 +373,7 @@ var readUpTo = /* @__PURE__ */ __name(async (file, limit, saveIt) => {
|
|
|
392
373
|
return new Uint8Array(Buffer.concat(chunks));
|
|
393
374
|
}, "readUpTo");
|
|
394
375
|
|
|
395
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
376
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/mcp/tools/stats.js
|
|
396
377
|
var statsTools = /* @__PURE__ */ __name((messenger) => ({
|
|
397
378
|
stats_charts: tool({
|
|
398
379
|
title: "A chart from a chat's statistics",
|
|
@@ -429,14 +410,14 @@ var statsTools = /* @__PURE__ */ __name((messenger) => ({
|
|
|
429
410
|
})
|
|
430
411
|
}), "statsTools");
|
|
431
412
|
|
|
432
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
413
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/mcp/tools.js
|
|
433
414
|
var pictureTools = /* @__PURE__ */ __name((messenger) => Object.fromEntries(Object.entries({
|
|
434
415
|
...messagesPhotoTools(messenger),
|
|
435
416
|
...attachmentsTools(messenger),
|
|
436
417
|
...statsTools(messenger)
|
|
437
418
|
}).map(([name, definition]) => [name, { ...definition, input: strictObject(definition.input.entries) }])), "pictureTools");
|
|
438
419
|
|
|
439
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
420
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/mcp/server.js
|
|
440
421
|
var PER_RUN = /* @__PURE__ */ new Set([
|
|
441
422
|
"streams",
|
|
442
423
|
"stdin",
|
|
@@ -760,7 +741,7 @@ var serveOverStdio = /* @__PURE__ */ __name(async (command, context, messenger,
|
|
|
760
741
|
}, "serveOverStdio");
|
|
761
742
|
var serveOverHttpUntilStopped = /* @__PURE__ */ __name(async (command, context, messenger, options, http) => {
|
|
762
743
|
const { session, embedders, build, log } = createServer(command, context, messenger, options);
|
|
763
|
-
const { serveOverHttp } = await import("./serve-
|
|
744
|
+
const { serveOverHttp } = await import("./serve-5SP2TCGV.js");
|
|
764
745
|
const appName = messenger.app.command;
|
|
765
746
|
const appEnvPrefix = messenger.app.envPrefix;
|
|
766
747
|
const listening = await serveOverHttp(build, {
|
|
@@ -790,8 +771,11 @@ var serveOverHttpUntilStopped = /* @__PURE__ */ __name(async (command, context,
|
|
|
790
771
|
await embedders.close();
|
|
791
772
|
}
|
|
792
773
|
}, "serveOverHttpUntilStopped");
|
|
774
|
+
|
|
793
775
|
export {
|
|
776
|
+
PER_RUN,
|
|
777
|
+
envelope,
|
|
794
778
|
createServer,
|
|
795
|
-
|
|
796
|
-
|
|
779
|
+
serveOverStdio,
|
|
780
|
+
serveOverHttpUntilStopped
|
|
797
781
|
};
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/ports/app.js
|
|
11
11
|
var envName = /* @__PURE__ */ __name((app, name) => `${app.envPrefix}_${name}`, "envName");
|
|
12
12
|
var readOnlyLockOf = /* @__PURE__ */ __name((app, env) => {
|
|
13
13
|
const name = envName(app, "READ_ONLY");
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/path.js
|
|
11
11
|
import { join } from "node:path";
|
|
12
12
|
var wirecatDirectory = /* @__PURE__ */ __name((env = process.env, platform) => resolvePaths({ appName: "WireCat", prefix: "WIRECAT", env, ...platform ? { platform } : {} }).state, "wirecatDirectory");
|
|
13
13
|
var storePath = /* @__PURE__ */ __name((env = process.env) => env.MESSAGING_STORE ?? join(wirecatDirectory(env), "wirecat.db"), "storePath");
|
|
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
storePath
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-NEPB2EI6.js";
|
|
6
6
|
import {
|
|
7
7
|
resolvePaths,
|
|
8
8
|
singleLine
|
|
@@ -14,11 +14,11 @@ import {
|
|
|
14
14
|
__name
|
|
15
15
|
} from "./chunk-ZVVMGPBJ.js";
|
|
16
16
|
|
|
17
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/shared-config.js
|
|
18
18
|
import { mkdirSync, readFileSync, renameSync, statSync, writeFileSync } from "node:fs";
|
|
19
19
|
import { dirname, join, resolve } from "node:path";
|
|
20
20
|
|
|
21
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/domain/task-categories.js
|
|
22
22
|
var DEFAULT_TASK_CATEGORIES = [
|
|
23
23
|
{
|
|
24
24
|
name: "taxes",
|
|
@@ -773,7 +773,7 @@ var storedTaskCategories = /* @__PURE__ */ __name((json) => {
|
|
|
773
773
|
}
|
|
774
774
|
}, "storedTaskCategories");
|
|
775
775
|
|
|
776
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
776
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/store/shared-config.js
|
|
777
777
|
var SECTION = "task_categories";
|
|
778
778
|
var sharedConfigPath = /* @__PURE__ */ __name((store, env = process.env) => {
|
|
779
779
|
const paths = resolvePaths({ appName: "WireCat", prefix: "WIRECAT", env });
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/models/types.js
|
|
11
11
|
var MAX_MODEL_IMAGE_BYTES = 4 * 1024 * 1024;
|
|
12
12
|
var validateImages = /* @__PURE__ */ __name((images) => {
|
|
13
13
|
if (images === void 0)
|
|
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
readSharedSection,
|
|
5
5
|
writeSharedSection
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-OOBCCVYM.js";
|
|
7
7
|
import {
|
|
8
8
|
CliError
|
|
9
9
|
} from "./chunk-67SRVSPU.js";
|
|
@@ -11,7 +11,7 @@ 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.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/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";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
privateFiles,
|
|
14
14
|
providerRequest,
|
|
15
15
|
withSqliteSidecars
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-S7FO7OU2.js";
|
|
17
17
|
import {
|
|
18
18
|
parseProxy,
|
|
19
19
|
proxyAddress,
|
|
@@ -23,20 +23,20 @@ import {
|
|
|
23
23
|
} from "./chunk-FG2QTYEF.js";
|
|
24
24
|
import {
|
|
25
25
|
messengerContext
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-73OWDRGK.js";
|
|
27
27
|
import {
|
|
28
28
|
uploadBlob
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-WD7Q2H4J.js";
|
|
30
30
|
import {
|
|
31
31
|
asFirstWord,
|
|
32
32
|
currentAttempt,
|
|
33
33
|
environmentOf,
|
|
34
34
|
fromFile,
|
|
35
35
|
settingsFor
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-J6B5DQ3I.js";
|
|
37
37
|
import {
|
|
38
38
|
TG
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-443D2OY7.js";
|
|
40
40
|
import {
|
|
41
41
|
Credentials,
|
|
42
42
|
pathsAreOverridden,
|
|
@@ -178,7 +178,7 @@ var telegramOf = /* @__PURE__ */ __name((command, base) => {
|
|
|
178
178
|
throw new CliError(unreachable, loggedIn ? `no Telegram app credentials found for profile "${profile}", although it has logged in on this machine \u2014 the keyring is probably out of reach (cron, ssh, an MCP client that trims the environment: set XDG_RUNTIME_DIR); \`tg ${asFirstWord(profile)}doctor\` shows it. Log in again only if they were removed` : `no Telegram app credentials for profile "${profile}" \u2014 run ${setup} in a local terminal first, or sign in from ${desktop}; agents: read \`tg skill show\``);
|
|
179
179
|
}
|
|
180
180
|
const options = { credentials: resolved, sessionPath, ...connecting };
|
|
181
|
-
return environment.adapter ? await environment.adapter(options) : await (await import("./adapter-
|
|
181
|
+
return environment.adapter ? await environment.adapter(options) : await (await import("./adapter-WWYRCTPE.js")).TelegramAdapter.open({
|
|
182
182
|
...options,
|
|
183
183
|
...proxyOption(proxy()),
|
|
184
184
|
diagnostic: /* @__PURE__ */ __name((line) => base.streams.diagnostic(line), "diagnostic"),
|
|
@@ -863,7 +863,7 @@ var TELEGRAM_BOT = {
|
|
|
863
863
|
const botId = token.split(":", 1)[0] ?? "";
|
|
864
864
|
if (!/^\d+$/.test(botId))
|
|
865
865
|
throw new CliError("authentication_error", "the bot token has no valid bot id");
|
|
866
|
-
const reader = await (environment.botHistory ?? (await import("./bot-history-
|
|
866
|
+
const reader = await (environment.botHistory ?? (await import("./bot-history-37WSQX3U.js")).openBotHistory)({
|
|
867
867
|
credentials,
|
|
868
868
|
sessionPath: botSessionFile(profile, botId, env),
|
|
869
869
|
token,
|
|
@@ -883,7 +883,7 @@ var TELEGRAM_BOT = {
|
|
|
883
883
|
return void 0;
|
|
884
884
|
let personal;
|
|
885
885
|
try {
|
|
886
|
-
personal = environment.adapter ? await environment.adapter({ credentials, sessionPath: personalPath }) : await (await import("./adapter-
|
|
886
|
+
personal = environment.adapter ? await environment.adapter({ credentials, sessionPath: personalPath }) : await (await import("./adapter-WWYRCTPE.js")).TelegramAdapter.open({
|
|
887
887
|
credentials,
|
|
888
888
|
sessionPath: personalPath,
|
|
889
889
|
checks: words,
|
|
@@ -8,14 +8,14 @@ import {
|
|
|
8
8
|
__name
|
|
9
9
|
} from "./chunk-ZVVMGPBJ.js";
|
|
10
10
|
|
|
11
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/runs/run-context.js
|
|
12
12
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
13
13
|
import { createHash } from "node:crypto";
|
|
14
14
|
|
|
15
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
|
|
16
16
|
import { homedir } from "node:os";
|
|
17
17
|
|
|
18
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/errors/failures.js
|
|
19
19
|
var isCliFailure = /* @__PURE__ */ __name((value) => value instanceof Error && value.name === "CliError" && errorCodes.includes(value.code), "isCliFailure");
|
|
20
20
|
var isCommanderFailure = /* @__PURE__ */ __name((value) => {
|
|
21
21
|
const { code, exitCode } = value ?? {};
|
|
@@ -23,7 +23,7 @@ var isCommanderFailure = /* @__PURE__ */ __name((value) => {
|
|
|
23
23
|
}, "isCommanderFailure");
|
|
24
24
|
var failureKey = /* @__PURE__ */ __name((error) => isCliFailure(error) ? error.code : error instanceof Error ? error.name : "error", "failureKey");
|
|
25
25
|
|
|
26
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/runs/events.js
|
|
27
27
|
var providerErrorKey = /* @__PURE__ */ __name((value) => typeof value === "string" && /^[A-Za-z][A-Za-z0-9._-]{0,63}$/.test(value) ? value : void 0, "providerErrorKey");
|
|
28
28
|
var renderEvent = /* @__PURE__ */ __name((event) => {
|
|
29
29
|
if (event.event === "warning") {
|
|
@@ -71,7 +71,7 @@ var MARK = { request: "\u2192", response: "\u2190", cache: "\u2022", warning: "!
|
|
|
71
71
|
var age = /* @__PURE__ */ __name((ms) => ms < 1e3 ? `${ms}ms` : `${Math.round(ms / 1e3)}s`, "age");
|
|
72
72
|
var size = /* @__PURE__ */ __name((bytes) => bytes < 1e3 ? `${bytes} B` : `${(bytes / 1e3).toFixed(1)} kB`, "size");
|
|
73
73
|
|
|
74
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
74
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/runs/secrets.js
|
|
75
75
|
var SECRET_WORDS = /* @__PURE__ */ new Set([
|
|
76
76
|
"authorization",
|
|
77
77
|
"cookie",
|
|
@@ -152,7 +152,7 @@ var withoutSecrets = /* @__PURE__ */ __name((text, mark = "[redacted]") => text.
|
|
|
152
152
|
var RUN = /(?<![A-Za-z0-9_+/-])[A-Za-z0-9_+/-]{20,}/g;
|
|
153
153
|
var HEX = /(?<![A-Za-z0-9])(?=[0-9]*[a-f])[0-9a-f]{20,}(?![A-Za-z0-9])/g;
|
|
154
154
|
|
|
155
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
155
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
|
|
156
156
|
var MESSAGE_AT_MOST = 500;
|
|
157
157
|
var CAUSES_AT_MOST = 5;
|
|
158
158
|
var FRAMES_AT_MOST = 15;
|
|
@@ -161,6 +161,7 @@ var errorDetailOf = /* @__PURE__ */ __name((error, response) => {
|
|
|
161
161
|
const thrown = error instanceof Error ? error : void 0;
|
|
162
162
|
const code = isCliFailure(error) ? error.code : codeOf(error);
|
|
163
163
|
const reason = typeof details.reason === "string" ? details.reason : void 0;
|
|
164
|
+
const causeCode = typeof details.cause_code === "string" && /^[A-Za-z0-9_.-]{1,40}$/.test(details.cause_code) ? details.cause_code : void 0;
|
|
164
165
|
const message = thrown ? redactText(thrown.message) : void 0;
|
|
165
166
|
const operation = stringOf(details.operation) ?? response?.operation;
|
|
166
167
|
const status = numberOf(details.status) ?? response?.status;
|
|
@@ -179,6 +180,7 @@ var errorDetailOf = /* @__PURE__ */ __name((error, response) => {
|
|
|
179
180
|
class: classOf(error),
|
|
180
181
|
...code === void 0 ? {} : { code },
|
|
181
182
|
...reason === void 0 ? {} : { reason },
|
|
183
|
+
...causeCode === void 0 ? {} : { cause_code: causeCode },
|
|
182
184
|
...message ? { message } : {},
|
|
183
185
|
...operation === void 0 ? {} : { operation },
|
|
184
186
|
...http ? { http } : {},
|
|
@@ -258,7 +260,7 @@ var redactText = /* @__PURE__ */ __name((text) => {
|
|
|
258
260
|
return out.length > MESSAGE_AT_MOST ? `${out.slice(0, MESSAGE_AT_MOST)}\u2026` : out;
|
|
259
261
|
}, "redactText");
|
|
260
262
|
|
|
261
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
263
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/runs/run-context.js
|
|
262
264
|
var REDACTED = "[redacted]";
|
|
263
265
|
var keepsSuccess = /* @__PURE__ */ __name(({ record, fromFlag, env, caller, persistent = false }) => {
|
|
264
266
|
if (!record)
|
|
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
wirecatDirectory
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-NEPB2EI6.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
8
|
} from "./chunk-67SRVSPU.js";
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
__name
|
|
11
11
|
} from "./chunk-ZVVMGPBJ.js";
|
|
12
12
|
|
|
13
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/speech/install.js
|
|
14
14
|
import { createHash, randomUUID } from "node:crypto";
|
|
15
15
|
import { createReadStream, createWriteStream, mkdirSync, statSync } from "node:fs";
|
|
16
16
|
import { rename, rm } from "node:fs/promises";
|
|
@@ -18,7 +18,7 @@ import { dirname, join } from "node:path";
|
|
|
18
18
|
import { Readable, Transform } from "node:stream";
|
|
19
19
|
import { pipeline } from "node:stream/promises";
|
|
20
20
|
|
|
21
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/speech/models.js
|
|
22
22
|
var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/csukuangfj/${repository}/resolve/${commit}/${name}`, "huggingFace");
|
|
23
23
|
var gigaam = huggingFace("sherpa-onnx-nemo-transducer-punct-giga-am-v3-russian-2025-12-16", "a6039be7cee829a9044a69ac0ebaf1c191217c97");
|
|
24
24
|
var gigaamCtc = huggingFace("sherpa-onnx-nemo-ctc-punct-giga-am-v3-russian-2025-12-16", "4fb5407ff028a69fec516cdf4c10fac9ddea7c16");
|
|
@@ -142,7 +142,7 @@ var speechModel = /* @__PURE__ */ __name((id) => {
|
|
|
142
142
|
return model;
|
|
143
143
|
}, "speechModel");
|
|
144
144
|
|
|
145
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
145
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/speech/install.js
|
|
146
146
|
var sharedModelsDirectory = /* @__PURE__ */ __name((kind, env = process.env) => join(wirecatDirectory(env), "models", kind), "sharedModelsDirectory");
|
|
147
147
|
var modelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedModelsDirectory("audio", env), "modelsDirectory");
|
|
148
148
|
var STALL_MS = 6e4;
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
import {
|
|
29
29
|
agentOf,
|
|
30
30
|
clientHash
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-QPE72FCE.js";
|
|
32
32
|
import {
|
|
33
33
|
__name
|
|
34
34
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -540,7 +540,7 @@ function toError(value) {
|
|
|
540
540
|
}
|
|
541
541
|
__name(toError, "toError");
|
|
542
542
|
|
|
543
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
543
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/node_modules/@wirecat/cli-core/dist/mcp/caller.js
|
|
544
544
|
var CALLER_META_KEY = "wirecat.dev/caller";
|
|
545
545
|
var PROXY_CLIENT_NAME = "all-profiles";
|
|
546
546
|
var NAME = /^[\w .@()/+-]{1,64}$/;
|
|
@@ -2,7 +2,7 @@ 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-5PDGRPTS.js";
|
|
6
6
|
import {
|
|
7
7
|
resolvePaths,
|
|
8
8
|
writeSecurely
|
|
@@ -11,7 +11,7 @@ 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.475.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.65.0_commander@15._3c883a06c0d971d0c61f8bf4c28bc453/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");
|