@wirecat/mail-cli 0.27.0 → 0.29.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 +26 -0
- package/dist/bin/mail.js +2 -2
- package/dist/bundle/{all-profiles-5XWH7TBM.js → all-profiles-Q4E2LPB4.js} +7 -7
- package/dist/bundle/{anthropic-QEQGUEPW.js → anthropic-S3N4JDJU.js} +2 -2
- package/dist/bundle/{app-server-YWDU56NR.js → app-server-E44CAPPI.js} +44 -44
- package/dist/bundle/{bun-PWMM6L45.js → bun-RDYA5FCZ.js} +2 -2
- package/dist/bundle/{bun-sqlite-S4QD5YUO.js → bun-sqlite-FPVHKI24.js} +3 -3
- package/dist/bundle/{chunk-2FZMIJW7.js → chunk-2MTIGJHQ.js} +4 -4
- package/dist/bundle/{chunk-QQTSPQ2D.js → chunk-3AH7UEM6.js} +1 -1
- package/dist/bundle/{chunk-7BXOFLWJ.js → chunk-3RBUACSJ.js} +54 -54
- package/dist/bundle/{chunk-4VDWQKDI.js → chunk-44IAJV2T.js} +16 -16
- package/dist/bundle/{chunk-NZG6IRDW.js → chunk-45ET53MO.js} +2 -2
- package/dist/bundle/{chunk-XBL46B4V.js → chunk-5PDWUD3W.js} +1 -1
- package/dist/bundle/{chunk-APLVXHFG.js → chunk-5ZJ6IHVE.js} +1 -1
- package/dist/bundle/{chunk-255RGG5W.js → chunk-6B2BBL35.js} +5 -5
- package/dist/bundle/{chunk-TKOZCIHU.js → chunk-7AO73MJZ.js} +15 -15
- package/dist/bundle/{chunk-AIEMFRBU.js → chunk-7E4KECG4.js} +1 -1
- package/dist/bundle/{chunk-UIKVP23D.js → chunk-7ESXP4TG.js} +1 -1
- package/dist/bundle/{chunk-77J5ID2O.js → chunk-ATJANIQR.js} +2 -2
- package/dist/bundle/{chunk-T7VERZP5.js → chunk-BDWOTD7E.js} +23 -23
- package/dist/bundle/{chunk-IDOHT4Z3.js → chunk-BPHLFSUO.js} +15 -15
- package/dist/bundle/{chunk-KHBZ4OEP.js → chunk-D4QALV67.js} +1 -1
- package/dist/bundle/{chunk-WRHAX53U.js → chunk-DIOHJT2W.js} +6 -6
- package/dist/bundle/{chunk-QVJMFZFW.js → chunk-DMW6J2P3.js} +1 -1
- package/dist/bundle/{chunk-ROLHKFKB.js → chunk-FDGCTY6J.js} +9 -9
- package/dist/bundle/{chunk-572NWJUN.js → chunk-FHQ32JKS.js} +1 -1
- package/dist/bundle/{chunk-CZRMT6XV.js → chunk-FM4B357N.js} +2 -2
- package/dist/bundle/{chunk-CKFVKHTB.js → chunk-FOZXPSHA.js} +3 -3
- package/dist/bundle/{chunk-5DLPM5AV.js → chunk-HKC6ZJA5.js} +12 -12
- package/dist/bundle/{chunk-BZCXAVGP.js → chunk-IKTBM64M.js} +7 -7
- package/dist/bundle/{chunk-WMXUFUV3.js → chunk-IZEK7JI7.js} +2 -2
- package/dist/bundle/{chunk-UEJVXUIO.js → chunk-KBTVVHFP.js} +12 -12
- package/dist/bundle/{chunk-ELPH22W6.js → chunk-KNTAOY5J.js} +7 -7
- package/dist/bundle/{chunk-EXWZCI5G.js → chunk-KSFPMRH6.js} +1 -1
- package/dist/bundle/{chunk-DSUOYJUL.js → chunk-KTLJ6F2B.js} +3 -3
- package/dist/bundle/{chunk-S7H7TAC3.js → chunk-MT5KDBOM.js} +5 -5
- package/dist/bundle/{chunk-XM2THVMR.js → chunk-MVGFB7IS.js} +2 -2
- package/dist/bundle/{chunk-SXKKOOA7.js → chunk-NUHUTJTM.js} +1 -1
- package/dist/bundle/{chunk-AIZ225IA.js → chunk-NWA7JS74.js} +241 -241
- package/dist/bundle/{chunk-PJ3FKBXG.js → chunk-ODPYXNHI.js} +1 -1
- package/dist/bundle/{chunk-ZVQDOKDY.js → chunk-OLTJB5PW.js} +1 -1
- package/dist/bundle/{chunk-TI2OANJZ.js → chunk-PCYTU7HS.js} +1 -1
- package/dist/bundle/{chunk-OEPNLKHI.js → chunk-PIKOQWTL.js} +4 -4
- package/dist/bundle/{chunk-RRLAFEPQ.js → chunk-PYOM4J73.js} +2 -2
- package/dist/bundle/{chunk-PA7LDYVX.js → chunk-RFM3AAK5.js} +52 -52
- package/dist/bundle/{chunk-UBH4UPZ7.js → chunk-RGIEG4XK.js} +2 -1
- package/dist/bundle/{chunk-VYZ37D2Q.js → chunk-TXDA437R.js} +1 -1
- package/dist/bundle/{chunk-5BPOEPYL.js → chunk-UH7FYLFL.js} +4 -4
- package/dist/bundle/{chunk-ZSWSFKNE.js → chunk-UQZJ2GFQ.js} +2 -2
- package/dist/bundle/{chunk-DQO2LX5I.js → chunk-UUM7AF32.js} +2 -2
- package/dist/bundle/{chunk-R3A65A4D.js → chunk-VERUQQZS.js} +10 -10
- package/dist/bundle/{chunk-R5FTCNLJ.js → chunk-VFRI6RF7.js} +1 -1
- package/dist/bundle/{chunk-FOTP6QLO.js → chunk-VXHL3XI6.js} +2 -2
- package/dist/bundle/{chunk-FVVSBQGK.js → chunk-W32UQL5I.js} +21 -21
- package/dist/bundle/{chunk-OCUKQRJ3.js → chunk-WSHPLO4Q.js} +149 -148
- package/dist/bundle/{chunk-RGQFVVBB.js → chunk-WZNQ2P7H.js} +17 -17
- package/dist/bundle/{chunk-HBK6MRAL.js → chunk-XEMARUGS.js} +7 -7
- package/dist/bundle/{chunk-OPOEAGVB.js → chunk-YAQGWHMH.js} +6 -6
- package/dist/bundle/{chunk-S2QRW647.js → chunk-YRER6N3Y.js} +29 -29
- package/dist/bundle/{chunk-OC3U2JAK.js → chunk-YSR2XBDO.js} +3 -3
- package/dist/bundle/{chunk-XCYDTIVK.js → chunk-Z5D6CRY6.js} +4 -4
- package/dist/bundle/{chunk-PRSXMM4I.js → chunk-ZIFB6KGQ.js} +359 -359
- package/dist/bundle/{chunk-MY4LVD64.js → chunk-ZPVVSA5R.js} +1 -1
- package/dist/bundle/{command-contract-MIJONVVG.js → command-contract-TMLXLGVT.js} +15 -15
- package/dist/bundle/{command-server-entry-VHUFW3OZ.js → command-server-entry-PFUR2W7X.js} +21 -21
- package/dist/bundle/{decode-TIMTSVXM.js → decode-SIVT4JWX.js} +2 -2
- package/dist/bundle/{dist-IP25JFTN.js → dist-YWSF5MHP.js} +11 -11
- package/dist/bundle/{echarts-SDZA2SWG.js → echarts-CABLIXX7.js} +2 -2
- package/dist/bundle/{embed-4W527BCE.js → embed-OHENS6RB.js} +3 -3
- package/dist/bundle/{embedder-LQE2SBJ3.js → embedder-JINT4Y4O.js} +6 -6
- package/dist/bundle/{first-run-KZTKMEI4.js → first-run-LU2MAK2B.js} +6 -6
- package/dist/bundle/first-screen-KZNLKRRQ.js +34 -0
- package/dist/bundle/{instructions-7T6JJIFS.js → instructions-3D22PA4T.js} +1 -1
- package/dist/bundle/mail.js +2 -2
- package/dist/bundle/{node-BZDMUFTW.js → node-42G4RGMW.js} +2 -2
- package/dist/bundle/{node-sqlite-PVSKI4OS.js → node-sqlite-KQZM5M3N.js} +4 -4
- package/dist/bundle/{oauth-TGYGAVGF.js → oauth-7BNCNKQV.js} +4 -4
- package/dist/bundle/{open-5YED4Q4C.js → open-ULOQOP7K.js} +2 -2
- package/dist/bundle/{openai-XVJTML22.js → openai-O5AH6VGT.js} +12 -12
- package/dist/bundle/{process-756VBE7E.js → process-6D767IDN.js} +1 -1
- package/dist/bundle/{program-TDHDXAQA.js → program-OE7MFRMJ.js} +525 -408
- package/dist/bundle/{prompt-HPZANASN.js → prompt-WN7EBVKT.js} +2 -2
- package/dist/bundle/{recognize-PP5XQQHH.js → recognize-IX33XEXZ.js} +1 -1
- package/dist/bundle/{remote-C2LU2WYG.js → remote-22N3FQUC.js} +6 -6
- package/dist/bundle/{rerank-WRHNOM4Z.js → rerank-IGX4EFA2.js} +4 -4
- package/dist/bundle/{serve-RE3IV2QB.js → serve-XWIRR2QZ.js} +6 -6
- package/dist/bundle/server-D5OTVERP.js +68 -0
- package/dist/bundle/{server-52BJ7UTO.js → server-DBS4WC6T.js} +35 -35
- package/dist/bundle/{sqlite-runtime-CRRL3MYX.js → sqlite-runtime-WFBTXXXJ.js} +3 -3
- package/dist/bundle/{state-YGJRPMWD.js → state-4J5ERHJA.js} +3 -3
- package/dist/bundle/{store-ESQE4VHP.js → store-YRBX7XLM.js} +13 -13
- package/dist/bundle/{store-6AZ5LVJL.js → store-YSP2NPRJ.js} +15 -15
- package/dist/bundle/store-maintenance-command-SH6IB7S6.js +58 -0
- package/dist/commands/rules.d.ts.map +1 -1
- package/dist/commands/rules.js +78 -20
- package/dist/commands/rules.js.map +1 -1
- package/dist/commands/words.d.ts.map +1 -1
- package/dist/commands/words.js +2 -0
- package/dist/commands/words.js.map +1 -1
- package/dist/mail/imap/connection.d.ts.map +1 -1
- package/dist/mail/imap/connection.js +10 -2
- package/dist/mail/imap/connection.js.map +1 -1
- package/dist/mail/rules/apply.d.ts +10 -2
- package/dist/mail/rules/apply.d.ts.map +1 -1
- package/dist/mail/rules/apply.js +110 -30
- package/dist/mail/rules/apply.js.map +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +1 -0
- package/dist/reasons.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/first-screen-4LG5SJ6D.js +0 -34
- package/dist/bundle/server-43V7HNFY.js +0 -68
- package/dist/bundle/store-maintenance-command-AKQMKUYO.js +0 -58
|
@@ -20,10 +20,10 @@ import {
|
|
|
20
20
|
providerLabel,
|
|
21
21
|
providerNamed,
|
|
22
22
|
queryError
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-3RBUACSJ.js";
|
|
24
24
|
import {
|
|
25
25
|
fold
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-D4QALV67.js";
|
|
27
27
|
import {
|
|
28
28
|
CliError,
|
|
29
29
|
isCliError,
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
__name
|
|
34
34
|
} from "./chunk-ZVVMGPBJ.js";
|
|
35
35
|
|
|
36
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/domain/ref-arguments.js
|
|
37
37
|
var TAKES = {
|
|
38
38
|
chat: "a chat: chat:<provider>/<account>/<chat>, its id or its title",
|
|
39
39
|
message: "a message: msg:<provider>/<account>/<chat>/<message>, or a chat and the message's id"
|
|
@@ -93,7 +93,7 @@ var ensureAccount = /* @__PURE__ */ __name(async (reference, scope, profilesOn)
|
|
|
93
93
|
throw wrongAccount(reference, scope, profiles);
|
|
94
94
|
}, "ensureAccount");
|
|
95
95
|
|
|
96
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
96
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/search/lucene/types.js
|
|
97
97
|
var QUERY_VERSION = 1;
|
|
98
98
|
var QUERY_LIMITS2 = {
|
|
99
99
|
...QUERY_LIMITS,
|
|
@@ -138,7 +138,7 @@ function tooWideTerm([term], budget) {
|
|
|
138
138
|
}
|
|
139
139
|
__name(tooWideTerm, "tooWideTerm");
|
|
140
140
|
|
|
141
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
141
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/search/lucene/automaton.js
|
|
142
142
|
var any = { kind: "char", ranges: [[0, 1114111]], negate: false };
|
|
143
143
|
var literal = /* @__PURE__ */ __name((c) => ({
|
|
144
144
|
kind: "char",
|
|
@@ -538,7 +538,7 @@ var foldRegex = /* @__PURE__ */ __name((pattern, span) => {
|
|
|
538
538
|
return out;
|
|
539
539
|
}, "foldRegex");
|
|
540
540
|
|
|
541
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
541
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/search/trigrams.js
|
|
542
542
|
var trigrams = /* @__PURE__ */ __name((term) => {
|
|
543
543
|
const padded = ` ${term} `;
|
|
544
544
|
const pieces = /* @__PURE__ */ new Set();
|
|
@@ -547,7 +547,7 @@ var trigrams = /* @__PURE__ */ __name((term) => {
|
|
|
547
547
|
return [...pieces];
|
|
548
548
|
}, "trigrams");
|
|
549
549
|
|
|
550
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
550
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/resolve.js
|
|
551
551
|
var isId = /* @__PURE__ */ __name((reference) => /^-?\d+$/.test(reference.trim()), "isId");
|
|
552
552
|
var foldName = /* @__PURE__ */ __name((name) => name.normalize("NFC").replace(/[\uFE0E\uFE0F\u200D]/g, "").toLowerCase().replaceAll("\u0451", "\u0435"), "foldName");
|
|
553
553
|
var pickChat = /* @__PURE__ */ __name((reference, chats) => {
|
|
@@ -618,7 +618,7 @@ ${lines}`, { candidates });
|
|
|
618
618
|
}, "ambiguous");
|
|
619
619
|
var isPresent = /* @__PURE__ */ __name((value) => value !== null && value !== void 0, "isPresent");
|
|
620
620
|
|
|
621
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
621
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/domain/record-fields.js
|
|
622
622
|
var DECIMAL_PATTERN = "^[0-9]{1,16}(\\.[0-9]{1,6})?$";
|
|
623
623
|
var SIGNED_DECIMAL = "^-?[0-9]{1,16}(\\.[0-9]{1,6})?$";
|
|
624
624
|
var DAY = "^[0-9]{4}-[0-9]{2}-[0-9]{2}$";
|
|
@@ -668,7 +668,7 @@ var arrayOf = /* @__PURE__ */ __name((item, maxItems, description) => ({
|
|
|
668
668
|
}), "arrayOf");
|
|
669
669
|
var isObject = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isObject");
|
|
670
670
|
|
|
671
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
671
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/domain/record-types.js
|
|
672
672
|
var kept = /* @__PURE__ */ __name((description) => ({ description }), "kept");
|
|
673
673
|
var PARTY = ["person", "organization"];
|
|
674
674
|
var ORGANIZATION = ["organization"];
|
|
@@ -1063,7 +1063,7 @@ var hasV1Roles = /* @__PURE__ */ __name((type) => rolesOf(type).some(([, role])
|
|
|
1063
1063
|
var IDENTITY_TYPES = RECORD_ENTITY_TYPES.filter((type) => RECORD_TYPES[type].review === "identity");
|
|
1064
1064
|
var article2 = /* @__PURE__ */ __name((word) => /^[aeiou]/.test(word) ? "an" : "a", "article");
|
|
1065
1065
|
|
|
1066
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1066
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/domain/addresses.js
|
|
1067
1067
|
var EMAIL_ADDRESS = /^[^\s@]+@[^\s@]+\.[^\s@]+$/u;
|
|
1068
1068
|
var isEmailAddress = /* @__PURE__ */ __name((value) => EMAIL_ADDRESS.test(value), "isEmailAddress");
|
|
1069
1069
|
var ROLE_ADDRESS_WORDS = {
|
|
@@ -1125,7 +1125,7 @@ var PERSON_LIKE = /* @__PURE__ */ new Set(["hr"]);
|
|
|
1125
1125
|
var isPersonLikeRoleAddress = /* @__PURE__ */ __name((address) => PERSON_LIKE.has(localWord(address)), "isPersonLikeRoleAddress");
|
|
1126
1126
|
var isNoReplyAddress = /* @__PURE__ */ __name((address) => NO_REPLY.has(localWord(address)), "isNoReplyAddress");
|
|
1127
1127
|
|
|
1128
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1128
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/domain/phone-plans.generated.js
|
|
1129
1129
|
var PHONE_PLANS = [
|
|
1130
1130
|
{
|
|
1131
1131
|
country: "us",
|
|
@@ -1505,7 +1505,7 @@ var PHONE_PLANS = [
|
|
|
1505
1505
|
}
|
|
1506
1506
|
];
|
|
1507
1507
|
|
|
1508
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1508
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/domain/phones.js
|
|
1509
1509
|
var PHONE_COUNTRIES = PHONE_PLANS.map((plan) => plan.country);
|
|
1510
1510
|
var DEFAULT_PHONE_COUNTRIES = ["ru"];
|
|
1511
1511
|
var parsePhoneCountries = /* @__PURE__ */ __name((value) => {
|
|
@@ -1580,7 +1580,7 @@ var storedPhone = /* @__PURE__ */ __name((raw, provider) => {
|
|
|
1580
1580
|
return found ? `+${found[1]}` : void 0;
|
|
1581
1581
|
}, "storedPhone");
|
|
1582
1582
|
|
|
1583
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1583
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/domain/display-names.js
|
|
1584
1584
|
var QUOTES = [
|
|
1585
1585
|
['"', '"'],
|
|
1586
1586
|
["'", "'"],
|
|
@@ -1638,7 +1638,7 @@ var nameKey = /* @__PURE__ */ __name((name) => {
|
|
|
1638
1638
|
}, "nameKey");
|
|
1639
1639
|
var isReadable = /* @__PURE__ */ __name((shown) => shown !== null && READABLE.test(shown), "isReadable");
|
|
1640
1640
|
|
|
1641
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1641
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/domain/counters.js
|
|
1642
1642
|
var COUNTER_FIELDS = ["views", "reactions", "comments"];
|
|
1643
1643
|
var validCounter = /* @__PURE__ */ __name((value) => typeof value === "number" && Number.isFinite(value) && value >= 0, "validCounter");
|
|
1644
1644
|
var counterValue = /* @__PURE__ */ __name((message, field) => {
|
|
@@ -1675,7 +1675,7 @@ var counterFreshness = /* @__PURE__ */ __name((states) => {
|
|
|
1675
1675
|
return states.some((one) => one.freshness === "stale") ? "stale" : "fresh";
|
|
1676
1676
|
}, "counterFreshness");
|
|
1677
1677
|
|
|
1678
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1678
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/domain/rankings-options.js
|
|
1679
1679
|
var MESSAGE_MEASURES = ["views", "reactions", "forwards", "comments", "replies", "thread-size"];
|
|
1680
1680
|
var AUTHOR_MEASURES = [
|
|
1681
1681
|
"messages",
|
|
@@ -1815,7 +1815,7 @@ var withoutUrls = /* @__PURE__ */ __name((text2) => text2.replace(/\S+/gu, (toke
|
|
|
1815
1815
|
var rankingWords = /* @__PURE__ */ __name((text2) => withoutUrls(text2).match(/[\p{L}\p{N}]+/gu)?.length ?? 0, "rankingWords");
|
|
1816
1816
|
var rankingQuestion = /* @__PURE__ */ __name((text2) => withoutUrls(text2).includes("?"), "rankingQuestion");
|
|
1817
1817
|
|
|
1818
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1818
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/domain/records.js
|
|
1819
1819
|
import { createHash } from "node:crypto";
|
|
1820
1820
|
var RECORDS_SCHEMA_VERSION = 1;
|
|
1821
1821
|
var RECORD_OPERATIONS = ["upsert", "delete"];
|
|
@@ -1987,7 +1987,7 @@ var fieldReferences = /* @__PURE__ */ __name((record, options = {}) => {
|
|
|
1987
1987
|
return found;
|
|
1988
1988
|
}, "fieldReferences");
|
|
1989
1989
|
|
|
1990
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1990
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/domain/relation-role-labels.js
|
|
1991
1991
|
var label = /* @__PURE__ */ __name((en, ru, es) => ({ en, ru, es }), "label");
|
|
1992
1992
|
var ROLE_LABELS = {
|
|
1993
1993
|
organization: {
|
|
@@ -2,11 +2,11 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
isCliFailure
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-NUHUTJTM.js";
|
|
6
6
|
import {
|
|
7
7
|
secretNamed,
|
|
8
8
|
withoutSecrets
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ZPVVSA5R.js";
|
|
10
10
|
import {
|
|
11
11
|
isContentKey
|
|
12
12
|
} from "./chunk-7MEVD5PI.js";
|
|
@@ -14,14 +14,14 @@ import {
|
|
|
14
14
|
__name
|
|
15
15
|
} from "./chunk-ZVVMGPBJ.js";
|
|
16
16
|
|
|
17
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/runs/run-context.js
|
|
18
18
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
19
19
|
import { createHash } from "node:crypto";
|
|
20
20
|
|
|
21
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
|
|
22
22
|
import { homedir } from "node:os";
|
|
23
23
|
|
|
24
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/runs/events.js
|
|
25
25
|
var providerErrorKey = /* @__PURE__ */ __name((value) => typeof value === "string" && /^[A-Za-z][A-Za-z0-9._-]{0,63}$/.test(value) ? value : void 0, "providerErrorKey");
|
|
26
26
|
var renderEvent = /* @__PURE__ */ __name((event) => {
|
|
27
27
|
if (event.event === "store")
|
|
@@ -73,7 +73,7 @@ var MARK = { request: "\u2192", response: "\u2190", cache: "\u2022", warning: "!
|
|
|
73
73
|
var age = /* @__PURE__ */ __name((ms) => ms < 1e3 ? `${ms}ms` : `${Math.round(ms / 1e3)}s`, "age");
|
|
74
74
|
var size = /* @__PURE__ */ __name((bytes) => bytes < 1e3 ? `${bytes} B` : `${(bytes / 1e3).toFixed(1)} kB`, "size");
|
|
75
75
|
|
|
76
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
76
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
|
|
77
77
|
var MESSAGE_AT_MOST = 500;
|
|
78
78
|
var CAUSES_AT_MOST = 5;
|
|
79
79
|
var FRAMES_AT_MOST = 15;
|
|
@@ -185,7 +185,7 @@ var redactText = /* @__PURE__ */ __name((text) => {
|
|
|
185
185
|
return out.length > MESSAGE_AT_MOST ? `${out.slice(0, MESSAGE_AT_MOST)}\u2026` : out;
|
|
186
186
|
}, "redactText");
|
|
187
187
|
|
|
188
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
188
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/runs/run-context.js
|
|
189
189
|
var REDACTED = "[redacted]";
|
|
190
190
|
var keepsSuccess = /* @__PURE__ */ __name(({ record, fromFlag, env, caller, persistent = false }) => {
|
|
191
191
|
if (!record)
|
|
@@ -2,11 +2,11 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
LEVELS
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-2MTIGJHQ.js";
|
|
6
6
|
import {
|
|
7
7
|
WORD_BODY,
|
|
8
8
|
e164Of
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-WZNQ2P7H.js";
|
|
10
10
|
import {
|
|
11
11
|
resolvePaths,
|
|
12
12
|
writeSecurely
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
__name
|
|
39
39
|
} from "./chunk-ZVVMGPBJ.js";
|
|
40
40
|
|
|
41
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/domain/vcard.js
|
|
42
42
|
import { createHash } from "node:crypto";
|
|
43
43
|
var MAX_ID = 512;
|
|
44
44
|
var AS_WORD = new RegExp(`^${WORD_BODY}$`);
|
|
@@ -269,7 +269,7 @@ var envelopeOfVcard = /* @__PURE__ */ __name((text, { provider, account, batchId
|
|
|
269
269
|
};
|
|
270
270
|
}, "envelopeOfVcard");
|
|
271
271
|
|
|
272
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
272
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/domain/formatting.js
|
|
273
273
|
var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "the messenger formatter returned invalid text spans"), "invalid");
|
|
274
274
|
var validateFormattedText = /* @__PURE__ */ __name((formatted) => {
|
|
275
275
|
const { text, spans } = formatted;
|
|
@@ -329,7 +329,7 @@ var visibleFormattedText = /* @__PURE__ */ __name((formatted) => {
|
|
|
329
329
|
};
|
|
330
330
|
}, "visibleFormattedText");
|
|
331
331
|
|
|
332
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
332
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/moderation/check.js
|
|
333
333
|
var INVITE = /max\.ru\/join\/|(t|telegram)\.me\/(\+|joinchat\/)|tg:\/\/join/i;
|
|
334
334
|
var LINK = /https?:\/\/\S+/i;
|
|
335
335
|
var STRENGTH = { report: 0, delete: 1, remove: 2 };
|
|
@@ -517,7 +517,7 @@ var nextPoint = /* @__PURE__ */ __name((rows, found) => {
|
|
|
517
517
|
}, "nextPoint");
|
|
518
518
|
var someUndone = /* @__PURE__ */ __name((rows) => rows.some(undone), "someUndone");
|
|
519
519
|
|
|
520
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
520
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/moderation/rules.js
|
|
521
521
|
import { existsSync, readFileSync } from "node:fs";
|
|
522
522
|
import { join } from "node:path";
|
|
523
523
|
var RULE_ACTIONS = ["report", "delete", "remove"];
|
|
@@ -12,10 +12,10 @@ import {
|
|
|
12
12
|
refuseWriteBeforeConnecting,
|
|
13
13
|
registerPrompts,
|
|
14
14
|
syncsFirst
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-W32UQL5I.js";
|
|
16
16
|
import {
|
|
17
17
|
stdinFieldOf
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-ODPYXNHI.js";
|
|
19
19
|
import {
|
|
20
20
|
BinaryResource,
|
|
21
21
|
Picture,
|
|
@@ -36,33 +36,33 @@ import {
|
|
|
36
36
|
tool,
|
|
37
37
|
toolKey,
|
|
38
38
|
toolsFromCommands
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-BPHLFSUO.js";
|
|
40
40
|
import {
|
|
41
41
|
agentJson,
|
|
42
42
|
skillResource
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-FDGCTY6J.js";
|
|
44
44
|
import {
|
|
45
45
|
instructions
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-7E4KECG4.js";
|
|
47
47
|
import {
|
|
48
48
|
answeredWire
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-VFRI6RF7.js";
|
|
50
50
|
import {
|
|
51
51
|
StdioServerTransport,
|
|
52
52
|
callerOf,
|
|
53
53
|
callingAgent,
|
|
54
54
|
serveStdio
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-VXHL3XI6.js";
|
|
56
56
|
import {
|
|
57
57
|
McpServer,
|
|
58
58
|
ResourceTemplate
|
|
59
59
|
} from "./chunk-5D4AEUVA.js";
|
|
60
60
|
import {
|
|
61
61
|
mcpHttpMarker
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-PIKOQWTL.js";
|
|
63
63
|
import {
|
|
64
64
|
connectedFor
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-7AO73MJZ.js";
|
|
66
66
|
import {
|
|
67
67
|
capability,
|
|
68
68
|
dateWindow,
|
|
@@ -72,10 +72,10 @@ import {
|
|
|
72
72
|
servicesFor,
|
|
73
73
|
storedDeps,
|
|
74
74
|
wholeList
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-NWA7JS74.js";
|
|
76
76
|
import {
|
|
77
77
|
findCommand
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-KTLJ6F2B.js";
|
|
79
79
|
import {
|
|
80
80
|
DEFAULT_OUTPUT_BYTES,
|
|
81
81
|
changesAuthorityAt,
|
|
@@ -90,30 +90,30 @@ import {
|
|
|
90
90
|
rootOf2 as rootOf,
|
|
91
91
|
sealed,
|
|
92
92
|
snakeKeys
|
|
93
|
-
} from "./chunk-
|
|
93
|
+
} from "./chunk-WSHPLO4Q.js";
|
|
94
94
|
import {
|
|
95
95
|
levelFor,
|
|
96
96
|
readKeysForCommand
|
|
97
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-2MTIGJHQ.js";
|
|
98
98
|
import {
|
|
99
99
|
withCaller
|
|
100
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-XEMARUGS.js";
|
|
101
101
|
import {
|
|
102
102
|
openStore,
|
|
103
103
|
pdfPreviewLimits
|
|
104
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-ZIFB6KGQ.js";
|
|
105
105
|
import {
|
|
106
106
|
typedCommand
|
|
107
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-BDWOTD7E.js";
|
|
108
108
|
import {
|
|
109
109
|
timezoneOf
|
|
110
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-3RBUACSJ.js";
|
|
111
111
|
import {
|
|
112
112
|
isCliFailure
|
|
113
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-NUHUTJTM.js";
|
|
114
114
|
import {
|
|
115
115
|
warmEmbedders
|
|
116
|
-
} from "./chunk-
|
|
116
|
+
} from "./chunk-MT5KDBOM.js";
|
|
117
117
|
import {
|
|
118
118
|
description,
|
|
119
119
|
integer,
|
|
@@ -138,10 +138,10 @@ import {
|
|
|
138
138
|
__name
|
|
139
139
|
} from "./chunk-ZVVMGPBJ.js";
|
|
140
140
|
|
|
141
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
141
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/mcp/server.js
|
|
142
142
|
import { randomUUID } from "node:crypto";
|
|
143
143
|
|
|
144
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
144
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/mcp/agent-log.js
|
|
145
145
|
var agentLog = /* @__PURE__ */ __name((open) => {
|
|
146
146
|
let held;
|
|
147
147
|
return {
|
|
@@ -160,7 +160,7 @@ var agentLog = /* @__PURE__ */ __name((open) => {
|
|
|
160
160
|
};
|
|
161
161
|
}, "agentLog");
|
|
162
162
|
|
|
163
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
163
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/mcp/resources.js
|
|
164
164
|
var LISTED = 100;
|
|
165
165
|
var registerResources = /* @__PURE__ */ __name((server, session, { command, name, limit, recorded, withStore, messenger, guard, assertRead }) => {
|
|
166
166
|
server.registerResource("chat", new ResourceTemplate(`${command}://chat/{id}`, {
|
|
@@ -198,7 +198,7 @@ var registerResources = /* @__PURE__ */ __name((server, session, { command, name
|
|
|
198
198
|
});
|
|
199
199
|
}, "registerResources");
|
|
200
200
|
|
|
201
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
201
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/mcp/session.js
|
|
202
202
|
var HARMLESS = /* @__PURE__ */ new Set(["validation_error", "not_found", "permission_error", "confirmation_required", "rate_limited"]);
|
|
203
203
|
var harmless = /* @__PURE__ */ __name((code) => HARMLESS.has(code), "harmless");
|
|
204
204
|
var MessengerSession = class {
|
|
@@ -273,7 +273,7 @@ var MessengerSession = class {
|
|
|
273
273
|
}
|
|
274
274
|
};
|
|
275
275
|
|
|
276
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
276
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/mcp/tools/attachments.js
|
|
277
277
|
var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
|
|
278
278
|
const _command = messenger.app.command;
|
|
279
279
|
return {
|
|
@@ -327,7 +327,7 @@ var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
|
|
|
327
327
|
};
|
|
328
328
|
}, "attachmentsTools");
|
|
329
329
|
|
|
330
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
330
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/mcp/tools/messages-photo.js
|
|
331
331
|
var PHOTO_LIMIT = 512 * 1024;
|
|
332
332
|
var IMAGE_TYPES = [
|
|
333
333
|
["image/jpeg", (b) => b[0] === 255 && b[1] === 216 && b[2] === 255],
|
|
@@ -381,7 +381,7 @@ var readUpTo = /* @__PURE__ */ __name(async (file, limit, saveIt) => {
|
|
|
381
381
|
return new Uint8Array(Buffer.concat(chunks));
|
|
382
382
|
}, "readUpTo");
|
|
383
383
|
|
|
384
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
384
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/mcp/tools/stats.js
|
|
385
385
|
var statsTools = /* @__PURE__ */ __name((messenger) => ({
|
|
386
386
|
stats_charts: tool({
|
|
387
387
|
title: "A chart from a chat's statistics",
|
|
@@ -418,14 +418,14 @@ var statsTools = /* @__PURE__ */ __name((messenger) => ({
|
|
|
418
418
|
})
|
|
419
419
|
}), "statsTools");
|
|
420
420
|
|
|
421
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
421
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/mcp/tools.js
|
|
422
422
|
var pictureTools = /* @__PURE__ */ __name((messenger) => Object.fromEntries(Object.entries({
|
|
423
423
|
...messagesPhotoTools(messenger),
|
|
424
424
|
...attachmentsTools(messenger),
|
|
425
425
|
...statsTools(messenger)
|
|
426
426
|
}).map(([name, definition]) => [name, { ...definition, input: strictObject(definition.input.entries) }])), "pictureTools");
|
|
427
427
|
|
|
428
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
428
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/mcp/server.js
|
|
429
429
|
var PER_RUN = /* @__PURE__ */ new Set([
|
|
430
430
|
"streams",
|
|
431
431
|
"stdin",
|
|
@@ -752,7 +752,7 @@ var serveOverStdio = /* @__PURE__ */ __name(async (command, context, messenger,
|
|
|
752
752
|
}, "serveOverStdio");
|
|
753
753
|
var serveOverHttpUntilStopped = /* @__PURE__ */ __name(async (command, context, messenger, options, http) => {
|
|
754
754
|
const { session, embedders, build, log } = createServer(command, context, messenger, options);
|
|
755
|
-
const { serveOverHttp } = await import("./serve-
|
|
755
|
+
const { serveOverHttp } = await import("./serve-XWIRR2QZ.js");
|
|
756
756
|
const appName = messenger.app.command;
|
|
757
757
|
const appEnvPrefix = messenger.app.envPrefix;
|
|
758
758
|
const listening = await serveOverHttp(build, {
|
|
@@ -10,10 +10,10 @@ 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.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/speech/recognize.js
|
|
14
14
|
import { createRequire } from "node:module";
|
|
15
15
|
|
|
16
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/speech/ogg-limit.js
|
|
17
17
|
var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "local transcription needs a complete mono or stereo Ogg Opus recording"), "invalid");
|
|
18
18
|
var checkOggDuration = /* @__PURE__ */ __name((bytes) => {
|
|
19
19
|
const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
|
|
@@ -70,7 +70,7 @@ var checkOggDuration = /* @__PURE__ */ __name((bytes) => {
|
|
|
70
70
|
throw invalid();
|
|
71
71
|
}, "checkOggDuration");
|
|
72
72
|
|
|
73
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
73
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/speech/recognize.js
|
|
74
74
|
var SAMPLE_RATE = 16e3;
|
|
75
75
|
var LEAD = SAMPLE_RATE / 2;
|
|
76
76
|
var toModelRate = /* @__PURE__ */ __name((samples, rate) => {
|
|
@@ -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-TXDA437R.js";
|
|
6
6
|
import {
|
|
7
7
|
resolvePaths
|
|
8
8
|
} from "./chunk-7MEVD5PI.js";
|
|
@@ -14,11 +14,11 @@ import {
|
|
|
14
14
|
__name
|
|
15
15
|
} from "./chunk-ZVVMGPBJ.js";
|
|
16
16
|
|
|
17
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/store/shared-config.js
|
|
18
18
|
import { mkdirSync, readFileSync, renameSync, statSync, writeFileSync } from "node:fs";
|
|
19
19
|
import { dirname, join, resolve } from "node:path";
|
|
20
20
|
|
|
21
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/domain/task-categories.js
|
|
22
22
|
var DEFAULT_TASK_CATEGORIES = [
|
|
23
23
|
{
|
|
24
24
|
name: "taxes",
|
|
@@ -773,7 +773,7 @@ var storedTaskCategories = /* @__PURE__ */ __name((json) => {
|
|
|
773
773
|
}
|
|
774
774
|
}, "storedTaskCategories");
|
|
775
775
|
|
|
776
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
776
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/store/shared-config.js
|
|
777
777
|
var SECTION = "task_categories";
|
|
778
778
|
var sharedConfigPath = /* @__PURE__ */ __name((store, env = process.env) => {
|
|
779
779
|
const paths = resolvePaths({ appName: "WireCat", prefix: "WIRECAT", env });
|