@wirecat/mail-cli 0.19.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 +9 -0
- package/dist/bin/mail.js +2 -2
- package/dist/bundle/{all-profiles-MRNWJSXX.js → all-profiles-DTUWUCQQ.js} +7 -6
- package/dist/bundle/{anthropic-OUV5B4ZR.js → anthropic-YJAEQSNT.js} +3 -3
- package/dist/bundle/{app-server-TLZPGT53.js → app-server-3ZXSTBA3.js} +41 -40
- package/dist/bundle/{bun-IDEPIM6S.js → bun-34VBM7C5.js} +2 -2
- package/dist/bundle/{bun-sqlite-DW4XMJOP.js → bun-sqlite-GCT7ROCK.js} +2 -2
- package/dist/bundle/{chunk-ETZFPIDO.js → chunk-2PPEDB67.js} +31 -29
- package/dist/bundle/{chunk-HUOAAQU7.js → chunk-3DSYLE5N.js} +2 -2
- package/dist/bundle/{chunk-RYRR5NFB.js → chunk-3HDQVTND.js} +4 -4
- package/dist/bundle/{chunk-H3KB77WL.js → chunk-4FWJNIPH.js} +1 -1
- package/dist/bundle/{chunk-NA63ZIYN.js → chunk-4WIEVQ2Q.js} +8 -14
- package/dist/bundle/{chunk-EWXCMKLM.js → chunk-566MEXK5.js} +2 -2
- package/dist/bundle/{chunk-GZAETQ6X.js → chunk-72N26BQM.js} +24 -22
- package/dist/bundle/{chunk-DC6BXHWF.js → chunk-7XLOWYGD.js} +93 -6
- package/dist/bundle/{chunk-RYE5SRUM.js → chunk-AF62BPIW.js} +5 -5
- package/dist/bundle/{chunk-GAPH7GET.js → chunk-B74SOC4R.js} +9 -20
- package/dist/bundle/{chunk-BQM4ROFB.js → chunk-FTI73RLC.js} +2 -2
- package/dist/bundle/{chunk-OUMXW53I.js → chunk-GAPQENMY.js} +2 -2
- package/dist/bundle/{chunk-4EMXLDQ6.js → chunk-HJ2CXDKJ.js} +130 -11
- package/dist/bundle/{chunk-2ZDKZGES.js → chunk-HN43G27G.js} +30 -22
- package/dist/bundle/{chunk-VVHEB3M3.js → chunk-HRRSTIGP.js} +4 -4
- package/dist/bundle/{chunk-QC6QDORL.js → chunk-HSBGNVEL.js} +202 -171
- package/dist/bundle/{chunk-CQVRBZGP.js → chunk-I2SDXWLR.js} +173 -48
- package/dist/bundle/{chunk-3CJVUCDZ.js → chunk-J2U6LUT5.js} +3 -3
- package/dist/bundle/{chunk-WJQWEKZL.js → chunk-J4UZXBEV.js} +1 -1
- package/dist/bundle/{chunk-57KFWOMH.js → chunk-KMQAHDBM.js} +7170 -13496
- package/dist/bundle/{chunk-7H45FPAT.js → chunk-LF5XM4HE.js} +1 -1
- package/dist/bundle/chunk-LTXYJAJK.js +12211 -0
- package/dist/bundle/{chunk-YJMQWOPH.js → chunk-MD64ITYO.js} +1 -1
- package/dist/bundle/{chunk-WELIANTW.js → chunk-MDDB7M7Z.js} +1 -1
- package/dist/bundle/{chunk-ZXQDJMWD.js → chunk-NOVBK4SY.js} +12 -12
- package/dist/bundle/{chunk-YL5WH6XH.js → chunk-O3M2S62X.js} +3 -3
- package/dist/bundle/{chunk-H4MWBB4X.js → chunk-ODFHIXMA.js} +1 -1
- package/dist/bundle/{chunk-HCRMPNSO.js → chunk-OKO2Q6H6.js} +2 -2
- package/dist/bundle/{chunk-FBSDRNW5.js → chunk-P2QJA7S5.js} +1 -1
- package/dist/bundle/{chunk-VIXEQPVE.js → chunk-P6FT6YYT.js} +17 -14
- package/dist/bundle/{chunk-QU3JH3GB.js → chunk-QE72KTS7.js} +1 -1
- package/dist/bundle/{chunk-W3PU5XGE.js → chunk-QPRXTLMD.js} +1 -1
- package/dist/bundle/{chunk-EQWYG3QN.js → chunk-QTMVGOSF.js} +298 -266
- package/dist/bundle/{chunk-HTNWOOA2.js → chunk-R3WPMQYZ.js} +105 -61
- package/dist/bundle/{chunk-SOZXI7I3.js → chunk-RFB27ACZ.js} +2 -2
- package/dist/bundle/{chunk-P2RSKCY4.js → chunk-RPCKBXKN.js} +1 -1
- package/dist/bundle/{chunk-QXZTVB5I.js → chunk-RT6SLZBI.js} +1 -1
- package/dist/bundle/{chunk-TX2TTMK4.js → chunk-RY7PBP4F.js} +45 -29
- package/dist/bundle/{chunk-7ERCJWNL.js → chunk-SCIC2CJS.js} +4 -4
- package/dist/bundle/{chunk-33BOFLDQ.js → chunk-SFC46MP2.js} +249 -8
- package/dist/bundle/chunk-SYEICLTR.js +66 -0
- package/dist/bundle/{chunk-NBHMSEN4.js → chunk-T2GQA2E4.js} +1 -1
- package/dist/bundle/{chunk-HOGJNJ3T.js → chunk-T3DTYJTG.js} +1 -1
- package/dist/bundle/{chunk-MQISDBH2.js → chunk-TCCN5TON.js} +1 -1
- package/dist/bundle/{chunk-KO2DA7CN.js → chunk-V6OIIVH3.js} +10 -10
- package/dist/bundle/{chunk-A5A6MPIX.js → chunk-VDUGE6TH.js} +2 -2
- package/dist/bundle/{chunk-LCP2DMBD.js → chunk-VINSQR4X.js} +7 -7
- package/dist/bundle/{chunk-42QY6DIG.js → chunk-VQZCIDSO.js} +2 -2
- package/dist/bundle/{chunk-OYYEY3UE.js → chunk-WBAA2X3E.js} +9 -9
- package/dist/bundle/{chunk-2WORM2E3.js → chunk-Z75WYAX6.js} +6 -6
- package/dist/bundle/{chunk-POWHDZIC.js → chunk-Z7N4MGOQ.js} +5 -5
- package/dist/bundle/{chunk-R2ETE3SX.js → chunk-ZKLXSVIO.js} +1 -1
- package/dist/bundle/{chunk-OBSV2GUJ.js → chunk-ZZSHGCRC.js} +3 -3
- package/dist/bundle/{command-contract-36ASI4YI.js → command-contract-Y4ZQAJEC.js} +14 -13
- package/dist/bundle/{decode-Z37HTJ53.js → decode-BIOOL5E4.js} +2 -2
- package/dist/bundle/{dist-E3UUAOWA.js → dist-TJVIRLE5.js} +77 -17
- package/dist/bundle/{echarts-TSRD7GVA.js → echarts-ECPGMKXO.js} +2 -2
- package/dist/bundle/{embed-Z5GZUUCK.js → embed-F7JFSLHN.js} +3 -3
- package/dist/bundle/{embedder-SYWZ6JW2.js → embedder-U4G74HV3.js} +6 -6
- package/dist/bundle/{first-run-I5GMVVX5.js → first-run-JTYPUYQP.js} +5 -5
- package/dist/bundle/first-screen-W6RWTAU7.js +33 -0
- package/dist/bundle/{instructions-IMW3LWMS.js → instructions-WNCGZ7OJ.js} +1 -1
- package/dist/bundle/mail.js +2 -2
- package/dist/bundle/{node-V6SRRJ2F.js → node-UIRGGMGT.js} +2 -2
- package/dist/bundle/{node-sqlite-HN2P6PY2.js → node-sqlite-4ZM7OPRF.js} +3 -3
- package/dist/bundle/{oauth-7FIIKNXY.js → oauth-5RAJZPBW.js} +4 -4
- package/dist/bundle/{open-6XPAHITO.js → open-7ORCHOAI.js} +2 -2
- package/dist/bundle/{openai-B5MSVUDL.js → openai-XSJNXJA7.js} +10 -10
- package/dist/bundle/{process-LNEAZMJV.js → process-ZLO72UVZ.js} +1 -1
- package/dist/bundle/{program-BDB3D2HE.js → program-PFVJDKM4.js} +1722 -1650
- package/dist/bundle/{prompt-ZXS7F7OS.js → prompt-IDUPCUGM.js} +2 -2
- package/dist/bundle/{recognize-ONHYBE77.js → recognize-OS3EZKIM.js} +1 -1
- package/dist/bundle/{remote-IBZTKGBQ.js → remote-PF4LZR65.js} +4 -4
- package/dist/bundle/{rerank-TWODAEGK.js → rerank-CQNZF3JI.js} +4 -4
- package/dist/bundle/{serve-PPJIP254.js → serve-Y2DDLGBT.js} +6 -6
- package/dist/bundle/server-I3IALQMC.js +65 -0
- package/dist/bundle/{server-VG7EAG5C.js → server-TVRT7YEY.js} +33 -32
- package/dist/bundle/{sqlite-runtime-JZFSB33U.js → sqlite-runtime-5343C3OE.js} +3 -3
- package/dist/bundle/{state-2FUXS6RU.js → state-4GBTMPIV.js} +3 -3
- package/dist/bundle/{store-VURW3NE7.js → store-OLBLTQPT.js} +44 -13
- package/dist/bundle/{store-PYAP6NYK.js → store-QA6QJ5BB.js} +20 -11
- package/dist/bundle/store-maintenance-command-LB6CMGP4.js +55 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/dist/bundle/chunk-IRY3ZFPW.js +0 -656
- package/dist/bundle/first-screen-R3LHPHU3.js +0 -32
- package/dist/bundle/server-JBV7NTAA.js +0 -64
- package/dist/bundle/store-maintenance-command-EHWGMBEA.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"
|
|
@@ -1964,7 +1968,7 @@ var MEETING_FIELDS = defineQuery({
|
|
|
1964
1968
|
var MEETING_FIELD_NAMES = new Set(MEETING_FIELDS.fields.map(({ name }) => name));
|
|
1965
1969
|
var parseMeetingQuery = /* @__PURE__ */ __name((query) => validateQuery(parseLucene(query, { defaultField: "text", proximity: true, ...context }), MEETING_HIT_QUERY, context), "parseMeetingQuery");
|
|
1966
1970
|
|
|
1967
|
-
// 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
|
|
1968
1972
|
var LATIN_WORDS = {
|
|
1969
1973
|
en: ["the", "and", "is", "that", "you", "this", "what", "have", "with", "are"],
|
|
1970
1974
|
es: ["el", "los", "las", "por", "pero", "para", "est\xE1", "muy", "tambi\xE9n", "hay"],
|
|
@@ -2013,7 +2017,7 @@ var transcriptLanguage = /* @__PURE__ */ __name((texts) => {
|
|
|
2013
2017
|
return null;
|
|
2014
2018
|
}, "transcriptLanguage");
|
|
2015
2019
|
|
|
2016
|
-
// 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
|
|
2017
2021
|
var contentHash = /* @__PURE__ */ __name(async (text5) => {
|
|
2018
2022
|
const bytes = await crypto.subtle.digest("SHA-256", new TextEncoder().encode(text5));
|
|
2019
2023
|
return Array.from(new Uint8Array(bytes), (byte) => byte.toString(16).padStart(2, "0")).join("");
|
|
@@ -2050,7 +2054,7 @@ var timestamp2 = /* @__PURE__ */ __name((value) => {
|
|
|
2050
2054
|
return time;
|
|
2051
2055
|
}, "timestamp");
|
|
2052
2056
|
|
|
2053
|
-
// 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
|
|
2054
2058
|
var TranscriptTextError = class extends Error {
|
|
2055
2059
|
static {
|
|
2056
2060
|
__name(this, "TranscriptTextError");
|
|
@@ -2105,7 +2109,7 @@ var parseTranscriptText = /* @__PURE__ */ __name((input) => {
|
|
|
2105
2109
|
return { header, lines };
|
|
2106
2110
|
}, "parseTranscriptText");
|
|
2107
2111
|
|
|
2108
|
-
// 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
|
|
2109
2113
|
var VttError = class extends Error {
|
|
2110
2114
|
static {
|
|
2111
2115
|
__name(this, "VttError");
|
|
@@ -2157,7 +2161,7 @@ var parseVtt = /* @__PURE__ */ __name((input) => {
|
|
|
2157
2161
|
return cues;
|
|
2158
2162
|
}, "parseVtt");
|
|
2159
2163
|
|
|
2160
|
-
// 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
|
|
2161
2165
|
var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now()) => {
|
|
2162
2166
|
const report = { meetings: 0, participants: 0, transcriptRows: 0, summaries: 0, warnings: [] };
|
|
2163
2167
|
for (const file of files) {
|
|
@@ -2190,10 +2194,10 @@ var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now())
|
|
|
2190
2194
|
return report;
|
|
2191
2195
|
}, "importFiles");
|
|
2192
2196
|
|
|
2193
|
-
// 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
|
|
2194
2198
|
var CHAT_MESSAGES_READ = 1e5;
|
|
2195
2199
|
|
|
2196
|
-
// 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
|
|
2197
2201
|
var nonempty = /* @__PURE__ */ __name((value, name) => {
|
|
2198
2202
|
if (typeof value !== "string" || !value.trim())
|
|
2199
2203
|
throw new CliError("validation_error", `${name} must be nonempty`);
|
|
@@ -2244,7 +2248,7 @@ var validateMeetingChange = /* @__PURE__ */ __name((change, create) => {
|
|
|
2244
2248
|
return Object.freeze(result);
|
|
2245
2249
|
}, "validateMeetingChange");
|
|
2246
2250
|
|
|
2247
|
-
// 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
|
|
2248
2252
|
var meetingHitContextLimits = /* @__PURE__ */ __name((options = {}) => {
|
|
2249
2253
|
const { before = 3, after = 3, bytes = 65536, max_read_bytes = 4194304, expected_fingerprint } = options;
|
|
2250
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)))
|
|
@@ -2257,7 +2261,7 @@ var validateMeetingPassage = /* @__PURE__ */ __name((reference2, options) => {
|
|
|
2257
2261
|
throw new CliError("validation_error", "choose a cue reference and json, text or markdown output");
|
|
2258
2262
|
}, "validateMeetingPassage");
|
|
2259
2263
|
|
|
2260
|
-
// 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
|
|
2261
2265
|
var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
|
|
2262
2266
|
if (!original || typeof original !== "object" || Array.isArray(original))
|
|
2263
2267
|
throw new CliError("validation_error", "meeting preparation context is required");
|
|
@@ -2282,7 +2286,7 @@ var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
|
|
|
2282
2286
|
return { ...input, limit, maxReadBytes };
|
|
2283
2287
|
}, "validateMeetingPreparationContext");
|
|
2284
2288
|
|
|
2285
|
-
// 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
|
|
2286
2290
|
var count3 = pipe(number(), integer(), minValue(0));
|
|
2287
2291
|
var id = pipe(string(), minLength(1));
|
|
2288
2292
|
var meetingProjectEvidence = strictObject({
|
|
@@ -2403,7 +2407,7 @@ var meetingProjectEvidenceAnswer = /* @__PURE__ */ __name((page, prepared, comma
|
|
|
2403
2407
|
};
|
|
2404
2408
|
}, "meetingProjectEvidenceAnswer");
|
|
2405
2409
|
|
|
2406
|
-
// 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
|
|
2407
2411
|
var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
|
|
2408
2412
|
const integer3 = /* @__PURE__ */ __name((value, low, high) => Number.isSafeInteger(value) && value >= low && value <= high, "integer");
|
|
2409
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) || [
|
|
@@ -2423,7 +2427,7 @@ var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
|
|
|
2423
2427
|
throw new CliError("validation_error", "choose one project selector and one tag or topic selector");
|
|
2424
2428
|
}, "validateMeetingHitSearch");
|
|
2425
2429
|
|
|
2426
|
-
// 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
|
|
2427
2431
|
var ids = {
|
|
2428
2432
|
meeting_id: "meetingId",
|
|
2429
2433
|
identity_id: "participantIdentityId",
|
|
@@ -2514,7 +2518,7 @@ var prepareMeetingProjectEvidence = /* @__PURE__ */ __name((project, request = {
|
|
|
2514
2518
|
return { project: project.trim(), options, query: frozen.join(" AND ") };
|
|
2515
2519
|
}, "prepareMeetingProjectEvidence");
|
|
2516
2520
|
|
|
2517
|
-
// 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
|
|
2518
2522
|
var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project, request = {}, now = Date.now()) => {
|
|
2519
2523
|
const prepared = prepareMeetingProjectEvidence(project, request, now);
|
|
2520
2524
|
const page = await read(prepared.project, prepared.options);
|
|
@@ -2522,7 +2526,7 @@ var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project, re
|
|
|
2522
2526
|
return meetingProjectEvidenceAnswer(page, prepared);
|
|
2523
2527
|
}, "readMeetingProjectEvidence");
|
|
2524
2528
|
|
|
2525
|
-
// 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
|
|
2526
2530
|
var participantInput = /* @__PURE__ */ __name((p, provider, occurrenceId2, position, accountId) => {
|
|
2527
2531
|
const { identityExternalId, ...fields } = p;
|
|
2528
2532
|
const externalId = identityExternalId ?? (p.email ? `email:${p.email.toLowerCase()}` : p.externalId) ?? `name:${p.displayName ?? "unknown"}@${accountId}/${occurrenceId2}:${position}`;
|
|
@@ -2684,7 +2688,7 @@ unlinked`, format)],
|
|
|
2684
2688
|
return report;
|
|
2685
2689
|
}, "pull");
|
|
2686
2690
|
|
|
2687
|
-
// 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
|
|
2688
2692
|
var text3 = string();
|
|
2689
2693
|
var count4 = pipe(number(), integer(), minValue(0));
|
|
2690
2694
|
var id2 = pipe(number(), integer(), minValue(1));
|
|
@@ -2878,10 +2882,10 @@ var eventItem = /* @__PURE__ */ __name((one) => ({
|
|
|
2878
2882
|
updated_at: new Date(one.updatedAt).toISOString()
|
|
2879
2883
|
}), "eventItem");
|
|
2880
2884
|
|
|
2881
|
-
// 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
|
|
2882
2886
|
var strongRecordingValidator = /* @__PURE__ */ __name((value) => typeof value === "string" && value.length <= 1024 && /^"[\x21\x23-\x7e\x80-\xff]*"$/.test(value), "strongRecordingValidator");
|
|
2883
2887
|
|
|
2884
|
-
// 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
|
|
2885
2889
|
var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
|
|
2886
2890
|
if (!original || typeof original !== "object" || Array.isArray(original))
|
|
2887
2891
|
throw new CliError("validation_error", "related history request is required");
|
|
@@ -2911,7 +2915,7 @@ var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
|
|
|
2911
2915
|
return { ...input, anchorIds: [...new Set(input.anchorIds)], limit, maxReadBytes };
|
|
2912
2916
|
}, "validateMeetingRelatedHistory");
|
|
2913
2917
|
|
|
2914
|
-
// 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
|
|
2915
2919
|
var text4 = string();
|
|
2916
2920
|
var identifier = pipe(text4, minLength(1));
|
|
2917
2921
|
var nullableText = nullable(text4);
|
|
@@ -3044,14 +3048,14 @@ var MEETING_RESULT_ENTITIES = {
|
|
|
3044
3048
|
meeting_repair: repair
|
|
3045
3049
|
};
|
|
3046
3050
|
|
|
3047
|
-
// 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
|
|
3048
3052
|
var REVIEW_LIMIT = { default: 50, most: 200 };
|
|
3049
3053
|
|
|
3050
|
-
// 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
|
|
3051
3055
|
var SAVE_HELP = `Worth keeping \u2014 a decision, a promise, a preference? Record it with \`memo facts add\` or
|
|
3052
3056
|
\`memo memories add\`, citing the msg: locator or meeting: reference as --evidence.`;
|
|
3053
3057
|
|
|
3054
|
-
// 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
|
|
3055
3059
|
var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
|
|
3056
3060
|
input.signal?.throwIfAborted();
|
|
3057
3061
|
if (!Number.isSafeInteger(input.accountId) || input.accountId <= 0)
|
|
@@ -3072,10 +3076,10 @@ var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
|
|
|
3072
3076
|
return { ...input, limit, maxReadBytes };
|
|
3073
3077
|
}, "validateMeetingSeriesHistory");
|
|
3074
3078
|
|
|
3075
|
-
// 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
|
|
3076
3080
|
var occurrenceId = /* @__PURE__ */ __name((value) => typeof value === "string" && value.trim().length > 0 && value.length <= 1e3 && !/[\0\r\n]/.test(value), "occurrenceId");
|
|
3077
3081
|
|
|
3078
|
-
// 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
|
|
3079
3083
|
function invalid4(field, response = false) {
|
|
3080
3084
|
throw new CliError(response ? "invalid_response" : "validation_error", `invalid meeting inventory ${field}`);
|
|
3081
3085
|
}
|
|
@@ -3104,7 +3108,7 @@ var validateMeetingSeriesInventoryCursor = /* @__PURE__ */ __name((value) => {
|
|
|
3104
3108
|
cursorDetails(value);
|
|
3105
3109
|
}, "validateMeetingSeriesInventoryCursor");
|
|
3106
3110
|
|
|
3107
|
-
// 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
|
|
3108
3112
|
var MEETING_COUNTS_GROUPINGS = ["day", "week", "series"];
|
|
3109
3113
|
var zoneOf = /* @__PURE__ */ __name((timeZone) => {
|
|
3110
3114
|
const zone = timeZone ?? "UTC";
|
|
@@ -3239,7 +3243,7 @@ var aggregateMeetingStats = /* @__PURE__ */ __name((rows, timeZone) => {
|
|
|
3239
3243
|
};
|
|
3240
3244
|
}, "aggregateMeetingStats");
|
|
3241
3245
|
|
|
3242
|
-
// 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
|
|
3243
3247
|
var CURRENCY_SCALES = {
|
|
3244
3248
|
AED: 2,
|
|
3245
3249
|
AMD: 2,
|
|
@@ -3287,7 +3291,10 @@ var parseDecimal = /* @__PURE__ */ __name((text5, scale) => {
|
|
|
3287
3291
|
return BigInt(`${match[1]}${(match[2] ?? "").padEnd(scale, "0")}`);
|
|
3288
3292
|
}, "parseDecimal");
|
|
3289
3293
|
var formatDecimal = /* @__PURE__ */ __name((units, scale) => {
|
|
3290
|
-
const
|
|
3294
|
+
const value = BigInt(units);
|
|
3295
|
+
if (value < 0n)
|
|
3296
|
+
return `-${formatDecimal(-value, scale)}`;
|
|
3297
|
+
const digits = value.toString().padStart(scale + 1, "0");
|
|
3291
3298
|
return scale === 0 ? digits : `${digits.slice(0, -scale)}.${digits.slice(-scale)}`;
|
|
3292
3299
|
}, "formatDecimal");
|
|
3293
3300
|
var groupDigits = /* @__PURE__ */ __name((decimal) => {
|
|
@@ -3309,6 +3316,12 @@ var minorUnits = /* @__PURE__ */ __name((amount, currency, what = "an amount") =
|
|
|
3309
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");
|
|
3310
3317
|
return Number(units);
|
|
3311
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");
|
|
3312
3325
|
var moneyOf = /* @__PURE__ */ __name((units, currency) => ({
|
|
3313
3326
|
amount: formatDecimal(units, scaleOf(currency)),
|
|
3314
3327
|
currency
|
|
@@ -3324,7 +3337,7 @@ var quantityOf = /* @__PURE__ */ __name((text5) => {
|
|
|
3324
3337
|
}, "quantityOf");
|
|
3325
3338
|
var lineUnits = /* @__PURE__ */ __name((thousandths, unitPrice) => Number((thousandths * BigInt(unitPrice) + 500n) / 1000n), "lineUnits");
|
|
3326
3339
|
|
|
3327
|
-
// 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
|
|
3328
3341
|
var INVOICE_DIRECTIONS = ["receivable", "payable"];
|
|
3329
3342
|
var INVOICE_STATUSES = ["draft", "issued", "partly_paid", "paid", "void"];
|
|
3330
3343
|
var MONEY_DIRECTIONS = ["in", "out"];
|
|
@@ -3353,7 +3366,7 @@ var paymentLine = /* @__PURE__ */ __name((payment) => {
|
|
|
3353
3366
|
var invoiceTitle = /* @__PURE__ */ __name((invoice) => `Invoice ${invoiceLine(invoice)}`, "invoiceTitle");
|
|
3354
3367
|
var paymentEntryTitle = /* @__PURE__ */ __name((payment) => `Payment \xB7 ${paymentLine(payment)}`, "paymentEntryTitle");
|
|
3355
3368
|
|
|
3356
|
-
// 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
|
|
3357
3370
|
var ORDER_STATUSES = ["placed", "shipped", "delivered", "cancelled", "returned"];
|
|
3358
3371
|
var ORDER_PURPOSES = ["personal", "business", "client", "other"];
|
|
3359
3372
|
var orderLine = /* @__PURE__ */ __name((order) => {
|
|
@@ -3363,7 +3376,93 @@ var orderLine = /* @__PURE__ */ __name((order) => {
|
|
|
3363
3376
|
}, "orderLine");
|
|
3364
3377
|
var orderTitle = /* @__PURE__ */ __name((order) => `Order ${orderLine(order)}`, "orderTitle");
|
|
3365
3378
|
|
|
3366
|
-
// 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
|
|
3367
3466
|
var TAG_TYPES = ["chat", "contact", "message", "task"];
|
|
3368
3467
|
var TAG = /^[a-z0-9-]{1,32}$/;
|
|
3369
3468
|
var tagOf = /* @__PURE__ */ __name((value) => {
|
|
@@ -3487,6 +3586,7 @@ export {
|
|
|
3487
3586
|
currencyOf,
|
|
3488
3587
|
scaleOf,
|
|
3489
3588
|
minorUnits,
|
|
3589
|
+
signedMinorUnits,
|
|
3490
3590
|
moneyOf,
|
|
3491
3591
|
moneyLabel,
|
|
3492
3592
|
quantityOf,
|
|
@@ -3496,6 +3596,8 @@ export {
|
|
|
3496
3596
|
MONEY_DIRECTIONS,
|
|
3497
3597
|
FINANCE_REVIEWS,
|
|
3498
3598
|
settledStatus,
|
|
3599
|
+
dayMonth,
|
|
3600
|
+
notes,
|
|
3499
3601
|
invoiceLine,
|
|
3500
3602
|
paymentLine,
|
|
3501
3603
|
invoiceTitle,
|
|
@@ -3504,6 +3606,29 @@ export {
|
|
|
3504
3606
|
ORDER_PURPOSES,
|
|
3505
3607
|
orderLine,
|
|
3506
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,
|
|
3507
3632
|
TAG_TYPES,
|
|
3508
3633
|
tagOf,
|
|
3509
3634
|
normalizeTag
|
|
@@ -10,10 +10,10 @@ import {
|
|
|
10
10
|
__name
|
|
11
11
|
} from "./chunk-ZVVMGPBJ.js";
|
|
12
12
|
|
|
13
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/speech/recognize.js
|
|
14
14
|
import { createRequire } from "node:module";
|
|
15
15
|
|
|
16
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/speech/ogg-limit.js
|
|
17
17
|
var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "local transcription needs a complete mono or stereo Ogg Opus recording"), "invalid");
|
|
18
18
|
var checkOggDuration = /* @__PURE__ */ __name((bytes) => {
|
|
19
19
|
const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
|
|
@@ -70,7 +70,7 @@ var checkOggDuration = /* @__PURE__ */ __name((bytes) => {
|
|
|
70
70
|
throw invalid();
|
|
71
71
|
}, "checkOggDuration");
|
|
72
72
|
|
|
73
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
73
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/speech/recognize.js
|
|
74
74
|
var SAMPLE_RATE = 16e3;
|
|
75
75
|
var LEAD = SAMPLE_RATE / 2;
|
|
76
76
|
var toModelRate = /* @__PURE__ */ __name((samples, rate) => {
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_2045f8d992dff370989171c93240f8d7/node_modules/@wirecat/cli-core/dist/mcp/bot/instructions.js
|
|
8
8
|
var botInstructions = /* @__PURE__ */ __name(({ command, name, profile, writes, skill }) => [
|
|
9
9
|
`The owner's ${name} bot "${profile}", through the official Bot API \u2014 not the owner's personal account. What it writes, people see as the bot.`,
|
|
10
10
|
"Use these tools to read the chats this bot is in, find a message or a person, and \u2014 when the profile allows \u2014 write as the bot.",
|