@wirecat/drive-cli 0.70.0 → 0.72.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 +150 -70
- package/contracts/wirecat.json +77 -8
- package/dist/bin/drive.js +2 -2
- package/dist/bundle/agent-23OB2NZP.js +46 -0
- package/dist/bundle/{all-profiles-FW3GK3QO.js → all-profiles-GXGDVNQJ.js} +67 -25
- package/dist/bundle/{anthropic-QVKJT3II.js → anthropic-H5C4GQHC.js} +9 -9
- package/dist/bundle/{app-server-QU73RD5R.js → app-server-EQ3UK4C7.js} +97 -79
- package/dist/bundle/{bun-5XCD5CBB.js → bun-DTJVSRY3.js} +2 -2
- package/dist/bundle/{bun-sqlite-TIGSVNSV.js → bun-sqlite-JIFY7MAE.js} +9 -9
- package/dist/bundle/chunk-2Q325BBD.js +353 -0
- package/dist/bundle/chunk-35FIJGTT.js +52 -0
- package/dist/bundle/{chunk-7C5KENNU.js → chunk-3FRQ6V4T.js} +3 -3
- package/dist/bundle/chunk-47L262VI.js +340 -0
- package/dist/bundle/chunk-4HP6KGBI.js +32 -0
- package/dist/bundle/{chunk-GA3URWIF.js → chunk-4HPXWYTE.js} +1 -1
- package/dist/bundle/{chunk-HYXXMSVD.js → chunk-4IUNYYYL.js} +4473 -2685
- package/dist/bundle/{chunk-FYPW7NMH.js → chunk-4JS32SRX.js} +64 -4
- package/dist/bundle/chunk-4ZAQMDLD.js +1308 -0
- package/dist/bundle/chunk-4ZTB7LS3.js +87 -0
- package/dist/bundle/{chunk-SONPLYV7.js → chunk-55FH6IEL.js} +5 -5
- package/dist/bundle/{chunk-VVN6GHAZ.js → chunk-5BNMWSU2.js} +659 -255
- package/dist/bundle/{chunk-FVTKFIQH.js → chunk-5H747A76.js} +5496 -3195
- package/dist/bundle/{chunk-PR7XD2DI.js → chunk-5KWCO56H.js} +2 -2
- package/dist/bundle/{chunk-3AHBZP33.js → chunk-5U3NCE5R.js} +35 -12
- package/dist/bundle/{chunk-HRATXUFH.js → chunk-6CCO3JCM.js} +31 -22
- package/dist/bundle/{chunk-RLNZ7NX5.js → chunk-6ZW2ZJYC.js} +2 -2
- package/dist/bundle/{chunk-RQNRYF6D.js → chunk-75DAHQOV.js} +3 -3
- package/dist/bundle/{chunk-7QSRODXM.js → chunk-77OBW43F.js} +6 -6
- package/dist/bundle/{chunk-GV5DGHSA.js → chunk-7EFM6AW3.js} +4 -4
- package/dist/bundle/{chunk-BXPC5TFG.js → chunk-A3S7QM5L.js} +3 -3
- package/dist/bundle/{chunk-IGNIUDI3.js → chunk-AA4LKC6W.js} +251 -565
- package/dist/bundle/chunk-ASTKHB6B.js +3233 -0
- package/dist/bundle/{chunk-3TCMANIM.js → chunk-BM6V7456.js} +8 -227
- package/dist/bundle/chunk-BO6EDBYJ.js +50 -0
- package/dist/bundle/{chunk-F5KJWRF5.js → chunk-BPA3R4KN.js} +2 -100
- package/dist/bundle/chunk-CIFE4KPX.js +2159 -0
- package/dist/bundle/chunk-CKB4XZZJ.js +730 -0
- package/dist/bundle/{chunk-YCL3SK4T.js → chunk-COJTCEZP.js} +113 -860
- package/dist/bundle/{chunk-BD2K2ONK.js → chunk-CWPYDT73.js} +6 -6
- package/dist/bundle/{chunk-6BMTW5A6.js → chunk-D4JNCXS7.js} +9 -9
- package/dist/bundle/chunk-DCPWZIOV.js +696 -0
- package/dist/bundle/{chunk-P7PLKNPX.js → chunk-DHMNCOQI.js} +415 -272
- package/dist/bundle/chunk-DOQMH4DC.js +280 -0
- package/dist/bundle/chunk-DQSOYH6N.js +20 -0
- package/dist/bundle/{chunk-ML3R2UHV.js → chunk-DWRUOLBF.js} +4 -4
- package/dist/bundle/{chunk-5JTB4URG.js → chunk-E3VWZC3K.js} +14 -13
- package/dist/bundle/chunk-ECYOTDJM.js +14 -0
- package/dist/bundle/{chunk-7IBENBCK.js → chunk-EVG3AA5M.js} +2 -2
- package/dist/bundle/chunk-F4BX7TH2.js +15 -0
- package/dist/bundle/{chunk-FCSHWUMW.js → chunk-FBEZSA76.js} +5 -5
- package/dist/bundle/{chunk-RHSBXOQM.js → chunk-FBQJN74J.js} +1 -1
- package/dist/bundle/{chunk-4WK26MPY.js → chunk-FIZOPJYY.js} +1 -1
- package/dist/bundle/chunk-FNAYSZWK.js +783 -0
- package/dist/bundle/{chunk-LINBDWJK.js → chunk-FRCJHGZM.js} +2 -2
- package/dist/bundle/{chunk-RCTOWLCD.js → chunk-FTG5QBSD.js} +41 -33
- package/dist/bundle/{chunk-ABZ2NYDT.js → chunk-FUDUXIVG.js} +1 -1
- package/dist/bundle/{chunk-NYECVHFH.js → chunk-G4NHRFS7.js} +755 -0
- package/dist/bundle/{chunk-PAPY6Q6H.js → chunk-GIEZYBRC.js} +1 -1
- package/dist/bundle/chunk-GTPPUBYU.js +1876 -0
- package/dist/bundle/chunk-GU6ICH53.js +108 -0
- package/dist/bundle/{chunk-REM5WHHQ.js → chunk-GUMKKRE6.js} +107 -71
- package/dist/bundle/{chunk-QBAOIMVB.js → chunk-GWCDOYSC.js} +1 -1
- package/dist/bundle/{chunk-HHAZ6DCY.js → chunk-GXGSC622.js} +69 -7
- package/dist/bundle/chunk-HAGXTGJC.js +188 -0
- package/dist/bundle/{chunk-TNKQDS5A.js → chunk-IMAWQC5K.js} +6 -6
- package/dist/bundle/{chunk-ZHZYGY5R.js → chunk-IVGVVSPW.js} +4 -4
- package/dist/bundle/{chunk-EDO5LZVF.js → chunk-J4NUHSM7.js} +1 -1
- package/dist/bundle/{chunk-DVVUJ254.js → chunk-K652FYCO.js} +6 -6
- package/dist/bundle/chunk-K6ZWNTXY.js +561 -0
- package/dist/bundle/{chunk-FONIFRYI.js → chunk-KF3ZBQJV.js} +4 -4
- package/dist/bundle/chunk-KFZCHJRT.js +80 -0
- package/dist/bundle/chunk-KLPFDFLI.js +221 -0
- package/dist/bundle/{chunk-LMJBQFW6.js → chunk-KP2XMCNT.js} +13 -13
- package/dist/bundle/{chunk-FADAOLGB.js → chunk-KWDZ3KVH.js} +4 -4
- package/dist/bundle/{chunk-MXNQZAJQ.js → chunk-KX4C32WD.js} +2 -2
- package/dist/bundle/chunk-L7P3LUDQ.js +286 -0
- package/dist/bundle/{chunk-ILAQIBEO.js → chunk-M2ZWYVWO.js} +1 -1
- package/dist/bundle/chunk-MEYYH47C.js +25 -0
- package/dist/bundle/{chunk-ZCXWV4XO.js → chunk-ML2QIWX2.js} +4 -4
- package/dist/bundle/{chunk-XOL346TJ.js → chunk-MUFF2YTH.js} +2 -2
- package/dist/bundle/{chunk-GAHIHE4K.js → chunk-N24YSLED.js} +9166 -9751
- package/dist/bundle/chunk-N4GTCPML.js +7 -0
- package/dist/bundle/{chunk-DVI72ZQG.js → chunk-NBMGDRP4.js} +1 -1
- package/dist/bundle/chunk-NMQRSEZM.js +37 -0
- package/dist/bundle/{chunk-I7YSHUPW.js → chunk-NNGA4QDR.js} +13 -26
- package/dist/bundle/{chunk-5DPV7X27.js → chunk-NTZWY5R3.js} +321 -0
- package/dist/bundle/chunk-O7CZZ36M.js +80 -0
- package/dist/bundle/{chunk-HWUPU6WX.js → chunk-OAONP6KI.js} +13 -9
- package/dist/bundle/{chunk-3CHW7JGR.js → chunk-OESP4PHB.js} +17 -17
- package/dist/bundle/chunk-OHR6IZNH.js +116 -0
- package/dist/bundle/{chunk-54NDYVZA.js → chunk-OLCU7Q2B.js} +1 -1
- package/dist/bundle/{chunk-FN3RXBO7.js → chunk-OLDQLEPA.js} +6 -6
- package/dist/bundle/{chunk-7DJNURKV.js → chunk-OPIPG6AP.js} +16 -9
- package/dist/bundle/{chunk-5D4AEUVA.js → chunk-PL5P7UKW.js} +434 -1
- package/dist/bundle/chunk-PRYMT3OG.js +30 -0
- package/dist/bundle/chunk-QDUIVMEW.js +36 -0
- package/dist/bundle/{chunk-66PL7P4C.js → chunk-QKBPCX7Y.js} +1 -1
- package/dist/bundle/{chunk-PN4JYURZ.js → chunk-QSLOACDT.js} +201 -423
- package/dist/bundle/{chunk-3UWRAIWA.js → chunk-QUZFDU4K.js} +4 -4
- package/dist/bundle/{chunk-KSJAFMU5.js → chunk-R32DHS6J.js} +211 -380
- package/dist/bundle/{chunk-2SBC4DVV.js → chunk-R57QUYBG.js} +6 -28
- package/dist/bundle/{chunk-IFTX7AQU.js → chunk-R64OSDOD.js} +45 -66
- package/dist/bundle/{chunk-WJK6KTCS.js → chunk-RSPBVKOC.js} +8 -8
- package/dist/bundle/{chunk-GPDPEHYX.js → chunk-SPNPJ3FZ.js} +3 -4
- package/dist/bundle/chunk-SQHDSIFL.js +388 -0
- package/dist/bundle/{chunk-XZBA6FVH.js → chunk-ST35FIUG.js} +3 -3
- package/dist/bundle/{chunk-37MAA6F2.js → chunk-STUPCKAA.js} +11 -2221
- package/dist/bundle/chunk-SZ7XJZGH.js +2231 -0
- package/dist/bundle/chunk-TRYYWV7J.js +291 -0
- package/dist/bundle/{chunk-OY7TNUEC.js → chunk-TTPWKTVR.js} +1 -1
- package/dist/bundle/{chunk-3UZ4OH22.js → chunk-U7VEJ3CW.js} +49 -129
- package/dist/bundle/{chunk-6Y2BYFXQ.js → chunk-UC7JLE6J.js} +0 -7
- package/dist/bundle/{chunk-HK225DAG.js → chunk-UIQ35CA5.js} +1 -1
- package/dist/bundle/{chunk-GK3BJMGK.js → chunk-UJY26HW4.js} +1 -1
- package/dist/bundle/{chunk-EG62WVR2.js → chunk-UWG3PRY7.js} +9 -60
- package/dist/bundle/{chunk-BBRMDMIR.js → chunk-VAR3MJU6.js} +3 -3
- package/dist/bundle/{chunk-GJZSVSV3.js → chunk-VPQSI5IU.js} +4 -4
- package/dist/bundle/{chunk-YZPE72GE.js → chunk-VQPT3Y7W.js} +12 -12
- package/dist/bundle/{chunk-T5D4OGDC.js → chunk-WMG3H2VK.js} +2 -2
- package/dist/bundle/{chunk-6DPOWBKA.js → chunk-X5BGAZC5.js} +6 -6
- package/dist/bundle/{chunk-DHX27E5M.js → chunk-XC6TRWLZ.js} +3 -3
- package/dist/bundle/{chunk-Q5C6YKAY.js → chunk-XQZEMRCU.js} +402 -402
- package/dist/bundle/{chunk-54BQWRJL.js → chunk-XZ7MO6EU.js} +7 -7
- package/dist/bundle/{chunk-TGS5VPJD.js → chunk-YAIOEPKU.js} +341 -433
- package/dist/bundle/chunk-YHWFF6DN.js +39 -0
- package/dist/bundle/{chunk-WWE5GO6G.js → chunk-YWOLQEDV.js} +16 -3
- package/dist/bundle/{chunk-DR57KDAY.js → chunk-ZFDSJ5YJ.js} +38 -8
- package/dist/bundle/{chunk-BBFXQPKD.js → chunk-ZFUZEFU6.js} +3 -3
- package/dist/bundle/{chunk-YRUR3E3E.js → chunk-ZJKXSMXK.js} +72 -59
- package/dist/bundle/{chunk-BFKFKDPC.js → chunk-ZKWT6HXT.js} +1 -1
- package/dist/bundle/chunk-ZPUY3COZ.js +250 -0
- package/dist/bundle/{cli-K4D4DIGQ.js → cli-2P5FW2RL.js} +201 -98
- package/dist/bundle/command-contract-BMQT2G5X.js +45 -0
- package/dist/bundle/{command-server-entry-WREK3QBB.js → command-server-entry-KP2UDGLA.js} +36 -34
- package/dist/bundle/{decode-SEETPKBH.js → decode-K2JZ5D6V.js} +10 -10
- package/dist/bundle/{dispatch-SQCEURVK.js → dispatch-KOQZA74A.js} +10 -10
- package/dist/bundle/dist-PAKDDIBT.js +191 -0
- package/dist/bundle/drive.js +11 -11
- package/dist/bundle/{echarts-WZ5RKFCX.js → echarts-URO3QGCG.js} +2 -2
- package/dist/bundle/{embed-B2UCRZZR.js → embed-JLIPWTNN.js} +10 -10
- package/dist/bundle/{embedder-4R6Z7G7L.js → embedder-LUTDO3HS.js} +15 -15
- package/dist/bundle/entry-AVF6LMG7.js +25 -0
- package/dist/bundle/{failure-CYNXH3RQ.js → failure-GJMQLM7O.js} +4 -4
- package/dist/bundle/first-run-VYTIEUDA.js +31 -0
- package/dist/bundle/first-screen-QVZPF7KL.js +45 -0
- package/dist/bundle/google-VX7IPACN.js +46 -0
- package/dist/bundle/{google-api-SAND2F7L.js → google-api-RFXKRLL4.js} +88 -73
- package/dist/bundle/grants-4XWJFVD6.js +133 -0
- package/dist/bundle/hast-util-from-html-X2DCPS3T.js +10531 -0
- package/dist/bundle/hast-util-to-html-VP6XLPKJ.js +998 -0
- package/dist/bundle/hast-util-to-mdast-IZ5PRX72.js +2272 -0
- package/dist/bundle/{identity-JVVGS4U6.js → identity-FXPB5EMT.js} +7 -6
- package/dist/bundle/{instructions-JSMTSB22.js → instructions-IROIUVZI.js} +1 -1
- package/dist/bundle/{login-6WG3YBDU.js → login-WIY5VQU7.js} +96 -81
- package/dist/bundle/{mcp-VFIOZDVY.js → mcp-NJIOKW3E.js} +2 -2
- package/dist/bundle/{mdast-util-from-markdown-FXEPSNER.js → mdast-util-from-markdown-HEZF7KJ4.js} +137 -195
- package/dist/bundle/mdast-util-gfm-AQW6R6MG.js +925 -0
- package/dist/bundle/mdast-util-to-hast-DF2QVIRV.js +879 -0
- package/dist/bundle/mdast-util-to-markdown-XYLXB3Z3.js +18 -0
- package/dist/bundle/meeting-combined-JUNV35GM.js +28 -0
- package/dist/bundle/meeting-model-XY4UNWWK.js +29 -0
- package/dist/bundle/{meeting-semantic-5U7JQCFF.js → meeting-semantic-62QNQMOM.js} +10 -10
- package/dist/bundle/{micromark-extension-gfm-GRL24TU6.js → micromark-extension-gfm-OE2GBORZ.js} +11 -78
- package/dist/bundle/{node-VJMVHOWD.js → node-IACCI2CW.js} +2 -2
- package/dist/bundle/{node-sqlite-DCNT3HVE.js → node-sqlite-WYIRC7C7.js} +10 -10
- package/dist/bundle/notes-search-DEDUJKSN.js +70 -0
- package/dist/bundle/oauth-HXBXF4VI.js +22 -0
- package/dist/bundle/{open-NFOEHVW7.js → open-H32B6BCT.js} +8 -8
- package/dist/bundle/{openai-D47WY7EC.js → openai-VHMPJJUG.js} +22 -21
- package/dist/bundle/{process-Q2FRU5VA.js → process-RNHPF5OK.js} +1 -1
- package/dist/bundle/{program-T2AJJQEM.js → program-GYMJ3DDH.js} +276 -1132
- package/dist/bundle/{prompt-YJSDABXN.js → prompt-TOG2CRCE.js} +8 -8
- package/dist/bundle/{reasons-WEHPCSJX.js → reasons-TLFQ45YX.js} +6 -5
- package/dist/bundle/{recognize-6OBEIEB3.js → recognize-GYGY45EY.js} +7 -7
- package/dist/bundle/remote-6XN2QLI5.js +35 -0
- package/dist/bundle/{rerank-L6F5SLIB.js → rerank-HJO3O4TW.js} +11 -11
- package/dist/bundle/{serve-GYSWIWH4.js → serve-XPCNLHCR.js} +19 -19
- package/dist/bundle/server-UBJZ66XE.js +97 -0
- package/dist/bundle/{server-GWWP3RIT.js → server-WPT3NC5B.js} +89 -70
- package/dist/bundle/{services-BDQBRXT5.js → services-253KKKVU.js} +109 -89
- package/dist/bundle/{sqlite-runtime-ZSZGAUYB.js → sqlite-runtime-EZASGJXW.js} +9 -9
- package/dist/bundle/{start-BJ275RUK.js → start-UHI35JFL.js} +7 -7
- package/dist/bundle/{state-HLNGFI2T.js → state-KJTSPFGK.js} +9 -9
- package/dist/bundle/{store-I43KZNJW.js → store-62J2H2A3.js} +36 -25
- package/dist/bundle/{store-OSRTGYGI.js → store-G5B7T7M7.js} +38 -23
- package/dist/bundle/store-maintenance-command-C6T4YLVF.js +85 -0
- package/dist/bundle/surface-3OT64BHS.js +83 -0
- package/dist/bundle/tokens-EHYO6D2X.js +133 -0
- package/dist/commands/documents.d.ts.map +1 -1
- package/dist/commands/documents.js +11 -1
- package/dist/commands/documents.js.map +1 -1
- package/dist/commands/remote.d.ts.map +1 -1
- package/dist/commands/remote.js +8 -22
- package/dist/commands/remote.js.map +1 -1
- package/dist/commands/sync.d.ts.map +1 -1
- package/dist/commands/sync.js +14 -4
- package/dist/commands/sync.js.map +1 -1
- package/dist/config.d.ts +5 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +7 -1
- package/dist/config.js.map +1 -1
- package/dist/first-screen.d.ts.map +1 -1
- package/dist/first-screen.js +2 -1
- package/dist/first-screen.js.map +1 -1
- package/dist/generated/manifest.d.ts +2 -1
- package/dist/generated/manifest.d.ts.map +1 -1
- package/dist/generated/manifest.js +782 -0
- package/dist/generated/manifest.js.map +1 -1
- package/dist/generated/types.d.ts +262 -58
- package/dist/generated/types.d.ts.map +1 -1
- package/dist/google.d.ts.map +1 -1
- package/dist/google.js +5 -5
- package/dist/google.js.map +1 -1
- package/dist/model.d.ts +5 -2
- package/dist/model.d.ts.map +1 -1
- package/dist/model.js.map +1 -1
- package/dist/policy-keys.js +1 -1
- package/dist/policy-keys.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +9 -4
- package/dist/program.js.map +1 -1
- package/dist/state.d.ts.map +1 -1
- package/dist/state.js +6 -1
- package/dist/state.js.map +1 -1
- package/dist/store.d.ts.map +1 -1
- package/dist/store.js +2 -7
- package/dist/store.js.map +1 -1
- package/dist/supported.d.ts +2 -2
- package/dist/supported.d.ts.map +1 -1
- package/dist/supported.js +2 -3
- package/dist/supported.js.map +1 -1
- package/dist/sync.d.ts +2 -1
- package/dist/sync.d.ts.map +1 -1
- package/dist/sync.js +6 -4
- package/dist/sync.js.map +1 -1
- package/dist/transcripts.d.ts +0 -6
- package/dist/transcripts.d.ts.map +1 -1
- package/dist/transcripts.js +0 -13
- package/dist/transcripts.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/scenarios/find-decision.md +1 -1
- package/skills/drive-cli/SKILL.md +4 -2
- package/dist/bundle/chunk-AV5UKJZM.js +0 -729
- package/dist/bundle/chunk-NP7LJATI.js +0 -598
- package/dist/bundle/chunk-P77FL6RY.js +0 -896
- package/dist/bundle/chunk-ZI3YTXSF.js +0 -2
- package/dist/bundle/command-contract-V3F452QI.js +0 -43
- package/dist/bundle/entry-ORZYRJ5N.js +0 -25
- package/dist/bundle/first-run-KAKA6KBY.js +0 -31
- package/dist/bundle/first-screen-R645UHRH.js +0 -41
- package/dist/bundle/google-BSO3YB7N.js +0 -45
- package/dist/bundle/grants-PLNFYARD.js +0 -118
- package/dist/bundle/mdast-util-gfm-SZM5GBDF.js +0 -2103
- package/dist/bundle/meeting-combined-SUKMFK3F.js +0 -27
- package/dist/bundle/meeting-model-S4YGKIFI.js +0 -29
- package/dist/bundle/oauth-KCMNQ3ZP.js +0 -22
- package/dist/bundle/remote-3SL2QJ7T.js +0 -35
- package/dist/bundle/server-BI46BSRE.js +0 -80
- package/dist/bundle/store-maintenance-command-FO7LEVSL.js +0 -72
- package/dist/bundle/tokens-DB7O7QNB.js +0 -118
|
@@ -9,11 +9,11 @@ import {
|
|
|
9
9
|
timezoneOf,
|
|
10
10
|
validateQuery,
|
|
11
11
|
walkQuery
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-XQZEMRCU.js";
|
|
13
13
|
import {
|
|
14
14
|
singleLine,
|
|
15
15
|
visibleControls
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-FUDUXIVG.js";
|
|
17
17
|
import {
|
|
18
18
|
STEPS,
|
|
19
19
|
array,
|
|
@@ -32,21 +32,22 @@ import {
|
|
|
32
32
|
pageSchema,
|
|
33
33
|
picklist,
|
|
34
34
|
pipe,
|
|
35
|
+
record,
|
|
35
36
|
reference,
|
|
36
37
|
safeParse,
|
|
37
38
|
stepOf,
|
|
38
39
|
strictObject,
|
|
39
40
|
string,
|
|
40
41
|
union
|
|
41
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-GXGSC622.js";
|
|
42
43
|
import {
|
|
43
44
|
CliError
|
|
44
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-OLCU7Q2B.js";
|
|
45
46
|
import {
|
|
46
47
|
__name
|
|
47
48
|
} from "./chunk-ZVVMGPBJ.js";
|
|
48
49
|
|
|
49
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
50
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/meetings/reference.js
|
|
50
51
|
var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "expected meeting:<accountId>/<meetingId>[/<transcriptId>[/<cuePosition>]] with safe integer IDs"), "invalid");
|
|
51
52
|
var integer2 = /* @__PURE__ */ __name((value, minimum = 1) => {
|
|
52
53
|
if (!Number.isSafeInteger(value) || value < minimum)
|
|
@@ -83,7 +84,7 @@ var parseMeetingReference = /* @__PURE__ */ __name((text7) => {
|
|
|
83
84
|
}, "parseMeetingReference");
|
|
84
85
|
var canonicalMeetingReference = /* @__PURE__ */ __name((text7) => formatMeetingReference(parseMeetingReference(text7)), "canonicalMeetingReference");
|
|
85
86
|
|
|
86
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
87
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/meetings/payment.js
|
|
87
88
|
var FACT_TYPES = ["fact", "statement", "question", "decision", "promise"];
|
|
88
89
|
var PAYMENT_DIRECTIONS = ["to_us", "from_us"];
|
|
89
90
|
var PAYMENT_STATES = ["expected", "paid", "cancelled"];
|
|
@@ -177,7 +178,7 @@ var paymentTitle = /* @__PURE__ */ __name((fact) => {
|
|
|
177
178
|
return `${grouped(payment.amount)} ${payment.currency} ${way}${party}${item}${due} (${payment.state})`;
|
|
178
179
|
}, "paymentTitle");
|
|
179
180
|
|
|
180
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
181
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/meetings/hit-query.js
|
|
181
182
|
var context = {
|
|
182
183
|
command: "search meetings",
|
|
183
184
|
guide: "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md#\u0432\u0441\u0442\u0440\u0435\u0447\u0438"
|
|
@@ -299,20 +300,45 @@ var meetingWordsQuery = /* @__PURE__ */ __name((text7) => {
|
|
|
299
300
|
return { version: 1, language: "lucene-v1", root };
|
|
300
301
|
}, "meetingWordsQuery");
|
|
301
302
|
|
|
302
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
303
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/meetings/search-store.js
|
|
304
|
+
var refreshMeetingIndex = /* @__PURE__ */ __name(async (meetings, accountId, signal) => {
|
|
305
|
+
let before = Number.POSITIVE_INFINITY;
|
|
306
|
+
for (; ; ) {
|
|
307
|
+
signal?.throwIfAborted();
|
|
308
|
+
const { indexed, remaining } = await meetings.indexSearch({
|
|
309
|
+
accountId,
|
|
310
|
+
limit: 1e3,
|
|
311
|
+
maxReadBytes: 64 * 1024 ** 2,
|
|
312
|
+
signal
|
|
313
|
+
});
|
|
314
|
+
if (remaining === 0 || indexed === 0 || remaining >= before)
|
|
315
|
+
return;
|
|
316
|
+
before = remaining;
|
|
317
|
+
}
|
|
318
|
+
}, "refreshMeetingIndex");
|
|
319
|
+
|
|
320
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/meetings/passage.js
|
|
303
321
|
var meetingHitContextLimits = /* @__PURE__ */ __name((options = {}) => {
|
|
304
322
|
const { before = 3, after = 3, bytes = 65536, max_read_bytes = 4194304, expected_fingerprint } = options;
|
|
305
323
|
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)))
|
|
306
324
|
throw new CliError("validation_error", "context takes 0\u2013999 surrounding cues, 2\u20134194304 output bytes and a bounded read budget");
|
|
307
325
|
return { before, after, bytes, max_read_bytes };
|
|
308
326
|
}, "meetingHitContextLimits");
|
|
327
|
+
var MEETING_CUE_UNTRUSTED = ["speaker_name", "text"];
|
|
328
|
+
var markedPassage = /* @__PURE__ */ __name((result) => ({
|
|
329
|
+
...result,
|
|
330
|
+
packet: {
|
|
331
|
+
...result.packet,
|
|
332
|
+
items: result.packet.items.map((cue2) => ({ ...cue2, untrusted: [...MEETING_CUE_UNTRUSTED] }))
|
|
333
|
+
}
|
|
334
|
+
}), "markedPassage");
|
|
309
335
|
var validateMeetingPassage = /* @__PURE__ */ __name((reference2, options) => {
|
|
310
336
|
meetingHitContextLimits(options);
|
|
311
337
|
if (typeof reference2 !== "string" || !reference2.trim() || reference2.length > 200 || options.format !== void 0 && !["json", "text", "markdown"].includes(options.format))
|
|
312
338
|
throw new CliError("validation_error", "choose a cue reference and json, text or markdown output");
|
|
313
339
|
}, "validateMeetingPassage");
|
|
314
340
|
|
|
315
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
341
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/meetings/result-items.js
|
|
316
342
|
var text = string();
|
|
317
343
|
var identifier = pipe(text, minLength(1));
|
|
318
344
|
var nullableText = nullable(text);
|
|
@@ -328,7 +354,13 @@ var run = strictObject({
|
|
|
328
354
|
timezone: optional(text)
|
|
329
355
|
});
|
|
330
356
|
var exported = union([
|
|
331
|
-
strictObject({
|
|
357
|
+
strictObject({
|
|
358
|
+
meeting_id: identifier,
|
|
359
|
+
format: picklist(["markdown", "vtt"]),
|
|
360
|
+
filename: text,
|
|
361
|
+
content: text,
|
|
362
|
+
untrusted: optional(array(text))
|
|
363
|
+
}),
|
|
332
364
|
strictObject({ meeting_id: identifier, format: picklist(["markdown", "vtt"]), output: text })
|
|
333
365
|
]);
|
|
334
366
|
var eventChange = strictObject({
|
|
@@ -450,7 +482,8 @@ var managedChange = strictObject({
|
|
|
450
482
|
start_time: optional(text),
|
|
451
483
|
duration_minutes: optional(count),
|
|
452
484
|
timezone: optional(text),
|
|
453
|
-
agenda: optional(text)
|
|
485
|
+
agenda: optional(text),
|
|
486
|
+
settings: optional(record(text, union([text, flag])))
|
|
454
487
|
})),
|
|
455
488
|
applied: flag,
|
|
456
489
|
meeting: optional(strictObject({
|
|
@@ -462,7 +495,8 @@ var managedChange = strictObject({
|
|
|
462
495
|
timezone: nullableText,
|
|
463
496
|
agenda: nullableText,
|
|
464
497
|
join_url: nullableText
|
|
465
|
-
}))
|
|
498
|
+
})),
|
|
499
|
+
untrusted: optional(array(text))
|
|
466
500
|
});
|
|
467
501
|
var invitation = strictObject({ id: identifier, invitation: text, untrusted: optional(array(text)) });
|
|
468
502
|
var MEETING_RESULT_ENTITIES = {
|
|
@@ -476,7 +510,7 @@ var MEETING_RESULT_ENTITIES = {
|
|
|
476
510
|
meeting_repair: repair
|
|
477
511
|
};
|
|
478
512
|
|
|
479
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
513
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/search/service-query.js
|
|
480
514
|
var BACKENDS = ["archive", "server", "both"];
|
|
481
515
|
var MAX_BRANCHES = 64;
|
|
482
516
|
var some = /* @__PURE__ */ __name((value) => value === void 0 ? [] : [value], "some");
|
|
@@ -515,7 +549,10 @@ var RELATIVE_TIME = /^\d+[mhd]$/i;
|
|
|
515
549
|
var OFFSET = /(?:Z|[+-]\d{2}:?\d{2})$/i;
|
|
516
550
|
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");
|
|
517
551
|
|
|
518
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
552
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/meetings/model.js
|
|
553
|
+
var MEETING_CALL_DIRECTIONS = ["in", "out"];
|
|
554
|
+
|
|
555
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/meetings/item.js
|
|
519
556
|
var text2 = string();
|
|
520
557
|
var count2 = pipe(number(), integer(), minValue(0));
|
|
521
558
|
var MEETING_ISSUES = ["time_without_zone"];
|
|
@@ -523,6 +560,12 @@ var meetingIssuesOf = /* @__PURE__ */ __name((metadata) => {
|
|
|
523
560
|
const listed2 = metadata?.issues;
|
|
524
561
|
return Array.isArray(listed2) ? MEETING_ISSUES.filter((issue) => listed2.includes(issue)) : [];
|
|
525
562
|
}, "meetingIssuesOf");
|
|
563
|
+
var meetingCall = strictObject({
|
|
564
|
+
direction: nullable(picklist(MEETING_CALL_DIRECTIONS)),
|
|
565
|
+
manager: nullable(strictObject({ name: nullable(text2), person: nullable(reference) })),
|
|
566
|
+
client_phone: nullable(text2)
|
|
567
|
+
});
|
|
568
|
+
var meetingCallItem = /* @__PURE__ */ __name((row) => row.direction == null && row.clientPhone == null ? void 0 : { direction: row.direction ?? null, manager: row.manager ?? null, client_phone: row.clientPhone ?? null }, "meetingCallItem");
|
|
526
569
|
var meetingEntries = {
|
|
527
570
|
ref: reference,
|
|
528
571
|
id: pipe(string(), minLength(1)),
|
|
@@ -540,6 +583,8 @@ var meetingEntries = {
|
|
|
540
583
|
duration_ms: nullable(count2),
|
|
541
584
|
timezone: optional(nullable(text2)),
|
|
542
585
|
participants_count: nullable(count2),
|
|
586
|
+
/** Present only on a phone call. */
|
|
587
|
+
call: optional(meetingCall),
|
|
543
588
|
/** Present only when something about this meeting is doubtful. */
|
|
544
589
|
issues: optional(array(picklist(MEETING_ISSUES))),
|
|
545
590
|
/**
|
|
@@ -557,6 +602,7 @@ var MEETING_UNTRUSTED = ["title", "description", "location"];
|
|
|
557
602
|
var iso = /* @__PURE__ */ __name((ms2) => ms2 === null ? null : new Date(ms2).toISOString(), "iso");
|
|
558
603
|
var meetingItem = /* @__PURE__ */ __name((row, owner) => {
|
|
559
604
|
const issues = meetingIssuesOf(row.metadata);
|
|
605
|
+
const call = meetingCallItem(row);
|
|
560
606
|
return {
|
|
561
607
|
ref: formatMeetingReference({ type: "meeting", accountId: row.accountId, meetingId: row.id }),
|
|
562
608
|
id: String(row.id),
|
|
@@ -572,6 +618,7 @@ var meetingItem = /* @__PURE__ */ __name((row, owner) => {
|
|
|
572
618
|
duration_ms: row.durationMs,
|
|
573
619
|
timezone: row.timezone,
|
|
574
620
|
participants_count: row.participantsCount,
|
|
621
|
+
...call ? { call } : {},
|
|
575
622
|
...issues.length ? { issues } : {},
|
|
576
623
|
untrusted: [...MEETING_UNTRUSTED],
|
|
577
624
|
created_at: new Date(row.createdAt).toISOString(),
|
|
@@ -605,11 +652,19 @@ var MEETING_QUERY = {
|
|
|
605
652
|
})
|
|
606
653
|
};
|
|
607
654
|
|
|
608
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
655
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/meetings/store.js
|
|
609
656
|
var MEETING_DOCUMENT_ROLES = ["transcript", "recording", "notes"];
|
|
657
|
+
var TRANSCRIPT_WORDS = [
|
|
658
|
+
"Transcript",
|
|
659
|
+
"Notes by Gemini",
|
|
660
|
+
"\u0422\u0440\u0430\u043D\u0441\u043A\u0440\u0438\u043F\u0442",
|
|
661
|
+
"\u0417\u0430\u043C\u0435\u0442\u043A\u0438 Gemini",
|
|
662
|
+
"Transcripci\xF3n",
|
|
663
|
+
"Notas de Gemini"
|
|
664
|
+
];
|
|
610
665
|
var READ_BUDGET_EXCEEDED = "Meeting search exceeds its stored text byte budget";
|
|
611
666
|
|
|
612
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
667
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/meetings/answers.js
|
|
613
668
|
var text3 = string();
|
|
614
669
|
var count3 = pipe(number(), integer(), minValue(0));
|
|
615
670
|
var iso2 = /* @__PURE__ */ __name((ms2) => ms2 === null ? null : new Date(ms2).toISOString(), "iso");
|
|
@@ -659,7 +714,9 @@ var meetingTranscript = strictObject({
|
|
|
659
714
|
/** When a newer transcript of the same source replaced it; `meetings transcript --history` shows those too. */
|
|
660
715
|
superseded_at: nullable(isoTime),
|
|
661
716
|
created_at: isoTime,
|
|
662
|
-
lines: array(line)
|
|
717
|
+
lines: array(line),
|
|
718
|
+
/** What people said, and who the service says said it: data, never instructions. */
|
|
719
|
+
untrusted: optional(array(text3))
|
|
663
720
|
});
|
|
664
721
|
var meetingSummary = strictObject({
|
|
665
722
|
id: pipe(string(), minLength(1)),
|
|
@@ -672,7 +729,9 @@ var meetingSummary = strictObject({
|
|
|
672
729
|
content: nullable(text3),
|
|
673
730
|
url: nullable(text3),
|
|
674
731
|
created_at: isoTime,
|
|
675
|
-
updated_at: isoTime
|
|
732
|
+
updated_at: isoTime,
|
|
733
|
+
/** What the service wrote of what people said. */
|
|
734
|
+
untrusted: optional(array(text3))
|
|
676
735
|
});
|
|
677
736
|
var meetingDetailsEntries = {
|
|
678
737
|
...meeting.entries,
|
|
@@ -699,7 +758,9 @@ var meetingDetailsEntries = {
|
|
|
699
758
|
name: nullable(text3),
|
|
700
759
|
mime: nullable(text3),
|
|
701
760
|
size: nullable(count3),
|
|
702
|
-
url: nullable(text3)
|
|
761
|
+
url: nullable(text3),
|
|
762
|
+
/** The file on this computer; `null` when it stays on the service or the phone system (pbx over SFTP). */
|
|
763
|
+
local_path: nullable(text3)
|
|
703
764
|
})),
|
|
704
765
|
/**
|
|
705
766
|
* The Drive files the meeting service saved for it, by role. `document` is the stored document (`document:<id>`) once
|
|
@@ -713,6 +774,20 @@ var meetingDetailsEntries = {
|
|
|
713
774
|
}))
|
|
714
775
|
};
|
|
715
776
|
var meetingDetails = strictObject(meetingDetailsEntries);
|
|
777
|
+
var TRANSCRIPT_UNTRUSTED = ["lines.text", "lines.speaker"];
|
|
778
|
+
var SUMMARY_UNTRUSTED = ["title", "overview", "sections.label", "sections.text", "next_steps", "content"];
|
|
779
|
+
var DETAILS_UNTRUSTED = [
|
|
780
|
+
"series_title",
|
|
781
|
+
"participants.name",
|
|
782
|
+
"participants.email",
|
|
783
|
+
"participants.person.name",
|
|
784
|
+
"chat.sender",
|
|
785
|
+
"chat.recipient",
|
|
786
|
+
"chat.text",
|
|
787
|
+
"attachments.name",
|
|
788
|
+
"documents.title"
|
|
789
|
+
];
|
|
790
|
+
var PARTICIPANT_UNTRUSTED = ["display_name", "email", "person.name"];
|
|
716
791
|
var meetingRef = /* @__PURE__ */ __name((accountId, meetingId) => formatMeetingReference({ type: "meeting", accountId, meetingId }), "meetingRef");
|
|
717
792
|
var meetingTranscriptItem = /* @__PURE__ */ __name((accountId, transcript, rows) => ({
|
|
718
793
|
ref: formatMeetingReference({
|
|
@@ -732,7 +807,8 @@ var meetingTranscriptItem = /* @__PURE__ */ __name((accountId, transcript, rows)
|
|
|
732
807
|
end_ms: row.endMs,
|
|
733
808
|
speaker: row.speakerName,
|
|
734
809
|
text: row.text
|
|
735
|
-
}))
|
|
810
|
+
})),
|
|
811
|
+
untrusted: [...TRANSCRIPT_UNTRUSTED]
|
|
736
812
|
}), "meetingTranscriptItem");
|
|
737
813
|
var meetingSummaryItem = /* @__PURE__ */ __name((accountId, summary) => ({
|
|
738
814
|
id: String(summary.id),
|
|
@@ -745,12 +821,15 @@ var meetingSummaryItem = /* @__PURE__ */ __name((accountId, summary) => ({
|
|
|
745
821
|
content: summary.content,
|
|
746
822
|
url: summary.docUrl,
|
|
747
823
|
created_at: new Date(summary.externalCreatedAt ?? summary.createdAt).toISOString(),
|
|
748
|
-
updated_at: new Date(summary.externalUpdatedAt ?? summary.updatedAt).toISOString()
|
|
824
|
+
updated_at: new Date(summary.externalUpdatedAt ?? summary.updatedAt).toISOString(),
|
|
825
|
+
untrusted: [...SUMMARY_UNTRUSTED]
|
|
749
826
|
}), "meetingSummaryItem");
|
|
750
827
|
var meetingDetailsItem = /* @__PURE__ */ __name((details, owner) => {
|
|
751
828
|
const { accountId } = details.meeting;
|
|
829
|
+
const item = meetingItem(details.meeting, owner);
|
|
752
830
|
return {
|
|
753
|
-
...
|
|
831
|
+
...item,
|
|
832
|
+
untrusted: [...item.untrusted ?? [], ...DETAILS_UNTRUSTED],
|
|
754
833
|
event_id: details.meeting.eventId === null ? null : String(details.meeting.eventId),
|
|
755
834
|
series_id: details.meeting.meetingSeriesId === null ? null : String(details.meeting.meetingSeriesId),
|
|
756
835
|
series_title: details.series?.title ?? null,
|
|
@@ -787,7 +866,8 @@ var meetingDetailsItem = /* @__PURE__ */ __name((details, owner) => {
|
|
|
787
866
|
name: one.name ?? one.title,
|
|
788
867
|
mime: one.mime,
|
|
789
868
|
size: one.size,
|
|
790
|
-
url: one.url
|
|
869
|
+
url: one.url,
|
|
870
|
+
local_path: one.localPath
|
|
791
871
|
})),
|
|
792
872
|
documents: (details.documents ?? []).map((one) => ({
|
|
793
873
|
file_id: one.fileId,
|
|
@@ -868,7 +948,7 @@ var meetingHitsList = /* @__PURE__ */ __name((found, limit, command = "search me
|
|
|
868
948
|
};
|
|
869
949
|
}, "meetingHitsList");
|
|
870
950
|
|
|
871
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
951
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/meetings/join-key.js
|
|
872
952
|
var joinKeyOf = /* @__PURE__ */ __name((url) => {
|
|
873
953
|
const parsed = urlOf(url);
|
|
874
954
|
if (!parsed)
|
|
@@ -902,7 +982,7 @@ var urlOf = /* @__PURE__ */ __name((url) => {
|
|
|
902
982
|
}
|
|
903
983
|
}, "urlOf");
|
|
904
984
|
|
|
905
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
985
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/meetings/calendar-text.js
|
|
906
986
|
var ENTITIES = { amp: "&", lt: "<", gt: ">", quot: '"', "#39": "'", apos: "'", nbsp: " " };
|
|
907
987
|
var SECRET_LINE = /(?<![\p{L}\p{N}])(pass ?codes?|passwords?|pwd|pins?|access ?codes?|meeting ?codes?|kennwort|пароль|пин-?код|код доступа)(?![\p{L}\p{N}])|pwd=/iu;
|
|
908
988
|
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");
|
|
@@ -939,7 +1019,7 @@ var entryMetadata = /* @__PURE__ */ __name((metadata) => {
|
|
|
939
1019
|
return kept;
|
|
940
1020
|
}, "entryMetadata");
|
|
941
1021
|
|
|
942
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1022
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/meetings/calls.js
|
|
943
1023
|
var CALL_DIRECTIONS = ["incoming", "outgoing", "internal"];
|
|
944
1024
|
var CALL_OUTCOMES = ["answered", "voicemail", "busy", "no_answer", "failed"];
|
|
945
1025
|
var MISSED_OUTCOMES = ["voicemail", "busy", "no_answer"];
|
|
@@ -1008,7 +1088,7 @@ var callOf = /* @__PURE__ */ __name((stored) => {
|
|
|
1008
1088
|
};
|
|
1009
1089
|
}, "callOf");
|
|
1010
1090
|
|
|
1011
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1091
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/meetings/call-answers.js
|
|
1012
1092
|
var count4 = pipe(number(), integer(), minValue(0));
|
|
1013
1093
|
var ms = count4;
|
|
1014
1094
|
var id = pipe(number(), integer(), minValue(1));
|
|
@@ -1171,7 +1251,7 @@ var callStatsItem = /* @__PURE__ */ __name((found) => {
|
|
|
1171
1251
|
};
|
|
1172
1252
|
}, "callStatsItem");
|
|
1173
1253
|
|
|
1174
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1254
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/meetings/stats.js
|
|
1175
1255
|
var MEETING_COUNTS_GROUPINGS = ["day", "week", "series"];
|
|
1176
1256
|
var zoneOf = /* @__PURE__ */ __name((timeZone) => {
|
|
1177
1257
|
const zone = timeZone ?? "UTC";
|
|
@@ -1306,7 +1386,7 @@ var aggregateMeetingStats = /* @__PURE__ */ __name((rows, timeZone) => {
|
|
|
1306
1386
|
};
|
|
1307
1387
|
}, "aggregateMeetingStats");
|
|
1308
1388
|
|
|
1309
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1389
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/meetings/call-stats.js
|
|
1310
1390
|
var CALLBACK_WITHIN_MS = 24 * 60 * 60 * 1e3;
|
|
1311
1391
|
var SHORT_CALL_UNDER_MS = 3e4;
|
|
1312
1392
|
var MOST_MISSED = 100;
|
|
@@ -1496,7 +1576,7 @@ var aggregateCallStats = /* @__PURE__ */ __name((calls, options = {}) => {
|
|
|
1496
1576
|
};
|
|
1497
1577
|
}, "aggregateCallStats");
|
|
1498
1578
|
|
|
1499
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1579
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/meetings/cue-fingerprint.js
|
|
1500
1580
|
import { createHash } from "node:crypto";
|
|
1501
1581
|
var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256").update(JSON.stringify({
|
|
1502
1582
|
reference: cue2.reference,
|
|
@@ -1510,7 +1590,7 @@ var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256"
|
|
|
1510
1590
|
text: cue2.text
|
|
1511
1591
|
})).digest("hex"), "meetingCueFingerprint");
|
|
1512
1592
|
|
|
1513
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1593
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/meetings/event-query.js
|
|
1514
1594
|
var EVENT_QUERY = defineQuery({
|
|
1515
1595
|
entity: "event",
|
|
1516
1596
|
backend: "sql",
|
|
@@ -1526,7 +1606,7 @@ var EVENT_QUERY = defineQuery({
|
|
|
1526
1606
|
]
|
|
1527
1607
|
});
|
|
1528
1608
|
|
|
1529
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1609
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/meetings/event-store.js
|
|
1530
1610
|
var PARTICIPANT_RESPONSES = ["needs-action", "accepted", "tentative", "declined", "delegated"];
|
|
1531
1611
|
var UNTIL = /(?:^|;)UNTIL=(\d{4})(\d{2})(\d{2})(?:T(\d{2})(\d{2})(\d{2})Z?)?(?:;|$)/iu;
|
|
1532
1612
|
var seriesEnd = /* @__PURE__ */ __name((entry) => {
|
|
@@ -1550,7 +1630,7 @@ var entryInWindow = /* @__PURE__ */ __name((entry, window) => {
|
|
|
1550
1630
|
return Math.max(entry.endsAt ?? start, start + 1) > window.from;
|
|
1551
1631
|
}, "entryInWindow");
|
|
1552
1632
|
|
|
1553
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1633
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/meetings/events.js
|
|
1554
1634
|
var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now(), { create = true } = {}) => {
|
|
1555
1635
|
const current = await store.meeting(details.meeting.id);
|
|
1556
1636
|
if (!current)
|
|
@@ -1595,7 +1675,7 @@ var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now(),
|
|
|
1595
1675
|
return (await store.events()).find((e) => e.id === linked?.meeting.eventId) ?? null;
|
|
1596
1676
|
}, "linkEvent");
|
|
1597
1677
|
|
|
1598
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1678
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/meetings/participant-search.js
|
|
1599
1679
|
var normalizeMeetingParticipantQuery = /* @__PURE__ */ __name((text7) => text7.normalize("NFKC").toLowerCase(), "normalizeMeetingParticipantQuery");
|
|
1600
1680
|
var validateMeetingParticipantQuery = /* @__PURE__ */ __name((query) => {
|
|
1601
1681
|
if (typeof query !== "string" || !query.trim() || query.length > 500 || query.includes("\0"))
|
|
@@ -1619,7 +1699,7 @@ var validateMeetingParticipantSearch = /* @__PURE__ */ __name((query, input) =>
|
|
|
1619
1699
|
};
|
|
1620
1700
|
}, "validateMeetingParticipantSearch");
|
|
1621
1701
|
|
|
1622
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1702
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/meetings/reads.js
|
|
1623
1703
|
var MeetingError = class extends CliError {
|
|
1624
1704
|
static {
|
|
1625
1705
|
__name(this, "MeetingError");
|
|
@@ -1671,6 +1751,7 @@ var meetingPeople = /* @__PURE__ */ __name(async (store, query, accountId, optio
|
|
|
1671
1751
|
});
|
|
1672
1752
|
return {
|
|
1673
1753
|
...packet,
|
|
1754
|
+
items: packet.items.map((one) => ({ ...one, untrusted: [...PARTICIPANT_UNTRUSTED] })),
|
|
1674
1755
|
page: { mode: "cursor", limit, has_more, ...next_cursor ? { next_cursor } : {} },
|
|
1675
1756
|
...next_cursor ? {
|
|
1676
1757
|
next: [
|
|
@@ -1691,7 +1772,14 @@ var meetingPeople = /* @__PURE__ */ __name(async (store, query, accountId, optio
|
|
|
1691
1772
|
}
|
|
1692
1773
|
if (Object.values(options).some((value) => value !== void 0))
|
|
1693
1774
|
throw new MeetingError("configuration_error", "bounded participant lookup needs a selected account and capable store");
|
|
1694
|
-
return listed(await store.participants(query, accountId))
|
|
1775
|
+
return listed((await store.participants(query, accountId)).map((one) => ({
|
|
1776
|
+
participant_id: one.id,
|
|
1777
|
+
meeting_id: one.meetingId,
|
|
1778
|
+
identity_id: one.identityId,
|
|
1779
|
+
display_name: one.displayName,
|
|
1780
|
+
email: one.email,
|
|
1781
|
+
untrusted: [...PARTICIPANT_UNTRUSTED]
|
|
1782
|
+
})));
|
|
1695
1783
|
}, "meetingPeople");
|
|
1696
1784
|
var PAGE_NEXT2 = STEPS.find((step) => step.id === "page.next");
|
|
1697
1785
|
var meetingsList = /* @__PURE__ */ __name(async (store, filter = {}) => {
|
|
@@ -1750,7 +1838,7 @@ var meetingSummaryAnswer = /* @__PURE__ */ __name(async (store, id5, accountId)
|
|
|
1750
1838
|
return wholeList(details.summaries.map((one) => meetingSummaryItem(details.meeting.accountId, one)));
|
|
1751
1839
|
}, "meetingSummaryAnswer");
|
|
1752
1840
|
|
|
1753
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1841
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/meetings/export.js
|
|
1754
1842
|
var timestamp = /* @__PURE__ */ __name((milliseconds2) => {
|
|
1755
1843
|
if (!Number.isSafeInteger(milliseconds2) || milliseconds2 < 0)
|
|
1756
1844
|
throw new MeetingError("validation_error", "transcript times must be nonnegative integer milliseconds");
|
|
@@ -1842,14 +1930,15 @@ var exportMeeting = /* @__PURE__ */ __name(async (store, id5, options) => {
|
|
|
1842
1930
|
meetingId: details.meeting.id,
|
|
1843
1931
|
format: options.format,
|
|
1844
1932
|
filename: `meeting-${details.meeting.id}${options.transcriptId === void 0 ? "" : `-transcript-${options.transcriptId}`}.${options.format === "markdown" ? "md" : "vtt"}`,
|
|
1845
|
-
content
|
|
1933
|
+
content,
|
|
1934
|
+
untrusted: ["content"]
|
|
1846
1935
|
};
|
|
1847
1936
|
}, "exportMeeting");
|
|
1848
1937
|
|
|
1849
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1938
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
|
|
1850
1939
|
import { createHash as createHash2 } from "node:crypto";
|
|
1851
1940
|
|
|
1852
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1941
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/meetings/timestamp.js
|
|
1853
1942
|
var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
|
|
1854
1943
|
if (typeof value !== "string" || !/^\d{4}-\d{2}-\d{2}T.+(?:Z|[+-]\d{2}:\d{2})$/i.test(value) || !Number.isFinite(Date.parse(value)))
|
|
1855
1944
|
throw new CliError("validation_error", `${name} must be an ISO timestamp with a timezone, such as 2026-11-09T09:00:00Z`);
|
|
@@ -1860,7 +1949,7 @@ var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
|
|
|
1860
1949
|
return new Date(value).toISOString();
|
|
1861
1950
|
}, "meetingTimestamp");
|
|
1862
1951
|
|
|
1863
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1952
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
|
|
1864
1953
|
var TASK_TYPES = ["bug", "feature", "chore"];
|
|
1865
1954
|
var invalid3 = /* @__PURE__ */ __name((message) => {
|
|
1866
1955
|
throw new CliError("validation_error", message);
|
|
@@ -2035,7 +2124,7 @@ var validateBatch = /* @__PURE__ */ __name((input, rules, most, one) => {
|
|
|
2035
2124
|
var validateFindings = /* @__PURE__ */ __name((input, rules) => validateBatch(input, rules, 16, (finding, ids2) => validateFinding(finding, rules, ids2)), "validateFindings");
|
|
2036
2125
|
var findingFingerprint = /* @__PURE__ */ __name(({ id: _id, ...finding }) => findingHash(finding), "findingFingerprint");
|
|
2037
2126
|
|
|
2038
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2127
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/meetings/findings.js
|
|
2039
2128
|
var MEETING_FINDINGS_KIND = "meeting_findings";
|
|
2040
2129
|
var cue = /* @__PURE__ */ __name((raw) => {
|
|
2041
2130
|
const reference2 = canonicalMeetingReference(raw);
|
|
@@ -2046,7 +2135,7 @@ var cue = /* @__PURE__ */ __name((raw) => {
|
|
|
2046
2135
|
var validateMeetingFindings = /* @__PURE__ */ __name((input) => validateFindings(input, { plural: "meeting findings", singular: "meeting finding", cited: "cue", reference: cue }), "validateMeetingFindings");
|
|
2047
2136
|
var meetingFindingFingerprint = findingFingerprint;
|
|
2048
2137
|
|
|
2049
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2138
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/meetings/language.js
|
|
2050
2139
|
var LATIN_WORDS = {
|
|
2051
2140
|
en: ["the", "and", "is", "that", "you", "this", "what", "have", "with", "are"],
|
|
2052
2141
|
es: ["el", "los", "las", "por", "pero", "para", "est\xE1", "muy", "tambi\xE9n", "hay"],
|
|
@@ -2095,7 +2184,7 @@ var transcriptLanguage = /* @__PURE__ */ __name((texts) => {
|
|
|
2095
2184
|
return null;
|
|
2096
2185
|
}, "transcriptLanguage");
|
|
2097
2186
|
|
|
2098
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2187
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/meetings/ingest.js
|
|
2099
2188
|
var contentHash = /* @__PURE__ */ __name(async (text7) => {
|
|
2100
2189
|
const bytes = await crypto.subtle.digest("SHA-256", new TextEncoder().encode(text7));
|
|
2101
2190
|
return Array.from(new Uint8Array(bytes), (byte) => byte.toString(16).padStart(2, "0")).join("");
|
|
@@ -2132,7 +2221,223 @@ var timestamp2 = /* @__PURE__ */ __name((value) => {
|
|
|
2132
2221
|
return time;
|
|
2133
2222
|
}, "timestamp");
|
|
2134
2223
|
|
|
2135
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2224
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/meetings/pull.js
|
|
2225
|
+
var participantInput = /* @__PURE__ */ __name((p, provider, occurrenceId2, position, accountId) => {
|
|
2226
|
+
const { identityExternalId, phone, ...fields2 } = p;
|
|
2227
|
+
const externalId = identityExternalId ?? (p.email ? `email:${p.email.toLowerCase()}` : p.externalId) ?? `name:${p.displayName ?? "unknown"}@${accountId}/${occurrenceId2}:${position}`;
|
|
2228
|
+
return {
|
|
2229
|
+
...fields2,
|
|
2230
|
+
identity: {
|
|
2231
|
+
provider,
|
|
2232
|
+
externalId,
|
|
2233
|
+
name: p.displayName,
|
|
2234
|
+
...phone?.trim() ? { phone } : {},
|
|
2235
|
+
metadata: p.metadata,
|
|
2236
|
+
associatePerson: Boolean(identityExternalId?.trim() || p.email?.trim() || p.externalId?.trim())
|
|
2237
|
+
}
|
|
2238
|
+
};
|
|
2239
|
+
}, "participantInput");
|
|
2240
|
+
var participantInputs = /* @__PURE__ */ __name((provider, occurrenceId2, list, accountId) => list.map((p, i) => participantInput(p, provider, occurrenceId2, i, accountId)), "participantInputs");
|
|
2241
|
+
var sourceMeetingInput = /* @__PURE__ */ __name((m, accountId, participantsCount, kept) => {
|
|
2242
|
+
const startedAt = timestamp2(m.occurrence.startedAt);
|
|
2243
|
+
const given = m.occurrence.endedAt === null ? null : timestamp2(m.occurrence.endedAt);
|
|
2244
|
+
if (given !== null && given < startedAt)
|
|
2245
|
+
throw new Error("Meeting ends before it starts");
|
|
2246
|
+
const keptEnd = kept?.endedAt ?? null;
|
|
2247
|
+
const endedAt = given ?? (keptEnd !== null && keptEnd >= startedAt ? keptEnd : null);
|
|
2248
|
+
const count7 = participantsCount === null && kept ? kept.participantsCount : participantsCount;
|
|
2249
|
+
const metadata = kept?.metadata && m.metadata ? { ...kept.metadata, ...m.metadata } : m.metadata ?? kept?.metadata ?? null;
|
|
2250
|
+
const meeting2 = {
|
|
2251
|
+
accountId,
|
|
2252
|
+
externalId: m.occurrence.id,
|
|
2253
|
+
title: m.occurrence.title,
|
|
2254
|
+
description: m.description ?? kept?.description ?? null,
|
|
2255
|
+
location: m.location ?? kept?.location ?? null,
|
|
2256
|
+
joinUrl: m.joinUrl ?? m.series?.joinUrl ?? kept?.joinUrl ?? null,
|
|
2257
|
+
startedAt,
|
|
2258
|
+
endedAt,
|
|
2259
|
+
durationMs: endedAt === null ? null : endedAt - startedAt,
|
|
2260
|
+
timezone: m.timezone ?? kept?.timezone ?? null,
|
|
2261
|
+
hostIdentityId: kept?.hostIdentityId ?? null,
|
|
2262
|
+
...count7 === void 0 ? {} : { participantsCount: count7 },
|
|
2263
|
+
...m.call ? { direction: m.call.direction ?? null, clientPhone: m.call.clientPhone ?? null } : {},
|
|
2264
|
+
metadata,
|
|
2265
|
+
deletedAt: null
|
|
2266
|
+
};
|
|
2267
|
+
if (m.series)
|
|
2268
|
+
meeting2.series = {
|
|
2269
|
+
externalId: m.series.id,
|
|
2270
|
+
title: m.series.title,
|
|
2271
|
+
description: null,
|
|
2272
|
+
kind: m.series.kind ?? null,
|
|
2273
|
+
recurrence: m.series.recurrence ?? null,
|
|
2274
|
+
hostIdentityId: null,
|
|
2275
|
+
joinUrl: m.series.joinUrl ?? null,
|
|
2276
|
+
metadata: null,
|
|
2277
|
+
deletedAt: null
|
|
2278
|
+
};
|
|
2279
|
+
return meeting2;
|
|
2280
|
+
}, "sourceMeetingInput");
|
|
2281
|
+
var saveSourceMeeting = /* @__PURE__ */ __name(async (source, store, m, parts, { accountId, now, kept }) => {
|
|
2282
|
+
const id5 = m.occurrence.id;
|
|
2283
|
+
const { participants: sourceParticipants, transcript: lines, chat, summary } = parts;
|
|
2284
|
+
const participants = participantInputs(source.provider, id5, sourceParticipants ?? [], accountId);
|
|
2285
|
+
const meeting2 = sourceMeetingInput(m, accountId, sourceParticipants === void 0 ? void 0 : sourceParticipants?.length ?? null, kept);
|
|
2286
|
+
const linked = sourceParticipants !== void 0;
|
|
2287
|
+
const format = source.transcriptFormat ?? null;
|
|
2288
|
+
const transcripts = lines && linked ? [await transcriptInput(lines, participants, source.name, void 0, format)] : void 0;
|
|
2289
|
+
const details = await store.saveMeeting({
|
|
2290
|
+
meeting: meeting2,
|
|
2291
|
+
participants: sourceParticipants ? participants : void 0,
|
|
2292
|
+
transcripts,
|
|
2293
|
+
chat: chat?.map((line2) => ({
|
|
2294
|
+
externalId: null,
|
|
2295
|
+
sentAt: timestamp2(line2.sentAt),
|
|
2296
|
+
senderParticipantPosition: speakerPosition(line2.sender, participants),
|
|
2297
|
+
senderName: line2.sender,
|
|
2298
|
+
recipient: null,
|
|
2299
|
+
text: line2.text,
|
|
2300
|
+
normalizedText: null,
|
|
2301
|
+
metadata: null
|
|
2302
|
+
})),
|
|
2303
|
+
summaries: summary ? [
|
|
2304
|
+
{
|
|
2305
|
+
...summary,
|
|
2306
|
+
source: summary.source ?? source.name,
|
|
2307
|
+
content: summary.content ?? null,
|
|
2308
|
+
docUrl: summary.docUrl ?? null,
|
|
2309
|
+
externalCreatedAt: summary.externalCreatedAt ?? null,
|
|
2310
|
+
externalUpdatedAt: summary.externalUpdatedAt ?? null,
|
|
2311
|
+
metadata: summary.metadata ?? null
|
|
2312
|
+
}
|
|
2313
|
+
] : void 0,
|
|
2314
|
+
attachments: parts.files ?? void 0,
|
|
2315
|
+
documents: parts.documents ?? void 0,
|
|
2316
|
+
now
|
|
2317
|
+
});
|
|
2318
|
+
if (lines && !linked && !details.transcripts.some((t) => t.transcript.source === source.name && t.transcript.supersededAt === null))
|
|
2319
|
+
await store.saveMeeting({
|
|
2320
|
+
meeting: meeting2,
|
|
2321
|
+
transcripts: [await transcriptInput(lines, [], source.name, `${JSON.stringify(lines)}
|
|
2322
|
+
unlinked`, format)],
|
|
2323
|
+
now
|
|
2324
|
+
});
|
|
2325
|
+
await linkEvent(store, details, now, { create: source.createsEvents !== false });
|
|
2326
|
+
return details;
|
|
2327
|
+
}, "saveSourceMeeting");
|
|
2328
|
+
var startOf = /* @__PURE__ */ __name((m) => {
|
|
2329
|
+
const at = Date.parse(m.occurrence.startedAt);
|
|
2330
|
+
return Number.isFinite(at) ? at : Number.POSITIVE_INFINITY;
|
|
2331
|
+
}, "startOf");
|
|
2332
|
+
var indexSaved = /* @__PURE__ */ __name(async (store, accountIds, report) => {
|
|
2333
|
+
const indexSearch = store.indexSearch?.bind(store);
|
|
2334
|
+
if (!indexSearch || report.meetings === 0)
|
|
2335
|
+
return;
|
|
2336
|
+
for (const accountId of new Set(accountIds))
|
|
2337
|
+
try {
|
|
2338
|
+
await refreshMeetingIndex({ indexSearch }, accountId);
|
|
2339
|
+
} catch (error) {
|
|
2340
|
+
report.warnings.push({
|
|
2341
|
+
externalId: String(accountId),
|
|
2342
|
+
message: `search index not updated: ${error instanceof Error ? error.message : "failed"}`
|
|
2343
|
+
});
|
|
2344
|
+
}
|
|
2345
|
+
}, "indexSaved");
|
|
2346
|
+
var pull = /* @__PURE__ */ __name(async (source, store, options) => {
|
|
2347
|
+
const now = options.now ?? Date.now();
|
|
2348
|
+
for (const [name, ms2] of [
|
|
2349
|
+
["lookbackMs", options.lookbackMs ?? 0],
|
|
2350
|
+
["overlapMs", source.overlapMs ?? 0]
|
|
2351
|
+
])
|
|
2352
|
+
if (!Number.isSafeInteger(ms2) || ms2 < 0 || ms2 > 31 * 864e5)
|
|
2353
|
+
throw new Error(`${name} must be an integer from 0 through 31 days`);
|
|
2354
|
+
const lookbackMs = Math.max(options.lookbackMs ?? 0, source.overlapMs ?? 0);
|
|
2355
|
+
const cursor = options.rescan ? void 0 : await store.cursor(options.accountId);
|
|
2356
|
+
const since = options.since ?? cursor ?? new Date(now - 30 * 864e5).toISOString();
|
|
2357
|
+
timestamp2(since);
|
|
2358
|
+
const report = { meetings: 0, participants: 0, transcriptRows: 0, summaries: 0, warnings: [] };
|
|
2359
|
+
let failed = false;
|
|
2360
|
+
let firstFailed;
|
|
2361
|
+
const callers = /* @__PURE__ */ new Set();
|
|
2362
|
+
const linkCallers = /* @__PURE__ */ __name(async () => {
|
|
2363
|
+
if (callers.size === 0 || !store.linkCallers)
|
|
2364
|
+
return;
|
|
2365
|
+
try {
|
|
2366
|
+
await store.linkCallers(source.provider, [...callers]);
|
|
2367
|
+
} catch (error) {
|
|
2368
|
+
report.warnings.push({
|
|
2369
|
+
externalId: source.provider,
|
|
2370
|
+
message: `callers not linked to people: ${error instanceof Error ? error.message : "failed"}`
|
|
2371
|
+
});
|
|
2372
|
+
}
|
|
2373
|
+
}, "linkCallers");
|
|
2374
|
+
const from = timestamp2(since) - lookbackMs;
|
|
2375
|
+
const meetings = (await source.meetings(lookbackMs === 0 ? since : new Date(from).toISOString())).toSorted((a, b) => startOf(a) - startOf(b));
|
|
2376
|
+
for (const [index, m] of meetings.entries()) {
|
|
2377
|
+
const stop = options.budget?.take() ?? null;
|
|
2378
|
+
if (stop) {
|
|
2379
|
+
report.stopped = stop;
|
|
2380
|
+
report.remaining = meetings.length - index;
|
|
2381
|
+
const reached = Math.min(startOf(m), firstFailed ?? Number.POSITIVE_INFINITY);
|
|
2382
|
+
if (Number.isFinite(reached) && reached > timestamp2(since))
|
|
2383
|
+
await store.setCursor(options.accountId, new Date(reached).toISOString(), now);
|
|
2384
|
+
await linkCallers();
|
|
2385
|
+
return report;
|
|
2386
|
+
}
|
|
2387
|
+
const id5 = m.occurrence.id;
|
|
2388
|
+
const failedHere = /* @__PURE__ */ __name(() => {
|
|
2389
|
+
failed = true;
|
|
2390
|
+
firstFailed ??= startOf(m);
|
|
2391
|
+
}, "failedHere");
|
|
2392
|
+
const read = /* @__PURE__ */ __name(async (part, call) => {
|
|
2393
|
+
try {
|
|
2394
|
+
return await call();
|
|
2395
|
+
} catch (error) {
|
|
2396
|
+
failedHere();
|
|
2397
|
+
const message = error instanceof Error ? error.message : "could not be read";
|
|
2398
|
+
report.warnings.push({ externalId: id5, message: `${part}: ${message}` });
|
|
2399
|
+
return void 0;
|
|
2400
|
+
}
|
|
2401
|
+
}, "read");
|
|
2402
|
+
try {
|
|
2403
|
+
const sourceParticipants = await read("participants", () => source.participants(id5));
|
|
2404
|
+
const participants = participantInputs(source.provider, id5, sourceParticipants ?? [], options.accountId);
|
|
2405
|
+
const names = /* @__PURE__ */ new Map();
|
|
2406
|
+
for (const p of participants)
|
|
2407
|
+
if (p.displayName !== null) {
|
|
2408
|
+
const identities = names.get(p.displayName) ?? /* @__PURE__ */ new Set();
|
|
2409
|
+
identities.add(p.identity.externalId);
|
|
2410
|
+
names.set(p.displayName, identities);
|
|
2411
|
+
}
|
|
2412
|
+
if ([...names.values()].some((ids2) => ids2.size > 1))
|
|
2413
|
+
report.warnings.push({ externalId: id5, message: "Participant names are ambiguous" });
|
|
2414
|
+
const lines = await read("transcript", () => source.transcript(id5));
|
|
2415
|
+
const chat = await read("chat", () => source.chat(id5));
|
|
2416
|
+
const summary = await read("summary", () => source.summary(id5));
|
|
2417
|
+
const attachments = await read("files", () => source.files(id5));
|
|
2418
|
+
const listDocuments = source.documents?.bind(source);
|
|
2419
|
+
const documents = listDocuments ? await read("documents", () => listDocuments(id5)) : void 0;
|
|
2420
|
+
await saveSourceMeeting(source, store, m, { participants: sourceParticipants, transcript: lines, chat, summary, files: attachments, documents }, { accountId: options.accountId, now });
|
|
2421
|
+
for (const p of participants)
|
|
2422
|
+
if (p.identity.phone)
|
|
2423
|
+
callers.add(p.identity.externalId);
|
|
2424
|
+
report.meetings++;
|
|
2425
|
+
report.participants += participants.length;
|
|
2426
|
+
report.transcriptRows += lines?.length ?? 0;
|
|
2427
|
+
report.summaries += summary ? 1 : 0;
|
|
2428
|
+
} catch (error) {
|
|
2429
|
+
failedHere();
|
|
2430
|
+
report.warnings.push({ externalId: id5, message: error instanceof Error ? error.message : "Meeting pull failed" });
|
|
2431
|
+
}
|
|
2432
|
+
}
|
|
2433
|
+
await linkCallers();
|
|
2434
|
+
await indexSaved(store, [options.accountId], report);
|
|
2435
|
+
if (!failed)
|
|
2436
|
+
await store.setCursor(options.accountId, new Date(now).toISOString(), now);
|
|
2437
|
+
return report;
|
|
2438
|
+
}, "pull");
|
|
2439
|
+
|
|
2440
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/meetings/transcript-text.js
|
|
2136
2441
|
var TranscriptTextError = class extends Error {
|
|
2137
2442
|
static {
|
|
2138
2443
|
__name(this, "TranscriptTextError");
|
|
@@ -2187,7 +2492,7 @@ var parseTranscriptText = /* @__PURE__ */ __name((input) => {
|
|
|
2187
2492
|
return { header, lines };
|
|
2188
2493
|
}, "parseTranscriptText");
|
|
2189
2494
|
|
|
2190
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2495
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/meetings/vtt.js
|
|
2191
2496
|
var VttError = class extends Error {
|
|
2192
2497
|
static {
|
|
2193
2498
|
__name(this, "VttError");
|
|
@@ -2239,7 +2544,7 @@ var parseVtt = /* @__PURE__ */ __name((input) => {
|
|
|
2239
2544
|
return cues;
|
|
2240
2545
|
}, "parseVtt");
|
|
2241
2546
|
|
|
2242
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2547
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/meetings/import.js
|
|
2243
2548
|
var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now()) => {
|
|
2244
2549
|
const report = { meetings: 0, participants: 0, transcriptRows: 0, summaries: 0, warnings: [] };
|
|
2245
2550
|
for (const file of files) {
|
|
@@ -2265,6 +2570,7 @@ var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now())
|
|
|
2265
2570
|
});
|
|
2266
2571
|
}
|
|
2267
2572
|
}
|
|
2573
|
+
await indexSaved(store, files.map((file) => file.meeting.accountId), report);
|
|
2268
2574
|
const zones = new Set(files.map((file) => file.meeting.timezone).filter((zone2) => zone2 !== null && zone2 !== void 0));
|
|
2269
2575
|
const [zone] = zones;
|
|
2270
2576
|
if (zones.size === 1 && zone)
|
|
@@ -2272,10 +2578,10 @@ var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now())
|
|
|
2272
2578
|
return report;
|
|
2273
2579
|
}, "importFiles");
|
|
2274
2580
|
|
|
2275
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2581
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/meetings/links.js
|
|
2276
2582
|
var CHAT_MESSAGES_READ = 1e5;
|
|
2277
2583
|
|
|
2278
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2584
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/meetings/provider.js
|
|
2279
2585
|
var snapshotMeetingScope = /* @__PURE__ */ __name((scope2) => {
|
|
2280
2586
|
const provider = scope2?.provider;
|
|
2281
2587
|
const account = scope2?.account;
|
|
@@ -2284,7 +2590,18 @@ var snapshotMeetingScope = /* @__PURE__ */ __name((scope2) => {
|
|
|
2284
2590
|
return Object.freeze({ provider, account });
|
|
2285
2591
|
}, "snapshotMeetingScope");
|
|
2286
2592
|
|
|
2287
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2593
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/meetings/meeting-management.js
|
|
2594
|
+
var MEETING_FIELD_KEYS = Object.freeze({
|
|
2595
|
+
title: "title",
|
|
2596
|
+
kind: "kind",
|
|
2597
|
+
startTime: "start_time",
|
|
2598
|
+
durationMinutes: "duration_minutes",
|
|
2599
|
+
timezone: "timezone",
|
|
2600
|
+
agenda: "agenda"
|
|
2601
|
+
});
|
|
2602
|
+
var MEETING_FIELDS2 = Object.freeze(Object.keys(MEETING_FIELD_KEYS));
|
|
2603
|
+
var meetingFieldFlag = /* @__PURE__ */ __name((field) => `--${MEETING_FIELD_KEYS[field].replaceAll("_", "-")}`, "meetingFieldFlag");
|
|
2604
|
+
var SNAKE_CASE = /^[a-z][a-z0-9]*(?:_[a-z0-9]+)*$/;
|
|
2288
2605
|
var checkCancelled = /* @__PURE__ */ __name((signal) => {
|
|
2289
2606
|
if (!signal?.aborted)
|
|
2290
2607
|
return;
|
|
@@ -2294,14 +2611,18 @@ var checkCancelled = /* @__PURE__ */ __name((signal) => {
|
|
|
2294
2611
|
throw new CliError(timeout ? "timeout" : "cancelled", timeout ? "meeting operation timed out" : "meeting operation cancelled");
|
|
2295
2612
|
}, "checkCancelled");
|
|
2296
2613
|
var dispatchMeetingMutation = /* @__PURE__ */ __name(async (options, dispatch) => {
|
|
2297
|
-
const { apply, dryRun, signal } = options;
|
|
2614
|
+
const { apply, dryRun, signal, confirm } = options;
|
|
2298
2615
|
checkCancelled(signal);
|
|
2299
2616
|
if (apply !== true || dryRun)
|
|
2300
2617
|
return { applied: false };
|
|
2618
|
+
if (confirm) {
|
|
2619
|
+
await confirm();
|
|
2620
|
+
checkCancelled(signal);
|
|
2621
|
+
}
|
|
2301
2622
|
return { applied: true, value: await dispatch(signal) };
|
|
2302
2623
|
}, "dispatchMeetingMutation");
|
|
2303
2624
|
|
|
2304
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2625
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/meetings/meeting-context.js
|
|
2305
2626
|
var id2 = /* @__PURE__ */ __name((value) => {
|
|
2306
2627
|
if (typeof value !== "number" || !Number.isSafeInteger(value) || value < 1)
|
|
2307
2628
|
throw new CliError("validation_error", "meeting context identifiers must be positive integers");
|
|
@@ -2423,7 +2744,7 @@ var createMeetingContext = /* @__PURE__ */ __name((scope2, accountId, ports) =>
|
|
|
2423
2744
|
};
|
|
2424
2745
|
}, "createMeetingContext");
|
|
2425
2746
|
|
|
2426
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2747
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/meetings/preparation-context.js
|
|
2427
2748
|
var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
|
|
2428
2749
|
if (!original || typeof original !== "object" || Array.isArray(original))
|
|
2429
2750
|
throw new CliError("validation_error", "meeting preparation context is required");
|
|
@@ -2448,7 +2769,7 @@ var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
|
|
|
2448
2769
|
return { ...input, limit, maxReadBytes };
|
|
2449
2770
|
}, "validateMeetingPreparationContext");
|
|
2450
2771
|
|
|
2451
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2772
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-answer.js
|
|
2452
2773
|
var count5 = pipe(number(), integer(), minValue(0));
|
|
2453
2774
|
var id3 = pipe(string(), minLength(1));
|
|
2454
2775
|
var meetingProjectEvidence = strictObject({
|
|
@@ -2569,7 +2890,7 @@ var meetingProjectEvidenceAnswer = /* @__PURE__ */ __name((page, prepared, comma
|
|
|
2569
2890
|
};
|
|
2570
2891
|
}, "meetingProjectEvidenceAnswer");
|
|
2571
2892
|
|
|
2572
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2893
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/meetings/search-validation.js
|
|
2573
2894
|
var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
|
|
2574
2895
|
const integer3 = /* @__PURE__ */ __name((value, low, high) => Number.isSafeInteger(value) && value >= low && value <= high, "integer");
|
|
2575
2896
|
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) || [
|
|
@@ -2589,7 +2910,7 @@ var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
|
|
|
2589
2910
|
throw new CliError("validation_error", "choose one project selector and one tag or topic selector");
|
|
2590
2911
|
}, "validateMeetingHitSearch");
|
|
2591
2912
|
|
|
2592
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2913
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-query.js
|
|
2593
2914
|
var ids = {
|
|
2594
2915
|
meeting_id: "meetingId",
|
|
2595
2916
|
identity_id: "participantIdentityId",
|
|
@@ -2680,7 +3001,7 @@ var prepareMeetingProjectEvidence = /* @__PURE__ */ __name((project, request = {
|
|
|
2680
3001
|
return { project: project.trim(), options, query: frozen.join(" AND ") };
|
|
2681
3002
|
}, "prepareMeetingProjectEvidence");
|
|
2682
3003
|
|
|
2683
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3004
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/meetings/project-evidence.js
|
|
2684
3005
|
var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project, request = {}, now = Date.now()) => {
|
|
2685
3006
|
const prepared = prepareMeetingProjectEvidence(project, request, now);
|
|
2686
3007
|
const page = await read(prepared.project, prepared.options);
|
|
@@ -2688,207 +3009,7 @@ var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project, re
|
|
|
2688
3009
|
return meetingProjectEvidenceAnswer(page, prepared);
|
|
2689
3010
|
}, "readMeetingProjectEvidence");
|
|
2690
3011
|
|
|
2691
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2692
|
-
var participantInput = /* @__PURE__ */ __name((p, provider, occurrenceId2, position, accountId) => {
|
|
2693
|
-
const { identityExternalId, phone, ...fields2 } = p;
|
|
2694
|
-
const externalId = identityExternalId ?? (p.email ? `email:${p.email.toLowerCase()}` : p.externalId) ?? `name:${p.displayName ?? "unknown"}@${accountId}/${occurrenceId2}:${position}`;
|
|
2695
|
-
return {
|
|
2696
|
-
...fields2,
|
|
2697
|
-
identity: {
|
|
2698
|
-
provider,
|
|
2699
|
-
externalId,
|
|
2700
|
-
name: p.displayName,
|
|
2701
|
-
...phone?.trim() ? { phone } : {},
|
|
2702
|
-
metadata: p.metadata,
|
|
2703
|
-
associatePerson: Boolean(identityExternalId?.trim() || p.email?.trim() || p.externalId?.trim())
|
|
2704
|
-
}
|
|
2705
|
-
};
|
|
2706
|
-
}, "participantInput");
|
|
2707
|
-
var participantInputs = /* @__PURE__ */ __name((provider, occurrenceId2, list, accountId) => list.map((p, i) => participantInput(p, provider, occurrenceId2, i, accountId)), "participantInputs");
|
|
2708
|
-
var sourceMeetingInput = /* @__PURE__ */ __name((m, accountId, participantsCount, kept) => {
|
|
2709
|
-
const startedAt = timestamp2(m.occurrence.startedAt);
|
|
2710
|
-
const given = m.occurrence.endedAt === null ? null : timestamp2(m.occurrence.endedAt);
|
|
2711
|
-
if (given !== null && given < startedAt)
|
|
2712
|
-
throw new Error("Meeting ends before it starts");
|
|
2713
|
-
const keptEnd = kept?.endedAt ?? null;
|
|
2714
|
-
const endedAt = given ?? (keptEnd !== null && keptEnd >= startedAt ? keptEnd : null);
|
|
2715
|
-
const count7 = participantsCount === null && kept ? kept.participantsCount : participantsCount;
|
|
2716
|
-
const metadata = kept?.metadata && m.metadata ? { ...kept.metadata, ...m.metadata } : m.metadata ?? kept?.metadata ?? null;
|
|
2717
|
-
const meeting2 = {
|
|
2718
|
-
accountId,
|
|
2719
|
-
externalId: m.occurrence.id,
|
|
2720
|
-
title: m.occurrence.title,
|
|
2721
|
-
description: m.description ?? kept?.description ?? null,
|
|
2722
|
-
location: m.location ?? kept?.location ?? null,
|
|
2723
|
-
joinUrl: m.joinUrl ?? m.series?.joinUrl ?? kept?.joinUrl ?? null,
|
|
2724
|
-
startedAt,
|
|
2725
|
-
endedAt,
|
|
2726
|
-
durationMs: endedAt === null ? null : endedAt - startedAt,
|
|
2727
|
-
timezone: m.timezone ?? kept?.timezone ?? null,
|
|
2728
|
-
hostIdentityId: kept?.hostIdentityId ?? null,
|
|
2729
|
-
...count7 === void 0 ? {} : { participantsCount: count7 },
|
|
2730
|
-
metadata,
|
|
2731
|
-
deletedAt: null
|
|
2732
|
-
};
|
|
2733
|
-
if (m.series)
|
|
2734
|
-
meeting2.series = {
|
|
2735
|
-
externalId: m.series.id,
|
|
2736
|
-
title: m.series.title,
|
|
2737
|
-
description: null,
|
|
2738
|
-
kind: m.series.kind ?? null,
|
|
2739
|
-
recurrence: m.series.recurrence ?? null,
|
|
2740
|
-
hostIdentityId: null,
|
|
2741
|
-
joinUrl: m.series.joinUrl ?? null,
|
|
2742
|
-
metadata: null,
|
|
2743
|
-
deletedAt: null
|
|
2744
|
-
};
|
|
2745
|
-
return meeting2;
|
|
2746
|
-
}, "sourceMeetingInput");
|
|
2747
|
-
var saveSourceMeeting = /* @__PURE__ */ __name(async (source, store, m, parts, { accountId, now, kept }) => {
|
|
2748
|
-
const id5 = m.occurrence.id;
|
|
2749
|
-
const { participants: sourceParticipants, transcript: lines, chat, summary } = parts;
|
|
2750
|
-
const participants = participantInputs(source.provider, id5, sourceParticipants ?? [], accountId);
|
|
2751
|
-
const meeting2 = sourceMeetingInput(m, accountId, sourceParticipants === void 0 ? void 0 : sourceParticipants?.length ?? null, kept);
|
|
2752
|
-
const linked = sourceParticipants !== void 0;
|
|
2753
|
-
const format = source.transcriptFormat ?? null;
|
|
2754
|
-
const transcripts = lines && linked ? [await transcriptInput(lines, participants, source.name, void 0, format)] : void 0;
|
|
2755
|
-
const details = await store.saveMeeting({
|
|
2756
|
-
meeting: meeting2,
|
|
2757
|
-
participants: sourceParticipants ? participants : void 0,
|
|
2758
|
-
transcripts,
|
|
2759
|
-
chat: chat?.map((line2) => ({
|
|
2760
|
-
externalId: null,
|
|
2761
|
-
sentAt: timestamp2(line2.sentAt),
|
|
2762
|
-
senderParticipantPosition: speakerPosition(line2.sender, participants),
|
|
2763
|
-
senderName: line2.sender,
|
|
2764
|
-
recipient: null,
|
|
2765
|
-
text: line2.text,
|
|
2766
|
-
normalizedText: null,
|
|
2767
|
-
metadata: null
|
|
2768
|
-
})),
|
|
2769
|
-
summaries: summary ? [
|
|
2770
|
-
{
|
|
2771
|
-
...summary,
|
|
2772
|
-
source: summary.source ?? source.name,
|
|
2773
|
-
content: summary.content ?? null,
|
|
2774
|
-
docUrl: summary.docUrl ?? null,
|
|
2775
|
-
externalCreatedAt: summary.externalCreatedAt ?? null,
|
|
2776
|
-
externalUpdatedAt: summary.externalUpdatedAt ?? null,
|
|
2777
|
-
metadata: summary.metadata ?? null
|
|
2778
|
-
}
|
|
2779
|
-
] : void 0,
|
|
2780
|
-
attachments: parts.files ?? void 0,
|
|
2781
|
-
documents: parts.documents ?? void 0,
|
|
2782
|
-
now
|
|
2783
|
-
});
|
|
2784
|
-
if (lines && !linked && !details.transcripts.some((t) => t.transcript.source === source.name && t.transcript.supersededAt === null))
|
|
2785
|
-
await store.saveMeeting({
|
|
2786
|
-
meeting: meeting2,
|
|
2787
|
-
transcripts: [await transcriptInput(lines, [], source.name, `${JSON.stringify(lines)}
|
|
2788
|
-
unlinked`, format)],
|
|
2789
|
-
now
|
|
2790
|
-
});
|
|
2791
|
-
await linkEvent(store, details, now, { create: source.createsEvents !== false });
|
|
2792
|
-
return details;
|
|
2793
|
-
}, "saveSourceMeeting");
|
|
2794
|
-
var startOf = /* @__PURE__ */ __name((m) => {
|
|
2795
|
-
const at = Date.parse(m.occurrence.startedAt);
|
|
2796
|
-
return Number.isFinite(at) ? at : Number.POSITIVE_INFINITY;
|
|
2797
|
-
}, "startOf");
|
|
2798
|
-
var pull = /* @__PURE__ */ __name(async (source, store, options) => {
|
|
2799
|
-
const now = options.now ?? Date.now();
|
|
2800
|
-
for (const [name, ms2] of [
|
|
2801
|
-
["lookbackMs", options.lookbackMs ?? 0],
|
|
2802
|
-
["overlapMs", source.overlapMs ?? 0]
|
|
2803
|
-
])
|
|
2804
|
-
if (!Number.isSafeInteger(ms2) || ms2 < 0 || ms2 > 31 * 864e5)
|
|
2805
|
-
throw new Error(`${name} must be an integer from 0 through 31 days`);
|
|
2806
|
-
const lookbackMs = Math.max(options.lookbackMs ?? 0, source.overlapMs ?? 0);
|
|
2807
|
-
const cursor = options.rescan ? void 0 : await store.cursor(options.accountId);
|
|
2808
|
-
const since = options.since ?? cursor ?? new Date(now - 30 * 864e5).toISOString();
|
|
2809
|
-
timestamp2(since);
|
|
2810
|
-
const report = { meetings: 0, participants: 0, transcriptRows: 0, summaries: 0, warnings: [] };
|
|
2811
|
-
let failed = false;
|
|
2812
|
-
let firstFailed;
|
|
2813
|
-
const callers = /* @__PURE__ */ new Set();
|
|
2814
|
-
const linkCallers = /* @__PURE__ */ __name(async () => {
|
|
2815
|
-
if (callers.size === 0 || !store.linkCallers)
|
|
2816
|
-
return;
|
|
2817
|
-
try {
|
|
2818
|
-
await store.linkCallers(source.provider, [...callers]);
|
|
2819
|
-
} catch (error) {
|
|
2820
|
-
report.warnings.push({
|
|
2821
|
-
externalId: source.provider,
|
|
2822
|
-
message: `callers not linked to people: ${error instanceof Error ? error.message : "failed"}`
|
|
2823
|
-
});
|
|
2824
|
-
}
|
|
2825
|
-
}, "linkCallers");
|
|
2826
|
-
const from = timestamp2(since) - lookbackMs;
|
|
2827
|
-
const meetings = (await source.meetings(lookbackMs === 0 ? since : new Date(from).toISOString())).toSorted((a, b) => startOf(a) - startOf(b));
|
|
2828
|
-
for (const [index, m] of meetings.entries()) {
|
|
2829
|
-
const stop = options.budget?.take() ?? null;
|
|
2830
|
-
if (stop) {
|
|
2831
|
-
report.stopped = stop;
|
|
2832
|
-
report.remaining = meetings.length - index;
|
|
2833
|
-
const reached = Math.min(startOf(m), firstFailed ?? Number.POSITIVE_INFINITY);
|
|
2834
|
-
if (Number.isFinite(reached) && reached > timestamp2(since))
|
|
2835
|
-
await store.setCursor(options.accountId, new Date(reached).toISOString(), now);
|
|
2836
|
-
await linkCallers();
|
|
2837
|
-
return report;
|
|
2838
|
-
}
|
|
2839
|
-
const id5 = m.occurrence.id;
|
|
2840
|
-
const failedHere = /* @__PURE__ */ __name(() => {
|
|
2841
|
-
failed = true;
|
|
2842
|
-
firstFailed ??= startOf(m);
|
|
2843
|
-
}, "failedHere");
|
|
2844
|
-
const read = /* @__PURE__ */ __name(async (part, call) => {
|
|
2845
|
-
try {
|
|
2846
|
-
return await call();
|
|
2847
|
-
} catch (error) {
|
|
2848
|
-
failedHere();
|
|
2849
|
-
const message = error instanceof Error ? error.message : "could not be read";
|
|
2850
|
-
report.warnings.push({ externalId: id5, message: `${part}: ${message}` });
|
|
2851
|
-
return void 0;
|
|
2852
|
-
}
|
|
2853
|
-
}, "read");
|
|
2854
|
-
try {
|
|
2855
|
-
const sourceParticipants = await read("participants", () => source.participants(id5));
|
|
2856
|
-
const participants = participantInputs(source.provider, id5, sourceParticipants ?? [], options.accountId);
|
|
2857
|
-
const names = /* @__PURE__ */ new Map();
|
|
2858
|
-
for (const p of participants)
|
|
2859
|
-
if (p.displayName !== null) {
|
|
2860
|
-
const identities = names.get(p.displayName) ?? /* @__PURE__ */ new Set();
|
|
2861
|
-
identities.add(p.identity.externalId);
|
|
2862
|
-
names.set(p.displayName, identities);
|
|
2863
|
-
}
|
|
2864
|
-
if ([...names.values()].some((ids2) => ids2.size > 1))
|
|
2865
|
-
report.warnings.push({ externalId: id5, message: "Participant names are ambiguous" });
|
|
2866
|
-
const lines = await read("transcript", () => source.transcript(id5));
|
|
2867
|
-
const chat = await read("chat", () => source.chat(id5));
|
|
2868
|
-
const summary = await read("summary", () => source.summary(id5));
|
|
2869
|
-
const attachments = await read("files", () => source.files(id5));
|
|
2870
|
-
const listDocuments = source.documents?.bind(source);
|
|
2871
|
-
const documents = listDocuments ? await read("documents", () => listDocuments(id5)) : void 0;
|
|
2872
|
-
await saveSourceMeeting(source, store, m, { participants: sourceParticipants, transcript: lines, chat, summary, files: attachments, documents }, { accountId: options.accountId, now });
|
|
2873
|
-
for (const p of participants)
|
|
2874
|
-
if (p.identity.phone)
|
|
2875
|
-
callers.add(p.identity.externalId);
|
|
2876
|
-
report.meetings++;
|
|
2877
|
-
report.participants += participants.length;
|
|
2878
|
-
report.transcriptRows += lines?.length ?? 0;
|
|
2879
|
-
report.summaries += summary ? 1 : 0;
|
|
2880
|
-
} catch (error) {
|
|
2881
|
-
failedHere();
|
|
2882
|
-
report.warnings.push({ externalId: id5, message: error instanceof Error ? error.message : "Meeting pull failed" });
|
|
2883
|
-
}
|
|
2884
|
-
}
|
|
2885
|
-
await linkCallers();
|
|
2886
|
-
if (!failed)
|
|
2887
|
-
await store.setCursor(options.accountId, new Date(now).toISOString(), now);
|
|
2888
|
-
return report;
|
|
2889
|
-
}, "pull");
|
|
2890
|
-
|
|
2891
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/meetings/read-answers.js
|
|
3012
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/meetings/read-answers.js
|
|
2892
3013
|
var text5 = string();
|
|
2893
3014
|
var count6 = pipe(number(), integer(), minValue(0));
|
|
2894
3015
|
var id4 = pipe(number(), integer(), minValue(1));
|
|
@@ -2977,7 +3098,8 @@ var meetingParticipants = strictObject({
|
|
|
2977
3098
|
identity_id: id4,
|
|
2978
3099
|
display_name: nullable(text5),
|
|
2979
3100
|
email: nullable(text5),
|
|
2980
|
-
person: nullable(strictObject({ ref: text5, name: nullable(text5) }))
|
|
3101
|
+
person: nullable(strictObject({ ref: text5, name: nullable(text5) })),
|
|
3102
|
+
untrusted: optional(array(text5))
|
|
2981
3103
|
})),
|
|
2982
3104
|
/** Several identities on one page are observations, never speaker attribution or person links. */
|
|
2983
3105
|
ambiguity: strictObject({ scope: literal("page"), multiple_identities: boolean(), identity_ids: array(id4) }),
|
|
@@ -3029,7 +3151,9 @@ var meetingPassage = strictObject({
|
|
|
3029
3151
|
speaker_participant_id: nullable(id4),
|
|
3030
3152
|
speaker_name: nullable(text5),
|
|
3031
3153
|
text: text5,
|
|
3032
|
-
revision
|
|
3154
|
+
revision,
|
|
3155
|
+
/** What people said: `speaker_name` and `text`. */
|
|
3156
|
+
untrusted: optional(array(text5))
|
|
3033
3157
|
}))
|
|
3034
3158
|
});
|
|
3035
3159
|
var event = strictObject({
|
|
@@ -3083,13 +3207,14 @@ var eventItem = /* @__PURE__ */ __name((one) => ({
|
|
|
3083
3207
|
updated_at: new Date(one.updatedAt).toISOString()
|
|
3084
3208
|
}), "eventItem");
|
|
3085
3209
|
|
|
3086
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3210
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/meetings/read-through.js
|
|
3087
3211
|
var MEETING_SERVER_BOUNDS = { calls: 3, pages: 2 };
|
|
3088
3212
|
var ISSUES = {
|
|
3089
3213
|
offline: ["permission_error", "meetings.server-offline"],
|
|
3090
3214
|
unreachable: ["network_error", "meetings.server-unreachable"],
|
|
3091
3215
|
not_signed_in: ["authentication_error", "meetings.server-signed-out"],
|
|
3092
3216
|
refused: ["permission_error", "meetings.server-refused"],
|
|
3217
|
+
rate_limited: ["rate_limited", "meetings.server-rate-limited"],
|
|
3093
3218
|
failed: ["provider_error", "meetings.server-failed"]
|
|
3094
3219
|
};
|
|
3095
3220
|
var metaOf = /* @__PURE__ */ __name((reason, provider) => {
|
|
@@ -3102,6 +3227,7 @@ var WHY = {
|
|
|
3102
3227
|
unreachable: /* @__PURE__ */ __name((provider) => `${provider} could not be reached \u2014 the answer is the store's`, "unreachable"),
|
|
3103
3228
|
not_signed_in: /* @__PURE__ */ __name((provider) => `not signed in to ${provider} \u2014 the answer is the store's`, "not_signed_in"),
|
|
3104
3229
|
refused: /* @__PURE__ */ __name((provider) => `${provider} refused the request \u2014 the answer is the store's`, "refused"),
|
|
3230
|
+
rate_limited: /* @__PURE__ */ __name((provider) => `${provider} asked to wait before more requests \u2014 the answer is the store's`, "rate_limited"),
|
|
3105
3231
|
failed: /* @__PURE__ */ __name((provider) => `${provider} could not be read \u2014 the answer is the store's`, "failed"),
|
|
3106
3232
|
no_upcoming: /* @__PURE__ */ __name((provider) => `${provider} lists no meeting before it starts \u2014 upcoming ones are not in the answer`, "no_upcoming")
|
|
3107
3233
|
};
|
|
@@ -3113,6 +3239,8 @@ var reasonOf = /* @__PURE__ */ __name((error) => {
|
|
|
3113
3239
|
return "refused";
|
|
3114
3240
|
if (code === "network_error")
|
|
3115
3241
|
return "unreachable";
|
|
3242
|
+
if (code === "rate_limited")
|
|
3243
|
+
return "rate_limited";
|
|
3116
3244
|
return "failed";
|
|
3117
3245
|
}, "reasonOf");
|
|
3118
3246
|
var refusal = /* @__PURE__ */ __name((reason, provider, error) => error ?? new CliError("validation_error", `--backend server: ${WHY[reason](provider).replace(/ — .*$/, "")}; use --backend archive or both`, { reason }), "refusal");
|
|
@@ -3222,14 +3350,17 @@ var askServerForList = /* @__PURE__ */ __name(async (source, store, accountId, q
|
|
|
3222
3350
|
for (const call of asked) {
|
|
3223
3351
|
let cursor = null;
|
|
3224
3352
|
for (let page = 0; page < MEETING_SERVER_BOUNDS.pages; page++) {
|
|
3353
|
+
access.signal?.throwIfAborted();
|
|
3225
3354
|
step.report.calls += 1;
|
|
3226
3355
|
let answer;
|
|
3227
3356
|
try {
|
|
3228
|
-
answer = await source.find(call.window, call.terms, cursor);
|
|
3357
|
+
answer = await source.find(call.window, call.terms, cursor, access.signal);
|
|
3229
3358
|
} catch (error) {
|
|
3359
|
+
access.signal?.throwIfAborted();
|
|
3230
3360
|
return skip(reasonOf(error), error);
|
|
3231
3361
|
}
|
|
3232
3362
|
for (const found of answer.meetings) {
|
|
3363
|
+
access.signal?.throwIfAborted();
|
|
3233
3364
|
if (seen.has(found.meeting.occurrence.id))
|
|
3234
3365
|
continue;
|
|
3235
3366
|
seen.add(found.meeting.occurrence.id);
|
|
@@ -3354,11 +3485,13 @@ var meetingShowThrough = /* @__PURE__ */ __name(async (source, store, accountId,
|
|
|
3354
3485
|
return fromStore("unsupported");
|
|
3355
3486
|
if (access.offline)
|
|
3356
3487
|
return fromStore("offline");
|
|
3488
|
+
access.signal?.throwIfAborted();
|
|
3357
3489
|
step.report.calls = 1;
|
|
3358
3490
|
let full;
|
|
3359
3491
|
try {
|
|
3360
|
-
full = await source.get(providerId);
|
|
3492
|
+
full = await source.get(providerId, access.signal);
|
|
3361
3493
|
} catch (error) {
|
|
3494
|
+
access.signal?.throwIfAborted();
|
|
3362
3495
|
return fromStore(reasonOf(error), error);
|
|
3363
3496
|
}
|
|
3364
3497
|
if (!full) {
|
|
@@ -3371,10 +3504,10 @@ var meetingShowThrough = /* @__PURE__ */ __name(async (source, store, accountId,
|
|
|
3371
3504
|
return { details: fresh, foundIn: step.found.get(details.meeting.id) ?? "server", server: step.report };
|
|
3372
3505
|
}, "meetingShowThrough");
|
|
3373
3506
|
|
|
3374
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3507
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/meetings/recording-transfer.js
|
|
3375
3508
|
var strongRecordingValidator = /* @__PURE__ */ __name((value) => typeof value === "string" && value.length <= 1024 && /^"[\x21\x23-\x7e\x80-\xff]*"$/.test(value), "strongRecordingValidator");
|
|
3376
3509
|
|
|
3377
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3510
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/meetings/related-history.js
|
|
3378
3511
|
var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
|
|
3379
3512
|
if (!original || typeof original !== "object" || Array.isArray(original))
|
|
3380
3513
|
throw new CliError("validation_error", "related history request is required");
|
|
@@ -3404,14 +3537,14 @@ var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
|
|
|
3404
3537
|
return { ...input, anchorIds: [...new Set(input.anchorIds)], limit, maxReadBytes };
|
|
3405
3538
|
}, "validateMeetingRelatedHistory");
|
|
3406
3539
|
|
|
3407
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3540
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/meetings/review.js
|
|
3408
3541
|
var REVIEW_LIMIT = { default: 50, most: 200 };
|
|
3409
3542
|
|
|
3410
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3543
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/meetings/save-hints.js
|
|
3411
3544
|
var SAVE_HELP = `Worth keeping \u2014 a decision, a promise, a preference? Record it with \`memo facts add\` or
|
|
3412
3545
|
\`memo memories add\`, citing the msg: locator or meeting: reference as --evidence.`;
|
|
3413
3546
|
|
|
3414
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3547
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/meetings/series-history.js
|
|
3415
3548
|
var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
|
|
3416
3549
|
input.signal?.throwIfAborted();
|
|
3417
3550
|
if (!Number.isSafeInteger(input.accountId) || input.accountId <= 0)
|
|
@@ -3432,10 +3565,10 @@ var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
|
|
|
3432
3565
|
return { ...input, limit, maxReadBytes };
|
|
3433
3566
|
}, "validateMeetingSeriesHistory");
|
|
3434
3567
|
|
|
3435
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3568
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/meetings/upcoming-validation.js
|
|
3436
3569
|
var occurrenceId = /* @__PURE__ */ __name((value) => typeof value === "string" && value.trim().length > 0 && value.length <= 1e3 && !/[\0\r\n]/.test(value), "occurrenceId");
|
|
3437
3570
|
|
|
3438
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3571
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/meetings/series-inventory-validation.js
|
|
3439
3572
|
function invalid4(field, response = false) {
|
|
3440
3573
|
throw new CliError(response ? "invalid_response" : "validation_error", `invalid meeting inventory ${field}`);
|
|
3441
3574
|
}
|
|
@@ -3464,7 +3597,7 @@ var validateMeetingSeriesInventoryCursor = /* @__PURE__ */ __name((value) => {
|
|
|
3464
3597
|
cursorDetails(value);
|
|
3465
3598
|
}, "validateMeetingSeriesInventoryCursor");
|
|
3466
3599
|
|
|
3467
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3600
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/meetings/tag-answers.js
|
|
3468
3601
|
var text6 = string();
|
|
3469
3602
|
var storeId = pipe(number(), integer(), minValue(1));
|
|
3470
3603
|
var meetingTagChange = strictObject({
|
|
@@ -3508,12 +3641,16 @@ export {
|
|
|
3508
3641
|
rangeOf,
|
|
3509
3642
|
windowOf,
|
|
3510
3643
|
readsZone,
|
|
3644
|
+
MEETING_CALL_DIRECTIONS,
|
|
3511
3645
|
formatMeetingReference,
|
|
3512
3646
|
parseMeetingReference,
|
|
3513
3647
|
canonicalMeetingReference,
|
|
3648
|
+
meetingCall,
|
|
3649
|
+
meetingCallItem,
|
|
3514
3650
|
meeting,
|
|
3515
3651
|
MEETING_QUERY,
|
|
3516
3652
|
MEETING_DOCUMENT_ROLES,
|
|
3653
|
+
TRANSCRIPT_WORDS,
|
|
3517
3654
|
READ_BUDGET_EXCEEDED,
|
|
3518
3655
|
meetingHit,
|
|
3519
3656
|
meetingTranscript,
|
|
@@ -3571,12 +3708,19 @@ export {
|
|
|
3571
3708
|
parseMeetingQuery,
|
|
3572
3709
|
meetingWordsQuery,
|
|
3573
3710
|
transcriptLanguage,
|
|
3711
|
+
refreshMeetingIndex,
|
|
3712
|
+
pull,
|
|
3574
3713
|
importFiles,
|
|
3575
3714
|
CHAT_MESSAGES_READ,
|
|
3576
3715
|
snapshotMeetingScope,
|
|
3716
|
+
MEETING_FIELD_KEYS,
|
|
3717
|
+
MEETING_FIELDS2 as MEETING_FIELDS,
|
|
3718
|
+
meetingFieldFlag,
|
|
3719
|
+
SNAKE_CASE,
|
|
3577
3720
|
validateMeetingContextChange,
|
|
3578
3721
|
createMeetingContext,
|
|
3579
3722
|
meetingHitContextLimits,
|
|
3723
|
+
markedPassage,
|
|
3580
3724
|
validateMeetingPassage,
|
|
3581
3725
|
validateMeetingPreparationContext,
|
|
3582
3726
|
meetingProjectEvidence,
|
|
@@ -3585,7 +3729,6 @@ export {
|
|
|
3585
3729
|
MEETING_PROJECT_EVIDENCE_QUERY,
|
|
3586
3730
|
prepareMeetingProjectEvidence,
|
|
3587
3731
|
readMeetingProjectEvidence,
|
|
3588
|
-
pull,
|
|
3589
3732
|
meetingReview,
|
|
3590
3733
|
meetingLink,
|
|
3591
3734
|
meetingSpeaker,
|