@wirecat/drive-cli 0.59.0 → 0.60.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/drive.js +2 -2
- package/dist/bin/drive.js.map +1 -1
- package/dist/bundle/{all-profiles-CVISDGMF.js → all-profiles-537I27Z4.js} +11 -11
- package/dist/bundle/{anthropic-WLNQC23G.js → anthropic-X4NWVHDF.js} +7 -7
- package/dist/bundle/{app-server-P2VOONXF.js → app-server-KSHJKKS7.js} +47 -47
- package/dist/bundle/{bun-CDFBNTKV.js → bun-WTBGGCUC.js} +2 -2
- package/dist/bundle/{bun-sqlite-MNZICITP.js → bun-sqlite-T7Y3JFFD.js} +6 -6
- package/dist/bundle/{chunk-YV4ABH6J.js → chunk-22ATLSNK.js} +3 -3
- package/dist/bundle/{chunk-CBM2XAEZ.js → chunk-246P2DCT.js} +3 -3
- package/dist/bundle/{chunk-H2BKXPBL.js → chunk-3TQHIHZI.js} +2 -2
- package/dist/bundle/{chunk-IGF6EXBR.js → chunk-4CBZEAQ7.js} +32 -32
- package/dist/bundle/{chunk-L5SE2XZP.js → chunk-4VHBDVY2.js} +1 -1
- package/dist/bundle/{chunk-IIP43FQJ.js → chunk-4XZXH2NM.js} +1 -1
- package/dist/bundle/{chunk-UWVNRPT7.js → chunk-57QVQGBE.js} +21 -21
- package/dist/bundle/{chunk-A6SLYOP2.js → chunk-5AMRCBMP.js} +67 -34
- package/dist/bundle/{chunk-ZSMCJKGP.js → chunk-5XHLQZAG.js} +27 -26
- package/dist/bundle/{chunk-YADXWQHV.js → chunk-67QXMO2G.js} +25 -25
- package/dist/bundle/{chunk-36B7AIGP.js → chunk-6HTKB4WC.js} +1 -1
- package/dist/bundle/{chunk-5C7K6XIT.js → chunk-73MNUSP3.js} +1 -1
- package/dist/bundle/{chunk-3KNZADHJ.js → chunk-73TTP6ET.js} +431 -187
- package/dist/bundle/{chunk-IBZ3IBO4.js → chunk-77C5XRH3.js} +5 -5
- package/dist/bundle/{chunk-PGKIOSN3.js → chunk-77YTRBL6.js} +10 -10
- package/dist/bundle/{chunk-TI55J3BA.js → chunk-ALWTUDZF.js} +3 -3
- package/dist/bundle/{chunk-HWLLVLAB.js → chunk-AXWXQNTC.js} +13 -10
- package/dist/bundle/{chunk-P7WPYKSB.js → chunk-CKGHRWVR.js} +2 -2
- package/dist/bundle/{chunk-JW2CVCUH.js → chunk-D6WIWOQC.js} +3 -3
- package/dist/bundle/{chunk-A6EG7ZDS.js → chunk-DMHGWL5D.js} +12 -12
- package/dist/bundle/{chunk-FICVPYE4.js → chunk-DQDKLZAK.js} +47 -47
- package/dist/bundle/{chunk-JSDVK3JA.js → chunk-EHAI773E.js} +1 -1
- package/dist/bundle/{chunk-UQPKAY6I.js → chunk-FO4TCH6P.js} +1 -1
- package/dist/bundle/{chunk-GJ4ZCIOP.js → chunk-FTZNUZO7.js} +3 -3
- package/dist/bundle/{chunk-6C6255U6.js → chunk-FZOCQQ66.js} +11 -11
- package/dist/bundle/{chunk-EHEZSV6I.js → chunk-GD6TQ6U4.js} +8 -8
- package/dist/bundle/{chunk-XCOCPXCM.js → chunk-GVRS5AIH.js} +2 -2
- package/dist/bundle/{chunk-DI5Z4SH5.js → chunk-HCJG7ENG.js} +2 -2
- package/dist/bundle/{chunk-AD62XJKO.js → chunk-HFGR33KD.js} +24 -24
- package/dist/bundle/{chunk-K4LXGZTE.js → chunk-HQVIK6PM.js} +36 -18
- package/dist/bundle/{chunk-YU3PTU3D.js → chunk-IRZ7OF3F.js} +1 -1
- package/dist/bundle/{chunk-LJ7E4HLQ.js → chunk-IXN7Y6JA.js} +1 -1
- package/dist/bundle/{chunk-7QTVIZII.js → chunk-JGUJJNGZ.js} +790 -325
- package/dist/bundle/{chunk-FVQCM7IQ.js → chunk-JQLIM6BH.js} +4 -4
- package/dist/bundle/{chunk-BSGOM3BD.js → chunk-K6XVRA6U.js} +1 -1
- package/dist/bundle/{chunk-3VSUT6BD.js → chunk-KEXTTZJM.js} +2 -2
- package/dist/bundle/{chunk-V36RIXFA.js → chunk-LJ77Y3TK.js} +1 -1
- package/dist/bundle/{chunk-II7LST64.js → chunk-LQSRVQ3V.js} +3 -2
- package/dist/bundle/{chunk-OKXSTWKW.js → chunk-MVNPE5FZ.js} +7 -7
- package/dist/bundle/{chunk-M6I2SQN7.js → chunk-MXP35VPO.js} +2 -2
- package/dist/bundle/{chunk-TJXPJ3A5.js → chunk-N7S2UPF3.js} +135 -60
- package/dist/bundle/{chunk-3KJTJDDT.js → chunk-O37ESNAP.js} +17 -17
- package/dist/bundle/{chunk-EVETU3TF.js → chunk-OMKUBCNN.js} +7 -7
- package/dist/bundle/{chunk-MUUHUHWC.js → chunk-OYNUBWD2.js} +1 -22
- package/dist/bundle/{chunk-PAEVBAM3.js → chunk-PDYHEWKG.js} +4 -4
- package/dist/bundle/{chunk-EORMZCVF.js → chunk-PETFPXLU.js} +2 -2
- package/dist/bundle/{chunk-GI5JBGXH.js → chunk-PPL5ASW2.js} +613 -372
- package/dist/bundle/{chunk-B5GBJ35N.js → chunk-QIJWSKZL.js} +2 -2
- package/dist/bundle/{chunk-OZH4ALTI.js → chunk-S36HRPNS.js} +1 -1
- package/dist/bundle/{chunk-KFZUODXB.js → chunk-SBHSNOU4.js} +34 -18
- package/dist/bundle/{chunk-F3FOL42A.js → chunk-SZXI4OXX.js} +1 -1
- package/dist/bundle/{chunk-3U22QTU6.js → chunk-TKW4QWCY.js} +12 -0
- package/dist/bundle/{chunk-6CQO2FIN.js → chunk-TVQDMP2F.js} +391 -282
- package/dist/bundle/{chunk-GT5KTGCN.js → chunk-TXMTMEHW.js} +4 -4
- package/dist/bundle/{chunk-IADOBOKB.js → chunk-UNJE63JK.js} +1 -1
- package/dist/bundle/{chunk-HIOJRPCT.js → chunk-UTFATA4K.js} +1 -1
- package/dist/bundle/{chunk-LPHMAQJQ.js → chunk-UVLSWLPZ.js} +15 -15
- package/dist/bundle/{chunk-KPRGTTJH.js → chunk-UVYVIHEA.js} +1 -1
- package/dist/bundle/{chunk-MKCNUI72.js → chunk-V2VMBM7O.js} +1 -1
- package/dist/bundle/{chunk-QTM7USFA.js → chunk-V7QMHMR3.js} +5 -5
- package/dist/bundle/{chunk-TFH5X46A.js → chunk-VRW6ZDTH.js} +18 -18
- package/dist/bundle/{chunk-OMMEQJOB.js → chunk-XDIEQ2CE.js} +2 -2
- package/dist/bundle/{chunk-MEAPA4EZ.js → chunk-XFXRGQXJ.js} +2 -2
- package/dist/bundle/{chunk-HMZAMHKN.js → chunk-YDN2RH5S.js} +1 -1
- package/dist/bundle/{chunk-P3ZTW2ZM.js → chunk-YGG7UA3C.js} +4 -4
- package/dist/bundle/{chunk-VT6GZAF4.js → chunk-YYHKVOVK.js} +4 -4
- package/dist/bundle/{chunk-V42KAPU3.js → chunk-ZPQS7XJA.js} +3 -3
- package/dist/bundle/command-contract-NUIWUVYB.js +39 -0
- package/dist/bundle/{decode-XTOMXMGN.js → decode-35N57AFW.js} +6 -6
- package/dist/bundle/{dispatch-T6TW2JJB.js → dispatch-CWXZW3PL.js} +1 -1
- package/dist/bundle/drive.js +10 -10
- package/dist/bundle/{echarts-RKKIOYVV.js → echarts-3P3QZWMU.js} +2 -2
- package/dist/bundle/{embed-STHKKA6G.js → embed-Q6Q5IOJQ.js} +7 -7
- package/dist/bundle/{embedder-3XZEWHRO.js → embedder-D44JDTAA.js} +10 -10
- package/dist/bundle/{entry-CNOYSSSD.js → entry-ZHCNI7XO.js} +9 -9
- package/dist/bundle/{failure-DNQYXP2T.js → failure-GRMMSDCZ.js} +2 -2
- package/dist/bundle/{first-run-F2SI24PK.js → first-run-3DC2SDWM.js} +10 -10
- package/dist/bundle/first-screen-YJF4YODC.js +37 -0
- package/dist/bundle/{google-BYNSAIQI.js → google-6ZZDKFBN.js} +10 -10
- package/dist/bundle/{google-api-4VTZH7OP.js → google-api-E6MOJ4ZD.js} +52 -52
- package/dist/bundle/grants-GWXDH5GM.js +105 -0
- package/dist/bundle/{identity-ARDPFYV5.js → identity-TID7S5NE.js} +4 -4
- package/dist/bundle/{instructions-N3OH5X2Y.js → instructions-ANJN4HV3.js} +1 -1
- package/dist/bundle/{login-4VQEC7VI.js → login-BGMK2ABH.js} +59 -61
- package/dist/bundle/{node-YU5JBNAA.js → node-VOB45ES2.js} +2 -2
- package/dist/bundle/{node-sqlite-3C6PSBIW.js → node-sqlite-TSX6XQY2.js} +7 -7
- package/dist/bundle/{oauth-D6NJFPYU.js → oauth-CEOYXW6C.js} +8 -8
- package/dist/bundle/{open-M2V2VYXO.js → open-3USWHGNR.js} +6 -6
- package/dist/bundle/{openai-ST2IWNUX.js → openai-YZ5VGPIP.js} +14 -14
- package/dist/bundle/{process-PYNNBBTV.js → process-44JS2W7L.js} +1 -1
- package/dist/bundle/{program-Q4VWV2MR.js → program-TZLAFKJV.js} +99 -82
- package/dist/bundle/{prompt-MFIOJMAF.js → prompt-SG7LAOXW.js} +6 -6
- package/dist/bundle/{reasons-LOQ5J73F.js → reasons-ZK3U3CIN.js} +3 -3
- package/dist/bundle/{recognize-FBLMWXNE.js → recognize-OFW7HWTM.js} +5 -5
- package/dist/bundle/{remote-XC3OXE4T.js → remote-YBDRZQZ5.js} +8 -8
- package/dist/bundle/{rerank-2XMKKF4S.js → rerank-TQQNS5FJ.js} +8 -8
- package/dist/bundle/{serve-Q2BQHNZB.js → serve-OPZXMVLH.js} +10 -10
- package/dist/bundle/{server-42HPV3AH.js → server-2D6DDIK5.js} +39 -39
- package/dist/bundle/server-R6G2O772.js +70 -0
- package/dist/bundle/{services-WU22S2MU.js → services-34WKT3NN.js} +29 -27
- package/dist/bundle/{sqlite-runtime-CSO6K6B2.js → sqlite-runtime-WPUMKLUV.js} +7 -7
- package/dist/bundle/{start-TZWKM4AH.js → start-ZXUJZ4JV.js} +1 -1
- package/dist/bundle/{state-FLUT7U7R.js → state-AV2RB3AQ.js} +7 -7
- package/dist/bundle/{store-TG6622NG.js → store-3M7N2Q5T.js} +15 -15
- package/dist/bundle/{store-HDWMJ44E.js → store-YKV4GAMS.js} +25 -19
- package/dist/bundle/store-maintenance-command-WDXNY4ZF.js +60 -0
- package/dist/bundle/tokens-F63RXXEF.js +103 -0
- package/dist/commands/config.d.ts.map +1 -1
- package/dist/commands/config.js +14 -5
- package/dist/commands/config.js.map +1 -1
- package/dist/commands/context.d.ts +4 -2
- package/dist/commands/context.d.ts.map +1 -1
- package/dist/commands/context.js.map +1 -1
- package/dist/commands/session.d.ts.map +1 -1
- package/dist/commands/session.js +5 -2
- package/dist/commands/session.js.map +1 -1
- package/dist/config.d.ts +7 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +22 -3
- package/dist/config.js.map +1 -1
- package/dist/errors.js +4 -4
- package/dist/errors.js.map +1 -1
- package/dist/login.d.ts.map +1 -1
- package/dist/login.js +3 -5
- package/dist/login.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +5 -1
- package/dist/program.js.map +1 -1
- package/dist/reasons.d.ts +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +1 -22
- package/dist/reasons.js.map +1 -1
- package/dist/registry.d.ts +1 -1
- package/dist/registry.d.ts.map +1 -1
- package/dist/registry.js +2 -1
- package/dist/registry.js.map +1 -1
- package/dist/tokens.js +5 -5
- package/dist/tokens.js.map +1 -1
- package/dist/upload.js +1 -1
- package/dist/upload.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/dist/bundle/command-contract-LQDNHZJU.js +0 -39
- package/dist/bundle/first-screen-TYYF6VXY.js +0 -37
- package/dist/bundle/grants-EUQXSICG.js +0 -105
- package/dist/bundle/server-EWZYN323.js +0 -70
- package/dist/bundle/store-maintenance-command-RHWRUREJ.js +0 -60
- package/dist/bundle/tokens-TXYURU4S.js +0 -103
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
queryFieldsOf,
|
|
9
9
|
timezoneOf,
|
|
10
10
|
validateQuery
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-4VHBDVY2.js";
|
|
12
12
|
import {
|
|
13
13
|
singleLine,
|
|
14
14
|
visibleControls
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
strictObject,
|
|
37
37
|
string,
|
|
38
38
|
union
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-TKW4QWCY.js";
|
|
40
40
|
import {
|
|
41
41
|
CliError
|
|
42
42
|
} from "./chunk-EBLA7GXY.js";
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
__name
|
|
45
45
|
} from "./chunk-ZVVMGPBJ.js";
|
|
46
46
|
|
|
47
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
47
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/meetings/payment.js
|
|
48
48
|
var FACT_TYPES = ["fact", "statement", "question", "decision", "promise"];
|
|
49
49
|
var PAYMENT_DIRECTIONS = ["to_us", "from_us"];
|
|
50
50
|
var PAYMENT_STATES = ["expected", "paid", "cancelled"];
|
|
@@ -138,7 +138,7 @@ var paymentTitle = /* @__PURE__ */ __name((fact) => {
|
|
|
138
138
|
return `${grouped(payment.amount)} ${payment.currency} ${way}${party}${item}${due} (${payment.state})`;
|
|
139
139
|
}, "paymentTitle");
|
|
140
140
|
|
|
141
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
141
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/meetings/passage.js
|
|
142
142
|
var meetingHitContextLimits = /* @__PURE__ */ __name((options = {}) => {
|
|
143
143
|
const { before = 3, after = 3, bytes = 65536, max_read_bytes = 4194304, expected_fingerprint } = options;
|
|
144
144
|
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)))
|
|
@@ -151,7 +151,7 @@ var validateMeetingPassage = /* @__PURE__ */ __name((reference2, options) => {
|
|
|
151
151
|
throw new CliError("validation_error", "choose a cue reference and json, text or markdown output");
|
|
152
152
|
}, "validateMeetingPassage");
|
|
153
153
|
|
|
154
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
154
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/meetings/reference.js
|
|
155
155
|
var invalid2 = /* @__PURE__ */ __name(() => new CliError("validation_error", "expected meeting:<accountId>/<meetingId>[/<transcriptId>[/<cuePosition>]] with safe integer IDs"), "invalid");
|
|
156
156
|
var integer2 = /* @__PURE__ */ __name((value, minimum = 1) => {
|
|
157
157
|
if (!Number.isSafeInteger(value) || value < minimum)
|
|
@@ -188,7 +188,7 @@ var parseMeetingReference = /* @__PURE__ */ __name((text7) => {
|
|
|
188
188
|
}, "parseMeetingReference");
|
|
189
189
|
var canonicalMeetingReference = /* @__PURE__ */ __name((text7) => formatMeetingReference(parseMeetingReference(text7)), "canonicalMeetingReference");
|
|
190
190
|
|
|
191
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
191
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/meetings/item.js
|
|
192
192
|
var text = string();
|
|
193
193
|
var count = pipe(number(), integer(), minValue(0));
|
|
194
194
|
var MEETING_ISSUES = ["time_without_zone"];
|
|
@@ -253,7 +253,7 @@ var MEETING_QUERY = {
|
|
|
253
253
|
})
|
|
254
254
|
};
|
|
255
255
|
|
|
256
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
256
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/meetings/answers.js
|
|
257
257
|
var text2 = string();
|
|
258
258
|
var count2 = pipe(number(), integer(), minValue(0));
|
|
259
259
|
var iso2 = /* @__PURE__ */ __name((ms) => ms === null ? null : new Date(ms).toISOString(), "iso");
|
|
@@ -488,7 +488,7 @@ var meetingHitsList = /* @__PURE__ */ __name((found, limit, command = "search me
|
|
|
488
488
|
};
|
|
489
489
|
}, "meetingHitsList");
|
|
490
490
|
|
|
491
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
491
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/meetings/join-key.js
|
|
492
492
|
var joinKeyOf = /* @__PURE__ */ __name((url) => {
|
|
493
493
|
const parsed = urlOf(url);
|
|
494
494
|
if (!parsed)
|
|
@@ -522,7 +522,7 @@ var urlOf = /* @__PURE__ */ __name((url) => {
|
|
|
522
522
|
}
|
|
523
523
|
}, "urlOf");
|
|
524
524
|
|
|
525
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
525
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/meetings/calendar-text.js
|
|
526
526
|
var ENTITIES = { amp: "&", lt: "<", gt: ">", quot: '"', "#39": "'", apos: "'", nbsp: " " };
|
|
527
527
|
var SECRET_LINE = /(?<![\p{L}\p{N}])(pass ?codes?|passwords?|pwd|pins?|access ?codes?|meeting ?codes?|kennwort|пароль|пин-?код|код доступа)(?![\p{L}\p{N}])|pwd=/iu;
|
|
528
528
|
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");
|
|
@@ -555,7 +555,7 @@ var entryMetadata = /* @__PURE__ */ __name((metadata) => {
|
|
|
555
555
|
return kept;
|
|
556
556
|
}, "entryMetadata");
|
|
557
557
|
|
|
558
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
558
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/meetings/cue-fingerprint.js
|
|
559
559
|
import { createHash } from "node:crypto";
|
|
560
560
|
var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256").update(JSON.stringify({
|
|
561
561
|
reference: cue2.reference,
|
|
@@ -569,7 +569,7 @@ var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256"
|
|
|
569
569
|
text: cue2.text
|
|
570
570
|
})).digest("hex"), "meetingCueFingerprint");
|
|
571
571
|
|
|
572
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
572
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/meetings/event-query.js
|
|
573
573
|
var EVENT_QUERY = defineQuery({
|
|
574
574
|
entity: "event",
|
|
575
575
|
backend: "sql",
|
|
@@ -585,7 +585,7 @@ var EVENT_QUERY = defineQuery({
|
|
|
585
585
|
]
|
|
586
586
|
});
|
|
587
587
|
|
|
588
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
588
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/meetings/event-store.js
|
|
589
589
|
var UNTIL = /(?:^|;)UNTIL=(\d{4})(\d{2})(\d{2})(?:T(\d{2})(\d{2})(\d{2})Z?)?(?:;|$)/iu;
|
|
590
590
|
var seriesEnd = /* @__PURE__ */ __name((entry) => {
|
|
591
591
|
if (entry.recurrenceEndsAt !== null)
|
|
@@ -608,7 +608,7 @@ var entryInWindow = /* @__PURE__ */ __name((entry, window) => {
|
|
|
608
608
|
return Math.max(entry.endsAt ?? start, start + 1) > window.from;
|
|
609
609
|
}, "entryInWindow");
|
|
610
610
|
|
|
611
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
611
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/meetings/events.js
|
|
612
612
|
var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now()) => {
|
|
613
613
|
const current = await store.meeting(details.meeting.id);
|
|
614
614
|
if (!current)
|
|
@@ -651,7 +651,7 @@ var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now())
|
|
|
651
651
|
return (await store.events()).find((e) => e.id === linked?.meeting.eventId) ?? null;
|
|
652
652
|
}, "linkEvent");
|
|
653
653
|
|
|
654
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
654
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/meetings/participant-search.js
|
|
655
655
|
var normalizeMeetingParticipantQuery = /* @__PURE__ */ __name((text7) => text7.normalize("NFKC").toLowerCase(), "normalizeMeetingParticipantQuery");
|
|
656
656
|
var validateMeetingParticipantQuery = /* @__PURE__ */ __name((query) => {
|
|
657
657
|
if (typeof query !== "string" || !query.trim() || query.length > 500 || query.includes("\0"))
|
|
@@ -675,7 +675,7 @@ var validateMeetingParticipantSearch = /* @__PURE__ */ __name((query, input) =>
|
|
|
675
675
|
};
|
|
676
676
|
}, "validateMeetingParticipantSearch");
|
|
677
677
|
|
|
678
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
678
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/meetings/reads.js
|
|
679
679
|
var MeetingError = class extends CliError {
|
|
680
680
|
static {
|
|
681
681
|
__name(this, "MeetingError");
|
|
@@ -807,7 +807,7 @@ var meetingSummaryAnswer = /* @__PURE__ */ __name(async (store, id4, accountId)
|
|
|
807
807
|
return wholeList(details.summaries.map((one) => meetingSummaryItem(details.meeting.accountId, one)));
|
|
808
808
|
}, "meetingSummaryAnswer");
|
|
809
809
|
|
|
810
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
810
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/meetings/export.js
|
|
811
811
|
var timestamp = /* @__PURE__ */ __name((milliseconds) => {
|
|
812
812
|
if (!Number.isSafeInteger(milliseconds) || milliseconds < 0)
|
|
813
813
|
throw new MeetingError("validation_error", "transcript times must be nonnegative integer milliseconds");
|
|
@@ -903,10 +903,10 @@ var exportMeeting = /* @__PURE__ */ __name(async (store, id4, options) => {
|
|
|
903
903
|
};
|
|
904
904
|
}, "exportMeeting");
|
|
905
905
|
|
|
906
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
906
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
|
|
907
907
|
import { createHash as createHash2 } from "node:crypto";
|
|
908
908
|
|
|
909
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
909
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/meetings/timestamp.js
|
|
910
910
|
var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
|
|
911
911
|
if (typeof value !== "string" || !/^\d{4}-\d{2}-\d{2}T.+(?:Z|[+-]\d{2}:\d{2})$/i.test(value) || !Number.isFinite(Date.parse(value)))
|
|
912
912
|
throw new CliError("validation_error", `${name} must be an ISO timestamp with a timezone`);
|
|
@@ -917,7 +917,7 @@ var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
|
|
|
917
917
|
return new Date(value).toISOString();
|
|
918
918
|
}, "meetingTimestamp");
|
|
919
919
|
|
|
920
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
920
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
|
|
921
921
|
var TASK_TYPES = ["bug", "feature", "chore"];
|
|
922
922
|
var invalid3 = /* @__PURE__ */ __name((message) => {
|
|
923
923
|
throw new CliError("validation_error", message);
|
|
@@ -1064,7 +1064,7 @@ var findingText = /* @__PURE__ */ __name((value, limit) => text3(value, limit),
|
|
|
1064
1064
|
var findingFields = /* @__PURE__ */ __name((value, allowed, noun) => fields(value, allowed, noun), "findingFields");
|
|
1065
1065
|
var findingFingerprint = /* @__PURE__ */ __name(({ id: _id, ...finding }) => findingHash(finding), "findingFingerprint");
|
|
1066
1066
|
|
|
1067
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1067
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/meetings/findings.js
|
|
1068
1068
|
var MEETING_FINDINGS_KIND = "meeting_findings";
|
|
1069
1069
|
var cue = /* @__PURE__ */ __name((raw) => {
|
|
1070
1070
|
const reference2 = canonicalMeetingReference(raw);
|
|
@@ -1075,7 +1075,7 @@ var cue = /* @__PURE__ */ __name((raw) => {
|
|
|
1075
1075
|
var validateMeetingFindings = /* @__PURE__ */ __name((input) => validateFindings(input, { plural: "meeting findings", singular: "meeting finding", cited: "cue", reference: cue }), "validateMeetingFindings");
|
|
1076
1076
|
var meetingFindingFingerprint = findingFingerprint;
|
|
1077
1077
|
|
|
1078
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1078
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/meetings/hit-query.js
|
|
1079
1079
|
var context = {
|
|
1080
1080
|
command: "search meetings",
|
|
1081
1081
|
guide: "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md#\u0432\u0441\u0442\u0440\u0435\u0447\u0438"
|
|
@@ -1194,7 +1194,7 @@ var meetingWordsQuery = /* @__PURE__ */ __name((text7) => {
|
|
|
1194
1194
|
return { version: 1, language: "lucene-v1", root };
|
|
1195
1195
|
}, "meetingWordsQuery");
|
|
1196
1196
|
|
|
1197
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1197
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/meetings/language.js
|
|
1198
1198
|
var LATIN_WORDS = {
|
|
1199
1199
|
en: ["the", "and", "is", "that", "you", "this", "what", "have", "with", "are"],
|
|
1200
1200
|
es: ["el", "los", "las", "por", "pero", "para", "est\xE1", "muy", "tambi\xE9n", "hay"],
|
|
@@ -1243,7 +1243,7 @@ var transcriptLanguage = /* @__PURE__ */ __name((texts) => {
|
|
|
1243
1243
|
return null;
|
|
1244
1244
|
}, "transcriptLanguage");
|
|
1245
1245
|
|
|
1246
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1246
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/meetings/ingest.js
|
|
1247
1247
|
var contentHash = /* @__PURE__ */ __name(async (text7) => {
|
|
1248
1248
|
const bytes = await crypto.subtle.digest("SHA-256", new TextEncoder().encode(text7));
|
|
1249
1249
|
return Array.from(new Uint8Array(bytes), (byte) => byte.toString(16).padStart(2, "0")).join("");
|
|
@@ -1280,7 +1280,7 @@ var timestamp2 = /* @__PURE__ */ __name((value) => {
|
|
|
1280
1280
|
return time;
|
|
1281
1281
|
}, "timestamp");
|
|
1282
1282
|
|
|
1283
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1283
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/meetings/transcript-text.js
|
|
1284
1284
|
var TranscriptTextError = class extends Error {
|
|
1285
1285
|
static {
|
|
1286
1286
|
__name(this, "TranscriptTextError");
|
|
@@ -1335,7 +1335,7 @@ var parseTranscriptText = /* @__PURE__ */ __name((input) => {
|
|
|
1335
1335
|
return { header, lines };
|
|
1336
1336
|
}, "parseTranscriptText");
|
|
1337
1337
|
|
|
1338
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1338
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/meetings/vtt.js
|
|
1339
1339
|
var VttError = class extends Error {
|
|
1340
1340
|
static {
|
|
1341
1341
|
__name(this, "VttError");
|
|
@@ -1387,7 +1387,7 @@ var parseVtt = /* @__PURE__ */ __name((input) => {
|
|
|
1387
1387
|
return cues;
|
|
1388
1388
|
}, "parseVtt");
|
|
1389
1389
|
|
|
1390
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1390
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/meetings/import.js
|
|
1391
1391
|
var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now()) => {
|
|
1392
1392
|
const report = { meetings: 0, participants: 0, transcriptRows: 0, summaries: 0, warnings: [] };
|
|
1393
1393
|
for (const file of files) {
|
|
@@ -1420,10 +1420,10 @@ var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now())
|
|
|
1420
1420
|
return report;
|
|
1421
1421
|
}, "importFiles");
|
|
1422
1422
|
|
|
1423
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1423
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/meetings/links.js
|
|
1424
1424
|
var CHAT_MESSAGES_READ = 1e5;
|
|
1425
1425
|
|
|
1426
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1426
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/meetings/provider.js
|
|
1427
1427
|
var snapshotMeetingScope = /* @__PURE__ */ __name((scope2) => {
|
|
1428
1428
|
const provider = scope2?.provider;
|
|
1429
1429
|
const account = scope2?.account;
|
|
@@ -1432,7 +1432,7 @@ var snapshotMeetingScope = /* @__PURE__ */ __name((scope2) => {
|
|
|
1432
1432
|
return Object.freeze({ provider, account });
|
|
1433
1433
|
}, "snapshotMeetingScope");
|
|
1434
1434
|
|
|
1435
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1435
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/meetings/meeting-management.js
|
|
1436
1436
|
var nonempty = /* @__PURE__ */ __name((value, name) => {
|
|
1437
1437
|
if (typeof value !== "string" || !value.trim())
|
|
1438
1438
|
throw new CliError("validation_error", `${name} must be nonempty`);
|
|
@@ -1498,7 +1498,7 @@ var dispatchMeetingMutation = /* @__PURE__ */ __name(async (options, dispatch) =
|
|
|
1498
1498
|
return { applied: true, value: await dispatch(signal) };
|
|
1499
1499
|
}, "dispatchMeetingMutation");
|
|
1500
1500
|
|
|
1501
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1501
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/meetings/meeting-context.js
|
|
1502
1502
|
var id = /* @__PURE__ */ __name((value) => {
|
|
1503
1503
|
if (typeof value !== "number" || !Number.isSafeInteger(value) || value < 1)
|
|
1504
1504
|
throw new CliError("validation_error", "meeting context identifiers must be positive integers");
|
|
@@ -1620,7 +1620,7 @@ var createMeetingContext = /* @__PURE__ */ __name((scope2, accountId, ports) =>
|
|
|
1620
1620
|
};
|
|
1621
1621
|
}, "createMeetingContext");
|
|
1622
1622
|
|
|
1623
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1623
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/meetings/preparation-context.js
|
|
1624
1624
|
var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
|
|
1625
1625
|
if (!original || typeof original !== "object" || Array.isArray(original))
|
|
1626
1626
|
throw new CliError("validation_error", "meeting preparation context is required");
|
|
@@ -1645,7 +1645,7 @@ var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
|
|
|
1645
1645
|
return { ...input, limit, maxReadBytes };
|
|
1646
1646
|
}, "validateMeetingPreparationContext");
|
|
1647
1647
|
|
|
1648
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1648
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-answer.js
|
|
1649
1649
|
var count3 = pipe(number(), integer(), minValue(0));
|
|
1650
1650
|
var id2 = pipe(string(), minLength(1));
|
|
1651
1651
|
var meetingProjectEvidence = strictObject({
|
|
@@ -1766,7 +1766,7 @@ var meetingProjectEvidenceAnswer = /* @__PURE__ */ __name((page, prepared, comma
|
|
|
1766
1766
|
};
|
|
1767
1767
|
}, "meetingProjectEvidenceAnswer");
|
|
1768
1768
|
|
|
1769
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1769
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/meetings/search-validation.js
|
|
1770
1770
|
var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
|
|
1771
1771
|
const integer3 = /* @__PURE__ */ __name((value, low, high) => Number.isSafeInteger(value) && value >= low && value <= high, "integer");
|
|
1772
1772
|
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) || [
|
|
@@ -1786,7 +1786,7 @@ var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
|
|
|
1786
1786
|
throw new CliError("validation_error", "choose one project selector and one tag or topic selector");
|
|
1787
1787
|
}, "validateMeetingHitSearch");
|
|
1788
1788
|
|
|
1789
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1789
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-query.js
|
|
1790
1790
|
var ids = {
|
|
1791
1791
|
meeting_id: "meetingId",
|
|
1792
1792
|
identity_id: "participantIdentityId",
|
|
@@ -1877,7 +1877,7 @@ var prepareMeetingProjectEvidence = /* @__PURE__ */ __name((project, request = {
|
|
|
1877
1877
|
return { project: project.trim(), options, query: frozen.join(" AND ") };
|
|
1878
1878
|
}, "prepareMeetingProjectEvidence");
|
|
1879
1879
|
|
|
1880
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1880
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/meetings/project-evidence.js
|
|
1881
1881
|
var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project, request = {}, now = Date.now()) => {
|
|
1882
1882
|
const prepared = prepareMeetingProjectEvidence(project, request, now);
|
|
1883
1883
|
const page = await read(prepared.project, prepared.options);
|
|
@@ -1885,7 +1885,7 @@ var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project, re
|
|
|
1885
1885
|
return meetingProjectEvidenceAnswer(page, prepared);
|
|
1886
1886
|
}, "readMeetingProjectEvidence");
|
|
1887
1887
|
|
|
1888
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1888
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/meetings/pull.js
|
|
1889
1889
|
var participantInput = /* @__PURE__ */ __name((p, provider, occurrenceId2, position, accountId) => {
|
|
1890
1890
|
const { identityExternalId, ...fields3 } = p;
|
|
1891
1891
|
const externalId = identityExternalId ?? (p.email ? `email:${p.email.toLowerCase()}` : p.externalId) ?? `name:${p.displayName ?? "unknown"}@${accountId}/${occurrenceId2}:${position}`;
|
|
@@ -2024,7 +2024,7 @@ unlinked`, format)],
|
|
|
2024
2024
|
return report;
|
|
2025
2025
|
}, "pull");
|
|
2026
2026
|
|
|
2027
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2027
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/meetings/read-answers.js
|
|
2028
2028
|
var text5 = string();
|
|
2029
2029
|
var count4 = pipe(number(), integer(), minValue(0));
|
|
2030
2030
|
var id3 = pipe(number(), integer(), minValue(1));
|
|
@@ -2084,6 +2084,23 @@ var meetingStats = strictObject({
|
|
|
2084
2084
|
weeks: array(strictObject({ week_start: text5, meetings: count4, talk_ms: count4 })),
|
|
2085
2085
|
top_speakers: array(meetingSpeaker)
|
|
2086
2086
|
});
|
|
2087
|
+
var meetingCountsRow = strictObject({
|
|
2088
|
+
key: text5,
|
|
2089
|
+
name: nullable(text5),
|
|
2090
|
+
meetings: count4,
|
|
2091
|
+
minutes: count4,
|
|
2092
|
+
mean_minutes: nullable(number()),
|
|
2093
|
+
transcripts: count4
|
|
2094
|
+
});
|
|
2095
|
+
var meetingCounts = strictObject({
|
|
2096
|
+
by: picklist(["day", "week", "series"]),
|
|
2097
|
+
meetings: count4,
|
|
2098
|
+
minutes: count4,
|
|
2099
|
+
mean_minutes: nullable(number()),
|
|
2100
|
+
transcripts: count4,
|
|
2101
|
+
rows: array(meetingCountsRow),
|
|
2102
|
+
has_more: boolean()
|
|
2103
|
+
});
|
|
2087
2104
|
var truncated = /* @__PURE__ */ __name((...why) => nullable(picklist(why)), "truncated");
|
|
2088
2105
|
var meetingParticipants = strictObject({
|
|
2089
2106
|
schema_version: literal(1),
|
|
@@ -2201,10 +2218,10 @@ var eventItem = /* @__PURE__ */ __name((one) => ({
|
|
|
2201
2218
|
updated_at: new Date(one.updatedAt).toISOString()
|
|
2202
2219
|
}), "eventItem");
|
|
2203
2220
|
|
|
2204
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2221
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/meetings/recording-transfer.js
|
|
2205
2222
|
var strongRecordingValidator = /* @__PURE__ */ __name((value) => typeof value === "string" && value.length <= 1024 && /^"[\x21\x23-\x7e\x80-\xff]*"$/.test(value), "strongRecordingValidator");
|
|
2206
2223
|
|
|
2207
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2224
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/meetings/related-history.js
|
|
2208
2225
|
var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
|
|
2209
2226
|
if (!original || typeof original !== "object" || Array.isArray(original))
|
|
2210
2227
|
throw new CliError("validation_error", "related history request is required");
|
|
@@ -2234,7 +2251,7 @@ var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
|
|
|
2234
2251
|
return { ...input, anchorIds: [...new Set(input.anchorIds)], limit, maxReadBytes };
|
|
2235
2252
|
}, "validateMeetingRelatedHistory");
|
|
2236
2253
|
|
|
2237
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2254
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/meetings/result-items.js
|
|
2238
2255
|
var text6 = string();
|
|
2239
2256
|
var identifier = pipe(text6, minLength(1));
|
|
2240
2257
|
var nullableText = nullable(text6);
|
|
@@ -2367,14 +2384,14 @@ var MEETING_RESULT_ENTITIES = {
|
|
|
2367
2384
|
meeting_repair: repair
|
|
2368
2385
|
};
|
|
2369
2386
|
|
|
2370
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2387
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/meetings/review.js
|
|
2371
2388
|
var REVIEW_LIMIT = { default: 50, most: 200 };
|
|
2372
2389
|
|
|
2373
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2390
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/meetings/save-hints.js
|
|
2374
2391
|
var SAVE_HELP = `Worth keeping \u2014 a decision, a promise, a preference? Record it with \`memo facts add\` or
|
|
2375
2392
|
\`memo memories add\`, citing the msg: locator or meeting: reference as --evidence.`;
|
|
2376
2393
|
|
|
2377
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2394
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/meetings/series-history.js
|
|
2378
2395
|
var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
|
|
2379
2396
|
input.signal?.throwIfAborted();
|
|
2380
2397
|
if (!Number.isSafeInteger(input.accountId) || input.accountId <= 0)
|
|
@@ -2395,10 +2412,10 @@ var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
|
|
|
2395
2412
|
return { ...input, limit, maxReadBytes };
|
|
2396
2413
|
}, "validateMeetingSeriesHistory");
|
|
2397
2414
|
|
|
2398
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2415
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/meetings/upcoming-validation.js
|
|
2399
2416
|
var occurrenceId = /* @__PURE__ */ __name((value) => typeof value === "string" && value.trim().length > 0 && value.length <= 1e3 && !/[\0\r\n]/.test(value), "occurrenceId");
|
|
2400
2417
|
|
|
2401
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2418
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/meetings/series-inventory-validation.js
|
|
2402
2419
|
function invalid4(field, response = false) {
|
|
2403
2420
|
throw new CliError(response ? "invalid_response" : "validation_error", `invalid meeting inventory ${field}`);
|
|
2404
2421
|
}
|
|
@@ -2427,7 +2444,8 @@ var validateMeetingSeriesInventoryCursor = /* @__PURE__ */ __name((value) => {
|
|
|
2427
2444
|
cursorDetails(value);
|
|
2428
2445
|
}, "validateMeetingSeriesInventoryCursor");
|
|
2429
2446
|
|
|
2430
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2447
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/meetings/stats.js
|
|
2448
|
+
var MEETING_COUNTS_GROUPINGS = ["day", "week", "series"];
|
|
2431
2449
|
var zoneOf = /* @__PURE__ */ __name((timeZone) => {
|
|
2432
2450
|
const zone = timeZone ?? "UTC";
|
|
2433
2451
|
try {
|
|
@@ -2443,17 +2461,72 @@ var weekStart = /* @__PURE__ */ __name((at, format) => {
|
|
|
2443
2461
|
const day = Date.UTC(Number(parts.year), Number(parts.month) - 1, Number(parts.day));
|
|
2444
2462
|
return new Date(day - DAYS.indexOf(parts.weekday ?? "Mon") * 864e5).toISOString().slice(0, 10);
|
|
2445
2463
|
}, "weekStart");
|
|
2464
|
+
var dayKey = /* @__PURE__ */ __name((at, format) => {
|
|
2465
|
+
const parts = Object.fromEntries(format.formatToParts(new Date(at)).map((part) => [part.type, part.value]));
|
|
2466
|
+
return `${parts.year}-${parts.month}-${parts.day}`;
|
|
2467
|
+
}, "dayKey");
|
|
2468
|
+
var zoneFormat = /* @__PURE__ */ __name((zone) => new Intl.DateTimeFormat("en-US", {
|
|
2469
|
+
timeZone: zone,
|
|
2470
|
+
year: "numeric",
|
|
2471
|
+
month: "2-digit",
|
|
2472
|
+
day: "2-digit",
|
|
2473
|
+
weekday: "short"
|
|
2474
|
+
}), "zoneFormat");
|
|
2475
|
+
var NO_SERIES = "no-series";
|
|
2476
|
+
var MOST_COUNT_ROWS = 100;
|
|
2477
|
+
var minutesOf = /* @__PURE__ */ __name((ms) => Math.round(ms / 6e4), "minutesOf");
|
|
2478
|
+
var meanOf = /* @__PURE__ */ __name((ms, timed) => timed === 0 ? null : Math.round(ms / timed / 6e3) / 10, "meanOf");
|
|
2479
|
+
var aggregateMeetingCounts = /* @__PURE__ */ __name((meetings, by, timeZone, limit = MOST_COUNT_ROWS) => {
|
|
2480
|
+
if (!MEETING_COUNTS_GROUPINGS.includes(by))
|
|
2481
|
+
throw new CliError("validation_error", `--by takes ${MEETING_COUNTS_GROUPINGS.join(", ")}`);
|
|
2482
|
+
if (!Number.isSafeInteger(limit) || limit < 1)
|
|
2483
|
+
throw new CliError("validation_error", "--limit is a positive number");
|
|
2484
|
+
const zone = zoneOf(timeZone);
|
|
2485
|
+
const format = zoneFormat(zone);
|
|
2486
|
+
const sum = /* @__PURE__ */ __name(() => ({ meetings: 0, ms: 0, timed: 0, transcripts: 0 }), "sum");
|
|
2487
|
+
const add = /* @__PURE__ */ __name((into, meeting2) => {
|
|
2488
|
+
into.meetings += 1;
|
|
2489
|
+
if (meeting2.durationMs !== null) {
|
|
2490
|
+
into.ms += Math.max(0, meeting2.durationMs);
|
|
2491
|
+
into.timed += 1;
|
|
2492
|
+
}
|
|
2493
|
+
if (meeting2.transcribed)
|
|
2494
|
+
into.transcripts += 1;
|
|
2495
|
+
}, "add");
|
|
2496
|
+
const total = { ...sum(), name: null };
|
|
2497
|
+
const groups = /* @__PURE__ */ new Map();
|
|
2498
|
+
for (const meeting2 of meetings) {
|
|
2499
|
+
add(total, meeting2);
|
|
2500
|
+
const key = by === "series" ? meeting2.seriesKey === null ? NO_SERIES : `series:${meeting2.seriesKey}` : meeting2.startedAt === null ? null : by === "day" ? dayKey(meeting2.startedAt, format) : weekStart(meeting2.startedAt, format);
|
|
2501
|
+
if (key === null)
|
|
2502
|
+
continue;
|
|
2503
|
+
const group = groups.get(key) ?? { ...sum(), name: by === "series" ? meeting2.seriesTitle : null };
|
|
2504
|
+
add(group, meeting2);
|
|
2505
|
+
groups.set(key, group);
|
|
2506
|
+
}
|
|
2507
|
+
const ordered = [...groups.entries()].sort(([a, one], [b, other]) => by === "series" ? other.ms - one.ms || other.meetings - one.meetings || a.localeCompare(b) : b.localeCompare(a));
|
|
2508
|
+
const kept = ordered.slice(0, limit);
|
|
2509
|
+
if (by !== "series")
|
|
2510
|
+
kept.reverse();
|
|
2511
|
+
const counted = /* @__PURE__ */ __name(({ meetings: count6, ms, timed, transcripts }) => ({
|
|
2512
|
+
meetings: count6,
|
|
2513
|
+
minutes: minutesOf(ms),
|
|
2514
|
+
meanMinutes: meanOf(ms, timed),
|
|
2515
|
+
transcripts
|
|
2516
|
+
}), "counted");
|
|
2517
|
+
return {
|
|
2518
|
+
by,
|
|
2519
|
+
timeZone: zone,
|
|
2520
|
+
...counted(total),
|
|
2521
|
+
rows: kept.map(([key, group]) => ({ key, name: group.name, ...counted(group) })),
|
|
2522
|
+
hasMore: ordered.length > limit
|
|
2523
|
+
};
|
|
2524
|
+
}, "aggregateMeetingCounts");
|
|
2446
2525
|
var UNKNOWN_SPEAKER = "unknown";
|
|
2447
2526
|
var speakerOf = /* @__PURE__ */ __name((row) => row.personId !== null ? { key: `person:${row.personId}`, name: row.personName ?? row.identityName ?? row.speakerName } : row.identityId !== null ? { key: `identity:${row.identityId}`, name: row.identityName ?? row.speakerName } : row.speakerName?.trim() ? { key: `name:${row.speakerName.trim().toLowerCase()}`, name: row.speakerName.trim() } : { key: UNKNOWN_SPEAKER, name: null }, "speakerOf");
|
|
2448
2527
|
var aggregateMeetingStats = /* @__PURE__ */ __name((rows, timeZone) => {
|
|
2449
2528
|
const zone = zoneOf(timeZone);
|
|
2450
|
-
const format =
|
|
2451
|
-
timeZone: zone,
|
|
2452
|
-
year: "numeric",
|
|
2453
|
-
month: "2-digit",
|
|
2454
|
-
day: "2-digit",
|
|
2455
|
-
weekday: "short"
|
|
2456
|
-
});
|
|
2529
|
+
const format = zoneFormat(zone);
|
|
2457
2530
|
const speakers = /* @__PURE__ */ new Map();
|
|
2458
2531
|
const weeks = /* @__PURE__ */ new Map();
|
|
2459
2532
|
const meetings = /* @__PURE__ */ new Set();
|
|
@@ -2506,7 +2579,7 @@ var aggregateMeetingStats = /* @__PURE__ */ __name((rows, timeZone) => {
|
|
|
2506
2579
|
};
|
|
2507
2580
|
}, "aggregateMeetingStats");
|
|
2508
2581
|
|
|
2509
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2582
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/tasks/model.js
|
|
2510
2583
|
var TASK_KINDS = ["question", "request", "mention", "promise"];
|
|
2511
2584
|
var TASK_STATES = ["open", "todo", "in_progress", "done", "dismissed"];
|
|
2512
2585
|
var CLOSED_STATES = ["done", "dismissed"];
|
|
@@ -2521,7 +2594,7 @@ function closeTask(task, state, by, at, reason) {
|
|
|
2521
2594
|
}
|
|
2522
2595
|
__name(closeTask, "closeTask");
|
|
2523
2596
|
|
|
2524
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2597
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/tasks/priority.js
|
|
2525
2598
|
var PRIORITY_LABELS = ["low", "medium", "high", "critical"];
|
|
2526
2599
|
var MIDDLE = { low: 0.125, medium: 0.375, high: 0.625, critical: 0.875 };
|
|
2527
2600
|
var LEGACY_PRIORITY_SCORES = [0.875, 0.625, 0.375, 0.1875, 0.0625];
|
|
@@ -2550,7 +2623,7 @@ var priorityOf = /* @__PURE__ */ __name((value) => {
|
|
|
2550
2623
|
}, "priorityOf");
|
|
2551
2624
|
var priorityOption = /* @__PURE__ */ __name((value) => priorityOf(value) ?? "none", "priorityOption");
|
|
2552
2625
|
|
|
2553
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2626
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/tasks/service.js
|
|
2554
2627
|
function createTaskService({ store, now = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Date(), "now"), newId = /* @__PURE__ */ __name(() => crypto.randomUUID(), "newId") }) {
|
|
2555
2628
|
async function find(id4) {
|
|
2556
2629
|
const task = await store.get(id4);
|
|
@@ -2610,13 +2683,13 @@ function median(values) {
|
|
|
2610
2683
|
}
|
|
2611
2684
|
__name(median, "median");
|
|
2612
2685
|
|
|
2613
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2686
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/tasks/store.js
|
|
2614
2687
|
function matches(task, filter) {
|
|
2615
2688
|
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);
|
|
2616
2689
|
}
|
|
2617
2690
|
__name(matches, "matches");
|
|
2618
2691
|
|
|
2619
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2692
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/domain/knowledge.js
|
|
2620
2693
|
var FACT_STATUSES = ["proposed", "accepted", "superseded", "reversed", "rejected"];
|
|
2621
2694
|
var MEMORY_KINDS = ["summary", "digest", "preference"];
|
|
2622
2695
|
var MEMORY_STATUSES = ["proposed", "confirmed", "stale", "superseded"];
|
|
@@ -2624,7 +2697,7 @@ var MEMORY_SCOPES = ["personal", "work"];
|
|
|
2624
2697
|
var WORK_TASK_TYPES = ["bug", "feature", "chore"];
|
|
2625
2698
|
var TASK_TYPES2 = [...WORK_TASK_TYPES, ...TASK_KINDS];
|
|
2626
2699
|
|
|
2627
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2700
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/domain/tags.js
|
|
2628
2701
|
var TAG_TYPES = ["chat", "contact", "message", "task"];
|
|
2629
2702
|
var TAG = /^[a-z0-9-]{1,32}$/;
|
|
2630
2703
|
var tagOf = /* @__PURE__ */ __name((value) => {
|
|
@@ -2638,7 +2711,7 @@ var normalizeTag = /* @__PURE__ */ __name((value) => {
|
|
|
2638
2711
|
return tag;
|
|
2639
2712
|
}, "normalizeTag");
|
|
2640
2713
|
|
|
2641
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2714
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.565.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ff8e334310c9524b6cc272472a342b2f/node_modules/@wirecat/cli-core/dist/store/sqlite/link-kinds.js
|
|
2642
2715
|
var LINK_KINDS = [
|
|
2643
2716
|
"links-to",
|
|
2644
2717
|
"blocked-by",
|
|
@@ -2731,6 +2804,7 @@ export {
|
|
|
2731
2804
|
meetingLink,
|
|
2732
2805
|
meetingSpeaker,
|
|
2733
2806
|
meetingStats,
|
|
2807
|
+
meetingCounts,
|
|
2734
2808
|
meetingParticipants,
|
|
2735
2809
|
meetingPassage,
|
|
2736
2810
|
event,
|
|
@@ -2742,6 +2816,7 @@ export {
|
|
|
2742
2816
|
SAVE_HELP,
|
|
2743
2817
|
validateMeetingSeriesHistory,
|
|
2744
2818
|
validateMeetingSeriesInventoryCursor,
|
|
2819
|
+
aggregateMeetingCounts,
|
|
2745
2820
|
aggregateMeetingStats,
|
|
2746
2821
|
TAG_TYPES,
|
|
2747
2822
|
tagOf,
|