@wirecat/zoom-cli 0.82.0 → 0.84.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 -12
- package/contracts/wirecat.json +88 -55
- package/dist/account-removal.d.ts +1 -1
- package/dist/account-removal.d.ts.map +1 -1
- package/dist/account-removal.js +1 -1
- package/dist/account-removal.js.map +1 -1
- package/dist/agent-skill.js +1 -1
- package/dist/agent-skill.js.map +1 -1
- package/dist/answer-entities.d.ts +1 -1
- package/dist/answer-entities.d.ts.map +1 -1
- package/dist/answer-entities.js +1 -1
- package/dist/answer-entities.js.map +1 -1
- package/dist/answer-output.d.ts +2 -2
- package/dist/answer-output.d.ts.map +1 -1
- package/dist/answer-output.js +1 -1
- package/dist/answer-output.js.map +1 -1
- package/dist/answer-policy.d.ts.map +1 -1
- package/dist/answer-policy.js +1 -2
- package/dist/answer-policy.js.map +1 -1
- package/dist/answers.js +1 -1
- package/dist/answers.js.map +1 -1
- package/dist/api.d.ts +2 -2
- package/dist/api.d.ts.map +1 -1
- package/dist/api.js +2 -2
- package/dist/api.js.map +1 -1
- package/dist/archive-commands.d.ts +1 -1
- package/dist/archive-commands.d.ts.map +1 -1
- package/dist/archive-commands.js +1 -2
- package/dist/archive-commands.js.map +1 -1
- package/dist/archive-import.d.ts +1 -1
- package/dist/archive-import.d.ts.map +1 -1
- package/dist/archive-import.js +1 -1
- package/dist/archive-import.js.map +1 -1
- package/dist/archive-transcripts.d.ts +1 -1
- package/dist/archive-transcripts.d.ts.map +1 -1
- package/dist/archive-transcripts.js +1 -2
- package/dist/archive-transcripts.js.map +1 -1
- package/dist/bin/main.js +4 -17
- package/dist/bin/main.js.map +1 -1
- package/dist/bin/zm.js +11 -11
- package/dist/bundle/answer-policy-OQQWAUHH.js +33 -0
- package/dist/bundle/chunk-3YDF76DP.js +922 -0
- package/dist/bundle/chunk-AEWYRB6F.js +8 -0
- package/dist/bundle/chunk-AF2Z6VOG.js +137 -0
- package/dist/bundle/{chunk-MAJJ4PG3.js → chunk-DAYBU7WR.js} +79 -396
- package/dist/bundle/{chunk-XQQVMECZ.js → chunk-JD63PEI3.js} +3 -8
- package/dist/bundle/{chunk-UL2PXLKT.js → chunk-L5ZYKXAY.js} +392 -129
- package/dist/bundle/{chunk-2SWKQ7C4.js → chunk-W4TDCCT3.js} +8 -2
- package/dist/bundle/{chunk-AC6VJNMJ.js → chunk-W6YFWJDR.js} +2 -5
- package/dist/bundle/{chunk-434YFJAE.js → chunk-WSGD5Q6L.js} +3 -9
- package/dist/bundle/config-MP5YLHEY.js +29 -0
- package/dist/bundle/{folders-LXOL4N4S.js → folders-B2GKJOC2.js} +2 -7
- package/dist/bundle/{main-YAA7WQ23.js → main-YZPLPXB7.js} +21 -53
- package/dist/bundle/{output-file-2UB5JP3R.js → output-file-PKA7MJEP.js} +3 -11
- package/dist/bundle/{program-GVCGZP27.js → program-7JY6XJ6K.js} +714 -935
- package/dist/bundle/run-log-ML7ZCWXD.js +54 -0
- package/dist/bundle/store-connection-LQGKS3DN.js +21 -0
- package/dist/bundle/streaming-PRGWGNHY.js +12 -0
- package/dist/bundle/tokens-57RJVBK6.js +18 -0
- package/dist/bundle/zm.js +4 -161
- package/dist/bundle/{zoom-app-YWFB367P.js → zoom-app-EYJST6GF.js} +4 -10
- package/dist/chat-file.d.ts +1 -1
- package/dist/chat-file.d.ts.map +1 -1
- package/dist/commands.d.ts +1 -8
- package/dist/commands.d.ts.map +1 -1
- package/dist/commands.js +3 -33
- package/dist/commands.js.map +1 -1
- package/dist/config-issues.d.ts +1 -1
- package/dist/config-issues.d.ts.map +1 -1
- package/dist/config-issues.js +1 -1
- package/dist/config-issues.js.map +1 -1
- package/dist/config.d.ts +1 -2
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +1 -2
- package/dist/config.js.map +1 -1
- package/dist/contacts-commands.d.ts +1 -1
- package/dist/contacts-commands.d.ts.map +1 -1
- package/dist/contacts-commands.js +1 -1
- package/dist/contacts-commands.js.map +1 -1
- package/dist/contract-overrides.js +1 -1
- package/dist/contract-overrides.js.map +1 -1
- package/dist/errors.d.ts +1 -1
- package/dist/errors.d.ts.map +1 -1
- package/dist/execution.d.ts +1 -1
- package/dist/execution.d.ts.map +1 -1
- package/dist/execution.js +1 -1
- package/dist/execution.js.map +1 -1
- package/dist/files.d.ts +2 -2
- package/dist/files.d.ts.map +1 -1
- package/dist/files.js +1 -1
- package/dist/files.js.map +1 -1
- package/dist/first-screen.js +1 -1
- package/dist/first-screen.js.map +1 -1
- package/dist/identity.d.ts +1 -1
- package/dist/identity.d.ts.map +1 -1
- package/dist/identity.js +6 -0
- package/dist/identity.js.map +1 -1
- package/dist/index.d.ts +1 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -2
- package/dist/index.js.map +1 -1
- package/dist/ingestion-search-commands.d.ts +1 -1
- package/dist/ingestion-search-commands.d.ts.map +1 -1
- package/dist/ingestion-search-commands.js +1 -1
- package/dist/ingestion-search-commands.js.map +1 -1
- package/dist/local-transcription-commands.d.ts +1 -1
- package/dist/local-transcription-commands.d.ts.map +1 -1
- package/dist/local-transcription-commands.js +1 -2
- package/dist/local-transcription-commands.js.map +1 -1
- package/dist/local-transcription.d.ts +1 -2
- package/dist/local-transcription.d.ts.map +1 -1
- package/dist/local-transcription.js +3 -3
- package/dist/local-transcription.js.map +1 -1
- package/dist/meeting-commands.d.ts +1 -1
- package/dist/meeting-commands.d.ts.map +1 -1
- package/dist/meeting-commands.js +1 -2
- package/dist/meeting-commands.js.map +1 -1
- package/dist/meeting-communications-binding.d.ts +1 -2
- package/dist/meeting-communications-binding.d.ts.map +1 -1
- package/dist/meeting-communications-binding.js.map +1 -1
- package/dist/meeting-context-commands.d.ts +1 -1
- package/dist/meeting-context-commands.d.ts.map +1 -1
- package/dist/meeting-context-commands.js +1 -1
- package/dist/meeting-context-commands.js.map +1 -1
- package/dist/meeting-context.d.ts +2 -4
- package/dist/meeting-context.d.ts.map +1 -1
- package/dist/meeting-context.js +1 -1
- package/dist/meeting-context.js.map +1 -1
- package/dist/meeting-integration-commands.d.ts +1 -1
- package/dist/meeting-integration-commands.d.ts.map +1 -1
- package/dist/meeting-integration-commands.js +1 -2
- package/dist/meeting-integration-commands.js.map +1 -1
- package/dist/meeting-integration.d.ts +1 -1
- package/dist/meeting-integration.d.ts.map +1 -1
- package/dist/meeting-integration.js +1 -1
- package/dist/meeting-integration.js.map +1 -1
- package/dist/meeting-inventory.d.ts +1 -1
- package/dist/meeting-inventory.d.ts.map +1 -1
- package/dist/meeting-inventory.js +1 -1
- package/dist/meeting-inventory.js.map +1 -1
- package/dist/meeting-preparation.d.ts +1 -2
- package/dist/meeting-preparation.d.ts.map +1 -1
- package/dist/meeting-preparation.js +1 -1
- package/dist/meeting-preparation.js.map +1 -1
- package/dist/meeting-project-candidates.d.ts +1 -1
- package/dist/meeting-project-candidates.d.ts.map +1 -1
- package/dist/meeting-project-evidence-commands.d.ts +1 -1
- package/dist/meeting-project-evidence-commands.d.ts.map +1 -1
- package/dist/meeting-project-evidence-commands.js +1 -2
- package/dist/meeting-project-evidence-commands.js.map +1 -1
- package/dist/meeting-read-command-bindings.js +1 -1
- package/dist/meeting-read-command-bindings.js.map +1 -1
- package/dist/meeting-review-commands.d.ts +1 -3
- package/dist/meeting-review-commands.d.ts.map +1 -1
- package/dist/meeting-review-commands.js +1 -2
- package/dist/meeting-review-commands.js.map +1 -1
- package/dist/meeting-search-commands.d.ts +2 -3
- package/dist/meeting-search-commands.d.ts.map +1 -1
- package/dist/meeting-search-commands.js +2 -4
- package/dist/meeting-search-commands.js.map +1 -1
- package/dist/meeting-searches-commands.d.ts +1 -2
- package/dist/meeting-searches-commands.d.ts.map +1 -1
- package/dist/meeting-searches-commands.js +1 -2
- package/dist/meeting-searches-commands.js.map +1 -1
- package/dist/meeting-selection-options.d.ts +1 -1
- package/dist/meeting-selection-options.d.ts.map +1 -1
- package/dist/meeting-selection-options.js +1 -2
- package/dist/meeting-selection-options.js.map +1 -1
- package/dist/meeting-semantic-commands.d.ts +1 -2
- package/dist/meeting-semantic-commands.d.ts.map +1 -1
- package/dist/meeting-semantic-commands.js +1 -1
- package/dist/meeting-semantic-commands.js.map +1 -1
- package/dist/meeting-semantic.d.ts +2 -2
- package/dist/meeting-semantic.d.ts.map +1 -1
- package/dist/meeting-semantic.js +1 -1
- package/dist/meeting-semantic.js.map +1 -1
- package/dist/meeting-source.d.ts +1 -1
- package/dist/meeting-source.d.ts.map +1 -1
- package/dist/meeting-stats-commands.d.ts +1 -3
- package/dist/meeting-stats-commands.d.ts.map +1 -1
- package/dist/meeting-stats-commands.js +1 -2
- package/dist/meeting-stats-commands.js.map +1 -1
- package/dist/models-commands.d.ts +1 -1
- package/dist/models-commands.d.ts.map +1 -1
- package/dist/models-commands.js +1 -1
- package/dist/models-commands.js.map +1 -1
- package/dist/occurrence-schedule.d.ts +1 -1
- package/dist/occurrence-schedule.d.ts.map +1 -1
- package/dist/permissions.d.ts +1 -1
- package/dist/permissions.d.ts.map +1 -1
- package/dist/permissions.js +1 -2
- package/dist/permissions.js.map +1 -1
- package/dist/profile.js +1 -1
- package/dist/profile.js.map +1 -1
- package/dist/program-bindings.d.ts.map +1 -1
- package/dist/program-bindings.js +3 -13
- package/dist/program-bindings.js.map +1 -1
- package/dist/program.d.ts +4 -7
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +1 -1
- package/dist/program.js.map +1 -1
- package/dist/progress-commands.d.ts +1 -1
- package/dist/progress-commands.d.ts.map +1 -1
- package/dist/progress-commands.js +1 -2
- package/dist/progress-commands.js.map +1 -1
- package/dist/read-only.js +1 -1
- package/dist/read-only.js.map +1 -1
- package/dist/recording-archive.d.ts.map +1 -1
- package/dist/recording-archive.js +1 -2
- package/dist/recording-archive.js.map +1 -1
- package/dist/recording-manifest.js +1 -1
- package/dist/recording-manifest.js.map +1 -1
- package/dist/recording-partial-store.d.ts +2 -3
- package/dist/recording-partial-store.d.ts.map +1 -1
- package/dist/recording-partial-store.js +1 -1
- package/dist/recording-partial-store.js.map +1 -1
- package/dist/recording-promotion-store.d.ts +1 -2
- package/dist/recording-promotion-store.d.ts.map +1 -1
- package/dist/recording-promotion-store.js +1 -2
- package/dist/recording-promotion-store.js.map +1 -1
- package/dist/recording-schedule-commands.d.ts +1 -1
- package/dist/recording-schedule-commands.d.ts.map +1 -1
- package/dist/recording-schedule-commands.js +1 -1
- package/dist/recording-schedule-commands.js.map +1 -1
- package/dist/recording-schedule-store.js +1 -1
- package/dist/recording-schedule-store.js.map +1 -1
- package/dist/recording-schedule-systemd.js +1 -1
- package/dist/recording-schedule-systemd.js.map +1 -1
- package/dist/recording-schedule.d.ts +1 -1
- package/dist/recording-schedule.d.ts.map +1 -1
- package/dist/recording-schedule.js +1 -1
- package/dist/recording-schedule.js.map +1 -1
- package/dist/recording-sync-store.d.ts +1 -1
- package/dist/recording-sync-store.d.ts.map +1 -1
- package/dist/recording-sync-store.js +1 -2
- package/dist/recording-sync-store.js.map +1 -1
- package/dist/recording-sync.d.ts +1 -1
- package/dist/recording-sync.d.ts.map +1 -1
- package/dist/recording-sync.js +1 -1
- package/dist/recording-sync.js.map +1 -1
- package/dist/recording-writer-lease.d.ts +1 -1
- package/dist/recording-writer-lease.d.ts.map +1 -1
- package/dist/recording-writer-lease.js +1 -1
- package/dist/recording-writer-lease.js.map +1 -1
- package/dist/recordings.d.ts +1 -1
- package/dist/recordings.d.ts.map +1 -1
- package/dist/recordings.js.map +1 -1
- package/dist/remote-meetings.d.ts +19 -19
- package/dist/remote-meetings.d.ts.map +1 -1
- package/dist/remote-meetings.js +1 -1
- package/dist/remote-meetings.js.map +1 -1
- package/dist/request-events.d.ts +1 -1
- package/dist/request-events.d.ts.map +1 -1
- package/dist/request-events.js +1 -1
- package/dist/request-events.js.map +1 -1
- package/dist/run-log.d.ts +1 -1
- package/dist/run-log.d.ts.map +1 -1
- package/dist/run-log.js +1 -1
- package/dist/run-log.js.map +1 -1
- package/dist/run.d.ts +1 -1
- package/dist/run.d.ts.map +1 -1
- package/dist/run.js +6 -2
- package/dist/run.js.map +1 -1
- package/dist/series-inventory.d.ts +2 -2
- package/dist/series-inventory.js +1 -1
- package/dist/series-inventory.js.map +1 -1
- package/dist/setup-commands.d.ts +6 -15
- package/dist/setup-commands.d.ts.map +1 -1
- package/dist/setup-commands.js +7 -142
- package/dist/setup-commands.js.map +1 -1
- package/dist/store-commands.d.ts +1 -1
- package/dist/store-commands.d.ts.map +1 -1
- package/dist/store-commands.js +1 -2
- package/dist/store-commands.js.map +1 -1
- package/dist/store-connection.d.ts +1 -3
- package/dist/store-connection.d.ts.map +1 -1
- package/dist/store-connection.js +14 -14
- package/dist/store-connection.js.map +1 -1
- package/dist/sync-progress.d.ts +4 -4
- package/dist/sync-progress.d.ts.map +1 -1
- package/dist/sync-progress.js +1 -1
- package/dist/sync-progress.js.map +1 -1
- package/dist/tokens.d.ts +20 -44
- package/dist/tokens.d.ts.map +1 -1
- package/dist/tokens.js +95 -308
- package/dist/tokens.js.map +1 -1
- package/dist/unified-search.d.ts +1 -1
- package/dist/unified-search.d.ts.map +1 -1
- package/dist/upcoming-meetings.d.ts +2 -2
- package/dist/upcoming-meetings.js +1 -1
- package/dist/upcoming-meetings.js.map +1 -1
- package/dist/upgrade.d.ts.map +1 -1
- package/dist/upgrade.js +1 -2
- package/dist/upgrade.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/watch-commands.d.ts +1 -2
- package/dist/watch-commands.d.ts.map +1 -1
- package/dist/watch-commands.js +1 -2
- package/dist/watch-commands.js.map +1 -1
- package/dist/watch-service.d.ts +1 -1
- package/dist/watch-service.d.ts.map +1 -1
- package/dist/watch-service.js +1 -1
- package/dist/watch-service.js.map +1 -1
- package/dist/zoom-app.d.ts +2 -2
- package/dist/zoom-app.d.ts.map +1 -1
- package/dist/zoom-app.js +2 -2
- package/dist/zoom-app.js.map +1 -1
- package/dist/zoom-search-commands.d.ts +1 -1
- package/dist/zoom-search-commands.d.ts.map +1 -1
- package/dist/zoom-search-commands.js +1 -1
- package/dist/zoom-search-commands.js.map +1 -1
- package/dist/zoom-session.d.ts +6 -0
- package/dist/zoom-session.d.ts.map +1 -0
- package/dist/zoom-session.js +72 -0
- package/dist/zoom-session.js.map +1 -0
- package/package.json +3 -3
- package/scenarios/person-in-meetings.md +1 -1
- package/skills/zoom-cli/SKILL.md +1 -1
- package/skills/zoom-cli/references/people-and-projects.md +5 -5
- package/skills/zoom-cli/references/prepare.md +2 -2
- package/skills/zoom-cli/references/setup.md +2 -2
- package/dist/bundle/agent-F4TRJWWS.js +0 -46
- package/dist/bundle/all-profiles-RULEKTDQ.js +0 -321
- package/dist/bundle/answer-policy-6XC57AEZ.js +0 -131
- package/dist/bundle/anthropic-4NAQBZFL.js +0 -91
- package/dist/bundle/app-server-VLR42U5L.js +0 -266
- package/dist/bundle/bun-OPDGMZZQ.js +0 -169
- package/dist/bundle/bun-sqlite-HC6X4AOX.js +0 -76
- package/dist/bundle/chunk-274SLQNW.js +0 -54
- package/dist/bundle/chunk-2CI2OEZQ.js +0 -101
- package/dist/bundle/chunk-2DBF2IIC.js +0 -330
- package/dist/bundle/chunk-2GP573Q4.js +0 -67190
- package/dist/bundle/chunk-2JHVQMVC.js +0 -16
- package/dist/bundle/chunk-2XBDILVW.js +0 -53
- package/dist/bundle/chunk-3HC5F3P7.js +0 -24
- package/dist/bundle/chunk-3YM4B2GT.js +0 -63
- package/dist/bundle/chunk-4HLQ2JGK.js +0 -276
- package/dist/bundle/chunk-4N7PP76S.js +0 -6848
- package/dist/bundle/chunk-52Y4ETKU.js +0 -230
- package/dist/bundle/chunk-5HAUK3I4.js +0 -27160
- package/dist/bundle/chunk-5KYQ53EF.js +0 -357
- package/dist/bundle/chunk-5TU7Y5UW.js +0 -218
- package/dist/bundle/chunk-66ALX4ZI.js +0 -1068
- package/dist/bundle/chunk-676C2LE6.js +0 -229
- package/dist/bundle/chunk-6CWL5BKG.js +0 -3012
- package/dist/bundle/chunk-6QYZP4E2.js +0 -73
- package/dist/bundle/chunk-6VK332XS.js +0 -170
- package/dist/bundle/chunk-73MOMNLL.js +0 -94
- package/dist/bundle/chunk-7QPIUMUG.js +0 -198
- package/dist/bundle/chunk-7UVDPRFK.js +0 -259
- package/dist/bundle/chunk-A6EZK5RG.js +0 -142
- package/dist/bundle/chunk-ACI4YIEH.js +0 -331
- package/dist/bundle/chunk-AIKFOBDO.js +0 -1024
- package/dist/bundle/chunk-ASBDFXLS.js +0 -295
- package/dist/bundle/chunk-B32KZRQM.js +0 -2338
- package/dist/bundle/chunk-BBGJQMRI.js +0 -34
- package/dist/bundle/chunk-BDKVOU3I.js +0 -52
- package/dist/bundle/chunk-BP4FYANF.js +0 -335
- package/dist/bundle/chunk-D72URWJE.js +0 -532
- package/dist/bundle/chunk-DCYFT3FR.js +0 -161
- package/dist/bundle/chunk-DFDN6AUB.js +0 -21
- package/dist/bundle/chunk-DNCLQPOM.js +0 -7
- package/dist/bundle/chunk-DSZYABYL.js +0 -808
- package/dist/bundle/chunk-E745WZKY.js +0 -1199
- package/dist/bundle/chunk-EGTCQKHV.js +0 -340
- package/dist/bundle/chunk-EQG3PIH2.js +0 -108
- package/dist/bundle/chunk-ESN3W2MZ.js +0 -2624
- package/dist/bundle/chunk-FXBHOCJK.js +0 -24600
- package/dist/bundle/chunk-G46WJ7YO.js +0 -95
- package/dist/bundle/chunk-G6PETRMV.js +0 -64
- package/dist/bundle/chunk-GBHMT2IU.js +0 -755
- package/dist/bundle/chunk-GGMAIIVE.js +0 -38
- package/dist/bundle/chunk-GTKPMYK7.js +0 -72
- package/dist/bundle/chunk-GWGHH56B.js +0 -374
- package/dist/bundle/chunk-HC6VN5CO.js +0 -692
- package/dist/bundle/chunk-HP7A2ZOP.js +0 -185
- package/dist/bundle/chunk-HTQTIKWP.js +0 -928
- package/dist/bundle/chunk-HZENBDW2.js +0 -209
- package/dist/bundle/chunk-IANKXHSE.js +0 -46
- package/dist/bundle/chunk-ICPJT672.js +0 -228
- package/dist/bundle/chunk-JQ54DYAQ.js +0 -80
- package/dist/bundle/chunk-K5JGJIV2.js +0 -640
- package/dist/bundle/chunk-KJ6USQDZ.js +0 -616
- package/dist/bundle/chunk-KKFY23AK.js +0 -5150
- package/dist/bundle/chunk-KQPUVXKX.js +0 -84
- package/dist/bundle/chunk-KVJ3I7UL.js +0 -1007
- package/dist/bundle/chunk-KWU46LNK.js +0 -288
- package/dist/bundle/chunk-KXJ3JEDH.js +0 -2
- package/dist/bundle/chunk-L75SMSJR.js +0 -133
- package/dist/bundle/chunk-LAYYO4WD.js +0 -31
- package/dist/bundle/chunk-LEKKTJKK.js +0 -2336
- package/dist/bundle/chunk-M7H4MCAX.js +0 -388
- package/dist/bundle/chunk-MQLPZBMQ.js +0 -58
- package/dist/bundle/chunk-N3JLO63O.js +0 -13
- package/dist/bundle/chunk-N46F72AF.js +0 -410
- package/dist/bundle/chunk-NB7EOAUZ.js +0 -123
- package/dist/bundle/chunk-NEMX3UNN.js +0 -76
- package/dist/bundle/chunk-OBXQLFT5.js +0 -82
- package/dist/bundle/chunk-OGNO35A2.js +0 -262
- package/dist/bundle/chunk-OIPYBF43.js +0 -100
- package/dist/bundle/chunk-OO4TRVPB.js +0 -185
- package/dist/bundle/chunk-OQFQ77AY.js +0 -9352
- package/dist/bundle/chunk-PL5P7UKW.js +0 -25216
- package/dist/bundle/chunk-PMUPN6JW.js +0 -773
- package/dist/bundle/chunk-PSKTMMCO.js +0 -561
- package/dist/bundle/chunk-PWVJUIDQ.js +0 -106
- package/dist/bundle/chunk-Q7ICVP25.js +0 -18
- package/dist/bundle/chunk-QG6PILDO.js +0 -195
- package/dist/bundle/chunk-QPHBK63S.js +0 -25
- package/dist/bundle/chunk-QVSL5WJ7.js +0 -46524
- package/dist/bundle/chunk-QVYAV7F2.js +0 -58
- package/dist/bundle/chunk-R2B6PUVI.js +0 -206
- package/dist/bundle/chunk-RQOZBTNI.js +0 -86
- package/dist/bundle/chunk-T7IAWEBU.js +0 -362
- package/dist/bundle/chunk-TKNM22OH.js +0 -71
- package/dist/bundle/chunk-TKVBFJ5C.js +0 -37
- package/dist/bundle/chunk-TXDR6YSF.js +0 -23
- package/dist/bundle/chunk-TY7NDMFY.js +0 -46
- package/dist/bundle/chunk-UAWSINMC.js +0 -875
- package/dist/bundle/chunk-UKAAAOPC.js +0 -1251
- package/dist/bundle/chunk-UQCTXZEP.js +0 -214
- package/dist/bundle/chunk-UR5DBODY.js +0 -1345
- package/dist/bundle/chunk-V5EJSF2B.js +0 -12235
- package/dist/bundle/chunk-VB72LTSZ.js +0 -210
- package/dist/bundle/chunk-VB7FZOYX.js +0 -633
- package/dist/bundle/chunk-VS6WURLX.js +0 -217
- package/dist/bundle/chunk-VZ5PPYDG.js +0 -77
- package/dist/bundle/chunk-W5QHB53X.js +0 -3752
- package/dist/bundle/chunk-WMANRJR5.js +0 -555
- package/dist/bundle/chunk-WOPVBRPV.js +0 -29
- package/dist/bundle/chunk-XQ2WL3HB.js +0 -140
- package/dist/bundle/chunk-Y5E2WNWB.js +0 -35
- package/dist/bundle/chunk-Y6PVS55U.js +0 -800
- package/dist/bundle/chunk-YJXJJ2XP.js +0 -2333
- package/dist/bundle/chunk-YY7XKHDY.js +0 -79
- package/dist/bundle/chunk-ZED2CJW5.js +0 -353
- package/dist/bundle/chunk-ZOYOXWJB.js +0 -746
- package/dist/bundle/chunk-ZVVMGPBJ.js +0 -50
- package/dist/bundle/cli-U4O5XB7J.js +0 -1255
- package/dist/bundle/command-contract-FBTK6GQX.js +0 -45
- package/dist/bundle/command-server-entry-KKH6ZWJV.js +0 -175
- package/dist/bundle/config-FRJSIZNN.js +0 -118
- package/dist/bundle/decode-TPCNXEK4.js +0 -31
- package/dist/bundle/dispatch-FKMIPCPQ.js +0 -412
- package/dist/bundle/dist-7CLBCYZN.js +0 -321
- package/dist/bundle/dist-PAKDDIBT.js +0 -191
- package/dist/bundle/dist-XUFQCJXW.js +0 -7577
- package/dist/bundle/echarts-O3TNDAXJ.js +0 -42501
- package/dist/bundle/embed-WCJSFVSK.js +0 -38
- package/dist/bundle/embedder-TBBUPXBX.js +0 -111
- package/dist/bundle/failure-XTWBYI2A.js +0 -25
- package/dist/bundle/first-run-ELEMFW42.js +0 -29
- package/dist/bundle/first-screen-DIOBWMKP.js +0 -46
- package/dist/bundle/instructions-AMH5RWVJ.js +0 -11
- package/dist/bundle/mcp-5HFPWC3W.js +0 -167
- package/dist/bundle/meeting-combined-UXCF4SJ3.js +0 -26
- package/dist/bundle/meeting-model-3BZJ3EQP.js +0 -26
- package/dist/bundle/meeting-semantic-3HU7I2SJ.js +0 -23
- package/dist/bundle/meetings-XWMB6FOH.js +0 -332
- package/dist/bundle/node-EGMCBAO7.js +0 -176
- package/dist/bundle/node-KM3CUABH.js +0 -2340
- package/dist/bundle/node-TLZSIHIJ.js +0 -21
- package/dist/bundle/node-sqlite-IJBWENFX.js +0 -74
- package/dist/bundle/oauth-SZDDAP7A.js +0 -20
- package/dist/bundle/open-NS3TMKZX.js +0 -23
- package/dist/bundle/openai-4DN6WI3B.js +0 -28
- package/dist/bundle/process-SGHEN6MQ.js +0 -91
- package/dist/bundle/prompt-HJFMPFVC.js +0 -17
- package/dist/bundle/public-C2ZB2AGQ.js +0 -198
- package/dist/bundle/recognize-2SEI5PPM.js +0 -26
- package/dist/bundle/remote-2DMS74XE.js +0 -32
- package/dist/bundle/rerank-H6GCYVIA.js +0 -52
- package/dist/bundle/run-log-QU26SUZP.js +0 -145
- package/dist/bundle/serve-ODVRPFJO.js +0 -199
- package/dist/bundle/server-NBPF6IDZ.js +0 -95
- package/dist/bundle/server-PCLIO24L.js +0 -228
- package/dist/bundle/services-4QAPXBLO.js +0 -607
- package/dist/bundle/speech-MA6ZT3WE.js +0 -89
- package/dist/bundle/sqlite-runtime-PVMAUXRN.js +0 -20
- package/dist/bundle/state-QFMTYUME.js +0 -36
- package/dist/bundle/store-25OTAQC3.js +0 -187
- package/dist/bundle/store-F724QIKJ.js +0 -305
- package/dist/bundle/store-connection-OGPXANGB.js +0 -111
- package/dist/bundle/store-maintenance-command-2CM7LLNQ.js +0 -83
- package/dist/bundle/streaming-S22C4DG5.js +0 -18
- package/dist/bundle/surface-7PXHWCF6.js +0 -81
- package/dist/bundle/tokens-NLUHA2DW.js +0 -25
- package/dist/login.d.ts +0 -16
- package/dist/login.d.ts.map +0 -1
- package/dist/login.js +0 -98
- package/dist/login.js.map +0 -1
|
@@ -1,773 +0,0 @@
|
|
|
1
|
-
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
-
const require = __bundleRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
MESSAGE_PARSING,
|
|
5
|
-
MOST_WORDS_APART,
|
|
6
|
-
QUERY_LIMITS,
|
|
7
|
-
SEARCH_QUERY,
|
|
8
|
-
searchError
|
|
9
|
-
} from "./chunk-YY7XKHDY.js";
|
|
10
|
-
import {
|
|
11
|
-
tagOf
|
|
12
|
-
} from "./chunk-LAYYO4WD.js";
|
|
13
|
-
import {
|
|
14
|
-
parseLucene,
|
|
15
|
-
queryAstSchema,
|
|
16
|
-
validateQuery,
|
|
17
|
-
walkQuery
|
|
18
|
-
} from "./chunk-UAWSINMC.js";
|
|
19
|
-
import {
|
|
20
|
-
safeParse
|
|
21
|
-
} from "./chunk-ESN3W2MZ.js";
|
|
22
|
-
import {
|
|
23
|
-
CliError,
|
|
24
|
-
isCliError
|
|
25
|
-
} from "./chunk-IANKXHSE.js";
|
|
26
|
-
import {
|
|
27
|
-
__name
|
|
28
|
-
} from "./chunk-ZVVMGPBJ.js";
|
|
29
|
-
|
|
30
|
-
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/search/lucene/registry.js
|
|
31
|
-
var FIELD_VERSION = 2;
|
|
32
|
-
var UNITS = {
|
|
33
|
-
"": 1,
|
|
34
|
-
b: 1,
|
|
35
|
-
k: 1024,
|
|
36
|
-
kb: 1024,
|
|
37
|
-
m: 1024 ** 2,
|
|
38
|
-
mb: 1024 ** 2,
|
|
39
|
-
g: 1024 ** 3,
|
|
40
|
-
gb: 1024 ** 3
|
|
41
|
-
};
|
|
42
|
-
var parseBytes = /* @__PURE__ */ __name((value, span) => {
|
|
43
|
-
const [, amount, unit] = /^(\d+(?:\.\d+)?)\s*([a-z]*)$/iu.exec(value.trim()) ?? [];
|
|
44
|
-
const scale = UNITS[unit?.toLowerCase() ?? ""];
|
|
45
|
-
if (amount === void 0 || scale === void 0)
|
|
46
|
-
searchError("query.invalid-size", span, "use bytes or KB/MB/GB, e.g. 10MB");
|
|
47
|
-
return Math.round(Number(amount) * scale);
|
|
48
|
-
}, "parseBytes");
|
|
49
|
-
var filled = /* @__PURE__ */ __name((node) => {
|
|
50
|
-
if (node.value === "")
|
|
51
|
-
searchError("query.missing-value", node.span);
|
|
52
|
-
}, "filled");
|
|
53
|
-
var validateSize = /* @__PURE__ */ __name((node) => {
|
|
54
|
-
for (const bound of node.operator === "range" ? [node.value, node.upper] : [node.value])
|
|
55
|
-
if (bound !== void 0 && bound !== "*")
|
|
56
|
-
parseBytes(bound, node.span);
|
|
57
|
-
}, "validateSize");
|
|
58
|
-
var validateTag = /* @__PURE__ */ __name((node) => {
|
|
59
|
-
if (node.operator === "wildcard" ? !/^[a-z0-9*?-]{1,32}$/iu.test(node.value) : tagOf(node.value) === void 0)
|
|
60
|
-
searchError("query.invalid-tag", node.span, "a tag is 1-32 letters a-z, digits and hyphens");
|
|
61
|
-
}, "validateTag");
|
|
62
|
-
var validateMentioned = /* @__PURE__ */ __name((node) => {
|
|
63
|
-
if (!/^(?:person|organization|document):[1-9]\d*$/u.test(node.value))
|
|
64
|
-
searchError("query.invalid-reference", node.span, "use person:<uid>, organization:<id> or document:<id>, quoted");
|
|
65
|
-
}, "validateMentioned");
|
|
66
|
-
var validateTopic = /* @__PURE__ */ __name((node) => {
|
|
67
|
-
if (!/^\d+$/u.test(node.value))
|
|
68
|
-
searchError("query.invalid-topic", node.span, "use a thread id in one chat");
|
|
69
|
-
}, "validateTopic");
|
|
70
|
-
var terms = ["term", "phrase"];
|
|
71
|
-
var names = [...terms, "wildcard"];
|
|
72
|
-
var NAMES = "account-scoped: an id or contact: reference as is; with * or ? a pattern over alias, name, @username (up to 50); else a name";
|
|
73
|
-
var QUERY_FIELDS = [
|
|
74
|
-
{
|
|
75
|
-
name: "text",
|
|
76
|
-
example: "invoice",
|
|
77
|
-
index: "message_stems \u222A message_words; wildcard and regex: message_words",
|
|
78
|
-
aliases: [],
|
|
79
|
-
type: "txt",
|
|
80
|
-
operators: ["term", "phrase", "wildcard", "regex"],
|
|
81
|
-
normalization: "Snowball 3.1.1 by script (Cyrillic, Latin; the store's search_stemmers), then v1",
|
|
82
|
-
support: "A1"
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
name: "exact",
|
|
86
|
-
example: "exact:invoice",
|
|
87
|
-
index: "message_words",
|
|
88
|
-
aliases: [],
|
|
89
|
-
type: "txt",
|
|
90
|
-
operators: ["term", "phrase", "wildcard", "regex"],
|
|
91
|
-
normalization: "NFKD/marks/NFC/lowercase v1",
|
|
92
|
-
support: "A1"
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
name: "body",
|
|
96
|
-
example: "body:/.*invoice.*/",
|
|
97
|
-
index: "messages.text / bounded postfilter",
|
|
98
|
-
aliases: [],
|
|
99
|
-
type: "txt",
|
|
100
|
-
operators: ["term", "phrase", "wildcard", "regex"],
|
|
101
|
-
normalization: "raw, case-sensitive",
|
|
102
|
-
support: "A1"
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
name: "from",
|
|
106
|
-
example: "from:Alice*",
|
|
107
|
-
index: "identities / sender index",
|
|
108
|
-
aliases: ["sender"],
|
|
109
|
-
type: "kw",
|
|
110
|
-
operators: names,
|
|
111
|
-
normalization: NAMES,
|
|
112
|
-
support: "A1"
|
|
113
|
-
},
|
|
114
|
-
...["to", "cc", "bcc"].map((name) => ({
|
|
115
|
-
name,
|
|
116
|
-
example: `${name}:"Alice Synthetic"`,
|
|
117
|
-
index: "email_recipients",
|
|
118
|
-
aliases: [],
|
|
119
|
-
type: "kw",
|
|
120
|
-
operators: names,
|
|
121
|
-
normalization: `${NAMES}; mail only`,
|
|
122
|
-
support: "A1"
|
|
123
|
-
})),
|
|
124
|
-
{
|
|
125
|
-
name: "subject",
|
|
126
|
-
example: 'subject:"quarterly planning"',
|
|
127
|
-
index: "email_words, then the subject",
|
|
128
|
-
aliases: [],
|
|
129
|
-
type: "txt",
|
|
130
|
-
operators: [...terms, "wildcard"],
|
|
131
|
-
normalization: "every word, folded as text is; mail only",
|
|
132
|
-
support: "A1",
|
|
133
|
-
validate: filled
|
|
134
|
-
},
|
|
135
|
-
{
|
|
136
|
-
name: "mailbox",
|
|
137
|
-
example: 'mailbox:INBOX OR mailbox:"[Gmail]/Sent Mail"',
|
|
138
|
-
index: "email_mailboxes",
|
|
139
|
-
aliases: [],
|
|
140
|
-
type: "kw",
|
|
141
|
-
operators: [...terms, "wildcard"],
|
|
142
|
-
normalization: "a folder or label by its id (ASCII case folded) or name (case folded in any script); mail only",
|
|
143
|
-
support: "A1"
|
|
144
|
-
},
|
|
145
|
-
{
|
|
146
|
-
name: "label",
|
|
147
|
-
example: "label:Projects",
|
|
148
|
-
index: "email_mailboxes",
|
|
149
|
-
aliases: [],
|
|
150
|
-
type: "kw",
|
|
151
|
-
operators: [...terms, "wildcard"],
|
|
152
|
-
normalization: "the same as mailbox:; mail only",
|
|
153
|
-
support: "A1"
|
|
154
|
-
},
|
|
155
|
-
{
|
|
156
|
-
name: "list",
|
|
157
|
-
example: "list:github.com",
|
|
158
|
-
index: "emails.headers list-id",
|
|
159
|
-
aliases: [],
|
|
160
|
-
type: "kw",
|
|
161
|
-
operators: terms,
|
|
162
|
-
normalization: "the List-Id of a mailing list, lower case; a domain matches every list under it; mail only",
|
|
163
|
-
support: "A1",
|
|
164
|
-
validate: filled
|
|
165
|
-
},
|
|
166
|
-
{
|
|
167
|
-
name: "is",
|
|
168
|
-
example: "is:unread",
|
|
169
|
-
index: "emails.read / emails.flagged / messages.starred",
|
|
170
|
-
aliases: [],
|
|
171
|
-
type: "enum",
|
|
172
|
-
operators: terms,
|
|
173
|
-
normalization: "lowercase; read and unread are mail only; starred is a flagged email or a message the owner starred; an unknown state matches neither read nor unread",
|
|
174
|
-
support: "A1",
|
|
175
|
-
values: ["unread", "read", "starred"]
|
|
176
|
-
},
|
|
177
|
-
{
|
|
178
|
-
name: "chat",
|
|
179
|
-
example: "chat:*fixture*",
|
|
180
|
-
index: "chats / message time index",
|
|
181
|
-
aliases: [],
|
|
182
|
-
type: "kw",
|
|
183
|
-
operators: names,
|
|
184
|
-
normalization: "account-scoped: an id or chat: reference as is; with * or ? a pattern over title, @username (up to 50); else a title",
|
|
185
|
-
support: "A1"
|
|
186
|
-
},
|
|
187
|
-
{
|
|
188
|
-
name: "date",
|
|
189
|
-
example: "date:[2026-01-01 TO 2026-02-01}",
|
|
190
|
-
index: "messages.sent_at",
|
|
191
|
-
aliases: [],
|
|
192
|
-
type: "time",
|
|
193
|
-
operators: [...terms, "range"],
|
|
194
|
-
normalization: "ISO/calendar timezone; today, yesterday, 30m/2h/7d ago",
|
|
195
|
-
support: "A1"
|
|
196
|
-
},
|
|
197
|
-
{
|
|
198
|
-
name: "source",
|
|
199
|
-
example: "source:internal",
|
|
200
|
-
index: "notes (internal) / documents (file)",
|
|
201
|
-
aliases: [],
|
|
202
|
-
type: "enum",
|
|
203
|
-
operators: terms,
|
|
204
|
-
normalization: "lowercase; notes only: internal is written in memo, file is from a notes folder",
|
|
205
|
-
support: "A1",
|
|
206
|
-
values: ["internal", "file"]
|
|
207
|
-
},
|
|
208
|
-
{
|
|
209
|
-
name: "kind",
|
|
210
|
-
example: "kind:private",
|
|
211
|
-
index: "chats.kind / peerKind metadata",
|
|
212
|
-
aliases: [],
|
|
213
|
-
type: "enum",
|
|
214
|
-
operators: terms,
|
|
215
|
-
normalization: "lowercase",
|
|
216
|
-
support: "A1",
|
|
217
|
-
values: ["private", "saved", "bot", "service", "group", "channel", "unknown"]
|
|
218
|
-
},
|
|
219
|
-
{
|
|
220
|
-
name: "muted",
|
|
221
|
-
example: "muted:false",
|
|
222
|
-
index: "chats.muted / chats.muted_until",
|
|
223
|
-
aliases: [],
|
|
224
|
-
type: "enum",
|
|
225
|
-
operators: terms,
|
|
226
|
-
normalization: "lowercase; true is a chat the owner muted, until the mute runs out; false is every other chat",
|
|
227
|
-
support: "A1",
|
|
228
|
-
values: ["true", "false"]
|
|
229
|
-
},
|
|
230
|
-
{
|
|
231
|
-
name: "participants_count",
|
|
232
|
-
example: "participants_count<10",
|
|
233
|
-
index: "chats.participants_count",
|
|
234
|
-
aliases: [],
|
|
235
|
-
type: "num",
|
|
236
|
-
operators: [...terms, "range"],
|
|
237
|
-
normalization: "a whole number; a chat whose size the messenger never told matches no value",
|
|
238
|
-
support: "A1"
|
|
239
|
-
},
|
|
240
|
-
{
|
|
241
|
-
name: "has",
|
|
242
|
-
example: "has:file",
|
|
243
|
-
index: "attachments / messages_fts links / message_transcripts",
|
|
244
|
-
aliases: [],
|
|
245
|
-
type: "enum",
|
|
246
|
-
operators: terms,
|
|
247
|
-
normalization: "lowercase",
|
|
248
|
-
support: "A1",
|
|
249
|
-
values: [
|
|
250
|
-
"text",
|
|
251
|
-
"attachment",
|
|
252
|
-
"link",
|
|
253
|
-
"file",
|
|
254
|
-
"photo",
|
|
255
|
-
"image",
|
|
256
|
-
"video",
|
|
257
|
-
"audio",
|
|
258
|
-
"voice",
|
|
259
|
-
"sticker",
|
|
260
|
-
"contact",
|
|
261
|
-
"location",
|
|
262
|
-
"poll",
|
|
263
|
-
"transcript"
|
|
264
|
-
]
|
|
265
|
-
},
|
|
266
|
-
{
|
|
267
|
-
name: "topic",
|
|
268
|
-
example: "chat:7 AND topic:42",
|
|
269
|
-
index: "messages.thread_native_id",
|
|
270
|
-
aliases: [],
|
|
271
|
-
type: "kw",
|
|
272
|
-
operators: terms,
|
|
273
|
-
normalization: "string id, one chat required",
|
|
274
|
-
support: "A1",
|
|
275
|
-
validate: validateTopic
|
|
276
|
-
},
|
|
277
|
-
{
|
|
278
|
-
name: "in",
|
|
279
|
-
example: "in:bots",
|
|
280
|
-
index: "accounts.provider",
|
|
281
|
-
aliases: [],
|
|
282
|
-
type: "kw",
|
|
283
|
-
operators: terms,
|
|
284
|
-
normalization: "lowercase provider/account class",
|
|
285
|
-
support: "A1"
|
|
286
|
-
},
|
|
287
|
-
{
|
|
288
|
-
name: "preset",
|
|
289
|
-
example: "preset:secret",
|
|
290
|
-
index: "bounded local candidate detector",
|
|
291
|
-
aliases: [],
|
|
292
|
-
type: "enum",
|
|
293
|
-
operators: terms,
|
|
294
|
-
normalization: "versioned candidate detector",
|
|
295
|
-
support: "A1",
|
|
296
|
-
values: [
|
|
297
|
-
"password",
|
|
298
|
-
"code",
|
|
299
|
-
"api-key",
|
|
300
|
-
"secret",
|
|
301
|
-
"card",
|
|
302
|
-
"bank",
|
|
303
|
-
"passport",
|
|
304
|
-
"phone",
|
|
305
|
-
"email",
|
|
306
|
-
"telegram-link",
|
|
307
|
-
"url",
|
|
308
|
-
"contact",
|
|
309
|
-
"location"
|
|
310
|
-
]
|
|
311
|
-
},
|
|
312
|
-
{
|
|
313
|
-
name: "filename",
|
|
314
|
-
example: "filename:*.pdf",
|
|
315
|
-
index: "attachments.name / bounded postfilter",
|
|
316
|
-
aliases: [],
|
|
317
|
-
type: "kw",
|
|
318
|
-
operators: [...terms, "wildcard", "regex"],
|
|
319
|
-
normalization: "NFKD/marks/NFC/lowercase v1, whole name",
|
|
320
|
-
support: "A2"
|
|
321
|
-
},
|
|
322
|
-
{
|
|
323
|
-
name: "mime",
|
|
324
|
-
example: 'mime:"application/pdf" OR mime:image',
|
|
325
|
-
index: "attachments.mime / bounded postfilter",
|
|
326
|
-
aliases: [],
|
|
327
|
-
type: "kw",
|
|
328
|
-
operators: [...terms, "wildcard"],
|
|
329
|
-
normalization: "lowercase; a value without / matches the first part; only where the messenger reports a type",
|
|
330
|
-
support: "A2"
|
|
331
|
-
},
|
|
332
|
-
{
|
|
333
|
-
name: "size",
|
|
334
|
-
example: "size>10MB",
|
|
335
|
-
index: "attachments.size",
|
|
336
|
-
aliases: [],
|
|
337
|
-
type: "kw",
|
|
338
|
-
operators: [...terms, "range"],
|
|
339
|
-
normalization: "bytes; KB/MB/GB are 1024-based",
|
|
340
|
-
support: "A2",
|
|
341
|
-
validate: validateSize
|
|
342
|
-
},
|
|
343
|
-
{
|
|
344
|
-
name: "content",
|
|
345
|
-
example: "content:invoice",
|
|
346
|
-
index: "attachment_words",
|
|
347
|
-
aliases: [],
|
|
348
|
-
type: "txt",
|
|
349
|
-
operators: [...terms, "wildcard"],
|
|
350
|
-
normalization: "NFKD/marks/NFC/lowercase v1; the text of files attachments extract read or an agent wrote",
|
|
351
|
-
support: "A2",
|
|
352
|
-
validate: filled
|
|
353
|
-
},
|
|
354
|
-
{
|
|
355
|
-
name: "transcript",
|
|
356
|
-
example: "transcript:invoice",
|
|
357
|
-
index: "attachment_words \u222A transcript_stems; garbled spellings from transcript_words_vocab",
|
|
358
|
-
aliases: [],
|
|
359
|
-
type: "txt",
|
|
360
|
-
operators: [...terms, "wildcard"],
|
|
361
|
-
normalization: "any form of the word (Snowball), widened to spellings speech recognition garbles; what a voice message said",
|
|
362
|
-
support: "A2",
|
|
363
|
-
validate: filled
|
|
364
|
-
},
|
|
365
|
-
...[
|
|
366
|
-
[
|
|
367
|
-
"title",
|
|
368
|
-
'title:"quarterly report"',
|
|
369
|
-
"documents.metadata, then the title column; chats.title_folded; email_words, then the subject",
|
|
370
|
-
"every word, folded as text is: of a note's or a file's title, inside a chat's title, of a mail's subject (as subject:)",
|
|
371
|
-
"txt"
|
|
372
|
-
],
|
|
373
|
-
[
|
|
374
|
-
"site",
|
|
375
|
-
"site:wikipedia",
|
|
376
|
-
"documents.metadata (og:site_name)",
|
|
377
|
-
"contained, folded as text is; notes and files only",
|
|
378
|
-
"kw"
|
|
379
|
-
],
|
|
380
|
-
[
|
|
381
|
-
"lang",
|
|
382
|
-
"lang:ru",
|
|
383
|
-
"documents.metadata (html lang)",
|
|
384
|
-
"language tag or its prefix, lowercase; notes and files only",
|
|
385
|
-
"kw"
|
|
386
|
-
],
|
|
387
|
-
[
|
|
388
|
-
"author",
|
|
389
|
-
"author:ivanov",
|
|
390
|
-
"documents.metadata (meta author, JSON-LD)",
|
|
391
|
-
"contained, folded as text is; notes and files only",
|
|
392
|
-
"kw"
|
|
393
|
-
],
|
|
394
|
-
[
|
|
395
|
-
"keyword",
|
|
396
|
-
"keyword:invoices",
|
|
397
|
-
"documents.metadata (meta keywords)",
|
|
398
|
-
"whole keyword, folded as text is; notes and files only",
|
|
399
|
-
"kw"
|
|
400
|
-
]
|
|
401
|
-
].map(([name, example, index, normalization, type]) => ({
|
|
402
|
-
name,
|
|
403
|
-
example,
|
|
404
|
-
index,
|
|
405
|
-
aliases: [],
|
|
406
|
-
type,
|
|
407
|
-
operators: terms,
|
|
408
|
-
normalization,
|
|
409
|
-
support: "A2",
|
|
410
|
-
validate: filled
|
|
411
|
-
})),
|
|
412
|
-
...[
|
|
413
|
-
[
|
|
414
|
-
"phone",
|
|
415
|
-
'phone:"8 900 000-00-01"',
|
|
416
|
-
"a phone found in the text, written any way; a number without + is read in phone_countries"
|
|
417
|
-
],
|
|
418
|
-
["email", "email:ana@example.com", "an address found in the text, lower-cased"],
|
|
419
|
-
["url", 'url:"https://example.com/a"', "a link found in the text, without utm_*, fbclid and the fragment"],
|
|
420
|
-
["domain", "domain:google.com", "the site of a link or an address in the text; docs.google.com means google.com"],
|
|
421
|
-
[
|
|
422
|
-
"link",
|
|
423
|
-
'link:"click?id=1"',
|
|
424
|
-
"a part of a link, quoted; Latin letters in any case; in mail also the body of a letter with a tracking link"
|
|
425
|
-
]
|
|
426
|
-
].map(([name, example, normalization]) => ({
|
|
427
|
-
name,
|
|
428
|
-
example,
|
|
429
|
-
index: "mentions (kind, value) / (domain); in mail a tracking link is kept as its site",
|
|
430
|
-
aliases: [],
|
|
431
|
-
type: "kw",
|
|
432
|
-
operators: terms,
|
|
433
|
-
normalization,
|
|
434
|
-
support: "A2",
|
|
435
|
-
validate: filled
|
|
436
|
-
})),
|
|
437
|
-
{
|
|
438
|
-
name: "mentions",
|
|
439
|
-
example: 'mentions:"person:12"',
|
|
440
|
-
index: "mentions (target_type, target_id)",
|
|
441
|
-
aliases: [],
|
|
442
|
-
type: "kw",
|
|
443
|
-
operators: terms,
|
|
444
|
-
normalization: "a person (by name, phone or address), an organization or a document, linked; quoted",
|
|
445
|
-
support: "A2",
|
|
446
|
-
validate: validateMentioned
|
|
447
|
-
},
|
|
448
|
-
{
|
|
449
|
-
name: "tag",
|
|
450
|
-
example: "tag:work",
|
|
451
|
-
index: "tags: the message, its chat or its sender",
|
|
452
|
-
aliases: [],
|
|
453
|
-
type: "kw",
|
|
454
|
-
operators: [...terms, "wildcard"],
|
|
455
|
-
normalization: "lowercase a-z, 0-9 and -, 1-32 characters",
|
|
456
|
-
support: "A2",
|
|
457
|
-
validate: validateTag
|
|
458
|
-
}
|
|
459
|
-
];
|
|
460
|
-
var MESSAGES = { entity: "message", backend: "sql", fields: QUERY_FIELDS };
|
|
461
|
-
var NEAR_FIELDS = /* @__PURE__ */ new Set(["text", "exact", "transcript", "content"]);
|
|
462
|
-
var CANONICAL = new Map(QUERY_FIELDS.flatMap(({ name, aliases }) => aliases.map((alias) => [alias, name])));
|
|
463
|
-
var isPresence = /* @__PURE__ */ __name((node) => node.operator === "wildcard" && node.value === "*", "isPresence");
|
|
464
|
-
var PRESENCE = /* @__PURE__ */ new Set(["from", "to", "cc", "bcc", "subject", "title", "topic", "participants_count"]);
|
|
465
|
-
var ALWAYS = /* @__PURE__ */ new Set(["chat", "date"]);
|
|
466
|
-
var EVERY_DATE = { operator: "range", value: "*", upper: "*", lower_inclusive: true, upper_inclusive: true };
|
|
467
|
-
var PRESENCE_INSTEAD = {
|
|
468
|
-
text: "has:text",
|
|
469
|
-
exact: "has:text",
|
|
470
|
-
body: "has:text",
|
|
471
|
-
content: "has:file",
|
|
472
|
-
transcript: "has:transcript",
|
|
473
|
-
size: "has:attachment",
|
|
474
|
-
url: "has:link",
|
|
475
|
-
link: "has:link",
|
|
476
|
-
domain: "has:link"
|
|
477
|
-
};
|
|
478
|
-
var CONTAINED = /* @__PURE__ */ new Set(["title", "site", "author"]);
|
|
479
|
-
var notPresent = /* @__PURE__ */ __name((node) => searchError("query.unsupported-operator", node.span, `${node.field}:* asks whether ${node.field} has a value, which search answers for ${[...PRESENCE, ...ALWAYS].join(", ")}${PRESENCE_INSTEAD[node.field] ? `; write ${PRESENCE_INSTEAD[node.field]}` : ""}`), "notPresent");
|
|
480
|
-
var canonical = /* @__PURE__ */ __name((node) => {
|
|
481
|
-
if (node.kind === "boolean") {
|
|
482
|
-
const clauses = node.clauses.map((clause) => {
|
|
483
|
-
const inner = canonical(clause.node);
|
|
484
|
-
return inner === clause.node ? clause : { ...clause, node: inner };
|
|
485
|
-
});
|
|
486
|
-
return clauses.every((clause, at) => clause === node.clauses[at]) ? node : { ...node, clauses };
|
|
487
|
-
}
|
|
488
|
-
const field = CANONICAL.get(node.field);
|
|
489
|
-
if (node.field !== "_exists_")
|
|
490
|
-
return field ? { ...node, field } : node;
|
|
491
|
-
const { implicit: _, ...rest } = node;
|
|
492
|
-
return { ...rest, field: CANONICAL.get(node.value) ?? node.value, operator: "wildcard", value: "*" };
|
|
493
|
-
}, "canonical");
|
|
494
|
-
var everyDate = /* @__PURE__ */ __name((node) => node.kind === "boolean" ? { ...node, clauses: node.clauses.map((clause) => ({ ...clause, node: everyDate(clause.node) })) } : isPresence(node) && ALWAYS.has(node.field) ? { kind: "predicate", field: "date", ...EVERY_DATE, span: node.span } : node, "everyDate");
|
|
495
|
-
var validateFields = /* @__PURE__ */ __name((written, { presence = false } = {}) => {
|
|
496
|
-
const root = canonical(written.root);
|
|
497
|
-
const ast = root === written.root ? written : { ...written, root };
|
|
498
|
-
for (const node of walkQuery(ast.root)) {
|
|
499
|
-
if (presence && isPresence(node)) {
|
|
500
|
-
if (PRESENCE.has(node.field) || ALWAYS.has(node.field))
|
|
501
|
-
continue;
|
|
502
|
-
const known = QUERY_FIELDS.find(({ name }) => name === node.field);
|
|
503
|
-
if (known && (!known.operators.includes("wildcard") || PRESENCE_INSTEAD[node.field]))
|
|
504
|
-
notPresent(node);
|
|
505
|
-
}
|
|
506
|
-
const field = QUERY_FIELDS.find(({ name }) => name === node.field);
|
|
507
|
-
if (!field && ["after", "before"].includes(node.field)) {
|
|
508
|
-
const plain = ["term", "phrase"].includes(node.operator) && /^[\w:.+-]+$/u.test(node.value);
|
|
509
|
-
searchError("query.legacy-date-field", node.span, plain ? `use date${node.field === "after" ? ">=" : "<"}${node.value}` : "use date>=YYYY-MM-DD or date:[a TO b]");
|
|
510
|
-
}
|
|
511
|
-
if (node.slop !== void 0 && !NEAR_FIELDS.has(node.field))
|
|
512
|
-
searchError("query.unsupported-operator", node.span, `"a b"~N takes words: ${[...NEAR_FIELDS].join(", ")}`);
|
|
513
|
-
if (node.slop !== void 0 && node.slop > MOST_WORDS_APART)
|
|
514
|
-
searchError("query.invalid-number", node.span, `words at most ${MOST_WORDS_APART} apart: "a b"~${MOST_WORDS_APART}`);
|
|
515
|
-
if (field && node.operator === "wildcard" && !field.operators.includes("wildcard")) {
|
|
516
|
-
const part = node.value.replace(/[*?]/gu, "");
|
|
517
|
-
searchError("query.unsupported-operator", node.span, `${field.name} takes ${field.operators.join(", ")}` + (CONTAINED.has(field.name) && part ? `; ${field.name}:${part} already finds it inside a word` : ""));
|
|
518
|
-
}
|
|
519
|
-
}
|
|
520
|
-
const valid = validateQuery(ast, MESSAGES, SEARCH_QUERY);
|
|
521
|
-
return presence ? { ...valid, root: everyDate(valid.root) } : valid;
|
|
522
|
-
}, "validateFields");
|
|
523
|
-
var record = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "record");
|
|
524
|
-
var validSpan = /* @__PURE__ */ __name((value) => record(value) && Number.isInteger(value.start) && Number.isInteger(value.end) && Number(value.start) >= 0 && Number(value.end) >= Number(value.start) && Number(value.end) <= QUERY_LIMITS.bytes, "validSpan");
|
|
525
|
-
var validateAst = /* @__PURE__ */ __name((input, options = {}) => {
|
|
526
|
-
const failure = { start: 0, end: 0 };
|
|
527
|
-
if (!record(input) || input.version !== 1 || input.language !== "lucene-v1")
|
|
528
|
-
searchError("query.unsupported-version", failure);
|
|
529
|
-
let count = 0;
|
|
530
|
-
let bytes = 0;
|
|
531
|
-
const measure = /* @__PURE__ */ __name((value, depth) => {
|
|
532
|
-
if (++count > QUERY_LIMITS.nodes || depth > QUERY_LIMITS.depth)
|
|
533
|
-
searchError("query.too-large", failure);
|
|
534
|
-
if (!record(value) || !validSpan(value.span))
|
|
535
|
-
searchError("query.invalid-ast", failure);
|
|
536
|
-
if (Array.isArray(value.clauses)) {
|
|
537
|
-
if (value.clauses.length === 0)
|
|
538
|
-
searchError("query.invalid-ast", value.span);
|
|
539
|
-
for (const clause of value.clauses)
|
|
540
|
-
measure(record(clause) ? clause.node : void 0, depth + 1);
|
|
541
|
-
return;
|
|
542
|
-
}
|
|
543
|
-
for (const text of [value.field, value.value, value.upper])
|
|
544
|
-
if (typeof text === "string")
|
|
545
|
-
bytes += new TextEncoder().encode(text).length;
|
|
546
|
-
if (bytes > QUERY_LIMITS.bytes)
|
|
547
|
-
searchError("query.too-large", value.span);
|
|
548
|
-
}, "measure");
|
|
549
|
-
measure(input.root, 1);
|
|
550
|
-
const parsed = safeParse(queryAstSchema, input);
|
|
551
|
-
if (!parsed.success)
|
|
552
|
-
searchError("query.invalid-ast", failure);
|
|
553
|
-
const open = walkQuery(parsed.output.root).find((node) => node.operator === "range" && (node.upper === void 0 || node.lower_inclusive === void 0 || node.upper_inclusive === void 0));
|
|
554
|
-
if (open)
|
|
555
|
-
searchError("query.invalid-ast", open.span);
|
|
556
|
-
return validateFields(parsed.output, options);
|
|
557
|
-
}, "validateAst");
|
|
558
|
-
var QUERY_OPERATORS = [
|
|
559
|
-
{
|
|
560
|
-
name: "term",
|
|
561
|
-
example: "invoice",
|
|
562
|
-
semantics: "\u041B\u044E\u0431\u0430\u044F \u0444\u043E\u0440\u043C\u0430 \u0441\u043B\u043E\u0432\u0430: text \u0441\u0440\u0430\u0432\u043D\u0438\u0432\u0430\u0435\u0442 \u043E\u0441\u043D\u043E\u0432\u044B Snowball; \u0442\u043E\u0447\u043D\u0430\u044F \u0444\u043E\u0440\u043C\u0430 \u2014 exact:invoice \u0438\u043B\u0438 --exact"
|
|
563
|
-
},
|
|
564
|
-
{
|
|
565
|
-
name: "phrase",
|
|
566
|
-
example: '"invoice paid"',
|
|
567
|
-
semantics: '\u0421\u043B\u043E\u0432\u0430 \u043F\u043E\u0434\u0440\u044F\u0434, \u0432 \u043B\u044E\u0431\u043E\u0439 \u0444\u043E\u0440\u043C\u0435; \u043A\u0430\u0432\u044B\u0447\u043A\u0438 \u043D\u0435 \u0434\u0435\u043B\u0430\u044E\u0442 \u043F\u043E\u0438\u0441\u043A \u0442\u043E\u0447\u043D\u044B\u043C \u2014 \u0442\u043E\u0447\u043D\u0430\u044F \u0444\u0440\u0430\u0437\u0430: exact:"invoice paid"'
|
|
568
|
-
},
|
|
569
|
-
{
|
|
570
|
-
name: "implicit AND",
|
|
571
|
-
example: "invoice paid",
|
|
572
|
-
semantics: "\u041E\u0431\u0430 clauses \u043E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u044B; adjacency \u0433\u0440\u0443\u043F\u043F\u0438\u0440\u0443\u0435\u0442\u0441\u044F \u043F\u043E upstream grammar"
|
|
573
|
-
},
|
|
574
|
-
{ name: "AND / &&", example: "alpha AND beta", semantics: "\u041E\u0431\u0430 \u0443\u0441\u043B\u043E\u0432\u0438\u044F \u043E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u044B" },
|
|
575
|
-
{ name: "OR / ||", example: "alpha OR beta", semantics: "\u041B\u044E\u0431\u043E\u0439 optional clause, \u0435\u0441\u043B\u0438 \u043D\u0435\u0442 required clause" },
|
|
576
|
-
{
|
|
577
|
-
name: "NOT / ! / -",
|
|
578
|
-
example: "alpha NOT beta",
|
|
579
|
-
semantics: "\u0418\u0441\u043A\u043B\u044E\u0447\u0438\u0442\u044C beta; \u0447\u0438\u0441\u0442\u043E\u0435 \u043E\u0442\u0440\u0438\u0446\u0430\u043D\u0438\u0435 \u043D\u0435 \u0432\u044B\u0431\u0438\u0440\u0430\u0435\u0442 \u0432\u0435\u0441\u044C \u0430\u0440\u0445\u0438\u0432"
|
|
580
|
-
},
|
|
581
|
-
{ name: "+", example: "+alpha OR beta", semantics: "alpha \u043E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u0435\u043D, beta optional" },
|
|
582
|
-
{ name: "group", example: "(alpha OR beta) gamma", semantics: "\u0421\u043A\u043E\u0431\u043A\u0438 \u0444\u0438\u043A\u0441\u0438\u0440\u0443\u044E\u0442 grouping" },
|
|
583
|
-
{ name: "field group", example: "from:(alice OR bob)", semantics: "\u041F\u043E\u043B\u0435 \u043D\u0430\u0441\u043B\u0435\u0434\u0443\u0435\u0442\u0441\u044F \u0432\u043D\u0443\u0442\u0440\u0438 \u0433\u0440\u0443\u043F\u043F\u044B" },
|
|
584
|
-
{ name: "field equality", example: "kind=group", semantics: "\u0421\u0442\u0430\u043D\u0434\u0430\u0440\u0442\u043D\u044B\u0439 \u0441\u0438\u043D\u043E\u043D\u0438\u043C \u0437\u0430\u043F\u0438\u0441\u0438 kind:group" },
|
|
585
|
-
{
|
|
586
|
-
name: "range",
|
|
587
|
-
example: "date:[2026-01-01 TO 2026-02-01}",
|
|
588
|
-
semantics: "Inclusive [ ], exclusive { }, \u0441\u043C\u0435\u0448\u0430\u043D\u043D\u044B\u0435 \u0433\u0440\u0430\u043D\u0438\u0446\u044B \u0438 *"
|
|
589
|
-
},
|
|
590
|
-
{
|
|
591
|
-
name: "comparison",
|
|
592
|
-
example: "date>=2026-01-01",
|
|
593
|
-
semantics: "\u0421\u0442\u0430\u043D\u0434\u0430\u0440\u0442\u043D\u044B\u0439 typed open range; `date:>=2026-01-01` \u2014 \u0442\u043E \u0436\u0435 \u0441\u0430\u043C\u043E\u0435 \u0432 \u0437\u0430\u043F\u0438\u0441\u0438 Elasticsearch"
|
|
594
|
-
},
|
|
595
|
-
{ name: "wildcard", example: "text:invo*", semantics: "\u041F\u043E\u043B\u043D\u044B\u0439 term; * \u2014 \u043B\u044E\u0431\u043E\u0435 \u0447\u0438\u0441\u043B\u043E \u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432, ? \u2014 \u043E\u0434\u0438\u043D" },
|
|
596
|
-
{
|
|
597
|
-
name: "regex",
|
|
598
|
-
example: "text:/pass(port)?/",
|
|
599
|
-
semantics: "\u041F\u043E\u043B\u043D\u044B\u0439 term; bounded subset Lucene RegExp; \u0431\u0443\u043A\u0432\u044B text \u043F\u0440\u0438\u0432\u043E\u0434\u044F\u0442\u0441\u044F \u043A\u0430\u043A \u0432 \u0438\u043D\u0434\u0435\u043A\u0441\u0435"
|
|
600
|
-
},
|
|
601
|
-
{
|
|
602
|
-
name: "proximity",
|
|
603
|
-
example: '"invoice paid"~3',
|
|
604
|
-
semantics: "\u0421\u043B\u043E\u0432\u0430 \u043E\u0434\u043D\u043E\u0433\u043E \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u044F, \u043C\u0435\u0436\u0434\u0443 \u043D\u0438\u043C\u0438 \u043D\u0435 \u0431\u043E\u043B\u044C\u0448\u0435 N \u0434\u0440\u0443\u0433\u0438\u0445 \u0441\u043B\u043E\u0432, \u0432 \u043B\u044E\u0431\u043E\u043C \u043F\u043E\u0440\u044F\u0434\u043A\u0435; N \u0434\u043E 50"
|
|
605
|
-
},
|
|
606
|
-
{ name: "fuzzy", example: "invoice~1", semantics: "unsupported_operator; \u0444\u043E\u0440\u043C\u044B \u0441\u043B\u043E\u0432\u0430 \u043B\u043E\u0432\u0438\u0442 prefix `word*`" },
|
|
607
|
-
{ name: "boost / minimum / intervals", example: "invoice^2", semantics: "query.unsupported-operator" }
|
|
608
|
-
];
|
|
609
|
-
|
|
610
|
-
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/search/lucene/plain.js
|
|
611
|
-
var REPAIRED = /* @__PURE__ */ new Set([
|
|
612
|
-
"query.invalid-syntax",
|
|
613
|
-
"query.unclosed-literal",
|
|
614
|
-
"query.unsupported-operator",
|
|
615
|
-
"query.invalid-escape"
|
|
616
|
-
]);
|
|
617
|
-
var SEARCH_FIELDS = /* @__PURE__ */ new Set([
|
|
618
|
-
...QUERY_FIELDS.flatMap(({ name, aliases }) => [name, ...aliases]),
|
|
619
|
-
"after",
|
|
620
|
-
"before",
|
|
621
|
-
"_exists_"
|
|
622
|
-
]);
|
|
623
|
-
var FIELD_PREFIX = /^[+-]?([\p{L}\p{N}_.]+)(?:[:=]|[<>]=?)/u;
|
|
624
|
-
var FIELD_NAME = /^[a-z][a-z_]{2,}$/u;
|
|
625
|
-
var LISTED_BY = "this search has no such field; a list filters by it:";
|
|
626
|
-
var ELSEWHERE = {
|
|
627
|
-
status: `${LISTED_BY} tasks list status:open, deals list status:won`,
|
|
628
|
-
stage: `${LISTED_BY} deals list stage:<value>`,
|
|
629
|
-
pipeline: `${LISTED_BY} deals list pipeline:<value>`,
|
|
630
|
-
priority: `${LISTED_BY} tasks list priority:<value>`,
|
|
631
|
-
assignee: `${LISTED_BY} tasks list assignee:<value>`,
|
|
632
|
-
project: `${LISTED_BY} tasks list project:<value>`,
|
|
633
|
-
due: `${LISTED_BY} tasks list due:<value>`,
|
|
634
|
-
name: "a person's name is from: (who wrote) or mentions: here"
|
|
635
|
-
};
|
|
636
|
-
var unknownField = /* @__PURE__ */ __name((field, written, span, fields) => searchError("query.unknown-field", span, `${ELSEWHERE[field] ?? `fields here: ${[...fields].filter((one) => FIELD_NAME.test(one)).join(", ")}`}; to find the words as written, quote them: "${written}"`), "unknownField");
|
|
637
|
-
var space = /* @__PURE__ */ __name((c) => c !== void 0 && /[ \t\n\r\u3000]/u.test(c), "space");
|
|
638
|
-
var quoted = /* @__PURE__ */ __name((text) => {
|
|
639
|
-
let out = "";
|
|
640
|
-
for (let at = 0; at < text.length; at++) {
|
|
641
|
-
const c = text[at];
|
|
642
|
-
if (c === "\\" && at + 1 < text.length && (text[at + 1] !== "u" || /^u[0-9a-fA-F]{4}/u.test(text.slice(at + 1)))) {
|
|
643
|
-
out += c + text[at + 1];
|
|
644
|
-
at++;
|
|
645
|
-
} else
|
|
646
|
-
out += c === '"' || c === "\\" ? `\\${c}` : c;
|
|
647
|
-
}
|
|
648
|
-
return `"${out}"`;
|
|
649
|
-
}, "quoted");
|
|
650
|
-
var literal = /* @__PURE__ */ __name((word, keepParens, fields) => {
|
|
651
|
-
const prefix = FIELD_PREFIX.exec(word);
|
|
652
|
-
const field = prefix && fields.has(prefix[1] ?? "") ? prefix[0] : "";
|
|
653
|
-
const rest = word.slice(field.length);
|
|
654
|
-
const opening = keepParens ? (field ? /^\(*/u : /^[(+-]*/u).exec(rest)?.[0] ?? "" : "";
|
|
655
|
-
const closing = keepParens ? /\)*$/u.exec(rest.slice(opening.length))?.[0] ?? "" : "";
|
|
656
|
-
const body = rest.slice(opening.length, rest.length - closing.length);
|
|
657
|
-
if (!body)
|
|
658
|
-
return keepParens ? literal(word, false, fields) : `${field}${quoted(rest)}`;
|
|
659
|
-
return `${field}${opening}${quoted(body)}${closing}`;
|
|
660
|
-
}, "literal");
|
|
661
|
-
var wordAround = /* @__PURE__ */ __name((text, at) => {
|
|
662
|
-
let start = at;
|
|
663
|
-
while (start > 0 && !space(text[start - 1]))
|
|
664
|
-
start--;
|
|
665
|
-
let end = at;
|
|
666
|
-
while (end < text.length && !space(text[end]))
|
|
667
|
-
end++;
|
|
668
|
-
return { start, end };
|
|
669
|
-
}, "wordAround");
|
|
670
|
-
var everyWordLiteral = /* @__PURE__ */ __name((text, fields) => text.replace(/[^ \t\n\r\u3000]+/gu, (word) => literal(word, false, fields)), "everyWordLiteral");
|
|
671
|
-
var refusal = /* @__PURE__ */ __name((refuse) => {
|
|
672
|
-
try {
|
|
673
|
-
return refuse();
|
|
674
|
-
} catch (error) {
|
|
675
|
-
return { refused: error };
|
|
676
|
-
}
|
|
677
|
-
}, "refusal");
|
|
678
|
-
var read = /* @__PURE__ */ __name((text, fields) => {
|
|
679
|
-
try {
|
|
680
|
-
const leaves = walkQuery(parseLucene(text, MESSAGE_PARSING).root);
|
|
681
|
-
const unknown = leaves.find(({ field }) => !fields.has(field));
|
|
682
|
-
if (unknown && FIELD_NAME.test(unknown.field) && unknown.value && !unknown.value.startsWith("/"))
|
|
683
|
-
return refusal(() => unknownField(unknown.field, text.slice(unknown.span.start, unknown.span.end), unknown.span, fields));
|
|
684
|
-
if (unknown)
|
|
685
|
-
return { at: text.lastIndexOf(unknown.field, unknown.span.start) };
|
|
686
|
-
const questions = leaves.flatMap(({ implicit, operator, value, span }) => {
|
|
687
|
-
const mark = /^[^*?]*[^*?\\]\?+$/u.test(value) && implicit && operator === "wildcard" ? /\?+$/u.exec(value) : null;
|
|
688
|
-
return mark ? [span.end - mark[0].length] : [];
|
|
689
|
-
});
|
|
690
|
-
if (questions.length)
|
|
691
|
-
return { questions };
|
|
692
|
-
const wordless = leaves.filter(({ implicit, operator, value }) => implicit && (operator === "term" || operator === "phrase") && !/[\p{L}\p{N}]/u.test(value));
|
|
693
|
-
const words = wordless.length < leaves.length;
|
|
694
|
-
return { wordless: words ? wordless : [], words };
|
|
695
|
-
} catch (error) {
|
|
696
|
-
const details = isCliError(error) ? error.details : void 0;
|
|
697
|
-
if (!details?.span || !REPAIRED.has(details.reason ?? ""))
|
|
698
|
-
throw error;
|
|
699
|
-
if (/^~\d/u.test(text.slice(details.span.start)))
|
|
700
|
-
throw error;
|
|
701
|
-
const at = details.span.start;
|
|
702
|
-
const boost = /^\^\d+(?:\.\d+)?/u.exec(text.slice(at))?.[0];
|
|
703
|
-
if (boost && at > 0 && !space(text[at - 1])) {
|
|
704
|
-
const { start } = wordAround(text, at);
|
|
705
|
-
const written = text.slice(start, at + boost.length);
|
|
706
|
-
return refusal(() => searchError("query.unsupported-operator", { start, end: at + boost.length }, `boost ${boost} is not supported \u2014 drop it: ${text.slice(start, at)}, or quote the text to find it as written: ${quoted(written)}`));
|
|
707
|
-
}
|
|
708
|
-
return { at };
|
|
709
|
-
}
|
|
710
|
-
}, "read");
|
|
711
|
-
var without = /* @__PURE__ */ __name((text, leaves) => [...leaves].sort((a, b) => b.span.start - a.span.start).reduce((left, { span }) => left.slice(0, span.start) + left.slice(span.end), text).trim(), "without");
|
|
712
|
-
var plainQuery = /* @__PURE__ */ __name((text, fields = SEARCH_FIELDS) => {
|
|
713
|
-
if (text.trim() && !/[\p{L}\p{N}*]/u.test(text))
|
|
714
|
-
throw new CliError("validation_error", `search needs a letter or a digit to look for; ${JSON.stringify(text)} has none`);
|
|
715
|
-
let current = text;
|
|
716
|
-
let whole = false;
|
|
717
|
-
for (let tries = 0; tries <= 64; tries++) {
|
|
718
|
-
let reading;
|
|
719
|
-
try {
|
|
720
|
-
reading = read(current, fields);
|
|
721
|
-
} catch {
|
|
722
|
-
return text;
|
|
723
|
-
}
|
|
724
|
-
if ("refused" in reading)
|
|
725
|
-
throw reading.refused;
|
|
726
|
-
if ("questions" in reading) {
|
|
727
|
-
current = reading.questions.sort((a, b) => b - a).reduce((left, at) => left.slice(0, at) + left.slice(at).replace(/^\?+/u, (marks) => "\\?".repeat(marks.length)), current);
|
|
728
|
-
continue;
|
|
729
|
-
}
|
|
730
|
-
if ("wordless" in reading) {
|
|
731
|
-
if (!reading.words && current !== text)
|
|
732
|
-
return text;
|
|
733
|
-
if (!reading.wordless.length)
|
|
734
|
-
return current;
|
|
735
|
-
current = without(current, reading.wordless);
|
|
736
|
-
continue;
|
|
737
|
-
}
|
|
738
|
-
const word = reading.at < 0 || reading.at >= current.length ? void 0 : wordAround(current, reading.at);
|
|
739
|
-
const paren = "()".includes(current[reading.at] ?? "");
|
|
740
|
-
const repaired = word ? current.slice(0, word.start) + literal(current.slice(word.start, word.end), !paren, fields) + current.slice(word.end) : current;
|
|
741
|
-
if (repaired !== current) {
|
|
742
|
-
current = repaired;
|
|
743
|
-
continue;
|
|
744
|
-
}
|
|
745
|
-
if (whole)
|
|
746
|
-
return text;
|
|
747
|
-
whole = true;
|
|
748
|
-
current = everyWordLiteral(text, fields);
|
|
749
|
-
}
|
|
750
|
-
return text;
|
|
751
|
-
}, "plainQuery");
|
|
752
|
-
|
|
753
|
-
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/search/fusion.js
|
|
754
|
-
var RRF_K = 60;
|
|
755
|
-
var fuseRanked = /* @__PURE__ */ __name((lists, facts) => {
|
|
756
|
-
const rows = lists.flatMap((list) => list.map((item, rank) => ({ item, vote: 1 / (RRF_K + rank + 1), ...facts(item) })));
|
|
757
|
-
const ranking = rows.some(({ ranked }) => ranked);
|
|
758
|
-
return rows.sort((a, b) => Number(b.exact === true) - Number(a.exact === true) || (ranking ? Number(b.ranked) - Number(a.ranked) || b.vote - a.vote : 0) || b.at - a.at).map(({ item }) => item);
|
|
759
|
-
}, "fuseRanked");
|
|
760
|
-
|
|
761
|
-
export {
|
|
762
|
-
FIELD_VERSION,
|
|
763
|
-
parseBytes,
|
|
764
|
-
QUERY_FIELDS,
|
|
765
|
-
isPresence,
|
|
766
|
-
PRESENCE,
|
|
767
|
-
validateFields,
|
|
768
|
-
validateAst,
|
|
769
|
-
QUERY_OPERATORS,
|
|
770
|
-
plainQuery,
|
|
771
|
-
RRF_K,
|
|
772
|
-
fuseRanked
|
|
773
|
-
};
|