@wirecat/mail-cli 0.15.0 → 0.16.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/CHANGELOG.md +32 -0
- package/README.md +14 -14
- package/dist/bin/mail.js +2 -2
- package/dist/bundle/{all-profiles-PKXL5TKP.js → all-profiles-TUDREUUW.js} +6 -6
- package/dist/bundle/{anthropic-DFDNZU7C.js → anthropic-KQOVSP6C.js} +3 -3
- package/dist/bundle/{app-server-WOZAOCKX.js → app-server-QK7PKVT7.js} +40 -40
- package/dist/bundle/{bun-DKZAL6ML.js → bun-2NMWL5YB.js} +2 -2
- package/dist/bundle/{bun-sqlite-2A7FS5GD.js → bun-sqlite-Y4FP6SDX.js} +2 -2
- package/dist/bundle/{chunk-WIU733D2.js → chunk-3CVDHJER.js} +1 -1
- package/dist/bundle/{chunk-QJQV6KG2.js → chunk-3ZJE5TIG.js} +1 -1
- package/dist/bundle/{chunk-FEWWBU2I.js → chunk-4IEDXIUN.js} +208 -210
- package/dist/bundle/{chunk-WTDYN3TQ.js → chunk-4IIH5PXR.js} +26 -26
- package/dist/bundle/{chunk-YWIU4HOT.js → chunk-5FPQGUJA.js} +1 -1
- package/dist/bundle/{chunk-U3VX3UUC.js → chunk-6DVPPLAN.js} +3 -3
- package/dist/bundle/{chunk-IA6U76ZY.js → chunk-7LMTWOTP.js} +1 -1
- package/dist/bundle/{chunk-YRHXVXLQ.js → chunk-ANFIIXBL.js} +1 -1
- package/dist/bundle/{chunk-QSGT4ZH4.js → chunk-ARDUJR5Z.js} +1 -1
- package/dist/bundle/{chunk-BKF7XIJ5.js → chunk-B2NDDA2W.js} +8 -8
- package/dist/bundle/{chunk-BIKMEGC7.js → chunk-CGH6UH3T.js} +7 -7
- package/dist/bundle/{chunk-4HVY3QPF.js → chunk-CRYWPLJP.js} +1 -1
- package/dist/bundle/{chunk-LRBAQSU3.js → chunk-CT2MIWXY.js} +2 -2
- package/dist/bundle/{chunk-JQTIB4WJ.js → chunk-DDQXDX4U.js} +4 -4
- package/dist/bundle/{chunk-NNLYS4IR.js → chunk-DKIAHQRN.js} +7 -7
- package/dist/bundle/{chunk-XKUAEYJV.js → chunk-EBEYU7RW.js} +9 -9
- package/dist/bundle/{chunk-6AYJDBHT.js → chunk-EZIJPXDZ.js} +5 -5
- package/dist/bundle/{chunk-NDZK466U.js → chunk-FHY664YS.js} +3 -3
- package/dist/bundle/{chunk-4YECCESG.js → chunk-FROWEHK7.js} +2 -2
- package/dist/bundle/{chunk-73SQQXSU.js → chunk-GAYW2JRW.js} +7 -7
- package/dist/bundle/{chunk-KJYCA6IC.js → chunk-GIKNAOER.js} +3 -3
- package/dist/bundle/{chunk-M5DF6QNT.js → chunk-HN3EDDVX.js} +12 -12
- package/dist/bundle/{chunk-RFDP45QO.js → chunk-HVAXTTOT.js} +2 -2
- package/dist/bundle/{chunk-M5VHTDJZ.js → chunk-I3K6JG4I.js} +16 -16
- package/dist/bundle/{chunk-SPQY3PJX.js → chunk-IJYYD2JU.js} +296 -169
- package/dist/bundle/{chunk-K4N5UG64.js → chunk-K2OQCQ2N.js} +4 -4
- package/dist/bundle/{chunk-3MKCLPQV.js → chunk-KJV3BI7S.js} +9 -9
- package/dist/bundle/{chunk-HGOYQUT7.js → chunk-KMZRXGTF.js} +1 -1
- package/dist/bundle/{chunk-XGNC5OJG.js → chunk-LMN7SYX4.js} +1 -1
- package/dist/bundle/{chunk-5W7D5H2R.js → chunk-M6O4DH5F.js} +1 -1
- package/dist/bundle/{chunk-R6UG66IM.js → chunk-MLWN27HF.js} +214 -214
- package/dist/bundle/{chunk-P4SV3VKP.js → chunk-N7DLDEFU.js} +2 -2
- package/dist/bundle/{chunk-LARQTWIL.js → chunk-OYB3FUYQ.js} +1 -1
- package/dist/bundle/{chunk-RBNL3DBQ.js → chunk-POS35G6D.js} +1 -1
- package/dist/bundle/{chunk-PI5P457W.js → chunk-PWTEWT4M.js} +4 -4
- package/dist/bundle/{chunk-BY5S3JEZ.js → chunk-PYX6K527.js} +44 -44
- package/dist/bundle/{chunk-2BHY4GFP.js → chunk-Q4T2HBZP.js} +2 -2
- package/dist/bundle/{chunk-QTD3BVS5.js → chunk-R6SBRHVG.js} +5 -5
- package/dist/bundle/{chunk-OJEIUOMW.js → chunk-RPEW7E3S.js} +10 -10
- package/dist/bundle/{chunk-OZVGHHFZ.js → chunk-TTOKDZQX.js} +1 -1
- package/dist/bundle/{chunk-4TPNRJER.js → chunk-UBLFUQ7O.js} +6 -6
- package/dist/bundle/{chunk-6Z7VBDFR.js → chunk-UYOGVVQS.js} +12 -2
- package/dist/bundle/{chunk-4XRIALMN.js → chunk-VD6GZ3W2.js} +1 -1
- package/dist/bundle/{chunk-VQQFOA4O.js → chunk-VP5FL5JQ.js} +6 -6
- package/dist/bundle/{chunk-PXLVTHMH.js → chunk-VTJ5TMGN.js} +2 -2
- package/dist/bundle/{chunk-5C3L2QER.js → chunk-WKHHCCJE.js} +21 -21
- package/dist/bundle/{chunk-2A4Z3WOC.js → chunk-X7EBOXBY.js} +278 -274
- package/dist/bundle/{chunk-SRHKHE4C.js → chunk-XAANQN4R.js} +13 -13
- package/dist/bundle/{chunk-ENZTLYTS.js → chunk-XEIGKPYU.js} +6 -3
- package/dist/bundle/{chunk-4DGOI6JB.js → chunk-YGJO5VNR.js} +22 -22
- package/dist/bundle/{chunk-A6O3WHBD.js → chunk-ZNW4E3SG.js} +2 -2
- package/dist/bundle/{chunk-WOV3ABQR.js → chunk-ZS6YKNYS.js} +3 -3
- package/dist/bundle/{command-contract-4E4NYRR7.js → command-contract-GVNLRXWS.js} +13 -13
- package/dist/bundle/{decode-LX4FPSI7.js → decode-WCS4KOHV.js} +2 -2
- package/dist/bundle/{dist-HQIZDYNQ.js → dist-FL422DTA.js} +10 -10
- package/dist/bundle/{echarts-BGBPRGR5.js → echarts-45D6USAX.js} +2 -2
- package/dist/bundle/{embed-ASAE3H5I.js → embed-4B4ATLCN.js} +3 -3
- package/dist/bundle/{embedder-QYDZRKBX.js → embedder-ASWGJXNV.js} +6 -6
- package/dist/bundle/{first-run-EFNNGFCB.js → first-run-5K3UD4BU.js} +5 -5
- package/dist/bundle/{first-screen-XHM3TT6G.js → first-screen-NNX54MYC.js} +14 -14
- package/dist/bundle/{instructions-6LPDSKAD.js → instructions-6EFSPC7C.js} +1 -1
- package/dist/bundle/mail.js +2 -2
- package/dist/bundle/{node-IB246NCQ.js → node-OXC26QXO.js} +2 -2
- package/dist/bundle/{node-sqlite-UROXM4VR.js → node-sqlite-PXHZAG7Y.js} +3 -3
- package/dist/bundle/{oauth-VSCKHS4T.js → oauth-YK2QLC7U.js} +4 -4
- package/dist/bundle/{open-R4LVB63T.js → open-SABDXZ4B.js} +2 -2
- package/dist/bundle/{openai-MKCEOFKL.js → openai-DPURPXEU.js} +10 -10
- package/dist/bundle/{process-SWPJGPQC.js → process-YWPAOI6G.js} +1 -1
- package/dist/bundle/{program-CJ2YDRUY.js → program-ERLBUNWI.js} +1488 -1321
- package/dist/bundle/{prompt-TWWJ5VAM.js → prompt-GKVNFGFE.js} +2 -2
- package/dist/bundle/{recognize-XMO5ETQU.js → recognize-344YDSLX.js} +1 -1
- package/dist/bundle/{remote-N6VAWJWE.js → remote-53UZUJJU.js} +4 -4
- package/dist/bundle/{rerank-XNAMC6FH.js → rerank-PAIRND6R.js} +4 -4
- package/dist/bundle/{serve-IJ32WEBH.js → serve-DZSO7LJK.js} +6 -6
- package/dist/bundle/{server-KEYSE5OL.js → server-EGG3V67I.js} +32 -32
- package/dist/bundle/server-SGGMRV2K.js +64 -0
- package/dist/bundle/{sqlite-runtime-NFBRN7OF.js → sqlite-runtime-ZQ6F3VYZ.js} +3 -3
- package/dist/bundle/{state-7WPJEW2Z.js → state-LXPOWLZ5.js} +3 -3
- package/dist/bundle/{store-PKQCNACC.js → store-4ZMSK5R5.js} +11 -11
- package/dist/bundle/{store-KHVHOGQR.js → store-PHT75I6S.js} +13 -13
- package/dist/bundle/store-maintenance-command-C6ONZNRX.js +54 -0
- package/dist/commands/account.js +1 -1
- package/dist/commands/account.js.map +1 -1
- package/dist/commands/attachments.js +3 -3
- package/dist/commands/attachments.js.map +1 -1
- package/dist/commands/context.d.ts +4 -0
- package/dist/commands/context.d.ts.map +1 -1
- package/dist/commands/context.js.map +1 -1
- package/dist/commands/drafts-send.js +1 -1
- package/dist/commands/drafts-send.js.map +1 -1
- package/dist/commands/drafts.d.ts.map +1 -1
- package/dist/commands/drafts.js +9 -6
- package/dist/commands/drafts.js.map +1 -1
- package/dist/commands/export.js +3 -3
- package/dist/commands/export.js.map +1 -1
- package/dist/commands/folders.d.ts.map +1 -1
- package/dist/commands/folders.js +7 -4
- package/dist/commands/folders.js.map +1 -1
- package/dist/commands/messages.js +11 -11
- package/dist/commands/messages.js.map +1 -1
- package/dist/commands/rules.d.ts.map +1 -1
- package/dist/commands/rules.js +55 -33
- package/dist/commands/rules.js.map +1 -1
- package/dist/commands/send.d.ts.map +1 -1
- package/dist/commands/send.js +7 -6
- package/dist/commands/send.js.map +1 -1
- package/dist/commands/session-start.js +1 -1
- package/dist/commands/session-start.js.map +1 -1
- package/dist/commands/session.d.ts.map +1 -1
- package/dist/commands/session.js +5 -2
- package/dist/commands/session.js.map +1 -1
- package/dist/commands/stats.js +4 -4
- package/dist/commands/stats.js.map +1 -1
- package/dist/commands/status.js +1 -1
- package/dist/commands/status.js.map +1 -1
- package/dist/commands/sync.js +3 -3
- package/dist/commands/sync.js.map +1 -1
- package/dist/commands/tags.d.ts.map +1 -1
- package/dist/commands/tags.js +3 -2
- package/dist/commands/tags.js.map +1 -1
- package/dist/config.d.ts +3 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +13 -1
- package/dist/config.js.map +1 -1
- package/dist/mail/domain-age.d.ts.map +1 -1
- package/dist/mail/domain-age.js +3 -6
- package/dist/mail/domain-age.js.map +1 -1
- package/dist/mail/save.d.ts.map +1 -1
- package/dist/mail/save.js +3 -2
- package/dist/mail/save.js.map +1 -1
- package/dist/mail/send.d.ts +6 -0
- package/dist/mail/send.d.ts.map +1 -1
- package/dist/mail/send.js +11 -4
- package/dist/mail/send.js.map +1 -1
- package/dist/mail/smtp.d.ts.map +1 -1
- package/dist/mail/smtp.js +7 -5
- package/dist/mail/smtp.js.map +1 -1
- package/dist/oauth.js +1 -1
- package/dist/oauth.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +5 -1
- package/dist/program.js.map +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +10 -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/skills/mail-cli/SKILL.md +16 -16
- package/dist/bundle/server-CRVR4L2E.js +0 -64
- package/dist/bundle/store-maintenance-command-5MODJN6R.js +0 -54
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
__name
|
|
42
42
|
} from "./chunk-ZVVMGPBJ.js";
|
|
43
43
|
|
|
44
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
44
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/reference.js
|
|
45
45
|
var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "expected meeting:<accountId>/<meetingId>[/<transcriptId>[/<cuePosition>]] with safe integer IDs"), "invalid");
|
|
46
46
|
var integer2 = /* @__PURE__ */ __name((value, minimum = 1) => {
|
|
47
47
|
if (!Number.isSafeInteger(value) || value < minimum)
|
|
@@ -59,8 +59,8 @@ var formatMeetingReference = /* @__PURE__ */ __name((reference2) => {
|
|
|
59
59
|
}
|
|
60
60
|
return `meeting:${parts.join("/")}`;
|
|
61
61
|
}, "formatMeetingReference");
|
|
62
|
-
var parseMeetingReference = /* @__PURE__ */ __name((
|
|
63
|
-
const value =
|
|
62
|
+
var parseMeetingReference = /* @__PURE__ */ __name((text5) => {
|
|
63
|
+
const value = text5.trim();
|
|
64
64
|
if (!value.startsWith("meeting:"))
|
|
65
65
|
throw invalid();
|
|
66
66
|
const parts = value.slice(8).split("/");
|
|
@@ -76,9 +76,9 @@ var parseMeetingReference = /* @__PURE__ */ __name((text6) => {
|
|
|
76
76
|
};
|
|
77
77
|
return reference2;
|
|
78
78
|
}, "parseMeetingReference");
|
|
79
|
-
var canonicalMeetingReference = /* @__PURE__ */ __name((
|
|
79
|
+
var canonicalMeetingReference = /* @__PURE__ */ __name((text5) => formatMeetingReference(parseMeetingReference(text5)), "canonicalMeetingReference");
|
|
80
80
|
|
|
81
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
81
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/payment.js
|
|
82
82
|
var FACT_TYPES = ["fact", "statement", "question", "decision", "promise"];
|
|
83
83
|
var PAYMENT_DIRECTIONS = ["to_us", "from_us"];
|
|
84
84
|
var PAYMENT_STATES = ["expected", "paid", "cancelled"];
|
|
@@ -362,7 +362,7 @@ var dateRange = /* @__PURE__ */ __name((lower, upper, lowerInclusive, upperInclu
|
|
|
362
362
|
}, "dateRange");
|
|
363
363
|
|
|
364
364
|
// node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/evaluate.js
|
|
365
|
-
var wordsOf = /* @__PURE__ */ __name((
|
|
365
|
+
var wordsOf = /* @__PURE__ */ __name((text5) => text5.toLowerCase().match(/[\p{L}\p{N}]+/gu) ?? [], "wordsOf");
|
|
366
366
|
var pattern = /* @__PURE__ */ __name((value) => new RegExp(`^${[...value].map((char) => char === "*" ? ".*" : char === "?" ? "." : char.replace(/[.+^${}()|[\]\\]/, "\\$&")).join("")}$`, "iu"), "pattern");
|
|
367
367
|
var present = /* @__PURE__ */ __name((value) => value !== void 0 && value !== null && value !== "", "present");
|
|
368
368
|
var matchOne = /* @__PURE__ */ __name((field, node, value, options) => {
|
|
@@ -370,10 +370,10 @@ var matchOne = /* @__PURE__ */ __name((field, node, value, options) => {
|
|
|
370
370
|
return false;
|
|
371
371
|
if (node.operator === "wildcard" && node.value === "*")
|
|
372
372
|
return true;
|
|
373
|
-
const
|
|
373
|
+
const text5 = String(value);
|
|
374
374
|
switch (field.type) {
|
|
375
375
|
case "txt": {
|
|
376
|
-
const words2 = wordsOf(
|
|
376
|
+
const words2 = wordsOf(text5);
|
|
377
377
|
if (node.operator === "wildcard")
|
|
378
378
|
return words2.some((word) => pattern(node.value).test(word));
|
|
379
379
|
const wanted = wordsOf(node.value);
|
|
@@ -387,13 +387,13 @@ var matchOne = /* @__PURE__ */ __name((field, node, value, options) => {
|
|
|
387
387
|
return (lower === "*" || (lowerInclusive ? number2 >= Number(lower) : number2 > Number(lower))) && (upper === "*" || (upperInclusive ? number2 <= Number(upper) : number2 < Number(upper)));
|
|
388
388
|
}
|
|
389
389
|
case "time": {
|
|
390
|
-
const time = Date.parse(
|
|
390
|
+
const time = Date.parse(text5);
|
|
391
391
|
const [lower, upper, lowerInclusive, upperInclusive] = node.operator === "range" ? [node.value, node.upper ?? "*", node.lower_inclusive ?? true, node.upper_inclusive ?? true] : [node.value, node.value, true, true];
|
|
392
392
|
const range = dateRange(lower, upper, lowerInclusive, upperInclusive, options.zone ?? "UTC", node.span, options.now);
|
|
393
393
|
return (range.lower === void 0 || (range.lower_inclusive ? time >= range.lower : time > range.lower)) && (range.upper === void 0 || (range.upper_inclusive ? time <= range.upper : time < range.upper));
|
|
394
394
|
}
|
|
395
395
|
default:
|
|
396
|
-
return node.operator === "wildcard" ? pattern(node.value).test(
|
|
396
|
+
return node.operator === "wildcard" ? pattern(node.value).test(text5) : text5.toLowerCase() === node.value.toLowerCase();
|
|
397
397
|
}
|
|
398
398
|
}, "matchOne");
|
|
399
399
|
var matches = /* @__PURE__ */ __name((node, item, byName, options) => {
|
|
@@ -414,7 +414,7 @@ var matches = /* @__PURE__ */ __name((node, item, byName, options) => {
|
|
|
414
414
|
const value = item[node.field];
|
|
415
415
|
return Array.isArray(value) ? value.some((one) => matchOne(field, node, one, options)) : matchOne(field, node, value, options);
|
|
416
416
|
}, "matches");
|
|
417
|
-
var evaluate = /* @__PURE__ */ __name((ast,
|
|
417
|
+
var evaluate = /* @__PURE__ */ __name((ast, fields, item, options = {}) => matches(ast.root, item, new Map(fields.map((field) => [field.name, field])), options), "evaluate");
|
|
418
418
|
|
|
419
419
|
// node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/fields.js
|
|
420
420
|
var FIELD_TYPES = ["kw", "txt", "enum", "num", "time", "bool", "ref"];
|
|
@@ -497,8 +497,8 @@ var queryFieldsOf = /* @__PURE__ */ __name((schema, annotations = {}) => {
|
|
|
497
497
|
|
|
498
498
|
// node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/help.js
|
|
499
499
|
var shownOf = /* @__PURE__ */ __name((registry) => registry.backend === "native" ? registry.fields.filter((field) => field.native) : registry.fields, "shownOf");
|
|
500
|
-
var leftOut = /* @__PURE__ */ __name((
|
|
501
|
-
var has = /* @__PURE__ */ __name((
|
|
500
|
+
var leftOut = /* @__PURE__ */ __name((fields) => fields.filter((field) => field.negatable).map((field) => field.name), "leftOut");
|
|
501
|
+
var has = /* @__PURE__ */ __name((fields, operator) => fields.some((field) => field.operators.includes(operator)), "has");
|
|
502
502
|
var syntaxOf = /* @__PURE__ */ __name((shown, backend) => [
|
|
503
503
|
"field:value",
|
|
504
504
|
...has(shown, "phrase") ? ['"a phrase"'] : [],
|
|
@@ -527,9 +527,9 @@ var queryDescription = /* @__PURE__ */ __name((registry) => {
|
|
|
527
527
|
return "field:value terms; this list filters by none yet, so any term is refused";
|
|
528
528
|
const negatable = leftOut(shown);
|
|
529
529
|
const terms = registry.backend === "native" ? `field:value terms joined by AND that narrow the list${negatable.length > 0 ? `; -field:value or NOT field:value leaves out what matches, for ${negatable.join(", ")} only` : ""}` : `field:value terms that narrow the list (Lucene: AND OR NOT, -field:value${has(shown, "range") ? ", [a TO b], > <" : ""})`;
|
|
530
|
-
const
|
|
530
|
+
const fields = shown.map((field) => field.values ? `${field.name} (${field.values.join("|")})` : field.name);
|
|
531
531
|
const defaults = registry.defaults?.length ? `; unless named: ${registry.defaults.join(" ")}` : "";
|
|
532
|
-
return `${terms}; fields: ${
|
|
532
|
+
return `${terms}; fields: ${fields.join(", ")}; e.g. ${shown[0]?.example ?? ""}${defaults}`;
|
|
533
533
|
}, "queryDescription");
|
|
534
534
|
|
|
535
535
|
// node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/parser.js
|
|
@@ -575,13 +575,13 @@ var decodeEscapes = /* @__PURE__ */ __name((raw, span, fail) => {
|
|
|
575
575
|
}
|
|
576
576
|
return out;
|
|
577
577
|
}, "decodeEscapes");
|
|
578
|
-
var tokensOf = /* @__PURE__ */ __name((
|
|
578
|
+
var tokensOf = /* @__PURE__ */ __name((text5, fail = queryError) => {
|
|
579
579
|
const tokens = [];
|
|
580
580
|
let at = 0;
|
|
581
581
|
let range = false;
|
|
582
|
-
while (at <
|
|
582
|
+
while (at < text5.length) {
|
|
583
583
|
const start = at;
|
|
584
|
-
const c =
|
|
584
|
+
const c = text5[at] ?? "";
|
|
585
585
|
if (whitespace(c)) {
|
|
586
586
|
at++;
|
|
587
587
|
continue;
|
|
@@ -589,30 +589,30 @@ var tokensOf = /* @__PURE__ */ __name((text6, fail = queryError) => {
|
|
|
589
589
|
let kind = c;
|
|
590
590
|
if (c === '"' || !range && c === "/") {
|
|
591
591
|
at++;
|
|
592
|
-
while (at <
|
|
593
|
-
if (
|
|
592
|
+
while (at < text5.length && text5[at] !== c) {
|
|
593
|
+
if (text5[at] === "\\" && (c === '"' || text5[at + 1] === "/"))
|
|
594
594
|
at++;
|
|
595
595
|
at++;
|
|
596
596
|
}
|
|
597
|
-
if (at >=
|
|
598
|
-
fail("query.unclosed-literal", { start, end: at }, c === "/" ? regexHint(
|
|
597
|
+
if (at >= text5.length)
|
|
598
|
+
fail("query.unclosed-literal", { start, end: at }, c === "/" ? regexHint(text5, start) : void 0);
|
|
599
599
|
at++;
|
|
600
|
-
if (c === "/" && /^[dgimsuvy]+(?:$|[ \t\n\r)])/.test(
|
|
600
|
+
if (c === "/" && /^[dgimsuvy]+(?:$|[ \t\n\r)])/.test(text5.slice(at)))
|
|
601
601
|
fail("query.unsupported-regex-flags", { start: at, end: at + 1 }, "Lucene regex does not take JavaScript flags");
|
|
602
602
|
kind = c === '"' ? "quoted" : "regex";
|
|
603
603
|
} else if (range && c !== "]" && c !== "}") {
|
|
604
|
-
while (at <
|
|
604
|
+
while (at < text5.length && !whitespace(text5[at] ?? "") && !["]", "}"].includes(text5[at] ?? ""))
|
|
605
605
|
at++;
|
|
606
606
|
kind = "rangeValue";
|
|
607
607
|
} else if (reserved.has(c)) {
|
|
608
608
|
if (c === "\\") {
|
|
609
609
|
at += 2;
|
|
610
|
-
while (at <
|
|
610
|
+
while (at < text5.length && !whitespace(text5[at] ?? "") && (!reserved.has(text5[at] ?? "") || ["+", "-"].includes(text5[at] ?? "")))
|
|
611
611
|
at++;
|
|
612
612
|
kind = "term";
|
|
613
613
|
} else {
|
|
614
614
|
at++;
|
|
615
|
-
if ((c === "<" || c === ">") &&
|
|
615
|
+
if ((c === "<" || c === ">") && text5[at] === "=") {
|
|
616
616
|
at++;
|
|
617
617
|
kind += "=";
|
|
618
618
|
}
|
|
@@ -623,15 +623,15 @@ var tokensOf = /* @__PURE__ */ __name((text6, fail = queryError) => {
|
|
|
623
623
|
}
|
|
624
624
|
} else {
|
|
625
625
|
at++;
|
|
626
|
-
while (at <
|
|
627
|
-
const next =
|
|
626
|
+
while (at < text5.length) {
|
|
627
|
+
const next = text5[at] ?? "";
|
|
628
628
|
if (next === "\\") {
|
|
629
|
-
if (at + 1 >=
|
|
629
|
+
if (at + 1 >= text5.length)
|
|
630
630
|
fail("query.invalid-escape", { start: at, end: at + 1 });
|
|
631
631
|
at += 2;
|
|
632
632
|
continue;
|
|
633
633
|
}
|
|
634
|
-
if (next === "@" && new RegExp("^@(?:\\p{L}|[\\p{L}\\p{N}][^\\s@]*\\.[\\p{L}\\p{N}])", "u").test(
|
|
634
|
+
if (next === "@" && new RegExp("^@(?:\\p{L}|[\\p{L}\\p{N}][^\\s@]*\\.[\\p{L}\\p{N}])", "u").test(text5.slice(at))) {
|
|
635
635
|
at++;
|
|
636
636
|
continue;
|
|
637
637
|
}
|
|
@@ -640,19 +640,19 @@ var tokensOf = /* @__PURE__ */ __name((text6, fail = queryError) => {
|
|
|
640
640
|
at++;
|
|
641
641
|
}
|
|
642
642
|
const [field, colon] = tokens.slice(-2);
|
|
643
|
-
if (field?.kind === "term" && colon?.kind === ":" && colon.span.end === start &&
|
|
644
|
-
while (at <
|
|
643
|
+
if (field?.kind === "term" && colon?.kind === ":" && colon.span.end === start && text5[at] === ":" && /^[a-z][a-z_-]*$/u.test(text5.slice(start, at)) && /^:[^\s()"]/u.test(text5.slice(at)))
|
|
644
|
+
while (at < text5.length && !whitespace(text5[at] ?? "") && !["(", ")", '"'].includes(text5[at] ?? ""))
|
|
645
645
|
at++;
|
|
646
|
-
const raw =
|
|
646
|
+
const raw = text5.slice(start, at);
|
|
647
647
|
kind = { AND: "AND", OR: "OR", NOT: "NOT", "&&": "AND", "||": "OR" }[raw] ?? (/^\d+(?:\.\d+)?$/u.test(raw) ? "number" : "term");
|
|
648
648
|
}
|
|
649
|
-
tokens.push({ kind, raw:
|
|
649
|
+
tokens.push({ kind, raw: text5.slice(start, at), span: { start, end: at } });
|
|
650
650
|
}
|
|
651
651
|
tokens.push({ kind: "EOF", raw: "", span: { start: at, end: at } });
|
|
652
652
|
return tokens;
|
|
653
653
|
}, "tokensOf");
|
|
654
|
-
var quoteHint = /* @__PURE__ */ __name((
|
|
655
|
-
for (const match of
|
|
654
|
+
var quoteHint = /* @__PURE__ */ __name((text5, at) => {
|
|
655
|
+
for (const match of text5.matchAll(/(?<=^|[\s(])([\p{L}\p{N}_.-]+):([^\s"()]+)/gu)) {
|
|
656
656
|
const [whole, field, value = ""] = match;
|
|
657
657
|
if (at < match.index || at > match.index + whole.length)
|
|
658
658
|
continue;
|
|
@@ -660,15 +660,15 @@ var quoteHint = /* @__PURE__ */ __name((text6, at) => {
|
|
|
660
660
|
}
|
|
661
661
|
return void 0;
|
|
662
662
|
}, "quoteHint");
|
|
663
|
-
var regexHint = /* @__PURE__ */ __name((
|
|
664
|
-
const word = `${/[^\s()"]*$/u.exec(
|
|
665
|
-
return quoteHint(
|
|
663
|
+
var regexHint = /* @__PURE__ */ __name((text5, at) => {
|
|
664
|
+
const word = `${/[^\s()"]*$/u.exec(text5.slice(0, at))?.[0] ?? ""}${/^[^\s()"]*/u.exec(text5.slice(at))?.[0] ?? ""}`;
|
|
665
|
+
return quoteHint(text5, at) ?? `/ starts a regular expression; put the value in quotes: "${word}"`;
|
|
666
666
|
}, "regexHint");
|
|
667
|
-
var parseLucene = /* @__PURE__ */ __name((
|
|
668
|
-
const fail = /* @__PURE__ */ __name((reason, span, alternative) => queryError(reason, span, alternative ?? quoteHint(
|
|
669
|
-
if (
|
|
670
|
-
fail("query.too-large", { start: 0, end:
|
|
671
|
-
const tokens = tokensOf(
|
|
667
|
+
var parseLucene = /* @__PURE__ */ __name((text5, { defaultField = "text", proximity = false, ...context3 } = {}) => {
|
|
668
|
+
const fail = /* @__PURE__ */ __name((reason, span, alternative) => queryError(reason, span, alternative ?? quoteHint(text5, span.start), context3), "fail");
|
|
669
|
+
if (text5.length > QUERY_LIMITS.bytes || new TextEncoder().encode(text5).length > QUERY_LIMITS.bytes)
|
|
670
|
+
fail("query.too-large", { start: 0, end: text5.length });
|
|
671
|
+
const tokens = tokensOf(text5, fail);
|
|
672
672
|
let at = 0;
|
|
673
673
|
let count6 = 0;
|
|
674
674
|
let depth = 0;
|
|
@@ -834,8 +834,8 @@ var parseLucene = /* @__PURE__ */ __name((text6, { defaultField = "text", proxim
|
|
|
834
834
|
}
|
|
835
835
|
return { version: 1, language: "lucene-v1", root };
|
|
836
836
|
}, "parseLucene");
|
|
837
|
-
var implicitTextTerms = /* @__PURE__ */ __name((
|
|
838
|
-
const tokens = tokensOf(
|
|
837
|
+
var implicitTextTerms = /* @__PURE__ */ __name((text5) => {
|
|
838
|
+
const tokens = tokensOf(text5);
|
|
839
839
|
if (tokens.some(({ kind }) => ["AND", "OR", "NOT", "+", "-", "!", "(", ")"].includes(kind)))
|
|
840
840
|
return /* @__PURE__ */ new Set();
|
|
841
841
|
return new Set(tokens.flatMap((token, index) => (token.kind === "term" || token.kind === "number") && ![":", "=", "<", ">", "<=", ">="].includes(tokens[index - 1]?.kind ?? "") && ![":", "=", "<", ">", "<=", ">="].includes(tokens[index + 1]?.kind ?? "") ? [token.span.start] : []));
|
|
@@ -925,14 +925,14 @@ var describeQuery = /* @__PURE__ */ __name((registry) => ({
|
|
|
925
925
|
}), "describeQuery");
|
|
926
926
|
var exampleProblems = /* @__PURE__ */ __name((registry) => {
|
|
927
927
|
const syntaxOnly = { ...registry, backend: "sql" };
|
|
928
|
-
const problem = /* @__PURE__ */ __name((
|
|
928
|
+
const problem = /* @__PURE__ */ __name((text5, field) => {
|
|
929
929
|
try {
|
|
930
|
-
const named = walkQuery(validateQuery(parseLucene(
|
|
931
|
-
return named.every((node) => node.field === field) ? void 0 : `"${
|
|
930
|
+
const named = walkQuery(validateQuery(parseLucene(text5, { defaultField: "none" }), syntaxOnly).root);
|
|
931
|
+
return named.every((node) => node.field === field) ? void 0 : `"${text5}" does not name ${field}`;
|
|
932
932
|
} catch (failure) {
|
|
933
933
|
if (!isCliError(failure))
|
|
934
934
|
throw failure;
|
|
935
|
-
return `"${
|
|
935
|
+
return `"${text5}": ${failure.message}`;
|
|
936
936
|
}
|
|
937
937
|
}, "problem");
|
|
938
938
|
const defaults = (registry.defaults ?? []).map((term) => {
|
|
@@ -987,7 +987,7 @@ var QUERY_REASONS = defineReasons([
|
|
|
987
987
|
details: [...SPAN, ...details]
|
|
988
988
|
})));
|
|
989
989
|
|
|
990
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
990
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/item.js
|
|
991
991
|
var text = string();
|
|
992
992
|
var count = pipe(number(), integer(), minValue(0));
|
|
993
993
|
var MEETING_ISSUES = ["time_without_zone"];
|
|
@@ -1052,7 +1052,7 @@ var MEETING_QUERY = {
|
|
|
1052
1052
|
})
|
|
1053
1053
|
};
|
|
1054
1054
|
|
|
1055
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1055
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/answers.js
|
|
1056
1056
|
var text2 = string();
|
|
1057
1057
|
var count2 = pipe(number(), integer(), minValue(0));
|
|
1058
1058
|
var iso2 = /* @__PURE__ */ __name((ms) => ms === null ? null : new Date(ms).toISOString(), "iso");
|
|
@@ -1166,7 +1166,7 @@ var meetingSummaryItem = /* @__PURE__ */ __name((accountId, summary) => ({
|
|
|
1166
1166
|
source: summary.source,
|
|
1167
1167
|
title: summary.title,
|
|
1168
1168
|
overview: summary.overview,
|
|
1169
|
-
sections: summary.sections.map(({ label, text:
|
|
1169
|
+
sections: summary.sections.map(({ label, text: text5 }) => ({ label, text: text5 })),
|
|
1170
1170
|
next_steps: summary.nextSteps,
|
|
1171
1171
|
content: summary.content,
|
|
1172
1172
|
url: summary.docUrl,
|
|
@@ -1287,7 +1287,7 @@ var meetingHitsList = /* @__PURE__ */ __name((found, limit, command = "search me
|
|
|
1287
1287
|
};
|
|
1288
1288
|
}, "meetingHitsList");
|
|
1289
1289
|
|
|
1290
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1290
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/join-key.js
|
|
1291
1291
|
var joinKeyOf = /* @__PURE__ */ __name((url) => {
|
|
1292
1292
|
const parsed = urlOf(url);
|
|
1293
1293
|
if (!parsed)
|
|
@@ -1321,15 +1321,15 @@ var urlOf = /* @__PURE__ */ __name((url) => {
|
|
|
1321
1321
|
}
|
|
1322
1322
|
}, "urlOf");
|
|
1323
1323
|
|
|
1324
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1324
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/calendar-text.js
|
|
1325
1325
|
var ENTITIES = { amp: "&", lt: "<", gt: ">", quot: '"', "#39": "'", apos: "'", nbsp: " " };
|
|
1326
1326
|
var SECRET_LINE = /(?<![\p{L}\p{N}])(pass ?codes?|passwords?|pwd|pins?|access ?codes?|meeting ?codes?|kennwort|пароль|пин-?код|код доступа)(?![\p{L}\p{N}])|pwd=/iu;
|
|
1327
1327
|
var htmlToText = /* @__PURE__ */ __name((html) => html.replace(/<\s*br\s*\/?>/giu, "\n").replace(/<\/\s*(p|div|li|tr|h[1-6])\s*>/giu, "\n").replace(/<a\s[^>]*href\s*=\s*"([^"]*)"[^>]*>/giu, " $1 ").replace(/<[^>]+>/gu, "").replace(/&(amp|lt|gt|quot|#39|apos|nbsp);/gu, (_, name) => ENTITIES[name] ?? ""), "htmlToText");
|
|
1328
|
-
var withoutLinkQueries = /* @__PURE__ */ __name((
|
|
1329
|
-
var calendarText = /* @__PURE__ */ __name((
|
|
1330
|
-
if (!
|
|
1328
|
+
var withoutLinkQueries = /* @__PURE__ */ __name((text5) => text5.replace(/https?:\/\/[^\s<>"')\]]+/giu, (url) => joinUrlWithoutQuery(url) ?? ""), "withoutLinkQueries");
|
|
1329
|
+
var calendarText = /* @__PURE__ */ __name((text5, { dropSecretLines = true } = {}) => {
|
|
1330
|
+
if (!text5)
|
|
1331
1331
|
return null;
|
|
1332
|
-
const kept = htmlToText(
|
|
1332
|
+
const kept = htmlToText(text5).split(/\r?\n/u).map((line2) => withoutLinkQueries(line2).replace(/[ \t]+/gu, " ").trim()).filter((line2) => !dropSecretLines || !SECRET_LINE.test(line2));
|
|
1333
1333
|
const joined = kept.join("\n").replace(/\n{3,}/gu, "\n\n").trim();
|
|
1334
1334
|
return joined || null;
|
|
1335
1335
|
}, "calendarText");
|
|
@@ -1354,7 +1354,7 @@ var entryMetadata = /* @__PURE__ */ __name((metadata) => {
|
|
|
1354
1354
|
return kept;
|
|
1355
1355
|
}, "entryMetadata");
|
|
1356
1356
|
|
|
1357
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1357
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/cue-fingerprint.js
|
|
1358
1358
|
import { createHash } from "node:crypto";
|
|
1359
1359
|
var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256").update(JSON.stringify({
|
|
1360
1360
|
reference: cue2.reference,
|
|
@@ -1368,7 +1368,7 @@ var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256"
|
|
|
1368
1368
|
text: cue2.text
|
|
1369
1369
|
})).digest("hex"), "meetingCueFingerprint");
|
|
1370
1370
|
|
|
1371
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1371
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/event-query.js
|
|
1372
1372
|
var EVENT_QUERY = defineQuery({
|
|
1373
1373
|
entity: "event",
|
|
1374
1374
|
backend: "sql",
|
|
@@ -1384,7 +1384,7 @@ var EVENT_QUERY = defineQuery({
|
|
|
1384
1384
|
]
|
|
1385
1385
|
});
|
|
1386
1386
|
|
|
1387
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1387
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/event-store.js
|
|
1388
1388
|
var UNTIL = /(?:^|;)UNTIL=(\d{4})(\d{2})(\d{2})(?:T(\d{2})(\d{2})(\d{2})Z?)?(?:;|$)/iu;
|
|
1389
1389
|
var seriesEnd = /* @__PURE__ */ __name((entry) => {
|
|
1390
1390
|
if (entry.recurrenceEndsAt !== null)
|
|
@@ -1407,7 +1407,7 @@ var entryInWindow = /* @__PURE__ */ __name((entry, window) => {
|
|
|
1407
1407
|
return Math.max(entry.endsAt ?? start, start + 1) > window.from;
|
|
1408
1408
|
}, "entryInWindow");
|
|
1409
1409
|
|
|
1410
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1410
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/events.js
|
|
1411
1411
|
var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now()) => {
|
|
1412
1412
|
const current = await store.meeting(details.meeting.id);
|
|
1413
1413
|
if (!current)
|
|
@@ -1450,8 +1450,8 @@ var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now())
|
|
|
1450
1450
|
return (await store.events()).find((e) => e.id === linked?.meeting.eventId) ?? null;
|
|
1451
1451
|
}, "linkEvent");
|
|
1452
1452
|
|
|
1453
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1454
|
-
var normalizeMeetingParticipantQuery = /* @__PURE__ */ __name((
|
|
1453
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/participant-search.js
|
|
1454
|
+
var normalizeMeetingParticipantQuery = /* @__PURE__ */ __name((text5) => text5.normalize("NFKC").toLowerCase(), "normalizeMeetingParticipantQuery");
|
|
1455
1455
|
var validateMeetingParticipantQuery = /* @__PURE__ */ __name((query) => {
|
|
1456
1456
|
if (typeof query !== "string" || !query.trim() || query.length > 500 || query.includes("\0"))
|
|
1457
1457
|
throw new CliError("validation_error", "participant query must contain 1\u2013500 characters without NUL");
|
|
@@ -1474,7 +1474,7 @@ var validateMeetingParticipantSearch = /* @__PURE__ */ __name((query, input) =>
|
|
|
1474
1474
|
};
|
|
1475
1475
|
}, "validateMeetingParticipantSearch");
|
|
1476
1476
|
|
|
1477
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1477
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/reads.js
|
|
1478
1478
|
var MeetingError = class extends CliError {
|
|
1479
1479
|
static {
|
|
1480
1480
|
__name(this, "MeetingError");
|
|
@@ -1578,11 +1578,11 @@ var meetingsList = /* @__PURE__ */ __name(async (store, filter = {}, page = 1) =
|
|
|
1578
1578
|
} : {}
|
|
1579
1579
|
};
|
|
1580
1580
|
}, "meetingsList");
|
|
1581
|
-
var meetingsQuery = /* @__PURE__ */ __name((
|
|
1582
|
-
if (
|
|
1581
|
+
var meetingsQuery = /* @__PURE__ */ __name((text5) => {
|
|
1582
|
+
if (text5 === void 0 || text5.trim() === "")
|
|
1583
1583
|
return void 0;
|
|
1584
1584
|
const context3 = { command: "meetings list", guide: MEETING_QUERY_GUIDE };
|
|
1585
|
-
const query = parseLucene(
|
|
1585
|
+
const query = parseLucene(text5, { defaultField: "none", ...context3 });
|
|
1586
1586
|
validateQuery(query, MEETING_QUERY, context3);
|
|
1587
1587
|
return query;
|
|
1588
1588
|
}, "meetingsQuery");
|
|
@@ -1606,7 +1606,7 @@ var meetingSummaryAnswer = /* @__PURE__ */ __name(async (store, id3, accountId)
|
|
|
1606
1606
|
return wholeList(details.summaries.map((one) => meetingSummaryItem(details.meeting.accountId, one)));
|
|
1607
1607
|
}, "meetingSummaryAnswer");
|
|
1608
1608
|
|
|
1609
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1609
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/export.js
|
|
1610
1610
|
var timestamp = /* @__PURE__ */ __name((milliseconds) => {
|
|
1611
1611
|
if (!Number.isSafeInteger(milliseconds) || milliseconds < 0)
|
|
1612
1612
|
throw new MeetingError("validation_error", "transcript times must be nonnegative integer milliseconds");
|
|
@@ -1615,10 +1615,10 @@ var timestamp = /* @__PURE__ */ __name((milliseconds) => {
|
|
|
1615
1615
|
const seconds = Math.floor(milliseconds % 6e4 / 1e3);
|
|
1616
1616
|
return `${String(hours).padStart(2, "0")}:${String(minutes).padStart(2, "0")}:${String(seconds).padStart(2, "0")}.${String(milliseconds % 1e3).padStart(3, "0")}`;
|
|
1617
1617
|
}, "timestamp");
|
|
1618
|
-
var vttText = /* @__PURE__ */ __name((
|
|
1619
|
-
if (visibleControls(
|
|
1618
|
+
var vttText = /* @__PURE__ */ __name((text5) => {
|
|
1619
|
+
if (visibleControls(text5) !== text5 || /\n\s*\n/.test(text5))
|
|
1620
1620
|
throw new MeetingError("validation_error", "cue paragraphs or control characters require Markdown export");
|
|
1621
|
-
return
|
|
1621
|
+
return text5.replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">");
|
|
1622
1622
|
}, "vttText");
|
|
1623
1623
|
var serializeVtt = /* @__PURE__ */ __name((lines) => `WEBVTT
|
|
1624
1624
|
|
|
@@ -1636,9 +1636,9 @@ ${speaker}${vttText(line2.text)}
|
|
|
1636
1636
|
|
|
1637
1637
|
`;
|
|
1638
1638
|
}).join("")}`, "serializeVtt");
|
|
1639
|
-
var markdown = /* @__PURE__ */ __name((
|
|
1640
|
-
var heading = /* @__PURE__ */ __name((
|
|
1641
|
-
var quote = /* @__PURE__ */ __name((
|
|
1639
|
+
var markdown = /* @__PURE__ */ __name((text5) => visibleControls(text5).replace(/[\\`*_{}[\]()<>#+.!|~]/g, "\\$&"), "markdown");
|
|
1640
|
+
var heading = /* @__PURE__ */ __name((text5) => markdown(singleLine(text5)), "heading");
|
|
1641
|
+
var quote = /* @__PURE__ */ __name((text5) => markdown(text5).split(/\r\n|\r|\n/).map((line2) => `> ${line2}`).join("\n"), "quote");
|
|
1642
1642
|
var transcriptsOf = /* @__PURE__ */ __name((details, transcriptId) => {
|
|
1643
1643
|
if (transcriptId !== void 0) {
|
|
1644
1644
|
positiveInteger(transcriptId);
|
|
@@ -1702,10 +1702,10 @@ var exportMeeting = /* @__PURE__ */ __name(async (store, id3, options) => {
|
|
|
1702
1702
|
};
|
|
1703
1703
|
}, "exportMeeting");
|
|
1704
1704
|
|
|
1705
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1705
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
|
|
1706
1706
|
import { createHash as createHash2 } from "node:crypto";
|
|
1707
1707
|
|
|
1708
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1708
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/timestamp.js
|
|
1709
1709
|
var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
|
|
1710
1710
|
if (typeof value !== "string" || !/^\d{4}-\d{2}-\d{2}T.+(?:Z|[+-]\d{2}:\d{2})$/i.test(value) || !Number.isFinite(Date.parse(value)))
|
|
1711
1711
|
throw new CliError("validation_error", `${name} must be an ISO timestamp with a timezone`);
|
|
@@ -1716,21 +1716,21 @@ var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
|
|
|
1716
1716
|
return new Date(value).toISOString();
|
|
1717
1717
|
}, "meetingTimestamp");
|
|
1718
1718
|
|
|
1719
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1719
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
|
|
1720
1720
|
var TASK_TYPES = ["bug", "feature", "chore"];
|
|
1721
1721
|
var invalid3 = /* @__PURE__ */ __name((message) => {
|
|
1722
1722
|
throw new CliError("validation_error", message);
|
|
1723
1723
|
}, "invalid");
|
|
1724
|
-
var
|
|
1724
|
+
var findingText = /* @__PURE__ */ __name((value, limit) => {
|
|
1725
1725
|
if (typeof value !== "string" || !value.trim() || value.includes("\0") || value.length > limit)
|
|
1726
1726
|
return invalid3(`finding text must contain 1\u2013${limit} characters without NUL`);
|
|
1727
1727
|
return value.trim();
|
|
1728
|
-
}, "
|
|
1728
|
+
}, "findingText");
|
|
1729
1729
|
var findingHash = /* @__PURE__ */ __name((value) => createHash2("sha256").update(JSON.stringify(value)).digest("hex"), "findingHash");
|
|
1730
|
-
var
|
|
1730
|
+
var findingFields = /* @__PURE__ */ __name((value, allowed, noun) => {
|
|
1731
1731
|
if (Object.keys(value).some((key) => !allowed.includes(key)))
|
|
1732
1732
|
invalid3(`unknown ${noun} field`);
|
|
1733
|
-
}, "
|
|
1733
|
+
}, "findingFields");
|
|
1734
1734
|
var SUBJECT = /^(person|organization|project):[1-9]\d*$|^task:[A-Za-z0-9][A-Za-z0-9_.-]{0,63}$/;
|
|
1735
1735
|
var validEvidence = /* @__PURE__ */ __name((raw, rules) => {
|
|
1736
1736
|
if (!Array.isArray(raw) || raw.length < 1 || raw.length > 8)
|
|
@@ -1738,7 +1738,7 @@ var validEvidence = /* @__PURE__ */ __name((raw, rules) => {
|
|
|
1738
1738
|
const evidence = raw.map((item) => {
|
|
1739
1739
|
if (!item || typeof item !== "object")
|
|
1740
1740
|
return invalid3("finding evidence is a reference and fingerprint");
|
|
1741
|
-
|
|
1741
|
+
findingFields(item, ["reference", "fingerprint"], rules.singular);
|
|
1742
1742
|
if (typeof item.reference !== "string" || typeof item.fingerprint !== "string")
|
|
1743
1743
|
return invalid3("evidence requires a reference and fingerprint");
|
|
1744
1744
|
const reference2 = rules.reference(item.reference);
|
|
@@ -1761,10 +1761,10 @@ var validateFinding = /* @__PURE__ */ __name((finding, rules, ids2) => {
|
|
|
1761
1761
|
if (!finding || typeof finding !== "object")
|
|
1762
1762
|
return invalid3("a finding is an object");
|
|
1763
1763
|
const id3 = findingId(finding.id, ids2);
|
|
1764
|
-
const project = finding.project === void 0 && rules.anySubject ? void 0 :
|
|
1764
|
+
const project = finding.project === void 0 && rules.anySubject ? void 0 : findingText(finding.project, 64);
|
|
1765
1765
|
if (project !== void 0 && !/^project:[1-9]\d*$/.test(project))
|
|
1766
1766
|
return invalid3("a finding names a project reference");
|
|
1767
|
-
if (finding.subject !== void 0 && (!rules.anySubject || !SUBJECT.test(
|
|
1767
|
+
if (finding.subject !== void 0 && (!rules.anySubject || !SUBJECT.test(findingText(finding.subject, 80))))
|
|
1768
1768
|
return invalid3("a finding's subject is a person:, organization:, task: or project: reference");
|
|
1769
1769
|
if (finding.kind === "task" && project === void 0 && !rules.inboxTasks)
|
|
1770
1770
|
return invalid3("a task finding names the project the task goes in");
|
|
@@ -1776,15 +1776,15 @@ var validateFinding = /* @__PURE__ */ __name((finding, rules, ids2) => {
|
|
|
1776
1776
|
evidence
|
|
1777
1777
|
};
|
|
1778
1778
|
if (finding.kind === "fact") {
|
|
1779
|
-
|
|
1779
|
+
findingFields(finding, ["id", "project", "subject", "evidence", "kind", "type", "statement"], rules.singular);
|
|
1780
1780
|
if (finding.type === "payment")
|
|
1781
1781
|
return invalid3("a payment is a finding of kind payment; money is a payments row, not a fact");
|
|
1782
1782
|
if (!FACT_TYPES.includes(finding.type))
|
|
1783
1783
|
return invalid3("unknown fact finding type");
|
|
1784
|
-
return { ...base, kind: "fact", type: finding.type, statement:
|
|
1784
|
+
return { ...base, kind: "fact", type: finding.type, statement: findingText(finding.statement, 2e3) };
|
|
1785
1785
|
}
|
|
1786
1786
|
if (finding.kind === "payment" && rules.payments) {
|
|
1787
|
-
|
|
1787
|
+
findingFields(finding, ["id", "project", "subject", "evidence", "kind", "statement", "payment", "supersedes"], rules.singular);
|
|
1788
1788
|
if (finding.supersedes !== void 0 && !/^invoice:[1-9]\d*$/.test(String(finding.supersedes)))
|
|
1789
1789
|
return invalid3("a payment finding supersedes an invoice: reference, the expected payment it settles or voids");
|
|
1790
1790
|
const payment = validatePayment(finding.payment);
|
|
@@ -1797,14 +1797,14 @@ var validateFinding = /* @__PURE__ */ __name((finding, rules, ids2) => {
|
|
|
1797
1797
|
return {
|
|
1798
1798
|
...base,
|
|
1799
1799
|
kind: "payment",
|
|
1800
|
-
...finding.statement === void 0 ? {} : { statement:
|
|
1800
|
+
...finding.statement === void 0 ? {} : { statement: findingText(finding.statement, 2e3) },
|
|
1801
1801
|
payment,
|
|
1802
1802
|
...finding.supersedes === void 0 ? {} : { supersedes: finding.supersedes }
|
|
1803
1803
|
};
|
|
1804
1804
|
}
|
|
1805
1805
|
if (finding.kind !== "task")
|
|
1806
1806
|
return invalid3(`a finding is a fact${rules.payments ? ", payment" : ""} or task`);
|
|
1807
|
-
|
|
1807
|
+
findingFields(finding, [
|
|
1808
1808
|
"id",
|
|
1809
1809
|
"project",
|
|
1810
1810
|
"evidence",
|
|
@@ -1830,8 +1830,8 @@ var validateFinding = /* @__PURE__ */ __name((finding, rules, ids2) => {
|
|
|
1830
1830
|
...base,
|
|
1831
1831
|
kind: "task",
|
|
1832
1832
|
type: finding.type,
|
|
1833
|
-
title:
|
|
1834
|
-
reason:
|
|
1833
|
+
title: findingText(finding.title, 300),
|
|
1834
|
+
reason: findingText(finding.reason, 2e3),
|
|
1835
1835
|
commitment: finding.commitment,
|
|
1836
1836
|
...finding.dueAt === void 0 ? {} : {
|
|
1837
1837
|
dueAt: meetingTimestamp(finding.dueAt, "finding due date"),
|
|
@@ -1848,22 +1848,20 @@ var support = /* @__PURE__ */ __name((value, evidence) => {
|
|
|
1848
1848
|
var validateBatch = /* @__PURE__ */ __name((input, rules, most, one) => {
|
|
1849
1849
|
if (!input || typeof input !== "object" || Buffer.byteLength(JSON.stringify(input), "utf8") > 65536)
|
|
1850
1850
|
return invalid3(`${rules.plural} take at most 65536 UTF-8 bytes`);
|
|
1851
|
-
|
|
1851
|
+
findingFields(input, ["schemaVersion", "key", "extractor", "findings"], rules.singular);
|
|
1852
1852
|
if (input.schemaVersion !== 1 || !Array.isArray(input.findings) || input.findings.length < 1 || input.findings.length > most)
|
|
1853
1853
|
return invalid3(`schemaVersion 1 takes 1\u2013${most} ${rules.plural}`);
|
|
1854
|
-
const key =
|
|
1854
|
+
const key = findingText(input.key, 64);
|
|
1855
1855
|
if (!/^[a-zA-Z0-9][a-zA-Z0-9_.:-]*$/.test(key))
|
|
1856
1856
|
return invalid3("a findings key uses letters, digits, dot, colon, underscore or hyphen");
|
|
1857
1857
|
const ids2 = /* @__PURE__ */ new Set();
|
|
1858
1858
|
const findings = input.findings.map((finding) => one(finding, ids2));
|
|
1859
|
-
return { schemaVersion: 1, key, extractor:
|
|
1859
|
+
return { schemaVersion: 1, key, extractor: findingText(input.extractor, 200), findings };
|
|
1860
1860
|
}, "validateBatch");
|
|
1861
1861
|
var validateFindings = /* @__PURE__ */ __name((input, rules) => validateBatch(input, rules, 16, (finding, ids2) => validateFinding(finding, rules, ids2)), "validateFindings");
|
|
1862
|
-
var findingText = /* @__PURE__ */ __name((value, limit) => text3(value, limit), "findingText");
|
|
1863
|
-
var findingFields = /* @__PURE__ */ __name((value, allowed, noun) => fields(value, allowed, noun), "findingFields");
|
|
1864
1862
|
var findingFingerprint = /* @__PURE__ */ __name(({ id: _id, ...finding }) => findingHash(finding), "findingFingerprint");
|
|
1865
1863
|
|
|
1866
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1864
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/findings.js
|
|
1867
1865
|
var MEETING_FINDINGS_KIND = "meeting_findings";
|
|
1868
1866
|
var cue = /* @__PURE__ */ __name((raw) => {
|
|
1869
1867
|
const reference2 = canonicalMeetingReference(raw);
|
|
@@ -1874,7 +1872,7 @@ var cue = /* @__PURE__ */ __name((raw) => {
|
|
|
1874
1872
|
var validateMeetingFindings = /* @__PURE__ */ __name((input) => validateFindings(input, { plural: "meeting findings", singular: "meeting finding", cited: "cue", reference: cue }), "validateMeetingFindings");
|
|
1875
1873
|
var meetingFindingFingerprint = findingFingerprint;
|
|
1876
1874
|
|
|
1877
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1875
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/hit-query.js
|
|
1878
1876
|
var context = {
|
|
1879
1877
|
command: "search meetings",
|
|
1880
1878
|
guide: "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md#\u0432\u0441\u0442\u0440\u0435\u0447\u0438"
|
|
@@ -1937,7 +1935,7 @@ var MEETING_FIELDS = defineQuery({
|
|
|
1937
1935
|
});
|
|
1938
1936
|
var parseMeetingQuery = /* @__PURE__ */ __name((query) => validateQuery(parseLucene(query, { defaultField: "text", proximity: true, ...context }), MEETING_HIT_QUERY, context), "parseMeetingQuery");
|
|
1939
1937
|
|
|
1940
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1938
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/language.js
|
|
1941
1939
|
var LATIN_WORDS = {
|
|
1942
1940
|
en: ["the", "and", "is", "that", "you", "this", "what", "have", "with", "are"],
|
|
1943
1941
|
es: ["el", "los", "las", "por", "pero", "para", "est\xE1", "muy", "tambi\xE9n", "hay"],
|
|
@@ -1952,11 +1950,11 @@ var CYRILLIC = new RegExp("\\p{Script=Cyrillic}", "gu");
|
|
|
1952
1950
|
var LATIN = new RegExp("\\p{Script=Latin}", "gu");
|
|
1953
1951
|
var MIN_LETTERS = 20;
|
|
1954
1952
|
var DOMINANT = 0.75;
|
|
1955
|
-
var countOf = /* @__PURE__ */ __name((
|
|
1953
|
+
var countOf = /* @__PURE__ */ __name((text5, pattern2) => text5.match(pattern2)?.length ?? 0, "countOf");
|
|
1956
1954
|
var latinLanguage = /* @__PURE__ */ __name((texts) => {
|
|
1957
1955
|
const votes = /* @__PURE__ */ new Map();
|
|
1958
|
-
for (const
|
|
1959
|
-
for (const word of
|
|
1956
|
+
for (const text5 of texts)
|
|
1957
|
+
for (const word of text5.toLowerCase().split(/[^\p{L}]+/u)) {
|
|
1960
1958
|
const language = LATIN_LANGUAGE.get(word);
|
|
1961
1959
|
if (language)
|
|
1962
1960
|
votes.set(language, (votes.get(language) ?? 0) + 1);
|
|
@@ -1971,10 +1969,10 @@ var transcriptLanguage = /* @__PURE__ */ __name((texts) => {
|
|
|
1971
1969
|
let cyrillic = 0;
|
|
1972
1970
|
let latin = 0;
|
|
1973
1971
|
let ukrainian = 0;
|
|
1974
|
-
for (const
|
|
1975
|
-
cyrillic += countOf(
|
|
1976
|
-
latin += countOf(
|
|
1977
|
-
ukrainian += countOf(
|
|
1972
|
+
for (const text5 of all) {
|
|
1973
|
+
cyrillic += countOf(text5, CYRILLIC);
|
|
1974
|
+
latin += countOf(text5, LATIN);
|
|
1975
|
+
ukrainian += countOf(text5, UKRAINIAN);
|
|
1978
1976
|
}
|
|
1979
1977
|
const letters = cyrillic + latin;
|
|
1980
1978
|
if (letters < MIN_LETTERS)
|
|
@@ -1986,9 +1984,9 @@ var transcriptLanguage = /* @__PURE__ */ __name((texts) => {
|
|
|
1986
1984
|
return null;
|
|
1987
1985
|
}, "transcriptLanguage");
|
|
1988
1986
|
|
|
1989
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1990
|
-
var contentHash = /* @__PURE__ */ __name(async (
|
|
1991
|
-
const bytes = await crypto.subtle.digest("SHA-256", new TextEncoder().encode(
|
|
1987
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/ingest.js
|
|
1988
|
+
var contentHash = /* @__PURE__ */ __name(async (text5) => {
|
|
1989
|
+
const bytes = await crypto.subtle.digest("SHA-256", new TextEncoder().encode(text5));
|
|
1992
1990
|
return Array.from(new Uint8Array(bytes), (byte) => byte.toString(16).padStart(2, "0")).join("");
|
|
1993
1991
|
}, "contentHash");
|
|
1994
1992
|
var speakerPosition = /* @__PURE__ */ __name((name, participants) => {
|
|
@@ -2023,7 +2021,7 @@ var timestamp2 = /* @__PURE__ */ __name((value) => {
|
|
|
2023
2021
|
return time;
|
|
2024
2022
|
}, "timestamp");
|
|
2025
2023
|
|
|
2026
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2024
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/transcript-text.js
|
|
2027
2025
|
var TranscriptTextError = class extends Error {
|
|
2028
2026
|
static {
|
|
2029
2027
|
__name(this, "TranscriptTextError");
|
|
@@ -2040,10 +2038,10 @@ var LINE = /^\[(\d{2,}):([0-5]\d):([0-5]\d)\]\s*(?:([^:\n]{1,60}):\s*)?([\s\S]*)
|
|
|
2040
2038
|
var RULE = /^[—–-]{10,}[^\n]*(?:\n|$)/;
|
|
2041
2039
|
var EMPTY = /* @__PURE__ */ new Set(["", "\u2014", "-"]);
|
|
2042
2040
|
var parseTranscriptText = /* @__PURE__ */ __name((input) => {
|
|
2043
|
-
const
|
|
2041
|
+
const text5 = input.replace(/^/, "").replace(/\r\n?/g, "\n");
|
|
2044
2042
|
const header = { title: null, date: null, meetingId: null, speakers: [] };
|
|
2045
2043
|
let sawHeader = false;
|
|
2046
|
-
for (const line2 of
|
|
2044
|
+
for (const line2 of text5.split("\n")) {
|
|
2047
2045
|
if (!line2.trim())
|
|
2048
2046
|
break;
|
|
2049
2047
|
for (const [prefix, key] of Object.entries(HEADER)) {
|
|
@@ -2060,7 +2058,7 @@ var parseTranscriptText = /* @__PURE__ */ __name((input) => {
|
|
|
2060
2058
|
if (!sawHeader)
|
|
2061
2059
|
throw new TranscriptTextError('a text transcript starts with a header such as "\u0412\u0441\u0442\u0440\u0435\u0447\u0430: \u2026"');
|
|
2062
2060
|
const found = [];
|
|
2063
|
-
for (const block of
|
|
2061
|
+
for (const block of text5.split(/\n\s*\n/)) {
|
|
2064
2062
|
const match = LINE.exec(block.trim().replace(RULE, ""));
|
|
2065
2063
|
if (!match)
|
|
2066
2064
|
continue;
|
|
@@ -2078,7 +2076,7 @@ var parseTranscriptText = /* @__PURE__ */ __name((input) => {
|
|
|
2078
2076
|
return { header, lines };
|
|
2079
2077
|
}, "parseTranscriptText");
|
|
2080
2078
|
|
|
2081
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2079
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/vtt.js
|
|
2082
2080
|
var VttError = class extends Error {
|
|
2083
2081
|
static {
|
|
2084
2082
|
__name(this, "VttError");
|
|
@@ -2094,12 +2092,12 @@ var millis = /* @__PURE__ */ __name((stamp, lineNo) => {
|
|
|
2094
2092
|
const [, hours = "0", minutes = "0", seconds = "0", ms = "0"] = match;
|
|
2095
2093
|
return ((Number(hours) * 60 + Number(minutes)) * 60 + Number(seconds)) * 1e3 + Number(ms);
|
|
2096
2094
|
}, "millis");
|
|
2097
|
-
var splitSpeaker = /* @__PURE__ */ __name((
|
|
2098
|
-
const firstLine =
|
|
2095
|
+
var splitSpeaker = /* @__PURE__ */ __name((text5) => {
|
|
2096
|
+
const firstLine = text5.split("\n", 1)[0] ?? "";
|
|
2099
2097
|
const at = firstLine.indexOf(": ");
|
|
2100
2098
|
if (at <= 0)
|
|
2101
|
-
return { speaker: null, text:
|
|
2102
|
-
return { speaker: firstLine.slice(0, at).trim(), text:
|
|
2099
|
+
return { speaker: null, text: text5 };
|
|
2100
|
+
return { speaker: firstLine.slice(0, at).trim(), text: text5.slice(at + 2) };
|
|
2103
2101
|
}, "splitSpeaker");
|
|
2104
2102
|
var parseVtt = /* @__PURE__ */ __name((input) => {
|
|
2105
2103
|
const lines = input.replace(/^/, "").split(/\r\n|\r|\n/);
|
|
@@ -2124,13 +2122,13 @@ var parseVtt = /* @__PURE__ */ __name((input) => {
|
|
|
2124
2122
|
const lineNo = start + timingAt + 1;
|
|
2125
2123
|
const [from = "", rest = ""] = (block[timingAt] ?? "").split("-->");
|
|
2126
2124
|
const to = rest.trim().split(/\s+/)[0] ?? "";
|
|
2127
|
-
const
|
|
2128
|
-
cues.push({ startMs: millis(from.trim(), lineNo), endMs: millis(to, lineNo), ...splitSpeaker(
|
|
2125
|
+
const text5 = block.slice(timingAt + 1).join("\n").trim();
|
|
2126
|
+
cues.push({ startMs: millis(from.trim(), lineNo), endMs: millis(to, lineNo), ...splitSpeaker(text5) });
|
|
2129
2127
|
}
|
|
2130
2128
|
return cues;
|
|
2131
2129
|
}, "parseVtt");
|
|
2132
2130
|
|
|
2133
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2131
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/import.js
|
|
2134
2132
|
var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now()) => {
|
|
2135
2133
|
const report = { meetings: 0, participants: 0, transcriptRows: 0, summaries: 0, warnings: [] };
|
|
2136
2134
|
for (const file of files) {
|
|
@@ -2163,10 +2161,10 @@ var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now())
|
|
|
2163
2161
|
return report;
|
|
2164
2162
|
}, "importFiles");
|
|
2165
2163
|
|
|
2166
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2164
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/links.js
|
|
2167
2165
|
var CHAT_MESSAGES_READ = 1e5;
|
|
2168
2166
|
|
|
2169
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2167
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/meeting-management.js
|
|
2170
2168
|
var nonempty = /* @__PURE__ */ __name((value, name) => {
|
|
2171
2169
|
if (typeof value !== "string" || !value.trim())
|
|
2172
2170
|
throw new CliError("validation_error", `${name} must be nonempty`);
|
|
@@ -2217,7 +2215,7 @@ var validateMeetingChange = /* @__PURE__ */ __name((change, create) => {
|
|
|
2217
2215
|
return Object.freeze(result);
|
|
2218
2216
|
}, "validateMeetingChange");
|
|
2219
2217
|
|
|
2220
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2218
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/passage.js
|
|
2221
2219
|
var meetingHitContextLimits = /* @__PURE__ */ __name((options = {}) => {
|
|
2222
2220
|
const { before = 3, after = 3, bytes = 65536, max_read_bytes = 4194304, expected_fingerprint } = options;
|
|
2223
2221
|
if (![before, after].every((value) => Number.isSafeInteger(value) && value >= 0) || before + after > 999 || !Number.isSafeInteger(bytes) || bytes < 2 || bytes > 4194304 || !Number.isSafeInteger(max_read_bytes) || max_read_bytes < 1 || max_read_bytes > 67108864 || expected_fingerprint !== void 0 && (typeof expected_fingerprint !== "string" || !/^[a-f0-9]{64}$/.test(expected_fingerprint)))
|
|
@@ -2230,7 +2228,7 @@ var validateMeetingPassage = /* @__PURE__ */ __name((reference2, options) => {
|
|
|
2230
2228
|
throw new CliError("validation_error", "choose a cue reference and json, text or markdown output");
|
|
2231
2229
|
}, "validateMeetingPassage");
|
|
2232
2230
|
|
|
2233
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2231
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/preparation-context.js
|
|
2234
2232
|
var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
|
|
2235
2233
|
if (!original || typeof original !== "object" || Array.isArray(original))
|
|
2236
2234
|
throw new CliError("validation_error", "meeting preparation context is required");
|
|
@@ -2255,7 +2253,7 @@ var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
|
|
|
2255
2253
|
return { ...input, limit, maxReadBytes };
|
|
2256
2254
|
}, "validateMeetingPreparationContext");
|
|
2257
2255
|
|
|
2258
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2256
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-answer.js
|
|
2259
2257
|
var count3 = pipe(number(), integer(), minValue(0));
|
|
2260
2258
|
var id = pipe(string(), minLength(1));
|
|
2261
2259
|
var meetingProjectEvidence = strictObject({
|
|
@@ -2376,7 +2374,7 @@ var meetingProjectEvidenceAnswer = /* @__PURE__ */ __name((page, prepared, comma
|
|
|
2376
2374
|
};
|
|
2377
2375
|
}, "meetingProjectEvidenceAnswer");
|
|
2378
2376
|
|
|
2379
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2377
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/search-validation.js
|
|
2380
2378
|
var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
|
|
2381
2379
|
const integer3 = /* @__PURE__ */ __name((value, low, high) => Number.isSafeInteger(value) && value >= low && value <= high, "integer");
|
|
2382
2380
|
if (typeof query !== "string" || !query.trim() || query.includes("\0") || new TextEncoder().encode(query).byteLength > 65536 || !integer3(options.limit ?? 100, 1, 1e3) || !integer3(options.maxReadBytes ?? 4194304, 1, 67108864) || [
|
|
@@ -2396,7 +2394,7 @@ var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
|
|
|
2396
2394
|
throw new CliError("validation_error", "choose one project selector and one tag or topic selector");
|
|
2397
2395
|
}, "validateMeetingHitSearch");
|
|
2398
2396
|
|
|
2399
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2397
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-query.js
|
|
2400
2398
|
var ids = {
|
|
2401
2399
|
meeting_id: "meetingId",
|
|
2402
2400
|
identity_id: "participantIdentityId",
|
|
@@ -2487,7 +2485,7 @@ var prepareMeetingProjectEvidence = /* @__PURE__ */ __name((project, request = {
|
|
|
2487
2485
|
return { project: project.trim(), options, query: frozen.join(" AND ") };
|
|
2488
2486
|
}, "prepareMeetingProjectEvidence");
|
|
2489
2487
|
|
|
2490
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2488
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/project-evidence.js
|
|
2491
2489
|
var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project, request = {}, now = Date.now()) => {
|
|
2492
2490
|
const prepared = prepareMeetingProjectEvidence(project, request, now);
|
|
2493
2491
|
const page = await read(prepared.project, prepared.options);
|
|
@@ -2495,12 +2493,12 @@ var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project, re
|
|
|
2495
2493
|
return meetingProjectEvidenceAnswer(page, prepared);
|
|
2496
2494
|
}, "readMeetingProjectEvidence");
|
|
2497
2495
|
|
|
2498
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2496
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/pull.js
|
|
2499
2497
|
var participantInput = /* @__PURE__ */ __name((p, provider, occurrenceId2, position, accountId) => {
|
|
2500
|
-
const { identityExternalId, ...
|
|
2498
|
+
const { identityExternalId, ...fields } = p;
|
|
2501
2499
|
const externalId = identityExternalId ?? (p.email ? `email:${p.email.toLowerCase()}` : p.externalId) ?? `name:${p.displayName ?? "unknown"}@${accountId}/${occurrenceId2}:${position}`;
|
|
2502
2500
|
return {
|
|
2503
|
-
...
|
|
2501
|
+
...fields,
|
|
2504
2502
|
identity: {
|
|
2505
2503
|
provider,
|
|
2506
2504
|
externalId,
|
|
@@ -2634,47 +2632,47 @@ unlinked`, format)],
|
|
|
2634
2632
|
return report;
|
|
2635
2633
|
}, "pull");
|
|
2636
2634
|
|
|
2637
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2638
|
-
var
|
|
2635
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/read-answers.js
|
|
2636
|
+
var text3 = string();
|
|
2639
2637
|
var count4 = pipe(number(), integer(), minValue(0));
|
|
2640
2638
|
var id2 = pipe(number(), integer(), minValue(1));
|
|
2641
2639
|
var iso3 = /* @__PURE__ */ __name((ms) => ms === null ? null : new Date(ms).toISOString(), "iso");
|
|
2642
2640
|
var meetingReview = strictObject({
|
|
2643
2641
|
ref: reference,
|
|
2644
2642
|
id: pipe(string(), minLength(1)),
|
|
2645
|
-
title: nullable(
|
|
2643
|
+
title: nullable(text3),
|
|
2646
2644
|
started_at: nullable(isoTime),
|
|
2647
2645
|
duration_ms: nullable(count4),
|
|
2648
2646
|
participants_count: nullable(count4),
|
|
2649
|
-
projects: array(
|
|
2647
|
+
projects: array(text3),
|
|
2650
2648
|
/** Null when the meeting has no current transcript. */
|
|
2651
2649
|
transcript: nullable(strictObject({ lines: count4, words: count4 })),
|
|
2652
2650
|
/** The three who talked longest. */
|
|
2653
|
-
speakers: array(strictObject({ name: nullable(
|
|
2651
|
+
speakers: array(strictObject({ name: nullable(text3), talk_ms: count4 })),
|
|
2654
2652
|
/** The newest stored summary; null when there is none. */
|
|
2655
2653
|
summary: nullable(strictObject({
|
|
2656
|
-
source:
|
|
2657
|
-
title: nullable(
|
|
2658
|
-
overview: nullable(
|
|
2659
|
-
next_steps: array(
|
|
2660
|
-
url: nullable(
|
|
2654
|
+
source: text3,
|
|
2655
|
+
title: nullable(text3),
|
|
2656
|
+
overview: nullable(text3),
|
|
2657
|
+
next_steps: array(text3),
|
|
2658
|
+
url: nullable(text3)
|
|
2661
2659
|
}))
|
|
2662
2660
|
});
|
|
2663
2661
|
var meetingLink = strictObject({
|
|
2664
|
-
url:
|
|
2665
|
-
domain: nullable(
|
|
2662
|
+
url: text3,
|
|
2663
|
+
domain: nullable(text3),
|
|
2666
2664
|
/** The Google Docs, Sheets, Slides, Forms or Drive file it names. */
|
|
2667
|
-
document_id: nullable(
|
|
2665
|
+
document_id: nullable(text3),
|
|
2668
2666
|
count: count4,
|
|
2669
2667
|
first_at: isoTime,
|
|
2670
2668
|
last_at: isoTime,
|
|
2671
|
-
senders: array(
|
|
2672
|
-
meetings: array(strictObject({ ref: reference, title: nullable(
|
|
2669
|
+
senders: array(text3),
|
|
2670
|
+
meetings: array(strictObject({ ref: reference, title: nullable(text3) }))
|
|
2673
2671
|
});
|
|
2674
2672
|
var meetingSpeaker = strictObject({
|
|
2675
2673
|
/** `person:<id>`, `identity:<id>`, `name:<lowercased name>` or `unknown`. */
|
|
2676
|
-
key:
|
|
2677
|
-
name: nullable(
|
|
2674
|
+
key: text3,
|
|
2675
|
+
name: nullable(text3),
|
|
2678
2676
|
person_id: nullable(id2),
|
|
2679
2677
|
identity_id: nullable(id2),
|
|
2680
2678
|
meetings: count4,
|
|
@@ -2685,18 +2683,18 @@ var meetingSpeaker = strictObject({
|
|
|
2685
2683
|
share: pipe(number(), minValue(0), maxValue(1))
|
|
2686
2684
|
});
|
|
2687
2685
|
var meetingStats = strictObject({
|
|
2688
|
-
time_zone:
|
|
2686
|
+
time_zone: text3,
|
|
2689
2687
|
meetings: count4,
|
|
2690
2688
|
lines: count4,
|
|
2691
2689
|
words: count4,
|
|
2692
2690
|
talk_ms: count4,
|
|
2693
2691
|
/** `week_start` is the Monday, as a date in `time_zone`. */
|
|
2694
|
-
weeks: array(strictObject({ week_start:
|
|
2692
|
+
weeks: array(strictObject({ week_start: text3, meetings: count4, talk_ms: count4 })),
|
|
2695
2693
|
top_speakers: array(meetingSpeaker)
|
|
2696
2694
|
});
|
|
2697
2695
|
var meetingCountsRow = strictObject({
|
|
2698
|
-
key:
|
|
2699
|
-
name: nullable(
|
|
2696
|
+
key: text3,
|
|
2697
|
+
name: nullable(text3),
|
|
2700
2698
|
meetings: count4,
|
|
2701
2699
|
minutes: count4,
|
|
2702
2700
|
mean_minutes: nullable(number()),
|
|
@@ -2716,13 +2714,13 @@ var meetingParticipants = strictObject({
|
|
|
2716
2714
|
schema_version: literal(1),
|
|
2717
2715
|
kind: literal("meeting_participants"),
|
|
2718
2716
|
account_id: id2,
|
|
2719
|
-
query:
|
|
2717
|
+
query: text3,
|
|
2720
2718
|
items: array(strictObject({
|
|
2721
2719
|
participant_id: id2,
|
|
2722
2720
|
meeting_id: id2,
|
|
2723
2721
|
identity_id: id2,
|
|
2724
|
-
display_name: nullable(
|
|
2725
|
-
email: nullable(
|
|
2722
|
+
display_name: nullable(text3),
|
|
2723
|
+
email: nullable(text3)
|
|
2726
2724
|
})),
|
|
2727
2725
|
/** Several identities on one page are observations, never speaker attribution or person links. */
|
|
2728
2726
|
ambiguity: strictObject({ scope: literal("page"), multiple_identities: boolean(), identity_ids: array(id2) }),
|
|
@@ -2736,7 +2734,7 @@ var meetingParticipants = strictObject({
|
|
|
2736
2734
|
mode: literal("cursor"),
|
|
2737
2735
|
limit: count4,
|
|
2738
2736
|
has_more: boolean(),
|
|
2739
|
-
next_cursor: optional(
|
|
2737
|
+
next_cursor: optional(text3)
|
|
2740
2738
|
})
|
|
2741
2739
|
});
|
|
2742
2740
|
var revision = picklist(["current", "superseded"]);
|
|
@@ -2745,8 +2743,8 @@ var meetingPassage = strictObject({
|
|
|
2745
2743
|
kind: literal("meeting_context"),
|
|
2746
2744
|
source: reference,
|
|
2747
2745
|
target_ref: reference,
|
|
2748
|
-
target_fingerprint:
|
|
2749
|
-
fingerprint:
|
|
2746
|
+
target_fingerprint: text3,
|
|
2747
|
+
fingerprint: text3,
|
|
2750
2748
|
revision,
|
|
2751
2749
|
limits: strictObject({ before: count4, after: count4, bytes: count4, max_read_bytes: count4 }),
|
|
2752
2750
|
content_bytes: count4,
|
|
@@ -2765,30 +2763,30 @@ var meetingPassage = strictObject({
|
|
|
2765
2763
|
}),
|
|
2766
2764
|
items: array(strictObject({
|
|
2767
2765
|
ref: reference,
|
|
2768
|
-
fingerprint:
|
|
2766
|
+
fingerprint: text3,
|
|
2769
2767
|
transcript_id: id2,
|
|
2770
|
-
content_hash: nullable(
|
|
2768
|
+
content_hash: nullable(text3),
|
|
2771
2769
|
position: count4,
|
|
2772
2770
|
start_ms: count4,
|
|
2773
2771
|
end_ms: count4,
|
|
2774
2772
|
speaker_participant_id: nullable(id2),
|
|
2775
|
-
speaker_name: nullable(
|
|
2776
|
-
text:
|
|
2773
|
+
speaker_name: nullable(text3),
|
|
2774
|
+
text: text3,
|
|
2777
2775
|
revision
|
|
2778
2776
|
}))
|
|
2779
2777
|
});
|
|
2780
2778
|
var event = strictObject({
|
|
2781
2779
|
id: pipe(string(), minLength(1)),
|
|
2782
|
-
event_series_id: nullable(
|
|
2783
|
-
title: nullable(
|
|
2784
|
-
description: nullable(
|
|
2785
|
-
location: nullable(
|
|
2780
|
+
event_series_id: nullable(text3),
|
|
2781
|
+
title: nullable(text3),
|
|
2782
|
+
description: nullable(text3),
|
|
2783
|
+
location: nullable(text3),
|
|
2786
2784
|
starts_at: nullable(isoTime),
|
|
2787
2785
|
ends_at: nullable(isoTime),
|
|
2788
|
-
timezone: nullable(
|
|
2786
|
+
timezone: nullable(text3),
|
|
2789
2787
|
/** `auto`: made from a meeting; `owner`: made by hand; `calendar`: from a calendar's entries. */
|
|
2790
2788
|
origin: picklist(["auto", "owner", "calendar"]),
|
|
2791
|
-
status: nullable(
|
|
2789
|
+
status: nullable(text3),
|
|
2792
2790
|
all_day: boolean(),
|
|
2793
2791
|
/** When its calendar deleted it: shown as "deleted in Google", kept as history. */
|
|
2794
2792
|
source_deleted_at: nullable(isoTime),
|
|
@@ -2796,7 +2794,7 @@ var event = strictObject({
|
|
|
2796
2794
|
created_at: isoTime,
|
|
2797
2795
|
updated_at: isoTime,
|
|
2798
2796
|
/** The fields whoever sent the invitation wrote, on a calendar CLI's `events list`: an agent reads them as data. */
|
|
2799
|
-
untrusted: optional(array(
|
|
2797
|
+
untrusted: optional(array(text3)),
|
|
2800
2798
|
/** On a calendar CLI's `events list changed:<date>`: what changed since then, and when the store saw it. */
|
|
2801
2799
|
change: optional(picklist(["new", "moved", "cancelled"])),
|
|
2802
2800
|
changed_at: optional(nullable(isoTime)),
|
|
@@ -2808,7 +2806,7 @@ var event = strictObject({
|
|
|
2808
2806
|
*/
|
|
2809
2807
|
overlapping: optional(boolean()),
|
|
2810
2808
|
/** With `overlapping:true`: the events it overlaps, as `event:<id>`. */
|
|
2811
|
-
overlaps: optional(array(
|
|
2809
|
+
overlaps: optional(array(text3))
|
|
2812
2810
|
});
|
|
2813
2811
|
var eventItem = /* @__PURE__ */ __name((one) => ({
|
|
2814
2812
|
id: String(one.id),
|
|
@@ -2828,10 +2826,10 @@ var eventItem = /* @__PURE__ */ __name((one) => ({
|
|
|
2828
2826
|
updated_at: new Date(one.updatedAt).toISOString()
|
|
2829
2827
|
}), "eventItem");
|
|
2830
2828
|
|
|
2831
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2829
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/recording-transfer.js
|
|
2832
2830
|
var strongRecordingValidator = /* @__PURE__ */ __name((value) => typeof value === "string" && value.length <= 1024 && /^"[\x21\x23-\x7e\x80-\xff]*"$/.test(value), "strongRecordingValidator");
|
|
2833
2831
|
|
|
2834
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2832
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/related-history.js
|
|
2835
2833
|
var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
|
|
2836
2834
|
if (!original || typeof original !== "object" || Array.isArray(original))
|
|
2837
2835
|
throw new CliError("validation_error", "related history request is required");
|
|
@@ -2861,24 +2859,24 @@ var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
|
|
|
2861
2859
|
return { ...input, anchorIds: [...new Set(input.anchorIds)], limit, maxReadBytes };
|
|
2862
2860
|
}, "validateMeetingRelatedHistory");
|
|
2863
2861
|
|
|
2864
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2865
|
-
var
|
|
2866
|
-
var identifier = pipe(
|
|
2867
|
-
var nullableText = nullable(
|
|
2862
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/result-items.js
|
|
2863
|
+
var text4 = string();
|
|
2864
|
+
var identifier = pipe(text4, minLength(1));
|
|
2865
|
+
var nullableText = nullable(text4);
|
|
2868
2866
|
var count5 = pipe(number(), integer(), minValue(0));
|
|
2869
2867
|
var flag = boolean();
|
|
2870
|
-
var scope = strictObject({ provider:
|
|
2868
|
+
var scope = strictObject({ provider: text4, account: text4 });
|
|
2871
2869
|
var run = strictObject({
|
|
2872
2870
|
meetings: count5,
|
|
2873
2871
|
participants: count5,
|
|
2874
2872
|
transcript_rows: count5,
|
|
2875
2873
|
summaries: count5,
|
|
2876
|
-
warnings: array(strictObject({ external_id:
|
|
2877
|
-
timezone: optional(
|
|
2874
|
+
warnings: array(strictObject({ external_id: text4, message: text4 })),
|
|
2875
|
+
timezone: optional(text4)
|
|
2878
2876
|
});
|
|
2879
2877
|
var exported = union([
|
|
2880
|
-
strictObject({ meeting_id: identifier, format: picklist(["markdown", "vtt"]), filename:
|
|
2881
|
-
strictObject({ meeting_id: identifier, format: picklist(["markdown", "vtt"]), output:
|
|
2878
|
+
strictObject({ meeting_id: identifier, format: picklist(["markdown", "vtt"]), filename: text4, content: text4 }),
|
|
2879
|
+
strictObject({ meeting_id: identifier, format: picklist(["markdown", "vtt"]), output: text4 })
|
|
2882
2880
|
]);
|
|
2883
2881
|
var eventChange = strictObject({
|
|
2884
2882
|
action: literal("event.link"),
|
|
@@ -2888,7 +2886,7 @@ var eventChange = strictObject({
|
|
|
2888
2886
|
var personChange = strictObject({
|
|
2889
2887
|
action: literal("person.link"),
|
|
2890
2888
|
participant_id: identifier,
|
|
2891
|
-
person_uid:
|
|
2889
|
+
person_uid: text4,
|
|
2892
2890
|
expected_person_uid: optional(nullableText),
|
|
2893
2891
|
target_account_ids: optional(array(identifier))
|
|
2894
2892
|
});
|
|
@@ -2901,7 +2899,7 @@ var eventResult = strictObject({
|
|
|
2901
2899
|
var personResult = strictObject({
|
|
2902
2900
|
meeting_id: identifier,
|
|
2903
2901
|
participant_id: identifier,
|
|
2904
|
-
person_uid:
|
|
2902
|
+
person_uid: text4,
|
|
2905
2903
|
previous_person_uid: nullableText,
|
|
2906
2904
|
changed: flag
|
|
2907
2905
|
});
|
|
@@ -2914,23 +2912,23 @@ var meetingChange = strictObject({
|
|
|
2914
2912
|
result: optional(union([eventResult, personResult]))
|
|
2915
2913
|
});
|
|
2916
2914
|
var recognition = strictObject({
|
|
2917
|
-
engine:
|
|
2918
|
-
model:
|
|
2919
|
-
version: optional(
|
|
2915
|
+
engine: text4,
|
|
2916
|
+
model: text4,
|
|
2917
|
+
version: optional(text4),
|
|
2920
2918
|
timing: optional(picklist(["fixed-windows", "recognition-segments"]))
|
|
2921
2919
|
});
|
|
2922
2920
|
var transcription = union([
|
|
2923
2921
|
strictObject({
|
|
2924
2922
|
applied: literal(false),
|
|
2925
2923
|
account_id: identifier,
|
|
2926
|
-
external_id:
|
|
2924
|
+
external_id: text4,
|
|
2927
2925
|
segments: count5,
|
|
2928
2926
|
media: strictObject({
|
|
2929
|
-
id:
|
|
2930
|
-
content_hash:
|
|
2927
|
+
id: text4,
|
|
2928
|
+
content_hash: text4,
|
|
2931
2929
|
size: count5,
|
|
2932
2930
|
duration_ms: count5,
|
|
2933
|
-
format:
|
|
2931
|
+
format: text4,
|
|
2934
2932
|
sample_rate: count5,
|
|
2935
2933
|
channels: count5,
|
|
2936
2934
|
recognition
|
|
@@ -2939,21 +2937,21 @@ var transcription = union([
|
|
|
2939
2937
|
strictObject({
|
|
2940
2938
|
applied: literal(true),
|
|
2941
2939
|
account_id: identifier,
|
|
2942
|
-
external_id:
|
|
2940
|
+
external_id: text4,
|
|
2943
2941
|
meeting_id: identifier,
|
|
2944
2942
|
created: flag,
|
|
2945
2943
|
inserted_transcripts: count5,
|
|
2946
2944
|
replayed_transcripts: count5,
|
|
2947
2945
|
superseded_transcripts: count5,
|
|
2948
2946
|
segments: count5,
|
|
2949
|
-
media_sha256:
|
|
2950
|
-
engine:
|
|
2951
|
-
model:
|
|
2947
|
+
media_sha256: text4,
|
|
2948
|
+
engine: text4,
|
|
2949
|
+
model: text4,
|
|
2952
2950
|
model_version: nullableText,
|
|
2953
2951
|
timing: picklist(["fixed-windows", "recognition-segments"])
|
|
2954
2952
|
})
|
|
2955
2953
|
]);
|
|
2956
|
-
var embeddingModel = strictObject({ key:
|
|
2954
|
+
var embeddingModel = strictObject({ key: text4, dims: count5, kind: picklist(["local", "remote"]), model: text4 });
|
|
2957
2955
|
var embedding = union([
|
|
2958
2956
|
strictObject({
|
|
2959
2957
|
account_id: identifier,
|
|
@@ -2969,7 +2967,7 @@ var embedding = union([
|
|
|
2969
2967
|
saved: count5,
|
|
2970
2968
|
skipped: count5,
|
|
2971
2969
|
has_more: flag,
|
|
2972
|
-
next_hash: optional(
|
|
2970
|
+
next_hash: optional(text4),
|
|
2973
2971
|
applied: literal(true),
|
|
2974
2972
|
rebuild: strictObject({
|
|
2975
2973
|
transcripts: count5,
|
|
@@ -2994,14 +2992,14 @@ var MEETING_RESULT_ENTITIES = {
|
|
|
2994
2992
|
meeting_repair: repair
|
|
2995
2993
|
};
|
|
2996
2994
|
|
|
2997
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2995
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/review.js
|
|
2998
2996
|
var REVIEW_LIMIT = { default: 50, most: 200 };
|
|
2999
2997
|
|
|
3000
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2998
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/save-hints.js
|
|
3001
2999
|
var SAVE_HELP = `Worth keeping \u2014 a decision, a promise, a preference? Record it with \`memo facts add\` or
|
|
3002
3000
|
\`memo memories add\`, citing the msg: locator or meeting: reference as --evidence.`;
|
|
3003
3001
|
|
|
3004
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3002
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/series-history.js
|
|
3005
3003
|
var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
|
|
3006
3004
|
input.signal?.throwIfAborted();
|
|
3007
3005
|
if (!Number.isSafeInteger(input.accountId) || input.accountId <= 0)
|
|
@@ -3022,19 +3020,19 @@ var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
|
|
|
3022
3020
|
return { ...input, limit, maxReadBytes };
|
|
3023
3021
|
}, "validateMeetingSeriesHistory");
|
|
3024
3022
|
|
|
3025
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3023
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/upcoming-validation.js
|
|
3026
3024
|
var occurrenceId = /* @__PURE__ */ __name((value) => typeof value === "string" && value.trim().length > 0 && value.length <= 1e3 && !/[\0\r\n]/.test(value), "occurrenceId");
|
|
3027
3025
|
|
|
3028
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3026
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/series-inventory-validation.js
|
|
3029
3027
|
function invalid4(field, response = false) {
|
|
3030
3028
|
throw new CliError(response ? "invalid_response" : "validation_error", `invalid meeting inventory ${field}`);
|
|
3031
3029
|
}
|
|
3032
3030
|
__name(invalid4, "invalid");
|
|
3033
|
-
var object2 = /* @__PURE__ */ __name((value,
|
|
3031
|
+
var object2 = /* @__PURE__ */ __name((value, fields, field, response = false) => {
|
|
3034
3032
|
if (!value || typeof value !== "object" || Array.isArray(value))
|
|
3035
3033
|
invalid4(field, response);
|
|
3036
3034
|
for (const key of Object.keys(value))
|
|
3037
|
-
if (!
|
|
3035
|
+
if (!fields.includes(key))
|
|
3038
3036
|
invalid4(`${field}.${key}`, response);
|
|
3039
3037
|
}, "object");
|
|
3040
3038
|
var cursorDetails = /* @__PURE__ */ __name((value) => {
|
|
@@ -3054,7 +3052,7 @@ var validateMeetingSeriesInventoryCursor = /* @__PURE__ */ __name((value) => {
|
|
|
3054
3052
|
cursorDetails(value);
|
|
3055
3053
|
}, "validateMeetingSeriesInventoryCursor");
|
|
3056
3054
|
|
|
3057
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3055
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/stats.js
|
|
3058
3056
|
var MEETING_COUNTS_GROUPINGS = ["day", "week", "series"];
|
|
3059
3057
|
var zoneOf = /* @__PURE__ */ __name((timeZone) => {
|
|
3060
3058
|
const zone = timeZone ?? "UTC";
|
|
@@ -3189,7 +3187,7 @@ var aggregateMeetingStats = /* @__PURE__ */ __name((rows, timeZone) => {
|
|
|
3189
3187
|
};
|
|
3190
3188
|
}, "aggregateMeetingStats");
|
|
3191
3189
|
|
|
3192
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3190
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/domain/tags.js
|
|
3193
3191
|
var TAG_TYPES = ["chat", "contact", "message", "task"];
|
|
3194
3192
|
var TAG = /^[a-z0-9-]{1,32}$/;
|
|
3195
3193
|
var tagOf = /* @__PURE__ */ __name((value) => {
|
|
@@ -3261,14 +3259,14 @@ export {
|
|
|
3261
3259
|
validatePayment,
|
|
3262
3260
|
paymentTitle,
|
|
3263
3261
|
meetingTimestamp,
|
|
3262
|
+
findingText,
|
|
3264
3263
|
findingHash,
|
|
3264
|
+
findingFields,
|
|
3265
3265
|
validEvidence,
|
|
3266
3266
|
findingId,
|
|
3267
3267
|
validateFinding,
|
|
3268
3268
|
validateBatch,
|
|
3269
3269
|
validateFindings,
|
|
3270
|
-
findingText,
|
|
3271
|
-
findingFields,
|
|
3272
3270
|
findingFingerprint,
|
|
3273
3271
|
MEETING_FINDINGS_KIND,
|
|
3274
3272
|
validateMeetingFindings,
|