@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,161 +0,0 @@
|
|
|
1
|
-
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
-
const require = __bundleRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
holdLock,
|
|
5
|
-
readLock,
|
|
6
|
-
releaseLock,
|
|
7
|
-
takeLock
|
|
8
|
-
} from "./chunk-EE45N67Q.js";
|
|
9
|
-
import {
|
|
10
|
-
__name
|
|
11
|
-
} from "./chunk-ZVVMGPBJ.js";
|
|
12
|
-
|
|
13
|
-
// 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/mcp/http/state.js
|
|
14
|
-
import { existsSync as existsSync2, readFileSync as readFileSync2 } from "node:fs";
|
|
15
|
-
|
|
16
|
-
// 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/mcp/http/activity.js
|
|
17
|
-
import { randomBytes } from "node:crypto";
|
|
18
|
-
import { chmodSync, existsSync, mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
19
|
-
import { dirname } from "node:path";
|
|
20
|
-
var WRITE_EVERY_MS = 2e3;
|
|
21
|
-
var TOOL_NAME = /^[A-Za-z0-9_.-]{1,64}$/;
|
|
22
|
-
var httpActivityFile = /* @__PURE__ */ __name((tokenFile) => `${tokenFile.replace(/\.json$/, "")}.activity.json`, "httpActivityFile");
|
|
23
|
-
var localDay = /* @__PURE__ */ __name((ms) => {
|
|
24
|
-
const d = new Date(ms);
|
|
25
|
-
return `${d.getFullYear()}-${String(d.getMonth() + 1).padStart(2, "0")}-${String(d.getDate()).padStart(2, "0")}`;
|
|
26
|
-
}, "localDay");
|
|
27
|
-
var readActivity = /* @__PURE__ */ __name((path) => {
|
|
28
|
-
if (!existsSync(path))
|
|
29
|
-
return {};
|
|
30
|
-
try {
|
|
31
|
-
const parsed = JSON.parse(readFileSync(path, "utf8"));
|
|
32
|
-
return parsed && typeof parsed === "object" && !Array.isArray(parsed) ? parsed : {};
|
|
33
|
-
} catch {
|
|
34
|
-
return {};
|
|
35
|
-
}
|
|
36
|
-
}, "readActivity");
|
|
37
|
-
var calledTools = /* @__PURE__ */ __name((body) => (Array.isArray(body) ? body : [body]).flatMap((message) => {
|
|
38
|
-
if (!message || typeof message !== "object")
|
|
39
|
-
return [];
|
|
40
|
-
const { method, params } = message;
|
|
41
|
-
const name = params?.name;
|
|
42
|
-
return method === "tools/call" && typeof name === "string" && TOOL_NAME.test(name) ? [name] : [];
|
|
43
|
-
}), "calledTools");
|
|
44
|
-
var activityRecorder = /* @__PURE__ */ __name((path, now = Date.now) => {
|
|
45
|
-
const activity = readActivity(path);
|
|
46
|
-
let timer;
|
|
47
|
-
const write = /* @__PURE__ */ __name(() => {
|
|
48
|
-
timer = void 0;
|
|
49
|
-
try {
|
|
50
|
-
mkdirSync(dirname(path), { recursive: true, mode: 448 });
|
|
51
|
-
const temporary = `${path}.${randomBytes(8).toString("hex")}.tmp`;
|
|
52
|
-
writeFileSync(temporary, JSON.stringify(activity), { mode: 384, flag: "wx" });
|
|
53
|
-
chmodSync(temporary, 384);
|
|
54
|
-
renameSync(temporary, path);
|
|
55
|
-
} catch {
|
|
56
|
-
}
|
|
57
|
-
}, "write");
|
|
58
|
-
return {
|
|
59
|
-
record: /* @__PURE__ */ __name((clientId, tools) => {
|
|
60
|
-
const at = now();
|
|
61
|
-
const iso = new Date(at).toISOString();
|
|
62
|
-
const day = localDay(at);
|
|
63
|
-
const before = activity[clientId];
|
|
64
|
-
const counted = before?.day === day ? before.toolCalls : 0;
|
|
65
|
-
const last = tools.at(-1);
|
|
66
|
-
activity[clientId] = {
|
|
67
|
-
lastRequestAt: iso,
|
|
68
|
-
day,
|
|
69
|
-
toolCalls: counted + tools.length,
|
|
70
|
-
...last ? { lastTool: last, lastToolAt: iso } : before?.lastTool ? { lastTool: before.lastTool, ...before.lastToolAt ? { lastToolAt: before.lastToolAt } : {} } : {}
|
|
71
|
-
};
|
|
72
|
-
if (last) {
|
|
73
|
-
clearTimeout(timer);
|
|
74
|
-
write();
|
|
75
|
-
} else if (!timer) {
|
|
76
|
-
timer = setTimeout(write, WRITE_EVERY_MS);
|
|
77
|
-
timer.unref();
|
|
78
|
-
}
|
|
79
|
-
}, "record"),
|
|
80
|
-
flush: /* @__PURE__ */ __name(() => {
|
|
81
|
-
if (!timer)
|
|
82
|
-
return;
|
|
83
|
-
clearTimeout(timer);
|
|
84
|
-
write();
|
|
85
|
-
}, "flush")
|
|
86
|
-
};
|
|
87
|
-
}, "activityRecorder");
|
|
88
|
-
|
|
89
|
-
// 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/mcp/http/state.js
|
|
90
|
-
var ACCESS_SECONDS = 60 * 60;
|
|
91
|
-
var REFRESH_SECONDS = 30 * 24 * 60 * 60;
|
|
92
|
-
var readStored = /* @__PURE__ */ __name((path) => existsSync2(path) ? JSON.parse(readFileSync2(path, "utf8")) : { clients: [], tokens: [] }, "readStored");
|
|
93
|
-
var mcpHttpMarker = /* @__PURE__ */ __name((envPrefix) => `${envPrefix}_MCP_HTTP`, "mcpHttpMarker");
|
|
94
|
-
var httpLogFile = /* @__PURE__ */ __name((tokenFile) => `${tokenFile.replace(/\.json$/, "")}.log`, "httpLogFile");
|
|
95
|
-
var httpLockFile = /* @__PURE__ */ __name((tokenFile) => `${tokenFile.replace(/\.json$/, "")}.lock`, "httpLockFile");
|
|
96
|
-
var httpLaunchFile = /* @__PURE__ */ __name((lockFile) => `${lockFile.replace(/\.lock$/, "")}.launch.json`, "httpLaunchFile");
|
|
97
|
-
var readHttpLaunch = /* @__PURE__ */ __name((path) => {
|
|
98
|
-
try {
|
|
99
|
-
const launch = JSON.parse(readFileSync2(path, "utf8"));
|
|
100
|
-
return typeof launch.invocation === "string" && Array.isArray(launch.argv) && launch.argv.every((word) => typeof word === "string") && typeof launch.env === "object" && launch.env !== null ? launch : void 0;
|
|
101
|
-
} catch {
|
|
102
|
-
return void 0;
|
|
103
|
-
}
|
|
104
|
-
}, "readHttpLaunch");
|
|
105
|
-
var readHttpLock = /* @__PURE__ */ __name((path) => {
|
|
106
|
-
const lock = readLock(path);
|
|
107
|
-
return lock && typeof lock.port === "number" && typeof lock.publicUrl === "string" ? lock : void 0;
|
|
108
|
-
}, "readHttpLock");
|
|
109
|
-
var httpLock = /* @__PURE__ */ __name((path, first) => {
|
|
110
|
-
let current = first;
|
|
111
|
-
const held = takeLock(path, current);
|
|
112
|
-
return {
|
|
113
|
-
held,
|
|
114
|
-
update: /* @__PURE__ */ __name((change) => {
|
|
115
|
-
current = { ...current, ...change };
|
|
116
|
-
holdLock(path, current);
|
|
117
|
-
}, "update"),
|
|
118
|
-
release: /* @__PURE__ */ __name(() => releaseLock(path), "release")
|
|
119
|
-
};
|
|
120
|
-
}, "httpLock");
|
|
121
|
-
var signedInClients = /* @__PURE__ */ __name((tokenFile, now = Date.now()) => {
|
|
122
|
-
const seconds = Math.floor(now / 1e3);
|
|
123
|
-
const { clients, tokens } = readStored(tokenFile);
|
|
124
|
-
const activity = readActivity(httpActivityFile(tokenFile));
|
|
125
|
-
const today = localDay(now);
|
|
126
|
-
const last = /* @__PURE__ */ new Map();
|
|
127
|
-
for (const token of tokens) {
|
|
128
|
-
if (token.expiresAt <= seconds)
|
|
129
|
-
continue;
|
|
130
|
-
const issued = token.expiresAt - (token.kind === "access" ? ACCESS_SECONDS : REFRESH_SECONDS);
|
|
131
|
-
last.set(token.clientId, Math.max(last.get(token.clientId) ?? 0, issued));
|
|
132
|
-
}
|
|
133
|
-
return clients.filter((client) => last.has(client.id)).map((client) => {
|
|
134
|
-
const did = activity[client.id];
|
|
135
|
-
return {
|
|
136
|
-
claimedName: client.name ?? null,
|
|
137
|
-
lastLoginAt: new Date((last.get(client.id) ?? 0) * 1e3).toISOString(),
|
|
138
|
-
lastRequestAt: did?.lastRequestAt ?? null,
|
|
139
|
-
lastTool: did?.lastTool ?? null,
|
|
140
|
-
lastToolAt: did?.lastToolAt ?? null,
|
|
141
|
-
toolCallsToday: did?.day === today ? did.toolCalls : 0
|
|
142
|
-
};
|
|
143
|
-
}).sort((a, b) => b.lastLoginAt.localeCompare(a.lastLoginAt));
|
|
144
|
-
}, "signedInClients");
|
|
145
|
-
|
|
146
|
-
export {
|
|
147
|
-
httpActivityFile,
|
|
148
|
-
calledTools,
|
|
149
|
-
activityRecorder,
|
|
150
|
-
ACCESS_SECONDS,
|
|
151
|
-
REFRESH_SECONDS,
|
|
152
|
-
readStored,
|
|
153
|
-
mcpHttpMarker,
|
|
154
|
-
httpLogFile,
|
|
155
|
-
httpLockFile,
|
|
156
|
-
httpLaunchFile,
|
|
157
|
-
readHttpLaunch,
|
|
158
|
-
readHttpLock,
|
|
159
|
-
httpLock,
|
|
160
|
-
signedInClients
|
|
161
|
-
};
|
|
@@ -1,217 +0,0 @@
|
|
|
1
|
-
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
-
const require = __bundleRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
openOrdinaryFile
|
|
5
|
-
} from "./chunk-S4PXWIE4.js";
|
|
6
|
-
import {
|
|
7
|
-
CliError
|
|
8
|
-
} from "./chunk-IANKXHSE.js";
|
|
9
|
-
import {
|
|
10
|
-
__name
|
|
11
|
-
} from "./chunk-ZVVMGPBJ.js";
|
|
12
|
-
|
|
13
|
-
// 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/wav.js
|
|
14
|
-
import { createHash } from "node:crypto";
|
|
15
|
-
import { basename, resolve } from "node:path";
|
|
16
|
-
var prepared = /* @__PURE__ */ new WeakMap();
|
|
17
|
-
var checkCancelled = /* @__PURE__ */ __name((signal) => {
|
|
18
|
-
if (!signal?.aborted)
|
|
19
|
-
return;
|
|
20
|
-
if (signal.reason instanceof CliError)
|
|
21
|
-
throw signal.reason;
|
|
22
|
-
const timedOut = signal.reason instanceof Error && signal.reason.name === "TimeoutError";
|
|
23
|
-
throw new CliError(timedOut ? "timeout" : "cancelled", timedOut ? "command timed out" : "command cancelled");
|
|
24
|
-
}, "checkCancelled");
|
|
25
|
-
var invalid = /* @__PURE__ */ __name(() => {
|
|
26
|
-
throw new CliError("validation_error", "local transcription requires PCM16 mono/stereo WAV at 16 or 48 kHz; convert the media locally to PCM WAV first");
|
|
27
|
-
}, "invalid");
|
|
28
|
-
var validate = /* @__PURE__ */ __name((options) => {
|
|
29
|
-
if (!Number.isSafeInteger(options.maxBytes) || options.maxBytes < 1 || options.maxBytes > 4 * 1024 ** 3 || !Number.isSafeInteger(options.maxDurationMs) || options.maxDurationMs < 1 || options.maxDurationMs > 24 * 36e5)
|
|
30
|
-
throw new CliError("validation_error", "audio byte and duration budgets must be positive bounded integers");
|
|
31
|
-
checkCancelled(options.signal);
|
|
32
|
-
}, "validate");
|
|
33
|
-
var exact = /* @__PURE__ */ __name(async (file, offset, size, signal) => {
|
|
34
|
-
const bytes = Buffer.alloc(size);
|
|
35
|
-
let read = 0;
|
|
36
|
-
while (read < size) {
|
|
37
|
-
checkCancelled(signal);
|
|
38
|
-
const result = await file.read(bytes, read, size - read, offset + read);
|
|
39
|
-
if (!result.bytesRead)
|
|
40
|
-
throw new CliError("validation_error", "WAV changed or was truncated while reading");
|
|
41
|
-
read += result.bytesRead;
|
|
42
|
-
}
|
|
43
|
-
return bytes;
|
|
44
|
-
}, "exact");
|
|
45
|
-
var layoutOf = /* @__PURE__ */ __name(async (file, size, options) => {
|
|
46
|
-
if (size < 44 || size > options.maxBytes)
|
|
47
|
-
invalid();
|
|
48
|
-
const header = await exact(file, 0, 12, options.signal);
|
|
49
|
-
if (header.toString("ascii", 0, 4) !== "RIFF" || header.toString("ascii", 8, 12) !== "WAVE" || header.readUInt32LE(4) + 8 !== size)
|
|
50
|
-
invalid();
|
|
51
|
-
let format;
|
|
52
|
-
let data;
|
|
53
|
-
let at = 12;
|
|
54
|
-
let chunks = 0;
|
|
55
|
-
while (at < size) {
|
|
56
|
-
checkCancelled(options.signal);
|
|
57
|
-
if (++chunks > 1024 || size - at < 8)
|
|
58
|
-
invalid();
|
|
59
|
-
const chunk = await exact(file, at, 8, options.signal);
|
|
60
|
-
const kind = chunk.toString("ascii", 0, 4);
|
|
61
|
-
const length = chunk.readUInt32LE(4);
|
|
62
|
-
const start = at + 8;
|
|
63
|
-
const next = start + length + length % 2;
|
|
64
|
-
if (next > size)
|
|
65
|
-
invalid();
|
|
66
|
-
if (kind === "fmt ") {
|
|
67
|
-
if (format || ![16, 18].includes(length))
|
|
68
|
-
invalid();
|
|
69
|
-
const bytes = await exact(file, start, length, options.signal);
|
|
70
|
-
const channels = bytes.readUInt16LE(2);
|
|
71
|
-
const sampleRate = bytes.readUInt32LE(4);
|
|
72
|
-
if (bytes.readUInt16LE(0) !== 1 || ![1, 2].includes(channels) || ![16e3, 48e3].includes(sampleRate) || bytes.readUInt16LE(14) !== 16 || bytes.readUInt16LE(12) !== channels * 2 || bytes.readUInt32LE(8) !== sampleRate * channels * 2 || length === 18 && bytes.readUInt16LE(16) !== 0)
|
|
73
|
-
invalid();
|
|
74
|
-
format = { sampleRate, channels };
|
|
75
|
-
} else if (kind === "data") {
|
|
76
|
-
if (data || !length)
|
|
77
|
-
invalid();
|
|
78
|
-
data = { offset: start, size: length };
|
|
79
|
-
}
|
|
80
|
-
at = next;
|
|
81
|
-
}
|
|
82
|
-
if (!format || !data || data.size % (format.channels * 2) !== 0)
|
|
83
|
-
return invalid();
|
|
84
|
-
const frames = data.size / (format.channels * 2);
|
|
85
|
-
if (Math.ceil(frames * 1e3 / format.sampleRate) > options.maxDurationMs)
|
|
86
|
-
throw new CliError("validation_error", "WAV exceeds the configured duration limit");
|
|
87
|
-
return { ...format, dataOffset: data.offset, dataSize: data.size, frames };
|
|
88
|
-
}, "layoutOf");
|
|
89
|
-
var hashRange = /* @__PURE__ */ __name(async (file, hash, start, end, signal) => {
|
|
90
|
-
let at = start;
|
|
91
|
-
while (at < end) {
|
|
92
|
-
const bytes = await exact(file, at, Math.min(65536, end - at), signal);
|
|
93
|
-
hash.update(bytes);
|
|
94
|
-
at += bytes.length;
|
|
95
|
-
}
|
|
96
|
-
}, "hashRange");
|
|
97
|
-
var hashFile = /* @__PURE__ */ __name(async (file, size, signal) => {
|
|
98
|
-
const hash = createHash("sha256");
|
|
99
|
-
await hashRange(file, hash, 0, size, signal);
|
|
100
|
-
if ((await file.stat()).size !== size)
|
|
101
|
-
throw new CliError("validation_error", "WAV changed while verifying its content");
|
|
102
|
-
return hash.digest("hex");
|
|
103
|
-
}, "hashFile");
|
|
104
|
-
var preflightWavAudio = /* @__PURE__ */ __name(async (path, input) => {
|
|
105
|
-
const options = { ...input };
|
|
106
|
-
validate(options);
|
|
107
|
-
if (typeof path !== "string" || !path.trim() || /\0/.test(path))
|
|
108
|
-
throw new CliError("validation_error", "local audio file is required");
|
|
109
|
-
const absolute = resolve(path);
|
|
110
|
-
const file = await openOrdinaryFile(absolute);
|
|
111
|
-
try {
|
|
112
|
-
const stat = await file.stat({ bigint: true });
|
|
113
|
-
const size = Number(stat.size);
|
|
114
|
-
const layout = await layoutOf(file, size, options);
|
|
115
|
-
const contentHash = await hashFile(file, size, options.signal);
|
|
116
|
-
const after = await file.stat({ bigint: true });
|
|
117
|
-
if (stat.size !== after.size || stat.mtimeNs !== after.mtimeNs)
|
|
118
|
-
throw new CliError("validation_error", "WAV changed while preparing the transcription");
|
|
119
|
-
const media = Object.freeze({
|
|
120
|
-
id: createHash("sha256").update(basename(absolute)).digest("hex"),
|
|
121
|
-
contentHash,
|
|
122
|
-
size,
|
|
123
|
-
durationMs: Math.ceil(layout.frames * 1e3 / layout.sampleRate),
|
|
124
|
-
format: "wav",
|
|
125
|
-
sampleRate: layout.sampleRate,
|
|
126
|
-
channels: layout.channels
|
|
127
|
-
});
|
|
128
|
-
const plan = Object.freeze({ media });
|
|
129
|
-
prepared.set(plan, { path: absolute, dev: stat.dev, ino: stat.ino, layout });
|
|
130
|
-
return plan;
|
|
131
|
-
} finally {
|
|
132
|
-
await file.close();
|
|
133
|
-
}
|
|
134
|
-
}, "preflightWavAudio");
|
|
135
|
-
var openWavAudio = /* @__PURE__ */ __name(async (plan, input) => {
|
|
136
|
-
const options = { ...input };
|
|
137
|
-
validate(options);
|
|
138
|
-
const known = prepared.get(plan);
|
|
139
|
-
if (!known)
|
|
140
|
-
throw new CliError("validation_error", "audio plan was not prepared by this adapter");
|
|
141
|
-
const file = await openOrdinaryFile(known.path);
|
|
142
|
-
try {
|
|
143
|
-
const stat = await file.stat({ bigint: true });
|
|
144
|
-
if (stat.dev !== known.dev || stat.ino !== known.ino || Number(stat.size) !== plan.media.size)
|
|
145
|
-
throw new CliError("validation_error", "WAV identity changed before transcription");
|
|
146
|
-
const layout = await layoutOf(file, plan.media.size, options);
|
|
147
|
-
if (JSON.stringify(layout) !== JSON.stringify(known.layout) || await hashFile(file, plan.media.size, options.signal) !== plan.media.contentHash)
|
|
148
|
-
throw new CliError("validation_error", "WAV content changed before transcription");
|
|
149
|
-
let closed = false;
|
|
150
|
-
let consumed = false;
|
|
151
|
-
return {
|
|
152
|
-
async *windows() {
|
|
153
|
-
if (closed || consumed)
|
|
154
|
-
throw new CliError("configuration_error", "audio source can be consumed once before closing");
|
|
155
|
-
consumed = true;
|
|
156
|
-
const hash = createHash("sha256");
|
|
157
|
-
await hashRange(file, hash, 0, layout.dataOffset, options.signal);
|
|
158
|
-
const step = layout.sampleRate / 16e3;
|
|
159
|
-
for (let frame = 0; frame < layout.frames; ) {
|
|
160
|
-
checkCancelled(options.signal);
|
|
161
|
-
const count = Math.min(layout.sampleRate * 30, layout.frames - frame);
|
|
162
|
-
const bytes = await exact(file, layout.dataOffset + frame * layout.channels * 2, count * layout.channels * 2, options.signal);
|
|
163
|
-
hash.update(bytes);
|
|
164
|
-
const samples = new Float32Array(Math.floor(count / step));
|
|
165
|
-
for (let index = 0; index < samples.length; index++) {
|
|
166
|
-
let sum = 0;
|
|
167
|
-
for (let offset = 0; offset < step; offset++)
|
|
168
|
-
for (let channel = 0; channel < layout.channels; channel++)
|
|
169
|
-
sum += bytes.readInt16LE(((index * step + offset) * layout.channels + channel) * 2);
|
|
170
|
-
samples[index] = sum / (32768 * step * layout.channels);
|
|
171
|
-
}
|
|
172
|
-
const startMs = Math.floor(frame * 1e3 / layout.sampleRate);
|
|
173
|
-
frame += count;
|
|
174
|
-
if (samples.length)
|
|
175
|
-
yield { startMs, endMs: Math.ceil(frame * 1e3 / layout.sampleRate), samples };
|
|
176
|
-
}
|
|
177
|
-
await hashRange(file, hash, layout.dataOffset + layout.dataSize, plan.media.size, options.signal);
|
|
178
|
-
if (hash.digest("hex") !== plan.media.contentHash || (await file.stat()).size !== plan.media.size)
|
|
179
|
-
throw new CliError("validation_error", "WAV changed during recognition; no transcript may be stored");
|
|
180
|
-
},
|
|
181
|
-
async close() {
|
|
182
|
-
if (!closed) {
|
|
183
|
-
closed = true;
|
|
184
|
-
await file.close();
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
};
|
|
188
|
-
} catch (error) {
|
|
189
|
-
await file.close();
|
|
190
|
-
throw error;
|
|
191
|
-
}
|
|
192
|
-
}, "openWavAudio");
|
|
193
|
-
var encodeWav = /* @__PURE__ */ __name((samples, sampleRate = 16e3) => {
|
|
194
|
-
const bytes = Buffer.alloc(44 + samples.length * 2);
|
|
195
|
-
bytes.write("RIFF", 0, "ascii");
|
|
196
|
-
bytes.writeUInt32LE(bytes.length - 8, 4);
|
|
197
|
-
bytes.write("WAVEfmt ", 8, "ascii");
|
|
198
|
-
bytes.writeUInt32LE(16, 16);
|
|
199
|
-
bytes.writeUInt16LE(1, 20);
|
|
200
|
-
bytes.writeUInt16LE(1, 22);
|
|
201
|
-
bytes.writeUInt32LE(sampleRate, 24);
|
|
202
|
-
bytes.writeUInt32LE(sampleRate * 2, 28);
|
|
203
|
-
bytes.writeUInt16LE(2, 32);
|
|
204
|
-
bytes.writeUInt16LE(16, 34);
|
|
205
|
-
bytes.write("data", 36, "ascii");
|
|
206
|
-
bytes.writeUInt32LE(samples.length * 2, 40);
|
|
207
|
-
samples.forEach((sample, index) => {
|
|
208
|
-
bytes.writeInt16LE(Math.round(Math.max(-1, Math.min(1, sample || 0)) * 32767), 44 + index * 2);
|
|
209
|
-
});
|
|
210
|
-
return new Uint8Array(bytes.buffer, bytes.byteOffset, bytes.length);
|
|
211
|
-
}, "encodeWav");
|
|
212
|
-
|
|
213
|
-
export {
|
|
214
|
-
preflightWavAudio,
|
|
215
|
-
openWavAudio,
|
|
216
|
-
encodeWav
|
|
217
|
-
};
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
-
const require = __bundleRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
hostFetch
|
|
5
|
-
} from "./chunk-VTYNLTDW.js";
|
|
6
|
-
import {
|
|
7
|
-
CliError,
|
|
8
|
-
isCliError
|
|
9
|
-
} from "./chunk-IANKXHSE.js";
|
|
10
|
-
import {
|
|
11
|
-
__name
|
|
12
|
-
} from "./chunk-ZVVMGPBJ.js";
|
|
13
|
-
|
|
14
|
-
// 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/models/endpoint.js
|
|
15
|
-
var endpoint = /* @__PURE__ */ __name((value) => {
|
|
16
|
-
try {
|
|
17
|
-
const url = new URL(value);
|
|
18
|
-
return ["https:", "http:"].includes(url.protocol) && !url.username && !url.password && !url.search && !url.hash;
|
|
19
|
-
} catch {
|
|
20
|
-
return false;
|
|
21
|
-
}
|
|
22
|
-
}, "endpoint");
|
|
23
|
-
var loopback = /* @__PURE__ */ __name((hostname) => hostname === "localhost" || hostname === "[::1]" || /^127(\.\d{1,3}){3}$/.test(hostname), "loopback");
|
|
24
|
-
var onThisComputer = /* @__PURE__ */ __name((value) => {
|
|
25
|
-
try {
|
|
26
|
-
return loopback(new URL(value).hostname);
|
|
27
|
-
} catch {
|
|
28
|
-
return false;
|
|
29
|
-
}
|
|
30
|
-
}, "onThisComputer");
|
|
31
|
-
var modelAddressAllowed = /* @__PURE__ */ __name((value) => endpoint(value) && (new URL(value).protocol === "https:" || onThisComputer(value)), "modelAddressAllowed");
|
|
32
|
-
var PLAIN_HTTP_REFUSED = "this address is not allowed: use https, or http only on this computer";
|
|
33
|
-
var literalFetch = /* @__PURE__ */ __name((hostname, timeoutMs) => async (input, init = {}) => {
|
|
34
|
-
const url = new URL(input instanceof Request ? input.url : String(input));
|
|
35
|
-
if (url.hostname !== hostname)
|
|
36
|
-
throw new CliError("configuration_error", `${url.hostname} is not the model address's host, ${hostname}`, {
|
|
37
|
-
reason: "network.host-undeclared",
|
|
38
|
-
sent: false
|
|
39
|
-
});
|
|
40
|
-
const deadline = AbortSignal.timeout(timeoutMs);
|
|
41
|
-
const signal = init.signal ? AbortSignal.any([init.signal, deadline]) : deadline;
|
|
42
|
-
try {
|
|
43
|
-
const response = await fetch(input, { ...init, signal, redirect: "manual" });
|
|
44
|
-
if (response.status >= 300 && response.status < 400) {
|
|
45
|
-
void response.body?.cancel().catch(() => {
|
|
46
|
-
});
|
|
47
|
-
throw new CliError("invalid_response", `${hostname} answered with a redirect, which is not followed`);
|
|
48
|
-
}
|
|
49
|
-
return response;
|
|
50
|
-
} catch (error) {
|
|
51
|
-
if (isCliError(error))
|
|
52
|
-
throw error;
|
|
53
|
-
if (init.signal?.aborted)
|
|
54
|
-
throw new CliError("cancelled", "request cancelled");
|
|
55
|
-
if (deadline.aborted)
|
|
56
|
-
throw new CliError("timeout", `${hostname} did not answer within ${timeoutMs} ms`, { retryable: true });
|
|
57
|
-
throw new CliError("network_error", `${hostname} could not be reached`, { retryable: true });
|
|
58
|
-
}
|
|
59
|
-
}, "literalFetch");
|
|
60
|
-
var endpointFetch = /* @__PURE__ */ __name((address, timeoutMs) => {
|
|
61
|
-
const { hostname } = new URL(address);
|
|
62
|
-
if (hostname === "[::1]")
|
|
63
|
-
return fetch;
|
|
64
|
-
return hostname.startsWith("[") ? literalFetch(hostname, timeoutMs) : hostFetch({ hosts: [hostname], timeoutMs });
|
|
65
|
-
}, "endpointFetch");
|
|
66
|
-
|
|
67
|
-
export {
|
|
68
|
-
endpoint,
|
|
69
|
-
onThisComputer,
|
|
70
|
-
modelAddressAllowed,
|
|
71
|
-
PLAIN_HTTP_REFUSED,
|
|
72
|
-
endpointFetch
|
|
73
|
-
};
|