@wirecat/tg-cli 0.110.0 → 0.111.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/dist/bin/tg.js +2 -2
- package/dist/bundle/{adapter-JWUCHTXU.js → adapter-WFC2JAD4.js} +38 -38
- package/dist/bundle/{all-profiles-OMRCKP54.js → all-profiles-FEUSGHT7.js} +5 -5
- package/dist/bundle/{anthropic-WXFHH74P.js → anthropic-O646SJIJ.js} +3 -3
- package/dist/bundle/{app-server-ILIPNO6T.js → app-server-7P23Y45A.js} +35 -35
- package/dist/bundle/{bot-api-KV765AZK.js → bot-api-WTJCL6VF.js} +39 -39
- package/dist/bundle/{bot-history-3P6EIM5L.js → bot-history-5J2Q4SPC.js} +10 -10
- package/dist/bundle/{bun-MJOYPPEN.js → bun-KUKVEKDW.js} +2 -2
- package/dist/bundle/{bun-sqlite-GFRVRRDZ.js → bun-sqlite-2G5TXHYE.js} +2 -2
- package/dist/bundle/{chunk-4BMXELWN.js → chunk-2K6IGVSI.js} +4 -4
- package/dist/bundle/{chunk-3L2JTAVD.js → chunk-2ZH3PUQX.js} +1 -1
- package/dist/bundle/{chunk-6WTLP2SI.js → chunk-33HEHPIK.js} +7 -7
- package/dist/bundle/{chunk-4YOPRYEY.js → chunk-3BD24JYK.js} +96 -92
- package/dist/bundle/{chunk-54CWOD7V.js → chunk-3WUTBGZE.js} +4 -4
- package/dist/bundle/{chunk-XLNYDJKG.js → chunk-43ZFY6TW.js} +1 -1
- package/dist/bundle/{chunk-Q35J5LCO.js → chunk-5FJQG5UZ.js} +9 -8
- package/dist/bundle/{chunk-3XTMVGTS.js → chunk-5ZPLOYTP.js} +205 -204
- package/dist/bundle/{chunk-YWSNUUW5.js → chunk-7665YBJ7.js} +5 -5
- package/dist/bundle/{chunk-VM7I5VKX.js → chunk-7GQLD5TJ.js} +1 -1
- package/dist/bundle/{chunk-NFBOZT7H.js → chunk-AUWYMMYL.js} +3 -3
- package/dist/bundle/{chunk-TJA3BWY3.js → chunk-BNQOUCL2.js} +1 -1
- package/dist/bundle/{chunk-L3YDXUDK.js → chunk-CJUSP5X2.js} +2 -2
- package/dist/bundle/{chunk-TDQVVXPF.js → chunk-COHMFCHD.js} +11 -11
- package/dist/bundle/{chunk-BYOEVYY2.js → chunk-DEG4JJHG.js} +267 -258
- package/dist/bundle/{chunk-YPLL3Q3M.js → chunk-DREEXESG.js} +86 -50
- package/dist/bundle/{chunk-4GOF43MW.js → chunk-HN6ZMUAS.js} +1 -1
- package/dist/bundle/{chunk-SD5J5T7M.js → chunk-ITSSCYLP.js} +9 -9
- package/dist/bundle/{chunk-AXNBGLO5.js → chunk-J2Z5E7TO.js} +1 -1
- package/dist/bundle/{chunk-6KESAYMZ.js → chunk-J4QVXR5I.js} +2 -2
- package/dist/bundle/{chunk-KLOFBUXA.js → chunk-K457FHD4.js} +31 -21
- package/dist/bundle/{chunk-RXWG7OWT.js → chunk-KE47Y4PW.js} +839 -440
- package/dist/bundle/{chunk-QRH2AWBZ.js → chunk-KLHLWKWC.js} +59 -47
- package/dist/bundle/{chunk-GPIORQAD.js → chunk-LLAZSGS7.js} +20 -20
- package/dist/bundle/{chunk-F7RWNBC2.js → chunk-MSGYLWCH.js} +1 -1
- package/dist/bundle/{chunk-YPEAEEHF.js → chunk-NIKYFRDQ.js} +1 -1
- package/dist/bundle/{chunk-4I6HTOCM.js → chunk-NQAV7U7C.js} +1 -1
- package/dist/bundle/{chunk-HCAYTAJN.js → chunk-OYVDWHP5.js} +1 -1
- package/dist/bundle/{chunk-RARYRHQA.js → chunk-PNUHAHTF.js} +1 -1
- package/dist/bundle/{chunk-MZRD776E.js → chunk-PQGWEFJ2.js} +2 -2
- package/dist/bundle/{chunk-NDT22GBK.js → chunk-QAC6Z675.js} +1 -1
- package/dist/bundle/{chunk-5CMOXHQS.js → chunk-QEAMO2TS.js} +6 -6
- package/dist/bundle/{chunk-7LZBMZQM.js → chunk-QLLPZWYZ.js} +3 -3
- package/dist/bundle/{chunk-3KOF5T4N.js → chunk-QVM2HKJP.js} +4 -4
- package/dist/bundle/{chunk-32HEOKI2.js → chunk-T6DSAROY.js} +11 -9
- package/dist/bundle/{chunk-SLAPUEMZ.js → chunk-TWZTQHP6.js} +5 -5
- package/dist/bundle/{chunk-W3B6EEZU.js → chunk-UDYCZ5KB.js} +1 -1
- package/dist/bundle/{chunk-M3XIME74.js → chunk-UFIUMPXP.js} +3 -3
- package/dist/bundle/{chunk-AZYVTDAE.js → chunk-UMUJHC4M.js} +2 -2
- package/dist/bundle/{chunk-7ABA4EXC.js → chunk-UPRYEDAV.js} +2 -2
- package/dist/bundle/{chunk-FYAHTTOB.js → chunk-VIEVOF3O.js} +8 -8
- package/dist/bundle/{chunk-VOBMR7E5.js → chunk-WDRNVSWF.js} +42 -42
- package/dist/bundle/{chunk-2YWQEG2P.js → chunk-XIRASTVS.js} +10 -10
- package/dist/bundle/{chunk-F24EAGOU.js → chunk-XXOJ7PQY.js} +26 -26
- package/dist/bundle/{chunk-MXIBRT6W.js → chunk-YFK3DNNP.js} +4 -4
- package/dist/bundle/{chunk-RSZEEWOW.js → chunk-YG4BO7N3.js} +1 -1
- package/dist/bundle/{chunk-5ASW5BNM.js → chunk-ZCHC7TYO.js} +11 -11
- package/dist/bundle/{chunk-JDOSIWPN.js → chunk-ZCV4UEVH.js} +2 -2
- package/dist/bundle/{command-contract-TNSW7W6G.js → command-contract-JCRVVL7P.js} +12 -12
- package/dist/bundle/{decode-3KBXZCFM.js → decode-QJNVAAKJ.js} +2 -2
- package/dist/bundle/{echarts-24TVPFGC.js → echarts-2EDY7OUX.js} +2 -2
- package/dist/bundle/{embed-3BDPZ4Q7.js → embed-PZSXOQJO.js} +3 -3
- package/dist/bundle/{embedder-EMVDEZFR.js → embedder-O4EGMMUU.js} +6 -6
- package/dist/bundle/{entry-NQD6Z2BM.js → entry-DVLMQM6J.js} +3 -3
- package/dist/bundle/{first-run-ZBIO6C67.js → first-run-J67KTUWA.js} +5 -5
- package/dist/bundle/{first-screen-4HRCG7OX.js → first-screen-PYEE5NMQ.js} +13 -13
- package/dist/bundle/{identity-EDGOOTOM.js → identity-DSYY4FLQ.js} +1 -1
- package/dist/bundle/{instructions-N2WVMNFZ.js → instructions-O535XB2L.js} +1 -1
- package/dist/bundle/{node-VBZAZHUS.js → node-S3VEQNTE.js} +2 -2
- package/dist/bundle/{node-sqlite-C3V64OAL.js → node-sqlite-3DNWF2BW.js} +2 -2
- package/dist/bundle/{oauth-NZXELYDA.js → oauth-IU2RAZ3D.js} +4 -4
- package/dist/bundle/{open-2XRUGMV7.js → open-M2IPPXMI.js} +1 -1
- package/dist/bundle/{openai-OLGTN3ZB.js → openai-GDI7HISL.js} +10 -10
- package/dist/bundle/{process-CASPZ2DH.js → process-3IGMEATV.js} +1 -1
- package/dist/bundle/{program-QPQDSGYA.js → program-P7YPHVLD.js} +41 -41
- package/dist/bundle/{prompt-ESZL7SGX.js → prompt-S6R7IHDK.js} +2 -2
- package/dist/bundle/{recognize-LQ7QOG4T.js → recognize-PFZRQ3P4.js} +1 -1
- package/dist/bundle/{remote-34XP4EDN.js → remote-Q37V7LUX.js} +4 -4
- package/dist/bundle/{rerank-7F6NLBCW.js → rerank-V5YQQQAM.js} +4 -4
- package/dist/bundle/{serve-M6TTKXI4.js → serve-5CAD2UVG.js} +6 -6
- package/dist/bundle/{server-GLZ5M7PE.js → server-R6YAO2SG.js} +27 -27
- package/dist/bundle/server-RUQLAWWS.js +56 -0
- package/dist/bundle/{state-UKKPLMHS.js → state-Y3A2NEM3.js} +3 -3
- package/dist/bundle/{store-J2MBIDJK.js → store-H5K32CNI.js} +7 -7
- package/dist/bundle/store-maintenance-command-QZDC4WKW.js +45 -0
- package/dist/bundle/tg.js +2 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/skills/tg-cli/SKILL.md +14 -9
- package/dist/bundle/server-KOW7OKE2.js +0 -56
- package/dist/bundle/store-maintenance-command-64B57C3U.js +0 -45
|
@@ -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.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/domain/tags.js
|
|
45
45
|
var TAG_TYPES = ["chat", "contact", "message", "task"];
|
|
46
46
|
var TAG = /^[a-z0-9-]{1,32}$/;
|
|
47
47
|
var tagOf = /* @__PURE__ */ __name((value) => {
|
|
@@ -843,7 +843,7 @@ var fieldsHelp = /* @__PURE__ */ __name((registry, guide) => {
|
|
|
843
843
|
].join("\n");
|
|
844
844
|
}, "fieldsHelp");
|
|
845
845
|
|
|
846
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
846
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/meetings/reference.js
|
|
847
847
|
var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "expected meeting:<accountId>/<meetingId>[/<transcriptId>[/<cuePosition>]] with safe integer IDs"), "invalid");
|
|
848
848
|
var integer2 = /* @__PURE__ */ __name((value, minimum = 1) => {
|
|
849
849
|
if (!Number.isSafeInteger(value) || value < minimum)
|
|
@@ -880,7 +880,7 @@ var parseMeetingReference = /* @__PURE__ */ __name((text6) => {
|
|
|
880
880
|
}, "parseMeetingReference");
|
|
881
881
|
var canonicalMeetingReference = /* @__PURE__ */ __name((text6) => formatMeetingReference(parseMeetingReference(text6)), "canonicalMeetingReference");
|
|
882
882
|
|
|
883
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
883
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/meetings/item.js
|
|
884
884
|
var text = string();
|
|
885
885
|
var count = pipe(number(), integer(), minValue(0));
|
|
886
886
|
var MEETING_ISSUES = ["time_without_zone"];
|
|
@@ -945,7 +945,7 @@ var MEETING_QUERY = {
|
|
|
945
945
|
})
|
|
946
946
|
};
|
|
947
947
|
|
|
948
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
948
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/meetings/join-key.js
|
|
949
949
|
var joinKeyOf = /* @__PURE__ */ __name((url) => {
|
|
950
950
|
const parsed = urlOf(url);
|
|
951
951
|
if (!parsed)
|
|
@@ -979,7 +979,7 @@ var urlOf = /* @__PURE__ */ __name((url) => {
|
|
|
979
979
|
}
|
|
980
980
|
}, "urlOf");
|
|
981
981
|
|
|
982
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
982
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/meetings/calendar-text.js
|
|
983
983
|
var ENTITIES = { amp: "&", lt: "<", gt: ">", quot: '"', "#39": "'", apos: "'", nbsp: " " };
|
|
984
984
|
var SECRET_LINE = /(?<![\p{L}\p{N}])(pass ?codes?|passwords?|pwd|pins?|access ?codes?|meeting ?codes?|kennwort|пароль|пин-?код|код доступа)(?![\p{L}\p{N}])|pwd=/iu;
|
|
985
985
|
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");
|
|
@@ -1012,7 +1012,7 @@ var entryMetadata = /* @__PURE__ */ __name((metadata) => {
|
|
|
1012
1012
|
return kept;
|
|
1013
1013
|
}, "entryMetadata");
|
|
1014
1014
|
|
|
1015
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1015
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/meetings/cue-fingerprint.js
|
|
1016
1016
|
import { createHash } from "node:crypto";
|
|
1017
1017
|
var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256").update(JSON.stringify({
|
|
1018
1018
|
reference: cue2.reference,
|
|
@@ -1026,7 +1026,7 @@ var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256"
|
|
|
1026
1026
|
text: cue2.text
|
|
1027
1027
|
})).digest("hex"), "meetingCueFingerprint");
|
|
1028
1028
|
|
|
1029
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1029
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/meetings/event-store.js
|
|
1030
1030
|
var UNTIL = /(?:^|;)UNTIL=(\d{4})(\d{2})(\d{2})(?:T(\d{2})(\d{2})(\d{2})Z?)?(?:;|$)/iu;
|
|
1031
1031
|
var seriesEnd = /* @__PURE__ */ __name((entry) => {
|
|
1032
1032
|
if (entry.recurrenceEndsAt !== null)
|
|
@@ -1049,7 +1049,7 @@ var entryInWindow = /* @__PURE__ */ __name((entry, window) => {
|
|
|
1049
1049
|
return Math.max(entry.endsAt ?? start, start + 1) > window.from;
|
|
1050
1050
|
}, "entryInWindow");
|
|
1051
1051
|
|
|
1052
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1052
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/meetings/answers.js
|
|
1053
1053
|
var text2 = string();
|
|
1054
1054
|
var count2 = pipe(number(), integer(), minValue(0));
|
|
1055
1055
|
var iso2 = /* @__PURE__ */ __name((ms) => ms === null ? null : new Date(ms).toISOString(), "iso");
|
|
@@ -1276,7 +1276,7 @@ var meetingHitsList = /* @__PURE__ */ __name((found, limit, command = "search me
|
|
|
1276
1276
|
};
|
|
1277
1277
|
}, "meetingHitsList");
|
|
1278
1278
|
|
|
1279
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1279
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/meetings/participant-search.js
|
|
1280
1280
|
var normalizeMeetingParticipantQuery = /* @__PURE__ */ __name((text6) => text6.normalize("NFKC").toLowerCase(), "normalizeMeetingParticipantQuery");
|
|
1281
1281
|
var validateMeetingParticipantQuery = /* @__PURE__ */ __name((query) => {
|
|
1282
1282
|
if (typeof query !== "string" || !query.trim() || query.length > 500 || query.includes("\0"))
|
|
@@ -1300,7 +1300,7 @@ var validateMeetingParticipantSearch = /* @__PURE__ */ __name((query, input) =>
|
|
|
1300
1300
|
};
|
|
1301
1301
|
}, "validateMeetingParticipantSearch");
|
|
1302
1302
|
|
|
1303
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1303
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/meetings/reads.js
|
|
1304
1304
|
var MeetingError = class extends CliError {
|
|
1305
1305
|
static {
|
|
1306
1306
|
__name(this, "MeetingError");
|
|
@@ -1432,7 +1432,7 @@ var meetingSummaryAnswer = /* @__PURE__ */ __name(async (store, id3, accountId)
|
|
|
1432
1432
|
return wholeList(details.summaries.map((one) => meetingSummaryItem(details.meeting.accountId, one)));
|
|
1433
1433
|
}, "meetingSummaryAnswer");
|
|
1434
1434
|
|
|
1435
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1435
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/meetings/export.js
|
|
1436
1436
|
var timestamp = /* @__PURE__ */ __name((milliseconds) => {
|
|
1437
1437
|
if (!Number.isSafeInteger(milliseconds) || milliseconds < 0)
|
|
1438
1438
|
throw new MeetingError("validation_error", "transcript times must be nonnegative integer milliseconds");
|
|
@@ -1528,10 +1528,10 @@ var exportMeeting = /* @__PURE__ */ __name(async (store, id3, options) => {
|
|
|
1528
1528
|
};
|
|
1529
1529
|
}, "exportMeeting");
|
|
1530
1530
|
|
|
1531
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1531
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
|
|
1532
1532
|
import { createHash as createHash2 } from "node:crypto";
|
|
1533
1533
|
|
|
1534
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1534
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/meetings/timestamp.js
|
|
1535
1535
|
var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
|
|
1536
1536
|
if (typeof value !== "string" || !/^\d{4}-\d{2}-\d{2}T.+(?:Z|[+-]\d{2}:\d{2})$/i.test(value) || !Number.isFinite(Date.parse(value)))
|
|
1537
1537
|
throw new CliError("validation_error", `${name} must be an ISO timestamp with a timezone`);
|
|
@@ -1542,7 +1542,7 @@ var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
|
|
|
1542
1542
|
return new Date(value).toISOString();
|
|
1543
1543
|
}, "meetingTimestamp");
|
|
1544
1544
|
|
|
1545
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1545
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/meetings/meeting-management.js
|
|
1546
1546
|
var nonempty = /* @__PURE__ */ __name((value, name) => {
|
|
1547
1547
|
if (typeof value !== "string" || !value.trim())
|
|
1548
1548
|
throw new CliError("validation_error", `${name} must be nonempty`);
|
|
@@ -1593,10 +1593,10 @@ var validateMeetingChange = /* @__PURE__ */ __name((change, create) => {
|
|
|
1593
1593
|
return Object.freeze(result);
|
|
1594
1594
|
}, "validateMeetingChange");
|
|
1595
1595
|
|
|
1596
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1596
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/meetings/meeting-context.js
|
|
1597
1597
|
var MEETING_FACT_TYPES = ["fact", "statement", "question", "decision", "promise"];
|
|
1598
1598
|
|
|
1599
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1599
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
|
|
1600
1600
|
var TASK_TYPES = ["bug", "feature", "chore"];
|
|
1601
1601
|
var invalid2 = /* @__PURE__ */ __name((message) => {
|
|
1602
1602
|
throw new CliError("validation_error", message);
|
|
@@ -1697,7 +1697,7 @@ var validateFindings = /* @__PURE__ */ __name((input, rules) => {
|
|
|
1697
1697
|
}, "validateFindings");
|
|
1698
1698
|
var findingFingerprint = /* @__PURE__ */ __name(({ id: _id, ...finding }) => findingHash(finding), "findingFingerprint");
|
|
1699
1699
|
|
|
1700
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1700
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/meetings/findings.js
|
|
1701
1701
|
var MEETING_FINDINGS_KIND = "meeting_findings";
|
|
1702
1702
|
var cue = /* @__PURE__ */ __name((raw) => {
|
|
1703
1703
|
const reference2 = canonicalMeetingReference(raw);
|
|
@@ -1708,7 +1708,7 @@ var cue = /* @__PURE__ */ __name((raw) => {
|
|
|
1708
1708
|
var validateMeetingFindings = /* @__PURE__ */ __name((input) => validateFindings(input, { plural: "meeting findings", singular: "meeting finding", cited: "cue", reference: cue }), "validateMeetingFindings");
|
|
1709
1709
|
var meetingFindingFingerprint = findingFingerprint;
|
|
1710
1710
|
|
|
1711
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1711
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/meetings/result-items.js
|
|
1712
1712
|
var text4 = string();
|
|
1713
1713
|
var identifier = pipe(text4, minLength(1));
|
|
1714
1714
|
var nullableText = nullable(text4);
|
|
@@ -1834,7 +1834,7 @@ var MEETING_RESULT_ENTITIES = {
|
|
|
1834
1834
|
meeting_embedding: embedding
|
|
1835
1835
|
};
|
|
1836
1836
|
|
|
1837
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1837
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/meetings/event-query.js
|
|
1838
1838
|
var EVENT_QUERY = defineQuery({
|
|
1839
1839
|
entity: "event",
|
|
1840
1840
|
backend: "sql",
|
|
@@ -1850,7 +1850,7 @@ var EVENT_QUERY = defineQuery({
|
|
|
1850
1850
|
]
|
|
1851
1851
|
});
|
|
1852
1852
|
|
|
1853
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1853
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/meetings/events.js
|
|
1854
1854
|
var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now()) => {
|
|
1855
1855
|
const current = await store.meeting(details.meeting.id);
|
|
1856
1856
|
if (!current)
|
|
@@ -1893,7 +1893,7 @@ var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now())
|
|
|
1893
1893
|
return (await store.events()).find((e) => e.id === linked?.meeting.eventId) ?? null;
|
|
1894
1894
|
}, "linkEvent");
|
|
1895
1895
|
|
|
1896
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1896
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/meetings/hit-query.js
|
|
1897
1897
|
var context = {
|
|
1898
1898
|
command: "search meetings",
|
|
1899
1899
|
guide: "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md#\u0432\u0441\u0442\u0440\u0435\u0447\u0438"
|
|
@@ -1956,7 +1956,7 @@ var MEETING_FIELDS = defineQuery({
|
|
|
1956
1956
|
});
|
|
1957
1957
|
var parseMeetingQuery = /* @__PURE__ */ __name((query) => validateQuery(parseLucene(query, { defaultField: "text", proximity: true, ...context }), MEETING_HIT_QUERY, context), "parseMeetingQuery");
|
|
1958
1958
|
|
|
1959
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1959
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/meetings/ingest.js
|
|
1960
1960
|
var contentHash = /* @__PURE__ */ __name(async (text6) => {
|
|
1961
1961
|
const bytes = await crypto.subtle.digest("SHA-256", new TextEncoder().encode(text6));
|
|
1962
1962
|
return Array.from(new Uint8Array(bytes), (byte) => byte.toString(16).padStart(2, "0")).join("");
|
|
@@ -1993,7 +1993,7 @@ var timestamp2 = /* @__PURE__ */ __name((value) => {
|
|
|
1993
1993
|
return time;
|
|
1994
1994
|
}, "timestamp");
|
|
1995
1995
|
|
|
1996
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1996
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/meetings/transcript-text.js
|
|
1997
1997
|
var TranscriptTextError = class extends Error {
|
|
1998
1998
|
static {
|
|
1999
1999
|
__name(this, "TranscriptTextError");
|
|
@@ -2048,7 +2048,7 @@ var parseTranscriptText = /* @__PURE__ */ __name((input) => {
|
|
|
2048
2048
|
return { header, lines };
|
|
2049
2049
|
}, "parseTranscriptText");
|
|
2050
2050
|
|
|
2051
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2051
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/meetings/vtt.js
|
|
2052
2052
|
var VttError = class extends Error {
|
|
2053
2053
|
static {
|
|
2054
2054
|
__name(this, "VttError");
|
|
@@ -2100,7 +2100,7 @@ var parseVtt = /* @__PURE__ */ __name((input) => {
|
|
|
2100
2100
|
return cues;
|
|
2101
2101
|
}, "parseVtt");
|
|
2102
2102
|
|
|
2103
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2103
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/meetings/import.js
|
|
2104
2104
|
var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now()) => {
|
|
2105
2105
|
const report = { meetings: 0, participants: 0, transcriptRows: 0, summaries: 0, warnings: [] };
|
|
2106
2106
|
for (const file of files) {
|
|
@@ -2133,10 +2133,10 @@ var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now())
|
|
|
2133
2133
|
return report;
|
|
2134
2134
|
}, "importFiles");
|
|
2135
2135
|
|
|
2136
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2136
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/meetings/links.js
|
|
2137
2137
|
var CHAT_MESSAGES_READ = 1e5;
|
|
2138
2138
|
|
|
2139
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2139
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/meetings/passage.js
|
|
2140
2140
|
var meetingHitContextLimits = /* @__PURE__ */ __name((options = {}) => {
|
|
2141
2141
|
const { before = 3, after = 3, bytes = 65536, max_read_bytes = 4194304, expected_fingerprint } = options;
|
|
2142
2142
|
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)))
|
|
@@ -2149,7 +2149,7 @@ var validateMeetingPassage = /* @__PURE__ */ __name((reference2, options) => {
|
|
|
2149
2149
|
throw new CliError("validation_error", "choose a cue reference and json, text or markdown output");
|
|
2150
2150
|
}, "validateMeetingPassage");
|
|
2151
2151
|
|
|
2152
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2152
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/meetings/preparation-context.js
|
|
2153
2153
|
var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
|
|
2154
2154
|
if (!original || typeof original !== "object" || Array.isArray(original))
|
|
2155
2155
|
throw new CliError("validation_error", "meeting preparation context is required");
|
|
@@ -2174,7 +2174,7 @@ var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
|
|
|
2174
2174
|
return { ...input, limit, maxReadBytes };
|
|
2175
2175
|
}, "validateMeetingPreparationContext");
|
|
2176
2176
|
|
|
2177
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2177
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-answer.js
|
|
2178
2178
|
var count4 = pipe(number(), integer(), minValue(0));
|
|
2179
2179
|
var id = pipe(string(), minLength(1));
|
|
2180
2180
|
var meetingProjectEvidence = strictObject({
|
|
@@ -2295,7 +2295,7 @@ var meetingProjectEvidenceAnswer = /* @__PURE__ */ __name((page, prepared, comma
|
|
|
2295
2295
|
};
|
|
2296
2296
|
}, "meetingProjectEvidenceAnswer");
|
|
2297
2297
|
|
|
2298
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2298
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/meetings/search-validation.js
|
|
2299
2299
|
var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
|
|
2300
2300
|
const integer3 = /* @__PURE__ */ __name((value, low, high) => Number.isSafeInteger(value) && value >= low && value <= high, "integer");
|
|
2301
2301
|
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) || [
|
|
@@ -2315,7 +2315,7 @@ var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
|
|
|
2315
2315
|
throw new CliError("validation_error", "choose one project selector and one tag or topic selector");
|
|
2316
2316
|
}, "validateMeetingHitSearch");
|
|
2317
2317
|
|
|
2318
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2318
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-query.js
|
|
2319
2319
|
var ids = {
|
|
2320
2320
|
meeting_id: "meetingId",
|
|
2321
2321
|
identity_id: "participantIdentityId",
|
|
@@ -2406,7 +2406,7 @@ var prepareMeetingProjectEvidence = /* @__PURE__ */ __name((project, request = {
|
|
|
2406
2406
|
return { project: project.trim(), options, query: frozen.join(" AND ") };
|
|
2407
2407
|
}, "prepareMeetingProjectEvidence");
|
|
2408
2408
|
|
|
2409
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2409
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/meetings/project-evidence.js
|
|
2410
2410
|
var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project, request = {}, now = Date.now()) => {
|
|
2411
2411
|
const prepared = prepareMeetingProjectEvidence(project, request, now);
|
|
2412
2412
|
const page = await read(prepared.project, prepared.options);
|
|
@@ -2414,7 +2414,7 @@ var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project, re
|
|
|
2414
2414
|
return meetingProjectEvidenceAnswer(page, prepared);
|
|
2415
2415
|
}, "readMeetingProjectEvidence");
|
|
2416
2416
|
|
|
2417
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2417
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/meetings/pull.js
|
|
2418
2418
|
var participantInput = /* @__PURE__ */ __name((p, provider, occurrenceId2, position, accountId) => {
|
|
2419
2419
|
const { identityExternalId, ...fields2 } = p;
|
|
2420
2420
|
const externalId = identityExternalId ?? (p.email ? `email:${p.email.toLowerCase()}` : p.externalId) ?? `name:${p.displayName ?? "unknown"}@${accountId}/${occurrenceId2}:${position}`;
|
|
@@ -2553,7 +2553,7 @@ unlinked`, format)],
|
|
|
2553
2553
|
return report;
|
|
2554
2554
|
}, "pull");
|
|
2555
2555
|
|
|
2556
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2556
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/meetings/read-answers.js
|
|
2557
2557
|
var text5 = string();
|
|
2558
2558
|
var count5 = pipe(number(), integer(), minValue(0));
|
|
2559
2559
|
var id2 = pipe(number(), integer(), minValue(1));
|
|
@@ -2725,10 +2725,10 @@ var eventItem = /* @__PURE__ */ __name((one) => ({
|
|
|
2725
2725
|
updated_at: new Date(one.updatedAt).toISOString()
|
|
2726
2726
|
}), "eventItem");
|
|
2727
2727
|
|
|
2728
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2728
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/meetings/recording-transfer.js
|
|
2729
2729
|
var strongRecordingValidator = /* @__PURE__ */ __name((value) => typeof value === "string" && value.length <= 1024 && /^"[\x21\x23-\x7e\x80-\xff]*"$/.test(value), "strongRecordingValidator");
|
|
2730
2730
|
|
|
2731
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2731
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/meetings/related-history.js
|
|
2732
2732
|
var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
|
|
2733
2733
|
if (!original || typeof original !== "object" || Array.isArray(original))
|
|
2734
2734
|
throw new CliError("validation_error", "related history request is required");
|
|
@@ -2758,14 +2758,14 @@ var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
|
|
|
2758
2758
|
return { ...input, anchorIds: [...new Set(input.anchorIds)], limit, maxReadBytes };
|
|
2759
2759
|
}, "validateMeetingRelatedHistory");
|
|
2760
2760
|
|
|
2761
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2761
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/meetings/review.js
|
|
2762
2762
|
var REVIEW_LIMIT = { default: 50, most: 200 };
|
|
2763
2763
|
|
|
2764
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2764
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/meetings/save-hints.js
|
|
2765
2765
|
var SAVE_HELP = `Worth keeping \u2014 a decision, a promise, a preference? Record it with \`memo facts add\` or
|
|
2766
2766
|
\`memo memories add\`, citing the msg: locator or meeting: reference as --evidence.`;
|
|
2767
2767
|
|
|
2768
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2768
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/meetings/series-history.js
|
|
2769
2769
|
var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
|
|
2770
2770
|
input.signal?.throwIfAborted();
|
|
2771
2771
|
if (!Number.isSafeInteger(input.accountId) || input.accountId <= 0)
|
|
@@ -2786,10 +2786,10 @@ var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
|
|
|
2786
2786
|
return { ...input, limit, maxReadBytes };
|
|
2787
2787
|
}, "validateMeetingSeriesHistory");
|
|
2788
2788
|
|
|
2789
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2789
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/meetings/upcoming-validation.js
|
|
2790
2790
|
var occurrenceId = /* @__PURE__ */ __name((value) => typeof value === "string" && value.trim().length > 0 && value.length <= 1e3 && !/[\0\r\n]/.test(value), "occurrenceId");
|
|
2791
2791
|
|
|
2792
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2792
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/meetings/series-inventory-validation.js
|
|
2793
2793
|
function invalid3(field, response = false) {
|
|
2794
2794
|
throw new CliError(response ? "invalid_response" : "validation_error", `invalid meeting inventory ${field}`);
|
|
2795
2795
|
}
|
|
@@ -2818,7 +2818,7 @@ var validateMeetingSeriesInventoryCursor = /* @__PURE__ */ __name((value) => {
|
|
|
2818
2818
|
cursorDetails(value);
|
|
2819
2819
|
}, "validateMeetingSeriesInventoryCursor");
|
|
2820
2820
|
|
|
2821
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2821
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/meetings/stats.js
|
|
2822
2822
|
var zoneOf = /* @__PURE__ */ __name((timeZone) => {
|
|
2823
2823
|
const zone = timeZone ?? "UTC";
|
|
2824
2824
|
try {
|
|
@@ -2897,7 +2897,7 @@ var aggregateMeetingStats = /* @__PURE__ */ __name((rows, timeZone) => {
|
|
|
2897
2897
|
};
|
|
2898
2898
|
}, "aggregateMeetingStats");
|
|
2899
2899
|
|
|
2900
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2900
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/store/sqlite/link-kinds.js
|
|
2901
2901
|
var LINK_KINDS = [
|
|
2902
2902
|
"links-to",
|
|
2903
2903
|
"blocked-by",
|
|
@@ -2918,26 +2918,55 @@ var LINK_SOURCES = [...LINK_ORIGINS, "calendar"];
|
|
|
2918
2918
|
var RELATION_KINDS = ["member-of", "related-to"];
|
|
2919
2919
|
var linkKind = /* @__PURE__ */ __name((kind) => `'${kind}'`, "linkKind");
|
|
2920
2920
|
|
|
2921
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2921
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/tasks/model.js
|
|
2922
2922
|
var TASK_KINDS = ["question", "request", "mention", "promise"];
|
|
2923
|
-
var TASK_STATES = ["open", "done", "dismissed"];
|
|
2923
|
+
var TASK_STATES = ["open", "todo", "in_progress", "done", "dismissed"];
|
|
2924
|
+
var CLOSED_STATES = ["done", "dismissed"];
|
|
2924
2925
|
var TASK_ORIGINS = ["rule", "agent", "owner"];
|
|
2925
2926
|
var TASK_VERDICTS = ["useful", "not_useful"];
|
|
2927
|
+
var isClosedState = /* @__PURE__ */ __name((state) => CLOSED_STATES.includes(state), "isClosedState");
|
|
2926
2928
|
function closeTask(task, state, by, at, reason) {
|
|
2927
|
-
if (task.state
|
|
2929
|
+
if (isClosedState(task.state))
|
|
2928
2930
|
throw new CliError("validation_error", `task ${task.id} is already ${task.state}`, { reason: "task.closed" });
|
|
2929
2931
|
const { claimedBy: _by, claimedUntil: _until, ...unclaimed } = task;
|
|
2930
2932
|
return { ...unclaimed, state, closedAt: at, closedBy: by, ...reason === void 0 ? {} : { reason } };
|
|
2931
2933
|
}
|
|
2932
2934
|
__name(closeTask, "closeTask");
|
|
2933
2935
|
|
|
2934
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2936
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/tasks/store.js
|
|
2935
2937
|
function matches2(task, filter) {
|
|
2936
2938
|
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);
|
|
2937
2939
|
}
|
|
2938
2940
|
__name(matches2, "matches");
|
|
2939
2941
|
|
|
2940
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2942
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/tasks/priority.js
|
|
2943
|
+
var PRIORITY_LABELS = ["low", "medium", "high", "critical"];
|
|
2944
|
+
var MIDDLE = { low: 0.125, medium: 0.375, high: 0.625, critical: 0.875 };
|
|
2945
|
+
var LEGACY_PRIORITY_SCORES = [0.875, 0.625, 0.375, 0.1875, 0.0625];
|
|
2946
|
+
var priorityLabel = /* @__PURE__ */ __name((score) => score === null ? null : PRIORITY_LABELS[Math.min(3, Math.max(0, Math.floor(score * 4)))], "priorityLabel");
|
|
2947
|
+
var priorityBand = /* @__PURE__ */ __name((label) => {
|
|
2948
|
+
const at = PRIORITY_LABELS.indexOf(label);
|
|
2949
|
+
return { from: at / 4, to: (at + 1) / 4 };
|
|
2950
|
+
}, "priorityBand");
|
|
2951
|
+
var legacyPriority = /* @__PURE__ */ __name((score) => score === null ? null : score < 0.125 ? 4 : 3 - PRIORITY_LABELS.indexOf(priorityLabel(score)), "legacyPriority");
|
|
2952
|
+
var checkedScore = /* @__PURE__ */ __name((score) => {
|
|
2953
|
+
if (!Number.isFinite(score) || score < 0 || score > 1)
|
|
2954
|
+
throw new CliError("validation_error", "a priority score is 0 to 1");
|
|
2955
|
+
return score;
|
|
2956
|
+
}, "checkedScore");
|
|
2957
|
+
var priorityOf = /* @__PURE__ */ __name((value) => {
|
|
2958
|
+
const word = value.trim().toLowerCase();
|
|
2959
|
+
if (word === "none")
|
|
2960
|
+
return null;
|
|
2961
|
+
if (PRIORITY_LABELS.includes(word))
|
|
2962
|
+
return MIDDLE[word];
|
|
2963
|
+
if (/^[0-4]$/.test(word))
|
|
2964
|
+
return LEGACY_PRIORITY_SCORES[Number(word)];
|
|
2965
|
+
throw new CliError("validation_error", `a priority is ${PRIORITY_LABELS.join(", ")} or none; 0 (urgent) \u2026 4 (low) still work as critical, high, medium, low, low`);
|
|
2966
|
+
}, "priorityOf");
|
|
2967
|
+
var priorityOption = /* @__PURE__ */ __name((value) => priorityOf(value) ?? "none", "priorityOption");
|
|
2968
|
+
|
|
2969
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/tasks/service.js
|
|
2941
2970
|
function createTaskService({ store, now = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Date(), "now"), newId = /* @__PURE__ */ __name(() => crypto.randomUUID(), "newId") }) {
|
|
2942
2971
|
async function find(id3) {
|
|
2943
2972
|
const task = await store.get(id3);
|
|
@@ -2975,7 +3004,7 @@ function createTaskService({ store, now = /* @__PURE__ */ __name(() => /* @__PUR
|
|
|
2975
3004
|
for (const task of await store.list(filter))
|
|
2976
3005
|
byGroup.set(task.group, [...byGroup.get(task.group) ?? [], task]);
|
|
2977
3006
|
return [...byGroup].map(([group, tasks]) => {
|
|
2978
|
-
const open = tasks.filter((task) => task.state
|
|
3007
|
+
const open = tasks.filter((task) => !isClosedState(task.state));
|
|
2979
3008
|
const closeMs = tasks.flatMap((task) => task.closedAt ? [task.closedAt.getTime() - task.createdAt.getTime()] : []);
|
|
2980
3009
|
const oldestOpenAt = open.map((task) => task.createdAt).sort((a, b) => a.getTime() - b.getTime())[0];
|
|
2981
3010
|
return {
|
|
@@ -2997,7 +3026,7 @@ function median(values) {
|
|
|
2997
3026
|
}
|
|
2998
3027
|
__name(median, "median");
|
|
2999
3028
|
|
|
3000
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3029
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/domain/knowledge.js
|
|
3001
3030
|
var FACT_TYPES = ["fact", "statement", "question", "decision", "promise"];
|
|
3002
3031
|
var FACT_STATUSES = ["proposed", "accepted", "superseded", "reversed", "rejected"];
|
|
3003
3032
|
var MEMORY_KINDS = ["summary", "digest", "preference"];
|
|
@@ -3104,6 +3133,13 @@ export {
|
|
|
3104
3133
|
TASK_STATES,
|
|
3105
3134
|
TASK_ORIGINS,
|
|
3106
3135
|
TASK_VERDICTS,
|
|
3136
|
+
isClosedState,
|
|
3137
|
+
PRIORITY_LABELS,
|
|
3138
|
+
priorityLabel,
|
|
3139
|
+
priorityBand,
|
|
3140
|
+
legacyPriority,
|
|
3141
|
+
checkedScore,
|
|
3142
|
+
priorityOption,
|
|
3107
3143
|
createTaskService,
|
|
3108
3144
|
matches2 as matches,
|
|
3109
3145
|
FACT_TYPES,
|
|
@@ -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.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/shared-55XJMTPA.js
|
|
8
8
|
var entityKind = /* @__PURE__ */ Symbol.for("drizzle:entityKind");
|
|
9
9
|
var kindsByConstructor = /* @__PURE__ */ new WeakMap();
|
|
10
10
|
function collectKinds(ctor) {
|
|
@@ -3,11 +3,11 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
envName,
|
|
5
5
|
readOnlyLockOf
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-43ZFY6TW.js";
|
|
7
7
|
import {
|
|
8
8
|
CAPABILITY_STATEMENTS,
|
|
9
9
|
storeCapable
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-TWZTQHP6.js";
|
|
11
11
|
import {
|
|
12
12
|
catchCrashes
|
|
13
13
|
} from "./chunk-BWRCPMMC.js";
|
|
@@ -21,10 +21,10 @@ import {
|
|
|
21
21
|
__name
|
|
22
22
|
} from "./chunk-ZVVMGPBJ.js";
|
|
23
23
|
|
|
24
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/cli/entry.js
|
|
25
25
|
import { spawn as spawn2 } from "node:child_process";
|
|
26
26
|
|
|
27
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/sqlite-runtime.js
|
|
28
28
|
import { spawn, spawnSync } from "node:child_process";
|
|
29
29
|
import { readFileSync } from "node:fs";
|
|
30
30
|
import { dirname } from "node:path";
|
|
@@ -112,7 +112,7 @@ var relay = /* @__PURE__ */ __name((child, host = process) => new Promise(() =>
|
|
|
112
112
|
});
|
|
113
113
|
}), "relay");
|
|
114
114
|
|
|
115
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
115
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/cli/argv-log.js
|
|
116
116
|
import { appendFileSync } from "node:fs";
|
|
117
117
|
var logParsedArgv = /* @__PURE__ */ __name((file, action) => {
|
|
118
118
|
const words = [];
|
|
@@ -136,7 +136,7 @@ var logVersion = /* @__PURE__ */ __name((file) => {
|
|
|
136
136
|
`);
|
|
137
137
|
}, "logVersion");
|
|
138
138
|
|
|
139
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
139
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/cli/entry.js
|
|
140
140
|
var processIo = /* @__PURE__ */ __name(() => ({
|
|
141
141
|
argv: process.argv,
|
|
142
142
|
env: process.env,
|
|
@@ -190,8 +190,8 @@ var startCli = /* @__PURE__ */ __name(async (entry) => {
|
|
|
190
190
|
if (command.optsWithGlobals().dryRun === true)
|
|
191
191
|
return;
|
|
192
192
|
const [{ setupAtStart }, { commandPathOf }] = await Promise.all([
|
|
193
|
-
import("./first-run-
|
|
194
|
-
import("./command-contract-
|
|
193
|
+
import("./first-run-J67KTUWA.js"),
|
|
194
|
+
import("./command-contract-JCRVVL7P.js")
|
|
195
195
|
]);
|
|
196
196
|
await setupAtStart({
|
|
197
197
|
command: entry.app.command,
|
|
@@ -206,7 +206,7 @@ var startCli = /* @__PURE__ */ __name(async (entry) => {
|
|
|
206
206
|
ask: /* @__PURE__ */ __name(async (question, command) => {
|
|
207
207
|
if (headless(command) || io.stdin.isTTY !== true)
|
|
208
208
|
return false;
|
|
209
|
-
const { readSecret } = await import("./prompt-
|
|
209
|
+
const { readSecret } = await import("./prompt-S6R7IHDK.js");
|
|
210
210
|
const answer = await readSecret(`${question} [y/N] `, {
|
|
211
211
|
input: io.stdin,
|
|
212
212
|
output: io.stderr,
|
|
@@ -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.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/mcp/bot/instructions.js
|
|
8
8
|
var botInstructions = /* @__PURE__ */ __name(({ command, name, profile, writes, skill }) => [
|
|
9
9
|
`The owner's ${name} bot "${profile}", through the official Bot API \u2014 not the owner's personal account. What it writes, people see as the bot.`,
|
|
10
10
|
"Use these tools to read the chats this bot is in, find a message or a person, and \u2014 when the profile allows \u2014 write as the bot.",
|
|
@@ -8,12 +8,12 @@ import {
|
|
|
8
8
|
ACCESS_SECONDS,
|
|
9
9
|
REFRESH_SECONDS,
|
|
10
10
|
readStored
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-YFK3DNNP.js";
|
|
12
12
|
import {
|
|
13
13
|
__name
|
|
14
14
|
} from "./chunk-ZVVMGPBJ.js";
|
|
15
15
|
|
|
16
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.517.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.68.1_commander@15._6629eebba461c30d3c69d5318744d1d9/node_modules/@wirecat/cli-core/dist/mcp/http/oauth.js
|
|
17
17
|
import { createHash, randomBytes, randomInt, timingSafeEqual } from "node:crypto";
|
|
18
18
|
import { chmodSync, mkdirSync, renameSync, rmSync, writeFileSync } from "node:fs";
|
|
19
19
|
import { dirname } from "node:path";
|