@wirecat/drive-cli 0.54.3 → 0.56.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/README.md +5 -0
- package/dist/bin/drive.js +2 -2
- package/dist/bundle/{all-profiles-I5KJKZPF.js → all-profiles-7LSZ3CC3.js} +9 -9
- package/dist/bundle/{anthropic-DPM7BRKX.js → anthropic-3QRM4QXB.js} +5 -5
- package/dist/bundle/{app-server-FTGLOZ2K.js → app-server-WWNMUHID.js} +48 -48
- package/dist/bundle/{bun-XRO6XJHQ.js → bun-NIIYUR5F.js} +2 -2
- package/dist/bundle/{bun-sqlite-7JJX6OUT.js → bun-sqlite-GSLSN3OT.js} +4 -4
- package/dist/bundle/{chunk-NPMVPKBD.js → chunk-2QLLKDE5.js} +48 -47
- package/dist/bundle/{chunk-P4ABC6C4.js → chunk-2ULJW5BA.js} +2 -2
- package/dist/bundle/{chunk-AR2HRFQO.js → chunk-373WJIHE.js} +2 -2
- package/dist/bundle/{chunk-K2DMCTTF.js → chunk-3BXSLNWW.js} +129 -97
- package/dist/bundle/{chunk-BO7ZKZCH.js → chunk-4F2VRJZE.js} +121 -46
- package/dist/bundle/{chunk-SBXNI5SK.js → chunk-4MJA4MLV.js} +3 -3
- package/dist/bundle/{chunk-NDUYK676.js → chunk-4UQLL6RJ.js} +10 -9
- package/dist/bundle/{chunk-NFOUG7ES.js → chunk-566W4Q6L.js} +2 -2
- package/dist/bundle/chunk-5E67RIXD.js +247 -0
- package/dist/bundle/{chunk-E7RDXCV2.js → chunk-5KNIVHP6.js} +5 -5
- package/dist/bundle/{chunk-VXZULAWV.js → chunk-64E6QXXQ.js} +14 -13
- package/dist/bundle/{chunk-FNDQFFLP.js → chunk-6CFSDU56.js} +11 -11
- package/dist/bundle/{chunk-ORRQDSDH.js → chunk-6ZA4NR5H.js} +3 -3
- package/dist/bundle/{chunk-PFTIYWOK.js → chunk-7SNS443B.js} +4 -4
- package/dist/bundle/{chunk-JPFF6MNK.js → chunk-AHBUTDS7.js} +8 -8
- package/dist/bundle/{chunk-TIEEVT2Z.js → chunk-AKPFH3KC.js} +1 -1
- package/dist/bundle/{chunk-FDCGTODC.js → chunk-AL7MY7MW.js} +1 -1
- package/dist/bundle/{chunk-RMQGFLT2.js → chunk-B3TPS7BW.js} +6 -6
- package/dist/bundle/{chunk-2DZMGPUC.js → chunk-B64EY2SC.js} +123 -34
- package/dist/bundle/{chunk-2OGANEKA.js → chunk-CD736BG3.js} +2 -2
- package/dist/bundle/{chunk-C4QKY33N.js → chunk-CGCQNYB3.js} +2 -2
- package/dist/bundle/{chunk-2G3HXKBL.js → chunk-DJ75AG3K.js} +2 -2
- package/dist/bundle/{chunk-2KARCTUU.js → chunk-EE7R457T.js} +949 -581
- package/dist/bundle/{chunk-TQFCPUIM.js → chunk-EFEI724Z.js} +1 -1
- package/dist/bundle/{chunk-JBBZCTTF.js → chunk-EFX6FIDM.js} +1 -1
- package/dist/bundle/{chunk-DNJ43DT5.js → chunk-ELIYJXIY.js} +2 -2
- package/dist/bundle/{chunk-NPKFXGYG.js → chunk-EN7OZ5JH.js} +41 -23
- package/dist/bundle/{chunk-IXXVCKWL.js → chunk-G34Y5RAC.js} +26 -26
- package/dist/bundle/{chunk-TBD362SJ.js → chunk-GIQFBXQN.js} +11 -7
- package/dist/bundle/{chunk-KWKRTYRL.js → chunk-GKHUHRSL.js} +4 -4
- package/dist/bundle/{chunk-VGTDXEYD.js → chunk-HNUSPNUQ.js} +26 -13
- package/dist/bundle/{chunk-XTNEYXAQ.js → chunk-IJ2S53WJ.js} +5 -5
- package/dist/bundle/{chunk-FUKJQZED.js → chunk-ISK4K7UE.js} +1 -1
- package/dist/bundle/{chunk-YP5FDMTG.js → chunk-J2HGHSLX.js} +2 -2
- package/dist/bundle/{chunk-ULPS2OAL.js → chunk-JIGMCW4C.js} +4 -4
- package/dist/bundle/{chunk-ALMQEGYO.js → chunk-JLKNUFL2.js} +2 -2
- package/dist/bundle/{chunk-UDWMRZL6.js → chunk-JUKVJ7M2.js} +21 -21
- package/dist/bundle/{chunk-LAVWTS4P.js → chunk-KHNDZNQA.js} +5333 -5108
- package/dist/bundle/{chunk-GB5YM5HK.js → chunk-KM4Y55ZE.js} +5 -5
- package/dist/bundle/{chunk-4XRLPQ3N.js → chunk-L4BBK7UX.js} +2 -2
- package/dist/bundle/{chunk-EOEDICIE.js → chunk-LSSIVBQI.js} +1 -1
- package/dist/bundle/{chunk-UAFQSDQN.js → chunk-NL2KXCFT.js} +389 -255
- package/dist/bundle/{chunk-2LLNPNMB.js → chunk-OOR6PEHV.js} +1 -1
- package/dist/bundle/{chunk-UIPT6IAU.js → chunk-OYNSFQ7K.js} +1 -1
- package/dist/bundle/{chunk-67A2YFAT.js → chunk-OZJMZSFB.js} +4 -4
- package/dist/bundle/{chunk-GC4JNVYF.js → chunk-Q3TMNETS.js} +98 -37
- package/dist/bundle/{chunk-5DEEBWDI.js → chunk-QAT6UXZZ.js} +38 -37
- package/dist/bundle/{chunk-VY3TYRCK.js → chunk-R5GJZPRF.js} +114 -59
- package/dist/bundle/{chunk-4I7EBJJV.js → chunk-RAEKC6TV.js} +6 -6
- package/dist/bundle/{chunk-HNR2BJJU.js → chunk-RB674T6L.js} +75 -17
- package/dist/bundle/{chunk-NCCL4QWR.js → chunk-SRNXTXJN.js} +3 -3
- package/dist/bundle/{chunk-TD4RAOMZ.js → chunk-TKVSJV5P.js} +3 -3
- package/dist/bundle/{chunk-W6DMCGMK.js → chunk-TR5656OS.js} +47 -22
- package/dist/bundle/{chunk-VY2AUZMJ.js → chunk-TZHCS5MG.js} +2 -2
- package/dist/bundle/{chunk-KM7Q67Z3.js → chunk-U2RSVKR5.js} +1 -1
- package/dist/bundle/{chunk-IDK5QUBJ.js → chunk-UKMFPBAO.js} +4 -4
- package/dist/bundle/{chunk-GIRVMZD3.js → chunk-VTJF2L5E.js} +16 -16
- package/dist/bundle/{chunk-AQNY57J2.js → chunk-W5FOPSJZ.js} +7 -7
- package/dist/bundle/{chunk-FKHWVVMV.js → chunk-W6FYYQ2J.js} +3 -3
- package/dist/bundle/{chunk-VVMCGF5X.js → chunk-WAVJWGUC.js} +1811 -883
- package/dist/bundle/{chunk-FDM3JMQZ.js → chunk-WBYCUBYM.js} +89 -36
- package/dist/bundle/{chunk-TIVC4DB5.js → chunk-WJOKTIOJ.js} +2 -2
- package/dist/bundle/{chunk-7MVKSPEG.js → chunk-WJPVGXKA.js} +6 -6
- package/dist/bundle/{chunk-N4VNUOOD.js → chunk-XGNADVIA.js} +18 -18
- package/dist/bundle/{chunk-J6XLM4QW.js → chunk-XJVK7ETL.js} +28 -10
- package/dist/bundle/{chunk-3K4H2DTA.js → chunk-YZ6SYLDC.js} +12 -3
- package/dist/bundle/command-contract-XIACCAZL.js +35 -0
- package/dist/bundle/{decode-3LX3BLZM.js → decode-5MHMPYKE.js} +4 -4
- package/dist/bundle/drive.js +6 -6
- package/dist/bundle/{echarts-YNGCOYHW.js → echarts-CLB22SZS.js} +2 -2
- package/dist/bundle/{embed-FICTRZJL.js → embed-TF66ODAR.js} +5 -5
- package/dist/bundle/{embedder-DSMRCRSH.js → embedder-EDWOIAC2.js} +8 -8
- package/dist/bundle/{entry-4ZX3BNXK.js → entry-CWYCQ53A.js} +8 -6
- package/dist/bundle/{first-run-GRBQ3SQ5.js → first-run-YIH7EHJI.js} +9 -9
- package/dist/bundle/first-screen-THH3XD5Y.js +33 -0
- package/dist/bundle/{google-QV2B2KZA.js → google-A4F2WFO4.js} +9 -9
- package/dist/bundle/{google-api-EVO7F3WB.js → google-api-ZXGQOJUI.js} +51 -51
- package/dist/bundle/grants-B3HZRRAQ.js +98 -0
- package/dist/bundle/{identity-242WNOQW.js → identity-6DGQA6DX.js} +4 -4
- package/dist/bundle/{instructions-GJHHFV64.js → instructions-BXZZNAMS.js} +1 -1
- package/dist/bundle/{login-63HRKAM4.js → login-OUOGSTPH.js} +57 -57
- package/dist/bundle/{mcp-EMNFFY4N.js → mcp-VVMPUDSL.js} +2 -2
- package/dist/bundle/{node-GFOH6FKP.js → node-R6ZNQ3NT.js} +2 -2
- package/dist/bundle/{node-sqlite-NZIBED3C.js → node-sqlite-AFQTE4XZ.js} +4 -4
- package/dist/bundle/{oauth-WUHT2JII.js → oauth-46XBJBML.js} +6 -6
- package/dist/bundle/{open-INBNHORD.js → open-WJCRBIP7.js} +3 -3
- package/dist/bundle/{openai-BMREUGJP.js → openai-3TIBDWZA.js} +13 -13
- package/dist/bundle/{process-XVDX4SPD.js → process-P36JP33R.js} +1 -1
- package/dist/bundle/{program-IB6TS6CR.js → program-7FRXMZNK.js} +91 -81
- package/dist/bundle/{prompt-S7GHCPGR.js → prompt-FFGBIT4A.js} +4 -4
- package/dist/bundle/{reasons-T24V3AYS.js → reasons-VHCVYH54.js} +3 -3
- package/dist/bundle/{recognize-T3DABMW5.js → recognize-4EAKIMON.js} +3 -3
- package/dist/bundle/{remote-ASYGFT6E.js → remote-HX3JP4EH.js} +6 -6
- package/dist/bundle/{rerank-BQ5U252K.js → rerank-BW3A4PUU.js} +6 -6
- package/dist/bundle/{serve-JMLNKCUZ.js → serve-YYOOLIBS.js} +8 -8
- package/dist/bundle/{server-5E6RC7GZ.js → server-G6XTEEFI.js} +38 -38
- package/dist/bundle/server-YKYEUIJT.js +63 -0
- package/dist/bundle/{services-NFB3XSON.js → services-OAPILZOW.js} +45 -25
- package/dist/bundle/{sqlite-runtime-TAMYMQFR.js → sqlite-runtime-GTXDK4PE.js} +4 -4
- package/dist/bundle/{state-DS4G3ZXV.js → state-XG335LGZ.js} +5 -5
- package/dist/bundle/{store-MLMKYJLC.js → store-7KOXJNQP.js} +14 -12
- package/dist/bundle/{store-HAS2LRFE.js → store-N53SJOPS.js} +33 -15
- package/dist/bundle/store-maintenance-command-W3TI52X2.js +52 -0
- package/dist/bundle/tokens-CG3A5KS4.js +96 -0
- package/dist/commands/documents.d.ts.map +1 -1
- package/dist/commands/documents.js +9 -4
- package/dist/commands/documents.js.map +1 -1
- package/dist/commands/knowledge.d.ts.map +1 -1
- package/dist/commands/knowledge.js +10 -2
- package/dist/commands/knowledge.js.map +1 -1
- package/dist/config.d.ts +6 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +4 -12
- package/dist/config.js.map +1 -1
- package/dist/profile-lock.js +2 -2
- package/dist/profile-lock.js.map +1 -1
- package/dist/reasons.js +1 -1
- package/dist/reasons.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/bundle/chunk-G2U2EHSN.js +0 -331
- package/dist/bundle/command-contract-VXLGE6NV.js +0 -35
- package/dist/bundle/first-screen-JK3MZVCU.js +0 -33
- package/dist/bundle/grants-RB5WP6T7.js +0 -98
- package/dist/bundle/server-QI4C3CQT.js +0 -63
- package/dist/bundle/store-maintenance-command-LI3JR22B.js +0 -52
- package/dist/bundle/tokens-JZOPZ46T.js +0 -96
- /package/dist/bundle/{chunk-NPGVOZVK.js → chunk-HPXYN7F3.js} +0 -0
|
@@ -8,11 +8,11 @@ import {
|
|
|
8
8
|
queryFieldsOf,
|
|
9
9
|
timezoneOf,
|
|
10
10
|
validateQuery
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-XJVK7ETL.js";
|
|
12
12
|
import {
|
|
13
13
|
singleLine,
|
|
14
14
|
visibleControls
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-XGNADVIA.js";
|
|
16
16
|
import {
|
|
17
17
|
CliError,
|
|
18
18
|
STEPS,
|
|
@@ -37,12 +37,12 @@ import {
|
|
|
37
37
|
strictObject,
|
|
38
38
|
string,
|
|
39
39
|
union
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-GIQFBXQN.js";
|
|
41
41
|
import {
|
|
42
42
|
__name
|
|
43
43
|
} from "./chunk-ZVVMGPBJ.js";
|
|
44
44
|
|
|
45
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
45
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/meetings/passage.js
|
|
46
46
|
var meetingHitContextLimits = /* @__PURE__ */ __name((options = {}) => {
|
|
47
47
|
const { before = 3, after = 3, bytes = 65536, max_read_bytes = 4194304, expected_fingerprint } = options;
|
|
48
48
|
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)))
|
|
@@ -55,7 +55,7 @@ var validateMeetingPassage = /* @__PURE__ */ __name((reference2, options) => {
|
|
|
55
55
|
throw new CliError("validation_error", "choose a cue reference and json, text or markdown output");
|
|
56
56
|
}, "validateMeetingPassage");
|
|
57
57
|
|
|
58
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
58
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/meetings/reference.js
|
|
59
59
|
var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "expected meeting:<accountId>/<meetingId>[/<transcriptId>[/<cuePosition>]] with safe integer IDs"), "invalid");
|
|
60
60
|
var integer2 = /* @__PURE__ */ __name((value, minimum = 1) => {
|
|
61
61
|
if (!Number.isSafeInteger(value) || value < minimum)
|
|
@@ -92,7 +92,7 @@ var parseMeetingReference = /* @__PURE__ */ __name((text7) => {
|
|
|
92
92
|
}, "parseMeetingReference");
|
|
93
93
|
var canonicalMeetingReference = /* @__PURE__ */ __name((text7) => formatMeetingReference(parseMeetingReference(text7)), "canonicalMeetingReference");
|
|
94
94
|
|
|
95
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
95
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/meetings/item.js
|
|
96
96
|
var text = string();
|
|
97
97
|
var count = pipe(number(), integer(), minValue(0));
|
|
98
98
|
var MEETING_ISSUES = ["time_without_zone"];
|
|
@@ -157,7 +157,7 @@ var MEETING_QUERY = {
|
|
|
157
157
|
})
|
|
158
158
|
};
|
|
159
159
|
|
|
160
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
160
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/meetings/answers.js
|
|
161
161
|
var text2 = string();
|
|
162
162
|
var count2 = pipe(number(), integer(), minValue(0));
|
|
163
163
|
var iso2 = /* @__PURE__ */ __name((ms) => ms === null ? null : new Date(ms).toISOString(), "iso");
|
|
@@ -384,7 +384,7 @@ var meetingHitsList = /* @__PURE__ */ __name((found, limit, command = "search me
|
|
|
384
384
|
};
|
|
385
385
|
}, "meetingHitsList");
|
|
386
386
|
|
|
387
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
387
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/meetings/join-key.js
|
|
388
388
|
var joinKeyOf = /* @__PURE__ */ __name((url) => {
|
|
389
389
|
const parsed = urlOf(url);
|
|
390
390
|
if (!parsed)
|
|
@@ -418,7 +418,7 @@ var urlOf = /* @__PURE__ */ __name((url) => {
|
|
|
418
418
|
}
|
|
419
419
|
}, "urlOf");
|
|
420
420
|
|
|
421
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
421
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/meetings/calendar-text.js
|
|
422
422
|
var ENTITIES = { amp: "&", lt: "<", gt: ">", quot: '"', "#39": "'", apos: "'", nbsp: " " };
|
|
423
423
|
var SECRET_LINE = /(?<![\p{L}\p{N}])(pass ?codes?|passwords?|pwd|pins?|access ?codes?|meeting ?codes?|kennwort|пароль|пин-?код|код доступа)(?![\p{L}\p{N}])|pwd=/iu;
|
|
424
424
|
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");
|
|
@@ -451,7 +451,7 @@ var entryMetadata = /* @__PURE__ */ __name((metadata) => {
|
|
|
451
451
|
return kept;
|
|
452
452
|
}, "entryMetadata");
|
|
453
453
|
|
|
454
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
454
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/meetings/cue-fingerprint.js
|
|
455
455
|
import { createHash } from "node:crypto";
|
|
456
456
|
var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256").update(JSON.stringify({
|
|
457
457
|
reference: cue2.reference,
|
|
@@ -465,7 +465,7 @@ var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256"
|
|
|
465
465
|
text: cue2.text
|
|
466
466
|
})).digest("hex"), "meetingCueFingerprint");
|
|
467
467
|
|
|
468
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
468
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/meetings/event-query.js
|
|
469
469
|
var EVENT_QUERY = defineQuery({
|
|
470
470
|
entity: "event",
|
|
471
471
|
backend: "sql",
|
|
@@ -481,7 +481,7 @@ var EVENT_QUERY = defineQuery({
|
|
|
481
481
|
]
|
|
482
482
|
});
|
|
483
483
|
|
|
484
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
484
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/meetings/event-store.js
|
|
485
485
|
var UNTIL = /(?:^|;)UNTIL=(\d{4})(\d{2})(\d{2})(?:T(\d{2})(\d{2})(\d{2})Z?)?(?:;|$)/iu;
|
|
486
486
|
var seriesEnd = /* @__PURE__ */ __name((entry) => {
|
|
487
487
|
if (entry.recurrenceEndsAt !== null)
|
|
@@ -504,7 +504,7 @@ var entryInWindow = /* @__PURE__ */ __name((entry, window) => {
|
|
|
504
504
|
return Math.max(entry.endsAt ?? start, start + 1) > window.from;
|
|
505
505
|
}, "entryInWindow");
|
|
506
506
|
|
|
507
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
507
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/meetings/events.js
|
|
508
508
|
var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now()) => {
|
|
509
509
|
const current = await store.meeting(details.meeting.id);
|
|
510
510
|
if (!current)
|
|
@@ -547,7 +547,7 @@ var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now())
|
|
|
547
547
|
return (await store.events()).find((e) => e.id === linked?.meeting.eventId) ?? null;
|
|
548
548
|
}, "linkEvent");
|
|
549
549
|
|
|
550
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
550
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/meetings/participant-search.js
|
|
551
551
|
var normalizeMeetingParticipantQuery = /* @__PURE__ */ __name((text7) => text7.normalize("NFKC").toLowerCase(), "normalizeMeetingParticipantQuery");
|
|
552
552
|
var validateMeetingParticipantQuery = /* @__PURE__ */ __name((query) => {
|
|
553
553
|
if (typeof query !== "string" || !query.trim() || query.length > 500 || query.includes("\0"))
|
|
@@ -571,7 +571,7 @@ var validateMeetingParticipantSearch = /* @__PURE__ */ __name((query, input) =>
|
|
|
571
571
|
};
|
|
572
572
|
}, "validateMeetingParticipantSearch");
|
|
573
573
|
|
|
574
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
574
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/meetings/reads.js
|
|
575
575
|
var MeetingError = class extends CliError {
|
|
576
576
|
static {
|
|
577
577
|
__name(this, "MeetingError");
|
|
@@ -703,7 +703,7 @@ var meetingSummaryAnswer = /* @__PURE__ */ __name(async (store, id4, accountId)
|
|
|
703
703
|
return wholeList(details.summaries.map((one) => meetingSummaryItem(details.meeting.accountId, one)));
|
|
704
704
|
}, "meetingSummaryAnswer");
|
|
705
705
|
|
|
706
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
706
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/meetings/export.js
|
|
707
707
|
var timestamp = /* @__PURE__ */ __name((milliseconds) => {
|
|
708
708
|
if (!Number.isSafeInteger(milliseconds) || milliseconds < 0)
|
|
709
709
|
throw new MeetingError("validation_error", "transcript times must be nonnegative integer milliseconds");
|
|
@@ -799,10 +799,10 @@ var exportMeeting = /* @__PURE__ */ __name(async (store, id4, options) => {
|
|
|
799
799
|
};
|
|
800
800
|
}, "exportMeeting");
|
|
801
801
|
|
|
802
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
802
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
|
|
803
803
|
import { createHash as createHash2 } from "node:crypto";
|
|
804
804
|
|
|
805
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
805
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/meetings/provider.js
|
|
806
806
|
var snapshotMeetingScope = /* @__PURE__ */ __name((scope2) => {
|
|
807
807
|
const provider = scope2?.provider;
|
|
808
808
|
const account = scope2?.account;
|
|
@@ -811,7 +811,7 @@ var snapshotMeetingScope = /* @__PURE__ */ __name((scope2) => {
|
|
|
811
811
|
return Object.freeze({ provider, account });
|
|
812
812
|
}, "snapshotMeetingScope");
|
|
813
813
|
|
|
814
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
814
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/meetings/timestamp.js
|
|
815
815
|
var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
|
|
816
816
|
if (typeof value !== "string" || !/^\d{4}-\d{2}-\d{2}T.+(?:Z|[+-]\d{2}:\d{2})$/i.test(value) || !Number.isFinite(Date.parse(value)))
|
|
817
817
|
throw new CliError("validation_error", `${name} must be an ISO timestamp with a timezone`);
|
|
@@ -822,7 +822,7 @@ var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
|
|
|
822
822
|
return new Date(value).toISOString();
|
|
823
823
|
}, "meetingTimestamp");
|
|
824
824
|
|
|
825
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
825
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/meetings/meeting-management.js
|
|
826
826
|
var nonempty = /* @__PURE__ */ __name((value, name) => {
|
|
827
827
|
if (typeof value !== "string" || !value.trim())
|
|
828
828
|
throw new CliError("validation_error", `${name} must be nonempty`);
|
|
@@ -888,7 +888,7 @@ var dispatchMeetingMutation = /* @__PURE__ */ __name(async (options, dispatch) =
|
|
|
888
888
|
return { applied: true, value: await dispatch(signal) };
|
|
889
889
|
}, "dispatchMeetingMutation");
|
|
890
890
|
|
|
891
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
891
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/meetings/meeting-context.js
|
|
892
892
|
var MEETING_FACT_TYPES = ["fact", "statement", "question", "decision", "promise"];
|
|
893
893
|
var id = /* @__PURE__ */ __name((value) => {
|
|
894
894
|
if (typeof value !== "number" || !Number.isSafeInteger(value) || value < 1)
|
|
@@ -1011,7 +1011,7 @@ var createMeetingContext = /* @__PURE__ */ __name((scope2, accountId, ports) =>
|
|
|
1011
1011
|
};
|
|
1012
1012
|
}, "createMeetingContext");
|
|
1013
1013
|
|
|
1014
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1014
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
|
|
1015
1015
|
var TASK_TYPES = ["bug", "feature", "chore"];
|
|
1016
1016
|
var invalid2 = /* @__PURE__ */ __name((message) => {
|
|
1017
1017
|
throw new CliError("validation_error", message);
|
|
@@ -1026,6 +1026,7 @@ var fields2 = /* @__PURE__ */ __name((value, allowed, noun) => {
|
|
|
1026
1026
|
if (Object.keys(value).some((key) => !allowed.includes(key)))
|
|
1027
1027
|
invalid2(`unknown ${noun} field`);
|
|
1028
1028
|
}, "fields");
|
|
1029
|
+
var SUBJECT = /^(person|organization|project):[1-9]\d*$|^task:[A-Za-z0-9][A-Za-z0-9_.-]{0,63}$/;
|
|
1029
1030
|
var validateFindings = /* @__PURE__ */ __name((input, rules) => {
|
|
1030
1031
|
if (!input || typeof input !== "object" || Buffer.byteLength(JSON.stringify(input), "utf8") > 65536)
|
|
1031
1032
|
return invalid2(`${rules.plural} take at most 65536 UTF-8 bytes`);
|
|
@@ -1043,9 +1044,13 @@ var validateFindings = /* @__PURE__ */ __name((input, rules) => {
|
|
|
1043
1044
|
if (!/^[a-zA-Z0-9][a-zA-Z0-9_.:-]*$/.test(id4) || ids2.has(id4))
|
|
1044
1045
|
return invalid2("finding IDs must be unique simple keys");
|
|
1045
1046
|
ids2.add(id4);
|
|
1046
|
-
const project = text4(finding.project, 64);
|
|
1047
|
-
if (!/^project:[1-9]\d*$/.test(project))
|
|
1047
|
+
const project = finding.project === void 0 && rules.anySubject ? void 0 : text4(finding.project, 64);
|
|
1048
|
+
if (project !== void 0 && !/^project:[1-9]\d*$/.test(project))
|
|
1048
1049
|
return invalid2("a finding names a project reference");
|
|
1050
|
+
if (finding.subject !== void 0 && (!rules.anySubject || !SUBJECT.test(text4(finding.subject, 80))))
|
|
1051
|
+
return invalid2("a finding's subject is a person:, organization:, task: or project: reference");
|
|
1052
|
+
if (finding.kind === "task" && project === void 0)
|
|
1053
|
+
return invalid2("a task finding names the project the task goes in");
|
|
1049
1054
|
if (!Array.isArray(finding.evidence) || finding.evidence.length < 1 || finding.evidence.length > 8)
|
|
1050
1055
|
return invalid2(`a finding requires 1\u20138 cited ${rules.cited}s`);
|
|
1051
1056
|
const evidence = finding.evidence.map((item) => {
|
|
@@ -1061,9 +1066,14 @@ var validateFindings = /* @__PURE__ */ __name((input, rules) => {
|
|
|
1061
1066
|
}).sort((a, b) => a.reference.localeCompare(b.reference));
|
|
1062
1067
|
if (new Set(evidence.map((item) => item.reference)).size !== evidence.length)
|
|
1063
1068
|
return invalid2(`duplicate evidence ${rules.cited}`);
|
|
1064
|
-
const base = {
|
|
1069
|
+
const base = {
|
|
1070
|
+
id: id4,
|
|
1071
|
+
...project === void 0 ? {} : { project },
|
|
1072
|
+
...finding.subject === void 0 ? {} : { subject: finding.subject },
|
|
1073
|
+
evidence
|
|
1074
|
+
};
|
|
1065
1075
|
if (finding.kind === "fact") {
|
|
1066
|
-
fields2(finding, ["id", "project", "evidence", "kind", "type", "statement"], rules.singular);
|
|
1076
|
+
fields2(finding, ["id", "project", "subject", "evidence", "kind", "type", "statement"], rules.singular);
|
|
1067
1077
|
if (!MEETING_FACT_TYPES.includes(finding.type))
|
|
1068
1078
|
return invalid2("unknown fact finding type");
|
|
1069
1079
|
return { ...base, kind: "fact", type: finding.type, statement: text4(finding.statement, 2e3) };
|
|
@@ -1112,7 +1122,7 @@ var validateFindings = /* @__PURE__ */ __name((input, rules) => {
|
|
|
1112
1122
|
}, "validateFindings");
|
|
1113
1123
|
var findingFingerprint = /* @__PURE__ */ __name(({ id: _id, ...finding }) => findingHash(finding), "findingFingerprint");
|
|
1114
1124
|
|
|
1115
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1125
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/meetings/findings.js
|
|
1116
1126
|
var MEETING_FINDINGS_KIND = "meeting_findings";
|
|
1117
1127
|
var cue = /* @__PURE__ */ __name((raw) => {
|
|
1118
1128
|
const reference2 = canonicalMeetingReference(raw);
|
|
@@ -1123,7 +1133,7 @@ var cue = /* @__PURE__ */ __name((raw) => {
|
|
|
1123
1133
|
var validateMeetingFindings = /* @__PURE__ */ __name((input) => validateFindings(input, { plural: "meeting findings", singular: "meeting finding", cited: "cue", reference: cue }), "validateMeetingFindings");
|
|
1124
1134
|
var meetingFindingFingerprint = findingFingerprint;
|
|
1125
1135
|
|
|
1126
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1136
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/meetings/hit-query.js
|
|
1127
1137
|
var context = {
|
|
1128
1138
|
command: "search meetings",
|
|
1129
1139
|
guide: "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md#\u0432\u0441\u0442\u0440\u0435\u0447\u0438"
|
|
@@ -1242,7 +1252,7 @@ var meetingWordsQuery = /* @__PURE__ */ __name((text7) => {
|
|
|
1242
1252
|
return { version: 1, language: "lucene-v1", root };
|
|
1243
1253
|
}, "meetingWordsQuery");
|
|
1244
1254
|
|
|
1245
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1255
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/meetings/ingest.js
|
|
1246
1256
|
var contentHash = /* @__PURE__ */ __name(async (text7) => {
|
|
1247
1257
|
const bytes = await crypto.subtle.digest("SHA-256", new TextEncoder().encode(text7));
|
|
1248
1258
|
return Array.from(new Uint8Array(bytes), (byte) => byte.toString(16).padStart(2, "0")).join("");
|
|
@@ -1279,7 +1289,7 @@ var timestamp2 = /* @__PURE__ */ __name((value) => {
|
|
|
1279
1289
|
return time;
|
|
1280
1290
|
}, "timestamp");
|
|
1281
1291
|
|
|
1282
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1292
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/meetings/transcript-text.js
|
|
1283
1293
|
var TranscriptTextError = class extends Error {
|
|
1284
1294
|
static {
|
|
1285
1295
|
__name(this, "TranscriptTextError");
|
|
@@ -1334,7 +1344,7 @@ var parseTranscriptText = /* @__PURE__ */ __name((input) => {
|
|
|
1334
1344
|
return { header, lines };
|
|
1335
1345
|
}, "parseTranscriptText");
|
|
1336
1346
|
|
|
1337
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1347
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/meetings/vtt.js
|
|
1338
1348
|
var VttError = class extends Error {
|
|
1339
1349
|
static {
|
|
1340
1350
|
__name(this, "VttError");
|
|
@@ -1386,7 +1396,7 @@ var parseVtt = /* @__PURE__ */ __name((input) => {
|
|
|
1386
1396
|
return cues;
|
|
1387
1397
|
}, "parseVtt");
|
|
1388
1398
|
|
|
1389
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1399
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/meetings/import.js
|
|
1390
1400
|
var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now()) => {
|
|
1391
1401
|
const report = { meetings: 0, participants: 0, transcriptRows: 0, summaries: 0, warnings: [] };
|
|
1392
1402
|
for (const file of files) {
|
|
@@ -1419,10 +1429,10 @@ var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now())
|
|
|
1419
1429
|
return report;
|
|
1420
1430
|
}, "importFiles");
|
|
1421
1431
|
|
|
1422
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1432
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/meetings/links.js
|
|
1423
1433
|
var CHAT_MESSAGES_READ = 1e5;
|
|
1424
1434
|
|
|
1425
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1435
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/meetings/preparation-context.js
|
|
1426
1436
|
var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
|
|
1427
1437
|
if (!original || typeof original !== "object" || Array.isArray(original))
|
|
1428
1438
|
throw new CliError("validation_error", "meeting preparation context is required");
|
|
@@ -1447,7 +1457,7 @@ var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
|
|
|
1447
1457
|
return { ...input, limit, maxReadBytes };
|
|
1448
1458
|
}, "validateMeetingPreparationContext");
|
|
1449
1459
|
|
|
1450
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1460
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-answer.js
|
|
1451
1461
|
var count3 = pipe(number(), integer(), minValue(0));
|
|
1452
1462
|
var id2 = pipe(string(), minLength(1));
|
|
1453
1463
|
var meetingProjectEvidence = strictObject({
|
|
@@ -1568,7 +1578,7 @@ var meetingProjectEvidenceAnswer = /* @__PURE__ */ __name((page, prepared, comma
|
|
|
1568
1578
|
};
|
|
1569
1579
|
}, "meetingProjectEvidenceAnswer");
|
|
1570
1580
|
|
|
1571
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1581
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/meetings/search-validation.js
|
|
1572
1582
|
var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
|
|
1573
1583
|
const integer3 = /* @__PURE__ */ __name((value, low, high) => Number.isSafeInteger(value) && value >= low && value <= high, "integer");
|
|
1574
1584
|
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) || [
|
|
@@ -1588,7 +1598,7 @@ var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
|
|
|
1588
1598
|
throw new CliError("validation_error", "choose one project selector and one tag or topic selector");
|
|
1589
1599
|
}, "validateMeetingHitSearch");
|
|
1590
1600
|
|
|
1591
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1601
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-query.js
|
|
1592
1602
|
var ids = {
|
|
1593
1603
|
meeting_id: "meetingId",
|
|
1594
1604
|
identity_id: "participantIdentityId",
|
|
@@ -1679,7 +1689,7 @@ var prepareMeetingProjectEvidence = /* @__PURE__ */ __name((project, request = {
|
|
|
1679
1689
|
return { project: project.trim(), options, query: frozen.join(" AND ") };
|
|
1680
1690
|
}, "prepareMeetingProjectEvidence");
|
|
1681
1691
|
|
|
1682
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1692
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/meetings/project-evidence.js
|
|
1683
1693
|
var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project, request = {}, now = Date.now()) => {
|
|
1684
1694
|
const prepared = prepareMeetingProjectEvidence(project, request, now);
|
|
1685
1695
|
const page = await read(prepared.project, prepared.options);
|
|
@@ -1687,7 +1697,7 @@ var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project, re
|
|
|
1687
1697
|
return meetingProjectEvidenceAnswer(page, prepared);
|
|
1688
1698
|
}, "readMeetingProjectEvidence");
|
|
1689
1699
|
|
|
1690
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1700
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/meetings/pull.js
|
|
1691
1701
|
var participantInput = /* @__PURE__ */ __name((p, provider, occurrenceId2, position, accountId) => {
|
|
1692
1702
|
const { identityExternalId, ...fields3 } = p;
|
|
1693
1703
|
const externalId = identityExternalId ?? (p.email ? `email:${p.email.toLowerCase()}` : p.externalId) ?? `name:${p.displayName ?? "unknown"}@${accountId}/${occurrenceId2}:${position}`;
|
|
@@ -1826,7 +1836,7 @@ unlinked`, format)],
|
|
|
1826
1836
|
return report;
|
|
1827
1837
|
}, "pull");
|
|
1828
1838
|
|
|
1829
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1839
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/meetings/read-answers.js
|
|
1830
1840
|
var text5 = string();
|
|
1831
1841
|
var count4 = pipe(number(), integer(), minValue(0));
|
|
1832
1842
|
var id3 = pipe(number(), integer(), minValue(1));
|
|
@@ -1977,7 +1987,12 @@ var event = strictObject({
|
|
|
1977
1987
|
changed_at: optional(nullable(isoTime)),
|
|
1978
1988
|
/** The times a moved event had at that date. */
|
|
1979
1989
|
was: optional(strictObject({ starts_at: nullable(isoTime), ends_at: nullable(isoTime) })),
|
|
1980
|
-
/**
|
|
1990
|
+
/**
|
|
1991
|
+
* Whether its time overlaps another event's, in the accounts read: a timed event, not cancelled, not declined, not
|
|
1992
|
+
* free and no working-location block. On a calendar CLI's `events list` when the query names it.
|
|
1993
|
+
*/
|
|
1994
|
+
overlapping: optional(boolean()),
|
|
1995
|
+
/** With `overlapping:true`: the events it overlaps, as `event:<id>`. */
|
|
1981
1996
|
overlaps: optional(array(text5))
|
|
1982
1997
|
});
|
|
1983
1998
|
var eventItem = /* @__PURE__ */ __name((one) => ({
|
|
@@ -1998,10 +2013,10 @@ var eventItem = /* @__PURE__ */ __name((one) => ({
|
|
|
1998
2013
|
updated_at: new Date(one.updatedAt).toISOString()
|
|
1999
2014
|
}), "eventItem");
|
|
2000
2015
|
|
|
2001
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2016
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/meetings/recording-transfer.js
|
|
2002
2017
|
var strongRecordingValidator = /* @__PURE__ */ __name((value) => typeof value === "string" && value.length <= 1024 && /^"[\x21\x23-\x7e\x80-\xff]*"$/.test(value), "strongRecordingValidator");
|
|
2003
2018
|
|
|
2004
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2019
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/meetings/related-history.js
|
|
2005
2020
|
var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
|
|
2006
2021
|
if (!original || typeof original !== "object" || Array.isArray(original))
|
|
2007
2022
|
throw new CliError("validation_error", "related history request is required");
|
|
@@ -2031,7 +2046,7 @@ var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
|
|
|
2031
2046
|
return { ...input, anchorIds: [...new Set(input.anchorIds)], limit, maxReadBytes };
|
|
2032
2047
|
}, "validateMeetingRelatedHistory");
|
|
2033
2048
|
|
|
2034
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2049
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/meetings/result-items.js
|
|
2035
2050
|
var text6 = string();
|
|
2036
2051
|
var identifier = pipe(text6, minLength(1));
|
|
2037
2052
|
var nullableText = nullable(text6);
|
|
@@ -2157,14 +2172,14 @@ var MEETING_RESULT_ENTITIES = {
|
|
|
2157
2172
|
meeting_embedding: embedding
|
|
2158
2173
|
};
|
|
2159
2174
|
|
|
2160
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2175
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/meetings/review.js
|
|
2161
2176
|
var REVIEW_LIMIT = { default: 50, most: 200 };
|
|
2162
2177
|
|
|
2163
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2178
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/meetings/save-hints.js
|
|
2164
2179
|
var SAVE_HELP = `Worth keeping \u2014 a decision, a promise, a preference? Record it with \`memo facts add\` or
|
|
2165
2180
|
\`memo memories add\`, citing the msg: locator or meeting: reference as --evidence.`;
|
|
2166
2181
|
|
|
2167
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2182
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/meetings/series-history.js
|
|
2168
2183
|
var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
|
|
2169
2184
|
input.signal?.throwIfAborted();
|
|
2170
2185
|
if (!Number.isSafeInteger(input.accountId) || input.accountId <= 0)
|
|
@@ -2185,10 +2200,10 @@ var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
|
|
|
2185
2200
|
return { ...input, limit, maxReadBytes };
|
|
2186
2201
|
}, "validateMeetingSeriesHistory");
|
|
2187
2202
|
|
|
2188
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2203
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/meetings/upcoming-validation.js
|
|
2189
2204
|
var occurrenceId = /* @__PURE__ */ __name((value) => typeof value === "string" && value.trim().length > 0 && value.length <= 1e3 && !/[\0\r\n]/.test(value), "occurrenceId");
|
|
2190
2205
|
|
|
2191
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2206
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/meetings/series-inventory-validation.js
|
|
2192
2207
|
function invalid3(field, response = false) {
|
|
2193
2208
|
throw new CliError(response ? "invalid_response" : "validation_error", `invalid meeting inventory ${field}`);
|
|
2194
2209
|
}
|
|
@@ -2217,7 +2232,7 @@ var validateMeetingSeriesInventoryCursor = /* @__PURE__ */ __name((value) => {
|
|
|
2217
2232
|
cursorDetails(value);
|
|
2218
2233
|
}, "validateMeetingSeriesInventoryCursor");
|
|
2219
2234
|
|
|
2220
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2235
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/meetings/stats.js
|
|
2221
2236
|
var zoneOf = /* @__PURE__ */ __name((timeZone) => {
|
|
2222
2237
|
const zone = timeZone ?? "UTC";
|
|
2223
2238
|
try {
|
|
@@ -2296,20 +2311,51 @@ var aggregateMeetingStats = /* @__PURE__ */ __name((rows, timeZone) => {
|
|
|
2296
2311
|
};
|
|
2297
2312
|
}, "aggregateMeetingStats");
|
|
2298
2313
|
|
|
2299
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2314
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/tasks/model.js
|
|
2300
2315
|
var TASK_KINDS = ["question", "request", "mention", "promise"];
|
|
2301
|
-
var TASK_STATES = ["open", "done", "dismissed"];
|
|
2316
|
+
var TASK_STATES = ["open", "todo", "in_progress", "done", "dismissed"];
|
|
2317
|
+
var CLOSED_STATES = ["done", "dismissed"];
|
|
2302
2318
|
var TASK_ORIGINS = ["rule", "agent", "owner"];
|
|
2303
2319
|
var TASK_VERDICTS = ["useful", "not_useful"];
|
|
2320
|
+
var isClosedState = /* @__PURE__ */ __name((state) => CLOSED_STATES.includes(state), "isClosedState");
|
|
2304
2321
|
function closeTask(task, state, by, at, reason) {
|
|
2305
|
-
if (task.state
|
|
2322
|
+
if (isClosedState(task.state))
|
|
2306
2323
|
throw new CliError("validation_error", `task ${task.id} is already ${task.state}`, { reason: "task.closed" });
|
|
2307
2324
|
const { claimedBy: _by, claimedUntil: _until, ...unclaimed } = task;
|
|
2308
2325
|
return { ...unclaimed, state, closedAt: at, closedBy: by, ...reason === void 0 ? {} : { reason } };
|
|
2309
2326
|
}
|
|
2310
2327
|
__name(closeTask, "closeTask");
|
|
2311
2328
|
|
|
2312
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2329
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/tasks/priority.js
|
|
2330
|
+
var PRIORITY_LABELS = ["low", "medium", "high", "critical"];
|
|
2331
|
+
var MIDDLE = { low: 0.125, medium: 0.375, high: 0.625, critical: 0.875 };
|
|
2332
|
+
var LEGACY_PRIORITY_SCORES = [0.875, 0.625, 0.375, 0.1875, 0.0625];
|
|
2333
|
+
var priorityLabel = /* @__PURE__ */ __name((score) => score === null ? null : PRIORITY_LABELS[Math.min(3, Math.max(0, Math.floor(score * 4)))], "priorityLabel");
|
|
2334
|
+
var priorityBand = /* @__PURE__ */ __name((label) => {
|
|
2335
|
+
const at = PRIORITY_LABELS.indexOf(label);
|
|
2336
|
+
return { from: at / 4, to: (at + 1) / 4 };
|
|
2337
|
+
}, "priorityBand");
|
|
2338
|
+
var legacyPriority = /* @__PURE__ */ __name((score) => score === null ? null : score < 0.125 ? 4 : 3 - PRIORITY_LABELS.indexOf(priorityLabel(score)), "legacyPriority");
|
|
2339
|
+
var checkedScore = /* @__PURE__ */ __name((score) => {
|
|
2340
|
+
if (!Number.isFinite(score) || score < 0 || score > 1)
|
|
2341
|
+
throw new CliError("validation_error", "a priority score is 0 to 1");
|
|
2342
|
+
return score;
|
|
2343
|
+
}, "checkedScore");
|
|
2344
|
+
var priorityOf = /* @__PURE__ */ __name((value) => {
|
|
2345
|
+
const word = value.trim().toLowerCase();
|
|
2346
|
+
if (word === "none")
|
|
2347
|
+
return null;
|
|
2348
|
+
if (PRIORITY_LABELS.includes(word))
|
|
2349
|
+
return MIDDLE[word];
|
|
2350
|
+
if (/^[0-4]$/.test(word))
|
|
2351
|
+
return LEGACY_PRIORITY_SCORES[Number(word)];
|
|
2352
|
+
if (/^(0?\.\d+|[01]\.\d*)$/.test(word) && Number(word) <= 1)
|
|
2353
|
+
return Number(word);
|
|
2354
|
+
throw new CliError("validation_error", `a priority is ${PRIORITY_LABELS.join(", ")}, none, or a score from 0.0 to 1.0 with its decimal point; 0 (urgent) \u2026 4 (low) still work as critical, high, medium, low, low`);
|
|
2355
|
+
}, "priorityOf");
|
|
2356
|
+
var priorityOption = /* @__PURE__ */ __name((value) => priorityOf(value) ?? "none", "priorityOption");
|
|
2357
|
+
|
|
2358
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/tasks/service.js
|
|
2313
2359
|
function createTaskService({ store, now = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Date(), "now"), newId = /* @__PURE__ */ __name(() => crypto.randomUUID(), "newId") }) {
|
|
2314
2360
|
async function find(id4) {
|
|
2315
2361
|
const task = await store.get(id4);
|
|
@@ -2347,7 +2393,7 @@ function createTaskService({ store, now = /* @__PURE__ */ __name(() => /* @__PUR
|
|
|
2347
2393
|
for (const task of await store.list(filter))
|
|
2348
2394
|
byGroup.set(task.group, [...byGroup.get(task.group) ?? [], task]);
|
|
2349
2395
|
return [...byGroup].map(([group, tasks]) => {
|
|
2350
|
-
const open = tasks.filter((task) => task.state
|
|
2396
|
+
const open = tasks.filter((task) => !isClosedState(task.state));
|
|
2351
2397
|
const closeMs = tasks.flatMap((task) => task.closedAt ? [task.closedAt.getTime() - task.createdAt.getTime()] : []);
|
|
2352
2398
|
const oldestOpenAt = open.map((task) => task.createdAt).sort((a, b) => a.getTime() - b.getTime())[0];
|
|
2353
2399
|
return {
|
|
@@ -2369,13 +2415,13 @@ function median(values) {
|
|
|
2369
2415
|
}
|
|
2370
2416
|
__name(median, "median");
|
|
2371
2417
|
|
|
2372
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2418
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/tasks/store.js
|
|
2373
2419
|
function matches(task, filter) {
|
|
2374
2420
|
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);
|
|
2375
2421
|
}
|
|
2376
2422
|
__name(matches, "matches");
|
|
2377
2423
|
|
|
2378
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2424
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/domain/knowledge.js
|
|
2379
2425
|
var FACT_TYPES = ["fact", "statement", "question", "decision", "promise"];
|
|
2380
2426
|
var FACT_STATUSES = ["proposed", "accepted", "superseded", "reversed", "rejected"];
|
|
2381
2427
|
var MEMORY_KINDS = ["summary", "digest", "preference"];
|
|
@@ -2384,7 +2430,7 @@ var MEMORY_SCOPES = ["personal", "work"];
|
|
|
2384
2430
|
var WORK_TASK_TYPES = ["bug", "feature", "chore"];
|
|
2385
2431
|
var TASK_TYPES2 = [...WORK_TASK_TYPES, ...TASK_KINDS];
|
|
2386
2432
|
|
|
2387
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2433
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/domain/tags.js
|
|
2388
2434
|
var TAG_TYPES = ["chat", "contact", "message", "task"];
|
|
2389
2435
|
var TAG = /^[a-z0-9-]{1,32}$/;
|
|
2390
2436
|
var tagOf = /* @__PURE__ */ __name((value) => {
|
|
@@ -2398,7 +2444,7 @@ var normalizeTag = /* @__PURE__ */ __name((value) => {
|
|
|
2398
2444
|
return tag;
|
|
2399
2445
|
}, "normalizeTag");
|
|
2400
2446
|
|
|
2401
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2447
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/store/sqlite/link-kinds.js
|
|
2402
2448
|
var LINK_KINDS = [
|
|
2403
2449
|
"links-to",
|
|
2404
2450
|
"blocked-by",
|
|
@@ -2500,8 +2546,17 @@ export {
|
|
|
2500
2546
|
linkKind,
|
|
2501
2547
|
TASK_KINDS,
|
|
2502
2548
|
TASK_STATES,
|
|
2549
|
+
CLOSED_STATES,
|
|
2503
2550
|
TASK_ORIGINS,
|
|
2504
2551
|
TASK_VERDICTS,
|
|
2552
|
+
isClosedState,
|
|
2553
|
+
PRIORITY_LABELS,
|
|
2554
|
+
priorityLabel,
|
|
2555
|
+
priorityBand,
|
|
2556
|
+
legacyPriority,
|
|
2557
|
+
checkedScore,
|
|
2558
|
+
priorityOf,
|
|
2559
|
+
priorityOption,
|
|
2505
2560
|
createTaskService,
|
|
2506
2561
|
matches,
|
|
2507
2562
|
FACT_TYPES,
|
|
@@ -2,25 +2,25 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
ENTITIES
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-3BXSLNWW.js";
|
|
6
6
|
import {
|
|
7
7
|
annotate,
|
|
8
8
|
answerSchema,
|
|
9
9
|
describeOptions,
|
|
10
10
|
metaOf
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-4F2VRJZE.js";
|
|
12
12
|
import {
|
|
13
13
|
keyForCommand
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-TR5656OS.js";
|
|
15
15
|
import {
|
|
16
16
|
CliError,
|
|
17
17
|
jsonSchemaOf
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-GIQFBXQN.js";
|
|
19
19
|
import {
|
|
20
20
|
__name
|
|
21
21
|
} from "./chunk-ZVVMGPBJ.js";
|
|
22
22
|
|
|
23
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/cli/answer-entity.js
|
|
24
24
|
var schemas = /* @__PURE__ */ new WeakMap();
|
|
25
25
|
var answerEntity = /* @__PURE__ */ __name((command, name, schema, options = {}) => {
|
|
26
26
|
if (Object.hasOwn(ENTITIES, name))
|
|
@@ -50,7 +50,7 @@ var answerProjectionSchema = /* @__PURE__ */ __name((command) => {
|
|
|
50
50
|
return own && metaOf(command).output?.entity === own.name ? own.project : void 0;
|
|
51
51
|
}, "answerProjectionSchema");
|
|
52
52
|
|
|
53
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
53
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/cli/command-contract.js
|
|
54
54
|
var SCHEMA_DIALECT = "https://json-schema.org/draft/2020-12/schema";
|
|
55
55
|
var outputOf = /* @__PURE__ */ __name((command) => {
|
|
56
56
|
const entity = answerEntitySchema(command);
|