@wirecat/drive-cli 0.67.0 → 0.68.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-DVZUVAPQ.js → all-profiles-BU6XUFUP.js} +7 -7
- package/dist/bundle/{anthropic-Y45C45O2.js → anthropic-ZP5B7S2Z.js} +2 -2
- package/dist/bundle/{app-server-GTXUOUGD.js → app-server-EB4DH6T7.js} +49 -45
- package/dist/bundle/{bun-QVJV76QJ.js → bun-PWMM6L45.js} +2 -2
- package/dist/bundle/{bun-sqlite-CC7PIAMH.js → bun-sqlite-6VPR2SVC.js} +3 -3
- package/dist/bundle/{chunk-JO7BJYAP.js → chunk-2UHQVRH2.js} +15 -15
- package/dist/bundle/{chunk-NFIR346J.js → chunk-2VYEGKQ3.js} +1 -1
- package/dist/bundle/{chunk-MEY7URZZ.js → chunk-43NEDPXB.js} +4 -4
- package/dist/bundle/{chunk-YVUAG7RF.js → chunk-5G2BY4B6.js} +15 -15
- package/dist/bundle/{chunk-T2VAEDJS.js → chunk-5W65QTYS.js} +3 -3
- package/dist/bundle/{chunk-LSAIXPAX.js → chunk-6HFZZ2PW.js} +1 -1
- package/dist/bundle/{chunk-AJ3DFPRT.js → chunk-6QR7NKMG.js} +1 -1
- package/dist/bundle/{chunk-NWYVOHIX.js → chunk-6WAC2LOS.js} +459 -419
- package/dist/bundle/{chunk-HJF2QGOX.js → chunk-74NCZKRW.js} +29 -16
- package/dist/bundle/{chunk-4VH7M2OD.js → chunk-7A77GYCE.js} +2 -2
- package/dist/bundle/{chunk-2PIA45FC.js → chunk-7BXVI7XF.js} +1 -1
- package/dist/bundle/{chunk-ETAFFY3J.js → chunk-7TNQZKRD.js} +52 -52
- package/dist/bundle/{chunk-E3XA56TS.js → chunk-AIEMFRBU.js} +1 -1
- package/dist/bundle/{chunk-EXWOOST5.js → chunk-AXYG2DDY.js} +111 -83
- package/dist/bundle/{chunk-LXRBTXCZ.js → chunk-BXHFJTU5.js} +2 -2
- package/dist/bundle/{chunk-OOBSSU2G.js → chunk-CK2SQ2CE.js} +14 -13
- package/dist/bundle/{chunk-MF46W7PQ.js → chunk-CMWFYZ45.js} +1 -1
- package/dist/bundle/{chunk-4G7WQNG7.js → chunk-CRIEW4FP.js} +1 -1
- package/dist/bundle/{chunk-RC72RU66.js → chunk-CVAJMRRD.js} +5 -5
- package/dist/bundle/{chunk-YI4DXASF.js → chunk-DIZBJLPM.js} +36 -32
- package/dist/bundle/{chunk-FS2PG2PE.js → chunk-DU23ET2O.js} +18 -18
- package/dist/bundle/{chunk-JY2GZDJL.js → chunk-DYLYH7VE.js} +3 -3
- package/dist/bundle/{chunk-C72WYRXD.js → chunk-EEE4H2PA.js} +10 -10
- package/dist/bundle/{chunk-2MEVCMBW.js → chunk-EOC7RHJ2.js} +3 -3
- package/dist/bundle/{chunk-ZH4H5XTA.js → chunk-EXWZCI5G.js} +1 -1
- package/dist/bundle/{chunk-VZ5KETIX.js → chunk-F7KAMSXA.js} +2 -2
- package/dist/bundle/{chunk-SJE7UGOW.js → chunk-FAMXUI2X.js} +4 -4
- package/dist/bundle/{chunk-IRULPE5M.js → chunk-GTLXBAJV.js} +297 -281
- package/dist/bundle/{chunk-UFNE57VY.js → chunk-IVOG6T6P.js} +2 -2
- package/dist/bundle/{chunk-MBLB4TQI.js → chunk-J5LXL435.js} +18 -18
- package/dist/bundle/{chunk-XZCF5XU7.js → chunk-JMZQBRRZ.js} +5 -5
- package/dist/bundle/{chunk-PDHN4GHU.js → chunk-JZ3MT7IE.js} +1 -1
- package/dist/bundle/{chunk-P6A77LMP.js → chunk-KPKIHJIT.js} +5 -7
- package/dist/bundle/{chunk-2Y3YBDZX.js → chunk-MLSXHTUB.js} +137 -135
- package/dist/bundle/{chunk-ZEPDEFVT.js → chunk-MOKEB656.js} +1 -1
- package/dist/bundle/{chunk-BHSLMJF7.js → chunk-MWCPKUU4.js} +4 -4
- package/dist/bundle/{chunk-ULH3TNUP.js → chunk-NV75QPML.js} +4 -4
- package/dist/bundle/{chunk-CWDC6QJM.js → chunk-O7T3WGCV.js} +4 -4
- package/dist/bundle/{chunk-JJHDV32D.js → chunk-PGPHEC2X.js} +1 -1
- package/dist/bundle/{chunk-AAZPDWRD.js → chunk-PJ3FKBXG.js} +1 -1
- package/dist/bundle/{chunk-MEQNAZ6R.js → chunk-PWIEOATY.js} +5 -5
- package/dist/bundle/{chunk-6ERQE4FS.js → chunk-Q6BD6RUH.js} +40 -40
- package/dist/bundle/{chunk-3RG6LL25.js → chunk-QKY24RWV.js} +10 -10
- package/dist/bundle/{chunk-ABJQ6IDU.js → chunk-QRSPFCRY.js} +16 -16
- package/dist/bundle/{chunk-U2ERT45N.js → chunk-QTRYJZL7.js} +4 -4
- package/dist/bundle/{chunk-SXJDCRXE.js → chunk-QVJMFZFW.js} +1 -1
- package/dist/bundle/{chunk-WBKYZZQT.js → chunk-QWGEOQHA.js} +1 -1
- package/dist/bundle/{chunk-AZKFZ7J7.js → chunk-R5FTCNLJ.js} +1 -1
- package/dist/bundle/{chunk-DAFKV6DJ.js → chunk-RT5NT62B.js} +12 -12
- package/dist/bundle/{chunk-UOAHZV3K.js → chunk-SOS4U2RF.js} +18 -18
- package/dist/bundle/{chunk-ZU5VQYNY.js → chunk-TI2OANJZ.js} +1 -1
- package/dist/bundle/{chunk-5DMPGTNR.js → chunk-U52QE4QV.js} +2 -2
- package/dist/bundle/{chunk-JLUQZZ26.js → chunk-UFPRP7MG.js} +7 -7
- package/dist/bundle/{chunk-WWW7YTFG.js → chunk-UIKVP23D.js} +1 -1
- package/dist/bundle/{chunk-WKIQKGOF.js → chunk-ULNN3LCY.js} +26 -24
- package/dist/bundle/{chunk-5TSILGTO.js → chunk-UUQJVKPB.js} +323 -323
- package/dist/bundle/{chunk-7AZCAUST.js → chunk-UYBLNGZ2.js} +1 -1
- package/dist/bundle/{chunk-V7E25BUU.js → chunk-WCNTDETD.js} +2 -2
- package/dist/bundle/{chunk-ZK46UHDP.js → chunk-WGX4DZPW.js} +2 -2
- package/dist/bundle/{chunk-7J2IP3WL.js → chunk-WUFZGPXX.js} +6 -6
- package/dist/bundle/{chunk-Y5WSRG3F.js → chunk-YUGTJBV3.js} +2 -2
- package/dist/bundle/{chunk-JCNEPYQZ.js → chunk-YYIWPH53.js} +12 -12
- package/dist/bundle/{chunk-RLH6BOEG.js → chunk-Z5BMYI2V.js} +5 -5
- package/dist/bundle/{chunk-FOMQ4MG3.js → chunk-ZAIE3G5I.js} +2 -2
- package/dist/bundle/{chunk-QOKPRFHM.js → chunk-ZSVMZH5O.js} +2 -2
- package/dist/bundle/{chunk-JEMBW6IO.js → chunk-ZVQDOKDY.js} +1 -1
- package/dist/bundle/{cli-U4LSBYDV.js → cli-L7P36YUH.js} +50 -50
- package/dist/bundle/{command-contract-UU5T24ZZ.js → command-contract-EYFGMKIG.js} +16 -16
- package/dist/bundle/{command-server-entry-PK6FBUPO.js → command-server-entry-H3VGPOLJ.js} +23 -23
- package/dist/bundle/{decode-3ZE6NBKV.js → decode-JEU6JWCV.js} +2 -2
- package/dist/bundle/drive.js +3 -3
- package/dist/bundle/{echarts-6FWNCNXK.js → echarts-SDZA2SWG.js} +2 -2
- package/dist/bundle/{embed-DGYBBZUW.js → embed-WUKOASQG.js} +3 -3
- package/dist/bundle/{embedder-O7A6VMWI.js → embedder-UBRAXRDZ.js} +6 -6
- package/dist/bundle/{entry-CDJ2QSU2.js → entry-C4NUQFTF.js} +6 -6
- package/dist/bundle/{first-run-UOQW7DN5.js → first-run-PKHBS7B4.js} +5 -5
- package/dist/bundle/{first-screen-SNDV4YKF.js → first-screen-QOVOM4BF.js} +17 -17
- package/dist/bundle/{google-HPX52KMC.js → google-XXHSMTVK.js} +14 -14
- package/dist/bundle/{google-api-HIMN4XL5.js → google-api-SQQ4BSNR.js} +51 -51
- package/dist/bundle/{grants-RO42I6E4.js → grants-2U4JVT6O.js} +56 -56
- package/dist/bundle/{identity-NFGHDPLL.js → identity-SRL6RSU2.js} +1 -1
- package/dist/bundle/{instructions-6JAQYCM6.js → instructions-7T6JJIFS.js} +1 -1
- package/dist/bundle/{login-RZOQN63N.js → login-N243GGEE.js} +56 -56
- package/dist/bundle/{node-KSIX3GIH.js → node-BZDMUFTW.js} +2 -2
- package/dist/bundle/{node-sqlite-4FJ6WJXN.js → node-sqlite-SZQCCMV2.js} +4 -4
- package/dist/bundle/{oauth-BKZAMFKK.js → oauth-CMAFXX6A.js} +4 -4
- package/dist/bundle/{open-4AQJGH42.js → open-RVTPKDA3.js} +2 -2
- package/dist/bundle/{openai-24F2OX55.js → openai-6NN63BMH.js} +13 -13
- package/dist/bundle/{process-7NOA2T7H.js → process-756VBE7E.js} +1 -1
- package/dist/bundle/{program-7JHMLDEX.js → program-B4QBJYB5.js} +78 -75
- package/dist/bundle/{prompt-NM66MAZ4.js → prompt-HGP2DSRW.js} +2 -2
- package/dist/bundle/{recognize-DBKV2JYZ.js → recognize-26SHB7HI.js} +1 -1
- package/dist/bundle/{remote-ABWUTBVB.js → remote-Z4PWHZ5N.js} +7 -7
- package/dist/bundle/{rerank-FQAU4ENY.js → rerank-QHJZJK3Q.js} +4 -4
- package/dist/bundle/{serve-QLJG4QZD.js → serve-MYJW5IEM.js} +6 -6
- package/dist/bundle/server-HBZPIHDX.js +74 -0
- package/dist/bundle/{server-VGZNK5XD.js → server-XFW3V7CR.js} +38 -36
- package/dist/bundle/{services-5KARVUHK.js → services-IQG2RVTO.js} +25 -25
- package/dist/bundle/{sqlite-runtime-ILF6EFQJ.js → sqlite-runtime-X4GB5PBV.js} +3 -3
- package/dist/bundle/{state-R2M56GPU.js → state-ATQK2X3W.js} +3 -3
- package/dist/bundle/{store-2OBVMUQL.js → store-MEHEUOJH.js} +11 -11
- package/dist/bundle/{store-DA4K7HWW.js → store-QUBUPK6F.js} +13 -13
- package/dist/bundle/store-maintenance-command-33ULVDWY.js +65 -0
- package/dist/bundle/tokens-A2GP4F34.js +111 -0
- package/dist/policy.d.ts +2 -0
- package/dist/policy.d.ts.map +1 -1
- package/dist/policy.js +3 -2
- package/dist/policy.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +3 -2
- package/dist/program.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/server-NUBLY5SV.js +0 -74
- package/dist/bundle/store-maintenance-command-KSIPI5B5.js +0 -65
- package/dist/bundle/tokens-VQDGSHRB.js +0 -111
|
@@ -7,7 +7,7 @@ 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.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/ports/app.js
|
|
11
11
|
import { readFileSync } from "node:fs";
|
|
12
12
|
var envName = /* @__PURE__ */ __name((app, name) => `${app.envPrefix}_${name}`, "envName");
|
|
13
13
|
var locking = /* @__PURE__ */ __name((value) => value !== void 0 && value.trim() !== "" && value !== "0", "locking");
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
installFiles,
|
|
9
9
|
megabytes,
|
|
10
10
|
sharedModelsDirectory
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-5W65QTYS.js";
|
|
12
12
|
import {
|
|
13
13
|
importFrom
|
|
14
14
|
} 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.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/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.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/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.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/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");
|
|
@@ -5,15 +5,15 @@ import {
|
|
|
5
5
|
readLock,
|
|
6
6
|
releaseLock,
|
|
7
7
|
takeLock
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-U52QE4QV.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.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
|
|
14
14
|
import { existsSync as existsSync2, readFileSync as readFileSync2 } from "node:fs";
|
|
15
15
|
|
|
16
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/mcp/http/activity.js
|
|
17
17
|
import { randomBytes } from "node:crypto";
|
|
18
18
|
import { chmodSync, existsSync, mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
19
19
|
import { dirname } from "node:path";
|
|
@@ -86,7 +86,7 @@ var activityRecorder = /* @__PURE__ */ __name((path, now = Date.now) => {
|
|
|
86
86
|
};
|
|
87
87
|
}, "activityRecorder");
|
|
88
88
|
|
|
89
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
89
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
|
|
90
90
|
var ACCESS_SECONDS = 60 * 60;
|
|
91
91
|
var REFRESH_SECONDS = 30 * 24 * 60 * 60;
|
|
92
92
|
var readStored = /* @__PURE__ */ __name((path) => existsSync2(path) ? JSON.parse(readFileSync2(path, "utf8")) : { clients: [], tokens: [] }, "readStored");
|
|
@@ -4,15 +4,15 @@ import {
|
|
|
4
4
|
PLAIN_HTTP_REFUSED,
|
|
5
5
|
modelAddressAllowed,
|
|
6
6
|
onThisComputer
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-6QR7NKMG.js";
|
|
8
8
|
import {
|
|
9
9
|
readSharedSection,
|
|
10
10
|
sharedConfigPath,
|
|
11
11
|
writeSharedSection
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-PWIEOATY.js";
|
|
13
13
|
import {
|
|
14
14
|
storePath
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-CRIEW4FP.js";
|
|
16
16
|
import {
|
|
17
17
|
boolean,
|
|
18
18
|
isoTimestamp,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
__name
|
|
29
29
|
} from "./chunk-ZVVMGPBJ.js";
|
|
30
30
|
|
|
31
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/models/local-only.js
|
|
32
32
|
var SECTION = "local_only";
|
|
33
33
|
var Setting = strictObject({
|
|
34
34
|
on: boolean(),
|
|
@@ -7,7 +7,7 @@ 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.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/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();
|
|
@@ -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.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/stdin-field.js
|
|
8
8
|
var fields = /* @__PURE__ */ new WeakMap();
|
|
9
9
|
var readsStdin = /* @__PURE__ */ __name((command, field) => {
|
|
10
10
|
fields.set(command, field);
|
|
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
storePath
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-CRIEW4FP.js";
|
|
6
6
|
import {
|
|
7
7
|
resolvePaths
|
|
8
8
|
} from "./chunk-MW46BLWH.js";
|
|
@@ -16,11 +16,11 @@ 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.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/store/shared-config.js
|
|
20
20
|
import { mkdirSync, readFileSync, renameSync, statSync, writeFileSync } from "node:fs";
|
|
21
21
|
import { dirname, join, resolve } from "node:path";
|
|
22
22
|
|
|
23
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/domain/task-categories.js
|
|
24
24
|
var DEFAULT_TASK_CATEGORIES = [
|
|
25
25
|
{
|
|
26
26
|
name: "taxes",
|
|
@@ -775,7 +775,7 @@ var storedTaskCategories = /* @__PURE__ */ __name((json) => {
|
|
|
775
775
|
}
|
|
776
776
|
}, "storedTaskCategories");
|
|
777
777
|
|
|
778
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
778
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/store/shared-config.js
|
|
779
779
|
var SECTION = "task_categories";
|
|
780
780
|
var sharedConfigPath = /* @__PURE__ */ __name((store, env = process.env) => {
|
|
781
781
|
const paths = resolvePaths({ appName: "WireCat", prefix: "WIRECAT", env });
|
|
@@ -794,7 +794,7 @@ var readJson = /* @__PURE__ */ __name((path) => {
|
|
|
794
794
|
}
|
|
795
795
|
let parsed;
|
|
796
796
|
try {
|
|
797
|
-
parsed = JSON.parse(text);
|
|
797
|
+
parsed = JSON.parse(text.replace(/^\uFEFF/u, ""));
|
|
798
798
|
} catch (error) {
|
|
799
799
|
throw new CliError("configuration_error", `${path} is not valid JSON: ${error.message}`);
|
|
800
800
|
}
|
|
@@ -8,40 +8,40 @@ import {
|
|
|
8
8
|
range,
|
|
9
9
|
systemFor,
|
|
10
10
|
validateImages
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-F7KAMSXA.js";
|
|
12
12
|
import {
|
|
13
13
|
refuseOffComputer
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-O7T3WGCV.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-MOKEB656.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-6QR7NKMG.js";
|
|
29
29
|
import {
|
|
30
30
|
MAX_FILE_BYTES,
|
|
31
31
|
MAX_TEXT_CHARS,
|
|
32
32
|
attachmentMaxBytes
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-BXHFJTU5.js";
|
|
34
34
|
import {
|
|
35
35
|
isCliFailure
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-UYBLNGZ2.js";
|
|
37
37
|
import {
|
|
38
38
|
readSharedSection,
|
|
39
39
|
sharedConfigPath,
|
|
40
40
|
writeSharedSection
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-PWIEOATY.js";
|
|
42
42
|
import {
|
|
43
43
|
storePath
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-CRIEW4FP.js";
|
|
45
45
|
import {
|
|
46
46
|
Credentials,
|
|
47
47
|
pathsAreOverridden,
|
|
@@ -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.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/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.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/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.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/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.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/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.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/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.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/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.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/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.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/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.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/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,7 +17106,7 @@ 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.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/attachments/markup.js
|
|
17110
17110
|
var import_iconv_lite2 = __toESM(require_lib3(), 1);
|
|
17111
17111
|
var RTF_SKIPPED = /* @__PURE__ */ new Set([
|
|
17112
17112
|
"fonttbl",
|
|
@@ -17282,7 +17282,7 @@ var htmlText = /* @__PURE__ */ __name((source) => {
|
|
|
17282
17282
|
}, "htmlText");
|
|
17283
17283
|
var safeChar = /* @__PURE__ */ __name((code, fallback) => code > 0 && code <= 1114111 ? String.fromCodePoint(code) : fallback, "safeChar");
|
|
17284
17284
|
|
|
17285
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17285
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/readers/html/page.js
|
|
17286
17286
|
var clean = /* @__PURE__ */ __name((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim() : "", "clean");
|
|
17287
17287
|
var namesIn = /* @__PURE__ */ __name((value) => [value].flat().map((entry) => typeof entry === "string" ? clean(entry) : clean(entry?.name)).filter(Boolean).join(", "), "namesIn");
|
|
17288
17288
|
var jsonLdNodes = /* @__PURE__ */ __name((document) => {
|
|
@@ -17338,7 +17338,7 @@ var markdownSections = /* @__PURE__ */ __name((text) => {
|
|
|
17338
17338
|
return found.map((section, index) => ({ ...section, end: found[index + 1]?.start ?? text.length }));
|
|
17339
17339
|
}, "markdownSections");
|
|
17340
17340
|
|
|
17341
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17341
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/readers/html/index.js
|
|
17342
17342
|
var HTML = /* @__PURE__ */ new Set([".html", ".htm", ".xhtml"]);
|
|
17343
17343
|
var first = /* @__PURE__ */ __name((...values) => values.find((value) => typeof value === "string" && value !== ""), "first");
|
|
17344
17344
|
var loaded = /* @__PURE__ */ __name(async (load, name) => {
|
|
@@ -17409,10 +17409,10 @@ var html = {
|
|
|
17409
17409
|
}, "read")
|
|
17410
17410
|
};
|
|
17411
17411
|
|
|
17412
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17412
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
17413
17413
|
import { posix } from "node:path";
|
|
17414
17414
|
|
|
17415
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17415
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/attachments/sheets.js
|
|
17416
17416
|
var columnName = /* @__PURE__ */ __name((column) => {
|
|
17417
17417
|
let name = "";
|
|
17418
17418
|
for (let rest = column; rest > 0; rest = Math.floor((rest - 1) / 26))
|
|
@@ -17467,7 +17467,7 @@ var sheetText = /* @__PURE__ */ __name((sheets2, maxChars = MAX_TEXT_CHARS) => {
|
|
|
17467
17467
|
return { text: parts.join("").trim(), truncated: false };
|
|
17468
17468
|
}, "sheetText");
|
|
17469
17469
|
|
|
17470
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17470
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
17471
17471
|
var OFFICE = "urn:oasis:names:tc:opendocument:xmlns:office:1.0";
|
|
17472
17472
|
var TEXT = "urn:oasis:names:tc:opendocument:xmlns:text:1.0";
|
|
17473
17473
|
var TABLE = "urn:oasis:names:tc:opendocument:xmlns:table:1.0";
|
|
@@ -17882,7 +17882,7 @@ var readDocument = /* @__PURE__ */ __name(async (bytes, kind, signal) => {
|
|
|
17882
17882
|
}
|
|
17883
17883
|
}, "readDocument");
|
|
17884
17884
|
|
|
17885
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17885
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/readers/office/index.js
|
|
17886
17886
|
var office = {
|
|
17887
17887
|
id: "office",
|
|
17888
17888
|
version: documentExtractor("odt"),
|
|
@@ -17893,7 +17893,7 @@ var office = {
|
|
|
17893
17893
|
}, "read")
|
|
17894
17894
|
};
|
|
17895
17895
|
|
|
17896
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17896
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/readers/pdf/index.js
|
|
17897
17897
|
var pdf = {
|
|
17898
17898
|
id: "pdf",
|
|
17899
17899
|
version: "unpdf",
|
|
@@ -17960,7 +17960,7 @@ var pdf = {
|
|
|
17960
17960
|
}), "read")
|
|
17961
17961
|
};
|
|
17962
17962
|
|
|
17963
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17963
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/readers/plain/index.js
|
|
17964
17964
|
var PLAIN = /* @__PURE__ */ new Set([".txt", ".md", ".markdown", ".csv", ".tsv", ".json", ".log"]);
|
|
17965
17965
|
var isPlain = /* @__PURE__ */ __name((hint) => PLAIN.has(extensionOf(hint)) || hint.mime?.startsWith("text/") || hint.mime === "application/json", "isPlain");
|
|
17966
17966
|
var readPlain = /* @__PURE__ */ __name((bytes) => {
|
|
@@ -17980,7 +17980,7 @@ var plain = {
|
|
|
17980
17980
|
read: /* @__PURE__ */ __name(async (bytes) => readPlain(bytes), "read")
|
|
17981
17981
|
};
|
|
17982
17982
|
|
|
17983
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17983
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/readers/rtf/index.js
|
|
17984
17984
|
var rtf = {
|
|
17985
17985
|
id: "rtf",
|
|
17986
17986
|
version: "v1",
|
|
@@ -17988,10 +17988,10 @@ var rtf = {
|
|
|
17988
17988
|
read: /* @__PURE__ */ __name(async (bytes) => derived(bytes, "rtf:v1", rtfText), "read")
|
|
17989
17989
|
};
|
|
17990
17990
|
|
|
17991
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17991
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
17992
17992
|
import { basename } from "node:path";
|
|
17993
17993
|
|
|
17994
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17994
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/attachments/csv-spans.js
|
|
17995
17995
|
var delimitedSpans = /* @__PURE__ */ __name((text, delimiter, maxCells = 1e4) => {
|
|
17996
17996
|
const cells = [];
|
|
17997
17997
|
let row = 1, column = 1, start = 0, quoted = false, truncated = false;
|
|
@@ -18029,7 +18029,7 @@ var delimitedSpans = /* @__PURE__ */ __name((text, delimiter, maxCells = 1e4) =>
|
|
|
18029
18029
|
return { cells, truncated };
|
|
18030
18030
|
}, "delimitedSpans");
|
|
18031
18031
|
|
|
18032
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18032
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
18033
18033
|
var DELIMITED = {
|
|
18034
18034
|
".csv": ",",
|
|
18035
18035
|
".tsv": " ",
|
|
@@ -18068,7 +18068,7 @@ var sheets = {
|
|
|
18068
18068
|
}, "read")
|
|
18069
18069
|
};
|
|
18070
18070
|
|
|
18071
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18071
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/readers/registry.js
|
|
18072
18072
|
var BUILT_INS = [office, pdf, docx, doc, rtf, html, sheets, plain, image];
|
|
18073
18073
|
var HEAD_BYTES = 1024;
|
|
18074
18074
|
var readers = [...BUILT_INS];
|
|
@@ -18078,7 +18078,7 @@ var readWithRegistry = /* @__PURE__ */ __name(async (bytes, hint, context) => {
|
|
|
18078
18078
|
return reader ? reader.read(bytes, hint, context) : { status: "unsupported" };
|
|
18079
18079
|
}, "readWithRegistry");
|
|
18080
18080
|
|
|
18081
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18081
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
18082
18082
|
var importEngine = /* @__PURE__ */ __name((name) => importFrom(new URL("attachments/extract.js", import.meta.resolve("@wirecat/cli-core")).href, name), "importEngine");
|
|
18083
18083
|
var extensionOf2 = /* @__PURE__ */ __name(({ name, path }) => extname2(name ?? path).toLowerCase(), "extensionOf");
|
|
18084
18084
|
var extractText = /* @__PURE__ */ __name(async (bytes, hint, load, signal, env = process.env) => {
|
|
@@ -18116,7 +18116,7 @@ var engineStates = /* @__PURE__ */ __name((resolve = (name) => resolveFrom(new U
|
|
|
18116
18116
|
}
|
|
18117
18117
|
})), "engineStates");
|
|
18118
18118
|
|
|
18119
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18119
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/http/time-limit.js
|
|
18120
18120
|
var timeLimit = /* @__PURE__ */ __name((ms) => {
|
|
18121
18121
|
const controller = new AbortController();
|
|
18122
18122
|
const timer = setTimeout(() => controller.abort(new DOMException("The operation timed out.", "TimeoutError")), ms);
|
|
@@ -18132,7 +18132,7 @@ var withTimeLimit = /* @__PURE__ */ __name(async (ms, run2) => {
|
|
|
18132
18132
|
}
|
|
18133
18133
|
}, "withTimeLimit");
|
|
18134
18134
|
|
|
18135
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18135
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/models/openai.js
|
|
18136
18136
|
var options = strictObject({
|
|
18137
18137
|
temperature: range(0, 2),
|
|
18138
18138
|
top_p: range(0, 1),
|
|
@@ -18199,7 +18199,7 @@ var openai = {
|
|
|
18199
18199
|
}), "complete")
|
|
18200
18200
|
};
|
|
18201
18201
|
|
|
18202
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18202
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/models/index.js
|
|
18203
18203
|
var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
18204
18204
|
complete: /* @__PURE__ */ __name(async (request) => {
|
|
18205
18205
|
if (deps.signal?.aborted)
|
|
@@ -18214,7 +18214,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
18214
18214
|
if (!adapter && target2.provider === "openai")
|
|
18215
18215
|
adapter = openai;
|
|
18216
18216
|
if (!adapter && target2.provider === "anthropic")
|
|
18217
|
-
adapter = (await import("./anthropic-
|
|
18217
|
+
adapter = (await import("./anthropic-ZP5B7S2Z.js")).anthropic;
|
|
18218
18218
|
if (!adapter)
|
|
18219
18219
|
throw new CliError("validation_error", `no model adapter for ${target2.provider}`);
|
|
18220
18220
|
if (request.images !== void 0 && adapter.images !== true)
|
|
@@ -18274,7 +18274,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
18274
18274
|
}, "complete")
|
|
18275
18275
|
}), "modelGateway");
|
|
18276
18276
|
|
|
18277
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18277
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/embeddings/keys.js
|
|
18278
18278
|
var endpointKeyName = /* @__PURE__ */ __name((baseUrl) => {
|
|
18279
18279
|
const host = new URL(baseUrl).host;
|
|
18280
18280
|
return ["openai", "anthropic"].includes(host) ? `endpoint:${host}` : host;
|
|
@@ -18307,7 +18307,7 @@ var embeddingKeys = /* @__PURE__ */ __name((app, env = process.env, keyring) =>
|
|
|
18307
18307
|
};
|
|
18308
18308
|
}, "embeddingKeys");
|
|
18309
18309
|
|
|
18310
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18310
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/domain/recovery.js
|
|
18311
18311
|
var withRecovery = /* @__PURE__ */ __name((error) => ({
|
|
18312
18312
|
...error,
|
|
18313
18313
|
retryable: typeof error.retryable === "boolean" ? error.retryable : error.code === "rate_limited" || error.status === 429
|
|
@@ -19354,7 +19354,7 @@ function imageSize(input) {
|
|
|
19354
19354
|
}
|
|
19355
19355
|
__name(imageSize, "imageSize");
|
|
19356
19356
|
|
|
19357
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19357
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/attachments/ocr.js
|
|
19358
19358
|
var MAX_PAGES = 20;
|
|
19359
19359
|
var MAX_PIXELS = 2e7;
|
|
19360
19360
|
var cancelled2 = /* @__PURE__ */ __name((signal) => {
|
|
@@ -19514,7 +19514,7 @@ var ocrPdf = /* @__PURE__ */ __name(async (bytes, pipeline, load, signal) => {
|
|
|
19514
19514
|
}
|
|
19515
19515
|
}, "ocrPdf");
|
|
19516
19516
|
|
|
19517
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19517
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/attachments/picture-reading.js
|
|
19518
19518
|
import { spawn } from "node:child_process";
|
|
19519
19519
|
import { mkdtempSync, readFileSync as readFileSync2, rmSync, writeFileSync } from "node:fs";
|
|
19520
19520
|
import { tmpdir } from "node:os";
|
|
@@ -8,25 +8,25 @@ import {
|
|
|
8
8
|
readSetupAnswers,
|
|
9
9
|
unanswered,
|
|
10
10
|
writeSetupAnswers
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-KPKIHJIT.js";
|
|
12
12
|
import {
|
|
13
13
|
DEFAULT_STEMMERS,
|
|
14
14
|
LANGUAGES
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-UFPRP7MG.js";
|
|
16
16
|
import {
|
|
17
17
|
sharedConfigPath
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-PWIEOATY.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-CRIEW4FP.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.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/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-MEHEUOJH.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-RVTPKDA3.js"),
|
|
117
|
+
import("./store-maintenance-command-33ULVDWY.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-QOVOM4BF.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-HGP2DSRW.js")).readSecret(prompt, { input, echo: true }), "ask"),
|
|
203
203
|
say: /* @__PURE__ */ __name((text) => process.stderr.write(`${text}
|
|
204
204
|
`), "say")
|
|
205
205
|
}
|