@wirecat/drive-cli 0.69.0 → 0.71.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 +3 -2
- package/contracts/wirecat.json +14 -13
- package/dist/age.d.ts +0 -36
- package/dist/age.d.ts.map +1 -1
- package/dist/age.js +0 -22
- package/dist/age.js.map +1 -1
- package/dist/bin/drive.js +2 -2
- package/dist/bundle/{all-profiles-B4A737YW.js → all-profiles-3QJG2NAN.js} +13 -13
- package/dist/bundle/{anthropic-RZGPDESM.js → anthropic-PSWTEU6G.js} +8 -8
- package/dist/bundle/{app-server-OWEW7DY5.js → app-server-PVTA6ABR.js} +66 -58
- package/dist/bundle/{bun-V5QLYBZU.js → bun-LU5LP3JI.js} +2 -2
- package/dist/bundle/{bun-sqlite-KHLHXXGH.js → bun-sqlite-PYMKLBRU.js} +9 -9
- package/dist/bundle/{chunk-CAQ5GW3A.js → chunk-22QQUKWA.js} +1 -1
- package/dist/bundle/{chunk-3YKAFLXY.js → chunk-26DHFMGZ.js} +2 -2
- package/dist/bundle/{chunk-Y2QVNVHK.js → chunk-2BVVU7GG.js} +1 -1
- package/dist/bundle/{chunk-7JKECODO.js → chunk-2LHAVY4U.js} +1 -11
- package/dist/bundle/{chunk-HEBZCKMU.js → chunk-2PUNKUYJ.js} +4389 -4709
- package/dist/bundle/chunk-2UUWXPOB.js +31 -0
- package/dist/bundle/{chunk-KUQDBWPU.js → chunk-35SCQ4VI.js} +31 -32
- package/dist/bundle/{chunk-O6PD7RZY.js → chunk-3EBBLKIT.js} +4 -4
- package/dist/bundle/{chunk-PV3AWPHR.js → chunk-3N2OFXB5.js} +5 -5
- package/dist/bundle/{chunk-SY2HLH5R.js → chunk-3UGYFXH6.js} +82 -25
- package/dist/bundle/{chunk-OUM4ZO53.js → chunk-4HWJOU7N.js} +1 -1
- package/dist/bundle/{chunk-6D44YQ5X.js → chunk-4PA4DHYV.js} +6 -6
- package/dist/bundle/{chunk-EA2OB75T.js → chunk-4QNW4NK6.js} +1 -1
- package/dist/bundle/{chunk-GK6KXBL6.js → chunk-6SJOTNHF.js} +4 -4
- package/dist/bundle/{chunk-NVDR72GP.js → chunk-6TNNT2MQ.js} +250 -174
- package/dist/bundle/{chunk-4YECZ6CN.js → chunk-6W763DZN.js} +12 -12
- package/dist/bundle/{chunk-IQ2QU2X6.js → chunk-6XFIITOG.js} +1024 -598
- package/dist/bundle/{chunk-AD7VI3XU.js → chunk-72C4YOCH.js} +7 -7
- package/dist/bundle/{chunk-6EL5AVXX.js → chunk-7PDHGZN4.js} +4 -4
- package/dist/bundle/{chunk-22SH77TG.js → chunk-ACUAV6VX.js} +64 -64
- package/dist/bundle/{chunk-BBJVV4E2.js → chunk-ASMMG72J.js} +68 -38
- package/dist/bundle/{chunk-XUHQ7DVT.js → chunk-B5KSXHJ7.js} +1 -1
- package/dist/bundle/{chunk-BVVXYZSU.js → chunk-BKSQBBYG.js} +9 -9
- package/dist/bundle/{chunk-5SJZDEIO.js → chunk-CJLVYIOP.js} +21 -21
- package/dist/bundle/chunk-COJSWDNU.js +170 -0
- package/dist/bundle/{chunk-GTDCP5OG.js → chunk-COOOO5B3.js} +4 -4
- package/dist/bundle/{chunk-LUZRVBQR.js → chunk-D5TGYUVU.js} +6 -6
- package/dist/bundle/{chunk-CZ4UEXCE.js → chunk-EOEU3AZN.js} +6 -6
- package/dist/bundle/{chunk-CU6RATZH.js → chunk-FCS26CYQ.js} +4 -4
- package/dist/bundle/{chunk-LRCSDAYK.js → chunk-FJH7DJWK.js} +4 -4
- package/dist/bundle/{chunk-U3RXH6RY.js → chunk-FP54WSIR.js} +4 -4
- package/dist/bundle/{chunk-3URYKAJP.js → chunk-FT3LN3HP.js} +1 -1
- package/dist/bundle/{chunk-CDSB7WVG.js → chunk-GBKNJWOZ.js} +8 -8
- package/dist/bundle/{chunk-4J5GJJ2I.js → chunk-GOWXXYEF.js} +2 -2
- package/dist/bundle/{chunk-PB6NWKH3.js → chunk-GPQ44Y2R.js} +2 -2
- package/dist/bundle/{chunk-E7URRFBB.js → chunk-GZ2D4KXG.js} +10 -15
- package/dist/bundle/{chunk-376ZGVUZ.js → chunk-HKY7X6NY.js} +4 -4
- package/dist/bundle/{chunk-6XNTELM5.js → chunk-HL52XXZX.js} +1 -1
- package/dist/bundle/{chunk-533XOW74.js → chunk-HMS6EEQL.js} +3 -3
- package/dist/bundle/{chunk-F5UUJU6R.js → chunk-I4RWW3UD.js} +49 -4
- package/dist/bundle/{chunk-TZ75K6R7.js → chunk-ICDCAQ6K.js} +8 -8
- package/dist/bundle/{chunk-WOUIHZRI.js → chunk-J5Q5FS2N.js} +18 -75
- package/dist/bundle/{chunk-EL2E3ABX.js → chunk-JDV7HNNQ.js} +13 -13
- package/dist/bundle/{chunk-ZUG67442.js → chunk-JZHBZOJR.js} +3 -3
- package/dist/bundle/{chunk-SEJBS7SI.js → chunk-KGERXYTV.js} +1 -1
- package/dist/bundle/{chunk-5TK2YQCO.js → chunk-KGYVHPGE.js} +2 -2
- package/dist/bundle/{chunk-HCZYJMBP.js → chunk-KYKW2W6X.js} +1 -1
- package/dist/bundle/{chunk-RLGQMMYE.js → chunk-L46C6HQ7.js} +35 -13
- package/dist/bundle/chunk-LXKYKRHD.js +387 -0
- package/dist/bundle/{chunk-N4ACIIQB.js → chunk-MIA7P6FZ.js} +2 -2
- package/dist/bundle/{chunk-ZBYKCVSV.js → chunk-MNLL5YLM.js} +2 -2
- package/dist/bundle/{chunk-UPCEHSIZ.js → chunk-OF422U5D.js} +21 -16
- package/dist/bundle/{chunk-JRFKCYMW.js → chunk-OJSBWP3F.js} +23 -6
- package/dist/bundle/{chunk-MHXZ62CU.js → chunk-P7CUM5IB.js} +1 -1
- package/dist/bundle/{chunk-I55XYREN.js → chunk-PRW6SYA3.js} +1094 -2526
- package/dist/bundle/chunk-Q7DOMFJ4.js +259 -0
- package/dist/bundle/{chunk-3RLRJHAI.js → chunk-QETR5HIZ.js} +12081 -12607
- package/dist/bundle/{chunk-QJGFQRTL.js → chunk-QFR2PNJN.js} +12 -12
- package/dist/bundle/{chunk-2Q4CB4EI.js → chunk-QNRRK3CN.js} +2 -2
- package/dist/bundle/{chunk-5B5NOAIA.js → chunk-QXC6IEH6.js} +45 -45
- package/dist/bundle/{chunk-T6X6EZ5N.js → chunk-RESDD3Q4.js} +3 -3
- package/dist/bundle/chunk-RJOQH5YY.js +1979 -0
- package/dist/bundle/{chunk-AMQGKMLZ.js → chunk-RWDKMU74.js} +3 -3
- package/dist/bundle/{chunk-VUPWDCYV.js → chunk-SAKO3P4H.js} +1 -1
- package/dist/bundle/{chunk-GHFBT2ZM.js → chunk-SDKQNOL5.js} +6 -6
- package/dist/bundle/{chunk-25FT44S3.js → chunk-SERXSCN3.js} +287 -569
- package/dist/bundle/{chunk-2DS2TDGW.js → chunk-TAFHYHKA.js} +20 -118
- package/dist/bundle/{chunk-XVH3WZSZ.js → chunk-TAUBRNC5.js} +53 -53
- package/dist/bundle/{chunk-2VFAXC6O.js → chunk-UDMNY63V.js} +22 -19
- package/dist/bundle/{chunk-EWUQIUTB.js → chunk-UTO2GO4P.js} +5 -5
- package/dist/bundle/{chunk-V4FMN5A6.js → chunk-WVDCCYS3.js} +17 -17
- package/dist/bundle/chunk-X4TIMMKJ.js +16 -0
- package/dist/bundle/chunk-XF4EXO2C.js +335 -0
- package/dist/bundle/{chunk-OOIAJRKQ.js → chunk-XMMFBPGC.js} +2 -2
- package/dist/bundle/{chunk-4ZFO2CVH.js → chunk-Y2NWGNUB.js} +5 -5
- package/dist/bundle/{chunk-IJCUAKR5.js → chunk-YJIGGUPI.js} +4 -4
- package/dist/bundle/{chunk-L342KHIZ.js → chunk-YMJ6IDGT.js} +6 -6
- package/dist/bundle/{chunk-WNMPIRRF.js → chunk-YPFWNVHV.js} +3 -3
- package/dist/bundle/{chunk-T4FMXDDV.js → chunk-YPNWIB6H.js} +3 -3
- package/dist/bundle/{chunk-FIVFP53N.js → chunk-YVI5SQPY.js} +1 -1
- package/dist/bundle/{chunk-RWQ7T4Y5.js → chunk-Z3KUSRCF.js} +2 -2
- package/dist/bundle/{chunk-WQOGHND4.js → chunk-Z56QFOBR.js} +1 -1
- package/dist/bundle/chunk-ZCR3IRZ2.js +823 -0
- package/dist/bundle/{chunk-SYUXKV2E.js → chunk-ZM63SUHG.js} +2 -2
- package/dist/bundle/{chunk-M4OP5ASJ.js → chunk-ZZ32DXTH.js} +1 -1
- package/dist/bundle/{cli-BS4L3HAP.js → cli-556DERZL.js} +88 -69
- package/dist/bundle/command-contract-VRTOAV6W.js +43 -0
- package/dist/bundle/{command-server-entry-CJ2CV7ZV.js → command-server-entry-AYLGNZWD.js} +33 -30
- package/dist/bundle/decode-QU24MWMN.js +299 -0
- package/dist/bundle/{dispatch-WBEOHZDV.js → dispatch-4KODNOXV.js} +9 -9
- package/dist/bundle/drive.js +11 -11
- package/dist/bundle/{echarts-QIXLXS3G.js → echarts-BXX4OQWC.js} +2 -2
- package/dist/bundle/{embed-YNZW5X6M.js → embed-KG27KG3D.js} +9 -9
- package/dist/bundle/{embedder-LRC2PKTS.js → embedder-IPAVUQUV.js} +12 -12
- package/dist/bundle/entry-MVXQETWS.js +25 -0
- package/dist/bundle/{failure-X6PSLVSO.js → failure-ESL7ETL4.js} +4 -4
- package/dist/bundle/first-run-4UVLW2WR.js +31 -0
- package/dist/bundle/first-screen-JAKAIINI.js +41 -0
- package/dist/bundle/google-22NXXJX5.js +45 -0
- package/dist/bundle/{google-api-7JDZDCWE.js → google-api-VCDBSNOW.js} +70 -62
- package/dist/bundle/grants-MQMTVCRQ.js +118 -0
- package/dist/bundle/{identity-E43WKN5F.js → identity-LOWMVGZY.js} +6 -6
- package/dist/bundle/{instructions-MD2RZT5Z.js → instructions-2VECIDXF.js} +1 -1
- package/dist/bundle/{login-RBDJPQAG.js → login-7GBONT7V.js} +78 -70
- package/dist/bundle/{mcp-TDKGDB4V.js → mcp-O6ACR2DX.js} +2 -2
- package/dist/bundle/meeting-combined-LVP4AZKA.js +27 -0
- package/dist/bundle/meeting-model-RAY5XDXZ.js +29 -0
- package/dist/bundle/meeting-semantic-G7PFOKU7.js +25 -0
- package/dist/bundle/{node-IEVT2FSJ.js → node-MPEQSFI3.js} +2 -2
- package/dist/bundle/{node-sqlite-IENH4TRX.js → node-sqlite-OLQMAYB4.js} +10 -10
- package/dist/bundle/oauth-SGH2I2BY.js +22 -0
- package/dist/bundle/{open-TZ5H7NYM.js → open-OXTE672W.js} +8 -8
- package/dist/bundle/{openai-XF2KB7W2.js → openai-EB3TPIZY.js} +32 -30
- package/dist/bundle/{process-6Q23D3TO.js → process-F6TKXWWA.js} +1 -1
- package/dist/bundle/{program-D5XWOHV5.js → program-4IFDZ7FM.js} +1356 -1338
- package/dist/bundle/{prompt-KUC5D4GX.js → prompt-F5RRHPN2.js} +8 -8
- package/dist/bundle/{reasons-KSYP5VDJ.js → reasons-UORHJDHK.js} +5 -5
- package/dist/bundle/{recognize-DPFW7HO3.js → recognize-DAVNZND3.js} +7 -7
- package/dist/bundle/{remote-MODTSUNH.js → remote-D5EYYIAU.js} +13 -13
- package/dist/bundle/{rerank-JK7SERLE.js → rerank-CND2GVLZ.js} +10 -10
- package/dist/bundle/{serve-BV2WHZLW.js → serve-ZHSPUIGX.js} +12 -12
- package/dist/bundle/server-DUVJWP3Q.js +80 -0
- package/dist/bundle/{server-N3WPEU7Z.js → server-YMAK4LHC.js} +54 -46
- package/dist/bundle/{services-SV6CFUCS.js → services-ZILSFJ6E.js} +79 -54
- package/dist/bundle/{sqlite-runtime-RZ5PLZVQ.js → sqlite-runtime-S5VPMZQH.js} +9 -9
- package/dist/bundle/{start-C6EXYXAL.js → start-CR6X25RT.js} +7 -7
- package/dist/bundle/{state-RAZIREVG.js → state-YFPHVIIJ.js} +9 -9
- package/dist/bundle/{store-DQKJKX2G.js → store-CL4ZJZRI.js} +23 -19
- package/dist/bundle/{store-2DLGLYS6.js → store-UODRT6X4.js} +31 -26
- package/dist/bundle/store-maintenance-command-DY5XIBWR.js +72 -0
- package/dist/bundle/tokens-AF7QOFOF.js +118 -0
- package/dist/catalog.d.ts +0 -28
- package/dist/catalog.d.ts.map +1 -1
- package/dist/catalog.js +0 -82
- package/dist/catalog.js.map +1 -1
- package/dist/commands/catalog.d.ts +3 -8
- package/dist/commands/catalog.d.ts.map +1 -1
- package/dist/commands/catalog.js +36 -109
- package/dist/commands/catalog.js.map +1 -1
- package/dist/commands/context.d.ts +3 -0
- package/dist/commands/context.d.ts.map +1 -1
- package/dist/commands/context.js +20 -0
- package/dist/commands/context.js.map +1 -1
- package/dist/commands/documents.d.ts.map +1 -1
- package/dist/commands/documents.js +30 -72
- package/dist/commands/documents.js.map +1 -1
- package/dist/commands/folders.d.ts +1 -1
- package/dist/commands/folders.d.ts.map +1 -1
- package/dist/commands/folders.js +45 -48
- package/dist/commands/folders.js.map +1 -1
- package/dist/commands/knowledge.d.ts +4 -21
- package/dist/commands/knowledge.d.ts.map +1 -1
- package/dist/commands/knowledge.js +3 -241
- package/dist/commands/knowledge.js.map +1 -1
- package/dist/commands/mirrors.d.ts +2 -2
- package/dist/commands/mirrors.d.ts.map +1 -1
- package/dist/commands/mirrors.js +46 -202
- package/dist/commands/mirrors.js.map +1 -1
- package/dist/commands/search.d.ts +1 -3
- package/dist/commands/search.d.ts.map +1 -1
- package/dist/commands/search.js +20 -42
- package/dist/commands/search.js.map +1 -1
- package/dist/commands/sync.d.ts.map +1 -1
- package/dist/commands/sync.js +36 -53
- package/dist/commands/sync.js.map +1 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +2 -1
- package/dist/config.js.map +1 -1
- package/dist/contract-overrides.d.ts +0 -2
- package/dist/contract-overrides.d.ts.map +1 -1
- package/dist/contract-overrides.js +0 -317
- package/dist/contract-overrides.js.map +1 -1
- package/dist/knowledge.d.ts +1 -1
- package/dist/knowledge.d.ts.map +1 -1
- package/dist/knowledge.js +4 -3
- package/dist/knowledge.js.map +1 -1
- package/dist/list-queries.d.ts +0 -31
- package/dist/list-queries.d.ts.map +1 -1
- package/dist/list-queries.js +0 -36
- package/dist/list-queries.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +2 -3
- package/dist/program.js.map +1 -1
- package/dist/provider-json.d.ts.map +1 -1
- package/dist/provider-json.js +5 -5
- package/dist/provider-json.js.map +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +0 -10
- package/dist/reasons.js.map +1 -1
- package/dist/sync.d.ts.map +1 -1
- package/dist/sync.js +1 -2
- package/dist/sync.js.map +1 -1
- package/dist/transcripts.d.ts +0 -6
- package/dist/transcripts.d.ts.map +1 -1
- package/dist/transcripts.js +0 -13
- package/dist/transcripts.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-HYURWSD6.js +0 -40
- package/dist/bundle/decode-E2NM5SSM.js +0 -165
- package/dist/bundle/entry-2IMSWRJU.js +0 -25
- package/dist/bundle/first-run-7CPHQDM5.js +0 -30
- package/dist/bundle/first-screen-OKZ7GMFR.js +0 -38
- package/dist/bundle/google-WDKDBDD4.js +0 -45
- package/dist/bundle/grants-AU25GWKF.js +0 -110
- package/dist/bundle/oauth-3JGSN47Z.js +0 -22
- package/dist/bundle/server-6YDI4Y36.js +0 -72
- package/dist/bundle/store-maintenance-command-UJ5F5L4H.js +0 -64
- package/dist/bundle/tokens-LY3WML55.js +0 -110
- package/dist/knowledge-query.d.ts +0 -77
- package/dist/knowledge-query.d.ts.map +0 -1
- package/dist/knowledge-query.js +0 -104
- package/dist/knowledge-query.js.map +0 -1
- package/dist/bundle/{chunk-XWBPP2HX.js → chunk-VKE77B3F.js} +0 -0
- package/dist/bundle/{mdast-util-from-markdown-CE73EWJ2.js → mdast-util-from-markdown-FXEPSNER.js} +3 -3
|
@@ -2,28 +2,28 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
isCommandServer
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-B5KSXHJ7.js";
|
|
6
6
|
import {
|
|
7
7
|
ensureSqlite
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-GPQ44Y2R.js";
|
|
9
9
|
import {
|
|
10
10
|
envName,
|
|
11
11
|
readOnlyLockOf
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-MNLL5YLM.js";
|
|
13
13
|
import {
|
|
14
14
|
catchCrashes
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-3N2OFXB5.js";
|
|
16
16
|
import {
|
|
17
17
|
CliError
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-4QNW4NK6.js";
|
|
19
19
|
import {
|
|
20
20
|
__name
|
|
21
21
|
} from "./chunk-ZVVMGPBJ.js";
|
|
22
22
|
|
|
23
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/cli/entry.js
|
|
24
24
|
import { spawn } from "node:child_process";
|
|
25
25
|
|
|
26
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/cli/argv-log.js
|
|
27
27
|
import { appendFileSync } from "node:fs";
|
|
28
28
|
var logParsedArgv = /* @__PURE__ */ __name((file, action) => {
|
|
29
29
|
const words = [];
|
|
@@ -47,7 +47,7 @@ var logVersion = /* @__PURE__ */ __name((file) => {
|
|
|
47
47
|
`);
|
|
48
48
|
}, "logVersion");
|
|
49
49
|
|
|
50
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
50
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/cli/entry.js
|
|
51
51
|
var processIo = /* @__PURE__ */ __name(() => ({
|
|
52
52
|
argv: process.argv,
|
|
53
53
|
env: process.env,
|
|
@@ -67,7 +67,7 @@ var startCli = /* @__PURE__ */ __name(async (entry) => {
|
|
|
67
67
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-V"))
|
|
68
68
|
return printVersion(entry.app, io);
|
|
69
69
|
if (isCommandServer(args)) {
|
|
70
|
-
const { serveEntry } = await import("./command-server-entry-
|
|
70
|
+
const { serveEntry } = await import("./command-server-entry-AYLGNZWD.js");
|
|
71
71
|
return serveEntry(entry, io, { firstRunAt, commanderExit });
|
|
72
72
|
}
|
|
73
73
|
const tty = io.stdout.isTTY === true;
|
|
@@ -105,7 +105,7 @@ var startCli = /* @__PURE__ */ __name(async (entry) => {
|
|
|
105
105
|
ask: /* @__PURE__ */ __name(async (question, command) => {
|
|
106
106
|
if (headless(command) || io.stdin.isTTY !== true)
|
|
107
107
|
return false;
|
|
108
|
-
const { readSecret } = await import("./prompt-
|
|
108
|
+
const { readSecret } = await import("./prompt-F5RRHPN2.js");
|
|
109
109
|
const answer = await readSecret(`${question} [y/N] `, {
|
|
110
110
|
input: io.stdin,
|
|
111
111
|
output: io.stderr,
|
|
@@ -148,8 +148,8 @@ var firstRunAt = /* @__PURE__ */ __name((entry, io, headless) => async (command)
|
|
|
148
148
|
if (command.optsWithGlobals().dryRun === true)
|
|
149
149
|
return;
|
|
150
150
|
const [{ setupAtStart }, { commandPathOf }] = await Promise.all([
|
|
151
|
-
import("./first-run-
|
|
152
|
-
import("./command-contract-
|
|
151
|
+
import("./first-run-4UVLW2WR.js"),
|
|
152
|
+
import("./command-contract-VRTOAV6W.js")
|
|
153
153
|
]);
|
|
154
154
|
await setupAtStart({
|
|
155
155
|
command: entry.app.command,
|
|
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
CliError
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-4QNW4NK6.js";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/cli/input-policy.js
|
|
11
11
|
var MAX_BUFFERED_INPUT = 16 * 1024 * 1024;
|
|
12
12
|
var MAX_SECRET_INPUT = 64 * 1024;
|
|
13
13
|
var policies = /* @__PURE__ */ new WeakMap();
|
|
@@ -8,45 +8,45 @@ import {
|
|
|
8
8
|
range,
|
|
9
9
|
systemFor,
|
|
10
10
|
validateImages
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-3EBBLKIT.js";
|
|
12
12
|
import {
|
|
13
13
|
refuseOffComputer
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-SDKQNOL5.js";
|
|
15
15
|
import {
|
|
16
16
|
Unzip,
|
|
17
17
|
UnzipInflate
|
|
18
18
|
} from "./chunk-5DPV7X27.js";
|
|
19
19
|
import {
|
|
20
20
|
envName
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-MNLL5YLM.js";
|
|
22
22
|
import {
|
|
23
23
|
PLAIN_HTTP_REFUSED,
|
|
24
24
|
endpoint,
|
|
25
25
|
endpointFetch,
|
|
26
26
|
modelAddressAllowed,
|
|
27
27
|
onThisComputer
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-YMJ6IDGT.js";
|
|
29
29
|
import {
|
|
30
30
|
MAX_FILE_BYTES,
|
|
31
31
|
MAX_TEXT_CHARS,
|
|
32
32
|
attachmentMaxBytes
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-JZHBZOJR.js";
|
|
34
34
|
import {
|
|
35
35
|
isCliFailure
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-26DHFMGZ.js";
|
|
37
37
|
import {
|
|
38
38
|
readSharedSection,
|
|
39
39
|
sharedConfigPath,
|
|
40
40
|
writeSharedSection
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-GBKNJWOZ.js";
|
|
42
42
|
import {
|
|
43
43
|
storePath
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-Z3KUSRCF.js";
|
|
45
45
|
import {
|
|
46
46
|
Credentials,
|
|
47
47
|
pathsAreOverridden,
|
|
48
48
|
resolvePaths
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-CJLVYIOP.js";
|
|
50
50
|
import {
|
|
51
51
|
importFrom,
|
|
52
52
|
resolveFrom
|
|
@@ -64,11 +64,11 @@ import {
|
|
|
64
64
|
strictObject,
|
|
65
65
|
string,
|
|
66
66
|
union
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-OJSBWP3F.js";
|
|
68
68
|
import {
|
|
69
69
|
CliError,
|
|
70
70
|
isCliError
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-4QNW4NK6.js";
|
|
72
72
|
import {
|
|
73
73
|
__commonJS,
|
|
74
74
|
__name,
|
|
@@ -16684,20 +16684,20 @@ var require_lib3 = __commonJS({
|
|
|
16684
16684
|
}
|
|
16685
16685
|
});
|
|
16686
16686
|
|
|
16687
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16687
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
16688
16688
|
import { extname as extname2 } from "node:path";
|
|
16689
16689
|
|
|
16690
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16690
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/readers/engine.js
|
|
16691
16691
|
import { readFileSync } from "node:fs";
|
|
16692
16692
|
import { dirname, extname, join } from "node:path";
|
|
16693
16693
|
import { fileURLToPath } from "node:url";
|
|
16694
16694
|
|
|
16695
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16695
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
16696
16696
|
import { setImmediate as tick } from "node:timers/promises";
|
|
16697
16697
|
import { crc32 } from "node:zlib";
|
|
16698
16698
|
var import_xmldom = __toESM(require_lib(), 1);
|
|
16699
16699
|
|
|
16700
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16700
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/attachments/encoding.js
|
|
16701
16701
|
var import_chardet = __toESM(require_lib2(), 1);
|
|
16702
16702
|
var import_iconv_lite = __toESM(require_lib3(), 1);
|
|
16703
16703
|
var SAMPLE = 65536;
|
|
@@ -16799,7 +16799,7 @@ var decodeXml = /* @__PURE__ */ __name((bytes) => {
|
|
|
16799
16799
|
return result.text;
|
|
16800
16800
|
}, "decodeXml");
|
|
16801
16801
|
|
|
16802
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16802
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
16803
16803
|
var MAX_PART = 10 * 1024 * 1024;
|
|
16804
16804
|
var MAX_ENTRIES = 1e3;
|
|
16805
16805
|
var decoder = new TextDecoder("utf-8", { fatal: true });
|
|
@@ -17014,7 +17014,7 @@ var elements = /* @__PURE__ */ __name((node, name, namespace) => {
|
|
|
17014
17014
|
return found;
|
|
17015
17015
|
}, "elements");
|
|
17016
17016
|
|
|
17017
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17017
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/readers/engine.js
|
|
17018
17018
|
var BUILT_IN = ["unpdf", "mammoth", "word-extractor", "linkedom", "defuddle/node"];
|
|
17019
17019
|
var ENGINES = [...BUILT_IN, "@napi-rs/canvas"];
|
|
17020
17020
|
var isMissing = /* @__PURE__ */ __name((error, name) => error?.code === "ERR_MODULE_NOT_FOUND" && String(error.message).includes(name), "isMissing");
|
|
@@ -17072,7 +17072,7 @@ var derived = /* @__PURE__ */ __name((bytes, extractor, read) => {
|
|
|
17072
17072
|
}
|
|
17073
17073
|
}, "derived");
|
|
17074
17074
|
|
|
17075
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17075
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/readers/image/index.js
|
|
17076
17076
|
var IMAGES = /* @__PURE__ */ new Set([".jpg", ".jpeg", ".png", ".webp", ".gif", ".heic", ".tif", ".tiff", ".bmp"]);
|
|
17077
17077
|
var image = {
|
|
17078
17078
|
id: "image",
|
|
@@ -17081,7 +17081,7 @@ var image = {
|
|
|
17081
17081
|
read: /* @__PURE__ */ __name(async () => ({ status: "needs-agent" }), "read")
|
|
17082
17082
|
};
|
|
17083
17083
|
|
|
17084
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17084
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/readers/doc/index.js
|
|
17085
17085
|
var OLE = "\xD0\xCF\xE0\xA1\xB1\xE1";
|
|
17086
17086
|
var doc = {
|
|
17087
17087
|
id: "doc",
|
|
@@ -17093,7 +17093,7 @@ var doc = {
|
|
|
17093
17093
|
}), "read")
|
|
17094
17094
|
};
|
|
17095
17095
|
|
|
17096
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17096
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/readers/docx/index.js
|
|
17097
17097
|
var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
17098
17098
|
var docx = {
|
|
17099
17099
|
id: "docx",
|
|
@@ -17106,10 +17106,10 @@ var docx = {
|
|
|
17106
17106
|
}), "read")
|
|
17107
17107
|
};
|
|
17108
17108
|
|
|
17109
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17109
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/attachments/markup.js
|
|
17110
17110
|
var import_iconv_lite2 = __toESM(require_lib3(), 1);
|
|
17111
17111
|
|
|
17112
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17112
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/domain/html-entities.js
|
|
17113
17113
|
var NAMED = {
|
|
17114
17114
|
amp: "&",
|
|
17115
17115
|
lt: "<",
|
|
@@ -17161,7 +17161,7 @@ var decodeEntities = /* @__PURE__ */ __name((text) => text.replace(/&(#x[0-9a-f]
|
|
|
17161
17161
|
return body[1] === "x" || body[1] === "X" ? character(Number.parseInt(body.slice(2), 16), entity) : character(Number(body.slice(1)), entity);
|
|
17162
17162
|
}), "decodeEntities");
|
|
17163
17163
|
|
|
17164
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17164
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/attachments/markup.js
|
|
17165
17165
|
var RTF_SKIPPED = /* @__PURE__ */ new Set([
|
|
17166
17166
|
"fonttbl",
|
|
17167
17167
|
"colortbl",
|
|
@@ -17327,7 +17327,7 @@ var htmlText = /* @__PURE__ */ __name((source) => {
|
|
|
17327
17327
|
return decodeEntities(replaceTags(blocks, /<[^>]*>/g, "")).replace(/(?<![ \t\u00a0])[ \t\u00a0]+\n/g, "\n").replace(/\n{3,}/g, "\n\n").trim();
|
|
17328
17328
|
}, "htmlText");
|
|
17329
17329
|
|
|
17330
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17330
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/readers/html/page.js
|
|
17331
17331
|
var clean = /* @__PURE__ */ __name((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim() : "", "clean");
|
|
17332
17332
|
var namesIn = /* @__PURE__ */ __name((value) => [value].flat().map((entry) => typeof entry === "string" ? clean(entry) : clean(entry?.name)).filter(Boolean).join(", "), "namesIn");
|
|
17333
17333
|
var jsonLdNodes = /* @__PURE__ */ __name((document) => {
|
|
@@ -17383,7 +17383,7 @@ var markdownSections = /* @__PURE__ */ __name((text) => {
|
|
|
17383
17383
|
return found.map((section, index) => ({ ...section, end: found[index + 1]?.start ?? text.length }));
|
|
17384
17384
|
}, "markdownSections");
|
|
17385
17385
|
|
|
17386
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17386
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/readers/html/index.js
|
|
17387
17387
|
var HTML = /* @__PURE__ */ new Set([".html", ".htm", ".xhtml"]);
|
|
17388
17388
|
var first = /* @__PURE__ */ __name((...values) => values.find((value) => typeof value === "string" && value !== ""), "first");
|
|
17389
17389
|
var loaded = /* @__PURE__ */ __name(async (load, name) => {
|
|
@@ -17454,10 +17454,10 @@ var html = {
|
|
|
17454
17454
|
}, "read")
|
|
17455
17455
|
};
|
|
17456
17456
|
|
|
17457
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17457
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
17458
17458
|
import { posix } from "node:path";
|
|
17459
17459
|
|
|
17460
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17460
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/attachments/sheets.js
|
|
17461
17461
|
var columnName = /* @__PURE__ */ __name((column) => {
|
|
17462
17462
|
let name = "";
|
|
17463
17463
|
for (let rest = column; rest > 0; rest = Math.floor((rest - 1) / 26))
|
|
@@ -17512,7 +17512,7 @@ var sheetText = /* @__PURE__ */ __name((sheets2, maxChars = MAX_TEXT_CHARS) => {
|
|
|
17512
17512
|
return { text: parts.join("").trim(), truncated: false };
|
|
17513
17513
|
}, "sheetText");
|
|
17514
17514
|
|
|
17515
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17515
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
17516
17516
|
var OFFICE = "urn:oasis:names:tc:opendocument:xmlns:office:1.0";
|
|
17517
17517
|
var TEXT = "urn:oasis:names:tc:opendocument:xmlns:text:1.0";
|
|
17518
17518
|
var TABLE = "urn:oasis:names:tc:opendocument:xmlns:table:1.0";
|
|
@@ -17927,7 +17927,7 @@ var readDocument = /* @__PURE__ */ __name(async (bytes, kind, signal) => {
|
|
|
17927
17927
|
}
|
|
17928
17928
|
}, "readDocument");
|
|
17929
17929
|
|
|
17930
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17930
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/readers/office/index.js
|
|
17931
17931
|
var office = {
|
|
17932
17932
|
id: "office",
|
|
17933
17933
|
version: documentExtractor("odt"),
|
|
@@ -17938,7 +17938,7 @@ var office = {
|
|
|
17938
17938
|
}, "read")
|
|
17939
17939
|
};
|
|
17940
17940
|
|
|
17941
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17941
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/readers/pdf/index.js
|
|
17942
17942
|
var pdf = {
|
|
17943
17943
|
id: "pdf",
|
|
17944
17944
|
version: "unpdf",
|
|
@@ -18005,7 +18005,7 @@ var pdf = {
|
|
|
18005
18005
|
}), "read")
|
|
18006
18006
|
};
|
|
18007
18007
|
|
|
18008
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18008
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/readers/plain/index.js
|
|
18009
18009
|
var PLAIN = /* @__PURE__ */ new Set([".txt", ".md", ".markdown", ".csv", ".tsv", ".json", ".log"]);
|
|
18010
18010
|
var isPlain = /* @__PURE__ */ __name((hint) => PLAIN.has(extensionOf(hint)) || hint.mime?.startsWith("text/") || hint.mime === "application/json", "isPlain");
|
|
18011
18011
|
var readPlain = /* @__PURE__ */ __name((bytes) => {
|
|
@@ -18025,7 +18025,7 @@ var plain = {
|
|
|
18025
18025
|
read: /* @__PURE__ */ __name(async (bytes) => readPlain(bytes), "read")
|
|
18026
18026
|
};
|
|
18027
18027
|
|
|
18028
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18028
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/readers/rtf/index.js
|
|
18029
18029
|
var rtf = {
|
|
18030
18030
|
id: "rtf",
|
|
18031
18031
|
version: "v1",
|
|
@@ -18033,10 +18033,10 @@ var rtf = {
|
|
|
18033
18033
|
read: /* @__PURE__ */ __name(async (bytes) => derived(bytes, "rtf:v1", rtfText), "read")
|
|
18034
18034
|
};
|
|
18035
18035
|
|
|
18036
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18036
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
18037
18037
|
import { basename } from "node:path";
|
|
18038
18038
|
|
|
18039
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18039
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/attachments/csv-spans.js
|
|
18040
18040
|
var delimitedSpans = /* @__PURE__ */ __name((text, delimiter, maxCells = 1e4) => {
|
|
18041
18041
|
const cells = [];
|
|
18042
18042
|
let row = 1, column = 1, start = 0, quoted = false, truncated = false;
|
|
@@ -18074,7 +18074,7 @@ var delimitedSpans = /* @__PURE__ */ __name((text, delimiter, maxCells = 1e4) =>
|
|
|
18074
18074
|
return { cells, truncated };
|
|
18075
18075
|
}, "delimitedSpans");
|
|
18076
18076
|
|
|
18077
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18077
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
18078
18078
|
var DELIMITED = {
|
|
18079
18079
|
".csv": ",",
|
|
18080
18080
|
".tsv": " ",
|
|
@@ -18113,7 +18113,7 @@ var sheets = {
|
|
|
18113
18113
|
}, "read")
|
|
18114
18114
|
};
|
|
18115
18115
|
|
|
18116
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18116
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/readers/registry.js
|
|
18117
18117
|
var BUILT_INS = [office, pdf, docx, doc, rtf, html, sheets, plain, image];
|
|
18118
18118
|
var HEAD_BYTES = 1024;
|
|
18119
18119
|
var readers = [...BUILT_INS];
|
|
@@ -18123,7 +18123,7 @@ var readWithRegistry = /* @__PURE__ */ __name(async (bytes, hint, context) => {
|
|
|
18123
18123
|
return reader ? reader.read(bytes, hint, context) : { status: "unsupported" };
|
|
18124
18124
|
}, "readWithRegistry");
|
|
18125
18125
|
|
|
18126
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18126
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
18127
18127
|
var importEngine = /* @__PURE__ */ __name((name) => importFrom(new URL("attachments/extract.js", import.meta.resolve("@wirecat/cli-core")).href, name), "importEngine");
|
|
18128
18128
|
var extensionOf2 = /* @__PURE__ */ __name(({ name, path }) => extname2(name ?? path).toLowerCase(), "extensionOf");
|
|
18129
18129
|
var extractText = /* @__PURE__ */ __name(async (bytes, hint, load, signal, env = process.env) => {
|
|
@@ -18161,7 +18161,7 @@ var engineStates = /* @__PURE__ */ __name((resolve = (name) => resolveFrom(new U
|
|
|
18161
18161
|
}
|
|
18162
18162
|
})), "engineStates");
|
|
18163
18163
|
|
|
18164
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18164
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/http/time-limit.js
|
|
18165
18165
|
var timeLimit = /* @__PURE__ */ __name((ms) => {
|
|
18166
18166
|
const controller = new AbortController();
|
|
18167
18167
|
const timer = setTimeout(() => controller.abort(new DOMException("The operation timed out.", "TimeoutError")), ms);
|
|
@@ -18177,7 +18177,7 @@ var withTimeLimit = /* @__PURE__ */ __name(async (ms, run2) => {
|
|
|
18177
18177
|
}
|
|
18178
18178
|
}, "withTimeLimit");
|
|
18179
18179
|
|
|
18180
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18180
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/models/openai.js
|
|
18181
18181
|
var options = strictObject({
|
|
18182
18182
|
temperature: range(0, 2),
|
|
18183
18183
|
top_p: range(0, 1),
|
|
@@ -18244,7 +18244,7 @@ var openai = {
|
|
|
18244
18244
|
}), "complete")
|
|
18245
18245
|
};
|
|
18246
18246
|
|
|
18247
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18247
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/models/index.js
|
|
18248
18248
|
var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
18249
18249
|
complete: /* @__PURE__ */ __name(async (request) => {
|
|
18250
18250
|
if (deps.signal?.aborted)
|
|
@@ -18259,7 +18259,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
18259
18259
|
if (!adapter && target2.provider === "openai")
|
|
18260
18260
|
adapter = openai;
|
|
18261
18261
|
if (!adapter && target2.provider === "anthropic")
|
|
18262
|
-
adapter = (await import("./anthropic-
|
|
18262
|
+
adapter = (await import("./anthropic-PSWTEU6G.js")).anthropic;
|
|
18263
18263
|
if (!adapter)
|
|
18264
18264
|
throw new CliError("validation_error", `no model adapter for ${target2.provider}`);
|
|
18265
18265
|
if (request.images !== void 0 && adapter.images !== true)
|
|
@@ -18319,7 +18319,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
18319
18319
|
}, "complete")
|
|
18320
18320
|
}), "modelGateway");
|
|
18321
18321
|
|
|
18322
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18322
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/embeddings/keys.js
|
|
18323
18323
|
var endpointKeyName = /* @__PURE__ */ __name((baseUrl) => {
|
|
18324
18324
|
const host = new URL(baseUrl).host;
|
|
18325
18325
|
return ["openai", "anthropic"].includes(host) ? `endpoint:${host}` : host;
|
|
@@ -18352,7 +18352,7 @@ var embeddingKeys = /* @__PURE__ */ __name((app, env = process.env, keyring) =>
|
|
|
18352
18352
|
};
|
|
18353
18353
|
}, "embeddingKeys");
|
|
18354
18354
|
|
|
18355
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18355
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/domain/recovery.js
|
|
18356
18356
|
var withRecovery = /* @__PURE__ */ __name((error) => ({
|
|
18357
18357
|
...error,
|
|
18358
18358
|
retryable: typeof error.retryable === "boolean" ? error.retryable : error.code === "rate_limited" || error.status === 429
|
|
@@ -19399,7 +19399,7 @@ function imageSize(input) {
|
|
|
19399
19399
|
}
|
|
19400
19400
|
__name(imageSize, "imageSize");
|
|
19401
19401
|
|
|
19402
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19402
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/attachments/ocr.js
|
|
19403
19403
|
var MAX_PAGES = 20;
|
|
19404
19404
|
var MAX_PIXELS = 2e7;
|
|
19405
19405
|
var cancelled2 = /* @__PURE__ */ __name((signal) => {
|
|
@@ -19559,7 +19559,7 @@ var ocrPdf = /* @__PURE__ */ __name(async (bytes, pipeline, load, signal) => {
|
|
|
19559
19559
|
}
|
|
19560
19560
|
}, "ocrPdf");
|
|
19561
19561
|
|
|
19562
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19562
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/attachments/picture-reading.js
|
|
19563
19563
|
import { spawn } from "node:child_process";
|
|
19564
19564
|
import { mkdtempSync, readFileSync as readFileSync2, rmSync, writeFileSync } from "node:fs";
|
|
19565
19565
|
import { tmpdir } from "node:os";
|
|
@@ -2,16 +2,16 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
alive
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-Z56QFOBR.js";
|
|
6
6
|
import {
|
|
7
7
|
resolvePaths,
|
|
8
8
|
writeSecurely
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-CJLVYIOP.js";
|
|
10
10
|
import {
|
|
11
11
|
__name
|
|
12
12
|
} from "./chunk-ZVVMGPBJ.js";
|
|
13
13
|
|
|
14
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.673.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_d24fa0f4f3b37e009a0e8224eb6a2687/node_modules/@wirecat/cli-core/dist/background/lock.js
|
|
15
15
|
import { existsSync, linkSync, mkdirSync, readdirSync, readFileSync, rmSync, writeFileSync } from "node:fs";
|
|
16
16
|
import { dirname, join } from "node:path";
|
|
17
17
|
var lockPath = /* @__PURE__ */ __name((app, profile, env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "serve", `${profile}.lock`), "lockPath");
|