@wirecat/cli-memo 0.131.23 → 0.131.24
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/dist/bin/memo.js +2 -2
- package/dist/bundle/{all-profiles-VIPS6NHI.js → all-profiles-ZCJTYGOL.js} +5 -5
- package/dist/bundle/{anthropic-2QZHSXBA.js → anthropic-7WVLAKTX.js} +3 -3
- package/dist/bundle/{app-server-NTSADYGW.js → app-server-6G3SXEHO.js} +35 -35
- package/dist/bundle/auto-JWPM5654.js +86 -0
- package/dist/bundle/{bun-KF5QK2YN.js → bun-JVBDJKBB.js} +2 -2
- package/dist/bundle/{bun-sqlite-XUCC2PWC.js → bun-sqlite-P4I7NVMQ.js} +2 -2
- package/dist/bundle/{chunk-L6FKTS3L.js → chunk-2IRCJT4O.js} +7 -7
- package/dist/bundle/{chunk-IJI62T4U.js → chunk-3KNXQZMO.js} +27 -27
- package/dist/bundle/{chunk-R4V63U6A.js → chunk-3MER7NE6.js} +2 -2
- package/dist/bundle/{chunk-QZXHMQCM.js → chunk-3U7OUQV2.js} +1 -1
- package/dist/bundle/{chunk-UJEO3VWA.js → chunk-5YCNCXL5.js} +1 -1
- package/dist/bundle/{chunk-DIP3ENSY.js → chunk-AIGMYGEL.js} +1 -1
- package/dist/bundle/{chunk-AHFMQAJT.js → chunk-AIVUS6WA.js} +9 -9
- package/dist/bundle/{chunk-6EZ7XGRG.js → chunk-ALGIPJ6L.js} +1 -1
- package/dist/bundle/{chunk-5WCEWK2F.js → chunk-AWGV4VOA.js} +10 -10
- package/dist/bundle/{chunk-GDGY2KIX.js → chunk-BTQSFPIM.js} +4 -4
- package/dist/bundle/{chunk-AETJWLHX.js → chunk-CM2H7NRC.js} +3 -3
- package/dist/bundle/{chunk-QFO6K6CW.js → chunk-CPJEQK4V.js} +43 -43
- package/dist/bundle/{chunk-JRJIFGU2.js → chunk-DIMX5AEE.js} +3 -3
- package/dist/bundle/{chunk-32FPXLNY.js → chunk-DMQ3342A.js} +39 -37
- package/dist/bundle/{chunk-MJWFSOJN.js → chunk-EACY2ULS.js} +214 -173
- package/dist/bundle/{chunk-KQ5P5NLL.js → chunk-EB7LKK4K.js} +1 -1
- package/dist/bundle/{chunk-YKZNFSQE.js → chunk-EGG3PGCM.js} +1 -1
- package/dist/bundle/{chunk-N5L6YYYW.js → chunk-EKTZEF3Q.js} +1 -1
- package/dist/bundle/{chunk-UMWR5PKA.js → chunk-ELKYINWL.js} +12 -12
- package/dist/bundle/{chunk-BSR4QZW5.js → chunk-F2ED6KG6.js} +2 -2
- package/dist/bundle/{chunk-Z7XHH2Q5.js → chunk-FXHN2UZW.js} +14 -9
- package/dist/bundle/{chunk-24P36RXS.js → chunk-GQOXFZBX.js} +481 -308
- package/dist/bundle/{chunk-6PXE6QSQ.js → chunk-GRXVN2X7.js} +1 -1
- package/dist/bundle/{chunk-46WO42ZW.js → chunk-GSEDSGJF.js} +291 -260
- package/dist/bundle/{chunk-V7Y5FOYJ.js → chunk-IC2TL7RW.js} +2 -2
- package/dist/bundle/{chunk-XTARXRP6.js → chunk-IJC6MFLP.js} +7 -7
- package/dist/bundle/{chunk-NY4IKP35.js → chunk-INTF3YPV.js} +2 -2
- package/dist/bundle/{chunk-QSN5NUVL.js → chunk-ITQBXFMC.js} +2 -2
- package/dist/bundle/{chunk-W53TRO7J.js → chunk-J6D34BFP.js} +646 -324
- package/dist/bundle/{chunk-37NN65PB.js → chunk-JDDVGGUV.js} +4 -4
- package/dist/bundle/{chunk-5M4KSMYN.js → chunk-KQSHIQSV.js} +133 -58
- package/dist/bundle/{chunk-4QY7XOVI.js → chunk-LNXFM4FD.js} +11 -11
- package/dist/bundle/{chunk-PDQFWOR5.js → chunk-LWIMGWKB.js} +2 -2
- package/dist/bundle/{chunk-V5ZID7KC.js → chunk-M43DAAZ7.js} +1 -1
- package/dist/bundle/{chunk-UQA5UFJ2.js → chunk-MLMSQK76.js} +1 -1
- package/dist/bundle/{chunk-CTT5VK66.js → chunk-MPVW7BQZ.js} +5 -5
- package/dist/bundle/{chunk-4DKMYDLT.js → chunk-MROFZXAB.js} +41 -28
- package/dist/bundle/{chunk-6I7XGWGH.js → chunk-N5H6I7WQ.js} +5 -5
- package/dist/bundle/{chunk-ZCPUKUST.js → chunk-NAH473ZR.js} +1 -1
- package/dist/bundle/{chunk-7PQOYNMA.js → chunk-ND3GBFEY.js} +1 -1
- package/dist/bundle/{chunk-QWRBAQZ7.js → chunk-OQK2IKPB.js} +1 -1
- package/dist/bundle/{chunk-G4GEARGN.js → chunk-Q6MFBH6Q.js} +8 -8
- package/dist/bundle/{chunk-RE5SEGSR.js → chunk-R2LJDDZP.js} +3 -3
- package/dist/bundle/{chunk-2IKXEL4V.js → chunk-R3LNQ3I4.js} +1 -1
- package/dist/bundle/{chunk-STZMKXK5.js → chunk-RTESJ5O2.js} +3 -3
- package/dist/bundle/{chunk-H76MIWB2.js → chunk-SKTGBVYC.js} +4 -4
- package/dist/bundle/{chunk-JDNA36EX.js → chunk-UA2C4BCH.js} +7 -7
- package/dist/bundle/{chunk-CKLCJ6O7.js → chunk-UPXUE27A.js} +4 -4
- package/dist/bundle/{chunk-GQOFHKUX.js → chunk-UVR6U55E.js} +5 -5
- package/dist/bundle/{chunk-DIELPPLF.js → chunk-UXCDBNAY.js} +1 -1
- package/dist/bundle/{chunk-XRJIQC6P.js → chunk-UY2VH3QK.js} +1 -1
- package/dist/bundle/{chunk-BIYSJBQR.js → chunk-VLPMB3UU.js} +4 -4
- package/dist/bundle/{chunk-Z6YD3YK4.js → chunk-VVEFQEWP.js} +20 -20
- package/dist/bundle/{chunk-FXF34MI2.js → chunk-XF3LZ32F.js} +2 -2
- package/dist/bundle/{chunk-HBXZ7WIV.js → chunk-XSI5NYGB.js} +6 -6
- package/dist/bundle/{chunk-44NQLD5C.js → chunk-ZDOVR4PA.js} +4 -4
- package/dist/bundle/{chunk-O7OI5V7W.js → chunk-ZLZE5P6M.js} +5 -5
- package/dist/bundle/{chunk-BSDOH7DN.js → chunk-ZOYGY2PN.js} +1 -1
- package/dist/bundle/{command-contract-XBYNZVP5.js → command-contract-543RRFNU.js} +11 -11
- package/dist/bundle/{decode-LFASKQPE.js → decode-YHX3DQG2.js} +2 -2
- package/dist/bundle/{echarts-5AB3LFVD.js → echarts-FBVAP7BR.js} +2 -2
- package/dist/bundle/{embed-6KQN523T.js → embed-CQJ42S5C.js} +3 -3
- package/dist/bundle/{embedder-7SGPMINO.js → embedder-EDXLEJ27.js} +6 -6
- package/dist/bundle/{entry-CNZGHHZB.js → entry-HZEA7QFK.js} +4 -4
- package/dist/bundle/failure-62G7QSPX.js +66 -0
- package/dist/bundle/{first-run-UI6UT4OR.js → first-run-JZQN7R6M.js} +5 -5
- package/dist/bundle/{first-screen-3WDPZZXV.js → first-screen-56V3UOQE.js} +12 -12
- package/dist/bundle/{instructions-52W6ZQTU.js → instructions-NYVYNWVU.js} +1 -1
- package/dist/bundle/{mcp-JIOYIKWO.js → mcp-Y6IPYDS2.js} +35 -35
- package/dist/bundle/memo.js +6 -6
- package/dist/bundle/{node-TL2PBNKO.js → node-2QE6UPGS.js} +2 -2
- package/dist/bundle/{node-sqlite-64QIEQ37.js → node-sqlite-SDHZJNY7.js} +3 -3
- package/dist/bundle/{oauth-GH7GLGEJ.js → oauth-FFUJREKS.js} +4 -4
- package/dist/bundle/{open-PCKU5XOH.js → open-NT2GYX6N.js} +2 -2
- package/dist/bundle/{openai-P5QVLTF6.js → openai-IQA2XR6Z.js} +7 -7
- package/dist/bundle/{process-PWAGP6YY.js → process-HIEJXYW6.js} +1 -1
- package/dist/bundle/{program-D7OTNHGU.js → program-DEMRKCZY.js} +90 -65
- package/dist/bundle/{prompt-FNBKJZLM.js → prompt-IOZAME2R.js} +2 -2
- package/dist/bundle/{recognize-5TKRMMA2.js → recognize-2XOAZJ5N.js} +1 -1
- package/dist/bundle/{remote-XZJ7ZAKJ.js → remote-2LE7OTDA.js} +4 -4
- package/dist/bundle/{rerank-JUH3QHX7.js → rerank-UKOVVZM6.js} +4 -4
- package/dist/bundle/{serve-JP6U3PUO.js → serve-S2UHPEBP.js} +6 -6
- package/dist/bundle/server-3YNOEPWU.js +61 -0
- package/dist/bundle/{server-VXI43PF5.js → server-BG4WWQHY.js} +50 -50
- package/dist/bundle/server-EZWQ5KP4.js +48 -0
- package/dist/bundle/{setup-YLI4S4TW.js → setup-2X7ADKFH.js} +39 -39
- package/dist/bundle/{state-G4NEN2OZ.js → state-F5KT3CBD.js} +3 -3
- package/dist/bundle/{store-NHFLFHD5.js → store-WBUUS7FO.js} +9 -9
- package/dist/bundle/store-maintenance-command-KLST56XF.js +48 -0
- package/dist/bundle/update-WH4CGJGP.js +69 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/bundle/auto-MJWSDIMF.js +0 -86
- package/dist/bundle/failure-LJAYEPTS.js +0 -66
- package/dist/bundle/server-5M4YI3V4.js +0 -48
- package/dist/bundle/server-XAHF22CQ.js +0 -61
- package/dist/bundle/store-maintenance-command-6UEORZWI.js +0 -48
- package/dist/bundle/update-6SD2JZUC.js +0 -69
- /package/dist/bundle/{chunk-WX2WLEEF.js → chunk-CWOKGEL3.js} +0 -0
|
@@ -3,21 +3,21 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
answers,
|
|
5
5
|
itemAnswer
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ZDOVR4PA.js";
|
|
7
7
|
import {
|
|
8
8
|
loadConfig,
|
|
9
9
|
updateConfig
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-DMQ3342A.js";
|
|
11
11
|
import {
|
|
12
12
|
failingNotice,
|
|
13
13
|
recordRun
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-GSEDSGJF.js";
|
|
15
15
|
import {
|
|
16
16
|
InvalidArgumentError,
|
|
17
17
|
LOCAL_READ,
|
|
18
18
|
LOCAL_WRITE,
|
|
19
19
|
annotate
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-EACY2ULS.js";
|
|
21
21
|
import {
|
|
22
22
|
installerOf
|
|
23
23
|
} from "./chunk-ILHTNOIV.js";
|
|
@@ -857,7 +857,7 @@ var matches = /* @__PURE__ */ __name((node, item, byName, options) => {
|
|
|
857
857
|
}, "matches");
|
|
858
858
|
var evaluate = /* @__PURE__ */ __name((ast, fields2, item, options = {}) => matches(ast.root, item, new Map(fields2.map((field) => [field.name, field])), options), "evaluate");
|
|
859
859
|
|
|
860
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
860
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/meetings/reference.js
|
|
861
861
|
var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "expected meeting:<accountId>/<meetingId>[/<transcriptId>[/<cuePosition>]] with safe integer IDs"), "invalid");
|
|
862
862
|
var integer2 = /* @__PURE__ */ __name((value, minimum = 1) => {
|
|
863
863
|
if (!Number.isSafeInteger(value) || value < minimum)
|
|
@@ -894,7 +894,7 @@ var parseMeetingReference = /* @__PURE__ */ __name((text6) => {
|
|
|
894
894
|
}, "parseMeetingReference");
|
|
895
895
|
var canonicalMeetingReference = /* @__PURE__ */ __name((text6) => formatMeetingReference(parseMeetingReference(text6)), "canonicalMeetingReference");
|
|
896
896
|
|
|
897
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
897
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/meetings/item.js
|
|
898
898
|
var text = string();
|
|
899
899
|
var count = pipe(number(), integer(), minValue(0));
|
|
900
900
|
var MEETING_ISSUES = ["time_without_zone"];
|
|
@@ -959,7 +959,7 @@ var MEETING_QUERY = {
|
|
|
959
959
|
})
|
|
960
960
|
};
|
|
961
961
|
|
|
962
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
962
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/meetings/join-key.js
|
|
963
963
|
var joinKeyOf = /* @__PURE__ */ __name((url) => {
|
|
964
964
|
const parsed = urlOf(url);
|
|
965
965
|
if (!parsed)
|
|
@@ -993,7 +993,7 @@ var urlOf = /* @__PURE__ */ __name((url) => {
|
|
|
993
993
|
}
|
|
994
994
|
}, "urlOf");
|
|
995
995
|
|
|
996
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
996
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/meetings/calendar-text.js
|
|
997
997
|
var ENTITIES = { amp: "&", lt: "<", gt: ">", quot: '"', "#39": "'", apos: "'", nbsp: " " };
|
|
998
998
|
var SECRET_LINE = /(?<![\p{L}\p{N}])(pass ?codes?|passwords?|pwd|pins?|access ?codes?|meeting ?codes?|kennwort|пароль|пин-?код|код доступа)(?![\p{L}\p{N}])|pwd=/iu;
|
|
999
999
|
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");
|
|
@@ -1026,7 +1026,7 @@ var entryMetadata = /* @__PURE__ */ __name((metadata) => {
|
|
|
1026
1026
|
return kept;
|
|
1027
1027
|
}, "entryMetadata");
|
|
1028
1028
|
|
|
1029
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1029
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/meetings/cue-fingerprint.js
|
|
1030
1030
|
import { createHash } from "node:crypto";
|
|
1031
1031
|
var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256").update(JSON.stringify({
|
|
1032
1032
|
reference: cue2.reference,
|
|
@@ -1040,7 +1040,7 @@ var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256"
|
|
|
1040
1040
|
text: cue2.text
|
|
1041
1041
|
})).digest("hex"), "meetingCueFingerprint");
|
|
1042
1042
|
|
|
1043
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1043
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/meetings/event-store.js
|
|
1044
1044
|
var UNTIL = /(?:^|;)UNTIL=(\d{4})(\d{2})(\d{2})(?:T(\d{2})(\d{2})(\d{2})Z?)?(?:;|$)/iu;
|
|
1045
1045
|
var seriesEnd = /* @__PURE__ */ __name((entry) => {
|
|
1046
1046
|
if (entry.recurrenceEndsAt !== null)
|
|
@@ -1063,7 +1063,7 @@ var entryInWindow = /* @__PURE__ */ __name((entry, window) => {
|
|
|
1063
1063
|
return Math.max(entry.endsAt ?? start, start + 1) > window.from;
|
|
1064
1064
|
}, "entryInWindow");
|
|
1065
1065
|
|
|
1066
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1066
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/meetings/answers.js
|
|
1067
1067
|
var text2 = string();
|
|
1068
1068
|
var count2 = pipe(number(), integer(), minValue(0));
|
|
1069
1069
|
var iso2 = /* @__PURE__ */ __name((ms) => ms === null ? null : new Date(ms).toISOString(), "iso");
|
|
@@ -1298,7 +1298,7 @@ var meetingHitsList = /* @__PURE__ */ __name((found, limit, command = "search me
|
|
|
1298
1298
|
};
|
|
1299
1299
|
}, "meetingHitsList");
|
|
1300
1300
|
|
|
1301
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1301
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/meetings/participant-search.js
|
|
1302
1302
|
var normalizeMeetingParticipantQuery = /* @__PURE__ */ __name((text6) => text6.normalize("NFKC").toLowerCase(), "normalizeMeetingParticipantQuery");
|
|
1303
1303
|
var validateMeetingParticipantQuery = /* @__PURE__ */ __name((query) => {
|
|
1304
1304
|
if (typeof query !== "string" || !query.trim() || query.length > 500 || query.includes("\0"))
|
|
@@ -1322,7 +1322,7 @@ var validateMeetingParticipantSearch = /* @__PURE__ */ __name((query, input) =>
|
|
|
1322
1322
|
};
|
|
1323
1323
|
}, "validateMeetingParticipantSearch");
|
|
1324
1324
|
|
|
1325
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1325
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/meetings/reads.js
|
|
1326
1326
|
var MeetingError = class extends CliError {
|
|
1327
1327
|
static {
|
|
1328
1328
|
__name(this, "MeetingError");
|
|
@@ -1454,7 +1454,7 @@ var meetingSummaryAnswer = /* @__PURE__ */ __name(async (store, id3, accountId)
|
|
|
1454
1454
|
return wholeList(details.summaries.map((one) => meetingSummaryItem(details.meeting.accountId, one)));
|
|
1455
1455
|
}, "meetingSummaryAnswer");
|
|
1456
1456
|
|
|
1457
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1457
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/meetings/export.js
|
|
1458
1458
|
var timestamp = /* @__PURE__ */ __name((milliseconds) => {
|
|
1459
1459
|
if (!Number.isSafeInteger(milliseconds) || milliseconds < 0)
|
|
1460
1460
|
throw new MeetingError("validation_error", "transcript times must be nonnegative integer milliseconds");
|
|
@@ -1550,7 +1550,7 @@ var exportMeeting = /* @__PURE__ */ __name(async (store, id3, options) => {
|
|
|
1550
1550
|
};
|
|
1551
1551
|
}, "exportMeeting");
|
|
1552
1552
|
|
|
1553
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1553
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/meetings/payment.js
|
|
1554
1554
|
var FACT_TYPES = ["fact", "statement", "question", "decision", "promise"];
|
|
1555
1555
|
var PAYMENT_DIRECTIONS = ["to_us", "from_us"];
|
|
1556
1556
|
var PAYMENT_STATES = ["expected", "paid", "cancelled"];
|
|
@@ -1644,10 +1644,10 @@ var paymentTitle = /* @__PURE__ */ __name((fact) => {
|
|
|
1644
1644
|
return `${grouped(payment.amount)} ${payment.currency} ${way}${party}${item}${due} (${payment.state})`;
|
|
1645
1645
|
}, "paymentTitle");
|
|
1646
1646
|
|
|
1647
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1647
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
|
|
1648
1648
|
import { createHash as createHash2 } from "node:crypto";
|
|
1649
1649
|
|
|
1650
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1650
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/meetings/timestamp.js
|
|
1651
1651
|
var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
|
|
1652
1652
|
if (typeof value !== "string" || !/^\d{4}-\d{2}-\d{2}T.+(?:Z|[+-]\d{2}:\d{2})$/i.test(value) || !Number.isFinite(Date.parse(value)))
|
|
1653
1653
|
throw new CliError("validation_error", `${name} must be an ISO timestamp with a timezone`);
|
|
@@ -1658,7 +1658,7 @@ var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
|
|
|
1658
1658
|
return new Date(value).toISOString();
|
|
1659
1659
|
}, "meetingTimestamp");
|
|
1660
1660
|
|
|
1661
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1661
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
|
|
1662
1662
|
var TASK_TYPES = ["bug", "feature", "chore"];
|
|
1663
1663
|
var invalid3 = /* @__PURE__ */ __name((message) => {
|
|
1664
1664
|
throw new CliError("validation_error", message);
|
|
@@ -1805,7 +1805,7 @@ var findingText = /* @__PURE__ */ __name((value, limit) => text3(value, limit),
|
|
|
1805
1805
|
var findingFields = /* @__PURE__ */ __name((value, allowed, noun) => fields(value, allowed, noun), "findingFields");
|
|
1806
1806
|
var findingFingerprint = /* @__PURE__ */ __name(({ id: _id, ...finding }) => findingHash(finding), "findingFingerprint");
|
|
1807
1807
|
|
|
1808
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1808
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/meetings/findings.js
|
|
1809
1809
|
var MEETING_FINDINGS_KIND = "meeting_findings";
|
|
1810
1810
|
var cue = /* @__PURE__ */ __name((raw) => {
|
|
1811
1811
|
const reference2 = canonicalMeetingReference(raw);
|
|
@@ -1816,7 +1816,7 @@ var cue = /* @__PURE__ */ __name((raw) => {
|
|
|
1816
1816
|
var validateMeetingFindings = /* @__PURE__ */ __name((input) => validateFindings(input, { plural: "meeting findings", singular: "meeting finding", cited: "cue", reference: cue }), "validateMeetingFindings");
|
|
1817
1817
|
var meetingFindingFingerprint = findingFingerprint;
|
|
1818
1818
|
|
|
1819
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1819
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/meetings/result-items.js
|
|
1820
1820
|
var text4 = string();
|
|
1821
1821
|
var identifier = pipe(text4, minLength(1));
|
|
1822
1822
|
var nullableText = nullable(text4);
|
|
@@ -1949,7 +1949,7 @@ var MEETING_RESULT_ENTITIES = {
|
|
|
1949
1949
|
meeting_repair: repair
|
|
1950
1950
|
};
|
|
1951
1951
|
|
|
1952
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1952
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/meetings/event-query.js
|
|
1953
1953
|
var EVENT_QUERY = defineQuery({
|
|
1954
1954
|
entity: "event",
|
|
1955
1955
|
backend: "sql",
|
|
@@ -1965,7 +1965,7 @@ var EVENT_QUERY = defineQuery({
|
|
|
1965
1965
|
]
|
|
1966
1966
|
});
|
|
1967
1967
|
|
|
1968
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1968
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/meetings/events.js
|
|
1969
1969
|
var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now()) => {
|
|
1970
1970
|
const current = await store.meeting(details.meeting.id);
|
|
1971
1971
|
if (!current)
|
|
@@ -2008,7 +2008,7 @@ var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now())
|
|
|
2008
2008
|
return (await store.events()).find((e) => e.id === linked?.meeting.eventId) ?? null;
|
|
2009
2009
|
}, "linkEvent");
|
|
2010
2010
|
|
|
2011
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2011
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/meetings/hit-query.js
|
|
2012
2012
|
var context = {
|
|
2013
2013
|
command: "search meetings",
|
|
2014
2014
|
guide: "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md#\u0432\u0441\u0442\u0440\u0435\u0447\u0438"
|
|
@@ -2127,7 +2127,7 @@ var meetingWordsQuery = /* @__PURE__ */ __name((text6) => {
|
|
|
2127
2127
|
return { version: 1, language: "lucene-v1", root };
|
|
2128
2128
|
}, "meetingWordsQuery");
|
|
2129
2129
|
|
|
2130
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2130
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/meetings/language.js
|
|
2131
2131
|
var LATIN_WORDS = {
|
|
2132
2132
|
en: ["the", "and", "is", "that", "you", "this", "what", "have", "with", "are"],
|
|
2133
2133
|
es: ["el", "los", "las", "por", "pero", "para", "est\xE1", "muy", "tambi\xE9n", "hay"],
|
|
@@ -2176,7 +2176,7 @@ var transcriptLanguage = /* @__PURE__ */ __name((texts) => {
|
|
|
2176
2176
|
return null;
|
|
2177
2177
|
}, "transcriptLanguage");
|
|
2178
2178
|
|
|
2179
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2179
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/meetings/ingest.js
|
|
2180
2180
|
var contentHash = /* @__PURE__ */ __name(async (text6) => {
|
|
2181
2181
|
const bytes = await crypto.subtle.digest("SHA-256", new TextEncoder().encode(text6));
|
|
2182
2182
|
return Array.from(new Uint8Array(bytes), (byte) => byte.toString(16).padStart(2, "0")).join("");
|
|
@@ -2213,7 +2213,7 @@ var timestamp2 = /* @__PURE__ */ __name((value) => {
|
|
|
2213
2213
|
return time;
|
|
2214
2214
|
}, "timestamp");
|
|
2215
2215
|
|
|
2216
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2216
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/meetings/transcript-text.js
|
|
2217
2217
|
var TranscriptTextError = class extends Error {
|
|
2218
2218
|
static {
|
|
2219
2219
|
__name(this, "TranscriptTextError");
|
|
@@ -2268,7 +2268,7 @@ var parseTranscriptText = /* @__PURE__ */ __name((input) => {
|
|
|
2268
2268
|
return { header, lines };
|
|
2269
2269
|
}, "parseTranscriptText");
|
|
2270
2270
|
|
|
2271
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2271
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/meetings/vtt.js
|
|
2272
2272
|
var VttError = class extends Error {
|
|
2273
2273
|
static {
|
|
2274
2274
|
__name(this, "VttError");
|
|
@@ -2320,7 +2320,7 @@ var parseVtt = /* @__PURE__ */ __name((input) => {
|
|
|
2320
2320
|
return cues;
|
|
2321
2321
|
}, "parseVtt");
|
|
2322
2322
|
|
|
2323
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2323
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/meetings/import.js
|
|
2324
2324
|
var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now()) => {
|
|
2325
2325
|
const report = { meetings: 0, participants: 0, transcriptRows: 0, summaries: 0, warnings: [] };
|
|
2326
2326
|
for (const file of files) {
|
|
@@ -2353,10 +2353,10 @@ var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now())
|
|
|
2353
2353
|
return report;
|
|
2354
2354
|
}, "importFiles");
|
|
2355
2355
|
|
|
2356
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2356
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/meetings/links.js
|
|
2357
2357
|
var CHAT_MESSAGES_READ = 1e5;
|
|
2358
2358
|
|
|
2359
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2359
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/meetings/provider.js
|
|
2360
2360
|
var snapshotMeetingScope = /* @__PURE__ */ __name((scope2) => {
|
|
2361
2361
|
const provider = scope2?.provider;
|
|
2362
2362
|
const account = scope2?.account;
|
|
@@ -2365,7 +2365,7 @@ var snapshotMeetingScope = /* @__PURE__ */ __name((scope2) => {
|
|
|
2365
2365
|
return Object.freeze({ provider, account });
|
|
2366
2366
|
}, "snapshotMeetingScope");
|
|
2367
2367
|
|
|
2368
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2368
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/meetings/meeting-management.js
|
|
2369
2369
|
var nonempty = /* @__PURE__ */ __name((value, name) => {
|
|
2370
2370
|
if (typeof value !== "string" || !value.trim())
|
|
2371
2371
|
throw new CliError("validation_error", `${name} must be nonempty`);
|
|
@@ -2416,7 +2416,7 @@ var validateMeetingChange = /* @__PURE__ */ __name((change, create) => {
|
|
|
2416
2416
|
return Object.freeze(result);
|
|
2417
2417
|
}, "validateMeetingChange");
|
|
2418
2418
|
|
|
2419
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2419
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/meetings/passage.js
|
|
2420
2420
|
var meetingHitContextLimits = /* @__PURE__ */ __name((options = {}) => {
|
|
2421
2421
|
const { before = 3, after = 3, bytes = 65536, max_read_bytes = 4194304, expected_fingerprint } = options;
|
|
2422
2422
|
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)))
|
|
@@ -2429,7 +2429,7 @@ var validateMeetingPassage = /* @__PURE__ */ __name((reference2, options) => {
|
|
|
2429
2429
|
throw new CliError("validation_error", "choose a cue reference and json, text or markdown output");
|
|
2430
2430
|
}, "validateMeetingPassage");
|
|
2431
2431
|
|
|
2432
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2432
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/meetings/preparation-context.js
|
|
2433
2433
|
var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
|
|
2434
2434
|
if (!original || typeof original !== "object" || Array.isArray(original))
|
|
2435
2435
|
throw new CliError("validation_error", "meeting preparation context is required");
|
|
@@ -2454,7 +2454,7 @@ var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
|
|
|
2454
2454
|
return { ...input, limit, maxReadBytes };
|
|
2455
2455
|
}, "validateMeetingPreparationContext");
|
|
2456
2456
|
|
|
2457
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2457
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-answer.js
|
|
2458
2458
|
var count4 = pipe(number(), integer(), minValue(0));
|
|
2459
2459
|
var id = pipe(string(), minLength(1));
|
|
2460
2460
|
var meetingProjectEvidence = strictObject({
|
|
@@ -2575,7 +2575,7 @@ var meetingProjectEvidenceAnswer = /* @__PURE__ */ __name((page, prepared, comma
|
|
|
2575
2575
|
};
|
|
2576
2576
|
}, "meetingProjectEvidenceAnswer");
|
|
2577
2577
|
|
|
2578
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2578
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/meetings/search-validation.js
|
|
2579
2579
|
var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
|
|
2580
2580
|
const integer3 = /* @__PURE__ */ __name((value, low, high) => Number.isSafeInteger(value) && value >= low && value <= high, "integer");
|
|
2581
2581
|
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) || [
|
|
@@ -2595,7 +2595,7 @@ var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
|
|
|
2595
2595
|
throw new CliError("validation_error", "choose one project selector and one tag or topic selector");
|
|
2596
2596
|
}, "validateMeetingHitSearch");
|
|
2597
2597
|
|
|
2598
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2598
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-query.js
|
|
2599
2599
|
var ids = {
|
|
2600
2600
|
meeting_id: "meetingId",
|
|
2601
2601
|
identity_id: "participantIdentityId",
|
|
@@ -2686,7 +2686,7 @@ var prepareMeetingProjectEvidence = /* @__PURE__ */ __name((project, request = {
|
|
|
2686
2686
|
return { project: project.trim(), options, query: frozen.join(" AND ") };
|
|
2687
2687
|
}, "prepareMeetingProjectEvidence");
|
|
2688
2688
|
|
|
2689
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2689
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/meetings/project-evidence.js
|
|
2690
2690
|
var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project, request = {}, now = Date.now()) => {
|
|
2691
2691
|
const prepared = prepareMeetingProjectEvidence(project, request, now);
|
|
2692
2692
|
const page = await read(prepared.project, prepared.options);
|
|
@@ -2694,7 +2694,7 @@ var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project, re
|
|
|
2694
2694
|
return meetingProjectEvidenceAnswer(page, prepared);
|
|
2695
2695
|
}, "readMeetingProjectEvidence");
|
|
2696
2696
|
|
|
2697
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2697
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/meetings/pull.js
|
|
2698
2698
|
var participantInput = /* @__PURE__ */ __name((p, provider, occurrenceId2, position, accountId) => {
|
|
2699
2699
|
const { identityExternalId, ...fields2 } = p;
|
|
2700
2700
|
const externalId = identityExternalId ?? (p.email ? `email:${p.email.toLowerCase()}` : p.externalId) ?? `name:${p.displayName ?? "unknown"}@${accountId}/${occurrenceId2}:${position}`;
|
|
@@ -2833,7 +2833,7 @@ unlinked`, format)],
|
|
|
2833
2833
|
return report;
|
|
2834
2834
|
}, "pull");
|
|
2835
2835
|
|
|
2836
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2836
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/meetings/read-answers.js
|
|
2837
2837
|
var text5 = string();
|
|
2838
2838
|
var count5 = pipe(number(), integer(), minValue(0));
|
|
2839
2839
|
var id2 = pipe(number(), integer(), minValue(1));
|
|
@@ -2893,6 +2893,23 @@ var meetingStats = strictObject({
|
|
|
2893
2893
|
weeks: array(strictObject({ week_start: text5, meetings: count5, talk_ms: count5 })),
|
|
2894
2894
|
top_speakers: array(meetingSpeaker)
|
|
2895
2895
|
});
|
|
2896
|
+
var meetingCountsRow = strictObject({
|
|
2897
|
+
key: text5,
|
|
2898
|
+
name: nullable(text5),
|
|
2899
|
+
meetings: count5,
|
|
2900
|
+
minutes: count5,
|
|
2901
|
+
mean_minutes: nullable(number()),
|
|
2902
|
+
transcripts: count5
|
|
2903
|
+
});
|
|
2904
|
+
var meetingCounts = strictObject({
|
|
2905
|
+
by: picklist(["day", "week", "series"]),
|
|
2906
|
+
meetings: count5,
|
|
2907
|
+
minutes: count5,
|
|
2908
|
+
mean_minutes: nullable(number()),
|
|
2909
|
+
transcripts: count5,
|
|
2910
|
+
rows: array(meetingCountsRow),
|
|
2911
|
+
has_more: boolean()
|
|
2912
|
+
});
|
|
2896
2913
|
var truncated = /* @__PURE__ */ __name((...why) => nullable(picklist(why)), "truncated");
|
|
2897
2914
|
var meetingParticipants = strictObject({
|
|
2898
2915
|
schema_version: literal(1),
|
|
@@ -3010,10 +3027,10 @@ var eventItem = /* @__PURE__ */ __name((one) => ({
|
|
|
3010
3027
|
updated_at: new Date(one.updatedAt).toISOString()
|
|
3011
3028
|
}), "eventItem");
|
|
3012
3029
|
|
|
3013
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3030
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/meetings/recording-transfer.js
|
|
3014
3031
|
var strongRecordingValidator = /* @__PURE__ */ __name((value) => typeof value === "string" && value.length <= 1024 && /^"[\x21\x23-\x7e\x80-\xff]*"$/.test(value), "strongRecordingValidator");
|
|
3015
3032
|
|
|
3016
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3033
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/meetings/related-history.js
|
|
3017
3034
|
var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
|
|
3018
3035
|
if (!original || typeof original !== "object" || Array.isArray(original))
|
|
3019
3036
|
throw new CliError("validation_error", "related history request is required");
|
|
@@ -3043,14 +3060,14 @@ var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
|
|
|
3043
3060
|
return { ...input, anchorIds: [...new Set(input.anchorIds)], limit, maxReadBytes };
|
|
3044
3061
|
}, "validateMeetingRelatedHistory");
|
|
3045
3062
|
|
|
3046
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3063
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/meetings/review.js
|
|
3047
3064
|
var REVIEW_LIMIT = { default: 50, most: 200 };
|
|
3048
3065
|
|
|
3049
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3066
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/meetings/save-hints.js
|
|
3050
3067
|
var SAVE_HELP = `Worth keeping \u2014 a decision, a promise, a preference? Record it with \`memo facts add\` or
|
|
3051
3068
|
\`memo memories add\`, citing the msg: locator or meeting: reference as --evidence.`;
|
|
3052
3069
|
|
|
3053
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3070
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/meetings/series-history.js
|
|
3054
3071
|
var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
|
|
3055
3072
|
input.signal?.throwIfAborted();
|
|
3056
3073
|
if (!Number.isSafeInteger(input.accountId) || input.accountId <= 0)
|
|
@@ -3071,7 +3088,7 @@ var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
|
|
|
3071
3088
|
return { ...input, limit, maxReadBytes };
|
|
3072
3089
|
}, "validateMeetingSeriesHistory");
|
|
3073
3090
|
|
|
3074
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3091
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/meetings/upcoming-validation.js
|
|
3075
3092
|
var invalid4 = /* @__PURE__ */ __name((field) => {
|
|
3076
3093
|
throw new CliError("invalid_response", `meeting occurrence ${field} is invalid`);
|
|
3077
3094
|
}, "invalid");
|
|
@@ -3140,7 +3157,7 @@ var readOccurrenceSchedule = /* @__PURE__ */ __name((input, meetingId, limit, ma
|
|
|
3140
3157
|
return result;
|
|
3141
3158
|
}, "readOccurrenceSchedule");
|
|
3142
3159
|
|
|
3143
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3160
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/meetings/series-inventory-validation.js
|
|
3144
3161
|
function invalid5(field, response = false) {
|
|
3145
3162
|
throw new CliError(response ? "invalid_response" : "validation_error", `invalid meeting inventory ${field}`);
|
|
3146
3163
|
}
|
|
@@ -3169,7 +3186,8 @@ var validateMeetingSeriesInventoryCursor = /* @__PURE__ */ __name((value) => {
|
|
|
3169
3186
|
cursorDetails(value);
|
|
3170
3187
|
}, "validateMeetingSeriesInventoryCursor");
|
|
3171
3188
|
|
|
3172
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3189
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/meetings/stats.js
|
|
3190
|
+
var MEETING_COUNTS_GROUPINGS = ["day", "week", "series"];
|
|
3173
3191
|
var zoneOf = /* @__PURE__ */ __name((timeZone) => {
|
|
3174
3192
|
const zone = timeZone ?? "UTC";
|
|
3175
3193
|
try {
|
|
@@ -3185,17 +3203,72 @@ var weekStart = /* @__PURE__ */ __name((at, format) => {
|
|
|
3185
3203
|
const day = Date.UTC(Number(parts.year), Number(parts.month) - 1, Number(parts.day));
|
|
3186
3204
|
return new Date(day - DAYS.indexOf(parts.weekday ?? "Mon") * 864e5).toISOString().slice(0, 10);
|
|
3187
3205
|
}, "weekStart");
|
|
3206
|
+
var dayKey = /* @__PURE__ */ __name((at, format) => {
|
|
3207
|
+
const parts = Object.fromEntries(format.formatToParts(new Date(at)).map((part) => [part.type, part.value]));
|
|
3208
|
+
return `${parts.year}-${parts.month}-${parts.day}`;
|
|
3209
|
+
}, "dayKey");
|
|
3210
|
+
var zoneFormat = /* @__PURE__ */ __name((zone) => new Intl.DateTimeFormat("en-US", {
|
|
3211
|
+
timeZone: zone,
|
|
3212
|
+
year: "numeric",
|
|
3213
|
+
month: "2-digit",
|
|
3214
|
+
day: "2-digit",
|
|
3215
|
+
weekday: "short"
|
|
3216
|
+
}), "zoneFormat");
|
|
3217
|
+
var NO_SERIES = "no-series";
|
|
3218
|
+
var MOST_COUNT_ROWS = 100;
|
|
3219
|
+
var minutesOf = /* @__PURE__ */ __name((ms) => Math.round(ms / 6e4), "minutesOf");
|
|
3220
|
+
var meanOf = /* @__PURE__ */ __name((ms, timed) => timed === 0 ? null : Math.round(ms / timed / 6e3) / 10, "meanOf");
|
|
3221
|
+
var aggregateMeetingCounts = /* @__PURE__ */ __name((meetings, by, timeZone, limit = MOST_COUNT_ROWS) => {
|
|
3222
|
+
if (!MEETING_COUNTS_GROUPINGS.includes(by))
|
|
3223
|
+
throw new CliError("validation_error", `--by takes ${MEETING_COUNTS_GROUPINGS.join(", ")}`);
|
|
3224
|
+
if (!Number.isSafeInteger(limit) || limit < 1)
|
|
3225
|
+
throw new CliError("validation_error", "--limit is a positive number");
|
|
3226
|
+
const zone = zoneOf(timeZone);
|
|
3227
|
+
const format = zoneFormat(zone);
|
|
3228
|
+
const sum = /* @__PURE__ */ __name(() => ({ meetings: 0, ms: 0, timed: 0, transcripts: 0 }), "sum");
|
|
3229
|
+
const add = /* @__PURE__ */ __name((into, meeting2) => {
|
|
3230
|
+
into.meetings += 1;
|
|
3231
|
+
if (meeting2.durationMs !== null) {
|
|
3232
|
+
into.ms += Math.max(0, meeting2.durationMs);
|
|
3233
|
+
into.timed += 1;
|
|
3234
|
+
}
|
|
3235
|
+
if (meeting2.transcribed)
|
|
3236
|
+
into.transcripts += 1;
|
|
3237
|
+
}, "add");
|
|
3238
|
+
const total = { ...sum(), name: null };
|
|
3239
|
+
const groups = /* @__PURE__ */ new Map();
|
|
3240
|
+
for (const meeting2 of meetings) {
|
|
3241
|
+
add(total, meeting2);
|
|
3242
|
+
const key = by === "series" ? meeting2.seriesKey === null ? NO_SERIES : `series:${meeting2.seriesKey}` : meeting2.startedAt === null ? null : by === "day" ? dayKey(meeting2.startedAt, format) : weekStart(meeting2.startedAt, format);
|
|
3243
|
+
if (key === null)
|
|
3244
|
+
continue;
|
|
3245
|
+
const group = groups.get(key) ?? { ...sum(), name: by === "series" ? meeting2.seriesTitle : null };
|
|
3246
|
+
add(group, meeting2);
|
|
3247
|
+
groups.set(key, group);
|
|
3248
|
+
}
|
|
3249
|
+
const ordered = [...groups.entries()].sort(([a, one], [b, other]) => by === "series" ? other.ms - one.ms || other.meetings - one.meetings || a.localeCompare(b) : b.localeCompare(a));
|
|
3250
|
+
const kept = ordered.slice(0, limit);
|
|
3251
|
+
if (by !== "series")
|
|
3252
|
+
kept.reverse();
|
|
3253
|
+
const counted = /* @__PURE__ */ __name(({ meetings: count6, ms, timed, transcripts }) => ({
|
|
3254
|
+
meetings: count6,
|
|
3255
|
+
minutes: minutesOf(ms),
|
|
3256
|
+
meanMinutes: meanOf(ms, timed),
|
|
3257
|
+
transcripts
|
|
3258
|
+
}), "counted");
|
|
3259
|
+
return {
|
|
3260
|
+
by,
|
|
3261
|
+
timeZone: zone,
|
|
3262
|
+
...counted(total),
|
|
3263
|
+
rows: kept.map(([key, group]) => ({ key, name: group.name, ...counted(group) })),
|
|
3264
|
+
hasMore: ordered.length > limit
|
|
3265
|
+
};
|
|
3266
|
+
}, "aggregateMeetingCounts");
|
|
3188
3267
|
var UNKNOWN_SPEAKER = "unknown";
|
|
3189
3268
|
var speakerOf = /* @__PURE__ */ __name((row) => row.personId !== null ? { key: `person:${row.personId}`, name: row.personName ?? row.identityName ?? row.speakerName } : row.identityId !== null ? { key: `identity:${row.identityId}`, name: row.identityName ?? row.speakerName } : row.speakerName?.trim() ? { key: `name:${row.speakerName.trim().toLowerCase()}`, name: row.speakerName.trim() } : { key: UNKNOWN_SPEAKER, name: null }, "speakerOf");
|
|
3190
3269
|
var aggregateMeetingStats = /* @__PURE__ */ __name((rows, timeZone) => {
|
|
3191
3270
|
const zone = zoneOf(timeZone);
|
|
3192
|
-
const format =
|
|
3193
|
-
timeZone: zone,
|
|
3194
|
-
year: "numeric",
|
|
3195
|
-
month: "2-digit",
|
|
3196
|
-
day: "2-digit",
|
|
3197
|
-
weekday: "short"
|
|
3198
|
-
});
|
|
3271
|
+
const format = zoneFormat(zone);
|
|
3199
3272
|
const speakers = /* @__PURE__ */ new Map();
|
|
3200
3273
|
const weeks = /* @__PURE__ */ new Map();
|
|
3201
3274
|
const meetings = /* @__PURE__ */ new Set();
|
|
@@ -3248,7 +3321,7 @@ var aggregateMeetingStats = /* @__PURE__ */ __name((rows, timeZone) => {
|
|
|
3248
3321
|
};
|
|
3249
3322
|
}, "aggregateMeetingStats");
|
|
3250
3323
|
|
|
3251
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3324
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/meetings/upcoming.js
|
|
3252
3325
|
var cancelled = /* @__PURE__ */ __name((signal) => {
|
|
3253
3326
|
if (!signal?.aborted)
|
|
3254
3327
|
return;
|
|
@@ -3318,7 +3391,7 @@ var createUpcomingMeetingReader = /* @__PURE__ */ __name((scope2, port) => {
|
|
|
3318
3391
|
};
|
|
3319
3392
|
}, "createUpcomingMeetingReader");
|
|
3320
3393
|
|
|
3321
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3394
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/domain/tags.js
|
|
3322
3395
|
var TAG_TYPES = ["chat", "contact", "message", "task"];
|
|
3323
3396
|
var TAG = /^[a-z0-9-]{1,32}$/;
|
|
3324
3397
|
var tagOf = /* @__PURE__ */ __name((value) => {
|
|
@@ -3332,7 +3405,7 @@ var normalizeTag = /* @__PURE__ */ __name((value) => {
|
|
|
3332
3405
|
return tag;
|
|
3333
3406
|
}, "normalizeTag");
|
|
3334
3407
|
|
|
3335
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3408
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/store/sqlite/link-kinds.js
|
|
3336
3409
|
var LINK_KINDS = [
|
|
3337
3410
|
"links-to",
|
|
3338
3411
|
"blocked-by",
|
|
@@ -3353,7 +3426,7 @@ var LINK_SOURCES = [...LINK_ORIGINS, "calendar"];
|
|
|
3353
3426
|
var RELATION_KINDS = ["member-of", "related-to"];
|
|
3354
3427
|
var linkKind = /* @__PURE__ */ __name((kind) => `'${kind}'`, "linkKind");
|
|
3355
3428
|
|
|
3356
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3429
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/tasks/model.js
|
|
3357
3430
|
var TASK_KINDS = ["question", "request", "mention", "promise"];
|
|
3358
3431
|
var TASK_STATES = ["open", "todo", "in_progress", "done", "dismissed"];
|
|
3359
3432
|
var CLOSED_STATES = ["done", "dismissed"];
|
|
@@ -3368,7 +3441,7 @@ function closeTask(task, state, by, at, reason) {
|
|
|
3368
3441
|
}
|
|
3369
3442
|
__name(closeTask, "closeTask");
|
|
3370
3443
|
|
|
3371
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3444
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/tasks/priority.js
|
|
3372
3445
|
var PRIORITY_LABELS = ["low", "medium", "high", "critical"];
|
|
3373
3446
|
var MIDDLE = { low: 0.125, medium: 0.375, high: 0.625, critical: 0.875 };
|
|
3374
3447
|
var LEGACY_PRIORITY_SCORES = [0.875, 0.625, 0.375, 0.1875, 0.0625];
|
|
@@ -3397,13 +3470,13 @@ var priorityOf = /* @__PURE__ */ __name((value) => {
|
|
|
3397
3470
|
}, "priorityOf");
|
|
3398
3471
|
var priorityOption = /* @__PURE__ */ __name((value) => priorityOf(value) ?? "none", "priorityOption");
|
|
3399
3472
|
|
|
3400
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3473
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/tasks/store.js
|
|
3401
3474
|
function matches2(task, filter) {
|
|
3402
3475
|
return (filter.account === void 0 || task.account === filter.account) && (filter.state === void 0 || task.state === filter.state) && (filter.group === void 0 || task.group === filter.group) && (filter.kind === void 0 || task.kind === filter.kind) && (filter.createdBefore === void 0 || task.createdAt < filter.createdBefore);
|
|
3403
3476
|
}
|
|
3404
3477
|
__name(matches2, "matches");
|
|
3405
3478
|
|
|
3406
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3479
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/tasks/service.js
|
|
3407
3480
|
function createTaskService({ store, now = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Date(), "now"), newId = /* @__PURE__ */ __name(() => crypto.randomUUID(), "newId") }) {
|
|
3408
3481
|
async function find(id3) {
|
|
3409
3482
|
const task = await store.get(id3);
|
|
@@ -3463,7 +3536,7 @@ function median(values) {
|
|
|
3463
3536
|
}
|
|
3464
3537
|
__name(median, "median");
|
|
3465
3538
|
|
|
3466
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3539
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/domain/knowledge.js
|
|
3467
3540
|
var FACT_STATUSES = ["proposed", "accepted", "superseded", "reversed", "rejected"];
|
|
3468
3541
|
var MEMORY_KINDS = ["summary", "digest", "preference"];
|
|
3469
3542
|
var MEMORY_STATUSES = ["proposed", "confirmed", "stale", "superseded"];
|
|
@@ -3561,6 +3634,7 @@ export {
|
|
|
3561
3634
|
meetingLink,
|
|
3562
3635
|
meetingSpeaker,
|
|
3563
3636
|
meetingStats,
|
|
3637
|
+
meetingCounts,
|
|
3564
3638
|
meetingParticipants,
|
|
3565
3639
|
meetingPassage,
|
|
3566
3640
|
event,
|
|
@@ -3572,6 +3646,7 @@ export {
|
|
|
3572
3646
|
SAVE_HELP,
|
|
3573
3647
|
validateMeetingSeriesHistory,
|
|
3574
3648
|
validateMeetingSeriesInventoryCursor,
|
|
3649
|
+
aggregateMeetingCounts,
|
|
3575
3650
|
aggregateMeetingStats,
|
|
3576
3651
|
createUpcomingMeetingReader,
|
|
3577
3652
|
TAG_TYPES,
|