@wirecat/zoom-cli 0.78.0 → 0.80.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 -4
- package/dist/answer-output.d.ts +1 -1
- package/dist/answer-output.js +1 -1
- package/dist/bin/zm.js +2 -2
- package/dist/bundle/{all-profiles-7JN3N3E6.js → all-profiles-5GOKWOT4.js} +11 -11
- package/dist/bundle/answer-policy-7PYXHK2I.js +122 -0
- package/dist/bundle/{anthropic-U6O7UYGZ.js → anthropic-NHXMOFYS.js} +6 -6
- package/dist/bundle/{app-server-G7BTC6CE.js → app-server-HFW5Z5PI.js} +68 -68
- package/dist/bundle/{bun-VLROVUFK.js → bun-M5IGY2TG.js} +2 -2
- package/dist/bundle/{bun-sqlite-C5JLANDE.js → bun-sqlite-MTP5JJQ2.js} +7 -7
- package/dist/bundle/{chunk-7HEZQCHL.js → chunk-2P6MQH4V.js} +6 -6
- package/dist/bundle/{chunk-HGBZBQAE.js → chunk-2XZ2YKW4.js} +3 -3
- package/dist/bundle/{chunk-3NZJKY7A.js → chunk-3AOESMW6.js} +34 -24
- package/dist/bundle/{chunk-HI4QICF7.js → chunk-3BTRJYIT.js} +12 -12
- package/dist/bundle/{chunk-GQ6EJDMV.js → chunk-3UONR5HW.js} +1 -1
- package/dist/bundle/{chunk-NS5XSCHC.js → chunk-3Z7CFQTI.js} +1 -1
- package/dist/bundle/{chunk-RJIJR6KH.js → chunk-475P3LWG.js} +1 -1
- package/dist/bundle/{chunk-MVLLWSV7.js → chunk-4F7Q5CET.js} +16 -16
- package/dist/bundle/{chunk-7K5O2VWO.js → chunk-4OAR7BGU.js} +1 -1
- package/dist/bundle/{chunk-ZZJ5IWNT.js → chunk-5CJ6AAUI.js} +4 -4
- package/dist/bundle/{chunk-4XPVRZXE.js → chunk-5K54M6RD.js} +1 -1
- package/dist/bundle/{chunk-LX532BXO.js → chunk-5QXQIZJY.js} +1 -1
- package/dist/bundle/{chunk-WJTXO2EI.js → chunk-5RVXXDN7.js} +1 -1
- package/dist/bundle/{chunk-M5R2DURM.js → chunk-5XO2AY6D.js} +10 -10
- package/dist/bundle/{chunk-MSMFYW6N.js → chunk-6CDMGT6Q.js} +2 -2
- package/dist/bundle/{chunk-AEVSVVTP.js → chunk-6I4C4ZFT.js} +2 -2
- package/dist/bundle/{chunk-YNYQGZUW.js → chunk-6LY4LBSD.js} +7 -7
- package/dist/bundle/{chunk-OOLNK3Y5.js → chunk-6MDL2LZA.js} +8 -8
- package/dist/bundle/{chunk-532FNLON.js → chunk-6PIXP5IH.js} +20 -20
- package/dist/bundle/{chunk-VMA7SILL.js → chunk-6QCBTBDA.js} +1 -1
- package/dist/bundle/{chunk-BIUHLXL2.js → chunk-75JW7X2W.js} +33 -33
- package/dist/bundle/{chunk-FXHZHQKU.js → chunk-7U5X37TE.js} +6 -6
- package/dist/bundle/{chunk-VW36ZSAE.js → chunk-A3TUG2DP.js} +1 -1
- package/dist/bundle/{chunk-FCGRXUAU.js → chunk-ARL2TTPZ.js} +9 -9
- package/dist/bundle/{chunk-TXDCIM5D.js → chunk-BIKHHFD2.js} +1162 -771
- package/dist/bundle/{chunk-OAYAGQ7C.js → chunk-BNEJKGG7.js} +31 -22
- package/dist/bundle/{chunk-P5QO7Y3H.js → chunk-BPSURRAD.js} +6 -6
- package/dist/bundle/{chunk-6MFEWAK4.js → chunk-BRMV33MO.js} +4 -4
- package/dist/bundle/{chunk-HOJOVUO6.js → chunk-BW5JEOBE.js} +12 -12
- package/dist/bundle/{chunk-HUSIS3XO.js → chunk-CHEHK6IW.js} +64 -61
- package/dist/bundle/{chunk-XCOGI4JE.js → chunk-CW6CPQHI.js} +4 -4
- package/dist/bundle/{chunk-BAHXR4PA.js → chunk-CWCDCNXA.js} +6 -6
- package/dist/bundle/{chunk-NO2LIHWA.js → chunk-CWXOXIWS.js} +1 -1
- package/dist/bundle/{chunk-F7IDYQLM.js → chunk-D4HKTC2T.js} +2 -2
- package/dist/bundle/{chunk-YZKVCTZI.js → chunk-DYRISFHZ.js} +8 -8
- package/dist/bundle/{chunk-OI4563JI.js → chunk-DZ6H3YJH.js} +13 -13
- package/dist/bundle/{chunk-YHQ3TEGB.js → chunk-E3JVLVVB.js} +29 -27
- package/dist/bundle/{chunk-MJMHUU3J.js → chunk-EI37UXDR.js} +1 -1
- package/dist/bundle/{chunk-3A3B3JX4.js → chunk-EMYRUJCV.js} +35 -12
- package/dist/bundle/{chunk-B4V4DRVO.js → chunk-EPIA2UUM.js} +12 -12
- package/dist/bundle/{chunk-H74NENWA.js → chunk-FIJREKLA.js} +3 -3
- package/dist/bundle/chunk-FPUGMDJV.js +7 -0
- package/dist/bundle/{chunk-JOIAE3NO.js → chunk-FSLR2YGR.js} +7 -7
- package/dist/bundle/{chunk-2LMD3JUD.js → chunk-G5VH4WUF.js} +2 -2
- package/dist/bundle/{chunk-LERF2FIK.js → chunk-GCPO7T2X.js} +3 -3
- package/dist/bundle/{chunk-IBINGDYF.js → chunk-GCUOZ2OA.js} +6 -6
- package/dist/bundle/{chunk-XSF5OBVZ.js → chunk-GGKEQQME.js} +8 -8
- package/dist/bundle/{chunk-H34KEXTN.js → chunk-GRYXOSN6.js} +10 -10
- package/dist/bundle/{chunk-DLJPN47R.js → chunk-GVKZZT7E.js} +6 -5
- package/dist/bundle/{chunk-M2M3U4UU.js → chunk-HGSBLY6M.js} +12 -12
- package/dist/bundle/{chunk-7AMKSXMB.js → chunk-HH7GR6TN.js} +6 -6
- package/dist/bundle/{chunk-WOYPWXZK.js → chunk-IQWBGMCR.js} +4 -4
- package/dist/bundle/{chunk-F2KZNAFF.js → chunk-JGSVWLL2.js} +2 -2
- package/dist/bundle/{chunk-XOG7B7K5.js → chunk-JJX4HKDV.js} +4 -4
- package/dist/bundle/{chunk-C56OYYFG.js → chunk-JXSEH64A.js} +3 -3
- package/dist/bundle/{chunk-Q4AKIAIA.js → chunk-K672XJ2P.js} +12 -12
- package/dist/bundle/{chunk-LBV4673S.js → chunk-L2TURFT6.js} +3 -3
- package/dist/bundle/{chunk-H7SRM26V.js → chunk-L6FM5RQY.js} +3 -3
- package/dist/bundle/{chunk-EV7QCFQR.js → chunk-M4LAF627.js} +45 -23
- package/dist/bundle/{chunk-B6TUEQ4O.js → chunk-MH4L5LL6.js} +3 -3
- package/dist/bundle/{chunk-5SM2IOAS.js → chunk-N5YUHN6S.js} +14 -29
- package/dist/bundle/{chunk-TEFHNXXX.js → chunk-NMETTKCV.js} +31 -16
- package/dist/bundle/{chunk-6NTNAEZF.js → chunk-NRVMK5H3.js} +1390 -1039
- package/dist/bundle/{chunk-53TV72JG.js → chunk-NXFKZFTC.js} +2 -2
- package/dist/bundle/{chunk-YAPDU3SV.js → chunk-O3DYRCIT.js} +1 -1
- package/dist/bundle/{chunk-XXD4YPHQ.js → chunk-O4ZBFATF.js} +12 -12
- package/dist/bundle/{chunk-UKYO3HNO.js → chunk-ONJPUFLX.js} +1 -1
- package/dist/bundle/{chunk-WEAMGNST.js → chunk-OXPHJEJ2.js} +3 -3
- package/dist/bundle/{chunk-ZDZASHSQ.js → chunk-P2JTVRGU.js} +17 -17
- package/dist/bundle/{chunk-U2Z35B3W.js → chunk-PCPOO5FS.js} +2 -2
- package/dist/bundle/{chunk-7IIQU5RA.js → chunk-PKW3TPNP.js} +13 -13
- package/dist/bundle/{chunk-5DLK4OXF.js → chunk-PMO2Z6DQ.js} +3 -3
- package/dist/bundle/{chunk-3QWYRZME.js → chunk-Q5LUGY2V.js} +8 -8
- package/dist/bundle/{chunk-KBTINKQF.js → chunk-Q6MISDKJ.js} +3 -3
- package/dist/bundle/{chunk-BGO7IEHY.js → chunk-QIK2IBJ4.js} +21 -7
- package/dist/bundle/{chunk-2AWWMROP.js → chunk-RFXJLG5V.js} +7495 -7138
- package/dist/bundle/{chunk-UHBQM54J.js → chunk-RMX2WPWS.js} +4 -4
- package/dist/bundle/{chunk-2USGT7LE.js → chunk-RT7C3SSJ.js} +1 -1
- package/dist/bundle/{chunk-FNLXFQN6.js → chunk-ST3ZB7LS.js} +1 -1
- package/dist/bundle/{chunk-INJK7FNM.js → chunk-SUG6YGAF.js} +201 -175
- package/dist/bundle/{chunk-FURKMNC2.js → chunk-TDBVM2SS.js} +3 -3
- package/dist/bundle/{chunk-FHOQWPQ6.js → chunk-TMYZKDQ7.js} +307 -268
- package/dist/bundle/{chunk-LBTANUUH.js → chunk-TNL3YQ33.js} +2 -2
- package/dist/bundle/{chunk-V53TIJLY.js → chunk-U5N2PKKM.js} +2 -2
- package/dist/bundle/{chunk-FMMCGQNT.js → chunk-UX4JZMA4.js} +28 -4
- package/dist/bundle/{chunk-ZCVO6GAT.js → chunk-VN7TKMOW.js} +1 -1
- package/dist/bundle/{chunk-OAE6XR7E.js → chunk-W2QDYMAM.js} +7 -7
- package/dist/bundle/{chunk-2O66KMOR.js → chunk-W32HK7KG.js} +2 -2
- package/dist/bundle/{chunk-UIBKGH5P.js → chunk-W3GZ7JUO.js} +1 -1
- package/dist/bundle/{chunk-ORSTSBWU.js → chunk-W7M4JYEE.js} +1 -1
- package/dist/bundle/{chunk-KEAKNNXU.js → chunk-XIHENZW6.js} +4 -4
- package/dist/bundle/{chunk-C26V2XNV.js → chunk-XKLU5KV2.js} +1 -1
- package/dist/bundle/{chunk-Q4CNLEAY.js → chunk-XL4ND7CZ.js} +26 -26
- package/dist/bundle/{chunk-7EVB4UV7.js → chunk-XTCAWNBP.js} +4 -4
- package/dist/bundle/{chunk-4QCLPSJ7.js → chunk-YAA2D6RP.js} +5 -5
- package/dist/bundle/{chunk-YLNUKNGD.js → chunk-YR5TRWT2.js} +35 -34
- package/dist/bundle/{chunk-TFDD4Q5Z.js → chunk-Z3CPZ4I4.js} +10 -10
- package/dist/bundle/{chunk-PJMQE4PW.js → chunk-ZPZT46O6.js} +15 -9
- package/dist/bundle/{cli-YALONJ4V.js → cli-QNBYDOKV.js} +91 -77
- package/dist/bundle/command-contract-CT6MV6YG.js +45 -0
- package/dist/bundle/{command-server-entry-W4XTBUZE.js → command-server-entry-WMA4SWJ5.js} +35 -35
- package/dist/bundle/config-ZFQFDEVL.js +109 -0
- package/dist/bundle/{decode-IFQHVCFX.js → decode-7PXUXNIP.js} +6 -6
- package/dist/bundle/{dispatch-GOJB4TDK.js → dispatch-AWDROXWN.js} +9 -9
- package/dist/bundle/{dist-H7XFUMRX.js → dist-TSBH4FOU.js} +21 -21
- package/dist/bundle/{echarts-HPUHPJCO.js → echarts-WIDIUEO6.js} +2 -2
- package/dist/bundle/{embed-ESU3WZYW.js → embed-EIRVQF5E.js} +7 -7
- package/dist/bundle/{embedder-BV6O76B3.js → embedder-MXPM6OXK.js} +10 -10
- package/dist/bundle/{failure-SWVCYFQX.js → failure-JZW73RP7.js} +3 -3
- package/dist/bundle/first-run-K6EHRAIM.js +29 -0
- package/dist/bundle/first-screen-C6AF4KT4.js +45 -0
- package/dist/bundle/{folders-VQGKBM3P.js → folders-TGFOE7DY.js} +5 -5
- package/dist/bundle/{instructions-UUX57I3V.js → instructions-D5LNE6NJ.js} +1 -1
- package/dist/bundle/{main-UIKADOFB.js → main-OHW5Z56X.js} +24 -24
- package/dist/bundle/{mcp-VMS6PBCU.js → mcp-RGNRW77S.js} +2 -2
- package/dist/bundle/meeting-combined-3OKFXZNA.js +26 -0
- package/dist/bundle/meeting-model-4XNF725D.js +26 -0
- package/dist/bundle/{meeting-semantic-F6GUICB7.js → meeting-semantic-FYOVY4S2.js} +8 -8
- package/dist/bundle/{meetings-KIBUPLPW.js → meetings-WI4SXPBJ.js} +9 -7
- package/dist/bundle/{node-AM3JCAWB.js → node-UEWUFR7N.js} +2 -2
- package/dist/bundle/{node-sqlite-VM6VS3RU.js → node-sqlite-FJWKJHYU.js} +8 -8
- package/dist/bundle/{oauth-AX5Z32H6.js → oauth-KOONTGLW.js} +8 -8
- package/dist/bundle/{open-SSGOOOZG.js → open-EFYTWUGC.js} +6 -6
- package/dist/bundle/openai-6Y2JRDNY.js +28 -0
- package/dist/bundle/{output-file-FR226A64.js → output-file-J4SU6X4I.js} +6 -6
- package/dist/bundle/{process-5ZEK2VFY.js → process-U5PLNIDC.js} +1 -1
- package/dist/bundle/{program-ROJAJHCB.js → program-3JICCSA6.js} +98 -95
- package/dist/bundle/{prompt-6Y7A4453.js → prompt-YPDMSOKC.js} +6 -6
- package/dist/bundle/{recognize-R5W25WKH.js → recognize-Z2SSWUKH.js} +5 -5
- package/dist/bundle/{remote-PA4FQUZK.js → remote-R5HMDHOG.js} +11 -11
- package/dist/bundle/{rerank-CYX3UFTM.js → rerank-6NGBEMQ2.js} +8 -8
- package/dist/bundle/run-log-LG3TI3WI.js +136 -0
- package/dist/bundle/{serve-MM5QEZJW.js → serve-CU3RMWU7.js} +10 -10
- package/dist/bundle/{server-JQQAH7E5.js → server-SOQSVX2Q.js} +60 -60
- package/dist/bundle/server-X7JYRMKX.js +85 -0
- package/dist/bundle/{services-Y2DOQONM.js → services-LROZ3RDT.js} +54 -54
- package/dist/bundle/{speech-O6WLX34V.js → speech-AS77HFIF.js} +25 -25
- package/dist/bundle/{sqlite-runtime-LQTBZMFH.js → sqlite-runtime-U25NS6BK.js} +7 -7
- package/dist/bundle/{state-AIDPZLVH.js → state-CPEVKK66.js} +7 -7
- package/dist/bundle/{store-BA4FQS5V.js → store-6CHRMJM7.js} +28 -24
- package/dist/bundle/{store-UNDS2TBG.js → store-QKHCZOYR.js} +26 -26
- package/dist/bundle/store-connection-FCDVOPWB.js +102 -0
- package/dist/bundle/store-maintenance-command-6HVOAHOZ.js +77 -0
- package/dist/bundle/{streaming-UFHT5MR2.js → streaming-VDJOYGMO.js} +7 -7
- package/dist/bundle/{tokens-Z32UKGQB.js → tokens-JBN2OHQB.js} +10 -10
- package/dist/bundle/zm.js +9 -9
- package/dist/bundle/{zoom-app-6U46XBTG.js → zoom-app-Q4IKYNG3.js} +8 -8
- package/dist/program-bindings.d.ts.map +1 -1
- package/dist/program-bindings.js +3 -2
- package/dist/program-bindings.js.map +1 -1
- package/dist/store-commands.d.ts.map +1 -1
- package/dist/store-commands.js +2 -2
- package/dist/store-commands.js.map +1 -1
- package/dist/tokens.d.ts.map +1 -1
- package/dist/tokens.js +3 -0
- package/dist/tokens.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +4 -3
- package/dist/bundle/answer-policy-G2BNMPEX.js +0 -122
- package/dist/bundle/chunk-SHTHNBHG.js +0 -2
- package/dist/bundle/command-contract-DMR5EOIN.js +0 -45
- package/dist/bundle/config-4TLDRXRL.js +0 -109
- package/dist/bundle/first-run-OEJGAQAE.js +0 -29
- package/dist/bundle/first-screen-QLM4IABL.js +0 -45
- package/dist/bundle/meeting-combined-SKJISCC7.js +0 -26
- package/dist/bundle/meeting-model-YG3Z5KCB.js +0 -26
- package/dist/bundle/openai-YIP73X2B.js +0 -28
- package/dist/bundle/run-log-FHERL3H6.js +0 -136
- package/dist/bundle/server-W2BBONCQ.js +0 -85
- package/dist/bundle/store-connection-ADBJ36T4.js +0 -102
- package/dist/bundle/store-maintenance-command-IB6ML4UI.js +0 -77
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
timezoneOf,
|
|
10
10
|
validateQuery,
|
|
11
11
|
walkQuery
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-Z3CPZ4I4.js";
|
|
13
13
|
import {
|
|
14
14
|
STEPS,
|
|
15
15
|
array,
|
|
@@ -35,19 +35,19 @@ import {
|
|
|
35
35
|
strictObject,
|
|
36
36
|
string,
|
|
37
37
|
union
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-ZPZT46O6.js";
|
|
39
39
|
import {
|
|
40
40
|
CliError
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-ST3ZB7LS.js";
|
|
42
42
|
import {
|
|
43
43
|
singleLine,
|
|
44
44
|
visibleControls
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-5RVXXDN7.js";
|
|
46
46
|
import {
|
|
47
47
|
__name
|
|
48
48
|
} from "./chunk-ZVVMGPBJ.js";
|
|
49
49
|
|
|
50
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
50
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/search/service-query.js
|
|
51
51
|
var BACKENDS = ["archive", "server", "both"];
|
|
52
52
|
var MAX_BRANCHES = 64;
|
|
53
53
|
var some = /* @__PURE__ */ __name((value) => value === void 0 ? [] : [value], "some");
|
|
@@ -86,10 +86,10 @@ var RELATIVE_TIME = /^\d+[mhd]$/i;
|
|
|
86
86
|
var OFFSET = /(?:Z|[+-]\d{2}:?\d{2})$/i;
|
|
87
87
|
var readsZone = /* @__PURE__ */ __name((ast, times) => walkQuery(ast.root).some((term) => times.has(term.field) && [term.value, term.upper].some((value) => value !== void 0 && value !== "*" && !RELATIVE_TIME.test(value) && !OFFSET.test(value))), "readsZone");
|
|
88
88
|
|
|
89
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
89
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/meetings/model.js
|
|
90
90
|
var MEETING_CALL_DIRECTIONS = ["in", "out"];
|
|
91
91
|
|
|
92
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
92
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/meetings/reference.js
|
|
93
93
|
var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "expected meeting:<accountId>/<meetingId>[/<transcriptId>[/<cuePosition>]] with safe integer IDs"), "invalid");
|
|
94
94
|
var integer2 = /* @__PURE__ */ __name((value, minimum = 1) => {
|
|
95
95
|
if (!Number.isSafeInteger(value) || value < minimum)
|
|
@@ -126,7 +126,7 @@ var parseMeetingReference = /* @__PURE__ */ __name((text9) => {
|
|
|
126
126
|
}, "parseMeetingReference");
|
|
127
127
|
var canonicalMeetingReference = /* @__PURE__ */ __name((text9) => formatMeetingReference(parseMeetingReference(text9)), "canonicalMeetingReference");
|
|
128
128
|
|
|
129
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
129
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/meetings/item.js
|
|
130
130
|
var text = string();
|
|
131
131
|
var count = pipe(number(), integer(), minValue(0));
|
|
132
132
|
var MEETING_ISSUES = ["time_without_zone"];
|
|
@@ -226,7 +226,7 @@ var MEETING_QUERY = {
|
|
|
226
226
|
})
|
|
227
227
|
};
|
|
228
228
|
|
|
229
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
229
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/meetings/store.js
|
|
230
230
|
var MEETING_DOCUMENT_ROLES = ["transcript", "recording", "notes"];
|
|
231
231
|
var TRANSCRIPT_WORDS = [
|
|
232
232
|
"Transcript",
|
|
@@ -238,7 +238,7 @@ var TRANSCRIPT_WORDS = [
|
|
|
238
238
|
];
|
|
239
239
|
var READ_BUDGET_EXCEEDED = "Meeting search exceeds its stored text byte budget";
|
|
240
240
|
|
|
241
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
241
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/meetings/answers.js
|
|
242
242
|
var text2 = string();
|
|
243
243
|
var count2 = pipe(number(), integer(), minValue(0));
|
|
244
244
|
var iso2 = /* @__PURE__ */ __name((ms2) => ms2 === null ? null : new Date(ms2).toISOString(), "iso");
|
|
@@ -522,7 +522,7 @@ var meetingHitsList = /* @__PURE__ */ __name((found, limit, command = "search me
|
|
|
522
522
|
};
|
|
523
523
|
}, "meetingHitsList");
|
|
524
524
|
|
|
525
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
525
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/meetings/join-key.js
|
|
526
526
|
var joinKeyOf = /* @__PURE__ */ __name((url) => {
|
|
527
527
|
const parsed = urlOf(url);
|
|
528
528
|
if (!parsed)
|
|
@@ -556,7 +556,7 @@ var urlOf = /* @__PURE__ */ __name((url) => {
|
|
|
556
556
|
}
|
|
557
557
|
}, "urlOf");
|
|
558
558
|
|
|
559
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
559
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/meetings/calendar-text.js
|
|
560
560
|
var ENTITIES = { amp: "&", lt: "<", gt: ">", quot: '"', "#39": "'", apos: "'", nbsp: " " };
|
|
561
561
|
var SECRET_LINE = /(?<![\p{L}\p{N}])(pass ?codes?|passwords?|pwd|pins?|access ?codes?|meeting ?codes?|kennwort|пароль|пин-?код|код доступа)(?![\p{L}\p{N}])|pwd=/iu;
|
|
562
562
|
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");
|
|
@@ -593,7 +593,7 @@ var entryMetadata = /* @__PURE__ */ __name((metadata) => {
|
|
|
593
593
|
return kept;
|
|
594
594
|
}, "entryMetadata");
|
|
595
595
|
|
|
596
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
596
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/meetings/calls.js
|
|
597
597
|
var CALL_DIRECTIONS = ["incoming", "outgoing", "internal"];
|
|
598
598
|
var CALL_OUTCOMES = ["answered", "voicemail", "busy", "no_answer", "failed"];
|
|
599
599
|
var MISSED_OUTCOMES = ["voicemail", "busy", "no_answer"];
|
|
@@ -662,7 +662,7 @@ var callOf = /* @__PURE__ */ __name((stored) => {
|
|
|
662
662
|
};
|
|
663
663
|
}, "callOf");
|
|
664
664
|
|
|
665
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
665
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/meetings/call-answers.js
|
|
666
666
|
var count3 = pipe(number(), integer(), minValue(0));
|
|
667
667
|
var ms = count3;
|
|
668
668
|
var id = pipe(number(), integer(), minValue(1));
|
|
@@ -825,7 +825,7 @@ var callStatsItem = /* @__PURE__ */ __name((found) => {
|
|
|
825
825
|
};
|
|
826
826
|
}, "callStatsItem");
|
|
827
827
|
|
|
828
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
828
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/meetings/stats.js
|
|
829
829
|
var MEETING_COUNTS_GROUPINGS = ["day", "week", "series"];
|
|
830
830
|
var zoneOf = /* @__PURE__ */ __name((timeZone) => {
|
|
831
831
|
const zone = timeZone ?? "UTC";
|
|
@@ -960,7 +960,7 @@ var aggregateMeetingStats = /* @__PURE__ */ __name((rows, timeZone) => {
|
|
|
960
960
|
};
|
|
961
961
|
}, "aggregateMeetingStats");
|
|
962
962
|
|
|
963
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
963
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/meetings/call-stats.js
|
|
964
964
|
var CALLBACK_WITHIN_MS = 24 * 60 * 60 * 1e3;
|
|
965
965
|
var SHORT_CALL_UNDER_MS = 3e4;
|
|
966
966
|
var MOST_MISSED = 100;
|
|
@@ -1150,7 +1150,7 @@ var aggregateCallStats = /* @__PURE__ */ __name((calls, options = {}) => {
|
|
|
1150
1150
|
};
|
|
1151
1151
|
}, "aggregateCallStats");
|
|
1152
1152
|
|
|
1153
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1153
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/meetings/cue-fingerprint.js
|
|
1154
1154
|
import { createHash } from "node:crypto";
|
|
1155
1155
|
var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256").update(JSON.stringify({
|
|
1156
1156
|
reference: cue2.reference,
|
|
@@ -1164,7 +1164,7 @@ var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256"
|
|
|
1164
1164
|
text: cue2.text
|
|
1165
1165
|
})).digest("hex"), "meetingCueFingerprint");
|
|
1166
1166
|
|
|
1167
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1167
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/meetings/event-query.js
|
|
1168
1168
|
var EVENT_QUERY = defineQuery({
|
|
1169
1169
|
entity: "event",
|
|
1170
1170
|
backend: "sql",
|
|
@@ -1180,7 +1180,7 @@ var EVENT_QUERY = defineQuery({
|
|
|
1180
1180
|
]
|
|
1181
1181
|
});
|
|
1182
1182
|
|
|
1183
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1183
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/meetings/event-store.js
|
|
1184
1184
|
var PARTICIPANT_RESPONSES = ["needs-action", "accepted", "tentative", "declined", "delegated"];
|
|
1185
1185
|
var UNTIL = /(?:^|;)UNTIL=(\d{4})(\d{2})(\d{2})(?:T(\d{2})(\d{2})(\d{2})Z?)?(?:;|$)/iu;
|
|
1186
1186
|
var seriesEnd = /* @__PURE__ */ __name((entry) => {
|
|
@@ -1231,7 +1231,7 @@ var eventChange = /* @__PURE__ */ __name((event2, entries, revisions, since) =>
|
|
|
1231
1231
|
return null;
|
|
1232
1232
|
}, "eventChange");
|
|
1233
1233
|
|
|
1234
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1234
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/meetings/events.js
|
|
1235
1235
|
var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now(), { create = true } = {}) => {
|
|
1236
1236
|
const current = await store.meeting(details.meeting.id);
|
|
1237
1237
|
if (!current)
|
|
@@ -1276,7 +1276,7 @@ var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now(),
|
|
|
1276
1276
|
return (await store.events()).find((e) => e.id === linked?.meeting.eventId) ?? null;
|
|
1277
1277
|
}, "linkEvent");
|
|
1278
1278
|
|
|
1279
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1279
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/meetings/participant-search.js
|
|
1280
1280
|
var normalizeMeetingParticipantQuery = /* @__PURE__ */ __name((text9) => text9.normalize("NFKC").toLowerCase(), "normalizeMeetingParticipantQuery");
|
|
1281
1281
|
var validateMeetingParticipantQuery = /* @__PURE__ */ __name((query) => {
|
|
1282
1282
|
if (typeof query !== "string" || !query.trim() || query.length > 500 || query.includes("\0"))
|
|
@@ -1300,7 +1300,7 @@ var validateMeetingParticipantSearch = /* @__PURE__ */ __name((query, input) =>
|
|
|
1300
1300
|
};
|
|
1301
1301
|
}, "validateMeetingParticipantSearch");
|
|
1302
1302
|
|
|
1303
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1303
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/meetings/reads.js
|
|
1304
1304
|
var MeetingError = class extends CliError {
|
|
1305
1305
|
static {
|
|
1306
1306
|
__name(this, "MeetingError");
|
|
@@ -1442,7 +1442,7 @@ var meetingSummaryAnswer = /* @__PURE__ */ __name(async (store, id5, accountId)
|
|
|
1442
1442
|
return wholeList(details.summaries.map((one) => meetingSummaryItem(details.meeting.accountId, one)));
|
|
1443
1443
|
}, "meetingSummaryAnswer");
|
|
1444
1444
|
|
|
1445
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1445
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/meetings/export.js
|
|
1446
1446
|
var timestamp = /* @__PURE__ */ __name((milliseconds2) => {
|
|
1447
1447
|
if (!Number.isSafeInteger(milliseconds2) || milliseconds2 < 0)
|
|
1448
1448
|
throw new MeetingError("validation_error", "transcript times must be nonnegative integer milliseconds");
|
|
@@ -1539,10 +1539,10 @@ var exportMeeting = /* @__PURE__ */ __name(async (store, id5, options) => {
|
|
|
1539
1539
|
};
|
|
1540
1540
|
}, "exportMeeting");
|
|
1541
1541
|
|
|
1542
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1542
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
|
|
1543
1543
|
import { createHash as createHash2 } from "node:crypto";
|
|
1544
1544
|
|
|
1545
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1545
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/meetings/payment.js
|
|
1546
1546
|
var FACT_TYPES = ["fact", "statement", "question", "decision", "promise"];
|
|
1547
1547
|
var PAYMENT_DIRECTIONS = ["to_us", "from_us"];
|
|
1548
1548
|
var PAYMENT_STATES = ["expected", "paid", "cancelled"];
|
|
@@ -1636,7 +1636,7 @@ var paymentTitle = /* @__PURE__ */ __name((fact) => {
|
|
|
1636
1636
|
return `${grouped(payment.amount)} ${payment.currency} ${way}${party}${item}${due} (${payment.state})`;
|
|
1637
1637
|
}, "paymentTitle");
|
|
1638
1638
|
|
|
1639
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1639
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/meetings/timestamp.js
|
|
1640
1640
|
var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
|
|
1641
1641
|
if (typeof value !== "string" || !/^\d{4}-\d{2}-\d{2}T.+(?:Z|[+-]\d{2}:\d{2})$/i.test(value) || !Number.isFinite(Date.parse(value)))
|
|
1642
1642
|
throw new CliError("validation_error", `${name} must be an ISO timestamp with a timezone, such as 2026-11-09T09:00:00Z`);
|
|
@@ -1647,7 +1647,7 @@ var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
|
|
|
1647
1647
|
return new Date(value).toISOString();
|
|
1648
1648
|
}, "meetingTimestamp");
|
|
1649
1649
|
|
|
1650
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1650
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
|
|
1651
1651
|
var TASK_TYPES = ["bug", "feature", "chore"];
|
|
1652
1652
|
var invalid3 = /* @__PURE__ */ __name((message) => {
|
|
1653
1653
|
throw new CliError("validation_error", message);
|
|
@@ -1822,7 +1822,7 @@ var validateBatch = /* @__PURE__ */ __name((input, rules, most, one) => {
|
|
|
1822
1822
|
var validateFindings = /* @__PURE__ */ __name((input, rules) => validateBatch(input, rules, 16, (finding, ids2) => validateFinding(finding, rules, ids2)), "validateFindings");
|
|
1823
1823
|
var findingFingerprint = /* @__PURE__ */ __name(({ id: _id, ...finding }) => findingHash(finding), "findingFingerprint");
|
|
1824
1824
|
|
|
1825
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1825
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/meetings/findings.js
|
|
1826
1826
|
var MEETING_FINDINGS_KIND = "meeting_findings";
|
|
1827
1827
|
var cue = /* @__PURE__ */ __name((raw) => {
|
|
1828
1828
|
const reference2 = canonicalMeetingReference(raw);
|
|
@@ -1833,7 +1833,7 @@ var cue = /* @__PURE__ */ __name((raw) => {
|
|
|
1833
1833
|
var validateMeetingFindings = /* @__PURE__ */ __name((input) => validateFindings(input, { plural: "meeting findings", singular: "meeting finding", cited: "cue", reference: cue }), "validateMeetingFindings");
|
|
1834
1834
|
var meetingFindingFingerprint = findingFingerprint;
|
|
1835
1835
|
|
|
1836
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1836
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/meetings/hit-query.js
|
|
1837
1837
|
var context = {
|
|
1838
1838
|
command: "search meetings",
|
|
1839
1839
|
guide: "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md#\u0432\u0441\u0442\u0440\u0435\u0447\u0438"
|
|
@@ -1955,7 +1955,7 @@ var meetingWordsQuery = /* @__PURE__ */ __name((text9) => {
|
|
|
1955
1955
|
return { version: 1, language: "lucene-v1", root };
|
|
1956
1956
|
}, "meetingWordsQuery");
|
|
1957
1957
|
|
|
1958
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1958
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/meetings/language.js
|
|
1959
1959
|
var LATIN_WORDS = {
|
|
1960
1960
|
en: ["the", "and", "is", "that", "you", "this", "what", "have", "with", "are"],
|
|
1961
1961
|
es: ["el", "los", "las", "por", "pero", "para", "est\xE1", "muy", "tambi\xE9n", "hay"],
|
|
@@ -2004,7 +2004,7 @@ var transcriptLanguage = /* @__PURE__ */ __name((texts) => {
|
|
|
2004
2004
|
return null;
|
|
2005
2005
|
}, "transcriptLanguage");
|
|
2006
2006
|
|
|
2007
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2007
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/meetings/ingest.js
|
|
2008
2008
|
var contentHash = /* @__PURE__ */ __name(async (text9) => {
|
|
2009
2009
|
const bytes = await crypto.subtle.digest("SHA-256", new TextEncoder().encode(text9));
|
|
2010
2010
|
return Array.from(new Uint8Array(bytes), (byte) => byte.toString(16).padStart(2, "0")).join("");
|
|
@@ -2041,7 +2041,240 @@ var timestamp2 = /* @__PURE__ */ __name((value) => {
|
|
|
2041
2041
|
return time;
|
|
2042
2042
|
}, "timestamp");
|
|
2043
2043
|
|
|
2044
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2044
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/meetings/search-store.js
|
|
2045
|
+
var refreshMeetingIndex = /* @__PURE__ */ __name(async (meetings, accountId, signal) => {
|
|
2046
|
+
let before = Number.POSITIVE_INFINITY;
|
|
2047
|
+
for (; ; ) {
|
|
2048
|
+
signal?.throwIfAborted();
|
|
2049
|
+
const { indexed, remaining } = await meetings.indexSearch({
|
|
2050
|
+
accountId,
|
|
2051
|
+
limit: 1e3,
|
|
2052
|
+
maxReadBytes: 64 * 1024 ** 2,
|
|
2053
|
+
signal
|
|
2054
|
+
});
|
|
2055
|
+
if (remaining === 0 || indexed === 0 || remaining >= before)
|
|
2056
|
+
return;
|
|
2057
|
+
before = remaining;
|
|
2058
|
+
}
|
|
2059
|
+
}, "refreshMeetingIndex");
|
|
2060
|
+
|
|
2061
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/meetings/pull.js
|
|
2062
|
+
var participantInput = /* @__PURE__ */ __name((p, provider, occurrenceId2, position, accountId) => {
|
|
2063
|
+
const { identityExternalId, phone, ...fields2 } = p;
|
|
2064
|
+
const externalId = identityExternalId ?? (p.email ? `email:${p.email.toLowerCase()}` : p.externalId) ?? `name:${p.displayName ?? "unknown"}@${accountId}/${occurrenceId2}:${position}`;
|
|
2065
|
+
return {
|
|
2066
|
+
...fields2,
|
|
2067
|
+
identity: {
|
|
2068
|
+
provider,
|
|
2069
|
+
externalId,
|
|
2070
|
+
name: p.displayName,
|
|
2071
|
+
...phone?.trim() ? { phone } : {},
|
|
2072
|
+
metadata: p.metadata,
|
|
2073
|
+
associatePerson: Boolean(identityExternalId?.trim() || p.email?.trim() || p.externalId?.trim())
|
|
2074
|
+
}
|
|
2075
|
+
};
|
|
2076
|
+
}, "participantInput");
|
|
2077
|
+
var participantInputs = /* @__PURE__ */ __name((provider, occurrenceId2, list, accountId) => list.map((p, i) => participantInput(p, provider, occurrenceId2, i, accountId)), "participantInputs");
|
|
2078
|
+
var sourceMeetingInput = /* @__PURE__ */ __name((m, accountId, participantsCount, kept) => {
|
|
2079
|
+
const startedAt = timestamp2(m.occurrence.startedAt);
|
|
2080
|
+
const given = m.occurrence.endedAt === null ? null : timestamp2(m.occurrence.endedAt);
|
|
2081
|
+
if (given !== null && given < startedAt)
|
|
2082
|
+
throw new Error("Meeting ends before it starts");
|
|
2083
|
+
const keptEnd = kept?.endedAt ?? null;
|
|
2084
|
+
const endedAt = given ?? (keptEnd !== null && keptEnd >= startedAt ? keptEnd : null);
|
|
2085
|
+
const count7 = participantsCount === null && kept ? kept.participantsCount : participantsCount;
|
|
2086
|
+
const metadata = kept?.metadata && m.metadata ? { ...kept.metadata, ...m.metadata } : m.metadata ?? kept?.metadata ?? null;
|
|
2087
|
+
const meeting2 = {
|
|
2088
|
+
accountId,
|
|
2089
|
+
externalId: m.occurrence.id,
|
|
2090
|
+
title: m.occurrence.title,
|
|
2091
|
+
description: m.description ?? kept?.description ?? null,
|
|
2092
|
+
location: m.location ?? kept?.location ?? null,
|
|
2093
|
+
joinUrl: m.joinUrl ?? m.series?.joinUrl ?? kept?.joinUrl ?? null,
|
|
2094
|
+
startedAt,
|
|
2095
|
+
endedAt,
|
|
2096
|
+
durationMs: endedAt === null ? null : endedAt - startedAt,
|
|
2097
|
+
timezone: m.timezone ?? kept?.timezone ?? null,
|
|
2098
|
+
hostIdentityId: kept?.hostIdentityId ?? null,
|
|
2099
|
+
...count7 === void 0 ? {} : { participantsCount: count7 },
|
|
2100
|
+
...m.call ? { direction: m.call.direction ?? null, clientPhone: m.call.clientPhone ?? null } : {},
|
|
2101
|
+
metadata,
|
|
2102
|
+
deletedAt: null
|
|
2103
|
+
};
|
|
2104
|
+
if (m.series)
|
|
2105
|
+
meeting2.series = {
|
|
2106
|
+
externalId: m.series.id,
|
|
2107
|
+
title: m.series.title,
|
|
2108
|
+
description: null,
|
|
2109
|
+
kind: m.series.kind ?? null,
|
|
2110
|
+
recurrence: m.series.recurrence ?? null,
|
|
2111
|
+
hostIdentityId: null,
|
|
2112
|
+
joinUrl: m.series.joinUrl ?? null,
|
|
2113
|
+
metadata: null,
|
|
2114
|
+
deletedAt: null
|
|
2115
|
+
};
|
|
2116
|
+
return meeting2;
|
|
2117
|
+
}, "sourceMeetingInput");
|
|
2118
|
+
var saveSourceMeeting = /* @__PURE__ */ __name(async (source, store, m, parts, { accountId, now, kept }) => {
|
|
2119
|
+
const id5 = m.occurrence.id;
|
|
2120
|
+
const { participants: sourceParticipants, transcript: lines, chat, summary } = parts;
|
|
2121
|
+
const participants = participantInputs(source.provider, id5, sourceParticipants ?? [], accountId);
|
|
2122
|
+
const meeting2 = sourceMeetingInput(m, accountId, sourceParticipants === void 0 ? void 0 : sourceParticipants?.length ?? null, kept);
|
|
2123
|
+
const linked = sourceParticipants !== void 0;
|
|
2124
|
+
const format = source.transcriptFormat ?? null;
|
|
2125
|
+
const transcripts = lines && linked ? [await transcriptInput(lines, participants, source.name, void 0, format)] : void 0;
|
|
2126
|
+
const details = await store.saveMeeting({
|
|
2127
|
+
meeting: meeting2,
|
|
2128
|
+
participants: sourceParticipants ? participants : void 0,
|
|
2129
|
+
transcripts,
|
|
2130
|
+
chat: chat?.map((line2) => ({
|
|
2131
|
+
externalId: null,
|
|
2132
|
+
sentAt: timestamp2(line2.sentAt),
|
|
2133
|
+
senderParticipantPosition: speakerPosition(line2.sender, participants),
|
|
2134
|
+
senderName: line2.sender,
|
|
2135
|
+
recipient: null,
|
|
2136
|
+
text: line2.text,
|
|
2137
|
+
normalizedText: null,
|
|
2138
|
+
metadata: null
|
|
2139
|
+
})),
|
|
2140
|
+
summaries: summary ? [
|
|
2141
|
+
{
|
|
2142
|
+
...summary,
|
|
2143
|
+
source: summary.source ?? source.name,
|
|
2144
|
+
content: summary.content ?? null,
|
|
2145
|
+
docUrl: summary.docUrl ?? null,
|
|
2146
|
+
externalCreatedAt: summary.externalCreatedAt ?? null,
|
|
2147
|
+
externalUpdatedAt: summary.externalUpdatedAt ?? null,
|
|
2148
|
+
metadata: summary.metadata ?? null
|
|
2149
|
+
}
|
|
2150
|
+
] : void 0,
|
|
2151
|
+
attachments: parts.files ?? void 0,
|
|
2152
|
+
documents: parts.documents ?? void 0,
|
|
2153
|
+
now
|
|
2154
|
+
});
|
|
2155
|
+
if (lines && !linked && !details.transcripts.some((t) => t.transcript.source === source.name && t.transcript.supersededAt === null))
|
|
2156
|
+
await store.saveMeeting({
|
|
2157
|
+
meeting: meeting2,
|
|
2158
|
+
transcripts: [await transcriptInput(lines, [], source.name, `${JSON.stringify(lines)}
|
|
2159
|
+
unlinked`, format)],
|
|
2160
|
+
now
|
|
2161
|
+
});
|
|
2162
|
+
await linkEvent(store, details, now, { create: source.createsEvents !== false });
|
|
2163
|
+
return details;
|
|
2164
|
+
}, "saveSourceMeeting");
|
|
2165
|
+
var startOf = /* @__PURE__ */ __name((m) => {
|
|
2166
|
+
const at = Date.parse(m.occurrence.startedAt);
|
|
2167
|
+
return Number.isFinite(at) ? at : Number.POSITIVE_INFINITY;
|
|
2168
|
+
}, "startOf");
|
|
2169
|
+
var indexSaved = /* @__PURE__ */ __name(async (store, accountIds, report) => {
|
|
2170
|
+
const indexSearch = store.indexSearch?.bind(store);
|
|
2171
|
+
if (!indexSearch || report.meetings === 0)
|
|
2172
|
+
return;
|
|
2173
|
+
for (const accountId of new Set(accountIds))
|
|
2174
|
+
try {
|
|
2175
|
+
await refreshMeetingIndex({ indexSearch }, accountId);
|
|
2176
|
+
} catch (error) {
|
|
2177
|
+
report.warnings.push({
|
|
2178
|
+
externalId: String(accountId),
|
|
2179
|
+
message: `search index not updated: ${error instanceof Error ? error.message : "failed"}`
|
|
2180
|
+
});
|
|
2181
|
+
}
|
|
2182
|
+
}, "indexSaved");
|
|
2183
|
+
var pull = /* @__PURE__ */ __name(async (source, store, options) => {
|
|
2184
|
+
const now = options.now ?? Date.now();
|
|
2185
|
+
for (const [name, ms2] of [
|
|
2186
|
+
["lookbackMs", options.lookbackMs ?? 0],
|
|
2187
|
+
["overlapMs", source.overlapMs ?? 0]
|
|
2188
|
+
])
|
|
2189
|
+
if (!Number.isSafeInteger(ms2) || ms2 < 0 || ms2 > 31 * 864e5)
|
|
2190
|
+
throw new Error(`${name} must be an integer from 0 through 31 days`);
|
|
2191
|
+
const lookbackMs = Math.max(options.lookbackMs ?? 0, source.overlapMs ?? 0);
|
|
2192
|
+
const cursor = options.rescan ? void 0 : await store.cursor(options.accountId);
|
|
2193
|
+
const since = options.since ?? cursor ?? new Date(now - 30 * 864e5).toISOString();
|
|
2194
|
+
timestamp2(since);
|
|
2195
|
+
const report = { meetings: 0, participants: 0, transcriptRows: 0, summaries: 0, warnings: [] };
|
|
2196
|
+
let failed = false;
|
|
2197
|
+
let firstFailed;
|
|
2198
|
+
const callers = /* @__PURE__ */ new Set();
|
|
2199
|
+
const linkCallers = /* @__PURE__ */ __name(async () => {
|
|
2200
|
+
if (callers.size === 0 || !store.linkCallers)
|
|
2201
|
+
return;
|
|
2202
|
+
try {
|
|
2203
|
+
await store.linkCallers(source.provider, [...callers]);
|
|
2204
|
+
} catch (error) {
|
|
2205
|
+
report.warnings.push({
|
|
2206
|
+
externalId: source.provider,
|
|
2207
|
+
message: `callers not linked to people: ${error instanceof Error ? error.message : "failed"}`
|
|
2208
|
+
});
|
|
2209
|
+
}
|
|
2210
|
+
}, "linkCallers");
|
|
2211
|
+
const from = timestamp2(since) - lookbackMs;
|
|
2212
|
+
const meetings = (await source.meetings(lookbackMs === 0 ? since : new Date(from).toISOString())).toSorted((a, b) => startOf(a) - startOf(b));
|
|
2213
|
+
for (const [index, m] of meetings.entries()) {
|
|
2214
|
+
const stop = options.budget?.take() ?? null;
|
|
2215
|
+
if (stop) {
|
|
2216
|
+
report.stopped = stop;
|
|
2217
|
+
report.remaining = meetings.length - index;
|
|
2218
|
+
const reached = Math.min(startOf(m), firstFailed ?? Number.POSITIVE_INFINITY);
|
|
2219
|
+
if (Number.isFinite(reached) && reached > timestamp2(since))
|
|
2220
|
+
await store.setCursor(options.accountId, new Date(reached).toISOString(), now);
|
|
2221
|
+
await linkCallers();
|
|
2222
|
+
return report;
|
|
2223
|
+
}
|
|
2224
|
+
const id5 = m.occurrence.id;
|
|
2225
|
+
const failedHere = /* @__PURE__ */ __name(() => {
|
|
2226
|
+
failed = true;
|
|
2227
|
+
firstFailed ??= startOf(m);
|
|
2228
|
+
}, "failedHere");
|
|
2229
|
+
const read = /* @__PURE__ */ __name(async (part, call) => {
|
|
2230
|
+
try {
|
|
2231
|
+
return await call();
|
|
2232
|
+
} catch (error) {
|
|
2233
|
+
failedHere();
|
|
2234
|
+
const message = error instanceof Error ? error.message : "could not be read";
|
|
2235
|
+
report.warnings.push({ externalId: id5, message: `${part}: ${message}` });
|
|
2236
|
+
return void 0;
|
|
2237
|
+
}
|
|
2238
|
+
}, "read");
|
|
2239
|
+
try {
|
|
2240
|
+
const sourceParticipants = await read("participants", () => source.participants(id5));
|
|
2241
|
+
const participants = participantInputs(source.provider, id5, sourceParticipants ?? [], options.accountId);
|
|
2242
|
+
const names = /* @__PURE__ */ new Map();
|
|
2243
|
+
for (const p of participants)
|
|
2244
|
+
if (p.displayName !== null) {
|
|
2245
|
+
const identities = names.get(p.displayName) ?? /* @__PURE__ */ new Set();
|
|
2246
|
+
identities.add(p.identity.externalId);
|
|
2247
|
+
names.set(p.displayName, identities);
|
|
2248
|
+
}
|
|
2249
|
+
if ([...names.values()].some((ids2) => ids2.size > 1))
|
|
2250
|
+
report.warnings.push({ externalId: id5, message: "Participant names are ambiguous" });
|
|
2251
|
+
const lines = await read("transcript", () => source.transcript(id5));
|
|
2252
|
+
const chat = await read("chat", () => source.chat(id5));
|
|
2253
|
+
const summary = await read("summary", () => source.summary(id5));
|
|
2254
|
+
const attachments = await read("files", () => source.files(id5));
|
|
2255
|
+
const listDocuments = source.documents?.bind(source);
|
|
2256
|
+
const documents = listDocuments ? await read("documents", () => listDocuments(id5)) : void 0;
|
|
2257
|
+
await saveSourceMeeting(source, store, m, { participants: sourceParticipants, transcript: lines, chat, summary, files: attachments, documents }, { accountId: options.accountId, now });
|
|
2258
|
+
for (const p of participants)
|
|
2259
|
+
if (p.identity.phone)
|
|
2260
|
+
callers.add(p.identity.externalId);
|
|
2261
|
+
report.meetings++;
|
|
2262
|
+
report.participants += participants.length;
|
|
2263
|
+
report.transcriptRows += lines?.length ?? 0;
|
|
2264
|
+
report.summaries += summary ? 1 : 0;
|
|
2265
|
+
} catch (error) {
|
|
2266
|
+
failedHere();
|
|
2267
|
+
report.warnings.push({ externalId: id5, message: error instanceof Error ? error.message : "Meeting pull failed" });
|
|
2268
|
+
}
|
|
2269
|
+
}
|
|
2270
|
+
await linkCallers();
|
|
2271
|
+
await indexSaved(store, [options.accountId], report);
|
|
2272
|
+
if (!failed)
|
|
2273
|
+
await store.setCursor(options.accountId, new Date(now).toISOString(), now);
|
|
2274
|
+
return report;
|
|
2275
|
+
}, "pull");
|
|
2276
|
+
|
|
2277
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/meetings/transcript-text.js
|
|
2045
2278
|
var TranscriptTextError = class extends Error {
|
|
2046
2279
|
static {
|
|
2047
2280
|
__name(this, "TranscriptTextError");
|
|
@@ -2096,7 +2329,7 @@ var parseTranscriptText = /* @__PURE__ */ __name((input) => {
|
|
|
2096
2329
|
return { header, lines };
|
|
2097
2330
|
}, "parseTranscriptText");
|
|
2098
2331
|
|
|
2099
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2332
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/meetings/vtt.js
|
|
2100
2333
|
var VttError = class extends Error {
|
|
2101
2334
|
static {
|
|
2102
2335
|
__name(this, "VttError");
|
|
@@ -2148,7 +2381,7 @@ var parseVtt = /* @__PURE__ */ __name((input) => {
|
|
|
2148
2381
|
return cues;
|
|
2149
2382
|
}, "parseVtt");
|
|
2150
2383
|
|
|
2151
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2384
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/meetings/import.js
|
|
2152
2385
|
var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now()) => {
|
|
2153
2386
|
const report = { meetings: 0, participants: 0, transcriptRows: 0, summaries: 0, warnings: [] };
|
|
2154
2387
|
for (const file of files) {
|
|
@@ -2174,6 +2407,7 @@ var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now())
|
|
|
2174
2407
|
});
|
|
2175
2408
|
}
|
|
2176
2409
|
}
|
|
2410
|
+
await indexSaved(store, files.map((file) => file.meeting.accountId), report);
|
|
2177
2411
|
const zones = new Set(files.map((file) => file.meeting.timezone).filter((zone2) => zone2 !== null && zone2 !== void 0));
|
|
2178
2412
|
const [zone] = zones;
|
|
2179
2413
|
if (zones.size === 1 && zone)
|
|
@@ -2181,10 +2415,10 @@ var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now())
|
|
|
2181
2415
|
return report;
|
|
2182
2416
|
}, "importFiles");
|
|
2183
2417
|
|
|
2184
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2418
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/meetings/links.js
|
|
2185
2419
|
var CHAT_MESSAGES_READ = 1e5;
|
|
2186
2420
|
|
|
2187
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2421
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/meetings/provider.js
|
|
2188
2422
|
var snapshotMeetingScope = /* @__PURE__ */ __name((scope3) => {
|
|
2189
2423
|
const provider = scope3?.provider;
|
|
2190
2424
|
const account = scope3?.account;
|
|
@@ -2193,7 +2427,7 @@ var snapshotMeetingScope = /* @__PURE__ */ __name((scope3) => {
|
|
|
2193
2427
|
return Object.freeze({ provider, account });
|
|
2194
2428
|
}, "snapshotMeetingScope");
|
|
2195
2429
|
|
|
2196
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2430
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/meetings/meeting-management.js
|
|
2197
2431
|
var MEETING_FIELD_KEYS = Object.freeze({
|
|
2198
2432
|
title: "title",
|
|
2199
2433
|
kind: "kind",
|
|
@@ -2429,7 +2663,7 @@ var createMeetingManagement = /* @__PURE__ */ __name((scope3, ports, options = {
|
|
|
2429
2663
|
};
|
|
2430
2664
|
}, "createMeetingManagement");
|
|
2431
2665
|
|
|
2432
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2666
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/meetings/meeting-context.js
|
|
2433
2667
|
var id2 = /* @__PURE__ */ __name((value) => {
|
|
2434
2668
|
if (typeof value !== "number" || !Number.isSafeInteger(value) || value < 1)
|
|
2435
2669
|
throw new CliError("validation_error", "meeting context identifiers must be positive integers");
|
|
@@ -2551,7 +2785,7 @@ var createMeetingContext = /* @__PURE__ */ __name((scope3, accountId, ports) =>
|
|
|
2551
2785
|
};
|
|
2552
2786
|
}, "createMeetingContext");
|
|
2553
2787
|
|
|
2554
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2788
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/meetings/passage.js
|
|
2555
2789
|
var meetingHitContextLimits = /* @__PURE__ */ __name((options = {}) => {
|
|
2556
2790
|
const { before = 3, after = 3, bytes = 65536, max_read_bytes = 4194304, expected_fingerprint } = options;
|
|
2557
2791
|
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)))
|
|
@@ -2572,7 +2806,7 @@ var validateMeetingPassage = /* @__PURE__ */ __name((reference2, options) => {
|
|
|
2572
2806
|
throw new CliError("validation_error", "choose a cue reference and json, text or markdown output");
|
|
2573
2807
|
}, "validateMeetingPassage");
|
|
2574
2808
|
|
|
2575
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2809
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/meetings/preparation-context.js
|
|
2576
2810
|
var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
|
|
2577
2811
|
if (!original || typeof original !== "object" || Array.isArray(original))
|
|
2578
2812
|
throw new CliError("validation_error", "meeting preparation context is required");
|
|
@@ -2597,7 +2831,7 @@ var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
|
|
|
2597
2831
|
return { ...input, limit, maxReadBytes };
|
|
2598
2832
|
}, "validateMeetingPreparationContext");
|
|
2599
2833
|
|
|
2600
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2834
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-answer.js
|
|
2601
2835
|
var count4 = pipe(number(), integer(), minValue(0));
|
|
2602
2836
|
var id3 = pipe(string(), minLength(1));
|
|
2603
2837
|
var meetingProjectEvidence = strictObject({
|
|
@@ -2718,7 +2952,7 @@ var meetingProjectEvidenceAnswer = /* @__PURE__ */ __name((page, prepared, comma
|
|
|
2718
2952
|
};
|
|
2719
2953
|
}, "meetingProjectEvidenceAnswer");
|
|
2720
2954
|
|
|
2721
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2955
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/meetings/search-validation.js
|
|
2722
2956
|
var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
|
|
2723
2957
|
const integer5 = /* @__PURE__ */ __name((value, low, high) => Number.isSafeInteger(value) && value >= low && value <= high, "integer");
|
|
2724
2958
|
if (typeof query !== "string" || !query.trim() || query.includes("\0") || new TextEncoder().encode(query).byteLength > 65536 || !integer5(options.limit ?? 100, 1, 1e3) || !integer5(options.maxReadBytes ?? 4194304, 1, 67108864) || [
|
|
@@ -2738,7 +2972,7 @@ var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
|
|
|
2738
2972
|
throw new CliError("validation_error", "choose one project selector and one tag or topic selector");
|
|
2739
2973
|
}, "validateMeetingHitSearch");
|
|
2740
2974
|
|
|
2741
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2975
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-query.js
|
|
2742
2976
|
var ids = {
|
|
2743
2977
|
meeting_id: "meetingId",
|
|
2744
2978
|
identity_id: "participantIdentityId",
|
|
@@ -2829,7 +3063,7 @@ var prepareMeetingProjectEvidence = /* @__PURE__ */ __name((project, request = {
|
|
|
2829
3063
|
return { project: project.trim(), options, query: frozen.join(" AND ") };
|
|
2830
3064
|
}, "prepareMeetingProjectEvidence");
|
|
2831
3065
|
|
|
2832
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3066
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/meetings/project-evidence.js
|
|
2833
3067
|
var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project, request = {}, now = Date.now()) => {
|
|
2834
3068
|
const prepared = prepareMeetingProjectEvidence(project, request, now);
|
|
2835
3069
|
const page = await read(prepared.project, prepared.options);
|
|
@@ -2837,208 +3071,7 @@ var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project, re
|
|
|
2837
3071
|
return meetingProjectEvidenceAnswer(page, prepared);
|
|
2838
3072
|
}, "readMeetingProjectEvidence");
|
|
2839
3073
|
|
|
2840
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2841
|
-
var participantInput = /* @__PURE__ */ __name((p, provider, occurrenceId2, position, accountId) => {
|
|
2842
|
-
const { identityExternalId, phone, ...fields2 } = p;
|
|
2843
|
-
const externalId = identityExternalId ?? (p.email ? `email:${p.email.toLowerCase()}` : p.externalId) ?? `name:${p.displayName ?? "unknown"}@${accountId}/${occurrenceId2}:${position}`;
|
|
2844
|
-
return {
|
|
2845
|
-
...fields2,
|
|
2846
|
-
identity: {
|
|
2847
|
-
provider,
|
|
2848
|
-
externalId,
|
|
2849
|
-
name: p.displayName,
|
|
2850
|
-
...phone?.trim() ? { phone } : {},
|
|
2851
|
-
metadata: p.metadata,
|
|
2852
|
-
associatePerson: Boolean(identityExternalId?.trim() || p.email?.trim() || p.externalId?.trim())
|
|
2853
|
-
}
|
|
2854
|
-
};
|
|
2855
|
-
}, "participantInput");
|
|
2856
|
-
var participantInputs = /* @__PURE__ */ __name((provider, occurrenceId2, list, accountId) => list.map((p, i) => participantInput(p, provider, occurrenceId2, i, accountId)), "participantInputs");
|
|
2857
|
-
var sourceMeetingInput = /* @__PURE__ */ __name((m, accountId, participantsCount, kept) => {
|
|
2858
|
-
const startedAt = timestamp2(m.occurrence.startedAt);
|
|
2859
|
-
const given = m.occurrence.endedAt === null ? null : timestamp2(m.occurrence.endedAt);
|
|
2860
|
-
if (given !== null && given < startedAt)
|
|
2861
|
-
throw new Error("Meeting ends before it starts");
|
|
2862
|
-
const keptEnd = kept?.endedAt ?? null;
|
|
2863
|
-
const endedAt = given ?? (keptEnd !== null && keptEnd >= startedAt ? keptEnd : null);
|
|
2864
|
-
const count7 = participantsCount === null && kept ? kept.participantsCount : participantsCount;
|
|
2865
|
-
const metadata = kept?.metadata && m.metadata ? { ...kept.metadata, ...m.metadata } : m.metadata ?? kept?.metadata ?? null;
|
|
2866
|
-
const meeting2 = {
|
|
2867
|
-
accountId,
|
|
2868
|
-
externalId: m.occurrence.id,
|
|
2869
|
-
title: m.occurrence.title,
|
|
2870
|
-
description: m.description ?? kept?.description ?? null,
|
|
2871
|
-
location: m.location ?? kept?.location ?? null,
|
|
2872
|
-
joinUrl: m.joinUrl ?? m.series?.joinUrl ?? kept?.joinUrl ?? null,
|
|
2873
|
-
startedAt,
|
|
2874
|
-
endedAt,
|
|
2875
|
-
durationMs: endedAt === null ? null : endedAt - startedAt,
|
|
2876
|
-
timezone: m.timezone ?? kept?.timezone ?? null,
|
|
2877
|
-
hostIdentityId: kept?.hostIdentityId ?? null,
|
|
2878
|
-
...count7 === void 0 ? {} : { participantsCount: count7 },
|
|
2879
|
-
...m.call ? { direction: m.call.direction ?? null, clientPhone: m.call.clientPhone ?? null } : {},
|
|
2880
|
-
metadata,
|
|
2881
|
-
deletedAt: null
|
|
2882
|
-
};
|
|
2883
|
-
if (m.series)
|
|
2884
|
-
meeting2.series = {
|
|
2885
|
-
externalId: m.series.id,
|
|
2886
|
-
title: m.series.title,
|
|
2887
|
-
description: null,
|
|
2888
|
-
kind: m.series.kind ?? null,
|
|
2889
|
-
recurrence: m.series.recurrence ?? null,
|
|
2890
|
-
hostIdentityId: null,
|
|
2891
|
-
joinUrl: m.series.joinUrl ?? null,
|
|
2892
|
-
metadata: null,
|
|
2893
|
-
deletedAt: null
|
|
2894
|
-
};
|
|
2895
|
-
return meeting2;
|
|
2896
|
-
}, "sourceMeetingInput");
|
|
2897
|
-
var saveSourceMeeting = /* @__PURE__ */ __name(async (source, store, m, parts, { accountId, now, kept }) => {
|
|
2898
|
-
const id5 = m.occurrence.id;
|
|
2899
|
-
const { participants: sourceParticipants, transcript: lines, chat, summary } = parts;
|
|
2900
|
-
const participants = participantInputs(source.provider, id5, sourceParticipants ?? [], accountId);
|
|
2901
|
-
const meeting2 = sourceMeetingInput(m, accountId, sourceParticipants === void 0 ? void 0 : sourceParticipants?.length ?? null, kept);
|
|
2902
|
-
const linked = sourceParticipants !== void 0;
|
|
2903
|
-
const format = source.transcriptFormat ?? null;
|
|
2904
|
-
const transcripts = lines && linked ? [await transcriptInput(lines, participants, source.name, void 0, format)] : void 0;
|
|
2905
|
-
const details = await store.saveMeeting({
|
|
2906
|
-
meeting: meeting2,
|
|
2907
|
-
participants: sourceParticipants ? participants : void 0,
|
|
2908
|
-
transcripts,
|
|
2909
|
-
chat: chat?.map((line2) => ({
|
|
2910
|
-
externalId: null,
|
|
2911
|
-
sentAt: timestamp2(line2.sentAt),
|
|
2912
|
-
senderParticipantPosition: speakerPosition(line2.sender, participants),
|
|
2913
|
-
senderName: line2.sender,
|
|
2914
|
-
recipient: null,
|
|
2915
|
-
text: line2.text,
|
|
2916
|
-
normalizedText: null,
|
|
2917
|
-
metadata: null
|
|
2918
|
-
})),
|
|
2919
|
-
summaries: summary ? [
|
|
2920
|
-
{
|
|
2921
|
-
...summary,
|
|
2922
|
-
source: summary.source ?? source.name,
|
|
2923
|
-
content: summary.content ?? null,
|
|
2924
|
-
docUrl: summary.docUrl ?? null,
|
|
2925
|
-
externalCreatedAt: summary.externalCreatedAt ?? null,
|
|
2926
|
-
externalUpdatedAt: summary.externalUpdatedAt ?? null,
|
|
2927
|
-
metadata: summary.metadata ?? null
|
|
2928
|
-
}
|
|
2929
|
-
] : void 0,
|
|
2930
|
-
attachments: parts.files ?? void 0,
|
|
2931
|
-
documents: parts.documents ?? void 0,
|
|
2932
|
-
now
|
|
2933
|
-
});
|
|
2934
|
-
if (lines && !linked && !details.transcripts.some((t) => t.transcript.source === source.name && t.transcript.supersededAt === null))
|
|
2935
|
-
await store.saveMeeting({
|
|
2936
|
-
meeting: meeting2,
|
|
2937
|
-
transcripts: [await transcriptInput(lines, [], source.name, `${JSON.stringify(lines)}
|
|
2938
|
-
unlinked`, format)],
|
|
2939
|
-
now
|
|
2940
|
-
});
|
|
2941
|
-
await linkEvent(store, details, now, { create: source.createsEvents !== false });
|
|
2942
|
-
return details;
|
|
2943
|
-
}, "saveSourceMeeting");
|
|
2944
|
-
var startOf = /* @__PURE__ */ __name((m) => {
|
|
2945
|
-
const at = Date.parse(m.occurrence.startedAt);
|
|
2946
|
-
return Number.isFinite(at) ? at : Number.POSITIVE_INFINITY;
|
|
2947
|
-
}, "startOf");
|
|
2948
|
-
var pull = /* @__PURE__ */ __name(async (source, store, options) => {
|
|
2949
|
-
const now = options.now ?? Date.now();
|
|
2950
|
-
for (const [name, ms2] of [
|
|
2951
|
-
["lookbackMs", options.lookbackMs ?? 0],
|
|
2952
|
-
["overlapMs", source.overlapMs ?? 0]
|
|
2953
|
-
])
|
|
2954
|
-
if (!Number.isSafeInteger(ms2) || ms2 < 0 || ms2 > 31 * 864e5)
|
|
2955
|
-
throw new Error(`${name} must be an integer from 0 through 31 days`);
|
|
2956
|
-
const lookbackMs = Math.max(options.lookbackMs ?? 0, source.overlapMs ?? 0);
|
|
2957
|
-
const cursor = options.rescan ? void 0 : await store.cursor(options.accountId);
|
|
2958
|
-
const since = options.since ?? cursor ?? new Date(now - 30 * 864e5).toISOString();
|
|
2959
|
-
timestamp2(since);
|
|
2960
|
-
const report = { meetings: 0, participants: 0, transcriptRows: 0, summaries: 0, warnings: [] };
|
|
2961
|
-
let failed = false;
|
|
2962
|
-
let firstFailed;
|
|
2963
|
-
const callers = /* @__PURE__ */ new Set();
|
|
2964
|
-
const linkCallers = /* @__PURE__ */ __name(async () => {
|
|
2965
|
-
if (callers.size === 0 || !store.linkCallers)
|
|
2966
|
-
return;
|
|
2967
|
-
try {
|
|
2968
|
-
await store.linkCallers(source.provider, [...callers]);
|
|
2969
|
-
} catch (error) {
|
|
2970
|
-
report.warnings.push({
|
|
2971
|
-
externalId: source.provider,
|
|
2972
|
-
message: `callers not linked to people: ${error instanceof Error ? error.message : "failed"}`
|
|
2973
|
-
});
|
|
2974
|
-
}
|
|
2975
|
-
}, "linkCallers");
|
|
2976
|
-
const from = timestamp2(since) - lookbackMs;
|
|
2977
|
-
const meetings = (await source.meetings(lookbackMs === 0 ? since : new Date(from).toISOString())).toSorted((a, b) => startOf(a) - startOf(b));
|
|
2978
|
-
for (const [index, m] of meetings.entries()) {
|
|
2979
|
-
const stop = options.budget?.take() ?? null;
|
|
2980
|
-
if (stop) {
|
|
2981
|
-
report.stopped = stop;
|
|
2982
|
-
report.remaining = meetings.length - index;
|
|
2983
|
-
const reached = Math.min(startOf(m), firstFailed ?? Number.POSITIVE_INFINITY);
|
|
2984
|
-
if (Number.isFinite(reached) && reached > timestamp2(since))
|
|
2985
|
-
await store.setCursor(options.accountId, new Date(reached).toISOString(), now);
|
|
2986
|
-
await linkCallers();
|
|
2987
|
-
return report;
|
|
2988
|
-
}
|
|
2989
|
-
const id5 = m.occurrence.id;
|
|
2990
|
-
const failedHere = /* @__PURE__ */ __name(() => {
|
|
2991
|
-
failed = true;
|
|
2992
|
-
firstFailed ??= startOf(m);
|
|
2993
|
-
}, "failedHere");
|
|
2994
|
-
const read = /* @__PURE__ */ __name(async (part, call) => {
|
|
2995
|
-
try {
|
|
2996
|
-
return await call();
|
|
2997
|
-
} catch (error) {
|
|
2998
|
-
failedHere();
|
|
2999
|
-
const message = error instanceof Error ? error.message : "could not be read";
|
|
3000
|
-
report.warnings.push({ externalId: id5, message: `${part}: ${message}` });
|
|
3001
|
-
return void 0;
|
|
3002
|
-
}
|
|
3003
|
-
}, "read");
|
|
3004
|
-
try {
|
|
3005
|
-
const sourceParticipants = await read("participants", () => source.participants(id5));
|
|
3006
|
-
const participants = participantInputs(source.provider, id5, sourceParticipants ?? [], options.accountId);
|
|
3007
|
-
const names = /* @__PURE__ */ new Map();
|
|
3008
|
-
for (const p of participants)
|
|
3009
|
-
if (p.displayName !== null) {
|
|
3010
|
-
const identities = names.get(p.displayName) ?? /* @__PURE__ */ new Set();
|
|
3011
|
-
identities.add(p.identity.externalId);
|
|
3012
|
-
names.set(p.displayName, identities);
|
|
3013
|
-
}
|
|
3014
|
-
if ([...names.values()].some((ids2) => ids2.size > 1))
|
|
3015
|
-
report.warnings.push({ externalId: id5, message: "Participant names are ambiguous" });
|
|
3016
|
-
const lines = await read("transcript", () => source.transcript(id5));
|
|
3017
|
-
const chat = await read("chat", () => source.chat(id5));
|
|
3018
|
-
const summary = await read("summary", () => source.summary(id5));
|
|
3019
|
-
const attachments = await read("files", () => source.files(id5));
|
|
3020
|
-
const listDocuments = source.documents?.bind(source);
|
|
3021
|
-
const documents = listDocuments ? await read("documents", () => listDocuments(id5)) : void 0;
|
|
3022
|
-
await saveSourceMeeting(source, store, m, { participants: sourceParticipants, transcript: lines, chat, summary, files: attachments, documents }, { accountId: options.accountId, now });
|
|
3023
|
-
for (const p of participants)
|
|
3024
|
-
if (p.identity.phone)
|
|
3025
|
-
callers.add(p.identity.externalId);
|
|
3026
|
-
report.meetings++;
|
|
3027
|
-
report.participants += participants.length;
|
|
3028
|
-
report.transcriptRows += lines?.length ?? 0;
|
|
3029
|
-
report.summaries += summary ? 1 : 0;
|
|
3030
|
-
} catch (error) {
|
|
3031
|
-
failedHere();
|
|
3032
|
-
report.warnings.push({ externalId: id5, message: error instanceof Error ? error.message : "Meeting pull failed" });
|
|
3033
|
-
}
|
|
3034
|
-
}
|
|
3035
|
-
await linkCallers();
|
|
3036
|
-
if (!failed)
|
|
3037
|
-
await store.setCursor(options.accountId, new Date(now).toISOString(), now);
|
|
3038
|
-
return report;
|
|
3039
|
-
}, "pull");
|
|
3040
|
-
|
|
3041
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/meetings/read-answers.js
|
|
3074
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/meetings/read-answers.js
|
|
3042
3075
|
var text4 = string();
|
|
3043
3076
|
var count5 = pipe(number(), integer(), minValue(0));
|
|
3044
3077
|
var id4 = pipe(number(), integer(), minValue(1));
|
|
@@ -3302,7 +3335,7 @@ var eventItem = /* @__PURE__ */ __name((one) => ({
|
|
|
3302
3335
|
updated_at: new Date(one.updatedAt).toISOString()
|
|
3303
3336
|
}), "eventItem");
|
|
3304
3337
|
|
|
3305
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3338
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/meetings/read-through.js
|
|
3306
3339
|
var MEETING_SERVER_BOUNDS = { calls: 3, pages: 2 };
|
|
3307
3340
|
var ISSUES = {
|
|
3308
3341
|
offline: ["permission_error", "meetings.server-offline"],
|
|
@@ -3445,14 +3478,17 @@ var askServerForList = /* @__PURE__ */ __name(async (source, store, accountId, q
|
|
|
3445
3478
|
for (const call of asked) {
|
|
3446
3479
|
let cursor = null;
|
|
3447
3480
|
for (let page = 0; page < MEETING_SERVER_BOUNDS.pages; page++) {
|
|
3481
|
+
access.signal?.throwIfAborted();
|
|
3448
3482
|
step.report.calls += 1;
|
|
3449
3483
|
let answer;
|
|
3450
3484
|
try {
|
|
3451
|
-
answer = await source.find(call.window, call.terms, cursor);
|
|
3485
|
+
answer = await source.find(call.window, call.terms, cursor, access.signal);
|
|
3452
3486
|
} catch (error) {
|
|
3487
|
+
access.signal?.throwIfAborted();
|
|
3453
3488
|
return skip(reasonOf(error), error);
|
|
3454
3489
|
}
|
|
3455
3490
|
for (const found of answer.meetings) {
|
|
3491
|
+
access.signal?.throwIfAborted();
|
|
3456
3492
|
if (seen.has(found.meeting.occurrence.id))
|
|
3457
3493
|
continue;
|
|
3458
3494
|
seen.add(found.meeting.occurrence.id);
|
|
@@ -3577,11 +3613,13 @@ var meetingShowThrough = /* @__PURE__ */ __name(async (source, store, accountId,
|
|
|
3577
3613
|
return fromStore("unsupported");
|
|
3578
3614
|
if (access.offline)
|
|
3579
3615
|
return fromStore("offline");
|
|
3616
|
+
access.signal?.throwIfAborted();
|
|
3580
3617
|
step.report.calls = 1;
|
|
3581
3618
|
let full;
|
|
3582
3619
|
try {
|
|
3583
|
-
full = await source.get(providerId);
|
|
3620
|
+
full = await source.get(providerId, access.signal);
|
|
3584
3621
|
} catch (error) {
|
|
3622
|
+
access.signal?.throwIfAborted();
|
|
3585
3623
|
return fromStore(reasonOf(error), error);
|
|
3586
3624
|
}
|
|
3587
3625
|
if (!full) {
|
|
@@ -3594,10 +3632,10 @@ var meetingShowThrough = /* @__PURE__ */ __name(async (source, store, accountId,
|
|
|
3594
3632
|
return { details: fresh, foundIn: step.found.get(details.meeting.id) ?? "server", server: step.report };
|
|
3595
3633
|
}, "meetingShowThrough");
|
|
3596
3634
|
|
|
3597
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3635
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/meetings/recording-schedule.js
|
|
3598
3636
|
import { createHash as createHash3 } from "node:crypto";
|
|
3599
3637
|
|
|
3600
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3638
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/meetings/recording-sync.js
|
|
3601
3639
|
var RecordingSyncError = class extends CliError {
|
|
3602
3640
|
static {
|
|
3603
3641
|
__name(this, "RecordingSyncError");
|
|
@@ -3918,7 +3956,7 @@ async function* syncRecordingArchive(catalog, input) {
|
|
|
3918
3956
|
}
|
|
3919
3957
|
__name(syncRecordingArchive, "syncRecordingArchive");
|
|
3920
3958
|
|
|
3921
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3959
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/meetings/recording-schedule.js
|
|
3922
3960
|
var fail2 = /* @__PURE__ */ __name((message) => {
|
|
3923
3961
|
throw new CliError("validation_error", message);
|
|
3924
3962
|
}, "fail");
|
|
@@ -4025,7 +4063,7 @@ var installRecordingArchiveSchedule = /* @__PURE__ */ __name(async (scheduler, v
|
|
|
4025
4063
|
return { applied: true, backend, schedule };
|
|
4026
4064
|
}, "installRecordingArchiveSchedule");
|
|
4027
4065
|
|
|
4028
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4066
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/meetings/recording-transfer.js
|
|
4029
4067
|
var RecordingTransferError = class extends CliError {
|
|
4030
4068
|
static {
|
|
4031
4069
|
__name(this, "RecordingTransferError");
|
|
@@ -4190,7 +4228,7 @@ var transferRecording = /* @__PURE__ */ __name(async (source, storage, options)
|
|
|
4190
4228
|
}
|
|
4191
4229
|
}, "transferRecording");
|
|
4192
4230
|
|
|
4193
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4231
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/meetings/related-history.js
|
|
4194
4232
|
var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
|
|
4195
4233
|
if (!original || typeof original !== "object" || Array.isArray(original))
|
|
4196
4234
|
throw new CliError("validation_error", "related history request is required");
|
|
@@ -4220,7 +4258,7 @@ var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
|
|
|
4220
4258
|
return { ...input, anchorIds: [...new Set(input.anchorIds)], limit, maxReadBytes };
|
|
4221
4259
|
}, "validateMeetingRelatedHistory");
|
|
4222
4260
|
|
|
4223
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4261
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/meetings/result-items.js
|
|
4224
4262
|
var text7 = string();
|
|
4225
4263
|
var identifier = pipe(text7, minLength(1));
|
|
4226
4264
|
var nullableText2 = nullable(text7);
|
|
@@ -4392,15 +4430,15 @@ var MEETING_RESULT_ENTITIES = {
|
|
|
4392
4430
|
meeting_repair: repair
|
|
4393
4431
|
};
|
|
4394
4432
|
|
|
4395
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4433
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/meetings/review.js
|
|
4396
4434
|
var REVIEW_LIMIT = { default: 50, most: 200 };
|
|
4397
4435
|
|
|
4398
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4436
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/meetings/save-hints.js
|
|
4399
4437
|
var SAVE_INSTRUCTION = "If this shows something worth keeping \u2014 a decision, a promise, a preference \u2014 and memo's server is connected, propose it with facts_add or memories_add, citing the msg: locator or meeting: reference. Otherwise skip this.";
|
|
4400
4438
|
var SAVE_HELP = `Worth keeping \u2014 a decision, a promise, a preference? Record it with \`memo facts add\` or
|
|
4401
4439
|
\`memo memories add\`, citing the msg: locator or meeting: reference as --evidence.`;
|
|
4402
4440
|
|
|
4403
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4441
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/meetings/series-history.js
|
|
4404
4442
|
var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
|
|
4405
4443
|
input.signal?.throwIfAborted();
|
|
4406
4444
|
if (!Number.isSafeInteger(input.accountId) || input.accountId <= 0)
|
|
@@ -4421,10 +4459,10 @@ var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
|
|
|
4421
4459
|
return { ...input, limit, maxReadBytes };
|
|
4422
4460
|
}, "validateMeetingSeriesHistory");
|
|
4423
4461
|
|
|
4424
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4462
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/meetings/series-inventory-validation.js
|
|
4425
4463
|
import { createHash as createHash4 } from "node:crypto";
|
|
4426
4464
|
|
|
4427
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4465
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/meetings/upcoming-validation.js
|
|
4428
4466
|
var invalid4 = /* @__PURE__ */ __name((field) => {
|
|
4429
4467
|
throw new CliError("invalid_response", `meeting occurrence ${field} is invalid`);
|
|
4430
4468
|
}, "invalid");
|
|
@@ -4493,7 +4531,7 @@ var readOccurrenceSchedule = /* @__PURE__ */ __name((input, meetingId, limit, ma
|
|
|
4493
4531
|
return result;
|
|
4494
4532
|
}, "readOccurrenceSchedule");
|
|
4495
4533
|
|
|
4496
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4534
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/meetings/series-inventory-validation.js
|
|
4497
4535
|
var inventoryHash = /* @__PURE__ */ __name((value) => createHash4("sha256").update(JSON.stringify(value)).digest("hex"), "inventoryHash");
|
|
4498
4536
|
var inventorySize = /* @__PURE__ */ __name((value) => Buffer.byteLength(JSON.stringify(value), "utf8"), "inventorySize");
|
|
4499
4537
|
function invalid5(field, response = false) {
|
|
@@ -4581,7 +4619,7 @@ var inventoryPage = /* @__PURE__ */ __name((scope3, request, page) => {
|
|
|
4581
4619
|
return { items, selection: page.coverage.selection, partial: page.coverage.partial, nextCursor: page.nextCursor };
|
|
4582
4620
|
}, "inventoryPage");
|
|
4583
4621
|
|
|
4584
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4622
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/meetings/series-inventory.js
|
|
4585
4623
|
var cancelled3 = /* @__PURE__ */ __name((signal) => {
|
|
4586
4624
|
if (signal?.aborted)
|
|
4587
4625
|
throw new CliError("cancelled", "meeting inventory reading was cancelled");
|
|
@@ -4637,7 +4675,7 @@ var createMeetingSeriesInventoryReader = /* @__PURE__ */ __name((scope3, port) =
|
|
|
4637
4675
|
};
|
|
4638
4676
|
}, "createMeetingSeriesInventoryReader");
|
|
4639
4677
|
|
|
4640
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4678
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/meetings/tag-answers.js
|
|
4641
4679
|
var text8 = string();
|
|
4642
4680
|
var storeId = pipe(number(), integer(), minValue(1));
|
|
4643
4681
|
var meetingTagChange = strictObject({
|
|
@@ -4675,7 +4713,7 @@ var meetingTaggingItem = /* @__PURE__ */ __name((one) => ({
|
|
|
4675
4713
|
untrusted: ["title"]
|
|
4676
4714
|
}), "meetingTaggingItem");
|
|
4677
4715
|
|
|
4678
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4716
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/meetings/transcription.js
|
|
4679
4717
|
var bounded = /* @__PURE__ */ __name((value, max, name) => {
|
|
4680
4718
|
if (!Number.isSafeInteger(value) || value < 1 || value > max)
|
|
4681
4719
|
throw new CliError("validation_error", `${name} must be an integer from 1 to ${max}`);
|
|
@@ -4829,7 +4867,7 @@ var transcribeMeeting = /* @__PURE__ */ __name(async (source, store, target, opt
|
|
|
4829
4867
|
};
|
|
4830
4868
|
}, "transcribeMeeting");
|
|
4831
4869
|
|
|
4832
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4870
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/meetings/upcoming.js
|
|
4833
4871
|
var cancelled5 = /* @__PURE__ */ __name((signal) => {
|
|
4834
4872
|
if (!signal?.aborted)
|
|
4835
4873
|
return;
|
|
@@ -4899,7 +4937,7 @@ var createUpcomingMeetingReader = /* @__PURE__ */ __name((scope3, port) => {
|
|
|
4899
4937
|
};
|
|
4900
4938
|
}, "createUpcomingMeetingReader");
|
|
4901
4939
|
|
|
4902
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4940
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/meetings/watch.js
|
|
4903
4941
|
var sleep = /* @__PURE__ */ __name((milliseconds2, signal) => new Promise((resolve) => {
|
|
4904
4942
|
const finish = /* @__PURE__ */ __name(() => {
|
|
4905
4943
|
clearTimeout(timer);
|
|
@@ -5033,6 +5071,9 @@ export {
|
|
|
5033
5071
|
parseMeetingQuery,
|
|
5034
5072
|
meetingWordsQuery,
|
|
5035
5073
|
transcriptLanguage,
|
|
5074
|
+
refreshMeetingIndex,
|
|
5075
|
+
saveSourceMeeting,
|
|
5076
|
+
pull,
|
|
5036
5077
|
TranscriptTextError,
|
|
5037
5078
|
parseTranscriptText,
|
|
5038
5079
|
VttError,
|
|
@@ -5061,8 +5102,6 @@ export {
|
|
|
5061
5102
|
MEETING_PROJECT_EVIDENCE_QUERY,
|
|
5062
5103
|
prepareMeetingProjectEvidence,
|
|
5063
5104
|
readMeetingProjectEvidence,
|
|
5064
|
-
saveSourceMeeting,
|
|
5065
|
-
pull,
|
|
5066
5105
|
meetingReview,
|
|
5067
5106
|
meetingReviewItem,
|
|
5068
5107
|
meetingLink,
|