@wirecat/zoom-cli 0.83.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 +10 -10
- package/contracts/wirecat.json +34 -1
- 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 +1 -1
- 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 +3 -3
- 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-OGTN2KVG.js → chunk-AF2Z6VOG.js} +4 -14
- package/dist/bundle/{chunk-26TW5RZ6.js → chunk-DAYBU7WR.js} +61 -94
- package/dist/bundle/{chunk-2DK5BBFF.js → chunk-JD63PEI3.js} +3 -8
- package/dist/bundle/{chunk-H6A4NWYJ.js → chunk-L5ZYKXAY.js} +114 -128
- package/dist/bundle/{chunk-R6IA5UQB.js → chunk-W4TDCCT3.js} +8 -2
- package/dist/bundle/{chunk-XEOZTA3H.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-ROKVKSCT.js → folders-B2GKJOC2.js} +2 -7
- package/dist/bundle/{main-GCK3VYAA.js → main-YZPLPXB7.js} +19 -41
- package/dist/bundle/{output-file-RYIOIXMD.js → output-file-PKA7MJEP.js} +3 -11
- package/dist/bundle/{program-OYLVYA4Z.js → program-7JY6XJ6K.js} +642 -801
- 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-4F4YY4OI.js → zoom-app-EYJST6GF.js} +5 -13
- package/dist/chat-file.d.ts +1 -1
- package/dist/chat-file.d.ts.map +1 -1
- package/dist/commands.js +1 -1
- 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/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.js +1 -1
- package/dist/program-bindings.js.map +1 -1
- package/dist/program.d.ts +1 -2
- 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 +1 -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 +1 -1
- package/dist/setup-commands.d.ts.map +1 -1
- package/dist/setup-commands.js +1 -1
- 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 +1 -1
- package/dist/tokens.d.ts.map +1 -1
- package/dist/tokens.js +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/zoom-session.d.ts.map +1 -1
- package/dist/zoom-session.js +1 -1
- package/dist/zoom-session.js.map +1 -1
- 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/dist/bundle/agent-3HDWEZ5M.js +0 -47
- package/dist/bundle/all-profiles-RY2OMSDL.js +0 -321
- package/dist/bundle/answer-policy-IFVXPPGW.js +0 -131
- package/dist/bundle/anthropic-36VPSF7B.js +0 -91
- package/dist/bundle/app-server-ZVJVUGB7.js +0 -267
- package/dist/bundle/bun-F4M4KCNA.js +0 -169
- package/dist/bundle/bun-sqlite-IOPYIUA7.js +0 -76
- package/dist/bundle/chunk-2IBKKVVZ.js +0 -335
- package/dist/bundle/chunk-2S54TM4N.js +0 -230
- package/dist/bundle/chunk-3AQHKXVR.js +0 -161
- package/dist/bundle/chunk-3CW2C7ZA.js +0 -217
- package/dist/bundle/chunk-3KUEZK5Z.js +0 -73
- package/dist/bundle/chunk-3PXUQFHX.js +0 -2333
- package/dist/bundle/chunk-3QN5KDFZ.js +0 -3012
- package/dist/bundle/chunk-575JMTDR.js +0 -562
- package/dist/bundle/chunk-5B2LV4MS.js +0 -26
- package/dist/bundle/chunk-5WL5RHOO.js +0 -167
- package/dist/bundle/chunk-6C7ESL5N.js +0 -295
- package/dist/bundle/chunk-6E4KLYNP.js +0 -229
- package/dist/bundle/chunk-7JDXR75Q.js +0 -465
- package/dist/bundle/chunk-AK3H2C65.js +0 -1349
- package/dist/bundle/chunk-AQ5RIOUE.js +0 -633
- package/dist/bundle/chunk-AQLUAQXJ.js +0 -1259
- package/dist/bundle/chunk-ASTLGFTR.js +0 -12270
- package/dist/bundle/chunk-ATHBB7OU.js +0 -106
- package/dist/bundle/chunk-B2NM65RD.js +0 -80
- package/dist/bundle/chunk-B4KHDXJE.js +0 -64
- package/dist/bundle/chunk-BAFC7WNI.js +0 -276
- package/dist/bundle/chunk-BBGJQMRI.js +0 -34
- package/dist/bundle/chunk-BTLZYRIW.js +0 -1007
- package/dist/bundle/chunk-BZDS2X6Y.js +0 -5150
- package/dist/bundle/chunk-C7JPYWYQ.js +0 -77
- package/dist/bundle/chunk-CDQUW25G.js +0 -3752
- package/dist/bundle/chunk-CJWGJBHW.js +0 -1044
- package/dist/bundle/chunk-D72URWJE.js +0 -532
- package/dist/bundle/chunk-D7RCUODT.js +0 -185
- package/dist/bundle/chunk-DFDN6AUB.js +0 -21
- package/dist/bundle/chunk-DNCLQPOM.js +0 -7
- package/dist/bundle/chunk-DQJECJUE.js +0 -2257
- package/dist/bundle/chunk-E4JQ3MCW.js +0 -2338
- package/dist/bundle/chunk-E4ODYLEK.js +0 -209
- package/dist/bundle/chunk-EE45N67Q.js +0 -86
- package/dist/bundle/chunk-EEEU4MKK.js +0 -210
- package/dist/bundle/chunk-ESN3W2MZ.js +0 -2624
- package/dist/bundle/chunk-ETIZGA4P.js +0 -340
- package/dist/bundle/chunk-F44QK6CK.js +0 -52
- package/dist/bundle/chunk-FH2UFNH6.js +0 -54
- package/dist/bundle/chunk-FTH6WGYO.js +0 -24
- package/dist/bundle/chunk-FWACRG4X.js +0 -160
- package/dist/bundle/chunk-FXBHOCJK.js +0 -24600
- package/dist/bundle/chunk-G5SZL7G2.js +0 -150
- package/dist/bundle/chunk-G6CHEFAG.js +0 -108
- package/dist/bundle/chunk-GHJD7PE6.js +0 -1068
- package/dist/bundle/chunk-GZ7WBU5Y.js +0 -18
- package/dist/bundle/chunk-HKLRI2LB.js +0 -555
- package/dist/bundle/chunk-HMD4FZYY.js +0 -133
- package/dist/bundle/chunk-HO4JGD4Q.js +0 -16
- package/dist/bundle/chunk-HTQTIKWP.js +0 -928
- package/dist/bundle/chunk-HUAHLO6N.js +0 -29
- package/dist/bundle/chunk-IANKXHSE.js +0 -46
- package/dist/bundle/chunk-IQZXFWFI.js +0 -170
- package/dist/bundle/chunk-ISQ23VKV.js +0 -123
- package/dist/bundle/chunk-JEH33ZCD.js +0 -58
- package/dist/bundle/chunk-JUNQYWQ2.js +0 -228
- package/dist/bundle/chunk-JUXMVQWJ.js +0 -799
- package/dist/bundle/chunk-KHQDWYCG.js +0 -82
- package/dist/bundle/chunk-KYRYD4CR.js +0 -38
- package/dist/bundle/chunk-LBGT6W4R.js +0 -377
- package/dist/bundle/chunk-LN7HRYTH.js +0 -80
- package/dist/bundle/chunk-MEB7HBTM.js +0 -95
- package/dist/bundle/chunk-MEEFWYX3.js +0 -388
- package/dist/bundle/chunk-MNOAMJ6H.js +0 -94
- package/dist/bundle/chunk-MYHPXJDG.js +0 -142
- package/dist/bundle/chunk-NGI37RFW.js +0 -692
- package/dist/bundle/chunk-NZMWD7Y3.js +0 -68149
- package/dist/bundle/chunk-O6IECJRM.js +0 -54
- package/dist/bundle/chunk-OBWL3BUV.js +0 -800
- package/dist/bundle/chunk-OEEWVKJX.js +0 -53
- package/dist/bundle/chunk-OQYZ3W4K.js +0 -374
- package/dist/bundle/chunk-P3ZCTYGW.js +0 -101
- package/dist/bundle/chunk-PL5P7UKW.js +0 -25216
- package/dist/bundle/chunk-PVEBAHFU.js +0 -100
- package/dist/bundle/chunk-R2B6PUVI.js +0 -206
- package/dist/bundle/chunk-RLOH7RDN.js +0 -362
- package/dist/bundle/chunk-RQ4AXSCJ.js +0 -616
- package/dist/bundle/chunk-RYGTCRFZ.js +0 -140
- package/dist/bundle/chunk-S4PXWIE4.js +0 -408
- package/dist/bundle/chunk-SDZZYZLL.js +0 -58
- package/dist/bundle/chunk-SHQAYUK6.js +0 -1199
- package/dist/bundle/chunk-T3W4V4A6.js +0 -63
- package/dist/bundle/chunk-TCT5D2X2.js +0 -6848
- package/dist/bundle/chunk-TDWPOSPR.js +0 -198
- package/dist/bundle/chunk-TER3N27H.js +0 -353
- package/dist/bundle/chunk-TMTNP7QN.js +0 -214
- package/dist/bundle/chunk-TO5UEWXR.js +0 -288
- 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-UBH7YF3C.js +0 -9354
- package/dist/bundle/chunk-UEAE3JUU.js +0 -46576
- package/dist/bundle/chunk-UHR363OD.js +0 -357
- package/dist/bundle/chunk-UM52A76S.js +0 -259
- package/dist/bundle/chunk-URP6BTHN.js +0 -624
- package/dist/bundle/chunk-UWQEAA6S.js +0 -13
- package/dist/bundle/chunk-VR7QZGRU.js +0 -185
- package/dist/bundle/chunk-VRH5PBSL.js +0 -755
- package/dist/bundle/chunk-VTLQTQKY.js +0 -1756
- package/dist/bundle/chunk-VTYNLTDW.js +0 -331
- package/dist/bundle/chunk-WY7XG6TE.js +0 -76
- package/dist/bundle/chunk-XH23ML2V.js +0 -195
- package/dist/bundle/chunk-XYF76A26.js +0 -27556
- package/dist/bundle/chunk-Y5E2WNWB.js +0 -35
- package/dist/bundle/chunk-ZDYJAEVB.js +0 -84
- package/dist/bundle/chunk-ZJ63HDBT.js +0 -71
- package/dist/bundle/chunk-ZT4ZPUIO.js +0 -218
- package/dist/bundle/chunk-ZVVMGPBJ.js +0 -50
- package/dist/bundle/cli-JK6PQSSN.js +0 -1270
- package/dist/bundle/command-contract-F3QNBKPX.js +0 -46
- package/dist/bundle/command-server-entry-DJLGN62J.js +0 -176
- package/dist/bundle/config-TYYMV3HV.js +0 -118
- package/dist/bundle/decode-ZZICNNFF.js +0 -31
- package/dist/bundle/dispatch-FKMIPCPQ.js +0 -412
- package/dist/bundle/dist-NQPF25XI.js +0 -322
- package/dist/bundle/dist-PAKDDIBT.js +0 -191
- package/dist/bundle/dist-XUFQCJXW.js +0 -7577
- package/dist/bundle/echarts-QMAA7HH5.js +0 -42501
- package/dist/bundle/embed-T64EUKUI.js +0 -38
- package/dist/bundle/embedder-ZEKISZXI.js +0 -111
- package/dist/bundle/failure-XTWBYI2A.js +0 -25
- package/dist/bundle/first-run-ZFNY4RRH.js +0 -29
- package/dist/bundle/first-screen-LPGCHRHZ.js +0 -47
- package/dist/bundle/instructions-4H7UREH2.js +0 -11
- package/dist/bundle/mcp-5HFPWC3W.js +0 -167
- package/dist/bundle/meeting-combined-7HDPOUPB.js +0 -28
- package/dist/bundle/meeting-model-MVUW7UPQ.js +0 -26
- package/dist/bundle/meeting-semantic-IF633WGX.js +0 -23
- package/dist/bundle/meetings-RY2AAPHV.js +0 -332
- package/dist/bundle/node-KM3CUABH.js +0 -2340
- package/dist/bundle/node-P3PUHKYH.js +0 -176
- package/dist/bundle/node-TLZSIHIJ.js +0 -21
- package/dist/bundle/node-sqlite-ASAZJNHE.js +0 -74
- package/dist/bundle/oauth-4U3OCK3W.js +0 -20
- package/dist/bundle/oauth-AJARLPSY.js +0 -46
- package/dist/bundle/open-SEJRY2ZI.js +0 -23
- package/dist/bundle/openai-FZDSC2AA.js +0 -28
- package/dist/bundle/process-AFIXYXWL.js +0 -91
- package/dist/bundle/prompt-BCRD64F4.js +0 -17
- package/dist/bundle/public-SVJILCNI.js +0 -206
- package/dist/bundle/recognize-25ITJWGX.js +0 -26
- package/dist/bundle/remote-5FBAJX7O.js +0 -32
- package/dist/bundle/rerank-2HGWWORY.js +0 -52
- package/dist/bundle/run-log-7HRF4Y47.js +0 -145
- package/dist/bundle/serve-RL35MSJD.js +0 -199
- package/dist/bundle/server-QUSBWACP.js +0 -229
- package/dist/bundle/server-SCK2SRDK.js +0 -96
- package/dist/bundle/services-BGRIQNDC.js +0 -609
- package/dist/bundle/speech-4W3ZMTFK.js +0 -89
- package/dist/bundle/sqlite-runtime-K3KLRZCV.js +0 -20
- package/dist/bundle/state-GYL4C74G.js +0 -36
- package/dist/bundle/store-27UQMNEO.js +0 -189
- package/dist/bundle/store-NLYH5SQX.js +0 -316
- package/dist/bundle/store-connection-CZILWRSR.js +0 -112
- package/dist/bundle/store-maintenance-command-Z3QLNSXJ.js +0 -84
- package/dist/bundle/streaming-73EKEGPF.js +0 -18
- package/dist/bundle/surface-CV3C4RV2.js +0 -82
- package/dist/bundle/tokens-PY3S22LY.js +0 -27
- /package/dist/bundle/{chunk-7ECP5ZQR.js → chunk-7O7XM37N.js} +0 -0
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
-
const require = __bundleRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
REDIRECT
|
|
5
|
-
} from "./chunk-OGTN2KVG.js";
|
|
6
|
-
import {
|
|
7
|
-
BASE_CONSTANTS,
|
|
8
|
-
baseConstantsSchema,
|
|
9
|
-
loadConstants
|
|
10
|
-
} from "./chunk-3QN5KDFZ.js";
|
|
11
|
-
import {
|
|
12
|
-
nonEmpty,
|
|
13
|
-
object,
|
|
14
|
-
optional,
|
|
15
|
-
pipe,
|
|
16
|
-
string,
|
|
17
|
-
transform
|
|
18
|
-
} from "./chunk-ESN3W2MZ.js";
|
|
19
|
-
import {
|
|
20
|
-
CliError
|
|
21
|
-
} from "./chunk-IANKXHSE.js";
|
|
22
|
-
import {
|
|
23
|
-
__name
|
|
24
|
-
} from "./chunk-ZVVMGPBJ.js";
|
|
25
|
-
|
|
26
|
-
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/constants/obscure.js
|
|
27
|
-
import { createDecipheriv } from "node:crypto";
|
|
28
|
-
var KEY = Buffer.from("d43012779aa2dded3e98092a3dbcf5d8980c564172f5ce0a5fd0574e5f740339", "hex");
|
|
29
|
-
var reveal = /* @__PURE__ */ __name((obscured) => {
|
|
30
|
-
const bytes = Buffer.from(obscured, "base64url");
|
|
31
|
-
const decipher = createDecipheriv("aes-256-ctr", KEY, bytes.subarray(0, 16));
|
|
32
|
-
return Buffer.concat([decipher.update(bytes.subarray(16)), decipher.final()]).toString("utf8");
|
|
33
|
-
}, "reveal");
|
|
34
|
-
|
|
35
|
-
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/constants/index.js
|
|
36
|
-
var CORE_CONSTANTS = new URL("../../constants.json", new URL("constants/index.js", import.meta.resolve("@wirecat/cli-core")).href);
|
|
37
|
-
var constantsSchema = object({
|
|
38
|
-
...baseConstantsSchema.entries,
|
|
39
|
-
google: object({
|
|
40
|
-
app: object({
|
|
41
|
-
client_id: pipe(string(), nonEmpty(), transform(reveal)),
|
|
42
|
-
client_secret: optional(pipe(string(), transform(reveal)))
|
|
43
|
-
})
|
|
44
|
-
}),
|
|
45
|
-
microsoft: object({ app: object({ client_id: pipe(string(), nonEmpty()) }) })
|
|
46
|
-
});
|
|
47
|
-
var loaded = /* @__PURE__ */ new Map();
|
|
48
|
-
var constants = /* @__PURE__ */ __name((toolLayer, schema2) => {
|
|
49
|
-
const key = toolLayer?.href ?? "";
|
|
50
|
-
if (!loaded.has(key)) {
|
|
51
|
-
const layers = toolLayer ? [BASE_CONSTANTS, CORE_CONSTANTS, toolLayer] : [BASE_CONSTANTS, CORE_CONSTANTS];
|
|
52
|
-
loaded.set(key, loadConstants(layers, schema2 ?? constantsSchema));
|
|
53
|
-
}
|
|
54
|
-
return loaded.get(key);
|
|
55
|
-
}, "constants");
|
|
56
|
-
var oauthApp = /* @__PURE__ */ __name((options) => {
|
|
57
|
-
const { env, prefix, provider } = options;
|
|
58
|
-
const name = `${prefix}_${provider.toUpperCase()}_CLIENT`;
|
|
59
|
-
const clientSecret = env[`${name}_SECRET`];
|
|
60
|
-
const own = [
|
|
61
|
-
[options.clientId, "flag"],
|
|
62
|
-
[env[`${name}_ID`], "env"],
|
|
63
|
-
[options.configClientId, "config"]
|
|
64
|
-
];
|
|
65
|
-
const [clientId, source] = own.find(([id]) => id) ?? [];
|
|
66
|
-
if (clientId && source)
|
|
67
|
-
return app({ clientId, ...clientSecret ? { clientSecret } : {} }, source);
|
|
68
|
-
if (clientSecret)
|
|
69
|
-
throw new CliError("configuration_error", `${name}_SECRET is set without a client id; set ${name}_ID too, or unset it to use WireCat's app`, { reason: "sign-in.secret-without-id" });
|
|
70
|
-
const wirecat = options.wirecat;
|
|
71
|
-
if (!wirecat?.client_id)
|
|
72
|
-
return void 0;
|
|
73
|
-
return app({ clientId: wirecat.client_id, ...wirecat.client_secret ? { clientSecret: wirecat.client_secret } : {} }, "constants");
|
|
74
|
-
}, "oauthApp");
|
|
75
|
-
var app = /* @__PURE__ */ __name((client, source) => ({ client: { ...client, source }, source }), "app");
|
|
76
|
-
var oauthClientReport = /* @__PURE__ */ __name((app2, reason) => app2?.source ? { client: app2.source === "constants" ? "wirecat" : "own", source: app2.source } : { client: null, source: null, ...reason ? { reason } : {} }, "oauthClientReport");
|
|
77
|
-
|
|
78
|
-
// dist/zoom-app.js
|
|
79
|
-
var schema = object({
|
|
80
|
-
...constantsSchema.entries,
|
|
81
|
-
zoom: object({ app: object({ client_id: string() }) })
|
|
82
|
-
});
|
|
83
|
-
var ZOOM_CONSTANTS = new URL("../constants.json", new URL("../zoom-app.js", import.meta.url).href);
|
|
84
|
-
var NO_ZOOM_APP = "WireCat has no Zoom app yet; make your own (docs/zoom-app.md) and set zoom.client_id or ZM_ZOOM_CLIENT_ID";
|
|
85
|
-
var SET_ZOOM_APP = "run zm config set zoom.client_id <Public Client ID> first, or set ZM_ZOOM_CLIENT_ID";
|
|
86
|
-
var zoomApp = /* @__PURE__ */ __name((options) => oauthApp({
|
|
87
|
-
provider: "zoom",
|
|
88
|
-
prefix: "ZM",
|
|
89
|
-
env: options.env,
|
|
90
|
-
clientId: options.clientId,
|
|
91
|
-
configClientId: options.configClientId ?? void 0,
|
|
92
|
-
wirecat: constants(ZOOM_CONSTANTS, schema).zoom.app
|
|
93
|
-
}), "zoomApp");
|
|
94
|
-
var zoomClientId = /* @__PURE__ */ __name((config, env) => zoomApp({ env, configClientId: config?.clientId })?.client.clientId, "zoomClientId");
|
|
95
|
-
var zoomClientReport = /* @__PURE__ */ __name((config, env) => oauthClientReport(zoomApp({ env, configClientId: config?.clientId }), NO_ZOOM_APP), "zoomClientReport");
|
|
96
|
-
var checkedClientId = /* @__PURE__ */ __name((value) => {
|
|
97
|
-
if (!value.trim() || /\s/.test(value))
|
|
98
|
-
throw new CliError("validation_error", "client id must not contain whitespace");
|
|
99
|
-
return value;
|
|
100
|
-
}, "checkedClientId");
|
|
101
|
-
var ZOOM_APP_BUILD_URL = "https://marketplace.zoom.us/develop/create";
|
|
102
|
-
var ZOOM_APP_GUIDE_URL = "https://github.com/WireCatLabs/zoom-cli/blob/main/docs/zoom-app.md";
|
|
103
|
-
var ZOOM_APP_SCOPES = [
|
|
104
|
-
{ scope: "meeting:read:list_meetings", required: true, use: "find your meetings and scheduled series" },
|
|
105
|
-
{ scope: "meeting:read:list_past_instances", required: true, use: "find each meeting that ran" },
|
|
106
|
-
{ scope: "cloud_recording:read:meeting_transcript", required: true, use: "read meeting transcripts" },
|
|
107
|
-
{ scope: "meeting:read:list_past_participants", required: true, use: "read who joined and when" },
|
|
108
|
-
{ scope: "meeting:read:summary", required: true, use: "read Zoom AI summaries" },
|
|
109
|
-
{ scope: "cloud_recording:read:list_user_recordings", required: false, use: "find your cloud recordings" },
|
|
110
|
-
{ scope: "cloud_recording:read:list_recording_files", required: false, use: "download recordings and meeting chat" },
|
|
111
|
-
{ scope: "user:read:user", required: false, use: "session status --check" },
|
|
112
|
-
{ scope: "meeting:read:meeting", required: false, use: "show one meeting, prepare a series" },
|
|
113
|
-
{ scope: "meeting:read:past_meeting", required: false, use: "meetings show reads a meeting that ran from Zoom" },
|
|
114
|
-
{ scope: "meeting:read:invitation", required: false, use: "show a meeting's invitation" },
|
|
115
|
-
{ scope: "meeting:write:meeting", required: false, use: "create a meeting" },
|
|
116
|
-
{ scope: "meeting:update:meeting", required: false, use: "change a meeting" },
|
|
117
|
-
{ scope: "meeting:delete:meeting", required: false, use: "cancel a meeting" },
|
|
118
|
-
{ scope: "team_chat:read:list_contacts", required: false, use: "contacts list" },
|
|
119
|
-
{ scope: "team_chat:read:contact", required: false, use: "contacts show" },
|
|
120
|
-
{ scope: "agentic_search:read:search", required: false, use: "zoom search" }
|
|
121
|
-
];
|
|
122
|
-
var zoomAppSetup = /* @__PURE__ */ __name(() => ({
|
|
123
|
-
marketplace_url: ZOOM_APP_BUILD_URL,
|
|
124
|
-
guide_url: ZOOM_APP_GUIDE_URL,
|
|
125
|
-
app_type: "General app",
|
|
126
|
-
management: "User-managed",
|
|
127
|
-
oauth: "Public Client OAuth",
|
|
128
|
-
redirect_url: REDIRECT,
|
|
129
|
-
allow_list: [REDIRECT],
|
|
130
|
-
scopes: ZOOM_APP_SCOPES,
|
|
131
|
-
config_key: "zoom.client_id"
|
|
132
|
-
}), "zoomAppSetup");
|
|
133
|
-
var zoomAppChecklist = /* @__PURE__ */ __name(() => {
|
|
134
|
-
const scopes = /* @__PURE__ */ __name((required) => ZOOM_APP_SCOPES.filter((one) => one.required === required).map((one) => one.scope).join(", "), "scopes");
|
|
135
|
-
return [
|
|
136
|
-
`1. Open ${ZOOM_APP_BUILD_URL} and build a General app.`,
|
|
137
|
-
"2. Choose User-managed. Under App Credentials, turn on Use Public Client OAuth and copy the Public Client ID.",
|
|
138
|
-
`3. OAuth Redirect URL: ${REDIRECT}`,
|
|
139
|
-
`4. OAuth Allow List: ${REDIRECT}`,
|
|
140
|
-
`5. Add the scopes meetings sync needs: ${scopes(true)}`,
|
|
141
|
-
` Only for the features you use: ${scopes(false)}`,
|
|
142
|
-
"6. Run zm config set zoom.client_id <Public Client ID>, then zm <profile> session start.",
|
|
143
|
-
`The whole guide: ${ZOOM_APP_GUIDE_URL}`
|
|
144
|
-
].join("\n");
|
|
145
|
-
}, "zoomAppChecklist");
|
|
146
|
-
var CLIENT_ID_NEED = {
|
|
147
|
-
field: "client_id",
|
|
148
|
-
secret: false,
|
|
149
|
-
prompt: "Public Client ID of your Zoom app",
|
|
150
|
-
hint: `Build a General app (User-managed, Public Client OAuth) at ${ZOOM_APP_BUILD_URL}; zm app lists what to enter.`
|
|
151
|
-
};
|
|
152
|
-
|
|
153
|
-
export {
|
|
154
|
-
ZOOM_CONSTANTS,
|
|
155
|
-
NO_ZOOM_APP,
|
|
156
|
-
SET_ZOOM_APP,
|
|
157
|
-
zoomApp,
|
|
158
|
-
zoomClientId,
|
|
159
|
-
zoomClientReport,
|
|
160
|
-
checkedClientId,
|
|
161
|
-
ZOOM_APP_BUILD_URL,
|
|
162
|
-
ZOOM_APP_GUIDE_URL,
|
|
163
|
-
ZOOM_APP_SCOPES,
|
|
164
|
-
zoomAppSetup,
|
|
165
|
-
zoomAppChecklist,
|
|
166
|
-
CLIENT_ID_NEED
|
|
167
|
-
};
|
|
@@ -1,295 +0,0 @@
|
|
|
1
|
-
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
-
const require = __bundleRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
SAMPLE_RATE,
|
|
5
|
-
decodeOgg
|
|
6
|
-
} from "./chunk-2S54TM4N.js";
|
|
7
|
-
import {
|
|
8
|
-
importFrom
|
|
9
|
-
} from "./chunk-Y5E2WNWB.js";
|
|
10
|
-
import {
|
|
11
|
-
CliError
|
|
12
|
-
} from "./chunk-IANKXHSE.js";
|
|
13
|
-
import {
|
|
14
|
-
__name
|
|
15
|
-
} from "./chunk-ZVVMGPBJ.js";
|
|
16
|
-
|
|
17
|
-
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/speech/decode.js
|
|
18
|
-
import { spawn } from "node:child_process";
|
|
19
|
-
import { mkdtemp, open, readFile, rm, writeFile } from "node:fs/promises";
|
|
20
|
-
import { createRequire } from "node:module";
|
|
21
|
-
import { tmpdir } from "node:os";
|
|
22
|
-
import { join } from "node:path";
|
|
23
|
-
import { pathToFileURL } from "node:url";
|
|
24
|
-
var LONGEST_AUDIO_SECONDS = 3600;
|
|
25
|
-
var FFMPEG_TIMEOUT_MS = 12e4;
|
|
26
|
-
var FFMPEG_FORMATS = "mov,mp4,m4a,3gp,3g2,mj2,aac,mp3,wav,amr,caf,aiff,flac,ogg,matroska,webm,asf";
|
|
27
|
-
var text = /* @__PURE__ */ __name((bytes, from, length) => String.fromCharCode(...bytes.subarray(from, from + length)), "text");
|
|
28
|
-
var contains = /* @__PURE__ */ __name((bytes, needle, within) => Buffer.from(bytes.buffer, bytes.byteOffset, Math.min(bytes.length, within)).includes(needle, 0, "latin1"), "contains");
|
|
29
|
-
var formatOf = /* @__PURE__ */ __name((bytes) => {
|
|
30
|
-
if (text(bytes, 0, 4) === "OggS") {
|
|
31
|
-
if (contains(bytes, "OpusHead", 128))
|
|
32
|
-
return "opus";
|
|
33
|
-
if (contains(bytes, "vorbis", 128))
|
|
34
|
-
return "vorbis";
|
|
35
|
-
return "other";
|
|
36
|
-
}
|
|
37
|
-
if (text(bytes, 0, 4) === "fLaC")
|
|
38
|
-
return "flac";
|
|
39
|
-
const frame = bytes[0] === 255 && ((bytes[1] ?? 0) & 224) === 224 && ((bytes[1] ?? 0) >> 1 & 3) !== 0;
|
|
40
|
-
if (text(bytes, 0, 3) === "ID3" || frame)
|
|
41
|
-
return "mp3";
|
|
42
|
-
return "other";
|
|
43
|
-
}, "formatOf");
|
|
44
|
-
var everyChannel = /* @__PURE__ */ __name((decoded) => {
|
|
45
|
-
if (!decoded.channelData[0] || decoded.samplesDecoded === 0)
|
|
46
|
-
throw new CliError("validation_error", "no audio in that file");
|
|
47
|
-
return decoded.channelData.map((samples) => ({ samples, rate: decoded.sampleRate }));
|
|
48
|
-
}, "everyChannel");
|
|
49
|
-
var load = /* @__PURE__ */ __name((name) => importFrom(new URL("speech/decode.js", import.meta.resolve("@wirecat/cli-core")).href, pathToFileURL(createRequire(new URL("speech/decode.js", import.meta.resolve("@wirecat/cli-core")).href).resolve(name)).href), "load");
|
|
50
|
-
var decodeVorbis = /* @__PURE__ */ __name(async (bytes) => {
|
|
51
|
-
const { OggVorbisDecoder } = await load("@wasm-audio-decoders/ogg-vorbis");
|
|
52
|
-
const decoder = new OggVorbisDecoder();
|
|
53
|
-
await decoder.ready;
|
|
54
|
-
try {
|
|
55
|
-
return everyChannel(await decoder.decodeFile(bytes));
|
|
56
|
-
} finally {
|
|
57
|
-
decoder.free();
|
|
58
|
-
}
|
|
59
|
-
}, "decodeVorbis");
|
|
60
|
-
var decodeFlac = /* @__PURE__ */ __name(async (bytes) => {
|
|
61
|
-
const { FLACDecoder } = await load("@wasm-audio-decoders/flac");
|
|
62
|
-
const decoder = new FLACDecoder();
|
|
63
|
-
await decoder.ready;
|
|
64
|
-
try {
|
|
65
|
-
return everyChannel(await decoder.decodeFile(bytes));
|
|
66
|
-
} finally {
|
|
67
|
-
decoder.free();
|
|
68
|
-
}
|
|
69
|
-
}, "decodeFlac");
|
|
70
|
-
var decodeMp3 = /* @__PURE__ */ __name(async (bytes) => {
|
|
71
|
-
const { MPEGDecoder } = await load("mpg123-decoder");
|
|
72
|
-
const decoder = new MPEGDecoder();
|
|
73
|
-
await decoder.ready;
|
|
74
|
-
try {
|
|
75
|
-
return everyChannel(decoder.decode(bytes));
|
|
76
|
-
} finally {
|
|
77
|
-
decoder.free();
|
|
78
|
-
}
|
|
79
|
-
}, "decodeMp3");
|
|
80
|
-
var tooLongError = /* @__PURE__ */ __name(() => new CliError("validation_error", `the audio is longer than ${LONGEST_AUDIO_SECONDS / 60} minutes`), "tooLongError");
|
|
81
|
-
var FLOAT = 3;
|
|
82
|
-
var LONGEST_HEADER = 64 * 1024;
|
|
83
|
-
var EXTENSIBLE = 65534;
|
|
84
|
-
var wavStream = /* @__PURE__ */ __name((most) => {
|
|
85
|
-
let head = Buffer.alloc(0);
|
|
86
|
-
let channels = 0;
|
|
87
|
-
let rate = 0;
|
|
88
|
-
let rest = Buffer.alloc(0);
|
|
89
|
-
let length = 0;
|
|
90
|
-
let parts = [];
|
|
91
|
-
const header = /* @__PURE__ */ __name(() => {
|
|
92
|
-
if (head.length < 12)
|
|
93
|
-
return false;
|
|
94
|
-
if (head.toString("latin1", 0, 4) !== "RIFF" || head.toString("latin1", 8, 12) !== "WAVE")
|
|
95
|
-
throw new CliError("validation_error", "ffmpeg did not answer with WAV audio");
|
|
96
|
-
for (let at = 12; at + 8 <= head.length; ) {
|
|
97
|
-
const id = head.toString("latin1", at, at + 4);
|
|
98
|
-
const size = head.readUInt32LE(at + 4);
|
|
99
|
-
if (id === "data") {
|
|
100
|
-
rest = head.subarray(at + 8);
|
|
101
|
-
head = Buffer.alloc(0);
|
|
102
|
-
return true;
|
|
103
|
-
}
|
|
104
|
-
if (at + 8 + size > head.length)
|
|
105
|
-
return false;
|
|
106
|
-
if (id === "fmt ") {
|
|
107
|
-
const tag = head.readUInt16LE(at + 8);
|
|
108
|
-
channels = head.readUInt16LE(at + 10);
|
|
109
|
-
rate = head.readUInt32LE(at + 12);
|
|
110
|
-
if (tag !== FLOAT && tag !== EXTENSIBLE || head.readUInt16LE(at + 22) !== 32 || channels < 1)
|
|
111
|
-
throw new CliError("validation_error", "ffmpeg did not answer with 32-bit float samples");
|
|
112
|
-
parts = Array.from({ length: channels }, () => []);
|
|
113
|
-
}
|
|
114
|
-
at += 8 + size + size % 2;
|
|
115
|
-
}
|
|
116
|
-
return false;
|
|
117
|
-
}, "header");
|
|
118
|
-
return {
|
|
119
|
-
push: /* @__PURE__ */ __name((chunk) => {
|
|
120
|
-
if (channels === 0 || head.length > 0) {
|
|
121
|
-
head = Buffer.concat([head, chunk]);
|
|
122
|
-
if (head.length > LONGEST_HEADER)
|
|
123
|
-
throw new CliError("validation_error", "ffmpeg's WAV header never ended");
|
|
124
|
-
if (!header())
|
|
125
|
-
return true;
|
|
126
|
-
chunk = Buffer.alloc(0);
|
|
127
|
-
}
|
|
128
|
-
const bytes = rest.length ? Buffer.concat([rest, chunk]) : chunk;
|
|
129
|
-
const frame = channels * 4;
|
|
130
|
-
const frames = Math.floor(bytes.length / frame);
|
|
131
|
-
rest = Buffer.from(bytes.subarray(frames * frame));
|
|
132
|
-
if (frames === 0)
|
|
133
|
-
return length <= most;
|
|
134
|
-
const view = new DataView(bytes.buffer, bytes.byteOffset, frames * frame);
|
|
135
|
-
for (let channel = 0; channel < channels; channel++) {
|
|
136
|
-
const samples = new Float32Array(frames);
|
|
137
|
-
for (let index = 0; index < frames; index++)
|
|
138
|
-
samples[index] = view.getFloat32(index * frame + channel * 4, true);
|
|
139
|
-
parts[channel]?.push(samples);
|
|
140
|
-
}
|
|
141
|
-
length += frames;
|
|
142
|
-
return length <= most;
|
|
143
|
-
}, "push"),
|
|
144
|
-
end: /* @__PURE__ */ __name(() => {
|
|
145
|
-
if (channels === 0)
|
|
146
|
-
throw new CliError("validation_error", "no audio in that file");
|
|
147
|
-
return parts.map((pieces, channel) => {
|
|
148
|
-
const samples = new Float32Array(length);
|
|
149
|
-
let at = 0;
|
|
150
|
-
for (const piece of pieces) {
|
|
151
|
-
samples.set(piece, at);
|
|
152
|
-
at += piece.length;
|
|
153
|
-
}
|
|
154
|
-
parts[channel] = [];
|
|
155
|
-
return { samples, rate };
|
|
156
|
-
});
|
|
157
|
-
}, "end")
|
|
158
|
-
};
|
|
159
|
-
}, "wavStream");
|
|
160
|
-
var runFfmpegFile = /* @__PURE__ */ __name((path) => new Promise((resolve, reject) => {
|
|
161
|
-
const child = spawn("ffmpeg", [
|
|
162
|
-
"-nostdin",
|
|
163
|
-
"-hide_banner",
|
|
164
|
-
"-loglevel",
|
|
165
|
-
"error",
|
|
166
|
-
"-protocol_whitelist",
|
|
167
|
-
"file",
|
|
168
|
-
"-format_whitelist",
|
|
169
|
-
FFMPEG_FORMATS,
|
|
170
|
-
"-i",
|
|
171
|
-
path,
|
|
172
|
-
"-vn",
|
|
173
|
-
"-af",
|
|
174
|
-
"aformat=channel_layouts=mono|stereo",
|
|
175
|
-
"-ar",
|
|
176
|
-
String(SAMPLE_RATE),
|
|
177
|
-
"-c:a",
|
|
178
|
-
"pcm_f32le",
|
|
179
|
-
"-bitexact",
|
|
180
|
-
"-f",
|
|
181
|
-
"wav",
|
|
182
|
-
"pipe:1"
|
|
183
|
-
], { stdio: ["ignore", "pipe", "pipe"], timeout: FFMPEG_TIMEOUT_MS });
|
|
184
|
-
const wav = wavStream(LONGEST_AUDIO_SECONDS * SAMPLE_RATE);
|
|
185
|
-
let long = false;
|
|
186
|
-
let broken;
|
|
187
|
-
let errors = "";
|
|
188
|
-
child.stdout.on("data", (chunk) => {
|
|
189
|
-
if (long || broken)
|
|
190
|
-
return;
|
|
191
|
-
try {
|
|
192
|
-
long = !wav.push(chunk);
|
|
193
|
-
} catch (error) {
|
|
194
|
-
broken = error;
|
|
195
|
-
}
|
|
196
|
-
if (long || broken)
|
|
197
|
-
child.kill();
|
|
198
|
-
});
|
|
199
|
-
child.stderr.on("data", (chunk) => {
|
|
200
|
-
errors = (errors + chunk.toString()).slice(-500);
|
|
201
|
-
});
|
|
202
|
-
child.on("error", (error) => reject(error.code === "ENOENT" ? new CliError("validation_error", "only ffmpeg reads this audio format, and ffmpeg is not installed") : error));
|
|
203
|
-
child.on("close", (code) => {
|
|
204
|
-
if (long)
|
|
205
|
-
return reject(tooLongError());
|
|
206
|
-
if (broken)
|
|
207
|
-
return reject(broken);
|
|
208
|
-
if (code !== 0)
|
|
209
|
-
return reject(new CliError("validation_error", `ffmpeg could not read the audio: ${errors.trim() || code}`));
|
|
210
|
-
try {
|
|
211
|
-
resolve(wav.end());
|
|
212
|
-
} catch (error) {
|
|
213
|
-
reject(error);
|
|
214
|
-
}
|
|
215
|
-
});
|
|
216
|
-
}), "runFfmpegFile");
|
|
217
|
-
var runFfmpeg = /* @__PURE__ */ __name(async (bytes) => {
|
|
218
|
-
const directory = await mkdtemp(join(tmpdir(), "wirecat-audio-"));
|
|
219
|
-
try {
|
|
220
|
-
const input = join(directory, "audio");
|
|
221
|
-
await writeFile(input, bytes, { mode: 384 });
|
|
222
|
-
return await runFfmpegFile(input);
|
|
223
|
-
} finally {
|
|
224
|
-
await rm(directory, { recursive: true, force: true });
|
|
225
|
-
}
|
|
226
|
-
}, "runFfmpeg");
|
|
227
|
-
var BUNDLED = {
|
|
228
|
-
opus: decodeOgg,
|
|
229
|
-
vorbis: decodeVorbis,
|
|
230
|
-
flac: decodeFlac,
|
|
231
|
-
mp3: decodeMp3
|
|
232
|
-
};
|
|
233
|
-
var tooLong = /* @__PURE__ */ __name((pcm) => pcm.samples.length / pcm.rate > LONGEST_AUDIO_SECONDS, "tooLong");
|
|
234
|
-
var fromFfmpeg = /* @__PURE__ */ __name((answer) => Array.isArray(answer) ? { channels: answer, mixed: false } : { channels: [answer], mixed: true }, "fromFfmpeg");
|
|
235
|
-
var decodeChannels = /* @__PURE__ */ __name(async (bytes, ffmpeg = runFfmpeg) => {
|
|
236
|
-
const format = formatOf(bytes);
|
|
237
|
-
const decoded = format === "other" ? fromFfmpeg(await ffmpeg(bytes)) : await BUNDLED[format](bytes).then((channels) => ({ channels, mixed: false }), (error) => ffmpeg(bytes).then(fromFfmpeg, () => {
|
|
238
|
-
throw error;
|
|
239
|
-
}));
|
|
240
|
-
if (decoded.channels.length === 0)
|
|
241
|
-
throw new CliError("validation_error", "no audio in that file");
|
|
242
|
-
if (decoded.channels.some(tooLong))
|
|
243
|
-
throw tooLongError();
|
|
244
|
-
return decoded;
|
|
245
|
-
}, "decodeChannels");
|
|
246
|
-
var decodeChannelsFile = /* @__PURE__ */ __name(async (path, { maxBytes = 64 * 1024 * 1024, ffmpegFile = runFfmpegFile } = {}) => {
|
|
247
|
-
const file = await open(path, "r");
|
|
248
|
-
let start;
|
|
249
|
-
let size;
|
|
250
|
-
try {
|
|
251
|
-
size = (await file.stat()).size;
|
|
252
|
-
const head = Buffer.alloc(Math.min(size, 128));
|
|
253
|
-
await file.read(head, 0, head.length, 0);
|
|
254
|
-
start = head;
|
|
255
|
-
} finally {
|
|
256
|
-
await file.close();
|
|
257
|
-
}
|
|
258
|
-
if (formatOf(start) === "other") {
|
|
259
|
-
const channels = await ffmpegFile(path);
|
|
260
|
-
if (channels.some(tooLong))
|
|
261
|
-
throw tooLongError();
|
|
262
|
-
return { channels, mixed: false };
|
|
263
|
-
}
|
|
264
|
-
if (size > maxBytes)
|
|
265
|
-
throw new CliError("validation_error", `the audio file is larger than ${Math.round(maxBytes / 1024 / 1024)} MB`, {
|
|
266
|
-
reason: "file.too-large"
|
|
267
|
-
});
|
|
268
|
-
return decodeChannels(new Uint8Array(await readFile(path)), () => ffmpegFile(path));
|
|
269
|
-
}, "decodeChannelsFile");
|
|
270
|
-
var mixDown = /* @__PURE__ */ __name((channels) => {
|
|
271
|
-
const [first] = channels;
|
|
272
|
-
if (!first)
|
|
273
|
-
throw new CliError("validation_error", "no audio in that file");
|
|
274
|
-
if (channels.length === 1)
|
|
275
|
-
return first;
|
|
276
|
-
const length = channels.reduce((longest, { samples: samples2 }) => Math.max(longest, samples2.length), 0);
|
|
277
|
-
const samples = new Float32Array(length);
|
|
278
|
-
for (const channel of channels)
|
|
279
|
-
for (let index = 0; index < channel.samples.length; index++)
|
|
280
|
-
samples[index] = (samples[index] ?? 0) + (channel.samples[index] ?? 0) / channels.length;
|
|
281
|
-
return { samples, rate: first.rate };
|
|
282
|
-
}, "mixDown");
|
|
283
|
-
var decodeAudio = /* @__PURE__ */ __name(async (bytes, ffmpeg = runFfmpeg) => mixDown((await decodeChannels(bytes, ffmpeg)).channels), "decodeAudio");
|
|
284
|
-
|
|
285
|
-
export {
|
|
286
|
-
LONGEST_AUDIO_SECONDS,
|
|
287
|
-
formatOf,
|
|
288
|
-
wavStream,
|
|
289
|
-
runFfmpegFile,
|
|
290
|
-
runFfmpeg,
|
|
291
|
-
decodeChannels,
|
|
292
|
-
decodeChannelsFile,
|
|
293
|
-
mixDown,
|
|
294
|
-
decodeAudio
|
|
295
|
-
};
|