@wirecat/drive-cli 0.47.0 → 0.50.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/age.d.ts +36 -0
- package/dist/age.d.ts.map +1 -1
- package/dist/age.js +17 -0
- package/dist/age.js.map +1 -1
- package/dist/bin/drive.js +2 -2
- package/dist/bundle/{all-profiles-O7CNQ7FO.js → all-profiles-WQTVOCIS.js} +8 -8
- package/dist/bundle/{anthropic-6T67J2CE.js → anthropic-YCA2AWIJ.js} +5 -5
- package/dist/bundle/{app-server-BVBZT3UY.js → app-server-ZQOYUQJH.js} +52 -52
- package/dist/bundle/{bun-O6RL6LRQ.js → bun-5NFIDHGM.js} +2 -2
- package/dist/bundle/{bun-sqlite-54W7JUY3.js → bun-sqlite-OAQE4M2E.js} +4 -4
- package/dist/bundle/{chunk-NLEB26GA.js → chunk-24TOKSZE.js} +2 -2
- package/dist/bundle/{chunk-DL7D6Y3B.js → chunk-2M5XEGVE.js} +3413 -3293
- package/dist/bundle/{chunk-4NGLRHWO.js → chunk-3CQNJKJT.js} +1 -1
- package/dist/bundle/{chunk-CYCQBQBH.js → chunk-3HNUH632.js} +6 -6
- package/dist/bundle/{chunk-5TC3NCAF.js → chunk-3XX52F42.js} +2 -2
- package/dist/bundle/{chunk-R2A3K7ZF.js → chunk-4J7UGHPK.js} +5 -5
- package/dist/bundle/{chunk-GHOWRW7E.js → chunk-4OLWMHS6.js} +10 -3
- package/dist/bundle/{chunk-NDNTLUPS.js → chunk-4SSUKRO4.js} +2 -2
- package/dist/bundle/{chunk-CVIKKIGE.js → chunk-4VLUX3V5.js} +1 -1
- package/dist/bundle/{chunk-AIXLOMH4.js → chunk-53UWCVSU.js} +1 -1
- package/dist/bundle/{chunk-3Z7WSD2A.js → chunk-5OMLYNYB.js} +8 -8
- package/dist/bundle/{chunk-VCYFEWPD.js → chunk-5WN7JHQE.js} +26 -26
- package/dist/bundle/{chunk-GQW4GRYR.js → chunk-5Z63NTC7.js} +6 -6
- package/dist/bundle/{chunk-D67JGWSC.js → chunk-5ZJHQ4TN.js} +7 -4
- package/dist/bundle/{chunk-XF5MFUEB.js → chunk-652YTDT5.js} +15 -15
- package/dist/bundle/{chunk-PJ7IQVOM.js → chunk-6DDXB5WB.js} +2 -2
- package/dist/bundle/{chunk-DXKVEOSS.js → chunk-6E4PFCQ4.js} +1 -1
- package/dist/bundle/{chunk-G3FAOS52.js → chunk-7SYSC7KX.js} +2 -2
- package/dist/bundle/{chunk-BQUPOB5H.js → chunk-AO3NCZNT.js} +8 -8
- package/dist/bundle/{chunk-U2OD7MKK.js → chunk-BUALWXBT.js} +1 -1
- package/dist/bundle/{chunk-OWXTPXIQ.js → chunk-C4PNAHI4.js} +11 -11
- package/dist/bundle/{recognize-IFXOJHEA.js → chunk-CCEVICWU.js} +7 -7
- package/dist/bundle/{chunk-IGMRWQP3.js → chunk-CEUEXMIR.js} +86 -35
- package/dist/bundle/{chunk-5MGIL5LW.js → chunk-CTIQ77AB.js} +20 -17
- package/dist/bundle/{chunk-VHQNVG3J.js → chunk-DTHWL5YU.js} +5 -5
- package/dist/bundle/{chunk-67BQ3XMH.js → chunk-E656DAZT.js} +1 -1
- package/dist/bundle/{chunk-WUFCYDKB.js → chunk-EXYEDKTX.js} +2 -2
- package/dist/bundle/{chunk-BJ3JRO34.js → chunk-EY4CUQW2.js} +7 -7
- package/dist/bundle/{chunk-QW36EOAM.js → chunk-FABKIQ24.js} +2 -2
- package/dist/bundle/{chunk-SMHQA5J6.js → chunk-FSAM4Y2S.js} +15 -8
- package/dist/bundle/{chunk-R2QRP7EJ.js → chunk-G75FZQAZ.js} +13 -9
- package/dist/bundle/{chunk-VHT2WI4I.js → chunk-HGWMX7BM.js} +101 -73
- package/dist/bundle/{chunk-44FV5JAS.js → chunk-HURI56SB.js} +21 -21
- package/dist/bundle/{chunk-GWPKIRNQ.js → chunk-IA6LNKCF.js} +5 -5
- package/dist/bundle/{chunk-LHIL46I3.js → chunk-IFM2APQB.js} +2 -2
- package/dist/bundle/{chunk-BEXHAGXH.js → chunk-IGG4RBIZ.js} +170 -146
- package/dist/bundle/{chunk-PDBBBUY7.js → chunk-INVF3GXW.js} +10 -10
- package/dist/bundle/{chunk-KADPV4YA.js → chunk-IUZ4PT2V.js} +2 -2
- package/dist/bundle/{chunk-K74PQVQZ.js → chunk-JA2YY7D4.js} +7 -7
- package/dist/bundle/{chunk-K7FRUB33.js → chunk-JHBX53SK.js} +35 -35
- package/dist/bundle/{chunk-QTJUH3LS.js → chunk-JSMPSOEM.js} +3 -3
- package/dist/bundle/{chunk-PH74B2VZ.js → chunk-KEQ35HQQ.js} +3 -3
- package/dist/bundle/{chunk-NW7IMGRR.js → chunk-KYMGVMOS.js} +1 -1
- package/dist/bundle/{chunk-AOOD3RMK.js → chunk-KZEOWOZV.js} +7 -7
- package/dist/bundle/{chunk-VYBOYBLX.js → chunk-LNWRRK2H.js} +6 -6
- package/dist/bundle/{chunk-RCS2SCX5.js → chunk-M2D4FXKY.js} +5 -5
- package/dist/bundle/{chunk-KJMBV574.js → chunk-M6FQOGUW.js} +392 -319
- package/dist/bundle/{chunk-GOR3Z2FR.js → chunk-MMOG7ZVF.js} +2 -2
- package/dist/bundle/{chunk-RJ633GFA.js → chunk-NHRJW3PH.js} +2 -2
- package/dist/bundle/{chunk-MFS52LTZ.js → chunk-OKSS7YUN.js} +1 -1
- package/dist/bundle/{chunk-ZBM4GEV2.js → chunk-OL22OOIW.js} +4 -4
- package/dist/bundle/{chunk-BHE7ZY2N.js → chunk-OQEBGY74.js} +74 -46
- package/dist/bundle/{chunk-MAXN7COO.js → chunk-P3T2SZW2.js} +1 -1
- package/dist/bundle/{chunk-LJARCTGL.js → chunk-P6VN5UB4.js} +4 -4
- package/dist/bundle/{chunk-A3FU4RR6.js → chunk-PNUS224S.js} +4 -4
- package/dist/bundle/{chunk-JVTVAZ5X.js → chunk-POD2GHQB.js} +58 -19
- package/dist/bundle/{chunk-FEULDMWM.js → chunk-Q27HCATD.js} +1980 -1557
- package/dist/bundle/{chunk-4DW6QGEV.js → chunk-Q3VG3UYV.js} +11 -11
- package/dist/bundle/{chunk-AUS6TKP5.js → chunk-QBECV7NO.js} +33 -32
- package/dist/bundle/{chunk-DORXXBFC.js → chunk-QNLD7Y6Z.js} +7 -7
- package/dist/bundle/{chunk-3HRDEJJW.js → chunk-QSDXVUJG.js} +4 -4
- package/dist/bundle/{chunk-GNFHZZ55.js → chunk-QY3LK3OT.js} +5 -5
- package/dist/bundle/{chunk-CFZWPIVC.js → chunk-R7XMCREL.js} +39 -21
- package/dist/bundle/{chunk-NP3XLLN3.js → chunk-RTIMGPLN.js} +3 -3
- package/dist/bundle/{chunk-SWMMR3FR.js → chunk-T7UZHKAS.js} +2 -2
- package/dist/bundle/{chunk-IKNU5A5Y.js → chunk-TATRMMOG.js} +3 -3
- package/dist/bundle/{chunk-QWSRPXCJ.js → chunk-UVPKSZSC.js} +4 -4
- package/dist/bundle/{chunk-CKR3DVUK.js → chunk-VAETCXRI.js} +54 -26
- package/dist/bundle/{chunk-6T7NSOYC.js → chunk-VAK2Q2XG.js} +14 -14
- package/dist/bundle/{chunk-DDYR6DYL.js → chunk-XEETGCOC.js} +1 -1
- package/dist/bundle/{chunk-XAZQTJXR.js → chunk-XGJUEH5C.js} +27 -27
- package/dist/bundle/{chunk-VAGF723Z.js → chunk-Y73IZWRI.js} +1 -1
- package/dist/bundle/{chunk-2DLAJGRN.js → chunk-YOABRW2M.js} +1 -1
- package/dist/bundle/{chunk-TRMIV3OA.js → chunk-YROVFHPJ.js} +2 -2
- package/dist/bundle/{chunk-NB2N6L3R.js → chunk-Z54E5LKF.js} +6 -6
- package/dist/bundle/{chunk-IAW5A7OR.js → chunk-ZJBRKR42.js} +32 -28
- package/dist/bundle/{chunk-LOTQ2HMT.js → chunk-ZKGYW63J.js} +9 -9
- package/dist/bundle/{chunk-XEBFFKXO.js → chunk-ZP735UUT.js} +3 -3
- package/dist/bundle/{chunk-HEPIOCHN.js → chunk-ZXD2I5ZQ.js} +58 -51
- package/dist/bundle/command-contract-TAWVO2G3.js +38 -0
- package/dist/bundle/decode-YZRTP54O.js +159 -0
- package/dist/bundle/drive.js +7 -7
- package/dist/bundle/{echarts-LD3AI55P.js → echarts-C6HUK2FL.js} +2 -2
- package/dist/bundle/{embed-FJKIIM43.js → embed-QRQ7ITFC.js} +5 -5
- package/dist/bundle/{embedder-NNQ5ZC25.js → embedder-EZDB3JPA.js} +8 -8
- package/dist/bundle/{entry-ZYSNPDSD.js → entry-4WQQKSYG.js} +6 -6
- package/dist/bundle/failure-EEJGMWEP.js +37 -0
- package/dist/bundle/{first-run-KA2UPZAU.js → first-run-ZAS4OV3T.js} +9 -9
- package/dist/bundle/first-screen-6ICWD2N3.js +36 -0
- package/dist/bundle/{google-ZYDFTHLN.js → google-KNILTIDW.js} +9 -9
- package/dist/bundle/google-api-CZACYX5T.js +82 -0
- package/dist/bundle/{identity-7JM62OER.js → identity-VBCGUXT5.js} +2 -2
- package/dist/bundle/{instructions-RZMSW3OC.js → instructions-II4M2WL3.js} +1 -1
- package/dist/bundle/{login-JU6NKW5P.js → login-4JACQVMD.js} +62 -62
- package/dist/bundle/mcp-2BR2EX7L.js +95 -0
- package/dist/bundle/{mcp-KWXNBIAI.js → mcp-6ZIAWU3N.js} +76 -76
- package/dist/bundle/{mcp-OQBZXELQ.js → mcp-ZYZ4DFW2.js} +2 -2
- package/dist/bundle/{node-ZRLYQL7J.js → node-LIN7L4VQ.js} +2 -2
- package/dist/bundle/node-sqlite-VAH4KZN3.js +62 -0
- package/dist/bundle/{oauth-NAIBKERJ.js → oauth-QUE3VCTU.js} +6 -6
- package/dist/bundle/{open-3P5EPXPV.js → open-DQ3EVYPB.js} +3 -3
- package/dist/bundle/{process-LL77573L.js → process-46XDWPVW.js} +1 -1
- package/dist/bundle/{program-VKHR42BF.js → program-X3CZ4XDN.js} +141 -99
- package/dist/bundle/{prompt-3TX2SWOY.js → prompt-SAZYCZV3.js} +4 -4
- package/dist/bundle/{reasons-GF2TYGX6.js → reasons-366PI7OV.js} +3 -3
- package/dist/bundle/recognize-SSBOHOTW.js +22 -0
- package/dist/bundle/{remote-663M42Y5.js → remote-EL3FWCQE.js} +6 -6
- package/dist/bundle/{rerank-OT2F2DBV.js → rerank-RPIQRJIW.js} +6 -6
- package/dist/bundle/{serve-PDNNI6O6.js → serve-AX44DIKK.js} +8 -8
- package/dist/bundle/server-DCJIGUW2.js +56 -0
- package/dist/bundle/server-WWQSQBFT.js +69 -0
- package/dist/bundle/{services-5MCTECBU.js → services-K4UOEMQD.js} +28 -28
- package/dist/bundle/{sqlite-runtime-BF3KDM7W.js → sqlite-runtime-N7N3EYGH.js} +4 -4
- package/dist/bundle/{state-SZX65E74.js → state-C3S5FD7V.js} +5 -5
- package/dist/bundle/{store-TCWNLA3V.js → store-4N3NBUGX.js} +14 -14
- package/dist/bundle/{store-UKPGGAPW.js → store-QV4ZNEQ3.js} +16 -16
- package/dist/bundle/store-maintenance-command-QL4AECBD.js +57 -0
- package/dist/bundle/tokens-Y7HCOXOA.js +103 -0
- package/dist/commands/documents.d.ts +5 -1
- package/dist/commands/documents.d.ts.map +1 -1
- package/dist/commands/documents.js +11 -5
- package/dist/commands/documents.js.map +1 -1
- package/dist/commands/remote.d.ts +8 -0
- package/dist/commands/remote.d.ts.map +1 -1
- package/dist/commands/remote.js +16 -0
- package/dist/commands/remote.js.map +1 -1
- package/dist/commands/session.d.ts.map +1 -1
- package/dist/commands/session.js +10 -2
- package/dist/commands/session.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +4 -1
- package/dist/program.js.map +1 -1
- package/dist/tokens.d.ts.map +1 -1
- package/dist/tokens.js +2 -2
- package/dist/tokens.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/bundle/command-contract-MXCBV3GJ.js +0 -38
- package/dist/bundle/failure-KZDBSYBR.js +0 -37
- package/dist/bundle/first-screen-VQ3RXDMF.js +0 -36
- package/dist/bundle/google-api-2GT5PAW2.js +0 -82
- package/dist/bundle/mcp-JOQMFGBC.js +0 -95
- package/dist/bundle/node-sqlite-TXPSRROT.js +0 -46
- package/dist/bundle/server-BFOEPMR7.js +0 -56
- package/dist/bundle/server-K566PJ7H.js +0 -69
- package/dist/bundle/store-maintenance-command-QHLUVBTJ.js +0 -57
- package/dist/bundle/tokens-DFCFRF7I.js +0 -103
- /package/dist/bundle/{chunk-O5EHUB2V.js → chunk-2WNDZFGG.js} +0 -0
- /package/dist/bundle/{chunk-Q2Z3VCM4.js → chunk-VDZZ46RT.js} +0 -0
|
@@ -3,31 +3,31 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
envName,
|
|
5
5
|
readOnlyLockOf
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-NHRJW3PH.js";
|
|
7
7
|
import {
|
|
8
8
|
ensureSqlite
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-FABKIQ24.js";
|
|
10
10
|
import {
|
|
11
11
|
catchCrashes
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-HGWMX7BM.js";
|
|
13
13
|
import {
|
|
14
14
|
CliError
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-EY4CUQW2.js";
|
|
16
16
|
import {
|
|
17
17
|
__name
|
|
18
18
|
} from "./chunk-ZVVMGPBJ.js";
|
|
19
19
|
|
|
20
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/cli/entry.js
|
|
21
21
|
import { spawn } from "node:child_process";
|
|
22
22
|
|
|
23
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/cli/argv-log.js
|
|
24
24
|
import { appendFileSync } from "node:fs";
|
|
25
25
|
var logVersion = /* @__PURE__ */ __name((file) => {
|
|
26
26
|
appendFileSync(file, `${JSON.stringify({ command: "", options: ["--version"] })}
|
|
27
27
|
`);
|
|
28
28
|
}, "logVersion");
|
|
29
29
|
|
|
30
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/cli/entry.js
|
|
31
31
|
var processIo = /* @__PURE__ */ __name(() => ({
|
|
32
32
|
argv: process.argv,
|
|
33
33
|
env: process.env,
|
|
@@ -81,8 +81,8 @@ var startCli = /* @__PURE__ */ __name(async (entry) => {
|
|
|
81
81
|
if (command.optsWithGlobals().dryRun === true)
|
|
82
82
|
return;
|
|
83
83
|
const [{ setupAtStart }, { commandPathOf }] = await Promise.all([
|
|
84
|
-
import("./first-run-
|
|
85
|
-
import("./command-contract-
|
|
84
|
+
import("./first-run-ZAS4OV3T.js"),
|
|
85
|
+
import("./command-contract-TAWVO2G3.js")
|
|
86
86
|
]);
|
|
87
87
|
await setupAtStart({
|
|
88
88
|
command: entry.app.command,
|
|
@@ -97,7 +97,7 @@ var startCli = /* @__PURE__ */ __name(async (entry) => {
|
|
|
97
97
|
ask: /* @__PURE__ */ __name(async (question, command) => {
|
|
98
98
|
if (headless(command) || io.stdin.isTTY !== true)
|
|
99
99
|
return false;
|
|
100
|
-
const { readSecret } = await import("./prompt-
|
|
100
|
+
const { readSecret } = await import("./prompt-SAZYCZV3.js");
|
|
101
101
|
const answer = await readSecret(`${question} [y/N] `, {
|
|
102
102
|
input: io.stdin,
|
|
103
103
|
output: io.stderr,
|
|
@@ -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-EY4CUQW2.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.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/models/types.js
|
|
11
11
|
var MAX_MODEL_IMAGE_BYTES = 4 * 1024 * 1024;
|
|
12
12
|
var validateImages = /* @__PURE__ */ __name((images) => {
|
|
13
13
|
if (images === void 0)
|
|
@@ -2,27 +2,27 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
ENTITIES
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-IGG4RBIZ.js";
|
|
6
6
|
import {
|
|
7
7
|
answerSchema
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-QBECV7NO.js";
|
|
9
9
|
import {
|
|
10
10
|
annotate,
|
|
11
11
|
describeOptions,
|
|
12
12
|
metaOf
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-ZKGYW63J.js";
|
|
14
14
|
import {
|
|
15
15
|
keyForCommand
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-6DDXB5WB.js";
|
|
17
17
|
import {
|
|
18
18
|
CliError,
|
|
19
19
|
jsonSchemaOf
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-EY4CUQW2.js";
|
|
21
21
|
import {
|
|
22
22
|
__name
|
|
23
23
|
} from "./chunk-ZVVMGPBJ.js";
|
|
24
24
|
|
|
25
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/cli/answer-entity.js
|
|
26
26
|
var schemas = /* @__PURE__ */ new WeakMap();
|
|
27
27
|
var answerEntity = /* @__PURE__ */ __name((command, name, schema, options = {}) => {
|
|
28
28
|
if (Object.hasOwn(ENTITIES, name))
|
|
@@ -52,7 +52,7 @@ var answerProjectionSchema = /* @__PURE__ */ __name((command) => {
|
|
|
52
52
|
return own && metaOf(command).output?.entity === own.name ? own.project : void 0;
|
|
53
53
|
}, "answerProjectionSchema");
|
|
54
54
|
|
|
55
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
55
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/cli/command-contract.js
|
|
56
56
|
var SCHEMA_DIALECT = "https://json-schema.org/draft/2020-12/schema";
|
|
57
57
|
var outputOf = /* @__PURE__ */ __name((command) => {
|
|
58
58
|
const entity = answerEntitySchema(command);
|
|
@@ -12,13 +12,13 @@ import {
|
|
|
12
12
|
registerPrompts,
|
|
13
13
|
stdinFieldOf,
|
|
14
14
|
syncsFirst
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-CEUEXMIR.js";
|
|
16
16
|
import {
|
|
17
17
|
mcpUrlOf
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-T7UZHKAS.js";
|
|
19
19
|
import {
|
|
20
20
|
answeredWire
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-4VLUX3V5.js";
|
|
22
22
|
import {
|
|
23
23
|
BinaryResource,
|
|
24
24
|
Picture,
|
|
@@ -39,44 +39,44 @@ import {
|
|
|
39
39
|
tool,
|
|
40
40
|
toolKey,
|
|
41
41
|
toolsFromCommands
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-XGJUEH5C.js";
|
|
43
43
|
import {
|
|
44
44
|
agentJson,
|
|
45
45
|
skillResource
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-652YTDT5.js";
|
|
47
47
|
import {
|
|
48
48
|
StdioServerTransport,
|
|
49
49
|
callerOf,
|
|
50
50
|
serveStdio
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-7SYSC7KX.js";
|
|
52
52
|
import {
|
|
53
53
|
instructions
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-6E4PFCQ4.js";
|
|
55
55
|
import {
|
|
56
56
|
McpServer,
|
|
57
57
|
ResourceTemplate
|
|
58
58
|
} from "./chunk-5FONRUG6.js";
|
|
59
59
|
import {
|
|
60
60
|
mcpHttpMarker
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-QSDXVUJG.js";
|
|
62
62
|
import {
|
|
63
63
|
connectedFor,
|
|
64
64
|
guardFor
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-ZJBRKR42.js";
|
|
66
66
|
import {
|
|
67
67
|
lackedNeed,
|
|
68
68
|
wholeList
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-POD2GHQB.js";
|
|
70
70
|
import {
|
|
71
71
|
capability,
|
|
72
72
|
dateWindow,
|
|
73
73
|
imageSize,
|
|
74
74
|
servicesFor,
|
|
75
75
|
storedDeps
|
|
76
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-2M5XEGVE.js";
|
|
77
77
|
import {
|
|
78
78
|
findCommand
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-JA2YY7D4.js";
|
|
80
80
|
import {
|
|
81
81
|
DEFAULT_OUTPUT_BYTES,
|
|
82
82
|
changesAuthorityAt,
|
|
@@ -88,42 +88,42 @@ import {
|
|
|
88
88
|
rootOf2 as rootOf,
|
|
89
89
|
sealed,
|
|
90
90
|
snakeKeys
|
|
91
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-QBECV7NO.js";
|
|
92
92
|
import {
|
|
93
93
|
withCaller
|
|
94
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-5OMLYNYB.js";
|
|
95
95
|
import {
|
|
96
96
|
describeProgram
|
|
97
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-ZKGYW63J.js";
|
|
98
98
|
import {
|
|
99
99
|
typedCommand
|
|
100
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-R7XMCREL.js";
|
|
101
101
|
import {
|
|
102
102
|
isCliFailure
|
|
103
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-MMOG7ZVF.js";
|
|
104
104
|
import {
|
|
105
105
|
levelFor,
|
|
106
106
|
readKeysForCommand
|
|
107
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-6DDXB5WB.js";
|
|
108
108
|
import {
|
|
109
109
|
readOnlyLockOf
|
|
110
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-NHRJW3PH.js";
|
|
111
111
|
import {
|
|
112
112
|
warmEmbedders
|
|
113
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-M2D4FXKY.js";
|
|
114
114
|
import {
|
|
115
115
|
openStore
|
|
116
|
-
} from "./chunk-
|
|
116
|
+
} from "./chunk-Q27HCATD.js";
|
|
117
117
|
import {
|
|
118
118
|
pdfPreviewLimits
|
|
119
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-3XX52F42.js";
|
|
120
120
|
import {
|
|
121
121
|
timezoneOf
|
|
122
|
-
} from "./chunk-
|
|
122
|
+
} from "./chunk-G75FZQAZ.js";
|
|
123
123
|
import {
|
|
124
124
|
mcpErrorResult,
|
|
125
125
|
visibleControls
|
|
126
|
-
} from "./chunk-
|
|
126
|
+
} from "./chunk-HGWMX7BM.js";
|
|
127
127
|
import {
|
|
128
128
|
CliError,
|
|
129
129
|
description,
|
|
@@ -139,15 +139,15 @@ import {
|
|
|
139
139
|
regex,
|
|
140
140
|
strictObject,
|
|
141
141
|
string
|
|
142
|
-
} from "./chunk-
|
|
142
|
+
} from "./chunk-EY4CUQW2.js";
|
|
143
143
|
import {
|
|
144
144
|
__name
|
|
145
145
|
} from "./chunk-ZVVMGPBJ.js";
|
|
146
146
|
|
|
147
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
147
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/mcp/server.js
|
|
148
148
|
import { randomUUID } from "node:crypto";
|
|
149
149
|
|
|
150
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
150
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/mcp/agent-log.js
|
|
151
151
|
var agentLog = /* @__PURE__ */ __name((open) => {
|
|
152
152
|
let held;
|
|
153
153
|
return {
|
|
@@ -166,7 +166,7 @@ var agentLog = /* @__PURE__ */ __name((open) => {
|
|
|
166
166
|
};
|
|
167
167
|
}, "agentLog");
|
|
168
168
|
|
|
169
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
169
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/mcp/resources.js
|
|
170
170
|
var LISTED = 100;
|
|
171
171
|
var registerResources = /* @__PURE__ */ __name((server, session, { command, name, limit, recorded, withStore, messenger, guard, assertRead }) => {
|
|
172
172
|
server.registerResource("chat", new ResourceTemplate(`${command}://chat/{id}`, {
|
|
@@ -204,7 +204,7 @@ var registerResources = /* @__PURE__ */ __name((server, session, { command, name
|
|
|
204
204
|
});
|
|
205
205
|
}, "registerResources");
|
|
206
206
|
|
|
207
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
207
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/mcp/session.js
|
|
208
208
|
var HARMLESS = /* @__PURE__ */ new Set(["validation_error", "not_found", "permission_error", "confirmation_required", "rate_limited"]);
|
|
209
209
|
var harmless = /* @__PURE__ */ __name((code) => HARMLESS.has(code), "harmless");
|
|
210
210
|
var MessengerSession = class {
|
|
@@ -279,7 +279,7 @@ var MessengerSession = class {
|
|
|
279
279
|
}
|
|
280
280
|
};
|
|
281
281
|
|
|
282
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
282
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/mcp/tools/attachments.js
|
|
283
283
|
var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
|
|
284
284
|
const _command = messenger.app.command;
|
|
285
285
|
return {
|
|
@@ -333,7 +333,7 @@ var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
|
|
|
333
333
|
};
|
|
334
334
|
}, "attachmentsTools");
|
|
335
335
|
|
|
336
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
336
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/mcp/tools/messages-photo.js
|
|
337
337
|
var PHOTO_LIMIT = 512 * 1024;
|
|
338
338
|
var IMAGE_TYPES = [
|
|
339
339
|
["image/jpeg", (b) => b[0] === 255 && b[1] === 216 && b[2] === 255],
|
|
@@ -387,7 +387,7 @@ var readUpTo = /* @__PURE__ */ __name(async (file, limit, saveIt) => {
|
|
|
387
387
|
return new Uint8Array(Buffer.concat(chunks));
|
|
388
388
|
}, "readUpTo");
|
|
389
389
|
|
|
390
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
390
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/mcp/tools/stats.js
|
|
391
391
|
var statsTools = /* @__PURE__ */ __name((messenger) => ({
|
|
392
392
|
stats_charts: tool({
|
|
393
393
|
title: "A chart from a chat's statistics",
|
|
@@ -424,14 +424,14 @@ var statsTools = /* @__PURE__ */ __name((messenger) => ({
|
|
|
424
424
|
})
|
|
425
425
|
}), "statsTools");
|
|
426
426
|
|
|
427
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
427
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/mcp/tools.js
|
|
428
428
|
var pictureTools = /* @__PURE__ */ __name((messenger) => Object.fromEntries(Object.entries({
|
|
429
429
|
...messagesPhotoTools(messenger),
|
|
430
430
|
...attachmentsTools(messenger),
|
|
431
431
|
...statsTools(messenger)
|
|
432
432
|
}).map(([name, definition]) => [name, { ...definition, input: strictObject(definition.input.entries) }])), "pictureTools");
|
|
433
433
|
|
|
434
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
434
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/mcp/server.js
|
|
435
435
|
var PER_RUN = /* @__PURE__ */ new Set([
|
|
436
436
|
"streams",
|
|
437
437
|
"stdin",
|
|
@@ -755,7 +755,7 @@ var serveOverStdio = /* @__PURE__ */ __name(async (command, context, messenger,
|
|
|
755
755
|
}, "serveOverStdio");
|
|
756
756
|
var serveOverHttpUntilStopped = /* @__PURE__ */ __name(async (command, context, messenger, options, http) => {
|
|
757
757
|
const { session, embedders, build, log } = createServer(command, context, messenger, options);
|
|
758
|
-
const { serveOverHttp } = await import("./serve-
|
|
758
|
+
const { serveOverHttp } = await import("./serve-AX44DIKK.js");
|
|
759
759
|
const appName = messenger.app.command;
|
|
760
760
|
const appEnvPrefix = messenger.app.envPrefix;
|
|
761
761
|
const listening = await serveOverHttp(build, {
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
checkApiBody,
|
|
11
11
|
checkApiParameter,
|
|
12
12
|
parseApiJson
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-M6FQOGUW.js";
|
|
14
14
|
import {
|
|
15
15
|
CliError,
|
|
16
16
|
array,
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
string,
|
|
28
28
|
transform,
|
|
29
29
|
unknown
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-EY4CUQW2.js";
|
|
31
31
|
import {
|
|
32
32
|
__name
|
|
33
33
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -10299,7 +10299,7 @@ var operations = [
|
|
|
10299
10299
|
}
|
|
10300
10300
|
];
|
|
10301
10301
|
|
|
10302
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.65.
|
|
10302
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/codegen/runtime.js
|
|
10303
10303
|
var isLossless = /* @__PURE__ */ __name((input) => typeof input === "object" && input !== null && input.isLosslessNumber === true && typeof input.value === "string", "isLossless");
|
|
10304
10304
|
var INTEGER = /^-?\d+$/;
|
|
10305
10305
|
var INT64_MIN = -(2n ** 63n);
|
|
@@ -2,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
unit
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-M2D4FXKY.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-EY4CUQW2.js";
|
|
9
9
|
import {
|
|
10
10
|
__name
|
|
11
11
|
} from "./chunk-ZVVMGPBJ.js";
|
|
12
12
|
|
|
13
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/embeddings/remote.js
|
|
14
14
|
import { setTimeout } from "node:timers/promises";
|
|
15
15
|
var OPENAI_URL = "https://api.openai.com/v1";
|
|
16
16
|
var OPENAI_MODELS = {
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/shared-55XJMTPA.js
|
|
8
8
|
var entityKind = /* @__PURE__ */ Symbol.for("drizzle:entityKind");
|
|
9
9
|
var kindsByConstructor = /* @__PURE__ */ new WeakMap();
|
|
10
10
|
function collectKinds(ctor) {
|
|
@@ -2,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
singleLine
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-HGWMX7BM.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-EY4CUQW2.js";
|
|
9
9
|
import {
|
|
10
10
|
__name
|
|
11
11
|
} from "./chunk-ZVVMGPBJ.js";
|
|
12
12
|
|
|
13
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/domain/providers.js
|
|
14
14
|
var KINDS = ["messages", "mail", "notes", "documents", "meetings", "events"];
|
|
15
15
|
var PROVIDERS = [
|
|
16
16
|
{ name: "telegram", kind: "messages", aliases: ["tg"] },
|
|
@@ -101,7 +101,7 @@ var providerNamed = /* @__PURE__ */ __name((word) => {
|
|
|
101
101
|
var kindIn = /* @__PURE__ */ __name((provider) => isFolderProvider(provider) ? "notes" : registry.find(({ name }) => name === provider)?.kind, "kindIn");
|
|
102
102
|
var kindOf = /* @__PURE__ */ __name((provider) => kindIn(provider) ?? "messages", "kindOf");
|
|
103
103
|
|
|
104
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
104
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/domain/locator.js
|
|
105
105
|
var SCHEME = "msg:";
|
|
106
106
|
var formatLocator = /* @__PURE__ */ __name(({ provider, account, chat, message }) => SCHEME + [provider, account, chat, message].map(encodeURIComponent).join("/"), "formatLocator");
|
|
107
107
|
var isLocator = /* @__PURE__ */ __name((reference) => reference.trim().startsWith(SCHEME), "isLocator");
|
|
@@ -115,7 +115,7 @@ var parseLocator = /* @__PURE__ */ __name((reference) => {
|
|
|
115
115
|
return { provider, account, chat, message };
|
|
116
116
|
}, "parseLocator");
|
|
117
117
|
|
|
118
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
118
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/domain/references.js
|
|
119
119
|
var SIMPLE_REFERENCES = [
|
|
120
120
|
"note",
|
|
121
121
|
"document",
|
|
@@ -187,7 +187,7 @@ var folderPath = /* @__PURE__ */ __name((path) => {
|
|
|
187
187
|
}, "folderPath");
|
|
188
188
|
var canonicalReference = /* @__PURE__ */ __name((text) => formatReference(parseReference(text)), "canonicalReference");
|
|
189
189
|
|
|
190
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
190
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/domain/counters.js
|
|
191
191
|
var COUNTER_FIELDS = ["views", "reactions", "comments"];
|
|
192
192
|
var validCounter = /* @__PURE__ */ __name((value) => typeof value === "number" && Number.isFinite(value) && value >= 0, "validCounter");
|
|
193
193
|
var counterObservationTime = /* @__PURE__ */ __name((observation, now) => {
|
|
@@ -206,7 +206,7 @@ var counterFreshness = /* @__PURE__ */ __name((states) => {
|
|
|
206
206
|
return states.some((one) => one.freshness === "stale") ? "stale" : "fresh";
|
|
207
207
|
}, "counterFreshness");
|
|
208
208
|
|
|
209
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
209
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/domain/rankings-options.js
|
|
210
210
|
var MESSAGE_MEASURES = ["views", "reactions", "forwards", "comments", "replies", "thread-size"];
|
|
211
211
|
var AUTHOR_MEASURES = [
|
|
212
212
|
"messages",
|
|
@@ -2,19 +2,19 @@ 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-EY4CUQW2.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.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/store/driver.js
|
|
11
11
|
var PRAGMAS = `
|
|
12
12
|
PRAGMA busy_timeout = 5000;
|
|
13
13
|
PRAGMA journal_mode = WAL;
|
|
14
14
|
PRAGMA foreign_keys = ON;
|
|
15
15
|
`;
|
|
16
16
|
|
|
17
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/store/sqlite-warning.js
|
|
18
18
|
var SQLITE_WARNING = "SQLite is an experimental feature";
|
|
19
19
|
var quieted = /* @__PURE__ */ new WeakSet();
|
|
20
20
|
var quietSqliteWarning = /* @__PURE__ */ __name((host = process) => {
|
|
@@ -35,7 +35,7 @@ var isSqliteWarning = /* @__PURE__ */ __name((warning, options) => {
|
|
|
35
35
|
return name === "ExperimentalWarning" && message.startsWith(SQLITE_WARNING);
|
|
36
36
|
}, "isSqliteWarning");
|
|
37
37
|
|
|
38
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/store/open.js
|
|
39
39
|
var openCache = /* @__PURE__ */ __name(async (path) => {
|
|
40
40
|
const database = await openFile(path);
|
|
41
41
|
try {
|
|
@@ -48,12 +48,12 @@ var openCache = /* @__PURE__ */ __name(async (path) => {
|
|
|
48
48
|
}, "openCache");
|
|
49
49
|
var openFile = /* @__PURE__ */ __name((path) => "Bun" in globalThis ? openUnderBun(path) : openUnderNode(path), "openFile");
|
|
50
50
|
var openUnderBun = /* @__PURE__ */ __name(async (path) => {
|
|
51
|
-
const { openWithBunSqlite } = await import("./bun-sqlite-
|
|
51
|
+
const { openWithBunSqlite } = await import("./bun-sqlite-OAQE4M2E.js");
|
|
52
52
|
return await openWithBunSqlite(path);
|
|
53
53
|
}, "openUnderBun");
|
|
54
54
|
var openUnderNode = /* @__PURE__ */ __name(async (path) => {
|
|
55
55
|
quietSqliteWarning();
|
|
56
|
-
const { openWithNodeSqlite } = await import("./node-sqlite-
|
|
56
|
+
const { openWithNodeSqlite } = await import("./node-sqlite-VAH4KZN3.js");
|
|
57
57
|
return openWithNodeSqlite(path);
|
|
58
58
|
}, "openUnderNode");
|
|
59
59
|
var runtime = /* @__PURE__ */ __name(() => {
|
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
installFiles,
|
|
9
9
|
megabytes,
|
|
10
10
|
sharedModelsDirectory
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-QY3LK3OT.js";
|
|
12
12
|
import {
|
|
13
13
|
CliError
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-EY4CUQW2.js";
|
|
15
15
|
import {
|
|
16
16
|
importFrom
|
|
17
17
|
} from "./chunk-Y5E2WNWB.js";
|
|
@@ -19,12 +19,12 @@ 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.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/embeddings/embed.js
|
|
23
23
|
import { readFileSync as readFileSync2 } from "node:fs";
|
|
24
24
|
import { availableParallelism } from "node:os";
|
|
25
25
|
import { basename, join as join2 } from "node:path";
|
|
26
26
|
|
|
27
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/embeddings/onnx-runtime.js
|
|
28
28
|
import { createHash } from "node:crypto";
|
|
29
29
|
import { copyFileSync, mkdirSync, mkdtempSync, readFileSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
30
30
|
import { join } from "node:path";
|
|
@@ -207,7 +207,7 @@ var openSession = /* @__PURE__ */ __name(async (bytes, threads, options = {}) =>
|
|
|
207
207
|
return { ort, session: await ort.InferenceSession.create(bytes, options) };
|
|
208
208
|
}, "openSession");
|
|
209
209
|
|
|
210
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
210
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/embeddings/embed.js
|
|
211
211
|
var textModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedModelsDirectory("text", env), "textModelsDirectory");
|
|
212
212
|
var placedText = /* @__PURE__ */ __name((model, directory) => model.files.map((file) => [file, join2(directory, model.id, file.name)]), "placedText");
|
|
213
213
|
var isTextModelInstalled = /* @__PURE__ */ __name((model, directory) => filesPresent(placedText(model, directory)), "isTextModelInstalled");
|