@wirecat/mail-cli 0.33.0 → 0.34.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 +16 -0
- package/contracts/wirecat.json +2 -2
- package/dist/bin/mail.js +2 -2
- package/dist/bundle/{all-profiles-W3CGXEEJ.js → all-profiles-2KUKROHY.js} +10 -10
- package/dist/bundle/{anthropic-UMDO5AKP.js → anthropic-E5KRCEVC.js} +8 -8
- package/dist/bundle/{app-server-4SICQ5RP.js → app-server-HIQ3QO5K.js} +60 -52
- package/dist/bundle/{bun-QVVCH4MJ.js → bun-KARJPE5D.js} +2 -2
- package/dist/bundle/{bun-sqlite-CHD4AIUK.js → bun-sqlite-NHGX6ZUN.js} +6 -6
- package/dist/bundle/{chunk-TK77DCE5.js → chunk-26DYRMXE.js} +1 -1
- package/dist/bundle/{chunk-JADBHKBP.js → chunk-2GDLJKPT.js} +1 -1
- package/dist/bundle/{chunk-JUYUWMTG.js → chunk-2SCQ7Z4I.js} +4 -4
- package/dist/bundle/{chunk-Y2P2LC5R.js → chunk-2VBEBPGX.js} +9 -9
- package/dist/bundle/{chunk-OOYIPK4F.js → chunk-4SKE5GYA.js} +1 -1
- package/dist/bundle/{chunk-H46MANPR.js → chunk-4URI6EAV.js} +3 -3
- package/dist/bundle/chunk-4VHK5UBM.js +170 -0
- package/dist/bundle/{chunk-L3MKFI3Y.js → chunk-4VM3UCSO.js} +2 -2
- package/dist/bundle/chunk-5GANGHQI.js +721 -0
- package/dist/bundle/{chunk-AEKWEYIG.js → chunk-6G4VQFVX.js} +19 -19
- package/dist/bundle/{chunk-KLLT572M.js → chunk-6GGMFL7J.js} +3 -3
- package/dist/bundle/{chunk-UYZDH5LK.js → chunk-6LFRZDPV.js} +1 -1
- package/dist/bundle/{chunk-LB5FTCPZ.js → chunk-A2Y2RFNW.js} +75 -10
- package/dist/bundle/{chunk-35AH33VJ.js → chunk-AGZ7SNFF.js} +1 -1
- package/dist/bundle/chunk-CKVWAUBW.js +787 -0
- package/dist/bundle/{chunk-QN423PC6.js → chunk-DYQGEZA2.js} +3 -3
- package/dist/bundle/{chunk-BF73DBAA.js → chunk-DZRP4UCK.js} +13 -13
- package/dist/bundle/{chunk-CZ6ZXDSO.js → chunk-EGQJDEFY.js} +74 -36
- package/dist/bundle/{chunk-BRRHYXUP.js → chunk-EZAX77SM.js} +20 -20
- package/dist/bundle/{chunk-47YNANPZ.js → chunk-FNYWC6A3.js} +2 -2
- package/dist/bundle/chunk-FORAOCZ3.js +334 -0
- package/dist/bundle/{chunk-EW3JFV7J.js → chunk-H77ALM2Y.js} +4 -4
- package/dist/bundle/{chunk-OWAJN74H.js → chunk-HH647UBC.js} +23 -23
- package/dist/bundle/{chunk-74BYHR44.js → chunk-HRDCH2VB.js} +620 -622
- package/dist/bundle/{chunk-SDWYOYGN.js → chunk-I3MS74OF.js} +4 -4
- package/dist/bundle/{chunk-FSMCXQH2.js → chunk-IMQ4CVZJ.js} +2 -2
- package/dist/bundle/{chunk-XN5KH24X.js → chunk-JVGVLRBA.js} +5 -5
- package/dist/bundle/{chunk-MNJ3BMPZ.js → chunk-KF6O4RZO.js} +3 -3
- package/dist/bundle/{chunk-UX76GMQM.js → chunk-KGYK3OI3.js} +6 -6
- package/dist/bundle/{chunk-BZY5W35X.js → chunk-KLI5FKZ2.js} +7 -7
- package/dist/bundle/chunk-KNVTBDTE.js +72 -0
- package/dist/bundle/{chunk-SW7YGW3T.js → chunk-LKTDW5LH.js} +7 -7
- package/dist/bundle/{chunk-UWF3SSRL.js → chunk-LOSYDRJU.js} +28 -8
- package/dist/bundle/{chunk-MT7T5N2N.js → chunk-MDISZMK4.js} +4 -4
- package/dist/bundle/{chunk-CIG4UVP6.js → chunk-MGXYIVVJ.js} +14 -13
- package/dist/bundle/{chunk-2BFXHCZW.js → chunk-NAENYLIO.js} +2 -2
- package/dist/bundle/{chunk-LXAX6AZU.js → chunk-NHD5BOJU.js} +6 -6
- package/dist/bundle/{chunk-IPSLQX64.js → chunk-NI4GCP2T.js} +2 -2
- package/dist/bundle/{chunk-CHNNKHLL.js → chunk-NJVJH5MH.js} +1206 -1544
- package/dist/bundle/{chunk-S6CHYNFE.js → chunk-NWD7AFOR.js} +2 -2
- package/dist/bundle/{chunk-7OYZU5SP.js → chunk-NXERDBEK.js} +4 -4
- package/dist/bundle/{chunk-2L6D54BR.js → chunk-OG5QO5RR.js} +8 -8
- package/dist/bundle/{chunk-2P44S7XK.js → chunk-OJ3BI2U4.js} +26 -24
- package/dist/bundle/chunk-OOYRMTX5.js +374 -0
- package/dist/bundle/{chunk-I3UAD4EI.js → chunk-OX5MCGXL.js} +40 -40
- package/dist/bundle/{chunk-LACMDMDI.js → chunk-PA4GEJXQ.js} +9 -9
- package/dist/bundle/{chunk-RENCSP47.js → chunk-PC3N3LH3.js} +3 -3
- package/dist/bundle/{chunk-UG2QDGAH.js → chunk-PRDKEVUL.js} +1 -1
- package/dist/bundle/{chunk-2X344EUT.js → chunk-PVZMN3UZ.js} +8 -8
- package/dist/bundle/{chunk-GZYICXO4.js → chunk-QFJC6POK.js} +1 -1
- package/dist/bundle/{chunk-OFMYFFEF.js → chunk-QOQF2TX3.js} +487 -1144
- package/dist/bundle/{chunk-BI5P7JWM.js → chunk-QQGPV3QN.js} +2 -2
- package/dist/bundle/{chunk-LXUHYDNE.js → chunk-QXLYLVEC.js} +1 -1
- package/dist/bundle/chunk-QXYNDMA6.js +259 -0
- package/dist/bundle/{chunk-HFFHL7SV.js → chunk-R2GS3GBJ.js} +61 -59
- package/dist/bundle/{chunk-LFBD6RTX.js → chunk-RPNQXWRS.js} +4 -4
- package/dist/bundle/{chunk-6IS4BEN4.js → chunk-SK3N4CK5.js} +4 -4
- package/dist/bundle/{chunk-JCQ47WR4.js → chunk-T2EE5M7O.js} +5 -5
- package/dist/bundle/{chunk-XQXYAOBV.js → chunk-TZJC4AOK.js} +26 -26
- package/dist/bundle/{chunk-LKGJMM6W.js → chunk-V43KEZYA.js} +9 -9
- package/dist/bundle/{chunk-SYUIAMVA.js → chunk-VBVR6JRC.js} +260 -516
- package/dist/bundle/{chunk-QO7BK4WD.js → chunk-VRGEDK4T.js} +8 -8
- package/dist/bundle/{chunk-DI74RP6R.js → chunk-WYGDALB3.js} +31 -85
- package/dist/bundle/{chunk-IBIFX2LK.js → chunk-X6IGETU6.js} +2 -2
- package/dist/bundle/{chunk-6VCQ4CTK.js → chunk-XIF75Z7D.js} +1 -1
- package/dist/bundle/chunk-XWU3A7H6.js +29 -0
- package/dist/bundle/{chunk-TBZLGT7R.js → chunk-YWX5X5RI.js} +19 -117
- package/dist/bundle/{chunk-RXUVXAMM.js → chunk-Z6A6QPPW.js} +1 -1
- package/dist/bundle/{chunk-UAV74EY4.js → chunk-ZGZADWD7.js} +1 -1
- package/dist/bundle/{chunk-MJ7DUSHT.js → chunk-ZZEWQR43.js} +18 -14
- package/dist/bundle/command-contract-PZ7VOOXP.js +39 -0
- package/dist/bundle/{command-server-entry-G2ZHCN5J.js → command-server-entry-NF45UPEV.js} +28 -25
- package/dist/bundle/decode-DUZA3EHC.js +296 -0
- package/dist/bundle/{dispatch-RHIK22OA.js → dispatch-CDJZAMVP.js} +8 -8
- package/dist/bundle/{dist-X5G2IMYG.js → dist-RH7EMC4J.js} +29 -24
- package/dist/bundle/{echarts-UZJ6AREV.js → echarts-GZHZBNRA.js} +2 -2
- package/dist/bundle/{embed-FEXLUH3T.js → embed-VE3CSJN4.js} +6 -6
- package/dist/bundle/{embedder-NHQARKFJ.js → embedder-DSJ77DX5.js} +9 -9
- package/dist/bundle/{failure-7DIA4OET.js → failure-YH6HAGFT.js} +2 -2
- package/dist/bundle/{first-run-PS5NR2QG.js → first-run-3L7HLYTI.js} +12 -12
- package/dist/bundle/first-screen-MY5KID77.js +37 -0
- package/dist/bundle/{instructions-SDDUBGH4.js → instructions-OZK3BLIO.js} +1 -1
- package/dist/bundle/mail.js +12 -12
- package/dist/bundle/{mcp-GN4FTJX5.js → mcp-YUG4YR4R.js} +2 -2
- package/dist/bundle/meeting-combined-RYMUPY54.js +24 -0
- package/dist/bundle/meeting-model-U7LW5WEN.js +24 -0
- package/dist/bundle/meeting-semantic-64IOIQRR.js +21 -0
- package/dist/bundle/{node-ELCNUOCE.js → node-OS3VWBUZ.js} +2 -2
- package/dist/bundle/{node-sqlite-2E5MKZMH.js → node-sqlite-RQ623VFA.js} +7 -7
- package/dist/bundle/{oauth-JGPEIY3M.js → oauth-CBPAG734.js} +7 -7
- package/dist/bundle/{open-6DEMCZAB.js → open-H4DGOMBC.js} +5 -5
- package/dist/bundle/{openai-IVKDU5AH.js → openai-EMWRGR54.js} +28 -26
- package/dist/bundle/{process-67DAKAAQ.js → process-3TOIYASI.js} +1 -1
- package/dist/bundle/{program-ESJDQMAJ.js → program-WA6RGAJL.js} +3075 -2024
- package/dist/bundle/{prompt-ZBWOT5KG.js → prompt-22KNCMBI.js} +5 -5
- package/dist/bundle/{recognize-UUBH2DOH.js → recognize-UWD4RSCZ.js} +4 -4
- package/dist/bundle/{remote-UYTNWNOB.js → remote-LJY7MF2E.js} +9 -9
- package/dist/bundle/{rerank-X2633CQN.js → rerank-JJ6KNJFB.js} +7 -7
- package/dist/bundle/{serve-CP7Q4OVW.js → serve-3EPLJYVZ.js} +9 -9
- package/dist/bundle/{server-I7MXRSAG.js → server-5JOFO4V4.js} +52 -44
- package/dist/bundle/server-EOQNS7B7.js +75 -0
- package/dist/bundle/{sqlite-runtime-BX55LI5G.js → sqlite-runtime-MGJA5E27.js} +6 -6
- package/dist/bundle/{state-LLNJQXFH.js → state-UCRDOWOP.js} +6 -6
- package/dist/bundle/{store-K4KU5N75.js → store-265VRRQV.js} +25 -20
- package/dist/bundle/{store-N27XI3VV.js → store-HS272YSA.js} +21 -17
- package/dist/bundle/store-maintenance-command-IKZM5NRP.js +66 -0
- package/dist/config.d.ts +1 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/identity.d.ts.map +1 -1
- package/dist/identity.js +2 -2
- package/dist/identity.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/bundle/command-contract-NRNQAFFE.js +0 -36
- package/dist/bundle/decode-U6V6D6XH.js +0 -162
- package/dist/bundle/first-screen-C2WTLOG2.js +0 -34
- package/dist/bundle/server-QGTMJ7SF.js +0 -67
- package/dist/bundle/store-maintenance-command-VPAFQCNA.js +0 -58
- /package/dist/bundle/{chunk-BDCC2J2Z.js → chunk-FEBUZHU3.js} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wirecat/mail-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.34.0",
|
|
4
4
|
"mcpName": "dev.wirecat/mail-cli",
|
|
5
5
|
"description": "IMAP sync of a mailbox into the shared WireCat store, offline search, and flags, folders and Trash with undo on the server, the app password kept in the OS keyring — built for agents and scripts",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -58,8 +58,8 @@
|
|
|
58
58
|
"docs:spell": "cspell lint --config cspell.json --no-progress --no-summary README.md SECURITY.md CHANGELOG.md AGENTS.md CLAUDE.md 'docs/*.md' 'skills/**/*.md'"
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@wirecat/cli-base": "0.
|
|
62
|
-
"@wirecat/cli-core": "0.
|
|
61
|
+
"@wirecat/cli-base": "0.103.0",
|
|
62
|
+
"@wirecat/cli-core": "0.674.0",
|
|
63
63
|
"commander": "15.0.0",
|
|
64
64
|
"imapflow": "2.9.1",
|
|
65
65
|
"nodemailer": "10.1.7",
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
-
const require = __bundleRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
SCHEMA_DIALECT,
|
|
5
|
-
commandContract,
|
|
6
|
-
commandPathOf,
|
|
7
|
-
findCommand,
|
|
8
|
-
outputOf
|
|
9
|
-
} from "./chunk-XN5KH24X.js";
|
|
10
|
-
import "./chunk-SYUIAMVA.js";
|
|
11
|
-
import "./chunk-SW7YGW3T.js";
|
|
12
|
-
import "./chunk-2X344EUT.js";
|
|
13
|
-
import "./chunk-UG2QDGAH.js";
|
|
14
|
-
import "./chunk-MNJ3BMPZ.js";
|
|
15
|
-
import "./chunk-H46MANPR.js";
|
|
16
|
-
import "./chunk-XQXYAOBV.js";
|
|
17
|
-
import "./chunk-OFMYFFEF.js";
|
|
18
|
-
import "./chunk-L3MKFI3Y.js";
|
|
19
|
-
import "./chunk-LXUHYDNE.js";
|
|
20
|
-
import "./chunk-JCQ47WR4.js";
|
|
21
|
-
import "./chunk-BZY5W35X.js";
|
|
22
|
-
import "./chunk-JUYUWMTG.js";
|
|
23
|
-
import "./chunk-BDCC2J2Z.js";
|
|
24
|
-
import "./chunk-IPSLQX64.js";
|
|
25
|
-
import "./chunk-BRRHYXUP.js";
|
|
26
|
-
import "./chunk-UWF3SSRL.js";
|
|
27
|
-
import "./chunk-Y5E2WNWB.js";
|
|
28
|
-
import "./chunk-BI5P7JWM.js";
|
|
29
|
-
import "./chunk-ZVVMGPBJ.js";
|
|
30
|
-
export {
|
|
31
|
-
SCHEMA_DIALECT,
|
|
32
|
-
commandContract,
|
|
33
|
-
commandPathOf,
|
|
34
|
-
findCommand,
|
|
35
|
-
outputOf
|
|
36
|
-
};
|
|
@@ -1,162 +0,0 @@
|
|
|
1
|
-
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
-
const require = __bundleRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
SAMPLE_RATE,
|
|
5
|
-
decodeOgg
|
|
6
|
-
} from "./chunk-MT7T5N2N.js";
|
|
7
|
-
import "./chunk-BRRHYXUP.js";
|
|
8
|
-
import "./chunk-UWF3SSRL.js";
|
|
9
|
-
import {
|
|
10
|
-
importFrom
|
|
11
|
-
} from "./chunk-Y5E2WNWB.js";
|
|
12
|
-
import {
|
|
13
|
-
CliError
|
|
14
|
-
} from "./chunk-BI5P7JWM.js";
|
|
15
|
-
import {
|
|
16
|
-
__name
|
|
17
|
-
} from "./chunk-ZVVMGPBJ.js";
|
|
18
|
-
|
|
19
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/speech/decode.js
|
|
20
|
-
import { spawn } from "node:child_process";
|
|
21
|
-
import { mkdtemp, rm, writeFile } from "node:fs/promises";
|
|
22
|
-
import { createRequire } from "node:module";
|
|
23
|
-
import { tmpdir } from "node:os";
|
|
24
|
-
import { join } from "node:path";
|
|
25
|
-
import { pathToFileURL } from "node:url";
|
|
26
|
-
var LONGEST_AUDIO_SECONDS = 3600;
|
|
27
|
-
var FFMPEG_TIMEOUT_MS = 12e4;
|
|
28
|
-
var FFMPEG_FORMATS = "mov,mp4,m4a,3gp,3g2,mj2,aac,mp3,wav,amr,caf,aiff,flac,ogg,matroska,webm,asf";
|
|
29
|
-
var text = /* @__PURE__ */ __name((bytes, from, length) => String.fromCharCode(...bytes.subarray(from, from + length)), "text");
|
|
30
|
-
var contains = /* @__PURE__ */ __name((bytes, needle, within) => Buffer.from(bytes.buffer, bytes.byteOffset, Math.min(bytes.length, within)).includes(needle, 0, "latin1"), "contains");
|
|
31
|
-
var formatOf = /* @__PURE__ */ __name((bytes) => {
|
|
32
|
-
if (text(bytes, 0, 4) === "OggS") {
|
|
33
|
-
if (contains(bytes, "OpusHead", 128))
|
|
34
|
-
return "opus";
|
|
35
|
-
if (contains(bytes, "vorbis", 128))
|
|
36
|
-
return "vorbis";
|
|
37
|
-
return "other";
|
|
38
|
-
}
|
|
39
|
-
if (text(bytes, 0, 4) === "fLaC")
|
|
40
|
-
return "flac";
|
|
41
|
-
const frame = bytes[0] === 255 && ((bytes[1] ?? 0) & 224) === 224 && ((bytes[1] ?? 0) >> 1 & 3) !== 0;
|
|
42
|
-
if (text(bytes, 0, 3) === "ID3" || frame)
|
|
43
|
-
return "mp3";
|
|
44
|
-
return "other";
|
|
45
|
-
}, "formatOf");
|
|
46
|
-
var everyChannel = /* @__PURE__ */ __name((decoded) => {
|
|
47
|
-
if (!decoded.channelData[0] || decoded.samplesDecoded === 0)
|
|
48
|
-
throw new CliError("validation_error", "no audio in that file");
|
|
49
|
-
return decoded.channelData.map((samples) => ({ samples, rate: decoded.sampleRate }));
|
|
50
|
-
}, "everyChannel");
|
|
51
|
-
var load = /* @__PURE__ */ __name((name) => importFrom(new URL("speech/decode.js", import.meta.resolve("@wirecat/cli-core")).href, pathToFileURL(createRequire(new URL("speech/decode.js", import.meta.resolve("@wirecat/cli-core")).href).resolve(name)).href), "load");
|
|
52
|
-
var decodeVorbis = /* @__PURE__ */ __name(async (bytes) => {
|
|
53
|
-
const { OggVorbisDecoder } = await load("@wasm-audio-decoders/ogg-vorbis");
|
|
54
|
-
const decoder = new OggVorbisDecoder();
|
|
55
|
-
await decoder.ready;
|
|
56
|
-
try {
|
|
57
|
-
return everyChannel(await decoder.decodeFile(bytes));
|
|
58
|
-
} finally {
|
|
59
|
-
decoder.free();
|
|
60
|
-
}
|
|
61
|
-
}, "decodeVorbis");
|
|
62
|
-
var decodeFlac = /* @__PURE__ */ __name(async (bytes) => {
|
|
63
|
-
const { FLACDecoder } = await load("@wasm-audio-decoders/flac");
|
|
64
|
-
const decoder = new FLACDecoder();
|
|
65
|
-
await decoder.ready;
|
|
66
|
-
try {
|
|
67
|
-
return everyChannel(await decoder.decodeFile(bytes));
|
|
68
|
-
} finally {
|
|
69
|
-
decoder.free();
|
|
70
|
-
}
|
|
71
|
-
}, "decodeFlac");
|
|
72
|
-
var decodeMp3 = /* @__PURE__ */ __name(async (bytes) => {
|
|
73
|
-
const { MPEGDecoder } = await load("mpg123-decoder");
|
|
74
|
-
const decoder = new MPEGDecoder();
|
|
75
|
-
await decoder.ready;
|
|
76
|
-
try {
|
|
77
|
-
return everyChannel(decoder.decode(bytes));
|
|
78
|
-
} finally {
|
|
79
|
-
decoder.free();
|
|
80
|
-
}
|
|
81
|
-
}, "decodeMp3");
|
|
82
|
-
var runFfmpeg = /* @__PURE__ */ __name(async (bytes) => {
|
|
83
|
-
const directory = await mkdtemp(join(tmpdir(), "wirecat-audio-"));
|
|
84
|
-
try {
|
|
85
|
-
const input = join(directory, "audio");
|
|
86
|
-
await writeFile(input, bytes, { mode: 384 });
|
|
87
|
-
const largest = LONGEST_AUDIO_SECONDS * SAMPLE_RATE * 4;
|
|
88
|
-
const output = await new Promise((resolve, reject) => {
|
|
89
|
-
const child = spawn("ffmpeg", [
|
|
90
|
-
"-nostdin",
|
|
91
|
-
"-hide_banner",
|
|
92
|
-
"-loglevel",
|
|
93
|
-
"error",
|
|
94
|
-
"-protocol_whitelist",
|
|
95
|
-
"file",
|
|
96
|
-
"-format_whitelist",
|
|
97
|
-
FFMPEG_FORMATS,
|
|
98
|
-
"-i",
|
|
99
|
-
input,
|
|
100
|
-
"-vn",
|
|
101
|
-
"-ac",
|
|
102
|
-
"1",
|
|
103
|
-
"-ar",
|
|
104
|
-
String(SAMPLE_RATE),
|
|
105
|
-
"-f",
|
|
106
|
-
"f32le",
|
|
107
|
-
"pipe:1"
|
|
108
|
-
], { stdio: ["ignore", "pipe", "pipe"], timeout: FFMPEG_TIMEOUT_MS });
|
|
109
|
-
const chunks = [];
|
|
110
|
-
let size = 0;
|
|
111
|
-
let errors = "";
|
|
112
|
-
child.stdout.on("data", (chunk) => {
|
|
113
|
-
size += chunk.length;
|
|
114
|
-
if (size > largest)
|
|
115
|
-
child.kill();
|
|
116
|
-
else
|
|
117
|
-
chunks.push(chunk);
|
|
118
|
-
});
|
|
119
|
-
child.stderr.on("data", (chunk) => {
|
|
120
|
-
errors = (errors + chunk.toString()).slice(-500);
|
|
121
|
-
});
|
|
122
|
-
child.on("error", (error) => reject(error.code === "ENOENT" ? new CliError("validation_error", "only ffmpeg reads this audio format, and ffmpeg is not installed") : error));
|
|
123
|
-
child.on("close", (code) => {
|
|
124
|
-
if (size > largest)
|
|
125
|
-
reject(new CliError("validation_error", `the audio is longer than ${LONGEST_AUDIO_SECONDS / 60} minutes`));
|
|
126
|
-
else if (code === 0)
|
|
127
|
-
resolve(Buffer.concat(chunks));
|
|
128
|
-
else
|
|
129
|
-
reject(new CliError("validation_error", `ffmpeg could not read the audio: ${errors.trim() || code}`));
|
|
130
|
-
});
|
|
131
|
-
});
|
|
132
|
-
const samples = new Float32Array(Math.floor(output.length / 4));
|
|
133
|
-
Buffer.from(samples.buffer).set(output.subarray(0, samples.length * 4));
|
|
134
|
-
return { samples, rate: SAMPLE_RATE };
|
|
135
|
-
} finally {
|
|
136
|
-
await rm(directory, { recursive: true, force: true });
|
|
137
|
-
}
|
|
138
|
-
}, "runFfmpeg");
|
|
139
|
-
var BUNDLED = {
|
|
140
|
-
opus: decodeOgg,
|
|
141
|
-
vorbis: decodeVorbis,
|
|
142
|
-
flac: decodeFlac,
|
|
143
|
-
mp3: decodeMp3
|
|
144
|
-
};
|
|
145
|
-
var tooLong = /* @__PURE__ */ __name((pcm) => pcm.samples.length / pcm.rate > LONGEST_AUDIO_SECONDS, "tooLong");
|
|
146
|
-
var decodeChannels = /* @__PURE__ */ __name(async (bytes, ffmpeg = runFfmpeg) => {
|
|
147
|
-
const format = formatOf(bytes);
|
|
148
|
-
const decoded = format === "other" ? { channels: [await ffmpeg(bytes)], mixed: true } : await BUNDLED[format](bytes).then((channels) => ({ channels, mixed: false }), (error) => ffmpeg(bytes).then((pcm) => ({ channels: [pcm], mixed: true }), () => {
|
|
149
|
-
throw error;
|
|
150
|
-
}));
|
|
151
|
-
if (decoded.channels.some(tooLong))
|
|
152
|
-
throw new CliError("validation_error", `the audio is longer than ${LONGEST_AUDIO_SECONDS / 60} minutes`);
|
|
153
|
-
return decoded;
|
|
154
|
-
}, "decodeChannels");
|
|
155
|
-
var decodeAudio = /* @__PURE__ */ __name(async (bytes, ffmpeg = runFfmpeg) => (await decodeChannels(bytes, ffmpeg)).channels[0], "decodeAudio");
|
|
156
|
-
export {
|
|
157
|
-
LONGEST_AUDIO_SECONDS,
|
|
158
|
-
decodeAudio,
|
|
159
|
-
decodeChannels,
|
|
160
|
-
formatOf,
|
|
161
|
-
runFfmpeg
|
|
162
|
-
};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
-
const require = __bundleRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
WIRECAT_TOOLS,
|
|
5
|
-
firstScreen,
|
|
6
|
-
installHelp
|
|
7
|
-
} from "./chunk-LKGJMM6W.js";
|
|
8
|
-
import "./chunk-XN5KH24X.js";
|
|
9
|
-
import "./chunk-HTQTIKWP.js";
|
|
10
|
-
import "./chunk-SYUIAMVA.js";
|
|
11
|
-
import "./chunk-SW7YGW3T.js";
|
|
12
|
-
import "./chunk-2X344EUT.js";
|
|
13
|
-
import "./chunk-UG2QDGAH.js";
|
|
14
|
-
import "./chunk-MNJ3BMPZ.js";
|
|
15
|
-
import "./chunk-H46MANPR.js";
|
|
16
|
-
import "./chunk-XQXYAOBV.js";
|
|
17
|
-
import "./chunk-OFMYFFEF.js";
|
|
18
|
-
import "./chunk-L3MKFI3Y.js";
|
|
19
|
-
import "./chunk-LXUHYDNE.js";
|
|
20
|
-
import "./chunk-JCQ47WR4.js";
|
|
21
|
-
import "./chunk-BZY5W35X.js";
|
|
22
|
-
import "./chunk-JUYUWMTG.js";
|
|
23
|
-
import "./chunk-BDCC2J2Z.js";
|
|
24
|
-
import "./chunk-IPSLQX64.js";
|
|
25
|
-
import "./chunk-BRRHYXUP.js";
|
|
26
|
-
import "./chunk-UWF3SSRL.js";
|
|
27
|
-
import "./chunk-Y5E2WNWB.js";
|
|
28
|
-
import "./chunk-BI5P7JWM.js";
|
|
29
|
-
import "./chunk-ZVVMGPBJ.js";
|
|
30
|
-
export {
|
|
31
|
-
WIRECAT_TOOLS,
|
|
32
|
-
firstScreen,
|
|
33
|
-
installHelp
|
|
34
|
-
};
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
-
const require = __bundleRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
PER_RUN,
|
|
5
|
-
createServer,
|
|
6
|
-
envelope,
|
|
7
|
-
serveOverHttpUntilStopped,
|
|
8
|
-
serveOverStdio
|
|
9
|
-
} from "./chunk-I3UAD4EI.js";
|
|
10
|
-
import "./chunk-2P44S7XK.js";
|
|
11
|
-
import "./chunk-UAV74EY4.js";
|
|
12
|
-
import "./chunk-CZ6ZXDSO.js";
|
|
13
|
-
import "./chunk-OWAJN74H.js";
|
|
14
|
-
import "./chunk-LB5FTCPZ.js";
|
|
15
|
-
import "./chunk-6VCQ4CTK.js";
|
|
16
|
-
import "./chunk-KLLT572M.js";
|
|
17
|
-
import "./chunk-5D4AEUVA.js";
|
|
18
|
-
import "./chunk-7OYZU5SP.js";
|
|
19
|
-
import "./chunk-TBZLGT7R.js";
|
|
20
|
-
import "./chunk-74BYHR44.js";
|
|
21
|
-
import "./chunk-BF73DBAA.js";
|
|
22
|
-
import "./chunk-Y2P2LC5R.js";
|
|
23
|
-
import "./chunk-SDWYOYGN.js";
|
|
24
|
-
import "./chunk-RENCSP47.js";
|
|
25
|
-
import "./chunk-S6CHYNFE.js";
|
|
26
|
-
import "./chunk-XN5KH24X.js";
|
|
27
|
-
import "./chunk-SYUIAMVA.js";
|
|
28
|
-
import "./chunk-SW7YGW3T.js";
|
|
29
|
-
import "./chunk-2X344EUT.js";
|
|
30
|
-
import "./chunk-UG2QDGAH.js";
|
|
31
|
-
import "./chunk-6IS4BEN4.js";
|
|
32
|
-
import "./chunk-RXUVXAMM.js";
|
|
33
|
-
import "./chunk-MNJ3BMPZ.js";
|
|
34
|
-
import "./chunk-AEKWEYIG.js";
|
|
35
|
-
import "./chunk-H46MANPR.js";
|
|
36
|
-
import "./chunk-CHNNKHLL.js";
|
|
37
|
-
import "./chunk-DI74RP6R.js";
|
|
38
|
-
import "./chunk-XQXYAOBV.js";
|
|
39
|
-
import "./chunk-OFMYFFEF.js";
|
|
40
|
-
import "./chunk-L3MKFI3Y.js";
|
|
41
|
-
import "./chunk-LXUHYDNE.js";
|
|
42
|
-
import "./chunk-QO7BK4WD.js";
|
|
43
|
-
import "./chunk-TK77DCE5.js";
|
|
44
|
-
import "./chunk-LACMDMDI.js";
|
|
45
|
-
import "./chunk-JCQ47WR4.js";
|
|
46
|
-
import "./chunk-BZY5W35X.js";
|
|
47
|
-
import "./chunk-UX76GMQM.js";
|
|
48
|
-
import "./chunk-JUYUWMTG.js";
|
|
49
|
-
import "./chunk-35AH33VJ.js";
|
|
50
|
-
import "./chunk-BDCC2J2Z.js";
|
|
51
|
-
import "./chunk-D72URWJE.js";
|
|
52
|
-
import "./chunk-IPSLQX64.js";
|
|
53
|
-
import "./chunk-LXAX6AZU.js";
|
|
54
|
-
import "./chunk-OOYIPK4F.js";
|
|
55
|
-
import "./chunk-BRRHYXUP.js";
|
|
56
|
-
import "./chunk-UWF3SSRL.js";
|
|
57
|
-
import "./chunk-Y5E2WNWB.js";
|
|
58
|
-
import "./chunk-BI5P7JWM.js";
|
|
59
|
-
import "./chunk-JADBHKBP.js";
|
|
60
|
-
import "./chunk-ZVVMGPBJ.js";
|
|
61
|
-
export {
|
|
62
|
-
PER_RUN,
|
|
63
|
-
createServer,
|
|
64
|
-
envelope,
|
|
65
|
-
serveOverHttpUntilStopped,
|
|
66
|
-
serveOverStdio
|
|
67
|
-
};
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
-
const require = __bundleRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
addStoreMaintenanceCommands,
|
|
5
|
-
buildStems,
|
|
6
|
-
storeMaintenanceCommands,
|
|
7
|
-
storeSummary
|
|
8
|
-
} from "./chunk-HFFHL7SV.js";
|
|
9
|
-
import "./chunk-2BFXHCZW.js";
|
|
10
|
-
import "./chunk-TBZLGT7R.js";
|
|
11
|
-
import "./chunk-74BYHR44.js";
|
|
12
|
-
import "./chunk-BF73DBAA.js";
|
|
13
|
-
import "./chunk-Y2P2LC5R.js";
|
|
14
|
-
import "./chunk-SDWYOYGN.js";
|
|
15
|
-
import "./chunk-RENCSP47.js";
|
|
16
|
-
import "./chunk-QN423PC6.js";
|
|
17
|
-
import "./chunk-S6CHYNFE.js";
|
|
18
|
-
import "./chunk-HTQTIKWP.js";
|
|
19
|
-
import "./chunk-SYUIAMVA.js";
|
|
20
|
-
import "./chunk-SW7YGW3T.js";
|
|
21
|
-
import "./chunk-2X344EUT.js";
|
|
22
|
-
import "./chunk-UG2QDGAH.js";
|
|
23
|
-
import "./chunk-6IS4BEN4.js";
|
|
24
|
-
import "./chunk-RXUVXAMM.js";
|
|
25
|
-
import "./chunk-MNJ3BMPZ.js";
|
|
26
|
-
import "./chunk-AEKWEYIG.js";
|
|
27
|
-
import "./chunk-H46MANPR.js";
|
|
28
|
-
import "./chunk-CHNNKHLL.js";
|
|
29
|
-
import "./chunk-DI74RP6R.js";
|
|
30
|
-
import "./chunk-XQXYAOBV.js";
|
|
31
|
-
import "./chunk-OFMYFFEF.js";
|
|
32
|
-
import "./chunk-L3MKFI3Y.js";
|
|
33
|
-
import "./chunk-LXUHYDNE.js";
|
|
34
|
-
import "./chunk-QO7BK4WD.js";
|
|
35
|
-
import "./chunk-TK77DCE5.js";
|
|
36
|
-
import "./chunk-LACMDMDI.js";
|
|
37
|
-
import "./chunk-JCQ47WR4.js";
|
|
38
|
-
import "./chunk-BZY5W35X.js";
|
|
39
|
-
import "./chunk-UX76GMQM.js";
|
|
40
|
-
import "./chunk-JUYUWMTG.js";
|
|
41
|
-
import "./chunk-35AH33VJ.js";
|
|
42
|
-
import "./chunk-BDCC2J2Z.js";
|
|
43
|
-
import "./chunk-D72URWJE.js";
|
|
44
|
-
import "./chunk-IPSLQX64.js";
|
|
45
|
-
import "./chunk-LXAX6AZU.js";
|
|
46
|
-
import "./chunk-OOYIPK4F.js";
|
|
47
|
-
import "./chunk-BRRHYXUP.js";
|
|
48
|
-
import "./chunk-UWF3SSRL.js";
|
|
49
|
-
import "./chunk-Y5E2WNWB.js";
|
|
50
|
-
import "./chunk-BI5P7JWM.js";
|
|
51
|
-
import "./chunk-JADBHKBP.js";
|
|
52
|
-
import "./chunk-ZVVMGPBJ.js";
|
|
53
|
-
export {
|
|
54
|
-
addStoreMaintenanceCommands,
|
|
55
|
-
buildStems,
|
|
56
|
-
storeMaintenanceCommands,
|
|
57
|
-
storeSummary
|
|
58
|
-
};
|
|
File without changes
|