@wirecat/drive-cli 0.68.0 → 0.69.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/bin/drive.js +2 -2
- package/dist/bundle/{all-profiles-BU6XUFUP.js → all-profiles-B4A737YW.js} +20 -30
- package/dist/bundle/{anthropic-ZP5B7S2Z.js → anthropic-RZGPDESM.js} +3 -3
- package/dist/bundle/{app-server-EB4DH6T7.js → app-server-OWEW7DY5.js} +47 -63
- package/dist/bundle/{bun-PWMM6L45.js → bun-V5QLYBZU.js} +2 -2
- package/dist/bundle/{bun-sqlite-6VPR2SVC.js → bun-sqlite-KHLHXXGH.js} +4 -4
- package/dist/bundle/{chunk-7TNQZKRD.js → chunk-22SH77TG.js} +65 -64
- package/dist/bundle/{chunk-MLSXHTUB.js → chunk-25FT44S3.js} +1480 -464
- package/dist/bundle/{chunk-5G2BY4B6.js → chunk-2DS2TDGW.js} +29 -28
- package/dist/bundle/{chunk-PGPHEC2X.js → chunk-2Q4CB4EI.js} +1 -1
- package/dist/bundle/{chunk-74NCZKRW.js → chunk-2VFAXC6O.js} +13 -13
- package/dist/bundle/{chunk-NV75QPML.js → chunk-376ZGVUZ.js} +4 -4
- package/dist/bundle/{chunk-6WAC2LOS.js → chunk-3RLRJHAI.js} +1558 -928
- package/dist/bundle/{chunk-QVJMFZFW.js → chunk-3URYKAJP.js} +1 -1
- package/dist/bundle/{chunk-UYBLNGZ2.js → chunk-3YKAFLXY.js} +1 -1
- package/dist/bundle/{chunk-CMWFYZ45.js → chunk-4J5GJJ2I.js} +1 -1
- package/dist/bundle/{chunk-QKY24RWV.js → chunk-4YECZ6CN.js} +11 -11
- package/dist/bundle/{chunk-FAMXUI2X.js → chunk-4ZFO2CVH.js} +4 -4
- package/dist/bundle/{chunk-IVOG6T6P.js → chunk-533XOW74.js} +2 -2
- package/dist/bundle/{chunk-Q6BD6RUH.js → chunk-5B5NOAIA.js} +100 -55
- package/dist/bundle/{chunk-MW46BLWH.js → chunk-5SJZDEIO.js} +2 -0
- package/dist/bundle/{chunk-CVAJMRRD.js → chunk-6D44YQ5X.js} +5 -5
- package/dist/bundle/{chunk-EOC7RHJ2.js → chunk-6EL5AVXX.js} +3 -5
- package/dist/bundle/{chunk-TI2OANJZ.js → chunk-6XNTELM5.js} +1 -1
- package/dist/bundle/{chunk-WUFZGPXX.js → chunk-AD7VI3XU.js} +6 -6
- package/dist/bundle/{chunk-YUGTJBV3.js → chunk-AMQGKMLZ.js} +2 -2
- package/dist/bundle/{chunk-SOS4U2RF.js → chunk-BBJVV4E2.js} +24 -25
- package/dist/bundle/{chunk-JMZQBRRZ.js → chunk-BVVXYZSU.js} +5 -5
- package/dist/bundle/{chunk-AIEMFRBU.js → chunk-CAQ5GW3A.js} +1 -1
- package/dist/bundle/{chunk-PWIEOATY.js → chunk-CDSB7WVG.js} +323 -12
- package/dist/bundle/{chunk-KPKIHJIT.js → chunk-CU6RATZH.js} +3 -3
- package/dist/bundle/{chunk-43NEDPXB.js → chunk-CZ4UEXCE.js} +4 -4
- package/dist/bundle/{chunk-UFPRP7MG.js → chunk-E7URRFBB.js} +7 -7
- package/dist/bundle/{chunk-YYIWPH53.js → chunk-EL2E3ABX.js} +12 -12
- package/dist/bundle/{chunk-MWCPKUU4.js → chunk-EWUQIUTB.js} +4 -4
- package/dist/bundle/{chunk-7A77GYCE.js → chunk-F5UUJU6R.js} +2 -2
- package/dist/bundle/{chunk-O7T3WGCV.js → chunk-GHFBT2ZM.js} +4 -4
- package/dist/bundle/{chunk-7BXVI7XF.js → chunk-GK6KXBL6.js} +1 -1
- package/dist/bundle/{chunk-5W65QTYS.js → chunk-GTDCP5OG.js} +3 -3
- package/dist/bundle/{chunk-GTLXBAJV.js → chunk-HEBZCKMU.js} +1669 -662
- package/dist/bundle/{chunk-AXYG2DDY.js → chunk-I55XYREN.js} +636 -227
- package/dist/bundle/{chunk-UUQJVKPB.js → chunk-IQ2QU2X6.js} +1608 -1096
- package/dist/bundle/{chunk-ULNN3LCY.js → chunk-KUQDBWPU.js} +40 -32
- package/dist/bundle/{chunk-6QR7NKMG.js → chunk-L342KHIZ.js} +105 -1
- package/dist/bundle/{chunk-DYLYH7VE.js → chunk-LRCSDAYK.js} +3 -3
- package/dist/bundle/{chunk-QTRYJZL7.js → chunk-LUZRVBQR.js} +4 -4
- package/dist/bundle/{chunk-PJ3FKBXG.js → chunk-MHXZ62CU.js} +1 -1
- package/dist/bundle/{chunk-WGX4DZPW.js → chunk-N4ACIIQB.js} +2 -2
- package/dist/bundle/{chunk-DU23ET2O.js → chunk-NVDR72GP.js} +19 -19
- package/dist/bundle/{chunk-F7KAMSXA.js → chunk-O6PD7RZY.js} +2 -2
- package/dist/bundle/{chunk-JZ3MT7IE.js → chunk-OOIAJRKQ.js} +1 -1
- package/dist/bundle/{chunk-ZVQDOKDY.js → chunk-OUM4ZO53.js} +1 -1
- package/dist/bundle/{chunk-ZSVMZH5O.js → chunk-PB6NWKH3.js} +2 -2
- package/dist/bundle/{chunk-EEE4H2PA.js → chunk-QJGFQRTL.js} +10 -10
- package/dist/bundle/chunk-RLGQMMYE.js +707 -0
- package/dist/bundle/{chunk-CRIEW4FP.js → chunk-RWQ7T4Y5.js} +2 -2
- package/dist/bundle/{chunk-EXWZCI5G.js → chunk-SEJBS7SI.js} +1 -1
- package/dist/bundle/{chunk-CK2SQ2CE.js → chunk-SY2HLH5R.js} +32 -19
- package/dist/bundle/{chunk-6HFZZ2PW.js → chunk-SYUXKV2E.js} +1 -1
- package/dist/bundle/{chunk-ZAIE3G5I.js → chunk-T4FMXDDV.js} +2 -2
- package/dist/bundle/{chunk-U52QE4QV.js → chunk-T6X6EZ5N.js} +3 -3
- package/dist/bundle/{chunk-Z5BMYI2V.js → chunk-TZ75K6R7.js} +6 -6
- package/dist/bundle/{chunk-D4MVEOU2.js → chunk-U3RXH6RY.js} +1 -1
- package/dist/bundle/{chunk-QRSPFCRY.js → chunk-V4FMN5A6.js} +16 -16
- package/dist/bundle/{chunk-QWGEOQHA.js → chunk-VUPWDCYV.js} +1 -1
- package/dist/bundle/{chunk-WCNTDETD.js → chunk-WNMPIRRF.js} +98 -6
- package/dist/bundle/{chunk-RT5NT62B.js → chunk-WOUIHZRI.js} +13 -15
- package/dist/bundle/{chunk-UIKVP23D.js → chunk-WQOGHND4.js} +1 -1
- package/dist/bundle/{chunk-2VYEGKQ3.js → chunk-XUHQ7DVT.js} +1 -1
- package/dist/bundle/{chunk-DIZBJLPM.js → chunk-XVH3WZSZ.js} +45 -55
- package/dist/bundle/{chunk-MOKEB656.js → chunk-ZBYKCVSV.js} +1 -1
- package/dist/bundle/{chunk-BXHFJTU5.js → chunk-ZUG67442.js} +2 -2
- package/dist/bundle/{cli-L7P36YUH.js → cli-BS4L3HAP.js} +100 -70
- package/dist/bundle/{command-contract-EYFGMKIG.js → command-contract-HYURWSD6.js} +16 -17
- package/dist/bundle/{command-server-entry-H3VGPOLJ.js → command-server-entry-CJ2CV7ZV.js} +23 -24
- package/dist/bundle/{decode-JEU6JWCV.js → decode-E2NM5SSM.js} +3 -3
- package/dist/bundle/drive.js +4 -4
- package/dist/bundle/{echarts-SDZA2SWG.js → echarts-QIXLXS3G.js} +2 -2
- package/dist/bundle/{embed-WUKOASQG.js → embed-YNZW5X6M.js} +4 -4
- package/dist/bundle/{embedder-UBRAXRDZ.js → embedder-LRC2PKTS.js} +7 -7
- package/dist/bundle/{entry-C4NUQFTF.js → entry-2IMSWRJU.js} +7 -7
- package/dist/bundle/{first-run-PKHBS7B4.js → first-run-7CPHQDM5.js} +7 -7
- package/dist/bundle/first-screen-OKZ7GMFR.js +38 -0
- package/dist/bundle/{google-XXHSMTVK.js → google-WDKDBDD4.js} +15 -15
- package/dist/bundle/{google-api-SQQ4BSNR.js → google-api-7JDZDCWE.js} +52 -53
- package/dist/bundle/{grants-2U4JVT6O.js → grants-AU25GWKF.js} +57 -58
- package/dist/bundle/{identity-SRL6RSU2.js → identity-E43WKN5F.js} +1 -1
- package/dist/bundle/{instructions-7T6JJIFS.js → instructions-MD2RZT5Z.js} +1 -1
- package/dist/bundle/{login-N243GGEE.js → login-RBDJPQAG.js} +57 -58
- package/dist/bundle/{node-BZDMUFTW.js → node-IEVT2FSJ.js} +2 -2
- package/dist/bundle/{node-sqlite-SZQCCMV2.js → node-sqlite-IENH4TRX.js} +5 -5
- package/dist/bundle/{oauth-CMAFXX6A.js → oauth-3JGSN47Z.js} +5 -5
- package/dist/bundle/{open-RVTPKDA3.js → open-TZ5H7NYM.js} +3 -3
- package/dist/bundle/{openai-6NN63BMH.js → openai-XF2KB7W2.js} +14 -14
- package/dist/bundle/{process-756VBE7E.js → process-6Q23D3TO.js} +1 -1
- package/dist/bundle/{program-B4QBJYB5.js → program-D5XWOHV5.js} +86 -89
- package/dist/bundle/{prompt-HGP2DSRW.js → prompt-KUC5D4GX.js} +3 -3
- package/dist/bundle/{recognize-26SHB7HI.js → recognize-DPFW7HO3.js} +2 -2
- package/dist/bundle/{remote-Z4PWHZ5N.js → remote-MODTSUNH.js} +8 -8
- package/dist/bundle/{rerank-QHJZJK3Q.js → rerank-JK7SERLE.js} +5 -5
- package/dist/bundle/{serve-MYJW5IEM.js → serve-BV2WHZLW.js} +7 -7
- package/dist/bundle/server-6YDI4Y36.js +72 -0
- package/dist/bundle/{server-XFW3V7CR.js → server-N3WPEU7Z.js} +45 -44
- package/dist/bundle/{services-IQG2RVTO.js → services-SV6CFUCS.js} +42 -27
- package/dist/bundle/{sqlite-runtime-X4GB5PBV.js → sqlite-runtime-RZ5PLZVQ.js} +4 -4
- package/dist/bundle/{state-ATQK2X3W.js → state-RAZIREVG.js} +4 -4
- package/dist/bundle/{store-QUBUPK6F.js → store-2DLGLYS6.js} +18 -14
- package/dist/bundle/{store-MEHEUOJH.js → store-DQKJKX2G.js} +12 -12
- package/dist/bundle/store-maintenance-command-UJ5F5L4H.js +64 -0
- package/dist/bundle/tokens-LY3WML55.js +110 -0
- package/dist/policy.d.ts +1 -1
- package/dist/policy.d.ts.map +1 -1
- package/dist/policy.js +3 -3
- package/dist/policy.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/dist/bundle/chunk-2UHQVRH2.js +0 -1235
- package/dist/bundle/chunk-J5LXL435.js +0 -1316
- package/dist/bundle/chunk-R5FTCNLJ.js +0 -76
- package/dist/bundle/first-screen-QOVOM4BF.js +0 -39
- package/dist/bundle/server-HBZPIHDX.js +0 -74
- package/dist/bundle/store-maintenance-command-33ULVDWY.js +0 -65
- package/dist/bundle/tokens-A2GP4F34.js +0 -111
|
@@ -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.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/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) {
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
__name
|
|
9
9
|
} from "./chunk-ZVVMGPBJ.js";
|
|
10
10
|
|
|
11
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/errors/failures.js
|
|
12
12
|
var isCliFailure = /* @__PURE__ */ __name((value) => value instanceof Error && value.name === "CliError" && errorCodes.includes(value.code), "isCliFailure");
|
|
13
13
|
var isCommanderFailure = /* @__PURE__ */ __name((value) => {
|
|
14
14
|
const { code, exitCode } = value ?? {};
|
|
@@ -10,7 +10,7 @@ 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.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/store/vector-extension.js
|
|
14
14
|
import { readFileSync } from "node:fs";
|
|
15
15
|
var musl = /* @__PURE__ */ __name(() => {
|
|
16
16
|
if (process.platform !== "linux")
|
|
@@ -2,31 +2,31 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
updateCommand
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-U3RXH6RY.js";
|
|
6
6
|
import {
|
|
7
7
|
QUESTIONS,
|
|
8
8
|
readSetupAnswers,
|
|
9
9
|
unanswered,
|
|
10
10
|
writeSetupAnswers
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-CU6RATZH.js";
|
|
12
12
|
import {
|
|
13
13
|
DEFAULT_STEMMERS,
|
|
14
14
|
LANGUAGES
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-E7URRFBB.js";
|
|
16
16
|
import {
|
|
17
17
|
sharedConfigPath
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-CDSB7WVG.js";
|
|
19
19
|
import {
|
|
20
20
|
installerOf
|
|
21
21
|
} from "./chunk-M4OP5ASJ.js";
|
|
22
22
|
import {
|
|
23
23
|
storePath
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-RWQ7T4Y5.js";
|
|
25
25
|
import {
|
|
26
26
|
__name
|
|
27
27
|
} from "./chunk-ZVVMGPBJ.js";
|
|
28
28
|
|
|
29
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/first-run.js
|
|
30
30
|
import { spawnSync } from "node:child_process";
|
|
31
31
|
import { accessSync, constants, realpathSync } from "node:fs";
|
|
32
32
|
import { delimiter, join } from "node:path";
|
|
@@ -84,7 +84,7 @@ var suggested = /* @__PURE__ */ __name((env, contentLanguages) => {
|
|
|
84
84
|
return (own.length ? own : LANGUAGES.filter(({ code }) => code === "en" || code === system)).map(({ name }) => name);
|
|
85
85
|
}, "suggested");
|
|
86
86
|
var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLanguages }) => {
|
|
87
|
-
const { openStore } = await import("./store-
|
|
87
|
+
const { openStore } = await import("./store-DQKJKX2G.js");
|
|
88
88
|
const store = await openStore({ env });
|
|
89
89
|
let rebuild = false;
|
|
90
90
|
try {
|
|
@@ -113,8 +113,8 @@ var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLang
|
|
|
113
113
|
if (!rebuild)
|
|
114
114
|
return;
|
|
115
115
|
const [{ openCache }, { buildStems }] = await Promise.all([
|
|
116
|
-
import("./open-
|
|
117
|
-
import("./store-maintenance-command-
|
|
116
|
+
import("./open-TZ5H7NYM.js"),
|
|
117
|
+
import("./store-maintenance-command-UJ5F5L4H.js")
|
|
118
118
|
]);
|
|
119
119
|
const database = await openCache(storePath(env));
|
|
120
120
|
try {
|
|
@@ -126,7 +126,7 @@ var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLang
|
|
|
126
126
|
var askTools = /* @__PURE__ */ __name(async (run) => {
|
|
127
127
|
const { command, env, io } = run;
|
|
128
128
|
const installed = run.installed ?? ((name) => onPath(name, env));
|
|
129
|
-
const { WIRECAT_TOOLS } = await import("./first-screen-
|
|
129
|
+
const { WIRECAT_TOOLS } = await import("./first-screen-OKZ7GMFR.js");
|
|
130
130
|
const others = WIRECAT_TOOLS.filter((tool) => tool.command !== command);
|
|
131
131
|
const missing = others.filter((tool) => !installed(tool.command));
|
|
132
132
|
io.say("Other WireCat tools \u2014 they share this store, so one search finds everything:");
|
|
@@ -199,7 +199,7 @@ var setupAtStart = /* @__PURE__ */ __name(async (start) => {
|
|
|
199
199
|
contentLanguages: start.contentLanguages,
|
|
200
200
|
all: start.path[0] === "setup",
|
|
201
201
|
io: {
|
|
202
|
-
ask: /* @__PURE__ */ __name(async (prompt) => (await import("./prompt-
|
|
202
|
+
ask: /* @__PURE__ */ __name(async (prompt) => (await import("./prompt-KUC5D4GX.js")).readSecret(prompt, { input, echo: true }), "ask"),
|
|
203
203
|
say: /* @__PURE__ */ __name((text) => process.stderr.write(`${text}
|
|
204
204
|
`), "say")
|
|
205
205
|
}
|
|
@@ -2,13 +2,13 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
refuseModelAddress
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-GHFBT2ZM.js";
|
|
6
6
|
import {
|
|
7
7
|
unit
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-EWUQIUTB.js";
|
|
9
9
|
import {
|
|
10
10
|
onThisComputer
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-L342KHIZ.js";
|
|
12
12
|
import {
|
|
13
13
|
CliError
|
|
14
14
|
} from "./chunk-EA2OB75T.js";
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
__name
|
|
17
17
|
} from "./chunk-ZVVMGPBJ.js";
|
|
18
18
|
|
|
19
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/embeddings/remote.js
|
|
20
20
|
import { setTimeout } from "node:timers/promises";
|
|
21
21
|
var OPENAI_URL = "https://api.openai.com/v1";
|
|
22
22
|
var OPENAI_MODELS = {
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
id,
|
|
6
6
|
text,
|
|
7
7
|
time
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-I55XYREN.js";
|
|
9
9
|
import {
|
|
10
10
|
array,
|
|
11
11
|
nullable,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
unknown
|
|
19
19
|
} from "./chunk-JRFKCYMW.js";
|
|
20
20
|
|
|
21
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/entities/note.js
|
|
22
22
|
var link = {
|
|
23
23
|
target_text: nullable(text),
|
|
24
24
|
kind: text,
|
|
@@ -8,45 +8,45 @@ import {
|
|
|
8
8
|
range,
|
|
9
9
|
systemFor,
|
|
10
10
|
validateImages
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-O6PD7RZY.js";
|
|
12
12
|
import {
|
|
13
13
|
refuseOffComputer
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-GHFBT2ZM.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-ZBYKCVSV.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-L342KHIZ.js";
|
|
29
29
|
import {
|
|
30
30
|
MAX_FILE_BYTES,
|
|
31
31
|
MAX_TEXT_CHARS,
|
|
32
32
|
attachmentMaxBytes
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-ZUG67442.js";
|
|
34
34
|
import {
|
|
35
35
|
isCliFailure
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-3YKAFLXY.js";
|
|
37
37
|
import {
|
|
38
38
|
readSharedSection,
|
|
39
39
|
sharedConfigPath,
|
|
40
40
|
writeSharedSection
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-CDSB7WVG.js";
|
|
42
42
|
import {
|
|
43
43
|
storePath
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-RWQ7T4Y5.js";
|
|
45
45
|
import {
|
|
46
46
|
Credentials,
|
|
47
47
|
pathsAreOverridden,
|
|
48
48
|
resolvePaths
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-5SJZDEIO.js";
|
|
50
50
|
import {
|
|
51
51
|
importFrom,
|
|
52
52
|
resolveFrom
|
|
@@ -16684,26 +16684,26 @@ 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.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/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.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/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.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/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.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/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;
|
|
16704
16704
|
var invalidText = /* @__PURE__ */ __name((text) => {
|
|
16705
|
-
for (const
|
|
16706
|
-
const code =
|
|
16705
|
+
for (const character2 of text) {
|
|
16706
|
+
const code = character2.charCodeAt(0);
|
|
16707
16707
|
if (code < 9 || code === 11 || code > 13 && code < 32 || code >= 127 && code <= 159)
|
|
16708
16708
|
return true;
|
|
16709
16709
|
}
|
|
@@ -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.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/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 });
|
|
@@ -16812,7 +16812,7 @@ var cancelled = /* @__PURE__ */ __name((signal) => {
|
|
|
16812
16812
|
if (signal?.aborted)
|
|
16813
16813
|
throw new CliError("cancelled", "document extraction cancelled");
|
|
16814
16814
|
}, "cancelled");
|
|
16815
|
-
var safeName = /* @__PURE__ */ __name((name) => name.length > 0 && name.length <= 512 && !/^[\\/]|\\/.test(name) && ![...name].some((
|
|
16815
|
+
var safeName = /* @__PURE__ */ __name((name) => name.length > 0 && name.length <= 512 && !/^[\\/]|\\/.test(name) && ![...name].some((character2) => character2.charCodeAt(0) < 32) && !name.split("/").includes(".."), "safeName");
|
|
16816
16816
|
var directory = /* @__PURE__ */ __name((bytes) => {
|
|
16817
16817
|
const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
|
|
16818
16818
|
let end = -1;
|
|
@@ -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.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/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.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/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.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/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.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/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,8 +17106,62 @@ 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.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/attachments/markup.js
|
|
17110
17110
|
var import_iconv_lite2 = __toESM(require_lib3(), 1);
|
|
17111
|
+
|
|
17112
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/domain/html-entities.js
|
|
17113
|
+
var NAMED = {
|
|
17114
|
+
amp: "&",
|
|
17115
|
+
lt: "<",
|
|
17116
|
+
gt: ">",
|
|
17117
|
+
quot: '"',
|
|
17118
|
+
apos: "'",
|
|
17119
|
+
nbsp: "\xA0",
|
|
17120
|
+
shy: "\xAD",
|
|
17121
|
+
ensp: "\u2002",
|
|
17122
|
+
emsp: "\u2003",
|
|
17123
|
+
thinsp: "\u2009",
|
|
17124
|
+
zwnj: "\u200C",
|
|
17125
|
+
zwj: "\u200D",
|
|
17126
|
+
lsquo: "\u2018",
|
|
17127
|
+
rsquo: "\u2019",
|
|
17128
|
+
sbquo: "\u201A",
|
|
17129
|
+
ldquo: "\u201C",
|
|
17130
|
+
rdquo: "\u201D",
|
|
17131
|
+
bdquo: "\u201E",
|
|
17132
|
+
laquo: "\xAB",
|
|
17133
|
+
raquo: "\xBB",
|
|
17134
|
+
lsaquo: "\u2039",
|
|
17135
|
+
rsaquo: "\u203A",
|
|
17136
|
+
ndash: "\u2013",
|
|
17137
|
+
mdash: "\u2014",
|
|
17138
|
+
hellip: "\u2026",
|
|
17139
|
+
bull: "\u2022",
|
|
17140
|
+
middot: "\xB7",
|
|
17141
|
+
copy: "\xA9",
|
|
17142
|
+
reg: "\xAE",
|
|
17143
|
+
trade: "\u2122",
|
|
17144
|
+
euro: "\u20AC",
|
|
17145
|
+
pound: "\xA3",
|
|
17146
|
+
yen: "\xA5",
|
|
17147
|
+
cent: "\xA2",
|
|
17148
|
+
deg: "\xB0",
|
|
17149
|
+
plusmn: "\xB1",
|
|
17150
|
+
times: "\xD7",
|
|
17151
|
+
divide: "\xF7",
|
|
17152
|
+
sect: "\xA7",
|
|
17153
|
+
para: "\xB6",
|
|
17154
|
+
iexcl: "\xA1",
|
|
17155
|
+
iquest: "\xBF"
|
|
17156
|
+
};
|
|
17157
|
+
var character = /* @__PURE__ */ __name((code, entity) => code > 0 && code <= 1114111 ? String.fromCodePoint(code) : entity, "character");
|
|
17158
|
+
var decodeEntities = /* @__PURE__ */ __name((text) => text.replace(/&(#x[0-9a-f]{1,6}|#\d{1,7}|[a-z]{2,8});/gi, (entity, body) => {
|
|
17159
|
+
if (body[0] !== "#")
|
|
17160
|
+
return NAMED[body] ?? NAMED[body.toLowerCase()] ?? entity;
|
|
17161
|
+
return body[1] === "x" || body[1] === "X" ? character(Number.parseInt(body.slice(2), 16), entity) : character(Number(body.slice(1)), entity);
|
|
17162
|
+
}), "decodeEntities");
|
|
17163
|
+
|
|
17164
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/attachments/markup.js
|
|
17111
17165
|
var RTF_SKIPPED = /* @__PURE__ */ new Set([
|
|
17112
17166
|
"fonttbl",
|
|
17113
17167
|
"colortbl",
|
|
@@ -17240,7 +17294,6 @@ var HTML_DROPPED_CLOSE = new Map(["script", "style", "head", "noscript", "templa
|
|
|
17240
17294
|
new RegExp(`<\\/${name}\\s*>`, "gi")
|
|
17241
17295
|
]));
|
|
17242
17296
|
var HTML_BLOCK = /<\/?(p|div|br|li|ul|ol|tr|h[1-6]|blockquote|pre|section|article|header|footer|table|hr)\b[^>]*>/gi;
|
|
17243
|
-
var ENTITIES = { amp: "&", lt: "<", gt: ">", quot: '"', apos: "'", nbsp: "\xA0" };
|
|
17244
17297
|
var replaceTags = /* @__PURE__ */ __name((source, tag, replacement) => {
|
|
17245
17298
|
const end = source.lastIndexOf(">") + 1;
|
|
17246
17299
|
return source.slice(0, end).replace(tag, replacement) + source.slice(end);
|
|
@@ -17271,18 +17324,10 @@ var dropHidden = /* @__PURE__ */ __name((source) => {
|
|
|
17271
17324
|
var htmlText = /* @__PURE__ */ __name((source) => {
|
|
17272
17325
|
const uncommented = source.replace(/<!--[\s\S]*?(-->|$)/g, (comment, close) => close ? "" : comment);
|
|
17273
17326
|
const blocks = replaceTags(dropHidden(uncommented).replace(/<\/t[dh]\s*>/gi, " "), HTML_BLOCK, "\n");
|
|
17274
|
-
return replaceTags(blocks, /<[^>]*>/g, "").replace(
|
|
17275
|
-
const lower = body.toLowerCase();
|
|
17276
|
-
if (lower.startsWith("#x"))
|
|
17277
|
-
return safeChar(Number.parseInt(lower.slice(2), 16), entity);
|
|
17278
|
-
if (lower.startsWith("#"))
|
|
17279
|
-
return safeChar(Number(lower.slice(1)), entity);
|
|
17280
|
-
return ENTITIES[lower] ?? entity;
|
|
17281
|
-
}).replace(/(?<![ \t\u00a0])[ \t\u00a0]+\n/g, "\n").replace(/\n{3,}/g, "\n\n").trim();
|
|
17327
|
+
return decodeEntities(replaceTags(blocks, /<[^>]*>/g, "")).replace(/(?<![ \t\u00a0])[ \t\u00a0]+\n/g, "\n").replace(/\n{3,}/g, "\n\n").trim();
|
|
17282
17328
|
}, "htmlText");
|
|
17283
|
-
var safeChar = /* @__PURE__ */ __name((code, fallback) => code > 0 && code <= 1114111 ? String.fromCodePoint(code) : fallback, "safeChar");
|
|
17284
17329
|
|
|
17285
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17330
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/readers/html/page.js
|
|
17286
17331
|
var clean = /* @__PURE__ */ __name((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim() : "", "clean");
|
|
17287
17332
|
var namesIn = /* @__PURE__ */ __name((value) => [value].flat().map((entry) => typeof entry === "string" ? clean(entry) : clean(entry?.name)).filter(Boolean).join(", "), "namesIn");
|
|
17288
17333
|
var jsonLdNodes = /* @__PURE__ */ __name((document) => {
|
|
@@ -17338,7 +17383,7 @@ var markdownSections = /* @__PURE__ */ __name((text) => {
|
|
|
17338
17383
|
return found.map((section, index) => ({ ...section, end: found[index + 1]?.start ?? text.length }));
|
|
17339
17384
|
}, "markdownSections");
|
|
17340
17385
|
|
|
17341
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17386
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/readers/html/index.js
|
|
17342
17387
|
var HTML = /* @__PURE__ */ new Set([".html", ".htm", ".xhtml"]);
|
|
17343
17388
|
var first = /* @__PURE__ */ __name((...values) => values.find((value) => typeof value === "string" && value !== ""), "first");
|
|
17344
17389
|
var loaded = /* @__PURE__ */ __name(async (load, name) => {
|
|
@@ -17409,10 +17454,10 @@ var html = {
|
|
|
17409
17454
|
}, "read")
|
|
17410
17455
|
};
|
|
17411
17456
|
|
|
17412
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17457
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
17413
17458
|
import { posix } from "node:path";
|
|
17414
17459
|
|
|
17415
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17460
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/attachments/sheets.js
|
|
17416
17461
|
var columnName = /* @__PURE__ */ __name((column) => {
|
|
17417
17462
|
let name = "";
|
|
17418
17463
|
for (let rest = column; rest > 0; rest = Math.floor((rest - 1) / 26))
|
|
@@ -17467,7 +17512,7 @@ var sheetText = /* @__PURE__ */ __name((sheets2, maxChars = MAX_TEXT_CHARS) => {
|
|
|
17467
17512
|
return { text: parts.join("").trim(), truncated: false };
|
|
17468
17513
|
}, "sheetText");
|
|
17469
17514
|
|
|
17470
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17515
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
17471
17516
|
var OFFICE = "urn:oasis:names:tc:opendocument:xmlns:office:1.0";
|
|
17472
17517
|
var TEXT = "urn:oasis:names:tc:opendocument:xmlns:text:1.0";
|
|
17473
17518
|
var TABLE = "urn:oasis:names:tc:opendocument:xmlns:table:1.0";
|
|
@@ -17542,7 +17587,7 @@ var rootIs = /* @__PURE__ */ __name((node, name, namespaces) => {
|
|
|
17542
17587
|
}, "rootIs");
|
|
17543
17588
|
var target = /* @__PURE__ */ __name((owner, reference) => {
|
|
17544
17589
|
const decoded = decodeURIComponent(reference.split(/[?#]/)[0] ?? "");
|
|
17545
|
-
if (/^[a-z][a-z0-9+.-]*:|^[\\/]|\\/i.test(decoded) || [...decoded].some((
|
|
17590
|
+
if (/^[a-z][a-z0-9+.-]*:|^[\\/]|\\/i.test(decoded) || [...decoded].some((character2) => character2.charCodeAt(0) < 32))
|
|
17546
17591
|
throw new Error("external_part");
|
|
17547
17592
|
const path = posix.normalize(posix.join(posix.dirname(owner), decoded));
|
|
17548
17593
|
if (path.startsWith("../") || !path || path === ".")
|
|
@@ -17882,7 +17927,7 @@ var readDocument = /* @__PURE__ */ __name(async (bytes, kind, signal) => {
|
|
|
17882
17927
|
}
|
|
17883
17928
|
}, "readDocument");
|
|
17884
17929
|
|
|
17885
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17930
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/readers/office/index.js
|
|
17886
17931
|
var office = {
|
|
17887
17932
|
id: "office",
|
|
17888
17933
|
version: documentExtractor("odt"),
|
|
@@ -17893,7 +17938,7 @@ var office = {
|
|
|
17893
17938
|
}, "read")
|
|
17894
17939
|
};
|
|
17895
17940
|
|
|
17896
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17941
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/readers/pdf/index.js
|
|
17897
17942
|
var pdf = {
|
|
17898
17943
|
id: "pdf",
|
|
17899
17944
|
version: "unpdf",
|
|
@@ -17960,7 +18005,7 @@ var pdf = {
|
|
|
17960
18005
|
}), "read")
|
|
17961
18006
|
};
|
|
17962
18007
|
|
|
17963
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18008
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/readers/plain/index.js
|
|
17964
18009
|
var PLAIN = /* @__PURE__ */ new Set([".txt", ".md", ".markdown", ".csv", ".tsv", ".json", ".log"]);
|
|
17965
18010
|
var isPlain = /* @__PURE__ */ __name((hint) => PLAIN.has(extensionOf(hint)) || hint.mime?.startsWith("text/") || hint.mime === "application/json", "isPlain");
|
|
17966
18011
|
var readPlain = /* @__PURE__ */ __name((bytes) => {
|
|
@@ -17980,7 +18025,7 @@ var plain = {
|
|
|
17980
18025
|
read: /* @__PURE__ */ __name(async (bytes) => readPlain(bytes), "read")
|
|
17981
18026
|
};
|
|
17982
18027
|
|
|
17983
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18028
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/readers/rtf/index.js
|
|
17984
18029
|
var rtf = {
|
|
17985
18030
|
id: "rtf",
|
|
17986
18031
|
version: "v1",
|
|
@@ -17988,10 +18033,10 @@ var rtf = {
|
|
|
17988
18033
|
read: /* @__PURE__ */ __name(async (bytes) => derived(bytes, "rtf:v1", rtfText), "read")
|
|
17989
18034
|
};
|
|
17990
18035
|
|
|
17991
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18036
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
17992
18037
|
import { basename } from "node:path";
|
|
17993
18038
|
|
|
17994
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18039
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/attachments/csv-spans.js
|
|
17995
18040
|
var delimitedSpans = /* @__PURE__ */ __name((text, delimiter, maxCells = 1e4) => {
|
|
17996
18041
|
const cells = [];
|
|
17997
18042
|
let row = 1, column = 1, start = 0, quoted = false, truncated = false;
|
|
@@ -18029,7 +18074,7 @@ var delimitedSpans = /* @__PURE__ */ __name((text, delimiter, maxCells = 1e4) =>
|
|
|
18029
18074
|
return { cells, truncated };
|
|
18030
18075
|
}, "delimitedSpans");
|
|
18031
18076
|
|
|
18032
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18077
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
18033
18078
|
var DELIMITED = {
|
|
18034
18079
|
".csv": ",",
|
|
18035
18080
|
".tsv": " ",
|
|
@@ -18068,7 +18113,7 @@ var sheets = {
|
|
|
18068
18113
|
}, "read")
|
|
18069
18114
|
};
|
|
18070
18115
|
|
|
18071
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18116
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/readers/registry.js
|
|
18072
18117
|
var BUILT_INS = [office, pdf, docx, doc, rtf, html, sheets, plain, image];
|
|
18073
18118
|
var HEAD_BYTES = 1024;
|
|
18074
18119
|
var readers = [...BUILT_INS];
|
|
@@ -18078,7 +18123,7 @@ var readWithRegistry = /* @__PURE__ */ __name(async (bytes, hint, context) => {
|
|
|
18078
18123
|
return reader ? reader.read(bytes, hint, context) : { status: "unsupported" };
|
|
18079
18124
|
}, "readWithRegistry");
|
|
18080
18125
|
|
|
18081
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18126
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
18082
18127
|
var importEngine = /* @__PURE__ */ __name((name) => importFrom(new URL("attachments/extract.js", import.meta.resolve("@wirecat/cli-core")).href, name), "importEngine");
|
|
18083
18128
|
var extensionOf2 = /* @__PURE__ */ __name(({ name, path }) => extname2(name ?? path).toLowerCase(), "extensionOf");
|
|
18084
18129
|
var extractText = /* @__PURE__ */ __name(async (bytes, hint, load, signal, env = process.env) => {
|
|
@@ -18116,7 +18161,7 @@ var engineStates = /* @__PURE__ */ __name((resolve = (name) => resolveFrom(new U
|
|
|
18116
18161
|
}
|
|
18117
18162
|
})), "engineStates");
|
|
18118
18163
|
|
|
18119
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18164
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/http/time-limit.js
|
|
18120
18165
|
var timeLimit = /* @__PURE__ */ __name((ms) => {
|
|
18121
18166
|
const controller = new AbortController();
|
|
18122
18167
|
const timer = setTimeout(() => controller.abort(new DOMException("The operation timed out.", "TimeoutError")), ms);
|
|
@@ -18132,7 +18177,7 @@ var withTimeLimit = /* @__PURE__ */ __name(async (ms, run2) => {
|
|
|
18132
18177
|
}
|
|
18133
18178
|
}, "withTimeLimit");
|
|
18134
18179
|
|
|
18135
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18180
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/models/openai.js
|
|
18136
18181
|
var options = strictObject({
|
|
18137
18182
|
temperature: range(0, 2),
|
|
18138
18183
|
top_p: range(0, 1),
|
|
@@ -18199,7 +18244,7 @@ var openai = {
|
|
|
18199
18244
|
}), "complete")
|
|
18200
18245
|
};
|
|
18201
18246
|
|
|
18202
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18247
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/models/index.js
|
|
18203
18248
|
var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
18204
18249
|
complete: /* @__PURE__ */ __name(async (request) => {
|
|
18205
18250
|
if (deps.signal?.aborted)
|
|
@@ -18214,7 +18259,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
18214
18259
|
if (!adapter && target2.provider === "openai")
|
|
18215
18260
|
adapter = openai;
|
|
18216
18261
|
if (!adapter && target2.provider === "anthropic")
|
|
18217
|
-
adapter = (await import("./anthropic-
|
|
18262
|
+
adapter = (await import("./anthropic-RZGPDESM.js")).anthropic;
|
|
18218
18263
|
if (!adapter)
|
|
18219
18264
|
throw new CliError("validation_error", `no model adapter for ${target2.provider}`);
|
|
18220
18265
|
if (request.images !== void 0 && adapter.images !== true)
|
|
@@ -18274,7 +18319,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
18274
18319
|
}, "complete")
|
|
18275
18320
|
}), "modelGateway");
|
|
18276
18321
|
|
|
18277
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18322
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/embeddings/keys.js
|
|
18278
18323
|
var endpointKeyName = /* @__PURE__ */ __name((baseUrl) => {
|
|
18279
18324
|
const host = new URL(baseUrl).host;
|
|
18280
18325
|
return ["openai", "anthropic"].includes(host) ? `endpoint:${host}` : host;
|
|
@@ -18307,7 +18352,7 @@ var embeddingKeys = /* @__PURE__ */ __name((app, env = process.env, keyring) =>
|
|
|
18307
18352
|
};
|
|
18308
18353
|
}, "embeddingKeys");
|
|
18309
18354
|
|
|
18310
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18355
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/domain/recovery.js
|
|
18311
18356
|
var withRecovery = /* @__PURE__ */ __name((error) => ({
|
|
18312
18357
|
...error,
|
|
18313
18358
|
retryable: typeof error.retryable === "boolean" ? error.retryable : error.code === "rate_limited" || error.status === 429
|
|
@@ -19354,7 +19399,7 @@ function imageSize(input) {
|
|
|
19354
19399
|
}
|
|
19355
19400
|
__name(imageSize, "imageSize");
|
|
19356
19401
|
|
|
19357
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19402
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/attachments/ocr.js
|
|
19358
19403
|
var MAX_PAGES = 20;
|
|
19359
19404
|
var MAX_PIXELS = 2e7;
|
|
19360
19405
|
var cancelled2 = /* @__PURE__ */ __name((signal) => {
|
|
@@ -19514,7 +19559,7 @@ var ocrPdf = /* @__PURE__ */ __name(async (bytes, pipeline, load, signal) => {
|
|
|
19514
19559
|
}
|
|
19515
19560
|
}, "ocrPdf");
|
|
19516
19561
|
|
|
19517
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19562
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/attachments/picture-reading.js
|
|
19518
19563
|
import { spawn } from "node:child_process";
|
|
19519
19564
|
import { mkdtempSync, readFileSync as readFileSync2, rmSync, writeFileSync } from "node:fs";
|
|
19520
19565
|
import { tmpdir } from "node:os";
|
|
@@ -2506,6 +2506,7 @@ var realSleep = /* @__PURE__ */ __name((ms, signal) => new Promise((resolve2, re
|
|
|
2506
2506
|
reject(abortError());
|
|
2507
2507
|
}, { once: true });
|
|
2508
2508
|
}), "realSleep");
|
|
2509
|
+
var wallClock = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Date(), "wallClock");
|
|
2509
2510
|
|
|
2510
2511
|
// node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/logging.js
|
|
2511
2512
|
import { appendFileSync } from "node:fs";
|
|
@@ -2735,6 +2736,7 @@ export {
|
|
|
2735
2736
|
keyringService,
|
|
2736
2737
|
Credentials,
|
|
2737
2738
|
realSleep,
|
|
2739
|
+
wallClock,
|
|
2738
2740
|
logRecordOf,
|
|
2739
2741
|
createRecordLog,
|
|
2740
2742
|
indent,
|
|
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
PRAGMAS
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-OUM4ZO53.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
8
|
} from "./chunk-EA2OB75T.js";
|
|
@@ -10,7 +10,7 @@ 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.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/store/sqlite-warning.js
|
|
14
14
|
var SQLITE_WARNING = "SQLite is an experimental feature";
|
|
15
15
|
var quieted = /* @__PURE__ */ new WeakSet();
|
|
16
16
|
var quietSqliteWarning = /* @__PURE__ */ __name((host = process) => {
|
|
@@ -31,7 +31,7 @@ var isSqliteWarning = /* @__PURE__ */ __name((warning, options) => {
|
|
|
31
31
|
return name === "ExperimentalWarning" && message.startsWith(SQLITE_WARNING);
|
|
32
32
|
}, "isSqliteWarning");
|
|
33
33
|
|
|
34
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/store/open.js
|
|
35
35
|
var openCache = /* @__PURE__ */ __name(async (path) => {
|
|
36
36
|
const database = await openFile(path);
|
|
37
37
|
try {
|
|
@@ -44,12 +44,12 @@ var openCache = /* @__PURE__ */ __name(async (path) => {
|
|
|
44
44
|
}, "openCache");
|
|
45
45
|
var openFile = /* @__PURE__ */ __name((path) => "Bun" in globalThis ? openUnderBun(path) : openUnderNode(path), "openFile");
|
|
46
46
|
var openUnderBun = /* @__PURE__ */ __name(async (path) => {
|
|
47
|
-
const { openWithBunSqlite } = await import("./bun-sqlite-
|
|
47
|
+
const { openWithBunSqlite } = await import("./bun-sqlite-KHLHXXGH.js");
|
|
48
48
|
return await openWithBunSqlite(path);
|
|
49
49
|
}, "openUnderBun");
|
|
50
50
|
var openUnderNode = /* @__PURE__ */ __name(async (path) => {
|
|
51
51
|
quietSqliteWarning();
|
|
52
|
-
const { openWithNodeSqlite } = await import("./node-sqlite-
|
|
52
|
+
const { openWithNodeSqlite } = await import("./node-sqlite-IENH4TRX.js");
|
|
53
53
|
return openWithNodeSqlite(path);
|
|
54
54
|
}, "openUnderNode");
|
|
55
55
|
var runtime = /* @__PURE__ */ __name(() => {
|