@wirecat/mail-cli 0.18.0 → 0.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +25 -0
- package/dist/bin/mail.js +2 -2
- package/dist/bundle/{all-profiles-4CVOXA5Y.js → all-profiles-DTUWUCQQ.js} +7 -6
- package/dist/bundle/{anthropic-5VIKYINO.js → anthropic-YJAEQSNT.js} +3 -3
- package/dist/bundle/{app-server-LTSQBDPF.js → app-server-3ZXSTBA3.js} +41 -40
- package/dist/bundle/{bun-C7DBRUW2.js → bun-34VBM7C5.js} +2 -2
- package/dist/bundle/{bun-sqlite-Y5JKT62B.js → bun-sqlite-GCT7ROCK.js} +2 -2
- package/dist/bundle/{chunk-A5OMARL4.js → chunk-2PPEDB67.js} +31 -29
- package/dist/bundle/{chunk-IANOK5SE.js → chunk-3DSYLE5N.js} +2 -2
- package/dist/bundle/{chunk-QPF4LTK5.js → chunk-3HDQVTND.js} +4 -4
- package/dist/bundle/{chunk-ZLH465EU.js → chunk-4FWJNIPH.js} +1 -1
- package/dist/bundle/{chunk-C4RUKMDT.js → chunk-4WIEVQ2Q.js} +8 -14
- package/dist/bundle/{chunk-SMS5YNPB.js → chunk-566MEXK5.js} +2 -2
- package/dist/bundle/{chunk-GRP67IQ4.js → chunk-72N26BQM.js} +24 -22
- package/dist/bundle/{chunk-6RO5RDNR.js → chunk-7XLOWYGD.js} +109 -6
- package/dist/bundle/{chunk-AOMSP4EI.js → chunk-AF62BPIW.js} +5 -5
- package/dist/bundle/{chunk-U43HUE35.js → chunk-B74SOC4R.js} +9 -20
- package/dist/bundle/{chunk-TVZ77ZOV.js → chunk-FTI73RLC.js} +2 -2
- package/dist/bundle/{chunk-EFP5NN7I.js → chunk-GAPQENMY.js} +2 -2
- package/dist/bundle/{chunk-N5VEJ3E7.js → chunk-HJ2CXDKJ.js} +130 -11
- package/dist/bundle/{chunk-P6WCG6X2.js → chunk-HN43G27G.js} +43 -27
- package/dist/bundle/{chunk-L3YX7A5M.js → chunk-HRRSTIGP.js} +4 -4
- package/dist/bundle/{chunk-NDJZQCF3.js → chunk-HSBGNVEL.js} +210 -171
- package/dist/bundle/{chunk-2NWOYXPJ.js → chunk-I2SDXWLR.js} +206 -56
- package/dist/bundle/{chunk-BMFPCW6Q.js → chunk-J2U6LUT5.js} +17 -3
- package/dist/bundle/{chunk-UXD5JMS5.js → chunk-J4UZXBEV.js} +1 -1
- package/dist/bundle/{chunk-OUGGAAXI.js → chunk-KMQAHDBM.js} +7539 -13576
- package/dist/bundle/{chunk-CPEN6BZZ.js → chunk-LF5XM4HE.js} +1 -1
- package/dist/bundle/chunk-LTXYJAJK.js +12211 -0
- package/dist/bundle/{chunk-7P4ICYJT.js → chunk-MD64ITYO.js} +1 -1
- package/dist/bundle/{chunk-WA3DQSAZ.js → chunk-MDDB7M7Z.js} +1 -1
- package/dist/bundle/{chunk-OLJDZTHB.js → chunk-NOVBK4SY.js} +12 -12
- package/dist/bundle/{chunk-MCR43SWG.js → chunk-O3M2S62X.js} +21 -13
- package/dist/bundle/{chunk-5S6Q3SWU.js → chunk-ODFHIXMA.js} +1 -1
- package/dist/bundle/{chunk-ZT2Y267T.js → chunk-OKO2Q6H6.js} +2 -2
- package/dist/bundle/{chunk-RQSF7X22.js → chunk-P2QJA7S5.js} +1 -1
- package/dist/bundle/{chunk-C5T5K7HW.js → chunk-P6FT6YYT.js} +17 -14
- package/dist/bundle/{chunk-RIO3TD3I.js → chunk-QE72KTS7.js} +1 -1
- package/dist/bundle/{chunk-JO3BIMYK.js → chunk-QPRXTLMD.js} +1 -1
- package/dist/bundle/{chunk-23HWKHPZ.js → chunk-QTMVGOSF.js} +352 -290
- package/dist/bundle/{chunk-SW2KERUB.js → chunk-R3WPMQYZ.js} +270 -153
- package/dist/bundle/{chunk-XGTW3GRX.js → chunk-RFB27ACZ.js} +2 -2
- package/dist/bundle/{chunk-HTFBXGJF.js → chunk-RPCKBXKN.js} +1 -1
- package/dist/bundle/{chunk-43I5XD7S.js → chunk-RT6SLZBI.js} +1 -1
- package/dist/bundle/{chunk-3W5H4TM7.js → chunk-RY7PBP4F.js} +71 -31
- package/dist/bundle/{chunk-BMGVKULS.js → chunk-SCIC2CJS.js} +4 -4
- package/dist/bundle/{chunk-SIYT2BBI.js → chunk-SFC46MP2.js} +250 -9
- package/dist/bundle/chunk-SYEICLTR.js +66 -0
- package/dist/bundle/{chunk-HFUS33UT.js → chunk-T2GQA2E4.js} +4 -1
- package/dist/bundle/{chunk-ITUC5WAV.js → chunk-T3DTYJTG.js} +1 -1
- package/dist/bundle/{chunk-OMKPALMX.js → chunk-TCCN5TON.js} +1 -1
- package/dist/bundle/{chunk-FLOOPXOT.js → chunk-V6OIIVH3.js} +10 -10
- package/dist/bundle/{chunk-ACLILULA.js → chunk-VDUGE6TH.js} +2 -2
- package/dist/bundle/{chunk-3YRE6DNM.js → chunk-VINSQR4X.js} +7 -7
- package/dist/bundle/{chunk-UEGABYXI.js → chunk-VQZCIDSO.js} +2 -2
- package/dist/bundle/{chunk-ERBEBORA.js → chunk-WBAA2X3E.js} +10 -10
- package/dist/bundle/{chunk-M7C4IGJ6.js → chunk-Z75WYAX6.js} +6 -6
- package/dist/bundle/{chunk-GLLLYACZ.js → chunk-Z7N4MGOQ.js} +5 -5
- package/dist/bundle/{chunk-YA2JPMYX.js → chunk-ZKLXSVIO.js} +1 -1
- package/dist/bundle/{chunk-DPSH46NO.js → chunk-ZZSHGCRC.js} +3 -3
- package/dist/bundle/{command-contract-Y3GIKCPB.js → command-contract-Y4ZQAJEC.js} +14 -13
- package/dist/bundle/{decode-WVIDLK4E.js → decode-BIOOL5E4.js} +2 -2
- package/dist/bundle/{dist-KGQWS3XL.js → dist-TJVIRLE5.js} +79 -17
- package/dist/bundle/{echarts-VMKACZBF.js → echarts-ECPGMKXO.js} +2 -2
- package/dist/bundle/{embed-EQINOOST.js → embed-F7JFSLHN.js} +3 -3
- package/dist/bundle/{embedder-LM52TDRN.js → embedder-U4G74HV3.js} +6 -6
- package/dist/bundle/{first-run-H4VXZAAF.js → first-run-JTYPUYQP.js} +5 -5
- package/dist/bundle/first-screen-W6RWTAU7.js +33 -0
- package/dist/bundle/{instructions-NLSME663.js → instructions-WNCGZ7OJ.js} +1 -1
- package/dist/bundle/mail.js +2 -2
- package/dist/bundle/{node-FGMSXLTA.js → node-UIRGGMGT.js} +2 -2
- package/dist/bundle/{node-sqlite-K3T3ZRBY.js → node-sqlite-4ZM7OPRF.js} +3 -3
- package/dist/bundle/{oauth-OJKJ6JLH.js → oauth-5RAJZPBW.js} +4 -4
- package/dist/bundle/{open-DCYIXHXS.js → open-7ORCHOAI.js} +2 -2
- package/dist/bundle/{openai-C4H4W57J.js → openai-XSJNXJA7.js} +10 -10
- package/dist/bundle/{process-MN4NSYGA.js → process-ZLO72UVZ.js} +1 -1
- package/dist/bundle/{program-ZZZOKWCX.js → program-PFVJDKM4.js} +1911 -1655
- package/dist/bundle/{prompt-ELEJUDAU.js → prompt-IDUPCUGM.js} +2 -2
- package/dist/bundle/{recognize-G2FVMI5M.js → recognize-OS3EZKIM.js} +1 -1
- package/dist/bundle/{remote-F4YVSEYM.js → remote-PF4LZR65.js} +4 -4
- package/dist/bundle/{rerank-7VM5R5N6.js → rerank-CQNZF3JI.js} +4 -4
- package/dist/bundle/{serve-A7NRFPRN.js → serve-Y2DDLGBT.js} +6 -6
- package/dist/bundle/server-I3IALQMC.js +65 -0
- package/dist/bundle/{server-7R2BEIRY.js → server-TVRT7YEY.js} +33 -32
- package/dist/bundle/{sqlite-runtime-4SKUB4EN.js → sqlite-runtime-5343C3OE.js} +3 -3
- package/dist/bundle/{state-S2FKK2XB.js → state-4GBTMPIV.js} +3 -3
- package/dist/bundle/{store-4HAARQVR.js → store-OLBLTQPT.js} +56 -13
- package/dist/bundle/{store-FLHO3UMA.js → store-QA6QJ5BB.js} +20 -11
- package/dist/bundle/store-maintenance-command-LB6CMGP4.js +55 -0
- package/dist/commands/login.d.ts.map +1 -1
- package/dist/commands/login.js +19 -4
- package/dist/commands/login.js.map +1 -1
- package/dist/commands/session-start.d.ts.map +1 -1
- package/dist/commands/session-start.js +86 -11
- package/dist/commands/session-start.js.map +1 -1
- package/dist/mail/imap/errors.d.ts.map +1 -1
- package/dist/mail/imap/errors.js +14 -1
- package/dist/mail/imap/errors.js.map +1 -1
- package/dist/providers.d.ts +7 -0
- package/dist/providers.d.ts.map +1 -1
- package/dist/providers.js +5 -0
- package/dist/providers.js.map +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +3 -0
- package/dist/reasons.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/bundle/chunk-KVSC657S.js +0 -656
- package/dist/bundle/first-screen-ZP74TJLK.js +0 -32
- package/dist/bundle/server-DFJA2HBO.js +0 -64
- package/dist/bundle/store-maintenance-command-BINJIQ6F.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.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/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)
|
|
@@ -78,7 +78,7 @@ var parseMeetingReference = /* @__PURE__ */ __name((text5) => {
|
|
|
78
78
|
}, "parseMeetingReference");
|
|
79
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.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/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"];
|
|
@@ -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.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/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.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/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");
|
|
@@ -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.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/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,7 +1321,7 @@ 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.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/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");
|
|
@@ -1340,7 +1340,11 @@ var ENTRY_METADATA_KEYS = [
|
|
|
1340
1340
|
"guestsCanSeeOtherGuests",
|
|
1341
1341
|
"hangoutLink",
|
|
1342
1342
|
"locked",
|
|
1343
|
-
"privateCopy"
|
|
1343
|
+
"privateCopy",
|
|
1344
|
+
// A phone call's, from a records import: the entry's other columns have no place for them.
|
|
1345
|
+
"callDirection",
|
|
1346
|
+
"callSeconds",
|
|
1347
|
+
"callNumber"
|
|
1344
1348
|
];
|
|
1345
1349
|
var entryMetadata = /* @__PURE__ */ __name((metadata) => {
|
|
1346
1350
|
const kept = {};
|
|
@@ -1354,7 +1358,7 @@ var entryMetadata = /* @__PURE__ */ __name((metadata) => {
|
|
|
1354
1358
|
return kept;
|
|
1355
1359
|
}, "entryMetadata");
|
|
1356
1360
|
|
|
1357
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1361
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/meetings/cue-fingerprint.js
|
|
1358
1362
|
import { createHash } from "node:crypto";
|
|
1359
1363
|
var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256").update(JSON.stringify({
|
|
1360
1364
|
reference: cue2.reference,
|
|
@@ -1368,7 +1372,7 @@ var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256"
|
|
|
1368
1372
|
text: cue2.text
|
|
1369
1373
|
})).digest("hex"), "meetingCueFingerprint");
|
|
1370
1374
|
|
|
1371
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1375
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/meetings/event-query.js
|
|
1372
1376
|
var EVENT_QUERY = defineQuery({
|
|
1373
1377
|
entity: "event",
|
|
1374
1378
|
backend: "sql",
|
|
@@ -1384,7 +1388,7 @@ var EVENT_QUERY = defineQuery({
|
|
|
1384
1388
|
]
|
|
1385
1389
|
});
|
|
1386
1390
|
|
|
1387
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1391
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/meetings/event-store.js
|
|
1388
1392
|
var UNTIL = /(?:^|;)UNTIL=(\d{4})(\d{2})(\d{2})(?:T(\d{2})(\d{2})(\d{2})Z?)?(?:;|$)/iu;
|
|
1389
1393
|
var seriesEnd = /* @__PURE__ */ __name((entry) => {
|
|
1390
1394
|
if (entry.recurrenceEndsAt !== null)
|
|
@@ -1407,7 +1411,7 @@ var entryInWindow = /* @__PURE__ */ __name((entry, window) => {
|
|
|
1407
1411
|
return Math.max(entry.endsAt ?? start, start + 1) > window.from;
|
|
1408
1412
|
}, "entryInWindow");
|
|
1409
1413
|
|
|
1410
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1414
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/meetings/events.js
|
|
1411
1415
|
var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now()) => {
|
|
1412
1416
|
const current = await store.meeting(details.meeting.id);
|
|
1413
1417
|
if (!current)
|
|
@@ -1450,7 +1454,7 @@ var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now())
|
|
|
1450
1454
|
return (await store.events()).find((e) => e.id === linked?.meeting.eventId) ?? null;
|
|
1451
1455
|
}, "linkEvent");
|
|
1452
1456
|
|
|
1453
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1457
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/meetings/participant-search.js
|
|
1454
1458
|
var normalizeMeetingParticipantQuery = /* @__PURE__ */ __name((text5) => text5.normalize("NFKC").toLowerCase(), "normalizeMeetingParticipantQuery");
|
|
1455
1459
|
var validateMeetingParticipantQuery = /* @__PURE__ */ __name((query) => {
|
|
1456
1460
|
if (typeof query !== "string" || !query.trim() || query.length > 500 || query.includes("\0"))
|
|
@@ -1474,7 +1478,7 @@ var validateMeetingParticipantSearch = /* @__PURE__ */ __name((query, input) =>
|
|
|
1474
1478
|
};
|
|
1475
1479
|
}, "validateMeetingParticipantSearch");
|
|
1476
1480
|
|
|
1477
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1481
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/meetings/reads.js
|
|
1478
1482
|
var MeetingError = class extends CliError {
|
|
1479
1483
|
static {
|
|
1480
1484
|
__name(this, "MeetingError");
|
|
@@ -1606,7 +1610,7 @@ var meetingSummaryAnswer = /* @__PURE__ */ __name(async (store, id3, accountId)
|
|
|
1606
1610
|
return wholeList(details.summaries.map((one) => meetingSummaryItem(details.meeting.accountId, one)));
|
|
1607
1611
|
}, "meetingSummaryAnswer");
|
|
1608
1612
|
|
|
1609
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1613
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/meetings/export.js
|
|
1610
1614
|
var timestamp = /* @__PURE__ */ __name((milliseconds) => {
|
|
1611
1615
|
if (!Number.isSafeInteger(milliseconds) || milliseconds < 0)
|
|
1612
1616
|
throw new MeetingError("validation_error", "transcript times must be nonnegative integer milliseconds");
|
|
@@ -1702,10 +1706,10 @@ var exportMeeting = /* @__PURE__ */ __name(async (store, id3, options) => {
|
|
|
1702
1706
|
};
|
|
1703
1707
|
}, "exportMeeting");
|
|
1704
1708
|
|
|
1705
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1709
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
|
|
1706
1710
|
import { createHash as createHash2 } from "node:crypto";
|
|
1707
1711
|
|
|
1708
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1712
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/meetings/timestamp.js
|
|
1709
1713
|
var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
|
|
1710
1714
|
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
1715
|
throw new CliError("validation_error", `${name} must be an ISO timestamp with a timezone, such as 2026-11-09T09:00:00Z`);
|
|
@@ -1716,7 +1720,7 @@ var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
|
|
|
1716
1720
|
return new Date(value).toISOString();
|
|
1717
1721
|
}, "meetingTimestamp");
|
|
1718
1722
|
|
|
1719
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1723
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
|
|
1720
1724
|
var TASK_TYPES = ["bug", "feature", "chore"];
|
|
1721
1725
|
var invalid3 = /* @__PURE__ */ __name((message) => {
|
|
1722
1726
|
throw new CliError("validation_error", message);
|
|
@@ -1889,7 +1893,7 @@ var validateBatch = /* @__PURE__ */ __name((input, rules, most, one) => {
|
|
|
1889
1893
|
var validateFindings = /* @__PURE__ */ __name((input, rules) => validateBatch(input, rules, 16, (finding, ids2) => validateFinding(finding, rules, ids2)), "validateFindings");
|
|
1890
1894
|
var findingFingerprint = /* @__PURE__ */ __name(({ id: _id, ...finding }) => findingHash(finding), "findingFingerprint");
|
|
1891
1895
|
|
|
1892
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1896
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/meetings/findings.js
|
|
1893
1897
|
var MEETING_FINDINGS_KIND = "meeting_findings";
|
|
1894
1898
|
var cue = /* @__PURE__ */ __name((raw) => {
|
|
1895
1899
|
const reference2 = canonicalMeetingReference(raw);
|
|
@@ -1900,7 +1904,7 @@ var cue = /* @__PURE__ */ __name((raw) => {
|
|
|
1900
1904
|
var validateMeetingFindings = /* @__PURE__ */ __name((input) => validateFindings(input, { plural: "meeting findings", singular: "meeting finding", cited: "cue", reference: cue }), "validateMeetingFindings");
|
|
1901
1905
|
var meetingFindingFingerprint = findingFingerprint;
|
|
1902
1906
|
|
|
1903
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1907
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/meetings/hit-query.js
|
|
1904
1908
|
var context = {
|
|
1905
1909
|
command: "search meetings",
|
|
1906
1910
|
guide: "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md#\u0432\u0441\u0442\u0440\u0435\u0447\u0438"
|
|
@@ -1961,9 +1965,10 @@ var MEETING_FIELDS = defineQuery({
|
|
|
1961
1965
|
}))
|
|
1962
1966
|
]
|
|
1963
1967
|
});
|
|
1968
|
+
var MEETING_FIELD_NAMES = new Set(MEETING_FIELDS.fields.map(({ name }) => name));
|
|
1964
1969
|
var parseMeetingQuery = /* @__PURE__ */ __name((query) => validateQuery(parseLucene(query, { defaultField: "text", proximity: true, ...context }), MEETING_HIT_QUERY, context), "parseMeetingQuery");
|
|
1965
1970
|
|
|
1966
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1971
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/meetings/language.js
|
|
1967
1972
|
var LATIN_WORDS = {
|
|
1968
1973
|
en: ["the", "and", "is", "that", "you", "this", "what", "have", "with", "are"],
|
|
1969
1974
|
es: ["el", "los", "las", "por", "pero", "para", "est\xE1", "muy", "tambi\xE9n", "hay"],
|
|
@@ -2012,7 +2017,7 @@ var transcriptLanguage = /* @__PURE__ */ __name((texts) => {
|
|
|
2012
2017
|
return null;
|
|
2013
2018
|
}, "transcriptLanguage");
|
|
2014
2019
|
|
|
2015
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2020
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/meetings/ingest.js
|
|
2016
2021
|
var contentHash = /* @__PURE__ */ __name(async (text5) => {
|
|
2017
2022
|
const bytes = await crypto.subtle.digest("SHA-256", new TextEncoder().encode(text5));
|
|
2018
2023
|
return Array.from(new Uint8Array(bytes), (byte) => byte.toString(16).padStart(2, "0")).join("");
|
|
@@ -2049,7 +2054,7 @@ var timestamp2 = /* @__PURE__ */ __name((value) => {
|
|
|
2049
2054
|
return time;
|
|
2050
2055
|
}, "timestamp");
|
|
2051
2056
|
|
|
2052
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2057
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/meetings/transcript-text.js
|
|
2053
2058
|
var TranscriptTextError = class extends Error {
|
|
2054
2059
|
static {
|
|
2055
2060
|
__name(this, "TranscriptTextError");
|
|
@@ -2104,7 +2109,7 @@ var parseTranscriptText = /* @__PURE__ */ __name((input) => {
|
|
|
2104
2109
|
return { header, lines };
|
|
2105
2110
|
}, "parseTranscriptText");
|
|
2106
2111
|
|
|
2107
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2112
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/meetings/vtt.js
|
|
2108
2113
|
var VttError = class extends Error {
|
|
2109
2114
|
static {
|
|
2110
2115
|
__name(this, "VttError");
|
|
@@ -2156,7 +2161,7 @@ var parseVtt = /* @__PURE__ */ __name((input) => {
|
|
|
2156
2161
|
return cues;
|
|
2157
2162
|
}, "parseVtt");
|
|
2158
2163
|
|
|
2159
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2164
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/meetings/import.js
|
|
2160
2165
|
var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now()) => {
|
|
2161
2166
|
const report = { meetings: 0, participants: 0, transcriptRows: 0, summaries: 0, warnings: [] };
|
|
2162
2167
|
for (const file of files) {
|
|
@@ -2189,10 +2194,10 @@ var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now())
|
|
|
2189
2194
|
return report;
|
|
2190
2195
|
}, "importFiles");
|
|
2191
2196
|
|
|
2192
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2197
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/meetings/links.js
|
|
2193
2198
|
var CHAT_MESSAGES_READ = 1e5;
|
|
2194
2199
|
|
|
2195
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2200
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/meetings/meeting-management.js
|
|
2196
2201
|
var nonempty = /* @__PURE__ */ __name((value, name) => {
|
|
2197
2202
|
if (typeof value !== "string" || !value.trim())
|
|
2198
2203
|
throw new CliError("validation_error", `${name} must be nonempty`);
|
|
@@ -2243,7 +2248,7 @@ var validateMeetingChange = /* @__PURE__ */ __name((change, create) => {
|
|
|
2243
2248
|
return Object.freeze(result);
|
|
2244
2249
|
}, "validateMeetingChange");
|
|
2245
2250
|
|
|
2246
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2251
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/meetings/passage.js
|
|
2247
2252
|
var meetingHitContextLimits = /* @__PURE__ */ __name((options = {}) => {
|
|
2248
2253
|
const { before = 3, after = 3, bytes = 65536, max_read_bytes = 4194304, expected_fingerprint } = options;
|
|
2249
2254
|
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)))
|
|
@@ -2256,7 +2261,7 @@ var validateMeetingPassage = /* @__PURE__ */ __name((reference2, options) => {
|
|
|
2256
2261
|
throw new CliError("validation_error", "choose a cue reference and json, text or markdown output");
|
|
2257
2262
|
}, "validateMeetingPassage");
|
|
2258
2263
|
|
|
2259
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2264
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/meetings/preparation-context.js
|
|
2260
2265
|
var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
|
|
2261
2266
|
if (!original || typeof original !== "object" || Array.isArray(original))
|
|
2262
2267
|
throw new CliError("validation_error", "meeting preparation context is required");
|
|
@@ -2281,7 +2286,7 @@ var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
|
|
|
2281
2286
|
return { ...input, limit, maxReadBytes };
|
|
2282
2287
|
}, "validateMeetingPreparationContext");
|
|
2283
2288
|
|
|
2284
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2289
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-answer.js
|
|
2285
2290
|
var count3 = pipe(number(), integer(), minValue(0));
|
|
2286
2291
|
var id = pipe(string(), minLength(1));
|
|
2287
2292
|
var meetingProjectEvidence = strictObject({
|
|
@@ -2402,7 +2407,7 @@ var meetingProjectEvidenceAnswer = /* @__PURE__ */ __name((page, prepared, comma
|
|
|
2402
2407
|
};
|
|
2403
2408
|
}, "meetingProjectEvidenceAnswer");
|
|
2404
2409
|
|
|
2405
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2410
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/meetings/search-validation.js
|
|
2406
2411
|
var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
|
|
2407
2412
|
const integer3 = /* @__PURE__ */ __name((value, low, high) => Number.isSafeInteger(value) && value >= low && value <= high, "integer");
|
|
2408
2413
|
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) || [
|
|
@@ -2422,7 +2427,7 @@ var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
|
|
|
2422
2427
|
throw new CliError("validation_error", "choose one project selector and one tag or topic selector");
|
|
2423
2428
|
}, "validateMeetingHitSearch");
|
|
2424
2429
|
|
|
2425
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2430
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-query.js
|
|
2426
2431
|
var ids = {
|
|
2427
2432
|
meeting_id: "meetingId",
|
|
2428
2433
|
identity_id: "participantIdentityId",
|
|
@@ -2513,7 +2518,7 @@ var prepareMeetingProjectEvidence = /* @__PURE__ */ __name((project, request = {
|
|
|
2513
2518
|
return { project: project.trim(), options, query: frozen.join(" AND ") };
|
|
2514
2519
|
}, "prepareMeetingProjectEvidence");
|
|
2515
2520
|
|
|
2516
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2521
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/meetings/project-evidence.js
|
|
2517
2522
|
var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project, request = {}, now = Date.now()) => {
|
|
2518
2523
|
const prepared = prepareMeetingProjectEvidence(project, request, now);
|
|
2519
2524
|
const page = await read(prepared.project, prepared.options);
|
|
@@ -2521,7 +2526,7 @@ var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project, re
|
|
|
2521
2526
|
return meetingProjectEvidenceAnswer(page, prepared);
|
|
2522
2527
|
}, "readMeetingProjectEvidence");
|
|
2523
2528
|
|
|
2524
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2529
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/meetings/pull.js
|
|
2525
2530
|
var participantInput = /* @__PURE__ */ __name((p, provider, occurrenceId2, position, accountId) => {
|
|
2526
2531
|
const { identityExternalId, ...fields } = p;
|
|
2527
2532
|
const externalId = identityExternalId ?? (p.email ? `email:${p.email.toLowerCase()}` : p.externalId) ?? `name:${p.displayName ?? "unknown"}@${accountId}/${occurrenceId2}:${position}`;
|
|
@@ -2536,24 +2541,47 @@ var participantInput = /* @__PURE__ */ __name((p, provider, occurrenceId2, posit
|
|
|
2536
2541
|
}
|
|
2537
2542
|
};
|
|
2538
2543
|
}, "participantInput");
|
|
2544
|
+
var startOf = /* @__PURE__ */ __name((m) => {
|
|
2545
|
+
const at = Date.parse(m.occurrence.startedAt);
|
|
2546
|
+
return Number.isFinite(at) ? at : Number.POSITIVE_INFINITY;
|
|
2547
|
+
}, "startOf");
|
|
2539
2548
|
var pull = /* @__PURE__ */ __name(async (source, store, options) => {
|
|
2540
2549
|
const now = options.now ?? Date.now();
|
|
2541
|
-
const
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2550
|
+
for (const [name, ms] of [
|
|
2551
|
+
["lookbackMs", options.lookbackMs ?? 0],
|
|
2552
|
+
["overlapMs", source.overlapMs ?? 0]
|
|
2553
|
+
])
|
|
2554
|
+
if (!Number.isSafeInteger(ms) || ms < 0 || ms > 31 * 864e5)
|
|
2555
|
+
throw new Error(`${name} must be an integer from 0 through 31 days`);
|
|
2556
|
+
const lookbackMs = Math.max(options.lookbackMs ?? 0, source.overlapMs ?? 0);
|
|
2557
|
+
const cursor = options.rescan ? void 0 : await store.cursor(options.accountId);
|
|
2558
|
+
const since = options.since ?? cursor ?? new Date(now - 30 * 864e5).toISOString();
|
|
2545
2559
|
timestamp2(since);
|
|
2546
2560
|
const report = { meetings: 0, participants: 0, transcriptRows: 0, summaries: 0, warnings: [] };
|
|
2547
2561
|
let failed = false;
|
|
2562
|
+
let firstFailed;
|
|
2548
2563
|
const from = timestamp2(since) - lookbackMs;
|
|
2549
|
-
const meetings = await source.meetings(lookbackMs === 0 ? since : new Date(from).toISOString());
|
|
2550
|
-
for (const m of meetings) {
|
|
2564
|
+
const meetings = (await source.meetings(lookbackMs === 0 ? since : new Date(from).toISOString())).toSorted((a, b) => startOf(a) - startOf(b));
|
|
2565
|
+
for (const [index, m] of meetings.entries()) {
|
|
2566
|
+
const stop = options.budget?.take() ?? null;
|
|
2567
|
+
if (stop) {
|
|
2568
|
+
report.stopped = stop;
|
|
2569
|
+
report.remaining = meetings.length - index;
|
|
2570
|
+
const reached = Math.min(startOf(m), firstFailed ?? Number.POSITIVE_INFINITY);
|
|
2571
|
+
if (Number.isFinite(reached) && reached > timestamp2(since))
|
|
2572
|
+
await store.setCursor(options.accountId, new Date(reached).toISOString(), now);
|
|
2573
|
+
return report;
|
|
2574
|
+
}
|
|
2551
2575
|
const id3 = m.occurrence.id;
|
|
2576
|
+
const failedHere = /* @__PURE__ */ __name(() => {
|
|
2577
|
+
failed = true;
|
|
2578
|
+
firstFailed ??= startOf(m);
|
|
2579
|
+
}, "failedHere");
|
|
2552
2580
|
const read = /* @__PURE__ */ __name(async (part, call) => {
|
|
2553
2581
|
try {
|
|
2554
2582
|
return await call();
|
|
2555
2583
|
} catch (error) {
|
|
2556
|
-
|
|
2584
|
+
failedHere();
|
|
2557
2585
|
const message = error instanceof Error ? error.message : "could not be read";
|
|
2558
2586
|
report.warnings.push({ externalId: id3, message: `${part}: ${message}` });
|
|
2559
2587
|
return void 0;
|
|
@@ -2651,7 +2679,7 @@ unlinked`, format)],
|
|
|
2651
2679
|
report.transcriptRows += lines?.length ?? 0;
|
|
2652
2680
|
report.summaries += summary ? 1 : 0;
|
|
2653
2681
|
} catch (error) {
|
|
2654
|
-
|
|
2682
|
+
failedHere();
|
|
2655
2683
|
report.warnings.push({ externalId: id3, message: error instanceof Error ? error.message : "Meeting pull failed" });
|
|
2656
2684
|
}
|
|
2657
2685
|
}
|
|
@@ -2660,7 +2688,7 @@ unlinked`, format)],
|
|
|
2660
2688
|
return report;
|
|
2661
2689
|
}, "pull");
|
|
2662
2690
|
|
|
2663
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2691
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/meetings/read-answers.js
|
|
2664
2692
|
var text3 = string();
|
|
2665
2693
|
var count4 = pipe(number(), integer(), minValue(0));
|
|
2666
2694
|
var id2 = pipe(number(), integer(), minValue(1));
|
|
@@ -2854,10 +2882,10 @@ var eventItem = /* @__PURE__ */ __name((one) => ({
|
|
|
2854
2882
|
updated_at: new Date(one.updatedAt).toISOString()
|
|
2855
2883
|
}), "eventItem");
|
|
2856
2884
|
|
|
2857
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2885
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/meetings/recording-transfer.js
|
|
2858
2886
|
var strongRecordingValidator = /* @__PURE__ */ __name((value) => typeof value === "string" && value.length <= 1024 && /^"[\x21\x23-\x7e\x80-\xff]*"$/.test(value), "strongRecordingValidator");
|
|
2859
2887
|
|
|
2860
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2888
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/meetings/related-history.js
|
|
2861
2889
|
var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
|
|
2862
2890
|
if (!original || typeof original !== "object" || Array.isArray(original))
|
|
2863
2891
|
throw new CliError("validation_error", "related history request is required");
|
|
@@ -2887,7 +2915,7 @@ var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
|
|
|
2887
2915
|
return { ...input, anchorIds: [...new Set(input.anchorIds)], limit, maxReadBytes };
|
|
2888
2916
|
}, "validateMeetingRelatedHistory");
|
|
2889
2917
|
|
|
2890
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2918
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/meetings/result-items.js
|
|
2891
2919
|
var text4 = string();
|
|
2892
2920
|
var identifier = pipe(text4, minLength(1));
|
|
2893
2921
|
var nullableText = nullable(text4);
|
|
@@ -3020,14 +3048,14 @@ var MEETING_RESULT_ENTITIES = {
|
|
|
3020
3048
|
meeting_repair: repair
|
|
3021
3049
|
};
|
|
3022
3050
|
|
|
3023
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3051
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/meetings/review.js
|
|
3024
3052
|
var REVIEW_LIMIT = { default: 50, most: 200 };
|
|
3025
3053
|
|
|
3026
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3054
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/meetings/save-hints.js
|
|
3027
3055
|
var SAVE_HELP = `Worth keeping \u2014 a decision, a promise, a preference? Record it with \`memo facts add\` or
|
|
3028
3056
|
\`memo memories add\`, citing the msg: locator or meeting: reference as --evidence.`;
|
|
3029
3057
|
|
|
3030
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3058
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/meetings/series-history.js
|
|
3031
3059
|
var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
|
|
3032
3060
|
input.signal?.throwIfAborted();
|
|
3033
3061
|
if (!Number.isSafeInteger(input.accountId) || input.accountId <= 0)
|
|
@@ -3048,10 +3076,10 @@ var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
|
|
|
3048
3076
|
return { ...input, limit, maxReadBytes };
|
|
3049
3077
|
}, "validateMeetingSeriesHistory");
|
|
3050
3078
|
|
|
3051
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3079
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/meetings/upcoming-validation.js
|
|
3052
3080
|
var occurrenceId = /* @__PURE__ */ __name((value) => typeof value === "string" && value.trim().length > 0 && value.length <= 1e3 && !/[\0\r\n]/.test(value), "occurrenceId");
|
|
3053
3081
|
|
|
3054
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3082
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/meetings/series-inventory-validation.js
|
|
3055
3083
|
function invalid4(field, response = false) {
|
|
3056
3084
|
throw new CliError(response ? "invalid_response" : "validation_error", `invalid meeting inventory ${field}`);
|
|
3057
3085
|
}
|
|
@@ -3080,7 +3108,7 @@ var validateMeetingSeriesInventoryCursor = /* @__PURE__ */ __name((value) => {
|
|
|
3080
3108
|
cursorDetails(value);
|
|
3081
3109
|
}, "validateMeetingSeriesInventoryCursor");
|
|
3082
3110
|
|
|
3083
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3111
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/meetings/stats.js
|
|
3084
3112
|
var MEETING_COUNTS_GROUPINGS = ["day", "week", "series"];
|
|
3085
3113
|
var zoneOf = /* @__PURE__ */ __name((timeZone) => {
|
|
3086
3114
|
const zone = timeZone ?? "UTC";
|
|
@@ -3215,7 +3243,7 @@ var aggregateMeetingStats = /* @__PURE__ */ __name((rows, timeZone) => {
|
|
|
3215
3243
|
};
|
|
3216
3244
|
}, "aggregateMeetingStats");
|
|
3217
3245
|
|
|
3218
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3246
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/domain/money.js
|
|
3219
3247
|
var CURRENCY_SCALES = {
|
|
3220
3248
|
AED: 2,
|
|
3221
3249
|
AMD: 2,
|
|
@@ -3263,7 +3291,10 @@ var parseDecimal = /* @__PURE__ */ __name((text5, scale) => {
|
|
|
3263
3291
|
return BigInt(`${match[1]}${(match[2] ?? "").padEnd(scale, "0")}`);
|
|
3264
3292
|
}, "parseDecimal");
|
|
3265
3293
|
var formatDecimal = /* @__PURE__ */ __name((units, scale) => {
|
|
3266
|
-
const
|
|
3294
|
+
const value = BigInt(units);
|
|
3295
|
+
if (value < 0n)
|
|
3296
|
+
return `-${formatDecimal(-value, scale)}`;
|
|
3297
|
+
const digits = value.toString().padStart(scale + 1, "0");
|
|
3267
3298
|
return scale === 0 ? digits : `${digits.slice(0, -scale)}.${digits.slice(-scale)}`;
|
|
3268
3299
|
}, "formatDecimal");
|
|
3269
3300
|
var groupDigits = /* @__PURE__ */ __name((decimal) => {
|
|
@@ -3285,6 +3316,12 @@ var minorUnits = /* @__PURE__ */ __name((amount, currency, what = "an amount") =
|
|
|
3285
3316
|
return refuse(`${what} is a decimal string with at most ${scale} decimal${scale === 1 ? "" : "s"} for ${currency}, such as "${formatDecimal(5e3 * 10 ** scale, scale)}"`, "money.amount");
|
|
3286
3317
|
return Number(units);
|
|
3287
3318
|
}, "minorUnits");
|
|
3319
|
+
var signedMinorUnits = /* @__PURE__ */ __name((amount, currency, what = "an amount") => {
|
|
3320
|
+
if (typeof amount !== "string" || !amount.trim().startsWith("-"))
|
|
3321
|
+
return minorUnits(amount, currency, what);
|
|
3322
|
+
const units = minorUnits(amount.trim().slice(1), currency, what);
|
|
3323
|
+
return units === 0 ? 0 : -units;
|
|
3324
|
+
}, "signedMinorUnits");
|
|
3288
3325
|
var moneyOf = /* @__PURE__ */ __name((units, currency) => ({
|
|
3289
3326
|
amount: formatDecimal(units, scaleOf(currency)),
|
|
3290
3327
|
currency
|
|
@@ -3300,7 +3337,7 @@ var quantityOf = /* @__PURE__ */ __name((text5) => {
|
|
|
3300
3337
|
}, "quantityOf");
|
|
3301
3338
|
var lineUnits = /* @__PURE__ */ __name((thousandths, unitPrice) => Number((thousandths * BigInt(unitPrice) + 500n) / 1000n), "lineUnits");
|
|
3302
3339
|
|
|
3303
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3340
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/domain/finance.js
|
|
3304
3341
|
var INVOICE_DIRECTIONS = ["receivable", "payable"];
|
|
3305
3342
|
var INVOICE_STATUSES = ["draft", "issued", "partly_paid", "paid", "void"];
|
|
3306
3343
|
var MONEY_DIRECTIONS = ["in", "out"];
|
|
@@ -3329,7 +3366,7 @@ var paymentLine = /* @__PURE__ */ __name((payment) => {
|
|
|
3329
3366
|
var invoiceTitle = /* @__PURE__ */ __name((invoice) => `Invoice ${invoiceLine(invoice)}`, "invoiceTitle");
|
|
3330
3367
|
var paymentEntryTitle = /* @__PURE__ */ __name((payment) => `Payment \xB7 ${paymentLine(payment)}`, "paymentEntryTitle");
|
|
3331
3368
|
|
|
3332
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3369
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/domain/orders.js
|
|
3333
3370
|
var ORDER_STATUSES = ["placed", "shipped", "delivered", "cancelled", "returned"];
|
|
3334
3371
|
var ORDER_PURPOSES = ["personal", "business", "client", "other"];
|
|
3335
3372
|
var orderLine = /* @__PURE__ */ __name((order) => {
|
|
@@ -3339,7 +3376,93 @@ var orderLine = /* @__PURE__ */ __name((order) => {
|
|
|
3339
3376
|
}, "orderLine");
|
|
3340
3377
|
var orderTitle = /* @__PURE__ */ __name((order) => `Order ${orderLine(order)}`, "orderTitle");
|
|
3341
3378
|
|
|
3342
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3379
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/domain/deals.js
|
|
3380
|
+
var DEAL_KINDS = ["deal", "lead"];
|
|
3381
|
+
var DEAL_STATUSES = ["open", "won", "lost"];
|
|
3382
|
+
var STAGE_OUTCOMES = DEAL_STATUSES;
|
|
3383
|
+
var DEAL_ROLES = ["owner", "contact", "decision-maker", "influencer"];
|
|
3384
|
+
var dealLine = /* @__PURE__ */ __name((deal) => {
|
|
3385
|
+
const money = deal.amount === null || deal.currency === null ? "" : `, ${moneyLabel(deal.amount, deal.currency)}`;
|
|
3386
|
+
return `${deal.title} \xB7 ${deal.stage}${money}${deal.status === "open" ? "" : ` (${deal.status})`}`;
|
|
3387
|
+
}, "dealLine");
|
|
3388
|
+
|
|
3389
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/domain/relations.js
|
|
3390
|
+
var ORGANIZATION_ROLES = [
|
|
3391
|
+
"employee",
|
|
3392
|
+
"contractor",
|
|
3393
|
+
"founder",
|
|
3394
|
+
"owner",
|
|
3395
|
+
"manager",
|
|
3396
|
+
"adviser",
|
|
3397
|
+
"contact"
|
|
3398
|
+
];
|
|
3399
|
+
var PROJECT_ROLES = ["owner", "manager", "contributor", "client-contact", "approver"];
|
|
3400
|
+
var RELATIONS = {
|
|
3401
|
+
"member-of": {
|
|
3402
|
+
from: ["person", "organization", "project", "chat", "email_thread"],
|
|
3403
|
+
to: ["organization", "project"],
|
|
3404
|
+
roles: { to: { organization: ORGANIZATION_ROLES, project: PROJECT_ROLES } }
|
|
3405
|
+
},
|
|
3406
|
+
"reports-to": { from: ["person"], to: ["person"], inverse: "manages" },
|
|
3407
|
+
"customer-of": { from: ["person", "organization"], to: ["organization"], inverse: "supplier of" },
|
|
3408
|
+
"partner-of": { from: ["organization"], to: ["organization"], symmetric: true },
|
|
3409
|
+
"related-to": {
|
|
3410
|
+
from: ["person", "organization", "project", "task", "deal", "lead"],
|
|
3411
|
+
to: ["person", "organization", "project", "task"],
|
|
3412
|
+
roles: { from: { deal: DEAL_ROLES, lead: DEAL_ROLES } }
|
|
3413
|
+
}
|
|
3414
|
+
};
|
|
3415
|
+
var RELATION_KINDS = Object.keys(RELATIONS);
|
|
3416
|
+
var specOf = /* @__PURE__ */ __name((kind) => Object.hasOwn(RELATIONS, kind) ? RELATIONS[kind] : void 0, "specOf");
|
|
3417
|
+
var isRelationKind = /* @__PURE__ */ __name((kind) => specOf(kind) !== void 0, "isRelationKind");
|
|
3418
|
+
var memberOnly = /* @__PURE__ */ __name((type) => type === "chat" || type === "email_thread", "memberOnly");
|
|
3419
|
+
var checkEnds = /* @__PURE__ */ __name((kind, from, to) => {
|
|
3420
|
+
const spec = specOf(kind);
|
|
3421
|
+
if (!spec)
|
|
3422
|
+
throw new CliError("validation_error", `a relationship's kind is one of ${RELATION_KINDS.join(", ")}`);
|
|
3423
|
+
if (memberOnly(from) && (kind !== "member-of" || to !== "project"))
|
|
3424
|
+
throw new CliError("validation_error", `a ${from === "chat" ? "chat" : "mail thread"} is related only as member-of a project`);
|
|
3425
|
+
if (!spec.from.includes(from) || !spec.to.includes(to))
|
|
3426
|
+
throw new CliError("validation_error", `${kind} joins ${spec.from.join(", ")} to ${spec.to.join(", ")}, not ${from} to ${to}`);
|
|
3427
|
+
return spec;
|
|
3428
|
+
}, "checkEnds");
|
|
3429
|
+
var rolesOf = /* @__PURE__ */ __name((kind, from, to) => {
|
|
3430
|
+
const spec = specOf(kind);
|
|
3431
|
+
if (kind === "member-of" && from !== "person")
|
|
3432
|
+
return void 0;
|
|
3433
|
+
return spec?.roles?.from?.[from] ?? spec?.roles?.to?.[to];
|
|
3434
|
+
}, "rolesOf");
|
|
3435
|
+
var ROLE_LISTS = { organization: ORGANIZATION_ROLES, project: PROJECT_ROLES, deal: DEAL_ROLES };
|
|
3436
|
+
var roleListOf = /* @__PURE__ */ __name((kind, from, to) => {
|
|
3437
|
+
const roles = rolesOf(kind, from, to);
|
|
3438
|
+
return Object.keys(ROLE_LISTS).find((list) => ROLE_LISTS[list] === roles);
|
|
3439
|
+
}, "roleListOf");
|
|
3440
|
+
var checkRole = /* @__PURE__ */ __name((kind, from, to, role, extra = []) => {
|
|
3441
|
+
const roles = rolesOf(kind, from, to)?.concat(extra);
|
|
3442
|
+
if (roles && !roles.includes(role))
|
|
3443
|
+
throw new CliError("validation_error", `a ${from}'s role on ${kind} ${to} is one of ${roles.join(", ")}`, {
|
|
3444
|
+
reason: "relationship.role-unknown"
|
|
3445
|
+
});
|
|
3446
|
+
return role;
|
|
3447
|
+
}, "checkRole");
|
|
3448
|
+
var isSymmetric = /* @__PURE__ */ __name((kind) => specOf(kind)?.symmetric === true, "isSymmetric");
|
|
3449
|
+
var inverseOf = /* @__PURE__ */ __name((kind) => specOf(kind)?.symmetric ? kind : specOf(kind)?.inverse ?? null, "inverseOf");
|
|
3450
|
+
var STANDINGS = ["confirmed", "reported", "proposed", "ended"];
|
|
3451
|
+
var standingOf = /* @__PURE__ */ __name((link, now) => {
|
|
3452
|
+
if (link.endsAt != null && link.endsAt <= now)
|
|
3453
|
+
return "ended";
|
|
3454
|
+
if (link.confirmed)
|
|
3455
|
+
return "confirmed";
|
|
3456
|
+
if (link.deletedAt != null)
|
|
3457
|
+
return "ended";
|
|
3458
|
+
return link.accountId != null ? "reported" : "proposed";
|
|
3459
|
+
}, "standingOf");
|
|
3460
|
+
var isUsable = /* @__PURE__ */ __name((standing) => standing === "confirmed" || standing === "reported", "isUsable");
|
|
3461
|
+
var usableLink = /* @__PURE__ */ __name((link, now) => isUsable(standingOf(link, now)), "usableLink");
|
|
3462
|
+
var notOverriddenSql = /* @__PURE__ */ __name((alias) => `NOT EXISTS (SELECT 1 FROM links override WHERE override.kind = ${alias}.kind AND override.from_type = ${alias}.from_type AND override.from_id = ${alias}.from_id AND override.to_type = ${alias}.to_type AND override.to_id = ${alias}.to_id AND json_extract(override.metadata, '$.overrides') = ${alias}.id)`, "notOverriddenSql");
|
|
3463
|
+
var usableLinkSql = /* @__PURE__ */ __name((alias, now) => `(${alias}.confirmed = 1 OR (${alias}.account_id IS NOT NULL AND ${alias}.deleted_at IS NULL))` + (now === void 0 ? "" : ` AND (${alias}.ends_at IS NULL OR ${alias}.ends_at > ${Math.trunc(now)})`), "usableLinkSql");
|
|
3464
|
+
|
|
3465
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/domain/tags.js
|
|
3343
3466
|
var TAG_TYPES = ["chat", "contact", "message", "task"];
|
|
3344
3467
|
var TAG = /^[a-z0-9-]{1,32}$/;
|
|
3345
3468
|
var tagOf = /* @__PURE__ */ __name((value) => {
|
|
@@ -3424,6 +3547,7 @@ export {
|
|
|
3424
3547
|
MEETING_FINDINGS_KIND,
|
|
3425
3548
|
validateMeetingFindings,
|
|
3426
3549
|
meetingFindingFingerprint,
|
|
3550
|
+
MEETING_FIELD_NAMES,
|
|
3427
3551
|
parseMeetingQuery,
|
|
3428
3552
|
transcriptLanguage,
|
|
3429
3553
|
importFiles,
|
|
@@ -3462,6 +3586,7 @@ export {
|
|
|
3462
3586
|
currencyOf,
|
|
3463
3587
|
scaleOf,
|
|
3464
3588
|
minorUnits,
|
|
3589
|
+
signedMinorUnits,
|
|
3465
3590
|
moneyOf,
|
|
3466
3591
|
moneyLabel,
|
|
3467
3592
|
quantityOf,
|
|
@@ -3471,6 +3596,8 @@ export {
|
|
|
3471
3596
|
MONEY_DIRECTIONS,
|
|
3472
3597
|
FINANCE_REVIEWS,
|
|
3473
3598
|
settledStatus,
|
|
3599
|
+
dayMonth,
|
|
3600
|
+
notes,
|
|
3474
3601
|
invoiceLine,
|
|
3475
3602
|
paymentLine,
|
|
3476
3603
|
invoiceTitle,
|
|
@@ -3479,6 +3606,29 @@ export {
|
|
|
3479
3606
|
ORDER_PURPOSES,
|
|
3480
3607
|
orderLine,
|
|
3481
3608
|
orderTitle,
|
|
3609
|
+
DEAL_KINDS,
|
|
3610
|
+
DEAL_STATUSES,
|
|
3611
|
+
STAGE_OUTCOMES,
|
|
3612
|
+
DEAL_ROLES,
|
|
3613
|
+
dealLine,
|
|
3614
|
+
ORGANIZATION_ROLES,
|
|
3615
|
+
PROJECT_ROLES,
|
|
3616
|
+
RELATIONS,
|
|
3617
|
+
RELATION_KINDS,
|
|
3618
|
+
isRelationKind,
|
|
3619
|
+
checkEnds,
|
|
3620
|
+
rolesOf,
|
|
3621
|
+
ROLE_LISTS,
|
|
3622
|
+
roleListOf,
|
|
3623
|
+
checkRole,
|
|
3624
|
+
isSymmetric,
|
|
3625
|
+
inverseOf,
|
|
3626
|
+
STANDINGS,
|
|
3627
|
+
standingOf,
|
|
3628
|
+
isUsable,
|
|
3629
|
+
usableLink,
|
|
3630
|
+
notOverriddenSql,
|
|
3631
|
+
usableLinkSql,
|
|
3482
3632
|
TAG_TYPES,
|
|
3483
3633
|
tagOf,
|
|
3484
3634
|
normalizeTag
|