@wirecat/drive-cli 0.63.0 → 0.64.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 +2 -1
- package/dist/bin/drive.js +2 -2
- package/dist/bundle/{all-profiles-GZJS3UKC.js → all-profiles-BPPT2AK5.js} +13 -13
- package/dist/bundle/{anthropic-RGV3WXX5.js → anthropic-JW6GOJUD.js} +13 -11
- package/dist/bundle/{app-server-AA2PJ7PV.js → app-server-KAQIOJMZ.js} +53 -53
- package/dist/bundle/{bun-OXZYIA3R.js → bun-UT7GNTPV.js} +2 -2
- package/dist/bundle/{bun-sqlite-D45NSDM3.js → bun-sqlite-2OIVV3LS.js} +8 -8
- package/dist/bundle/{chunk-EOOGWUTP.js → chunk-2FEZ24DK.js} +10 -10
- package/dist/bundle/{chunk-TWUH22Z5.js → chunk-2W464HAE.js} +4 -4
- package/dist/bundle/{chunk-YIP7ELON.js → chunk-34BIDKF4.js} +275 -419
- package/dist/bundle/{chunk-2NIC72HH.js → chunk-36GPBPWM.js} +1 -1
- package/dist/bundle/{chunk-44SBK6KB.js → chunk-3J5KAFNA.js} +1601 -877
- package/dist/bundle/{chunk-ZM5J6ZMB.js → chunk-3NULZGQU.js} +2 -2
- package/dist/bundle/{chunk-DJHLVUL6.js → chunk-46CD64J2.js} +152 -36
- package/dist/bundle/{chunk-2TFXK3R4.js → chunk-4CNTID2X.js} +4 -4
- package/dist/bundle/{chunk-WYGWWHZP.js → chunk-4YRENUB5.js} +2 -2
- package/dist/bundle/{chunk-L37LMMRJ.js → chunk-5HSRQ53R.js} +2 -2
- package/dist/bundle/{chunk-XR6ESRU6.js → chunk-5OFA5EXE.js} +2 -2
- package/dist/bundle/{chunk-3QINVLZI.js → chunk-5ZBR55US.js} +1 -1
- package/dist/bundle/{chunk-LMAVCYLQ.js → chunk-66AF4FBW.js} +4 -4
- package/dist/bundle/{chunk-Y6GNA7HE.js → chunk-6B37XO6B.js} +23 -5
- package/dist/bundle/{chunk-ZMOUUOT2.js → chunk-6G53ZFUT.js} +1 -1
- package/dist/bundle/{chunk-2TDUGC5D.js → chunk-AHB4OJCI.js} +1885 -565
- package/dist/bundle/{chunk-E4SDKMBJ.js → chunk-B67BLRAI.js} +3 -3
- package/dist/bundle/{chunk-YGU6ULU5.js → chunk-B7XBIOMR.js} +12 -12
- package/dist/bundle/{chunk-FEZF3TII.js → chunk-BDYWZ7JE.js} +50 -6
- package/dist/bundle/{chunk-BKYMKVHT.js → chunk-BEUAICUD.js} +2 -2
- package/dist/bundle/{chunk-ABYGSJZ4.js → chunk-BEZJA44H.js} +7 -7
- package/dist/bundle/{chunk-TF23BZW5.js → chunk-BZ2ZKILM.js} +3 -3
- package/dist/bundle/{chunk-FUITWY7O.js → chunk-C7WBNOYW.js} +1 -1
- package/dist/bundle/{chunk-V3NVXIQR.js → chunk-CPMRM3GQ.js} +231 -191
- package/dist/bundle/{chunk-AEX37ETW.js → chunk-DD7EFG6B.js} +2 -2
- package/dist/bundle/{chunk-PDCCYHCH.js → chunk-E2LBCCTG.js} +5 -5
- package/dist/bundle/{chunk-O2XOX4HB.js → chunk-EC2XGDKJ.js} +50 -34
- package/dist/bundle/{chunk-4OSSOWDM.js → chunk-EJ4PNHPP.js} +1 -1
- package/dist/bundle/{chunk-4S4JMW6I.js → chunk-EQEGJVO2.js} +1 -1
- package/dist/bundle/{chunk-XNVFKMVR.js → chunk-EWGVDFPT.js} +957 -533
- package/dist/bundle/{chunk-CE2TJBLP.js → chunk-EZ6O3ST3.js} +3 -3
- package/dist/bundle/{chunk-FRIJUILO.js → chunk-F2VDAG32.js} +3 -3
- package/dist/bundle/{chunk-HZZCEQTH.js → chunk-G3NULXOM.js} +4 -4
- package/dist/bundle/{chunk-OD4U7GUY.js → chunk-G4KEKKDE.js} +20 -20
- package/dist/bundle/{chunk-OTROVC4E.js → chunk-GSMYXGFR.js} +1 -1
- package/dist/bundle/{chunk-4CIZWCXV.js → chunk-GW3U6OLD.js} +1 -1
- package/dist/bundle/{chunk-6EY46GAN.js → chunk-HW4UPST2.js} +2 -2
- package/dist/bundle/{chunk-2HF2MRXI.js → chunk-IDAK4DDK.js} +1 -1
- package/dist/bundle/{chunk-27YUUGXQ.js → chunk-IK6KH3RE.js} +1 -1
- package/dist/bundle/{chunk-DJ3SDJZY.js → chunk-IX7NQJLY.js} +8 -8
- package/dist/bundle/{chunk-534OBX5Y.js → chunk-J62DI53V.js} +1 -1
- package/dist/bundle/{chunk-PO5RQQIG.js → chunk-JRXFW7HE.js} +5 -5
- package/dist/bundle/{chunk-XIUDS3OK.js → chunk-K6BSB53R.js} +1 -1
- package/dist/bundle/{chunk-ND6LLYGF.js → chunk-KE4XPPRQ.js} +27 -27
- package/dist/bundle/{chunk-UQLWMGSD.js → chunk-KG2XKEHL.js} +5 -5
- package/dist/bundle/{chunk-MOTRI3SY.js → chunk-KIN6PDFE.js} +24 -2
- package/dist/bundle/{chunk-VAUMOZU5.js → chunk-KVW4XNKB.js} +16 -16
- package/dist/bundle/{chunk-33MGFUED.js → chunk-LOMW6F2E.js} +194 -229
- package/dist/bundle/{chunk-5PPL7JDM.js → chunk-M73NNJ3X.js} +2 -2
- package/dist/bundle/{chunk-QCKZ3GAA.js → chunk-N622LRPM.js} +4 -4
- package/dist/bundle/{chunk-3BZRKLJ6.js → chunk-O2QO5UZC.js} +13 -13
- package/dist/bundle/{chunk-SXM6MHRR.js → chunk-OEVHZOHC.js} +12 -12
- package/dist/bundle/{chunk-6MQSQ4LX.js → chunk-OH3K2E7X.js} +402 -184
- package/dist/bundle/{chunk-J24ZFCWM.js → chunk-P7DEGRZA.js} +21 -21
- package/dist/bundle/{chunk-YUWPNG7B.js → chunk-PBMSBCVB.js} +1 -1
- package/dist/bundle/{chunk-S4RXABDR.js → chunk-QEAD2LF4.js} +3 -3
- package/dist/bundle/{chunk-OXY6SSZG.js → chunk-QXCKJUZY.js} +33 -18
- package/dist/bundle/{chunk-LZEOQW7S.js → chunk-SIOIMO62.js} +36 -36
- package/dist/bundle/{chunk-RKELRWH7.js → chunk-TNV2FXVK.js} +5 -5
- package/dist/bundle/{chunk-UPOSDTPT.js → chunk-UD55VB2N.js} +3 -3
- package/dist/bundle/{chunk-6KQJSFYF.js → chunk-UIEA6FIV.js} +22 -22
- package/dist/bundle/{chunk-XDC3TWTL.js → chunk-UJR272CP.js} +28 -28
- package/dist/bundle/{chunk-3HK5WMI5.js → chunk-USLZE36C.js} +6 -6
- package/dist/bundle/{chunk-ZOJU7ZFI.js → chunk-VIJ6ACYB.js} +8 -8
- package/dist/bundle/{chunk-VKPCONDQ.js → chunk-VPLFD5RJ.js} +4 -4
- package/dist/bundle/{chunk-VJEOGKAN.js → chunk-VT2UFYPJ.js} +7 -7
- package/dist/bundle/{chunk-Q5DJTRKV.js → chunk-WWCYTMAV.js} +2 -2
- package/dist/bundle/{chunk-7EMQ26BA.js → chunk-XPXKD63J.js} +13 -13
- package/dist/bundle/{chunk-J4DIHPZ6.js → chunk-ZF6GUZCE.js} +1 -1
- package/dist/bundle/{chunk-Z42YYLTS.js → chunk-ZRZ4HTCK.js} +52 -34
- package/dist/bundle/{chunk-NEFSGCVA.js → chunk-ZSZJLJIA.js} +10 -10
- package/dist/bundle/command-contract-H5OYJOPF.js +38 -0
- package/dist/bundle/{decode-G5YEIPNC.js → decode-HTOQ6S3V.js} +8 -8
- package/dist/bundle/{dispatch-GEFIXA6X.js → dispatch-SH5SP6LA.js} +11 -11
- package/dist/bundle/drive.js +11 -11
- package/dist/bundle/{echarts-W2CWHNXR.js → echarts-KFHB6SLX.js} +2 -2
- package/dist/bundle/{embed-OBFFPVF4.js → embed-YATFB2PN.js} +9 -9
- package/dist/bundle/{embedder-NGCBQHIG.js → embedder-MQPDFGTJ.js} +12 -12
- package/dist/bundle/entry-YZBB647C.js +22 -0
- package/dist/bundle/{failure-GV77W3CD.js → failure-4FQL4XJI.js} +4 -4
- package/dist/bundle/first-run-5JT3UQZB.js +30 -0
- package/dist/bundle/first-screen-BEMDEWO7.js +36 -0
- package/dist/bundle/{google-CIWUVJ5C.js → google-DVADVICN.js} +13 -13
- package/dist/bundle/{google-api-Z3NSTBBR.js → google-api-QMFGCXBM.js} +55 -56
- package/dist/bundle/grants-WKB2E4TA.js +103 -0
- package/dist/bundle/{identity-OM6GFZ7T.js → identity-FYVDK4M2.js} +6 -6
- package/dist/bundle/{instructions-YQBQSYSS.js → instructions-D3GF3B7M.js} +1 -1
- package/dist/bundle/{login-7RYSDVN3.js → login-COFZ2IWP.js} +61 -62
- package/dist/bundle/{mcp-GWDA3HOA.js → mcp-RKJG22KM.js} +2 -2
- package/dist/bundle/{node-IVU33RL7.js → node-OFICOKX3.js} +2 -2
- package/dist/bundle/{node-sqlite-SIH5BEW2.js → node-sqlite-DNBTDOXD.js} +9 -9
- package/dist/bundle/oauth-PDQHWFBF.js +22 -0
- package/dist/bundle/{open-IAO2SNII.js → open-PTPR2YWX.js} +8 -8
- package/dist/bundle/{openai-SGOUBHXP.js → openai-2KV5LUW4.js} +17 -17
- package/dist/bundle/{process-BPBMV3AT.js → process-EAW6NST2.js} +1 -1
- package/dist/bundle/{program-MYKKJ4F6.js → program-6UV5Q5YN.js} +306 -276
- package/dist/bundle/prompt-634TPMJK.js +19 -0
- package/dist/bundle/{reasons-57J2D77K.js → reasons-DDWCEYSQ.js} +5 -5
- package/dist/bundle/{recognize-A5C5RPB3.js → recognize-SJO6QUDW.js} +7 -7
- package/dist/bundle/{remote-VWYFLRGO.js → remote-6JXZITKF.js} +10 -10
- package/dist/bundle/{rerank-4NGQWREA.js → rerank-MD5VOPQ6.js} +10 -10
- package/dist/bundle/{serve-Y6LQTFH5.js → serve-LZTROA2M.js} +12 -12
- package/dist/bundle/server-GT7X666D.js +69 -0
- package/dist/bundle/{server-6AUHIIUA.js → server-NSA3UAFY.js} +43 -43
- package/dist/bundle/{services-2W4J7EMW.js → services-F5A6XQCV.js} +63 -33
- package/dist/bundle/{sqlite-runtime-P6BBDX2H.js → sqlite-runtime-7YF6REKS.js} +9 -9
- package/dist/bundle/{start-AFFA3LKM.js → start-MUFLE6FA.js} +30 -8
- package/dist/bundle/{state-PXKKXR3R.js → state-UC54F3YZ.js} +9 -9
- package/dist/bundle/{store-IVV2BAGZ.js → store-F5FJGWMR.js} +28 -20
- package/dist/bundle/{store-CN6JEUC4.js → store-J53YNAH6.js} +35 -18
- package/dist/bundle/store-maintenance-command-GJVXLBAB.js +58 -0
- package/dist/bundle/tokens-H2EJKGA5.js +101 -0
- package/dist/commands/account.d.ts +4 -0
- package/dist/commands/account.d.ts.map +1 -0
- package/dist/commands/account.js +33 -0
- package/dist/commands/account.js.map +1 -0
- package/dist/profile-lock.d.ts +1 -0
- package/dist/profile-lock.d.ts.map +1 -1
- package/dist/profile-lock.js +1 -0
- package/dist/profile-lock.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +2 -0
- package/dist/program.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/chunk-Z5KC7XBR.js +0 -33
- package/dist/bundle/command-contract-BRW3AP44.js +0 -38
- package/dist/bundle/entry-ET6HGM7A.js +0 -22
- package/dist/bundle/first-run-JG52UZVO.js +0 -30
- package/dist/bundle/first-screen-CIL3GFAA.js +0 -36
- package/dist/bundle/grants-3S4RL3WB.js +0 -104
- package/dist/bundle/oauth-PT4JEHLL.js +0 -22
- package/dist/bundle/prompt-3ZM64DCB.js +0 -17
- package/dist/bundle/server-PFHI35HA.js +0 -69
- package/dist/bundle/store-maintenance-command-MSY2QNEH.js +0 -59
- package/dist/bundle/tokens-P4LPNUFW.js +0 -102
- /package/dist/bundle/{chunk-ZQ3GWKDQ.js → chunk-SW6C6WH5.js} +0 -0
|
@@ -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-6G53ZFUT.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.82.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, {
|
|
@@ -18,12 +18,12 @@ import {
|
|
|
18
18
|
jitCompatCheck,
|
|
19
19
|
refineSqliteCodecs,
|
|
20
20
|
sql
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-EQEGJVO2.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.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/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
|
TIME_LIMIT_FUNCTION,
|
|
5
5
|
beforeTimeLimit
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-36GPBPWM.js";
|
|
7
7
|
import {
|
|
8
8
|
loadVectorExtension,
|
|
9
9
|
vectorExtension
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-5HSRQ53R.js";
|
|
11
|
+
import "./chunk-G4KEKKDE.js";
|
|
12
|
+
import "./chunk-KG2XKEHL.js";
|
|
13
13
|
import "./chunk-Y5E2WNWB.js";
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-IDAK4DDK.js";
|
|
15
|
+
import "./chunk-HW4UPST2.js";
|
|
16
|
+
import "./chunk-BDYWZ7JE.js";
|
|
17
|
+
import "./chunk-EJ4PNHPP.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.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/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 } = {}) => {
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
ownerLogin,
|
|
5
|
+
revokeAll
|
|
6
|
+
} from "./chunk-WWCYTMAV.js";
|
|
7
|
+
import "./chunk-5D4AEUVA.js";
|
|
8
|
+
import "./chunk-4CNTID2X.js";
|
|
9
|
+
import "./chunk-F2VDAG32.js";
|
|
10
|
+
import "./chunk-J62DI53V.js";
|
|
11
|
+
import "./chunk-G4KEKKDE.js";
|
|
12
|
+
import "./chunk-KG2XKEHL.js";
|
|
13
|
+
import "./chunk-Y5E2WNWB.js";
|
|
14
|
+
import "./chunk-IDAK4DDK.js";
|
|
15
|
+
import "./chunk-HW4UPST2.js";
|
|
16
|
+
import "./chunk-BDYWZ7JE.js";
|
|
17
|
+
import "./chunk-EJ4PNHPP.js";
|
|
18
|
+
import "./chunk-ZVVMGPBJ.js";
|
|
19
|
+
export {
|
|
20
|
+
ownerLogin,
|
|
21
|
+
revokeAll
|
|
22
|
+
};
|
|
@@ -6,15 +6,15 @@ 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-USLZE36C.js";
|
|
10
|
+
import "./chunk-36GPBPWM.js";
|
|
11
|
+
import "./chunk-G4KEKKDE.js";
|
|
12
|
+
import "./chunk-KG2XKEHL.js";
|
|
13
13
|
import "./chunk-Y5E2WNWB.js";
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-IDAK4DDK.js";
|
|
15
|
+
import "./chunk-HW4UPST2.js";
|
|
16
|
+
import "./chunk-BDYWZ7JE.js";
|
|
17
|
+
import "./chunk-EJ4PNHPP.js";
|
|
18
18
|
import "./chunk-ZVVMGPBJ.js";
|
|
19
19
|
export {
|
|
20
20
|
CAPABILITY_STATEMENTS,
|
|
@@ -3,12 +3,12 @@ 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-G3NULXOM.js";
|
|
7
|
+
import "./chunk-O2QO5UZC.js";
|
|
8
8
|
import {
|
|
9
9
|
OPENAI_URL
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-EZ6O3ST3.js";
|
|
11
|
+
import "./chunk-JRXFW7HE.js";
|
|
12
12
|
import "./chunk-5DPV7X27.js";
|
|
13
13
|
import {
|
|
14
14
|
OPENAI_TRANSCRIBE_MODEL,
|
|
@@ -16,28 +16,28 @@ import {
|
|
|
16
16
|
filesPresent,
|
|
17
17
|
modelsDirectory,
|
|
18
18
|
vadPath
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import "./chunk-
|
|
19
|
+
} from "./chunk-66AF4FBW.js";
|
|
20
|
+
import "./chunk-DD7EFG6B.js";
|
|
21
21
|
import {
|
|
22
22
|
DEFAULT_RETRY,
|
|
23
23
|
backoffMs
|
|
24
|
-
} from "./chunk-
|
|
25
|
-
import "./chunk-
|
|
24
|
+
} from "./chunk-G4KEKKDE.js";
|
|
25
|
+
import "./chunk-KG2XKEHL.js";
|
|
26
26
|
import "./chunk-Y5E2WNWB.js";
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-IDAK4DDK.js";
|
|
28
|
+
import "./chunk-HW4UPST2.js";
|
|
29
|
+
import "./chunk-BDYWZ7JE.js";
|
|
30
30
|
import {
|
|
31
31
|
CliError
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-EJ4PNHPP.js";
|
|
33
33
|
import {
|
|
34
34
|
__name
|
|
35
35
|
} from "./chunk-ZVVMGPBJ.js";
|
|
36
36
|
|
|
37
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/speech/openai.js
|
|
38
38
|
import { setTimeout as wait } from "node:timers/promises";
|
|
39
39
|
|
|
40
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
40
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/http/index.js
|
|
41
41
|
var parseRetryAfter = /* @__PURE__ */ __name((header, now) => {
|
|
42
42
|
if (!header)
|
|
43
43
|
return void 0;
|
|
@@ -61,7 +61,7 @@ var parseRateLimitReset = /* @__PURE__ */ __name((header, now) => {
|
|
|
61
61
|
}, "parseRateLimitReset");
|
|
62
62
|
var providerWaitMs = /* @__PURE__ */ __name((headers, now) => parseRetryAfter(headers.get("retry-after"), now) ?? parseRateLimitReset(headers.get("x-ratelimit-reset"), now), "providerWaitMs");
|
|
63
63
|
|
|
64
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
64
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/speech/wav.js
|
|
65
65
|
var encodeWav = /* @__PURE__ */ __name((samples, sampleRate = 16e3) => {
|
|
66
66
|
const bytes = Buffer.alloc(44 + samples.length * 2);
|
|
67
67
|
bytes.write("RIFF", 0, "ascii");
|
|
@@ -82,7 +82,7 @@ var encodeWav = /* @__PURE__ */ __name((samples, sampleRate = 16e3) => {
|
|
|
82
82
|
return new Uint8Array(bytes.buffer, bytes.byteOffset, bytes.length);
|
|
83
83
|
}, "encodeWav");
|
|
84
84
|
|
|
85
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
85
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/node_modules/@wirecat/cli-core/dist/speech/openai.js
|
|
86
86
|
var LONGEST_REQUEST_SECONDS = 600;
|
|
87
87
|
var JOINED_SECONDS = 0.2;
|
|
88
88
|
var PAD_SECONDS = 0.2;
|
|
@@ -204,7 +204,7 @@ var piecesOf = /* @__PURE__ */ __name((spans, limit) => {
|
|
|
204
204
|
return pieces;
|
|
205
205
|
}, "piecesOf");
|
|
206
206
|
var openCutter = /* @__PURE__ */ __name(async (vadModel) => {
|
|
207
|
-
const { openSpeechCutter } = await import("./recognize-
|
|
207
|
+
const { openSpeechCutter } = await import("./recognize-SJO6QUDW.js");
|
|
208
208
|
return openSpeechCutter(vadModel);
|
|
209
209
|
}, "openCutter");
|
|
210
210
|
var checkKeywords = /* @__PURE__ */ __name((keywords = []) => {
|
|
@@ -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.614.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_e0755e4bb52a6ea6d9033617574418d1/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";
|