@wirecat/zoom-cli 0.76.0 → 0.78.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 +12 -11
- package/contracts/wirecat.json +53 -105
- package/dist/answer-entities.d.ts +1 -141
- package/dist/answer-entities.d.ts.map +1 -1
- package/dist/answer-entities.js +0 -31
- package/dist/answer-entities.js.map +1 -1
- package/dist/api.d.ts +18 -1
- package/dist/api.d.ts.map +1 -1
- package/dist/api.js +179 -54
- package/dist/api.js.map +1 -1
- package/dist/archive-commands.d.ts +0 -3
- package/dist/archive-commands.d.ts.map +1 -1
- package/dist/archive-commands.js +1 -54
- package/dist/archive-commands.js.map +1 -1
- package/dist/bin/zm.js +2 -2
- package/dist/bundle/{all-profiles-AAMFP7IN.js → all-profiles-7JN3N3E6.js} +11 -11
- package/dist/bundle/answer-policy-G2BNMPEX.js +122 -0
- package/dist/bundle/{anthropic-6KIS53QB.js → anthropic-U6O7UYGZ.js} +6 -6
- package/dist/bundle/{app-server-6QYNNYEU.js → app-server-G7BTC6CE.js} +78 -68
- package/dist/bundle/{bun-QVVCH4MJ.js → bun-VLROVUFK.js} +2 -2
- package/dist/bundle/{bun-sqlite-Y2ZFMNQ3.js → bun-sqlite-C5JLANDE.js} +7 -7
- package/dist/bundle/{chunk-25GMFXPF.js → chunk-2AWWMROP.js} +3244 -3674
- package/dist/bundle/{chunk-YESHGC3M.js → chunk-2LMD3JUD.js} +2 -2
- package/dist/bundle/{chunk-LGBLYFKI.js → chunk-2O66KMOR.js} +6 -2
- package/dist/bundle/{chunk-JADBHKBP.js → chunk-2USGT7LE.js} +1 -1
- package/dist/bundle/{chunk-M7WYBGQT.js → chunk-3A3B3JX4.js} +8 -8
- package/dist/bundle/{chunk-RJK5ADMH.js → chunk-3NZJKY7A.js} +103 -42
- package/dist/bundle/chunk-3QWYRZME.js +773 -0
- package/dist/bundle/{chunk-D2TGXSHQ.js → chunk-4QCLPSJ7.js} +5 -5
- package/dist/bundle/{chunk-XC4V6YCS.js → chunk-4XPVRZXE.js} +1 -1
- package/dist/bundle/{chunk-EZJSAYWZ.js → chunk-532FNLON.js} +31 -87
- package/dist/bundle/{chunk-QLUU3BV2.js → chunk-53TV72JG.js} +6 -6
- package/dist/bundle/{chunk-VJANMYEC.js → chunk-5DLK4OXF.js} +3 -3
- package/dist/bundle/chunk-5SM2IOAS.js +389 -0
- package/dist/bundle/{chunk-65VRWNDP.js → chunk-6MFEWAK4.js} +4 -4
- package/dist/bundle/{chunk-IUSY4ZJK.js → chunk-6NTNAEZF.js} +2379 -2114
- package/dist/bundle/{chunk-DQHS336B.js → chunk-7AMKSXMB.js} +7 -6
- package/dist/bundle/{chunk-IXPBSDKB.js → chunk-7EVB4UV7.js} +4 -4
- package/dist/bundle/chunk-7HEZQCHL.js +555 -0
- package/dist/bundle/{chunk-TYAFL66K.js → chunk-7IIQU5RA.js} +15 -31
- package/dist/bundle/{chunk-TK77DCE5.js → chunk-7K5O2VWO.js} +1 -1
- package/dist/bundle/{chunk-VG63EXRC.js → chunk-AEVSVVTP.js} +2 -2
- package/dist/bundle/chunk-B4V4DRVO.js +229 -0
- package/dist/bundle/{chunk-2HKUQ7DR.js → chunk-B6TUEQ4O.js} +3 -3
- package/dist/bundle/chunk-BAHXR4PA.js +259 -0
- package/dist/bundle/{chunk-ZFYNJERV.js → chunk-BGO7IEHY.js} +6 -6
- package/dist/bundle/{chunk-PFLJJQWW.js → chunk-BIUHLXL2.js} +54 -55
- package/dist/bundle/{chunk-5T7TBK5Y.js → chunk-C26V2XNV.js} +1 -1
- package/dist/bundle/chunk-C56OYYFG.js +170 -0
- package/dist/bundle/{chunk-MDTEAKA5.js → chunk-DLJPN47R.js} +8 -6
- package/dist/bundle/{chunk-FBVJGJDM.js → chunk-EV7QCFQR.js} +27 -574
- package/dist/bundle/{chunk-ORM73DZO.js → chunk-F2KZNAFF.js} +2 -2
- package/dist/bundle/{chunk-QY6GE7CL.js → chunk-F7IDYQLM.js} +2 -2
- package/dist/bundle/{chunk-WNXC42IU.js → chunk-FCGRXUAU.js} +9 -9
- package/dist/bundle/{chunk-ELW3LMJZ.js → chunk-FHOQWPQ6.js} +397 -157
- package/dist/bundle/{chunk-NQ356ERO.js → chunk-FMMCGQNT.js} +77 -10
- package/dist/bundle/{chunk-K3K3WKDB.js → chunk-FNLXFQN6.js} +1 -1
- package/dist/bundle/{chunk-YGKM2ZWF.js → chunk-FURKMNC2.js} +3 -3
- package/dist/bundle/{chunk-XRH2NKW4.js → chunk-FXHZHQKU.js} +6 -6
- package/dist/bundle/{chunk-GZYICXO4.js → chunk-GQ6EJDMV.js} +1 -1
- package/dist/bundle/{chunk-VABYJQYE.js → chunk-H34KEXTN.js} +24 -22
- package/dist/bundle/{chunk-HWYSJ4SL.js → chunk-H74NENWA.js} +3 -3
- package/dist/bundle/{chunk-Y2BGABXP.js → chunk-H7SRM26V.js} +3 -3
- package/dist/bundle/{chunk-VRA4RVQU.js → chunk-HGBZBQAE.js} +3 -3
- package/dist/bundle/{chunk-EZXW3ZCR.js → chunk-HI4QICF7.js} +12 -12
- package/dist/bundle/{chunk-LEVOI6Z3.js → chunk-HOJOVUO6.js} +14 -13
- package/dist/bundle/{chunk-XWQKRKMT.js → chunk-HUSIS3XO.js} +71 -252
- package/dist/bundle/chunk-IBINGDYF.js +335 -0
- package/dist/bundle/{chunk-55SWKR6Y.js → chunk-INJK7FNM.js} +337 -597
- package/dist/bundle/{chunk-CXHUOPN5.js → chunk-JOIAE3NO.js} +7 -7
- package/dist/bundle/{chunk-OFODCJ2A.js → chunk-KBTINKQF.js} +3 -3
- package/dist/bundle/{chunk-VCFSUGPE.js → chunk-KEAKNNXU.js} +4 -4
- package/dist/bundle/{chunk-XHVFX74L.js → chunk-LBTANUUH.js} +2 -2
- package/dist/bundle/chunk-LBV4673S.js +72 -0
- package/dist/bundle/chunk-LERF2FIK.js +295 -0
- package/dist/bundle/{chunk-UYZDH5LK.js → chunk-LX532BXO.js} +1 -1
- package/dist/bundle/{chunk-IVFNHIU4.js → chunk-M2M3U4UU.js} +81 -5
- package/dist/bundle/{chunk-JWMOHEDL.js → chunk-M5R2DURM.js} +10 -10
- package/dist/bundle/{chunk-4ERYXY4Y.js → chunk-MJMHUU3J.js} +1 -1
- package/dist/bundle/{chunk-GYTAHH5Y.js → chunk-MSMFYW6N.js} +2 -2
- package/dist/bundle/{chunk-X73YEFQE.js → chunk-MVLLWSV7.js} +20 -118
- package/dist/bundle/{chunk-RXUVXAMM.js → chunk-NO2LIHWA.js} +1 -1
- package/dist/bundle/{chunk-Y4WEAWU7.js → chunk-NS5XSCHC.js} +1 -1
- package/dist/bundle/{chunk-ZETM63M6.js → chunk-OAE6XR7E.js} +9 -60
- package/dist/bundle/{chunk-CS62FET6.js → chunk-OAYAGQ7C.js} +22 -22
- package/dist/bundle/{chunk-T2QVWRJF.js → chunk-OI4563JI.js} +39 -67
- package/dist/bundle/{chunk-WKT5RPSY.js → chunk-OOLNK3Y5.js} +8 -8
- package/dist/bundle/{chunk-EBIK5Q73.js → chunk-ORSTSBWU.js} +1 -1
- package/dist/bundle/{chunk-GB5LI5RM.js → chunk-P5QO7Y3H.js} +6 -6
- package/dist/bundle/{chunk-3D5PETD2.js → chunk-PJMQE4PW.js} +29 -9
- package/dist/bundle/{chunk-KEFDP6NL.js → chunk-Q4AKIAIA.js} +12 -12
- package/dist/bundle/{chunk-CPOFLYPU.js → chunk-Q4CNLEAY.js} +29 -29
- package/dist/bundle/{chunk-UAV74EY4.js → chunk-RJIJR6KH.js} +1 -1
- package/dist/bundle/{chunk-GPIQY4YB.js → chunk-TEFHNXXX.js} +14 -14
- package/dist/bundle/{chunk-FMJ4QSSU.js → chunk-TFDD4Q5Z.js} +10 -10
- package/dist/bundle/{chunk-HUHH25AG.js → chunk-TXDCIM5D.js} +3017 -1599
- package/dist/bundle/{chunk-FGRFIXG2.js → chunk-U2Z35B3W.js} +2 -2
- package/dist/bundle/{chunk-WZJ7ZYR4.js → chunk-UHBQM54J.js} +4 -4
- package/dist/bundle/{chunk-6VCQ4CTK.js → chunk-UIBKGH5P.js} +1 -1
- package/dist/bundle/{chunk-5EII5RIL.js → chunk-UKYO3HNO.js} +1 -1
- package/dist/bundle/{chunk-7RORMNKP.js → chunk-V53TIJLY.js} +2 -2
- package/dist/bundle/{chunk-OOYIPK4F.js → chunk-VMA7SILL.js} +1 -1
- package/dist/bundle/chunk-VW36ZSAE.js +88 -0
- package/dist/bundle/chunk-WEAMGNST.js +31 -0
- package/dist/bundle/{chunk-EPPE6ZTS.js → chunk-WJTXO2EI.js} +1 -1
- package/dist/bundle/{chunk-4JPOELCT.js → chunk-WOYPWXZK.js} +4 -4
- package/dist/bundle/{chunk-OINDAHXC.js → chunk-XCOGI4JE.js} +4 -4
- package/dist/bundle/{chunk-CE5Y7PQU.js → chunk-XOG7B7K5.js} +4 -4
- package/dist/bundle/chunk-XSF5OBVZ.js +224 -0
- package/dist/bundle/{chunk-B7ZREOBD.js → chunk-XXD4YPHQ.js} +12 -12
- package/dist/bundle/{chunk-35AH33VJ.js → chunk-YAPDU3SV.js} +1 -1
- package/dist/bundle/{chunk-R47GYLNN.js → chunk-YHQ3TEGB.js} +29 -27
- package/dist/bundle/{chunk-LOEK6IFQ.js → chunk-YLNUKNGD.js} +87 -35
- package/dist/bundle/{chunk-6SXCGS3A.js → chunk-YNYQGZUW.js} +7 -7
- package/dist/bundle/{chunk-OWZETMRE.js → chunk-YZKVCTZI.js} +8 -8
- package/dist/bundle/{chunk-UG2QDGAH.js → chunk-ZCVO6GAT.js} +1 -1
- package/dist/bundle/{chunk-YEBWRWE3.js → chunk-ZDZASHSQ.js} +17 -17
- package/dist/bundle/chunk-ZZJ5IWNT.js +101 -0
- package/dist/bundle/{cli-FHMLYHUZ.js → cli-YALONJ4V.js} +135 -84
- package/dist/bundle/command-contract-DMR5EOIN.js +45 -0
- package/dist/bundle/{command-server-entry-YEZM52R5.js → command-server-entry-W4XTBUZE.js} +35 -31
- package/dist/bundle/config-4TLDRXRL.js +109 -0
- package/dist/bundle/{decode-SIYRMJOK.js → decode-IFQHVCFX.js} +16 -8
- package/dist/bundle/{dispatch-SMER3WDX.js → dispatch-GOJB4TDK.js} +9 -9
- package/dist/bundle/{dist-BSJETSFE.js → dist-H7XFUMRX.js} +25 -22
- package/dist/bundle/{echarts-UZJ6AREV.js → echarts-HPUHPJCO.js} +2 -2
- package/dist/bundle/{embed-A7DSHVI7.js → embed-ESU3WZYW.js} +7 -7
- package/dist/bundle/{embedder-WQBR4UGS.js → embedder-BV6O76B3.js} +10 -10
- package/dist/bundle/{failure-73UQXQTW.js → failure-SWVCYFQX.js} +3 -3
- package/dist/bundle/first-run-OEJGAQAE.js +29 -0
- package/dist/bundle/first-screen-QLM4IABL.js +45 -0
- package/dist/bundle/{folders-BH4SV6SI.js → folders-VQGKBM3P.js} +5 -5
- package/dist/bundle/{instructions-SDDUBGH4.js → instructions-UUX57I3V.js} +1 -1
- package/dist/bundle/{main-KL4FN5F3.js → main-UIKADOFB.js} +24 -24
- package/dist/bundle/{mcp-GN4FTJX5.js → mcp-VMS6PBCU.js} +2 -2
- package/dist/bundle/meeting-combined-SKJISCC7.js +26 -0
- package/dist/bundle/meeting-model-YG3Z5KCB.js +26 -0
- package/dist/bundle/meeting-semantic-F6GUICB7.js +23 -0
- package/dist/bundle/{meetings-URPXBHV7.js → meetings-KIBUPLPW.js} +37 -7
- package/dist/bundle/{node-ELCNUOCE.js → node-AM3JCAWB.js} +2 -2
- package/dist/bundle/{node-sqlite-QLSNHZBM.js → node-sqlite-VM6VS3RU.js} +8 -8
- package/dist/bundle/{oauth-LZ64S7Y3.js → oauth-AX5Z32H6.js} +8 -8
- package/dist/bundle/{open-WB4HUPQT.js → open-SSGOOOZG.js} +6 -6
- package/dist/bundle/openai-YIP73X2B.js +28 -0
- package/dist/bundle/{output-file-AHPQA5LR.js → output-file-FR226A64.js} +6 -6
- package/dist/bundle/{process-67DAKAAQ.js → process-5ZEK2VFY.js} +1 -1
- package/dist/bundle/{program-CIMACIBE.js → program-ROJAJHCB.js} +424 -251
- package/dist/bundle/{prompt-GG53UBDJ.js → prompt-6Y7A4453.js} +6 -6
- package/dist/bundle/{recognize-CFJ3CAEH.js → recognize-R5W25WKH.js} +5 -5
- package/dist/bundle/{remote-BLEM7C3Q.js → remote-PA4FQUZK.js} +11 -11
- package/dist/bundle/{rerank-ERN6PC66.js → rerank-CYX3UFTM.js} +8 -8
- package/dist/bundle/run-log-FHERL3H6.js +136 -0
- package/dist/bundle/{serve-FJPPTJXH.js → serve-MM5QEZJW.js} +15 -15
- package/dist/bundle/{server-FLUSDUGM.js → server-JQQAH7E5.js} +64 -54
- package/dist/bundle/server-W2BBONCQ.js +85 -0
- package/dist/bundle/{services-LXC6DVUQ.js → services-Y2DOQONM.js} +85 -54
- package/dist/bundle/{speech-WFEZTKXA.js → speech-O6WLX34V.js} +34 -18
- package/dist/bundle/{sqlite-runtime-KN33VSP7.js → sqlite-runtime-LQTBZMFH.js} +7 -7
- package/dist/bundle/{state-TXS4ZHIT.js → state-AIDPZLVH.js} +7 -7
- package/dist/bundle/{store-ZUREZYZB.js → store-BA4FQS5V.js} +26 -20
- package/dist/bundle/{store-MUOXLVL4.js → store-UNDS2TBG.js} +30 -22
- package/dist/bundle/store-connection-ADBJ36T4.js +102 -0
- package/dist/bundle/store-maintenance-command-IB6ML4UI.js +77 -0
- package/dist/bundle/{streaming-ZSCHRC5S.js → streaming-UFHT5MR2.js} +7 -7
- package/dist/bundle/{tokens-YVDOY4EV.js → tokens-Z32UKGQB.js} +10 -10
- package/dist/bundle/zm.js +9 -9
- package/dist/bundle/{zoom-app-O6GIMB7Y.js → zoom-app-6U46XBTG.js} +8 -8
- package/dist/commands.d.ts.map +1 -1
- package/dist/commands.js +3 -0
- package/dist/commands.js.map +1 -1
- package/dist/first-screen.d.ts.map +1 -1
- package/dist/first-screen.js +3 -5
- package/dist/first-screen.js.map +1 -1
- package/dist/meeting-integration-commands.d.ts.map +1 -1
- package/dist/meeting-integration-commands.js +46 -28
- package/dist/meeting-integration-commands.js.map +1 -1
- package/dist/meeting-source.d.ts.map +1 -1
- package/dist/meeting-source.js +15 -1
- package/dist/meeting-source.js.map +1 -1
- package/dist/permissions.d.ts +8 -4
- package/dist/permissions.d.ts.map +1 -1
- package/dist/permissions.js +25 -24
- package/dist/permissions.js.map +1 -1
- package/dist/program-bindings.d.ts.map +1 -1
- package/dist/program-bindings.js +8 -5
- package/dist/program-bindings.js.map +1 -1
- package/dist/program.d.ts +2 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js.map +1 -1
- package/dist/remote-meetings.d.ts +38 -8
- package/dist/remote-meetings.d.ts.map +1 -1
- package/dist/remote-meetings.js +52 -29
- package/dist/remote-meetings.js.map +1 -1
- package/dist/run.js +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/zoom-app.d.ts.map +1 -1
- package/dist/zoom-app.js +1 -0
- package/dist/zoom-app.js.map +1 -1
- package/package.json +5 -4
- package/skills/zoom-cli/SKILL.md +88 -236
- package/skills/zoom-cli/references/archive.md +59 -0
- package/skills/zoom-cli/references/people-and-projects.md +51 -0
- package/skills/zoom-cli/references/prepare.md +78 -0
- package/skills/zoom-cli/references/search.md +71 -0
- package/skills/zoom-cli/references/setup.md +31 -0
- package/skills/zoom-cli/references/zoom-live.md +27 -0
- package/dist/bundle/answer-policy-ETAELI4A.js +0 -110
- package/dist/bundle/chunk-64N7MY3I.js +0 -161
- package/dist/bundle/command-contract-HUZ4I23S.js +0 -41
- package/dist/bundle/config-KVTWN7QZ.js +0 -97
- package/dist/bundle/first-run-SY6XSUZ3.js +0 -29
- package/dist/bundle/first-screen-ZDMODGWS.js +0 -39
- package/dist/bundle/openai-KN6JE4QU.js +0 -28
- package/dist/bundle/run-log-S67YPJF6.js +0 -124
- package/dist/bundle/server-UNJY3TSJ.js +0 -74
- package/dist/bundle/store-connection-NRNEBUPU.js +0 -90
- package/dist/bundle/store-maintenance-command-OBOPYFZ5.js +0 -65
- /package/dist/bundle/{chunk-BDCC2J2Z.js → chunk-SHTHNBHG.js} +0 -0
|
@@ -0,0 +1,389 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
validateVector
|
|
5
|
+
} from "./chunk-C56OYYFG.js";
|
|
6
|
+
import {
|
|
7
|
+
meaningFloor
|
|
8
|
+
} from "./chunk-IBINGDYF.js";
|
|
9
|
+
import {
|
|
10
|
+
RRF_K,
|
|
11
|
+
plainQuery
|
|
12
|
+
} from "./chunk-3QWYRZME.js";
|
|
13
|
+
import {
|
|
14
|
+
MESSAGE_PARSING
|
|
15
|
+
} from "./chunk-LBV4673S.js";
|
|
16
|
+
import {
|
|
17
|
+
normalize
|
|
18
|
+
} from "./chunk-7K5O2VWO.js";
|
|
19
|
+
import {
|
|
20
|
+
MEETING_FIELD_NAMES,
|
|
21
|
+
formatMeetingReference,
|
|
22
|
+
liftMeetingFields,
|
|
23
|
+
parseMeetingReference
|
|
24
|
+
} from "./chunk-FHOQWPQ6.js";
|
|
25
|
+
import {
|
|
26
|
+
implicitTextTerms,
|
|
27
|
+
parseLucene,
|
|
28
|
+
walkQuery
|
|
29
|
+
} from "./chunk-TFDD4Q5Z.js";
|
|
30
|
+
import {
|
|
31
|
+
CliError
|
|
32
|
+
} from "./chunk-FNLXFQN6.js";
|
|
33
|
+
import {
|
|
34
|
+
__name
|
|
35
|
+
} from "./chunk-ZVVMGPBJ.js";
|
|
36
|
+
|
|
37
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/services/meeting-combined.js
|
|
38
|
+
import { createHash } from "node:crypto";
|
|
39
|
+
|
|
40
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/search/question-plan.js
|
|
41
|
+
var words = /* @__PURE__ */ __name((text) => normalize(text).match(/[\p{L}\p{N}]+/gu) ?? [], "words");
|
|
42
|
+
var joinedHyphens = /* @__PURE__ */ __name((text) => (normalize(text).match(new RegExp("(?<![:\\p{L}\\p{N}-])\\p{L}[\\p{L}\\p{N}]*(?:-\\p{L}[\\p{L}\\p{N}]*)+", "gu")) ?? []).map((word) => word.replaceAll("-", "")), "joinedHyphens");
|
|
43
|
+
var scaffolding = new Set(words("what which how many much who where when is are was were do does did can could should we the a an for of to under from in on at has have \u0441\u043A\u043E\u043B\u044C\u043A\u043E \u043A\u0430\u043A\u043E\u0439 \u043A\u0430\u043A\u0430\u044F \u043A\u0430\u043A\u0438\u0435 \u043A\u0430\u043A\u043E\u0435 \u043A\u0442\u043E \u043A\u043E\u043C\u0443 \u043A\u0435\u043C \u0433\u0434\u0435 \u043A\u043E\u0433\u0434\u0430 \u043A\u0430\u043A \u0447\u0442\u043E \u0432\u043E \u043F\u043E \u043D\u0430 \u0432 \u043A \u0441 \u0443 \u0447\u0435\u0440\u0435\u0437 \u043B\u0438 \u0434\u043E\u043B\u0436\u0435\u043D \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0443\u0436\u043D\u043E \u0438\u0434\u0451\u0442 \u0438\u0434\u0435\u0442 \u043C\u043E\u0436\u043D\u043E \u043C\u043E\u0436\u0435\u0442 \u043C\u043E\u0433\u0443\u0442"));
|
|
44
|
+
var questionWord = /\b(?:what|which|how|who|where|when|can|could|should)\b|(?:^|\s)(?:сколько|какой|какая|какие|какое|кто|кому|кем|где|когда|как|что|можно|может|могут|ли)(?:\s|$)/iu;
|
|
45
|
+
var QUESTION_STARTS = new Set(words("what which how who whom whose where when why can could should would did do does is are was were will \u0447\u0442\u043E \u043A\u0442\u043E \u043A\u043E\u0433\u043E \u043A\u043E\u043C\u0443 \u043A\u0435\u043C \u0433\u0434\u0435 \u043A\u043E\u0433\u0434\u0430 \u043A\u0430\u043A \u043A\u0430\u043A\u043E\u0439 \u043A\u0430\u043A\u0430\u044F \u043A\u0430\u043A\u043E\u0435 \u043A\u0430\u043A\u0438\u0435 \u043A\u0430\u043A\u0443\u044E \u043A\u0430\u043A\u0438\u043C \u043A\u0430\u043A\u043E\u0433\u043E \u043A\u0430\u043A\u0438\u0445 \u043F\u043E\u0447\u0435\u043C\u0443 \u0437\u0430\u0447\u0435\u043C \u043E\u0442\u043A\u0443\u0434\u0430 \u043A\u0443\u0434\u0430 \u0441\u043A\u043E\u043B\u044C\u043A\u043E \u043B\u0438 \u043C\u043E\u0436\u043D\u043E \u0440\u0430\u0437\u0432\u0435 \u0447\u0435\u0439 \u0447\u044C\u044F \u0447\u044C\u0451 \u0447\u044C\u0438"));
|
|
46
|
+
var QUESTION_FILLER = new Set(words("about any did does why whom whose would will \u044D\u0442\u043E \u043C\u044B \u0432\u044B \u044F \u043E\u043D\u0438 \u043E\u043D \u043E\u043D\u0430 \u043E \u043E\u0431 \u043F\u0440\u043E \u043B\u0438"));
|
|
47
|
+
var LINKING = new Set(words("and or but not nor with without this that these those there their they them you your our its his her all any and for into onto over then than also just and \u043F\u0440\u0438 \u0434\u043B\u044F \u0431\u0435\u0437 \u043D\u0430\u0434 \u043F\u043E\u0434 \u0438\u043B\u0438 \u043B\u0438\u0431\u043E \u0435\u0433\u043E \u0435\u0451 \u0438\u0445 \u0432\u0441\u0435 \u0432\u0441\u0451 \u0443\u0436\u0435 \u0435\u0449\u0451 \u0442\u0430\u043A \u0442\u043E\u0436\u0435 \u0442\u0430\u043A\u0436\u0435 \u0431\u044B\u043B \u0431\u044B\u043B\u0430 \u0431\u044B\u043B\u0438 \u0431\u044B\u043B\u043E \u0431\u0443\u0434\u0435\u0442 \u044D\u0442\u043E \u044D\u0442\u0430 \u044D\u0442\u043E\u0442 \u044D\u0442\u0438 \u0442\u0430\u043C \u0442\u0443\u0442"));
|
|
48
|
+
var isFunctionWord = /* @__PURE__ */ __name((word) => scaffolding.has(word) || QUESTION_STARTS.has(word) || QUESTION_FILLER.has(word) || LINKING.has(word), "isFunctionWord");
|
|
49
|
+
var questionTerms = /* @__PURE__ */ __name((text) => /\?\s*$/u.test(text) || QUESTION_STARTS.has(words(text)[0] ?? "") ? words(text).filter((word) => !scaffolding.has(word) && !QUESTION_STARTS.has(word) && !QUESTION_FILLER.has(word)) : null, "questionTerms");
|
|
50
|
+
function planQuestion(text, strict = false) {
|
|
51
|
+
if (strict)
|
|
52
|
+
return {
|
|
53
|
+
changed: false,
|
|
54
|
+
natural: false,
|
|
55
|
+
queries: [text],
|
|
56
|
+
scope: "",
|
|
57
|
+
terms: words(text),
|
|
58
|
+
rankingTerms: words(text),
|
|
59
|
+
removed: [],
|
|
60
|
+
aliases: []
|
|
61
|
+
};
|
|
62
|
+
const inputAst = parseLucene(text, MESSAGE_PARSING);
|
|
63
|
+
const rawTextual = walkQuery(inputAst.root).filter((node) => node.field === "text" || node.field === "exact");
|
|
64
|
+
const body = rawTextual.map((node) => node.value).join(" ");
|
|
65
|
+
const prefix = words(body).slice(0, 2);
|
|
66
|
+
const questionPrefix = [
|
|
67
|
+
"what",
|
|
68
|
+
"which",
|
|
69
|
+
"how",
|
|
70
|
+
"who",
|
|
71
|
+
"where",
|
|
72
|
+
"when",
|
|
73
|
+
"can",
|
|
74
|
+
"could",
|
|
75
|
+
"should",
|
|
76
|
+
"\u0441\u043A\u043E\u043B\u044C\u043A\u043E",
|
|
77
|
+
"\u043A\u0430\u043A\u043E\u0438",
|
|
78
|
+
"\u043A\u0430\u043A\u0430\u044F",
|
|
79
|
+
"\u043A\u0430\u043A\u0438\u0435",
|
|
80
|
+
"\u043A\u0430\u043A\u043E\u0435",
|
|
81
|
+
"\u043A\u0442\u043E",
|
|
82
|
+
"\u043A\u043E\u043C\u0443",
|
|
83
|
+
"\u043A\u0435\u043C",
|
|
84
|
+
"\u0433\u0434\u0435",
|
|
85
|
+
"\u043A\u043E\u0433\u0434\u0430",
|
|
86
|
+
"\u043A\u0430\u043A",
|
|
87
|
+
"\u0447\u0442\u043E",
|
|
88
|
+
"\u043C\u043E\u0436\u043D\u043E",
|
|
89
|
+
"\u043C\u043E\u0436\u0435\u0442",
|
|
90
|
+
"\u043C\u043E\u0433\u0443\u0442"
|
|
91
|
+
].includes(prefix[0] ?? "") || ["\u043A", "\u0432\u043E"].includes(prefix[0] ?? "") && ["\u043A\u043E\u043C\u0443", "\u0441\u043A\u043E\u043B\u044C\u043A\u043E"].includes(prefix[1] ?? "");
|
|
92
|
+
const natural = questionWord.test(body) && (/\?/u.test(body) || questionPrefix);
|
|
93
|
+
let cleaned = text;
|
|
94
|
+
if (natural && !text.includes("\\")) {
|
|
95
|
+
const last = rawTextual.at(-1);
|
|
96
|
+
const mark = (last?.span.end ?? 0) - 1;
|
|
97
|
+
if (last?.operator === "wildcard" && text[mark] === "?")
|
|
98
|
+
cleaned = text.slice(0, mark) + text.slice(mark + 1);
|
|
99
|
+
}
|
|
100
|
+
const ast = cleaned === text ? inputAst : parseLucene(cleaned, MESSAGE_PARSING);
|
|
101
|
+
const predicates = walkQuery(ast.root);
|
|
102
|
+
const textual = predicates.filter((p) => p.field === "text" || p.field === "exact");
|
|
103
|
+
const fields = predicates.filter((p) => p.field !== "text" && p.field !== "exact");
|
|
104
|
+
const scope = fields.map((p) => {
|
|
105
|
+
const raw = cleaned.slice(p.span.start, p.span.end);
|
|
106
|
+
return new RegExp(`^${p.field}[:=<>]`, "u").test(raw) ? raw : `${p.field}:${raw}`;
|
|
107
|
+
}).join(" ");
|
|
108
|
+
const bypass = strict || !natural || implicitTextTerms(cleaned).size === 0 || // A quoted single word is how `plainQuery` keeps `10:30` or `HH:MM` literal; it is no phrase the asker wrote.
|
|
109
|
+
textual.some((p) => !(p.operator === "term" || p.operator === "phrase" && !/\s/u.test(p.value)) || p.field === "exact");
|
|
110
|
+
if (bypass)
|
|
111
|
+
return {
|
|
112
|
+
changed: false,
|
|
113
|
+
natural: false,
|
|
114
|
+
queries: [text],
|
|
115
|
+
scope,
|
|
116
|
+
terms: textual.flatMap((p) => words(p.value)),
|
|
117
|
+
rankingTerms: textual.flatMap((p) => words(p.value)),
|
|
118
|
+
removed: [],
|
|
119
|
+
aliases: []
|
|
120
|
+
};
|
|
121
|
+
const original = textual.flatMap((p) => words(p.value));
|
|
122
|
+
const removed = original.filter((w) => scaffolding.has(w));
|
|
123
|
+
const terms = [...new Set(original.filter((w) => !scaffolding.has(w)))];
|
|
124
|
+
if (!terms.length)
|
|
125
|
+
return {
|
|
126
|
+
changed: false,
|
|
127
|
+
natural: true,
|
|
128
|
+
queries: [text],
|
|
129
|
+
scope,
|
|
130
|
+
terms,
|
|
131
|
+
rankingTerms: original,
|
|
132
|
+
removed,
|
|
133
|
+
aliases: []
|
|
134
|
+
};
|
|
135
|
+
const alias = [...terms];
|
|
136
|
+
const changes = [];
|
|
137
|
+
const replace = /* @__PURE__ */ __name((from, to) => {
|
|
138
|
+
for (let i = 0; i < alias.length; i++)
|
|
139
|
+
if (from.includes(alias[i] ?? "")) {
|
|
140
|
+
changes.push(`${alias[i]} -> ${to}`);
|
|
141
|
+
alias[i] = to;
|
|
142
|
+
}
|
|
143
|
+
}, "replace");
|
|
144
|
+
if (terms.some((w) => ["refund", "euros", "euro", "money", "\u0432\u043E\u0437\u0432\u0440\u0430\u0442\u0430", "\u0432\u043E\u0437\u0432\u0440\u0430\u0442", "\u0435\u0432\u0440\u043E"].includes(w))) {
|
|
145
|
+
replace(["returned", "refunded", "received"], "refund");
|
|
146
|
+
replace(["\u0432\u0435\u0440\u043D\u0443\u043B\u0438", "\u0432\u043E\u0437\u0432\u0440\u0430\u0449\u0435\u043D\u043E", "\u043F\u0435\u0440\u0435\u0447\u0438\u0441\u043B\u0435\u043D\u043E"], "\u0432\u043E\u0437\u0432\u0440\u0430\u0442");
|
|
147
|
+
}
|
|
148
|
+
if (terms.some((w) => ["log", "logs", "retention", "backup", "\u043B\u043E\u0433\u043E\u0432", "\u043B\u043E\u0433\u0438", "\u0445\u0440\u0430\u043D\u0435\u043D\u0438\u0435", "\u0445\u0440\u0430\u043D\u0435\u043D\u0438\u044F"].includes(w))) {
|
|
149
|
+
replace(["lifetime", "kept", "keep"], "retention");
|
|
150
|
+
replace(["\u0445\u0440\u0430\u043D\u044F\u0442\u0441\u044F", "\u0445\u0440\u0430\u043D\u044F\u0442", "\u0445\u0440\u0430\u043D\u0438\u0442\u044C", "\u0441\u0440\u043E\u043A"], "\u0445\u0440\u0430\u043D\u0435\u043D\u0438\u0435");
|
|
151
|
+
}
|
|
152
|
+
if (terms.includes("service") || terms.includes("build"))
|
|
153
|
+
replace(["currently", "now"], "current");
|
|
154
|
+
const render = /* @__PURE__ */ __name((ws) => [...new Set(ws)].join(" ") + (scope ? ` ${scope}` : ""), "render");
|
|
155
|
+
const queries = [.../* @__PURE__ */ new Set([render(terms), render(alias)])].slice(0, 2);
|
|
156
|
+
return { changed: true, natural: true, queries, scope, terms, rankingTerms: original, removed, aliases: changes };
|
|
157
|
+
}
|
|
158
|
+
__name(planQuestion, "planQuestion");
|
|
159
|
+
var questionText = /* @__PURE__ */ __name((text) => text.replace(new RegExp("(?<=\\p{L})\\?(?=\\s|$)", "gu"), "").replace(/"(?:[^"\\]|\\.)*"|(?<=\d):(?=\d)/gu, (found) => found === ":" ? " " : found), "questionText");
|
|
160
|
+
var lookupTerms = /* @__PURE__ */ __name((plan) => [
|
|
161
|
+
...new Set(plan.terms.concat(plan.aliases.flatMap((alias) => words(alias.split(" -> ")[1] ?? ""))))
|
|
162
|
+
], "lookupTerms");
|
|
163
|
+
var anyOfTerms = /* @__PURE__ */ __name((terms, scope) => `(${terms.join(" OR ")})${scope ? ` ${scope}` : ""}`, "anyOfTerms");
|
|
164
|
+
var questionLookup = /* @__PURE__ */ __name((text) => {
|
|
165
|
+
let plan;
|
|
166
|
+
try {
|
|
167
|
+
plan = planQuestion(questionText(text));
|
|
168
|
+
} catch (error) {
|
|
169
|
+
if (error instanceof CliError)
|
|
170
|
+
return void 0;
|
|
171
|
+
throw error;
|
|
172
|
+
}
|
|
173
|
+
const terms = plan.changed ? lookupTerms(plan) : [];
|
|
174
|
+
return terms.length ? anyOfTerms(terms, plan.scope) : void 0;
|
|
175
|
+
}, "questionLookup");
|
|
176
|
+
|
|
177
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/services/meeting-hit-search.js
|
|
178
|
+
var refreshMeetingIndex = /* @__PURE__ */ __name(async (meetings, accountId, signal) => {
|
|
179
|
+
let before = Number.POSITIVE_INFINITY;
|
|
180
|
+
for (; ; ) {
|
|
181
|
+
signal?.throwIfAborted();
|
|
182
|
+
const { indexed, remaining } = await meetings.indexSearch({
|
|
183
|
+
accountId,
|
|
184
|
+
limit: 1e3,
|
|
185
|
+
maxReadBytes: 64 * 1024 ** 2,
|
|
186
|
+
signal
|
|
187
|
+
});
|
|
188
|
+
if (remaining === 0 || indexed === 0 || remaining >= before)
|
|
189
|
+
return;
|
|
190
|
+
before = remaining;
|
|
191
|
+
}
|
|
192
|
+
}, "refreshMeetingIndex");
|
|
193
|
+
var resolveMeetingSelection = /* @__PURE__ */ __name(async (store, request) => {
|
|
194
|
+
const { project, tag, topic, ...input } = request;
|
|
195
|
+
input.signal?.throwIfAborted();
|
|
196
|
+
if (project !== void 0 && input.projectId !== void 0 || [tag, topic].filter((value) => value !== void 0).length + Number(input.tagId !== void 0) > 1)
|
|
197
|
+
throw new CliError("validation_error", "choose one project selector and one tag or topic selector");
|
|
198
|
+
const selection = [];
|
|
199
|
+
const knowledge = store.knowledge;
|
|
200
|
+
if (!knowledge && [project, tag, topic].some((value) => value !== void 0))
|
|
201
|
+
throw new CliError("configuration_error", "this store cannot resolve project, tag or topic names");
|
|
202
|
+
for (const [kind, name] of [
|
|
203
|
+
["project", project],
|
|
204
|
+
["tag", tag],
|
|
205
|
+
["topic", topic]
|
|
206
|
+
]) {
|
|
207
|
+
if (name === void 0)
|
|
208
|
+
continue;
|
|
209
|
+
if (!knowledge)
|
|
210
|
+
continue;
|
|
211
|
+
const found = await knowledge.resolveVocabulary(name, { kind, signal: input.signal });
|
|
212
|
+
input.signal?.throwIfAborted();
|
|
213
|
+
if (found.ambiguous || found.matches.length !== 1)
|
|
214
|
+
throw new CliError(found.matches.length ? "validation_error" : "not_found", `the ${kind} name needs one canonical record`, {
|
|
215
|
+
candidates: found.matches.map((entry2) => ({ kind: entry2.kind, id: entry2.id, name: entry2.name }))
|
|
216
|
+
});
|
|
217
|
+
const entry = found.matches[0];
|
|
218
|
+
const id = Number(entry?.id);
|
|
219
|
+
if (!entry || entry.kind !== kind || !Number.isSafeInteger(id) || id < 1)
|
|
220
|
+
throw new CliError("invalid_response", "vocabulary resolution returned an invalid canonical record");
|
|
221
|
+
if (kind === "project")
|
|
222
|
+
input.projectId = id;
|
|
223
|
+
else
|
|
224
|
+
input.tagId = id;
|
|
225
|
+
selection.push({ kind, id, name: entry.name, by: "explicit-link" });
|
|
226
|
+
}
|
|
227
|
+
return { input, selection };
|
|
228
|
+
}, "resolveMeetingSelection");
|
|
229
|
+
var searchMeetingHits = /* @__PURE__ */ __name(async (store, query, request, options = {}) => {
|
|
230
|
+
const lifted = liftMeetingFields(plainQuery(query, MEETING_FIELD_NAMES), request);
|
|
231
|
+
const { input, selection } = await resolveMeetingSelection(store, lifted.request);
|
|
232
|
+
if (options.refreshIndex !== false)
|
|
233
|
+
await refreshMeetingIndex(store.meetings, input.accountId, input.signal);
|
|
234
|
+
const result = await store.meetings.searchHits(lifted.query, input);
|
|
235
|
+
input.signal?.throwIfAborted();
|
|
236
|
+
return { ...result, selection };
|
|
237
|
+
}, "searchMeetingHits");
|
|
238
|
+
|
|
239
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/services/meeting-combined.js
|
|
240
|
+
var DEPTH = 200;
|
|
241
|
+
var cursorOf = /* @__PURE__ */ __name((value, key) => {
|
|
242
|
+
if (value === void 0)
|
|
243
|
+
return 0;
|
|
244
|
+
let cursor;
|
|
245
|
+
try {
|
|
246
|
+
cursor = JSON.parse(Buffer.from(value, "base64url").toString("utf8"));
|
|
247
|
+
} catch {
|
|
248
|
+
throw new CliError("validation_error", "the cursor is not from a combined meeting search; search again");
|
|
249
|
+
}
|
|
250
|
+
if (cursor?.version !== 1 || cursor.key !== key || !Number.isSafeInteger(cursor.offset) || cursor.offset < 0)
|
|
251
|
+
throw new CliError("validation_error", "the cursor belongs to another query, filter or model; search again");
|
|
252
|
+
return cursor.offset;
|
|
253
|
+
}, "cursorOf");
|
|
254
|
+
var searchMeetingsCombined = /* @__PURE__ */ __name(async (store, embedder, typed, request) => {
|
|
255
|
+
const { maxChunks, maxRows, maxTextBytes, ...chosen } = request;
|
|
256
|
+
const { query, request: words2 } = liftMeetingFields(typed, chosen);
|
|
257
|
+
const { input, selection } = await resolveMeetingSelection(store, words2);
|
|
258
|
+
const { after, limit = 20, maxReadBytes, ...filters } = input;
|
|
259
|
+
const terms = questionTerms(query);
|
|
260
|
+
const wordQuery = terms === null ? query : terms.join(" ");
|
|
261
|
+
const key = createHash("sha256").update(JSON.stringify([query, embedder.key, Object.entries(filters).filter(([name]) => name !== "signal")])).digest("base64url");
|
|
262
|
+
const offset = cursorOf(after, key);
|
|
263
|
+
let byWords = [];
|
|
264
|
+
let indexing = "ready";
|
|
265
|
+
let refused;
|
|
266
|
+
if (wordQuery.trim()) {
|
|
267
|
+
await refreshMeetingIndex(store.meetings, input.accountId, input.signal);
|
|
268
|
+
try {
|
|
269
|
+
const page = await store.meetings.searchHits(wordQuery, { ...filters, limit: DEPTH, maxReadBytes });
|
|
270
|
+
byWords = page.items;
|
|
271
|
+
indexing = page.coverage.indexing;
|
|
272
|
+
} catch (error) {
|
|
273
|
+
if (!(error instanceof CliError) || error.code !== "validation_error")
|
|
274
|
+
throw error;
|
|
275
|
+
refused = error.message;
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
input.signal?.throwIfAborted();
|
|
279
|
+
const vectors = await embedder.embed([query], "query");
|
|
280
|
+
if (vectors.length !== 1)
|
|
281
|
+
throw new CliError("invalid_response", "Meeting query model returned another vector count");
|
|
282
|
+
const vector = vectors[0];
|
|
283
|
+
const ranked = await store.meetingVectors.ranked(embedder.key, validateVector(vector, embedder.dims), {
|
|
284
|
+
...filters,
|
|
285
|
+
limit: DEPTH,
|
|
286
|
+
...maxChunks === void 0 ? {} : { maxChunks },
|
|
287
|
+
...maxRows === void 0 ? {} : { maxRows },
|
|
288
|
+
...maxTextBytes === void 0 ? {} : { maxTextBytes }
|
|
289
|
+
});
|
|
290
|
+
const floor = meaningFloor(embedder.key);
|
|
291
|
+
const byMeaning = ranked.items.filter(({ score }) => score > floor);
|
|
292
|
+
const merged = /* @__PURE__ */ new Map();
|
|
293
|
+
byMeaning.forEach((hit, rank) => {
|
|
294
|
+
const reference = { type: "meeting", accountId: input.accountId, meetingId: hit.meetingId };
|
|
295
|
+
const first = formatMeetingReference({
|
|
296
|
+
...reference,
|
|
297
|
+
transcriptId: hit.transcriptId,
|
|
298
|
+
cuePosition: hit.firstPosition
|
|
299
|
+
});
|
|
300
|
+
merged.set(`${hit.transcriptId}:${hit.firstPosition}`, {
|
|
301
|
+
ref: first,
|
|
302
|
+
meetingId: hit.meetingId,
|
|
303
|
+
scope: "transcript",
|
|
304
|
+
text: hit.text,
|
|
305
|
+
startMs: null,
|
|
306
|
+
source: { title: hit.title, startedAt: hit.startedAt, url: null },
|
|
307
|
+
by: ["meaning"],
|
|
308
|
+
score: hit.score,
|
|
309
|
+
passage: {
|
|
310
|
+
first,
|
|
311
|
+
last: formatMeetingReference({ ...reference, transcriptId: hit.transcriptId, cuePosition: hit.lastPosition })
|
|
312
|
+
},
|
|
313
|
+
fused: 1 / (RRF_K + rank + 1)
|
|
314
|
+
});
|
|
315
|
+
});
|
|
316
|
+
byWords.forEach((hit, rank) => {
|
|
317
|
+
const share = 1 / (RRF_K + rank + 1);
|
|
318
|
+
const cue = hit.scope === "transcript" ? parseMeetingReference(hit.ref) : void 0;
|
|
319
|
+
const within = cue?.cuePosition === void 0 ? void 0 : byMeaning.find((passage) => passage.transcriptId === cue.transcriptId && passage.firstPosition <= cue.cuePosition && cue.cuePosition <= passage.lastPosition);
|
|
320
|
+
const held = within && merged.get(`${within.transcriptId}:${within.firstPosition}`);
|
|
321
|
+
const found = {
|
|
322
|
+
ref: hit.ref,
|
|
323
|
+
text: hit.text,
|
|
324
|
+
startMs: hit.startMs,
|
|
325
|
+
...hit.match === void 0 ? {} : { match: hit.match },
|
|
326
|
+
...hit.corrections === void 0 ? {} : { corrections: hit.corrections }
|
|
327
|
+
};
|
|
328
|
+
if (held && !held.by.includes("words")) {
|
|
329
|
+
Object.assign(held, found, { by: ["words", "meaning"], fused: held.fused + share });
|
|
330
|
+
if (hit.source?.url)
|
|
331
|
+
held.source.url = hit.source.url;
|
|
332
|
+
} else if (held)
|
|
333
|
+
held.fused += share;
|
|
334
|
+
else
|
|
335
|
+
merged.set(`w:${hit.ref}:${hit.scope}:${hit.id}`, {
|
|
336
|
+
...found,
|
|
337
|
+
meetingId: hit.meetingId,
|
|
338
|
+
scope: hit.scope,
|
|
339
|
+
source: {
|
|
340
|
+
title: hit.source?.title ?? null,
|
|
341
|
+
startedAt: hit.source?.startedAt ?? null,
|
|
342
|
+
url: hit.source?.url ?? null
|
|
343
|
+
},
|
|
344
|
+
by: ["words"],
|
|
345
|
+
score: null,
|
|
346
|
+
fused: share
|
|
347
|
+
});
|
|
348
|
+
});
|
|
349
|
+
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));
|
|
350
|
+
const items = ordered.slice(offset, offset + limit).map(({ fused: _, ...hit }) => hit);
|
|
351
|
+
const hasMore = ordered.length > offset + limit;
|
|
352
|
+
return {
|
|
353
|
+
items,
|
|
354
|
+
hasMore,
|
|
355
|
+
nextCursor: hasMore ? Buffer.from(JSON.stringify({ version: 1, key, offset: offset + limit })).toString("base64url") : null,
|
|
356
|
+
selection,
|
|
357
|
+
words: {
|
|
358
|
+
query: wordQuery,
|
|
359
|
+
...terms === null ? {} : { from: "question" },
|
|
360
|
+
...refused === void 0 ? {} : { refused }
|
|
361
|
+
},
|
|
362
|
+
model: { key: embedder.key, model: embedder.model, kind: embedder.kind, dims: embedder.dims },
|
|
363
|
+
coverage: {
|
|
364
|
+
archiveCompleteness: "unknown",
|
|
365
|
+
indexCompleteness: "unknown",
|
|
366
|
+
indexing,
|
|
367
|
+
/** Every vector of the selection was compared; false when `maxChunks` stopped the scan. */
|
|
368
|
+
meaningScanComplete: ranked.complete,
|
|
369
|
+
scanned: ranked.scanned,
|
|
370
|
+
/** Each side ranks this many at most; pages past them hold nothing more. */
|
|
371
|
+
depth: DEPTH
|
|
372
|
+
}
|
|
373
|
+
};
|
|
374
|
+
}, "searchMeetingsCombined");
|
|
375
|
+
|
|
376
|
+
export {
|
|
377
|
+
words,
|
|
378
|
+
joinedHyphens,
|
|
379
|
+
isFunctionWord,
|
|
380
|
+
planQuestion,
|
|
381
|
+
questionText,
|
|
382
|
+
lookupTerms,
|
|
383
|
+
anyOfTerms,
|
|
384
|
+
questionLookup,
|
|
385
|
+
refreshMeetingIndex,
|
|
386
|
+
resolveMeetingSelection,
|
|
387
|
+
searchMeetingHits,
|
|
388
|
+
searchMeetingsCombined
|
|
389
|
+
};
|
|
@@ -9,15 +9,15 @@ import {
|
|
|
9
9
|
optional,
|
|
10
10
|
pipe,
|
|
11
11
|
safeParse
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-PJMQE4PW.js";
|
|
13
13
|
import {
|
|
14
14
|
CliError
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-FNLXFQN6.js";
|
|
16
16
|
import {
|
|
17
17
|
__name
|
|
18
18
|
} from "./chunk-ZVVMGPBJ.js";
|
|
19
19
|
|
|
20
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/models/options.js
|
|
21
21
|
var checkedOptions = /* @__PURE__ */ __name((provider, schema, options) => {
|
|
22
22
|
const parsed = safeParse(schema, options);
|
|
23
23
|
if (!parsed.success) {
|
|
@@ -27,7 +27,7 @@ var checkedOptions = /* @__PURE__ */ __name((provider, schema, options) => {
|
|
|
27
27
|
}, "checkedOptions");
|
|
28
28
|
var range = /* @__PURE__ */ __name((min, max) => optional(pipe(number(), finite(), minValue(min), maxValue(max))), "range");
|
|
29
29
|
|
|
30
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_3bf07d813b3b8f6ae0583ce017092c7c/node_modules/@wirecat/cli-core/dist/models/types.js
|
|
31
31
|
var MAX_MODEL_IMAGE_BYTES = 4 * 1024 * 1024;
|
|
32
32
|
var validateImages = /* @__PURE__ */ __name((images) => {
|
|
33
33
|
if (images === void 0)
|