@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,412 +0,0 @@
|
|
|
1
|
-
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
-
const require = __bundleRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
require_cross_spawn
|
|
5
|
-
} from "./chunk-D72URWJE.js";
|
|
6
|
-
import {
|
|
7
|
-
BUILT_IN_COMMANDS,
|
|
8
|
-
DESCRIBE_FLAG,
|
|
9
|
-
DESCRIBE_MAX_BYTES,
|
|
10
|
-
FIRST_PARTY_TOOLS,
|
|
11
|
-
PROGRAM_PREFIX,
|
|
12
|
-
TOOL_NAME,
|
|
13
|
-
fileState,
|
|
14
|
-
parseDescribe,
|
|
15
|
-
shimFiles,
|
|
16
|
-
writeShim
|
|
17
|
-
} from "./chunk-R2B6PUVI.js";
|
|
18
|
-
import "./chunk-Y5E2WNWB.js";
|
|
19
|
-
import {
|
|
20
|
-
CliError
|
|
21
|
-
} from "./chunk-IANKXHSE.js";
|
|
22
|
-
import "./chunk-BBGJQMRI.js";
|
|
23
|
-
import {
|
|
24
|
-
__name,
|
|
25
|
-
__toESM
|
|
26
|
-
} from "./chunk-ZVVMGPBJ.js";
|
|
27
|
-
|
|
28
|
-
// node_modules/.pnpm/@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/dispatch.js
|
|
29
|
-
var import_cross_spawn2 = __toESM(require_cross_spawn(), 1);
|
|
30
|
-
import { randomUUID } from "node:crypto";
|
|
31
|
-
import { constants } from "node:os";
|
|
32
|
-
|
|
33
|
-
// node_modules/.pnpm/@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/path.js
|
|
34
|
-
import { readdirSync, statSync } from "node:fs";
|
|
35
|
-
import { join } from "node:path";
|
|
36
|
-
var variable = /* @__PURE__ */ __name((env, name, platform) => platform === "win32" ? Object.entries(env).find(([key]) => key.toUpperCase() === name)?.[1] : env[name], "variable");
|
|
37
|
-
var pathEntries = /* @__PURE__ */ __name(({ env, platform }) => {
|
|
38
|
-
const raw = variable(env, "PATH", platform) ?? "";
|
|
39
|
-
const entries = raw.split(platform === "win32" ? ";" : ":").map((entry) => entry.replace(/^"(.*)"$/, "$1"));
|
|
40
|
-
const seen = /* @__PURE__ */ new Set();
|
|
41
|
-
return entries.filter((entry) => {
|
|
42
|
-
const key = platform === "win32" ? entry.toLowerCase().replace(/[\\/]+$/, "") : entry.replace(/\/+$/, "");
|
|
43
|
-
if (entry === "" || seen.has(key))
|
|
44
|
-
return false;
|
|
45
|
-
seen.add(key);
|
|
46
|
-
return true;
|
|
47
|
-
});
|
|
48
|
-
}, "pathEntries");
|
|
49
|
-
var programExtensions = /* @__PURE__ */ __name(({ env, platform }) => platform === "win32" ? (variable(env, "PATHEXT", platform) ?? ".COM;.EXE;.BAT;.CMD").split(";").filter((ext) => /^\.[a-z0-9]+$/i.test(ext)).map((ext) => ext.toLowerCase()) : [""], "programExtensions");
|
|
50
|
-
var isProgram = /* @__PURE__ */ __name((path, platform) => {
|
|
51
|
-
try {
|
|
52
|
-
const stat = statSync(path);
|
|
53
|
-
return stat.isFile() && (platform === "win32" || (stat.mode & 73) !== 0);
|
|
54
|
-
} catch {
|
|
55
|
-
return false;
|
|
56
|
-
}
|
|
57
|
-
}, "isProgram");
|
|
58
|
-
var findOnPath = /* @__PURE__ */ __name((command, search) => {
|
|
59
|
-
const extensions = programExtensions(search);
|
|
60
|
-
return pathEntries(search).flatMap((dir) => {
|
|
61
|
-
for (const extension of extensions) {
|
|
62
|
-
const path = join(dir, command + extension);
|
|
63
|
-
if (isProgram(path, search.platform))
|
|
64
|
-
return [path];
|
|
65
|
-
}
|
|
66
|
-
return [];
|
|
67
|
-
});
|
|
68
|
-
}, "findOnPath");
|
|
69
|
-
var findTools = /* @__PURE__ */ __name((search) => {
|
|
70
|
-
const extensions = programExtensions(search);
|
|
71
|
-
const tools = /* @__PURE__ */ new Map();
|
|
72
|
-
for (const dir of pathEntries(search)) {
|
|
73
|
-
let files;
|
|
74
|
-
try {
|
|
75
|
-
files = readdirSync(dir);
|
|
76
|
-
} catch {
|
|
77
|
-
continue;
|
|
78
|
-
}
|
|
79
|
-
const here = /* @__PURE__ */ new Map();
|
|
80
|
-
for (const file of files) {
|
|
81
|
-
if (!(search.platform === "win32" ? file.toLowerCase() : file).startsWith(PROGRAM_PREFIX))
|
|
82
|
-
continue;
|
|
83
|
-
const extension = extensions.find((ext) => ext !== "" && file.toLowerCase().endsWith(ext)) ?? "";
|
|
84
|
-
if (search.platform === "win32" && extension === "")
|
|
85
|
-
continue;
|
|
86
|
-
const base = search.platform === "win32" ? file.toLowerCase() : file;
|
|
87
|
-
const name = base.slice(PROGRAM_PREFIX.length, base.length - extension.length);
|
|
88
|
-
if (!TOOL_NAME.test(name))
|
|
89
|
-
continue;
|
|
90
|
-
const best = here.get(name);
|
|
91
|
-
const rank = /* @__PURE__ */ __name((path2) => extensions.findIndex((ext) => path2.toLowerCase().endsWith(ext)), "rank");
|
|
92
|
-
const path = join(dir, file);
|
|
93
|
-
if (best !== void 0 && rank(best) <= rank(path))
|
|
94
|
-
continue;
|
|
95
|
-
if (isProgram(path, search.platform))
|
|
96
|
-
here.set(name, path);
|
|
97
|
-
}
|
|
98
|
-
for (const [name, path] of here)
|
|
99
|
-
tools.set(name, [...tools.get(name) ?? [], path]);
|
|
100
|
-
}
|
|
101
|
-
return new Map([...tools].sort(([a], [b]) => a < b ? -1 : 1));
|
|
102
|
-
}, "findTools");
|
|
103
|
-
var isBuiltIn = /* @__PURE__ */ __name((name) => name === "wcat" || BUILT_IN_COMMANDS.includes(name), "isBuiltIn");
|
|
104
|
-
|
|
105
|
-
// node_modules/.pnpm/@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/probe.js
|
|
106
|
-
var import_cross_spawn = __toESM(require_cross_spawn(), 1);
|
|
107
|
-
import { readFileSync } from "node:fs";
|
|
108
|
-
var probeDescribe = /* @__PURE__ */ __name((path, { env, timeoutMs }) => new Promise((resolve) => {
|
|
109
|
-
let child;
|
|
110
|
-
try {
|
|
111
|
-
child = (0, import_cross_spawn.default)(path, [DESCRIBE_FLAG], { stdio: ["ignore", "pipe", "ignore"], env, windowsHide: true });
|
|
112
|
-
} catch {
|
|
113
|
-
resolve(void 0);
|
|
114
|
-
return;
|
|
115
|
-
}
|
|
116
|
-
const chunks = [];
|
|
117
|
-
let size = 0;
|
|
118
|
-
let settled = false;
|
|
119
|
-
const settle = /* @__PURE__ */ __name((answer) => {
|
|
120
|
-
if (settled)
|
|
121
|
-
return;
|
|
122
|
-
settled = true;
|
|
123
|
-
clearTimeout(timer);
|
|
124
|
-
resolve(answer);
|
|
125
|
-
}, "settle");
|
|
126
|
-
const giveUp = /* @__PURE__ */ __name(() => {
|
|
127
|
-
child.kill();
|
|
128
|
-
child.stdout?.destroy();
|
|
129
|
-
child.unref();
|
|
130
|
-
settle(void 0);
|
|
131
|
-
}, "giveUp");
|
|
132
|
-
const timer = setTimeout(giveUp, timeoutMs);
|
|
133
|
-
child.stdout?.on("data", (chunk) => {
|
|
134
|
-
size += chunk.length;
|
|
135
|
-
if (size > DESCRIBE_MAX_BYTES)
|
|
136
|
-
giveUp();
|
|
137
|
-
else
|
|
138
|
-
chunks.push(chunk);
|
|
139
|
-
});
|
|
140
|
-
child.once("error", () => settle(void 0));
|
|
141
|
-
child.once("close", (code) => settle(code === 0 ? parseDescribe(Buffer.concat(chunks).toString("utf8")) : void 0));
|
|
142
|
-
}), "probeDescribe");
|
|
143
|
-
var baseVersion = /* @__PURE__ */ __name(() => {
|
|
144
|
-
try {
|
|
145
|
-
const raw = readFileSync(new URL("../../package.json", new URL("wcat/probe.js", import.meta.resolve("@wirecat/cli-base")).href), "utf8");
|
|
146
|
-
const { name, version } = JSON.parse(raw);
|
|
147
|
-
return name === "@wirecat/cli-base" && typeof version === "string" ? version : "unknown";
|
|
148
|
-
} catch {
|
|
149
|
-
return "unknown";
|
|
150
|
-
}
|
|
151
|
-
}, "baseVersion");
|
|
152
|
-
|
|
153
|
-
// node_modules/.pnpm/@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/shortcuts.js
|
|
154
|
-
import { closeSync, openSync, readSync, realpathSync, rmSync } from "node:fs";
|
|
155
|
-
import { basename, dirname } from "node:path";
|
|
156
|
-
var WIRECAT_PACKAGE = /node_modules[\\/]+@wirecat[\\/]/;
|
|
157
|
-
var isWirecatPackage = /* @__PURE__ */ __name((path) => {
|
|
158
|
-
try {
|
|
159
|
-
if (WIRECAT_PACKAGE.test(realpathSync(path)))
|
|
160
|
-
return true;
|
|
161
|
-
const buffer = Buffer.alloc(16 * 1024);
|
|
162
|
-
const fd = openSync(path, "r");
|
|
163
|
-
try {
|
|
164
|
-
const read = readSync(fd, buffer, 0, buffer.length, 0);
|
|
165
|
-
return WIRECAT_PACKAGE.test(buffer.subarray(0, read).toString("latin1"));
|
|
166
|
-
} finally {
|
|
167
|
-
closeSync(fd);
|
|
168
|
-
}
|
|
169
|
-
} catch {
|
|
170
|
-
return false;
|
|
171
|
-
}
|
|
172
|
-
}, "isWirecatPackage");
|
|
173
|
-
var ourShortcut = /* @__PURE__ */ __name((path) => {
|
|
174
|
-
const state = fileState(path);
|
|
175
|
-
return state.state === "ours" && state.mark.kind === "shortcut";
|
|
176
|
-
}, "ourShortcut");
|
|
177
|
-
var statusOf = /* @__PURE__ */ __name((name, program, search) => {
|
|
178
|
-
const files = shimFiles("shortcut", {
|
|
179
|
-
dir: dirname(program),
|
|
180
|
-
name,
|
|
181
|
-
target: basename(program),
|
|
182
|
-
platform: search.platform
|
|
183
|
-
});
|
|
184
|
-
const named = findOnPath(name, search);
|
|
185
|
-
const made = [...files.map((file) => file.path), ...named].find(ourShortcut);
|
|
186
|
-
if (made)
|
|
187
|
-
return { name, status: "made", path: made, program };
|
|
188
|
-
const first = named[0];
|
|
189
|
-
if (first === void 0)
|
|
190
|
-
return { name, status: "free", program };
|
|
191
|
-
return { name, status: isWirecatPackage(first) ? "package" : "taken", path: first, program };
|
|
192
|
-
}, "statusOf");
|
|
193
|
-
var changeFile = /* @__PURE__ */ __name((path, change) => {
|
|
194
|
-
try {
|
|
195
|
-
change();
|
|
196
|
-
} catch (error) {
|
|
197
|
-
throw new CliError("permission_error", `could not change ${path}: ${error.code ?? error}`, {
|
|
198
|
-
reason: "access.denied"
|
|
199
|
-
});
|
|
200
|
-
}
|
|
201
|
-
}, "changeFile");
|
|
202
|
-
var installedPrograms = /* @__PURE__ */ __name((search) => new Map([...findTools(search)].filter(([name]) => !isBuiltIn(name))), "installedPrograms");
|
|
203
|
-
var chosen = /* @__PURE__ */ __name((names, search) => {
|
|
204
|
-
const installed = installedPrograms(search);
|
|
205
|
-
if (names === void 0 || names.length === 0)
|
|
206
|
-
return [...installed].map(([name, paths]) => [name, paths[0]]);
|
|
207
|
-
const missing = names.filter((name) => !installed.has(name));
|
|
208
|
-
if (missing.length > 0)
|
|
209
|
-
throw new CliError("not_found", `not installed: ${missing.map((name) => `wcat-${name}`).join(", ")}`, {
|
|
210
|
-
reason: "tool.not-installed",
|
|
211
|
-
tool: missing[0],
|
|
212
|
-
installed: [...installed.keys()]
|
|
213
|
-
});
|
|
214
|
-
return [...new Set(names)].map((name) => [name, installed.get(name)[0]]);
|
|
215
|
-
}, "chosen");
|
|
216
|
-
var listShortcuts = /* @__PURE__ */ __name((search, names) => chosen(names, search).map(([name, program]) => statusOf(name, program, search)), "listShortcuts");
|
|
217
|
-
var addShortcuts = /* @__PURE__ */ __name((search, names) => listShortcuts(search, names).map((shortcut) => {
|
|
218
|
-
if (shortcut.status !== "free")
|
|
219
|
-
return { ...shortcut, changed: false };
|
|
220
|
-
const files = shimFiles("shortcut", {
|
|
221
|
-
dir: dirname(shortcut.program),
|
|
222
|
-
name: shortcut.name,
|
|
223
|
-
target: basename(shortcut.program),
|
|
224
|
-
platform: search.platform
|
|
225
|
-
});
|
|
226
|
-
for (const file of files)
|
|
227
|
-
changeFile(file.path, () => writeShim(file));
|
|
228
|
-
return { ...shortcut, status: "made", path: files[0]?.path, changed: true };
|
|
229
|
-
}), "addShortcuts");
|
|
230
|
-
var removeShortcuts = /* @__PURE__ */ __name((search, names) => listShortcuts(search, names).map((shortcut) => {
|
|
231
|
-
if (shortcut.status !== "made")
|
|
232
|
-
return { ...shortcut, changed: false };
|
|
233
|
-
const files = shimFiles("shortcut", {
|
|
234
|
-
dir: dirname(shortcut.path),
|
|
235
|
-
name: shortcut.name,
|
|
236
|
-
target: basename(shortcut.program),
|
|
237
|
-
platform: search.platform
|
|
238
|
-
});
|
|
239
|
-
for (const file of files)
|
|
240
|
-
if (ourShortcut(file.path))
|
|
241
|
-
changeFile(file.path, () => rmSync(file.path, { force: true }));
|
|
242
|
-
return { ...statusOf(shortcut.name, shortcut.program, search), changed: true };
|
|
243
|
-
}), "removeShortcuts");
|
|
244
|
-
|
|
245
|
-
// node_modules/.pnpm/@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/dispatch.js
|
|
246
|
-
var DEFAULT_DESCRIBE_TIMEOUT_MS = 2e3;
|
|
247
|
-
var listTools = /* @__PURE__ */ __name(async (context) => {
|
|
248
|
-
const installed = installedPrograms(context);
|
|
249
|
-
const timeoutMs = context.describeTimeoutMs ?? DEFAULT_DESCRIBE_TIMEOUT_MS;
|
|
250
|
-
const found = await Promise.all([...installed].map(async ([name, paths]) => {
|
|
251
|
-
const [path, ...shadowed] = paths;
|
|
252
|
-
const own = context.self?.command === name ? context.self : void 0;
|
|
253
|
-
const described = own ?? await probeDescribe(path, { env: context.env, timeoutMs });
|
|
254
|
-
return {
|
|
255
|
-
name,
|
|
256
|
-
installed: true,
|
|
257
|
-
path,
|
|
258
|
-
...described?.version ? { version: described.version } : {},
|
|
259
|
-
...described?.description ? { description: described.description } : {},
|
|
260
|
-
...described?.docs ? { docs_url: described.docs } : {},
|
|
261
|
-
...shadowed.length > 0 ? { shadowed } : {}
|
|
262
|
-
};
|
|
263
|
-
}));
|
|
264
|
-
const missing = FIRST_PARTY_TOOLS.filter((tool) => tool.package && !installed.has(tool.name)).map((tool) => ({
|
|
265
|
-
name: tool.name,
|
|
266
|
-
installed: false,
|
|
267
|
-
package: tool.package,
|
|
268
|
-
install: `npm install -g ${tool.package}`
|
|
269
|
-
}));
|
|
270
|
-
return [...found, ...missing];
|
|
271
|
-
}, "listTools");
|
|
272
|
-
var envelope = /* @__PURE__ */ __name((items, started) => ({
|
|
273
|
-
items,
|
|
274
|
-
page: { mode: "page", limit: Math.max(items.length, 1), has_more: false },
|
|
275
|
-
meta: { run_id: randomUUID(), duration_ms: Math.max(0, Math.round(performance.now() - started)), complete: true }
|
|
276
|
-
}), "envelope");
|
|
277
|
-
var column = /* @__PURE__ */ __name((rows) => {
|
|
278
|
-
const widths = rows[0]?.map((_, at) => rows.reduce((wide, row) => Math.max(wide, (row[at] ?? "").length), 0)) ?? [];
|
|
279
|
-
return rows.map((row) => ` ${row.map((cell, at) => cell.padEnd(widths[at] ?? 0)).join(" ")}`.trimEnd());
|
|
280
|
-
}, "column");
|
|
281
|
-
var USAGE = [
|
|
282
|
-
"wcat <tool> [arguments] run a tool: wcat tg --help",
|
|
283
|
-
"wcat shortcuts [add|remove] [tool...] short names, such as tg, for installed tools",
|
|
284
|
-
"wcat --json the list below as JSON"
|
|
285
|
-
];
|
|
286
|
-
var listText = /* @__PURE__ */ __name((tools) => {
|
|
287
|
-
const installed = tools.filter((tool) => tool.installed);
|
|
288
|
-
const missing = tools.filter((tool) => !tool.installed);
|
|
289
|
-
return [
|
|
290
|
-
"wcat runs WireCat tools, and any other wcat-<name> program on PATH.",
|
|
291
|
-
"",
|
|
292
|
-
...USAGE,
|
|
293
|
-
"",
|
|
294
|
-
installed.length > 0 ? "Installed:" : "Installed: none",
|
|
295
|
-
...column(installed.map((tool) => [tool.name, tool.version ?? "", tool.description ?? "(no description)"])),
|
|
296
|
-
...missing.length > 0 ? ["", "Not installed:", ...column(missing.map((tool) => [tool.name, tool.install ?? ""]))] : [],
|
|
297
|
-
""
|
|
298
|
-
].join("\n");
|
|
299
|
-
}, "listText");
|
|
300
|
-
var shadowWarnings = /* @__PURE__ */ __name((tools) => tools.filter((tool) => tool.shadowed).map((tool) => `wcat: ${(tool.shadowed?.length ?? 0) + 1} programs are named ${PROGRAM_PREFIX}${tool.name}; wcat runs the first:
|
|
301
|
-
${[tool.path, ...tool.shadowed ?? []].map((path) => ` ${path}`).join("\n")}
|
|
302
|
-
`).join(""), "shadowWarnings");
|
|
303
|
-
var shortcutText = /* @__PURE__ */ __name((shortcuts2) => {
|
|
304
|
-
if (shortcuts2.length === 0)
|
|
305
|
-
return "No wcat-<name> programs are installed.\n";
|
|
306
|
-
const said = /* @__PURE__ */ __name((shortcut) => {
|
|
307
|
-
switch (shortcut.status) {
|
|
308
|
-
case "made":
|
|
309
|
-
return `made: ${shortcut.path}`;
|
|
310
|
-
case "free":
|
|
311
|
-
return shortcut.changed ? "removed" : "free: wcat shortcuts add makes it";
|
|
312
|
-
case "package":
|
|
313
|
-
return `installed by the package: ${shortcut.path}`;
|
|
314
|
-
case "taken":
|
|
315
|
-
return `taken by ${shortcut.path}`;
|
|
316
|
-
}
|
|
317
|
-
}, "said");
|
|
318
|
-
return `${column(shortcuts2.map((shortcut) => [shortcut.name, said(shortcut)])).join("\n")}
|
|
319
|
-
`;
|
|
320
|
-
}, "shortcutText");
|
|
321
|
-
var signalNumber = /* @__PURE__ */ __name((signal) => constants.signals[signal] ?? 1, "signalNumber");
|
|
322
|
-
var runTool = /* @__PURE__ */ __name((path, args, context) => new Promise((resolve, reject) => {
|
|
323
|
-
const signals = context.signals ?? process;
|
|
324
|
-
const child = (0, import_cross_spawn2.default)(path, [...args], { stdio: "inherit", env: context.env });
|
|
325
|
-
const pass = /* @__PURE__ */ __name((signal) => () => child.kill(signal), "pass");
|
|
326
|
-
const term = pass("SIGTERM");
|
|
327
|
-
const hup = pass("SIGHUP");
|
|
328
|
-
const ignore = /* @__PURE__ */ __name(() => {
|
|
329
|
-
}, "ignore");
|
|
330
|
-
signals.on("SIGTERM", term).on("SIGHUP", hup).on("SIGINT", ignore);
|
|
331
|
-
const done = /* @__PURE__ */ __name(() => signals.off("SIGTERM", term).off("SIGHUP", hup).off("SIGINT", ignore), "done");
|
|
332
|
-
child.once("error", (error) => {
|
|
333
|
-
done();
|
|
334
|
-
reject(new CliError("configuration_error", `could not start ${path}: ${error.message}`));
|
|
335
|
-
});
|
|
336
|
-
child.once("exit", (code, signal) => {
|
|
337
|
-
done();
|
|
338
|
-
resolve(code ?? (signal ? 128 + signalNumber(signal) : 1));
|
|
339
|
-
});
|
|
340
|
-
}), "runTool");
|
|
341
|
-
var fail = /* @__PURE__ */ __name(async (error, json, context) => {
|
|
342
|
-
const { errorObjectOf, exitCodeOfError, renderError } = await import("./failure-XTWBYI2A.js");
|
|
343
|
-
const object = errorObjectOf(error);
|
|
344
|
-
context.stderr.write(`${renderError(object, { cli: "wcat", interactive: !json })}
|
|
345
|
-
`);
|
|
346
|
-
return exitCodeOfError(object);
|
|
347
|
-
}, "fail");
|
|
348
|
-
var shortcuts = /* @__PURE__ */ __name(async (args, json, context) => {
|
|
349
|
-
const [action, ...names] = args;
|
|
350
|
-
const started = performance.now();
|
|
351
|
-
const result = action === "add" ? addShortcuts(context, names) : action === "remove" ? removeShortcuts(context, names) : action === void 0 || action === "list" ? listShortcuts(context, names) : void 0;
|
|
352
|
-
if (result === void 0)
|
|
353
|
-
throw new CliError("validation_error", `wcat shortcuts takes list, add or remove, not "${action}"`, {
|
|
354
|
-
reason: "input.invalid"
|
|
355
|
-
});
|
|
356
|
-
context.stdout.write(json ? `${JSON.stringify(envelope(result, started))}
|
|
357
|
-
` : shortcutText(result));
|
|
358
|
-
return 0;
|
|
359
|
-
}, "shortcuts");
|
|
360
|
-
var runWcat = /* @__PURE__ */ __name(async (args, context) => {
|
|
361
|
-
const [first, ...rest] = args;
|
|
362
|
-
const json = args.includes("--json");
|
|
363
|
-
const words = args.filter((word) => word !== "--json");
|
|
364
|
-
const started = performance.now();
|
|
365
|
-
try {
|
|
366
|
-
if (first === "--version" || first === "-V" || first === "version") {
|
|
367
|
-
const tools = await listTools(context);
|
|
368
|
-
const by = context.self ? `, run by ${PROGRAM_PREFIX}${context.self.command} ${context.self.version}` : "";
|
|
369
|
-
context.stdout.write(`wcat ${baseVersion()} (@wirecat/cli-base${by})
|
|
370
|
-
|
|
371
|
-
${listText(tools)}`);
|
|
372
|
-
return 0;
|
|
373
|
-
}
|
|
374
|
-
if (words.length === 0 || first === "--help" || first === "-h" || first === "help") {
|
|
375
|
-
const tools = await listTools(context);
|
|
376
|
-
if (json)
|
|
377
|
-
context.stdout.write(`${JSON.stringify(envelope(tools, started))}
|
|
378
|
-
`);
|
|
379
|
-
else {
|
|
380
|
-
context.stderr.write(shadowWarnings(tools));
|
|
381
|
-
context.stdout.write(listText(tools));
|
|
382
|
-
}
|
|
383
|
-
return 0;
|
|
384
|
-
}
|
|
385
|
-
if (first === "shortcuts")
|
|
386
|
-
return await shortcuts(words.slice(1), json, context);
|
|
387
|
-
if (BUILT_IN_COMMANDS.includes(first))
|
|
388
|
-
throw new CliError("validation_error", `wcat ${first} is reserved for a later version of wcat`, {
|
|
389
|
-
reason: "input.invalid"
|
|
390
|
-
});
|
|
391
|
-
if (first?.startsWith("-"))
|
|
392
|
-
throw new CliError("validation_error", `wcat does not take ${first} before a tool's name`, {
|
|
393
|
-
reason: "input.invalid"
|
|
394
|
-
});
|
|
395
|
-
const name = first;
|
|
396
|
-
const [path, ...shadowed] = TOOL_NAME.test(name) ? findOnPath(`${PROGRAM_PREFIX}${name}`, context) : [];
|
|
397
|
-
if (path === void 0) {
|
|
398
|
-
const installed = [...installedPrograms(context).keys()];
|
|
399
|
-
throw new CliError("not_found", `no ${PROGRAM_PREFIX}${name} on PATH; installed: ${installed.length > 0 ? installed.join(", ") : "none"}`, { reason: "tool.not-installed", tool: name, installed });
|
|
400
|
-
}
|
|
401
|
-
if (shadowed.length > 0 && context.stderr.isTTY)
|
|
402
|
-
context.stderr.write(shadowWarnings([{ name, installed: true, path, shadowed }]));
|
|
403
|
-
return await runTool(path, rest, context);
|
|
404
|
-
} catch (error) {
|
|
405
|
-
return fail(error, json, context);
|
|
406
|
-
}
|
|
407
|
-
}, "runWcat");
|
|
408
|
-
export {
|
|
409
|
-
listTools,
|
|
410
|
-
runTool,
|
|
411
|
-
runWcat
|
|
412
|
-
};
|