@wirecat/zoom-cli 0.82.0 → 0.84.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -12
- package/contracts/wirecat.json +88 -55
- package/dist/account-removal.d.ts +1 -1
- package/dist/account-removal.d.ts.map +1 -1
- package/dist/account-removal.js +1 -1
- package/dist/account-removal.js.map +1 -1
- package/dist/agent-skill.js +1 -1
- package/dist/agent-skill.js.map +1 -1
- package/dist/answer-entities.d.ts +1 -1
- package/dist/answer-entities.d.ts.map +1 -1
- package/dist/answer-entities.js +1 -1
- package/dist/answer-entities.js.map +1 -1
- package/dist/answer-output.d.ts +2 -2
- package/dist/answer-output.d.ts.map +1 -1
- package/dist/answer-output.js +1 -1
- package/dist/answer-output.js.map +1 -1
- package/dist/answer-policy.d.ts.map +1 -1
- package/dist/answer-policy.js +1 -2
- package/dist/answer-policy.js.map +1 -1
- package/dist/answers.js +1 -1
- package/dist/answers.js.map +1 -1
- package/dist/api.d.ts +2 -2
- package/dist/api.d.ts.map +1 -1
- package/dist/api.js +2 -2
- package/dist/api.js.map +1 -1
- package/dist/archive-commands.d.ts +1 -1
- package/dist/archive-commands.d.ts.map +1 -1
- package/dist/archive-commands.js +1 -2
- package/dist/archive-commands.js.map +1 -1
- package/dist/archive-import.d.ts +1 -1
- package/dist/archive-import.d.ts.map +1 -1
- package/dist/archive-import.js +1 -1
- package/dist/archive-import.js.map +1 -1
- package/dist/archive-transcripts.d.ts +1 -1
- package/dist/archive-transcripts.d.ts.map +1 -1
- package/dist/archive-transcripts.js +1 -2
- package/dist/archive-transcripts.js.map +1 -1
- package/dist/bin/main.js +4 -17
- package/dist/bin/main.js.map +1 -1
- package/dist/bin/zm.js +11 -11
- package/dist/bundle/answer-policy-OQQWAUHH.js +33 -0
- package/dist/bundle/chunk-3YDF76DP.js +922 -0
- package/dist/bundle/chunk-AEWYRB6F.js +8 -0
- package/dist/bundle/chunk-AF2Z6VOG.js +137 -0
- package/dist/bundle/{chunk-MAJJ4PG3.js → chunk-DAYBU7WR.js} +79 -396
- package/dist/bundle/{chunk-XQQVMECZ.js → chunk-JD63PEI3.js} +3 -8
- package/dist/bundle/{chunk-UL2PXLKT.js → chunk-L5ZYKXAY.js} +392 -129
- package/dist/bundle/{chunk-2SWKQ7C4.js → chunk-W4TDCCT3.js} +8 -2
- package/dist/bundle/{chunk-AC6VJNMJ.js → chunk-W6YFWJDR.js} +2 -5
- package/dist/bundle/{chunk-434YFJAE.js → chunk-WSGD5Q6L.js} +3 -9
- package/dist/bundle/config-MP5YLHEY.js +29 -0
- package/dist/bundle/{folders-LXOL4N4S.js → folders-B2GKJOC2.js} +2 -7
- package/dist/bundle/{main-YAA7WQ23.js → main-YZPLPXB7.js} +21 -53
- package/dist/bundle/{output-file-2UB5JP3R.js → output-file-PKA7MJEP.js} +3 -11
- package/dist/bundle/{program-GVCGZP27.js → program-7JY6XJ6K.js} +714 -935
- package/dist/bundle/run-log-ML7ZCWXD.js +54 -0
- package/dist/bundle/store-connection-LQGKS3DN.js +21 -0
- package/dist/bundle/streaming-PRGWGNHY.js +12 -0
- package/dist/bundle/tokens-57RJVBK6.js +18 -0
- package/dist/bundle/zm.js +4 -161
- package/dist/bundle/{zoom-app-YWFB367P.js → zoom-app-EYJST6GF.js} +4 -10
- package/dist/chat-file.d.ts +1 -1
- package/dist/chat-file.d.ts.map +1 -1
- package/dist/commands.d.ts +1 -8
- package/dist/commands.d.ts.map +1 -1
- package/dist/commands.js +3 -33
- package/dist/commands.js.map +1 -1
- package/dist/config-issues.d.ts +1 -1
- package/dist/config-issues.d.ts.map +1 -1
- package/dist/config-issues.js +1 -1
- package/dist/config-issues.js.map +1 -1
- package/dist/config.d.ts +1 -2
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +1 -2
- package/dist/config.js.map +1 -1
- package/dist/contacts-commands.d.ts +1 -1
- package/dist/contacts-commands.d.ts.map +1 -1
- package/dist/contacts-commands.js +1 -1
- package/dist/contacts-commands.js.map +1 -1
- package/dist/contract-overrides.js +1 -1
- package/dist/contract-overrides.js.map +1 -1
- package/dist/errors.d.ts +1 -1
- package/dist/errors.d.ts.map +1 -1
- package/dist/execution.d.ts +1 -1
- package/dist/execution.d.ts.map +1 -1
- package/dist/execution.js +1 -1
- package/dist/execution.js.map +1 -1
- package/dist/files.d.ts +2 -2
- package/dist/files.d.ts.map +1 -1
- package/dist/files.js +1 -1
- package/dist/files.js.map +1 -1
- package/dist/first-screen.js +1 -1
- package/dist/first-screen.js.map +1 -1
- package/dist/identity.d.ts +1 -1
- package/dist/identity.d.ts.map +1 -1
- package/dist/identity.js +6 -0
- package/dist/identity.js.map +1 -1
- package/dist/index.d.ts +1 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -2
- package/dist/index.js.map +1 -1
- package/dist/ingestion-search-commands.d.ts +1 -1
- package/dist/ingestion-search-commands.d.ts.map +1 -1
- package/dist/ingestion-search-commands.js +1 -1
- package/dist/ingestion-search-commands.js.map +1 -1
- package/dist/local-transcription-commands.d.ts +1 -1
- package/dist/local-transcription-commands.d.ts.map +1 -1
- package/dist/local-transcription-commands.js +1 -2
- package/dist/local-transcription-commands.js.map +1 -1
- package/dist/local-transcription.d.ts +1 -2
- package/dist/local-transcription.d.ts.map +1 -1
- package/dist/local-transcription.js +3 -3
- package/dist/local-transcription.js.map +1 -1
- package/dist/meeting-commands.d.ts +1 -1
- package/dist/meeting-commands.d.ts.map +1 -1
- package/dist/meeting-commands.js +1 -2
- package/dist/meeting-commands.js.map +1 -1
- package/dist/meeting-communications-binding.d.ts +1 -2
- package/dist/meeting-communications-binding.d.ts.map +1 -1
- package/dist/meeting-communications-binding.js.map +1 -1
- package/dist/meeting-context-commands.d.ts +1 -1
- package/dist/meeting-context-commands.d.ts.map +1 -1
- package/dist/meeting-context-commands.js +1 -1
- package/dist/meeting-context-commands.js.map +1 -1
- package/dist/meeting-context.d.ts +2 -4
- package/dist/meeting-context.d.ts.map +1 -1
- package/dist/meeting-context.js +1 -1
- package/dist/meeting-context.js.map +1 -1
- package/dist/meeting-integration-commands.d.ts +1 -1
- package/dist/meeting-integration-commands.d.ts.map +1 -1
- package/dist/meeting-integration-commands.js +1 -2
- package/dist/meeting-integration-commands.js.map +1 -1
- package/dist/meeting-integration.d.ts +1 -1
- package/dist/meeting-integration.d.ts.map +1 -1
- package/dist/meeting-integration.js +1 -1
- package/dist/meeting-integration.js.map +1 -1
- package/dist/meeting-inventory.d.ts +1 -1
- package/dist/meeting-inventory.d.ts.map +1 -1
- package/dist/meeting-inventory.js +1 -1
- package/dist/meeting-inventory.js.map +1 -1
- package/dist/meeting-preparation.d.ts +1 -2
- package/dist/meeting-preparation.d.ts.map +1 -1
- package/dist/meeting-preparation.js +1 -1
- package/dist/meeting-preparation.js.map +1 -1
- package/dist/meeting-project-candidates.d.ts +1 -1
- package/dist/meeting-project-candidates.d.ts.map +1 -1
- package/dist/meeting-project-evidence-commands.d.ts +1 -1
- package/dist/meeting-project-evidence-commands.d.ts.map +1 -1
- package/dist/meeting-project-evidence-commands.js +1 -2
- package/dist/meeting-project-evidence-commands.js.map +1 -1
- package/dist/meeting-read-command-bindings.js +1 -1
- package/dist/meeting-read-command-bindings.js.map +1 -1
- package/dist/meeting-review-commands.d.ts +1 -3
- package/dist/meeting-review-commands.d.ts.map +1 -1
- package/dist/meeting-review-commands.js +1 -2
- package/dist/meeting-review-commands.js.map +1 -1
- package/dist/meeting-search-commands.d.ts +2 -3
- package/dist/meeting-search-commands.d.ts.map +1 -1
- package/dist/meeting-search-commands.js +2 -4
- package/dist/meeting-search-commands.js.map +1 -1
- package/dist/meeting-searches-commands.d.ts +1 -2
- package/dist/meeting-searches-commands.d.ts.map +1 -1
- package/dist/meeting-searches-commands.js +1 -2
- package/dist/meeting-searches-commands.js.map +1 -1
- package/dist/meeting-selection-options.d.ts +1 -1
- package/dist/meeting-selection-options.d.ts.map +1 -1
- package/dist/meeting-selection-options.js +1 -2
- package/dist/meeting-selection-options.js.map +1 -1
- package/dist/meeting-semantic-commands.d.ts +1 -2
- package/dist/meeting-semantic-commands.d.ts.map +1 -1
- package/dist/meeting-semantic-commands.js +1 -1
- package/dist/meeting-semantic-commands.js.map +1 -1
- package/dist/meeting-semantic.d.ts +2 -2
- package/dist/meeting-semantic.d.ts.map +1 -1
- package/dist/meeting-semantic.js +1 -1
- package/dist/meeting-semantic.js.map +1 -1
- package/dist/meeting-source.d.ts +1 -1
- package/dist/meeting-source.d.ts.map +1 -1
- package/dist/meeting-stats-commands.d.ts +1 -3
- package/dist/meeting-stats-commands.d.ts.map +1 -1
- package/dist/meeting-stats-commands.js +1 -2
- package/dist/meeting-stats-commands.js.map +1 -1
- package/dist/models-commands.d.ts +1 -1
- package/dist/models-commands.d.ts.map +1 -1
- package/dist/models-commands.js +1 -1
- package/dist/models-commands.js.map +1 -1
- package/dist/occurrence-schedule.d.ts +1 -1
- package/dist/occurrence-schedule.d.ts.map +1 -1
- package/dist/permissions.d.ts +1 -1
- package/dist/permissions.d.ts.map +1 -1
- package/dist/permissions.js +1 -2
- package/dist/permissions.js.map +1 -1
- package/dist/profile.js +1 -1
- package/dist/profile.js.map +1 -1
- package/dist/program-bindings.d.ts.map +1 -1
- package/dist/program-bindings.js +3 -13
- package/dist/program-bindings.js.map +1 -1
- package/dist/program.d.ts +4 -7
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +1 -1
- package/dist/program.js.map +1 -1
- package/dist/progress-commands.d.ts +1 -1
- package/dist/progress-commands.d.ts.map +1 -1
- package/dist/progress-commands.js +1 -2
- package/dist/progress-commands.js.map +1 -1
- package/dist/read-only.js +1 -1
- package/dist/read-only.js.map +1 -1
- package/dist/recording-archive.d.ts.map +1 -1
- package/dist/recording-archive.js +1 -2
- package/dist/recording-archive.js.map +1 -1
- package/dist/recording-manifest.js +1 -1
- package/dist/recording-manifest.js.map +1 -1
- package/dist/recording-partial-store.d.ts +2 -3
- package/dist/recording-partial-store.d.ts.map +1 -1
- package/dist/recording-partial-store.js +1 -1
- package/dist/recording-partial-store.js.map +1 -1
- package/dist/recording-promotion-store.d.ts +1 -2
- package/dist/recording-promotion-store.d.ts.map +1 -1
- package/dist/recording-promotion-store.js +1 -2
- package/dist/recording-promotion-store.js.map +1 -1
- package/dist/recording-schedule-commands.d.ts +1 -1
- package/dist/recording-schedule-commands.d.ts.map +1 -1
- package/dist/recording-schedule-commands.js +1 -1
- package/dist/recording-schedule-commands.js.map +1 -1
- package/dist/recording-schedule-store.js +1 -1
- package/dist/recording-schedule-store.js.map +1 -1
- package/dist/recording-schedule-systemd.js +1 -1
- package/dist/recording-schedule-systemd.js.map +1 -1
- package/dist/recording-schedule.d.ts +1 -1
- package/dist/recording-schedule.d.ts.map +1 -1
- package/dist/recording-schedule.js +1 -1
- package/dist/recording-schedule.js.map +1 -1
- package/dist/recording-sync-store.d.ts +1 -1
- package/dist/recording-sync-store.d.ts.map +1 -1
- package/dist/recording-sync-store.js +1 -2
- package/dist/recording-sync-store.js.map +1 -1
- package/dist/recording-sync.d.ts +1 -1
- package/dist/recording-sync.d.ts.map +1 -1
- package/dist/recording-sync.js +1 -1
- package/dist/recording-sync.js.map +1 -1
- package/dist/recording-writer-lease.d.ts +1 -1
- package/dist/recording-writer-lease.d.ts.map +1 -1
- package/dist/recording-writer-lease.js +1 -1
- package/dist/recording-writer-lease.js.map +1 -1
- package/dist/recordings.d.ts +1 -1
- package/dist/recordings.d.ts.map +1 -1
- package/dist/recordings.js.map +1 -1
- package/dist/remote-meetings.d.ts +19 -19
- package/dist/remote-meetings.d.ts.map +1 -1
- package/dist/remote-meetings.js +1 -1
- package/dist/remote-meetings.js.map +1 -1
- package/dist/request-events.d.ts +1 -1
- package/dist/request-events.d.ts.map +1 -1
- package/dist/request-events.js +1 -1
- package/dist/request-events.js.map +1 -1
- package/dist/run-log.d.ts +1 -1
- package/dist/run-log.d.ts.map +1 -1
- package/dist/run-log.js +1 -1
- package/dist/run-log.js.map +1 -1
- package/dist/run.d.ts +1 -1
- package/dist/run.d.ts.map +1 -1
- package/dist/run.js +6 -2
- package/dist/run.js.map +1 -1
- package/dist/series-inventory.d.ts +2 -2
- package/dist/series-inventory.js +1 -1
- package/dist/series-inventory.js.map +1 -1
- package/dist/setup-commands.d.ts +6 -15
- package/dist/setup-commands.d.ts.map +1 -1
- package/dist/setup-commands.js +7 -142
- package/dist/setup-commands.js.map +1 -1
- package/dist/store-commands.d.ts +1 -1
- package/dist/store-commands.d.ts.map +1 -1
- package/dist/store-commands.js +1 -2
- package/dist/store-commands.js.map +1 -1
- package/dist/store-connection.d.ts +1 -3
- package/dist/store-connection.d.ts.map +1 -1
- package/dist/store-connection.js +14 -14
- package/dist/store-connection.js.map +1 -1
- package/dist/sync-progress.d.ts +4 -4
- package/dist/sync-progress.d.ts.map +1 -1
- package/dist/sync-progress.js +1 -1
- package/dist/sync-progress.js.map +1 -1
- package/dist/tokens.d.ts +20 -44
- package/dist/tokens.d.ts.map +1 -1
- package/dist/tokens.js +95 -308
- package/dist/tokens.js.map +1 -1
- package/dist/unified-search.d.ts +1 -1
- package/dist/unified-search.d.ts.map +1 -1
- package/dist/upcoming-meetings.d.ts +2 -2
- package/dist/upcoming-meetings.js +1 -1
- package/dist/upcoming-meetings.js.map +1 -1
- package/dist/upgrade.d.ts.map +1 -1
- package/dist/upgrade.js +1 -2
- package/dist/upgrade.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/watch-commands.d.ts +1 -2
- package/dist/watch-commands.d.ts.map +1 -1
- package/dist/watch-commands.js +1 -2
- package/dist/watch-commands.js.map +1 -1
- package/dist/watch-service.d.ts +1 -1
- package/dist/watch-service.d.ts.map +1 -1
- package/dist/watch-service.js +1 -1
- package/dist/watch-service.js.map +1 -1
- package/dist/zoom-app.d.ts +2 -2
- package/dist/zoom-app.d.ts.map +1 -1
- package/dist/zoom-app.js +2 -2
- package/dist/zoom-app.js.map +1 -1
- package/dist/zoom-search-commands.d.ts +1 -1
- package/dist/zoom-search-commands.d.ts.map +1 -1
- package/dist/zoom-search-commands.js +1 -1
- package/dist/zoom-search-commands.js.map +1 -1
- package/dist/zoom-session.d.ts +6 -0
- package/dist/zoom-session.d.ts.map +1 -0
- package/dist/zoom-session.js +72 -0
- package/dist/zoom-session.js.map +1 -0
- package/package.json +3 -3
- package/scenarios/person-in-meetings.md +1 -1
- package/skills/zoom-cli/SKILL.md +1 -1
- package/skills/zoom-cli/references/people-and-projects.md +5 -5
- package/skills/zoom-cli/references/prepare.md +2 -2
- package/skills/zoom-cli/references/setup.md +2 -2
- package/dist/bundle/agent-F4TRJWWS.js +0 -46
- package/dist/bundle/all-profiles-RULEKTDQ.js +0 -321
- package/dist/bundle/answer-policy-6XC57AEZ.js +0 -131
- package/dist/bundle/anthropic-4NAQBZFL.js +0 -91
- package/dist/bundle/app-server-VLR42U5L.js +0 -266
- package/dist/bundle/bun-OPDGMZZQ.js +0 -169
- package/dist/bundle/bun-sqlite-HC6X4AOX.js +0 -76
- package/dist/bundle/chunk-274SLQNW.js +0 -54
- package/dist/bundle/chunk-2CI2OEZQ.js +0 -101
- package/dist/bundle/chunk-2DBF2IIC.js +0 -330
- package/dist/bundle/chunk-2GP573Q4.js +0 -67190
- package/dist/bundle/chunk-2JHVQMVC.js +0 -16
- package/dist/bundle/chunk-2XBDILVW.js +0 -53
- package/dist/bundle/chunk-3HC5F3P7.js +0 -24
- package/dist/bundle/chunk-3YM4B2GT.js +0 -63
- package/dist/bundle/chunk-4HLQ2JGK.js +0 -276
- package/dist/bundle/chunk-4N7PP76S.js +0 -6848
- package/dist/bundle/chunk-52Y4ETKU.js +0 -230
- package/dist/bundle/chunk-5HAUK3I4.js +0 -27160
- package/dist/bundle/chunk-5KYQ53EF.js +0 -357
- package/dist/bundle/chunk-5TU7Y5UW.js +0 -218
- package/dist/bundle/chunk-66ALX4ZI.js +0 -1068
- package/dist/bundle/chunk-676C2LE6.js +0 -229
- package/dist/bundle/chunk-6CWL5BKG.js +0 -3012
- package/dist/bundle/chunk-6QYZP4E2.js +0 -73
- package/dist/bundle/chunk-6VK332XS.js +0 -170
- package/dist/bundle/chunk-73MOMNLL.js +0 -94
- package/dist/bundle/chunk-7QPIUMUG.js +0 -198
- package/dist/bundle/chunk-7UVDPRFK.js +0 -259
- package/dist/bundle/chunk-A6EZK5RG.js +0 -142
- package/dist/bundle/chunk-ACI4YIEH.js +0 -331
- package/dist/bundle/chunk-AIKFOBDO.js +0 -1024
- package/dist/bundle/chunk-ASBDFXLS.js +0 -295
- package/dist/bundle/chunk-B32KZRQM.js +0 -2338
- package/dist/bundle/chunk-BBGJQMRI.js +0 -34
- package/dist/bundle/chunk-BDKVOU3I.js +0 -52
- package/dist/bundle/chunk-BP4FYANF.js +0 -335
- package/dist/bundle/chunk-D72URWJE.js +0 -532
- package/dist/bundle/chunk-DCYFT3FR.js +0 -161
- package/dist/bundle/chunk-DFDN6AUB.js +0 -21
- package/dist/bundle/chunk-DNCLQPOM.js +0 -7
- package/dist/bundle/chunk-DSZYABYL.js +0 -808
- package/dist/bundle/chunk-E745WZKY.js +0 -1199
- package/dist/bundle/chunk-EGTCQKHV.js +0 -340
- package/dist/bundle/chunk-EQG3PIH2.js +0 -108
- package/dist/bundle/chunk-ESN3W2MZ.js +0 -2624
- package/dist/bundle/chunk-FXBHOCJK.js +0 -24600
- package/dist/bundle/chunk-G46WJ7YO.js +0 -95
- package/dist/bundle/chunk-G6PETRMV.js +0 -64
- package/dist/bundle/chunk-GBHMT2IU.js +0 -755
- package/dist/bundle/chunk-GGMAIIVE.js +0 -38
- package/dist/bundle/chunk-GTKPMYK7.js +0 -72
- package/dist/bundle/chunk-GWGHH56B.js +0 -374
- package/dist/bundle/chunk-HC6VN5CO.js +0 -692
- package/dist/bundle/chunk-HP7A2ZOP.js +0 -185
- package/dist/bundle/chunk-HTQTIKWP.js +0 -928
- package/dist/bundle/chunk-HZENBDW2.js +0 -209
- package/dist/bundle/chunk-IANKXHSE.js +0 -46
- package/dist/bundle/chunk-ICPJT672.js +0 -228
- package/dist/bundle/chunk-JQ54DYAQ.js +0 -80
- package/dist/bundle/chunk-K5JGJIV2.js +0 -640
- package/dist/bundle/chunk-KJ6USQDZ.js +0 -616
- package/dist/bundle/chunk-KKFY23AK.js +0 -5150
- package/dist/bundle/chunk-KQPUVXKX.js +0 -84
- package/dist/bundle/chunk-KVJ3I7UL.js +0 -1007
- package/dist/bundle/chunk-KWU46LNK.js +0 -288
- package/dist/bundle/chunk-KXJ3JEDH.js +0 -2
- package/dist/bundle/chunk-L75SMSJR.js +0 -133
- package/dist/bundle/chunk-LAYYO4WD.js +0 -31
- package/dist/bundle/chunk-LEKKTJKK.js +0 -2336
- package/dist/bundle/chunk-M7H4MCAX.js +0 -388
- package/dist/bundle/chunk-MQLPZBMQ.js +0 -58
- package/dist/bundle/chunk-N3JLO63O.js +0 -13
- package/dist/bundle/chunk-N46F72AF.js +0 -410
- package/dist/bundle/chunk-NB7EOAUZ.js +0 -123
- package/dist/bundle/chunk-NEMX3UNN.js +0 -76
- package/dist/bundle/chunk-OBXQLFT5.js +0 -82
- package/dist/bundle/chunk-OGNO35A2.js +0 -262
- package/dist/bundle/chunk-OIPYBF43.js +0 -100
- package/dist/bundle/chunk-OO4TRVPB.js +0 -185
- package/dist/bundle/chunk-OQFQ77AY.js +0 -9352
- package/dist/bundle/chunk-PL5P7UKW.js +0 -25216
- package/dist/bundle/chunk-PMUPN6JW.js +0 -773
- package/dist/bundle/chunk-PSKTMMCO.js +0 -561
- package/dist/bundle/chunk-PWVJUIDQ.js +0 -106
- package/dist/bundle/chunk-Q7ICVP25.js +0 -18
- package/dist/bundle/chunk-QG6PILDO.js +0 -195
- package/dist/bundle/chunk-QPHBK63S.js +0 -25
- package/dist/bundle/chunk-QVSL5WJ7.js +0 -46524
- package/dist/bundle/chunk-QVYAV7F2.js +0 -58
- package/dist/bundle/chunk-R2B6PUVI.js +0 -206
- package/dist/bundle/chunk-RQOZBTNI.js +0 -86
- package/dist/bundle/chunk-T7IAWEBU.js +0 -362
- package/dist/bundle/chunk-TKNM22OH.js +0 -71
- package/dist/bundle/chunk-TKVBFJ5C.js +0 -37
- package/dist/bundle/chunk-TXDR6YSF.js +0 -23
- package/dist/bundle/chunk-TY7NDMFY.js +0 -46
- package/dist/bundle/chunk-UAWSINMC.js +0 -875
- package/dist/bundle/chunk-UKAAAOPC.js +0 -1251
- package/dist/bundle/chunk-UQCTXZEP.js +0 -214
- package/dist/bundle/chunk-UR5DBODY.js +0 -1345
- package/dist/bundle/chunk-V5EJSF2B.js +0 -12235
- package/dist/bundle/chunk-VB72LTSZ.js +0 -210
- package/dist/bundle/chunk-VB7FZOYX.js +0 -633
- package/dist/bundle/chunk-VS6WURLX.js +0 -217
- package/dist/bundle/chunk-VZ5PPYDG.js +0 -77
- package/dist/bundle/chunk-W5QHB53X.js +0 -3752
- package/dist/bundle/chunk-WMANRJR5.js +0 -555
- package/dist/bundle/chunk-WOPVBRPV.js +0 -29
- package/dist/bundle/chunk-XQ2WL3HB.js +0 -140
- package/dist/bundle/chunk-Y5E2WNWB.js +0 -35
- package/dist/bundle/chunk-Y6PVS55U.js +0 -800
- package/dist/bundle/chunk-YJXJJ2XP.js +0 -2333
- package/dist/bundle/chunk-YY7XKHDY.js +0 -79
- package/dist/bundle/chunk-ZED2CJW5.js +0 -353
- package/dist/bundle/chunk-ZOYOXWJB.js +0 -746
- package/dist/bundle/chunk-ZVVMGPBJ.js +0 -50
- package/dist/bundle/cli-U4O5XB7J.js +0 -1255
- package/dist/bundle/command-contract-FBTK6GQX.js +0 -45
- package/dist/bundle/command-server-entry-KKH6ZWJV.js +0 -175
- package/dist/bundle/config-FRJSIZNN.js +0 -118
- package/dist/bundle/decode-TPCNXEK4.js +0 -31
- package/dist/bundle/dispatch-FKMIPCPQ.js +0 -412
- package/dist/bundle/dist-7CLBCYZN.js +0 -321
- package/dist/bundle/dist-PAKDDIBT.js +0 -191
- package/dist/bundle/dist-XUFQCJXW.js +0 -7577
- package/dist/bundle/echarts-O3TNDAXJ.js +0 -42501
- package/dist/bundle/embed-WCJSFVSK.js +0 -38
- package/dist/bundle/embedder-TBBUPXBX.js +0 -111
- package/dist/bundle/failure-XTWBYI2A.js +0 -25
- package/dist/bundle/first-run-ELEMFW42.js +0 -29
- package/dist/bundle/first-screen-DIOBWMKP.js +0 -46
- package/dist/bundle/instructions-AMH5RWVJ.js +0 -11
- package/dist/bundle/mcp-5HFPWC3W.js +0 -167
- package/dist/bundle/meeting-combined-UXCF4SJ3.js +0 -26
- package/dist/bundle/meeting-model-3BZJ3EQP.js +0 -26
- package/dist/bundle/meeting-semantic-3HU7I2SJ.js +0 -23
- package/dist/bundle/meetings-XWMB6FOH.js +0 -332
- package/dist/bundle/node-EGMCBAO7.js +0 -176
- package/dist/bundle/node-KM3CUABH.js +0 -2340
- package/dist/bundle/node-TLZSIHIJ.js +0 -21
- package/dist/bundle/node-sqlite-IJBWENFX.js +0 -74
- package/dist/bundle/oauth-SZDDAP7A.js +0 -20
- package/dist/bundle/open-NS3TMKZX.js +0 -23
- package/dist/bundle/openai-4DN6WI3B.js +0 -28
- package/dist/bundle/process-SGHEN6MQ.js +0 -91
- package/dist/bundle/prompt-HJFMPFVC.js +0 -17
- package/dist/bundle/public-C2ZB2AGQ.js +0 -198
- package/dist/bundle/recognize-2SEI5PPM.js +0 -26
- package/dist/bundle/remote-2DMS74XE.js +0 -32
- package/dist/bundle/rerank-H6GCYVIA.js +0 -52
- package/dist/bundle/run-log-QU26SUZP.js +0 -145
- package/dist/bundle/serve-ODVRPFJO.js +0 -199
- package/dist/bundle/server-NBPF6IDZ.js +0 -95
- package/dist/bundle/server-PCLIO24L.js +0 -228
- package/dist/bundle/services-4QAPXBLO.js +0 -607
- package/dist/bundle/speech-MA6ZT3WE.js +0 -89
- package/dist/bundle/sqlite-runtime-PVMAUXRN.js +0 -20
- package/dist/bundle/state-QFMTYUME.js +0 -36
- package/dist/bundle/store-25OTAQC3.js +0 -187
- package/dist/bundle/store-F724QIKJ.js +0 -305
- package/dist/bundle/store-connection-OGPXANGB.js +0 -111
- package/dist/bundle/store-maintenance-command-2CM7LLNQ.js +0 -83
- package/dist/bundle/streaming-S22C4DG5.js +0 -18
- package/dist/bundle/surface-7PXHWCF6.js +0 -81
- package/dist/bundle/tokens-NLUHA2DW.js +0 -25
- package/dist/login.d.ts +0 -16
- package/dist/login.d.ts.map +0 -1
- package/dist/login.js +0 -98
- package/dist/login.js.map +0 -1
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
-
const require = __bundleRequire(import.meta.url);
|
|
3
|
-
import "./chunk-5HAUK3I4.js";
|
|
4
|
-
import "./chunk-7QPIUMUG.js";
|
|
5
|
-
import "./chunk-K5JGJIV2.js";
|
|
6
|
-
import "./chunk-TKVBFJ5C.js";
|
|
7
|
-
import "./chunk-UR5DBODY.js";
|
|
8
|
-
import "./chunk-3HC5F3P7.js";
|
|
9
|
-
import "./chunk-M7H4MCAX.js";
|
|
10
|
-
import "./chunk-BDKVOU3I.js";
|
|
11
|
-
import "./chunk-HZENBDW2.js";
|
|
12
|
-
import "./chunk-VZ5PPYDG.js";
|
|
13
|
-
import "./chunk-DCYFT3FR.js";
|
|
14
|
-
import "./chunk-OQFQ77AY.js";
|
|
15
|
-
import "./chunk-ICPJT672.js";
|
|
16
|
-
import "./chunk-UKAAAOPC.js";
|
|
17
|
-
import "./chunk-ZED2CJW5.js";
|
|
18
|
-
import "./chunk-EGTCQKHV.js";
|
|
19
|
-
import "./chunk-KQPUVXKX.js";
|
|
20
|
-
import "./chunk-RQOZBTNI.js";
|
|
21
|
-
import "./chunk-QVSL5WJ7.js";
|
|
22
|
-
import "./chunk-676C2LE6.js";
|
|
23
|
-
import "./chunk-QPHBK63S.js";
|
|
24
|
-
import "./chunk-N46F72AF.js";
|
|
25
|
-
import "./chunk-GBHMT2IU.js";
|
|
26
|
-
import "./chunk-GWGHH56B.js";
|
|
27
|
-
import "./chunk-6VK332XS.js";
|
|
28
|
-
import "./chunk-5KYQ53EF.js";
|
|
29
|
-
import "./chunk-NB7EOAUZ.js";
|
|
30
|
-
import "./chunk-WOPVBRPV.js";
|
|
31
|
-
import "./chunk-5TU7Y5UW.js";
|
|
32
|
-
import "./chunk-A6EZK5RG.js";
|
|
33
|
-
import "./chunk-TY7NDMFY.js";
|
|
34
|
-
import "./chunk-XQ2WL3HB.js";
|
|
35
|
-
import "./chunk-AIKFOBDO.js";
|
|
36
|
-
import "./chunk-QG6PILDO.js";
|
|
37
|
-
import "./chunk-HC6VN5CO.js";
|
|
38
|
-
import "./chunk-HTQTIKWP.js";
|
|
39
|
-
import "./chunk-NEMX3UNN.js";
|
|
40
|
-
import "./chunk-KXJ3JEDH.js";
|
|
41
|
-
import "./chunk-66ALX4ZI.js";
|
|
42
|
-
import "./chunk-7UVDPRFK.js";
|
|
43
|
-
import "./chunk-HP7A2ZOP.js";
|
|
44
|
-
import "./chunk-KVJ3I7UL.js";
|
|
45
|
-
import "./chunk-OO4TRVPB.js";
|
|
46
|
-
import "./chunk-N3JLO63O.js";
|
|
47
|
-
import "./chunk-Q7ICVP25.js";
|
|
48
|
-
import "./chunk-L75SMSJR.js";
|
|
49
|
-
import "./chunk-V5EJSF2B.js";
|
|
50
|
-
import "./chunk-2CI2OEZQ.js";
|
|
51
|
-
import "./chunk-TKNM22OH.js";
|
|
52
|
-
import "./chunk-T7IAWEBU.js";
|
|
53
|
-
import "./chunk-3YM4B2GT.js";
|
|
54
|
-
import "./chunk-QVYAV7F2.js";
|
|
55
|
-
import "./chunk-KJ6USQDZ.js";
|
|
56
|
-
import "./chunk-G6PETRMV.js";
|
|
57
|
-
import "./chunk-BP4FYANF.js";
|
|
58
|
-
import "./chunk-6QYZP4E2.js";
|
|
59
|
-
import "./chunk-ACI4YIEH.js";
|
|
60
|
-
import "./chunk-4HLQ2JGK.js";
|
|
61
|
-
import "./chunk-OIPYBF43.js";
|
|
62
|
-
import "./chunk-OBXQLFT5.js";
|
|
63
|
-
import "./chunk-2GP573Q4.js";
|
|
64
|
-
import "./chunk-JQ54DYAQ.js";
|
|
65
|
-
import "./chunk-PMUPN6JW.js";
|
|
66
|
-
import "./chunk-YJXJJ2XP.js";
|
|
67
|
-
import "./chunk-LEKKTJKK.js";
|
|
68
|
-
import "./chunk-YY7XKHDY.js";
|
|
69
|
-
import "./chunk-2JHVQMVC.js";
|
|
70
|
-
import "./chunk-ZOYOXWJB.js";
|
|
71
|
-
import {
|
|
72
|
-
startRun
|
|
73
|
-
} from "./chunk-WMANRJR5.js";
|
|
74
|
-
import "./chunk-GTKPMYK7.js";
|
|
75
|
-
import "./chunk-DSZYABYL.js";
|
|
76
|
-
import "./chunk-73MOMNLL.js";
|
|
77
|
-
import "./chunk-LAYYO4WD.js";
|
|
78
|
-
import "./chunk-E745WZKY.js";
|
|
79
|
-
import "./chunk-4N7PP76S.js";
|
|
80
|
-
import "./chunk-TXDR6YSF.js";
|
|
81
|
-
import "./chunk-D72URWJE.js";
|
|
82
|
-
import "./chunk-274SLQNW.js";
|
|
83
|
-
import "./chunk-PWVJUIDQ.js";
|
|
84
|
-
import "./chunk-G46WJ7YO.js";
|
|
85
|
-
import "./chunk-GGMAIIVE.js";
|
|
86
|
-
import "./chunk-KKFY23AK.js";
|
|
87
|
-
import "./chunk-UAWSINMC.js";
|
|
88
|
-
import "./chunk-DNCLQPOM.js";
|
|
89
|
-
import {
|
|
90
|
-
createRecordLog
|
|
91
|
-
} from "./chunk-6CWL5BKG.js";
|
|
92
|
-
import "./chunk-ESN3W2MZ.js";
|
|
93
|
-
import "./chunk-Y5E2WNWB.js";
|
|
94
|
-
import "./chunk-IANKXHSE.js";
|
|
95
|
-
import "./chunk-BBGJQMRI.js";
|
|
96
|
-
import {
|
|
97
|
-
__name
|
|
98
|
-
} from "./chunk-ZVVMGPBJ.js";
|
|
99
|
-
|
|
100
|
-
// dist/run-log.js
|
|
101
|
-
import { join } from "node:path";
|
|
102
|
-
var lazyRunLog = /* @__PURE__ */ __name((options) => {
|
|
103
|
-
let opened;
|
|
104
|
-
let failed = false;
|
|
105
|
-
const open = /* @__PURE__ */ __name(() => {
|
|
106
|
-
if (failed)
|
|
107
|
-
return void 0;
|
|
108
|
-
try {
|
|
109
|
-
if (!opened) {
|
|
110
|
-
const resource = { service: "zm", version: options.version };
|
|
111
|
-
const run = startRun({
|
|
112
|
-
runsDir: options.runsDir,
|
|
113
|
-
command: options.command,
|
|
114
|
-
service: resource.service,
|
|
115
|
-
cliVersion: options.version,
|
|
116
|
-
...options.onError ? { onError: options.onError } : {}
|
|
117
|
-
});
|
|
118
|
-
const log = createRecordLog({
|
|
119
|
-
to: join(run.dir, "events.jsonl"),
|
|
120
|
-
runId: run.id,
|
|
121
|
-
command: options.command,
|
|
122
|
-
resource,
|
|
123
|
-
allow: options.allow,
|
|
124
|
-
...options.onError ? { onError: options.onError } : {}
|
|
125
|
-
});
|
|
126
|
-
opened = { finish: /* @__PURE__ */ __name((status) => run.finish(status), "finish"), log };
|
|
127
|
-
}
|
|
128
|
-
return opened.log;
|
|
129
|
-
} catch (error) {
|
|
130
|
-
failed = true;
|
|
131
|
-
options.onError?.(error instanceof Error ? error : new Error("could not open the run log"));
|
|
132
|
-
return void 0;
|
|
133
|
-
}
|
|
134
|
-
}, "open");
|
|
135
|
-
const at = /* @__PURE__ */ __name((level) => (event) => open()?.[level](event), "at");
|
|
136
|
-
return {
|
|
137
|
-
log: { debug: at("debug"), info: at("info"), warn: at("warn"), error: at("error") },
|
|
138
|
-
finish: /* @__PURE__ */ __name(async (status) => {
|
|
139
|
-
await opened?.finish(status);
|
|
140
|
-
}, "finish")
|
|
141
|
-
};
|
|
142
|
-
}, "lazyRunLog");
|
|
143
|
-
export {
|
|
144
|
-
lazyRunLog
|
|
145
|
-
};
|
|
@@ -1,199 +0,0 @@
|
|
|
1
|
-
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
-
const require = __bundleRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
listen
|
|
5
|
-
} from "./chunk-VZ5PPYDG.js";
|
|
6
|
-
import {
|
|
7
|
-
ownerLogin
|
|
8
|
-
} from "./chunk-KWU46LNK.js";
|
|
9
|
-
import {
|
|
10
|
-
activityRecorder,
|
|
11
|
-
calledTools,
|
|
12
|
-
httpActivityFile,
|
|
13
|
-
httpLock
|
|
14
|
-
} from "./chunk-DCYFT3FR.js";
|
|
15
|
-
import {
|
|
16
|
-
WebStandardStreamableHTTPServerTransport,
|
|
17
|
-
createMcpHandler,
|
|
18
|
-
getOAuthProtectedResourceMetadataUrl,
|
|
19
|
-
hostHeaderValidationResponse,
|
|
20
|
-
isLegacyRequest,
|
|
21
|
-
oauthMetadataResponse,
|
|
22
|
-
requireBearerAuth
|
|
23
|
-
} from "./chunk-PL5P7UKW.js";
|
|
24
|
-
import "./chunk-RQOZBTNI.js";
|
|
25
|
-
import "./chunk-3YM4B2GT.js";
|
|
26
|
-
import "./chunk-6CWL5BKG.js";
|
|
27
|
-
import "./chunk-ESN3W2MZ.js";
|
|
28
|
-
import "./chunk-Y5E2WNWB.js";
|
|
29
|
-
import {
|
|
30
|
-
CliError
|
|
31
|
-
} from "./chunk-IANKXHSE.js";
|
|
32
|
-
import "./chunk-BBGJQMRI.js";
|
|
33
|
-
import {
|
|
34
|
-
__name
|
|
35
|
-
} from "./chunk-ZVVMGPBJ.js";
|
|
36
|
-
|
|
37
|
-
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/mcp/http/serve.js
|
|
38
|
-
import { randomUUID } from "node:crypto";
|
|
39
|
-
var MCP_PATH = "/mcp";
|
|
40
|
-
var AS_METADATA = "/.well-known/oauth-authorization-server";
|
|
41
|
-
var LOCAL = ["localhost", "127.0.0.1"];
|
|
42
|
-
var MAX_SESSIONS = 20;
|
|
43
|
-
var MAX_LOGIN_BODY = 64 * 1024;
|
|
44
|
-
var SESSION_IDLE_MS = 60 * 60 * 1e3;
|
|
45
|
-
var sessionMissing = /* @__PURE__ */ __name(() => new Response(JSON.stringify({ jsonrpc: "2.0", error: { code: -32001, message: "Session not found" }, id: null }), {
|
|
46
|
-
status: 404,
|
|
47
|
-
headers: { "content-type": "application/json" }
|
|
48
|
-
}), "sessionMissing");
|
|
49
|
-
var legacySessions = /* @__PURE__ */ __name((build, now) => {
|
|
50
|
-
const sessions = /* @__PURE__ */ new Map();
|
|
51
|
-
const drop = /* @__PURE__ */ __name(async (id) => {
|
|
52
|
-
const one = sessions.get(id);
|
|
53
|
-
sessions.delete(id);
|
|
54
|
-
await one?.close();
|
|
55
|
-
}, "drop");
|
|
56
|
-
const handle = /* @__PURE__ */ __name(async (request, auth) => {
|
|
57
|
-
for (const [id2, one] of sessions)
|
|
58
|
-
if (now() - one.seen > SESSION_IDLE_MS)
|
|
59
|
-
await drop(id2);
|
|
60
|
-
const id = request.headers.get("mcp-session-id");
|
|
61
|
-
if (id) {
|
|
62
|
-
const known = sessions.get(id);
|
|
63
|
-
if (!known || known.clientId !== auth.clientId)
|
|
64
|
-
return sessionMissing();
|
|
65
|
-
known.seen = now();
|
|
66
|
-
return known.transport.handleRequest(request, { authInfo: auth });
|
|
67
|
-
}
|
|
68
|
-
const server = build();
|
|
69
|
-
const transport = new WebStandardStreamableHTTPServerTransport({
|
|
70
|
-
sessionIdGenerator: /* @__PURE__ */ __name(() => randomUUID(), "sessionIdGenerator"),
|
|
71
|
-
onsessionclosed: /* @__PURE__ */ __name((closed) => void sessions.delete(closed), "onsessionclosed")
|
|
72
|
-
});
|
|
73
|
-
await server.connect(transport);
|
|
74
|
-
const response = await transport.handleRequest(request, { authInfo: auth });
|
|
75
|
-
if (!transport.sessionId) {
|
|
76
|
-
await server.close();
|
|
77
|
-
return response;
|
|
78
|
-
}
|
|
79
|
-
sessions.set(transport.sessionId, { transport, close: /* @__PURE__ */ __name(() => server.close(), "close"), clientId: auth.clientId, seen: now() });
|
|
80
|
-
while (sessions.size > MAX_SESSIONS)
|
|
81
|
-
await drop(sessions.keys().next().value);
|
|
82
|
-
return response;
|
|
83
|
-
}, "handle");
|
|
84
|
-
return {
|
|
85
|
-
handle,
|
|
86
|
-
close: /* @__PURE__ */ __name(async () => {
|
|
87
|
-
for (const id of [...sessions.keys()])
|
|
88
|
-
await drop(id);
|
|
89
|
-
}, "close")
|
|
90
|
-
};
|
|
91
|
-
}, "legacySessions");
|
|
92
|
-
var metadataRequest = /* @__PURE__ */ __name((request, path, base) => {
|
|
93
|
-
const url = new URL(request.url);
|
|
94
|
-
const inserted = base && path === `${AS_METADATA}${base}`;
|
|
95
|
-
if (!inserted && url.pathname === path)
|
|
96
|
-
return request;
|
|
97
|
-
url.pathname = inserted ? AS_METADATA : path;
|
|
98
|
-
return new Request(url, { method: request.method, headers: request.headers });
|
|
99
|
-
}, "metadataRequest");
|
|
100
|
-
var toolsIn = /* @__PURE__ */ __name(async (request) => {
|
|
101
|
-
if (request.method !== "POST")
|
|
102
|
-
return [];
|
|
103
|
-
try {
|
|
104
|
-
return calledTools(await request.clone().json());
|
|
105
|
-
} catch {
|
|
106
|
-
return [];
|
|
107
|
-
}
|
|
108
|
-
}, "toolsIn");
|
|
109
|
-
var serveOverHttp = /* @__PURE__ */ __name(async (build, options) => {
|
|
110
|
-
const { publicUrl, port, tokenFile, appName, reaches, onCode, onError, now, lockFile, version } = options;
|
|
111
|
-
const lock = lockFile ? httpLock(lockFile, {
|
|
112
|
-
pid: process.pid,
|
|
113
|
-
startedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
114
|
-
port,
|
|
115
|
-
publicUrl: publicUrl.href,
|
|
116
|
-
...version ? { version } : {}
|
|
117
|
-
}) : void 0;
|
|
118
|
-
if (lock?.held)
|
|
119
|
-
throw new CliError("validation_error", `${appName} already serves MCP over HTTP for this profile on port ${lock.held.port} (PID ${lock.held.pid}, since ${lock.held.startedAt})`);
|
|
120
|
-
const base = publicUrl.pathname === "/" ? "" : publicUrl.pathname.replace(/\/+$/, "");
|
|
121
|
-
const issuer = new URL(`${publicUrl.origin}${base}`);
|
|
122
|
-
const resource = new URL(`${base}${MCP_PATH}`, publicUrl.origin);
|
|
123
|
-
const mcpPath = resource.pathname;
|
|
124
|
-
const publicPath = /* @__PURE__ */ __name((path) => base && path !== base && !path.startsWith(`${base}/`) && !path.startsWith("/.well-known/") ? `${base}${path}` : path, "publicPath");
|
|
125
|
-
const login = ownerLogin({
|
|
126
|
-
issuer,
|
|
127
|
-
resource,
|
|
128
|
-
file: tokenFile,
|
|
129
|
-
appName,
|
|
130
|
-
...reaches ? { reaches } : {},
|
|
131
|
-
onCode: /* @__PURE__ */ __name((code, expires) => {
|
|
132
|
-
lock?.update({ loginCode: code, loginCodeExpiresAt: expires.toISOString() });
|
|
133
|
-
onCode(code, expires);
|
|
134
|
-
}, "onCode"),
|
|
135
|
-
...now ? { now } : {}
|
|
136
|
-
});
|
|
137
|
-
const insecure = issuer.protocol === "http:" && LOCAL.includes(issuer.hostname);
|
|
138
|
-
const mcp = createMcpHandler(build, { legacy: "reject", ...onError ? { onerror: onError } : {} });
|
|
139
|
-
const legacy = legacySessions(build, now ?? Date.now);
|
|
140
|
-
const bearer = requireBearerAuth({
|
|
141
|
-
verifier: login.verifier,
|
|
142
|
-
resourceMetadataUrl: getOAuthProtectedResourceMetadataUrl(resource)
|
|
143
|
-
});
|
|
144
|
-
const activity = activityRecorder(httpActivityFile(tokenFile), now);
|
|
145
|
-
const allowedHosts = [.../* @__PURE__ */ new Set([publicUrl.hostname, ...LOCAL])];
|
|
146
|
-
const allowedOrigins = [publicUrl.origin];
|
|
147
|
-
const listening = await listen(async (request) => {
|
|
148
|
-
const refused = hostHeaderValidationResponse(request, allowedHosts);
|
|
149
|
-
if (refused)
|
|
150
|
-
return refused;
|
|
151
|
-
const path = publicPath(new URL(request.url).pathname);
|
|
152
|
-
const discovery = oauthMetadataResponse(metadataRequest(request, path, base), {
|
|
153
|
-
oauthMetadata: login.metadata,
|
|
154
|
-
resourceServerUrl: resource,
|
|
155
|
-
resourceName: appName,
|
|
156
|
-
...insecure ? { dangerouslyAllowInsecureIssuerUrl: true } : {}
|
|
157
|
-
});
|
|
158
|
-
if (discovery)
|
|
159
|
-
return discovery;
|
|
160
|
-
if (Number(request.headers.get("content-length") ?? 0) > MAX_LOGIN_BODY && path !== mcpPath)
|
|
161
|
-
return new Response("Request too large", { status: 413 });
|
|
162
|
-
const origin = request.headers.get("origin");
|
|
163
|
-
if (origin && !allowedOrigins.includes(origin))
|
|
164
|
-
return new Response("Origin not allowed", { status: 403 });
|
|
165
|
-
const answered = await login.handle(request, path);
|
|
166
|
-
if (answered)
|
|
167
|
-
return answered;
|
|
168
|
-
if (path !== mcpPath)
|
|
169
|
-
return new Response("Not found", { status: 404 });
|
|
170
|
-
const auth = await bearer(request);
|
|
171
|
-
if (auth instanceof Response)
|
|
172
|
-
return auth;
|
|
173
|
-
activity.record(auth.clientId, await toolsIn(request));
|
|
174
|
-
return await isLegacyRequest(request) ? legacy.handle(request, auth) : mcp.fetch(request, { authInfo: auth });
|
|
175
|
-
}, { host: "127.0.0.1", port }).catch((error) => {
|
|
176
|
-
login.close();
|
|
177
|
-
lock?.release();
|
|
178
|
-
throw error;
|
|
179
|
-
});
|
|
180
|
-
lock?.update({ listeningAt: (/* @__PURE__ */ new Date()).toISOString() });
|
|
181
|
-
return {
|
|
182
|
-
url: listening.url,
|
|
183
|
-
close: /* @__PURE__ */ __name(async () => {
|
|
184
|
-
login.close();
|
|
185
|
-
activity.flush();
|
|
186
|
-
try {
|
|
187
|
-
await listening.close();
|
|
188
|
-
await legacy.close();
|
|
189
|
-
await mcp.close();
|
|
190
|
-
} finally {
|
|
191
|
-
lock?.release();
|
|
192
|
-
}
|
|
193
|
-
}, "close")
|
|
194
|
-
};
|
|
195
|
-
}, "serveOverHttp");
|
|
196
|
-
export {
|
|
197
|
-
MCP_PATH,
|
|
198
|
-
serveOverHttp
|
|
199
|
-
};
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
-
const require = __bundleRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
PER_RUN,
|
|
5
|
-
createServer,
|
|
6
|
-
envelope,
|
|
7
|
-
serveOverHttpUntilStopped,
|
|
8
|
-
serveOverStdio
|
|
9
|
-
} from "./chunk-Y6PVS55U.js";
|
|
10
|
-
import "./chunk-UR5DBODY.js";
|
|
11
|
-
import "./chunk-M7H4MCAX.js";
|
|
12
|
-
import "./chunk-VB7FZOYX.js";
|
|
13
|
-
import "./chunk-W5QHB53X.js";
|
|
14
|
-
import "./chunk-BDKVOU3I.js";
|
|
15
|
-
import "./chunk-2XBDILVW.js";
|
|
16
|
-
import "./chunk-PSKTMMCO.js";
|
|
17
|
-
import "./chunk-HZENBDW2.js";
|
|
18
|
-
import "./chunk-EQG3PIH2.js";
|
|
19
|
-
import "./chunk-DCYFT3FR.js";
|
|
20
|
-
import "./chunk-PL5P7UKW.js";
|
|
21
|
-
import "./chunk-UKAAAOPC.js";
|
|
22
|
-
import "./chunk-ZED2CJW5.js";
|
|
23
|
-
import "./chunk-EGTCQKHV.js";
|
|
24
|
-
import "./chunk-KQPUVXKX.js";
|
|
25
|
-
import "./chunk-RQOZBTNI.js";
|
|
26
|
-
import "./chunk-QVSL5WJ7.js";
|
|
27
|
-
import "./chunk-676C2LE6.js";
|
|
28
|
-
import "./chunk-QPHBK63S.js";
|
|
29
|
-
import "./chunk-N46F72AF.js";
|
|
30
|
-
import "./chunk-GBHMT2IU.js";
|
|
31
|
-
import "./chunk-GWGHH56B.js";
|
|
32
|
-
import "./chunk-6VK332XS.js";
|
|
33
|
-
import "./chunk-NB7EOAUZ.js";
|
|
34
|
-
import "./chunk-WOPVBRPV.js";
|
|
35
|
-
import "./chunk-A6EZK5RG.js";
|
|
36
|
-
import "./chunk-TY7NDMFY.js";
|
|
37
|
-
import "./chunk-AIKFOBDO.js";
|
|
38
|
-
import "./chunk-HC6VN5CO.js";
|
|
39
|
-
import "./chunk-NEMX3UNN.js";
|
|
40
|
-
import "./chunk-KXJ3JEDH.js";
|
|
41
|
-
import "./chunk-66ALX4ZI.js";
|
|
42
|
-
import "./chunk-7UVDPRFK.js";
|
|
43
|
-
import "./chunk-HP7A2ZOP.js";
|
|
44
|
-
import "./chunk-KVJ3I7UL.js";
|
|
45
|
-
import "./chunk-Q7ICVP25.js";
|
|
46
|
-
import "./chunk-L75SMSJR.js";
|
|
47
|
-
import "./chunk-V5EJSF2B.js";
|
|
48
|
-
import "./chunk-2CI2OEZQ.js";
|
|
49
|
-
import "./chunk-TKNM22OH.js";
|
|
50
|
-
import "./chunk-T7IAWEBU.js";
|
|
51
|
-
import "./chunk-3YM4B2GT.js";
|
|
52
|
-
import "./chunk-QVYAV7F2.js";
|
|
53
|
-
import "./chunk-KJ6USQDZ.js";
|
|
54
|
-
import "./chunk-G6PETRMV.js";
|
|
55
|
-
import "./chunk-BP4FYANF.js";
|
|
56
|
-
import "./chunk-6QYZP4E2.js";
|
|
57
|
-
import "./chunk-ACI4YIEH.js";
|
|
58
|
-
import "./chunk-4HLQ2JGK.js";
|
|
59
|
-
import "./chunk-OBXQLFT5.js";
|
|
60
|
-
import "./chunk-2GP573Q4.js";
|
|
61
|
-
import "./chunk-JQ54DYAQ.js";
|
|
62
|
-
import "./chunk-PMUPN6JW.js";
|
|
63
|
-
import "./chunk-YJXJJ2XP.js";
|
|
64
|
-
import "./chunk-LEKKTJKK.js";
|
|
65
|
-
import "./chunk-YY7XKHDY.js";
|
|
66
|
-
import "./chunk-2JHVQMVC.js";
|
|
67
|
-
import "./chunk-ZOYOXWJB.js";
|
|
68
|
-
import "./chunk-WMANRJR5.js";
|
|
69
|
-
import "./chunk-GTKPMYK7.js";
|
|
70
|
-
import "./chunk-DSZYABYL.js";
|
|
71
|
-
import "./chunk-73MOMNLL.js";
|
|
72
|
-
import "./chunk-LAYYO4WD.js";
|
|
73
|
-
import "./chunk-E745WZKY.js";
|
|
74
|
-
import "./chunk-4N7PP76S.js";
|
|
75
|
-
import "./chunk-TXDR6YSF.js";
|
|
76
|
-
import "./chunk-D72URWJE.js";
|
|
77
|
-
import "./chunk-274SLQNW.js";
|
|
78
|
-
import "./chunk-G46WJ7YO.js";
|
|
79
|
-
import "./chunk-GGMAIIVE.js";
|
|
80
|
-
import "./chunk-KKFY23AK.js";
|
|
81
|
-
import "./chunk-UAWSINMC.js";
|
|
82
|
-
import "./chunk-DNCLQPOM.js";
|
|
83
|
-
import "./chunk-6CWL5BKG.js";
|
|
84
|
-
import "./chunk-ESN3W2MZ.js";
|
|
85
|
-
import "./chunk-Y5E2WNWB.js";
|
|
86
|
-
import "./chunk-IANKXHSE.js";
|
|
87
|
-
import "./chunk-BBGJQMRI.js";
|
|
88
|
-
import "./chunk-ZVVMGPBJ.js";
|
|
89
|
-
export {
|
|
90
|
-
PER_RUN,
|
|
91
|
-
createServer,
|
|
92
|
-
envelope,
|
|
93
|
-
serveOverHttpUntilStopped,
|
|
94
|
-
serveOverStdio
|
|
95
|
-
};
|
|
@@ -1,228 +0,0 @@
|
|
|
1
|
-
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
-
const require = __bundleRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
botInstructions
|
|
5
|
-
} from "./chunk-3HC5F3P7.js";
|
|
6
|
-
import {
|
|
7
|
-
skillResources
|
|
8
|
-
} from "./chunk-M7H4MCAX.js";
|
|
9
|
-
import {
|
|
10
|
-
StdioServerTransport,
|
|
11
|
-
answeredWire,
|
|
12
|
-
serveStdio
|
|
13
|
-
} from "./chunk-VB7FZOYX.js";
|
|
14
|
-
import {
|
|
15
|
-
runCommandForAgent,
|
|
16
|
-
toolsFromCommands
|
|
17
|
-
} from "./chunk-W5QHB53X.js";
|
|
18
|
-
import "./chunk-BDKVOU3I.js";
|
|
19
|
-
import {
|
|
20
|
-
answered,
|
|
21
|
-
normal,
|
|
22
|
-
registerCommands
|
|
23
|
-
} from "./chunk-PSKTMMCO.js";
|
|
24
|
-
import {
|
|
25
|
-
agentJson
|
|
26
|
-
} from "./chunk-HZENBDW2.js";
|
|
27
|
-
import {
|
|
28
|
-
callerOf
|
|
29
|
-
} from "./chunk-EQG3PIH2.js";
|
|
30
|
-
import {
|
|
31
|
-
McpServer
|
|
32
|
-
} from "./chunk-PL5P7UKW.js";
|
|
33
|
-
import {
|
|
34
|
-
wholeList
|
|
35
|
-
} from "./chunk-ZED2CJW5.js";
|
|
36
|
-
import "./chunk-EGTCQKHV.js";
|
|
37
|
-
import "./chunk-KQPUVXKX.js";
|
|
38
|
-
import "./chunk-QVSL5WJ7.js";
|
|
39
|
-
import "./chunk-676C2LE6.js";
|
|
40
|
-
import "./chunk-QPHBK63S.js";
|
|
41
|
-
import "./chunk-N46F72AF.js";
|
|
42
|
-
import "./chunk-GBHMT2IU.js";
|
|
43
|
-
import "./chunk-GWGHH56B.js";
|
|
44
|
-
import "./chunk-6VK332XS.js";
|
|
45
|
-
import "./chunk-NB7EOAUZ.js";
|
|
46
|
-
import "./chunk-WOPVBRPV.js";
|
|
47
|
-
import "./chunk-A6EZK5RG.js";
|
|
48
|
-
import "./chunk-TY7NDMFY.js";
|
|
49
|
-
import "./chunk-AIKFOBDO.js";
|
|
50
|
-
import "./chunk-HC6VN5CO.js";
|
|
51
|
-
import "./chunk-NEMX3UNN.js";
|
|
52
|
-
import "./chunk-KXJ3JEDH.js";
|
|
53
|
-
import "./chunk-66ALX4ZI.js";
|
|
54
|
-
import "./chunk-7UVDPRFK.js";
|
|
55
|
-
import "./chunk-HP7A2ZOP.js";
|
|
56
|
-
import "./chunk-KVJ3I7UL.js";
|
|
57
|
-
import {
|
|
58
|
-
changesMessenger,
|
|
59
|
-
flatten,
|
|
60
|
-
itemOf
|
|
61
|
-
} from "./chunk-V5EJSF2B.js";
|
|
62
|
-
import "./chunk-2CI2OEZQ.js";
|
|
63
|
-
import {
|
|
64
|
-
MESSENGER_CHANGE_REFUSAL,
|
|
65
|
-
readOnlyLockOf,
|
|
66
|
-
readOnlyRefusal
|
|
67
|
-
} from "./chunk-TKNM22OH.js";
|
|
68
|
-
import "./chunk-T7IAWEBU.js";
|
|
69
|
-
import "./chunk-3YM4B2GT.js";
|
|
70
|
-
import "./chunk-QVYAV7F2.js";
|
|
71
|
-
import "./chunk-KJ6USQDZ.js";
|
|
72
|
-
import "./chunk-G6PETRMV.js";
|
|
73
|
-
import "./chunk-BP4FYANF.js";
|
|
74
|
-
import "./chunk-6QYZP4E2.js";
|
|
75
|
-
import "./chunk-ACI4YIEH.js";
|
|
76
|
-
import "./chunk-4HLQ2JGK.js";
|
|
77
|
-
import "./chunk-OBXQLFT5.js";
|
|
78
|
-
import "./chunk-2GP573Q4.js";
|
|
79
|
-
import "./chunk-JQ54DYAQ.js";
|
|
80
|
-
import "./chunk-PMUPN6JW.js";
|
|
81
|
-
import "./chunk-YJXJJ2XP.js";
|
|
82
|
-
import "./chunk-LEKKTJKK.js";
|
|
83
|
-
import "./chunk-YY7XKHDY.js";
|
|
84
|
-
import "./chunk-2JHVQMVC.js";
|
|
85
|
-
import "./chunk-ZOYOXWJB.js";
|
|
86
|
-
import "./chunk-WMANRJR5.js";
|
|
87
|
-
import "./chunk-GTKPMYK7.js";
|
|
88
|
-
import "./chunk-DSZYABYL.js";
|
|
89
|
-
import "./chunk-73MOMNLL.js";
|
|
90
|
-
import "./chunk-LAYYO4WD.js";
|
|
91
|
-
import "./chunk-E745WZKY.js";
|
|
92
|
-
import "./chunk-4N7PP76S.js";
|
|
93
|
-
import "./chunk-TXDR6YSF.js";
|
|
94
|
-
import "./chunk-D72URWJE.js";
|
|
95
|
-
import "./chunk-274SLQNW.js";
|
|
96
|
-
import "./chunk-G46WJ7YO.js";
|
|
97
|
-
import "./chunk-GGMAIIVE.js";
|
|
98
|
-
import "./chunk-KKFY23AK.js";
|
|
99
|
-
import "./chunk-UAWSINMC.js";
|
|
100
|
-
import "./chunk-DNCLQPOM.js";
|
|
101
|
-
import "./chunk-6CWL5BKG.js";
|
|
102
|
-
import {
|
|
103
|
-
mcpErrorResult,
|
|
104
|
-
object
|
|
105
|
-
} from "./chunk-ESN3W2MZ.js";
|
|
106
|
-
import "./chunk-Y5E2WNWB.js";
|
|
107
|
-
import "./chunk-IANKXHSE.js";
|
|
108
|
-
import "./chunk-BBGJQMRI.js";
|
|
109
|
-
import {
|
|
110
|
-
__name
|
|
111
|
-
} from "./chunk-ZVVMGPBJ.js";
|
|
112
|
-
|
|
113
|
-
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/mcp/bot/server.js
|
|
114
|
-
import { randomUUID } from "node:crypto";
|
|
115
|
-
var body = /* @__PURE__ */ __name((command, value) => Array.isArray(value) ? wholeList(`bot ${command}`, value) : value !== null && typeof value === "object" && ("item" in value || "items" in value) ? value : itemOf(value !== null && typeof value === "object" ? value : { value }), "body");
|
|
116
|
-
var createBotServer = /* @__PURE__ */ __name((options) => {
|
|
117
|
-
const { bot, program, settings, env } = options;
|
|
118
|
-
const command = bot.app.command;
|
|
119
|
-
const levels = options.levels ?? (() => settings.permissions);
|
|
120
|
-
const authority = /* @__PURE__ */ __name((path) => options.authority?.(path) === true || path[0] === "config" && (path[1] === "set" || path[1] === "unset"), "authority");
|
|
121
|
-
const catalogue = {
|
|
122
|
-
includeUnavailable: true,
|
|
123
|
-
levels: settings.permissions,
|
|
124
|
-
currentLevels: levels,
|
|
125
|
-
readOnly: readOnlyLockOf(bot.app, env) !== void 0,
|
|
126
|
-
...options.keyOf ? { keyOf: options.keyOf } : {},
|
|
127
|
-
authority,
|
|
128
|
-
...options.fetchOnly ? { fetchOnly: options.fetchOnly } : {},
|
|
129
|
-
...options.fetches ? { fetches: options.fetches } : {},
|
|
130
|
-
offline: true,
|
|
131
|
-
// Another bot's copy is this bot's to read only where `read_other_bots` says so.
|
|
132
|
-
...settings.readOtherBots ? {} : { omit: ["all_bots", "bots"] }
|
|
133
|
-
};
|
|
134
|
-
const tools = [
|
|
135
|
-
...toolsFromCommands(program.commands, { ...catalogue, root: ["bot"] }),
|
|
136
|
-
...toolsFromCommands(program.commands.filter((one) => one.path[0] === "config"), {
|
|
137
|
-
...catalogue,
|
|
138
|
-
omit: ["bot", "personal", "defaults"]
|
|
139
|
-
})
|
|
140
|
-
];
|
|
141
|
-
const writes = tools.filter((tool) => tool.writes && tool.availability?.().available !== false).map((tool) => tool.command);
|
|
142
|
-
const skills = options.skill ? skillResources(bot.app, options.skill) : [];
|
|
143
|
-
const skill = skills[0];
|
|
144
|
-
let queue = Promise.resolve();
|
|
145
|
-
const invoke = /* @__PURE__ */ __name((path, input, caller) => {
|
|
146
|
-
const next = queue.then(() => runCommandForAgent(program, path, path[0] === "config" ? { ...input, bot: true } : input, {
|
|
147
|
-
profile: settings.profile,
|
|
148
|
-
readOnly: readOnlyLockOf(bot.app, env) !== void 0,
|
|
149
|
-
env,
|
|
150
|
-
levels,
|
|
151
|
-
...options.keyOf ? { keyOf: options.keyOf } : {},
|
|
152
|
-
authority,
|
|
153
|
-
...options.fetches ? { fetches: options.fetches } : {},
|
|
154
|
-
...caller ? { caller } : {}
|
|
155
|
-
}));
|
|
156
|
-
queue = next.catch(() => void 0);
|
|
157
|
-
return next;
|
|
158
|
-
}, "invoke");
|
|
159
|
-
const build = /* @__PURE__ */ __name(() => {
|
|
160
|
-
const callers = { env, client: /* @__PURE__ */ __name(() => server.server.getClientVersion(), "client"), connectionId: randomUUID() };
|
|
161
|
-
const server = new McpServer({ name: `${command}-bot-${settings.profile}`, version: bot.app.version }, {
|
|
162
|
-
instructions: botInstructions({
|
|
163
|
-
command,
|
|
164
|
-
name: bot.name ?? command,
|
|
165
|
-
profile: settings.profile,
|
|
166
|
-
writes,
|
|
167
|
-
...skill ? { skill: skill.instruction } : {}
|
|
168
|
-
})
|
|
169
|
-
});
|
|
170
|
-
for (const { uri, name, title, description, mimeType, read } of skills)
|
|
171
|
-
server.registerResource(name, uri, { title, description, mimeType }, read);
|
|
172
|
-
const commands = Object.fromEntries(tools.map((tool) => [
|
|
173
|
-
tool.command,
|
|
174
|
-
{
|
|
175
|
-
title: tool.title,
|
|
176
|
-
description: tool.description,
|
|
177
|
-
writes: tool.writes,
|
|
178
|
-
availability: tool.availability,
|
|
179
|
-
input: tool.input,
|
|
180
|
-
run: /* @__PURE__ */ __name(async (args, ctx) => {
|
|
181
|
-
const caller = callerOf(ctx, `${command}_${tool.command.replaceAll(" ", "_")}`, callers);
|
|
182
|
-
const answer = await invoke(tool.path, args, caller);
|
|
183
|
-
return "error" in answer ? mcpErrorResult(JSON.parse(agentJson(answer.error))) : answered(body(tool.command, answer.result));
|
|
184
|
-
}, "run")
|
|
185
|
-
}
|
|
186
|
-
]));
|
|
187
|
-
commands.status = {
|
|
188
|
-
title: "This server's bot and profile",
|
|
189
|
-
description: "Which profile this server speaks for, where its bot token comes from, which bot it is, and which writing commands are on. Sends nothing.",
|
|
190
|
-
writes: false,
|
|
191
|
-
input: object({}),
|
|
192
|
-
run: /* @__PURE__ */ __name(async () => {
|
|
193
|
-
const auth = await invoke(["bot", "auth", "show"], {});
|
|
194
|
-
const shown = "error" in auth ? auth.error : auth.result?.item ?? auth.result;
|
|
195
|
-
return answered(itemOf({
|
|
196
|
-
profile: settings.profile,
|
|
197
|
-
kind: "bot",
|
|
198
|
-
auth: shown,
|
|
199
|
-
writes: tools.filter((tool) => tool.writes && tool.availability?.().available !== false).map((tool) => tool.command),
|
|
200
|
-
permissions: levels()
|
|
201
|
-
}));
|
|
202
|
-
}, "run")
|
|
203
|
-
};
|
|
204
|
-
registerCommands(server, `${command}_bot`, commands, void 0, (asked) => {
|
|
205
|
-
const lock = readOnlyLockOf(bot.app, env);
|
|
206
|
-
const one = flatten(program.commands).find((info) => info.path[0] === "bot" && normal(info.path.slice(1).join(" ")) === asked);
|
|
207
|
-
if (lock && one && changesMessenger(one))
|
|
208
|
-
throw readOnlyRefusal(lock, MESSENGER_CHANGE_REFUSAL);
|
|
209
|
-
}, bot.app.messenger);
|
|
210
|
-
return server;
|
|
211
|
-
}, "build");
|
|
212
|
-
return { build, tools, offered: tools.map((tool) => tool.command) };
|
|
213
|
-
}, "createBotServer");
|
|
214
|
-
var serveBotOverStdio = /* @__PURE__ */ __name(async (options, note) => {
|
|
215
|
-
const { build } = createBotServer(options);
|
|
216
|
-
const wire = answeredWire(process.stdin, process.stdout);
|
|
217
|
-
const handle = serveStdio(build, {
|
|
218
|
-
transport: new StdioServerTransport(wire.input, wire.output),
|
|
219
|
-
onerror: /* @__PURE__ */ __name((error) => note(`mcp: ${error.message}`), "onerror")
|
|
220
|
-
});
|
|
221
|
-
await wire.finished();
|
|
222
|
-
wire.release();
|
|
223
|
-
await handle.close();
|
|
224
|
-
}, "serveBotOverStdio");
|
|
225
|
-
export {
|
|
226
|
-
createBotServer,
|
|
227
|
-
serveBotOverStdio
|
|
228
|
-
};
|