@wirecat/cli-memo 0.131.39 → 0.131.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/memo.js +2 -2
- package/dist/bundle/{all-profiles-5CXMPAOF.js → all-profiles-ZTYUFM24.js} +5 -5
- package/dist/bundle/{anthropic-KJECM7MD.js → anthropic-BLXCM7J2.js} +3 -3
- package/dist/bundle/{app-server-ZO7Z7RMA.js → app-server-MXYDSTTW.js} +35 -35
- package/dist/bundle/auto-2RK6FE5A.js +86 -0
- package/dist/bundle/{bun-V2HGEGFF.js → bun-GFMA4TKJ.js} +2 -2
- package/dist/bundle/{bun-sqlite-DSFSAFNQ.js → bun-sqlite-3V6EB3XP.js} +2 -2
- package/dist/bundle/{chunk-H4GQZLTW.js → chunk-2E4N5DVE.js} +27 -27
- package/dist/bundle/{chunk-72DBFKCI.js → chunk-2G66FZPO.js} +1 -1
- package/dist/bundle/{chunk-3ZEH35NH.js → chunk-2O2BSM4K.js} +1 -1
- package/dist/bundle/{chunk-4MFNKTQQ.js → chunk-3MVDNB6Y.js} +3 -3
- package/dist/bundle/{chunk-WBWFH7ZT.js → chunk-5KL7T2EP.js} +1 -1
- package/dist/bundle/{chunk-AKLFOL4C.js → chunk-6V6VCYOS.js} +3 -3
- package/dist/bundle/{chunk-P3QBCCBA.js → chunk-776YSJJY.js} +1 -1
- package/dist/bundle/{chunk-DMY2YVJ7.js → chunk-7AS5QFWJ.js} +5 -5
- package/dist/bundle/{chunk-GANKKP5F.js → chunk-7EOGXNLO.js} +4 -4
- package/dist/bundle/{chunk-Q3O7N35U.js → chunk-7GEK5BE5.js} +2 -2
- package/dist/bundle/{chunk-BHBLLZAO.js → chunk-A6HC2DWU.js} +90 -74
- package/dist/bundle/{chunk-CQJO22KN.js → chunk-ARNYYXLO.js} +20 -20
- package/dist/bundle/{chunk-UECWAAZ3.js → chunk-AYOFFZMO.js} +4 -4
- package/dist/bundle/{chunk-EP5U5WCQ.js → chunk-B5LF2FVU.js} +1 -1
- package/dist/bundle/{chunk-LXNWBHCK.js → chunk-BA3HPVBN.js} +4 -4
- package/dist/bundle/{chunk-4GA7IMXD.js → chunk-BFN5KXGH.js} +257 -257
- package/dist/bundle/{chunk-YFBNICKS.js → chunk-BJWDBPLF.js} +2 -2
- package/dist/bundle/{chunk-7VBSW2RI.js → chunk-DYSWDGOU.js} +5 -5
- package/dist/bundle/{chunk-G35CZBBF.js → chunk-F3OGJQWY.js} +5 -5
- package/dist/bundle/{chunk-UIUMG7AY.js → chunk-FVN42IND.js} +1 -1
- package/dist/bundle/{chunk-D7JMUN36.js → chunk-G6EOW6PY.js} +2 -2
- package/dist/bundle/{chunk-O6ZLAFWQ.js → chunk-IJJ4OEXK.js} +1 -1
- package/dist/bundle/{chunk-WDDYMCLD.js → chunk-IJS2X4AZ.js} +43 -43
- package/dist/bundle/{chunk-GRTELFME.js → chunk-ISVO2PHD.js} +4 -4
- package/dist/bundle/{chunk-CHAA2BOM.js → chunk-J364I2EL.js} +8 -8
- package/dist/bundle/{chunk-AX6AMVVY.js → chunk-JO3FC5B4.js} +7 -7
- package/dist/bundle/{chunk-QMDVWF3C.js → chunk-LGILT5CA.js} +2 -2
- package/dist/bundle/{chunk-EY42TTWE.js → chunk-LLL4RBDU.js} +11 -11
- package/dist/bundle/{chunk-7DMTHV2P.js → chunk-N2EY7NT3.js} +1 -1
- package/dist/bundle/{chunk-SB7V3HFM.js → chunk-NFN3JTGD.js} +12 -12
- package/dist/bundle/{chunk-WJCBQFEM.js → chunk-NKKC6SLX.js} +1 -1
- package/dist/bundle/{chunk-QZABT7XH.js → chunk-NP7Y3JQ7.js} +9 -9
- package/dist/bundle/{chunk-552IRBSA.js → chunk-NYNUDUFA.js} +4 -4
- package/dist/bundle/{chunk-QL2YLPB5.js → chunk-OLVBY6N6.js} +2 -2
- package/dist/bundle/{chunk-JQSFIPWA.js → chunk-ONJAEHOD.js} +7 -7
- package/dist/bundle/{chunk-U5B2ORUM.js → chunk-OY2CMEUW.js} +3 -3
- package/dist/bundle/{chunk-HB3YU52J.js → chunk-PPSIMMJM.js} +10 -9
- package/dist/bundle/{chunk-QUJXYDYY.js → chunk-QCE6BNKK.js} +2 -2
- package/dist/bundle/{chunk-PWVNSJBL.js → chunk-QUA7EHLA.js} +10 -10
- package/dist/bundle/{chunk-ER7SUNTY.js → chunk-RMJLG2D6.js} +4 -4
- package/dist/bundle/{chunk-OJBM56FX.js → chunk-RMMYPYNA.js} +20 -20
- package/dist/bundle/{chunk-Q35DHKBZ.js → chunk-RNINC74Q.js} +1 -1
- package/dist/bundle/{chunk-H4DBYU2J.js → chunk-RZUSWGAC.js} +2 -2
- package/dist/bundle/{chunk-S7W5GFOI.js → chunk-S7TVQ7ES.js} +305 -283
- package/dist/bundle/{chunk-KBDZG6XU.js → chunk-SCIU5WHL.js} +3 -3
- package/dist/bundle/{chunk-XED6NO7E.js → chunk-UA2H5FRV.js} +1 -1
- package/dist/bundle/{chunk-6BJPSIFE.js → chunk-ULDE2Y7M.js} +39 -35
- package/dist/bundle/{chunk-DZBNKSE2.js → chunk-V5TOZXBU.js} +371 -358
- package/dist/bundle/{chunk-TSGJRL2S.js → chunk-VF24JTL4.js} +1 -1
- package/dist/bundle/{chunk-B2YW6VOA.js → chunk-VT4PCMY2.js} +1 -1
- package/dist/bundle/{chunk-ZQTFPZ36.js → chunk-WFME7ILV.js} +5 -5
- package/dist/bundle/{chunk-SANEKFUF.js → chunk-WG3JJ7D5.js} +1 -1
- package/dist/bundle/{chunk-QAFJG52K.js → chunk-XXDWCZRM.js} +1 -1
- package/dist/bundle/{chunk-TOZ2COFV.js → chunk-Y4B4273X.js} +7 -7
- package/dist/bundle/{chunk-RBLUTSSL.js → chunk-Y7XDV4GQ.js} +6 -6
- package/dist/bundle/{chunk-5I75PUEK.js → chunk-YNYOWOKD.js} +208 -166
- package/dist/bundle/{chunk-P357OGUL.js → chunk-ZETAM63O.js} +1 -1
- package/dist/bundle/{command-contract-JXLIGF3U.js → command-contract-KCV6NNGF.js} +11 -11
- package/dist/bundle/{decode-HXMDIZKS.js → decode-SU7TIUXV.js} +2 -2
- package/dist/bundle/{echarts-MRWQC3FY.js → echarts-CJG2WVOX.js} +2 -2
- package/dist/bundle/{embed-IEJFYZ7N.js → embed-IBURCPTK.js} +3 -3
- package/dist/bundle/{embedder-N2TXC47Z.js → embedder-SK773RJG.js} +6 -6
- package/dist/bundle/{entry-VX4RACD7.js → entry-6WOJUMZN.js} +4 -4
- package/dist/bundle/failure-4N6GOEGN.js +66 -0
- package/dist/bundle/{first-run-2GXQUNFV.js → first-run-CMSDLJGE.js} +5 -5
- package/dist/bundle/{first-screen-JRKMDJPK.js → first-screen-6IZLOQ3Q.js} +12 -12
- package/dist/bundle/{instructions-FR4H42RI.js → instructions-RHGGUIBR.js} +1 -1
- package/dist/bundle/{mcp-IP3FEW24.js → mcp-HBKMY35O.js} +35 -35
- package/dist/bundle/memo.js +6 -6
- package/dist/bundle/{node-QWBBKDHE.js → node-NBXEN7JU.js} +2 -2
- package/dist/bundle/{node-sqlite-GKJHUPHC.js → node-sqlite-WAGIYOYR.js} +3 -3
- package/dist/bundle/{oauth-ZQ7B32ZI.js → oauth-INSEXJD2.js} +4 -4
- package/dist/bundle/{open-TDGXVXNV.js → open-LXFV2C67.js} +2 -2
- package/dist/bundle/{openai-3T4YGUZM.js → openai-OCWAXC7E.js} +7 -7
- package/dist/bundle/{process-OBTDURL4.js → process-MRPJP32M.js} +1 -1
- package/dist/bundle/{program-6UJEO4TI.js → program-XKO4X6BB.js} +91 -69
- package/dist/bundle/{prompt-JZIIKSM4.js → prompt-ROLOHFNO.js} +2 -2
- package/dist/bundle/{recognize-47F6WJYE.js → recognize-63ZLC4DN.js} +1 -1
- package/dist/bundle/{remote-NHSYSI2S.js → remote-J4ZBFG3Y.js} +4 -4
- package/dist/bundle/{rerank-HONNCBTA.js → rerank-HUQCCGYO.js} +4 -4
- package/dist/bundle/{serve-63BFDEQS.js → serve-MFJYL4AB.js} +6 -6
- package/dist/bundle/{server-QWJPOH7K.js → server-2JQ5K33G.js} +50 -50
- package/dist/bundle/server-RKPGL53W.js +48 -0
- package/dist/bundle/server-ZN2KC4EE.js +61 -0
- package/dist/bundle/{state-ZLODXERO.js → state-AV5MO77W.js} +3 -3
- package/dist/bundle/{store-Q36VLED7.js → store-H4HCVN4H.js} +9 -9
- package/dist/bundle/store-maintenance-command-4GYOMUXE.js +48 -0
- package/dist/bundle/update-ATXEHV72.js +69 -0
- package/dist/finance/finance.d.ts +1 -1
- package/dist/finance/finance.d.ts.map +1 -1
- package/dist/finance/finance.js +2 -0
- package/dist/finance/finance.js.map +1 -1
- package/dist/knowledge/project-status-command.js +1 -1
- package/dist/knowledge/project-status-command.js.map +1 -1
- package/dist/mail/findings-command.d.ts.map +1 -1
- package/dist/mail/findings-command.js +9 -13
- package/dist/mail/findings-command.js.map +1 -1
- package/dist/review/command.d.ts +40 -0
- package/dist/review/command.d.ts.map +1 -1
- package/dist/review/command.js +25 -1
- package/dist/review/command.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/skills/mail-triage/SKILL.md +8 -9
- package/dist/bundle/auto-MA47DOER.js +0 -86
- package/dist/bundle/failure-LU3CYK3U.js +0 -66
- package/dist/bundle/server-I6M5QH5W.js +0 -48
- package/dist/bundle/server-XYUNBCYP.js +0 -61
- package/dist/bundle/store-maintenance-command-EM53HVOY.js +0 -48
- package/dist/bundle/update-UKMV74FK.js +0 -69
- /package/dist/bundle/{chunk-TYQAAHHM.js → chunk-VVDYRHYP.js} +0 -0
|
@@ -859,7 +859,7 @@ var matches = /* @__PURE__ */ __name((node, item, byName, options) => {
|
|
|
859
859
|
}, "matches");
|
|
860
860
|
var evaluate = /* @__PURE__ */ __name((ast, fields, item, options = {}) => matches(ast.root, item, new Map(fields.map((field) => [field.name, field])), options), "evaluate");
|
|
861
861
|
|
|
862
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
862
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/meetings/reference.js
|
|
863
863
|
var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "expected meeting:<accountId>/<meetingId>[/<transcriptId>[/<cuePosition>]] with safe integer IDs"), "invalid");
|
|
864
864
|
var integer2 = /* @__PURE__ */ __name((value, minimum = 1) => {
|
|
865
865
|
if (!Number.isSafeInteger(value) || value < minimum)
|
|
@@ -896,7 +896,7 @@ var parseMeetingReference = /* @__PURE__ */ __name((text6) => {
|
|
|
896
896
|
}, "parseMeetingReference");
|
|
897
897
|
var canonicalMeetingReference = /* @__PURE__ */ __name((text6) => formatMeetingReference(parseMeetingReference(text6)), "canonicalMeetingReference");
|
|
898
898
|
|
|
899
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
899
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/meetings/item.js
|
|
900
900
|
var text = string();
|
|
901
901
|
var count = pipe(number(), integer(), minValue(0));
|
|
902
902
|
var MEETING_ISSUES = ["time_without_zone"];
|
|
@@ -961,7 +961,7 @@ var MEETING_QUERY = {
|
|
|
961
961
|
})
|
|
962
962
|
};
|
|
963
963
|
|
|
964
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
964
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/meetings/join-key.js
|
|
965
965
|
var joinKeyOf = /* @__PURE__ */ __name((url) => {
|
|
966
966
|
const parsed = urlOf(url);
|
|
967
967
|
if (!parsed)
|
|
@@ -995,7 +995,7 @@ var urlOf = /* @__PURE__ */ __name((url) => {
|
|
|
995
995
|
}
|
|
996
996
|
}, "urlOf");
|
|
997
997
|
|
|
998
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
998
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/meetings/calendar-text.js
|
|
999
999
|
var ENTITIES = { amp: "&", lt: "<", gt: ">", quot: '"', "#39": "'", apos: "'", nbsp: " " };
|
|
1000
1000
|
var SECRET_LINE = /(?<![\p{L}\p{N}])(pass ?codes?|passwords?|pwd|pins?|access ?codes?|meeting ?codes?|kennwort|пароль|пин-?код|код доступа)(?![\p{L}\p{N}])|pwd=/iu;
|
|
1001
1001
|
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");
|
|
@@ -1028,7 +1028,7 @@ var entryMetadata = /* @__PURE__ */ __name((metadata) => {
|
|
|
1028
1028
|
return kept;
|
|
1029
1029
|
}, "entryMetadata");
|
|
1030
1030
|
|
|
1031
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1031
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/meetings/cue-fingerprint.js
|
|
1032
1032
|
import { createHash } from "node:crypto";
|
|
1033
1033
|
var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256").update(JSON.stringify({
|
|
1034
1034
|
reference: cue2.reference,
|
|
@@ -1042,7 +1042,7 @@ var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256"
|
|
|
1042
1042
|
text: cue2.text
|
|
1043
1043
|
})).digest("hex"), "meetingCueFingerprint");
|
|
1044
1044
|
|
|
1045
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1045
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/meetings/event-store.js
|
|
1046
1046
|
var UNTIL = /(?:^|;)UNTIL=(\d{4})(\d{2})(\d{2})(?:T(\d{2})(\d{2})(\d{2})Z?)?(?:;|$)/iu;
|
|
1047
1047
|
var seriesEnd = /* @__PURE__ */ __name((entry) => {
|
|
1048
1048
|
if (entry.recurrenceEndsAt !== null)
|
|
@@ -1065,7 +1065,7 @@ var entryInWindow = /* @__PURE__ */ __name((entry, window) => {
|
|
|
1065
1065
|
return Math.max(entry.endsAt ?? start, start + 1) > window.from;
|
|
1066
1066
|
}, "entryInWindow");
|
|
1067
1067
|
|
|
1068
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1068
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/meetings/answers.js
|
|
1069
1069
|
var text2 = string();
|
|
1070
1070
|
var count2 = pipe(number(), integer(), minValue(0));
|
|
1071
1071
|
var iso2 = /* @__PURE__ */ __name((ms) => ms === null ? null : new Date(ms).toISOString(), "iso");
|
|
@@ -1300,7 +1300,7 @@ var meetingHitsList = /* @__PURE__ */ __name((found, limit, command = "search me
|
|
|
1300
1300
|
};
|
|
1301
1301
|
}, "meetingHitsList");
|
|
1302
1302
|
|
|
1303
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1303
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/meetings/participant-search.js
|
|
1304
1304
|
var normalizeMeetingParticipantQuery = /* @__PURE__ */ __name((text6) => text6.normalize("NFKC").toLowerCase(), "normalizeMeetingParticipantQuery");
|
|
1305
1305
|
var validateMeetingParticipantQuery = /* @__PURE__ */ __name((query) => {
|
|
1306
1306
|
if (typeof query !== "string" || !query.trim() || query.length > 500 || query.includes("\0"))
|
|
@@ -1324,7 +1324,7 @@ var validateMeetingParticipantSearch = /* @__PURE__ */ __name((query, input) =>
|
|
|
1324
1324
|
};
|
|
1325
1325
|
}, "validateMeetingParticipantSearch");
|
|
1326
1326
|
|
|
1327
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1327
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/meetings/reads.js
|
|
1328
1328
|
var MeetingError = class extends CliError {
|
|
1329
1329
|
static {
|
|
1330
1330
|
__name(this, "MeetingError");
|
|
@@ -1456,7 +1456,7 @@ var meetingSummaryAnswer = /* @__PURE__ */ __name(async (store, id4, accountId)
|
|
|
1456
1456
|
return wholeList(details.summaries.map((one) => meetingSummaryItem(details.meeting.accountId, one)));
|
|
1457
1457
|
}, "meetingSummaryAnswer");
|
|
1458
1458
|
|
|
1459
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1459
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/meetings/export.js
|
|
1460
1460
|
var timestamp = /* @__PURE__ */ __name((milliseconds) => {
|
|
1461
1461
|
if (!Number.isSafeInteger(milliseconds) || milliseconds < 0)
|
|
1462
1462
|
throw new MeetingError("validation_error", "transcript times must be nonnegative integer milliseconds");
|
|
@@ -1552,7 +1552,7 @@ var exportMeeting = /* @__PURE__ */ __name(async (store, id4, options) => {
|
|
|
1552
1552
|
};
|
|
1553
1553
|
}, "exportMeeting");
|
|
1554
1554
|
|
|
1555
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1555
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/meetings/payment.js
|
|
1556
1556
|
var FACT_TYPES = ["fact", "statement", "question", "decision", "promise"];
|
|
1557
1557
|
var PAYMENT_DIRECTIONS = ["to_us", "from_us"];
|
|
1558
1558
|
var PAYMENT_STATES = ["expected", "paid", "cancelled"];
|
|
@@ -1646,13 +1646,13 @@ var paymentTitle = /* @__PURE__ */ __name((fact) => {
|
|
|
1646
1646
|
return `${grouped(payment.amount)} ${payment.currency} ${way}${party}${item}${due} (${payment.state})`;
|
|
1647
1647
|
}, "paymentTitle");
|
|
1648
1648
|
|
|
1649
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1649
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
|
|
1650
1650
|
import { createHash as createHash2 } from "node:crypto";
|
|
1651
1651
|
|
|
1652
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1652
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/meetings/timestamp.js
|
|
1653
1653
|
var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
|
|
1654
1654
|
if (typeof value !== "string" || !/^\d{4}-\d{2}-\d{2}T.+(?:Z|[+-]\d{2}:\d{2})$/i.test(value) || !Number.isFinite(Date.parse(value)))
|
|
1655
|
-
throw new CliError("validation_error", `${name} must be an ISO timestamp with a timezone`);
|
|
1655
|
+
throw new CliError("validation_error", `${name} must be an ISO timestamp with a timezone, such as 2026-11-09T09:00:00Z`);
|
|
1656
1656
|
const date = value.slice(0, 10);
|
|
1657
1657
|
const instant = Date.parse(`${date}T00:00:00Z`);
|
|
1658
1658
|
if (!Number.isFinite(instant) || new Date(instant).toISOString().slice(0, 10) !== date)
|
|
@@ -1660,7 +1660,7 @@ var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
|
|
|
1660
1660
|
return new Date(value).toISOString();
|
|
1661
1661
|
}, "meetingTimestamp");
|
|
1662
1662
|
|
|
1663
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1663
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
|
|
1664
1664
|
var TASK_TYPES = ["bug", "feature", "chore"];
|
|
1665
1665
|
var invalid3 = /* @__PURE__ */ __name((message) => {
|
|
1666
1666
|
throw new CliError("validation_error", message);
|
|
@@ -1672,23 +1672,32 @@ var findingText = /* @__PURE__ */ __name((value, limit) => {
|
|
|
1672
1672
|
}, "findingText");
|
|
1673
1673
|
var findingHash = /* @__PURE__ */ __name((value) => createHash2("sha256").update(JSON.stringify(value)).digest("hex"), "findingHash");
|
|
1674
1674
|
var snakeCase = /* @__PURE__ */ __name((key) => key.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snakeCase");
|
|
1675
|
+
var findingWhere = /* @__PURE__ */ __name((of) => {
|
|
1676
|
+
const id4 = typeof of.id === "string" ? of.id : null;
|
|
1677
|
+
const kind = typeof of.kind === "string" ? of.kind : null;
|
|
1678
|
+
return {
|
|
1679
|
+
where: id4 || kind ? ` in ${[id4, kind && `(${kind})`].filter(Boolean).join(" ")}` : "",
|
|
1680
|
+
named: { ...id4 ? { finding: id4 } : {}, ...kind ? { kind } : {} }
|
|
1681
|
+
};
|
|
1682
|
+
}, "findingWhere");
|
|
1675
1683
|
var findingFields = /* @__PURE__ */ __name((value, allowed, noun, of = value) => {
|
|
1676
1684
|
const unknown2 = Object.keys(value).filter((key) => !allowed.includes(key));
|
|
1677
1685
|
if (!unknown2.length)
|
|
1678
1686
|
return;
|
|
1679
1687
|
const fields = unknown2.map(snakeCase);
|
|
1680
1688
|
const takes = allowed.map(snakeCase);
|
|
1681
|
-
const
|
|
1682
|
-
|
|
1683
|
-
const where = id4 || kind ? ` in ${[id4, kind && `(${kind})`].filter(Boolean).join(" ")}` : "";
|
|
1684
|
-
throw new CliError("validation_error", `unknown ${noun} field${fields.length > 1 ? "s" : ""} ${fields.join(", ")}${where}; it takes ${takes.join(", ")}`, {
|
|
1685
|
-
reason: "finding.unknown-field",
|
|
1686
|
-
fields,
|
|
1687
|
-
allowed: takes,
|
|
1688
|
-
...id4 ? { finding: id4 } : {},
|
|
1689
|
-
...kind ? { kind } : {}
|
|
1690
|
-
});
|
|
1689
|
+
const { where, named } = findingWhere(of);
|
|
1690
|
+
throw new CliError("validation_error", `unknown ${noun} field${fields.length > 1 ? "s" : ""} ${fields.join(", ")}${where}; it takes ${takes.join(", ")}`, { reason: "finding.unknown-field", fields, allowed: takes, ...named });
|
|
1691
1691
|
}, "findingFields");
|
|
1692
|
+
var findingNeeds = /* @__PURE__ */ __name((value, needed, noun) => {
|
|
1693
|
+
const missing = needed.filter((key) => value[key] === void 0);
|
|
1694
|
+
if (!missing.length)
|
|
1695
|
+
return;
|
|
1696
|
+
const fields = missing.map(snakeCase);
|
|
1697
|
+
const needs = needed.map(snakeCase);
|
|
1698
|
+
const { where, named } = findingWhere(value);
|
|
1699
|
+
throw new CliError("validation_error", `missing ${noun} field${fields.length > 1 ? "s" : ""} ${fields.join(", ")}${where}; it needs ${needs.join(", ")}`, { reason: "finding.missing-field", fields, needs, ...named });
|
|
1700
|
+
}, "findingNeeds");
|
|
1692
1701
|
var SUBJECT = /^(person|organization|project):[1-9]\d*$|^task:[A-Za-z0-9][A-Za-z0-9_.-]{0,63}$/;
|
|
1693
1702
|
var validEvidence = /* @__PURE__ */ __name((raw, rules) => {
|
|
1694
1703
|
if (!Array.isArray(raw) || raw.length < 1 || raw.length > 8)
|
|
@@ -1780,8 +1789,10 @@ var validateFinding = /* @__PURE__ */ __name((finding, rules, ids2) => {
|
|
|
1780
1789
|
return invalid3("a task finding type is bug, chore or feature");
|
|
1781
1790
|
if (!["explicit", "inferred"].includes(finding.commitment))
|
|
1782
1791
|
return invalid3("task commitment must be explicit or inferred");
|
|
1783
|
-
if (finding.dueAt === void 0 !== (finding.dueEvidence === void 0)
|
|
1784
|
-
return invalid3(
|
|
1792
|
+
if (finding.dueAt === void 0 !== (finding.dueEvidence === void 0))
|
|
1793
|
+
return invalid3(`due_at comes with due_evidence: the ${rules.cited} references of this finding's evidence that give the date, as a list of strings such as ["<reference>"]`);
|
|
1794
|
+
if (finding.assignee === void 0 !== (finding.assigneeEvidence === void 0))
|
|
1795
|
+
return invalid3(`assignee comes with assignee_evidence: the ${rules.cited} references of this finding's evidence that name them, as a list of strings such as ["<reference>"]`);
|
|
1785
1796
|
if (finding.assignee !== void 0 && (typeof finding.assignee !== "string" || !/^person:[1-9]\d*$/.test(finding.assignee)))
|
|
1786
1797
|
return invalid3("an assignee must be a person reference");
|
|
1787
1798
|
return {
|
|
@@ -1792,15 +1803,18 @@ var validateFinding = /* @__PURE__ */ __name((finding, rules, ids2) => {
|
|
|
1792
1803
|
reason: findingText(finding.reason, 2e3),
|
|
1793
1804
|
commitment: finding.commitment,
|
|
1794
1805
|
...finding.dueAt === void 0 ? {} : {
|
|
1795
|
-
dueAt: meetingTimestamp(finding.dueAt, "
|
|
1796
|
-
dueEvidence: support(finding.dueEvidence, evidence)
|
|
1806
|
+
dueAt: meetingTimestamp(finding.dueAt, "a task's due_at"),
|
|
1807
|
+
dueEvidence: support(finding.dueEvidence, evidence, "due_evidence")
|
|
1797
1808
|
},
|
|
1798
|
-
...finding.assignee === void 0 ? {} : {
|
|
1809
|
+
...finding.assignee === void 0 ? {} : {
|
|
1810
|
+
assignee: finding.assignee,
|
|
1811
|
+
assigneeEvidence: support(finding.assigneeEvidence, evidence, "assignee_evidence")
|
|
1812
|
+
}
|
|
1799
1813
|
};
|
|
1800
1814
|
}, "validateFinding");
|
|
1801
|
-
var support = /* @__PURE__ */ __name((value, evidence) => {
|
|
1815
|
+
var support = /* @__PURE__ */ __name((value, evidence, field) => {
|
|
1802
1816
|
if (!Array.isArray(value) || value.length < 1 || value.length > 8 || value.some((ref) => typeof ref !== "string" || !evidence.some((item) => item.reference === ref)))
|
|
1803
|
-
return invalid3(
|
|
1817
|
+
return invalid3(`${field} lists 1\u20138 references this finding's evidence cites, as plain strings such as ["<reference>"], not evidence objects`);
|
|
1804
1818
|
return [...new Set(value)].sort();
|
|
1805
1819
|
}, "support");
|
|
1806
1820
|
var validateBatch = /* @__PURE__ */ __name((input, rules, most, one) => {
|
|
@@ -1819,7 +1833,7 @@ var validateBatch = /* @__PURE__ */ __name((input, rules, most, one) => {
|
|
|
1819
1833
|
var validateFindings = /* @__PURE__ */ __name((input, rules) => validateBatch(input, rules, 16, (finding, ids2) => validateFinding(finding, rules, ids2)), "validateFindings");
|
|
1820
1834
|
var findingFingerprint = /* @__PURE__ */ __name(({ id: _id, ...finding }) => findingHash(finding), "findingFingerprint");
|
|
1821
1835
|
|
|
1822
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1836
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/meetings/findings.js
|
|
1823
1837
|
var MEETING_FINDINGS_KIND = "meeting_findings";
|
|
1824
1838
|
var cue = /* @__PURE__ */ __name((raw) => {
|
|
1825
1839
|
const reference2 = canonicalMeetingReference(raw);
|
|
@@ -1830,7 +1844,7 @@ var cue = /* @__PURE__ */ __name((raw) => {
|
|
|
1830
1844
|
var validateMeetingFindings = /* @__PURE__ */ __name((input) => validateFindings(input, { plural: "meeting findings", singular: "meeting finding", cited: "cue", reference: cue }), "validateMeetingFindings");
|
|
1831
1845
|
var meetingFindingFingerprint = findingFingerprint;
|
|
1832
1846
|
|
|
1833
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1847
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/meetings/result-items.js
|
|
1834
1848
|
var text3 = string();
|
|
1835
1849
|
var identifier = pipe(text3, minLength(1));
|
|
1836
1850
|
var nullableText = nullable(text3);
|
|
@@ -1963,7 +1977,7 @@ var MEETING_RESULT_ENTITIES = {
|
|
|
1963
1977
|
meeting_repair: repair
|
|
1964
1978
|
};
|
|
1965
1979
|
|
|
1966
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1980
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/meetings/event-query.js
|
|
1967
1981
|
var EVENT_QUERY = defineQuery({
|
|
1968
1982
|
entity: "event",
|
|
1969
1983
|
backend: "sql",
|
|
@@ -1979,7 +1993,7 @@ var EVENT_QUERY = defineQuery({
|
|
|
1979
1993
|
]
|
|
1980
1994
|
});
|
|
1981
1995
|
|
|
1982
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1996
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/meetings/events.js
|
|
1983
1997
|
var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now()) => {
|
|
1984
1998
|
const current = await store.meeting(details.meeting.id);
|
|
1985
1999
|
if (!current)
|
|
@@ -2022,7 +2036,7 @@ var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now())
|
|
|
2022
2036
|
return (await store.events()).find((e) => e.id === linked?.meeting.eventId) ?? null;
|
|
2023
2037
|
}, "linkEvent");
|
|
2024
2038
|
|
|
2025
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2039
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/meetings/hit-query.js
|
|
2026
2040
|
var context = {
|
|
2027
2041
|
command: "search meetings",
|
|
2028
2042
|
guide: "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md#\u0432\u0441\u0442\u0440\u0435\u0447\u0438"
|
|
@@ -2141,7 +2155,7 @@ var meetingWordsQuery = /* @__PURE__ */ __name((text6) => {
|
|
|
2141
2155
|
return { version: 1, language: "lucene-v1", root };
|
|
2142
2156
|
}, "meetingWordsQuery");
|
|
2143
2157
|
|
|
2144
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2158
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/meetings/language.js
|
|
2145
2159
|
var LATIN_WORDS = {
|
|
2146
2160
|
en: ["the", "and", "is", "that", "you", "this", "what", "have", "with", "are"],
|
|
2147
2161
|
es: ["el", "los", "las", "por", "pero", "para", "est\xE1", "muy", "tambi\xE9n", "hay"],
|
|
@@ -2190,7 +2204,7 @@ var transcriptLanguage = /* @__PURE__ */ __name((texts) => {
|
|
|
2190
2204
|
return null;
|
|
2191
2205
|
}, "transcriptLanguage");
|
|
2192
2206
|
|
|
2193
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2207
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/meetings/ingest.js
|
|
2194
2208
|
var contentHash = /* @__PURE__ */ __name(async (text6) => {
|
|
2195
2209
|
const bytes = await crypto.subtle.digest("SHA-256", new TextEncoder().encode(text6));
|
|
2196
2210
|
return Array.from(new Uint8Array(bytes), (byte) => byte.toString(16).padStart(2, "0")).join("");
|
|
@@ -2227,7 +2241,7 @@ var timestamp2 = /* @__PURE__ */ __name((value) => {
|
|
|
2227
2241
|
return time2;
|
|
2228
2242
|
}, "timestamp");
|
|
2229
2243
|
|
|
2230
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2244
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/meetings/transcript-text.js
|
|
2231
2245
|
var TranscriptTextError = class extends Error {
|
|
2232
2246
|
static {
|
|
2233
2247
|
__name(this, "TranscriptTextError");
|
|
@@ -2282,7 +2296,7 @@ var parseTranscriptText = /* @__PURE__ */ __name((input) => {
|
|
|
2282
2296
|
return { header, lines };
|
|
2283
2297
|
}, "parseTranscriptText");
|
|
2284
2298
|
|
|
2285
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2299
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/meetings/vtt.js
|
|
2286
2300
|
var VttError = class extends Error {
|
|
2287
2301
|
static {
|
|
2288
2302
|
__name(this, "VttError");
|
|
@@ -2334,7 +2348,7 @@ var parseVtt = /* @__PURE__ */ __name((input) => {
|
|
|
2334
2348
|
return cues;
|
|
2335
2349
|
}, "parseVtt");
|
|
2336
2350
|
|
|
2337
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2351
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/meetings/import.js
|
|
2338
2352
|
var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now()) => {
|
|
2339
2353
|
const report = { meetings: 0, participants: 0, transcriptRows: 0, summaries: 0, warnings: [] };
|
|
2340
2354
|
for (const file of files) {
|
|
@@ -2367,10 +2381,10 @@ var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now())
|
|
|
2367
2381
|
return report;
|
|
2368
2382
|
}, "importFiles");
|
|
2369
2383
|
|
|
2370
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2384
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/meetings/links.js
|
|
2371
2385
|
var CHAT_MESSAGES_READ = 1e5;
|
|
2372
2386
|
|
|
2373
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2387
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/meetings/provider.js
|
|
2374
2388
|
var snapshotMeetingScope = /* @__PURE__ */ __name((scope2) => {
|
|
2375
2389
|
const provider = scope2?.provider;
|
|
2376
2390
|
const account = scope2?.account;
|
|
@@ -2379,7 +2393,7 @@ var snapshotMeetingScope = /* @__PURE__ */ __name((scope2) => {
|
|
|
2379
2393
|
return Object.freeze({ provider, account });
|
|
2380
2394
|
}, "snapshotMeetingScope");
|
|
2381
2395
|
|
|
2382
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2396
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/meetings/meeting-management.js
|
|
2383
2397
|
var nonempty = /* @__PURE__ */ __name((value, name) => {
|
|
2384
2398
|
if (typeof value !== "string" || !value.trim())
|
|
2385
2399
|
throw new CliError("validation_error", `${name} must be nonempty`);
|
|
@@ -2430,7 +2444,7 @@ var validateMeetingChange = /* @__PURE__ */ __name((change, create) => {
|
|
|
2430
2444
|
return Object.freeze(result);
|
|
2431
2445
|
}, "validateMeetingChange");
|
|
2432
2446
|
|
|
2433
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2447
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/meetings/passage.js
|
|
2434
2448
|
var meetingHitContextLimits = /* @__PURE__ */ __name((options = {}) => {
|
|
2435
2449
|
const { before = 3, after = 3, bytes = 65536, max_read_bytes = 4194304, expected_fingerprint } = options;
|
|
2436
2450
|
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)))
|
|
@@ -2443,7 +2457,7 @@ var validateMeetingPassage = /* @__PURE__ */ __name((reference2, options) => {
|
|
|
2443
2457
|
throw new CliError("validation_error", "choose a cue reference and json, text or markdown output");
|
|
2444
2458
|
}, "validateMeetingPassage");
|
|
2445
2459
|
|
|
2446
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2460
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/meetings/preparation-context.js
|
|
2447
2461
|
var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
|
|
2448
2462
|
if (!original || typeof original !== "object" || Array.isArray(original))
|
|
2449
2463
|
throw new CliError("validation_error", "meeting preparation context is required");
|
|
@@ -2468,7 +2482,7 @@ var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
|
|
|
2468
2482
|
return { ...input, limit, maxReadBytes };
|
|
2469
2483
|
}, "validateMeetingPreparationContext");
|
|
2470
2484
|
|
|
2471
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2485
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-answer.js
|
|
2472
2486
|
var count4 = pipe(number(), integer(), minValue(0));
|
|
2473
2487
|
var id = pipe(string(), minLength(1));
|
|
2474
2488
|
var meetingProjectEvidence = strictObject({
|
|
@@ -2589,7 +2603,7 @@ var meetingProjectEvidenceAnswer = /* @__PURE__ */ __name((page, prepared, comma
|
|
|
2589
2603
|
};
|
|
2590
2604
|
}, "meetingProjectEvidenceAnswer");
|
|
2591
2605
|
|
|
2592
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2606
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/meetings/search-validation.js
|
|
2593
2607
|
var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
|
|
2594
2608
|
const integer3 = /* @__PURE__ */ __name((value, low, high) => Number.isSafeInteger(value) && value >= low && value <= high, "integer");
|
|
2595
2609
|
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) || [
|
|
@@ -2609,7 +2623,7 @@ var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
|
|
|
2609
2623
|
throw new CliError("validation_error", "choose one project selector and one tag or topic selector");
|
|
2610
2624
|
}, "validateMeetingHitSearch");
|
|
2611
2625
|
|
|
2612
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2626
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-query.js
|
|
2613
2627
|
var ids = {
|
|
2614
2628
|
meeting_id: "meetingId",
|
|
2615
2629
|
identity_id: "participantIdentityId",
|
|
@@ -2700,7 +2714,7 @@ var prepareMeetingProjectEvidence = /* @__PURE__ */ __name((project2, request =
|
|
|
2700
2714
|
return { project: project2.trim(), options, query: frozen.join(" AND ") };
|
|
2701
2715
|
}, "prepareMeetingProjectEvidence");
|
|
2702
2716
|
|
|
2703
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2717
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/meetings/project-evidence.js
|
|
2704
2718
|
var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project2, request = {}, now = Date.now()) => {
|
|
2705
2719
|
const prepared = prepareMeetingProjectEvidence(project2, request, now);
|
|
2706
2720
|
const page = await read(prepared.project, prepared.options);
|
|
@@ -2708,7 +2722,7 @@ var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project2, r
|
|
|
2708
2722
|
return meetingProjectEvidenceAnswer(page, prepared);
|
|
2709
2723
|
}, "readMeetingProjectEvidence");
|
|
2710
2724
|
|
|
2711
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2725
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/meetings/pull.js
|
|
2712
2726
|
var participantInput = /* @__PURE__ */ __name((p, provider, occurrenceId2, position, accountId) => {
|
|
2713
2727
|
const { identityExternalId, ...fields } = p;
|
|
2714
2728
|
const externalId = identityExternalId ?? (p.email ? `email:${p.email.toLowerCase()}` : p.externalId) ?? `name:${p.displayName ?? "unknown"}@${accountId}/${occurrenceId2}:${position}`;
|
|
@@ -2847,7 +2861,7 @@ unlinked`, format)],
|
|
|
2847
2861
|
return report;
|
|
2848
2862
|
}, "pull");
|
|
2849
2863
|
|
|
2850
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2864
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/meetings/read-answers.js
|
|
2851
2865
|
var text4 = string();
|
|
2852
2866
|
var count5 = pipe(number(), integer(), minValue(0));
|
|
2853
2867
|
var id2 = pipe(number(), integer(), minValue(1));
|
|
@@ -3041,10 +3055,10 @@ var eventItem = /* @__PURE__ */ __name((one) => ({
|
|
|
3041
3055
|
updated_at: new Date(one.updatedAt).toISOString()
|
|
3042
3056
|
}), "eventItem");
|
|
3043
3057
|
|
|
3044
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3058
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/meetings/recording-transfer.js
|
|
3045
3059
|
var strongRecordingValidator = /* @__PURE__ */ __name((value) => typeof value === "string" && value.length <= 1024 && /^"[\x21\x23-\x7e\x80-\xff]*"$/.test(value), "strongRecordingValidator");
|
|
3046
3060
|
|
|
3047
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3061
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/meetings/related-history.js
|
|
3048
3062
|
var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
|
|
3049
3063
|
if (!original || typeof original !== "object" || Array.isArray(original))
|
|
3050
3064
|
throw new CliError("validation_error", "related history request is required");
|
|
@@ -3074,14 +3088,14 @@ var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
|
|
|
3074
3088
|
return { ...input, anchorIds: [...new Set(input.anchorIds)], limit, maxReadBytes };
|
|
3075
3089
|
}, "validateMeetingRelatedHistory");
|
|
3076
3090
|
|
|
3077
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3091
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/meetings/review.js
|
|
3078
3092
|
var REVIEW_LIMIT = { default: 50, most: 200 };
|
|
3079
3093
|
|
|
3080
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3094
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/meetings/save-hints.js
|
|
3081
3095
|
var SAVE_HELP = `Worth keeping \u2014 a decision, a promise, a preference? Record it with \`memo facts add\` or
|
|
3082
3096
|
\`memo memories add\`, citing the msg: locator or meeting: reference as --evidence.`;
|
|
3083
3097
|
|
|
3084
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3098
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/meetings/series-history.js
|
|
3085
3099
|
var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
|
|
3086
3100
|
input.signal?.throwIfAborted();
|
|
3087
3101
|
if (!Number.isSafeInteger(input.accountId) || input.accountId <= 0)
|
|
@@ -3102,7 +3116,7 @@ var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
|
|
|
3102
3116
|
return { ...input, limit, maxReadBytes };
|
|
3103
3117
|
}, "validateMeetingSeriesHistory");
|
|
3104
3118
|
|
|
3105
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3119
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/meetings/upcoming-validation.js
|
|
3106
3120
|
var invalid4 = /* @__PURE__ */ __name((field) => {
|
|
3107
3121
|
throw new CliError("invalid_response", `meeting occurrence ${field} is invalid`);
|
|
3108
3122
|
}, "invalid");
|
|
@@ -3171,7 +3185,7 @@ var readOccurrenceSchedule = /* @__PURE__ */ __name((input, meetingId, limit, ma
|
|
|
3171
3185
|
return result;
|
|
3172
3186
|
}, "readOccurrenceSchedule");
|
|
3173
3187
|
|
|
3174
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3188
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/meetings/series-inventory-validation.js
|
|
3175
3189
|
function invalid5(field, response = false) {
|
|
3176
3190
|
throw new CliError(response ? "invalid_response" : "validation_error", `invalid meeting inventory ${field}`);
|
|
3177
3191
|
}
|
|
@@ -3200,7 +3214,7 @@ var validateMeetingSeriesInventoryCursor = /* @__PURE__ */ __name((value) => {
|
|
|
3200
3214
|
cursorDetails(value);
|
|
3201
3215
|
}, "validateMeetingSeriesInventoryCursor");
|
|
3202
3216
|
|
|
3203
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3217
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/meetings/stats.js
|
|
3204
3218
|
var MEETING_COUNTS_GROUPINGS = ["day", "week", "series"];
|
|
3205
3219
|
var zoneOf = /* @__PURE__ */ __name((timeZone) => {
|
|
3206
3220
|
const zone = timeZone ?? "UTC";
|
|
@@ -3335,7 +3349,7 @@ var aggregateMeetingStats = /* @__PURE__ */ __name((rows, timeZone) => {
|
|
|
3335
3349
|
};
|
|
3336
3350
|
}, "aggregateMeetingStats");
|
|
3337
3351
|
|
|
3338
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3352
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/meetings/upcoming.js
|
|
3339
3353
|
var cancelled = /* @__PURE__ */ __name((signal) => {
|
|
3340
3354
|
if (!signal?.aborted)
|
|
3341
3355
|
return;
|
|
@@ -3405,7 +3419,7 @@ var createUpcomingMeetingReader = /* @__PURE__ */ __name((scope2, port) => {
|
|
|
3405
3419
|
};
|
|
3406
3420
|
}, "createUpcomingMeetingReader");
|
|
3407
3421
|
|
|
3408
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3422
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/domain/tags.js
|
|
3409
3423
|
var TAG_TYPES = ["chat", "contact", "message", "task"];
|
|
3410
3424
|
var TAG = /^[a-z0-9-]{1,32}$/;
|
|
3411
3425
|
var tagOf = /* @__PURE__ */ __name((value) => {
|
|
@@ -3419,7 +3433,7 @@ var normalizeTag = /* @__PURE__ */ __name((value) => {
|
|
|
3419
3433
|
return tag;
|
|
3420
3434
|
}, "normalizeTag");
|
|
3421
3435
|
|
|
3422
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3436
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/sqlite/link-kinds.js
|
|
3423
3437
|
var LINK_KINDS = [
|
|
3424
3438
|
"links-to",
|
|
3425
3439
|
"blocked-by",
|
|
@@ -3440,7 +3454,7 @@ var LINK_SOURCES = [...LINK_ORIGINS, "calendar"];
|
|
|
3440
3454
|
var RELATION_KINDS = ["member-of", "related-to"];
|
|
3441
3455
|
var linkKind = /* @__PURE__ */ __name((kind) => `'${kind}'`, "linkKind");
|
|
3442
3456
|
|
|
3443
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3457
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/tasks/model.js
|
|
3444
3458
|
var TASK_KINDS = ["question", "request", "mention", "promise"];
|
|
3445
3459
|
var TASK_STATES = ["open", "todo", "in_progress", "done", "dismissed"];
|
|
3446
3460
|
var CLOSED_STATES = ["done", "dismissed"];
|
|
@@ -3455,7 +3469,7 @@ function closeTask(task, state, by, at, reason) {
|
|
|
3455
3469
|
}
|
|
3456
3470
|
__name(closeTask, "closeTask");
|
|
3457
3471
|
|
|
3458
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3472
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/tasks/priority.js
|
|
3459
3473
|
var PRIORITY_LABELS = ["low", "medium", "high", "critical"];
|
|
3460
3474
|
var MIDDLE = { low: 0.125, medium: 0.375, high: 0.625, critical: 0.875 };
|
|
3461
3475
|
var LEGACY_PRIORITY_SCORES = [0.875, 0.625, 0.375, 0.1875, 0.0625];
|
|
@@ -3484,13 +3498,13 @@ var priorityOf = /* @__PURE__ */ __name((value) => {
|
|
|
3484
3498
|
}, "priorityOf");
|
|
3485
3499
|
var priorityOption = /* @__PURE__ */ __name((value) => priorityOf(value) ?? "none", "priorityOption");
|
|
3486
3500
|
|
|
3487
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3501
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/tasks/store.js
|
|
3488
3502
|
function matches2(task, filter) {
|
|
3489
3503
|
return (filter.account === void 0 || task.account === filter.account) && (filter.state === void 0 || task.state === filter.state) && (filter.group === void 0 || task.group === filter.group) && (filter.kind === void 0 || task.kind === filter.kind) && (filter.createdBefore === void 0 || task.createdAt < filter.createdBefore);
|
|
3490
3504
|
}
|
|
3491
3505
|
__name(matches2, "matches");
|
|
3492
3506
|
|
|
3493
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3507
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/tasks/service.js
|
|
3494
3508
|
function createTaskService({ store, now = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Date(), "now"), newId = /* @__PURE__ */ __name(() => crypto.randomUUID(), "newId") }) {
|
|
3495
3509
|
async function find(id4) {
|
|
3496
3510
|
const task = await store.get(id4);
|
|
@@ -3550,7 +3564,7 @@ function median(values) {
|
|
|
3550
3564
|
}
|
|
3551
3565
|
__name(median, "median");
|
|
3552
3566
|
|
|
3553
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3567
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/domain/knowledge.js
|
|
3554
3568
|
var FACT_STATUSES = ["proposed", "accepted", "superseded", "reversed", "rejected"];
|
|
3555
3569
|
var MEMORY_KINDS = ["summary", "digest", "preference"];
|
|
3556
3570
|
var MEMORY_STATUSES = ["proposed", "confirmed", "stale", "superseded"];
|
|
@@ -3558,7 +3572,7 @@ var MEMORY_SCOPES = ["personal", "work"];
|
|
|
3558
3572
|
var WORK_TASK_TYPES = ["bug", "feature", "chore"];
|
|
3559
3573
|
var TASK_TYPES2 = [...WORK_TASK_TYPES, ...TASK_KINDS];
|
|
3560
3574
|
|
|
3561
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3575
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/domain/money.js
|
|
3562
3576
|
var CURRENCY_SCALES = {
|
|
3563
3577
|
AED: 2,
|
|
3564
3578
|
AMD: 2,
|
|
@@ -3643,7 +3657,7 @@ var quantityOf = /* @__PURE__ */ __name((text6) => {
|
|
|
3643
3657
|
}, "quantityOf");
|
|
3644
3658
|
var lineUnits = /* @__PURE__ */ __name((thousandths, unitPrice) => Number((thousandths * BigInt(unitPrice) + 500n) / 1000n), "lineUnits");
|
|
3645
3659
|
|
|
3646
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3660
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/domain/finance.js
|
|
3647
3661
|
var INVOICE_DIRECTIONS = ["receivable", "payable"];
|
|
3648
3662
|
var INVOICE_STATUSES = ["draft", "issued", "partly_paid", "paid", "void"];
|
|
3649
3663
|
var MONEY_DIRECTIONS = ["in", "out"];
|
|
@@ -3672,7 +3686,7 @@ var paymentLine = /* @__PURE__ */ __name((payment) => {
|
|
|
3672
3686
|
var invoiceTitle = /* @__PURE__ */ __name((invoice) => `Invoice ${invoiceLine(invoice)}`, "invoiceTitle");
|
|
3673
3687
|
var paymentEntryTitle = /* @__PURE__ */ __name((payment) => `Payment \xB7 ${paymentLine(payment)}`, "paymentEntryTitle");
|
|
3674
3688
|
|
|
3675
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3689
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/domain/orders.js
|
|
3676
3690
|
var ORDER_STATUSES = ["placed", "shipped", "delivered", "cancelled", "returned"];
|
|
3677
3691
|
var ORDER_PURPOSES = ["personal", "business", "client", "other"];
|
|
3678
3692
|
var orderLine = /* @__PURE__ */ __name((order) => {
|
|
@@ -3682,7 +3696,7 @@ var orderLine = /* @__PURE__ */ __name((order) => {
|
|
|
3682
3696
|
}, "orderLine");
|
|
3683
3697
|
var orderTitle = /* @__PURE__ */ __name((order) => `Order ${orderLine(order)}`, "orderTitle");
|
|
3684
3698
|
|
|
3685
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3699
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/entities/fields.js
|
|
3686
3700
|
var text5 = string();
|
|
3687
3701
|
var id3 = pipe(string(), minLength(1));
|
|
3688
3702
|
var time = isoTime;
|
|
@@ -3706,7 +3720,7 @@ var author = strictObject({
|
|
|
3706
3720
|
name: nullable(text5)
|
|
3707
3721
|
});
|
|
3708
3722
|
|
|
3709
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3723
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/entities/knowledge-lists.js
|
|
3710
3724
|
var organization = strictObject({
|
|
3711
3725
|
id: id3,
|
|
3712
3726
|
ref: reference,
|
|
@@ -3794,7 +3808,9 @@ export {
|
|
|
3794
3808
|
meetingTimestamp,
|
|
3795
3809
|
findingText,
|
|
3796
3810
|
findingHash,
|
|
3811
|
+
snakeCase,
|
|
3797
3812
|
findingFields,
|
|
3813
|
+
findingNeeds,
|
|
3798
3814
|
validEvidence,
|
|
3799
3815
|
findingId,
|
|
3800
3816
|
validateFinding,
|