@wirecat/tg-cli 0.128.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-JOI34QLS.js → adapter-2XFPXBTA.js} +60 -52
- package/dist/bundle/{all-profiles-2BZEE7J2.js → all-profiles-GXFPZLYU.js} +9 -9
- package/dist/bundle/{anthropic-NW7DL3S3.js → anthropic-FHS5XNK5.js} +5 -5
- package/dist/bundle/{app-server-RUTYKELF.js → app-server-IZMFSFP2.js} +54 -46
- package/dist/bundle/{bot-api-DW6NAZAQ.js → bot-api-LQP75V5I.js} +61 -53
- package/dist/bundle/{bot-history-FAJ2W42U.js → bot-history-EJQOD4AQ.js} +22 -18
- package/dist/bundle/{bun-IVP5LSVI.js → bun-GBAZFRCV.js} +2 -2
- package/dist/bundle/{bun-sqlite-ATPCJ4CT.js → bun-sqlite-JB4BX6X7.js} +6 -6
- package/dist/bundle/chunk-2JZJPVBH.js +334 -0
- package/dist/bundle/{chunk-FHGAJK4I.js → chunk-2LPODKIF.js} +15 -15
- package/dist/bundle/chunk-3KZG63EH.js +170 -0
- package/dist/bundle/chunk-3XMUP55N.js +372 -0
- package/dist/bundle/{chunk-MDGLKMLD.js → chunk-4BJAQNJ5.js} +9 -9
- package/dist/bundle/{chunk-M4OP5ASJ.js → chunk-66PL7P4C.js} +1 -1
- package/dist/bundle/{chunk-MOUPWPNL.js → chunk-66UG67CE.js} +12 -12
- package/dist/bundle/{chunk-R4QVV3LN.js → chunk-6JBRQ6PM.js} +41 -19
- package/dist/bundle/{chunk-GYO4WXLG.js → chunk-6M3FAHPS.js} +3 -3
- package/dist/bundle/{chunk-2QHIOPSA.js → chunk-7F3LOHRB.js} +261 -501
- package/dist/bundle/{chunk-XS5C5TQ7.js → chunk-AUNNJDVD.js} +25 -8
- package/dist/bundle/{chunk-7D6LI2N7.js → chunk-B5RGPZDZ.js} +7 -7
- package/dist/bundle/{chunk-YRZXOQOB.js → chunk-B6NQJAUC.js} +2 -2
- package/dist/bundle/{chunk-IV2KJQ5F.js → chunk-BMSS3PCY.js} +58 -33
- package/dist/bundle/{chunk-LTADKMP5.js → chunk-C4ALE7CH.js} +1 -1
- package/dist/bundle/{chunk-WG3BF7SA.js → chunk-CKJ73EF3.js} +1 -1
- package/dist/bundle/{chunk-IX3GUNGV.js → chunk-CLG2ISQH.js} +4 -4
- package/dist/bundle/{chunk-G3PL3R45.js → chunk-EB2JE722.js} +1 -1
- package/dist/bundle/{chunk-J3SX36NE.js → chunk-EUL7HMUL.js} +2 -2
- package/dist/bundle/{chunk-PJA43HVE.js → chunk-F6CV4KUN.js} +2 -2
- package/dist/bundle/{chunk-7KCBPAQS.js → chunk-F6MLJ3V5.js} +2 -2
- package/dist/bundle/{chunk-3UGRMFWK.js → chunk-FH4YIBBH.js} +4 -4
- package/dist/bundle/chunk-FIO5NMK3.js +771 -0
- package/dist/bundle/{chunk-7I5NMVX7.js → chunk-G2SMVYBU.js} +2 -2
- package/dist/bundle/{chunk-FIVFP53N.js → chunk-GA3URWIF.js} +1 -1
- package/dist/bundle/{chunk-2A3TC52A.js → chunk-GGGBPWUS.js} +10 -15
- package/dist/bundle/{chunk-KKZQK6IK.js → chunk-GSHTLLCJ.js} +2 -2
- package/dist/bundle/{chunk-F4UIBEQK.js → chunk-GYCKRIRK.js} +3 -3
- package/dist/bundle/{chunk-WPMJQIEU.js → chunk-HHUK3XO5.js} +1 -1
- package/dist/bundle/{chunk-NM5GBJME.js → chunk-HT6OFANN.js} +19 -19
- package/dist/bundle/{chunk-ODBK56ZR.js → chunk-I5PILOTU.js} +1 -1
- package/dist/bundle/chunk-IBSHQWIJ.js +29 -0
- package/dist/bundle/{chunk-RZFIQMOA.js → chunk-IRWSZJYL.js} +60 -58
- package/dist/bundle/{chunk-BVCRDHI2.js → chunk-IV6SIKVH.js} +4 -4
- package/dist/bundle/{chunk-URFBZNLU.js → chunk-JUFLELQ7.js} +2 -2
- package/dist/bundle/{chunk-XYAH6QQO.js → chunk-KY3JLXW2.js} +4 -4
- package/dist/bundle/{chunk-YSXDCSBP.js → chunk-LPT5T6PU.js} +29 -30
- package/dist/bundle/chunk-LQPZDDDP.js +259 -0
- package/dist/bundle/{chunk-JI2PFQFL.js → chunk-M327UNS6.js} +6 -6
- package/dist/bundle/{chunk-SDLJJF7E.js → chunk-MS6YEIG5.js} +13 -13
- package/dist/bundle/{chunk-WMUPZ3IY.js → chunk-MVFSWKTM.js} +12 -12
- package/dist/bundle/{chunk-YVV5S2QA.js → chunk-NRCY3WBC.js} +2 -2
- package/dist/bundle/{chunk-2IL4YDGG.js → chunk-O2ULG7OO.js} +3 -3
- package/dist/bundle/{chunk-E56QE3UC.js → chunk-OJMDKWWL.js} +627 -503
- package/dist/bundle/{chunk-UURJO46N.js → chunk-OKTRB4ZQ.js} +1 -1
- package/dist/bundle/{chunk-OX6574YV.js → chunk-OOQVHMCS.js} +15 -15
- package/dist/bundle/{chunk-IIHCSJV2.js → chunk-OWVQMK7G.js} +700 -837
- package/dist/bundle/{chunk-WMF6SL5D.js → chunk-P4FZJO5F.js} +2 -2
- package/dist/bundle/{chunk-LD42OGKK.js → chunk-PS7ZS5HD.js} +4 -4
- package/dist/bundle/{chunk-EAUHYQUK.js → chunk-PWQKGFS2.js} +36 -34
- package/dist/bundle/{chunk-MGBVVQTU.js → chunk-QBNEWEJC.js} +3 -3
- package/dist/bundle/{chunk-QYN5RDTZ.js → chunk-QDEP2QOA.js} +3 -3
- package/dist/bundle/{chunk-QO4ON2X7.js → chunk-QFVIHBLD.js} +1 -1
- package/dist/bundle/{chunk-ZVLYK6CZ.js → chunk-QJDHRBXL.js} +7 -7
- package/dist/bundle/{chunk-IHLNXL2D.js → chunk-QJLCEOAP.js} +1 -1
- package/dist/bundle/{chunk-KF2Q776U.js → chunk-RAFK5KXU.js} +9 -9
- package/dist/bundle/{chunk-RIGNCUZD.js → chunk-RPWYTOLI.js} +5 -5
- package/dist/bundle/{chunk-4DSIGS2E.js → chunk-RZPMFVWM.js} +6 -6
- package/dist/bundle/chunk-S5UTBEV3.js +1974 -0
- package/dist/bundle/{chunk-MC6FOTCV.js → chunk-SYZXOEHY.js} +3 -3
- package/dist/bundle/{chunk-5AP25FMW.js → chunk-SZB5WRMI.js} +2 -2
- package/dist/bundle/{chunk-Q3ZO6Q3M.js → chunk-TGRB4SSZ.js} +4 -4
- package/dist/bundle/{chunk-TQFUAKU6.js → chunk-VSPSHBAC.js} +2 -2
- package/dist/bundle/{chunk-TGUXKG4B.js → chunk-VTJ3AOTT.js} +17 -17
- package/dist/bundle/{chunk-T2CWSFGY.js → chunk-VXWDQDRU.js} +6341 -6902
- package/dist/bundle/{chunk-JJGPU24U.js → chunk-X5H5NERR.js} +6 -6
- package/dist/bundle/{chunk-AF2XVV5P.js → chunk-XHX5D5VE.js} +727 -2598
- package/dist/bundle/chunk-XXW6PFAX.js +16 -0
- package/dist/bundle/{chunk-NXDQXDRN.js → chunk-ZRQQOGAZ.js} +4 -4
- package/dist/bundle/command-contract-G752BLKA.js +37 -0
- package/dist/bundle/{command-server-entry-BU3X4XNL.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-NAXLKJLA.js → echarts-GOV5M733.js} +2 -2
- package/dist/bundle/{embed-LB6ONWHX.js → embed-2IVIYNAJ.js} +6 -6
- package/dist/bundle/{embedder-WE7B2RU5.js → embedder-2HU7JYZK.js} +9 -9
- package/dist/bundle/{entry-W6Y52ZRN.js → entry-CSTCXYI5.js} +9 -9
- package/dist/bundle/{failure-7Y34AUJT.js → failure-GMUQKQ5K.js} +2 -2
- package/dist/bundle/{first-run-NVYNZZA6.js → first-run-3IZGXZT5.js} +12 -11
- package/dist/bundle/first-screen-7QSNCZIK.js +35 -0
- package/dist/bundle/{instructions-MRUC57NS.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-G7PMDYQV.js → node-FMQWCZRS.js} +2 -2
- package/dist/bundle/{node-sqlite-RXWQ3SES.js → node-sqlite-YN5OKOC6.js} +7 -7
- package/dist/bundle/{oauth-6ZWOL6KX.js → oauth-EW7PTZVT.js} +7 -7
- package/dist/bundle/{open-V7LMZCFI.js → open-Q2RDY344.js} +5 -5
- package/dist/bundle/{openai-P472V4ZM.js → openai-STON6G3O.js} +28 -26
- package/dist/bundle/{process-GSNPENHL.js → process-OQUC2TW3.js} +1 -1
- package/dist/bundle/{program-IELITPKT.js → program-7JJHTZ25.js} +66 -57
- package/dist/bundle/{prompt-2CP6CQ5N.js → prompt-WHVF7UTW.js} +5 -5
- package/dist/bundle/{proxy-transport-DP7SIMIC.js → proxy-transport-A4MRO3PF.js} +5 -5
- package/dist/bundle/{recognize-R2DEQ5TC.js → recognize-YDQWMXNI.js} +4 -4
- package/dist/bundle/{remote-JG3POFES.js → remote-477LQHP6.js} +9 -9
- package/dist/bundle/{rerank-TVMR3OLL.js → rerank-4YPB26FG.js} +7 -7
- package/dist/bundle/{serve-DBWSMLPH.js → serve-FXJNUOTS.js} +9 -9
- package/dist/bundle/{server-EXJ2WNZY.js → server-2S6HFBGR.js} +44 -36
- package/dist/bundle/server-UOSUTZNE.js +69 -0
- package/dist/bundle/{sqlite-runtime-AWMY7W4Q.js → sqlite-runtime-RXYNJYMC.js} +6 -6
- package/dist/bundle/{state-HN44BWNQ.js → state-I2GGYGRL.js} +6 -6
- package/dist/bundle/{store-LOVKYQDC.js → store-KX3AAQZH.js} +25 -20
- package/dist/bundle/{store-GIYS3LHV.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/command-contract-3BSXDYBC.js +0 -34
- package/dist/bundle/decode-NXB7E46F.js +0 -162
- package/dist/bundle/first-screen-Z6TVHK6I.js +0 -32
- package/dist/bundle/server-SXNFFAIR.js +0 -61
- package/dist/bundle/store-maintenance-command-X3VOYNCG.js +0 -52
- /package/dist/bundle/{chunk-XWBPP2HX.js → chunk-ZI3YTXSF.js} +0 -0
|
@@ -5,19 +5,20 @@ import {
|
|
|
5
5
|
asksAtStart,
|
|
6
6
|
setupAtStart,
|
|
7
7
|
systemLanguage
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-66UG67CE.js";
|
|
9
|
+
import "./chunk-PS7ZS5HD.js";
|
|
10
|
+
import "./chunk-GA3URWIF.js";
|
|
11
|
+
import "./chunk-GGGBPWUS.js";
|
|
12
|
+
import "./chunk-XXW6PFAX.js";
|
|
13
|
+
import "./chunk-66PL7P4C.js";
|
|
13
14
|
import "./chunk-D72URWJE.js";
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-QDEP2QOA.js";
|
|
16
|
+
import "./chunk-B5RGPZDZ.js";
|
|
17
|
+
import "./chunk-VSPSHBAC.js";
|
|
18
|
+
import "./chunk-HT6OFANN.js";
|
|
19
|
+
import "./chunk-AUNNJDVD.js";
|
|
19
20
|
import "./chunk-Y5E2WNWB.js";
|
|
20
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-F6MLJ3V5.js";
|
|
21
22
|
import "./chunk-ZVVMGPBJ.js";
|
|
22
23
|
export {
|
|
23
24
|
askSetupQuestions,
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
WIRECAT_TOOLS,
|
|
5
|
+
firstScreen,
|
|
6
|
+
installHelp
|
|
7
|
+
} from "./chunk-X5H5NERR.js";
|
|
8
|
+
import "./chunk-2ABQZVK4.js";
|
|
9
|
+
import "./chunk-KY3JLXW2.js";
|
|
10
|
+
import "./chunk-7F3LOHRB.js";
|
|
11
|
+
import "./chunk-QJDHRBXL.js";
|
|
12
|
+
import "./chunk-QDEP2QOA.js";
|
|
13
|
+
import "./chunk-NRCY3WBC.js";
|
|
14
|
+
import "./chunk-QFVIHBLD.js";
|
|
15
|
+
import "./chunk-GYCKRIRK.js";
|
|
16
|
+
import "./chunk-2JZJPVBH.js";
|
|
17
|
+
import "./chunk-RPWYTOLI.js";
|
|
18
|
+
import "./chunk-IV6SIKVH.js";
|
|
19
|
+
import "./chunk-S5UTBEV3.js";
|
|
20
|
+
import "./chunk-QBNEWEJC.js";
|
|
21
|
+
import "./chunk-IBSHQWIJ.js";
|
|
22
|
+
import "./chunk-B5RGPZDZ.js";
|
|
23
|
+
import "./chunk-XHX5D5VE.js";
|
|
24
|
+
import "./chunk-ZI3YTXSF.js";
|
|
25
|
+
import "./chunk-VSPSHBAC.js";
|
|
26
|
+
import "./chunk-HT6OFANN.js";
|
|
27
|
+
import "./chunk-AUNNJDVD.js";
|
|
28
|
+
import "./chunk-Y5E2WNWB.js";
|
|
29
|
+
import "./chunk-F6MLJ3V5.js";
|
|
30
|
+
import "./chunk-ZVVMGPBJ.js";
|
|
31
|
+
export {
|
|
32
|
+
WIRECAT_TOOLS,
|
|
33
|
+
firstScreen,
|
|
34
|
+
installHelp
|
|
35
|
+
};
|
|
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
executableEnvironment,
|
|
5
5
|
executableOnPath
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-GA3URWIF.js";
|
|
7
7
|
import {
|
|
8
8
|
require_cross_spawn
|
|
9
9
|
} from "./chunk-D72URWJE.js";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
__toESM
|
|
13
13
|
} from "./chunk-ZVVMGPBJ.js";
|
|
14
14
|
|
|
15
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
15
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/mcp/index.js
|
|
16
16
|
var import_cross_spawn = __toESM(require_cross_spawn(), 1);
|
|
17
17
|
var realRun = /* @__PURE__ */ __name((file, args) => {
|
|
18
18
|
const result = import_cross_spawn.default.sync(executableOnPath(file, process.env), args, {
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
searchMeetingsCombined
|
|
5
|
+
} from "./chunk-3XMUP55N.js";
|
|
6
|
+
import "./chunk-3KZG63EH.js";
|
|
7
|
+
import "./chunk-FIO5NMK3.js";
|
|
8
|
+
import "./chunk-XXW6PFAX.js";
|
|
9
|
+
import "./chunk-2JZJPVBH.js";
|
|
10
|
+
import "./chunk-IV6SIKVH.js";
|
|
11
|
+
import "./chunk-IBSHQWIJ.js";
|
|
12
|
+
import "./chunk-B5RGPZDZ.js";
|
|
13
|
+
import "./chunk-XHX5D5VE.js";
|
|
14
|
+
import "./chunk-ZI3YTXSF.js";
|
|
15
|
+
import "./chunk-VSPSHBAC.js";
|
|
16
|
+
import "./chunk-HT6OFANN.js";
|
|
17
|
+
import "./chunk-AUNNJDVD.js";
|
|
18
|
+
import "./chunk-Y5E2WNWB.js";
|
|
19
|
+
import "./chunk-F6MLJ3V5.js";
|
|
20
|
+
import "./chunk-ZVVMGPBJ.js";
|
|
21
|
+
export {
|
|
22
|
+
searchMeetingsCombined
|
|
23
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
createMeetingRemoteModel,
|
|
5
|
+
meetingEmbeddingModel,
|
|
6
|
+
openMeetingEmbedder
|
|
7
|
+
} from "./chunk-LQPZDDDP.js";
|
|
8
|
+
import "./chunk-RAFK5KXU.js";
|
|
9
|
+
import "./chunk-RZPMFVWM.js";
|
|
10
|
+
import "./chunk-2JZJPVBH.js";
|
|
11
|
+
import "./chunk-RPWYTOLI.js";
|
|
12
|
+
import "./chunk-IV6SIKVH.js";
|
|
13
|
+
import "./chunk-B5RGPZDZ.js";
|
|
14
|
+
import "./chunk-VSPSHBAC.js";
|
|
15
|
+
import "./chunk-HT6OFANN.js";
|
|
16
|
+
import "./chunk-AUNNJDVD.js";
|
|
17
|
+
import "./chunk-Y5E2WNWB.js";
|
|
18
|
+
import "./chunk-F6MLJ3V5.js";
|
|
19
|
+
import "./chunk-ZVVMGPBJ.js";
|
|
20
|
+
export {
|
|
21
|
+
createMeetingRemoteModel,
|
|
22
|
+
meetingEmbeddingModel,
|
|
23
|
+
openMeetingEmbedder
|
|
24
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
applyMeetingEmbedding,
|
|
5
|
+
proposeMeetingEmbedding,
|
|
6
|
+
readMeetingSemantic,
|
|
7
|
+
validateVector
|
|
8
|
+
} from "./chunk-3KZG63EH.js";
|
|
9
|
+
import "./chunk-XHX5D5VE.js";
|
|
10
|
+
import "./chunk-ZI3YTXSF.js";
|
|
11
|
+
import "./chunk-HT6OFANN.js";
|
|
12
|
+
import "./chunk-AUNNJDVD.js";
|
|
13
|
+
import "./chunk-Y5E2WNWB.js";
|
|
14
|
+
import "./chunk-F6MLJ3V5.js";
|
|
15
|
+
import "./chunk-ZVVMGPBJ.js";
|
|
16
|
+
export {
|
|
17
|
+
applyMeetingEmbedding,
|
|
18
|
+
proposeMeetingEmbedding,
|
|
19
|
+
readMeetingSemantic,
|
|
20
|
+
validateVector
|
|
21
|
+
};
|
|
@@ -18,12 +18,12 @@ import {
|
|
|
18
18
|
jitCompatCheck,
|
|
19
19
|
refineSqliteCodecs,
|
|
20
20
|
sql
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-CKJ73EF3.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.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/node.js
|
|
27
27
|
import { DatabaseSync } from "node:sqlite";
|
|
28
28
|
var nodeSQLiteCodecs = refineSqliteCodecs({
|
|
29
29
|
"integer:boolean": { normalize: booleanFromInteger },
|
|
@@ -3,23 +3,23 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
loadVectorExtension,
|
|
5
5
|
vectorExtension
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-EUL7HMUL.js";
|
|
7
7
|
import {
|
|
8
8
|
TIME_LIMIT_FUNCTION,
|
|
9
9
|
beforeTimeLimit
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-C4ALE7CH.js";
|
|
11
11
|
import {
|
|
12
12
|
refuseOwnerStoreInTests
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-VSPSHBAC.js";
|
|
14
|
+
import "./chunk-HT6OFANN.js";
|
|
15
|
+
import "./chunk-AUNNJDVD.js";
|
|
16
16
|
import "./chunk-Y5E2WNWB.js";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-F6MLJ3V5.js";
|
|
18
18
|
import {
|
|
19
19
|
__name
|
|
20
20
|
} from "./chunk-ZVVMGPBJ.js";
|
|
21
21
|
|
|
22
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22
|
+
// 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/store/drivers/node-sqlite.js
|
|
23
23
|
import { DatabaseSync } from "node:sqlite";
|
|
24
24
|
var openWithNodeSqlite = /* @__PURE__ */ __name(async (path) => cacheOverNodeSqlite(await nodeClient(path)), "openWithNodeSqlite");
|
|
25
25
|
var nodeClient = /* @__PURE__ */ __name(async (path, { readOnly = false } = {}) => {
|
|
@@ -3,15 +3,15 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
ownerLogin,
|
|
5
5
|
revokeAll
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-GSHTLLCJ.js";
|
|
7
7
|
import "./chunk-5D4AEUVA.js";
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-TGRB4SSZ.js";
|
|
9
|
+
import "./chunk-O2ULG7OO.js";
|
|
10
|
+
import "./chunk-QFVIHBLD.js";
|
|
11
|
+
import "./chunk-HT6OFANN.js";
|
|
12
|
+
import "./chunk-AUNNJDVD.js";
|
|
13
13
|
import "./chunk-Y5E2WNWB.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-F6MLJ3V5.js";
|
|
15
15
|
import "./chunk-ZVVMGPBJ.js";
|
|
16
16
|
export {
|
|
17
17
|
ownerLogin,
|
|
@@ -6,12 +6,12 @@ import {
|
|
|
6
6
|
openCache,
|
|
7
7
|
openFile,
|
|
8
8
|
storeCapable
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-M327UNS6.js";
|
|
10
|
+
import "./chunk-C4ALE7CH.js";
|
|
11
|
+
import "./chunk-HT6OFANN.js";
|
|
12
|
+
import "./chunk-AUNNJDVD.js";
|
|
13
13
|
import "./chunk-Y5E2WNWB.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-F6MLJ3V5.js";
|
|
15
15
|
import "./chunk-ZVVMGPBJ.js";
|
|
16
16
|
export {
|
|
17
17
|
CAPABILITY_STATEMENTS,
|
|
@@ -3,43 +3,44 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
SAMPLE_RATE,
|
|
5
5
|
toModelRate
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-ZRQQOGAZ.js";
|
|
7
|
+
import "./chunk-MS6YEIG5.js";
|
|
8
8
|
import {
|
|
9
9
|
OPENAI_URL,
|
|
10
10
|
refuseModelAddress
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-RAFK5KXU.js";
|
|
12
|
+
import "./chunk-RZPMFVWM.js";
|
|
13
13
|
import {
|
|
14
14
|
endpointFetch,
|
|
15
|
+
onThisComputer,
|
|
15
16
|
providerWaitMs
|
|
16
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-RPWYTOLI.js";
|
|
17
18
|
import {
|
|
18
19
|
OPENAI_TRANSCRIBE_MODEL,
|
|
19
20
|
VAD,
|
|
20
21
|
filesPresent,
|
|
21
22
|
modelsDirectory,
|
|
22
23
|
vadPath
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
24
|
+
} from "./chunk-IV6SIKVH.js";
|
|
25
|
+
import "./chunk-B5RGPZDZ.js";
|
|
26
|
+
import "./chunk-VSPSHBAC.js";
|
|
26
27
|
import {
|
|
27
28
|
DEFAULT_RETRY,
|
|
28
29
|
backoffMs
|
|
29
|
-
} from "./chunk-
|
|
30
|
-
import "./chunk-
|
|
30
|
+
} from "./chunk-HT6OFANN.js";
|
|
31
|
+
import "./chunk-AUNNJDVD.js";
|
|
31
32
|
import "./chunk-Y5E2WNWB.js";
|
|
32
33
|
import {
|
|
33
34
|
CliError
|
|
34
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-F6MLJ3V5.js";
|
|
35
36
|
import {
|
|
36
37
|
__name
|
|
37
38
|
} from "./chunk-ZVVMGPBJ.js";
|
|
38
39
|
|
|
39
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40
|
+
// 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/speech/openai.js
|
|
40
41
|
import { setTimeout as wait } from "node:timers/promises";
|
|
41
42
|
|
|
42
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43
|
+
// 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/speech/wav.js
|
|
43
44
|
var encodeWav = /* @__PURE__ */ __name((samples, sampleRate = 16e3) => {
|
|
44
45
|
const bytes = Buffer.alloc(44 + samples.length * 2);
|
|
45
46
|
bytes.write("RIFF", 0, "ascii");
|
|
@@ -60,7 +61,7 @@ var encodeWav = /* @__PURE__ */ __name((samples, sampleRate = 16e3) => {
|
|
|
60
61
|
return new Uint8Array(bytes.buffer, bytes.byteOffset, bytes.length);
|
|
61
62
|
}, "encodeWav");
|
|
62
63
|
|
|
63
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
64
|
+
// 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/speech/openai.js
|
|
64
65
|
var LONGEST_REQUEST_SECONDS = 600;
|
|
65
66
|
var JOINED_SECONDS = 0.2;
|
|
66
67
|
var PAD_SECONDS = 0.2;
|
|
@@ -115,27 +116,28 @@ var send = /* @__PURE__ */ __name(async (wav, options) => {
|
|
|
115
116
|
const retry = options.retry ?? RETRY;
|
|
116
117
|
const sleep = options.sleep ?? sleeping;
|
|
117
118
|
const random = options.random ?? Math.random;
|
|
119
|
+
const who = options.label ?? "OpenAI";
|
|
118
120
|
for (let attempt = 1; ; attempt++) {
|
|
119
121
|
interrupted(options.signal);
|
|
120
122
|
let response;
|
|
121
123
|
try {
|
|
122
124
|
response = await post(url, {
|
|
123
125
|
method: "POST",
|
|
124
|
-
headers: { authorization: `Bearer ${options.apiKey}` },
|
|
126
|
+
headers: options.apiKey ? { authorization: `Bearer ${options.apiKey}` } : {},
|
|
125
127
|
body: formOf(wav, options),
|
|
126
128
|
...options.signal ? { signal: options.signal } : {}
|
|
127
129
|
});
|
|
128
130
|
} catch {
|
|
129
131
|
interrupted(options.signal);
|
|
130
132
|
if (attempt > retry.retries)
|
|
131
|
-
throw new CliError("network_error",
|
|
133
|
+
throw new CliError("network_error", `${who} could not be reached`, { reason: "network.failed" });
|
|
132
134
|
await sleep(backoffMs(attempt, retry, random), options.signal);
|
|
133
135
|
continue;
|
|
134
136
|
}
|
|
135
137
|
if (response.ok) {
|
|
136
138
|
const body = await response.json().catch(() => interrupted(options.signal));
|
|
137
139
|
if (typeof body?.text !== "string")
|
|
138
|
-
throw new CliError("invalid_response",
|
|
140
|
+
throw new CliError("invalid_response", `${who} answered without a transcript`, {
|
|
139
141
|
reason: "provider.invalid-response"
|
|
140
142
|
});
|
|
141
143
|
return body.text.trim();
|
|
@@ -144,15 +146,15 @@ var send = /* @__PURE__ */ __name(async (wav, options) => {
|
|
|
144
146
|
const status = response.status;
|
|
145
147
|
const said = `HTTP ${status}${code ? `, ${code}` : type ? `, ${type}` : ""}`;
|
|
146
148
|
if (status === 401)
|
|
147
|
-
throw new CliError("authentication_error",
|
|
149
|
+
throw new CliError("authentication_error", `${who} refused the key (${said}) \u2014 set it again with \`${options.keyHint ?? "models keys set openai"}\``, { reason: "auth.failed" });
|
|
148
150
|
if (status === 403)
|
|
149
|
-
throw new CliError("permission_error",
|
|
151
|
+
throw new CliError("permission_error", `${who} refused the request (${said}) \u2014 OpenAI answers this when the country or region is not supported, or the key's project may not use the model`, { reason: "access.denied" });
|
|
150
152
|
if (status === 413)
|
|
151
|
-
throw new CliError("validation_error",
|
|
153
|
+
throw new CliError("validation_error", `${who} refused the audio as too large (${said})`, {
|
|
152
154
|
reason: "transcription.too-large"
|
|
153
155
|
});
|
|
154
156
|
if (EXHAUSTED.has(code ?? "") || EXHAUSTED.has(type ?? ""))
|
|
155
|
-
throw new CliError("permission_error",
|
|
157
|
+
throw new CliError("permission_error", `${who} refused: the account's credit, spend limit or usage limit is used up (${said}) \u2014 see the billing page`, { reason: "transcription.quota-exhausted" });
|
|
156
158
|
const again = status === 408 || status === 429 || status >= 500;
|
|
157
159
|
const asked = providerWaitMs(response.headers, () => /* @__PURE__ */ new Date());
|
|
158
160
|
if (again && attempt <= retry.retries && (asked === void 0 || asked <= retry.maxRetryAfterMs)) {
|
|
@@ -160,13 +162,13 @@ var send = /* @__PURE__ */ __name(async (wav, options) => {
|
|
|
160
162
|
continue;
|
|
161
163
|
}
|
|
162
164
|
if (status === 429)
|
|
163
|
-
throw new CliError("rate_limited",
|
|
165
|
+
throw new CliError("rate_limited", `${who} answered ${said}`, {
|
|
164
166
|
reason: "provider.rate-limited",
|
|
165
167
|
...asked === void 0 ? {} : { retry_after_ms: asked }
|
|
166
168
|
});
|
|
167
169
|
if (status >= 500)
|
|
168
|
-
throw new CliError([502, 503, 504].includes(status) ? "provider_unavailable" : "provider_error",
|
|
169
|
-
throw new CliError("provider_error",
|
|
170
|
+
throw new CliError([502, 503, 504].includes(status) ? "provider_unavailable" : "provider_error", `${who} answered ${said}`, { reason: [502, 503, 504].includes(status) ? "provider.unavailable" : "provider.refused" });
|
|
171
|
+
throw new CliError("provider_error", `${who} answered ${said}`, { reason: "provider.refused" });
|
|
170
172
|
}
|
|
171
173
|
}, "send");
|
|
172
174
|
var piecesOf = /* @__PURE__ */ __name((spans, limit) => {
|
|
@@ -183,7 +185,7 @@ var piecesOf = /* @__PURE__ */ __name((spans, limit) => {
|
|
|
183
185
|
return pieces;
|
|
184
186
|
}, "piecesOf");
|
|
185
187
|
var openCutter = /* @__PURE__ */ __name(async (vadModel) => {
|
|
186
|
-
const { openSpeechCutter } = await import("./recognize-
|
|
188
|
+
const { openSpeechCutter } = await import("./recognize-YDQWMXNI.js");
|
|
187
189
|
return openSpeechCutter(vadModel);
|
|
188
190
|
}, "openCutter");
|
|
189
191
|
var checkKeywords = /* @__PURE__ */ __name((keywords = []) => {
|
|
@@ -193,7 +195,7 @@ var checkKeywords = /* @__PURE__ */ __name((keywords = []) => {
|
|
|
193
195
|
}, "checkKeywords");
|
|
194
196
|
var transcribeOpenAI = /* @__PURE__ */ __name(async (audio, options) => {
|
|
195
197
|
refuseModelAddress(options.env ?? process.env, options.baseUrl ?? OPENAI_URL, "audio");
|
|
196
|
-
if (!options.apiKey)
|
|
198
|
+
if (!options.apiKey && !onThisComputer(options.baseUrl ?? OPENAI_URL))
|
|
197
199
|
throw new CliError("authentication_error", "no OpenAI key \u2014 `models keys set openai`, or OPENAI_API_KEY", {
|
|
198
200
|
reason: "transcription.no-key"
|
|
199
201
|
});
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
__name
|
|
6
6
|
} from "./chunk-ZVVMGPBJ.js";
|
|
7
7
|
|
|
8
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8
|
+
// 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/embeddings/process.js
|
|
9
9
|
import { spawn } from "node:child_process";
|
|
10
10
|
import { createInterface } from "node:readline";
|
|
11
11
|
import { fileURLToPath } from "node:url";
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
proxySecrets,
|
|
16
16
|
resolveSettings,
|
|
17
17
|
usesOwnersSession
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-OOQVHMCS.js";
|
|
19
19
|
import {
|
|
20
20
|
AGENTS,
|
|
21
21
|
MEMO_SCENARIOS,
|
|
@@ -70,62 +70,67 @@ import {
|
|
|
70
70
|
topicsCommand,
|
|
71
71
|
upgradeCommand,
|
|
72
72
|
watchCommand
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-OJMDKWWL.js";
|
|
74
74
|
import {
|
|
75
75
|
parseProxy,
|
|
76
76
|
proxyLabel
|
|
77
|
-
} from "./chunk-
|
|
78
|
-
import "./chunk-
|
|
79
|
-
import "./chunk-
|
|
80
|
-
import "./chunk-
|
|
81
|
-
import "./chunk-WPMJQIEU.js";
|
|
82
|
-
import "./chunk-YSXDCSBP.js";
|
|
77
|
+
} from "./chunk-JUFLELQ7.js";
|
|
78
|
+
import "./chunk-HHUK3XO5.js";
|
|
79
|
+
import "./chunk-LPT5T6PU.js";
|
|
80
|
+
import "./chunk-EB2JE722.js";
|
|
83
81
|
import {
|
|
84
82
|
installSkill
|
|
85
|
-
} from "./chunk-
|
|
86
|
-
import "./chunk-
|
|
87
|
-
import "./chunk-
|
|
88
|
-
import "./chunk-
|
|
89
|
-
import "./chunk-
|
|
90
|
-
import "./chunk-
|
|
83
|
+
} from "./chunk-6JBRQ6PM.js";
|
|
84
|
+
import "./chunk-IRWSZJYL.js";
|
|
85
|
+
import "./chunk-2LPODKIF.js";
|
|
86
|
+
import "./chunk-OWVQMK7G.js";
|
|
87
|
+
import "./chunk-MS6YEIG5.js";
|
|
88
|
+
import "./chunk-3XMUP55N.js";
|
|
89
|
+
import "./chunk-X5H5NERR.js";
|
|
90
|
+
import "./chunk-2ABQZVK4.js";
|
|
91
|
+
import "./chunk-66UG67CE.js";
|
|
91
92
|
import {
|
|
92
93
|
latestVersion,
|
|
93
94
|
runUpdate,
|
|
94
95
|
updateNotice
|
|
95
|
-
} from "./chunk-
|
|
96
|
-
import "./chunk-
|
|
96
|
+
} from "./chunk-PS7ZS5HD.js";
|
|
97
|
+
import "./chunk-GA3URWIF.js";
|
|
98
|
+
import "./chunk-MVFSWKTM.js";
|
|
99
|
+
import "./chunk-TGRB4SSZ.js";
|
|
97
100
|
import {
|
|
98
101
|
servingProfiles
|
|
99
|
-
} from "./chunk-
|
|
100
|
-
import "./chunk-
|
|
101
|
-
import "./chunk-
|
|
102
|
-
import "./chunk-
|
|
103
|
-
import "./chunk-
|
|
104
|
-
import "./chunk-
|
|
105
|
-
import "./chunk-
|
|
106
|
-
import "./chunk-
|
|
107
|
-
import "./chunk-
|
|
102
|
+
} from "./chunk-O2ULG7OO.js";
|
|
103
|
+
import "./chunk-VTJ3AOTT.js";
|
|
104
|
+
import "./chunk-LQPZDDDP.js";
|
|
105
|
+
import "./chunk-RAFK5KXU.js";
|
|
106
|
+
import "./chunk-RZPMFVWM.js";
|
|
107
|
+
import "./chunk-3KZG63EH.js";
|
|
108
|
+
import "./chunk-4BJAQNJ5.js";
|
|
109
|
+
import "./chunk-I5PILOTU.js";
|
|
110
|
+
import "./chunk-OKTRB4ZQ.js";
|
|
108
111
|
import {
|
|
109
112
|
readSecret
|
|
110
|
-
} from "./chunk-
|
|
111
|
-
import "./chunk-
|
|
112
|
-
import "./chunk-
|
|
113
|
-
import "./chunk-
|
|
114
|
-
import "./chunk-
|
|
115
|
-
import "./chunk-
|
|
113
|
+
} from "./chunk-6M3FAHPS.js";
|
|
114
|
+
import "./chunk-G2SMVYBU.js";
|
|
115
|
+
import "./chunk-VXWDQDRU.js";
|
|
116
|
+
import "./chunk-FIO5NMK3.js";
|
|
117
|
+
import "./chunk-GGGBPWUS.js";
|
|
118
|
+
import "./chunk-XXW6PFAX.js";
|
|
119
|
+
import "./chunk-CKJ73EF3.js";
|
|
120
|
+
import "./chunk-FH4YIBBH.js";
|
|
116
121
|
import {
|
|
117
122
|
DESKTOP,
|
|
118
123
|
TG,
|
|
119
124
|
VERSION
|
|
120
|
-
} from "./chunk-
|
|
125
|
+
} from "./chunk-P4FZJO5F.js";
|
|
121
126
|
import {
|
|
122
127
|
installerOf
|
|
123
|
-
} from "./chunk-
|
|
128
|
+
} from "./chunk-66PL7P4C.js";
|
|
124
129
|
import "./chunk-D72URWJE.js";
|
|
125
|
-
import "./chunk-
|
|
126
|
-
import "./chunk-
|
|
127
|
-
import "./chunk-
|
|
128
|
-
import "./chunk-
|
|
130
|
+
import "./chunk-F6CV4KUN.js";
|
|
131
|
+
import "./chunk-M327UNS6.js";
|
|
132
|
+
import "./chunk-C4ALE7CH.js";
|
|
133
|
+
import "./chunk-KY3JLXW2.js";
|
|
129
134
|
import {
|
|
130
135
|
Argument,
|
|
131
136
|
Command,
|
|
@@ -146,40 +151,44 @@ import {
|
|
|
146
151
|
rootOf,
|
|
147
152
|
secretInputOf,
|
|
148
153
|
withDeadline
|
|
149
|
-
} from "./chunk-
|
|
150
|
-
import "./chunk-
|
|
151
|
-
import "./chunk-
|
|
152
|
-
import "./chunk-
|
|
153
|
-
import "./chunk-
|
|
154
|
+
} from "./chunk-7F3LOHRB.js";
|
|
155
|
+
import "./chunk-QJDHRBXL.js";
|
|
156
|
+
import "./chunk-QDEP2QOA.js";
|
|
157
|
+
import "./chunk-NRCY3WBC.js";
|
|
158
|
+
import "./chunk-QFVIHBLD.js";
|
|
159
|
+
import "./chunk-GYCKRIRK.js";
|
|
160
|
+
import "./chunk-2JZJPVBH.js";
|
|
154
161
|
import {
|
|
155
162
|
hostFetch
|
|
156
|
-
} from "./chunk-
|
|
157
|
-
import "./chunk-
|
|
158
|
-
import
|
|
163
|
+
} from "./chunk-RPWYTOLI.js";
|
|
164
|
+
import "./chunk-IV6SIKVH.js";
|
|
165
|
+
import {
|
|
166
|
+
runtime
|
|
167
|
+
} from "./chunk-S5UTBEV3.js";
|
|
168
|
+
import "./chunk-QBNEWEJC.js";
|
|
169
|
+
import "./chunk-IBSHQWIJ.js";
|
|
170
|
+
import "./chunk-B5RGPZDZ.js";
|
|
159
171
|
import {
|
|
160
|
-
runtime,
|
|
161
172
|
timezoneOf
|
|
162
|
-
} from "./chunk-
|
|
163
|
-
import "./chunk-
|
|
164
|
-
import "./chunk-
|
|
165
|
-
import "./chunk-XWBPP2HX.js";
|
|
166
|
-
import "./chunk-TQFUAKU6.js";
|
|
173
|
+
} from "./chunk-XHX5D5VE.js";
|
|
174
|
+
import "./chunk-ZI3YTXSF.js";
|
|
175
|
+
import "./chunk-VSPSHBAC.js";
|
|
167
176
|
import {
|
|
168
177
|
configFilePath,
|
|
169
178
|
indent,
|
|
170
179
|
processStreams,
|
|
171
180
|
renderPretty,
|
|
172
181
|
resolvePaths
|
|
173
|
-
} from "./chunk-
|
|
182
|
+
} from "./chunk-HT6OFANN.js";
|
|
174
183
|
import {
|
|
175
184
|
exitCodeFor
|
|
176
|
-
} from "./chunk-
|
|
185
|
+
} from "./chunk-AUNNJDVD.js";
|
|
177
186
|
import "./chunk-Y5E2WNWB.js";
|
|
178
187
|
import {
|
|
179
188
|
CliError,
|
|
180
189
|
isCliError,
|
|
181
190
|
singleLine
|
|
182
|
-
} from "./chunk-
|
|
191
|
+
} from "./chunk-F6MLJ3V5.js";
|
|
183
192
|
import {
|
|
184
193
|
__name
|
|
185
194
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -253,7 +262,7 @@ var withProxySecrets = /* @__PURE__ */ __name((config) => {
|
|
|
253
262
|
throw new CliError("validation_error", "a proxy password or MTProxy secret never goes on the command line \u2014 run `tg config set proxy -` and paste the URL");
|
|
254
263
|
if (proxy.kind === "mtproxy" && proxy.secret === void 0)
|
|
255
264
|
throw new CliError("validation_error", "an MTProxy link needs its secret \u2014 run `tg config set proxy -` and paste the whole link");
|
|
256
|
-
const { checkProxy } = await import("./proxy-transport-
|
|
265
|
+
const { checkProxy } = await import("./proxy-transport-A4MRO3PF.js");
|
|
257
266
|
asValidation(() => checkProxy(proxy));
|
|
258
267
|
const label = proxyLabel(proxy);
|
|
259
268
|
action.processedArgs[1] = label;
|
|
@@ -758,7 +767,7 @@ import { accessSync, constants, existsSync as existsSync2, mkdirSync } from "nod
|
|
|
758
767
|
import { join } from "node:path";
|
|
759
768
|
import { fileURLToPath as fileURLToPath2 } from "node:url";
|
|
760
769
|
|
|
761
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
770
|
+
// 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/update/index.js
|
|
762
771
|
import { realpathSync } from "node:fs";
|
|
763
772
|
import { fileURLToPath } from "node:url";
|
|
764
773
|
var npmRegistry = /* @__PURE__ */ __name(() => hostFetch({ hosts: ["registry.npmjs.org"] }), "npmRegistry");
|
|
@@ -1077,7 +1086,7 @@ var definition = {
|
|
|
1077
1086
|
};
|
|
1078
1087
|
var run2 = /* @__PURE__ */ __name(async (argv, environment = {}) => {
|
|
1079
1088
|
if (!botApi && needsBotApi(argv, environment.env ?? process.env))
|
|
1080
|
-
useBotApi((await import("./bot-api-
|
|
1089
|
+
useBotApi((await import("./bot-api-LQP75V5I.js")).telegramBotApiCommand);
|
|
1081
1090
|
const notice = updateNotice2(argv, {
|
|
1082
1091
|
...environment.tty === void 0 ? {} : { tty: environment.tty },
|
|
1083
1092
|
...environment.update ? { environment: environment.update } : {},
|
|
@@ -3,12 +3,12 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
pasteHint,
|
|
5
5
|
readSecret
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-6M3FAHPS.js";
|
|
7
|
+
import "./chunk-G2SMVYBU.js";
|
|
8
|
+
import "./chunk-HT6OFANN.js";
|
|
9
|
+
import "./chunk-AUNNJDVD.js";
|
|
10
10
|
import "./chunk-Y5E2WNWB.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-F6MLJ3V5.js";
|
|
12
12
|
import "./chunk-ZVVMGPBJ.js";
|
|
13
13
|
export {
|
|
14
14
|
pasteHint,
|