@wirecat/drive-cli 0.71.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 -71
- 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-3QJG2NAN.js → all-profiles-GXGDVNQJ.js} +67 -25
- package/dist/bundle/{anthropic-PSWTEU6G.js → anthropic-H5C4GQHC.js} +9 -9
- package/dist/bundle/{app-server-PVTA6ABR.js → app-server-EQ3UK4C7.js} +97 -79
- package/dist/bundle/{bun-LU5LP3JI.js → bun-DTJVSRY3.js} +2 -2
- package/dist/bundle/{bun-sqlite-PYMKLBRU.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-RWDKMU74.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-YVI5SQPY.js → chunk-4HPXWYTE.js} +1 -1
- package/dist/bundle/{chunk-QETR5HIZ.js → chunk-4IUNYYYL.js} +4385 -2684
- package/dist/bundle/{chunk-I4RWW3UD.js → chunk-4JS32SRX.js} +20 -5
- package/dist/bundle/chunk-4ZAQMDLD.js +1308 -0
- package/dist/bundle/chunk-4ZTB7LS3.js +87 -0
- package/dist/bundle/{chunk-3N2OFXB5.js → chunk-55FH6IEL.js} +5 -5
- package/dist/bundle/{chunk-6TNNT2MQ.js → chunk-5BNMWSU2.js} +483 -176
- package/dist/bundle/{chunk-6XFIITOG.js → chunk-5H747A76.js} +5532 -3265
- package/dist/bundle/{chunk-MNLL5YLM.js → chunk-5KWCO56H.js} +2 -2
- package/dist/bundle/{chunk-GZ2D4KXG.js → chunk-5U3NCE5R.js} +35 -12
- package/dist/bundle/{chunk-CJLVYIOP.js → chunk-6CCO3JCM.js} +30 -21
- package/dist/bundle/{chunk-26DHFMGZ.js → chunk-6ZW2ZJYC.js} +2 -2
- package/dist/bundle/{chunk-COJSWDNU.js → chunk-75DAHQOV.js} +3 -3
- package/dist/bundle/{chunk-Q7DOMFJ4.js → chunk-77OBW43F.js} +6 -6
- package/dist/bundle/{chunk-FCS26CYQ.js → chunk-7EFM6AW3.js} +4 -4
- package/dist/bundle/{chunk-XMMFBPGC.js → chunk-A3S7QM5L.js} +3 -3
- package/dist/bundle/{chunk-ASMMG72J.js → chunk-AA4LKC6W.js} +244 -565
- package/dist/bundle/chunk-ASTKHB6B.js +3233 -0
- package/dist/bundle/{chunk-LXKYKRHD.js → chunk-BM6V7456.js} +8 -227
- package/dist/bundle/chunk-BO6EDBYJ.js +50 -0
- package/dist/bundle/{chunk-YPFWNVHV.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-RJOQH5YY.js → chunk-COJTCEZP.js} +111 -859
- package/dist/bundle/{chunk-FJH7DJWK.js → chunk-CWPYDT73.js} +6 -6
- package/dist/bundle/{chunk-BKSQBBYG.js → chunk-D4JNCXS7.js} +9 -9
- package/dist/bundle/chunk-DCPWZIOV.js +696 -0
- package/dist/bundle/{chunk-PRW6SYA3.js → chunk-DHMNCOQI.js} +313 -257
- package/dist/bundle/chunk-DOQMH4DC.js +280 -0
- package/dist/bundle/chunk-DQSOYH6N.js +20 -0
- package/dist/bundle/{chunk-YJIGGUPI.js → chunk-DWRUOLBF.js} +4 -4
- package/dist/bundle/{chunk-6W763DZN.js → chunk-E3VWZC3K.js} +14 -13
- package/dist/bundle/chunk-ECYOTDJM.js +14 -0
- package/dist/bundle/{chunk-KGYVHPGE.js → chunk-EVG3AA5M.js} +2 -2
- package/dist/bundle/chunk-F4BX7TH2.js +15 -0
- package/dist/bundle/{chunk-Y2NWGNUB.js → chunk-FBEZSA76.js} +5 -5
- package/dist/bundle/{chunk-2BVVU7GG.js → chunk-FBQJN74J.js} +1 -1
- package/dist/bundle/{chunk-Z56QFOBR.js → chunk-FIZOPJYY.js} +1 -1
- package/dist/bundle/chunk-FNAYSZWK.js +783 -0
- package/dist/bundle/{chunk-GPQ44Y2R.js → chunk-FRCJHGZM.js} +2 -2
- package/dist/bundle/{chunk-35SCQ4VI.js → chunk-FTG5QBSD.js} +41 -33
- package/dist/bundle/{chunk-KYKW2W6X.js → chunk-FUDUXIVG.js} +1 -1
- package/dist/bundle/{chunk-NYECVHFH.js → chunk-G4NHRFS7.js} +755 -0
- package/dist/bundle/{chunk-FT3LN3HP.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-ACUAV6VX.js → chunk-GUMKKRE6.js} +107 -71
- package/dist/bundle/{chunk-KGERXYTV.js → chunk-GWCDOYSC.js} +1 -1
- package/dist/bundle/{chunk-OJSBWP3F.js → chunk-GXGSC622.js} +69 -7
- package/dist/bundle/chunk-HAGXTGJC.js +188 -0
- package/dist/bundle/{chunk-XF4EXO2C.js → chunk-IMAWQC5K.js} +6 -6
- package/dist/bundle/{chunk-HKY7X6NY.js → chunk-IVGVVSPW.js} +4 -4
- package/dist/bundle/{chunk-P7CUM5IB.js → chunk-J4NUHSM7.js} +1 -1
- package/dist/bundle/{chunk-MIA7P6FZ.js → chunk-K652FYCO.js} +6 -6
- package/dist/bundle/chunk-K6ZWNTXY.js +561 -0
- package/dist/bundle/{chunk-COOOO5B3.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-EOEU3AZN.js → chunk-KP2XMCNT.js} +13 -13
- package/dist/bundle/{chunk-FP54WSIR.js → chunk-KWDZ3KVH.js} +4 -4
- package/dist/bundle/{chunk-QNRRK3CN.js → chunk-KX4C32WD.js} +2 -2
- package/dist/bundle/chunk-L7P3LUDQ.js +286 -0
- package/dist/bundle/{chunk-2LHAVY4U.js → chunk-M2ZWYVWO.js} +1 -1
- package/dist/bundle/chunk-MEYYH47C.js +25 -0
- package/dist/bundle/{chunk-3EBBLKIT.js → chunk-ML2QIWX2.js} +4 -4
- package/dist/bundle/{chunk-ZM63SUHG.js → chunk-MUFF2YTH.js} +2 -2
- package/dist/bundle/{chunk-2PUNKUYJ.js → chunk-N24YSLED.js} +9150 -9869
- package/dist/bundle/chunk-N4GTCPML.js +7 -0
- package/dist/bundle/{chunk-B5KSXHJ7.js → chunk-NBMGDRP4.js} +1 -1
- package/dist/bundle/chunk-NMQRSEZM.js +37 -0
- package/dist/bundle/{chunk-JDV7HNNQ.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-ICDCAQ6K.js → chunk-OAONP6KI.js} +13 -9
- package/dist/bundle/{chunk-WVDCCYS3.js → chunk-OESP4PHB.js} +17 -17
- package/dist/bundle/chunk-OHR6IZNH.js +116 -0
- package/dist/bundle/{chunk-4QNW4NK6.js → chunk-OLCU7Q2B.js} +1 -1
- package/dist/bundle/{chunk-SDKQNOL5.js → chunk-OLDQLEPA.js} +6 -6
- package/dist/bundle/{chunk-ZCR3IRZ2.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-ZZ32DXTH.js → chunk-QKBPCX7Y.js} +1 -1
- package/dist/bundle/{chunk-QXC6IEH6.js → chunk-QSLOACDT.js} +201 -423
- package/dist/bundle/{chunk-7PDHGZN4.js → chunk-QUZFDU4K.js} +4 -4
- package/dist/bundle/{chunk-3UGYFXH6.js → chunk-R32DHS6J.js} +187 -379
- package/dist/bundle/{chunk-6SJOTNHF.js → chunk-R57QUYBG.js} +6 -28
- package/dist/bundle/{chunk-UTO2GO4P.js → chunk-R64OSDOD.js} +45 -66
- package/dist/bundle/{chunk-GBKNJWOZ.js → chunk-RSPBVKOC.js} +8 -8
- package/dist/bundle/{chunk-HL52XXZX.js → chunk-SPNPJ3FZ.js} +3 -4
- package/dist/bundle/chunk-SQHDSIFL.js +388 -0
- package/dist/bundle/{chunk-YPNWIB6H.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-X4TIMMKJ.js → chunk-TTPWKTVR.js} +1 -1
- package/dist/bundle/{chunk-TAFHYHKA.js → chunk-U7VEJ3CW.js} +45 -27
- package/dist/bundle/{chunk-6Y2BYFXQ.js → chunk-UC7JLE6J.js} +0 -7
- package/dist/bundle/{chunk-4HWJOU7N.js → chunk-UIQ35CA5.js} +1 -1
- package/dist/bundle/{chunk-SAKO3P4H.js → chunk-UJY26HW4.js} +1 -1
- package/dist/bundle/{chunk-D5TGYUVU.js → chunk-UWG3PRY7.js} +9 -60
- package/dist/bundle/{chunk-JZHBZOJR.js → chunk-VAR3MJU6.js} +3 -3
- package/dist/bundle/{chunk-GOWXXYEF.js → chunk-VPQSI5IU.js} +4 -4
- package/dist/bundle/{chunk-QFR2PNJN.js → chunk-VQPT3Y7W.js} +12 -12
- package/dist/bundle/{chunk-Z3KUSRCF.js → chunk-WMG3H2VK.js} +2 -2
- package/dist/bundle/{chunk-4PA4DHYV.js → chunk-X5BGAZC5.js} +6 -6
- package/dist/bundle/{chunk-2UUWXPOB.js → chunk-XC6TRWLZ.js} +3 -3
- package/dist/bundle/{chunk-OF422U5D.js → chunk-XQZEMRCU.js} +402 -402
- package/dist/bundle/{chunk-72C4YOCH.js → chunk-XZ7MO6EU.js} +7 -7
- package/dist/bundle/{chunk-SERXSCN3.js → chunk-YAIOEPKU.js} +337 -390
- package/dist/bundle/chunk-YHWFF6DN.js +39 -0
- package/dist/bundle/{chunk-RESDD3Q4.js → chunk-YWOLQEDV.js} +16 -3
- package/dist/bundle/{chunk-YMJ6IDGT.js → chunk-ZFDSJ5YJ.js} +38 -8
- package/dist/bundle/{chunk-HMS6EEQL.js → chunk-ZFUZEFU6.js} +3 -3
- package/dist/bundle/{chunk-TAUBRNC5.js → chunk-ZJKXSMXK.js} +72 -59
- package/dist/bundle/{chunk-22QQUKWA.js → chunk-ZKWT6HXT.js} +1 -1
- package/dist/bundle/chunk-ZPUY3COZ.js +250 -0
- package/dist/bundle/{cli-556DERZL.js → cli-2P5FW2RL.js} +201 -98
- package/dist/bundle/command-contract-BMQT2G5X.js +45 -0
- package/dist/bundle/{command-server-entry-AYLGNZWD.js → command-server-entry-KP2UDGLA.js} +36 -34
- package/dist/bundle/{decode-QU24MWMN.js → decode-K2JZ5D6V.js} +10 -10
- package/dist/bundle/{dispatch-4KODNOXV.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-BXX4OQWC.js → echarts-URO3QGCG.js} +2 -2
- package/dist/bundle/{embed-KG27KG3D.js → embed-JLIPWTNN.js} +10 -10
- package/dist/bundle/{embedder-IPAVUQUV.js → embedder-LUTDO3HS.js} +15 -15
- package/dist/bundle/entry-AVF6LMG7.js +25 -0
- package/dist/bundle/{failure-ESL7ETL4.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-VCDBSNOW.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-LOWMVGZY.js → identity-FXPB5EMT.js} +7 -6
- package/dist/bundle/{instructions-2VECIDXF.js → instructions-IROIUVZI.js} +1 -1
- package/dist/bundle/{login-7GBONT7V.js → login-WIY5VQU7.js} +96 -81
- package/dist/bundle/{mcp-O6ACR2DX.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-G7PFOKU7.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-MPEQSFI3.js → node-IACCI2CW.js} +2 -2
- package/dist/bundle/{node-sqlite-OLQMAYB4.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-OXTE672W.js → open-H32B6BCT.js} +8 -8
- package/dist/bundle/{openai-EB3TPIZY.js → openai-VHMPJJUG.js} +22 -21
- package/dist/bundle/{process-F6TKXWWA.js → process-RNHPF5OK.js} +1 -1
- package/dist/bundle/{program-4IFDZ7FM.js → program-GYMJ3DDH.js} +275 -1148
- package/dist/bundle/{prompt-F5RRHPN2.js → prompt-TOG2CRCE.js} +8 -8
- package/dist/bundle/{reasons-UORHJDHK.js → reasons-TLFQ45YX.js} +6 -5
- package/dist/bundle/{recognize-DAVNZND3.js → recognize-GYGY45EY.js} +7 -7
- package/dist/bundle/remote-6XN2QLI5.js +35 -0
- package/dist/bundle/{rerank-CND2GVLZ.js → rerank-HJO3O4TW.js} +11 -11
- package/dist/bundle/{serve-ZHSPUIGX.js → serve-XPCNLHCR.js} +19 -19
- package/dist/bundle/server-UBJZ66XE.js +97 -0
- package/dist/bundle/{server-YMAK4LHC.js → server-WPT3NC5B.js} +89 -70
- package/dist/bundle/{services-ZILSFJ6E.js → services-253KKKVU.js} +109 -89
- package/dist/bundle/{sqlite-runtime-S5VPMZQH.js → sqlite-runtime-EZASGJXW.js} +9 -9
- package/dist/bundle/{start-CR6X25RT.js → start-UHI35JFL.js} +7 -7
- package/dist/bundle/{state-YFPHVIIJ.js → state-KJTSPFGK.js} +9 -9
- package/dist/bundle/{store-UODRT6X4.js → store-62J2H2A3.js} +36 -25
- package/dist/bundle/{store-CL4ZJZRI.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 +5 -0
- 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 +5 -2
- package/dist/sync.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-J5Q5FS2N.js +0 -593
- package/dist/bundle/chunk-L46C6HQ7.js +0 -729
- package/dist/bundle/chunk-UDMNY63V.js +0 -899
- package/dist/bundle/chunk-VKE77B3F.js +0 -2
- package/dist/bundle/command-contract-VRTOAV6W.js +0 -43
- package/dist/bundle/entry-MVXQETWS.js +0 -25
- package/dist/bundle/first-run-4UVLW2WR.js +0 -31
- package/dist/bundle/first-screen-JAKAIINI.js +0 -41
- package/dist/bundle/google-22NXXJX5.js +0 -45
- package/dist/bundle/grants-MQMTVCRQ.js +0 -118
- package/dist/bundle/mdast-util-gfm-SZM5GBDF.js +0 -2103
- package/dist/bundle/meeting-combined-LVP4AZKA.js +0 -27
- package/dist/bundle/meeting-model-RAY5XDXZ.js +0 -29
- package/dist/bundle/oauth-SGH2I2BY.js +0 -22
- package/dist/bundle/remote-D5EYYIAU.js +0 -35
- package/dist/bundle/server-DUVJWP3Q.js +0 -80
- package/dist/bundle/store-maintenance-command-DY5XIBWR.js +0 -72
- package/dist/bundle/tokens-AF7QOFOF.js +0 -118
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
questionTerms
|
|
5
|
+
} from "./chunk-BM6V7456.js";
|
|
6
|
+
import {
|
|
7
|
+
validateVector
|
|
8
|
+
} from "./chunk-75DAHQOV.js";
|
|
9
|
+
import {
|
|
10
|
+
meaningFloor
|
|
11
|
+
} from "./chunk-IMAWQC5K.js";
|
|
12
|
+
import {
|
|
13
|
+
RRF_K,
|
|
14
|
+
plainQuery
|
|
15
|
+
} from "./chunk-OPIPG6AP.js";
|
|
16
|
+
import {
|
|
17
|
+
MEETING_FIELD_NAMES,
|
|
18
|
+
formatMeetingReference,
|
|
19
|
+
liftMeetingFields,
|
|
20
|
+
parseMeetingReference,
|
|
21
|
+
refreshMeetingIndex
|
|
22
|
+
} from "./chunk-DHMNCOQI.js";
|
|
23
|
+
import {
|
|
24
|
+
CliError
|
|
25
|
+
} from "./chunk-OLCU7Q2B.js";
|
|
26
|
+
import {
|
|
27
|
+
__name
|
|
28
|
+
} from "./chunk-ZVVMGPBJ.js";
|
|
29
|
+
|
|
30
|
+
// 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/services/meeting-combined.js
|
|
31
|
+
import { createHash } from "node:crypto";
|
|
32
|
+
|
|
33
|
+
// 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/services/meeting-hit-search.js
|
|
34
|
+
var resolveMeetingSelection = /* @__PURE__ */ __name(async (store, request) => {
|
|
35
|
+
const { project, tag, topic, ...input } = request;
|
|
36
|
+
input.signal?.throwIfAborted();
|
|
37
|
+
if (project !== void 0 && input.projectId !== void 0 || [tag, topic].filter((value) => value !== void 0).length + Number(input.tagId !== void 0) > 1)
|
|
38
|
+
throw new CliError("validation_error", "choose one project selector and one tag or topic selector");
|
|
39
|
+
const selection = [];
|
|
40
|
+
const knowledge = store.knowledge;
|
|
41
|
+
if (!knowledge && [project, tag, topic].some((value) => value !== void 0))
|
|
42
|
+
throw new CliError("configuration_error", "this store cannot resolve project, tag or topic names");
|
|
43
|
+
for (const [kind, name] of [
|
|
44
|
+
["project", project],
|
|
45
|
+
["tag", tag],
|
|
46
|
+
["topic", topic]
|
|
47
|
+
]) {
|
|
48
|
+
if (name === void 0)
|
|
49
|
+
continue;
|
|
50
|
+
if (!knowledge)
|
|
51
|
+
continue;
|
|
52
|
+
const found = await knowledge.resolveVocabulary(name, { kind, signal: input.signal });
|
|
53
|
+
input.signal?.throwIfAborted();
|
|
54
|
+
if (found.ambiguous || found.matches.length !== 1)
|
|
55
|
+
throw new CliError(found.matches.length ? "validation_error" : "not_found", `the ${kind} name needs one canonical record`, {
|
|
56
|
+
candidates: found.matches.map((entry2) => ({ kind: entry2.kind, id: entry2.id, name: entry2.name }))
|
|
57
|
+
});
|
|
58
|
+
const entry = found.matches[0];
|
|
59
|
+
const id = Number(entry?.id);
|
|
60
|
+
if (!entry || entry.kind !== kind || !Number.isSafeInteger(id) || id < 1)
|
|
61
|
+
throw new CliError("invalid_response", "vocabulary resolution returned an invalid canonical record");
|
|
62
|
+
if (kind === "project")
|
|
63
|
+
input.projectId = id;
|
|
64
|
+
else
|
|
65
|
+
input.tagId = id;
|
|
66
|
+
selection.push({ kind, id, name: entry.name, by: "explicit-link" });
|
|
67
|
+
}
|
|
68
|
+
return { input, selection };
|
|
69
|
+
}, "resolveMeetingSelection");
|
|
70
|
+
var searchMeetingHits = /* @__PURE__ */ __name(async (store, query, request, options = {}) => {
|
|
71
|
+
const lifted = liftMeetingFields(plainQuery(query, MEETING_FIELD_NAMES), request);
|
|
72
|
+
const { input, selection } = await resolveMeetingSelection(store, lifted.request);
|
|
73
|
+
if (options.refreshIndex !== false)
|
|
74
|
+
await refreshMeetingIndex(store.meetings, input.accountId, input.signal);
|
|
75
|
+
const result = await store.meetings.searchHits(lifted.query, input);
|
|
76
|
+
input.signal?.throwIfAborted();
|
|
77
|
+
return { ...result, selection };
|
|
78
|
+
}, "searchMeetingHits");
|
|
79
|
+
|
|
80
|
+
// 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/services/meeting-combined.js
|
|
81
|
+
var DEPTH = 200;
|
|
82
|
+
var cursorOf = /* @__PURE__ */ __name((value, key) => {
|
|
83
|
+
if (value === void 0)
|
|
84
|
+
return 0;
|
|
85
|
+
let cursor;
|
|
86
|
+
try {
|
|
87
|
+
cursor = JSON.parse(Buffer.from(value, "base64url").toString("utf8"));
|
|
88
|
+
} catch {
|
|
89
|
+
throw new CliError("validation_error", "the cursor is not from a combined meeting search; search again");
|
|
90
|
+
}
|
|
91
|
+
if (cursor?.version !== 1 || cursor.key !== key || !Number.isSafeInteger(cursor.offset) || cursor.offset < 0)
|
|
92
|
+
throw new CliError("validation_error", "the cursor belongs to another query, filter or model; search again");
|
|
93
|
+
return cursor.offset;
|
|
94
|
+
}, "cursorOf");
|
|
95
|
+
var searchMeetingsCombined = /* @__PURE__ */ __name(async (store, embedder, typed, request) => {
|
|
96
|
+
const { maxChunks, maxRows, maxTextBytes, ...chosen } = request;
|
|
97
|
+
const { query, request: words } = liftMeetingFields(typed, chosen);
|
|
98
|
+
const { input, selection } = await resolveMeetingSelection(store, words);
|
|
99
|
+
const { after, limit = 20, maxReadBytes, ...filters } = input;
|
|
100
|
+
const terms = questionTerms(query);
|
|
101
|
+
const wordQuery = terms === null ? query : terms.join(" ");
|
|
102
|
+
const key = createHash("sha256").update(JSON.stringify([query, embedder.key, Object.entries(filters).filter(([name]) => name !== "signal")])).digest("base64url");
|
|
103
|
+
const offset = cursorOf(after, key);
|
|
104
|
+
let byWords = [];
|
|
105
|
+
let indexing = "ready";
|
|
106
|
+
let refused;
|
|
107
|
+
if (wordQuery.trim()) {
|
|
108
|
+
await refreshMeetingIndex(store.meetings, input.accountId, input.signal);
|
|
109
|
+
try {
|
|
110
|
+
const page = await store.meetings.searchHits(wordQuery, { ...filters, limit: DEPTH, maxReadBytes });
|
|
111
|
+
byWords = page.items;
|
|
112
|
+
indexing = page.coverage.indexing;
|
|
113
|
+
} catch (error) {
|
|
114
|
+
if (!(error instanceof CliError) || error.code !== "validation_error")
|
|
115
|
+
throw error;
|
|
116
|
+
refused = error.message;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
input.signal?.throwIfAborted();
|
|
120
|
+
const vectors = await embedder.embed([query], "query");
|
|
121
|
+
if (vectors.length !== 1)
|
|
122
|
+
throw new CliError("invalid_response", "Meeting query model returned another vector count");
|
|
123
|
+
const vector = vectors[0];
|
|
124
|
+
const ranked = await store.meetingVectors.ranked(embedder.key, validateVector(vector, embedder.dims), {
|
|
125
|
+
...filters,
|
|
126
|
+
limit: DEPTH,
|
|
127
|
+
...maxChunks === void 0 ? {} : { maxChunks },
|
|
128
|
+
...maxRows === void 0 ? {} : { maxRows },
|
|
129
|
+
...maxTextBytes === void 0 ? {} : { maxTextBytes }
|
|
130
|
+
});
|
|
131
|
+
const floor = meaningFloor(embedder.key);
|
|
132
|
+
const byMeaning = ranked.items.filter(({ score }) => score > floor);
|
|
133
|
+
const merged = /* @__PURE__ */ new Map();
|
|
134
|
+
byMeaning.forEach((hit, rank) => {
|
|
135
|
+
const reference = { type: "meeting", accountId: input.accountId, meetingId: hit.meetingId };
|
|
136
|
+
const first = formatMeetingReference({
|
|
137
|
+
...reference,
|
|
138
|
+
transcriptId: hit.transcriptId,
|
|
139
|
+
cuePosition: hit.firstPosition
|
|
140
|
+
});
|
|
141
|
+
merged.set(`${hit.transcriptId}:${hit.firstPosition}`, {
|
|
142
|
+
ref: first,
|
|
143
|
+
meetingId: hit.meetingId,
|
|
144
|
+
scope: "transcript",
|
|
145
|
+
text: hit.text,
|
|
146
|
+
startMs: null,
|
|
147
|
+
source: { title: hit.title, startedAt: hit.startedAt, url: null },
|
|
148
|
+
by: ["meaning"],
|
|
149
|
+
score: hit.score,
|
|
150
|
+
passage: {
|
|
151
|
+
first,
|
|
152
|
+
last: formatMeetingReference({ ...reference, transcriptId: hit.transcriptId, cuePosition: hit.lastPosition })
|
|
153
|
+
},
|
|
154
|
+
fused: 1 / (RRF_K + rank + 1)
|
|
155
|
+
});
|
|
156
|
+
});
|
|
157
|
+
byWords.forEach((hit, rank) => {
|
|
158
|
+
const share = 1 / (RRF_K + rank + 1);
|
|
159
|
+
const cue = hit.scope === "transcript" ? parseMeetingReference(hit.ref) : void 0;
|
|
160
|
+
const within = cue?.cuePosition === void 0 ? void 0 : byMeaning.find((passage) => passage.transcriptId === cue.transcriptId && passage.firstPosition <= cue.cuePosition && cue.cuePosition <= passage.lastPosition);
|
|
161
|
+
const held = within && merged.get(`${within.transcriptId}:${within.firstPosition}`);
|
|
162
|
+
const found = {
|
|
163
|
+
ref: hit.ref,
|
|
164
|
+
text: hit.text,
|
|
165
|
+
startMs: hit.startMs,
|
|
166
|
+
...hit.match === void 0 ? {} : { match: hit.match },
|
|
167
|
+
...hit.corrections === void 0 ? {} : { corrections: hit.corrections }
|
|
168
|
+
};
|
|
169
|
+
if (held && !held.by.includes("words")) {
|
|
170
|
+
Object.assign(held, found, { by: ["words", "meaning"], fused: held.fused + share });
|
|
171
|
+
if (hit.source?.url)
|
|
172
|
+
held.source.url = hit.source.url;
|
|
173
|
+
} else if (held)
|
|
174
|
+
held.fused += share;
|
|
175
|
+
else
|
|
176
|
+
merged.set(`w:${hit.ref}:${hit.scope}:${hit.id}`, {
|
|
177
|
+
...found,
|
|
178
|
+
meetingId: hit.meetingId,
|
|
179
|
+
scope: hit.scope,
|
|
180
|
+
source: {
|
|
181
|
+
title: hit.source?.title ?? null,
|
|
182
|
+
startedAt: hit.source?.startedAt ?? null,
|
|
183
|
+
url: hit.source?.url ?? null
|
|
184
|
+
},
|
|
185
|
+
by: ["words"],
|
|
186
|
+
score: null,
|
|
187
|
+
fused: share
|
|
188
|
+
});
|
|
189
|
+
});
|
|
190
|
+
const ordered = [...merged.values()].sort((a, b) => b.fused - a.fused || Number(b.by.includes("words")) - Number(a.by.includes("words")) || (b.score ?? -2) - (a.score ?? -2));
|
|
191
|
+
const items = ordered.slice(offset, offset + limit).map(({ fused: _, ...hit }) => hit);
|
|
192
|
+
const hasMore = ordered.length > offset + limit;
|
|
193
|
+
return {
|
|
194
|
+
items,
|
|
195
|
+
hasMore,
|
|
196
|
+
nextCursor: hasMore ? Buffer.from(JSON.stringify({ version: 1, key, offset: offset + limit })).toString("base64url") : null,
|
|
197
|
+
selection,
|
|
198
|
+
words: {
|
|
199
|
+
query: wordQuery,
|
|
200
|
+
...terms === null ? {} : { from: "question" },
|
|
201
|
+
...refused === void 0 ? {} : { refused }
|
|
202
|
+
},
|
|
203
|
+
model: { key: embedder.key, model: embedder.model, kind: embedder.kind, dims: embedder.dims },
|
|
204
|
+
coverage: {
|
|
205
|
+
archiveCompleteness: "unknown",
|
|
206
|
+
indexCompleteness: "unknown",
|
|
207
|
+
indexing,
|
|
208
|
+
/** Every vector of the selection was compared; false when `maxChunks` stopped the scan. */
|
|
209
|
+
meaningScanComplete: ranked.complete,
|
|
210
|
+
scanned: ranked.scanned,
|
|
211
|
+
/** Each side ranks this many at most; pages past them hold nothing more. */
|
|
212
|
+
depth: DEPTH
|
|
213
|
+
}
|
|
214
|
+
};
|
|
215
|
+
}, "searchMeetingsCombined");
|
|
216
|
+
|
|
217
|
+
export {
|
|
218
|
+
resolveMeetingSelection,
|
|
219
|
+
searchMeetingHits,
|
|
220
|
+
searchMeetingsCombined
|
|
221
|
+
};
|
|
@@ -6,26 +6,26 @@ import {
|
|
|
6
6
|
XLSX,
|
|
7
7
|
supported,
|
|
8
8
|
tooManyEntries
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-A3S7QM5L.js";
|
|
10
10
|
import {
|
|
11
11
|
DOC,
|
|
12
12
|
SHEET
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-5BNMWSU2.js";
|
|
14
14
|
import {
|
|
15
15
|
googleError
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-FBQJN74J.js";
|
|
17
17
|
import {
|
|
18
18
|
extractText
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-QSLOACDT.js";
|
|
20
20
|
import {
|
|
21
21
|
MAX_TEXT_CHARS
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-VAR3MJU6.js";
|
|
23
|
+
import {
|
|
24
|
+
CliError
|
|
25
|
+
} from "./chunk-OLCU7Q2B.js";
|
|
23
26
|
import {
|
|
24
27
|
importFrom
|
|
25
28
|
} from "./chunk-Y5E2WNWB.js";
|
|
26
|
-
import {
|
|
27
|
-
CliError
|
|
28
|
-
} from "./chunk-4QNW4NK6.js";
|
|
29
29
|
import {
|
|
30
30
|
__name
|
|
31
31
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -118,7 +118,7 @@ var googleSource = /* @__PURE__ */ __name((auth) => {
|
|
|
118
118
|
throw googleError(error);
|
|
119
119
|
}
|
|
120
120
|
}, "safe");
|
|
121
|
-
const listed = /* @__PURE__ */ __name((q, what) => safe(async () => {
|
|
121
|
+
const listed = /* @__PURE__ */ __name((q, what, fix) => safe(async () => {
|
|
122
122
|
const files = [];
|
|
123
123
|
const seen = /* @__PURE__ */ new Set();
|
|
124
124
|
let pageToken;
|
|
@@ -136,7 +136,7 @@ var googleSource = /* @__PURE__ */ __name((auth) => {
|
|
|
136
136
|
for (const file of data.files ?? [])
|
|
137
137
|
files.push(metadataOf(file));
|
|
138
138
|
if (files.length > MAX_ENTRIES)
|
|
139
|
-
throw tooManyEntries();
|
|
139
|
+
throw tooManyEntries(what, fix);
|
|
140
140
|
if (!data.nextPageToken)
|
|
141
141
|
return files;
|
|
142
142
|
if (seen.has(data.nextPageToken))
|
|
@@ -155,8 +155,8 @@ var googleSource = /* @__PURE__ */ __name((auth) => {
|
|
|
155
155
|
throw new CliError("invalid_response", "Google did not identify the signed-in account");
|
|
156
156
|
return id;
|
|
157
157
|
}), "identity"),
|
|
158
|
-
children: /* @__PURE__ */ __name((id) => listed(`'${id}' in parents and trashed = false`, "folder listing"), "children"),
|
|
159
|
-
search: /* @__PURE__ */ __name((q) => listed(q, "transcript search"), "search"),
|
|
158
|
+
children: /* @__PURE__ */ __name((id) => listed(`'${id}' in parents and trashed = false`, "folder listing", "choose smaller folders with `folders remove` and `folders add`"), "children"),
|
|
159
|
+
search: /* @__PURE__ */ __name((q) => listed(q, "transcript search", "set more specific `transcript_words`"), "search"),
|
|
160
160
|
startToken: /* @__PURE__ */ __name(() => safe(async () => {
|
|
161
161
|
const token = (await api.changes.getStartPageToken({ supportsAllDrives: true }, { timeout: 3e4 })).data.startPageToken;
|
|
162
162
|
if (!token)
|
|
@@ -190,7 +190,7 @@ var googleSource = /* @__PURE__ */ __name((auth) => {
|
|
|
190
190
|
});
|
|
191
191
|
}
|
|
192
192
|
if (items.length > MAX_ENTRIES)
|
|
193
|
-
throw new CliError("provider_error", `Google lists more than ${MAX_ENTRIES} changes since the last sync, the most one sync reads; \`sync --rescan\`
|
|
193
|
+
throw new CliError("provider_error", `Google lists more than ${MAX_ENTRIES} changes since the last sync, the most one sync reads; run \`sync --rescan\` once to read the chosen folders instead, then plain \`sync\` until it is complete`, { reason: "listing.too-large" });
|
|
194
194
|
if (data.nextPageToken) {
|
|
195
195
|
pageToken = data.nextPageToken;
|
|
196
196
|
continue;
|
|
@@ -3,26 +3,26 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
executableEnvironment,
|
|
5
5
|
executableOnPath
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-4HPXWYTE.js";
|
|
7
7
|
import {
|
|
8
8
|
require_cross_spawn
|
|
9
9
|
} from "./chunk-D72URWJE.js";
|
|
10
10
|
import {
|
|
11
11
|
loadConfigFile,
|
|
12
12
|
saveConfigFile
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-6CCO3JCM.js";
|
|
14
14
|
import {
|
|
15
15
|
number,
|
|
16
16
|
object,
|
|
17
17
|
optional,
|
|
18
18
|
string
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-GXGSC622.js";
|
|
20
20
|
import {
|
|
21
21
|
__name,
|
|
22
22
|
__toESM
|
|
23
23
|
} from "./chunk-ZVVMGPBJ.js";
|
|
24
24
|
|
|
25
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
25
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/update/index.js
|
|
26
26
|
var import_cross_spawn = __toESM(require_cross_spawn(), 1);
|
|
27
27
|
import { existsSync } from "node:fs";
|
|
28
28
|
var updateCommand = /* @__PURE__ */ __name((installer, packageName) => {
|
|
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
CliError
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-OLCU7Q2B.js";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10
|
+
// 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/cli/input-policy.js
|
|
11
11
|
var MAX_BUFFERED_INPUT = 16 * 1024 * 1024;
|
|
12
12
|
var MAX_SECRET_INPUT = 64 * 1024;
|
|
13
13
|
var policies = /* @__PURE__ */ new WeakMap();
|
|
@@ -0,0 +1,286 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
__name
|
|
5
|
+
} from "./chunk-ZVVMGPBJ.js";
|
|
6
|
+
|
|
7
|
+
// node_modules/.pnpm/@ungap+structured-clone@1.4.0/node_modules/@ungap/structured-clone/esm/types.js
|
|
8
|
+
var VOID = -1;
|
|
9
|
+
var PRIMITIVE = 0;
|
|
10
|
+
var ARRAY = 1;
|
|
11
|
+
var OBJECT = 2;
|
|
12
|
+
var DATE = 3;
|
|
13
|
+
var REGEXP = 4;
|
|
14
|
+
var MAP = 5;
|
|
15
|
+
var SET = 6;
|
|
16
|
+
var ERROR = 7;
|
|
17
|
+
var BIGINT = 8;
|
|
18
|
+
|
|
19
|
+
// node_modules/.pnpm/@ungap+structured-clone@1.4.0/node_modules/@ungap/structured-clone/esm/deserialize.js
|
|
20
|
+
var { defineProperty } = Object;
|
|
21
|
+
var env = typeof self === "object" ? self : globalThis;
|
|
22
|
+
var guard = /* @__PURE__ */ __name((name, init) => {
|
|
23
|
+
switch (name) {
|
|
24
|
+
case "Function":
|
|
25
|
+
case "SharedWorker":
|
|
26
|
+
case "Worker":
|
|
27
|
+
case "eval":
|
|
28
|
+
case "setInterval":
|
|
29
|
+
case "setTimeout":
|
|
30
|
+
throw new TypeError("unable to deserialize " + name);
|
|
31
|
+
}
|
|
32
|
+
return new env[name](init);
|
|
33
|
+
}, "guard");
|
|
34
|
+
var deserializer = /* @__PURE__ */ __name(($, _) => {
|
|
35
|
+
const as = /* @__PURE__ */ __name((out, index) => {
|
|
36
|
+
$.set(index, out);
|
|
37
|
+
return out;
|
|
38
|
+
}, "as");
|
|
39
|
+
const unpair = /* @__PURE__ */ __name((index) => {
|
|
40
|
+
if ($.has(index))
|
|
41
|
+
return $.get(index);
|
|
42
|
+
const [type, value] = _[index];
|
|
43
|
+
switch (type) {
|
|
44
|
+
case PRIMITIVE:
|
|
45
|
+
case VOID:
|
|
46
|
+
return as(value, index);
|
|
47
|
+
case ARRAY: {
|
|
48
|
+
const arr = as([], index);
|
|
49
|
+
for (const index2 of value)
|
|
50
|
+
arr.push(unpair(index2));
|
|
51
|
+
return arr;
|
|
52
|
+
}
|
|
53
|
+
case OBJECT: {
|
|
54
|
+
const object = as({}, index);
|
|
55
|
+
for (const [key, index2] of value) {
|
|
56
|
+
const k = unpair(key), value2 = unpair(index2);
|
|
57
|
+
if (k === "__proto__") defineProperty(object, k, {
|
|
58
|
+
value: value2,
|
|
59
|
+
configurable: true,
|
|
60
|
+
enumerable: true,
|
|
61
|
+
writable: true
|
|
62
|
+
});
|
|
63
|
+
else object[k] = value2;
|
|
64
|
+
}
|
|
65
|
+
return object;
|
|
66
|
+
}
|
|
67
|
+
case DATE:
|
|
68
|
+
return as(new Date(value), index);
|
|
69
|
+
case REGEXP: {
|
|
70
|
+
const { source, flags } = value;
|
|
71
|
+
return as(new RegExp(source, flags), index);
|
|
72
|
+
}
|
|
73
|
+
case MAP: {
|
|
74
|
+
const map = as(/* @__PURE__ */ new Map(), index);
|
|
75
|
+
for (const [key, index2] of value)
|
|
76
|
+
map.set(unpair(key), unpair(index2));
|
|
77
|
+
return map;
|
|
78
|
+
}
|
|
79
|
+
case SET: {
|
|
80
|
+
const set = as(/* @__PURE__ */ new Set(), index);
|
|
81
|
+
for (const index2 of value)
|
|
82
|
+
set.add(unpair(index2));
|
|
83
|
+
return set;
|
|
84
|
+
}
|
|
85
|
+
case ERROR: {
|
|
86
|
+
const { name, message } = value;
|
|
87
|
+
return as(
|
|
88
|
+
typeof env[name] === "function" ? guard(name, message) : new Error(message),
|
|
89
|
+
index
|
|
90
|
+
);
|
|
91
|
+
}
|
|
92
|
+
case BIGINT:
|
|
93
|
+
return as(BigInt(value), index);
|
|
94
|
+
case "BigInt":
|
|
95
|
+
return as(Object(BigInt(value)), index);
|
|
96
|
+
case "ArrayBuffer":
|
|
97
|
+
return as(new Uint8Array(value).buffer, value);
|
|
98
|
+
case "DataView": {
|
|
99
|
+
const { buffer } = new Uint8Array(value);
|
|
100
|
+
return as(new DataView(buffer), value);
|
|
101
|
+
}
|
|
102
|
+
case "-0":
|
|
103
|
+
return -0;
|
|
104
|
+
}
|
|
105
|
+
return as(guard(type, value), index);
|
|
106
|
+
}, "unpair");
|
|
107
|
+
return unpair;
|
|
108
|
+
}, "deserializer");
|
|
109
|
+
var deserialize = /* @__PURE__ */ __name((serialized) => deserializer(/* @__PURE__ */ new Map(), serialized)(0), "deserialize");
|
|
110
|
+
|
|
111
|
+
// node_modules/.pnpm/@ungap+structured-clone@1.4.0/node_modules/@ungap/structured-clone/esm/serialize.js
|
|
112
|
+
var EMPTY = "";
|
|
113
|
+
var { toString } = {};
|
|
114
|
+
var { keys, is } = Object;
|
|
115
|
+
var typeOf = /* @__PURE__ */ __name((value) => {
|
|
116
|
+
const type = typeof value;
|
|
117
|
+
if (type !== "object" || !value)
|
|
118
|
+
return [PRIMITIVE, type];
|
|
119
|
+
const asString = toString.call(value).slice(8, -1);
|
|
120
|
+
switch (asString) {
|
|
121
|
+
case "Array":
|
|
122
|
+
return [ARRAY, EMPTY];
|
|
123
|
+
case "Object":
|
|
124
|
+
return [OBJECT, EMPTY];
|
|
125
|
+
case "Date":
|
|
126
|
+
return [DATE, EMPTY];
|
|
127
|
+
case "RegExp":
|
|
128
|
+
return [REGEXP, EMPTY];
|
|
129
|
+
case "Map":
|
|
130
|
+
return [MAP, EMPTY];
|
|
131
|
+
case "Set":
|
|
132
|
+
return [SET, EMPTY];
|
|
133
|
+
case "DataView":
|
|
134
|
+
return [ARRAY, asString];
|
|
135
|
+
}
|
|
136
|
+
if (asString.includes("Array"))
|
|
137
|
+
return [ARRAY, asString];
|
|
138
|
+
if (value instanceof Error)
|
|
139
|
+
return [ERROR, value.name || "Error"];
|
|
140
|
+
return [OBJECT, asString];
|
|
141
|
+
}, "typeOf");
|
|
142
|
+
var shouldSkip = /* @__PURE__ */ __name(([TYPE, type]) => TYPE === PRIMITIVE && (type === "function" || type === "symbol"), "shouldSkip");
|
|
143
|
+
var serializer = /* @__PURE__ */ __name((strict, json, $, _) => {
|
|
144
|
+
const as = /* @__PURE__ */ __name((out, value) => {
|
|
145
|
+
const index = _.push(out) - 1;
|
|
146
|
+
$.set(value, index);
|
|
147
|
+
return index;
|
|
148
|
+
}, "as");
|
|
149
|
+
const pair = /* @__PURE__ */ __name((value) => {
|
|
150
|
+
if ($.has(value))
|
|
151
|
+
return $.get(value);
|
|
152
|
+
let [TYPE, type] = typeOf(value);
|
|
153
|
+
switch (TYPE) {
|
|
154
|
+
case PRIMITIVE: {
|
|
155
|
+
let entry = value;
|
|
156
|
+
switch (type) {
|
|
157
|
+
case "bigint":
|
|
158
|
+
TYPE = BIGINT;
|
|
159
|
+
entry = value.toString();
|
|
160
|
+
break;
|
|
161
|
+
case "number":
|
|
162
|
+
if (!value && is(value, -0))
|
|
163
|
+
return _.push(["-0"]) - 1;
|
|
164
|
+
break;
|
|
165
|
+
case "function":
|
|
166
|
+
case "symbol":
|
|
167
|
+
if (strict)
|
|
168
|
+
throw new TypeError("unable to serialize " + type);
|
|
169
|
+
entry = null;
|
|
170
|
+
break;
|
|
171
|
+
case "undefined":
|
|
172
|
+
return as([VOID], value);
|
|
173
|
+
}
|
|
174
|
+
return as([TYPE, entry], value);
|
|
175
|
+
}
|
|
176
|
+
case ARRAY: {
|
|
177
|
+
if (type) {
|
|
178
|
+
let spread = value;
|
|
179
|
+
if (type === "DataView") {
|
|
180
|
+
spread = new Uint8Array(value.buffer);
|
|
181
|
+
} else if (type === "ArrayBuffer") {
|
|
182
|
+
spread = new Uint8Array(value);
|
|
183
|
+
}
|
|
184
|
+
return as([type, [...spread]], value);
|
|
185
|
+
}
|
|
186
|
+
const arr = [];
|
|
187
|
+
const index = as([TYPE, arr], value);
|
|
188
|
+
for (const entry of value)
|
|
189
|
+
arr.push(pair(entry));
|
|
190
|
+
return index;
|
|
191
|
+
}
|
|
192
|
+
case OBJECT: {
|
|
193
|
+
if (type) {
|
|
194
|
+
switch (type) {
|
|
195
|
+
case "BigInt":
|
|
196
|
+
return as([type, value.toString()], value);
|
|
197
|
+
case "Boolean":
|
|
198
|
+
case "Number":
|
|
199
|
+
case "String":
|
|
200
|
+
return as([type, value.valueOf()], value);
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
if (json && "toJSON" in value)
|
|
204
|
+
return pair(value.toJSON());
|
|
205
|
+
const entries = [];
|
|
206
|
+
const index = as([TYPE, entries], value);
|
|
207
|
+
for (const key of keys(value)) {
|
|
208
|
+
if (strict || !shouldSkip(typeOf(value[key])))
|
|
209
|
+
entries.push([pair(key), pair(value[key])]);
|
|
210
|
+
}
|
|
211
|
+
return index;
|
|
212
|
+
}
|
|
213
|
+
case DATE:
|
|
214
|
+
return as([TYPE, isNaN(value.getTime()) ? EMPTY : value.toISOString()], value);
|
|
215
|
+
case REGEXP: {
|
|
216
|
+
const { source, flags } = value;
|
|
217
|
+
return as([TYPE, { source, flags }], value);
|
|
218
|
+
}
|
|
219
|
+
case MAP: {
|
|
220
|
+
const entries = [];
|
|
221
|
+
const index = as([TYPE, entries], value);
|
|
222
|
+
for (const [key, entry] of value) {
|
|
223
|
+
if (strict || !(shouldSkip(typeOf(key)) || shouldSkip(typeOf(entry))))
|
|
224
|
+
entries.push([pair(key), pair(entry)]);
|
|
225
|
+
}
|
|
226
|
+
return index;
|
|
227
|
+
}
|
|
228
|
+
case SET: {
|
|
229
|
+
const entries = [];
|
|
230
|
+
const index = as([TYPE, entries], value);
|
|
231
|
+
for (const entry of value) {
|
|
232
|
+
if (strict || !shouldSkip(typeOf(entry)))
|
|
233
|
+
entries.push(pair(entry));
|
|
234
|
+
}
|
|
235
|
+
return index;
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
const { message } = value;
|
|
239
|
+
return as([TYPE, { name: type, message }], value);
|
|
240
|
+
}, "pair");
|
|
241
|
+
return pair;
|
|
242
|
+
}, "serializer");
|
|
243
|
+
var serialize = /* @__PURE__ */ __name((value, { json, lossy } = {}) => {
|
|
244
|
+
const _ = [];
|
|
245
|
+
return serializer(!(json || lossy), !!json, /* @__PURE__ */ new Map(), _)(value), _;
|
|
246
|
+
}, "serialize");
|
|
247
|
+
|
|
248
|
+
// node_modules/.pnpm/@ungap+structured-clone@1.4.0/node_modules/@ungap/structured-clone/esm/index.js
|
|
249
|
+
var esm_default = typeof structuredClone === "function" ? (
|
|
250
|
+
/* c8 ignore start */
|
|
251
|
+
(any, options) => options && ("json" in options || "lossy" in options) ? deserialize(serialize(any, options)) : structuredClone(any)
|
|
252
|
+
) : (any, options) => deserialize(serialize(any, options));
|
|
253
|
+
|
|
254
|
+
// node_modules/.pnpm/unist-util-position@5.0.0/node_modules/unist-util-position/lib/index.js
|
|
255
|
+
var pointEnd = point("end");
|
|
256
|
+
var pointStart = point("start");
|
|
257
|
+
function point(type) {
|
|
258
|
+
return point2;
|
|
259
|
+
function point2(node) {
|
|
260
|
+
const point3 = node && node.position && node.position[type] || {};
|
|
261
|
+
if (typeof point3.line === "number" && point3.line > 0 && typeof point3.column === "number" && point3.column > 0) {
|
|
262
|
+
return {
|
|
263
|
+
line: point3.line,
|
|
264
|
+
column: point3.column,
|
|
265
|
+
offset: typeof point3.offset === "number" && point3.offset > -1 ? point3.offset : void 0
|
|
266
|
+
};
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
__name(point2, "point");
|
|
270
|
+
}
|
|
271
|
+
__name(point, "point");
|
|
272
|
+
function position(node) {
|
|
273
|
+
const start = pointStart(node);
|
|
274
|
+
const end = pointEnd(node);
|
|
275
|
+
if (start && end) {
|
|
276
|
+
return { start, end };
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
__name(position, "position");
|
|
280
|
+
|
|
281
|
+
export {
|
|
282
|
+
esm_default,
|
|
283
|
+
pointEnd,
|
|
284
|
+
pointStart,
|
|
285
|
+
position
|
|
286
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
__name
|
|
5
|
+
} from "./chunk-ZVVMGPBJ.js";
|
|
6
|
+
|
|
7
|
+
// node_modules/.pnpm/ccount@2.0.1/node_modules/ccount/index.js
|
|
8
|
+
function ccount(value, character) {
|
|
9
|
+
const source = String(value);
|
|
10
|
+
if (typeof character !== "string") {
|
|
11
|
+
throw new TypeError("Expected character");
|
|
12
|
+
}
|
|
13
|
+
let count = 0;
|
|
14
|
+
let index = source.indexOf(character);
|
|
15
|
+
while (index !== -1) {
|
|
16
|
+
count++;
|
|
17
|
+
index = source.indexOf(character, index + character.length);
|
|
18
|
+
}
|
|
19
|
+
return count;
|
|
20
|
+
}
|
|
21
|
+
__name(ccount, "ccount");
|
|
22
|
+
|
|
23
|
+
export {
|
|
24
|
+
ccount
|
|
25
|
+
};
|