@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
|
@@ -3,63 +3,48 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
profileAccountKey,
|
|
5
5
|
profilePattern
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-DAYBU7WR.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
8
|
+
array,
|
|
9
|
+
boolean,
|
|
10
|
+
integer,
|
|
11
|
+
isoTimestamp,
|
|
12
|
+
literal,
|
|
13
|
+
minLength,
|
|
14
|
+
minValue,
|
|
15
|
+
nullable,
|
|
16
|
+
number,
|
|
17
|
+
optional,
|
|
18
|
+
picklist,
|
|
19
|
+
pipe,
|
|
20
|
+
record,
|
|
21
|
+
safeParse,
|
|
22
|
+
strictObject,
|
|
23
|
+
string,
|
|
24
|
+
union
|
|
25
|
+
} from "./chunk-3YDF76DP.js";
|
|
23
26
|
import {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
LOCAL_READ,
|
|
27
|
-
NO_EFFECTS,
|
|
28
|
-
annotate,
|
|
29
|
-
answerSchema,
|
|
30
|
-
itemOf,
|
|
31
|
-
listOf,
|
|
32
|
-
metaNow,
|
|
33
|
-
metaOf,
|
|
34
|
-
overrideSharedContract,
|
|
35
|
-
parseDuration
|
|
36
|
-
} from "./chunk-V5EJSF2B.js";
|
|
37
|
-
import {
|
|
38
|
-
canonicalMeetingReference,
|
|
39
|
-
meetingHitsList,
|
|
40
|
-
parseMeetingReference,
|
|
41
|
-
validateMeetingContextChange,
|
|
42
|
-
validateMeetingHitSearch
|
|
43
|
-
} from "./chunk-KKFY23AK.js";
|
|
44
|
-
import {
|
|
45
|
-
createOutputBuffer
|
|
46
|
-
} from "./chunk-6CWL5BKG.js";
|
|
47
|
-
import {
|
|
48
|
-
CliError,
|
|
49
|
-
isCliError
|
|
50
|
-
} from "./chunk-IANKXHSE.js";
|
|
27
|
+
checkCancelled
|
|
28
|
+
} from "./chunk-WSGD5Q6L.js";
|
|
51
29
|
import {
|
|
52
30
|
__name
|
|
53
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-AEWYRB6F.js";
|
|
32
|
+
|
|
33
|
+
// dist/store-connection.js
|
|
34
|
+
import { CliError as CliError12, isCliError } from "@wirecat/cli-base";
|
|
35
|
+
import { validateMeetingContextChange } from "@wirecat/cli-core";
|
|
54
36
|
|
|
55
37
|
// dist/local-transcription.js
|
|
56
38
|
import { isAbsolute } from "node:path";
|
|
39
|
+
import { CliError as CliError2 } from "@wirecat/cli-base";
|
|
40
|
+
import { openWavAudio, preflightWavAudio } from "@wirecat/cli-core";
|
|
57
41
|
|
|
58
42
|
// dist/media-decode.js
|
|
59
43
|
import { execFile } from "node:child_process";
|
|
60
44
|
import { mkdtemp, open, rm } from "node:fs/promises";
|
|
61
45
|
import { tmpdir } from "node:os";
|
|
62
46
|
import { join } from "node:path";
|
|
47
|
+
import { CliError } from "@wirecat/cli-base";
|
|
63
48
|
var readyWav = /* @__PURE__ */ __name(async (file) => {
|
|
64
49
|
const handle = await open(file, "r").catch(() => {
|
|
65
50
|
throw new CliError("not_found", "the audio or video file could not be opened");
|
|
@@ -113,9 +98,9 @@ var wavFor = /* @__PURE__ */ __name(async (file, options = {}) => {
|
|
|
113
98
|
var validateLocalTranscriptionOptions = /* @__PURE__ */ __name((input) => {
|
|
114
99
|
const options = { ...input };
|
|
115
100
|
if (typeof options.model !== "string" || !options.model.trim() || options.model.length > 200 || /[\0\r\n]/.test(options.model))
|
|
116
|
-
throw new
|
|
101
|
+
throw new CliError2("validation_error", "local transcription requires an explicit speech model");
|
|
117
102
|
if (options.modelsDirectory !== void 0 && (typeof options.modelsDirectory !== "string" || !isAbsolute(options.modelsDirectory) || options.modelsDirectory.length > 4096 || /[\0\r\n]/.test(options.modelsDirectory)))
|
|
118
|
-
throw new
|
|
103
|
+
throw new CliError2("validation_error", "speech model directory must be an absolute bounded path");
|
|
119
104
|
for (const [value, max, label] of [
|
|
120
105
|
[options.maxBytes, 4 * 1024 ** 3, "media bytes"],
|
|
121
106
|
[options.maxDurationMs, 24 * 36e5, "media duration"],
|
|
@@ -123,16 +108,16 @@ var validateLocalTranscriptionOptions = /* @__PURE__ */ __name((input) => {
|
|
|
123
108
|
[options.maxTextBytes, 64 * 1024 ** 2, "transcript text bytes"]
|
|
124
109
|
])
|
|
125
110
|
if (value !== void 0 && (!Number.isSafeInteger(value) || value < 1 || value > max))
|
|
126
|
-
throw new
|
|
111
|
+
throw new CliError2("validation_error", `invalid ${label} budget`);
|
|
127
112
|
for (const value of [options.apply, options.dryRun])
|
|
128
113
|
if (value !== void 0 && typeof value !== "boolean")
|
|
129
|
-
throw new
|
|
114
|
+
throw new CliError2("validation_error", "transcription apply and dry-run options must be booleans");
|
|
130
115
|
return options;
|
|
131
116
|
}, "validateLocalTranscriptionOptions");
|
|
132
117
|
var compactLocalTranscriptionReceipt = /* @__PURE__ */ __name((receipt) => {
|
|
133
118
|
const append = receipt.append;
|
|
134
119
|
if (!receipt.applied || !append || !Number.isSafeInteger(append.meeting.meeting.id) || append.meeting.meeting.id < 1)
|
|
135
|
-
throw new
|
|
120
|
+
throw new CliError2("outcome_unknown", "transcription did not return a usable committed acknowledgement");
|
|
136
121
|
return {
|
|
137
122
|
applied: true,
|
|
138
123
|
accountId: receipt.accountId,
|
|
@@ -156,11 +141,11 @@ var engineFailure = /* @__PURE__ */ __name(async (model, work) => {
|
|
|
156
141
|
} catch (error) {
|
|
157
142
|
if (error instanceof Error)
|
|
158
143
|
throw error;
|
|
159
|
-
throw new
|
|
144
|
+
throw new CliError2("configuration_error", `the speech engine could not run ${model}; \`zm models download ${model}\` checks its files and repairs them`);
|
|
160
145
|
}
|
|
161
146
|
}, "engineFailure");
|
|
162
147
|
var loadSpeech = /* @__PURE__ */ __name(async () => {
|
|
163
|
-
const speech = await import("
|
|
148
|
+
const speech = await import("@wirecat/cli-core");
|
|
164
149
|
return { describe: speech.localSpeechRecognitionModel, open: speech.openLocalSpeechRecognizer };
|
|
165
150
|
}, "loadSpeech");
|
|
166
151
|
var createWavTranscriptionSource = /* @__PURE__ */ __name((file, options) => {
|
|
@@ -187,7 +172,7 @@ var createWavTranscriptionSource = /* @__PURE__ */ __name((file, options) => {
|
|
|
187
172
|
},
|
|
188
173
|
async *segments(media, context) {
|
|
189
174
|
if (!plan || !recognition || !speech || media.contentHash !== plan.media.contentHash || media.id !== plan.media.id || media.size !== plan.media.size || media.durationMs !== plan.media.durationMs || media.recognition.engine !== recognition.engine || media.recognition.model !== recognition.model || media.recognition.version !== recognition.version)
|
|
190
|
-
throw new
|
|
175
|
+
throw new CliError2("validation_error", "transcription media descriptor does not match its prepared audio and model");
|
|
191
176
|
const audio = await openWavAudio(plan, context);
|
|
192
177
|
let model;
|
|
193
178
|
try {
|
|
@@ -200,13 +185,13 @@ var createWavTranscriptionSource = /* @__PURE__ */ __name((file, options) => {
|
|
|
200
185
|
signal: context.signal
|
|
201
186
|
}));
|
|
202
187
|
if (model.engine !== recognition.engine || model.model !== recognition.model || model.version !== recognition.version)
|
|
203
|
-
throw new
|
|
188
|
+
throw new CliError2("validation_error", "installed speech recognizer changed after the media preview");
|
|
204
189
|
for await (const window of audio.windows()) {
|
|
205
190
|
checkCancelled(context.signal);
|
|
206
191
|
const recognizer = model;
|
|
207
|
-
const
|
|
192
|
+
const text2 = await engineFailure(recognition.model, () => recognizer.recognize(window.samples, { signal: context.signal }));
|
|
208
193
|
checkCancelled(context.signal);
|
|
209
|
-
yield { startMs: window.startMs, endMs: window.endMs, text };
|
|
194
|
+
yield { startMs: window.startMs, endMs: window.endMs, text: text2 };
|
|
210
195
|
}
|
|
211
196
|
} finally {
|
|
212
197
|
try {
|
|
@@ -221,7 +206,7 @@ var createWavTranscriptionSource = /* @__PURE__ */ __name((file, options) => {
|
|
|
221
206
|
var createLocalTranscriptionCapabilities = /* @__PURE__ */ __name((store, input = {}) => {
|
|
222
207
|
const accountId = store.accountId;
|
|
223
208
|
if (!Number.isSafeInteger(accountId) || accountId < 1)
|
|
224
|
-
throw new
|
|
209
|
+
throw new CliError2("validation_error", "local transcription requires a selected existing account");
|
|
225
210
|
const options = { ...input, ...input.env ? { env: { ...input.env } } : {} };
|
|
226
211
|
const resolveMeeting = store.resolveMeeting.bind(store);
|
|
227
212
|
const appendTranscriptsWithReceipt = store.appendTranscriptsWithReceipt.bind(store);
|
|
@@ -236,7 +221,7 @@ var createLocalTranscriptionCapabilities = /* @__PURE__ */ __name((store, input
|
|
|
236
221
|
externalId: resolved.externalId
|
|
237
222
|
};
|
|
238
223
|
if (!found || found.accountId !== accountId || !Number.isSafeInteger(found.meetingId) || found.meetingId < 1 || typeof found.externalId !== "string" || !found.externalId.trim())
|
|
239
|
-
throw new
|
|
224
|
+
throw new CliError2("not_found", "meeting was not found in the selected account");
|
|
240
225
|
const target = Object.freeze({ accountId, externalId: found.externalId, now: options.now?.() ?? Date.now() });
|
|
241
226
|
const audio = await wavFor(file, { signal: request.signal });
|
|
242
227
|
try {
|
|
@@ -246,11 +231,11 @@ var createLocalTranscriptionCapabilities = /* @__PURE__ */ __name((store, input
|
|
|
246
231
|
env: options.env,
|
|
247
232
|
speech: options.speech
|
|
248
233
|
});
|
|
249
|
-
const { transcribeMeeting } = await import("
|
|
234
|
+
const { transcribeMeeting } = await import("@wirecat/cli-core");
|
|
250
235
|
return await transcribeMeeting(source, {
|
|
251
236
|
appendTranscriptsWithReceipt(value) {
|
|
252
237
|
if (value.accountId !== accountId || value.externalId !== target.externalId)
|
|
253
|
-
throw new
|
|
238
|
+
throw new CliError2("validation_error", "transcription append must retain its selected target");
|
|
254
239
|
return appendTranscriptsWithReceipt(value);
|
|
255
240
|
}
|
|
256
241
|
}, target, request);
|
|
@@ -262,35 +247,36 @@ var createLocalTranscriptionCapabilities = /* @__PURE__ */ __name((store, input
|
|
|
262
247
|
}, "createLocalTranscriptionCapabilities");
|
|
263
248
|
|
|
264
249
|
// dist/meeting-context.js
|
|
265
|
-
|
|
250
|
+
import { CliError as CliError3 } from "@wirecat/cli-base";
|
|
251
|
+
var integer2 = /* @__PURE__ */ __name((value, min, max) => Number.isSafeInteger(value) && value >= min && value <= max, "integer");
|
|
266
252
|
var validateEvidenceOptions = /* @__PURE__ */ __name((options = {}) => {
|
|
267
|
-
if (!
|
|
268
|
-
throw new
|
|
253
|
+
if (!integer2(options.cues ?? 100, 1, 1e3) || !integer2(options.bytes ?? 65536, 2, 4194304) || !integer2(options.maxReadBytes ?? 4194304, 1, 67108864) || !integer2(options.maxTranscriptPages ?? 100, 1, 1e3) || options.afterTranscriptId !== void 0 && !integer2(options.afterTranscriptId, 1, Number.MAX_SAFE_INTEGER) || options.after !== void 0 && options.afterTranscriptId !== void 0 || options.after !== void 0 && (typeof options.after !== "string" || !options.after.trim()))
|
|
254
|
+
throw new CliError3("validation_error", "meeting evidence requires 1\u20131000 cues and 2\u20134194304 bytes");
|
|
269
255
|
}, "validateEvidenceOptions");
|
|
270
256
|
var validatePersonContext = /* @__PURE__ */ __name((person, options = {}) => {
|
|
271
257
|
validateEvidenceOptions(options);
|
|
272
|
-
if (typeof person !== "string" || !/^person:[1-9]\d*$/.test(person) || !
|
|
273
|
-
throw new
|
|
258
|
+
if (typeof person !== "string" || !/^person:[1-9]\d*$/.test(person) || !integer2(Number(person.slice(7)), 1, Number.MAX_SAFE_INTEGER) || !integer2(options.meetings ?? 10, 1, 100) || !integer2(options.scanLimit ?? 1e3, 1, 1e3) || options.since !== void 0 && !Number.isSafeInteger(options.since))
|
|
259
|
+
throw new CliError3("validation_error", "person meeting context requires person:<positive ID> and valid bounded limits");
|
|
274
260
|
}, "validatePersonContext");
|
|
275
261
|
var validateTaskKind = /* @__PURE__ */ __name((kind) => {
|
|
276
262
|
if (!["question", "request", "mention", "promise"].includes(kind))
|
|
277
|
-
throw new
|
|
263
|
+
throw new CliError3("validation_error", "task kind must be question, request, mention or promise");
|
|
278
264
|
return kind;
|
|
279
265
|
}, "validateTaskKind");
|
|
280
266
|
var validateTaskProposal = /* @__PURE__ */ __name((value) => {
|
|
281
267
|
if (typeof value !== "object" || value === null || !("applied" in value) || value.applied !== false || !("persistence" in value) || value.persistence !== "proposal-only")
|
|
282
|
-
throw new
|
|
268
|
+
throw new CliError3("invalid_response", "task proposal must be unapplied and proposal-only");
|
|
283
269
|
}, "validateTaskProposal");
|
|
284
270
|
var loadProducer = /* @__PURE__ */ __name(async () => {
|
|
285
|
-
const [domain, services] = await Promise.all([import("
|
|
271
|
+
const [domain, services] = await Promise.all([import("@wirecat/cli-core"), import("@wirecat/cli-core")]);
|
|
286
272
|
return { ...services, ...domain };
|
|
287
273
|
}, "loadProducer");
|
|
288
274
|
var createMeetingContextCapabilities = /* @__PURE__ */ __name((store, meetings, accountId, load = loadProducer) => {
|
|
289
|
-
if (!
|
|
290
|
-
throw new
|
|
275
|
+
if (!integer2(accountId, 1, Number.MAX_SAFE_INTEGER))
|
|
276
|
+
throw new CliError3("validation_error", "meeting context requires a selected positive account ID");
|
|
291
277
|
const ownedReference = /* @__PURE__ */ __name((api, reference) => {
|
|
292
278
|
if (api.parseMeetingReference(reference).accountId !== accountId)
|
|
293
|
-
throw new
|
|
279
|
+
throw new CliError3("not_found", "meeting reference is unavailable for the selected account");
|
|
294
280
|
return api.canonicalMeetingReference(reference);
|
|
295
281
|
}, "ownedReference");
|
|
296
282
|
return {
|
|
@@ -358,32 +344,298 @@ var createMeetingContextCapabilities = /* @__PURE__ */ __name((store, meetings,
|
|
|
358
344
|
}, "createMeetingContextCapabilities");
|
|
359
345
|
|
|
360
346
|
// dist/meeting-integration.js
|
|
347
|
+
import { CliError as CliError4 } from "@wirecat/cli-base";
|
|
348
|
+
import { canonicalMeetingReference, parseMeetingReference } from "@wirecat/cli-core";
|
|
361
349
|
var integrationReference = /* @__PURE__ */ __name((reference) => {
|
|
362
350
|
const parsed = parseMeetingReference(reference);
|
|
363
351
|
if (parsed.transcriptId !== void 0)
|
|
364
|
-
throw new
|
|
352
|
+
throw new CliError4("validation_error", "this operation requires a root meeting reference");
|
|
365
353
|
return { parsed, reference: canonicalMeetingReference(reference) };
|
|
366
354
|
}, "integrationReference");
|
|
367
355
|
|
|
356
|
+
// dist/meeting-search-commands.js
|
|
357
|
+
import { CliError as CliError9 } from "@wirecat/cli-base";
|
|
358
|
+
import { annotate as annotate3 } from "@wirecat/cli-base/commands";
|
|
359
|
+
import { createMeetingSearchCommand, FETCH as FETCH2, LOCAL_READ, listOf as listOf2, meetingHitSearchRequest, meetingHitsList, meetingSearchArguments, meetingSearchMeta, NO_EFFECTS, overrideSharedContract, pagingOf } from "@wirecat/cli-core";
|
|
360
|
+
import { Command } from "commander";
|
|
361
|
+
|
|
362
|
+
// dist/execution.js
|
|
363
|
+
import { CliError as CliError7, createOutputBuffer } from "@wirecat/cli-base";
|
|
364
|
+
import { metaOf as metaOf2 } from "@wirecat/cli-base/commands";
|
|
365
|
+
import { parseDuration } from "@wirecat/cli-core";
|
|
366
|
+
|
|
368
367
|
// dist/answers.js
|
|
369
368
|
import { randomUUID } from "node:crypto";
|
|
370
|
-
|
|
369
|
+
import { CliError as CliError6 } from "@wirecat/cli-base";
|
|
370
|
+
import { metaNow as metaNow2, runnable, answerSchema as sharedAnswerSchema } from "@wirecat/cli-core";
|
|
371
|
+
|
|
372
|
+
// dist/answer-output.js
|
|
373
|
+
import { createRenderer, exitCodeOfAnswer, projectFields } from "@wirecat/cli-base";
|
|
374
|
+
import { metaOf } from "@wirecat/cli-base/commands";
|
|
375
|
+
import { itemOf, listOf, metaNow, renderAnswer, snakeKeys } from "@wirecat/cli-core";
|
|
376
|
+
|
|
377
|
+
// dist/answer-entities.js
|
|
378
|
+
import { CliError as CliError5 } from "@wirecat/cli-base";
|
|
379
|
+
import { annotate } from "@wirecat/cli-base/commands";
|
|
380
|
+
import { answerEntity, MEETING_RESULT_ENTITIES, meetingResultItem } from "@wirecat/cli-core";
|
|
381
|
+
var text = string();
|
|
382
|
+
var identifier = pipe(text, minLength(1));
|
|
383
|
+
var nullableText = nullable(text);
|
|
384
|
+
var count = pipe(number(), integer(), minValue(0));
|
|
385
|
+
var flag = boolean();
|
|
386
|
+
var optionalCount = optional(count);
|
|
387
|
+
var scope = strictObject({ provider: text, account: text });
|
|
388
|
+
var asset = strictObject({
|
|
389
|
+
id: nullableText,
|
|
390
|
+
type: text,
|
|
391
|
+
format: nullableText,
|
|
392
|
+
size: nullable(count),
|
|
393
|
+
status: text,
|
|
394
|
+
available: flag,
|
|
395
|
+
started_at: nullableText,
|
|
396
|
+
ended_at: nullableText
|
|
397
|
+
});
|
|
398
|
+
var occurrence = strictObject({ id: text, uuid: text, title: nullableText, started_at: nullableText });
|
|
399
|
+
var recording = strictObject({ ...occurrence.entries, assets: array(asset) });
|
|
400
|
+
var archivedFile = strictObject({
|
|
401
|
+
id: text,
|
|
402
|
+
path: text,
|
|
403
|
+
size: count,
|
|
404
|
+
sha256: text,
|
|
405
|
+
remote_size: nullable(count),
|
|
406
|
+
type: text,
|
|
407
|
+
format: nullableText,
|
|
408
|
+
started_at: nullableText,
|
|
409
|
+
ended_at: nullableText
|
|
410
|
+
});
|
|
411
|
+
var archive = strictObject({
|
|
412
|
+
uuid: text,
|
|
413
|
+
manifest_path: text,
|
|
414
|
+
downloaded: array(archivedFile),
|
|
415
|
+
skipped: array(archivedFile),
|
|
416
|
+
unavailable: array(asset)
|
|
417
|
+
});
|
|
418
|
+
var manifest = strictObject({ version: literal(1), meeting: occurrence, files: array(archivedFile) });
|
|
419
|
+
var lock = strictObject({
|
|
420
|
+
name: text,
|
|
421
|
+
status: picklist(["active", "stale", "foreign", "unrecognized"]),
|
|
422
|
+
pid: nullable(count),
|
|
423
|
+
host: nullableText
|
|
424
|
+
});
|
|
425
|
+
var archiveReceipt = strictObject({
|
|
426
|
+
window: strictObject({ from: text, to: text }),
|
|
427
|
+
meeting: strictObject({ id: text, uuid: text, title: nullableText }),
|
|
428
|
+
archive,
|
|
429
|
+
availability: optional(literal("unknown")),
|
|
430
|
+
checkpoint_revision: optional(nullable(count))
|
|
431
|
+
});
|
|
432
|
+
var schedule = strictObject({
|
|
433
|
+
version: literal(1),
|
|
434
|
+
id: text,
|
|
435
|
+
name: text,
|
|
436
|
+
scope,
|
|
437
|
+
destination: text,
|
|
438
|
+
from: text,
|
|
439
|
+
daily_at: text,
|
|
440
|
+
time_zone: text,
|
|
441
|
+
lookback_days: count,
|
|
442
|
+
max_bytes: count,
|
|
443
|
+
created_at: pipe(text, isoTimestamp())
|
|
444
|
+
});
|
|
445
|
+
var job = strictObject({
|
|
446
|
+
version: literal(1),
|
|
447
|
+
schedule,
|
|
448
|
+
capture: strictObject({ profile: text, client_id: text, config_dir: text, runtime: text, cli_path: text }),
|
|
449
|
+
state: picklist(["pending", "enabled", "disabled"])
|
|
450
|
+
});
|
|
451
|
+
var scheduleReceipt = strictObject({
|
|
452
|
+
applied: flag,
|
|
453
|
+
backend: text,
|
|
454
|
+
job,
|
|
455
|
+
units: optional(strictObject({ service_name: text, timer_name: text, service: text, timer: text })),
|
|
456
|
+
timer_state: picklist(["not_checked", "verified_enabled", "verified_disabled"])
|
|
457
|
+
});
|
|
458
|
+
var cue = strictObject({ start_ms: count, end_ms: count, speaker: nullableText, text });
|
|
459
|
+
var archiveImport = strictObject({
|
|
460
|
+
uuid: text,
|
|
461
|
+
asset_ids: array(text),
|
|
462
|
+
status: picklist(["acknowledged", "unavailable"]),
|
|
463
|
+
meeting_id: optional(identifier),
|
|
464
|
+
created: optional(flag),
|
|
465
|
+
inserted_transcripts: optionalCount,
|
|
466
|
+
replayed_transcripts: optionalCount,
|
|
467
|
+
superseded_transcripts: optionalCount,
|
|
468
|
+
reason: optional(literal("missing_or_deleted"))
|
|
469
|
+
});
|
|
470
|
+
var searchHit = strictObject({
|
|
471
|
+
source: text,
|
|
472
|
+
id: nullableText,
|
|
473
|
+
title: nullableText,
|
|
474
|
+
time: nullableText,
|
|
475
|
+
text: nullableText,
|
|
476
|
+
url: nullableText,
|
|
477
|
+
people: array(text),
|
|
478
|
+
container_id: nullableText,
|
|
479
|
+
details: record(text, nullable(union([text, number(), flag])))
|
|
480
|
+
});
|
|
481
|
+
var zoomAppSetup = strictObject({
|
|
482
|
+
marketplace_url: identifier,
|
|
483
|
+
guide_url: identifier,
|
|
484
|
+
app_type: identifier,
|
|
485
|
+
management: identifier,
|
|
486
|
+
oauth: identifier,
|
|
487
|
+
redirect_url: identifier,
|
|
488
|
+
allow_list: array(identifier),
|
|
489
|
+
scopes: array(strictObject({ scope: identifier, required: flag, use: identifier })),
|
|
490
|
+
config_key: identifier
|
|
491
|
+
});
|
|
492
|
+
var ZOOM_ANSWER_ENTITIES = {
|
|
493
|
+
app: { name: "zoom_app_setup", schema: zoomAppSetup },
|
|
494
|
+
"recordings list": { name: "zoom_recording", schema: recording },
|
|
495
|
+
"recordings show": { name: "zoom_recording", schema: recording },
|
|
496
|
+
"recordings download": { name: "zoom_archive", schema: union([archive, archiveReceipt]) },
|
|
497
|
+
"recordings archive show": { name: "zoom_archive_manifest", schema: manifest },
|
|
498
|
+
"recordings archive check": {
|
|
499
|
+
name: "zoom_archive_check",
|
|
500
|
+
schema: strictObject({ manifest_path: text, id: text, path: text, valid: flag })
|
|
501
|
+
},
|
|
502
|
+
"recordings archive locks": { name: "zoom_archive_lock", schema: lock },
|
|
503
|
+
"recordings archive recover": {
|
|
504
|
+
name: "zoom_archive_recovery",
|
|
505
|
+
schema: strictObject({ locks: array(lock), removed: array(text) })
|
|
506
|
+
},
|
|
507
|
+
"recordings archive transcript": {
|
|
508
|
+
name: "zoom_archive_transcript",
|
|
509
|
+
schema: strictObject({ meeting: occurrence, asset: archivedFile, cues: array(cue) })
|
|
510
|
+
},
|
|
511
|
+
"recordings archive import": { name: "zoom_archive_import", schema: archiveImport },
|
|
512
|
+
"recordings schedule list": { name: "zoom_archive_job", schema: job },
|
|
513
|
+
"recordings schedule show": { name: "zoom_archive_job", schema: job },
|
|
514
|
+
"recordings schedule create": { name: "zoom_archive_schedule_change", schema: scheduleReceipt },
|
|
515
|
+
"recordings schedule disable": { name: "zoom_archive_schedule_change", schema: scheduleReceipt },
|
|
516
|
+
"recordings schedule run": { name: "zoom_archive_receipt", schema: archiveReceipt },
|
|
517
|
+
"zoom search": { name: "zoom_search_hit", schema: searchHit },
|
|
518
|
+
"meetings embeddings": { name: "meeting_embedding", schema: MEETING_RESULT_ENTITIES.meeting_embedding, shared: true },
|
|
519
|
+
"meetings sync": { name: "meeting_ingestion", schema: MEETING_RESULT_ENTITIES.meeting_ingestion, shared: true },
|
|
520
|
+
"meetings import": { name: "meeting_ingestion", schema: MEETING_RESULT_ENTITIES.meeting_ingestion, shared: true },
|
|
521
|
+
"meetings repair": {
|
|
522
|
+
name: "meeting_repair",
|
|
523
|
+
schema: MEETING_RESULT_ENTITIES.meeting_repair,
|
|
524
|
+
shared: true
|
|
525
|
+
},
|
|
526
|
+
watch: { name: "meeting_ingestion", schema: MEETING_RESULT_ENTITIES.meeting_ingestion, shared: true },
|
|
527
|
+
"meetings export": { name: "meeting_export", schema: MEETING_RESULT_ENTITIES.meeting_export, shared: true },
|
|
528
|
+
"meetings link": { name: "meeting_association", schema: MEETING_RESULT_ENTITIES.meeting_association, shared: true },
|
|
529
|
+
"meetings transcribe": {
|
|
530
|
+
name: "meeting_transcription",
|
|
531
|
+
schema: MEETING_RESULT_ENTITIES.meeting_transcription,
|
|
532
|
+
shared: true
|
|
533
|
+
}
|
|
534
|
+
};
|
|
535
|
+
var declareZoomAnswers = /* @__PURE__ */ __name((program) => {
|
|
536
|
+
const walk = /* @__PURE__ */ __name((command, path) => {
|
|
537
|
+
const entity = ZOOM_ANSWER_ENTITIES[path.join(" ")];
|
|
538
|
+
if (entity?.shared)
|
|
539
|
+
annotate(command, { output: { entity: entity.name } });
|
|
540
|
+
else if (entity)
|
|
541
|
+
answerEntity(command, entity.name, entity.schema);
|
|
542
|
+
for (const child of command.commands)
|
|
543
|
+
walk(child, [...path, child.name()]);
|
|
544
|
+
}, "walk");
|
|
545
|
+
walk(program, []);
|
|
546
|
+
}, "declareZoomAnswers");
|
|
547
|
+
var publicValue = /* @__PURE__ */ __name((value, key = "") => {
|
|
548
|
+
if (typeof value === "number" && key === "meeting_id")
|
|
549
|
+
return String(value);
|
|
550
|
+
if (typeof value === "number" && key === "created_at")
|
|
551
|
+
return new Date(value).toISOString();
|
|
552
|
+
if (Array.isArray(value))
|
|
553
|
+
return value.map((item) => publicValue(item));
|
|
554
|
+
if (value && typeof value === "object")
|
|
555
|
+
return Object.fromEntries(Object.entries(value).map(([name, item]) => [name, publicValue(item, name)]));
|
|
556
|
+
return value;
|
|
557
|
+
}, "publicValue");
|
|
558
|
+
var schemas = new Map(Object.values(ZOOM_ANSWER_ENTITIES).map(({ name, schema }) => [name, schema]));
|
|
559
|
+
var normalizeZoomAnswer = /* @__PURE__ */ __name((body, entity) => {
|
|
560
|
+
const schema = entity ? schemas.get(entity) : void 0;
|
|
561
|
+
if (!schema)
|
|
562
|
+
return body;
|
|
563
|
+
const checked = /* @__PURE__ */ __name((value) => {
|
|
564
|
+
if (entity && Object.hasOwn(MEETING_RESULT_ENTITIES, entity))
|
|
565
|
+
return meetingResultItem(entity, value);
|
|
566
|
+
const parsed = safeParse(schema, publicValue(value));
|
|
567
|
+
if (!parsed.success) {
|
|
568
|
+
const applied = value && typeof value === "object" && "applied" in value && value.applied === true;
|
|
569
|
+
throw new CliError5(applied ? "outcome_unknown" : "invalid_response", `the command returned an invalid ${entity} answer`);
|
|
570
|
+
}
|
|
571
|
+
return parsed.output;
|
|
572
|
+
}, "checked");
|
|
573
|
+
return "item" in body ? { ...body, item: checked(body.item) } : { ...body, items: body.items.map(checked) };
|
|
574
|
+
}, "normalizeZoomAnswer");
|
|
575
|
+
|
|
576
|
+
// dist/answer-output.js
|
|
577
|
+
var UTC_TIME = /\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?Z/;
|
|
578
|
+
var record2 = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "record");
|
|
579
|
+
var only = /* @__PURE__ */ __name((value, keys) => Object.keys(value).every((key) => keys.includes(key)), "only");
|
|
580
|
+
var bodyOf = /* @__PURE__ */ __name((value) => {
|
|
581
|
+
const data = snakeKeys(value);
|
|
582
|
+
if (record2(data) && only(data, ["item", "items", "page", "next", "missing", "meta"])) {
|
|
583
|
+
if ("item" in data || Array.isArray(data.items) && record2(data.page))
|
|
584
|
+
return data;
|
|
585
|
+
}
|
|
586
|
+
if (record2(data) && Array.isArray(data.items) && only(data, ["items", "page", "limit", "has_more"]))
|
|
587
|
+
return listOf("list", {
|
|
588
|
+
items: data.items,
|
|
589
|
+
limit: Math.max(1, data.items.length),
|
|
590
|
+
has_more: data.has_more === true
|
|
591
|
+
});
|
|
592
|
+
return itemOf(data);
|
|
593
|
+
}, "bodyOf");
|
|
594
|
+
var renderBody = /* @__PURE__ */ __name((command, body, options) => {
|
|
595
|
+
const data = normalizeZoomAnswer(snakeKeys(body), metaOf(command).output?.entity);
|
|
596
|
+
const fields = options.fields;
|
|
597
|
+
const projected = fields ? projectFields(data, fields) : data;
|
|
598
|
+
const meta = metaNow({ ...projected.meta, run_id: options.meta.run_id, duration_ms: options.meta.duration_ms });
|
|
599
|
+
const chunks = [];
|
|
600
|
+
const streams = {
|
|
601
|
+
data: /* @__PURE__ */ __name((text3) => chunks.push(`${text3}
|
|
602
|
+
`), "data"),
|
|
603
|
+
diagnostic: /* @__PURE__ */ __name((text3) => options.diagnostic(`${text3}
|
|
604
|
+
`), "diagnostic")
|
|
605
|
+
};
|
|
606
|
+
const renderer = createRenderer({ format: options.format, color: false, quiet: options.quiet, streams });
|
|
607
|
+
for (const warning of options.warnings ?? [])
|
|
608
|
+
renderer.warn(warning);
|
|
609
|
+
const exitCode = process.exitCode;
|
|
610
|
+
try {
|
|
611
|
+
renderAnswer(command, { renderer, format: options.format, streams }, { ...projected, meta });
|
|
612
|
+
} finally {
|
|
613
|
+
process.exitCode = exitCode;
|
|
614
|
+
}
|
|
615
|
+
const text2 = chunks.join("");
|
|
616
|
+
const label = options.format === "pretty" && UTC_TIME.test(text2) ? "times in UTC\n" : "";
|
|
617
|
+
return { text: text2 + label, exitCode: exitCodeOfAnswer(meta, metaOf(command).partial === true) };
|
|
618
|
+
}, "renderBody");
|
|
619
|
+
var wholeList = /* @__PURE__ */ __name((command, items) => listOf(command, { items, limit: Math.max(1, items.length), has_more: false }), "wholeList");
|
|
620
|
+
|
|
621
|
+
// dist/answers.js
|
|
622
|
+
var answerSchema = sharedAnswerSchema();
|
|
371
623
|
var readMetadata = /* @__PURE__ */ __name((now = Date.now, runId = randomUUID()) => {
|
|
372
624
|
const started = now();
|
|
373
|
-
return () =>
|
|
625
|
+
return () => metaNow2({ run_id: runId, duration_ms: Math.max(0, Math.round(now() - started)) });
|
|
374
626
|
}, "readMetadata");
|
|
375
627
|
|
|
376
628
|
// dist/execution.js
|
|
377
|
-
var duration = /* @__PURE__ */ __name((
|
|
378
|
-
const value = parseDuration(
|
|
629
|
+
var duration = /* @__PURE__ */ __name((text2, source = "duration") => {
|
|
630
|
+
const value = parseDuration(text2, source);
|
|
379
631
|
if (!Number.isSafeInteger(value) || value > 2147483647)
|
|
380
|
-
throw new
|
|
632
|
+
throw new CliError7("validation_error", "duration exceeds the supported timer range");
|
|
381
633
|
return value;
|
|
382
634
|
}, "duration");
|
|
383
|
-
var bytes = /* @__PURE__ */ __name((
|
|
384
|
-
if (!/^\d+$/.test(
|
|
385
|
-
throw new
|
|
386
|
-
return Number(
|
|
635
|
+
var bytes = /* @__PURE__ */ __name((text2) => {
|
|
636
|
+
if (!/^\d+$/.test(text2) || !Number.isSafeInteger(Number(text2)))
|
|
637
|
+
throw new CliError7("validation_error", "expected a nonnegative whole byte count");
|
|
638
|
+
return Number(text2);
|
|
387
639
|
}, "bytes");
|
|
388
640
|
var longRunning = /* @__PURE__ */ new WeakSet();
|
|
389
641
|
var runsLong = /* @__PURE__ */ __name((command) => {
|
|
@@ -391,7 +643,7 @@ var runsLong = /* @__PURE__ */ __name((command) => {
|
|
|
391
643
|
return command;
|
|
392
644
|
}, "runsLong");
|
|
393
645
|
var commandDeadline = /* @__PURE__ */ __name((action) => {
|
|
394
|
-
const { lifetime } =
|
|
646
|
+
const { lifetime } = metaOf2(action);
|
|
395
647
|
if (lifetime === "persistent")
|
|
396
648
|
return void 0;
|
|
397
649
|
if (lifetime === "interactive")
|
|
@@ -409,54 +661,58 @@ var sharedExecution = /* @__PURE__ */ __name((action, environment, now, runId) =
|
|
|
409
661
|
}, "sharedExecution");
|
|
410
662
|
|
|
411
663
|
// dist/meeting-semantic-commands.js
|
|
664
|
+
import { CliError as CliError8 } from "@wirecat/cli-base";
|
|
665
|
+
import { annotate as annotate2 } from "@wirecat/cli-base/commands";
|
|
666
|
+
import { FETCH, itemOf as itemOf2 } from "@wirecat/cli-core";
|
|
412
667
|
var bounded = /* @__PURE__ */ __name((value, maximum) => value === void 0 || Number.isSafeInteger(value) && value > 0 && value <= maximum, "bounded");
|
|
413
668
|
var validateMeetingModel = /* @__PURE__ */ __name((options) => {
|
|
414
669
|
if (typeof options.model !== "string" || !options.model.trim() || options.model.length > 1e3)
|
|
415
|
-
throw new
|
|
670
|
+
throw new CliError8("validation_error", "select an explicit embedding model");
|
|
416
671
|
if (options.baseUrl === void 0) {
|
|
417
672
|
if (options.dims !== void 0)
|
|
418
|
-
throw new
|
|
673
|
+
throw new CliError8("validation_error", "dimensions require an explicit remote base URL");
|
|
419
674
|
return;
|
|
420
675
|
}
|
|
421
676
|
let url;
|
|
422
677
|
try {
|
|
423
678
|
url = new URL(options.baseUrl);
|
|
424
679
|
} catch {
|
|
425
|
-
throw new
|
|
680
|
+
throw new CliError8("validation_error", "embedding base URL must be an HTTP or HTTPS URL");
|
|
426
681
|
}
|
|
427
682
|
if (!["http:", "https:"].includes(url.protocol) || url.username || url.password || url.search || url.hash || !/^[\w./:-]{1,200}$/.test(options.model) || options.dims === void 0 || !bounded(options.dims, 8192))
|
|
428
|
-
throw new
|
|
683
|
+
throw new CliError8("validation_error", "remote embeddings require an HTTP base URL without credentials and explicit dimensions");
|
|
429
684
|
}, "validateMeetingModel");
|
|
430
685
|
var validateMeetingSemantic = /* @__PURE__ */ __name((query, options) => {
|
|
431
686
|
validateMeetingModel(options);
|
|
432
687
|
if (typeof query !== "string" || !query.trim() || Buffer.byteLength(query, "utf8") > 65536 || !bounded(options.limit, 1e3) || !bounded(options.maxChunks, 1e5) || !bounded(options.maxRows, 1e5) || !bounded(options.maxTextBytes, 64 * 1024 * 1024))
|
|
433
|
-
throw new
|
|
688
|
+
throw new CliError8("validation_error", "meeting semantic search requires a nonempty bounded query and positive limits");
|
|
434
689
|
}, "validateMeetingSemantic");
|
|
435
690
|
var validateMeetingEmbeddings = /* @__PURE__ */ __name((options) => {
|
|
436
691
|
validateMeetingModel(options);
|
|
437
692
|
if (!bounded(options.limit, 1e3) || !bounded(options.afterTranscriptId, Number.MAX_SAFE_INTEGER) || !bounded(options.maxRows, 1e5) || !bounded(options.maxTextBytes, 64 * 1024 * 1024) || options.afterHash !== void 0 && !/^[a-f0-9]{64}$/.test(options.afterHash))
|
|
438
|
-
throw new
|
|
693
|
+
throw new CliError8("validation_error", "meeting embedding generation requires valid bounded limits and cursors");
|
|
439
694
|
}, "validateMeetingEmbeddings");
|
|
440
695
|
var addMeetingEmbeddingCommand = /* @__PURE__ */ __name((program, deps) => {
|
|
441
696
|
const meetings = program.commands.find((command) => command.name() === "meetings");
|
|
442
697
|
if (!meetings)
|
|
443
|
-
throw new
|
|
698
|
+
throw new CliError8("configuration_error", "meeting command group is unavailable");
|
|
444
699
|
const model = /* @__PURE__ */ __name((command) => command.requiredOption("--model <model>", "embedding model: an installed local one, or one served at --base-url").option("--base-url <url>", "remote embedding service; OpenAI reads OPENAI_API_KEY").option("--dims <n>", "vector size the remote service returns, in dimensions", bytes), "model");
|
|
445
700
|
const budget = /* @__PURE__ */ __name((command) => command.option("--limit <n>", "how many results or items in one batch, 1 through 1000", bytes).option("--max-rows <n>", "most transcript lines to read, 1 through 100000", bytes).option("--max-text-bytes <bytes>", "most transcript text to read, in bytes (default 4 MiB)", bytes), "budget");
|
|
446
|
-
|
|
701
|
+
annotate2(budget(model(meetings.command("embeddings").description("preview building meeting vectors; --yes builds one batch"))).option("--after-transcript-id <id>", "continue splitting transcripts after this one", bytes).option("--after-hash <hash>", "continue embedding after this passage").option("--yes", "split transcripts and build their vectors; otherwise only preview").action(async (options) => {
|
|
447
702
|
validateMeetingEmbeddings(options);
|
|
448
703
|
if (options.baseUrl !== void 0 && deps.offline())
|
|
449
|
-
throw new
|
|
704
|
+
throw new CliError8("configuration_error", "remote embeddings require network access; remove --offline");
|
|
450
705
|
const api = await deps.capabilities();
|
|
451
706
|
const result = await api.generate({ ...options, signal: deps.signal() });
|
|
452
707
|
if (options.yes)
|
|
453
|
-
await deps.receipt(
|
|
708
|
+
await deps.receipt(itemOf2(result));
|
|
454
709
|
else
|
|
455
|
-
deps.output(
|
|
710
|
+
deps.output(itemOf2(result));
|
|
456
711
|
}), { origin: "handwritten", effects: FETCH, examples: ["zm personal meetings embeddings --model e5-small --json"] });
|
|
457
712
|
}, "addMeetingEmbeddingCommand");
|
|
458
713
|
|
|
459
714
|
// dist/meeting-search-commands.js
|
|
715
|
+
import { validateMeetingHitSearch } from "@wirecat/cli-core";
|
|
460
716
|
var FLAG = {
|
|
461
717
|
meetingId: "--meeting-id",
|
|
462
718
|
identityId: "--identity-id",
|
|
@@ -480,7 +736,7 @@ var FLAG = {
|
|
|
480
736
|
var refuse = /* @__PURE__ */ __name((options, keys, mode) => {
|
|
481
737
|
const given = keys.filter((key) => options[key] !== void 0).map((key) => FLAG[key]);
|
|
482
738
|
if (given.length)
|
|
483
|
-
throw new
|
|
739
|
+
throw new CliError9("validation_error", `${given.join(", ")} do not apply ${mode}`);
|
|
484
740
|
}, "refuse");
|
|
485
741
|
var recordingHit = /* @__PURE__ */ __name((directory) => (match) => {
|
|
486
742
|
const meetingStart = Date.parse(match.meeting.startedAt ?? "");
|
|
@@ -498,7 +754,7 @@ var recordingHit = /* @__PURE__ */ __name((directory) => (match) => {
|
|
|
498
754
|
offset_ms: match.startMs + (Number.isFinite(lead) && lead > 0 ? lead : 0)
|
|
499
755
|
};
|
|
500
756
|
}, "recordingHit");
|
|
501
|
-
var combinedList = /* @__PURE__ */ __name((found, limit, args) =>
|
|
757
|
+
var combinedList = /* @__PURE__ */ __name((found, limit, args) => listOf2("search meetings", {
|
|
502
758
|
items: found.items.map((hit) => ({
|
|
503
759
|
ref: hit.ref,
|
|
504
760
|
meeting: hit.ref.split("/").slice(0, 2).join("/"),
|
|
@@ -556,7 +812,7 @@ var addMeetingSearchCommands = /* @__PURE__ */ __name((program, deps) => {
|
|
|
556
812
|
};
|
|
557
813
|
validateMeetingSemantic(query, meaning);
|
|
558
814
|
if (meaning.baseUrl !== void 0 && deps.offline())
|
|
559
|
-
throw new
|
|
815
|
+
throw new CliError9("configuration_error", "remote embeddings require network access; remove --offline");
|
|
560
816
|
return combinedList(await (await deps.meaning()).search(query, meaning), meaning.limit, meetingSearchArguments(query, options));
|
|
561
817
|
}
|
|
562
818
|
refuse(options, ["baseUrl", "dims", "maxChunks", "maxRows", "maxTextBytes"], "without --model");
|
|
@@ -566,16 +822,16 @@ var addMeetingSearchCommands = /* @__PURE__ */ __name((program, deps) => {
|
|
|
566
822
|
deps.output(await execute(query, options));
|
|
567
823
|
});
|
|
568
824
|
overrideSharedContract(command, "Zoom meeting search may build missing embeddings, so its effects and examples include that explicit mode.", (one) => {
|
|
569
|
-
|
|
825
|
+
annotate3(one, {
|
|
570
826
|
origin: "handwritten",
|
|
571
|
-
effects:
|
|
827
|
+
effects: FETCH2,
|
|
572
828
|
examples: [
|
|
573
829
|
'zm personal search meetings "example plan" --since-time 2026-09-01 --json',
|
|
574
830
|
'zm personal search meetings "example plan" --model e5-small --json'
|
|
575
831
|
]
|
|
576
832
|
});
|
|
577
833
|
});
|
|
578
|
-
const search = program.commands.find((child) => child.name() === "search") ??
|
|
834
|
+
const search = program.commands.find((child) => child.name() === "search") ?? annotate3(program.command("search"), { effects: NO_EFFECTS });
|
|
579
835
|
const recordings = search.command("recordings").description("find words in the transcripts of a downloaded archive folder, before any import").argument("<directory>", "archive folder").argument("<query...>", "words to find as one phrase, ignoring case").option("--limit <n>", "how many hits, 1 through 1000 (default 100)", bytes).action(async (directory, words, options) => {
|
|
580
836
|
const found = await deps.archive(directory, words.join(" "), { limit: options.limit, signal: deps.signal() });
|
|
581
837
|
deps.output({
|
|
@@ -583,7 +839,7 @@ var addMeetingSearchCommands = /* @__PURE__ */ __name((program, deps) => {
|
|
|
583
839
|
page: { mode: "page", limit: found.limit, has_more: found.hasMore }
|
|
584
840
|
});
|
|
585
841
|
});
|
|
586
|
-
|
|
842
|
+
annotate3(recordings, {
|
|
587
843
|
origin: "handwritten",
|
|
588
844
|
effects: LOCAL_READ,
|
|
589
845
|
output: { entity: "hit" },
|
|
@@ -593,10 +849,11 @@ var addMeetingSearchCommands = /* @__PURE__ */ __name((program, deps) => {
|
|
|
593
849
|
}, "addMeetingSearchCommands");
|
|
594
850
|
|
|
595
851
|
// dist/meeting-semantic.js
|
|
596
|
-
|
|
852
|
+
import { CliError as CliError10 } from "@wirecat/cli-base";
|
|
853
|
+
var loadProducer2 = /* @__PURE__ */ __name(async () => import("@wirecat/cli-core"), "loadProducer");
|
|
597
854
|
var createMeetingSemanticCapabilities = /* @__PURE__ */ __name((store, accountId, options = {}) => {
|
|
598
855
|
if (!Number.isSafeInteger(accountId) || accountId < 1)
|
|
599
|
-
throw new
|
|
856
|
+
throw new CliError10("validation_error", "meeting vectors require a selected positive account ID");
|
|
600
857
|
const load = options.load ?? loadProducer2;
|
|
601
858
|
const choice = /* @__PURE__ */ __name((api, input) => input.baseUrl === void 0 ? input.model : { remote: api.createMeetingRemoteModel({ model: input.model, baseUrl: input.baseUrl, dims: input.dims }) }, "choice");
|
|
602
859
|
const budget = /* @__PURE__ */ __name((input) => ({
|
|
@@ -687,16 +944,17 @@ var createMeetingSemanticCapabilities = /* @__PURE__ */ __name((store, accountId
|
|
|
687
944
|
}, "createMeetingSemanticCapabilities");
|
|
688
945
|
|
|
689
946
|
// dist/unified-search.js
|
|
947
|
+
import { CliError as CliError11 } from "@wirecat/cli-base";
|
|
690
948
|
var resources = ["messages", "mail", "notes", "meetings"];
|
|
691
949
|
var validateUnifiedSearch = /* @__PURE__ */ __name((input, meetingsOnly = false) => {
|
|
692
950
|
const limit = input.limit ?? 100;
|
|
693
|
-
const
|
|
694
|
-
if (typeof input.text !== "string" || !input.text.trim() || !Number.isSafeInteger(limit) || limit < 1 || limit > 1e3 || input.offset !== void 0 && (!Number.isSafeInteger(input.offset) || input.offset < 0) || !Array.isArray(
|
|
695
|
-
throw new
|
|
951
|
+
const only2 = input.only ?? ["meetings"];
|
|
952
|
+
if (typeof input.text !== "string" || !input.text.trim() || !Number.isSafeInteger(limit) || limit < 1 || limit > 1e3 || input.offset !== void 0 && (!Number.isSafeInteger(input.offset) || input.offset < 0) || !Array.isArray(only2) || !only2.length || only2.some((resource) => !resources.includes(resource)) || meetingsOnly && (only2.length !== 1 || only2[0] !== "meetings") || input.exact !== void 0 && typeof input.exact !== "boolean")
|
|
953
|
+
throw new CliError11("validation_error", "expected nonempty search text, supported resources and a limit from 1 through 1000");
|
|
696
954
|
return {
|
|
697
955
|
text: input.text,
|
|
698
956
|
limit,
|
|
699
|
-
only: [...new Set(
|
|
957
|
+
only: [...new Set(only2)],
|
|
700
958
|
...input.offset === void 0 ? {} : { offset: input.offset },
|
|
701
959
|
exact: input.exact,
|
|
702
960
|
signal: input.signal
|
|
@@ -712,7 +970,7 @@ var runUnifiedSearch = /* @__PURE__ */ __name(async (search, input, meetingsOnly
|
|
|
712
970
|
|
|
713
971
|
// dist/store-connection.js
|
|
714
972
|
var storeUnavailable = /* @__PURE__ */ __name(async () => {
|
|
715
|
-
throw new
|
|
973
|
+
throw new CliError12("configuration_error", "the shared SQLite meeting store is not available yet");
|
|
716
974
|
}, "storeUnavailable");
|
|
717
975
|
var unavailableStore = {
|
|
718
976
|
saveMeeting: storeUnavailable,
|
|
@@ -733,16 +991,16 @@ var unavailableStore = {
|
|
|
733
991
|
};
|
|
734
992
|
var connectSelectedProfile = /* @__PURE__ */ __name((connect, profile, intent, context) => {
|
|
735
993
|
if (!profile)
|
|
736
|
-
throw new
|
|
994
|
+
throw new CliError12("validation_error", "name a profile: `zm <profile> \u2026`");
|
|
737
995
|
return connect({ profile, externalId: profileAccountKey(profile), intent, ...context ? { context } : {} });
|
|
738
996
|
}, "connectSelectedProfile");
|
|
739
997
|
var createStoreConnector = /* @__PURE__ */ __name((options = {}) => async (request) => {
|
|
740
998
|
const { profile, externalId, intent, context } = request ?? {};
|
|
741
999
|
if (typeof profile !== "string" || !profilePattern.test(profile) || externalId !== profileAccountKey(profile) || intent !== "read" && intent !== "ingestion" && intent !== "preparation" || context !== void 0 && (intent !== "preparation" || typeof context.resolve !== "function" || typeof context.assert !== "function"))
|
|
742
|
-
throw new
|
|
1000
|
+
throw new CliError12("validation_error", "expected a selected Zoom profile and read or ingestion intent");
|
|
743
1001
|
let store;
|
|
744
1002
|
try {
|
|
745
|
-
const open2 = options.openStore ?? (await import("
|
|
1003
|
+
const open2 = options.openStore ?? (await import("@wirecat/cli-core")).openStore;
|
|
746
1004
|
store = await open2({
|
|
747
1005
|
path: options.path,
|
|
748
1006
|
env: options.env,
|
|
@@ -754,16 +1012,16 @@ var createStoreConnector = /* @__PURE__ */ __name((options = {}) => async (reque
|
|
|
754
1012
|
const key = { provider: "zoom", account: externalId };
|
|
755
1013
|
const accountId = intent === "ingestion" ? await connected.accounts.saveAccount(key, { name: profile }) : (await connected.accounts.storedAccount(key)).id;
|
|
756
1014
|
if (!Number.isSafeInteger(accountId) || accountId < 1)
|
|
757
|
-
throw new
|
|
1015
|
+
throw new CliError12("configuration_error", "the selected meeting account is unavailable");
|
|
758
1016
|
const ownAccount = /* @__PURE__ */ __name((input, what) => {
|
|
759
1017
|
if (input.accountId !== accountId)
|
|
760
|
-
throw new
|
|
1018
|
+
throw new CliError12("validation_error", `${what} account is selected by the connection`);
|
|
761
1019
|
return input;
|
|
762
1020
|
}, "ownAccount");
|
|
763
1021
|
let cachedBatchReader;
|
|
764
1022
|
const batchReader = /* @__PURE__ */ __name(async () => {
|
|
765
1023
|
if (!cachedBatchReader) {
|
|
766
|
-
const { createMeetingBatchReader } = await import("
|
|
1024
|
+
const { createMeetingBatchReader } = await import("@wirecat/cli-core");
|
|
767
1025
|
cachedBatchReader = createMeetingBatchReader(connected, accountId);
|
|
768
1026
|
}
|
|
769
1027
|
return cachedBatchReader;
|
|
@@ -772,10 +1030,10 @@ var createStoreConnector = /* @__PURE__ */ __name((options = {}) => async (reque
|
|
|
772
1030
|
meetingPreparation: {
|
|
773
1031
|
scope: key,
|
|
774
1032
|
create: /* @__PURE__ */ __name(async (upcoming) => {
|
|
775
|
-
const { createMeetingPreparationService } = await import("
|
|
1033
|
+
const { createMeetingPreparationService } = await import("@wirecat/cli-core");
|
|
776
1034
|
const reader = connected.contextEvidence;
|
|
777
1035
|
if (context && !reader)
|
|
778
|
-
throw new
|
|
1036
|
+
throw new CliError12("configuration_error", "the installed store does not support bounded communications");
|
|
779
1037
|
const communications = context && reader ? {
|
|
780
1038
|
reader,
|
|
781
1039
|
selections: await context.resolve({
|
|
@@ -797,7 +1055,7 @@ var createStoreConnector = /* @__PURE__ */ __name((options = {}) => async (reque
|
|
|
797
1055
|
close: /* @__PURE__ */ __name(() => connected.close(), "close"),
|
|
798
1056
|
appendTranscriptsWithReceipt: /* @__PURE__ */ __name((input) => meetings.appendTranscriptsWithReceipt(ownAccount(input, "append")), "appendTranscriptsWithReceipt"),
|
|
799
1057
|
meetingProjectCandidates: /* @__PURE__ */ __name(async (reference, request2) => {
|
|
800
|
-
const { createStoredMeetingProjectCandidateReader } = await import("
|
|
1058
|
+
const { createStoredMeetingProjectCandidateReader } = await import("@wirecat/cli-core");
|
|
801
1059
|
const read = createStoredMeetingProjectCandidateReader(key, accountId, {
|
|
802
1060
|
meetings,
|
|
803
1061
|
vocabulary: connected.knowledge
|
|
@@ -805,7 +1063,7 @@ var createStoreConnector = /* @__PURE__ */ __name((options = {}) => async (reque
|
|
|
805
1063
|
return read(reference, request2);
|
|
806
1064
|
}, "meetingProjectCandidates"),
|
|
807
1065
|
meetingProjectEvidence: /* @__PURE__ */ __name(async (project, request2) => {
|
|
808
|
-
const { readMeetingProjectDiscovery } = await import("
|
|
1066
|
+
const { readMeetingProjectDiscovery } = await import("@wirecat/cli-core");
|
|
809
1067
|
return readMeetingProjectDiscovery({
|
|
810
1068
|
vocabulary: connected.knowledge,
|
|
811
1069
|
search: { searchHits: /* @__PURE__ */ __name((query, hits) => meetings.searchHits(query, hits), "searchHits") }
|
|
@@ -832,18 +1090,18 @@ var createStoreConnector = /* @__PURE__ */ __name((options = {}) => async (reque
|
|
|
832
1090
|
},
|
|
833
1091
|
meetingSearch: /* @__PURE__ */ __name(async (query, request2) => {
|
|
834
1092
|
validateMeetingHitSearch(query, request2);
|
|
835
|
-
const { searchMeetingHits } = await import("
|
|
1093
|
+
const { searchMeetingHits } = await import("@wirecat/cli-core");
|
|
836
1094
|
return searchMeetingHits({ meetings, knowledge: connected.knowledge }, query, { ...request2, accountId });
|
|
837
1095
|
}, "meetingSearch"),
|
|
838
1096
|
meetingIntegration: {
|
|
839
1097
|
change: /* @__PURE__ */ __name(async (reference, input, mutation = {}) => {
|
|
840
1098
|
const source = integrationReference(reference);
|
|
841
1099
|
if (source.parsed.accountId !== accountId)
|
|
842
|
-
throw new
|
|
1100
|
+
throw new CliError12("not_found", "meeting is unavailable for the selected account");
|
|
843
1101
|
const change = validateMeetingContextChange(input);
|
|
844
1102
|
if (change.action !== "event.link" && change.action !== "person.link")
|
|
845
|
-
throw new
|
|
846
|
-
const api = await import("
|
|
1103
|
+
throw new CliError12("validation_error", "meeting linking supports only explicit event or person changes");
|
|
1104
|
+
const api = await import("@wirecat/cli-core");
|
|
847
1105
|
await api.resolveMeetingReference(meetings, accountId, source.reference, { signal: mutation.signal });
|
|
848
1106
|
const service = await api.createMeetingContextService({
|
|
849
1107
|
accounts: connected.accounts,
|
|
@@ -854,7 +1112,7 @@ var createStoreConnector = /* @__PURE__ */ __name((options = {}) => async (reque
|
|
|
854
1112
|
facts: connected.facts
|
|
855
1113
|
}, key, mutation.author === void 0 ? {} : { author: mutation.author });
|
|
856
1114
|
if (service.accountId !== accountId || service.scope.provider !== key.provider || service.scope.account !== key.account)
|
|
857
|
-
throw new
|
|
1115
|
+
throw new CliError12("invalid_response", "meeting context service returned an inconsistent account");
|
|
858
1116
|
return service.change(source.parsed.meetingId, change, {
|
|
859
1117
|
apply: mutation.apply,
|
|
860
1118
|
dryRun: mutation.dryRun,
|
|
@@ -864,43 +1122,48 @@ var createStoreConnector = /* @__PURE__ */ __name((options = {}) => async (reque
|
|
|
864
1122
|
},
|
|
865
1123
|
unifiedSearch: /* @__PURE__ */ __name(async (input) => {
|
|
866
1124
|
const request2 = validateUnifiedSearch(input);
|
|
867
|
-
const { searchAll } = await import("
|
|
1125
|
+
const { searchAll } = await import("@wirecat/cli-core");
|
|
868
1126
|
return searchAll(connected, key, { ...request2, scope: { meetings: [key] }, env: options.env });
|
|
869
1127
|
}, "unifiedSearch"),
|
|
870
1128
|
meetingContext: createMeetingContextCapabilities(connected, meetings, accountId),
|
|
871
1129
|
meetingSemantic: createMeetingSemanticCapabilities(connected, accountId, { env: options.env }),
|
|
872
1130
|
meetingSearches: await (async () => {
|
|
873
|
-
const { meetingSearchesService } = await import("
|
|
1131
|
+
const { meetingSearchesService } = await import("@wirecat/cli-core");
|
|
874
1132
|
return meetingSearchesService(async () => connected.searches);
|
|
875
1133
|
})(),
|
|
876
1134
|
meetingStats: /* @__PURE__ */ __name(async (request2) => {
|
|
877
|
-
const { readMeetingStats } = await import("
|
|
1135
|
+
const { readMeetingStats } = await import("@wirecat/cli-core");
|
|
878
1136
|
return readMeetingStats(connected, { ...request2, accountId });
|
|
879
1137
|
}, "meetingStats"),
|
|
880
1138
|
meetingCounts: /* @__PURE__ */ __name(async (request2) => {
|
|
881
|
-
const { readMeetingCounts } = await import("
|
|
1139
|
+
const { readMeetingCounts } = await import("@wirecat/cli-core");
|
|
882
1140
|
return readMeetingCounts(connected, { ...request2, accountId });
|
|
883
1141
|
}, "meetingCounts"),
|
|
884
1142
|
meetingReview: /* @__PURE__ */ __name(async (request2) => {
|
|
885
|
-
const { readMeetingReview } = await import("
|
|
1143
|
+
const { readMeetingReview } = await import("@wirecat/cli-core");
|
|
886
1144
|
return readMeetingReview(connected, { ...request2, accountId });
|
|
887
1145
|
}, "meetingReview"),
|
|
888
1146
|
meetingLinks: /* @__PURE__ */ __name(async (request2) => {
|
|
889
|
-
const { readMeetingLinks } = await import("
|
|
1147
|
+
const { readMeetingLinks } = await import("@wirecat/cli-core");
|
|
890
1148
|
return readMeetingLinks(connected, { ...request2, accountId });
|
|
891
1149
|
}, "meetingLinks")
|
|
892
1150
|
};
|
|
893
1151
|
} catch (error) {
|
|
894
1152
|
await store?.close().catch(() => void 0);
|
|
895
1153
|
if (isCliError(error) && error.code === "not_found")
|
|
896
|
-
throw new
|
|
1154
|
+
throw new CliError12("configuration_error", "no stored meetings for the selected profile; import transcripts or pull first");
|
|
897
1155
|
if (isCliError(error))
|
|
898
1156
|
throw error;
|
|
899
|
-
throw new
|
|
1157
|
+
throw new CliError12("configuration_error", "could not connect to the shared meeting store; check MESSAGING_STORE and the installed store version");
|
|
900
1158
|
}
|
|
901
1159
|
}, "createStoreConnector");
|
|
902
1160
|
|
|
903
1161
|
export {
|
|
1162
|
+
ZOOM_ANSWER_ENTITIES,
|
|
1163
|
+
declareZoomAnswers,
|
|
1164
|
+
bodyOf,
|
|
1165
|
+
renderBody,
|
|
1166
|
+
wholeList,
|
|
904
1167
|
duration,
|
|
905
1168
|
bytes,
|
|
906
1169
|
runsLong,
|