@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,340 +0,0 @@
|
|
|
1
|
-
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
-
const require = __bundleRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
throughWrapper
|
|
5
|
-
} from "./chunk-GBHMT2IU.js";
|
|
6
|
-
import {
|
|
7
|
-
environmentOf
|
|
8
|
-
} from "./chunk-V5EJSF2B.js";
|
|
9
|
-
import {
|
|
10
|
-
readOnlyLockOf
|
|
11
|
-
} from "./chunk-TKNM22OH.js";
|
|
12
|
-
import {
|
|
13
|
-
array,
|
|
14
|
-
boolean,
|
|
15
|
-
check,
|
|
16
|
-
pipe,
|
|
17
|
-
record,
|
|
18
|
-
safeParse,
|
|
19
|
-
strictObject,
|
|
20
|
-
string
|
|
21
|
-
} from "./chunk-ESN3W2MZ.js";
|
|
22
|
-
import {
|
|
23
|
-
CliError
|
|
24
|
-
} from "./chunk-IANKXHSE.js";
|
|
25
|
-
import {
|
|
26
|
-
__name
|
|
27
|
-
} from "./chunk-ZVVMGPBJ.js";
|
|
28
|
-
|
|
29
|
-
// 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/background/relay.js
|
|
30
|
-
import { createHash } from "node:crypto";
|
|
31
|
-
import { chmodSync, lstatSync, mkdirSync, rmSync } from "node:fs";
|
|
32
|
-
import { createConnection, createServer } from "node:net";
|
|
33
|
-
import { tmpdir } from "node:os";
|
|
34
|
-
import { dirname, isAbsolute, join } from "node:path";
|
|
35
|
-
import { PassThrough, Writable } from "node:stream";
|
|
36
|
-
var RELAY_PROTOCOL = 1;
|
|
37
|
-
var requestSchema = strictObject({
|
|
38
|
-
argv: array(string()),
|
|
39
|
-
env: record(string(), string()),
|
|
40
|
-
cwd: pipe(string(), check((path) => isAbsolute(path))),
|
|
41
|
-
tty: boolean(),
|
|
42
|
-
stdinTty: boolean()
|
|
43
|
-
});
|
|
44
|
-
var MAX_CLIENT_LINE = 1024 * 1024;
|
|
45
|
-
var MAX_SERVE_LINE = 64 * 1024 * 1024;
|
|
46
|
-
var MAX_SOCKET_PATH = 100;
|
|
47
|
-
var relayPath = /* @__PURE__ */ __name((lockPath) => {
|
|
48
|
-
const beside = lockPath.replace(/\.lock$/, ".sock");
|
|
49
|
-
if (beside.length <= MAX_SOCKET_PATH)
|
|
50
|
-
return beside;
|
|
51
|
-
const hash = createHash("sha256").update(beside).digest("hex").slice(0, 16);
|
|
52
|
-
const name = join(`wirecat-relay-${process.getuid?.() ?? "user"}`, `${hash}.sock`);
|
|
53
|
-
const temporary = join(tmpdir(), name);
|
|
54
|
-
if (temporary.length <= MAX_SOCKET_PATH || process.platform === "win32")
|
|
55
|
-
return temporary;
|
|
56
|
-
return join("/tmp", name);
|
|
57
|
-
}, "relayPath");
|
|
58
|
-
var privateDirectory = /* @__PURE__ */ __name((dir) => {
|
|
59
|
-
mkdirSync(dir, { recursive: true, mode: 448 });
|
|
60
|
-
const stat = lstatSync(dir);
|
|
61
|
-
const mine = process.getuid === void 0 || stat.uid === process.getuid();
|
|
62
|
-
if (!stat.isDirectory() || !mine || (stat.mode & 63) !== 0) {
|
|
63
|
-
throw new CliError("permission_error", `${dir} is not a private directory, so serve does not listen there`);
|
|
64
|
-
}
|
|
65
|
-
}, "privateDirectory");
|
|
66
|
-
var lines = /* @__PURE__ */ __name((socket, max, onLine, onTooLong) => {
|
|
67
|
-
let buffered = "";
|
|
68
|
-
socket.setEncoding("utf8");
|
|
69
|
-
socket.on("data", (chunk) => {
|
|
70
|
-
buffered += chunk;
|
|
71
|
-
for (let end = buffered.indexOf("\n"); end >= 0; end = buffered.indexOf("\n")) {
|
|
72
|
-
const line = buffered.slice(0, end);
|
|
73
|
-
buffered = buffered.slice(end + 1);
|
|
74
|
-
if (line)
|
|
75
|
-
onLine(line);
|
|
76
|
-
}
|
|
77
|
-
if (buffered.length > max)
|
|
78
|
-
onTooLong();
|
|
79
|
-
});
|
|
80
|
-
}, "lines");
|
|
81
|
-
var frame = /* @__PURE__ */ __name((socket, value) => {
|
|
82
|
-
if (!socket.destroyed)
|
|
83
|
-
socket.write(`${JSON.stringify(value)}
|
|
84
|
-
`);
|
|
85
|
-
}, "frame");
|
|
86
|
-
var listenRelay = /* @__PURE__ */ __name(async (path, run) => {
|
|
87
|
-
privateDirectory(dirname(path));
|
|
88
|
-
rmSync(path, { force: true });
|
|
89
|
-
const open = /* @__PURE__ */ new Set();
|
|
90
|
-
const running = /* @__PURE__ */ new Set();
|
|
91
|
-
const server = createServer((socket) => {
|
|
92
|
-
open.add(socket);
|
|
93
|
-
const stop = new AbortController();
|
|
94
|
-
const stdin = new PassThrough();
|
|
95
|
-
let started = false;
|
|
96
|
-
socket.on("error", () => {
|
|
97
|
-
});
|
|
98
|
-
socket.on("close", () => {
|
|
99
|
-
open.delete(socket);
|
|
100
|
-
stop.abort(new CliError("cancelled", "the client went away", { retryable: false }));
|
|
101
|
-
if (!stdin.writableEnded)
|
|
102
|
-
stdin.end();
|
|
103
|
-
});
|
|
104
|
-
lines(socket, MAX_CLIENT_LINE, (line) => {
|
|
105
|
-
let message;
|
|
106
|
-
try {
|
|
107
|
-
message = JSON.parse(line);
|
|
108
|
-
} catch {
|
|
109
|
-
socket.destroy();
|
|
110
|
-
return;
|
|
111
|
-
}
|
|
112
|
-
if (!started) {
|
|
113
|
-
started = true;
|
|
114
|
-
if (message.v !== RELAY_PROTOCOL) {
|
|
115
|
-
frame(socket, { diagnostic: `serve speaks relay protocol ${RELAY_PROTOCOL}; restart it`, exit: 1 });
|
|
116
|
-
socket.end();
|
|
117
|
-
return;
|
|
118
|
-
}
|
|
119
|
-
const parsed = safeParse(requestSchema, message.run);
|
|
120
|
-
if (!parsed.success) {
|
|
121
|
-
socket.destroy();
|
|
122
|
-
return;
|
|
123
|
-
}
|
|
124
|
-
stdin.isTTY = parsed.output.stdinTty;
|
|
125
|
-
if (parsed.output.stdinTty)
|
|
126
|
-
stdin.end();
|
|
127
|
-
const job = serve(socket, parsed.output, stdin, stop.signal, run);
|
|
128
|
-
running.add(job);
|
|
129
|
-
void job.then(() => running.delete(job), () => running.delete(job));
|
|
130
|
-
return;
|
|
131
|
-
}
|
|
132
|
-
if (typeof message.stdin === "string" && !stdin.writableEnded)
|
|
133
|
-
stdin.write(Buffer.from(message.stdin, "base64"));
|
|
134
|
-
if (message.stdinEnd === true && !stdin.writableEnded)
|
|
135
|
-
stdin.end();
|
|
136
|
-
}, () => socket.destroy());
|
|
137
|
-
});
|
|
138
|
-
await new Promise((resolve, reject) => {
|
|
139
|
-
server.once("error", reject);
|
|
140
|
-
server.listen(path, () => {
|
|
141
|
-
server.off("error", reject);
|
|
142
|
-
resolve();
|
|
143
|
-
});
|
|
144
|
-
});
|
|
145
|
-
chmodSync(path, 384);
|
|
146
|
-
return {
|
|
147
|
-
close: /* @__PURE__ */ __name(async () => {
|
|
148
|
-
for (const socket of open)
|
|
149
|
-
socket.destroy();
|
|
150
|
-
await new Promise((resolve) => server.close(() => resolve()));
|
|
151
|
-
await Promise.allSettled(running);
|
|
152
|
-
rmSync(path, { force: true });
|
|
153
|
-
}, "close")
|
|
154
|
-
};
|
|
155
|
-
}, "listenRelay");
|
|
156
|
-
var serve = /* @__PURE__ */ __name(async (socket, request, stdin, signal, run) => {
|
|
157
|
-
const streams = {
|
|
158
|
-
data: /* @__PURE__ */ __name((text) => frame(socket, { data: text }), "data"),
|
|
159
|
-
diagnostic: /* @__PURE__ */ __name((text) => frame(socket, { diagnostic: text }), "diagnostic"),
|
|
160
|
-
progress: /* @__PURE__ */ __name((text) => frame(socket, { progress: text }), "progress")
|
|
161
|
-
};
|
|
162
|
-
const stdout = new Writable({
|
|
163
|
-
write: /* @__PURE__ */ __name((chunk, _encoding, done) => {
|
|
164
|
-
frame(socket, { raw: Buffer.from(chunk).toString("base64") });
|
|
165
|
-
done();
|
|
166
|
-
}, "write")
|
|
167
|
-
});
|
|
168
|
-
let code = 1;
|
|
169
|
-
try {
|
|
170
|
-
code = await run(request, { streams, stdin, stdout, signal });
|
|
171
|
-
} finally {
|
|
172
|
-
frame(socket, { exit: code });
|
|
173
|
-
socket.end();
|
|
174
|
-
}
|
|
175
|
-
}, "serve");
|
|
176
|
-
var relayCommand = /* @__PURE__ */ __name((path, request, options) => new Promise((resolve, reject) => {
|
|
177
|
-
const { streams, stdin, stdout, signal, deadlineMs, writes, holder, listens = false } = options;
|
|
178
|
-
const socket = createConnection(path);
|
|
179
|
-
let connected = false;
|
|
180
|
-
let settled = false;
|
|
181
|
-
let timer;
|
|
182
|
-
const forward = /* @__PURE__ */ __name((chunk) => frame(socket, { stdin: Buffer.from(chunk).toString("base64") }), "forward");
|
|
183
|
-
const ended = /* @__PURE__ */ __name(() => frame(socket, { stdinEnd: true }), "ended");
|
|
184
|
-
const brokenPipe = /* @__PURE__ */ __name((error) => {
|
|
185
|
-
if (error.code === "EPIPE")
|
|
186
|
-
finish({ code: 0 });
|
|
187
|
-
}, "brokenPipe");
|
|
188
|
-
const finish = /* @__PURE__ */ __name((outcome) => {
|
|
189
|
-
if (settled)
|
|
190
|
-
return;
|
|
191
|
-
settled = true;
|
|
192
|
-
if (timer)
|
|
193
|
-
clearTimeout(timer);
|
|
194
|
-
stdout.off("error", brokenPipe);
|
|
195
|
-
signal.removeEventListener("abort", aborted);
|
|
196
|
-
stdin.off("data", forward).off("end", ended);
|
|
197
|
-
stdin.pause();
|
|
198
|
-
socket.destroy();
|
|
199
|
-
if ("code" in outcome)
|
|
200
|
-
resolve(outcome.code);
|
|
201
|
-
else
|
|
202
|
-
reject(outcome.error);
|
|
203
|
-
}, "finish");
|
|
204
|
-
const stopped = /* @__PURE__ */ __name(() => writes ? new CliError("outcome_unknown", `${holder} stopped before the command finished; it may have run \u2014 check before repeating it`, { retryable: false }) : new CliError("provider_unavailable", `${holder} stopped before the command finished`, { retryable: true }), "stopped");
|
|
205
|
-
const aborted = /* @__PURE__ */ __name(() => finish(listens ? { code: 0 } : { error: signal.reason }), "aborted");
|
|
206
|
-
if (signal.aborted)
|
|
207
|
-
return aborted();
|
|
208
|
-
signal.addEventListener("abort", aborted, { once: true });
|
|
209
|
-
stdout.on("error", brokenPipe);
|
|
210
|
-
if (deadlineMs !== void 0)
|
|
211
|
-
timer = setTimeout(() => finish({ error: stopped() }), deadlineMs);
|
|
212
|
-
socket.on("connect", () => {
|
|
213
|
-
connected = true;
|
|
214
|
-
frame(socket, { v: RELAY_PROTOCOL, run: request });
|
|
215
|
-
if (request.stdinTty)
|
|
216
|
-
ended();
|
|
217
|
-
else {
|
|
218
|
-
stdin.on("data", forward).once("end", ended);
|
|
219
|
-
stdin.resume();
|
|
220
|
-
}
|
|
221
|
-
});
|
|
222
|
-
socket.on("error", (error) => {
|
|
223
|
-
if (connected)
|
|
224
|
-
return finish({ error: stopped() });
|
|
225
|
-
finish({
|
|
226
|
-
error: new CliError("provider_unavailable", `${holder} holds the connection but does not answer its relay (${error.code ?? error.message}) \u2014 restart it`, { retryable: false, sent: false })
|
|
227
|
-
});
|
|
228
|
-
});
|
|
229
|
-
socket.on("close", () => finish({ error: stopped() }));
|
|
230
|
-
lines(socket, MAX_SERVE_LINE, (line) => {
|
|
231
|
-
let message;
|
|
232
|
-
try {
|
|
233
|
-
message = JSON.parse(line);
|
|
234
|
-
} catch {
|
|
235
|
-
return finish({ error: stopped() });
|
|
236
|
-
}
|
|
237
|
-
if (typeof message.data === "string")
|
|
238
|
-
streams.data(message.data);
|
|
239
|
-
if (typeof message.diagnostic === "string")
|
|
240
|
-
streams.diagnostic(message.diagnostic);
|
|
241
|
-
if (typeof message.progress === "string")
|
|
242
|
-
streams.progress?.(message.progress);
|
|
243
|
-
if (typeof message.raw === "string")
|
|
244
|
-
stdout.write(Buffer.from(message.raw, "base64"));
|
|
245
|
-
if (typeof message.exit === "number")
|
|
246
|
-
finish({ code: message.exit });
|
|
247
|
-
}, () => finish({ error: stopped() }));
|
|
248
|
-
}), "relayCommand");
|
|
249
|
-
|
|
250
|
-
// 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/cli/messenger/serve-relay.js
|
|
251
|
-
var lentConnection = /* @__PURE__ */ __name((connection, watchers) => throughWrapper(connection, {
|
|
252
|
-
close: /* @__PURE__ */ __name(async () => {
|
|
253
|
-
}, "close"),
|
|
254
|
-
feed: void 0,
|
|
255
|
-
storedChats: void 0,
|
|
256
|
-
listen: void 0,
|
|
257
|
-
listenHistory: void 0,
|
|
258
|
-
...connection.watch && watchers ? {
|
|
259
|
-
// A watcher that throws (its output limit, a closed reader) ends its own watch, never serve's.
|
|
260
|
-
watch: /* @__PURE__ */ __name(async (onEvent, signal, onReady) => {
|
|
261
|
-
let watcher;
|
|
262
|
-
try {
|
|
263
|
-
await new Promise((resolve, reject) => {
|
|
264
|
-
watcher = /* @__PURE__ */ __name((event) => {
|
|
265
|
-
try {
|
|
266
|
-
onEvent(event);
|
|
267
|
-
} catch (error) {
|
|
268
|
-
reject(error);
|
|
269
|
-
}
|
|
270
|
-
}, "watcher");
|
|
271
|
-
watchers.add(watcher);
|
|
272
|
-
signal.addEventListener("abort", () => resolve(), { once: true });
|
|
273
|
-
onReady?.();
|
|
274
|
-
if (signal.aborted)
|
|
275
|
-
resolve();
|
|
276
|
-
});
|
|
277
|
-
} finally {
|
|
278
|
-
if (watcher)
|
|
279
|
-
watchers.delete(watcher);
|
|
280
|
-
}
|
|
281
|
-
}, "watch")
|
|
282
|
-
} : { watch: void 0 }
|
|
283
|
-
}), "lentConnection");
|
|
284
|
-
var serveRelay = /* @__PURE__ */ __name((command, messenger) => {
|
|
285
|
-
let held;
|
|
286
|
-
let relay;
|
|
287
|
-
const watchers = /* @__PURE__ */ new Set();
|
|
288
|
-
const borrowed = /* @__PURE__ */ __name(() => {
|
|
289
|
-
const connection = held;
|
|
290
|
-
if (!connection)
|
|
291
|
-
throw new CliError("provider_unavailable", "serve is not connected yet", { retryable: true });
|
|
292
|
-
return lentConnection(connection, watchers);
|
|
293
|
-
}, "borrowed");
|
|
294
|
-
return {
|
|
295
|
-
messenger: {
|
|
296
|
-
...messenger,
|
|
297
|
-
connect: /* @__PURE__ */ __name(async (...args) => {
|
|
298
|
-
held = await messenger.connect(...args);
|
|
299
|
-
return held;
|
|
300
|
-
}, "connect")
|
|
301
|
-
},
|
|
302
|
-
arrived: /* @__PURE__ */ __name((event) => {
|
|
303
|
-
for (const watcher of watchers)
|
|
304
|
-
watcher(event);
|
|
305
|
-
}, "arrived"),
|
|
306
|
-
/** Listens beside the lock; the address goes into it, which is how a client finds it. */
|
|
307
|
-
open: /* @__PURE__ */ __name(async (lockPath, profile) => {
|
|
308
|
-
const environment = environmentOf(command);
|
|
309
|
-
const runCommand = environment.runCommand;
|
|
310
|
-
if (!runCommand)
|
|
311
|
-
return void 0;
|
|
312
|
-
const readOnly = readOnlyLockOf(messenger.app, environment.env ?? process.env);
|
|
313
|
-
const path = relayPath(lockPath);
|
|
314
|
-
relay = await listenRelay(path, (request, io) => runCommand(request.argv, {
|
|
315
|
-
env: {
|
|
316
|
-
...request.env,
|
|
317
|
-
...readOnly ? { [`${messenger.app.envPrefix}_READ_ONLY`]: "1" } : {}
|
|
318
|
-
},
|
|
319
|
-
streams: io.streams,
|
|
320
|
-
stdin: io.stdin,
|
|
321
|
-
stdout: io.stdout,
|
|
322
|
-
tty: request.tty,
|
|
323
|
-
signal: io.signal,
|
|
324
|
-
answer: /* @__PURE__ */ __name(() => null, "answer"),
|
|
325
|
-
relayed: { profile, cwd: request.cwd, connection: borrowed }
|
|
326
|
-
}));
|
|
327
|
-
return { path, protocol: RELAY_PROTOCOL };
|
|
328
|
-
}, "open"),
|
|
329
|
-
close: /* @__PURE__ */ __name(async () => {
|
|
330
|
-
await relay?.close();
|
|
331
|
-
}, "close")
|
|
332
|
-
};
|
|
333
|
-
}, "serveRelay");
|
|
334
|
-
|
|
335
|
-
export {
|
|
336
|
-
RELAY_PROTOCOL,
|
|
337
|
-
relayCommand,
|
|
338
|
-
lentConnection,
|
|
339
|
-
serveRelay
|
|
340
|
-
};
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
-
const require = __bundleRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
CLIENT_INFO_META_KEY
|
|
5
|
-
} from "./chunk-PL5P7UKW.js";
|
|
6
|
-
import {
|
|
7
|
-
agentOf,
|
|
8
|
-
clientHash,
|
|
9
|
-
currentCaller
|
|
10
|
-
} from "./chunk-T7IAWEBU.js";
|
|
11
|
-
import {
|
|
12
|
-
__name
|
|
13
|
-
} from "./chunk-ZVVMGPBJ.js";
|
|
14
|
-
|
|
15
|
-
// 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/caller.js
|
|
16
|
-
var callingAgent = /* @__PURE__ */ __name((fallback, caller = currentCaller()) => {
|
|
17
|
-
const client = caller?.agent?.client?.name;
|
|
18
|
-
if (client && client !== "unknown")
|
|
19
|
-
return client;
|
|
20
|
-
const kind = caller?.agent?.kind;
|
|
21
|
-
return kind && kind !== "mcp-client" ? kind : fallback;
|
|
22
|
-
}, "callingAgent");
|
|
23
|
-
var CALLER_META_KEY = "wirecat.dev/caller";
|
|
24
|
-
var PROXY_CLIENT_NAME = "all-profiles";
|
|
25
|
-
var NAME = /^[\w .@()/+-]{1,64}$/;
|
|
26
|
-
var plain = /* @__PURE__ */ __name((value) => typeof value === "string" && NAME.test(value.trim()) ? value.trim() : void 0, "plain");
|
|
27
|
-
var clientFrom = /* @__PURE__ */ __name((value) => {
|
|
28
|
-
if (!value || typeof value !== "object")
|
|
29
|
-
return void 0;
|
|
30
|
-
const { name, version } = value;
|
|
31
|
-
const named = plain(name);
|
|
32
|
-
if (!named)
|
|
33
|
-
return void 0;
|
|
34
|
-
const versioned = plain(version);
|
|
35
|
-
return { name: named, ...versioned ? { version: versioned } : {} };
|
|
36
|
-
}, "clientFrom");
|
|
37
|
-
var callerOf = /* @__PURE__ */ __name((ctx, tool, source) => {
|
|
38
|
-
const meta = ctx?.mcpReq?._meta;
|
|
39
|
-
const requestId = ctx?.mcpReq?.id;
|
|
40
|
-
const initialized = source.client?.();
|
|
41
|
-
const proxied = initialized?.name === PROXY_CLIENT_NAME && !ctx?.http ? passedOn(meta?.[CALLER_META_KEY], tool) : void 0;
|
|
42
|
-
if (proxied)
|
|
43
|
-
return proxied;
|
|
44
|
-
const client = clientFrom(meta?.[CLIENT_INFO_META_KEY]) ?? clientFrom(initialized);
|
|
45
|
-
const mcp = /* @__PURE__ */ __name((connection) => ({
|
|
46
|
-
tool,
|
|
47
|
-
...requestId === void 0 ? {} : { request_id: String(requestId) },
|
|
48
|
-
...connection ? { connection_id: connection } : {}
|
|
49
|
-
}), "mcp");
|
|
50
|
-
const auth = ctx?.http?.authInfo;
|
|
51
|
-
if (auth) {
|
|
52
|
-
const registered = plain(auth.extra?.clientName);
|
|
53
|
-
return {
|
|
54
|
-
via: "mcp-http",
|
|
55
|
-
agent: {
|
|
56
|
-
kind: "mcp-client",
|
|
57
|
-
session_id: ctx?.sessionId ?? null,
|
|
58
|
-
client: {
|
|
59
|
-
name: registered ?? client?.name ?? "unknown",
|
|
60
|
-
...client?.version ? { version: client.version } : {},
|
|
61
|
-
id: clientHash(auth.clientId)
|
|
62
|
-
}
|
|
63
|
-
},
|
|
64
|
-
mcp: mcp(ctx?.sessionId)
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
const agent = agentOf(source.env) ?? { kind: "mcp-client", session_id: null };
|
|
68
|
-
return { via: "mcp-stdio", agent: { ...agent, ...client ? { client } : {} }, mcp: mcp(source.connectionId) };
|
|
69
|
-
}, "callerOf");
|
|
70
|
-
var passedOn = /* @__PURE__ */ __name((value, tool) => {
|
|
71
|
-
if (!value || typeof value !== "object")
|
|
72
|
-
return void 0;
|
|
73
|
-
const { via, agent, mcp } = value;
|
|
74
|
-
if (via !== "mcp-stdio" && via !== "mcp-http")
|
|
75
|
-
return void 0;
|
|
76
|
-
const a = agent && typeof agent === "object" ? agent : void 0;
|
|
77
|
-
const kind = plain(a?.kind);
|
|
78
|
-
const session = typeof a?.session_id === "string" && /^[A-Za-z0-9._:-]{1,128}$/.test(a.session_id) ? a.session_id : null;
|
|
79
|
-
const client = clientFrom(a?.client);
|
|
80
|
-
const id = a?.client && typeof a.client === "object" ? a.client.id : void 0;
|
|
81
|
-
const m = mcp && typeof mcp === "object" ? mcp : {};
|
|
82
|
-
const request = plain(m.request_id);
|
|
83
|
-
const connection = typeof m.connection_id === "string" && /^[\w-]{1,128}$/.test(m.connection_id) ? m.connection_id : void 0;
|
|
84
|
-
return {
|
|
85
|
-
via,
|
|
86
|
-
...kind ? {
|
|
87
|
-
agent: {
|
|
88
|
-
kind,
|
|
89
|
-
session_id: session,
|
|
90
|
-
...a?.from_chat === true ? { from_chat: true } : {},
|
|
91
|
-
...client ? { client: { ...client, ...typeof id === "string" && /^[0-9a-f]{8}$/.test(id) ? { id } : {} } } : {}
|
|
92
|
-
}
|
|
93
|
-
} : {},
|
|
94
|
-
mcp: {
|
|
95
|
-
tool,
|
|
96
|
-
...request ? { request_id: request } : {},
|
|
97
|
-
...connection ? { connection_id: connection } : {},
|
|
98
|
-
proxied: true
|
|
99
|
-
}
|
|
100
|
-
};
|
|
101
|
-
}, "passedOn");
|
|
102
|
-
|
|
103
|
-
export {
|
|
104
|
-
callingAgent,
|
|
105
|
-
CALLER_META_KEY,
|
|
106
|
-
PROXY_CLIENT_NAME,
|
|
107
|
-
callerOf
|
|
108
|
-
};
|