@wirecat/drive-cli 0.64.0 → 0.66.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 +2871 -0
- package/dist/bin/drive.js +2 -2
- package/dist/bin/drive.js.map +1 -1
- package/dist/browse.d.ts +1 -1
- package/dist/browse.d.ts.map +1 -1
- package/dist/browse.js +1 -1
- package/dist/bundle/{all-profiles-BPPT2AK5.js → all-profiles-WCQLIHUG.js} +14 -13
- package/dist/bundle/{anthropic-JW6GOJUD.js → anthropic-5RJMB6O7.js} +32 -16
- package/dist/bundle/{app-server-KAQIOJMZ.js → app-server-3RGYXPKG.js} +72 -58
- package/dist/bundle/{bun-UT7GNTPV.js → bun-L34VEKGG.js} +2 -2
- package/dist/bundle/{bun-sqlite-2OIVV3LS.js → bun-sqlite-H6IAXQXI.js} +12 -8
- package/dist/bundle/chunk-2AF77WMH.js +13 -0
- package/dist/bundle/{chunk-KVW4XNKB.js → chunk-2S3E2HVV.js} +107 -48
- package/dist/bundle/{chunk-IX7NQJLY.js → chunk-3NYH756U.js} +49 -116
- package/dist/bundle/chunk-3QFUDXMQ.js +53 -0
- package/dist/bundle/{chunk-5ZBR55US.js → chunk-3SDJIMZB.js} +1 -1
- package/dist/bundle/{chunk-AHB4OJCI.js → chunk-4UHBJSMI.js} +21735 -27143
- package/dist/bundle/chunk-5HVJK3ZJ.js +101 -0
- package/dist/bundle/{chunk-GSMYXGFR.js → chunk-5K54RZBK.js} +13 -5
- package/dist/bundle/{chunk-LOMW6F2E.js → chunk-5PLINHEY.js} +5403 -4847
- package/dist/bundle/{chunk-J62DI53V.js → chunk-5VDVGDOC.js} +1 -1
- package/dist/bundle/{chunk-66AF4FBW.js → chunk-5XLU4NN6.js} +4 -4
- package/dist/bundle/{chunk-4CNTID2X.js → chunk-6UJCCOZC.js} +4 -4
- package/dist/bundle/{chunk-G4KEKKDE.js → chunk-6X3KUFRQ.js} +60 -29
- package/dist/bundle/{chunk-QEAD2LF4.js → chunk-7EP4AU6A.js} +3 -3
- package/dist/bundle/{chunk-ZRZ4HTCK.js → chunk-7LT2G5BC.js} +171 -174
- package/dist/bundle/{chunk-2W464HAE.js → chunk-7ZGJRVBH.js} +7 -5
- package/dist/bundle/{chunk-FXBHOCJK.js → chunk-ADLS6FVG.js} +1 -1
- package/dist/bundle/{chunk-KG2XKEHL.js → chunk-ALE67WRR.js} +5 -5
- package/dist/bundle/{chunk-ZSZJLJIA.js → chunk-AP4MX247.js} +38 -28
- package/dist/bundle/{chunk-EWGVDFPT.js → chunk-BIJW6AYA.js} +41873 -36466
- package/dist/bundle/{chunk-B7XBIOMR.js → chunk-BQXSE645.js} +16 -16
- package/dist/bundle/{chunk-F2VDAG32.js → chunk-COGWKO2T.js} +3 -3
- package/dist/bundle/{chunk-EZ6O3ST3.js → chunk-D4MIMH2N.js} +12 -6
- package/dist/bundle/{chunk-4YRENUB5.js → chunk-D7KOAPG6.js} +2 -2
- package/dist/bundle/chunk-E2F2XIX6.js +224 -0
- package/dist/bundle/{chunk-36GPBPWM.js → chunk-FA2TNA5X.js} +3 -1
- package/dist/bundle/{chunk-SIOIMO62.js → chunk-FHBTQPA3.js} +69 -63
- package/dist/bundle/{chunk-34BIDKF4.js → chunk-FKKPVPZR.js} +649 -212
- package/dist/bundle/chunk-G4TNKBDX.js +185 -0
- package/dist/bundle/{chunk-2FEZ24DK.js → chunk-GVA3KTCD.js} +20 -20
- package/dist/bundle/chunk-GY4DAJSK.js +167 -0
- package/dist/bundle/{chunk-5OFA5EXE.js → chunk-H7XL6WTW.js} +2 -2
- package/dist/bundle/{chunk-K6BSB53R.js → chunk-HHRJPLFO.js} +1 -1
- package/dist/bundle/{chunk-P7DEGRZA.js → chunk-HPKE2GDP.js} +49 -28
- package/dist/bundle/{chunk-QXCKJUZY.js → chunk-HPSHQVJU.js} +633 -465
- package/dist/bundle/{chunk-BEZJA44H.js → chunk-HQBLJLYH.js} +7 -7
- package/dist/bundle/{chunk-JRXFW7HE.js → chunk-I5R5CMQR.js} +5 -5
- package/dist/bundle/{chunk-EJ4PNHPP.js → chunk-IIHZTV6V.js} +1 -1
- package/dist/bundle/{chunk-G3NULXOM.js → chunk-IRNDYNQX.js} +4 -4
- package/dist/bundle/{chunk-N622LRPM.js → chunk-JCHF7LZT.js} +4 -4
- package/dist/bundle/{chunk-WWCYTMAV.js → chunk-JHMEETXI.js} +2 -2
- package/dist/bundle/{chunk-ZF6GUZCE.js → chunk-JLCR24UM.js} +1 -1
- package/dist/bundle/{chunk-IDAK4DDK.js → chunk-JQXK3M5M.js} +1 -1
- package/dist/bundle/{chunk-KIN6PDFE.js → chunk-KOY5HUBY.js} +14 -5
- package/dist/bundle/{chunk-5HSRQ53R.js → chunk-KRG5X5PH.js} +2 -2
- package/dist/bundle/{chunk-VIJ6ACYB.js → chunk-LVAPSAHF.js} +8 -8
- package/dist/bundle/{chunk-OEVHZOHC.js → chunk-M7543RUJ.js} +50 -18
- package/dist/bundle/{chunk-BZ2ZKILM.js → chunk-MZWXTJ4O.js} +3 -3
- package/dist/bundle/{chunk-EC2XGDKJ.js → chunk-NK4GVFJH.js} +4 -4
- package/dist/bundle/chunk-NYECVHFH.js +10283 -0
- package/dist/bundle/{chunk-HW4UPST2.js → chunk-NYZS2LKF.js} +2 -2
- package/dist/bundle/chunk-O53WLYX3.js +72 -0
- package/dist/bundle/{chunk-IK6KH3RE.js → chunk-OIF4B526.js} +1 -1
- package/dist/bundle/{chunk-UJR272CP.js → chunk-OT7SQQJK.js} +359 -903
- package/dist/bundle/chunk-OZOQLAWK.js +72 -0
- package/dist/bundle/{chunk-VT2UFYPJ.js → chunk-P7HQFII6.js} +22 -15
- package/dist/bundle/{chunk-6G53ZFUT.js → chunk-PJGOQSE5.js} +1 -1
- package/dist/bundle/{chunk-OH3K2E7X.js → chunk-PKM55ZRR.js} +704 -1214
- package/dist/bundle/{chunk-GW3U6OLD.js → chunk-PUMDOCAF.js} +1 -1
- package/dist/bundle/{chunk-EQEGJVO2.js → chunk-QF7VL4C3.js} +1 -1
- package/dist/bundle/{chunk-CPMRM3GQ.js → chunk-QJ57PV55.js} +1941 -662
- package/dist/bundle/{chunk-O2QO5UZC.js → chunk-QSELSDWE.js} +13 -13
- package/dist/bundle/{chunk-BEUAICUD.js → chunk-SOOU5WO6.js} +2 -2
- package/dist/bundle/{chunk-46CD64J2.js → chunk-SZ6JFOL4.js} +269 -64
- package/dist/bundle/{chunk-UD55VB2N.js → chunk-T3ULDA7C.js} +3 -3
- package/dist/bundle/{chunk-E2LBCCTG.js → chunk-TAHISPDE.js} +5 -5
- package/dist/bundle/{chunk-6B37XO6B.js → chunk-TYLEICTX.js} +3 -3
- package/dist/bundle/{chunk-TNV2FXVK.js → chunk-UAKX6DP4.js} +5 -5
- package/dist/bundle/{chunk-VPLFD5RJ.js → chunk-UG3GHFGY.js} +4 -4
- package/dist/bundle/{chunk-B67BLRAI.js → chunk-ULXEW6FT.js} +3 -60
- package/dist/bundle/{chunk-C7WBNOYW.js → chunk-UNTIVT47.js} +26 -2
- package/dist/bundle/chunk-UQPW42HF.js +18 -0
- package/dist/bundle/{chunk-USLZE36C.js → chunk-V2WXTILT.js} +6 -6
- package/dist/bundle/{chunk-BDYWZ7JE.js → chunk-VQKNKJYL.js} +46 -7
- package/dist/bundle/{chunk-XPXKD63J.js → chunk-VR3YKXHL.js} +93 -31
- package/dist/bundle/{chunk-UIEA6FIV.js → chunk-VUUPFDRU.js} +27 -28
- package/dist/bundle/{chunk-KE4XPPRQ.js → chunk-WYTYHUFH.js} +1750 -138
- package/dist/bundle/{chunk-PBMSBCVB.js → chunk-XLGDNI4S.js} +1 -1
- package/dist/bundle/{chunk-3J5KAFNA.js → chunk-XVZNFA2P.js} +4935 -3623
- package/dist/bundle/chunk-Y5U4HIZS.js +71 -0
- package/dist/bundle/chunk-YTIPTHEE.js +47 -0
- package/dist/bundle/cli-KW6QQVS5.js +1101 -0
- package/dist/bundle/command-contract-CE543JBN.js +41 -0
- package/dist/bundle/command-server-entry-OC4E4DED.js +171 -0
- package/dist/bundle/{decode-HTOQ6S3V.js → decode-AH5ZLLDK.js} +8 -8
- package/dist/bundle/{dispatch-SH5SP6LA.js → dispatch-CDWZZ54Q.js} +9 -9
- package/dist/bundle/drive.js +13 -13
- package/dist/bundle/{echarts-KFHB6SLX.js → echarts-VC7MTXWY.js} +2 -2
- package/dist/bundle/{embed-YATFB2PN.js → embed-EPSQY6QG.js} +9 -9
- package/dist/bundle/{embedder-MQPDFGTJ.js → embedder-TK4U4TJR.js} +12 -12
- package/dist/bundle/entry-3VN23M7M.js +25 -0
- package/dist/bundle/{failure-4FQL4XJI.js → failure-WSVZOPFE.js} +4 -4
- package/dist/bundle/first-run-7ZYJ7EB3.js +30 -0
- package/dist/bundle/first-screen-CZDH7QY3.js +39 -0
- package/dist/bundle/google-OBZMWA7J.js +45 -0
- package/dist/bundle/{google-api-QMFGCXBM.js → google-api-AV4X2JH3.js} +68 -57
- package/dist/bundle/grants-WTRLN4ZI.js +111 -0
- package/dist/bundle/{identity-FYVDK4M2.js → identity-CGHHF7AK.js} +8 -6
- package/dist/bundle/{instructions-D3GF3B7M.js → instructions-24PHDBBE.js} +1 -1
- package/dist/bundle/{login-COFZ2IWP.js → login-XHFESAFM.js} +73 -64
- package/dist/bundle/{mcp-RKJG22KM.js → mcp-M5YCSWJJ.js} +2 -2
- package/dist/bundle/{node-OFICOKX3.js → node-GIDULTV5.js} +2 -2
- package/dist/bundle/{node-KM3CUABH.js → node-P4E63KXA.js} +9 -9
- package/dist/bundle/{node-sqlite-DNBTDOXD.js → node-sqlite-LINBOAWK.js} +13 -9
- package/dist/bundle/oauth-JHUX3KE3.js +22 -0
- package/dist/bundle/{open-PTPR2YWX.js → open-RYFKPNCJ.js} +8 -8
- package/dist/bundle/{openai-2KV5LUW4.js → openai-Q7YYUHJF.js} +28 -42
- package/dist/bundle/{process-EAW6NST2.js → process-VPIZTIJR.js} +1 -1
- package/dist/bundle/{program-6UV5Q5YN.js → program-IUXFRBZA.js} +419 -604
- package/dist/bundle/{prompt-634TPMJK.js → prompt-LF4KX3XL.js} +8 -8
- package/dist/bundle/{reasons-DDWCEYSQ.js → reasons-JPYOU5GV.js} +5 -5
- package/dist/bundle/{recognize-SJO6QUDW.js → recognize-KEWTJXFH.js} +7 -7
- package/dist/bundle/{remote-6JXZITKF.js → remote-HGGLB76S.js} +13 -10
- package/dist/bundle/{rerank-MD5VOPQ6.js → rerank-TDUKETFT.js} +10 -10
- package/dist/bundle/{serve-LZTROA2M.js → serve-XFYMKW5W.js} +12 -12
- package/dist/bundle/server-BDEV3CZJ.js +74 -0
- package/dist/bundle/{server-NSA3UAFY.js → server-PXIPSGFP.js} +48 -44
- package/dist/bundle/{services-F5A6XQCV.js → services-2BOCGMJU.js} +111 -41
- package/dist/bundle/{sqlite-runtime-7YF6REKS.js → sqlite-runtime-R7M5XUMW.js} +9 -9
- package/dist/bundle/{start-MUFLE6FA.js → start-YRLT4MQZ.js} +7 -7
- package/dist/bundle/{state-UC54F3YZ.js → state-NZ7WRJWH.js} +9 -9
- package/dist/bundle/{store-F5FJGWMR.js → store-7LCVDO7G.js} +63 -28
- package/dist/bundle/{store-J53YNAH6.js → store-ICDGPSEN.js} +27 -18
- package/dist/bundle/store-maintenance-command-SJPLY6IH.js +65 -0
- package/dist/bundle/tokens-FGTBE7VW.js +111 -0
- package/dist/commands/config.d.ts.map +1 -1
- package/dist/commands/config.js +6 -5
- package/dist/commands/config.js.map +1 -1
- package/dist/commands/context.d.ts +4 -2
- package/dist/commands/context.d.ts.map +1 -1
- package/dist/commands/context.js.map +1 -1
- package/dist/commands/discovery.d.ts +0 -1
- package/dist/commands/discovery.d.ts.map +1 -1
- package/dist/commands/discovery.js +6 -26
- package/dist/commands/discovery.js.map +1 -1
- package/dist/commands/documents.d.ts +2 -0
- package/dist/commands/documents.d.ts.map +1 -1
- package/dist/commands/documents.js +39 -3
- package/dist/commands/documents.js.map +1 -1
- package/dist/commands/knowledge.d.ts.map +1 -1
- package/dist/commands/knowledge.js +7 -6
- package/dist/commands/knowledge.js.map +1 -1
- package/dist/commands/search.d.ts.map +1 -1
- package/dist/commands/search.js +11 -8
- package/dist/commands/search.js.map +1 -1
- package/dist/config.d.ts +14 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +35 -4
- package/dist/config.js.map +1 -1
- package/dist/contract-overrides.d.ts +16 -4
- package/dist/contract-overrides.d.ts.map +1 -1
- package/dist/contract-overrides.js +86 -410
- package/dist/contract-overrides.js.map +1 -1
- package/dist/documents-add.d.ts +49 -0
- package/dist/documents-add.d.ts.map +1 -0
- package/dist/documents-add.js +122 -0
- package/dist/documents-add.js.map +1 -0
- package/dist/errors.d.ts +1 -0
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +13 -1
- package/dist/errors.js.map +1 -1
- package/dist/google-api.d.ts.map +1 -1
- package/dist/google-api.js +4 -1
- package/dist/google-api.js.map +1 -1
- package/dist/identity.d.ts +4 -0
- package/dist/identity.d.ts.map +1 -1
- package/dist/identity.js +22 -0
- package/dist/identity.js.map +1 -1
- package/dist/knowledge.d.ts +1 -1
- package/dist/knowledge.d.ts.map +1 -1
- package/dist/knowledge.js +17 -19
- package/dist/knowledge.js.map +1 -1
- package/dist/login.d.ts.map +1 -1
- package/dist/login.js +2 -2
- package/dist/login.js.map +1 -1
- package/dist/model.d.ts +3 -0
- package/dist/model.d.ts.map +1 -1
- package/dist/model.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +30 -21
- package/dist/program.js.map +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +25 -1
- package/dist/reasons.js.map +1 -1
- package/dist/store-transition.js +2 -2
- package/dist/store-transition.js.map +1 -1
- package/dist/store.d.ts.map +1 -1
- package/dist/store.js +27 -7
- package/dist/store.js.map +1 -1
- package/dist/tokens.d.ts +9 -2
- package/dist/tokens.d.ts.map +1 -1
- package/dist/tokens.js +18 -15
- package/dist/tokens.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/wcat.d.ts +3 -0
- package/dist/wcat.d.ts.map +1 -0
- package/dist/wcat.js +4 -0
- package/dist/wcat.js.map +1 -0
- package/package.json +8 -8
- package/dist/bundle/chunk-3NULZGQU.js +0 -27
- package/dist/bundle/chunk-DD7EFG6B.js +0 -35
- package/dist/bundle/chunk-M73NNJ3X.js +0 -26
- package/dist/bundle/chunk-SBZB7HMU.js +0 -1055
- package/dist/bundle/command-contract-H5OYJOPF.js +0 -38
- package/dist/bundle/dist-PY3MVR3G.js +0 -21
- package/dist/bundle/entry-YZBB647C.js +0 -22
- package/dist/bundle/first-run-5JT3UQZB.js +0 -30
- package/dist/bundle/first-screen-BEMDEWO7.js +0 -36
- package/dist/bundle/google-DVADVICN.js +0 -36
- package/dist/bundle/grants-WKB2E4TA.js +0 -103
- package/dist/bundle/oauth-PDQHWFBF.js +0 -22
- package/dist/bundle/server-GT7X666D.js +0 -69
- package/dist/bundle/store-maintenance-command-GJVXLBAB.js +0 -58
- package/dist/bundle/tokens-H2EJKGA5.js +0 -101
- package/dist/bundle/{chunk-SW6C6WH5.js → chunk-HVJJWJYQ.js} +0 -0
- package/dist/bundle/{mdast-util-from-markdown-FXEPSNER.js → mdast-util-from-markdown-CE73EWJ2.js} +3 -3
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
SCHEMA_DIALECT,
|
|
5
|
+
commandContract,
|
|
6
|
+
commandPathOf,
|
|
7
|
+
findCommand,
|
|
8
|
+
outputOf
|
|
9
|
+
} from "./chunk-UAKX6DP4.js";
|
|
10
|
+
import "./chunk-5PLINHEY.js";
|
|
11
|
+
import "./chunk-P7HQFII6.js";
|
|
12
|
+
import "./chunk-PKM55ZRR.js";
|
|
13
|
+
import "./chunk-5HVJK3ZJ.js";
|
|
14
|
+
import "./chunk-UG3GHFGY.js";
|
|
15
|
+
import "./chunk-Y5U4HIZS.js";
|
|
16
|
+
import "./chunk-5VDVGDOC.js";
|
|
17
|
+
import "./chunk-GY4DAJSK.js";
|
|
18
|
+
import "./chunk-MZWXTJ4O.js";
|
|
19
|
+
import "./chunk-5XLU4NN6.js";
|
|
20
|
+
import "./chunk-QJ57PV55.js";
|
|
21
|
+
import "./chunk-GVA3KTCD.js";
|
|
22
|
+
import "./chunk-ULXEW6FT.js";
|
|
23
|
+
import "./chunk-O53WLYX3.js";
|
|
24
|
+
import "./chunk-HQBLJLYH.js";
|
|
25
|
+
import "./chunk-HVJJWJYQ.js";
|
|
26
|
+
import "./chunk-3QFUDXMQ.js";
|
|
27
|
+
import "./chunk-6X3KUFRQ.js";
|
|
28
|
+
import "./chunk-ALE67WRR.js";
|
|
29
|
+
import "./chunk-Y5E2WNWB.js";
|
|
30
|
+
import "./chunk-JQXK3M5M.js";
|
|
31
|
+
import "./chunk-NYZS2LKF.js";
|
|
32
|
+
import "./chunk-VQKNKJYL.js";
|
|
33
|
+
import "./chunk-IIHZTV6V.js";
|
|
34
|
+
import "./chunk-ZVVMGPBJ.js";
|
|
35
|
+
export {
|
|
36
|
+
SCHEMA_DIALECT,
|
|
37
|
+
commandContract,
|
|
38
|
+
commandPathOf,
|
|
39
|
+
findCommand,
|
|
40
|
+
outputOf
|
|
41
|
+
};
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
COMMAND_SERVER_CONCURRENT,
|
|
5
|
+
enterCommandServer,
|
|
6
|
+
serveCommands
|
|
7
|
+
} from "./chunk-G4TNKBDX.js";
|
|
8
|
+
import "./chunk-UQPW42HF.js";
|
|
9
|
+
import "./chunk-2AF77WMH.js";
|
|
10
|
+
import {
|
|
11
|
+
ensureSqlite
|
|
12
|
+
} from "./chunk-SOOU5WO6.js";
|
|
13
|
+
import "./chunk-UAKX6DP4.js";
|
|
14
|
+
import {
|
|
15
|
+
commandServerRequest,
|
|
16
|
+
exitCodeSet,
|
|
17
|
+
inCommandServerRequest
|
|
18
|
+
} from "./chunk-5PLINHEY.js";
|
|
19
|
+
import "./chunk-P7HQFII6.js";
|
|
20
|
+
import "./chunk-PKM55ZRR.js";
|
|
21
|
+
import "./chunk-5HVJK3ZJ.js";
|
|
22
|
+
import "./chunk-UG3GHFGY.js";
|
|
23
|
+
import "./chunk-Y5U4HIZS.js";
|
|
24
|
+
import "./chunk-5VDVGDOC.js";
|
|
25
|
+
import "./chunk-GY4DAJSK.js";
|
|
26
|
+
import "./chunk-MZWXTJ4O.js";
|
|
27
|
+
import "./chunk-5XLU4NN6.js";
|
|
28
|
+
import "./chunk-V2WXTILT.js";
|
|
29
|
+
import {
|
|
30
|
+
asOwnProcess
|
|
31
|
+
} from "./chunk-QJ57PV55.js";
|
|
32
|
+
import "./chunk-GVA3KTCD.js";
|
|
33
|
+
import "./chunk-ULXEW6FT.js";
|
|
34
|
+
import "./chunk-O53WLYX3.js";
|
|
35
|
+
import "./chunk-HQBLJLYH.js";
|
|
36
|
+
import "./chunk-HVJJWJYQ.js";
|
|
37
|
+
import "./chunk-FA2TNA5X.js";
|
|
38
|
+
import "./chunk-3QFUDXMQ.js";
|
|
39
|
+
import "./chunk-6X3KUFRQ.js";
|
|
40
|
+
import {
|
|
41
|
+
catchCrashes
|
|
42
|
+
} from "./chunk-ALE67WRR.js";
|
|
43
|
+
import "./chunk-Y5E2WNWB.js";
|
|
44
|
+
import "./chunk-JQXK3M5M.js";
|
|
45
|
+
import "./chunk-NYZS2LKF.js";
|
|
46
|
+
import "./chunk-VQKNKJYL.js";
|
|
47
|
+
import {
|
|
48
|
+
CliError
|
|
49
|
+
} from "./chunk-IIHZTV6V.js";
|
|
50
|
+
import {
|
|
51
|
+
__name
|
|
52
|
+
} from "./chunk-ZVVMGPBJ.js";
|
|
53
|
+
|
|
54
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/cli/command-server-entry.js
|
|
55
|
+
import { PassThrough } from "node:stream";
|
|
56
|
+
var route = /* @__PURE__ */ __name((stream, sink) => {
|
|
57
|
+
const original = stream.write;
|
|
58
|
+
stream.write = ((chunk, encoding, callback) => {
|
|
59
|
+
sink()(typeof chunk === "string" ? Buffer.from(chunk, typeof encoding === "string" ? encoding : "utf8") : Buffer.from(chunk));
|
|
60
|
+
const done = typeof encoding === "function" ? encoding : callback;
|
|
61
|
+
if (done)
|
|
62
|
+
process.nextTick(done);
|
|
63
|
+
return true;
|
|
64
|
+
});
|
|
65
|
+
return () => {
|
|
66
|
+
stream.write = original;
|
|
67
|
+
};
|
|
68
|
+
}, "route");
|
|
69
|
+
var closedStdin = /* @__PURE__ */ __name(() => {
|
|
70
|
+
const stdin = new PassThrough();
|
|
71
|
+
stdin.end();
|
|
72
|
+
return stdin;
|
|
73
|
+
}, "closedStdin");
|
|
74
|
+
var useStdin = /* @__PURE__ */ __name((outside) => Object.defineProperty(process, "stdin", {
|
|
75
|
+
get: /* @__PURE__ */ __name(() => commandServerRequest()?.stdin ?? outside, "get"),
|
|
76
|
+
configurable: true,
|
|
77
|
+
enumerable: true
|
|
78
|
+
}), "useStdin");
|
|
79
|
+
var roomFor = /* @__PURE__ */ __name((runs) => {
|
|
80
|
+
const emitters = [process, process.stdout, process.stderr];
|
|
81
|
+
const before = emitters.map((emitter) => emitter.getMaxListeners());
|
|
82
|
+
for (const emitter of emitters)
|
|
83
|
+
emitter.setMaxListeners(emitter.getMaxListeners() + 2 * runs);
|
|
84
|
+
return () => {
|
|
85
|
+
for (const [at, emitter] of emitters.entries())
|
|
86
|
+
emitter.setMaxListeners(before[at]);
|
|
87
|
+
};
|
|
88
|
+
}, "roomFor");
|
|
89
|
+
var serveEntry = /* @__PURE__ */ __name(async (entry, io, { firstRunAt, commanderExit }) => {
|
|
90
|
+
const release = catchCrashes({
|
|
91
|
+
cli: entry.app.command,
|
|
92
|
+
interactive: false,
|
|
93
|
+
...entry.reasons ? { reasons: entry.reasons } : {},
|
|
94
|
+
target: io.signals
|
|
95
|
+
});
|
|
96
|
+
const stopper = new AbortController();
|
|
97
|
+
const stop = /* @__PURE__ */ __name(() => stopper.abort(new CliError("cancelled", "the command server was stopped", { retryable: false })), "stop");
|
|
98
|
+
const protocol = io.stdout.write.bind(io.stdout);
|
|
99
|
+
const ownStderr = io.stderr.write.bind(io.stderr);
|
|
100
|
+
const toStderr = /* @__PURE__ */ __name((chunk) => {
|
|
101
|
+
ownStderr(chunk);
|
|
102
|
+
}, "toStderr");
|
|
103
|
+
const sink = /* @__PURE__ */ __name((pick) => () => {
|
|
104
|
+
const request = commandServerRequest();
|
|
105
|
+
return request ? (chunk) => pick(request).push(chunk) : toStderr;
|
|
106
|
+
}, "sink");
|
|
107
|
+
const unrouteOut = route(process.stdout, sink((request) => request.stdout));
|
|
108
|
+
const unrouteErr = route(process.stderr, sink((request) => request.stderr));
|
|
109
|
+
const stdin = Object.getOwnPropertyDescriptor(process, "stdin");
|
|
110
|
+
const requests = io.stdin;
|
|
111
|
+
useStdin(closedStdin());
|
|
112
|
+
const unroom = roomFor(COMMAND_SERVER_CONCURRENT);
|
|
113
|
+
io.signals.on("SIGINT", stop).on("SIGTERM", stop);
|
|
114
|
+
io.stdout.on("error", stop);
|
|
115
|
+
const run = /* @__PURE__ */ __name(async (argv, alone) => {
|
|
116
|
+
const request = { stdout: [], stderr: [], stdin: closedStdin(), alone };
|
|
117
|
+
const requestIo = { ...io, argv: [...io.argv.slice(0, 2), ...argv], stdin: request.stdin };
|
|
118
|
+
const context = {
|
|
119
|
+
args: argv,
|
|
120
|
+
env: io.env,
|
|
121
|
+
tty: false,
|
|
122
|
+
signal: stopper.signal,
|
|
123
|
+
atStart: /* @__PURE__ */ __name(async (command) => {
|
|
124
|
+
await enterCommandServer(command, entry.app.command);
|
|
125
|
+
await firstRunAt(entry, requestIo, () => true)(command);
|
|
126
|
+
}, "atStart"),
|
|
127
|
+
ask: /* @__PURE__ */ __name(async () => false, "ask"),
|
|
128
|
+
openBrowser: /* @__PURE__ */ __name(async () => void 0, "openBrowser"),
|
|
129
|
+
outputClosed: /* @__PURE__ */ __name(() => false, "outputClosed"),
|
|
130
|
+
setExitCode: /* @__PURE__ */ __name((code2) => {
|
|
131
|
+
request.exitCode = code2;
|
|
132
|
+
}, "setExitCode")
|
|
133
|
+
};
|
|
134
|
+
const code = await inCommandServerRequest(request, () => asOwnProcess(async () => {
|
|
135
|
+
try {
|
|
136
|
+
const returned = await entry.run(context);
|
|
137
|
+
return typeof returned === "number" ? returned : exitCodeSet() ?? 0;
|
|
138
|
+
} catch (error) {
|
|
139
|
+
return commanderExit(error) ?? entry.fail(error, context);
|
|
140
|
+
}
|
|
141
|
+
}));
|
|
142
|
+
const text = /* @__PURE__ */ __name((chunks) => Buffer.concat(chunks).toString("utf8"), "text");
|
|
143
|
+
return { code, stdout: text(request.stdout), stderr: text(request.stderr) };
|
|
144
|
+
}, "run");
|
|
145
|
+
try {
|
|
146
|
+
if (entry.sqlite)
|
|
147
|
+
await ensureSqlite();
|
|
148
|
+
await serveCommands({
|
|
149
|
+
input: requests,
|
|
150
|
+
write: /* @__PURE__ */ __name((line) => new Promise((resolve) => protocol(line) ? resolve() : io.stdout.once("drain", resolve)), "write"),
|
|
151
|
+
run,
|
|
152
|
+
cli: entry.app.command,
|
|
153
|
+
concurrent: COMMAND_SERVER_CONCURRENT,
|
|
154
|
+
version: entry.app.version,
|
|
155
|
+
signal: stopper.signal
|
|
156
|
+
});
|
|
157
|
+
io.setExitCode(0);
|
|
158
|
+
} finally {
|
|
159
|
+
io.signals.off("SIGINT", stop).off("SIGTERM", stop);
|
|
160
|
+
unroom();
|
|
161
|
+
unrouteOut();
|
|
162
|
+
unrouteErr();
|
|
163
|
+
if (stdin)
|
|
164
|
+
Object.defineProperty(process, "stdin", stdin);
|
|
165
|
+
requests.destroy?.();
|
|
166
|
+
release();
|
|
167
|
+
}
|
|
168
|
+
}, "serveEntry");
|
|
169
|
+
export {
|
|
170
|
+
serveEntry
|
|
171
|
+
};
|
|
@@ -3,23 +3,23 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
SAMPLE_RATE,
|
|
5
5
|
decodeOgg
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-IRNDYNQX.js";
|
|
7
|
+
import "./chunk-6X3KUFRQ.js";
|
|
8
|
+
import "./chunk-ALE67WRR.js";
|
|
9
9
|
import {
|
|
10
10
|
importFrom
|
|
11
11
|
} from "./chunk-Y5E2WNWB.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-JQXK3M5M.js";
|
|
13
|
+
import "./chunk-NYZS2LKF.js";
|
|
14
|
+
import "./chunk-VQKNKJYL.js";
|
|
15
15
|
import {
|
|
16
16
|
CliError
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-IIHZTV6V.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.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/speech/decode.js
|
|
23
23
|
import { spawn } from "node:child_process";
|
|
24
24
|
import { mkdtemp, rm, writeFile } from "node:fs/promises";
|
|
25
25
|
import { createRequire } from "node:module";
|
|
@@ -14,23 +14,23 @@ import {
|
|
|
14
14
|
parseDescribe,
|
|
15
15
|
shimFiles,
|
|
16
16
|
writeShim
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-NK4GVFJH.js";
|
|
18
18
|
import "./chunk-Y5E2WNWB.js";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-JQXK3M5M.js";
|
|
20
20
|
import {
|
|
21
21
|
CliError
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-IIHZTV6V.js";
|
|
23
23
|
import {
|
|
24
24
|
__name,
|
|
25
25
|
__toESM
|
|
26
26
|
} from "./chunk-ZVVMGPBJ.js";
|
|
27
27
|
|
|
28
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
28
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/dispatch.js
|
|
29
29
|
var import_cross_spawn2 = __toESM(require_cross_spawn(), 1);
|
|
30
30
|
import { randomUUID } from "node:crypto";
|
|
31
31
|
import { constants } from "node:os";
|
|
32
32
|
|
|
33
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
33
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/path.js
|
|
34
34
|
import { readdirSync, statSync } from "node:fs";
|
|
35
35
|
import { join } from "node:path";
|
|
36
36
|
var variable = /* @__PURE__ */ __name((env, name, platform) => platform === "win32" ? Object.entries(env).find(([key]) => key.toUpperCase() === name)?.[1] : env[name], "variable");
|
|
@@ -102,7 +102,7 @@ var findTools = /* @__PURE__ */ __name((search) => {
|
|
|
102
102
|
}, "findTools");
|
|
103
103
|
var isBuiltIn = /* @__PURE__ */ __name((name) => name === "wcat" || BUILT_IN_COMMANDS.includes(name), "isBuiltIn");
|
|
104
104
|
|
|
105
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
105
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/probe.js
|
|
106
106
|
var import_cross_spawn = __toESM(require_cross_spawn(), 1);
|
|
107
107
|
import { readFileSync } from "node:fs";
|
|
108
108
|
var probeDescribe = /* @__PURE__ */ __name((path, { env, timeoutMs }) => new Promise((resolve) => {
|
|
@@ -150,7 +150,7 @@ var baseVersion = /* @__PURE__ */ __name(() => {
|
|
|
150
150
|
}
|
|
151
151
|
}, "baseVersion");
|
|
152
152
|
|
|
153
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
153
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/shortcuts.js
|
|
154
154
|
import { closeSync, openSync, readSync, realpathSync, rmSync } from "node:fs";
|
|
155
155
|
import { basename, dirname } from "node:path";
|
|
156
156
|
var WIRECAT_PACKAGE = /node_modules[\\/]+@wirecat[\\/]/;
|
|
@@ -242,7 +242,7 @@ var removeShortcuts = /* @__PURE__ */ __name((search, names) => listShortcuts(se
|
|
|
242
242
|
return { ...statusOf(shortcut.name, shortcut.program, search), changed: true };
|
|
243
243
|
}), "removeShortcuts");
|
|
244
244
|
|
|
245
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
245
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/dispatch.js
|
|
246
246
|
var DEFAULT_DESCRIBE_TIMEOUT_MS = 2e3;
|
|
247
247
|
var listTools = /* @__PURE__ */ __name(async (context) => {
|
|
248
248
|
const installed = installedPrograms(context);
|
|
@@ -339,7 +339,7 @@ var runTool = /* @__PURE__ */ __name((path, args, context) => new Promise((resol
|
|
|
339
339
|
});
|
|
340
340
|
}), "runTool");
|
|
341
341
|
var fail = /* @__PURE__ */ __name(async (error, json, context) => {
|
|
342
|
-
const { errorObjectOf, exitCodeOfError, renderError } = await import("./failure-
|
|
342
|
+
const { errorObjectOf, exitCodeOfError, renderError } = await import("./failure-WSVZOPFE.js");
|
|
343
343
|
const object = errorObjectOf(error);
|
|
344
344
|
context.stderr.write(`${renderError(object, { cli: "wcat", interactive: !json })}
|
|
345
345
|
`);
|
package/dist/bundle/drive.js
CHANGED
|
@@ -3,17 +3,17 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
3
3
|
const require = __bundleRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
processStreams
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-6X3KUFRQ.js";
|
|
7
7
|
import {
|
|
8
8
|
errorObjectOf,
|
|
9
9
|
exitCodeOfError,
|
|
10
10
|
renderError
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-ALE67WRR.js";
|
|
12
12
|
import "./chunk-Y5E2WNWB.js";
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-JQXK3M5M.js";
|
|
14
|
+
import "./chunk-NYZS2LKF.js";
|
|
15
|
+
import "./chunk-VQKNKJYL.js";
|
|
16
|
+
import "./chunk-IIHZTV6V.js";
|
|
17
17
|
import {
|
|
18
18
|
__name
|
|
19
19
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -21,29 +21,29 @@ import {
|
|
|
21
21
|
// dist/bin/drive.js
|
|
22
22
|
import { enableCompileCache } from "node:module";
|
|
23
23
|
enableCompileCache();
|
|
24
|
-
var [{ wcatStart }, { DRIVE_APP }] = await Promise.all([
|
|
25
|
-
import("./start-
|
|
26
|
-
import("./identity-
|
|
24
|
+
var [{ wcatStart }, { DESKTOP, DRIVE_APP }] = await Promise.all([
|
|
25
|
+
import("./start-YRLT4MQZ.js"),
|
|
26
|
+
import("./identity-CGHHF7AK.js")
|
|
27
27
|
]);
|
|
28
28
|
var wcat = await wcatStart({
|
|
29
29
|
command: DRIVE_APP.command,
|
|
30
30
|
version: DRIVE_APP.version,
|
|
31
31
|
description: DRIVE_APP.description,
|
|
32
|
-
docs:
|
|
32
|
+
docs: DESKTOP.docs
|
|
33
33
|
});
|
|
34
34
|
if (wcat.code !== void 0) {
|
|
35
35
|
process.exitCode = wcat.code;
|
|
36
36
|
} else {
|
|
37
37
|
const [{ startCli }, { REASONS }, { interactiveOf }] = await Promise.all([
|
|
38
|
-
import("./entry-
|
|
39
|
-
import("./reasons-
|
|
38
|
+
import("./entry-3VN23M7M.js"),
|
|
39
|
+
import("./reasons-JPYOU5GV.js"),
|
|
40
40
|
import("./terminal-DHJ4D3BC.js")
|
|
41
41
|
]);
|
|
42
42
|
await startCli({
|
|
43
43
|
app: DRIVE_APP,
|
|
44
44
|
interactive: interactiveOf,
|
|
45
45
|
reasons: REASONS,
|
|
46
|
-
run: /* @__PURE__ */ __name(async (entry) => (await import("./program-
|
|
46
|
+
run: /* @__PURE__ */ __name(async (entry) => (await import("./program-IUXFRBZA.js")).run(entry.args, {
|
|
47
47
|
signal: entry.signal,
|
|
48
48
|
ask: /* @__PURE__ */ __name((key) => entry.ask(`Allow ${key}?`), "ask"),
|
|
49
49
|
openBrowser: /* @__PURE__ */ __name((url, command) => entry.openBrowser(url, void 0, command), "openBrowser")
|
|
@@ -42399,7 +42399,7 @@ function install11(registers) {
|
|
|
42399
42399
|
}
|
|
42400
42400
|
__name(install11, "install");
|
|
42401
42401
|
|
|
42402
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42402
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/charts/echarts-option.js
|
|
42403
42403
|
var echartsOption = /* @__PURE__ */ __name((chart) => ({
|
|
42404
42404
|
animation: false,
|
|
42405
42405
|
backgroundColor: "#111827",
|
|
@@ -42447,7 +42447,7 @@ var echartsOption = /* @__PURE__ */ __name((chart) => ({
|
|
|
42447
42447
|
} : {}
|
|
42448
42448
|
}), "echartsOption");
|
|
42449
42449
|
|
|
42450
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42450
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/charts/echarts.js
|
|
42451
42451
|
use([install2, install, install6, install5, install10, install7, install11]);
|
|
42452
42452
|
var echartsRenderer = {
|
|
42453
42453
|
render: /* @__PURE__ */ __name(async (chart, size) => {
|
|
@@ -13,17 +13,17 @@ import {
|
|
|
13
13
|
truncated,
|
|
14
14
|
unit,
|
|
15
15
|
warmEmbedders
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-I5R5CMQR.js";
|
|
17
17
|
import "./chunk-5DPV7X27.js";
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-5XLU4NN6.js";
|
|
19
|
+
import "./chunk-3QFUDXMQ.js";
|
|
20
|
+
import "./chunk-6X3KUFRQ.js";
|
|
21
|
+
import "./chunk-ALE67WRR.js";
|
|
22
22
|
import "./chunk-Y5E2WNWB.js";
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-JQXK3M5M.js";
|
|
24
|
+
import "./chunk-NYZS2LKF.js";
|
|
25
|
+
import "./chunk-VQKNKJYL.js";
|
|
26
|
+
import "./chunk-IIHZTV6V.js";
|
|
27
27
|
import "./chunk-ZVVMGPBJ.js";
|
|
28
28
|
export {
|
|
29
29
|
WARM_IDLE_MS,
|
|
@@ -4,30 +4,30 @@ import {
|
|
|
4
4
|
openSession,
|
|
5
5
|
truncated,
|
|
6
6
|
unit
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-I5R5CMQR.js";
|
|
8
8
|
import "./chunk-5DPV7X27.js";
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-5XLU4NN6.js";
|
|
10
|
+
import "./chunk-3QFUDXMQ.js";
|
|
11
|
+
import "./chunk-6X3KUFRQ.js";
|
|
12
|
+
import "./chunk-ALE67WRR.js";
|
|
13
13
|
import {
|
|
14
14
|
importFrom
|
|
15
15
|
} from "./chunk-Y5E2WNWB.js";
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-JQXK3M5M.js";
|
|
17
|
+
import "./chunk-NYZS2LKF.js";
|
|
18
|
+
import "./chunk-VQKNKJYL.js";
|
|
19
19
|
import {
|
|
20
20
|
CliError
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-IIHZTV6V.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.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/images/picture/embedder.js
|
|
27
27
|
import { readFileSync } from "node:fs";
|
|
28
28
|
import { join } from "node:path";
|
|
29
29
|
|
|
30
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/images/picture/preprocess.js
|
|
31
31
|
var SIZE = 224;
|
|
32
32
|
var MEAN = [0.48145466, 0.4578275, 0.40821073];
|
|
33
33
|
var STD = [0.26862954, 0.26130258, 0.27577711];
|
|
@@ -66,7 +66,7 @@ var preprocess = /* @__PURE__ */ __name(async (bytes, load = importCanvas) => {
|
|
|
66
66
|
return pixels;
|
|
67
67
|
}, "preprocess");
|
|
68
68
|
|
|
69
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
69
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/images/picture/embedder.js
|
|
70
70
|
var openPictureEmbedder = /* @__PURE__ */ __name(async (model, directory, { threads = 4, canvas } = {}) => {
|
|
71
71
|
const { Tokenizer } = await importFrom(new URL("images/picture/embedder.js", import.meta.resolve("@wirecat/cli-core")).href, "@huggingface/tokenizers");
|
|
72
72
|
const path = /* @__PURE__ */ __name((name) => join(directory, model.id, name), "path");
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
firstRunAt,
|
|
5
|
+
openBrowser,
|
|
6
|
+
startCli
|
|
7
|
+
} from "./chunk-AP4MX247.js";
|
|
8
|
+
import "./chunk-2AF77WMH.js";
|
|
9
|
+
import "./chunk-SOOU5WO6.js";
|
|
10
|
+
import "./chunk-Y5U4HIZS.js";
|
|
11
|
+
import "./chunk-V2WXTILT.js";
|
|
12
|
+
import "./chunk-FA2TNA5X.js";
|
|
13
|
+
import "./chunk-6X3KUFRQ.js";
|
|
14
|
+
import "./chunk-ALE67WRR.js";
|
|
15
|
+
import "./chunk-Y5E2WNWB.js";
|
|
16
|
+
import "./chunk-JQXK3M5M.js";
|
|
17
|
+
import "./chunk-NYZS2LKF.js";
|
|
18
|
+
import "./chunk-VQKNKJYL.js";
|
|
19
|
+
import "./chunk-IIHZTV6V.js";
|
|
20
|
+
import "./chunk-ZVVMGPBJ.js";
|
|
21
|
+
export {
|
|
22
|
+
firstRunAt,
|
|
23
|
+
openBrowser,
|
|
24
|
+
startCli
|
|
25
|
+
};
|
|
@@ -9,10 +9,10 @@ import {
|
|
|
9
9
|
mcpErrorResult,
|
|
10
10
|
renderError,
|
|
11
11
|
retryOf
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-ALE67WRR.js";
|
|
13
|
+
import "./chunk-JQXK3M5M.js";
|
|
14
|
+
import "./chunk-VQKNKJYL.js";
|
|
15
|
+
import "./chunk-IIHZTV6V.js";
|
|
16
16
|
import "./chunk-ZVVMGPBJ.js";
|
|
17
17
|
export {
|
|
18
18
|
catchCrashes,
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
askSetupQuestions,
|
|
5
|
+
asksAtStart,
|
|
6
|
+
setupAtStart,
|
|
7
|
+
systemLanguage
|
|
8
|
+
} from "./chunk-BQXSE645.js";
|
|
9
|
+
import "./chunk-JCHF7LZT.js";
|
|
10
|
+
import "./chunk-PJGOQSE5.js";
|
|
11
|
+
import "./chunk-UG3GHFGY.js";
|
|
12
|
+
import "./chunk-LVAPSAHF.js";
|
|
13
|
+
import "./chunk-HQBLJLYH.js";
|
|
14
|
+
import "./chunk-D72URWJE.js";
|
|
15
|
+
import "./chunk-OIF4B526.js";
|
|
16
|
+
import "./chunk-3QFUDXMQ.js";
|
|
17
|
+
import "./chunk-6X3KUFRQ.js";
|
|
18
|
+
import "./chunk-ALE67WRR.js";
|
|
19
|
+
import "./chunk-Y5E2WNWB.js";
|
|
20
|
+
import "./chunk-JQXK3M5M.js";
|
|
21
|
+
import "./chunk-NYZS2LKF.js";
|
|
22
|
+
import "./chunk-VQKNKJYL.js";
|
|
23
|
+
import "./chunk-IIHZTV6V.js";
|
|
24
|
+
import "./chunk-ZVVMGPBJ.js";
|
|
25
|
+
export {
|
|
26
|
+
askSetupQuestions,
|
|
27
|
+
asksAtStart,
|
|
28
|
+
setupAtStart,
|
|
29
|
+
systemLanguage
|
|
30
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
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-3NYH756U.js";
|
|
8
|
+
import "./chunk-HTQTIKWP.js";
|
|
9
|
+
import "./chunk-UAKX6DP4.js";
|
|
10
|
+
import "./chunk-5PLINHEY.js";
|
|
11
|
+
import "./chunk-P7HQFII6.js";
|
|
12
|
+
import "./chunk-PKM55ZRR.js";
|
|
13
|
+
import "./chunk-5HVJK3ZJ.js";
|
|
14
|
+
import "./chunk-UG3GHFGY.js";
|
|
15
|
+
import "./chunk-Y5U4HIZS.js";
|
|
16
|
+
import "./chunk-5VDVGDOC.js";
|
|
17
|
+
import "./chunk-GY4DAJSK.js";
|
|
18
|
+
import "./chunk-MZWXTJ4O.js";
|
|
19
|
+
import "./chunk-5XLU4NN6.js";
|
|
20
|
+
import "./chunk-QJ57PV55.js";
|
|
21
|
+
import "./chunk-GVA3KTCD.js";
|
|
22
|
+
import "./chunk-ULXEW6FT.js";
|
|
23
|
+
import "./chunk-O53WLYX3.js";
|
|
24
|
+
import "./chunk-HQBLJLYH.js";
|
|
25
|
+
import "./chunk-HVJJWJYQ.js";
|
|
26
|
+
import "./chunk-3QFUDXMQ.js";
|
|
27
|
+
import "./chunk-6X3KUFRQ.js";
|
|
28
|
+
import "./chunk-ALE67WRR.js";
|
|
29
|
+
import "./chunk-Y5E2WNWB.js";
|
|
30
|
+
import "./chunk-JQXK3M5M.js";
|
|
31
|
+
import "./chunk-NYZS2LKF.js";
|
|
32
|
+
import "./chunk-VQKNKJYL.js";
|
|
33
|
+
import "./chunk-IIHZTV6V.js";
|
|
34
|
+
import "./chunk-ZVVMGPBJ.js";
|
|
35
|
+
export {
|
|
36
|
+
WIRECAT_TOOLS,
|
|
37
|
+
firstScreen,
|
|
38
|
+
installHelp
|
|
39
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
googleSource,
|
|
5
|
+
metadataOf,
|
|
6
|
+
readFile,
|
|
7
|
+
userOf
|
|
8
|
+
} from "./chunk-TAHISPDE.js";
|
|
9
|
+
import {
|
|
10
|
+
MAX_ENTRIES,
|
|
11
|
+
supported,
|
|
12
|
+
tooManyEntries
|
|
13
|
+
} from "./chunk-XLGDNI4S.js";
|
|
14
|
+
import "./chunk-VUUPFDRU.js";
|
|
15
|
+
import "./chunk-5K54RZBK.js";
|
|
16
|
+
import "./chunk-E2F2XIX6.js";
|
|
17
|
+
import "./chunk-WYTYHUFH.js";
|
|
18
|
+
import "./chunk-KOY5HUBY.js";
|
|
19
|
+
import "./chunk-OZOQLAWK.js";
|
|
20
|
+
import "./chunk-5DPV7X27.js";
|
|
21
|
+
import "./chunk-5HVJK3ZJ.js";
|
|
22
|
+
import "./chunk-Y5U4HIZS.js";
|
|
23
|
+
import "./chunk-GY4DAJSK.js";
|
|
24
|
+
import "./chunk-T3ULDA7C.js";
|
|
25
|
+
import "./chunk-GVA3KTCD.js";
|
|
26
|
+
import "./chunk-O53WLYX3.js";
|
|
27
|
+
import "./chunk-HQBLJLYH.js";
|
|
28
|
+
import "./chunk-3QFUDXMQ.js";
|
|
29
|
+
import "./chunk-6X3KUFRQ.js";
|
|
30
|
+
import "./chunk-ALE67WRR.js";
|
|
31
|
+
import "./chunk-Y5E2WNWB.js";
|
|
32
|
+
import "./chunk-JQXK3M5M.js";
|
|
33
|
+
import "./chunk-NYZS2LKF.js";
|
|
34
|
+
import "./chunk-VQKNKJYL.js";
|
|
35
|
+
import "./chunk-IIHZTV6V.js";
|
|
36
|
+
import "./chunk-ZVVMGPBJ.js";
|
|
37
|
+
export {
|
|
38
|
+
MAX_ENTRIES,
|
|
39
|
+
googleSource,
|
|
40
|
+
metadataOf,
|
|
41
|
+
readFile,
|
|
42
|
+
supported,
|
|
43
|
+
tooManyEntries,
|
|
44
|
+
userOf
|
|
45
|
+
};
|