@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,259 +0,0 @@
|
|
|
1
|
-
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
-
const require = __bundleRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
OPENAI_URL,
|
|
5
|
-
openRemote,
|
|
6
|
-
remoteKey,
|
|
7
|
-
remoteModel
|
|
8
|
-
} from "./chunk-HP7A2ZOP.js";
|
|
9
|
-
import {
|
|
10
|
-
isTextModelInstalled,
|
|
11
|
-
openEmbedder,
|
|
12
|
-
textModelsDirectory
|
|
13
|
-
} from "./chunk-KVJ3I7UL.js";
|
|
14
|
-
import {
|
|
15
|
-
textModel,
|
|
16
|
-
vectorModelKey
|
|
17
|
-
} from "./chunk-BP4FYANF.js";
|
|
18
|
-
import {
|
|
19
|
-
endpointFetch
|
|
20
|
-
} from "./chunk-6QYZP4E2.js";
|
|
21
|
-
import {
|
|
22
|
-
CliError
|
|
23
|
-
} from "./chunk-IANKXHSE.js";
|
|
24
|
-
import {
|
|
25
|
-
__name
|
|
26
|
-
} from "./chunk-ZVVMGPBJ.js";
|
|
27
|
-
|
|
28
|
-
// 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/services/meeting-model.js
|
|
29
|
-
var integer = /* @__PURE__ */ __name((value, name, max) => {
|
|
30
|
-
if (!Number.isSafeInteger(value) || value < 1 || value > max)
|
|
31
|
-
throw new CliError("validation_error", `Invalid ${name}`);
|
|
32
|
-
return value;
|
|
33
|
-
}, "integer");
|
|
34
|
-
var cancelled = /* @__PURE__ */ __name((signal) => {
|
|
35
|
-
if (signal?.aborted)
|
|
36
|
-
throw new CliError("cancelled", "Meeting embedding was cancelled");
|
|
37
|
-
}, "cancelled");
|
|
38
|
-
var validatedRemote = /* @__PURE__ */ __name((remote) => {
|
|
39
|
-
let url;
|
|
40
|
-
try {
|
|
41
|
-
url = new URL(remote.baseUrl);
|
|
42
|
-
} catch {
|
|
43
|
-
throw new CliError("validation_error", "Invalid embedding endpoint");
|
|
44
|
-
}
|
|
45
|
-
if (!["http:", "https:"].includes(url.protocol) || url.username || url.password || url.search || url.hash)
|
|
46
|
-
throw new CliError("validation_error", "Embedding endpoint requires HTTP/S without credentials, query or fragment");
|
|
47
|
-
if (typeof remote.model !== "string" || !/^[\w./:-]{1,200}$/.test(remote.model))
|
|
48
|
-
throw new CliError("validation_error", "Invalid embedding model name");
|
|
49
|
-
const dims = integer(remote.dims, "embedding dimensions", 8192);
|
|
50
|
-
const baseUrl = remote.baseUrl.replace(/\/+$/, "");
|
|
51
|
-
const result = remoteModel({ model: remote.model, dims, ...baseUrl === OPENAI_URL ? {} : { baseUrl } });
|
|
52
|
-
return result;
|
|
53
|
-
}, "validatedRemote");
|
|
54
|
-
var meetingEmbeddingModel = /* @__PURE__ */ __name((choice, env) => {
|
|
55
|
-
if (typeof choice === "string") {
|
|
56
|
-
const model = textModel(choice, env);
|
|
57
|
-
return { key: vectorModelKey(model), dims: model.dims, kind: "local", model: model.id };
|
|
58
|
-
}
|
|
59
|
-
if (!choice || typeof choice !== "object" || !choice.remote)
|
|
60
|
-
throw new CliError("validation_error", "An explicit embedding model is required");
|
|
61
|
-
const remote = validatedRemote(choice.remote);
|
|
62
|
-
if (choice.concurrency !== void 0 && choice.concurrency !== 1)
|
|
63
|
-
throw new CliError("validation_error", "Meeting embedding supports one remote request worker");
|
|
64
|
-
return { key: remoteKey(remote), dims: remote.dims, kind: "remote", model: remote.model };
|
|
65
|
-
}, "meetingEmbeddingModel");
|
|
66
|
-
var createMeetingRemoteModel = /* @__PURE__ */ __name((input) => {
|
|
67
|
-
try {
|
|
68
|
-
return validatedRemote(remoteModel(input));
|
|
69
|
-
} catch (error) {
|
|
70
|
-
if (error instanceof CliError)
|
|
71
|
-
throw error;
|
|
72
|
-
throw new CliError("validation_error", "Invalid embedding endpoint");
|
|
73
|
-
}
|
|
74
|
-
}, "createMeetingRemoteModel");
|
|
75
|
-
var withAbort = /* @__PURE__ */ __name(async (pending, signal) => {
|
|
76
|
-
cancelled(signal);
|
|
77
|
-
if (!signal)
|
|
78
|
-
return pending;
|
|
79
|
-
let onAbort = /* @__PURE__ */ __name(() => {
|
|
80
|
-
}, "onAbort");
|
|
81
|
-
const interrupted = new Promise((_, reject) => {
|
|
82
|
-
onAbort = /* @__PURE__ */ __name(() => reject(new CliError("cancelled", "Meeting embedding was cancelled")), "onAbort");
|
|
83
|
-
signal.addEventListener("abort", onAbort, { once: true });
|
|
84
|
-
});
|
|
85
|
-
try {
|
|
86
|
-
return await Promise.race([pending, interrupted]);
|
|
87
|
-
} finally {
|
|
88
|
-
signal.removeEventListener("abort", onAbort);
|
|
89
|
-
}
|
|
90
|
-
}, "withAbort");
|
|
91
|
-
var boundedResponse = /* @__PURE__ */ __name(async (response, maxBytes, signal) => {
|
|
92
|
-
const length = response.headers.get("content-length");
|
|
93
|
-
if (length !== null && (!/^\d+$/.test(length) || Number(length) > maxBytes)) {
|
|
94
|
-
void response.body?.cancel().catch(() => {
|
|
95
|
-
});
|
|
96
|
-
throw new CliError("invalid_response", "Embedding response exceeds the byte budget");
|
|
97
|
-
}
|
|
98
|
-
if (!response.body)
|
|
99
|
-
throw new CliError("invalid_response", "Embedding response has no body");
|
|
100
|
-
const reader = response.body.getReader();
|
|
101
|
-
const chunks = [];
|
|
102
|
-
let bytes = 0;
|
|
103
|
-
try {
|
|
104
|
-
for (; ; ) {
|
|
105
|
-
cancelled(signal);
|
|
106
|
-
const part = await withAbort(reader.read(), signal);
|
|
107
|
-
cancelled(signal);
|
|
108
|
-
if (part.done)
|
|
109
|
-
break;
|
|
110
|
-
bytes += part.value.byteLength;
|
|
111
|
-
if (bytes > maxBytes)
|
|
112
|
-
throw new CliError("invalid_response", "Embedding response exceeds the byte budget");
|
|
113
|
-
chunks.push(part.value);
|
|
114
|
-
}
|
|
115
|
-
const body = Buffer.concat(chunks, bytes).toString("utf8");
|
|
116
|
-
try {
|
|
117
|
-
return JSON.parse(body);
|
|
118
|
-
} catch {
|
|
119
|
-
throw new CliError("invalid_response", "Embedding response is not JSON");
|
|
120
|
-
}
|
|
121
|
-
} finally {
|
|
122
|
-
void reader.cancel().catch(() => {
|
|
123
|
-
});
|
|
124
|
-
reader.releaseLock();
|
|
125
|
-
}
|
|
126
|
-
}, "boundedResponse");
|
|
127
|
-
var openMeetingEmbedder = /* @__PURE__ */ __name(async (choice, options = {}) => {
|
|
128
|
-
const descriptor = meetingEmbeddingModel(choice, options.env);
|
|
129
|
-
const { signal } = options;
|
|
130
|
-
cancelled(signal);
|
|
131
|
-
const maxInputBytes = integer(options.maxInputBytes ?? 1024 * 1024, "input byte budget", 16 * 1024 * 1024);
|
|
132
|
-
const maxResponseBytes = integer(options.maxResponseBytes ?? 8 * 1024 * 1024, "response byte budget", 64 * 1024 * 1024);
|
|
133
|
-
if (options.threads !== void 0)
|
|
134
|
-
integer(options.threads, "embedding threads", 128);
|
|
135
|
-
let engine;
|
|
136
|
-
let remoteFailure;
|
|
137
|
-
if (typeof choice === "string") {
|
|
138
|
-
const model = textModel(choice, options.env);
|
|
139
|
-
const directory = options.directory ?? textModelsDirectory(options.env);
|
|
140
|
-
if (!isTextModelInstalled(model, directory))
|
|
141
|
-
throw new CliError("configuration_error", "The explicit local embedding model is not installed");
|
|
142
|
-
engine = await openEmbedder(model, directory, {
|
|
143
|
-
...options.threads === void 0 ? {} : { threads: options.threads }
|
|
144
|
-
});
|
|
145
|
-
} else {
|
|
146
|
-
const remote = validatedRemote(choice.remote);
|
|
147
|
-
const key = choice.apiKey ?? (remote.provider === "openai" ? (options.env ?? process.env).OPENAI_API_KEY : void 0);
|
|
148
|
-
if (remote.provider === "openai" && !key)
|
|
149
|
-
throw new CliError("authentication_error", "The explicit remote embedding model requires an API key");
|
|
150
|
-
const post = options.fetch ?? endpointFetch(remote.baseUrl, 12e4);
|
|
151
|
-
const guarded = /* @__PURE__ */ __name(async (url, init) => {
|
|
152
|
-
try {
|
|
153
|
-
cancelled(signal);
|
|
154
|
-
const responseTask = post(url, { ...init, redirect: "manual", ...signal ? { signal } : {} }).then((response2) => {
|
|
155
|
-
if (signal?.aborted) {
|
|
156
|
-
void response2.body?.cancel().catch(() => {
|
|
157
|
-
});
|
|
158
|
-
cancelled(signal);
|
|
159
|
-
}
|
|
160
|
-
return response2;
|
|
161
|
-
});
|
|
162
|
-
const response = await withAbort(responseTask, signal);
|
|
163
|
-
if (signal?.aborted) {
|
|
164
|
-
void response.body?.cancel().catch(() => {
|
|
165
|
-
});
|
|
166
|
-
cancelled(signal);
|
|
167
|
-
}
|
|
168
|
-
if (response.status >= 300 && response.status < 400) {
|
|
169
|
-
void response.body?.cancel().catch(() => {
|
|
170
|
-
});
|
|
171
|
-
throw new CliError("invalid_response", "Embedding redirects are refused");
|
|
172
|
-
}
|
|
173
|
-
if (!response.ok) {
|
|
174
|
-
void response.body?.cancel().catch(() => {
|
|
175
|
-
});
|
|
176
|
-
return new Response("{}", { status: response.status });
|
|
177
|
-
}
|
|
178
|
-
const body = await boundedResponse(response, maxResponseBytes, signal);
|
|
179
|
-
if (!body || typeof body !== "object" || !("data" in body) || !Array.isArray(body.data) || body.data.length > 256)
|
|
180
|
-
throw new CliError("invalid_response", "Embedding response lacks vector data");
|
|
181
|
-
for (const entry of body.data) {
|
|
182
|
-
if (!entry || typeof entry !== "object" || !Number.isSafeInteger(entry.index) || entry.index < 0 || !Array.isArray(entry.embedding) || entry.embedding.length !== remote.dims || entry.embedding.some((value) => typeof value !== "number" || !Number.isFinite(value) || !Number.isFinite(Math.fround(value))))
|
|
183
|
-
throw new CliError("invalid_response", "Embedding response contains invalid vectors");
|
|
184
|
-
}
|
|
185
|
-
const indices = body.data.map((entry) => entry.index).sort((a, b) => a - b);
|
|
186
|
-
if (indices.some((index, position) => index !== position))
|
|
187
|
-
throw new CliError("invalid_response", "Embedding response contains invalid vector indices");
|
|
188
|
-
return new Response(JSON.stringify({ data: body.data.map((entry) => ({ index: entry.index, embedding: entry.embedding })) }), { status: response.status });
|
|
189
|
-
} catch (error) {
|
|
190
|
-
remoteFailure = error;
|
|
191
|
-
throw error;
|
|
192
|
-
}
|
|
193
|
-
}, "guarded");
|
|
194
|
-
engine = openRemote(remote, key, { concurrency: 1, fetch: guarded, tries: 1, env: options.env ?? process.env });
|
|
195
|
-
}
|
|
196
|
-
if (signal?.aborted) {
|
|
197
|
-
await engine.close();
|
|
198
|
-
cancelled(signal);
|
|
199
|
-
}
|
|
200
|
-
let closed = false;
|
|
201
|
-
let running = false;
|
|
202
|
-
let active = null;
|
|
203
|
-
let closing = null;
|
|
204
|
-
return {
|
|
205
|
-
...descriptor,
|
|
206
|
-
async embed(texts, kind) {
|
|
207
|
-
cancelled(signal);
|
|
208
|
-
if (closed)
|
|
209
|
-
throw new CliError("configuration_error", "Meeting embedder is closed");
|
|
210
|
-
if (!Array.isArray(texts) || texts.length > 1e3 || texts.some((text) => typeof text !== "string") || !["query", "passage"].includes(kind))
|
|
211
|
-
throw new CliError("validation_error", "Invalid meeting embedding inputs");
|
|
212
|
-
if (Buffer.byteLength(JSON.stringify(texts), "utf8") > maxInputBytes || texts.length * descriptor.dims * 4 > maxResponseBytes)
|
|
213
|
-
throw new CliError("validation_error", "Meeting embedding input or vector payload exceeds its byte budget");
|
|
214
|
-
if (running)
|
|
215
|
-
throw new CliError("validation_error", "A meeting embedding request is already running");
|
|
216
|
-
running = true;
|
|
217
|
-
let settled = /* @__PURE__ */ __name(() => {
|
|
218
|
-
}, "settled");
|
|
219
|
-
active = new Promise((resolve) => {
|
|
220
|
-
settled = resolve;
|
|
221
|
-
});
|
|
222
|
-
remoteFailure = void 0;
|
|
223
|
-
try {
|
|
224
|
-
const vectors = await engine.embed([...texts], kind);
|
|
225
|
-
cancelled(signal);
|
|
226
|
-
if (vectors.length !== texts.length || vectors.some((vector) => vector.length !== descriptor.dims || !vector.some((value) => value !== 0) || [...vector].some((value) => !Number.isFinite(value))))
|
|
227
|
-
throw new CliError("invalid_response", "Meeting embedder returned invalid vectors");
|
|
228
|
-
return vectors;
|
|
229
|
-
} catch (error) {
|
|
230
|
-
cancelled(signal);
|
|
231
|
-
if (remoteFailure instanceof CliError)
|
|
232
|
-
throw remoteFailure;
|
|
233
|
-
if (error instanceof CliError)
|
|
234
|
-
throw error;
|
|
235
|
-
throw new CliError("provider_error", "Meeting embedding failed");
|
|
236
|
-
} finally {
|
|
237
|
-
running = false;
|
|
238
|
-
settled();
|
|
239
|
-
active = null;
|
|
240
|
-
}
|
|
241
|
-
},
|
|
242
|
-
async close() {
|
|
243
|
-
if (!closing) {
|
|
244
|
-
closed = true;
|
|
245
|
-
closing = (async () => {
|
|
246
|
-
await active;
|
|
247
|
-
await engine.close();
|
|
248
|
-
})();
|
|
249
|
-
}
|
|
250
|
-
await closing;
|
|
251
|
-
}
|
|
252
|
-
};
|
|
253
|
-
}, "openMeetingEmbedder");
|
|
254
|
-
|
|
255
|
-
export {
|
|
256
|
-
meetingEmbeddingModel,
|
|
257
|
-
createMeetingRemoteModel,
|
|
258
|
-
openMeetingEmbedder
|
|
259
|
-
};
|
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
-
const require = __bundleRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
executableEnvironment,
|
|
5
|
-
executableOnPath
|
|
6
|
-
} from "./chunk-TY7NDMFY.js";
|
|
7
|
-
import {
|
|
8
|
-
require_cross_spawn
|
|
9
|
-
} from "./chunk-D72URWJE.js";
|
|
10
|
-
import {
|
|
11
|
-
loadConfigFile,
|
|
12
|
-
saveConfigFile
|
|
13
|
-
} from "./chunk-6CWL5BKG.js";
|
|
14
|
-
import {
|
|
15
|
-
number,
|
|
16
|
-
object,
|
|
17
|
-
optional,
|
|
18
|
-
string
|
|
19
|
-
} from "./chunk-ESN3W2MZ.js";
|
|
20
|
-
import {
|
|
21
|
-
__name,
|
|
22
|
-
__toESM
|
|
23
|
-
} from "./chunk-ZVVMGPBJ.js";
|
|
24
|
-
|
|
25
|
-
// 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/update/index.js
|
|
26
|
-
var import_cross_spawn = __toESM(require_cross_spawn(), 1);
|
|
27
|
-
import { existsSync } from "node:fs";
|
|
28
|
-
var updateCommand = /* @__PURE__ */ __name((installer, packageName) => {
|
|
29
|
-
const target = `${packageName}@latest`;
|
|
30
|
-
switch (installer) {
|
|
31
|
-
// pnpm 11 installs only versions a day old (minimumReleaseAge 1440); a fix must reach users the day it ships.
|
|
32
|
-
// Only the package's own scope is exempt — every other dependency keeps the wait.
|
|
33
|
-
case "pnpm":
|
|
34
|
-
return ["pnpm", "add", "-g", target, `--config.minimumReleaseAgeExclude=${ownScope(packageName)}`];
|
|
35
|
-
case "npm":
|
|
36
|
-
return ["npm", "install", "-g", target];
|
|
37
|
-
case "bun":
|
|
38
|
-
return ["bun", "add", "-g", target];
|
|
39
|
-
default:
|
|
40
|
-
return void 0;
|
|
41
|
-
}
|
|
42
|
-
}, "updateCommand");
|
|
43
|
-
var ownScope = /* @__PURE__ */ __name((packageName) => packageName.startsWith("@") ? `${packageName.split("/", 1)[0]}/*` : packageName, "ownScope");
|
|
44
|
-
var isNewer = /* @__PURE__ */ __name((candidate, current) => {
|
|
45
|
-
const parse = /* @__PURE__ */ __name((version) => /^\d+\.\d+\.\d+$/.test(version) ? version.split(".").map(Number) : void 0, "parse");
|
|
46
|
-
const a = parse(candidate);
|
|
47
|
-
const b = parse(current);
|
|
48
|
-
if (!a || !b)
|
|
49
|
-
return false;
|
|
50
|
-
for (let i = 0; i < 3; i++) {
|
|
51
|
-
if (a[i] !== b[i])
|
|
52
|
-
return a[i] > b[i];
|
|
53
|
-
}
|
|
54
|
-
return false;
|
|
55
|
-
}, "isNewer");
|
|
56
|
-
var latestVersion = /* @__PURE__ */ __name(async (packageName, fetch, { timeoutMs = 1e3 } = {}) => {
|
|
57
|
-
try {
|
|
58
|
-
const response = await fetch(`https://registry.npmjs.org/${packageName}/latest`, {
|
|
59
|
-
signal: AbortSignal.timeout(timeoutMs),
|
|
60
|
-
headers: { accept: "application/json" }
|
|
61
|
-
});
|
|
62
|
-
if (!response.ok)
|
|
63
|
-
return void 0;
|
|
64
|
-
const { version } = await response.json();
|
|
65
|
-
return typeof version === "string" ? version : void 0;
|
|
66
|
-
} catch {
|
|
67
|
-
return void 0;
|
|
68
|
-
}
|
|
69
|
-
}, "latestVersion");
|
|
70
|
-
var CHECK_EVERY_MS = 24 * 60 * 60 * 1e3;
|
|
71
|
-
var mayNotify = /* @__PURE__ */ __name(({ format, stderrIsTTY, quiet, enabled, installer, env, offVariables = [] }) => enabled && format === "pretty" && stderrIsTTY && !quiet && updateCommand(installer, "any") !== void 0 && !env.CI && !env.NO_UPDATE_NOTIFIER && offVariables.every((name) => !env[name]), "mayNotify");
|
|
72
|
-
var updateState = object({
|
|
73
|
-
checkedAt: number(),
|
|
74
|
-
latest: optional(string()),
|
|
75
|
-
/** When the skill hint (`cli-base/skill`) was last shown — the other daily notice kept in this file. */
|
|
76
|
-
skillHintAt: optional(number())
|
|
77
|
-
});
|
|
78
|
-
var readNoticeState = /* @__PURE__ */ __name((path) => {
|
|
79
|
-
try {
|
|
80
|
-
return loadConfigFile(path, updateState, () => ({ checkedAt: 0 }));
|
|
81
|
-
} catch {
|
|
82
|
-
return { checkedAt: 0 };
|
|
83
|
-
}
|
|
84
|
-
}, "readNoticeState");
|
|
85
|
-
var readUpdateState = /* @__PURE__ */ __name((path) => {
|
|
86
|
-
const state = readNoticeState(path);
|
|
87
|
-
return state.checkedAt > 0 ? state : void 0;
|
|
88
|
-
}, "readUpdateState");
|
|
89
|
-
var writeUpdateState = /* @__PURE__ */ __name((path, state) => {
|
|
90
|
-
try {
|
|
91
|
-
saveConfigFile(path, { ...readNoticeState(path), ...state });
|
|
92
|
-
} catch {
|
|
93
|
-
}
|
|
94
|
-
}, "writeUpdateState");
|
|
95
|
-
var checkIsDue = /* @__PURE__ */ __name((state, now) => state === void 0 || now - state.checkedAt >= CHECK_EVERY_MS, "checkIsDue");
|
|
96
|
-
var spawnPlan = /* @__PURE__ */ __name(([command, ...args], platform = process.platform, env = process.env, exists = existsSync) => ({ file: executableOnPath(command, env, platform, exists), args, shell: false }), "spawnPlan");
|
|
97
|
-
var runUpdate = /* @__PURE__ */ __name((argv) => {
|
|
98
|
-
const { file, args, shell } = spawnPlan(argv);
|
|
99
|
-
const { status, error } = import_cross_spawn.default.sync(file, args, {
|
|
100
|
-
stdio: ["inherit", 2, 2],
|
|
101
|
-
shell,
|
|
102
|
-
env: executableEnvironment(process.env)
|
|
103
|
-
});
|
|
104
|
-
if (error)
|
|
105
|
-
throw new Error(`could not start ${argv[0]}: ${error.message}`);
|
|
106
|
-
return status ?? 1;
|
|
107
|
-
}, "runUpdate");
|
|
108
|
-
var updateNotice = /* @__PURE__ */ __name(async ({ argv, packageName, command, upgradeCommand = "upgrade", version, statePath, fetch, now = Date.now, ...context }) => {
|
|
109
|
-
try {
|
|
110
|
-
const path = commandWords(argv).slice(0, 2);
|
|
111
|
-
if (path.includes("complete") || path.includes(upgradeCommand))
|
|
112
|
-
return void 0;
|
|
113
|
-
if (!mayNotify(context))
|
|
114
|
-
return void 0;
|
|
115
|
-
const at = now();
|
|
116
|
-
let state = readUpdateState(statePath);
|
|
117
|
-
if (checkIsDue(state, at)) {
|
|
118
|
-
const found = await latestVersion(packageName, fetch, { timeoutMs: 1e3 });
|
|
119
|
-
const seen = found ?? state?.latest;
|
|
120
|
-
state = seen ? { checkedAt: at, latest: seen } : { checkedAt: at };
|
|
121
|
-
writeUpdateState(statePath, state);
|
|
122
|
-
}
|
|
123
|
-
return state?.latest && isNewer(state.latest, version) ? `${command} ${state.latest} is out \u2014 you have ${version}. \`${command} ${upgradeCommand}\` installs it.` : void 0;
|
|
124
|
-
} catch {
|
|
125
|
-
return void 0;
|
|
126
|
-
}
|
|
127
|
-
}, "updateNotice");
|
|
128
|
-
var commandWords = /* @__PURE__ */ __name((argv) => {
|
|
129
|
-
const end = argv.indexOf("--");
|
|
130
|
-
return argv.slice(0, end < 0 ? void 0 : end).filter((word) => !word.startsWith("-"));
|
|
131
|
-
}, "commandWords");
|
|
132
|
-
|
|
133
|
-
export {
|
|
134
|
-
updateCommand,
|
|
135
|
-
isNewer,
|
|
136
|
-
latestVersion,
|
|
137
|
-
CHECK_EVERY_MS,
|
|
138
|
-
readNoticeState,
|
|
139
|
-
writeUpdateState,
|
|
140
|
-
runUpdate,
|
|
141
|
-
updateNotice
|
|
142
|
-
};
|