@wirecat/mail-cli 0.24.0 → 0.26.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/CHANGELOG.md +48 -0
- package/README.md +3 -0
- package/contracts/wirecat.json +1325 -0
- package/dist/bin/mail.js +2 -2
- package/dist/bin/mail.js.map +1 -1
- package/dist/bundle/{all-profiles-VS7P6DJY.js → all-profiles-6NXVQLUQ.js} +11 -11
- package/dist/bundle/{anthropic-C5JXKGBS.js → anthropic-OLNFE2CL.js} +17 -10
- package/dist/bundle/{app-server-HU3LVU42.js → app-server-J76N6XIK.js} +60 -49
- package/dist/bundle/{bun-QLFX47WZ.js → bun-6PYDHXNR.js} +2 -2
- package/dist/bundle/{bun-sqlite-W4PGAKVY.js → bun-sqlite-QD5PFHPS.js} +9 -5
- package/dist/bundle/{chunk-WOX7FZJP.js → chunk-2E2EV4HD.js} +130 -77
- package/dist/bundle/{chunk-A6J4MPTI.js → chunk-2TCS4PLJ.js} +1 -1
- package/dist/bundle/{chunk-QI3PXUOJ.js → chunk-3J2UJFBJ.js} +39 -32
- package/dist/bundle/{chunk-LVGX7VTD.js → chunk-3RY4HC4V.js} +63 -5
- package/dist/bundle/chunk-3XTKQ5EM.js +54 -0
- package/dist/bundle/{chunk-ZO4MQWIK.js → chunk-4Q6KAV4O.js} +8 -8
- package/dist/bundle/{chunk-JOQGJUFT.js → chunk-52M5BAEG.js} +1 -1
- package/dist/bundle/{chunk-Q4OKEN3B.js → chunk-5WROIMUV.js} +12 -7
- package/dist/bundle/{chunk-VVL4MKYH.js → chunk-66C66FNK.js} +1 -1
- package/dist/bundle/{chunk-O373QEAJ.js → chunk-76EKZSDK.js} +27 -27
- package/dist/bundle/{chunk-AUTX2MLF.js → chunk-76VSHS5Y.js} +15 -10
- package/dist/bundle/{chunk-HBZAJINU.js → chunk-7C6FGWDH.js} +4 -4
- package/dist/bundle/{chunk-VUBZFMGP.js → chunk-7KCBPAQS.js} +2 -2
- package/dist/bundle/{chunk-FNLUKODV.js → chunk-7MEVD5PI.js} +57 -28
- package/dist/bundle/chunk-A3EBRXOQ.js +16 -0
- package/dist/bundle/{chunk-C3NYJW6B.js → chunk-A6XETABW.js} +852 -278
- package/dist/bundle/{chunk-VNKWSCN7.js → chunk-AJ5K74X6.js} +17 -17
- package/dist/bundle/{chunk-BFQQV22T.js → chunk-BDYQQ6G2.js} +1 -1
- package/dist/bundle/{chunk-ZR2BDNGG.js → chunk-BMGRDZM3.js} +1 -1
- package/dist/bundle/{chunk-TLEBSMC7.js → chunk-CFBIPM7T.js} +4109 -3575
- package/dist/bundle/{chunk-IRUN4XOV.js → chunk-CZI45AQM.js} +2 -2
- package/dist/bundle/{chunk-QVMOEB3I.js → chunk-DKIVYAXW.js} +18 -17
- package/dist/bundle/{chunk-X7J3TTDO.js → chunk-ECZSYLSL.js} +48 -9
- package/dist/bundle/{chunk-EKGRNFYQ.js → chunk-EDWJ7IYH.js} +1 -1
- package/dist/bundle/{chunk-MCPOZNWG.js → chunk-FIVFP53N.js} +1 -1
- package/dist/bundle/{chunk-5X3GU5LI.js → chunk-GIG7F6UW.js} +6 -6
- package/dist/bundle/{chunk-RN7OI5KL.js → chunk-H2IJQH5X.js} +20 -112
- package/dist/bundle/{chunk-NWKKPDZV.js → chunk-HI5XUETY.js} +2 -2
- package/dist/bundle/{chunk-YBQ5AYLZ.js → chunk-HNSBXC6U.js} +3 -3
- package/dist/bundle/{chunk-4W4EVVL4.js → chunk-IX3GUNGV.js} +4 -4
- package/dist/bundle/{chunk-PT6MF2VU.js → chunk-JNKXU7AE.js} +340 -108
- package/dist/bundle/{chunk-64ZG5ERD.js → chunk-JVJG54QK.js} +40 -2
- package/dist/bundle/{chunk-KGOVFEWZ.js → chunk-KXASCNOV.js} +3 -3
- package/dist/bundle/{chunk-5NLHDK7P.js → chunk-LMTQMYUF.js} +31 -31
- package/dist/bundle/{chunk-Q6K2XUGU.js → chunk-LTZGLOKE.js} +3 -2
- package/dist/bundle/{chunk-RLQZFZLK.js → chunk-M2LATBP2.js} +84 -10
- package/dist/bundle/{chunk-RX5CJ55S.js → chunk-M4OP5ASJ.js} +1 -1
- package/dist/bundle/{chunk-H5FJTHVA.js → chunk-M4Y33SJJ.js} +2 -2
- package/dist/bundle/{chunk-SWKQ6IAR.js → chunk-M7ECSGSN.js} +3 -3
- package/dist/bundle/{chunk-MTO6YVMN.js → chunk-M7RHPCXM.js} +3 -3
- package/dist/bundle/{chunk-PRQ2U7HF.js → chunk-MIWSCTLG.js} +2 -2
- package/dist/bundle/{chunk-NSIN5IM4.js → chunk-NBJU6MBU.js} +10 -15
- package/dist/bundle/{chunk-JWMLMAHP.js → chunk-NMFPK3MU.js} +14 -5
- package/dist/bundle/{chunk-4QNHAM3J.js → chunk-OGE7YG4J.js} +2 -2
- package/dist/bundle/{chunk-XBEO472U.js → chunk-PJ6YMNJG.js} +26515 -24466
- package/dist/bundle/{chunk-RUASZW3M.js → chunk-PY2IOVUN.js} +5 -5
- package/dist/bundle/{chunk-OQW6GHUA.js → chunk-QI6EXKSH.js} +1 -1
- package/dist/bundle/{chunk-KV4VTKF3.js → chunk-QJGG6QYV.js} +69 -6
- package/dist/bundle/{chunk-JMLIKXFO.js → chunk-RXKIP2ML.js} +2 -2
- package/dist/bundle/{chunk-6VV7J2TN.js → chunk-T7SHPALQ.js} +35 -28
- package/dist/bundle/{chunk-YI544LHI.js → chunk-UE2NKPA4.js} +9 -9
- package/dist/bundle/{chunk-X47BL4M5.js → chunk-UNJUCK5R.js} +13 -13
- package/dist/bundle/{chunk-C5BMCLCQ.js → chunk-V32L23NN.js} +4 -4
- package/dist/bundle/{chunk-DW3F6DUW.js → chunk-V4PFD25P.js} +1 -1
- package/dist/bundle/{chunk-U6MMQNNK.js → chunk-VA4V73SL.js} +6 -6
- package/dist/bundle/{chunk-3KSK5BBB.js → chunk-VJPLIXV4.js} +8 -2
- package/dist/bundle/{chunk-YA45XV6G.js → chunk-VWRT57QU.js} +4 -4
- package/dist/bundle/{chunk-FKWUUCX2.js → chunk-XELZCDWE.js} +427 -189
- package/dist/bundle/{chunk-3FD3IATT.js → chunk-XUJEZ5YF.js} +6 -6
- package/dist/bundle/{chunk-TI7ZIPA2.js → chunk-XZ7CQ6NA.js} +4 -4
- package/dist/bundle/{chunk-NCRSE647.js → chunk-YM345236.js} +159 -46
- package/dist/bundle/{chunk-6PWCQKMD.js → chunk-YXGHC3NP.js} +14 -14
- package/dist/bundle/{chunk-RNZKQMFY.js → chunk-ZZSZN4CJ.js} +22 -15
- package/dist/bundle/command-contract-NNEXHZW5.js +36 -0
- package/dist/bundle/{command-server-entry-5E3PPDE5.js → command-server-entry-AIBWNC5D.js} +25 -24
- package/dist/bundle/{decode-AVWV7SVZ.js → decode-H7KLRD33.js} +5 -5
- package/dist/bundle/{dispatch-BXPHSNK5.js → dispatch-DSVN7MNG.js} +8 -8
- package/dist/bundle/{dist-PIOOKBWT.js → dist-YYSP43J3.js} +29 -18
- package/dist/bundle/{echarts-7K6YQV52.js → echarts-VSD3LS6D.js} +2 -2
- package/dist/bundle/{embed-4NT76GJK.js → embed-UENZ5HN3.js} +6 -6
- package/dist/bundle/{embedder-ITQFF7EN.js → embedder-MJMGOJT7.js} +9 -9
- package/dist/bundle/{failure-3Q65JOPD.js → failure-COTPFUP4.js} +2 -2
- package/dist/bundle/{first-run-PM74YU4X.js → first-run-HYALREFN.js} +12 -11
- package/dist/bundle/first-screen-GPF5RHBX.js +34 -0
- package/dist/bundle/{instructions-JDSITYHV.js → instructions-WOHRYOLN.js} +1 -1
- package/dist/bundle/mail.js +15 -20
- package/dist/bundle/{mcp-7KQUJNFN.js → mcp-TDKGDB4V.js} +2 -2
- package/dist/bundle/{node-D6YIJOJI.js → node-4BRWJJCE.js} +2 -2
- package/dist/bundle/{node-sqlite-PJOHHB4X.js → node-sqlite-D3QESEYQ.js} +10 -6
- package/dist/bundle/{oauth-BOWJ3IBT.js → oauth-T7TTOBIZ.js} +7 -7
- package/dist/bundle/{open-FIAKKZMW.js → open-6P6627QB.js} +5 -5
- package/dist/bundle/{openai-QL54VVLC.js → openai-FIMCJGAP.js} +24 -19
- package/dist/bundle/{process-AYHK7WRC.js → process-35IH3WHC.js} +1 -1
- package/dist/bundle/{program-6FKWOTBK.js → program-IEXB72IK.js} +6685 -5463
- package/dist/bundle/{prompt-XJZCBELC.js → prompt-HFBCPMVL.js} +5 -5
- package/dist/bundle/{recognize-OQKWAHBY.js → recognize-CNL4HJ7Z.js} +4 -4
- package/dist/bundle/{remote-NLVUZ5WK.js → remote-AYGZI7HT.js} +9 -7
- package/dist/bundle/{rerank-NRPZDTJ7.js → rerank-5C2OZZXD.js} +7 -7
- package/dist/bundle/{serve-O4YUI7F6.js → serve-S6OYBDIB.js} +9 -9
- package/dist/bundle/{server-WAL3M4OO.js → server-VKO6E6PI.js} +42 -40
- package/dist/bundle/server-WXSHVDME.js +68 -0
- package/dist/bundle/{sqlite-runtime-5YHGI4D4.js → sqlite-runtime-DBTGNTVE.js} +6 -6
- package/dist/bundle/{state-WYYOJ7KK.js → state-ZQG6AL2Y.js} +6 -6
- package/dist/bundle/{store-X72GOJHD.js → store-B7BXWILZ.js} +25 -18
- package/dist/bundle/{store-6BJO3F2J.js → store-LY4QKTOO.js} +19 -16
- package/dist/bundle/store-maintenance-command-UR6NQDVV.js +58 -0
- package/dist/commands/rules.d.ts.map +1 -1
- package/dist/commands/rules.js +57 -19
- package/dist/commands/rules.js.map +1 -1
- package/dist/commands/session-start.d.ts.map +1 -1
- package/dist/commands/session-start.js +1 -1
- package/dist/commands/session-start.js.map +1 -1
- package/dist/config.d.ts +1 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +13 -12
- package/dist/config.js.map +1 -1
- package/dist/discovery.d.ts.map +1 -1
- package/dist/discovery.js +7 -2
- package/dist/discovery.js.map +1 -1
- package/dist/identity.d.ts +2 -0
- package/dist/identity.d.ts.map +1 -1
- package/dist/identity.js +34 -0
- package/dist/identity.js.map +1 -1
- package/dist/mail/domain-age.d.ts +1 -1
- package/dist/mail/domain-age.d.ts.map +1 -1
- package/dist/mail/domain-age.js +9 -3
- package/dist/mail/domain-age.js.map +1 -1
- package/dist/mail/rules/file.d.ts.map +1 -1
- package/dist/mail/rules/file.js +4 -1
- package/dist/mail/rules/file.js.map +1 -1
- package/dist/mail/rules/query.d.ts +2 -1
- package/dist/mail/rules/query.d.ts.map +1 -1
- package/dist/mail/rules/query.js +16 -3
- package/dist/mail/rules/query.js.map +1 -1
- package/dist/oauth.d.ts +3 -1
- package/dist/oauth.d.ts.map +1 -1
- package/dist/oauth.js +48 -34
- package/dist/oauth.js.map +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +5 -0
- package/dist/reasons.js.map +1 -1
- package/dist/store.d.ts.map +1 -1
- package/dist/store.js +2 -21
- package/dist/store.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/wcat.d.ts +3 -0
- package/dist/wcat.d.ts.map +1 -0
- package/dist/wcat.js +4 -0
- package/dist/wcat.js.map +1 -0
- package/package.json +10 -9
- package/dist/bundle/chunk-B72343TK.js +0 -35
- package/dist/bundle/command-contract-ERYYPAD2.js +0 -35
- package/dist/bundle/first-screen-WBVGVSMY.js +0 -33
- package/dist/bundle/server-6OT5ZEWL.js +0 -66
- package/dist/bundle/store-maintenance-command-ASS7RBYC.js +0 -54
- /package/dist/bundle/{chunk-YVNHQFLC.js → chunk-XWBPP2HX.js} +0 -0
package/dist/bundle/mail.js
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
import { createRequire as __bundleRequire } from "node:module";
|
|
3
3
|
const require = __bundleRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./chunk-
|
|
5
|
+
DESKTOP
|
|
6
|
+
} from "./chunk-JVJG54QK.js";
|
|
7
7
|
import {
|
|
8
8
|
installerOf
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-M4OP5ASJ.js";
|
|
10
|
+
import "./chunk-XWBPP2HX.js";
|
|
11
11
|
import {
|
|
12
12
|
DESCRIBE_FLAG,
|
|
13
13
|
DISPATCH_FLAG,
|
|
@@ -18,13 +18,13 @@ import {
|
|
|
18
18
|
fileState,
|
|
19
19
|
shimFiles,
|
|
20
20
|
writeShim
|
|
21
|
-
} from "./chunk-
|
|
22
|
-
import "./chunk-
|
|
21
|
+
} from "./chunk-IX3GUNGV.js";
|
|
22
|
+
import "./chunk-7MEVD5PI.js";
|
|
23
23
|
import {
|
|
24
24
|
catchCrashes
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-ECZSYLSL.js";
|
|
26
26
|
import "./chunk-Y5E2WNWB.js";
|
|
27
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-7KCBPAQS.js";
|
|
28
28
|
import {
|
|
29
29
|
__name
|
|
30
30
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -32,13 +32,13 @@ import {
|
|
|
32
32
|
// dist/bin/mail.js
|
|
33
33
|
import { enableCompileCache } from "node:module";
|
|
34
34
|
|
|
35
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
35
|
+
// 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/wcat/start.js
|
|
36
36
|
import { createHash } from "node:crypto";
|
|
37
37
|
import { existsSync, readFileSync as readFileSync2, realpathSync } from "node:fs";
|
|
38
38
|
import { dirname as dirname2, join as join2 } from "node:path";
|
|
39
39
|
import { fileURLToPath } from "node:url";
|
|
40
40
|
|
|
41
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
41
|
+
// 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/wcat/launcher.js
|
|
42
42
|
import { readFileSync } from "node:fs";
|
|
43
43
|
import { basename, dirname, join, resolve } from "node:path";
|
|
44
44
|
var posix = /* @__PURE__ */ __name((path) => path.replaceAll("\\", "/"), "posix");
|
|
@@ -124,7 +124,7 @@ var ensureLauncher = /* @__PURE__ */ __name(({ dir, program, platform }) => {
|
|
|
124
124
|
}
|
|
125
125
|
}, "ensureLauncher");
|
|
126
126
|
|
|
127
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
127
|
+
// 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/wcat/start.js
|
|
128
128
|
var wcatStart = /* @__PURE__ */ __name(async (tool, io = {}) => {
|
|
129
129
|
const argv = io.argv ?? process.argv;
|
|
130
130
|
const env = io.env ?? process.env;
|
|
@@ -137,7 +137,7 @@ var wcatStart = /* @__PURE__ */ __name(async (tool, io = {}) => {
|
|
|
137
137
|
return { code: 0 };
|
|
138
138
|
}
|
|
139
139
|
if (first === DISPATCH_FLAG) {
|
|
140
|
-
const { runWcat } = await import("./dispatch-
|
|
140
|
+
const { runWcat } = await import("./dispatch-DSVN7MNG.js");
|
|
141
141
|
const code = await runWcat(rest, { env, platform, stdout, stderr: io.stderr ?? process.stderr, self: tool });
|
|
142
142
|
return { code };
|
|
143
143
|
}
|
|
@@ -172,17 +172,12 @@ var shippedManifest = /* @__PURE__ */ __name((bin) => {
|
|
|
172
172
|
|
|
173
173
|
// dist/bin/mail.js
|
|
174
174
|
enableCompileCache();
|
|
175
|
-
var wcat = await wcatStart(
|
|
176
|
-
command: IDENTITY.command,
|
|
177
|
-
version: IDENTITY.version,
|
|
178
|
-
description: IDENTITY.description,
|
|
179
|
-
docs: "https://github.com/WireCatLabs/mail-cli#readme"
|
|
180
|
-
});
|
|
175
|
+
var wcat = await wcatStart(DESKTOP);
|
|
181
176
|
if (wcat.code !== void 0) {
|
|
182
177
|
process.exitCode = wcat.code;
|
|
183
178
|
} else {
|
|
184
|
-
const stopCatching = catchCrashes({ cli:
|
|
185
|
-
const { run } = await import("./program-
|
|
179
|
+
const stopCatching = catchCrashes({ cli: DESKTOP.command, interactive: process.stdout.isTTY === true });
|
|
180
|
+
const { run } = await import("./program-IEXB72IK.js");
|
|
186
181
|
try {
|
|
187
182
|
process.exitCode = await run(process.argv.slice(2));
|
|
188
183
|
} finally {
|
|
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
executableEnvironment,
|
|
5
5
|
executableOnPath
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-FIVFP53N.js";
|
|
7
7
|
import {
|
|
8
8
|
require_cross_spawn
|
|
9
9
|
} from "./chunk-D72URWJE.js";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
__toESM
|
|
13
13
|
} from "./chunk-ZVVMGPBJ.js";
|
|
14
14
|
|
|
15
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
15
|
+
// 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/mcp/index.js
|
|
16
16
|
var import_cross_spawn = __toESM(require_cross_spawn(), 1);
|
|
17
17
|
var realRun = /* @__PURE__ */ __name((file, args) => {
|
|
18
18
|
const result = import_cross_spawn.default.sync(executableOnPath(file, process.env), args, {
|
|
@@ -18,12 +18,12 @@ import {
|
|
|
18
18
|
jitCompatCheck,
|
|
19
19
|
refineSqliteCodecs,
|
|
20
20
|
sql
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-52M5BAEG.js";
|
|
22
22
|
import {
|
|
23
23
|
__name
|
|
24
24
|
} from "./chunk-ZVVMGPBJ.js";
|
|
25
25
|
|
|
26
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/node.js
|
|
27
27
|
import { DatabaseSync } from "node:sqlite";
|
|
28
28
|
var nodeSQLiteCodecs = refineSqliteCodecs({
|
|
29
29
|
"integer:boolean": { normalize: booleanFromInteger },
|
|
@@ -3,23 +3,27 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
loadVectorExtension,
|
|
5
5
|
vectorExtension
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-RXKIP2ML.js";
|
|
7
|
+
import {
|
|
8
|
+
refuseOwnerStoreInTests
|
|
9
|
+
} from "./chunk-3XTKQ5EM.js";
|
|
7
10
|
import {
|
|
8
11
|
TIME_LIMIT_FUNCTION,
|
|
9
12
|
beforeTimeLimit
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-2TCS4PLJ.js";
|
|
14
|
+
import "./chunk-7MEVD5PI.js";
|
|
15
|
+
import "./chunk-ECZSYLSL.js";
|
|
13
16
|
import "./chunk-Y5E2WNWB.js";
|
|
14
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-7KCBPAQS.js";
|
|
15
18
|
import {
|
|
16
19
|
__name
|
|
17
20
|
} from "./chunk-ZVVMGPBJ.js";
|
|
18
21
|
|
|
19
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/store/drivers/node-sqlite.js
|
|
20
23
|
import { DatabaseSync } from "node:sqlite";
|
|
21
24
|
var openWithNodeSqlite = /* @__PURE__ */ __name(async (path) => cacheOverNodeSqlite(await nodeClient(path)), "openWithNodeSqlite");
|
|
22
25
|
var nodeClient = /* @__PURE__ */ __name(async (path, { readOnly = false } = {}) => {
|
|
26
|
+
refuseOwnerStoreInTests(path);
|
|
23
27
|
const extension = await vectorExtension();
|
|
24
28
|
const client = new DatabaseSync(path, { readOnly, allowExtension: true });
|
|
25
29
|
try {
|
|
@@ -3,15 +3,15 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
ownerLogin,
|
|
5
5
|
revokeAll
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-MIWSCTLG.js";
|
|
7
7
|
import "./chunk-5D4AEUVA.js";
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-VWRT57QU.js";
|
|
9
|
+
import "./chunk-HNSBXC6U.js";
|
|
10
|
+
import "./chunk-V4PFD25P.js";
|
|
11
|
+
import "./chunk-7MEVD5PI.js";
|
|
12
|
+
import "./chunk-ECZSYLSL.js";
|
|
13
13
|
import "./chunk-Y5E2WNWB.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-7KCBPAQS.js";
|
|
15
15
|
import "./chunk-ZVVMGPBJ.js";
|
|
16
16
|
export {
|
|
17
17
|
ownerLogin,
|
|
@@ -6,12 +6,12 @@ import {
|
|
|
6
6
|
openCache,
|
|
7
7
|
openFile,
|
|
8
8
|
storeCapable
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-VA4V73SL.js";
|
|
10
|
+
import "./chunk-2TCS4PLJ.js";
|
|
11
|
+
import "./chunk-7MEVD5PI.js";
|
|
12
|
+
import "./chunk-ECZSYLSL.js";
|
|
13
13
|
import "./chunk-Y5E2WNWB.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-7KCBPAQS.js";
|
|
15
15
|
import "./chunk-ZVVMGPBJ.js";
|
|
16
16
|
export {
|
|
17
17
|
CAPABILITY_STATEMENTS,
|
|
@@ -1,42 +1,45 @@
|
|
|
1
1
|
import { createRequire as __bundleRequire } from "node:module";
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
providerWaitMs
|
|
5
|
-
} from "./chunk-LVGX7VTD.js";
|
|
6
3
|
import {
|
|
7
4
|
SAMPLE_RATE,
|
|
8
5
|
toModelRate
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-V32L23NN.js";
|
|
7
|
+
import "./chunk-UNJUCK5R.js";
|
|
8
|
+
import {
|
|
9
|
+
OPENAI_URL,
|
|
10
|
+
refuseModelAddress
|
|
11
|
+
} from "./chunk-QJGG6QYV.js";
|
|
11
12
|
import {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
endpointFetch,
|
|
14
|
+
providerWaitMs
|
|
15
|
+
} from "./chunk-3RY4HC4V.js";
|
|
16
|
+
import "./chunk-XUJEZ5YF.js";
|
|
17
|
+
import "./chunk-GIG7F6UW.js";
|
|
15
18
|
import {
|
|
16
19
|
OPENAI_TRANSCRIBE_MODEL,
|
|
17
20
|
VAD,
|
|
18
21
|
filesPresent,
|
|
19
22
|
modelsDirectory,
|
|
20
23
|
vadPath
|
|
21
|
-
} from "./chunk-
|
|
22
|
-
import "./chunk-
|
|
24
|
+
} from "./chunk-XZ7CQ6NA.js";
|
|
25
|
+
import "./chunk-3XTKQ5EM.js";
|
|
23
26
|
import {
|
|
24
27
|
DEFAULT_RETRY,
|
|
25
28
|
backoffMs
|
|
26
|
-
} from "./chunk-
|
|
27
|
-
import "./chunk-
|
|
29
|
+
} from "./chunk-7MEVD5PI.js";
|
|
30
|
+
import "./chunk-ECZSYLSL.js";
|
|
28
31
|
import "./chunk-Y5E2WNWB.js";
|
|
29
32
|
import {
|
|
30
33
|
CliError
|
|
31
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-7KCBPAQS.js";
|
|
32
35
|
import {
|
|
33
36
|
__name
|
|
34
37
|
} from "./chunk-ZVVMGPBJ.js";
|
|
35
38
|
|
|
36
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/speech/openai.js
|
|
37
40
|
import { setTimeout as wait } from "node:timers/promises";
|
|
38
41
|
|
|
39
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/speech/wav.js
|
|
40
43
|
var encodeWav = /* @__PURE__ */ __name((samples, sampleRate = 16e3) => {
|
|
41
44
|
const bytes = Buffer.alloc(44 + samples.length * 2);
|
|
42
45
|
bytes.write("RIFF", 0, "ascii");
|
|
@@ -57,7 +60,7 @@ var encodeWav = /* @__PURE__ */ __name((samples, sampleRate = 16e3) => {
|
|
|
57
60
|
return new Uint8Array(bytes.buffer, bytes.byteOffset, bytes.length);
|
|
58
61
|
}, "encodeWav");
|
|
59
62
|
|
|
60
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
63
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/speech/openai.js
|
|
61
64
|
var LONGEST_REQUEST_SECONDS = 600;
|
|
62
65
|
var JOINED_SECONDS = 0.2;
|
|
63
66
|
var PAD_SECONDS = 0.2;
|
|
@@ -105,12 +108,13 @@ var failureOf = /* @__PURE__ */ __name(async (response) => {
|
|
|
105
108
|
return {};
|
|
106
109
|
}
|
|
107
110
|
}, "failureOf");
|
|
111
|
+
var TRANSCRIPTION_TIMEOUT_MS = 6e5;
|
|
108
112
|
var send = /* @__PURE__ */ __name(async (wav, options) => {
|
|
109
|
-
const
|
|
113
|
+
const url = `${(options.baseUrl ?? OPENAI_URL).replace(/\/+$/, "")}/audio/transcriptions`;
|
|
114
|
+
const post = options.fetch ?? endpointFetch(url, TRANSCRIPTION_TIMEOUT_MS);
|
|
110
115
|
const retry = options.retry ?? RETRY;
|
|
111
116
|
const sleep = options.sleep ?? sleeping;
|
|
112
117
|
const random = options.random ?? Math.random;
|
|
113
|
-
const url = `${(options.baseUrl ?? OPENAI_URL).replace(/\/+$/, "")}/audio/transcriptions`;
|
|
114
118
|
for (let attempt = 1; ; attempt++) {
|
|
115
119
|
interrupted(options.signal);
|
|
116
120
|
let response;
|
|
@@ -179,7 +183,7 @@ var piecesOf = /* @__PURE__ */ __name((spans, limit) => {
|
|
|
179
183
|
return pieces;
|
|
180
184
|
}, "piecesOf");
|
|
181
185
|
var openCutter = /* @__PURE__ */ __name(async (vadModel) => {
|
|
182
|
-
const { openSpeechCutter } = await import("./recognize-
|
|
186
|
+
const { openSpeechCutter } = await import("./recognize-CNL4HJ7Z.js");
|
|
183
187
|
return openSpeechCutter(vadModel);
|
|
184
188
|
}, "openCutter");
|
|
185
189
|
var checkKeywords = /* @__PURE__ */ __name((keywords = []) => {
|
|
@@ -188,6 +192,7 @@ var checkKeywords = /* @__PURE__ */ __name((keywords = []) => {
|
|
|
188
192
|
throw new CliError("validation_error", "a keyword must be a non-empty single line without < or > \u2014 OpenAI refuses the whole request otherwise");
|
|
189
193
|
}, "checkKeywords");
|
|
190
194
|
var transcribeOpenAI = /* @__PURE__ */ __name(async (audio, options) => {
|
|
195
|
+
refuseModelAddress(options.env ?? process.env, options.baseUrl ?? OPENAI_URL, "audio");
|
|
191
196
|
if (!options.apiKey)
|
|
192
197
|
throw new CliError("authentication_error", "no OpenAI key \u2014 `models keys set openai`, or OPENAI_API_KEY", {
|
|
193
198
|
reason: "transcription.no-key"
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
__name
|
|
6
6
|
} from "./chunk-ZVVMGPBJ.js";
|
|
7
7
|
|
|
8
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/embeddings/process.js
|
|
9
9
|
import { spawn } from "node:child_process";
|
|
10
10
|
import { createInterface } from "node:readline";
|
|
11
11
|
import { fileURLToPath } from "node:url";
|