@wirecat/mail-cli 0.26.0 → 0.27.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 +14 -0
- package/dist/bin/mail.js +2 -2
- package/dist/bundle/{all-profiles-6NXVQLUQ.js → all-profiles-5XWH7TBM.js} +7 -7
- package/dist/bundle/{anthropic-OLNFE2CL.js → anthropic-QEQGUEPW.js} +2 -2
- package/dist/bundle/{app-server-J76N6XIK.js → app-server-YWDU56NR.js} +48 -44
- package/dist/bundle/{bun-6PYDHXNR.js → bun-PWMM6L45.js} +2 -2
- package/dist/bundle/{bun-sqlite-QD5PFHPS.js → bun-sqlite-S4QD5YUO.js} +3 -3
- package/dist/bundle/{chunk-VA4V73SL.js → chunk-255RGG5W.js} +5 -5
- package/dist/bundle/{chunk-5WROIMUV.js → chunk-2FZMIJW7.js} +4 -4
- package/dist/bundle/{chunk-AJ5K74X6.js → chunk-4VDWQKDI.js} +16 -16
- package/dist/bundle/{chunk-HI5XUETY.js → chunk-572NWJUN.js} +1 -1
- package/dist/bundle/{chunk-H2IJQH5X.js → chunk-5BPOEPYL.js} +4 -4
- package/dist/bundle/{chunk-DKIVYAXW.js → chunk-5DLPM5AV.js} +12 -12
- package/dist/bundle/{chunk-CZI45AQM.js → chunk-77J5ID2O.js} +2 -2
- package/dist/bundle/{chunk-2E2EV4HD.js → chunk-7BXOFLWJ.js} +80 -57
- package/dist/bundle/{chunk-QI6EXKSH.js → chunk-AIEMFRBU.js} +1 -1
- package/dist/bundle/{chunk-CFBIPM7T.js → chunk-AIZ225IA.js} +267 -251
- package/dist/bundle/{chunk-RXKIP2ML.js → chunk-APLVXHFG.js} +1 -1
- package/dist/bundle/{chunk-NBJU6MBU.js → chunk-BZCXAVGP.js} +7 -7
- package/dist/bundle/{chunk-XZ7CQ6NA.js → chunk-CKFVKHTB.js} +3 -3
- package/dist/bundle/{chunk-MIWSCTLG.js → chunk-CZRMT6XV.js} +2 -2
- package/dist/bundle/{chunk-NMFPK3MU.js → chunk-DQO2LX5I.js} +2 -2
- package/dist/bundle/{chunk-PY2IOVUN.js → chunk-DSUOYJUL.js} +3 -3
- package/dist/bundle/{chunk-QJGG6QYV.js → chunk-ELPH22W6.js} +7 -7
- package/dist/bundle/{chunk-BMGRDZM3.js → chunk-EXWZCI5G.js} +1 -1
- package/dist/bundle/{chunk-M4Y33SJJ.js → chunk-FOTP6QLO.js} +2 -2
- package/dist/bundle/{chunk-T7SHPALQ.js → chunk-FVVSBQGK.js} +24 -22
- package/dist/bundle/{chunk-76VSHS5Y.js → chunk-HBK6MRAL.js} +7 -7
- package/dist/bundle/{chunk-YM345236.js → chunk-IDOHT4Z3.js} +19 -19
- package/dist/bundle/{chunk-A3EBRXOQ.js → chunk-KHBZ4OEP.js} +1 -1
- package/dist/bundle/{chunk-LTZGLOKE.js → chunk-MY4LVD64.js} +1 -1
- package/dist/bundle/{chunk-M7RHPCXM.js → chunk-NZG6IRDW.js} +2 -2
- package/dist/bundle/{chunk-V32L23NN.js → chunk-OC3U2JAK.js} +3 -3
- package/dist/bundle/{chunk-XELZCDWE.js → chunk-OCUKQRJ3.js} +158 -148
- package/dist/bundle/{chunk-VWRT57QU.js → chunk-OEPNLKHI.js} +4 -4
- package/dist/bundle/{chunk-UE2NKPA4.js → chunk-OPOEAGVB.js} +6 -6
- package/dist/bundle/{chunk-JNKXU7AE.js → chunk-PA7LDYVX.js} +52 -52
- package/dist/bundle/{chunk-EDWJ7IYH.js → chunk-PJ3FKBXG.js} +1 -1
- package/dist/bundle/{chunk-PJ6YMNJG.js → chunk-PRSXMM4I.js} +447 -407
- package/dist/bundle/{chunk-OGE7YG4J.js → chunk-QQTSPQ2D.js} +1 -1
- package/dist/bundle/{chunk-52M5BAEG.js → chunk-QVJMFZFW.js} +1 -1
- package/dist/bundle/{chunk-YXGHC3NP.js → chunk-R3A65A4D.js} +10 -10
- package/dist/bundle/{chunk-BDYQQ6G2.js → chunk-R5FTCNLJ.js} +1 -1
- package/dist/bundle/{chunk-A6XETABW.js → chunk-RGQFVVBB.js} +17 -17
- package/dist/bundle/{chunk-ZZSZN4CJ.js → chunk-ROLHKFKB.js} +13 -12
- package/dist/bundle/{chunk-KXASCNOV.js → chunk-RRLAFEPQ.js} +2 -2
- package/dist/bundle/{chunk-LMTQMYUF.js → chunk-S2QRW647.js} +33 -29
- package/dist/bundle/{chunk-GIG7F6UW.js → chunk-S7H7TAC3.js} +5 -5
- package/dist/bundle/{chunk-VJPLIXV4.js → chunk-SXKKOOA7.js} +1 -1
- package/dist/bundle/{chunk-76EKZSDK.js → chunk-T7VERZP5.js} +23 -23
- package/dist/bundle/{chunk-66C66FNK.js → chunk-TI2OANJZ.js} +1 -1
- package/dist/bundle/{chunk-3J2UJFBJ.js → chunk-TKOZCIHU.js} +15 -15
- package/dist/bundle/{chunk-JVJG54QK.js → chunk-UBH4UPZ7.js} +1 -1
- package/dist/bundle/{chunk-UNJUCK5R.js → chunk-UEJVXUIO.js} +12 -12
- package/dist/bundle/{chunk-V4PFD25P.js → chunk-UIKVP23D.js} +1 -1
- package/dist/bundle/{chunk-3XTKQ5EM.js → chunk-VYZ37D2Q.js} +1 -1
- package/dist/bundle/{chunk-M2LATBP2.js → chunk-WMXUFUV3.js} +2 -2
- package/dist/bundle/{chunk-4Q6KAV4O.js → chunk-WRHAX53U.js} +6 -6
- package/dist/bundle/{chunk-3RY4HC4V.js → chunk-XBL46B4V.js} +1 -1
- package/dist/bundle/{chunk-XUJEZ5YF.js → chunk-XCYDTIVK.js} +5 -5
- package/dist/bundle/{chunk-HNSBXC6U.js → chunk-XM2THVMR.js} +2 -2
- package/dist/bundle/{chunk-M7ECSGSN.js → chunk-ZSWSFKNE.js} +4 -6
- package/dist/bundle/{chunk-2TCS4PLJ.js → chunk-ZVQDOKDY.js} +1 -1
- package/dist/bundle/{command-contract-NNEXHZW5.js → command-contract-MIJONVVG.js} +15 -15
- package/dist/bundle/{command-server-entry-AIBWNC5D.js → command-server-entry-VHUFW3OZ.js} +21 -21
- package/dist/bundle/{decode-H7KLRD33.js → decode-TIMTSVXM.js} +2 -2
- package/dist/bundle/{dist-YYSP43J3.js → dist-IP25JFTN.js} +11 -11
- package/dist/bundle/{echarts-VSD3LS6D.js → echarts-SDZA2SWG.js} +2 -2
- package/dist/bundle/{embed-UENZ5HN3.js → embed-4W527BCE.js} +3 -3
- package/dist/bundle/{embedder-MJMGOJT7.js → embedder-LQE2SBJ3.js} +6 -6
- package/dist/bundle/{first-run-HYALREFN.js → first-run-KZTKMEI4.js} +6 -6
- package/dist/bundle/first-screen-4LG5SJ6D.js +34 -0
- package/dist/bundle/{instructions-WOHRYOLN.js → instructions-7T6JJIFS.js} +1 -1
- package/dist/bundle/mail.js +2 -2
- package/dist/bundle/{node-4BRWJJCE.js → node-BZDMUFTW.js} +2 -2
- package/dist/bundle/{node-sqlite-D3QESEYQ.js → node-sqlite-PVSKI4OS.js} +4 -4
- package/dist/bundle/{oauth-T7TTOBIZ.js → oauth-TGYGAVGF.js} +4 -4
- package/dist/bundle/{open-6P6627QB.js → open-5YED4Q4C.js} +2 -2
- package/dist/bundle/{openai-FIMCJGAP.js → openai-XVJTML22.js} +12 -12
- package/dist/bundle/{process-35IH3WHC.js → process-756VBE7E.js} +1 -1
- package/dist/bundle/{program-IEXB72IK.js → program-TDHDXAQA.js} +387 -374
- package/dist/bundle/{prompt-HFBCPMVL.js → prompt-HPZANASN.js} +2 -2
- package/dist/bundle/{recognize-CNL4HJ7Z.js → recognize-PP5XQQHH.js} +1 -1
- package/dist/bundle/{remote-AYGZI7HT.js → remote-C2LU2WYG.js} +6 -6
- package/dist/bundle/{rerank-5C2OZZXD.js → rerank-WRHNOM4Z.js} +4 -4
- package/dist/bundle/{serve-S6OYBDIB.js → serve-RE3IV2QB.js} +6 -6
- package/dist/bundle/server-43V7HNFY.js +68 -0
- package/dist/bundle/{server-VKO6E6PI.js → server-52BJ7UTO.js} +37 -35
- package/dist/bundle/{sqlite-runtime-DBTGNTVE.js → sqlite-runtime-CRRL3MYX.js} +3 -3
- package/dist/bundle/{state-ZQG6AL2Y.js → state-YGJRPMWD.js} +3 -3
- package/dist/bundle/{store-B7BXWILZ.js → store-6AZ5LVJL.js} +15 -15
- package/dist/bundle/{store-LY4QKTOO.js → store-ESQE4VHP.js} +13 -13
- package/dist/bundle/store-maintenance-command-AKQMKUYO.js +58 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/dist/bundle/first-screen-GPF5RHBX.js +0 -34
- package/dist/bundle/server-WXSHVDME.js +0 -68
- package/dist/bundle/store-maintenance-command-UR6NQDVV.js +0 -58
|
@@ -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.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/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.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/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.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/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,11 @@ 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.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/store.js
|
|
1056
|
+
var MEETING_DOCUMENT_ROLES = ["transcript", "recording", "notes"];
|
|
1057
|
+
var READ_BUDGET_EXCEEDED = "Meeting search exceeds its stored text byte budget";
|
|
1058
|
+
|
|
1059
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/answers.js
|
|
1056
1060
|
var text2 = string();
|
|
1057
1061
|
var count2 = pipe(number(), integer(), minValue(0));
|
|
1058
1062
|
var iso2 = /* @__PURE__ */ __name((ms) => ms === null ? null : new Date(ms).toISOString(), "iso");
|
|
@@ -1139,6 +1143,16 @@ var meetingDetails = strictObject({
|
|
|
1139
1143
|
mime: nullable(text2),
|
|
1140
1144
|
size: nullable(count2),
|
|
1141
1145
|
url: nullable(text2)
|
|
1146
|
+
})),
|
|
1147
|
+
/**
|
|
1148
|
+
* The Drive files the meeting service saved for it, by role. `document` is the stored document (`document:<id>`) once
|
|
1149
|
+
* a Drive profile has imported the file, else `null`: then `drive` can fetch it by `file_id`.
|
|
1150
|
+
*/
|
|
1151
|
+
documents: array(strictObject({
|
|
1152
|
+
file_id: text2,
|
|
1153
|
+
role: picklist(MEETING_DOCUMENT_ROLES),
|
|
1154
|
+
title: nullable(text2),
|
|
1155
|
+
document: nullable(reference)
|
|
1142
1156
|
}))
|
|
1143
1157
|
});
|
|
1144
1158
|
var meetingRef = /* @__PURE__ */ __name((accountId, meetingId) => formatMeetingReference({ type: "meeting", accountId, meetingId }), "meetingRef");
|
|
@@ -1216,6 +1230,12 @@ var meetingDetailsItem = /* @__PURE__ */ __name((details, owner) => {
|
|
|
1216
1230
|
mime: one.mime,
|
|
1217
1231
|
size: one.size,
|
|
1218
1232
|
url: one.url
|
|
1233
|
+
})),
|
|
1234
|
+
documents: (details.documents ?? []).map((one) => ({
|
|
1235
|
+
file_id: one.fileId,
|
|
1236
|
+
role: one.role,
|
|
1237
|
+
title: one.title,
|
|
1238
|
+
document: one.documentId === null ? null : `document:${one.documentId}`
|
|
1219
1239
|
}))
|
|
1220
1240
|
};
|
|
1221
1241
|
}, "meetingDetailsItem");
|
|
@@ -1290,7 +1310,7 @@ var meetingHitsList = /* @__PURE__ */ __name((found, limit, command = "search me
|
|
|
1290
1310
|
};
|
|
1291
1311
|
}, "meetingHitsList");
|
|
1292
1312
|
|
|
1293
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1313
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/join-key.js
|
|
1294
1314
|
var joinKeyOf = /* @__PURE__ */ __name((url) => {
|
|
1295
1315
|
const parsed = urlOf(url);
|
|
1296
1316
|
if (!parsed)
|
|
@@ -1324,7 +1344,7 @@ var urlOf = /* @__PURE__ */ __name((url) => {
|
|
|
1324
1344
|
}
|
|
1325
1345
|
}, "urlOf");
|
|
1326
1346
|
|
|
1327
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1347
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/calendar-text.js
|
|
1328
1348
|
var ENTITIES = { amp: "&", lt: "<", gt: ">", quot: '"', "#39": "'", apos: "'", nbsp: " " };
|
|
1329
1349
|
var SECRET_LINE = /(?<![\p{L}\p{N}])(pass ?codes?|passwords?|pwd|pins?|access ?codes?|meeting ?codes?|kennwort|пароль|пин-?код|код доступа)(?![\p{L}\p{N}])|pwd=/iu;
|
|
1330
1350
|
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");
|
|
@@ -1361,7 +1381,7 @@ var entryMetadata = /* @__PURE__ */ __name((metadata) => {
|
|
|
1361
1381
|
return kept;
|
|
1362
1382
|
}, "entryMetadata");
|
|
1363
1383
|
|
|
1364
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1384
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/cue-fingerprint.js
|
|
1365
1385
|
import { createHash } from "node:crypto";
|
|
1366
1386
|
var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256").update(JSON.stringify({
|
|
1367
1387
|
reference: cue2.reference,
|
|
@@ -1375,7 +1395,7 @@ var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256"
|
|
|
1375
1395
|
text: cue2.text
|
|
1376
1396
|
})).digest("hex"), "meetingCueFingerprint");
|
|
1377
1397
|
|
|
1378
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1398
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/event-query.js
|
|
1379
1399
|
var EVENT_QUERY = defineQuery({
|
|
1380
1400
|
entity: "event",
|
|
1381
1401
|
backend: "sql",
|
|
@@ -1391,7 +1411,7 @@ var EVENT_QUERY = defineQuery({
|
|
|
1391
1411
|
]
|
|
1392
1412
|
});
|
|
1393
1413
|
|
|
1394
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1414
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/event-store.js
|
|
1395
1415
|
var UNTIL = /(?:^|;)UNTIL=(\d{4})(\d{2})(\d{2})(?:T(\d{2})(\d{2})(\d{2})Z?)?(?:;|$)/iu;
|
|
1396
1416
|
var seriesEnd = /* @__PURE__ */ __name((entry) => {
|
|
1397
1417
|
if (entry.recurrenceEndsAt !== null)
|
|
@@ -1414,7 +1434,7 @@ var entryInWindow = /* @__PURE__ */ __name((entry, window) => {
|
|
|
1414
1434
|
return Math.max(entry.endsAt ?? start, start + 1) > window.from;
|
|
1415
1435
|
}, "entryInWindow");
|
|
1416
1436
|
|
|
1417
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1437
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/events.js
|
|
1418
1438
|
var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now(), { create = true } = {}) => {
|
|
1419
1439
|
const current = await store.meeting(details.meeting.id);
|
|
1420
1440
|
if (!current)
|
|
@@ -1459,7 +1479,7 @@ var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now(),
|
|
|
1459
1479
|
return (await store.events()).find((e) => e.id === linked?.meeting.eventId) ?? null;
|
|
1460
1480
|
}, "linkEvent");
|
|
1461
1481
|
|
|
1462
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1482
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/participant-search.js
|
|
1463
1483
|
var normalizeMeetingParticipantQuery = /* @__PURE__ */ __name((text5) => text5.normalize("NFKC").toLowerCase(), "normalizeMeetingParticipantQuery");
|
|
1464
1484
|
var validateMeetingParticipantQuery = /* @__PURE__ */ __name((query) => {
|
|
1465
1485
|
if (typeof query !== "string" || !query.trim() || query.length > 500 || query.includes("\0"))
|
|
@@ -1483,7 +1503,7 @@ var validateMeetingParticipantSearch = /* @__PURE__ */ __name((query, input) =>
|
|
|
1483
1503
|
};
|
|
1484
1504
|
}, "validateMeetingParticipantSearch");
|
|
1485
1505
|
|
|
1486
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1506
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/reads.js
|
|
1487
1507
|
var MeetingError = class extends CliError {
|
|
1488
1508
|
static {
|
|
1489
1509
|
__name(this, "MeetingError");
|
|
@@ -1615,7 +1635,7 @@ var meetingSummaryAnswer = /* @__PURE__ */ __name(async (store, id3, accountId)
|
|
|
1615
1635
|
return wholeList(details.summaries.map((one) => meetingSummaryItem(details.meeting.accountId, one)));
|
|
1616
1636
|
}, "meetingSummaryAnswer");
|
|
1617
1637
|
|
|
1618
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1638
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/export.js
|
|
1619
1639
|
var timestamp = /* @__PURE__ */ __name((milliseconds) => {
|
|
1620
1640
|
if (!Number.isSafeInteger(milliseconds) || milliseconds < 0)
|
|
1621
1641
|
throw new MeetingError("validation_error", "transcript times must be nonnegative integer milliseconds");
|
|
@@ -1711,10 +1731,10 @@ var exportMeeting = /* @__PURE__ */ __name(async (store, id3, options) => {
|
|
|
1711
1731
|
};
|
|
1712
1732
|
}, "exportMeeting");
|
|
1713
1733
|
|
|
1714
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1734
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
|
|
1715
1735
|
import { createHash as createHash2 } from "node:crypto";
|
|
1716
1736
|
|
|
1717
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1737
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/timestamp.js
|
|
1718
1738
|
var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
|
|
1719
1739
|
if (typeof value !== "string" || !/^\d{4}-\d{2}-\d{2}T.+(?:Z|[+-]\d{2}:\d{2})$/i.test(value) || !Number.isFinite(Date.parse(value)))
|
|
1720
1740
|
throw new CliError("validation_error", `${name} must be an ISO timestamp with a timezone, such as 2026-11-09T09:00:00Z`);
|
|
@@ -1725,7 +1745,7 @@ var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
|
|
|
1725
1745
|
return new Date(value).toISOString();
|
|
1726
1746
|
}, "meetingTimestamp");
|
|
1727
1747
|
|
|
1728
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1748
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
|
|
1729
1749
|
var TASK_TYPES = ["bug", "feature", "chore"];
|
|
1730
1750
|
var invalid3 = /* @__PURE__ */ __name((message) => {
|
|
1731
1751
|
throw new CliError("validation_error", message);
|
|
@@ -1900,7 +1920,7 @@ var validateBatch = /* @__PURE__ */ __name((input, rules, most, one) => {
|
|
|
1900
1920
|
var validateFindings = /* @__PURE__ */ __name((input, rules) => validateBatch(input, rules, 16, (finding, ids2) => validateFinding(finding, rules, ids2)), "validateFindings");
|
|
1901
1921
|
var findingFingerprint = /* @__PURE__ */ __name(({ id: _id, ...finding }) => findingHash(finding), "findingFingerprint");
|
|
1902
1922
|
|
|
1903
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1923
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/findings.js
|
|
1904
1924
|
var MEETING_FINDINGS_KIND = "meeting_findings";
|
|
1905
1925
|
var cue = /* @__PURE__ */ __name((raw) => {
|
|
1906
1926
|
const reference2 = canonicalMeetingReference(raw);
|
|
@@ -1911,7 +1931,7 @@ var cue = /* @__PURE__ */ __name((raw) => {
|
|
|
1911
1931
|
var validateMeetingFindings = /* @__PURE__ */ __name((input) => validateFindings(input, { plural: "meeting findings", singular: "meeting finding", cited: "cue", reference: cue }), "validateMeetingFindings");
|
|
1912
1932
|
var meetingFindingFingerprint = findingFingerprint;
|
|
1913
1933
|
|
|
1914
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1934
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/hit-query.js
|
|
1915
1935
|
var context = {
|
|
1916
1936
|
command: "search meetings",
|
|
1917
1937
|
guide: "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md#\u0432\u0441\u0442\u0440\u0435\u0447\u0438"
|
|
@@ -2021,7 +2041,7 @@ var liftMeetingFields = /* @__PURE__ */ __name((query, request, now, timezone) =
|
|
|
2021
2041
|
}, "liftMeetingFields");
|
|
2022
2042
|
var parseMeetingQuery = /* @__PURE__ */ __name((query) => validateQuery(parseLucene(query, { defaultField: "text", proximity: true, ...context }), MEETING_HIT_QUERY, context), "parseMeetingQuery");
|
|
2023
2043
|
|
|
2024
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2044
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/language.js
|
|
2025
2045
|
var LATIN_WORDS = {
|
|
2026
2046
|
en: ["the", "and", "is", "that", "you", "this", "what", "have", "with", "are"],
|
|
2027
2047
|
es: ["el", "los", "las", "por", "pero", "para", "est\xE1", "muy", "tambi\xE9n", "hay"],
|
|
@@ -2070,7 +2090,7 @@ var transcriptLanguage = /* @__PURE__ */ __name((texts) => {
|
|
|
2070
2090
|
return null;
|
|
2071
2091
|
}, "transcriptLanguage");
|
|
2072
2092
|
|
|
2073
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2093
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/ingest.js
|
|
2074
2094
|
var contentHash = /* @__PURE__ */ __name(async (text5) => {
|
|
2075
2095
|
const bytes = await crypto.subtle.digest("SHA-256", new TextEncoder().encode(text5));
|
|
2076
2096
|
return Array.from(new Uint8Array(bytes), (byte) => byte.toString(16).padStart(2, "0")).join("");
|
|
@@ -2107,7 +2127,7 @@ var timestamp2 = /* @__PURE__ */ __name((value) => {
|
|
|
2107
2127
|
return time;
|
|
2108
2128
|
}, "timestamp");
|
|
2109
2129
|
|
|
2110
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2130
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/transcript-text.js
|
|
2111
2131
|
var TranscriptTextError = class extends Error {
|
|
2112
2132
|
static {
|
|
2113
2133
|
__name(this, "TranscriptTextError");
|
|
@@ -2162,7 +2182,7 @@ var parseTranscriptText = /* @__PURE__ */ __name((input) => {
|
|
|
2162
2182
|
return { header, lines };
|
|
2163
2183
|
}, "parseTranscriptText");
|
|
2164
2184
|
|
|
2165
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2185
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/vtt.js
|
|
2166
2186
|
var VttError = class extends Error {
|
|
2167
2187
|
static {
|
|
2168
2188
|
__name(this, "VttError");
|
|
@@ -2214,7 +2234,7 @@ var parseVtt = /* @__PURE__ */ __name((input) => {
|
|
|
2214
2234
|
return cues;
|
|
2215
2235
|
}, "parseVtt");
|
|
2216
2236
|
|
|
2217
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2237
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/import.js
|
|
2218
2238
|
var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now()) => {
|
|
2219
2239
|
const report = { meetings: 0, participants: 0, transcriptRows: 0, summaries: 0, warnings: [] };
|
|
2220
2240
|
for (const file of files) {
|
|
@@ -2247,10 +2267,10 @@ var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now())
|
|
|
2247
2267
|
return report;
|
|
2248
2268
|
}, "importFiles");
|
|
2249
2269
|
|
|
2250
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2270
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/links.js
|
|
2251
2271
|
var CHAT_MESSAGES_READ = 1e5;
|
|
2252
2272
|
|
|
2253
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2273
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/meeting-management.js
|
|
2254
2274
|
var nonempty = /* @__PURE__ */ __name((value, name) => {
|
|
2255
2275
|
if (typeof value !== "string" || !value.trim())
|
|
2256
2276
|
throw new CliError("validation_error", `${name} must be nonempty`);
|
|
@@ -2301,7 +2321,7 @@ var validateMeetingChange = /* @__PURE__ */ __name((change, create) => {
|
|
|
2301
2321
|
return Object.freeze(result);
|
|
2302
2322
|
}, "validateMeetingChange");
|
|
2303
2323
|
|
|
2304
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2324
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/passage.js
|
|
2305
2325
|
var meetingHitContextLimits = /* @__PURE__ */ __name((options = {}) => {
|
|
2306
2326
|
const { before = 3, after = 3, bytes = 65536, max_read_bytes = 4194304, expected_fingerprint } = options;
|
|
2307
2327
|
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)))
|
|
@@ -2314,7 +2334,7 @@ var validateMeetingPassage = /* @__PURE__ */ __name((reference2, options) => {
|
|
|
2314
2334
|
throw new CliError("validation_error", "choose a cue reference and json, text or markdown output");
|
|
2315
2335
|
}, "validateMeetingPassage");
|
|
2316
2336
|
|
|
2317
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2337
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/preparation-context.js
|
|
2318
2338
|
var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
|
|
2319
2339
|
if (!original || typeof original !== "object" || Array.isArray(original))
|
|
2320
2340
|
throw new CliError("validation_error", "meeting preparation context is required");
|
|
@@ -2339,7 +2359,7 @@ var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
|
|
|
2339
2359
|
return { ...input, limit, maxReadBytes };
|
|
2340
2360
|
}, "validateMeetingPreparationContext");
|
|
2341
2361
|
|
|
2342
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2362
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-answer.js
|
|
2343
2363
|
var count3 = pipe(number(), integer(), minValue(0));
|
|
2344
2364
|
var id = pipe(string(), minLength(1));
|
|
2345
2365
|
var meetingProjectEvidence = strictObject({
|
|
@@ -2460,7 +2480,7 @@ var meetingProjectEvidenceAnswer = /* @__PURE__ */ __name((page, prepared, comma
|
|
|
2460
2480
|
};
|
|
2461
2481
|
}, "meetingProjectEvidenceAnswer");
|
|
2462
2482
|
|
|
2463
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2483
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/search-validation.js
|
|
2464
2484
|
var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
|
|
2465
2485
|
const integer3 = /* @__PURE__ */ __name((value, low, high) => Number.isSafeInteger(value) && value >= low && value <= high, "integer");
|
|
2466
2486
|
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) || [
|
|
@@ -2480,7 +2500,7 @@ var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
|
|
|
2480
2500
|
throw new CliError("validation_error", "choose one project selector and one tag or topic selector");
|
|
2481
2501
|
}, "validateMeetingHitSearch");
|
|
2482
2502
|
|
|
2483
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2503
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-query.js
|
|
2484
2504
|
var ids = {
|
|
2485
2505
|
meeting_id: "meetingId",
|
|
2486
2506
|
identity_id: "participantIdentityId",
|
|
@@ -2571,7 +2591,7 @@ var prepareMeetingProjectEvidence = /* @__PURE__ */ __name((project, request = {
|
|
|
2571
2591
|
return { project: project.trim(), options, query: frozen.join(" AND ") };
|
|
2572
2592
|
}, "prepareMeetingProjectEvidence");
|
|
2573
2593
|
|
|
2574
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2594
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/project-evidence.js
|
|
2575
2595
|
var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project, request = {}, now = Date.now()) => {
|
|
2576
2596
|
const prepared = prepareMeetingProjectEvidence(project, request, now);
|
|
2577
2597
|
const page = await read(prepared.project, prepared.options);
|
|
@@ -2579,7 +2599,7 @@ var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project, re
|
|
|
2579
2599
|
return meetingProjectEvidenceAnswer(page, prepared);
|
|
2580
2600
|
}, "readMeetingProjectEvidence");
|
|
2581
2601
|
|
|
2582
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2602
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/pull.js
|
|
2583
2603
|
var participantInput = /* @__PURE__ */ __name((p, provider, occurrenceId2, position, accountId) => {
|
|
2584
2604
|
const { identityExternalId, phone, ...fields } = p;
|
|
2585
2605
|
const externalId = identityExternalId ?? (p.email ? `email:${p.email.toLowerCase()}` : p.externalId) ?? `name:${p.displayName ?? "unknown"}@${accountId}/${occurrenceId2}:${position}`;
|
|
@@ -2671,6 +2691,8 @@ var pull = /* @__PURE__ */ __name(async (source, store, options) => {
|
|
|
2671
2691
|
const chat = await read("chat", () => source.chat(id3));
|
|
2672
2692
|
const summary = await read("summary", () => source.summary(id3));
|
|
2673
2693
|
const attachments = await read("files", () => source.files(id3));
|
|
2694
|
+
const listDocuments = source.documents?.bind(source);
|
|
2695
|
+
const documents = listDocuments ? await read("documents", () => listDocuments(id3)) : void 0;
|
|
2674
2696
|
const startedAt = timestamp2(m.occurrence.startedAt);
|
|
2675
2697
|
const endedAt = m.occurrence.endedAt === null ? null : timestamp2(m.occurrence.endedAt);
|
|
2676
2698
|
if (endedAt !== null && endedAt < startedAt)
|
|
@@ -2732,6 +2754,7 @@ var pull = /* @__PURE__ */ __name(async (source, store, options) => {
|
|
|
2732
2754
|
}
|
|
2733
2755
|
] : void 0,
|
|
2734
2756
|
attachments: attachments ?? void 0,
|
|
2757
|
+
documents: documents ?? void 0,
|
|
2735
2758
|
now
|
|
2736
2759
|
});
|
|
2737
2760
|
if (lines && !linked && !details.transcripts.some((t) => t.transcript.source === source.name && t.transcript.supersededAt === null))
|
|
@@ -2760,7 +2783,7 @@ unlinked`, format)],
|
|
|
2760
2783
|
return report;
|
|
2761
2784
|
}, "pull");
|
|
2762
2785
|
|
|
2763
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2786
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/read-answers.js
|
|
2764
2787
|
var text3 = string();
|
|
2765
2788
|
var count4 = pipe(number(), integer(), minValue(0));
|
|
2766
2789
|
var id2 = pipe(number(), integer(), minValue(1));
|
|
@@ -2955,10 +2978,10 @@ var eventItem = /* @__PURE__ */ __name((one) => ({
|
|
|
2955
2978
|
updated_at: new Date(one.updatedAt).toISOString()
|
|
2956
2979
|
}), "eventItem");
|
|
2957
2980
|
|
|
2958
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2981
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/recording-transfer.js
|
|
2959
2982
|
var strongRecordingValidator = /* @__PURE__ */ __name((value) => typeof value === "string" && value.length <= 1024 && /^"[\x21\x23-\x7e\x80-\xff]*"$/.test(value), "strongRecordingValidator");
|
|
2960
2983
|
|
|
2961
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2984
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/related-history.js
|
|
2962
2985
|
var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
|
|
2963
2986
|
if (!original || typeof original !== "object" || Array.isArray(original))
|
|
2964
2987
|
throw new CliError("validation_error", "related history request is required");
|
|
@@ -2988,7 +3011,7 @@ var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
|
|
|
2988
3011
|
return { ...input, anchorIds: [...new Set(input.anchorIds)], limit, maxReadBytes };
|
|
2989
3012
|
}, "validateMeetingRelatedHistory");
|
|
2990
3013
|
|
|
2991
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3014
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/result-items.js
|
|
2992
3015
|
var text4 = string();
|
|
2993
3016
|
var identifier = pipe(text4, minLength(1));
|
|
2994
3017
|
var nullableText = nullable(text4);
|
|
@@ -3122,14 +3145,14 @@ var MEETING_RESULT_ENTITIES = {
|
|
|
3122
3145
|
meeting_repair: repair
|
|
3123
3146
|
};
|
|
3124
3147
|
|
|
3125
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3148
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/review.js
|
|
3126
3149
|
var REVIEW_LIMIT = { default: 50, most: 200 };
|
|
3127
3150
|
|
|
3128
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3151
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/save-hints.js
|
|
3129
3152
|
var SAVE_HELP = `Worth keeping \u2014 a decision, a promise, a preference? Record it with \`memo facts add\` or
|
|
3130
3153
|
\`memo memories add\`, citing the msg: locator or meeting: reference as --evidence.`;
|
|
3131
3154
|
|
|
3132
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3155
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/series-history.js
|
|
3133
3156
|
var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
|
|
3134
3157
|
input.signal?.throwIfAborted();
|
|
3135
3158
|
if (!Number.isSafeInteger(input.accountId) || input.accountId <= 0)
|
|
@@ -3150,10 +3173,10 @@ var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
|
|
|
3150
3173
|
return { ...input, limit, maxReadBytes };
|
|
3151
3174
|
}, "validateMeetingSeriesHistory");
|
|
3152
3175
|
|
|
3153
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3176
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/upcoming-validation.js
|
|
3154
3177
|
var occurrenceId = /* @__PURE__ */ __name((value) => typeof value === "string" && value.trim().length > 0 && value.length <= 1e3 && !/[\0\r\n]/.test(value), "occurrenceId");
|
|
3155
3178
|
|
|
3156
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3179
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/series-inventory-validation.js
|
|
3157
3180
|
function invalid4(field, response = false) {
|
|
3158
3181
|
throw new CliError(response ? "invalid_response" : "validation_error", `invalid meeting inventory ${field}`);
|
|
3159
3182
|
}
|
|
@@ -3182,7 +3205,7 @@ var validateMeetingSeriesInventoryCursor = /* @__PURE__ */ __name((value) => {
|
|
|
3182
3205
|
cursorDetails(value);
|
|
3183
3206
|
}, "validateMeetingSeriesInventoryCursor");
|
|
3184
3207
|
|
|
3185
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3208
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/stats.js
|
|
3186
3209
|
var MEETING_COUNTS_GROUPINGS = ["day", "week", "series"];
|
|
3187
3210
|
var zoneOf = /* @__PURE__ */ __name((timeZone) => {
|
|
3188
3211
|
const zone = timeZone ?? "UTC";
|
|
@@ -3317,10 +3340,7 @@ var aggregateMeetingStats = /* @__PURE__ */ __name((rows, timeZone) => {
|
|
|
3317
3340
|
};
|
|
3318
3341
|
}, "aggregateMeetingStats");
|
|
3319
3342
|
|
|
3320
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3321
|
-
var READ_BUDGET_EXCEEDED = "Meeting search exceeds its stored text byte budget";
|
|
3322
|
-
|
|
3323
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/domain/locator.js
|
|
3343
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/domain/locator.js
|
|
3324
3344
|
var SCHEME = "msg:";
|
|
3325
3345
|
var formatLocator = /* @__PURE__ */ __name(({ provider, account, chat, message }) => SCHEME + [provider, account, chat, message].map(encodeURIComponent).join("/"), "formatLocator");
|
|
3326
3346
|
var isLocator = /* @__PURE__ */ __name((reference2) => reference2.trim().startsWith(SCHEME), "isLocator");
|
|
@@ -3334,7 +3354,7 @@ var parseLocator = /* @__PURE__ */ __name((reference2) => {
|
|
|
3334
3354
|
return { provider, account, chat, message };
|
|
3335
3355
|
}, "parseLocator");
|
|
3336
3356
|
|
|
3337
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3357
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/domain/references.js
|
|
3338
3358
|
var SIMPLE_REFERENCES = [
|
|
3339
3359
|
"note",
|
|
3340
3360
|
"document",
|
|
@@ -3490,7 +3510,7 @@ var looksLikeReference = /* @__PURE__ */ __name((text5) => {
|
|
|
3490
3510
|
return match !== null && byPrefix.has(match[1]);
|
|
3491
3511
|
}, "looksLikeReference");
|
|
3492
3512
|
|
|
3493
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3513
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/domain/providers.js
|
|
3494
3514
|
var KINDS = ["messages", "mail", "notes", "documents", "meetings", "events", "crm"];
|
|
3495
3515
|
var MESSENGER_OPENS = { chat: "messages list", message: "messages show", contact: "contacts show" };
|
|
3496
3516
|
var CRM_OPENS = { deal: "deals show", lead: "leads show", pipeline: "pipelines show" };
|
|
@@ -3507,6 +3527,7 @@ var PROVIDERS = [
|
|
|
3507
3527
|
{ name: "obsidian", kind: "notes", aliases: [] },
|
|
3508
3528
|
{ name: "added", kind: "notes", aliases: [] },
|
|
3509
3529
|
{ name: "zoom", kind: "meetings", aliases: [] },
|
|
3530
|
+
{ name: "google-meet", kind: "meetings", aliases: [], command: "meet" },
|
|
3510
3531
|
// Its meetings come from the notes Telemost mails (`keeper@telemost.yandex.ru`), read by a mail rule.
|
|
3511
3532
|
{ name: "telemost", kind: "meetings", aliases: [] },
|
|
3512
3533
|
// A phone export's records: its SMS and its calls in the one account the import names.
|
|
@@ -3522,6 +3543,7 @@ var LABELS = {
|
|
|
3522
3543
|
whatsapp: "WhatsApp",
|
|
3523
3544
|
"whatsapp-bot": "WhatsApp bot",
|
|
3524
3545
|
"google-drive": "Google Drive",
|
|
3546
|
+
"google-meet": "Google Meet",
|
|
3525
3547
|
added: "added by hand",
|
|
3526
3548
|
email: "mail",
|
|
3527
3549
|
telemost: "Telemost"
|
|
@@ -3664,7 +3686,7 @@ var holdsKind = /* @__PURE__ */ __name((provider, kind2) => kindsIn(provider).in
|
|
|
3664
3686
|
var holdsKindOf = /* @__PURE__ */ __name((provider, kind2) => kindIn(provider) === void 0 ? kind2 === "messages" : holdsKind(provider, kind2), "holdsKindOf");
|
|
3665
3687
|
var kindOf2 = /* @__PURE__ */ __name((provider) => kindIn(provider) ?? "messages", "kindOf");
|
|
3666
3688
|
|
|
3667
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3689
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/domain/money.js
|
|
3668
3690
|
var CURRENCY_SCALES = {
|
|
3669
3691
|
AED: 2,
|
|
3670
3692
|
AMD: 2,
|
|
@@ -3758,7 +3780,7 @@ var quantityOf = /* @__PURE__ */ __name((text5) => {
|
|
|
3758
3780
|
}, "quantityOf");
|
|
3759
3781
|
var lineUnits = /* @__PURE__ */ __name((thousandths, unitPrice) => Number((thousandths * BigInt(unitPrice) + 500n) / 1000n), "lineUnits");
|
|
3760
3782
|
|
|
3761
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3783
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/domain/deals.js
|
|
3762
3784
|
var DEAL_KINDS = ["deal", "lead"];
|
|
3763
3785
|
var DEAL_STATUSES = ["open", "won", "lost"];
|
|
3764
3786
|
var STAGE_OUTCOMES = DEAL_STATUSES;
|
|
@@ -3768,7 +3790,7 @@ var dealLine = /* @__PURE__ */ __name((deal) => {
|
|
|
3768
3790
|
return `${deal.title} \xB7 ${deal.stage}${money}${deal.status === "open" ? "" : ` (${deal.status})`}`;
|
|
3769
3791
|
}, "dealLine");
|
|
3770
3792
|
|
|
3771
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3793
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/domain/finance.js
|
|
3772
3794
|
var INVOICE_DIRECTIONS = ["receivable", "payable"];
|
|
3773
3795
|
var INVOICE_STATUSES = ["draft", "issued", "partly_paid", "paid", "void"];
|
|
3774
3796
|
var MONEY_DIRECTIONS = ["in", "out"];
|
|
@@ -3797,7 +3819,7 @@ var paymentLine = /* @__PURE__ */ __name((payment) => {
|
|
|
3797
3819
|
var invoiceTitle = /* @__PURE__ */ __name((invoice) => `Invoice ${invoiceLine(invoice)}`, "invoiceTitle");
|
|
3798
3820
|
var paymentEntryTitle = /* @__PURE__ */ __name((payment) => `Payment \xB7 ${paymentLine(payment)}`, "paymentEntryTitle");
|
|
3799
3821
|
|
|
3800
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3822
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/domain/orders.js
|
|
3801
3823
|
var ORDER_STATUSES = ["placed", "shipped", "delivered", "cancelled", "returned"];
|
|
3802
3824
|
var ORDER_PURPOSES = ["personal", "business", "client", "other"];
|
|
3803
3825
|
var orderLine = /* @__PURE__ */ __name((order) => {
|
|
@@ -3808,7 +3830,7 @@ var orderLine = /* @__PURE__ */ __name((order) => {
|
|
|
3808
3830
|
}, "orderLine");
|
|
3809
3831
|
var orderTitle = /* @__PURE__ */ __name((order) => `Order ${orderLine(order)}`, "orderTitle");
|
|
3810
3832
|
|
|
3811
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3833
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/domain/relations.js
|
|
3812
3834
|
var ORGANIZATION_ROLES = [
|
|
3813
3835
|
"employee",
|
|
3814
3836
|
"contractor",
|
|
@@ -3915,7 +3937,7 @@ var KEYED = "kind IN ('member-of', 'related-to', 'reports-to', 'customer-of', 'p
|
|
|
3915
3937
|
var notOverriddenSql = /* @__PURE__ */ __name((alias) => `NOT EXISTS (SELECT 1 FROM links override WHERE ${KEYED} AND 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");
|
|
3916
3938
|
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");
|
|
3917
3939
|
|
|
3918
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3940
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/domain/crm.js
|
|
3919
3941
|
var CRM_KINDS = ["organization", "person", "deal", "lead"];
|
|
3920
3942
|
var CRM_ACTIVITY_KINDS = ["call", "email", "meeting", "todo", "task", "comment", "other"];
|
|
3921
3943
|
var isCrmUserId = /* @__PURE__ */ __name((id3) => /^\d{1,20}$/.test(id3), "isCrmUserId");
|
|
@@ -3925,7 +3947,7 @@ var normalCrmUserId = /* @__PURE__ */ __name((id3) => {
|
|
|
3925
3947
|
}, "normalCrmUserId");
|
|
3926
3948
|
var isItemKind = /* @__PURE__ */ __name((kind2) => kind2 === "deal" || kind2 === "lead", "isItemKind");
|
|
3927
3949
|
|
|
3928
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3950
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/domain/business.js
|
|
3929
3951
|
var CATALOG_KINDS = ["product", "service"];
|
|
3930
3952
|
var BUSINESS_KINDS = ["invoice", "payment", "order", "contract", "subscription", "product", "wallet"];
|
|
3931
3953
|
var CONTRACT_KINDS = ["sale", "purchase", "service", "lease", "employment", "nda", "license", "other"];
|
|
@@ -3954,7 +3976,7 @@ var subscriptionLine = /* @__PURE__ */ __name((subscription) => `${subscription.
|
|
|
3954
3976
|
var walletLine = /* @__PURE__ */ __name((wallet) => `${wallet.name} \xB7 ${wallet.kind}, ${wallet.currency}${wallet.numberHint === null ? "" : `, \u2026${wallet.numberHint}`}` + notes(wallet.closed ? "closed" : null), "walletLine");
|
|
3955
3977
|
var transactionLine = /* @__PURE__ */ __name((transaction) => `${moneyLabel(transaction.amount, transaction.currency)} ${transaction.direction}${transaction.label === null ? "" : ` \xB7 ${transaction.label}`}, ${dayMonth(transaction.date)}` + notes(transaction.status === "pending" ? "pending" : null, pending(transaction.review)), "transactionLine");
|
|
3956
3978
|
|
|
3957
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3979
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/domain/tags.js
|
|
3958
3980
|
var TAG_TYPES = ["chat", "contact", "message", "task"];
|
|
3959
3981
|
var TAG = /^[a-z0-9-]{1,32}$/;
|
|
3960
3982
|
var tagOf = /* @__PURE__ */ __name((value) => {
|
|
@@ -3996,6 +4018,8 @@ export {
|
|
|
3996
4018
|
canonicalMeetingReference,
|
|
3997
4019
|
meeting,
|
|
3998
4020
|
MEETING_QUERY,
|
|
4021
|
+
MEETING_DOCUMENT_ROLES,
|
|
4022
|
+
READ_BUDGET_EXCEEDED,
|
|
3999
4023
|
meetingHit,
|
|
4000
4024
|
meetingTranscript,
|
|
4001
4025
|
meetingSummary,
|
|
@@ -4073,7 +4097,6 @@ export {
|
|
|
4073
4097
|
validateMeetingSeriesInventoryCursor,
|
|
4074
4098
|
aggregateMeetingCounts,
|
|
4075
4099
|
aggregateMeetingStats,
|
|
4076
|
-
READ_BUDGET_EXCEEDED,
|
|
4077
4100
|
formatLocator,
|
|
4078
4101
|
isLocator,
|
|
4079
4102
|
parseLocator,
|
|
@@ -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.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/mcp/instructions.js
|
|
8
8
|
var instructions = /* @__PURE__ */ __name(({ command, name, profile, writes, skill }) => {
|
|
9
9
|
const all = typeof profile !== "string";
|
|
10
10
|
const offers = /* @__PURE__ */ __name((key) => all || writes.includes(key), "offers");
|