@wirecat/drive-cli 0.47.0 → 0.50.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/age.d.ts +36 -0
- package/dist/age.d.ts.map +1 -1
- package/dist/age.js +17 -0
- package/dist/age.js.map +1 -1
- package/dist/bin/drive.js +2 -2
- package/dist/bundle/{all-profiles-O7CNQ7FO.js → all-profiles-WQTVOCIS.js} +8 -8
- package/dist/bundle/{anthropic-6T67J2CE.js → anthropic-YCA2AWIJ.js} +5 -5
- package/dist/bundle/{app-server-BVBZT3UY.js → app-server-ZQOYUQJH.js} +52 -52
- package/dist/bundle/{bun-O6RL6LRQ.js → bun-5NFIDHGM.js} +2 -2
- package/dist/bundle/{bun-sqlite-54W7JUY3.js → bun-sqlite-OAQE4M2E.js} +4 -4
- package/dist/bundle/{chunk-NLEB26GA.js → chunk-24TOKSZE.js} +2 -2
- package/dist/bundle/{chunk-DL7D6Y3B.js → chunk-2M5XEGVE.js} +3413 -3293
- package/dist/bundle/{chunk-4NGLRHWO.js → chunk-3CQNJKJT.js} +1 -1
- package/dist/bundle/{chunk-CYCQBQBH.js → chunk-3HNUH632.js} +6 -6
- package/dist/bundle/{chunk-5TC3NCAF.js → chunk-3XX52F42.js} +2 -2
- package/dist/bundle/{chunk-R2A3K7ZF.js → chunk-4J7UGHPK.js} +5 -5
- package/dist/bundle/{chunk-GHOWRW7E.js → chunk-4OLWMHS6.js} +10 -3
- package/dist/bundle/{chunk-NDNTLUPS.js → chunk-4SSUKRO4.js} +2 -2
- package/dist/bundle/{chunk-CVIKKIGE.js → chunk-4VLUX3V5.js} +1 -1
- package/dist/bundle/{chunk-AIXLOMH4.js → chunk-53UWCVSU.js} +1 -1
- package/dist/bundle/{chunk-3Z7WSD2A.js → chunk-5OMLYNYB.js} +8 -8
- package/dist/bundle/{chunk-VCYFEWPD.js → chunk-5WN7JHQE.js} +26 -26
- package/dist/bundle/{chunk-GQW4GRYR.js → chunk-5Z63NTC7.js} +6 -6
- package/dist/bundle/{chunk-D67JGWSC.js → chunk-5ZJHQ4TN.js} +7 -4
- package/dist/bundle/{chunk-XF5MFUEB.js → chunk-652YTDT5.js} +15 -15
- package/dist/bundle/{chunk-PJ7IQVOM.js → chunk-6DDXB5WB.js} +2 -2
- package/dist/bundle/{chunk-DXKVEOSS.js → chunk-6E4PFCQ4.js} +1 -1
- package/dist/bundle/{chunk-G3FAOS52.js → chunk-7SYSC7KX.js} +2 -2
- package/dist/bundle/{chunk-BQUPOB5H.js → chunk-AO3NCZNT.js} +8 -8
- package/dist/bundle/{chunk-U2OD7MKK.js → chunk-BUALWXBT.js} +1 -1
- package/dist/bundle/{chunk-OWXTPXIQ.js → chunk-C4PNAHI4.js} +11 -11
- package/dist/bundle/{recognize-IFXOJHEA.js → chunk-CCEVICWU.js} +7 -7
- package/dist/bundle/{chunk-IGMRWQP3.js → chunk-CEUEXMIR.js} +86 -35
- package/dist/bundle/{chunk-5MGIL5LW.js → chunk-CTIQ77AB.js} +20 -17
- package/dist/bundle/{chunk-VHQNVG3J.js → chunk-DTHWL5YU.js} +5 -5
- package/dist/bundle/{chunk-67BQ3XMH.js → chunk-E656DAZT.js} +1 -1
- package/dist/bundle/{chunk-WUFCYDKB.js → chunk-EXYEDKTX.js} +2 -2
- package/dist/bundle/{chunk-BJ3JRO34.js → chunk-EY4CUQW2.js} +7 -7
- package/dist/bundle/{chunk-QW36EOAM.js → chunk-FABKIQ24.js} +2 -2
- package/dist/bundle/{chunk-SMHQA5J6.js → chunk-FSAM4Y2S.js} +15 -8
- package/dist/bundle/{chunk-R2QRP7EJ.js → chunk-G75FZQAZ.js} +13 -9
- package/dist/bundle/{chunk-VHT2WI4I.js → chunk-HGWMX7BM.js} +101 -73
- package/dist/bundle/{chunk-44FV5JAS.js → chunk-HURI56SB.js} +21 -21
- package/dist/bundle/{chunk-GWPKIRNQ.js → chunk-IA6LNKCF.js} +5 -5
- package/dist/bundle/{chunk-LHIL46I3.js → chunk-IFM2APQB.js} +2 -2
- package/dist/bundle/{chunk-BEXHAGXH.js → chunk-IGG4RBIZ.js} +170 -146
- package/dist/bundle/{chunk-PDBBBUY7.js → chunk-INVF3GXW.js} +10 -10
- package/dist/bundle/{chunk-KADPV4YA.js → chunk-IUZ4PT2V.js} +2 -2
- package/dist/bundle/{chunk-K74PQVQZ.js → chunk-JA2YY7D4.js} +7 -7
- package/dist/bundle/{chunk-K7FRUB33.js → chunk-JHBX53SK.js} +35 -35
- package/dist/bundle/{chunk-QTJUH3LS.js → chunk-JSMPSOEM.js} +3 -3
- package/dist/bundle/{chunk-PH74B2VZ.js → chunk-KEQ35HQQ.js} +3 -3
- package/dist/bundle/{chunk-NW7IMGRR.js → chunk-KYMGVMOS.js} +1 -1
- package/dist/bundle/{chunk-AOOD3RMK.js → chunk-KZEOWOZV.js} +7 -7
- package/dist/bundle/{chunk-VYBOYBLX.js → chunk-LNWRRK2H.js} +6 -6
- package/dist/bundle/{chunk-RCS2SCX5.js → chunk-M2D4FXKY.js} +5 -5
- package/dist/bundle/{chunk-KJMBV574.js → chunk-M6FQOGUW.js} +392 -319
- package/dist/bundle/{chunk-GOR3Z2FR.js → chunk-MMOG7ZVF.js} +2 -2
- package/dist/bundle/{chunk-RJ633GFA.js → chunk-NHRJW3PH.js} +2 -2
- package/dist/bundle/{chunk-MFS52LTZ.js → chunk-OKSS7YUN.js} +1 -1
- package/dist/bundle/{chunk-ZBM4GEV2.js → chunk-OL22OOIW.js} +4 -4
- package/dist/bundle/{chunk-BHE7ZY2N.js → chunk-OQEBGY74.js} +74 -46
- package/dist/bundle/{chunk-MAXN7COO.js → chunk-P3T2SZW2.js} +1 -1
- package/dist/bundle/{chunk-LJARCTGL.js → chunk-P6VN5UB4.js} +4 -4
- package/dist/bundle/{chunk-A3FU4RR6.js → chunk-PNUS224S.js} +4 -4
- package/dist/bundle/{chunk-JVTVAZ5X.js → chunk-POD2GHQB.js} +58 -19
- package/dist/bundle/{chunk-FEULDMWM.js → chunk-Q27HCATD.js} +1980 -1557
- package/dist/bundle/{chunk-4DW6QGEV.js → chunk-Q3VG3UYV.js} +11 -11
- package/dist/bundle/{chunk-AUS6TKP5.js → chunk-QBECV7NO.js} +33 -32
- package/dist/bundle/{chunk-DORXXBFC.js → chunk-QNLD7Y6Z.js} +7 -7
- package/dist/bundle/{chunk-3HRDEJJW.js → chunk-QSDXVUJG.js} +4 -4
- package/dist/bundle/{chunk-GNFHZZ55.js → chunk-QY3LK3OT.js} +5 -5
- package/dist/bundle/{chunk-CFZWPIVC.js → chunk-R7XMCREL.js} +39 -21
- package/dist/bundle/{chunk-NP3XLLN3.js → chunk-RTIMGPLN.js} +3 -3
- package/dist/bundle/{chunk-SWMMR3FR.js → chunk-T7UZHKAS.js} +2 -2
- package/dist/bundle/{chunk-IKNU5A5Y.js → chunk-TATRMMOG.js} +3 -3
- package/dist/bundle/{chunk-QWSRPXCJ.js → chunk-UVPKSZSC.js} +4 -4
- package/dist/bundle/{chunk-CKR3DVUK.js → chunk-VAETCXRI.js} +54 -26
- package/dist/bundle/{chunk-6T7NSOYC.js → chunk-VAK2Q2XG.js} +14 -14
- package/dist/bundle/{chunk-DDYR6DYL.js → chunk-XEETGCOC.js} +1 -1
- package/dist/bundle/{chunk-XAZQTJXR.js → chunk-XGJUEH5C.js} +27 -27
- package/dist/bundle/{chunk-VAGF723Z.js → chunk-Y73IZWRI.js} +1 -1
- package/dist/bundle/{chunk-2DLAJGRN.js → chunk-YOABRW2M.js} +1 -1
- package/dist/bundle/{chunk-TRMIV3OA.js → chunk-YROVFHPJ.js} +2 -2
- package/dist/bundle/{chunk-NB2N6L3R.js → chunk-Z54E5LKF.js} +6 -6
- package/dist/bundle/{chunk-IAW5A7OR.js → chunk-ZJBRKR42.js} +32 -28
- package/dist/bundle/{chunk-LOTQ2HMT.js → chunk-ZKGYW63J.js} +9 -9
- package/dist/bundle/{chunk-XEBFFKXO.js → chunk-ZP735UUT.js} +3 -3
- package/dist/bundle/{chunk-HEPIOCHN.js → chunk-ZXD2I5ZQ.js} +58 -51
- package/dist/bundle/command-contract-TAWVO2G3.js +38 -0
- package/dist/bundle/decode-YZRTP54O.js +159 -0
- package/dist/bundle/drive.js +7 -7
- package/dist/bundle/{echarts-LD3AI55P.js → echarts-C6HUK2FL.js} +2 -2
- package/dist/bundle/{embed-FJKIIM43.js → embed-QRQ7ITFC.js} +5 -5
- package/dist/bundle/{embedder-NNQ5ZC25.js → embedder-EZDB3JPA.js} +8 -8
- package/dist/bundle/{entry-ZYSNPDSD.js → entry-4WQQKSYG.js} +6 -6
- package/dist/bundle/failure-EEJGMWEP.js +37 -0
- package/dist/bundle/{first-run-KA2UPZAU.js → first-run-ZAS4OV3T.js} +9 -9
- package/dist/bundle/first-screen-6ICWD2N3.js +36 -0
- package/dist/bundle/{google-ZYDFTHLN.js → google-KNILTIDW.js} +9 -9
- package/dist/bundle/google-api-CZACYX5T.js +82 -0
- package/dist/bundle/{identity-7JM62OER.js → identity-VBCGUXT5.js} +2 -2
- package/dist/bundle/{instructions-RZMSW3OC.js → instructions-II4M2WL3.js} +1 -1
- package/dist/bundle/{login-JU6NKW5P.js → login-4JACQVMD.js} +62 -62
- package/dist/bundle/mcp-2BR2EX7L.js +95 -0
- package/dist/bundle/{mcp-KWXNBIAI.js → mcp-6ZIAWU3N.js} +76 -76
- package/dist/bundle/{mcp-OQBZXELQ.js → mcp-ZYZ4DFW2.js} +2 -2
- package/dist/bundle/{node-ZRLYQL7J.js → node-LIN7L4VQ.js} +2 -2
- package/dist/bundle/node-sqlite-VAH4KZN3.js +62 -0
- package/dist/bundle/{oauth-NAIBKERJ.js → oauth-QUE3VCTU.js} +6 -6
- package/dist/bundle/{open-3P5EPXPV.js → open-DQ3EVYPB.js} +3 -3
- package/dist/bundle/{process-LL77573L.js → process-46XDWPVW.js} +1 -1
- package/dist/bundle/{program-VKHR42BF.js → program-X3CZ4XDN.js} +141 -99
- package/dist/bundle/{prompt-3TX2SWOY.js → prompt-SAZYCZV3.js} +4 -4
- package/dist/bundle/{reasons-GF2TYGX6.js → reasons-366PI7OV.js} +3 -3
- package/dist/bundle/recognize-SSBOHOTW.js +22 -0
- package/dist/bundle/{remote-663M42Y5.js → remote-EL3FWCQE.js} +6 -6
- package/dist/bundle/{rerank-OT2F2DBV.js → rerank-RPIQRJIW.js} +6 -6
- package/dist/bundle/{serve-PDNNI6O6.js → serve-AX44DIKK.js} +8 -8
- package/dist/bundle/server-DCJIGUW2.js +56 -0
- package/dist/bundle/server-WWQSQBFT.js +69 -0
- package/dist/bundle/{services-5MCTECBU.js → services-K4UOEMQD.js} +28 -28
- package/dist/bundle/{sqlite-runtime-BF3KDM7W.js → sqlite-runtime-N7N3EYGH.js} +4 -4
- package/dist/bundle/{state-SZX65E74.js → state-C3S5FD7V.js} +5 -5
- package/dist/bundle/{store-TCWNLA3V.js → store-4N3NBUGX.js} +14 -14
- package/dist/bundle/{store-UKPGGAPW.js → store-QV4ZNEQ3.js} +16 -16
- package/dist/bundle/store-maintenance-command-QL4AECBD.js +57 -0
- package/dist/bundle/tokens-Y7HCOXOA.js +103 -0
- package/dist/commands/documents.d.ts +5 -1
- package/dist/commands/documents.d.ts.map +1 -1
- package/dist/commands/documents.js +11 -5
- package/dist/commands/documents.js.map +1 -1
- package/dist/commands/remote.d.ts +8 -0
- package/dist/commands/remote.d.ts.map +1 -1
- package/dist/commands/remote.js +16 -0
- package/dist/commands/remote.js.map +1 -1
- package/dist/commands/session.d.ts.map +1 -1
- package/dist/commands/session.js +10 -2
- package/dist/commands/session.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +4 -1
- package/dist/program.js.map +1 -1
- package/dist/tokens.d.ts.map +1 -1
- package/dist/tokens.js +2 -2
- package/dist/tokens.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/bundle/command-contract-MXCBV3GJ.js +0 -38
- package/dist/bundle/failure-KZDBSYBR.js +0 -37
- package/dist/bundle/first-screen-VQ3RXDMF.js +0 -36
- package/dist/bundle/google-api-2GT5PAW2.js +0 -82
- package/dist/bundle/mcp-JOQMFGBC.js +0 -95
- package/dist/bundle/node-sqlite-TXPSRROT.js +0 -46
- package/dist/bundle/server-BFOEPMR7.js +0 -56
- package/dist/bundle/server-K566PJ7H.js +0 -69
- package/dist/bundle/store-maintenance-command-QHLUVBTJ.js +0 -57
- package/dist/bundle/tokens-DFCFRF7I.js +0 -103
- /package/dist/bundle/{chunk-O5EHUB2V.js → chunk-2WNDZFGG.js} +0 -0
- /package/dist/bundle/{chunk-Q2Z3VCM4.js → chunk-VDZZ46RT.js} +0 -0
|
@@ -2,51 +2,51 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
botInstructions
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-3CQNJKJT.js";
|
|
6
6
|
import {
|
|
7
7
|
answered,
|
|
8
8
|
normal,
|
|
9
9
|
registerCommands,
|
|
10
10
|
runCommandForAgent,
|
|
11
11
|
toolsFromCommands
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-XGJUEH5C.js";
|
|
13
13
|
import {
|
|
14
14
|
agentJson,
|
|
15
15
|
skillResource
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-652YTDT5.js";
|
|
17
17
|
import {
|
|
18
18
|
callerOf,
|
|
19
19
|
serveStdio
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-7SYSC7KX.js";
|
|
21
21
|
import {
|
|
22
22
|
McpServer
|
|
23
23
|
} from "./chunk-5FONRUG6.js";
|
|
24
24
|
import {
|
|
25
25
|
wholeList
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-POD2GHQB.js";
|
|
27
27
|
import {
|
|
28
28
|
changesMessenger,
|
|
29
29
|
itemOf
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-QBECV7NO.js";
|
|
31
31
|
import {
|
|
32
32
|
flatten
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-ZKGYW63J.js";
|
|
34
34
|
import {
|
|
35
35
|
MESSENGER_CHANGE_REFUSAL,
|
|
36
36
|
readOnlyLockOf,
|
|
37
37
|
readOnlyRefusal
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-NHRJW3PH.js";
|
|
39
39
|
import {
|
|
40
40
|
mcpErrorResult
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-HGWMX7BM.js";
|
|
42
42
|
import {
|
|
43
43
|
object
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-EY4CUQW2.js";
|
|
45
45
|
import {
|
|
46
46
|
__name
|
|
47
47
|
} from "./chunk-ZVVMGPBJ.js";
|
|
48
48
|
|
|
49
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
49
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/mcp/bot/server.js
|
|
50
50
|
import { randomUUID } from "node:crypto";
|
|
51
51
|
var body = /* @__PURE__ */ __name((command, value) => Array.isArray(value) ? wholeList(`bot ${command}`, value) : value !== null && typeof value === "object" && ("item" in value || "items" in value) ? value : itemOf(value !== null && typeof value === "object" ? value : { value }), "body");
|
|
52
52
|
var createBotServer = /* @__PURE__ */ __name((options) => {
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
providerErrorKey,
|
|
10
10
|
renderEvent,
|
|
11
11
|
runContextOf
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-5OMLYNYB.js";
|
|
13
13
|
import {
|
|
14
14
|
Option,
|
|
15
15
|
annotate,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
metaOf,
|
|
18
18
|
resolveOutput,
|
|
19
19
|
stepTargets
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-ZKGYW63J.js";
|
|
21
21
|
import {
|
|
22
22
|
DEFAULT_RERANK_MODEL,
|
|
23
23
|
KEEP_SUCCESSFUL_RUNS_FOR_DAYS,
|
|
@@ -38,10 +38,10 @@ import {
|
|
|
38
38
|
typedCommand,
|
|
39
39
|
useAsProcessRun,
|
|
40
40
|
withWriteScope
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-R7XMCREL.js";
|
|
42
42
|
import {
|
|
43
43
|
isCliFailure
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-MMOG7ZVF.js";
|
|
45
45
|
import {
|
|
46
46
|
CEILING_KEY,
|
|
47
47
|
COMMAND_PATH_KEY,
|
|
@@ -52,25 +52,25 @@ import {
|
|
|
52
52
|
keyForCommand,
|
|
53
53
|
layerPermissions,
|
|
54
54
|
permissionOverrides
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-6DDXB5WB.js";
|
|
56
56
|
import {
|
|
57
57
|
count,
|
|
58
58
|
text
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-OL22OOIW.js";
|
|
60
60
|
import {
|
|
61
61
|
permissionCeiling
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-P6VN5UB4.js";
|
|
63
63
|
import {
|
|
64
64
|
envName,
|
|
65
65
|
readOnlyLockOf,
|
|
66
66
|
readOnlyRefusal
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-NHRJW3PH.js";
|
|
68
68
|
import {
|
|
69
69
|
sharedConfigPath
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-5Z63NTC7.js";
|
|
71
71
|
import {
|
|
72
72
|
storePath
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-YROVFHPJ.js";
|
|
74
74
|
import {
|
|
75
75
|
configFilePath,
|
|
76
76
|
createRecordLog,
|
|
@@ -79,7 +79,7 @@ import {
|
|
|
79
79
|
resolvePaths,
|
|
80
80
|
saveConfigFile,
|
|
81
81
|
writeSecurely
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-HGWMX7BM.js";
|
|
83
83
|
import {
|
|
84
84
|
CliError,
|
|
85
85
|
MAX_NEXT_STEPS,
|
|
@@ -114,12 +114,12 @@ import {
|
|
|
114
114
|
union,
|
|
115
115
|
unknown,
|
|
116
116
|
writes
|
|
117
|
-
} from "./chunk-
|
|
117
|
+
} from "./chunk-EY4CUQW2.js";
|
|
118
118
|
import {
|
|
119
119
|
__name
|
|
120
120
|
} from "./chunk-ZVVMGPBJ.js";
|
|
121
121
|
|
|
122
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
122
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/cli/execution.js
|
|
123
123
|
var DEFAULT_COOPERATIVE_MS = 5 * 6e4;
|
|
124
124
|
var DEFAULT_SYNC_MS = 15 * 6e4;
|
|
125
125
|
var DEFAULT_OUTPUT_BYTES = 4 * 1024 * 1024;
|
|
@@ -141,7 +141,7 @@ var withAbort = /* @__PURE__ */ __name(async (signal, body) => {
|
|
|
141
141
|
}
|
|
142
142
|
}, "withAbort");
|
|
143
143
|
|
|
144
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
144
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/cli/profile.js
|
|
145
145
|
var asFirstWord = /* @__PURE__ */ __name((profile) => `${profile} `, "asFirstWord");
|
|
146
146
|
var PLAIN_NAME = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
|
|
147
147
|
var isProfileName = /* @__PURE__ */ __name((word) => PLAIN_NAME.test(word), "isProfileName");
|
|
@@ -188,7 +188,7 @@ var rootOf = /* @__PURE__ */ __name((command) => {
|
|
|
188
188
|
return root;
|
|
189
189
|
}, "rootOf");
|
|
190
190
|
|
|
191
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
191
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/cli/messenger/accounts.js
|
|
192
192
|
import { existsSync, readdirSync, readFileSync } from "node:fs";
|
|
193
193
|
import { join } from "node:path";
|
|
194
194
|
var accountFileFor = /* @__PURE__ */ __name((app, profile, env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "accounts", `${profile}.json`), "accountFileFor");
|
|
@@ -210,7 +210,7 @@ var profilesWithAccounts = /* @__PURE__ */ __name((app, env) => {
|
|
|
210
210
|
}, "profilesWithAccounts");
|
|
211
211
|
var profilesHere = /* @__PURE__ */ __name((app, configured, env) => [.../* @__PURE__ */ new Set([...configured, ...profilesWithAccounts(app, env)])].sort(), "profilesHere");
|
|
212
212
|
|
|
213
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
213
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/runs/log-events.js
|
|
214
214
|
var CORE_LOG_EVENTS = defineLogEvents([
|
|
215
215
|
{ id: "provider.request", meaning: "a request went to the messenger", keys: ["operation"] },
|
|
216
216
|
{ id: "provider.response", meaning: "the messenger answered the request, or it failed", keys: ["operation"] },
|
|
@@ -244,7 +244,7 @@ var DIAGNOSTIC_LOG_EVENTS = {
|
|
|
244
244
|
cache: "cache.answered"
|
|
245
245
|
};
|
|
246
246
|
|
|
247
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
247
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/runs/recording.js
|
|
248
248
|
var recorded = /* @__PURE__ */ __name(async (options, body) => {
|
|
249
249
|
const recording = startRecording(options);
|
|
250
250
|
try {
|
|
@@ -429,7 +429,7 @@ var partialOutcome = /* @__PURE__ */ __name((answer) => {
|
|
|
429
429
|
return void 0;
|
|
430
430
|
}, "partialOutcome");
|
|
431
431
|
|
|
432
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
432
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/cli/deadline.js
|
|
433
433
|
var withDeadline = /* @__PURE__ */ __name(async (ms, closeables, body) => {
|
|
434
434
|
if (ms === void 0)
|
|
435
435
|
return body();
|
|
@@ -455,10 +455,10 @@ var withDeadline = /* @__PURE__ */ __name(async (ms, closeables, body) => {
|
|
|
455
455
|
}
|
|
456
456
|
}, "withDeadline");
|
|
457
457
|
|
|
458
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
458
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/cli/settings.js
|
|
459
459
|
import { existsSync as existsSync3 } from "node:fs";
|
|
460
460
|
|
|
461
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
461
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/models/endpoint.js
|
|
462
462
|
var endpoint = /* @__PURE__ */ __name((value) => {
|
|
463
463
|
try {
|
|
464
464
|
const url2 = new URL(value);
|
|
@@ -468,7 +468,7 @@ var endpoint = /* @__PURE__ */ __name((value) => {
|
|
|
468
468
|
}
|
|
469
469
|
}, "endpoint");
|
|
470
470
|
|
|
471
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
471
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/models/settings.js
|
|
472
472
|
var MODEL_FIELDS = ["provider", "model", "base_url"];
|
|
473
473
|
var modelSettingsShape = record(pipe(string(), regex(/^[a-z][a-z0-9-]*$/)), strictObject({
|
|
474
474
|
provider: optional(picklist(["off", "openai", "anthropic"])),
|
|
@@ -537,7 +537,7 @@ var modelTarget = /* @__PURE__ */ __name((settings, purpose) => {
|
|
|
537
537
|
};
|
|
538
538
|
}, "modelTarget");
|
|
539
539
|
|
|
540
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
540
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/analysis/settings.js
|
|
541
541
|
var model = pipe(string(), trim(), minLength(1), maxLength(200));
|
|
542
542
|
var url = pipe(string(), check(endpoint, "use an HTTP/S endpoint without credentials, query or fragment"));
|
|
543
543
|
var AI_FIELDS = {
|
|
@@ -581,7 +581,7 @@ var resolveAISettings = /* @__PURE__ */ __name((prefix, layers, env) => {
|
|
|
581
581
|
};
|
|
582
582
|
}, "resolveAISettings");
|
|
583
583
|
|
|
584
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
584
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
|
|
585
585
|
import { readFileSync as readFileSync2 } from "node:fs";
|
|
586
586
|
var isNode = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
|
|
587
587
|
var SECTIONS = ["personal", "bot"];
|
|
@@ -871,7 +871,7 @@ var readConfigFile = /* @__PURE__ */ __name((path) => {
|
|
|
871
871
|
return "issue" in parsed ? { issue: publicIssue(parsed.issue) } : parsed;
|
|
872
872
|
}, "readConfigFile");
|
|
873
873
|
|
|
874
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
874
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/cli/default-config.js
|
|
875
875
|
import { existsSync as existsSync2, linkSync, mkdirSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";
|
|
876
876
|
import { dirname, join as join2 } from "node:path";
|
|
877
877
|
var DEFAULT_CONFIG = {
|
|
@@ -900,7 +900,7 @@ function ensureDefaultConfig(path, config = DEFAULT_CONFIG) {
|
|
|
900
900
|
}
|
|
901
901
|
__name(ensureDefaultConfig, "ensureDefaultConfig");
|
|
902
902
|
|
|
903
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
903
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/cli/settings.js
|
|
904
904
|
var DEFAULT_LIMIT = DEFAULT_CONFIG.defaults.limit;
|
|
905
905
|
var DEFAULT_KEEP_RUNS_FOR_DAYS = DEFAULT_CONFIG.defaults.keep_runs_for_days;
|
|
906
906
|
var DEFAULT_SENDS_PER_HOUR = DEFAULT_CONFIG.defaults.sends_per_hour;
|
|
@@ -1290,7 +1290,7 @@ var given = /* @__PURE__ */ __name((value) => {
|
|
|
1290
1290
|
return trimmed === void 0 || trimmed === "" ? void 0 : trimmed;
|
|
1291
1291
|
}, "given");
|
|
1292
1292
|
|
|
1293
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1293
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/cli/context.js
|
|
1294
1294
|
var setExitCode = /* @__PURE__ */ __name((command, code) => {
|
|
1295
1295
|
const slot = environmentOf(command).exit;
|
|
1296
1296
|
if (slot)
|
|
@@ -1397,7 +1397,7 @@ var commandPath = /* @__PURE__ */ __name((command) => {
|
|
|
1397
1397
|
return words.join(" ");
|
|
1398
1398
|
}, "commandPath");
|
|
1399
1399
|
|
|
1400
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1400
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/cli/effects.js
|
|
1401
1401
|
var REMOTE_READ = { remote: "read", local: "read" };
|
|
1402
1402
|
var FETCH = { remote: "read", local: "write" };
|
|
1403
1403
|
var REMOTE_WRITE = { remote: "write", local: "write" };
|
|
@@ -1482,7 +1482,7 @@ var refuseUnderReadOnly = /* @__PURE__ */ __name((command, what) => {
|
|
|
1482
1482
|
throw readOnlyRefusal(lock, what);
|
|
1483
1483
|
}, "refuseUnderReadOnly");
|
|
1484
1484
|
|
|
1485
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1485
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/cli/steps.js
|
|
1486
1486
|
var STEPS2 = defineSteps([
|
|
1487
1487
|
...STEPS,
|
|
1488
1488
|
{
|
|
@@ -1491,6 +1491,7 @@ var STEPS2 = defineSteps([
|
|
|
1491
1491
|
args: [
|
|
1492
1492
|
{ name: "chat", required: false },
|
|
1493
1493
|
{ name: "all", required: false },
|
|
1494
|
+
{ name: "since_time", required: false },
|
|
1494
1495
|
{ name: "background", required: false }
|
|
1495
1496
|
],
|
|
1496
1497
|
why: "the local copy is missing messages; syncing brings them in"
|
|
@@ -1739,7 +1740,7 @@ var stepLine = /* @__PURE__ */ __name((root, step) => {
|
|
|
1739
1740
|
].join(" ");
|
|
1740
1741
|
}, "stepLine");
|
|
1741
1742
|
|
|
1742
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1743
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
|
|
1743
1744
|
var HIDDEN = /* @__PURE__ */ new Set(["providerRef", "provider_ref"]);
|
|
1744
1745
|
var withoutProviderRefs = /* @__PURE__ */ __name((value) => strip(value), "withoutProviderRefs");
|
|
1745
1746
|
var strip = /* @__PURE__ */ __name((value) => {
|
|
@@ -1753,7 +1754,7 @@ var strip = /* @__PURE__ */ __name((value) => {
|
|
|
1753
1754
|
return Object.fromEntries(Object.entries(value).flatMap(([key, inner]) => HIDDEN.has(key) ? [] : [[key, strip(inner)]]));
|
|
1754
1755
|
}, "strip");
|
|
1755
1756
|
|
|
1756
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1757
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/cli/envelope.js
|
|
1757
1758
|
var answerSchema = /* @__PURE__ */ __name((item = unknown()) => union([listEnvelopeSchema(item), itemEnvelopeSchema(item)]), "answerSchema");
|
|
1758
1759
|
var capped2 = /* @__PURE__ */ __name((steps) => steps.length > 0 ? { next: steps.slice(0, MAX_NEXT_STEPS) } : {}, "capped");
|
|
1759
1760
|
var listOf = /* @__PURE__ */ __name((command, input) => {
|
|
@@ -1875,7 +1876,7 @@ var printItem = /* @__PURE__ */ __name(({ renderer, format }, item) => {
|
|
|
1875
1876
|
renderer.result(item);
|
|
1876
1877
|
}, "printItem");
|
|
1877
1878
|
|
|
1878
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1879
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/entities/store-table.js
|
|
1879
1880
|
var TABLE_KINDS = ["data", "search_index", "search_index_part", "internal"];
|
|
1880
1881
|
var storeTable = strictObject({
|
|
1881
1882
|
name: text,
|
|
@@ -1884,7 +1885,7 @@ var storeTable = strictObject({
|
|
|
1884
1885
|
bytes: optional(nullable(count))
|
|
1885
1886
|
});
|
|
1886
1887
|
|
|
1887
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1888
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/runs/record-log.js
|
|
1888
1889
|
var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) => {
|
|
1889
1890
|
const run = currentRun();
|
|
1890
1891
|
const trace = traceId ?? run.traceId;
|
|
@@ -2,13 +2,13 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
LEVELS
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-6DDXB5WB.js";
|
|
6
6
|
import {
|
|
7
7
|
resolvePaths,
|
|
8
8
|
singleLine,
|
|
9
9
|
visibleControls,
|
|
10
10
|
writeSecurely
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-HGWMX7BM.js";
|
|
12
12
|
import {
|
|
13
13
|
CliError,
|
|
14
14
|
array,
|
|
@@ -28,12 +28,12 @@ import {
|
|
|
28
28
|
string,
|
|
29
29
|
transform,
|
|
30
30
|
unknown
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-EY4CUQW2.js";
|
|
32
32
|
import {
|
|
33
33
|
__name
|
|
34
34
|
} from "./chunk-ZVVMGPBJ.js";
|
|
35
35
|
|
|
36
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/resolve.js
|
|
37
37
|
var isId = /* @__PURE__ */ __name((reference) => /^-?\d+$/.test(reference.trim()), "isId");
|
|
38
38
|
var foldName = /* @__PURE__ */ __name((name) => name.normalize("NFC").replace(/[\uFE0E\uFE0F\u200D]/g, "").toLowerCase(), "foldName");
|
|
39
39
|
var pickChat = /* @__PURE__ */ __name((reference, chats) => {
|
|
@@ -71,7 +71,7 @@ ${lines}`, { candidates });
|
|
|
71
71
|
}, "ambiguous");
|
|
72
72
|
var isPresent = /* @__PURE__ */ __name((value) => value !== null && value !== void 0, "isPresent");
|
|
73
73
|
|
|
74
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
74
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/domain/formatting.js
|
|
75
75
|
var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "the messenger formatter returned invalid text spans"), "invalid");
|
|
76
76
|
var validateFormattedText = /* @__PURE__ */ __name((formatted) => {
|
|
77
77
|
const { text, spans } = formatted;
|
|
@@ -131,7 +131,7 @@ var visibleFormattedText = /* @__PURE__ */ __name((formatted) => {
|
|
|
131
131
|
};
|
|
132
132
|
}, "visibleFormattedText");
|
|
133
133
|
|
|
134
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
134
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/moderation/check.js
|
|
135
135
|
var INVITE = /max\.ru\/join\/|(t|telegram)\.me\/(\+|joinchat\/)|tg:\/\/join/i;
|
|
136
136
|
var LINK = /https?:\/\/\S+/i;
|
|
137
137
|
var STRENGTH = { report: 0, delete: 1, remove: 2 };
|
|
@@ -319,7 +319,7 @@ var nextPoint = /* @__PURE__ */ __name((rows, found) => {
|
|
|
319
319
|
}, "nextPoint");
|
|
320
320
|
var someUndone = /* @__PURE__ */ __name((rows) => rows.some(undone), "someUndone");
|
|
321
321
|
|
|
322
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
322
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/moderation/rules.js
|
|
323
323
|
import { existsSync, readFileSync } from "node:fs";
|
|
324
324
|
import { join } from "node:path";
|
|
325
325
|
var RULE_ACTIONS = ["report", "delete", "remove"];
|
|
@@ -5,15 +5,15 @@ import {
|
|
|
5
5
|
readLock,
|
|
6
6
|
releaseLock,
|
|
7
7
|
takeLock
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-RTIMGPLN.js";
|
|
9
9
|
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.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
|
|
14
14
|
import { existsSync as existsSync2, readFileSync as readFileSync2 } from "node:fs";
|
|
15
15
|
|
|
16
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/mcp/http/activity.js
|
|
17
17
|
import { randomBytes } from "node:crypto";
|
|
18
18
|
import { chmodSync, existsSync, mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
19
19
|
import { dirname } from "node:path";
|
|
@@ -86,7 +86,7 @@ var activityRecorder = /* @__PURE__ */ __name((path, now = Date.now) => {
|
|
|
86
86
|
};
|
|
87
87
|
}, "activityRecorder");
|
|
88
88
|
|
|
89
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
89
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
|
|
90
90
|
var ACCESS_SECONDS = 60 * 60;
|
|
91
91
|
var REFRESH_SECONDS = 30 * 24 * 60 * 60;
|
|
92
92
|
var readStored = /* @__PURE__ */ __name((path) => existsSync2(path) ? JSON.parse(readFileSync2(path, "utf8")) : { clients: [], tokens: [] }, "readStored");
|
|
@@ -2,15 +2,15 @@ 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-YROVFHPJ.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-EY4CUQW2.js";
|
|
9
9
|
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.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/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.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/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.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/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;
|