@wirecat/zoom-cli 0.59.1 → 0.60.1
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/README.md +4 -3
- package/dist/bin/main.js +1 -0
- package/dist/bin/main.js.map +1 -1
- package/dist/bin/zm.js +2 -2
- package/dist/bundle/{all-profiles-RS5IWIGR.js → all-profiles-E6KXASLY.js} +6 -6
- package/dist/bundle/answer-policy-YWCC55NB.js +96 -0
- package/dist/bundle/{anthropic-5QHQR4WF.js → anthropic-CSLAACWX.js} +4 -4
- package/dist/bundle/{app-server-7LANSZGE.js → app-server-RYYXX6QV.js} +48 -48
- package/dist/bundle/{bun-O6RL6LRQ.js → bun-JVDJVDHL.js} +2 -2
- package/dist/bundle/{bun-sqlite-PEJM6CS4.js → bun-sqlite-B5CZHAV4.js} +3 -3
- package/dist/bundle/{chunk-BXZ6WSVF.js → chunk-3LBA63D5.js} +4 -4
- package/dist/bundle/{chunk-UXM7I35J.js → chunk-3R437ICM.js} +4 -4
- package/dist/bundle/{chunk-MBT7GP7K.js → chunk-43BX56ZI.js} +9 -9
- package/dist/bundle/{chunk-VYUSEJE4.js → chunk-46R2JTGO.js} +2 -2
- package/dist/bundle/{chunk-2EYP23NY.js → chunk-4TCQT57W.js} +10 -10
- package/dist/bundle/{chunk-3SCTDFNO.js → chunk-6BJQBVMN.js} +16 -16
- package/dist/bundle/{chunk-AQDWGJZT.js → chunk-7IDNHVJS.js} +39 -2
- package/dist/bundle/{chunk-PF25S7L4.js → chunk-AOZGGGUK.js} +2 -2
- package/dist/bundle/{chunk-G27MRA24.js → chunk-AZZPMHP2.js} +2 -2
- package/dist/bundle/{chunk-T6AAM7UT.js → chunk-BO7J5Z3T.js} +20 -17
- package/dist/bundle/{chunk-PNBEREOU.js → chunk-CGCJ6P3A.js} +1906 -1529
- package/dist/bundle/{chunk-PKTFZAXG.js → chunk-DBSWVZES.js} +2 -2
- package/dist/bundle/{chunk-CVIKKIGE.js → chunk-EF2RCQ3L.js} +1 -1
- package/dist/bundle/{chunk-K76WFW4I.js → chunk-EN5DBDKW.js} +4 -4
- package/dist/bundle/{chunk-NDXAZB5Z.js → chunk-ES6UWVTM.js} +6 -6
- package/dist/bundle/{chunk-BAQLQIMI.js → chunk-EUHQ5D4K.js} +31 -27
- package/dist/bundle/{chunk-KVHRHBLY.js → chunk-FWJ3Q7NO.js} +5 -5
- package/dist/bundle/{chunk-ZTOAAYFV.js → chunk-FZMRHNOP.js} +3 -3
- package/dist/bundle/{chunk-NOKFJJPA.js → chunk-GEVHI226.js} +6 -6
- package/dist/bundle/{chunk-YJRMMZI5.js → chunk-HAUAEGGI.js} +10 -10
- package/dist/bundle/{chunk-4NGLRHWO.js → chunk-HBYE4EP2.js} +1 -1
- package/dist/bundle/{chunk-NW7IMGRR.js → chunk-HIAO4MPA.js} +1 -1
- package/dist/bundle/{chunk-VSUY7PDW.js → chunk-HYZ545ON.js} +7 -4
- package/dist/bundle/{chunk-OBZWUNO4.js → chunk-INARC5O7.js} +9 -9
- package/dist/bundle/{chunk-A6323R5P.js → chunk-IQENQXUJ.js} +2 -2
- package/dist/bundle/{chunk-UYJUTZTT.js → chunk-IQSBMAYB.js} +3 -3
- package/dist/bundle/{chunk-4AURKUDZ.js → chunk-IRX2YVAH.js} +4 -4
- package/dist/bundle/{chunk-CTGI4ES2.js → chunk-K6NPOZUP.js} +6 -6
- package/dist/bundle/{chunk-7H3ZRDLW.js → chunk-KNAS4VEA.js} +2 -2
- package/dist/bundle/{chunk-B32SF7J3.js → chunk-KXEC5FVT.js} +2 -2
- package/dist/bundle/{chunk-XFCSPOLZ.js → chunk-KYUIU5UR.js} +2 -2
- package/dist/bundle/{chunk-KDYPY6IL.js → chunk-LPDYI5GR.js} +1 -1
- package/dist/bundle/{chunk-L3VS3H34.js → chunk-LPY2ISJK.js} +6 -6
- package/dist/bundle/{chunk-UOFOMU3T.js → chunk-LVHZQCP4.js} +1 -1
- package/dist/bundle/{chunk-QFGBMS67.js → chunk-N27LOY3D.js} +14 -7
- package/dist/bundle/{chunk-JUS4H7Z5.js → chunk-OBUKZ2ZM.js} +25 -25
- package/dist/bundle/{chunk-RXDIG23Z.js → chunk-OEEMCNAO.js} +6 -6
- package/dist/bundle/{chunk-URO44C5T.js → chunk-PAEBFJUC.js} +157 -145
- package/dist/bundle/{chunk-EUQ7XFPK.js → chunk-PATM7JGR.js} +1 -1
- package/dist/bundle/{chunk-6FL25KC5.js → chunk-PEMLI3T7.js} +4 -4
- package/dist/bundle/{chunk-5DVW77VC.js → chunk-PPHUBORC.js} +32 -32
- package/dist/bundle/{chunk-PP3JGQQE.js → chunk-Q7U627RY.js} +110 -54
- package/dist/bundle/{chunk-7GVNQOV6.js → chunk-QKSCDALS.js} +1 -1
- package/dist/bundle/{chunk-YIMI6O7R.js → chunk-R4SRXI7M.js} +111 -111
- package/dist/bundle/{chunk-DP5DX45H.js → chunk-RACSKYNX.js} +1 -1
- package/dist/bundle/{chunk-L2UIJDWB.js → chunk-REC3AZP6.js} +2 -2
- package/dist/bundle/{chunk-24DLFGES.js → chunk-RUEPZTNA.js} +2 -2
- package/dist/bundle/{chunk-ZC5UXEIH.js → chunk-TY5PBEH2.js} +11 -11
- package/dist/bundle/{chunk-UKR7KH3H.js → chunk-UWVNY5CA.js} +2 -2
- package/dist/bundle/{chunk-SIA7HJE2.js → chunk-V53IB5AU.js} +56 -49
- package/dist/bundle/{chunk-N7GAQ27N.js → chunk-VJBVNDFR.js} +3 -3
- package/dist/bundle/{chunk-IYAGQXED.js → chunk-VKUS2V4L.js} +8 -8
- package/dist/bundle/{chunk-27P22POE.js → chunk-VLE3FWE3.js} +30 -26
- package/dist/bundle/{recognize-EMHQX4XF.js → chunk-VVKHF6VJ.js} +7 -6
- package/dist/bundle/{chunk-AIXLOMH4.js → chunk-W5EUHV3J.js} +1 -1
- package/dist/bundle/{chunk-QCFHL4ES.js → chunk-WB7MQHUI.js} +2 -2
- package/dist/bundle/{chunk-7Z4ANTAK.js → chunk-WEUXLXOZ.js} +28 -20
- package/dist/bundle/{chunk-VOAVOK4I.js → chunk-WFT2GGFH.js} +57 -18
- package/dist/bundle/{chunk-DXZTLB24.js → chunk-WWNZS7ZY.js} +4 -4
- package/dist/bundle/{chunk-MIGIKHER.js → chunk-WYRYLBST.js} +4 -4
- package/dist/bundle/{chunk-PACC5N6T.js → chunk-X7YPTYM4.js} +10 -3
- package/dist/bundle/{chunk-DXKVEOSS.js → chunk-XLJV3ZOH.js} +1 -1
- package/dist/bundle/{chunk-7D2CD3E3.js → chunk-XNUFDYR6.js} +5 -5
- package/dist/bundle/{chunk-YIFIY7ZE.js → chunk-XS72YFPV.js} +2 -2
- package/dist/bundle/{chunk-ZHXIXDH5.js → chunk-XX7KVQIG.js} +4 -4
- package/dist/bundle/{chunk-MNUTWGSA.js → chunk-Y3YURIZF.js} +32 -32
- package/dist/bundle/{chunk-XT7XVPEM.js → chunk-YEZQ7SD7.js} +11 -11
- package/dist/bundle/{chunk-SL3SXQZ5.js → chunk-YLATWUE7.js} +6 -6
- package/dist/bundle/{chunk-MMT46EN4.js → chunk-Z4D6M62I.js} +2 -2
- package/dist/bundle/{chunk-3SERIWJD.js → chunk-Z5H47R4G.js} +7856 -7818
- package/dist/bundle/{chunk-U6QW67SU.js → chunk-ZDRDCANC.js} +374 -317
- package/dist/bundle/{chunk-DDYR6DYL.js → chunk-ZK7Y5K63.js} +1 -1
- package/dist/bundle/{chunk-YSHSCBPM.js → chunk-ZXQCA3ZW.js} +8 -8
- package/dist/bundle/{cli-IQTASP44.js → cli-CYKEKT5P.js} +54 -54
- package/dist/bundle/command-contract-P45QCCXM.js +38 -0
- package/dist/bundle/config-JYKTLEA3.js +79 -0
- package/dist/bundle/decode-CTQJQYNU.js +158 -0
- package/dist/bundle/{dist-WT73DF46.js → dist-YLSQKPPY.js} +13 -13
- package/dist/bundle/{echarts-LD3AI55P.js → echarts-4OQHS575.js} +2 -2
- package/dist/bundle/{embed-XEMH4LNX.js → embed-P2BKRRJD.js} +4 -4
- package/dist/bundle/{embedder-ZCYKSKAE.js → embedder-HC6ZARP5.js} +7 -7
- package/dist/bundle/{first-run-LGYDLIUM.js → first-run-UERFFXBV.js} +7 -7
- package/dist/bundle/first-screen-VFIS7FX3.js +36 -0
- package/dist/bundle/{folders-5ZBUQHAM.js → folders-RSLPTZLJ.js} +2 -2
- package/dist/bundle/{instructions-RZMSW3OC.js → instructions-3QZBKKPF.js} +1 -1
- package/dist/bundle/{main-LDCSYBV3.js → main-2T6D77JC.js} +17 -16
- package/dist/bundle/mcp-4VHVUMCR.js +92 -0
- package/dist/bundle/{mcp-M7MW5EGT.js → mcp-6CLW2IZM.js} +62 -62
- package/dist/bundle/{meetings-XPBHVZAU.js → meetings-ZIDSQZBJ.js} +7 -3
- package/dist/bundle/{node-ZRLYQL7J.js → node-R2BLYUSB.js} +2 -2
- package/dist/bundle/node-sqlite-7CGHAHIS.js +61 -0
- package/dist/bundle/{oauth-UHVRGKZU.js → oauth-UBCYXTWV.js} +5 -5
- package/dist/bundle/{open-J4FCAUAJ.js → open-AWUB4Q7Z.js} +2 -2
- package/dist/bundle/{output-file-SXV2ANW7.js → output-file-SN22HAVL.js} +3 -3
- package/dist/bundle/{process-LL77573L.js → process-IX5YWGDP.js} +1 -1
- package/dist/bundle/{program-4S5BJVSW.js → program-STYPTNT3.js} +74 -70
- package/dist/bundle/{prompt-LUUMQTMY.js → prompt-MAYUHEGN.js} +3 -3
- package/dist/bundle/recognize-FVTNXRTF.js +21 -0
- package/dist/bundle/{remote-ZXS6D7VB.js → remote-WCPRU73L.js} +5 -5
- package/dist/bundle/{rerank-WP7RKZNB.js → rerank-6CBLZBCV.js} +5 -5
- package/dist/bundle/{run-log-GS2L66G6.js → run-log-G4WZTOBW.js} +51 -51
- package/dist/bundle/{serve-L6KLLXK2.js → serve-3IDUVTZL.js} +7 -7
- package/dist/bundle/server-7GU36TER.js +66 -0
- package/dist/bundle/server-VHRS5UAL.js +53 -0
- package/dist/bundle/{services-SPOEWVK3.js → services-326Z3TNE.js} +24 -24
- package/dist/bundle/{speech-6OBAKMND.js → speech-KSZ7RKM3.js} +4 -4
- package/dist/bundle/{state-HN5EJKXQ.js → state-EPB3L2JM.js} +4 -4
- package/dist/bundle/{store-ZP2URKET.js → store-7WX7SW2R.js} +14 -14
- package/dist/bundle/{store-LEU3M6IN.js → store-KO242JBK.js} +12 -12
- package/dist/bundle/store-connection-K3MNDCQQ.js +76 -0
- package/dist/bundle/store-maintenance-command-GJDJYI2U.js +54 -0
- package/dist/bundle/{streaming-AK6Q2ZGQ.js → streaming-M6VDKBBH.js} +4 -4
- package/dist/bundle/{tokens-CCM3D4ZT.js → tokens-BTNXHR7T.js} +4 -4
- package/dist/bundle/zm.js +1 -1
- package/dist/login.d.ts +1 -0
- package/dist/login.d.ts.map +1 -1
- package/dist/login.js +1 -1
- package/dist/login.js.map +1 -1
- package/dist/recording-schedule-setup.d.ts.map +1 -1
- package/dist/recording-schedule-setup.js +1 -0
- package/dist/recording-schedule-setup.js.map +1 -1
- package/dist/setup-commands.d.ts.map +1 -1
- package/dist/setup-commands.js +6 -1
- package/dist/setup-commands.js.map +1 -1
- package/dist/tokens.d.ts +15 -0
- package/dist/tokens.d.ts.map +1 -1
- package/dist/tokens.js +40 -1
- package/dist/tokens.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/skills/zoom-cli/SKILL.md +1 -0
- package/dist/bundle/answer-policy-7BYG6XWZ.js +0 -96
- package/dist/bundle/command-contract-WHZPF7NA.js +0 -38
- package/dist/bundle/config-AXMQ2PXT.js +0 -79
- package/dist/bundle/first-screen-LYQKPNF4.js +0 -36
- package/dist/bundle/mcp-VISEXTVC.js +0 -92
- package/dist/bundle/node-sqlite-BBEDYBWO.js +0 -45
- package/dist/bundle/server-NOFYENP5.js +0 -53
- package/dist/bundle/server-P5TXAPBY.js +0 -66
- package/dist/bundle/store-connection-3UZBORXK.js +0 -76
- package/dist/bundle/store-maintenance-command-PSCHEHHY.js +0 -54
- /package/dist/bundle/{chunk-Q2Z3VCM4.js → chunk-YLBNPI7H.js} +0 -0
|
@@ -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.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/http/listen.js
|
|
8
8
|
import { createServer } from "node:http";
|
|
9
9
|
import { Readable } from "node:stream";
|
|
10
10
|
var MAX_BODY = 4 * 1024 * 1024;
|
|
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
CliError
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-R4SRXI7M.js";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/search/languages.js
|
|
11
11
|
var LANGUAGES = [
|
|
12
12
|
{ name: "russian", code: "ru", label: "Russian", script: "cyrillic", dictionary: "dictionary-ru" },
|
|
13
13
|
{ name: "english", code: "en", label: "English", script: "latin", dictionary: "dictionary-en" },
|
|
@@ -15,12 +15,12 @@ var LANGUAGES = [
|
|
|
15
15
|
];
|
|
16
16
|
var languagesOf = /* @__PURE__ */ __name((script) => LANGUAGES.filter((one) => one.script === script).map(({ name }) => name), "languagesOf");
|
|
17
17
|
|
|
18
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/store/normalize.js
|
|
19
19
|
var NORMALIZER_VERSION = 1;
|
|
20
20
|
var fold = /* @__PURE__ */ __name((text) => text.normalize("NFKD").replace(new RegExp("\\p{M}+", "gu"), "").normalize("NFC").toLowerCase(), "fold");
|
|
21
21
|
var normalize = /* @__PURE__ */ __name((text) => fold(text).replace(new RegExp("\\p{Cc}", "gu"), " ").replace(/\s+/gu, " ").trim(), "normalize");
|
|
22
22
|
|
|
23
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/search/snowball/base-stemmer.js
|
|
24
24
|
var BaseStemmer = class {
|
|
25
25
|
static {
|
|
26
26
|
__name(this, "BaseStemmer");
|
|
@@ -395,7 +395,7 @@ var BaseStemmer = class {
|
|
|
395
395
|
}
|
|
396
396
|
};
|
|
397
397
|
|
|
398
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
398
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/search/snowball/english-stemmer.js
|
|
399
399
|
var a_0 = [
|
|
400
400
|
["arsen", -1],
|
|
401
401
|
["commun", -1],
|
|
@@ -1096,7 +1096,7 @@ var english_stemmer_default = class extends BaseStemmer {
|
|
|
1096
1096
|
stemWord = this.stem;
|
|
1097
1097
|
};
|
|
1098
1098
|
|
|
1099
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1099
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/search/snowball/russian-stemmer.js
|
|
1100
1100
|
var a_02 = [
|
|
1101
1101
|
["\u0432", 1],
|
|
1102
1102
|
["\u0438\u0432", 2, 1],
|
|
@@ -1519,7 +1519,7 @@ var russian_stemmer_default = class extends BaseStemmer {
|
|
|
1519
1519
|
stemWord = this.stem;
|
|
1520
1520
|
};
|
|
1521
1521
|
|
|
1522
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1522
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/search/snowball/spanish-stemmer.js
|
|
1523
1523
|
var a_03 = [
|
|
1524
1524
|
["", 6],
|
|
1525
1525
|
["\xE1", 1, 1],
|
|
@@ -2195,7 +2195,7 @@ var spanish_stemmer_default = class extends BaseStemmer {
|
|
|
2195
2195
|
stemWord = this.stem;
|
|
2196
2196
|
};
|
|
2197
2197
|
|
|
2198
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2198
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/search/stem.js
|
|
2199
2199
|
var SNOWBALL_VERSION = "3.1.1";
|
|
2200
2200
|
var CYRILLIC_STEMMERS = [...languagesOf("cyrillic"), "none"];
|
|
2201
2201
|
var LATIN_STEMMERS = [...languagesOf("latin"), "none"];
|
|
@@ -154,22 +154,22 @@ import {
|
|
|
154
154
|
upgradeCommand,
|
|
155
155
|
watchCommand,
|
|
156
156
|
withSqliteSidecars
|
|
157
|
-
} from "./chunk-
|
|
157
|
+
} from "./chunk-ZDRDCANC.js";
|
|
158
158
|
import {
|
|
159
159
|
startCli
|
|
160
|
-
} from "./chunk-
|
|
160
|
+
} from "./chunk-HAUAEGGI.js";
|
|
161
161
|
import {
|
|
162
162
|
botInstructions
|
|
163
|
-
} from "./chunk-
|
|
164
|
-
import "./chunk-
|
|
163
|
+
} from "./chunk-HBYE4EP2.js";
|
|
164
|
+
import "./chunk-ZK7Y5K63.js";
|
|
165
165
|
import {
|
|
166
166
|
allAnswer,
|
|
167
167
|
allHitItem,
|
|
168
168
|
messageHitItem,
|
|
169
169
|
noteHitItem,
|
|
170
170
|
registerLinkConversationsPrompt
|
|
171
|
-
} from "./chunk-
|
|
172
|
-
import "./chunk-
|
|
171
|
+
} from "./chunk-VLE3FWE3.js";
|
|
172
|
+
import "./chunk-DBSWVZES.js";
|
|
173
173
|
import {
|
|
174
174
|
UNTRUSTED,
|
|
175
175
|
UNTRUSTED_INSTRUCTION,
|
|
@@ -177,8 +177,8 @@ import {
|
|
|
177
177
|
agentBody,
|
|
178
178
|
agentJson,
|
|
179
179
|
agentResult
|
|
180
|
-
} from "./chunk-
|
|
181
|
-
import "./chunk-
|
|
180
|
+
} from "./chunk-YEZQ7SD7.js";
|
|
181
|
+
import "./chunk-XX7KVQIG.js";
|
|
182
182
|
import {
|
|
183
183
|
DAY_MS,
|
|
184
184
|
FIRST_FETCH_MS,
|
|
@@ -200,7 +200,7 @@ import {
|
|
|
200
200
|
storeInfo,
|
|
201
201
|
storeInfoCommand,
|
|
202
202
|
storeSummary
|
|
203
|
-
} from "./chunk-
|
|
203
|
+
} from "./chunk-V53IB5AU.js";
|
|
204
204
|
import {
|
|
205
205
|
commandPathKey,
|
|
206
206
|
commandPermissions,
|
|
@@ -213,7 +213,7 @@ import {
|
|
|
213
213
|
terminalAsker,
|
|
214
214
|
unknownPermissionIssues,
|
|
215
215
|
unknownPermissionKeys
|
|
216
|
-
} from "./chunk-
|
|
216
|
+
} from "./chunk-EUHQ5D4K.js";
|
|
217
217
|
import {
|
|
218
218
|
COMMAND_NEEDS,
|
|
219
219
|
LIST_QUERY_GUIDE,
|
|
@@ -234,25 +234,25 @@ import {
|
|
|
234
234
|
window,
|
|
235
235
|
withPaging,
|
|
236
236
|
withQuery
|
|
237
|
-
} from "./chunk-
|
|
237
|
+
} from "./chunk-WFT2GGFH.js";
|
|
238
238
|
import {
|
|
239
239
|
servingProfiles
|
|
240
|
-
} from "./chunk-
|
|
240
|
+
} from "./chunk-IQSBMAYB.js";
|
|
241
241
|
import {
|
|
242
242
|
INBOX_CHATS,
|
|
243
243
|
REVIEW_CHATS,
|
|
244
244
|
TASK_PAIR_QUERY,
|
|
245
245
|
TASK_QUERY,
|
|
246
246
|
dateWindow,
|
|
247
|
-
maskedAccount,
|
|
248
247
|
momentOf,
|
|
249
248
|
newIn,
|
|
250
249
|
openRequestTask,
|
|
251
250
|
reviewIn,
|
|
252
251
|
unanswered,
|
|
253
|
-
unreadIn
|
|
254
|
-
|
|
255
|
-
|
|
252
|
+
unreadIn,
|
|
253
|
+
withoutPhone
|
|
254
|
+
} from "./chunk-Z5H47R4G.js";
|
|
255
|
+
import "./chunk-BO7J5Z3T.js";
|
|
256
256
|
import {
|
|
257
257
|
SECTIONS,
|
|
258
258
|
WIRECAT_TOOLS,
|
|
@@ -265,16 +265,16 @@ import {
|
|
|
265
265
|
inSection,
|
|
266
266
|
installHelp,
|
|
267
267
|
nextUsually
|
|
268
|
-
} from "./chunk-
|
|
268
|
+
} from "./chunk-N27LOY3D.js";
|
|
269
269
|
import {
|
|
270
270
|
SCHEMA_DIALECT,
|
|
271
271
|
answerEntity,
|
|
272
272
|
commandContract
|
|
273
|
-
} from "./chunk-
|
|
273
|
+
} from "./chunk-OEEMCNAO.js";
|
|
274
274
|
import {
|
|
275
275
|
botTemplate,
|
|
276
276
|
progress
|
|
277
|
-
} from "./chunk-
|
|
277
|
+
} from "./chunk-PAEBFJUC.js";
|
|
278
278
|
import {
|
|
279
279
|
AI_ENTRIES,
|
|
280
280
|
AI_SETTING_KEYS,
|
|
@@ -364,19 +364,19 @@ import {
|
|
|
364
364
|
withDeadline,
|
|
365
365
|
withSafety,
|
|
366
366
|
withoutSetting
|
|
367
|
-
} from "./chunk-
|
|
367
|
+
} from "./chunk-Y3YURIZF.js";
|
|
368
368
|
import {
|
|
369
369
|
envName,
|
|
370
370
|
readOnlyLockOf,
|
|
371
371
|
readOnlyRefusal
|
|
372
|
-
} from "./chunk-
|
|
373
|
-
import "./chunk-
|
|
372
|
+
} from "./chunk-KYUIU5UR.js";
|
|
373
|
+
import "./chunk-W5EUHV3J.js";
|
|
374
374
|
import {
|
|
375
375
|
providerErrorKey,
|
|
376
376
|
renderEvent,
|
|
377
377
|
runContextOf,
|
|
378
378
|
secretInput
|
|
379
|
-
} from "./chunk-
|
|
379
|
+
} from "./chunk-VKUS2V4L.js";
|
|
380
380
|
import {
|
|
381
381
|
KEEP_RUNS_FOR_DAYS,
|
|
382
382
|
currentAttempt,
|
|
@@ -393,66 +393,66 @@ import {
|
|
|
393
393
|
startRun,
|
|
394
394
|
useAsProcessRun,
|
|
395
395
|
withAttempt
|
|
396
|
-
} from "./chunk-
|
|
396
|
+
} from "./chunk-WEUXLXOZ.js";
|
|
397
397
|
import {
|
|
398
398
|
isCliFailure,
|
|
399
399
|
isCommanderFailure
|
|
400
|
-
} from "./chunk-
|
|
401
|
-
import "./chunk-
|
|
400
|
+
} from "./chunk-IQENQXUJ.js";
|
|
401
|
+
import "./chunk-WWNZS7ZY.js";
|
|
402
402
|
import {
|
|
403
403
|
askSetupQuestions,
|
|
404
404
|
asksAtStart,
|
|
405
405
|
setupAtStart,
|
|
406
406
|
systemLanguage
|
|
407
|
-
} from "./chunk-
|
|
408
|
-
import "./chunk-
|
|
407
|
+
} from "./chunk-TY5PBEH2.js";
|
|
408
|
+
import "./chunk-RACSKYNX.js";
|
|
409
409
|
import "./chunk-MFS52LTZ.js";
|
|
410
410
|
import {
|
|
411
411
|
readSetupAnswers,
|
|
412
412
|
setupPermissionCeiling
|
|
413
|
-
} from "./chunk-
|
|
413
|
+
} from "./chunk-IRX2YVAH.js";
|
|
414
414
|
import {
|
|
415
415
|
failureContext
|
|
416
|
-
} from "./chunk-
|
|
417
|
-
import "./chunk-
|
|
418
|
-
import "./chunk-
|
|
416
|
+
} from "./chunk-X7YPTYM4.js";
|
|
417
|
+
import "./chunk-HYZ545ON.js";
|
|
418
|
+
import "./chunk-LPY2ISJK.js";
|
|
419
419
|
import "./chunk-HTQTIKWP.js";
|
|
420
420
|
import {
|
|
421
421
|
fieldsOf,
|
|
422
422
|
projectFields
|
|
423
|
-
} from "./chunk-
|
|
424
|
-
import "./chunk-
|
|
425
|
-
import "./chunk-
|
|
423
|
+
} from "./chunk-EN5DBDKW.js";
|
|
424
|
+
import "./chunk-AOZGGGUK.js";
|
|
425
|
+
import "./chunk-VJBVNDFR.js";
|
|
426
426
|
import {
|
|
427
427
|
MAX_BUFFERED_INPUT,
|
|
428
428
|
MAX_SECRET_INPUT,
|
|
429
429
|
bufferedInput,
|
|
430
430
|
inputPolicy,
|
|
431
431
|
provideInputPolicy
|
|
432
|
-
} from "./chunk-
|
|
433
|
-
import "./chunk-
|
|
434
|
-
import "./chunk-
|
|
435
|
-
import "./chunk-
|
|
436
|
-
import "./chunk-
|
|
437
|
-
import "./chunk-
|
|
438
|
-
import "./chunk-
|
|
439
|
-
import "./chunk-
|
|
432
|
+
} from "./chunk-AZZPMHP2.js";
|
|
433
|
+
import "./chunk-REC3AZP6.js";
|
|
434
|
+
import "./chunk-WB7MQHUI.js";
|
|
435
|
+
import "./chunk-FZMRHNOP.js";
|
|
436
|
+
import "./chunk-GEVHI226.js";
|
|
437
|
+
import "./chunk-PEMLI3T7.js";
|
|
438
|
+
import "./chunk-CGCJ6P3A.js";
|
|
439
|
+
import "./chunk-K6NPOZUP.js";
|
|
440
440
|
import {
|
|
441
441
|
LANGUAGES
|
|
442
|
-
} from "./chunk-
|
|
443
|
-
import "./chunk-
|
|
444
|
-
import "./chunk-
|
|
445
|
-
import "./chunk-
|
|
446
|
-
import "./chunk-
|
|
447
|
-
import "./chunk-
|
|
442
|
+
} from "./chunk-ZXQCA3ZW.js";
|
|
443
|
+
import "./chunk-FWJ3Q7NO.js";
|
|
444
|
+
import "./chunk-ES6UWVTM.js";
|
|
445
|
+
import "./chunk-Z4D6M62I.js";
|
|
446
|
+
import "./chunk-KXEC5FVT.js";
|
|
447
|
+
import "./chunk-YLATWUE7.js";
|
|
448
448
|
import {
|
|
449
449
|
MEETING_RESULT_ENTITIES
|
|
450
|
-
} from "./chunk-
|
|
451
|
-
import "./chunk-
|
|
450
|
+
} from "./chunk-Q7U627RY.js";
|
|
451
|
+
import "./chunk-LVHZQCP4.js";
|
|
452
452
|
import "./chunk-O5EHUB2V.js";
|
|
453
|
-
import "./chunk-
|
|
453
|
+
import "./chunk-R4SRXI7M.js";
|
|
454
454
|
import "./chunk-Y5E2WNWB.js";
|
|
455
|
-
import "./chunk-
|
|
455
|
+
import "./chunk-HIAO4MPA.js";
|
|
456
456
|
import "./chunk-ZVVMGPBJ.js";
|
|
457
457
|
export {
|
|
458
458
|
AGENTS,
|
|
@@ -654,7 +654,6 @@ export {
|
|
|
654
654
|
loadSnakeCaseConfig,
|
|
655
655
|
logsInOrOut,
|
|
656
656
|
markReadCommand,
|
|
657
|
-
maskedAccount,
|
|
658
657
|
mcpCommand,
|
|
659
658
|
mcpServerCommand,
|
|
660
659
|
meetingEvidenceItem,
|
|
@@ -827,5 +826,6 @@ export {
|
|
|
827
826
|
withQuery,
|
|
828
827
|
withSafety,
|
|
829
828
|
withSqliteSidecars,
|
|
829
|
+
withoutPhone,
|
|
830
830
|
withoutSetting
|
|
831
831
|
};
|
|
@@ -0,0 +1,38 @@
|
|
|
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-OEEMCNAO.js";
|
|
10
|
+
import "./chunk-PAEBFJUC.js";
|
|
11
|
+
import "./chunk-Y3YURIZF.js";
|
|
12
|
+
import "./chunk-KYUIU5UR.js";
|
|
13
|
+
import "./chunk-W5EUHV3J.js";
|
|
14
|
+
import "./chunk-VKUS2V4L.js";
|
|
15
|
+
import "./chunk-WEUXLXOZ.js";
|
|
16
|
+
import "./chunk-IQENQXUJ.js";
|
|
17
|
+
import "./chunk-WWNZS7ZY.js";
|
|
18
|
+
import "./chunk-IRX2YVAH.js";
|
|
19
|
+
import "./chunk-EN5DBDKW.js";
|
|
20
|
+
import "./chunk-AOZGGGUK.js";
|
|
21
|
+
import "./chunk-PEMLI3T7.js";
|
|
22
|
+
import "./chunk-K6NPOZUP.js";
|
|
23
|
+
import "./chunk-FWJ3Q7NO.js";
|
|
24
|
+
import "./chunk-Z4D6M62I.js";
|
|
25
|
+
import "./chunk-KXEC5FVT.js";
|
|
26
|
+
import "./chunk-Q7U627RY.js";
|
|
27
|
+
import "./chunk-LVHZQCP4.js";
|
|
28
|
+
import "./chunk-O5EHUB2V.js";
|
|
29
|
+
import "./chunk-R4SRXI7M.js";
|
|
30
|
+
import "./chunk-Y5E2WNWB.js";
|
|
31
|
+
import "./chunk-ZVVMGPBJ.js";
|
|
32
|
+
export {
|
|
33
|
+
SCHEMA_DIALECT,
|
|
34
|
+
commandContract,
|
|
35
|
+
commandPathOf,
|
|
36
|
+
findCommand,
|
|
37
|
+
outputOf
|
|
38
|
+
};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
addProfile,
|
|
5
|
+
filesZone,
|
|
6
|
+
inspectConfig,
|
|
7
|
+
profileAccountKey,
|
|
8
|
+
readConfig,
|
|
9
|
+
setConfig,
|
|
10
|
+
unsetConfig
|
|
11
|
+
} from "./chunk-WYRYLBST.js";
|
|
12
|
+
import "./chunk-4TCQT57W.js";
|
|
13
|
+
import "./chunk-LPDYI5GR.js";
|
|
14
|
+
import "./chunk-PATM7JGR.js";
|
|
15
|
+
import "./chunk-ZDRDCANC.js";
|
|
16
|
+
import "./chunk-HAUAEGGI.js";
|
|
17
|
+
import "./chunk-HBYE4EP2.js";
|
|
18
|
+
import "./chunk-ZK7Y5K63.js";
|
|
19
|
+
import "./chunk-VLE3FWE3.js";
|
|
20
|
+
import "./chunk-DBSWVZES.js";
|
|
21
|
+
import "./chunk-YEZQ7SD7.js";
|
|
22
|
+
import "./chunk-XX7KVQIG.js";
|
|
23
|
+
import "./chunk-V53IB5AU.js";
|
|
24
|
+
import "./chunk-EUHQ5D4K.js";
|
|
25
|
+
import "./chunk-WFT2GGFH.js";
|
|
26
|
+
import "./chunk-IQSBMAYB.js";
|
|
27
|
+
import "./chunk-Z5H47R4G.js";
|
|
28
|
+
import "./chunk-BO7J5Z3T.js";
|
|
29
|
+
import "./chunk-N27LOY3D.js";
|
|
30
|
+
import "./chunk-OEEMCNAO.js";
|
|
31
|
+
import "./chunk-PAEBFJUC.js";
|
|
32
|
+
import "./chunk-Y3YURIZF.js";
|
|
33
|
+
import "./chunk-KYUIU5UR.js";
|
|
34
|
+
import "./chunk-W5EUHV3J.js";
|
|
35
|
+
import "./chunk-VKUS2V4L.js";
|
|
36
|
+
import "./chunk-WEUXLXOZ.js";
|
|
37
|
+
import "./chunk-IQENQXUJ.js";
|
|
38
|
+
import "./chunk-WWNZS7ZY.js";
|
|
39
|
+
import "./chunk-TY5PBEH2.js";
|
|
40
|
+
import "./chunk-RACSKYNX.js";
|
|
41
|
+
import "./chunk-MFS52LTZ.js";
|
|
42
|
+
import "./chunk-IRX2YVAH.js";
|
|
43
|
+
import "./chunk-X7YPTYM4.js";
|
|
44
|
+
import "./chunk-HYZ545ON.js";
|
|
45
|
+
import "./chunk-LPY2ISJK.js";
|
|
46
|
+
import "./chunk-HTQTIKWP.js";
|
|
47
|
+
import "./chunk-EN5DBDKW.js";
|
|
48
|
+
import "./chunk-AOZGGGUK.js";
|
|
49
|
+
import "./chunk-VJBVNDFR.js";
|
|
50
|
+
import "./chunk-AZZPMHP2.js";
|
|
51
|
+
import "./chunk-REC3AZP6.js";
|
|
52
|
+
import "./chunk-WB7MQHUI.js";
|
|
53
|
+
import "./chunk-FZMRHNOP.js";
|
|
54
|
+
import "./chunk-GEVHI226.js";
|
|
55
|
+
import "./chunk-PEMLI3T7.js";
|
|
56
|
+
import "./chunk-CGCJ6P3A.js";
|
|
57
|
+
import "./chunk-K6NPOZUP.js";
|
|
58
|
+
import "./chunk-ZXQCA3ZW.js";
|
|
59
|
+
import "./chunk-FWJ3Q7NO.js";
|
|
60
|
+
import "./chunk-ES6UWVTM.js";
|
|
61
|
+
import "./chunk-Z4D6M62I.js";
|
|
62
|
+
import "./chunk-KXEC5FVT.js";
|
|
63
|
+
import "./chunk-YLATWUE7.js";
|
|
64
|
+
import "./chunk-Q7U627RY.js";
|
|
65
|
+
import "./chunk-LVHZQCP4.js";
|
|
66
|
+
import "./chunk-O5EHUB2V.js";
|
|
67
|
+
import "./chunk-R4SRXI7M.js";
|
|
68
|
+
import "./chunk-Y5E2WNWB.js";
|
|
69
|
+
import "./chunk-HIAO4MPA.js";
|
|
70
|
+
import "./chunk-ZVVMGPBJ.js";
|
|
71
|
+
export {
|
|
72
|
+
addProfile,
|
|
73
|
+
filesZone,
|
|
74
|
+
inspectConfig,
|
|
75
|
+
profileAccountKey,
|
|
76
|
+
readConfig,
|
|
77
|
+
setConfig,
|
|
78
|
+
unsetConfig
|
|
79
|
+
};
|
|
@@ -0,0 +1,158 @@
|
|
|
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-VVKHF6VJ.js";
|
|
7
|
+
import {
|
|
8
|
+
CliError
|
|
9
|
+
} from "./chunk-R4SRXI7M.js";
|
|
10
|
+
import {
|
|
11
|
+
importFrom
|
|
12
|
+
} from "./chunk-Y5E2WNWB.js";
|
|
13
|
+
import {
|
|
14
|
+
__name
|
|
15
|
+
} from "./chunk-ZVVMGPBJ.js";
|
|
16
|
+
|
|
17
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/speech/decode.js
|
|
18
|
+
import { spawn } from "node:child_process";
|
|
19
|
+
import { mkdtemp, rm, writeFile } from "node:fs/promises";
|
|
20
|
+
import { createRequire } from "node:module";
|
|
21
|
+
import { tmpdir } from "node:os";
|
|
22
|
+
import { join } from "node:path";
|
|
23
|
+
import { pathToFileURL } from "node:url";
|
|
24
|
+
var LONGEST_AUDIO_SECONDS = 3600;
|
|
25
|
+
var FFMPEG_TIMEOUT_MS = 12e4;
|
|
26
|
+
var FFMPEG_FORMATS = "mov,mp4,m4a,3gp,3g2,mj2,aac,mp3,wav,amr,caf,aiff,flac,ogg,matroska,webm,asf";
|
|
27
|
+
var text = /* @__PURE__ */ __name((bytes, from, length) => String.fromCharCode(...bytes.subarray(from, from + length)), "text");
|
|
28
|
+
var contains = /* @__PURE__ */ __name((bytes, needle, within) => Buffer.from(bytes.buffer, bytes.byteOffset, Math.min(bytes.length, within)).includes(needle, 0, "latin1"), "contains");
|
|
29
|
+
var formatOf = /* @__PURE__ */ __name((bytes) => {
|
|
30
|
+
if (text(bytes, 0, 4) === "OggS") {
|
|
31
|
+
if (contains(bytes, "OpusHead", 128))
|
|
32
|
+
return "opus";
|
|
33
|
+
if (contains(bytes, "vorbis", 128))
|
|
34
|
+
return "vorbis";
|
|
35
|
+
return "other";
|
|
36
|
+
}
|
|
37
|
+
if (text(bytes, 0, 4) === "fLaC")
|
|
38
|
+
return "flac";
|
|
39
|
+
const frame = bytes[0] === 255 && ((bytes[1] ?? 0) & 224) === 224 && ((bytes[1] ?? 0) >> 1 & 3) !== 0;
|
|
40
|
+
if (text(bytes, 0, 3) === "ID3" || frame)
|
|
41
|
+
return "mp3";
|
|
42
|
+
return "other";
|
|
43
|
+
}, "formatOf");
|
|
44
|
+
var firstChannel = /* @__PURE__ */ __name((decoded) => {
|
|
45
|
+
const samples = decoded.channelData[0];
|
|
46
|
+
if (!samples || decoded.samplesDecoded === 0)
|
|
47
|
+
throw new CliError("validation_error", "no audio in that file");
|
|
48
|
+
return { samples, rate: decoded.sampleRate };
|
|
49
|
+
}, "firstChannel");
|
|
50
|
+
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");
|
|
51
|
+
var decodeVorbis = /* @__PURE__ */ __name(async (bytes) => {
|
|
52
|
+
const { OggVorbisDecoder } = await load("@wasm-audio-decoders/ogg-vorbis");
|
|
53
|
+
const decoder = new OggVorbisDecoder();
|
|
54
|
+
await decoder.ready;
|
|
55
|
+
try {
|
|
56
|
+
return firstChannel(await decoder.decodeFile(bytes));
|
|
57
|
+
} finally {
|
|
58
|
+
decoder.free();
|
|
59
|
+
}
|
|
60
|
+
}, "decodeVorbis");
|
|
61
|
+
var decodeFlac = /* @__PURE__ */ __name(async (bytes) => {
|
|
62
|
+
const { FLACDecoder } = await load("@wasm-audio-decoders/flac");
|
|
63
|
+
const decoder = new FLACDecoder();
|
|
64
|
+
await decoder.ready;
|
|
65
|
+
try {
|
|
66
|
+
return firstChannel(await decoder.decodeFile(bytes));
|
|
67
|
+
} finally {
|
|
68
|
+
decoder.free();
|
|
69
|
+
}
|
|
70
|
+
}, "decodeFlac");
|
|
71
|
+
var decodeMp3 = /* @__PURE__ */ __name(async (bytes) => {
|
|
72
|
+
const { MPEGDecoder } = await load("mpg123-decoder");
|
|
73
|
+
const decoder = new MPEGDecoder();
|
|
74
|
+
await decoder.ready;
|
|
75
|
+
try {
|
|
76
|
+
return firstChannel(decoder.decode(bytes));
|
|
77
|
+
} finally {
|
|
78
|
+
decoder.free();
|
|
79
|
+
}
|
|
80
|
+
}, "decodeMp3");
|
|
81
|
+
var runFfmpeg = /* @__PURE__ */ __name(async (bytes) => {
|
|
82
|
+
const directory = await mkdtemp(join(tmpdir(), "wirecat-audio-"));
|
|
83
|
+
try {
|
|
84
|
+
const input = join(directory, "audio");
|
|
85
|
+
await writeFile(input, bytes, { mode: 384 });
|
|
86
|
+
const largest = LONGEST_AUDIO_SECONDS * SAMPLE_RATE * 4;
|
|
87
|
+
const output = await new Promise((resolve, reject) => {
|
|
88
|
+
const child = spawn("ffmpeg", [
|
|
89
|
+
"-nostdin",
|
|
90
|
+
"-hide_banner",
|
|
91
|
+
"-loglevel",
|
|
92
|
+
"error",
|
|
93
|
+
"-protocol_whitelist",
|
|
94
|
+
"file",
|
|
95
|
+
"-format_whitelist",
|
|
96
|
+
FFMPEG_FORMATS,
|
|
97
|
+
"-i",
|
|
98
|
+
input,
|
|
99
|
+
"-vn",
|
|
100
|
+
"-ac",
|
|
101
|
+
"1",
|
|
102
|
+
"-ar",
|
|
103
|
+
String(SAMPLE_RATE),
|
|
104
|
+
"-f",
|
|
105
|
+
"f32le",
|
|
106
|
+
"pipe:1"
|
|
107
|
+
], { stdio: ["ignore", "pipe", "pipe"], timeout: FFMPEG_TIMEOUT_MS });
|
|
108
|
+
const chunks = [];
|
|
109
|
+
let size = 0;
|
|
110
|
+
let errors = "";
|
|
111
|
+
child.stdout.on("data", (chunk) => {
|
|
112
|
+
size += chunk.length;
|
|
113
|
+
if (size > largest)
|
|
114
|
+
child.kill();
|
|
115
|
+
else
|
|
116
|
+
chunks.push(chunk);
|
|
117
|
+
});
|
|
118
|
+
child.stderr.on("data", (chunk) => {
|
|
119
|
+
errors = (errors + chunk.toString()).slice(-500);
|
|
120
|
+
});
|
|
121
|
+
child.on("error", (error) => reject(error.code === "ENOENT" ? new CliError("validation_error", "only ffmpeg reads this audio format, and ffmpeg is not installed") : error));
|
|
122
|
+
child.on("close", (code) => {
|
|
123
|
+
if (size > largest)
|
|
124
|
+
reject(new CliError("validation_error", `the audio is longer than ${LONGEST_AUDIO_SECONDS / 60} minutes`));
|
|
125
|
+
else if (code === 0)
|
|
126
|
+
resolve(Buffer.concat(chunks));
|
|
127
|
+
else
|
|
128
|
+
reject(new CliError("validation_error", `ffmpeg could not read the audio: ${errors.trim() || code}`));
|
|
129
|
+
});
|
|
130
|
+
});
|
|
131
|
+
const samples = new Float32Array(Math.floor(output.length / 4));
|
|
132
|
+
Buffer.from(samples.buffer).set(output.subarray(0, samples.length * 4));
|
|
133
|
+
return { samples, rate: SAMPLE_RATE };
|
|
134
|
+
} finally {
|
|
135
|
+
await rm(directory, { recursive: true, force: true });
|
|
136
|
+
}
|
|
137
|
+
}, "runFfmpeg");
|
|
138
|
+
var BUNDLED = {
|
|
139
|
+
opus: decodeOgg,
|
|
140
|
+
vorbis: decodeVorbis,
|
|
141
|
+
flac: decodeFlac,
|
|
142
|
+
mp3: decodeMp3
|
|
143
|
+
};
|
|
144
|
+
var decodeAudio = /* @__PURE__ */ __name(async (bytes, ffmpeg = runFfmpeg) => {
|
|
145
|
+
const format = formatOf(bytes);
|
|
146
|
+
const pcm = format === "other" ? await ffmpeg(bytes) : await BUNDLED[format](bytes).catch((error) => ffmpeg(bytes).catch(() => {
|
|
147
|
+
throw error;
|
|
148
|
+
}));
|
|
149
|
+
if (pcm.samples.length / pcm.rate > LONGEST_AUDIO_SECONDS)
|
|
150
|
+
throw new CliError("validation_error", `the audio is longer than ${LONGEST_AUDIO_SECONDS / 60} minutes`);
|
|
151
|
+
return pcm;
|
|
152
|
+
}, "decodeAudio");
|
|
153
|
+
export {
|
|
154
|
+
LONGEST_AUDIO_SECONDS,
|
|
155
|
+
decodeAudio,
|
|
156
|
+
formatOf,
|
|
157
|
+
runFfmpeg
|
|
158
|
+
};
|
|
@@ -11,17 +11,17 @@ import {
|
|
|
11
11
|
parseMarkdownSpans,
|
|
12
12
|
plainQr,
|
|
13
13
|
terminalQr
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-43BX56ZI.js";
|
|
15
15
|
import {
|
|
16
16
|
DETAILS,
|
|
17
17
|
REASONS,
|
|
18
18
|
failureContext
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-X7YPTYM4.js";
|
|
20
20
|
import {
|
|
21
21
|
pollLines,
|
|
22
22
|
renderMessage,
|
|
23
23
|
renderMessages
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-HYZ545ON.js";
|
|
25
25
|
import {
|
|
26
26
|
ModerationRules,
|
|
27
27
|
act,
|
|
@@ -32,16 +32,16 @@ import {
|
|
|
32
32
|
pickChat,
|
|
33
33
|
pickPerson,
|
|
34
34
|
validateFormattedText
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-LPY2ISJK.js";
|
|
36
36
|
import "./chunk-HTQTIKWP.js";
|
|
37
37
|
import {
|
|
38
38
|
resolveOutput
|
|
39
|
-
} from "./chunk-
|
|
40
|
-
import "./chunk-
|
|
39
|
+
} from "./chunk-EN5DBDKW.js";
|
|
40
|
+
import "./chunk-AOZGGGUK.js";
|
|
41
41
|
import {
|
|
42
42
|
readSecret
|
|
43
|
-
} from "./chunk-
|
|
44
|
-
import "./chunk-
|
|
43
|
+
} from "./chunk-VJBVNDFR.js";
|
|
44
|
+
import "./chunk-AZZPMHP2.js";
|
|
45
45
|
import {
|
|
46
46
|
COUNTER_FIELDS,
|
|
47
47
|
FOLDER_PROVIDERS,
|
|
@@ -64,19 +64,19 @@ import {
|
|
|
64
64
|
providers,
|
|
65
65
|
rankingOptions,
|
|
66
66
|
useProviders
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-ES6UWVTM.js";
|
|
68
68
|
import {
|
|
69
69
|
TAG_TYPES,
|
|
70
70
|
normalizeTag
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-Z4D6M62I.js";
|
|
72
72
|
import {
|
|
73
73
|
canonicalMeetingReference,
|
|
74
74
|
formatMeetingReference,
|
|
75
75
|
parseMeetingReference
|
|
76
|
-
} from "./chunk-
|
|
77
|
-
import "./chunk-
|
|
76
|
+
} from "./chunk-Q7U627RY.js";
|
|
77
|
+
import "./chunk-LVHZQCP4.js";
|
|
78
78
|
import "./chunk-O5EHUB2V.js";
|
|
79
|
-
import "./chunk-
|
|
79
|
+
import "./chunk-R4SRXI7M.js";
|
|
80
80
|
import "./chunk-Y5E2WNWB.js";
|
|
81
81
|
import "./chunk-ZVVMGPBJ.js";
|
|
82
82
|
export {
|